rezo 1.0.135 → 1.0.137
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 +3 -3
- package/dist/adapters/entries/curl.d.ts +103 -68
- package/dist/adapters/entries/fetch.d.ts +103 -68
- package/dist/adapters/entries/http.d.ts +103 -68
- package/dist/adapters/entries/http2.d.ts +103 -68
- package/dist/adapters/entries/react-native.cjs +6 -6
- package/dist/adapters/entries/react-native.d.ts +103 -68
- package/dist/adapters/entries/xhr.d.ts +103 -68
- package/dist/adapters/fetch.cjs +6 -2
- package/dist/adapters/fetch.js +6 -2
- package/dist/adapters/index.cjs +10 -10
- package/dist/adapters/index.d.ts +36 -1
- package/dist/cache/index.cjs +9 -9
- package/dist/cookies/cookie-jar.cjs +159 -10
- package/dist/cookies/cookie-jar.js +155 -6
- package/dist/cookies/index.cjs +10 -10
- package/dist/core/rezo.cjs +16 -3
- package/dist/core/rezo.js +16 -3
- package/dist/crawler/addon/oxylabs/index.cjs +1 -1
- package/dist/crawler/index.cjs +42 -42
- package/dist/crawler/plugin/index.cjs +1 -1
- package/dist/crawler.d.ts +102 -67
- package/dist/entries/crawler.cjs +24 -24
- package/dist/index.cjs +58 -58
- package/dist/index.d.ts +103 -68
- package/dist/internal/agents/index.cjs +14 -14
- package/dist/platform/browser.d.ts +103 -68
- package/dist/platform/bun.d.ts +103 -68
- package/dist/platform/deno.d.ts +103 -68
- package/dist/platform/node.d.ts +103 -68
- package/dist/platform/react-native.cjs +6 -6
- package/dist/platform/react-native.d.ts +103 -68
- package/dist/platform/worker.d.ts +103 -68
- package/dist/proxy/index.cjs +4 -4
- package/dist/queue/index.cjs +8 -8
- package/dist/responses/universal/index.cjs +11 -11
- package/dist/stealth/index.cjs +17 -17
- package/dist/stealth/profiles/index.cjs +10 -10
- package/dist/utils/headers.cjs +3 -0
- package/dist/utils/headers.js +3 -0
- package/dist/version.cjs +1 -1
- package/dist/version.js +1 -1
- package/dist/wget/index.cjs +51 -51
- package/dist/wget/index.d.ts +102 -67
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
|
|
24
24
|
---
|
|
25
25
|
|
|
26
|
-
Enterprise-grade HTTP client for Node.js 22+, Bun, Deno, browsers, React Native, and edge runtimes. One API everywhere — HTTP/2, cookies, proxy rotation, stealth mode, web crawling, and
|
|
26
|
+
Enterprise-grade HTTP client for Node.js 22+, Bun, Deno, browsers, React Native, and edge runtimes. One API everywhere — HTTP/2, cookies, proxy rotation, stealth mode, web crawling, and 60+ structured error codes out of the box.
|
|
27
27
|
|
|
28
28
|
## Install
|
|
29
29
|
|
|
@@ -73,7 +73,7 @@ const { data: posts } = await client.get('/posts');
|
|
|
73
73
|
<td>Full request lifecycle — DNS, TLS, redirects, retries, cookies, proxies</td>
|
|
74
74
|
</tr>
|
|
75
75
|
<tr>
|
|
76
|
-
<td><strong>
|
|
76
|
+
<td><strong>60+ Error Codes</strong></td>
|
|
77
77
|
<td>Structured errors with boolean flags and recovery suggestions</td>
|
|
78
78
|
</tr>
|
|
79
79
|
</table>
|
|
@@ -119,7 +119,7 @@ const client = rezo.create({
|
|
|
119
119
|
stealth: RezoStealth.chrome(),
|
|
120
120
|
proxyManager: {
|
|
121
121
|
proxies: ['socks5://proxy1:1080', 'http://proxy2:8080'],
|
|
122
|
-
rotation:
|
|
122
|
+
rotation: 'random',
|
|
123
123
|
autoDisableDeadProxies: true
|
|
124
124
|
}
|
|
125
125
|
});
|
|
@@ -4,7 +4,7 @@ import { Agent as HttpsAgent } from 'node:https';
|
|
|
4
4
|
import { Socket } from 'node:net';
|
|
5
5
|
import { Readable, Writable, WritableOptions } from 'node:stream';
|
|
6
6
|
import { SecureContext, TLSSocket } from 'node:tls';
|
|
7
|
-
import { Cookie as TouchCookie, CookieJar as TouchCookieJar, CreateCookieJarOptions, CreateCookieOptions, Nullable, Store } from 'tough-cookie';
|
|
7
|
+
import { Callback, Cookie as TouchCookie, CookieJar as TouchCookieJar, CreateCookieJarOptions, CreateCookieOptions, GetCookiesOptions, Nullable, SerializedCookieJar, SetCookieOptions, Store } from 'tough-cookie';
|
|
8
8
|
|
|
9
9
|
export declare class Cookie extends TouchCookie {
|
|
10
10
|
constructor(options?: CreateCookieOptions);
|
|
@@ -67,6 +67,38 @@ export declare class RezoCookieJar extends TouchCookieJar {
|
|
|
67
67
|
constructor(cookies: Cookie[], url: string);
|
|
68
68
|
constructor(store: Nullable<Store>, options?: CreateCookieJarOptions | boolean);
|
|
69
69
|
private generateCookies;
|
|
70
|
+
setCookieSync(cookie: string | Cookie, url: string, options?: SetCookieOptions): Cookie | undefined;
|
|
71
|
+
setCookie(cookie: string | TouchCookie, url: string | URL, callback: Callback<TouchCookie | undefined>): void;
|
|
72
|
+
setCookie(cookie: string | TouchCookie, url: string | URL, options: SetCookieOptions, callback: Callback<TouchCookie | undefined>): void;
|
|
73
|
+
setCookie(cookie: string | TouchCookie, url: string | URL, options?: SetCookieOptions): Promise<TouchCookie | undefined>;
|
|
74
|
+
setCookie(cookie: string | TouchCookie, url: string | URL, options: SetCookieOptions | Callback<TouchCookie | undefined>, callback?: Callback<TouchCookie | undefined>): unknown;
|
|
75
|
+
getCookies(url: string, callback: Callback<TouchCookie[]>): void;
|
|
76
|
+
getCookies(url: string | URL, options: GetCookiesOptions | undefined, callback: Callback<TouchCookie[]>): void;
|
|
77
|
+
getCookies(url: string | URL, options?: GetCookiesOptions): Promise<TouchCookie[]>;
|
|
78
|
+
getCookies(url: string | URL, options: GetCookiesOptions | undefined | Callback<TouchCookie[]>, callback?: Callback<TouchCookie[]>): unknown;
|
|
79
|
+
getCookiesSync(url: string, options?: GetCookiesOptions): Cookie[];
|
|
80
|
+
getCookieString(url: string, callback: Callback<string | undefined>): void;
|
|
81
|
+
getCookieString(url: string, options: GetCookiesOptions, callback: Callback<string | undefined>): void;
|
|
82
|
+
getCookieString(url: string, options?: GetCookiesOptions): Promise<string>;
|
|
83
|
+
getCookieString(url: string, options: GetCookiesOptions | Callback<string | undefined>, callback?: Callback<string | undefined>): unknown;
|
|
84
|
+
getCookieStringSync(url: string, options?: GetCookiesOptions): string;
|
|
85
|
+
getSetCookieStrings(url: string, callback: Callback<string[] | undefined>): void;
|
|
86
|
+
getSetCookieStrings(url: string, options: GetCookiesOptions, callback: Callback<string[] | undefined>): void;
|
|
87
|
+
getSetCookieStrings(url: string, options?: GetCookiesOptions): Promise<string[] | undefined>;
|
|
88
|
+
getSetCookieStrings(url: string, options: GetCookiesOptions, callback?: Callback<string[] | undefined>): unknown;
|
|
89
|
+
getSetCookieStringsSync(url: string, options?: GetCookiesOptions): string[];
|
|
90
|
+
serialize(callback: Callback<SerializedCookieJar>): void;
|
|
91
|
+
serialize(): Promise<SerializedCookieJar>;
|
|
92
|
+
serializeSync(): SerializedCookieJar | undefined;
|
|
93
|
+
toJSON(): ReturnType<TouchCookieJar["toJSON"]>;
|
|
94
|
+
private toPublicSerializedJar;
|
|
95
|
+
private toStoredCookie;
|
|
96
|
+
private toPublicCookies;
|
|
97
|
+
private toPublicCookie;
|
|
98
|
+
private toStoredCookieKey;
|
|
99
|
+
private toPublicCookieKey;
|
|
100
|
+
private cookiesToCookieString;
|
|
101
|
+
private cookiesToSetCookieStrings;
|
|
70
102
|
/**
|
|
71
103
|
* Get all cookies from the cookie jar.
|
|
72
104
|
*
|
|
@@ -317,6 +349,9 @@ export declare class RezoHeaders extends Headers {
|
|
|
317
349
|
* Used by stealth adapters to match browser header ordering.
|
|
318
350
|
*/
|
|
319
351
|
toOrderedObject(order: string[]): Record<string, string | string[]>;
|
|
352
|
+
toJSON(): Record<string, string> & {
|
|
353
|
+
"set-cookie"?: string[];
|
|
354
|
+
};
|
|
320
355
|
toObject(omit?: Array<keyof RezoHttpHeaders> | keyof RezoHttpHeaders): Record<string, string | string[]>;
|
|
321
356
|
toString(): string;
|
|
322
357
|
set(name: keyof RezoHttpHeaders, value: string): void;
|
|
@@ -7002,9 +7037,9 @@ export interface httpAdapterOverloads {
|
|
|
7002
7037
|
request(options: RezoRequestOptions & {
|
|
7003
7038
|
responseType: "blob";
|
|
7004
7039
|
}): Promise<RezoResponse<Blob>>;
|
|
7005
|
-
request(options: RezoRequestOptions & {
|
|
7040
|
+
request<T extends string = string>(options: RezoRequestOptions & {
|
|
7006
7041
|
responseType: "text";
|
|
7007
|
-
}): Promise<RezoResponse<
|
|
7042
|
+
}): Promise<RezoResponse<T>>;
|
|
7008
7043
|
request(options: RezoRequestOptions & {
|
|
7009
7044
|
responseType: "download";
|
|
7010
7045
|
}): Promise<RezoDownloadResponse>;
|
|
@@ -7034,9 +7069,9 @@ export interface httpAdapterOverloads {
|
|
|
7034
7069
|
get(url: string | URL, options: RezoHttpGetRequest & {
|
|
7035
7070
|
responseType: "blob";
|
|
7036
7071
|
}): Promise<RezoResponse<Blob>>;
|
|
7037
|
-
get(url: string | URL, options: RezoHttpGetRequest & {
|
|
7072
|
+
get<T extends string = string>(url: string | URL, options: RezoHttpGetRequest & {
|
|
7038
7073
|
responseType: "text";
|
|
7039
|
-
}): Promise<RezoResponse<
|
|
7074
|
+
}): Promise<RezoResponse<T>>;
|
|
7040
7075
|
get(url: string | URL, options: RezoHttpGetRequest & {
|
|
7041
7076
|
responseType: "download";
|
|
7042
7077
|
}): Promise<RezoDownloadResponse>;
|
|
@@ -7068,9 +7103,9 @@ export interface httpAdapterOverloads {
|
|
|
7068
7103
|
delete(url: string | URL, options: RezoHttpDeleteRequest & {
|
|
7069
7104
|
responseType: "blob";
|
|
7070
7105
|
}): Promise<RezoResponse<Blob>>;
|
|
7071
|
-
delete(url: string | URL, options: RezoHttpDeleteRequest & {
|
|
7106
|
+
delete<T extends string = string>(url: string | URL, options: RezoHttpDeleteRequest & {
|
|
7072
7107
|
responseType: "text";
|
|
7073
|
-
}): Promise<RezoResponse<
|
|
7108
|
+
}): Promise<RezoResponse<T>>;
|
|
7074
7109
|
delete(url: string | URL, options: RezoHttpDeleteRequest & {
|
|
7075
7110
|
responseType: "download";
|
|
7076
7111
|
}): Promise<RezoDownloadResponse>;
|
|
@@ -7157,9 +7192,9 @@ export interface httpAdapterPostOverloads {
|
|
|
7157
7192
|
post(url: string | URL, data: any, options: RezoHttpPostRequest & {
|
|
7158
7193
|
responseType: "blob";
|
|
7159
7194
|
}): Promise<RezoResponse<Blob>>;
|
|
7160
|
-
post(url: string | URL, data: any, options: RezoHttpPostRequest & {
|
|
7195
|
+
post<T extends string = string>(url: string | URL, data: any, options: RezoHttpPostRequest & {
|
|
7161
7196
|
responseType: "text";
|
|
7162
|
-
}): Promise<RezoResponse<
|
|
7197
|
+
}): Promise<RezoResponse<T>>;
|
|
7163
7198
|
post(url: string | URL, data: any, options: RezoHttpPostRequest & {
|
|
7164
7199
|
responseType: "download";
|
|
7165
7200
|
}): Promise<RezoDownloadResponse>;
|
|
@@ -7187,15 +7222,15 @@ export interface httpAdapterPostOverloads {
|
|
|
7187
7222
|
postJson<T = any>(url: string | URL, nullData: null | undefined, options: RezoHttpPostRequest & {
|
|
7188
7223
|
responseType: "auto" | "json";
|
|
7189
7224
|
}): Promise<RezoResponse<T>>;
|
|
7190
|
-
postJson(url: string | URL, data: Record<any, any> | Array<any>, options: RezoHttpPostRequest & {
|
|
7225
|
+
postJson<T extends string = string>(url: string | URL, data: Record<any, any> | Array<any>, options: RezoHttpPostRequest & {
|
|
7191
7226
|
responseType: "text";
|
|
7192
|
-
}): Promise<RezoResponse<
|
|
7193
|
-
postJson(url: string | URL, jsonString: string, options: RezoHttpPostRequest & {
|
|
7227
|
+
}): Promise<RezoResponse<T>>;
|
|
7228
|
+
postJson<T extends string = string>(url: string | URL, jsonString: string, options: RezoHttpPostRequest & {
|
|
7194
7229
|
responseType: "text";
|
|
7195
|
-
}): Promise<RezoResponse<
|
|
7196
|
-
postJson(url: string | URL, nullData: null | undefined, options: RezoHttpPostRequest & {
|
|
7230
|
+
}): Promise<RezoResponse<T>>;
|
|
7231
|
+
postJson<T extends string = string>(url: string | URL, nullData: null | undefined, options: RezoHttpPostRequest & {
|
|
7197
7232
|
responseType: "text";
|
|
7198
|
-
}): Promise<RezoResponse<
|
|
7233
|
+
}): Promise<RezoResponse<T>>;
|
|
7199
7234
|
postJson(url: string | URL, data: Record<any, any> | Array<any>, options: RezoHttpPostRequest & {
|
|
7200
7235
|
responseType: "arrayBuffer";
|
|
7201
7236
|
}): Promise<RezoResponse<ArrayBuffer>>;
|
|
@@ -7247,15 +7282,15 @@ export interface httpAdapterPostOverloads {
|
|
|
7247
7282
|
postForm<T = any>(url: string | URL, nullData: null | undefined, options: RezoHttpPostRequest & {
|
|
7248
7283
|
responseType: "auto" | "json";
|
|
7249
7284
|
}): Promise<RezoResponse<T>>;
|
|
7250
|
-
postForm(url: string | URL, data: URLSearchParams | RezoURLSearchParams | Record<string, any>, options: RezoHttpPostRequest & {
|
|
7285
|
+
postForm<T extends string = string>(url: string | URL, data: URLSearchParams | RezoURLSearchParams | Record<string, any>, options: RezoHttpPostRequest & {
|
|
7251
7286
|
responseType: "text";
|
|
7252
|
-
}): Promise<RezoResponse<
|
|
7253
|
-
postForm(url: string | URL, string: string, options: RezoHttpPostRequest & {
|
|
7287
|
+
}): Promise<RezoResponse<T>>;
|
|
7288
|
+
postForm<T extends string = string>(url: string | URL, string: string, options: RezoHttpPostRequest & {
|
|
7254
7289
|
responseType: "text";
|
|
7255
|
-
}): Promise<RezoResponse<
|
|
7256
|
-
postForm(url: string | URL, nullData: null | undefined, options: RezoHttpPostRequest & {
|
|
7290
|
+
}): Promise<RezoResponse<T>>;
|
|
7291
|
+
postForm<T extends string = string>(url: string | URL, nullData: null | undefined, options: RezoHttpPostRequest & {
|
|
7257
7292
|
responseType: "text";
|
|
7258
|
-
}): Promise<RezoResponse<
|
|
7293
|
+
}): Promise<RezoResponse<T>>;
|
|
7259
7294
|
postForm(url: string | URL, data: URLSearchParams | RezoURLSearchParams | Record<string, any>, options: RezoHttpPostRequest & {
|
|
7260
7295
|
responseType: "arrayBuffer";
|
|
7261
7296
|
}): Promise<RezoResponse<ArrayBuffer>>;
|
|
@@ -7316,15 +7351,15 @@ export interface httpAdapterPostOverloads {
|
|
|
7316
7351
|
postMultipart<T = any>(url: string | URL, dataObject: Record<string, any>, options: RezoHttpPostRequest & {
|
|
7317
7352
|
responseType: "json";
|
|
7318
7353
|
}): Promise<RezoResponse<T>>;
|
|
7319
|
-
postMultipart(url: string | URL, formData: RezoFormData, options: RezoHttpPostRequest & {
|
|
7354
|
+
postMultipart<T extends string = string>(url: string | URL, formData: RezoFormData, options: RezoHttpPostRequest & {
|
|
7320
7355
|
responseType: "text";
|
|
7321
|
-
}): Promise<RezoResponse<
|
|
7322
|
-
postMultipart(url: string | URL, formData: FormData, options: RezoHttpPostRequest & {
|
|
7356
|
+
}): Promise<RezoResponse<T>>;
|
|
7357
|
+
postMultipart<T extends string = string>(url: string | URL, formData: FormData, options: RezoHttpPostRequest & {
|
|
7323
7358
|
responseType: "text";
|
|
7324
|
-
}): Promise<RezoResponse<
|
|
7325
|
-
postMultipart(url: string | URL, dataObject: Record<string, any>, options: RezoHttpPostRequest & {
|
|
7359
|
+
}): Promise<RezoResponse<T>>;
|
|
7360
|
+
postMultipart<T extends string = string>(url: string | URL, dataObject: Record<string, any>, options: RezoHttpPostRequest & {
|
|
7326
7361
|
responseType: "text";
|
|
7327
|
-
}): Promise<RezoResponse<
|
|
7362
|
+
}): Promise<RezoResponse<T>>;
|
|
7328
7363
|
postMultipart(url: string | URL, formData: RezoFormData, options: RezoHttpPostRequest & {
|
|
7329
7364
|
responseType: "stream";
|
|
7330
7365
|
}): Promise<RezoStreamResponse>;
|
|
@@ -7380,9 +7415,9 @@ export interface httpAdapterPatchOverloads {
|
|
|
7380
7415
|
patch(url: string | URL, data: any, options: RezoHttpPatchRequest & {
|
|
7381
7416
|
responseType: "blob";
|
|
7382
7417
|
}): Promise<RezoResponse<Blob>>;
|
|
7383
|
-
patch(url: string | URL, data: any, options: RezoHttpPatchRequest & {
|
|
7418
|
+
patch<T extends string = string>(url: string | URL, data: any, options: RezoHttpPatchRequest & {
|
|
7384
7419
|
responseType: "text";
|
|
7385
|
-
}): Promise<RezoResponse<
|
|
7420
|
+
}): Promise<RezoResponse<T>>;
|
|
7386
7421
|
patch(url: string | URL, data: any, options: RezoHttpPatchRequest & {
|
|
7387
7422
|
responseType: "download";
|
|
7388
7423
|
}): RezoDownloadResponse;
|
|
@@ -7410,15 +7445,15 @@ export interface httpAdapterPatchOverloads {
|
|
|
7410
7445
|
patchJson<T = any>(url: string | URL, nullData: null | undefined, options: RezoHttpPatchRequest & {
|
|
7411
7446
|
responseType: "auto" | "json";
|
|
7412
7447
|
}): Promise<RezoResponse<T>>;
|
|
7413
|
-
patchJson(url: string | URL, data: Record<any, any> | Array<any>, options: RezoHttpPatchRequest & {
|
|
7448
|
+
patchJson<T extends string = string>(url: string | URL, data: Record<any, any> | Array<any>, options: RezoHttpPatchRequest & {
|
|
7414
7449
|
responseType: "text";
|
|
7415
|
-
}): Promise<RezoResponse<
|
|
7416
|
-
patchJson(url: string | URL, jsonString: string, options: RezoHttpPatchRequest & {
|
|
7450
|
+
}): Promise<RezoResponse<T>>;
|
|
7451
|
+
patchJson<T extends string = string>(url: string | URL, jsonString: string, options: RezoHttpPatchRequest & {
|
|
7417
7452
|
responseType: "text";
|
|
7418
|
-
}): Promise<RezoResponse<
|
|
7419
|
-
patchJson(url: string | URL, nullData: null | undefined, options: RezoHttpPatchRequest & {
|
|
7453
|
+
}): Promise<RezoResponse<T>>;
|
|
7454
|
+
patchJson<T extends string = string>(url: string | URL, nullData: null | undefined, options: RezoHttpPatchRequest & {
|
|
7420
7455
|
responseType: "text";
|
|
7421
|
-
}): Promise<RezoResponse<
|
|
7456
|
+
}): Promise<RezoResponse<T>>;
|
|
7422
7457
|
patchJson(url: string | URL, data: Record<any, any> | Array<any>, options: RezoHttpPatchRequest & {
|
|
7423
7458
|
responseType: "arrayBuffer";
|
|
7424
7459
|
}): Promise<RezoResponse<ArrayBuffer>>;
|
|
@@ -7479,15 +7514,15 @@ export interface httpAdapterPatchOverloads {
|
|
|
7479
7514
|
patchForm<T = any>(url: string | URL, nullData: null | undefined, options: RezoHttpPatchRequest & {
|
|
7480
7515
|
responseType: "auto" | "json";
|
|
7481
7516
|
}): Promise<RezoResponse<T>>;
|
|
7482
|
-
patchForm(url: string | URL, data: URLSearchParams | RezoURLSearchParams | Record<string, any>, options: RezoHttpPatchRequest & {
|
|
7517
|
+
patchForm<T extends string = string>(url: string | URL, data: URLSearchParams | RezoURLSearchParams | Record<string, any>, options: RezoHttpPatchRequest & {
|
|
7483
7518
|
responseType: "text";
|
|
7484
|
-
}): Promise<RezoResponse<
|
|
7485
|
-
patchForm(url: string | URL, string: string, options: RezoHttpPatchRequest & {
|
|
7519
|
+
}): Promise<RezoResponse<T>>;
|
|
7520
|
+
patchForm<T extends string = string>(url: string | URL, string: string, options: RezoHttpPatchRequest & {
|
|
7486
7521
|
responseType: "text";
|
|
7487
|
-
}): Promise<RezoResponse<
|
|
7488
|
-
patchForm(url: string | URL, nullData: null | undefined, options: RezoHttpPatchRequest & {
|
|
7522
|
+
}): Promise<RezoResponse<T>>;
|
|
7523
|
+
patchForm<T extends string = string>(url: string | URL, nullData: null | undefined, options: RezoHttpPatchRequest & {
|
|
7489
7524
|
responseType: "text";
|
|
7490
|
-
}): Promise<RezoResponse<
|
|
7525
|
+
}): Promise<RezoResponse<T>>;
|
|
7491
7526
|
patchForm(url: string | URL, data: URLSearchParams | RezoURLSearchParams | Record<string, any>, options: RezoHttpPatchRequest & {
|
|
7492
7527
|
responseType: "arrayBuffer";
|
|
7493
7528
|
}): Promise<RezoResponse<ArrayBuffer>>;
|
|
@@ -7548,15 +7583,15 @@ export interface httpAdapterPatchOverloads {
|
|
|
7548
7583
|
patchMultipart<T = any>(url: string | URL, dataObject: Record<string, any>, options: RezoHttpPatchRequest & {
|
|
7549
7584
|
responseType: "auto" | "json";
|
|
7550
7585
|
}): Promise<RezoResponse<T>>;
|
|
7551
|
-
patchMultipart(url: string | URL, formData: RezoFormData, options: RezoHttpPatchRequest & {
|
|
7586
|
+
patchMultipart<T extends string = string>(url: string | URL, formData: RezoFormData, options: RezoHttpPatchRequest & {
|
|
7552
7587
|
responseType: "text";
|
|
7553
|
-
}): Promise<RezoResponse<
|
|
7554
|
-
patchMultipart(url: string | URL, formData: FormData, options: RezoHttpPatchRequest & {
|
|
7588
|
+
}): Promise<RezoResponse<T>>;
|
|
7589
|
+
patchMultipart<T extends string = string>(url: string | URL, formData: FormData, options: RezoHttpPatchRequest & {
|
|
7555
7590
|
responseType: "text";
|
|
7556
|
-
}): Promise<RezoResponse<
|
|
7557
|
-
patchMultipart(url: string | URL, dataObject: Record<string, any>, options: RezoHttpPatchRequest & {
|
|
7591
|
+
}): Promise<RezoResponse<T>>;
|
|
7592
|
+
patchMultipart<T extends string = string>(url: string | URL, dataObject: Record<string, any>, options: RezoHttpPatchRequest & {
|
|
7558
7593
|
responseType: "text";
|
|
7559
|
-
}): Promise<RezoResponse<
|
|
7594
|
+
}): Promise<RezoResponse<T>>;
|
|
7560
7595
|
patchMultipart(url: string | URL, formData: RezoFormData, options: RezoHttpPatchRequest & {
|
|
7561
7596
|
responseType: "stream";
|
|
7562
7597
|
}): RezoStreamResponse;
|
|
@@ -7621,9 +7656,9 @@ export interface httpAdapterPutOverloads {
|
|
|
7621
7656
|
put(url: string | URL, data: any, options: RezoHttpPutRequest & {
|
|
7622
7657
|
responseType: "blob";
|
|
7623
7658
|
}): Promise<RezoResponse<Blob>>;
|
|
7624
|
-
put(url: string | URL, data: any, options: RezoHttpPutRequest & {
|
|
7659
|
+
put<T extends string = string>(url: string | URL, data: any, options: RezoHttpPutRequest & {
|
|
7625
7660
|
responseType: "text";
|
|
7626
|
-
}): Promise<RezoResponse<
|
|
7661
|
+
}): Promise<RezoResponse<T>>;
|
|
7627
7662
|
put(url: string | URL, data: any, options: RezoHttpPutRequest & {
|
|
7628
7663
|
responseType: "download";
|
|
7629
7664
|
}): RezoDownloadResponse;
|
|
@@ -7651,15 +7686,15 @@ export interface httpAdapterPutOverloads {
|
|
|
7651
7686
|
putJson<T = any>(url: string | URL, nullData: null | undefined, options: RezoHttpPutRequest & {
|
|
7652
7687
|
responseType: "auto" | "json";
|
|
7653
7688
|
}): Promise<RezoResponse<T>>;
|
|
7654
|
-
putJson(url: string | URL, data: Record<any, any> | Array<any>, options: RezoHttpPutRequest & {
|
|
7689
|
+
putJson<T extends string = string>(url: string | URL, data: Record<any, any> | Array<any>, options: RezoHttpPutRequest & {
|
|
7655
7690
|
responseType: "text";
|
|
7656
|
-
}): Promise<RezoResponse<
|
|
7657
|
-
putJson(url: string | URL, jsonString: string, options: RezoHttpPutRequest & {
|
|
7691
|
+
}): Promise<RezoResponse<T>>;
|
|
7692
|
+
putJson<T extends string = string>(url: string | URL, jsonString: string, options: RezoHttpPutRequest & {
|
|
7658
7693
|
responseType: "text";
|
|
7659
|
-
}): Promise<RezoResponse<
|
|
7660
|
-
putJson(url: string | URL, nullData: null | undefined, options: RezoHttpPutRequest & {
|
|
7694
|
+
}): Promise<RezoResponse<T>>;
|
|
7695
|
+
putJson<T extends string = string>(url: string | URL, nullData: null | undefined, options: RezoHttpPutRequest & {
|
|
7661
7696
|
responseType: "text";
|
|
7662
|
-
}): Promise<RezoResponse<
|
|
7697
|
+
}): Promise<RezoResponse<T>>;
|
|
7663
7698
|
putJson(url: string | URL, data: Record<any, any> | Array<any>, options: RezoHttpPutRequest & {
|
|
7664
7699
|
responseType: "arrayBuffer";
|
|
7665
7700
|
}): Promise<RezoResponse<ArrayBuffer>>;
|
|
@@ -7720,15 +7755,15 @@ export interface httpAdapterPutOverloads {
|
|
|
7720
7755
|
putForm<T = any>(url: string | URL, nullData: null | undefined, options: RezoHttpPutRequest & {
|
|
7721
7756
|
responseType: "auto" | "json";
|
|
7722
7757
|
}): Promise<RezoResponse<T>>;
|
|
7723
|
-
putForm(url: string | URL, data: URLSearchParams | RezoURLSearchParams | Record<string, any>, options: RezoHttpPutRequest & {
|
|
7758
|
+
putForm<T extends string = string>(url: string | URL, data: URLSearchParams | RezoURLSearchParams | Record<string, any>, options: RezoHttpPutRequest & {
|
|
7724
7759
|
responseType: "text";
|
|
7725
|
-
}): Promise<RezoResponse<
|
|
7726
|
-
putForm(url: string | URL, string: string, options: RezoHttpPutRequest & {
|
|
7760
|
+
}): Promise<RezoResponse<T>>;
|
|
7761
|
+
putForm<T extends string = string>(url: string | URL, string: string, options: RezoHttpPutRequest & {
|
|
7727
7762
|
responseType: "text";
|
|
7728
|
-
}): Promise<RezoResponse<
|
|
7729
|
-
putForm(url: string | URL, nullData: null | undefined, options: RezoHttpPutRequest & {
|
|
7763
|
+
}): Promise<RezoResponse<T>>;
|
|
7764
|
+
putForm<T extends string = string>(url: string | URL, nullData: null | undefined, options: RezoHttpPutRequest & {
|
|
7730
7765
|
responseType: "text";
|
|
7731
|
-
}): Promise<RezoResponse<
|
|
7766
|
+
}): Promise<RezoResponse<T>>;
|
|
7732
7767
|
putForm(url: string | URL, data: URLSearchParams | RezoURLSearchParams | Record<string, any>, options: RezoHttpPutRequest & {
|
|
7733
7768
|
responseType: "arrayBuffer";
|
|
7734
7769
|
}): Promise<RezoResponse<ArrayBuffer>>;
|
|
@@ -7789,15 +7824,15 @@ export interface httpAdapterPutOverloads {
|
|
|
7789
7824
|
putMultipart<T = any>(url: string | URL, dataObject: Record<string, any>, options: RezoHttpPutRequest & {
|
|
7790
7825
|
responseType: "auto" | "json";
|
|
7791
7826
|
}): Promise<RezoResponse<T>>;
|
|
7792
|
-
putMultipart(url: string | URL, formData: RezoFormData, options: RezoHttpPutRequest & {
|
|
7827
|
+
putMultipart<T extends string = string>(url: string | URL, formData: RezoFormData, options: RezoHttpPutRequest & {
|
|
7793
7828
|
responseType: "text";
|
|
7794
|
-
}): Promise<RezoResponse<
|
|
7795
|
-
putMultipart(url: string | URL, formData: FormData, options: RezoHttpPutRequest & {
|
|
7829
|
+
}): Promise<RezoResponse<T>>;
|
|
7830
|
+
putMultipart<T extends string = string>(url: string | URL, formData: FormData, options: RezoHttpPutRequest & {
|
|
7796
7831
|
responseType: "text";
|
|
7797
|
-
}): Promise<RezoResponse<
|
|
7798
|
-
putMultipart(url: string | URL, dataObject: Record<string, any>, options: RezoHttpPutRequest & {
|
|
7832
|
+
}): Promise<RezoResponse<T>>;
|
|
7833
|
+
putMultipart<T extends string = string>(url: string | URL, dataObject: Record<string, any>, options: RezoHttpPutRequest & {
|
|
7799
7834
|
responseType: "text";
|
|
7800
|
-
}): Promise<RezoResponse<
|
|
7835
|
+
}): Promise<RezoResponse<T>>;
|
|
7801
7836
|
putMultipart(url: string | URL, formData: RezoFormData, options: RezoHttpPutRequest & {
|
|
7802
7837
|
responseType: "stream";
|
|
7803
7838
|
}): RezoStreamResponse;
|
|
@@ -8546,7 +8581,7 @@ export interface RezoInstance extends Rezo, RezoCallable {
|
|
|
8546
8581
|
*
|
|
8547
8582
|
* IMPORTANT: Update these values when bumping package version.
|
|
8548
8583
|
*/
|
|
8549
|
-
export declare const VERSION = "1.0.
|
|
8584
|
+
export declare const VERSION = "1.0.137";
|
|
8550
8585
|
export declare const isRezoError: typeof RezoError.isRezoError;
|
|
8551
8586
|
export declare const Cancel: typeof RezoError;
|
|
8552
8587
|
export declare const CancelToken: {
|