@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,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Serialize a value to JSON
|
|
3
|
+
* @param value A JavaScript value, usually an object or array, to be converted.
|
|
4
|
+
* @param replacer A function that transforms the results.
|
|
5
|
+
* @param space Adds indentation, white space, and line break characters to the return-value JSON text to make it easier to read.
|
|
6
|
+
* @returns JSON string
|
|
7
|
+
*/
|
|
8
|
+
export declare const toJson: (value: unknown, replacer?: (this: unknown, key: string, value: unknown) => unknown, space?: string | number) => string;
|
|
9
|
+
/**
|
|
10
|
+
* Parse JSON string to object, array, or other type
|
|
11
|
+
* @param text A valid JSON string.
|
|
12
|
+
* @param reviver A function that transforms the results. This function is called for each member of the object. If a member contains nested objects, the nested objects are transformed before the parent object is.
|
|
13
|
+
* @returns Parsed object, array, or other type
|
|
14
|
+
*/
|
|
15
|
+
export declare function fromJson<T = unknown>(text: string, reviver?: (this: unknown, key: string, value: unknown) => unknown): T;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Serialize a value to JSON
|
|
3
|
+
* @param value A JavaScript value, usually an object or array, to be converted.
|
|
4
|
+
* @param replacer A function that transforms the results.
|
|
5
|
+
* @param space Adds indentation, white space, and line break characters to the return-value JSON text to make it easier to read.
|
|
6
|
+
* @returns JSON string
|
|
7
|
+
*/
|
|
8
|
+
export const toJson = (value, replacer, space) => {
|
|
9
|
+
return JSON.stringify(value, replacer, space);
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* Parse JSON string to object, array, or other type
|
|
13
|
+
* @param text A valid JSON string.
|
|
14
|
+
* @param reviver A function that transforms the results. This function is called for each member of the object. If a member contains nested objects, the nested objects are transformed before the parent object is.
|
|
15
|
+
* @returns Parsed object, array, or other type
|
|
16
|
+
*/
|
|
17
|
+
export function fromJson(text, reviver) {
|
|
18
|
+
return JSON.parse(text, reviver);
|
|
19
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as logger from "./logger.mjs";
|
|
2
|
+
export declare namespace logging {
|
|
3
|
+
/**
|
|
4
|
+
* Configuration for logger instances.
|
|
5
|
+
*/
|
|
6
|
+
type LogConfig = logger.LogConfig;
|
|
7
|
+
type LogLevel = logger.LogLevel;
|
|
8
|
+
const LogLevel: typeof logger.LogLevel;
|
|
9
|
+
type ILogger = logger.ILogger;
|
|
10
|
+
/**
|
|
11
|
+
* Console logger implementation that outputs to the console.
|
|
12
|
+
*/
|
|
13
|
+
type ConsoleLogger = logger.ConsoleLogger;
|
|
14
|
+
/**
|
|
15
|
+
* Console logger implementation that outputs to the console.
|
|
16
|
+
*/
|
|
17
|
+
const ConsoleLogger: typeof logger.ConsoleLogger;
|
|
18
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as logger from "./logger.mjs";
|
|
2
|
+
export var logging;
|
|
3
|
+
(function (logging) {
|
|
4
|
+
logging.LogLevel = logger.LogLevel;
|
|
5
|
+
/**
|
|
6
|
+
* Console logger implementation that outputs to the console.
|
|
7
|
+
*/
|
|
8
|
+
logging.ConsoleLogger = logger.ConsoleLogger;
|
|
9
|
+
})(logging || (logging = {}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./logger.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./logger.mjs";
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
export declare const LogLevel: {
|
|
2
|
+
readonly Debug: "debug";
|
|
3
|
+
readonly Info: "info";
|
|
4
|
+
readonly Warn: "warn";
|
|
5
|
+
readonly Error: "error";
|
|
6
|
+
};
|
|
7
|
+
export type LogLevel = (typeof LogLevel)[keyof typeof LogLevel];
|
|
8
|
+
export interface ILogger {
|
|
9
|
+
/**
|
|
10
|
+
* Logs a debug message.
|
|
11
|
+
* @param message - The message to log
|
|
12
|
+
* @param args - Additional arguments to log
|
|
13
|
+
*/
|
|
14
|
+
debug(message: string, ...args: unknown[]): void;
|
|
15
|
+
/**
|
|
16
|
+
* Logs an info message.
|
|
17
|
+
* @param message - The message to log
|
|
18
|
+
* @param args - Additional arguments to log
|
|
19
|
+
*/
|
|
20
|
+
info(message: string, ...args: unknown[]): void;
|
|
21
|
+
/**
|
|
22
|
+
* Logs a warning message.
|
|
23
|
+
* @param message - The message to log
|
|
24
|
+
* @param args - Additional arguments to log
|
|
25
|
+
*/
|
|
26
|
+
warn(message: string, ...args: unknown[]): void;
|
|
27
|
+
/**
|
|
28
|
+
* Logs an error message.
|
|
29
|
+
* @param message - The message to log
|
|
30
|
+
* @param args - Additional arguments to log
|
|
31
|
+
*/
|
|
32
|
+
error(message: string, ...args: unknown[]): void;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Configuration for logger initialization.
|
|
36
|
+
*/
|
|
37
|
+
export interface LogConfig {
|
|
38
|
+
/**
|
|
39
|
+
* Minimum log level to output.
|
|
40
|
+
* @default LogLevel.Info
|
|
41
|
+
*/
|
|
42
|
+
level?: LogLevel;
|
|
43
|
+
/**
|
|
44
|
+
* Logger implementation to use.
|
|
45
|
+
* @default new ConsoleLogger()
|
|
46
|
+
*/
|
|
47
|
+
logger?: ILogger;
|
|
48
|
+
/**
|
|
49
|
+
* Whether logging should be silenced.
|
|
50
|
+
* @default true
|
|
51
|
+
*/
|
|
52
|
+
silent?: boolean;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Default console-based logger implementation.
|
|
56
|
+
*/
|
|
57
|
+
export declare class ConsoleLogger implements ILogger {
|
|
58
|
+
debug(message: string, ...args: unknown[]): void;
|
|
59
|
+
info(message: string, ...args: unknown[]): void;
|
|
60
|
+
warn(message: string, ...args: unknown[]): void;
|
|
61
|
+
error(message: string, ...args: unknown[]): void;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Logger class that provides level-based logging functionality.
|
|
65
|
+
*/
|
|
66
|
+
export declare class Logger {
|
|
67
|
+
private readonly level;
|
|
68
|
+
private readonly logger;
|
|
69
|
+
private readonly silent;
|
|
70
|
+
/**
|
|
71
|
+
* Creates a new logger instance.
|
|
72
|
+
* @param config - Logger configuration
|
|
73
|
+
*/
|
|
74
|
+
constructor(config: Required<LogConfig>);
|
|
75
|
+
/**
|
|
76
|
+
* Checks if a log level should be output based on configuration.
|
|
77
|
+
* @param level - The log level to check
|
|
78
|
+
* @returns True if the level should be logged
|
|
79
|
+
*/
|
|
80
|
+
shouldLog(level: LogLevel): boolean;
|
|
81
|
+
/**
|
|
82
|
+
* Checks if debug logging is enabled.
|
|
83
|
+
* @returns True if debug logs should be output
|
|
84
|
+
*/
|
|
85
|
+
isDebug(): boolean;
|
|
86
|
+
/**
|
|
87
|
+
* Logs a debug message if debug logging is enabled.
|
|
88
|
+
* @param message - The message to log
|
|
89
|
+
* @param args - Additional arguments to log
|
|
90
|
+
*/
|
|
91
|
+
debug(message: string, ...args: unknown[]): void;
|
|
92
|
+
/**
|
|
93
|
+
* Checks if info logging is enabled.
|
|
94
|
+
* @returns True if info logs should be output
|
|
95
|
+
*/
|
|
96
|
+
isInfo(): boolean;
|
|
97
|
+
/**
|
|
98
|
+
* Logs an info message if info logging is enabled.
|
|
99
|
+
* @param message - The message to log
|
|
100
|
+
* @param args - Additional arguments to log
|
|
101
|
+
*/
|
|
102
|
+
info(message: string, ...args: unknown[]): void;
|
|
103
|
+
/**
|
|
104
|
+
* Checks if warning logging is enabled.
|
|
105
|
+
* @returns True if warning logs should be output
|
|
106
|
+
*/
|
|
107
|
+
isWarn(): boolean;
|
|
108
|
+
/**
|
|
109
|
+
* Logs a warning message if warning logging is enabled.
|
|
110
|
+
* @param message - The message to log
|
|
111
|
+
* @param args - Additional arguments to log
|
|
112
|
+
*/
|
|
113
|
+
warn(message: string, ...args: unknown[]): void;
|
|
114
|
+
/**
|
|
115
|
+
* Checks if error logging is enabled.
|
|
116
|
+
* @returns True if error logs should be output
|
|
117
|
+
*/
|
|
118
|
+
isError(): boolean;
|
|
119
|
+
/**
|
|
120
|
+
* Logs an error message if error logging is enabled.
|
|
121
|
+
* @param message - The message to log
|
|
122
|
+
* @param args - Additional arguments to log
|
|
123
|
+
*/
|
|
124
|
+
error(message: string, ...args: unknown[]): void;
|
|
125
|
+
}
|
|
126
|
+
export declare function createLogger(config?: LogConfig | Logger): Logger;
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
export const LogLevel = {
|
|
2
|
+
Debug: "debug",
|
|
3
|
+
Info: "info",
|
|
4
|
+
Warn: "warn",
|
|
5
|
+
Error: "error",
|
|
6
|
+
};
|
|
7
|
+
const logLevelMap = {
|
|
8
|
+
[LogLevel.Debug]: 1,
|
|
9
|
+
[LogLevel.Info]: 2,
|
|
10
|
+
[LogLevel.Warn]: 3,
|
|
11
|
+
[LogLevel.Error]: 4,
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* Default console-based logger implementation.
|
|
15
|
+
*/
|
|
16
|
+
export class ConsoleLogger {
|
|
17
|
+
debug(message, ...args) {
|
|
18
|
+
console.debug(message, ...args);
|
|
19
|
+
}
|
|
20
|
+
info(message, ...args) {
|
|
21
|
+
console.info(message, ...args);
|
|
22
|
+
}
|
|
23
|
+
warn(message, ...args) {
|
|
24
|
+
console.warn(message, ...args);
|
|
25
|
+
}
|
|
26
|
+
error(message, ...args) {
|
|
27
|
+
console.error(message, ...args);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Logger class that provides level-based logging functionality.
|
|
32
|
+
*/
|
|
33
|
+
export class Logger {
|
|
34
|
+
/**
|
|
35
|
+
* Creates a new logger instance.
|
|
36
|
+
* @param config - Logger configuration
|
|
37
|
+
*/
|
|
38
|
+
constructor(config) {
|
|
39
|
+
this.level = logLevelMap[config.level];
|
|
40
|
+
this.logger = config.logger;
|
|
41
|
+
this.silent = config.silent;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Checks if a log level should be output based on configuration.
|
|
45
|
+
* @param level - The log level to check
|
|
46
|
+
* @returns True if the level should be logged
|
|
47
|
+
*/
|
|
48
|
+
shouldLog(level) {
|
|
49
|
+
return !this.silent && this.level <= logLevelMap[level];
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Checks if debug logging is enabled.
|
|
53
|
+
* @returns True if debug logs should be output
|
|
54
|
+
*/
|
|
55
|
+
isDebug() {
|
|
56
|
+
return this.shouldLog(LogLevel.Debug);
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Logs a debug message if debug logging is enabled.
|
|
60
|
+
* @param message - The message to log
|
|
61
|
+
* @param args - Additional arguments to log
|
|
62
|
+
*/
|
|
63
|
+
debug(message, ...args) {
|
|
64
|
+
if (this.isDebug()) {
|
|
65
|
+
this.logger.debug(message, ...args);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Checks if info logging is enabled.
|
|
70
|
+
* @returns True if info logs should be output
|
|
71
|
+
*/
|
|
72
|
+
isInfo() {
|
|
73
|
+
return this.shouldLog(LogLevel.Info);
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Logs an info message if info logging is enabled.
|
|
77
|
+
* @param message - The message to log
|
|
78
|
+
* @param args - Additional arguments to log
|
|
79
|
+
*/
|
|
80
|
+
info(message, ...args) {
|
|
81
|
+
if (this.isInfo()) {
|
|
82
|
+
this.logger.info(message, ...args);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* Checks if warning logging is enabled.
|
|
87
|
+
* @returns True if warning logs should be output
|
|
88
|
+
*/
|
|
89
|
+
isWarn() {
|
|
90
|
+
return this.shouldLog(LogLevel.Warn);
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* Logs a warning message if warning logging is enabled.
|
|
94
|
+
* @param message - The message to log
|
|
95
|
+
* @param args - Additional arguments to log
|
|
96
|
+
*/
|
|
97
|
+
warn(message, ...args) {
|
|
98
|
+
if (this.isWarn()) {
|
|
99
|
+
this.logger.warn(message, ...args);
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* Checks if error logging is enabled.
|
|
104
|
+
* @returns True if error logs should be output
|
|
105
|
+
*/
|
|
106
|
+
isError() {
|
|
107
|
+
return this.shouldLog(LogLevel.Error);
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* Logs an error message if error logging is enabled.
|
|
111
|
+
* @param message - The message to log
|
|
112
|
+
* @param args - Additional arguments to log
|
|
113
|
+
*/
|
|
114
|
+
error(message, ...args) {
|
|
115
|
+
if (this.isError()) {
|
|
116
|
+
this.logger.error(message, ...args);
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
export function createLogger(config) {
|
|
121
|
+
var _a, _b, _c;
|
|
122
|
+
if (config == null) {
|
|
123
|
+
return defaultLogger;
|
|
124
|
+
}
|
|
125
|
+
if (config instanceof Logger) {
|
|
126
|
+
return config;
|
|
127
|
+
}
|
|
128
|
+
config = config !== null && config !== void 0 ? config : {};
|
|
129
|
+
(_a = config.level) !== null && _a !== void 0 ? _a : (config.level = LogLevel.Info);
|
|
130
|
+
(_b = config.logger) !== null && _b !== void 0 ? _b : (config.logger = new ConsoleLogger());
|
|
131
|
+
(_c = config.silent) !== null && _c !== void 0 ? _c : (config.silent = true);
|
|
132
|
+
return new Logger(config);
|
|
133
|
+
}
|
|
134
|
+
const defaultLogger = new Logger({
|
|
135
|
+
level: LogLevel.Info,
|
|
136
|
+
logger: new ConsoleLogger(),
|
|
137
|
+
silent: true,
|
|
138
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { RUNTIME } from "./runtime.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { RUNTIME } from "./runtime.mjs";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A constant that indicates which environment and version the SDK is running in.
|
|
3
|
+
*/
|
|
4
|
+
export declare const RUNTIME: Runtime;
|
|
5
|
+
export interface Runtime {
|
|
6
|
+
type: "browser" | "web-worker" | "deno" | "bun" | "node" | "react-native" | "unknown" | "workerd" | "edge-runtime";
|
|
7
|
+
version?: string;
|
|
8
|
+
parsedVersion?: number;
|
|
9
|
+
}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A constant that indicates which environment and version the SDK is running in.
|
|
3
|
+
*/
|
|
4
|
+
export const RUNTIME = evaluateRuntime();
|
|
5
|
+
function evaluateRuntime() {
|
|
6
|
+
var _a, _b, _c, _d, _e;
|
|
7
|
+
/**
|
|
8
|
+
* A constant that indicates whether the environment the code is running is a Web Browser.
|
|
9
|
+
*/
|
|
10
|
+
const isBrowser = typeof window !== "undefined" && typeof window.document !== "undefined";
|
|
11
|
+
if (isBrowser) {
|
|
12
|
+
return {
|
|
13
|
+
type: "browser",
|
|
14
|
+
version: window.navigator.userAgent,
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* A constant that indicates whether the environment the code is running is Cloudflare.
|
|
19
|
+
* https://developers.cloudflare.com/workers/runtime-apis/web-standards/#navigatoruseragent
|
|
20
|
+
*/
|
|
21
|
+
const isCloudflare = typeof globalThis !== "undefined" && ((_a = globalThis === null || globalThis === void 0 ? void 0 : globalThis.navigator) === null || _a === void 0 ? void 0 : _a.userAgent) === "Cloudflare-Workers";
|
|
22
|
+
if (isCloudflare) {
|
|
23
|
+
return {
|
|
24
|
+
type: "workerd",
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* A constant that indicates whether the environment the code is running is Edge Runtime.
|
|
29
|
+
* https://vercel.com/docs/functions/runtimes/edge-runtime#check-if-you're-running-on-the-edge-runtime
|
|
30
|
+
*/
|
|
31
|
+
const isEdgeRuntime = typeof EdgeRuntime === "string";
|
|
32
|
+
if (isEdgeRuntime) {
|
|
33
|
+
return {
|
|
34
|
+
type: "edge-runtime",
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* A constant that indicates whether the environment the code is running is a Web Worker.
|
|
39
|
+
*/
|
|
40
|
+
const isWebWorker = typeof self === "object" &&
|
|
41
|
+
typeof (self === null || self === void 0 ? void 0 : self.importScripts) === "function" &&
|
|
42
|
+
(((_b = self.constructor) === null || _b === void 0 ? void 0 : _b.name) === "DedicatedWorkerGlobalScope" ||
|
|
43
|
+
((_c = self.constructor) === null || _c === void 0 ? void 0 : _c.name) === "ServiceWorkerGlobalScope" ||
|
|
44
|
+
((_d = self.constructor) === null || _d === void 0 ? void 0 : _d.name) === "SharedWorkerGlobalScope");
|
|
45
|
+
if (isWebWorker) {
|
|
46
|
+
return {
|
|
47
|
+
type: "web-worker",
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* A constant that indicates whether the environment the code is running is Deno.
|
|
52
|
+
* FYI Deno spoofs process.versions.node, see https://deno.land/std@0.177.0/node/process.ts?s=versions
|
|
53
|
+
*/
|
|
54
|
+
const isDeno = typeof Deno !== "undefined" && typeof Deno.version !== "undefined" && typeof Deno.version.deno !== "undefined";
|
|
55
|
+
if (isDeno) {
|
|
56
|
+
return {
|
|
57
|
+
type: "deno",
|
|
58
|
+
version: Deno.version.deno,
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* A constant that indicates whether the environment the code is running is Bun.sh.
|
|
63
|
+
*/
|
|
64
|
+
const isBun = typeof Bun !== "undefined" && typeof Bun.version !== "undefined";
|
|
65
|
+
if (isBun) {
|
|
66
|
+
return {
|
|
67
|
+
type: "bun",
|
|
68
|
+
version: Bun.version,
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* A constant that indicates whether the environment the code is running is in React-Native.
|
|
73
|
+
* This check should come before Node.js detection since React Native may have a process polyfill.
|
|
74
|
+
* https://github.com/facebook/react-native/blob/main/packages/react-native/Libraries/Core/setUpNavigator.js
|
|
75
|
+
*/
|
|
76
|
+
const isReactNative = typeof navigator !== "undefined" && (navigator === null || navigator === void 0 ? void 0 : navigator.product) === "ReactNative";
|
|
77
|
+
if (isReactNative) {
|
|
78
|
+
return {
|
|
79
|
+
type: "react-native",
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* A constant that indicates whether the environment the code is running is Node.JS.
|
|
84
|
+
*/
|
|
85
|
+
const isNode = typeof process !== "undefined" &&
|
|
86
|
+
"version" in process &&
|
|
87
|
+
!!process.version &&
|
|
88
|
+
"versions" in process &&
|
|
89
|
+
!!((_e = process.versions) === null || _e === void 0 ? void 0 : _e.node);
|
|
90
|
+
if (isNode) {
|
|
91
|
+
return {
|
|
92
|
+
type: "node",
|
|
93
|
+
version: process.versions.node,
|
|
94
|
+
parsedVersion: Number(process.versions.node.split(".")[0]),
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
return {
|
|
98
|
+
type: "unknown",
|
|
99
|
+
};
|
|
100
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function encodePathParam(param: unknown): string;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export function encodePathParam(param) {
|
|
2
|
+
if (param === null) {
|
|
3
|
+
return "null";
|
|
4
|
+
}
|
|
5
|
+
const typeofParam = typeof param;
|
|
6
|
+
switch (typeofParam) {
|
|
7
|
+
case "undefined":
|
|
8
|
+
return "undefined";
|
|
9
|
+
case "string":
|
|
10
|
+
case "number":
|
|
11
|
+
case "boolean":
|
|
12
|
+
break;
|
|
13
|
+
default:
|
|
14
|
+
param = String(param);
|
|
15
|
+
break;
|
|
16
|
+
}
|
|
17
|
+
return encodeURIComponent(param);
|
|
18
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function join(base: string, ...segments: string[]): string;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
export function join(base, ...segments) {
|
|
2
|
+
if (!base) {
|
|
3
|
+
return "";
|
|
4
|
+
}
|
|
5
|
+
if (segments.length === 0) {
|
|
6
|
+
return base;
|
|
7
|
+
}
|
|
8
|
+
if (base.includes("://")) {
|
|
9
|
+
let url;
|
|
10
|
+
try {
|
|
11
|
+
url = new URL(base);
|
|
12
|
+
}
|
|
13
|
+
catch (_a) {
|
|
14
|
+
return joinPath(base, ...segments);
|
|
15
|
+
}
|
|
16
|
+
const lastSegment = segments[segments.length - 1];
|
|
17
|
+
const shouldPreserveTrailingSlash = lastSegment === null || lastSegment === void 0 ? void 0 : lastSegment.endsWith("/");
|
|
18
|
+
for (const segment of segments) {
|
|
19
|
+
const cleanSegment = trimSlashes(segment);
|
|
20
|
+
if (cleanSegment) {
|
|
21
|
+
url.pathname = joinPathSegments(url.pathname, cleanSegment);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
if (shouldPreserveTrailingSlash && !url.pathname.endsWith("/")) {
|
|
25
|
+
url.pathname += "/";
|
|
26
|
+
}
|
|
27
|
+
return url.toString();
|
|
28
|
+
}
|
|
29
|
+
return joinPath(base, ...segments);
|
|
30
|
+
}
|
|
31
|
+
function joinPath(base, ...segments) {
|
|
32
|
+
if (segments.length === 0) {
|
|
33
|
+
return base;
|
|
34
|
+
}
|
|
35
|
+
let result = base;
|
|
36
|
+
const lastSegment = segments[segments.length - 1];
|
|
37
|
+
const shouldPreserveTrailingSlash = lastSegment === null || lastSegment === void 0 ? void 0 : lastSegment.endsWith("/");
|
|
38
|
+
for (const segment of segments) {
|
|
39
|
+
const cleanSegment = trimSlashes(segment);
|
|
40
|
+
if (cleanSegment) {
|
|
41
|
+
result = joinPathSegments(result, cleanSegment);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
if (shouldPreserveTrailingSlash && !result.endsWith("/")) {
|
|
45
|
+
result += "/";
|
|
46
|
+
}
|
|
47
|
+
return result;
|
|
48
|
+
}
|
|
49
|
+
function joinPathSegments(left, right) {
|
|
50
|
+
if (left.endsWith("/")) {
|
|
51
|
+
return left + right;
|
|
52
|
+
}
|
|
53
|
+
return `${left}/${right}`;
|
|
54
|
+
}
|
|
55
|
+
function trimSlashes(str) {
|
|
56
|
+
if (!str)
|
|
57
|
+
return str;
|
|
58
|
+
let start = 0;
|
|
59
|
+
let end = str.length;
|
|
60
|
+
if (str.startsWith("/"))
|
|
61
|
+
start = 1;
|
|
62
|
+
if (str.endsWith("/"))
|
|
63
|
+
end = str.length - 1;
|
|
64
|
+
return start === 0 && end === str.length ? str : str.slice(start, end);
|
|
65
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
const defaultQsOptions = {
|
|
2
|
+
arrayFormat: "indices",
|
|
3
|
+
encode: true,
|
|
4
|
+
};
|
|
5
|
+
function encodeValue(value, shouldEncode) {
|
|
6
|
+
if (value === undefined) {
|
|
7
|
+
return "";
|
|
8
|
+
}
|
|
9
|
+
if (value === null) {
|
|
10
|
+
return "";
|
|
11
|
+
}
|
|
12
|
+
const stringValue = String(value);
|
|
13
|
+
return shouldEncode ? encodeURIComponent(stringValue) : stringValue;
|
|
14
|
+
}
|
|
15
|
+
function stringifyObject(obj, prefix = "", options) {
|
|
16
|
+
const parts = [];
|
|
17
|
+
for (const [key, value] of Object.entries(obj)) {
|
|
18
|
+
const fullKey = prefix ? `${prefix}[${key}]` : key;
|
|
19
|
+
if (value === undefined) {
|
|
20
|
+
continue;
|
|
21
|
+
}
|
|
22
|
+
if (Array.isArray(value)) {
|
|
23
|
+
if (value.length === 0) {
|
|
24
|
+
continue;
|
|
25
|
+
}
|
|
26
|
+
for (let i = 0; i < value.length; i++) {
|
|
27
|
+
const item = value[i];
|
|
28
|
+
if (item === undefined) {
|
|
29
|
+
continue;
|
|
30
|
+
}
|
|
31
|
+
if (typeof item === "object" && !Array.isArray(item) && item !== null) {
|
|
32
|
+
const arrayKey = options.arrayFormat === "indices" ? `${fullKey}[${i}]` : fullKey;
|
|
33
|
+
parts.push(...stringifyObject(item, arrayKey, options));
|
|
34
|
+
}
|
|
35
|
+
else {
|
|
36
|
+
const arrayKey = options.arrayFormat === "indices" ? `${fullKey}[${i}]` : fullKey;
|
|
37
|
+
const encodedKey = options.encode ? encodeURIComponent(arrayKey) : arrayKey;
|
|
38
|
+
parts.push(`${encodedKey}=${encodeValue(item, options.encode)}`);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
else if (typeof value === "object" && value !== null) {
|
|
43
|
+
if (Object.keys(value).length === 0) {
|
|
44
|
+
continue;
|
|
45
|
+
}
|
|
46
|
+
parts.push(...stringifyObject(value, fullKey, options));
|
|
47
|
+
}
|
|
48
|
+
else {
|
|
49
|
+
const encodedKey = options.encode ? encodeURIComponent(fullKey) : fullKey;
|
|
50
|
+
parts.push(`${encodedKey}=${encodeValue(value, options.encode)}`);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
return parts;
|
|
54
|
+
}
|
|
55
|
+
export function toQueryString(obj, options) {
|
|
56
|
+
if (obj == null || typeof obj !== "object") {
|
|
57
|
+
return "";
|
|
58
|
+
}
|
|
59
|
+
const parts = stringifyObject(obj, "", Object.assign(Object.assign({}, defaultQsOptions), options));
|
|
60
|
+
return parts.join("&");
|
|
61
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type * as core from "../core/index.mjs";
|
|
2
|
+
export declare class FernIrError extends Error {
|
|
3
|
+
readonly statusCode?: number;
|
|
4
|
+
readonly body?: unknown;
|
|
5
|
+
readonly rawResponse?: core.RawResponse;
|
|
6
|
+
constructor({ message, statusCode, body, rawResponse, }: {
|
|
7
|
+
message?: string;
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: unknown;
|
|
10
|
+
rawResponse?: core.RawResponse;
|
|
11
|
+
});
|
|
12
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
import { toJson } from "../core/json.mjs";
|
|
3
|
+
export class FernIrError extends Error {
|
|
4
|
+
constructor({ message, statusCode, body, rawResponse, }) {
|
|
5
|
+
super(buildMessage({ message, statusCode, body }));
|
|
6
|
+
Object.setPrototypeOf(this, new.target.prototype);
|
|
7
|
+
if (Error.captureStackTrace) {
|
|
8
|
+
Error.captureStackTrace(this, this.constructor);
|
|
9
|
+
}
|
|
10
|
+
this.name = this.constructor.name;
|
|
11
|
+
this.statusCode = statusCode;
|
|
12
|
+
this.body = body;
|
|
13
|
+
this.rawResponse = rawResponse;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
function buildMessage({ message, statusCode, body, }) {
|
|
17
|
+
const lines = [];
|
|
18
|
+
if (message != null) {
|
|
19
|
+
lines.push(message);
|
|
20
|
+
}
|
|
21
|
+
if (statusCode != null) {
|
|
22
|
+
lines.push(`Status code: ${statusCode.toString()}`);
|
|
23
|
+
}
|
|
24
|
+
if (body != null) {
|
|
25
|
+
lines.push(`Body: ${toJson(body, undefined, 2)}`);
|
|
26
|
+
}
|
|
27
|
+
return lines.join("\n");
|
|
28
|
+
}
|