@putdotio/sdk 11.4.0 → 11.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -247,6 +247,11 @@ The package compatibility gate installs the packed tarball into external consume
247
247
 
248
248
  Promise consumers receive tagged SDK error objects:
249
249
 
250
+ The fetch transport retains HTTP status and rate-limit headers when an error
251
+ response contains empty or invalid JSON. These errors include a sanitized parsing
252
+ `cause`; response contents are not included in that cause. Failures while reading
253
+ the body remain transport errors, including errors from custom HTTP clients.
254
+
250
255
  Backend error bodies preserve `status`, `status_code`, `error_type`, `error_message`,
251
256
  `error_uri`, nullable `error_id`, and structured `extra` metadata. The legacy
252
257
  `details` field remains available for compatibility, but current backend errors use
@@ -47,7 +47,8 @@ var PutioConfigurationError = class extends Data.TaggedError("PutioConfiguration
47
47
  var PutioValidationError = class extends Data.TaggedError("PutioValidationError") {};
48
48
  const PutioResponseErrorFields = {
49
49
  status: Schema.Int,
50
- body: PutioErrorEnvelopeSchema
50
+ body: PutioErrorEnvelopeSchema,
51
+ cause: Schema.optional(Schema.Defect())
51
52
  };
52
53
  var PutioApiError = class extends Schema.TaggedError()("PutioApiError", { ...PutioResponseErrorFields }) {};
53
54
  var PutioAuthError = class extends Schema.TaggedError()("PutioAuthError", { ...PutioResponseErrorFields }) {};
@@ -85,19 +86,22 @@ const responseRateLimitHeaders = (headers) => ({
85
86
  const mapDecodeErrorToValidationError = (cause) => new PutioValidationError({ cause });
86
87
  const mapConfigurationError = (cause) => new PutioConfigurationError({ cause });
87
88
  const mapTransportError = (cause) => new PutioTransportError({ cause });
88
- const makeResponseError = (status, headers, body) => {
89
+ const makeResponseError = (status, headers, body, cause) => {
89
90
  if (status === 429) return new PutioRateLimitError({
90
91
  status,
91
92
  body,
92
- ...responseRateLimitHeaders(headers)
93
+ ...responseRateLimitHeaders(headers),
94
+ cause
93
95
  });
94
96
  if (status === 401 || status === 403) return new PutioAuthError({
95
97
  status,
96
- body
98
+ body,
99
+ cause
97
100
  });
98
101
  return new PutioApiError({
99
102
  status,
100
- body
103
+ body,
104
+ cause
101
105
  });
102
106
  };
103
107
  const parseErrorBody = (status, json) => decodePutioErrorEnvelope(json).pipe(Effect.orElseSucceed(() => fallbackPutioErrorEnvelope(status)));
@@ -154,10 +158,13 @@ const makePutioFetchClient = (fetchImplementation = globalThis.fetch) => ({ exec
154
158
  catch: mapTransportError
155
159
  }),
156
160
  headers: response.headers,
157
- json: Effect.tryPromise({
161
+ json: isSuccessStatus(response.status) ? Effect.tryPromise({
158
162
  try: () => response.json(),
159
163
  catch: mapTransportError
160
- }),
164
+ }) : Effect.tryPromise({
165
+ try: () => response.text(),
166
+ catch: mapTransportError
167
+ }).pipe(Effect.flatMap((text) => Schema.decodeUnknownEffect(Schema.UnknownFromJsonString)(text).pipe(Effect.mapError(() => makeResponseError(response.status, response.headers, fallbackPutioErrorEnvelope(response.status), /* @__PURE__ */ new SyntaxError("The HTTP error response body is not valid JSON")))))),
161
168
  status: response.status
162
169
  };
163
170
  },
@@ -260,4 +267,4 @@ const toCursorSelectionForm = (selection, idsFieldName) => {
260
267
  //#endregion
261
268
  export { decodePutioErrorEnvelope as A, mapDecodeErrorToValidationError as B, PutioAuthError as C, PutioRateLimitError as D, PutioOperationError as E, isPutioErrorEnvelope as F, parseErrorBody as H, isPutioOperationError as I, isPutioRateLimitError as L, fallbackPutioErrorEnvelope as M, isPutioApiError as N, PutioTransportError as O, isPutioAuthError as P, makeResponseError as R, PutioApiError as S, PutioErrorEnvelopeSchema as T, responseRateLimitHeaders as U, mapTransportError as V, withOperationErrors as W, selectJsonField as _, PutioSdkConfig as a, DEFAULT_PUTIO_UPLOAD_BASE_URL as b, makePutioFetchClient as c, makePutioSdkLayer as d, makePutioSdkLiveLayer as f, requestVoid as g, requestText as h, PutioHttpClient as i, definePutioOperationErrorSpec as j, PutioValidationError as k, makePutioFetchLayer as l, requestJson as m, toCursorSelectionForm as n, buildPutioUrl as o, requestArrayBuffer as p, OkResponseSchema as r, encodePathSegment as s, joinCsv as t, makePutioSdkConfig as u, selectJsonFields as v, PutioConfigurationError as w, DEFAULT_PUTIO_WEB_APP_URL as x, DEFAULT_PUTIO_API_BASE_URL as y, mapConfigurationError as z };
262
269
 
263
- //# sourceMappingURL=forms-C7FIvCRP.js.map
270
+ //# sourceMappingURL=forms-CyWP1xqo.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"forms-CyWP1xqo.js","names":[],"sources":["../src/core/errors.ts","../src/core/defaults.ts","../src/core/http.ts","../src/core/forms.ts"],"sourcesContent":["import { Data, Effect, Predicate, Schema } from \"effect\";\n\nexport const PutioErrorEnvelopeSchema = Schema.Struct({\n status: Schema.optional(Schema.String),\n error: Schema.optional(Schema.String),\n error_message: Schema.optional(Schema.String),\n error_type: Schema.optional(Schema.String),\n error_uri: Schema.optional(Schema.String),\n error_id: Schema.optional(Schema.NullOr(Schema.String)),\n extra: Schema.optional(Schema.Record(Schema.String, Schema.Unknown)),\n status_code: Schema.optional(Schema.Int),\n details: Schema.optional(Schema.Unknown),\n});\n\nexport type PutioErrorEnvelope = Schema.Schema.Type<typeof PutioErrorEnvelopeSchema>;\n\nexport interface PutioKnownErrorContract<\n TType extends string = string,\n TStatus extends number = number,\n TBody extends PutioErrorEnvelope = PutioErrorEnvelope,\n> {\n readonly bodySchema?: Schema.Schema<TBody> | undefined;\n readonly errorType?: TType | undefined;\n readonly statusCode?: TStatus | undefined;\n}\n\ntype ContractErrorType<TContract extends PutioKnownErrorContract> =\n TContract extends PutioKnownErrorContract<infer TType, number> ? TType : never;\n\ntype ContractStatusCode<TContract extends PutioKnownErrorContract> =\n TContract extends PutioKnownErrorContract<string, infer TStatus> ? TStatus : never;\n\ntype ContractBody<TContract extends PutioKnownErrorContract> = TContract extends {\n readonly bodySchema: Schema.Schema<infer TBody extends PutioErrorEnvelope>;\n}\n ? TBody\n : PutioErrorEnvelope;\n\nexport type PutioTypedErrorEnvelope<TContract extends PutioKnownErrorContract> =\n TContract extends PutioKnownErrorContract\n ? Omit<ContractBody<TContract>, \"error_message\" | \"error_type\" | \"status_code\"> & {\n readonly error_message?: string;\n readonly error_type?: [ContractErrorType<TContract>] extends [never]\n ? string\n : ContractErrorType<TContract>;\n readonly status_code?: [ContractStatusCode<TContract>] extends [never]\n ? number\n : ContractStatusCode<TContract>;\n }\n : never;\n\nexport interface PutioOperationErrorSpec<\n TDomain extends string = string,\n TOperation extends string = string,\n TContracts extends ReadonlyArray<PutioKnownErrorContract> =\n ReadonlyArray<PutioKnownErrorContract>,\n> {\n readonly domain: TDomain;\n readonly operation: TOperation;\n readonly knownErrors: TContracts;\n}\n\ntype OperationContractOf<TSpec extends PutioOperationErrorSpec> = Extract<\n TSpec[\"knownErrors\"][number],\n PutioKnownOperationErrorContract\n>;\n\ntype OperationContractOfParts<\n TDomain extends string,\n TOperation extends string,\n TContracts extends ReadonlyArray<PutioKnownErrorContract>,\n> = OperationContractOf<PutioOperationErrorSpec<TDomain, TOperation, TContracts>>;\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 Extract<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 error._tag === \"PutioApiError\" || error._tag === \"PutioAuthError\";\n\nconst hasOptionalString = (record: Readonly<Record<string, unknown>>, key: string): boolean =>\n !(key in record) || record[key] === undefined || typeof record[key] === \"string\";\n\nconst hasOptionalInteger = (record: Readonly<Record<string, unknown>>, key: string): boolean =>\n !(key in record) ||\n record[key] === undefined ||\n (typeof record[key] === \"number\" && Number.isInteger(record[key]));\n\nconst hasOptionalNullableString = (\n record: Readonly<Record<string, unknown>>,\n key: string,\n): boolean =>\n !(key in record) ||\n record[key] === undefined ||\n record[key] === null ||\n typeof record[key] === \"string\";\n\nconst hasOptionalRecord = (record: Readonly<Record<string, unknown>>, key: string): boolean =>\n !(key in record) || record[key] === undefined || Predicate.isObject(record[key]);\n\nconst isKnownOperationErrorContract = (value: unknown): value is PutioKnownOperationErrorContract =>\n Predicate.isObject(value) &&\n (typeof value.errorType === \"string\" || typeof value.statusCode === \"number\") &&\n hasOptionalString(value, \"errorType\") &&\n hasOptionalInteger(value, \"statusCode\");\n\nconst isOperationReason = (\n value: unknown,\n): value is PutioOperationErrorReason<PutioKnownOperationErrorContract> => {\n if (!Predicate.isObject(value)) {\n return false;\n }\n\n if (value.kind === \"error_type\") {\n return typeof value.errorType === \"string\";\n }\n\n if (value.kind === \"status_code\") {\n return typeof value.statusCode === \"number\";\n }\n\n return false;\n};\n\nfunction toOperationReason<TContract extends { readonly errorType: string }>(\n contract: TContract,\n): PutioOperationErrorReason<TContract>;\nfunction toOperationReason<TContract extends { readonly statusCode: number }>(\n contract: TContract,\n): PutioOperationErrorReason<TContract>;\nfunction toOperationReason(\n contract: PutioKnownOperationErrorContract,\n): PutioOperationErrorReason<PutioKnownOperationErrorContract> {\n if (contract.errorType !== undefined) {\n return {\n kind: \"error_type\",\n errorType: contract.errorType,\n };\n }\n\n return {\n kind: \"status_code\",\n statusCode: contract.statusCode,\n };\n}\n\nexport class PutioTransportError extends Data.TaggedError(\"PutioTransportError\")<{\n readonly cause: unknown;\n}> {}\n\nexport class PutioConfigurationError extends Data.TaggedError(\"PutioConfigurationError\")<{\n readonly cause: unknown;\n}> {}\n\nexport class PutioValidationError extends Data.TaggedError(\"PutioValidationError\")<{\n readonly cause: unknown;\n}> {}\n\nconst PutioResponseErrorFields = {\n status: Schema.Int,\n body: PutioErrorEnvelopeSchema,\n cause: Schema.optional(Schema.Defect()),\n};\n\nexport class PutioApiError extends Schema.TaggedError<PutioApiError>()(\"PutioApiError\", {\n ...PutioResponseErrorFields,\n}) {}\n\nexport class PutioAuthError extends Schema.TaggedError<PutioAuthError>()(\"PutioAuthError\", {\n ...PutioResponseErrorFields,\n}) {}\n\nexport class PutioRateLimitError extends Schema.TaggedError<PutioRateLimitError>()(\n \"PutioRateLimitError\",\n {\n ...PutioResponseErrorFields,\n action: Schema.optional(Schema.String),\n id: Schema.optional(Schema.String),\n limit: Schema.optional(Schema.String),\n remaining: Schema.optional(Schema.String),\n retryAfter: Schema.optional(Schema.String),\n reset: Schema.optional(Schema.String),\n },\n) {}\n\nexport class PutioOperationError<\n TDomain extends string,\n TOperation extends string,\n TContract extends PutioKnownOperationErrorContract,\n> extends Data.TaggedError(\"PutioOperationError\")<{\n readonly body: PutioTypedErrorEnvelope<TContract>;\n readonly contract: TContract;\n readonly domain: TDomain;\n readonly operation: TOperation;\n readonly reason: PutioOperationErrorReason<TContract>;\n readonly status: number;\n}> {}\n\nexport type PutioSdkError =\n | PutioConfigurationError\n | PutioTransportError\n | PutioValidationError\n | PutioApiError\n | PutioAuthError\n | PutioRateLimitError;\n\nexport type PutioUnhandledSdkError =\n | PutioConfigurationError\n | PutioTransportError\n | PutioValidationError\n | PutioApiError\n | PutioAuthError\n | PutioRateLimitError;\n\nexport type PutioOperationErrorFromSpec<TSpec extends PutioOperationErrorSpec> =\n PutioOperationError<TSpec[\"domain\"], TSpec[\"operation\"], OperationContractOf<TSpec>>;\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\nexport const isPutioErrorEnvelope = (value: unknown): value is PutioErrorEnvelope =>\n Predicate.isObject(value) &&\n hasOptionalString(value, \"status\") &&\n hasOptionalString(value, \"error\") &&\n hasOptionalString(value, \"error_message\") &&\n hasOptionalString(value, \"error_type\") &&\n hasOptionalString(value, \"error_uri\") &&\n hasOptionalNullableString(value, \"error_id\") &&\n hasOptionalRecord(value, \"extra\") &&\n hasOptionalInteger(value, \"status_code\");\n\nconst hasStatusAndBody = <TTag extends string>(\n value: unknown,\n tag: TTag,\n): value is {\n readonly _tag: TTag;\n readonly body: PutioErrorEnvelope;\n readonly status: number;\n} =>\n Predicate.isObject(value) &&\n value._tag === tag &&\n typeof value.status === \"number\" &&\n isPutioErrorEnvelope(value.body);\n\nexport const isPutioApiError = (value: unknown): value is PutioApiError =>\n hasStatusAndBody(value, \"PutioApiError\");\n\nexport const isPutioAuthError = (value: unknown): value is PutioAuthError =>\n hasStatusAndBody(value, \"PutioAuthError\");\n\nexport const isPutioRateLimitError = (value: unknown): value is PutioRateLimitError =>\n hasStatusAndBody(value, \"PutioRateLimitError\") &&\n Predicate.isObject(value) &&\n hasOptionalString(value, \"action\") &&\n hasOptionalString(value, \"id\") &&\n hasOptionalString(value, \"limit\") &&\n hasOptionalString(value, \"remaining\") &&\n hasOptionalString(value, \"retryAfter\") &&\n hasOptionalString(value, \"reset\");\n\nexport const isPutioOperationError = (value: unknown): value is AnyPutioOperationError =>\n Predicate.isObject(value) &&\n value._tag === \"PutioOperationError\" &&\n isPutioErrorEnvelope(value.body) &&\n isKnownOperationErrorContract(value.contract) &&\n typeof value.domain === \"string\" &&\n typeof value.operation === \"string\" &&\n isOperationReason(value.reason) &&\n typeof value.status === \"number\";\n\nexport const fallbackPutioErrorEnvelope = (status: number): PutioErrorEnvelope => ({\n error_message: `put.io API request failed with status ${status}`,\n status_code: status,\n});\n\nconst getHeader = (headers: Headers, name: string): string | undefined =>\n headers.get(name) ?? undefined;\n\nexport const responseRateLimitHeaders = (headers: Headers) => ({\n action: getHeader(headers, \"x-ratelimit-action\"),\n id: getHeader(headers, \"x-ratelimit-id\"),\n limit: getHeader(headers, \"x-ratelimit-limit\"),\n remaining: getHeader(headers, \"x-ratelimit-remaining\"),\n retryAfter: getHeader(headers, \"retry-after\"),\n reset: getHeader(headers, \"x-ratelimit-reset\"),\n});\n\nexport const mapDecodeErrorToValidationError = (cause: unknown) =>\n new PutioValidationError({ cause });\n\nexport const mapConfigurationError = (cause: unknown) => new PutioConfigurationError({ cause });\n\nexport const mapTransportError = (cause: unknown) => new PutioTransportError({ cause });\n\nexport const makeResponseError = (\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, json: unknown) =>\n decodePutioErrorEnvelope(json).pipe(\n Effect.orElseSucceed(() => fallbackPutioErrorEnvelope(status)),\n );\n\nexport function withOperationErrors<\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\n | PutioOperationError<\n TDomain,\n TOperation,\n OperationContractOfParts<TDomain, TOperation, TContracts>\n >,\n R\n>;\nexport function withOperationErrors<\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\n | PutioOperationError<\n TDomain,\n TOperation,\n OperationContractOfParts<TDomain, TOperation, TContracts>\n >,\n R\n>;\nexport function withOperationErrors<\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 effectOrSpec: Effect.Effect<A, E, R> | PutioOperationErrorSpec<TDomain, TOperation, TContracts>,\n maybeSpec?: PutioOperationErrorSpec<TDomain, TOperation, TContracts>,\n):\n | Effect.Effect<\n A,\n | E\n | PutioOperationError<\n TDomain,\n TOperation,\n OperationContractOfParts<TDomain, TOperation, TContracts>\n >,\n R\n >\n | (<A2, E2 extends PutioSdkError, R2>(\n effect: Effect.Effect<A2, E2, R2>,\n ) => Effect.Effect<\n A2,\n | E2\n | PutioOperationError<\n TDomain,\n TOperation,\n OperationContractOfParts<TDomain, TOperation, TContracts>\n >,\n R2\n >) {\n if (maybeSpec === undefined) {\n const spec = effectOrSpec as PutioOperationErrorSpec<TDomain, TOperation, TContracts>;\n\n return <A2, E2 extends PutioSdkError, R2>(effect: Effect.Effect<A2, E2, R2>) =>\n withOperationErrors(effect, spec);\n }\n\n const effect = effectOrSpec as Effect.Effect<A, E, R>;\n const spec = maybeSpec;\n\n return effect.pipe(\n Effect.mapError((error) => {\n if (!isMatchableApiError(error)) {\n return error;\n }\n\n const contract = spec.knownErrors.find((candidate) => isKnownContractMatch(candidate, error));\n\n if (!contract) {\n return error;\n }\n\n return new PutioOperationError({\n body: error.body as PutioTypedErrorEnvelope<\n OperationContractOfParts<TDomain, TOperation, TContracts>\n >,\n contract,\n domain: spec.domain,\n operation: spec.operation,\n reason: toOperationReason(contract),\n status: error.status,\n });\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 { Context, Effect, Layer, Schema } from \"effect\";\n\nimport {\n DEFAULT_PUTIO_API_BASE_URL,\n DEFAULT_PUTIO_UPLOAD_BASE_URL,\n DEFAULT_PUTIO_WEB_APP_URL,\n} from \"./defaults.js\";\nimport {\n fallbackPutioErrorEnvelope,\n makeResponseError,\n mapConfigurationError,\n mapDecodeErrorToValidationError,\n mapTransportError,\n parseErrorBody,\n PutioConfigurationError,\n type PutioSdkError,\n} from \"./errors.js\";\n\nexport type PutioQueryValue = string | number | boolean | null | undefined;\n\nexport type PutioQuery = Readonly<Record<string, PutioQueryValue>>;\n\nexport type PutioPathSegment = string | number | boolean;\n\nexport interface PutioSdkConfigShape {\n readonly accessToken?: string;\n readonly baseUrl?: string | URL;\n readonly uploadBaseUrl?: string | URL;\n readonly webAppUrl?: string | URL;\n}\n\nexport class PutioSdkConfig extends Context.Service<PutioSdkConfig, PutioSdkConfigShape>()(\n \"PutioSdkConfig\",\n) {}\n\nexport interface PutioHttpRequest {\n readonly body?: BodyInit;\n readonly headers: Headers;\n readonly method: PutioRequestMethod;\n readonly url: string;\n}\n\nexport interface PutioHttpResponse {\n readonly arrayBuffer: Effect.Effect<ArrayBuffer, PutioSdkError>;\n readonly headers: Headers;\n readonly json: Effect.Effect<unknown, PutioSdkError>;\n readonly status: number;\n}\n\nexport interface PutioHttpClientShape {\n readonly execute: (request: PutioHttpRequest) => Effect.Effect<PutioHttpResponse, PutioSdkError>;\n}\n\nexport class PutioHttpClient extends Context.Service<PutioHttpClient, PutioHttpClientShape>()(\n \"PutioHttpClient\",\n) {}\n\nexport type PutioSdkContext = PutioSdkConfig | PutioHttpClient;\n\nexport const makePutioSdkConfig = (config: PutioSdkConfigShape): PutioSdkConfigShape => ({\n accessToken: config.accessToken,\n baseUrl: config.baseUrl ?? DEFAULT_PUTIO_API_BASE_URL,\n uploadBaseUrl: config.uploadBaseUrl ?? DEFAULT_PUTIO_UPLOAD_BASE_URL,\n webAppUrl: config.webAppUrl ?? DEFAULT_PUTIO_WEB_APP_URL,\n});\n\nexport const makePutioSdkLayer = (config: PutioSdkConfigShape) =>\n Layer.succeed(PutioSdkConfig, makePutioSdkConfig(config));\n\nexport const makePutioSdkLiveLayer = (config: PutioSdkConfigShape) =>\n Layer.mergeAll(makePutioSdkLayer(config), makePutioFetchLayer());\n\nexport const makePutioFetchLayer = (\n fetchImplementation: typeof globalThis.fetch = globalThis.fetch,\n) => Layer.succeed(PutioHttpClient, makePutioFetchClient(fetchImplementation));\n\nexport const makePutioFetchClient = (\n fetchImplementation: typeof globalThis.fetch = globalThis.fetch,\n): PutioHttpClientShape => ({\n execute: (request) =>\n Effect.tryPromise({\n try: async (signal) => {\n const response = await fetchImplementation(request.url, {\n body: request.body,\n headers: request.headers,\n method: request.method,\n signal,\n });\n\n return {\n arrayBuffer: Effect.tryPromise({\n try: () => response.arrayBuffer(),\n catch: mapTransportError,\n }),\n headers: response.headers,\n json: isSuccessStatus(response.status)\n ? Effect.tryPromise({\n try: () => response.json(),\n catch: mapTransportError,\n })\n : Effect.tryPromise({\n try: () => response.text(),\n catch: mapTransportError,\n }).pipe(\n Effect.flatMap((text) =>\n Schema.decodeUnknownEffect(Schema.UnknownFromJsonString)(text).pipe(\n Effect.mapError(() =>\n makeResponseError(\n response.status,\n response.headers,\n fallbackPutioErrorEnvelope(response.status),\n // Native JSON errors can quote response contents in their message.\n new SyntaxError(\"The HTTP error response body is not valid JSON\"),\n ),\n ),\n ),\n ),\n ),\n status: response.status,\n };\n },\n catch: mapTransportError,\n }),\n});\n\nexport const encodePathSegment = (value: PutioPathSegment): string =>\n encodeURIComponent(String(value));\n\nconst absoluteUrlPattern = /^(?:[a-z][a-z\\d+.-]*:|\\/\\/)/i;\n\nconst normalizeApiPath = (path: string): string => {\n if (absoluteUrlPattern.test(path)) {\n throw mapConfigurationError(\"SDK API request paths must be relative to the configured baseUrl\");\n }\n\n 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 : mapConfigurationError(cause);\n\nexport const OkResponseSchema = Schema.Struct({\n status: Schema.Literal(\"OK\"),\n});\n\nexport type PutioAuth =\n | { readonly type: \"config-token\" }\n | { readonly type: \"token\"; readonly token: string }\n | { readonly type: \"basic\"; readonly username: string; readonly password: string }\n | { readonly type: \"none\" };\n\ntype PutioRequestMethod = \"GET\" | \"POST\" | \"PUT\" | \"PATCH\" | \"DELETE\";\n\ntype PutioRequestBody =\n | { readonly type: \"none\" }\n | { readonly type: \"json\"; readonly value: unknown }\n | { readonly type: \"form\"; readonly value: Record<string, unknown> }\n | { readonly type: \"form-data\"; readonly value: FormData };\n\ninterface PutioRequestOptions {\n readonly method: PutioRequestMethod;\n readonly path: string;\n readonly baseUrl?: string | URL;\n readonly query?: PutioQuery;\n readonly headers?: HeadersInit;\n readonly auth?: PutioAuth;\n readonly body?: PutioRequestBody;\n}\n\nconst isSuccessStatus = (status: number) => status >= 200 && status < 300;\n\nconst decodeSuccessJson = <S extends Schema.Top>(schema: S, response: PutioHttpResponse) =>\n response.json.pipe(\n Effect.flatMap((json) =>\n Schema.decodeUnknownEffect(schema)(json).pipe(\n Effect.mapError(mapDecodeErrorToValidationError),\n ),\n ),\n );\n\nconst decodeFailure = (response: PutioHttpResponse, headers: Headers) =>\n response.json.pipe(\n Effect.flatMap((json) => parseErrorBody(response.status, json)),\n Effect.map((body) => makeResponseError(response.status, headers, body)),\n );\n\nconst toBasicAuthorization = (username: string, password: string) => {\n if (typeof globalThis.btoa === \"function\") {\n return `Basic ${globalThis.btoa(`${username}:${password}`)}`;\n }\n\n throw mapConfigurationError(\n \"This runtime does not provide btoa(), so Basic auth cannot be encoded safely\",\n );\n};\n\nconst resolveAuthorization = (\n config: PutioSdkConfigShape,\n auth: PutioAuth | undefined,\n): Effect.Effect<string | undefined, PutioSdkError> => {\n const resolvedAuth = auth ?? { type: \"config-token\" as const };\n\n switch (resolvedAuth.type) {\n case \"none\":\n return Effect.succeed(undefined);\n case \"token\":\n return Effect.succeed(`Token ${resolvedAuth.token}`);\n case \"basic\":\n return Effect.try({\n try: () => toBasicAuthorization(resolvedAuth.username, resolvedAuth.password),\n catch: mapConfigurationError,\n });\n case \"config-token\":\n if (!config.accessToken) {\n return Effect.fail(\n mapConfigurationError(\n \"This endpoint requires an access token, but PutioSdkConfig.accessToken is missing\",\n ),\n );\n }\n\n return Effect.succeed(`Token ${config.accessToken}`);\n }\n};\n\nconst normalizeFormValue = (value: unknown): string => {\n if (value === null || value === undefined) {\n return \"\";\n }\n\n if (typeof value === \"string\") {\n return value;\n }\n\n if (typeof value === \"number\" || typeof value === \"boolean\") {\n return String(value);\n }\n\n return JSON.stringify(value);\n};\n\nconst withBody = (body: PutioRequestBody): Effect.Effect<BodyInit | undefined, PutioSdkError> => {\n switch (body.type) {\n case \"none\":\n return Effect.succeed(undefined);\n case \"json\":\n return Effect.try({\n try: () => JSON.stringify(body.value),\n catch: mapDecodeErrorToValidationError,\n });\n case \"form\":\n return Effect.succeed(\n new URLSearchParams(\n Object.entries(body.value).flatMap(([key, value]) =>\n value === undefined ? [] : [[key, normalizeFormValue(value)]],\n ),\n ),\n );\n case \"form-data\":\n return Effect.succeed(body.value);\n }\n};\n\nconst makeRequest = (url: string, options: PutioRequestOptions, authorization?: string) =>\n Effect.gen(function* () {\n const headers = new Headers(options.headers);\n\n const body = options.body ?? { type: \"none\" as const };\n if (!headers.has(\"accept\")) {\n headers.set(\"accept\", \"application/json\");\n }\n\n if (authorization) {\n headers.set(\"authorization\", authorization);\n }\n\n if (body.type === \"json\" && !headers.has(\"content-type\")) {\n headers.set(\"content-type\", \"application/json\");\n }\n\n return {\n body: yield* withBody(body),\n headers,\n method: options.method,\n url,\n };\n });\n\nconst executeRequest = (options: PutioRequestOptions) =>\n Effect.gen(function* () {\n const config = yield* PutioSdkConfig;\n const httpClient = yield* PutioHttpClient;\n const authorization = yield* resolveAuthorization(config, options.auth);\n const url = yield* Effect.try({\n try: () =>\n buildPutioUrl(\n options.baseUrl ?? config.baseUrl ?? DEFAULT_PUTIO_API_BASE_URL,\n options.path,\n options.query,\n ),\n catch: mapUrlBuildError,\n });\n const request = yield* makeRequest(url, options, authorization);\n\n return yield* httpClient.execute(request);\n });\n\nexport const requestJson = <S extends Schema.Top>(\n schema: S,\n options: PutioRequestOptions,\n): Effect.Effect<S[\"Type\"], PutioSdkError, PutioSdkContext | S[\"DecodingServices\"]> =>\n executeRequest(options).pipe(\n Effect.flatMap((response) =>\n isSuccessStatus(response.status)\n ? decodeSuccessJson(schema, response)\n : decodeFailure(response, response.headers).pipe(Effect.flatMap(Effect.fail)),\n ),\n );\n\nexport const selectJsonField =\n <K extends string>(field: K) =>\n <A extends { readonly [P in K]: unknown }, E, R>(\n effect: Effect.Effect<A, E, R>,\n ): Effect.Effect<A[K], E, R> =>\n effect.pipe(Effect.map((value) => value[field]));\n\nexport const selectJsonFields =\n <const K extends readonly string[]>(...fields: K) =>\n <A extends { readonly [P in K[number]]: unknown }, E, R>(\n effect: Effect.Effect<A, E, R>,\n ): Effect.Effect<Pick<A, K[number]>, E, R> =>\n effect.pipe(\n Effect.map(\n (value) =>\n Object.fromEntries(fields.map((field) => [field, value[field as K[number]]])) as Pick<\n A,\n K[number]\n >,\n ),\n );\n\nexport const requestArrayBuffer = (\n options: PutioRequestOptions,\n): Effect.Effect<Uint8Array, PutioSdkError, PutioSdkContext> =>\n executeRequest(options).pipe(\n Effect.flatMap((response) =>\n isSuccessStatus(response.status)\n ? response.arrayBuffer.pipe(Effect.map((buffer) => new Uint8Array(buffer)))\n : decodeFailure(response, response.headers).pipe(Effect.flatMap(Effect.fail)),\n ),\n );\n\nexport const requestText = (\n options: PutioRequestOptions,\n): Effect.Effect<string, PutioSdkError, PutioSdkContext> =>\n requestArrayBuffer(options).pipe(Effect.map((bytes) => new TextDecoder().decode(bytes)));\n\nexport const requestVoid = (\n options: PutioRequestOptions,\n): Effect.Effect<void, PutioSdkError, PutioSdkContext> =>\n executeRequest(options).pipe(\n Effect.flatMap((response) =>\n isSuccessStatus(response.status)\n ? Effect.void\n : decodeFailure(response, response.headers).pipe(Effect.flatMap(Effect.fail)),\n ),\n );\n","type CsvValue = string | number;\n\nexport interface CursorSelectionInput<TValue extends CsvValue = number> {\n readonly cursor?: string;\n readonly excludeIds?: ReadonlyArray<TValue>;\n readonly ids?: ReadonlyArray<TValue>;\n}\n\nexport const joinCsv = <TValue extends CsvValue>(\n values: ReadonlyArray<TValue> | undefined,\n): string | undefined => (values && values.length > 0 ? values.join(\",\") : undefined);\n\nexport const toCursorSelectionForm = <\n TValue extends CsvValue,\n const TIdsFieldName extends string = \"file_ids\",\n>(\n selection: CursorSelectionInput<TValue>,\n idsFieldName?: TIdsFieldName,\n): {\n readonly cursor?: string;\n readonly exclude_ids?: string;\n} & Record<TIdsFieldName, string | undefined> => {\n const resolvedIdsFieldName = (idsFieldName ?? \"file_ids\") as TIdsFieldName;\n\n return {\n cursor: selection.cursor,\n exclude_ids: joinCsv(selection.excludeIds),\n [resolvedIdsFieldName]: joinCsv(selection.ids),\n } as {\n readonly cursor?: string;\n readonly exclude_ids?: string;\n } & Record<TIdsFieldName, string | undefined>;\n};\n"],"mappings":";;AAEA,MAAa,2BAA2B,OAAO,OAAO;CACp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ErC,WAEA,OAAO,KACL,OAAO,KACJ,UACC,OAAO,YAAY,OAAO,KAAK,UAAU,CAAC,OAAO,MAAM,MAAmB,CAAC,CAAC,CAIhF,CACF;AAEJ,MAAa,sBACX,YAEA,eAAe,OAAO,CAAC,CAAC,KACtB,OAAO,SAAS,aACd,gBAAgB,SAAS,MAAM,IAC3B,SAAS,YAAY,KAAK,OAAO,KAAK,WAAW,IAAI,WAAW,MAAM,CAAC,CAAC,IACxE,cAAc,UAAU,SAAS,OAAO,CAAC,CAAC,KAAK,OAAO,QAAQ,OAAO,IAAI,CAAC,CAChF,CACF;AAEF,MAAa,eACX,YAEA,mBAAmB,OAAO,CAAC,CAAC,KAAK,OAAO,KAAK,UAAU,IAAI,YAAY,CAAC,CAAC,OAAO,KAAK,CAAC,CAAC;AAEzF,MAAa,eACX,YAEA,eAAe,OAAO,CAAC,CAAC,KACtB,OAAO,SAAS,aACd,gBAAgB,SAAS,MAAM,IAC3B,OAAO,OACP,cAAc,UAAU,SAAS,OAAO,CAAC,CAAC,KAAK,OAAO,QAAQ,OAAO,IAAI,CAAC,CAChF,CACF;;;ACpXF,MAAa,WACX,WACwB,UAAU,OAAO,SAAS,IAAI,OAAO,KAAK,GAAG,IAAI,KAAA;AAE3E,MAAa,yBAIX,WACA,iBAI+C;CAC/C,MAAM,uBAAwB,gBAAgB;CAE9C,OAAO;EACL,QAAQ,UAAU;EAClB,aAAa,QAAQ,UAAU,UAAU;GACxC,uBAAuB,QAAQ,UAAU,GAAG;CAC/C;AAIF"}
@@ -83,6 +83,7 @@ declare const PutioApiError_base: Schema.Class<PutioApiError, Schema.TaggedStruc
83
83
  readonly status_code: Schema.optional<Schema.Int>;
84
84
  readonly details: Schema.optional<Schema.Unknown>;
85
85
  }>;
86
+ readonly cause: Schema.optional<Schema.Defect>;
86
87
  }>, import("effect/Cause").YieldableError>;
87
88
  declare class PutioApiError extends PutioApiError_base {}
88
89
  declare const PutioAuthError_base: Schema.Class<PutioAuthError, Schema.TaggedStruct<"PutioAuthError", {
@@ -98,6 +99,7 @@ declare const PutioAuthError_base: Schema.Class<PutioAuthError, Schema.TaggedStr
98
99
  readonly status_code: Schema.optional<Schema.Int>;
99
100
  readonly details: Schema.optional<Schema.Unknown>;
100
101
  }>;
102
+ readonly cause: Schema.optional<Schema.Defect>;
101
103
  }>, import("effect/Cause").YieldableError>;
102
104
  declare class PutioAuthError extends PutioAuthError_base {}
103
105
  declare const PutioRateLimitError_base: Schema.Class<PutioRateLimitError, Schema.TaggedStruct<"PutioRateLimitError", {
@@ -113,6 +115,7 @@ declare const PutioRateLimitError_base: Schema.Class<PutioRateLimitError, Schema
113
115
  readonly status_code: Schema.optional<Schema.Int>;
114
116
  readonly details: Schema.optional<Schema.Unknown>;
115
117
  }>;
118
+ readonly cause: Schema.optional<Schema.Defect>;
116
119
  readonly action: Schema.optional<Schema.String>;
117
120
  readonly id: Schema.optional<Schema.String>;
118
121
  readonly limit: Schema.optional<Schema.String>;
@@ -168,7 +171,7 @@ declare const responseRateLimitHeaders: (headers: Headers) => {
168
171
  declare const mapDecodeErrorToValidationError: (cause: unknown) => PutioValidationError;
169
172
  declare const mapConfigurationError: (cause: unknown) => PutioConfigurationError;
170
173
  declare const mapTransportError: (cause: unknown) => PutioTransportError;
171
- declare const makeResponseError: (status: number, headers: Headers, body: PutioErrorEnvelope) => PutioSdkError;
174
+ declare const makeResponseError: (status: number, headers: Headers, body: PutioErrorEnvelope, cause?: unknown) => PutioSdkError;
172
175
  declare const parseErrorBody: (status: number, json: unknown) => Effect.Effect<{
173
176
  readonly status?: string | undefined;
174
177
  readonly error?: string | undefined;
@@ -9829,4 +9832,4 @@ declare global {
9829
9832
  }
9830
9833
  //#endregion
9831
9834
  export { Transfer as $, denyFriendRequest as $a, listFileSubtitles as $c, generateTOTP as $d, queryOAuthApps as $f, RedeemPaymentVoucherError as $i, HistoryFileSharedEvent as $l, mapConfigurationError as $m, getSharingCloneInfo as $n, FileExtractionsErrorSpec as $o, listAccountSubtitleLanguages as $p, getPodcastLinks as $r, FolderType as $s, listTrash as $t, ForgotPasswordErrorSpec as $u, TunnelRoute as A, DenyFriendRequestErrorSpec as Aa, createFileUploadFormData as Ac, ResetPasswordErrorSpec as Ad, OAuthAppSession as Af, PaymentHistoryItemSchema as Ai, ListFamilyInvitesError as Al, PutioErrorEnvelope as Am, SharedFileSchema as An, FileActiveConversionSchema as Ao, AccountInfoBroad as Ap, RssFeedParams as Ar, FileTouchInput as As, reannounceTransfer as At, GetDownloadLinksError as Au, GetTransferErrorSpec as B, ListSentRequestsErrorSpec as Ba, getApiContentUrl as Bc, ValidateTokenResponseSchema as Bd, PopularOAuthAppSchema as Bf, PaymentPaddleWaitingPaymentInput as Bi, removeFamilyMember as Bl, PutioTransportError as Bm, SharingShareInput as Bn, FileBroadSchema as Bo, AccountWarnings as Bp, listRssFeeds as Br, FileUploadTransfer as Bs, ListTrashError as Bt, getConfigKey as Bu, ZipSummary as C, stopPaymentSubscription as Ca, canWriteFile as Cc, RegenerateRecoveryCodesError as Cd, GetOAuthAppErrorSpec as Cf, PaymentChangePlanPreview as Ci, FamilyInvite as Cl, requestVoid as Cm, PublicShare as Cn, CopyFileError as Co, AccountConfirmationSchema as Cp, RetryRssFeedItemError as Cr, FileSort as Cs, cleanTransfers as Ct, DownloadLinksCreateInputSchema as Cu, listZips as D, CountWaitingRequestsError as Da, convertFileToMp4 as Dc, RegisterInput as Dd, OAuthAppCreateInput as Df, PaymentChangePlanSubmitResponse as Di, FamilyMemberSchema as Dl, PutioApiError as Dm, ShareFilesError as Dn, DownloadUrlError as Do, AccountDiskSchema as Dp, RssFeedItemFailedSchema as Dr, FileSubtitleSchema as Ds, getTransferInfo as Dt, DownloadLinksPayloadSchema as Du, getZip as E, ApproveFriendRequestErrorSpec as Ea, convertFileSelectionToMp4 as Ec, RegisterErrorSpec as Ed, OAuthApp as Ef, PaymentChangePlanSubmitInput as Ei, FamilyMember as El, AnyPutioOperationError as Em, PublicShareSchema as En, CreateFolderErrorSpec as Eo, AccountDisk as Ep, RssFeedItem as Er, FileSubtitle as Es, getTransfer as Et, DownloadLinksPayload as Eu, AddTransferError as F, FriendSharedFolderError as Fa, deleteFileSelection as Fc, RevokeOAuthGrantError as Fd, OAuthSetIconInput as Ff, PaymentInvite as Fi, RemoveFamilyMemberErrorSpec as Fl, PutioOperationErrorFromSpec as Fm, SharingCloneInfo as Fn, FileBase as Fo, AccountSettings as Fp, clearRssFeedLogs as Fr, FileUploadError as Fs, ContinueTrashErrorSpec as Ft, JsonValueSchema as Fu, ReannounceTransferError as G, SearchFriendsError as Ga, getFileChild as Gc, VoucherLookupError as Gd, UpdateOAuthAppError as Gf, PaymentProviderNameSchema as Gi, EventsListQuery as Gl, definePutioOperationErrorSpec as Gm, UnshareFileErrorSpec as Gn, FileCore as Go, SaveAccountSettingsErrorSpec as Gp, updateRssFeed as Gr, FilesBulkSelection as Gs, TrashContinueResponse as Gt, writeConfig as Gu, GetTransferTorrentErrorSpec as H, ListWaitingRequestsErrorSpec as Ha, getApiMp4DownloadUrl as Hc, VerifyTOTPErrorSpec as Hd, QueryOAuthAppsErrorSpec as Hf, PaymentPlanGroupSchema as Hi, ClearEventsErrorSpec as Hl, PutioUnhandledSdkError as Hm, SharingUnshareInput as Hn, FileConversionStatusSchema as Ho, PasInfo as Hp, resumeRssFeed as Hr, FileWatchStatusError as Hs, RestoreTrashError as Ht, readConfig as Hu, AddTransferErrorSpec as I, FriendSharedFolderErrorSpec as Ia, deleteFiles as Ic, RevokeOAuthGrantErrorSpec as Id, OAuthSetIconInputSchema as If, PaymentInviteSchema as Ii, createFamilyInvite as Il, PutioOperationErrorSpec as Im, SharingCloneInfoSchema as In, FileBaseSchema as Io, AccountSettingsSchema as Ip, createRssFeed as Ir, FileUploadErrorSpec as Is, DeleteTrashError as It, PutioJsonObject as Iu, RemoveTransfersErrorSpec as J, SendFriendRequestErrorSpec as Ja, getMp4Status as Jc, checkCodeMatch as Jd, buildOAuthAuthorizeUrl as Jf, PaymentTypeSchema as Ji, GetEventTorrentError as Jl, isPutioAuthError as Jm, createPublicShare as Jn, FileExtraction as Jo, clearAccount as Jp, PodcastLinkType as Jr, FilesListQuerySchema as Js, TrashListQuery as Jt, ClientsError as Ju, ReannounceTransferErrorSpec as K, SearchFriendsErrorSpec as Ka, getHlsMasterPlaylist as Kc, VoucherLookupErrorSpec as Kd, UpdateOAuthAppErrorSpec as Kf, PaymentProviderSchema as Ki, EventsListQuerySchema as Kl, fallbackPutioErrorEnvelope as Km, cloneSharedFiles as Kn, FileCreateFolderInput as Ko, SaveAccountSettingsPayload as Kp, PodcastGetLinksInput as Kr, FilesListEnvelopeSchema as Ks, TrashFile as Kt, AuthGetCodeInput as Ku, AddTransferTrackersError as L, ListFriendsError as La, extractFiles as Lc, TwoFactorRecoveryCodes as Ld, OwnedOAuthApp as Lf, PaymentOption as Li, joinFamily as Ll, PutioOperationFailure as Lm, SharingCloneInput as Ln, FileBreadcrumb as Lo, AccountSubtitleLanguage as Lp, deleteRssFeed as Lr, FileUploadInput as Ls, DeleteTrashErrorSpec as Lt, PutioJsonPrimitive as Lu, listTunnelRoutes as M, FriendBase as Ma, createFolder as Mc, RevokeAllOAuthClientsErrorSpec as Md, OAuthAppUpdateInput as Mf, PaymentInfo as Mi, ListFamilyMembersError as Ml, PutioKnownErrorContract as Mm, SharedFileShareSchema as Mn, FileActiveConversionsErrorSpec as Mo, AccountInfoQuery as Mp, RssFeedSchema as Mr, FileType as Ms, retryTransfer as Mt, createDownloadLinks as Mu, AddManyTransfersError as N, FriendBaseSchema as Na, deleteFileExtraction as Nc, RevokeOAuthClientError as Nd, OAuthAppUpdateInputSchema as Nf, PaymentInfoPlanSchema as Ni, ListFamilyMembersErrorSpec as Nl, PutioKnownOperationErrorContract as Nm, SharedFileSharedWith as Nn, FileApiDownloadUrlOptions as No, AccountInfoQuerySchema as Np, UpdateRssFeedError as Nr, FileTypeSchema as Ns, stopTransferRecording as Nt, getDownloadLinks as Nu, ListTunnelRoutesError as O, CountWaitingRequestsErrorSpec as Oa, convertFilesToMp4 as Oc, RegisterInputSchema as Od, OAuthAppCreateInputSchema as Of, PaymentChangePlanSubmitSchema as Oi, JoinFamilyError as Ol, PutioAuthError as Om, ShareFilesErrorSpec as On, DownloadUrlErrorSpec as Oo, AccountInfoBase as Op, RssFeedItemSchema as Or, FileSubtitlesError as Os, getTransferTorrent as Ot, DownloadLinksStatus as Ou, AddManyTransfersErrorSpec as P, FriendSchema as Pa, deleteFileMp4 as Pc, RevokeOAuthClientErrorSpec as Pd, OAuthAppWithTokenSchema as Pf, PaymentInfoSchema as Pi, RemoveFamilyMemberError as Pl, PutioOperationError as Pm, SharedFileSharedWithSchema as Pn, FileApiMp4DownloadUrlOptions as Po, AccountInfoResponseFor as Pp, UpdateRssFeedErrorSpec as Pr, FileUploadEnvelope as Ps, ContinueTrashError as Pt, JsonObjectSchema as Pu, StopRecordingTransferErrorSpec as Q, countWaitingRequests as Qa, listFileExtractions as Qc, forgotPassword as Qd, getPopularOAuthApps as Qf, PreviewPaymentChangePlanErrorSpec as Qi, HistoryFileFromRssDeletedEventSchema as Ql, makeResponseError as Qm, getSharedWith as Qn, FileExtractionsError as Qo, listAccountConfirmations as Qp, PodcastLinksSchema as Qr, FilesSearchQuerySchema as Qs, emptyTrash as Qt, ForgotPasswordError as Qu, AddTransferTrackersErrorSpec as R, ListFriendsErrorSpec as Ra, findNextFile as Rc, TwoFactorRecoveryCodesSchema as Rd, OwnedOAuthAppSchema as Rf, PaymentOptionPlanTypeSchema as Ri, listFamilyInvites as Rl, PutioRateLimitError as Rm, SharingCloneInputSchema as Rn, FileBreadcrumbSchema as Ro, AccountSubtitleLanguageSchema as Rp, getRssFeed as Rr, FileUploadRequestDescriptor as Rs, EmptyTrashError as Rt, PutioJsonValue as Ru, ZipStatusSchema as S, reportPayments as Sa, buildFileXspfPlaylistUrl as Sc, RecoveryCodesErrorSpec as Sd, GetOAuthAppError as Sf, ListPaymentPlansErrorSpec as Si, CreateFamilyInviteErrorSpec as Sl, requestText as Sm, ListSharedFilesErrorSpec as Sn, ContinueFilesErrorSpec as So, AccountConfirmation as Sp, RetryAllRssFeedItemsErrorSpec as Sr, FileSetSortInputSchema as Ss, cancelTransfers as St, DownloadLinksCreateInput as Su, createZip as T, ApproveFriendRequestError as Ta, continueSearch as Tc, RegisterError as Td, MyOAuthAppSchema as Tf, PaymentChangePlanPreviewSchema as Ti, FamilyInvitesResponse as Tl, selectJsonFields as Tm, PublicShareListQuerySchema as Tn, CreateFolderError as To, AccountConfirmationsErrorSpec as Tp, RssFeed as Tr, FileStartFromSetInput as Ts, countTransfers as Tt, DownloadLinksInfoSchema as Tu, ListTransfersError as U, RemoveFriendError as Ua, getDownloadUrl as Uc, VerifyTOTPResponse as Ud, RegenerateOAuthAppTokenError as Uf, PaymentPlanTypeSchema as Ui, DeleteEventError as Ul, PutioValidationError as Um, SharingUnshareInputSchema as Un, FileCopyInput as Uo, PasInfoSchema as Up, retryAllRssFeedItems as Ur, FileWatchStatusErrorSpec as Us, RestoreTrashErrorSpec as Ut, readConfigWith as Uu, GetTransferTorrentError as V, ListWaitingRequestsError as Va, getApiDownloadUrl as Vc, VerifyTOTPError as Vd, QueryOAuthAppsError as Vf, PaymentPlanGroup as Vi, ClearEventsError as Vl, PutioTypedErrorEnvelope as Vm, SharingShareInputSchema as Vn, FileConversionStatus as Vo, AccountWarningsSchema as Vp, pauseRssFeed as Vr, FileVideoMetadata as Vs, ListTrashErrorSpec as Vt, getConfigKeyWith as Vu, ListTransfersErrorSpec as W, RemoveFriendErrorSpec as Wa, getFile as Wc, VerifyTOTPResponseSchema as Wd, RegenerateOAuthAppTokenErrorSpec as Wf, PaymentProvider as Wi, DeleteEventErrorSpec as Wl, decodePutioErrorEnvelope as Wm, UnshareFileError as Wn, FileCopyInputSchema as Wo, SaveAccountSettingsError as Wp, retryRssFeedItem as Wr, FileXspfPlaylistUrlOptions as Ws, TrashBulkInput as Wt, setConfigKey as Wu, RetryTransferErrorSpec as X, UserSearchResultSchema as Xa, getXspfPlaylistUrl as Xc, exchangeOAuthAuthorizationCode as Xd, deleteOAuthApp as Xf, PaymentVoucherInfoSchema as Xi, HistoryEvent as Xl, isPutioOperationError as Xm, getPublicShare as Xn, FileExtractionStatus as Xo, getAccountInfo as Xp, PodcastLinks as Xr, FilesMoveErrorSchema as Xs, continueTrash as Xt, FamilyInviteLookupError as Xu, RetryTransferError as Y, UserSearchResult as Ya, getStartFrom as Yc, clients as Yd, createOAuthApp as Yf, PaymentVoucherInfo as Yi, GetEventTorrentErrorSpec as Yl, isPutioErrorEnvelope as Ym, deletePublicShare as Yn, FileExtractionSchema as Yo, destroyAccount as Yp, PodcastLinkTypeSchema as Yr, FilesMoveError as Ys, TrashListResponse as Yt, ClientsErrorSpec as Yu, StopRecordingTransferError as Z, approveFriendRequest as Za, listActiveMp4Conversions as Zc, exists as Zd, getOAuthApp as Zf, PreviewPaymentChangePlanError as Zi, HistoryEventSchema as Zl, isPutioRateLimitError as Zm, getPublicShareFileUrl as Zn, FileExtractionStatusSchema as Zo, getAccountSettings as Zp, PodcastLinksResponse as Zr, FilesSearchQuery as Zs, deleteTrash as Zt, FamilyInviteLookupErrorSpec as Zu, GetZipErrorSpec as _, listPaymentInvites as _a, TouchFilesErrorSpec as _c, OAuthAuthorizationCodeExchangeError as _d, verifyTOTP as _f, ListPaymentInvitesError as _i, SendIftttEventError as _l, makePutioSdkConfig as _m, ListPublicShareFilesError as _n, createFriendInvite as _o, deleteAllAppSpecificPasswords as _p, PauseRssFeedError as _r, FileQuerySchema as _s, TransfersListQuerySchema as _t, deleteEvent as _u, PutioSdkEffectClient as a, SubmitPaymentChangePlanError as aa, GetHlsMasterPlaylistError as ac, GenerateTOTPResponseSchema as ad, getVoucher as af, CreatePaddleBillingUpdatePaymentMethodTransactionError as ai, resetFileSortSettings as al, PutioHttpRequest as am, CreateSharingCloneError as an, searchFriends as ao, CreateAppSpecificPasswordError as ap, ClearRssFeedLogsError as ar, FileListResponse as as, TransferInfoItem as at, HistoryTransferCallbackErrorEventSchema as au, ZipCreateResponse as b, previewPaymentChangePlan as ba, buildFileApiMp4DownloadUrl as bc, OAuthAuthorizationCodeExchangeInputSchema as bd, DeleteOAuthAppError as bf, ListPaymentOptionsErrorSpec as bi, sendIftttEvent as bl, requestArrayBuffer as bm, ListPublicSharesErrorSpec as bn, CanWriteFileErrorSpec as bo, AccountClearOptions as bp, ResumeRssFeedErrorSpec as br, FileSearchResponse as bs, addTransfer as bt, CreateDownloadLinksError as bu, createPutioSdkPromiseClient as c, classifyPaymentChangePlanResponse as ca, QueryFilesErrorSpec as cc, GrantsError as cd, login as cf, CreatePaddleWaitingPaymentErrorSpec as ci, setFileSort as cl, PutioQuery as cm, DeletePublicShareErrorSpec as cn, CreateFriendInviteErrorSpec as co, CreateAppSpecificPasswordInputSchema as cp, CreateRssFeedErrorSpec as cr, FileMediaInfoSchema as cs, TransferRemoveInputSchema as ct, HistoryTransferErrorEventSchema as cu, CancelZipError as d, createPaddleBillingUpdatePaymentMethodTransaction as da, SHARED_WITH_YOU_ROOT_ID as dc, LinkDeviceErrorSpec as dd, register as df, GetPaymentInfoError as di, touchFiles as dl, PutioSdkConfigShape as dm, GetPublicShareFileUrlError as dn, FriendInviteJoinedUserSchema as do, DeleteAllAppSpecificPasswordsErrorSpec as dp, GetRssFeedError as dr, FileMediaMetadataSchema as ds, TransferStatusSchema as dt, HistoryVoucherEventSchema as du, RedeemPaymentVoucherErrorSpec as ea, FolderTypeSchema as ec, FriendInviteLookupError as ed, getCode as ef, mapDecodeErrorToValidationError as eh, ClassifiedPaymentChangePlanSubmitResponse as ei, moveFileSelection as el, saveAccountSettings as em, restoreTrash as en, getFriendSharedFolder as eo, regenerateOAuthAppToken as ep, listPublicShareFiles as er, FileGetChildInput as es, TransferAddInput as et, HistoryFileSharedEventSchema as eu, CancelZipErrorSpec as f, createPaddleWaitingPayment as fa, SearchFilesError as fc, LoginError as fd, resetPassword as ff, GetPaymentInfoErrorSpec as fi, uploadFile as fl, PutioSdkContext as fm, GetPublicShareFileUrlErrorSpec as fn, FriendInviteJoinedUserStatus as fo, DeleteAppSpecificPasswordError as fp, GetRssFeedErrorSpec as fr, FileMp4Error as fs, TransferType as ft, HistoryZipCreatedEvent as fu, GetZipError as g, listPaymentHistory as ga, TouchFilesError as gc, LoginResponseSchema as gd, validateToken as gf, ListPaymentHistoryErrorSpec as gi, IftttEventType as gl, makePutioFetchLayer as gm, GetSharingCloneInfoErrorSpec as gn, ListFriendInvitesErrorSpec as go, createAppSpecificPassword as gp, ListRssFeedsErrorSpec as gr, FileQuery as gs, TransfersListQuery as gt, clearEvents as gu, CreateZipInput as h, getPaymentVoucherInfo as ha, StartFromErrorSpec as hc, LoginResponse as hd, revokeClient as hf, ListPaymentHistoryError as hi, IftttEventInput as hl, makePutioFetchClient as hm, GetSharingCloneInfoError as hn, ListFriendInvitesError as ho, ListAppSpecificPasswordsErrorSpec as hp, ListRssFeedsError as hr, FileMp4MutationErrorSpec as hs, TransfersContinueResponse as ht, ListEventsErrorSpec as hu, PutioSdk as i, StopSubscriptionErrorSpec as ia, GetFileErrorSpec as ic, GenerateTOTPResponse as id, getRecoveryCodes as if, withOperationErrors as ih, CreateOpenNodeChargeErrorSpec as ii, renameFile as il, PutioHttpClientShape as im, CreatePublicShareErrorSpec as in, removeFriend as io, AppSpecificPasswordSchema as ip, unshareFile as ir, FileListContinuationResponse as is, TransferBaseSchema as it, HistoryRssFilterPausedEventSchema as iu, TunnelRouteSchema as j, Friend as ja, createFileUploadRequest as jc, RevokeAllOAuthClientsError as jd, OAuthAppSessionSchema as jf, PaymentHistoryQuery as ji, ListFamilyInvitesErrorSpec as jl, PutioErrorEnvelopeSchema as jm, SharedFileShare as jn, FileActiveConversionsError as jo, AccountInfoBroadSchema as jp, RssFeedParamsSchema as jr, FileTouchInputSchema as js, removeTransfers as jt, GetDownloadLinksErrorSpec as ju, ListTunnelRoutesErrorSpec as k, DenyFriendRequestError as ka, copyFile as kc, ResetPasswordError as kd, OAuthAppSchema as kf, PaymentHistoryItem as ki, JoinFamilyErrorSpec as kl, PutioConfigurationError as km, SharedFile as kn, FileActiveConversion as ko, AccountInfoBaseSchema as kp, RssFeedItemSucceededSchema as kr, FileSubtitlesErrorSpec as ks, listTransfers as kt, DownloadLinksStatusSchema as ku, makePutioSdkEffectClientLayer as l, confirmFastspringOrder as la, RenameFileError as lc, GrantsErrorSpec as ld, logout as lf, GetPaddleBillingInvoiceUrlError as li, setFilesWatchStatus as ll, PutioQueryValue as lm, GetPublicShareError as ln, FriendInvite as lo, CreateAppSpecificPasswordResult as lp, DeleteRssFeedError as lr, FileMediaInfoStreamSchema as ls, TransferSchema as lt, HistoryTransferFromRssErrorEventSchema as lu, CreateZipErrorSpec as m, getPaymentInfo as ma, StartFromError as mc, LoginInput as md, revokeApp as mf, GetPaymentVoucherInfoErrorSpec as mi, GetIftttStatusErrorSpec as ml, encodePathSegment as mm, GetSharedWithErrorSpec as mn, FriendInviteSchema as mo, ListAppSpecificPasswordsError as mp, ListRssFeedItemsErrorSpec as mr, FileMp4MutationError as ms, TransfersAddMultiError as mt, ListEventsError as mu, DEFAULT_PUTIO_UPLOAD_BASE_URL as n, ReportPaymentsErrorSpec as na, GetFileChildErrorSpec as nc, GenerateTOTPError as nd, getFriendInvite as nf, parseErrorBody as nh, ConfirmFastspringOrderErrorSpec as ni, putMp4ToMyFiles as nl, PutioAuth as nm, ContinuePublicShareFilesErrorSpec as nn, listSentRequests as no, updateOAuthApp as np, listSharedFiles as nr, FileHlsMasterPlaylistOptions as ns, TransferAddTrackersInput as nt, HistoryKnownEventTypeSchema as nu, PutioSdkPromiseClient as o, SubmitPaymentChangePlanErrorSpec as oa, GetHlsMasterPlaylistErrorSpec as oc, GiftCardLookupError as od, grants as of, CreatePaddleBillingUpdatePaymentMethodTransactionErrorSpec as oi, resetStartFrom as ol, PutioHttpResponse as om, CreateSharingCloneErrorSpec as on, sendFriendRequest as oo, CreateAppSpecificPasswordErrorSpec as op, ClearRssFeedLogsErrorSpec as or, FileMediaInfo as os, TransferLink as ot, HistoryTransferCompletedEvent as ou, CreateZipError as p, getPaddleBillingInvoiceUrl as pa, SearchFilesErrorSpec as pc, LoginErrorSpec as pd, revokeAllClients as pf, GetPaymentVoucherInfoError as pi, GetIftttStatusError as pl, buildPutioUrl as pm, GetSharedWithError as pn, FriendInviteJoinedUserStatusSchema as po, DeleteAppSpecificPasswordErrorSpec as pp, ListRssFeedItemsError as pr, FileMp4ErrorSpec as ps, TransferTypeSchema as pt, HistoryZipCreatedEventSchema as pu, RemoveTransfersError as q, SendFriendRequestError as qa, getHlsStreamUrl as qc, buildAuthLoginUrl as qd, buildOAuthAppIconUrl as qf, PaymentSubscriptionInfoSchema as qi, EventsListResponse as ql, isPutioApiError as qm, continuePublicShareFiles as qn, FileDirectAccessOptions as qo, SaveAccountSettingsPayloadSchema as qp, PodcastGetLinksInputSchema as qr, FilesListQuery as qs, TrashFileSchema as qt, AuthorizationCodeSchema as qu, DEFAULT_PUTIO_WEB_APP_URL as r, StopSubscriptionError as ra, GetFileError as rc, GenerateTOTPErrorSpec as rd, getGiftCard as rf, responseRateLimitHeaders as rh, CreateOpenNodeChargeError as ri, queryFiles as rl, PutioHttpClient as rm, CreatePublicShareError as rn, listWaitingRequests as ro, AppSpecificPassword as rp, shareFiles as rr, FileHlsStreamUrlOptions as rs, TransferAddTrackersInputSchema as rt, HistoryPrivateTorrentPinEventSchema as ru, createPutioSdkEffectClient as s, UserSubscriptionStatusSchema as sa, QueryFilesError as sc, GiftCardLookupErrorSpec as sd, linkDevice as sf, CreatePaddleWaitingPaymentError as si, searchFiles as sl, PutioPathSegment as sm, DeletePublicShareError as sn, CreateFriendInviteError as so, CreateAppSpecificPasswordInput as sp, CreateRssFeedError as sr, FileMediaInfoFormatSchema as ss, TransferRemoveInput as st, HistoryTransferCompletedEventSchema as su, DEFAULT_PUTIO_API_BASE_URL as t, ReportPaymentsError as ta, GetFileChildError as tc, FriendInviteLookupErrorSpec as td, getFamilyInvite as tf, mapTransportError as th, ConfirmFastspringOrderError as ti, moveFiles as tl, OkResponseSchema as tm, ContinuePublicShareFilesError as tn, listFriends as to, setOAuthAppIcon as tp, listPublicShares as tr, FileGetChildInputSchema as ts, TransferAddInputSchema as tt, HistoryKnownEventType as tu, makePutioSdkLiveClientLayer as u, createOpenNodeCharge as ua, RenameFileErrorSpec as uc, LinkDeviceError as ud, regenerateRecoveryCodes as uf, GetPaddleBillingInvoiceUrlErrorSpec as ui, setStartFrom as ul, PutioSdkConfig as um, GetPublicShareErrorSpec as un, FriendInviteJoinedUser as uo, DeleteAllAppSpecificPasswordsError as up, DeleteRssFeedErrorSpec as ur, FileMediaMetadata as us, TransferStatus as ut, HistoryUploadEventSchema as uu, ListZipsError as v, listPaymentOptions as va, buildFileApiContentUrl as vc, OAuthAuthorizationCodeExchangeErrorCodeSchema as vd, CreateOAuthAppError as vf, ListPaymentInvitesErrorSpec as vi, SendIftttEventErrorSpec as vl, makePutioSdkLayer as vm, ListPublicShareFilesErrorSpec as vn, listFriendInvites as vo, deleteAppSpecificPassword as vp, PauseRssFeedErrorSpec as vr, FileRenameInput as vs, TransfersListResponse as vt, getEventTorrent as vu, cancelZip as w, submitPaymentChangePlan as wa, continueFiles as wc, RegenerateRecoveryCodesErrorSpec as wd, MyOAuthApp as wf, PaymentChangePlanPreviewInput as wi, FamilyInviteSchema as wl, selectJsonField as wm, PublicShareListQuery as wn, CopyFileErrorSpec as wo, AccountConfirmationsError as wp, RetryRssFeedItemErrorSpec as wr, FileSortSchema as ws, continueTransfers as wt, DownloadLinksInfo as wu, ZipInfo as x, redeemPaymentVoucher as xa, buildFileHlsStreamUrl as xc, RecoveryCodesError as xd, DeleteOAuthAppErrorSpec as xf, ListPaymentPlansError as xi, CreateFamilyInviteError as xl, requestJson as xm, ListSharedFilesError as xn, ContinueFilesError as xo, AccountClearOptionsSchema as xp, RetryAllRssFeedItemsError as xr, FileSetSortInput as xs, addTransferTrackers as xt, CreateDownloadLinksErrorSpec as xu, ListZipsErrorSpec as y, listPaymentPlans as ya, buildFileApiDownloadUrl as yc, OAuthAuthorizationCodeExchangeInput as yd, CreateOAuthAppErrorSpec as yf, ListPaymentOptionsError as yi, getIftttStatus as yl, makePutioSdkLiveLayer as ym, ListPublicSharesError as yn, CanWriteFileError as yo, listAppSpecificPasswords as yp, ResumeRssFeedError as yr, FileResponseFor as ys, addManyTransfers as yt, listEvents as yu, GetTransferError as z, ListSentRequestsError as za, findNextVideo as zc, ValidateTokenResponse as zd, PopularOAuthApp as zf, PaymentOptionSchema as zi, listFamilyMembers as zl, PutioSdkError as zm, SharingCloneStatusSchema as zn, FileBroad as zo, AccountTwoFactorSettingsSchema as zp, listRssFeedItems as zr, FileUploadResult as zs, EmptyTrashErrorSpec as zt, deleteConfigKey as zu };
9832
- //# sourceMappingURL=index-RtmdAkA_.d.ts.map
9835
+ //# sourceMappingURL=index-B-hfGAMs.d.ts.map
package/dist/index.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { $ as Transfer, $a as denyFriendRequest, $c as listFileSubtitles, $d as generateTOTP, $f as queryOAuthApps, $i as RedeemPaymentVoucherError, $l as HistoryFileSharedEvent, $m as mapConfigurationError, $n as getSharingCloneInfo, $o as FileExtractionsErrorSpec, $p as listAccountSubtitleLanguages, $r as getPodcastLinks, $s as FolderType, $t as listTrash, $u as ForgotPasswordErrorSpec, A as TunnelRoute, Aa as DenyFriendRequestErrorSpec, Ac as createFileUploadFormData, Ad as ResetPasswordErrorSpec, Af as OAuthAppSession, Ai as PaymentHistoryItemSchema, Al as ListFamilyInvitesError, Am as PutioErrorEnvelope, An as SharedFileSchema, Ao as FileActiveConversionSchema, Ap as AccountInfoBroad, Ar as RssFeedParams, As as FileTouchInput, At as reannounceTransfer, Au as GetDownloadLinksError, B as GetTransferErrorSpec, Ba as ListSentRequestsErrorSpec, Bc as getApiContentUrl, Bd as ValidateTokenResponseSchema, Bf as PopularOAuthAppSchema, Bi as PaymentPaddleWaitingPaymentInput, Bl as removeFamilyMember, Bm as PutioTransportError, Bn as SharingShareInput, Bo as FileBroadSchema, Bp as AccountWarnings, Br as listRssFeeds, Bs as FileUploadTransfer, Bt as ListTrashError, Bu as getConfigKey, C as ZipSummary, Ca as stopPaymentSubscription, Cc as canWriteFile, Cd as RegenerateRecoveryCodesError, Cf as GetOAuthAppErrorSpec, Ci as PaymentChangePlanPreview, Cl as FamilyInvite, Cm as requestVoid, Cn as PublicShare, Co as CopyFileError, Cp as AccountConfirmationSchema, Cr as RetryRssFeedItemError, Cs as FileSort, Ct as cleanTransfers, Cu as DownloadLinksCreateInputSchema, D as listZips, Da as CountWaitingRequestsError, Dc as convertFileToMp4, Dd as RegisterInput, Df as OAuthAppCreateInput, Di as PaymentChangePlanSubmitResponse, Dl as FamilyMemberSchema, Dm as PutioApiError, Dn as ShareFilesError, Do as DownloadUrlError, Dp as AccountDiskSchema, Dr as RssFeedItemFailedSchema, Ds as FileSubtitleSchema, Dt as getTransferInfo, Du as DownloadLinksPayloadSchema, E as getZip, Ea as ApproveFriendRequestErrorSpec, Ec as convertFileSelectionToMp4, Ed as RegisterErrorSpec, Ef as OAuthApp, Ei as PaymentChangePlanSubmitInput, El as FamilyMember, Em as AnyPutioOperationError, En as PublicShareSchema, Eo as CreateFolderErrorSpec, Ep as AccountDisk, Er as RssFeedItem, Es as FileSubtitle, Et as getTransfer, Eu as DownloadLinksPayload, F as AddTransferError, Fa as FriendSharedFolderError, Fc as deleteFileSelection, Fd as RevokeOAuthGrantError, Ff as OAuthSetIconInput, Fi as PaymentInvite, Fl as RemoveFamilyMemberErrorSpec, Fm as PutioOperationErrorFromSpec, Fn as SharingCloneInfo, Fo as FileBase, Fp as AccountSettings, Fr as clearRssFeedLogs, Fs as FileUploadError, Ft as ContinueTrashErrorSpec, Fu as JsonValueSchema, G as ReannounceTransferError, Ga as SearchFriendsError, Gc as getFileChild, Gd as VoucherLookupError, Gf as UpdateOAuthAppError, Gi as PaymentProviderNameSchema, Gl as EventsListQuery, Gm as definePutioOperationErrorSpec, Gn as UnshareFileErrorSpec, Go as FileCore, Gp as SaveAccountSettingsErrorSpec, Gr as updateRssFeed, Gs as FilesBulkSelection, Gt as TrashContinueResponse, Gu as writeConfig, H as GetTransferTorrentErrorSpec, Ha as ListWaitingRequestsErrorSpec, Hc as getApiMp4DownloadUrl, Hd as VerifyTOTPErrorSpec, Hf as QueryOAuthAppsErrorSpec, Hi as PaymentPlanGroupSchema, Hl as ClearEventsErrorSpec, Hm as PutioUnhandledSdkError, Hn as SharingUnshareInput, Ho as FileConversionStatusSchema, Hp as PasInfo, Hr as resumeRssFeed, Hs as FileWatchStatusError, Ht as RestoreTrashError, Hu as readConfig, I as AddTransferErrorSpec, Ia as FriendSharedFolderErrorSpec, Ic as deleteFiles, Id as RevokeOAuthGrantErrorSpec, If as OAuthSetIconInputSchema, Ii as PaymentInviteSchema, Il as createFamilyInvite, Im as PutioOperationErrorSpec, In as SharingCloneInfoSchema, Io as FileBaseSchema, Ip as AccountSettingsSchema, Ir as createRssFeed, Is as FileUploadErrorSpec, It as DeleteTrashError, Iu as PutioJsonObject, J as RemoveTransfersErrorSpec, Ja as SendFriendRequestErrorSpec, Jc as getMp4Status, Jd as checkCodeMatch, Jf as buildOAuthAuthorizeUrl, Ji as PaymentTypeSchema, Jl as GetEventTorrentError, Jm as isPutioAuthError, Jn as createPublicShare, Jo as FileExtraction, Jp as clearAccount, Jr as PodcastLinkType, Js as FilesListQuerySchema, Jt as TrashListQuery, Ju as ClientsError, K as ReannounceTransferErrorSpec, Ka as SearchFriendsErrorSpec, Kc as getHlsMasterPlaylist, Kd as VoucherLookupErrorSpec, Kf as UpdateOAuthAppErrorSpec, Ki as PaymentProviderSchema, Kl as EventsListQuerySchema, Km as fallbackPutioErrorEnvelope, Kn as cloneSharedFiles, Ko as FileCreateFolderInput, Kp as SaveAccountSettingsPayload, Kr as PodcastGetLinksInput, Ks as FilesListEnvelopeSchema, Kt as TrashFile, Ku as AuthGetCodeInput, L as AddTransferTrackersError, La as ListFriendsError, Lc as extractFiles, Ld as TwoFactorRecoveryCodes, Lf as OwnedOAuthApp, Li as PaymentOption, Ll as joinFamily, Lm as PutioOperationFailure, Ln as SharingCloneInput, Lo as FileBreadcrumb, Lp as AccountSubtitleLanguage, Lr as deleteRssFeed, Ls as FileUploadInput, Lt as DeleteTrashErrorSpec, Lu as PutioJsonPrimitive, M as listTunnelRoutes, Ma as FriendBase, Mc as createFolder, Md as RevokeAllOAuthClientsErrorSpec, Mf as OAuthAppUpdateInput, Mi as PaymentInfo, Ml as ListFamilyMembersError, Mm as PutioKnownErrorContract, Mn as SharedFileShareSchema, Mo as FileActiveConversionsErrorSpec, Mp as AccountInfoQuery, Mr as RssFeedSchema, Ms as FileType, Mt as retryTransfer, Mu as createDownloadLinks, N as AddManyTransfersError, Na as FriendBaseSchema, Nc as deleteFileExtraction, Nd as RevokeOAuthClientError, Nf as OAuthAppUpdateInputSchema, Ni as PaymentInfoPlanSchema, Nl as ListFamilyMembersErrorSpec, Nm as PutioKnownOperationErrorContract, Nn as SharedFileSharedWith, No as FileApiDownloadUrlOptions, Np as AccountInfoQuerySchema, Nr as UpdateRssFeedError, Ns as FileTypeSchema, Nt as stopTransferRecording, Nu as getDownloadLinks, O as ListTunnelRoutesError, Oa as CountWaitingRequestsErrorSpec, Oc as convertFilesToMp4, Od as RegisterInputSchema, Of as OAuthAppCreateInputSchema, Oi as PaymentChangePlanSubmitSchema, Ol as JoinFamilyError, Om as PutioAuthError, On as ShareFilesErrorSpec, Oo as DownloadUrlErrorSpec, Op as AccountInfoBase, Or as RssFeedItemSchema, Os as FileSubtitlesError, Ot as getTransferTorrent, Ou as DownloadLinksStatus, P as AddManyTransfersErrorSpec, Pa as FriendSchema, Pc as deleteFileMp4, Pd as RevokeOAuthClientErrorSpec, Pf as OAuthAppWithTokenSchema, Pi as PaymentInfoSchema, Pl as RemoveFamilyMemberError, Pm as PutioOperationError, Pn as SharedFileSharedWithSchema, Po as FileApiMp4DownloadUrlOptions, Pp as AccountInfoResponseFor, Pr as UpdateRssFeedErrorSpec, Ps as FileUploadEnvelope, Pt as ContinueTrashError, Pu as JsonObjectSchema, Q as StopRecordingTransferErrorSpec, Qa as countWaitingRequests, Qc as listFileExtractions, Qd as forgotPassword, Qf as getPopularOAuthApps, Qi as PreviewPaymentChangePlanErrorSpec, Ql as HistoryFileFromRssDeletedEventSchema, Qm as makeResponseError, Qn as getSharedWith, Qo as FileExtractionsError, Qp as listAccountConfirmations, Qr as PodcastLinksSchema, Qs as FilesSearchQuerySchema, Qt as emptyTrash, Qu as ForgotPasswordError, R as AddTransferTrackersErrorSpec, Ra as ListFriendsErrorSpec, Rc as findNextFile, Rd as TwoFactorRecoveryCodesSchema, Rf as OwnedOAuthAppSchema, Ri as PaymentOptionPlanTypeSchema, Rl as listFamilyInvites, Rm as PutioRateLimitError, Rn as SharingCloneInputSchema, Ro as FileBreadcrumbSchema, Rp as AccountSubtitleLanguageSchema, Rr as getRssFeed, Rs as FileUploadRequestDescriptor, Rt as EmptyTrashError, Ru as PutioJsonValue, S as ZipStatusSchema, Sa as reportPayments, Sc as buildFileXspfPlaylistUrl, Sd as RecoveryCodesErrorSpec, Sf as GetOAuthAppError, Si as ListPaymentPlansErrorSpec, Sl as CreateFamilyInviteErrorSpec, Sm as requestText, Sn as ListSharedFilesErrorSpec, So as ContinueFilesErrorSpec, Sp as AccountConfirmation, Sr as RetryAllRssFeedItemsErrorSpec, Ss as FileSetSortInputSchema, St as cancelTransfers, Su as DownloadLinksCreateInput, T as createZip, Ta as ApproveFriendRequestError, Tc as continueSearch, Td as RegisterError, Tf as MyOAuthAppSchema, Ti as PaymentChangePlanPreviewSchema, Tl as FamilyInvitesResponse, Tm as selectJsonFields, Tn as PublicShareListQuerySchema, To as CreateFolderError, Tp as AccountConfirmationsErrorSpec, Tr as RssFeed, Ts as FileStartFromSetInput, Tt as countTransfers, Tu as DownloadLinksInfoSchema, U as ListTransfersError, Ua as RemoveFriendError, Uc as getDownloadUrl, Ud as VerifyTOTPResponse, Uf as RegenerateOAuthAppTokenError, Ui as PaymentPlanTypeSchema, Ul as DeleteEventError, Um as PutioValidationError, Un as SharingUnshareInputSchema, Uo as FileCopyInput, Up as PasInfoSchema, Ur as retryAllRssFeedItems, Us as FileWatchStatusErrorSpec, Ut as RestoreTrashErrorSpec, Uu as readConfigWith, V as GetTransferTorrentError, Va as ListWaitingRequestsError, Vc as getApiDownloadUrl, Vd as VerifyTOTPError, Vf as QueryOAuthAppsError, Vi as PaymentPlanGroup, Vl as ClearEventsError, Vm as PutioTypedErrorEnvelope, Vn as SharingShareInputSchema, Vo as FileConversionStatus, Vp as AccountWarningsSchema, Vr as pauseRssFeed, Vs as FileVideoMetadata, Vt as ListTrashErrorSpec, Vu as getConfigKeyWith, W as ListTransfersErrorSpec, Wa as RemoveFriendErrorSpec, Wc as getFile, Wd as VerifyTOTPResponseSchema, Wf as RegenerateOAuthAppTokenErrorSpec, Wi as PaymentProvider, Wl as DeleteEventErrorSpec, Wm as decodePutioErrorEnvelope, Wn as UnshareFileError, Wo as FileCopyInputSchema, Wp as SaveAccountSettingsError, Wr as retryRssFeedItem, Ws as FileXspfPlaylistUrlOptions, Wt as TrashBulkInput, Wu as setConfigKey, X as RetryTransferErrorSpec, Xa as UserSearchResultSchema, Xc as getXspfPlaylistUrl, Xd as exchangeOAuthAuthorizationCode, Xf as deleteOAuthApp, Xi as PaymentVoucherInfoSchema, Xl as HistoryEvent, Xm as isPutioOperationError, Xn as getPublicShare, Xo as FileExtractionStatus, Xp as getAccountInfo, Xr as PodcastLinks, Xs as FilesMoveErrorSchema, Xt as continueTrash, Xu as FamilyInviteLookupError, Y as RetryTransferError, Ya as UserSearchResult, Yc as getStartFrom, Yd as clients, Yf as createOAuthApp, Yi as PaymentVoucherInfo, Yl as GetEventTorrentErrorSpec, Ym as isPutioErrorEnvelope, Yn as deletePublicShare, Yo as FileExtractionSchema, Yp as destroyAccount, Yr as PodcastLinkTypeSchema, Ys as FilesMoveError, Yt as TrashListResponse, Yu as ClientsErrorSpec, Z as StopRecordingTransferError, Za as approveFriendRequest, Zc as listActiveMp4Conversions, Zd as exists, Zf as getOAuthApp, Zi as PreviewPaymentChangePlanError, Zl as HistoryEventSchema, Zm as isPutioRateLimitError, Zn as getPublicShareFileUrl, Zo as FileExtractionStatusSchema, Zp as getAccountSettings, Zr as PodcastLinksResponse, Zs as FilesSearchQuery, Zt as deleteTrash, Zu as FamilyInviteLookupErrorSpec, _ as GetZipErrorSpec, _a as listPaymentInvites, _c as TouchFilesErrorSpec, _d as OAuthAuthorizationCodeExchangeError, _f as verifyTOTP, _i as ListPaymentInvitesError, _l as SendIftttEventError, _m as makePutioSdkConfig, _n as ListPublicShareFilesError, _o as createFriendInvite, _p as deleteAllAppSpecificPasswords, _r as PauseRssFeedError, _s as FileQuerySchema, _t as TransfersListQuerySchema, _u as deleteEvent, a as PutioSdkEffectClient, aa as SubmitPaymentChangePlanError, ac as GetHlsMasterPlaylistError, ad as GenerateTOTPResponseSchema, af as getVoucher, ai as CreatePaddleBillingUpdatePaymentMethodTransactionError, al as resetFileSortSettings, am as PutioHttpRequest, an as CreateSharingCloneError, ao as searchFriends, ap as CreateAppSpecificPasswordError, ar as ClearRssFeedLogsError, as as FileListResponse, at as TransferInfoItem, au as HistoryTransferCallbackErrorEventSchema, b as ZipCreateResponse, ba as previewPaymentChangePlan, bc as buildFileApiMp4DownloadUrl, bd as OAuthAuthorizationCodeExchangeInputSchema, bf as DeleteOAuthAppError, bi as ListPaymentOptionsErrorSpec, bl as sendIftttEvent, bm as requestArrayBuffer, bn as ListPublicSharesErrorSpec, bo as CanWriteFileErrorSpec, bp as AccountClearOptions, br as ResumeRssFeedErrorSpec, bs as FileSearchResponse, bt as addTransfer, bu as CreateDownloadLinksError, c as createPutioSdkPromiseClient, ca as classifyPaymentChangePlanResponse, cc as QueryFilesErrorSpec, cd as GrantsError, cf as login, ci as CreatePaddleWaitingPaymentErrorSpec, cl as setFileSort, cm as PutioQuery, cn as DeletePublicShareErrorSpec, co as CreateFriendInviteErrorSpec, cp as CreateAppSpecificPasswordInputSchema, cr as CreateRssFeedErrorSpec, cs as FileMediaInfoSchema, ct as TransferRemoveInputSchema, cu as HistoryTransferErrorEventSchema, d as CancelZipError, da as createPaddleBillingUpdatePaymentMethodTransaction, dc as SHARED_WITH_YOU_ROOT_ID, dd as LinkDeviceErrorSpec, df as register, di as GetPaymentInfoError, dl as touchFiles, dm as PutioSdkConfigShape, dn as GetPublicShareFileUrlError, do as FriendInviteJoinedUserSchema, dp as DeleteAllAppSpecificPasswordsErrorSpec, dr as GetRssFeedError, ds as FileMediaMetadataSchema, dt as TransferStatusSchema, du as HistoryVoucherEventSchema, ea as RedeemPaymentVoucherErrorSpec, ec as FolderTypeSchema, ed as FriendInviteLookupError, ef as getCode, eh as mapDecodeErrorToValidationError, ei as ClassifiedPaymentChangePlanSubmitResponse, el as moveFileSelection, em as saveAccountSettings, en as restoreTrash, eo as getFriendSharedFolder, ep as regenerateOAuthAppToken, er as listPublicShareFiles, es as FileGetChildInput, et as TransferAddInput, eu as HistoryFileSharedEventSchema, f as CancelZipErrorSpec, fa as createPaddleWaitingPayment, fc as SearchFilesError, fd as LoginError, ff as resetPassword, fi as GetPaymentInfoErrorSpec, fl as uploadFile, fm as PutioSdkContext, fn as GetPublicShareFileUrlErrorSpec, fo as FriendInviteJoinedUserStatus, fp as DeleteAppSpecificPasswordError, fr as GetRssFeedErrorSpec, fs as FileMp4Error, ft as TransferType, fu as HistoryZipCreatedEvent, g as GetZipError, ga as listPaymentHistory, gc as TouchFilesError, gd as LoginResponseSchema, gf as validateToken, gi as ListPaymentHistoryErrorSpec, gl as IftttEventType, gm as makePutioFetchLayer, gn as GetSharingCloneInfoErrorSpec, go as ListFriendInvitesErrorSpec, gp as createAppSpecificPassword, gr as ListRssFeedsErrorSpec, gs as FileQuery, gt as TransfersListQuery, gu as clearEvents, h as CreateZipInput, ha as getPaymentVoucherInfo, hc as StartFromErrorSpec, hd as LoginResponse, hf as revokeClient, hi as ListPaymentHistoryError, hl as IftttEventInput, hm as makePutioFetchClient, hn as GetSharingCloneInfoError, ho as ListFriendInvitesError, hp as ListAppSpecificPasswordsErrorSpec, hr as ListRssFeedsError, hs as FileMp4MutationErrorSpec, ht as TransfersContinueResponse, hu as ListEventsErrorSpec, i as PutioSdk, ia as StopSubscriptionErrorSpec, ic as GetFileErrorSpec, id as GenerateTOTPResponse, if as getRecoveryCodes, ih as withOperationErrors, ii as CreateOpenNodeChargeErrorSpec, il as renameFile, im as PutioHttpClientShape, in as CreatePublicShareErrorSpec, io as removeFriend, ip as AppSpecificPasswordSchema, ir as unshareFile, is as FileListContinuationResponse, it as TransferBaseSchema, iu as HistoryRssFilterPausedEventSchema, j as TunnelRouteSchema, ja as Friend, jc as createFileUploadRequest, jd as RevokeAllOAuthClientsError, jf as OAuthAppSessionSchema, ji as PaymentHistoryQuery, jl as ListFamilyInvitesErrorSpec, jm as PutioErrorEnvelopeSchema, jn as SharedFileShare, jo as FileActiveConversionsError, jp as AccountInfoBroadSchema, jr as RssFeedParamsSchema, js as FileTouchInputSchema, jt as removeTransfers, ju as GetDownloadLinksErrorSpec, k as ListTunnelRoutesErrorSpec, ka as DenyFriendRequestError, kc as copyFile, kd as ResetPasswordError, kf as OAuthAppSchema, ki as PaymentHistoryItem, kl as JoinFamilyErrorSpec, km as PutioConfigurationError, kn as SharedFile, ko as FileActiveConversion, kp as AccountInfoBaseSchema, kr as RssFeedItemSucceededSchema, ks as FileSubtitlesErrorSpec, kt as listTransfers, ku as DownloadLinksStatusSchema, l as makePutioSdkEffectClientLayer, la as confirmFastspringOrder, lc as RenameFileError, ld as GrantsErrorSpec, lf as logout, li as GetPaddleBillingInvoiceUrlError, ll as setFilesWatchStatus, lm as PutioQueryValue, ln as GetPublicShareError, lo as FriendInvite, lp as CreateAppSpecificPasswordResult, lr as DeleteRssFeedError, ls as FileMediaInfoStreamSchema, lt as TransferSchema, lu as HistoryTransferFromRssErrorEventSchema, m as CreateZipErrorSpec, ma as getPaymentInfo, mc as StartFromError, md as LoginInput, mf as revokeApp, mi as GetPaymentVoucherInfoErrorSpec, ml as GetIftttStatusErrorSpec, mm as encodePathSegment, mn as GetSharedWithErrorSpec, mo as FriendInviteSchema, mp as ListAppSpecificPasswordsError, mr as ListRssFeedItemsErrorSpec, ms as FileMp4MutationError, mt as TransfersAddMultiError, mu as ListEventsError, n as DEFAULT_PUTIO_UPLOAD_BASE_URL, na as ReportPaymentsErrorSpec, nc as GetFileChildErrorSpec, nd as GenerateTOTPError, nf as getFriendInvite, nh as parseErrorBody, ni as ConfirmFastspringOrderErrorSpec, nl as putMp4ToMyFiles, nm as PutioAuth, nn as ContinuePublicShareFilesErrorSpec, no as listSentRequests, np as updateOAuthApp, nr as listSharedFiles, ns as FileHlsMasterPlaylistOptions, nt as TransferAddTrackersInput, nu as HistoryKnownEventTypeSchema, o as PutioSdkPromiseClient, oa as SubmitPaymentChangePlanErrorSpec, oc as GetHlsMasterPlaylistErrorSpec, od as GiftCardLookupError, of as grants, oi as CreatePaddleBillingUpdatePaymentMethodTransactionErrorSpec, ol as resetStartFrom, om as PutioHttpResponse, on as CreateSharingCloneErrorSpec, oo as sendFriendRequest, op as CreateAppSpecificPasswordErrorSpec, or as ClearRssFeedLogsErrorSpec, os as FileMediaInfo, ot as TransferLink, ou as HistoryTransferCompletedEvent, p as CreateZipError, pa as getPaddleBillingInvoiceUrl, pc as SearchFilesErrorSpec, pd as LoginErrorSpec, pf as revokeAllClients, pi as GetPaymentVoucherInfoError, pl as GetIftttStatusError, pm as buildPutioUrl, pn as GetSharedWithError, po as FriendInviteJoinedUserStatusSchema, pp as DeleteAppSpecificPasswordErrorSpec, pr as ListRssFeedItemsError, ps as FileMp4ErrorSpec, pt as TransferTypeSchema, pu as HistoryZipCreatedEventSchema, q as RemoveTransfersError, qa as SendFriendRequestError, qc as getHlsStreamUrl, qd as buildAuthLoginUrl, qf as buildOAuthAppIconUrl, qi as PaymentSubscriptionInfoSchema, ql as EventsListResponse, qm as isPutioApiError, qn as continuePublicShareFiles, qo as FileDirectAccessOptions, qp as SaveAccountSettingsPayloadSchema, qr as PodcastGetLinksInputSchema, qs as FilesListQuery, qt as TrashFileSchema, qu as AuthorizationCodeSchema, r as DEFAULT_PUTIO_WEB_APP_URL, ra as StopSubscriptionError, rc as GetFileError, rd as GenerateTOTPErrorSpec, rf as getGiftCard, rh as responseRateLimitHeaders, ri as CreateOpenNodeChargeError, rl as queryFiles, rm as PutioHttpClient, rn as CreatePublicShareError, ro as listWaitingRequests, rp as AppSpecificPassword, rr as shareFiles, rs as FileHlsStreamUrlOptions, rt as TransferAddTrackersInputSchema, ru as HistoryPrivateTorrentPinEventSchema, s as createPutioSdkEffectClient, sa as UserSubscriptionStatusSchema, sc as QueryFilesError, sd as GiftCardLookupErrorSpec, sf as linkDevice, si as CreatePaddleWaitingPaymentError, sl as searchFiles, sm as PutioPathSegment, sn as DeletePublicShareError, so as CreateFriendInviteError, sp as CreateAppSpecificPasswordInput, sr as CreateRssFeedError, ss as FileMediaInfoFormatSchema, st as TransferRemoveInput, su as HistoryTransferCompletedEventSchema, t as DEFAULT_PUTIO_API_BASE_URL, ta as ReportPaymentsError, tc as GetFileChildError, td as FriendInviteLookupErrorSpec, tf as getFamilyInvite, th as mapTransportError, ti as ConfirmFastspringOrderError, tl as moveFiles, tm as OkResponseSchema, tn as ContinuePublicShareFilesError, to as listFriends, tp as setOAuthAppIcon, tr as listPublicShares, ts as FileGetChildInputSchema, tt as TransferAddInputSchema, tu as HistoryKnownEventType, u as makePutioSdkLiveClientLayer, ua as createOpenNodeCharge, uc as RenameFileErrorSpec, ud as LinkDeviceError, uf as regenerateRecoveryCodes, ui as GetPaddleBillingInvoiceUrlErrorSpec, ul as setStartFrom, um as PutioSdkConfig, un as GetPublicShareErrorSpec, uo as FriendInviteJoinedUser, up as DeleteAllAppSpecificPasswordsError, ur as DeleteRssFeedErrorSpec, us as FileMediaMetadata, ut as TransferStatus, uu as HistoryUploadEventSchema, v as ListZipsError, va as listPaymentOptions, vc as buildFileApiContentUrl, vd as OAuthAuthorizationCodeExchangeErrorCodeSchema, vf as CreateOAuthAppError, vi as ListPaymentInvitesErrorSpec, vl as SendIftttEventErrorSpec, vm as makePutioSdkLayer, vn as ListPublicShareFilesErrorSpec, vo as listFriendInvites, vp as deleteAppSpecificPassword, vr as PauseRssFeedErrorSpec, vs as FileRenameInput, vt as TransfersListResponse, vu as getEventTorrent, w as cancelZip, wa as submitPaymentChangePlan, wc as continueFiles, wd as RegenerateRecoveryCodesErrorSpec, wf as MyOAuthApp, wi as PaymentChangePlanPreviewInput, wl as FamilyInviteSchema, wm as selectJsonField, wn as PublicShareListQuery, wo as CopyFileErrorSpec, wp as AccountConfirmationsError, wr as RetryRssFeedItemErrorSpec, ws as FileSortSchema, wt as continueTransfers, wu as DownloadLinksInfo, x as ZipInfo, xa as redeemPaymentVoucher, xc as buildFileHlsStreamUrl, xd as RecoveryCodesError, xf as DeleteOAuthAppErrorSpec, xi as ListPaymentPlansError, xl as CreateFamilyInviteError, xm as requestJson, xn as ListSharedFilesError, xo as ContinueFilesError, xp as AccountClearOptionsSchema, xr as RetryAllRssFeedItemsError, xs as FileSetSortInput, xt as addTransferTrackers, xu as CreateDownloadLinksErrorSpec, y as ListZipsErrorSpec, ya as listPaymentPlans, yc as buildFileApiDownloadUrl, yd as OAuthAuthorizationCodeExchangeInput, yf as CreateOAuthAppErrorSpec, yi as ListPaymentOptionsError, yl as getIftttStatus, ym as makePutioSdkLiveLayer, yn as ListPublicSharesError, yo as CanWriteFileError, yp as listAppSpecificPasswords, yr as ResumeRssFeedError, ys as FileResponseFor, yt as addManyTransfers, yu as listEvents, z as GetTransferError, za as ListSentRequestsError, zc as findNextVideo, zd as ValidateTokenResponse, zf as PopularOAuthApp, zi as PaymentOptionSchema, zl as listFamilyMembers, zm as PutioSdkError, zn as SharingCloneStatusSchema, zo as FileBroad, zp as AccountTwoFactorSettingsSchema, zr as listRssFeedItems, zs as FileUploadResult, zt as EmptyTrashErrorSpec, zu as deleteConfigKey } from "./index-RtmdAkA_.js";
1
+ import { $ as Transfer, $a as denyFriendRequest, $c as listFileSubtitles, $d as generateTOTP, $f as queryOAuthApps, $i as RedeemPaymentVoucherError, $l as HistoryFileSharedEvent, $m as mapConfigurationError, $n as getSharingCloneInfo, $o as FileExtractionsErrorSpec, $p as listAccountSubtitleLanguages, $r as getPodcastLinks, $s as FolderType, $t as listTrash, $u as ForgotPasswordErrorSpec, A as TunnelRoute, Aa as DenyFriendRequestErrorSpec, Ac as createFileUploadFormData, Ad as ResetPasswordErrorSpec, Af as OAuthAppSession, Ai as PaymentHistoryItemSchema, Al as ListFamilyInvitesError, Am as PutioErrorEnvelope, An as SharedFileSchema, Ao as FileActiveConversionSchema, Ap as AccountInfoBroad, Ar as RssFeedParams, As as FileTouchInput, At as reannounceTransfer, Au as GetDownloadLinksError, B as GetTransferErrorSpec, Ba as ListSentRequestsErrorSpec, Bc as getApiContentUrl, Bd as ValidateTokenResponseSchema, Bf as PopularOAuthAppSchema, Bi as PaymentPaddleWaitingPaymentInput, Bl as removeFamilyMember, Bm as PutioTransportError, Bn as SharingShareInput, Bo as FileBroadSchema, Bp as AccountWarnings, Br as listRssFeeds, Bs as FileUploadTransfer, Bt as ListTrashError, Bu as getConfigKey, C as ZipSummary, Ca as stopPaymentSubscription, Cc as canWriteFile, Cd as RegenerateRecoveryCodesError, Cf as GetOAuthAppErrorSpec, Ci as PaymentChangePlanPreview, Cl as FamilyInvite, Cm as requestVoid, Cn as PublicShare, Co as CopyFileError, Cp as AccountConfirmationSchema, Cr as RetryRssFeedItemError, Cs as FileSort, Ct as cleanTransfers, Cu as DownloadLinksCreateInputSchema, D as listZips, Da as CountWaitingRequestsError, Dc as convertFileToMp4, Dd as RegisterInput, Df as OAuthAppCreateInput, Di as PaymentChangePlanSubmitResponse, Dl as FamilyMemberSchema, Dm as PutioApiError, Dn as ShareFilesError, Do as DownloadUrlError, Dp as AccountDiskSchema, Dr as RssFeedItemFailedSchema, Ds as FileSubtitleSchema, Dt as getTransferInfo, Du as DownloadLinksPayloadSchema, E as getZip, Ea as ApproveFriendRequestErrorSpec, Ec as convertFileSelectionToMp4, Ed as RegisterErrorSpec, Ef as OAuthApp, Ei as PaymentChangePlanSubmitInput, El as FamilyMember, Em as AnyPutioOperationError, En as PublicShareSchema, Eo as CreateFolderErrorSpec, Ep as AccountDisk, Er as RssFeedItem, Es as FileSubtitle, Et as getTransfer, Eu as DownloadLinksPayload, F as AddTransferError, Fa as FriendSharedFolderError, Fc as deleteFileSelection, Fd as RevokeOAuthGrantError, Ff as OAuthSetIconInput, Fi as PaymentInvite, Fl as RemoveFamilyMemberErrorSpec, Fm as PutioOperationErrorFromSpec, Fn as SharingCloneInfo, Fo as FileBase, Fp as AccountSettings, Fr as clearRssFeedLogs, Fs as FileUploadError, Ft as ContinueTrashErrorSpec, Fu as JsonValueSchema, G as ReannounceTransferError, Ga as SearchFriendsError, Gc as getFileChild, Gd as VoucherLookupError, Gf as UpdateOAuthAppError, Gi as PaymentProviderNameSchema, Gl as EventsListQuery, Gm as definePutioOperationErrorSpec, Gn as UnshareFileErrorSpec, Go as FileCore, Gp as SaveAccountSettingsErrorSpec, Gr as updateRssFeed, Gs as FilesBulkSelection, Gt as TrashContinueResponse, Gu as writeConfig, H as GetTransferTorrentErrorSpec, Ha as ListWaitingRequestsErrorSpec, Hc as getApiMp4DownloadUrl, Hd as VerifyTOTPErrorSpec, Hf as QueryOAuthAppsErrorSpec, Hi as PaymentPlanGroupSchema, Hl as ClearEventsErrorSpec, Hm as PutioUnhandledSdkError, Hn as SharingUnshareInput, Ho as FileConversionStatusSchema, Hp as PasInfo, Hr as resumeRssFeed, Hs as FileWatchStatusError, Ht as RestoreTrashError, Hu as readConfig, I as AddTransferErrorSpec, Ia as FriendSharedFolderErrorSpec, Ic as deleteFiles, Id as RevokeOAuthGrantErrorSpec, If as OAuthSetIconInputSchema, Ii as PaymentInviteSchema, Il as createFamilyInvite, Im as PutioOperationErrorSpec, In as SharingCloneInfoSchema, Io as FileBaseSchema, Ip as AccountSettingsSchema, Ir as createRssFeed, Is as FileUploadErrorSpec, It as DeleteTrashError, Iu as PutioJsonObject, J as RemoveTransfersErrorSpec, Ja as SendFriendRequestErrorSpec, Jc as getMp4Status, Jd as checkCodeMatch, Jf as buildOAuthAuthorizeUrl, Ji as PaymentTypeSchema, Jl as GetEventTorrentError, Jm as isPutioAuthError, Jn as createPublicShare, Jo as FileExtraction, Jp as clearAccount, Jr as PodcastLinkType, Js as FilesListQuerySchema, Jt as TrashListQuery, Ju as ClientsError, K as ReannounceTransferErrorSpec, Ka as SearchFriendsErrorSpec, Kc as getHlsMasterPlaylist, Kd as VoucherLookupErrorSpec, Kf as UpdateOAuthAppErrorSpec, Ki as PaymentProviderSchema, Kl as EventsListQuerySchema, Km as fallbackPutioErrorEnvelope, Kn as cloneSharedFiles, Ko as FileCreateFolderInput, Kp as SaveAccountSettingsPayload, Kr as PodcastGetLinksInput, Ks as FilesListEnvelopeSchema, Kt as TrashFile, Ku as AuthGetCodeInput, L as AddTransferTrackersError, La as ListFriendsError, Lc as extractFiles, Ld as TwoFactorRecoveryCodes, Lf as OwnedOAuthApp, Li as PaymentOption, Ll as joinFamily, Lm as PutioOperationFailure, Ln as SharingCloneInput, Lo as FileBreadcrumb, Lp as AccountSubtitleLanguage, Lr as deleteRssFeed, Ls as FileUploadInput, Lt as DeleteTrashErrorSpec, Lu as PutioJsonPrimitive, M as listTunnelRoutes, Ma as FriendBase, Mc as createFolder, Md as RevokeAllOAuthClientsErrorSpec, Mf as OAuthAppUpdateInput, Mi as PaymentInfo, Ml as ListFamilyMembersError, Mm as PutioKnownErrorContract, Mn as SharedFileShareSchema, Mo as FileActiveConversionsErrorSpec, Mp as AccountInfoQuery, Mr as RssFeedSchema, Ms as FileType, Mt as retryTransfer, Mu as createDownloadLinks, N as AddManyTransfersError, Na as FriendBaseSchema, Nc as deleteFileExtraction, Nd as RevokeOAuthClientError, Nf as OAuthAppUpdateInputSchema, Ni as PaymentInfoPlanSchema, Nl as ListFamilyMembersErrorSpec, Nm as PutioKnownOperationErrorContract, Nn as SharedFileSharedWith, No as FileApiDownloadUrlOptions, Np as AccountInfoQuerySchema, Nr as UpdateRssFeedError, Ns as FileTypeSchema, Nt as stopTransferRecording, Nu as getDownloadLinks, O as ListTunnelRoutesError, Oa as CountWaitingRequestsErrorSpec, Oc as convertFilesToMp4, Od as RegisterInputSchema, Of as OAuthAppCreateInputSchema, Oi as PaymentChangePlanSubmitSchema, Ol as JoinFamilyError, Om as PutioAuthError, On as ShareFilesErrorSpec, Oo as DownloadUrlErrorSpec, Op as AccountInfoBase, Or as RssFeedItemSchema, Os as FileSubtitlesError, Ot as getTransferTorrent, Ou as DownloadLinksStatus, P as AddManyTransfersErrorSpec, Pa as FriendSchema, Pc as deleteFileMp4, Pd as RevokeOAuthClientErrorSpec, Pf as OAuthAppWithTokenSchema, Pi as PaymentInfoSchema, Pl as RemoveFamilyMemberError, Pm as PutioOperationError, Pn as SharedFileSharedWithSchema, Po as FileApiMp4DownloadUrlOptions, Pp as AccountInfoResponseFor, Pr as UpdateRssFeedErrorSpec, Ps as FileUploadEnvelope, Pt as ContinueTrashError, Pu as JsonObjectSchema, Q as StopRecordingTransferErrorSpec, Qa as countWaitingRequests, Qc as listFileExtractions, Qd as forgotPassword, Qf as getPopularOAuthApps, Qi as PreviewPaymentChangePlanErrorSpec, Ql as HistoryFileFromRssDeletedEventSchema, Qm as makeResponseError, Qn as getSharedWith, Qo as FileExtractionsError, Qp as listAccountConfirmations, Qr as PodcastLinksSchema, Qs as FilesSearchQuerySchema, Qt as emptyTrash, Qu as ForgotPasswordError, R as AddTransferTrackersErrorSpec, Ra as ListFriendsErrorSpec, Rc as findNextFile, Rd as TwoFactorRecoveryCodesSchema, Rf as OwnedOAuthAppSchema, Ri as PaymentOptionPlanTypeSchema, Rl as listFamilyInvites, Rm as PutioRateLimitError, Rn as SharingCloneInputSchema, Ro as FileBreadcrumbSchema, Rp as AccountSubtitleLanguageSchema, Rr as getRssFeed, Rs as FileUploadRequestDescriptor, Rt as EmptyTrashError, Ru as PutioJsonValue, S as ZipStatusSchema, Sa as reportPayments, Sc as buildFileXspfPlaylistUrl, Sd as RecoveryCodesErrorSpec, Sf as GetOAuthAppError, Si as ListPaymentPlansErrorSpec, Sl as CreateFamilyInviteErrorSpec, Sm as requestText, Sn as ListSharedFilesErrorSpec, So as ContinueFilesErrorSpec, Sp as AccountConfirmation, Sr as RetryAllRssFeedItemsErrorSpec, Ss as FileSetSortInputSchema, St as cancelTransfers, Su as DownloadLinksCreateInput, T as createZip, Ta as ApproveFriendRequestError, Tc as continueSearch, Td as RegisterError, Tf as MyOAuthAppSchema, Ti as PaymentChangePlanPreviewSchema, Tl as FamilyInvitesResponse, Tm as selectJsonFields, Tn as PublicShareListQuerySchema, To as CreateFolderError, Tp as AccountConfirmationsErrorSpec, Tr as RssFeed, Ts as FileStartFromSetInput, Tt as countTransfers, Tu as DownloadLinksInfoSchema, U as ListTransfersError, Ua as RemoveFriendError, Uc as getDownloadUrl, Ud as VerifyTOTPResponse, Uf as RegenerateOAuthAppTokenError, Ui as PaymentPlanTypeSchema, Ul as DeleteEventError, Um as PutioValidationError, Un as SharingUnshareInputSchema, Uo as FileCopyInput, Up as PasInfoSchema, Ur as retryAllRssFeedItems, Us as FileWatchStatusErrorSpec, Ut as RestoreTrashErrorSpec, Uu as readConfigWith, V as GetTransferTorrentError, Va as ListWaitingRequestsError, Vc as getApiDownloadUrl, Vd as VerifyTOTPError, Vf as QueryOAuthAppsError, Vi as PaymentPlanGroup, Vl as ClearEventsError, Vm as PutioTypedErrorEnvelope, Vn as SharingShareInputSchema, Vo as FileConversionStatus, Vp as AccountWarningsSchema, Vr as pauseRssFeed, Vs as FileVideoMetadata, Vt as ListTrashErrorSpec, Vu as getConfigKeyWith, W as ListTransfersErrorSpec, Wa as RemoveFriendErrorSpec, Wc as getFile, Wd as VerifyTOTPResponseSchema, Wf as RegenerateOAuthAppTokenErrorSpec, Wi as PaymentProvider, Wl as DeleteEventErrorSpec, Wm as decodePutioErrorEnvelope, Wn as UnshareFileError, Wo as FileCopyInputSchema, Wp as SaveAccountSettingsError, Wr as retryRssFeedItem, Ws as FileXspfPlaylistUrlOptions, Wt as TrashBulkInput, Wu as setConfigKey, X as RetryTransferErrorSpec, Xa as UserSearchResultSchema, Xc as getXspfPlaylistUrl, Xd as exchangeOAuthAuthorizationCode, Xf as deleteOAuthApp, Xi as PaymentVoucherInfoSchema, Xl as HistoryEvent, Xm as isPutioOperationError, Xn as getPublicShare, Xo as FileExtractionStatus, Xp as getAccountInfo, Xr as PodcastLinks, Xs as FilesMoveErrorSchema, Xt as continueTrash, Xu as FamilyInviteLookupError, Y as RetryTransferError, Ya as UserSearchResult, Yc as getStartFrom, Yd as clients, Yf as createOAuthApp, Yi as PaymentVoucherInfo, Yl as GetEventTorrentErrorSpec, Ym as isPutioErrorEnvelope, Yn as deletePublicShare, Yo as FileExtractionSchema, Yp as destroyAccount, Yr as PodcastLinkTypeSchema, Ys as FilesMoveError, Yt as TrashListResponse, Yu as ClientsErrorSpec, Z as StopRecordingTransferError, Za as approveFriendRequest, Zc as listActiveMp4Conversions, Zd as exists, Zf as getOAuthApp, Zi as PreviewPaymentChangePlanError, Zl as HistoryEventSchema, Zm as isPutioRateLimitError, Zn as getPublicShareFileUrl, Zo as FileExtractionStatusSchema, Zp as getAccountSettings, Zr as PodcastLinksResponse, Zs as FilesSearchQuery, Zt as deleteTrash, Zu as FamilyInviteLookupErrorSpec, _ as GetZipErrorSpec, _a as listPaymentInvites, _c as TouchFilesErrorSpec, _d as OAuthAuthorizationCodeExchangeError, _f as verifyTOTP, _i as ListPaymentInvitesError, _l as SendIftttEventError, _m as makePutioSdkConfig, _n as ListPublicShareFilesError, _o as createFriendInvite, _p as deleteAllAppSpecificPasswords, _r as PauseRssFeedError, _s as FileQuerySchema, _t as TransfersListQuerySchema, _u as deleteEvent, a as PutioSdkEffectClient, aa as SubmitPaymentChangePlanError, ac as GetHlsMasterPlaylistError, ad as GenerateTOTPResponseSchema, af as getVoucher, ai as CreatePaddleBillingUpdatePaymentMethodTransactionError, al as resetFileSortSettings, am as PutioHttpRequest, an as CreateSharingCloneError, ao as searchFriends, ap as CreateAppSpecificPasswordError, ar as ClearRssFeedLogsError, as as FileListResponse, at as TransferInfoItem, au as HistoryTransferCallbackErrorEventSchema, b as ZipCreateResponse, ba as previewPaymentChangePlan, bc as buildFileApiMp4DownloadUrl, bd as OAuthAuthorizationCodeExchangeInputSchema, bf as DeleteOAuthAppError, bi as ListPaymentOptionsErrorSpec, bl as sendIftttEvent, bm as requestArrayBuffer, bn as ListPublicSharesErrorSpec, bo as CanWriteFileErrorSpec, bp as AccountClearOptions, br as ResumeRssFeedErrorSpec, bs as FileSearchResponse, bt as addTransfer, bu as CreateDownloadLinksError, c as createPutioSdkPromiseClient, ca as classifyPaymentChangePlanResponse, cc as QueryFilesErrorSpec, cd as GrantsError, cf as login, ci as CreatePaddleWaitingPaymentErrorSpec, cl as setFileSort, cm as PutioQuery, cn as DeletePublicShareErrorSpec, co as CreateFriendInviteErrorSpec, cp as CreateAppSpecificPasswordInputSchema, cr as CreateRssFeedErrorSpec, cs as FileMediaInfoSchema, ct as TransferRemoveInputSchema, cu as HistoryTransferErrorEventSchema, d as CancelZipError, da as createPaddleBillingUpdatePaymentMethodTransaction, dc as SHARED_WITH_YOU_ROOT_ID, dd as LinkDeviceErrorSpec, df as register, di as GetPaymentInfoError, dl as touchFiles, dm as PutioSdkConfigShape, dn as GetPublicShareFileUrlError, do as FriendInviteJoinedUserSchema, dp as DeleteAllAppSpecificPasswordsErrorSpec, dr as GetRssFeedError, ds as FileMediaMetadataSchema, dt as TransferStatusSchema, du as HistoryVoucherEventSchema, ea as RedeemPaymentVoucherErrorSpec, ec as FolderTypeSchema, ed as FriendInviteLookupError, ef as getCode, eh as mapDecodeErrorToValidationError, ei as ClassifiedPaymentChangePlanSubmitResponse, el as moveFileSelection, em as saveAccountSettings, en as restoreTrash, eo as getFriendSharedFolder, ep as regenerateOAuthAppToken, er as listPublicShareFiles, es as FileGetChildInput, et as TransferAddInput, eu as HistoryFileSharedEventSchema, f as CancelZipErrorSpec, fa as createPaddleWaitingPayment, fc as SearchFilesError, fd as LoginError, ff as resetPassword, fi as GetPaymentInfoErrorSpec, fl as uploadFile, fm as PutioSdkContext, fn as GetPublicShareFileUrlErrorSpec, fo as FriendInviteJoinedUserStatus, fp as DeleteAppSpecificPasswordError, fr as GetRssFeedErrorSpec, fs as FileMp4Error, ft as TransferType, fu as HistoryZipCreatedEvent, g as GetZipError, ga as listPaymentHistory, gc as TouchFilesError, gd as LoginResponseSchema, gf as validateToken, gi as ListPaymentHistoryErrorSpec, gl as IftttEventType, gm as makePutioFetchLayer, gn as GetSharingCloneInfoErrorSpec, go as ListFriendInvitesErrorSpec, gp as createAppSpecificPassword, gr as ListRssFeedsErrorSpec, gs as FileQuery, gt as TransfersListQuery, gu as clearEvents, h as CreateZipInput, ha as getPaymentVoucherInfo, hc as StartFromErrorSpec, hd as LoginResponse, hf as revokeClient, hi as ListPaymentHistoryError, hl as IftttEventInput, hm as makePutioFetchClient, hn as GetSharingCloneInfoError, ho as ListFriendInvitesError, hp as ListAppSpecificPasswordsErrorSpec, hr as ListRssFeedsError, hs as FileMp4MutationErrorSpec, ht as TransfersContinueResponse, hu as ListEventsErrorSpec, i as PutioSdk, ia as StopSubscriptionErrorSpec, ic as GetFileErrorSpec, id as GenerateTOTPResponse, if as getRecoveryCodes, ih as withOperationErrors, ii as CreateOpenNodeChargeErrorSpec, il as renameFile, im as PutioHttpClientShape, in as CreatePublicShareErrorSpec, io as removeFriend, ip as AppSpecificPasswordSchema, ir as unshareFile, is as FileListContinuationResponse, it as TransferBaseSchema, iu as HistoryRssFilterPausedEventSchema, j as TunnelRouteSchema, ja as Friend, jc as createFileUploadRequest, jd as RevokeAllOAuthClientsError, jf as OAuthAppSessionSchema, ji as PaymentHistoryQuery, jl as ListFamilyInvitesErrorSpec, jm as PutioErrorEnvelopeSchema, jn as SharedFileShare, jo as FileActiveConversionsError, jp as AccountInfoBroadSchema, jr as RssFeedParamsSchema, js as FileTouchInputSchema, jt as removeTransfers, ju as GetDownloadLinksErrorSpec, k as ListTunnelRoutesErrorSpec, ka as DenyFriendRequestError, kc as copyFile, kd as ResetPasswordError, kf as OAuthAppSchema, ki as PaymentHistoryItem, kl as JoinFamilyErrorSpec, km as PutioConfigurationError, kn as SharedFile, ko as FileActiveConversion, kp as AccountInfoBaseSchema, kr as RssFeedItemSucceededSchema, ks as FileSubtitlesErrorSpec, kt as listTransfers, ku as DownloadLinksStatusSchema, l as makePutioSdkEffectClientLayer, la as confirmFastspringOrder, lc as RenameFileError, ld as GrantsErrorSpec, lf as logout, li as GetPaddleBillingInvoiceUrlError, ll as setFilesWatchStatus, lm as PutioQueryValue, ln as GetPublicShareError, lo as FriendInvite, lp as CreateAppSpecificPasswordResult, lr as DeleteRssFeedError, ls as FileMediaInfoStreamSchema, lt as TransferSchema, lu as HistoryTransferFromRssErrorEventSchema, m as CreateZipErrorSpec, ma as getPaymentInfo, mc as StartFromError, md as LoginInput, mf as revokeApp, mi as GetPaymentVoucherInfoErrorSpec, ml as GetIftttStatusErrorSpec, mm as encodePathSegment, mn as GetSharedWithErrorSpec, mo as FriendInviteSchema, mp as ListAppSpecificPasswordsError, mr as ListRssFeedItemsErrorSpec, ms as FileMp4MutationError, mt as TransfersAddMultiError, mu as ListEventsError, n as DEFAULT_PUTIO_UPLOAD_BASE_URL, na as ReportPaymentsErrorSpec, nc as GetFileChildErrorSpec, nd as GenerateTOTPError, nf as getFriendInvite, nh as parseErrorBody, ni as ConfirmFastspringOrderErrorSpec, nl as putMp4ToMyFiles, nm as PutioAuth, nn as ContinuePublicShareFilesErrorSpec, no as listSentRequests, np as updateOAuthApp, nr as listSharedFiles, ns as FileHlsMasterPlaylistOptions, nt as TransferAddTrackersInput, nu as HistoryKnownEventTypeSchema, o as PutioSdkPromiseClient, oa as SubmitPaymentChangePlanErrorSpec, oc as GetHlsMasterPlaylistErrorSpec, od as GiftCardLookupError, of as grants, oi as CreatePaddleBillingUpdatePaymentMethodTransactionErrorSpec, ol as resetStartFrom, om as PutioHttpResponse, on as CreateSharingCloneErrorSpec, oo as sendFriendRequest, op as CreateAppSpecificPasswordErrorSpec, or as ClearRssFeedLogsErrorSpec, os as FileMediaInfo, ot as TransferLink, ou as HistoryTransferCompletedEvent, p as CreateZipError, pa as getPaddleBillingInvoiceUrl, pc as SearchFilesErrorSpec, pd as LoginErrorSpec, pf as revokeAllClients, pi as GetPaymentVoucherInfoError, pl as GetIftttStatusError, pm as buildPutioUrl, pn as GetSharedWithError, po as FriendInviteJoinedUserStatusSchema, pp as DeleteAppSpecificPasswordErrorSpec, pr as ListRssFeedItemsError, ps as FileMp4ErrorSpec, pt as TransferTypeSchema, pu as HistoryZipCreatedEventSchema, q as RemoveTransfersError, qa as SendFriendRequestError, qc as getHlsStreamUrl, qd as buildAuthLoginUrl, qf as buildOAuthAppIconUrl, qi as PaymentSubscriptionInfoSchema, ql as EventsListResponse, qm as isPutioApiError, qn as continuePublicShareFiles, qo as FileDirectAccessOptions, qp as SaveAccountSettingsPayloadSchema, qr as PodcastGetLinksInputSchema, qs as FilesListQuery, qt as TrashFileSchema, qu as AuthorizationCodeSchema, r as DEFAULT_PUTIO_WEB_APP_URL, ra as StopSubscriptionError, rc as GetFileError, rd as GenerateTOTPErrorSpec, rf as getGiftCard, rh as responseRateLimitHeaders, ri as CreateOpenNodeChargeError, rl as queryFiles, rm as PutioHttpClient, rn as CreatePublicShareError, ro as listWaitingRequests, rp as AppSpecificPassword, rr as shareFiles, rs as FileHlsStreamUrlOptions, rt as TransferAddTrackersInputSchema, ru as HistoryPrivateTorrentPinEventSchema, s as createPutioSdkEffectClient, sa as UserSubscriptionStatusSchema, sc as QueryFilesError, sd as GiftCardLookupErrorSpec, sf as linkDevice, si as CreatePaddleWaitingPaymentError, sl as searchFiles, sm as PutioPathSegment, sn as DeletePublicShareError, so as CreateFriendInviteError, sp as CreateAppSpecificPasswordInput, sr as CreateRssFeedError, ss as FileMediaInfoFormatSchema, st as TransferRemoveInput, su as HistoryTransferCompletedEventSchema, t as DEFAULT_PUTIO_API_BASE_URL, ta as ReportPaymentsError, tc as GetFileChildError, td as FriendInviteLookupErrorSpec, tf as getFamilyInvite, th as mapTransportError, ti as ConfirmFastspringOrderError, tl as moveFiles, tm as OkResponseSchema, tn as ContinuePublicShareFilesError, to as listFriends, tp as setOAuthAppIcon, tr as listPublicShares, ts as FileGetChildInputSchema, tt as TransferAddInputSchema, tu as HistoryKnownEventType, u as makePutioSdkLiveClientLayer, ua as createOpenNodeCharge, uc as RenameFileErrorSpec, ud as LinkDeviceError, uf as regenerateRecoveryCodes, ui as GetPaddleBillingInvoiceUrlErrorSpec, ul as setStartFrom, um as PutioSdkConfig, un as GetPublicShareErrorSpec, uo as FriendInviteJoinedUser, up as DeleteAllAppSpecificPasswordsError, ur as DeleteRssFeedErrorSpec, us as FileMediaMetadata, ut as TransferStatus, uu as HistoryUploadEventSchema, v as ListZipsError, va as listPaymentOptions, vc as buildFileApiContentUrl, vd as OAuthAuthorizationCodeExchangeErrorCodeSchema, vf as CreateOAuthAppError, vi as ListPaymentInvitesErrorSpec, vl as SendIftttEventErrorSpec, vm as makePutioSdkLayer, vn as ListPublicShareFilesErrorSpec, vo as listFriendInvites, vp as deleteAppSpecificPassword, vr as PauseRssFeedErrorSpec, vs as FileRenameInput, vt as TransfersListResponse, vu as getEventTorrent, w as cancelZip, wa as submitPaymentChangePlan, wc as continueFiles, wd as RegenerateRecoveryCodesErrorSpec, wf as MyOAuthApp, wi as PaymentChangePlanPreviewInput, wl as FamilyInviteSchema, wm as selectJsonField, wn as PublicShareListQuery, wo as CopyFileErrorSpec, wp as AccountConfirmationsError, wr as RetryRssFeedItemErrorSpec, ws as FileSortSchema, wt as continueTransfers, wu as DownloadLinksInfo, x as ZipInfo, xa as redeemPaymentVoucher, xc as buildFileHlsStreamUrl, xd as RecoveryCodesError, xf as DeleteOAuthAppErrorSpec, xi as ListPaymentPlansError, xl as CreateFamilyInviteError, xm as requestJson, xn as ListSharedFilesError, xo as ContinueFilesError, xp as AccountClearOptionsSchema, xr as RetryAllRssFeedItemsError, xs as FileSetSortInput, xt as addTransferTrackers, xu as CreateDownloadLinksErrorSpec, y as ListZipsErrorSpec, ya as listPaymentPlans, yc as buildFileApiDownloadUrl, yd as OAuthAuthorizationCodeExchangeInput, yf as CreateOAuthAppErrorSpec, yi as ListPaymentOptionsError, yl as getIftttStatus, ym as makePutioSdkLiveLayer, yn as ListPublicSharesError, yo as CanWriteFileError, yp as listAppSpecificPasswords, yr as ResumeRssFeedError, ys as FileResponseFor, yt as addManyTransfers, yu as listEvents, z as GetTransferError, za as ListSentRequestsError, zc as findNextVideo, zd as ValidateTokenResponse, zf as PopularOAuthApp, zi as PaymentOptionSchema, zl as listFamilyMembers, zm as PutioSdkError, zn as SharingCloneStatusSchema, zo as FileBroad, zp as AccountTwoFactorSettingsSchema, zr as listRssFeedItems, zs as FileUploadResult, zt as EmptyTrashErrorSpec, zu as deleteConfigKey } from "./index-B-hfGAMs.js";
2
2
  export { AccountClearOptions, AccountClearOptionsSchema, AccountConfirmation, AccountConfirmationSchema, AccountConfirmationsError, AccountConfirmationsErrorSpec, AccountDisk, AccountDiskSchema, AccountInfoBase, AccountInfoBaseSchema, AccountInfoBroad, AccountInfoBroadSchema, AccountInfoQuery, AccountInfoQuerySchema, AccountInfoResponseFor, AccountSettings, AccountSettingsSchema, AccountSubtitleLanguage, AccountSubtitleLanguageSchema, AccountTwoFactorSettingsSchema, AccountWarnings, AccountWarningsSchema, AddManyTransfersError, AddManyTransfersErrorSpec, AddTransferError, AddTransferErrorSpec, AddTransferTrackersError, AddTransferTrackersErrorSpec, AnyPutioOperationError, AppSpecificPassword, AppSpecificPasswordSchema, ApproveFriendRequestError, ApproveFriendRequestErrorSpec, AuthGetCodeInput, AuthorizationCodeSchema, CanWriteFileError, CanWriteFileErrorSpec, CancelZipError, CancelZipErrorSpec, ClassifiedPaymentChangePlanSubmitResponse, ClearEventsError, ClearEventsErrorSpec, ClearRssFeedLogsError, ClearRssFeedLogsErrorSpec, ClientsError, ClientsErrorSpec, ConfirmFastspringOrderError, ConfirmFastspringOrderErrorSpec, ContinueFilesError, ContinueFilesErrorSpec, ContinuePublicShareFilesError, ContinuePublicShareFilesErrorSpec, ContinueTrashError, ContinueTrashErrorSpec, CopyFileError, CopyFileErrorSpec, CountWaitingRequestsError, CountWaitingRequestsErrorSpec, CreateAppSpecificPasswordError, CreateAppSpecificPasswordErrorSpec, CreateAppSpecificPasswordInput, CreateAppSpecificPasswordInputSchema, CreateAppSpecificPasswordResult, CreateDownloadLinksError, CreateDownloadLinksErrorSpec, CreateFamilyInviteError, CreateFamilyInviteErrorSpec, CreateFolderError, CreateFolderErrorSpec, CreateFriendInviteError, CreateFriendInviteErrorSpec, CreateOAuthAppError, CreateOAuthAppErrorSpec, CreateOpenNodeChargeError, CreateOpenNodeChargeErrorSpec, CreatePaddleBillingUpdatePaymentMethodTransactionError, CreatePaddleBillingUpdatePaymentMethodTransactionErrorSpec, CreatePaddleWaitingPaymentError, CreatePaddleWaitingPaymentErrorSpec, CreatePublicShareError, CreatePublicShareErrorSpec, CreateRssFeedError, CreateRssFeedErrorSpec, CreateSharingCloneError, CreateSharingCloneErrorSpec, CreateZipError, CreateZipErrorSpec, CreateZipInput, DEFAULT_PUTIO_API_BASE_URL, DEFAULT_PUTIO_UPLOAD_BASE_URL, DEFAULT_PUTIO_WEB_APP_URL, DeleteAllAppSpecificPasswordsError, DeleteAllAppSpecificPasswordsErrorSpec, DeleteAppSpecificPasswordError, DeleteAppSpecificPasswordErrorSpec, DeleteEventError, DeleteEventErrorSpec, DeleteOAuthAppError, DeleteOAuthAppErrorSpec, DeletePublicShareError, DeletePublicShareErrorSpec, DeleteRssFeedError, DeleteRssFeedErrorSpec, DeleteTrashError, DeleteTrashErrorSpec, DenyFriendRequestError, DenyFriendRequestErrorSpec, DownloadLinksCreateInput, DownloadLinksCreateInputSchema, DownloadLinksInfo, DownloadLinksInfoSchema, DownloadLinksPayload, DownloadLinksPayloadSchema, DownloadLinksStatus, DownloadLinksStatusSchema, DownloadUrlError, DownloadUrlErrorSpec, EmptyTrashError, EmptyTrashErrorSpec, EventsListQuery, EventsListQuerySchema, EventsListResponse, FamilyInvite, FamilyInviteLookupError, FamilyInviteLookupErrorSpec, FamilyInviteSchema, FamilyInvitesResponse, FamilyMember, FamilyMemberSchema, FileActiveConversion, FileActiveConversionSchema, FileActiveConversionsError, FileActiveConversionsErrorSpec, FileApiDownloadUrlOptions, FileApiMp4DownloadUrlOptions, FileBase, FileBaseSchema, FileBreadcrumb, FileBreadcrumbSchema, FileBroad, FileBroadSchema, FileConversionStatus, FileConversionStatusSchema, FileCopyInput, FileCopyInputSchema, FileCore, FileCreateFolderInput, FileDirectAccessOptions, FileExtraction, FileExtractionSchema, FileExtractionStatus, FileExtractionStatusSchema, FileExtractionsError, FileExtractionsErrorSpec, FileGetChildInput, FileGetChildInputSchema, FileHlsMasterPlaylistOptions, FileHlsStreamUrlOptions, FileListContinuationResponse, FileListResponse, FileMediaInfo, FileMediaInfoFormatSchema, FileMediaInfoSchema, FileMediaInfoStreamSchema, FileMediaMetadata, FileMediaMetadataSchema, FileMp4Error, FileMp4ErrorSpec, FileMp4MutationError, FileMp4MutationErrorSpec, FileQuery, FileQuerySchema, FileRenameInput, FileResponseFor, FileSearchResponse, FileSetSortInput, FileSetSortInputSchema, FileSort, FileSortSchema, FileStartFromSetInput, FileSubtitle, FileSubtitleSchema, FileSubtitlesError, FileSubtitlesErrorSpec, FileTouchInput, FileTouchInputSchema, FileType, FileTypeSchema, FileUploadEnvelope, FileUploadError, FileUploadErrorSpec, FileUploadInput, FileUploadRequestDescriptor, FileUploadResult, FileUploadTransfer, FileVideoMetadata, FileWatchStatusError, FileWatchStatusErrorSpec, FileXspfPlaylistUrlOptions, FilesBulkSelection, FilesListEnvelopeSchema, FilesListQuery, FilesListQuerySchema, FilesMoveError, FilesMoveErrorSchema, FilesSearchQuery, FilesSearchQuerySchema, FolderType, FolderTypeSchema, ForgotPasswordError, ForgotPasswordErrorSpec, Friend, FriendBase, FriendBaseSchema, FriendInvite, FriendInviteJoinedUser, FriendInviteJoinedUserSchema, FriendInviteJoinedUserStatus, FriendInviteJoinedUserStatusSchema, FriendInviteLookupError, FriendInviteLookupErrorSpec, FriendInviteSchema, FriendSchema, FriendSharedFolderError, FriendSharedFolderErrorSpec, GenerateTOTPError, GenerateTOTPErrorSpec, GenerateTOTPResponse, GenerateTOTPResponseSchema, GetDownloadLinksError, GetDownloadLinksErrorSpec, GetEventTorrentError, GetEventTorrentErrorSpec, GetFileChildError, GetFileChildErrorSpec, GetFileError, GetFileErrorSpec, GetHlsMasterPlaylistError, GetHlsMasterPlaylistErrorSpec, GetIftttStatusError, GetIftttStatusErrorSpec, GetOAuthAppError, GetOAuthAppErrorSpec, GetPaddleBillingInvoiceUrlError, GetPaddleBillingInvoiceUrlErrorSpec, GetPaymentInfoError, GetPaymentInfoErrorSpec, GetPaymentVoucherInfoError, GetPaymentVoucherInfoErrorSpec, GetPublicShareError, GetPublicShareErrorSpec, GetPublicShareFileUrlError, GetPublicShareFileUrlErrorSpec, GetRssFeedError, GetRssFeedErrorSpec, GetSharedWithError, GetSharedWithErrorSpec, GetSharingCloneInfoError, GetSharingCloneInfoErrorSpec, GetTransferError, GetTransferErrorSpec, GetTransferTorrentError, GetTransferTorrentErrorSpec, GetZipError, GetZipErrorSpec, GiftCardLookupError, GiftCardLookupErrorSpec, GrantsError, GrantsErrorSpec, HistoryEvent, HistoryEventSchema, HistoryFileFromRssDeletedEventSchema, HistoryFileSharedEvent, HistoryFileSharedEventSchema, HistoryKnownEventType, HistoryKnownEventTypeSchema, HistoryPrivateTorrentPinEventSchema, HistoryRssFilterPausedEventSchema, HistoryTransferCallbackErrorEventSchema, HistoryTransferCompletedEvent, HistoryTransferCompletedEventSchema, HistoryTransferErrorEventSchema, HistoryTransferFromRssErrorEventSchema, HistoryUploadEventSchema, HistoryVoucherEventSchema, HistoryZipCreatedEvent, HistoryZipCreatedEventSchema, IftttEventInput, IftttEventType, JoinFamilyError, JoinFamilyErrorSpec, JsonObjectSchema, JsonValueSchema, LinkDeviceError, LinkDeviceErrorSpec, ListAppSpecificPasswordsError, ListAppSpecificPasswordsErrorSpec, ListEventsError, ListEventsErrorSpec, ListFamilyInvitesError, ListFamilyInvitesErrorSpec, ListFamilyMembersError, ListFamilyMembersErrorSpec, ListFriendInvitesError, ListFriendInvitesErrorSpec, ListFriendsError, ListFriendsErrorSpec, ListPaymentHistoryError, ListPaymentHistoryErrorSpec, ListPaymentInvitesError, ListPaymentInvitesErrorSpec, ListPaymentOptionsError, ListPaymentOptionsErrorSpec, ListPaymentPlansError, ListPaymentPlansErrorSpec, ListPublicShareFilesError, ListPublicShareFilesErrorSpec, ListPublicSharesError, ListPublicSharesErrorSpec, ListRssFeedItemsError, ListRssFeedItemsErrorSpec, ListRssFeedsError, ListRssFeedsErrorSpec, ListSentRequestsError, ListSentRequestsErrorSpec, ListSharedFilesError, ListSharedFilesErrorSpec, ListTransfersError, ListTransfersErrorSpec, ListTrashError, ListTrashErrorSpec, ListTunnelRoutesError, ListTunnelRoutesErrorSpec, ListWaitingRequestsError, ListWaitingRequestsErrorSpec, ListZipsError, ListZipsErrorSpec, LoginError, LoginErrorSpec, LoginInput, LoginResponse, LoginResponseSchema, MyOAuthApp, MyOAuthAppSchema, OAuthApp, OAuthAppCreateInput, OAuthAppCreateInputSchema, OAuthAppSchema, OAuthAppSession, OAuthAppSessionSchema, OAuthAppUpdateInput, OAuthAppUpdateInputSchema, OAuthAppWithTokenSchema, OAuthAuthorizationCodeExchangeError, OAuthAuthorizationCodeExchangeErrorCodeSchema, OAuthAuthorizationCodeExchangeInput, OAuthAuthorizationCodeExchangeInputSchema, OAuthSetIconInput, OAuthSetIconInputSchema, OkResponseSchema, OwnedOAuthApp, OwnedOAuthAppSchema, PasInfo, PasInfoSchema, PauseRssFeedError, PauseRssFeedErrorSpec, PaymentChangePlanPreview, PaymentChangePlanPreviewInput, PaymentChangePlanPreviewSchema, PaymentChangePlanSubmitInput, PaymentChangePlanSubmitResponse, PaymentChangePlanSubmitSchema, PaymentHistoryItem, PaymentHistoryItemSchema, PaymentHistoryQuery, PaymentInfo, PaymentInfoPlanSchema, PaymentInfoSchema, PaymentInvite, PaymentInviteSchema, PaymentOption, PaymentOptionPlanTypeSchema, PaymentOptionSchema, PaymentPaddleWaitingPaymentInput, PaymentPlanGroup, PaymentPlanGroupSchema, PaymentPlanTypeSchema, PaymentProvider, PaymentProviderNameSchema, PaymentProviderSchema, PaymentSubscriptionInfoSchema, PaymentTypeSchema, PaymentVoucherInfo, PaymentVoucherInfoSchema, PodcastGetLinksInput, PodcastGetLinksInputSchema, PodcastLinkType, PodcastLinkTypeSchema, PodcastLinks, PodcastLinksResponse, PodcastLinksSchema, PopularOAuthApp, PopularOAuthAppSchema, PreviewPaymentChangePlanError, PreviewPaymentChangePlanErrorSpec, PublicShare, PublicShareListQuery, PublicShareListQuerySchema, PublicShareSchema, PutioApiError, PutioAuth, PutioAuthError, PutioConfigurationError, PutioErrorEnvelope, PutioErrorEnvelopeSchema, PutioHttpClient, PutioHttpClientShape, PutioHttpRequest, PutioHttpResponse, PutioJsonObject, PutioJsonPrimitive, PutioJsonValue, PutioKnownErrorContract, PutioKnownOperationErrorContract, PutioOperationError, PutioOperationErrorFromSpec, PutioOperationErrorSpec, PutioOperationFailure, PutioPathSegment, PutioQuery, PutioQueryValue, PutioRateLimitError, PutioSdk, PutioSdkConfig, PutioSdkConfigShape, PutioSdkContext, PutioSdkEffectClient, PutioSdkError, PutioSdkPromiseClient, PutioTransportError, PutioTypedErrorEnvelope, PutioUnhandledSdkError, PutioValidationError, QueryFilesError, QueryFilesErrorSpec, QueryOAuthAppsError, QueryOAuthAppsErrorSpec, ReannounceTransferError, ReannounceTransferErrorSpec, RecoveryCodesError, RecoveryCodesErrorSpec, RedeemPaymentVoucherError, RedeemPaymentVoucherErrorSpec, RegenerateOAuthAppTokenError, RegenerateOAuthAppTokenErrorSpec, RegenerateRecoveryCodesError, RegenerateRecoveryCodesErrorSpec, RegisterError, RegisterErrorSpec, RegisterInput, RegisterInputSchema, RemoveFamilyMemberError, RemoveFamilyMemberErrorSpec, RemoveFriendError, RemoveFriendErrorSpec, RemoveTransfersError, RemoveTransfersErrorSpec, RenameFileError, RenameFileErrorSpec, ReportPaymentsError, ReportPaymentsErrorSpec, ResetPasswordError, ResetPasswordErrorSpec, RestoreTrashError, RestoreTrashErrorSpec, ResumeRssFeedError, ResumeRssFeedErrorSpec, RetryAllRssFeedItemsError, RetryAllRssFeedItemsErrorSpec, RetryRssFeedItemError, RetryRssFeedItemErrorSpec, RetryTransferError, RetryTransferErrorSpec, RevokeAllOAuthClientsError, RevokeAllOAuthClientsErrorSpec, RevokeOAuthClientError, RevokeOAuthClientErrorSpec, RevokeOAuthGrantError, RevokeOAuthGrantErrorSpec, RssFeed, RssFeedItem, RssFeedItemFailedSchema, RssFeedItemSchema, RssFeedItemSucceededSchema, RssFeedParams, RssFeedParamsSchema, RssFeedSchema, SHARED_WITH_YOU_ROOT_ID, SaveAccountSettingsError, SaveAccountSettingsErrorSpec, SaveAccountSettingsPayload, SaveAccountSettingsPayloadSchema, SearchFilesError, SearchFilesErrorSpec, SearchFriendsError, SearchFriendsErrorSpec, SendFriendRequestError, SendFriendRequestErrorSpec, SendIftttEventError, SendIftttEventErrorSpec, ShareFilesError, ShareFilesErrorSpec, SharedFile, SharedFileSchema, SharedFileShare, SharedFileShareSchema, SharedFileSharedWith, SharedFileSharedWithSchema, SharingCloneInfo, SharingCloneInfoSchema, SharingCloneInput, SharingCloneInputSchema, SharingCloneStatusSchema, SharingShareInput, SharingShareInputSchema, SharingUnshareInput, SharingUnshareInputSchema, StartFromError, StartFromErrorSpec, StopRecordingTransferError, StopRecordingTransferErrorSpec, StopSubscriptionError, StopSubscriptionErrorSpec, SubmitPaymentChangePlanError, SubmitPaymentChangePlanErrorSpec, TouchFilesError, TouchFilesErrorSpec, Transfer, TransferAddInput, TransferAddInputSchema, TransferAddTrackersInput, TransferAddTrackersInputSchema, TransferBaseSchema, TransferInfoItem, TransferLink, TransferRemoveInput, TransferRemoveInputSchema, TransferSchema, TransferStatus, TransferStatusSchema, TransferType, TransferTypeSchema, TransfersAddMultiError, TransfersContinueResponse, TransfersListQuery, TransfersListQuerySchema, TransfersListResponse, TrashBulkInput, TrashContinueResponse, TrashFile, TrashFileSchema, TrashListQuery, TrashListResponse, TunnelRoute, TunnelRouteSchema, TwoFactorRecoveryCodes, TwoFactorRecoveryCodesSchema, UnshareFileError, UnshareFileErrorSpec, UpdateOAuthAppError, UpdateOAuthAppErrorSpec, UpdateRssFeedError, UpdateRssFeedErrorSpec, UserSearchResult, UserSearchResultSchema, UserSubscriptionStatusSchema, ValidateTokenResponse, ValidateTokenResponseSchema, VerifyTOTPError, VerifyTOTPErrorSpec, VerifyTOTPResponse, VerifyTOTPResponseSchema, VoucherLookupError, VoucherLookupErrorSpec, ZipCreateResponse, ZipInfo, ZipStatusSchema, ZipSummary, addManyTransfers, addTransfer, addTransferTrackers, approveFriendRequest, buildAuthLoginUrl, buildFileApiContentUrl, buildFileApiDownloadUrl, buildFileApiMp4DownloadUrl, buildFileHlsStreamUrl, buildFileXspfPlaylistUrl, buildOAuthAppIconUrl, buildOAuthAuthorizeUrl, buildPutioUrl, canWriteFile, cancelTransfers, cancelZip, checkCodeMatch, classifyPaymentChangePlanResponse, cleanTransfers, clearAccount, clearEvents, clearRssFeedLogs, clients, cloneSharedFiles, confirmFastspringOrder, continueFiles, continuePublicShareFiles, continueSearch, continueTransfers, continueTrash, convertFileSelectionToMp4, convertFileToMp4, convertFilesToMp4, copyFile, countTransfers, countWaitingRequests, createAppSpecificPassword, createDownloadLinks, createFamilyInvite, createFileUploadFormData, createFileUploadRequest, createFolder, createFriendInvite, createOAuthApp, createOpenNodeCharge, createPaddleBillingUpdatePaymentMethodTransaction, createPaddleWaitingPayment, createPublicShare, createPutioSdkEffectClient, createPutioSdkPromiseClient, createRssFeed, createZip, decodePutioErrorEnvelope, definePutioOperationErrorSpec, deleteAllAppSpecificPasswords, deleteAppSpecificPassword, deleteConfigKey, deleteEvent, deleteFileExtraction, deleteFileMp4, deleteFileSelection, deleteFiles, deleteOAuthApp, deletePublicShare, deleteRssFeed, deleteTrash, denyFriendRequest, destroyAccount, emptyTrash, encodePathSegment, exchangeOAuthAuthorizationCode, exists, extractFiles, fallbackPutioErrorEnvelope, findNextFile, findNextVideo, forgotPassword, generateTOTP, getAccountInfo, getAccountSettings, getApiContentUrl, getApiDownloadUrl, getApiMp4DownloadUrl, getCode, getConfigKey, getConfigKeyWith, getDownloadLinks, getDownloadUrl, getEventTorrent, getFamilyInvite, getFile, getFileChild, getFriendInvite, getFriendSharedFolder, getGiftCard, getHlsMasterPlaylist, getHlsStreamUrl, getIftttStatus, getMp4Status, getOAuthApp, getPaddleBillingInvoiceUrl, getPaymentInfo, getPaymentVoucherInfo, getPodcastLinks, getPopularOAuthApps, getPublicShare, getPublicShareFileUrl, getRecoveryCodes, getRssFeed, getSharedWith, getSharingCloneInfo, getStartFrom, getTransfer, getTransferInfo, getTransferTorrent, getVoucher, getXspfPlaylistUrl, getZip, grants, isPutioApiError, isPutioAuthError, isPutioErrorEnvelope, isPutioOperationError, isPutioRateLimitError, joinFamily, linkDevice, listAccountConfirmations, listAccountSubtitleLanguages, listActiveMp4Conversions, listAppSpecificPasswords, listEvents, listFamilyInvites, listFamilyMembers, listFileExtractions, listFileSubtitles, listFriendInvites, listFriends, listPaymentHistory, listPaymentInvites, listPaymentOptions, listPaymentPlans, listPublicShareFiles, listPublicShares, listRssFeedItems, listRssFeeds, listSentRequests, listSharedFiles, listTransfers, listTrash, listTunnelRoutes, listWaitingRequests, listZips, login, logout, makePutioFetchClient, makePutioFetchLayer, makePutioSdkConfig, makePutioSdkEffectClientLayer, makePutioSdkLayer, makePutioSdkLiveClientLayer, makePutioSdkLiveLayer, makeResponseError, mapConfigurationError, mapDecodeErrorToValidationError, mapTransportError, moveFileSelection, moveFiles, parseErrorBody, pauseRssFeed, previewPaymentChangePlan, putMp4ToMyFiles, queryFiles, queryOAuthApps, readConfig, readConfigWith, reannounceTransfer, redeemPaymentVoucher, regenerateOAuthAppToken, regenerateRecoveryCodes, register, removeFamilyMember, removeFriend, removeTransfers, renameFile, reportPayments, requestArrayBuffer, requestJson, requestText, requestVoid, resetFileSortSettings, resetPassword, resetStartFrom, responseRateLimitHeaders, restoreTrash, resumeRssFeed, retryAllRssFeedItems, retryRssFeedItem, retryTransfer, revokeAllClients, revokeApp, revokeClient, saveAccountSettings, searchFiles, searchFriends, selectJsonField, selectJsonFields, sendFriendRequest, sendIftttEvent, setConfigKey, setFileSort, setFilesWatchStatus, setOAuthAppIcon, setStartFrom, shareFiles, stopPaymentSubscription, stopTransferRecording, submitPaymentChangePlan, touchFiles, unshareFile, updateOAuthApp, updateRssFeed, uploadFile, validateToken, verifyTOTP, withOperationErrors, writeConfig };
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { A as decodePutioErrorEnvelope, B as mapDecodeErrorToValidationError, C as PutioAuthError, D as PutioRateLimitError, E as PutioOperationError, F as isPutioErrorEnvelope, H as parseErrorBody, I as isPutioOperationError, L as isPutioRateLimitError, M as fallbackPutioErrorEnvelope, N as isPutioApiError, O as PutioTransportError, P as isPutioAuthError, R as makeResponseError, S as PutioApiError, T as PutioErrorEnvelopeSchema, U as responseRateLimitHeaders, V as mapTransportError, W as withOperationErrors, _ as selectJsonField, a as PutioSdkConfig, b as DEFAULT_PUTIO_UPLOAD_BASE_URL, c as makePutioFetchClient, d as makePutioSdkLayer, f as makePutioSdkLiveLayer, g as requestVoid, h as requestText, i as PutioHttpClient, j as definePutioOperationErrorSpec, k as PutioValidationError, l as makePutioFetchLayer, m as requestJson, n as toCursorSelectionForm, o as buildPutioUrl, p as requestArrayBuffer, r as OkResponseSchema, s as encodePathSegment, t as joinCsv, u as makePutioSdkConfig, v as selectJsonFields, w as PutioConfigurationError, x as DEFAULT_PUTIO_WEB_APP_URL, y as DEFAULT_PUTIO_API_BASE_URL, z as mapConfigurationError } from "./forms-C7FIvCRP.js";
1
+ import { A as decodePutioErrorEnvelope, B as mapDecodeErrorToValidationError, C as PutioAuthError, D as PutioRateLimitError, E as PutioOperationError, F as isPutioErrorEnvelope, H as parseErrorBody, I as isPutioOperationError, L as isPutioRateLimitError, M as fallbackPutioErrorEnvelope, N as isPutioApiError, O as PutioTransportError, P as isPutioAuthError, R as makeResponseError, S as PutioApiError, T as PutioErrorEnvelopeSchema, U as responseRateLimitHeaders, V as mapTransportError, W as withOperationErrors, _ as selectJsonField, a as PutioSdkConfig, b as DEFAULT_PUTIO_UPLOAD_BASE_URL, c as makePutioFetchClient, d as makePutioSdkLayer, f as makePutioSdkLiveLayer, g as requestVoid, h as requestText, i as PutioHttpClient, j as definePutioOperationErrorSpec, k as PutioValidationError, l as makePutioFetchLayer, m as requestJson, n as toCursorSelectionForm, o as buildPutioUrl, p as requestArrayBuffer, r as OkResponseSchema, s as encodePathSegment, t as joinCsv, u as makePutioSdkConfig, v as selectJsonFields, w as PutioConfigurationError, x as DEFAULT_PUTIO_WEB_APP_URL, y as DEFAULT_PUTIO_API_BASE_URL, z as mapConfigurationError } from "./forms-CyWP1xqo.js";
2
2
  import { Cause, Context, Effect, Exit, Layer, ManagedRuntime, Schema, SchemaIssue, SchemaParser } from "effect";
3
3
  //#region src/domains/account.ts
4
4
  const RequestedFlag$1 = Schema.Literal(1);
@@ -1,4 +1,4 @@
1
- import { Am as PutioErrorEnvelope, Dm as PutioApiError, Nm as PutioKnownOperationErrorContract, Om as PutioAuthError, Pm as PutioOperationError, Rm as PutioRateLimitError, zo as FileBroad } from "./index-RtmdAkA_.js";
1
+ import { Am as PutioErrorEnvelope, Dm as PutioApiError, Nm as PutioKnownOperationErrorContract, Om as PutioAuthError, Pm as PutioOperationError, Rm as PutioRateLimitError, zo as FileBroad } from "./index-B-hfGAMs.js";
2
2
  //#region src/utilities/date.d.ts
3
3
  declare const ensureUTC: (date?: unknown) => string;
4
4
  declare const toTimeAgo: (date?: unknown) => string;
package/dist/utilities.js CHANGED
@@ -1,4 +1,4 @@
1
- import { F as isPutioErrorEnvelope, o as buildPutioUrl, s as encodePathSegment, t as joinCsv } from "./forms-C7FIvCRP.js";
1
+ import { F as isPutioErrorEnvelope, o as buildPutioUrl, s as encodePathSegment, t as joinCsv } from "./forms-CyWP1xqo.js";
2
2
  import { Predicate } from "effect";
3
3
  //#region src/utilities/date.ts
4
4
  const LONG_DATE_FORMATTER = new Intl.DateTimeFormat("en-US", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@putdotio/sdk",
3
- "version": "11.4.0",
3
+ "version": "11.4.1",
4
4
  "description": "Effect-first TypeScript SDK for the put.io API.",
5
5
  "keywords": [
6
6
  "effect",
@@ -1 +0,0 @@
1
- {"version":3,"file":"forms-C7FIvCRP.js","names":[],"sources":["../src/core/errors.ts","../src/core/defaults.ts","../src/core/http.ts","../src/core/forms.ts"],"sourcesContent":["import { Data, Effect, Predicate, Schema } from \"effect\";\n\nexport const PutioErrorEnvelopeSchema = Schema.Struct({\n status: Schema.optional(Schema.String),\n error: Schema.optional(Schema.String),\n error_message: Schema.optional(Schema.String),\n error_type: Schema.optional(Schema.String),\n error_uri: Schema.optional(Schema.String),\n error_id: Schema.optional(Schema.NullOr(Schema.String)),\n extra: Schema.optional(Schema.Record(Schema.String, Schema.Unknown)),\n status_code: Schema.optional(Schema.Int),\n details: Schema.optional(Schema.Unknown),\n});\n\nexport type PutioErrorEnvelope = Schema.Schema.Type<typeof PutioErrorEnvelopeSchema>;\n\nexport interface PutioKnownErrorContract<\n TType extends string = string,\n TStatus extends number = number,\n TBody extends PutioErrorEnvelope = PutioErrorEnvelope,\n> {\n readonly bodySchema?: Schema.Schema<TBody> | undefined;\n readonly errorType?: TType | undefined;\n readonly statusCode?: TStatus | undefined;\n}\n\ntype ContractErrorType<TContract extends PutioKnownErrorContract> =\n TContract extends PutioKnownErrorContract<infer TType, number> ? TType : never;\n\ntype ContractStatusCode<TContract extends PutioKnownErrorContract> =\n TContract extends PutioKnownErrorContract<string, infer TStatus> ? TStatus : never;\n\ntype ContractBody<TContract extends PutioKnownErrorContract> = TContract extends {\n readonly bodySchema: Schema.Schema<infer TBody extends PutioErrorEnvelope>;\n}\n ? TBody\n : PutioErrorEnvelope;\n\nexport type PutioTypedErrorEnvelope<TContract extends PutioKnownErrorContract> =\n TContract extends PutioKnownErrorContract\n ? Omit<ContractBody<TContract>, \"error_message\" | \"error_type\" | \"status_code\"> & {\n readonly error_message?: string;\n readonly error_type?: [ContractErrorType<TContract>] extends [never]\n ? string\n : ContractErrorType<TContract>;\n readonly status_code?: [ContractStatusCode<TContract>] extends [never]\n ? number\n : ContractStatusCode<TContract>;\n }\n : never;\n\nexport interface PutioOperationErrorSpec<\n TDomain extends string = string,\n TOperation extends string = string,\n TContracts extends ReadonlyArray<PutioKnownErrorContract> =\n ReadonlyArray<PutioKnownErrorContract>,\n> {\n readonly domain: TDomain;\n readonly operation: TOperation;\n readonly knownErrors: TContracts;\n}\n\ntype OperationContractOf<TSpec extends PutioOperationErrorSpec> = Extract<\n TSpec[\"knownErrors\"][number],\n PutioKnownOperationErrorContract\n>;\n\ntype OperationContractOfParts<\n TDomain extends string,\n TOperation extends string,\n TContracts extends ReadonlyArray<PutioKnownErrorContract>,\n> = OperationContractOf<PutioOperationErrorSpec<TDomain, TOperation, TContracts>>;\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 Extract<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 error._tag === \"PutioApiError\" || error._tag === \"PutioAuthError\";\n\nconst hasOptionalString = (record: Readonly<Record<string, unknown>>, key: string): boolean =>\n !(key in record) || record[key] === undefined || typeof record[key] === \"string\";\n\nconst hasOptionalInteger = (record: Readonly<Record<string, unknown>>, key: string): boolean =>\n !(key in record) ||\n record[key] === undefined ||\n (typeof record[key] === \"number\" && Number.isInteger(record[key]));\n\nconst hasOptionalNullableString = (\n record: Readonly<Record<string, unknown>>,\n key: string,\n): boolean =>\n !(key in record) ||\n record[key] === undefined ||\n record[key] === null ||\n typeof record[key] === \"string\";\n\nconst hasOptionalRecord = (record: Readonly<Record<string, unknown>>, key: string): boolean =>\n !(key in record) || record[key] === undefined || Predicate.isObject(record[key]);\n\nconst isKnownOperationErrorContract = (value: unknown): value is PutioKnownOperationErrorContract =>\n Predicate.isObject(value) &&\n (typeof value.errorType === \"string\" || typeof value.statusCode === \"number\") &&\n hasOptionalString(value, \"errorType\") &&\n hasOptionalInteger(value, \"statusCode\");\n\nconst isOperationReason = (\n value: unknown,\n): value is PutioOperationErrorReason<PutioKnownOperationErrorContract> => {\n if (!Predicate.isObject(value)) {\n return false;\n }\n\n if (value.kind === \"error_type\") {\n return typeof value.errorType === \"string\";\n }\n\n if (value.kind === \"status_code\") {\n return typeof value.statusCode === \"number\";\n }\n\n return false;\n};\n\nfunction toOperationReason<TContract extends { readonly errorType: string }>(\n contract: TContract,\n): PutioOperationErrorReason<TContract>;\nfunction toOperationReason<TContract extends { readonly statusCode: number }>(\n contract: TContract,\n): PutioOperationErrorReason<TContract>;\nfunction toOperationReason(\n contract: PutioKnownOperationErrorContract,\n): PutioOperationErrorReason<PutioKnownOperationErrorContract> {\n if (contract.errorType !== undefined) {\n return {\n kind: \"error_type\",\n errorType: contract.errorType,\n };\n }\n\n return {\n kind: \"status_code\",\n statusCode: contract.statusCode,\n };\n}\n\nexport class PutioTransportError extends Data.TaggedError(\"PutioTransportError\")<{\n readonly cause: unknown;\n}> {}\n\nexport class PutioConfigurationError extends Data.TaggedError(\"PutioConfigurationError\")<{\n readonly cause: unknown;\n}> {}\n\nexport class PutioValidationError extends Data.TaggedError(\"PutioValidationError\")<{\n readonly cause: unknown;\n}> {}\n\nconst PutioResponseErrorFields = {\n status: Schema.Int,\n body: PutioErrorEnvelopeSchema,\n};\n\nexport class PutioApiError extends Schema.TaggedError<PutioApiError>()(\"PutioApiError\", {\n ...PutioResponseErrorFields,\n}) {}\n\nexport class PutioAuthError extends Schema.TaggedError<PutioAuthError>()(\"PutioAuthError\", {\n ...PutioResponseErrorFields,\n}) {}\n\nexport class PutioRateLimitError extends Schema.TaggedError<PutioRateLimitError>()(\n \"PutioRateLimitError\",\n {\n ...PutioResponseErrorFields,\n action: Schema.optional(Schema.String),\n id: Schema.optional(Schema.String),\n limit: Schema.optional(Schema.String),\n remaining: Schema.optional(Schema.String),\n retryAfter: Schema.optional(Schema.String),\n reset: Schema.optional(Schema.String),\n },\n) {}\n\nexport class PutioOperationError<\n TDomain extends string,\n TOperation extends string,\n TContract extends PutioKnownOperationErrorContract,\n> extends Data.TaggedError(\"PutioOperationError\")<{\n readonly body: PutioTypedErrorEnvelope<TContract>;\n readonly contract: TContract;\n readonly domain: TDomain;\n readonly operation: TOperation;\n readonly reason: PutioOperationErrorReason<TContract>;\n readonly status: number;\n}> {}\n\nexport type PutioSdkError =\n | PutioConfigurationError\n | PutioTransportError\n | PutioValidationError\n | PutioApiError\n | PutioAuthError\n | PutioRateLimitError;\n\nexport type PutioUnhandledSdkError =\n | PutioConfigurationError\n | PutioTransportError\n | PutioValidationError\n | PutioApiError\n | PutioAuthError\n | PutioRateLimitError;\n\nexport type PutioOperationErrorFromSpec<TSpec extends PutioOperationErrorSpec> =\n PutioOperationError<TSpec[\"domain\"], TSpec[\"operation\"], OperationContractOf<TSpec>>;\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\nexport const isPutioErrorEnvelope = (value: unknown): value is PutioErrorEnvelope =>\n Predicate.isObject(value) &&\n hasOptionalString(value, \"status\") &&\n hasOptionalString(value, \"error\") &&\n hasOptionalString(value, \"error_message\") &&\n hasOptionalString(value, \"error_type\") &&\n hasOptionalString(value, \"error_uri\") &&\n hasOptionalNullableString(value, \"error_id\") &&\n hasOptionalRecord(value, \"extra\") &&\n hasOptionalInteger(value, \"status_code\");\n\nconst hasStatusAndBody = <TTag extends string>(\n value: unknown,\n tag: TTag,\n): value is {\n readonly _tag: TTag;\n readonly body: PutioErrorEnvelope;\n readonly status: number;\n} =>\n Predicate.isObject(value) &&\n value._tag === tag &&\n typeof value.status === \"number\" &&\n isPutioErrorEnvelope(value.body);\n\nexport const isPutioApiError = (value: unknown): value is PutioApiError =>\n hasStatusAndBody(value, \"PutioApiError\");\n\nexport const isPutioAuthError = (value: unknown): value is PutioAuthError =>\n hasStatusAndBody(value, \"PutioAuthError\");\n\nexport const isPutioRateLimitError = (value: unknown): value is PutioRateLimitError =>\n hasStatusAndBody(value, \"PutioRateLimitError\") &&\n Predicate.isObject(value) &&\n hasOptionalString(value, \"action\") &&\n hasOptionalString(value, \"id\") &&\n hasOptionalString(value, \"limit\") &&\n hasOptionalString(value, \"remaining\") &&\n hasOptionalString(value, \"retryAfter\") &&\n hasOptionalString(value, \"reset\");\n\nexport const isPutioOperationError = (value: unknown): value is AnyPutioOperationError =>\n Predicate.isObject(value) &&\n value._tag === \"PutioOperationError\" &&\n isPutioErrorEnvelope(value.body) &&\n isKnownOperationErrorContract(value.contract) &&\n typeof value.domain === \"string\" &&\n typeof value.operation === \"string\" &&\n isOperationReason(value.reason) &&\n typeof value.status === \"number\";\n\nexport const fallbackPutioErrorEnvelope = (status: number): PutioErrorEnvelope => ({\n error_message: `put.io API request failed with status ${status}`,\n status_code: status,\n});\n\nconst getHeader = (headers: Headers, name: string): string | undefined =>\n headers.get(name) ?? undefined;\n\nexport const responseRateLimitHeaders = (headers: Headers) => ({\n action: getHeader(headers, \"x-ratelimit-action\"),\n id: getHeader(headers, \"x-ratelimit-id\"),\n limit: getHeader(headers, \"x-ratelimit-limit\"),\n remaining: getHeader(headers, \"x-ratelimit-remaining\"),\n retryAfter: getHeader(headers, \"retry-after\"),\n reset: getHeader(headers, \"x-ratelimit-reset\"),\n});\n\nexport const mapDecodeErrorToValidationError = (cause: unknown) =>\n new PutioValidationError({ cause });\n\nexport const mapConfigurationError = (cause: unknown) => new PutioConfigurationError({ cause });\n\nexport const mapTransportError = (cause: unknown) => new PutioTransportError({ cause });\n\nexport const makeResponseError = (\n status: number,\n headers: Headers,\n body: PutioErrorEnvelope,\n): PutioSdkError => {\n if (status === 429) {\n return new PutioRateLimitError({\n status,\n body,\n ...responseRateLimitHeaders(headers),\n });\n }\n\n if (status === 401 || status === 403) {\n return new PutioAuthError({ status, body });\n }\n\n return new PutioApiError({ status, body });\n};\n\nexport const parseErrorBody = (status: number, json: unknown) =>\n decodePutioErrorEnvelope(json).pipe(\n Effect.orElseSucceed(() => fallbackPutioErrorEnvelope(status)),\n );\n\nexport function withOperationErrors<\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\n | PutioOperationError<\n TDomain,\n TOperation,\n OperationContractOfParts<TDomain, TOperation, TContracts>\n >,\n R\n>;\nexport function withOperationErrors<\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\n | PutioOperationError<\n TDomain,\n TOperation,\n OperationContractOfParts<TDomain, TOperation, TContracts>\n >,\n R\n>;\nexport function withOperationErrors<\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 effectOrSpec: Effect.Effect<A, E, R> | PutioOperationErrorSpec<TDomain, TOperation, TContracts>,\n maybeSpec?: PutioOperationErrorSpec<TDomain, TOperation, TContracts>,\n):\n | Effect.Effect<\n A,\n | E\n | PutioOperationError<\n TDomain,\n TOperation,\n OperationContractOfParts<TDomain, TOperation, TContracts>\n >,\n R\n >\n | (<A2, E2 extends PutioSdkError, R2>(\n effect: Effect.Effect<A2, E2, R2>,\n ) => Effect.Effect<\n A2,\n | E2\n | PutioOperationError<\n TDomain,\n TOperation,\n OperationContractOfParts<TDomain, TOperation, TContracts>\n >,\n R2\n >) {\n if (maybeSpec === undefined) {\n const spec = effectOrSpec as PutioOperationErrorSpec<TDomain, TOperation, TContracts>;\n\n return <A2, E2 extends PutioSdkError, R2>(effect: Effect.Effect<A2, E2, R2>) =>\n withOperationErrors(effect, spec);\n }\n\n const effect = effectOrSpec as Effect.Effect<A, E, R>;\n const spec = maybeSpec;\n\n return effect.pipe(\n Effect.mapError((error) => {\n if (!isMatchableApiError(error)) {\n return error;\n }\n\n const contract = spec.knownErrors.find((candidate) => isKnownContractMatch(candidate, error));\n\n if (!contract) {\n return error;\n }\n\n return new PutioOperationError({\n body: error.body as PutioTypedErrorEnvelope<\n OperationContractOfParts<TDomain, TOperation, TContracts>\n >,\n contract,\n domain: spec.domain,\n operation: spec.operation,\n reason: toOperationReason(contract),\n status: error.status,\n });\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 { Context, Effect, Layer, Schema } 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 makeResponseError,\n mapConfigurationError,\n mapDecodeErrorToValidationError,\n mapTransportError,\n parseErrorBody,\n PutioConfigurationError,\n type PutioSdkError,\n} from \"./errors.js\";\n\nexport type PutioQueryValue = string | number | boolean | null | undefined;\n\nexport type PutioQuery = Readonly<Record<string, PutioQueryValue>>;\n\nexport type PutioPathSegment = string | number | boolean;\n\nexport interface PutioSdkConfigShape {\n readonly accessToken?: string;\n readonly baseUrl?: string | URL;\n readonly uploadBaseUrl?: string | URL;\n readonly webAppUrl?: string | URL;\n}\n\nexport class PutioSdkConfig extends Context.Service<PutioSdkConfig, PutioSdkConfigShape>()(\n \"PutioSdkConfig\",\n) {}\n\nexport interface PutioHttpRequest {\n readonly body?: BodyInit;\n readonly headers: Headers;\n readonly method: PutioRequestMethod;\n readonly url: string;\n}\n\nexport interface PutioHttpResponse {\n readonly arrayBuffer: Effect.Effect<ArrayBuffer, PutioSdkError>;\n readonly headers: Headers;\n readonly json: Effect.Effect<unknown, PutioSdkError>;\n readonly status: number;\n}\n\nexport interface PutioHttpClientShape {\n readonly execute: (request: PutioHttpRequest) => Effect.Effect<PutioHttpResponse, PutioSdkError>;\n}\n\nexport class PutioHttpClient extends Context.Service<PutioHttpClient, PutioHttpClientShape>()(\n \"PutioHttpClient\",\n) {}\n\nexport type PutioSdkContext = PutioSdkConfig | PutioHttpClient;\n\nexport const makePutioSdkConfig = (config: PutioSdkConfigShape): PutioSdkConfigShape => ({\n accessToken: config.accessToken,\n baseUrl: config.baseUrl ?? DEFAULT_PUTIO_API_BASE_URL,\n uploadBaseUrl: config.uploadBaseUrl ?? DEFAULT_PUTIO_UPLOAD_BASE_URL,\n webAppUrl: config.webAppUrl ?? DEFAULT_PUTIO_WEB_APP_URL,\n});\n\nexport const makePutioSdkLayer = (config: PutioSdkConfigShape) =>\n Layer.succeed(PutioSdkConfig, makePutioSdkConfig(config));\n\nexport const makePutioSdkLiveLayer = (config: PutioSdkConfigShape) =>\n Layer.mergeAll(makePutioSdkLayer(config), makePutioFetchLayer());\n\nexport const makePutioFetchLayer = (\n fetchImplementation: typeof globalThis.fetch = globalThis.fetch,\n) => Layer.succeed(PutioHttpClient, makePutioFetchClient(fetchImplementation));\n\nexport const makePutioFetchClient = (\n fetchImplementation: typeof globalThis.fetch = globalThis.fetch,\n): PutioHttpClientShape => ({\n execute: (request) =>\n Effect.tryPromise({\n try: async (signal) => {\n const response = await fetchImplementation(request.url, {\n body: request.body,\n headers: request.headers,\n method: request.method,\n signal,\n });\n\n return {\n arrayBuffer: Effect.tryPromise({\n try: () => response.arrayBuffer(),\n catch: mapTransportError,\n }),\n headers: response.headers,\n json: Effect.tryPromise({\n try: () => response.json(),\n catch: mapTransportError,\n }),\n status: response.status,\n };\n },\n catch: mapTransportError,\n }),\n});\n\nexport const encodePathSegment = (value: PutioPathSegment): string =>\n encodeURIComponent(String(value));\n\nconst absoluteUrlPattern = /^(?:[a-z][a-z\\d+.-]*:|\\/\\/)/i;\n\nconst normalizeApiPath = (path: string): string => {\n if (absoluteUrlPattern.test(path)) {\n throw mapConfigurationError(\"SDK API request paths must be relative to the configured baseUrl\");\n }\n\n 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 : mapConfigurationError(cause);\n\nexport const OkResponseSchema = Schema.Struct({\n status: Schema.Literal(\"OK\"),\n});\n\nexport type PutioAuth =\n | { readonly type: \"config-token\" }\n | { readonly type: \"token\"; readonly token: string }\n | { readonly type: \"basic\"; readonly username: string; readonly password: string }\n | { readonly type: \"none\" };\n\ntype PutioRequestMethod = \"GET\" | \"POST\" | \"PUT\" | \"PATCH\" | \"DELETE\";\n\ntype PutioRequestBody =\n | { readonly type: \"none\" }\n | { readonly type: \"json\"; readonly value: unknown }\n | { readonly type: \"form\"; readonly value: Record<string, unknown> }\n | { readonly type: \"form-data\"; readonly value: FormData };\n\ninterface PutioRequestOptions {\n readonly method: PutioRequestMethod;\n readonly path: string;\n readonly baseUrl?: string | URL;\n readonly query?: PutioQuery;\n readonly headers?: HeadersInit;\n readonly auth?: PutioAuth;\n readonly body?: PutioRequestBody;\n}\n\nconst isSuccessStatus = (status: number) => status >= 200 && status < 300;\n\nconst decodeSuccessJson = <S extends Schema.Top>(schema: S, response: PutioHttpResponse) =>\n response.json.pipe(\n Effect.flatMap((json) =>\n Schema.decodeUnknownEffect(schema)(json).pipe(\n Effect.mapError(mapDecodeErrorToValidationError),\n ),\n ),\n );\n\nconst decodeFailure = (response: PutioHttpResponse, headers: Headers) =>\n response.json.pipe(\n Effect.flatMap((json) => parseErrorBody(response.status, json)),\n Effect.map((body) => makeResponseError(response.status, headers, body)),\n );\n\nconst toBasicAuthorization = (username: string, password: string) => {\n if (typeof globalThis.btoa === \"function\") {\n return `Basic ${globalThis.btoa(`${username}:${password}`)}`;\n }\n\n throw mapConfigurationError(\n \"This runtime does not provide btoa(), so Basic auth cannot be encoded safely\",\n );\n};\n\nconst resolveAuthorization = (\n config: PutioSdkConfigShape,\n auth: PutioAuth | undefined,\n): Effect.Effect<string | undefined, PutioSdkError> => {\n const resolvedAuth = auth ?? { type: \"config-token\" as const };\n\n switch (resolvedAuth.type) {\n case \"none\":\n return Effect.succeed(undefined);\n case \"token\":\n return Effect.succeed(`Token ${resolvedAuth.token}`);\n case \"basic\":\n return Effect.try({\n try: () => toBasicAuthorization(resolvedAuth.username, resolvedAuth.password),\n catch: mapConfigurationError,\n });\n case \"config-token\":\n if (!config.accessToken) {\n return Effect.fail(\n mapConfigurationError(\n \"This endpoint requires an access token, but PutioSdkConfig.accessToken is missing\",\n ),\n );\n }\n\n return Effect.succeed(`Token ${config.accessToken}`);\n }\n};\n\nconst normalizeFormValue = (value: unknown): string => {\n if (value === null || value === undefined) {\n return \"\";\n }\n\n if (typeof value === \"string\") {\n return value;\n }\n\n if (typeof value === \"number\" || typeof value === \"boolean\") {\n return String(value);\n }\n\n return JSON.stringify(value);\n};\n\nconst withBody = (body: PutioRequestBody): Effect.Effect<BodyInit | undefined, PutioSdkError> => {\n switch (body.type) {\n case \"none\":\n return Effect.succeed(undefined);\n case \"json\":\n return Effect.try({\n try: () => JSON.stringify(body.value),\n catch: mapDecodeErrorToValidationError,\n });\n case \"form\":\n return Effect.succeed(\n new URLSearchParams(\n Object.entries(body.value).flatMap(([key, value]) =>\n value === undefined ? [] : [[key, normalizeFormValue(value)]],\n ),\n ),\n );\n case \"form-data\":\n return Effect.succeed(body.value);\n }\n};\n\nconst makeRequest = (url: string, options: PutioRequestOptions, authorization?: string) =>\n Effect.gen(function* () {\n const headers = new Headers(options.headers);\n\n const body = options.body ?? { type: \"none\" as const };\n if (!headers.has(\"accept\")) {\n headers.set(\"accept\", \"application/json\");\n }\n\n if (authorization) {\n headers.set(\"authorization\", authorization);\n }\n\n if (body.type === \"json\" && !headers.has(\"content-type\")) {\n headers.set(\"content-type\", \"application/json\");\n }\n\n return {\n body: yield* withBody(body),\n headers,\n method: options.method,\n url,\n };\n });\n\nconst executeRequest = (options: PutioRequestOptions) =>\n Effect.gen(function* () {\n const config = yield* PutioSdkConfig;\n const httpClient = yield* PutioHttpClient;\n const authorization = yield* resolveAuthorization(config, options.auth);\n const url = yield* Effect.try({\n try: () =>\n buildPutioUrl(\n options.baseUrl ?? config.baseUrl ?? DEFAULT_PUTIO_API_BASE_URL,\n options.path,\n options.query,\n ),\n catch: mapUrlBuildError,\n });\n const request = yield* makeRequest(url, options, authorization);\n\n return yield* httpClient.execute(request);\n });\n\nexport const requestJson = <S extends Schema.Top>(\n schema: S,\n options: PutioRequestOptions,\n): Effect.Effect<S[\"Type\"], PutioSdkError, PutioSdkContext | S[\"DecodingServices\"]> =>\n executeRequest(options).pipe(\n Effect.flatMap((response) =>\n isSuccessStatus(response.status)\n ? decodeSuccessJson(schema, response)\n : decodeFailure(response, response.headers).pipe(Effect.flatMap(Effect.fail)),\n ),\n );\n\nexport const selectJsonField =\n <K extends string>(field: K) =>\n <A extends { readonly [P in K]: unknown }, E, R>(\n effect: Effect.Effect<A, E, R>,\n ): Effect.Effect<A[K], E, R> =>\n effect.pipe(Effect.map((value) => value[field]));\n\nexport const selectJsonFields =\n <const K extends readonly string[]>(...fields: K) =>\n <A extends { readonly [P in K[number]]: unknown }, E, R>(\n effect: Effect.Effect<A, E, R>,\n ): Effect.Effect<Pick<A, K[number]>, E, R> =>\n effect.pipe(\n Effect.map(\n (value) =>\n Object.fromEntries(fields.map((field) => [field, value[field as K[number]]])) as Pick<\n A,\n K[number]\n >,\n ),\n );\n\nexport const requestArrayBuffer = (\n options: PutioRequestOptions,\n): Effect.Effect<Uint8Array, PutioSdkError, PutioSdkContext> =>\n executeRequest(options).pipe(\n Effect.flatMap((response) =>\n isSuccessStatus(response.status)\n ? response.arrayBuffer.pipe(Effect.map((buffer) => new Uint8Array(buffer)))\n : decodeFailure(response, response.headers).pipe(Effect.flatMap(Effect.fail)),\n ),\n );\n\nexport const requestText = (\n options: PutioRequestOptions,\n): Effect.Effect<string, PutioSdkError, PutioSdkContext> =>\n requestArrayBuffer(options).pipe(Effect.map((bytes) => new TextDecoder().decode(bytes)));\n\nexport const requestVoid = (\n options: PutioRequestOptions,\n): Effect.Effect<void, PutioSdkError, PutioSdkContext> =>\n executeRequest(options).pipe(\n Effect.flatMap((response) =>\n isSuccessStatus(response.status)\n ? Effect.void\n : decodeFailure(response, response.headers).pipe(Effect.flatMap(Effect.fail)),\n ),\n );\n","type CsvValue = string | number;\n\nexport interface CursorSelectionInput<TValue extends CsvValue = number> {\n readonly cursor?: string;\n readonly excludeIds?: ReadonlyArray<TValue>;\n readonly ids?: ReadonlyArray<TValue>;\n}\n\nexport const joinCsv = <TValue extends CsvValue>(\n values: ReadonlyArray<TValue> | undefined,\n): string | undefined => (values && values.length > 0 ? values.join(\",\") : undefined);\n\nexport const toCursorSelectionForm = <\n TValue extends CsvValue,\n const TIdsFieldName extends string = \"file_ids\",\n>(\n selection: CursorSelectionInput<TValue>,\n idsFieldName?: TIdsFieldName,\n): {\n readonly cursor?: string;\n readonly exclude_ids?: string;\n} & Record<TIdsFieldName, string | undefined> => {\n const resolvedIdsFieldName = (idsFieldName ?? \"file_ids\") as TIdsFieldName;\n\n return {\n cursor: selection.cursor,\n exclude_ids: joinCsv(selection.excludeIds),\n [resolvedIdsFieldName]: joinCsv(selection.ids),\n } as {\n readonly cursor?: string;\n readonly exclude_ids?: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