@putdotio/sdk 18.1.0 → 19.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -177,25 +177,10 @@ const withOperationErrors = dual(2, (effect, spec) => effect.pipe(Effect.mapErro
177
177
  reason: toOperationReason(contract),
178
178
  status: error.status
179
179
  });
180
- })));
181
- // src/core/validation.ts
182
- const PositiveIntegerSchema = Schema.Int.check(Schema.isGreaterThan(0));
183
- const NonEmptyStringSchema = Schema.String.check(Schema.isMinLength(1));
184
- const NonNegativeNumberSchema = Schema.Finite.check(Schema.isGreaterThanOrEqualTo(0));
185
- const decodeAndRun = (schema, input, run) => Schema.decodeUnknownEffect(schema, { onExcessProperty: "error" })(input).pipe(Effect.mapError(mapValidationError), Effect.flatMap(run));
186
- const decodeAndRunRedacted = (domain, operation) => (schema, input, run) => Schema.decodeUnknownEffect(schema, { onExcessProperty: "error" })(input).pipe(Effect.mapError(() => new PutioValidationError({ cause: {
187
- domain,
188
- operation,
189
- reason: "Invalid request input"
190
- } })), Effect.flatMap(run));
191
- const failMissingField = (field) => Effect.fail(new PutioContractError({ missingField: field }));
192
- const requireRequestedBreadcrumbs = (query) => (effect) => effect.pipe(Effect.filterOrElse((response) => query.breadcrumbs !== 1 || response.breadcrumbs !== void 0, () => failMissingField("breadcrumbs")));
193
- const cursorSelectionSchema = (fields) => Schema.Struct({
194
- cursor: Schema.optional(NonEmptyStringSchema),
195
- excludeIds: Schema.optional(Schema.Array(PositiveIntegerSchema)),
196
- ids: Schema.optional(Schema.Array(PositiveIntegerSchema).check(Schema.isMinLength(1))),
197
- ...fields
198
- }).check(Schema.makeFilter((input) => input.cursor !== void 0 || input.ids !== void 0, { expected: "a non-empty cursor or file ID selection" }));
180
+ }), Effect.withSpan(`putio.${spec.domain}.${spec.operation}`, { attributes: {
181
+ "putio.domain": spec.domain,
182
+ "putio.operation": spec.operation
183
+ } })));
199
184
  // src/core/defaults.ts
200
185
  const DEFAULT_PUTIO_API_BASE_URL = "https://api.put.io";
201
186
  const DEFAULT_PUTIO_UPLOAD_BASE_URL = "https://upload.put.io";
@@ -249,6 +234,7 @@ const makePutioFetchClient = (fetchImplementation = globalThis.fetch) => ({ exec
249
234
  };
250
235
  });
251
236
  }) });
237
+ const putioFetchLayer = Layer.sync(PutioHttpClient, () => makePutioFetchClient());
252
238
  const encodePathSegment = (value) => encodeURIComponent(String(value));
253
239
  const absoluteUrlPattern = /^(?:[a-z][a-z\d+.-]*:|\/\/)/i;
254
240
  const dotSegmentPattern = /^(?:\.|%2e){1,2}$/i;
@@ -344,6 +330,24 @@ const selectJsonFields = (...fields) => (effect) => effect.pipe(Effect.map((valu
344
330
  const requestArrayBuffer = (options) => executeRequest(options).pipe(Effect.flatMap((response) => isSuccessStatus(response.status) ? response.arrayBuffer.pipe(Effect.map((buffer) => new Uint8Array(buffer))) : decodeFailure(response, response.headers).pipe(Effect.flatMap(Effect.fail))));
345
331
  const requestText = (options) => requestArrayBuffer(options).pipe(Effect.map((bytes) => new TextDecoder().decode(bytes)));
346
332
  const requestVoid = (options) => executeRequest(options).pipe(Effect.flatMap((response) => isSuccessStatus(response.status) ? Effect.ignore(response.arrayBuffer) : decodeFailure(response, response.headers).pipe(Effect.flatMap(Effect.fail))));
333
+ // src/core/validation.ts
334
+ const PositiveIntegerSchema = Schema.Int.check(Schema.isGreaterThan(0));
335
+ const NonEmptyStringSchema = Schema.String.check(Schema.isMinLength(1));
336
+ const NonNegativeNumberSchema = Schema.Finite.check(Schema.isGreaterThanOrEqualTo(0));
337
+ const decodeAndRun = (schema, input, run) => Schema.decodeUnknownEffect(schema, { onExcessProperty: "error" })(input).pipe(Effect.mapError(mapValidationError), Effect.flatMap(run));
338
+ const decodeAndRunRedacted = (domain, operation) => (schema, input, run) => Schema.decodeUnknownEffect(schema, { onExcessProperty: "error" })(input).pipe(Effect.mapError(() => new PutioValidationError({ cause: {
339
+ domain,
340
+ operation,
341
+ reason: "Invalid request input"
342
+ } })), Effect.flatMap(run));
343
+ const failMissingField = (field) => Effect.fail(new PutioContractError({ missingField: field }));
344
+ const requireRequestedBreadcrumbs = (query) => (effect) => effect.pipe(Effect.filterOrElse((response) => query.breadcrumbs !== 1 || response.breadcrumbs !== void 0, () => failMissingField("breadcrumbs")));
345
+ const cursorSelectionSchema = (fields) => Schema.Struct({
346
+ cursor: Schema.optional(NonEmptyStringSchema),
347
+ excludeIds: Schema.optional(Schema.Array(PositiveIntegerSchema)),
348
+ ids: Schema.optional(Schema.Array(PositiveIntegerSchema).check(Schema.isMinLength(1))),
349
+ ...fields
350
+ }).check(Schema.makeFilter((input) => input.cursor !== void 0 || input.ids !== void 0, { expected: "a non-empty cursor or file ID selection" }));
347
351
  // src/core/forms.ts
348
352
  const joinCsv = (values) => values && values.length > 0 ? values.join(",") : void 0;
349
353
  function toCursorSelectionForm(selection, idsFieldName = "file_ids") {
@@ -353,6 +357,6 @@ function toCursorSelectionForm(selection, idsFieldName = "file_ids") {
353
357
  [idsFieldName]: joinCsv(selection.ids)
354
358
  };
355
359
  }
356
- export { mapContractError as $, requireRequestedBreadcrumbs as A, decodePutioErrorEnvelope as B, NonEmptyStringSchema as C, decodeAndRun as D, cursorSelectionSchema as E, PutioErrorEnvelopeSchema as F, isPutioConfigurationError as G, fallbackPutioErrorEnvelope as H, PutioOperationError as I, isPutioOperationError as J, isPutioContractError as K, PutioRateLimitError as L, PutioAuthError as M, PutioConfigurationError as N, decodeAndRunRedacted as O, PutioContractError as P, mapConfigurationError as Q, PutioTransportError as R, DEFAULT_PUTIO_WEB_APP_URL as S, PositiveIntegerSchema as T, isPutioApiError as U, definePutioOperationErrorSpec as V, isPutioAuthError as W, isPutioTransportError as X, isPutioRateLimitError as Y, isPutioValidationError as Z, selectJsonField as _, PutioSdkConfig as a, withOperationErrors as at, DEFAULT_PUTIO_API_BASE_URL as b, makePutioFetchClient as c, putioSdkLayer as d, mapTransportError as et, putioSdkLiveLayer as f, requestVoid as g, requestText as h, PutioHttpClient as i, toPutioResponseError as it, PutioApiError as j, failMissingField as k, makePutioFetchLayer as l, requestJson as m, toCursorSelectionForm as n, parseErrorBody as nt, buildPutioUrl as o, requestArrayBuffer as p, isPutioErrorEnvelope as q, OkResponseSchema as r, responseRateLimitHeaders as rt, encodePathSegment as s, joinCsv as t, mapValidationError as tt, normalizePutioSdkOptions as u, selectJsonFields as v, NonNegativeNumberSchema as w, DEFAULT_PUTIO_UPLOAD_BASE_URL as x, revealAccessToken as y, PutioValidationError as z };
360
+ export { mapConfigurationError as $, DEFAULT_PUTIO_UPLOAD_BASE_URL as A, PutioValidationError as B, requestJson as C, selectJsonFields as D, selectJsonField as E, PutioContractError as F, isPutioAuthError as G, definePutioOperationErrorSpec as H, PutioErrorEnvelopeSchema as I, isPutioErrorEnvelope as J, isPutioConfigurationError as K, PutioOperationError as L, PutioApiError as M, PutioAuthError as N, revealAccessToken as O, PutioConfigurationError as P, isPutioValidationError as Q, PutioRateLimitError as R, requestArrayBuffer as S, requestVoid as T, fallbackPutioErrorEnvelope as U, decodePutioErrorEnvelope as V, isPutioApiError as W, isPutioRateLimitError as X, isPutioOperationError as Y, isPutioTransportError as Z, makePutioFetchLayer as _, PositiveIntegerSchema as a, toPutioResponseError as at, putioSdkLayer as b, decodeAndRunRedacted as c, OkResponseSchema as d, mapContractError as et, PutioHttpClient as f, makePutioFetchClient as g, encodePathSegment as h, NonNegativeNumberSchema as i, responseRateLimitHeaders as it, DEFAULT_PUTIO_WEB_APP_URL as j, DEFAULT_PUTIO_API_BASE_URL as k, failMissingField as l, buildPutioUrl as m, toCursorSelectionForm as n, mapValidationError as nt, cursorSelectionSchema as o, withOperationErrors as ot, PutioSdkConfig as p, isPutioContractError as q, NonEmptyStringSchema as r, parseErrorBody as rt, decodeAndRun as s, joinCsv as t, mapTransportError as tt, requireRequestedBreadcrumbs as u, normalizePutioSdkOptions as v, requestText as w, putioSdkLiveLayer as x, putioFetchLayer as y, PutioTransportError as z };
357
361
 
358
- //# sourceMappingURL=forms-BBMvLadC.js.map
362
+ //# sourceMappingURL=forms-fF5yj0vj.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"forms-fF5yj0vj.js","names":[],"sources":["../src/core/errors.ts","../src/core/defaults.ts","../src/core/response-body.ts","../src/core/secrets.ts","../src/core/http.ts","../src/core/validation.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 | undefined;\n readonly error_type?: [ContractErrorType<TContract>] extends [never]\n ? string | undefined\n : ContractErrorType<TContract> | undefined;\n readonly status_code?: [ContractStatusCode<TContract>] extends [never]\n ? number | undefined\n : ContractStatusCode<TContract> | undefined;\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.Int,\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\nconst CauseErrorFields = {\n cause: Schema.Defect(),\n};\n\nexport class PutioTransportError extends Schema.TaggedError<\n PutioTransportError,\n { readonly brand: unique symbol }\n>()(\"PutioTransportError\", { ...CauseErrorFields }) {}\n\nexport class PutioConfigurationError extends Schema.TaggedError<\n PutioConfigurationError,\n { readonly brand: unique symbol }\n>()(\"PutioConfigurationError\", { ...CauseErrorFields }) {}\n\nexport class PutioValidationError extends Schema.TaggedError<\n PutioValidationError,\n { readonly brand: unique symbol }\n>()(\"PutioValidationError\", { ...CauseErrorFields }) {}\n\nexport class PutioContractError extends Schema.TaggedError<\n PutioContractError,\n { readonly brand: unique symbol }\n>()(\"PutioContractError\", {\n cause: Schema.optional(Schema.Defect()),\n missingField: Schema.optional(Schema.String),\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 retryAfterSeconds: Schema.optional(Schema.Finite),\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<\n PutioApiError,\n { readonly brand: unique symbol }\n>()(\"PutioApiError\", {\n ...PutioResponseErrorFields,\n}) {}\n\nexport class PutioAuthError extends Schema.TaggedError<\n PutioAuthError,\n { readonly brand: unique symbol }\n>()(\"PutioAuthError\", {\n ...PutioResponseErrorFields,\n}) {}\n\nexport class PutioRateLimitError extends Schema.TaggedError<\n PutioRateLimitError,\n { readonly brand: unique symbol }\n>()(\"PutioRateLimitError\", { ...PutioResponseErrorFields, ...RateLimitHeaderFields }) {}\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 | PutioContractError\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 PutioOperationErrorValueSchema = Schema.TaggedStruct(\"PutioOperationError\", {\n body: PutioResponseErrorFields.body,\n status: PutioResponseErrorFields.status,\n contract: PutioKnownOperationErrorContractSchema,\n domain: Schema.String,\n operation: Schema.String,\n reason: PutioOperationErrorReasonSchema,\n});\n\nconst CauseErrorValueFields = {\n cause: Schema.optional(Schema.Defect()),\n};\n\nconst PutioTransportErrorValueSchema = Schema.Struct({\n ...PutioTransportError.fields,\n ...CauseErrorValueFields,\n});\n\nconst PutioConfigurationErrorValueSchema = Schema.Struct({\n ...PutioConfigurationError.fields,\n ...CauseErrorValueFields,\n});\n\nconst PutioValidationErrorValueSchema = Schema.Struct({\n ...PutioValidationError.fields,\n ...CauseErrorValueFields,\n});\n\nconst PutioContractErrorValueSchema = Schema.Struct(PutioContractError.fields);\n\nconst PutioApiErrorValueSchema = Schema.Struct(PutioApiError.fields);\n\nconst PutioAuthErrorValueSchema = Schema.Struct(PutioAuthError.fields);\n\nconst PutioRateLimitErrorValueSchema = Schema.Struct(PutioRateLimitError.fields);\n\nexport type PutioTransportErrorValue = typeof PutioTransportErrorValueSchema.Type;\n\nexport type PutioConfigurationErrorValue = typeof PutioConfigurationErrorValueSchema.Type;\n\nexport type PutioValidationErrorValue = typeof PutioValidationErrorValueSchema.Type;\n\nexport type PutioContractErrorValue = typeof PutioContractErrorValueSchema.Type;\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 isPutioTransportError = Schema.is(PutioTransportErrorValueSchema);\n\nexport const isPutioConfigurationError = Schema.is(PutioConfigurationErrorValueSchema);\n\nexport const isPutioValidationError = Schema.is(PutioValidationErrorValueSchema);\n\nexport const isPutioContractError = Schema.is(PutioContractErrorValueSchema);\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\nconst deltaSecondsPattern = /^\\d+$/;\n\nconst httpDatePattern =\n /^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), \\d{2} (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) \\d{4} \\d{2}:\\d{2}:\\d{2} GMT$/;\n\nconst parseRetryAfterSeconds = (value: string | undefined): number | undefined => {\n const trimmed = value?.trim();\n\n if (trimmed === undefined) {\n return undefined;\n }\n\n if (deltaSecondsPattern.test(trimmed)) {\n const seconds = Number(trimmed);\n\n return Number.isSafeInteger(seconds) ? seconds : undefined;\n }\n\n if (!httpDatePattern.test(trimmed)) {\n return undefined;\n }\n\n const retryAt = Date.parse(trimmed);\n\n return Number.isNaN(retryAt) ? undefined : Math.max(0, Math.ceil((retryAt - Date.now()) / 1000));\n};\n\nexport const responseRateLimitHeaders = (headers: Headers) => {\n const retryAfter = getHeader(headers, \"retry-after\");\n\n return {\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,\n retryAfterSeconds: parseRetryAfterSeconds(retryAfter),\n reset: getHeader(headers, \"x-ratelimit-reset\"),\n };\n};\n\nexport const mapValidationError = (cause: unknown) => new PutioValidationError({ cause });\n\nexport const mapContractError = (cause: unknown) => new PutioContractError({ 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 Effect.withSpan(`putio.${spec.domain}.${spec.operation}`, {\n attributes: { \"putio.domain\": spec.domain, \"putio.operation\": spec.operation },\n }),\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 { fallbackPutioErrorEnvelope, mapContractError, toPutioResponseError } from \"./errors.js\";\nimport type { PutioSdkError } from \"./errors.js\";\n\nexport const isSuccessStatus = (status: number) => status >= 200 && status < 300;\n\nexport const unparsableJsonBodyError = (status: number, headers: Headers): PutioSdkError =>\n isSuccessStatus(status)\n ? mapContractError(new SyntaxError(\"The HTTP response body is not valid JSON\"))\n : toPutioResponseError(\n status,\n headers,\n fallbackPutioErrorEnvelope(status),\n new SyntaxError(\"The HTTP error response body is not valid JSON\"),\n );\n","import { Effect, Predicate, Redacted } from \"effect\";\n\nimport { mapConfigurationError } from \"./errors.js\";\nimport type { PutioConfigurationError } from \"./errors.js\";\n\nexport const revealSecret = (\n secret: string | Redacted.Redacted<string>,\n): Effect.Effect<string, PutioConfigurationError> =>\n Predicate.isString(secret)\n ? Effect.succeed(secret)\n : Effect.try({\n try: () => Redacted.value(secret),\n catch: mapConfigurationError,\n });\n\nexport const revealAccessToken = (\n accessToken: Redacted.Redacted<string> | undefined,\n): Effect.Effect<string | undefined, PutioConfigurationError> =>\n accessToken === undefined\n ? Effect.undefined\n : revealSecret(accessToken).pipe(Effect.map((token) => (token === \"\" ? undefined : token)));\n","import { Context, Effect, Layer, Predicate, Redacted, 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 mapConfigurationError,\n mapContractError,\n mapTransportError,\n mapValidationError,\n parseErrorBody,\n PutioConfigurationError,\n PutioValidationError,\n toPutioResponseError,\n} from \"./errors.js\";\nimport type { PutioSdkError } from \"./errors.js\";\nimport { isSuccessStatus, unparsableJsonBodyError } from \"./response-body.js\";\nimport { revealAccessToken, revealSecret } from \"./secrets.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 type PutioSecret = string | Redacted.Redacted<string>;\n\nexport interface PutioSdkOptions {\n readonly accessToken?: PutioSecret | undefined;\n readonly baseUrl?: string | URL | undefined;\n readonly headers?: HeadersInit | undefined;\n readonly uploadBaseUrl?: string | URL | undefined;\n readonly webAppUrl?: string | URL | undefined;\n}\n\nexport interface PutioSdkResolvedConfig {\n readonly accessToken: Redacted.Redacted<string> | undefined;\n readonly baseUrl: string | URL;\n readonly headers: HeadersInit | undefined;\n readonly uploadBaseUrl: string | URL;\n readonly webAppUrl: string | URL;\n}\n\nexport class PutioSdkConfig extends Context.Service<PutioSdkConfig, PutioSdkResolvedConfig>()(\n \"@putdotio/sdk/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 \"@putdotio/sdk/PutioHttpClient\",\n) {}\n\nexport type PutioSdkContext = PutioSdkConfig | PutioHttpClient;\n\nconst redactPutioSecret = (\n secret: PutioSecret | undefined,\n): Redacted.Redacted<string> | undefined => {\n if (secret === undefined) {\n return undefined;\n }\n\n if (Predicate.isString(secret)) {\n return secret === \"\" ? undefined : Redacted.make(secret);\n }\n\n return secret;\n};\n\nexport const normalizePutioSdkOptions = (config: PutioSdkOptions): PutioSdkResolvedConfig => ({\n accessToken: redactPutioSecret(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\nconst decodeJsonText = Schema.decodeEffect(Schema.fromJsonString(Schema.Unknown));\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 ?? null,\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: read(() => response.text()).pipe(\n Effect.flatMap((text) =>\n decodeJsonText(text).pipe(\n Effect.mapError(() => unparsableJsonBodyError(response.status, response.headers)),\n ),\n ),\n ),\n status: response.status,\n };\n });\n }),\n});\n\nexport const putioFetchLayer = Layer.sync(PutioHttpClient, () => makePutioFetchClient());\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 parserRewrittenPattern = /[\\\\\\p{Cc}]|^ | $/u;\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 (parserRewrittenPattern.test(path)) {\n throw mapValidationError(\n \"SDK API request paths must not contain backslashes, control characters, or edge spaces\",\n );\n }\n\n const [pathname = \"\"] = path.split(/[?#]/, 1);\n\n if (pathname.split(\"/\").some((segment) => dotSegmentPattern.test(segment))) {\n throw mapValidationError(\"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: PutioSecret }\n | { readonly type: \"basic\"; readonly username: string; readonly password: PutioSecret }\n | { readonly type: \"none\" };\n\ntype PutioRequestMethod = \"GET\" | \"POST\" | \"PUT\" | \"PATCH\" | \"DELETE\";\n\ntype PutioFormValue = Exclude<Schema.Json, boolean>;\n\ntype PutioRequestBody =\n | { readonly type: \"none\" }\n | { readonly type: \"json\"; readonly value: unknown }\n | { readonly type: \"form\"; readonly value: Readonly<Record<string, PutioFormValue | 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 | undefined;\n readonly query?: PutioQuery | undefined;\n readonly headers?: HeadersInit | undefined;\n readonly auth?: PutioAuth | undefined;\n readonly body?: PutioRequestBody | undefined;\n}\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(Effect.mapError(mapContractError)),\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: PutioSdkResolvedConfig,\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.undefined;\n case \"token\":\n return revealSecret(resolvedAuth.token).pipe(Effect.map((token) => `Token ${token}`));\n case \"basic\":\n return revealSecret(resolvedAuth.password).pipe(\n Effect.flatMap((password) =>\n Effect.try({\n try: () => `Basic ${btoa(`${resolvedAuth.username}:${password}`)}`,\n catch: mapConfigurationError,\n }),\n ),\n );\n case \"config-token\":\n return revealAccessToken(config.accessToken).pipe(\n Effect.flatMap((token) =>\n token === undefined\n ? Effect.fail(\n mapConfigurationError(\n \"This endpoint requires an access token, but PutioSdkConfig.accessToken is missing\",\n ),\n )\n : Effect.succeed(`Token ${token}`),\n ),\n );\n }\n};\n\nconst normalizeFormValue = (value: PutioFormValue): string => {\n if (value === null) {\n return \"\";\n }\n\n if (Predicate.isString(value)) {\n return value;\n }\n\n if (Predicate.isNumber(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.undefined;\n case \"json\":\n return Effect.try({\n try: () => JSON.stringify(body.value),\n catch: mapValidationError,\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 buildRequestHeaders = (\n requestHeaders: HeadersInit | undefined,\n configHeaders: HeadersInit | undefined,\n authorization: string | undefined,\n bodyType: PutioRequestBody[\"type\"] | \"none\",\n): Headers => {\n const headers = new Headers(configHeaders);\n headers.delete(\"authorization\");\n new Headers(requestHeaders).forEach((value, name) => headers.set(name, value));\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 (bodyType === \"json\" && !headers.has(\"content-type\")) {\n headers.set(\"content-type\", \"application/json\");\n }\n\n return headers;\n};\n\nconst makeRequest = Effect.fnUntraced(function* (\n url: string,\n options: PutioRequestOptions,\n configHeaders: HeadersInit | undefined,\n authorization?: string,\n) {\n const body = options.body ?? { type: \"none\" as const };\n\n const headers = yield* Effect.try({\n try: () => buildRequestHeaders(options.headers, configHeaders, authorization, body.type),\n catch: () => mapConfigurationError(\"SDK request headers must be valid HTTP header values\"),\n });\n\n const requestBody = yield* withBody(body);\n\n const request: PutioHttpRequest = { headers, method: options.method, url };\n\n return requestBody === undefined ? request : { ...request, body: requestBody };\n});\n\nconst executeRequest = Effect.fn(\"PutioSdk.executeRequest\")(function* (\n options: PutioRequestOptions,\n) {\n yield* Effect.annotateCurrentSpan(\"http.request.method\", options.method);\n\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: () => buildPutioUrl(options.baseUrl ?? config.baseUrl, options.path, options.query),\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 ReadonlyArray<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.ignore(response.arrayBuffer)\n : decodeFailure(response, response.headers).pipe(Effect.flatMap(Effect.fail)),\n ),\n );\n","import { Effect, Schema } from \"effect\";\n\nimport { mapValidationError, PutioContractError, PutioValidationError } from \"./errors.js\";\n\nexport const PositiveIntegerSchema = Schema.Int.check(Schema.isGreaterThan(0));\nexport const NonEmptyStringSchema = Schema.String.check(Schema.isMinLength(1));\nexport const NonNegativeNumberSchema = Schema.Finite.check(Schema.isGreaterThanOrEqualTo(0));\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(mapValidationError),\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\nexport const failMissingField = (field: string): Effect.Effect<never, PutioContractError> =>\n Effect.fail(new PutioContractError({ missingField: field }));\n\nexport const requireRequestedBreadcrumbs =\n (query: { readonly breadcrumbs?: 1 | undefined }) =>\n <A extends { readonly breadcrumbs?: unknown }, E, R>(\n effect: Effect.Effect<A, E, R>,\n ): Effect.Effect<A, E | PutioContractError, R> =>\n effect.pipe(\n Effect.filterOrElse(\n (response) => query.breadcrumbs !== 1 || response.breadcrumbs !== undefined,\n () => failMissingField(\"breadcrumbs\"),\n ),\n );\n\ntype CursorOrIdsSelection = {\n readonly cursor?: string | undefined;\n readonly ids?: ReadonlyArray<number> | undefined;\n};\n\nexport type CursorSelection<TFields extends CursorOrIdsSelection> =\n | (TFields & { readonly cursor: string })\n | (TFields & { readonly ids: ReadonlyArray<number> });\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","type CsvValue = string | number;\n\nexport interface CursorSelectionInput<TValue extends CsvValue = number> {\n readonly cursor?: string | undefined;\n readonly excludeIds?: ReadonlyArray<TValue> | undefined;\n readonly ids?: ReadonlyArray<TValue> | undefined;\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 | undefined;\n readonly exclude_ids?: string | undefined;\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,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ACrF,GAAG;AACL,CAAC,CAAC,CAAC,MACD,OAAO,YACJ,UAAgC,MAAM,WAAW,KAAA,KAAa,MAAM,QAAQ,KAAA,GAC7E,EAAE,UAAU,0CAA0C,CACxD,CACF;;AChEF,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"}
@@ -1,5 +1,5 @@
1
1
  import { Context, Effect, Layer, ManagedRuntime, Redacted, Schema } from "effect";
2
- declare const PutioErrorEnvelopeSchema: Schema.Struct<{
2
+ declare const PutioErrorEnvelopeSchema$1: Schema.Struct<{
3
3
  readonly status: Schema.optional<Schema.String>;
4
4
  readonly error: Schema.optional<Schema.String>;
5
5
  readonly error_message: Schema.optional<Schema.String>;
@@ -10,7 +10,7 @@ declare const PutioErrorEnvelopeSchema: Schema.Struct<{
10
10
  readonly status_code: Schema.optional<Schema.Int>;
11
11
  readonly details: Schema.optional<Schema.Unknown>;
12
12
  }>;
13
- type PutioErrorEnvelope = Schema.Schema.Type<typeof PutioErrorEnvelopeSchema>;
13
+ type PutioErrorEnvelope = Schema.Schema.Type<typeof PutioErrorEnvelopeSchema$1>;
14
14
  interface PutioKnownErrorContract<TType extends string = string, TStatus extends number = number, TBody extends PutioErrorEnvelope = PutioErrorEnvelope> {
15
15
  readonly bodySchema?: Schema.Schema<TBody> | undefined;
16
16
  readonly errorType?: TType | undefined;
@@ -153,19 +153,6 @@ type PutioOperationErrorFromSpec<TSpec extends PutioOperationErrorSpec> = PutioO
153
153
  type PutioOperationFailure<TSpec extends PutioOperationErrorSpec> = PutioUnhandledSdkError | PutioOperationErrorFromSpec<TSpec>;
154
154
  type AnyPutioOperationError = PutioOperationError<string, string, PutioKnownOperationErrorContract>;
155
155
  declare const definePutioOperationErrorSpec: <const TDomain extends string, const TOperation extends string, const TContracts extends ReadonlyArray<PutioKnownErrorContract>>(spec: PutioOperationErrorSpec<TDomain, TOperation, TContracts>) => PutioOperationErrorSpec<TDomain, TOperation, TContracts>;
156
- declare const decodePutioErrorEnvelope: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => Effect.Effect<{
157
- readonly status?: string | undefined;
158
- readonly error?: string | undefined;
159
- readonly error_message?: string | undefined;
160
- readonly error_type?: string | undefined;
161
- readonly error_uri?: string | undefined;
162
- readonly error_id?: string | null | undefined;
163
- readonly extra?: {
164
- readonly [x: string]: unknown;
165
- } | undefined;
166
- readonly status_code?: number | undefined;
167
- readonly details?: unknown;
168
- }, Schema.SchemaError, never>;
169
156
  declare const isPutioErrorEnvelope: (value: unknown) => value is PutioErrorEnvelope;
170
157
  declare const PutioOperationErrorValueSchema: Schema.TaggedStruct<"PutioOperationError", {
171
158
  readonly body: Schema.Struct<{
@@ -388,8 +375,8 @@ declare const isPutioOperationError: <I>(input: I) => input is I & {
388
375
  readonly statusCode: number;
389
376
  };
390
377
  };
391
- declare const fallbackPutioErrorEnvelope: (status: number) => PutioErrorEnvelope;
392
- declare const responseRateLimitHeaders: (headers: Headers) => {
378
+ declare const fallbackPutioErrorEnvelope$1: (status: number) => PutioErrorEnvelope;
379
+ declare const responseRateLimitHeaders$1: (headers: Headers) => {
393
380
  action: string | undefined;
394
381
  id: string | undefined;
395
382
  limit: string | undefined;
@@ -398,12 +385,12 @@ declare const responseRateLimitHeaders: (headers: Headers) => {
398
385
  retryAfterSeconds: number | undefined;
399
386
  reset: string | undefined;
400
387
  };
401
- declare const mapValidationError: (cause: unknown) => PutioValidationError;
402
- declare const mapContractError: (cause: unknown) => PutioContractError;
403
- declare const mapConfigurationError: (cause: unknown) => PutioConfigurationError;
404
- declare const mapTransportError: (cause: unknown) => PutioTransportError;
405
- declare const toPutioResponseError: (status: number, headers: Headers, body: PutioErrorEnvelope, cause?: unknown) => PutioSdkError;
406
- declare const parseErrorBody: (status: number) => (input: unknown, options?: import("effect/SchemaAST").ParseOptions | undefined) => Effect.Effect<{
388
+ declare const mapValidationError$1: (cause: unknown) => PutioValidationError;
389
+ declare const mapContractError$1: (cause: unknown) => PutioContractError;
390
+ declare const mapConfigurationError$1: (cause: unknown) => PutioConfigurationError;
391
+ declare const mapTransportError$1: (cause: unknown) => PutioTransportError;
392
+ declare const toPutioResponseError$1: (status: number, headers: Headers, body: PutioErrorEnvelope, cause?: unknown) => PutioSdkError;
393
+ declare const parseErrorBody$1: (status: number) => (input: unknown, options?: import("effect/SchemaAST").ParseOptions | undefined) => Effect.Effect<{
407
394
  readonly status?: string | undefined;
408
395
  readonly error?: string | undefined;
409
396
  readonly error_message?: string | undefined;
@@ -416,13 +403,9 @@ declare const parseErrorBody: (status: number) => (input: unknown, options?: imp
416
403
  readonly status_code?: number | undefined;
417
404
  readonly details?: unknown;
418
405
  }, never, never>;
419
- declare const withOperationErrors: {
420
- <const TDomain extends string, const TOperation extends string, const TContracts extends ReadonlyArray<PutioKnownErrorContract>>(spec: PutioOperationErrorSpec<TDomain, TOperation, TContracts>): <A, E extends PutioSdkError, R>(effect: Effect.Effect<A, E, R>) => Effect.Effect<A, E | PutioOperationError<TDomain, TOperation, KnownOperationContractOf<TContracts>>, R>;
421
- <A, E extends PutioSdkError, R, const TDomain extends string, const TOperation extends string, const TContracts extends ReadonlyArray<PutioKnownErrorContract>>(effect: Effect.Effect<A, E, R>, spec: PutioOperationErrorSpec<TDomain, TOperation, TContracts>): Effect.Effect<A, E | PutioOperationError<TDomain, TOperation, KnownOperationContractOf<TContracts>>, R>;
422
- };
423
406
  type PutioQueryValue = string | number | boolean | null | undefined;
424
407
  type PutioQuery = Readonly<Record<string, PutioQueryValue>>;
425
- type PutioPathSegment = string | number | boolean;
408
+ type PutioPathSegment$1 = string | number | boolean;
426
409
  type PutioSecret = string | Redacted.Redacted<string>;
427
410
  interface PutioSdkOptions {
428
411
  readonly accessToken?: PutioSecret | undefined;
@@ -458,17 +441,17 @@ interface PutioHttpClientService {
458
441
  declare const PutioHttpClient_base: Context.ServiceClass<PutioHttpClient, "@putdotio/sdk/PutioHttpClient", PutioHttpClientService>;
459
442
  declare class PutioHttpClient extends PutioHttpClient_base {}
460
443
  type PutioSdkContext = PutioSdkConfig | PutioHttpClient;
461
- declare const normalizePutioSdkOptions: (config: PutioSdkOptions) => PutioSdkResolvedConfig;
444
+ declare const normalizePutioSdkOptions$1: (config: PutioSdkOptions) => PutioSdkResolvedConfig;
462
445
  declare const putioSdkLayer: (config: PutioSdkOptions) => Layer.Layer<PutioSdkConfig, never, never>;
463
446
  declare const putioSdkLiveLayer: (config: PutioSdkOptions) => Layer.Layer<PutioHttpClient | PutioSdkConfig, never, never>;
464
447
  declare const makePutioFetchLayer: (fetchImplementation?: typeof globalThis.fetch) => Layer.Layer<PutioHttpClient, never, never>;
465
448
  declare const makePutioFetchClient: (fetchImplementation?: typeof globalThis.fetch) => PutioHttpClientService;
466
- declare const encodePathSegment: (value: PutioPathSegment) => string;
467
- declare const buildPutioUrl: (baseUrl: string | URL, path: string, query?: PutioQuery) => string;
449
+ declare const encodePathSegment$1: (value: PutioPathSegment$1) => string;
450
+ declare const buildPutioUrl$1: (baseUrl: string | URL, path: string, query?: PutioQuery) => string;
468
451
  declare const OkResponseSchema: Schema.Struct<{
469
452
  readonly status: Schema.Literal<"OK">;
470
453
  }>;
471
- type PutioAuth = {
454
+ type PutioAuth$1 = {
472
455
  readonly type: "config-token";
473
456
  } | {
474
457
  readonly type: "token";
@@ -500,15 +483,15 @@ interface PutioRequestOptions {
500
483
  readonly baseUrl?: string | URL | undefined;
501
484
  readonly query?: PutioQuery | undefined;
502
485
  readonly headers?: HeadersInit | undefined;
503
- readonly auth?: PutioAuth | undefined;
486
+ readonly auth?: PutioAuth$1 | undefined;
504
487
  readonly body?: PutioRequestBody | undefined;
505
488
  }
506
- declare const requestJson: <S extends Schema.Top>(schema: S, options: PutioRequestOptions) => Effect.Effect<S["Type"], PutioSdkError, PutioSdkContext | S["DecodingServices"]>;
507
- declare const selectJsonField: <K extends string>(field: K) => <A extends { readonly [P in K]: unknown; }, E, R>(effect: Effect.Effect<A, E, R>) => Effect.Effect<A[K], E, R>;
508
- declare const selectJsonFields: <const K extends ReadonlyArray<string>>(...fields: K) => <A extends { readonly [P in K[number]]: unknown; }, E, R>(effect: Effect.Effect<A, E, R>) => Effect.Effect<Pick<A, K[number]>, E, R>;
509
- declare const requestArrayBuffer: (options: PutioRequestOptions) => Effect.Effect<Uint8Array, PutioSdkError, PutioSdkContext>;
510
- declare const requestText: (options: PutioRequestOptions) => Effect.Effect<string, PutioSdkError, PutioSdkContext>;
511
- declare const requestVoid: (options: PutioRequestOptions) => Effect.Effect<void, PutioSdkError, PutioSdkContext>;
489
+ declare const requestJson$1: <S extends Schema.Top>(schema: S, options: PutioRequestOptions) => Effect.Effect<S["Type"], PutioSdkError, PutioSdkContext | S["DecodingServices"]>;
490
+ declare const selectJsonField$1: <K extends string>(field: K) => <A extends { readonly [P in K]: unknown; }, E, R>(effect: Effect.Effect<A, E, R>) => Effect.Effect<A[K], E, R>;
491
+ declare const selectJsonFields$1: <const K extends ReadonlyArray<string>>(...fields: K) => <A extends { readonly [P in K[number]]: unknown; }, E, R>(effect: Effect.Effect<A, E, R>) => Effect.Effect<Pick<A, K[number]>, E, R>;
492
+ declare const requestArrayBuffer$1: (options: PutioRequestOptions) => Effect.Effect<Uint8Array, PutioSdkError, PutioSdkContext>;
493
+ declare const requestText$1: (options: PutioRequestOptions) => Effect.Effect<string, PutioSdkError, PutioSdkContext>;
494
+ declare const requestVoid$1: (options: PutioRequestOptions) => Effect.Effect<void, PutioSdkError, PutioSdkContext>;
512
495
  declare const AccountDiskSchema: Schema.Struct<{
513
496
  readonly avail: Schema.Finite;
514
497
  readonly size: Schema.Finite;
@@ -5761,7 +5744,7 @@ declare const cancelZip: (id: number) => Effect.Effect<void, CancelZipError, Put
5761
5744
  interface PutioSdkPromiseState {
5762
5745
  config: PutioSdkResolvedConfig;
5763
5746
  disposed: boolean;
5764
- runtime: ManagedRuntime.ManagedRuntime<PutioSdkContext, never> | undefined;
5747
+ runtime: ManagedRuntime.ManagedRuntime<PutioHttpClient, never> | undefined;
5765
5748
  }
5766
5749
  interface OperationKind {
5767
5750
  readonly Success: unknown;
@@ -18563,7 +18546,75 @@ declare global {
18563
18546
  interface Disposable {
18564
18547
  [Symbol.dispose](): void;
18565
18548
  }
18566
- var SchemaErrorTypeId: symbol;
18567
18549
  }
18568
- export { ReannounceTransferError as $, RemoveFriendErrorSpec as $a, FileSearchResponse as $c, VerifyTOTPError as $d, PopularOAuthAppSchema as $f, PaymentProvider as $i, buildFileApiMp4DownloadUrl as $l, PutioKnownOperationErrorContract as $m, UnshareFileError as $n, listFamilyInvites as $o, AccountWarnings as $p, retryRssFeedItem as $r, ContinueSearchError as $s, TrashBulkInput as $t, getConfigKeyWith as $u, ListTunnelRoutesError as A, redeemPaymentVoucher as Aa, FileExtractionsError as Ac, OAuthAuthorizationCodeExchangeErrorCodeSchema as Ad, CreateOAuthAppError as Af, parseErrorBody as Ah, ListPaymentPlansError as Ai, FilesSearchQuery as Al, makePutioFetchClient as Am, ListSharedFilesError as An, IftttEventInput as Ao, deleteAllAppSpecificPasswords as Ap, RetryAllRssFeedItemsError as Ar, ListEventsErrorSpec as As, addTransferTrackers as At, listActiveMp4Conversions as Au, AddManyTransfersErrorSpec as B, Friend as Ba, FileMediaInfoFormatSchema as Bc, RegisterInputSchema as Bd, OAuthAppCreateInputSchema as Bf, PaymentHistoryQuery as Bi, QueryFilesError as Bl, selectJsonFields as Bm, SharedFileShare as Bn, FamilyInvitesResponse as Bo, AccountDiskSchema as Bp, RssFeedParamsSchema as Br, DownloadLinksInfoSchema as Bs, removeTransfers as Bt, searchFiles as Bu, ZipInfo as C, getPaymentInfo as Ca, FileCore as Cc, LinkDeviceErrorSpec as Cd, register as Cf, isPutioRateLimitError as Ch, GetPaymentVoucherInfoErrorSpec as Ci, FileXspfPlaylistUrlOptions as Cl, PutioSdkConfig as Cm, GetSharedWithErrorSpec as Cn, FriendInviteSchema as Co, DeleteAllAppSpecificPasswordsError as Cp, ListRssFeedItemsErrorSpec as Cr, HistoryTransferErrorEventSchema as Cs, TransfersContinueResponse as Ct, getFile as Cu, createZip as D, listPaymentOptions as Da, FileExtractionSchema as Dc, LoginResponse as Dd, revokeClient as Df, mapContractError as Dh, ListPaymentInvitesErrorSpec as Di, FilesListQuerySchema as Dl, PutioSecret as Dm, ListPublicShareFilesErrorSpec as Dn, listFriendInvites as Do, ListAppSpecificPasswordsError as Dp, PauseRssFeedErrorSpec as Dr, HistoryZipCreatedEvent as Ds, TransfersListResponseFor as Dt, getMp4Status as Du, cancelZip as E, listPaymentInvites as Ea, FileExtraction as Ec, LoginInput as Ed, revokeApp as Ef, mapConfigurationError as Eh, ListPaymentInvitesError as Ei, FilesListQuery as El, PutioSdkResolvedConfig as Em, ListPublicShareFilesError as En, createFriendInvite as Eo, DeleteAppSpecificPasswordErrorSpec as Ep, PauseRssFeedError as Er, HistoryVoucherEventSchema as Es, TransfersListResponse as Et, getHlsStreamUrl as Eu, RemoveRateLimitBanError as F, ApproveFriendRequestErrorSpec as Fa, FileHlsStreamUrlOptions as Fc, RegenerateRecoveryCodesError as Fd, GetOAuthAppErrorSpec as Ff, PaymentChangePlanSubmitInput as Fi, GetFileChildErrorSpec as Fl, requestArrayBuffer as Fm, PublicShareSchema as Fn, sendIftttEvent as Fo, AccountConfirmation as Fp, RssFeedItem as Fr, CreateDownloadLinksError as Fs, getTransfer as Ft, putMp4ToMyFiles as Fu, ContinueTransfersError as G, FriendSharedFolderErrorSpec as Ga, FileMp4Error as Gc, RevokeOAuthClientError as Gd, OAuthAppUpdateInput as Gf, PaymentInviteSchema as Gi, SearchFilesError as Gl, PutioAuthErrorValue as Gm, SharingCloneInfoSchema as Gn, ListFamilyInvitesError as Go, AccountInfoQuery as Gp, createRssFeed as Gr, GetDownloadLinksError as Gs, DeleteTrashError as Gt, uploadFile as Gu, AddTransferErrorSpec as H, FriendBaseSchema as Ha, FileMediaInfoStreamSchema as Hc, ResetPasswordErrorSpec as Hd, OAuthAppSchema as Hf, PaymentInfoPlanSchema as Hi, RenameFileError as Hl, PutioApiError as Hm, SharedFileSharedWith as Hn, FamilyMemberSchema as Ho, AccountInfoBaseSchema as Hp, UpdateRssFeedError as Hr, DownloadLinksPayloadSchema as Hs, stopTransferRecording as Ht, setFilesWatchStatus as Hu, RemoveRateLimitBanErrorSpec as I, CountWaitingRequestsError as Ia, FileListContinuationResponse as Ic, RegenerateRecoveryCodesErrorSpec as Id, MyOAuthApp as If, PaymentChangePlanSubmitResponse as Ii, GetFileError as Il, requestJson as Im, ShareFilesError as In, CreateFamilyInviteError as Io, AccountConfirmationSchema as Ip, RssFeedItemFailedSchema as Ir, CreateDownloadLinksErrorSpec as Is, getTransferInfo as It, queryFiles as Iu, GetTransferErrorSpec as J, ListSentRequestsError as Ja, FileMp4MutationErrorSpec as Jc, RevokeOAuthGrantErrorSpec as Jd, OAuthSetIconInput as Jf, PaymentOptionSchema as Ji, StartFromErrorSpec as Jl, PutioContractError as Jm, SharingCloneStatusSchema as Jn, ListFamilyMembersErrorSpec as Jo, AccountSettings as Jp, listRssFeedItems as Jr, getDownloadLinks as Js, EmptyTrashErrorSpec as Jt, PutioJsonObject as Ju, ContinueTransfersErrorSpec as K, ListFriendsError as Ka, FileMp4ErrorSpec as Kc, RevokeOAuthClientErrorSpec as Kd, OAuthAppUpdateInputSchema as Kf, PaymentOption as Ki, SearchFilesErrorSpec as Kl, PutioConfigurationError as Km, SharingCloneInput as Kn, ListFamilyInvitesErrorSpec as Ko, AccountInfoQuerySchema as Kp, deleteRssFeed as Kr, GetDownloadLinksErrorSpec as Ks, DeleteTrashErrorSpec as Kt, JsonObjectSchema as Ku, RemoveRateLimitBanInput as L, CountWaitingRequestsErrorSpec as La, FileListResponse as Lc, RegisterError as Ld, MyOAuthAppSchema as Lf, PaymentChangePlanSubmitSchema as Li, GetFileErrorSpec as Ll, requestText as Lm, ShareFilesErrorSpec as Ln, CreateFamilyInviteErrorSpec as Lo, AccountConfirmationsError as Lp, RssFeedItemSchema as Lr, DownloadLinksCreateInput as Ls, getTransferTorrent as Lt, renameFile as Lu, TunnelRoute as M, stopPaymentSubscription as Ma, FileGetChildInput as Mc, OAuthAuthorizationCodeExchangeInputSchema as Md, DeleteOAuthAppError as Mf, toPutioResponseError as Mh, PaymentChangePlanPreview as Mi, FolderType as Ml, normalizePutioSdkOptions as Mm, PublicShare as Mn, SendIftttEventError as Mo, listAppSpecificPasswords as Mp, RetryRssFeedItemError as Mr, deleteEvent as Ms, cleanTransfers as Mt, listFileSubtitles as Mu, TunnelRouteSchema as N, submitPaymentChangePlan as Na, FileGetChildInputSchema as Nc, RecoveryCodesError as Nd, DeleteOAuthAppErrorSpec as Nf, withOperationErrors as Nh, PaymentChangePlanPreviewInput as Ni, FolderTypeSchema as Nl, putioSdkLayer as Nm, PublicShareListQuery as Nn, SendIftttEventErrorSpec as No, AccountClearOptions as Np, RetryRssFeedItemErrorSpec as Nr, getEventTorrent as Ns, continueTransfers as Nt, moveFileSelection as Nu, getZip as O, listPaymentPlans as Oa, FileExtractionStatus as Oc, LoginResponseSchema as Od, validateToken as Of, mapTransportError as Oh, ListPaymentOptionsError as Oi, FilesMoveError as Ol, buildPutioUrl as Om, ListPublicSharesError as On, GetIftttStatusError as Oo, ListAppSpecificPasswordsErrorSpec as Op, ResumeRssFeedError as Or, HistoryZipCreatedEventSchema as Os, addManyTransfers as Ot, getStartFrom as Ou, listTunnelRoutes as P, ApproveFriendRequestError as Pa, FileHlsMasterPlaylistOptions as Pc, RecoveryCodesErrorSpec as Pd, GetOAuthAppError as Pf, PaymentChangePlanPreviewSchema as Pi, GetFileChildError as Pl, putioSdkLiveLayer as Pm, PublicShareListQuerySchema as Pn, getIftttStatus as Po, AccountClearOptionsSchema as Pp, RssFeed as Pr, listEvents as Ps, countTransfers as Pt, moveFiles as Pu, ListTransfersErrorSpec as Q, RemoveFriendError as Qa, FileResponseFor as Qc, ValidateTokenResponseSchema as Qd, PopularOAuthApp as Qf, PaymentPlanTypeSchema as Qi, buildFileApiDownloadUrl as Ql, PutioKnownErrorContract as Qm, SharingUnshareInputSchema as Qn, joinFamily as Qo, AccountTwoFactorSettingsSchema as Qp, retryAllRssFeedItems as Qr, ContinueFilesErrorSpec as Qs, RestoreTrashErrorSpec as Qt, getConfigKey as Qu, removeRateLimitBan as R, DenyFriendRequestError as Ra, FileListResponseFor as Rc, RegisterErrorSpec as Rd, OAuthApp as Rf, PaymentHistoryItem as Ri, GetHlsMasterPlaylistError as Rl, requestVoid as Rm, SharedFile as Rn, FamilyInvite as Ro, AccountConfirmationsErrorSpec as Rp, RssFeedItemSucceededSchema as Rr, DownloadLinksCreateInputSchema as Rs, listTransfers as Rt, resetFileSortSettings as Ru, ZipCreateResponse as S, getPaddleBillingInvoiceUrl as Sa, FileCopyInputSchema as Sc, LinkDeviceError as Sd, regenerateRecoveryCodes as Sf, isPutioOperationError as Sh, GetPaymentVoucherInfoError as Si, FileWatchStatusErrorSpec as Sl, PutioQueryValue as Sm, GetSharedWithError as Sn, FriendInviteJoinedUserStatusSchema as So, CreateAppSpecificPasswordResult as Sp, ListRssFeedItemsError as Sr, HistoryTransferCompletedEventSchema as Ss, TransfersAddMultiError as St, getDownloadUrl as Su, ZipSummary as T, listPaymentHistory as Ta, FileDirectAccessOptions as Tc, LoginErrorSpec as Td, revokeAllClients as Tf, isPutioValidationError as Th, ListPaymentHistoryErrorSpec as Ti, FilesListEnvelopeSchema as Tl, PutioSdkOptions as Tm, GetSharingCloneInfoErrorSpec as Tn, ListFriendInvitesErrorSpec as To, DeleteAppSpecificPasswordError as Tp, ListRssFeedsErrorSpec as Tr, HistoryUploadEventSchema as Ts, TransfersListQuerySchema as Tt, getHlsMasterPlaylist as Tu, AddTransferTrackersError as U, FriendSchema as Ua, FileMediaMetadata as Uc, RevokeAllOAuthClientsError as Ud, OAuthAppSession as Uf, PaymentInfoSchema as Ui, RenameFileErrorSpec as Ul, PutioApiErrorValue as Um, SharedFileSharedWithSchema as Un, JoinFamilyError as Uo, AccountInfoBroad as Up, UpdateRssFeedErrorSpec as Ur, DownloadLinksStatus as Us, ContinueTrashError as Ut, setStartFrom as Uu, AddTransferError as V, FriendBase as Va, FileMediaInfoSchema as Vc, ResetPasswordError as Vd, OAuthAppIconRequestDescriptor as Vf, PaymentInfo as Vi, QueryFilesErrorSpec as Vl, AnyPutioOperationError as Vm, SharedFileShareSchema as Vn, FamilyMember as Vo, AccountInfoBase as Vp, RssFeedSchema as Vr, DownloadLinksPayload as Vs, retryTransfer as Vt, setFileSort as Vu, AddTransferTrackersErrorSpec as W, FriendSharedFolderError as Wa, FileMediaMetadataSchema as Wc, RevokeAllOAuthClientsErrorSpec as Wd, OAuthAppSessionSchema as Wf, PaymentInvite as Wi, SHARED_WITH_YOU_ROOT_ID as Wl, PutioAuthError as Wm, SharingCloneInfo as Wn, JoinFamilyErrorSpec as Wo, AccountInfoBroadSchema as Wp, clearRssFeedLogs as Wr, DownloadLinksStatusSchema as Ws, ContinueTrashErrorSpec as Wt, touchFiles as Wu, GetTransferTorrentErrorSpec as X, ListWaitingRequestsError as Xa, FileQuerySchema as Xc, TwoFactorRecoveryCodesSchema as Xd, OwnedOAuthApp as Xf, PaymentPlanGroup as Xi, TouchFilesErrorSpec as Xl, PutioErrorEnvelope as Xm, SharingShareInputSchema as Xn, RemoveFamilyMemberErrorSpec as Xo, AccountSubtitleLanguage as Xp, pauseRssFeed as Xr, CanWriteFileErrorSpec as Xs, ListTrashErrorSpec as Xt, PutioJsonValue as Xu, GetTransferTorrentError as Y, ListSentRequestsErrorSpec as Ya, FileQuery as Yc, TwoFactorRecoveryCodes as Yd, OAuthSetIconInputSchema as Yf, PaymentPaddleWaitingPaymentInput as Yi, TouchFilesError as Yl, PutioContractErrorValue as Ym, SharingShareInput as Yn, RemoveFamilyMemberError as Yo, AccountSettingsSchema as Yp, listRssFeeds as Yr, CanWriteFileError as Ys, ListTrashError as Yt, PutioJsonPrimitive as Yu, ListTransfersError as Z, ListWaitingRequestsErrorSpec as Za, FileRenameInput as Zc, ValidateTokenResponse as Zd, OwnedOAuthAppSchema as Zf, PaymentPlanGroupSchema as Zi, buildFileApiContentUrl as Zl, PutioErrorEnvelopeSchema as Zm, SharingUnshareInput as Zn, createFamilyInvite as Zo, AccountSubtitleLanguageSchema as Zp, resumeRssFeed as Zr, ContinueFilesError as Zs, RestoreTrashError as Zt, deleteConfigKey as Zu, CreateZipInput as _, classifyPaymentChangePlanResponse as _a, FileBroad as _c, GenerateTOTPResponseSchema as _d, getVoucher as _f, isPutioApiError as _h, CreatePaddleWaitingPaymentErrorSpec as _i, FileUploadRequestDescriptor as _l, PutioHttpClientService as _m, DeletePublicShareErrorSpec as _n, CreateFriendInviteErrorSpec as _o, AppSpecificPasswordSchema as _p, CreateRssFeedErrorSpec as _r, HistoryKnownEventTypeSchema as _s, TransferSchema as _t, findNextFile as _u, PutioSdkEffectClient as a, PaymentVoucherInfoSchema as aa, DownloadUrlError as ac, AuthorizationCodeSchema as ad, buildAuthLoginUrl as af, PutioRateLimitError as ah, PodcastLinks as ai, FileSubtitle as al, SaveAccountSettingsPayload as am, continueTrash as an, UserSearchResultSchema as ao, UpdateOAuthAppErrorSpec as ap, getPublicShare as ar, DeleteEventErrorSpec as as, StopRecordingTransferError as at, convertFileSelectionToMp4 as au, ListZipsError as b, createPaddleBillingUpdatePaymentMethodTransaction as ba, FileConversionStatusSchema as bc, GrantsError as bd, login as bf, isPutioContractError as bh, GetPaymentInfoError as bi, FileVideoMetadata as bl, PutioPathSegment as bm, GetPublicShareFileUrlError as bn, FriendInviteJoinedUserSchema as bo, CreateAppSpecificPasswordInput as bp, GetRssFeedError as br, HistoryTransferCallbackErrorEventSchema as bs, TransferType as bt, getApiDownloadUrl as bu, PutioSdkService as c, RedeemPaymentVoucherError as ca, FileActiveConversionSchema as cc, FamilyInviteLookupError as cd, exchangeOAuthAuthorizationCode as cf, PutioTransportError as ch, getPodcastLinks as ci, FileSubtitlesErrorSpec as cl, destroyAccount as cm, listTrash as cn, denyFriendRequest as co, createOAuthApp as cp, getSharingCloneInfo as cr, EventsListResponse as cs, TransferAddInput as ct, copyFile as cu, makePutioSdkEffectClientLayer as d, ReportPaymentsErrorSpec as da, FileApiDownloadUrlOptions as dc, ForgotPasswordErrorSpec as dd, generateTOTP as df, PutioUnhandledSdkError as dh, ConfirmFastspringOrderErrorSpec as di, FileType as dl, listAccountConfirmations as dm, ContinuePublicShareFilesErrorSpec as dn, listSentRequests as do, getPopularOAuthApps as dp, listSharedFiles as dr, HistoryEvent as ds, TransferAddTrackersInputSchema as dt, createFolder as du, PaymentProviderNameSchema as ea, ContinueSearchErrorSpec as ec, readConfig as ed, VerifyTOTPErrorSpec as ef, PutioOperationError as eh, updateRssFeed as ei, FileSetSortInput as el, AccountWarningsSchema as em, TrashContinueResponse as en, SearchFriendsError as eo, QueryOAuthAppsError as ep, UnshareFileErrorSpec as er, listFamilyMembers as es, ReannounceTransferErrorSpec as et, buildFileHlsStreamUrl as eu, makePutioSdkLiveClientLayer as f, StopSubscriptionError as fa, FileApiMp4DownloadUrlOptions as fc, FriendInviteLookupError as fd, getCode as ff, PutioValidationError as fh, CreateOpenNodeChargeError as fi, FileTypeSchema as fl, listAccountSubtitleLanguages as fm, CreatePublicShareError as fn, listWaitingRequests as fo, queryOAuthApps as fp, shareFiles as fr, HistoryEventSchema as fs, TransferBaseSchema as ft, deleteFileExtraction as fu, CreateZipErrorSpec as g, UserSubscriptionStatusSchema as ga, FileBreadcrumbSchema as gc, GenerateTOTPResponse as gd, getRecoveryCodes as gf, fallbackPutioErrorEnvelope as gh, CreatePaddleWaitingPaymentError as gi, FileUploadInput as gl, PutioHttpClient as gm, DeletePublicShareError as gn, CreateFriendInviteError as go, AppSpecificPassword as gp, CreateRssFeedError as gr, HistoryKnownEventType as gs, TransferRemoveInputSchema as gt, extractFiles as gu, CreateZipError as h, SubmitPaymentChangePlanErrorSpec as ha, FileBreadcrumb as hc, GenerateTOTPErrorSpec as hd, getGiftCard as hf, definePutioOperationErrorSpec as hh, CreatePaddleBillingUpdatePaymentMethodTransactionErrorSpec as hi, FileUploadErrorSpec as hl, PutioAuth as hm, CreateSharingCloneErrorSpec as hn, sendFriendRequest as ho, updateOAuthApp as hp, ClearRssFeedLogsErrorSpec as hr, HistoryFileSharedEventSchema as hs, TransferRemoveInput as ht, deleteFiles as hu, PutioSdk as i, PaymentVoucherInfo as ia, CreateFolderErrorSpec as ic, AuthGetCodeInput as id, VoucherLookupErrorSpec as if, PutioOperationFailure as ih, PodcastLinkTypeSchema as ii, FileStartFromSetInput as il, SaveAccountSettingsErrorSpec as im, TrashListResponse as in, UserSearchResult as io, UpdateOAuthAppError as ip, deletePublicShare as ir, DeleteEventError as is, RetryTransferErrorSpec as it, continueSearch as iu, ListTunnelRoutesErrorSpec as j, reportPayments as ja, FileExtractionsErrorSpec as jc, OAuthAuthorizationCodeExchangeInput as jd, CreateOAuthAppErrorSpec as jf, responseRateLimitHeaders as jh, ListPaymentPlansErrorSpec as ji, FilesSearchQuerySchema as jl, makePutioFetchLayer as jm, ListSharedFilesErrorSpec as jn, IftttEventType as jo, deleteAppSpecificPassword as jp, RetryAllRssFeedItemsErrorSpec as jr, clearEvents as js, cancelTransfers as jt, listFileExtractions as ju, listZips as k, previewPaymentChangePlan as ka, FileExtractionStatusSchema as kc, OAuthAuthorizationCodeExchangeError as kd, verifyTOTP as kf, mapValidationError as kh, ListPaymentOptionsErrorSpec as ki, FilesMoveErrorSchema as kl, encodePathSegment as km, ListPublicSharesErrorSpec as kn, GetIftttStatusErrorSpec as ko, createAppSpecificPassword as kp, ResumeRssFeedErrorSpec as kr, ListEventsError as ks, addTransfer as kt, getXspfPlaylistUrl as ku, createPutioSdkEffectClient as l, RedeemPaymentVoucherErrorSpec as la, FileActiveConversionsError as lc, FamilyInviteLookupErrorSpec as ld, exists as lf, PutioTransportErrorValue as lh, ClassifiedPaymentChangePlanSubmitResponse as li, FileTouchInput as ll, getAccountInfo as lm, restoreTrash as ln, getFriendSharedFolder as lo, deleteOAuthApp as lp, listPublicShareFiles as lr, GetEventTorrentError as ls, TransferAddInputSchema as lt, createFileUploadFormData as lu, CancelZipErrorSpec as m, SubmitPaymentChangePlanError as ma, FileBaseSchema as mc, GenerateTOTPError as md, getFriendInvite as mf, decodePutioErrorEnvelope as mh, CreatePaddleBillingUpdatePaymentMethodTransactionError as mi, FileUploadError as ml, OkResponseSchema as mm, CreateSharingCloneError as mn, searchFriends as mo, setOAuthAppIcon as mp, ClearRssFeedLogsError as mr, HistoryFileSharedEvent as ms, TransferLink as mt, deleteFileSelection as mu, DEFAULT_PUTIO_UPLOAD_BASE_URL as n, PaymentSubscriptionInfoSchema as na, CopyFileErrorSpec as nc, setConfigKey as nd, VerifyTOTPResponseSchema as nf, PutioOperationErrorSpec as nh, PodcastGetLinksInputSchema as ni, FileSort as nl, PasInfoSchema as nm, TrashFileSchema as nn, SendFriendRequestError as no, RegenerateOAuthAppTokenError as np, continuePublicShareFiles as nr, ClearEventsError as ns, RemoveTransfersErrorSpec as nt, canWriteFile as nu, PutioSdkPromiseClient as o, PreviewPaymentChangePlanError as oa, DownloadUrlErrorSpec as oc, ClientsError as od, checkCodeMatch as of, PutioRateLimitErrorValue as oh, PodcastLinksResponse as oi, FileSubtitleSchema as ol, SaveAccountSettingsPayloadSchema as om, deleteTrash as on, approveFriendRequest as oo, buildOAuthAppIconRequest as op, getPublicShareFileUrl as or, EventsListQuery as os, StopRecordingTransferErrorSpec as ot, convertFileToMp4 as ou, CancelZipError as p, StopSubscriptionErrorSpec as pa, FileBase as pc, FriendInviteLookupErrorSpec as pd, getFamilyInvite as pf, PutioValidationErrorValue as ph, CreateOpenNodeChargeErrorSpec as pi, FileUploadEnvelope as pl, saveAccountSettings as pm, CreatePublicShareErrorSpec as pn, removeFriend as po, regenerateOAuthAppToken as pp, unshareFile as pr, HistoryFileFromRssDeletedEventSchema as ps, TransferInfoItem as pt, deleteFileMp4 as pu, GetTransferError as q, ListFriendsErrorSpec as qa, FileMp4MutationError as qc, RevokeOAuthGrantError as qd, OAuthAppWithTokenSchema as qf, PaymentOptionPlanTypeSchema as qi, StartFromError as ql, PutioConfigurationErrorValue as qm, SharingCloneInputSchema as qn, ListFamilyMembersError as qo, AccountInfoResponseFor as qp, getRssFeed as qr, createDownloadLinks as qs, EmptyTrashError as qt, JsonValueSchema as qu, DEFAULT_PUTIO_WEB_APP_URL as r, PaymentTypeSchema as ra, CreateFolderError as rc, writeConfig as rd, VoucherLookupError as rf, PutioOperationErrorValue as rh, PodcastLinkType as ri, FileSortSchema as rl, SaveAccountSettingsError as rm, TrashListQuery as rn, SendFriendRequestErrorSpec as ro, RegenerateOAuthAppTokenErrorSpec as rp, createPublicShare as rr, ClearEventsErrorSpec as rs, RetryTransferError as rt, continueFiles as ru, PutioSdkPromiseOperations as s, PreviewPaymentChangePlanErrorSpec as sa, FileActiveConversion as sc, ClientsErrorSpec as sd, clients as sf, PutioSdkError as sh, PodcastLinksSchema as si, FileSubtitlesError as sl, clearAccount as sm, emptyTrash as sn, countWaitingRequests as so, buildOAuthAuthorizeUrl as sp, getSharedWith as sr, EventsListQuerySchema as ss, Transfer as st, convertFilesToMp4 as su, DEFAULT_PUTIO_API_BASE_URL as t, PaymentProviderSchema as ta, CopyFileError as tc, readConfigWith as td, VerifyTOTPResponse as tf, PutioOperationErrorFromSpec as th, PodcastGetLinksInput as ti, FileSetSortInputSchema as tl, PasInfo as tm, TrashFile as tn, SearchFriendsErrorSpec as to, QueryOAuthAppsErrorSpec as tp, cloneSharedFiles as tr, removeFamilyMember as ts, RemoveTransfersError as tt, buildFileXspfPlaylistUrl as tu, createPutioSdkPromiseClient as u, ReportPaymentsError as ua, FileActiveConversionsErrorSpec as uc, ForgotPasswordError as ud, forgotPassword as uf, PutioTypedErrorEnvelope as uh, ConfirmFastspringOrderError as ui, FileTouchInputSchema as ul, getAccountSettings as um, ContinuePublicShareFilesError as un, listFriends as uo, getOAuthApp as up, listPublicShares as ur, GetEventTorrentErrorSpec as us, TransferAddTrackersInput as ut, createFileUploadRequest as uu, GetZipError as v, confirmFastspringOrder as va, FileBroadSchema as vc, GiftCardLookupError as vd, grants as vf, isPutioAuthError as vh, GetPaddleBillingInvoiceUrlError as vi, FileUploadResult as vl, PutioHttpRequest as vm, GetPublicShareError as vn, FriendInvite as vo, CreateAppSpecificPasswordError as vp, DeleteRssFeedError as vr, HistoryPrivateTorrentPinEventSchema as vs, TransferStatus as vt, findNextVideo as vu, ZipStatusSchema as w, getPaymentVoucherInfo as wa, FileCreateFolderInput as wc, LoginError as wd, resetPassword as wf, isPutioTransportError as wh, ListPaymentHistoryError as wi, FilesBulkSelection as wl, PutioSdkContext as wm, GetSharingCloneInfoError as wn, ListFriendInvitesError as wo, DeleteAllAppSpecificPasswordsErrorSpec as wp, ListRssFeedsError as wr, HistoryTransferFromRssErrorEventSchema as ws, TransfersListQuery as wt, getFileChild as wu, ListZipsErrorSpec as x, createPaddleWaitingPayment as xa, FileCopyInput as xc, GrantsErrorSpec as xd, logout as xf, isPutioErrorEnvelope as xh, GetPaymentInfoErrorSpec as xi, FileWatchStatusError as xl, PutioQuery as xm, GetPublicShareFileUrlErrorSpec as xn, FriendInviteJoinedUserStatus as xo, CreateAppSpecificPasswordInputSchema as xp, GetRssFeedErrorSpec as xr, HistoryTransferCompletedEvent as xs, TransferTypeSchema as xt, getApiMp4DownloadUrl as xu, GetZipErrorSpec as y, createOpenNodeCharge as ya, FileConversionStatus as yc, GiftCardLookupErrorSpec as yd, linkDevice as yf, isPutioConfigurationError as yh, GetPaddleBillingInvoiceUrlErrorSpec as yi, FileUploadTransfer as yl, PutioHttpResponse as ym, GetPublicShareErrorSpec as yn, FriendInviteJoinedUser as yo, CreateAppSpecificPasswordErrorSpec as yp, DeleteRssFeedErrorSpec as yr, HistoryRssFilterPausedEventSchema as ys, TransferStatusSchema as yt, getApiContentUrl as yu, AddManyTransfersError as z, DenyFriendRequestErrorSpec as za, FileMediaInfo as zc, RegisterInput as zd, OAuthAppCreateInput as zf, PaymentHistoryItemSchema as zi, GetHlsMasterPlaylistErrorSpec as zl, selectJsonField as zm, SharedFileSchema as zn, FamilyInviteSchema as zo, AccountDisk as zp, RssFeedParams as zr, DownloadLinksInfo as zs, reannounceTransfer as zt, resetStartFrom as zu };
18569
- //# sourceMappingURL=index-B4Vt5XNs.d.ts.map
18550
+ /** @deprecated Internal SDK helper. It leaves the public API in the next major release. */
18551
+ declare const buildPutioUrl: typeof buildPutioUrl$1;
18552
+ /** @deprecated Internal SDK helper. It leaves the public API in the next major release. */
18553
+ declare const decodePutioErrorEnvelope: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => import("effect/Effect").Effect<{
18554
+ readonly status?: string | undefined;
18555
+ readonly error?: string | undefined;
18556
+ readonly error_message?: string | undefined;
18557
+ readonly error_type?: string | undefined;
18558
+ readonly error_uri?: string | undefined;
18559
+ readonly error_id?: string | null | undefined;
18560
+ readonly extra?: {
18561
+ readonly [x: string]: unknown;
18562
+ } | undefined;
18563
+ readonly status_code?: number | undefined;
18564
+ readonly details?: unknown;
18565
+ }, import("effect/Schema").SchemaError, never>;
18566
+ /** @deprecated Internal SDK helper. It leaves the public API in the next major release. */
18567
+ declare const encodePathSegment: typeof encodePathSegment$1;
18568
+ /** @deprecated Internal SDK helper. It leaves the public API in the next major release. */
18569
+ declare const fallbackPutioErrorEnvelope: typeof fallbackPutioErrorEnvelope$1;
18570
+ /** @deprecated Internal SDK helper. It leaves the public API in the next major release. */
18571
+ declare const mapConfigurationError: typeof mapConfigurationError$1;
18572
+ /** @deprecated Internal SDK helper. It leaves the public API in the next major release. */
18573
+ declare const mapContractError: typeof mapContractError$1;
18574
+ /** @deprecated Internal SDK helper. It leaves the public API in the next major release. */
18575
+ declare const mapTransportError: typeof mapTransportError$1;
18576
+ /** @deprecated Internal SDK helper. It leaves the public API in the next major release. */
18577
+ declare const mapValidationError: typeof mapValidationError$1;
18578
+ /** @deprecated Internal SDK helper. It leaves the public API in the next major release. */
18579
+ declare const normalizePutioSdkOptions: typeof normalizePutioSdkOptions$1;
18580
+ /** @deprecated Internal SDK helper. It leaves the public API in the next major release. */
18581
+ declare const parseErrorBody: typeof parseErrorBody$1;
18582
+ /** @deprecated Internal SDK helper. It leaves the public API in the next major release. */
18583
+ declare const PutioErrorEnvelopeSchema: import("effect/Schema").Struct<{
18584
+ readonly status: import("effect/Schema").optional<import("effect/Schema").String>;
18585
+ readonly error: import("effect/Schema").optional<import("effect/Schema").String>;
18586
+ readonly error_message: import("effect/Schema").optional<import("effect/Schema").String>;
18587
+ readonly error_type: import("effect/Schema").optional<import("effect/Schema").String>;
18588
+ readonly error_uri: import("effect/Schema").optional<import("effect/Schema").String>;
18589
+ readonly error_id: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
18590
+ readonly extra: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
18591
+ readonly status_code: import("effect/Schema").optional<import("effect/Schema").Int>;
18592
+ readonly details: import("effect/Schema").optional<import("effect/Schema").Unknown>;
18593
+ }>;
18594
+ /** @deprecated Internal SDK helper. It leaves the public API in the next major release. */
18595
+ declare const requestArrayBuffer: typeof requestArrayBuffer$1;
18596
+ /** @deprecated Internal SDK helper. It leaves the public API in the next major release. */
18597
+ declare const requestJson: typeof requestJson$1;
18598
+ /** @deprecated Internal SDK helper. It leaves the public API in the next major release. */
18599
+ declare const requestText: typeof requestText$1;
18600
+ /** @deprecated Internal SDK helper. It leaves the public API in the next major release. */
18601
+ declare const requestVoid: typeof requestVoid$1;
18602
+ /** @deprecated Internal SDK helper. It leaves the public API in the next major release. */
18603
+ declare const responseRateLimitHeaders: typeof responseRateLimitHeaders$1;
18604
+ /** @deprecated Internal SDK helper. It leaves the public API in the next major release. */
18605
+ declare const selectJsonField: typeof selectJsonField$1;
18606
+ /** @deprecated Internal SDK helper. It leaves the public API in the next major release. */
18607
+ declare const selectJsonFields: typeof selectJsonFields$1;
18608
+ /** @deprecated Internal SDK helper. It leaves the public API in the next major release. */
18609
+ declare const toPutioResponseError: typeof toPutioResponseError$1;
18610
+ /** @deprecated Internal SDK helper. It leaves the public API in the next major release. */
18611
+ declare const withOperationErrors: {
18612
+ <const TDomain extends string, const TOperation extends string, const TContracts extends ReadonlyArray<PutioKnownErrorContract>>(spec: PutioOperationErrorSpec<TDomain, TOperation, TContracts>): <A, E extends PutioSdkError, R>(effect: import("effect/Effect").Effect<A, E, R>) => import("effect/Effect").Effect<A, E | PutioOperationError<TDomain, TOperation, Extract<TContracts[number], PutioKnownOperationErrorContract>>, R>;
18613
+ <A, E extends PutioSdkError, R, const TDomain extends string, const TOperation extends string, const TContracts extends ReadonlyArray<PutioKnownErrorContract>>(effect: import("effect/Effect").Effect<A, E, R>, spec: PutioOperationErrorSpec<TDomain, TOperation, TContracts>): import("effect/Effect").Effect<A, E | PutioOperationError<TDomain, TOperation, Extract<TContracts[number], PutioKnownOperationErrorContract>>, R>;
18614
+ };
18615
+ /** @deprecated Internal SDK helper. It leaves the public API in the next major release. */
18616
+ type PutioAuth = PutioAuth$1;
18617
+ /** @deprecated Internal SDK helper. It leaves the public API in the next major release. */
18618
+ type PutioPathSegment = PutioPathSegment$1;
18619
+ export { ListTunnelRoutesErrorSpec as $, reportPayments as $a, FileExtractionsErrorSpec as $c, OAuthAuthorizationCodeExchangeInput as $d, CreateOAuthAppErrorSpec as $f, ListPaymentPlansErrorSpec as $i, FilesSearchQuerySchema as $l, PutioApiError as $m, ListSharedFilesErrorSpec as $n, IftttEventType as $o, deleteAppSpecificPassword as $p, RetryAllRssFeedItemsErrorSpec as $r, clearEvents as $s, cancelTransfers as $t, listFileExtractions as $u, PutioSdkService as A, RedeemPaymentVoucherError as Aa, FileActiveConversionSchema as Ac, FamilyInviteLookupError as Ad, exchangeOAuthAuthorizationCode as Af, isPutioOperationError as Ah, getPodcastLinks as Ai, FileSubtitlesErrorSpec as Al, destroyAccount as Am, listTrash as An, denyFriendRequest as Ao, createOAuthApp as Ap, getSharingCloneInfo as Ar, EventsListResponse as As, TransferAddInput as At, copyFile as Au, GetZipError as B, confirmFastspringOrder as Ba, FileBroadSchema as Bc, GiftCardLookupError as Bd, grants as Bf, GetPaddleBillingInvoiceUrlError as Bi, FileUploadResult as Bl, PutioHttpResponse as Bm, GetPublicShareError as Bn, FriendInvite as Bo, CreateAppSpecificPasswordError as Bp, DeleteRssFeedError as Br, HistoryPrivateTorrentPinEventSchema as Bs, TransferStatus as Bt, findNextVideo as Bu, DEFAULT_PUTIO_API_BASE_URL as C, PaymentProviderSchema as Ca, CopyFileError as Cc, readConfigWith as Cd, VerifyTOTPResponse as Cf, PutioValidationErrorValue as Ch, PodcastGetLinksInput as Ci, FileSetSortInputSchema as Cl, PasInfo as Cm, TrashFile as Cn, SearchFriendsErrorSpec as Co, QueryOAuthAppsErrorSpec as Cp, cloneSharedFiles as Cr, removeFamilyMember as Cs, RemoveTransfersError as Ct, buildFileXspfPlaylistUrl as Cu, PutioSdkEffectClient as D, PaymentVoucherInfoSchema as Da, DownloadUrlError as Dc, AuthorizationCodeSchema as Dd, buildAuthLoginUrl as Df, isPutioConfigurationError as Dh, PodcastLinks as Di, FileSubtitle as Dl, SaveAccountSettingsPayload as Dm, continueTrash as Dn, UserSearchResultSchema as Do, UpdateOAuthAppErrorSpec as Dp, getPublicShare as Dr, DeleteEventErrorSpec as Ds, StopRecordingTransferError as Dt, convertFileSelectionToMp4 as Du, PutioSdk as E, PaymentVoucherInfo as Ea, CreateFolderErrorSpec as Ec, AuthGetCodeInput as Ed, VoucherLookupErrorSpec as Ef, isPutioAuthError as Eh, PodcastLinkTypeSchema as Ei, FileStartFromSetInput as El, SaveAccountSettingsErrorSpec as Em, TrashListResponse as En, UserSearchResult as Eo, UpdateOAuthAppError as Ep, deletePublicShare as Er, DeleteEventError as Es, RetryTransferErrorSpec as Et, continueSearch as Eu, CancelZipError as F, StopSubscriptionErrorSpec as Fa, FileBase as Fc, FriendInviteLookupErrorSpec as Fd, getFamilyInvite as Ff, CreateOpenNodeChargeErrorSpec as Fi, FileUploadEnvelope as Fl, saveAccountSettings as Fm, CreatePublicShareErrorSpec as Fn, removeFriend as Fo, regenerateOAuthAppToken as Fp, unshareFile as Fr, HistoryFileFromRssDeletedEventSchema as Fs, TransferInfoItem as Ft, deleteFileMp4 as Fu, ZipInfo as G, getPaymentInfo as Ga, FileCore as Gc, LinkDeviceErrorSpec as Gd, register as Gf, GetPaymentVoucherInfoErrorSpec as Gi, FileXspfPlaylistUrlOptions as Gl, PutioSdkOptions as Gm, GetSharedWithErrorSpec as Gn, FriendInviteSchema as Go, DeleteAllAppSpecificPasswordsError as Gp, ListRssFeedItemsErrorSpec as Gr, HistoryTransferErrorEventSchema as Gs, TransfersContinueResponse as Gt, getFile as Gu, ListZipsError as H, createPaddleBillingUpdatePaymentMethodTransaction as Ha, FileConversionStatusSchema as Hc, GrantsError as Hd, login as Hf, GetPaymentInfoError as Hi, FileVideoMetadata as Hl, PutioQueryValue as Hm, GetPublicShareFileUrlError as Hn, FriendInviteJoinedUserSchema as Ho, CreateAppSpecificPasswordInput as Hp, GetRssFeedError as Hr, HistoryTransferCallbackErrorEventSchema as Hs, TransferType as Ht, getApiDownloadUrl as Hu, CancelZipErrorSpec as I, SubmitPaymentChangePlanError as Ia, FileBaseSchema as Ic, GenerateTOTPError as Id, getFriendInvite as If, CreatePaddleBillingUpdatePaymentMethodTransactionError as Ii, FileUploadError as Il, OkResponseSchema as Im, CreateSharingCloneError as In, searchFriends as Io, setOAuthAppIcon as Ip, ClearRssFeedLogsError as Ir, HistoryFileSharedEvent as Is, TransferLink as It, deleteFileSelection as Iu, cancelZip as J, listPaymentInvites as Ja, FileExtraction as Jc, LoginInput as Jd, revokeApp as Jf, ListPaymentInvitesError as Ji, FilesListQuery as Jl, makePutioFetchClient as Jm, ListPublicShareFilesError as Jn, createFriendInvite as Jo, DeleteAppSpecificPasswordErrorSpec as Jp, PauseRssFeedError as Jr, HistoryVoucherEventSchema as Js, TransfersListResponse as Jt, getHlsStreamUrl as Ju, ZipStatusSchema as K, getPaymentVoucherInfo as Ka, FileCreateFolderInput as Kc, LoginError as Kd, resetPassword as Kf, ListPaymentHistoryError as Ki, FilesBulkSelection as Kl, PutioSdkResolvedConfig as Km, GetSharingCloneInfoError as Kn, ListFriendInvitesError as Ko, DeleteAllAppSpecificPasswordsErrorSpec as Kp, ListRssFeedsError as Kr, HistoryTransferFromRssErrorEventSchema as Ks, TransfersListQuery as Kt, getFileChild as Ku, CreateZipError as L, SubmitPaymentChangePlanErrorSpec as La, FileBreadcrumb as Lc, GenerateTOTPErrorSpec as Ld, getGiftCard as Lf, CreatePaddleBillingUpdatePaymentMethodTransactionErrorSpec as Li, FileUploadErrorSpec as Ll, PutioHttpClient as Lm, CreateSharingCloneErrorSpec as Ln, sendFriendRequest as Lo, updateOAuthApp as Lp, ClearRssFeedLogsErrorSpec as Lr, HistoryFileSharedEventSchema as Ls, TransferRemoveInput as Lt, deleteFiles as Lu, createPutioSdkPromiseClient as M, ReportPaymentsError as Ma, FileActiveConversionsErrorSpec as Mc, ForgotPasswordError as Md, forgotPassword as Mf, isPutioTransportError as Mh, ConfirmFastspringOrderError as Mi, FileTouchInputSchema as Ml, getAccountSettings as Mm, ContinuePublicShareFilesError as Mn, listFriends as Mo, getOAuthApp as Mp, listPublicShares as Mr, GetEventTorrentErrorSpec as Ms, TransferAddTrackersInput as Mt, createFileUploadRequest as Mu, makePutioSdkEffectClientLayer as N, ReportPaymentsErrorSpec as Na, FileApiDownloadUrlOptions as Nc, ForgotPasswordErrorSpec as Nd, generateTOTP as Nf, isPutioValidationError as Nh, ConfirmFastspringOrderErrorSpec as Ni, FileType as Nl, listAccountConfirmations as Nm, ContinuePublicShareFilesErrorSpec as Nn, listSentRequests as No, getPopularOAuthApps as Np, listSharedFiles as Nr, HistoryEvent as Ns, TransferAddTrackersInputSchema as Nt, createFolder as Nu, PutioSdkPromiseClient as O, PreviewPaymentChangePlanError as Oa, DownloadUrlErrorSpec as Oc, ClientsError as Od, checkCodeMatch as Of, isPutioContractError as Oh, PodcastLinksResponse as Oi, FileSubtitleSchema as Ol, SaveAccountSettingsPayloadSchema as Om, deleteTrash as On, approveFriendRequest as Oo, buildOAuthAppIconRequest as Op, getPublicShareFileUrl as Or, EventsListQuery as Os, StopRecordingTransferErrorSpec as Ot, convertFileToMp4 as Ou, makePutioSdkLiveClientLayer as P, StopSubscriptionError as Pa, FileApiMp4DownloadUrlOptions as Pc, FriendInviteLookupError as Pd, getCode as Pf, CreateOpenNodeChargeError as Pi, FileTypeSchema as Pl, listAccountSubtitleLanguages as Pm, CreatePublicShareError as Pn, listWaitingRequests as Po, queryOAuthApps as Pp, shareFiles as Pr, HistoryEventSchema as Ps, TransferBaseSchema as Pt, deleteFileExtraction as Pu, ListTunnelRoutesError as Q, redeemPaymentVoucher as Qa, FileExtractionsError as Qc, OAuthAuthorizationCodeExchangeErrorCodeSchema as Qd, CreateOAuthAppError as Qf, ListPaymentPlansError as Qi, FilesSearchQuery as Ql, AnyPutioOperationError as Qm, ListSharedFilesError as Qn, IftttEventInput as Qo, deleteAllAppSpecificPasswords as Qp, RetryAllRssFeedItemsError as Qr, ListEventsErrorSpec as Qs, addTransferTrackers as Qt, listActiveMp4Conversions as Qu, CreateZipErrorSpec as R, UserSubscriptionStatusSchema as Ra, FileBreadcrumbSchema as Rc, GenerateTOTPResponse as Rd, getRecoveryCodes as Rf, CreatePaddleWaitingPaymentError as Ri, FileUploadInput as Rl, PutioHttpClientService as Rm, DeletePublicShareError as Rn, CreateFriendInviteError as Ro, AppSpecificPassword as Rp, CreateRssFeedError as Rr, HistoryKnownEventType as Rs, TransferRemoveInputSchema as Rt, extractFiles as Ru, withOperationErrors as S, PaymentProviderNameSchema as Sa, ContinueSearchErrorSpec as Sc, readConfig as Sd, VerifyTOTPErrorSpec as Sf, PutioValidationError as Sh, updateRssFeed as Si, FileSetSortInput as Sl, AccountWarningsSchema as Sm, TrashContinueResponse as Sn, SearchFriendsError as So, QueryOAuthAppsError as Sp, UnshareFileErrorSpec as Sr, listFamilyMembers as Ss, ReannounceTransferErrorSpec as St, buildFileHlsStreamUrl as Su, DEFAULT_PUTIO_WEB_APP_URL as T, PaymentTypeSchema as Ta, CreateFolderError as Tc, writeConfig as Td, VoucherLookupError as Tf, isPutioApiError as Th, PodcastLinkType as Ti, FileSortSchema as Tl, SaveAccountSettingsError as Tm, TrashListQuery as Tn, SendFriendRequestErrorSpec as To, RegenerateOAuthAppTokenErrorSpec as Tp, createPublicShare as Tr, ClearEventsErrorSpec as Ts, RetryTransferError as Tt, continueFiles as Tu, ListZipsErrorSpec as U, createPaddleWaitingPayment as Ua, FileCopyInput as Uc, GrantsErrorSpec as Ud, logout as Uf, GetPaymentInfoErrorSpec as Ui, FileWatchStatusError as Ul, PutioSdkConfig as Um, GetPublicShareFileUrlErrorSpec as Un, FriendInviteJoinedUserStatus as Uo, CreateAppSpecificPasswordInputSchema as Up, GetRssFeedErrorSpec as Ur, HistoryTransferCompletedEvent as Us, TransferTypeSchema as Ut, getApiMp4DownloadUrl as Uu, GetZipErrorSpec as V, createOpenNodeCharge as Va, FileConversionStatus as Vc, GiftCardLookupErrorSpec as Vd, linkDevice as Vf, GetPaddleBillingInvoiceUrlErrorSpec as Vi, FileUploadTransfer as Vl, PutioQuery as Vm, GetPublicShareErrorSpec as Vn, FriendInviteJoinedUser as Vo, CreateAppSpecificPasswordErrorSpec as Vp, DeleteRssFeedErrorSpec as Vr, HistoryRssFilterPausedEventSchema as Vs, TransferStatusSchema as Vt, getApiContentUrl as Vu, ZipCreateResponse as W, getPaddleBillingInvoiceUrl as Wa, FileCopyInputSchema as Wc, LinkDeviceError as Wd, regenerateRecoveryCodes as Wf, GetPaymentVoucherInfoError as Wi, FileWatchStatusErrorSpec as Wl, PutioSdkContext as Wm, GetSharedWithError as Wn, FriendInviteJoinedUserStatusSchema as Wo, CreateAppSpecificPasswordResult as Wp, ListRssFeedItemsError as Wr, HistoryTransferCompletedEventSchema as Ws, TransfersAddMultiError as Wt, getDownloadUrl as Wu, getZip as X, listPaymentPlans as Xa, FileExtractionStatus as Xc, LoginResponseSchema as Xd, validateToken as Xf, ListPaymentOptionsError as Xi, FilesMoveError as Xl, putioSdkLayer as Xm, ListPublicSharesError as Xn, GetIftttStatusError as Xo, ListAppSpecificPasswordsErrorSpec as Xp, ResumeRssFeedError as Xr, HistoryZipCreatedEventSchema as Xs, addManyTransfers as Xt, getStartFrom as Xu, createZip as Y, listPaymentOptions as Ya, FileExtractionSchema as Yc, LoginResponse as Yd, revokeClient as Yf, ListPaymentInvitesErrorSpec as Yi, FilesListQuerySchema as Yl, makePutioFetchLayer as Ym, ListPublicShareFilesErrorSpec as Yn, listFriendInvites as Yo, ListAppSpecificPasswordsError as Yp, PauseRssFeedErrorSpec as Yr, HistoryZipCreatedEvent as Ys, TransfersListResponseFor as Yt, getMp4Status as Yu, listZips as Z, previewPaymentChangePlan as Za, FileExtractionStatusSchema as Zc, OAuthAuthorizationCodeExchangeError as Zd, verifyTOTP as Zf, ListPaymentOptionsErrorSpec as Zi, FilesMoveErrorSchema as Zl, putioSdkLiveLayer as Zm, ListPublicSharesErrorSpec as Zn, GetIftttStatusErrorSpec as Zo, createAppSpecificPassword as Zp, ResumeRssFeedErrorSpec as Zr, ListEventsError as Zs, addTransfer as Zt, getXspfPlaylistUrl as Zu, requestVoid as _, PaymentPaddleWaitingPaymentInput as _a, CanWriteFileError as _c, PutioJsonPrimitive as _d, TwoFactorRecoveryCodes as _f, PutioSdkError as _h, listRssFeeds as _i, FileQuery as _l, AccountSettingsSchema as _m, ListTrashError as _n, ListSentRequestsErrorSpec as _o, OAuthSetIconInputSchema as _p, SharingShareInput as _r, RemoveFamilyMemberError as _s, GetTransferTorrentError as _t, TouchFilesError as _u, decodePutioErrorEnvelope as a, PaymentChangePlanSubmitSchema as aa, DownloadLinksCreateInput as ac, renameFile as ad, RegisterError as af, PutioContractError as ah, RssFeedItemSchema as ai, FileListResponse as al, AccountConfirmationsError as am, getTransferTorrent as an, CountWaitingRequestsErrorSpec as ao, MyOAuthAppSchema as ap, ShareFilesErrorSpec as ar, CreateFamilyInviteErrorSpec as as, RemoveRateLimitBanInput as at, GetFileErrorSpec as au, selectJsonFields as b, PaymentPlanTypeSchema as ba, ContinueFilesErrorSpec as bc, getConfigKey as bd, ValidateTokenResponseSchema as bf, PutioTypedErrorEnvelope as bh, retryAllRssFeedItems as bi, FileResponseFor as bl, AccountTwoFactorSettingsSchema as bm, RestoreTrashErrorSpec as bn, RemoveFriendError as bo, PopularOAuthApp as bp, SharingUnshareInputSchema as br, joinFamily as bs, ListTransfersErrorSpec as bt, buildFileApiDownloadUrl as bu, mapConfigurationError as c, PaymentHistoryQuery as ca, DownloadLinksInfoSchema as cc, searchFiles as cd, RegisterInputSchema as cf, PutioKnownErrorContract as ch, RssFeedParamsSchema as ci, FileMediaInfoFormatSchema as cl, AccountDiskSchema as cm, removeTransfers as cn, Friend as co, OAuthAppCreateInputSchema as cp, SharedFileShare as cr, FamilyInvitesResponse as cs, AddManyTransfersErrorSpec as ct, QueryFilesError as cu, mapValidationError as d, PaymentInfoSchema as da, DownloadLinksStatus as dc, setStartFrom as dd, RevokeAllOAuthClientsError as df, PutioOperationErrorFromSpec as dh, UpdateRssFeedErrorSpec as di, FileMediaMetadata as dl, AccountInfoBroad as dm, ContinueTrashError as dn, FriendSchema as do, OAuthAppSession as dp, SharedFileSharedWithSchema as dr, JoinFamilyError as ds, AddTransferTrackersError as dt, RenameFileErrorSpec as du, PaymentChangePlanPreview as ea, deleteEvent as ec, listFileSubtitles as ed, OAuthAuthorizationCodeExchangeInputSchema as ef, PutioApiErrorValue as eh, RetryRssFeedItemError as ei, FileGetChildInput as el, listAppSpecificPasswords as em, cleanTransfers as en, stopPaymentSubscription as eo, DeleteOAuthAppError as ep, PublicShare as er, SendIftttEventError as es, TunnelRoute as et, FolderType as eu, normalizePutioSdkOptions as f, PaymentInvite as fa, DownloadLinksStatusSchema as fc, touchFiles as fd, RevokeAllOAuthClientsErrorSpec as ff, PutioOperationErrorSpec as fh, clearRssFeedLogs as fi, FileMediaMetadataSchema as fl, AccountInfoBroadSchema as fm, ContinueTrashErrorSpec as fn, FriendSharedFolderError as fo, OAuthAppSessionSchema as fp, SharingCloneInfo as fr, JoinFamilyErrorSpec as fs, AddTransferTrackersErrorSpec as ft, SHARED_WITH_YOU_ROOT_ID as fu, requestText as g, PaymentOptionSchema as ga, getDownloadLinks as gc, PutioJsonObject as gd, RevokeOAuthGrantErrorSpec as gf, PutioRateLimitErrorValue as gh, listRssFeedItems as gi, FileMp4MutationErrorSpec as gl, AccountSettings as gm, EmptyTrashErrorSpec as gn, ListSentRequestsError as go, OAuthSetIconInput as gp, SharingCloneStatusSchema as gr, ListFamilyMembersErrorSpec as gs, GetTransferErrorSpec as gt, StartFromErrorSpec as gu, requestJson as h, PaymentOptionPlanTypeSchema as ha, createDownloadLinks as hc, JsonValueSchema as hd, RevokeOAuthGrantError as hf, PutioRateLimitError as hh, getRssFeed as hi, FileMp4MutationError as hl, AccountInfoResponseFor as hm, EmptyTrashError as hn, ListFriendsErrorSpec as ho, OAuthAppWithTokenSchema as hp, SharingCloneInputSchema as hr, ListFamilyMembersError as hs, GetTransferError as ht, StartFromError as hu, buildPutioUrl as i, PaymentChangePlanSubmitResponse as ia, CreateDownloadLinksErrorSpec as ic, queryFiles as id, RegenerateRecoveryCodesErrorSpec as if, PutioConfigurationErrorValue as ih, RssFeedItemFailedSchema as ii, FileListContinuationResponse as il, AccountConfirmationSchema as im, getTransferInfo as in, CountWaitingRequestsError as io, MyOAuthApp as ip, ShareFilesError as ir, CreateFamilyInviteError as is, RemoveRateLimitBanErrorSpec as it, GetFileError as iu, createPutioSdkEffectClient as j, RedeemPaymentVoucherErrorSpec as ja, FileActiveConversionsError as jc, FamilyInviteLookupErrorSpec as jd, exists as jf, isPutioRateLimitError as jh, ClassifiedPaymentChangePlanSubmitResponse as ji, FileTouchInput as jl, getAccountInfo as jm, restoreTrash as jn, getFriendSharedFolder as jo, deleteOAuthApp as jp, listPublicShareFiles as jr, GetEventTorrentError as js, TransferAddInputSchema as jt, createFileUploadFormData as ju, PutioSdkPromiseOperations as k, PreviewPaymentChangePlanErrorSpec as ka, FileActiveConversion as kc, ClientsErrorSpec as kd, clients as kf, isPutioErrorEnvelope as kh, PodcastLinksSchema as ki, FileSubtitlesError as kl, clearAccount as km, emptyTrash as kn, countWaitingRequests as ko, buildOAuthAuthorizeUrl as kp, getSharedWith as kr, EventsListQuerySchema as ks, Transfer as kt, convertFilesToMp4 as ku, mapContractError as l, PaymentInfo as la, DownloadLinksPayload as lc, setFileSort as ld, ResetPasswordError as lf, PutioKnownOperationErrorContract as lh, RssFeedSchema as li, FileMediaInfoSchema as ll, AccountInfoBase as lm, retryTransfer as ln, FriendBase as lo, OAuthAppIconRequestDescriptor as lp, SharedFileShareSchema as lr, FamilyMember as ls, AddTransferError as lt, QueryFilesErrorSpec as lu, requestArrayBuffer as m, PaymentOption as ma, GetDownloadLinksErrorSpec as mc, JsonObjectSchema as md, RevokeOAuthClientErrorSpec as mf, PutioOperationFailure as mh, deleteRssFeed as mi, FileMp4ErrorSpec as ml, AccountInfoQuerySchema as mm, DeleteTrashErrorSpec as mn, ListFriendsError as mo, OAuthAppUpdateInputSchema as mp, SharingCloneInput as mr, ListFamilyInvitesErrorSpec as ms, ContinueTransfersErrorSpec as mt, SearchFilesErrorSpec as mu, PutioErrorEnvelopeSchema as n, PaymentChangePlanPreviewSchema as na, listEvents as nc, moveFiles as nd, RecoveryCodesErrorSpec as nf, PutioAuthErrorValue as nh, RssFeed as ni, FileHlsMasterPlaylistOptions as nl, AccountClearOptionsSchema as nm, countTransfers as nn, ApproveFriendRequestError as no, GetOAuthAppError as np, PublicShareListQuerySchema as nr, getIftttStatus as ns, listTunnelRoutes as nt, GetFileChildError as nu, encodePathSegment as o, PaymentHistoryItem as oa, DownloadLinksCreateInputSchema as oc, resetFileSortSettings as od, RegisterErrorSpec as of, PutioContractErrorValue as oh, RssFeedItemSucceededSchema as oi, FileListResponseFor as ol, AccountConfirmationsErrorSpec as om, listTransfers as on, DenyFriendRequestError as oo, OAuthApp as op, SharedFile as or, FamilyInvite as os, removeRateLimitBan as ot, GetHlsMasterPlaylistError as ou, parseErrorBody as p, PaymentInviteSchema as pa, GetDownloadLinksError as pc, uploadFile as pd, RevokeOAuthClientError as pf, PutioOperationErrorValue as ph, createRssFeed as pi, FileMp4Error as pl, AccountInfoQuery as pm, DeleteTrashError as pn, FriendSharedFolderErrorSpec as po, OAuthAppUpdateInput as pp, SharingCloneInfoSchema as pr, ListFamilyInvitesError as ps, ContinueTransfersError as pt, SearchFilesError as pu, ZipSummary as q, listPaymentHistory as qa, FileDirectAccessOptions as qc, LoginErrorSpec as qd, revokeAllClients as qf, ListPaymentHistoryErrorSpec as qi, FilesListEnvelopeSchema as ql, PutioSecret as qm, GetSharingCloneInfoErrorSpec as qn, ListFriendInvitesErrorSpec as qo, DeleteAppSpecificPasswordError as qp, ListRssFeedsErrorSpec as qr, HistoryUploadEventSchema as qs, TransfersListQuerySchema as qt, getHlsMasterPlaylist as qu, PutioPathSegment as r, PaymentChangePlanSubmitInput as ra, CreateDownloadLinksError as rc, putMp4ToMyFiles as rd, RegenerateRecoveryCodesError as rf, PutioConfigurationError as rh, RssFeedItem as ri, FileHlsStreamUrlOptions as rl, AccountConfirmation as rm, getTransfer as rn, ApproveFriendRequestErrorSpec as ro, GetOAuthAppErrorSpec as rp, PublicShareSchema as rr, sendIftttEvent as rs, RemoveRateLimitBanError as rt, GetFileChildErrorSpec as ru, fallbackPutioErrorEnvelope as s, PaymentHistoryItemSchema as sa, DownloadLinksInfo as sc, resetStartFrom as sd, RegisterInput as sf, PutioErrorEnvelope as sh, RssFeedParams as si, FileMediaInfo as sl, AccountDisk as sm, reannounceTransfer as sn, DenyFriendRequestErrorSpec as so, OAuthAppCreateInput as sp, SharedFileSchema as sr, FamilyInviteSchema as ss, AddManyTransfersError as st, GetHlsMasterPlaylistErrorSpec as su, PutioAuth as t, PaymentChangePlanPreviewInput as ta, getEventTorrent as tc, moveFileSelection as td, RecoveryCodesError as tf, PutioAuthError as th, RetryRssFeedItemErrorSpec as ti, FileGetChildInputSchema as tl, AccountClearOptions as tm, continueTransfers as tn, submitPaymentChangePlan as to, DeleteOAuthAppErrorSpec as tp, PublicShareListQuery as tr, SendIftttEventErrorSpec as ts, TunnelRouteSchema as tt, FolderTypeSchema as tu, mapTransportError as u, PaymentInfoPlanSchema as ua, DownloadLinksPayloadSchema as uc, setFilesWatchStatus as ud, ResetPasswordErrorSpec as uf, PutioOperationError as uh, UpdateRssFeedError as ui, FileMediaInfoStreamSchema as ul, AccountInfoBaseSchema as um, stopTransferRecording as un, FriendBaseSchema as uo, OAuthAppSchema as up, SharedFileSharedWith as ur, FamilyMemberSchema as us, AddTransferErrorSpec as ut, RenameFileError as uu, responseRateLimitHeaders as v, PaymentPlanGroup as va, CanWriteFileErrorSpec as vc, PutioJsonValue as vd, TwoFactorRecoveryCodesSchema as vf, PutioTransportError as vh, pauseRssFeed as vi, FileQuerySchema as vl, AccountSubtitleLanguage as vm, ListTrashErrorSpec as vn, ListWaitingRequestsError as vo, OwnedOAuthApp as vp, SharingShareInputSchema as vr, RemoveFamilyMemberErrorSpec as vs, GetTransferTorrentErrorSpec as vt, TouchFilesErrorSpec as vu, DEFAULT_PUTIO_UPLOAD_BASE_URL as w, PaymentSubscriptionInfoSchema as wa, CopyFileErrorSpec as wc, setConfigKey as wd, VerifyTOTPResponseSchema as wf, definePutioOperationErrorSpec as wh, PodcastGetLinksInputSchema as wi, FileSort as wl, PasInfoSchema as wm, TrashFileSchema as wn, SendFriendRequestError as wo, RegenerateOAuthAppTokenError as wp, continuePublicShareFiles as wr, ClearEventsError as ws, RemoveTransfersErrorSpec as wt, canWriteFile as wu, toPutioResponseError as x, PaymentProvider as xa, ContinueSearchError as xc, getConfigKeyWith as xd, VerifyTOTPError as xf, PutioUnhandledSdkError as xh, retryRssFeedItem as xi, FileSearchResponse as xl, AccountWarnings as xm, TrashBulkInput as xn, RemoveFriendErrorSpec as xo, PopularOAuthAppSchema as xp, UnshareFileError as xr, listFamilyInvites as xs, ReannounceTransferError as xt, buildFileApiMp4DownloadUrl as xu, selectJsonField as y, PaymentPlanGroupSchema as ya, ContinueFilesError as yc, deleteConfigKey as yd, ValidateTokenResponse as yf, PutioTransportErrorValue as yh, resumeRssFeed as yi, FileRenameInput as yl, AccountSubtitleLanguageSchema as ym, RestoreTrashError as yn, ListWaitingRequestsErrorSpec as yo, OwnedOAuthAppSchema as yp, SharingUnshareInput as yr, createFamilyInvite as ys, ListTransfersError as yt, buildFileApiContentUrl as yu, CreateZipInput as z, classifyPaymentChangePlanResponse as za, FileBroad as zc, GenerateTOTPResponseSchema as zd, getVoucher as zf, CreatePaddleWaitingPaymentErrorSpec as zi, FileUploadRequestDescriptor as zl, PutioHttpRequest as zm, DeletePublicShareErrorSpec as zn, CreateFriendInviteErrorSpec as zo, AppSpecificPasswordSchema as zp, CreateRssFeedErrorSpec as zr, HistoryKnownEventTypeSchema as zs, TransferSchema as zt, findNextFile as zu };
18620
+ //# sourceMappingURL=index-yZHKCBOi.d.ts.map