@putdotio/sdk 9.2.0 → 9.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -3
- package/dist/{forms-NEv3jqmj.js → forms-DCO3Ckbx.js} +57 -23
- package/dist/forms-DCO3Ckbx.js.map +1 -0
- package/dist/{index-Bdf0QH3l.d.ts → index-C4NwsF9x.d.ts} +46 -13
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/utilities.d.ts +1 -1
- package/dist/utilities.js +1 -1
- package/package.json +9 -2
- package/dist/forms-NEv3jqmj.js.map +0 -1
package/README.md
CHANGED
|
@@ -107,9 +107,9 @@ const serviceProgram = Effect.gen(function* () {
|
|
|
107
107
|
}).pipe(Effect.provide(makePutioSdkLiveClientLayer({ accessToken: userAccessToken })));
|
|
108
108
|
```
|
|
109
109
|
|
|
110
|
-
`makePutioSdkLiveClientLayer(...)` provides the SDK service, SDK config, and default fetch-backed
|
|
111
|
-
`makePutioSdkLiveLayer(...)` provides both the SDK config and the default fetch-backed
|
|
112
|
-
Use `makePutioSdkLayer(...)`
|
|
110
|
+
`makePutioSdkLiveClientLayer(...)` provides the SDK service, SDK config, and default fetch-backed transport.
|
|
111
|
+
`makePutioSdkLiveLayer(...)` provides both the SDK config and the default fetch-backed transport.
|
|
112
|
+
Use `makePutioSdkLayer(...)` with `makePutioFetchLayer(...)` or your own `PutioHttpClient` service when you want to supply custom transport.
|
|
113
113
|
|
|
114
114
|
## Side-By-Side Usage
|
|
115
115
|
|
|
@@ -189,6 +189,8 @@ For upload flows, the host should also provide file-compatible inputs such as `F
|
|
|
189
189
|
|
|
190
190
|
If a target runtime is missing these APIs, provide them with host-level polyfills or adapters instead of patching the SDK surface.
|
|
191
191
|
|
|
192
|
+
The package compatibility gate installs the packed tarball into external consumers and runs strict Node type/runtime checks, bundled browser checks in Chromium, Firefox, and WebKit, and a Bun runtime import check.
|
|
193
|
+
|
|
192
194
|
## Error Handling
|
|
193
195
|
|
|
194
196
|
Promise consumers receive tagged SDK error objects:
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { Context, Data, Effect, Layer,
|
|
2
|
-
import { FetchHttpClient, Headers, HttpClient, HttpClientRequest, HttpClientResponse } from "effect/unstable/http";
|
|
1
|
+
import { Context, Data, Effect, Layer, Schema } from "effect";
|
|
3
2
|
//#region src/core/errors.ts
|
|
4
3
|
const PutioErrorEnvelopeSchema = Schema.Struct({
|
|
5
4
|
error_message: Schema.optional(Schema.String),
|
|
@@ -67,13 +66,14 @@ const fallbackPutioErrorEnvelope = (status) => ({
|
|
|
67
66
|
error_message: `put.io API request failed with status ${status}`,
|
|
68
67
|
status_code: status
|
|
69
68
|
});
|
|
69
|
+
const getHeader = (headers, name) => headers.get(name) ?? void 0;
|
|
70
70
|
const responseRateLimitHeaders = (headers) => ({
|
|
71
|
-
action:
|
|
72
|
-
id:
|
|
73
|
-
limit:
|
|
74
|
-
remaining:
|
|
75
|
-
retryAfter:
|
|
76
|
-
reset:
|
|
71
|
+
action: getHeader(headers, "x-ratelimit-action"),
|
|
72
|
+
id: getHeader(headers, "x-ratelimit-id"),
|
|
73
|
+
limit: getHeader(headers, "x-ratelimit-limit"),
|
|
74
|
+
remaining: getHeader(headers, "x-ratelimit-remaining"),
|
|
75
|
+
retryAfter: getHeader(headers, "retry-after"),
|
|
76
|
+
reset: getHeader(headers, "x-ratelimit-reset")
|
|
77
77
|
});
|
|
78
78
|
const mapDecodeErrorToValidationError = (cause) => new PutioValidationError({ cause });
|
|
79
79
|
const mapConfigurationError = (cause) => new PutioConfigurationError({ cause });
|
|
@@ -123,6 +123,7 @@ const DEFAULT_PUTIO_WEB_APP_URL = "https://app.put.io";
|
|
|
123
123
|
//#endregion
|
|
124
124
|
//#region src/core/http.ts
|
|
125
125
|
var PutioSdkConfig = class extends Context.Service()("PutioSdkConfig") {};
|
|
126
|
+
var PutioHttpClient = class extends Context.Service()("PutioHttpClient") {};
|
|
126
127
|
const makePutioSdkConfig = (config) => ({
|
|
127
128
|
accessToken: config.accessToken,
|
|
128
129
|
baseUrl: config.baseUrl ?? "https://api.put.io",
|
|
@@ -130,7 +131,31 @@ const makePutioSdkConfig = (config) => ({
|
|
|
130
131
|
webAppUrl: config.webAppUrl ?? "https://app.put.io"
|
|
131
132
|
});
|
|
132
133
|
const makePutioSdkLayer = (config) => Layer.succeed(PutioSdkConfig, makePutioSdkConfig(config));
|
|
133
|
-
const makePutioSdkLiveLayer = (config) => Layer.mergeAll(makePutioSdkLayer(config),
|
|
134
|
+
const makePutioSdkLiveLayer = (config) => Layer.mergeAll(makePutioSdkLayer(config), makePutioFetchLayer());
|
|
135
|
+
const makePutioFetchLayer = (fetchImplementation = globalThis.fetch) => Layer.succeed(PutioHttpClient, makePutioFetchClient(fetchImplementation));
|
|
136
|
+
const makePutioFetchClient = (fetchImplementation = globalThis.fetch) => ({ execute: (request) => Effect.tryPromise({
|
|
137
|
+
try: async (signal) => {
|
|
138
|
+
const response = await fetchImplementation(request.url, {
|
|
139
|
+
body: request.body,
|
|
140
|
+
headers: request.headers,
|
|
141
|
+
method: request.method,
|
|
142
|
+
signal
|
|
143
|
+
});
|
|
144
|
+
return {
|
|
145
|
+
arrayBuffer: Effect.tryPromise({
|
|
146
|
+
try: () => response.arrayBuffer(),
|
|
147
|
+
catch: mapTransportError
|
|
148
|
+
}),
|
|
149
|
+
headers: response.headers,
|
|
150
|
+
json: Effect.tryPromise({
|
|
151
|
+
try: () => response.json(),
|
|
152
|
+
catch: mapTransportError
|
|
153
|
+
}),
|
|
154
|
+
status: response.status
|
|
155
|
+
};
|
|
156
|
+
},
|
|
157
|
+
catch: mapTransportError
|
|
158
|
+
}) });
|
|
134
159
|
const encodePathSegment = (value) => encodeURIComponent(String(value));
|
|
135
160
|
const absoluteUrlPattern = /^(?:[a-z][a-z\d+.-]*:|\/\/)/i;
|
|
136
161
|
const normalizeApiPath = (path) => {
|
|
@@ -147,7 +172,7 @@ const buildPutioUrl = (baseUrl, path, query) => {
|
|
|
147
172
|
const mapUrlBuildError = (cause) => cause instanceof PutioConfigurationError ? cause : mapConfigurationError(cause);
|
|
148
173
|
const OkResponseSchema = Schema.Struct({ status: Schema.Literal("OK") });
|
|
149
174
|
const isSuccessStatus = (status) => status >= 200 && status < 300;
|
|
150
|
-
const decodeSuccessJson = (schema, response) =>
|
|
175
|
+
const decodeSuccessJson = (schema, response) => response.json.pipe(Effect.flatMap(Schema.decodeUnknownEffect(schema)), Effect.mapError(mapDecodeErrorToValidationError));
|
|
151
176
|
const decodeFailure = (response, headers) => response.json.pipe(Effect.flatMap((json) => parseErrorBody(response.status, json)), Effect.orElseSucceed(() => fallbackPutioErrorEnvelope(response.status)), Effect.map((body) => makeResponseError(response.status, headers, body)));
|
|
152
177
|
const toBasicAuthorization = (username, password) => {
|
|
153
178
|
if (typeof globalThis.btoa === "function") return `Basic ${globalThis.btoa(`${username}:${password}`)}`;
|
|
@@ -173,30 +198,39 @@ const normalizeFormValue = (value) => {
|
|
|
173
198
|
if (typeof value === "number" || typeof value === "boolean") return String(value);
|
|
174
199
|
return JSON.stringify(value);
|
|
175
200
|
};
|
|
176
|
-
const withBody = (
|
|
201
|
+
const withBody = (body) => {
|
|
177
202
|
switch (body.type) {
|
|
178
|
-
case "none": return Effect.succeed(
|
|
179
|
-
case "json": return
|
|
180
|
-
|
|
181
|
-
|
|
203
|
+
case "none": return Effect.succeed(void 0);
|
|
204
|
+
case "json": return Effect.try({
|
|
205
|
+
try: () => JSON.stringify(body.value),
|
|
206
|
+
catch: mapDecodeErrorToValidationError
|
|
207
|
+
});
|
|
208
|
+
case "form": return Effect.succeed(new URLSearchParams(Object.entries(body.value).flatMap(([key, value]) => value === void 0 ? [] : [[key, normalizeFormValue(value)]])));
|
|
209
|
+
case "form-data": return Effect.succeed(body.value);
|
|
182
210
|
}
|
|
183
211
|
};
|
|
184
212
|
const makeRequest = (url, options, authorization) => Effect.gen(function* () {
|
|
185
|
-
const headers =
|
|
213
|
+
const headers = new Headers(options.headers);
|
|
186
214
|
const body = options.body ?? { type: "none" };
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
215
|
+
headers.set("accept", "application/json");
|
|
216
|
+
if (authorization) headers.set("authorization", authorization);
|
|
217
|
+
if (body.type === "json" && !headers.has("content-type")) headers.set("content-type", "application/json");
|
|
218
|
+
return {
|
|
219
|
+
body: yield* withBody(body),
|
|
220
|
+
headers,
|
|
221
|
+
method: options.method,
|
|
222
|
+
url
|
|
223
|
+
};
|
|
191
224
|
});
|
|
192
225
|
const executeRequest = (options) => Effect.gen(function* () {
|
|
193
226
|
const config = yield* PutioSdkConfig;
|
|
227
|
+
const httpClient = yield* PutioHttpClient;
|
|
194
228
|
const authorization = yield* resolveAuthorization(config, options.auth);
|
|
195
229
|
const request = yield* makeRequest(yield* Effect.try({
|
|
196
230
|
try: () => buildPutioUrl(options.baseUrl ?? config.baseUrl ?? "https://api.put.io", options.path, options.query),
|
|
197
231
|
catch: mapUrlBuildError
|
|
198
232
|
}), options, authorization);
|
|
199
|
-
return yield*
|
|
233
|
+
return yield* httpClient.execute(request);
|
|
200
234
|
});
|
|
201
235
|
const requestJson = (schema, options) => executeRequest(options).pipe(Effect.flatMap((response) => isSuccessStatus(response.status) ? decodeSuccessJson(schema, response) : decodeFailure(response, response.headers).pipe(Effect.flatMap(Effect.fail))));
|
|
202
236
|
const selectJsonField = (field) => (effect) => effect.pipe(Effect.map((value) => value[field]));
|
|
@@ -215,6 +249,6 @@ const toCursorSelectionForm = (selection, idsFieldName) => {
|
|
|
215
249
|
};
|
|
216
250
|
};
|
|
217
251
|
//#endregion
|
|
218
|
-
export {
|
|
252
|
+
export { definePutioOperationErrorSpec as A, mapTransportError as B, PutioConfigurationError as C, PutioTransportError as D, PutioRateLimitError as E, isPutioOperationError as F, responseRateLimitHeaders as H, isPutioRateLimitError as I, makeResponseError as L, isPutioApiError as M, isPutioAuthError as N, PutioValidationError as O, isPutioErrorEnvelope as P, mapConfigurationError as R, PutioAuthError as S, PutioOperationError as T, withOperationErrors as U, parseErrorBody as V, selectJsonFields as _, PutioSdkConfig as a, DEFAULT_PUTIO_WEB_APP_URL as b, makePutioFetchClient as c, makePutioSdkLayer as d, makePutioSdkLiveLayer as f, selectJsonField as g, requestVoid as h, PutioHttpClient as i, fallbackPutioErrorEnvelope as j, decodePutioErrorEnvelope 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, DEFAULT_PUTIO_API_BASE_URL as v, PutioErrorEnvelopeSchema as w, PutioApiError as x, DEFAULT_PUTIO_UPLOAD_BASE_URL as y, mapDecodeErrorToValidationError as z };
|
|
219
253
|
|
|
220
|
-
//# sourceMappingURL=forms-
|
|
254
|
+
//# sourceMappingURL=forms-DCO3Ckbx.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"forms-DCO3Ckbx.js","names":[],"sources":["../src/core/errors.ts","../src/core/defaults.ts","../src/core/http.ts","../src/core/forms.ts"],"sourcesContent":["import { Data, Effect, Schema } from \"effect\";\n\nexport const PutioErrorEnvelopeSchema = Schema.Struct({\n error_message: Schema.optional(Schema.String),\n error_type: Schema.optional(Schema.String),\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> {\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\nexport type PutioTypedErrorEnvelope<TContract extends PutioKnownErrorContract> = Omit<\n PutioErrorEnvelope,\n \"error_message\" | \"error_type\" | \"status_code\"\n> & {\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\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.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 isRecord = (value: unknown): value is Readonly<Record<string, unknown>> =>\n typeof value === \"object\" && value !== null;\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 isKnownOperationErrorContract = (value: unknown): value is PutioKnownOperationErrorContract =>\n isRecord(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 (!isRecord(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.TaggedErrorClass<PutioApiError>()(\"PutioApiError\", {\n ...PutioResponseErrorFields,\n}) {}\n\nexport class PutioAuthError extends Schema.TaggedErrorClass<PutioAuthError>()(\"PutioAuthError\", {\n ...PutioResponseErrorFields,\n}) {}\n\nexport class PutioRateLimitError extends Schema.TaggedErrorClass<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 isRecord(value) &&\n hasOptionalString(value, \"error_message\") &&\n hasOptionalString(value, \"error_type\") &&\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 isRecord(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 isRecord(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 isRecord(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 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: 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(Schema.decodeUnknownEffect(schema)),\n Effect.mapError(mapDecodeErrorToValidationError),\n );\n\nconst decodeFailure = (response: PutioHttpResponse, headers: Headers) =>\n response.json.pipe(\n Effect.flatMap((json) => parseErrorBody(response.status, json)),\n Effect.orElseSucceed(() => fallbackPutioErrorEnvelope(response.status)),\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 headers.set(\"accept\", \"application/json\");\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(\n Effect.mapError(mapTransportError),\n Effect.map((buffer) => new Uint8Array(buffer)),\n )\n : decodeFailure(response, response.headers).pipe(Effect.flatMap(Effect.fail)),\n ),\n );\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;CACpD,eAAe,OAAO,SAAS,OAAO,OAAO;CAC7C,YAAY,OAAO,SAAS,OAAO,OAAO;CAC1C,aAAa,OAAO,SAAS,OAAO,IAAI;CACxC,SAAS,OAAO,SAAS,OAAO,QAAQ;CACzC,CAAC;AA6EF,MAAM,wBACJ,UACA,UACqE;AACrE,KAAI,SAAS,cAAc,KAAA,GAAW;AACpC,MAAI,MAAM,KAAK,eAAe,SAAS,UACrC,QAAO;AAGT,SAAO,SAAS,eAAe,KAAA,KAAa,MAAM,WAAW,SAAS;;AAGxE,KAAI,SAAS,eAAe,KAAA,EAC1B,QAAO,MAAM,WAAW,SAAS;AAGnC,QAAO;;AAGT,MAAM,uBAAuB,UAC3B,MAAM,SAAS,mBAAmB,MAAM,SAAS;AAEnD,MAAM,YAAY,UAChB,OAAO,UAAU,YAAY,UAAU;AAEzC,MAAM,qBAAqB,QAA2C,QACpE,EAAE,OAAO,WAAW,OAAO,SAAS,KAAA,KAAa,OAAO,OAAO,SAAS;AAE1E,MAAM,sBAAsB,QAA2C,QACrE,EAAE,OAAO,WACT,OAAO,SAAS,KAAA,KACf,OAAO,OAAO,SAAS,YAAY,OAAO,UAAU,OAAO,KAAK;AAEnE,MAAM,iCAAiC,UACrC,SAAS,MAAM,KACd,OAAO,MAAM,cAAc,YAAY,OAAO,MAAM,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{ Headers, HttpClient } from "effect/unstable/http";
|
|
3
2
|
import * as _$effect_Types0 from "effect/Types";
|
|
4
3
|
import * as _$effect_Cause0 from "effect/Cause";
|
|
5
4
|
import * as _$effect_SchemaAST0 from "effect/SchemaAST";
|
|
6
|
-
import * as _$effect_unstable_http_HttpClient0 from "effect/unstable/http/HttpClient";
|
|
7
5
|
|
|
8
6
|
//#region src/core/errors.d.ts
|
|
9
7
|
declare const PutioErrorEnvelopeSchema: Schema.Struct<{
|
|
@@ -14,8 +12,8 @@ declare const PutioErrorEnvelopeSchema: Schema.Struct<{
|
|
|
14
12
|
}>;
|
|
15
13
|
type PutioErrorEnvelope = Schema.Schema.Type<typeof PutioErrorEnvelopeSchema>;
|
|
16
14
|
interface PutioKnownErrorContract<TType extends string = string, TStatus extends number = number> {
|
|
17
|
-
readonly errorType?: TType;
|
|
18
|
-
readonly statusCode?: TStatus;
|
|
15
|
+
readonly errorType?: TType | undefined;
|
|
16
|
+
readonly statusCode?: TStatus | undefined;
|
|
19
17
|
}
|
|
20
18
|
type ContractErrorType<TContract extends PutioKnownErrorContract> = TContract extends PutioKnownErrorContract<infer TType, number> ? TType : never;
|
|
21
19
|
type ContractStatusCode<TContract extends PutioKnownErrorContract> = TContract extends PutioKnownErrorContract<string, infer TStatus> ? TStatus : never;
|
|
@@ -132,7 +130,7 @@ declare const isPutioAuthError: (value: unknown) => value is PutioAuthError;
|
|
|
132
130
|
declare const isPutioRateLimitError: (value: unknown) => value is PutioRateLimitError;
|
|
133
131
|
declare const isPutioOperationError: (value: unknown) => value is AnyPutioOperationError;
|
|
134
132
|
declare const fallbackPutioErrorEnvelope: (status: number) => PutioErrorEnvelope;
|
|
135
|
-
declare const responseRateLimitHeaders: (headers: Headers
|
|
133
|
+
declare const responseRateLimitHeaders: (headers: Headers) => {
|
|
136
134
|
action: string | undefined;
|
|
137
135
|
id: string | undefined;
|
|
138
136
|
limit: string | undefined;
|
|
@@ -143,7 +141,7 @@ declare const responseRateLimitHeaders: (headers: Headers.Headers) => {
|
|
|
143
141
|
declare const mapDecodeErrorToValidationError: (cause: unknown) => PutioValidationError;
|
|
144
142
|
declare const mapConfigurationError: (cause: unknown) => PutioConfigurationError;
|
|
145
143
|
declare const mapTransportError: (cause: unknown) => PutioTransportError;
|
|
146
|
-
declare const makeResponseError: (status: number, headers: Headers
|
|
144
|
+
declare const makeResponseError: (status: number, headers: Headers, body: PutioErrorEnvelope) => PutioSdkError;
|
|
147
145
|
declare const parseErrorBody: (status: number, json: unknown) => Effect.Effect<{
|
|
148
146
|
readonly error_message?: string | undefined;
|
|
149
147
|
readonly error_type?: string | undefined;
|
|
@@ -165,10 +163,29 @@ interface PutioSdkConfigShape {
|
|
|
165
163
|
}
|
|
166
164
|
declare const PutioSdkConfig_base: Context.ServiceClass<PutioSdkConfig, "PutioSdkConfig", PutioSdkConfigShape>;
|
|
167
165
|
declare class PutioSdkConfig extends PutioSdkConfig_base {}
|
|
168
|
-
|
|
166
|
+
interface PutioHttpRequest {
|
|
167
|
+
readonly body?: BodyInit;
|
|
168
|
+
readonly headers: Headers;
|
|
169
|
+
readonly method: PutioRequestMethod;
|
|
170
|
+
readonly url: string;
|
|
171
|
+
}
|
|
172
|
+
interface PutioHttpResponse {
|
|
173
|
+
readonly arrayBuffer: Effect.Effect<ArrayBuffer, PutioSdkError>;
|
|
174
|
+
readonly headers: Headers;
|
|
175
|
+
readonly json: Effect.Effect<unknown, PutioSdkError>;
|
|
176
|
+
readonly status: number;
|
|
177
|
+
}
|
|
178
|
+
interface PutioHttpClientShape {
|
|
179
|
+
readonly execute: (request: PutioHttpRequest) => Effect.Effect<PutioHttpResponse, PutioSdkError>;
|
|
180
|
+
}
|
|
181
|
+
declare const PutioHttpClient_base: Context.ServiceClass<PutioHttpClient, "PutioHttpClient", PutioHttpClientShape>;
|
|
182
|
+
declare class PutioHttpClient extends PutioHttpClient_base {}
|
|
183
|
+
type PutioSdkContext = PutioSdkConfig | PutioHttpClient;
|
|
169
184
|
declare const makePutioSdkConfig: (config: PutioSdkConfigShape) => PutioSdkConfigShape;
|
|
170
185
|
declare const makePutioSdkLayer: (config: PutioSdkConfigShape) => Layer.Layer<PutioSdkConfig, never, never>;
|
|
171
|
-
declare const makePutioSdkLiveLayer: (config: PutioSdkConfigShape) => Layer.Layer<PutioSdkConfig |
|
|
186
|
+
declare const makePutioSdkLiveLayer: (config: PutioSdkConfigShape) => Layer.Layer<PutioSdkConfig | PutioHttpClient, never, never>;
|
|
187
|
+
declare const makePutioFetchLayer: (fetchImplementation?: typeof globalThis.fetch) => Layer.Layer<PutioHttpClient, never, never>;
|
|
188
|
+
declare const makePutioFetchClient: (fetchImplementation?: typeof globalThis.fetch) => PutioHttpClientShape;
|
|
172
189
|
declare const encodePathSegment: (value: PutioPathSegment) => string;
|
|
173
190
|
declare const buildPutioUrl: (baseUrl: string | URL, path: string, query?: PutioQuery) => string;
|
|
174
191
|
declare const OkResponseSchema: Schema.Struct<{
|
|
@@ -186,6 +203,7 @@ type PutioAuth = {
|
|
|
186
203
|
} | {
|
|
187
204
|
readonly type: "none";
|
|
188
205
|
};
|
|
206
|
+
type PutioRequestMethod = "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
189
207
|
type PutioRequestBody = {
|
|
190
208
|
readonly type: "none";
|
|
191
209
|
} | {
|
|
@@ -199,11 +217,11 @@ type PutioRequestBody = {
|
|
|
199
217
|
readonly value: FormData;
|
|
200
218
|
};
|
|
201
219
|
interface PutioRequestOptions {
|
|
202
|
-
readonly method:
|
|
220
|
+
readonly method: PutioRequestMethod;
|
|
203
221
|
readonly path: string;
|
|
204
222
|
readonly baseUrl?: string | URL;
|
|
205
223
|
readonly query?: PutioQuery;
|
|
206
|
-
readonly headers?:
|
|
224
|
+
readonly headers?: HeadersInit;
|
|
207
225
|
readonly auth?: PutioAuth;
|
|
208
226
|
readonly body?: PutioRequestBody;
|
|
209
227
|
}
|
|
@@ -6418,7 +6436,7 @@ declare const PutioSdk_base: Context.ServiceClass<PutioSdk, "PutioSdk", {
|
|
|
6418
6436
|
}>;
|
|
6419
6437
|
declare class PutioSdk extends PutioSdk_base {}
|
|
6420
6438
|
declare const makePutioSdkEffectClientLayer: () => Layer.Layer<PutioSdk, never, never>;
|
|
6421
|
-
declare const makePutioSdkLiveClientLayer: (config: PutioSdkConfigShape) => Layer.Layer<PutioSdkConfig |
|
|
6439
|
+
declare const makePutioSdkLiveClientLayer: (config: PutioSdkConfigShape) => Layer.Layer<PutioSdkConfig | PutioHttpClient | PutioSdk, never, never>;
|
|
6422
6440
|
declare const createPutioSdkPromiseClient: (initialConfig?: PutioSdkConfigShape) => {
|
|
6423
6441
|
dispose: () => Promise<void>;
|
|
6424
6442
|
account: {
|
|
@@ -7351,5 +7369,20 @@ declare const DEFAULT_PUTIO_API_BASE_URL = "https://api.put.io";
|
|
|
7351
7369
|
declare const DEFAULT_PUTIO_UPLOAD_BASE_URL = "https://upload.put.io";
|
|
7352
7370
|
declare const DEFAULT_PUTIO_WEB_APP_URL = "https://app.put.io";
|
|
7353
7371
|
//#endregion
|
|
7354
|
-
export { TransferSchema as $, ContinueFilesErrorSpec as $a, HistoryEvent as $c, AccountClearOptions as $d, PutioErrorEnvelope as $f, previewPaymentChangePlan as $i, FamilyInviteLookupErrorSpec as $l, GetRssFeedErrorSpec as $n, FileTypeSchema as $o, ListPaymentOptionsErrorSpec as $r, getFile as $s, GetPublicShareFileUrlErrorSpec as $t, getGiftCard as $u, TunnelRoute as A, approveFriendRequest as Aa, FamilyMemberSchema as Ac, OAuthAppWithTokenSchema as Ad, saveAccountSettings as Af, PreviewPaymentChangePlanError as Ai, DownloadLinksPayloadSchema as Al, SharingUnshareInputSchema as An, FileMediaInfo as Ao, retryAllRssFeedItems as Ar, buildFileApiContentUrl as As, RestoreTrashErrorSpec as At, RevokeOAuthClientError as Au, ListTransfersErrorSpec as B, CreateFriendInviteError as Ba, joinFamily as Bc, RegenerateOAuthAppTokenErrorSpec as Bd, encodePathSegment as Bf, UserSubscriptionStatusSchema as Bi, PutioJsonPrimitive as Bl, getSharingCloneInfo as Bn, FileQuery as Bo, CreateOpenNodeChargeError as Br, createFileUploadRequest as Bs, listTrash as Bt, VerifyTOTPResponse as Bu, ZipSummary as C, RemoveFriendErrorSpec as Ca, sendIftttEvent as Cc, OAuthAppCreateInput as Cd, SaveAccountSettingsPayload as Cf, PaymentProvider as Ci, CreateDownloadLinksError as Cl, SharingCloneInfoSchema as Cn, FileExtractionStatus as Co, mapDecodeErrorToValidationError as Cp, createRssFeed as Cr, QueryFilesErrorSpec as Cs, DeleteTrashError as Ct, RegisterErrorSpec as Cu, listZips as D, SendFriendRequestErrorSpec as Da, FamilyInviteSchema as Dc, OAuthAppSessionSchema as Dd, getAccountInfo as Df, PaymentTypeSchema as Di, DownloadLinksInfo as Dl, SharingShareInput as Dn, FileHlsStreamUrlOptions as Do, withOperationErrors as Dp, listRssFeeds as Dr, SearchFilesErrorSpec as Ds, ListTrashError as Dt, ResetPasswordErrorSpec as Du, getZip as E, SendFriendRequestError as Ea, FamilyInvite as Ec, OAuthAppSession as Ed, destroyAccount as Ef, PaymentSubscriptionInfoSchema as Ei, DownloadLinksCreateInputSchema as El, SharingCloneStatusSchema as En, FileExtractionsErrorSpec as Eo, responseRateLimitHeaders as Ep, listRssFeedItems as Er, SearchFilesError as Es, EmptyTrashErrorSpec as Et, ResetPasswordError as Eu, AddTransferError as F, listSentRequests as Fa, ListFamilyMembersError as Fc, PopularOAuthApp as Fd, PutioQueryValue as Ff, ReportPaymentsErrorSpec as Fi, createDownloadLinks as Fl, createPublicShare as Fn, FileMediaMetadataSchema as Fo, ConfirmFastspringOrderErrorSpec as Fr, continueSearch as Fs, TrashListQuery as Ft, TwoFactorRecoveryCodesSchema as Fu, StopRecordingTransferError as G, FriendInviteJoinedUserStatus as Ga, ClearEventsErrorSpec as Gc, createOAuthApp as Gd, requestJson as Gf, createOpenNodeCharge as Gi, readConfig as Gl, unshareFile as Gn, FileSort as Go, GetPaymentInfoErrorSpec as Gr, deleteFiles as Gs, CreatePublicShareErrorSpec as Gt, checkCodeMatch as Gu, ReannounceTransferErrorSpec as H, FriendInvite as Ha, listFamilyMembers as Hc, UpdateOAuthAppErrorSpec as Hd, makePutioSdkLayer as Hf, confirmFastspringOrder as Hi, deleteConfigKey as Hl, listPublicShares as Hn, FileRenameInput as Ho, CreatePaddleWaitingPaymentError as Hr, deleteFileExtraction as Hs, ContinuePublicShareFilesError as Ht, VoucherLookupError as Hu, AddTransferErrorSpec as I, listWaitingRequests as Ia, ListFamilyMembersErrorSpec as Ic, PopularOAuthAppSchema as Id, PutioSdkConfig as If, StopSubscriptionError as Ii, getDownloadLinks as Il, deletePublicShare as In, FileMp4Error as Io, CreateCoinbaseChargeError as Ir, convertFileSelectionToMp4 as Is, TrashListResponse as It, ValidateTokenResponse as Iu, TransferAddInput as J, ListFriendInvitesError as Ja, EventsListQuery as Jc, getPopularOAuthApps as Jd, selectJsonFields as Jf, getPaymentVoucherInfo as Ji, writeConfig as Jl, CreateRssFeedError as Jn, FileSubtitle as Jo, ListPaymentHistoryError as Jr, findNextVideo as Js, DeletePublicShareError as Jt, forgotPassword as Ju, StopRecordingTransferErrorSpec as K, FriendInviteJoinedUserStatusSchema as Ka, DeleteEventError as Kc, deleteOAuthApp as Kd, requestVoid as Kf, createPaddleWaitingPayment as Ki, readConfigWith as Kl, ClearRssFeedLogsError as Kn, FileSortSchema as Ko, GetPaymentVoucherInfoError as Kr, extractFiles as Ks, CreateSharingCloneError as Kt, clients as Ku, GetTransferError as L, removeFriend as La, RemoveFamilyMemberError as Lc, QueryOAuthAppsError as Ld, PutioSdkConfigShape as Lf, StopSubscriptionErrorSpec as Li, JsonObjectSchema as Ll, getPublicShare as Ln, FileMp4ErrorSpec as Lo, CreateCoinbaseChargeErrorSpec as Lr, convertFileToMp4 as Ls, continueTrash as Lt, ValidateTokenResponseSchema as Lu, listTunnelRoutes as M, denyFriendRequest as Ma, JoinFamilyErrorSpec as Mc, OAuthSetIconInputSchema as Md, PutioAuth as Mf, RedeemPaymentVoucherError as Mi, DownloadLinksStatusSchema as Ml, UnshareFileErrorSpec as Mn, FileMediaInfoSchema as Mo, updateRssFeed as Mr, buildFileApiMp4DownloadUrl as Ms, TrashContinueResponse as Mt, RevokeOAuthGrantError as Mu, AddManyTransfersError as N, getFriendSharedFolder as Na, ListFamilyInvitesError as Nc, OwnedOAuthApp as Nd, PutioPathSegment as Nf, RedeemPaymentVoucherErrorSpec as Ni, GetDownloadLinksError as Nl, cloneSharedFiles as Nn, FileMediaInfoStreamSchema as No, ClassifiedPaymentChangePlanSubmitResponse as Nr, buildFileHlsStreamUrl as Ns, TrashFile as Nt, RevokeOAuthGrantErrorSpec as Nu, ListTunnelRoutesError as O, UserSearchResult as Oa, FamilyInvitesResponse as Oc, OAuthAppUpdateInput as Od, getAccountSettings as Of, PaymentVoucherInfo as Oi, DownloadLinksInfoSchema as Ol, SharingShareInputSchema as On, FileListContinuationResponse as Oo, pauseRssFeed as Or, StartFromError as Os, ListTrashErrorSpec as Ot, RevokeAllOAuthClientsError as Ou, AddManyTransfersErrorSpec as P, listFriends as Pa, ListFamilyInvitesErrorSpec as Pc, OwnedOAuthAppSchema as Pd, PutioQuery as Pf, ReportPaymentsError as Pi, GetDownloadLinksErrorSpec as Pl, continuePublicShareFiles as Pn, FileMediaMetadata as Po, ConfirmFastspringOrderError as Pr, continueFiles as Ps, TrashFileSchema as Pt, TwoFactorRecoveryCodes as Pu, TransferLink as Q, ContinueFilesError as Qa, GetEventTorrentErrorSpec as Qc, updateOAuthApp as Qd, PutioConfigurationError as Qf, listPaymentPlans as Qi, FamilyInviteLookupError as Ql, GetRssFeedError as Qn, FileType as Qo, ListPaymentOptionsError as Qr, getDownloadUrl as Qs, GetPublicShareFileUrlError as Qt, getFriendInvite as Qu, GetTransferErrorSpec as R, searchFriends as Ra, RemoveFamilyMemberErrorSpec as Rc, QueryOAuthAppsErrorSpec as Rd, PutioSdkContext as Rf, SubmitPaymentChangePlanError as Ri, JsonValueSchema as Rl, getPublicShareFileUrl as Rn, FileMp4MutationError as Ro, CreateNanoPaymentRequestError as Rr, convertFilesToMp4 as Rs, deleteTrash as Rt, VerifyTOTPError as Ru, ZipStatusSchema as S, RemoveFriendError as Sa, getIftttStatus as Sc, OAuthApp as Sd, SaveAccountSettingsErrorSpec as Sf, PaymentPlanTypeSchema as Si, listEvents as Sl, SharingCloneInfo as Sn, FileExtractionSchema as So, mapConfigurationError as Sp, clearRssFeedLogs as Sr, QueryFilesError as Ss, ContinueTrashErrorSpec as St, RegisterError as Su, createZip as T, SearchFriendsErrorSpec as Ta, CreateFamilyInviteErrorSpec as Tc, OAuthAppSchema as Td, clearAccount as Tf, PaymentProviderSchema as Ti, DownloadLinksCreateInput as Tl, SharingCloneInputSchema as Tn, FileExtractionsError as To, parseErrorBody as Tp, getRssFeed as Tr, RenameFileErrorSpec as Ts, EmptyTrashError as Tt, RegisterInputSchema as Tu, RetryTransferError as U, FriendInviteJoinedUser as Ua, removeFamilyMember as Uc, buildOAuthAppIconUrl as Ud, makePutioSdkLiveLayer as Uf, createCoinbaseCharge as Ui, getConfigKey as Ul, listSharedFiles as Un, FileResponseFor as Uo, CreatePaddleWaitingPaymentErrorSpec as Ur, deleteFileMp4 as Us, ContinuePublicShareFilesErrorSpec as Ut, VoucherLookupErrorSpec as Uu, ReannounceTransferError as V, CreateFriendInviteErrorSpec as Va, listFamilyInvites as Vc, UpdateOAuthAppError as Vd, makePutioSdkConfig as Vf, classifyPaymentChangePlanResponse as Vi, PutioJsonValue as Vl, listPublicShareFiles as Vn, FileQuerySchema as Vo, CreateOpenNodeChargeErrorSpec as Vr, createFolder as Vs, restoreTrash as Vt, VerifyTOTPResponseSchema as Vu, RetryTransferErrorSpec as W, FriendInviteJoinedUserSchema as Wa, ClearEventsError as Wc, buildOAuthAuthorizeUrl as Wd, requestArrayBuffer as Wf, createNanoPaymentRequest as Wi, getConfigKeyWith as Wl, shareFiles as Wn, FileSearchResponse as Wo, GetPaymentInfoError as Wr, deleteFileSelection as Ws, CreatePublicShareError as Wt, buildAuthLoginUrl as Wu, TransferBaseSchema as X, createFriendInvite as Xa, EventsListResponse as Xc, regenerateOAuthAppToken as Xd, PutioApiError as Xf, listPaymentInvites as Xi, ClientsError as Xl, DeleteRssFeedError as Xn, FileSubtitlesError as Xo, ListPaymentInvitesError as Xr, getApiDownloadUrl as Xs, GetPublicShareError as Xt, getCode as Xu, TransferAddInputSchema as Y, ListFriendInvitesErrorSpec as Ya, EventsListQuerySchema as Yc, queryOAuthApps as Yd, AnyPutioOperationError as Yf, listPaymentHistory as Yi, AuthorizationCodeSchema as Yl, CreateRssFeedErrorSpec as Yn, FileSubtitleSchema as Yo, ListPaymentHistoryErrorSpec as Yr, getApiContentUrl as Ys, DeletePublicShareErrorSpec as Yt, generateTOTP as Yu, TransferInfoItem as Z, listFriendInvites as Za, GetEventTorrentError as Zc, setOAuthAppIcon as Zd, PutioAuthError as Zf, listPaymentOptions as Zi, ClientsErrorSpec as Zl, DeleteRssFeedErrorSpec as Zn, FileSubtitlesErrorSpec as Zo, ListPaymentInvitesErrorSpec as Zr, getApiMp4DownloadUrl as Zs, GetPublicShareErrorSpec as Zt, getFamilyInvite as Zu, GetZipErrorSpec as _, ListFriendsErrorSpec as _a, GetIftttStatusErrorSpec as _c, DeleteOAuthAppErrorSpec as _d, AccountWarnings as _f, PaymentOptionPlanTypeSchema as _i, ListEventsError as _l, SharedFileSchema as _n, FileConversionStatusSchema as _o, isPutioAuthError as _p, RssFeedParams as _r, FilesSearchQuerySchema as _s, listTransfers as _t, LoginResponseSchema as _u, PutioSdkEffectClient as a, ApproveFriendRequestErrorSpec as aa, listFileSubtitles as ac, logout as ad, AccountDisk as af, PaymentChangePlanSubmitInput as ai, HistoryKnownEventTypeSchema as al, ListPublicShareFilesErrorSpec as an, FileActiveConversionSchema as ao, PutioOperationErrorSpec as ap, PauseRssFeedErrorSpec as ar, FileUploadResult as as, TransfersContinueResponse as at, GenerateTOTPErrorSpec as au, ZipCreateResponse as b, ListWaitingRequestsError as ba, SendIftttEventError as bc, MyOAuthApp as bd, PasInfoSchema as bf, PaymentPlanGroup as bi, deleteEvent as bl, SharedFileSharedWith as bn, FileDirectAccessOptions as bo, isPutioRateLimitError as bp, UpdateRssFeedError as br, GetFileError as bs, stopTransferRecording as bt, RegenerateRecoveryCodesError as bu, createPutioSdkPromiseClient as c, DenyFriendRequestError as ca, putMp4ToMyFiles as cc, resetPassword as cd, AccountInfoBaseSchema as cf, PaymentHistoryItem as ci, HistoryTransferCallbackErrorEventSchema as cl, ListSharedFilesError as cn, FileApiDownloadUrlOptions as co, PutioSdkError as cp, RetryAllRssFeedItemsError as cr, FileWatchStatusError as cs, TransfersListResponse as ct, GiftCardLookupError as cu, CancelZipError as d, FriendBase as da, resetStartFrom as dc, revokeClient as dd, AccountInfoQuery as df, PaymentInfo as di, HistoryTransferErrorEventSchema as dl, PublicShareListQuery as dn, FileBaseSchema as do, PutioUnhandledSdkError as dp, RetryRssFeedItemErrorSpec as dr, FilesListEnvelopeSchema as ds, cancelTransfers as dt, GrantsErrorSpec as du, redeemPaymentVoucher as ea, getHlsStreamUrl as ec, getRecoveryCodes as ed, AccountClearOptionsSchema as ef, ListPaymentPlansError as ei, HistoryEventSchema as el, GetSharedWithError as en, CreateFolderError as eo, PutioErrorEnvelopeSchema as ep, ListRssFeedItemsError as er, FileUploadEnvelope as es, TransferStatus as et, ForgotPasswordError as eu, CancelZipErrorSpec as f, FriendBaseSchema as fa, searchFiles as fc, validateToken as fd, AccountInfoQuerySchema as ff, PaymentInfoPlanSchema as fi, HistoryTransferFromRssErrorEventSchema as fl, PublicShareListQuerySchema as fn, FileBreadcrumb as fo, PutioValidationError as fp, RssFeed as fr, FilesListQuery as fs, cleanTransfers as ft, LinkDeviceError as fu, GetZipError as g, ListFriendsError as ga, GetIftttStatusError as gc, DeleteOAuthAppError as gd, AccountTwoFactorSettingsSchema as gf, PaymentOption as gi, HistoryZipCreatedEventSchema as gl, SharedFile as gn, FileConversionStatus as go, isPutioApiError as gp, RssFeedItemSucceededSchema as gr, FilesSearchQuery as gs, getTransferInfo as gt, LoginResponse as gu, CreateZipInput as h, FriendSharedFolderErrorSpec as ha, uploadFile as hc, CreateOAuthAppErrorSpec as hd, AccountSettingsSchema as hf, PaymentInviteSchema as hi, HistoryZipCreatedEvent as hl, ShareFilesErrorSpec as hn, FileBroadSchema as ho, fallbackPutioErrorEnvelope as hp, RssFeedItemSchema as hr, FilesMoveErrorSchema as hs, getTransfer as ht, LoginErrorSpec as hu, PutioSdk as i, ApproveFriendRequestError as ia, listFileExtractions as ic, login as id, AccountConfirmationsErrorSpec as if, PaymentChangePlanPreviewSchema as ii, HistoryKnownEventType as il, ListPublicShareFilesError as in, FileActiveConversion as io, PutioOperationErrorFromSpec as ip, PauseRssFeedError as ir, FileUploadRequestDescriptor as is, TransfersAddMultiError as it, GenerateTOTPError as iu, TunnelRouteSchema as j, countWaitingRequests as ja, JoinFamilyError as jc, OAuthSetIconInput as jd, OkResponseSchema as jf, PreviewPaymentChangePlanErrorSpec as ji, DownloadLinksStatus as jl, UnshareFileError as jn, FileMediaInfoFormatSchema as jo, retryRssFeedItem as jr, buildFileApiDownloadUrl as js, TrashBulkInput as jt, RevokeOAuthClientErrorSpec as ju, ListTunnelRoutesErrorSpec as k, UserSearchResultSchema as ka, FamilyMember as kc, OAuthAppUpdateInputSchema as kd, listAccountConfirmations as kf, PaymentVoucherInfoSchema as ki, DownloadLinksPayload as kl, SharingUnshareInput as kn, FileListResponse as ko, resumeRssFeed as kr, StartFromErrorSpec as ks, RestoreTrashError as kt, RevokeAllOAuthClientsErrorSpec as ku, makePutioSdkEffectClientLayer as l, DenyFriendRequestErrorSpec as la, queryFiles as lc, revokeAllClients as ld, AccountInfoBroad as lf, PaymentHistoryItemSchema as li, HistoryTransferCompletedEvent as ll, ListSharedFilesErrorSpec as ln, FileApiMp4DownloadUrlOptions as lo, PutioTransportError as lp, RetryAllRssFeedItemsErrorSpec as lr, FileWatchStatusErrorSpec as ls, addManyTransfers as lt, GiftCardLookupErrorSpec as lu, CreateZipErrorSpec as m, FriendSharedFolderError as ma, setStartFrom as mc, CreateOAuthAppError as md, AccountSettings as mf, PaymentInvite as mi, HistoryVoucherEventSchema as ml, ShareFilesError as mn, FileBroad as mo, definePutioOperationErrorSpec as mp, RssFeedItemFailedSchema as mr, FilesMoveError as ms, countTransfers as mt, LoginError as mu, DEFAULT_PUTIO_UPLOAD_BASE_URL as n, stopPaymentSubscription as na, getStartFrom as nc, grants as nd, AccountConfirmationSchema as nf, PaymentChangePlanPreview as ni, HistoryFileSharedEvent as nl, GetSharingCloneInfoError as nn, DownloadUrlError as no, PutioKnownOperationErrorContract as np, ListRssFeedsError as nr, FileUploadErrorSpec as ns, TransferType as nt, FriendInviteLookupError as nu, PutioSdkPromiseClient as o, CountWaitingRequestsError as oa, moveFileSelection as oc, regenerateRecoveryCodes as od, AccountDiskSchema as of, PaymentChangePlanSubmitResponse as oi, HistoryPrivateTorrentPinEventSchema as ol, ListPublicSharesError as on, FileActiveConversionsError as oo, PutioOperationFailure as op, ResumeRssFeedError as or, FileUploadTransfer as os, TransfersListQuery as ot, GenerateTOTPResponse as ou, CreateZipError as p, FriendSchema as pa, setFilesWatchStatus as pc, verifyTOTP as pd, AccountInfoResponseFor as pf, PaymentInfoSchema as pi, HistoryUploadEventSchema as pl, PublicShareSchema as pn, FileBreadcrumbSchema as po, decodePutioErrorEnvelope as pp, RssFeedItem as pr, FilesListQuerySchema as ps, continueTransfers as pt, LinkDeviceErrorSpec as pu, Transfer as q, FriendInviteSchema as qa, DeleteEventErrorSpec as qc, getOAuthApp as qd, selectJsonField as qf, getPaymentInfo as qi, setConfigKey as ql, ClearRssFeedLogsErrorSpec as qn, FileStartFromSetInput as qo, GetPaymentVoucherInfoErrorSpec as qr, findNextFile as qs, CreateSharingCloneErrorSpec as qt, exists as qu, DEFAULT_PUTIO_WEB_APP_URL as r, submitPaymentChangePlan as ra, listActiveMp4Conversions as rc, linkDevice as rd, AccountConfirmationsError as rf, PaymentChangePlanPreviewInput as ri, HistoryFileSharedEventSchema as rl, GetSharingCloneInfoErrorSpec as rn, DownloadUrlErrorSpec as ro, PutioOperationError as rp, ListRssFeedsErrorSpec as rr, FileUploadInput as rs, TransferTypeSchema as rt, FriendInviteLookupErrorSpec as ru, createPutioSdkEffectClient as s, CountWaitingRequestsErrorSpec as sa, moveFiles as sc, register as sd, AccountInfoBase as sf, PaymentChangePlanSubmitSchema as si, HistoryRssFilterPausedEventSchema as sl, ListPublicSharesErrorSpec as sn, FileActiveConversionsErrorSpec as so, PutioRateLimitError as sp, ResumeRssFeedErrorSpec as sr, FileVideoMetadata as ss, TransfersListQuerySchema as st, GenerateTOTPResponseSchema as su, DEFAULT_PUTIO_API_BASE_URL as t, reportPayments as ta, getMp4Status as tc, getVoucher as td, AccountConfirmation as tf, ListPaymentPlansErrorSpec as ti, HistoryFileFromRssDeletedEventSchema as tl, GetSharedWithErrorSpec as tn, CreateFolderErrorSpec as to, PutioKnownErrorContract as tp, ListRssFeedItemsErrorSpec as tr, FileUploadError as ts, TransferStatusSchema as tt, ForgotPasswordErrorSpec as tu, makePutioSdkLiveClientLayer as u, Friend as ua, renameFile as uc, revokeApp as ud, AccountInfoBroadSchema as uf, PaymentHistoryQuery as ui, HistoryTransferCompletedEventSchema as ul, PublicShare as un, FileBase as uo, PutioTypedErrorEnvelope as up, RetryRssFeedItemError as ur, FilesBulkSelection as us, addTransfer as ut, GrantsError as uu, ListZipsError as v, ListSentRequestsError as va, IftttEventInput as vc, GetOAuthAppError as vd, AccountWarningsSchema as vf, PaymentOptionSchema as vi, ListEventsErrorSpec as vl, SharedFileShare as vn, FileCore as vo, isPutioErrorEnvelope as vp, RssFeedParamsSchema as vr, FolderType as vs, reannounceTransfer as vt, RecoveryCodesError as vu, cancelZip as w, SearchFriendsError as wa, CreateFamilyInviteError as wc, OAuthAppCreateInputSchema as wd, SaveAccountSettingsPayloadSchema as wf, PaymentProviderNameSchema as wi, CreateDownloadLinksErrorSpec as wl, SharingCloneInput as wn, FileExtractionStatusSchema as wo, mapTransportError as wp, deleteRssFeed as wr, RenameFileError as ws, DeleteTrashErrorSpec as wt, RegisterInput as wu, ZipInfo as x, ListWaitingRequestsErrorSpec as xa, SendIftttEventErrorSpec as xc, MyOAuthAppSchema as xd, SaveAccountSettingsError as xf, PaymentPlanGroupSchema as xi, getEventTorrent as xl, SharedFileSharedWithSchema as xn, FileExtraction as xo, makeResponseError as xp, UpdateRssFeedErrorSpec as xr, GetFileErrorSpec as xs, ContinueTrashError as xt, RegenerateRecoveryCodesErrorSpec as xu, ListZipsErrorSpec as y, ListSentRequestsErrorSpec as ya, IftttEventType as yc, GetOAuthAppErrorSpec as yd, PasInfo as yf, PaymentPaddleWaitingPaymentInput as yi, clearEvents as yl, SharedFileShareSchema as yn, FileCreateFolderInput as yo, isPutioOperationError as yp, RssFeedSchema as yr, FolderTypeSchema as ys, retryTransfer as yt, RecoveryCodesErrorSpec as yu, ListTransfersError as z, sendFriendRequest as za, createFamilyInvite as zc, RegenerateOAuthAppTokenError as zd, buildPutioUrl as zf, SubmitPaymentChangePlanErrorSpec as zi, PutioJsonObject as zl, getSharedWith as zn, FileMp4MutationErrorSpec as zo, CreateNanoPaymentRequestErrorSpec as zr, createFileUploadFormData as zs, emptyTrash as zt, VerifyTOTPErrorSpec as zu };
|
|
7355
|
-
|
|
7372
|
+
//#region src/index.d.ts
|
|
7373
|
+
declare global {
|
|
7374
|
+
interface SymbolConstructor {
|
|
7375
|
+
readonly asyncDispose: unique symbol;
|
|
7376
|
+
readonly dispose: unique symbol;
|
|
7377
|
+
}
|
|
7378
|
+
interface AsyncDisposable {
|
|
7379
|
+
[Symbol.asyncDispose](): PromiseLike<void>;
|
|
7380
|
+
}
|
|
7381
|
+
interface Disposable {
|
|
7382
|
+
[Symbol.dispose](): void;
|
|
7383
|
+
}
|
|
7384
|
+
var SchemaErrorTypeId: symbol;
|
|
7385
|
+
}
|
|
7386
|
+
//#endregion
|
|
7387
|
+
export { TransferSchema as $, ContinueFilesErrorSpec as $a, HistoryEvent as $c, AccountClearOptions as $d, selectJsonField as $f, previewPaymentChangePlan as $i, FamilyInviteLookupErrorSpec as $l, GetRssFeedErrorSpec as $n, FileTypeSchema as $o, ListPaymentOptionsErrorSpec as $r, getFile as $s, GetPublicShareFileUrlErrorSpec as $t, getGiftCard as $u, TunnelRoute as A, approveFriendRequest as Aa, FamilyMemberSchema as Ac, OAuthAppWithTokenSchema as Ad, saveAccountSettings as Af, PreviewPaymentChangePlanError as Ai, DownloadLinksPayloadSchema as Al, SharingUnshareInputSchema as An, FileMediaInfo as Ao, mapTransportError as Ap, retryAllRssFeedItems as Ar, buildFileApiContentUrl as As, RestoreTrashErrorSpec as At, RevokeOAuthClientError as Au, ListTransfersErrorSpec as B, CreateFriendInviteError as Ba, joinFamily as Bc, RegenerateOAuthAppTokenErrorSpec as Bd, PutioSdkConfig as Bf, UserSubscriptionStatusSchema as Bi, PutioJsonPrimitive as Bl, getSharingCloneInfo as Bn, FileQuery as Bo, CreateOpenNodeChargeError as Br, createFileUploadRequest as Bs, listTrash as Bt, VerifyTOTPResponse as Bu, ZipSummary as C, RemoveFriendErrorSpec as Ca, sendIftttEvent as Cc, OAuthAppCreateInput as Cd, SaveAccountSettingsPayload as Cf, PaymentProvider as Ci, CreateDownloadLinksError as Cl, SharingCloneInfoSchema as Cn, FileExtractionStatus as Co, isPutioAuthError as Cp, createRssFeed as Cr, QueryFilesErrorSpec as Cs, DeleteTrashError as Ct, RegisterErrorSpec as Cu, listZips as D, SendFriendRequestErrorSpec as Da, FamilyInviteSchema as Dc, OAuthAppSessionSchema as Dd, getAccountInfo as Df, PaymentTypeSchema as Di, DownloadLinksInfo as Dl, SharingShareInput as Dn, FileHlsStreamUrlOptions as Do, makeResponseError as Dp, listRssFeeds as Dr, SearchFilesErrorSpec as Ds, ListTrashError as Dt, ResetPasswordErrorSpec as Du, getZip as E, SendFriendRequestError as Ea, FamilyInvite as Ec, OAuthAppSession as Ed, destroyAccount as Ef, PaymentSubscriptionInfoSchema as Ei, DownloadLinksCreateInputSchema as El, SharingCloneStatusSchema as En, FileExtractionsErrorSpec as Eo, isPutioRateLimitError as Ep, listRssFeedItems as Er, SearchFilesError as Es, EmptyTrashErrorSpec as Et, ResetPasswordError as Eu, AddTransferError as F, listSentRequests as Fa, ListFamilyMembersError as Fc, PopularOAuthApp as Fd, PutioHttpRequest as Ff, ReportPaymentsErrorSpec as Fi, createDownloadLinks as Fl, createPublicShare as Fn, FileMediaMetadataSchema as Fo, ConfirmFastspringOrderErrorSpec as Fr, continueSearch as Fs, TrashListQuery as Ft, TwoFactorRecoveryCodesSchema as Fu, StopRecordingTransferError as G, FriendInviteJoinedUserStatus as Ga, ClearEventsErrorSpec as Gc, createOAuthApp as Gd, makePutioFetchClient as Gf, createOpenNodeCharge as Gi, readConfig as Gl, unshareFile as Gn, FileSort as Go, GetPaymentInfoErrorSpec as Gr, deleteFiles as Gs, CreatePublicShareErrorSpec as Gt, checkCodeMatch as Gu, ReannounceTransferErrorSpec as H, FriendInvite as Ha, listFamilyMembers as Hc, UpdateOAuthAppErrorSpec as Hd, PutioSdkContext as Hf, confirmFastspringOrder as Hi, deleteConfigKey as Hl, listPublicShares as Hn, FileRenameInput as Ho, CreatePaddleWaitingPaymentError as Hr, deleteFileExtraction as Hs, ContinuePublicShareFilesError as Ht, VoucherLookupError as Hu, AddTransferErrorSpec as I, listWaitingRequests as Ia, ListFamilyMembersErrorSpec as Ic, PopularOAuthAppSchema as Id, PutioHttpResponse as If, StopSubscriptionError as Ii, getDownloadLinks as Il, deletePublicShare as In, FileMp4Error as Io, CreateCoinbaseChargeError as Ir, convertFileSelectionToMp4 as Is, TrashListResponse as It, ValidateTokenResponse as Iu, TransferAddInput as J, ListFriendInvitesError as Ja, EventsListQuery as Jc, getPopularOAuthApps as Jd, makePutioSdkLayer as Jf, getPaymentVoucherInfo as Ji, writeConfig as Jl, CreateRssFeedError as Jn, FileSubtitle as Jo, ListPaymentHistoryError as Jr, findNextVideo as Js, DeletePublicShareError as Jt, forgotPassword as Ju, StopRecordingTransferErrorSpec as K, FriendInviteJoinedUserStatusSchema as Ka, DeleteEventError as Kc, deleteOAuthApp as Kd, makePutioFetchLayer as Kf, createPaddleWaitingPayment as Ki, readConfigWith as Kl, ClearRssFeedLogsError as Kn, FileSortSchema as Ko, GetPaymentVoucherInfoError as Kr, extractFiles as Ks, CreateSharingCloneError as Kt, clients as Ku, GetTransferError as L, removeFriend as La, RemoveFamilyMemberError as Lc, QueryOAuthAppsError as Ld, PutioPathSegment as Lf, StopSubscriptionErrorSpec as Li, JsonObjectSchema as Ll, getPublicShare as Ln, FileMp4ErrorSpec as Lo, CreateCoinbaseChargeErrorSpec as Lr, convertFileToMp4 as Ls, continueTrash as Lt, ValidateTokenResponseSchema as Lu, listTunnelRoutes as M, denyFriendRequest as Ma, JoinFamilyErrorSpec as Mc, OAuthSetIconInputSchema as Md, PutioAuth as Mf, RedeemPaymentVoucherError as Mi, DownloadLinksStatusSchema as Ml, UnshareFileErrorSpec as Mn, FileMediaInfoSchema as Mo, responseRateLimitHeaders as Mp, updateRssFeed as Mr, buildFileApiMp4DownloadUrl as Ms, TrashContinueResponse as Mt, RevokeOAuthGrantError as Mu, AddManyTransfersError as N, getFriendSharedFolder as Na, ListFamilyInvitesError as Nc, OwnedOAuthApp as Nd, PutioHttpClient as Nf, RedeemPaymentVoucherErrorSpec as Ni, GetDownloadLinksError as Nl, cloneSharedFiles as Nn, FileMediaInfoStreamSchema as No, withOperationErrors as Np, ClassifiedPaymentChangePlanSubmitResponse as Nr, buildFileHlsStreamUrl as Ns, TrashFile as Nt, RevokeOAuthGrantErrorSpec as Nu, ListTunnelRoutesError as O, UserSearchResult as Oa, FamilyInvitesResponse as Oc, OAuthAppUpdateInput as Od, getAccountSettings as Of, PaymentVoucherInfo as Oi, DownloadLinksInfoSchema as Ol, SharingShareInputSchema as On, FileListContinuationResponse as Oo, mapConfigurationError as Op, pauseRssFeed as Or, StartFromError as Os, ListTrashErrorSpec as Ot, RevokeAllOAuthClientsError as Ou, AddManyTransfersErrorSpec as P, listFriends as Pa, ListFamilyInvitesErrorSpec as Pc, OwnedOAuthAppSchema as Pd, PutioHttpClientShape as Pf, ReportPaymentsError as Pi, GetDownloadLinksErrorSpec as Pl, continuePublicShareFiles as Pn, FileMediaMetadata as Po, ConfirmFastspringOrderError as Pr, continueFiles as Ps, TrashFileSchema as Pt, TwoFactorRecoveryCodes as Pu, TransferLink as Q, ContinueFilesError as Qa, GetEventTorrentErrorSpec as Qc, updateOAuthApp as Qd, requestVoid as Qf, listPaymentPlans as Qi, FamilyInviteLookupError as Ql, GetRssFeedError as Qn, FileType as Qo, ListPaymentOptionsError as Qr, getDownloadUrl as Qs, GetPublicShareFileUrlError as Qt, getFriendInvite as Qu, GetTransferErrorSpec as R, searchFriends as Ra, RemoveFamilyMemberErrorSpec as Rc, QueryOAuthAppsErrorSpec as Rd, PutioQuery as Rf, SubmitPaymentChangePlanError as Ri, JsonValueSchema as Rl, getPublicShareFileUrl as Rn, FileMp4MutationError as Ro, CreateNanoPaymentRequestError as Rr, convertFilesToMp4 as Rs, deleteTrash as Rt, VerifyTOTPError as Ru, ZipStatusSchema as S, RemoveFriendError as Sa, getIftttStatus as Sc, OAuthApp as Sd, SaveAccountSettingsErrorSpec as Sf, PaymentPlanTypeSchema as Si, listEvents as Sl, SharingCloneInfo as Sn, FileExtractionSchema as So, isPutioApiError as Sp, clearRssFeedLogs as Sr, QueryFilesError as Ss, ContinueTrashErrorSpec as St, RegisterError as Su, createZip as T, SearchFriendsErrorSpec as Ta, CreateFamilyInviteErrorSpec as Tc, OAuthAppSchema as Td, clearAccount as Tf, PaymentProviderSchema as Ti, DownloadLinksCreateInput as Tl, SharingCloneInputSchema as Tn, FileExtractionsError as To, isPutioOperationError as Tp, getRssFeed as Tr, RenameFileErrorSpec as Ts, EmptyTrashError as Tt, RegisterInputSchema as Tu, RetryTransferError as U, FriendInviteJoinedUser as Ua, removeFamilyMember as Uc, buildOAuthAppIconUrl as Ud, buildPutioUrl as Uf, createCoinbaseCharge as Ui, getConfigKey as Ul, listSharedFiles as Un, FileResponseFor as Uo, CreatePaddleWaitingPaymentErrorSpec as Ur, deleteFileMp4 as Us, ContinuePublicShareFilesErrorSpec as Ut, VoucherLookupErrorSpec as Uu, ReannounceTransferError as V, CreateFriendInviteErrorSpec as Va, listFamilyInvites as Vc, UpdateOAuthAppError as Vd, PutioSdkConfigShape as Vf, classifyPaymentChangePlanResponse as Vi, PutioJsonValue as Vl, listPublicShareFiles as Vn, FileQuerySchema as Vo, CreateOpenNodeChargeErrorSpec as Vr, createFolder as Vs, restoreTrash as Vt, VerifyTOTPResponseSchema as Vu, RetryTransferErrorSpec as W, FriendInviteJoinedUserSchema as Wa, ClearEventsError as Wc, buildOAuthAuthorizeUrl as Wd, encodePathSegment as Wf, createNanoPaymentRequest as Wi, getConfigKeyWith as Wl, shareFiles as Wn, FileSearchResponse as Wo, GetPaymentInfoError as Wr, deleteFileSelection as Ws, CreatePublicShareError as Wt, buildAuthLoginUrl as Wu, TransferBaseSchema as X, createFriendInvite as Xa, EventsListResponse as Xc, regenerateOAuthAppToken as Xd, requestArrayBuffer as Xf, listPaymentInvites as Xi, ClientsError as Xl, DeleteRssFeedError as Xn, FileSubtitlesError as Xo, ListPaymentInvitesError as Xr, getApiDownloadUrl as Xs, GetPublicShareError as Xt, getCode as Xu, TransferAddInputSchema as Y, ListFriendInvitesErrorSpec as Ya, EventsListQuerySchema as Yc, queryOAuthApps as Yd, makePutioSdkLiveLayer as Yf, listPaymentHistory as Yi, AuthorizationCodeSchema as Yl, CreateRssFeedErrorSpec as Yn, FileSubtitleSchema as Yo, ListPaymentHistoryErrorSpec as Yr, getApiContentUrl as Ys, DeletePublicShareErrorSpec as Yt, generateTOTP as Yu, TransferInfoItem as Z, listFriendInvites as Za, GetEventTorrentError as Zc, setOAuthAppIcon as Zd, requestJson as Zf, listPaymentOptions as Zi, ClientsErrorSpec as Zl, DeleteRssFeedErrorSpec as Zn, FileSubtitlesErrorSpec as Zo, ListPaymentInvitesErrorSpec as Zr, getApiMp4DownloadUrl as Zs, GetPublicShareErrorSpec as Zt, getFamilyInvite as Zu, GetZipErrorSpec as _, ListFriendsErrorSpec as _a, GetIftttStatusErrorSpec as _c, DeleteOAuthAppErrorSpec as _d, AccountWarnings as _f, PaymentOptionPlanTypeSchema as _i, ListEventsError as _l, SharedFileSchema as _n, FileConversionStatusSchema as _o, PutioUnhandledSdkError as _p, RssFeedParams as _r, FilesSearchQuerySchema as _s, listTransfers as _t, LoginResponseSchema as _u, PutioSdkEffectClient as a, ApproveFriendRequestErrorSpec as aa, listFileSubtitles as ac, logout as ad, AccountDisk as af, PaymentChangePlanSubmitInput as ai, HistoryKnownEventTypeSchema as al, ListPublicShareFilesErrorSpec as an, FileActiveConversionSchema as ao, PutioErrorEnvelope as ap, PauseRssFeedErrorSpec as ar, FileUploadResult as as, TransfersContinueResponse as at, GenerateTOTPErrorSpec as au, ZipCreateResponse as b, ListWaitingRequestsError as ba, SendIftttEventError as bc, MyOAuthApp as bd, PasInfoSchema as bf, PaymentPlanGroup as bi, deleteEvent as bl, SharedFileSharedWith as bn, FileDirectAccessOptions as bo, definePutioOperationErrorSpec as bp, UpdateRssFeedError as br, GetFileError as bs, stopTransferRecording as bt, RegenerateRecoveryCodesError as bu, createPutioSdkPromiseClient as c, DenyFriendRequestError as ca, putMp4ToMyFiles as cc, resetPassword as cd, AccountInfoBaseSchema as cf, PaymentHistoryItem as ci, HistoryTransferCallbackErrorEventSchema as cl, ListSharedFilesError as cn, FileApiDownloadUrlOptions as co, PutioKnownOperationErrorContract as cp, RetryAllRssFeedItemsError as cr, FileWatchStatusError as cs, TransfersListResponse as ct, GiftCardLookupError as cu, CancelZipError as d, FriendBase as da, resetStartFrom as dc, revokeClient as dd, AccountInfoQuery as df, PaymentInfo as di, HistoryTransferErrorEventSchema as dl, PublicShareListQuery as dn, FileBaseSchema as do, PutioOperationErrorSpec as dp, RetryRssFeedItemErrorSpec as dr, FilesListEnvelopeSchema as ds, cancelTransfers as dt, GrantsErrorSpec as du, redeemPaymentVoucher as ea, getHlsStreamUrl as ec, getRecoveryCodes as ed, AccountClearOptionsSchema as ef, ListPaymentPlansError as ei, HistoryEventSchema as el, GetSharedWithError as en, CreateFolderError as eo, selectJsonFields as ep, ListRssFeedItemsError as er, FileUploadEnvelope as es, TransferStatus as et, ForgotPasswordError as eu, CancelZipErrorSpec as f, FriendBaseSchema as fa, searchFiles as fc, validateToken as fd, AccountInfoQuerySchema as ff, PaymentInfoPlanSchema as fi, HistoryTransferFromRssErrorEventSchema as fl, PublicShareListQuerySchema as fn, FileBreadcrumb as fo, PutioOperationFailure as fp, RssFeed as fr, FilesListQuery as fs, cleanTransfers as ft, LinkDeviceError as fu, GetZipError as g, ListFriendsError as ga, GetIftttStatusError as gc, DeleteOAuthAppError as gd, AccountTwoFactorSettingsSchema as gf, PaymentOption as gi, HistoryZipCreatedEventSchema as gl, SharedFile as gn, FileConversionStatus as go, PutioTypedErrorEnvelope as gp, RssFeedItemSucceededSchema as gr, FilesSearchQuery as gs, getTransferInfo as gt, LoginResponse as gu, CreateZipInput as h, FriendSharedFolderErrorSpec as ha, uploadFile as hc, CreateOAuthAppErrorSpec as hd, AccountSettingsSchema as hf, PaymentInviteSchema as hi, HistoryZipCreatedEvent as hl, ShareFilesErrorSpec as hn, FileBroadSchema as ho, PutioTransportError as hp, RssFeedItemSchema as hr, FilesMoveErrorSchema as hs, getTransfer as ht, LoginErrorSpec as hu, PutioSdk as i, ApproveFriendRequestError as ia, listFileExtractions as ic, login as id, AccountConfirmationsErrorSpec as if, PaymentChangePlanPreviewSchema as ii, HistoryKnownEventType as il, ListPublicShareFilesError as in, FileActiveConversion as io, PutioConfigurationError as ip, PauseRssFeedError as ir, FileUploadRequestDescriptor as is, TransfersAddMultiError as it, GenerateTOTPError as iu, TunnelRouteSchema as j, countWaitingRequests as ja, JoinFamilyError as jc, OAuthSetIconInput as jd, OkResponseSchema as jf, PreviewPaymentChangePlanErrorSpec as ji, DownloadLinksStatus as jl, UnshareFileError as jn, FileMediaInfoFormatSchema as jo, parseErrorBody as jp, retryRssFeedItem as jr, buildFileApiDownloadUrl as js, TrashBulkInput as jt, RevokeOAuthClientErrorSpec as ju, ListTunnelRoutesErrorSpec as k, UserSearchResultSchema as ka, FamilyMember as kc, OAuthAppUpdateInputSchema as kd, listAccountConfirmations as kf, PaymentVoucherInfoSchema as ki, DownloadLinksPayload as kl, SharingUnshareInput as kn, FileListResponse as ko, mapDecodeErrorToValidationError as kp, resumeRssFeed as kr, StartFromErrorSpec as ks, RestoreTrashError as kt, RevokeAllOAuthClientsErrorSpec as ku, makePutioSdkEffectClientLayer as l, DenyFriendRequestErrorSpec as la, queryFiles as lc, revokeAllClients as ld, AccountInfoBroad as lf, PaymentHistoryItemSchema as li, HistoryTransferCompletedEvent as ll, ListSharedFilesErrorSpec as ln, FileApiMp4DownloadUrlOptions as lo, PutioOperationError as lp, RetryAllRssFeedItemsErrorSpec as lr, FileWatchStatusErrorSpec as ls, addManyTransfers as lt, GiftCardLookupErrorSpec as lu, CreateZipErrorSpec as m, FriendSharedFolderError as ma, setStartFrom as mc, CreateOAuthAppError as md, AccountSettings as mf, PaymentInvite as mi, HistoryVoucherEventSchema as ml, ShareFilesError as mn, FileBroad as mo, PutioSdkError as mp, RssFeedItemFailedSchema as mr, FilesMoveError as ms, countTransfers as mt, LoginError as mu, DEFAULT_PUTIO_UPLOAD_BASE_URL as n, stopPaymentSubscription as na, getStartFrom as nc, grants as nd, AccountConfirmationSchema as nf, PaymentChangePlanPreview as ni, HistoryFileSharedEvent as nl, GetSharingCloneInfoError as nn, DownloadUrlError as no, PutioApiError as np, ListRssFeedsError as nr, FileUploadErrorSpec as ns, TransferType as nt, FriendInviteLookupError as nu, PutioSdkPromiseClient as o, CountWaitingRequestsError as oa, moveFileSelection as oc, regenerateRecoveryCodes as od, AccountDiskSchema as of, PaymentChangePlanSubmitResponse as oi, HistoryPrivateTorrentPinEventSchema as ol, ListPublicSharesError as on, FileActiveConversionsError as oo, PutioErrorEnvelopeSchema as op, ResumeRssFeedError as or, FileUploadTransfer as os, TransfersListQuery as ot, GenerateTOTPResponse as ou, CreateZipError as p, FriendSchema as pa, setFilesWatchStatus as pc, verifyTOTP as pd, AccountInfoResponseFor as pf, PaymentInfoSchema as pi, HistoryUploadEventSchema as pl, PublicShareSchema as pn, FileBreadcrumbSchema as po, PutioRateLimitError as pp, RssFeedItem as pr, FilesListQuerySchema as ps, continueTransfers as pt, LinkDeviceErrorSpec as pu, Transfer as q, FriendInviteSchema as qa, DeleteEventErrorSpec as qc, getOAuthApp as qd, makePutioSdkConfig as qf, getPaymentInfo as qi, setConfigKey as ql, ClearRssFeedLogsErrorSpec as qn, FileStartFromSetInput as qo, GetPaymentVoucherInfoErrorSpec as qr, findNextFile as qs, CreateSharingCloneErrorSpec as qt, exists as qu, DEFAULT_PUTIO_WEB_APP_URL as r, submitPaymentChangePlan as ra, listActiveMp4Conversions as rc, linkDevice as rd, AccountConfirmationsError as rf, PaymentChangePlanPreviewInput as ri, HistoryFileSharedEventSchema as rl, GetSharingCloneInfoErrorSpec as rn, DownloadUrlErrorSpec as ro, PutioAuthError as rp, ListRssFeedsErrorSpec as rr, FileUploadInput as rs, TransferTypeSchema as rt, FriendInviteLookupErrorSpec as ru, createPutioSdkEffectClient as s, CountWaitingRequestsErrorSpec as sa, moveFiles as sc, register as sd, AccountInfoBase as sf, PaymentChangePlanSubmitSchema as si, HistoryRssFilterPausedEventSchema as sl, ListPublicSharesErrorSpec as sn, FileActiveConversionsErrorSpec as so, PutioKnownErrorContract as sp, ResumeRssFeedErrorSpec as sr, FileVideoMetadata as ss, TransfersListQuerySchema as st, GenerateTOTPResponseSchema as su, DEFAULT_PUTIO_API_BASE_URL as t, reportPayments as ta, getMp4Status as tc, getVoucher as td, AccountConfirmation as tf, ListPaymentPlansErrorSpec as ti, HistoryFileFromRssDeletedEventSchema as tl, GetSharedWithErrorSpec as tn, CreateFolderErrorSpec as to, AnyPutioOperationError as tp, ListRssFeedItemsErrorSpec as tr, FileUploadError as ts, TransferStatusSchema as tt, ForgotPasswordErrorSpec as tu, makePutioSdkLiveClientLayer as u, Friend as ua, renameFile as uc, revokeApp as ud, AccountInfoBroadSchema as uf, PaymentHistoryQuery as ui, HistoryTransferCompletedEventSchema as ul, PublicShare as un, FileBase as uo, PutioOperationErrorFromSpec as up, RetryRssFeedItemError as ur, FilesBulkSelection as us, addTransfer as ut, GrantsError as uu, ListZipsError as v, ListSentRequestsError as va, IftttEventInput as vc, GetOAuthAppError as vd, AccountWarningsSchema as vf, PaymentOptionSchema as vi, ListEventsErrorSpec as vl, SharedFileShare as vn, FileCore as vo, PutioValidationError as vp, RssFeedParamsSchema as vr, FolderType as vs, reannounceTransfer as vt, RecoveryCodesError as vu, cancelZip as w, SearchFriendsError as wa, CreateFamilyInviteError as wc, OAuthAppCreateInputSchema as wd, SaveAccountSettingsPayloadSchema as wf, PaymentProviderNameSchema as wi, CreateDownloadLinksErrorSpec as wl, SharingCloneInput as wn, FileExtractionStatusSchema as wo, isPutioErrorEnvelope as wp, deleteRssFeed as wr, RenameFileError as ws, DeleteTrashErrorSpec as wt, RegisterInput as wu, ZipInfo as x, ListWaitingRequestsErrorSpec as xa, SendIftttEventErrorSpec as xc, MyOAuthAppSchema as xd, SaveAccountSettingsError as xf, PaymentPlanGroupSchema as xi, getEventTorrent as xl, SharedFileSharedWithSchema as xn, FileExtraction as xo, fallbackPutioErrorEnvelope as xp, UpdateRssFeedErrorSpec as xr, GetFileErrorSpec as xs, ContinueTrashError as xt, RegenerateRecoveryCodesErrorSpec as xu, ListZipsErrorSpec as y, ListSentRequestsErrorSpec as ya, IftttEventType as yc, GetOAuthAppErrorSpec as yd, PasInfo as yf, PaymentPaddleWaitingPaymentInput as yi, clearEvents as yl, SharedFileShareSchema as yn, FileCreateFolderInput as yo, decodePutioErrorEnvelope as yp, RssFeedSchema as yr, FolderTypeSchema as ys, retryTransfer as yt, RecoveryCodesErrorSpec as yu, ListTransfersError as z, sendFriendRequest as za, createFamilyInvite as zc, RegenerateOAuthAppTokenError as zd, PutioQueryValue as zf, SubmitPaymentChangePlanErrorSpec as zi, PutioJsonObject as zl, getSharedWith as zn, FileMp4MutationErrorSpec as zo, CreateNanoPaymentRequestErrorSpec as zr, createFileUploadFormData as zs, emptyTrash as zt, VerifyTOTPErrorSpec as zu };
|
|
7388
|
+
//# sourceMappingURL=index-C4NwsF9x.d.ts.map
|
package/dist/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as TransferSchema, $a as ContinueFilesErrorSpec, $c as HistoryEvent, $d as AccountClearOptions, $f as PutioErrorEnvelope, $i as previewPaymentChangePlan, $l as FamilyInviteLookupErrorSpec, $n as GetRssFeedErrorSpec, $o as FileTypeSchema, $r as ListPaymentOptionsErrorSpec, $s as getFile, $t as GetPublicShareFileUrlErrorSpec, $u as getGiftCard, A as TunnelRoute, Aa as approveFriendRequest, Ac as FamilyMemberSchema, Ad as OAuthAppWithTokenSchema, Af as saveAccountSettings, Ai as PreviewPaymentChangePlanError, Al as DownloadLinksPayloadSchema, An as SharingUnshareInputSchema, Ao as FileMediaInfo, Ar as retryAllRssFeedItems, As as buildFileApiContentUrl, At as RestoreTrashErrorSpec, Au as RevokeOAuthClientError, B as ListTransfersErrorSpec, Ba as CreateFriendInviteError, Bc as joinFamily, Bd as RegenerateOAuthAppTokenErrorSpec, Bf as encodePathSegment, Bi as UserSubscriptionStatusSchema, Bl as PutioJsonPrimitive, Bn as getSharingCloneInfo, Bo as FileQuery, Br as CreateOpenNodeChargeError, Bs as createFileUploadRequest, Bt as listTrash, Bu as VerifyTOTPResponse, C as ZipSummary, Ca as RemoveFriendErrorSpec, Cc as sendIftttEvent, Cd as OAuthAppCreateInput, Cf as SaveAccountSettingsPayload, Ci as PaymentProvider, Cl as CreateDownloadLinksError, Cn as SharingCloneInfoSchema, Co as FileExtractionStatus, Cp as mapDecodeErrorToValidationError, Cr as createRssFeed, Cs as QueryFilesErrorSpec, Ct as DeleteTrashError, Cu as RegisterErrorSpec, D as listZips, Da as SendFriendRequestErrorSpec, Dc as FamilyInviteSchema, Dd as OAuthAppSessionSchema, Df as getAccountInfo, Di as PaymentTypeSchema, Dl as DownloadLinksInfo, Dn as SharingShareInput, Do as FileHlsStreamUrlOptions, Dp as withOperationErrors, Dr as listRssFeeds, Ds as SearchFilesErrorSpec, Dt as ListTrashError, Du as ResetPasswordErrorSpec, E as getZip, Ea as SendFriendRequestError, Ec as FamilyInvite, Ed as OAuthAppSession, Ef as destroyAccount, Ei as PaymentSubscriptionInfoSchema, El as DownloadLinksCreateInputSchema, En as SharingCloneStatusSchema, Eo as FileExtractionsErrorSpec, Ep as responseRateLimitHeaders, Er as listRssFeedItems, Es as SearchFilesError, Et as EmptyTrashErrorSpec, Eu as ResetPasswordError, F as AddTransferError, Fa as listSentRequests, Fc as ListFamilyMembersError, Fd as PopularOAuthApp, Ff as PutioQueryValue, Fi as ReportPaymentsErrorSpec, Fl as createDownloadLinks, Fn as createPublicShare, Fo as FileMediaMetadataSchema, Fr as ConfirmFastspringOrderErrorSpec, Fs as continueSearch, Ft as TrashListQuery, Fu as TwoFactorRecoveryCodesSchema, G as StopRecordingTransferError, Ga as FriendInviteJoinedUserStatus, Gc as ClearEventsErrorSpec, Gd as createOAuthApp, Gf as requestJson, Gi as createOpenNodeCharge, Gl as readConfig, Gn as unshareFile, Go as FileSort, Gr as GetPaymentInfoErrorSpec, Gs as deleteFiles, Gt as CreatePublicShareErrorSpec, Gu as checkCodeMatch, H as ReannounceTransferErrorSpec, Ha as FriendInvite, Hc as listFamilyMembers, Hd as UpdateOAuthAppErrorSpec, Hf as makePutioSdkLayer, Hi as confirmFastspringOrder, Hl as deleteConfigKey, Hn as listPublicShares, Ho as FileRenameInput, Hr as CreatePaddleWaitingPaymentError, Hs as deleteFileExtraction, Ht as ContinuePublicShareFilesError, Hu as VoucherLookupError, I as AddTransferErrorSpec, Ia as listWaitingRequests, Ic as ListFamilyMembersErrorSpec, Id as PopularOAuthAppSchema, If as PutioSdkConfig, Ii as StopSubscriptionError, Il as getDownloadLinks, In as deletePublicShare, Io as FileMp4Error, Ir as CreateCoinbaseChargeError, Is as convertFileSelectionToMp4, It as TrashListResponse, Iu as ValidateTokenResponse, J as TransferAddInput, Ja as ListFriendInvitesError, Jc as EventsListQuery, Jd as getPopularOAuthApps, Jf as selectJsonFields, Ji as getPaymentVoucherInfo, Jl as writeConfig, Jn as CreateRssFeedError, Jo as FileSubtitle, Jr as ListPaymentHistoryError, Js as findNextVideo, Jt as DeletePublicShareError, Ju as forgotPassword, K as StopRecordingTransferErrorSpec, Ka as FriendInviteJoinedUserStatusSchema, Kc as DeleteEventError, Kd as deleteOAuthApp, Kf as requestVoid, Ki as createPaddleWaitingPayment, Kl as readConfigWith, Kn as ClearRssFeedLogsError, Ko as FileSortSchema, Kr as GetPaymentVoucherInfoError, Ks as extractFiles, Kt as CreateSharingCloneError, Ku as clients, L as GetTransferError, La as removeFriend, Lc as RemoveFamilyMemberError, Ld as QueryOAuthAppsError, Lf as PutioSdkConfigShape, Li as StopSubscriptionErrorSpec, Ll as JsonObjectSchema, Ln as getPublicShare, Lo as FileMp4ErrorSpec, Lr as CreateCoinbaseChargeErrorSpec, Ls as convertFileToMp4, Lt as continueTrash, Lu as ValidateTokenResponseSchema, M as listTunnelRoutes, Ma as denyFriendRequest, Mc as JoinFamilyErrorSpec, Md as OAuthSetIconInputSchema, Mf as PutioAuth, Mi as RedeemPaymentVoucherError, Ml as DownloadLinksStatusSchema, Mn as UnshareFileErrorSpec, Mo as FileMediaInfoSchema, Mr as updateRssFeed, Ms as buildFileApiMp4DownloadUrl, Mt as TrashContinueResponse, Mu as RevokeOAuthGrantError, N as AddManyTransfersError, Na as getFriendSharedFolder, Nc as ListFamilyInvitesError, Nd as OwnedOAuthApp, Nf as PutioPathSegment, Ni as RedeemPaymentVoucherErrorSpec, Nl as GetDownloadLinksError, Nn as cloneSharedFiles, No as FileMediaInfoStreamSchema, Nr as ClassifiedPaymentChangePlanSubmitResponse, Ns as buildFileHlsStreamUrl, Nt as TrashFile, Nu as RevokeOAuthGrantErrorSpec, O as ListTunnelRoutesError, Oa as UserSearchResult, Oc as FamilyInvitesResponse, Od as OAuthAppUpdateInput, Of as getAccountSettings, Oi as PaymentVoucherInfo, Ol as DownloadLinksInfoSchema, On as SharingShareInputSchema, Oo as FileListContinuationResponse, Or as pauseRssFeed, Os as StartFromError, Ot as ListTrashErrorSpec, Ou as RevokeAllOAuthClientsError, P as AddManyTransfersErrorSpec, Pa as listFriends, Pc as ListFamilyInvitesErrorSpec, Pd as OwnedOAuthAppSchema, Pf as PutioQuery, Pi as ReportPaymentsError, Pl as GetDownloadLinksErrorSpec, Pn as continuePublicShareFiles, Po as FileMediaMetadata, Pr as ConfirmFastspringOrderError, Ps as continueFiles, Pt as TrashFileSchema, Pu as TwoFactorRecoveryCodes, Q as TransferLink, Qa as ContinueFilesError, Qc as GetEventTorrentErrorSpec, Qd as updateOAuthApp, Qf as PutioConfigurationError, Qi as listPaymentPlans, Ql as FamilyInviteLookupError, Qn as GetRssFeedError, Qo as FileType, Qr as ListPaymentOptionsError, Qs as getDownloadUrl, Qt as GetPublicShareFileUrlError, Qu as getFriendInvite, R as GetTransferErrorSpec, Ra as searchFriends, Rc as RemoveFamilyMemberErrorSpec, Rd as QueryOAuthAppsErrorSpec, Rf as PutioSdkContext, Ri as SubmitPaymentChangePlanError, Rl as JsonValueSchema, Rn as getPublicShareFileUrl, Ro as FileMp4MutationError, Rr as CreateNanoPaymentRequestError, Rs as convertFilesToMp4, Rt as deleteTrash, Ru as VerifyTOTPError, S as ZipStatusSchema, Sa as RemoveFriendError, Sc as getIftttStatus, Sd as OAuthApp, Sf as SaveAccountSettingsErrorSpec, Si as PaymentPlanTypeSchema, Sl as listEvents, Sn as SharingCloneInfo, So as FileExtractionSchema, Sp as mapConfigurationError, Sr as clearRssFeedLogs, Ss as QueryFilesError, St as ContinueTrashErrorSpec, Su as RegisterError, T as createZip, Ta as SearchFriendsErrorSpec, Tc as CreateFamilyInviteErrorSpec, Td as OAuthAppSchema, Tf as clearAccount, Ti as PaymentProviderSchema, Tl as DownloadLinksCreateInput, Tn as SharingCloneInputSchema, To as FileExtractionsError, Tp as parseErrorBody, Tr as getRssFeed, Ts as RenameFileErrorSpec, Tt as EmptyTrashError, Tu as RegisterInputSchema, U as RetryTransferError, Ua as FriendInviteJoinedUser, Uc as removeFamilyMember, Ud as buildOAuthAppIconUrl, Uf as makePutioSdkLiveLayer, Ui as createCoinbaseCharge, Ul as getConfigKey, Un as listSharedFiles, Uo as FileResponseFor, Ur as CreatePaddleWaitingPaymentErrorSpec, Us as deleteFileMp4, Ut as ContinuePublicShareFilesErrorSpec, Uu as VoucherLookupErrorSpec, V as ReannounceTransferError, Va as CreateFriendInviteErrorSpec, Vc as listFamilyInvites, Vd as UpdateOAuthAppError, Vf as makePutioSdkConfig, Vi as classifyPaymentChangePlanResponse, Vl as PutioJsonValue, Vn as listPublicShareFiles, Vo as FileQuerySchema, Vr as CreateOpenNodeChargeErrorSpec, Vs as createFolder, Vt as restoreTrash, Vu as VerifyTOTPResponseSchema, W as RetryTransferErrorSpec, Wa as FriendInviteJoinedUserSchema, Wc as ClearEventsError, Wd as buildOAuthAuthorizeUrl, Wf as requestArrayBuffer, Wi as createNanoPaymentRequest, Wl as getConfigKeyWith, Wn as shareFiles, Wo as FileSearchResponse, Wr as GetPaymentInfoError, Ws as deleteFileSelection, Wt as CreatePublicShareError, Wu as buildAuthLoginUrl, X as TransferBaseSchema, Xa as createFriendInvite, Xc as EventsListResponse, Xd as regenerateOAuthAppToken, Xf as PutioApiError, Xi as listPaymentInvites, Xl as ClientsError, Xn as DeleteRssFeedError, Xo as FileSubtitlesError, Xr as ListPaymentInvitesError, Xs as getApiDownloadUrl, Xt as GetPublicShareError, Xu as getCode, Y as TransferAddInputSchema, Ya as ListFriendInvitesErrorSpec, Yc as EventsListQuerySchema, Yd as queryOAuthApps, Yf as AnyPutioOperationError, Yi as listPaymentHistory, Yl as AuthorizationCodeSchema, Yn as CreateRssFeedErrorSpec, Yo as FileSubtitleSchema, Yr as ListPaymentHistoryErrorSpec, Ys as getApiContentUrl, Yt as DeletePublicShareErrorSpec, Yu as generateTOTP, Z as TransferInfoItem, Za as listFriendInvites, Zc as GetEventTorrentError, Zd as setOAuthAppIcon, Zf as PutioAuthError, Zi as listPaymentOptions, Zl as ClientsErrorSpec, Zn as DeleteRssFeedErrorSpec, Zo as FileSubtitlesErrorSpec, Zr as ListPaymentInvitesErrorSpec, Zs as getApiMp4DownloadUrl, Zt as GetPublicShareErrorSpec, Zu as getFamilyInvite, _ as GetZipErrorSpec, _a as ListFriendsErrorSpec, _c as GetIftttStatusErrorSpec, _d as DeleteOAuthAppErrorSpec, _f as AccountWarnings, _i as PaymentOptionPlanTypeSchema, _l as ListEventsError, _n as SharedFileSchema, _o as FileConversionStatusSchema, _p as isPutioAuthError, _r as RssFeedParams, _s as FilesSearchQuerySchema, _t as listTransfers, _u as LoginResponseSchema, a as PutioSdkEffectClient, aa as ApproveFriendRequestErrorSpec, ac as listFileSubtitles, ad as logout, af as AccountDisk, ai as PaymentChangePlanSubmitInput, al as HistoryKnownEventTypeSchema, an as ListPublicShareFilesErrorSpec, ao as FileActiveConversionSchema, ap as PutioOperationErrorSpec, ar as PauseRssFeedErrorSpec, as as FileUploadResult, at as TransfersContinueResponse, au as GenerateTOTPErrorSpec, b as ZipCreateResponse, ba as ListWaitingRequestsError, bc as SendIftttEventError, bd as MyOAuthApp, bf as PasInfoSchema, bi as PaymentPlanGroup, bl as deleteEvent, bn as SharedFileSharedWith, bo as FileDirectAccessOptions, bp as isPutioRateLimitError, br as UpdateRssFeedError, bs as GetFileError, bt as stopTransferRecording, bu as RegenerateRecoveryCodesError, c as createPutioSdkPromiseClient, ca as DenyFriendRequestError, cc as putMp4ToMyFiles, cd as resetPassword, cf as AccountInfoBaseSchema, ci as PaymentHistoryItem, cl as HistoryTransferCallbackErrorEventSchema, cn as ListSharedFilesError, co as FileApiDownloadUrlOptions, cp as PutioSdkError, cr as RetryAllRssFeedItemsError, cs as FileWatchStatusError, ct as TransfersListResponse, cu as GiftCardLookupError, d as CancelZipError, da as FriendBase, dc as resetStartFrom, dd as revokeClient, df as AccountInfoQuery, di as PaymentInfo, dl as HistoryTransferErrorEventSchema, dn as PublicShareListQuery, do as FileBaseSchema, dp as PutioUnhandledSdkError, dr as RetryRssFeedItemErrorSpec, ds as FilesListEnvelopeSchema, dt as cancelTransfers, du as GrantsErrorSpec, ea as redeemPaymentVoucher, ec as getHlsStreamUrl, ed as getRecoveryCodes, ef as AccountClearOptionsSchema, ei as ListPaymentPlansError, el as HistoryEventSchema, en as GetSharedWithError, eo as CreateFolderError, ep as PutioErrorEnvelopeSchema, er as ListRssFeedItemsError, es as FileUploadEnvelope, et as TransferStatus, eu as ForgotPasswordError, f as CancelZipErrorSpec, fa as FriendBaseSchema, fc as searchFiles, fd as validateToken, ff as AccountInfoQuerySchema, fi as PaymentInfoPlanSchema, fl as HistoryTransferFromRssErrorEventSchema, fn as PublicShareListQuerySchema, fo as FileBreadcrumb, fp as PutioValidationError, fr as RssFeed, fs as FilesListQuery, ft as cleanTransfers, fu as LinkDeviceError, g as GetZipError, ga as ListFriendsError, gc as GetIftttStatusError, gd as DeleteOAuthAppError, gf as AccountTwoFactorSettingsSchema, gi as PaymentOption, gl as HistoryZipCreatedEventSchema, gn as SharedFile, go as FileConversionStatus, gp as isPutioApiError, gr as RssFeedItemSucceededSchema, gs as FilesSearchQuery, gt as getTransferInfo, gu as LoginResponse, h as CreateZipInput, ha as FriendSharedFolderErrorSpec, hc as uploadFile, hd as CreateOAuthAppErrorSpec, hf as AccountSettingsSchema, hi as PaymentInviteSchema, hl as HistoryZipCreatedEvent, hn as ShareFilesErrorSpec, ho as FileBroadSchema, hp as fallbackPutioErrorEnvelope, hr as RssFeedItemSchema, hs as FilesMoveErrorSchema, ht as getTransfer, hu as LoginErrorSpec, i as PutioSdk, ia as ApproveFriendRequestError, ic as listFileExtractions, id as login, if as AccountConfirmationsErrorSpec, ii as PaymentChangePlanPreviewSchema, il as HistoryKnownEventType, in as ListPublicShareFilesError, io as FileActiveConversion, ip as PutioOperationErrorFromSpec, ir as PauseRssFeedError, is as FileUploadRequestDescriptor, it as TransfersAddMultiError, iu as GenerateTOTPError, j as TunnelRouteSchema, ja as countWaitingRequests, jc as JoinFamilyError, jd as OAuthSetIconInput, jf as OkResponseSchema, ji as PreviewPaymentChangePlanErrorSpec, jl as DownloadLinksStatus, jn as UnshareFileError, jo as FileMediaInfoFormatSchema, jr as retryRssFeedItem, js as buildFileApiDownloadUrl, jt as TrashBulkInput, ju as RevokeOAuthClientErrorSpec, k as ListTunnelRoutesErrorSpec, ka as UserSearchResultSchema, kc as FamilyMember, kd as OAuthAppUpdateInputSchema, kf as listAccountConfirmations, ki as PaymentVoucherInfoSchema, kl as DownloadLinksPayload, kn as SharingUnshareInput, ko as FileListResponse, kr as resumeRssFeed, ks as StartFromErrorSpec, kt as RestoreTrashError, ku as RevokeAllOAuthClientsErrorSpec, l as makePutioSdkEffectClientLayer, la as DenyFriendRequestErrorSpec, lc as queryFiles, ld as revokeAllClients, lf as AccountInfoBroad, li as PaymentHistoryItemSchema, ll as HistoryTransferCompletedEvent, ln as ListSharedFilesErrorSpec, lo as FileApiMp4DownloadUrlOptions, lp as PutioTransportError, lr as RetryAllRssFeedItemsErrorSpec, ls as FileWatchStatusErrorSpec, lt as addManyTransfers, lu as GiftCardLookupErrorSpec, m as CreateZipErrorSpec, ma as FriendSharedFolderError, mc as setStartFrom, md as CreateOAuthAppError, mf as AccountSettings, mi as PaymentInvite, ml as HistoryVoucherEventSchema, mn as ShareFilesError, mo as FileBroad, mp as definePutioOperationErrorSpec, mr as RssFeedItemFailedSchema, ms as FilesMoveError, mt as countTransfers, mu as LoginError, n as DEFAULT_PUTIO_UPLOAD_BASE_URL, na as stopPaymentSubscription, nc as getStartFrom, nd as grants, nf as AccountConfirmationSchema, ni as PaymentChangePlanPreview, nl as HistoryFileSharedEvent, nn as GetSharingCloneInfoError, no as DownloadUrlError, np as PutioKnownOperationErrorContract, nr as ListRssFeedsError, ns as FileUploadErrorSpec, nt as TransferType, nu as FriendInviteLookupError, o as PutioSdkPromiseClient, oa as CountWaitingRequestsError, oc as moveFileSelection, od as regenerateRecoveryCodes, of as AccountDiskSchema, oi as PaymentChangePlanSubmitResponse, ol as HistoryPrivateTorrentPinEventSchema, on as ListPublicSharesError, oo as FileActiveConversionsError, op as PutioOperationFailure, or as ResumeRssFeedError, os as FileUploadTransfer, ot as TransfersListQuery, ou as GenerateTOTPResponse, p as CreateZipError, pa as FriendSchema, pc as setFilesWatchStatus, pd as verifyTOTP, pf as AccountInfoResponseFor, pi as PaymentInfoSchema, pl as HistoryUploadEventSchema, pn as PublicShareSchema, po as FileBreadcrumbSchema, pp as decodePutioErrorEnvelope, pr as RssFeedItem, ps as FilesListQuerySchema, pt as continueTransfers, pu as LinkDeviceErrorSpec, q as Transfer, qa as FriendInviteSchema, qc as DeleteEventErrorSpec, qd as getOAuthApp, qf as selectJsonField, qi as getPaymentInfo, ql as setConfigKey, qn as ClearRssFeedLogsErrorSpec, qo as FileStartFromSetInput, qr as GetPaymentVoucherInfoErrorSpec, qs as findNextFile, qt as CreateSharingCloneErrorSpec, qu as exists, r as DEFAULT_PUTIO_WEB_APP_URL, ra as submitPaymentChangePlan, rc as listActiveMp4Conversions, rd as linkDevice, rf as AccountConfirmationsError, ri as PaymentChangePlanPreviewInput, rl as HistoryFileSharedEventSchema, rn as GetSharingCloneInfoErrorSpec, ro as DownloadUrlErrorSpec, rp as PutioOperationError, rr as ListRssFeedsErrorSpec, rs as FileUploadInput, rt as TransferTypeSchema, ru as FriendInviteLookupErrorSpec, s as createPutioSdkEffectClient, sa as CountWaitingRequestsErrorSpec, sc as moveFiles, sd as register, sf as AccountInfoBase, si as PaymentChangePlanSubmitSchema, sl as HistoryRssFilterPausedEventSchema, sn as ListPublicSharesErrorSpec, so as FileActiveConversionsErrorSpec, sp as PutioRateLimitError, sr as ResumeRssFeedErrorSpec, ss as FileVideoMetadata, st as TransfersListQuerySchema, su as GenerateTOTPResponseSchema, t as DEFAULT_PUTIO_API_BASE_URL, ta as reportPayments, tc as getMp4Status, td as getVoucher, tf as AccountConfirmation, ti as ListPaymentPlansErrorSpec, tl as HistoryFileFromRssDeletedEventSchema, tn as GetSharedWithErrorSpec, to as CreateFolderErrorSpec, tp as PutioKnownErrorContract, tr as ListRssFeedItemsErrorSpec, ts as FileUploadError, tt as TransferStatusSchema, tu as ForgotPasswordErrorSpec, u as makePutioSdkLiveClientLayer, ua as Friend, uc as renameFile, ud as revokeApp, uf as AccountInfoBroadSchema, ui as PaymentHistoryQuery, ul as HistoryTransferCompletedEventSchema, un as PublicShare, uo as FileBase, up as PutioTypedErrorEnvelope, ur as RetryRssFeedItemError, us as FilesBulkSelection, ut as addTransfer, uu as GrantsError, v as ListZipsError, va as ListSentRequestsError, vc as IftttEventInput, vd as GetOAuthAppError, vf as AccountWarningsSchema, vi as PaymentOptionSchema, vl as ListEventsErrorSpec, vn as SharedFileShare, vo as FileCore, vp as isPutioErrorEnvelope, vr as RssFeedParamsSchema, vs as FolderType, vt as reannounceTransfer, vu as RecoveryCodesError, w as cancelZip, wa as SearchFriendsError, wc as CreateFamilyInviteError, wd as OAuthAppCreateInputSchema, wf as SaveAccountSettingsPayloadSchema, wi as PaymentProviderNameSchema, wl as CreateDownloadLinksErrorSpec, wn as SharingCloneInput, wo as FileExtractionStatusSchema, wp as mapTransportError, wr as deleteRssFeed, ws as RenameFileError, wt as DeleteTrashErrorSpec, wu as RegisterInput, x as ZipInfo, xa as ListWaitingRequestsErrorSpec, xc as SendIftttEventErrorSpec, xd as MyOAuthAppSchema, xf as SaveAccountSettingsError, xi as PaymentPlanGroupSchema, xl as getEventTorrent, xn as SharedFileSharedWithSchema, xo as FileExtraction, xp as makeResponseError, xr as UpdateRssFeedErrorSpec, xs as GetFileErrorSpec, xt as ContinueTrashError, xu as RegenerateRecoveryCodesErrorSpec, y as ListZipsErrorSpec, ya as ListSentRequestsErrorSpec, yc as IftttEventType, yd as GetOAuthAppErrorSpec, yf as PasInfo, yi as PaymentPaddleWaitingPaymentInput, yl as clearEvents, yn as SharedFileShareSchema, yo as FileCreateFolderInput, yp as isPutioOperationError, yr as RssFeedSchema, ys as FolderTypeSchema, yt as retryTransfer, yu as RecoveryCodesErrorSpec, z as ListTransfersError, za as sendFriendRequest, zc as createFamilyInvite, zd as RegenerateOAuthAppTokenError, zf as buildPutioUrl, zi as SubmitPaymentChangePlanErrorSpec, zl as PutioJsonObject, zn as getSharedWith, zo as FileMp4MutationErrorSpec, zr as CreateNanoPaymentRequestErrorSpec, zs as createFileUploadFormData, zt as emptyTrash, zu as VerifyTOTPErrorSpec } from "./index-Bdf0QH3l.js";
|
|
2
|
-
export { AccountClearOptions, AccountClearOptionsSchema, AccountConfirmation, AccountConfirmationSchema, AccountConfirmationsError, AccountConfirmationsErrorSpec, AccountDisk, AccountDiskSchema, AccountInfoBase, AccountInfoBaseSchema, AccountInfoBroad, AccountInfoBroadSchema, AccountInfoQuery, AccountInfoQuerySchema, AccountInfoResponseFor, AccountSettings, AccountSettingsSchema, AccountTwoFactorSettingsSchema, AccountWarnings, AccountWarningsSchema, AddManyTransfersError, AddManyTransfersErrorSpec, AddTransferError, AddTransferErrorSpec, AnyPutioOperationError, ApproveFriendRequestError, ApproveFriendRequestErrorSpec, AuthorizationCodeSchema, CancelZipError, CancelZipErrorSpec, ClassifiedPaymentChangePlanSubmitResponse, ClearEventsError, ClearEventsErrorSpec, ClearRssFeedLogsError, ClearRssFeedLogsErrorSpec, ClientsError, ClientsErrorSpec, ConfirmFastspringOrderError, ConfirmFastspringOrderErrorSpec, ContinueFilesError, ContinueFilesErrorSpec, ContinuePublicShareFilesError, ContinuePublicShareFilesErrorSpec, ContinueTrashError, ContinueTrashErrorSpec, CountWaitingRequestsError, CountWaitingRequestsErrorSpec, CreateCoinbaseChargeError, CreateCoinbaseChargeErrorSpec, CreateDownloadLinksError, CreateDownloadLinksErrorSpec, CreateFamilyInviteError, CreateFamilyInviteErrorSpec, CreateFolderError, CreateFolderErrorSpec, CreateFriendInviteError, CreateFriendInviteErrorSpec, CreateNanoPaymentRequestError, CreateNanoPaymentRequestErrorSpec, CreateOAuthAppError, CreateOAuthAppErrorSpec, CreateOpenNodeChargeError, CreateOpenNodeChargeErrorSpec, 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, 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, FileCore, FileCreateFolderInput, FileDirectAccessOptions, FileExtraction, FileExtractionSchema, FileExtractionStatus, FileExtractionStatusSchema, FileExtractionsError, FileExtractionsErrorSpec, FileHlsStreamUrlOptions, FileListContinuationResponse, FileListResponse, FileMediaInfo, FileMediaInfoFormatSchema, FileMediaInfoSchema, FileMediaInfoStreamSchema, FileMediaMetadata, FileMediaMetadataSchema, FileMp4Error, FileMp4ErrorSpec, FileMp4MutationError, FileMp4MutationErrorSpec, FileQuery, FileQuerySchema, FileRenameInput, FileResponseFor, FileSearchResponse, FileSort, FileSortSchema, FileStartFromSetInput, FileSubtitle, FileSubtitleSchema, FileSubtitlesError, FileSubtitlesErrorSpec, FileType, FileTypeSchema, FileUploadEnvelope, FileUploadError, FileUploadErrorSpec, FileUploadInput, FileUploadRequestDescriptor, FileUploadResult, FileUploadTransfer, FileVideoMetadata, FileWatchStatusError, FileWatchStatusErrorSpec, 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, GetFileError, GetFileErrorSpec, GetIftttStatusError, GetIftttStatusErrorSpec, GetOAuthAppError, GetOAuthAppErrorSpec, GetPaymentInfoError, GetPaymentInfoErrorSpec, GetPaymentVoucherInfoError, GetPaymentVoucherInfoErrorSpec, GetPublicShareError, GetPublicShareErrorSpec, GetPublicShareFileUrlError, GetPublicShareFileUrlErrorSpec, GetRssFeedError, GetRssFeedErrorSpec, GetSharedWithError, GetSharedWithErrorSpec, GetSharingCloneInfoError, GetSharingCloneInfoErrorSpec, GetTransferError, GetTransferErrorSpec, 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, 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, LoginResponse, LoginResponseSchema, MyOAuthApp, MyOAuthAppSchema, OAuthApp, OAuthAppCreateInput, OAuthAppCreateInputSchema, OAuthAppSchema, OAuthAppSession, OAuthAppSessionSchema, OAuthAppUpdateInput, OAuthAppUpdateInputSchema, OAuthAppWithTokenSchema, 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, PopularOAuthApp, PopularOAuthAppSchema, PreviewPaymentChangePlanError, PreviewPaymentChangePlanErrorSpec, PublicShare, PublicShareListQuery, PublicShareListQuerySchema, PublicShareSchema, PutioApiError, PutioAuth, PutioAuthError, PutioConfigurationError, PutioErrorEnvelope, PutioErrorEnvelopeSchema, 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, 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, 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, Transfer, TransferAddInput, TransferAddInputSchema, TransferBaseSchema, TransferInfoItem, TransferLink, 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, approveFriendRequest, buildAuthLoginUrl, buildFileApiContentUrl, buildFileApiDownloadUrl, buildFileApiMp4DownloadUrl, buildFileHlsStreamUrl, buildOAuthAppIconUrl, buildOAuthAuthorizeUrl, buildPutioUrl, cancelTransfers, cancelZip, checkCodeMatch, classifyPaymentChangePlanResponse, cleanTransfers, clearAccount, clearEvents, clearRssFeedLogs, clients, cloneSharedFiles, confirmFastspringOrder, continueFiles, continuePublicShareFiles, continueSearch, continueTransfers, continueTrash, convertFileSelectionToMp4, convertFileToMp4, convertFilesToMp4, countTransfers, countWaitingRequests, createCoinbaseCharge, createDownloadLinks, createFamilyInvite, createFileUploadFormData, createFileUploadRequest, createFolder, createFriendInvite, createNanoPaymentRequest, createOAuthApp, createOpenNodeCharge, createPaddleWaitingPayment, createPublicShare, createPutioSdkEffectClient, createPutioSdkPromiseClient, createRssFeed, createZip, decodePutioErrorEnvelope, definePutioOperationErrorSpec, deleteConfigKey, deleteEvent, deleteFileExtraction, deleteFileMp4, deleteFileSelection, deleteFiles, deleteOAuthApp, deletePublicShare, deleteRssFeed, deleteTrash, denyFriendRequest, destroyAccount, emptyTrash, encodePathSegment, exists, extractFiles, fallbackPutioErrorEnvelope, findNextFile, findNextVideo, forgotPassword, generateTOTP, getAccountInfo, getAccountSettings, getApiContentUrl, getApiDownloadUrl, getApiMp4DownloadUrl, getCode, getConfigKey, getConfigKeyWith, getDownloadLinks, getDownloadUrl, getEventTorrent, getFamilyInvite, getFile, getFriendInvite, getFriendSharedFolder, getGiftCard, getHlsStreamUrl, getIftttStatus, getMp4Status, getOAuthApp, getPaymentInfo, getPaymentVoucherInfo, getPopularOAuthApps, getPublicShare, getPublicShareFileUrl, getRecoveryCodes, getRssFeed, getSharedWith, getSharingCloneInfo, getStartFrom, getTransfer, getTransferInfo, getVoucher, getZip, grants, isPutioApiError, isPutioAuthError, isPutioErrorEnvelope, isPutioOperationError, isPutioRateLimitError, joinFamily, linkDevice, listAccountConfirmations, listActiveMp4Conversions, listEvents, listFamilyInvites, listFamilyMembers, listFileExtractions, listFileSubtitles, listFriendInvites, listFriends, listPaymentHistory, listPaymentInvites, listPaymentOptions, listPaymentPlans, listPublicShareFiles, listPublicShares, listRssFeedItems, listRssFeeds, listSentRequests, listSharedFiles, listTransfers, listTrash, listTunnelRoutes, listWaitingRequests, listZips, login, logout, makePutioSdkConfig, makePutioSdkEffectClientLayer, makePutioSdkLayer, makePutioSdkLiveClientLayer, makePutioSdkLiveLayer, makeResponseError, mapConfigurationError, mapDecodeErrorToValidationError, mapTransportError, moveFileSelection, moveFiles, parseErrorBody, pauseRssFeed, previewPaymentChangePlan, putMp4ToMyFiles, queryFiles, queryOAuthApps, readConfig, readConfigWith, reannounceTransfer, redeemPaymentVoucher, regenerateOAuthAppToken, regenerateRecoveryCodes, register, removeFamilyMember, removeFriend, renameFile, reportPayments, requestArrayBuffer, requestJson, requestVoid, resetPassword, resetStartFrom, responseRateLimitHeaders, restoreTrash, resumeRssFeed, retryAllRssFeedItems, retryRssFeedItem, retryTransfer, revokeAllClients, revokeApp, revokeClient, saveAccountSettings, searchFiles, searchFriends, selectJsonField, selectJsonFields, sendFriendRequest, sendIftttEvent, setConfigKey, setFilesWatchStatus, setOAuthAppIcon, setStartFrom, shareFiles, stopPaymentSubscription, stopTransferRecording, submitPaymentChangePlan, unshareFile, updateOAuthApp, updateRssFeed, uploadFile, validateToken, verifyTOTP, withOperationErrors, writeConfig };
|
|
1
|
+
import { $ as TransferSchema, $a as ContinueFilesErrorSpec, $c as HistoryEvent, $d as AccountClearOptions, $f as selectJsonField, $i as previewPaymentChangePlan, $l as FamilyInviteLookupErrorSpec, $n as GetRssFeedErrorSpec, $o as FileTypeSchema, $r as ListPaymentOptionsErrorSpec, $s as getFile, $t as GetPublicShareFileUrlErrorSpec, $u as getGiftCard, A as TunnelRoute, Aa as approveFriendRequest, Ac as FamilyMemberSchema, Ad as OAuthAppWithTokenSchema, Af as saveAccountSettings, Ai as PreviewPaymentChangePlanError, Al as DownloadLinksPayloadSchema, An as SharingUnshareInputSchema, Ao as FileMediaInfo, Ap as mapTransportError, Ar as retryAllRssFeedItems, As as buildFileApiContentUrl, At as RestoreTrashErrorSpec, Au as RevokeOAuthClientError, B as ListTransfersErrorSpec, Ba as CreateFriendInviteError, Bc as joinFamily, Bd as RegenerateOAuthAppTokenErrorSpec, Bf as PutioSdkConfig, Bi as UserSubscriptionStatusSchema, Bl as PutioJsonPrimitive, Bn as getSharingCloneInfo, Bo as FileQuery, Br as CreateOpenNodeChargeError, Bs as createFileUploadRequest, Bt as listTrash, Bu as VerifyTOTPResponse, C as ZipSummary, Ca as RemoveFriendErrorSpec, Cc as sendIftttEvent, Cd as OAuthAppCreateInput, Cf as SaveAccountSettingsPayload, Ci as PaymentProvider, Cl as CreateDownloadLinksError, Cn as SharingCloneInfoSchema, Co as FileExtractionStatus, Cp as isPutioAuthError, Cr as createRssFeed, Cs as QueryFilesErrorSpec, Ct as DeleteTrashError, Cu as RegisterErrorSpec, D as listZips, Da as SendFriendRequestErrorSpec, Dc as FamilyInviteSchema, Dd as OAuthAppSessionSchema, Df as getAccountInfo, Di as PaymentTypeSchema, Dl as DownloadLinksInfo, Dn as SharingShareInput, Do as FileHlsStreamUrlOptions, Dp as makeResponseError, Dr as listRssFeeds, Ds as SearchFilesErrorSpec, Dt as ListTrashError, Du as ResetPasswordErrorSpec, E as getZip, Ea as SendFriendRequestError, Ec as FamilyInvite, Ed as OAuthAppSession, Ef as destroyAccount, Ei as PaymentSubscriptionInfoSchema, El as DownloadLinksCreateInputSchema, En as SharingCloneStatusSchema, Eo as FileExtractionsErrorSpec, Ep as isPutioRateLimitError, Er as listRssFeedItems, Es as SearchFilesError, Et as EmptyTrashErrorSpec, Eu as ResetPasswordError, F as AddTransferError, Fa as listSentRequests, Fc as ListFamilyMembersError, Fd as PopularOAuthApp, Ff as PutioHttpRequest, Fi as ReportPaymentsErrorSpec, Fl as createDownloadLinks, Fn as createPublicShare, Fo as FileMediaMetadataSchema, Fr as ConfirmFastspringOrderErrorSpec, Fs as continueSearch, Ft as TrashListQuery, Fu as TwoFactorRecoveryCodesSchema, G as StopRecordingTransferError, Ga as FriendInviteJoinedUserStatus, Gc as ClearEventsErrorSpec, Gd as createOAuthApp, Gf as makePutioFetchClient, Gi as createOpenNodeCharge, Gl as readConfig, Gn as unshareFile, Go as FileSort, Gr as GetPaymentInfoErrorSpec, Gs as deleteFiles, Gt as CreatePublicShareErrorSpec, Gu as checkCodeMatch, H as ReannounceTransferErrorSpec, Ha as FriendInvite, Hc as listFamilyMembers, Hd as UpdateOAuthAppErrorSpec, Hf as PutioSdkContext, Hi as confirmFastspringOrder, Hl as deleteConfigKey, Hn as listPublicShares, Ho as FileRenameInput, Hr as CreatePaddleWaitingPaymentError, Hs as deleteFileExtraction, Ht as ContinuePublicShareFilesError, Hu as VoucherLookupError, I as AddTransferErrorSpec, Ia as listWaitingRequests, Ic as ListFamilyMembersErrorSpec, Id as PopularOAuthAppSchema, If as PutioHttpResponse, Ii as StopSubscriptionError, Il as getDownloadLinks, In as deletePublicShare, Io as FileMp4Error, Ir as CreateCoinbaseChargeError, Is as convertFileSelectionToMp4, It as TrashListResponse, Iu as ValidateTokenResponse, J as TransferAddInput, Ja as ListFriendInvitesError, Jc as EventsListQuery, Jd as getPopularOAuthApps, Jf as makePutioSdkLayer, Ji as getPaymentVoucherInfo, Jl as writeConfig, Jn as CreateRssFeedError, Jo as FileSubtitle, Jr as ListPaymentHistoryError, Js as findNextVideo, Jt as DeletePublicShareError, Ju as forgotPassword, K as StopRecordingTransferErrorSpec, Ka as FriendInviteJoinedUserStatusSchema, Kc as DeleteEventError, Kd as deleteOAuthApp, Kf as makePutioFetchLayer, Ki as createPaddleWaitingPayment, Kl as readConfigWith, Kn as ClearRssFeedLogsError, Ko as FileSortSchema, Kr as GetPaymentVoucherInfoError, Ks as extractFiles, Kt as CreateSharingCloneError, Ku as clients, L as GetTransferError, La as removeFriend, Lc as RemoveFamilyMemberError, Ld as QueryOAuthAppsError, Lf as PutioPathSegment, Li as StopSubscriptionErrorSpec, Ll as JsonObjectSchema, Ln as getPublicShare, Lo as FileMp4ErrorSpec, Lr as CreateCoinbaseChargeErrorSpec, Ls as convertFileToMp4, Lt as continueTrash, Lu as ValidateTokenResponseSchema, M as listTunnelRoutes, Ma as denyFriendRequest, Mc as JoinFamilyErrorSpec, Md as OAuthSetIconInputSchema, Mf as PutioAuth, Mi as RedeemPaymentVoucherError, Ml as DownloadLinksStatusSchema, Mn as UnshareFileErrorSpec, Mo as FileMediaInfoSchema, Mp as responseRateLimitHeaders, Mr as updateRssFeed, Ms as buildFileApiMp4DownloadUrl, Mt as TrashContinueResponse, Mu as RevokeOAuthGrantError, N as AddManyTransfersError, Na as getFriendSharedFolder, Nc as ListFamilyInvitesError, Nd as OwnedOAuthApp, Nf as PutioHttpClient, Ni as RedeemPaymentVoucherErrorSpec, Nl as GetDownloadLinksError, Nn as cloneSharedFiles, No as FileMediaInfoStreamSchema, Np as withOperationErrors, Nr as ClassifiedPaymentChangePlanSubmitResponse, Ns as buildFileHlsStreamUrl, Nt as TrashFile, Nu as RevokeOAuthGrantErrorSpec, O as ListTunnelRoutesError, Oa as UserSearchResult, Oc as FamilyInvitesResponse, Od as OAuthAppUpdateInput, Of as getAccountSettings, Oi as PaymentVoucherInfo, Ol as DownloadLinksInfoSchema, On as SharingShareInputSchema, Oo as FileListContinuationResponse, Op as mapConfigurationError, Or as pauseRssFeed, Os as StartFromError, Ot as ListTrashErrorSpec, Ou as RevokeAllOAuthClientsError, P as AddManyTransfersErrorSpec, Pa as listFriends, Pc as ListFamilyInvitesErrorSpec, Pd as OwnedOAuthAppSchema, Pf as PutioHttpClientShape, Pi as ReportPaymentsError, Pl as GetDownloadLinksErrorSpec, Pn as continuePublicShareFiles, Po as FileMediaMetadata, Pr as ConfirmFastspringOrderError, Ps as continueFiles, Pt as TrashFileSchema, Pu as TwoFactorRecoveryCodes, Q as TransferLink, Qa as ContinueFilesError, Qc as GetEventTorrentErrorSpec, Qd as updateOAuthApp, Qf as requestVoid, Qi as listPaymentPlans, Ql as FamilyInviteLookupError, Qn as GetRssFeedError, Qo as FileType, Qr as ListPaymentOptionsError, Qs as getDownloadUrl, Qt as GetPublicShareFileUrlError, Qu as getFriendInvite, R as GetTransferErrorSpec, Ra as searchFriends, Rc as RemoveFamilyMemberErrorSpec, Rd as QueryOAuthAppsErrorSpec, Rf as PutioQuery, Ri as SubmitPaymentChangePlanError, Rl as JsonValueSchema, Rn as getPublicShareFileUrl, Ro as FileMp4MutationError, Rr as CreateNanoPaymentRequestError, Rs as convertFilesToMp4, Rt as deleteTrash, Ru as VerifyTOTPError, S as ZipStatusSchema, Sa as RemoveFriendError, Sc as getIftttStatus, Sd as OAuthApp, Sf as SaveAccountSettingsErrorSpec, Si as PaymentPlanTypeSchema, Sl as listEvents, Sn as SharingCloneInfo, So as FileExtractionSchema, Sp as isPutioApiError, Sr as clearRssFeedLogs, Ss as QueryFilesError, St as ContinueTrashErrorSpec, Su as RegisterError, T as createZip, Ta as SearchFriendsErrorSpec, Tc as CreateFamilyInviteErrorSpec, Td as OAuthAppSchema, Tf as clearAccount, Ti as PaymentProviderSchema, Tl as DownloadLinksCreateInput, Tn as SharingCloneInputSchema, To as FileExtractionsError, Tp as isPutioOperationError, Tr as getRssFeed, Ts as RenameFileErrorSpec, Tt as EmptyTrashError, Tu as RegisterInputSchema, U as RetryTransferError, Ua as FriendInviteJoinedUser, Uc as removeFamilyMember, Ud as buildOAuthAppIconUrl, Uf as buildPutioUrl, Ui as createCoinbaseCharge, Ul as getConfigKey, Un as listSharedFiles, Uo as FileResponseFor, Ur as CreatePaddleWaitingPaymentErrorSpec, Us as deleteFileMp4, Ut as ContinuePublicShareFilesErrorSpec, Uu as VoucherLookupErrorSpec, V as ReannounceTransferError, Va as CreateFriendInviteErrorSpec, Vc as listFamilyInvites, Vd as UpdateOAuthAppError, Vf as PutioSdkConfigShape, Vi as classifyPaymentChangePlanResponse, Vl as PutioJsonValue, Vn as listPublicShareFiles, Vo as FileQuerySchema, Vr as CreateOpenNodeChargeErrorSpec, Vs as createFolder, Vt as restoreTrash, Vu as VerifyTOTPResponseSchema, W as RetryTransferErrorSpec, Wa as FriendInviteJoinedUserSchema, Wc as ClearEventsError, Wd as buildOAuthAuthorizeUrl, Wf as encodePathSegment, Wi as createNanoPaymentRequest, Wl as getConfigKeyWith, Wn as shareFiles, Wo as FileSearchResponse, Wr as GetPaymentInfoError, Ws as deleteFileSelection, Wt as CreatePublicShareError, Wu as buildAuthLoginUrl, X as TransferBaseSchema, Xa as createFriendInvite, Xc as EventsListResponse, Xd as regenerateOAuthAppToken, Xf as requestArrayBuffer, Xi as listPaymentInvites, Xl as ClientsError, Xn as DeleteRssFeedError, Xo as FileSubtitlesError, Xr as ListPaymentInvitesError, Xs as getApiDownloadUrl, Xt as GetPublicShareError, Xu as getCode, Y as TransferAddInputSchema, Ya as ListFriendInvitesErrorSpec, Yc as EventsListQuerySchema, Yd as queryOAuthApps, Yf as makePutioSdkLiveLayer, Yi as listPaymentHistory, Yl as AuthorizationCodeSchema, Yn as CreateRssFeedErrorSpec, Yo as FileSubtitleSchema, Yr as ListPaymentHistoryErrorSpec, Ys as getApiContentUrl, Yt as DeletePublicShareErrorSpec, Yu as generateTOTP, Z as TransferInfoItem, Za as listFriendInvites, Zc as GetEventTorrentError, Zd as setOAuthAppIcon, Zf as requestJson, Zi as listPaymentOptions, Zl as ClientsErrorSpec, Zn as DeleteRssFeedErrorSpec, Zo as FileSubtitlesErrorSpec, Zr as ListPaymentInvitesErrorSpec, Zs as getApiMp4DownloadUrl, Zt as GetPublicShareErrorSpec, Zu as getFamilyInvite, _ as GetZipErrorSpec, _a as ListFriendsErrorSpec, _c as GetIftttStatusErrorSpec, _d as DeleteOAuthAppErrorSpec, _f as AccountWarnings, _i as PaymentOptionPlanTypeSchema, _l as ListEventsError, _n as SharedFileSchema, _o as FileConversionStatusSchema, _p as PutioUnhandledSdkError, _r as RssFeedParams, _s as FilesSearchQuerySchema, _t as listTransfers, _u as LoginResponseSchema, a as PutioSdkEffectClient, aa as ApproveFriendRequestErrorSpec, ac as listFileSubtitles, ad as logout, af as AccountDisk, ai as PaymentChangePlanSubmitInput, al as HistoryKnownEventTypeSchema, an as ListPublicShareFilesErrorSpec, ao as FileActiveConversionSchema, ap as PutioErrorEnvelope, ar as PauseRssFeedErrorSpec, as as FileUploadResult, at as TransfersContinueResponse, au as GenerateTOTPErrorSpec, b as ZipCreateResponse, ba as ListWaitingRequestsError, bc as SendIftttEventError, bd as MyOAuthApp, bf as PasInfoSchema, bi as PaymentPlanGroup, bl as deleteEvent, bn as SharedFileSharedWith, bo as FileDirectAccessOptions, bp as definePutioOperationErrorSpec, br as UpdateRssFeedError, bs as GetFileError, bt as stopTransferRecording, bu as RegenerateRecoveryCodesError, c as createPutioSdkPromiseClient, ca as DenyFriendRequestError, cc as putMp4ToMyFiles, cd as resetPassword, cf as AccountInfoBaseSchema, ci as PaymentHistoryItem, cl as HistoryTransferCallbackErrorEventSchema, cn as ListSharedFilesError, co as FileApiDownloadUrlOptions, cp as PutioKnownOperationErrorContract, cr as RetryAllRssFeedItemsError, cs as FileWatchStatusError, ct as TransfersListResponse, cu as GiftCardLookupError, d as CancelZipError, da as FriendBase, dc as resetStartFrom, dd as revokeClient, df as AccountInfoQuery, di as PaymentInfo, dl as HistoryTransferErrorEventSchema, dn as PublicShareListQuery, do as FileBaseSchema, dp as PutioOperationErrorSpec, dr as RetryRssFeedItemErrorSpec, ds as FilesListEnvelopeSchema, dt as cancelTransfers, du as GrantsErrorSpec, ea as redeemPaymentVoucher, ec as getHlsStreamUrl, ed as getRecoveryCodes, ef as AccountClearOptionsSchema, ei as ListPaymentPlansError, el as HistoryEventSchema, en as GetSharedWithError, eo as CreateFolderError, ep as selectJsonFields, er as ListRssFeedItemsError, es as FileUploadEnvelope, et as TransferStatus, eu as ForgotPasswordError, f as CancelZipErrorSpec, fa as FriendBaseSchema, fc as searchFiles, fd as validateToken, ff as AccountInfoQuerySchema, fi as PaymentInfoPlanSchema, fl as HistoryTransferFromRssErrorEventSchema, fn as PublicShareListQuerySchema, fo as FileBreadcrumb, fp as PutioOperationFailure, fr as RssFeed, fs as FilesListQuery, ft as cleanTransfers, fu as LinkDeviceError, g as GetZipError, ga as ListFriendsError, gc as GetIftttStatusError, gd as DeleteOAuthAppError, gf as AccountTwoFactorSettingsSchema, gi as PaymentOption, gl as HistoryZipCreatedEventSchema, gn as SharedFile, go as FileConversionStatus, gp as PutioTypedErrorEnvelope, gr as RssFeedItemSucceededSchema, gs as FilesSearchQuery, gt as getTransferInfo, gu as LoginResponse, h as CreateZipInput, ha as FriendSharedFolderErrorSpec, hc as uploadFile, hd as CreateOAuthAppErrorSpec, hf as AccountSettingsSchema, hi as PaymentInviteSchema, hl as HistoryZipCreatedEvent, hn as ShareFilesErrorSpec, ho as FileBroadSchema, hp as PutioTransportError, hr as RssFeedItemSchema, hs as FilesMoveErrorSchema, ht as getTransfer, hu as LoginErrorSpec, i as PutioSdk, ia as ApproveFriendRequestError, ic as listFileExtractions, id as login, if as AccountConfirmationsErrorSpec, ii as PaymentChangePlanPreviewSchema, il as HistoryKnownEventType, in as ListPublicShareFilesError, io as FileActiveConversion, ip as PutioConfigurationError, ir as PauseRssFeedError, is as FileUploadRequestDescriptor, it as TransfersAddMultiError, iu as GenerateTOTPError, j as TunnelRouteSchema, ja as countWaitingRequests, jc as JoinFamilyError, jd as OAuthSetIconInput, jf as OkResponseSchema, ji as PreviewPaymentChangePlanErrorSpec, jl as DownloadLinksStatus, jn as UnshareFileError, jo as FileMediaInfoFormatSchema, jp as parseErrorBody, jr as retryRssFeedItem, js as buildFileApiDownloadUrl, jt as TrashBulkInput, ju as RevokeOAuthClientErrorSpec, k as ListTunnelRoutesErrorSpec, ka as UserSearchResultSchema, kc as FamilyMember, kd as OAuthAppUpdateInputSchema, kf as listAccountConfirmations, ki as PaymentVoucherInfoSchema, kl as DownloadLinksPayload, kn as SharingUnshareInput, ko as FileListResponse, kp as mapDecodeErrorToValidationError, kr as resumeRssFeed, ks as StartFromErrorSpec, kt as RestoreTrashError, ku as RevokeAllOAuthClientsErrorSpec, l as makePutioSdkEffectClientLayer, la as DenyFriendRequestErrorSpec, lc as queryFiles, ld as revokeAllClients, lf as AccountInfoBroad, li as PaymentHistoryItemSchema, ll as HistoryTransferCompletedEvent, ln as ListSharedFilesErrorSpec, lo as FileApiMp4DownloadUrlOptions, lp as PutioOperationError, lr as RetryAllRssFeedItemsErrorSpec, ls as FileWatchStatusErrorSpec, lt as addManyTransfers, lu as GiftCardLookupErrorSpec, m as CreateZipErrorSpec, ma as FriendSharedFolderError, mc as setStartFrom, md as CreateOAuthAppError, mf as AccountSettings, mi as PaymentInvite, ml as HistoryVoucherEventSchema, mn as ShareFilesError, mo as FileBroad, mp as PutioSdkError, mr as RssFeedItemFailedSchema, ms as FilesMoveError, mt as countTransfers, mu as LoginError, n as DEFAULT_PUTIO_UPLOAD_BASE_URL, na as stopPaymentSubscription, nc as getStartFrom, nd as grants, nf as AccountConfirmationSchema, ni as PaymentChangePlanPreview, nl as HistoryFileSharedEvent, nn as GetSharingCloneInfoError, no as DownloadUrlError, np as PutioApiError, nr as ListRssFeedsError, ns as FileUploadErrorSpec, nt as TransferType, nu as FriendInviteLookupError, o as PutioSdkPromiseClient, oa as CountWaitingRequestsError, oc as moveFileSelection, od as regenerateRecoveryCodes, of as AccountDiskSchema, oi as PaymentChangePlanSubmitResponse, ol as HistoryPrivateTorrentPinEventSchema, on as ListPublicSharesError, oo as FileActiveConversionsError, op as PutioErrorEnvelopeSchema, or as ResumeRssFeedError, os as FileUploadTransfer, ot as TransfersListQuery, ou as GenerateTOTPResponse, p as CreateZipError, pa as FriendSchema, pc as setFilesWatchStatus, pd as verifyTOTP, pf as AccountInfoResponseFor, pi as PaymentInfoSchema, pl as HistoryUploadEventSchema, pn as PublicShareSchema, po as FileBreadcrumbSchema, pp as PutioRateLimitError, pr as RssFeedItem, ps as FilesListQuerySchema, pt as continueTransfers, pu as LinkDeviceErrorSpec, q as Transfer, qa as FriendInviteSchema, qc as DeleteEventErrorSpec, qd as getOAuthApp, qf as makePutioSdkConfig, qi as getPaymentInfo, ql as setConfigKey, qn as ClearRssFeedLogsErrorSpec, qo as FileStartFromSetInput, qr as GetPaymentVoucherInfoErrorSpec, qs as findNextFile, qt as CreateSharingCloneErrorSpec, qu as exists, r as DEFAULT_PUTIO_WEB_APP_URL, ra as submitPaymentChangePlan, rc as listActiveMp4Conversions, rd as linkDevice, rf as AccountConfirmationsError, ri as PaymentChangePlanPreviewInput, rl as HistoryFileSharedEventSchema, rn as GetSharingCloneInfoErrorSpec, ro as DownloadUrlErrorSpec, rp as PutioAuthError, rr as ListRssFeedsErrorSpec, rs as FileUploadInput, rt as TransferTypeSchema, ru as FriendInviteLookupErrorSpec, s as createPutioSdkEffectClient, sa as CountWaitingRequestsErrorSpec, sc as moveFiles, sd as register, sf as AccountInfoBase, si as PaymentChangePlanSubmitSchema, sl as HistoryRssFilterPausedEventSchema, sn as ListPublicSharesErrorSpec, so as FileActiveConversionsErrorSpec, sp as PutioKnownErrorContract, sr as ResumeRssFeedErrorSpec, ss as FileVideoMetadata, st as TransfersListQuerySchema, su as GenerateTOTPResponseSchema, t as DEFAULT_PUTIO_API_BASE_URL, ta as reportPayments, tc as getMp4Status, td as getVoucher, tf as AccountConfirmation, ti as ListPaymentPlansErrorSpec, tl as HistoryFileFromRssDeletedEventSchema, tn as GetSharedWithErrorSpec, to as CreateFolderErrorSpec, tp as AnyPutioOperationError, tr as ListRssFeedItemsErrorSpec, ts as FileUploadError, tt as TransferStatusSchema, tu as ForgotPasswordErrorSpec, u as makePutioSdkLiveClientLayer, ua as Friend, uc as renameFile, ud as revokeApp, uf as AccountInfoBroadSchema, ui as PaymentHistoryQuery, ul as HistoryTransferCompletedEventSchema, un as PublicShare, uo as FileBase, up as PutioOperationErrorFromSpec, ur as RetryRssFeedItemError, us as FilesBulkSelection, ut as addTransfer, uu as GrantsError, v as ListZipsError, va as ListSentRequestsError, vc as IftttEventInput, vd as GetOAuthAppError, vf as AccountWarningsSchema, vi as PaymentOptionSchema, vl as ListEventsErrorSpec, vn as SharedFileShare, vo as FileCore, vp as PutioValidationError, vr as RssFeedParamsSchema, vs as FolderType, vt as reannounceTransfer, vu as RecoveryCodesError, w as cancelZip, wa as SearchFriendsError, wc as CreateFamilyInviteError, wd as OAuthAppCreateInputSchema, wf as SaveAccountSettingsPayloadSchema, wi as PaymentProviderNameSchema, wl as CreateDownloadLinksErrorSpec, wn as SharingCloneInput, wo as FileExtractionStatusSchema, wp as isPutioErrorEnvelope, wr as deleteRssFeed, ws as RenameFileError, wt as DeleteTrashErrorSpec, wu as RegisterInput, x as ZipInfo, xa as ListWaitingRequestsErrorSpec, xc as SendIftttEventErrorSpec, xd as MyOAuthAppSchema, xf as SaveAccountSettingsError, xi as PaymentPlanGroupSchema, xl as getEventTorrent, xn as SharedFileSharedWithSchema, xo as FileExtraction, xp as fallbackPutioErrorEnvelope, xr as UpdateRssFeedErrorSpec, xs as GetFileErrorSpec, xt as ContinueTrashError, xu as RegenerateRecoveryCodesErrorSpec, y as ListZipsErrorSpec, ya as ListSentRequestsErrorSpec, yc as IftttEventType, yd as GetOAuthAppErrorSpec, yf as PasInfo, yi as PaymentPaddleWaitingPaymentInput, yl as clearEvents, yn as SharedFileShareSchema, yo as FileCreateFolderInput, yp as decodePutioErrorEnvelope, yr as RssFeedSchema, ys as FolderTypeSchema, yt as retryTransfer, yu as RecoveryCodesErrorSpec, z as ListTransfersError, za as sendFriendRequest, zc as createFamilyInvite, zd as RegenerateOAuthAppTokenError, zf as PutioQueryValue, zi as SubmitPaymentChangePlanErrorSpec, zl as PutioJsonObject, zn as getSharedWith, zo as FileMp4MutationErrorSpec, zr as CreateNanoPaymentRequestErrorSpec, zs as createFileUploadFormData, zt as emptyTrash, zu as VerifyTOTPErrorSpec } from "./index-C4NwsF9x.js";
|
|
2
|
+
export { AccountClearOptions, AccountClearOptionsSchema, AccountConfirmation, AccountConfirmationSchema, AccountConfirmationsError, AccountConfirmationsErrorSpec, AccountDisk, AccountDiskSchema, AccountInfoBase, AccountInfoBaseSchema, AccountInfoBroad, AccountInfoBroadSchema, AccountInfoQuery, AccountInfoQuerySchema, AccountInfoResponseFor, AccountSettings, AccountSettingsSchema, AccountTwoFactorSettingsSchema, AccountWarnings, AccountWarningsSchema, AddManyTransfersError, AddManyTransfersErrorSpec, AddTransferError, AddTransferErrorSpec, AnyPutioOperationError, ApproveFriendRequestError, ApproveFriendRequestErrorSpec, AuthorizationCodeSchema, CancelZipError, CancelZipErrorSpec, ClassifiedPaymentChangePlanSubmitResponse, ClearEventsError, ClearEventsErrorSpec, ClearRssFeedLogsError, ClearRssFeedLogsErrorSpec, ClientsError, ClientsErrorSpec, ConfirmFastspringOrderError, ConfirmFastspringOrderErrorSpec, ContinueFilesError, ContinueFilesErrorSpec, ContinuePublicShareFilesError, ContinuePublicShareFilesErrorSpec, ContinueTrashError, ContinueTrashErrorSpec, CountWaitingRequestsError, CountWaitingRequestsErrorSpec, CreateCoinbaseChargeError, CreateCoinbaseChargeErrorSpec, CreateDownloadLinksError, CreateDownloadLinksErrorSpec, CreateFamilyInviteError, CreateFamilyInviteErrorSpec, CreateFolderError, CreateFolderErrorSpec, CreateFriendInviteError, CreateFriendInviteErrorSpec, CreateNanoPaymentRequestError, CreateNanoPaymentRequestErrorSpec, CreateOAuthAppError, CreateOAuthAppErrorSpec, CreateOpenNodeChargeError, CreateOpenNodeChargeErrorSpec, 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, 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, FileCore, FileCreateFolderInput, FileDirectAccessOptions, FileExtraction, FileExtractionSchema, FileExtractionStatus, FileExtractionStatusSchema, FileExtractionsError, FileExtractionsErrorSpec, FileHlsStreamUrlOptions, FileListContinuationResponse, FileListResponse, FileMediaInfo, FileMediaInfoFormatSchema, FileMediaInfoSchema, FileMediaInfoStreamSchema, FileMediaMetadata, FileMediaMetadataSchema, FileMp4Error, FileMp4ErrorSpec, FileMp4MutationError, FileMp4MutationErrorSpec, FileQuery, FileQuerySchema, FileRenameInput, FileResponseFor, FileSearchResponse, FileSort, FileSortSchema, FileStartFromSetInput, FileSubtitle, FileSubtitleSchema, FileSubtitlesError, FileSubtitlesErrorSpec, FileType, FileTypeSchema, FileUploadEnvelope, FileUploadError, FileUploadErrorSpec, FileUploadInput, FileUploadRequestDescriptor, FileUploadResult, FileUploadTransfer, FileVideoMetadata, FileWatchStatusError, FileWatchStatusErrorSpec, 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, GetFileError, GetFileErrorSpec, GetIftttStatusError, GetIftttStatusErrorSpec, GetOAuthAppError, GetOAuthAppErrorSpec, GetPaymentInfoError, GetPaymentInfoErrorSpec, GetPaymentVoucherInfoError, GetPaymentVoucherInfoErrorSpec, GetPublicShareError, GetPublicShareErrorSpec, GetPublicShareFileUrlError, GetPublicShareFileUrlErrorSpec, GetRssFeedError, GetRssFeedErrorSpec, GetSharedWithError, GetSharedWithErrorSpec, GetSharingCloneInfoError, GetSharingCloneInfoErrorSpec, GetTransferError, GetTransferErrorSpec, 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, 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, LoginResponse, LoginResponseSchema, MyOAuthApp, MyOAuthAppSchema, OAuthApp, OAuthAppCreateInput, OAuthAppCreateInputSchema, OAuthAppSchema, OAuthAppSession, OAuthAppSessionSchema, OAuthAppUpdateInput, OAuthAppUpdateInputSchema, OAuthAppWithTokenSchema, 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, 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, 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, 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, Transfer, TransferAddInput, TransferAddInputSchema, TransferBaseSchema, TransferInfoItem, TransferLink, 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, approveFriendRequest, buildAuthLoginUrl, buildFileApiContentUrl, buildFileApiDownloadUrl, buildFileApiMp4DownloadUrl, buildFileHlsStreamUrl, buildOAuthAppIconUrl, buildOAuthAuthorizeUrl, buildPutioUrl, cancelTransfers, cancelZip, checkCodeMatch, classifyPaymentChangePlanResponse, cleanTransfers, clearAccount, clearEvents, clearRssFeedLogs, clients, cloneSharedFiles, confirmFastspringOrder, continueFiles, continuePublicShareFiles, continueSearch, continueTransfers, continueTrash, convertFileSelectionToMp4, convertFileToMp4, convertFilesToMp4, countTransfers, countWaitingRequests, createCoinbaseCharge, createDownloadLinks, createFamilyInvite, createFileUploadFormData, createFileUploadRequest, createFolder, createFriendInvite, createNanoPaymentRequest, createOAuthApp, createOpenNodeCharge, createPaddleWaitingPayment, createPublicShare, createPutioSdkEffectClient, createPutioSdkPromiseClient, createRssFeed, createZip, decodePutioErrorEnvelope, definePutioOperationErrorSpec, deleteConfigKey, deleteEvent, deleteFileExtraction, deleteFileMp4, deleteFileSelection, deleteFiles, deleteOAuthApp, deletePublicShare, deleteRssFeed, deleteTrash, denyFriendRequest, destroyAccount, emptyTrash, encodePathSegment, exists, extractFiles, fallbackPutioErrorEnvelope, findNextFile, findNextVideo, forgotPassword, generateTOTP, getAccountInfo, getAccountSettings, getApiContentUrl, getApiDownloadUrl, getApiMp4DownloadUrl, getCode, getConfigKey, getConfigKeyWith, getDownloadLinks, getDownloadUrl, getEventTorrent, getFamilyInvite, getFile, getFriendInvite, getFriendSharedFolder, getGiftCard, getHlsStreamUrl, getIftttStatus, getMp4Status, getOAuthApp, getPaymentInfo, getPaymentVoucherInfo, getPopularOAuthApps, getPublicShare, getPublicShareFileUrl, getRecoveryCodes, getRssFeed, getSharedWith, getSharingCloneInfo, getStartFrom, getTransfer, getTransferInfo, getVoucher, getZip, grants, isPutioApiError, isPutioAuthError, isPutioErrorEnvelope, isPutioOperationError, isPutioRateLimitError, joinFamily, linkDevice, listAccountConfirmations, listActiveMp4Conversions, listEvents, listFamilyInvites, listFamilyMembers, listFileExtractions, listFileSubtitles, listFriendInvites, listFriends, listPaymentHistory, listPaymentInvites, listPaymentOptions, listPaymentPlans, listPublicShareFiles, listPublicShares, listRssFeedItems, listRssFeeds, listSentRequests, listSharedFiles, listTransfers, listTrash, listTunnelRoutes, listWaitingRequests, listZips, login, logout, makePutioFetchClient, makePutioFetchLayer, makePutioSdkConfig, makePutioSdkEffectClientLayer, makePutioSdkLayer, makePutioSdkLiveClientLayer, makePutioSdkLiveLayer, makeResponseError, mapConfigurationError, mapDecodeErrorToValidationError, mapTransportError, moveFileSelection, moveFiles, parseErrorBody, pauseRssFeed, previewPaymentChangePlan, putMp4ToMyFiles, queryFiles, queryOAuthApps, readConfig, readConfigWith, reannounceTransfer, redeemPaymentVoucher, regenerateOAuthAppToken, regenerateRecoveryCodes, register, removeFamilyMember, removeFriend, renameFile, reportPayments, requestArrayBuffer, requestJson, requestVoid, resetPassword, resetStartFrom, responseRateLimitHeaders, restoreTrash, resumeRssFeed, retryAllRssFeedItems, retryRssFeedItem, retryTransfer, revokeAllClients, revokeApp, revokeClient, saveAccountSettings, searchFiles, searchFriends, selectJsonField, selectJsonFields, sendFriendRequest, sendIftttEvent, setConfigKey, setFilesWatchStatus, setOAuthAppIcon, setStartFrom, shareFiles, stopPaymentSubscription, stopTransferRecording, submitPaymentChangePlan, unshareFile, updateOAuthApp, updateRssFeed, uploadFile, validateToken, verifyTOTP, withOperationErrors, writeConfig };
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as
|
|
1
|
+
import { A as definePutioOperationErrorSpec, B as mapTransportError, C as PutioConfigurationError, D as PutioTransportError, E as PutioRateLimitError, F as isPutioOperationError, H as responseRateLimitHeaders, I as isPutioRateLimitError, L as makeResponseError, M as isPutioApiError, N as isPutioAuthError, O as PutioValidationError, P as isPutioErrorEnvelope, R as mapConfigurationError, S as PutioAuthError, T as PutioOperationError, U as withOperationErrors, V as parseErrorBody, _ as selectJsonFields, a as PutioSdkConfig, b as DEFAULT_PUTIO_WEB_APP_URL, c as makePutioFetchClient, d as makePutioSdkLayer, f as makePutioSdkLiveLayer, g as selectJsonField, h as requestVoid, i as PutioHttpClient, j as fallbackPutioErrorEnvelope, k as decodePutioErrorEnvelope, l as makePutioFetchLayer, m as requestJson, n as toCursorSelectionForm, o as buildPutioUrl, p as requestArrayBuffer, r as OkResponseSchema, s as encodePathSegment, t as joinCsv, u as makePutioSdkConfig, v as DEFAULT_PUTIO_API_BASE_URL, w as PutioErrorEnvelopeSchema, x as PutioApiError, y as DEFAULT_PUTIO_UPLOAD_BASE_URL, z as mapDecodeErrorToValidationError } from "./forms-DCO3Ckbx.js";
|
|
2
2
|
import { Cause, Context, Effect, Exit, Layer, ManagedRuntime, Schema } from "effect";
|
|
3
3
|
//#region src/domains/account.ts
|
|
4
4
|
const RequestedFlag$1 = Schema.Literal(1);
|
|
@@ -5080,6 +5080,6 @@ const createPutioSdkPromiseClient = (initialConfig = {}) => {
|
|
|
5080
5080
|
};
|
|
5081
5081
|
};
|
|
5082
5082
|
//#endregion
|
|
5083
|
-
export { AccountClearOptionsSchema, AccountConfirmationSchema, AccountConfirmationsErrorSpec, AccountDiskSchema, AccountInfoBaseSchema, AccountInfoBroadSchema, AccountInfoQuerySchema, AccountSettingsSchema, AccountTwoFactorSettingsSchema, AccountWarningsSchema, AddManyTransfersErrorSpec, AddTransferErrorSpec, ApproveFriendRequestErrorSpec, AuthorizationCodeSchema, CancelZipErrorSpec, ClearEventsErrorSpec, ClearRssFeedLogsErrorSpec, ClientsErrorSpec, ConfirmFastspringOrderErrorSpec, ContinueFilesErrorSpec, ContinuePublicShareFilesErrorSpec, ContinueTrashErrorSpec, CountWaitingRequestsErrorSpec, CreateCoinbaseChargeErrorSpec, CreateDownloadLinksErrorSpec, CreateFamilyInviteErrorSpec, CreateFolderErrorSpec, CreateFriendInviteErrorSpec, CreateNanoPaymentRequestErrorSpec, CreateOAuthAppErrorSpec, CreateOpenNodeChargeErrorSpec, CreatePaddleWaitingPaymentErrorSpec, CreatePublicShareErrorSpec, CreateRssFeedErrorSpec, CreateSharingCloneErrorSpec, CreateZipErrorSpec, DEFAULT_PUTIO_API_BASE_URL, DEFAULT_PUTIO_UPLOAD_BASE_URL, DEFAULT_PUTIO_WEB_APP_URL, DeleteEventErrorSpec, DeleteOAuthAppErrorSpec, DeletePublicShareErrorSpec, DeleteRssFeedErrorSpec, DeleteTrashErrorSpec, DenyFriendRequestErrorSpec, DownloadLinksCreateInputSchema, DownloadLinksInfoSchema, DownloadLinksPayloadSchema, DownloadLinksStatusSchema, DownloadUrlErrorSpec, EmptyTrashErrorSpec, EventsListQuerySchema, FamilyInviteLookupErrorSpec, FamilyInviteSchema, FamilyMemberSchema, FileActiveConversionSchema, FileActiveConversionsErrorSpec, FileBaseSchema, FileBreadcrumbSchema, FileBroadSchema, FileConversionStatusSchema, FileExtractionSchema, FileExtractionStatusSchema, FileExtractionsErrorSpec, FileMediaInfoFormatSchema, FileMediaInfoSchema, FileMediaInfoStreamSchema, FileMediaMetadataSchema, FileMp4ErrorSpec, FileMp4MutationErrorSpec, FileQuerySchema, FileSortSchema, FileSubtitleSchema, FileSubtitlesErrorSpec, FileTypeSchema, FileUploadErrorSpec, FileWatchStatusErrorSpec, FilesListEnvelopeSchema, FilesListQuerySchema, FilesMoveErrorSchema, FilesSearchQuerySchema, FolderTypeSchema, ForgotPasswordErrorSpec, FriendBaseSchema, FriendInviteJoinedUserSchema, FriendInviteJoinedUserStatusSchema, FriendInviteLookupErrorSpec, FriendInviteSchema, FriendSchema, FriendSharedFolderErrorSpec, GenerateTOTPErrorSpec, GenerateTOTPResponseSchema, GetDownloadLinksErrorSpec, GetEventTorrentErrorSpec, GetFileErrorSpec, GetIftttStatusErrorSpec, GetOAuthAppErrorSpec, GetPaymentInfoErrorSpec, GetPaymentVoucherInfoErrorSpec, GetPublicShareErrorSpec, GetPublicShareFileUrlErrorSpec, GetRssFeedErrorSpec, GetSharedWithErrorSpec, GetSharingCloneInfoErrorSpec, GetTransferErrorSpec, GetZipErrorSpec, GiftCardLookupErrorSpec, GrantsErrorSpec, HistoryEventSchema, HistoryFileFromRssDeletedEventSchema, HistoryFileSharedEventSchema, HistoryKnownEventTypeSchema, HistoryPrivateTorrentPinEventSchema, HistoryRssFilterPausedEventSchema, HistoryTransferCallbackErrorEventSchema, HistoryTransferCompletedEventSchema, HistoryTransferErrorEventSchema, HistoryTransferFromRssErrorEventSchema, HistoryUploadEventSchema, HistoryVoucherEventSchema, HistoryZipCreatedEventSchema, JoinFamilyErrorSpec, JsonObjectSchema, JsonValueSchema, LinkDeviceErrorSpec, ListEventsErrorSpec, ListFamilyInvitesErrorSpec, ListFamilyMembersErrorSpec, ListFriendInvitesErrorSpec, ListFriendsErrorSpec, ListPaymentHistoryErrorSpec, ListPaymentInvitesErrorSpec, ListPaymentOptionsErrorSpec, ListPaymentPlansErrorSpec, ListPublicShareFilesErrorSpec, ListPublicSharesErrorSpec, ListRssFeedItemsErrorSpec, ListRssFeedsErrorSpec, ListSentRequestsErrorSpec, ListSharedFilesErrorSpec, ListTransfersErrorSpec, ListTrashErrorSpec, ListTunnelRoutesErrorSpec, ListWaitingRequestsErrorSpec, ListZipsErrorSpec, LoginErrorSpec, LoginResponseSchema, MyOAuthAppSchema, OAuthAppCreateInputSchema, OAuthAppSchema, OAuthAppSessionSchema, OAuthAppUpdateInputSchema, OAuthAppWithTokenSchema, OAuthSetIconInputSchema, OkResponseSchema, OwnedOAuthAppSchema, PasInfoSchema, PauseRssFeedErrorSpec, PaymentChangePlanPreviewSchema, PaymentChangePlanSubmitSchema, PaymentHistoryItemSchema, PaymentInfoPlanSchema, PaymentInfoSchema, PaymentInviteSchema, PaymentOptionPlanTypeSchema, PaymentOptionSchema, PaymentPlanGroupSchema, PaymentPlanTypeSchema, PaymentProviderNameSchema, PaymentProviderSchema, PaymentSubscriptionInfoSchema, PaymentTypeSchema, PaymentVoucherInfoSchema, PopularOAuthAppSchema, PreviewPaymentChangePlanErrorSpec, PublicShareListQuerySchema, PublicShareSchema, PutioApiError, PutioAuthError, PutioConfigurationError, PutioErrorEnvelopeSchema, PutioOperationError, PutioRateLimitError, PutioSdk, PutioSdkConfig, PutioTransportError, PutioValidationError, QueryFilesErrorSpec, QueryOAuthAppsErrorSpec, ReannounceTransferErrorSpec, RecoveryCodesErrorSpec, RedeemPaymentVoucherErrorSpec, RegenerateOAuthAppTokenErrorSpec, RegenerateRecoveryCodesErrorSpec, RegisterErrorSpec, RegisterInputSchema, RemoveFamilyMemberErrorSpec, RemoveFriendErrorSpec, RenameFileErrorSpec, ReportPaymentsErrorSpec, ResetPasswordErrorSpec, RestoreTrashErrorSpec, ResumeRssFeedErrorSpec, RetryAllRssFeedItemsErrorSpec, RetryRssFeedItemErrorSpec, RetryTransferErrorSpec, RevokeAllOAuthClientsErrorSpec, RevokeOAuthClientErrorSpec, RevokeOAuthGrantErrorSpec, RssFeedItemFailedSchema, RssFeedItemSchema, RssFeedItemSucceededSchema, RssFeedParamsSchema, RssFeedSchema, SaveAccountSettingsErrorSpec, SaveAccountSettingsPayloadSchema, SearchFilesErrorSpec, SearchFriendsErrorSpec, SendFriendRequestErrorSpec, SendIftttEventErrorSpec, ShareFilesErrorSpec, SharedFileSchema, SharedFileShareSchema, SharedFileSharedWithSchema, SharingCloneInfoSchema, SharingCloneInputSchema, SharingCloneStatusSchema, SharingShareInputSchema, SharingUnshareInputSchema, StartFromErrorSpec, StopRecordingTransferErrorSpec, StopSubscriptionErrorSpec, SubmitPaymentChangePlanErrorSpec, TransferAddInputSchema, TransferBaseSchema, TransferSchema, TransferStatusSchema, TransferTypeSchema, TransfersListQuerySchema, TrashFileSchema, TunnelRouteSchema, TwoFactorRecoveryCodesSchema, UnshareFileErrorSpec, UpdateOAuthAppErrorSpec, UpdateRssFeedErrorSpec, UserSearchResultSchema, UserSubscriptionStatusSchema, ValidateTokenResponseSchema, VerifyTOTPErrorSpec, VerifyTOTPResponseSchema, VoucherLookupErrorSpec, ZipStatusSchema, addManyTransfers, addTransfer, approveFriendRequest, buildAuthLoginUrl, buildFileApiContentUrl, buildFileApiDownloadUrl, buildFileApiMp4DownloadUrl, buildFileHlsStreamUrl, buildOAuthAppIconUrl, buildOAuthAuthorizeUrl, buildPutioUrl, cancelTransfers, cancelZip, checkCodeMatch, classifyPaymentChangePlanResponse, cleanTransfers, clearAccount, clearEvents, clearRssFeedLogs, clients, cloneSharedFiles, confirmFastspringOrder, continueFiles, continuePublicShareFiles, continueSearch, continueTransfers, continueTrash, convertFileSelectionToMp4, convertFileToMp4, convertFilesToMp4, countTransfers, countWaitingRequests, createCoinbaseCharge, createDownloadLinks, createFamilyInvite, createFileUploadFormData, createFileUploadRequest, createFolder, createFriendInvite, createNanoPaymentRequest, createOAuthApp, createOpenNodeCharge, createPaddleWaitingPayment, createPublicShare, createPutioSdkEffectClient, createPutioSdkPromiseClient, createRssFeed, createZip, decodePutioErrorEnvelope, definePutioOperationErrorSpec, deleteConfigKey, deleteEvent, deleteFileExtraction, deleteFileMp4, deleteFileSelection, deleteFiles, deleteOAuthApp, deletePublicShare, deleteRssFeed, deleteTrash, denyFriendRequest, destroyAccount, emptyTrash, encodePathSegment, exists, extractFiles, fallbackPutioErrorEnvelope, findNextFile, findNextVideo, forgotPassword, generateTOTP, getAccountInfo, getAccountSettings, getApiContentUrl, getApiDownloadUrl, getApiMp4DownloadUrl, getCode, getConfigKey, getConfigKeyWith, getDownloadLinks, getDownloadUrl, getEventTorrent, getFamilyInvite, getFile, getFriendInvite, getFriendSharedFolder, getGiftCard, getHlsStreamUrl, getIftttStatus, getMp4Status, getOAuthApp, getPaymentInfo, getPaymentVoucherInfo, getPopularOAuthApps, getPublicShare, getPublicShareFileUrl, getRecoveryCodes, getRssFeed, getSharedWith, getSharingCloneInfo, getStartFrom, getTransfer, getTransferInfo, getVoucher, getZip, grants, isPutioApiError, isPutioAuthError, isPutioErrorEnvelope, isPutioOperationError, isPutioRateLimitError, joinFamily, linkDevice, listAccountConfirmations, listActiveMp4Conversions, listEvents, listFamilyInvites, listFamilyMembers, listFileExtractions, listFileSubtitles, listFriendInvites, listFriends, listPaymentHistory, listPaymentInvites, listPaymentOptions, listPaymentPlans, listPublicShareFiles, listPublicShares, listRssFeedItems, listRssFeeds, listSentRequests, listSharedFiles, listTransfers, listTrash, listTunnelRoutes, listWaitingRequests, listZips, login, logout, makePutioSdkConfig, makePutioSdkEffectClientLayer, makePutioSdkLayer, makePutioSdkLiveClientLayer, makePutioSdkLiveLayer, makeResponseError, mapConfigurationError, mapDecodeErrorToValidationError, mapTransportError, moveFileSelection, moveFiles, parseErrorBody, pauseRssFeed, previewPaymentChangePlan, putMp4ToMyFiles, queryFiles, queryOAuthApps, readConfig, readConfigWith, reannounceTransfer, redeemPaymentVoucher, regenerateOAuthAppToken, regenerateRecoveryCodes, register, removeFamilyMember, removeFriend, renameFile, reportPayments, requestArrayBuffer, requestJson, requestVoid, resetPassword, resetStartFrom, responseRateLimitHeaders, restoreTrash, resumeRssFeed, retryAllRssFeedItems, retryRssFeedItem, retryTransfer, revokeAllClients, revokeApp, revokeClient, saveAccountSettings, searchFiles, searchFriends, selectJsonField, selectJsonFields, sendFriendRequest, sendIftttEvent, setConfigKey, setFilesWatchStatus, setOAuthAppIcon, setStartFrom, shareFiles, stopPaymentSubscription, stopTransferRecording, submitPaymentChangePlan, unshareFile, updateOAuthApp, updateRssFeed, uploadFile, validateToken, verifyTOTP, withOperationErrors, writeConfig };
|
|
5083
|
+
export { AccountClearOptionsSchema, AccountConfirmationSchema, AccountConfirmationsErrorSpec, AccountDiskSchema, AccountInfoBaseSchema, AccountInfoBroadSchema, AccountInfoQuerySchema, AccountSettingsSchema, AccountTwoFactorSettingsSchema, AccountWarningsSchema, AddManyTransfersErrorSpec, AddTransferErrorSpec, ApproveFriendRequestErrorSpec, AuthorizationCodeSchema, CancelZipErrorSpec, ClearEventsErrorSpec, ClearRssFeedLogsErrorSpec, ClientsErrorSpec, ConfirmFastspringOrderErrorSpec, ContinueFilesErrorSpec, ContinuePublicShareFilesErrorSpec, ContinueTrashErrorSpec, CountWaitingRequestsErrorSpec, CreateCoinbaseChargeErrorSpec, CreateDownloadLinksErrorSpec, CreateFamilyInviteErrorSpec, CreateFolderErrorSpec, CreateFriendInviteErrorSpec, CreateNanoPaymentRequestErrorSpec, CreateOAuthAppErrorSpec, CreateOpenNodeChargeErrorSpec, CreatePaddleWaitingPaymentErrorSpec, CreatePublicShareErrorSpec, CreateRssFeedErrorSpec, CreateSharingCloneErrorSpec, CreateZipErrorSpec, DEFAULT_PUTIO_API_BASE_URL, DEFAULT_PUTIO_UPLOAD_BASE_URL, DEFAULT_PUTIO_WEB_APP_URL, DeleteEventErrorSpec, DeleteOAuthAppErrorSpec, DeletePublicShareErrorSpec, DeleteRssFeedErrorSpec, DeleteTrashErrorSpec, DenyFriendRequestErrorSpec, DownloadLinksCreateInputSchema, DownloadLinksInfoSchema, DownloadLinksPayloadSchema, DownloadLinksStatusSchema, DownloadUrlErrorSpec, EmptyTrashErrorSpec, EventsListQuerySchema, FamilyInviteLookupErrorSpec, FamilyInviteSchema, FamilyMemberSchema, FileActiveConversionSchema, FileActiveConversionsErrorSpec, FileBaseSchema, FileBreadcrumbSchema, FileBroadSchema, FileConversionStatusSchema, FileExtractionSchema, FileExtractionStatusSchema, FileExtractionsErrorSpec, FileMediaInfoFormatSchema, FileMediaInfoSchema, FileMediaInfoStreamSchema, FileMediaMetadataSchema, FileMp4ErrorSpec, FileMp4MutationErrorSpec, FileQuerySchema, FileSortSchema, FileSubtitleSchema, FileSubtitlesErrorSpec, FileTypeSchema, FileUploadErrorSpec, FileWatchStatusErrorSpec, FilesListEnvelopeSchema, FilesListQuerySchema, FilesMoveErrorSchema, FilesSearchQuerySchema, FolderTypeSchema, ForgotPasswordErrorSpec, FriendBaseSchema, FriendInviteJoinedUserSchema, FriendInviteJoinedUserStatusSchema, FriendInviteLookupErrorSpec, FriendInviteSchema, FriendSchema, FriendSharedFolderErrorSpec, GenerateTOTPErrorSpec, GenerateTOTPResponseSchema, GetDownloadLinksErrorSpec, GetEventTorrentErrorSpec, GetFileErrorSpec, GetIftttStatusErrorSpec, GetOAuthAppErrorSpec, GetPaymentInfoErrorSpec, GetPaymentVoucherInfoErrorSpec, GetPublicShareErrorSpec, GetPublicShareFileUrlErrorSpec, GetRssFeedErrorSpec, GetSharedWithErrorSpec, GetSharingCloneInfoErrorSpec, GetTransferErrorSpec, GetZipErrorSpec, GiftCardLookupErrorSpec, GrantsErrorSpec, HistoryEventSchema, HistoryFileFromRssDeletedEventSchema, HistoryFileSharedEventSchema, HistoryKnownEventTypeSchema, HistoryPrivateTorrentPinEventSchema, HistoryRssFilterPausedEventSchema, HistoryTransferCallbackErrorEventSchema, HistoryTransferCompletedEventSchema, HistoryTransferErrorEventSchema, HistoryTransferFromRssErrorEventSchema, HistoryUploadEventSchema, HistoryVoucherEventSchema, HistoryZipCreatedEventSchema, JoinFamilyErrorSpec, JsonObjectSchema, JsonValueSchema, LinkDeviceErrorSpec, ListEventsErrorSpec, ListFamilyInvitesErrorSpec, ListFamilyMembersErrorSpec, ListFriendInvitesErrorSpec, ListFriendsErrorSpec, ListPaymentHistoryErrorSpec, ListPaymentInvitesErrorSpec, ListPaymentOptionsErrorSpec, ListPaymentPlansErrorSpec, ListPublicShareFilesErrorSpec, ListPublicSharesErrorSpec, ListRssFeedItemsErrorSpec, ListRssFeedsErrorSpec, ListSentRequestsErrorSpec, ListSharedFilesErrorSpec, ListTransfersErrorSpec, ListTrashErrorSpec, ListTunnelRoutesErrorSpec, ListWaitingRequestsErrorSpec, ListZipsErrorSpec, LoginErrorSpec, LoginResponseSchema, MyOAuthAppSchema, OAuthAppCreateInputSchema, OAuthAppSchema, OAuthAppSessionSchema, OAuthAppUpdateInputSchema, OAuthAppWithTokenSchema, OAuthSetIconInputSchema, OkResponseSchema, OwnedOAuthAppSchema, PasInfoSchema, PauseRssFeedErrorSpec, PaymentChangePlanPreviewSchema, PaymentChangePlanSubmitSchema, PaymentHistoryItemSchema, PaymentInfoPlanSchema, PaymentInfoSchema, PaymentInviteSchema, PaymentOptionPlanTypeSchema, PaymentOptionSchema, PaymentPlanGroupSchema, PaymentPlanTypeSchema, PaymentProviderNameSchema, PaymentProviderSchema, PaymentSubscriptionInfoSchema, PaymentTypeSchema, PaymentVoucherInfoSchema, PopularOAuthAppSchema, PreviewPaymentChangePlanErrorSpec, PublicShareListQuerySchema, PublicShareSchema, PutioApiError, PutioAuthError, PutioConfigurationError, PutioErrorEnvelopeSchema, PutioHttpClient, PutioOperationError, PutioRateLimitError, PutioSdk, PutioSdkConfig, PutioTransportError, PutioValidationError, QueryFilesErrorSpec, QueryOAuthAppsErrorSpec, ReannounceTransferErrorSpec, RecoveryCodesErrorSpec, RedeemPaymentVoucherErrorSpec, RegenerateOAuthAppTokenErrorSpec, RegenerateRecoveryCodesErrorSpec, RegisterErrorSpec, RegisterInputSchema, RemoveFamilyMemberErrorSpec, RemoveFriendErrorSpec, RenameFileErrorSpec, ReportPaymentsErrorSpec, ResetPasswordErrorSpec, RestoreTrashErrorSpec, ResumeRssFeedErrorSpec, RetryAllRssFeedItemsErrorSpec, RetryRssFeedItemErrorSpec, RetryTransferErrorSpec, RevokeAllOAuthClientsErrorSpec, RevokeOAuthClientErrorSpec, RevokeOAuthGrantErrorSpec, RssFeedItemFailedSchema, RssFeedItemSchema, RssFeedItemSucceededSchema, RssFeedParamsSchema, RssFeedSchema, SaveAccountSettingsErrorSpec, SaveAccountSettingsPayloadSchema, SearchFilesErrorSpec, SearchFriendsErrorSpec, SendFriendRequestErrorSpec, SendIftttEventErrorSpec, ShareFilesErrorSpec, SharedFileSchema, SharedFileShareSchema, SharedFileSharedWithSchema, SharingCloneInfoSchema, SharingCloneInputSchema, SharingCloneStatusSchema, SharingShareInputSchema, SharingUnshareInputSchema, StartFromErrorSpec, StopRecordingTransferErrorSpec, StopSubscriptionErrorSpec, SubmitPaymentChangePlanErrorSpec, TransferAddInputSchema, TransferBaseSchema, TransferSchema, TransferStatusSchema, TransferTypeSchema, TransfersListQuerySchema, TrashFileSchema, TunnelRouteSchema, TwoFactorRecoveryCodesSchema, UnshareFileErrorSpec, UpdateOAuthAppErrorSpec, UpdateRssFeedErrorSpec, UserSearchResultSchema, UserSubscriptionStatusSchema, ValidateTokenResponseSchema, VerifyTOTPErrorSpec, VerifyTOTPResponseSchema, VoucherLookupErrorSpec, ZipStatusSchema, addManyTransfers, addTransfer, approveFriendRequest, buildAuthLoginUrl, buildFileApiContentUrl, buildFileApiDownloadUrl, buildFileApiMp4DownloadUrl, buildFileHlsStreamUrl, buildOAuthAppIconUrl, buildOAuthAuthorizeUrl, buildPutioUrl, cancelTransfers, cancelZip, checkCodeMatch, classifyPaymentChangePlanResponse, cleanTransfers, clearAccount, clearEvents, clearRssFeedLogs, clients, cloneSharedFiles, confirmFastspringOrder, continueFiles, continuePublicShareFiles, continueSearch, continueTransfers, continueTrash, convertFileSelectionToMp4, convertFileToMp4, convertFilesToMp4, countTransfers, countWaitingRequests, createCoinbaseCharge, createDownloadLinks, createFamilyInvite, createFileUploadFormData, createFileUploadRequest, createFolder, createFriendInvite, createNanoPaymentRequest, createOAuthApp, createOpenNodeCharge, createPaddleWaitingPayment, createPublicShare, createPutioSdkEffectClient, createPutioSdkPromiseClient, createRssFeed, createZip, decodePutioErrorEnvelope, definePutioOperationErrorSpec, deleteConfigKey, deleteEvent, deleteFileExtraction, deleteFileMp4, deleteFileSelection, deleteFiles, deleteOAuthApp, deletePublicShare, deleteRssFeed, deleteTrash, denyFriendRequest, destroyAccount, emptyTrash, encodePathSegment, exists, extractFiles, fallbackPutioErrorEnvelope, findNextFile, findNextVideo, forgotPassword, generateTOTP, getAccountInfo, getAccountSettings, getApiContentUrl, getApiDownloadUrl, getApiMp4DownloadUrl, getCode, getConfigKey, getConfigKeyWith, getDownloadLinks, getDownloadUrl, getEventTorrent, getFamilyInvite, getFile, getFriendInvite, getFriendSharedFolder, getGiftCard, getHlsStreamUrl, getIftttStatus, getMp4Status, getOAuthApp, getPaymentInfo, getPaymentVoucherInfo, getPopularOAuthApps, getPublicShare, getPublicShareFileUrl, getRecoveryCodes, getRssFeed, getSharedWith, getSharingCloneInfo, getStartFrom, getTransfer, getTransferInfo, getVoucher, getZip, grants, isPutioApiError, isPutioAuthError, isPutioErrorEnvelope, isPutioOperationError, isPutioRateLimitError, joinFamily, linkDevice, listAccountConfirmations, listActiveMp4Conversions, listEvents, listFamilyInvites, listFamilyMembers, listFileExtractions, listFileSubtitles, listFriendInvites, listFriends, listPaymentHistory, listPaymentInvites, listPaymentOptions, listPaymentPlans, listPublicShareFiles, listPublicShares, listRssFeedItems, listRssFeeds, listSentRequests, listSharedFiles, listTransfers, listTrash, listTunnelRoutes, listWaitingRequests, listZips, login, logout, makePutioFetchClient, makePutioFetchLayer, makePutioSdkConfig, makePutioSdkEffectClientLayer, makePutioSdkLayer, makePutioSdkLiveClientLayer, makePutioSdkLiveLayer, makeResponseError, mapConfigurationError, mapDecodeErrorToValidationError, mapTransportError, moveFileSelection, moveFiles, parseErrorBody, pauseRssFeed, previewPaymentChangePlan, putMp4ToMyFiles, queryFiles, queryOAuthApps, readConfig, readConfigWith, reannounceTransfer, redeemPaymentVoucher, regenerateOAuthAppToken, regenerateRecoveryCodes, register, removeFamilyMember, removeFriend, renameFile, reportPayments, requestArrayBuffer, requestJson, requestVoid, resetPassword, resetStartFrom, responseRateLimitHeaders, restoreTrash, resumeRssFeed, retryAllRssFeedItems, retryRssFeedItem, retryTransfer, revokeAllClients, revokeApp, revokeClient, saveAccountSettings, searchFiles, searchFriends, selectJsonField, selectJsonFields, sendFriendRequest, sendIftttEvent, setConfigKey, setFilesWatchStatus, setOAuthAppIcon, setStartFrom, shareFiles, stopPaymentSubscription, stopTransferRecording, submitPaymentChangePlan, unshareFile, updateOAuthApp, updateRssFeed, uploadFile, validateToken, verifyTOTP, withOperationErrors, writeConfig };
|
|
5084
5084
|
|
|
5085
5085
|
//# sourceMappingURL=index.js.map
|
package/dist/utilities.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ap as PutioErrorEnvelope, cp as PutioKnownOperationErrorContract, lp as PutioOperationError, mo as FileBroad, np as PutioApiError, pp as PutioRateLimitError, rp as PutioAuthError } from "./index-C4NwsF9x.js";
|
|
2
2
|
|
|
3
3
|
//#region src/utilities/date.d.ts
|
|
4
4
|
declare const ensureUTC: (date?: unknown) => string;
|
package/dist/utilities.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { P as isPutioErrorEnvelope, o as buildPutioUrl, s as encodePathSegment, t as joinCsv } from "./forms-DCO3Ckbx.js";
|
|
2
2
|
//#region src/utilities/date.ts
|
|
3
3
|
const LONG_DATE_FORMATTER = new Intl.DateTimeFormat("en-US", {
|
|
4
4
|
dateStyle: "long",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@putdotio/sdk",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.3.0",
|
|
4
4
|
"description": "Effect-first TypeScript SDK for the put.io API.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"effect",
|
|
@@ -48,9 +48,14 @@
|
|
|
48
48
|
"lint:unused:prod": "vp pack && knip --production",
|
|
49
49
|
"prepare": "./scripts/prepare-effect.sh",
|
|
50
50
|
"prepack": "vp pack",
|
|
51
|
-
"secrets:setup": "
|
|
51
|
+
"secrets:setup": "bash ./scripts/secrets-setup.sh",
|
|
52
52
|
"secrets:clean": "rm -f .env.local .env.local.* .env.local.swp",
|
|
53
53
|
"test": "vp test --passWithNoTests",
|
|
54
|
+
"test:compat": "node ./scripts/test-compat-node.mts && node ./scripts/test-compat-browser.mts && node ./scripts/test-compat-bun.mts",
|
|
55
|
+
"test:compat:browser": "node ./scripts/test-compat-browser.mts",
|
|
56
|
+
"test:compat:browser:install": "playwright install chromium firefox webkit",
|
|
57
|
+
"test:compat:bun": "node ./scripts/test-compat-bun.mts",
|
|
58
|
+
"test:compat:node": "node ./scripts/test-compat-node.mts",
|
|
54
59
|
"test:live": "vp pack && vp test run --config vitest.live.config.ts",
|
|
55
60
|
"verify": "vp check . && vp pack && vp test --passWithNoTests && vp test --coverage --passWithNoTests"
|
|
56
61
|
},
|
|
@@ -63,8 +68,10 @@
|
|
|
63
68
|
"@vitest/coverage-v8": "4.1.5",
|
|
64
69
|
"is-ci": "^4.1.0",
|
|
65
70
|
"knip": "^6.14.0",
|
|
71
|
+
"playwright": "^1.60.0",
|
|
66
72
|
"publint": "^0.3.21",
|
|
67
73
|
"typescript": "^5.9.3",
|
|
74
|
+
"vite": "npm:@voidzero-dev/vite-plus-core@0.1.20",
|
|
68
75
|
"vite-plus": "^0.1.20"
|
|
69
76
|
},
|
|
70
77
|
"engines": {
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"forms-NEv3jqmj.js","names":[],"sources":["../src/core/errors.ts","../src/core/defaults.ts","../src/core/http.ts","../src/core/forms.ts"],"sourcesContent":["import { Data, Effect, Option, Schema } from \"effect\";\nimport { Headers } from \"effect/unstable/http\";\n\nexport const PutioErrorEnvelopeSchema = Schema.Struct({\n error_message: Schema.optional(Schema.String),\n error_type: Schema.optional(Schema.String),\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> {\n readonly errorType?: TType;\n readonly statusCode?: TStatus;\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\nexport type PutioTypedErrorEnvelope<TContract extends PutioKnownErrorContract> = Omit<\n PutioErrorEnvelope,\n \"error_message\" | \"error_type\" | \"status_code\"\n> & {\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\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.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 isRecord = (value: unknown): value is Readonly<Record<string, unknown>> =>\n typeof value === \"object\" && value !== null;\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 isKnownOperationErrorContract = (value: unknown): value is PutioKnownOperationErrorContract =>\n isRecord(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 (!isRecord(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 PutioKnownOperationErrorContract>(\n contract: TContract,\n): PutioOperationErrorReason<TContract> {\n if (contract.errorType !== undefined) {\n return {\n kind: \"error_type\",\n errorType: contract.errorType,\n } as PutioOperationErrorReason<TContract>;\n }\n\n return {\n kind: \"status_code\",\n statusCode: contract.statusCode,\n } as PutioOperationErrorReason<TContract>;\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.TaggedErrorClass<PutioApiError>()(\"PutioApiError\", {\n ...PutioResponseErrorFields,\n}) {}\n\nexport class PutioAuthError extends Schema.TaggedErrorClass<PutioAuthError>()(\"PutioAuthError\", {\n ...PutioResponseErrorFields,\n}) {}\n\nexport class PutioRateLimitError extends Schema.TaggedErrorClass<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 isRecord(value) &&\n hasOptionalString(value, \"error_message\") &&\n hasOptionalString(value, \"error_type\") &&\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 isRecord(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 isRecord(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 isRecord(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\nexport const responseRateLimitHeaders = (headers: Headers.Headers) => ({\n action: Option.getOrUndefined(Headers.get(headers, \"x-ratelimit-action\")),\n id: Option.getOrUndefined(Headers.get(headers, \"x-ratelimit-id\")),\n limit: Option.getOrUndefined(Headers.get(headers, \"x-ratelimit-limit\")),\n remaining: Option.getOrUndefined(Headers.get(headers, \"x-ratelimit-remaining\")),\n retryAfter: Option.getOrUndefined(Headers.get(headers, \"retry-after\")),\n reset: Option.getOrUndefined(Headers.get(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.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\";\nimport {\n FetchHttpClient,\n Headers,\n HttpClient,\n HttpClientRequest,\n HttpClientResponse,\n} from \"effect/unstable/http\";\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 type PutioSdkContext = PutioSdkConfig | HttpClient.HttpClient;\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), FetchHttpClient.layer);\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 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: \"GET\" | \"POST\" | \"PUT\" | \"PATCH\" | \"DELETE\";\n readonly path: string;\n readonly baseUrl?: string | URL;\n readonly query?: PutioQuery;\n readonly headers?: Headers.Input;\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>(\n schema: S,\n response: HttpClientResponse.HttpClientResponse,\n) =>\n HttpClientResponse.schemaBodyJson(schema)(response).pipe(\n Effect.mapError(mapDecodeErrorToValidationError),\n );\n\nconst decodeFailure = (response: HttpClientResponse.HttpClientResponse, headers: Headers.Headers) =>\n response.json.pipe(\n Effect.flatMap((json) => parseErrorBody(response.status, json)),\n Effect.orElseSucceed(() => fallbackPutioErrorEnvelope(response.status)),\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 = (\n request: HttpClientRequest.HttpClientRequest,\n body: PutioRequestBody,\n): Effect.Effect<HttpClientRequest.HttpClientRequest, PutioSdkError> => {\n switch (body.type) {\n case \"none\":\n return Effect.succeed(request);\n case \"json\":\n return HttpClientRequest.bodyJson(request, body.value).pipe(\n Effect.mapError(mapDecodeErrorToValidationError),\n );\n case \"form\":\n return Effect.succeed(\n HttpClientRequest.bodyUrlParams(\n request,\n Object.fromEntries(\n Object.entries(body.value).flatMap(([key, value]) =>\n value === undefined ? [] : [[key, normalizeFormValue(value)]],\n ),\n ),\n ),\n );\n case \"form-data\":\n return Effect.succeed(HttpClientRequest.bodyFormData(request, body.value));\n }\n};\n\nconst makeRequest = (url: string, options: PutioRequestOptions, authorization?: string) =>\n Effect.gen(function* () {\n const headers = authorization\n ? Headers.set(Headers.fromInput(options.headers), \"authorization\", authorization)\n : Headers.fromInput(options.headers);\n\n const body = options.body ?? { type: \"none\" as const };\n const request = HttpClientRequest.make(options.method)(url, {\n acceptJson: true,\n headers,\n });\n\n return yield* withBody(request, body);\n });\n\nconst executeRequest = (options: PutioRequestOptions) =>\n Effect.gen(function* () {\n const config = yield* PutioSdkConfig;\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).pipe(Effect.mapError(mapTransportError));\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(\n Effect.mapError(mapTransportError),\n Effect.map((buffer) => new Uint8Array(buffer)),\n )\n : decodeFailure(response, response.headers).pipe(Effect.flatMap(Effect.fail)),\n ),\n );\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":";;;AAGA,MAAa,2BAA2B,OAAO,OAAO;CACpD,eAAe,OAAO,SAAS,OAAO,OAAO;CAC7C,YAAY,OAAO,SAAS,OAAO,OAAO;CAC1C,aAAa,OAAO,SAAS,OAAO,IAAI;CACxC,SAAS,OAAO,SAAS,OAAO,QAAQ;CACzC,CAAC;AA6EF,MAAM,wBACJ,UACA,UACqE;AACrE,KAAI,SAAS,cAAc,KAAA,GAAW;AACpC,MAAI,MAAM,KAAK,eAAe,SAAS,UACrC,QAAO;AAGT,SAAO,SAAS,eAAe,KAAA,KAAa,MAAM,WAAW,SAAS;;AAGxE,KAAI,SAAS,eAAe,KAAA,EAC1B,QAAO,MAAM,WAAW,SAAS;AAGnC,QAAO;;AAGT,MAAM,uBAAuB,UAC3B,MAAM,SAAS,mBAAmB,MAAM,SAAS;AAEnD,MAAM,YAAY,UAChB,OAAO,UAAU,YAAY,UAAU;AAEzC,MAAM,qBAAqB,QAA2C,QACpE,EAAE,O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