@putdotio/sdk 11.0.1 → 11.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{index-DVcfPFyy.d.ts → index-93hWYV6K.d.ts} +3226 -477
- package/dist/index.d.ts +1 -1
- package/dist/index.js +268 -442
- package/dist/index.js.map +1 -1
- package/dist/utilities.d.ts +1 -1
- package/package.json +3 -2
|
@@ -5555,6 +5555,7 @@ declare const getZip: (id: number) => Effect.Effect<ZipInfo, GetZipError, PutioS
|
|
|
5555
5555
|
declare const cancelZip: (id: number) => Effect.Effect<void, CancelZipError, PutioSdkContext>;
|
|
5556
5556
|
//#endregion
|
|
5557
5557
|
//#region src/core/client.d.ts
|
|
5558
|
+
type Operation = (...args: never[]) => unknown;
|
|
5558
5559
|
declare const createPutioSdkEffectClient: () => {
|
|
5559
5560
|
account: {
|
|
5560
5561
|
appSpecificPasswords: {
|
|
@@ -5603,9 +5604,9 @@ declare const createPutioSdkEffectClient: () => {
|
|
|
5603
5604
|
config: {
|
|
5604
5605
|
deleteKey: typeof deleteConfigKey;
|
|
5605
5606
|
getKey: typeof getConfigKey;
|
|
5606
|
-
getKeyWith:
|
|
5607
|
+
getKeyWith: Operation;
|
|
5607
5608
|
read: typeof readConfig;
|
|
5608
|
-
readWith:
|
|
5609
|
+
readWith: Operation;
|
|
5609
5610
|
setKey: typeof setConfigKey;
|
|
5610
5611
|
write: typeof writeConfig;
|
|
5611
5612
|
};
|
|
@@ -5844,9 +5845,9 @@ declare const PutioSdk_base: Context.ServiceClass<PutioSdk, "PutioSdk", {
|
|
|
5844
5845
|
config: {
|
|
5845
5846
|
deleteKey: typeof deleteConfigKey;
|
|
5846
5847
|
getKey: typeof getConfigKey;
|
|
5847
|
-
getKeyWith:
|
|
5848
|
+
getKeyWith: Operation;
|
|
5848
5849
|
read: typeof readConfig;
|
|
5849
|
-
readWith:
|
|
5850
|
+
readWith: Operation;
|
|
5850
5851
|
setKey: typeof setConfigKey;
|
|
5851
5852
|
write: typeof writeConfig;
|
|
5852
5853
|
};
|
|
@@ -6040,165 +6041,34 @@ declare class PutioSdk extends PutioSdk_base {}
|
|
|
6040
6041
|
declare const makePutioSdkEffectClientLayer: () => Layer.Layer<PutioSdk, never, never>;
|
|
6041
6042
|
declare const makePutioSdkLiveClientLayer: (config: PutioSdkConfigShape) => Layer.Layer<PutioHttpClient | PutioSdk | PutioSdkConfig, never, never>;
|
|
6042
6043
|
declare const createPutioSdkPromiseClient: (initialConfig?: PutioSdkConfigShape) => {
|
|
6043
|
-
|
|
6044
|
-
|
|
6045
|
-
|
|
6046
|
-
|
|
6047
|
-
|
|
6048
|
-
delete: (id: number) => Promise<void>;
|
|
6049
|
-
deleteAll: () => Promise<void>;
|
|
6050
|
-
list: () => Promise<ReadonlyArray<AppSpecificPassword>>;
|
|
6051
|
-
};
|
|
6052
|
-
clear: (options: AccountClearOptions) => Promise<{
|
|
6053
|
-
readonly status: "OK";
|
|
6054
|
-
}>;
|
|
6055
|
-
destroy: (currentPassword: string) => Promise<{
|
|
6056
|
-
readonly status: "OK";
|
|
6057
|
-
}>;
|
|
6058
|
-
getInfo: {
|
|
6059
|
-
(query: {
|
|
6060
|
-
readonly download_token: 1;
|
|
6061
|
-
readonly pas: 1;
|
|
6062
|
-
}): Promise<AccountInfoBase & {
|
|
6063
|
-
readonly download_token: string;
|
|
6064
|
-
readonly pas: PasInfo;
|
|
6065
|
-
}>;
|
|
6066
|
-
(query: {
|
|
6067
|
-
readonly download_token: 1;
|
|
6068
|
-
}): Promise<AccountInfoBase & {
|
|
6069
|
-
readonly download_token: string;
|
|
6070
|
-
}>;
|
|
6071
|
-
(query: {
|
|
6072
|
-
readonly features: 1;
|
|
6073
|
-
}): Promise<AccountInfoBase & {
|
|
6074
|
-
readonly features: Record<string, boolean>;
|
|
6075
|
-
}>;
|
|
6076
|
-
(query: {
|
|
6077
|
-
readonly intercom: 1;
|
|
6078
|
-
readonly platform?: "web" | "ios";
|
|
6079
|
-
}): Promise<AccountInfoBase & {
|
|
6080
|
-
readonly user_hash?: string;
|
|
6081
|
-
}>;
|
|
6082
|
-
(query: {
|
|
6083
|
-
readonly pas: 1;
|
|
6084
|
-
}): Promise<AccountInfoBase & {
|
|
6085
|
-
readonly pas: PasInfo;
|
|
6086
|
-
}>;
|
|
6087
|
-
(query: {
|
|
6088
|
-
readonly profitwell: 1;
|
|
6089
|
-
}): Promise<AccountInfoBase & {
|
|
6090
|
-
readonly paddle_user_id: number | string | null;
|
|
6091
|
-
}>;
|
|
6092
|
-
(query: {
|
|
6093
|
-
readonly push_token: 1;
|
|
6094
|
-
}): Promise<AccountInfoBase & {
|
|
6095
|
-
readonly push_token: string;
|
|
6096
|
-
}>;
|
|
6097
|
-
(): Promise<AccountInfoBroad>;
|
|
6098
|
-
(query: AccountInfoQuery): Promise<AccountInfoBroad>;
|
|
6099
|
-
};
|
|
6100
|
-
getSettings: () => Promise<AccountSettings>;
|
|
6101
|
-
listSubtitleLanguages: () => Promise<ReadonlyArray<AccountSubtitleLanguage>>;
|
|
6102
|
-
listConfirmations: (subject?: AccountConfirmation["subject"]) => Promise<readonly {
|
|
6103
|
-
readonly created_at: string;
|
|
6104
|
-
readonly subject: "mail_change" | "password_change" | "subscription_upgrade";
|
|
6105
|
-
}[]>;
|
|
6106
|
-
saveSettings: (payload: SaveAccountSettingsPayload) => Promise<{
|
|
6107
|
-
readonly status: "OK";
|
|
6108
|
-
}>;
|
|
6109
|
-
};
|
|
6110
|
-
auth: {
|
|
6111
|
-
buildLoginUrl: (options: Parameters<typeof buildAuthLoginUrl>[0]) => string;
|
|
6112
|
-
checkCodeMatch: (code: string) => Promise<string | null>;
|
|
6113
|
-
clients: () => Promise<ReadonlyArray<OAuthAppSession>>;
|
|
6114
|
-
exchangeAuthorizationCode: (input: OAuthAuthorizationCodeExchangeInput) => Promise<string>;
|
|
6115
|
-
exists: (key: "mail" | "username", value: string) => Promise<boolean>;
|
|
6116
|
-
forgotPassword: (mail: string) => Promise<{
|
|
6117
|
-
readonly status: "OK";
|
|
6118
|
-
}>;
|
|
6119
|
-
getCode: (input: {
|
|
6120
|
-
readonly appId: number | string;
|
|
6121
|
-
readonly clientName?: string;
|
|
6122
|
-
}) => Promise<{
|
|
6123
|
-
readonly code: string;
|
|
6124
|
-
readonly qr_code_url: string;
|
|
6125
|
-
}>;
|
|
6126
|
-
getFamilyInvite: (code: string) => Promise<{
|
|
6127
|
-
readonly owner: string;
|
|
6128
|
-
readonly plan: string;
|
|
6129
|
-
}>;
|
|
6130
|
-
getFriendInvite: (code: string) => Promise<{
|
|
6131
|
-
readonly inviter: string;
|
|
6132
|
-
readonly plan: {
|
|
6133
|
-
readonly code: string;
|
|
6134
|
-
readonly name: string;
|
|
6135
|
-
readonly period: number;
|
|
6136
|
-
};
|
|
6137
|
-
}>;
|
|
6138
|
-
getGiftCard: (code: string) => Promise<{
|
|
6139
|
-
readonly days: number;
|
|
6140
|
-
readonly plan: boolean;
|
|
6141
|
-
}>;
|
|
6142
|
-
getVoucher: (code: string) => Promise<{
|
|
6143
|
-
readonly days: number;
|
|
6144
|
-
readonly owner: string | null;
|
|
6145
|
-
}>;
|
|
6146
|
-
grants: () => Promise<ReadonlyArray<OAuthApp>>;
|
|
6147
|
-
linkDevice: (code: string) => Promise<{
|
|
6148
|
-
readonly description: string;
|
|
6149
|
-
readonly has_icon: boolean | null;
|
|
6044
|
+
downloadLinks: {
|
|
6045
|
+
create: (input?: {
|
|
6046
|
+
readonly [x: number]: string | readonly number[] | undefined;
|
|
6047
|
+
readonly [x: string]: string | readonly number[] | undefined;
|
|
6048
|
+
} | undefined) => Promise<{
|
|
6150
6049
|
readonly id: number;
|
|
6151
|
-
readonly name: string;
|
|
6152
|
-
readonly website: string;
|
|
6153
|
-
}>;
|
|
6154
|
-
login: (input: LoginInput) => Promise<LoginResponse>;
|
|
6155
|
-
logout: () => Promise<{
|
|
6156
|
-
readonly status: "OK";
|
|
6157
|
-
}>;
|
|
6158
|
-
register: (input: RegisterInput) => Promise<{
|
|
6159
|
-
readonly access_token: string;
|
|
6160
|
-
}>;
|
|
6161
|
-
resetPassword: (key: string, password: string) => Promise<{
|
|
6162
|
-
readonly access_token: string;
|
|
6163
|
-
}>;
|
|
6164
|
-
revokeAllClients: () => Promise<{
|
|
6165
|
-
readonly status: "OK";
|
|
6166
|
-
}>;
|
|
6167
|
-
revokeApp: (id: number) => Promise<{
|
|
6168
|
-
readonly status: "OK";
|
|
6169
6050
|
}>;
|
|
6170
|
-
|
|
6171
|
-
readonly
|
|
6172
|
-
|
|
6173
|
-
|
|
6174
|
-
generateTOTP: () => Promise<GenerateTOTPResponse>;
|
|
6175
|
-
getRecoveryCodes: () => Promise<TwoFactorRecoveryCodes>;
|
|
6176
|
-
regenerateRecoveryCodes: () => Promise<TwoFactorRecoveryCodes>;
|
|
6177
|
-
verifyTOTP: (twoFactorScopedToken: string, code: string) => Promise<VerifyTOTPResponse>;
|
|
6178
|
-
};
|
|
6179
|
-
validateToken: (token: string) => Promise<ValidateTokenResponse>;
|
|
6180
|
-
};
|
|
6181
|
-
config: {
|
|
6182
|
-
deleteKey: (key: string) => Promise<{
|
|
6051
|
+
get: (id: number) => Promise<{
|
|
6052
|
+
readonly error_msg?: string | null | undefined;
|
|
6053
|
+
readonly links: null;
|
|
6054
|
+
readonly links_status: "NEW" | "PROCESSING";
|
|
6183
6055
|
readonly status: "OK";
|
|
6184
|
-
}
|
|
6185
|
-
|
|
6186
|
-
|
|
6187
|
-
|
|
6188
|
-
|
|
6189
|
-
|
|
6056
|
+
} | {
|
|
6057
|
+
readonly error_msg?: string | null | undefined;
|
|
6058
|
+
readonly links: {
|
|
6059
|
+
readonly download_links: readonly string[];
|
|
6060
|
+
readonly media_links: readonly string[];
|
|
6061
|
+
readonly mp4_links: readonly string[];
|
|
6062
|
+
};
|
|
6063
|
+
readonly links_status: "DONE";
|
|
6190
6064
|
readonly status: "OK";
|
|
6191
|
-
}
|
|
6192
|
-
|
|
6065
|
+
} | {
|
|
6066
|
+
readonly error_msg: string;
|
|
6067
|
+
readonly links: null;
|
|
6068
|
+
readonly links_status: "ERROR";
|
|
6193
6069
|
readonly status: "OK";
|
|
6194
6070
|
}>;
|
|
6195
6071
|
};
|
|
6196
|
-
downloadLinks: {
|
|
6197
|
-
create: (input?: DownloadLinksCreateInput) => Promise<{
|
|
6198
|
-
readonly id: number;
|
|
6199
|
-
}>;
|
|
6200
|
-
get: (id: number) => Promise<DownloadLinksInfo>;
|
|
6201
|
-
};
|
|
6202
6072
|
events: {
|
|
6203
6073
|
clear: () => Promise<{
|
|
6204
6074
|
readonly status: "OK";
|
|
@@ -6206,8 +6076,107 @@ declare const createPutioSdkPromiseClient: (initialConfig?: PutioSdkConfigShape)
|
|
|
6206
6076
|
delete: (id: number) => Promise<{
|
|
6207
6077
|
readonly status: "OK";
|
|
6208
6078
|
}>;
|
|
6209
|
-
getTorrent: (id: number) => Promise<Uint8Array
|
|
6210
|
-
list: (query?:
|
|
6079
|
+
getTorrent: (id: number) => Promise<Uint8Array<ArrayBufferLike>>;
|
|
6080
|
+
list: (query?: {
|
|
6081
|
+
readonly before?: number | undefined;
|
|
6082
|
+
readonly per_page?: number | undefined;
|
|
6083
|
+
} | undefined) => Promise<{
|
|
6084
|
+
readonly events: readonly ({
|
|
6085
|
+
readonly created_at: string;
|
|
6086
|
+
readonly id: number;
|
|
6087
|
+
readonly user_id: number;
|
|
6088
|
+
readonly file_id: number;
|
|
6089
|
+
readonly file_name: string;
|
|
6090
|
+
readonly file_size: number;
|
|
6091
|
+
readonly sharing_user_name: string;
|
|
6092
|
+
readonly type: "file_shared";
|
|
6093
|
+
} | {
|
|
6094
|
+
readonly created_at: string;
|
|
6095
|
+
readonly id: number;
|
|
6096
|
+
readonly user_id: number;
|
|
6097
|
+
readonly file_id: number;
|
|
6098
|
+
readonly file_name: string;
|
|
6099
|
+
readonly file_size: number;
|
|
6100
|
+
readonly type: "upload";
|
|
6101
|
+
} | {
|
|
6102
|
+
readonly created_at: string;
|
|
6103
|
+
readonly id: number;
|
|
6104
|
+
readonly user_id: number;
|
|
6105
|
+
readonly file_id: number;
|
|
6106
|
+
readonly file_name: string;
|
|
6107
|
+
readonly file_size: number;
|
|
6108
|
+
readonly file_source: string;
|
|
6109
|
+
readonly type: "file_from_rss_deleted_for_space";
|
|
6110
|
+
} | {
|
|
6111
|
+
readonly created_at: string;
|
|
6112
|
+
readonly id: number;
|
|
6113
|
+
readonly user_id: number;
|
|
6114
|
+
readonly source: string;
|
|
6115
|
+
readonly transfer_name: string;
|
|
6116
|
+
readonly file_id: number;
|
|
6117
|
+
readonly transfer_size: number;
|
|
6118
|
+
readonly type: "transfer_completed";
|
|
6119
|
+
} | {
|
|
6120
|
+
readonly created_at: string;
|
|
6121
|
+
readonly id: number;
|
|
6122
|
+
readonly user_id: number;
|
|
6123
|
+
readonly source: string;
|
|
6124
|
+
readonly transfer_name: string;
|
|
6125
|
+
readonly type: "transfer_error";
|
|
6126
|
+
} | {
|
|
6127
|
+
readonly created_at: string;
|
|
6128
|
+
readonly id: number;
|
|
6129
|
+
readonly user_id: number;
|
|
6130
|
+
readonly rss_id: number;
|
|
6131
|
+
readonly transfer_name: string;
|
|
6132
|
+
readonly type: "transfer_from_rss_error";
|
|
6133
|
+
} | {
|
|
6134
|
+
readonly created_at: string;
|
|
6135
|
+
readonly id: number;
|
|
6136
|
+
readonly user_id: number;
|
|
6137
|
+
readonly message: string;
|
|
6138
|
+
readonly transfer_id: number;
|
|
6139
|
+
readonly transfer_name: string;
|
|
6140
|
+
readonly type: "transfer_callback_error";
|
|
6141
|
+
} | {
|
|
6142
|
+
readonly created_at: string;
|
|
6143
|
+
readonly id: number;
|
|
6144
|
+
readonly user_id: number;
|
|
6145
|
+
readonly new_host_ip: string;
|
|
6146
|
+
readonly pinned_host_ip: string;
|
|
6147
|
+
readonly type: "private_torrent_pin";
|
|
6148
|
+
readonly user_download_name: string;
|
|
6149
|
+
} | {
|
|
6150
|
+
readonly created_at: string;
|
|
6151
|
+
readonly id: number;
|
|
6152
|
+
readonly user_id: number;
|
|
6153
|
+
readonly rss_filter_id: number;
|
|
6154
|
+
readonly rss_filter_title: string;
|
|
6155
|
+
readonly type: "rss_filter_paused";
|
|
6156
|
+
} | {
|
|
6157
|
+
readonly created_at: string;
|
|
6158
|
+
readonly id: number;
|
|
6159
|
+
readonly user_id: number;
|
|
6160
|
+
readonly type: "voucher";
|
|
6161
|
+
readonly voucher: number;
|
|
6162
|
+
readonly voucher_owner_id: number;
|
|
6163
|
+
readonly voucher_owner_name: string;
|
|
6164
|
+
} | {
|
|
6165
|
+
readonly created_at: string;
|
|
6166
|
+
readonly id: number;
|
|
6167
|
+
readonly user_id: number;
|
|
6168
|
+
readonly type: "zip_created";
|
|
6169
|
+
readonly zip_id: number;
|
|
6170
|
+
readonly zip_size: number;
|
|
6171
|
+
} | {
|
|
6172
|
+
readonly created_at: string;
|
|
6173
|
+
readonly id: number;
|
|
6174
|
+
readonly type: string;
|
|
6175
|
+
readonly user_id: number;
|
|
6176
|
+
})[];
|
|
6177
|
+
readonly has_more: boolean;
|
|
6178
|
+
readonly status: "OK";
|
|
6179
|
+
}>;
|
|
6211
6180
|
};
|
|
6212
6181
|
family: {
|
|
6213
6182
|
createInvite: () => Promise<{
|
|
@@ -6215,7 +6184,14 @@ declare const createPutioSdkPromiseClient: (initialConfig?: PutioSdkConfigShape)
|
|
|
6215
6184
|
}>;
|
|
6216
6185
|
join: (inviteCode: string) => Promise<void>;
|
|
6217
6186
|
listInvites: () => Promise<FamilyInvitesResponse>;
|
|
6218
|
-
listMembers: () => Promise<
|
|
6187
|
+
listMembers: () => Promise<readonly {
|
|
6188
|
+
readonly avatar_url: string;
|
|
6189
|
+
readonly created_at: string;
|
|
6190
|
+
readonly disk_used: number;
|
|
6191
|
+
readonly id: number;
|
|
6192
|
+
readonly is_owner: boolean;
|
|
6193
|
+
readonly name: string;
|
|
6194
|
+
}[]>;
|
|
6219
6195
|
removeMember: (username: string) => Promise<void>;
|
|
6220
6196
|
};
|
|
6221
6197
|
ifttt: {
|
|
@@ -6225,39 +6201,55 @@ declare const createPutioSdkPromiseClient: (initialConfig?: PutioSdkConfigShape)
|
|
|
6225
6201
|
sendEvent: (input: IftttEventInput) => Promise<void>;
|
|
6226
6202
|
};
|
|
6227
6203
|
podcast: {
|
|
6228
|
-
getLinks: (input:
|
|
6204
|
+
getLinks: (input: {
|
|
6205
|
+
readonly parentId: number;
|
|
6206
|
+
readonly types?: readonly ("all" | "audio" | "mp4" | "video")[] | undefined;
|
|
6207
|
+
}) => Promise<PodcastLinksResponse>;
|
|
6229
6208
|
};
|
|
6230
|
-
|
|
6231
|
-
|
|
6232
|
-
|
|
6233
|
-
readonly per_page?: number;
|
|
6234
|
-
}) => Promise<FileListContinuationResponse>;
|
|
6235
|
-
continueSearch: (cursor: string, query?: {
|
|
6236
|
-
readonly per_page?: number;
|
|
6237
|
-
}) => Promise<FileSearchResponse>;
|
|
6238
|
-
copy: (input: FileCopyInput) => Promise<FileBroad>;
|
|
6239
|
-
convertManyToMp4: (ids: ReadonlyArray<number>) => Promise<number>;
|
|
6240
|
-
convertSelectionToMp4: (selection: {
|
|
6241
|
-
readonly cursor?: string;
|
|
6242
|
-
readonly excludeIds?: ReadonlyArray<number>;
|
|
6243
|
-
readonly ids?: ReadonlyArray<number>;
|
|
6244
|
-
}) => Promise<number>;
|
|
6245
|
-
createUploadFormData: typeof createFileUploadFormData;
|
|
6246
|
-
createUploadRequest: (input: {
|
|
6247
|
-
readonly file: Blob;
|
|
6248
|
-
readonly fileName?: string;
|
|
6249
|
-
readonly parentId?: number;
|
|
6250
|
-
}) => Promise<{
|
|
6251
|
-
readonly body: FormData;
|
|
6252
|
-
readonly method: "POST";
|
|
6253
|
-
readonly url: string;
|
|
6209
|
+
friendInvites: {
|
|
6210
|
+
create: () => Promise<{
|
|
6211
|
+
readonly code: string;
|
|
6254
6212
|
}>;
|
|
6255
|
-
|
|
6256
|
-
|
|
6257
|
-
readonly
|
|
6258
|
-
|
|
6259
|
-
|
|
6260
|
-
|
|
6213
|
+
list: () => Promise<{
|
|
6214
|
+
readonly invites: ReadonlyArray<FriendInvite>;
|
|
6215
|
+
readonly remaining_limit: number;
|
|
6216
|
+
}>;
|
|
6217
|
+
};
|
|
6218
|
+
friends: {
|
|
6219
|
+
approve: (username: string) => Promise<{
|
|
6220
|
+
readonly status: "OK";
|
|
6221
|
+
}>;
|
|
6222
|
+
countWaitingRequests: () => Promise<number>;
|
|
6223
|
+
deny: (username: string) => Promise<{
|
|
6224
|
+
readonly status: "OK";
|
|
6225
|
+
}>;
|
|
6226
|
+
list: () => Promise<{
|
|
6227
|
+
readonly friends: ReadonlyArray<Friend>;
|
|
6228
|
+
readonly total: number;
|
|
6229
|
+
}>;
|
|
6230
|
+
listSentRequests: () => Promise<readonly {
|
|
6231
|
+
readonly avatar_url: string;
|
|
6232
|
+
readonly id: number;
|
|
6233
|
+
readonly name: string;
|
|
6234
|
+
}[]>;
|
|
6235
|
+
listWaitingRequests: () => Promise<readonly {
|
|
6236
|
+
readonly avatar_url: string;
|
|
6237
|
+
readonly id: number;
|
|
6238
|
+
readonly name: string;
|
|
6239
|
+
}[]>;
|
|
6240
|
+
remove: (username: string) => Promise<{
|
|
6241
|
+
readonly status: "OK";
|
|
6242
|
+
}>;
|
|
6243
|
+
search: (username: string) => Promise<readonly {
|
|
6244
|
+
readonly avatar_url: string;
|
|
6245
|
+
readonly id: number;
|
|
6246
|
+
readonly name: string;
|
|
6247
|
+
readonly invited: boolean;
|
|
6248
|
+
}[]>;
|
|
6249
|
+
sendRequest: (username: string) => Promise<{
|
|
6250
|
+
readonly status: "OK";
|
|
6251
|
+
}>;
|
|
6252
|
+
sharedFolder: (username: string) => Promise<{
|
|
6261
6253
|
readonly content_type: string | null;
|
|
6262
6254
|
readonly created_at: string;
|
|
6263
6255
|
readonly crc32: string | null;
|
|
@@ -6317,219 +6309,43 @@ declare const createPutioSdkPromiseClient: (initialConfig?: PutioSdkConfigShape)
|
|
|
6317
6309
|
readonly height?: number | null | undefined;
|
|
6318
6310
|
readonly width?: number | null | undefined;
|
|
6319
6311
|
} | null | undefined;
|
|
6320
|
-
}>;
|
|
6321
|
-
|
|
6322
|
-
|
|
6323
|
-
|
|
6324
|
-
|
|
6325
|
-
|
|
6326
|
-
readonly
|
|
6327
|
-
|
|
6328
|
-
readonly
|
|
6329
|
-
readonly
|
|
6312
|
+
} | null>;
|
|
6313
|
+
};
|
|
6314
|
+
oauth: {
|
|
6315
|
+
buildAuthorizeUrl: typeof buildOAuthAuthorizeUrl;
|
|
6316
|
+
buildIconUrl: typeof buildOAuthAppIconUrl;
|
|
6317
|
+
create: (input: {
|
|
6318
|
+
readonly callback: string;
|
|
6319
|
+
readonly description: string;
|
|
6320
|
+
readonly hidden?: boolean | undefined;
|
|
6321
|
+
readonly icon?: Blob | undefined;
|
|
6322
|
+
readonly name: string;
|
|
6323
|
+
readonly website: string;
|
|
6330
6324
|
}) => Promise<{
|
|
6331
|
-
readonly
|
|
6332
|
-
|
|
6325
|
+
readonly app: {
|
|
6326
|
+
readonly description: string;
|
|
6327
|
+
readonly has_icon: boolean | null;
|
|
6328
|
+
readonly id: number;
|
|
6329
|
+
readonly name: string;
|
|
6330
|
+
readonly website: string;
|
|
6331
|
+
} | {
|
|
6332
|
+
readonly description: string;
|
|
6333
|
+
readonly has_icon: boolean | null;
|
|
6334
|
+
readonly id: number;
|
|
6335
|
+
readonly name: string;
|
|
6336
|
+
readonly website: string;
|
|
6337
|
+
readonly callback: string;
|
|
6338
|
+
readonly hidden: boolean;
|
|
6339
|
+
readonly secret: string;
|
|
6340
|
+
};
|
|
6333
6341
|
readonly status: "OK";
|
|
6334
6342
|
}>;
|
|
6335
|
-
delete: (
|
|
6336
|
-
readonly ignoreFileOwner?: boolean;
|
|
6337
|
-
readonly partialDelete?: boolean;
|
|
6338
|
-
readonly skipTrash?: boolean;
|
|
6339
|
-
}) => Promise<{
|
|
6340
|
-
readonly cursor: string | null;
|
|
6341
|
-
readonly skipped: number;
|
|
6342
|
-
readonly status: "OK";
|
|
6343
|
-
}>;
|
|
6344
|
-
extract: (selection: {
|
|
6345
|
-
readonly cursor?: string;
|
|
6346
|
-
readonly excludeIds?: ReadonlyArray<number>;
|
|
6347
|
-
readonly ids?: ReadonlyArray<number>;
|
|
6348
|
-
readonly password?: string;
|
|
6349
|
-
}) => Promise<ReadonlyArray<FileExtraction>>;
|
|
6350
|
-
findNext: (fileId: number, fileType: "FOLDER" | "FILE" | "AUDIO" | "VIDEO" | "IMAGE" | "ARCHIVE" | "PDF" | "TEXT" | "SWF") => Promise<{
|
|
6351
|
-
readonly id: number;
|
|
6352
|
-
readonly name: string;
|
|
6353
|
-
readonly parent_id: number | null;
|
|
6354
|
-
}>;
|
|
6355
|
-
findNextVideo: (fileId: number) => Promise<{
|
|
6356
|
-
readonly id: number;
|
|
6357
|
-
readonly name: string;
|
|
6358
|
-
readonly parent_id: number | null;
|
|
6359
|
-
}>;
|
|
6360
|
-
getApiContentUrl: (fileId: number, options?: {
|
|
6361
|
-
readonly oauthToken?: string;
|
|
6362
|
-
readonly useTunnel?: boolean;
|
|
6363
|
-
}) => Promise<string>;
|
|
6364
|
-
getApiDownloadUrl: (fileId: number, options?: {
|
|
6365
|
-
readonly name?: string;
|
|
6366
|
-
readonly oauthToken?: string;
|
|
6367
|
-
readonly useTunnel?: boolean;
|
|
6368
|
-
}) => Promise<string>;
|
|
6369
|
-
getApiMp4DownloadUrl: (fileId: number, options?: {
|
|
6370
|
-
readonly convert?: boolean;
|
|
6371
|
-
readonly name?: string;
|
|
6372
|
-
readonly oauthToken?: string;
|
|
6373
|
-
readonly useTunnel?: boolean;
|
|
6374
|
-
}) => Promise<string>;
|
|
6375
|
-
get: {
|
|
6376
|
-
(input: {
|
|
6377
|
-
readonly id: number;
|
|
6378
|
-
readonly query: {
|
|
6379
|
-
readonly stream_url: 1;
|
|
6380
|
-
readonly video_metadata: 1;
|
|
6381
|
-
};
|
|
6382
|
-
}): Promise<FileCore & {
|
|
6383
|
-
readonly stream_url: string | null;
|
|
6384
|
-
readonly video_metadata: FileVideoMetadata;
|
|
6385
|
-
}>;
|
|
6386
|
-
(input: {
|
|
6387
|
-
readonly id: number;
|
|
6388
|
-
readonly query: {
|
|
6389
|
-
readonly mp4_stream_url: 1;
|
|
6390
|
-
};
|
|
6391
|
-
}): Promise<FileCore & ({
|
|
6392
|
-
readonly is_mp4_available: true;
|
|
6393
|
-
readonly mp4_stream_url: string | null;
|
|
6394
|
-
readonly mp4_size: number | null;
|
|
6395
|
-
readonly need_convert: boolean;
|
|
6396
|
-
} | {
|
|
6397
|
-
readonly is_mp4_available: false;
|
|
6398
|
-
readonly mp4_size: number | null;
|
|
6399
|
-
readonly need_convert: boolean;
|
|
6400
|
-
})>;
|
|
6401
|
-
(input: {
|
|
6402
|
-
readonly id: number;
|
|
6403
|
-
readonly query?: FileQuery;
|
|
6404
|
-
}): Promise<FileCore>;
|
|
6405
|
-
};
|
|
6406
|
-
getChild: {
|
|
6407
|
-
(input: {
|
|
6408
|
-
readonly name: string;
|
|
6409
|
-
readonly parentId: number;
|
|
6410
|
-
}): Promise<FileCore>;
|
|
6411
|
-
<TQuery extends FileQuery>(input: {
|
|
6412
|
-
readonly name: string;
|
|
6413
|
-
readonly parentId: number;
|
|
6414
|
-
readonly query: TQuery;
|
|
6415
|
-
}): Promise<FileResponseFor<TQuery>>;
|
|
6416
|
-
};
|
|
6417
|
-
getDownloadUrl: (fileId: number) => Promise<string>;
|
|
6418
|
-
getHlsStreamUrl: (fileId: number, options?: {
|
|
6419
|
-
readonly maxSubtitleCount?: number;
|
|
6420
|
-
readonly oauthToken?: string;
|
|
6421
|
-
readonly playOriginal?: boolean;
|
|
6422
|
-
readonly subtitleLanguages?: ReadonlyArray<string>;
|
|
6423
|
-
}) => Promise<string>;
|
|
6424
|
-
getMp4Status: (fileId: number) => Promise<FileConversionStatus>;
|
|
6425
|
-
getStartFrom: (fileId: number) => Promise<number>;
|
|
6426
|
-
list: (parent: number | "friends", query?: FilesListQuery) => Promise<FileListResponse>;
|
|
6427
|
-
listActiveConversions: () => Promise<ReadonlyArray<FileActiveConversion>>;
|
|
6428
|
-
listExtractions: () => Promise<ReadonlyArray<FileExtraction>>;
|
|
6429
|
-
listSubtitles: (fileId: number, options?: {
|
|
6430
|
-
readonly languages?: ReadonlyArray<string>;
|
|
6431
|
-
}) => Promise<{
|
|
6432
|
-
readonly default: string | null;
|
|
6433
|
-
readonly subtitles: ReadonlyArray<FileSubtitle>;
|
|
6434
|
-
}>;
|
|
6435
|
-
move: (ids: ReadonlyArray<number>, parentId: number) => Promise<ReadonlyArray<FilesMoveError>>;
|
|
6436
|
-
moveSelection: (selection: {
|
|
6437
|
-
readonly cursor?: string;
|
|
6438
|
-
readonly excludeIds?: ReadonlyArray<number>;
|
|
6439
|
-
readonly ids?: ReadonlyArray<number>;
|
|
6440
|
-
}, parentId: number) => Promise<ReadonlyArray<FilesMoveError>>;
|
|
6441
|
-
putMp4ToMyFiles: (fileId: number) => Promise<void>;
|
|
6442
|
-
rename: (input: {
|
|
6443
|
-
readonly file_id: number;
|
|
6444
|
-
readonly name: string;
|
|
6445
|
-
}) => Promise<{
|
|
6446
|
-
readonly status: "OK";
|
|
6447
|
-
}>;
|
|
6448
|
-
resetSortSettings: () => Promise<void>;
|
|
6449
|
-
resetStartFrom: (fileId: number) => Promise<{
|
|
6450
|
-
readonly status: "OK";
|
|
6451
|
-
}>;
|
|
6452
|
-
search: (query: FilesSearchQuery) => Promise<FileSearchResponse>;
|
|
6453
|
-
setSort: (input: FileSetSortInput) => Promise<void>;
|
|
6454
|
-
setWatchStatus: (selection: {
|
|
6455
|
-
readonly cursor?: string;
|
|
6456
|
-
readonly excludeIds?: ReadonlyArray<number>;
|
|
6457
|
-
readonly ids?: ReadonlyArray<number>;
|
|
6458
|
-
readonly watched: boolean;
|
|
6459
|
-
}) => Promise<void>;
|
|
6460
|
-
setStartFrom: (input: {
|
|
6461
|
-
readonly file_id: number;
|
|
6462
|
-
readonly time: number;
|
|
6463
|
-
}) => Promise<{
|
|
6464
|
-
readonly status: "OK";
|
|
6465
|
-
}>;
|
|
6466
|
-
touch: (input: FileTouchInput) => Promise<void>;
|
|
6467
|
-
upload: (input: {
|
|
6468
|
-
readonly file: Blob;
|
|
6469
|
-
readonly fileName?: string;
|
|
6470
|
-
readonly parentId?: number;
|
|
6471
|
-
}) => Promise<FileUploadResult>;
|
|
6472
|
-
};
|
|
6473
|
-
friendInvites: {
|
|
6474
|
-
create: () => Promise<{
|
|
6475
|
-
readonly code: string;
|
|
6476
|
-
}>;
|
|
6477
|
-
list: () => Promise<{
|
|
6478
|
-
readonly invites: ReadonlyArray<FriendInvite>;
|
|
6479
|
-
readonly remaining_limit: number;
|
|
6480
|
-
}>;
|
|
6481
|
-
};
|
|
6482
|
-
friends: {
|
|
6483
|
-
approve: (username: string) => Promise<{
|
|
6484
|
-
readonly status: "OK";
|
|
6485
|
-
}>;
|
|
6486
|
-
countWaitingRequests: () => Promise<number>;
|
|
6487
|
-
deny: (username: string) => Promise<{
|
|
6488
|
-
readonly status: "OK";
|
|
6489
|
-
}>;
|
|
6490
|
-
list: () => Promise<{
|
|
6491
|
-
readonly friends: ReadonlyArray<Friend>;
|
|
6492
|
-
readonly total: number;
|
|
6493
|
-
}>;
|
|
6494
|
-
listSentRequests: () => Promise<ReadonlyArray<FriendBase>>;
|
|
6495
|
-
listWaitingRequests: () => Promise<ReadonlyArray<FriendBase>>;
|
|
6496
|
-
remove: (username: string) => Promise<{
|
|
6497
|
-
readonly status: "OK";
|
|
6498
|
-
}>;
|
|
6499
|
-
search: (username: string) => Promise<ReadonlyArray<UserSearchResult>>;
|
|
6500
|
-
sendRequest: (username: string) => Promise<{
|
|
6501
|
-
readonly status: "OK";
|
|
6502
|
-
}>;
|
|
6503
|
-
sharedFolder: (username: string) => Promise<FileCore | null>;
|
|
6504
|
-
};
|
|
6505
|
-
oauth: {
|
|
6506
|
-
buildAuthorizeUrl: typeof buildOAuthAuthorizeUrl;
|
|
6507
|
-
buildIconUrl: typeof buildOAuthAppIconUrl;
|
|
6508
|
-
create: (input: OAuthAppCreateInput) => Promise<{
|
|
6509
|
-
readonly app: {
|
|
6510
|
-
readonly description: string;
|
|
6511
|
-
readonly has_icon: boolean | null;
|
|
6512
|
-
readonly id: number;
|
|
6513
|
-
readonly name: string;
|
|
6514
|
-
readonly website: string;
|
|
6515
|
-
} | {
|
|
6516
|
-
readonly description: string;
|
|
6517
|
-
readonly has_icon: boolean | null;
|
|
6518
|
-
readonly id: number;
|
|
6519
|
-
readonly name: string;
|
|
6520
|
-
readonly website: string;
|
|
6521
|
-
readonly callback: string;
|
|
6522
|
-
readonly hidden: boolean;
|
|
6523
|
-
readonly secret: string;
|
|
6524
|
-
};
|
|
6525
|
-
readonly status: "OK";
|
|
6526
|
-
}>;
|
|
6527
|
-
delete: (id: number) => Promise<{
|
|
6343
|
+
delete: (id: number) => Promise<{
|
|
6528
6344
|
readonly status: "OK";
|
|
6529
6345
|
}>;
|
|
6530
6346
|
get: (id: number, options?: {
|
|
6531
6347
|
readonly edit?: boolean;
|
|
6532
|
-
}) => Promise<{
|
|
6348
|
+
} | undefined) => Promise<{
|
|
6533
6349
|
readonly app: {
|
|
6534
6350
|
readonly description: string;
|
|
6535
6351
|
readonly has_icon: boolean | null;
|
|
@@ -6549,15 +6365,41 @@ declare const createPutioSdkPromiseClient: (initialConfig?: PutioSdkConfigShape)
|
|
|
6549
6365
|
readonly status: "OK";
|
|
6550
6366
|
readonly token: string | null;
|
|
6551
6367
|
}>;
|
|
6552
|
-
getPopularApps: () => Promise<
|
|
6553
|
-
|
|
6368
|
+
getPopularApps: () => Promise<readonly {
|
|
6369
|
+
readonly description: string;
|
|
6370
|
+
readonly has_icon: boolean | null;
|
|
6371
|
+
readonly id: number;
|
|
6372
|
+
readonly name: string;
|
|
6373
|
+
readonly website: string;
|
|
6374
|
+
readonly hidden?: boolean | undefined;
|
|
6375
|
+
readonly maker: string;
|
|
6376
|
+
readonly users?: number | undefined;
|
|
6377
|
+
}[]>;
|
|
6378
|
+
query: () => Promise<readonly {
|
|
6379
|
+
readonly description: string;
|
|
6380
|
+
readonly has_icon: boolean | null;
|
|
6381
|
+
readonly id: number;
|
|
6382
|
+
readonly name: string;
|
|
6383
|
+
readonly website: string;
|
|
6384
|
+
readonly callback: string;
|
|
6385
|
+
readonly hidden: boolean;
|
|
6386
|
+
readonly secret: string;
|
|
6387
|
+
readonly users: number;
|
|
6388
|
+
}[]>;
|
|
6554
6389
|
regenerateToken: (id: number) => Promise<string>;
|
|
6555
6390
|
setIcon: (id: number, input: {
|
|
6556
6391
|
readonly icon: Blob;
|
|
6557
6392
|
}) => Promise<{
|
|
6558
6393
|
readonly status: "OK";
|
|
6559
6394
|
}>;
|
|
6560
|
-
update: (input:
|
|
6395
|
+
update: (input: {
|
|
6396
|
+
readonly callback: string;
|
|
6397
|
+
readonly description: string;
|
|
6398
|
+
readonly hidden?: boolean | undefined;
|
|
6399
|
+
readonly icon?: Blob | undefined;
|
|
6400
|
+
readonly id: number;
|
|
6401
|
+
readonly website: string;
|
|
6402
|
+
}) => Promise<{
|
|
6561
6403
|
readonly app: {
|
|
6562
6404
|
readonly description: string;
|
|
6563
6405
|
readonly has_icon: boolean | null;
|
|
@@ -6580,26 +6422,388 @@ declare const createPutioSdkPromiseClient: (initialConfig?: PutioSdkConfigShape)
|
|
|
6580
6422
|
};
|
|
6581
6423
|
payment: {
|
|
6582
6424
|
changePlan: {
|
|
6583
|
-
classifyResponse:
|
|
6584
|
-
|
|
6585
|
-
|
|
6425
|
+
classifyResponse: (((response: {
|
|
6426
|
+
readonly status: "OK";
|
|
6427
|
+
readonly urls: readonly ({
|
|
6428
|
+
readonly provider: "Fastspring";
|
|
6429
|
+
readonly type: "credit-card";
|
|
6430
|
+
readonly url: string;
|
|
6431
|
+
} | {
|
|
6432
|
+
readonly discount_percent: number;
|
|
6433
|
+
readonly provider: "OpenNode";
|
|
6434
|
+
readonly type: "cryptocurrency";
|
|
6435
|
+
} | {
|
|
6436
|
+
readonly price_id: string | null;
|
|
6437
|
+
readonly provider: "PaddleBilling";
|
|
6438
|
+
readonly type: "credit-card";
|
|
6439
|
+
} | {
|
|
6440
|
+
readonly plan_id: number;
|
|
6441
|
+
readonly provider: "Paddle";
|
|
6442
|
+
readonly type: "credit-card";
|
|
6443
|
+
readonly vendor_id: number;
|
|
6444
|
+
})[];
|
|
6445
|
+
} | {
|
|
6446
|
+
readonly confirmation: true;
|
|
6447
|
+
readonly status: "OK";
|
|
6448
|
+
} | {
|
|
6449
|
+
readonly charged_amount: string;
|
|
6450
|
+
readonly charged_currency: string;
|
|
6451
|
+
readonly next_payment: {
|
|
6452
|
+
readonly amount: string;
|
|
6453
|
+
readonly billing_date: string;
|
|
6454
|
+
readonly currency: string;
|
|
6455
|
+
};
|
|
6456
|
+
readonly status: "OK";
|
|
6457
|
+
} | {
|
|
6458
|
+
readonly status: "OK";
|
|
6459
|
+
}) => {
|
|
6460
|
+
readonly data: Schema.Schema.Type<Schema.Struct<{
|
|
6461
|
+
readonly status: Schema.Literal<"OK">;
|
|
6462
|
+
readonly urls: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
6463
|
+
readonly provider: Schema.Literal<"Fastspring">;
|
|
6464
|
+
readonly type: Schema.Literal<"credit-card">;
|
|
6465
|
+
readonly url: Schema.String;
|
|
6466
|
+
}>, Schema.Struct<{
|
|
6467
|
+
readonly discount_percent: Schema.Number;
|
|
6468
|
+
readonly provider: Schema.Literal<"OpenNode">;
|
|
6469
|
+
readonly type: Schema.Literal<"cryptocurrency">;
|
|
6470
|
+
}>, Schema.Struct<{
|
|
6471
|
+
readonly price_id: Schema.NullOr<Schema.String>;
|
|
6472
|
+
readonly provider: Schema.Literal<"PaddleBilling">;
|
|
6473
|
+
readonly type: Schema.Literal<"credit-card">;
|
|
6474
|
+
}>, Schema.Struct<{
|
|
6475
|
+
readonly plan_id: Schema.Int;
|
|
6476
|
+
readonly provider: Schema.Literal<"Paddle">;
|
|
6477
|
+
readonly type: Schema.Literal<"credit-card">;
|
|
6478
|
+
readonly vendor_id: Schema.Int;
|
|
6479
|
+
}>]>>;
|
|
6480
|
+
}>>;
|
|
6481
|
+
readonly type: "checkout";
|
|
6482
|
+
}) & typeof classifyPaymentChangePlanResponse) | (((response: {
|
|
6483
|
+
readonly status: "OK";
|
|
6484
|
+
readonly urls: readonly ({
|
|
6485
|
+
readonly provider: "Fastspring";
|
|
6486
|
+
readonly type: "credit-card";
|
|
6487
|
+
readonly url: string;
|
|
6488
|
+
} | {
|
|
6489
|
+
readonly discount_percent: number;
|
|
6490
|
+
readonly provider: "OpenNode";
|
|
6491
|
+
readonly type: "cryptocurrency";
|
|
6492
|
+
} | {
|
|
6493
|
+
readonly price_id: string | null;
|
|
6494
|
+
readonly provider: "PaddleBilling";
|
|
6495
|
+
readonly type: "credit-card";
|
|
6496
|
+
} | {
|
|
6497
|
+
readonly plan_id: number;
|
|
6498
|
+
readonly provider: "Paddle";
|
|
6499
|
+
readonly type: "credit-card";
|
|
6500
|
+
readonly vendor_id: number;
|
|
6501
|
+
})[];
|
|
6502
|
+
} | {
|
|
6503
|
+
readonly confirmation: true;
|
|
6504
|
+
readonly status: "OK";
|
|
6505
|
+
} | {
|
|
6506
|
+
readonly charged_amount: string;
|
|
6507
|
+
readonly charged_currency: string;
|
|
6508
|
+
readonly next_payment: {
|
|
6509
|
+
readonly amount: string;
|
|
6510
|
+
readonly billing_date: string;
|
|
6511
|
+
readonly currency: string;
|
|
6512
|
+
};
|
|
6513
|
+
readonly status: "OK";
|
|
6514
|
+
} | {
|
|
6515
|
+
readonly status: "OK";
|
|
6516
|
+
}) => {
|
|
6517
|
+
readonly data: Schema.Schema.Type<Schema.Struct<{
|
|
6518
|
+
readonly confirmation: Schema.Literal<true>;
|
|
6519
|
+
readonly status: Schema.Literal<"OK">;
|
|
6520
|
+
}>>;
|
|
6521
|
+
readonly type: "confirmation_required";
|
|
6522
|
+
}) & typeof classifyPaymentChangePlanResponse) | (((response: {
|
|
6523
|
+
readonly status: "OK";
|
|
6524
|
+
readonly urls: readonly ({
|
|
6525
|
+
readonly provider: "Fastspring";
|
|
6526
|
+
readonly type: "credit-card";
|
|
6527
|
+
readonly url: string;
|
|
6528
|
+
} | {
|
|
6529
|
+
readonly discount_percent: number;
|
|
6530
|
+
readonly provider: "OpenNode";
|
|
6531
|
+
readonly type: "cryptocurrency";
|
|
6532
|
+
} | {
|
|
6533
|
+
readonly price_id: string | null;
|
|
6534
|
+
readonly provider: "PaddleBilling";
|
|
6535
|
+
readonly type: "credit-card";
|
|
6536
|
+
} | {
|
|
6537
|
+
readonly plan_id: number;
|
|
6538
|
+
readonly provider: "Paddle";
|
|
6539
|
+
readonly type: "credit-card";
|
|
6540
|
+
readonly vendor_id: number;
|
|
6541
|
+
})[];
|
|
6542
|
+
} | {
|
|
6543
|
+
readonly confirmation: true;
|
|
6544
|
+
readonly status: "OK";
|
|
6545
|
+
} | {
|
|
6546
|
+
readonly charged_amount: string;
|
|
6547
|
+
readonly charged_currency: string;
|
|
6548
|
+
readonly next_payment: {
|
|
6549
|
+
readonly amount: string;
|
|
6550
|
+
readonly billing_date: string;
|
|
6551
|
+
readonly currency: string;
|
|
6552
|
+
};
|
|
6553
|
+
readonly status: "OK";
|
|
6554
|
+
} | {
|
|
6555
|
+
readonly status: "OK";
|
|
6556
|
+
}) => {
|
|
6557
|
+
readonly data: Schema.Schema.Type<Schema.Struct<{
|
|
6558
|
+
readonly charged_amount: Schema.String;
|
|
6559
|
+
readonly charged_currency: Schema.String;
|
|
6560
|
+
readonly next_payment: Schema.Struct<{
|
|
6561
|
+
readonly amount: Schema.String;
|
|
6562
|
+
readonly billing_date: Schema.String;
|
|
6563
|
+
readonly currency: Schema.String;
|
|
6564
|
+
}>;
|
|
6565
|
+
readonly status: Schema.Literal<"OK">;
|
|
6566
|
+
}>>;
|
|
6567
|
+
readonly type: "subscription_updated";
|
|
6568
|
+
}) & typeof classifyPaymentChangePlanResponse) | (((response: {
|
|
6569
|
+
readonly status: "OK";
|
|
6570
|
+
readonly urls: readonly ({
|
|
6571
|
+
readonly provider: "Fastspring";
|
|
6572
|
+
readonly type: "credit-card";
|
|
6573
|
+
readonly url: string;
|
|
6574
|
+
} | {
|
|
6575
|
+
readonly discount_percent: number;
|
|
6576
|
+
readonly provider: "OpenNode";
|
|
6577
|
+
readonly type: "cryptocurrency";
|
|
6578
|
+
} | {
|
|
6579
|
+
readonly price_id: string | null;
|
|
6580
|
+
readonly provider: "PaddleBilling";
|
|
6581
|
+
readonly type: "credit-card";
|
|
6582
|
+
} | {
|
|
6583
|
+
readonly plan_id: number;
|
|
6584
|
+
readonly provider: "Paddle";
|
|
6585
|
+
readonly type: "credit-card";
|
|
6586
|
+
readonly vendor_id: number;
|
|
6587
|
+
})[];
|
|
6588
|
+
} | {
|
|
6589
|
+
readonly confirmation: true;
|
|
6590
|
+
readonly status: "OK";
|
|
6591
|
+
} | {
|
|
6592
|
+
readonly charged_amount: string;
|
|
6593
|
+
readonly charged_currency: string;
|
|
6594
|
+
readonly next_payment: {
|
|
6595
|
+
readonly amount: string;
|
|
6596
|
+
readonly billing_date: string;
|
|
6597
|
+
readonly currency: string;
|
|
6598
|
+
};
|
|
6599
|
+
readonly status: "OK";
|
|
6600
|
+
} | {
|
|
6601
|
+
readonly status: "OK";
|
|
6602
|
+
}) => {
|
|
6603
|
+
readonly data: Schema.Schema.Type<Schema.Struct<{
|
|
6604
|
+
readonly status: Schema.Literal<"OK">;
|
|
6605
|
+
}>>;
|
|
6606
|
+
readonly type: "success";
|
|
6607
|
+
}) & typeof classifyPaymentChangePlanResponse);
|
|
6608
|
+
preview: (input: {
|
|
6609
|
+
readonly coupon_code?: string | undefined;
|
|
6610
|
+
readonly payment_type?: "credit-card" | "cryptocurrency" | undefined;
|
|
6611
|
+
readonly plan_path: string;
|
|
6612
|
+
}) => Promise<{
|
|
6613
|
+
readonly Fastspring: {
|
|
6614
|
+
readonly charge_amount: string | null;
|
|
6615
|
+
readonly currency: string;
|
|
6616
|
+
readonly prorated_amount: string | null;
|
|
6617
|
+
readonly refund_amount: string | null;
|
|
6618
|
+
};
|
|
6619
|
+
readonly Paddle: {
|
|
6620
|
+
readonly charge_amount: string | null;
|
|
6621
|
+
readonly currency: string;
|
|
6622
|
+
readonly next_billing_date: string | null;
|
|
6623
|
+
};
|
|
6624
|
+
readonly PaddleBilling: {
|
|
6625
|
+
readonly next_billing_date: string | null;
|
|
6626
|
+
};
|
|
6627
|
+
readonly amount: string | null;
|
|
6628
|
+
readonly charge_amount: boolean;
|
|
6629
|
+
readonly credit: string | null;
|
|
6630
|
+
readonly currency: string;
|
|
6631
|
+
readonly current_plan: {
|
|
6632
|
+
readonly plan_type: "onetime" | "subscription" | null;
|
|
6633
|
+
readonly subscription_payment_provider: "Fastspring" | "OpenNode" | "Paddle" | "PaddleBilling" | null;
|
|
6634
|
+
};
|
|
6635
|
+
readonly discount?: {
|
|
6636
|
+
readonly discount: number;
|
|
6637
|
+
readonly type: "amount" | "percentage";
|
|
6638
|
+
} | undefined;
|
|
6639
|
+
readonly is_product_change: boolean | null;
|
|
6640
|
+
readonly new_remaining_days: number | null;
|
|
6641
|
+
readonly prorated: string | null;
|
|
6642
|
+
readonly status: "OK";
|
|
6643
|
+
readonly target_plan: {
|
|
6644
|
+
readonly hd_avail: number;
|
|
6645
|
+
readonly is_trial_subscription: boolean;
|
|
6646
|
+
readonly new_code: string;
|
|
6647
|
+
readonly period_days: number | null;
|
|
6648
|
+
readonly plan_code: string;
|
|
6649
|
+
readonly plan_name: string;
|
|
6650
|
+
readonly plan_type: "onetime" | "subscription";
|
|
6651
|
+
readonly price: string;
|
|
6652
|
+
readonly simulated_expiration: string | null;
|
|
6653
|
+
readonly subscription_trial_period: number | null;
|
|
6654
|
+
};
|
|
6655
|
+
}>;
|
|
6656
|
+
submit: (input: {
|
|
6657
|
+
readonly confirmation_code?: string | undefined;
|
|
6658
|
+
readonly coupon_code?: string | undefined;
|
|
6659
|
+
readonly payment_type?: "credit-card" | "cryptocurrency" | undefined;
|
|
6660
|
+
readonly plan_path: string;
|
|
6661
|
+
}) => Promise<{
|
|
6662
|
+
readonly status: "OK";
|
|
6663
|
+
readonly urls: readonly ({
|
|
6664
|
+
readonly provider: "Fastspring";
|
|
6665
|
+
readonly type: "credit-card";
|
|
6666
|
+
readonly url: string;
|
|
6667
|
+
} | {
|
|
6668
|
+
readonly discount_percent: number;
|
|
6669
|
+
readonly provider: "OpenNode";
|
|
6670
|
+
readonly type: "cryptocurrency";
|
|
6671
|
+
} | {
|
|
6672
|
+
readonly price_id: string | null;
|
|
6673
|
+
readonly provider: "PaddleBilling";
|
|
6674
|
+
readonly type: "credit-card";
|
|
6675
|
+
} | {
|
|
6676
|
+
readonly plan_id: number;
|
|
6677
|
+
readonly provider: "Paddle";
|
|
6678
|
+
readonly type: "credit-card";
|
|
6679
|
+
readonly vendor_id: number;
|
|
6680
|
+
})[];
|
|
6681
|
+
} | {
|
|
6682
|
+
readonly confirmation: true;
|
|
6683
|
+
readonly status: "OK";
|
|
6684
|
+
} | {
|
|
6685
|
+
readonly charged_amount: string;
|
|
6686
|
+
readonly charged_currency: string;
|
|
6687
|
+
readonly next_payment: {
|
|
6688
|
+
readonly amount: string;
|
|
6689
|
+
readonly billing_date: string;
|
|
6690
|
+
readonly currency: string;
|
|
6691
|
+
};
|
|
6692
|
+
readonly status: "OK";
|
|
6693
|
+
} | {
|
|
6694
|
+
readonly status: "OK";
|
|
6695
|
+
}>;
|
|
6586
6696
|
};
|
|
6587
6697
|
confirmFastspringOrder: (reference: string) => Promise<boolean>;
|
|
6588
|
-
getInfo: () => Promise<
|
|
6589
|
-
|
|
6590
|
-
|
|
6591
|
-
|
|
6592
|
-
|
|
6698
|
+
getInfo: () => Promise<{
|
|
6699
|
+
readonly expiration_date?: string | undefined;
|
|
6700
|
+
readonly extend_30: string | null;
|
|
6701
|
+
readonly extend_365: string | null;
|
|
6702
|
+
readonly has_pending_payment: boolean;
|
|
6703
|
+
readonly last_payment?: {
|
|
6704
|
+
readonly method?: string | undefined;
|
|
6705
|
+
readonly provider?: string | undefined;
|
|
6706
|
+
} | undefined;
|
|
6707
|
+
readonly pending_bitpay: string | null;
|
|
6708
|
+
readonly plan?: {
|
|
6709
|
+
readonly code?: string | undefined;
|
|
6710
|
+
readonly group_code?: string | undefined;
|
|
6711
|
+
readonly period_days?: number | null | undefined;
|
|
6712
|
+
readonly storage_space?: number | undefined;
|
|
6713
|
+
readonly subscription?: {
|
|
6714
|
+
readonly id?: number | undefined;
|
|
6715
|
+
readonly need_payment_information_update?: boolean | undefined;
|
|
6716
|
+
readonly next_billing_date?: string | null | undefined;
|
|
6717
|
+
readonly next_retry_date?: string | null | undefined;
|
|
6718
|
+
readonly status?: "ACTIVE" | "CANCELED" | "PAST_DUE" | "TRIALING" | null | undefined;
|
|
6719
|
+
readonly update_url?: string | null | undefined;
|
|
6720
|
+
} | undefined;
|
|
6721
|
+
readonly type?: "onetime" | "subscription" | null | undefined;
|
|
6722
|
+
} | undefined;
|
|
6723
|
+
readonly status: "OK";
|
|
6724
|
+
}>;
|
|
6725
|
+
listHistory: (query?: {
|
|
6726
|
+
readonly unreported_only?: boolean | undefined;
|
|
6727
|
+
} | undefined) => Promise<readonly {
|
|
6728
|
+
readonly amount: string;
|
|
6729
|
+
readonly amount_actual?: string | undefined;
|
|
6730
|
+
readonly amount_currency: string;
|
|
6731
|
+
readonly actual_currency_code?: string | undefined;
|
|
6732
|
+
readonly coupon_code: string | null;
|
|
6733
|
+
readonly date: string;
|
|
6734
|
+
readonly id: number;
|
|
6735
|
+
readonly invoice: string | null;
|
|
6736
|
+
readonly plan: {
|
|
6737
|
+
readonly name: string;
|
|
6738
|
+
readonly period_days: number | null;
|
|
6739
|
+
readonly price: string | null;
|
|
6740
|
+
readonly type: "onetime" | "subscription" | null;
|
|
6741
|
+
};
|
|
6742
|
+
readonly refunded: boolean;
|
|
6743
|
+
readonly refunds: readonly {
|
|
6744
|
+
readonly amount_actual: string;
|
|
6745
|
+
}[];
|
|
6746
|
+
readonly return_status: string;
|
|
6747
|
+
readonly type: string;
|
|
6748
|
+
}[]>;
|
|
6749
|
+
listInvites: () => Promise<readonly {
|
|
6750
|
+
readonly is_converted: boolean;
|
|
6751
|
+
readonly url: string;
|
|
6752
|
+
readonly used_by: string | null;
|
|
6753
|
+
}[]>;
|
|
6754
|
+
listOptions: () => Promise<readonly {
|
|
6755
|
+
readonly discount_percent: number;
|
|
6756
|
+
readonly name: "credit-card" | "cryptocurrency";
|
|
6757
|
+
readonly suitable_plan_types: readonly ("onetime" | "subscription" | "trial")[];
|
|
6758
|
+
}[]>;
|
|
6759
|
+
listPlans: () => Promise<readonly {
|
|
6760
|
+
readonly common_properties: {
|
|
6761
|
+
readonly family_invites: number;
|
|
6762
|
+
readonly seed_ratio: number;
|
|
6763
|
+
readonly seed_time: number;
|
|
6764
|
+
readonly storage_space: number;
|
|
6765
|
+
readonly torrent_slot: number;
|
|
6766
|
+
};
|
|
6767
|
+
readonly plan_group_code: string;
|
|
6768
|
+
readonly sub_plans: readonly {
|
|
6769
|
+
readonly code: string;
|
|
6770
|
+
readonly daily_price: string | null;
|
|
6771
|
+
readonly fastspring_url: string | null;
|
|
6772
|
+
readonly is_trial_subscription: boolean;
|
|
6773
|
+
readonly period_days: number | null;
|
|
6774
|
+
readonly price: string | null;
|
|
6775
|
+
readonly subscription_trial_period: number | null;
|
|
6776
|
+
readonly type: "onetime" | "subscription";
|
|
6777
|
+
}[];
|
|
6778
|
+
}[]>;
|
|
6593
6779
|
methods: {
|
|
6594
|
-
addPaddleWaitingPayment: (input:
|
|
6780
|
+
addPaddleWaitingPayment: (input: {
|
|
6781
|
+
readonly checkout_id: string;
|
|
6782
|
+
readonly product_id: string | number;
|
|
6783
|
+
}) => Promise<void>;
|
|
6595
6784
|
createOpenNodeCharge: (planPath: string) => Promise<string>;
|
|
6596
6785
|
createPaddleBillingUpdatePaymentMethodTransaction: (userSubscriptionId: number) => Promise<string>;
|
|
6597
6786
|
getPaddleBillingInvoiceUrl: (paymentId: number) => Promise<string>;
|
|
6598
6787
|
};
|
|
6599
|
-
report: (paymentIds:
|
|
6788
|
+
report: (paymentIds: readonly number[]) => Promise<void>;
|
|
6600
6789
|
stopSubscription: () => Promise<void>;
|
|
6601
6790
|
voucher: {
|
|
6602
|
-
getInfo: (code: string) => Promise<
|
|
6791
|
+
getInfo: (code: string) => Promise<{
|
|
6792
|
+
readonly current_plan: {
|
|
6793
|
+
readonly expiration_date: string | null;
|
|
6794
|
+
readonly type: "onetime" | "subscription" | null;
|
|
6795
|
+
};
|
|
6796
|
+
readonly new_remaining_days: number;
|
|
6797
|
+
readonly status: "OK";
|
|
6798
|
+
readonly target_plan: {
|
|
6799
|
+
readonly code: string;
|
|
6800
|
+
readonly group_code: string;
|
|
6801
|
+
readonly hd_avail: number;
|
|
6802
|
+
readonly name: string;
|
|
6803
|
+
readonly simulated_expiration?: string | null | undefined;
|
|
6804
|
+
readonly type: "onetime" | "subscription";
|
|
6805
|
+
};
|
|
6806
|
+
}>;
|
|
6603
6807
|
redeem: (code: string) => Promise<void>;
|
|
6604
6808
|
};
|
|
6605
6809
|
};
|
|
@@ -6607,12 +6811,74 @@ declare const createPutioSdkPromiseClient: (initialConfig?: PutioSdkConfigShape)
|
|
|
6607
6811
|
clearLogs: (id: number) => Promise<{
|
|
6608
6812
|
readonly status: "OK";
|
|
6609
6813
|
}>;
|
|
6610
|
-
create: (params:
|
|
6814
|
+
create: (params: {
|
|
6815
|
+
readonly delete_old_files?: boolean | undefined;
|
|
6816
|
+
readonly dont_process_whole_feed?: boolean | undefined;
|
|
6817
|
+
readonly keyword?: string | null | undefined;
|
|
6818
|
+
readonly parent_dir_id?: number | "newf" | undefined;
|
|
6819
|
+
readonly rss_source_url: string;
|
|
6820
|
+
readonly title: string;
|
|
6821
|
+
readonly unwanted_keywords?: string | undefined;
|
|
6822
|
+
}) => Promise<{
|
|
6823
|
+
readonly created_at: string;
|
|
6824
|
+
readonly delete_old_files: boolean;
|
|
6825
|
+
readonly extract: boolean;
|
|
6826
|
+
readonly failed_item_count?: number | undefined;
|
|
6827
|
+
readonly id: number;
|
|
6828
|
+
readonly keyword: string | null;
|
|
6829
|
+
readonly last_error: string | null;
|
|
6830
|
+
readonly last_fetch: string | null;
|
|
6831
|
+
readonly parent_dir_id: number;
|
|
6832
|
+
readonly parentdirid: number;
|
|
6833
|
+
readonly paused: boolean;
|
|
6834
|
+
readonly paused_at: string | null;
|
|
6835
|
+
readonly rss_source_url: string;
|
|
6836
|
+
readonly start_at: string | null;
|
|
6837
|
+
readonly title: string;
|
|
6838
|
+
readonly unwanted_keywords: string;
|
|
6839
|
+
readonly updated_at: string;
|
|
6840
|
+
}>;
|
|
6611
6841
|
delete: (id: number) => Promise<{
|
|
6612
6842
|
readonly status: "OK";
|
|
6613
6843
|
}>;
|
|
6614
|
-
get: (id: number) => Promise<
|
|
6615
|
-
|
|
6844
|
+
get: (id: number) => Promise<{
|
|
6845
|
+
readonly created_at: string;
|
|
6846
|
+
readonly delete_old_files: boolean;
|
|
6847
|
+
readonly extract: boolean;
|
|
6848
|
+
readonly failed_item_count?: number | undefined;
|
|
6849
|
+
readonly id: number;
|
|
6850
|
+
readonly keyword: string | null;
|
|
6851
|
+
readonly last_error: string | null;
|
|
6852
|
+
readonly last_fetch: string | null;
|
|
6853
|
+
readonly parent_dir_id: number;
|
|
6854
|
+
readonly parentdirid: number;
|
|
6855
|
+
readonly paused: boolean;
|
|
6856
|
+
readonly paused_at: string | null;
|
|
6857
|
+
readonly rss_source_url: string;
|
|
6858
|
+
readonly start_at: string | null;
|
|
6859
|
+
readonly title: string;
|
|
6860
|
+
readonly unwanted_keywords: string;
|
|
6861
|
+
readonly updated_at: string;
|
|
6862
|
+
}>;
|
|
6863
|
+
list: () => Promise<readonly {
|
|
6864
|
+
readonly created_at: string;
|
|
6865
|
+
readonly delete_old_files: boolean;
|
|
6866
|
+
readonly extract: boolean;
|
|
6867
|
+
readonly failed_item_count?: number | undefined;
|
|
6868
|
+
readonly id: number;
|
|
6869
|
+
readonly keyword: string | null;
|
|
6870
|
+
readonly last_error: string | null;
|
|
6871
|
+
readonly last_fetch: string | null;
|
|
6872
|
+
readonly parent_dir_id: number;
|
|
6873
|
+
readonly parentdirid: number;
|
|
6874
|
+
readonly paused: boolean;
|
|
6875
|
+
readonly paused_at: string | null;
|
|
6876
|
+
readonly rss_source_url: string;
|
|
6877
|
+
readonly start_at: string | null;
|
|
6878
|
+
readonly title: string;
|
|
6879
|
+
readonly unwanted_keywords: string;
|
|
6880
|
+
readonly updated_at: string;
|
|
6881
|
+
}[]>;
|
|
6616
6882
|
listItems: (id: number) => Promise<{
|
|
6617
6883
|
readonly feed: RssFeed;
|
|
6618
6884
|
readonly items: ReadonlyArray<RssFeedItem>;
|
|
@@ -6623,54 +6889,141 @@ declare const createPutioSdkPromiseClient: (initialConfig?: PutioSdkConfigShape)
|
|
|
6623
6889
|
resume: (id: number) => Promise<{
|
|
6624
6890
|
readonly status: "OK";
|
|
6625
6891
|
}>;
|
|
6626
|
-
retryAll: (
|
|
6892
|
+
retryAll: (feedId: number) => Promise<{
|
|
6627
6893
|
readonly status: "OK";
|
|
6628
6894
|
}>;
|
|
6629
6895
|
retryItem: (feedId: number, itemId: number) => Promise<{
|
|
6630
6896
|
readonly status: "OK";
|
|
6631
6897
|
}>;
|
|
6632
|
-
update: (id: number, params:
|
|
6898
|
+
update: (id: number, params: {
|
|
6899
|
+
readonly delete_old_files?: boolean | undefined;
|
|
6900
|
+
readonly dont_process_whole_feed?: boolean | undefined;
|
|
6901
|
+
readonly keyword?: string | null | undefined;
|
|
6902
|
+
readonly parent_dir_id?: number | "newf" | undefined;
|
|
6903
|
+
readonly rss_source_url: string;
|
|
6904
|
+
readonly title: string;
|
|
6905
|
+
readonly unwanted_keywords?: string | undefined;
|
|
6906
|
+
}) => Promise<{
|
|
6633
6907
|
readonly status: "OK";
|
|
6634
6908
|
}>;
|
|
6635
6909
|
};
|
|
6636
6910
|
sharing: {
|
|
6637
6911
|
clone: (input?: {
|
|
6638
|
-
readonly cursor?: string;
|
|
6639
|
-
readonly excludeIds?:
|
|
6640
|
-
readonly ids?:
|
|
6641
|
-
readonly parentId?: number;
|
|
6642
|
-
}) => Promise<{
|
|
6912
|
+
readonly cursor?: string | undefined;
|
|
6913
|
+
readonly excludeIds?: readonly number[] | undefined;
|
|
6914
|
+
readonly ids?: readonly number[] | undefined;
|
|
6915
|
+
readonly parentId?: number | undefined;
|
|
6916
|
+
} | undefined) => Promise<{
|
|
6643
6917
|
readonly id: number;
|
|
6644
6918
|
}>;
|
|
6645
|
-
getCloneInfo: (id: number) => Promise<
|
|
6646
|
-
|
|
6647
|
-
|
|
6648
|
-
|
|
6649
|
-
|
|
6650
|
-
|
|
6651
|
-
|
|
6652
|
-
|
|
6653
|
-
|
|
6654
|
-
|
|
6655
|
-
|
|
6656
|
-
|
|
6657
|
-
|
|
6658
|
-
|
|
6659
|
-
|
|
6660
|
-
|
|
6661
|
-
|
|
6662
|
-
|
|
6663
|
-
|
|
6664
|
-
|
|
6665
|
-
|
|
6666
|
-
|
|
6667
|
-
|
|
6668
|
-
|
|
6669
|
-
|
|
6670
|
-
|
|
6671
|
-
|
|
6672
|
-
|
|
6673
|
-
|
|
6919
|
+
getCloneInfo: (id: number) => Promise<{
|
|
6920
|
+
readonly shared_file_clone_status: "DONE" | "NEW" | "PROCESSING";
|
|
6921
|
+
readonly status: "OK";
|
|
6922
|
+
} | {
|
|
6923
|
+
readonly error_msg: string;
|
|
6924
|
+
readonly shared_file_clone_status: "ERROR";
|
|
6925
|
+
readonly status: "OK";
|
|
6926
|
+
}>;
|
|
6927
|
+
getSharedWith: (fileId: number) => Promise<{
|
|
6928
|
+
readonly share_type: "everyone";
|
|
6929
|
+
readonly status?: "OK" | undefined;
|
|
6930
|
+
} | {
|
|
6931
|
+
readonly share_type: "friends";
|
|
6932
|
+
readonly shares: readonly {
|
|
6933
|
+
readonly share_id: number;
|
|
6934
|
+
readonly user_avatar_url: string;
|
|
6935
|
+
readonly user_name: string;
|
|
6936
|
+
}[];
|
|
6937
|
+
readonly status?: "OK" | undefined;
|
|
6938
|
+
}>;
|
|
6939
|
+
listSharedFiles: () => Promise<readonly {
|
|
6940
|
+
readonly content_type: string | null;
|
|
6941
|
+
readonly created_at: string;
|
|
6942
|
+
readonly crc32: string | null;
|
|
6943
|
+
readonly extension: string | null;
|
|
6944
|
+
readonly file_type: "ARCHIVE" | "AUDIO" | "FILE" | "FOLDER" | "IMAGE" | "PDF" | "SWF" | "TEXT" | "VIDEO";
|
|
6945
|
+
readonly first_accessed_at: string | null;
|
|
6946
|
+
readonly folder_type: "REGULAR" | "SHARED_FRIEND" | "SHARED_ROOT";
|
|
6947
|
+
readonly icon: string | null;
|
|
6948
|
+
readonly id: number;
|
|
6949
|
+
readonly is_hidden: boolean;
|
|
6950
|
+
readonly is_mp4_available: boolean;
|
|
6951
|
+
readonly is_shared: boolean;
|
|
6952
|
+
readonly name: string;
|
|
6953
|
+
readonly opensubtitles_hash: string | null;
|
|
6954
|
+
readonly parent_id: number | null;
|
|
6955
|
+
readonly screenshot: string | null;
|
|
6956
|
+
readonly sha1?: string | null | undefined;
|
|
6957
|
+
readonly size: number;
|
|
6958
|
+
readonly start_from?: number | undefined;
|
|
6959
|
+
readonly updated_at: string;
|
|
6960
|
+
readonly content_type_and_codecs?: string | null | undefined;
|
|
6961
|
+
readonly media_info?: {
|
|
6962
|
+
readonly format?: {
|
|
6963
|
+
readonly bit_rate?: number | undefined;
|
|
6964
|
+
readonly duration?: number | undefined;
|
|
6965
|
+
readonly name?: string | undefined;
|
|
6966
|
+
} | null | undefined;
|
|
6967
|
+
readonly mime_type?: string | null | undefined;
|
|
6968
|
+
readonly streams?: readonly {
|
|
6969
|
+
readonly channels?: number | undefined;
|
|
6970
|
+
readonly codec_name?: string | undefined;
|
|
6971
|
+
readonly codec_type?: string | undefined;
|
|
6972
|
+
readonly height?: number | undefined;
|
|
6973
|
+
readonly level?: number | undefined;
|
|
6974
|
+
readonly profile?: string | undefined;
|
|
6975
|
+
readonly rfc6381_codec?: string | undefined;
|
|
6976
|
+
readonly width?: number | undefined;
|
|
6977
|
+
}[] | undefined;
|
|
6978
|
+
} | null | undefined;
|
|
6979
|
+
readonly media_metadata?: {
|
|
6980
|
+
readonly aspect_ratio?: number | null | undefined;
|
|
6981
|
+
readonly codec?: string | null | undefined;
|
|
6982
|
+
readonly duration?: number | null | undefined;
|
|
6983
|
+
readonly height?: number | null | undefined;
|
|
6984
|
+
readonly width?: number | null | undefined;
|
|
6985
|
+
} | null | undefined;
|
|
6986
|
+
readonly mp4_size?: number | null | undefined;
|
|
6987
|
+
readonly mp4_stream_url?: string | null | undefined;
|
|
6988
|
+
readonly need_convert?: boolean | undefined;
|
|
6989
|
+
readonly sender_name?: string | undefined;
|
|
6990
|
+
readonly sort_by?: "DATE_ASC" | "DATE_DESC" | "MODIFIED_ASC" | "MODIFIED_DESC" | "NAME_ASC" | "NAME_DESC" | "SIZE_ASC" | "SIZE_DESC" | "TYPE_ASC" | "TYPE_DESC" | "WATCH_ASC" | "WATCH_DESC" | undefined;
|
|
6991
|
+
readonly stream_url?: string | null | undefined;
|
|
6992
|
+
readonly video_metadata?: {
|
|
6993
|
+
readonly aspect_ratio?: number | null | undefined;
|
|
6994
|
+
readonly codec?: string | null | undefined;
|
|
6995
|
+
readonly duration?: number | null | undefined;
|
|
6996
|
+
readonly height?: number | null | undefined;
|
|
6997
|
+
readonly width?: number | null | undefined;
|
|
6998
|
+
} | null | undefined;
|
|
6999
|
+
readonly shared_with: number | "everyone";
|
|
7000
|
+
}[]>;
|
|
7001
|
+
publicAccess: {
|
|
7002
|
+
continueFiles: (cursor: string, query?: {
|
|
7003
|
+
readonly per_page?: number;
|
|
7004
|
+
} | undefined) => Promise<{
|
|
7005
|
+
readonly breadcrumbs?: readonly (readonly [number, string])[] | undefined;
|
|
7006
|
+
readonly cursor: string | null;
|
|
7007
|
+
readonly files: readonly {
|
|
7008
|
+
readonly content_type: string | null;
|
|
7009
|
+
readonly created_at: string;
|
|
7010
|
+
readonly crc32: string | null;
|
|
7011
|
+
readonly extension: string | null;
|
|
7012
|
+
readonly file_type: "ARCHIVE" | "AUDIO" | "FILE" | "FOLDER" | "IMAGE" | "PDF" | "SWF" | "TEXT" | "VIDEO";
|
|
7013
|
+
readonly first_accessed_at: string | null;
|
|
7014
|
+
readonly folder_type: "REGULAR" | "SHARED_FRIEND" | "SHARED_ROOT";
|
|
7015
|
+
readonly icon: string | null;
|
|
7016
|
+
readonly id: number;
|
|
7017
|
+
readonly is_hidden: boolean;
|
|
7018
|
+
readonly is_mp4_available: boolean;
|
|
7019
|
+
readonly is_shared: boolean;
|
|
7020
|
+
readonly name: string;
|
|
7021
|
+
readonly opensubtitles_hash: string | null;
|
|
7022
|
+
readonly parent_id: number | null;
|
|
7023
|
+
readonly screenshot: string | null;
|
|
7024
|
+
readonly sha1?: string | null | undefined;
|
|
7025
|
+
readonly size: number;
|
|
7026
|
+
readonly start_from?: number | undefined;
|
|
6674
7027
|
readonly updated_at: string;
|
|
6675
7028
|
readonly content_type_and_codecs?: string | null | undefined;
|
|
6676
7029
|
readonly media_info?: {
|
|
@@ -6776,9 +7129,37 @@ declare const createPutioSdkPromiseClient: (initialConfig?: PutioSdkConfigShape)
|
|
|
6776
7129
|
readonly status: "OK";
|
|
6777
7130
|
readonly total?: number | undefined;
|
|
6778
7131
|
}>;
|
|
6779
|
-
get: () => Promise<
|
|
7132
|
+
get: () => Promise<{
|
|
7133
|
+
readonly created_at: string;
|
|
7134
|
+
readonly expiration_date: string;
|
|
7135
|
+
readonly id: number;
|
|
7136
|
+
readonly owner: {
|
|
7137
|
+
readonly name: string;
|
|
7138
|
+
};
|
|
7139
|
+
readonly push_token: string;
|
|
7140
|
+
readonly token: string;
|
|
7141
|
+
readonly user_file: {
|
|
7142
|
+
readonly file_type: string;
|
|
7143
|
+
readonly id: number;
|
|
7144
|
+
readonly name: string;
|
|
7145
|
+
};
|
|
7146
|
+
}>;
|
|
6780
7147
|
getFileUrl: (fileId: number) => Promise<string>;
|
|
6781
|
-
listFiles: (query?:
|
|
7148
|
+
listFiles: (query?: {
|
|
7149
|
+
readonly breadcrumbs?: 1 | undefined;
|
|
7150
|
+
readonly content_type?: string | undefined;
|
|
7151
|
+
readonly file_type?: string | undefined;
|
|
7152
|
+
readonly hidden?: 1 | undefined;
|
|
7153
|
+
readonly media_info_parent?: 1 | undefined;
|
|
7154
|
+
readonly mp4_status_parent?: 1 | undefined;
|
|
7155
|
+
readonly parent_id?: number | undefined;
|
|
7156
|
+
readonly per_page?: number | undefined;
|
|
7157
|
+
readonly sort?: string | undefined;
|
|
7158
|
+
readonly sort_by?: string | undefined;
|
|
7159
|
+
readonly stream_url_parent?: 1 | undefined;
|
|
7160
|
+
readonly total?: 1 | undefined;
|
|
7161
|
+
readonly video_metadata_parent?: 1 | undefined;
|
|
7162
|
+
} | undefined) => Promise<{
|
|
6782
7163
|
readonly breadcrumbs?: readonly (readonly [number, string])[] | undefined;
|
|
6783
7164
|
readonly cursor: string | null;
|
|
6784
7165
|
readonly files: readonly {
|
|
@@ -6908,70 +7289,2438 @@ declare const createPutioSdkPromiseClient: (initialConfig?: PutioSdkConfigShape)
|
|
|
6908
7289
|
}>;
|
|
6909
7290
|
};
|
|
6910
7291
|
publicShares: {
|
|
6911
|
-
create: (fileId: number) => Promise<
|
|
7292
|
+
create: (fileId: number) => Promise<{
|
|
7293
|
+
readonly created_at: string;
|
|
7294
|
+
readonly expiration_date: string;
|
|
7295
|
+
readonly id: number;
|
|
7296
|
+
readonly owner: {
|
|
7297
|
+
readonly name: string;
|
|
7298
|
+
};
|
|
7299
|
+
readonly push_token: string;
|
|
7300
|
+
readonly token: string;
|
|
7301
|
+
readonly user_file: {
|
|
7302
|
+
readonly file_type: string;
|
|
7303
|
+
readonly id: number;
|
|
7304
|
+
readonly name: string;
|
|
7305
|
+
};
|
|
7306
|
+
}>;
|
|
6912
7307
|
delete: (id: number) => Promise<{
|
|
6913
7308
|
readonly status: "OK";
|
|
6914
7309
|
}>;
|
|
6915
|
-
list: () => Promise<
|
|
7310
|
+
list: () => Promise<readonly {
|
|
7311
|
+
readonly created_at: string;
|
|
7312
|
+
readonly expiration_date: string;
|
|
7313
|
+
readonly id: number;
|
|
7314
|
+
readonly owner: {
|
|
7315
|
+
readonly name: string;
|
|
7316
|
+
};
|
|
7317
|
+
readonly push_token: string;
|
|
7318
|
+
readonly token: string;
|
|
7319
|
+
readonly user_file: {
|
|
7320
|
+
readonly file_type: string;
|
|
7321
|
+
readonly id: number;
|
|
7322
|
+
readonly name: string;
|
|
7323
|
+
};
|
|
7324
|
+
}[]>;
|
|
6916
7325
|
};
|
|
6917
|
-
shareFiles: (input:
|
|
7326
|
+
shareFiles: (input: {
|
|
7327
|
+
readonly cursor?: string | undefined;
|
|
7328
|
+
readonly excludeIds?: readonly number[] | undefined;
|
|
7329
|
+
readonly ids?: readonly number[] | undefined;
|
|
7330
|
+
readonly target: {
|
|
7331
|
+
readonly type: "everyone";
|
|
7332
|
+
} | {
|
|
7333
|
+
readonly friendNames: readonly string[];
|
|
7334
|
+
readonly type: "friends";
|
|
7335
|
+
};
|
|
7336
|
+
}) => Promise<{
|
|
6918
7337
|
readonly status: "OK";
|
|
6919
7338
|
}>;
|
|
6920
7339
|
unshare: (input: {
|
|
6921
7340
|
readonly fileId: number;
|
|
6922
|
-
readonly shares?:
|
|
7341
|
+
readonly shares?: readonly (string | number)[] | undefined;
|
|
6923
7342
|
}) => Promise<{
|
|
6924
7343
|
readonly status: "OK";
|
|
6925
7344
|
}>;
|
|
6926
7345
|
};
|
|
6927
7346
|
tunnel: {
|
|
6928
|
-
listRoutes: () => Promise<
|
|
7347
|
+
listRoutes: () => Promise<readonly {
|
|
7348
|
+
readonly description: string;
|
|
7349
|
+
readonly hosts: readonly string[];
|
|
7350
|
+
readonly name: string;
|
|
7351
|
+
}[]>;
|
|
6929
7352
|
};
|
|
6930
7353
|
trash: {
|
|
6931
|
-
continue: (cursor: string, query?:
|
|
6932
|
-
|
|
7354
|
+
continue: (cursor: string, query?: {
|
|
7355
|
+
readonly per_page?: number | undefined;
|
|
7356
|
+
} | undefined) => Promise<{
|
|
7357
|
+
readonly cursor: string | null;
|
|
7358
|
+
readonly files: readonly {
|
|
7359
|
+
readonly content_type: string | null;
|
|
7360
|
+
readonly created_at: string;
|
|
7361
|
+
readonly deleted_at: string;
|
|
7362
|
+
readonly expiration_date: string;
|
|
7363
|
+
readonly extension: string | null;
|
|
7364
|
+
readonly file_type: "ARCHIVE" | "AUDIO" | "FILE" | "FOLDER" | "IMAGE" | "PDF" | "SWF" | "TEXT" | "VIDEO";
|
|
7365
|
+
readonly first_accessed_at: string | null;
|
|
7366
|
+
readonly folder_type: "REGULAR";
|
|
7367
|
+
readonly icon: string | null;
|
|
7368
|
+
readonly id: number;
|
|
7369
|
+
readonly name: string;
|
|
7370
|
+
readonly parent_id: number | null;
|
|
7371
|
+
readonly screenshot: unknown;
|
|
7372
|
+
readonly size: number;
|
|
7373
|
+
}[];
|
|
7374
|
+
readonly status: "OK";
|
|
7375
|
+
}>;
|
|
7376
|
+
delete: (input: {
|
|
7377
|
+
readonly cursor: string;
|
|
7378
|
+
readonly file_ids?: undefined;
|
|
7379
|
+
readonly useCursor: true;
|
|
7380
|
+
} | {
|
|
7381
|
+
readonly cursor?: undefined;
|
|
7382
|
+
readonly file_ids: readonly number[];
|
|
7383
|
+
readonly useCursor?: false | undefined;
|
|
7384
|
+
}) => Promise<void>;
|
|
6933
7385
|
empty: () => Promise<void>;
|
|
6934
|
-
list: (query?:
|
|
6935
|
-
|
|
7386
|
+
list: (query?: {
|
|
7387
|
+
readonly per_page?: number | undefined;
|
|
7388
|
+
} | undefined) => Promise<{
|
|
7389
|
+
readonly cursor: string | null;
|
|
7390
|
+
readonly files: readonly {
|
|
7391
|
+
readonly content_type: string | null;
|
|
7392
|
+
readonly created_at: string;
|
|
7393
|
+
readonly deleted_at: string;
|
|
7394
|
+
readonly expiration_date: string;
|
|
7395
|
+
readonly extension: string | null;
|
|
7396
|
+
readonly file_type: "ARCHIVE" | "AUDIO" | "FILE" | "FOLDER" | "IMAGE" | "PDF" | "SWF" | "TEXT" | "VIDEO";
|
|
7397
|
+
readonly first_accessed_at: string | null;
|
|
7398
|
+
readonly folder_type: "REGULAR";
|
|
7399
|
+
readonly icon: string | null;
|
|
7400
|
+
readonly id: number;
|
|
7401
|
+
readonly name: string;
|
|
7402
|
+
readonly parent_id: number | null;
|
|
7403
|
+
readonly screenshot: unknown;
|
|
7404
|
+
readonly size: number;
|
|
7405
|
+
}[];
|
|
7406
|
+
readonly status: "OK";
|
|
7407
|
+
readonly total: number;
|
|
7408
|
+
readonly trash_size: number;
|
|
7409
|
+
}>;
|
|
7410
|
+
restore: (input: {
|
|
7411
|
+
readonly cursor: string;
|
|
7412
|
+
readonly file_ids?: undefined;
|
|
7413
|
+
readonly useCursor: true;
|
|
7414
|
+
} | {
|
|
7415
|
+
readonly cursor?: undefined;
|
|
7416
|
+
readonly file_ids: readonly number[];
|
|
7417
|
+
readonly useCursor?: false | undefined;
|
|
7418
|
+
}) => Promise<void>;
|
|
6936
7419
|
};
|
|
6937
7420
|
transfers: {
|
|
6938
|
-
add: (input:
|
|
6939
|
-
|
|
7421
|
+
add: (input: {
|
|
7422
|
+
readonly callback_url?: string | undefined;
|
|
7423
|
+
readonly save_parent_id?: number | undefined;
|
|
7424
|
+
readonly url: string;
|
|
7425
|
+
}) => Promise<{
|
|
7426
|
+
readonly availability: number | null;
|
|
7427
|
+
readonly callback_url: string | null;
|
|
7428
|
+
readonly client_ip: string | null;
|
|
7429
|
+
readonly completion_percent: number | null;
|
|
7430
|
+
readonly created_at: string;
|
|
7431
|
+
readonly created_torrent: boolean;
|
|
7432
|
+
readonly current_ratio: number | null;
|
|
7433
|
+
readonly download_id: number | null;
|
|
7434
|
+
readonly down_speed: number | null;
|
|
7435
|
+
readonly downloaded: number | null;
|
|
7436
|
+
readonly estimated_time: number | null;
|
|
7437
|
+
readonly file_id: number | null;
|
|
7438
|
+
readonly finished_at: string | null;
|
|
7439
|
+
readonly hash: string | null;
|
|
7440
|
+
readonly id: number;
|
|
7441
|
+
readonly is_private: boolean;
|
|
7442
|
+
readonly links?: readonly {
|
|
7443
|
+
readonly label: string;
|
|
7444
|
+
readonly url: string | null;
|
|
7445
|
+
}[] | undefined;
|
|
7446
|
+
readonly name: string;
|
|
7447
|
+
readonly peers_connected: number | null;
|
|
7448
|
+
readonly peers_getting_from_us: number | null;
|
|
7449
|
+
readonly peers_sending_to_us: number | null;
|
|
7450
|
+
readonly percent_done: number | null;
|
|
7451
|
+
readonly recorded_seconds?: number | null | undefined;
|
|
7452
|
+
readonly save_parent_id: number;
|
|
7453
|
+
readonly seconds_seeding: number | null;
|
|
7454
|
+
readonly simulated: boolean;
|
|
7455
|
+
readonly size: number | null;
|
|
7456
|
+
readonly source: string;
|
|
7457
|
+
readonly started_at: string | null;
|
|
7458
|
+
readonly subscription_id: number | null;
|
|
7459
|
+
readonly torrent_link: string | null;
|
|
7460
|
+
readonly tracker: string | null;
|
|
7461
|
+
readonly tracker_message: string | null;
|
|
7462
|
+
readonly type: "LIVE_STREAM" | "N/A" | "PLAYLIST" | "TORRENT" | "URL";
|
|
7463
|
+
readonly uploaded: number | null;
|
|
7464
|
+
readonly up_speed: number | null;
|
|
7465
|
+
readonly userfile_exists?: boolean | undefined;
|
|
7466
|
+
readonly error_message: string;
|
|
7467
|
+
readonly status: "ERROR";
|
|
7468
|
+
} | {
|
|
7469
|
+
readonly availability: number | null;
|
|
7470
|
+
readonly callback_url: string | null;
|
|
7471
|
+
readonly client_ip: string | null;
|
|
7472
|
+
readonly completion_percent: number | null;
|
|
7473
|
+
readonly created_at: string;
|
|
7474
|
+
readonly created_torrent: boolean;
|
|
7475
|
+
readonly current_ratio: number | null;
|
|
7476
|
+
readonly download_id: number | null;
|
|
7477
|
+
readonly down_speed: number | null;
|
|
7478
|
+
readonly downloaded: number | null;
|
|
7479
|
+
readonly error_message: string | null;
|
|
7480
|
+
readonly estimated_time: number | null;
|
|
7481
|
+
readonly file_id: number | null;
|
|
7482
|
+
readonly finished_at: string | null;
|
|
7483
|
+
readonly hash: string | null;
|
|
7484
|
+
readonly id: number;
|
|
7485
|
+
readonly is_private: boolean;
|
|
7486
|
+
readonly links?: readonly {
|
|
7487
|
+
readonly label: string;
|
|
7488
|
+
readonly url: string | null;
|
|
7489
|
+
}[] | undefined;
|
|
7490
|
+
readonly name: string;
|
|
7491
|
+
readonly peers_connected: number | null;
|
|
7492
|
+
readonly peers_getting_from_us: number | null;
|
|
7493
|
+
readonly peers_sending_to_us: number | null;
|
|
7494
|
+
readonly percent_done: number | null;
|
|
7495
|
+
readonly save_parent_id: number;
|
|
7496
|
+
readonly seconds_seeding: number | null;
|
|
7497
|
+
readonly simulated: boolean;
|
|
7498
|
+
readonly size: number | null;
|
|
7499
|
+
readonly source: string;
|
|
7500
|
+
readonly started_at: string | null;
|
|
7501
|
+
readonly status: "COMPLETED" | "COMPLETING" | "DOWNLOADING" | "ERROR" | "IN_QUEUE" | "PREPARING_DOWNLOAD" | "PREPARING_SEED" | "SEEDING" | "STOPPING" | "WAITING" | "WAITING_FOR_COMPLETE_QUEUE" | "WAITING_FOR_DOWNLOADER";
|
|
7502
|
+
readonly subscription_id: number | null;
|
|
7503
|
+
readonly torrent_link: string | null;
|
|
7504
|
+
readonly tracker: string | null;
|
|
7505
|
+
readonly tracker_message: string | null;
|
|
7506
|
+
readonly uploaded: number | null;
|
|
7507
|
+
readonly up_speed: number | null;
|
|
7508
|
+
readonly userfile_exists?: boolean | undefined;
|
|
7509
|
+
readonly recorded_seconds: number;
|
|
7510
|
+
readonly type: "LIVE_STREAM";
|
|
7511
|
+
} | {
|
|
7512
|
+
readonly availability: number | null;
|
|
7513
|
+
readonly callback_url: string | null;
|
|
7514
|
+
readonly client_ip: string | null;
|
|
7515
|
+
readonly completion_percent: number | null;
|
|
7516
|
+
readonly created_at: string;
|
|
7517
|
+
readonly created_torrent: boolean;
|
|
7518
|
+
readonly download_id: number | null;
|
|
7519
|
+
readonly down_speed: number | null;
|
|
7520
|
+
readonly downloaded: number | null;
|
|
7521
|
+
readonly error_message: string | null;
|
|
7522
|
+
readonly estimated_time: number | null;
|
|
7523
|
+
readonly file_id: number | null;
|
|
7524
|
+
readonly finished_at: string | null;
|
|
7525
|
+
readonly hash: string | null;
|
|
7526
|
+
readonly id: number;
|
|
7527
|
+
readonly is_private: boolean;
|
|
7528
|
+
readonly links?: readonly {
|
|
7529
|
+
readonly label: string;
|
|
7530
|
+
readonly url: string | null;
|
|
7531
|
+
}[] | undefined;
|
|
7532
|
+
readonly name: string;
|
|
7533
|
+
readonly peers_connected: number | null;
|
|
7534
|
+
readonly peers_getting_from_us: number | null;
|
|
7535
|
+
readonly peers_sending_to_us: number | null;
|
|
7536
|
+
readonly percent_done: number | null;
|
|
7537
|
+
readonly recorded_seconds?: number | null | undefined;
|
|
7538
|
+
readonly save_parent_id: number;
|
|
7539
|
+
readonly simulated: boolean;
|
|
7540
|
+
readonly size: number | null;
|
|
7541
|
+
readonly source: string;
|
|
7542
|
+
readonly started_at: string | null;
|
|
7543
|
+
readonly subscription_id: number | null;
|
|
7544
|
+
readonly torrent_link: string | null;
|
|
7545
|
+
readonly tracker: string | null;
|
|
7546
|
+
readonly tracker_message: string | null;
|
|
7547
|
+
readonly uploaded: number | null;
|
|
7548
|
+
readonly up_speed: number | null;
|
|
7549
|
+
readonly userfile_exists?: boolean | undefined;
|
|
7550
|
+
readonly current_ratio: number;
|
|
7551
|
+
readonly seconds_seeding: number;
|
|
7552
|
+
readonly status: "COMPLETED" | "PREPARING_SEED" | "SEEDING";
|
|
7553
|
+
readonly type: "TORRENT";
|
|
7554
|
+
} | {
|
|
7555
|
+
readonly availability: number | null;
|
|
7556
|
+
readonly callback_url: string | null;
|
|
7557
|
+
readonly client_ip: string | null;
|
|
7558
|
+
readonly completion_percent: number | null;
|
|
7559
|
+
readonly created_at: string;
|
|
7560
|
+
readonly created_torrent: boolean;
|
|
7561
|
+
readonly current_ratio: number | null;
|
|
7562
|
+
readonly download_id: number | null;
|
|
7563
|
+
readonly down_speed: number | null;
|
|
7564
|
+
readonly downloaded: number | null;
|
|
7565
|
+
readonly error_message: string | null;
|
|
7566
|
+
readonly estimated_time: number | null;
|
|
7567
|
+
readonly file_id: number | null;
|
|
7568
|
+
readonly finished_at: string | null;
|
|
7569
|
+
readonly hash: string | null;
|
|
7570
|
+
readonly id: number;
|
|
7571
|
+
readonly is_private: boolean;
|
|
7572
|
+
readonly links?: readonly {
|
|
7573
|
+
readonly label: string;
|
|
7574
|
+
readonly url: string | null;
|
|
7575
|
+
}[] | undefined;
|
|
7576
|
+
readonly name: string;
|
|
7577
|
+
readonly peers_connected: number | null;
|
|
7578
|
+
readonly peers_getting_from_us: number | null;
|
|
7579
|
+
readonly peers_sending_to_us: number | null;
|
|
7580
|
+
readonly percent_done: number | null;
|
|
7581
|
+
readonly recorded_seconds?: number | null | undefined;
|
|
7582
|
+
readonly save_parent_id: number;
|
|
7583
|
+
readonly seconds_seeding: number | null;
|
|
7584
|
+
readonly simulated: boolean;
|
|
7585
|
+
readonly size: number | null;
|
|
7586
|
+
readonly source: string;
|
|
7587
|
+
readonly started_at: string | null;
|
|
7588
|
+
readonly subscription_id: number | null;
|
|
7589
|
+
readonly torrent_link: string | null;
|
|
7590
|
+
readonly tracker: string | null;
|
|
7591
|
+
readonly tracker_message: string | null;
|
|
7592
|
+
readonly type: "LIVE_STREAM" | "N/A" | "PLAYLIST" | "TORRENT" | "URL";
|
|
7593
|
+
readonly uploaded: number | null;
|
|
7594
|
+
readonly up_speed: number | null;
|
|
7595
|
+
readonly userfile_exists?: boolean | undefined;
|
|
7596
|
+
readonly status: "COMPLETED";
|
|
7597
|
+
} | {
|
|
7598
|
+
readonly availability: number | null;
|
|
7599
|
+
readonly callback_url: string | null;
|
|
7600
|
+
readonly client_ip: string | null;
|
|
7601
|
+
readonly completion_percent: number | null;
|
|
7602
|
+
readonly created_at: string;
|
|
7603
|
+
readonly created_torrent: boolean;
|
|
7604
|
+
readonly current_ratio: number | null;
|
|
7605
|
+
readonly download_id: number | null;
|
|
7606
|
+
readonly down_speed: number | null;
|
|
7607
|
+
readonly downloaded: number | null;
|
|
7608
|
+
readonly error_message: string | null;
|
|
7609
|
+
readonly estimated_time: number | null;
|
|
7610
|
+
readonly file_id: number | null;
|
|
7611
|
+
readonly finished_at: string | null;
|
|
7612
|
+
readonly hash: string | null;
|
|
7613
|
+
readonly id: number;
|
|
7614
|
+
readonly is_private: boolean;
|
|
7615
|
+
readonly links?: readonly {
|
|
7616
|
+
readonly label: string;
|
|
7617
|
+
readonly url: string | null;
|
|
7618
|
+
}[] | undefined;
|
|
7619
|
+
readonly name: string;
|
|
7620
|
+
readonly peers_connected: number | null;
|
|
7621
|
+
readonly peers_getting_from_us: number | null;
|
|
7622
|
+
readonly peers_sending_to_us: number | null;
|
|
7623
|
+
readonly percent_done: number | null;
|
|
7624
|
+
readonly recorded_seconds?: number | null | undefined;
|
|
7625
|
+
readonly save_parent_id: number;
|
|
7626
|
+
readonly seconds_seeding: number | null;
|
|
7627
|
+
readonly simulated: boolean;
|
|
7628
|
+
readonly size: number | null;
|
|
7629
|
+
readonly source: string;
|
|
7630
|
+
readonly started_at: string | null;
|
|
7631
|
+
readonly status: "COMPLETED" | "COMPLETING" | "DOWNLOADING" | "ERROR" | "IN_QUEUE" | "PREPARING_DOWNLOAD" | "PREPARING_SEED" | "SEEDING" | "STOPPING" | "WAITING" | "WAITING_FOR_COMPLETE_QUEUE" | "WAITING_FOR_DOWNLOADER";
|
|
7632
|
+
readonly subscription_id: number | null;
|
|
7633
|
+
readonly torrent_link: string | null;
|
|
7634
|
+
readonly tracker: string | null;
|
|
7635
|
+
readonly tracker_message: string | null;
|
|
7636
|
+
readonly type: "LIVE_STREAM" | "N/A" | "PLAYLIST" | "TORRENT" | "URL";
|
|
7637
|
+
readonly uploaded: number | null;
|
|
7638
|
+
readonly up_speed: number | null;
|
|
7639
|
+
readonly userfile_exists?: boolean | undefined;
|
|
7640
|
+
}>;
|
|
7641
|
+
addMany: (inputs: readonly {
|
|
7642
|
+
readonly callback_url?: string | undefined;
|
|
7643
|
+
readonly save_parent_id?: number | undefined;
|
|
7644
|
+
readonly url: string;
|
|
7645
|
+
}[]) => Promise<{
|
|
6940
7646
|
readonly errors: ReadonlyArray<TransfersAddMultiError>;
|
|
6941
7647
|
readonly transfers: ReadonlyArray<Transfer>;
|
|
6942
7648
|
}>;
|
|
6943
|
-
addTrackers: (input:
|
|
6944
|
-
|
|
7649
|
+
addTrackers: (input: {
|
|
7650
|
+
readonly trackers: readonly string[];
|
|
7651
|
+
readonly transferId: number;
|
|
7652
|
+
}) => Promise<void>;
|
|
7653
|
+
cancel: (ids: readonly number[]) => Promise<{
|
|
6945
7654
|
readonly status: "OK";
|
|
6946
7655
|
}>;
|
|
6947
|
-
clean: (ids?:
|
|
7656
|
+
clean: (ids?: readonly number[] | undefined) => Promise<{
|
|
6948
7657
|
readonly deleted_ids: ReadonlyArray<number>;
|
|
6949
7658
|
}>;
|
|
6950
7659
|
continue: (cursor: string, query?: {
|
|
6951
|
-
readonly per_page?: number;
|
|
6952
|
-
}) => Promise<
|
|
7660
|
+
readonly per_page?: number | undefined;
|
|
7661
|
+
} | undefined) => Promise<{
|
|
7662
|
+
readonly cursor: string | null;
|
|
7663
|
+
readonly status: "OK";
|
|
7664
|
+
readonly transfers: readonly ({
|
|
7665
|
+
readonly availability: number | null;
|
|
7666
|
+
readonly callback_url: string | null;
|
|
7667
|
+
readonly client_ip: string | null;
|
|
7668
|
+
readonly completion_percent: number | null;
|
|
7669
|
+
readonly created_at: string;
|
|
7670
|
+
readonly created_torrent: boolean;
|
|
7671
|
+
readonly current_ratio: number | null;
|
|
7672
|
+
readonly download_id: number | null;
|
|
7673
|
+
readonly down_speed: number | null;
|
|
7674
|
+
readonly downloaded: number | null;
|
|
7675
|
+
readonly estimated_time: number | null;
|
|
7676
|
+
readonly file_id: number | null;
|
|
7677
|
+
readonly finished_at: string | null;
|
|
7678
|
+
readonly hash: string | null;
|
|
7679
|
+
readonly id: number;
|
|
7680
|
+
readonly is_private: boolean;
|
|
7681
|
+
readonly links?: readonly {
|
|
7682
|
+
readonly label: string;
|
|
7683
|
+
readonly url: string | null;
|
|
7684
|
+
}[] | undefined;
|
|
7685
|
+
readonly name: string;
|
|
7686
|
+
readonly peers_connected: number | null;
|
|
7687
|
+
readonly peers_getting_from_us: number | null;
|
|
7688
|
+
readonly peers_sending_to_us: number | null;
|
|
7689
|
+
readonly percent_done: number | null;
|
|
7690
|
+
readonly recorded_seconds?: number | null | undefined;
|
|
7691
|
+
readonly save_parent_id: number;
|
|
7692
|
+
readonly seconds_seeding: number | null;
|
|
7693
|
+
readonly simulated: boolean;
|
|
7694
|
+
readonly size: number | null;
|
|
7695
|
+
readonly source: string;
|
|
7696
|
+
readonly started_at: string | null;
|
|
7697
|
+
readonly subscription_id: number | null;
|
|
7698
|
+
readonly torrent_link: string | null;
|
|
7699
|
+
readonly tracker: string | null;
|
|
7700
|
+
readonly tracker_message: string | null;
|
|
7701
|
+
readonly type: "LIVE_STREAM" | "N/A" | "PLAYLIST" | "TORRENT" | "URL";
|
|
7702
|
+
readonly uploaded: number | null;
|
|
7703
|
+
readonly up_speed: number | null;
|
|
7704
|
+
readonly userfile_exists?: boolean | undefined;
|
|
7705
|
+
readonly error_message: string;
|
|
7706
|
+
readonly status: "ERROR";
|
|
7707
|
+
} | {
|
|
7708
|
+
readonly availability: number | null;
|
|
7709
|
+
readonly callback_url: string | null;
|
|
7710
|
+
readonly client_ip: string | null;
|
|
7711
|
+
readonly completion_percent: number | null;
|
|
7712
|
+
readonly created_at: string;
|
|
7713
|
+
readonly created_torrent: boolean;
|
|
7714
|
+
readonly current_ratio: number | null;
|
|
7715
|
+
readonly download_id: number | null;
|
|
7716
|
+
readonly down_speed: number | null;
|
|
7717
|
+
readonly downloaded: number | null;
|
|
7718
|
+
readonly error_message: string | null;
|
|
7719
|
+
readonly estimated_time: number | null;
|
|
7720
|
+
readonly file_id: number | null;
|
|
7721
|
+
readonly finished_at: string | null;
|
|
7722
|
+
readonly hash: string | null;
|
|
7723
|
+
readonly id: number;
|
|
7724
|
+
readonly is_private: boolean;
|
|
7725
|
+
readonly links?: readonly {
|
|
7726
|
+
readonly label: string;
|
|
7727
|
+
readonly url: string | null;
|
|
7728
|
+
}[] | undefined;
|
|
7729
|
+
readonly name: string;
|
|
7730
|
+
readonly peers_connected: number | null;
|
|
7731
|
+
readonly peers_getting_from_us: number | null;
|
|
7732
|
+
readonly peers_sending_to_us: number | null;
|
|
7733
|
+
readonly percent_done: number | null;
|
|
7734
|
+
readonly save_parent_id: number;
|
|
7735
|
+
readonly seconds_seeding: number | null;
|
|
7736
|
+
readonly simulated: boolean;
|
|
7737
|
+
readonly size: number | null;
|
|
7738
|
+
readonly source: string;
|
|
7739
|
+
readonly started_at: string | null;
|
|
7740
|
+
readonly status: "COMPLETED" | "COMPLETING" | "DOWNLOADING" | "ERROR" | "IN_QUEUE" | "PREPARING_DOWNLOAD" | "PREPARING_SEED" | "SEEDING" | "STOPPING" | "WAITING" | "WAITING_FOR_COMPLETE_QUEUE" | "WAITING_FOR_DOWNLOADER";
|
|
7741
|
+
readonly subscription_id: number | null;
|
|
7742
|
+
readonly torrent_link: string | null;
|
|
7743
|
+
readonly tracker: string | null;
|
|
7744
|
+
readonly tracker_message: string | null;
|
|
7745
|
+
readonly uploaded: number | null;
|
|
7746
|
+
readonly up_speed: number | null;
|
|
7747
|
+
readonly userfile_exists?: boolean | undefined;
|
|
7748
|
+
readonly recorded_seconds: number;
|
|
7749
|
+
readonly type: "LIVE_STREAM";
|
|
7750
|
+
} | {
|
|
7751
|
+
readonly availability: number | null;
|
|
7752
|
+
readonly callback_url: string | null;
|
|
7753
|
+
readonly client_ip: string | null;
|
|
7754
|
+
readonly completion_percent: number | null;
|
|
7755
|
+
readonly created_at: string;
|
|
7756
|
+
readonly created_torrent: boolean;
|
|
7757
|
+
readonly download_id: number | null;
|
|
7758
|
+
readonly down_speed: number | null;
|
|
7759
|
+
readonly downloaded: number | null;
|
|
7760
|
+
readonly error_message: string | null;
|
|
7761
|
+
readonly estimated_time: number | null;
|
|
7762
|
+
readonly file_id: number | null;
|
|
7763
|
+
readonly finished_at: string | null;
|
|
7764
|
+
readonly hash: string | null;
|
|
7765
|
+
readonly id: number;
|
|
7766
|
+
readonly is_private: boolean;
|
|
7767
|
+
readonly links?: readonly {
|
|
7768
|
+
readonly label: string;
|
|
7769
|
+
readonly url: string | null;
|
|
7770
|
+
}[] | undefined;
|
|
7771
|
+
readonly name: string;
|
|
7772
|
+
readonly peers_connected: number | null;
|
|
7773
|
+
readonly peers_getting_from_us: number | null;
|
|
7774
|
+
readonly peers_sending_to_us: number | null;
|
|
7775
|
+
readonly percent_done: number | null;
|
|
7776
|
+
readonly recorded_seconds?: number | null | undefined;
|
|
7777
|
+
readonly save_parent_id: number;
|
|
7778
|
+
readonly simulated: boolean;
|
|
7779
|
+
readonly size: number | null;
|
|
7780
|
+
readonly source: string;
|
|
7781
|
+
readonly started_at: string | null;
|
|
7782
|
+
readonly subscription_id: number | null;
|
|
7783
|
+
readonly torrent_link: string | null;
|
|
7784
|
+
readonly tracker: string | null;
|
|
7785
|
+
readonly tracker_message: string | null;
|
|
7786
|
+
readonly uploaded: number | null;
|
|
7787
|
+
readonly up_speed: number | null;
|
|
7788
|
+
readonly userfile_exists?: boolean | undefined;
|
|
7789
|
+
readonly current_ratio: number;
|
|
7790
|
+
readonly seconds_seeding: number;
|
|
7791
|
+
readonly status: "COMPLETED" | "PREPARING_SEED" | "SEEDING";
|
|
7792
|
+
readonly type: "TORRENT";
|
|
7793
|
+
} | {
|
|
7794
|
+
readonly availability: number | null;
|
|
7795
|
+
readonly callback_url: string | null;
|
|
7796
|
+
readonly client_ip: string | null;
|
|
7797
|
+
readonly completion_percent: number | null;
|
|
7798
|
+
readonly created_at: string;
|
|
7799
|
+
readonly created_torrent: boolean;
|
|
7800
|
+
readonly current_ratio: number | null;
|
|
7801
|
+
readonly download_id: number | null;
|
|
7802
|
+
readonly down_speed: number | null;
|
|
7803
|
+
readonly downloaded: number | null;
|
|
7804
|
+
readonly error_message: string | null;
|
|
7805
|
+
readonly estimated_time: number | null;
|
|
7806
|
+
readonly file_id: number | null;
|
|
7807
|
+
readonly finished_at: string | null;
|
|
7808
|
+
readonly hash: string | null;
|
|
7809
|
+
readonly id: number;
|
|
7810
|
+
readonly is_private: boolean;
|
|
7811
|
+
readonly links?: readonly {
|
|
7812
|
+
readonly label: string;
|
|
7813
|
+
readonly url: string | null;
|
|
7814
|
+
}[] | undefined;
|
|
7815
|
+
readonly name: string;
|
|
7816
|
+
readonly peers_connected: number | null;
|
|
7817
|
+
readonly peers_getting_from_us: number | null;
|
|
7818
|
+
readonly peers_sending_to_us: number | null;
|
|
7819
|
+
readonly percent_done: number | null;
|
|
7820
|
+
readonly recorded_seconds?: number | null | undefined;
|
|
7821
|
+
readonly save_parent_id: number;
|
|
7822
|
+
readonly seconds_seeding: number | null;
|
|
7823
|
+
readonly simulated: boolean;
|
|
7824
|
+
readonly size: number | null;
|
|
7825
|
+
readonly source: string;
|
|
7826
|
+
readonly started_at: string | null;
|
|
7827
|
+
readonly subscription_id: number | null;
|
|
7828
|
+
readonly torrent_link: string | null;
|
|
7829
|
+
readonly tracker: string | null;
|
|
7830
|
+
readonly tracker_message: string | null;
|
|
7831
|
+
readonly type: "LIVE_STREAM" | "N/A" | "PLAYLIST" | "TORRENT" | "URL";
|
|
7832
|
+
readonly uploaded: number | null;
|
|
7833
|
+
readonly up_speed: number | null;
|
|
7834
|
+
readonly userfile_exists?: boolean | undefined;
|
|
7835
|
+
readonly status: "COMPLETED";
|
|
7836
|
+
} | {
|
|
7837
|
+
readonly availability: number | null;
|
|
7838
|
+
readonly callback_url: string | null;
|
|
7839
|
+
readonly client_ip: string | null;
|
|
7840
|
+
readonly completion_percent: number | null;
|
|
7841
|
+
readonly created_at: string;
|
|
7842
|
+
readonly created_torrent: boolean;
|
|
7843
|
+
readonly current_ratio: number | null;
|
|
7844
|
+
readonly download_id: number | null;
|
|
7845
|
+
readonly down_speed: number | null;
|
|
7846
|
+
readonly downloaded: number | null;
|
|
7847
|
+
readonly error_message: string | null;
|
|
7848
|
+
readonly estimated_time: number | null;
|
|
7849
|
+
readonly file_id: number | null;
|
|
7850
|
+
readonly finished_at: string | null;
|
|
7851
|
+
readonly hash: string | null;
|
|
7852
|
+
readonly id: number;
|
|
7853
|
+
readonly is_private: boolean;
|
|
7854
|
+
readonly links?: readonly {
|
|
7855
|
+
readonly label: string;
|
|
7856
|
+
readonly url: string | null;
|
|
7857
|
+
}[] | undefined;
|
|
7858
|
+
readonly name: string;
|
|
7859
|
+
readonly peers_connected: number | null;
|
|
7860
|
+
readonly peers_getting_from_us: number | null;
|
|
7861
|
+
readonly peers_sending_to_us: number | null;
|
|
7862
|
+
readonly percent_done: number | null;
|
|
7863
|
+
readonly recorded_seconds?: number | null | undefined;
|
|
7864
|
+
readonly save_parent_id: number;
|
|
7865
|
+
readonly seconds_seeding: number | null;
|
|
7866
|
+
readonly simulated: boolean;
|
|
7867
|
+
readonly size: number | null;
|
|
7868
|
+
readonly source: string;
|
|
7869
|
+
readonly started_at: string | null;
|
|
7870
|
+
readonly status: "COMPLETED" | "COMPLETING" | "DOWNLOADING" | "ERROR" | "IN_QUEUE" | "PREPARING_DOWNLOAD" | "PREPARING_SEED" | "SEEDING" | "STOPPING" | "WAITING" | "WAITING_FOR_COMPLETE_QUEUE" | "WAITING_FOR_DOWNLOADER";
|
|
7871
|
+
readonly subscription_id: number | null;
|
|
7872
|
+
readonly torrent_link: string | null;
|
|
7873
|
+
readonly tracker: string | null;
|
|
7874
|
+
readonly tracker_message: string | null;
|
|
7875
|
+
readonly type: "LIVE_STREAM" | "N/A" | "PLAYLIST" | "TORRENT" | "URL";
|
|
7876
|
+
readonly uploaded: number | null;
|
|
7877
|
+
readonly up_speed: number | null;
|
|
7878
|
+
readonly userfile_exists?: boolean | undefined;
|
|
7879
|
+
})[];
|
|
7880
|
+
}>;
|
|
6953
7881
|
count: () => Promise<number>;
|
|
6954
|
-
get: (id: number) => Promise<
|
|
6955
|
-
|
|
6956
|
-
|
|
7882
|
+
get: (id: number) => Promise<{
|
|
7883
|
+
readonly availability: number | null;
|
|
7884
|
+
readonly callback_url: string | null;
|
|
7885
|
+
readonly client_ip: string | null;
|
|
7886
|
+
readonly completion_percent: number | null;
|
|
7887
|
+
readonly created_at: string;
|
|
7888
|
+
readonly created_torrent: boolean;
|
|
7889
|
+
readonly current_ratio: number | null;
|
|
7890
|
+
readonly download_id: number | null;
|
|
7891
|
+
readonly down_speed: number | null;
|
|
7892
|
+
readonly downloaded: number | null;
|
|
7893
|
+
readonly estimated_time: number | null;
|
|
7894
|
+
readonly file_id: number | null;
|
|
7895
|
+
readonly finished_at: string | null;
|
|
7896
|
+
readonly hash: string | null;
|
|
7897
|
+
readonly id: number;
|
|
7898
|
+
readonly is_private: boolean;
|
|
7899
|
+
readonly links?: readonly {
|
|
7900
|
+
readonly label: string;
|
|
7901
|
+
readonly url: string | null;
|
|
7902
|
+
}[] | undefined;
|
|
7903
|
+
readonly name: string;
|
|
7904
|
+
readonly peers_connected: number | null;
|
|
7905
|
+
readonly peers_getting_from_us: number | null;
|
|
7906
|
+
readonly peers_sending_to_us: number | null;
|
|
7907
|
+
readonly percent_done: number | null;
|
|
7908
|
+
readonly recorded_seconds?: number | null | undefined;
|
|
7909
|
+
readonly save_parent_id: number;
|
|
7910
|
+
readonly seconds_seeding: number | null;
|
|
7911
|
+
readonly simulated: boolean;
|
|
7912
|
+
readonly size: number | null;
|
|
7913
|
+
readonly source: string;
|
|
7914
|
+
readonly started_at: string | null;
|
|
7915
|
+
readonly subscription_id: number | null;
|
|
7916
|
+
readonly torrent_link: string | null;
|
|
7917
|
+
readonly tracker: string | null;
|
|
7918
|
+
readonly tracker_message: string | null;
|
|
7919
|
+
readonly type: "LIVE_STREAM" | "N/A" | "PLAYLIST" | "TORRENT" | "URL";
|
|
7920
|
+
readonly uploaded: number | null;
|
|
7921
|
+
readonly up_speed: number | null;
|
|
7922
|
+
readonly userfile_exists?: boolean | undefined;
|
|
7923
|
+
readonly error_message: string;
|
|
7924
|
+
readonly status: "ERROR";
|
|
7925
|
+
} | {
|
|
7926
|
+
readonly availability: number | null;
|
|
7927
|
+
readonly callback_url: string | null;
|
|
7928
|
+
readonly client_ip: string | null;
|
|
7929
|
+
readonly completion_percent: number | null;
|
|
7930
|
+
readonly created_at: string;
|
|
7931
|
+
readonly created_torrent: boolean;
|
|
7932
|
+
readonly current_ratio: number | null;
|
|
7933
|
+
readonly download_id: number | null;
|
|
7934
|
+
readonly down_speed: number | null;
|
|
7935
|
+
readonly downloaded: number | null;
|
|
7936
|
+
readonly error_message: string | null;
|
|
7937
|
+
readonly estimated_time: number | null;
|
|
7938
|
+
readonly file_id: number | null;
|
|
7939
|
+
readonly finished_at: string | null;
|
|
7940
|
+
readonly hash: string | null;
|
|
7941
|
+
readonly id: number;
|
|
7942
|
+
readonly is_private: boolean;
|
|
7943
|
+
readonly links?: readonly {
|
|
7944
|
+
readonly label: string;
|
|
7945
|
+
readonly url: string | null;
|
|
7946
|
+
}[] | undefined;
|
|
7947
|
+
readonly name: string;
|
|
7948
|
+
readonly peers_connected: number | null;
|
|
7949
|
+
readonly peers_getting_from_us: number | null;
|
|
7950
|
+
readonly peers_sending_to_us: number | null;
|
|
7951
|
+
readonly percent_done: number | null;
|
|
7952
|
+
readonly save_parent_id: number;
|
|
7953
|
+
readonly seconds_seeding: number | null;
|
|
7954
|
+
readonly simulated: boolean;
|
|
7955
|
+
readonly size: number | null;
|
|
7956
|
+
readonly source: string;
|
|
7957
|
+
readonly started_at: string | null;
|
|
7958
|
+
readonly status: "COMPLETED" | "COMPLETING" | "DOWNLOADING" | "ERROR" | "IN_QUEUE" | "PREPARING_DOWNLOAD" | "PREPARING_SEED" | "SEEDING" | "STOPPING" | "WAITING" | "WAITING_FOR_COMPLETE_QUEUE" | "WAITING_FOR_DOWNLOADER";
|
|
7959
|
+
readonly subscription_id: number | null;
|
|
7960
|
+
readonly torrent_link: string | null;
|
|
7961
|
+
readonly tracker: string | null;
|
|
7962
|
+
readonly tracker_message: string | null;
|
|
7963
|
+
readonly uploaded: number | null;
|
|
7964
|
+
readonly up_speed: number | null;
|
|
7965
|
+
readonly userfile_exists?: boolean | undefined;
|
|
7966
|
+
readonly recorded_seconds: number;
|
|
7967
|
+
readonly type: "LIVE_STREAM";
|
|
7968
|
+
} | {
|
|
7969
|
+
readonly availability: number | null;
|
|
7970
|
+
readonly callback_url: string | null;
|
|
7971
|
+
readonly client_ip: string | null;
|
|
7972
|
+
readonly completion_percent: number | null;
|
|
7973
|
+
readonly created_at: string;
|
|
7974
|
+
readonly created_torrent: boolean;
|
|
7975
|
+
readonly download_id: number | null;
|
|
7976
|
+
readonly down_speed: number | null;
|
|
7977
|
+
readonly downloaded: number | null;
|
|
7978
|
+
readonly error_message: string | null;
|
|
7979
|
+
readonly estimated_time: number | null;
|
|
7980
|
+
readonly file_id: number | null;
|
|
7981
|
+
readonly finished_at: string | null;
|
|
7982
|
+
readonly hash: string | null;
|
|
7983
|
+
readonly id: number;
|
|
7984
|
+
readonly is_private: boolean;
|
|
7985
|
+
readonly links?: readonly {
|
|
7986
|
+
readonly label: string;
|
|
7987
|
+
readonly url: string | null;
|
|
7988
|
+
}[] | undefined;
|
|
7989
|
+
readonly name: string;
|
|
7990
|
+
readonly peers_connected: number | null;
|
|
7991
|
+
readonly peers_getting_from_us: number | null;
|
|
7992
|
+
readonly peers_sending_to_us: number | null;
|
|
7993
|
+
readonly percent_done: number | null;
|
|
7994
|
+
readonly recorded_seconds?: number | null | undefined;
|
|
7995
|
+
readonly save_parent_id: number;
|
|
7996
|
+
readonly simulated: boolean;
|
|
7997
|
+
readonly size: number | null;
|
|
7998
|
+
readonly source: string;
|
|
7999
|
+
readonly started_at: string | null;
|
|
8000
|
+
readonly subscription_id: number | null;
|
|
8001
|
+
readonly torrent_link: string | null;
|
|
8002
|
+
readonly tracker: string | null;
|
|
8003
|
+
readonly tracker_message: string | null;
|
|
8004
|
+
readonly uploaded: number | null;
|
|
8005
|
+
readonly up_speed: number | null;
|
|
8006
|
+
readonly userfile_exists?: boolean | undefined;
|
|
8007
|
+
readonly current_ratio: number;
|
|
8008
|
+
readonly seconds_seeding: number;
|
|
8009
|
+
readonly status: "COMPLETED" | "PREPARING_SEED" | "SEEDING";
|
|
8010
|
+
readonly type: "TORRENT";
|
|
8011
|
+
} | {
|
|
8012
|
+
readonly availability: number | null;
|
|
8013
|
+
readonly callback_url: string | null;
|
|
8014
|
+
readonly client_ip: string | null;
|
|
8015
|
+
readonly completion_percent: number | null;
|
|
8016
|
+
readonly created_at: string;
|
|
8017
|
+
readonly created_torrent: boolean;
|
|
8018
|
+
readonly current_ratio: number | null;
|
|
8019
|
+
readonly download_id: number | null;
|
|
8020
|
+
readonly down_speed: number | null;
|
|
8021
|
+
readonly downloaded: number | null;
|
|
8022
|
+
readonly error_message: string | null;
|
|
8023
|
+
readonly estimated_time: number | null;
|
|
8024
|
+
readonly file_id: number | null;
|
|
8025
|
+
readonly finished_at: string | null;
|
|
8026
|
+
readonly hash: string | null;
|
|
8027
|
+
readonly id: number;
|
|
8028
|
+
readonly is_private: boolean;
|
|
8029
|
+
readonly links?: readonly {
|
|
8030
|
+
readonly label: string;
|
|
8031
|
+
readonly url: string | null;
|
|
8032
|
+
}[] | undefined;
|
|
8033
|
+
readonly name: string;
|
|
8034
|
+
readonly peers_connected: number | null;
|
|
8035
|
+
readonly peers_getting_from_us: number | null;
|
|
8036
|
+
readonly peers_sending_to_us: number | null;
|
|
8037
|
+
readonly percent_done: number | null;
|
|
8038
|
+
readonly recorded_seconds?: number | null | undefined;
|
|
8039
|
+
readonly save_parent_id: number;
|
|
8040
|
+
readonly seconds_seeding: number | null;
|
|
8041
|
+
readonly simulated: boolean;
|
|
8042
|
+
readonly size: number | null;
|
|
8043
|
+
readonly source: string;
|
|
8044
|
+
readonly started_at: string | null;
|
|
8045
|
+
readonly subscription_id: number | null;
|
|
8046
|
+
readonly torrent_link: string | null;
|
|
8047
|
+
readonly tracker: string | null;
|
|
8048
|
+
readonly tracker_message: string | null;
|
|
8049
|
+
readonly type: "LIVE_STREAM" | "N/A" | "PLAYLIST" | "TORRENT" | "URL";
|
|
8050
|
+
readonly uploaded: number | null;
|
|
8051
|
+
readonly up_speed: number | null;
|
|
8052
|
+
readonly userfile_exists?: boolean | undefined;
|
|
8053
|
+
readonly status: "COMPLETED";
|
|
8054
|
+
} | {
|
|
8055
|
+
readonly availability: number | null;
|
|
8056
|
+
readonly callback_url: string | null;
|
|
8057
|
+
readonly client_ip: string | null;
|
|
8058
|
+
readonly completion_percent: number | null;
|
|
8059
|
+
readonly created_at: string;
|
|
8060
|
+
readonly created_torrent: boolean;
|
|
8061
|
+
readonly current_ratio: number | null;
|
|
8062
|
+
readonly download_id: number | null;
|
|
8063
|
+
readonly down_speed: number | null;
|
|
8064
|
+
readonly downloaded: number | null;
|
|
8065
|
+
readonly error_message: string | null;
|
|
8066
|
+
readonly estimated_time: number | null;
|
|
8067
|
+
readonly file_id: number | null;
|
|
8068
|
+
readonly finished_at: string | null;
|
|
8069
|
+
readonly hash: string | null;
|
|
8070
|
+
readonly id: number;
|
|
8071
|
+
readonly is_private: boolean;
|
|
8072
|
+
readonly links?: readonly {
|
|
8073
|
+
readonly label: string;
|
|
8074
|
+
readonly url: string | null;
|
|
8075
|
+
}[] | undefined;
|
|
8076
|
+
readonly name: string;
|
|
8077
|
+
readonly peers_connected: number | null;
|
|
8078
|
+
readonly peers_getting_from_us: number | null;
|
|
8079
|
+
readonly peers_sending_to_us: number | null;
|
|
8080
|
+
readonly percent_done: number | null;
|
|
8081
|
+
readonly recorded_seconds?: number | null | undefined;
|
|
8082
|
+
readonly save_parent_id: number;
|
|
8083
|
+
readonly seconds_seeding: number | null;
|
|
8084
|
+
readonly simulated: boolean;
|
|
8085
|
+
readonly size: number | null;
|
|
8086
|
+
readonly source: string;
|
|
8087
|
+
readonly started_at: string | null;
|
|
8088
|
+
readonly status: "COMPLETED" | "COMPLETING" | "DOWNLOADING" | "ERROR" | "IN_QUEUE" | "PREPARING_DOWNLOAD" | "PREPARING_SEED" | "SEEDING" | "STOPPING" | "WAITING" | "WAITING_FOR_COMPLETE_QUEUE" | "WAITING_FOR_DOWNLOADER";
|
|
8089
|
+
readonly subscription_id: number | null;
|
|
8090
|
+
readonly torrent_link: string | null;
|
|
8091
|
+
readonly tracker: string | null;
|
|
8092
|
+
readonly tracker_message: string | null;
|
|
8093
|
+
readonly type: "LIVE_STREAM" | "N/A" | "PLAYLIST" | "TORRENT" | "URL";
|
|
8094
|
+
readonly uploaded: number | null;
|
|
8095
|
+
readonly up_speed: number | null;
|
|
8096
|
+
readonly userfile_exists?: boolean | undefined;
|
|
8097
|
+
}>;
|
|
8098
|
+
getTorrent: (id: number) => Promise<Uint8Array<ArrayBufferLike>>;
|
|
8099
|
+
info: (urls: readonly string[]) => Promise<{
|
|
6957
8100
|
readonly disk_avail: number;
|
|
6958
8101
|
readonly ret: ReadonlyArray<TransferInfoItem>;
|
|
6959
8102
|
}>;
|
|
6960
|
-
list: (query?:
|
|
8103
|
+
list: (query?: {
|
|
8104
|
+
readonly per_page?: number | undefined;
|
|
8105
|
+
} | undefined) => Promise<{
|
|
8106
|
+
readonly cursor?: string | null | undefined;
|
|
8107
|
+
readonly status: "OK";
|
|
8108
|
+
readonly total?: number | undefined;
|
|
8109
|
+
readonly transfers: readonly ({
|
|
8110
|
+
readonly availability: number | null;
|
|
8111
|
+
readonly callback_url: string | null;
|
|
8112
|
+
readonly client_ip: string | null;
|
|
8113
|
+
readonly completion_percent: number | null;
|
|
8114
|
+
readonly created_at: string;
|
|
8115
|
+
readonly created_torrent: boolean;
|
|
8116
|
+
readonly current_ratio: number | null;
|
|
8117
|
+
readonly download_id: number | null;
|
|
8118
|
+
readonly down_speed: number | null;
|
|
8119
|
+
readonly downloaded: number | null;
|
|
8120
|
+
readonly estimated_time: number | null;
|
|
8121
|
+
readonly file_id: number | null;
|
|
8122
|
+
readonly finished_at: string | null;
|
|
8123
|
+
readonly hash: string | null;
|
|
8124
|
+
readonly id: number;
|
|
8125
|
+
readonly is_private: boolean;
|
|
8126
|
+
readonly links?: readonly {
|
|
8127
|
+
readonly label: string;
|
|
8128
|
+
readonly url: string | null;
|
|
8129
|
+
}[] | undefined;
|
|
8130
|
+
readonly name: string;
|
|
8131
|
+
readonly peers_connected: number | null;
|
|
8132
|
+
readonly peers_getting_from_us: number | null;
|
|
8133
|
+
readonly peers_sending_to_us: number | null;
|
|
8134
|
+
readonly percent_done: number | null;
|
|
8135
|
+
readonly recorded_seconds?: number | null | undefined;
|
|
8136
|
+
readonly save_parent_id: number;
|
|
8137
|
+
readonly seconds_seeding: number | null;
|
|
8138
|
+
readonly simulated: boolean;
|
|
8139
|
+
readonly size: number | null;
|
|
8140
|
+
readonly source: string;
|
|
8141
|
+
readonly started_at: string | null;
|
|
8142
|
+
readonly subscription_id: number | null;
|
|
8143
|
+
readonly torrent_link: string | null;
|
|
8144
|
+
readonly tracker: string | null;
|
|
8145
|
+
readonly tracker_message: string | null;
|
|
8146
|
+
readonly type: "LIVE_STREAM" | "N/A" | "PLAYLIST" | "TORRENT" | "URL";
|
|
8147
|
+
readonly uploaded: number | null;
|
|
8148
|
+
readonly up_speed: number | null;
|
|
8149
|
+
readonly userfile_exists?: boolean | undefined;
|
|
8150
|
+
readonly error_message: string;
|
|
8151
|
+
readonly status: "ERROR";
|
|
8152
|
+
} | {
|
|
8153
|
+
readonly availability: number | null;
|
|
8154
|
+
readonly callback_url: string | null;
|
|
8155
|
+
readonly client_ip: string | null;
|
|
8156
|
+
readonly completion_percent: number | null;
|
|
8157
|
+
readonly created_at: string;
|
|
8158
|
+
readonly created_torrent: boolean;
|
|
8159
|
+
readonly current_ratio: number | null;
|
|
8160
|
+
readonly download_id: number | null;
|
|
8161
|
+
readonly down_speed: number | null;
|
|
8162
|
+
readonly downloaded: number | null;
|
|
8163
|
+
readonly error_message: string | null;
|
|
8164
|
+
readonly estimated_time: number | null;
|
|
8165
|
+
readonly file_id: number | null;
|
|
8166
|
+
readonly finished_at: string | null;
|
|
8167
|
+
readonly hash: string | null;
|
|
8168
|
+
readonly id: number;
|
|
8169
|
+
readonly is_private: boolean;
|
|
8170
|
+
readonly links?: readonly {
|
|
8171
|
+
readonly label: string;
|
|
8172
|
+
readonly url: string | null;
|
|
8173
|
+
}[] | undefined;
|
|
8174
|
+
readonly name: string;
|
|
8175
|
+
readonly peers_connected: number | null;
|
|
8176
|
+
readonly peers_getting_from_us: number | null;
|
|
8177
|
+
readonly peers_sending_to_us: number | null;
|
|
8178
|
+
readonly percent_done: number | null;
|
|
8179
|
+
readonly save_parent_id: number;
|
|
8180
|
+
readonly seconds_seeding: number | null;
|
|
8181
|
+
readonly simulated: boolean;
|
|
8182
|
+
readonly size: number | null;
|
|
8183
|
+
readonly source: string;
|
|
8184
|
+
readonly started_at: string | null;
|
|
8185
|
+
readonly status: "COMPLETED" | "COMPLETING" | "DOWNLOADING" | "ERROR" | "IN_QUEUE" | "PREPARING_DOWNLOAD" | "PREPARING_SEED" | "SEEDING" | "STOPPING" | "WAITING" | "WAITING_FOR_COMPLETE_QUEUE" | "WAITING_FOR_DOWNLOADER";
|
|
8186
|
+
readonly subscription_id: number | null;
|
|
8187
|
+
readonly torrent_link: string | null;
|
|
8188
|
+
readonly tracker: string | null;
|
|
8189
|
+
readonly tracker_message: string | null;
|
|
8190
|
+
readonly uploaded: number | null;
|
|
8191
|
+
readonly up_speed: number | null;
|
|
8192
|
+
readonly userfile_exists?: boolean | undefined;
|
|
8193
|
+
readonly recorded_seconds: number;
|
|
8194
|
+
readonly type: "LIVE_STREAM";
|
|
8195
|
+
} | {
|
|
8196
|
+
readonly availability: number | null;
|
|
8197
|
+
readonly callback_url: string | null;
|
|
8198
|
+
readonly client_ip: string | null;
|
|
8199
|
+
readonly completion_percent: number | null;
|
|
8200
|
+
readonly created_at: string;
|
|
8201
|
+
readonly created_torrent: boolean;
|
|
8202
|
+
readonly download_id: number | null;
|
|
8203
|
+
readonly down_speed: number | null;
|
|
8204
|
+
readonly downloaded: number | null;
|
|
8205
|
+
readonly error_message: string | null;
|
|
8206
|
+
readonly estimated_time: number | null;
|
|
8207
|
+
readonly file_id: number | null;
|
|
8208
|
+
readonly finished_at: string | null;
|
|
8209
|
+
readonly hash: string | null;
|
|
8210
|
+
readonly id: number;
|
|
8211
|
+
readonly is_private: boolean;
|
|
8212
|
+
readonly links?: readonly {
|
|
8213
|
+
readonly label: string;
|
|
8214
|
+
readonly url: string | null;
|
|
8215
|
+
}[] | undefined;
|
|
8216
|
+
readonly name: string;
|
|
8217
|
+
readonly peers_connected: number | null;
|
|
8218
|
+
readonly peers_getting_from_us: number | null;
|
|
8219
|
+
readonly peers_sending_to_us: number | null;
|
|
8220
|
+
readonly percent_done: number | null;
|
|
8221
|
+
readonly recorded_seconds?: number | null | undefined;
|
|
8222
|
+
readonly save_parent_id: number;
|
|
8223
|
+
readonly simulated: boolean;
|
|
8224
|
+
readonly size: number | null;
|
|
8225
|
+
readonly source: string;
|
|
8226
|
+
readonly started_at: string | null;
|
|
8227
|
+
readonly subscription_id: number | null;
|
|
8228
|
+
readonly torrent_link: string | null;
|
|
8229
|
+
readonly tracker: string | null;
|
|
8230
|
+
readonly tracker_message: string | null;
|
|
8231
|
+
readonly uploaded: number | null;
|
|
8232
|
+
readonly up_speed: number | null;
|
|
8233
|
+
readonly userfile_exists?: boolean | undefined;
|
|
8234
|
+
readonly current_ratio: number;
|
|
8235
|
+
readonly seconds_seeding: number;
|
|
8236
|
+
readonly status: "COMPLETED" | "PREPARING_SEED" | "SEEDING";
|
|
8237
|
+
readonly type: "TORRENT";
|
|
8238
|
+
} | {
|
|
8239
|
+
readonly availability: number | null;
|
|
8240
|
+
readonly callback_url: string | null;
|
|
8241
|
+
readonly client_ip: string | null;
|
|
8242
|
+
readonly completion_percent: number | null;
|
|
8243
|
+
readonly created_at: string;
|
|
8244
|
+
readonly created_torrent: boolean;
|
|
8245
|
+
readonly current_ratio: number | null;
|
|
8246
|
+
readonly download_id: number | null;
|
|
8247
|
+
readonly down_speed: number | null;
|
|
8248
|
+
readonly downloaded: number | null;
|
|
8249
|
+
readonly error_message: string | null;
|
|
8250
|
+
readonly estimated_time: number | null;
|
|
8251
|
+
readonly file_id: number | null;
|
|
8252
|
+
readonly finished_at: string | null;
|
|
8253
|
+
readonly hash: string | null;
|
|
8254
|
+
readonly id: number;
|
|
8255
|
+
readonly is_private: boolean;
|
|
8256
|
+
readonly links?: readonly {
|
|
8257
|
+
readonly label: string;
|
|
8258
|
+
readonly url: string | null;
|
|
8259
|
+
}[] | undefined;
|
|
8260
|
+
readonly name: string;
|
|
8261
|
+
readonly peers_connected: number | null;
|
|
8262
|
+
readonly peers_getting_from_us: number | null;
|
|
8263
|
+
readonly peers_sending_to_us: number | null;
|
|
8264
|
+
readonly percent_done: number | null;
|
|
8265
|
+
readonly recorded_seconds?: number | null | undefined;
|
|
8266
|
+
readonly save_parent_id: number;
|
|
8267
|
+
readonly seconds_seeding: number | null;
|
|
8268
|
+
readonly simulated: boolean;
|
|
8269
|
+
readonly size: number | null;
|
|
8270
|
+
readonly source: string;
|
|
8271
|
+
readonly started_at: string | null;
|
|
8272
|
+
readonly subscription_id: number | null;
|
|
8273
|
+
readonly torrent_link: string | null;
|
|
8274
|
+
readonly tracker: string | null;
|
|
8275
|
+
readonly tracker_message: string | null;
|
|
8276
|
+
readonly type: "LIVE_STREAM" | "N/A" | "PLAYLIST" | "TORRENT" | "URL";
|
|
8277
|
+
readonly uploaded: number | null;
|
|
8278
|
+
readonly up_speed: number | null;
|
|
8279
|
+
readonly userfile_exists?: boolean | undefined;
|
|
8280
|
+
readonly status: "COMPLETED";
|
|
8281
|
+
} | {
|
|
8282
|
+
readonly availability: number | null;
|
|
8283
|
+
readonly callback_url: string | null;
|
|
8284
|
+
readonly client_ip: string | null;
|
|
8285
|
+
readonly completion_percent: number | null;
|
|
8286
|
+
readonly created_at: string;
|
|
8287
|
+
readonly created_torrent: boolean;
|
|
8288
|
+
readonly current_ratio: number | null;
|
|
8289
|
+
readonly download_id: number | null;
|
|
8290
|
+
readonly down_speed: number | null;
|
|
8291
|
+
readonly downloaded: number | null;
|
|
8292
|
+
readonly error_message: string | null;
|
|
8293
|
+
readonly estimated_time: number | null;
|
|
8294
|
+
readonly file_id: number | null;
|
|
8295
|
+
readonly finished_at: string | null;
|
|
8296
|
+
readonly hash: string | null;
|
|
8297
|
+
readonly id: number;
|
|
8298
|
+
readonly is_private: boolean;
|
|
8299
|
+
readonly links?: readonly {
|
|
8300
|
+
readonly label: string;
|
|
8301
|
+
readonly url: string | null;
|
|
8302
|
+
}[] | undefined;
|
|
8303
|
+
readonly name: string;
|
|
8304
|
+
readonly peers_connected: number | null;
|
|
8305
|
+
readonly peers_getting_from_us: number | null;
|
|
8306
|
+
readonly peers_sending_to_us: number | null;
|
|
8307
|
+
readonly percent_done: number | null;
|
|
8308
|
+
readonly recorded_seconds?: number | null | undefined;
|
|
8309
|
+
readonly save_parent_id: number;
|
|
8310
|
+
readonly seconds_seeding: number | null;
|
|
8311
|
+
readonly simulated: boolean;
|
|
8312
|
+
readonly size: number | null;
|
|
8313
|
+
readonly source: string;
|
|
8314
|
+
readonly started_at: string | null;
|
|
8315
|
+
readonly status: "COMPLETED" | "COMPLETING" | "DOWNLOADING" | "ERROR" | "IN_QUEUE" | "PREPARING_DOWNLOAD" | "PREPARING_SEED" | "SEEDING" | "STOPPING" | "WAITING" | "WAITING_FOR_COMPLETE_QUEUE" | "WAITING_FOR_DOWNLOADER";
|
|
8316
|
+
readonly subscription_id: number | null;
|
|
8317
|
+
readonly torrent_link: string | null;
|
|
8318
|
+
readonly tracker: string | null;
|
|
8319
|
+
readonly tracker_message: string | null;
|
|
8320
|
+
readonly type: "LIVE_STREAM" | "N/A" | "PLAYLIST" | "TORRENT" | "URL";
|
|
8321
|
+
readonly uploaded: number | null;
|
|
8322
|
+
readonly up_speed: number | null;
|
|
8323
|
+
readonly userfile_exists?: boolean | undefined;
|
|
8324
|
+
})[];
|
|
8325
|
+
}>;
|
|
6961
8326
|
reannounce: (id: number) => Promise<{
|
|
6962
8327
|
readonly status: "OK";
|
|
6963
8328
|
}>;
|
|
6964
|
-
remove: (input:
|
|
6965
|
-
|
|
8329
|
+
remove: (input: {
|
|
8330
|
+
readonly filter?: undefined;
|
|
8331
|
+
readonly ids: readonly number[];
|
|
8332
|
+
} | {
|
|
8333
|
+
readonly filter: "all" | "completed";
|
|
8334
|
+
readonly ids?: undefined;
|
|
8335
|
+
}) => Promise<void>;
|
|
8336
|
+
retry: (id: number) => Promise<{
|
|
8337
|
+
readonly availability: number | null;
|
|
8338
|
+
readonly callback_url: string | null;
|
|
8339
|
+
readonly client_ip: string | null;
|
|
8340
|
+
readonly completion_percent: number | null;
|
|
8341
|
+
readonly created_at: string;
|
|
8342
|
+
readonly created_torrent: boolean;
|
|
8343
|
+
readonly current_ratio: number | null;
|
|
8344
|
+
readonly download_id: number | null;
|
|
8345
|
+
readonly down_speed: number | null;
|
|
8346
|
+
readonly downloaded: number | null;
|
|
8347
|
+
readonly estimated_time: number | null;
|
|
8348
|
+
readonly file_id: number | null;
|
|
8349
|
+
readonly finished_at: string | null;
|
|
8350
|
+
readonly hash: string | null;
|
|
8351
|
+
readonly id: number;
|
|
8352
|
+
readonly is_private: boolean;
|
|
8353
|
+
readonly links?: readonly {
|
|
8354
|
+
readonly label: string;
|
|
8355
|
+
readonly url: string | null;
|
|
8356
|
+
}[] | undefined;
|
|
8357
|
+
readonly name: string;
|
|
8358
|
+
readonly peers_connected: number | null;
|
|
8359
|
+
readonly peers_getting_from_us: number | null;
|
|
8360
|
+
readonly peers_sending_to_us: number | null;
|
|
8361
|
+
readonly percent_done: number | null;
|
|
8362
|
+
readonly recorded_seconds?: number | null | undefined;
|
|
8363
|
+
readonly save_parent_id: number;
|
|
8364
|
+
readonly seconds_seeding: number | null;
|
|
8365
|
+
readonly simulated: boolean;
|
|
8366
|
+
readonly size: number | null;
|
|
8367
|
+
readonly source: string;
|
|
8368
|
+
readonly started_at: string | null;
|
|
8369
|
+
readonly subscription_id: number | null;
|
|
8370
|
+
readonly torrent_link: string | null;
|
|
8371
|
+
readonly tracker: string | null;
|
|
8372
|
+
readonly tracker_message: string | null;
|
|
8373
|
+
readonly type: "LIVE_STREAM" | "N/A" | "PLAYLIST" | "TORRENT" | "URL";
|
|
8374
|
+
readonly uploaded: number | null;
|
|
8375
|
+
readonly up_speed: number | null;
|
|
8376
|
+
readonly userfile_exists?: boolean | undefined;
|
|
8377
|
+
readonly error_message: string;
|
|
8378
|
+
readonly status: "ERROR";
|
|
8379
|
+
} | {
|
|
8380
|
+
readonly availability: number | null;
|
|
8381
|
+
readonly callback_url: string | null;
|
|
8382
|
+
readonly client_ip: string | null;
|
|
8383
|
+
readonly completion_percent: number | null;
|
|
8384
|
+
readonly created_at: string;
|
|
8385
|
+
readonly created_torrent: boolean;
|
|
8386
|
+
readonly current_ratio: number | null;
|
|
8387
|
+
readonly download_id: number | null;
|
|
8388
|
+
readonly down_speed: number | null;
|
|
8389
|
+
readonly downloaded: number | null;
|
|
8390
|
+
readonly error_message: string | null;
|
|
8391
|
+
readonly estimated_time: number | null;
|
|
8392
|
+
readonly file_id: number | null;
|
|
8393
|
+
readonly finished_at: string | null;
|
|
8394
|
+
readonly hash: string | null;
|
|
8395
|
+
readonly id: number;
|
|
8396
|
+
readonly is_private: boolean;
|
|
8397
|
+
readonly links?: readonly {
|
|
8398
|
+
readonly label: string;
|
|
8399
|
+
readonly url: string | null;
|
|
8400
|
+
}[] | undefined;
|
|
8401
|
+
readonly name: string;
|
|
8402
|
+
readonly peers_connected: number | null;
|
|
8403
|
+
readonly peers_getting_from_us: number | null;
|
|
8404
|
+
readonly peers_sending_to_us: number | null;
|
|
8405
|
+
readonly percent_done: number | null;
|
|
8406
|
+
readonly save_parent_id: number;
|
|
8407
|
+
readonly seconds_seeding: number | null;
|
|
8408
|
+
readonly simulated: boolean;
|
|
8409
|
+
readonly size: number | null;
|
|
8410
|
+
readonly source: string;
|
|
8411
|
+
readonly started_at: string | null;
|
|
8412
|
+
readonly status: "COMPLETED" | "COMPLETING" | "DOWNLOADING" | "ERROR" | "IN_QUEUE" | "PREPARING_DOWNLOAD" | "PREPARING_SEED" | "SEEDING" | "STOPPING" | "WAITING" | "WAITING_FOR_COMPLETE_QUEUE" | "WAITING_FOR_DOWNLOADER";
|
|
8413
|
+
readonly subscription_id: number | null;
|
|
8414
|
+
readonly torrent_link: string | null;
|
|
8415
|
+
readonly tracker: string | null;
|
|
8416
|
+
readonly tracker_message: string | null;
|
|
8417
|
+
readonly uploaded: number | null;
|
|
8418
|
+
readonly up_speed: number | null;
|
|
8419
|
+
readonly userfile_exists?: boolean | undefined;
|
|
8420
|
+
readonly recorded_seconds: number;
|
|
8421
|
+
readonly type: "LIVE_STREAM";
|
|
8422
|
+
} | {
|
|
8423
|
+
readonly availability: number | null;
|
|
8424
|
+
readonly callback_url: string | null;
|
|
8425
|
+
readonly client_ip: string | null;
|
|
8426
|
+
readonly completion_percent: number | null;
|
|
8427
|
+
readonly created_at: string;
|
|
8428
|
+
readonly created_torrent: boolean;
|
|
8429
|
+
readonly download_id: number | null;
|
|
8430
|
+
readonly down_speed: number | null;
|
|
8431
|
+
readonly downloaded: number | null;
|
|
8432
|
+
readonly error_message: string | null;
|
|
8433
|
+
readonly estimated_time: number | null;
|
|
8434
|
+
readonly file_id: number | null;
|
|
8435
|
+
readonly finished_at: string | null;
|
|
8436
|
+
readonly hash: string | null;
|
|
8437
|
+
readonly id: number;
|
|
8438
|
+
readonly is_private: boolean;
|
|
8439
|
+
readonly links?: readonly {
|
|
8440
|
+
readonly label: string;
|
|
8441
|
+
readonly url: string | null;
|
|
8442
|
+
}[] | undefined;
|
|
8443
|
+
readonly name: string;
|
|
8444
|
+
readonly peers_connected: number | null;
|
|
8445
|
+
readonly peers_getting_from_us: number | null;
|
|
8446
|
+
readonly peers_sending_to_us: number | null;
|
|
8447
|
+
readonly percent_done: number | null;
|
|
8448
|
+
readonly recorded_seconds?: number | null | undefined;
|
|
8449
|
+
readonly save_parent_id: number;
|
|
8450
|
+
readonly simulated: boolean;
|
|
8451
|
+
readonly size: number | null;
|
|
8452
|
+
readonly source: string;
|
|
8453
|
+
readonly started_at: string | null;
|
|
8454
|
+
readonly subscription_id: number | null;
|
|
8455
|
+
readonly torrent_link: string | null;
|
|
8456
|
+
readonly tracker: string | null;
|
|
8457
|
+
readonly tracker_message: string | null;
|
|
8458
|
+
readonly uploaded: number | null;
|
|
8459
|
+
readonly up_speed: number | null;
|
|
8460
|
+
readonly userfile_exists?: boolean | undefined;
|
|
8461
|
+
readonly current_ratio: number;
|
|
8462
|
+
readonly seconds_seeding: number;
|
|
8463
|
+
readonly status: "COMPLETED" | "PREPARING_SEED" | "SEEDING";
|
|
8464
|
+
readonly type: "TORRENT";
|
|
8465
|
+
} | {
|
|
8466
|
+
readonly availability: number | null;
|
|
8467
|
+
readonly callback_url: string | null;
|
|
8468
|
+
readonly client_ip: string | null;
|
|
8469
|
+
readonly completion_percent: number | null;
|
|
8470
|
+
readonly created_at: string;
|
|
8471
|
+
readonly created_torrent: boolean;
|
|
8472
|
+
readonly current_ratio: number | null;
|
|
8473
|
+
readonly download_id: number | null;
|
|
8474
|
+
readonly down_speed: number | null;
|
|
8475
|
+
readonly downloaded: number | null;
|
|
8476
|
+
readonly error_message: string | null;
|
|
8477
|
+
readonly estimated_time: number | null;
|
|
8478
|
+
readonly file_id: number | null;
|
|
8479
|
+
readonly finished_at: string | null;
|
|
8480
|
+
readonly hash: string | null;
|
|
8481
|
+
readonly id: number;
|
|
8482
|
+
readonly is_private: boolean;
|
|
8483
|
+
readonly links?: readonly {
|
|
8484
|
+
readonly label: string;
|
|
8485
|
+
readonly url: string | null;
|
|
8486
|
+
}[] | undefined;
|
|
8487
|
+
readonly name: string;
|
|
8488
|
+
readonly peers_connected: number | null;
|
|
8489
|
+
readonly peers_getting_from_us: number | null;
|
|
8490
|
+
readonly peers_sending_to_us: number | null;
|
|
8491
|
+
readonly percent_done: number | null;
|
|
8492
|
+
readonly recorded_seconds?: number | null | undefined;
|
|
8493
|
+
readonly save_parent_id: number;
|
|
8494
|
+
readonly seconds_seeding: number | null;
|
|
8495
|
+
readonly simulated: boolean;
|
|
8496
|
+
readonly size: number | null;
|
|
8497
|
+
readonly source: string;
|
|
8498
|
+
readonly started_at: string | null;
|
|
8499
|
+
readonly subscription_id: number | null;
|
|
8500
|
+
readonly torrent_link: string | null;
|
|
8501
|
+
readonly tracker: string | null;
|
|
8502
|
+
readonly tracker_message: string | null;
|
|
8503
|
+
readonly type: "LIVE_STREAM" | "N/A" | "PLAYLIST" | "TORRENT" | "URL";
|
|
8504
|
+
readonly uploaded: number | null;
|
|
8505
|
+
readonly up_speed: number | null;
|
|
8506
|
+
readonly userfile_exists?: boolean | undefined;
|
|
8507
|
+
readonly status: "COMPLETED";
|
|
8508
|
+
} | {
|
|
8509
|
+
readonly availability: number | null;
|
|
8510
|
+
readonly callback_url: string | null;
|
|
8511
|
+
readonly client_ip: string | null;
|
|
8512
|
+
readonly completion_percent: number | null;
|
|
8513
|
+
readonly created_at: string;
|
|
8514
|
+
readonly created_torrent: boolean;
|
|
8515
|
+
readonly current_ratio: number | null;
|
|
8516
|
+
readonly download_id: number | null;
|
|
8517
|
+
readonly down_speed: number | null;
|
|
8518
|
+
readonly downloaded: number | null;
|
|
8519
|
+
readonly error_message: string | null;
|
|
8520
|
+
readonly estimated_time: number | null;
|
|
8521
|
+
readonly file_id: number | null;
|
|
8522
|
+
readonly finished_at: string | null;
|
|
8523
|
+
readonly hash: string | null;
|
|
8524
|
+
readonly id: number;
|
|
8525
|
+
readonly is_private: boolean;
|
|
8526
|
+
readonly links?: readonly {
|
|
8527
|
+
readonly label: string;
|
|
8528
|
+
readonly url: string | null;
|
|
8529
|
+
}[] | undefined;
|
|
8530
|
+
readonly name: string;
|
|
8531
|
+
readonly peers_connected: number | null;
|
|
8532
|
+
readonly peers_getting_from_us: number | null;
|
|
8533
|
+
readonly peers_sending_to_us: number | null;
|
|
8534
|
+
readonly percent_done: number | null;
|
|
8535
|
+
readonly recorded_seconds?: number | null | undefined;
|
|
8536
|
+
readonly save_parent_id: number;
|
|
8537
|
+
readonly seconds_seeding: number | null;
|
|
8538
|
+
readonly simulated: boolean;
|
|
8539
|
+
readonly size: number | null;
|
|
8540
|
+
readonly source: string;
|
|
8541
|
+
readonly started_at: string | null;
|
|
8542
|
+
readonly status: "COMPLETED" | "COMPLETING" | "DOWNLOADING" | "ERROR" | "IN_QUEUE" | "PREPARING_DOWNLOAD" | "PREPARING_SEED" | "SEEDING" | "STOPPING" | "WAITING" | "WAITING_FOR_COMPLETE_QUEUE" | "WAITING_FOR_DOWNLOADER";
|
|
8543
|
+
readonly subscription_id: number | null;
|
|
8544
|
+
readonly torrent_link: string | null;
|
|
8545
|
+
readonly tracker: string | null;
|
|
8546
|
+
readonly tracker_message: string | null;
|
|
8547
|
+
readonly type: "LIVE_STREAM" | "N/A" | "PLAYLIST" | "TORRENT" | "URL";
|
|
8548
|
+
readonly uploaded: number | null;
|
|
8549
|
+
readonly up_speed: number | null;
|
|
8550
|
+
readonly userfile_exists?: boolean | undefined;
|
|
8551
|
+
}>;
|
|
6966
8552
|
stopRecording: (id: number) => Promise<{
|
|
6967
8553
|
readonly status: "OK";
|
|
6968
8554
|
}>;
|
|
6969
8555
|
};
|
|
6970
8556
|
zips: {
|
|
6971
8557
|
cancel: (id: number) => Promise<void>;
|
|
6972
|
-
create: (input:
|
|
6973
|
-
|
|
6974
|
-
|
|
8558
|
+
create: (input: {
|
|
8559
|
+
readonly [x: number]: string | readonly number[] | undefined;
|
|
8560
|
+
readonly [x: string]: string | readonly number[] | undefined;
|
|
8561
|
+
}) => Promise<number>;
|
|
8562
|
+
get: (id: number) => Promise<{
|
|
8563
|
+
readonly status: "OK";
|
|
8564
|
+
readonly url: null;
|
|
8565
|
+
readonly zip_status: "NEW" | "PROCESSING";
|
|
8566
|
+
} | {
|
|
8567
|
+
readonly error_msg: string;
|
|
8568
|
+
readonly status: "OK";
|
|
8569
|
+
readonly url: null;
|
|
8570
|
+
readonly zip_status: "ERROR";
|
|
8571
|
+
} | {
|
|
8572
|
+
readonly id?: number | undefined;
|
|
8573
|
+
readonly missing_files: readonly (string | {
|
|
8574
|
+
readonly id: number;
|
|
8575
|
+
readonly missing: boolean;
|
|
8576
|
+
readonly name: string;
|
|
8577
|
+
})[];
|
|
8578
|
+
readonly size: number;
|
|
8579
|
+
readonly status: "OK";
|
|
8580
|
+
readonly url: string;
|
|
8581
|
+
readonly zip_status: "DONE";
|
|
8582
|
+
}>;
|
|
8583
|
+
list: () => Promise<readonly {
|
|
8584
|
+
readonly created_at: string;
|
|
8585
|
+
readonly id: number;
|
|
8586
|
+
}[]>;
|
|
8587
|
+
};
|
|
8588
|
+
dispose: () => Promise<void>;
|
|
8589
|
+
setAccessToken: (accessToken: string | undefined) => void;
|
|
8590
|
+
account: {
|
|
8591
|
+
appSpecificPasswords: {
|
|
8592
|
+
create: (input: {
|
|
8593
|
+
readonly note: string;
|
|
8594
|
+
}) => Promise<CreateAppSpecificPasswordResult>;
|
|
8595
|
+
delete: (id: number) => Promise<void>;
|
|
8596
|
+
deleteAll: () => Promise<void>;
|
|
8597
|
+
list: () => Promise<readonly {
|
|
8598
|
+
readonly created_at: string;
|
|
8599
|
+
readonly id: number;
|
|
8600
|
+
readonly ip_address: string | null;
|
|
8601
|
+
readonly last_used_at: string | null;
|
|
8602
|
+
readonly note: string;
|
|
8603
|
+
}[]>;
|
|
8604
|
+
};
|
|
8605
|
+
clear: (options: {
|
|
8606
|
+
readonly active_transfers: boolean;
|
|
8607
|
+
readonly files: boolean;
|
|
8608
|
+
readonly finished_transfers: boolean;
|
|
8609
|
+
readonly friends: boolean;
|
|
8610
|
+
readonly history: boolean;
|
|
8611
|
+
readonly rss_feeds: boolean;
|
|
8612
|
+
readonly rss_logs: boolean;
|
|
8613
|
+
readonly trash: boolean;
|
|
8614
|
+
}) => Promise<{
|
|
8615
|
+
readonly status: "OK";
|
|
8616
|
+
}>;
|
|
8617
|
+
destroy: (currentPassword: string) => Promise<{
|
|
8618
|
+
readonly status: "OK";
|
|
8619
|
+
}>;
|
|
8620
|
+
getSettings: () => Promise<{
|
|
8621
|
+
readonly beta_user: boolean;
|
|
8622
|
+
readonly callback_url: string | null;
|
|
8623
|
+
readonly dark_theme: boolean;
|
|
8624
|
+
readonly default_download_folder: number;
|
|
8625
|
+
readonly dont_autoselect_subtitles: boolean;
|
|
8626
|
+
readonly fluid_layout: boolean;
|
|
8627
|
+
readonly hide_subtitles: boolean;
|
|
8628
|
+
readonly history_enabled: boolean;
|
|
8629
|
+
readonly is_invisible: boolean;
|
|
8630
|
+
readonly locale: string | null;
|
|
8631
|
+
readonly login_mails_enabled: boolean;
|
|
8632
|
+
readonly next_episode: boolean;
|
|
8633
|
+
readonly pushover_token: string | null;
|
|
8634
|
+
readonly show_optimistic_usage: boolean;
|
|
8635
|
+
readonly sort_by: string;
|
|
8636
|
+
readonly start_from: boolean;
|
|
8637
|
+
readonly subtitle_languages: readonly (string | null)[];
|
|
8638
|
+
readonly theater_mode: boolean;
|
|
8639
|
+
readonly theme: "auto" | "dark" | "light";
|
|
8640
|
+
readonly transfer_sort_by: string | null;
|
|
8641
|
+
readonly trash_enabled: boolean;
|
|
8642
|
+
readonly tunnel_route_name: string | null;
|
|
8643
|
+
readonly two_factor_enabled: boolean;
|
|
8644
|
+
readonly use_private_download_ip: boolean;
|
|
8645
|
+
readonly use_start_from: boolean;
|
|
8646
|
+
readonly video_player: "flash" | "html5" | null;
|
|
8647
|
+
}>;
|
|
8648
|
+
listSubtitleLanguages: () => Promise<readonly {
|
|
8649
|
+
readonly code: string;
|
|
8650
|
+
readonly name: string;
|
|
8651
|
+
}[]>;
|
|
8652
|
+
listConfirmations: (subject?: "mail_change" | "password_change" | "subscription_upgrade" | undefined) => Promise<readonly {
|
|
8653
|
+
readonly created_at: string;
|
|
8654
|
+
readonly subject: "mail_change" | "password_change" | "subscription_upgrade";
|
|
8655
|
+
}[]>;
|
|
8656
|
+
saveSettings: (payload: {
|
|
8657
|
+
readonly beta_user?: boolean | undefined;
|
|
8658
|
+
readonly callback_url?: string | null | undefined;
|
|
8659
|
+
readonly dark_theme?: boolean | undefined;
|
|
8660
|
+
readonly default_download_folder?: number | undefined;
|
|
8661
|
+
readonly dont_autoselect_subtitles?: boolean | undefined;
|
|
8662
|
+
readonly fluid_layout?: boolean | undefined;
|
|
8663
|
+
readonly hide_subtitles?: boolean | undefined;
|
|
8664
|
+
readonly history_enabled?: boolean | undefined;
|
|
8665
|
+
readonly is_invisible?: boolean | undefined;
|
|
8666
|
+
readonly locale?: string | null | undefined;
|
|
8667
|
+
readonly login_mails_enabled?: boolean | undefined;
|
|
8668
|
+
readonly next_episode?: boolean | undefined;
|
|
8669
|
+
readonly pushover_token?: string | null | undefined;
|
|
8670
|
+
readonly show_optimistic_usage?: boolean | undefined;
|
|
8671
|
+
readonly sort_by?: string | undefined;
|
|
8672
|
+
readonly start_from?: boolean | undefined;
|
|
8673
|
+
readonly subtitle_languages?: readonly (string | null)[] | undefined;
|
|
8674
|
+
readonly theater_mode?: boolean | undefined;
|
|
8675
|
+
readonly theme?: "auto" | "dark" | "light" | undefined;
|
|
8676
|
+
readonly transfer_sort_by?: string | null | undefined;
|
|
8677
|
+
readonly trash_enabled?: boolean | undefined;
|
|
8678
|
+
readonly tunnel_route_name?: string | null | undefined;
|
|
8679
|
+
readonly use_private_download_ip?: boolean | undefined;
|
|
8680
|
+
readonly use_start_from?: boolean | undefined;
|
|
8681
|
+
readonly video_player?: "flash" | "html5" | null | undefined;
|
|
8682
|
+
readonly two_factor_enabled?: {
|
|
8683
|
+
readonly code: string;
|
|
8684
|
+
readonly enable: boolean;
|
|
8685
|
+
} | undefined;
|
|
8686
|
+
readonly username?: string | undefined;
|
|
8687
|
+
} | {
|
|
8688
|
+
readonly beta_user?: boolean | undefined;
|
|
8689
|
+
readonly callback_url?: string | null | undefined;
|
|
8690
|
+
readonly dark_theme?: boolean | undefined;
|
|
8691
|
+
readonly default_download_folder?: number | undefined;
|
|
8692
|
+
readonly dont_autoselect_subtitles?: boolean | undefined;
|
|
8693
|
+
readonly fluid_layout?: boolean | undefined;
|
|
8694
|
+
readonly hide_subtitles?: boolean | undefined;
|
|
8695
|
+
readonly history_enabled?: boolean | undefined;
|
|
8696
|
+
readonly is_invisible?: boolean | undefined;
|
|
8697
|
+
readonly locale?: string | null | undefined;
|
|
8698
|
+
readonly login_mails_enabled?: boolean | undefined;
|
|
8699
|
+
readonly next_episode?: boolean | undefined;
|
|
8700
|
+
readonly pushover_token?: string | null | undefined;
|
|
8701
|
+
readonly show_optimistic_usage?: boolean | undefined;
|
|
8702
|
+
readonly sort_by?: string | undefined;
|
|
8703
|
+
readonly start_from?: boolean | undefined;
|
|
8704
|
+
readonly subtitle_languages?: readonly (string | null)[] | undefined;
|
|
8705
|
+
readonly theater_mode?: boolean | undefined;
|
|
8706
|
+
readonly theme?: "auto" | "dark" | "light" | undefined;
|
|
8707
|
+
readonly transfer_sort_by?: string | null | undefined;
|
|
8708
|
+
readonly trash_enabled?: boolean | undefined;
|
|
8709
|
+
readonly tunnel_route_name?: string | null | undefined;
|
|
8710
|
+
readonly use_private_download_ip?: boolean | undefined;
|
|
8711
|
+
readonly use_start_from?: boolean | undefined;
|
|
8712
|
+
readonly video_player?: "flash" | "html5" | null | undefined;
|
|
8713
|
+
readonly two_factor_enabled?: {
|
|
8714
|
+
readonly code: string;
|
|
8715
|
+
readonly enable: boolean;
|
|
8716
|
+
} | undefined;
|
|
8717
|
+
readonly username?: string | undefined;
|
|
8718
|
+
readonly current_password: string;
|
|
8719
|
+
readonly mail: string;
|
|
8720
|
+
readonly password?: string | undefined;
|
|
8721
|
+
} | {
|
|
8722
|
+
readonly beta_user?: boolean | undefined;
|
|
8723
|
+
readonly callback_url?: string | null | undefined;
|
|
8724
|
+
readonly dark_theme?: boolean | undefined;
|
|
8725
|
+
readonly default_download_folder?: number | undefined;
|
|
8726
|
+
readonly dont_autoselect_subtitles?: boolean | undefined;
|
|
8727
|
+
readonly fluid_layout?: boolean | undefined;
|
|
8728
|
+
readonly hide_subtitles?: boolean | undefined;
|
|
8729
|
+
readonly history_enabled?: boolean | undefined;
|
|
8730
|
+
readonly is_invisible?: boolean | undefined;
|
|
8731
|
+
readonly locale?: string | null | undefined;
|
|
8732
|
+
readonly login_mails_enabled?: boolean | undefined;
|
|
8733
|
+
readonly next_episode?: boolean | undefined;
|
|
8734
|
+
readonly pushover_token?: string | null | undefined;
|
|
8735
|
+
readonly show_optimistic_usage?: boolean | undefined;
|
|
8736
|
+
readonly sort_by?: string | undefined;
|
|
8737
|
+
readonly start_from?: boolean | undefined;
|
|
8738
|
+
readonly subtitle_languages?: readonly (string | null)[] | undefined;
|
|
8739
|
+
readonly theater_mode?: boolean | undefined;
|
|
8740
|
+
readonly theme?: "auto" | "dark" | "light" | undefined;
|
|
8741
|
+
readonly transfer_sort_by?: string | null | undefined;
|
|
8742
|
+
readonly trash_enabled?: boolean | undefined;
|
|
8743
|
+
readonly tunnel_route_name?: string | null | undefined;
|
|
8744
|
+
readonly use_private_download_ip?: boolean | undefined;
|
|
8745
|
+
readonly use_start_from?: boolean | undefined;
|
|
8746
|
+
readonly video_player?: "flash" | "html5" | null | undefined;
|
|
8747
|
+
readonly two_factor_enabled?: {
|
|
8748
|
+
readonly code: string;
|
|
8749
|
+
readonly enable: boolean;
|
|
8750
|
+
} | undefined;
|
|
8751
|
+
readonly username?: string | undefined;
|
|
8752
|
+
readonly current_password: string;
|
|
8753
|
+
readonly mail?: string | undefined;
|
|
8754
|
+
readonly password: string;
|
|
8755
|
+
}) => Promise<{
|
|
8756
|
+
readonly status: "OK";
|
|
8757
|
+
}>;
|
|
8758
|
+
getInfo: {
|
|
8759
|
+
(query: {
|
|
8760
|
+
readonly download_token: 1;
|
|
8761
|
+
readonly pas: 1;
|
|
8762
|
+
}): Promise<AccountInfoBase & {
|
|
8763
|
+
readonly download_token: string;
|
|
8764
|
+
readonly pas: PasInfo;
|
|
8765
|
+
}>;
|
|
8766
|
+
(query: {
|
|
8767
|
+
readonly download_token: 1;
|
|
8768
|
+
}): Promise<AccountInfoBase & {
|
|
8769
|
+
readonly download_token: string;
|
|
8770
|
+
}>;
|
|
8771
|
+
(query: {
|
|
8772
|
+
readonly features: 1;
|
|
8773
|
+
}): Promise<AccountInfoBase & {
|
|
8774
|
+
readonly features: Record<string, boolean>;
|
|
8775
|
+
}>;
|
|
8776
|
+
(query: {
|
|
8777
|
+
readonly intercom: 1;
|
|
8778
|
+
readonly platform?: "web" | "ios";
|
|
8779
|
+
}): Promise<AccountInfoBase & {
|
|
8780
|
+
readonly user_hash?: string;
|
|
8781
|
+
}>;
|
|
8782
|
+
(query: {
|
|
8783
|
+
readonly pas: 1;
|
|
8784
|
+
}): Promise<AccountInfoBase & {
|
|
8785
|
+
readonly pas: PasInfo;
|
|
8786
|
+
}>;
|
|
8787
|
+
(query: {
|
|
8788
|
+
readonly profitwell: 1;
|
|
8789
|
+
}): Promise<AccountInfoBase & {
|
|
8790
|
+
readonly paddle_user_id: number | string | null;
|
|
8791
|
+
}>;
|
|
8792
|
+
(query: {
|
|
8793
|
+
readonly push_token: 1;
|
|
8794
|
+
}): Promise<AccountInfoBase & {
|
|
8795
|
+
readonly push_token: string;
|
|
8796
|
+
}>;
|
|
8797
|
+
(): Promise<AccountInfoBroad>;
|
|
8798
|
+
(query: AccountInfoQuery): Promise<AccountInfoBroad>;
|
|
8799
|
+
};
|
|
8800
|
+
};
|
|
8801
|
+
auth: {
|
|
8802
|
+
checkCodeMatch: (code: string) => Promise<string | null>;
|
|
8803
|
+
clients: () => Promise<readonly {
|
|
8804
|
+
readonly active: boolean;
|
|
8805
|
+
readonly app_id: number;
|
|
8806
|
+
readonly app_name?: string | undefined;
|
|
8807
|
+
readonly client_name: string;
|
|
8808
|
+
readonly created_at: string;
|
|
8809
|
+
readonly id: number;
|
|
8810
|
+
readonly ip_address: string;
|
|
8811
|
+
readonly last_used_at: string | null;
|
|
8812
|
+
readonly note: string | null;
|
|
8813
|
+
readonly user_agent: string;
|
|
8814
|
+
}[]>;
|
|
8815
|
+
exchangeAuthorizationCode: (input: {
|
|
8816
|
+
readonly clientId: string | number;
|
|
8817
|
+
readonly clientSecret: string;
|
|
8818
|
+
readonly code: string;
|
|
8819
|
+
readonly redirectUri?: string | undefined;
|
|
8820
|
+
}) => Promise<string>;
|
|
8821
|
+
exists: (key: "mail" | "username", value: string) => Promise<boolean>;
|
|
8822
|
+
forgotPassword: (mail: string) => Promise<{
|
|
8823
|
+
readonly status: "OK";
|
|
8824
|
+
}>;
|
|
8825
|
+
getCode: (input: {
|
|
8826
|
+
readonly appId: string | number;
|
|
8827
|
+
readonly clientName?: string | undefined;
|
|
8828
|
+
}) => Promise<{
|
|
8829
|
+
readonly code: string;
|
|
8830
|
+
readonly qr_code_url: string;
|
|
8831
|
+
}>;
|
|
8832
|
+
getFamilyInvite: (code: string) => Promise<{
|
|
8833
|
+
readonly owner: string;
|
|
8834
|
+
readonly plan: string;
|
|
8835
|
+
}>;
|
|
8836
|
+
getFriendInvite: (code: string) => Promise<{
|
|
8837
|
+
readonly inviter: string;
|
|
8838
|
+
readonly plan: {
|
|
8839
|
+
readonly code: string;
|
|
8840
|
+
readonly name: string;
|
|
8841
|
+
readonly period: number;
|
|
8842
|
+
};
|
|
8843
|
+
}>;
|
|
8844
|
+
getGiftCard: (code: string) => Promise<{
|
|
8845
|
+
readonly days: number;
|
|
8846
|
+
readonly plan: boolean;
|
|
8847
|
+
}>;
|
|
8848
|
+
getVoucher: (code: string) => Promise<{
|
|
8849
|
+
readonly days: number;
|
|
8850
|
+
readonly owner: string | null;
|
|
8851
|
+
}>;
|
|
8852
|
+
grants: () => Promise<readonly {
|
|
8853
|
+
readonly description: string;
|
|
8854
|
+
readonly has_icon: boolean | null;
|
|
8855
|
+
readonly id: number;
|
|
8856
|
+
readonly name: string;
|
|
8857
|
+
readonly website: string;
|
|
8858
|
+
}[]>;
|
|
8859
|
+
linkDevice: (code: string) => Promise<{
|
|
8860
|
+
readonly description: string;
|
|
8861
|
+
readonly has_icon: boolean | null;
|
|
8862
|
+
readonly id: number;
|
|
8863
|
+
readonly name: string;
|
|
8864
|
+
readonly website: string;
|
|
8865
|
+
}>;
|
|
8866
|
+
login: (input: {
|
|
8867
|
+
readonly callbackUrl?: string | undefined;
|
|
8868
|
+
readonly clientId: string | number;
|
|
8869
|
+
readonly clientName?: string | undefined;
|
|
8870
|
+
readonly clientSecret: string;
|
|
8871
|
+
readonly fingerprint?: string | undefined;
|
|
8872
|
+
readonly password: string;
|
|
8873
|
+
readonly username: string;
|
|
8874
|
+
}) => Promise<{
|
|
8875
|
+
readonly access_token: string;
|
|
8876
|
+
readonly user_id: number;
|
|
8877
|
+
}>;
|
|
8878
|
+
logout: () => Promise<{
|
|
8879
|
+
readonly status: "OK";
|
|
8880
|
+
}>;
|
|
8881
|
+
register: (input: {
|
|
8882
|
+
readonly client_id: string | number;
|
|
8883
|
+
readonly family_invite_code?: string | undefined;
|
|
8884
|
+
readonly friend_invite_code?: string | undefined;
|
|
8885
|
+
readonly gift_card_confirmation_code?: string | undefined;
|
|
8886
|
+
readonly mail: string;
|
|
8887
|
+
readonly password: string;
|
|
8888
|
+
readonly plan_name?: string | undefined;
|
|
8889
|
+
readonly username: string;
|
|
8890
|
+
readonly voucher_code?: string | undefined;
|
|
8891
|
+
}) => Promise<{
|
|
8892
|
+
readonly access_token: string;
|
|
8893
|
+
}>;
|
|
8894
|
+
resetPassword: (key: string, password: string) => Promise<{
|
|
8895
|
+
readonly access_token: string;
|
|
8896
|
+
}>;
|
|
8897
|
+
revokeAllClients: () => Promise<{
|
|
8898
|
+
readonly status: "OK";
|
|
8899
|
+
}>;
|
|
8900
|
+
revokeApp: (id: number) => Promise<{
|
|
8901
|
+
readonly status: "OK";
|
|
8902
|
+
}>;
|
|
8903
|
+
revokeClient: (id: number) => Promise<{
|
|
8904
|
+
readonly status: "OK";
|
|
8905
|
+
}>;
|
|
8906
|
+
twoFactor: {
|
|
8907
|
+
generateTOTP: () => Promise<{
|
|
8908
|
+
readonly recovery_codes: {
|
|
8909
|
+
readonly codes: readonly {
|
|
8910
|
+
readonly code: string;
|
|
8911
|
+
readonly used_at: string | null;
|
|
8912
|
+
}[];
|
|
8913
|
+
readonly created_at: string;
|
|
8914
|
+
};
|
|
8915
|
+
readonly secret: string;
|
|
8916
|
+
readonly uri: string;
|
|
8917
|
+
}>;
|
|
8918
|
+
getRecoveryCodes: () => Promise<{
|
|
8919
|
+
readonly codes: readonly {
|
|
8920
|
+
readonly code: string;
|
|
8921
|
+
readonly used_at: string | null;
|
|
8922
|
+
}[];
|
|
8923
|
+
readonly created_at: string;
|
|
8924
|
+
}>;
|
|
8925
|
+
regenerateRecoveryCodes: () => Promise<{
|
|
8926
|
+
readonly codes: readonly {
|
|
8927
|
+
readonly code: string;
|
|
8928
|
+
readonly used_at: string | null;
|
|
8929
|
+
}[];
|
|
8930
|
+
readonly created_at: string;
|
|
8931
|
+
}>;
|
|
8932
|
+
verifyTOTP: (twoFactorScopedToken: string, code: string) => Promise<{
|
|
8933
|
+
readonly token: string;
|
|
8934
|
+
readonly user_id: number;
|
|
8935
|
+
}>;
|
|
8936
|
+
};
|
|
8937
|
+
validateToken: (token: string) => Promise<{
|
|
8938
|
+
readonly result: boolean;
|
|
8939
|
+
readonly token_id: number | null;
|
|
8940
|
+
readonly token_scope: "default" | "files_download" | "files_public_access" | "token_validate" | "two_factor" | null;
|
|
8941
|
+
readonly user_id: number | null;
|
|
8942
|
+
}>;
|
|
8943
|
+
buildLoginUrl: (options: Parameters<typeof buildAuthLoginUrl>[0]) => string;
|
|
8944
|
+
};
|
|
8945
|
+
config: {
|
|
8946
|
+
deleteKey: (key: string) => Promise<{
|
|
8947
|
+
readonly status: "OK";
|
|
8948
|
+
}>;
|
|
8949
|
+
getKey: (key: string) => Promise<PutioJsonValue>;
|
|
8950
|
+
read: () => Promise<PutioJsonObject>;
|
|
8951
|
+
setKey: (key: string, value: PutioJsonValue) => Promise<{
|
|
8952
|
+
readonly status: "OK";
|
|
8953
|
+
}>;
|
|
8954
|
+
write: (config: PutioJsonObject) => Promise<{
|
|
8955
|
+
readonly status: "OK";
|
|
8956
|
+
}>;
|
|
8957
|
+
getKeyWith: <A>(key: string, schema: Schema.ConstraintDecoder<A, never>) => Promise<A>;
|
|
8958
|
+
readWith: <A>(schema: Schema.ConstraintDecoder<A, never>) => Promise<A>;
|
|
8959
|
+
};
|
|
8960
|
+
files: {
|
|
8961
|
+
canWrite: (fileId: number) => Promise<number>;
|
|
8962
|
+
continue: (cursor: string, query?: {
|
|
8963
|
+
readonly per_page?: number;
|
|
8964
|
+
} | undefined) => Promise<{
|
|
8965
|
+
readonly breadcrumbs?: readonly (readonly [number, string])[] | undefined;
|
|
8966
|
+
readonly cursor: string | null;
|
|
8967
|
+
readonly files: readonly {
|
|
8968
|
+
readonly content_type: string | null;
|
|
8969
|
+
readonly created_at: string;
|
|
8970
|
+
readonly crc32: string | null;
|
|
8971
|
+
readonly extension: string | null;
|
|
8972
|
+
readonly file_type: "ARCHIVE" | "AUDIO" | "FILE" | "FOLDER" | "IMAGE" | "PDF" | "SWF" | "TEXT" | "VIDEO";
|
|
8973
|
+
readonly first_accessed_at: string | null;
|
|
8974
|
+
readonly folder_type: "REGULAR" | "SHARED_FRIEND" | "SHARED_ROOT";
|
|
8975
|
+
readonly icon: string | null;
|
|
8976
|
+
readonly id: number;
|
|
8977
|
+
readonly is_hidden: boolean;
|
|
8978
|
+
readonly is_mp4_available: boolean;
|
|
8979
|
+
readonly is_shared: boolean;
|
|
8980
|
+
readonly name: string;
|
|
8981
|
+
readonly opensubtitles_hash: string | null;
|
|
8982
|
+
readonly parent_id: number | null;
|
|
8983
|
+
readonly screenshot: string | null;
|
|
8984
|
+
readonly sha1?: string | null | undefined;
|
|
8985
|
+
readonly size: number;
|
|
8986
|
+
readonly start_from?: number | undefined;
|
|
8987
|
+
readonly updated_at: string;
|
|
8988
|
+
readonly content_type_and_codecs?: string | null | undefined;
|
|
8989
|
+
readonly media_info?: {
|
|
8990
|
+
readonly format?: {
|
|
8991
|
+
readonly bit_rate?: number | undefined;
|
|
8992
|
+
readonly duration?: number | undefined;
|
|
8993
|
+
readonly name?: string | undefined;
|
|
8994
|
+
} | null | undefined;
|
|
8995
|
+
readonly mime_type?: string | null | undefined;
|
|
8996
|
+
readonly streams?: readonly {
|
|
8997
|
+
readonly channels?: number | undefined;
|
|
8998
|
+
readonly codec_name?: string | undefined;
|
|
8999
|
+
readonly codec_type?: string | undefined;
|
|
9000
|
+
readonly height?: number | undefined;
|
|
9001
|
+
readonly level?: number | undefined;
|
|
9002
|
+
readonly profile?: string | undefined;
|
|
9003
|
+
readonly rfc6381_codec?: string | undefined;
|
|
9004
|
+
readonly width?: number | undefined;
|
|
9005
|
+
}[] | undefined;
|
|
9006
|
+
} | null | undefined;
|
|
9007
|
+
readonly media_metadata?: {
|
|
9008
|
+
readonly aspect_ratio?: number | null | undefined;
|
|
9009
|
+
readonly codec?: string | null | undefined;
|
|
9010
|
+
readonly duration?: number | null | undefined;
|
|
9011
|
+
readonly height?: number | null | undefined;
|
|
9012
|
+
readonly width?: number | null | undefined;
|
|
9013
|
+
} | null | undefined;
|
|
9014
|
+
readonly mp4_size?: number | null | undefined;
|
|
9015
|
+
readonly mp4_stream_url?: string | null | undefined;
|
|
9016
|
+
readonly need_convert?: boolean | undefined;
|
|
9017
|
+
readonly sender_name?: string | undefined;
|
|
9018
|
+
readonly sort_by?: "DATE_ASC" | "DATE_DESC" | "MODIFIED_ASC" | "MODIFIED_DESC" | "NAME_ASC" | "NAME_DESC" | "SIZE_ASC" | "SIZE_DESC" | "TYPE_ASC" | "TYPE_DESC" | "WATCH_ASC" | "WATCH_DESC" | undefined;
|
|
9019
|
+
readonly stream_url?: string | null | undefined;
|
|
9020
|
+
readonly video_metadata?: {
|
|
9021
|
+
readonly aspect_ratio?: number | null | undefined;
|
|
9022
|
+
readonly codec?: string | null | undefined;
|
|
9023
|
+
readonly duration?: number | null | undefined;
|
|
9024
|
+
readonly height?: number | null | undefined;
|
|
9025
|
+
readonly width?: number | null | undefined;
|
|
9026
|
+
} | null | undefined;
|
|
9027
|
+
}[];
|
|
9028
|
+
readonly parent?: {
|
|
9029
|
+
readonly content_type: string | null;
|
|
9030
|
+
readonly created_at: string;
|
|
9031
|
+
readonly crc32: string | null;
|
|
9032
|
+
readonly extension: string | null;
|
|
9033
|
+
readonly file_type: "ARCHIVE" | "AUDIO" | "FILE" | "FOLDER" | "IMAGE" | "PDF" | "SWF" | "TEXT" | "VIDEO";
|
|
9034
|
+
readonly first_accessed_at: string | null;
|
|
9035
|
+
readonly folder_type: "REGULAR" | "SHARED_FRIEND" | "SHARED_ROOT";
|
|
9036
|
+
readonly icon: string | null;
|
|
9037
|
+
readonly id: number;
|
|
9038
|
+
readonly is_hidden: boolean;
|
|
9039
|
+
readonly is_mp4_available: boolean;
|
|
9040
|
+
readonly is_shared: boolean;
|
|
9041
|
+
readonly name: string;
|
|
9042
|
+
readonly opensubtitles_hash: string | null;
|
|
9043
|
+
readonly parent_id: number | null;
|
|
9044
|
+
readonly screenshot: string | null;
|
|
9045
|
+
readonly sha1?: string | null | undefined;
|
|
9046
|
+
readonly size: number;
|
|
9047
|
+
readonly start_from?: number | undefined;
|
|
9048
|
+
readonly updated_at: string;
|
|
9049
|
+
readonly content_type_and_codecs?: string | null | undefined;
|
|
9050
|
+
readonly media_info?: {
|
|
9051
|
+
readonly format?: {
|
|
9052
|
+
readonly bit_rate?: number | undefined;
|
|
9053
|
+
readonly duration?: number | undefined;
|
|
9054
|
+
readonly name?: string | undefined;
|
|
9055
|
+
} | null | undefined;
|
|
9056
|
+
readonly mime_type?: string | null | undefined;
|
|
9057
|
+
readonly streams?: readonly {
|
|
9058
|
+
readonly channels?: number | undefined;
|
|
9059
|
+
readonly codec_name?: string | undefined;
|
|
9060
|
+
readonly codec_type?: string | undefined;
|
|
9061
|
+
readonly height?: number | undefined;
|
|
9062
|
+
readonly level?: number | undefined;
|
|
9063
|
+
readonly profile?: string | undefined;
|
|
9064
|
+
readonly rfc6381_codec?: string | undefined;
|
|
9065
|
+
readonly width?: number | undefined;
|
|
9066
|
+
}[] | undefined;
|
|
9067
|
+
} | null | undefined;
|
|
9068
|
+
readonly media_metadata?: {
|
|
9069
|
+
readonly aspect_ratio?: number | null | undefined;
|
|
9070
|
+
readonly codec?: string | null | undefined;
|
|
9071
|
+
readonly duration?: number | null | undefined;
|
|
9072
|
+
readonly height?: number | null | undefined;
|
|
9073
|
+
readonly width?: number | null | undefined;
|
|
9074
|
+
} | null | undefined;
|
|
9075
|
+
readonly mp4_size?: number | null | undefined;
|
|
9076
|
+
readonly mp4_stream_url?: string | null | undefined;
|
|
9077
|
+
readonly need_convert?: boolean | undefined;
|
|
9078
|
+
readonly sender_name?: string | undefined;
|
|
9079
|
+
readonly sort_by?: "DATE_ASC" | "DATE_DESC" | "MODIFIED_ASC" | "MODIFIED_DESC" | "NAME_ASC" | "NAME_DESC" | "SIZE_ASC" | "SIZE_DESC" | "TYPE_ASC" | "TYPE_DESC" | "WATCH_ASC" | "WATCH_DESC" | undefined;
|
|
9080
|
+
readonly stream_url?: string | null | undefined;
|
|
9081
|
+
readonly video_metadata?: {
|
|
9082
|
+
readonly aspect_ratio?: number | null | undefined;
|
|
9083
|
+
readonly codec?: string | null | undefined;
|
|
9084
|
+
readonly duration?: number | null | undefined;
|
|
9085
|
+
readonly height?: number | null | undefined;
|
|
9086
|
+
readonly width?: number | null | undefined;
|
|
9087
|
+
} | null | undefined;
|
|
9088
|
+
} | null | undefined;
|
|
9089
|
+
readonly status: "OK";
|
|
9090
|
+
readonly total?: number | undefined;
|
|
9091
|
+
}>;
|
|
9092
|
+
continueSearch: (cursor: string, query?: {
|
|
9093
|
+
readonly per_page?: number;
|
|
9094
|
+
} | undefined) => Promise<{
|
|
9095
|
+
readonly cursor: string | null;
|
|
9096
|
+
readonly files: readonly {
|
|
9097
|
+
readonly content_type: string | null;
|
|
9098
|
+
readonly created_at: string;
|
|
9099
|
+
readonly crc32: string | null;
|
|
9100
|
+
readonly extension: string | null;
|
|
9101
|
+
readonly file_type: "ARCHIVE" | "AUDIO" | "FILE" | "FOLDER" | "IMAGE" | "PDF" | "SWF" | "TEXT" | "VIDEO";
|
|
9102
|
+
readonly first_accessed_at: string | null;
|
|
9103
|
+
readonly folder_type: "REGULAR" | "SHARED_FRIEND" | "SHARED_ROOT";
|
|
9104
|
+
readonly icon: string | null;
|
|
9105
|
+
readonly id: number;
|
|
9106
|
+
readonly is_hidden: boolean;
|
|
9107
|
+
readonly is_mp4_available: boolean;
|
|
9108
|
+
readonly is_shared: boolean;
|
|
9109
|
+
readonly name: string;
|
|
9110
|
+
readonly opensubtitles_hash: string | null;
|
|
9111
|
+
readonly parent_id: number | null;
|
|
9112
|
+
readonly screenshot: string | null;
|
|
9113
|
+
readonly sha1?: string | null | undefined;
|
|
9114
|
+
readonly size: number;
|
|
9115
|
+
readonly start_from?: number | undefined;
|
|
9116
|
+
readonly updated_at: string;
|
|
9117
|
+
readonly content_type_and_codecs?: string | null | undefined;
|
|
9118
|
+
readonly media_info?: {
|
|
9119
|
+
readonly format?: {
|
|
9120
|
+
readonly bit_rate?: number | undefined;
|
|
9121
|
+
readonly duration?: number | undefined;
|
|
9122
|
+
readonly name?: string | undefined;
|
|
9123
|
+
} | null | undefined;
|
|
9124
|
+
readonly mime_type?: string | null | undefined;
|
|
9125
|
+
readonly streams?: readonly {
|
|
9126
|
+
readonly channels?: number | undefined;
|
|
9127
|
+
readonly codec_name?: string | undefined;
|
|
9128
|
+
readonly codec_type?: string | undefined;
|
|
9129
|
+
readonly height?: number | undefined;
|
|
9130
|
+
readonly level?: number | undefined;
|
|
9131
|
+
readonly profile?: string | undefined;
|
|
9132
|
+
readonly rfc6381_codec?: string | undefined;
|
|
9133
|
+
readonly width?: number | undefined;
|
|
9134
|
+
}[] | undefined;
|
|
9135
|
+
} | null | undefined;
|
|
9136
|
+
readonly media_metadata?: {
|
|
9137
|
+
readonly aspect_ratio?: number | null | undefined;
|
|
9138
|
+
readonly codec?: string | null | undefined;
|
|
9139
|
+
readonly duration?: number | null | undefined;
|
|
9140
|
+
readonly height?: number | null | undefined;
|
|
9141
|
+
readonly width?: number | null | undefined;
|
|
9142
|
+
} | null | undefined;
|
|
9143
|
+
readonly mp4_size?: number | null | undefined;
|
|
9144
|
+
readonly mp4_stream_url?: string | null | undefined;
|
|
9145
|
+
readonly need_convert?: boolean | undefined;
|
|
9146
|
+
readonly sender_name?: string | undefined;
|
|
9147
|
+
readonly sort_by?: "DATE_ASC" | "DATE_DESC" | "MODIFIED_ASC" | "MODIFIED_DESC" | "NAME_ASC" | "NAME_DESC" | "SIZE_ASC" | "SIZE_DESC" | "TYPE_ASC" | "TYPE_DESC" | "WATCH_ASC" | "WATCH_DESC" | undefined;
|
|
9148
|
+
readonly stream_url?: string | null | undefined;
|
|
9149
|
+
readonly video_metadata?: {
|
|
9150
|
+
readonly aspect_ratio?: number | null | undefined;
|
|
9151
|
+
readonly codec?: string | null | undefined;
|
|
9152
|
+
readonly duration?: number | null | undefined;
|
|
9153
|
+
readonly height?: number | null | undefined;
|
|
9154
|
+
readonly width?: number | null | undefined;
|
|
9155
|
+
} | null | undefined;
|
|
9156
|
+
}[];
|
|
9157
|
+
readonly status: "OK";
|
|
9158
|
+
readonly total: number;
|
|
9159
|
+
}>;
|
|
9160
|
+
copy: (input: {
|
|
9161
|
+
readonly fileId: number;
|
|
9162
|
+
readonly name?: string | undefined;
|
|
9163
|
+
readonly parentId: number;
|
|
9164
|
+
}) => Promise<{
|
|
9165
|
+
readonly content_type: string | null;
|
|
9166
|
+
readonly created_at: string;
|
|
9167
|
+
readonly crc32: string | null;
|
|
9168
|
+
readonly extension: string | null;
|
|
9169
|
+
readonly file_type: "ARCHIVE" | "AUDIO" | "FILE" | "FOLDER" | "IMAGE" | "PDF" | "SWF" | "TEXT" | "VIDEO";
|
|
9170
|
+
readonly first_accessed_at: string | null;
|
|
9171
|
+
readonly folder_type: "REGULAR" | "SHARED_FRIEND" | "SHARED_ROOT";
|
|
9172
|
+
readonly icon: string | null;
|
|
9173
|
+
readonly id: number;
|
|
9174
|
+
readonly is_hidden: boolean;
|
|
9175
|
+
readonly is_mp4_available: boolean;
|
|
9176
|
+
readonly is_shared: boolean;
|
|
9177
|
+
readonly name: string;
|
|
9178
|
+
readonly opensubtitles_hash: string | null;
|
|
9179
|
+
readonly parent_id: number | null;
|
|
9180
|
+
readonly screenshot: string | null;
|
|
9181
|
+
readonly sha1?: string | null | undefined;
|
|
9182
|
+
readonly size: number;
|
|
9183
|
+
readonly start_from?: number | undefined;
|
|
9184
|
+
readonly updated_at: string;
|
|
9185
|
+
readonly content_type_and_codecs?: string | null | undefined;
|
|
9186
|
+
readonly media_info?: {
|
|
9187
|
+
readonly format?: {
|
|
9188
|
+
readonly bit_rate?: number | undefined;
|
|
9189
|
+
readonly duration?: number | undefined;
|
|
9190
|
+
readonly name?: string | undefined;
|
|
9191
|
+
} | null | undefined;
|
|
9192
|
+
readonly mime_type?: string | null | undefined;
|
|
9193
|
+
readonly streams?: readonly {
|
|
9194
|
+
readonly channels?: number | undefined;
|
|
9195
|
+
readonly codec_name?: string | undefined;
|
|
9196
|
+
readonly codec_type?: string | undefined;
|
|
9197
|
+
readonly height?: number | undefined;
|
|
9198
|
+
readonly level?: number | undefined;
|
|
9199
|
+
readonly profile?: string | undefined;
|
|
9200
|
+
readonly rfc6381_codec?: string | undefined;
|
|
9201
|
+
readonly width?: number | undefined;
|
|
9202
|
+
}[] | undefined;
|
|
9203
|
+
} | null | undefined;
|
|
9204
|
+
readonly media_metadata?: {
|
|
9205
|
+
readonly aspect_ratio?: number | null | undefined;
|
|
9206
|
+
readonly codec?: string | null | undefined;
|
|
9207
|
+
readonly duration?: number | null | undefined;
|
|
9208
|
+
readonly height?: number | null | undefined;
|
|
9209
|
+
readonly width?: number | null | undefined;
|
|
9210
|
+
} | null | undefined;
|
|
9211
|
+
readonly mp4_size?: number | null | undefined;
|
|
9212
|
+
readonly mp4_stream_url?: string | null | undefined;
|
|
9213
|
+
readonly need_convert?: boolean | undefined;
|
|
9214
|
+
readonly sender_name?: string | undefined;
|
|
9215
|
+
readonly sort_by?: "DATE_ASC" | "DATE_DESC" | "MODIFIED_ASC" | "MODIFIED_DESC" | "NAME_ASC" | "NAME_DESC" | "SIZE_ASC" | "SIZE_DESC" | "TYPE_ASC" | "TYPE_DESC" | "WATCH_ASC" | "WATCH_DESC" | undefined;
|
|
9216
|
+
readonly stream_url?: string | null | undefined;
|
|
9217
|
+
readonly video_metadata?: {
|
|
9218
|
+
readonly aspect_ratio?: number | null | undefined;
|
|
9219
|
+
readonly codec?: string | null | undefined;
|
|
9220
|
+
readonly duration?: number | null | undefined;
|
|
9221
|
+
readonly height?: number | null | undefined;
|
|
9222
|
+
readonly width?: number | null | undefined;
|
|
9223
|
+
} | null | undefined;
|
|
9224
|
+
}>;
|
|
9225
|
+
convertToMp4: (fileId: number) => Promise<{
|
|
9226
|
+
readonly id: number;
|
|
9227
|
+
readonly status: "NOT_AVAILABLE";
|
|
9228
|
+
} | {
|
|
9229
|
+
readonly id: number;
|
|
9230
|
+
readonly percent_done?: number | undefined;
|
|
9231
|
+
readonly status: "IN_QUEUE";
|
|
9232
|
+
} | {
|
|
9233
|
+
readonly id: number;
|
|
9234
|
+
readonly percent_done: number;
|
|
9235
|
+
readonly status: "CONVERTING";
|
|
9236
|
+
} | {
|
|
9237
|
+
readonly id: number;
|
|
9238
|
+
readonly percent_done: number;
|
|
9239
|
+
readonly size: number;
|
|
9240
|
+
readonly status: "COMPLETED";
|
|
9241
|
+
} | {
|
|
9242
|
+
readonly id: number;
|
|
9243
|
+
readonly status: "ERROR";
|
|
9244
|
+
}>;
|
|
9245
|
+
convertManyToMp4: (ids: readonly number[]) => Promise<number>;
|
|
9246
|
+
convertSelectionToMp4: (selection: FilesBulkSelection) => Promise<number>;
|
|
9247
|
+
createUploadRequest: (input: FileUploadInput, options?: {
|
|
9248
|
+
readonly oauthToken?: string;
|
|
9249
|
+
} | undefined) => Promise<FileUploadRequestDescriptor>;
|
|
9250
|
+
createFolder: (input: {
|
|
9251
|
+
readonly name?: string | undefined;
|
|
9252
|
+
readonly parent_id?: number | undefined;
|
|
9253
|
+
readonly path?: string | undefined;
|
|
9254
|
+
}) => Promise<{
|
|
9255
|
+
readonly content_type: string | null;
|
|
9256
|
+
readonly created_at: string;
|
|
9257
|
+
readonly crc32: string | null;
|
|
9258
|
+
readonly extension: string | null;
|
|
9259
|
+
readonly file_type: "ARCHIVE" | "AUDIO" | "FILE" | "FOLDER" | "IMAGE" | "PDF" | "SWF" | "TEXT" | "VIDEO";
|
|
9260
|
+
readonly first_accessed_at: string | null;
|
|
9261
|
+
readonly folder_type: "REGULAR" | "SHARED_FRIEND" | "SHARED_ROOT";
|
|
9262
|
+
readonly icon: string | null;
|
|
9263
|
+
readonly id: number;
|
|
9264
|
+
readonly is_hidden: boolean;
|
|
9265
|
+
readonly is_mp4_available: boolean;
|
|
9266
|
+
readonly is_shared: boolean;
|
|
9267
|
+
readonly name: string;
|
|
9268
|
+
readonly opensubtitles_hash: string | null;
|
|
9269
|
+
readonly parent_id: number | null;
|
|
9270
|
+
readonly screenshot: string | null;
|
|
9271
|
+
readonly sha1?: string | null | undefined;
|
|
9272
|
+
readonly size: number;
|
|
9273
|
+
readonly start_from?: number | undefined;
|
|
9274
|
+
readonly updated_at: string;
|
|
9275
|
+
readonly content_type_and_codecs?: string | null | undefined;
|
|
9276
|
+
readonly media_info?: {
|
|
9277
|
+
readonly format?: {
|
|
9278
|
+
readonly bit_rate?: number | undefined;
|
|
9279
|
+
readonly duration?: number | undefined;
|
|
9280
|
+
readonly name?: string | undefined;
|
|
9281
|
+
} | null | undefined;
|
|
9282
|
+
readonly mime_type?: string | null | undefined;
|
|
9283
|
+
readonly streams?: readonly {
|
|
9284
|
+
readonly channels?: number | undefined;
|
|
9285
|
+
readonly codec_name?: string | undefined;
|
|
9286
|
+
readonly codec_type?: string | undefined;
|
|
9287
|
+
readonly height?: number | undefined;
|
|
9288
|
+
readonly level?: number | undefined;
|
|
9289
|
+
readonly profile?: string | undefined;
|
|
9290
|
+
readonly rfc6381_codec?: string | undefined;
|
|
9291
|
+
readonly width?: number | undefined;
|
|
9292
|
+
}[] | undefined;
|
|
9293
|
+
} | null | undefined;
|
|
9294
|
+
readonly media_metadata?: {
|
|
9295
|
+
readonly aspect_ratio?: number | null | undefined;
|
|
9296
|
+
readonly codec?: string | null | undefined;
|
|
9297
|
+
readonly duration?: number | null | undefined;
|
|
9298
|
+
readonly height?: number | null | undefined;
|
|
9299
|
+
readonly width?: number | null | undefined;
|
|
9300
|
+
} | null | undefined;
|
|
9301
|
+
readonly mp4_size?: number | null | undefined;
|
|
9302
|
+
readonly mp4_stream_url?: string | null | undefined;
|
|
9303
|
+
readonly need_convert?: boolean | undefined;
|
|
9304
|
+
readonly sender_name?: string | undefined;
|
|
9305
|
+
readonly sort_by?: "DATE_ASC" | "DATE_DESC" | "MODIFIED_ASC" | "MODIFIED_DESC" | "NAME_ASC" | "NAME_DESC" | "SIZE_ASC" | "SIZE_DESC" | "TYPE_ASC" | "TYPE_DESC" | "WATCH_ASC" | "WATCH_DESC" | undefined;
|
|
9306
|
+
readonly stream_url?: string | null | undefined;
|
|
9307
|
+
readonly video_metadata?: {
|
|
9308
|
+
readonly aspect_ratio?: number | null | undefined;
|
|
9309
|
+
readonly codec?: string | null | undefined;
|
|
9310
|
+
readonly duration?: number | null | undefined;
|
|
9311
|
+
readonly height?: number | null | undefined;
|
|
9312
|
+
readonly width?: number | null | undefined;
|
|
9313
|
+
} | null | undefined;
|
|
9314
|
+
}>;
|
|
9315
|
+
deleteExtraction: (extractionId: number) => Promise<void>;
|
|
9316
|
+
deleteMp4: (fileId: number) => Promise<void>;
|
|
9317
|
+
deleteSelection: (selection: FilesBulkSelection, options?: {
|
|
9318
|
+
readonly partialDelete?: boolean;
|
|
9319
|
+
readonly skipTrash?: boolean;
|
|
9320
|
+
} | undefined) => Promise<{
|
|
9321
|
+
readonly cursor: string | null;
|
|
9322
|
+
readonly skipped: number;
|
|
9323
|
+
readonly status: "OK";
|
|
9324
|
+
}>;
|
|
9325
|
+
delete: (ids: readonly number[], options?: {
|
|
9326
|
+
readonly ignoreFileOwner?: boolean;
|
|
9327
|
+
readonly partialDelete?: boolean;
|
|
9328
|
+
readonly skipTrash?: boolean;
|
|
9329
|
+
} | undefined) => Promise<{
|
|
9330
|
+
readonly cursor: string | null;
|
|
9331
|
+
readonly skipped: number;
|
|
9332
|
+
readonly status: "OK";
|
|
9333
|
+
}>;
|
|
9334
|
+
extract: (selection: FilesBulkSelection & {
|
|
9335
|
+
readonly password?: string;
|
|
9336
|
+
}) => Promise<readonly {
|
|
9337
|
+
readonly files: readonly number[];
|
|
9338
|
+
readonly id: number;
|
|
9339
|
+
readonly message: string | null;
|
|
9340
|
+
readonly name: string;
|
|
9341
|
+
readonly num_parts: number;
|
|
9342
|
+
readonly status: "ERROR" | "EXTRACTED" | "EXTRACTING" | "NEW" | "PASSWORD" | "PASSWORD_OBTAINED" | "SENT_TO_QUEUE";
|
|
9343
|
+
}[]>;
|
|
9344
|
+
findNext: (fileId: number, fileType: "ARCHIVE" | "AUDIO" | "FILE" | "FOLDER" | "IMAGE" | "PDF" | "SWF" | "TEXT" | "VIDEO") => Promise<{
|
|
9345
|
+
readonly id: number;
|
|
9346
|
+
readonly name: string;
|
|
9347
|
+
readonly parent_id: number | null;
|
|
9348
|
+
}>;
|
|
9349
|
+
findNextVideo: (fileId: number) => Promise<{
|
|
9350
|
+
readonly id: number;
|
|
9351
|
+
readonly name: string;
|
|
9352
|
+
readonly parent_id: number | null;
|
|
9353
|
+
}>;
|
|
9354
|
+
getApiContentUrl: (fileId: number, options?: FileDirectAccessOptions | undefined) => Promise<string>;
|
|
9355
|
+
getApiDownloadUrl: (fileId: number, options?: FileApiDownloadUrlOptions | undefined) => Promise<string>;
|
|
9356
|
+
getApiMp4DownloadUrl: (fileId: number, options?: FileApiMp4DownloadUrlOptions | undefined) => Promise<string>;
|
|
9357
|
+
getDownloadUrl: (fileId: number) => Promise<string>;
|
|
9358
|
+
getHlsStreamUrl: (fileId: number, options?: FileHlsStreamUrlOptions | undefined) => Promise<string>;
|
|
9359
|
+
getMp4Status: (fileId: number) => Promise<{
|
|
9360
|
+
readonly id: number;
|
|
9361
|
+
readonly status: "NOT_AVAILABLE";
|
|
9362
|
+
} | {
|
|
9363
|
+
readonly id: number;
|
|
9364
|
+
readonly percent_done?: number | undefined;
|
|
9365
|
+
readonly status: "IN_QUEUE";
|
|
9366
|
+
} | {
|
|
9367
|
+
readonly id: number;
|
|
9368
|
+
readonly percent_done: number;
|
|
9369
|
+
readonly status: "CONVERTING";
|
|
9370
|
+
} | {
|
|
9371
|
+
readonly id: number;
|
|
9372
|
+
readonly percent_done: number;
|
|
9373
|
+
readonly size: number;
|
|
9374
|
+
readonly status: "COMPLETED";
|
|
9375
|
+
} | {
|
|
9376
|
+
readonly id: number;
|
|
9377
|
+
readonly status: "ERROR";
|
|
9378
|
+
}>;
|
|
9379
|
+
getStartFrom: (fileId: number) => Promise<number>;
|
|
9380
|
+
list: (parent: number | "friends", query?: {
|
|
9381
|
+
readonly media_metadata?: 1 | undefined;
|
|
9382
|
+
readonly mp4_status?: 1 | undefined;
|
|
9383
|
+
readonly mp4_stream_url?: 1 | undefined;
|
|
9384
|
+
readonly stream_url?: 1 | undefined;
|
|
9385
|
+
readonly video_metadata?: 1 | undefined;
|
|
9386
|
+
readonly breadcrumbs?: 1 | undefined;
|
|
9387
|
+
readonly codecs_parent?: 1 | undefined;
|
|
9388
|
+
readonly content_type?: string | undefined;
|
|
9389
|
+
readonly file_type?: string | undefined;
|
|
9390
|
+
readonly hidden?: 1 | undefined;
|
|
9391
|
+
readonly media_info_parent?: 1 | undefined;
|
|
9392
|
+
readonly media_metadata_parent?: 1 | undefined;
|
|
9393
|
+
readonly mp4_status_parent?: 1 | undefined;
|
|
9394
|
+
readonly mp4_stream_url_parent?: 1 | undefined;
|
|
9395
|
+
readonly no_cursor?: 1 | undefined;
|
|
9396
|
+
readonly per_page?: number | undefined;
|
|
9397
|
+
readonly sort?: "DATE_ASC" | "DATE_DESC" | "MODIFIED_ASC" | "MODIFIED_DESC" | "NAME_ASC" | "NAME_DESC" | "SIZE_ASC" | "SIZE_DESC" | "TYPE_ASC" | "TYPE_DESC" | "WATCH_ASC" | "WATCH_DESC" | undefined;
|
|
9398
|
+
readonly sort_by?: "DATE_ASC" | "DATE_DESC" | "MODIFIED_ASC" | "MODIFIED_DESC" | "NAME_ASC" | "NAME_DESC" | "SIZE_ASC" | "SIZE_DESC" | "TYPE_ASC" | "TYPE_DESC" | "WATCH_ASC" | "WATCH_DESC" | undefined;
|
|
9399
|
+
readonly stream_url_parent?: 1 | undefined;
|
|
9400
|
+
readonly total?: 1 | undefined;
|
|
9401
|
+
readonly video_metadata_parent?: 1 | undefined;
|
|
9402
|
+
} | undefined) => Promise<{
|
|
9403
|
+
readonly breadcrumbs?: readonly (readonly [number, string])[] | undefined;
|
|
9404
|
+
readonly cursor: string | null;
|
|
9405
|
+
readonly files: readonly {
|
|
9406
|
+
readonly content_type: string | null;
|
|
9407
|
+
readonly created_at: string;
|
|
9408
|
+
readonly crc32: string | null;
|
|
9409
|
+
readonly extension: string | null;
|
|
9410
|
+
readonly file_type: "ARCHIVE" | "AUDIO" | "FILE" | "FOLDER" | "IMAGE" | "PDF" | "SWF" | "TEXT" | "VIDEO";
|
|
9411
|
+
readonly first_accessed_at: string | null;
|
|
9412
|
+
readonly folder_type: "REGULAR" | "SHARED_FRIEND" | "SHARED_ROOT";
|
|
9413
|
+
readonly icon: string | null;
|
|
9414
|
+
readonly id: number;
|
|
9415
|
+
readonly is_hidden: boolean;
|
|
9416
|
+
readonly is_mp4_available: boolean;
|
|
9417
|
+
readonly is_shared: boolean;
|
|
9418
|
+
readonly name: string;
|
|
9419
|
+
readonly opensubtitles_hash: string | null;
|
|
9420
|
+
readonly parent_id: number | null;
|
|
9421
|
+
readonly screenshot: string | null;
|
|
9422
|
+
readonly sha1?: string | null | undefined;
|
|
9423
|
+
readonly size: number;
|
|
9424
|
+
readonly start_from?: number | undefined;
|
|
9425
|
+
readonly updated_at: string;
|
|
9426
|
+
readonly content_type_and_codecs?: string | null | undefined;
|
|
9427
|
+
readonly media_info?: {
|
|
9428
|
+
readonly format?: {
|
|
9429
|
+
readonly bit_rate?: number | undefined;
|
|
9430
|
+
readonly duration?: number | undefined;
|
|
9431
|
+
readonly name?: string | undefined;
|
|
9432
|
+
} | null | undefined;
|
|
9433
|
+
readonly mime_type?: string | null | undefined;
|
|
9434
|
+
readonly streams?: readonly {
|
|
9435
|
+
readonly channels?: number | undefined;
|
|
9436
|
+
readonly codec_name?: string | undefined;
|
|
9437
|
+
readonly codec_type?: string | undefined;
|
|
9438
|
+
readonly height?: number | undefined;
|
|
9439
|
+
readonly level?: number | undefined;
|
|
9440
|
+
readonly profile?: string | undefined;
|
|
9441
|
+
readonly rfc6381_codec?: string | undefined;
|
|
9442
|
+
readonly width?: number | undefined;
|
|
9443
|
+
}[] | undefined;
|
|
9444
|
+
} | null | undefined;
|
|
9445
|
+
readonly media_metadata?: {
|
|
9446
|
+
readonly aspect_ratio?: number | null | undefined;
|
|
9447
|
+
readonly codec?: string | null | undefined;
|
|
9448
|
+
readonly duration?: number | null | undefined;
|
|
9449
|
+
readonly height?: number | null | undefined;
|
|
9450
|
+
readonly width?: number | null | undefined;
|
|
9451
|
+
} | null | undefined;
|
|
9452
|
+
readonly mp4_size?: number | null | undefined;
|
|
9453
|
+
readonly mp4_stream_url?: string | null | undefined;
|
|
9454
|
+
readonly need_convert?: boolean | undefined;
|
|
9455
|
+
readonly sender_name?: string | undefined;
|
|
9456
|
+
readonly sort_by?: "DATE_ASC" | "DATE_DESC" | "MODIFIED_ASC" | "MODIFIED_DESC" | "NAME_ASC" | "NAME_DESC" | "SIZE_ASC" | "SIZE_DESC" | "TYPE_ASC" | "TYPE_DESC" | "WATCH_ASC" | "WATCH_DESC" | undefined;
|
|
9457
|
+
readonly stream_url?: string | null | undefined;
|
|
9458
|
+
readonly video_metadata?: {
|
|
9459
|
+
readonly aspect_ratio?: number | null | undefined;
|
|
9460
|
+
readonly codec?: string | null | undefined;
|
|
9461
|
+
readonly duration?: number | null | undefined;
|
|
9462
|
+
readonly height?: number | null | undefined;
|
|
9463
|
+
readonly width?: number | null | undefined;
|
|
9464
|
+
} | null | undefined;
|
|
9465
|
+
}[];
|
|
9466
|
+
readonly parent: {
|
|
9467
|
+
readonly content_type: string | null;
|
|
9468
|
+
readonly created_at: string;
|
|
9469
|
+
readonly crc32: string | null;
|
|
9470
|
+
readonly extension: string | null;
|
|
9471
|
+
readonly file_type: "ARCHIVE" | "AUDIO" | "FILE" | "FOLDER" | "IMAGE" | "PDF" | "SWF" | "TEXT" | "VIDEO";
|
|
9472
|
+
readonly first_accessed_at: string | null;
|
|
9473
|
+
readonly folder_type: "REGULAR" | "SHARED_FRIEND" | "SHARED_ROOT";
|
|
9474
|
+
readonly icon: string | null;
|
|
9475
|
+
readonly id: number;
|
|
9476
|
+
readonly is_hidden: boolean;
|
|
9477
|
+
readonly is_mp4_available: boolean;
|
|
9478
|
+
readonly is_shared: boolean;
|
|
9479
|
+
readonly name: string;
|
|
9480
|
+
readonly opensubtitles_hash: string | null;
|
|
9481
|
+
readonly parent_id: number | null;
|
|
9482
|
+
readonly screenshot: string | null;
|
|
9483
|
+
readonly sha1?: string | null | undefined;
|
|
9484
|
+
readonly size: number;
|
|
9485
|
+
readonly start_from?: number | undefined;
|
|
9486
|
+
readonly updated_at: string;
|
|
9487
|
+
readonly content_type_and_codecs?: string | null | undefined;
|
|
9488
|
+
readonly media_info?: {
|
|
9489
|
+
readonly format?: {
|
|
9490
|
+
readonly bit_rate?: number | undefined;
|
|
9491
|
+
readonly duration?: number | undefined;
|
|
9492
|
+
readonly name?: string | undefined;
|
|
9493
|
+
} | null | undefined;
|
|
9494
|
+
readonly mime_type?: string | null | undefined;
|
|
9495
|
+
readonly streams?: readonly {
|
|
9496
|
+
readonly channels?: number | undefined;
|
|
9497
|
+
readonly codec_name?: string | undefined;
|
|
9498
|
+
readonly codec_type?: string | undefined;
|
|
9499
|
+
readonly height?: number | undefined;
|
|
9500
|
+
readonly level?: number | undefined;
|
|
9501
|
+
readonly profile?: string | undefined;
|
|
9502
|
+
readonly rfc6381_codec?: string | undefined;
|
|
9503
|
+
readonly width?: number | undefined;
|
|
9504
|
+
}[] | undefined;
|
|
9505
|
+
} | null | undefined;
|
|
9506
|
+
readonly media_metadata?: {
|
|
9507
|
+
readonly aspect_ratio?: number | null | undefined;
|
|
9508
|
+
readonly codec?: string | null | undefined;
|
|
9509
|
+
readonly duration?: number | null | undefined;
|
|
9510
|
+
readonly height?: number | null | undefined;
|
|
9511
|
+
readonly width?: number | null | undefined;
|
|
9512
|
+
} | null | undefined;
|
|
9513
|
+
readonly mp4_size?: number | null | undefined;
|
|
9514
|
+
readonly mp4_stream_url?: string | null | undefined;
|
|
9515
|
+
readonly need_convert?: boolean | undefined;
|
|
9516
|
+
readonly sender_name?: string | undefined;
|
|
9517
|
+
readonly sort_by?: "DATE_ASC" | "DATE_DESC" | "MODIFIED_ASC" | "MODIFIED_DESC" | "NAME_ASC" | "NAME_DESC" | "SIZE_ASC" | "SIZE_DESC" | "TYPE_ASC" | "TYPE_DESC" | "WATCH_ASC" | "WATCH_DESC" | undefined;
|
|
9518
|
+
readonly stream_url?: string | null | undefined;
|
|
9519
|
+
readonly video_metadata?: {
|
|
9520
|
+
readonly aspect_ratio?: number | null | undefined;
|
|
9521
|
+
readonly codec?: string | null | undefined;
|
|
9522
|
+
readonly duration?: number | null | undefined;
|
|
9523
|
+
readonly height?: number | null | undefined;
|
|
9524
|
+
readonly width?: number | null | undefined;
|
|
9525
|
+
} | null | undefined;
|
|
9526
|
+
} | null;
|
|
9527
|
+
readonly status: "OK";
|
|
9528
|
+
readonly total?: number | undefined;
|
|
9529
|
+
}>;
|
|
9530
|
+
listActiveConversions: () => Promise<readonly ({
|
|
9531
|
+
readonly id: number;
|
|
9532
|
+
readonly status: "NOT_AVAILABLE";
|
|
9533
|
+
readonly name: string;
|
|
9534
|
+
} | {
|
|
9535
|
+
readonly id: number;
|
|
9536
|
+
readonly percent_done?: number | undefined;
|
|
9537
|
+
readonly status: "IN_QUEUE";
|
|
9538
|
+
readonly name: string;
|
|
9539
|
+
} | {
|
|
9540
|
+
readonly id: number;
|
|
9541
|
+
readonly percent_done: number;
|
|
9542
|
+
readonly status: "CONVERTING";
|
|
9543
|
+
readonly name: string;
|
|
9544
|
+
} | {
|
|
9545
|
+
readonly id: number;
|
|
9546
|
+
readonly percent_done: number;
|
|
9547
|
+
readonly size: number;
|
|
9548
|
+
readonly status: "COMPLETED";
|
|
9549
|
+
readonly name: string;
|
|
9550
|
+
} | {
|
|
9551
|
+
readonly id: number;
|
|
9552
|
+
readonly status: "ERROR";
|
|
9553
|
+
readonly name: string;
|
|
9554
|
+
})[]>;
|
|
9555
|
+
listExtractions: () => Promise<readonly {
|
|
9556
|
+
readonly files: readonly number[];
|
|
9557
|
+
readonly id: number;
|
|
9558
|
+
readonly message: string | null;
|
|
9559
|
+
readonly name: string;
|
|
9560
|
+
readonly num_parts: number;
|
|
9561
|
+
readonly status: "ERROR" | "EXTRACTED" | "EXTRACTING" | "NEW" | "PASSWORD" | "PASSWORD_OBTAINED" | "SENT_TO_QUEUE";
|
|
9562
|
+
}[]>;
|
|
9563
|
+
listSubtitles: (fileId: number, options?: {
|
|
9564
|
+
readonly languages?: ReadonlyArray<string>;
|
|
9565
|
+
} | undefined) => Promise<{
|
|
9566
|
+
readonly default: string | null;
|
|
9567
|
+
readonly subtitles: ReadonlyArray<FileSubtitle>;
|
|
9568
|
+
}>;
|
|
9569
|
+
move: (ids: readonly number[], parentId: number) => Promise<readonly {
|
|
9570
|
+
readonly error_type: string;
|
|
9571
|
+
readonly id: number;
|
|
9572
|
+
readonly name: string | null;
|
|
9573
|
+
readonly status_code: number;
|
|
9574
|
+
}[]>;
|
|
9575
|
+
moveSelection: (selection: FilesBulkSelection, parentId: number) => Promise<readonly {
|
|
9576
|
+
readonly error_type: string;
|
|
9577
|
+
readonly id: number;
|
|
9578
|
+
readonly name: string | null;
|
|
9579
|
+
readonly status_code: number;
|
|
9580
|
+
}[]>;
|
|
9581
|
+
putMp4ToMyFiles: (fileId: number) => Promise<void>;
|
|
9582
|
+
rename: (input: {
|
|
9583
|
+
readonly file_id: number;
|
|
9584
|
+
readonly name: string;
|
|
9585
|
+
}) => Promise<{
|
|
9586
|
+
readonly status: "OK";
|
|
9587
|
+
}>;
|
|
9588
|
+
resetSortSettings: () => Promise<void>;
|
|
9589
|
+
resetStartFrom: (fileId: number) => Promise<{
|
|
9590
|
+
readonly status: "OK";
|
|
9591
|
+
}>;
|
|
9592
|
+
search: (query: {
|
|
9593
|
+
readonly per_page?: number | undefined;
|
|
9594
|
+
readonly query: string;
|
|
9595
|
+
}) => Promise<{
|
|
9596
|
+
readonly cursor: string | null;
|
|
9597
|
+
readonly files: readonly {
|
|
9598
|
+
readonly content_type: string | null;
|
|
9599
|
+
readonly created_at: string;
|
|
9600
|
+
readonly crc32: string | null;
|
|
9601
|
+
readonly extension: string | null;
|
|
9602
|
+
readonly file_type: "ARCHIVE" | "AUDIO" | "FILE" | "FOLDER" | "IMAGE" | "PDF" | "SWF" | "TEXT" | "VIDEO";
|
|
9603
|
+
readonly first_accessed_at: string | null;
|
|
9604
|
+
readonly folder_type: "REGULAR" | "SHARED_FRIEND" | "SHARED_ROOT";
|
|
9605
|
+
readonly icon: string | null;
|
|
9606
|
+
readonly id: number;
|
|
9607
|
+
readonly is_hidden: boolean;
|
|
9608
|
+
readonly is_mp4_available: boolean;
|
|
9609
|
+
readonly is_shared: boolean;
|
|
9610
|
+
readonly name: string;
|
|
9611
|
+
readonly opensubtitles_hash: string | null;
|
|
9612
|
+
readonly parent_id: number | null;
|
|
9613
|
+
readonly screenshot: string | null;
|
|
9614
|
+
readonly sha1?: string | null | undefined;
|
|
9615
|
+
readonly size: number;
|
|
9616
|
+
readonly start_from?: number | undefined;
|
|
9617
|
+
readonly updated_at: string;
|
|
9618
|
+
readonly content_type_and_codecs?: string | null | undefined;
|
|
9619
|
+
readonly media_info?: {
|
|
9620
|
+
readonly format?: {
|
|
9621
|
+
readonly bit_rate?: number | undefined;
|
|
9622
|
+
readonly duration?: number | undefined;
|
|
9623
|
+
readonly name?: string | undefined;
|
|
9624
|
+
} | null | undefined;
|
|
9625
|
+
readonly mime_type?: string | null | undefined;
|
|
9626
|
+
readonly streams?: readonly {
|
|
9627
|
+
readonly channels?: number | undefined;
|
|
9628
|
+
readonly codec_name?: string | undefined;
|
|
9629
|
+
readonly codec_type?: string | undefined;
|
|
9630
|
+
readonly height?: number | undefined;
|
|
9631
|
+
readonly level?: number | undefined;
|
|
9632
|
+
readonly profile?: string | undefined;
|
|
9633
|
+
readonly rfc6381_codec?: string | undefined;
|
|
9634
|
+
readonly width?: number | undefined;
|
|
9635
|
+
}[] | undefined;
|
|
9636
|
+
} | null | undefined;
|
|
9637
|
+
readonly media_metadata?: {
|
|
9638
|
+
readonly aspect_ratio?: number | null | undefined;
|
|
9639
|
+
readonly codec?: string | null | undefined;
|
|
9640
|
+
readonly duration?: number | null | undefined;
|
|
9641
|
+
readonly height?: number | null | undefined;
|
|
9642
|
+
readonly width?: number | null | undefined;
|
|
9643
|
+
} | null | undefined;
|
|
9644
|
+
readonly mp4_size?: number | null | undefined;
|
|
9645
|
+
readonly mp4_stream_url?: string | null | undefined;
|
|
9646
|
+
readonly need_convert?: boolean | undefined;
|
|
9647
|
+
readonly sender_name?: string | undefined;
|
|
9648
|
+
readonly sort_by?: "DATE_ASC" | "DATE_DESC" | "MODIFIED_ASC" | "MODIFIED_DESC" | "NAME_ASC" | "NAME_DESC" | "SIZE_ASC" | "SIZE_DESC" | "TYPE_ASC" | "TYPE_DESC" | "WATCH_ASC" | "WATCH_DESC" | undefined;
|
|
9649
|
+
readonly stream_url?: string | null | undefined;
|
|
9650
|
+
readonly video_metadata?: {
|
|
9651
|
+
readonly aspect_ratio?: number | null | undefined;
|
|
9652
|
+
readonly codec?: string | null | undefined;
|
|
9653
|
+
readonly duration?: number | null | undefined;
|
|
9654
|
+
readonly height?: number | null | undefined;
|
|
9655
|
+
readonly width?: number | null | undefined;
|
|
9656
|
+
} | null | undefined;
|
|
9657
|
+
}[];
|
|
9658
|
+
readonly status: "OK";
|
|
9659
|
+
readonly total: number;
|
|
9660
|
+
}>;
|
|
9661
|
+
setSort: (input: {
|
|
9662
|
+
readonly fileId: number;
|
|
9663
|
+
readonly sortBy: "DATE_ASC" | "DATE_DESC" | "MODIFIED_ASC" | "MODIFIED_DESC" | "NAME_ASC" | "NAME_DESC" | "SIZE_ASC" | "SIZE_DESC" | "TYPE_ASC" | "TYPE_DESC" | "WATCH_ASC" | "WATCH_DESC";
|
|
9664
|
+
}) => Promise<void>;
|
|
9665
|
+
setWatchStatus: (selection: FilesBulkSelection & {
|
|
9666
|
+
readonly watched: boolean;
|
|
9667
|
+
}) => Promise<void>;
|
|
9668
|
+
setStartFrom: (input: {
|
|
9669
|
+
readonly file_id: number;
|
|
9670
|
+
readonly time: number;
|
|
9671
|
+
}) => Promise<{
|
|
9672
|
+
readonly status: "OK";
|
|
9673
|
+
}>;
|
|
9674
|
+
touch: (input: {
|
|
9675
|
+
readonly fileIds: readonly number[];
|
|
9676
|
+
readonly updatedAt?: Date | undefined;
|
|
9677
|
+
}) => Promise<void>;
|
|
9678
|
+
upload: (input: FileUploadInput, options?: {
|
|
9679
|
+
readonly oauthToken?: string;
|
|
9680
|
+
} | undefined) => Promise<FileUploadResult>;
|
|
9681
|
+
createUploadFormData: typeof createFileUploadFormData;
|
|
9682
|
+
get: {
|
|
9683
|
+
(input: {
|
|
9684
|
+
readonly id: number;
|
|
9685
|
+
readonly query: {
|
|
9686
|
+
readonly stream_url: 1;
|
|
9687
|
+
readonly video_metadata: 1;
|
|
9688
|
+
};
|
|
9689
|
+
}): Promise<FileCore & {
|
|
9690
|
+
readonly stream_url: string | null;
|
|
9691
|
+
readonly video_metadata: FileVideoMetadata;
|
|
9692
|
+
}>;
|
|
9693
|
+
(input: {
|
|
9694
|
+
readonly id: number;
|
|
9695
|
+
readonly query: {
|
|
9696
|
+
readonly mp4_stream_url: 1;
|
|
9697
|
+
};
|
|
9698
|
+
}): Promise<FileCore & ({
|
|
9699
|
+
readonly is_mp4_available: true;
|
|
9700
|
+
readonly mp4_stream_url: string | null;
|
|
9701
|
+
readonly mp4_size: number | null;
|
|
9702
|
+
readonly need_convert: boolean;
|
|
9703
|
+
} | {
|
|
9704
|
+
readonly is_mp4_available: false;
|
|
9705
|
+
readonly mp4_size: number | null;
|
|
9706
|
+
readonly need_convert: boolean;
|
|
9707
|
+
})>;
|
|
9708
|
+
(input: {
|
|
9709
|
+
readonly id: number;
|
|
9710
|
+
readonly query?: FileQuery;
|
|
9711
|
+
}): Promise<FileCore>;
|
|
9712
|
+
};
|
|
9713
|
+
getChild: {
|
|
9714
|
+
(input: {
|
|
9715
|
+
readonly name: string;
|
|
9716
|
+
readonly parentId: number;
|
|
9717
|
+
}): Promise<FileCore>;
|
|
9718
|
+
<TQuery extends FileQuery>(input: {
|
|
9719
|
+
readonly name: string;
|
|
9720
|
+
readonly parentId: number;
|
|
9721
|
+
readonly query: TQuery;
|
|
9722
|
+
}): Promise<FileResponseFor<TQuery>>;
|
|
9723
|
+
};
|
|
6975
9724
|
};
|
|
6976
9725
|
};
|
|
6977
9726
|
type PutioSdkPromiseClient = ReturnType<typeof createPutioSdkPromiseClient>;
|
|
@@ -6997,4 +9746,4 @@ declare global {
|
|
|
6997
9746
|
}
|
|
6998
9747
|
//#endregion
|
|
6999
9748
|
export { Transfer as $, denyFriendRequest as $a, searchFiles as $c, linkDevice as $d, CreateAppSpecificPasswordInput as $f, RedeemPaymentVoucherError as $i, HistoryTransferCompletedEventSchema as $l, getSharingCloneInfo as $n, FileExtractionsErrorSpec as $o, PutioPathSegment as $p, getPodcastLinks as $r, GetFileChildError as $s, listTrash as $t, GiftCardLookupErrorSpec as $u, TunnelRoute as A, DenyFriendRequestErrorSpec as Aa, deleteFiles as Ac, TwoFactorRecoveryCodesSchema as Ad, OwnedOAuthAppSchema as Af, PaymentHistoryItemSchema as Ai, listFamilyInvites as Al, PutioSdkError as Am, SharedFileSchema as An, FileActiveConversionSchema as Ao, AccountSubtitleLanguageSchema as Ap, RssFeedParams as Ar, FileTouchInputSchema as As, reannounceTransfer as At, PutioJsonValue as Au, GetTransferErrorSpec as B, ListSentRequestsErrorSpec as Ba, getHlsStreamUrl as Bc, checkCodeMatch as Bd, buildOAuthAuthorizeUrl as Bf, PaymentPaddleWaitingPaymentInput as Bi, GetEventTorrentError as Bl, isPutioErrorEnvelope as Bm, SharingShareInput as Bn, FileBroadSchema as Bo, clearAccount as Bp, listRssFeeds as Br, FileVideoMetadata as Bs, ListTrashError as Bt, ClientsError as Bu, ZipSummary as C, stopPaymentSubscription as Ca, copyFile as Cc, RevokeAllOAuthClientsError as Cd, OAuthAppSessionSchema as Cf, PaymentChangePlanPreview as Ci, ListFamilyInvitesErrorSpec as Cl, PutioKnownErrorContract as Cm, PublicShare as Cn, CopyFileError as Co, AccountInfoBroadSchema as Cp, RetryRssFeedItemError as Cr, FileSortSchema as Cs, cleanTransfers as Ct, GetDownloadLinksErrorSpec as Cu, listZips as D, CountWaitingRequestsError as Da, deleteFileExtraction as Dc, RevokeOAuthGrantError as Dd, OAuthSetIconInput as Df, PaymentChangePlanSubmitResponse as Di, RemoveFamilyMemberErrorSpec as Dl, PutioOperationErrorSpec as Dm, ShareFilesError as Dn, DownloadUrlError as Do, AccountSettings as Dp, RssFeedItemFailedSchema as Dr, FileSubtitlesError as Ds, getTransferInfo as Dt, JsonValueSchema as Du, getZip as E, ApproveFriendRequestErrorSpec as Ea, createFolder as Ec, RevokeOAuthClientErrorSpec as Ed, OAuthAppWithTokenSchema as Ef, PaymentChangePlanSubmitInput as Ei, RemoveFamilyMemberError as El, PutioOperationErrorFromSpec as Em, PublicShareSchema as En, CreateFolderErrorSpec as Eo, AccountInfoResponseFor as Ep, RssFeedItem as Er, FileSubtitleSchema as Es, getTransfer as Et, JsonObjectSchema as Eu, AddTransferError as F, FriendSharedFolderError as Fa, getApiDownloadUrl as Fc, VerifyTOTPResponse as Fd, RegenerateOAuthAppTokenError as Ff, PaymentInvite as Fi, DeleteEventError as Fl, decodePutioErrorEnvelope as Fm, SharingCloneInfo as Fn, FileBase as Fo, PasInfoSchema as Fp, clearRssFeedLogs as Fr, FileUploadErrorSpec as Fs, ContinueTrashErrorSpec as Ft, readConfigWith as Fu, ReannounceTransferError as G, SearchFriendsError as Ga, listFileSubtitles as Gc, generateTOTP as Gd, queryOAuthApps as Gf, PaymentProviderNameSchema as Gi, HistoryFileSharedEvent as Gl, mapDecodeErrorToValidationError as Gm, UnshareFileErrorSpec as Gn, FileCore as Go, listAccountSubtitleLanguages as Gp, updateRssFeed as Gr, FilesListQuery as Gs, TrashContinueResponse as Gt, ForgotPasswordErrorSpec as Gu, GetTransferTorrentErrorSpec as H, ListWaitingRequestsErrorSpec as Ha, getStartFrom as Hc, exchangeOAuthAuthorizationCode as Hd, deleteOAuthApp as Hf, PaymentPlanGroupSchema as Hi, HistoryEvent as Hl, isPutioRateLimitError as Hm, SharingUnshareInput as Hn, FileConversionStatusSchema as Ho, getAccountInfo as Hp, resumeRssFeed as Hr, FileWatchStatusErrorSpec as Hs, RestoreTrashError as Ht, FamilyInviteLookupError as Hu, AddTransferErrorSpec as I, FriendSharedFolderErrorSpec as Ia, getApiMp4DownloadUrl as Ic, VerifyTOTPResponseSchema as Id, RegenerateOAuthAppTokenErrorSpec as If, PaymentInviteSchema as Ii, DeleteEventErrorSpec as Il, definePutioOperationErrorSpec as Im, SharingCloneInfoSchema as In, FileBaseSchema as Io, SaveAccountSettingsError as Ip, createRssFeed as Ir, FileUploadInput as Is, DeleteTrashError as It, setConfigKey as Iu, RemoveTransfersErrorSpec as J, SendFriendRequestErrorSpec as Ja, putMp4ToMyFiles as Jc, getFriendInvite as Jd, updateOAuthApp as Jf, PaymentTypeSchema as Ji, HistoryKnownEventTypeSchema as Jl, responseRateLimitHeaders as Jm, createPublicShare as Jn, FileExtraction as Jo, PutioAuth as Jp, PodcastLinkType as Jr, FilesMoveErrorSchema as Js, TrashListQuery as Jt, GenerateTOTPError as Ju, ReannounceTransferErrorSpec as K, SearchFriendsErrorSpec as Ka, moveFileSelection as Kc, getCode as Kd, regenerateOAuthAppToken as Kf, PaymentProviderSchema as Ki, HistoryFileSharedEventSchema as Kl, mapTransportError as Km, cloneSharedFiles as Kn, FileCreateFolderInput as Ko, saveAccountSettings as Kp, PodcastGetLinksInput as Kr, FilesListQuerySchema as Ks, TrashFile as Kt, FriendInviteLookupError as Ku, AddTransferTrackersError as L, ListFriendsError as La, getDownloadUrl as Lc, VoucherLookupError as Ld, UpdateOAuthAppError as Lf, PaymentOption as Li, EventsListQuery as Ll, fallbackPutioErrorEnvelope as Lm, SharingCloneInput as Ln, FileBreadcrumb as Lo, SaveAccountSettingsErrorSpec as Lp, deleteRssFeed as Lr, FileUploadRequestDescriptor as Ls, DeleteTrashErrorSpec as Lt, writeConfig as Lu, listTunnelRoutes as M, FriendBase as Ma, findNextFile as Mc, ValidateTokenResponseSchema as Md, PopularOAuthAppSchema as Mf, PaymentInfo as Mi, removeFamilyMember as Ml, PutioTypedErrorEnvelope as Mm, SharedFileShareSchema as Mn, FileActiveConversionsErrorSpec as Mo, AccountWarnings as Mp, RssFeedSchema as Mr, FileTypeSchema as Ms, retryTransfer as Mt, getConfigKey as Mu, AddManyTransfersError as N, FriendBaseSchema as Na, findNextVideo as Nc, VerifyTOTPError as Nd, QueryOAuthAppsError as Nf, PaymentInfoPlanSchema as Ni, ClearEventsError as Nl, PutioUnhandledSdkError as Nm, SharedFileSharedWith as Nn, FileApiDownloadUrlOptions as No, AccountWarningsSchema as Np, UpdateRssFeedError as Nr, FileUploadEnvelope as Ns, stopTransferRecording as Nt, getConfigKeyWith as Nu, ListTunnelRoutesError as O, CountWaitingRequestsErrorSpec as Oa, deleteFileMp4 as Oc, RevokeOAuthGrantErrorSpec as Od, OAuthSetIconInputSchema as Of, PaymentChangePlanSubmitSchema as Oi, createFamilyInvite as Ol, PutioOperationFailure as Om, ShareFilesErrorSpec as On, DownloadUrlErrorSpec as Oo, AccountSettingsSchema as Op, RssFeedItemSchema as Or, FileSubtitlesErrorSpec as Os, getTransferTorrent as Ot, PutioJsonObject as Ou, AddManyTransfersErrorSpec as P, FriendSchema as Pa, getApiContentUrl as Pc, VerifyTOTPErrorSpec as Pd, QueryOAuthAppsErrorSpec as Pf, PaymentInfoSchema as Pi, ClearEventsErrorSpec as Pl, PutioValidationError as Pm, SharedFileSharedWithSchema as Pn, FileApiMp4DownloadUrlOptions as Po, PasInfo as Pp, UpdateRssFeedErrorSpec as Pr, FileUploadError as Ps, ContinueTrashError as Pt, readConfig as Pu, StopRecordingTransferErrorSpec as Q, countWaitingRequests as Qa, resetStartFrom as Qc, grants as Qd, CreateAppSpecificPasswordErrorSpec as Qf, PreviewPaymentChangePlanErrorSpec as Qi, HistoryTransferCompletedEvent as Ql, getSharedWith as Qn, FileExtractionsError as Qo, PutioHttpResponse as Qp, PodcastLinksSchema as Qr, FolderTypeSchema as Qs, emptyTrash as Qt, GiftCardLookupError as Qu, AddTransferTrackersErrorSpec as R, ListFriendsErrorSpec as Ra, getFile as Rc, VoucherLookupErrorSpec as Rd, UpdateOAuthAppErrorSpec as Rf, PaymentOptionPlanTypeSchema as Ri, EventsListQuerySchema as Rl, isPutioApiError as Rm, SharingCloneInputSchema as Rn, FileBreadcrumbSchema as Ro, SaveAccountSettingsPayload as Rp, getRssFeed as Rr, FileUploadResult as Rs, EmptyTrashError as Rt, AuthGetCodeInput as Ru, ZipStatusSchema as S, reportPayments as Sa, convertFilesToMp4 as Sc, ResetPasswordErrorSpec as Sd, OAuthAppSession as Sf, ListPaymentPlansErrorSpec as Si, ListFamilyInvitesError as Sl, PutioErrorEnvelopeSchema as Sm, ListSharedFilesErrorSpec as Sn, ContinueFilesErrorSpec as So, AccountInfoBroad as Sp, RetryAllRssFeedItemsErrorSpec as Sr, FileSort as Ss, cancelTransfers as St, GetDownloadLinksError as Su, createZip as T, ApproveFriendRequestError as Ta, createFileUploadRequest as Tc, RevokeOAuthClientError as Td, OAuthAppUpdateInputSchema as Tf, PaymentChangePlanPreviewSchema as Ti, ListFamilyMembersErrorSpec as Tl, PutioOperationError as Tm, PublicShareListQuerySchema as Tn, CreateFolderError as To, AccountInfoQuerySchema as Tp, RssFeed as Tr, FileSubtitle as Ts, countTransfers as Tt, getDownloadLinks as Tu, ListTransfersError as U, RemoveFriendError as Ua, listActiveMp4Conversions as Uc, exists as Ud, getOAuthApp as Uf, PaymentPlanTypeSchema as Ui, HistoryEventSchema as Ul, makeResponseError as Um, SharingUnshareInputSchema as Un, FileCopyInput as Uo, getAccountSettings as Up, retryAllRssFeedItems as Ur, FilesBulkSelection as Us, RestoreTrashErrorSpec as Ut, FamilyInviteLookupErrorSpec as Uu, GetTransferTorrentError as V, ListWaitingRequestsError as Va, getMp4Status as Vc, clients as Vd, createOAuthApp as Vf, PaymentPlanGroup as Vi, GetEventTorrentErrorSpec as Vl, isPutioOperationError as Vm, SharingShareInputSchema as Vn, FileConversionStatus as Vo, destroyAccount as Vp, pauseRssFeed as Vr, FileWatchStatusError as Vs, ListTrashErrorSpec as Vt, ClientsErrorSpec as Vu, ListTransfersErrorSpec as W, RemoveFriendErrorSpec as Wa, listFileExtractions as Wc, forgotPassword as Wd, getPopularOAuthApps as Wf, PaymentProvider as Wi, HistoryFileFromRssDeletedEventSchema as Wl, mapConfigurationError as Wm, UnshareFileError as Wn, FileCopyInputSchema as Wo, listAccountConfirmations as Wp, retryRssFeedItem as Wr, FilesListEnvelopeSchema as Ws, TrashBulkInput as Wt, ForgotPasswordError as Wu, RetryTransferErrorSpec as X, UserSearchResultSchema as Xa, renameFile as Xc, getRecoveryCodes as Xd, AppSpecificPasswordSchema as Xf, PaymentVoucherInfoSchema as Xi, HistoryRssFilterPausedEventSchema as Xl, getPublicShare as Xn, FileExtractionStatus as Xo, PutioHttpClientShape as Xp, PodcastLinks as Xr, FilesSearchQuerySchema as Xs, continueTrash as Xt, GenerateTOTPResponse as Xu, RetryTransferError as Y, UserSearchResult as Ya, queryFiles as Yc, getGiftCard as Yd, AppSpecificPassword as Yf, PaymentVoucherInfo as Yi, HistoryPrivateTorrentPinEventSchema as Yl, withOperationErrors as Ym, deletePublicShare as Yn, FileExtractionSchema as Yo, PutioHttpClient as Yp, PodcastLinkTypeSchema as Yr, FilesSearchQuery as Ys, TrashListResponse as Yt, GenerateTOTPErrorSpec as Yu, StopRecordingTransferError as Z, approveFriendRequest as Za, resetFileSortSettings as Zc, getVoucher as Zd, CreateAppSpecificPasswordError as Zf, PreviewPaymentChangePlanError as Zi, HistoryTransferCallbackErrorEventSchema as Zl, getPublicShareFileUrl as Zn, FileExtractionStatusSchema as Zo, PutioHttpRequest as Zp, PodcastLinksResponse as Zr, FolderType as Zs, deleteTrash as Zt, GenerateTOTPResponseSchema as Zu, GetZipErrorSpec as _, listPaymentInvites as _a, canWriteFile as _c, RegisterError as _d, MyOAuthAppSchema as _f, ListPaymentInvitesError as _i, FamilyInvitesResponse as _l, AnyPutioOperationError as _m, ListPublicShareFilesError as _n, createFriendInvite as _o, AccountConfirmationsErrorSpec as _p, PauseRssFeedError as _r, FileRenameInput as _s, TransfersListQuerySchema as _t, DownloadLinksInfoSchema as _u, PutioSdkEffectClient as a, SubmitPaymentChangePlanError as aa, RenameFileError as ac, LoginErrorSpec as ad, revokeAllClients as af, CreatePaddleBillingUpdatePaymentMethodTransactionError as ai, GetIftttStatusError as al, buildPutioUrl as am, CreateSharingCloneError as an, searchFriends as ao, DeleteAppSpecificPasswordErrorSpec as ap, ClearRssFeedLogsError as ar, FileMediaInfo as as, TransferInfoItem as at, HistoryZipCreatedEventSchema as au, ZipCreateResponse as b, previewPaymentChangePlan as ba, convertFileSelectionToMp4 as bc, RegisterInputSchema as bd, OAuthAppCreateInputSchema as bf, ListPaymentOptionsErrorSpec as bi, JoinFamilyError as bl, PutioConfigurationError as bm, ListPublicSharesErrorSpec as bn, CanWriteFileErrorSpec as bo, AccountInfoBase as bp, ResumeRssFeedErrorSpec as br, FileSetSortInput as bs, addTransfer as bt, DownloadLinksStatus as bu, createPutioSdkPromiseClient as c, classifyPaymentChangePlanResponse as ca, SearchFilesErrorSpec as cc, LoginResponseSchema as cd, validateToken as cf, CreatePaddleWaitingPaymentErrorSpec as ci, IftttEventType as cl, makePutioFetchLayer as cm, DeletePublicShareErrorSpec as cn, CreateFriendInviteErrorSpec as co, createAppSpecificPassword as cp, CreateRssFeedErrorSpec as cr, FileMediaInfoStreamSchema as cs, TransferRemoveInputSchema as ct, clearEvents as cu, CancelZipError as d, createPaddleBillingUpdatePaymentMethodTransaction as da, TouchFilesError as dc, OAuthAuthorizationCodeExchangeInput as dd, CreateOAuthAppErrorSpec as df, GetPaymentInfoError as di, getIftttStatus as dl, makePutioSdkLiveLayer as dm, GetPublicShareFileUrlError as dn, FriendInviteJoinedUserSchema as do, listAppSpecificPasswords as dp, GetRssFeedError as dr, FileMp4Error as ds, TransferStatusSchema as dt, listEvents as du, RedeemPaymentVoucherErrorSpec as ea, GetFileChildErrorSpec as ec, GrantsError as ed, login as ef, ClassifiedPaymentChangePlanSubmitResponse as ei, setFileSort as el, PutioQuery as em, restoreTrash as en, getFriendSharedFolder as eo, CreateAppSpecificPasswordInputSchema as ep, listPublicShareFiles as er, FileGetChildInput as es, TransferAddInput as et, HistoryTransferErrorEventSchema as eu, CancelZipErrorSpec as f, createPaddleWaitingPayment as fa, TouchFilesErrorSpec as fc, OAuthAuthorizationCodeExchangeInputSchema as fd, DeleteOAuthAppError as ff, GetPaymentInfoErrorSpec as fi, sendIftttEvent as fl, requestArrayBuffer as fm, GetPublicShareFileUrlErrorSpec as fn, FriendInviteJoinedUserStatus as fo, AccountClearOptions as fp, GetRssFeedErrorSpec as fr, FileMp4ErrorSpec as fs, TransferType as ft, CreateDownloadLinksError as fu, GetZipError as g, listPaymentHistory as ga, buildFileHlsStreamUrl as gc, RegenerateRecoveryCodesErrorSpec as gd, MyOAuthApp as gf, ListPaymentHistoryErrorSpec as gi, FamilyInviteSchema as gl, selectJsonFields as gm, GetSharingCloneInfoErrorSpec as gn, ListFriendInvitesErrorSpec as go, AccountConfirmationsError as gp, ListRssFeedsErrorSpec as gr, FileQuerySchema as gs, TransfersListQuery as gt, DownloadLinksInfo as gu, CreateZipInput as h, getPaymentVoucherInfo as ha, buildFileApiMp4DownloadUrl as hc, RegenerateRecoveryCodesError as hd, GetOAuthAppErrorSpec as hf, ListPaymentHistoryError as hi, FamilyInvite as hl, selectJsonField as hm, GetSharingCloneInfoError as hn, ListFriendInvitesError as ho, AccountConfirmationSchema as hp, ListRssFeedsError as hr, FileQuery as hs, TransfersContinueResponse as ht, DownloadLinksCreateInputSchema as hu, PutioSdk as i, StopSubscriptionErrorSpec as ia, QueryFilesErrorSpec as ic, LoginError as id, resetPassword as if, CreateOpenNodeChargeErrorSpec as ii, uploadFile as il, PutioSdkContext as im, CreatePublicShareErrorSpec as in, removeFriend as io, DeleteAppSpecificPasswordError as ip, unshareFile as ir, FileListResponse as is, TransferBaseSchema as it, HistoryZipCreatedEvent as iu, TunnelRouteSchema as j, Friend as ja, extractFiles as jc, ValidateTokenResponse as jd, PopularOAuthApp as jf, PaymentHistoryQuery as ji, listFamilyMembers as jl, PutioTransportError as jm, SharedFileShare as jn, FileActiveConversionsError as jo, AccountTwoFactorSettingsSchema as jp, RssFeedParamsSchema as jr, FileType as js, removeTransfers as jt, deleteConfigKey as ju, ListTunnelRoutesErrorSpec as k, DenyFriendRequestError as ka, deleteFileSelection as kc, TwoFactorRecoveryCodes as kd, OwnedOAuthApp as kf, PaymentHistoryItem as ki, joinFamily as kl, PutioRateLimitError as km, SharedFile as kn, FileActiveConversion as ko, AccountSubtitleLanguage as kp, RssFeedItemSucceededSchema as kr, FileTouchInput as ks, listTransfers as kt, PutioJsonPrimitive as ku, makePutioSdkEffectClientLayer as l, confirmFastspringOrder as la, StartFromError as lc, OAuthAuthorizationCodeExchangeError as ld, verifyTOTP as lf, GetPaddleBillingInvoiceUrlError as li, SendIftttEventError as ll, makePutioSdkConfig as lm, GetPublicShareError as ln, FriendInvite as lo, deleteAllAppSpecificPasswords as lp, DeleteRssFeedError as lr, FileMediaMetadata as ls, TransferSchema as lt, deleteEvent as lu, CreateZipErrorSpec as m, getPaymentInfo as ma, buildFileApiDownloadUrl as mc, RecoveryCodesErrorSpec as md, GetOAuthAppError as mf, GetPaymentVoucherInfoErrorSpec as mi, CreateFamilyInviteErrorSpec as ml, requestVoid as mm, GetSharedWithErrorSpec as mn, FriendInviteSchema as mo, AccountConfirmation as mp, ListRssFeedItemsErrorSpec as mr, FileMp4MutationErrorSpec as ms, TransfersAddMultiError as mt, DownloadLinksCreateInput as mu, DEFAULT_PUTIO_UPLOAD_BASE_URL as n, ReportPaymentsErrorSpec as na, GetFileErrorSpec as nc, LinkDeviceError as nd, regenerateRecoveryCodes as nf, ConfirmFastspringOrderErrorSpec as ni, setStartFrom as nl, PutioSdkConfig as nm, ContinuePublicShareFilesErrorSpec as nn, listSentRequests as no, DeleteAllAppSpecificPasswordsError as np, listSharedFiles as nr, FileHlsStreamUrlOptions as ns, TransferAddTrackersInput as nt, HistoryUploadEventSchema as nu, PutioSdkPromiseClient as o, SubmitPaymentChangePlanErrorSpec as oa, RenameFileErrorSpec as oc, LoginInput as od, revokeApp as of, CreatePaddleBillingUpdatePaymentMethodTransactionErrorSpec as oi, GetIftttStatusErrorSpec as ol, encodePathSegment as om, CreateSharingCloneErrorSpec as on, sendFriendRequest as oo, ListAppSpecificPasswordsError as op, ClearRssFeedLogsErrorSpec as or, FileMediaInfoFormatSchema as os, TransferLink as ot, ListEventsError as ou, CreateZipError as p, getPaddleBillingInvoiceUrl as pa, buildFileApiContentUrl as pc, RecoveryCodesError as pd, DeleteOAuthAppErrorSpec as pf, GetPaymentVoucherInfoError as pi, CreateFamilyInviteError as pl, requestJson as pm, GetSharedWithError as pn, FriendInviteJoinedUserStatusSchema as po, AccountClearOptionsSchema as pp, ListRssFeedItemsError as pr, FileMp4MutationError as ps, TransferTypeSchema as pt, CreateDownloadLinksErrorSpec as pu, RemoveTransfersError as q, SendFriendRequestError as qa, moveFiles as qc, getFamilyInvite as qd, setOAuthAppIcon as qf, PaymentSubscriptionInfoSchema as qi, HistoryKnownEventType as ql, parseErrorBody as qm, continuePublicShareFiles as qn, FileDirectAccessOptions as qo, OkResponseSchema as qp, PodcastGetLinksInputSchema as qr, FilesMoveError as qs, TrashFileSchema as qt, FriendInviteLookupErrorSpec as qu, DEFAULT_PUTIO_WEB_APP_URL as r, StopSubscriptionError as ra, QueryFilesError as rc, LinkDeviceErrorSpec as rd, register as rf, CreateOpenNodeChargeError as ri, touchFiles as rl, PutioSdkConfigShape as rm, CreatePublicShareError as rn, listWaitingRequests as ro, DeleteAllAppSpecificPasswordsErrorSpec as rp, shareFiles as rr, FileListContinuationResponse as rs, TransferAddTrackersInputSchema as rt, HistoryVoucherEventSchema as ru, createPutioSdkEffectClient as s, UserSubscriptionStatusSchema as sa, SearchFilesError as sc, LoginResponse as sd, revokeClient as sf, CreatePaddleWaitingPaymentError as si, IftttEventInput as sl, makePutioFetchClient as sm, DeletePublicShareError as sn, CreateFriendInviteError as so, ListAppSpecificPasswordsErrorSpec as sp, CreateRssFeedError as sr, FileMediaInfoSchema as ss, TransferRemoveInput as st, ListEventsErrorSpec as su, DEFAULT_PUTIO_API_BASE_URL as t, ReportPaymentsError as ta, GetFileError as tc, GrantsErrorSpec as td, logout as tf, ConfirmFastspringOrderError as ti, setFilesWatchStatus as tl, PutioQueryValue as tm, ContinuePublicShareFilesError as tn, listFriends as to, CreateAppSpecificPasswordResult as tp, listPublicShares as tr, FileGetChildInputSchema as ts, TransferAddInputSchema as tt, HistoryTransferFromRssErrorEventSchema as tu, makePutioSdkLiveClientLayer as u, createOpenNodeCharge as ua, StartFromErrorSpec as uc, OAuthAuthorizationCodeExchangeErrorCodeSchema as ud, CreateOAuthAppError as uf, GetPaddleBillingInvoiceUrlErrorSpec as ui, SendIftttEventErrorSpec as ul, makePutioSdkLayer as um, GetPublicShareErrorSpec as un, FriendInviteJoinedUser as uo, deleteAppSpecificPassword as up, DeleteRssFeedErrorSpec as ur, FileMediaMetadataSchema as us, TransferStatus as ut, getEventTorrent as uu, ListZipsError as v, listPaymentOptions as va, continueFiles as vc, RegisterErrorSpec as vd, OAuthApp as vf, ListPaymentInvitesErrorSpec as vi, FamilyMember as vl, PutioApiError as vm, ListPublicShareFilesErrorSpec as vn, listFriendInvites as vo, AccountDisk as vp, PauseRssFeedErrorSpec as vr, FileResponseFor as vs, TransfersListResponse as vt, DownloadLinksPayload as vu, cancelZip as w, submitPaymentChangePlan as wa, createFileUploadFormData as wc, RevokeAllOAuthClientsErrorSpec as wd, OAuthAppUpdateInput as wf, PaymentChangePlanPreviewInput as wi, ListFamilyMembersError as wl, PutioKnownOperationErrorContract as wm, PublicShareListQuery as wn, CopyFileErrorSpec as wo, AccountInfoQuery as wp, RetryRssFeedItemErrorSpec as wr, FileStartFromSetInput as ws, continueTransfers as wt, createDownloadLinks as wu, ZipInfo as x, redeemPaymentVoucher as xa, convertFileToMp4 as xc, ResetPasswordError as xd, OAuthAppSchema as xf, ListPaymentPlansError as xi, JoinFamilyErrorSpec as xl, PutioErrorEnvelope as xm, ListSharedFilesError as xn, ContinueFilesError as xo, AccountInfoBaseSchema as xp, RetryAllRssFeedItemsError as xr, FileSetSortInputSchema as xs, addTransferTrackers as xt, DownloadLinksStatusSchema as xu, ListZipsErrorSpec as y, listPaymentPlans as ya, continueSearch as yc, RegisterInput as yd, OAuthAppCreateInput as yf, ListPaymentOptionsError as yi, FamilyMemberSchema as yl, PutioAuthError as ym, ListPublicSharesError as yn, CanWriteFileError as yo, AccountDiskSchema as yp, ResumeRssFeedError as yr, FileSearchResponse as ys, addManyTransfers as yt, DownloadLinksPayloadSchema as yu, GetTransferError as z, ListSentRequestsError as za, getFileChild as zc, buildAuthLoginUrl as zd, buildOAuthAppIconUrl as zf, PaymentOptionSchema as zi, EventsListResponse as zl, isPutioAuthError as zm, SharingCloneStatusSchema as zn, FileBroad as zo, SaveAccountSettingsPayloadSchema as zp, listRssFeedItems as zr, FileUploadTransfer as zs, EmptyTrashErrorSpec as zt, AuthorizationCodeSchema as zu };
|
|
7000
|
-
//# sourceMappingURL=index-
|
|
9749
|
+
//# sourceMappingURL=index-93hWYV6K.d.ts.map
|