@osdk/foundry-sdk-generator 1.4.0-beta.5 → 2.0.0-beta.7

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.
@@ -1,23 +0,0 @@
1
- import type { OpenApiRequest } from "@osdk/gateway/types";
2
- import type { Auth } from "@osdk/legacy-client";
3
- import { ResponseType } from "./ResponseType.js";
4
- export declare function getApiRequestFunction<TResponse>(auth: Auth, url: string, userAgent: string, contextPath?: string, fetchFunction?: typeof globalThis.fetch): OpenApiRequest<TResponse>;
5
- export declare function getApiRequestFunctionAsStream<TResponse>(auth: Auth, url: string, userAgent: string, contextPath?: string, fetchFunction?: typeof globalThis.fetch): OpenApiRequest<TResponse, ReadableStream<Uint8Array>>;
6
- export declare class FetchClient {
7
- private userAgent;
8
- private contextPath;
9
- constructor(auth: Auth, url: string, userAgent: string, contextPath?: string, fetchFunction?: typeof globalThis.fetch);
10
- private fetchFunction;
11
- private url;
12
- request<T>(method: string, endpointPath: string, data?: any, queryArguments?: {
13
- [paramName: string]: any;
14
- }, headers?: {
15
- [header: string]: string | number | boolean | null | undefined;
16
- }, _requestMediaType?: string, responseMediaType?: string, responseAsStream?: boolean): Promise<T>;
17
- callAPI<T>(url: URL, method?: string, body?: any, responseType?: ResponseType): Promise<T>;
18
- private fetchWithContentType;
19
- private getContentTypeForBody;
20
- private getBodyForContentType;
21
- private getHeaders;
22
- }
23
- //# sourceMappingURL=FetchClient.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FetchClient.d.ts","sourceRoot":"","sources":["../../../src/net/FetchClient.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAIhD,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEjD,wBAAgB,qBAAqB,CAAC,SAAS,EAC7C,IAAI,EAAE,IA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