@spyglasshq/sdk 0.1.6 → 0.1.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.
Files changed (250) hide show
  1. package/dist/cjs/BaseClient.d.ts +4 -4
  2. package/dist/cjs/BaseClient.js +7 -7
  3. package/dist/cjs/Client.d.ts +5 -5
  4. package/dist/cjs/Client.js +56 -38
  5. package/dist/cjs/api/client/index.d.ts +1 -1
  6. package/dist/cjs/api/client/requests/SearchBrandsRequest.js +6 -6
  7. package/dist/cjs/api/client/requests/SearchCreatorsRequest.js +174 -174
  8. package/dist/cjs/api/client/requests/SearchMediaRequest.js +223 -223
  9. package/dist/cjs/api/client/requests/index.d.ts +5 -5
  10. package/dist/cjs/api/errors/BadRequestError.d.ts +3 -3
  11. package/dist/cjs/api/errors/BadRequestError.js +2 -2
  12. package/dist/cjs/api/errors/ContentTooLargeError.d.ts +3 -3
  13. package/dist/cjs/api/errors/ContentTooLargeError.js +2 -2
  14. package/dist/cjs/api/errors/ForbiddenError.d.ts +3 -3
  15. package/dist/cjs/api/errors/ForbiddenError.js +2 -2
  16. package/dist/cjs/api/errors/InternalServerError.d.ts +3 -3
  17. package/dist/cjs/api/errors/InternalServerError.js +2 -2
  18. package/dist/cjs/api/errors/MethodNotAllowedError.d.ts +3 -3
  19. package/dist/cjs/api/errors/MethodNotAllowedError.js +2 -2
  20. package/dist/cjs/api/errors/NotFoundError.d.ts +3 -3
  21. package/dist/cjs/api/errors/NotFoundError.js +2 -2
  22. package/dist/cjs/api/errors/PaymentRequiredError.d.ts +3 -3
  23. package/dist/cjs/api/errors/PaymentRequiredError.js +2 -2
  24. package/dist/cjs/api/errors/TooManyRequestsError.d.ts +3 -3
  25. package/dist/cjs/api/errors/TooManyRequestsError.js +2 -2
  26. package/dist/cjs/api/errors/UnauthorizedError.d.ts +3 -3
  27. package/dist/cjs/api/errors/UnauthorizedError.js +2 -2
  28. package/dist/cjs/api/errors/index.d.ts +9 -9
  29. package/dist/cjs/api/index.d.ts +4 -4
  30. package/dist/cjs/api/resources/account/client/Client.d.ts +4 -4
  31. package/dist/cjs/api/resources/account/client/Client.js +38 -23
  32. package/dist/cjs/api/resources/account/client/index.d.ts +1 -1
  33. package/dist/cjs/api/resources/account/client/requests/InsightsAccountRequest.d.ts +1 -1
  34. package/dist/cjs/api/resources/account/client/requests/LandingPagesAccountRequest.d.ts +1 -1
  35. package/dist/cjs/api/resources/account/client/requests/index.d.ts +5 -5
  36. package/dist/cjs/api/resources/account/exports.d.ts +2 -2
  37. package/dist/cjs/api/resources/account/index.d.ts +2 -2
  38. package/dist/cjs/api/resources/account/types/GetAccountResponse.d.ts +3 -3
  39. package/dist/cjs/api/resources/account/types/IndexAccountResponse.js +2 -2
  40. package/dist/cjs/api/resources/account/types/IndexStatusAccountResponse.js +2 -2
  41. package/dist/cjs/api/resources/account/types/InsightsAccountRequestType.js +4 -4
  42. package/dist/cjs/api/resources/account/types/InsightsAccountResponse.d.ts +2 -2
  43. package/dist/cjs/api/resources/account/types/LandingPagesAccountRequestShowInactive.js +2 -2
  44. package/dist/cjs/api/resources/account/types/index.d.ts +7 -7
  45. package/dist/cjs/api/resources/index.d.ts +3 -3
  46. package/dist/cjs/api/types/Error_.js +11 -11
  47. package/dist/cjs/api/types/SearchBrandsResponse.js +1 -1
  48. package/dist/cjs/api/types/SearchCreatorsResponse.js +1 -1
  49. package/dist/cjs/api/types/SearchMediaResponse.js +26 -26
  50. package/dist/cjs/api/types/index.d.ts +7 -7
  51. package/dist/cjs/auth/BearerAuthProvider.d.ts +1 -1
  52. package/dist/cjs/auth/BearerAuthProvider.js +2 -2
  53. package/dist/cjs/auth/index.d.ts +1 -1
  54. package/dist/cjs/core/auth/AuthProvider.d.ts +2 -2
  55. package/dist/cjs/core/auth/AuthProvider.js +3 -3
  56. package/dist/cjs/core/auth/BasicAuth.js +7 -7
  57. package/dist/cjs/core/auth/BearerToken.js +1 -1
  58. package/dist/cjs/core/auth/NoOpAuthProvider.d.ts +2 -2
  59. package/dist/cjs/core/auth/index.d.ts +5 -5
  60. package/dist/cjs/core/base64.js +4 -4
  61. package/dist/cjs/core/exports.d.ts +1 -1
  62. package/dist/cjs/core/fetcher/APIResponse.d.ts +1 -1
  63. package/dist/cjs/core/fetcher/BinaryResponse.d.ts +4 -4
  64. package/dist/cjs/core/fetcher/BinaryResponse.js +1 -1
  65. package/dist/cjs/core/fetcher/EndpointSupplier.d.ts +2 -2
  66. package/dist/cjs/core/fetcher/EndpointSupplier.js +1 -1
  67. package/dist/cjs/core/fetcher/Fetcher.d.ts +11 -11
  68. package/dist/cjs/core/fetcher/Fetcher.js +56 -50
  69. package/dist/cjs/core/fetcher/Headers.js +10 -10
  70. package/dist/cjs/core/fetcher/HttpResponsePromise.d.ts +2 -2
  71. package/dist/cjs/core/fetcher/RawResponse.d.ts +1 -1
  72. package/dist/cjs/core/fetcher/RawResponse.js +6 -6
  73. package/dist/cjs/core/fetcher/Supplier.js +1 -1
  74. package/dist/cjs/core/fetcher/createRequestUrl.js +1 -1
  75. package/dist/cjs/core/fetcher/getErrorResponseBody.js +11 -11
  76. package/dist/cjs/core/fetcher/getRequestBody.d.ts +2 -2
  77. package/dist/cjs/core/fetcher/getRequestBody.js +4 -4
  78. package/dist/cjs/core/fetcher/getResponseBody.d.ts +2 -2
  79. package/dist/cjs/core/fetcher/getResponseBody.js +11 -11
  80. package/dist/cjs/core/fetcher/index.d.ts +13 -13
  81. package/dist/cjs/core/fetcher/makePassthroughRequest.d.ts +2 -2
  82. package/dist/cjs/core/fetcher/makePassthroughRequest.js +7 -7
  83. package/dist/cjs/core/fetcher/makeRequest.js +3 -3
  84. package/dist/cjs/core/fetcher/redactUrl.js +36 -36
  85. package/dist/cjs/core/fetcher/requestWithRetries.js +4 -4
  86. package/dist/cjs/core/fetcher/signals.js +2 -2
  87. package/dist/cjs/core/index.d.ts +6 -6
  88. package/dist/cjs/core/logging/exports.d.ts +1 -1
  89. package/dist/cjs/core/logging/index.d.ts +1 -1
  90. package/dist/cjs/core/logging/logger.js +4 -4
  91. package/dist/cjs/core/requestBody.js +1 -1
  92. package/dist/cjs/core/runtime/index.d.ts +1 -1
  93. package/dist/cjs/core/runtime/runtime.d.ts +1 -1
  94. package/dist/cjs/core/runtime/runtime.js +37 -35
  95. package/dist/cjs/core/url/QueryStringBuilder.d.ts +1 -1
  96. package/dist/cjs/core/url/QueryStringBuilder.js +3 -3
  97. package/dist/cjs/core/url/encodePathParam.js +10 -8
  98. package/dist/cjs/core/url/index.d.ts +4 -4
  99. package/dist/cjs/core/url/join.js +11 -11
  100. package/dist/cjs/core/url/qs.d.ts +1 -1
  101. package/dist/cjs/core/url/qs.js +14 -14
  102. package/dist/cjs/environments.js +1 -1
  103. package/dist/cjs/errors/SpyglassError.d.ts +1 -1
  104. package/dist/cjs/errors/SpyglassError.js +3 -3
  105. package/dist/cjs/errors/SpyglassTimeoutError.d.ts +1 -1
  106. package/dist/cjs/errors/SpyglassTimeoutError.js +1 -1
  107. package/dist/cjs/errors/handleNonStatusCodeError.d.ts +1 -1
  108. package/dist/cjs/errors/handleNonStatusCodeError.js +5 -5
  109. package/dist/cjs/errors/index.d.ts +2 -2
  110. package/dist/cjs/exports.d.ts +1 -1
  111. package/dist/cjs/index.d.ts +6 -6
  112. package/dist/cjs/version.d.ts +1 -1
  113. package/dist/cjs/version.js +1 -1
  114. package/dist/esm/BaseClient.d.mts +4 -4
  115. package/dist/esm/BaseClient.mjs +10 -10
  116. package/dist/esm/Client.d.mts +5 -5
  117. package/dist/esm/Client.mjs +65 -47
  118. package/dist/esm/api/client/index.d.mts +1 -1
  119. package/dist/esm/api/client/index.mjs +1 -1
  120. package/dist/esm/api/client/requests/SearchBrandsRequest.mjs +6 -6
  121. package/dist/esm/api/client/requests/SearchCreatorsRequest.mjs +174 -174
  122. package/dist/esm/api/client/requests/SearchMediaRequest.mjs +223 -223
  123. package/dist/esm/api/client/requests/index.d.mts +5 -5
  124. package/dist/esm/api/client/requests/index.mjs +3 -3
  125. package/dist/esm/api/errors/BadRequestError.d.mts +3 -3
  126. package/dist/esm/api/errors/BadRequestError.mjs +3 -3
  127. package/dist/esm/api/errors/ContentTooLargeError.d.mts +3 -3
  128. package/dist/esm/api/errors/ContentTooLargeError.mjs +3 -3
  129. package/dist/esm/api/errors/ForbiddenError.d.mts +3 -3
  130. package/dist/esm/api/errors/ForbiddenError.mjs +3 -3
  131. package/dist/esm/api/errors/InternalServerError.d.mts +3 -3
  132. package/dist/esm/api/errors/InternalServerError.mjs +3 -3
  133. package/dist/esm/api/errors/MethodNotAllowedError.d.mts +3 -3
  134. package/dist/esm/api/errors/MethodNotAllowedError.mjs +3 -3
  135. package/dist/esm/api/errors/NotFoundError.d.mts +3 -3
  136. package/dist/esm/api/errors/NotFoundError.mjs +3 -3
  137. package/dist/esm/api/errors/PaymentRequiredError.d.mts +3 -3
  138. package/dist/esm/api/errors/PaymentRequiredError.mjs +3 -3
  139. package/dist/esm/api/errors/TooManyRequestsError.d.mts +3 -3
  140. package/dist/esm/api/errors/TooManyRequestsError.mjs +3 -3
  141. package/dist/esm/api/errors/UnauthorizedError.d.mts +3 -3
  142. package/dist/esm/api/errors/UnauthorizedError.mjs +3 -3
  143. package/dist/esm/api/errors/index.d.mts +9 -9
  144. package/dist/esm/api/errors/index.mjs +9 -9
  145. package/dist/esm/api/index.d.mts +4 -4
  146. package/dist/esm/api/index.mjs +4 -4
  147. package/dist/esm/api/resources/account/client/Client.d.mts +4 -4
  148. package/dist/esm/api/resources/account/client/Client.mjs +46 -31
  149. package/dist/esm/api/resources/account/client/index.d.mts +1 -1
  150. package/dist/esm/api/resources/account/client/index.mjs +1 -1
  151. package/dist/esm/api/resources/account/client/requests/InsightsAccountRequest.d.mts +1 -1
  152. package/dist/esm/api/resources/account/client/requests/LandingPagesAccountRequest.d.mts +1 -1
  153. package/dist/esm/api/resources/account/client/requests/index.d.mts +5 -5
  154. package/dist/esm/api/resources/account/exports.d.mts +2 -2
  155. package/dist/esm/api/resources/account/exports.mjs +2 -2
  156. package/dist/esm/api/resources/account/index.d.mts +2 -2
  157. package/dist/esm/api/resources/account/index.mjs +2 -2
  158. package/dist/esm/api/resources/account/types/GetAccountResponse.d.mts +3 -3
  159. package/dist/esm/api/resources/account/types/IndexAccountResponse.mjs +2 -2
  160. package/dist/esm/api/resources/account/types/IndexStatusAccountResponse.mjs +2 -2
  161. package/dist/esm/api/resources/account/types/InsightsAccountRequestType.mjs +4 -4
  162. package/dist/esm/api/resources/account/types/InsightsAccountResponse.d.mts +2 -2
  163. package/dist/esm/api/resources/account/types/LandingPagesAccountRequestShowInactive.mjs +2 -2
  164. package/dist/esm/api/resources/account/types/index.d.mts +7 -7
  165. package/dist/esm/api/resources/account/types/index.mjs +7 -7
  166. package/dist/esm/api/resources/index.d.mts +3 -3
  167. package/dist/esm/api/resources/index.mjs +3 -3
  168. package/dist/esm/api/types/Error_.mjs +11 -11
  169. package/dist/esm/api/types/SearchBrandsResponse.mjs +1 -1
  170. package/dist/esm/api/types/SearchCreatorsResponse.mjs +1 -1
  171. package/dist/esm/api/types/SearchMediaResponse.mjs +26 -26
  172. package/dist/esm/api/types/index.d.mts +7 -7
  173. package/dist/esm/api/types/index.mjs +7 -7
  174. package/dist/esm/auth/BearerAuthProvider.d.mts +1 -1
  175. package/dist/esm/auth/BearerAuthProvider.mjs +4 -4
  176. package/dist/esm/auth/index.d.mts +1 -1
  177. package/dist/esm/auth/index.mjs +1 -1
  178. package/dist/esm/core/auth/AuthProvider.d.mts +2 -2
  179. package/dist/esm/core/auth/AuthProvider.mjs +3 -3
  180. package/dist/esm/core/auth/BasicAuth.mjs +8 -8
  181. package/dist/esm/core/auth/BearerToken.mjs +1 -1
  182. package/dist/esm/core/auth/NoOpAuthProvider.d.mts +2 -2
  183. package/dist/esm/core/auth/index.d.mts +5 -5
  184. package/dist/esm/core/auth/index.mjs +4 -4
  185. package/dist/esm/core/base64.mjs +4 -4
  186. package/dist/esm/core/exports.d.mts +1 -1
  187. package/dist/esm/core/exports.mjs +1 -1
  188. package/dist/esm/core/fetcher/APIResponse.d.mts +1 -1
  189. package/dist/esm/core/fetcher/BinaryResponse.d.mts +4 -4
  190. package/dist/esm/core/fetcher/BinaryResponse.mjs +1 -1
  191. package/dist/esm/core/fetcher/EndpointSupplier.d.mts +2 -2
  192. package/dist/esm/core/fetcher/EndpointSupplier.mjs +1 -1
  193. package/dist/esm/core/fetcher/Fetcher.d.mts +11 -11
  194. package/dist/esm/core/fetcher/Fetcher.mjs +70 -64
  195. package/dist/esm/core/fetcher/Headers.mjs +10 -10
  196. package/dist/esm/core/fetcher/HttpResponsePromise.d.mts +2 -2
  197. package/dist/esm/core/fetcher/RawResponse.d.mts +1 -1
  198. package/dist/esm/core/fetcher/RawResponse.mjs +7 -7
  199. package/dist/esm/core/fetcher/Supplier.mjs +1 -1
  200. package/dist/esm/core/fetcher/createRequestUrl.mjs +2 -2
  201. package/dist/esm/core/fetcher/getErrorResponseBody.mjs +13 -13
  202. package/dist/esm/core/fetcher/getRequestBody.d.mts +2 -2
  203. package/dist/esm/core/fetcher/getRequestBody.mjs +6 -6
  204. package/dist/esm/core/fetcher/getResponseBody.d.mts +2 -2
  205. package/dist/esm/core/fetcher/getResponseBody.mjs +13 -13
  206. package/dist/esm/core/fetcher/index.d.mts +13 -13
  207. package/dist/esm/core/fetcher/index.mjs +7 -7
  208. package/dist/esm/core/fetcher/makePassthroughRequest.d.mts +2 -2
  209. package/dist/esm/core/fetcher/makePassthroughRequest.mjs +16 -16
  210. package/dist/esm/core/fetcher/makeRequest.mjs +4 -4
  211. package/dist/esm/core/fetcher/redactUrl.mjs +36 -36
  212. package/dist/esm/core/fetcher/requestWithRetries.mjs +4 -4
  213. package/dist/esm/core/fetcher/signals.mjs +2 -2
  214. package/dist/esm/core/index.d.mts +6 -6
  215. package/dist/esm/core/index.mjs +6 -6
  216. package/dist/esm/core/logging/exports.d.mts +1 -1
  217. package/dist/esm/core/logging/exports.mjs +1 -1
  218. package/dist/esm/core/logging/index.d.mts +1 -1
  219. package/dist/esm/core/logging/index.mjs +1 -1
  220. package/dist/esm/core/logging/logger.mjs +4 -4
  221. package/dist/esm/core/requestBody.mjs +1 -1
  222. package/dist/esm/core/runtime/index.d.mts +1 -1
  223. package/dist/esm/core/runtime/index.mjs +1 -1
  224. package/dist/esm/core/runtime/runtime.d.mts +1 -1
  225. package/dist/esm/core/runtime/runtime.mjs +37 -35
  226. package/dist/esm/core/url/QueryStringBuilder.d.mts +1 -1
  227. package/dist/esm/core/url/QueryStringBuilder.mjs +4 -4
  228. package/dist/esm/core/url/encodePathParam.mjs +10 -8
  229. package/dist/esm/core/url/index.d.mts +4 -4
  230. package/dist/esm/core/url/index.mjs +4 -4
  231. package/dist/esm/core/url/join.mjs +11 -11
  232. package/dist/esm/core/url/qs.d.mts +1 -1
  233. package/dist/esm/core/url/qs.mjs +14 -14
  234. package/dist/esm/environments.mjs +1 -1
  235. package/dist/esm/errors/SpyglassError.d.mts +1 -1
  236. package/dist/esm/errors/SpyglassError.mjs +4 -4
  237. package/dist/esm/errors/SpyglassTimeoutError.d.mts +1 -1
  238. package/dist/esm/errors/SpyglassTimeoutError.mjs +2 -2
  239. package/dist/esm/errors/handleNonStatusCodeError.d.mts +1 -1
  240. package/dist/esm/errors/handleNonStatusCodeError.mjs +6 -6
  241. package/dist/esm/errors/index.d.mts +2 -2
  242. package/dist/esm/errors/index.mjs +2 -2
  243. package/dist/esm/exports.d.mts +1 -1
  244. package/dist/esm/exports.mjs +1 -1
  245. package/dist/esm/index.d.mts +6 -6
  246. package/dist/esm/index.mjs +5 -5
  247. package/dist/esm/version.d.mts +1 -1
  248. package/dist/esm/version.mjs +1 -1
  249. package/package.json +91 -91
  250. package/reference.md +83 -82
@@ -7,43 +7,45 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
7
7
  step((generator = generator.apply(thisArg, _arguments || [])).next());
8
8
  });
9
9
  };
10
- import { toJson } from "../json.mjs";
11
- import { createLogger } from "../logging/logger.mjs";
12
- import { createRequestUrl } from "./createRequestUrl.mjs";
13
- import { EndpointSupplier } from "./EndpointSupplier.mjs";
14
- import { getErrorResponseBody } from "./getErrorResponseBody.mjs";
15
- import { getFetchFn } from "./getFetchFn.mjs";
16
- import { getRequestBody } from "./getRequestBody.mjs";
17
- import { getResponseBody, isResponseBodyError } from "./getResponseBody.mjs";
18
- import { Headers } from "./Headers.mjs";
19
- import { clearResponseTimeout, makeRequest } from "./makeRequest.mjs";
20
- import { abortRawResponse, toRawResponse, unknownRawResponse } from "./RawResponse.mjs";
21
- import { redactUrl, SENSITIVE_QUERY_PARAMS } from "./redactUrl.mjs";
22
- import { requestWithRetries } from "./requestWithRetries.mjs";
23
- import { TIMEOUT } from "./signals.mjs";
10
+ import { toJson } from '../json.mjs';
11
+ import { createLogger } from '../logging/logger.mjs';
12
+ import { createRequestUrl } from './createRequestUrl.mjs';
13
+ import { EndpointSupplier } from './EndpointSupplier.mjs';
14
+ import { getErrorResponseBody } from './getErrorResponseBody.mjs';
15
+ import { getFetchFn } from './getFetchFn.mjs';
16
+ import { getRequestBody } from './getRequestBody.mjs';
17
+ import { getResponseBody, isResponseBodyError } from './getResponseBody.mjs';
18
+ import { Headers } from './Headers.mjs';
19
+ import { clearResponseTimeout, makeRequest } from './makeRequest.mjs';
20
+ import { abortRawResponse, toRawResponse, unknownRawResponse } from './RawResponse.mjs';
21
+ import { redactUrl, SENSITIVE_QUERY_PARAMS } from './redactUrl.mjs';
22
+ import { requestWithRetries } from './requestWithRetries.mjs';
23
+ import { TIMEOUT } from './signals.mjs';
24
24
  const SENSITIVE_HEADERS = new Set([
25
- "authorization",
26
- "www-authenticate",
27
- "x-api-key",
28
- "api-key",
29
- "apikey",
30
- "x-api-token",
31
- "x-auth-token",
32
- "auth-token",
33
- "cookie",
34
- "set-cookie",
35
- "proxy-authorization",
36
- "proxy-authenticate",
37
- "x-csrf-token",
38
- "x-xsrf-token",
39
- "x-session-token",
40
- "x-access-token",
25
+ 'authorization',
26
+ 'www-authenticate',
27
+ 'x-api-key',
28
+ 'api-key',
29
+ 'apikey',
30
+ 'x-api-token',
31
+ 'x-auth-token',
32
+ 'auth-token',
33
+ 'cookie',
34
+ 'set-cookie',
35
+ 'proxy-authorization',
36
+ 'proxy-authenticate',
37
+ 'x-csrf-token',
38
+ 'x-xsrf-token',
39
+ 'x-session-token',
40
+ 'x-access-token',
41
41
  ]);
42
42
  function redactHeaders(headers) {
43
43
  const filtered = {};
44
- for (const [key, value] of headers instanceof Headers ? headers.entries() : Object.entries(headers)) {
44
+ for (const [key, value] of headers instanceof Headers
45
+ ? headers.entries()
46
+ : Object.entries(headers)) {
45
47
  if (SENSITIVE_HEADERS.has(key.toLowerCase())) {
46
- filtered[key] = "[REDACTED]";
48
+ filtered[key] = '[REDACTED]';
47
49
  }
48
50
  else {
49
51
  filtered[key] = value;
@@ -57,7 +59,7 @@ function redactQueryParameters(queryParameters) {
57
59
  }
58
60
  const redacted = {};
59
61
  for (const [key, value] of Object.entries(queryParameters)) {
60
- redacted[key] = SENSITIVE_QUERY_PARAMS.has(key.toLowerCase()) ? "[REDACTED]" : value;
62
+ redacted[key] = SENSITIVE_QUERY_PARAMS.has(key.toLowerCase()) ? '[REDACTED]' : value;
61
63
  }
62
64
  return redacted;
63
65
  }
@@ -65,22 +67,24 @@ function getHeaders(args) {
65
67
  return __awaiter(this, void 0, void 0, function* () {
66
68
  var _a;
67
69
  const newHeaders = new Headers();
68
- newHeaders.set("Accept", args.responseType === "json"
69
- ? "application/json"
70
- : args.responseType === "text"
71
- ? "text/plain"
72
- : args.responseType === "sse"
73
- ? "text/event-stream"
74
- : "*/*");
70
+ newHeaders.set('Accept', args.responseType === 'json'
71
+ ? 'application/json'
72
+ : args.responseType === 'text'
73
+ ? 'text/plain'
74
+ : args.responseType === 'sse'
75
+ ? 'text/event-stream'
76
+ : '*/*');
75
77
  if (args.body !== undefined && args.contentType != null) {
76
- newHeaders.set("Content-Type", args.contentType);
78
+ newHeaders.set('Content-Type', args.contentType);
77
79
  }
78
80
  if (args.headers == null) {
79
81
  return newHeaders;
80
82
  }
81
83
  for (const [key, value] of Object.entries(args.headers)) {
82
- const result = yield EndpointSupplier.get(value, { endpointMetadata: (_a = args.endpointMetadata) !== null && _a !== void 0 ? _a : {} });
83
- if (typeof result === "string") {
84
+ const result = yield EndpointSupplier.get(value, {
85
+ endpointMetadata: (_a = args.endpointMetadata) !== null && _a !== void 0 ? _a : {},
86
+ });
87
+ if (typeof result === 'string') {
84
88
  newHeaders.set(key, result);
85
89
  continue;
86
90
  }
@@ -94,8 +98,8 @@ function getHeaders(args) {
94
98
  }
95
99
  function isJsonContentType(contentType) {
96
100
  var _a, _b;
97
- const mediaType = (_b = (_a = contentType === null || contentType === void 0 ? void 0 : contentType.split(";")[0]) === null || _a === void 0 ? void 0 : _a.trim().toLowerCase()) !== null && _b !== void 0 ? _b : "";
98
- return mediaType === "application/json" || mediaType === "text/json" || mediaType.endsWith("+json");
101
+ const mediaType = (_b = (_a = contentType === null || contentType === void 0 ? void 0 : contentType.split(';')[0]) === null || _a === void 0 ? void 0 : _a.trim().toLowerCase()) !== null && _b !== void 0 ? _b : '';
102
+ return (mediaType === 'application/json' || mediaType === 'text/json' || mediaType.endsWith('+json'));
99
103
  }
100
104
  export function fetcherImpl(args) {
101
105
  return __awaiter(this, void 0, void 0, function* () {
@@ -109,7 +113,7 @@ export function fetcherImpl(args) {
109
113
  }
110
114
  const requestBody = yield getRequestBody({
111
115
  body: args.body,
112
- type: (_a = args.requestType) !== null && _a !== void 0 ? _a : "other",
116
+ type: (_a = args.requestType) !== null && _a !== void 0 ? _a : 'other',
113
117
  });
114
118
  const fetchFn = (_b = args.fetchFn) !== null && _b !== void 0 ? _b : (yield getFetchFn());
115
119
  const headers = yield getHeaders(args);
@@ -122,10 +126,12 @@ export function fetcherImpl(args) {
122
126
  queryParameters: redactQueryParameters(args.queryParameters),
123
127
  hasBody: requestBody != null,
124
128
  };
125
- logger.debug("Making HTTP request", metadata);
129
+ logger.debug('Making HTTP request', metadata);
126
130
  }
127
131
  // Bodies that are read in full here stay covered by the timeout; streamed bodies are read by the caller.
128
- const keepTimeoutUntilBodyRead = args.responseType !== "streaming" && args.responseType !== "sse" && args.responseType !== "binary-response";
132
+ const keepTimeoutUntilBodyRead = args.responseType !== 'streaming' &&
133
+ args.responseType !== 'sse' &&
134
+ args.responseType !== 'binary-response';
129
135
  const attemptResponses = [];
130
136
  try {
131
137
  const response = yield requestWithRetries(() => __awaiter(this, void 0, void 0, function* () {
@@ -133,7 +139,7 @@ export function fetcherImpl(args) {
133
139
  for (const previousResponse of attemptResponses) {
134
140
  clearResponseTimeout(previousResponse);
135
141
  }
136
- const attemptResponse = yield makeRequest(fetchFn, url, args.method, headers, requestBody, args.timeoutMs, args.abortSignal, args.withCredentials, args.duplex, args.responseType === "streaming" || args.responseType === "sse", keepTimeoutUntilBodyRead);
142
+ const attemptResponse = yield makeRequest(fetchFn, url, args.method, headers, requestBody, args.timeoutMs, args.abortSignal, args.withCredentials, args.duplex, args.responseType === 'streaming' || args.responseType === 'sse', keepTimeoutUntilBodyRead);
137
143
  attemptResponses.push(attemptResponse);
138
144
  return attemptResponse;
139
145
  }), args.maxRetries, args.abortSignal);
@@ -145,13 +151,13 @@ export function fetcherImpl(args) {
145
151
  statusCode: response.status,
146
152
  responseHeaders: redactHeaders(response.headers),
147
153
  };
148
- logger.debug("HTTP request succeeded", metadata);
154
+ logger.debug('HTTP request succeeded', metadata);
149
155
  }
150
156
  const body = yield getResponseBody(response, args.responseType);
151
157
  // Only a body the server labelled as JSON is an error here; void endpoints may return plain text.
152
158
  if (isResponseBodyError(body) &&
153
- body.error.reason === "non-json" &&
154
- isJsonContentType(response.headers.get("Content-Type"))) {
159
+ body.error.reason === 'non-json' &&
160
+ isJsonContentType(response.headers.get('Content-Type'))) {
155
161
  return {
156
162
  ok: false,
157
163
  error: body.error,
@@ -173,12 +179,12 @@ export function fetcherImpl(args) {
173
179
  statusCode: response.status,
174
180
  responseHeaders: redactHeaders(Object.fromEntries(response.headers.entries())),
175
181
  };
176
- logger.error("HTTP request failed with error status", metadata);
182
+ logger.error('HTTP request failed with error status', metadata);
177
183
  }
178
184
  return {
179
185
  ok: false,
180
186
  error: {
181
- reason: "status-code",
187
+ reason: 'status-code',
182
188
  statusCode: response.status,
183
189
  body: yield getErrorResponseBody(response),
184
190
  },
@@ -193,31 +199,31 @@ export function fetcherImpl(args) {
193
199
  method: args.method,
194
200
  url: redactUrl(url),
195
201
  };
196
- logger.error("HTTP request was aborted", metadata);
202
+ logger.error('HTTP request was aborted', metadata);
197
203
  }
198
204
  return {
199
205
  ok: false,
200
206
  error: {
201
- reason: "unknown",
202
- errorMessage: "The user aborted a request",
207
+ reason: 'unknown',
208
+ errorMessage: 'The user aborted a request',
203
209
  cause: error,
204
210
  },
205
211
  rawResponse: abortRawResponse,
206
212
  };
207
213
  }
208
- else if (error === TIMEOUT || (error instanceof Error && error.name === "AbortError")) {
214
+ else if (error === TIMEOUT || (error instanceof Error && error.name === 'AbortError')) {
209
215
  if (logger.isError()) {
210
216
  const metadata = {
211
217
  method: args.method,
212
218
  url: redactUrl(url),
213
219
  timeoutMs: args.timeoutMs,
214
220
  };
215
- logger.error("HTTP request timed out", metadata);
221
+ logger.error('HTTP request timed out', metadata);
216
222
  }
217
223
  return {
218
224
  ok: false,
219
225
  error: {
220
- reason: "timeout",
226
+ reason: 'timeout',
221
227
  cause: error,
222
228
  },
223
229
  rawResponse: abortRawResponse,
@@ -230,12 +236,12 @@ export function fetcherImpl(args) {
230
236
  url: redactUrl(url),
231
237
  errorMessage: error.message,
232
238
  };
233
- logger.error("HTTP request failed with error", metadata);
239
+ logger.error('HTTP request failed with error', metadata);
234
240
  }
235
241
  return {
236
242
  ok: false,
237
243
  error: {
238
- reason: "unknown",
244
+ reason: 'unknown',
239
245
  errorMessage: error.message,
240
246
  cause: error,
241
247
  },
@@ -248,12 +254,12 @@ export function fetcherImpl(args) {
248
254
  url: redactUrl(url),
249
255
  error: toJson(error),
250
256
  };
251
- logger.error("HTTP request failed with unknown error", metadata);
257
+ logger.error('HTTP request failed with unknown error', metadata);
252
258
  }
253
259
  return {
254
260
  ok: false,
255
261
  error: {
256
- reason: "unknown",
262
+ reason: 'unknown',
257
263
  errorMessage: toJson(error),
258
264
  cause: error,
259
265
  },
@@ -1,5 +1,5 @@
1
1
  let Headers;
2
- if (typeof globalThis.Headers !== "undefined") {
2
+ if (typeof globalThis.Headers !== 'undefined') {
3
3
  Headers = globalThis.Headers;
4
4
  }
5
5
  else {
@@ -12,21 +12,21 @@ else {
12
12
  }
13
13
  else if (Array.isArray(init)) {
14
14
  for (const [key, value] of init) {
15
- if (typeof key === "string" && typeof value === "string") {
15
+ if (typeof key === 'string' && typeof value === 'string') {
16
16
  this.append(key, value);
17
17
  }
18
18
  else {
19
- throw new TypeError("Each header entry must be a [string, string] tuple");
19
+ throw new TypeError('Each header entry must be a [string, string] tuple');
20
20
  }
21
21
  }
22
22
  }
23
23
  else {
24
24
  for (const [key, value] of Object.entries(init)) {
25
- if (typeof value === "string") {
25
+ if (typeof value === 'string') {
26
26
  this.append(key, value);
27
27
  }
28
28
  else {
29
- throw new TypeError("Header values must be strings");
29
+ throw new TypeError('Header values must be strings');
30
30
  }
31
31
  }
32
32
  }
@@ -44,7 +44,7 @@ else {
44
44
  get(name) {
45
45
  const key = name.toLowerCase();
46
46
  const values = this.headers.get(key);
47
- return values ? values.join(", ") : null;
47
+ return values ? values.join(', ') : null;
48
48
  }
49
49
  has(name) {
50
50
  const key = name.toLowerCase();
@@ -56,14 +56,14 @@ else {
56
56
  }
57
57
  forEach(callbackfn, thisArg) {
58
58
  const boundCallback = thisArg ? callbackfn.bind(thisArg) : callbackfn;
59
- this.headers.forEach((values, key) => boundCallback(values.join(", "), key, this));
59
+ this.headers.forEach((values, key) => boundCallback(values.join(', '), key, this));
60
60
  }
61
61
  getSetCookie() {
62
- return this.headers.get("set-cookie") || [];
62
+ return this.headers.get('set-cookie') || [];
63
63
  }
64
64
  *entries() {
65
65
  for (const [key, values] of this.headers.entries()) {
66
- yield [key, values.join(", ")];
66
+ yield [key, values.join(', ')];
67
67
  }
68
68
  }
69
69
  *keys() {
@@ -71,7 +71,7 @@ else {
71
71
  }
72
72
  *values() {
73
73
  for (const values of this.headers.values()) {
74
- yield values.join(", ");
74
+ yield values.join(', ');
75
75
  }
76
76
  }
77
77
  [Symbol.iterator]() {
@@ -1,4 +1,4 @@
1
- import type { WithRawResponse } from "./RawResponse.mjs";
1
+ import type { WithRawResponse } from './RawResponse.mjs';
2
2
  /**
3
3
  * A promise that returns the parsed response and lets you retrieve the raw response too.
4
4
  */
@@ -20,7 +20,7 @@ export declare class HttpResponsePromise<T> extends Promise<T> {
20
20
  * @param fn - A function that returns a promise resolving to a `WithRawResponse` object.
21
21
  * @returns A function that returns an `HttpResponsePromise` instance.
22
22
  */
23
- static interceptFunction<F extends (...args: never[]) => Promise<WithRawResponse<T>>, T = Awaited<ReturnType<F>>["data"]>(fn: F): (...args: Parameters<F>) => HttpResponsePromise<T>;
23
+ static interceptFunction<F extends (...args: never[]) => Promise<WithRawResponse<T>>, T = Awaited<ReturnType<F>>['data']>(fn: F): (...args: Parameters<F>) => HttpResponsePromise<T>;
24
24
  /**
25
25
  * Creates an `HttpResponsePromise` from an existing promise.
26
26
  *
@@ -3,7 +3,7 @@
3
3
  */
4
4
  export type RawResponse = Omit<{
5
5
  [K in keyof Response as Response[K] extends Function ? never : K]: Response[K];
6
- }, "ok" | "body" | "bodyUsed">;
6
+ }, 'ok' | 'body' | 'bodyUsed'>;
7
7
  /**
8
8
  * A raw response indicating that the request was aborted.
9
9
  */
@@ -1,4 +1,4 @@
1
- import { Headers } from "./Headers.mjs";
1
+ import { Headers } from './Headers.mjs';
2
2
  /**
3
3
  * A raw response indicating that the request was aborted.
4
4
  */
@@ -6,9 +6,9 @@ export const abortRawResponse = {
6
6
  headers: new Headers(),
7
7
  redirected: false,
8
8
  status: 499,
9
- statusText: "Client Closed Request",
10
- type: "error",
11
- url: "",
9
+ statusText: 'Client Closed Request',
10
+ type: 'error',
11
+ url: '',
12
12
  };
13
13
  /**
14
14
  * A raw response indicating an unknown error.
@@ -17,9 +17,9 @@ export const unknownRawResponse = {
17
17
  headers: new Headers(),
18
18
  redirected: false,
19
19
  status: 0,
20
- statusText: "Unknown Error",
21
- type: "error",
22
- url: "",
20
+ statusText: 'Unknown Error',
21
+ type: 'error',
22
+ url: '',
23
23
  };
24
24
  /**
25
25
  * Converts a `RawResponse` object into a `RawResponse` by extracting its properties,
@@ -9,7 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  };
10
10
  export const Supplier = {
11
11
  get: (supplier) => __awaiter(void 0, void 0, void 0, function* () {
12
- if (typeof supplier === "function") {
12
+ if (typeof supplier === 'function') {
13
13
  return supplier();
14
14
  }
15
15
  else {
@@ -1,5 +1,5 @@
1
- import { toQueryString } from "../url/qs.mjs";
1
+ import { toQueryString } from '../url/qs.mjs';
2
2
  export function createRequestUrl(baseUrl, queryParameters) {
3
- const queryString = toQueryString(queryParameters, { arrayFormat: "repeat" });
3
+ const queryString = toQueryString(queryParameters, { arrayFormat: 'repeat' });
4
4
  return queryString ? `${baseUrl}?${queryString}` : baseUrl;
5
5
  }
@@ -7,8 +7,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
7
7
  step((generator = generator.apply(thisArg, _arguments || [])).next());
8
8
  });
9
9
  };
10
- import { fromJson } from "../json.mjs";
11
- import { getResponseBody, isResponseBodyError } from "./getResponseBody.mjs";
10
+ import { fromJson } from '../json.mjs';
11
+ import { getResponseBody, isResponseBodyError } from './getResponseBody.mjs';
12
12
  /** Parses a JSON error body, falling back to the raw text so the status and body are never lost. */
13
13
  function parseJsonErrorBody(text) {
14
14
  if (text.length === 0) {
@@ -24,27 +24,27 @@ function parseJsonErrorBody(text) {
24
24
  export function getErrorResponseBody(response) {
25
25
  return __awaiter(this, void 0, void 0, function* () {
26
26
  var _a, _b, _c;
27
- let contentType = (_a = response.headers.get("Content-Type")) === null || _a === void 0 ? void 0 : _a.toLowerCase();
27
+ let contentType = (_a = response.headers.get('Content-Type')) === null || _a === void 0 ? void 0 : _a.toLowerCase();
28
28
  if (contentType == null || contentType.length === 0) {
29
29
  const body = yield getResponseBody(response);
30
30
  if (isResponseBodyError(body)) {
31
- return body.error.reason === "non-json" ? body.error.rawBody : undefined;
31
+ return body.error.reason === 'non-json' ? body.error.rawBody : undefined;
32
32
  }
33
33
  return body;
34
34
  }
35
- if (contentType.indexOf(";") !== -1) {
36
- contentType = (_c = (_b = contentType.split(";")[0]) === null || _b === void 0 ? void 0 : _b.trim()) !== null && _c !== void 0 ? _c : "";
35
+ if (contentType.indexOf(';') !== -1) {
36
+ contentType = (_c = (_b = contentType.split(';')[0]) === null || _b === void 0 ? void 0 : _b.trim()) !== null && _c !== void 0 ? _c : '';
37
37
  }
38
38
  switch (contentType) {
39
- case "application/hal+json":
40
- case "application/json":
41
- case "application/ld+json":
42
- case "application/problem+json":
43
- case "application/vnd.api+json":
44
- case "text/json":
39
+ case 'application/hal+json':
40
+ case 'application/json':
41
+ case 'application/ld+json':
42
+ case 'application/problem+json':
43
+ case 'application/vnd.api+json':
44
+ case 'text/json':
45
45
  return parseJsonErrorBody(yield response.text());
46
46
  default:
47
- if (contentType.startsWith("application/vnd.") && contentType.endsWith("+json")) {
47
+ if (contentType.startsWith('application/vnd.') && contentType.endsWith('+json')) {
48
48
  return parseJsonErrorBody(yield response.text());
49
49
  }
50
50
  // Fallback to plain text if content type is not recognized
@@ -1,7 +1,7 @@
1
1
  export declare namespace GetRequestBody {
2
2
  interface Args {
3
3
  body: unknown;
4
- type: "json" | "file" | "bytes" | "form" | "other";
4
+ type: 'json' | 'file' | 'bytes' | 'form' | 'other';
5
5
  }
6
6
  }
7
- export declare function getRequestBody({ body, type }: GetRequestBody.Args): Promise<BodyInit | undefined>;
7
+ export declare function getRequestBody({ body, type, }: GetRequestBody.Args): Promise<BodyInit | undefined>;
@@ -7,14 +7,14 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
7
7
  step((generator = generator.apply(thisArg, _arguments || [])).next());
8
8
  });
9
9
  };
10
- import { toJson } from "../json.mjs";
11
- import { toQueryString } from "../url/qs.mjs";
10
+ import { toJson } from '../json.mjs';
11
+ import { toQueryString } from '../url/qs.mjs';
12
12
  export function getRequestBody(_a) {
13
- return __awaiter(this, arguments, void 0, function* ({ body, type }) {
14
- if (type === "form") {
15
- return toQueryString(body, { arrayFormat: "repeat", encode: true });
13
+ return __awaiter(this, arguments, void 0, function* ({ body, type, }) {
14
+ if (type === 'form') {
15
+ return toQueryString(body, { arrayFormat: 'repeat', encode: true });
16
16
  }
17
- if (type.includes("json")) {
17
+ if (type.includes('json')) {
18
18
  return toJson(body);
19
19
  }
20
20
  else {
@@ -1,11 +1,11 @@
1
1
  export type ResponseBodyError = {
2
2
  ok: false;
3
3
  error: {
4
- reason: "non-json";
4
+ reason: 'non-json';
5
5
  statusCode: number;
6
6
  rawBody: string;
7
7
  } | {
8
- reason: "body-is-null";
8
+ reason: 'body-is-null';
9
9
  statusCode: number;
10
10
  };
11
11
  };
@@ -7,11 +7,11 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
7
7
  step((generator = generator.apply(thisArg, _arguments || [])).next());
8
8
  });
9
9
  };
10
- import { fromJson } from "../json.mjs";
11
- import { getBinaryResponse } from "./BinaryResponse.mjs";
10
+ import { fromJson } from '../json.mjs';
11
+ import { getBinaryResponse } from './BinaryResponse.mjs';
12
12
  // Pins the upstream Response so undici's FinalizationRegistry can't GC it and cancel the body stream.
13
13
  function retainResponse(target, response) {
14
- Object.defineProperty(target, "__fern_response_ref", {
14
+ Object.defineProperty(target, '__fern_response_ref', {
15
15
  value: response,
16
16
  enumerable: false,
17
17
  configurable: true,
@@ -29,36 +29,36 @@ function responseBodyError(error) {
29
29
  * as opposed to a parsed JSON body that happens to have the same shape.
30
30
  */
31
31
  export function isResponseBodyError(value) {
32
- return typeof value === "object" && value != null && responseBodyErrors.has(value);
32
+ return typeof value === 'object' && value != null && responseBodyErrors.has(value);
33
33
  }
34
34
  export function getResponseBody(response, responseType) {
35
35
  return __awaiter(this, void 0, void 0, function* () {
36
36
  switch (responseType) {
37
- case "binary-response":
37
+ case 'binary-response':
38
38
  return getBinaryResponse(response);
39
- case "blob":
39
+ case 'blob':
40
40
  return yield response.blob();
41
- case "arrayBuffer":
41
+ case 'arrayBuffer':
42
42
  return yield response.arrayBuffer();
43
- case "sse":
43
+ case 'sse':
44
44
  if (response.body == null) {
45
45
  return responseBodyError({
46
- reason: "body-is-null",
46
+ reason: 'body-is-null',
47
47
  statusCode: response.status,
48
48
  });
49
49
  }
50
50
  retainResponse(response.body, response);
51
51
  return response.body;
52
- case "streaming":
52
+ case 'streaming':
53
53
  if (response.body == null) {
54
54
  return responseBodyError({
55
- reason: "body-is-null",
55
+ reason: 'body-is-null',
56
56
  statusCode: response.status,
57
57
  });
58
58
  }
59
59
  retainResponse(response.body, response);
60
60
  return response.body;
61
- case "text":
61
+ case 'text':
62
62
  return yield response.text();
63
63
  }
64
64
  // if responseType is "json" or not specified, try to parse as JSON
@@ -70,7 +70,7 @@ export function getResponseBody(response, responseType) {
70
70
  }
71
71
  catch (_err) {
72
72
  return responseBodyError({
73
- reason: "non-json",
73
+ reason: 'non-json',
74
74
  statusCode: response.status,
75
75
  rawBody: text,
76
76
  });
@@ -1,13 +1,13 @@
1
- export type { APIResponse } from "./APIResponse.mjs";
2
- export type { BinaryResponse } from "./BinaryResponse.mjs";
3
- export type { EndpointMetadata } from "./EndpointMetadata.mjs";
4
- export { EndpointSupplier } from "./EndpointSupplier.mjs";
5
- export type { Fetcher, FetchFunction } from "./Fetcher.mjs";
6
- export { fetcher } from "./Fetcher.mjs";
7
- export { getHeader } from "./getHeader.mjs";
8
- export { HttpResponsePromise } from "./HttpResponsePromise.mjs";
9
- export type { PassthroughRequest } from "./makePassthroughRequest.mjs";
10
- export { makePassthroughRequest } from "./makePassthroughRequest.mjs";
11
- export type { RawResponse, WithRawResponse } from "./RawResponse.mjs";
12
- export { abortRawResponse, toRawResponse, unknownRawResponse } from "./RawResponse.mjs";
13
- export { Supplier } from "./Supplier.mjs";
1
+ export type { APIResponse } from './APIResponse.mjs';
2
+ export type { BinaryResponse } from './BinaryResponse.mjs';
3
+ export type { EndpointMetadata } from './EndpointMetadata.mjs';
4
+ export { EndpointSupplier } from './EndpointSupplier.mjs';
5
+ export type { Fetcher, FetchFunction } from './Fetcher.mjs';
6
+ export { fetcher } from './Fetcher.mjs';
7
+ export { getHeader } from './getHeader.mjs';
8
+ export { HttpResponsePromise } from './HttpResponsePromise.mjs';
9
+ export type { PassthroughRequest } from './makePassthroughRequest.mjs';
10
+ export { makePassthroughRequest } from './makePassthroughRequest.mjs';
11
+ export type { RawResponse, WithRawResponse } from './RawResponse.mjs';
12
+ export { abortRawResponse, toRawResponse, unknownRawResponse } from './RawResponse.mjs';
13
+ export { Supplier } from './Supplier.mjs';
@@ -1,7 +1,7 @@
1
- export { EndpointSupplier } from "./EndpointSupplier.mjs";
2
- export { fetcher } from "./Fetcher.mjs";
3
- export { getHeader } from "./getHeader.mjs";
4
- export { HttpResponsePromise } from "./HttpResponsePromise.mjs";
5
- export { makePassthroughRequest } from "./makePassthroughRequest.mjs";
6
- export { abortRawResponse, toRawResponse, unknownRawResponse } from "./RawResponse.mjs";
7
- export { Supplier } from "./Supplier.mjs";
1
+ export { EndpointSupplier } from './EndpointSupplier.mjs';
2
+ export { fetcher } from './Fetcher.mjs';
3
+ export { getHeader } from './getHeader.mjs';
4
+ export { HttpResponsePromise } from './HttpResponsePromise.mjs';
5
+ export { makePassthroughRequest } from './makePassthroughRequest.mjs';
6
+ export { abortRawResponse, toRawResponse, unknownRawResponse } from './RawResponse.mjs';
7
+ export { Supplier } from './Supplier.mjs';
@@ -1,5 +1,5 @@
1
- import { type LogConfig, type Logger } from "../logging/logger.mjs";
2
- import { Supplier } from "./Supplier.mjs";
1
+ import { type LogConfig, type Logger } from '../logging/logger.mjs';
2
+ import { Supplier } from './Supplier.mjs';
3
3
  export declare namespace PassthroughRequest {
4
4
  /**
5
5
  * Per-request options that can override the SDK client defaults.