@putdotio/sdk 10.3.0 → 10.4.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.js CHANGED
@@ -1,4 +1,4 @@
1
- import { A as definePutioOperationErrorSpec, B as mapTransportError, C as PutioConfigurationError, D as PutioTransportError, E as PutioRateLimitError, F as isPutioOperationError, H as responseRateLimitHeaders, I as isPutioRateLimitError, L as makeResponseError, M as isPutioApiError, N as isPutioAuthError, O as PutioValidationError, P as isPutioErrorEnvelope, R as mapConfigurationError, S as PutioAuthError, T as PutioOperationError, U as withOperationErrors, V as parseErrorBody, _ as selectJsonFields, a as PutioSdkConfig, b as DEFAULT_PUTIO_WEB_APP_URL, c as makePutioFetchClient, d as makePutioSdkLayer, f as makePutioSdkLiveLayer, g as selectJsonField, h as requestVoid, i as PutioHttpClient, j as fallbackPutioErrorEnvelope, k as decodePutioErrorEnvelope, l as makePutioFetchLayer, m as requestJson, n as toCursorSelectionForm, o as buildPutioUrl, p as requestArrayBuffer, r as OkResponseSchema, s as encodePathSegment, t as joinCsv, u as makePutioSdkConfig, v as DEFAULT_PUTIO_API_BASE_URL, w as PutioErrorEnvelopeSchema, x as PutioApiError, y as DEFAULT_PUTIO_UPLOAD_BASE_URL, z as mapDecodeErrorToValidationError } from "./forms-SpjrUB4N.js";
1
+ import { A as definePutioOperationErrorSpec, B as mapTransportError, C as PutioConfigurationError, D as PutioTransportError, E as PutioRateLimitError, F as isPutioOperationError, H as responseRateLimitHeaders, I as isPutioRateLimitError, L as makeResponseError, M as isPutioApiError, N as isPutioAuthError, O as PutioValidationError, P as isPutioErrorEnvelope, R as mapConfigurationError, S as PutioAuthError, T as PutioOperationError, U as withOperationErrors, V as parseErrorBody, _ as selectJsonFields, a as PutioSdkConfig, b as DEFAULT_PUTIO_WEB_APP_URL, c as makePutioFetchClient, d as makePutioSdkLayer, f as makePutioSdkLiveLayer, g as selectJsonField, h as requestVoid, i as PutioHttpClient, j as fallbackPutioErrorEnvelope, k as decodePutioErrorEnvelope, l as makePutioFetchLayer, m as requestJson, n as toCursorSelectionForm, o as buildPutioUrl, p as requestArrayBuffer, r as OkResponseSchema, s as encodePathSegment, t as joinCsv, u as makePutioSdkConfig, v as DEFAULT_PUTIO_API_BASE_URL, w as PutioErrorEnvelopeSchema, x as PutioApiError, y as DEFAULT_PUTIO_UPLOAD_BASE_URL, z as mapDecodeErrorToValidationError } from "./forms-69GUrpXE.js";
2
2
  import { Cause, Context, Effect, Exit, Layer, ManagedRuntime, Option, Schema, SchemaIssue, SchemaParser } from "effect";
3
3
  //#region src/domains/account.ts
4
4
  const RequestedFlag$1 = Schema.Literal(1);
@@ -623,6 +623,16 @@ const LoginResponseSchema = Schema.Struct({
623
623
  access_token: Schema.String,
624
624
  user_id: Schema.Int
625
625
  });
626
+ const OAuthAuthorizationCodeResponseSchema = Schema.Struct({ access_token: Schema.String });
627
+ const OAuthAuthorizationCodeExchangeErrorCodeSchema = Schema.Literals([
628
+ "access_denied",
629
+ "invalid_request",
630
+ "unauthorized_client"
631
+ ]);
632
+ var OAuthAuthorizationCodeExchangeError = class extends Schema.TaggedErrorClass()("OAuthAuthorizationCodeExchangeError", {
633
+ code: OAuthAuthorizationCodeExchangeErrorCodeSchema,
634
+ status: Schema.Literal(400)
635
+ }) {};
626
636
  const TokenScopeSchema = Schema.NullOr(Schema.Literals([
627
637
  "default",
628
638
  "two_factor",
@@ -744,6 +754,12 @@ const RegisterInputSchema = Schema.Struct({
744
754
  username: Schema.String,
745
755
  voucher_code: Schema.optional(Schema.String)
746
756
  });
757
+ const OAuthAuthorizationCodeExchangeInputSchema = Schema.Struct({
758
+ clientId: Schema.Union([Schema.String.check(Schema.isMinLength(1)), Schema.Int.check(Schema.isGreaterThan(0))]),
759
+ clientSecret: Schema.String.check(Schema.isMinLength(1)),
760
+ code: Schema.String.check(Schema.isMinLength(1)),
761
+ redirectUri: Schema.optional(Schema.String.check(Schema.isMinLength(1)))
762
+ });
747
763
  const LoginErrorSpec = definePutioOperationErrorSpec({
748
764
  domain: "auth",
749
765
  operation: "login",
@@ -985,6 +1001,30 @@ const buildAuthLoginUrl = (options) => buildPutioUrl(options.webAppUrl ?? "https
985
1001
  response_type: options.responseType ?? "token",
986
1002
  state: options.state
987
1003
  });
1004
+ const isOAuthAuthorizationCodeExchangeErrorCode = Schema.is(OAuthAuthorizationCodeExchangeErrorCodeSchema);
1005
+ const mapOAuthAuthorizationCodeExchangeError = (error) => error instanceof PutioApiError && error.status === 400 && isOAuthAuthorizationCodeExchangeErrorCode(error.body.error) ? new OAuthAuthorizationCodeExchangeError({
1006
+ code: error.body.error,
1007
+ status: 400
1008
+ }) : error;
1009
+ const exchangeOAuthAuthorizationCode = (input) => Schema.decodeUnknownEffect(OAuthAuthorizationCodeExchangeInputSchema)(input).pipe(Effect.mapError(() => new PutioValidationError({ cause: {
1010
+ domain: "auth",
1011
+ operation: "exchangeAuthorizationCode",
1012
+ reason: "Invalid request input"
1013
+ } })), Effect.flatMap((decodedInput) => requestJson(OAuthAuthorizationCodeResponseSchema, {
1014
+ auth: { type: "none" },
1015
+ body: {
1016
+ type: "form",
1017
+ value: {
1018
+ client_id: decodedInput.clientId,
1019
+ client_secret: decodedInput.clientSecret,
1020
+ code: decodedInput.code,
1021
+ grant_type: "authorization_code",
1022
+ redirect_uri: decodedInput.redirectUri
1023
+ }
1024
+ },
1025
+ method: "POST",
1026
+ path: "/v2/oauth2/access_token"
1027
+ }).pipe(selectJsonField("access_token"), Effect.mapError(mapOAuthAuthorizationCodeExchangeError))));
988
1028
  const login = (input) => requestJson(LoginResponseSchema, {
989
1029
  auth: {
990
1030
  type: "basic",
@@ -1765,6 +1805,8 @@ const sendIftttEvent = (input) => requestJson(OkResponseSchema, {
1765
1805
  //#endregion
1766
1806
  //#region src/domains/files.ts
1767
1807
  const RequestedFlag = Schema.Literal(1);
1808
+ const NonNegativeFileIdSchema = Schema.Int.check(Schema.isGreaterThanOrEqualTo(0));
1809
+ const PositiveFileIdSchema = Schema.Int.check(Schema.isGreaterThan(0));
1768
1810
  const FileTypeSchema = Schema.Literals([
1769
1811
  "FOLDER",
1770
1812
  "FILE",
@@ -1795,6 +1837,19 @@ const FileSortSchema = Schema.Literals([
1795
1837
  "WATCH_ASC",
1796
1838
  "WATCH_DESC"
1797
1839
  ]);
1840
+ const FileSetSortInputSchema = Schema.Struct({
1841
+ fileId: NonNegativeFileIdSchema,
1842
+ sortBy: FileSortSchema
1843
+ });
1844
+ const FileCopyInputSchema = Schema.Struct({
1845
+ fileId: PositiveFileIdSchema,
1846
+ name: Schema.optional(Schema.String.check(Schema.isMinLength(1))),
1847
+ parentId: NonNegativeFileIdSchema
1848
+ });
1849
+ const FileTouchInputSchema = Schema.Struct({
1850
+ fileIds: Schema.Array(NonNegativeFileIdSchema).check(Schema.isMinLength(1)),
1851
+ updatedAt: Schema.optional(Schema.DateValid)
1852
+ });
1798
1853
  const FileMediaMetadataSchema = Schema.Struct({
1799
1854
  aspect_ratio: Schema.optional(Schema.NullOr(Schema.Number.check(Schema.isGreaterThanOrEqualTo(0)))),
1800
1855
  codec: Schema.optional(Schema.NullOr(Schema.String)),
@@ -1865,6 +1920,11 @@ const FileQuerySchema = Schema.Struct({
1865
1920
  stream_url: Schema.optional(RequestedFlag),
1866
1921
  video_metadata: Schema.optional(RequestedFlag)
1867
1922
  });
1923
+ const FileGetChildInputSchema = Schema.Struct({
1924
+ name: Schema.String.check(Schema.isMinLength(1)),
1925
+ parentId: NonNegativeFileIdSchema,
1926
+ query: Schema.optional(FileQuerySchema)
1927
+ });
1868
1928
  const FilesListQuerySchema = FileQuerySchema.mapFields(({ codecs: _codecs, media_info: _mediaInfo, ...fields }) => fields).pipe(Schema.fieldsAssign({
1869
1929
  breadcrumbs: Schema.optional(RequestedFlag),
1870
1930
  codecs_parent: Schema.optional(RequestedFlag),
@@ -1936,6 +1996,10 @@ const FileDownloadUrlEnvelopeSchema = Schema.Struct({
1936
1996
  status: Schema.Literal("OK"),
1937
1997
  url: Schema.String
1938
1998
  });
1999
+ const FileCanWriteEnvelopeSchema = Schema.Struct({
2000
+ status: Schema.Literal("OK"),
2001
+ user_id: Schema.Int
2002
+ });
1939
2003
  const FileUploadTransferSchema = Schema.Struct({
1940
2004
  id: Schema.Int,
1941
2005
  name: Schema.String
@@ -2084,6 +2148,61 @@ const GetFileErrorSpec = definePutioOperationErrorSpec({
2084
2148
  statusCode: 401
2085
2149
  }]
2086
2150
  });
2151
+ const GetFileChildErrorSpec = definePutioOperationErrorSpec({
2152
+ domain: "files",
2153
+ operation: "getChild",
2154
+ knownErrors: [
2155
+ { statusCode: 400 },
2156
+ {
2157
+ errorType: "invalid_scope",
2158
+ statusCode: 401
2159
+ },
2160
+ { statusCode: 403 },
2161
+ { statusCode: 404 }
2162
+ ]
2163
+ });
2164
+ const CopyFileErrorSpec = definePutioOperationErrorSpec({
2165
+ domain: "files",
2166
+ operation: "copy",
2167
+ knownErrors: [
2168
+ {
2169
+ errorType: "NAME_ALREADY_EXIST",
2170
+ statusCode: 400
2171
+ },
2172
+ {
2173
+ errorType: "invalid_scope",
2174
+ statusCode: 401
2175
+ },
2176
+ { statusCode: 400 },
2177
+ { statusCode: 403 },
2178
+ { statusCode: 404 }
2179
+ ]
2180
+ });
2181
+ const TouchFilesErrorSpec = definePutioOperationErrorSpec({
2182
+ domain: "files",
2183
+ operation: "touch",
2184
+ knownErrors: [
2185
+ {
2186
+ errorType: "invalid_scope",
2187
+ statusCode: 401
2188
+ },
2189
+ { statusCode: 400 },
2190
+ { statusCode: 403 }
2191
+ ]
2192
+ });
2193
+ const CanWriteFileErrorSpec = definePutioOperationErrorSpec({
2194
+ domain: "files",
2195
+ operation: "canWrite",
2196
+ knownErrors: [
2197
+ {
2198
+ errorType: "invalid_scope",
2199
+ statusCode: 401
2200
+ },
2201
+ { statusCode: 402 },
2202
+ { statusCode: 403 },
2203
+ { statusCode: 404 }
2204
+ ]
2205
+ });
2087
2206
  const SearchFilesErrorSpec = definePutioOperationErrorSpec({
2088
2207
  domain: "files",
2089
2208
  operation: "search",
@@ -2382,6 +2501,46 @@ function getFile(input) {
2382
2501
  if (input.query === void 0) return effect;
2383
2502
  return ensureFileQueryFields(effect, input.query);
2384
2503
  }
2504
+ function getFileChild(input) {
2505
+ return Schema.decodeUnknownEffect(FileGetChildInputSchema)(input).pipe(Effect.mapError(mapDecodeErrorToValidationError), Effect.flatMap((decodedInput) => {
2506
+ const effect = requestJson(FileEnvelopeSchema, {
2507
+ method: "GET",
2508
+ path: `/v2/files/${encodePathSegment(decodedInput.parentId)}/child`,
2509
+ query: {
2510
+ ...decodedInput.query,
2511
+ name: decodedInput.name
2512
+ }
2513
+ }).pipe(selectJsonField("file"), withOperationErrors(GetFileChildErrorSpec));
2514
+ return decodedInput.query === void 0 ? effect : ensureFileQueryFields(effect, decodedInput.query);
2515
+ }));
2516
+ }
2517
+ const copyFile = (input) => Schema.decodeUnknownEffect(FileCopyInputSchema)(input).pipe(Effect.mapError(mapDecodeErrorToValidationError), Effect.flatMap((decodedInput) => requestJson(FileEnvelopeSchema, {
2518
+ body: {
2519
+ type: "form",
2520
+ value: {
2521
+ file_id: decodedInput.fileId,
2522
+ name: decodedInput.name,
2523
+ parent_id: decodedInput.parentId
2524
+ }
2525
+ },
2526
+ method: "POST",
2527
+ path: "/v2/files/copy"
2528
+ })), selectJsonField("file"), withOperationErrors(CopyFileErrorSpec));
2529
+ const touchFiles = (input) => Schema.decodeUnknownEffect(FileTouchInputSchema)(input).pipe(Effect.mapError(mapDecodeErrorToValidationError), Effect.flatMap((decodedInput) => requestJson(OkResponseSchema, {
2530
+ body: {
2531
+ type: "form",
2532
+ value: {
2533
+ file_ids: joinCsv(decodedInput.fileIds),
2534
+ updated_at: decodedInput.updatedAt?.toISOString()
2535
+ }
2536
+ },
2537
+ method: "POST",
2538
+ path: "/v2/files/touch"
2539
+ })), Effect.asVoid, withOperationErrors(TouchFilesErrorSpec));
2540
+ const canWriteFile = (fileId) => Schema.decodeUnknownEffect(PositiveFileIdSchema)(fileId).pipe(Effect.mapError(mapDecodeErrorToValidationError), Effect.flatMap((decodedFileId) => requestJson(FileCanWriteEnvelopeSchema, {
2541
+ method: "GET",
2542
+ path: `/v2/files/${encodePathSegment(decodedFileId)}/can-write`
2543
+ })), selectJsonField("user_id"), withOperationErrors(CanWriteFileErrorSpec));
2385
2544
  const searchFiles = (query) => requestJson(FilesSearchEnvelopeSchema, {
2386
2545
  method: "GET",
2387
2546
  path: "/v2/files/search",
@@ -2396,6 +2555,21 @@ const continueSearch = (cursor, query = {}) => requestJson(FilesSearchEnvelopeSc
2396
2555
  path: "/v2/files/search/continue",
2397
2556
  query
2398
2557
  }).pipe(withOperationErrors(SearchFilesErrorSpec));
2558
+ const setFileSort = (input) => Schema.decodeUnknownEffect(FileSetSortInputSchema)(input).pipe(Effect.mapError(mapDecodeErrorToValidationError), Effect.flatMap((decodedInput) => requestJson(OkResponseSchema, {
2559
+ body: {
2560
+ type: "form",
2561
+ value: {
2562
+ file_id: decodedInput.fileId,
2563
+ sort_by: decodedInput.sortBy
2564
+ }
2565
+ },
2566
+ method: "POST",
2567
+ path: "/v2/files/set-sort-by"
2568
+ })), Effect.asVoid);
2569
+ const resetFileSortSettings = () => requestJson(OkResponseSchema, {
2570
+ method: "POST",
2571
+ path: "/v2/files/remove-sort-by-settings"
2572
+ }).pipe(Effect.asVoid);
2399
2573
  const createFolder = (input) => requestJson(FileEnvelopeSchema, {
2400
2574
  body: {
2401
2575
  type: "form",
@@ -3516,6 +3690,37 @@ const createOpenNodeCharge = (planPath) => requestJson(PaymentOpenNodeChargeEnve
3516
3690
  path: "/v2/payment/methods/opennode/charge"
3517
3691
  }).pipe(selectJsonField("opennode"), Effect.map(({ checkout_url }) => checkout_url), withOperationErrors(CreateOpenNodeChargeErrorSpec));
3518
3692
  //#endregion
3693
+ //#region src/domains/podcast.ts
3694
+ const PodcastLinkTypeSchema = Schema.Literals([
3695
+ "all",
3696
+ "audio",
3697
+ "video",
3698
+ "mp4"
3699
+ ]);
3700
+ const PodcastGetLinksInputSchema = Schema.Struct({
3701
+ parentId: Schema.Int.check(Schema.isGreaterThanOrEqualTo(0)),
3702
+ types: Schema.optional(Schema.Array(PodcastLinkTypeSchema).check(Schema.isMinLength(1)))
3703
+ });
3704
+ const PodcastLinksSchema = Schema.Struct({
3705
+ all: Schema.optional(Schema.String),
3706
+ audio: Schema.optional(Schema.String),
3707
+ video: Schema.optional(Schema.String),
3708
+ mp4: Schema.optional(Schema.String)
3709
+ });
3710
+ const PodcastLinksEnvelopeSchema = Schema.Struct({
3711
+ links: PodcastLinksSchema,
3712
+ status: Schema.Literal("OK"),
3713
+ token: Schema.String
3714
+ });
3715
+ const getPodcastLinks = (input) => Schema.decodeUnknownEffect(PodcastGetLinksInputSchema)(input).pipe(Effect.mapError(mapDecodeErrorToValidationError), Effect.flatMap((decodedInput) => requestJson(PodcastLinksEnvelopeSchema, {
3716
+ method: "GET",
3717
+ path: "/v2/podcast/links",
3718
+ query: {
3719
+ parent_id: decodedInput.parentId,
3720
+ type: decodedInput.types ? joinCsv(decodedInput.types) : void 0
3721
+ }
3722
+ })), selectJsonFields("links", "token"));
3723
+ //#endregion
3519
3724
  //#region src/domains/rss.ts
3520
3725
  const RssFeedSchema = Schema.Struct({
3521
3726
  created_at: Schema.String,
@@ -4381,6 +4586,8 @@ const emptyTrash = () => requestJson(OkResponseSchema, {
4381
4586
  }).pipe(Effect.asVoid, withOperationErrors(EmptyTrashErrorSpec));
4382
4587
  //#endregion
4383
4588
  //#region src/domains/transfers.ts
4589
+ const TransferIdSchema = Schema.Int.check(Schema.isGreaterThan(0));
4590
+ const TransferIdsSchema = Schema.Array(TransferIdSchema).check(Schema.isMinLength(1));
4384
4591
  const TransferTypeSchema = Schema.Literals([
4385
4592
  "URL",
4386
4593
  "TORRENT",
@@ -4481,6 +4688,20 @@ const TransferAddInputSchema = Schema.Struct({
4481
4688
  save_parent_id: Schema.optional(Schema.Int),
4482
4689
  url: Schema.String
4483
4690
  });
4691
+ const TrackerSchema = Schema.String.check(Schema.isPattern(/^[^,\s]+$/));
4692
+ const TransferAddTrackersInputSchema = Schema.Struct({
4693
+ trackers: Schema.Array(TrackerSchema).check(Schema.isMinLength(1)),
4694
+ transferId: TransferIdSchema
4695
+ });
4696
+ const TransferRemoveIdsInputSchema = Schema.Struct({
4697
+ filter: Schema.optional(Schema.Never),
4698
+ ids: TransferIdsSchema
4699
+ });
4700
+ const TransferRemoveFilterInputSchema = Schema.Struct({
4701
+ filter: Schema.Literals(["all", "completed"]),
4702
+ ids: Schema.optional(Schema.Never)
4703
+ });
4704
+ const TransferRemoveInputSchema = Schema.Union([TransferRemoveIdsInputSchema, TransferRemoveFilterInputSchema]);
4484
4705
  const TransferInfoItemSchema = Schema.Struct({
4485
4706
  error: Schema.optional(Schema.String),
4486
4707
  error_message: Schema.optional(Schema.String),
@@ -4544,6 +4765,64 @@ const GetTransferErrorSpec = definePutioOperationErrorSpec({
4544
4765
  statusCode: 401
4545
4766
  }, { statusCode: 404 }]
4546
4767
  });
4768
+ const GetTransferTorrentErrorSpec = definePutioOperationErrorSpec({
4769
+ domain: "transfers",
4770
+ operation: "getTorrent",
4771
+ knownErrors: [
4772
+ {
4773
+ errorType: "NOT_TORRENT",
4774
+ statusCode: 400
4775
+ },
4776
+ {
4777
+ errorType: "IS_MAGNET",
4778
+ statusCode: 400
4779
+ },
4780
+ {
4781
+ errorType: "invalid_scope",
4782
+ statusCode: 401
4783
+ },
4784
+ { statusCode: 404 }
4785
+ ]
4786
+ });
4787
+ const AddTransferTrackersErrorSpec = definePutioOperationErrorSpec({
4788
+ domain: "transfers",
4789
+ operation: "addTrackers",
4790
+ knownErrors: [
4791
+ {
4792
+ errorType: "NO_TRACKERS",
4793
+ statusCode: 400
4794
+ },
4795
+ {
4796
+ errorType: "TORRENT_NOT_ACTIVE",
4797
+ statusCode: 400
4798
+ },
4799
+ {
4800
+ errorType: "invalid_scope",
4801
+ statusCode: 401
4802
+ },
4803
+ { statusCode: 402 },
4804
+ {
4805
+ errorType: "TRANSFER_NOT_FOUND",
4806
+ statusCode: 404
4807
+ },
4808
+ {
4809
+ errorType: "TRANSFER_INVALID",
4810
+ statusCode: 500
4811
+ },
4812
+ {
4813
+ errorType: "TORRENT_NOT_READY",
4814
+ statusCode: 500
4815
+ }
4816
+ ]
4817
+ });
4818
+ const RemoveTransfersErrorSpec = definePutioOperationErrorSpec({
4819
+ domain: "transfers",
4820
+ operation: "remove",
4821
+ knownErrors: [{ statusCode: 400 }, {
4822
+ errorType: "invalid_scope",
4823
+ statusCode: 401
4824
+ }]
4825
+ });
4547
4826
  const AddTransferErrorSpec = definePutioOperationErrorSpec({
4548
4827
  domain: "transfers",
4549
4828
  operation: "add",
@@ -4647,6 +4926,10 @@ const getTransfer = (id) => requestJson(TransferEnvelopeSchema, {
4647
4926
  method: "GET",
4648
4927
  path: `/v2/transfers/${encodePathSegment(id)}`
4649
4928
  }).pipe(selectJsonField("transfer"), withOperationErrors(GetTransferErrorSpec));
4929
+ const getTransferTorrent = (id) => Schema.decodeUnknownEffect(TransferIdSchema)(id).pipe(Effect.mapError(mapDecodeErrorToValidationError), Effect.flatMap((decodedId) => requestArrayBuffer({
4930
+ method: "GET",
4931
+ path: `/v2/transfers/${encodePathSegment(decodedId)}/torrent`
4932
+ })), withOperationErrors(GetTransferTorrentErrorSpec));
4650
4933
  const countTransfers = () => requestJson(TransferCountEnvelopeSchema, {
4651
4934
  method: "GET",
4652
4935
  path: "/v2/transfers/count"
@@ -4675,6 +4958,14 @@ const addManyTransfers = (inputs) => requestJson(TransfersAddMultiEnvelopeSchema
4675
4958
  method: "POST",
4676
4959
  path: "/v2/transfers/add-multi"
4677
4960
  }).pipe(selectJsonFields("errors", "transfers"), withOperationErrors(AddManyTransfersErrorSpec));
4961
+ const addTransferTrackers = (input) => Schema.decodeUnknownEffect(TransferAddTrackersInputSchema)(input).pipe(Effect.mapError(mapDecodeErrorToValidationError), Effect.flatMap((decodedInput) => requestJson(OkResponseSchema, {
4962
+ body: {
4963
+ type: "form",
4964
+ value: { trackers: joinCsv(decodedInput.trackers) }
4965
+ },
4966
+ method: "POST",
4967
+ path: `/v2/transfers/add-trackers/${encodePathSegment(decodedInput.transferId)}`
4968
+ })), Effect.asVoid, withOperationErrors(AddTransferTrackersErrorSpec));
4678
4969
  const cancelTransfers = (ids) => requestJson(OkResponseSchema, {
4679
4970
  body: {
4680
4971
  type: "form",
@@ -4691,6 +4982,14 @@ const cleanTransfers = (ids = []) => requestJson(TransfersCleanEnvelopeSchema, {
4691
4982
  method: "POST",
4692
4983
  path: "/v2/transfers/clean"
4693
4984
  }).pipe(selectJsonFields("deleted_ids"));
4985
+ const removeTransfers = (input) => Schema.decodeUnknownEffect(TransferRemoveInputSchema)(input).pipe(Effect.mapError(mapDecodeErrorToValidationError), Effect.flatMap((decodedInput) => requestJson(OkResponseSchema, {
4986
+ body: {
4987
+ type: "form",
4988
+ value: decodedInput.ids !== void 0 ? { transfer_ids: joinCsv(decodedInput.ids) } : { remove_filter: decodedInput.filter }
4989
+ },
4990
+ method: "POST",
4991
+ path: "/v2/transfers/remove"
4992
+ })), Effect.asVoid, withOperationErrors(RemoveTransfersErrorSpec));
4694
4993
  const retryTransfer = (id) => requestJson(TransferEnvelopeSchema, {
4695
4994
  body: {
4696
4995
  type: "form",
@@ -4924,6 +5223,7 @@ const createPutioSdkEffectClient = () => ({
4924
5223
  buildLoginUrl: buildAuthLoginUrl,
4925
5224
  checkCodeMatch,
4926
5225
  clients,
5226
+ exchangeAuthorizationCode: exchangeOAuthAuthorizationCode,
4927
5227
  exists,
4928
5228
  forgotPassword,
4929
5229
  getCode,
@@ -4978,9 +5278,12 @@ const createPutioSdkEffectClient = () => ({
4978
5278
  getStatus: getIftttStatus,
4979
5279
  sendEvent: sendIftttEvent
4980
5280
  },
5281
+ podcast: { getLinks: getPodcastLinks },
4981
5282
  files: {
5283
+ canWrite: canWriteFile,
4982
5284
  continue: continueFiles,
4983
5285
  continueSearch,
5286
+ copy: copyFile,
4984
5287
  convertToMp4: convertFileToMp4,
4985
5288
  convertManyToMp4: convertFilesToMp4,
4986
5289
  convertSelectionToMp4: convertFileSelectionToMp4,
@@ -4997,6 +5300,7 @@ const createPutioSdkEffectClient = () => ({
4997
5300
  getApiDownloadUrl,
4998
5301
  getApiMp4DownloadUrl,
4999
5302
  get: getFile,
5303
+ getChild: getFileChild,
5000
5304
  getDownloadUrl,
5001
5305
  getHlsStreamUrl,
5002
5306
  getMp4Status,
@@ -5009,10 +5313,13 @@ const createPutioSdkEffectClient = () => ({
5009
5313
  moveSelection: moveFileSelection,
5010
5314
  putMp4ToMyFiles,
5011
5315
  rename: renameFile,
5316
+ resetSortSettings: resetFileSortSettings,
5012
5317
  resetStartFrom,
5013
5318
  search: searchFiles,
5319
+ setSort: setFileSort,
5014
5320
  setWatchStatus: setFilesWatchStatus,
5015
5321
  setStartFrom,
5322
+ touch: touchFiles,
5016
5323
  upload: uploadFile
5017
5324
  },
5018
5325
  friendInvites: {
@@ -5112,14 +5419,17 @@ const createPutioSdkEffectClient = () => ({
5112
5419
  transfers: {
5113
5420
  add: addTransfer,
5114
5421
  addMany: addManyTransfers,
5422
+ addTrackers: addTransferTrackers,
5115
5423
  cancel: cancelTransfers,
5116
5424
  clean: cleanTransfers,
5117
5425
  continue: continueTransfers,
5118
5426
  count: countTransfers,
5119
5427
  get: getTransfer,
5428
+ getTorrent: getTransferTorrent,
5120
5429
  info: getTransferInfo,
5121
5430
  list: listTransfers,
5122
5431
  reannounce: reannounceTransfer,
5432
+ remove: removeTransfers,
5123
5433
  retry: retryTransfer,
5124
5434
  stopRecording: stopTransferRecording
5125
5435
  },
@@ -5155,6 +5465,9 @@ const createPutioSdkPromiseClient = (initialConfig = {}) => {
5155
5465
  function getFileById(input) {
5156
5466
  return provideSdk(config, getFile(input));
5157
5467
  }
5468
+ function getChildByName(input) {
5469
+ return provideSdk(config, getFileChild(input));
5470
+ }
5158
5471
  return {
5159
5472
  dispose: () => disposePromiseClientRuntime(config),
5160
5473
  setAccessToken: (accessToken) => {
@@ -5182,6 +5495,7 @@ const createPutioSdkPromiseClient = (initialConfig = {}) => {
5182
5495
  }),
5183
5496
  checkCodeMatch: (code) => provideSdk(config, checkCodeMatch(code)),
5184
5497
  clients: () => provideSdk(config, clients()),
5498
+ exchangeAuthorizationCode: (input) => provideSdk(config, exchangeOAuthAuthorizationCode(input)),
5185
5499
  exists: (key, value) => provideSdk(config, exists(key, value)),
5186
5500
  forgotPassword: (mail) => provideSdk(config, forgotPassword(mail)),
5187
5501
  getCode: (input) => provideSdk(config, getCode(input)),
@@ -5236,9 +5550,12 @@ const createPutioSdkPromiseClient = (initialConfig = {}) => {
5236
5550
  getStatus: () => provideSdk(config, getIftttStatus()),
5237
5551
  sendEvent: (input) => provideSdk(config, sendIftttEvent(input))
5238
5552
  },
5553
+ podcast: { getLinks: (input) => provideSdk(config, getPodcastLinks(input)) },
5239
5554
  files: {
5555
+ canWrite: (fileId) => provideSdk(config, canWriteFile(fileId)),
5240
5556
  continue: (cursor, query) => provideSdk(config, continueFiles(cursor, query)),
5241
5557
  continueSearch: (cursor, query) => provideSdk(config, continueSearch(cursor, query)),
5558
+ copy: (input) => provideSdk(config, copyFile(input)),
5242
5559
  convertManyToMp4: (ids) => provideSdk(config, convertFilesToMp4(ids)),
5243
5560
  convertSelectionToMp4: (selection) => provideSdk(config, convertFileSelectionToMp4(selection)),
5244
5561
  createUploadFormData: createFileUploadFormData,
@@ -5256,6 +5573,7 @@ const createPutioSdkPromiseClient = (initialConfig = {}) => {
5256
5573
  getApiDownloadUrl: (fileId, options) => provideSdk(config, getApiDownloadUrl(fileId, options)),
5257
5574
  getApiMp4DownloadUrl: (fileId, options) => provideSdk(config, getApiMp4DownloadUrl(fileId, options)),
5258
5575
  get: getFileById,
5576
+ getChild: getChildByName,
5259
5577
  getDownloadUrl: (fileId) => provideSdk(config, getDownloadUrl(fileId)),
5260
5578
  getHlsStreamUrl: (fileId, options) => provideSdk(config, getHlsStreamUrl(fileId, options)),
5261
5579
  getMp4Status: (fileId) => provideSdk(config, getMp4Status(fileId)),
@@ -5268,10 +5586,13 @@ const createPutioSdkPromiseClient = (initialConfig = {}) => {
5268
5586
  moveSelection: (selection, parentId) => provideSdk(config, moveFileSelection(selection, parentId)),
5269
5587
  putMp4ToMyFiles: (fileId) => provideSdk(config, putMp4ToMyFiles(fileId)),
5270
5588
  rename: (input) => provideSdk(config, renameFile(input)),
5589
+ resetSortSettings: () => provideSdk(config, resetFileSortSettings()),
5271
5590
  resetStartFrom: (fileId) => provideSdk(config, resetStartFrom(fileId)),
5272
5591
  search: (query) => provideSdk(config, searchFiles(query)),
5592
+ setSort: (input) => provideSdk(config, setFileSort(input)),
5273
5593
  setWatchStatus: (selection) => provideSdk(config, setFilesWatchStatus(selection)),
5274
5594
  setStartFrom: (input) => provideSdk(config, setStartFrom(input)),
5595
+ touch: (input) => provideSdk(config, touchFiles(input)),
5275
5596
  upload: (input) => provideSdk(config, uploadFile(input))
5276
5597
  },
5277
5598
  friendInvites: {
@@ -5371,14 +5692,17 @@ const createPutioSdkPromiseClient = (initialConfig = {}) => {
5371
5692
  transfers: {
5372
5693
  add: (input) => provideSdk(config, addTransfer(input)),
5373
5694
  addMany: (inputs) => provideSdk(config, addManyTransfers(inputs)),
5695
+ addTrackers: (input) => provideSdk(config, addTransferTrackers(input)),
5374
5696
  cancel: (ids) => provideSdk(config, cancelTransfers(ids)),
5375
5697
  clean: (ids) => provideSdk(config, cleanTransfers(ids)),
5376
5698
  continue: (cursor, query) => provideSdk(config, continueTransfers(cursor, query)),
5377
5699
  count: () => provideSdk(config, countTransfers()),
5378
5700
  get: (id) => provideSdk(config, getTransfer(id)),
5701
+ getTorrent: (id) => provideSdk(config, getTransferTorrent(id)),
5379
5702
  info: (urls) => provideSdk(config, getTransferInfo(urls)),
5380
5703
  list: (query) => provideSdk(config, listTransfers(query)),
5381
5704
  reannounce: (id) => provideSdk(config, reannounceTransfer(id)),
5705
+ remove: (input) => provideSdk(config, removeTransfers(input)),
5382
5706
  retry: (id) => provideSdk(config, retryTransfer(id)),
5383
5707
  stopRecording: (id) => provideSdk(config, stopTransferRecording(id))
5384
5708
  },
@@ -5391,6 +5715,6 @@ const createPutioSdkPromiseClient = (initialConfig = {}) => {
5391
5715
  };
5392
5716
  };
5393
5717
  //#endregion
5394
- export { AccountClearOptionsSchema, AccountConfirmationSchema, AccountConfirmationsErrorSpec, AccountDiskSchema, AccountInfoBaseSchema, AccountInfoBroadSchema, AccountInfoQuerySchema, AccountSettingsSchema, AccountSubtitleLanguageSchema, AccountTwoFactorSettingsSchema, AccountWarningsSchema, AddManyTransfersErrorSpec, AddTransferErrorSpec, AppSpecificPasswordSchema, ApproveFriendRequestErrorSpec, AuthorizationCodeSchema, CancelZipErrorSpec, ClearEventsErrorSpec, ClearRssFeedLogsErrorSpec, ClientsErrorSpec, ConfirmFastspringOrderErrorSpec, ContinueFilesErrorSpec, ContinuePublicShareFilesErrorSpec, ContinueTrashErrorSpec, CountWaitingRequestsErrorSpec, CreateAppSpecificPasswordErrorSpec, CreateAppSpecificPasswordInputSchema, CreateCoinbaseChargeErrorSpec, CreateDownloadLinksErrorSpec, CreateFamilyInviteErrorSpec, CreateFolderErrorSpec, CreateFriendInviteErrorSpec, CreateOAuthAppErrorSpec, CreateOpenNodeChargeErrorSpec, CreatePaddleBillingUpdatePaymentMethodTransactionErrorSpec, CreatePaddleWaitingPaymentErrorSpec, CreatePublicShareErrorSpec, CreateRssFeedErrorSpec, CreateSharingCloneErrorSpec, CreateZipErrorSpec, DEFAULT_PUTIO_API_BASE_URL, DEFAULT_PUTIO_UPLOAD_BASE_URL, DEFAULT_PUTIO_WEB_APP_URL, DeleteAllAppSpecificPasswordsErrorSpec, DeleteAppSpecificPasswordErrorSpec, DeleteEventErrorSpec, DeleteOAuthAppErrorSpec, DeletePublicShareErrorSpec, DeleteRssFeedErrorSpec, DeleteTrashErrorSpec, DenyFriendRequestErrorSpec, DownloadLinksCreateInputSchema, DownloadLinksInfoSchema, DownloadLinksPayloadSchema, DownloadLinksStatusSchema, DownloadUrlErrorSpec, EmptyTrashErrorSpec, EventsListQuerySchema, FamilyInviteLookupErrorSpec, FamilyInviteSchema, FamilyMemberSchema, FileActiveConversionSchema, FileActiveConversionsErrorSpec, FileBaseSchema, FileBreadcrumbSchema, FileBroadSchema, FileConversionStatusSchema, FileExtractionSchema, FileExtractionStatusSchema, FileExtractionsErrorSpec, FileMediaInfoFormatSchema, FileMediaInfoSchema, FileMediaInfoStreamSchema, FileMediaMetadataSchema, FileMp4ErrorSpec, FileMp4MutationErrorSpec, FileQuerySchema, FileSortSchema, FileSubtitleSchema, FileSubtitlesErrorSpec, FileTypeSchema, FileUploadErrorSpec, FileWatchStatusErrorSpec, FilesListEnvelopeSchema, FilesListQuerySchema, FilesMoveErrorSchema, FilesSearchQuerySchema, FolderTypeSchema, ForgotPasswordErrorSpec, FriendBaseSchema, FriendInviteJoinedUserSchema, FriendInviteJoinedUserStatusSchema, FriendInviteLookupErrorSpec, FriendInviteSchema, FriendSchema, FriendSharedFolderErrorSpec, GenerateTOTPErrorSpec, GenerateTOTPResponseSchema, GetDownloadLinksErrorSpec, GetEventTorrentErrorSpec, GetFileErrorSpec, GetIftttStatusErrorSpec, GetOAuthAppErrorSpec, GetPaddleBillingInvoiceUrlErrorSpec, GetPaymentInfoErrorSpec, GetPaymentVoucherInfoErrorSpec, GetPublicShareErrorSpec, GetPublicShareFileUrlErrorSpec, GetRssFeedErrorSpec, GetSharedWithErrorSpec, GetSharingCloneInfoErrorSpec, GetTransferErrorSpec, GetZipErrorSpec, GiftCardLookupErrorSpec, GrantsErrorSpec, HistoryEventSchema, HistoryFileFromRssDeletedEventSchema, HistoryFileSharedEventSchema, HistoryKnownEventTypeSchema, HistoryPrivateTorrentPinEventSchema, HistoryRssFilterPausedEventSchema, HistoryTransferCallbackErrorEventSchema, HistoryTransferCompletedEventSchema, HistoryTransferErrorEventSchema, HistoryTransferFromRssErrorEventSchema, HistoryUploadEventSchema, HistoryVoucherEventSchema, HistoryZipCreatedEventSchema, JoinFamilyErrorSpec, JsonObjectSchema, JsonValueSchema, LinkDeviceErrorSpec, ListAppSpecificPasswordsErrorSpec, ListEventsErrorSpec, ListFamilyInvitesErrorSpec, ListFamilyMembersErrorSpec, ListFriendInvitesErrorSpec, ListFriendsErrorSpec, ListPaymentHistoryErrorSpec, ListPaymentInvitesErrorSpec, ListPaymentOptionsErrorSpec, ListPaymentPlansErrorSpec, ListPublicShareFilesErrorSpec, ListPublicSharesErrorSpec, ListRssFeedItemsErrorSpec, ListRssFeedsErrorSpec, ListSentRequestsErrorSpec, ListSharedFilesErrorSpec, ListTransfersErrorSpec, ListTrashErrorSpec, ListTunnelRoutesErrorSpec, ListWaitingRequestsErrorSpec, ListZipsErrorSpec, LoginErrorSpec, LoginResponseSchema, MyOAuthAppSchema, OAuthAppCreateInputSchema, OAuthAppSchema, OAuthAppSessionSchema, OAuthAppUpdateInputSchema, OAuthAppWithTokenSchema, OAuthSetIconInputSchema, OkResponseSchema, OwnedOAuthAppSchema, PasInfoSchema, PauseRssFeedErrorSpec, PaymentChangePlanPreviewSchema, PaymentChangePlanSubmitSchema, PaymentHistoryItemSchema, PaymentInfoPlanSchema, PaymentInfoSchema, PaymentInviteSchema, PaymentOptionPlanTypeSchema, PaymentOptionSchema, PaymentPlanGroupSchema, PaymentPlanTypeSchema, PaymentProviderNameSchema, PaymentProviderSchema, PaymentSubscriptionInfoSchema, PaymentTypeSchema, PaymentVoucherInfoSchema, PopularOAuthAppSchema, PreviewPaymentChangePlanErrorSpec, PublicShareListQuerySchema, PublicShareSchema, PutioApiError, PutioAuthError, PutioConfigurationError, PutioErrorEnvelopeSchema, PutioHttpClient, PutioOperationError, PutioRateLimitError, PutioSdk, PutioSdkConfig, PutioTransportError, PutioValidationError, QueryFilesErrorSpec, QueryOAuthAppsErrorSpec, ReannounceTransferErrorSpec, RecoveryCodesErrorSpec, RedeemPaymentVoucherErrorSpec, RegenerateOAuthAppTokenErrorSpec, RegenerateRecoveryCodesErrorSpec, RegisterErrorSpec, RegisterInputSchema, RemoveFamilyMemberErrorSpec, RemoveFriendErrorSpec, RenameFileErrorSpec, ReportPaymentsErrorSpec, ResetPasswordErrorSpec, RestoreTrashErrorSpec, ResumeRssFeedErrorSpec, RetryAllRssFeedItemsErrorSpec, RetryRssFeedItemErrorSpec, RetryTransferErrorSpec, RevokeAllOAuthClientsErrorSpec, RevokeOAuthClientErrorSpec, RevokeOAuthGrantErrorSpec, RssFeedItemFailedSchema, RssFeedItemSchema, RssFeedItemSucceededSchema, RssFeedParamsSchema, RssFeedSchema, SaveAccountSettingsErrorSpec, SaveAccountSettingsPayloadSchema, SearchFilesErrorSpec, SearchFriendsErrorSpec, SendFriendRequestErrorSpec, SendIftttEventErrorSpec, ShareFilesErrorSpec, SharedFileSchema, SharedFileShareSchema, SharedFileSharedWithSchema, SharingCloneInfoSchema, SharingCloneInputSchema, SharingCloneStatusSchema, SharingShareInputSchema, SharingUnshareInputSchema, StartFromErrorSpec, StopRecordingTransferErrorSpec, StopSubscriptionErrorSpec, SubmitPaymentChangePlanErrorSpec, TransferAddInputSchema, TransferBaseSchema, TransferSchema, TransferStatusSchema, TransferTypeSchema, TransfersListQuerySchema, TrashFileSchema, TunnelRouteSchema, TwoFactorRecoveryCodesSchema, UnshareFileErrorSpec, UpdateOAuthAppErrorSpec, UpdateRssFeedErrorSpec, UserSearchResultSchema, UserSubscriptionStatusSchema, ValidateTokenResponseSchema, VerifyTOTPErrorSpec, VerifyTOTPResponseSchema, VoucherLookupErrorSpec, ZipStatusSchema, addManyTransfers, addTransfer, approveFriendRequest, buildAuthLoginUrl, buildFileApiContentUrl, buildFileApiDownloadUrl, buildFileApiMp4DownloadUrl, buildFileHlsStreamUrl, buildOAuthAppIconUrl, buildOAuthAuthorizeUrl, buildPutioUrl, cancelTransfers, cancelZip, checkCodeMatch, classifyPaymentChangePlanResponse, cleanTransfers, clearAccount, clearEvents, clearRssFeedLogs, clients, cloneSharedFiles, confirmFastspringOrder, continueFiles, continuePublicShareFiles, continueSearch, continueTransfers, continueTrash, convertFileSelectionToMp4, convertFileToMp4, convertFilesToMp4, countTransfers, countWaitingRequests, createAppSpecificPassword, createCoinbaseCharge, createDownloadLinks, createFamilyInvite, createFileUploadFormData, createFileUploadRequest, createFolder, createFriendInvite, createOAuthApp, createOpenNodeCharge, createPaddleBillingUpdatePaymentMethodTransaction, createPaddleWaitingPayment, createPublicShare, createPutioSdkEffectClient, createPutioSdkPromiseClient, createRssFeed, createZip, decodePutioErrorEnvelope, definePutioOperationErrorSpec, deleteAllAppSpecificPasswords, deleteAppSpecificPassword, deleteConfigKey, deleteEvent, deleteFileExtraction, deleteFileMp4, deleteFileSelection, deleteFiles, deleteOAuthApp, deletePublicShare, deleteRssFeed, deleteTrash, denyFriendRequest, destroyAccount, emptyTrash, encodePathSegment, exists, extractFiles, fallbackPutioErrorEnvelope, findNextFile, findNextVideo, forgotPassword, generateTOTP, getAccountInfo, getAccountSettings, getApiContentUrl, getApiDownloadUrl, getApiMp4DownloadUrl, getCode, getConfigKey, getConfigKeyWith, getDownloadLinks, getDownloadUrl, getEventTorrent, getFamilyInvite, getFile, getFriendInvite, getFriendSharedFolder, getGiftCard, getHlsStreamUrl, getIftttStatus, getMp4Status, getOAuthApp, getPaddleBillingInvoiceUrl, getPaymentInfo, getPaymentVoucherInfo, getPopularOAuthApps, getPublicShare, getPublicShareFileUrl, getRecoveryCodes, getRssFeed, getSharedWith, getSharingCloneInfo, getStartFrom, getTransfer, getTransferInfo, getVoucher, getZip, grants, isPutioApiError, isPutioAuthError, isPutioErrorEnvelope, isPutioOperationError, isPutioRateLimitError, joinFamily, linkDevice, listAccountConfirmations, listAccountSubtitleLanguages, listActiveMp4Conversions, listAppSpecificPasswords, listEvents, listFamilyInvites, listFamilyMembers, listFileExtractions, listFileSubtitles, listFriendInvites, listFriends, listPaymentHistory, listPaymentInvites, listPaymentOptions, listPaymentPlans, listPublicShareFiles, listPublicShares, listRssFeedItems, listRssFeeds, listSentRequests, listSharedFiles, listTransfers, listTrash, listTunnelRoutes, listWaitingRequests, listZips, login, logout, makePutioFetchClient, makePutioFetchLayer, makePutioSdkConfig, makePutioSdkEffectClientLayer, makePutioSdkLayer, makePutioSdkLiveClientLayer, makePutioSdkLiveLayer, makeResponseError, mapConfigurationError, mapDecodeErrorToValidationError, mapTransportError, moveFileSelection, moveFiles, parseErrorBody, pauseRssFeed, previewPaymentChangePlan, putMp4ToMyFiles, queryFiles, queryOAuthApps, readConfig, readConfigWith, reannounceTransfer, redeemPaymentVoucher, regenerateOAuthAppToken, regenerateRecoveryCodes, register, removeFamilyMember, removeFriend, renameFile, reportPayments, requestArrayBuffer, requestJson, requestVoid, resetPassword, resetStartFrom, responseRateLimitHeaders, restoreTrash, resumeRssFeed, retryAllRssFeedItems, retryRssFeedItem, retryTransfer, revokeAllClients, revokeApp, revokeClient, saveAccountSettings, searchFiles, searchFriends, selectJsonField, selectJsonFields, sendFriendRequest, sendIftttEvent, setConfigKey, setFilesWatchStatus, setOAuthAppIcon, setStartFrom, shareFiles, stopPaymentSubscription, stopTransferRecording, submitPaymentChangePlan, unshareFile, updateOAuthApp, updateRssFeed, uploadFile, validateToken, verifyTOTP, withOperationErrors, writeConfig };
5718
+ export { AccountClearOptionsSchema, AccountConfirmationSchema, AccountConfirmationsErrorSpec, AccountDiskSchema, AccountInfoBaseSchema, AccountInfoBroadSchema, AccountInfoQuerySchema, AccountSettingsSchema, AccountSubtitleLanguageSchema, AccountTwoFactorSettingsSchema, AccountWarningsSchema, AddManyTransfersErrorSpec, AddTransferErrorSpec, AddTransferTrackersErrorSpec, AppSpecificPasswordSchema, ApproveFriendRequestErrorSpec, AuthorizationCodeSchema, CanWriteFileErrorSpec, CancelZipErrorSpec, ClearEventsErrorSpec, ClearRssFeedLogsErrorSpec, ClientsErrorSpec, ConfirmFastspringOrderErrorSpec, ContinueFilesErrorSpec, ContinuePublicShareFilesErrorSpec, ContinueTrashErrorSpec, CopyFileErrorSpec, CountWaitingRequestsErrorSpec, CreateAppSpecificPasswordErrorSpec, CreateAppSpecificPasswordInputSchema, CreateCoinbaseChargeErrorSpec, CreateDownloadLinksErrorSpec, CreateFamilyInviteErrorSpec, CreateFolderErrorSpec, CreateFriendInviteErrorSpec, CreateOAuthAppErrorSpec, CreateOpenNodeChargeErrorSpec, CreatePaddleBillingUpdatePaymentMethodTransactionErrorSpec, CreatePaddleWaitingPaymentErrorSpec, CreatePublicShareErrorSpec, CreateRssFeedErrorSpec, CreateSharingCloneErrorSpec, CreateZipErrorSpec, DEFAULT_PUTIO_API_BASE_URL, DEFAULT_PUTIO_UPLOAD_BASE_URL, DEFAULT_PUTIO_WEB_APP_URL, DeleteAllAppSpecificPasswordsErrorSpec, DeleteAppSpecificPasswordErrorSpec, DeleteEventErrorSpec, DeleteOAuthAppErrorSpec, DeletePublicShareErrorSpec, DeleteRssFeedErrorSpec, DeleteTrashErrorSpec, DenyFriendRequestErrorSpec, DownloadLinksCreateInputSchema, DownloadLinksInfoSchema, DownloadLinksPayloadSchema, DownloadLinksStatusSchema, DownloadUrlErrorSpec, EmptyTrashErrorSpec, EventsListQuerySchema, FamilyInviteLookupErrorSpec, FamilyInviteSchema, FamilyMemberSchema, FileActiveConversionSchema, FileActiveConversionsErrorSpec, FileBaseSchema, FileBreadcrumbSchema, FileBroadSchema, FileConversionStatusSchema, FileCopyInputSchema, FileExtractionSchema, FileExtractionStatusSchema, FileExtractionsErrorSpec, FileGetChildInputSchema, FileMediaInfoFormatSchema, FileMediaInfoSchema, FileMediaInfoStreamSchema, FileMediaMetadataSchema, FileMp4ErrorSpec, FileMp4MutationErrorSpec, FileQuerySchema, FileSetSortInputSchema, FileSortSchema, FileSubtitleSchema, FileSubtitlesErrorSpec, FileTouchInputSchema, FileTypeSchema, FileUploadErrorSpec, FileWatchStatusErrorSpec, FilesListEnvelopeSchema, FilesListQuerySchema, FilesMoveErrorSchema, FilesSearchQuerySchema, FolderTypeSchema, ForgotPasswordErrorSpec, FriendBaseSchema, FriendInviteJoinedUserSchema, FriendInviteJoinedUserStatusSchema, FriendInviteLookupErrorSpec, FriendInviteSchema, FriendSchema, FriendSharedFolderErrorSpec, GenerateTOTPErrorSpec, GenerateTOTPResponseSchema, GetDownloadLinksErrorSpec, GetEventTorrentErrorSpec, GetFileChildErrorSpec, GetFileErrorSpec, GetIftttStatusErrorSpec, GetOAuthAppErrorSpec, GetPaddleBillingInvoiceUrlErrorSpec, GetPaymentInfoErrorSpec, GetPaymentVoucherInfoErrorSpec, GetPublicShareErrorSpec, GetPublicShareFileUrlErrorSpec, GetRssFeedErrorSpec, GetSharedWithErrorSpec, GetSharingCloneInfoErrorSpec, GetTransferErrorSpec, GetTransferTorrentErrorSpec, GetZipErrorSpec, GiftCardLookupErrorSpec, GrantsErrorSpec, HistoryEventSchema, HistoryFileFromRssDeletedEventSchema, HistoryFileSharedEventSchema, HistoryKnownEventTypeSchema, HistoryPrivateTorrentPinEventSchema, HistoryRssFilterPausedEventSchema, HistoryTransferCallbackErrorEventSchema, HistoryTransferCompletedEventSchema, HistoryTransferErrorEventSchema, HistoryTransferFromRssErrorEventSchema, HistoryUploadEventSchema, HistoryVoucherEventSchema, HistoryZipCreatedEventSchema, JoinFamilyErrorSpec, JsonObjectSchema, JsonValueSchema, LinkDeviceErrorSpec, ListAppSpecificPasswordsErrorSpec, ListEventsErrorSpec, ListFamilyInvitesErrorSpec, ListFamilyMembersErrorSpec, ListFriendInvitesErrorSpec, ListFriendsErrorSpec, ListPaymentHistoryErrorSpec, ListPaymentInvitesErrorSpec, ListPaymentOptionsErrorSpec, ListPaymentPlansErrorSpec, ListPublicShareFilesErrorSpec, ListPublicSharesErrorSpec, ListRssFeedItemsErrorSpec, ListRssFeedsErrorSpec, ListSentRequestsErrorSpec, ListSharedFilesErrorSpec, ListTransfersErrorSpec, ListTrashErrorSpec, ListTunnelRoutesErrorSpec, ListWaitingRequestsErrorSpec, ListZipsErrorSpec, LoginErrorSpec, LoginResponseSchema, MyOAuthAppSchema, OAuthAppCreateInputSchema, OAuthAppSchema, OAuthAppSessionSchema, OAuthAppUpdateInputSchema, OAuthAppWithTokenSchema, OAuthAuthorizationCodeExchangeError, OAuthAuthorizationCodeExchangeErrorCodeSchema, OAuthAuthorizationCodeExchangeInputSchema, OAuthSetIconInputSchema, OkResponseSchema, OwnedOAuthAppSchema, PasInfoSchema, PauseRssFeedErrorSpec, PaymentChangePlanPreviewSchema, PaymentChangePlanSubmitSchema, PaymentHistoryItemSchema, PaymentInfoPlanSchema, PaymentInfoSchema, PaymentInviteSchema, PaymentOptionPlanTypeSchema, PaymentOptionSchema, PaymentPlanGroupSchema, PaymentPlanTypeSchema, PaymentProviderNameSchema, PaymentProviderSchema, PaymentSubscriptionInfoSchema, PaymentTypeSchema, PaymentVoucherInfoSchema, PodcastGetLinksInputSchema, PodcastLinkTypeSchema, PodcastLinksSchema, PopularOAuthAppSchema, PreviewPaymentChangePlanErrorSpec, PublicShareListQuerySchema, PublicShareSchema, PutioApiError, PutioAuthError, PutioConfigurationError, PutioErrorEnvelopeSchema, PutioHttpClient, PutioOperationError, PutioRateLimitError, PutioSdk, PutioSdkConfig, PutioTransportError, PutioValidationError, QueryFilesErrorSpec, QueryOAuthAppsErrorSpec, ReannounceTransferErrorSpec, RecoveryCodesErrorSpec, RedeemPaymentVoucherErrorSpec, RegenerateOAuthAppTokenErrorSpec, RegenerateRecoveryCodesErrorSpec, RegisterErrorSpec, RegisterInputSchema, RemoveFamilyMemberErrorSpec, RemoveFriendErrorSpec, RemoveTransfersErrorSpec, RenameFileErrorSpec, ReportPaymentsErrorSpec, ResetPasswordErrorSpec, RestoreTrashErrorSpec, ResumeRssFeedErrorSpec, RetryAllRssFeedItemsErrorSpec, RetryRssFeedItemErrorSpec, RetryTransferErrorSpec, RevokeAllOAuthClientsErrorSpec, RevokeOAuthClientErrorSpec, RevokeOAuthGrantErrorSpec, RssFeedItemFailedSchema, RssFeedItemSchema, RssFeedItemSucceededSchema, RssFeedParamsSchema, RssFeedSchema, SaveAccountSettingsErrorSpec, SaveAccountSettingsPayloadSchema, SearchFilesErrorSpec, SearchFriendsErrorSpec, SendFriendRequestErrorSpec, SendIftttEventErrorSpec, ShareFilesErrorSpec, SharedFileSchema, SharedFileShareSchema, SharedFileSharedWithSchema, SharingCloneInfoSchema, SharingCloneInputSchema, SharingCloneStatusSchema, SharingShareInputSchema, SharingUnshareInputSchema, StartFromErrorSpec, StopRecordingTransferErrorSpec, StopSubscriptionErrorSpec, SubmitPaymentChangePlanErrorSpec, TouchFilesErrorSpec, TransferAddInputSchema, TransferAddTrackersInputSchema, TransferBaseSchema, TransferRemoveInputSchema, TransferSchema, TransferStatusSchema, TransferTypeSchema, TransfersListQuerySchema, TrashFileSchema, TunnelRouteSchema, TwoFactorRecoveryCodesSchema, UnshareFileErrorSpec, UpdateOAuthAppErrorSpec, UpdateRssFeedErrorSpec, UserSearchResultSchema, UserSubscriptionStatusSchema, ValidateTokenResponseSchema, VerifyTOTPErrorSpec, VerifyTOTPResponseSchema, VoucherLookupErrorSpec, ZipStatusSchema, addManyTransfers, addTransfer, addTransferTrackers, approveFriendRequest, buildAuthLoginUrl, buildFileApiContentUrl, buildFileApiDownloadUrl, buildFileApiMp4DownloadUrl, buildFileHlsStreamUrl, buildOAuthAppIconUrl, buildOAuthAuthorizeUrl, buildPutioUrl, canWriteFile, cancelTransfers, cancelZip, checkCodeMatch, classifyPaymentChangePlanResponse, cleanTransfers, clearAccount, clearEvents, clearRssFeedLogs, clients, cloneSharedFiles, confirmFastspringOrder, continueFiles, continuePublicShareFiles, continueSearch, continueTransfers, continueTrash, convertFileSelectionToMp4, convertFileToMp4, convertFilesToMp4, copyFile, countTransfers, countWaitingRequests, createAppSpecificPassword, createCoinbaseCharge, createDownloadLinks, createFamilyInvite, createFileUploadFormData, createFileUploadRequest, createFolder, createFriendInvite, createOAuthApp, createOpenNodeCharge, createPaddleBillingUpdatePaymentMethodTransaction, createPaddleWaitingPayment, createPublicShare, createPutioSdkEffectClient, createPutioSdkPromiseClient, createRssFeed, createZip, decodePutioErrorEnvelope, definePutioOperationErrorSpec, deleteAllAppSpecificPasswords, deleteAppSpecificPassword, deleteConfigKey, deleteEvent, deleteFileExtraction, deleteFileMp4, deleteFileSelection, deleteFiles, deleteOAuthApp, deletePublicShare, deleteRssFeed, deleteTrash, denyFriendRequest, destroyAccount, emptyTrash, encodePathSegment, exchangeOAuthAuthorizationCode, exists, extractFiles, fallbackPutioErrorEnvelope, findNextFile, findNextVideo, forgotPassword, generateTOTP, getAccountInfo, getAccountSettings, getApiContentUrl, getApiDownloadUrl, getApiMp4DownloadUrl, getCode, getConfigKey, getConfigKeyWith, getDownloadLinks, getDownloadUrl, getEventTorrent, getFamilyInvite, getFile, getFileChild, getFriendInvite, getFriendSharedFolder, getGiftCard, getHlsStreamUrl, getIftttStatus, getMp4Status, getOAuthApp, getPaddleBillingInvoiceUrl, getPaymentInfo, getPaymentVoucherInfo, getPodcastLinks, getPopularOAuthApps, getPublicShare, getPublicShareFileUrl, getRecoveryCodes, getRssFeed, getSharedWith, getSharingCloneInfo, getStartFrom, getTransfer, getTransferInfo, getTransferTorrent, getVoucher, getZip, grants, isPutioApiError, isPutioAuthError, isPutioErrorEnvelope, isPutioOperationError, isPutioRateLimitError, joinFamily, linkDevice, listAccountConfirmations, listAccountSubtitleLanguages, listActiveMp4Conversions, listAppSpecificPasswords, listEvents, listFamilyInvites, listFamilyMembers, listFileExtractions, listFileSubtitles, listFriendInvites, listFriends, listPaymentHistory, listPaymentInvites, listPaymentOptions, listPaymentPlans, listPublicShareFiles, listPublicShares, listRssFeedItems, listRssFeeds, listSentRequests, listSharedFiles, listTransfers, listTrash, listTunnelRoutes, listWaitingRequests, listZips, login, logout, makePutioFetchClient, makePutioFetchLayer, makePutioSdkConfig, makePutioSdkEffectClientLayer, makePutioSdkLayer, makePutioSdkLiveClientLayer, makePutioSdkLiveLayer, makeResponseError, mapConfigurationError, mapDecodeErrorToValidationError, mapTransportError, moveFileSelection, moveFiles, parseErrorBody, pauseRssFeed, previewPaymentChangePlan, putMp4ToMyFiles, queryFiles, queryOAuthApps, readConfig, readConfigWith, reannounceTransfer, redeemPaymentVoucher, regenerateOAuthAppToken, regenerateRecoveryCodes, register, removeFamilyMember, removeFriend, removeTransfers, renameFile, reportPayments, requestArrayBuffer, requestJson, requestVoid, resetFileSortSettings, resetPassword, resetStartFrom, responseRateLimitHeaders, restoreTrash, resumeRssFeed, retryAllRssFeedItems, retryRssFeedItem, retryTransfer, revokeAllClients, revokeApp, revokeClient, saveAccountSettings, searchFiles, searchFriends, selectJsonField, selectJsonFields, sendFriendRequest, sendIftttEvent, setConfigKey, setFileSort, setFilesWatchStatus, setOAuthAppIcon, setStartFrom, shareFiles, stopPaymentSubscription, stopTransferRecording, submitPaymentChangePlan, touchFiles, unshareFile, updateOAuthApp, updateRssFeed, uploadFile, validateToken, verifyTOTP, withOperationErrors, writeConfig };
5395
5719
 
5396
5720
  //# sourceMappingURL=index.js.map