@fern-api/dynamic-ir-sdk 0.0.3603
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.d.ts +32 -0
- package/dist/cjs/BaseClient.js +50 -0
- package/dist/cjs/api/index.d.ts +1 -0
- package/dist/cjs/api/index.js +17 -0
- package/dist/cjs/api/resources/commons/index.d.ts +1 -0
- package/dist/cjs/api/resources/commons/index.js +17 -0
- package/dist/cjs/api/resources/commons/types/Name.d.ts +8 -0
- package/dist/cjs/api/resources/commons/types/Name.js +3 -0
- package/dist/cjs/api/resources/commons/types/SafeAndUnsafeString.d.ts +6 -0
- package/dist/cjs/api/resources/commons/types/SafeAndUnsafeString.js +3 -0
- package/dist/cjs/api/resources/commons/types/index.d.ts +2 -0
- package/dist/cjs/api/resources/commons/types/index.js +18 -0
- package/dist/cjs/api/resources/dynamic/index.d.ts +1 -0
- package/dist/cjs/api/resources/dynamic/index.js +17 -0
- package/dist/cjs/api/resources/dynamic/resources/auth/index.d.ts +1 -0
- package/dist/cjs/api/resources/dynamic/resources/auth/index.js +17 -0
- package/dist/cjs/api/resources/dynamic/resources/auth/types/Auth.d.ts +19 -0
- package/dist/cjs/api/resources/dynamic/resources/auth/types/Auth.js +3 -0
- package/dist/cjs/api/resources/dynamic/resources/auth/types/AuthValues.d.ts +19 -0
- package/dist/cjs/api/resources/dynamic/resources/auth/types/AuthValues.js +3 -0
- package/dist/cjs/api/resources/dynamic/resources/auth/types/BasicAuth.d.ts +5 -0
- package/dist/cjs/api/resources/dynamic/resources/auth/types/BasicAuth.js +3 -0
- package/dist/cjs/api/resources/dynamic/resources/auth/types/BasicAuthValues.d.ts +4 -0
- package/dist/cjs/api/resources/dynamic/resources/auth/types/BasicAuthValues.js +3 -0
- package/dist/cjs/api/resources/dynamic/resources/auth/types/BearerAuth.d.ts +4 -0
- package/dist/cjs/api/resources/dynamic/resources/auth/types/BearerAuth.js +3 -0
- package/dist/cjs/api/resources/dynamic/resources/auth/types/BearerAuthValues.d.ts +3 -0
- package/dist/cjs/api/resources/dynamic/resources/auth/types/BearerAuthValues.js +3 -0
- package/dist/cjs/api/resources/dynamic/resources/auth/types/HeaderAuth.d.ts +4 -0
- package/dist/cjs/api/resources/dynamic/resources/auth/types/HeaderAuth.js +3 -0
- package/dist/cjs/api/resources/dynamic/resources/auth/types/HeaderAuthValues.d.ts +3 -0
- package/dist/cjs/api/resources/dynamic/resources/auth/types/HeaderAuthValues.js +3 -0
- package/dist/cjs/api/resources/dynamic/resources/auth/types/InferredAuth.d.ts +9 -0
- package/dist/cjs/api/resources/dynamic/resources/auth/types/InferredAuth.js +3 -0
- package/dist/cjs/api/resources/dynamic/resources/auth/types/InferredAuthValues.d.ts +8 -0
- package/dist/cjs/api/resources/dynamic/resources/auth/types/InferredAuthValues.js +3 -0
- package/dist/cjs/api/resources/dynamic/resources/auth/types/OAuth.d.ts +5 -0
- package/dist/cjs/api/resources/dynamic/resources/auth/types/OAuth.js +3 -0
- package/dist/cjs/api/resources/dynamic/resources/auth/types/OAuthValues.d.ts +4 -0
- package/dist/cjs/api/resources/dynamic/resources/auth/types/OAuthValues.js +3 -0
- package/dist/cjs/api/resources/dynamic/resources/auth/types/index.d.ts +12 -0
- package/dist/cjs/api/resources/dynamic/resources/auth/types/index.js +28 -0
- package/dist/cjs/api/resources/dynamic/resources/commons/index.d.ts +1 -0
- package/dist/cjs/api/resources/dynamic/resources/commons/index.js +17 -0
- package/dist/cjs/api/resources/dynamic/resources/commons/types/EndpointId.d.ts +1 -0
- package/dist/cjs/api/resources/dynamic/resources/commons/types/EndpointId.js +3 -0
- package/dist/cjs/api/resources/dynamic/resources/commons/types/FernFilepath.d.ts +6 -0
- package/dist/cjs/api/resources/dynamic/resources/commons/types/FernFilepath.js +3 -0
- package/dist/cjs/api/resources/dynamic/resources/commons/types/Name.d.ts +8 -0
- package/dist/cjs/api/resources/dynamic/resources/commons/types/Name.js +3 -0
- package/dist/cjs/api/resources/dynamic/resources/commons/types/NameAndWireValue.d.ts +5 -0
- package/dist/cjs/api/resources/dynamic/resources/commons/types/NameAndWireValue.js +3 -0
- package/dist/cjs/api/resources/dynamic/resources/commons/types/SafeAndUnsafeString.d.ts +6 -0
- package/dist/cjs/api/resources/dynamic/resources/commons/types/SafeAndUnsafeString.js +3 -0
- package/dist/cjs/api/resources/dynamic/resources/commons/types/TypeId.d.ts +1 -0
- package/dist/cjs/api/resources/dynamic/resources/commons/types/TypeId.js +3 -0
- package/dist/cjs/api/resources/dynamic/resources/commons/types/WithDocs.d.ts +3 -0
- package/dist/cjs/api/resources/dynamic/resources/commons/types/WithDocs.js +3 -0
- package/dist/cjs/api/resources/dynamic/resources/commons/types/index.d.ts +7 -0
- package/dist/cjs/api/resources/dynamic/resources/commons/types/index.js +23 -0
- package/dist/cjs/api/resources/dynamic/resources/declaration/index.d.ts +1 -0
- package/dist/cjs/api/resources/dynamic/resources/declaration/index.js +17 -0
- package/dist/cjs/api/resources/dynamic/resources/declaration/types/Declaration.d.ts +5 -0
- package/dist/cjs/api/resources/dynamic/resources/declaration/types/Declaration.js +3 -0
- package/dist/cjs/api/resources/dynamic/resources/declaration/types/index.d.ts +1 -0
- package/dist/cjs/api/resources/dynamic/resources/declaration/types/index.js +17 -0
- package/dist/cjs/api/resources/dynamic/resources/endpoints/index.d.ts +1 -0
- package/dist/cjs/api/resources/dynamic/resources/endpoints/index.js +17 -0
- package/dist/cjs/api/resources/dynamic/resources/endpoints/types/BodyRequest.d.ts +5 -0
- package/dist/cjs/api/resources/dynamic/resources/endpoints/types/BodyRequest.js +3 -0
- package/dist/cjs/api/resources/dynamic/resources/endpoints/types/Endpoint.d.ts +9 -0
- package/dist/cjs/api/resources/dynamic/resources/endpoints/types/Endpoint.js +3 -0
- package/dist/cjs/api/resources/dynamic/resources/endpoints/types/EndpointExample.d.ts +7 -0
- package/dist/cjs/api/resources/dynamic/resources/endpoints/types/EndpointExample.js +3 -0
- package/dist/cjs/api/resources/dynamic/resources/endpoints/types/EndpointLocation.d.ts +8 -0
- package/dist/cjs/api/resources/dynamic/resources/endpoints/types/EndpointLocation.js +3 -0
- package/dist/cjs/api/resources/dynamic/resources/endpoints/types/FileUploadRequestBody.d.ts +4 -0
- package/dist/cjs/api/resources/dynamic/resources/endpoints/types/FileUploadRequestBody.js +3 -0
- package/dist/cjs/api/resources/dynamic/resources/endpoints/types/FileUploadRequestBodyProperty.d.ts +13 -0
- package/dist/cjs/api/resources/dynamic/resources/endpoints/types/FileUploadRequestBodyProperty.js +3 -0
- package/dist/cjs/api/resources/dynamic/resources/endpoints/types/InlinedRequest.d.ts +9 -0
- package/dist/cjs/api/resources/dynamic/resources/endpoints/types/InlinedRequest.js +3 -0
- package/dist/cjs/api/resources/dynamic/resources/endpoints/types/InlinedRequestBody.d.ts +14 -0
- package/dist/cjs/api/resources/dynamic/resources/endpoints/types/InlinedRequestBody.js +3 -0
- package/dist/cjs/api/resources/dynamic/resources/endpoints/types/InlinedRequestMetadata.d.ts +18 -0
- package/dist/cjs/api/resources/dynamic/resources/endpoints/types/InlinedRequestMetadata.js +3 -0
- package/dist/cjs/api/resources/dynamic/resources/endpoints/types/ReferencedRequestBody.d.ts +5 -0
- package/dist/cjs/api/resources/dynamic/resources/endpoints/types/ReferencedRequestBody.js +3 -0
- package/dist/cjs/api/resources/dynamic/resources/endpoints/types/ReferencedRequestBodyType.d.ts +11 -0
- package/dist/cjs/api/resources/dynamic/resources/endpoints/types/ReferencedRequestBodyType.js +3 -0
- package/dist/cjs/api/resources/dynamic/resources/endpoints/types/Request.d.ts +13 -0
- package/dist/cjs/api/resources/dynamic/resources/endpoints/types/Request.js +3 -0
- package/dist/cjs/api/resources/dynamic/resources/endpoints/types/Response.d.ts +29 -0
- package/dist/cjs/api/resources/dynamic/resources/endpoints/types/Response.js +3 -0
- package/dist/cjs/api/resources/dynamic/resources/endpoints/types/index.d.ts +13 -0
- package/dist/cjs/api/resources/dynamic/resources/endpoints/types/index.js +29 -0
- package/dist/cjs/api/resources/dynamic/resources/environment/index.d.ts +1 -0
- package/dist/cjs/api/resources/dynamic/resources/environment/index.js +17 -0
- package/dist/cjs/api/resources/dynamic/resources/environment/types/EnvironmentBaseUrlId.d.ts +1 -0
- package/dist/cjs/api/resources/dynamic/resources/environment/types/EnvironmentBaseUrlId.js +3 -0
- package/dist/cjs/api/resources/dynamic/resources/environment/types/EnvironmentBaseUrlWithId.d.ts +5 -0
- package/dist/cjs/api/resources/dynamic/resources/environment/types/EnvironmentBaseUrlWithId.js +3 -0
- package/dist/cjs/api/resources/dynamic/resources/environment/types/EnvironmentId.d.ts +1 -0
- package/dist/cjs/api/resources/dynamic/resources/environment/types/EnvironmentId.js +3 -0
- package/dist/cjs/api/resources/dynamic/resources/environment/types/EnvironmentUrl.d.ts +1 -0
- package/dist/cjs/api/resources/dynamic/resources/environment/types/EnvironmentUrl.js +3 -0
- package/dist/cjs/api/resources/dynamic/resources/environment/types/EnvironmentValues.d.ts +14 -0
- package/dist/cjs/api/resources/dynamic/resources/environment/types/EnvironmentValues.js +3 -0
- package/dist/cjs/api/resources/dynamic/resources/environment/types/Environments.d.ts +10 -0
- package/dist/cjs/api/resources/dynamic/resources/environment/types/Environments.js +3 -0
- package/dist/cjs/api/resources/dynamic/resources/environment/types/EnvironmentsConfig.d.ts +5 -0
- package/dist/cjs/api/resources/dynamic/resources/environment/types/EnvironmentsConfig.js +3 -0
- package/dist/cjs/api/resources/dynamic/resources/environment/types/MultipleBaseUrlsEnvironment.d.ts +6 -0
- package/dist/cjs/api/resources/dynamic/resources/environment/types/MultipleBaseUrlsEnvironment.js +3 -0
- package/dist/cjs/api/resources/dynamic/resources/environment/types/MultipleBaseUrlsEnvironments.d.ts +5 -0
- package/dist/cjs/api/resources/dynamic/resources/environment/types/MultipleBaseUrlsEnvironments.js +3 -0
- package/dist/cjs/api/resources/dynamic/resources/environment/types/MultipleEnvironmentUrlValues.d.ts +2 -0
- package/dist/cjs/api/resources/dynamic/resources/environment/types/MultipleEnvironmentUrlValues.js +3 -0
- package/dist/cjs/api/resources/dynamic/resources/environment/types/SingleBaseUrlEnvironment.d.ts +6 -0
- package/dist/cjs/api/resources/dynamic/resources/environment/types/SingleBaseUrlEnvironment.js +3 -0
- package/dist/cjs/api/resources/dynamic/resources/environment/types/SingleBaseUrlEnvironments.d.ts +4 -0
- package/dist/cjs/api/resources/dynamic/resources/environment/types/SingleBaseUrlEnvironments.js +3 -0
- package/dist/cjs/api/resources/dynamic/resources/environment/types/index.d.ts +12 -0
- package/dist/cjs/api/resources/dynamic/resources/environment/types/index.js +28 -0
- package/dist/cjs/api/resources/dynamic/resources/http/index.d.ts +1 -0
- package/dist/cjs/api/resources/dynamic/resources/http/index.js +17 -0
- package/dist/cjs/api/resources/dynamic/resources/http/types/HttpMethod.d.ts +9 -0
- package/dist/cjs/api/resources/dynamic/resources/http/types/HttpMethod.js +12 -0
- package/dist/cjs/api/resources/dynamic/resources/http/types/index.d.ts +1 -0
- package/dist/cjs/api/resources/dynamic/resources/http/types/index.js +17 -0
- package/dist/cjs/api/resources/dynamic/resources/index.d.ts +20 -0
- package/dist/cjs/api/resources/dynamic/resources/index.js +59 -0
- package/dist/cjs/api/resources/dynamic/resources/ir/index.d.ts +1 -0
- package/dist/cjs/api/resources/dynamic/resources/ir/index.js +17 -0
- package/dist/cjs/api/resources/dynamic/resources/ir/types/CratesPublishInfo.d.ts +5 -0
- package/dist/cjs/api/resources/dynamic/resources/ir/types/CratesPublishInfo.js +3 -0
- package/dist/cjs/api/resources/dynamic/resources/ir/types/DynamicIntermediateRepresentation.d.ts +34 -0
- package/dist/cjs/api/resources/dynamic/resources/ir/types/DynamicIntermediateRepresentation.js +3 -0
- package/dist/cjs/api/resources/dynamic/resources/ir/types/GeneratorConfig.d.ts +15 -0
- package/dist/cjs/api/resources/dynamic/resources/ir/types/GeneratorConfig.js +3 -0
- package/dist/cjs/api/resources/dynamic/resources/ir/types/GeneratorOutputConfig.d.ts +15 -0
- package/dist/cjs/api/resources/dynamic/resources/ir/types/GeneratorOutputConfig.js +3 -0
- package/dist/cjs/api/resources/dynamic/resources/ir/types/GoPublishInfo.d.ts +5 -0
- package/dist/cjs/api/resources/dynamic/resources/ir/types/GoPublishInfo.js +3 -0
- package/dist/cjs/api/resources/dynamic/resources/ir/types/MavenPublishInfo.d.ts +5 -0
- package/dist/cjs/api/resources/dynamic/resources/ir/types/MavenPublishInfo.js +3 -0
- package/dist/cjs/api/resources/dynamic/resources/ir/types/NpmPublishInfo.d.ts +5 -0
- package/dist/cjs/api/resources/dynamic/resources/ir/types/NpmPublishInfo.js +3 -0
- package/dist/cjs/api/resources/dynamic/resources/ir/types/NugetPublishInfo.d.ts +5 -0
- package/dist/cjs/api/resources/dynamic/resources/ir/types/NugetPublishInfo.js +3 -0
- package/dist/cjs/api/resources/dynamic/resources/ir/types/PublishInfo.d.ts +28 -0
- package/dist/cjs/api/resources/dynamic/resources/ir/types/PublishInfo.js +3 -0
- package/dist/cjs/api/resources/dynamic/resources/ir/types/PypiPublishInfo.d.ts +5 -0
- package/dist/cjs/api/resources/dynamic/resources/ir/types/PypiPublishInfo.js +3 -0
- package/dist/cjs/api/resources/dynamic/resources/ir/types/RubyGemsPublishInfo.d.ts +5 -0
- package/dist/cjs/api/resources/dynamic/resources/ir/types/RubyGemsPublishInfo.js +3 -0
- package/dist/cjs/api/resources/dynamic/resources/ir/types/SwiftPublishInfo.d.ts +5 -0
- package/dist/cjs/api/resources/dynamic/resources/ir/types/SwiftPublishInfo.js +3 -0
- package/dist/cjs/api/resources/dynamic/resources/ir/types/index.d.ts +12 -0
- package/dist/cjs/api/resources/dynamic/resources/ir/types/index.js +28 -0
- package/dist/cjs/api/resources/dynamic/resources/snippets/index.d.ts +1 -0
- package/dist/cjs/api/resources/dynamic/resources/snippets/index.js +17 -0
- package/dist/cjs/api/resources/dynamic/resources/snippets/types/EndpointSnippetRequest.d.ts +14 -0
- package/dist/cjs/api/resources/dynamic/resources/snippets/types/EndpointSnippetRequest.js +3 -0
- package/dist/cjs/api/resources/dynamic/resources/snippets/types/EndpointSnippetResponse.d.ts +12 -0
- package/dist/cjs/api/resources/dynamic/resources/snippets/types/EndpointSnippetResponse.js +3 -0
- package/dist/cjs/api/resources/dynamic/resources/snippets/types/ErrorSeverity.d.ts +5 -0
- package/dist/cjs/api/resources/dynamic/resources/snippets/types/ErrorSeverity.js +8 -0
- package/dist/cjs/api/resources/dynamic/resources/snippets/types/Error_.d.ts +5 -0
- package/dist/cjs/api/resources/dynamic/resources/snippets/types/Error_.js +3 -0
- package/dist/cjs/api/resources/dynamic/resources/snippets/types/Values.d.ts +7 -0
- package/dist/cjs/api/resources/dynamic/resources/snippets/types/Values.js +3 -0
- package/dist/cjs/api/resources/dynamic/resources/snippets/types/index.d.ts +5 -0
- package/dist/cjs/api/resources/dynamic/resources/snippets/types/index.js +21 -0
- package/dist/cjs/api/resources/dynamic/resources/types/index.d.ts +1 -0
- package/dist/cjs/api/resources/dynamic/resources/types/index.js +17 -0
- package/dist/cjs/api/resources/dynamic/resources/types/types/AliasType.d.ts +5 -0
- package/dist/cjs/api/resources/dynamic/resources/types/types/AliasType.js +3 -0
- package/dist/cjs/api/resources/dynamic/resources/types/types/DiscriminatedUnionType.d.ts +7 -0
- package/dist/cjs/api/resources/dynamic/resources/types/types/DiscriminatedUnionType.js +3 -0
- package/dist/cjs/api/resources/dynamic/resources/types/types/EnumType.d.ts +5 -0
- package/dist/cjs/api/resources/dynamic/resources/types/types/EnumType.js +3 -0
- package/dist/cjs/api/resources/dynamic/resources/types/types/LiteralType.d.ts +12 -0
- package/dist/cjs/api/resources/dynamic/resources/types/types/LiteralType.js +3 -0
- package/dist/cjs/api/resources/dynamic/resources/types/types/MapType.d.ts +5 -0
- package/dist/cjs/api/resources/dynamic/resources/types/types/MapType.js +3 -0
- package/dist/cjs/api/resources/dynamic/resources/types/types/NamedParameter.d.ts +8 -0
- package/dist/cjs/api/resources/dynamic/resources/types/types/NamedParameter.js +3 -0
- package/dist/cjs/api/resources/dynamic/resources/types/types/NamedType.d.ts +22 -0
- package/dist/cjs/api/resources/dynamic/resources/types/types/NamedType.js +3 -0
- package/dist/cjs/api/resources/dynamic/resources/types/types/ObjectPropertyAccess.d.ts +5 -0
- package/dist/cjs/api/resources/dynamic/resources/types/types/ObjectPropertyAccess.js +8 -0
- package/dist/cjs/api/resources/dynamic/resources/types/types/ObjectType.d.ts +12 -0
- package/dist/cjs/api/resources/dynamic/resources/types/types/ObjectType.js +3 -0
- package/dist/cjs/api/resources/dynamic/resources/types/types/PrimitiveTypeV1.d.ts +18 -0
- package/dist/cjs/api/resources/dynamic/resources/types/types/PrimitiveTypeV1.js +21 -0
- package/dist/cjs/api/resources/dynamic/resources/types/types/SingleDiscriminatedUnionType.d.ts +13 -0
- package/dist/cjs/api/resources/dynamic/resources/types/types/SingleDiscriminatedUnionType.js +3 -0
- package/dist/cjs/api/resources/dynamic/resources/types/types/SingleDiscriminatedUnionTypeNoProperties.d.ts +6 -0
- package/dist/cjs/api/resources/dynamic/resources/types/types/SingleDiscriminatedUnionTypeNoProperties.js +3 -0
- package/dist/cjs/api/resources/dynamic/resources/types/types/SingleDiscriminatedUnionTypeObject.d.ts +7 -0
- package/dist/cjs/api/resources/dynamic/resources/types/types/SingleDiscriminatedUnionTypeObject.js +3 -0
- package/dist/cjs/api/resources/dynamic/resources/types/types/SingleDiscriminatedUnionTypeSingleProperty.d.ts +7 -0
- package/dist/cjs/api/resources/dynamic/resources/types/types/SingleDiscriminatedUnionTypeSingleProperty.js +3 -0
- package/dist/cjs/api/resources/dynamic/resources/types/types/TypeReference.d.ts +38 -0
- package/dist/cjs/api/resources/dynamic/resources/types/types/TypeReference.js +3 -0
- package/dist/cjs/api/resources/dynamic/resources/types/types/UndiscriminatedUnionType.d.ts +6 -0
- package/dist/cjs/api/resources/dynamic/resources/types/types/UndiscriminatedUnionType.js +3 -0
- package/dist/cjs/api/resources/dynamic/resources/types/types/index.d.ts +16 -0
- package/dist/cjs/api/resources/dynamic/resources/types/types/index.js +32 -0
- package/dist/cjs/api/resources/dynamic/resources/variables/index.d.ts +1 -0
- package/dist/cjs/api/resources/dynamic/resources/variables/index.js +17 -0
- package/dist/cjs/api/resources/dynamic/resources/variables/types/VariableDeclaration.d.ts +13 -0
- package/dist/cjs/api/resources/dynamic/resources/variables/types/VariableDeclaration.js +3 -0
- package/dist/cjs/api/resources/dynamic/resources/variables/types/index.d.ts +1 -0
- package/dist/cjs/api/resources/dynamic/resources/variables/types/index.js +17 -0
- package/dist/cjs/api/resources/generatorExec/index.d.ts +1 -0
- package/dist/cjs/api/resources/generatorExec/index.js +17 -0
- package/dist/cjs/api/resources/generatorExec/resources/config/index.d.ts +1 -0
- package/dist/cjs/api/resources/generatorExec/resources/config/index.js +17 -0
- package/dist/cjs/api/resources/generatorExec/resources/config/types/BasicLicense.d.ts +4 -0
- package/dist/cjs/api/resources/generatorExec/resources/config/types/BasicLicense.js +3 -0
- package/dist/cjs/api/resources/generatorExec/resources/config/types/CratesGithubPublishInfo.d.ts +7 -0
- package/dist/cjs/api/resources/generatorExec/resources/config/types/CratesGithubPublishInfo.js +3 -0
- package/dist/cjs/api/resources/generatorExec/resources/config/types/CratesRegistryConfig.d.ts +5 -0
- package/dist/cjs/api/resources/generatorExec/resources/config/types/CratesRegistryConfig.js +3 -0
- package/dist/cjs/api/resources/generatorExec/resources/config/types/CustomLicense.d.ts +3 -0
- package/dist/cjs/api/resources/generatorExec/resources/config/types/CustomLicense.js +3 -0
- package/dist/cjs/api/resources/generatorExec/resources/config/types/EnvironmentVariable.d.ts +1 -0
- package/dist/cjs/api/resources/generatorExec/resources/config/types/EnvironmentVariable.js +3 -0
- package/dist/cjs/api/resources/generatorExec/resources/config/types/GeneratorConfig.d.ts +18 -0
- package/dist/cjs/api/resources/generatorExec/resources/config/types/GeneratorConfig.js +3 -0
- package/dist/cjs/api/resources/generatorExec/resources/config/types/GeneratorEnvironment.d.ts +10 -0
- package/dist/cjs/api/resources/generatorExec/resources/config/types/GeneratorEnvironment.js +3 -0
- package/dist/cjs/api/resources/generatorExec/resources/config/types/GeneratorOutputConfig.d.ts +8 -0
- package/dist/cjs/api/resources/generatorExec/resources/config/types/GeneratorOutputConfig.js +3 -0
- package/dist/cjs/api/resources/generatorExec/resources/config/types/GeneratorPublishConfig.d.ts +9 -0
- package/dist/cjs/api/resources/generatorExec/resources/config/types/GeneratorPublishConfig.js +3 -0
- package/dist/cjs/api/resources/generatorExec/resources/config/types/GeneratorPublishTarget.d.ts +25 -0
- package/dist/cjs/api/resources/generatorExec/resources/config/types/GeneratorPublishTarget.js +3 -0
- package/dist/cjs/api/resources/generatorExec/resources/config/types/GeneratorRegistriesConfig.d.ts +5 -0
- package/dist/cjs/api/resources/generatorExec/resources/config/types/GeneratorRegistriesConfig.js +3 -0
- package/dist/cjs/api/resources/generatorExec/resources/config/types/GeneratorRegistriesConfigV2.d.ts +9 -0
- package/dist/cjs/api/resources/generatorExec/resources/config/types/GeneratorRegistriesConfigV2.js +3 -0
- package/dist/cjs/api/resources/generatorExec/resources/config/types/GithubOutputMode.d.ts +14 -0
- package/dist/cjs/api/resources/generatorExec/resources/config/types/GithubOutputMode.js +3 -0
- package/dist/cjs/api/resources/generatorExec/resources/config/types/GithubPublishInfo.d.ts +25 -0
- package/dist/cjs/api/resources/generatorExec/resources/config/types/GithubPublishInfo.js +3 -0
- package/dist/cjs/api/resources/generatorExec/resources/config/types/LicenseConfig.d.ts +10 -0
- package/dist/cjs/api/resources/generatorExec/resources/config/types/LicenseConfig.js +3 -0
- package/dist/cjs/api/resources/generatorExec/resources/config/types/LicenseId.d.ts +5 -0
- package/dist/cjs/api/resources/generatorExec/resources/config/types/LicenseId.js +8 -0
- package/dist/cjs/api/resources/generatorExec/resources/config/types/MavenCentralSignature.d.ts +5 -0
- package/dist/cjs/api/resources/generatorExec/resources/config/types/MavenCentralSignature.js +3 -0
- package/dist/cjs/api/resources/generatorExec/resources/config/types/MavenCentralSignatureGithubInfo.d.ts +6 -0
- package/dist/cjs/api/resources/generatorExec/resources/config/types/MavenCentralSignatureGithubInfo.js +3 -0
- package/dist/cjs/api/resources/generatorExec/resources/config/types/MavenGithubPublishInfo.d.ts +9 -0
- package/dist/cjs/api/resources/generatorExec/resources/config/types/MavenGithubPublishInfo.js +3 -0
- package/dist/cjs/api/resources/generatorExec/resources/config/types/MavenRegistryConfig.d.ts +8 -0
- package/dist/cjs/api/resources/generatorExec/resources/config/types/MavenRegistryConfig.js +3 -0
- package/dist/cjs/api/resources/generatorExec/resources/config/types/MavenRegistryConfigV2.d.ts +8 -0
- package/dist/cjs/api/resources/generatorExec/resources/config/types/MavenRegistryConfigV2.js +3 -0
- package/dist/cjs/api/resources/generatorExec/resources/config/types/NpmGithubPublishInfo.d.ts +7 -0
- package/dist/cjs/api/resources/generatorExec/resources/config/types/NpmGithubPublishInfo.js +3 -0
- package/dist/cjs/api/resources/generatorExec/resources/config/types/NpmRegistryConfig.d.ts +5 -0
- package/dist/cjs/api/resources/generatorExec/resources/config/types/NpmRegistryConfig.js +3 -0
- package/dist/cjs/api/resources/generatorExec/resources/config/types/NpmRegistryConfigV2.d.ts +5 -0
- package/dist/cjs/api/resources/generatorExec/resources/config/types/NpmRegistryConfigV2.js +3 -0
- package/dist/cjs/api/resources/generatorExec/resources/config/types/NugetGithubPublishInfo.d.ts +7 -0
- package/dist/cjs/api/resources/generatorExec/resources/config/types/NugetGithubPublishInfo.js +3 -0
- package/dist/cjs/api/resources/generatorExec/resources/config/types/NugetRegistryConfig.d.ts +5 -0
- package/dist/cjs/api/resources/generatorExec/resources/config/types/NugetRegistryConfig.js +3 -0
- package/dist/cjs/api/resources/generatorExec/resources/config/types/OutputMetadata.d.ts +5 -0
- package/dist/cjs/api/resources/generatorExec/resources/config/types/OutputMetadata.js +3 -0
- package/dist/cjs/api/resources/generatorExec/resources/config/types/OutputMetadataAuthor.d.ts +4 -0
- package/dist/cjs/api/resources/generatorExec/resources/config/types/OutputMetadataAuthor.js +3 -0
- package/dist/cjs/api/resources/generatorExec/resources/config/types/OutputMode.d.ts +13 -0
- package/dist/cjs/api/resources/generatorExec/resources/config/types/OutputMode.js +3 -0
- package/dist/cjs/api/resources/generatorExec/resources/config/types/PostmanConfig.d.ts +4 -0
- package/dist/cjs/api/resources/generatorExec/resources/config/types/PostmanConfig.js +3 -0
- package/dist/cjs/api/resources/generatorExec/resources/config/types/PostmanGithubPublishInfo.d.ts +5 -0
- package/dist/cjs/api/resources/generatorExec/resources/config/types/PostmanGithubPublishInfo.js +3 -0
- package/dist/cjs/api/resources/generatorExec/resources/config/types/PublishingMetadata.d.ts +9 -0
- package/dist/cjs/api/resources/generatorExec/resources/config/types/PublishingMetadata.js +3 -0
- package/dist/cjs/api/resources/generatorExec/resources/config/types/PypiGithubPublishInfo.d.ts +9 -0
- package/dist/cjs/api/resources/generatorExec/resources/config/types/PypiGithubPublishInfo.js +3 -0
- package/dist/cjs/api/resources/generatorExec/resources/config/types/PypiMetadata.d.ts +6 -0
- package/dist/cjs/api/resources/generatorExec/resources/config/types/PypiMetadata.js +3 -0
- package/dist/cjs/api/resources/generatorExec/resources/config/types/PypiRegistryConfig.d.ts +8 -0
- package/dist/cjs/api/resources/generatorExec/resources/config/types/PypiRegistryConfig.js +3 -0
- package/dist/cjs/api/resources/generatorExec/resources/config/types/RemoteGeneratorEnvironment.d.ts +5 -0
- package/dist/cjs/api/resources/generatorExec/resources/config/types/RemoteGeneratorEnvironment.js +3 -0
- package/dist/cjs/api/resources/generatorExec/resources/config/types/RubyGemsGithubPublishInfo.d.ts +7 -0
- package/dist/cjs/api/resources/generatorExec/resources/config/types/RubyGemsGithubPublishInfo.js +3 -0
- package/dist/cjs/api/resources/generatorExec/resources/config/types/RubyGemsRegistryConfig.d.ts +5 -0
- package/dist/cjs/api/resources/generatorExec/resources/config/types/RubyGemsRegistryConfig.js +3 -0
- package/dist/cjs/api/resources/generatorExec/resources/config/types/index.d.ts +38 -0
- package/dist/cjs/api/resources/generatorExec/resources/config/types/index.js +54 -0
- package/dist/cjs/api/resources/generatorExec/resources/index.d.ts +2 -0
- package/dist/cjs/api/resources/generatorExec/resources/index.js +41 -0
- package/dist/cjs/api/resources/index.d.ts +4 -0
- package/dist/cjs/api/resources/index.js +43 -0
- package/dist/cjs/core/exports.d.ts +1 -0
- package/dist/cjs/core/exports.js +17 -0
- package/dist/cjs/core/fetcher/APIResponse.d.ts +20 -0
- package/dist/cjs/core/fetcher/APIResponse.js +2 -0
- package/dist/cjs/core/fetcher/BinaryResponse.d.ts +19 -0
- package/dist/cjs/core/fetcher/BinaryResponse.js +17 -0
- package/dist/cjs/core/fetcher/EndpointMetadata.d.ts +13 -0
- package/dist/cjs/core/fetcher/EndpointMetadata.js +2 -0
- package/dist/cjs/core/fetcher/EndpointSupplier.d.ts +12 -0
- package/dist/cjs/core/fetcher/EndpointSupplier.js +22 -0
- package/dist/cjs/core/fetcher/Fetcher.d.ts +48 -0
- package/dist/cjs/core/fetcher/Fetcher.js +316 -0
- package/dist/cjs/core/fetcher/Headers.d.ts +2 -0
- package/dist/cjs/core/fetcher/Headers.js +84 -0
- package/dist/cjs/core/fetcher/HttpResponsePromise.d.ts +58 -0
- package/dist/cjs/core/fetcher/HttpResponsePromise.js +103 -0
- package/dist/cjs/core/fetcher/RawResponse.d.ts +29 -0
- package/dist/cjs/core/fetcher/RawResponse.js +44 -0
- package/dist/cjs/core/fetcher/Supplier.d.ts +4 -0
- package/dist/cjs/core/fetcher/Supplier.js +22 -0
- package/dist/cjs/core/fetcher/createRequestUrl.d.ts +1 -0
- package/dist/cjs/core/fetcher/createRequestUrl.js +8 -0
- package/dist/cjs/core/fetcher/getErrorResponseBody.d.ts +1 -0
- package/dist/cjs/core/fetcher/getErrorResponseBody.js +45 -0
- package/dist/cjs/core/fetcher/getFetchFn.d.ts +1 -0
- package/dist/cjs/core/fetcher/getFetchFn.js +17 -0
- package/dist/cjs/core/fetcher/getHeader.d.ts +1 -0
- package/dist/cjs/core/fetcher/getHeader.js +11 -0
- package/dist/cjs/core/fetcher/getRequestBody.d.ts +7 -0
- package/dist/cjs/core/fetcher/getRequestBody.js +27 -0
- package/dist/cjs/core/fetcher/getResponseBody.d.ts +1 -0
- package/dist/cjs/core/fetcher/getResponseBody.js +69 -0
- package/dist/cjs/core/fetcher/index.d.ts +11 -0
- package/dist/cjs/core/fetcher/index.js +17 -0
- package/dist/cjs/core/fetcher/makeRequest.d.ts +1 -0
- package/dist/cjs/core/fetcher/makeRequest.js +40 -0
- package/dist/cjs/core/fetcher/requestWithRetries.d.ts +1 -0
- package/dist/cjs/core/fetcher/requestWithRetries.js +67 -0
- package/dist/cjs/core/fetcher/signals.d.ts +5 -0
- package/dist/cjs/core/fetcher/signals.js +24 -0
- package/dist/cjs/core/headers.d.ts +2 -0
- package/dist/cjs/core/headers.js +31 -0
- package/dist/cjs/core/index.d.ts +4 -0
- package/dist/cjs/core/index.js +43 -0
- package/dist/cjs/core/json.d.ts +15 -0
- package/dist/cjs/core/json.js +24 -0
- package/dist/cjs/core/logging/exports.d.ts +18 -0
- package/dist/cjs/core/logging/exports.js +45 -0
- package/dist/cjs/core/logging/index.d.ts +1 -0
- package/dist/cjs/core/logging/index.js +17 -0
- package/dist/cjs/core/logging/logger.d.ts +126 -0
- package/dist/cjs/core/logging/logger.js +144 -0
- package/dist/cjs/core/runtime/index.d.ts +1 -0
- package/dist/cjs/core/runtime/index.js +5 -0
- package/dist/cjs/core/runtime/runtime.d.ts +9 -0
- package/dist/cjs/core/runtime/runtime.js +103 -0
- package/dist/cjs/core/url/encodePathParam.d.ts +1 -0
- package/dist/cjs/core/url/encodePathParam.js +21 -0
- package/dist/cjs/core/url/index.d.ts +3 -0
- package/dist/cjs/core/url/index.js +9 -0
- package/dist/cjs/core/url/join.d.ts +1 -0
- package/dist/cjs/core/url/join.js +68 -0
- package/dist/cjs/core/url/qs.d.ts +6 -0
- package/dist/cjs/core/url/qs.js +64 -0
- package/dist/cjs/errors/FernIrError.d.ts +12 -0
- package/dist/cjs/errors/FernIrError.js +32 -0
- package/dist/cjs/errors/FernIrTimeoutError.d.ts +3 -0
- package/dist/cjs/errors/FernIrTimeoutError.js +15 -0
- package/dist/cjs/errors/handleNonStatusCodeError.d.ts +2 -0
- package/dist/cjs/errors/handleNonStatusCodeError.js +65 -0
- package/dist/cjs/errors/index.d.ts +2 -0
- package/dist/cjs/errors/index.js +7 -0
- package/dist/cjs/exports.d.ts +1 -0
- package/dist/cjs/exports.js +17 -0
- package/dist/cjs/index.d.ts +4 -0
- package/dist/cjs/index.js +44 -0
- package/dist/cjs/version.d.ts +1 -0
- package/dist/cjs/version.js +4 -0
- package/dist/esm/BaseClient.d.mts +32 -0
- package/dist/esm/BaseClient.mjs +14 -0
- package/dist/esm/api/index.d.mts +1 -0
- package/dist/esm/api/index.mjs +1 -0
- package/dist/esm/api/resources/commons/index.d.mts +1 -0
- package/dist/esm/api/resources/commons/index.mjs +1 -0
- package/dist/esm/api/resources/commons/types/Name.d.mts +8 -0
- package/dist/esm/api/resources/commons/types/Name.mjs +2 -0
- package/dist/esm/api/resources/commons/types/SafeAndUnsafeString.d.mts +6 -0
- package/dist/esm/api/resources/commons/types/SafeAndUnsafeString.mjs +2 -0
- package/dist/esm/api/resources/commons/types/index.d.mts +2 -0
- package/dist/esm/api/resources/commons/types/index.mjs +2 -0
- package/dist/esm/api/resources/dynamic/index.d.mts +1 -0
- package/dist/esm/api/resources/dynamic/index.mjs +1 -0
- package/dist/esm/api/resources/dynamic/resources/auth/index.d.mts +1 -0
- package/dist/esm/api/resources/dynamic/resources/auth/index.mjs +1 -0
- package/dist/esm/api/resources/dynamic/resources/auth/types/Auth.d.mts +19 -0
- package/dist/esm/api/resources/dynamic/resources/auth/types/Auth.mjs +2 -0
- package/dist/esm/api/resources/dynamic/resources/auth/types/AuthValues.d.mts +19 -0
- package/dist/esm/api/resources/dynamic/resources/auth/types/AuthValues.mjs +2 -0
- package/dist/esm/api/resources/dynamic/resources/auth/types/BasicAuth.d.mts +5 -0
- package/dist/esm/api/resources/dynamic/resources/auth/types/BasicAuth.mjs +2 -0
- package/dist/esm/api/resources/dynamic/resources/auth/types/BasicAuthValues.d.mts +4 -0
- package/dist/esm/api/resources/dynamic/resources/auth/types/BasicAuthValues.mjs +2 -0
- package/dist/esm/api/resources/dynamic/resources/auth/types/BearerAuth.d.mts +4 -0
- package/dist/esm/api/resources/dynamic/resources/auth/types/BearerAuth.mjs +2 -0
- package/dist/esm/api/resources/dynamic/resources/auth/types/BearerAuthValues.d.mts +3 -0
- package/dist/esm/api/resources/dynamic/resources/auth/types/BearerAuthValues.mjs +2 -0
- package/dist/esm/api/resources/dynamic/resources/auth/types/HeaderAuth.d.mts +4 -0
- package/dist/esm/api/resources/dynamic/resources/auth/types/HeaderAuth.mjs +2 -0
- package/dist/esm/api/resources/dynamic/resources/auth/types/HeaderAuthValues.d.mts +3 -0
- package/dist/esm/api/resources/dynamic/resources/auth/types/HeaderAuthValues.mjs +2 -0
- package/dist/esm/api/resources/dynamic/resources/auth/types/InferredAuth.d.mts +9 -0
- package/dist/esm/api/resources/dynamic/resources/auth/types/InferredAuth.mjs +2 -0
- package/dist/esm/api/resources/dynamic/resources/auth/types/InferredAuthValues.d.mts +8 -0
- package/dist/esm/api/resources/dynamic/resources/auth/types/InferredAuthValues.mjs +2 -0
- package/dist/esm/api/resources/dynamic/resources/auth/types/OAuth.d.mts +5 -0
- package/dist/esm/api/resources/dynamic/resources/auth/types/OAuth.mjs +2 -0
- package/dist/esm/api/resources/dynamic/resources/auth/types/OAuthValues.d.mts +4 -0
- package/dist/esm/api/resources/dynamic/resources/auth/types/OAuthValues.mjs +2 -0
- package/dist/esm/api/resources/dynamic/resources/auth/types/index.d.mts +12 -0
- package/dist/esm/api/resources/dynamic/resources/auth/types/index.mjs +12 -0
- package/dist/esm/api/resources/dynamic/resources/commons/index.d.mts +1 -0
- package/dist/esm/api/resources/dynamic/resources/commons/index.mjs +1 -0
- package/dist/esm/api/resources/dynamic/resources/commons/types/EndpointId.d.mts +1 -0
- package/dist/esm/api/resources/dynamic/resources/commons/types/EndpointId.mjs +2 -0
- package/dist/esm/api/resources/dynamic/resources/commons/types/FernFilepath.d.mts +6 -0
- package/dist/esm/api/resources/dynamic/resources/commons/types/FernFilepath.mjs +2 -0
- package/dist/esm/api/resources/dynamic/resources/commons/types/Name.d.mts +8 -0
- package/dist/esm/api/resources/dynamic/resources/commons/types/Name.mjs +2 -0
- package/dist/esm/api/resources/dynamic/resources/commons/types/NameAndWireValue.d.mts +5 -0
- package/dist/esm/api/resources/dynamic/resources/commons/types/NameAndWireValue.mjs +2 -0
- package/dist/esm/api/resources/dynamic/resources/commons/types/SafeAndUnsafeString.d.mts +6 -0
- package/dist/esm/api/resources/dynamic/resources/commons/types/SafeAndUnsafeString.mjs +2 -0
- package/dist/esm/api/resources/dynamic/resources/commons/types/TypeId.d.mts +1 -0
- package/dist/esm/api/resources/dynamic/resources/commons/types/TypeId.mjs +2 -0
- package/dist/esm/api/resources/dynamic/resources/commons/types/WithDocs.d.mts +3 -0
- package/dist/esm/api/resources/dynamic/resources/commons/types/WithDocs.mjs +2 -0
- package/dist/esm/api/resources/dynamic/resources/commons/types/index.d.mts +7 -0
- package/dist/esm/api/resources/dynamic/resources/commons/types/index.mjs +7 -0
- package/dist/esm/api/resources/dynamic/resources/declaration/index.d.mts +1 -0
- package/dist/esm/api/resources/dynamic/resources/declaration/index.mjs +1 -0
- package/dist/esm/api/resources/dynamic/resources/declaration/types/Declaration.d.mts +5 -0
- package/dist/esm/api/resources/dynamic/resources/declaration/types/Declaration.mjs +2 -0
- package/dist/esm/api/resources/dynamic/resources/declaration/types/index.d.mts +1 -0
- package/dist/esm/api/resources/dynamic/resources/declaration/types/index.mjs +1 -0
- package/dist/esm/api/resources/dynamic/resources/endpoints/index.d.mts +1 -0
- package/dist/esm/api/resources/dynamic/resources/endpoints/index.mjs +1 -0
- package/dist/esm/api/resources/dynamic/resources/endpoints/types/BodyRequest.d.mts +5 -0
- package/dist/esm/api/resources/dynamic/resources/endpoints/types/BodyRequest.mjs +2 -0
- package/dist/esm/api/resources/dynamic/resources/endpoints/types/Endpoint.d.mts +9 -0
- package/dist/esm/api/resources/dynamic/resources/endpoints/types/Endpoint.mjs +2 -0
- package/dist/esm/api/resources/dynamic/resources/endpoints/types/EndpointExample.d.mts +7 -0
- package/dist/esm/api/resources/dynamic/resources/endpoints/types/EndpointExample.mjs +2 -0
- package/dist/esm/api/resources/dynamic/resources/endpoints/types/EndpointLocation.d.mts +8 -0
- package/dist/esm/api/resources/dynamic/resources/endpoints/types/EndpointLocation.mjs +2 -0
- package/dist/esm/api/resources/dynamic/resources/endpoints/types/FileUploadRequestBody.d.mts +4 -0
- package/dist/esm/api/resources/dynamic/resources/endpoints/types/FileUploadRequestBody.mjs +2 -0
- package/dist/esm/api/resources/dynamic/resources/endpoints/types/FileUploadRequestBodyProperty.d.mts +13 -0
- package/dist/esm/api/resources/dynamic/resources/endpoints/types/FileUploadRequestBodyProperty.mjs +2 -0
- package/dist/esm/api/resources/dynamic/resources/endpoints/types/InlinedRequest.d.mts +9 -0
- package/dist/esm/api/resources/dynamic/resources/endpoints/types/InlinedRequest.mjs +2 -0
- package/dist/esm/api/resources/dynamic/resources/endpoints/types/InlinedRequestBody.d.mts +14 -0
- package/dist/esm/api/resources/dynamic/resources/endpoints/types/InlinedRequestBody.mjs +2 -0
- package/dist/esm/api/resources/dynamic/resources/endpoints/types/InlinedRequestMetadata.d.mts +18 -0
- package/dist/esm/api/resources/dynamic/resources/endpoints/types/InlinedRequestMetadata.mjs +2 -0
- package/dist/esm/api/resources/dynamic/resources/endpoints/types/ReferencedRequestBody.d.mts +5 -0
- package/dist/esm/api/resources/dynamic/resources/endpoints/types/ReferencedRequestBody.mjs +2 -0
- package/dist/esm/api/resources/dynamic/resources/endpoints/types/ReferencedRequestBodyType.d.mts +11 -0
- package/dist/esm/api/resources/dynamic/resources/endpoints/types/ReferencedRequestBodyType.mjs +2 -0
- package/dist/esm/api/resources/dynamic/resources/endpoints/types/Request.d.mts +13 -0
- package/dist/esm/api/resources/dynamic/resources/endpoints/types/Request.mjs +2 -0
- package/dist/esm/api/resources/dynamic/resources/endpoints/types/Response.d.mts +29 -0
- package/dist/esm/api/resources/dynamic/resources/endpoints/types/Response.mjs +2 -0
- package/dist/esm/api/resources/dynamic/resources/endpoints/types/index.d.mts +13 -0
- package/dist/esm/api/resources/dynamic/resources/endpoints/types/index.mjs +13 -0
- package/dist/esm/api/resources/dynamic/resources/environment/index.d.mts +1 -0
- package/dist/esm/api/resources/dynamic/resources/environment/index.mjs +1 -0
- package/dist/esm/api/resources/dynamic/resources/environment/types/EnvironmentBaseUrlId.d.mts +1 -0
- package/dist/esm/api/resources/dynamic/resources/environment/types/EnvironmentBaseUrlId.mjs +2 -0
- package/dist/esm/api/resources/dynamic/resources/environment/types/EnvironmentBaseUrlWithId.d.mts +5 -0
- package/dist/esm/api/resources/dynamic/resources/environment/types/EnvironmentBaseUrlWithId.mjs +2 -0
- package/dist/esm/api/resources/dynamic/resources/environment/types/EnvironmentId.d.mts +1 -0
- package/dist/esm/api/resources/dynamic/resources/environment/types/EnvironmentId.mjs +2 -0
- package/dist/esm/api/resources/dynamic/resources/environment/types/EnvironmentUrl.d.mts +1 -0
- package/dist/esm/api/resources/dynamic/resources/environment/types/EnvironmentUrl.mjs +2 -0
- package/dist/esm/api/resources/dynamic/resources/environment/types/EnvironmentValues.d.mts +14 -0
- package/dist/esm/api/resources/dynamic/resources/environment/types/EnvironmentValues.mjs +2 -0
- package/dist/esm/api/resources/dynamic/resources/environment/types/Environments.d.mts +10 -0
- package/dist/esm/api/resources/dynamic/resources/environment/types/Environments.mjs +2 -0
- package/dist/esm/api/resources/dynamic/resources/environment/types/EnvironmentsConfig.d.mts +5 -0
- package/dist/esm/api/resources/dynamic/resources/environment/types/EnvironmentsConfig.mjs +2 -0
- package/dist/esm/api/resources/dynamic/resources/environment/types/MultipleBaseUrlsEnvironment.d.mts +6 -0
- package/dist/esm/api/resources/dynamic/resources/environment/types/MultipleBaseUrlsEnvironment.mjs +2 -0
- package/dist/esm/api/resources/dynamic/resources/environment/types/MultipleBaseUrlsEnvironments.d.mts +5 -0
- package/dist/esm/api/resources/dynamic/resources/environment/types/MultipleBaseUrlsEnvironments.mjs +2 -0
- package/dist/esm/api/resources/dynamic/resources/environment/types/MultipleEnvironmentUrlValues.d.mts +2 -0
- package/dist/esm/api/resources/dynamic/resources/environment/types/MultipleEnvironmentUrlValues.mjs +2 -0
- package/dist/esm/api/resources/dynamic/resources/environment/types/SingleBaseUrlEnvironment.d.mts +6 -0
- package/dist/esm/api/resources/dynamic/resources/environment/types/SingleBaseUrlEnvironment.mjs +2 -0
- package/dist/esm/api/resources/dynamic/resources/environment/types/SingleBaseUrlEnvironments.d.mts +4 -0
- package/dist/esm/api/resources/dynamic/resources/environment/types/SingleBaseUrlEnvironments.mjs +2 -0
- package/dist/esm/api/resources/dynamic/resources/environment/types/index.d.mts +12 -0
- package/dist/esm/api/resources/dynamic/resources/environment/types/index.mjs +12 -0
- package/dist/esm/api/resources/dynamic/resources/http/index.d.mts +1 -0
- package/dist/esm/api/resources/dynamic/resources/http/index.mjs +1 -0
- package/dist/esm/api/resources/dynamic/resources/http/types/HttpMethod.d.mts +9 -0
- package/dist/esm/api/resources/dynamic/resources/http/types/HttpMethod.mjs +9 -0
- package/dist/esm/api/resources/dynamic/resources/http/types/index.d.mts +1 -0
- package/dist/esm/api/resources/dynamic/resources/http/types/index.mjs +1 -0
- package/dist/esm/api/resources/dynamic/resources/index.d.mts +20 -0
- package/dist/esm/api/resources/dynamic/resources/index.mjs +20 -0
- package/dist/esm/api/resources/dynamic/resources/ir/index.d.mts +1 -0
- package/dist/esm/api/resources/dynamic/resources/ir/index.mjs +1 -0
- package/dist/esm/api/resources/dynamic/resources/ir/types/CratesPublishInfo.d.mts +5 -0
- package/dist/esm/api/resources/dynamic/resources/ir/types/CratesPublishInfo.mjs +2 -0
- package/dist/esm/api/resources/dynamic/resources/ir/types/DynamicIntermediateRepresentation.d.mts +34 -0
- package/dist/esm/api/resources/dynamic/resources/ir/types/DynamicIntermediateRepresentation.mjs +2 -0
- package/dist/esm/api/resources/dynamic/resources/ir/types/GeneratorConfig.d.mts +15 -0
- package/dist/esm/api/resources/dynamic/resources/ir/types/GeneratorConfig.mjs +2 -0
- package/dist/esm/api/resources/dynamic/resources/ir/types/GeneratorOutputConfig.d.mts +15 -0
- package/dist/esm/api/resources/dynamic/resources/ir/types/GeneratorOutputConfig.mjs +2 -0
- package/dist/esm/api/resources/dynamic/resources/ir/types/GoPublishInfo.d.mts +5 -0
- package/dist/esm/api/resources/dynamic/resources/ir/types/GoPublishInfo.mjs +2 -0
- package/dist/esm/api/resources/dynamic/resources/ir/types/MavenPublishInfo.d.mts +5 -0
- package/dist/esm/api/resources/dynamic/resources/ir/types/MavenPublishInfo.mjs +2 -0
- package/dist/esm/api/resources/dynamic/resources/ir/types/NpmPublishInfo.d.mts +5 -0
- package/dist/esm/api/resources/dynamic/resources/ir/types/NpmPublishInfo.mjs +2 -0
- package/dist/esm/api/resources/dynamic/resources/ir/types/NugetPublishInfo.d.mts +5 -0
- package/dist/esm/api/resources/dynamic/resources/ir/types/NugetPublishInfo.mjs +2 -0
- package/dist/esm/api/resources/dynamic/resources/ir/types/PublishInfo.d.mts +28 -0
- package/dist/esm/api/resources/dynamic/resources/ir/types/PublishInfo.mjs +2 -0
- package/dist/esm/api/resources/dynamic/resources/ir/types/PypiPublishInfo.d.mts +5 -0
- package/dist/esm/api/resources/dynamic/resources/ir/types/PypiPublishInfo.mjs +2 -0
- package/dist/esm/api/resources/dynamic/resources/ir/types/RubyGemsPublishInfo.d.mts +5 -0
- package/dist/esm/api/resources/dynamic/resources/ir/types/RubyGemsPublishInfo.mjs +2 -0
- package/dist/esm/api/resources/dynamic/resources/ir/types/SwiftPublishInfo.d.mts +5 -0
- package/dist/esm/api/resources/dynamic/resources/ir/types/SwiftPublishInfo.mjs +2 -0
- package/dist/esm/api/resources/dynamic/resources/ir/types/index.d.mts +12 -0
- package/dist/esm/api/resources/dynamic/resources/ir/types/index.mjs +12 -0
- package/dist/esm/api/resources/dynamic/resources/snippets/index.d.mts +1 -0
- package/dist/esm/api/resources/dynamic/resources/snippets/index.mjs +1 -0
- package/dist/esm/api/resources/dynamic/resources/snippets/types/EndpointSnippetRequest.d.mts +14 -0
- package/dist/esm/api/resources/dynamic/resources/snippets/types/EndpointSnippetRequest.mjs +2 -0
- package/dist/esm/api/resources/dynamic/resources/snippets/types/EndpointSnippetResponse.d.mts +12 -0
- package/dist/esm/api/resources/dynamic/resources/snippets/types/EndpointSnippetResponse.mjs +2 -0
- package/dist/esm/api/resources/dynamic/resources/snippets/types/ErrorSeverity.d.mts +5 -0
- package/dist/esm/api/resources/dynamic/resources/snippets/types/ErrorSeverity.mjs +5 -0
- package/dist/esm/api/resources/dynamic/resources/snippets/types/Error_.d.mts +5 -0
- package/dist/esm/api/resources/dynamic/resources/snippets/types/Error_.mjs +2 -0
- package/dist/esm/api/resources/dynamic/resources/snippets/types/Values.d.mts +7 -0
- package/dist/esm/api/resources/dynamic/resources/snippets/types/Values.mjs +2 -0
- package/dist/esm/api/resources/dynamic/resources/snippets/types/index.d.mts +5 -0
- package/dist/esm/api/resources/dynamic/resources/snippets/types/index.mjs +5 -0
- package/dist/esm/api/resources/dynamic/resources/types/index.d.mts +1 -0
- package/dist/esm/api/resources/dynamic/resources/types/index.mjs +1 -0
- package/dist/esm/api/resources/dynamic/resources/types/types/AliasType.d.mts +5 -0
- package/dist/esm/api/resources/dynamic/resources/types/types/AliasType.mjs +2 -0
- package/dist/esm/api/resources/dynamic/resources/types/types/DiscriminatedUnionType.d.mts +7 -0
- package/dist/esm/api/resources/dynamic/resources/types/types/DiscriminatedUnionType.mjs +2 -0
- package/dist/esm/api/resources/dynamic/resources/types/types/EnumType.d.mts +5 -0
- package/dist/esm/api/resources/dynamic/resources/types/types/EnumType.mjs +2 -0
- package/dist/esm/api/resources/dynamic/resources/types/types/LiteralType.d.mts +12 -0
- package/dist/esm/api/resources/dynamic/resources/types/types/LiteralType.mjs +2 -0
- package/dist/esm/api/resources/dynamic/resources/types/types/MapType.d.mts +5 -0
- package/dist/esm/api/resources/dynamic/resources/types/types/MapType.mjs +2 -0
- package/dist/esm/api/resources/dynamic/resources/types/types/NamedParameter.d.mts +8 -0
- package/dist/esm/api/resources/dynamic/resources/types/types/NamedParameter.mjs +2 -0
- package/dist/esm/api/resources/dynamic/resources/types/types/NamedType.d.mts +22 -0
- package/dist/esm/api/resources/dynamic/resources/types/types/NamedType.mjs +2 -0
- package/dist/esm/api/resources/dynamic/resources/types/types/ObjectPropertyAccess.d.mts +5 -0
- package/dist/esm/api/resources/dynamic/resources/types/types/ObjectPropertyAccess.mjs +5 -0
- package/dist/esm/api/resources/dynamic/resources/types/types/ObjectType.d.mts +12 -0
- package/dist/esm/api/resources/dynamic/resources/types/types/ObjectType.mjs +2 -0
- package/dist/esm/api/resources/dynamic/resources/types/types/PrimitiveTypeV1.d.mts +18 -0
- package/dist/esm/api/resources/dynamic/resources/types/types/PrimitiveTypeV1.mjs +18 -0
- package/dist/esm/api/resources/dynamic/resources/types/types/SingleDiscriminatedUnionType.d.mts +13 -0
- package/dist/esm/api/resources/dynamic/resources/types/types/SingleDiscriminatedUnionType.mjs +2 -0
- package/dist/esm/api/resources/dynamic/resources/types/types/SingleDiscriminatedUnionTypeNoProperties.d.mts +6 -0
- package/dist/esm/api/resources/dynamic/resources/types/types/SingleDiscriminatedUnionTypeNoProperties.mjs +2 -0
- package/dist/esm/api/resources/dynamic/resources/types/types/SingleDiscriminatedUnionTypeObject.d.mts +7 -0
- package/dist/esm/api/resources/dynamic/resources/types/types/SingleDiscriminatedUnionTypeObject.mjs +2 -0
- package/dist/esm/api/resources/dynamic/resources/types/types/SingleDiscriminatedUnionTypeSingleProperty.d.mts +7 -0
- package/dist/esm/api/resources/dynamic/resources/types/types/SingleDiscriminatedUnionTypeSingleProperty.mjs +2 -0
- package/dist/esm/api/resources/dynamic/resources/types/types/TypeReference.d.mts +38 -0
- package/dist/esm/api/resources/dynamic/resources/types/types/TypeReference.mjs +2 -0
- package/dist/esm/api/resources/dynamic/resources/types/types/UndiscriminatedUnionType.d.mts +6 -0
- package/dist/esm/api/resources/dynamic/resources/types/types/UndiscriminatedUnionType.mjs +2 -0
- package/dist/esm/api/resources/dynamic/resources/types/types/index.d.mts +16 -0
- package/dist/esm/api/resources/dynamic/resources/types/types/index.mjs +16 -0
- package/dist/esm/api/resources/dynamic/resources/variables/index.d.mts +1 -0
- package/dist/esm/api/resources/dynamic/resources/variables/index.mjs +1 -0
- package/dist/esm/api/resources/dynamic/resources/variables/types/VariableDeclaration.d.mts +13 -0
- package/dist/esm/api/resources/dynamic/resources/variables/types/VariableDeclaration.mjs +2 -0
- package/dist/esm/api/resources/dynamic/resources/variables/types/index.d.mts +1 -0
- package/dist/esm/api/resources/dynamic/resources/variables/types/index.mjs +1 -0
- package/dist/esm/api/resources/generatorExec/index.d.mts +1 -0
- package/dist/esm/api/resources/generatorExec/index.mjs +1 -0
- package/dist/esm/api/resources/generatorExec/resources/config/index.d.mts +1 -0
- package/dist/esm/api/resources/generatorExec/resources/config/index.mjs +1 -0
- package/dist/esm/api/resources/generatorExec/resources/config/types/BasicLicense.d.mts +4 -0
- package/dist/esm/api/resources/generatorExec/resources/config/types/BasicLicense.mjs +2 -0
- package/dist/esm/api/resources/generatorExec/resources/config/types/CratesGithubPublishInfo.d.mts +7 -0
- package/dist/esm/api/resources/generatorExec/resources/config/types/CratesGithubPublishInfo.mjs +2 -0
- package/dist/esm/api/resources/generatorExec/resources/config/types/CratesRegistryConfig.d.mts +5 -0
- package/dist/esm/api/resources/generatorExec/resources/config/types/CratesRegistryConfig.mjs +2 -0
- package/dist/esm/api/resources/generatorExec/resources/config/types/CustomLicense.d.mts +3 -0
- package/dist/esm/api/resources/generatorExec/resources/config/types/CustomLicense.mjs +2 -0
- package/dist/esm/api/resources/generatorExec/resources/config/types/EnvironmentVariable.d.mts +1 -0
- package/dist/esm/api/resources/generatorExec/resources/config/types/EnvironmentVariable.mjs +2 -0
- package/dist/esm/api/resources/generatorExec/resources/config/types/GeneratorConfig.d.mts +18 -0
- package/dist/esm/api/resources/generatorExec/resources/config/types/GeneratorConfig.mjs +2 -0
- package/dist/esm/api/resources/generatorExec/resources/config/types/GeneratorEnvironment.d.mts +10 -0
- package/dist/esm/api/resources/generatorExec/resources/config/types/GeneratorEnvironment.mjs +2 -0
- package/dist/esm/api/resources/generatorExec/resources/config/types/GeneratorOutputConfig.d.mts +8 -0
- package/dist/esm/api/resources/generatorExec/resources/config/types/GeneratorOutputConfig.mjs +2 -0
- package/dist/esm/api/resources/generatorExec/resources/config/types/GeneratorPublishConfig.d.mts +9 -0
- package/dist/esm/api/resources/generatorExec/resources/config/types/GeneratorPublishConfig.mjs +2 -0
- package/dist/esm/api/resources/generatorExec/resources/config/types/GeneratorPublishTarget.d.mts +25 -0
- package/dist/esm/api/resources/generatorExec/resources/config/types/GeneratorPublishTarget.mjs +2 -0
- package/dist/esm/api/resources/generatorExec/resources/config/types/GeneratorRegistriesConfig.d.mts +5 -0
- package/dist/esm/api/resources/generatorExec/resources/config/types/GeneratorRegistriesConfig.mjs +2 -0
- package/dist/esm/api/resources/generatorExec/resources/config/types/GeneratorRegistriesConfigV2.d.mts +9 -0
- package/dist/esm/api/resources/generatorExec/resources/config/types/GeneratorRegistriesConfigV2.mjs +2 -0
- package/dist/esm/api/resources/generatorExec/resources/config/types/GithubOutputMode.d.mts +14 -0
- package/dist/esm/api/resources/generatorExec/resources/config/types/GithubOutputMode.mjs +2 -0
- package/dist/esm/api/resources/generatorExec/resources/config/types/GithubPublishInfo.d.mts +25 -0
- package/dist/esm/api/resources/generatorExec/resources/config/types/GithubPublishInfo.mjs +2 -0
- package/dist/esm/api/resources/generatorExec/resources/config/types/LicenseConfig.d.mts +10 -0
- package/dist/esm/api/resources/generatorExec/resources/config/types/LicenseConfig.mjs +2 -0
- package/dist/esm/api/resources/generatorExec/resources/config/types/LicenseId.d.mts +5 -0
- package/dist/esm/api/resources/generatorExec/resources/config/types/LicenseId.mjs +5 -0
- package/dist/esm/api/resources/generatorExec/resources/config/types/MavenCentralSignature.d.mts +5 -0
- package/dist/esm/api/resources/generatorExec/resources/config/types/MavenCentralSignature.mjs +2 -0
- package/dist/esm/api/resources/generatorExec/resources/config/types/MavenCentralSignatureGithubInfo.d.mts +6 -0
- package/dist/esm/api/resources/generatorExec/resources/config/types/MavenCentralSignatureGithubInfo.mjs +2 -0
- package/dist/esm/api/resources/generatorExec/resources/config/types/MavenGithubPublishInfo.d.mts +9 -0
- package/dist/esm/api/resources/generatorExec/resources/config/types/MavenGithubPublishInfo.mjs +2 -0
- package/dist/esm/api/resources/generatorExec/resources/config/types/MavenRegistryConfig.d.mts +8 -0
- package/dist/esm/api/resources/generatorExec/resources/config/types/MavenRegistryConfig.mjs +2 -0
- package/dist/esm/api/resources/generatorExec/resources/config/types/MavenRegistryConfigV2.d.mts +8 -0
- package/dist/esm/api/resources/generatorExec/resources/config/types/MavenRegistryConfigV2.mjs +2 -0
- package/dist/esm/api/resources/generatorExec/resources/config/types/NpmGithubPublishInfo.d.mts +7 -0
- package/dist/esm/api/resources/generatorExec/resources/config/types/NpmGithubPublishInfo.mjs +2 -0
- package/dist/esm/api/resources/generatorExec/resources/config/types/NpmRegistryConfig.d.mts +5 -0
- package/dist/esm/api/resources/generatorExec/resources/config/types/NpmRegistryConfig.mjs +2 -0
- package/dist/esm/api/resources/generatorExec/resources/config/types/NpmRegistryConfigV2.d.mts +5 -0
- package/dist/esm/api/resources/generatorExec/resources/config/types/NpmRegistryConfigV2.mjs +2 -0
- package/dist/esm/api/resources/generatorExec/resources/config/types/NugetGithubPublishInfo.d.mts +7 -0
- package/dist/esm/api/resources/generatorExec/resources/config/types/NugetGithubPublishInfo.mjs +2 -0
- package/dist/esm/api/resources/generatorExec/resources/config/types/NugetRegistryConfig.d.mts +5 -0
- package/dist/esm/api/resources/generatorExec/resources/config/types/NugetRegistryConfig.mjs +2 -0
- package/dist/esm/api/resources/generatorExec/resources/config/types/OutputMetadata.d.mts +5 -0
- package/dist/esm/api/resources/generatorExec/resources/config/types/OutputMetadata.mjs +2 -0
- package/dist/esm/api/resources/generatorExec/resources/config/types/OutputMetadataAuthor.d.mts +4 -0
- package/dist/esm/api/resources/generatorExec/resources/config/types/OutputMetadataAuthor.mjs +2 -0
- package/dist/esm/api/resources/generatorExec/resources/config/types/OutputMode.d.mts +13 -0
- package/dist/esm/api/resources/generatorExec/resources/config/types/OutputMode.mjs +2 -0
- package/dist/esm/api/resources/generatorExec/resources/config/types/PostmanConfig.d.mts +4 -0
- package/dist/esm/api/resources/generatorExec/resources/config/types/PostmanConfig.mjs +2 -0
- package/dist/esm/api/resources/generatorExec/resources/config/types/PostmanGithubPublishInfo.d.mts +5 -0
- package/dist/esm/api/resources/generatorExec/resources/config/types/PostmanGithubPublishInfo.mjs +2 -0
- package/dist/esm/api/resources/generatorExec/resources/config/types/PublishingMetadata.d.mts +9 -0
- package/dist/esm/api/resources/generatorExec/resources/config/types/PublishingMetadata.mjs +2 -0
- package/dist/esm/api/resources/generatorExec/resources/config/types/PypiGithubPublishInfo.d.mts +9 -0
- package/dist/esm/api/resources/generatorExec/resources/config/types/PypiGithubPublishInfo.mjs +2 -0
- package/dist/esm/api/resources/generatorExec/resources/config/types/PypiMetadata.d.mts +6 -0
- package/dist/esm/api/resources/generatorExec/resources/config/types/PypiMetadata.mjs +2 -0
- package/dist/esm/api/resources/generatorExec/resources/config/types/PypiRegistryConfig.d.mts +8 -0
- package/dist/esm/api/resources/generatorExec/resources/config/types/PypiRegistryConfig.mjs +2 -0
- package/dist/esm/api/resources/generatorExec/resources/config/types/RemoteGeneratorEnvironment.d.mts +5 -0
- package/dist/esm/api/resources/generatorExec/resources/config/types/RemoteGeneratorEnvironment.mjs +2 -0
- package/dist/esm/api/resources/generatorExec/resources/config/types/RubyGemsGithubPublishInfo.d.mts +7 -0
- package/dist/esm/api/resources/generatorExec/resources/config/types/RubyGemsGithubPublishInfo.mjs +2 -0
- package/dist/esm/api/resources/generatorExec/resources/config/types/RubyGemsRegistryConfig.d.mts +5 -0
- package/dist/esm/api/resources/generatorExec/resources/config/types/RubyGemsRegistryConfig.mjs +2 -0
- package/dist/esm/api/resources/generatorExec/resources/config/types/index.d.mts +38 -0
- package/dist/esm/api/resources/generatorExec/resources/config/types/index.mjs +38 -0
- package/dist/esm/api/resources/generatorExec/resources/index.d.mts +2 -0
- package/dist/esm/api/resources/generatorExec/resources/index.mjs +2 -0
- package/dist/esm/api/resources/index.d.mts +4 -0
- package/dist/esm/api/resources/index.mjs +4 -0
- package/dist/esm/core/exports.d.mts +1 -0
- package/dist/esm/core/exports.mjs +1 -0
- package/dist/esm/core/fetcher/APIResponse.d.mts +20 -0
- package/dist/esm/core/fetcher/APIResponse.mjs +1 -0
- package/dist/esm/core/fetcher/BinaryResponse.d.mts +19 -0
- package/dist/esm/core/fetcher/BinaryResponse.mjs +14 -0
- package/dist/esm/core/fetcher/EndpointMetadata.d.mts +13 -0
- package/dist/esm/core/fetcher/EndpointMetadata.mjs +1 -0
- package/dist/esm/core/fetcher/EndpointSupplier.d.mts +12 -0
- package/dist/esm/core/fetcher/EndpointSupplier.mjs +19 -0
- package/dist/esm/core/fetcher/Fetcher.d.mts +48 -0
- package/dist/esm/core/fetcher/Fetcher.mjs +312 -0
- package/dist/esm/core/fetcher/Headers.d.mts +2 -0
- package/dist/esm/core/fetcher/Headers.mjs +82 -0
- package/dist/esm/core/fetcher/HttpResponsePromise.d.mts +58 -0
- package/dist/esm/core/fetcher/HttpResponsePromise.mjs +99 -0
- package/dist/esm/core/fetcher/RawResponse.d.mts +29 -0
- package/dist/esm/core/fetcher/RawResponse.mjs +40 -0
- package/dist/esm/core/fetcher/Supplier.d.mts +4 -0
- package/dist/esm/core/fetcher/Supplier.mjs +19 -0
- package/dist/esm/core/fetcher/createRequestUrl.d.mts +1 -0
- package/dist/esm/core/fetcher/createRequestUrl.mjs +5 -0
- package/dist/esm/core/fetcher/getErrorResponseBody.d.mts +1 -0
- package/dist/esm/core/fetcher/getErrorResponseBody.mjs +42 -0
- package/dist/esm/core/fetcher/getFetchFn.d.mts +1 -0
- package/dist/esm/core/fetcher/getFetchFn.mjs +14 -0
- package/dist/esm/core/fetcher/getHeader.d.mts +1 -0
- package/dist/esm/core/fetcher/getHeader.mjs +8 -0
- package/dist/esm/core/fetcher/getRequestBody.d.mts +7 -0
- package/dist/esm/core/fetcher/getRequestBody.mjs +24 -0
- package/dist/esm/core/fetcher/getResponseBody.d.mts +1 -0
- package/dist/esm/core/fetcher/getResponseBody.mjs +66 -0
- package/dist/esm/core/fetcher/index.d.mts +11 -0
- package/dist/esm/core/fetcher/index.mjs +6 -0
- package/dist/esm/core/fetcher/makeRequest.d.mts +1 -0
- package/dist/esm/core/fetcher/makeRequest.mjs +36 -0
- package/dist/esm/core/fetcher/requestWithRetries.d.mts +1 -0
- package/dist/esm/core/fetcher/requestWithRetries.mjs +64 -0
- package/dist/esm/core/fetcher/signals.d.mts +5 -0
- package/dist/esm/core/fetcher/signals.mjs +20 -0
- package/dist/esm/core/headers.d.mts +2 -0
- package/dist/esm/core/headers.mjs +27 -0
- package/dist/esm/core/index.d.mts +4 -0
- package/dist/esm/core/index.mjs +4 -0
- package/dist/esm/core/json.d.mts +15 -0
- package/dist/esm/core/json.mjs +19 -0
- package/dist/esm/core/logging/exports.d.mts +18 -0
- package/dist/esm/core/logging/exports.mjs +9 -0
- package/dist/esm/core/logging/index.d.mts +1 -0
- package/dist/esm/core/logging/index.mjs +1 -0
- package/dist/esm/core/logging/logger.d.mts +126 -0
- package/dist/esm/core/logging/logger.mjs +138 -0
- package/dist/esm/core/runtime/index.d.mts +1 -0
- package/dist/esm/core/runtime/index.mjs +1 -0
- package/dist/esm/core/runtime/runtime.d.mts +9 -0
- package/dist/esm/core/runtime/runtime.mjs +100 -0
- package/dist/esm/core/url/encodePathParam.d.mts +1 -0
- package/dist/esm/core/url/encodePathParam.mjs +18 -0
- package/dist/esm/core/url/index.d.mts +3 -0
- package/dist/esm/core/url/index.mjs +3 -0
- package/dist/esm/core/url/join.d.mts +1 -0
- package/dist/esm/core/url/join.mjs +65 -0
- package/dist/esm/core/url/qs.d.mts +6 -0
- package/dist/esm/core/url/qs.mjs +61 -0
- package/dist/esm/errors/FernIrError.d.mts +12 -0
- package/dist/esm/errors/FernIrError.mjs +28 -0
- package/dist/esm/errors/FernIrTimeoutError.d.mts +3 -0
- package/dist/esm/errors/FernIrTimeoutError.mjs +11 -0
- package/dist/esm/errors/handleNonStatusCodeError.d.mts +2 -0
- package/dist/esm/errors/handleNonStatusCodeError.mjs +29 -0
- package/dist/esm/errors/index.d.mts +2 -0
- package/dist/esm/errors/index.mjs +2 -0
- package/dist/esm/exports.d.mts +1 -0
- package/dist/esm/exports.mjs +1 -0
- package/dist/esm/index.d.mts +4 -0
- package/dist/esm/index.mjs +3 -0
- package/dist/esm/version.d.mts +1 -0
- package/dist/esm/version.mjs +1 -0
- package/package.json +65 -0
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
export * from "./BasicLicense.mjs";
|
|
2
|
+
export * from "./CratesGithubPublishInfo.mjs";
|
|
3
|
+
export * from "./CratesRegistryConfig.mjs";
|
|
4
|
+
export * from "./CustomLicense.mjs";
|
|
5
|
+
export * from "./EnvironmentVariable.mjs";
|
|
6
|
+
export * from "./GeneratorConfig.mjs";
|
|
7
|
+
export * from "./GeneratorEnvironment.mjs";
|
|
8
|
+
export * from "./GeneratorOutputConfig.mjs";
|
|
9
|
+
export * from "./GeneratorPublishConfig.mjs";
|
|
10
|
+
export * from "./GeneratorPublishTarget.mjs";
|
|
11
|
+
export * from "./GeneratorRegistriesConfig.mjs";
|
|
12
|
+
export * from "./GeneratorRegistriesConfigV2.mjs";
|
|
13
|
+
export * from "./GithubOutputMode.mjs";
|
|
14
|
+
export * from "./GithubPublishInfo.mjs";
|
|
15
|
+
export * from "./LicenseConfig.mjs";
|
|
16
|
+
export * from "./LicenseId.mjs";
|
|
17
|
+
export * from "./MavenCentralSignature.mjs";
|
|
18
|
+
export * from "./MavenCentralSignatureGithubInfo.mjs";
|
|
19
|
+
export * from "./MavenGithubPublishInfo.mjs";
|
|
20
|
+
export * from "./MavenRegistryConfig.mjs";
|
|
21
|
+
export * from "./MavenRegistryConfigV2.mjs";
|
|
22
|
+
export * from "./NpmGithubPublishInfo.mjs";
|
|
23
|
+
export * from "./NpmRegistryConfig.mjs";
|
|
24
|
+
export * from "./NpmRegistryConfigV2.mjs";
|
|
25
|
+
export * from "./NugetGithubPublishInfo.mjs";
|
|
26
|
+
export * from "./NugetRegistryConfig.mjs";
|
|
27
|
+
export * from "./OutputMetadata.mjs";
|
|
28
|
+
export * from "./OutputMetadataAuthor.mjs";
|
|
29
|
+
export * from "./OutputMode.mjs";
|
|
30
|
+
export * from "./PostmanConfig.mjs";
|
|
31
|
+
export * from "./PostmanGithubPublishInfo.mjs";
|
|
32
|
+
export * from "./PublishingMetadata.mjs";
|
|
33
|
+
export * from "./PypiGithubPublishInfo.mjs";
|
|
34
|
+
export * from "./PypiMetadata.mjs";
|
|
35
|
+
export * from "./PypiRegistryConfig.mjs";
|
|
36
|
+
export * from "./RemoteGeneratorEnvironment.mjs";
|
|
37
|
+
export * from "./RubyGemsGithubPublishInfo.mjs";
|
|
38
|
+
export * from "./RubyGemsRegistryConfig.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./logging/exports.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./logging/exports.mjs";
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { RawResponse } from "./RawResponse.mjs";
|
|
2
|
+
/**
|
|
3
|
+
* The response of an API call.
|
|
4
|
+
* It is a successful response or a failed response.
|
|
5
|
+
*/
|
|
6
|
+
export type APIResponse<Success, Failure> = SuccessfulResponse<Success> | FailedResponse<Failure>;
|
|
7
|
+
export interface SuccessfulResponse<T> {
|
|
8
|
+
ok: true;
|
|
9
|
+
body: T;
|
|
10
|
+
/**
|
|
11
|
+
* @deprecated Use `rawResponse` instead
|
|
12
|
+
*/
|
|
13
|
+
headers?: Record<string, any>;
|
|
14
|
+
rawResponse: RawResponse;
|
|
15
|
+
}
|
|
16
|
+
export interface FailedResponse<T> {
|
|
17
|
+
ok: false;
|
|
18
|
+
error: T;
|
|
19
|
+
rawResponse: RawResponse;
|
|
20
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export type BinaryResponse = {
|
|
2
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/bodyUsed) */
|
|
3
|
+
bodyUsed: Response["bodyUsed"];
|
|
4
|
+
/**
|
|
5
|
+
* Returns a ReadableStream of the response body.
|
|
6
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/body)
|
|
7
|
+
*/
|
|
8
|
+
stream: () => Response["body"];
|
|
9
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/arrayBuffer) */
|
|
10
|
+
arrayBuffer: () => ReturnType<Response["arrayBuffer"]>;
|
|
11
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/blob) */
|
|
12
|
+
blob: () => ReturnType<Response["blob"]>;
|
|
13
|
+
/**
|
|
14
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/bytes)
|
|
15
|
+
* Some versions of the Fetch API may not support this method.
|
|
16
|
+
*/
|
|
17
|
+
bytes?(): ReturnType<Response["bytes"]>;
|
|
18
|
+
};
|
|
19
|
+
export declare function getBinaryResponse(response: Response): BinaryResponse;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export function getBinaryResponse(response) {
|
|
2
|
+
const binaryResponse = {
|
|
3
|
+
get bodyUsed() {
|
|
4
|
+
return response.bodyUsed;
|
|
5
|
+
},
|
|
6
|
+
stream: () => response.body,
|
|
7
|
+
arrayBuffer: response.arrayBuffer.bind(response),
|
|
8
|
+
blob: response.blob.bind(response),
|
|
9
|
+
};
|
|
10
|
+
if ("bytes" in response && typeof response.bytes === "function") {
|
|
11
|
+
binaryResponse.bytes = response.bytes.bind(response);
|
|
12
|
+
}
|
|
13
|
+
return binaryResponse;
|
|
14
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export type SecuritySchemeKey = string;
|
|
2
|
+
/**
|
|
3
|
+
* A collection of security schemes, where the key is the name of the security scheme and the value is the list of scopes required for that scheme.
|
|
4
|
+
* All schemes in the collection must be satisfied for authentication to be successful.
|
|
5
|
+
*/
|
|
6
|
+
export type SecuritySchemeCollection = Record<SecuritySchemeKey, AuthScope[]>;
|
|
7
|
+
export type AuthScope = string;
|
|
8
|
+
export type EndpointMetadata = {
|
|
9
|
+
/**
|
|
10
|
+
* An array of security scheme collections. Each collection represents an alternative way to authenticate.
|
|
11
|
+
*/
|
|
12
|
+
security?: SecuritySchemeCollection[];
|
|
13
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { EndpointMetadata } from "./EndpointMetadata.mjs";
|
|
2
|
+
import type { Supplier } from "./Supplier.mjs";
|
|
3
|
+
type EndpointSupplierFn<T> = (arg: {
|
|
4
|
+
endpointMetadata?: EndpointMetadata;
|
|
5
|
+
}) => T | Promise<T>;
|
|
6
|
+
export type EndpointSupplier<T> = Supplier<T> | EndpointSupplierFn<T>;
|
|
7
|
+
export declare const EndpointSupplier: {
|
|
8
|
+
get: <T>(supplier: EndpointSupplier<T>, arg: {
|
|
9
|
+
endpointMetadata?: EndpointMetadata;
|
|
10
|
+
}) => Promise<T>;
|
|
11
|
+
};
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
export const EndpointSupplier = {
|
|
11
|
+
get: (supplier, arg) => __awaiter(void 0, void 0, void 0, function* () {
|
|
12
|
+
if (typeof supplier === "function") {
|
|
13
|
+
return supplier(arg);
|
|
14
|
+
}
|
|
15
|
+
else {
|
|
16
|
+
return supplier;
|
|
17
|
+
}
|
|
18
|
+
}),
|
|
19
|
+
};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { type LogConfig, type Logger } from "../logging/logger.mjs";
|
|
2
|
+
import type { APIResponse } from "./APIResponse.mjs";
|
|
3
|
+
import type { EndpointMetadata } from "./EndpointMetadata.mjs";
|
|
4
|
+
export type FetchFunction = <R = unknown>(args: Fetcher.Args) => Promise<APIResponse<R, Fetcher.Error>>;
|
|
5
|
+
export declare namespace Fetcher {
|
|
6
|
+
interface Args {
|
|
7
|
+
url: string;
|
|
8
|
+
method: string;
|
|
9
|
+
contentType?: string;
|
|
10
|
+
headers?: Record<string, unknown>;
|
|
11
|
+
queryParameters?: Record<string, unknown>;
|
|
12
|
+
body?: unknown;
|
|
13
|
+
timeoutMs?: number;
|
|
14
|
+
maxRetries?: number;
|
|
15
|
+
withCredentials?: boolean;
|
|
16
|
+
abortSignal?: AbortSignal;
|
|
17
|
+
requestType?: "json" | "file" | "bytes" | "form" | "other";
|
|
18
|
+
responseType?: "json" | "blob" | "sse" | "streaming" | "text" | "arrayBuffer" | "binary-response";
|
|
19
|
+
duplex?: "half";
|
|
20
|
+
endpointMetadata?: EndpointMetadata;
|
|
21
|
+
fetchFn?: typeof fetch;
|
|
22
|
+
logging?: LogConfig | Logger;
|
|
23
|
+
}
|
|
24
|
+
type Error = FailedStatusCodeError | NonJsonError | BodyIsNullError | TimeoutError | UnknownError;
|
|
25
|
+
interface FailedStatusCodeError {
|
|
26
|
+
reason: "status-code";
|
|
27
|
+
statusCode: number;
|
|
28
|
+
body: unknown;
|
|
29
|
+
}
|
|
30
|
+
interface NonJsonError {
|
|
31
|
+
reason: "non-json";
|
|
32
|
+
statusCode: number;
|
|
33
|
+
rawBody: string;
|
|
34
|
+
}
|
|
35
|
+
interface BodyIsNullError {
|
|
36
|
+
reason: "body-is-null";
|
|
37
|
+
statusCode: number;
|
|
38
|
+
}
|
|
39
|
+
interface TimeoutError {
|
|
40
|
+
reason: "timeout";
|
|
41
|
+
}
|
|
42
|
+
interface UnknownError {
|
|
43
|
+
reason: "unknown";
|
|
44
|
+
errorMessage: string;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
export declare function fetcherImpl<R = unknown>(args: Fetcher.Args): Promise<APIResponse<R, Fetcher.Error>>;
|
|
48
|
+
export declare const fetcher: FetchFunction;
|
|
@@ -0,0 +1,312 @@
|
|
|
1
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
+
});
|
|
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 } from "./getResponseBody.mjs";
|
|
18
|
+
import { Headers } from "./Headers.mjs";
|
|
19
|
+
import { makeRequest } from "./makeRequest.mjs";
|
|
20
|
+
import { abortRawResponse, toRawResponse, unknownRawResponse } from "./RawResponse.mjs";
|
|
21
|
+
import { requestWithRetries } from "./requestWithRetries.mjs";
|
|
22
|
+
const SENSITIVE_HEADERS = new Set([
|
|
23
|
+
"authorization",
|
|
24
|
+
"www-authenticate",
|
|
25
|
+
"x-api-key",
|
|
26
|
+
"api-key",
|
|
27
|
+
"apikey",
|
|
28
|
+
"x-api-token",
|
|
29
|
+
"x-auth-token",
|
|
30
|
+
"auth-token",
|
|
31
|
+
"cookie",
|
|
32
|
+
"set-cookie",
|
|
33
|
+
"proxy-authorization",
|
|
34
|
+
"proxy-authenticate",
|
|
35
|
+
"x-csrf-token",
|
|
36
|
+
"x-xsrf-token",
|
|
37
|
+
"x-session-token",
|
|
38
|
+
"x-access-token",
|
|
39
|
+
]);
|
|
40
|
+
function redactHeaders(headers) {
|
|
41
|
+
const filtered = {};
|
|
42
|
+
for (const [key, value] of headers instanceof Headers ? headers.entries() : Object.entries(headers)) {
|
|
43
|
+
if (SENSITIVE_HEADERS.has(key.toLowerCase())) {
|
|
44
|
+
filtered[key] = "[REDACTED]";
|
|
45
|
+
}
|
|
46
|
+
else {
|
|
47
|
+
filtered[key] = value;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
return filtered;
|
|
51
|
+
}
|
|
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
|
+
function redactQueryParameters(queryParameters) {
|
|
73
|
+
if (queryParameters == null) {
|
|
74
|
+
return queryParameters;
|
|
75
|
+
}
|
|
76
|
+
const redacted = {};
|
|
77
|
+
for (const [key, value] of Object.entries(queryParameters)) {
|
|
78
|
+
if (SENSITIVE_QUERY_PARAMS.has(key.toLowerCase())) {
|
|
79
|
+
redacted[key] = "[REDACTED]";
|
|
80
|
+
}
|
|
81
|
+
else {
|
|
82
|
+
redacted[key] = value;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
return redacted;
|
|
86
|
+
}
|
|
87
|
+
function redactUrl(url) {
|
|
88
|
+
const protocolIndex = url.indexOf("://");
|
|
89
|
+
if (protocolIndex === -1)
|
|
90
|
+
return url;
|
|
91
|
+
const afterProtocol = protocolIndex + 3;
|
|
92
|
+
// Find the first delimiter that marks the end of the authority section
|
|
93
|
+
const pathStart = url.indexOf("/", afterProtocol);
|
|
94
|
+
let queryStart = url.indexOf("?", afterProtocol);
|
|
95
|
+
let fragmentStart = url.indexOf("#", afterProtocol);
|
|
96
|
+
const firstDelimiter = Math.min(pathStart === -1 ? url.length : pathStart, queryStart === -1 ? url.length : queryStart, fragmentStart === -1 ? url.length : fragmentStart);
|
|
97
|
+
// Find the LAST @ before the delimiter (handles multiple @ in credentials)
|
|
98
|
+
let atIndex = -1;
|
|
99
|
+
for (let i = afterProtocol; i < firstDelimiter; i++) {
|
|
100
|
+
if (url[i] === "@") {
|
|
101
|
+
atIndex = i;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
if (atIndex !== -1) {
|
|
105
|
+
url = `${url.slice(0, afterProtocol)}[REDACTED]@${url.slice(atIndex + 1)}`;
|
|
106
|
+
}
|
|
107
|
+
// Recalculate queryStart since url might have changed
|
|
108
|
+
queryStart = url.indexOf("?");
|
|
109
|
+
if (queryStart === -1)
|
|
110
|
+
return url;
|
|
111
|
+
fragmentStart = url.indexOf("#", queryStart);
|
|
112
|
+
const queryEnd = fragmentStart !== -1 ? fragmentStart : url.length;
|
|
113
|
+
const queryString = url.slice(queryStart + 1, queryEnd);
|
|
114
|
+
if (queryString.length === 0)
|
|
115
|
+
return url;
|
|
116
|
+
// FAST PATH: Quick check if any sensitive keywords present
|
|
117
|
+
// Using indexOf is faster than regex for simple substring matching
|
|
118
|
+
const lower = queryString.toLowerCase();
|
|
119
|
+
const hasSensitive = lower.includes("token") ||
|
|
120
|
+
lower.includes("key") ||
|
|
121
|
+
lower.includes("password") ||
|
|
122
|
+
lower.includes("passwd") ||
|
|
123
|
+
lower.includes("secret") ||
|
|
124
|
+
lower.includes("session") ||
|
|
125
|
+
lower.includes("auth");
|
|
126
|
+
if (!hasSensitive) {
|
|
127
|
+
return url;
|
|
128
|
+
}
|
|
129
|
+
// SLOW PATH: Parse and redact
|
|
130
|
+
const redactedParams = [];
|
|
131
|
+
const params = queryString.split("&");
|
|
132
|
+
for (const param of params) {
|
|
133
|
+
const equalIndex = param.indexOf("=");
|
|
134
|
+
if (equalIndex === -1) {
|
|
135
|
+
redactedParams.push(param);
|
|
136
|
+
continue;
|
|
137
|
+
}
|
|
138
|
+
const key = param.slice(0, equalIndex);
|
|
139
|
+
let shouldRedact = SENSITIVE_QUERY_PARAMS.has(key.toLowerCase());
|
|
140
|
+
if (!shouldRedact && key.includes("%")) {
|
|
141
|
+
try {
|
|
142
|
+
const decodedKey = decodeURIComponent(key);
|
|
143
|
+
shouldRedact = SENSITIVE_QUERY_PARAMS.has(decodedKey.toLowerCase());
|
|
144
|
+
}
|
|
145
|
+
catch (_a) { }
|
|
146
|
+
}
|
|
147
|
+
redactedParams.push(shouldRedact ? `${key}=[REDACTED]` : param);
|
|
148
|
+
}
|
|
149
|
+
return url.slice(0, queryStart + 1) + redactedParams.join("&") + url.slice(queryEnd);
|
|
150
|
+
}
|
|
151
|
+
function getHeaders(args) {
|
|
152
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
153
|
+
var _a;
|
|
154
|
+
const newHeaders = new Headers();
|
|
155
|
+
newHeaders.set("Accept", args.responseType === "json" ? "application/json" : args.responseType === "text" ? "text/plain" : "*/*");
|
|
156
|
+
if (args.body !== undefined && args.contentType != null) {
|
|
157
|
+
newHeaders.set("Content-Type", args.contentType);
|
|
158
|
+
}
|
|
159
|
+
if (args.headers == null) {
|
|
160
|
+
return newHeaders;
|
|
161
|
+
}
|
|
162
|
+
for (const [key, value] of Object.entries(args.headers)) {
|
|
163
|
+
const result = yield EndpointSupplier.get(value, { endpointMetadata: (_a = args.endpointMetadata) !== null && _a !== void 0 ? _a : {} });
|
|
164
|
+
if (typeof result === "string") {
|
|
165
|
+
newHeaders.set(key, result);
|
|
166
|
+
continue;
|
|
167
|
+
}
|
|
168
|
+
if (result == null) {
|
|
169
|
+
continue;
|
|
170
|
+
}
|
|
171
|
+
newHeaders.set(key, `${result}`);
|
|
172
|
+
}
|
|
173
|
+
return newHeaders;
|
|
174
|
+
});
|
|
175
|
+
}
|
|
176
|
+
export function fetcherImpl(args) {
|
|
177
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
178
|
+
var _a, _b, _c;
|
|
179
|
+
const url = createRequestUrl(args.url, args.queryParameters);
|
|
180
|
+
const requestBody = yield getRequestBody({
|
|
181
|
+
body: args.body,
|
|
182
|
+
type: (_a = args.requestType) !== null && _a !== void 0 ? _a : "other",
|
|
183
|
+
});
|
|
184
|
+
const fetchFn = (_b = args.fetchFn) !== null && _b !== void 0 ? _b : (yield getFetchFn());
|
|
185
|
+
const headers = yield getHeaders(args);
|
|
186
|
+
const logger = createLogger(args.logging);
|
|
187
|
+
if (logger.isDebug()) {
|
|
188
|
+
const metadata = {
|
|
189
|
+
method: args.method,
|
|
190
|
+
url: redactUrl(url),
|
|
191
|
+
headers: redactHeaders(headers),
|
|
192
|
+
queryParameters: redactQueryParameters(args.queryParameters),
|
|
193
|
+
hasBody: requestBody != null,
|
|
194
|
+
};
|
|
195
|
+
logger.debug("Making HTTP request", metadata);
|
|
196
|
+
}
|
|
197
|
+
try {
|
|
198
|
+
const response = yield requestWithRetries(() => __awaiter(this, void 0, void 0, function* () {
|
|
199
|
+
return makeRequest(fetchFn, url, args.method, headers, requestBody, args.timeoutMs, args.abortSignal, args.withCredentials, args.duplex);
|
|
200
|
+
}), args.maxRetries);
|
|
201
|
+
if (response.status >= 200 && response.status < 400) {
|
|
202
|
+
if (logger.isDebug()) {
|
|
203
|
+
const metadata = {
|
|
204
|
+
method: args.method,
|
|
205
|
+
url: redactUrl(url),
|
|
206
|
+
statusCode: response.status,
|
|
207
|
+
responseHeaders: redactHeaders(response.headers),
|
|
208
|
+
};
|
|
209
|
+
logger.debug("HTTP request succeeded", metadata);
|
|
210
|
+
}
|
|
211
|
+
const body = yield getResponseBody(response, args.responseType);
|
|
212
|
+
return {
|
|
213
|
+
ok: true,
|
|
214
|
+
body: body,
|
|
215
|
+
headers: response.headers,
|
|
216
|
+
rawResponse: toRawResponse(response),
|
|
217
|
+
};
|
|
218
|
+
}
|
|
219
|
+
else {
|
|
220
|
+
if (logger.isError()) {
|
|
221
|
+
const metadata = {
|
|
222
|
+
method: args.method,
|
|
223
|
+
url: redactUrl(url),
|
|
224
|
+
statusCode: response.status,
|
|
225
|
+
responseHeaders: redactHeaders(Object.fromEntries(response.headers.entries())),
|
|
226
|
+
};
|
|
227
|
+
logger.error("HTTP request failed with error status", metadata);
|
|
228
|
+
}
|
|
229
|
+
return {
|
|
230
|
+
ok: false,
|
|
231
|
+
error: {
|
|
232
|
+
reason: "status-code",
|
|
233
|
+
statusCode: response.status,
|
|
234
|
+
body: yield getErrorResponseBody(response),
|
|
235
|
+
},
|
|
236
|
+
rawResponse: toRawResponse(response),
|
|
237
|
+
};
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
catch (error) {
|
|
241
|
+
if ((_c = args.abortSignal) === null || _c === void 0 ? void 0 : _c.aborted) {
|
|
242
|
+
if (logger.isError()) {
|
|
243
|
+
const metadata = {
|
|
244
|
+
method: args.method,
|
|
245
|
+
url: redactUrl(url),
|
|
246
|
+
};
|
|
247
|
+
logger.error("HTTP request was aborted", metadata);
|
|
248
|
+
}
|
|
249
|
+
return {
|
|
250
|
+
ok: false,
|
|
251
|
+
error: {
|
|
252
|
+
reason: "unknown",
|
|
253
|
+
errorMessage: "The user aborted a request",
|
|
254
|
+
},
|
|
255
|
+
rawResponse: abortRawResponse,
|
|
256
|
+
};
|
|
257
|
+
}
|
|
258
|
+
else if (error instanceof Error && error.name === "AbortError") {
|
|
259
|
+
if (logger.isError()) {
|
|
260
|
+
const metadata = {
|
|
261
|
+
method: args.method,
|
|
262
|
+
url: redactUrl(url),
|
|
263
|
+
timeoutMs: args.timeoutMs,
|
|
264
|
+
};
|
|
265
|
+
logger.error("HTTP request timed out", metadata);
|
|
266
|
+
}
|
|
267
|
+
return {
|
|
268
|
+
ok: false,
|
|
269
|
+
error: {
|
|
270
|
+
reason: "timeout",
|
|
271
|
+
},
|
|
272
|
+
rawResponse: abortRawResponse,
|
|
273
|
+
};
|
|
274
|
+
}
|
|
275
|
+
else if (error instanceof Error) {
|
|
276
|
+
if (logger.isError()) {
|
|
277
|
+
const metadata = {
|
|
278
|
+
method: args.method,
|
|
279
|
+
url: redactUrl(url),
|
|
280
|
+
errorMessage: error.message,
|
|
281
|
+
};
|
|
282
|
+
logger.error("HTTP request failed with error", metadata);
|
|
283
|
+
}
|
|
284
|
+
return {
|
|
285
|
+
ok: false,
|
|
286
|
+
error: {
|
|
287
|
+
reason: "unknown",
|
|
288
|
+
errorMessage: error.message,
|
|
289
|
+
},
|
|
290
|
+
rawResponse: unknownRawResponse,
|
|
291
|
+
};
|
|
292
|
+
}
|
|
293
|
+
if (logger.isError()) {
|
|
294
|
+
const metadata = {
|
|
295
|
+
method: args.method,
|
|
296
|
+
url: redactUrl(url),
|
|
297
|
+
error: toJson(error),
|
|
298
|
+
};
|
|
299
|
+
logger.error("HTTP request failed with unknown error", metadata);
|
|
300
|
+
}
|
|
301
|
+
return {
|
|
302
|
+
ok: false,
|
|
303
|
+
error: {
|
|
304
|
+
reason: "unknown",
|
|
305
|
+
errorMessage: toJson(error),
|
|
306
|
+
},
|
|
307
|
+
rawResponse: unknownRawResponse,
|
|
308
|
+
};
|
|
309
|
+
}
|
|
310
|
+
});
|
|
311
|
+
}
|
|
312
|
+
export const fetcher = fetcherImpl;
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
let Headers;
|
|
2
|
+
if (typeof globalThis.Headers !== "undefined") {
|
|
3
|
+
Headers = globalThis.Headers;
|
|
4
|
+
}
|
|
5
|
+
else {
|
|
6
|
+
Headers = class Headers {
|
|
7
|
+
constructor(init) {
|
|
8
|
+
this.headers = new Map();
|
|
9
|
+
if (init) {
|
|
10
|
+
if (init instanceof Headers) {
|
|
11
|
+
init.forEach((value, key) => this.append(key, value));
|
|
12
|
+
}
|
|
13
|
+
else if (Array.isArray(init)) {
|
|
14
|
+
for (const [key, value] of init) {
|
|
15
|
+
if (typeof key === "string" && typeof value === "string") {
|
|
16
|
+
this.append(key, value);
|
|
17
|
+
}
|
|
18
|
+
else {
|
|
19
|
+
throw new TypeError("Each header entry must be a [string, string] tuple");
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
else {
|
|
24
|
+
for (const [key, value] of Object.entries(init)) {
|
|
25
|
+
if (typeof value === "string") {
|
|
26
|
+
this.append(key, value);
|
|
27
|
+
}
|
|
28
|
+
else {
|
|
29
|
+
throw new TypeError("Header values must be strings");
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
append(name, value) {
|
|
36
|
+
const key = name.toLowerCase();
|
|
37
|
+
const existing = this.headers.get(key) || [];
|
|
38
|
+
this.headers.set(key, [...existing, value]);
|
|
39
|
+
}
|
|
40
|
+
delete(name) {
|
|
41
|
+
const key = name.toLowerCase();
|
|
42
|
+
this.headers.delete(key);
|
|
43
|
+
}
|
|
44
|
+
get(name) {
|
|
45
|
+
const key = name.toLowerCase();
|
|
46
|
+
const values = this.headers.get(key);
|
|
47
|
+
return values ? values.join(", ") : null;
|
|
48
|
+
}
|
|
49
|
+
has(name) {
|
|
50
|
+
const key = name.toLowerCase();
|
|
51
|
+
return this.headers.has(key);
|
|
52
|
+
}
|
|
53
|
+
set(name, value) {
|
|
54
|
+
const key = name.toLowerCase();
|
|
55
|
+
this.headers.set(key, [value]);
|
|
56
|
+
}
|
|
57
|
+
forEach(callbackfn, thisArg) {
|
|
58
|
+
const boundCallback = thisArg ? callbackfn.bind(thisArg) : callbackfn;
|
|
59
|
+
this.headers.forEach((values, key) => boundCallback(values.join(", "), key, this));
|
|
60
|
+
}
|
|
61
|
+
getSetCookie() {
|
|
62
|
+
return this.headers.get("set-cookie") || [];
|
|
63
|
+
}
|
|
64
|
+
*entries() {
|
|
65
|
+
for (const [key, values] of this.headers.entries()) {
|
|
66
|
+
yield [key, values.join(", ")];
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
*keys() {
|
|
70
|
+
yield* this.headers.keys();
|
|
71
|
+
}
|
|
72
|
+
*values() {
|
|
73
|
+
for (const values of this.headers.values()) {
|
|
74
|
+
yield values.join(", ");
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
[Symbol.iterator]() {
|
|
78
|
+
return this.entries();
|
|
79
|
+
}
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
export { Headers };
|