@utdk/google 0.0.1-20260407.8-dev.646adf4
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 +373 -0
- package/books/README.md +3 -0
- package/books/index.ts +22 -0
- package/books/metadata.ts +1681 -0
- package/books/openapi.json +8073 -0
- package/books/package.json +41 -0
- package/books/types.ts +308 -0
- package/drive/README.md +3 -0
- package/drive/index.ts +22 -0
- package/drive/metadata.ts +1962 -0
- package/drive/openapi.json +7902 -0
- package/drive/types.ts +302 -0
- package/fcm/README.md +3 -0
- package/fcm/index.ts +22 -0
- package/fcm/metadata.ts +36 -0
- package/fcm/openapi.json +678 -0
- package/fcm/types.ts +8 -0
- package/home/README.md +3 -0
- package/home/index.ts +22 -0
- package/home/metadata.ts +512 -0
- package/home/openapi.json +5429 -0
- package/home/types.ts +182 -0
- package/index.ts +14 -0
- package/package.json +35 -0
- package/youtube/README.md +3 -0
- package/youtube/index.ts +22 -0
- package/youtube/metadata.ts +2716 -0
- package/youtube/openapi.json +15600 -0
- package/youtube/types.ts +482 -0
package/drive/types.ts
ADDED
|
@@ -0,0 +1,302 @@
|
|
|
1
|
+
export type GoogleDriveClient = {
|
|
2
|
+
/**
|
|
3
|
+
* Gets information about the user, the user's Drive, and system capabilities.
|
|
4
|
+
* Tags: about
|
|
5
|
+
* Access as: google/drive.aboutGet(input)
|
|
6
|
+
*/
|
|
7
|
+
aboutGet: (input: { "$.xgafv"?: "1" | "2"; access_token?: string; alt?: "json" | "media" | "proto"; callback?: string; fields?: string; key?: string; oauth_token?: string; prettyPrint?: boolean; quotaUser?: string; upload_protocol?: string; uploadType?: string }) => Promise<{ appInstalled?: boolean; canCreateDrives?: boolean; canCreateTeamDrives?: boolean; driveThemes?: ({ backgroundImageLink?: string; colorRgb?: string; id?: string })[]; exportFormats?: { [key: string]: (string)[] | undefined }; folderColorPalette?: (string)[]; importFormats?: { [key: string]: (string)[] | undefined }; kind?: string; maxImportSizes?: { [key: string]: string | undefined }; maxUploadSize?: string; storageQuota?: { limit?: string; usage?: string; usageInDrive?: string; usageInDriveTrash?: string }; teamDriveThemes?: ({ backgroundImageLink?: string; colorRgb?: string; id?: string })[]; user?: { displayName?: string; emailAddress?: string; kind?: string; me?: boolean; permissionId?: string; photoLink?: string } }>;
|
|
8
|
+
/**
|
|
9
|
+
* Gets a specific app.
|
|
10
|
+
* Tags: apps
|
|
11
|
+
* Access as: google/drive.appsGet(input)
|
|
12
|
+
*/
|
|
13
|
+
appsGet: (input: { appId: string; "$.xgafv"?: "1" | "2"; access_token?: string; alt?: "json" | "media" | "proto"; callback?: string; fields?: string; key?: string; oauth_token?: string; prettyPrint?: boolean; quotaUser?: string; upload_protocol?: string; uploadType?: string }) => Promise<{ authorized?: boolean; createInFolderTemplate?: string; createUrl?: string; hasDriveWideScope?: boolean; icons?: ({ category?: string; iconUrl?: string; size?: number })[]; id?: string; installed?: boolean; kind?: string; longDescription?: string; name?: string; objectType?: string; openUrlTemplate?: string; primaryFileExtensions?: (string)[]; primaryMimeTypes?: (string)[]; productId?: string; productUrl?: string; secondaryFileExtensions?: (string)[]; secondaryMimeTypes?: (string)[]; shortDescription?: string; supportsCreate?: boolean; supportsImport?: boolean; supportsMultiOpen?: boolean; supportsOfflineCreate?: boolean; useByDefault?: boolean }>;
|
|
14
|
+
/**
|
|
15
|
+
* Lists a user's installed apps.
|
|
16
|
+
* Tags: apps
|
|
17
|
+
* Access as: google/drive.appsList(input)
|
|
18
|
+
*/
|
|
19
|
+
appsList: (input: { "$.xgafv"?: "1" | "2"; access_token?: string; alt?: "json" | "media" | "proto"; callback?: string; fields?: string; key?: string; oauth_token?: string; prettyPrint?: boolean; quotaUser?: string; upload_protocol?: string; uploadType?: string; appFilterExtensions?: string; appFilterMimeTypes?: string; languageCode?: string }) => Promise<{ defaultAppIds?: (string)[]; items?: ({ authorized?: boolean; createInFolderTemplate?: string; createUrl?: string; hasDriveWideScope?: boolean; icons?: ({ category?: string; iconUrl?: string; size?: number })[]; id?: string; installed?: boolean; kind?: string; longDescription?: string; name?: string; objectType?: string; openUrlTemplate?: string; primaryFileExtensions?: (string)[]; primaryMimeTypes?: (string)[]; productId?: string; productUrl?: string; secondaryFileExtensions?: (string)[]; secondaryMimeTypes?: (string)[]; shortDescription?: string; supportsCreate?: boolean; supportsImport?: boolean; supportsMultiOpen?: boolean; supportsOfflineCreate?: boolean; useByDefault?: boolean })[]; kind?: string; selfLink?: string }>;
|
|
20
|
+
/**
|
|
21
|
+
* Gets the starting pageToken for listing future changes.
|
|
22
|
+
* Tags: changes
|
|
23
|
+
* Access as: google/drive.changesGetStartPageToken(input)
|
|
24
|
+
*/
|
|
25
|
+
changesGetStartPageToken: (input: { "$.xgafv"?: "1" | "2"; access_token?: string; alt?: "json" | "media" | "proto"; callback?: string; fields?: string; key?: string; oauth_token?: string; prettyPrint?: boolean; quotaUser?: string; upload_protocol?: string; uploadType?: string; driveId?: string; supportsAllDrives?: boolean; supportsTeamDrives?: boolean; teamDriveId?: string }) => Promise<{ kind?: string; startPageToken?: string }>;
|
|
26
|
+
/**
|
|
27
|
+
* Lists the changes for a user or shared drive.
|
|
28
|
+
* Tags: changes
|
|
29
|
+
* Access as: google/drive.changesList(input)
|
|
30
|
+
*/
|
|
31
|
+
changesList: (input: { "$.xgafv"?: "1" | "2"; access_token?: string; alt?: "json" | "media" | "proto"; callback?: string; fields?: string; key?: string; oauth_token?: string; prettyPrint?: boolean; quotaUser?: string; upload_protocol?: string; uploadType?: string; pageToken: string; driveId?: string; includeCorpusRemovals?: boolean; includeItemsFromAllDrives?: boolean; includeLabels?: string; includePermissionsForView?: string; includeRemoved?: boolean; includeTeamDriveItems?: boolean; pageSize?: number; restrictToMyDrive?: boolean; spaces?: string; supportsAllDrives?: boolean; supportsTeamDrives?: boolean; teamDriveId?: string }) => Promise<{ changes?: ({ changeType?: string; drive?: { backgroundImageFile?: { id?: string; width?: number; xCoordinate?: number; yCoordinate?: number }; backgroundImageLink?: string; capabilities?: { canAddChildren?: boolean; canChangeCopyRequiresWriterPermissionRestriction?: boolean; canChangeDomainUsersOnlyRestriction?: boolean; canChangeDriveBackground?: boolean; canChangeDriveMembersOnlyRestriction?: boolean; canChangeSharingFoldersRequiresOrganizerPermissionRestriction?: boolean; canComment?: boolean; canCopy?: boolean; canDeleteChildren?: boolean; canDeleteDrive?: boolean; canDownload?: boolean; canEdit?: boolean; canListChildren?: boolean; canManageMembers?: boolean; canReadRevisions?: boolean; canRename?: boolean; canRenameDrive?: boolean; canResetDriveRestrictions?: boolean; canShare?: boolean; canTrashChildren?: boolean }; colorRgb?: string; createdTime?: string; hidden?: boolean; id?: string; kind?: string; name?: string; orgUnitId?: string; restrictions?: { adminManagedRestrictions?: boolean; copyRequiresWriterPermission?: boolean; domainUsersOnly?: boolean; driveMembersOnly?: boolean; sharingFoldersRequiresOrganizerPermission?: boolean }; themeId?: string }; driveId?: string; file?: { appProperties?: { [key: string]: string | undefined }; capabilities?: { canAcceptOwnership?: boolean; canAddChildren?: boolean; canAddFolderFromAnotherDrive?: boolean; canAddMyDriveParent?: boolean; canChangeCopyRequiresWriterPermission?: boolean; canChangeSecurityUpdateEnabled?: boolean; canChangeViewersCanCopyContent?: boolean; canComment?: boolean; canCopy?: boolean; canDelete?: boolean; canDeleteChildren?: boolean; canDownload?: boolean; canEdit?: boolean; canListChildren?: boolean; canModifyContent?: boolean; canModifyContentRestriction?: boolean; canModifyEditorContentRestriction?: boolean; canModifyLabels?: boolean; canModifyOwnerContentRestriction?: boolean; canMoveChildrenOutOfDrive?: boolean; canMoveChildrenOutOfTeamDrive?: boolean; canMoveChildrenWithinDrive?: boolean; canMoveChildrenWithinTeamDrive?: boolean; canMoveItemIntoTeamDrive?: boolean; canMoveItemOutOfDrive?: boolean; canMoveItemOutOfTeamDrive?: boolean; canMoveItemWithinDrive?: boolean; canMoveItemWithinTeamDrive?: boolean; canMoveTeamDriveItem?: boolean; canReadDrive?: boolean; canReadLabels?: boolean; canReadRevisions?: boolean; canReadTeamDrive?: boolean; canRemoveChildren?: boolean; canRemoveContentRestriction?: boolean; canRemoveMyDriveParent?: boolean; canRename?: boolean; canShare?: boolean; canTrash?: boolean; canTrashChildren?: boolean; canUntrash?: boolean }; contentHints?: { indexableText?: string; thumbnail?: { image?: string; mimeType?: string } }; contentRestrictions?: ({ ownerRestricted?: boolean; readOnly?: boolean; reason?: string; restrictingUser?: { displayName?: string; emailAddress?: string; kind?: string; me?: boolean; permissionId?: string; photoLink?: string }; restrictionTime?: string; systemRestricted?: boolean; type?: string })[]; copyRequiresWriterPermission?: boolean; createdTime?: string; description?: string; driveId?: string; explicitlyTrashed?: boolean; exportLinks?: { [key: string]: string | undefined }; fileExtension?: string; folderColorRgb?: string; fullFileExtension?: string; hasAugmentedPermissions?: boolean; hasThumbnail?: boolean; headRevisionId?: string; iconLink?: string; id?: string; imageMediaMetadata?: { aperture?: number; cameraMake?: string; cameraModel?: string; colorSpace?: string; exposureBias?: number; exposureMode?: string; exposureTime?: number; flashUsed?: boolean; focalLength?: number; height?: number; isoSpeed?: number; lens?: string; location?: { altitude?: number; latitude?: number; longitude?: number }; maxApertureValue?: number; meteringMode?: string; rotation?: number; sensor?: string; subjectDistance?: number; time?: string; whiteBalance?: string; width?: number }; isAppAuthorized?: boolean; kind?: string; labelInfo?: { labels?: ({ fields?: { [key: string]: { dateString?: (string)[]; id?: string; integer?: (string)[]; kind?: string; selection?: (string)[]; text?: (string)[]; user?: ({ displayName?: string; emailAddress?: string; kind?: string; me?: boolean; permissionId?: string; photoLink?: string })[]; valueType?: string } | undefined }; id?: string; kind?: string; revisionId?: string })[] }; lastModifyingUser?: { displayName?: string; emailAddress?: string; kind?: string; me?: boolean; permissionId?: string; photoLink?: string }; linkShareMetadata?: { securityUpdateEligible?: boolean; securityUpdateEnabled?: boolean }; md5Checksum?: string; mimeType?: string; modifiedByMe?: boolean; modifiedByMeTime?: string; modifiedTime?: string; name?: string; originalFilename?: string; ownedByMe?: boolean; owners?: ({ displayName?: string; emailAddress?: string; kind?: string; me?: boolean; permissionId?: string; photoLink?: string })[]; parents?: (string)[]; permissionIds?: (string)[]; permissions?: ({ allowFileDiscovery?: boolean; deleted?: boolean; displayName?: string; domain?: string; emailAddress?: string; expirationTime?: string; id?: string; kind?: string; pendingOwner?: boolean; permissionDetails?: ({ inherited?: boolean; inheritedFrom?: string; permissionType?: string; role?: string })[]; photoLink?: string; role?: string; teamDrivePermissionDetails?: ({ inherited?: boolean; inheritedFrom?: string; role?: string; teamDrivePermissionType?: string })[]; type?: string; view?: string })[]; properties?: { [key: string]: string | undefined }; quotaBytesUsed?: string; resourceKey?: string; sha1Checksum?: string; sha256Checksum?: string; shared?: boolean; sharedWithMeTime?: string; sharingUser?: { displayName?: string; emailAddress?: string; kind?: string; me?: boolean; permissionId?: string; photoLink?: string }; shortcutDetails?: { targetId?: string; targetMimeType?: string; targetResourceKey?: string }; size?: string; spaces?: (string)[]; starred?: boolean; teamDriveId?: string; thumbnailLink?: string; thumbnailVersion?: string; trashed?: boolean; trashedTime?: string; trashingUser?: { displayName?: string; emailAddress?: string; kind?: string; me?: boolean; permissionId?: string; photoLink?: string }; version?: string; videoMediaMetadata?: { durationMillis?: string; height?: number; width?: number }; viewedByMe?: boolean; viewedByMeTime?: string; viewersCanCopyContent?: boolean; webContentLink?: string; webViewLink?: string; writersCanShare?: boolean }; fileId?: string; kind?: string; removed?: boolean; teamDrive?: { backgroundImageFile?: { id?: string; width?: number; xCoordinate?: number; yCoordinate?: number }; backgroundImageLink?: string; capabilities?: { canAddChildren?: boolean; canChangeCopyRequiresWriterPermissionRestriction?: boolean; canChangeDomainUsersOnlyRestriction?: boolean; canChangeSharingFoldersRequiresOrganizerPermissionRestriction?: boolean; canChangeTeamDriveBackground?: boolean; canChangeTeamMembersOnlyRestriction?: boolean; canComment?: boolean; canCopy?: boolean; canDeleteChildren?: boolean; canDeleteTeamDrive?: boolean; canDownload?: boolean; canEdit?: boolean; canListChildren?: boolean; canManageMembers?: boolean; canReadRevisions?: boolean; canRemoveChildren?: boolean; canRename?: boolean; canRenameTeamDrive?: boolean; canResetTeamDriveRestrictions?: boolean; canShare?: boolean; canTrashChildren?: boolean }; colorRgb?: string; createdTime?: string; id?: string; kind?: string; name?: string; orgUnitId?: string; restrictions?: { adminManagedRestrictions?: boolean; copyRequiresWriterPermission?: boolean; domainUsersOnly?: boolean; sharingFoldersRequiresOrganizerPermission?: boolean; teamMembersOnly?: boolean }; themeId?: string }; teamDriveId?: string; time?: string; type?: string })[]; kind?: string; newStartPageToken?: string; nextPageToken?: string }>;
|
|
32
|
+
/**
|
|
33
|
+
* Subscribes to changes for a user.
|
|
34
|
+
* Tags: changes
|
|
35
|
+
* Access as: google/drive.changesWatch(input)
|
|
36
|
+
*/
|
|
37
|
+
changesWatch: (input: { address?: string; expiration?: string; id?: string; kind?: string; params?: { [key: string]: string | undefined }; payload?: boolean; resourceId?: string; resourceUri?: string; token?: string; type?: string; "$.xgafv"?: "1" | "2"; access_token?: string; alt?: "json" | "media" | "proto"; callback?: string; fields?: string; key?: string; oauth_token?: string; prettyPrint?: boolean; quotaUser?: string; upload_protocol?: string; uploadType?: string; pageToken: string; driveId?: string; includeCorpusRemovals?: boolean; includeItemsFromAllDrives?: boolean; includeLabels?: string; includePermissionsForView?: string; includeRemoved?: boolean; includeTeamDriveItems?: boolean; pageSize?: number; restrictToMyDrive?: boolean; spaces?: string; supportsAllDrives?: boolean; supportsTeamDrives?: boolean; teamDriveId?: string }) => Promise<{ address?: string; expiration?: string; id?: string; kind?: string; params?: { [key: string]: string | undefined }; payload?: boolean; resourceId?: string; resourceUri?: string; token?: string; type?: string }>;
|
|
38
|
+
/**
|
|
39
|
+
* Stops watching resources through this channel.
|
|
40
|
+
* Tags: channels
|
|
41
|
+
* Access as: google/drive.channelsStop(input)
|
|
42
|
+
*/
|
|
43
|
+
channelsStop: (input: { address?: string; expiration?: string; id?: string; kind?: string; params?: { [key: string]: string | undefined }; payload?: boolean; resourceId?: string; resourceUri?: string; token?: string; type?: string; "$.xgafv"?: "1" | "2"; access_token?: string; alt?: "json" | "media" | "proto"; callback?: string; fields?: string; key?: string; oauth_token?: string; prettyPrint?: boolean; quotaUser?: string; upload_protocol?: string; uploadType?: string }) => Promise<unknown>;
|
|
44
|
+
/**
|
|
45
|
+
* Creates a comment on a file.
|
|
46
|
+
* Tags: comments
|
|
47
|
+
* Access as: google/drive.commentsCreate(input)
|
|
48
|
+
*/
|
|
49
|
+
commentsCreate: (input: { anchor?: string; author?: { displayName?: string; emailAddress?: string; kind?: string; me?: boolean; permissionId?: string; photoLink?: string }; content?: string; createdTime?: string; deleted?: boolean; htmlContent?: string; id?: string; kind?: string; modifiedTime?: string; quotedFileContent?: { mimeType?: string; value?: string }; replies?: ({ action?: string; author?: { displayName?: string; emailAddress?: string; kind?: string; me?: boolean; permissionId?: string; photoLink?: string }; content?: string; createdTime?: string; deleted?: boolean; htmlContent?: string; id?: string; kind?: string; modifiedTime?: string })[]; resolved?: boolean; fileId: string; "$.xgafv"?: "1" | "2"; access_token?: string; alt?: "json" | "media" | "proto"; callback?: string; fields?: string; key?: string; oauth_token?: string; prettyPrint?: boolean; quotaUser?: string; upload_protocol?: string; uploadType?: string }) => Promise<{ anchor?: string; author?: { displayName?: string; emailAddress?: string; kind?: string; me?: boolean; permissionId?: string; photoLink?: string }; content?: string; createdTime?: string; deleted?: boolean; htmlContent?: string; id?: string; kind?: string; modifiedTime?: string; quotedFileContent?: { mimeType?: string; value?: string }; replies?: ({ action?: string; author?: { displayName?: string; emailAddress?: string; kind?: string; me?: boolean; permissionId?: string; photoLink?: string }; content?: string; createdTime?: string; deleted?: boolean; htmlContent?: string; id?: string; kind?: string; modifiedTime?: string })[]; resolved?: boolean }>;
|
|
50
|
+
/**
|
|
51
|
+
* Deletes a comment.
|
|
52
|
+
* Tags: comments
|
|
53
|
+
* Access as: google/drive.commentsDelete(input)
|
|
54
|
+
*/
|
|
55
|
+
commentsDelete: (input: { fileId: string; commentId: string; "$.xgafv"?: "1" | "2"; access_token?: string; alt?: "json" | "media" | "proto"; callback?: string; fields?: string; key?: string; oauth_token?: string; prettyPrint?: boolean; quotaUser?: string; upload_protocol?: string; uploadType?: string }) => Promise<unknown>;
|
|
56
|
+
/**
|
|
57
|
+
* Gets a comment by ID.
|
|
58
|
+
* Tags: comments
|
|
59
|
+
* Access as: google/drive.commentsGet(input)
|
|
60
|
+
*/
|
|
61
|
+
commentsGet: (input: { fileId: string; commentId: string; "$.xgafv"?: "1" | "2"; access_token?: string; alt?: "json" | "media" | "proto"; callback?: string; fields?: string; key?: string; oauth_token?: string; prettyPrint?: boolean; quotaUser?: string; upload_protocol?: string; uploadType?: string; includeDeleted?: boolean }) => Promise<{ anchor?: string; author?: { displayName?: string; emailAddress?: string; kind?: string; me?: boolean; permissionId?: string; photoLink?: string }; content?: string; createdTime?: string; deleted?: boolean; htmlContent?: string; id?: string; kind?: string; modifiedTime?: string; quotedFileContent?: { mimeType?: string; value?: string }; replies?: ({ action?: string; author?: { displayName?: string; emailAddress?: string; kind?: string; me?: boolean; permissionId?: string; photoLink?: string }; content?: string; createdTime?: string; deleted?: boolean; htmlContent?: string; id?: string; kind?: string; modifiedTime?: string })[]; resolved?: boolean }>;
|
|
62
|
+
/**
|
|
63
|
+
* Lists a file's comments.
|
|
64
|
+
* Tags: comments
|
|
65
|
+
* Access as: google/drive.commentsList(input)
|
|
66
|
+
*/
|
|
67
|
+
commentsList: (input: { fileId: string; "$.xgafv"?: "1" | "2"; access_token?: string; alt?: "json" | "media" | "proto"; callback?: string; fields?: string; key?: string; oauth_token?: string; prettyPrint?: boolean; quotaUser?: string; upload_protocol?: string; uploadType?: string; includeDeleted?: boolean; pageSize?: number; pageToken?: string; startModifiedTime?: string }) => Promise<{ comments?: ({ anchor?: string; author?: { displayName?: string; emailAddress?: string; kind?: string; me?: boolean; permissionId?: string; photoLink?: string }; content?: string; createdTime?: string; deleted?: boolean; htmlContent?: string; id?: string; kind?: string; modifiedTime?: string; quotedFileContent?: { mimeType?: string; value?: string }; replies?: ({ action?: string; author?: { displayName?: string; emailAddress?: string; kind?: string; me?: boolean; permissionId?: string; photoLink?: string }; content?: string; createdTime?: string; deleted?: boolean; htmlContent?: string; id?: string; kind?: string; modifiedTime?: string })[]; resolved?: boolean })[]; kind?: string; nextPageToken?: string }>;
|
|
68
|
+
/**
|
|
69
|
+
* Updates a comment with patch semantics.
|
|
70
|
+
* Tags: comments
|
|
71
|
+
* Access as: google/drive.commentsUpdate(input)
|
|
72
|
+
*/
|
|
73
|
+
commentsUpdate: (input: { anchor?: string; author?: { displayName?: string; emailAddress?: string; kind?: string; me?: boolean; permissionId?: string; photoLink?: string }; content?: string; createdTime?: string; deleted?: boolean; htmlContent?: string; id?: string; kind?: string; modifiedTime?: string; quotedFileContent?: { mimeType?: string; value?: string }; replies?: ({ action?: string; author?: { displayName?: string; emailAddress?: string; kind?: string; me?: boolean; permissionId?: string; photoLink?: string }; content?: string; createdTime?: string; deleted?: boolean; htmlContent?: string; id?: string; kind?: string; modifiedTime?: string })[]; resolved?: boolean; fileId: string; commentId: string; "$.xgafv"?: "1" | "2"; access_token?: string; alt?: "json" | "media" | "proto"; callback?: string; fields?: string; key?: string; oauth_token?: string; prettyPrint?: boolean; quotaUser?: string; upload_protocol?: string; uploadType?: string }) => Promise<{ anchor?: string; author?: { displayName?: string; emailAddress?: string; kind?: string; me?: boolean; permissionId?: string; photoLink?: string }; content?: string; createdTime?: string; deleted?: boolean; htmlContent?: string; id?: string; kind?: string; modifiedTime?: string; quotedFileContent?: { mimeType?: string; value?: string }; replies?: ({ action?: string; author?: { displayName?: string; emailAddress?: string; kind?: string; me?: boolean; permissionId?: string; photoLink?: string }; content?: string; createdTime?: string; deleted?: boolean; htmlContent?: string; id?: string; kind?: string; modifiedTime?: string })[]; resolved?: boolean }>;
|
|
74
|
+
/**
|
|
75
|
+
* Creates a shared drive.
|
|
76
|
+
* Tags: drives
|
|
77
|
+
* Access as: google/drive.drivesCreate(input)
|
|
78
|
+
*/
|
|
79
|
+
drivesCreate: (input: { backgroundImageFile?: { id?: string; width?: number; xCoordinate?: number; yCoordinate?: number }; backgroundImageLink?: string; capabilities?: { canAddChildren?: boolean; canChangeCopyRequiresWriterPermissionRestriction?: boolean; canChangeDomainUsersOnlyRestriction?: boolean; canChangeDriveBackground?: boolean; canChangeDriveMembersOnlyRestriction?: boolean; canChangeSharingFoldersRequiresOrganizerPermissionRestriction?: boolean; canComment?: boolean; canCopy?: boolean; canDeleteChildren?: boolean; canDeleteDrive?: boolean; canDownload?: boolean; canEdit?: boolean; canListChildren?: boolean; canManageMembers?: boolean; canReadRevisions?: boolean; canRename?: boolean; canRenameDrive?: boolean; canResetDriveRestrictions?: boolean; canShare?: boolean; canTrashChildren?: boolean }; colorRgb?: string; createdTime?: string; hidden?: boolean; id?: string; kind?: string; name?: string; orgUnitId?: string; restrictions?: { adminManagedRestrictions?: boolean; copyRequiresWriterPermission?: boolean; domainUsersOnly?: boolean; driveMembersOnly?: boolean; sharingFoldersRequiresOrganizerPermission?: boolean }; themeId?: string; "$.xgafv"?: "1" | "2"; access_token?: string; alt?: "json" | "media" | "proto"; callback?: string; fields?: string; key?: string; oauth_token?: string; prettyPrint?: boolean; quotaUser?: string; upload_protocol?: string; uploadType?: string; requestId: string }) => Promise<{ backgroundImageFile?: { id?: string; width?: number; xCoordinate?: number; yCoordinate?: number }; backgroundImageLink?: string; capabilities?: { canAddChildren?: boolean; canChangeCopyRequiresWriterPermissionRestriction?: boolean; canChangeDomainUsersOnlyRestriction?: boolean; canChangeDriveBackground?: boolean; canChangeDriveMembersOnlyRestriction?: boolean; canChangeSharingFoldersRequiresOrganizerPermissionRestriction?: boolean; canComment?: boolean; canCopy?: boolean; canDeleteChildren?: boolean; canDeleteDrive?: boolean; canDownload?: boolean; canEdit?: boolean; canListChildren?: boolean; canManageMembers?: boolean; canReadRevisions?: boolean; canRename?: boolean; canRenameDrive?: boolean; canResetDriveRestrictions?: boolean; canShare?: boolean; canTrashChildren?: boolean }; colorRgb?: string; createdTime?: string; hidden?: boolean; id?: string; kind?: string; name?: string; orgUnitId?: string; restrictions?: { adminManagedRestrictions?: boolean; copyRequiresWriterPermission?: boolean; domainUsersOnly?: boolean; driveMembersOnly?: boolean; sharingFoldersRequiresOrganizerPermission?: boolean }; themeId?: string }>;
|
|
80
|
+
/**
|
|
81
|
+
* Permanently deletes a shared drive for which the user is an `organizer`. The shared drive cannot contain any untrashed items.
|
|
82
|
+
* Tags: drives
|
|
83
|
+
* Access as: google/drive.drivesDelete(input)
|
|
84
|
+
*/
|
|
85
|
+
drivesDelete: (input: { driveId: string; "$.xgafv"?: "1" | "2"; access_token?: string; alt?: "json" | "media" | "proto"; callback?: string; fields?: string; key?: string; oauth_token?: string; prettyPrint?: boolean; quotaUser?: string; upload_protocol?: string; uploadType?: string; allowItemDeletion?: boolean; useDomainAdminAccess?: boolean }) => Promise<unknown>;
|
|
86
|
+
/**
|
|
87
|
+
* Gets a shared drive's metadata by ID.
|
|
88
|
+
* Tags: drives
|
|
89
|
+
* Access as: google/drive.drivesGet(input)
|
|
90
|
+
*/
|
|
91
|
+
drivesGet: (input: { driveId: string; "$.xgafv"?: "1" | "2"; access_token?: string; alt?: "json" | "media" | "proto"; callback?: string; fields?: string; key?: string; oauth_token?: string; prettyPrint?: boolean; quotaUser?: string; upload_protocol?: string; uploadType?: string; useDomainAdminAccess?: boolean }) => Promise<{ backgroundImageFile?: { id?: string; width?: number; xCoordinate?: number; yCoordinate?: number }; backgroundImageLink?: string; capabilities?: { canAddChildren?: boolean; canChangeCopyRequiresWriterPermissionRestriction?: boolean; canChangeDomainUsersOnlyRestriction?: boolean; canChangeDriveBackground?: boolean; canChangeDriveMembersOnlyRestriction?: boolean; canChangeSharingFoldersRequiresOrganizerPermissionRestriction?: boolean; canComment?: boolean; canCopy?: boolean; canDeleteChildren?: boolean; canDeleteDrive?: boolean; canDownload?: boolean; canEdit?: boolean; canListChildren?: boolean; canManageMembers?: boolean; canReadRevisions?: boolean; canRename?: boolean; canRenameDrive?: boolean; canResetDriveRestrictions?: boolean; canShare?: boolean; canTrashChildren?: boolean }; colorRgb?: string; createdTime?: string; hidden?: boolean; id?: string; kind?: string; name?: string; orgUnitId?: string; restrictions?: { adminManagedRestrictions?: boolean; copyRequiresWriterPermission?: boolean; domainUsersOnly?: boolean; driveMembersOnly?: boolean; sharingFoldersRequiresOrganizerPermission?: boolean }; themeId?: string }>;
|
|
92
|
+
/**
|
|
93
|
+
* Hides a shared drive from the default view.
|
|
94
|
+
* Tags: drives
|
|
95
|
+
* Access as: google/drive.drivesHide(input)
|
|
96
|
+
*/
|
|
97
|
+
drivesHide: (input: { driveId: string; "$.xgafv"?: "1" | "2"; access_token?: string; alt?: "json" | "media" | "proto"; callback?: string; fields?: string; key?: string; oauth_token?: string; prettyPrint?: boolean; quotaUser?: string; upload_protocol?: string; uploadType?: string }) => Promise<{ backgroundImageFile?: { id?: string; width?: number; xCoordinate?: number; yCoordinate?: number }; backgroundImageLink?: string; capabilities?: { canAddChildren?: boolean; canChangeCopyRequiresWriterPermissionRestriction?: boolean; canChangeDomainUsersOnlyRestriction?: boolean; canChangeDriveBackground?: boolean; canChangeDriveMembersOnlyRestriction?: boolean; canChangeSharingFoldersRequiresOrganizerPermissionRestriction?: boolean; canComment?: boolean; canCopy?: boolean; canDeleteChildren?: boolean; canDeleteDrive?: boolean; canDownload?: boolean; canEdit?: boolean; canListChildren?: boolean; canManageMembers?: boolean; canReadRevisions?: boolean; canRename?: boolean; canRenameDrive?: boolean; canResetDriveRestrictions?: boolean; canShare?: boolean; canTrashChildren?: boolean }; colorRgb?: string; createdTime?: string; hidden?: boolean; id?: string; kind?: string; name?: string; orgUnitId?: string; restrictions?: { adminManagedRestrictions?: boolean; copyRequiresWriterPermission?: boolean; domainUsersOnly?: boolean; driveMembersOnly?: boolean; sharingFoldersRequiresOrganizerPermission?: boolean }; themeId?: string }>;
|
|
98
|
+
/**
|
|
99
|
+
* Lists the user's shared drives. This method accepts the `q` parameter, which is a search query combining one or more search terms. For more information, see the [Search for shared drives](/drive/api/guides/search-shareddrives) guide.
|
|
100
|
+
* Tags: drives
|
|
101
|
+
* Access as: google/drive.drivesList(input)
|
|
102
|
+
*/
|
|
103
|
+
drivesList: (input: { "$.xgafv"?: "1" | "2"; access_token?: string; alt?: "json" | "media" | "proto"; callback?: string; fields?: string; key?: string; oauth_token?: string; prettyPrint?: boolean; quotaUser?: string; upload_protocol?: string; uploadType?: string; pageSize?: number; pageToken?: string; q?: string; useDomainAdminAccess?: boolean }) => Promise<{ drives?: ({ backgroundImageFile?: { id?: string; width?: number; xCoordinate?: number; yCoordinate?: number }; backgroundImageLink?: string; capabilities?: { canAddChildren?: boolean; canChangeCopyRequiresWriterPermissionRestriction?: boolean; canChangeDomainUsersOnlyRestriction?: boolean; canChangeDriveBackground?: boolean; canChangeDriveMembersOnlyRestriction?: boolean; canChangeSharingFoldersRequiresOrganizerPermissionRestriction?: boolean; canComment?: boolean; canCopy?: boolean; canDeleteChildren?: boolean; canDeleteDrive?: boolean; canDownload?: boolean; canEdit?: boolean; canListChildren?: boolean; canManageMembers?: boolean; canReadRevisions?: boolean; canRename?: boolean; canRenameDrive?: boolean; canResetDriveRestrictions?: boolean; canShare?: boolean; canTrashChildren?: boolean }; colorRgb?: string; createdTime?: string; hidden?: boolean; id?: string; kind?: string; name?: string; orgUnitId?: string; restrictions?: { adminManagedRestrictions?: boolean; copyRequiresWriterPermission?: boolean; domainUsersOnly?: boolean; driveMembersOnly?: boolean; sharingFoldersRequiresOrganizerPermission?: boolean }; themeId?: string })[]; kind?: string; nextPageToken?: string }>;
|
|
104
|
+
/**
|
|
105
|
+
* Restores a shared drive to the default view.
|
|
106
|
+
* Tags: drives
|
|
107
|
+
* Access as: google/drive.drivesUnhide(input)
|
|
108
|
+
*/
|
|
109
|
+
drivesUnhide: (input: { driveId: string; "$.xgafv"?: "1" | "2"; access_token?: string; alt?: "json" | "media" | "proto"; callback?: string; fields?: string; key?: string; oauth_token?: string; prettyPrint?: boolean; quotaUser?: string; upload_protocol?: string; uploadType?: string }) => Promise<{ backgroundImageFile?: { id?: string; width?: number; xCoordinate?: number; yCoordinate?: number }; backgroundImageLink?: string; capabilities?: { canAddChildren?: boolean; canChangeCopyRequiresWriterPermissionRestriction?: boolean; canChangeDomainUsersOnlyRestriction?: boolean; canChangeDriveBackground?: boolean; canChangeDriveMembersOnlyRestriction?: boolean; canChangeSharingFoldersRequiresOrganizerPermissionRestriction?: boolean; canComment?: boolean; canCopy?: boolean; canDeleteChildren?: boolean; canDeleteDrive?: boolean; canDownload?: boolean; canEdit?: boolean; canListChildren?: boolean; canManageMembers?: boolean; canReadRevisions?: boolean; canRename?: boolean; canRenameDrive?: boolean; canResetDriveRestrictions?: boolean; canShare?: boolean; canTrashChildren?: boolean }; colorRgb?: string; createdTime?: string; hidden?: boolean; id?: string; kind?: string; name?: string; orgUnitId?: string; restrictions?: { adminManagedRestrictions?: boolean; copyRequiresWriterPermission?: boolean; domainUsersOnly?: boolean; driveMembersOnly?: boolean; sharingFoldersRequiresOrganizerPermission?: boolean }; themeId?: string }>;
|
|
110
|
+
/**
|
|
111
|
+
* Updates the metadate for a shared drive.
|
|
112
|
+
* Tags: drives
|
|
113
|
+
* Access as: google/drive.drivesUpdate(input)
|
|
114
|
+
*/
|
|
115
|
+
drivesUpdate: (input: { backgroundImageFile?: { id?: string; width?: number; xCoordinate?: number; yCoordinate?: number }; backgroundImageLink?: string; capabilities?: { canAddChildren?: boolean; canChangeCopyRequiresWriterPermissionRestriction?: boolean; canChangeDomainUsersOnlyRestriction?: boolean; canChangeDriveBackground?: boolean; canChangeDriveMembersOnlyRestriction?: boolean; canChangeSharingFoldersRequiresOrganizerPermissionRestriction?: boolean; canComment?: boolean; canCopy?: boolean; canDeleteChildren?: boolean; canDeleteDrive?: boolean; canDownload?: boolean; canEdit?: boolean; canListChildren?: boolean; canManageMembers?: boolean; canReadRevisions?: boolean; canRename?: boolean; canRenameDrive?: boolean; canResetDriveRestrictions?: boolean; canShare?: boolean; canTrashChildren?: boolean }; colorRgb?: string; createdTime?: string; hidden?: boolean; id?: string; kind?: string; name?: string; orgUnitId?: string; restrictions?: { adminManagedRestrictions?: boolean; copyRequiresWriterPermission?: boolean; domainUsersOnly?: boolean; driveMembersOnly?: boolean; sharingFoldersRequiresOrganizerPermission?: boolean }; themeId?: string; driveId: string; "$.xgafv"?: "1" | "2"; access_token?: string; alt?: "json" | "media" | "proto"; callback?: string; fields?: string; key?: string; oauth_token?: string; prettyPrint?: boolean; quotaUser?: string; upload_protocol?: string; uploadType?: string; useDomainAdminAccess?: boolean }) => Promise<{ backgroundImageFile?: { id?: string; width?: number; xCoordinate?: number; yCoordinate?: number }; backgroundImageLink?: string; capabilities?: { canAddChildren?: boolean; canChangeCopyRequiresWriterPermissionRestriction?: boolean; canChangeDomainUsersOnlyRestriction?: boolean; canChangeDriveBackground?: boolean; canChangeDriveMembersOnlyRestriction?: boolean; canChangeSharingFoldersRequiresOrganizerPermissionRestriction?: boolean; canComment?: boolean; canCopy?: boolean; canDeleteChildren?: boolean; canDeleteDrive?: boolean; canDownload?: boolean; canEdit?: boolean; canListChildren?: boolean; canManageMembers?: boolean; canReadRevisions?: boolean; canRename?: boolean; canRenameDrive?: boolean; canResetDriveRestrictions?: boolean; canShare?: boolean; canTrashChildren?: boolean }; colorRgb?: string; createdTime?: string; hidden?: boolean; id?: string; kind?: string; name?: string; orgUnitId?: string; restrictions?: { adminManagedRestrictions?: boolean; copyRequiresWriterPermission?: boolean; domainUsersOnly?: boolean; driveMembersOnly?: boolean; sharingFoldersRequiresOrganizerPermission?: boolean }; themeId?: string }>;
|
|
116
|
+
/**
|
|
117
|
+
* Creates a copy of a file and applies any requested updates with patch semantics.
|
|
118
|
+
* Tags: files
|
|
119
|
+
* Access as: google/drive.filesCopy(input)
|
|
120
|
+
*/
|
|
121
|
+
filesCopy: (input: { appProperties?: { [key: string]: string | undefined }; capabilities?: { canAcceptOwnership?: boolean; canAddChildren?: boolean; canAddFolderFromAnotherDrive?: boolean; canAddMyDriveParent?: boolean; canChangeCopyRequiresWriterPermission?: boolean; canChangeSecurityUpdateEnabled?: boolean; canChangeViewersCanCopyContent?: boolean; canComment?: boolean; canCopy?: boolean; canDelete?: boolean; canDeleteChildren?: boolean; canDownload?: boolean; canEdit?: boolean; canListChildren?: boolean; canModifyContent?: boolean; canModifyContentRestriction?: boolean; canModifyEditorContentRestriction?: boolean; canModifyLabels?: boolean; canModifyOwnerContentRestriction?: boolean; canMoveChildrenOutOfDrive?: boolean; canMoveChildrenOutOfTeamDrive?: boolean; canMoveChildrenWithinDrive?: boolean; canMoveChildrenWithinTeamDrive?: boolean; canMoveItemIntoTeamDrive?: boolean; canMoveItemOutOfDrive?: boolean; canMoveItemOutOfTeamDrive?: boolean; canMoveItemWithinDrive?: boolean; canMoveItemWithinTeamDrive?: boolean; canMoveTeamDriveItem?: boolean; canReadDrive?: boolean; canReadLabels?: boolean; canReadRevisions?: boolean; canReadTeamDrive?: boolean; canRemoveChildren?: boolean; canRemoveContentRestriction?: boolean; canRemoveMyDriveParent?: boolean; canRename?: boolean; canShare?: boolean; canTrash?: boolean; canTrashChildren?: boolean; canUntrash?: boolean }; contentHints?: { indexableText?: string; thumbnail?: { image?: string; mimeType?: string } }; contentRestrictions?: ({ ownerRestricted?: boolean; readOnly?: boolean; reason?: string; restrictingUser?: { displayName?: string; emailAddress?: string; kind?: string; me?: boolean; permissionId?: string; photoLink?: string }; restrictionTime?: string; systemRestricted?: boolean; type?: string })[]; copyRequiresWriterPermission?: boolean; createdTime?: string; description?: string; driveId?: string; explicitlyTrashed?: boolean; exportLinks?: { [key: string]: string | undefined }; fileExtension?: string; folderColorRgb?: string; fullFileExtension?: string; hasAugmentedPermissions?: boolean; hasThumbnail?: boolean; headRevisionId?: string; iconLink?: string; id?: string; imageMediaMetadata?: { aperture?: number; cameraMake?: string; cameraModel?: string; colorSpace?: string; exposureBias?: number; exposureMode?: string; exposureTime?: number; flashUsed?: boolean; focalLength?: number; height?: number; isoSpeed?: number; lens?: string; location?: { altitude?: number; latitude?: number; longitude?: number }; maxApertureValue?: number; meteringMode?: string; rotation?: number; sensor?: string; subjectDistance?: number; time?: string; whiteBalance?: string; width?: number }; isAppAuthorized?: boolean; kind?: string; labelInfo?: { labels?: ({ fields?: { [key: string]: { dateString?: (string)[]; id?: string; integer?: (string)[]; kind?: string; selection?: (string)[]; text?: (string)[]; user?: ({ displayName?: string; emailAddress?: string; kind?: string; me?: boolean; permissionId?: string; photoLink?: string })[]; valueType?: string } | undefined }; id?: string; kind?: string; revisionId?: string })[] }; lastModifyingUser?: { displayName?: string; emailAddress?: string; kind?: string; me?: boolean; permissionId?: string; photoLink?: string }; linkShareMetadata?: { securityUpdateEligible?: boolean; securityUpdateEnabled?: boolean }; md5Checksum?: string; mimeType?: string; modifiedByMe?: boolean; modifiedByMeTime?: string; modifiedTime?: string; name?: string; originalFilename?: string; ownedByMe?: boolean; owners?: ({ displayName?: string; emailAddress?: string; kind?: string; me?: boolean; permissionId?: string; photoLink?: string })[]; parents?: (string)[]; permissionIds?: (string)[]; permissions?: ({ allowFileDiscovery?: boolean; deleted?: boolean; displayName?: string; domain?: string; emailAddress?: string; expirationTime?: string; id?: string; kind?: string; pendingOwner?: boolean; permissionDetails?: ({ inherited?: boolean; inheritedFrom?: string; permissionType?: string; role?: string })[]; photoLink?: string; role?: string; teamDrivePermissionDetails?: ({ inherited?: boolean; inheritedFrom?: string; role?: string; teamDrivePermissionType?: string })[]; type?: string; view?: string })[]; properties?: { [key: string]: string | undefined }; quotaBytesUsed?: string; resourceKey?: string; sha1Checksum?: string; sha256Checksum?: string; shared?: boolean; sharedWithMeTime?: string; sharingUser?: { displayName?: string; emailAddress?: string; kind?: string; me?: boolean; permissionId?: string; photoLink?: string }; shortcutDetails?: { targetId?: string; targetMimeType?: string; targetResourceKey?: string }; size?: string; spaces?: (string)[]; starred?: boolean; teamDriveId?: string; thumbnailLink?: string; thumbnailVersion?: string; trashed?: boolean; trashedTime?: string; trashingUser?: { displayName?: string; emailAddress?: string; kind?: string; me?: boolean; permissionId?: string; photoLink?: string }; version?: string; videoMediaMetadata?: { durationMillis?: string; height?: number; width?: number }; viewedByMe?: boolean; viewedByMeTime?: string; viewersCanCopyContent?: boolean; webContentLink?: string; webViewLink?: string; writersCanShare?: boolean; fileId: string; "$.xgafv"?: "1" | "2"; access_token?: string; alt?: "json" | "media" | "proto"; callback?: string; fields?: string; key?: string; oauth_token?: string; prettyPrint?: boolean; quotaUser?: string; upload_protocol?: string; uploadType?: string; enforceSingleParent?: boolean; ignoreDefaultVisibility?: boolean; includeLabels?: string; includePermissionsForView?: string; keepRevisionForever?: boolean; ocrLanguage?: string; supportsAllDrives?: boolean; supportsTeamDrives?: boolean }) => Promise<{ appProperties?: { [key: string]: string | undefined }; capabilities?: { canAcceptOwnership?: boolean; canAddChildren?: boolean; canAddFolderFromAnotherDrive?: boolean; canAddMyDriveParent?: boolean; canChangeCopyRequiresWriterPermission?: boolean; canChangeSecurityUpdateEnabled?: boolean; canChangeViewersCanCopyContent?: boolean; canComment?: boolean; canCopy?: boolean; canDelete?: boolean; canDeleteChildren?: boolean; canDownload?: boolean; canEdit?: boolean; canListChildren?: boolean; canModifyContent?: boolean; canModifyContentRestriction?: boolean; canModifyEditorContentRestriction?: boolean; canModifyLabels?: boolean; canModifyOwnerContentRestriction?: boolean; canMoveChildrenOutOfDrive?: boolean; canMoveChildrenOutOfTeamDrive?: boolean; canMoveChildrenWithinDrive?: boolean; canMoveChildrenWithinTeamDrive?: boolean; canMoveItemIntoTeamDrive?: boolean; canMoveItemOutOfDrive?: boolean; canMoveItemOutOfTeamDrive?: boolean; canMoveItemWithinDrive?: boolean; canMoveItemWithinTeamDrive?: boolean; canMoveTeamDriveItem?: boolean; canReadDrive?: boolean; canReadLabels?: boolean; canReadRevisions?: boolean; canReadTeamDrive?: boolean; canRemoveChildren?: boolean; canRemoveContentRestriction?: boolean; canRemoveMyDriveParent?: boolean; canRename?: boolean; canShare?: boolean; canTrash?: boolean; canTrashChildren?: boolean; canUntrash?: boolean }; contentHints?: { indexableText?: string; thumbnail?: { image?: string; mimeType?: string } }; contentRestrictions?: ({ ownerRestricted?: boolean; readOnly?: boolean; reason?: string; restrictingUser?: { displayName?: string; emailAddress?: string; kind?: string; me?: boolean; permissionId?: string; photoLink?: string }; restrictionTime?: string; systemRestricted?: boolean; type?: string })[]; copyRequiresWriterPermission?: boolean; createdTime?: string; description?: string; driveId?: string; explicitlyTrashed?: boolean; exportLinks?: { [key: string]: string | undefined }; fileExtension?: string; folderColorRgb?: string; fullFileExtension?: string; hasAugmentedPermissions?: boolean; hasThumbnail?: boolean; headRevisionId?: string; iconLink?: string; id?: string; imageMediaMetadata?: { aperture?: number; cameraMake?: string; cameraModel?: string; colorSpace?: string; exposureBias?: number; exposureMode?: string; exposureTime?: number; flashUsed?: boolean; focalLength?: number; height?: number; isoSpeed?: number; lens?: string; location?: { altitude?: number; latitude?: number; longitude?: number }; maxApertureValue?: number; meteringMode?: string; rotation?: number; sensor?: string; subjectDistance?: number; time?: string; whiteBalance?: string; width?: number }; isAppAuthorized?: boolean; kind?: string; labelInfo?: { labels?: ({ fields?: { [key: string]: { dateString?: (string)[]; id?: string; integer?: (string)[]; kind?: string; selection?: (string)[]; text?: (string)[]; user?: ({ displayName?: string; emailAddress?: string; kind?: string; me?: boolean; permissionId?: string; photoLink?: string })[]; valueType?: string } | undefined }; id?: string; kind?: string; revisionId?: string })[] }; lastModifyingUser?: { displayName?: string; emailAddress?: string; kind?: string; me?: boolean; permissionId?: string; photoLink?: string }; linkShareMetadata?: { securityUpdateEligible?: boolean; securityUpdateEnabled?: boolean }; md5Checksum?: string; mimeType?: string; modifiedByMe?: boolean; modifiedByMeTime?: string; modifiedTime?: string; name?: string; originalFilename?: string; ownedByMe?: boolean; owners?: ({ displayName?: string; emailAddress?: string; kind?: string; me?: boolean; permissionId?: string; photoLink?: string })[]; parents?: (string)[]; permissionIds?: (string)[]; permissions?: ({ allowFileDiscovery?: boolean; deleted?: boolean; displayName?: string; domain?: string; emailAddress?: string; expirationTime?: string; id?: string; kind?: string; pendingOwner?: boolean; permissionDetails?: ({ inherited?: boolean; inheritedFrom?: string; permissionType?: string; role?: string })[]; photoLink?: string; role?: string; teamDrivePermissionDetails?: ({ inherited?: boolean; inheritedFrom?: string; role?: string; teamDrivePermissionType?: string })[]; type?: string; view?: string })[]; properties?: { [key: string]: string | undefined }; quotaBytesUsed?: string; resourceKey?: string; sha1Checksum?: string; sha256Checksum?: string; shared?: boolean; sharedWithMeTime?: string; sharingUser?: { displayName?: string; emailAddress?: string; kind?: string; me?: boolean; permissionId?: string; photoLink?: string }; shortcutDetails?: { targetId?: string; targetMimeType?: string; targetResourceKey?: string }; size?: string; spaces?: (string)[]; starred?: boolean; teamDriveId?: string; thumbnailLink?: string; thumbnailVersion?: string; trashed?: boolean; trashedTime?: string; trashingUser?: { displayName?: string; emailAddress?: string; kind?: string; me?: boolean; permissionId?: string; photoLink?: string }; version?: string; videoMediaMetadata?: { durationMillis?: string; height?: number; width?: number }; viewedByMe?: boolean; viewedByMeTime?: string; viewersCanCopyContent?: boolean; webContentLink?: string; webViewLink?: string; writersCanShare?: boolean }>;
|
|
122
|
+
/**
|
|
123
|
+
* Creates a new file. This method supports an *\/upload* URI and accepts uploaded media with the following characteristics: - *Maximum file size:* 5,120 GB - *Accepted Media MIME types:*`*\/*` Note: Specify a valid MIME type, rather than the literal `*\/*` value. The literal `*\/*` is only used to indicate that any valid MIME type can be uploaded. For more information on uploading files, see [Upload file data](/drive/api/guides/manage-uploads). Apps creating shortcuts with `files.create` must specify the MIME type `application/vnd.google-apps.shortcut`. Apps should specify a file extension in the `name` property when inserting files with the API. For example, an operation to insert a JPEG file should specify something like `"name": "cat.jpg"` in the metadata. Subsequent `GET` requests include the read-only `fileExtension` property populated with the extension originally specified in the `title` property. When a Google Drive user requests to download a file, or when the file is downloaded through the sync client, Drive builds a full filename (with extension) based on the title. In cases where the extension is missing, Drive attempts to determine the extension based on the file's MIME type.
|
|
124
|
+
* Tags: files
|
|
125
|
+
* Access as: google/drive.filesCreate(input)
|
|
126
|
+
*/
|
|
127
|
+
filesCreate: (input: { appProperties?: { [key: string]: string | undefined }; capabilities?: { canAcceptOwnership?: boolean; canAddChildren?: boolean; canAddFolderFromAnotherDrive?: boolean; canAddMyDriveParent?: boolean; canChangeCopyRequiresWriterPermission?: boolean; canChangeSecurityUpdateEnabled?: boolean; canChangeViewersCanCopyContent?: boolean; canComment?: boolean; canCopy?: boolean; canDelete?: boolean; canDeleteChildren?: boolean; canDownload?: boolean; canEdit?: boolean; canListChildren?: boolean; canModifyContent?: boolean; canModifyContentRestriction?: boolean; canModifyEditorContentRestriction?: boolean; canModifyLabels?: boolean; canModifyOwnerContentRestriction?: boolean; canMoveChildrenOutOfDrive?: boolean; canMoveChildrenOutOfTeamDrive?: boolean; canMoveChildrenWithinDrive?: boolean; canMoveChildrenWithinTeamDrive?: boolean; canMoveItemIntoTeamDrive?: boolean; canMoveItemOutOfDrive?: boolean; canMoveItemOutOfTeamDrive?: boolean; canMoveItemWithinDrive?: boolean; canMoveItemWithinTeamDrive?: boolean; canMoveTeamDriveItem?: boolean; canReadDrive?: boolean; canReadLabels?: boolean; canReadRevisions?: boolean; canReadTeamDrive?: boolean; canRemoveChildren?: boolean; canRemoveContentRestriction?: boolean; canRemoveMyDriveParent?: boolean; canRename?: boolean; canShare?: boolean; canTrash?: boolean; canTrashChildren?: boolean; canUntrash?: boolean }; contentHints?: { indexableText?: string; thumbnail?: { image?: string; mimeType?: string } }; contentRestrictions?: ({ ownerRestricted?: boolean; readOnly?: boolean; reason?: string; restrictingUser?: { displayName?: string; emailAddress?: string; kind?: string; me?: boolean; permissionId?: string; photoLink?: string }; restrictionTime?: string; systemRestricted?: boolean; type?: string })[]; copyRequiresWriterPermission?: boolean; createdTime?: string; description?: string; driveId?: string; explicitlyTrashed?: boolean; exportLinks?: { [key: string]: string | undefined }; fileExtension?: string; folderColorRgb?: string; fullFileExtension?: string; hasAugmentedPermissions?: boolean; hasThumbnail?: boolean; headRevisionId?: string; iconLink?: string; id?: string; imageMediaMetadata?: { aperture?: number; cameraMake?: string; cameraModel?: string; colorSpace?: string; exposureBias?: number; exposureMode?: string; exposureTime?: number; flashUsed?: boolean; focalLength?: number; height?: number; isoSpeed?: number; lens?: string; location?: { altitude?: number; latitude?: number; longitude?: number }; maxApertureValue?: number; meteringMode?: string; rotation?: number; sensor?: string; subjectDistance?: number; time?: string; whiteBalance?: string; width?: number }; isAppAuthorized?: boolean; kind?: string; labelInfo?: { labels?: ({ fields?: { [key: string]: { dateString?: (string)[]; id?: string; integer?: (string)[]; kind?: string; selection?: (string)[]; text?: (string)[]; user?: ({ displayName?: string; emailAddress?: string; kind?: string; me?: boolean; permissionId?: string; photoLink?: string })[]; valueType?: string } | undefined }; id?: string; kind?: string; revisionId?: string })[] }; lastModifyingUser?: { displayName?: string; emailAddress?: string; kind?: string; me?: boolean; permissionId?: string; photoLink?: string }; linkShareMetadata?: { securityUpdateEligible?: boolean; securityUpdateEnabled?: boolean }; md5Checksum?: string; mimeType?: string; modifiedByMe?: boolean; modifiedByMeTime?: string; modifiedTime?: string; name?: string; originalFilename?: string; ownedByMe?: boolean; owners?: ({ displayName?: string; emailAddress?: string; kind?: string; me?: boolean; permissionId?: string; photoLink?: string })[]; parents?: (string)[]; permissionIds?: (string)[]; permissions?: ({ allowFileDiscovery?: boolean; deleted?: boolean; displayName?: string; domain?: string; emailAddress?: string; expirationTime?: string; id?: string; kind?: string; pendingOwner?: boolean; permissionDetails?: ({ inherited?: boolean; inheritedFrom?: string; permissionType?: string; role?: string })[]; photoLink?: string; role?: string; teamDrivePermissionDetails?: ({ inherited?: boolean; inheritedFrom?: string; role?: string; teamDrivePermissionType?: string })[]; type?: string; view?: string })[]; properties?: { [key: string]: string | undefined }; quotaBytesUsed?: string; resourceKey?: string; sha1Checksum?: string; sha256Checksum?: string; shared?: boolean; sharedWithMeTime?: string; sharingUser?: { displayName?: string; emailAddress?: string; kind?: string; me?: boolean; permissionId?: string; photoLink?: string }; shortcutDetails?: { targetId?: string; targetMimeType?: string; targetResourceKey?: string }; size?: string; spaces?: (string)[]; starred?: boolean; teamDriveId?: string; thumbnailLink?: string; thumbnailVersion?: string; trashed?: boolean; trashedTime?: string; trashingUser?: { displayName?: string; emailAddress?: string; kind?: string; me?: boolean; permissionId?: string; photoLink?: string }; version?: string; videoMediaMetadata?: { durationMillis?: string; height?: number; width?: number }; viewedByMe?: boolean; viewedByMeTime?: string; viewersCanCopyContent?: boolean; webContentLink?: string; webViewLink?: string; writersCanShare?: boolean; "$.xgafv"?: "1" | "2"; access_token?: string; alt?: "json" | "media" | "proto"; callback?: string; fields?: string; key?: string; oauth_token?: string; prettyPrint?: boolean; quotaUser?: string; upload_protocol?: string; uploadType?: string; enforceSingleParent?: boolean; ignoreDefaultVisibility?: boolean; includeLabels?: string; includePermissionsForView?: string; keepRevisionForever?: boolean; ocrLanguage?: string; supportsAllDrives?: boolean; supportsTeamDrives?: boolean; useContentAsIndexableText?: boolean }) => Promise<{ appProperties?: { [key: string]: string | undefined }; capabilities?: { canAcceptOwnership?: boolean; canAddChildren?: boolean; canAddFolderFromAnotherDrive?: boolean; canAddMyDriveParent?: boolean; canChangeCopyRequiresWriterPermission?: boolean; canChangeSecurityUpdateEnabled?: boolean; canChangeViewersCanCopyContent?: boolean; canComment?: boolean; canCopy?: boolean; canDelete?: boolean; canDeleteChildren?: boolean; canDownload?: boolean; canEdit?: boolean; canListChildren?: boolean; canModifyContent?: boolean; canModifyContentRestriction?: boolean; canModifyEditorContentRestriction?: boolean; canModifyLabels?: boolean; canModifyOwnerContentRestriction?: boolean; canMoveChildrenOutOfDrive?: boolean; canMoveChildrenOutOfTeamDrive?: boolean; canMoveChildrenWithinDrive?: boolean; canMoveChildrenWithinTeamDrive?: boolean; canMoveItemIntoTeamDrive?: boolean; canMoveItemOutOfDrive?: boolean; canMoveItemOutOfTeamDrive?: boolean; canMoveItemWithinDrive?: boolean; canMoveItemWithinTeamDrive?: boolean; canMoveTeamDriveItem?: boolean; canReadDrive?: boolean; canReadLabels?: boolean; canReadRevisions?: boolean; canReadTeamDrive?: boolean; canRemoveChildren?: boolean; canRemoveContentRestriction?: boolean; canRemoveMyDriveParent?: boolean; canRename?: boolean; canShare?: boolean; canTrash?: boolean; canTrashChildren?: boolean; canUntrash?: boolean }; contentHints?: { indexableText?: string; thumbnail?: { image?: string; mimeType?: string } }; contentRestrictions?: ({ ownerRestricted?: boolean; readOnly?: boolean; reason?: string; restrictingUser?: { displayName?: string; emailAddress?: string; kind?: string; me?: boolean; permissionId?: string; photoLink?: string }; restrictionTime?: string; systemRestricted?: boolean; type?: string })[]; copyRequiresWriterPermission?: boolean; createdTime?: string; description?: string; driveId?: string; explicitlyTrashed?: boolean; exportLinks?: { [key: string]: string | undefined }; fileExtension?: string; folderColorRgb?: string; fullFileExtension?: string; hasAugmentedPermissions?: boolean; hasThumbnail?: boolean; headRevisionId?: string; iconLink?: string; id?: string; imageMediaMetadata?: { aperture?: number; cameraMake?: string; cameraModel?: string; colorSpace?: string; exposureBias?: number; exposureMode?: string; exposureTime?: number; flashUsed?: boolean; focalLength?: number; height?: number; isoSpeed?: number; lens?: string; location?: { altitude?: number; latitude?: number; longitude?: number }; maxApertureValue?: number; meteringMode?: string; rotation?: number; sensor?: string; subjectDistance?: number; time?: string; whiteBalance?: string; width?: number }; isAppAuthorized?: boolean; kind?: string; labelInfo?: { labels?: ({ fields?: { [key: string]: { dateString?: (string)[]; id?: string; integer?: (string)[]; kind?: string; selection?: (string)[]; text?: (string)[]; user?: ({ displayName?: string; emailAddress?: string; kind?: string; me?: boolean; permissionId?: string; photoLink?: string })[]; valueType?: string } | undefined }; id?: string; kind?: string; revisionId?: string })[] }; lastModifyingUser?: { displayName?: string; emailAddress?: string; kind?: string; me?: boolean; permissionId?: string; photoLink?: string }; linkShareMetadata?: { securityUpdateEligible?: boolean; securityUpdateEnabled?: boolean }; md5Checksum?: string; mimeType?: string; modifiedByMe?: boolean; modifiedByMeTime?: string; modifiedTime?: string; name?: string; originalFilename?: string; ownedByMe?: boolean; owners?: ({ displayName?: string; emailAddress?: string; kind?: string; me?: boolean; permissionId?: string; photoLink?: string })[]; parents?: (string)[]; permissionIds?: (string)[]; permissions?: ({ allowFileDiscovery?: boolean; deleted?: boolean; displayName?: string; domain?: string; emailAddress?: string; expirationTime?: string; id?: string; kind?: string; pendingOwner?: boolean; permissionDetails?: ({ inherited?: boolean; inheritedFrom?: string; permissionType?: string; role?: string })[]; photoLink?: string; role?: string; teamDrivePermissionDetails?: ({ inherited?: boolean; inheritedFrom?: string; role?: string; teamDrivePermissionType?: string })[]; type?: string; view?: string })[]; properties?: { [key: string]: string | undefined }; quotaBytesUsed?: string; resourceKey?: string; sha1Checksum?: string; sha256Checksum?: string; shared?: boolean; sharedWithMeTime?: string; sharingUser?: { displayName?: string; emailAddress?: string; kind?: string; me?: boolean; permissionId?: string; photoLink?: string }; shortcutDetails?: { targetId?: string; targetMimeType?: string; targetResourceKey?: string }; size?: string; spaces?: (string)[]; starred?: boolean; teamDriveId?: string; thumbnailLink?: string; thumbnailVersion?: string; trashed?: boolean; trashedTime?: string; trashingUser?: { displayName?: string; emailAddress?: string; kind?: string; me?: boolean; permissionId?: string; photoLink?: string }; version?: string; videoMediaMetadata?: { durationMillis?: string; height?: number; width?: number }; viewedByMe?: boolean; viewedByMeTime?: string; viewersCanCopyContent?: boolean; webContentLink?: string; webViewLink?: string; writersCanShare?: boolean }>;
|
|
128
|
+
/**
|
|
129
|
+
* Permanently deletes a file owned by the user without moving it to the trash. If the file belongs to a shared drive, the user must be an `organizer` on the parent folder. If the target is a folder, all descendants owned by the user are also deleted.
|
|
130
|
+
* Tags: files
|
|
131
|
+
* Access as: google/drive.filesDelete(input)
|
|
132
|
+
*/
|
|
133
|
+
filesDelete: (input: { fileId: string; "$.xgafv"?: "1" | "2"; access_token?: string; alt?: "json" | "media" | "proto"; callback?: string; fields?: string; key?: string; oauth_token?: string; prettyPrint?: boolean; quotaUser?: string; upload_protocol?: string; uploadType?: string; enforceSingleParent?: boolean; supportsAllDrives?: boolean; supportsTeamDrives?: boolean }) => Promise<unknown>;
|
|
134
|
+
/**
|
|
135
|
+
* Permanently deletes all of the user's trashed files.
|
|
136
|
+
* Tags: files
|
|
137
|
+
* Access as: google/drive.filesEmptyTrash(input)
|
|
138
|
+
*/
|
|
139
|
+
filesEmptyTrash: (input: { "$.xgafv"?: "1" | "2"; access_token?: string; alt?: "json" | "media" | "proto"; callback?: string; fields?: string; key?: string; oauth_token?: string; prettyPrint?: boolean; quotaUser?: string; upload_protocol?: string; uploadType?: string; driveId?: string; enforceSingleParent?: boolean }) => Promise<unknown>;
|
|
140
|
+
/**
|
|
141
|
+
* Exports a Google Workspace document to the requested MIME type and returns exported byte content. Note that the exported content is limited to 10MB.
|
|
142
|
+
* Tags: files
|
|
143
|
+
* Access as: google/drive.filesExport(input)
|
|
144
|
+
*/
|
|
145
|
+
filesExport: (input: { fileId: string; "$.xgafv"?: "1" | "2"; access_token?: string; alt?: "json" | "media" | "proto"; callback?: string; fields?: string; key?: string; oauth_token?: string; prettyPrint?: boolean; quotaUser?: string; upload_protocol?: string; uploadType?: string; mimeType: string }) => Promise<unknown>;
|
|
146
|
+
/**
|
|
147
|
+
* Generates a set of file IDs which can be provided in create or copy requests.
|
|
148
|
+
* Tags: files
|
|
149
|
+
* Access as: google/drive.filesGenerateIds(input)
|
|
150
|
+
*/
|
|
151
|
+
filesGenerateIds: (input: { "$.xgafv"?: "1" | "2"; access_token?: string; alt?: "json" | "media" | "proto"; callback?: string; fields?: string; key?: string; oauth_token?: string; prettyPrint?: boolean; quotaUser?: string; upload_protocol?: string; uploadType?: string; count?: number; space?: string; type?: string }) => Promise<{ ids?: (string)[]; kind?: string; space?: string }>;
|
|
152
|
+
/**
|
|
153
|
+
* Gets a file's metadata or content by ID. If you provide the URL parameter `alt=media`, then the response includes the file contents in the response body. Downloading content with `alt=media` only works if the file is stored in Drive. To download Google Docs, Sheets, and Slides use [`files.export`](/drive/api/reference/rest/v3/files/export) instead. For more information, see [Download & export files](/drive/api/guides/manage-downloads).
|
|
154
|
+
* Tags: files
|
|
155
|
+
* Access as: google/drive.filesGet(input)
|
|
156
|
+
*/
|
|
157
|
+
filesGet: (input: { fileId: string; "$.xgafv"?: "1" | "2"; access_token?: string; alt?: "json" | "media" | "proto"; callback?: string; fields?: string; key?: string; oauth_token?: string; prettyPrint?: boolean; quotaUser?: string; upload_protocol?: string; uploadType?: string; acknowledgeAbuse?: boolean; includeLabels?: string; includePermissionsForView?: string; supportsAllDrives?: boolean; supportsTeamDrives?: boolean }) => Promise<{ appProperties?: { [key: string]: string | undefined }; capabilities?: { canAcceptOwnership?: boolean; canAddChildren?: boolean; canAddFolderFromAnotherDrive?: boolean; canAddMyDriveParent?: boolean; canChangeCopyRequiresWriterPermission?: boolean; canChangeSecurityUpdateEnabled?: boolean; canChangeViewersCanCopyContent?: boolean; canComment?: boolean; canCopy?: boolean; canDelete?: boolean; canDeleteChildren?: boolean; canDownload?: boolean; canEdit?: boolean; canListChildren?: boolean; canModifyContent?: boolean; canModifyContentRestriction?: boolean; canModifyEditorContentRestriction?: boolean; canModifyLabels?: boolean; canModifyOwnerContentRestriction?: boolean; canMoveChildrenOutOfDrive?: boolean; canMoveChildrenOutOfTeamDrive?: boolean; canMoveChildrenWithinDrive?: boolean; canMoveChildrenWithinTeamDrive?: boolean; canMoveItemIntoTeamDrive?: boolean; canMoveItemOutOfDrive?: boolean; canMoveItemOutOfTeamDrive?: boolean; canMoveItemWithinDrive?: boolean; canMoveItemWithinTeamDrive?: boolean; canMoveTeamDriveItem?: boolean; canReadDrive?: boolean; canReadLabels?: boolean; canReadRevisions?: boolean; canReadTeamDrive?: boolean; canRemoveChildren?: boolean; canRemoveContentRestriction?: boolean; canRemoveMyDriveParent?: boolean; canRename?: boolean; canShare?: boolean; canTrash?: boolean; canTrashChildren?: boolean; canUntrash?: boolean }; contentHints?: { indexableText?: string; thumbnail?: { image?: string; mimeType?: string } }; contentRestrictions?: ({ ownerRestricted?: boolean; readOnly?: boolean; reason?: string; restrictingUser?: { displayName?: string; emailAddress?: string; kind?: string; me?: boolean; permissionId?: string; photoLink?: string }; restrictionTime?: string; systemRestricted?: boolean; type?: string })[]; copyRequiresWriterPermission?: boolean; createdTime?: string; description?: string; driveId?: string; explicitlyTrashed?: boolean; exportLinks?: { [key: string]: string | undefined }; fileExtension?: string; folderColorRgb?: string; fullFileExtension?: string; hasAugmentedPermissions?: boolean; hasThumbnail?: boolean; headRevisionId?: string; iconLink?: string; id?: string; imageMediaMetadata?: { aperture?: number; cameraMake?: string; cameraModel?: string; colorSpace?: string; exposureBias?: number; exposureMode?: string; exposureTime?: number; flashUsed?: boolean; focalLength?: number; height?: number; isoSpeed?: number; lens?: string; location?: { altitude?: number; latitude?: number; longitude?: number }; maxApertureValue?: number; meteringMode?: string; rotation?: number; sensor?: string; subjectDistance?: number; time?: string; whiteBalance?: string; width?: number }; isAppAuthorized?: boolean; kind?: string; labelInfo?: { labels?: ({ fields?: { [key: string]: { dateString?: (string)[]; id?: string; integer?: (string)[]; kind?: string; selection?: (string)[]; text?: (string)[]; user?: ({ displayName?: string; emailAddress?: string; kind?: string; me?: boolean; permissionId?: string; photoLink?: string })[]; valueType?: string } | undefined }; id?: string; kind?: string; revisionId?: string })[] }; lastModifyingUser?: { displayName?: string; emailAddress?: string; kind?: string; me?: boolean; permissionId?: string; photoLink?: string }; linkShareMetadata?: { securityUpdateEligible?: boolean; securityUpdateEnabled?: boolean }; md5Checksum?: string; mimeType?: string; modifiedByMe?: boolean; modifiedByMeTime?: string; modifiedTime?: string; name?: string; originalFilename?: string; ownedByMe?: boolean; owners?: ({ displayName?: string; emailAddress?: string; kind?: string; me?: boolean; permissionId?: string; photoLink?: string })[]; parents?: (string)[]; permissionIds?: (string)[]; permissions?: ({ allowFileDiscovery?: boolean; deleted?: boolean; displayName?: string; domain?: string; emailAddress?: string; expirationTime?: string; id?: string; kind?: string; pendingOwner?: boolean; permissionDetails?: ({ inherited?: boolean; inheritedFrom?: string; permissionType?: string; role?: string })[]; photoLink?: string; role?: string; teamDrivePermissionDetails?: ({ inherited?: boolean; inheritedFrom?: string; role?: string; teamDrivePermissionType?: string })[]; type?: string; view?: string })[]; properties?: { [key: string]: string | undefined }; quotaBytesUsed?: string; resourceKey?: string; sha1Checksum?: string; sha256Checksum?: string; shared?: boolean; sharedWithMeTime?: string; sharingUser?: { displayName?: string; emailAddress?: string; kind?: string; me?: boolean; permissionId?: string; photoLink?: string }; shortcutDetails?: { targetId?: string; targetMimeType?: string; targetResourceKey?: string }; size?: string; spaces?: (string)[]; starred?: boolean; teamDriveId?: string; thumbnailLink?: string; thumbnailVersion?: string; trashed?: boolean; trashedTime?: string; trashingUser?: { displayName?: string; emailAddress?: string; kind?: string; me?: boolean; permissionId?: string; photoLink?: string }; version?: string; videoMediaMetadata?: { durationMillis?: string; height?: number; width?: number }; viewedByMe?: boolean; viewedByMeTime?: string; viewersCanCopyContent?: boolean; webContentLink?: string; webViewLink?: string; writersCanShare?: boolean }>;
|
|
158
|
+
/**
|
|
159
|
+
* Lists the user's files. This method accepts the `q` parameter, which is a search query combining one or more search terms. For more information, see the [Search for files & folders](/drive/api/guides/search-files) guide. *Note:* This method returns *all* files by default, including trashed files. If you don't want trashed files to appear in the list, use the `trashed=false` query parameter to remove trashed files from the results.
|
|
160
|
+
* Tags: files
|
|
161
|
+
* Access as: google/drive.filesList(input)
|
|
162
|
+
*/
|
|
163
|
+
filesList: (input: { "$.xgafv"?: "1" | "2"; access_token?: string; alt?: "json" | "media" | "proto"; callback?: string; fields?: string; key?: string; oauth_token?: string; prettyPrint?: boolean; quotaUser?: string; upload_protocol?: string; uploadType?: string; corpora?: string; corpus?: "domain" | "user"; driveId?: string; includeItemsFromAllDrives?: boolean; includeLabels?: string; includePermissionsForView?: string; includeTeamDriveItems?: boolean; orderBy?: string; pageSize?: number; pageToken?: string; q?: string; spaces?: string; supportsAllDrives?: boolean; supportsTeamDrives?: boolean; teamDriveId?: string }) => Promise<{ files?: ({ appProperties?: { [key: string]: string | undefined }; capabilities?: { canAcceptOwnership?: boolean; canAddChildren?: boolean; canAddFolderFromAnotherDrive?: boolean; canAddMyDriveParent?: boolean; canChangeCopyRequiresWriterPermission?: boolean; canChangeSecurityUpdateEnabled?: boolean; canChangeViewersCanCopyContent?: boolean; canComment?: boolean; canCopy?: boolean; canDelete?: boolean; canDeleteChildren?: boolean; canDownload?: boolean; canEdit?: boolean; canListChildren?: boolean; canModifyContent?: boolean; canModifyContentRestriction?: boolean; canModifyEditorContentRestriction?: boolean; canModifyLabels?: boolean; canModifyOwnerContentRestriction?: boolean; canMoveChildrenOutOfDrive?: boolean; canMoveChildrenOutOfTeamDrive?: boolean; canMoveChildrenWithinDrive?: boolean; canMoveChildrenWithinTeamDrive?: boolean; canMoveItemIntoTeamDrive?: boolean; canMoveItemOutOfDrive?: boolean; canMoveItemOutOfTeamDrive?: boolean; canMoveItemWithinDrive?: boolean; canMoveItemWithinTeamDrive?: boolean; canMoveTeamDriveItem?: boolean; canReadDrive?: boolean; canReadLabels?: boolean; canReadRevisions?: boolean; canReadTeamDrive?: boolean; canRemoveChildren?: boolean; canRemoveContentRestriction?: boolean; canRemoveMyDriveParent?: boolean; canRename?: boolean; canShare?: boolean; canTrash?: boolean; canTrashChildren?: boolean; canUntrash?: boolean }; contentHints?: { indexableText?: string; thumbnail?: { image?: string; mimeType?: string } }; contentRestrictions?: ({ ownerRestricted?: boolean; readOnly?: boolean; reason?: string; restrictingUser?: { displayName?: string; emailAddress?: string; kind?: string; me?: boolean; permissionId?: string; photoLink?: string }; restrictionTime?: string; systemRestricted?: boolean; type?: string })[]; copyRequiresWriterPermission?: boolean; createdTime?: string; description?: string; driveId?: string; explicitlyTrashed?: boolean; exportLinks?: { [key: string]: string | undefined }; fileExtension?: string; folderColorRgb?: string; fullFileExtension?: string; hasAugmentedPermissions?: boolean; hasThumbnail?: boolean; headRevisionId?: string; iconLink?: string; id?: string; imageMediaMetadata?: { aperture?: number; cameraMake?: string; cameraModel?: string; colorSpace?: string; exposureBias?: number; exposureMode?: string; exposureTime?: number; flashUsed?: boolean; focalLength?: number; height?: number; isoSpeed?: number; lens?: string; location?: { altitude?: number; latitude?: number; longitude?: number }; maxApertureValue?: number; meteringMode?: string; rotation?: number; sensor?: string; subjectDistance?: number; time?: string; whiteBalance?: string; width?: number }; isAppAuthorized?: boolean; kind?: string; labelInfo?: { labels?: ({ fields?: { [key: string]: { dateString?: (string)[]; id?: string; integer?: (string)[]; kind?: string; selection?: (string)[]; text?: (string)[]; user?: ({ displayName?: string; emailAddress?: string; kind?: string; me?: boolean; permissionId?: string; photoLink?: string })[]; valueType?: string } | undefined }; id?: string; kind?: string; revisionId?: string })[] }; lastModifyingUser?: { displayName?: string; emailAddress?: string; kind?: string; me?: boolean; permissionId?: string; photoLink?: string }; linkShareMetadata?: { securityUpdateEligible?: boolean; securityUpdateEnabled?: boolean }; md5Checksum?: string; mimeType?: string; modifiedByMe?: boolean; modifiedByMeTime?: string; modifiedTime?: string; name?: string; originalFilename?: string; ownedByMe?: boolean; owners?: ({ displayName?: string; emailAddress?: string; kind?: string; me?: boolean; permissionId?: string; photoLink?: string })[]; parents?: (string)[]; permissionIds?: (string)[]; permissions?: ({ allowFileDiscovery?: boolean; deleted?: boolean; displayName?: string; domain?: string; emailAddress?: string; expirationTime?: string; id?: string; kind?: string; pendingOwner?: boolean; permissionDetails?: ({ inherited?: boolean; inheritedFrom?: string; permissionType?: string; role?: string })[]; photoLink?: string; role?: string; teamDrivePermissionDetails?: ({ inherited?: boolean; inheritedFrom?: string; role?: string; teamDrivePermissionType?: string })[]; type?: string; view?: string })[]; properties?: { [key: string]: string | undefined }; quotaBytesUsed?: string; resourceKey?: string; sha1Checksum?: string; sha256Checksum?: string; shared?: boolean; sharedWithMeTime?: string; sharingUser?: { displayName?: string; emailAddress?: string; kind?: string; me?: boolean; permissionId?: string; photoLink?: string }; shortcutDetails?: { targetId?: string; targetMimeType?: string; targetResourceKey?: string }; size?: string; spaces?: (string)[]; starred?: boolean; teamDriveId?: string; thumbnailLink?: string; thumbnailVersion?: string; trashed?: boolean; trashedTime?: string; trashingUser?: { displayName?: string; emailAddress?: string; kind?: string; me?: boolean; permissionId?: string; photoLink?: string }; version?: string; videoMediaMetadata?: { durationMillis?: string; height?: number; width?: number }; viewedByMe?: boolean; viewedByMeTime?: string; viewersCanCopyContent?: boolean; webContentLink?: string; webViewLink?: string; writersCanShare?: boolean })[]; incompleteSearch?: boolean; kind?: string; nextPageToken?: string }>;
|
|
164
|
+
/**
|
|
165
|
+
* Lists the labels on a file.
|
|
166
|
+
* Tags: files
|
|
167
|
+
* Access as: google/drive.filesListLabels(input)
|
|
168
|
+
*/
|
|
169
|
+
filesListLabels: (input: { fileId: string; "$.xgafv"?: "1" | "2"; access_token?: string; alt?: "json" | "media" | "proto"; callback?: string; fields?: string; key?: string; oauth_token?: string; prettyPrint?: boolean; quotaUser?: string; upload_protocol?: string; uploadType?: string; maxResults?: number; pageToken?: string }) => Promise<{ kind?: string; labels?: ({ fields?: { [key: string]: { dateString?: (string)[]; id?: string; integer?: (string)[]; kind?: string; selection?: (string)[]; text?: (string)[]; user?: ({ displayName?: string; emailAddress?: string; kind?: string; me?: boolean; permissionId?: string; photoLink?: string })[]; valueType?: string } | undefined }; id?: string; kind?: string; revisionId?: string })[]; nextPageToken?: string }>;
|
|
170
|
+
/**
|
|
171
|
+
* Modifies the set of labels applied to a file. Returns a list of the labels that were added or modified.
|
|
172
|
+
* Tags: files
|
|
173
|
+
* Access as: google/drive.filesModifyLabels(input)
|
|
174
|
+
*/
|
|
175
|
+
filesModifyLabels: (input: { kind?: string; labelModifications?: ({ fieldModifications?: ({ fieldId?: string; kind?: string; setDateValues?: (string)[]; setIntegerValues?: (string)[]; setSelectionValues?: (string)[]; setTextValues?: (string)[]; setUserValues?: (string)[]; unsetValues?: boolean })[]; kind?: string; labelId?: string; removeLabel?: boolean })[]; fileId: string; "$.xgafv"?: "1" | "2"; access_token?: string; alt?: "json" | "media" | "proto"; callback?: string; fields?: string; key?: string; oauth_token?: string; prettyPrint?: boolean; quotaUser?: string; upload_protocol?: string; uploadType?: string }) => Promise<{ kind?: string; modifiedLabels?: ({ fields?: { [key: string]: { dateString?: (string)[]; id?: string; integer?: (string)[]; kind?: string; selection?: (string)[]; text?: (string)[]; user?: ({ displayName?: string; emailAddress?: string; kind?: string; me?: boolean; permissionId?: string; photoLink?: string })[]; valueType?: string } | undefined }; id?: string; kind?: string; revisionId?: string })[] }>;
|
|
176
|
+
/**
|
|
177
|
+
* 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 be changed automatically, such as `modifiedDate`. This method supports patch semantics. This method supports an *\/upload* URI and accepts uploaded media with the following characteristics: - *Maximum file size:* 5,120 GB - *Accepted Media MIME types:*`*\/*` Note: Specify a valid MIME type, rather than the literal `*\/*` value. The literal `*\/*` is only used to indicate that any valid MIME type can be uploaded. For more information on uploading files, see [Upload file data](/drive/api/guides/manage-uploads).
|
|
178
|
+
* Tags: files
|
|
179
|
+
* Access as: google/drive.filesUpdate(input)
|
|
180
|
+
*/
|
|
181
|
+
filesUpdate: (input: { appProperties?: { [key: string]: string | undefined }; capabilities?: { canAcceptOwnership?: boolean; canAddChildren?: boolean; canAddFolderFromAnotherDrive?: boolean; canAddMyDriveParent?: boolean; canChangeCopyRequiresWriterPermission?: boolean; canChangeSecurityUpdateEnabled?: boolean; canChangeViewersCanCopyContent?: boolean; canComment?: boolean; canCopy?: boolean; canDelete?: boolean; canDeleteChildren?: boolean; canDownload?: boolean; canEdit?: boolean; canListChildren?: boolean; canModifyContent?: boolean; canModifyContentRestriction?: boolean; canModifyEditorContentRestriction?: boolean; canModifyLabels?: boolean; canModifyOwnerContentRestriction?: boolean; canMoveChildrenOutOfDrive?: boolean; canMoveChildrenOutOfTeamDrive?: boolean; canMoveChildrenWithinDrive?: boolean; canMoveChildrenWithinTeamDrive?: boolean; canMoveItemIntoTeamDrive?: boolean; canMoveItemOutOfDrive?: boolean; canMoveItemOutOfTeamDrive?: boolean; canMoveItemWithinDrive?: boolean; canMoveItemWithinTeamDrive?: boolean; canMoveTeamDriveItem?: boolean; canReadDrive?: boolean; canReadLabels?: boolean; canReadRevisions?: boolean; canReadTeamDrive?: boolean; canRemoveChildren?: boolean; canRemoveContentRestriction?: boolean; canRemoveMyDriveParent?: boolean; canRename?: boolean; canShare?: boolean; canTrash?: boolean; canTrashChildren?: boolean; canUntrash?: boolean }; contentHints?: { indexableText?: string; thumbnail?: { image?: string; mimeType?: string } }; contentRestrictions?: ({ ownerRestricted?: boolean; readOnly?: boolean; reason?: string; restrictingUser?: { displayName?: string; emailAddress?: string; kind?: string; me?: boolean; permissionId?: string; photoLink?: string }; restrictionTime?: string; systemRestricted?: boolean; type?: string })[]; copyRequiresWriterPermission?: boolean; createdTime?: string; description?: string; driveId?: string; explicitlyTrashed?: boolean; exportLinks?: { [key: string]: string | undefined }; fileExtension?: string; folderColorRgb?: string; fullFileExtension?: string; hasAugmentedPermissions?: boolean; hasThumbnail?: boolean; headRevisionId?: string; iconLink?: string; id?: string; imageMediaMetadata?: { aperture?: number; cameraMake?: string; cameraModel?: string; colorSpace?: string; exposureBias?: number; exposureMode?: string; exposureTime?: number; flashUsed?: boolean; focalLength?: number; height?: number; isoSpeed?: number; lens?: string; location?: { altitude?: number; latitude?: number; longitude?: number }; maxApertureValue?: number; meteringMode?: string; rotation?: number; sensor?: string; subjectDistance?: number; time?: string; whiteBalance?: string; width?: number }; isAppAuthorized?: boolean; kind?: string; labelInfo?: { labels?: ({ fields?: { [key: string]: { dateString?: (string)[]; id?: string; integer?: (string)[]; kind?: string; selection?: (string)[]; text?: (string)[]; user?: ({ displayName?: string; emailAddress?: string; kind?: string; me?: boolean; permissionId?: string; photoLink?: string })[]; valueType?: string } | undefined }; id?: string; kind?: string; revisionId?: string })[] }; lastModifyingUser?: { displayName?: string; emailAddress?: string; kind?: string; me?: boolean; permissionId?: string; photoLink?: string }; linkShareMetadata?: { securityUpdateEligible?: boolean; securityUpdateEnabled?: boolean }; md5Checksum?: string; mimeType?: string; modifiedByMe?: boolean; modifiedByMeTime?: string; modifiedTime?: string; name?: string; originalFilename?: string; ownedByMe?: boolean; owners?: ({ displayName?: string; emailAddress?: string; kind?: string; me?: boolean; permissionId?: string; photoLink?: string })[]; parents?: (string)[]; permissionIds?: (string)[]; permissions?: ({ allowFileDiscovery?: boolean; deleted?: boolean; displayName?: string; domain?: string; emailAddress?: string; expirationTime?: string; id?: string; kind?: string; pendingOwner?: boolean; permissionDetails?: ({ inherited?: boolean; inheritedFrom?: string; permissionType?: string; role?: string })[]; photoLink?: string; role?: string; teamDrivePermissionDetails?: ({ inherited?: boolean; inheritedFrom?: string; role?: string; teamDrivePermissionType?: string })[]; type?: string; view?: string })[]; properties?: { [key: string]: string | undefined }; quotaBytesUsed?: string; resourceKey?: string; sha1Checksum?: string; sha256Checksum?: string; shared?: boolean; sharedWithMeTime?: string; sharingUser?: { displayName?: string; emailAddress?: string; kind?: string; me?: boolean; permissionId?: string; photoLink?: string }; shortcutDetails?: { targetId?: string; targetMimeType?: string; targetResourceKey?: string }; size?: string; spaces?: (string)[]; starred?: boolean; teamDriveId?: string; thumbnailLink?: string; thumbnailVersion?: string; trashed?: boolean; trashedTime?: string; trashingUser?: { displayName?: string; emailAddress?: string; kind?: string; me?: boolean; permissionId?: string; photoLink?: string }; version?: string; videoMediaMetadata?: { durationMillis?: string; height?: number; width?: number }; viewedByMe?: boolean; viewedByMeTime?: string; viewersCanCopyContent?: boolean; webContentLink?: string; webViewLink?: string; writersCanShare?: boolean; fileId: string; "$.xgafv"?: "1" | "2"; access_token?: string; alt?: "json" | "media" | "proto"; callback?: string; fields?: string; key?: string; oauth_token?: string; prettyPrint?: boolean; quotaUser?: string; upload_protocol?: string; uploadType?: string; addParents?: string; enforceSingleParent?: boolean; includeLabels?: string; includePermissionsForView?: string; keepRevisionForever?: boolean; ocrLanguage?: string; removeParents?: string; supportsAllDrives?: boolean; supportsTeamDrives?: boolean; useContentAsIndexableText?: boolean }) => Promise<{ appProperties?: { [key: string]: string | undefined }; capabilities?: { canAcceptOwnership?: boolean; canAddChildren?: boolean; canAddFolderFromAnotherDrive?: boolean; canAddMyDriveParent?: boolean; canChangeCopyRequiresWriterPermission?: boolean; canChangeSecurityUpdateEnabled?: boolean; canChangeViewersCanCopyContent?: boolean; canComment?: boolean; canCopy?: boolean; canDelete?: boolean; canDeleteChildren?: boolean; canDownload?: boolean; canEdit?: boolean; canListChildren?: boolean; canModifyContent?: boolean; canModifyContentRestriction?: boolean; canModifyEditorContentRestriction?: boolean; canModifyLabels?: boolean; canModifyOwnerContentRestriction?: boolean; canMoveChildrenOutOfDrive?: boolean; canMoveChildrenOutOfTeamDrive?: boolean; canMoveChildrenWithinDrive?: boolean; canMoveChildrenWithinTeamDrive?: boolean; canMoveItemIntoTeamDrive?: boolean; canMoveItemOutOfDrive?: boolean; canMoveItemOutOfTeamDrive?: boolean; canMoveItemWithinDrive?: boolean; canMoveItemWithinTeamDrive?: boolean; canMoveTeamDriveItem?: boolean; canReadDrive?: boolean; canReadLabels?: boolean; canReadRevisions?: boolean; canReadTeamDrive?: boolean; canRemoveChildren?: boolean; canRemoveContentRestriction?: boolean; canRemoveMyDriveParent?: boolean; canRename?: boolean; canShare?: boolean; canTrash?: boolean; canTrashChildren?: boolean; canUntrash?: boolean }; contentHints?: { indexableText?: string; thumbnail?: { image?: string; mimeType?: string } }; contentRestrictions?: ({ ownerRestricted?: boolean; readOnly?: boolean; reason?: string; restrictingUser?: { displayName?: string; emailAddress?: string; kind?: string; me?: boolean; permissionId?: string; photoLink?: string }; restrictionTime?: string; systemRestricted?: boolean; type?: string })[]; copyRequiresWriterPermission?: boolean; createdTime?: string; description?: string; driveId?: string; explicitlyTrashed?: boolean; exportLinks?: { [key: string]: string | undefined }; fileExtension?: string; folderColorRgb?: string; fullFileExtension?: string; hasAugmentedPermissions?: boolean; hasThumbnail?: boolean; headRevisionId?: string; iconLink?: string; id?: string; imageMediaMetadata?: { aperture?: number; cameraMake?: string; cameraModel?: string; colorSpace?: string; exposureBias?: number; exposureMode?: string; exposureTime?: number; flashUsed?: boolean; focalLength?: number; height?: number; isoSpeed?: number; lens?: string; location?: { altitude?: number; latitude?: number; longitude?: number }; maxApertureValue?: number; meteringMode?: string; rotation?: number; sensor?: string; subjectDistance?: number; time?: string; whiteBalance?: string; width?: number }; isAppAuthorized?: boolean; kind?: string; labelInfo?: { labels?: ({ fields?: { [key: string]: { dateString?: (string)[]; id?: string; integer?: (string)[]; kind?: string; selection?: (string)[]; text?: (string)[]; user?: ({ displayName?: string; emailAddress?: string; kind?: string; me?: boolean; permissionId?: string; photoLink?: string })[]; valueType?: string } | undefined }; id?: string; kind?: string; revisionId?: string })[] }; lastModifyingUser?: { displayName?: string; emailAddress?: string; kind?: string; me?: boolean; permissionId?: string; photoLink?: string }; linkShareMetadata?: { securityUpdateEligible?: boolean; securityUpdateEnabled?: boolean }; md5Checksum?: string; mimeType?: string; modifiedByMe?: boolean; modifiedByMeTime?: string; modifiedTime?: string; name?: string; originalFilename?: string; ownedByMe?: boolean; owners?: ({ displayName?: string; emailAddress?: string; kind?: string; me?: boolean; permissionId?: string; photoLink?: string })[]; parents?: (string)[]; permissionIds?: (string)[]; permissions?: ({ allowFileDiscovery?: boolean; deleted?: boolean; displayName?: string; domain?: string; emailAddress?: string; expirationTime?: string; id?: string; kind?: string; pendingOwner?: boolean; permissionDetails?: ({ inherited?: boolean; inheritedFrom?: string; permissionType?: string; role?: string })[]; photoLink?: string; role?: string; teamDrivePermissionDetails?: ({ inherited?: boolean; inheritedFrom?: string; role?: string; teamDrivePermissionType?: string })[]; type?: string; view?: string })[]; properties?: { [key: string]: string | undefined }; quotaBytesUsed?: string; resourceKey?: string; sha1Checksum?: string; sha256Checksum?: string; shared?: boolean; sharedWithMeTime?: string; sharingUser?: { displayName?: string; emailAddress?: string; kind?: string; me?: boolean; permissionId?: string; photoLink?: string }; shortcutDetails?: { targetId?: string; targetMimeType?: string; targetResourceKey?: string }; size?: string; spaces?: (string)[]; starred?: boolean; teamDriveId?: string; thumbnailLink?: string; thumbnailVersion?: string; trashed?: boolean; trashedTime?: string; trashingUser?: { displayName?: string; emailAddress?: string; kind?: string; me?: boolean; permissionId?: string; photoLink?: string }; version?: string; videoMediaMetadata?: { durationMillis?: string; height?: number; width?: number }; viewedByMe?: boolean; viewedByMeTime?: string; viewersCanCopyContent?: boolean; webContentLink?: string; webViewLink?: string; writersCanShare?: boolean }>;
|
|
182
|
+
/**
|
|
183
|
+
* Subscribes to changes to a file.
|
|
184
|
+
* Tags: files
|
|
185
|
+
* Access as: google/drive.filesWatch(input)
|
|
186
|
+
*/
|
|
187
|
+
filesWatch: (input: { address?: string; expiration?: string; id?: string; kind?: string; params?: { [key: string]: string | undefined }; payload?: boolean; resourceId?: string; resourceUri?: string; token?: string; type?: string; fileId: string; "$.xgafv"?: "1" | "2"; access_token?: string; alt?: "json" | "media" | "proto"; callback?: string; fields?: string; key?: string; oauth_token?: string; prettyPrint?: boolean; quotaUser?: string; upload_protocol?: string; uploadType?: string; acknowledgeAbuse?: boolean; includeLabels?: string; includePermissionsForView?: string; supportsAllDrives?: boolean; supportsTeamDrives?: boolean }) => Promise<{ address?: string; expiration?: string; id?: string; kind?: string; params?: { [key: string]: string | undefined }; payload?: boolean; resourceId?: string; resourceUri?: string; token?: string; type?: string }>;
|
|
188
|
+
/**
|
|
189
|
+
* Creates a permission for a file or shared drive. **Warning:** Concurrent permissions operations on the same file are not supported; only the last update is applied.
|
|
190
|
+
* Tags: permissions
|
|
191
|
+
* Access as: google/drive.permissionsCreate(input)
|
|
192
|
+
*/
|
|
193
|
+
permissionsCreate: (input: { allowFileDiscovery?: boolean; deleted?: boolean; displayName?: string; domain?: string; emailAddress?: string; expirationTime?: string; id?: string; kind?: string; pendingOwner?: boolean; permissionDetails?: ({ inherited?: boolean; inheritedFrom?: string; permissionType?: string; role?: string })[]; photoLink?: string; role?: string; teamDrivePermissionDetails?: ({ inherited?: boolean; inheritedFrom?: string; role?: string; teamDrivePermissionType?: string })[]; type?: string; view?: string; fileId: string; "$.xgafv"?: "1" | "2"; access_token?: string; alt?: "json" | "media" | "proto"; callback?: string; fields?: string; key?: string; oauth_token?: string; prettyPrint?: boolean; quotaUser?: string; upload_protocol?: string; uploadType?: string; emailMessage?: string; enforceSingleParent?: boolean; moveToNewOwnersRoot?: boolean; sendNotificationEmail?: boolean; supportsAllDrives?: boolean; supportsTeamDrives?: boolean; transferOwnership?: boolean; useDomainAdminAccess?: boolean }) => Promise<{ allowFileDiscovery?: boolean; deleted?: boolean; displayName?: string; domain?: string; emailAddress?: string; expirationTime?: string; id?: string; kind?: string; pendingOwner?: boolean; permissionDetails?: ({ inherited?: boolean; inheritedFrom?: string; permissionType?: string; role?: string })[]; photoLink?: string; role?: string; teamDrivePermissionDetails?: ({ inherited?: boolean; inheritedFrom?: string; role?: string; teamDrivePermissionType?: string })[]; type?: string; view?: string }>;
|
|
194
|
+
/**
|
|
195
|
+
* Deletes a permission. **Warning:** Concurrent permissions operations on the same file are not supported; only the last update is applied.
|
|
196
|
+
* Tags: permissions
|
|
197
|
+
* Access as: google/drive.permissionsDelete(input)
|
|
198
|
+
*/
|
|
199
|
+
permissionsDelete: (input: { fileId: string; permissionId: string; "$.xgafv"?: "1" | "2"; access_token?: string; alt?: "json" | "media" | "proto"; callback?: string; fields?: string; key?: string; oauth_token?: string; prettyPrint?: boolean; quotaUser?: string; upload_protocol?: string; uploadType?: string; supportsAllDrives?: boolean; supportsTeamDrives?: boolean; useDomainAdminAccess?: boolean }) => Promise<unknown>;
|
|
200
|
+
/**
|
|
201
|
+
* Gets a permission by ID.
|
|
202
|
+
* Tags: permissions
|
|
203
|
+
* Access as: google/drive.permissionsGet(input)
|
|
204
|
+
*/
|
|
205
|
+
permissionsGet: (input: { fileId: string; permissionId: string; "$.xgafv"?: "1" | "2"; access_token?: string; alt?: "json" | "media" | "proto"; callback?: string; fields?: string; key?: string; oauth_token?: string; prettyPrint?: boolean; quotaUser?: string; upload_protocol?: string; uploadType?: string; supportsAllDrives?: boolean; supportsTeamDrives?: boolean; useDomainAdminAccess?: boolean }) => Promise<{ allowFileDiscovery?: boolean; deleted?: boolean; displayName?: string; domain?: string; emailAddress?: string; expirationTime?: string; id?: string; kind?: string; pendingOwner?: boolean; permissionDetails?: ({ inherited?: boolean; inheritedFrom?: string; permissionType?: string; role?: string })[]; photoLink?: string; role?: string; teamDrivePermissionDetails?: ({ inherited?: boolean; inheritedFrom?: string; role?: string; teamDrivePermissionType?: string })[]; type?: string; view?: string }>;
|
|
206
|
+
/**
|
|
207
|
+
* Lists a file's or shared drive's permissions.
|
|
208
|
+
* Tags: permissions
|
|
209
|
+
* Access as: google/drive.permissionsList(input)
|
|
210
|
+
*/
|
|
211
|
+
permissionsList: (input: { fileId: string; "$.xgafv"?: "1" | "2"; access_token?: string; alt?: "json" | "media" | "proto"; callback?: string; fields?: string; key?: string; oauth_token?: string; prettyPrint?: boolean; quotaUser?: string; upload_protocol?: string; uploadType?: string; includePermissionsForView?: string; pageSize?: number; pageToken?: string; supportsAllDrives?: boolean; supportsTeamDrives?: boolean; useDomainAdminAccess?: boolean }) => Promise<{ kind?: string; nextPageToken?: string; permissions?: ({ allowFileDiscovery?: boolean; deleted?: boolean; displayName?: string; domain?: string; emailAddress?: string; expirationTime?: string; id?: string; kind?: string; pendingOwner?: boolean; permissionDetails?: ({ inherited?: boolean; inheritedFrom?: string; permissionType?: string; role?: string })[]; photoLink?: string; role?: string; teamDrivePermissionDetails?: ({ inherited?: boolean; inheritedFrom?: string; role?: string; teamDrivePermissionType?: string })[]; type?: string; view?: string })[] }>;
|
|
212
|
+
/**
|
|
213
|
+
* Updates a permission with patch semantics. **Warning:** Concurrent permissions operations on the same file are not supported; only the last update is applied.
|
|
214
|
+
* Tags: permissions
|
|
215
|
+
* Access as: google/drive.permissionsUpdate(input)
|
|
216
|
+
*/
|
|
217
|
+
permissionsUpdate: (input: { allowFileDiscovery?: boolean; deleted?: boolean; displayName?: string; domain?: string; emailAddress?: string; expirationTime?: string; id?: string; kind?: string; pendingOwner?: boolean; permissionDetails?: ({ inherited?: boolean; inheritedFrom?: string; permissionType?: string; role?: string })[]; photoLink?: string; role?: string; teamDrivePermissionDetails?: ({ inherited?: boolean; inheritedFrom?: string; role?: string; teamDrivePermissionType?: string })[]; type?: string; view?: string; fileId: string; permissionId: string; "$.xgafv"?: "1" | "2"; access_token?: string; alt?: "json" | "media" | "proto"; callback?: string; fields?: string; key?: string; oauth_token?: string; prettyPrint?: boolean; quotaUser?: string; upload_protocol?: string; uploadType?: string; removeExpiration?: boolean; supportsAllDrives?: boolean; supportsTeamDrives?: boolean; transferOwnership?: boolean; useDomainAdminAccess?: boolean }) => Promise<{ allowFileDiscovery?: boolean; deleted?: boolean; displayName?: string; domain?: string; emailAddress?: string; expirationTime?: string; id?: string; kind?: string; pendingOwner?: boolean; permissionDetails?: ({ inherited?: boolean; inheritedFrom?: string; permissionType?: string; role?: string })[]; photoLink?: string; role?: string; teamDrivePermissionDetails?: ({ inherited?: boolean; inheritedFrom?: string; role?: string; teamDrivePermissionType?: string })[]; type?: string; view?: string }>;
|
|
218
|
+
/**
|
|
219
|
+
* Creates a reply to a comment.
|
|
220
|
+
* Tags: replies
|
|
221
|
+
* Access as: google/drive.repliesCreate(input)
|
|
222
|
+
*/
|
|
223
|
+
repliesCreate: (input: { action?: string; author?: { displayName?: string; emailAddress?: string; kind?: string; me?: boolean; permissionId?: string; photoLink?: string }; content?: string; createdTime?: string; deleted?: boolean; htmlContent?: string; id?: string; kind?: string; modifiedTime?: string; fileId: string; commentId: string; "$.xgafv"?: "1" | "2"; access_token?: string; alt?: "json" | "media" | "proto"; callback?: string; fields?: string; key?: string; oauth_token?: string; prettyPrint?: boolean; quotaUser?: string; upload_protocol?: string; uploadType?: string }) => Promise<{ action?: string; author?: { displayName?: string; emailAddress?: string; kind?: string; me?: boolean; permissionId?: string; photoLink?: string }; content?: string; createdTime?: string; deleted?: boolean; htmlContent?: string; id?: string; kind?: string; modifiedTime?: string }>;
|
|
224
|
+
/**
|
|
225
|
+
* Deletes a reply.
|
|
226
|
+
* Tags: replies
|
|
227
|
+
* Access as: google/drive.repliesDelete(input)
|
|
228
|
+
*/
|
|
229
|
+
repliesDelete: (input: { fileId: string; commentId: string; replyId: string; "$.xgafv"?: "1" | "2"; access_token?: string; alt?: "json" | "media" | "proto"; callback?: string; fields?: string; key?: string; oauth_token?: string; prettyPrint?: boolean; quotaUser?: string; upload_protocol?: string; uploadType?: string }) => Promise<unknown>;
|
|
230
|
+
/**
|
|
231
|
+
* Gets a reply by ID.
|
|
232
|
+
* Tags: replies
|
|
233
|
+
* Access as: google/drive.repliesGet(input)
|
|
234
|
+
*/
|
|
235
|
+
repliesGet: (input: { fileId: string; commentId: string; replyId: string; "$.xgafv"?: "1" | "2"; access_token?: string; alt?: "json" | "media" | "proto"; callback?: string; fields?: string; key?: string; oauth_token?: string; prettyPrint?: boolean; quotaUser?: string; upload_protocol?: string; uploadType?: string; includeDeleted?: boolean }) => Promise<{ action?: string; author?: { displayName?: string; emailAddress?: string; kind?: string; me?: boolean; permissionId?: string; photoLink?: string }; content?: string; createdTime?: string; deleted?: boolean; htmlContent?: string; id?: string; kind?: string; modifiedTime?: string }>;
|
|
236
|
+
/**
|
|
237
|
+
* Lists a comment's replies.
|
|
238
|
+
* Tags: replies
|
|
239
|
+
* Access as: google/drive.repliesList(input)
|
|
240
|
+
*/
|
|
241
|
+
repliesList: (input: { fileId: string; commentId: string; "$.xgafv"?: "1" | "2"; access_token?: string; alt?: "json" | "media" | "proto"; callback?: string; fields?: string; key?: string; oauth_token?: string; prettyPrint?: boolean; quotaUser?: string; upload_protocol?: string; uploadType?: string; includeDeleted?: boolean; pageSize?: number; pageToken?: string }) => Promise<{ kind?: string; nextPageToken?: string; replies?: ({ action?: string; author?: { displayName?: string; emailAddress?: string; kind?: string; me?: boolean; permissionId?: string; photoLink?: string }; content?: string; createdTime?: string; deleted?: boolean; htmlContent?: string; id?: string; kind?: string; modifiedTime?: string })[] }>;
|
|
242
|
+
/**
|
|
243
|
+
* Updates a reply with patch semantics.
|
|
244
|
+
* Tags: replies
|
|
245
|
+
* Access as: google/drive.repliesUpdate(input)
|
|
246
|
+
*/
|
|
247
|
+
repliesUpdate: (input: { action?: string; author?: { displayName?: string; emailAddress?: string; kind?: string; me?: boolean; permissionId?: string; photoLink?: string }; content?: string; createdTime?: string; deleted?: boolean; htmlContent?: string; id?: string; kind?: string; modifiedTime?: string; fileId: string; commentId: string; replyId: string; "$.xgafv"?: "1" | "2"; access_token?: string; alt?: "json" | "media" | "proto"; callback?: string; fields?: string; key?: string; oauth_token?: string; prettyPrint?: boolean; quotaUser?: string; upload_protocol?: string; uploadType?: string }) => Promise<{ action?: string; author?: { displayName?: string; emailAddress?: string; kind?: string; me?: boolean; permissionId?: string; photoLink?: string }; content?: string; createdTime?: string; deleted?: boolean; htmlContent?: string; id?: string; kind?: string; modifiedTime?: string }>;
|
|
248
|
+
/**
|
|
249
|
+
* Permanently deletes a file version. You can only delete revisions for files with binary content in Google Drive, like images or videos. Revisions for other files, like Google Docs or Sheets, and the last remaining file version can't be deleted.
|
|
250
|
+
* Tags: revisions
|
|
251
|
+
* Access as: google/drive.revisionsDelete(input)
|
|
252
|
+
*/
|
|
253
|
+
revisionsDelete: (input: { fileId: string; revisionId: string; "$.xgafv"?: "1" | "2"; access_token?: string; alt?: "json" | "media" | "proto"; callback?: string; fields?: string; key?: string; oauth_token?: string; prettyPrint?: boolean; quotaUser?: string; upload_protocol?: string; uploadType?: string }) => Promise<unknown>;
|
|
254
|
+
/**
|
|
255
|
+
* Gets a revision's metadata or content by ID.
|
|
256
|
+
* Tags: revisions
|
|
257
|
+
* Access as: google/drive.revisionsGet(input)
|
|
258
|
+
*/
|
|
259
|
+
revisionsGet: (input: { fileId: string; revisionId: string; "$.xgafv"?: "1" | "2"; access_token?: string; alt?: "json" | "media" | "proto"; callback?: string; fields?: string; key?: string; oauth_token?: string; prettyPrint?: boolean; quotaUser?: string; upload_protocol?: string; uploadType?: string; acknowledgeAbuse?: boolean }) => Promise<{ exportLinks?: { [key: string]: string | undefined }; id?: string; keepForever?: boolean; kind?: string; lastModifyingUser?: { displayName?: string; emailAddress?: string; kind?: string; me?: boolean; permissionId?: string; photoLink?: string }; md5Checksum?: string; mimeType?: string; modifiedTime?: string; originalFilename?: string; publishAuto?: boolean; published?: boolean; publishedLink?: string; publishedOutsideDomain?: boolean; size?: string }>;
|
|
260
|
+
/**
|
|
261
|
+
* Lists a file's revisions.
|
|
262
|
+
* Tags: revisions
|
|
263
|
+
* Access as: google/drive.revisionsList(input)
|
|
264
|
+
*/
|
|
265
|
+
revisionsList: (input: { fileId: string; "$.xgafv"?: "1" | "2"; access_token?: string; alt?: "json" | "media" | "proto"; callback?: string; fields?: string; key?: string; oauth_token?: string; prettyPrint?: boolean; quotaUser?: string; upload_protocol?: string; uploadType?: string; pageSize?: number; pageToken?: string }) => Promise<{ kind?: string; nextPageToken?: string; revisions?: ({ exportLinks?: { [key: string]: string | undefined }; id?: string; keepForever?: boolean; kind?: string; lastModifyingUser?: { displayName?: string; emailAddress?: string; kind?: string; me?: boolean; permissionId?: string; photoLink?: string }; md5Checksum?: string; mimeType?: string; modifiedTime?: string; originalFilename?: string; publishAuto?: boolean; published?: boolean; publishedLink?: string; publishedOutsideDomain?: boolean; size?: string })[] }>;
|
|
266
|
+
/**
|
|
267
|
+
* Updates a revision with patch semantics.
|
|
268
|
+
* Tags: revisions
|
|
269
|
+
* Access as: google/drive.revisionsUpdate(input)
|
|
270
|
+
*/
|
|
271
|
+
revisionsUpdate: (input: { exportLinks?: { [key: string]: string | undefined }; id?: string; keepForever?: boolean; kind?: string; lastModifyingUser?: { displayName?: string; emailAddress?: string; kind?: string; me?: boolean; permissionId?: string; photoLink?: string }; md5Checksum?: string; mimeType?: string; modifiedTime?: string; originalFilename?: string; publishAuto?: boolean; published?: boolean; publishedLink?: string; publishedOutsideDomain?: boolean; size?: string; fileId: string; revisionId: string; "$.xgafv"?: "1" | "2"; access_token?: string; alt?: "json" | "media" | "proto"; callback?: string; fields?: string; key?: string; oauth_token?: string; prettyPrint?: boolean; quotaUser?: string; upload_protocol?: string; uploadType?: string }) => Promise<{ exportLinks?: { [key: string]: string | undefined }; id?: string; keepForever?: boolean; kind?: string; lastModifyingUser?: { displayName?: string; emailAddress?: string; kind?: string; me?: boolean; permissionId?: string; photoLink?: string }; md5Checksum?: string; mimeType?: string; modifiedTime?: string; originalFilename?: string; publishAuto?: boolean; published?: boolean; publishedLink?: string; publishedOutsideDomain?: boolean; size?: string }>;
|
|
272
|
+
/**
|
|
273
|
+
* Deprecated: Use `drives.create` instead.
|
|
274
|
+
* Tags: teamdrives
|
|
275
|
+
* Access as: google/drive.teamdrivesCreate(input)
|
|
276
|
+
*/
|
|
277
|
+
teamdrivesCreate: (input: { backgroundImageFile?: { id?: string; width?: number; xCoordinate?: number; yCoordinate?: number }; backgroundImageLink?: string; capabilities?: { canAddChildren?: boolean; canChangeCopyRequiresWriterPermissionRestriction?: boolean; canChangeDomainUsersOnlyRestriction?: boolean; canChangeSharingFoldersRequiresOrganizerPermissionRestriction?: boolean; canChangeTeamDriveBackground?: boolean; canChangeTeamMembersOnlyRestriction?: boolean; canComment?: boolean; canCopy?: boolean; canDeleteChildren?: boolean; canDeleteTeamDrive?: boolean; canDownload?: boolean; canEdit?: boolean; canListChildren?: boolean; canManageMembers?: boolean; canReadRevisions?: boolean; canRemoveChildren?: boolean; canRename?: boolean; canRenameTeamDrive?: boolean; canResetTeamDriveRestrictions?: boolean; canShare?: boolean; canTrashChildren?: boolean }; colorRgb?: string; createdTime?: string; id?: string; kind?: string; name?: string; orgUnitId?: string; restrictions?: { adminManagedRestrictions?: boolean; copyRequiresWriterPermission?: boolean; domainUsersOnly?: boolean; sharingFoldersRequiresOrganizerPermission?: boolean; teamMembersOnly?: boolean }; themeId?: string; "$.xgafv"?: "1" | "2"; access_token?: string; alt?: "json" | "media" | "proto"; callback?: string; fields?: string; key?: string; oauth_token?: string; prettyPrint?: boolean; quotaUser?: string; upload_protocol?: string; uploadType?: string; requestId: string }) => Promise<{ backgroundImageFile?: { id?: string; width?: number; xCoordinate?: number; yCoordinate?: number }; backgroundImageLink?: string; capabilities?: { canAddChildren?: boolean; canChangeCopyRequiresWriterPermissionRestriction?: boolean; canChangeDomainUsersOnlyRestriction?: boolean; canChangeSharingFoldersRequiresOrganizerPermissionRestriction?: boolean; canChangeTeamDriveBackground?: boolean; canChangeTeamMembersOnlyRestriction?: boolean; canComment?: boolean; canCopy?: boolean; canDeleteChildren?: boolean; canDeleteTeamDrive?: boolean; canDownload?: boolean; canEdit?: boolean; canListChildren?: boolean; canManageMembers?: boolean; canReadRevisions?: boolean; canRemoveChildren?: boolean; canRename?: boolean; canRenameTeamDrive?: boolean; canResetTeamDriveRestrictions?: boolean; canShare?: boolean; canTrashChildren?: boolean }; colorRgb?: string; createdTime?: string; id?: string; kind?: string; name?: string; orgUnitId?: string; restrictions?: { adminManagedRestrictions?: boolean; copyRequiresWriterPermission?: boolean; domainUsersOnly?: boolean; sharingFoldersRequiresOrganizerPermission?: boolean; teamMembersOnly?: boolean }; themeId?: string }>;
|
|
278
|
+
/**
|
|
279
|
+
* Deprecated: Use `drives.delete` instead.
|
|
280
|
+
* Tags: teamdrives
|
|
281
|
+
* Access as: google/drive.teamdrivesDelete(input)
|
|
282
|
+
*/
|
|
283
|
+
teamdrivesDelete: (input: { teamDriveId: string; "$.xgafv"?: "1" | "2"; access_token?: string; alt?: "json" | "media" | "proto"; callback?: string; fields?: string; key?: string; oauth_token?: string; prettyPrint?: boolean; quotaUser?: string; upload_protocol?: string; uploadType?: string }) => Promise<unknown>;
|
|
284
|
+
/**
|
|
285
|
+
* Deprecated: Use `drives.get` instead.
|
|
286
|
+
* Tags: teamdrives
|
|
287
|
+
* Access as: google/drive.teamdrivesGet(input)
|
|
288
|
+
*/
|
|
289
|
+
teamdrivesGet: (input: { teamDriveId: string; "$.xgafv"?: "1" | "2"; access_token?: string; alt?: "json" | "media" | "proto"; callback?: string; fields?: string; key?: string; oauth_token?: string; prettyPrint?: boolean; quotaUser?: string; upload_protocol?: string; uploadType?: string; useDomainAdminAccess?: boolean }) => Promise<{ backgroundImageFile?: { id?: string; width?: number; xCoordinate?: number; yCoordinate?: number }; backgroundImageLink?: string; capabilities?: { canAddChildren?: boolean; canChangeCopyRequiresWriterPermissionRestriction?: boolean; canChangeDomainUsersOnlyRestriction?: boolean; canChangeSharingFoldersRequiresOrganizerPermissionRestriction?: boolean; canChangeTeamDriveBackground?: boolean; canChangeTeamMembersOnlyRestriction?: boolean; canComment?: boolean; canCopy?: boolean; canDeleteChildren?: boolean; canDeleteTeamDrive?: boolean; canDownload?: boolean; canEdit?: boolean; canListChildren?: boolean; canManageMembers?: boolean; canReadRevisions?: boolean; canRemoveChildren?: boolean; canRename?: boolean; canRenameTeamDrive?: boolean; canResetTeamDriveRestrictions?: boolean; canShare?: boolean; canTrashChildren?: boolean }; colorRgb?: string; createdTime?: string; id?: string; kind?: string; name?: string; orgUnitId?: string; restrictions?: { adminManagedRestrictions?: boolean; copyRequiresWriterPermission?: boolean; domainUsersOnly?: boolean; sharingFoldersRequiresOrganizerPermission?: boolean; teamMembersOnly?: boolean }; themeId?: string }>;
|
|
290
|
+
/**
|
|
291
|
+
* Deprecated: Use `drives.list` instead.
|
|
292
|
+
* Tags: teamdrives
|
|
293
|
+
* Access as: google/drive.teamdrivesList(input)
|
|
294
|
+
*/
|
|
295
|
+
teamdrivesList: (input: { "$.xgafv"?: "1" | "2"; access_token?: string; alt?: "json" | "media" | "proto"; callback?: string; fields?: string; key?: string; oauth_token?: string; prettyPrint?: boolean; quotaUser?: string; upload_protocol?: string; uploadType?: string; pageSize?: number; pageToken?: string; q?: string; useDomainAdminAccess?: boolean }) => Promise<{ kind?: string; nextPageToken?: string; teamDrives?: ({ backgroundImageFile?: { id?: string; width?: number; xCoordinate?: number; yCoordinate?: number }; backgroundImageLink?: string; capabilities?: { canAddChildren?: boolean; canChangeCopyRequiresWriterPermissionRestriction?: boolean; canChangeDomainUsersOnlyRestriction?: boolean; canChangeSharingFoldersRequiresOrganizerPermissionRestriction?: boolean; canChangeTeamDriveBackground?: boolean; canChangeTeamMembersOnlyRestriction?: boolean; canComment?: boolean; canCopy?: boolean; canDeleteChildren?: boolean; canDeleteTeamDrive?: boolean; canDownload?: boolean; canEdit?: boolean; canListChildren?: boolean; canManageMembers?: boolean; canReadRevisions?: boolean; canRemoveChildren?: boolean; canRename?: boolean; canRenameTeamDrive?: boolean; canResetTeamDriveRestrictions?: boolean; canShare?: boolean; canTrashChildren?: boolean }; colorRgb?: string; createdTime?: string; id?: string; kind?: string; name?: string; orgUnitId?: string; restrictions?: { adminManagedRestrictions?: boolean; copyRequiresWriterPermission?: boolean; domainUsersOnly?: boolean; sharingFoldersRequiresOrganizerPermission?: boolean; teamMembersOnly?: boolean }; themeId?: string })[] }>;
|
|
296
|
+
/**
|
|
297
|
+
* Deprecated: Use `drives.update` instead.
|
|
298
|
+
* Tags: teamdrives
|
|
299
|
+
* Access as: google/drive.teamdrivesUpdate(input)
|
|
300
|
+
*/
|
|
301
|
+
teamdrivesUpdate: (input: { backgroundImageFile?: { id?: string; width?: number; xCoordinate?: number; yCoordinate?: number }; backgroundImageLink?: string; capabilities?: { canAddChildren?: boolean; canChangeCopyRequiresWriterPermissionRestriction?: boolean; canChangeDomainUsersOnlyRestriction?: boolean; canChangeSharingFoldersRequiresOrganizerPermissionRestriction?: boolean; canChangeTeamDriveBackground?: boolean; canChangeTeamMembersOnlyRestriction?: boolean; canComment?: boolean; canCopy?: boolean; canDeleteChildren?: boolean; canDeleteTeamDrive?: boolean; canDownload?: boolean; canEdit?: boolean; canListChildren?: boolean; canManageMembers?: boolean; canReadRevisions?: boolean; canRemoveChildren?: boolean; canRename?: boolean; canRenameTeamDrive?: boolean; canResetTeamDriveRestrictions?: boolean; canShare?: boolean; canTrashChildren?: boolean }; colorRgb?: string; createdTime?: string; id?: string; kind?: string; name?: string; orgUnitId?: string; restrictions?: { adminManagedRestrictions?: boolean; copyRequiresWriterPermission?: boolean; domainUsersOnly?: boolean; sharingFoldersRequiresOrganizerPermission?: boolean; teamMembersOnly?: boolean }; themeId?: string; teamDriveId: string; "$.xgafv"?: "1" | "2"; access_token?: string; alt?: "json" | "media" | "proto"; callback?: string; fields?: string; key?: string; oauth_token?: string; prettyPrint?: boolean; quotaUser?: string; upload_protocol?: string; uploadType?: string; useDomainAdminAccess?: boolean }) => Promise<{ backgroundImageFile?: { id?: string; width?: number; xCoordinate?: number; yCoordinate?: number }; backgroundImageLink?: string; capabilities?: { canAddChildren?: boolean; canChangeCopyRequiresWriterPermissionRestriction?: boolean; canChangeDomainUsersOnlyRestriction?: boolean; canChangeSharingFoldersRequiresOrganizerPermissionRestriction?: boolean; canChangeTeamDriveBackground?: boolean; canChangeTeamMembersOnlyRestriction?: boolean; canComment?: boolean; canCopy?: boolean; canDeleteChildren?: boolean; canDeleteTeamDrive?: boolean; canDownload?: boolean; canEdit?: boolean; canListChildren?: boolean; canManageMembers?: boolean; canReadRevisions?: boolean; canRemoveChildren?: boolean; canRename?: boolean; canRenameTeamDrive?: boolean; canResetTeamDriveRestrictions?: boolean; canShare?: boolean; canTrashChildren?: boolean }; colorRgb?: string; createdTime?: string; id?: string; kind?: string; name?: string; orgUnitId?: string; restrictions?: { adminManagedRestrictions?: boolean; copyRequiresWriterPermission?: boolean; domainUsersOnly?: boolean; sharingFoldersRequiresOrganizerPermission?: boolean; teamMembersOnly?: boolean }; themeId?: string }>;
|
|
302
|
+
};
|
package/fcm/README.md
ADDED
package/fcm/index.ts
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { CreateClientOptions } from "../../client.js";
|
|
2
|
+
import { createClient, createLazyClient } from "../../client.js";
|
|
3
|
+
import type { GoogleFcmClient } from "./types.js";
|
|
4
|
+
import { toolMetadata } from "./metadata.js";
|
|
5
|
+
import openApiDocument from "./openapi.json" with { type: "json" };
|
|
6
|
+
|
|
7
|
+
export * from "./types.js";
|
|
8
|
+
|
|
9
|
+
export function createGoogleFcmClient(
|
|
10
|
+
options: Omit<CreateClientOptions, "name" | "openApiDocument" | "toolMetadata"> = {},
|
|
11
|
+
): Promise<GoogleFcmClient> {
|
|
12
|
+
return createClient<GoogleFcmClient>({
|
|
13
|
+
...options,
|
|
14
|
+
name: "google/fcm",
|
|
15
|
+
openApiDocument,
|
|
16
|
+
toolMetadata,
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
const defaultClient = createLazyClient(() => createGoogleFcmClient());
|
|
21
|
+
|
|
22
|
+
export default defaultClient;
|
package/fcm/metadata.ts
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { ToolRuntimeMetadataMap } from "../../client.js";
|
|
2
|
+
|
|
3
|
+
export const toolMetadata = {
|
|
4
|
+
"projects.messages.send": {
|
|
5
|
+
"accessPath": [
|
|
6
|
+
"projectsMessagesSend"
|
|
7
|
+
],
|
|
8
|
+
"bodyKind": "properties",
|
|
9
|
+
"bodyPropertyKeys": [
|
|
10
|
+
"message",
|
|
11
|
+
"validateOnly"
|
|
12
|
+
],
|
|
13
|
+
"contentType": "application/json",
|
|
14
|
+
"headerParameterKeys": [],
|
|
15
|
+
"method": "POST",
|
|
16
|
+
"routeTemplate": "/v1/{parent}/messages:send",
|
|
17
|
+
"pathConflictKeys": [],
|
|
18
|
+
"pathParameterKeys": [
|
|
19
|
+
"parent"
|
|
20
|
+
],
|
|
21
|
+
"queryConflictKeys": [],
|
|
22
|
+
"queryParameterKeys": [
|
|
23
|
+
"$.xgafv",
|
|
24
|
+
"access_token",
|
|
25
|
+
"alt",
|
|
26
|
+
"callback",
|
|
27
|
+
"fields",
|
|
28
|
+
"key",
|
|
29
|
+
"oauth_token",
|
|
30
|
+
"prettyPrint",
|
|
31
|
+
"quotaUser",
|
|
32
|
+
"upload_protocol",
|
|
33
|
+
"uploadType"
|
|
34
|
+
]
|
|
35
|
+
}
|
|
36
|
+
} satisfies ToolRuntimeMetadataMap;
|