onedrive full

This commit is contained in:
fyears
2024-06-23 17:44:02 +08:00
parent b36675dc23
commit 0463ae8222
22 changed files with 1720 additions and 19 deletions
+22
View File
@@ -27,6 +27,7 @@ export const PRO_WEBSITE = global.DEFAULT_REMOTELYSAVE_WEBSITE;
export type PRO_FEATURE_TYPE =
| "feature-smart_conflict"
| "feature-onedrive_full"
| "feature-google_drive"
| "feature-box"
| "feature-pcloud"
@@ -167,3 +168,24 @@ export interface AzureBlobStorageConfig {
partsConcurrency: number;
kind: "azureblobstorage";
}
///////////////////////////////////////////////////////////
// Onedrive (Full)
//////////////////////////////////////////////////////////
export const COMMAND_CALLBACK_ONEDRIVEFULL = "remotely-save-cb-onedrivefull";
export interface OnedriveFullConfig {
accessToken: string;
clientID: string;
authority: string;
refreshToken: string;
accessTokenExpiresInSeconds: number;
accessTokenExpiresAtTime: number;
deltaLink: string;
username: string;
credentialsShouldBeDeletedAtTime?: number;
remoteBaseDir?: string;
emptyFile: "skip" | "error";
kind: "onedrivefull";
}