@stackone/transport 2.25.2 → 2.26.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/index.d.cts CHANGED
@@ -640,7 +640,7 @@ type CustomErrorConfig = z.infer<typeof CUSTOM_ERROR_CONFIG_SCHEMA>;
640
640
  declare const HttpErrorMessages: Record<number, string>;
641
641
  //#endregion
642
642
  //#region src/customErrors/index.d.ts
643
- declare const translateCustomError: (response: HttpResponse, configs?: CustomErrorConfig[]) => HttpResponse;
643
+ declare const translateCustomError: (response: HttpResponse, configs?: CustomErrorConfig[], credentials?: Record<string, unknown>) => HttpResponse;
644
644
  //#endregion
645
645
  //#region src/errors/httpResponseError.d.ts
646
646
  declare class HttpResponseError extends Error {
@@ -1067,6 +1067,7 @@ interface IRequestClient<RequestConfig$1 = RequestConfig> {
1067
1067
  customErrorConfigs?: CustomErrorConfig[];
1068
1068
  requestConfig?: RequestConfig$1;
1069
1069
  httpsAgent?: https.Agent;
1070
+ credentials?: Record<string, unknown>;
1070
1071
  }) => Promise<HttpResponse>;
1071
1072
  }
1072
1073
  type RequestClientType = 'rest' | 'soap';
package/dist/index.d.mts CHANGED
@@ -639,7 +639,7 @@ type CustomErrorConfig = z.infer<typeof CUSTOM_ERROR_CONFIG_SCHEMA>;
639
639
  declare const HttpErrorMessages: Record<number, string>;
640
640
  //#endregion
641
641
  //#region src/customErrors/index.d.ts
642
- declare const translateCustomError: (response: HttpResponse, configs?: CustomErrorConfig[]) => HttpResponse;
642
+ declare const translateCustomError: (response: HttpResponse, configs?: CustomErrorConfig[], credentials?: Record<string, unknown>) => HttpResponse;
643
643
  //#endregion
644
644
  //#region src/errors/httpResponseError.d.ts
645
645
  declare class HttpResponseError extends Error {
@@ -1066,6 +1066,7 @@ interface IRequestClient<RequestConfig$1 = RequestConfig> {
1066
1066
  customErrorConfigs?: CustomErrorConfig[];
1067
1067
  requestConfig?: RequestConfig$1;
1068
1068
  httpsAgent?: https.Agent;
1069
+ credentials?: Record<string, unknown>;
1069
1070
  }) => Promise<HttpResponse>;
1070
1071
  }
1071
1072
  type RequestClientType = 'rest' | 'soap';