freestyle 0.1.44 → 0.1.45
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/index.cjs +8 -0
- package/index.d.cts +9 -0
- package/index.d.mts +9 -0
- package/index.mjs +8 -0
- package/package.json +1 -1
package/index.cjs
CHANGED
|
@@ -3931,10 +3931,18 @@ class ApiClient {
|
|
|
3931
3931
|
};
|
|
3932
3932
|
return this.fetchFn(url, finalOptions);
|
|
3933
3933
|
}
|
|
3934
|
+
resolveUrl(path, params, query) {
|
|
3935
|
+
return this.buildUrl(path, params, query);
|
|
3936
|
+
}
|
|
3934
3937
|
getRaw(path, options) {
|
|
3935
3938
|
const url = this.buildUrl(path, options?.params, options?.query);
|
|
3936
3939
|
return this.requestRaw("GET", url, void 0, options?.headers);
|
|
3937
3940
|
}
|
|
3941
|
+
postRaw(path, ...args) {
|
|
3942
|
+
const options = args[0];
|
|
3943
|
+
const url = this.buildUrl(path, options?.params, options?.query);
|
|
3944
|
+
return this.requestRaw("POST", url, options?.body, options?.headers);
|
|
3945
|
+
}
|
|
3938
3946
|
get(path, ...args) {
|
|
3939
3947
|
const options = args[0];
|
|
3940
3948
|
const url = this.buildUrl(path, options?.params, options?.query);
|
package/index.d.cts
CHANGED
|
@@ -6298,6 +6298,13 @@ type GetPathMap = {
|
|
|
6298
6298
|
};
|
|
6299
6299
|
response: void;
|
|
6300
6300
|
};
|
|
6301
|
+
"/auth/v1/background-test": {
|
|
6302
|
+
options: {
|
|
6303
|
+
query?: GetAuthV1BackgroundTestQueryParams;
|
|
6304
|
+
headers?: Record<string, string>;
|
|
6305
|
+
};
|
|
6306
|
+
response: ResponseGetAuthV1BackgroundTest200;
|
|
6307
|
+
};
|
|
6301
6308
|
"/auth/v1/whoami": {
|
|
6302
6309
|
options?: {
|
|
6303
6310
|
headers?: Record<string, string>;
|
|
@@ -7272,7 +7279,9 @@ declare class ApiClient {
|
|
|
7272
7279
|
private requestRaw;
|
|
7273
7280
|
private request;
|
|
7274
7281
|
fetch(url: string, options?: RequestInit): Promise<Response>;
|
|
7282
|
+
resolveUrl(path: string, params?: Record<string, string>, query?: Record<string, any>): string;
|
|
7275
7283
|
getRaw<P extends keyof GetPathMap>(path: P, options?: GetPathMap[P]["options"]): Promise<Response>;
|
|
7284
|
+
postRaw<P extends keyof PostPathMap>(path: P, ...args: PostPathMap[P]["options"] extends undefined ? [options?: PostPathMap[P]["options"]] : [options: PostPathMap[P]["options"]]): Promise<Response>;
|
|
7276
7285
|
get<P extends keyof GetPathMap>(path: P, ...args: GetPathMap[P]["options"] extends undefined ? [options?: GetPathMap[P]["options"]] : [options: GetPathMap[P]["options"]]): Promise<GetPathMap[P]["response"]>;
|
|
7277
7286
|
post<P extends keyof PostPathMap>(path: P, ...args: PostPathMap[P]["options"] extends undefined ? [options?: PostPathMap[P]["options"]] : [options: PostPathMap[P]["options"]]): Promise<PostPathMap[P]["response"]>;
|
|
7278
7287
|
put<P extends keyof PutPathMap>(path: P, ...args: PutPathMap[P]["options"] extends undefined ? [options?: PutPathMap[P]["options"]] : [options: PutPathMap[P]["options"]]): Promise<PutPathMap[P]["response"]>;
|
package/index.d.mts
CHANGED
|
@@ -6298,6 +6298,13 @@ type GetPathMap = {
|
|
|
6298
6298
|
};
|
|
6299
6299
|
response: void;
|
|
6300
6300
|
};
|
|
6301
|
+
"/auth/v1/background-test": {
|
|
6302
|
+
options: {
|
|
6303
|
+
query?: GetAuthV1BackgroundTestQueryParams;
|
|
6304
|
+
headers?: Record<string, string>;
|
|
6305
|
+
};
|
|
6306
|
+
response: ResponseGetAuthV1BackgroundTest200;
|
|
6307
|
+
};
|
|
6301
6308
|
"/auth/v1/whoami": {
|
|
6302
6309
|
options?: {
|
|
6303
6310
|
headers?: Record<string, string>;
|
|
@@ -7272,7 +7279,9 @@ declare class ApiClient {
|
|
|
7272
7279
|
private requestRaw;
|
|
7273
7280
|
private request;
|
|
7274
7281
|
fetch(url: string, options?: RequestInit): Promise<Response>;
|
|
7282
|
+
resolveUrl(path: string, params?: Record<string, string>, query?: Record<string, any>): string;
|
|
7275
7283
|
getRaw<P extends keyof GetPathMap>(path: P, options?: GetPathMap[P]["options"]): Promise<Response>;
|
|
7284
|
+
postRaw<P extends keyof PostPathMap>(path: P, ...args: PostPathMap[P]["options"] extends undefined ? [options?: PostPathMap[P]["options"]] : [options: PostPathMap[P]["options"]]): Promise<Response>;
|
|
7276
7285
|
get<P extends keyof GetPathMap>(path: P, ...args: GetPathMap[P]["options"] extends undefined ? [options?: GetPathMap[P]["options"]] : [options: GetPathMap[P]["options"]]): Promise<GetPathMap[P]["response"]>;
|
|
7277
7286
|
post<P extends keyof PostPathMap>(path: P, ...args: PostPathMap[P]["options"] extends undefined ? [options?: PostPathMap[P]["options"]] : [options: PostPathMap[P]["options"]]): Promise<PostPathMap[P]["response"]>;
|
|
7278
7287
|
put<P extends keyof PutPathMap>(path: P, ...args: PutPathMap[P]["options"] extends undefined ? [options?: PutPathMap[P]["options"]] : [options: PutPathMap[P]["options"]]): Promise<PutPathMap[P]["response"]>;
|
package/index.mjs
CHANGED
|
@@ -3929,10 +3929,18 @@ class ApiClient {
|
|
|
3929
3929
|
};
|
|
3930
3930
|
return this.fetchFn(url, finalOptions);
|
|
3931
3931
|
}
|
|
3932
|
+
resolveUrl(path, params, query) {
|
|
3933
|
+
return this.buildUrl(path, params, query);
|
|
3934
|
+
}
|
|
3932
3935
|
getRaw(path, options) {
|
|
3933
3936
|
const url = this.buildUrl(path, options?.params, options?.query);
|
|
3934
3937
|
return this.requestRaw("GET", url, void 0, options?.headers);
|
|
3935
3938
|
}
|
|
3939
|
+
postRaw(path, ...args) {
|
|
3940
|
+
const options = args[0];
|
|
3941
|
+
const url = this.buildUrl(path, options?.params, options?.query);
|
|
3942
|
+
return this.requestRaw("POST", url, options?.body, options?.headers);
|
|
3943
|
+
}
|
|
3936
3944
|
get(path, ...args) {
|
|
3937
3945
|
const options = args[0];
|
|
3938
3946
|
const url = this.buildUrl(path, options?.params, options?.query);
|