Skip to content

armgit / BYOC

Public Imported from GitHub
0

One storage API for Google Drive, Nextcloud, and S3-compatible clouds, in TypeScript and Python.

1.2 KB
Raw Blame
export { GoogleDriveProvider } from "./adapter.js";
export { GoogleOAuthClient } from "./auth/oauth-client.js";
export {
  InMemoryTokenStorage,
  EncryptedFileTokenStorage,
  type EncryptedFileStorageOptions
} from "./auth/storage.js";
export {
  generateCodeVerifier,
  generateCodeChallenge,
  generateOAuthState
} from "./auth/pkce.js";
export {
  GoogleDriveScope,
  type GoogleDriveAuthConfig,
  type GoogleDriveProviderConfig,
  type GoogleDriveTokenSession,
  type GoogleTokenStorage,
  type AuthorizationUrlOptions,
  type ExchangeCodeOptions
} from "./auth/types.js";
export { DriveHttpClient } from "./api/http.js";
export { buildMultipartBody, storageInputToUint8Array, type MultipartUploadPayload } from "./api/multipart.js";
export {
  ResumableUploader,
  DEFAULT_CHUNK_SIZE,
  GOOGLE_DRIVE_CHUNK_ALIGNMENT,
  type ResumableUploadOptions
} from "./api/resumable.js";
export type { DriveFileResource, DriveFileListResponse, DriveAboutResource } from "./api/types.js";
export { mapGoogleDriveError, type GoogleApiErrorResponse } from "./errors/mapper.js";
export {
  GoogleDrivePathResolver,
  LruTtlPathCache,
  InMemoryPathCache,
  escapeDriveQueryValue,
  type PathCache,
  type CacheOptions,
  type GoogleDriveResolvedNode
} from "./paths/virtual-path.js";