files-sdk@1.1.2
·
209 commits
to main
since this release
Patch Changes
- 6edb433:
googleDriveandonedriveadapters now auto-load credentials fromprocess.envwhen not passed explicitly, matching the convention already in place for the other adapters.googleDrive()readsGOOGLE_DRIVE_CLIENT_EMAIL+GOOGLE_DRIVE_PRIVATE_KEY(service-account credentials) orGOOGLE_DRIVE_KEY_FILE(path to a service-account JSON), plusGOOGLE_DRIVE_SUBJECTfor domain-wide delegation,GOOGLE_DRIVE_IDto target a Shared Drive, andGOOGLE_DRIVE_ROOT_FOLDER_IDto override the bucket root (when onlyGOOGLE_DRIVE_IDis set,rootFolderIddefaults to the drive id so Shared Drives work with no extra config).onedrive()readsONEDRIVE_ACCESS_TOKEN(static token) or theONEDRIVE_TENANT_ID+ONEDRIVE_CLIENT_ID+ONEDRIVE_CLIENT_SECRETtriple (client-credentials/app-only auth), plusONEDRIVE_DRIVE_ID/ONEDRIVE_SITE_ID/ONEDRIVE_USER_IDto target a specific drive — the existing "client-credentials needs a target" guard still applies. Explicit options continue to take precedence over env vars; missing-auth error messages now mention the env fallback names.