@zayne-labs/callapi 1.6.14 → 1.6.16

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 CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  CallApi Fetch is an extra-lightweight wrapper over fetch that provides quality of life improvements beyond the bare fetch api, while keeping the API familiar.
6
6
 
7
- It takes in a url and a request options object, just like fetch, but with some additional options to make your life easier. Check out the [API Reference](https://zayne-labs-callapi.netlify.app/docs/v1/all-options) for a quick look at each option.
7
+ It takes in a url and a request options object, just like fetch, but with some additional options to make your life easier. Check out the [API Reference](https://zayne-labs-callapi.netlify.app/docs/latest/all-options) for a quick look at each option.
8
8
 
9
9
  # Docs
10
10
 
@@ -36,11 +36,11 @@ To do this, you first need to set your `script`'s type to `module`, then import
36
36
 
37
37
  ```html
38
38
  <script type="module">
39
- import { callApi } from "https://esm.run/@zayne-labs/callapi";
39
+ import { callApi } from "https://esm.run/@zayne-labs/callapi";
40
40
  </script>
41
41
 
42
42
  <!-- Locked to a specific version -->
43
43
  <script type="module">
44
- import { callApi } from "https://esm.run/@zayne-labs/callapi@0.3.2";
44
+ import { callApi } from "https://esm.run/@zayne-labs/callapi@0.3.2";
45
45
  </script>
46
46
  ```
@@ -115,23 +115,75 @@ interface CallApiValidators<TData = unknown, TErrorData = unknown> {
115
115
  }
116
116
  type InferSchemaResult<TSchema, TData> = TSchema extends StandardSchemaV1 ? StandardSchemaV1.InferOutput<TSchema> : TData;
117
117
 
118
- type Params = UnmaskType<Record<string, boolean | number | string> | Array<boolean | number | string>>;
119
- type Query = UnmaskType<Record<string, boolean | number | string>>;
120
- type InitURL = UnmaskType<string | URL>;
121
- interface UrlOptions<TSchemas extends CallApiSchemas> {
118
+ /**
119
+ * @description Makes a type required if TSchema type is undefined or if the output type of TSchema contains undefined, otherwise keeps it as is
120
+ */
121
+ type MakeSchemaOptionRequired<TSchema extends StandardSchemaV1 | undefined, TObject> = undefined extends TSchema ? TObject : undefined extends InferSchemaResult<TSchema, NonNullable<unknown>> ? TObject : Required<TObject>;
122
+ type JsonPrimitive = boolean | number | string | null | undefined;
123
+ type SerializableObject = Record<keyof object, unknown>;
124
+ type SerializableArray = Array<JsonPrimitive | SerializableArray | SerializableObject> | ReadonlyArray<JsonPrimitive | SerializableArray | SerializableObject>;
125
+ type Body = UnmaskType<RequestInit["body"] | SerializableArray | SerializableObject>;
126
+ type BodyOption<TSchemas extends CallApiSchemas> = MakeSchemaOptionRequired<TSchemas["body"], {
122
127
  /**
123
- * URL to be used in the request.
128
+ * Body of the request, can be a object or any other supported body type.
124
129
  */
125
- readonly initURL?: string;
130
+ body?: InferSchemaResult<TSchemas["body"], Body>;
131
+ }>;
132
+ type Method = UnmaskType<"CONNECT" | "DELETE" | "GET" | "HEAD" | "OPTIONS" | "PATCH" | "POST" | "PUT" | "TRACE" | AnyString>;
133
+ type MethodOption<TSchemas extends CallApiSchemas> = MakeSchemaOptionRequired<TSchemas["method"], {
126
134
  /**
127
- * Parameters to be appended to the URL (i.e: /:id)
135
+ * HTTP method for the request.
136
+ * @default "GET"
128
137
  */
129
- params?: InferSchemaResult<TSchemas["params"], Params>;
138
+ method?: InferSchemaResult<TSchemas["method"], Method>;
139
+ }>;
140
+ type Headers = UnmaskType<Record<"Authorization", CommonAuthorizationHeaders> | Record<"Content-Type", CommonContentTypes> | Record<CommonRequestHeaders, string | undefined> | Record<string, string | undefined> | RequestInit["headers"]>;
141
+ type HeadersOption<TSchemas extends CallApiSchemas> = MakeSchemaOptionRequired<TSchemas["headers"], {
130
142
  /**
131
- * Query parameters to append to the URL.
143
+ * Headers to be used in the request.
132
144
  */
133
- query?: InferSchemaResult<TSchemas["query"], Query>;
145
+ headers?: InferSchemaResult<TSchemas["headers"], Headers>;
146
+ }>;
147
+ interface Register {
134
148
  }
149
+ type GlobalMeta = Register extends {
150
+ meta?: infer TMeta extends Record<string, unknown>;
151
+ } ? TMeta : never;
152
+ type MetaOption<TSchemas extends CallApiSchemas> = {
153
+ /**
154
+ * - An optional field you can fill with additional information,
155
+ * to associate with the request, typically used for logging or tracing.
156
+ *
157
+ * - A good use case for this, would be to use the info to handle specific cases in any of the shared interceptors.
158
+ *
159
+ * @example
160
+ * ```ts
161
+ * const callMainApi = callApi.create({
162
+ * baseURL: "https://main-api.com",
163
+ * onResponseError: ({ response, options }) => {
164
+ * if (options.meta?.userId) {
165
+ * console.error(`User ${options.meta.userId} made an error`);
166
+ * }
167
+ * },
168
+ * });
169
+ *
170
+ * const response = await callMainApi({
171
+ * url: "https://example.com/api/data",
172
+ * meta: { userId: "123" },
173
+ * });
174
+ * ```
175
+ */
176
+ meta?: InferSchemaResult<TSchemas["meta"], GlobalMeta>;
177
+ };
178
+ type ResultModeOption<TErrorData, TResultMode extends ResultModeUnion> = TErrorData extends false ? {
179
+ resultMode: "onlySuccessWithException";
180
+ } : TErrorData extends false | undefined ? {
181
+ resultMode?: "onlySuccessWithException";
182
+ } : undefined extends TResultMode ? {
183
+ resultMode?: TResultMode;
184
+ } : {
185
+ resultMode: TResultMode;
186
+ };
135
187
 
136
188
  type RetryCondition<TErrorData> = (context: ErrorContext<TErrorData>) => boolean | Promise<boolean>;
137
189
  interface RetryOptions<TErrorData> {
@@ -139,7 +191,7 @@ interface RetryOptions<TErrorData> {
139
191
  * Keeps track of the number of times the request has already been retried
140
192
  * @deprecated This property is used internally to track retries. Please abstain from modifying it.
141
193
  */
142
- readonly "~retryCount"?: number;
194
+ readonly ["~retryCount"]?: number;
143
195
  /**
144
196
  * Number of allowed retry attempts on HTTP errors
145
197
  * @default 0
@@ -201,6 +253,8 @@ type UnionToIntersection<TUnion> = (TUnion extends unknown ? (param: TUnion) =>
201
253
  type InferSchema<TResult> = TResult extends StandardSchemaV1 ? InferSchemaResult<TResult, NonNullable<unknown>> : TResult;
202
254
  type InferPluginOptions<TPluginArray extends CallApiPlugin[]> = UnionToIntersection<InferSchema<ReturnType<NonNullable<TPluginArray[number]["createExtraOptions"]>>>>;
203
255
  type PluginInitContext<TMoreOptions = DefaultMoreOptions> = WithMoreOptions<TMoreOptions> & {
256
+ baseConfig: BaseCallApiExtraOptions & CallApiRequestOptions;
257
+ config: CallApiExtraOptions & CallApiRequestOptions;
204
258
  initURL: InitURL | undefined;
205
259
  options: CombinedCallApiExtraOptions;
206
260
  request: CallApiRequestOptionsForHooks;
@@ -239,79 +293,12 @@ interface CallApiPlugin<TData = never, TErrorData = never> {
239
293
  version?: string;
240
294
  }
241
295
  declare const definePlugin: <TPlugin extends CallApiPlugin | AnyFunction<CallApiPlugin>>(plugin: TPlugin) => TPlugin;
242
- type Plugins<TPluginArray extends CallApiPlugin[]> = TPluginArray | ((context: PluginInitContext) => TPluginArray);
296
+ type Plugins<TPluginArray extends CallApiPlugin[]> = TPluginArray;
243
297
 
244
298
  declare const fetchSpecificKeys: ("body" | "cache" | "credentials" | "headers" | "integrity" | "keepalive" | "method" | "mode" | "priority" | "redirect" | "referrer" | "referrerPolicy" | "signal" | "window")[];
245
299
  declare const defaultRetryMethods: ("GET" | "POST")[];
246
300
  declare const defaultRetryStatusCodes: Required<BaseCallApiExtraOptions>["retryStatusCodes"];
247
301
 
248
- /**
249
- * @description Makes a type required if TSchema type is undefined or if the output type of TSchema contains undefined, otherwise keeps it as is
250
- */
251
- type MakeSchemaOptionRequired<TSchema extends StandardSchemaV1 | undefined, TObject> = undefined extends TSchema ? TObject : undefined extends InferSchemaResult<TSchema, NonNullable<unknown>> ? TObject : Required<TObject>;
252
- type Body = UnmaskType<Record<string, unknown> | RequestInit["body"]>;
253
- type BodyOption<TSchemas extends CallApiSchemas> = MakeSchemaOptionRequired<TSchemas["body"], {
254
- /**
255
- * Body of the request, can be a object or any other supported body type.
256
- */
257
- body?: InferSchemaResult<TSchemas["body"], Body>;
258
- }>;
259
- type Method = UnmaskType<"CONNECT" | "DELETE" | "GET" | "HEAD" | "OPTIONS" | "PATCH" | "POST" | "PUT" | "TRACE" | AnyString>;
260
- type MethodOption<TSchemas extends CallApiSchemas> = MakeSchemaOptionRequired<TSchemas["method"], {
261
- /**
262
- * HTTP method for the request.
263
- * @default "GET"
264
- */
265
- method?: InferSchemaResult<TSchemas["method"], Method>;
266
- }>;
267
- type Headers = UnmaskType<Record<"Authorization", CommonAuthorizationHeaders> | Record<"Content-Type", CommonContentTypes> | Record<CommonRequestHeaders, string | undefined> | Record<string, string | undefined> | RequestInit["headers"]>;
268
- type HeadersOption<TSchemas extends CallApiSchemas> = MakeSchemaOptionRequired<TSchemas["headers"], {
269
- /**
270
- * Headers to be used in the request.
271
- */
272
- headers?: InferSchemaResult<TSchemas["headers"], Headers>;
273
- }>;
274
- interface Register {
275
- }
276
- type GlobalMeta = Register extends {
277
- meta?: infer TMeta extends Record<string, unknown>;
278
- } ? TMeta : never;
279
- type MetaOption<TSchemas extends CallApiSchemas> = {
280
- /**
281
- * - An optional field you can fill with additional information,
282
- * to associate with the request, typically used for logging or tracing.
283
- *
284
- * - A good use case for this, would be to use the info to handle specific cases in any of the shared interceptors.
285
- *
286
- * @example
287
- * ```ts
288
- * const callMainApi = callApi.create({
289
- * baseURL: "https://main-api.com",
290
- * onResponseError: ({ response, options }) => {
291
- * if (options.meta?.userId) {
292
- * console.error(`User ${options.meta.userId} made an error`);
293
- * }
294
- * },
295
- * });
296
- *
297
- * const response = await callMainApi({
298
- * url: "https://example.com/api/data",
299
- * meta: { userId: "123" },
300
- * });
301
- * ```
302
- */
303
- meta?: InferSchemaResult<TSchemas["meta"], GlobalMeta>;
304
- };
305
- type ResultModeOption<TErrorData, TResultMode extends ResultModeUnion> = TErrorData extends false ? {
306
- resultMode: "onlySuccessWithException";
307
- } : TErrorData extends false | undefined ? {
308
- resultMode?: "onlySuccessWithException";
309
- } : undefined extends TResultMode ? {
310
- resultMode?: TResultMode;
311
- } : {
312
- resultMode: TResultMode;
313
- };
314
-
315
302
  type FetchSpecificKeysUnion = Exclude<(typeof fetchSpecificKeys)[number], "body" | "headers" | "method">;
316
303
  type CallApiRequestOptions<TSchemas extends CallApiSchemas = DefaultMoreOptions> = BodyOption<TSchemas> & HeadersOption<TSchemas> & MethodOption<TSchemas> & Pick<RequestInit, FetchSpecificKeysUnion>;
317
304
  type CallApiRequestOptionsForHooks<TSchemas extends CallApiSchemas = DefaultMoreOptions> = Omit<CallApiRequestOptions<TSchemas>, "headers"> & {
@@ -355,7 +342,7 @@ type InterceptorsOrInterceptorArray<TData = DefaultDataType, TErrorData = Defaul
355
342
  [Key in keyof Interceptors<TData, TErrorData, TMoreOptions>]: Interceptors<TData, TErrorData, TMoreOptions>[Key] | Array<Interceptors<TData, TErrorData, TMoreOptions>[Key]>;
356
343
  };
357
344
  type FetchImpl = UnmaskType<(input: string | Request | URL, init?: RequestInit) => Promise<Response>>;
358
- type ExtraOptions<TData = DefaultDataType, TErrorData = DefaultDataType, TResultMode extends ResultModeUnion = ResultModeUnion, TThrowOnError extends boolean = DefaultThrowOnError, TResponseType extends ResponseTypeUnion = ResponseTypeUnion, TSchemas extends CallApiSchemas = DefaultMoreOptions, TPluginArray extends CallApiPlugin[] = DefaultPluginArray> = {
345
+ type ExtraOptions<TData = DefaultDataType, TErrorData = DefaultDataType, TResultMode extends ResultModeUnion = ResultModeUnion, TThrowOnError extends boolean = DefaultThrowOnError, TResponseType extends ResponseTypeUnion = ResponseTypeUnion, TPluginArray extends CallApiPlugin[] = DefaultPluginArray, TSchemas extends CallApiSchemas = DefaultMoreOptions> = {
359
346
  /**
360
347
  * Authorization header value.
361
348
  */
@@ -451,18 +438,23 @@ type ExtraOptions<TData = DefaultDataType, TErrorData = DefaultDataType, TResult
451
438
  validators?: CallApiValidators<TData, TErrorData>;
452
439
  } & InterceptorsOrInterceptorArray<TData, TErrorData> & Partial<InferPluginOptions<TPluginArray>> & MetaOption<TSchemas> & RetryOptions<TErrorData> & ResultModeOption<TErrorData, TResultMode> & UrlOptions<TSchemas>;
453
440
  declare const optionsEnumToExtendFromBase: ("plugins" | "schemas" | "validators")[];
454
- type CallApiExtraOptions<TData = DefaultDataType, TErrorData = DefaultDataType, TResultMode extends ResultModeUnion = ResultModeUnion, TThrowOnError extends boolean = DefaultThrowOnError, TResponseType extends ResponseTypeUnion = ResponseTypeUnion, TSchemas extends CallApiSchemas = DefaultMoreOptions, TPluginArray extends CallApiPlugin[] = DefaultPluginArray> = CallApiRequestOptions<TSchemas> & ExtraOptions<TData, TErrorData, TResultMode, TThrowOnError, TResponseType, TSchemas, TPluginArray> & {
441
+ type CallApiExtraOptions<TData = DefaultDataType, TErrorData = DefaultDataType, TResultMode extends ResultModeUnion = ResultModeUnion, TThrowOnError extends boolean = DefaultThrowOnError, TResponseType extends ResponseTypeUnion = ResponseTypeUnion, TPluginArray extends CallApiPlugin[] = DefaultPluginArray, TSchemas extends CallApiSchemas = DefaultMoreOptions> = ExtraOptions<TData, TErrorData, TResultMode, TThrowOnError, TResponseType, TPluginArray, TSchemas> & {
455
442
  /**
456
443
  * Options that should extend the base options.
457
444
  */
458
- extend?: Pick<ExtraOptions<TData, TErrorData, TResultMode, TThrowOnError, TResponseType, TSchemas, TPluginArray>, (typeof optionsEnumToExtendFromBase)[number]>;
445
+ extend?: Pick<ExtraOptions<TData, TErrorData, TResultMode, TThrowOnError, TResponseType, TPluginArray, TSchemas>, (typeof optionsEnumToExtendFromBase)[number]>;
459
446
  };
460
447
  declare const optionsEnumToOmitFromBase: ("dedupeKey" | "extend")[];
461
- type BaseCallApiExtraOptions<TBaseData = DefaultDataType, TBaseErrorData = DefaultDataType, TBaseResultMode extends ResultModeUnion = ResultModeUnion, TBaseThrowOnError extends boolean = DefaultThrowOnError, TBaseResponseType extends ResponseTypeUnion = ResponseTypeUnion, TBaseSchemas extends CallApiSchemas = DefaultMoreOptions, TBasePluginArray extends CallApiPlugin[] = DefaultPluginArray> = Omit<Partial<CallApiExtraOptions<TBaseData, TBaseErrorData, TBaseResultMode, TBaseThrowOnError, TBaseResponseType, TBaseSchemas, TBasePluginArray>>, (typeof optionsEnumToOmitFromBase)[number]>;
448
+ type BaseCallApiExtraOptions<TBaseData = DefaultDataType, TBaseErrorData = DefaultDataType, TBaseResultMode extends ResultModeUnion = ResultModeUnion, TBaseThrowOnError extends boolean = DefaultThrowOnError, TBaseResponseType extends ResponseTypeUnion = ResponseTypeUnion, TBasePluginArray extends CallApiPlugin[] = DefaultPluginArray, TBaseSchemas extends CallApiSchemas = DefaultMoreOptions> = Omit<Partial<CallApiExtraOptions<TBaseData, TBaseErrorData, TBaseResultMode, TBaseThrowOnError, TBaseResponseType, TBasePluginArray, TBaseSchemas>>, (typeof optionsEnumToOmitFromBase)[number]>;
462
449
  type CombinedCallApiExtraOptions = BaseCallApiExtraOptions & CallApiExtraOptions;
463
- type CallApiParameters<TData = DefaultDataType, TErrorData = DefaultDataType, TResultMode extends ResultModeUnion = ResultModeUnion, TThrowOnError extends boolean = DefaultThrowOnError, TResponseType extends ResponseTypeUnion = ResponseTypeUnion, TSchemas extends CallApiSchemas = DefaultMoreOptions, TPluginArray extends CallApiPlugin[] = DefaultPluginArray> = [
450
+ type BaseCallApiConfig<TBaseData = DefaultDataType, TBaseErrorData = DefaultDataType, TBaseResultMode extends ResultModeUnion = ResultModeUnion, TBaseThrowOnError extends boolean = DefaultThrowOnError, TBaseResponseType extends ResponseTypeUnion = ResponseTypeUnion, TBasePluginArray extends CallApiPlugin[] = DefaultPluginArray, TBaseSchemas extends CallApiSchemas = DefaultMoreOptions> = (CallApiRequestOptions<TBaseSchemas> & BaseCallApiExtraOptions<TBaseData, TBaseErrorData, TBaseResultMode, TBaseThrowOnError, TBaseResponseType, TBasePluginArray, TBaseSchemas>) | ((context: {
451
+ initURL: string;
452
+ options: CallApiExtraOptions;
453
+ request: CallApiRequestOptions;
454
+ }) => CallApiRequestOptions<TBaseSchemas> & BaseCallApiExtraOptions<TBaseData, TBaseErrorData, TBaseResultMode, TBaseThrowOnError, TBaseResponseType, TBasePluginArray, TBaseSchemas>);
455
+ type CallApiParameters<TData = DefaultDataType, TErrorData = DefaultDataType, TResultMode extends ResultModeUnion = ResultModeUnion, TThrowOnError extends boolean = DefaultThrowOnError, TResponseType extends ResponseTypeUnion = ResponseTypeUnion, TPluginArray extends CallApiPlugin[] = DefaultPluginArray, TSchemas extends CallApiSchemas = DefaultMoreOptions> = [
464
456
  initURL: InferSchemaResult<TSchemas["initURL"], InitURL>,
465
- config?: CallApiExtraOptions<TData, TErrorData, TResultMode, TThrowOnError, TResponseType, TSchemas, TPluginArray>
457
+ config?: CallApiRequestOptions<TSchemas> & CallApiExtraOptions<TData, TErrorData, TResultMode, TThrowOnError, TResponseType, TPluginArray, TSchemas>
466
458
  ];
467
459
  type RequestContext = UnmaskType<{
468
460
  options: CombinedCallApiExtraOptions;
@@ -546,6 +538,40 @@ type ResultModeMap<TData = DefaultDataType, TErrorData = DefaultDataType, TRespo
546
538
  onlySuccessWithException: CallApiResultSuccessVariant<TComputedData>["data"];
547
539
  }>;
548
540
  type ResultModeUnion = keyof ResultModeMap | undefined;
549
- type GetCallApiResult<TData, TErrorData, TResultMode extends ResultModeUnion, TThrowOnError extends boolean, TResponseType extends ResponseTypeUnion> = TErrorData extends false | undefined ? ResultModeMap<TData, TErrorData, TResponseType>["onlySuccessWithException"] : ResultModeUnion | undefined extends TResultMode ? TThrowOnError extends true ? ResultModeMap<TData, TErrorData, TResponseType>["allWithException"] : ResultModeMap<TData, TErrorData, TResponseType>["all"] : TResultMode extends NonNullable<ResultModeUnion> ? ResultModeMap<TData, TErrorData, TResponseType>[TResultMode] : never;
541
+ type GetCallApiResult<TData, TErrorData, TResultMode extends ResultModeUnion, TThrowOnError extends boolean, TResponseType extends ResponseTypeUnion> = TErrorData extends false | undefined ? ResultModeMap<TData, TErrorData, TResponseType>["onlySuccessWithException"] : ResultModeUnion | undefined extends TResultMode ? TThrowOnError extends true ? ResultModeMap<TData, TErrorData, TResponseType>["allWithException"] : ResultModeMap<TData, TErrorData, TResponseType>["all"] : TResultMode extends NonNullable<ResultModeUnion> ? TResultMode extends "onlySuccess" ? ResultModeMap<TData, TErrorData, TResponseType>["onlySuccessWithException"] : TResultMode extends "onlyResponse" ? ResultModeMap<TData, TErrorData, TResponseType>["onlyResponseWithException"] : ResultModeMap<TData, TErrorData, TResponseType>[TResultMode] : never;
542
+
543
+ type Params = UnmaskType<Record<string, boolean | number | string> | Array<boolean | number | string>>;
544
+ type Query = UnmaskType<Record<string, boolean | number | string>>;
545
+ type InitURL = UnmaskType<string | URL>;
546
+ interface UrlOptions<TSchemas extends CallApiSchemas> {
547
+ /**
548
+ * URL to be used in the request.
549
+ */
550
+ readonly initURL?: string;
551
+ /**
552
+ * Parameters to be appended to the URL (i.e: /:id)
553
+ */
554
+ params?: InferSchemaResult<TSchemas["params"], Params>;
555
+ /**
556
+ * Query parameters to append to the URL.
557
+ */
558
+ query?: InferSchemaResult<TSchemas["query"], Query>;
559
+ }
560
+
561
+ type ErrorDetails<TErrorResponse> = {
562
+ defaultErrorMessage: string;
563
+ errorData: TErrorResponse;
564
+ response: Response;
565
+ };
566
+ type ErrorOptions = {
567
+ cause?: unknown;
568
+ };
569
+ declare class HTTPError<TErrorResponse = Record<string, unknown>> extends Error {
570
+ errorData: ErrorDetails<TErrorResponse>["errorData"];
571
+ isHTTPError: boolean;
572
+ name: "HTTPError";
573
+ response: ErrorDetails<TErrorResponse>["response"];
574
+ constructor(errorDetails: ErrorDetails<TErrorResponse>, errorOptions?: ErrorOptions);
575
+ }
550
576
 
551
- export { type BaseCallApiExtraOptions as B, type CallApiSchemas as C, type DefaultPluginArray as D, type ErrorContext as E, type GetCallApiResult as G, type InferSchemaResult as I, type PluginInitContext as P, type ResultModeUnion as R, type SuccessContext as S, type ResponseTypeUnion as a, type CallApiPlugin as b, type CallApiExtraOptions as c, type DefaultDataType as d, type DefaultThrowOnError as e, type DefaultMoreOptions as f, definePlugin as g, type PossibleJavaScriptError as h, type PossibleHTTPError as i, type CallApiParameters as j, type CallApiRequestOptions as k, type CallApiRequestOptionsForHooks as l, type CallApiResultErrorVariant as m, type CallApiResultSuccessVariant as n, type CombinedCallApiExtraOptions as o, type Interceptors as p, type InterceptorsOrInterceptorArray as q, type PossibleJavascriptErrorNames as r, type Register as s, type RequestContext as t, type RequestErrorContext as u, type ResponseContext as v, type ResponseErrorContext as w, type InitURL as x, defaultRetryMethods as y, defaultRetryStatusCodes as z };
577
+ export { type AnyString as A, type BaseCallApiConfig as B, type CallApiPlugin as C, type DefaultPluginArray as D, type ExtraOptions as E, type Interceptors as F, type GetCallApiResult as G, HTTPError as H, type InferSchemaResult as I, type PossibleJavascriptErrorNames as J, type Register as K, type RequestContext as L, type MetaOption as M, type RequestErrorContext as N, type ResponseContext as O, type PossibleJavaScriptError as P, type ResponseErrorContext as Q, type ResultModeUnion as R, type SerializableArray as S, type SuccessContext as T, type UrlOptions as U, defaultRetryMethods as V, defaultRetryStatusCodes as W, type ResponseTypeUnion as a, type CallApiSchemas as b, type SerializableObject as c, type CommonContentTypes as d, type CommonRequestHeaders as e, type Auth as f, type Awaitable as g, type CombinedCallApiExtraOptions as h, type CallApiRequestOptionsForHooks as i, type CallApiValidators as j, type InterceptorsOrInterceptorArray as k, type RetryOptions as l, type ResultModeOption as m, type DefaultDataType as n, type DefaultThrowOnError as o, type DefaultMoreOptions as p, type CallApiParameters as q, definePlugin as r, type PluginInitContext as s, type BaseCallApiExtraOptions as t, type CallApiExtraOptions as u, type PossibleHTTPError as v, type CallApiRequestOptions as w, type CallApiResultErrorVariant as x, type CallApiResultSuccessVariant as y, type ErrorContext as z };