@naturalpay/sdk 1.6.3 → 1.6.5
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/cjs/BaseClient.js +2 -2
- package/dist/cjs/api/types/BadGatewayErrorBodyErrorsItemMeta.d.ts +2 -0
- package/dist/cjs/api/types/BadGatewayErrorBodyErrorsItemMetaLimitScope.d.ts +6 -0
- package/dist/cjs/api/types/BadGatewayErrorBodyErrorsItemMetaLimitScope.js +9 -0
- package/dist/cjs/api/types/BadRequestErrorBodyErrorsItemMeta.d.ts +2 -0
- package/dist/cjs/api/types/BadRequestErrorBodyErrorsItemMetaLimitScope.d.ts +6 -0
- package/dist/cjs/api/types/BadRequestErrorBodyErrorsItemMetaLimitScope.js +9 -0
- package/dist/cjs/api/types/ConflictErrorBodyErrorsItemMeta.d.ts +2 -0
- package/dist/cjs/api/types/ConflictErrorBodyErrorsItemMetaLimitScope.d.ts +6 -0
- package/dist/cjs/api/types/ConflictErrorBodyErrorsItemMetaLimitScope.js +9 -0
- package/dist/cjs/api/types/ForbiddenErrorBodyErrorsItemMeta.d.ts +2 -0
- package/dist/cjs/api/types/ForbiddenErrorBodyErrorsItemMetaLimitScope.d.ts +6 -0
- package/dist/cjs/api/types/ForbiddenErrorBodyErrorsItemMetaLimitScope.js +9 -0
- package/dist/cjs/api/types/InternalServerErrorBodyErrorsItemMeta.d.ts +2 -0
- package/dist/cjs/api/types/InternalServerErrorBodyErrorsItemMetaLimitScope.d.ts +6 -0
- package/dist/cjs/api/types/InternalServerErrorBodyErrorsItemMetaLimitScope.js +9 -0
- package/dist/cjs/api/types/NotFoundErrorBodyErrorsItemMeta.d.ts +2 -0
- package/dist/cjs/api/types/NotFoundErrorBodyErrorsItemMetaLimitScope.d.ts +6 -0
- package/dist/cjs/api/types/NotFoundErrorBodyErrorsItemMetaLimitScope.js +9 -0
- package/dist/cjs/api/types/NotImplementedErrorBodyErrorsItemMeta.d.ts +2 -0
- package/dist/cjs/api/types/NotImplementedErrorBodyErrorsItemMetaLimitScope.d.ts +6 -0
- package/dist/cjs/api/types/NotImplementedErrorBodyErrorsItemMetaLimitScope.js +9 -0
- package/dist/cjs/api/types/PreconditionErrorBodyErrorsItemMeta.d.ts +2 -0
- package/dist/cjs/api/types/PreconditionErrorBodyErrorsItemMetaLimitScope.d.ts +6 -0
- package/dist/cjs/api/types/PreconditionErrorBodyErrorsItemMetaLimitScope.js +9 -0
- package/dist/cjs/api/types/ServiceUnavailableErrorBodyErrorsItemMeta.d.ts +2 -0
- package/dist/cjs/api/types/ServiceUnavailableErrorBodyErrorsItemMetaLimitScope.d.ts +6 -0
- package/dist/cjs/api/types/ServiceUnavailableErrorBodyErrorsItemMetaLimitScope.js +9 -0
- package/dist/cjs/api/types/TooManyRequestsErrorBodyErrorsItemMeta.d.ts +2 -0
- package/dist/cjs/api/types/TooManyRequestsErrorBodyErrorsItemMetaLimitScope.d.ts +6 -0
- package/dist/cjs/api/types/TooManyRequestsErrorBodyErrorsItemMetaLimitScope.js +9 -0
- package/dist/cjs/api/types/UnauthorizedErrorBodyErrorsItemMeta.d.ts +2 -0
- package/dist/cjs/api/types/UnauthorizedErrorBodyErrorsItemMetaLimitScope.d.ts +6 -0
- package/dist/cjs/api/types/UnauthorizedErrorBodyErrorsItemMetaLimitScope.js +9 -0
- package/dist/cjs/api/types/UnprocessableEntityErrorBodyErrorsItemMeta.d.ts +2 -0
- package/dist/cjs/api/types/UnprocessableEntityErrorBodyErrorsItemMetaLimitScope.d.ts +6 -0
- package/dist/cjs/api/types/UnprocessableEntityErrorBodyErrorsItemMetaLimitScope.js +9 -0
- package/dist/cjs/api/types/index.d.ts +12 -0
- package/dist/cjs/api/types/index.js +12 -0
- package/dist/cjs/core/fetcher/Fetcher.js +9 -92
- package/dist/cjs/core/fetcher/makePassthroughRequest.js +26 -4
- package/dist/cjs/core/fetcher/redactUrl.d.ts +2 -0
- package/dist/cjs/core/fetcher/redactUrl.js +88 -0
- package/dist/cjs/serialization/types/BadGatewayErrorBodyErrorsItemMeta.d.ts +2 -0
- package/dist/cjs/serialization/types/BadGatewayErrorBodyErrorsItemMeta.js +2 -0
- package/dist/cjs/serialization/types/BadGatewayErrorBodyErrorsItemMetaLimitScope.d.ts +7 -0
- package/dist/cjs/serialization/types/BadGatewayErrorBodyErrorsItemMetaLimitScope.js +39 -0
- package/dist/cjs/serialization/types/BadRequestErrorBodyErrorsItemMeta.d.ts +2 -0
- package/dist/cjs/serialization/types/BadRequestErrorBodyErrorsItemMeta.js +2 -0
- package/dist/cjs/serialization/types/BadRequestErrorBodyErrorsItemMetaLimitScope.d.ts +7 -0
- package/dist/cjs/serialization/types/BadRequestErrorBodyErrorsItemMetaLimitScope.js +39 -0
- package/dist/cjs/serialization/types/ConflictErrorBodyErrorsItemMeta.d.ts +2 -0
- package/dist/cjs/serialization/types/ConflictErrorBodyErrorsItemMeta.js +2 -0
- package/dist/cjs/serialization/types/ConflictErrorBodyErrorsItemMetaLimitScope.d.ts +7 -0
- package/dist/cjs/serialization/types/ConflictErrorBodyErrorsItemMetaLimitScope.js +39 -0
- package/dist/cjs/serialization/types/ForbiddenErrorBodyErrorsItemMeta.d.ts +2 -0
- package/dist/cjs/serialization/types/ForbiddenErrorBodyErrorsItemMeta.js +2 -0
- package/dist/cjs/serialization/types/ForbiddenErrorBodyErrorsItemMetaLimitScope.d.ts +7 -0
- package/dist/cjs/serialization/types/ForbiddenErrorBodyErrorsItemMetaLimitScope.js +39 -0
- package/dist/cjs/serialization/types/InternalServerErrorBodyErrorsItemMeta.d.ts +2 -0
- package/dist/cjs/serialization/types/InternalServerErrorBodyErrorsItemMeta.js +2 -0
- package/dist/cjs/serialization/types/InternalServerErrorBodyErrorsItemMetaLimitScope.d.ts +7 -0
- package/dist/cjs/serialization/types/InternalServerErrorBodyErrorsItemMetaLimitScope.js +39 -0
- package/dist/cjs/serialization/types/NotFoundErrorBodyErrorsItemMeta.d.ts +2 -0
- package/dist/cjs/serialization/types/NotFoundErrorBodyErrorsItemMeta.js +2 -0
- package/dist/cjs/serialization/types/NotFoundErrorBodyErrorsItemMetaLimitScope.d.ts +7 -0
- package/dist/cjs/serialization/types/NotFoundErrorBodyErrorsItemMetaLimitScope.js +39 -0
- package/dist/cjs/serialization/types/NotImplementedErrorBodyErrorsItemMeta.d.ts +2 -0
- package/dist/cjs/serialization/types/NotImplementedErrorBodyErrorsItemMeta.js +2 -0
- package/dist/cjs/serialization/types/NotImplementedErrorBodyErrorsItemMetaLimitScope.d.ts +7 -0
- package/dist/cjs/serialization/types/NotImplementedErrorBodyErrorsItemMetaLimitScope.js +39 -0
- package/dist/cjs/serialization/types/PreconditionErrorBodyErrorsItemMeta.d.ts +2 -0
- package/dist/cjs/serialization/types/PreconditionErrorBodyErrorsItemMeta.js +2 -0
- package/dist/cjs/serialization/types/PreconditionErrorBodyErrorsItemMetaLimitScope.d.ts +7 -0
- package/dist/cjs/serialization/types/PreconditionErrorBodyErrorsItemMetaLimitScope.js +39 -0
- package/dist/cjs/serialization/types/ServiceUnavailableErrorBodyErrorsItemMeta.d.ts +2 -0
- package/dist/cjs/serialization/types/ServiceUnavailableErrorBodyErrorsItemMeta.js +2 -0
- package/dist/cjs/serialization/types/ServiceUnavailableErrorBodyErrorsItemMetaLimitScope.d.ts +7 -0
- package/dist/cjs/serialization/types/ServiceUnavailableErrorBodyErrorsItemMetaLimitScope.js +39 -0
- package/dist/cjs/serialization/types/TooManyRequestsErrorBodyErrorsItemMeta.d.ts +2 -0
- package/dist/cjs/serialization/types/TooManyRequestsErrorBodyErrorsItemMeta.js +2 -0
- package/dist/cjs/serialization/types/TooManyRequestsErrorBodyErrorsItemMetaLimitScope.d.ts +7 -0
- package/dist/cjs/serialization/types/TooManyRequestsErrorBodyErrorsItemMetaLimitScope.js +39 -0
- package/dist/cjs/serialization/types/UnauthorizedErrorBodyErrorsItemMeta.d.ts +2 -0
- package/dist/cjs/serialization/types/UnauthorizedErrorBodyErrorsItemMeta.js +2 -0
- package/dist/cjs/serialization/types/UnauthorizedErrorBodyErrorsItemMetaLimitScope.d.ts +7 -0
- package/dist/cjs/serialization/types/UnauthorizedErrorBodyErrorsItemMetaLimitScope.js +39 -0
- package/dist/cjs/serialization/types/UnprocessableEntityErrorBodyErrorsItemMeta.d.ts +2 -0
- package/dist/cjs/serialization/types/UnprocessableEntityErrorBodyErrorsItemMeta.js +2 -0
- package/dist/cjs/serialization/types/UnprocessableEntityErrorBodyErrorsItemMetaLimitScope.d.ts +7 -0
- package/dist/cjs/serialization/types/UnprocessableEntityErrorBodyErrorsItemMetaLimitScope.js +39 -0
- package/dist/cjs/serialization/types/index.d.ts +12 -0
- package/dist/cjs/serialization/types/index.js +12 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.mjs +2 -2
- package/dist/esm/api/types/BadGatewayErrorBodyErrorsItemMeta.d.mts +2 -0
- package/dist/esm/api/types/BadGatewayErrorBodyErrorsItemMetaLimitScope.d.mts +6 -0
- package/dist/esm/api/types/BadGatewayErrorBodyErrorsItemMetaLimitScope.mjs +6 -0
- package/dist/esm/api/types/BadRequestErrorBodyErrorsItemMeta.d.mts +2 -0
- package/dist/esm/api/types/BadRequestErrorBodyErrorsItemMetaLimitScope.d.mts +6 -0
- package/dist/esm/api/types/BadRequestErrorBodyErrorsItemMetaLimitScope.mjs +6 -0
- package/dist/esm/api/types/ConflictErrorBodyErrorsItemMeta.d.mts +2 -0
- package/dist/esm/api/types/ConflictErrorBodyErrorsItemMetaLimitScope.d.mts +6 -0
- package/dist/esm/api/types/ConflictErrorBodyErrorsItemMetaLimitScope.mjs +6 -0
- package/dist/esm/api/types/ForbiddenErrorBodyErrorsItemMeta.d.mts +2 -0
- package/dist/esm/api/types/ForbiddenErrorBodyErrorsItemMetaLimitScope.d.mts +6 -0
- package/dist/esm/api/types/ForbiddenErrorBodyErrorsItemMetaLimitScope.mjs +6 -0
- package/dist/esm/api/types/InternalServerErrorBodyErrorsItemMeta.d.mts +2 -0
- package/dist/esm/api/types/InternalServerErrorBodyErrorsItemMetaLimitScope.d.mts +6 -0
- package/dist/esm/api/types/InternalServerErrorBodyErrorsItemMetaLimitScope.mjs +6 -0
- package/dist/esm/api/types/NotFoundErrorBodyErrorsItemMeta.d.mts +2 -0
- package/dist/esm/api/types/NotFoundErrorBodyErrorsItemMetaLimitScope.d.mts +6 -0
- package/dist/esm/api/types/NotFoundErrorBodyErrorsItemMetaLimitScope.mjs +6 -0
- package/dist/esm/api/types/NotImplementedErrorBodyErrorsItemMeta.d.mts +2 -0
- package/dist/esm/api/types/NotImplementedErrorBodyErrorsItemMetaLimitScope.d.mts +6 -0
- package/dist/esm/api/types/NotImplementedErrorBodyErrorsItemMetaLimitScope.mjs +6 -0
- package/dist/esm/api/types/PreconditionErrorBodyErrorsItemMeta.d.mts +2 -0
- package/dist/esm/api/types/PreconditionErrorBodyErrorsItemMetaLimitScope.d.mts +6 -0
- package/dist/esm/api/types/PreconditionErrorBodyErrorsItemMetaLimitScope.mjs +6 -0
- package/dist/esm/api/types/ServiceUnavailableErrorBodyErrorsItemMeta.d.mts +2 -0
- package/dist/esm/api/types/ServiceUnavailableErrorBodyErrorsItemMetaLimitScope.d.mts +6 -0
- package/dist/esm/api/types/ServiceUnavailableErrorBodyErrorsItemMetaLimitScope.mjs +6 -0
- package/dist/esm/api/types/TooManyRequestsErrorBodyErrorsItemMeta.d.mts +2 -0
- package/dist/esm/api/types/TooManyRequestsErrorBodyErrorsItemMetaLimitScope.d.mts +6 -0
- package/dist/esm/api/types/TooManyRequestsErrorBodyErrorsItemMetaLimitScope.mjs +6 -0
- package/dist/esm/api/types/UnauthorizedErrorBodyErrorsItemMeta.d.mts +2 -0
- package/dist/esm/api/types/UnauthorizedErrorBodyErrorsItemMetaLimitScope.d.mts +6 -0
- package/dist/esm/api/types/UnauthorizedErrorBodyErrorsItemMetaLimitScope.mjs +6 -0
- package/dist/esm/api/types/UnprocessableEntityErrorBodyErrorsItemMeta.d.mts +2 -0
- package/dist/esm/api/types/UnprocessableEntityErrorBodyErrorsItemMetaLimitScope.d.mts +6 -0
- package/dist/esm/api/types/UnprocessableEntityErrorBodyErrorsItemMetaLimitScope.mjs +6 -0
- package/dist/esm/api/types/index.d.mts +12 -0
- package/dist/esm/api/types/index.mjs +12 -0
- package/dist/esm/core/fetcher/Fetcher.mjs +1 -84
- package/dist/esm/core/fetcher/makePassthroughRequest.mjs +26 -4
- package/dist/esm/core/fetcher/redactUrl.d.mts +2 -0
- package/dist/esm/core/fetcher/redactUrl.mjs +84 -0
- package/dist/esm/serialization/types/BadGatewayErrorBodyErrorsItemMeta.d.mts +2 -0
- package/dist/esm/serialization/types/BadGatewayErrorBodyErrorsItemMeta.mjs +2 -0
- package/dist/esm/serialization/types/BadGatewayErrorBodyErrorsItemMetaLimitScope.d.mts +7 -0
- package/dist/esm/serialization/types/BadGatewayErrorBodyErrorsItemMetaLimitScope.mjs +3 -0
- package/dist/esm/serialization/types/BadRequestErrorBodyErrorsItemMeta.d.mts +2 -0
- package/dist/esm/serialization/types/BadRequestErrorBodyErrorsItemMeta.mjs +2 -0
- package/dist/esm/serialization/types/BadRequestErrorBodyErrorsItemMetaLimitScope.d.mts +7 -0
- package/dist/esm/serialization/types/BadRequestErrorBodyErrorsItemMetaLimitScope.mjs +3 -0
- package/dist/esm/serialization/types/ConflictErrorBodyErrorsItemMeta.d.mts +2 -0
- package/dist/esm/serialization/types/ConflictErrorBodyErrorsItemMeta.mjs +2 -0
- package/dist/esm/serialization/types/ConflictErrorBodyErrorsItemMetaLimitScope.d.mts +7 -0
- package/dist/esm/serialization/types/ConflictErrorBodyErrorsItemMetaLimitScope.mjs +3 -0
- package/dist/esm/serialization/types/ForbiddenErrorBodyErrorsItemMeta.d.mts +2 -0
- package/dist/esm/serialization/types/ForbiddenErrorBodyErrorsItemMeta.mjs +2 -0
- package/dist/esm/serialization/types/ForbiddenErrorBodyErrorsItemMetaLimitScope.d.mts +7 -0
- package/dist/esm/serialization/types/ForbiddenErrorBodyErrorsItemMetaLimitScope.mjs +3 -0
- package/dist/esm/serialization/types/InternalServerErrorBodyErrorsItemMeta.d.mts +2 -0
- package/dist/esm/serialization/types/InternalServerErrorBodyErrorsItemMeta.mjs +2 -0
- package/dist/esm/serialization/types/InternalServerErrorBodyErrorsItemMetaLimitScope.d.mts +7 -0
- package/dist/esm/serialization/types/InternalServerErrorBodyErrorsItemMetaLimitScope.mjs +3 -0
- package/dist/esm/serialization/types/NotFoundErrorBodyErrorsItemMeta.d.mts +2 -0
- package/dist/esm/serialization/types/NotFoundErrorBodyErrorsItemMeta.mjs +2 -0
- package/dist/esm/serialization/types/NotFoundErrorBodyErrorsItemMetaLimitScope.d.mts +7 -0
- package/dist/esm/serialization/types/NotFoundErrorBodyErrorsItemMetaLimitScope.mjs +3 -0
- package/dist/esm/serialization/types/NotImplementedErrorBodyErrorsItemMeta.d.mts +2 -0
- package/dist/esm/serialization/types/NotImplementedErrorBodyErrorsItemMeta.mjs +2 -0
- package/dist/esm/serialization/types/NotImplementedErrorBodyErrorsItemMetaLimitScope.d.mts +7 -0
- package/dist/esm/serialization/types/NotImplementedErrorBodyErrorsItemMetaLimitScope.mjs +3 -0
- package/dist/esm/serialization/types/PreconditionErrorBodyErrorsItemMeta.d.mts +2 -0
- package/dist/esm/serialization/types/PreconditionErrorBodyErrorsItemMeta.mjs +2 -0
- package/dist/esm/serialization/types/PreconditionErrorBodyErrorsItemMetaLimitScope.d.mts +7 -0
- package/dist/esm/serialization/types/PreconditionErrorBodyErrorsItemMetaLimitScope.mjs +3 -0
- package/dist/esm/serialization/types/ServiceUnavailableErrorBodyErrorsItemMeta.d.mts +2 -0
- package/dist/esm/serialization/types/ServiceUnavailableErrorBodyErrorsItemMeta.mjs +2 -0
- package/dist/esm/serialization/types/ServiceUnavailableErrorBodyErrorsItemMetaLimitScope.d.mts +7 -0
- package/dist/esm/serialization/types/ServiceUnavailableErrorBodyErrorsItemMetaLimitScope.mjs +3 -0
- package/dist/esm/serialization/types/TooManyRequestsErrorBodyErrorsItemMeta.d.mts +2 -0
- package/dist/esm/serialization/types/TooManyRequestsErrorBodyErrorsItemMeta.mjs +2 -0
- package/dist/esm/serialization/types/TooManyRequestsErrorBodyErrorsItemMetaLimitScope.d.mts +7 -0
- package/dist/esm/serialization/types/TooManyRequestsErrorBodyErrorsItemMetaLimitScope.mjs +3 -0
- package/dist/esm/serialization/types/UnauthorizedErrorBodyErrorsItemMeta.d.mts +2 -0
- package/dist/esm/serialization/types/UnauthorizedErrorBodyErrorsItemMeta.mjs +2 -0
- package/dist/esm/serialization/types/UnauthorizedErrorBodyErrorsItemMetaLimitScope.d.mts +7 -0
- package/dist/esm/serialization/types/UnauthorizedErrorBodyErrorsItemMetaLimitScope.mjs +3 -0
- package/dist/esm/serialization/types/UnprocessableEntityErrorBodyErrorsItemMeta.d.mts +2 -0
- package/dist/esm/serialization/types/UnprocessableEntityErrorBodyErrorsItemMeta.mjs +2 -0
- package/dist/esm/serialization/types/UnprocessableEntityErrorBodyErrorsItemMetaLimitScope.d.mts +7 -0
- package/dist/esm/serialization/types/UnprocessableEntityErrorBodyErrorsItemMetaLimitScope.mjs +3 -0
- package/dist/esm/serialization/types/index.d.mts +12 -0
- package/dist/esm/serialization/types/index.mjs +12 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
|
@@ -2,6 +2,7 @@ export * from "./BadGatewayErrorBody.mjs";
|
|
|
2
2
|
export * from "./BadGatewayErrorBodyErrorsItem.mjs";
|
|
3
3
|
export * from "./BadGatewayErrorBodyErrorsItemMeta.mjs";
|
|
4
4
|
export * from "./BadGatewayErrorBodyErrorsItemMetaConnectionStatus.mjs";
|
|
5
|
+
export * from "./BadGatewayErrorBodyErrorsItemMetaLimitScope.mjs";
|
|
5
6
|
export * from "./BadGatewayErrorBodyErrorsItemMetaProvider.mjs";
|
|
6
7
|
export * from "./BadGatewayErrorBodyErrorsItemMetaProviderName.mjs";
|
|
7
8
|
export * from "./BadGatewayErrorBodyErrorsItemSource.mjs";
|
|
@@ -9,6 +10,7 @@ export * from "./BadRequestErrorBody.mjs";
|
|
|
9
10
|
export * from "./BadRequestErrorBodyErrorsItem.mjs";
|
|
10
11
|
export * from "./BadRequestErrorBodyErrorsItemMeta.mjs";
|
|
11
12
|
export * from "./BadRequestErrorBodyErrorsItemMetaConnectionStatus.mjs";
|
|
13
|
+
export * from "./BadRequestErrorBodyErrorsItemMetaLimitScope.mjs";
|
|
12
14
|
export * from "./BadRequestErrorBodyErrorsItemMetaProvider.mjs";
|
|
13
15
|
export * from "./BadRequestErrorBodyErrorsItemMetaProviderName.mjs";
|
|
14
16
|
export * from "./BadRequestErrorBodyErrorsItemSource.mjs";
|
|
@@ -22,6 +24,7 @@ export * from "./ConflictErrorBody.mjs";
|
|
|
22
24
|
export * from "./ConflictErrorBodyErrorsItem.mjs";
|
|
23
25
|
export * from "./ConflictErrorBodyErrorsItemMeta.mjs";
|
|
24
26
|
export * from "./ConflictErrorBodyErrorsItemMetaConnectionStatus.mjs";
|
|
27
|
+
export * from "./ConflictErrorBodyErrorsItemMetaLimitScope.mjs";
|
|
25
28
|
export * from "./ConflictErrorBodyErrorsItemMetaProvider.mjs";
|
|
26
29
|
export * from "./ConflictErrorBodyErrorsItemMetaProviderName.mjs";
|
|
27
30
|
export * from "./ConflictErrorBodyErrorsItemSource.mjs";
|
|
@@ -29,6 +32,7 @@ export * from "./ForbiddenErrorBody.mjs";
|
|
|
29
32
|
export * from "./ForbiddenErrorBodyErrorsItem.mjs";
|
|
30
33
|
export * from "./ForbiddenErrorBodyErrorsItemMeta.mjs";
|
|
31
34
|
export * from "./ForbiddenErrorBodyErrorsItemMetaConnectionStatus.mjs";
|
|
35
|
+
export * from "./ForbiddenErrorBodyErrorsItemMetaLimitScope.mjs";
|
|
32
36
|
export * from "./ForbiddenErrorBodyErrorsItemMetaProvider.mjs";
|
|
33
37
|
export * from "./ForbiddenErrorBodyErrorsItemMetaProviderName.mjs";
|
|
34
38
|
export * from "./ForbiddenErrorBodyErrorsItemSource.mjs";
|
|
@@ -36,6 +40,7 @@ export * from "./InternalServerErrorBody.mjs";
|
|
|
36
40
|
export * from "./InternalServerErrorBodyErrorsItem.mjs";
|
|
37
41
|
export * from "./InternalServerErrorBodyErrorsItemMeta.mjs";
|
|
38
42
|
export * from "./InternalServerErrorBodyErrorsItemMetaConnectionStatus.mjs";
|
|
43
|
+
export * from "./InternalServerErrorBodyErrorsItemMetaLimitScope.mjs";
|
|
39
44
|
export * from "./InternalServerErrorBodyErrorsItemMetaProvider.mjs";
|
|
40
45
|
export * from "./InternalServerErrorBodyErrorsItemMetaProviderName.mjs";
|
|
41
46
|
export * from "./InternalServerErrorBodyErrorsItemSource.mjs";
|
|
@@ -45,6 +50,7 @@ export * from "./NotFoundErrorBody.mjs";
|
|
|
45
50
|
export * from "./NotFoundErrorBodyErrorsItem.mjs";
|
|
46
51
|
export * from "./NotFoundErrorBodyErrorsItemMeta.mjs";
|
|
47
52
|
export * from "./NotFoundErrorBodyErrorsItemMetaConnectionStatus.mjs";
|
|
53
|
+
export * from "./NotFoundErrorBodyErrorsItemMetaLimitScope.mjs";
|
|
48
54
|
export * from "./NotFoundErrorBodyErrorsItemMetaProvider.mjs";
|
|
49
55
|
export * from "./NotFoundErrorBodyErrorsItemMetaProviderName.mjs";
|
|
50
56
|
export * from "./NotFoundErrorBodyErrorsItemSource.mjs";
|
|
@@ -52,6 +58,7 @@ export * from "./NotImplementedErrorBody.mjs";
|
|
|
52
58
|
export * from "./NotImplementedErrorBodyErrorsItem.mjs";
|
|
53
59
|
export * from "./NotImplementedErrorBodyErrorsItemMeta.mjs";
|
|
54
60
|
export * from "./NotImplementedErrorBodyErrorsItemMetaConnectionStatus.mjs";
|
|
61
|
+
export * from "./NotImplementedErrorBodyErrorsItemMetaLimitScope.mjs";
|
|
55
62
|
export * from "./NotImplementedErrorBodyErrorsItemMetaProvider.mjs";
|
|
56
63
|
export * from "./NotImplementedErrorBodyErrorsItemMetaProviderName.mjs";
|
|
57
64
|
export * from "./NotImplementedErrorBodyErrorsItemSource.mjs";
|
|
@@ -65,6 +72,7 @@ export * from "./PreconditionErrorBody.mjs";
|
|
|
65
72
|
export * from "./PreconditionErrorBodyErrorsItem.mjs";
|
|
66
73
|
export * from "./PreconditionErrorBodyErrorsItemMeta.mjs";
|
|
67
74
|
export * from "./PreconditionErrorBodyErrorsItemMetaConnectionStatus.mjs";
|
|
75
|
+
export * from "./PreconditionErrorBodyErrorsItemMetaLimitScope.mjs";
|
|
68
76
|
export * from "./PreconditionErrorBodyErrorsItemMetaProvider.mjs";
|
|
69
77
|
export * from "./PreconditionErrorBodyErrorsItemMetaProviderName.mjs";
|
|
70
78
|
export * from "./PreconditionErrorBodyErrorsItemSource.mjs";
|
|
@@ -78,6 +86,7 @@ export * from "./ServiceUnavailableErrorBody.mjs";
|
|
|
78
86
|
export * from "./ServiceUnavailableErrorBodyErrorsItem.mjs";
|
|
79
87
|
export * from "./ServiceUnavailableErrorBodyErrorsItemMeta.mjs";
|
|
80
88
|
export * from "./ServiceUnavailableErrorBodyErrorsItemMetaConnectionStatus.mjs";
|
|
89
|
+
export * from "./ServiceUnavailableErrorBodyErrorsItemMetaLimitScope.mjs";
|
|
81
90
|
export * from "./ServiceUnavailableErrorBodyErrorsItemMetaProvider.mjs";
|
|
82
91
|
export * from "./ServiceUnavailableErrorBodyErrorsItemMetaProviderName.mjs";
|
|
83
92
|
export * from "./ServiceUnavailableErrorBodyErrorsItemSource.mjs";
|
|
@@ -85,6 +94,7 @@ export * from "./TooManyRequestsErrorBody.mjs";
|
|
|
85
94
|
export * from "./TooManyRequestsErrorBodyErrorsItem.mjs";
|
|
86
95
|
export * from "./TooManyRequestsErrorBodyErrorsItemMeta.mjs";
|
|
87
96
|
export * from "./TooManyRequestsErrorBodyErrorsItemMetaConnectionStatus.mjs";
|
|
97
|
+
export * from "./TooManyRequestsErrorBodyErrorsItemMetaLimitScope.mjs";
|
|
88
98
|
export * from "./TooManyRequestsErrorBodyErrorsItemMetaProvider.mjs";
|
|
89
99
|
export * from "./TooManyRequestsErrorBodyErrorsItemMetaProviderName.mjs";
|
|
90
100
|
export * from "./TooManyRequestsErrorBodyErrorsItemSource.mjs";
|
|
@@ -93,6 +103,7 @@ export * from "./UnauthorizedErrorBody.mjs";
|
|
|
93
103
|
export * from "./UnauthorizedErrorBodyErrorsItem.mjs";
|
|
94
104
|
export * from "./UnauthorizedErrorBodyErrorsItemMeta.mjs";
|
|
95
105
|
export * from "./UnauthorizedErrorBodyErrorsItemMetaConnectionStatus.mjs";
|
|
106
|
+
export * from "./UnauthorizedErrorBodyErrorsItemMetaLimitScope.mjs";
|
|
96
107
|
export * from "./UnauthorizedErrorBodyErrorsItemMetaProvider.mjs";
|
|
97
108
|
export * from "./UnauthorizedErrorBodyErrorsItemMetaProviderName.mjs";
|
|
98
109
|
export * from "./UnauthorizedErrorBodyErrorsItemSource.mjs";
|
|
@@ -100,6 +111,7 @@ export * from "./UnprocessableEntityErrorBody.mjs";
|
|
|
100
111
|
export * from "./UnprocessableEntityErrorBodyErrorsItem.mjs";
|
|
101
112
|
export * from "./UnprocessableEntityErrorBodyErrorsItemMeta.mjs";
|
|
102
113
|
export * from "./UnprocessableEntityErrorBodyErrorsItemMetaConnectionStatus.mjs";
|
|
114
|
+
export * from "./UnprocessableEntityErrorBodyErrorsItemMetaLimitScope.mjs";
|
|
103
115
|
export * from "./UnprocessableEntityErrorBodyErrorsItemMetaProvider.mjs";
|
|
104
116
|
export * from "./UnprocessableEntityErrorBodyErrorsItemMetaProviderName.mjs";
|
|
105
117
|
export * from "./UnprocessableEntityErrorBodyErrorsItemSource.mjs";
|
|
@@ -2,6 +2,7 @@ export * from "./BadGatewayErrorBody.mjs";
|
|
|
2
2
|
export * from "./BadGatewayErrorBodyErrorsItem.mjs";
|
|
3
3
|
export * from "./BadGatewayErrorBodyErrorsItemMeta.mjs";
|
|
4
4
|
export * from "./BadGatewayErrorBodyErrorsItemMetaConnectionStatus.mjs";
|
|
5
|
+
export * from "./BadGatewayErrorBodyErrorsItemMetaLimitScope.mjs";
|
|
5
6
|
export * from "./BadGatewayErrorBodyErrorsItemMetaProvider.mjs";
|
|
6
7
|
export * from "./BadGatewayErrorBodyErrorsItemMetaProviderName.mjs";
|
|
7
8
|
export * from "./BadGatewayErrorBodyErrorsItemSource.mjs";
|
|
@@ -9,6 +10,7 @@ export * from "./BadRequestErrorBody.mjs";
|
|
|
9
10
|
export * from "./BadRequestErrorBodyErrorsItem.mjs";
|
|
10
11
|
export * from "./BadRequestErrorBodyErrorsItemMeta.mjs";
|
|
11
12
|
export * from "./BadRequestErrorBodyErrorsItemMetaConnectionStatus.mjs";
|
|
13
|
+
export * from "./BadRequestErrorBodyErrorsItemMetaLimitScope.mjs";
|
|
12
14
|
export * from "./BadRequestErrorBodyErrorsItemMetaProvider.mjs";
|
|
13
15
|
export * from "./BadRequestErrorBodyErrorsItemMetaProviderName.mjs";
|
|
14
16
|
export * from "./BadRequestErrorBodyErrorsItemSource.mjs";
|
|
@@ -22,6 +24,7 @@ export * from "./ConflictErrorBody.mjs";
|
|
|
22
24
|
export * from "./ConflictErrorBodyErrorsItem.mjs";
|
|
23
25
|
export * from "./ConflictErrorBodyErrorsItemMeta.mjs";
|
|
24
26
|
export * from "./ConflictErrorBodyErrorsItemMetaConnectionStatus.mjs";
|
|
27
|
+
export * from "./ConflictErrorBodyErrorsItemMetaLimitScope.mjs";
|
|
25
28
|
export * from "./ConflictErrorBodyErrorsItemMetaProvider.mjs";
|
|
26
29
|
export * from "./ConflictErrorBodyErrorsItemMetaProviderName.mjs";
|
|
27
30
|
export * from "./ConflictErrorBodyErrorsItemSource.mjs";
|
|
@@ -29,6 +32,7 @@ export * from "./ForbiddenErrorBody.mjs";
|
|
|
29
32
|
export * from "./ForbiddenErrorBodyErrorsItem.mjs";
|
|
30
33
|
export * from "./ForbiddenErrorBodyErrorsItemMeta.mjs";
|
|
31
34
|
export * from "./ForbiddenErrorBodyErrorsItemMetaConnectionStatus.mjs";
|
|
35
|
+
export * from "./ForbiddenErrorBodyErrorsItemMetaLimitScope.mjs";
|
|
32
36
|
export * from "./ForbiddenErrorBodyErrorsItemMetaProvider.mjs";
|
|
33
37
|
export * from "./ForbiddenErrorBodyErrorsItemMetaProviderName.mjs";
|
|
34
38
|
export * from "./ForbiddenErrorBodyErrorsItemSource.mjs";
|
|
@@ -36,6 +40,7 @@ export * from "./InternalServerErrorBody.mjs";
|
|
|
36
40
|
export * from "./InternalServerErrorBodyErrorsItem.mjs";
|
|
37
41
|
export * from "./InternalServerErrorBodyErrorsItemMeta.mjs";
|
|
38
42
|
export * from "./InternalServerErrorBodyErrorsItemMetaConnectionStatus.mjs";
|
|
43
|
+
export * from "./InternalServerErrorBodyErrorsItemMetaLimitScope.mjs";
|
|
39
44
|
export * from "./InternalServerErrorBodyErrorsItemMetaProvider.mjs";
|
|
40
45
|
export * from "./InternalServerErrorBodyErrorsItemMetaProviderName.mjs";
|
|
41
46
|
export * from "./InternalServerErrorBodyErrorsItemSource.mjs";
|
|
@@ -45,6 +50,7 @@ export * from "./NotFoundErrorBody.mjs";
|
|
|
45
50
|
export * from "./NotFoundErrorBodyErrorsItem.mjs";
|
|
46
51
|
export * from "./NotFoundErrorBodyErrorsItemMeta.mjs";
|
|
47
52
|
export * from "./NotFoundErrorBodyErrorsItemMetaConnectionStatus.mjs";
|
|
53
|
+
export * from "./NotFoundErrorBodyErrorsItemMetaLimitScope.mjs";
|
|
48
54
|
export * from "./NotFoundErrorBodyErrorsItemMetaProvider.mjs";
|
|
49
55
|
export * from "./NotFoundErrorBodyErrorsItemMetaProviderName.mjs";
|
|
50
56
|
export * from "./NotFoundErrorBodyErrorsItemSource.mjs";
|
|
@@ -52,6 +58,7 @@ export * from "./NotImplementedErrorBody.mjs";
|
|
|
52
58
|
export * from "./NotImplementedErrorBodyErrorsItem.mjs";
|
|
53
59
|
export * from "./NotImplementedErrorBodyErrorsItemMeta.mjs";
|
|
54
60
|
export * from "./NotImplementedErrorBodyErrorsItemMetaConnectionStatus.mjs";
|
|
61
|
+
export * from "./NotImplementedErrorBodyErrorsItemMetaLimitScope.mjs";
|
|
55
62
|
export * from "./NotImplementedErrorBodyErrorsItemMetaProvider.mjs";
|
|
56
63
|
export * from "./NotImplementedErrorBodyErrorsItemMetaProviderName.mjs";
|
|
57
64
|
export * from "./NotImplementedErrorBodyErrorsItemSource.mjs";
|
|
@@ -65,6 +72,7 @@ export * from "./PreconditionErrorBody.mjs";
|
|
|
65
72
|
export * from "./PreconditionErrorBodyErrorsItem.mjs";
|
|
66
73
|
export * from "./PreconditionErrorBodyErrorsItemMeta.mjs";
|
|
67
74
|
export * from "./PreconditionErrorBodyErrorsItemMetaConnectionStatus.mjs";
|
|
75
|
+
export * from "./PreconditionErrorBodyErrorsItemMetaLimitScope.mjs";
|
|
68
76
|
export * from "./PreconditionErrorBodyErrorsItemMetaProvider.mjs";
|
|
69
77
|
export * from "./PreconditionErrorBodyErrorsItemMetaProviderName.mjs";
|
|
70
78
|
export * from "./PreconditionErrorBodyErrorsItemSource.mjs";
|
|
@@ -78,6 +86,7 @@ export * from "./ServiceUnavailableErrorBody.mjs";
|
|
|
78
86
|
export * from "./ServiceUnavailableErrorBodyErrorsItem.mjs";
|
|
79
87
|
export * from "./ServiceUnavailableErrorBodyErrorsItemMeta.mjs";
|
|
80
88
|
export * from "./ServiceUnavailableErrorBodyErrorsItemMetaConnectionStatus.mjs";
|
|
89
|
+
export * from "./ServiceUnavailableErrorBodyErrorsItemMetaLimitScope.mjs";
|
|
81
90
|
export * from "./ServiceUnavailableErrorBodyErrorsItemMetaProvider.mjs";
|
|
82
91
|
export * from "./ServiceUnavailableErrorBodyErrorsItemMetaProviderName.mjs";
|
|
83
92
|
export * from "./ServiceUnavailableErrorBodyErrorsItemSource.mjs";
|
|
@@ -85,6 +94,7 @@ export * from "./TooManyRequestsErrorBody.mjs";
|
|
|
85
94
|
export * from "./TooManyRequestsErrorBodyErrorsItem.mjs";
|
|
86
95
|
export * from "./TooManyRequestsErrorBodyErrorsItemMeta.mjs";
|
|
87
96
|
export * from "./TooManyRequestsErrorBodyErrorsItemMetaConnectionStatus.mjs";
|
|
97
|
+
export * from "./TooManyRequestsErrorBodyErrorsItemMetaLimitScope.mjs";
|
|
88
98
|
export * from "./TooManyRequestsErrorBodyErrorsItemMetaProvider.mjs";
|
|
89
99
|
export * from "./TooManyRequestsErrorBodyErrorsItemMetaProviderName.mjs";
|
|
90
100
|
export * from "./TooManyRequestsErrorBodyErrorsItemSource.mjs";
|
|
@@ -93,6 +103,7 @@ export * from "./UnauthorizedErrorBody.mjs";
|
|
|
93
103
|
export * from "./UnauthorizedErrorBodyErrorsItem.mjs";
|
|
94
104
|
export * from "./UnauthorizedErrorBodyErrorsItemMeta.mjs";
|
|
95
105
|
export * from "./UnauthorizedErrorBodyErrorsItemMetaConnectionStatus.mjs";
|
|
106
|
+
export * from "./UnauthorizedErrorBodyErrorsItemMetaLimitScope.mjs";
|
|
96
107
|
export * from "./UnauthorizedErrorBodyErrorsItemMetaProvider.mjs";
|
|
97
108
|
export * from "./UnauthorizedErrorBodyErrorsItemMetaProviderName.mjs";
|
|
98
109
|
export * from "./UnauthorizedErrorBodyErrorsItemSource.mjs";
|
|
@@ -100,6 +111,7 @@ export * from "./UnprocessableEntityErrorBody.mjs";
|
|
|
100
111
|
export * from "./UnprocessableEntityErrorBodyErrorsItem.mjs";
|
|
101
112
|
export * from "./UnprocessableEntityErrorBodyErrorsItemMeta.mjs";
|
|
102
113
|
export * from "./UnprocessableEntityErrorBodyErrorsItemMetaConnectionStatus.mjs";
|
|
114
|
+
export * from "./UnprocessableEntityErrorBodyErrorsItemMetaLimitScope.mjs";
|
|
103
115
|
export * from "./UnprocessableEntityErrorBodyErrorsItemMetaProvider.mjs";
|
|
104
116
|
export * from "./UnprocessableEntityErrorBodyErrorsItemMetaProviderName.mjs";
|
|
105
117
|
export * from "./UnprocessableEntityErrorBodyErrorsItemSource.mjs";
|
|
@@ -18,6 +18,7 @@ import { getResponseBody } from "./getResponseBody.mjs";
|
|
|
18
18
|
import { Headers } from "./Headers.mjs";
|
|
19
19
|
import { makeRequest } from "./makeRequest.mjs";
|
|
20
20
|
import { abortRawResponse, toRawResponse, unknownRawResponse } from "./RawResponse.mjs";
|
|
21
|
+
import { redactUrl, SENSITIVE_QUERY_PARAMS } from "./redactUrl.mjs";
|
|
21
22
|
import { requestWithRetries } from "./requestWithRetries.mjs";
|
|
22
23
|
const SENSITIVE_HEADERS = new Set([
|
|
23
24
|
"authorization",
|
|
@@ -49,26 +50,6 @@ function redactHeaders(headers) {
|
|
|
49
50
|
}
|
|
50
51
|
return filtered;
|
|
51
52
|
}
|
|
52
|
-
const SENSITIVE_QUERY_PARAMS = new Set([
|
|
53
|
-
"api_key",
|
|
54
|
-
"api-key",
|
|
55
|
-
"apikey",
|
|
56
|
-
"token",
|
|
57
|
-
"access_token",
|
|
58
|
-
"access-token",
|
|
59
|
-
"auth_token",
|
|
60
|
-
"auth-token",
|
|
61
|
-
"password",
|
|
62
|
-
"passwd",
|
|
63
|
-
"secret",
|
|
64
|
-
"api_secret",
|
|
65
|
-
"api-secret",
|
|
66
|
-
"apisecret",
|
|
67
|
-
"key",
|
|
68
|
-
"session",
|
|
69
|
-
"session_id",
|
|
70
|
-
"session-id",
|
|
71
|
-
]);
|
|
72
53
|
function redactQueryParameters(queryParameters) {
|
|
73
54
|
if (queryParameters == null) {
|
|
74
55
|
return undefined;
|
|
@@ -79,70 +60,6 @@ function redactQueryParameters(queryParameters) {
|
|
|
79
60
|
}
|
|
80
61
|
return redacted;
|
|
81
62
|
}
|
|
82
|
-
function redactUrl(url) {
|
|
83
|
-
const protocolIndex = url.indexOf("://");
|
|
84
|
-
if (protocolIndex === -1)
|
|
85
|
-
return url;
|
|
86
|
-
const afterProtocol = protocolIndex + 3;
|
|
87
|
-
// Find the first delimiter that marks the end of the authority section
|
|
88
|
-
const pathStart = url.indexOf("/", afterProtocol);
|
|
89
|
-
let queryStart = url.indexOf("?", afterProtocol);
|
|
90
|
-
let fragmentStart = url.indexOf("#", afterProtocol);
|
|
91
|
-
const firstDelimiter = Math.min(pathStart === -1 ? url.length : pathStart, queryStart === -1 ? url.length : queryStart, fragmentStart === -1 ? url.length : fragmentStart);
|
|
92
|
-
// Find the LAST @ before the delimiter (handles multiple @ in credentials)
|
|
93
|
-
let atIndex = -1;
|
|
94
|
-
for (let i = afterProtocol; i < firstDelimiter; i++) {
|
|
95
|
-
if (url[i] === "@") {
|
|
96
|
-
atIndex = i;
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
if (atIndex !== -1) {
|
|
100
|
-
url = `${url.slice(0, afterProtocol)}[REDACTED]@${url.slice(atIndex + 1)}`;
|
|
101
|
-
}
|
|
102
|
-
// Recalculate queryStart since url might have changed
|
|
103
|
-
queryStart = url.indexOf("?");
|
|
104
|
-
if (queryStart === -1)
|
|
105
|
-
return url;
|
|
106
|
-
fragmentStart = url.indexOf("#", queryStart);
|
|
107
|
-
const queryEnd = fragmentStart !== -1 ? fragmentStart : url.length;
|
|
108
|
-
const queryString = url.slice(queryStart + 1, queryEnd);
|
|
109
|
-
if (queryString.length === 0)
|
|
110
|
-
return url;
|
|
111
|
-
// FAST PATH: Quick check if any sensitive keywords present
|
|
112
|
-
// Using indexOf is faster than regex for simple substring matching
|
|
113
|
-
const lower = queryString.toLowerCase();
|
|
114
|
-
const hasSensitive = lower.includes("token") ||
|
|
115
|
-
lower.includes("key") ||
|
|
116
|
-
lower.includes("password") ||
|
|
117
|
-
lower.includes("passwd") ||
|
|
118
|
-
lower.includes("secret") ||
|
|
119
|
-
lower.includes("session") ||
|
|
120
|
-
lower.includes("auth");
|
|
121
|
-
if (!hasSensitive) {
|
|
122
|
-
return url;
|
|
123
|
-
}
|
|
124
|
-
// SLOW PATH: Parse and redact
|
|
125
|
-
const redactedParams = [];
|
|
126
|
-
const params = queryString.split("&");
|
|
127
|
-
for (const param of params) {
|
|
128
|
-
const equalIndex = param.indexOf("=");
|
|
129
|
-
if (equalIndex === -1) {
|
|
130
|
-
redactedParams.push(param);
|
|
131
|
-
continue;
|
|
132
|
-
}
|
|
133
|
-
const key = param.slice(0, equalIndex);
|
|
134
|
-
let shouldRedact = SENSITIVE_QUERY_PARAMS.has(key.toLowerCase());
|
|
135
|
-
if (!shouldRedact && key.includes("%")) {
|
|
136
|
-
try {
|
|
137
|
-
const decodedKey = decodeURIComponent(key);
|
|
138
|
-
shouldRedact = SENSITIVE_QUERY_PARAMS.has(decodedKey.toLowerCase());
|
|
139
|
-
}
|
|
140
|
-
catch (_a) { }
|
|
141
|
-
}
|
|
142
|
-
redactedParams.push(shouldRedact ? `${key}=[REDACTED]` : param);
|
|
143
|
-
}
|
|
144
|
-
return url.slice(0, queryStart + 1) + redactedParams.join("&") + url.slice(queryEnd);
|
|
145
|
-
}
|
|
146
63
|
function getHeaders(args) {
|
|
147
64
|
return __awaiter(this, void 0, void 0, function* () {
|
|
148
65
|
var _a;
|
|
@@ -12,6 +12,7 @@ import { join } from "../url/join.mjs";
|
|
|
12
12
|
import { EndpointSupplier } from "./EndpointSupplier.mjs";
|
|
13
13
|
import { getFetchFn } from "./getFetchFn.mjs";
|
|
14
14
|
import { makeRequest } from "./makeRequest.mjs";
|
|
15
|
+
import { redactUrl } from "./redactUrl.mjs";
|
|
15
16
|
import { requestWithRetries } from "./requestWithRetries.mjs";
|
|
16
17
|
import { Supplier } from "./Supplier.mjs";
|
|
17
18
|
/**
|
|
@@ -76,8 +77,10 @@ export function makePassthroughRequest(input, init, clientOptions, requestOption
|
|
|
76
77
|
}
|
|
77
78
|
}
|
|
78
79
|
}
|
|
79
|
-
// Apply auth headers
|
|
80
|
-
|
|
80
|
+
// Apply auth headers, but only when the resolved URL targets the configured base URL.
|
|
81
|
+
// This prevents the SDK's credentials from leaking to an unrelated host when a caller
|
|
82
|
+
// passes an absolute cross-origin URL into the passthrough fetch escape hatch.
|
|
83
|
+
if (clientOptions.getAuthHeaders != null && targetsBaseUrl(fullUrl, baseUrl)) {
|
|
81
84
|
const authHeaders = yield clientOptions.getAuthHeaders();
|
|
82
85
|
for (const [key, value] of Object.entries(authHeaders)) {
|
|
83
86
|
mergedHeaders[key.toLowerCase()] = value;
|
|
@@ -112,7 +115,7 @@ export function makePassthroughRequest(input, init, clientOptions, requestOption
|
|
|
112
115
|
if (logger.isDebug()) {
|
|
113
116
|
logger.debug("Making passthrough HTTP request", {
|
|
114
117
|
method,
|
|
115
|
-
url: fullUrl,
|
|
118
|
+
url: redactUrl(fullUrl),
|
|
116
119
|
hasBody: body != null,
|
|
117
120
|
});
|
|
118
121
|
}
|
|
@@ -123,10 +126,29 @@ export function makePassthroughRequest(input, init, clientOptions, requestOption
|
|
|
123
126
|
if (logger.isDebug()) {
|
|
124
127
|
logger.debug("Passthrough HTTP request completed", {
|
|
125
128
|
method,
|
|
126
|
-
url: fullUrl,
|
|
129
|
+
url: redactUrl(fullUrl),
|
|
127
130
|
statusCode: response.status,
|
|
128
131
|
});
|
|
129
132
|
}
|
|
130
133
|
return response;
|
|
131
134
|
});
|
|
132
135
|
}
|
|
136
|
+
/**
|
|
137
|
+
* Returns true when the resolved request URL points at the same origin as the
|
|
138
|
+
* configured base URL. Relative paths are always joined onto the base URL, so
|
|
139
|
+
* they resolve to the base origin and return true. Absolute URLs only match when
|
|
140
|
+
* their origin equals the base origin. When there is no base URL to compare
|
|
141
|
+
* against, or either value is not a parseable absolute URL, this returns false so
|
|
142
|
+
* auth headers are not attached.
|
|
143
|
+
*/
|
|
144
|
+
function targetsBaseUrl(fullUrl, baseUrl) {
|
|
145
|
+
if (baseUrl == null) {
|
|
146
|
+
return false;
|
|
147
|
+
}
|
|
148
|
+
try {
|
|
149
|
+
return new URL(fullUrl).origin === new URL(baseUrl).origin;
|
|
150
|
+
}
|
|
151
|
+
catch (_a) {
|
|
152
|
+
return false;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
export const SENSITIVE_QUERY_PARAMS = new Set([
|
|
2
|
+
"api_key",
|
|
3
|
+
"api-key",
|
|
4
|
+
"apikey",
|
|
5
|
+
"token",
|
|
6
|
+
"access_token",
|
|
7
|
+
"access-token",
|
|
8
|
+
"auth_token",
|
|
9
|
+
"auth-token",
|
|
10
|
+
"password",
|
|
11
|
+
"passwd",
|
|
12
|
+
"secret",
|
|
13
|
+
"api_secret",
|
|
14
|
+
"api-secret",
|
|
15
|
+
"apisecret",
|
|
16
|
+
"key",
|
|
17
|
+
"session",
|
|
18
|
+
"session_id",
|
|
19
|
+
"session-id",
|
|
20
|
+
]);
|
|
21
|
+
export function redactUrl(url) {
|
|
22
|
+
const protocolIndex = url.indexOf("://");
|
|
23
|
+
if (protocolIndex === -1)
|
|
24
|
+
return url;
|
|
25
|
+
const afterProtocol = protocolIndex + 3;
|
|
26
|
+
// Find the first delimiter that marks the end of the authority section
|
|
27
|
+
const pathStart = url.indexOf("/", afterProtocol);
|
|
28
|
+
let queryStart = url.indexOf("?", afterProtocol);
|
|
29
|
+
let fragmentStart = url.indexOf("#", afterProtocol);
|
|
30
|
+
const firstDelimiter = Math.min(pathStart === -1 ? url.length : pathStart, queryStart === -1 ? url.length : queryStart, fragmentStart === -1 ? url.length : fragmentStart);
|
|
31
|
+
// Find the LAST @ before the delimiter (handles multiple @ in credentials)
|
|
32
|
+
let atIndex = -1;
|
|
33
|
+
for (let i = afterProtocol; i < firstDelimiter; i++) {
|
|
34
|
+
if (url[i] === "@") {
|
|
35
|
+
atIndex = i;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
if (atIndex !== -1) {
|
|
39
|
+
url = `${url.slice(0, afterProtocol)}[REDACTED]@${url.slice(atIndex + 1)}`;
|
|
40
|
+
}
|
|
41
|
+
// Recalculate queryStart since url might have changed
|
|
42
|
+
queryStart = url.indexOf("?");
|
|
43
|
+
if (queryStart === -1)
|
|
44
|
+
return url;
|
|
45
|
+
fragmentStart = url.indexOf("#", queryStart);
|
|
46
|
+
const queryEnd = fragmentStart !== -1 ? fragmentStart : url.length;
|
|
47
|
+
const queryString = url.slice(queryStart + 1, queryEnd);
|
|
48
|
+
if (queryString.length === 0)
|
|
49
|
+
return url;
|
|
50
|
+
// FAST PATH: Quick check if any sensitive keywords present
|
|
51
|
+
// Using indexOf is faster than regex for simple substring matching
|
|
52
|
+
const lower = queryString.toLowerCase();
|
|
53
|
+
const hasSensitive = lower.includes("token") ||
|
|
54
|
+
lower.includes("key") ||
|
|
55
|
+
lower.includes("password") ||
|
|
56
|
+
lower.includes("passwd") ||
|
|
57
|
+
lower.includes("secret") ||
|
|
58
|
+
lower.includes("session") ||
|
|
59
|
+
lower.includes("auth");
|
|
60
|
+
if (!hasSensitive) {
|
|
61
|
+
return url;
|
|
62
|
+
}
|
|
63
|
+
// SLOW PATH: Parse and redact
|
|
64
|
+
const redactedParams = [];
|
|
65
|
+
const params = queryString.split("&");
|
|
66
|
+
for (const param of params) {
|
|
67
|
+
const equalIndex = param.indexOf("=");
|
|
68
|
+
if (equalIndex === -1) {
|
|
69
|
+
redactedParams.push(param);
|
|
70
|
+
continue;
|
|
71
|
+
}
|
|
72
|
+
const key = param.slice(0, equalIndex);
|
|
73
|
+
let shouldRedact = SENSITIVE_QUERY_PARAMS.has(key.toLowerCase());
|
|
74
|
+
if (!shouldRedact && key.includes("%")) {
|
|
75
|
+
try {
|
|
76
|
+
const decodedKey = decodeURIComponent(key);
|
|
77
|
+
shouldRedact = SENSITIVE_QUERY_PARAMS.has(decodedKey.toLowerCase());
|
|
78
|
+
}
|
|
79
|
+
catch (_a) { }
|
|
80
|
+
}
|
|
81
|
+
redactedParams.push(shouldRedact ? `${key}=[REDACTED]` : param);
|
|
82
|
+
}
|
|
83
|
+
return url.slice(0, queryStart + 1) + redactedParams.join("&") + url.slice(queryEnd);
|
|
84
|
+
}
|
|
@@ -2,11 +2,13 @@ import type * as Natural from "../../api/index.mjs";
|
|
|
2
2
|
import * as core from "../../core/index.mjs";
|
|
3
3
|
import type * as serializers from "../index.mjs";
|
|
4
4
|
import { BadGatewayErrorBodyErrorsItemMetaConnectionStatus } from "./BadGatewayErrorBodyErrorsItemMetaConnectionStatus.mjs";
|
|
5
|
+
import { BadGatewayErrorBodyErrorsItemMetaLimitScope } from "./BadGatewayErrorBodyErrorsItemMetaLimitScope.mjs";
|
|
5
6
|
import { BadGatewayErrorBodyErrorsItemMetaProvider } from "./BadGatewayErrorBodyErrorsItemMetaProvider.mjs";
|
|
6
7
|
export declare const BadGatewayErrorBodyErrorsItemMeta: core.serialization.ObjectSchema<serializers.BadGatewayErrorBodyErrorsItemMeta.Raw, Natural.BadGatewayErrorBodyErrorsItemMeta>;
|
|
7
8
|
export declare namespace BadGatewayErrorBodyErrorsItemMeta {
|
|
8
9
|
interface Raw {
|
|
9
10
|
supportId: string;
|
|
11
|
+
limitScope?: BadGatewayErrorBodyErrorsItemMetaLimitScope.Raw | null;
|
|
10
12
|
connectionStatus?: BadGatewayErrorBodyErrorsItemMetaConnectionStatus.Raw | null;
|
|
11
13
|
provider?: BadGatewayErrorBodyErrorsItemMetaProvider.Raw | null;
|
|
12
14
|
}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
// This file was auto-generated by Fern from our API Definition.
|
|
2
2
|
import * as core from "../../core/index.mjs";
|
|
3
3
|
import { BadGatewayErrorBodyErrorsItemMetaConnectionStatus } from "./BadGatewayErrorBodyErrorsItemMetaConnectionStatus.mjs";
|
|
4
|
+
import { BadGatewayErrorBodyErrorsItemMetaLimitScope } from "./BadGatewayErrorBodyErrorsItemMetaLimitScope.mjs";
|
|
4
5
|
import { BadGatewayErrorBodyErrorsItemMetaProvider } from "./BadGatewayErrorBodyErrorsItemMetaProvider.mjs";
|
|
5
6
|
export const BadGatewayErrorBodyErrorsItemMeta = core.serialization.object({
|
|
6
7
|
supportId: core.serialization.string(),
|
|
8
|
+
limitScope: BadGatewayErrorBodyErrorsItemMetaLimitScope.optional(),
|
|
7
9
|
connectionStatus: BadGatewayErrorBodyErrorsItemMetaConnectionStatus.optional(),
|
|
8
10
|
provider: BadGatewayErrorBodyErrorsItemMetaProvider.optional(),
|
|
9
11
|
});
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type * as Natural from "../../api/index.mjs";
|
|
2
|
+
import * as core from "../../core/index.mjs";
|
|
3
|
+
import type * as serializers from "../index.mjs";
|
|
4
|
+
export declare const BadGatewayErrorBodyErrorsItemMetaLimitScope: core.serialization.Schema<serializers.BadGatewayErrorBodyErrorsItemMetaLimitScope.Raw, Natural.BadGatewayErrorBodyErrorsItemMetaLimitScope>;
|
|
5
|
+
export declare namespace BadGatewayErrorBodyErrorsItemMetaLimitScope {
|
|
6
|
+
type Raw = "merchant" | "program";
|
|
7
|
+
}
|
|
@@ -2,11 +2,13 @@ import type * as Natural from "../../api/index.mjs";
|
|
|
2
2
|
import * as core from "../../core/index.mjs";
|
|
3
3
|
import type * as serializers from "../index.mjs";
|
|
4
4
|
import { BadRequestErrorBodyErrorsItemMetaConnectionStatus } from "./BadRequestErrorBodyErrorsItemMetaConnectionStatus.mjs";
|
|
5
|
+
import { BadRequestErrorBodyErrorsItemMetaLimitScope } from "./BadRequestErrorBodyErrorsItemMetaLimitScope.mjs";
|
|
5
6
|
import { BadRequestErrorBodyErrorsItemMetaProvider } from "./BadRequestErrorBodyErrorsItemMetaProvider.mjs";
|
|
6
7
|
export declare const BadRequestErrorBodyErrorsItemMeta: core.serialization.ObjectSchema<serializers.BadRequestErrorBodyErrorsItemMeta.Raw, Natural.BadRequestErrorBodyErrorsItemMeta>;
|
|
7
8
|
export declare namespace BadRequestErrorBodyErrorsItemMeta {
|
|
8
9
|
interface Raw {
|
|
9
10
|
supportId: string;
|
|
11
|
+
limitScope?: BadRequestErrorBodyErrorsItemMetaLimitScope.Raw | null;
|
|
10
12
|
connectionStatus?: BadRequestErrorBodyErrorsItemMetaConnectionStatus.Raw | null;
|
|
11
13
|
provider?: BadRequestErrorBodyErrorsItemMetaProvider.Raw | null;
|
|
12
14
|
}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
// This file was auto-generated by Fern from our API Definition.
|
|
2
2
|
import * as core from "../../core/index.mjs";
|
|
3
3
|
import { BadRequestErrorBodyErrorsItemMetaConnectionStatus } from "./BadRequestErrorBodyErrorsItemMetaConnectionStatus.mjs";
|
|
4
|
+
import { BadRequestErrorBodyErrorsItemMetaLimitScope } from "./BadRequestErrorBodyErrorsItemMetaLimitScope.mjs";
|
|
4
5
|
import { BadRequestErrorBodyErrorsItemMetaProvider } from "./BadRequestErrorBodyErrorsItemMetaProvider.mjs";
|
|
5
6
|
export const BadRequestErrorBodyErrorsItemMeta = core.serialization.object({
|
|
6
7
|
supportId: core.serialization.string(),
|
|
8
|
+
limitScope: BadRequestErrorBodyErrorsItemMetaLimitScope.optional(),
|
|
7
9
|
connectionStatus: BadRequestErrorBodyErrorsItemMetaConnectionStatus.optional(),
|
|
8
10
|
provider: BadRequestErrorBodyErrorsItemMetaProvider.optional(),
|
|
9
11
|
});
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type * as Natural from "../../api/index.mjs";
|
|
2
|
+
import * as core from "../../core/index.mjs";
|
|
3
|
+
import type * as serializers from "../index.mjs";
|
|
4
|
+
export declare const BadRequestErrorBodyErrorsItemMetaLimitScope: core.serialization.Schema<serializers.BadRequestErrorBodyErrorsItemMetaLimitScope.Raw, Natural.BadRequestErrorBodyErrorsItemMetaLimitScope>;
|
|
5
|
+
export declare namespace BadRequestErrorBodyErrorsItemMetaLimitScope {
|
|
6
|
+
type Raw = "merchant" | "program";
|
|
7
|
+
}
|
|
@@ -2,11 +2,13 @@ import type * as Natural from "../../api/index.mjs";
|
|
|
2
2
|
import * as core from "../../core/index.mjs";
|
|
3
3
|
import type * as serializers from "../index.mjs";
|
|
4
4
|
import { ConflictErrorBodyErrorsItemMetaConnectionStatus } from "./ConflictErrorBodyErrorsItemMetaConnectionStatus.mjs";
|
|
5
|
+
import { ConflictErrorBodyErrorsItemMetaLimitScope } from "./ConflictErrorBodyErrorsItemMetaLimitScope.mjs";
|
|
5
6
|
import { ConflictErrorBodyErrorsItemMetaProvider } from "./ConflictErrorBodyErrorsItemMetaProvider.mjs";
|
|
6
7
|
export declare const ConflictErrorBodyErrorsItemMeta: core.serialization.ObjectSchema<serializers.ConflictErrorBodyErrorsItemMeta.Raw, Natural.ConflictErrorBodyErrorsItemMeta>;
|
|
7
8
|
export declare namespace ConflictErrorBodyErrorsItemMeta {
|
|
8
9
|
interface Raw {
|
|
9
10
|
supportId: string;
|
|
11
|
+
limitScope?: ConflictErrorBodyErrorsItemMetaLimitScope.Raw | null;
|
|
10
12
|
connectionStatus?: ConflictErrorBodyErrorsItemMetaConnectionStatus.Raw | null;
|
|
11
13
|
provider?: ConflictErrorBodyErrorsItemMetaProvider.Raw | null;
|
|
12
14
|
}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
// This file was auto-generated by Fern from our API Definition.
|
|
2
2
|
import * as core from "../../core/index.mjs";
|
|
3
3
|
import { ConflictErrorBodyErrorsItemMetaConnectionStatus } from "./ConflictErrorBodyErrorsItemMetaConnectionStatus.mjs";
|
|
4
|
+
import { ConflictErrorBodyErrorsItemMetaLimitScope } from "./ConflictErrorBodyErrorsItemMetaLimitScope.mjs";
|
|
4
5
|
import { ConflictErrorBodyErrorsItemMetaProvider } from "./ConflictErrorBodyErrorsItemMetaProvider.mjs";
|
|
5
6
|
export const ConflictErrorBodyErrorsItemMeta = core.serialization.object({
|
|
6
7
|
supportId: core.serialization.string(),
|
|
8
|
+
limitScope: ConflictErrorBodyErrorsItemMetaLimitScope.optional(),
|
|
7
9
|
connectionStatus: ConflictErrorBodyErrorsItemMetaConnectionStatus.optional(),
|
|
8
10
|
provider: ConflictErrorBodyErrorsItemMetaProvider.optional(),
|
|
9
11
|
});
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type * as Natural from "../../api/index.mjs";
|
|
2
|
+
import * as core from "../../core/index.mjs";
|
|
3
|
+
import type * as serializers from "../index.mjs";
|
|
4
|
+
export declare const ConflictErrorBodyErrorsItemMetaLimitScope: core.serialization.Schema<serializers.ConflictErrorBodyErrorsItemMetaLimitScope.Raw, Natural.ConflictErrorBodyErrorsItemMetaLimitScope>;
|
|
5
|
+
export declare namespace ConflictErrorBodyErrorsItemMetaLimitScope {
|
|
6
|
+
type Raw = "merchant" | "program";
|
|
7
|
+
}
|
|
@@ -2,11 +2,13 @@ import type * as Natural from "../../api/index.mjs";
|
|
|
2
2
|
import * as core from "../../core/index.mjs";
|
|
3
3
|
import type * as serializers from "../index.mjs";
|
|
4
4
|
import { ForbiddenErrorBodyErrorsItemMetaConnectionStatus } from "./ForbiddenErrorBodyErrorsItemMetaConnectionStatus.mjs";
|
|
5
|
+
import { ForbiddenErrorBodyErrorsItemMetaLimitScope } from "./ForbiddenErrorBodyErrorsItemMetaLimitScope.mjs";
|
|
5
6
|
import { ForbiddenErrorBodyErrorsItemMetaProvider } from "./ForbiddenErrorBodyErrorsItemMetaProvider.mjs";
|
|
6
7
|
export declare const ForbiddenErrorBodyErrorsItemMeta: core.serialization.ObjectSchema<serializers.ForbiddenErrorBodyErrorsItemMeta.Raw, Natural.ForbiddenErrorBodyErrorsItemMeta>;
|
|
7
8
|
export declare namespace ForbiddenErrorBodyErrorsItemMeta {
|
|
8
9
|
interface Raw {
|
|
9
10
|
supportId: string;
|
|
11
|
+
limitScope?: ForbiddenErrorBodyErrorsItemMetaLimitScope.Raw | null;
|
|
10
12
|
connectionStatus?: ForbiddenErrorBodyErrorsItemMetaConnectionStatus.Raw | null;
|
|
11
13
|
provider?: ForbiddenErrorBodyErrorsItemMetaProvider.Raw | null;
|
|
12
14
|
}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
// This file was auto-generated by Fern from our API Definition.
|
|
2
2
|
import * as core from "../../core/index.mjs";
|
|
3
3
|
import { ForbiddenErrorBodyErrorsItemMetaConnectionStatus } from "./ForbiddenErrorBodyErrorsItemMetaConnectionStatus.mjs";
|
|
4
|
+
import { ForbiddenErrorBodyErrorsItemMetaLimitScope } from "./ForbiddenErrorBodyErrorsItemMetaLimitScope.mjs";
|
|
4
5
|
import { ForbiddenErrorBodyErrorsItemMetaProvider } from "./ForbiddenErrorBodyErrorsItemMetaProvider.mjs";
|
|
5
6
|
export const ForbiddenErrorBodyErrorsItemMeta = core.serialization.object({
|
|
6
7
|
supportId: core.serialization.string(),
|
|
8
|
+
limitScope: ForbiddenErrorBodyErrorsItemMetaLimitScope.optional(),
|
|
7
9
|
connectionStatus: ForbiddenErrorBodyErrorsItemMetaConnectionStatus.optional(),
|
|
8
10
|
provider: ForbiddenErrorBodyErrorsItemMetaProvider.optional(),
|
|
9
11
|
});
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type * as Natural from "../../api/index.mjs";
|
|
2
|
+
import * as core from "../../core/index.mjs";
|
|
3
|
+
import type * as serializers from "../index.mjs";
|
|
4
|
+
export declare const ForbiddenErrorBodyErrorsItemMetaLimitScope: core.serialization.Schema<serializers.ForbiddenErrorBodyErrorsItemMetaLimitScope.Raw, Natural.ForbiddenErrorBodyErrorsItemMetaLimitScope>;
|
|
5
|
+
export declare namespace ForbiddenErrorBodyErrorsItemMetaLimitScope {
|
|
6
|
+
type Raw = "merchant" | "program";
|
|
7
|
+
}
|
|
@@ -2,11 +2,13 @@ import type * as Natural from "../../api/index.mjs";
|
|
|
2
2
|
import * as core from "../../core/index.mjs";
|
|
3
3
|
import type * as serializers from "../index.mjs";
|
|
4
4
|
import { InternalServerErrorBodyErrorsItemMetaConnectionStatus } from "./InternalServerErrorBodyErrorsItemMetaConnectionStatus.mjs";
|
|
5
|
+
import { InternalServerErrorBodyErrorsItemMetaLimitScope } from "./InternalServerErrorBodyErrorsItemMetaLimitScope.mjs";
|
|
5
6
|
import { InternalServerErrorBodyErrorsItemMetaProvider } from "./InternalServerErrorBodyErrorsItemMetaProvider.mjs";
|
|
6
7
|
export declare const InternalServerErrorBodyErrorsItemMeta: core.serialization.ObjectSchema<serializers.InternalServerErrorBodyErrorsItemMeta.Raw, Natural.InternalServerErrorBodyErrorsItemMeta>;
|
|
7
8
|
export declare namespace InternalServerErrorBodyErrorsItemMeta {
|
|
8
9
|
interface Raw {
|
|
9
10
|
supportId: string;
|
|
11
|
+
limitScope?: InternalServerErrorBodyErrorsItemMetaLimitScope.Raw | null;
|
|
10
12
|
connectionStatus?: InternalServerErrorBodyErrorsItemMetaConnectionStatus.Raw | null;
|
|
11
13
|
provider?: InternalServerErrorBodyErrorsItemMetaProvider.Raw | null;
|
|
12
14
|
}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
// This file was auto-generated by Fern from our API Definition.
|
|
2
2
|
import * as core from "../../core/index.mjs";
|
|
3
3
|
import { InternalServerErrorBodyErrorsItemMetaConnectionStatus } from "./InternalServerErrorBodyErrorsItemMetaConnectionStatus.mjs";
|
|
4
|
+
import { InternalServerErrorBodyErrorsItemMetaLimitScope } from "./InternalServerErrorBodyErrorsItemMetaLimitScope.mjs";
|
|
4
5
|
import { InternalServerErrorBodyErrorsItemMetaProvider } from "./InternalServerErrorBodyErrorsItemMetaProvider.mjs";
|
|
5
6
|
export const InternalServerErrorBodyErrorsItemMeta = core.serialization.object({
|
|
6
7
|
supportId: core.serialization.string(),
|
|
8
|
+
limitScope: InternalServerErrorBodyErrorsItemMetaLimitScope.optional(),
|
|
7
9
|
connectionStatus: InternalServerErrorBodyErrorsItemMetaConnectionStatus.optional(),
|
|
8
10
|
provider: InternalServerErrorBodyErrorsItemMetaProvider.optional(),
|
|
9
11
|
});
|