@putdotio/sdk 14.0.1 → 15.0.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.
@@ -77,31 +77,31 @@ const responseErrorFields = {
77
77
  body: PutioErrorEnvelopeSchema,
78
78
  status: Schema.Number
79
79
  };
80
- const isPutioApiErrorValue = Schema.is(Schema.Struct({
80
+ const PutioApiErrorValueSchema = Schema.Struct({
81
81
  _tag: Schema.Literal("PutioApiError"),
82
82
  ...responseErrorFields
83
- }));
84
- const isPutioAuthErrorValue = Schema.is(Schema.Struct({
83
+ });
84
+ const PutioAuthErrorValueSchema = Schema.Struct({
85
85
  _tag: Schema.Literal("PutioAuthError"),
86
86
  ...responseErrorFields
87
- }));
88
- const isPutioRateLimitErrorValue = Schema.is(Schema.Struct({
87
+ });
88
+ const PutioRateLimitErrorValueSchema = Schema.Struct({
89
89
  _tag: Schema.Literal("PutioRateLimitError"),
90
90
  ...responseErrorFields,
91
91
  ...RateLimitHeaderFields
92
- }));
93
- const isPutioOperationErrorValue = Schema.is(Schema.Struct({
92
+ });
93
+ const PutioOperationErrorValueSchema = Schema.Struct({
94
94
  _tag: Schema.Literal("PutioOperationError"),
95
95
  ...responseErrorFields,
96
96
  contract: PutioKnownOperationErrorContractSchema,
97
97
  domain: Schema.String,
98
98
  operation: Schema.String,
99
99
  reason: PutioOperationErrorReasonSchema
100
- }));
101
- const isPutioApiError = (value) => isPutioApiErrorValue(value);
102
- const isPutioAuthError = (value) => isPutioAuthErrorValue(value);
103
- const isPutioRateLimitError = (value) => isPutioRateLimitErrorValue(value);
104
- const isPutioOperationError = (value) => isPutioOperationErrorValue(value);
100
+ });
101
+ const isPutioApiError = Schema.is(PutioApiErrorValueSchema);
102
+ const isPutioAuthError = Schema.is(PutioAuthErrorValueSchema);
103
+ const isPutioRateLimitError = Schema.is(PutioRateLimitErrorValueSchema);
104
+ const isPutioOperationError = Schema.is(PutioOperationErrorValueSchema);
105
105
  const fallbackPutioErrorEnvelope = (status) => ({
106
106
  error_message: `put.io API request failed with status ${status}`,
107
107
  status_code: status
@@ -154,12 +154,17 @@ const withOperationErrors = dual(2, (effect, spec) => effect.pipe(Effect.mapErro
154
154
  const PositiveIntegerSchema = Schema.Int.check(Schema.isGreaterThan(0));
155
155
  const NonEmptyStringSchema = Schema.String.check(Schema.isMinLength(1));
156
156
  const decodeAndRun = (schema, input, run) => Schema.decodeUnknownEffect(schema, { onExcessProperty: "error" })(input).pipe(Effect.mapError(mapDecodeErrorToValidationError), Effect.flatMap(run));
157
- const cursorSelectionSchema = (idsField, excludeIdsField, fields) => Schema.Struct({
157
+ const decodeAndRunRedacted = (domain, operation) => (schema, input, run) => Schema.decodeUnknownEffect(schema, { onExcessProperty: "error" })(input).pipe(Effect.mapError(() => new PutioValidationError({ cause: {
158
+ domain,
159
+ operation,
160
+ reason: "Invalid request input"
161
+ } })), Effect.flatMap(run));
162
+ const cursorSelectionSchema = (fields) => Schema.Struct({
158
163
  cursor: Schema.optional(NonEmptyStringSchema),
159
- [excludeIdsField]: Schema.optional(Schema.Array(PositiveIntegerSchema)),
160
- [idsField]: Schema.optional(Schema.Array(PositiveIntegerSchema).check(Schema.isMinLength(1))),
164
+ excludeIds: Schema.optional(Schema.Array(PositiveIntegerSchema)),
165
+ ids: Schema.optional(Schema.Array(PositiveIntegerSchema).check(Schema.isMinLength(1))),
161
166
  ...fields
162
- }).check(Schema.makeFilter((input) => input.cursor !== void 0 || input[idsField] !== void 0, { expected: "a non-empty cursor or file ID selection" }));
167
+ }).check(Schema.makeFilter((input) => input.cursor !== void 0 || input.ids !== void 0, { expected: "a non-empty cursor or file ID selection" }));
163
168
  // src/core/defaults.ts
164
169
  const DEFAULT_PUTIO_API_BASE_URL = "https://api.put.io";
165
170
  const DEFAULT_PUTIO_UPLOAD_BASE_URL = "https://upload.put.io";
@@ -200,8 +205,10 @@ const makePutioFetchClient = (fetchImplementation = globalThis.fetch) => ({ exec
200
205
  }) });
201
206
  const encodePathSegment = (value) => encodeURIComponent(String(value));
202
207
  const absoluteUrlPattern = /^(?:[a-z][a-z\d+.-]*:|\/\/)/i;
208
+ const dotSegmentPattern = /^(?:\.|%2e){1,2}$/i;
203
209
  const normalizeApiPath = (path) => {
204
210
  if (absoluteUrlPattern.test(path)) throw mapConfigurationError("SDK API request paths must be relative to the configured baseUrl");
211
+ if (path.split("/").some((segment) => dotSegmentPattern.test(segment))) throw mapDecodeErrorToValidationError("SDK API request paths must not contain dot segments");
205
212
  return path.startsWith("/") ? path : `/${path}`;
206
213
  };
207
214
  const buildPutioUrl = (baseUrl, path, query) => {
@@ -211,7 +218,7 @@ const buildPutioUrl = (baseUrl, path, query) => {
211
218
  }
212
219
  return url.toString();
213
220
  };
214
- const mapUrlBuildError = (cause) => cause instanceof PutioConfigurationError ? cause : mapConfigurationError(cause);
221
+ const mapUrlBuildError = (cause) => cause instanceof PutioConfigurationError || cause instanceof PutioValidationError ? cause : mapConfigurationError(cause);
215
222
  const OkResponseSchema = Schema.Struct({ status: Schema.Literal("OK") });
216
223
  const isSuccessStatus = (status) => status >= 200 && status < 300;
217
224
  const decodeSuccessJson = (schema, response) => response.json.pipe(Effect.flatMap((json) => Schema.decodeUnknownEffect(schema)(json).pipe(Effect.mapError(mapDecodeErrorToValidationError))));
@@ -288,6 +295,6 @@ function toCursorSelectionForm(selection, idsFieldName = "file_ids") {
288
295
  [idsFieldName]: joinCsv(selection.ids)
289
296
  };
290
297
  }
291
- export { PutioOperationError as A, isPutioOperationError as B, PositiveIntegerSchema as C, PutioAuthError as D, PutioApiError as E, definePutioOperationErrorSpec as F, parseErrorBody as G, mapConfigurationError as H, fallbackPutioErrorEnvelope as I, withOperationErrors as J, responseRateLimitHeaders as K, isPutioApiError as L, PutioTransportError as M, PutioValidationError as N, PutioConfigurationError as O, decodePutioErrorEnvelope as P, isPutioAuthError as R, NonEmptyStringSchema as S, decodeAndRun as T, mapDecodeErrorToValidationError as U, isPutioRateLimitError as V, mapTransportError as W, selectJsonField as _, PutioSdkConfig as a, DEFAULT_PUTIO_UPLOAD_BASE_URL as b, makePutioFetchClient as c, putioSdkLayer as d, putioSdkLiveLayer as f, requestVoid as g, requestText as h, PutioHttpClient as i, PutioRateLimitError as j, PutioErrorEnvelopeSchema as k, makePutioFetchLayer as l, requestJson as m, toCursorSelectionForm as n, buildPutioUrl as o, requestArrayBuffer as p, toPutioResponseError as q, OkResponseSchema as r, encodePathSegment as s, joinCsv as t, normalizePutioSdkOptions as u, selectJsonFields as v, cursorSelectionSchema as w, DEFAULT_PUTIO_WEB_APP_URL as x, DEFAULT_PUTIO_API_BASE_URL as y, isPutioErrorEnvelope as z };
298
+ export { PutioErrorEnvelopeSchema as A, isPutioErrorEnvelope as B, PositiveIntegerSchema as C, PutioApiError as D, decodeAndRunRedacted as E, decodePutioErrorEnvelope as F, mapTransportError as G, isPutioRateLimitError as H, definePutioOperationErrorSpec as I, toPutioResponseError as J, parseErrorBody as K, fallbackPutioErrorEnvelope as L, PutioRateLimitError as M, PutioTransportError as N, PutioAuthError as O, PutioValidationError as P, isPutioApiError as R, NonEmptyStringSchema as S, decodeAndRun as T, mapConfigurationError as U, isPutioOperationError as V, mapDecodeErrorToValidationError as W, withOperationErrors as Y, selectJsonField as _, PutioSdkConfig as a, DEFAULT_PUTIO_UPLOAD_BASE_URL as b, makePutioFetchClient as c, putioSdkLayer as d, putioSdkLiveLayer as f, requestVoid as g, requestText as h, PutioHttpClient as i, PutioOperationError as j, PutioConfigurationError as k, makePutioFetchLayer as l, requestJson as m, toCursorSelectionForm as n, buildPutioUrl as o, requestArrayBuffer as p, responseRateLimitHeaders as q, OkResponseSchema as r, encodePathSegment as s, joinCsv as t, normalizePutioSdkOptions as u, selectJsonFields as v, cursorSelectionSchema as w, DEFAULT_PUTIO_WEB_APP_URL as x, DEFAULT_PUTIO_API_BASE_URL as y, isPutioAuthError as z };
292
299
 
293
- //# sourceMappingURL=forms-B9-NYUR5.js.map
300
+ //# sourceMappingURL=forms-CX5p6TP-.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"forms-CX5p6TP-.js","names":[],"sources":["../src/core/errors.ts","../src/core/validation.ts","../src/core/defaults.ts","../src/core/http.ts","../src/core/forms.ts"],"sourcesContent":["import { Data, Effect, Predicate, Schema } from \"effect\";\nimport { dual, flow } from \"effect/Function\";\n\nexport const PutioErrorEnvelopeSchema = Schema.Struct({\n status: Schema.optional(Schema.String),\n error: Schema.optional(Schema.String),\n error_message: Schema.optional(Schema.String),\n error_type: Schema.optional(Schema.String),\n error_uri: Schema.optional(Schema.String),\n error_id: Schema.optional(Schema.NullOr(Schema.String)),\n extra: Schema.optional(Schema.Record(Schema.String, Schema.Unknown)),\n status_code: Schema.optional(Schema.Int),\n details: Schema.optional(Schema.Unknown),\n});\n\nexport type PutioErrorEnvelope = Schema.Schema.Type<typeof PutioErrorEnvelopeSchema>;\n\nexport interface PutioKnownErrorContract<\n TType extends string = string,\n TStatus extends number = number,\n TBody extends PutioErrorEnvelope = PutioErrorEnvelope,\n> {\n readonly bodySchema?: Schema.Schema<TBody> | undefined;\n readonly errorType?: TType | undefined;\n readonly statusCode?: TStatus | undefined;\n}\n\ntype ContractErrorType<TContract extends PutioKnownErrorContract> =\n TContract extends PutioKnownErrorContract<infer TType, number> ? TType : never;\n\ntype ContractStatusCode<TContract extends PutioKnownErrorContract> =\n TContract extends PutioKnownErrorContract<string, infer TStatus> ? TStatus : never;\n\ntype ContractBody<TContract extends PutioKnownErrorContract> = TContract extends {\n readonly bodySchema: Schema.Schema<infer TBody extends PutioErrorEnvelope>;\n}\n ? TBody\n : PutioErrorEnvelope;\n\nexport type PutioTypedErrorEnvelope<TContract extends PutioKnownErrorContract> =\n TContract extends PutioKnownErrorContract\n ? Omit<ContractBody<TContract>, \"error_message\" | \"error_type\" | \"status_code\"> & {\n readonly error_message?: string;\n readonly error_type?: [ContractErrorType<TContract>] extends [never]\n ? string\n : ContractErrorType<TContract>;\n readonly status_code?: [ContractStatusCode<TContract>] extends [never]\n ? number\n : ContractStatusCode<TContract>;\n }\n : never;\n\nexport interface PutioOperationErrorSpec<\n TDomain extends string = string,\n TOperation extends string = string,\n TContracts extends ReadonlyArray<PutioKnownErrorContract> =\n ReadonlyArray<PutioKnownErrorContract>,\n> {\n readonly domain: TDomain;\n readonly operation: TOperation;\n readonly knownErrors: TContracts;\n}\n\ntype KnownOperationContractOf<TContracts extends ReadonlyArray<PutioKnownErrorContract>> = Extract<\n TContracts[number],\n PutioKnownOperationErrorContract\n>;\n\ntype PutioOperationErrorReason<TContract extends PutioKnownErrorContract> = TContract extends {\n readonly errorType: infer TType extends string;\n}\n ? {\n readonly kind: \"error_type\";\n readonly errorType: TType;\n }\n : TContract extends { readonly statusCode: infer TStatus extends number }\n ? {\n readonly kind: \"status_code\";\n readonly statusCode: TStatus;\n }\n : never;\n\nexport type PutioKnownOperationErrorContract =\n | {\n readonly errorType: string;\n readonly statusCode?: number;\n }\n | {\n readonly errorType?: undefined;\n readonly statusCode: number;\n };\n\nconst isKnownContractMatch = <TContract extends PutioKnownErrorContract>(\n contract: TContract,\n error: PutioApiError | PutioAuthError,\n): contract is TContract & PutioKnownOperationErrorContract => {\n if (contract.bodySchema !== undefined && !Schema.is(contract.bodySchema)(error.body)) {\n return false;\n }\n\n if (contract.errorType !== undefined) {\n if (error.body.error_type !== contract.errorType) {\n return false;\n }\n\n return contract.statusCode === undefined || error.status === contract.statusCode;\n }\n\n if (contract.statusCode !== undefined) {\n return error.status === contract.statusCode;\n }\n\n return false;\n};\n\nconst isMatchableApiError = (error: PutioSdkError): error is PutioApiError | PutioAuthError =>\n Predicate.isTagged(error, \"PutioApiError\") || Predicate.isTagged(error, \"PutioAuthError\");\n\nconst PutioKnownOperationErrorContractSchema = Schema.Union([\n Schema.Struct({\n errorType: Schema.String,\n statusCode: Schema.optional(Schema.Int),\n }),\n Schema.Struct({\n errorType: Schema.optional(Schema.Undefined),\n statusCode: Schema.Int,\n }),\n]);\n\nconst PutioOperationErrorReasonSchema = Schema.Union([\n Schema.Struct({\n kind: Schema.Literal(\"error_type\"),\n errorType: Schema.String,\n }),\n Schema.Struct({\n kind: Schema.Literal(\"status_code\"),\n statusCode: Schema.Number,\n }),\n]);\n\nconst toOperationReason = (\n contract: PutioKnownOperationErrorContract,\n): PutioOperationErrorReason<PutioKnownOperationErrorContract> => {\n if (contract.errorType !== undefined) {\n return {\n kind: \"error_type\",\n errorType: contract.errorType,\n };\n }\n\n return {\n kind: \"status_code\",\n statusCode: contract.statusCode,\n };\n};\n\nexport class PutioTransportError extends Data.TaggedError(\"PutioTransportError\")<{\n readonly cause: unknown;\n}> {}\n\nexport class PutioConfigurationError extends Data.TaggedError(\"PutioConfigurationError\")<{\n readonly cause: unknown;\n}> {}\n\nexport class PutioValidationError extends Data.TaggedError(\"PutioValidationError\")<{\n readonly cause: unknown;\n}> {}\n\nconst RateLimitHeaderFields = {\n action: Schema.optional(Schema.String),\n id: Schema.optional(Schema.String),\n limit: Schema.optional(Schema.String),\n remaining: Schema.optional(Schema.String),\n retryAfter: Schema.optional(Schema.String),\n reset: Schema.optional(Schema.String),\n};\n\nconst PutioResponseErrorFields = {\n status: Schema.Int,\n body: PutioErrorEnvelopeSchema,\n cause: Schema.optional(Schema.Defect()),\n};\n\nexport class PutioApiError extends Schema.TaggedError<PutioApiError>()(\"PutioApiError\", {\n ...PutioResponseErrorFields,\n}) {}\n\nexport class PutioAuthError extends Schema.TaggedError<PutioAuthError>()(\"PutioAuthError\", {\n ...PutioResponseErrorFields,\n}) {}\n\nexport class PutioRateLimitError extends Schema.TaggedError<PutioRateLimitError>()(\n \"PutioRateLimitError\",\n { ...PutioResponseErrorFields, ...RateLimitHeaderFields },\n) {}\n\nexport class PutioOperationError<\n TDomain extends string,\n TOperation extends string,\n TContract extends PutioKnownOperationErrorContract,\n> extends Data.TaggedError(\"PutioOperationError\")<{\n readonly body: PutioTypedErrorEnvelope<TContract>;\n readonly contract: TContract;\n readonly domain: TDomain;\n readonly operation: TOperation;\n readonly reason: PutioOperationErrorReason<TContract>;\n readonly status: number;\n}> {}\n\nexport type PutioSdkError =\n | PutioConfigurationError\n | PutioTransportError\n | PutioValidationError\n | PutioApiError\n | PutioAuthError\n | PutioRateLimitError;\n\nexport type PutioUnhandledSdkError = PutioSdkError;\n\nexport type PutioOperationErrorFromSpec<TSpec extends PutioOperationErrorSpec> =\n PutioOperationError<\n TSpec[\"domain\"],\n TSpec[\"operation\"],\n KnownOperationContractOf<TSpec[\"knownErrors\"]>\n >;\n\nexport type PutioOperationFailure<TSpec extends PutioOperationErrorSpec> =\n | PutioUnhandledSdkError\n | PutioOperationErrorFromSpec<TSpec>;\n\nexport type AnyPutioOperationError = PutioOperationError<\n string,\n string,\n PutioKnownOperationErrorContract\n>;\n\nexport const definePutioOperationErrorSpec = <\n const TDomain extends string,\n const TOperation extends string,\n const TContracts extends ReadonlyArray<PutioKnownErrorContract>,\n>(\n spec: PutioOperationErrorSpec<TDomain, TOperation, TContracts>,\n) => spec;\n\nexport const decodePutioErrorEnvelope = Schema.decodeUnknownEffect(PutioErrorEnvelopeSchema);\n\nconst isPutioErrorEnvelopeValue = Schema.is(PutioErrorEnvelopeSchema);\n\nexport const isPutioErrorEnvelope = (value: unknown): value is PutioErrorEnvelope =>\n isPutioErrorEnvelopeValue(value);\n\nconst responseErrorFields = {\n body: PutioErrorEnvelopeSchema,\n status: Schema.Number,\n};\n\nconst PutioApiErrorValueSchema = Schema.Struct({\n _tag: Schema.Literal(\"PutioApiError\"),\n ...responseErrorFields,\n});\n\nconst PutioAuthErrorValueSchema = Schema.Struct({\n _tag: Schema.Literal(\"PutioAuthError\"),\n ...responseErrorFields,\n});\n\nconst PutioRateLimitErrorValueSchema = Schema.Struct({\n _tag: Schema.Literal(\"PutioRateLimitError\"),\n ...responseErrorFields,\n ...RateLimitHeaderFields,\n});\n\nconst PutioOperationErrorValueSchema = Schema.Struct({\n _tag: Schema.Literal(\"PutioOperationError\"),\n ...responseErrorFields,\n contract: PutioKnownOperationErrorContractSchema,\n domain: Schema.String,\n operation: Schema.String,\n reason: PutioOperationErrorReasonSchema,\n});\n\nexport type PutioApiErrorValue = typeof PutioApiErrorValueSchema.Type;\n\nexport type PutioAuthErrorValue = typeof PutioAuthErrorValueSchema.Type;\n\nexport type PutioRateLimitErrorValue = typeof PutioRateLimitErrorValueSchema.Type;\n\nexport type PutioOperationErrorValue = typeof PutioOperationErrorValueSchema.Type;\n\nexport const isPutioApiError = Schema.is(PutioApiErrorValueSchema);\n\nexport const isPutioAuthError = Schema.is(PutioAuthErrorValueSchema);\n\nexport const isPutioRateLimitError = Schema.is(PutioRateLimitErrorValueSchema);\n\nexport const isPutioOperationError = Schema.is(PutioOperationErrorValueSchema);\n\nexport const fallbackPutioErrorEnvelope = (status: number): PutioErrorEnvelope => ({\n error_message: `put.io API request failed with status ${status}`,\n status_code: status,\n});\n\nconst getHeader = (headers: Headers, name: string): string | undefined =>\n headers.get(name) ?? undefined;\n\nexport const responseRateLimitHeaders = (headers: Headers) => ({\n action: getHeader(headers, \"x-ratelimit-action\"),\n id: getHeader(headers, \"x-ratelimit-id\"),\n limit: getHeader(headers, \"x-ratelimit-limit\"),\n remaining: getHeader(headers, \"x-ratelimit-remaining\"),\n retryAfter: getHeader(headers, \"retry-after\"),\n reset: getHeader(headers, \"x-ratelimit-reset\"),\n});\n\nexport const mapDecodeErrorToValidationError = (cause: unknown) =>\n new PutioValidationError({ cause });\n\nexport const mapConfigurationError = (cause: unknown) => new PutioConfigurationError({ cause });\n\nexport const mapTransportError = (cause: unknown) => new PutioTransportError({ cause });\n\nexport const toPutioResponseError = (\n status: number,\n headers: Headers,\n body: PutioErrorEnvelope,\n cause?: unknown,\n): PutioSdkError => {\n if (status === 429) {\n return new PutioRateLimitError({\n status,\n body,\n ...responseRateLimitHeaders(headers),\n cause,\n });\n }\n\n if (status === 401 || status === 403) {\n return new PutioAuthError({ status, body, cause });\n }\n\n return new PutioApiError({ status, body, cause });\n};\n\nexport const parseErrorBody = (status: number) =>\n flow(\n decodePutioErrorEnvelope,\n Effect.orElseSucceed(() => fallbackPutioErrorEnvelope(status)),\n );\n\nexport const withOperationErrors: {\n <\n const TDomain extends string,\n const TOperation extends string,\n const TContracts extends ReadonlyArray<PutioKnownErrorContract>,\n >(\n spec: PutioOperationErrorSpec<TDomain, TOperation, TContracts>,\n ): <A, E extends PutioSdkError, R>(\n effect: Effect.Effect<A, E, R>,\n ) => Effect.Effect<\n A,\n E | PutioOperationError<TDomain, TOperation, KnownOperationContractOf<TContracts>>,\n R\n >;\n <\n A,\n E extends PutioSdkError,\n R,\n const TDomain extends string,\n const TOperation extends string,\n const TContracts extends ReadonlyArray<PutioKnownErrorContract>,\n >(\n effect: Effect.Effect<A, E, R>,\n spec: PutioOperationErrorSpec<TDomain, TOperation, TContracts>,\n ): Effect.Effect<\n A,\n E | PutioOperationError<TDomain, TOperation, KnownOperationContractOf<TContracts>>,\n R\n >;\n} = dual(\n 2,\n <A, E extends PutioSdkError, R>(\n effect: Effect.Effect<A, E, R>,\n spec: PutioOperationErrorSpec,\n ): Effect.Effect<A, E | AnyPutioOperationError, R> =>\n effect.pipe(\n Effect.mapError((error) => {\n if (!isMatchableApiError(error)) {\n return error;\n }\n\n const contract = spec.knownErrors.find((candidate) =>\n isKnownContractMatch(candidate, error),\n );\n\n if (!contract) {\n return error;\n }\n\n return new PutioOperationError({\n body: error.body,\n contract,\n domain: spec.domain,\n operation: spec.operation,\n reason: toOperationReason(contract),\n status: error.status,\n });\n }),\n ),\n);\n","import { Effect, Schema } from \"effect\";\n\nimport { mapDecodeErrorToValidationError, PutioValidationError } from \"./errors.js\";\n\nexport const PositiveIntegerSchema = Schema.Int.check(Schema.isGreaterThan(0));\nexport const NonEmptyStringSchema = Schema.String.check(Schema.isMinLength(1));\n\nexport const decodeAndRun = <S extends Schema.Top, A, E, R>(\n schema: S,\n input: S[\"Encoded\"],\n run: (decoded: S[\"Type\"]) => Effect.Effect<A, E, R>,\n) =>\n Schema.decodeUnknownEffect(schema, { onExcessProperty: \"error\" })(input).pipe(\n Effect.mapError(mapDecodeErrorToValidationError),\n Effect.flatMap(run),\n );\n\nexport const decodeAndRunRedacted =\n (domain: string, operation: string) =>\n <S extends Schema.Top, A, E, R>(\n schema: S,\n input: S[\"Encoded\"],\n run: (decoded: S[\"Type\"]) => Effect.Effect<A, E, R>,\n ) =>\n Schema.decodeUnknownEffect(schema, { onExcessProperty: \"error\" })(input).pipe(\n Effect.mapError(\n () =>\n new PutioValidationError({\n cause: { domain, operation, reason: \"Invalid request input\" },\n }),\n ),\n Effect.flatMap(run),\n );\n\ntype CursorOrIdsSelection = {\n readonly cursor?: string;\n readonly ids?: ReadonlyArray<number>;\n};\n\nexport const cursorSelectionSchema = <const TFields extends Schema.Struct.Fields>(\n fields: TFields,\n) =>\n Schema.Struct({\n cursor: Schema.optional(NonEmptyStringSchema),\n excludeIds: Schema.optional(Schema.Array(PositiveIntegerSchema)),\n ids: Schema.optional(Schema.Array(PositiveIntegerSchema).check(Schema.isMinLength(1))),\n ...fields,\n }).check(\n Schema.makeFilter(\n (input: CursorOrIdsSelection) => input.cursor !== undefined || input.ids !== undefined,\n { expected: \"a non-empty cursor or file ID selection\" },\n ),\n );\n","export const DEFAULT_PUTIO_API_BASE_URL = \"https://api.put.io\";\nexport const DEFAULT_PUTIO_UPLOAD_BASE_URL = \"https://upload.put.io\";\nexport const DEFAULT_PUTIO_WEB_APP_URL = \"https://app.put.io\";\n","import { Context, Effect, Layer, Predicate, Schema, Struct } from \"effect\";\n\nimport {\n DEFAULT_PUTIO_API_BASE_URL,\n DEFAULT_PUTIO_UPLOAD_BASE_URL,\n DEFAULT_PUTIO_WEB_APP_URL,\n} from \"./defaults.js\";\nimport {\n fallbackPutioErrorEnvelope,\n mapConfigurationError,\n mapDecodeErrorToValidationError,\n mapTransportError,\n parseErrorBody,\n PutioConfigurationError,\n type PutioSdkError,\n PutioValidationError,\n toPutioResponseError,\n} from \"./errors.js\";\n\nexport type PutioQueryValue = string | number | boolean | null | undefined;\n\nexport type PutioQuery = Readonly<Record<string, PutioQueryValue>>;\n\nexport type PutioPathSegment = string | number | boolean;\n\nexport interface PutioSdkOptions {\n readonly accessToken?: string;\n readonly baseUrl?: string | URL;\n readonly headers?: HeadersInit;\n readonly uploadBaseUrl?: string | URL;\n readonly webAppUrl?: string | URL;\n}\n\nexport class PutioSdkConfig extends Context.Service<PutioSdkConfig, PutioSdkOptions>()(\n \"PutioSdkConfig\",\n) {}\n\nexport interface PutioHttpRequest {\n readonly body?: BodyInit;\n readonly headers: Headers;\n readonly method: PutioRequestMethod;\n readonly url: string;\n}\n\nexport interface PutioHttpResponse {\n readonly arrayBuffer: Effect.Effect<ArrayBuffer, PutioSdkError>;\n readonly headers: Headers;\n readonly json: Effect.Effect<unknown, PutioSdkError>;\n readonly status: number;\n}\n\nexport interface PutioHttpClientService {\n readonly execute: (request: PutioHttpRequest) => Effect.Effect<PutioHttpResponse, PutioSdkError>;\n}\n\nexport class PutioHttpClient extends Context.Service<PutioHttpClient, PutioHttpClientService>()(\n \"PutioHttpClient\",\n) {}\n\nexport type PutioSdkContext = PutioSdkConfig | PutioHttpClient;\n\nexport const normalizePutioSdkOptions = (config: PutioSdkOptions): PutioSdkOptions => ({\n accessToken: config.accessToken,\n baseUrl: config.baseUrl ?? DEFAULT_PUTIO_API_BASE_URL,\n headers: config.headers,\n uploadBaseUrl: config.uploadBaseUrl ?? DEFAULT_PUTIO_UPLOAD_BASE_URL,\n webAppUrl: config.webAppUrl ?? DEFAULT_PUTIO_WEB_APP_URL,\n});\n\nexport const putioSdkLayer = (config: PutioSdkOptions) =>\n Layer.succeed(PutioSdkConfig, normalizePutioSdkOptions(config));\n\nexport const putioSdkLiveLayer = (config: PutioSdkOptions) =>\n Layer.mergeAll(putioSdkLayer(config), makePutioFetchLayer());\n\nexport const makePutioFetchLayer = (\n fetchImplementation: typeof globalThis.fetch = globalThis.fetch,\n) => Layer.succeed(PutioHttpClient, makePutioFetchClient(fetchImplementation));\n\nexport const makePutioFetchClient = (\n fetchImplementation: typeof globalThis.fetch = globalThis.fetch,\n): PutioHttpClientService => ({\n execute: (request) =>\n Effect.suspend(() => {\n const controller = new AbortController();\n\n const read = <A>(body: () => Promise<A>) =>\n Effect.tryPromise({ try: body, catch: mapTransportError }).pipe(\n Effect.onInterrupt(() => Effect.sync(() => controller.abort())),\n );\n\n return read(async () => {\n const response = await fetchImplementation(request.url, {\n body: request.body,\n headers: request.headers,\n method: request.method,\n signal: controller.signal,\n });\n\n return {\n arrayBuffer: read(() => response.arrayBuffer()),\n headers: response.headers,\n json: isSuccessStatus(response.status)\n ? read(() => response.json())\n : read(() => response.text()).pipe(\n Effect.flatMap((text) =>\n Schema.decodeUnknownEffect(Schema.fromJsonString(Schema.Unknown))(text).pipe(\n Effect.mapError(() =>\n toPutioResponseError(\n response.status,\n response.headers,\n fallbackPutioErrorEnvelope(response.status),\n new SyntaxError(\"The HTTP error response body is not valid JSON\"),\n ),\n ),\n ),\n ),\n ),\n status: response.status,\n };\n });\n }),\n});\n\nexport const encodePathSegment = (value: PutioPathSegment): string =>\n encodeURIComponent(String(value));\n\nconst absoluteUrlPattern = /^(?:[a-z][a-z\\d+.-]*:|\\/\\/)/i;\n\nconst dotSegmentPattern = /^(?:\\.|%2e){1,2}$/i;\n\nconst normalizeApiPath = (path: string): string => {\n if (absoluteUrlPattern.test(path)) {\n throw mapConfigurationError(\"SDK API request paths must be relative to the configured baseUrl\");\n }\n\n if (path.split(\"/\").some((segment) => dotSegmentPattern.test(segment))) {\n throw mapDecodeErrorToValidationError(\"SDK API request paths must not contain dot segments\");\n }\n\n return path.startsWith(\"/\") ? path : `/${path}`;\n};\n\nexport const buildPutioUrl = (baseUrl: string | URL, path: string, query?: PutioQuery): string => {\n const url = new URL(normalizeApiPath(path), baseUrl);\n\n if (query) {\n for (const [key, value] of Object.entries(query)) {\n if (value !== undefined && value !== null) {\n url.searchParams.set(key, String(value));\n }\n }\n }\n\n return url.toString();\n};\n\nconst mapUrlBuildError = (cause: unknown) =>\n cause instanceof PutioConfigurationError || cause instanceof PutioValidationError\n ? cause\n : mapConfigurationError(cause);\n\nexport const OkResponseSchema = Schema.Struct({\n status: Schema.Literal(\"OK\"),\n});\n\nexport type PutioAuth =\n | { readonly type: \"config-token\" }\n | { readonly type: \"token\"; readonly token: string }\n | { readonly type: \"basic\"; readonly username: string; readonly password: string }\n | { readonly type: \"none\" };\n\ntype PutioRequestMethod = \"GET\" | \"POST\" | \"PUT\" | \"PATCH\" | \"DELETE\";\n\ntype PutioRequestBody =\n | { readonly type: \"none\" }\n | { readonly type: \"json\"; readonly value: unknown }\n | { readonly type: \"form\"; readonly value: Readonly<Record<string, Schema.Json | undefined>> }\n | { readonly type: \"form-data\"; readonly value: FormData };\n\ninterface PutioRequestOptions {\n readonly method: PutioRequestMethod;\n readonly path: string;\n readonly baseUrl?: string | URL;\n readonly query?: PutioQuery;\n readonly headers?: HeadersInit;\n readonly auth?: PutioAuth;\n readonly body?: PutioRequestBody;\n}\n\nconst isSuccessStatus = (status: number) => status >= 200 && status < 300;\n\nconst decodeSuccessJson = <S extends Schema.Top>(schema: S, response: PutioHttpResponse) =>\n response.json.pipe(\n Effect.flatMap((json) =>\n Schema.decodeUnknownEffect(schema)(json).pipe(\n Effect.mapError(mapDecodeErrorToValidationError),\n ),\n ),\n );\n\nconst decodeFailure = (response: PutioHttpResponse, headers: Headers) =>\n response.json.pipe(\n Effect.flatMap(parseErrorBody(response.status)),\n Effect.map((body) => toPutioResponseError(response.status, headers, body)),\n );\n\nconst resolveAuthorization = (\n config: PutioSdkOptions,\n auth: PutioAuth | undefined,\n): Effect.Effect<string | undefined, PutioSdkError> => {\n const resolvedAuth = auth ?? { type: \"config-token\" as const };\n\n switch (resolvedAuth.type) {\n case \"none\":\n return Effect.succeed(undefined);\n case \"token\":\n return Effect.succeed(`Token ${resolvedAuth.token}`);\n case \"basic\":\n return Effect.try({\n try: () => `Basic ${btoa(`${resolvedAuth.username}:${resolvedAuth.password}`)}`,\n catch: mapConfigurationError,\n });\n case \"config-token\":\n if (!config.accessToken) {\n return Effect.fail(\n mapConfigurationError(\n \"This endpoint requires an access token, but PutioSdkConfig.accessToken is missing\",\n ),\n );\n }\n\n return Effect.succeed(`Token ${config.accessToken}`);\n }\n};\n\nconst normalizeFormValue = (value: Schema.Json): string => {\n if (value === null) {\n return \"\";\n }\n\n if (Predicate.isString(value)) {\n return value;\n }\n\n if (Predicate.isNumber(value) || Predicate.isBoolean(value)) {\n return String(value);\n }\n\n return JSON.stringify(value);\n};\n\nconst withBody = (body: PutioRequestBody): Effect.Effect<BodyInit | undefined, PutioSdkError> => {\n switch (body.type) {\n case \"none\":\n return Effect.succeed(undefined);\n case \"json\":\n return Effect.try({\n try: () => JSON.stringify(body.value),\n catch: mapDecodeErrorToValidationError,\n });\n case \"form\":\n return Effect.succeed(\n new URLSearchParams(\n Object.entries(body.value).flatMap(([key, value]) =>\n value === undefined ? [] : [[key, normalizeFormValue(value)]],\n ),\n ),\n );\n case \"form-data\":\n return Effect.succeed(body.value);\n }\n};\n\nconst makeRequest = (\n url: string,\n options: PutioRequestOptions,\n configHeaders: HeadersInit | undefined,\n authorization?: string,\n) =>\n Effect.gen(function* () {\n const headers = new Headers(configHeaders);\n headers.delete(\"authorization\");\n new Headers(options.headers).forEach((value, name) => headers.set(name, value));\n\n const body = options.body ?? { type: \"none\" as const };\n\n if (!headers.has(\"accept\")) {\n headers.set(\"accept\", \"application/json\");\n }\n\n if (authorization) {\n headers.set(\"authorization\", authorization);\n }\n\n if (body.type === \"json\" && !headers.has(\"content-type\")) {\n headers.set(\"content-type\", \"application/json\");\n }\n\n return {\n body: yield* withBody(body),\n headers,\n method: options.method,\n url,\n };\n });\n\nconst executeRequest = (options: PutioRequestOptions) =>\n Effect.gen(function* () {\n const config = yield* PutioSdkConfig;\n const httpClient = yield* PutioHttpClient;\n const authorization = yield* resolveAuthorization(config, options.auth);\n\n const url = yield* Effect.try({\n try: () =>\n buildPutioUrl(\n options.baseUrl ?? config.baseUrl ?? DEFAULT_PUTIO_API_BASE_URL,\n options.path,\n options.query,\n ),\n catch: mapUrlBuildError,\n });\n\n const request = yield* makeRequest(url, options, config.headers, authorization);\n\n return yield* httpClient.execute(request);\n });\n\nexport const requestJson = <S extends Schema.Top>(\n schema: S,\n options: PutioRequestOptions,\n): Effect.Effect<S[\"Type\"], PutioSdkError, PutioSdkContext | S[\"DecodingServices\"]> =>\n executeRequest(options).pipe(\n Effect.flatMap((response) =>\n isSuccessStatus(response.status)\n ? decodeSuccessJson(schema, response)\n : decodeFailure(response, response.headers).pipe(Effect.flatMap(Effect.fail)),\n ),\n );\n\nexport const selectJsonField =\n <K extends string>(field: K) =>\n <A extends { readonly [P in K]: unknown }, E, R>(\n effect: Effect.Effect<A, E, R>,\n ): Effect.Effect<A[K], E, R> =>\n effect.pipe(Effect.map((value) => value[field]));\n\nexport const selectJsonFields =\n <const K extends readonly string[]>(...fields: K) =>\n <A extends { readonly [P in K[number]]: unknown }, E, R>(\n effect: Effect.Effect<A, E, R>,\n ): Effect.Effect<Pick<A, K[number]>, E, R> =>\n effect.pipe(Effect.map((value) => Struct.pick(value, fields)));\n\nexport const requestArrayBuffer = (\n options: PutioRequestOptions,\n): Effect.Effect<Uint8Array, PutioSdkError, PutioSdkContext> =>\n executeRequest(options).pipe(\n Effect.flatMap((response) =>\n isSuccessStatus(response.status)\n ? response.arrayBuffer.pipe(Effect.map((buffer) => new Uint8Array(buffer)))\n : decodeFailure(response, response.headers).pipe(Effect.flatMap(Effect.fail)),\n ),\n );\n\nexport const requestText = (\n options: PutioRequestOptions,\n): Effect.Effect<string, PutioSdkError, PutioSdkContext> =>\n requestArrayBuffer(options).pipe(Effect.map((bytes) => new TextDecoder().decode(bytes)));\n\nexport const requestVoid = (\n options: PutioRequestOptions,\n): Effect.Effect<void, PutioSdkError, PutioSdkContext> =>\n executeRequest(options).pipe(\n Effect.flatMap((response) =>\n isSuccessStatus(response.status)\n ? Effect.void\n : decodeFailure(response, response.headers).pipe(Effect.flatMap(Effect.fail)),\n ),\n );\n","type CsvValue = string | number;\n\nexport interface CursorSelectionInput<TValue extends CsvValue = number> {\n readonly cursor?: string;\n readonly excludeIds?: ReadonlyArray<TValue>;\n readonly ids?: ReadonlyArray<TValue>;\n}\n\nexport const joinCsv = <TValue extends CsvValue>(\n values: ReadonlyArray<TValue> | undefined,\n): string | undefined => (values && values.length > 0 ? values.join(\",\") : undefined);\n\ntype CursorSelectionForm<TIdsFieldName extends string> = {\n readonly cursor?: string;\n readonly exclude_ids?: string;\n} & Record<TIdsFieldName, string | undefined>;\n\nexport function toCursorSelectionForm<TValue extends CsvValue>(\n selection: CursorSelectionInput<TValue>,\n): CursorSelectionForm<\"file_ids\">;\nexport function toCursorSelectionForm<TValue extends CsvValue, const TIdsFieldName extends string>(\n selection: CursorSelectionInput<TValue>,\n idsFieldName: TIdsFieldName,\n): CursorSelectionForm<TIdsFieldName>;\nexport function toCursorSelectionForm(\n selection: CursorSelectionInput<CsvValue>,\n idsFieldName = \"file_ids\",\n): CursorSelectionForm<string> {\n return {\n cursor: selection.cursor,\n exclude_ids: joinCsv(selection.excludeIds),\n [idsFieldName]: joinCsv(selection.ids),\n };\n}\n"],"mappings":";;;AAGA,MAAa,2BAA2B,OAAO,OAAO;CACpD,QAAQ,OAAO,SAAS,OAAO,MAAM;CACrC,OAAO,OAAO,SAAS,OAAO,MAAM;CACpC,eAAe,OAAO,SAAS,OAAO,MAAM;CAC5C,YAAY,OAAO,SAAS,OAAO,MAAM;CACzC,WAAW,OAAO,SAAS,OAAO,MAAM;CACxC,UAAU,OAAO,SAAS,OAAO,OAAO,OAAO,MAAM,CAAC;CACtD,OAAO,OAAO,SAAS,OAAO,OAAO,OAAO,QAAQ,OAAO,OAAO,CAAC;CACnE,aAAa,OAAO,SAAS,OAAO,GAAG;CACvC,SAAS,OAAO,SAAS,OAAO,OAAO;AACzC,CAAC;AA+ED,MAAM,wBACJ,UACA,UAC6D;CAC7D,IAAI,SAAS,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OAAO,KAAK,UAAU,MAAM,MAAM,CAAC;AAEnD,MAAa,oBACyB,GAAG,YAErC,WAEA,OAAO,KAAK,OAAO,KAAK,UAAU,OAAO,KAAK,OAAO,MAAM,CAAC,CAAC;AAEjE,MAAa,sBACX,YAEA,eAAe,OAAO,CAAC,CAAC,KACtB,OAAO,SAAS,aACd,gBAAgB,SAAS,MAAM,IAC3B,SAAS,YAAY,KAAK,OAAO,KAAK,WAAW,IAAI,WAAW,MAAM,CAAC,CAAC,IACxE,cAAc,UAAU,SAAS,OAAO,CAAC,CAAC,KAAK,OAAO,QAAQ,OAAO,IAAI,CAAC,CAChF,CACF;AAEF,MAAa,eACX,YAEA,mBAAmB,OAAO,CAAC,CAAC,KAAK,OAAO,KAAK,UAAU,IAAI,YAAY,CAAC,CAAC,OAAO,KAAK,CAAC,CAAC;AAEzF,MAAa,eACX,YAEA,eAAe,OAAO,CAAC,CAAC,KACtB,OAAO,SAAS,aACd,gBAAgB,SAAS,MAAM,IAC3B,OAAO,OACP,cAAc,UAAU,SAAS,OAAO,CAAC,CAAC,KAAK,OAAO,QAAQ,OAAO,IAAI,CAAC,CAChF,CACF;;ACnXF,MAAa,WACX,WACwB,UAAU,OAAO,SAAS,IAAI,OAAO,KAAK,GAAG,IAAI,KAAA;AAc3E,SAAgB,sBACd,WACA,eAAe,YACc;CAC7B,OAAO;EACL,QAAQ,UAAU;EAClB,aAAa,QAAQ,UAAU,UAAU;GACxC,eAAe,QAAQ,UAAU,GAAG;CACvC;AACF"}
@@ -153,10 +153,182 @@ declare const decodePutioErrorEnvelope: (input: unknown, options?: import("effec
153
153
  readonly details?: unknown;
154
154
  }, Schema.SchemaError, never>;
155
155
  declare const isPutioErrorEnvelope: (value: unknown) => value is PutioErrorEnvelope;
156
- declare const isPutioApiError: (value: unknown) => value is PutioApiError;
157
- declare const isPutioAuthError: (value: unknown) => value is PutioAuthError;
158
- declare const isPutioRateLimitError: (value: unknown) => value is PutioRateLimitError;
159
- declare const isPutioOperationError: (value: unknown) => value is AnyPutioOperationError;
156
+ declare const PutioApiErrorValueSchema: Schema.Struct<{
157
+ readonly body: Schema.Struct<{
158
+ readonly status: Schema.optional<Schema.String>;
159
+ readonly error: Schema.optional<Schema.String>;
160
+ readonly error_message: Schema.optional<Schema.String>;
161
+ readonly error_type: Schema.optional<Schema.String>;
162
+ readonly error_uri: Schema.optional<Schema.String>;
163
+ readonly error_id: Schema.optional<Schema.NullOr<Schema.String>>;
164
+ readonly extra: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
165
+ readonly status_code: Schema.optional<Schema.Int>;
166
+ readonly details: Schema.optional<Schema.Unknown>;
167
+ }>;
168
+ readonly status: Schema.Number;
169
+ readonly _tag: Schema.Literal<"PutioApiError">;
170
+ }>;
171
+ declare const PutioAuthErrorValueSchema: Schema.Struct<{
172
+ readonly body: Schema.Struct<{
173
+ readonly status: Schema.optional<Schema.String>;
174
+ readonly error: Schema.optional<Schema.String>;
175
+ readonly error_message: Schema.optional<Schema.String>;
176
+ readonly error_type: Schema.optional<Schema.String>;
177
+ readonly error_uri: Schema.optional<Schema.String>;
178
+ readonly error_id: Schema.optional<Schema.NullOr<Schema.String>>;
179
+ readonly extra: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
180
+ readonly status_code: Schema.optional<Schema.Int>;
181
+ readonly details: Schema.optional<Schema.Unknown>;
182
+ }>;
183
+ readonly status: Schema.Number;
184
+ readonly _tag: Schema.Literal<"PutioAuthError">;
185
+ }>;
186
+ declare const PutioRateLimitErrorValueSchema: Schema.Struct<{
187
+ readonly action: Schema.optional<Schema.String>;
188
+ readonly id: Schema.optional<Schema.String>;
189
+ readonly limit: Schema.optional<Schema.String>;
190
+ readonly remaining: Schema.optional<Schema.String>;
191
+ readonly retryAfter: Schema.optional<Schema.String>;
192
+ readonly reset: Schema.optional<Schema.String>;
193
+ readonly body: Schema.Struct<{
194
+ readonly status: Schema.optional<Schema.String>;
195
+ readonly error: Schema.optional<Schema.String>;
196
+ readonly error_message: Schema.optional<Schema.String>;
197
+ readonly error_type: Schema.optional<Schema.String>;
198
+ readonly error_uri: Schema.optional<Schema.String>;
199
+ readonly error_id: Schema.optional<Schema.NullOr<Schema.String>>;
200
+ readonly extra: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
201
+ readonly status_code: Schema.optional<Schema.Int>;
202
+ readonly details: Schema.optional<Schema.Unknown>;
203
+ }>;
204
+ readonly status: Schema.Number;
205
+ readonly _tag: Schema.Literal<"PutioRateLimitError">;
206
+ }>;
207
+ declare const PutioOperationErrorValueSchema: Schema.Struct<{
208
+ readonly body: Schema.Struct<{
209
+ readonly status: Schema.optional<Schema.String>;
210
+ readonly error: Schema.optional<Schema.String>;
211
+ readonly error_message: Schema.optional<Schema.String>;
212
+ readonly error_type: Schema.optional<Schema.String>;
213
+ readonly error_uri: Schema.optional<Schema.String>;
214
+ readonly error_id: Schema.optional<Schema.NullOr<Schema.String>>;
215
+ readonly extra: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
216
+ readonly status_code: Schema.optional<Schema.Int>;
217
+ readonly details: Schema.optional<Schema.Unknown>;
218
+ }>;
219
+ readonly status: Schema.Number;
220
+ readonly _tag: Schema.Literal<"PutioOperationError">;
221
+ readonly contract: Schema.Union<readonly [Schema.Struct<{
222
+ readonly errorType: Schema.String;
223
+ readonly statusCode: Schema.optional<Schema.Int>;
224
+ }>, Schema.Struct<{
225
+ readonly errorType: Schema.optional<Schema.Undefined>;
226
+ readonly statusCode: Schema.Int;
227
+ }>]>;
228
+ readonly domain: Schema.String;
229
+ readonly operation: Schema.String;
230
+ readonly reason: Schema.Union<readonly [Schema.Struct<{
231
+ readonly kind: Schema.Literal<"error_type">;
232
+ readonly errorType: Schema.String;
233
+ }>, Schema.Struct<{
234
+ readonly kind: Schema.Literal<"status_code">;
235
+ readonly statusCode: Schema.Number;
236
+ }>]>;
237
+ }>;
238
+ type PutioApiErrorValue = typeof PutioApiErrorValueSchema.Type;
239
+ type PutioAuthErrorValue = typeof PutioAuthErrorValueSchema.Type;
240
+ type PutioRateLimitErrorValue = typeof PutioRateLimitErrorValueSchema.Type;
241
+ type PutioOperationErrorValue = typeof PutioOperationErrorValueSchema.Type;
242
+ declare const isPutioApiError: <I>(input: I) => input is I & {
243
+ readonly body: {
244
+ readonly status?: string | undefined;
245
+ readonly error?: string | undefined;
246
+ readonly error_message?: string | undefined;
247
+ readonly error_type?: string | undefined;
248
+ readonly error_uri?: string | undefined;
249
+ readonly error_id?: string | null | undefined;
250
+ readonly extra?: {
251
+ readonly [x: string]: unknown;
252
+ } | undefined;
253
+ readonly status_code?: number | undefined;
254
+ readonly details?: unknown;
255
+ };
256
+ readonly status: number;
257
+ readonly _tag: "PutioApiError";
258
+ };
259
+ declare const isPutioAuthError: <I>(input: I) => input is I & {
260
+ readonly body: {
261
+ readonly status?: string | undefined;
262
+ readonly error?: string | undefined;
263
+ readonly error_message?: string | undefined;
264
+ readonly error_type?: string | undefined;
265
+ readonly error_uri?: string | undefined;
266
+ readonly error_id?: string | null | undefined;
267
+ readonly extra?: {
268
+ readonly [x: string]: unknown;
269
+ } | undefined;
270
+ readonly status_code?: number | undefined;
271
+ readonly details?: unknown;
272
+ };
273
+ readonly status: number;
274
+ readonly _tag: "PutioAuthError";
275
+ };
276
+ declare const isPutioRateLimitError: <I>(input: I) => input is I & {
277
+ readonly action?: string | undefined;
278
+ readonly id?: string | undefined;
279
+ readonly limit?: string | undefined;
280
+ readonly remaining?: string | undefined;
281
+ readonly retryAfter?: string | undefined;
282
+ readonly reset?: string | undefined;
283
+ readonly body: {
284
+ readonly status?: string | undefined;
285
+ readonly error?: string | undefined;
286
+ readonly error_message?: string | undefined;
287
+ readonly error_type?: string | undefined;
288
+ readonly error_uri?: string | undefined;
289
+ readonly error_id?: string | null | undefined;
290
+ readonly extra?: {
291
+ readonly [x: string]: unknown;
292
+ } | undefined;
293
+ readonly status_code?: number | undefined;
294
+ readonly details?: unknown;
295
+ };
296
+ readonly status: number;
297
+ readonly _tag: "PutioRateLimitError";
298
+ };
299
+ declare const isPutioOperationError: <I>(input: I) => input is I & {
300
+ readonly body: {
301
+ readonly status?: string | undefined;
302
+ readonly error?: string | undefined;
303
+ readonly error_message?: string | undefined;
304
+ readonly error_type?: string | undefined;
305
+ readonly error_uri?: string | undefined;
306
+ readonly error_id?: string | null | undefined;
307
+ readonly extra?: {
308
+ readonly [x: string]: unknown;
309
+ } | undefined;
310
+ readonly status_code?: number | undefined;
311
+ readonly details?: unknown;
312
+ };
313
+ readonly status: number;
314
+ readonly _tag: "PutioOperationError";
315
+ readonly contract: {
316
+ readonly errorType: string;
317
+ readonly statusCode?: number | undefined;
318
+ } | {
319
+ readonly errorType?: undefined;
320
+ readonly statusCode: number;
321
+ };
322
+ readonly domain: string;
323
+ readonly operation: string;
324
+ readonly reason: {
325
+ readonly kind: "error_type";
326
+ readonly errorType: string;
327
+ } | {
328
+ readonly kind: "status_code";
329
+ readonly statusCode: number;
330
+ };
331
+ };
160
332
  declare const fallbackPutioErrorEnvelope: (status: number) => PutioErrorEnvelope;
161
333
  declare const responseRateLimitHeaders: (headers: Headers) => {
162
334
  action: string | undefined;
@@ -1258,8 +1430,9 @@ declare const setConfigKey: (key: string, value: PutioJsonValue) => Effect.Effec
1258
1430
  declare const deleteConfigKey: (key: string) => Effect.Effect<Schema.Schema.Type<typeof OkResponseSchema>, PutioSdkError, PutioSdkContext>;
1259
1431
  declare const DownloadLinksStatusSchema: Schema.Literals<readonly ["NEW", "PROCESSING", "DONE", "ERROR"]>;
1260
1432
  declare const DownloadLinksCreateInputSchema: Schema.Struct<{
1261
- readonly [x: string]: Schema.optional<Schema.$Array<Schema.Int>> | Schema.optional<Schema.String>;
1262
1433
  readonly cursor: Schema.optional<Schema.String>;
1434
+ readonly excludeIds: Schema.optional<Schema.$Array<Schema.Int>>;
1435
+ readonly ids: Schema.optional<Schema.$Array<Schema.Int>>;
1263
1436
  }>;
1264
1437
  declare const DownloadLinksPayloadSchema: Schema.Struct<{
1265
1438
  readonly download_links: Schema.$Array<Schema.String>;
@@ -6005,8 +6178,9 @@ declare const makePutioSdkLiveClientLayer: (config: PutioSdkOptions) => Layer.La
6005
6178
  declare const createPutioSdkPromiseClient: (initialConfig?: PutioSdkOptions) => {
6006
6179
  downloadLinks: {
6007
6180
  create: (input?: {
6008
- readonly [x: number]: string | readonly number[] | undefined;
6009
- readonly [x: string]: string | readonly number[] | undefined;
6181
+ readonly cursor?: string | undefined;
6182
+ readonly excludeIds?: readonly number[] | undefined;
6183
+ readonly ids?: readonly number[] | undefined;
6010
6184
  } | undefined) => Promise<{
6011
6185
  readonly id: number;
6012
6186
  }>;
@@ -9740,5 +9914,5 @@ declare global {
9740
9914
  }
9741
9915
  var SchemaErrorTypeId: symbol;
9742
9916
  }
9743
- export { RetryTransferError as $, UserSearchResult as $a, getStartFrom as $c, clients as $d, createOAuthApp as $f, PaymentVoucherInfo as $i, GetEventTorrentErrorSpec as $l, isPutioErrorEnvelope as $m, deletePublicShare as $n, FileExtractionSchema as $o, destroyAccount as $p, PodcastLinkTypeSchema as $r, FilesMoveError as $s, TrashListResponse as $t, ClientsErrorSpec as $u, TunnelRoute as A, ApproveFriendRequestErrorSpec as Aa, convertFileSelectionToMp4 as Ac, RegisterErrorSpec as Ad, OAuthApp as Af, PaymentChangePlanSubmitInput as Ai, FamilyMember as Al, AnyPutioOperationError as Am, PublicShareSchema as An, CreateFolderErrorSpec as Ao, AccountDisk as Ap, RssFeedItem as Ar, FileSubtitle as As, getTransfer as At, DownloadLinksPayload as Au, AddTransferErrorSpec as B, FriendSharedFolderErrorSpec as Ba, deleteFiles as Bc, RevokeOAuthGrantErrorSpec as Bd, OAuthSetIconInputSchema as Bf, PaymentInviteSchema as Bi, createFamilyInvite as Bl, PutioOperationErrorSpec as Bm, SharingCloneInfoSchema as Bn, FileBaseSchema as Bo, AccountSettingsSchema as Bp, createRssFeed as Br, FileUploadErrorSpec as Bs, DeleteTrashError as Bt, PutioJsonObject as Bu, ZipSummary as C, listPaymentPlans as Ca, buildFileApiDownloadUrl as Cc, OAuthAuthorizationCodeExchangeInput as Cd, CreateOAuthAppErrorSpec as Cf, ListPaymentOptionsError as Ci, getIftttStatus as Cl, putioSdkLiveLayer as Cm, ListPublicSharesError as Cn, CanWriteFileError as Co, listAppSpecificPasswords as Cp, ResumeRssFeedError as Cr, FileResponseFor as Cs, addManyTransfers as Ct, listEvents as Cu, listZips as D, stopPaymentSubscription as Da, canWriteFile as Dc, RegenerateRecoveryCodesError as Dd, GetOAuthAppErrorSpec as Df, PaymentChangePlanPreview as Di, FamilyInvite as Dl, requestVoid as Dm, PublicShare as Dn, CopyFileError as Do, AccountConfirmationSchema as Dp, RetryRssFeedItemError as Dr, FileSort as Ds, cleanTransfers as Dt, DownloadLinksCreateInputSchema as Du, getZip as E, reportPayments as Ea, buildFileXspfPlaylistUrl as Ec, RecoveryCodesErrorSpec as Ed, GetOAuthAppError as Ef, ListPaymentPlansErrorSpec as Ei, CreateFamilyInviteErrorSpec as El, requestText as Em, ListSharedFilesErrorSpec as En, ContinueFilesErrorSpec as Eo, AccountConfirmation as Ep, RetryAllRssFeedItemsErrorSpec as Er, FileSetSortInputSchema as Es, cancelTransfers as Et, DownloadLinksCreateInput as Eu, RemoveRateLimitBanInput as F, Friend as Fa, createFileUploadRequest as Fc, RevokeAllOAuthClientsError as Fd, OAuthAppSessionSchema as Ff, PaymentHistoryQuery as Fi, ListFamilyInvitesErrorSpec as Fl, PutioErrorEnvelopeSchema as Fm, SharedFileShare as Fn, FileActiveConversionsError as Fo, AccountInfoBroadSchema as Fp, RssFeedParamsSchema as Fr, FileTouchInputSchema as Fs, removeTransfers as Ft, GetDownloadLinksErrorSpec as Fu, GetTransferTorrentError as G, ListWaitingRequestsError as Ga, getApiDownloadUrl as Gc, VerifyTOTPError as Gd, QueryOAuthAppsError as Gf, PaymentPlanGroup as Gi, ClearEventsError as Gl, PutioTypedErrorEnvelope as Gm, SharingShareInputSchema as Gn, FileConversionStatus as Go, AccountWarningsSchema as Gp, pauseRssFeed as Gr, FileVideoMetadata as Gs, ListTrashErrorSpec as Gt, getConfigKeyWith as Gu, AddTransferTrackersErrorSpec as H, ListFriendsErrorSpec as Ha, findNextFile as Hc, TwoFactorRecoveryCodesSchema as Hd, OwnedOAuthAppSchema as Hf, PaymentOptionPlanTypeSchema as Hi, listFamilyInvites as Hl, PutioRateLimitError as Hm, SharingCloneInputSchema as Hn, FileBreadcrumbSchema as Ho, AccountSubtitleLanguageSchema as Hp, getRssFeed as Hr, FileUploadRequestDescriptor as Hs, EmptyTrashError as Ht, PutioJsonValue as Hu, removeRateLimitBan as I, FriendBase as Ia, createFolder as Ic, RevokeAllOAuthClientsErrorSpec as Id, OAuthAppUpdateInput as If, PaymentInfo as Ii, ListFamilyMembersError as Il, PutioKnownErrorContract as Im, SharedFileShareSchema as In, FileActiveConversionsErrorSpec as Io, AccountInfoQuery as Ip, RssFeedSchema as Ir, FileType as Is, retryTransfer as It, createDownloadLinks as Iu, ListTransfersErrorSpec as J, RemoveFriendErrorSpec as Ja, getFile as Jc, VerifyTOTPResponseSchema as Jd, RegenerateOAuthAppTokenErrorSpec as Jf, PaymentProvider as Ji, DeleteEventErrorSpec as Jl, decodePutioErrorEnvelope as Jm, UnshareFileError as Jn, FileCopyInputSchema as Jo, SaveAccountSettingsError as Jp, retryRssFeedItem as Jr, FileXspfPlaylistUrlOptions as Js, TrashBulkInput as Jt, setConfigKey as Ju, GetTransferTorrentErrorSpec as K, ListWaitingRequestsErrorSpec as Ka, getApiMp4DownloadUrl as Kc, VerifyTOTPErrorSpec as Kd, QueryOAuthAppsErrorSpec as Kf, PaymentPlanGroupSchema as Ki, ClearEventsErrorSpec as Kl, PutioUnhandledSdkError as Km, SharingUnshareInput as Kn, FileConversionStatusSchema as Ko, PasInfo as Kp, resumeRssFeed as Kr, FileWatchStatusError as Ks, RestoreTrashError as Kt, readConfig as Ku, AddManyTransfersError as L, FriendBaseSchema as La, deleteFileExtraction as Lc, RevokeOAuthClientError as Ld, OAuthAppUpdateInputSchema as Lf, PaymentInfoPlanSchema as Li, ListFamilyMembersErrorSpec as Ll, PutioKnownOperationErrorContract as Lm, SharedFileSharedWith as Ln, FileApiDownloadUrlOptions as Lo, AccountInfoQuerySchema as Lp, UpdateRssFeedError as Lr, FileTypeSchema as Ls, stopTransferRecording as Lt, getDownloadLinks as Lu, listTunnelRoutes as M, CountWaitingRequestsErrorSpec as Ma, convertFilesToMp4 as Mc, RegisterInputSchema as Md, OAuthAppCreateInputSchema as Mf, PaymentChangePlanSubmitSchema as Mi, JoinFamilyError as Ml, PutioAuthError as Mm, ShareFilesErrorSpec as Mn, DownloadUrlErrorSpec as Mo, AccountInfoBase as Mp, RssFeedItemSchema as Mr, FileSubtitlesError as Ms, getTransferTorrent as Mt, DownloadLinksStatus as Mu, RemoveRateLimitBanError as N, DenyFriendRequestError as Na, copyFile as Nc, ResetPasswordError as Nd, OAuthAppSchema as Nf, PaymentHistoryItem as Ni, JoinFamilyErrorSpec as Nl, PutioConfigurationError as Nm, SharedFile as Nn, FileActiveConversion as No, AccountInfoBaseSchema as Np, RssFeedItemSucceededSchema as Nr, FileSubtitlesErrorSpec as Ns, listTransfers as Nt, DownloadLinksStatusSchema as Nu, ListTunnelRoutesError as O, submitPaymentChangePlan as Oa, continueFiles as Oc, RegenerateRecoveryCodesErrorSpec as Od, MyOAuthApp as Of, PaymentChangePlanPreviewInput as Oi, FamilyInviteSchema as Ol, selectJsonField as Om, PublicShareListQuery as On, CopyFileErrorSpec as Oo, AccountConfirmationsError as Op, RetryRssFeedItemErrorSpec as Or, FileSortSchema as Os, continueTransfers as Ot, DownloadLinksInfo as Ou, RemoveRateLimitBanErrorSpec as P, DenyFriendRequestErrorSpec as Pa, createFileUploadFormData as Pc, ResetPasswordErrorSpec as Pd, OAuthAppSession as Pf, PaymentHistoryItemSchema as Pi, ListFamilyInvitesError as Pl, PutioErrorEnvelope as Pm, SharedFileSchema as Pn, FileActiveConversionSchema as Po, AccountInfoBroad as Pp, RssFeedParams as Pr, FileTouchInput as Ps, reannounceTransfer as Pt, GetDownloadLinksError as Pu, RemoveTransfersErrorSpec as Q, SendFriendRequestErrorSpec as Qa, getMp4Status as Qc, checkCodeMatch as Qd, buildOAuthAuthorizeUrl as Qf, PaymentTypeSchema as Qi, GetEventTorrentError as Ql, isPutioAuthError as Qm, createPublicShare as Qn, FileExtraction as Qo, clearAccount as Qp, PodcastLinkType as Qr, FilesListQuerySchema as Qs, TrashListQuery as Qt, ClientsError as Qu, AddManyTransfersErrorSpec as R, FriendSchema as Ra, deleteFileMp4 as Rc, RevokeOAuthClientErrorSpec as Rd, OAuthAppWithTokenSchema as Rf, PaymentInfoSchema as Ri, RemoveFamilyMemberError as Rl, PutioOperationError as Rm, SharedFileSharedWithSchema as Rn, FileApiMp4DownloadUrlOptions as Ro, AccountInfoResponseFor as Rp, UpdateRssFeedErrorSpec as Rr, FileUploadEnvelope as Rs, ContinueTrashError as Rt, JsonObjectSchema as Ru, ZipStatusSchema as S, listPaymentOptions as Sa, buildFileApiContentUrl as Sc, OAuthAuthorizationCodeExchangeErrorCodeSchema as Sd, CreateOAuthAppError as Sf, ListPaymentInvitesErrorSpec as Si, SendIftttEventErrorSpec as Sl, putioSdkLayer as Sm, ListPublicShareFilesErrorSpec as Sn, listFriendInvites as So, deleteAppSpecificPassword as Sp, PauseRssFeedErrorSpec as Sr, FileRenameInput as Ss, TransfersListResponse as St, getEventTorrent as Su, createZip as T, redeemPaymentVoucher as Ta, buildFileHlsStreamUrl as Tc, RecoveryCodesError as Td, DeleteOAuthAppErrorSpec as Tf, ListPaymentPlansError as Ti, CreateFamilyInviteError as Tl, requestJson as Tm, ListSharedFilesError as Tn, ContinueFilesError as To, AccountClearOptionsSchema as Tp, RetryAllRssFeedItemsError as Tr, FileSetSortInput as Ts, addTransferTrackers as Tt, CreateDownloadLinksErrorSpec as Tu, GetTransferError as U, ListSentRequestsError as Ua, findNextVideo as Uc, ValidateTokenResponse as Ud, PopularOAuthApp as Uf, PaymentOptionSchema as Ui, listFamilyMembers as Ul, PutioSdkError as Um, SharingCloneStatusSchema as Un, FileBroad as Uo, AccountTwoFactorSettingsSchema as Up, listRssFeedItems as Ur, FileUploadResult as Us, EmptyTrashErrorSpec as Ut, deleteConfigKey as Uu, AddTransferTrackersError as V, ListFriendsError as Va, extractFiles as Vc, TwoFactorRecoveryCodes as Vd, OwnedOAuthApp as Vf, PaymentOption as Vi, joinFamily as Vl, PutioOperationFailure as Vm, SharingCloneInput as Vn, FileBreadcrumb as Vo, AccountSubtitleLanguage as Vp, deleteRssFeed as Vr, FileUploadInput as Vs, DeleteTrashErrorSpec as Vt, PutioJsonPrimitive as Vu, GetTransferErrorSpec as W, ListSentRequestsErrorSpec as Wa, getApiContentUrl as Wc, ValidateTokenResponseSchema as Wd, PopularOAuthAppSchema as Wf, PaymentPaddleWaitingPaymentInput as Wi, removeFamilyMember as Wl, PutioTransportError as Wm, SharingShareInput as Wn, FileBroadSchema as Wo, AccountWarnings as Wp, listRssFeeds as Wr, FileUploadTransfer as Ws, ListTrashError as Wt, getConfigKey as Wu, ReannounceTransferErrorSpec as X, SearchFriendsErrorSpec as Xa, getHlsMasterPlaylist as Xc, VoucherLookupErrorSpec as Xd, UpdateOAuthAppErrorSpec as Xf, PaymentProviderSchema as Xi, EventsListQuerySchema as Xl, fallbackPutioErrorEnvelope as Xm, cloneSharedFiles as Xn, FileCreateFolderInput as Xo, SaveAccountSettingsPayload as Xp, PodcastGetLinksInput as Xr, FilesListEnvelopeSchema as Xs, TrashFile as Xt, AuthGetCodeInput as Xu, ReannounceTransferError as Y, SearchFriendsError as Ya, getFileChild as Yc, VoucherLookupError as Yd, UpdateOAuthAppError as Yf, PaymentProviderNameSchema as Yi, EventsListQuery as Yl, definePutioOperationErrorSpec as Ym, UnshareFileErrorSpec as Yn, FileCore as Yo, SaveAccountSettingsErrorSpec as Yp, updateRssFeed as Yr, FilesBulkSelection as Ys, TrashContinueResponse as Yt, writeConfig as Yu, RemoveTransfersError as Z, SendFriendRequestError as Za, getHlsStreamUrl as Zc, buildAuthLoginUrl as Zd, buildOAuthAppIconUrl as Zf, PaymentSubscriptionInfoSchema as Zi, EventsListResponse as Zl, isPutioApiError as Zm, continuePublicShareFiles as Zn, FileDirectAccessOptions as Zo, SaveAccountSettingsPayloadSchema as Zp, PodcastGetLinksInputSchema as Zr, FilesListQuery as Zs, TrashFileSchema as Zt, AuthorizationCodeSchema as Zu, GetZipErrorSpec as _, getPaddleBillingInvoiceUrl as _a, SearchFilesErrorSpec as _c, LoginErrorSpec as _d, revokeAllClients as _f, GetPaymentVoucherInfoError as _i, GetIftttStatusError as _l, buildPutioUrl as _m, GetSharedWithError as _n, FriendInviteJoinedUserStatusSchema as _o, DeleteAppSpecificPasswordErrorSpec as _p, ListRssFeedItemsError as _r, FileMp4ErrorSpec as _s, TransferTypeSchema as _t, HistoryZipCreatedEventSchema as _u, PutioSdkEffectClient as a, ReportPaymentsError as aa, GetFileChildError as ac, FriendInviteLookupErrorSpec as ad, getFamilyInvite as af, parseErrorBody as ah, ConfirmFastspringOrderError as ai, moveFiles as al, OkResponseSchema as am, ContinuePublicShareFilesError as an, listFriends as ao, setOAuthAppIcon as ap, listPublicShares as ar, FileGetChildInputSchema as as, TransferAddInputSchema as at, HistoryKnownEventType as au, ZipCreateResponse as b, listPaymentHistory as ba, TouchFilesError as bc, LoginResponseSchema as bd, validateToken as bf, ListPaymentHistoryErrorSpec as bi, IftttEventType as bl, makePutioFetchLayer as bm, GetSharingCloneInfoErrorSpec as bn, ListFriendInvitesErrorSpec as bo, createAppSpecificPassword as bp, ListRssFeedsErrorSpec as br, FileQuery as bs, TransfersListQuery as bt, clearEvents as bu, createPutioSdkPromiseClient as c, StopSubscriptionErrorSpec as ca, GetFileErrorSpec as cc, GenerateTOTPResponse as cd, getRecoveryCodes as cf, withOperationErrors as ch, CreateOpenNodeChargeErrorSpec as ci, renameFile as cl, PutioHttpClientService as cm, CreatePublicShareErrorSpec as cn, removeFriend as co, AppSpecificPasswordSchema as cp, unshareFile as cr, FileListContinuationResponse as cs, TransferBaseSchema as ct, HistoryRssFilterPausedEventSchema as cu, CancelZipError as d, UserSubscriptionStatusSchema as da, QueryFilesError as dc, GiftCardLookupErrorSpec as dd, linkDevice as df, CreatePaddleWaitingPaymentError as di, searchFiles as dl, PutioPathSegment as dm, DeletePublicShareError as dn, CreateFriendInviteError as do, CreateAppSpecificPasswordInput as dp, CreateRssFeedError as dr, FileMediaInfoFormatSchema as ds, TransferRemoveInput as dt, HistoryTransferCompletedEventSchema as du, PaymentVoucherInfoSchema as ea, FilesMoveErrorSchema as ec, FamilyInviteLookupError as ed, exchangeOAuthAuthorizationCode as ef, isPutioOperationError as eh, PodcastLinks as ei, getXspfPlaylistUrl as el, getAccountInfo as em, continueTrash as en, UserSearchResultSchema as eo, deleteOAuthApp as ep, getPublicShare as er, FileExtractionStatus as es, RetryTransferErrorSpec as et, HistoryEvent as eu, CancelZipErrorSpec as f, classifyPaymentChangePlanResponse as fa, QueryFilesErrorSpec as fc, GrantsError as fd, login as ff, CreatePaddleWaitingPaymentErrorSpec as fi, setFileSort as fl, PutioQuery as fm, DeletePublicShareErrorSpec as fn, CreateFriendInviteErrorSpec as fo, CreateAppSpecificPasswordInputSchema as fp, CreateRssFeedErrorSpec as fr, FileMediaInfoSchema as fs, TransferRemoveInputSchema as ft, HistoryTransferErrorEventSchema as fu, GetZipError as g, createPaddleWaitingPayment as ga, SearchFilesError as gc, LoginError as gd, resetPassword as gf, GetPaymentInfoErrorSpec as gi, uploadFile as gl, PutioSdkOptions as gm, GetPublicShareFileUrlErrorSpec as gn, FriendInviteJoinedUserStatus as go, DeleteAppSpecificPasswordError as gp, GetRssFeedErrorSpec as gr, FileMp4Error as gs, TransferType as gt, HistoryZipCreatedEvent as gu, CreateZipInput as h, createPaddleBillingUpdatePaymentMethodTransaction as ha, SHARED_WITH_YOU_ROOT_ID as hc, LinkDeviceErrorSpec as hd, register as hf, GetPaymentInfoError as hi, touchFiles as hl, PutioSdkContext as hm, GetPublicShareFileUrlError as hn, FriendInviteJoinedUserSchema as ho, DeleteAllAppSpecificPasswordsErrorSpec as hp, GetRssFeedError as hr, FileMediaMetadataSchema as hs, TransferStatusSchema as ht, HistoryVoucherEventSchema as hu, PutioSdk as i, RedeemPaymentVoucherErrorSpec as ia, FolderTypeSchema as ic, FriendInviteLookupError as id, getCode as if, mapTransportError as ih, ClassifiedPaymentChangePlanSubmitResponse as ii, moveFileSelection as il, saveAccountSettings as im, restoreTrash as in, getFriendSharedFolder as io, regenerateOAuthAppToken as ip, listPublicShareFiles as ir, FileGetChildInput as is, TransferAddInput as it, HistoryFileSharedEventSchema as iu, TunnelRouteSchema as j, CountWaitingRequestsError as ja, convertFileToMp4 as jc, RegisterInput as jd, OAuthAppCreateInput as jf, PaymentChangePlanSubmitResponse as ji, FamilyMemberSchema as jl, PutioApiError as jm, ShareFilesError as jn, DownloadUrlError as jo, AccountDiskSchema as jp, RssFeedItemFailedSchema as jr, FileSubtitleSchema as js, getTransferInfo as jt, DownloadLinksPayloadSchema as ju, ListTunnelRoutesErrorSpec as k, ApproveFriendRequestError as ka, continueSearch as kc, RegisterError as kd, MyOAuthAppSchema as kf, PaymentChangePlanPreviewSchema as ki, FamilyInvitesResponse as kl, selectJsonFields as km, PublicShareListQuerySchema as kn, CreateFolderError as ko, AccountConfirmationsErrorSpec as kp, RssFeed as kr, FileStartFromSetInput as ks, countTransfers as kt, DownloadLinksInfoSchema as ku, makePutioSdkEffectClientLayer as l, SubmitPaymentChangePlanError as la, GetHlsMasterPlaylistError as lc, GenerateTOTPResponseSchema as ld, getVoucher as lf, CreatePaddleBillingUpdatePaymentMethodTransactionError as li, resetFileSortSettings as ll, PutioHttpRequest as lm, CreateSharingCloneError as ln, searchFriends as lo, CreateAppSpecificPasswordError as lp, ClearRssFeedLogsError as lr, FileListResponse as ls, TransferInfoItem as lt, HistoryTransferCallbackErrorEventSchema as lu, CreateZipErrorSpec as m, createOpenNodeCharge as ma, RenameFileErrorSpec as mc, LinkDeviceError as md, regenerateRecoveryCodes as mf, GetPaddleBillingInvoiceUrlErrorSpec as mi, setStartFrom as ml, PutioSdkConfig as mm, GetPublicShareErrorSpec as mn, FriendInviteJoinedUser as mo, DeleteAllAppSpecificPasswordsError as mp, DeleteRssFeedErrorSpec as mr, FileMediaMetadata as ms, TransferStatus as mt, HistoryUploadEventSchema as mu, DEFAULT_PUTIO_UPLOAD_BASE_URL as n, PreviewPaymentChangePlanErrorSpec as na, FilesSearchQuerySchema as nc, ForgotPasswordError as nd, forgotPassword as nf, mapConfigurationError as nh, PodcastLinksSchema as ni, listFileExtractions as nl, listAccountConfirmations as nm, emptyTrash as nn, countWaitingRequests as no, getPopularOAuthApps as np, getSharedWith as nr, FileExtractionsError as ns, StopRecordingTransferErrorSpec as nt, HistoryFileFromRssDeletedEventSchema as nu, PutioSdkPromiseClient as o, ReportPaymentsErrorSpec as oa, GetFileChildErrorSpec as oc, GenerateTOTPError as od, getFriendInvite as of, responseRateLimitHeaders as oh, ConfirmFastspringOrderErrorSpec as oi, putMp4ToMyFiles as ol, PutioAuth as om, ContinuePublicShareFilesErrorSpec as on, listSentRequests as oo, updateOAuthApp as op, listSharedFiles as or, FileHlsMasterPlaylistOptions as os, TransferAddTrackersInput as ot, HistoryKnownEventTypeSchema as ou, CreateZipError as p, confirmFastspringOrder as pa, RenameFileError as pc, GrantsErrorSpec as pd, logout as pf, GetPaddleBillingInvoiceUrlError as pi, setFilesWatchStatus as pl, PutioQueryValue as pm, GetPublicShareError as pn, FriendInvite as po, CreateAppSpecificPasswordResult as pp, DeleteRssFeedError as pr, FileMediaInfoStreamSchema as ps, TransferSchema as pt, HistoryTransferFromRssErrorEventSchema as pu, ListTransfersError as q, RemoveFriendError as qa, getDownloadUrl as qc, VerifyTOTPResponse as qd, RegenerateOAuthAppTokenError as qf, PaymentPlanTypeSchema as qi, DeleteEventError as ql, PutioValidationError as qm, SharingUnshareInputSchema as qn, FileCopyInput as qo, PasInfoSchema as qp, retryAllRssFeedItems as qr, FileWatchStatusErrorSpec as qs, RestoreTrashErrorSpec as qt, readConfigWith as qu, DEFAULT_PUTIO_WEB_APP_URL as r, RedeemPaymentVoucherError as ra, FolderType as rc, ForgotPasswordErrorSpec as rd, generateTOTP as rf, mapDecodeErrorToValidationError as rh, getPodcastLinks as ri, listFileSubtitles as rl, listAccountSubtitleLanguages as rm, listTrash as rn, denyFriendRequest as ro, queryOAuthApps as rp, getSharingCloneInfo as rr, FileExtractionsErrorSpec as rs, Transfer as rt, HistoryFileSharedEvent as ru, createPutioSdkEffectClient as s, StopSubscriptionError as sa, GetFileError as sc, GenerateTOTPErrorSpec as sd, getGiftCard as sf, toPutioResponseError as sh, CreateOpenNodeChargeError as si, queryFiles as sl, PutioHttpClient as sm, CreatePublicShareError as sn, listWaitingRequests as so, AppSpecificPassword as sp, shareFiles as sr, FileHlsStreamUrlOptions as ss, TransferAddTrackersInputSchema as st, HistoryPrivateTorrentPinEventSchema as su, DEFAULT_PUTIO_API_BASE_URL as t, PreviewPaymentChangePlanError as ta, FilesSearchQuery as tc, FamilyInviteLookupErrorSpec as td, exists as tf, isPutioRateLimitError as th, PodcastLinksResponse as ti, listActiveMp4Conversions as tl, getAccountSettings as tm, deleteTrash as tn, approveFriendRequest as to, getOAuthApp as tp, getPublicShareFileUrl as tr, FileExtractionStatusSchema as ts, StopRecordingTransferError as tt, HistoryEventSchema as tu, makePutioSdkLiveClientLayer as u, SubmitPaymentChangePlanErrorSpec as ua, GetHlsMasterPlaylistErrorSpec as uc, GiftCardLookupError as ud, grants as uf, CreatePaddleBillingUpdatePaymentMethodTransactionErrorSpec as ui, resetStartFrom as ul, PutioHttpResponse as um, CreateSharingCloneErrorSpec as un, sendFriendRequest as uo, CreateAppSpecificPasswordErrorSpec as up, ClearRssFeedLogsErrorSpec as ur, FileMediaInfo as us, TransferLink as ut, HistoryTransferCompletedEvent as uu, ListZipsError as v, getPaymentInfo as va, StartFromError as vc, LoginInput as vd, revokeApp as vf, GetPaymentVoucherInfoErrorSpec as vi, GetIftttStatusErrorSpec as vl, encodePathSegment as vm, GetSharedWithErrorSpec as vn, FriendInviteSchema as vo, ListAppSpecificPasswordsError as vp, ListRssFeedItemsErrorSpec as vr, FileMp4MutationError as vs, TransfersAddMultiError as vt, ListEventsError as vu, cancelZip as w, previewPaymentChangePlan as wa, buildFileApiMp4DownloadUrl as wc, OAuthAuthorizationCodeExchangeInputSchema as wd, DeleteOAuthAppError as wf, ListPaymentOptionsErrorSpec as wi, sendIftttEvent as wl, requestArrayBuffer as wm, ListPublicSharesErrorSpec as wn, CanWriteFileErrorSpec as wo, AccountClearOptions as wp, ResumeRssFeedErrorSpec as wr, FileSearchResponse as ws, addTransfer as wt, CreateDownloadLinksError as wu, ZipInfo as x, listPaymentInvites as xa, TouchFilesErrorSpec as xc, OAuthAuthorizationCodeExchangeError as xd, verifyTOTP as xf, ListPaymentInvitesError as xi, SendIftttEventError as xl, normalizePutioSdkOptions as xm, ListPublicShareFilesError as xn, createFriendInvite as xo, deleteAllAppSpecificPasswords as xp, PauseRssFeedError as xr, FileQuerySchema as xs, TransfersListQuerySchema as xt, deleteEvent as xu, ListZipsErrorSpec as y, getPaymentVoucherInfo as ya, StartFromErrorSpec as yc, LoginResponse as yd, revokeClient as yf, ListPaymentHistoryError as yi, IftttEventInput as yl, makePutioFetchClient as ym, GetSharingCloneInfoError as yn, ListFriendInvitesError as yo, ListAppSpecificPasswordsErrorSpec as yp, ListRssFeedsError as yr, FileMp4MutationErrorSpec as ys, TransfersContinueResponse as yt, ListEventsErrorSpec as yu, AddTransferError as z, FriendSharedFolderError as za, deleteFileSelection as zc, RevokeOAuthGrantError as zd, OAuthSetIconInput as zf, PaymentInvite as zi, RemoveFamilyMemberErrorSpec as zl, PutioOperationErrorFromSpec as zm, SharingCloneInfo as zn, FileBase as zo, AccountSettings as zp, clearRssFeedLogs as zr, FileUploadError as zs, ContinueTrashErrorSpec as zt, JsonValueSchema as zu };
9744
- //# sourceMappingURL=index-DJs7suHM.d.ts.map
9917
+ export { RetryTransferError as $, UserSearchResult as $a, getStartFrom as $c, clients as $d, createOAuthApp as $f, PaymentVoucherInfo as $i, GetEventTorrentErrorSpec as $l, definePutioOperationErrorSpec as $m, deletePublicShare as $n, FileExtractionSchema as $o, destroyAccount as $p, PodcastLinkTypeSchema as $r, FilesMoveError as $s, TrashListResponse as $t, ClientsErrorSpec as $u, TunnelRoute as A, ApproveFriendRequestErrorSpec as Aa, convertFileSelectionToMp4 as Ac, RegisterErrorSpec as Ad, OAuthApp as Af, PaymentChangePlanSubmitInput as Ai, FamilyMember as Al, AnyPutioOperationError as Am, PublicShareSchema as An, CreateFolderErrorSpec as Ao, AccountDisk as Ap, RssFeedItem as Ar, FileSubtitle as As, getTransfer as At, DownloadLinksPayload as Au, AddTransferErrorSpec as B, FriendSharedFolderErrorSpec as Ba, deleteFiles as Bc, RevokeOAuthGrantErrorSpec as Bd, OAuthSetIconInputSchema as Bf, PaymentInviteSchema as Bi, createFamilyInvite as Bl, PutioOperationError as Bm, SharingCloneInfoSchema as Bn, FileBaseSchema as Bo, AccountSettingsSchema as Bp, createRssFeed as Br, FileUploadErrorSpec as Bs, DeleteTrashError as Bt, PutioJsonObject as Bu, ZipSummary as C, listPaymentPlans as Ca, buildFileApiDownloadUrl as Cc, OAuthAuthorizationCodeExchangeInput as Cd, CreateOAuthAppErrorSpec as Cf, ListPaymentOptionsError as Ci, getIftttStatus as Cl, putioSdkLiveLayer as Cm, ListPublicSharesError as Cn, CanWriteFileError as Co, listAppSpecificPasswords as Cp, ResumeRssFeedError as Cr, FileResponseFor as Cs, addManyTransfers as Ct, listEvents as Cu, listZips as D, stopPaymentSubscription as Da, canWriteFile as Dc, RegenerateRecoveryCodesError as Dd, GetOAuthAppErrorSpec as Df, PaymentChangePlanPreview as Di, FamilyInvite as Dl, requestVoid as Dm, PublicShare as Dn, CopyFileError as Do, AccountConfirmationSchema as Dp, RetryRssFeedItemError as Dr, FileSort as Ds, cleanTransfers as Dt, DownloadLinksCreateInputSchema as Du, getZip as E, reportPayments as Ea, buildFileXspfPlaylistUrl as Ec, RecoveryCodesErrorSpec as Ed, GetOAuthAppError as Ef, ListPaymentPlansErrorSpec as Ei, CreateFamilyInviteErrorSpec as El, requestText as Em, ListSharedFilesErrorSpec as En, ContinueFilesErrorSpec as Eo, AccountConfirmation as Ep, RetryAllRssFeedItemsErrorSpec as Er, FileSetSortInputSchema as Es, cancelTransfers as Et, DownloadLinksCreateInput as Eu, RemoveRateLimitBanInput as F, Friend as Fa, createFileUploadRequest as Fc, RevokeAllOAuthClientsError as Fd, OAuthAppSessionSchema as Ff, PaymentHistoryQuery as Fi, ListFamilyInvitesErrorSpec as Fl, PutioConfigurationError as Fm, SharedFileShare as Fn, FileActiveConversionsError as Fo, AccountInfoBroadSchema as Fp, RssFeedParamsSchema as Fr, FileTouchInputSchema as Fs, removeTransfers as Ft, GetDownloadLinksErrorSpec as Fu, GetTransferTorrentError as G, ListWaitingRequestsError as Ga, getApiDownloadUrl as Gc, VerifyTOTPError as Gd, QueryOAuthAppsError as Gf, PaymentPlanGroup as Gi, ClearEventsError as Gl, PutioRateLimitError as Gm, SharingShareInputSchema as Gn, FileConversionStatus as Go, AccountWarningsSchema as Gp, pauseRssFeed as Gr, FileVideoMetadata as Gs, ListTrashErrorSpec as Gt, getConfigKeyWith as Gu, AddTransferTrackersErrorSpec as H, ListFriendsErrorSpec as Ha, findNextFile as Hc, TwoFactorRecoveryCodesSchema as Hd, OwnedOAuthAppSchema as Hf, PaymentOptionPlanTypeSchema as Hi, listFamilyInvites as Hl, PutioOperationErrorSpec as Hm, SharingCloneInputSchema as Hn, FileBreadcrumbSchema as Ho, AccountSubtitleLanguageSchema as Hp, getRssFeed as Hr, FileUploadRequestDescriptor as Hs, EmptyTrashError as Ht, PutioJsonValue as Hu, removeRateLimitBan as I, FriendBase as Ia, createFolder as Ic, RevokeAllOAuthClientsErrorSpec as Id, OAuthAppUpdateInput as If, PaymentInfo as Ii, ListFamilyMembersError as Il, PutioErrorEnvelope as Im, SharedFileShareSchema as In, FileActiveConversionsErrorSpec as Io, AccountInfoQuery as Ip, RssFeedSchema as Ir, FileType as Is, retryTransfer as It, createDownloadLinks as Iu, ListTransfersErrorSpec as J, RemoveFriendErrorSpec as Ja, getFile as Jc, VerifyTOTPResponseSchema as Jd, RegenerateOAuthAppTokenErrorSpec as Jf, PaymentProvider as Ji, DeleteEventErrorSpec as Jl, PutioTransportError as Jm, UnshareFileError as Jn, FileCopyInputSchema as Jo, SaveAccountSettingsError as Jp, retryRssFeedItem as Jr, FileXspfPlaylistUrlOptions as Js, TrashBulkInput as Jt, setConfigKey as Ju, GetTransferTorrentErrorSpec as K, ListWaitingRequestsErrorSpec as Ka, getApiMp4DownloadUrl as Kc, VerifyTOTPErrorSpec as Kd, QueryOAuthAppsErrorSpec as Kf, PaymentPlanGroupSchema as Ki, ClearEventsErrorSpec as Kl, PutioRateLimitErrorValue as Km, SharingUnshareInput as Kn, FileConversionStatusSchema as Ko, PasInfo as Kp, resumeRssFeed as Kr, FileWatchStatusError as Ks, RestoreTrashError as Kt, readConfig as Ku, AddManyTransfersError as L, FriendBaseSchema as La, deleteFileExtraction as Lc, RevokeOAuthClientError as Ld, OAuthAppUpdateInputSchema as Lf, PaymentInfoPlanSchema as Li, ListFamilyMembersErrorSpec as Ll, PutioErrorEnvelopeSchema as Lm, SharedFileSharedWith as Ln, FileApiDownloadUrlOptions as Lo, AccountInfoQuerySchema as Lp, UpdateRssFeedError as Lr, FileTypeSchema as Ls, stopTransferRecording as Lt, getDownloadLinks as Lu, listTunnelRoutes as M, CountWaitingRequestsErrorSpec as Ma, convertFilesToMp4 as Mc, RegisterInputSchema as Md, OAuthAppCreateInputSchema as Mf, PaymentChangePlanSubmitSchema as Mi, JoinFamilyError as Ml, PutioApiErrorValue as Mm, ShareFilesErrorSpec as Mn, DownloadUrlErrorSpec as Mo, AccountInfoBase as Mp, RssFeedItemSchema as Mr, FileSubtitlesError as Ms, getTransferTorrent as Mt, DownloadLinksStatus as Mu, RemoveRateLimitBanError as N, DenyFriendRequestError as Na, copyFile as Nc, ResetPasswordError as Nd, OAuthAppSchema as Nf, PaymentHistoryItem as Ni, JoinFamilyErrorSpec as Nl, PutioAuthError as Nm, SharedFile as Nn, FileActiveConversion as No, AccountInfoBaseSchema as Np, RssFeedItemSucceededSchema as Nr, FileSubtitlesErrorSpec as Ns, listTransfers as Nt, DownloadLinksStatusSchema as Nu, ListTunnelRoutesError as O, submitPaymentChangePlan as Oa, continueFiles as Oc, RegenerateRecoveryCodesErrorSpec as Od, MyOAuthApp as Of, PaymentChangePlanPreviewInput as Oi, FamilyInviteSchema as Ol, selectJsonField as Om, PublicShareListQuery as On, CopyFileErrorSpec as Oo, AccountConfirmationsError as Op, RetryRssFeedItemErrorSpec as Or, FileSortSchema as Os, continueTransfers as Ot, DownloadLinksInfo as Ou, RemoveRateLimitBanErrorSpec as P, DenyFriendRequestErrorSpec as Pa, createFileUploadFormData as Pc, ResetPasswordErrorSpec as Pd, OAuthAppSession as Pf, PaymentHistoryItemSchema as Pi, ListFamilyInvitesError as Pl, PutioAuthErrorValue as Pm, SharedFileSchema as Pn, FileActiveConversionSchema as Po, AccountInfoBroad as Pp, RssFeedParams as Pr, FileTouchInput as Ps, reannounceTransfer as Pt, GetDownloadLinksError as Pu, RemoveTransfersErrorSpec as Q, SendFriendRequestErrorSpec as Qa, getMp4Status as Qc, checkCodeMatch as Qd, buildOAuthAuthorizeUrl as Qf, PaymentTypeSchema as Qi, GetEventTorrentError as Ql, decodePutioErrorEnvelope as Qm, createPublicShare as Qn, FileExtraction as Qo, clearAccount as Qp, PodcastLinkType as Qr, FilesListQuerySchema as Qs, TrashListQuery as Qt, ClientsError as Qu, AddManyTransfersErrorSpec as R, FriendSchema as Ra, deleteFileMp4 as Rc, RevokeOAuthClientErrorSpec as Rd, OAuthAppWithTokenSchema as Rf, PaymentInfoSchema as Ri, RemoveFamilyMemberError as Rl, PutioKnownErrorContract as Rm, SharedFileSharedWithSchema as Rn, FileApiMp4DownloadUrlOptions as Ro, AccountInfoResponseFor as Rp, UpdateRssFeedErrorSpec as Rr, FileUploadEnvelope as Rs, ContinueTrashError as Rt, JsonObjectSchema as Ru, ZipStatusSchema as S, listPaymentOptions as Sa, buildFileApiContentUrl as Sc, OAuthAuthorizationCodeExchangeErrorCodeSchema as Sd, CreateOAuthAppError as Sf, ListPaymentInvitesErrorSpec as Si, SendIftttEventErrorSpec as Sl, putioSdkLayer as Sm, ListPublicShareFilesErrorSpec as Sn, listFriendInvites as So, deleteAppSpecificPassword as Sp, PauseRssFeedErrorSpec as Sr, FileRenameInput as Ss, TransfersListResponse as St, getEventTorrent as Su, createZip as T, redeemPaymentVoucher as Ta, buildFileHlsStreamUrl as Tc, RecoveryCodesError as Td, DeleteOAuthAppErrorSpec as Tf, ListPaymentPlansError as Ti, CreateFamilyInviteError as Tl, requestJson as Tm, ListSharedFilesError as Tn, ContinueFilesError as To, AccountClearOptionsSchema as Tp, RetryAllRssFeedItemsError as Tr, FileSetSortInput as Ts, addTransferTrackers as Tt, CreateDownloadLinksErrorSpec as Tu, GetTransferError as U, ListSentRequestsError as Ua, findNextVideo as Uc, ValidateTokenResponse as Ud, PopularOAuthApp as Uf, PaymentOptionSchema as Ui, listFamilyMembers as Ul, PutioOperationErrorValue as Um, SharingCloneStatusSchema as Un, FileBroad as Uo, AccountTwoFactorSettingsSchema as Up, listRssFeedItems as Ur, FileUploadResult as Us, EmptyTrashErrorSpec as Ut, deleteConfigKey as Uu, AddTransferTrackersError as V, ListFriendsError as Va, extractFiles as Vc, TwoFactorRecoveryCodes as Vd, OwnedOAuthApp as Vf, PaymentOption as Vi, joinFamily as Vl, PutioOperationErrorFromSpec as Vm, SharingCloneInput as Vn, FileBreadcrumb as Vo, AccountSubtitleLanguage as Vp, deleteRssFeed as Vr, FileUploadInput as Vs, DeleteTrashErrorSpec as Vt, PutioJsonPrimitive as Vu, GetTransferErrorSpec as W, ListSentRequestsErrorSpec as Wa, getApiContentUrl as Wc, ValidateTokenResponseSchema as Wd, PopularOAuthAppSchema as Wf, PaymentPaddleWaitingPaymentInput as Wi, removeFamilyMember as Wl, PutioOperationFailure as Wm, SharingShareInput as Wn, FileBroadSchema as Wo, AccountWarnings as Wp, listRssFeeds as Wr, FileUploadTransfer as Ws, ListTrashError as Wt, getConfigKey as Wu, ReannounceTransferErrorSpec as X, SearchFriendsErrorSpec as Xa, getHlsMasterPlaylist as Xc, VoucherLookupErrorSpec as Xd, UpdateOAuthAppErrorSpec as Xf, PaymentProviderSchema as Xi, EventsListQuerySchema as Xl, PutioUnhandledSdkError as Xm, cloneSharedFiles as Xn, FileCreateFolderInput as Xo, SaveAccountSettingsPayload as Xp, PodcastGetLinksInput as Xr, FilesListEnvelopeSchema as Xs, TrashFile as Xt, AuthGetCodeInput as Xu, ReannounceTransferError as Y, SearchFriendsError as Ya, getFileChild as Yc, VoucherLookupError as Yd, UpdateOAuthAppError as Yf, PaymentProviderNameSchema as Yi, EventsListQuery as Yl, PutioTypedErrorEnvelope as Ym, UnshareFileErrorSpec as Yn, FileCore as Yo, SaveAccountSettingsErrorSpec as Yp, updateRssFeed as Yr, FilesBulkSelection as Ys, TrashContinueResponse as Yt, writeConfig as Yu, RemoveTransfersError as Z, SendFriendRequestError as Za, getHlsStreamUrl as Zc, buildAuthLoginUrl as Zd, buildOAuthAppIconUrl as Zf, PaymentSubscriptionInfoSchema as Zi, EventsListResponse as Zl, PutioValidationError as Zm, continuePublicShareFiles as Zn, FileDirectAccessOptions as Zo, SaveAccountSettingsPayloadSchema as Zp, PodcastGetLinksInputSchema as Zr, FilesListQuery as Zs, TrashFileSchema as Zt, AuthorizationCodeSchema as Zu, GetZipErrorSpec as _, getPaddleBillingInvoiceUrl as _a, SearchFilesErrorSpec as _c, LoginErrorSpec as _d, revokeAllClients as _f, GetPaymentVoucherInfoError as _i, GetIftttStatusError as _l, buildPutioUrl as _m, GetSharedWithError as _n, FriendInviteJoinedUserStatusSchema as _o, DeleteAppSpecificPasswordErrorSpec as _p, ListRssFeedItemsError as _r, FileMp4ErrorSpec as _s, TransferTypeSchema as _t, HistoryZipCreatedEventSchema as _u, PutioSdkEffectClient as a, ReportPaymentsError as aa, GetFileChildError as ac, FriendInviteLookupErrorSpec as ad, getFamilyInvite as af, isPutioRateLimitError as ah, ConfirmFastspringOrderError as ai, moveFiles as al, OkResponseSchema as am, ContinuePublicShareFilesError as an, listFriends as ao, setOAuthAppIcon as ap, listPublicShares as ar, FileGetChildInputSchema as as, TransferAddInputSchema as at, HistoryKnownEventType as au, ZipCreateResponse as b, listPaymentHistory as ba, TouchFilesError as bc, LoginResponseSchema as bd, validateToken as bf, ListPaymentHistoryErrorSpec as bi, IftttEventType as bl, makePutioFetchLayer as bm, GetSharingCloneInfoErrorSpec as bn, ListFriendInvitesErrorSpec as bo, createAppSpecificPassword as bp, ListRssFeedsErrorSpec as br, FileQuery as bs, TransfersListQuery as bt, clearEvents as bu, createPutioSdkPromiseClient as c, StopSubscriptionErrorSpec as ca, GetFileErrorSpec as cc, GenerateTOTPResponse as cd, getRecoveryCodes as cf, mapTransportError as ch, CreateOpenNodeChargeErrorSpec as ci, renameFile as cl, PutioHttpClientService as cm, CreatePublicShareErrorSpec as cn, removeFriend as co, AppSpecificPasswordSchema as cp, unshareFile as cr, FileListContinuationResponse as cs, TransferBaseSchema as ct, HistoryRssFilterPausedEventSchema as cu, CancelZipError as d, UserSubscriptionStatusSchema as da, QueryFilesError as dc, GiftCardLookupErrorSpec as dd, linkDevice as df, toPutioResponseError as dh, CreatePaddleWaitingPaymentError as di, searchFiles as dl, PutioPathSegment as dm, DeletePublicShareError as dn, CreateFriendInviteError as do, CreateAppSpecificPasswordInput as dp, CreateRssFeedError as dr, FileMediaInfoFormatSchema as ds, TransferRemoveInput as dt, HistoryTransferCompletedEventSchema as du, PaymentVoucherInfoSchema as ea, FilesMoveErrorSchema as ec, FamilyInviteLookupError as ed, exchangeOAuthAuthorizationCode as ef, fallbackPutioErrorEnvelope as eh, PodcastLinks as ei, getXspfPlaylistUrl as el, getAccountInfo as em, continueTrash as en, UserSearchResultSchema as eo, deleteOAuthApp as ep, getPublicShare as er, FileExtractionStatus as es, RetryTransferErrorSpec as et, HistoryEvent as eu, CancelZipErrorSpec as f, classifyPaymentChangePlanResponse as fa, QueryFilesErrorSpec as fc, GrantsError as fd, login as ff, withOperationErrors as fh, CreatePaddleWaitingPaymentErrorSpec as fi, setFileSort as fl, PutioQuery as fm, DeletePublicShareErrorSpec as fn, CreateFriendInviteErrorSpec as fo, CreateAppSpecificPasswordInputSchema as fp, CreateRssFeedErrorSpec as fr, FileMediaInfoSchema as fs, TransferRemoveInputSchema as ft, HistoryTransferErrorEventSchema as fu, GetZipError as g, createPaddleWaitingPayment as ga, SearchFilesError as gc, LoginError as gd, resetPassword as gf, GetPaymentInfoErrorSpec as gi, uploadFile as gl, PutioSdkOptions as gm, GetPublicShareFileUrlErrorSpec as gn, FriendInviteJoinedUserStatus as go, DeleteAppSpecificPasswordError as gp, GetRssFeedErrorSpec as gr, FileMp4Error as gs, TransferType as gt, HistoryZipCreatedEvent as gu, CreateZipInput as h, createPaddleBillingUpdatePaymentMethodTransaction as ha, SHARED_WITH_YOU_ROOT_ID as hc, LinkDeviceErrorSpec as hd, register as hf, GetPaymentInfoError as hi, touchFiles as hl, PutioSdkContext as hm, GetPublicShareFileUrlError as hn, FriendInviteJoinedUserSchema as ho, DeleteAllAppSpecificPasswordsErrorSpec as hp, GetRssFeedError as hr, FileMediaMetadataSchema as hs, TransferStatusSchema as ht, HistoryVoucherEventSchema as hu, PutioSdk as i, RedeemPaymentVoucherErrorSpec as ia, FolderTypeSchema as ic, FriendInviteLookupError as id, getCode as if, isPutioOperationError as ih, ClassifiedPaymentChangePlanSubmitResponse as ii, moveFileSelection as il, saveAccountSettings as im, restoreTrash as in, getFriendSharedFolder as io, regenerateOAuthAppToken as ip, listPublicShareFiles as ir, FileGetChildInput as is, TransferAddInput as it, HistoryFileSharedEventSchema as iu, TunnelRouteSchema as j, CountWaitingRequestsError as ja, convertFileToMp4 as jc, RegisterInput as jd, OAuthAppCreateInput as jf, PaymentChangePlanSubmitResponse as ji, FamilyMemberSchema as jl, PutioApiError as jm, ShareFilesError as jn, DownloadUrlError as jo, AccountDiskSchema as jp, RssFeedItemFailedSchema as jr, FileSubtitleSchema as js, getTransferInfo as jt, DownloadLinksPayloadSchema as ju, ListTunnelRoutesErrorSpec as k, ApproveFriendRequestError as ka, continueSearch as kc, RegisterError as kd, MyOAuthAppSchema as kf, PaymentChangePlanPreviewSchema as ki, FamilyInvitesResponse as kl, selectJsonFields as km, PublicShareListQuerySchema as kn, CreateFolderError as ko, AccountConfirmationsErrorSpec as kp, RssFeed as kr, FileStartFromSetInput as ks, countTransfers as kt, DownloadLinksInfoSchema as ku, makePutioSdkEffectClientLayer as l, SubmitPaymentChangePlanError as la, GetHlsMasterPlaylistError as lc, GenerateTOTPResponseSchema as ld, getVoucher as lf, parseErrorBody as lh, CreatePaddleBillingUpdatePaymentMethodTransactionError as li, resetFileSortSettings as ll, PutioHttpRequest as lm, CreateSharingCloneError as ln, searchFriends as lo, CreateAppSpecificPasswordError as lp, ClearRssFeedLogsError as lr, FileListResponse as ls, TransferInfoItem as lt, HistoryTransferCallbackErrorEventSchema as lu, CreateZipErrorSpec as m, createOpenNodeCharge as ma, RenameFileErrorSpec as mc, LinkDeviceError as md, regenerateRecoveryCodes as mf, GetPaddleBillingInvoiceUrlErrorSpec as mi, setStartFrom as ml, PutioSdkConfig as mm, GetPublicShareErrorSpec as mn, FriendInviteJoinedUser as mo, DeleteAllAppSpecificPasswordsError as mp, DeleteRssFeedErrorSpec as mr, FileMediaMetadata as ms, TransferStatus as mt, HistoryUploadEventSchema as mu, DEFAULT_PUTIO_UPLOAD_BASE_URL as n, PreviewPaymentChangePlanErrorSpec as na, FilesSearchQuerySchema as nc, ForgotPasswordError as nd, forgotPassword as nf, isPutioAuthError as nh, PodcastLinksSchema as ni, listFileExtractions as nl, listAccountConfirmations as nm, emptyTrash as nn, countWaitingRequests as no, getPopularOAuthApps as np, getSharedWith as nr, FileExtractionsError as ns, StopRecordingTransferErrorSpec as nt, HistoryFileFromRssDeletedEventSchema as nu, PutioSdkPromiseClient as o, ReportPaymentsErrorSpec as oa, GetFileChildErrorSpec as oc, GenerateTOTPError as od, getFriendInvite as of, mapConfigurationError as oh, ConfirmFastspringOrderErrorSpec as oi, putMp4ToMyFiles as ol, PutioAuth as om, ContinuePublicShareFilesErrorSpec as on, listSentRequests as oo, updateOAuthApp as op, listSharedFiles as or, FileHlsMasterPlaylistOptions as os, TransferAddTrackersInput as ot, HistoryKnownEventTypeSchema as ou, CreateZipError as p, confirmFastspringOrder as pa, RenameFileError as pc, GrantsErrorSpec as pd, logout as pf, GetPaddleBillingInvoiceUrlError as pi, setFilesWatchStatus as pl, PutioQueryValue as pm, GetPublicShareError as pn, FriendInvite as po, CreateAppSpecificPasswordResult as pp, DeleteRssFeedError as pr, FileMediaInfoStreamSchema as ps, TransferSchema as pt, HistoryTransferFromRssErrorEventSchema as pu, ListTransfersError as q, RemoveFriendError as qa, getDownloadUrl as qc, VerifyTOTPResponse as qd, RegenerateOAuthAppTokenError as qf, PaymentPlanTypeSchema as qi, DeleteEventError as ql, PutioSdkError as qm, SharingUnshareInputSchema as qn, FileCopyInput as qo, PasInfoSchema as qp, retryAllRssFeedItems as qr, FileWatchStatusErrorSpec as qs, RestoreTrashErrorSpec as qt, readConfigWith as qu, DEFAULT_PUTIO_WEB_APP_URL as r, RedeemPaymentVoucherError as ra, FolderType as rc, ForgotPasswordErrorSpec as rd, generateTOTP as rf, isPutioErrorEnvelope as rh, getPodcastLinks as ri, listFileSubtitles as rl, listAccountSubtitleLanguages as rm, listTrash as rn, denyFriendRequest as ro, queryOAuthApps as rp, getSharingCloneInfo as rr, FileExtractionsErrorSpec as rs, Transfer as rt, HistoryFileSharedEvent as ru, createPutioSdkEffectClient as s, StopSubscriptionError as sa, GetFileError as sc, GenerateTOTPErrorSpec as sd, getGiftCard as sf, mapDecodeErrorToValidationError as sh, CreateOpenNodeChargeError as si, queryFiles as sl, PutioHttpClient as sm, CreatePublicShareError as sn, listWaitingRequests as so, AppSpecificPassword as sp, shareFiles as sr, FileHlsStreamUrlOptions as ss, TransferAddTrackersInputSchema as st, HistoryPrivateTorrentPinEventSchema as su, DEFAULT_PUTIO_API_BASE_URL as t, PreviewPaymentChangePlanError as ta, FilesSearchQuery as tc, FamilyInviteLookupErrorSpec as td, exists as tf, isPutioApiError as th, PodcastLinksResponse as ti, listActiveMp4Conversions as tl, getAccountSettings as tm, deleteTrash as tn, approveFriendRequest as to, getOAuthApp as tp, getPublicShareFileUrl as tr, FileExtractionStatusSchema as ts, StopRecordingTransferError as tt, HistoryEventSchema as tu, makePutioSdkLiveClientLayer as u, SubmitPaymentChangePlanErrorSpec as ua, GetHlsMasterPlaylistErrorSpec as uc, GiftCardLookupError as ud, grants as uf, responseRateLimitHeaders as uh, CreatePaddleBillingUpdatePaymentMethodTransactionErrorSpec as ui, resetStartFrom as ul, PutioHttpResponse as um, CreateSharingCloneErrorSpec as un, sendFriendRequest as uo, CreateAppSpecificPasswordErrorSpec as up, ClearRssFeedLogsErrorSpec as ur, FileMediaInfo as us, TransferLink as ut, HistoryTransferCompletedEvent as uu, ListZipsError as v, getPaymentInfo as va, StartFromError as vc, LoginInput as vd, revokeApp as vf, GetPaymentVoucherInfoErrorSpec as vi, GetIftttStatusErrorSpec as vl, encodePathSegment as vm, GetSharedWithErrorSpec as vn, FriendInviteSchema as vo, ListAppSpecificPasswordsError as vp, ListRssFeedItemsErrorSpec as vr, FileMp4MutationError as vs, TransfersAddMultiError as vt, ListEventsError as vu, cancelZip as w, previewPaymentChangePlan as wa, buildFileApiMp4DownloadUrl as wc, OAuthAuthorizationCodeExchangeInputSchema as wd, DeleteOAuthAppError as wf, ListPaymentOptionsErrorSpec as wi, sendIftttEvent as wl, requestArrayBuffer as wm, ListPublicSharesErrorSpec as wn, CanWriteFileErrorSpec as wo, AccountClearOptions as wp, ResumeRssFeedErrorSpec as wr, FileSearchResponse as ws, addTransfer as wt, CreateDownloadLinksError as wu, ZipInfo as x, listPaymentInvites as xa, TouchFilesErrorSpec as xc, OAuthAuthorizationCodeExchangeError as xd, verifyTOTP as xf, ListPaymentInvitesError as xi, SendIftttEventError as xl, normalizePutioSdkOptions as xm, ListPublicShareFilesError as xn, createFriendInvite as xo, deleteAllAppSpecificPasswords as xp, PauseRssFeedError as xr, FileQuerySchema as xs, TransfersListQuerySchema as xt, deleteEvent as xu, ListZipsErrorSpec as y, getPaymentVoucherInfo as ya, StartFromErrorSpec as yc, LoginResponse as yd, revokeClient as yf, ListPaymentHistoryError as yi, IftttEventInput as yl, makePutioFetchClient as ym, GetSharingCloneInfoError as yn, ListFriendInvitesError as yo, ListAppSpecificPasswordsErrorSpec as yp, ListRssFeedsError as yr, FileMp4MutationErrorSpec as ys, TransfersContinueResponse as yt, ListEventsErrorSpec as yu, AddTransferError as z, FriendSharedFolderError as za, deleteFileSelection as zc, RevokeOAuthGrantError as zd, OAuthSetIconInput as zf, PaymentInvite as zi, RemoveFamilyMemberErrorSpec as zl, PutioKnownOperationErrorContract as zm, SharingCloneInfo as zn, FileBase as zo, AccountSettings as zp, clearRssFeedLogs as zr, FileUploadError as zs, ContinueTrashErrorSpec as zt, JsonValueSchema as zu };
9918
+ //# sourceMappingURL=index-cA579zP3.d.ts.map