@putdotio/sdk 11.0.2 → 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 +241 -415
- package/dist/index.js.map +1 -1
- package/dist/utilities.d.ts +1 -1
- package/package.json +3 -2
package/dist/index.js
CHANGED
|
@@ -5434,242 +5434,282 @@ const provideSdk = async (state, effect) => {
|
|
|
5434
5434
|
return rejectWithSdkFailure(await getPromiseClientRuntime(state).runPromiseExit(operation));
|
|
5435
5435
|
};
|
|
5436
5436
|
const snapshotUrl = (value) => typeof value === "string" || value === void 0 ? value : new URL(value.href);
|
|
5437
|
-
const
|
|
5437
|
+
const operationEntryMarker = Symbol("PutioSdkOperationEntry");
|
|
5438
|
+
const operationAtBoundary = (run, boundary) => {
|
|
5439
|
+
const entry = {
|
|
5440
|
+
boundary,
|
|
5441
|
+
run
|
|
5442
|
+
};
|
|
5443
|
+
Object.defineProperty(entry, operationEntryMarker, { value: true });
|
|
5444
|
+
return Object.freeze(entry);
|
|
5445
|
+
};
|
|
5446
|
+
const inputFree = (operation) => operationAtBoundary(operation, "input-free");
|
|
5447
|
+
const pure = (operation) => operationAtBoundary(operation, "pure");
|
|
5448
|
+
const validated = (operation) => operationAtBoundary(operation, "validated");
|
|
5449
|
+
const isOperationEntry = (value) => typeof value === "object" && value !== null && Object.getPrototypeOf(value) === Object.prototype && Object.isFrozen(value) && Object.hasOwn(value, operationEntryMarker) && value[operationEntryMarker] === true && Object.hasOwn(value, "boundary") && Object.hasOwn(value, "run") && Reflect.ownKeys(value).length === 3 && (value.boundary === "input-free" || value.boundary === "pure" || value.boundary === "validated") && typeof value.run === "function";
|
|
5450
|
+
const runClassifiedOperation = (entry, args) => {
|
|
5451
|
+
const result = Reflect.apply(entry.run, void 0, args);
|
|
5452
|
+
if (entry.boundary === "pure") {
|
|
5453
|
+
if (Effect.isEffect(result)) throw new TypeError("Pure SDK operation returned an Effect");
|
|
5454
|
+
return result;
|
|
5455
|
+
}
|
|
5456
|
+
if (!Effect.isEffect(result)) throw new TypeError(`${entry.boundary} SDK operation did not return an Effect`);
|
|
5457
|
+
return result;
|
|
5458
|
+
};
|
|
5459
|
+
const cloneOperationTree = (tree) => Object.fromEntries(Object.entries(tree).map(([key, value]) => [key, isOperationEntry(value) ? value.run : cloneOperationTree(value)]));
|
|
5460
|
+
const runPromiseOperation = (entry, state, args) => {
|
|
5461
|
+
const result = runClassifiedOperation(entry, args);
|
|
5462
|
+
return entry.boundary === "pure" ? result : provideSdk(state, result);
|
|
5463
|
+
};
|
|
5464
|
+
const makePromiseOperationTree = (tree, state) => Object.fromEntries(Object.entries(tree).map(([key, value]) => [key, isOperationEntry(value) ? (...args) => runPromiseOperation(value, state, args) : makePromiseOperationTree(value, state)]));
|
|
5465
|
+
const assertClassifiedOperationTree = (tree, parentPath = "") => {
|
|
5466
|
+
const entries = Object.entries(tree);
|
|
5467
|
+
if (Object.getPrototypeOf(tree) !== Object.prototype || entries.length === 0) throw new TypeError(`SDK operation namespace ${parentPath || "<root>"} is not a non-empty plain object`);
|
|
5468
|
+
for (const [key, value] of entries) {
|
|
5469
|
+
const path = parentPath ? `${parentPath}.${key}` : key;
|
|
5470
|
+
if (isOperationEntry(value)) continue;
|
|
5471
|
+
if (typeof value === "object" && value !== null) assertClassifiedOperationTree(value, path);
|
|
5472
|
+
else throw new TypeError(`SDK operation ${path} has no request-boundary classification`);
|
|
5473
|
+
}
|
|
5474
|
+
};
|
|
5475
|
+
const sharedOperationTree = {
|
|
5438
5476
|
account: {
|
|
5439
5477
|
appSpecificPasswords: {
|
|
5440
|
-
create: createAppSpecificPassword,
|
|
5441
|
-
delete: deleteAppSpecificPassword,
|
|
5442
|
-
deleteAll: deleteAllAppSpecificPasswords,
|
|
5443
|
-
list: listAppSpecificPasswords
|
|
5444
|
-
},
|
|
5445
|
-
clear: clearAccount,
|
|
5446
|
-
destroy: destroyAccount,
|
|
5447
|
-
getInfo: getAccountInfo,
|
|
5448
|
-
getSettings: getAccountSettings,
|
|
5449
|
-
listSubtitleLanguages: listAccountSubtitleLanguages,
|
|
5450
|
-
listConfirmations: listAccountConfirmations,
|
|
5451
|
-
saveSettings: saveAccountSettings
|
|
5478
|
+
create: validated(createAppSpecificPassword),
|
|
5479
|
+
delete: validated(deleteAppSpecificPassword),
|
|
5480
|
+
deleteAll: inputFree(deleteAllAppSpecificPasswords),
|
|
5481
|
+
list: inputFree(listAppSpecificPasswords)
|
|
5482
|
+
},
|
|
5483
|
+
clear: validated(clearAccount),
|
|
5484
|
+
destroy: validated(destroyAccount),
|
|
5485
|
+
getInfo: validated(getAccountInfo),
|
|
5486
|
+
getSettings: inputFree(getAccountSettings),
|
|
5487
|
+
listSubtitleLanguages: inputFree(listAccountSubtitleLanguages),
|
|
5488
|
+
listConfirmations: validated(listAccountConfirmations),
|
|
5489
|
+
saveSettings: validated(saveAccountSettings)
|
|
5452
5490
|
},
|
|
5453
5491
|
auth: {
|
|
5454
|
-
buildLoginUrl: buildAuthLoginUrl,
|
|
5455
|
-
checkCodeMatch,
|
|
5456
|
-
clients,
|
|
5457
|
-
exchangeAuthorizationCode: exchangeOAuthAuthorizationCode,
|
|
5458
|
-
exists,
|
|
5459
|
-
forgotPassword,
|
|
5460
|
-
getCode,
|
|
5461
|
-
getFamilyInvite,
|
|
5462
|
-
getFriendInvite,
|
|
5463
|
-
getGiftCard,
|
|
5464
|
-
getVoucher,
|
|
5465
|
-
grants,
|
|
5466
|
-
linkDevice,
|
|
5467
|
-
login,
|
|
5468
|
-
logout,
|
|
5469
|
-
register,
|
|
5470
|
-
resetPassword,
|
|
5471
|
-
revokeAllClients,
|
|
5472
|
-
revokeApp,
|
|
5473
|
-
revokeClient,
|
|
5492
|
+
buildLoginUrl: pure(buildAuthLoginUrl),
|
|
5493
|
+
checkCodeMatch: validated(checkCodeMatch),
|
|
5494
|
+
clients: inputFree(clients),
|
|
5495
|
+
exchangeAuthorizationCode: validated(exchangeOAuthAuthorizationCode),
|
|
5496
|
+
exists: validated(exists),
|
|
5497
|
+
forgotPassword: validated(forgotPassword),
|
|
5498
|
+
getCode: validated(getCode),
|
|
5499
|
+
getFamilyInvite: validated(getFamilyInvite),
|
|
5500
|
+
getFriendInvite: validated(getFriendInvite),
|
|
5501
|
+
getGiftCard: validated(getGiftCard),
|
|
5502
|
+
getVoucher: validated(getVoucher),
|
|
5503
|
+
grants: inputFree(grants),
|
|
5504
|
+
linkDevice: validated(linkDevice),
|
|
5505
|
+
login: validated(login),
|
|
5506
|
+
logout: inputFree(logout),
|
|
5507
|
+
register: validated(register),
|
|
5508
|
+
resetPassword: validated(resetPassword),
|
|
5509
|
+
revokeAllClients: inputFree(revokeAllClients),
|
|
5510
|
+
revokeApp: validated(revokeApp),
|
|
5511
|
+
revokeClient: validated(revokeClient),
|
|
5474
5512
|
twoFactor: {
|
|
5475
|
-
generateTOTP,
|
|
5476
|
-
getRecoveryCodes,
|
|
5477
|
-
regenerateRecoveryCodes,
|
|
5478
|
-
verifyTOTP
|
|
5513
|
+
generateTOTP: inputFree(generateTOTP),
|
|
5514
|
+
getRecoveryCodes: inputFree(getRecoveryCodes),
|
|
5515
|
+
regenerateRecoveryCodes: inputFree(regenerateRecoveryCodes),
|
|
5516
|
+
verifyTOTP: validated(verifyTOTP)
|
|
5479
5517
|
},
|
|
5480
|
-
validateToken
|
|
5518
|
+
validateToken: validated(validateToken)
|
|
5481
5519
|
},
|
|
5482
5520
|
config: {
|
|
5483
|
-
deleteKey: deleteConfigKey,
|
|
5484
|
-
getKey: getConfigKey,
|
|
5485
|
-
getKeyWith: getConfigKeyWith,
|
|
5486
|
-
read: readConfig,
|
|
5487
|
-
readWith: readConfigWith,
|
|
5488
|
-
setKey: setConfigKey,
|
|
5489
|
-
write: writeConfig
|
|
5521
|
+
deleteKey: validated(deleteConfigKey),
|
|
5522
|
+
getKey: validated(getConfigKey),
|
|
5523
|
+
getKeyWith: validated(getConfigKeyWith),
|
|
5524
|
+
read: inputFree(readConfig),
|
|
5525
|
+
readWith: validated(readConfigWith),
|
|
5526
|
+
setKey: validated(setConfigKey),
|
|
5527
|
+
write: validated(writeConfig)
|
|
5490
5528
|
},
|
|
5491
5529
|
downloadLinks: {
|
|
5492
|
-
create: createDownloadLinks,
|
|
5493
|
-
get: getDownloadLinks
|
|
5530
|
+
create: validated(createDownloadLinks),
|
|
5531
|
+
get: validated(getDownloadLinks)
|
|
5494
5532
|
},
|
|
5495
5533
|
events: {
|
|
5496
|
-
clear: clearEvents,
|
|
5497
|
-
delete: deleteEvent,
|
|
5498
|
-
getTorrent: getEventTorrent,
|
|
5499
|
-
list: listEvents
|
|
5534
|
+
clear: inputFree(clearEvents),
|
|
5535
|
+
delete: validated(deleteEvent),
|
|
5536
|
+
getTorrent: validated(getEventTorrent),
|
|
5537
|
+
list: validated(listEvents)
|
|
5500
5538
|
},
|
|
5501
5539
|
family: {
|
|
5502
|
-
createInvite: createFamilyInvite,
|
|
5503
|
-
join: joinFamily,
|
|
5504
|
-
listInvites: listFamilyInvites,
|
|
5505
|
-
listMembers: listFamilyMembers,
|
|
5506
|
-
removeMember: removeFamilyMember
|
|
5540
|
+
createInvite: inputFree(createFamilyInvite),
|
|
5541
|
+
join: validated(joinFamily),
|
|
5542
|
+
listInvites: inputFree(listFamilyInvites),
|
|
5543
|
+
listMembers: inputFree(listFamilyMembers),
|
|
5544
|
+
removeMember: validated(removeFamilyMember)
|
|
5507
5545
|
},
|
|
5508
5546
|
ifttt: {
|
|
5509
|
-
getStatus: getIftttStatus,
|
|
5510
|
-
sendEvent: sendIftttEvent
|
|
5547
|
+
getStatus: inputFree(getIftttStatus),
|
|
5548
|
+
sendEvent: validated(sendIftttEvent)
|
|
5511
5549
|
},
|
|
5512
|
-
podcast: { getLinks: getPodcastLinks },
|
|
5550
|
+
podcast: { getLinks: validated(getPodcastLinks) },
|
|
5513
5551
|
files: {
|
|
5514
|
-
canWrite: canWriteFile,
|
|
5515
|
-
continue: continueFiles,
|
|
5516
|
-
continueSearch,
|
|
5517
|
-
copy: copyFile,
|
|
5518
|
-
convertToMp4: convertFileToMp4,
|
|
5519
|
-
convertManyToMp4: convertFilesToMp4,
|
|
5520
|
-
convertSelectionToMp4: convertFileSelectionToMp4,
|
|
5521
|
-
createUploadRequest: createFileUploadRequest,
|
|
5522
|
-
createFolder,
|
|
5523
|
-
deleteExtraction: deleteFileExtraction,
|
|
5524
|
-
deleteMp4: deleteFileMp4,
|
|
5525
|
-
deleteSelection: deleteFileSelection,
|
|
5526
|
-
delete: deleteFiles,
|
|
5527
|
-
extract: extractFiles,
|
|
5528
|
-
findNext: findNextFile,
|
|
5529
|
-
findNextVideo,
|
|
5530
|
-
getApiContentUrl,
|
|
5531
|
-
getApiDownloadUrl,
|
|
5532
|
-
getApiMp4DownloadUrl,
|
|
5533
|
-
get: getFile,
|
|
5534
|
-
getChild: getFileChild,
|
|
5535
|
-
getDownloadUrl,
|
|
5536
|
-
getHlsStreamUrl,
|
|
5537
|
-
getMp4Status,
|
|
5538
|
-
getStartFrom,
|
|
5539
|
-
list: queryFiles,
|
|
5540
|
-
listActiveConversions: listActiveMp4Conversions,
|
|
5541
|
-
listExtractions: listFileExtractions,
|
|
5542
|
-
listSubtitles: listFileSubtitles,
|
|
5543
|
-
move: moveFiles,
|
|
5544
|
-
moveSelection: moveFileSelection,
|
|
5545
|
-
putMp4ToMyFiles,
|
|
5546
|
-
rename: renameFile,
|
|
5547
|
-
resetSortSettings: resetFileSortSettings,
|
|
5548
|
-
resetStartFrom,
|
|
5549
|
-
search: searchFiles,
|
|
5550
|
-
setSort: setFileSort,
|
|
5551
|
-
setWatchStatus: setFilesWatchStatus,
|
|
5552
|
-
setStartFrom,
|
|
5553
|
-
touch: touchFiles,
|
|
5554
|
-
upload: uploadFile
|
|
5552
|
+
canWrite: validated(canWriteFile),
|
|
5553
|
+
continue: validated(continueFiles),
|
|
5554
|
+
continueSearch: validated(continueSearch),
|
|
5555
|
+
copy: validated(copyFile),
|
|
5556
|
+
convertToMp4: validated(convertFileToMp4),
|
|
5557
|
+
convertManyToMp4: validated(convertFilesToMp4),
|
|
5558
|
+
convertSelectionToMp4: validated(convertFileSelectionToMp4),
|
|
5559
|
+
createUploadRequest: validated(createFileUploadRequest),
|
|
5560
|
+
createFolder: validated(createFolder),
|
|
5561
|
+
deleteExtraction: validated(deleteFileExtraction),
|
|
5562
|
+
deleteMp4: validated(deleteFileMp4),
|
|
5563
|
+
deleteSelection: validated(deleteFileSelection),
|
|
5564
|
+
delete: validated(deleteFiles),
|
|
5565
|
+
extract: validated(extractFiles),
|
|
5566
|
+
findNext: validated(findNextFile),
|
|
5567
|
+
findNextVideo: validated(findNextVideo),
|
|
5568
|
+
getApiContentUrl: validated(getApiContentUrl),
|
|
5569
|
+
getApiDownloadUrl: validated(getApiDownloadUrl),
|
|
5570
|
+
getApiMp4DownloadUrl: validated(getApiMp4DownloadUrl),
|
|
5571
|
+
get: validated(getFile),
|
|
5572
|
+
getChild: validated(getFileChild),
|
|
5573
|
+
getDownloadUrl: validated(getDownloadUrl),
|
|
5574
|
+
getHlsStreamUrl: validated(getHlsStreamUrl),
|
|
5575
|
+
getMp4Status: validated(getMp4Status),
|
|
5576
|
+
getStartFrom: validated(getStartFrom),
|
|
5577
|
+
list: validated(queryFiles),
|
|
5578
|
+
listActiveConversions: inputFree(listActiveMp4Conversions),
|
|
5579
|
+
listExtractions: inputFree(listFileExtractions),
|
|
5580
|
+
listSubtitles: validated(listFileSubtitles),
|
|
5581
|
+
move: validated(moveFiles),
|
|
5582
|
+
moveSelection: validated(moveFileSelection),
|
|
5583
|
+
putMp4ToMyFiles: validated(putMp4ToMyFiles),
|
|
5584
|
+
rename: validated(renameFile),
|
|
5585
|
+
resetSortSettings: inputFree(resetFileSortSettings),
|
|
5586
|
+
resetStartFrom: validated(resetStartFrom),
|
|
5587
|
+
search: validated(searchFiles),
|
|
5588
|
+
setSort: validated(setFileSort),
|
|
5589
|
+
setWatchStatus: validated(setFilesWatchStatus),
|
|
5590
|
+
setStartFrom: validated(setStartFrom),
|
|
5591
|
+
touch: validated(touchFiles),
|
|
5592
|
+
upload: validated(uploadFile)
|
|
5555
5593
|
},
|
|
5556
5594
|
friendInvites: {
|
|
5557
|
-
create: createFriendInvite,
|
|
5558
|
-
list: listFriendInvites
|
|
5595
|
+
create: inputFree(createFriendInvite),
|
|
5596
|
+
list: inputFree(listFriendInvites)
|
|
5559
5597
|
},
|
|
5560
5598
|
friends: {
|
|
5561
|
-
approve: approveFriendRequest,
|
|
5562
|
-
countWaitingRequests,
|
|
5563
|
-
deny: denyFriendRequest,
|
|
5564
|
-
list: listFriends,
|
|
5565
|
-
listSentRequests,
|
|
5566
|
-
listWaitingRequests,
|
|
5567
|
-
remove: removeFriend,
|
|
5568
|
-
search: searchFriends,
|
|
5569
|
-
sendRequest: sendFriendRequest,
|
|
5570
|
-
sharedFolder: getFriendSharedFolder
|
|
5599
|
+
approve: validated(approveFriendRequest),
|
|
5600
|
+
countWaitingRequests: inputFree(countWaitingRequests),
|
|
5601
|
+
deny: validated(denyFriendRequest),
|
|
5602
|
+
list: inputFree(listFriends),
|
|
5603
|
+
listSentRequests: inputFree(listSentRequests),
|
|
5604
|
+
listWaitingRequests: inputFree(listWaitingRequests),
|
|
5605
|
+
remove: validated(removeFriend),
|
|
5606
|
+
search: validated(searchFriends),
|
|
5607
|
+
sendRequest: validated(sendFriendRequest),
|
|
5608
|
+
sharedFolder: validated(getFriendSharedFolder)
|
|
5571
5609
|
},
|
|
5572
5610
|
oauth: {
|
|
5573
|
-
buildAuthorizeUrl: buildOAuthAuthorizeUrl,
|
|
5574
|
-
buildIconUrl: buildOAuthAppIconUrl,
|
|
5575
|
-
create: createOAuthApp,
|
|
5576
|
-
delete: deleteOAuthApp,
|
|
5577
|
-
get: getOAuthApp,
|
|
5578
|
-
getPopularApps: getPopularOAuthApps,
|
|
5579
|
-
query: queryOAuthApps,
|
|
5580
|
-
regenerateToken: regenerateOAuthAppToken,
|
|
5581
|
-
setIcon: setOAuthAppIcon,
|
|
5582
|
-
update: updateOAuthApp
|
|
5611
|
+
buildAuthorizeUrl: pure(buildOAuthAuthorizeUrl),
|
|
5612
|
+
buildIconUrl: pure(buildOAuthAppIconUrl),
|
|
5613
|
+
create: validated(createOAuthApp),
|
|
5614
|
+
delete: validated(deleteOAuthApp),
|
|
5615
|
+
get: validated(getOAuthApp),
|
|
5616
|
+
getPopularApps: inputFree(getPopularOAuthApps),
|
|
5617
|
+
query: inputFree(queryOAuthApps),
|
|
5618
|
+
regenerateToken: validated(regenerateOAuthAppToken),
|
|
5619
|
+
setIcon: validated(setOAuthAppIcon),
|
|
5620
|
+
update: validated(updateOAuthApp)
|
|
5583
5621
|
},
|
|
5584
5622
|
payment: {
|
|
5585
5623
|
changePlan: {
|
|
5586
|
-
classifyResponse: classifyPaymentChangePlanResponse,
|
|
5587
|
-
preview: previewPaymentChangePlan,
|
|
5588
|
-
submit: submitPaymentChangePlan
|
|
5589
|
-
},
|
|
5590
|
-
confirmFastspringOrder,
|
|
5591
|
-
getInfo: getPaymentInfo,
|
|
5592
|
-
listHistory: listPaymentHistory,
|
|
5593
|
-
listInvites: listPaymentInvites,
|
|
5594
|
-
listOptions: listPaymentOptions,
|
|
5595
|
-
listPlans: listPaymentPlans,
|
|
5624
|
+
classifyResponse: pure(classifyPaymentChangePlanResponse),
|
|
5625
|
+
preview: validated(previewPaymentChangePlan),
|
|
5626
|
+
submit: validated(submitPaymentChangePlan)
|
|
5627
|
+
},
|
|
5628
|
+
confirmFastspringOrder: validated(confirmFastspringOrder),
|
|
5629
|
+
getInfo: inputFree(getPaymentInfo),
|
|
5630
|
+
listHistory: validated(listPaymentHistory),
|
|
5631
|
+
listInvites: inputFree(listPaymentInvites),
|
|
5632
|
+
listOptions: inputFree(listPaymentOptions),
|
|
5633
|
+
listPlans: inputFree(listPaymentPlans),
|
|
5596
5634
|
methods: {
|
|
5597
|
-
addPaddleWaitingPayment: createPaddleWaitingPayment,
|
|
5598
|
-
createOpenNodeCharge,
|
|
5599
|
-
createPaddleBillingUpdatePaymentMethodTransaction,
|
|
5600
|
-
getPaddleBillingInvoiceUrl
|
|
5635
|
+
addPaddleWaitingPayment: validated(createPaddleWaitingPayment),
|
|
5636
|
+
createOpenNodeCharge: validated(createOpenNodeCharge),
|
|
5637
|
+
createPaddleBillingUpdatePaymentMethodTransaction: validated(createPaddleBillingUpdatePaymentMethodTransaction),
|
|
5638
|
+
getPaddleBillingInvoiceUrl: validated(getPaddleBillingInvoiceUrl)
|
|
5601
5639
|
},
|
|
5602
|
-
report: reportPayments,
|
|
5603
|
-
stopSubscription: stopPaymentSubscription,
|
|
5640
|
+
report: validated(reportPayments),
|
|
5641
|
+
stopSubscription: inputFree(stopPaymentSubscription),
|
|
5604
5642
|
voucher: {
|
|
5605
|
-
getInfo: getPaymentVoucherInfo,
|
|
5606
|
-
redeem: redeemPaymentVoucher
|
|
5643
|
+
getInfo: validated(getPaymentVoucherInfo),
|
|
5644
|
+
redeem: validated(redeemPaymentVoucher)
|
|
5607
5645
|
}
|
|
5608
5646
|
},
|
|
5609
5647
|
rss: {
|
|
5610
|
-
clearLogs: clearRssFeedLogs,
|
|
5611
|
-
create: createRssFeed,
|
|
5612
|
-
delete: deleteRssFeed,
|
|
5613
|
-
get: getRssFeed,
|
|
5614
|
-
list: listRssFeeds,
|
|
5615
|
-
listItems: listRssFeedItems,
|
|
5616
|
-
pause: pauseRssFeed,
|
|
5617
|
-
resume: resumeRssFeed,
|
|
5618
|
-
retryAll: retryAllRssFeedItems,
|
|
5619
|
-
retryItem: retryRssFeedItem,
|
|
5620
|
-
update: updateRssFeed
|
|
5648
|
+
clearLogs: validated(clearRssFeedLogs),
|
|
5649
|
+
create: validated(createRssFeed),
|
|
5650
|
+
delete: validated(deleteRssFeed),
|
|
5651
|
+
get: validated(getRssFeed),
|
|
5652
|
+
list: inputFree(listRssFeeds),
|
|
5653
|
+
listItems: validated(listRssFeedItems),
|
|
5654
|
+
pause: validated(pauseRssFeed),
|
|
5655
|
+
resume: validated(resumeRssFeed),
|
|
5656
|
+
retryAll: validated(retryAllRssFeedItems),
|
|
5657
|
+
retryItem: validated(retryRssFeedItem),
|
|
5658
|
+
update: validated(updateRssFeed)
|
|
5621
5659
|
},
|
|
5622
5660
|
sharing: {
|
|
5623
|
-
clone: cloneSharedFiles,
|
|
5624
|
-
getCloneInfo: getSharingCloneInfo,
|
|
5625
|
-
getSharedWith,
|
|
5626
|
-
listSharedFiles,
|
|
5661
|
+
clone: validated(cloneSharedFiles),
|
|
5662
|
+
getCloneInfo: validated(getSharingCloneInfo),
|
|
5663
|
+
getSharedWith: validated(getSharedWith),
|
|
5664
|
+
listSharedFiles: inputFree(listSharedFiles),
|
|
5627
5665
|
publicAccess: {
|
|
5628
|
-
continueFiles: continuePublicShareFiles,
|
|
5629
|
-
get: getPublicShare,
|
|
5630
|
-
getFileUrl: getPublicShareFileUrl,
|
|
5631
|
-
listFiles: listPublicShareFiles
|
|
5666
|
+
continueFiles: validated(continuePublicShareFiles),
|
|
5667
|
+
get: inputFree(getPublicShare),
|
|
5668
|
+
getFileUrl: validated(getPublicShareFileUrl),
|
|
5669
|
+
listFiles: validated(listPublicShareFiles)
|
|
5632
5670
|
},
|
|
5633
5671
|
publicShares: {
|
|
5634
|
-
create: createPublicShare,
|
|
5635
|
-
delete: deletePublicShare,
|
|
5636
|
-
list: listPublicShares
|
|
5672
|
+
create: validated(createPublicShare),
|
|
5673
|
+
delete: validated(deletePublicShare),
|
|
5674
|
+
list: inputFree(listPublicShares)
|
|
5637
5675
|
},
|
|
5638
|
-
shareFiles,
|
|
5639
|
-
unshare: unshareFile
|
|
5676
|
+
shareFiles: validated(shareFiles),
|
|
5677
|
+
unshare: validated(unshareFile)
|
|
5640
5678
|
},
|
|
5641
|
-
tunnel: { listRoutes: listTunnelRoutes },
|
|
5679
|
+
tunnel: { listRoutes: inputFree(listTunnelRoutes) },
|
|
5642
5680
|
trash: {
|
|
5643
|
-
continue: continueTrash,
|
|
5644
|
-
delete: deleteTrash,
|
|
5645
|
-
empty: emptyTrash,
|
|
5646
|
-
list: listTrash,
|
|
5647
|
-
restore: restoreTrash
|
|
5681
|
+
continue: validated(continueTrash),
|
|
5682
|
+
delete: validated(deleteTrash),
|
|
5683
|
+
empty: inputFree(emptyTrash),
|
|
5684
|
+
list: validated(listTrash),
|
|
5685
|
+
restore: validated(restoreTrash)
|
|
5648
5686
|
},
|
|
5649
5687
|
transfers: {
|
|
5650
|
-
add: addTransfer,
|
|
5651
|
-
addMany: addManyTransfers,
|
|
5652
|
-
addTrackers: addTransferTrackers,
|
|
5653
|
-
cancel: cancelTransfers,
|
|
5654
|
-
clean: cleanTransfers,
|
|
5655
|
-
continue: continueTransfers,
|
|
5656
|
-
count: countTransfers,
|
|
5657
|
-
get: getTransfer,
|
|
5658
|
-
getTorrent: getTransferTorrent,
|
|
5659
|
-
info: getTransferInfo,
|
|
5660
|
-
list: listTransfers,
|
|
5661
|
-
reannounce: reannounceTransfer,
|
|
5662
|
-
remove: removeTransfers,
|
|
5663
|
-
retry: retryTransfer,
|
|
5664
|
-
stopRecording: stopTransferRecording
|
|
5688
|
+
add: validated(addTransfer),
|
|
5689
|
+
addMany: validated(addManyTransfers),
|
|
5690
|
+
addTrackers: validated(addTransferTrackers),
|
|
5691
|
+
cancel: validated(cancelTransfers),
|
|
5692
|
+
clean: validated(cleanTransfers),
|
|
5693
|
+
continue: validated(continueTransfers),
|
|
5694
|
+
count: inputFree(countTransfers),
|
|
5695
|
+
get: validated(getTransfer),
|
|
5696
|
+
getTorrent: validated(getTransferTorrent),
|
|
5697
|
+
info: validated(getTransferInfo),
|
|
5698
|
+
list: validated(listTransfers),
|
|
5699
|
+
reannounce: validated(reannounceTransfer),
|
|
5700
|
+
remove: validated(removeTransfers),
|
|
5701
|
+
retry: validated(retryTransfer),
|
|
5702
|
+
stopRecording: validated(stopTransferRecording)
|
|
5665
5703
|
},
|
|
5666
5704
|
zips: {
|
|
5667
|
-
cancel: cancelZip,
|
|
5668
|
-
create: createZip,
|
|
5669
|
-
get: getZip,
|
|
5670
|
-
list: listZips
|
|
5705
|
+
cancel: validated(cancelZip),
|
|
5706
|
+
create: validated(createZip),
|
|
5707
|
+
get: validated(getZip),
|
|
5708
|
+
list: inputFree(listZips)
|
|
5671
5709
|
}
|
|
5672
|
-
}
|
|
5710
|
+
};
|
|
5711
|
+
assertClassifiedOperationTree(sharedOperationTree);
|
|
5712
|
+
const createPutioSdkEffectClient = () => cloneOperationTree(sharedOperationTree);
|
|
5673
5713
|
var PutioSdk = class extends Context.Service()("PutioSdk") {};
|
|
5674
5714
|
const makePutioSdkEffectClientLayer = () => Layer.succeed(PutioSdk, createPutioSdkEffectClient());
|
|
5675
5715
|
const makePutioSdkLiveClientLayer = (config) => Layer.mergeAll(makePutioSdkEffectClientLayer(), makePutioSdkLiveLayer(config));
|
|
@@ -5698,248 +5738,34 @@ const createPutioSdkPromiseClient = (initialConfig = {}) => {
|
|
|
5698
5738
|
function getChildByName(input) {
|
|
5699
5739
|
return provideSdk(config, getFileChild(input));
|
|
5700
5740
|
}
|
|
5741
|
+
const operations = makePromiseOperationTree(sharedOperationTree, config);
|
|
5701
5742
|
return {
|
|
5702
5743
|
dispose: () => disposePromiseClientRuntime(config),
|
|
5703
5744
|
setAccessToken: (accessToken) => {
|
|
5704
5745
|
config.accessToken = accessToken;
|
|
5705
5746
|
},
|
|
5747
|
+
...operations,
|
|
5706
5748
|
account: {
|
|
5707
|
-
|
|
5708
|
-
|
|
5709
|
-
delete: (id) => provideSdk(config, deleteAppSpecificPassword(id)),
|
|
5710
|
-
deleteAll: () => provideSdk(config, deleteAllAppSpecificPasswords()),
|
|
5711
|
-
list: () => provideSdk(config, listAppSpecificPasswords())
|
|
5712
|
-
},
|
|
5713
|
-
clear: (options) => provideSdk(config, clearAccount(options)),
|
|
5714
|
-
destroy: (currentPassword) => provideSdk(config, destroyAccount(currentPassword)),
|
|
5715
|
-
getInfo,
|
|
5716
|
-
getSettings: () => provideSdk(config, getAccountSettings()),
|
|
5717
|
-
listSubtitleLanguages: () => provideSdk(config, listAccountSubtitleLanguages()),
|
|
5718
|
-
listConfirmations: (subject) => provideSdk(config, listAccountConfirmations(subject)),
|
|
5719
|
-
saveSettings: (payload) => provideSdk(config, saveAccountSettings(payload))
|
|
5749
|
+
...operations.account,
|
|
5750
|
+
getInfo
|
|
5720
5751
|
},
|
|
5721
5752
|
auth: {
|
|
5753
|
+
...operations.auth,
|
|
5722
5754
|
buildLoginUrl: (options) => buildAuthLoginUrl({
|
|
5723
5755
|
...options,
|
|
5724
5756
|
webAppUrl: options.webAppUrl ?? config.runtimeConfig.webAppUrl
|
|
5725
|
-
})
|
|
5726
|
-
checkCodeMatch: (code) => provideSdk(config, checkCodeMatch(code)),
|
|
5727
|
-
clients: () => provideSdk(config, clients()),
|
|
5728
|
-
exchangeAuthorizationCode: (input) => provideSdk(config, exchangeOAuthAuthorizationCode(input)),
|
|
5729
|
-
exists: (key, value) => provideSdk(config, exists(key, value)),
|
|
5730
|
-
forgotPassword: (mail) => provideSdk(config, forgotPassword(mail)),
|
|
5731
|
-
getCode: (input) => provideSdk(config, getCode(input)),
|
|
5732
|
-
getFamilyInvite: (code) => provideSdk(config, getFamilyInvite(code)),
|
|
5733
|
-
getFriendInvite: (code) => provideSdk(config, getFriendInvite(code)),
|
|
5734
|
-
getGiftCard: (code) => provideSdk(config, getGiftCard(code)),
|
|
5735
|
-
getVoucher: (code) => provideSdk(config, getVoucher(code)),
|
|
5736
|
-
grants: () => provideSdk(config, grants()),
|
|
5737
|
-
linkDevice: (code) => provideSdk(config, linkDevice(code)),
|
|
5738
|
-
login: (input) => provideSdk(config, login(input)),
|
|
5739
|
-
logout: () => provideSdk(config, logout()),
|
|
5740
|
-
register: (input) => provideSdk(config, register(input)),
|
|
5741
|
-
resetPassword: (key, password) => provideSdk(config, resetPassword(key, password)),
|
|
5742
|
-
revokeAllClients: () => provideSdk(config, revokeAllClients()),
|
|
5743
|
-
revokeApp: (id) => provideSdk(config, revokeApp(id)),
|
|
5744
|
-
revokeClient: (id) => provideSdk(config, revokeClient(id)),
|
|
5745
|
-
twoFactor: {
|
|
5746
|
-
generateTOTP: () => provideSdk(config, generateTOTP()),
|
|
5747
|
-
getRecoveryCodes: () => provideSdk(config, getRecoveryCodes()),
|
|
5748
|
-
regenerateRecoveryCodes: () => provideSdk(config, regenerateRecoveryCodes()),
|
|
5749
|
-
verifyTOTP: (twoFactorScopedToken, code) => provideSdk(config, verifyTOTP(twoFactorScopedToken, code))
|
|
5750
|
-
},
|
|
5751
|
-
validateToken: (token) => provideSdk(config, validateToken(token))
|
|
5757
|
+
})
|
|
5752
5758
|
},
|
|
5753
5759
|
config: {
|
|
5754
|
-
|
|
5755
|
-
getKey: (key) => provideSdk(config, getConfigKey(key)),
|
|
5760
|
+
...operations.config,
|
|
5756
5761
|
getKeyWith: (key, schema) => provideSdk(config, getConfigKeyWith(key, schema)),
|
|
5757
|
-
|
|
5758
|
-
|
|
5759
|
-
setKey: (key, value) => provideSdk(config, setConfigKey(key, value)),
|
|
5760
|
-
write: (value) => provideSdk(config, writeConfig(value))
|
|
5761
|
-
},
|
|
5762
|
-
downloadLinks: {
|
|
5763
|
-
create: (input) => provideSdk(config, createDownloadLinks(input)),
|
|
5764
|
-
get: (id) => provideSdk(config, getDownloadLinks(id))
|
|
5765
|
-
},
|
|
5766
|
-
events: {
|
|
5767
|
-
clear: () => provideSdk(config, clearEvents()),
|
|
5768
|
-
delete: (id) => provideSdk(config, deleteEvent(id)),
|
|
5769
|
-
getTorrent: (id) => provideSdk(config, getEventTorrent(id)),
|
|
5770
|
-
list: (query) => provideSdk(config, listEvents(query))
|
|
5771
|
-
},
|
|
5772
|
-
family: {
|
|
5773
|
-
createInvite: () => provideSdk(config, createFamilyInvite()),
|
|
5774
|
-
join: (inviteCode) => provideSdk(config, joinFamily(inviteCode)),
|
|
5775
|
-
listInvites: () => provideSdk(config, listFamilyInvites()),
|
|
5776
|
-
listMembers: () => provideSdk(config, listFamilyMembers()),
|
|
5777
|
-
removeMember: (username) => provideSdk(config, removeFamilyMember(username))
|
|
5778
|
-
},
|
|
5779
|
-
ifttt: {
|
|
5780
|
-
getStatus: () => provideSdk(config, getIftttStatus()),
|
|
5781
|
-
sendEvent: (input) => provideSdk(config, sendIftttEvent(input))
|
|
5782
|
-
},
|
|
5783
|
-
podcast: { getLinks: (input) => provideSdk(config, getPodcastLinks(input)) },
|
|
5762
|
+
readWith: (schema) => provideSdk(config, readConfigWith(schema))
|
|
5763
|
+
},
|
|
5784
5764
|
files: {
|
|
5785
|
-
|
|
5786
|
-
continue: (cursor, query) => provideSdk(config, continueFiles(cursor, query)),
|
|
5787
|
-
continueSearch: (cursor, query) => provideSdk(config, continueSearch(cursor, query)),
|
|
5788
|
-
copy: (input) => provideSdk(config, copyFile(input)),
|
|
5789
|
-
convertManyToMp4: (ids) => provideSdk(config, convertFilesToMp4(ids)),
|
|
5790
|
-
convertSelectionToMp4: (selection) => provideSdk(config, convertFileSelectionToMp4(selection)),
|
|
5765
|
+
...operations.files,
|
|
5791
5766
|
createUploadFormData: createFileUploadFormData,
|
|
5792
|
-
createUploadRequest: (input) => provideSdk(config, createFileUploadRequest(input)),
|
|
5793
|
-
convertToMp4: (fileId) => provideSdk(config, convertFileToMp4(fileId)),
|
|
5794
|
-
createFolder: (input) => provideSdk(config, createFolder(input)),
|
|
5795
|
-
deleteExtraction: (extractionId) => provideSdk(config, deleteFileExtraction(extractionId)),
|
|
5796
|
-
deleteMp4: (fileId) => provideSdk(config, deleteFileMp4(fileId)),
|
|
5797
|
-
deleteSelection: (selection, options) => provideSdk(config, deleteFileSelection(selection, options)),
|
|
5798
|
-
delete: (ids, options) => provideSdk(config, deleteFiles(ids, options)),
|
|
5799
|
-
extract: (selection) => provideSdk(config, extractFiles(selection)),
|
|
5800
|
-
findNext: (fileId, fileType) => provideSdk(config, findNextFile(fileId, fileType)),
|
|
5801
|
-
findNextVideo: (fileId) => provideSdk(config, findNextVideo(fileId)),
|
|
5802
|
-
getApiContentUrl: (fileId, options) => provideSdk(config, getApiContentUrl(fileId, options)),
|
|
5803
|
-
getApiDownloadUrl: (fileId, options) => provideSdk(config, getApiDownloadUrl(fileId, options)),
|
|
5804
|
-
getApiMp4DownloadUrl: (fileId, options) => provideSdk(config, getApiMp4DownloadUrl(fileId, options)),
|
|
5805
5767
|
get: getFileById,
|
|
5806
|
-
getChild: getChildByName
|
|
5807
|
-
getDownloadUrl: (fileId) => provideSdk(config, getDownloadUrl(fileId)),
|
|
5808
|
-
getHlsStreamUrl: (fileId, options) => provideSdk(config, getHlsStreamUrl(fileId, options)),
|
|
5809
|
-
getMp4Status: (fileId) => provideSdk(config, getMp4Status(fileId)),
|
|
5810
|
-
getStartFrom: (fileId) => provideSdk(config, getStartFrom(fileId)),
|
|
5811
|
-
list: (parent, query) => provideSdk(config, queryFiles(parent, query)),
|
|
5812
|
-
listActiveConversions: () => provideSdk(config, listActiveMp4Conversions()),
|
|
5813
|
-
listExtractions: () => provideSdk(config, listFileExtractions()),
|
|
5814
|
-
listSubtitles: (fileId, options) => provideSdk(config, listFileSubtitles(fileId, options)),
|
|
5815
|
-
move: (ids, parentId) => provideSdk(config, moveFiles(ids, parentId)),
|
|
5816
|
-
moveSelection: (selection, parentId) => provideSdk(config, moveFileSelection(selection, parentId)),
|
|
5817
|
-
putMp4ToMyFiles: (fileId) => provideSdk(config, putMp4ToMyFiles(fileId)),
|
|
5818
|
-
rename: (input) => provideSdk(config, renameFile(input)),
|
|
5819
|
-
resetSortSettings: () => provideSdk(config, resetFileSortSettings()),
|
|
5820
|
-
resetStartFrom: (fileId) => provideSdk(config, resetStartFrom(fileId)),
|
|
5821
|
-
search: (query) => provideSdk(config, searchFiles(query)),
|
|
5822
|
-
setSort: (input) => provideSdk(config, setFileSort(input)),
|
|
5823
|
-
setWatchStatus: (selection) => provideSdk(config, setFilesWatchStatus(selection)),
|
|
5824
|
-
setStartFrom: (input) => provideSdk(config, setStartFrom(input)),
|
|
5825
|
-
touch: (input) => provideSdk(config, touchFiles(input)),
|
|
5826
|
-
upload: (input) => provideSdk(config, uploadFile(input))
|
|
5827
|
-
},
|
|
5828
|
-
friendInvites: {
|
|
5829
|
-
create: () => provideSdk(config, createFriendInvite()),
|
|
5830
|
-
list: () => provideSdk(config, listFriendInvites())
|
|
5831
|
-
},
|
|
5832
|
-
friends: {
|
|
5833
|
-
approve: (username) => provideSdk(config, approveFriendRequest(username)),
|
|
5834
|
-
countWaitingRequests: () => provideSdk(config, countWaitingRequests()),
|
|
5835
|
-
deny: (username) => provideSdk(config, denyFriendRequest(username)),
|
|
5836
|
-
list: () => provideSdk(config, listFriends()),
|
|
5837
|
-
listSentRequests: () => provideSdk(config, listSentRequests()),
|
|
5838
|
-
listWaitingRequests: () => provideSdk(config, listWaitingRequests()),
|
|
5839
|
-
remove: (username) => provideSdk(config, removeFriend(username)),
|
|
5840
|
-
search: (username) => provideSdk(config, searchFriends(username)),
|
|
5841
|
-
sendRequest: (username) => provideSdk(config, sendFriendRequest(username)),
|
|
5842
|
-
sharedFolder: (username) => provideSdk(config, getFriendSharedFolder(username))
|
|
5843
|
-
},
|
|
5844
|
-
oauth: {
|
|
5845
|
-
buildAuthorizeUrl: buildOAuthAuthorizeUrl,
|
|
5846
|
-
buildIconUrl: buildOAuthAppIconUrl,
|
|
5847
|
-
create: (input) => provideSdk(config, createOAuthApp(input)),
|
|
5848
|
-
delete: (id) => provideSdk(config, deleteOAuthApp(id)),
|
|
5849
|
-
get: (id, options) => provideSdk(config, getOAuthApp(id, options)),
|
|
5850
|
-
getPopularApps: () => provideSdk(config, getPopularOAuthApps()),
|
|
5851
|
-
query: () => provideSdk(config, queryOAuthApps()),
|
|
5852
|
-
regenerateToken: (id) => provideSdk(config, regenerateOAuthAppToken(id)),
|
|
5853
|
-
setIcon: (id, input) => provideSdk(config, setOAuthAppIcon(id, input)),
|
|
5854
|
-
update: (input) => provideSdk(config, updateOAuthApp(input))
|
|
5855
|
-
},
|
|
5856
|
-
payment: {
|
|
5857
|
-
changePlan: {
|
|
5858
|
-
classifyResponse: classifyPaymentChangePlanResponse,
|
|
5859
|
-
preview: (input) => provideSdk(config, previewPaymentChangePlan(input)),
|
|
5860
|
-
submit: (input) => provideSdk(config, submitPaymentChangePlan(input))
|
|
5861
|
-
},
|
|
5862
|
-
confirmFastspringOrder: (reference) => provideSdk(config, confirmFastspringOrder(reference)),
|
|
5863
|
-
getInfo: () => provideSdk(config, getPaymentInfo()),
|
|
5864
|
-
listHistory: (query) => provideSdk(config, listPaymentHistory(query)),
|
|
5865
|
-
listInvites: () => provideSdk(config, listPaymentInvites()),
|
|
5866
|
-
listOptions: () => provideSdk(config, listPaymentOptions()),
|
|
5867
|
-
listPlans: () => provideSdk(config, listPaymentPlans()),
|
|
5868
|
-
methods: {
|
|
5869
|
-
addPaddleWaitingPayment: (input) => provideSdk(config, createPaddleWaitingPayment(input)),
|
|
5870
|
-
createOpenNodeCharge: (planPath) => provideSdk(config, createOpenNodeCharge(planPath)),
|
|
5871
|
-
createPaddleBillingUpdatePaymentMethodTransaction: (userSubscriptionId) => provideSdk(config, createPaddleBillingUpdatePaymentMethodTransaction(userSubscriptionId)),
|
|
5872
|
-
getPaddleBillingInvoiceUrl: (paymentId) => provideSdk(config, getPaddleBillingInvoiceUrl(paymentId))
|
|
5873
|
-
},
|
|
5874
|
-
report: (paymentIds) => provideSdk(config, reportPayments(paymentIds)),
|
|
5875
|
-
stopSubscription: () => provideSdk(config, stopPaymentSubscription()),
|
|
5876
|
-
voucher: {
|
|
5877
|
-
getInfo: (code) => provideSdk(config, getPaymentVoucherInfo(code)),
|
|
5878
|
-
redeem: (code) => provideSdk(config, redeemPaymentVoucher(code))
|
|
5879
|
-
}
|
|
5880
|
-
},
|
|
5881
|
-
rss: {
|
|
5882
|
-
clearLogs: (id) => provideSdk(config, clearRssFeedLogs(id)),
|
|
5883
|
-
create: (params) => provideSdk(config, createRssFeed(params)),
|
|
5884
|
-
delete: (id) => provideSdk(config, deleteRssFeed(id)),
|
|
5885
|
-
get: (id) => provideSdk(config, getRssFeed(id)),
|
|
5886
|
-
list: () => provideSdk(config, listRssFeeds()),
|
|
5887
|
-
listItems: (id) => provideSdk(config, listRssFeedItems(id)),
|
|
5888
|
-
pause: (id) => provideSdk(config, pauseRssFeed(id)),
|
|
5889
|
-
resume: (id) => provideSdk(config, resumeRssFeed(id)),
|
|
5890
|
-
retryAll: (id) => provideSdk(config, retryAllRssFeedItems(id)),
|
|
5891
|
-
retryItem: (feedId, itemId) => provideSdk(config, retryRssFeedItem(feedId, itemId)),
|
|
5892
|
-
update: (id, params) => provideSdk(config, updateRssFeed(id, params))
|
|
5893
|
-
},
|
|
5894
|
-
sharing: {
|
|
5895
|
-
clone: (input) => provideSdk(config, cloneSharedFiles(input)),
|
|
5896
|
-
getCloneInfo: (id) => provideSdk(config, getSharingCloneInfo(id)),
|
|
5897
|
-
getSharedWith: (fileId) => provideSdk(config, getSharedWith(fileId)),
|
|
5898
|
-
listSharedFiles: () => provideSdk(config, listSharedFiles()),
|
|
5899
|
-
publicAccess: {
|
|
5900
|
-
continueFiles: (cursor, query) => provideSdk(config, continuePublicShareFiles(cursor, query)),
|
|
5901
|
-
get: () => provideSdk(config, getPublicShare()),
|
|
5902
|
-
getFileUrl: (fileId) => provideSdk(config, getPublicShareFileUrl(fileId)),
|
|
5903
|
-
listFiles: (query) => provideSdk(config, listPublicShareFiles(query))
|
|
5904
|
-
},
|
|
5905
|
-
publicShares: {
|
|
5906
|
-
create: (fileId) => provideSdk(config, createPublicShare(fileId)),
|
|
5907
|
-
delete: (id) => provideSdk(config, deletePublicShare(id)),
|
|
5908
|
-
list: () => provideSdk(config, listPublicShares())
|
|
5909
|
-
},
|
|
5910
|
-
shareFiles: (input) => provideSdk(config, shareFiles(input)),
|
|
5911
|
-
unshare: (input) => provideSdk(config, unshareFile(input))
|
|
5912
|
-
},
|
|
5913
|
-
tunnel: { listRoutes: () => provideSdk(config, listTunnelRoutes()) },
|
|
5914
|
-
trash: {
|
|
5915
|
-
continue: (cursor, query) => provideSdk(config, continueTrash(cursor, query)),
|
|
5916
|
-
delete: (input) => provideSdk(config, deleteTrash(input)),
|
|
5917
|
-
empty: () => provideSdk(config, emptyTrash()),
|
|
5918
|
-
list: (query) => provideSdk(config, listTrash(query)),
|
|
5919
|
-
restore: (input) => provideSdk(config, restoreTrash(input))
|
|
5920
|
-
},
|
|
5921
|
-
transfers: {
|
|
5922
|
-
add: (input) => provideSdk(config, addTransfer(input)),
|
|
5923
|
-
addMany: (inputs) => provideSdk(config, addManyTransfers(inputs)),
|
|
5924
|
-
addTrackers: (input) => provideSdk(config, addTransferTrackers(input)),
|
|
5925
|
-
cancel: (ids) => provideSdk(config, cancelTransfers(ids)),
|
|
5926
|
-
clean: (ids) => provideSdk(config, cleanTransfers(ids)),
|
|
5927
|
-
continue: (cursor, query) => provideSdk(config, continueTransfers(cursor, query)),
|
|
5928
|
-
count: () => provideSdk(config, countTransfers()),
|
|
5929
|
-
get: (id) => provideSdk(config, getTransfer(id)),
|
|
5930
|
-
getTorrent: (id) => provideSdk(config, getTransferTorrent(id)),
|
|
5931
|
-
info: (urls) => provideSdk(config, getTransferInfo(urls)),
|
|
5932
|
-
list: (query) => provideSdk(config, listTransfers(query)),
|
|
5933
|
-
reannounce: (id) => provideSdk(config, reannounceTransfer(id)),
|
|
5934
|
-
remove: (input) => provideSdk(config, removeTransfers(input)),
|
|
5935
|
-
retry: (id) => provideSdk(config, retryTransfer(id)),
|
|
5936
|
-
stopRecording: (id) => provideSdk(config, stopTransferRecording(id))
|
|
5937
|
-
},
|
|
5938
|
-
zips: {
|
|
5939
|
-
cancel: (id) => provideSdk(config, cancelZip(id)),
|
|
5940
|
-
create: (input) => provideSdk(config, createZip(input)),
|
|
5941
|
-
get: (id) => provideSdk(config, getZip(id)),
|
|
5942
|
-
list: () => provideSdk(config, listZips())
|
|
5768
|
+
getChild: getChildByName
|
|
5943
5769
|
}
|
|
5944
5770
|
};
|
|
5945
5771
|
};
|