@bytescale/sdk 3.33.0 → 3.35.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/cjs/main.js +511 -448
- package/dist/browser/esm/main.mjs +513 -449
- package/dist/node/cjs/main.js +488 -431
- package/dist/node/esm/main.mjs +500 -438
- package/dist/types/private/StreamUtils.d.ts +2 -0
- package/dist/types/private/UploadManagerBase.d.ts +3 -2
- package/dist/types/private/UploadManagerBrowserWorkerBase.d.ts +1 -1
- package/dist/types/private/dtos/AuthSwConfigDto.d.ts +1 -1
- package/dist/types/private/model/AddCancellationHandler.d.ts +1 -1
- package/dist/types/private/model/OnPartProgress.d.ts +1 -1
- package/dist/types/private/model/ServiceWorkerConfig.d.ts +1 -1
- package/dist/types/private/model/UploadResult.d.ts +7 -0
- package/dist/types/private/model/UploadSourceProcessed.d.ts +4 -4
- package/dist/types/public/node/UploadManagerNode.d.ts +1 -1
- package/dist/types/public/shared/CommonTypes.d.ts +2 -1
- package/dist/types/public/shared/UrlBuilderTypes.d.ts +6 -6
- package/dist/types/public/shared/generated/apis/CacheApi.d.ts +23 -0
- package/dist/types/public/shared/generated/apis/FileApi.d.ts +7 -7
- package/dist/types/public/shared/generated/apis/JobApi.d.ts +1 -1
- package/dist/types/public/shared/generated/apis/UploadApi.d.ts +2 -2
- package/dist/types/public/shared/generated/apis/index.d.ts +1 -0
- package/dist/types/public/shared/generated/models/index.d.ts +237 -63
- package/dist/types/public/shared/generated/runtime.d.ts +8 -8
- package/dist/worker/cjs/main.js +455 -395
- package/dist/worker/esm/main.mjs +457 -396
- package/package.json +11 -12
|
@@ -93,22 +93,22 @@ export declare class BytescaleApiError extends Error {
|
|
|
93
93
|
readonly details: any | undefined;
|
|
94
94
|
constructor(response: ErrorResponse);
|
|
95
95
|
}
|
|
96
|
-
export
|
|
97
|
-
export
|
|
98
|
-
export
|
|
99
|
-
export
|
|
96
|
+
export type FetchAPI = WindowOrWorkerGlobalScope["fetch"];
|
|
97
|
+
export type Json = any;
|
|
98
|
+
export type HTTPMethod = "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "OPTIONS" | "HEAD";
|
|
99
|
+
export type HTTPHeaders = {
|
|
100
100
|
[key: string]: string;
|
|
101
101
|
};
|
|
102
|
-
export
|
|
102
|
+
export type HTTPQuery = {
|
|
103
103
|
[key: string]: string | number | null | boolean | HTTPQuery;
|
|
104
104
|
};
|
|
105
|
-
export
|
|
106
|
-
export
|
|
105
|
+
export type HTTPBody = Json | FormData | URLSearchParams;
|
|
106
|
+
export type HTTPRequestInit = {
|
|
107
107
|
headers?: HTTPHeaders;
|
|
108
108
|
method: HTTPMethod;
|
|
109
109
|
body?: HTTPBody;
|
|
110
110
|
};
|
|
111
|
-
export
|
|
111
|
+
export type InitOverrideFunction = (requestContext: {
|
|
112
112
|
init: HTTPRequestInit;
|
|
113
113
|
context: RequestOpts;
|
|
114
114
|
}) => Promise<RequestInit>;
|