@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.
Files changed (761) hide show
  1. package/dist/cjs/BaseClient.d.ts +32 -0
  2. package/dist/cjs/BaseClient.js +50 -0
  3. package/dist/cjs/api/index.d.ts +1 -0
  4. package/dist/cjs/api/index.js +17 -0
  5. package/dist/cjs/api/resources/commons/index.d.ts +1 -0
  6. package/dist/cjs/api/resources/commons/index.js +17 -0
  7. package/dist/cjs/api/resources/commons/types/Name.d.ts +8 -0
  8. package/dist/cjs/api/resources/commons/types/Name.js +3 -0
  9. package/dist/cjs/api/resources/commons/types/SafeAndUnsafeString.d.ts +6 -0
  10. package/dist/cjs/api/resources/commons/types/SafeAndUnsafeString.js +3 -0
  11. package/dist/cjs/api/resources/commons/types/index.d.ts +2 -0
  12. package/dist/cjs/api/resources/commons/types/index.js +18 -0
  13. package/dist/cjs/api/resources/dynamic/index.d.ts +1 -0
  14. package/dist/cjs/api/resources/dynamic/index.js +17 -0
  15. package/dist/cjs/api/resources/dynamic/resources/auth/index.d.ts +1 -0
  16. package/dist/cjs/api/resources/dynamic/resources/auth/index.js +17 -0
  17. package/dist/cjs/api/resources/dynamic/resources/auth/types/Auth.d.ts +19 -0
  18. package/dist/cjs/api/resources/dynamic/resources/auth/types/Auth.js +3 -0
  19. package/dist/cjs/api/resources/dynamic/resources/auth/types/AuthValues.d.ts +19 -0
  20. package/dist/cjs/api/resources/dynamic/resources/auth/types/AuthValues.js +3 -0
  21. package/dist/cjs/api/resources/dynamic/resources/auth/types/BasicAuth.d.ts +5 -0
  22. package/dist/cjs/api/resources/dynamic/resources/auth/types/BasicAuth.js +3 -0
  23. package/dist/cjs/api/resources/dynamic/resources/auth/types/BasicAuthValues.d.ts +4 -0
  24. package/dist/cjs/api/resources/dynamic/resources/auth/types/BasicAuthValues.js +3 -0
  25. package/dist/cjs/api/resources/dynamic/resources/auth/types/BearerAuth.d.ts +4 -0
  26. package/dist/cjs/api/resources/dynamic/resources/auth/types/BearerAuth.js +3 -0
  27. package/dist/cjs/api/resources/dynamic/resources/auth/types/BearerAuthValues.d.ts +3 -0
  28. package/dist/cjs/api/resources/dynamic/resources/auth/types/BearerAuthValues.js +3 -0
  29. package/dist/cjs/api/resources/dynamic/resources/auth/types/HeaderAuth.d.ts +4 -0
  30. package/dist/cjs/api/resources/dynamic/resources/auth/types/HeaderAuth.js +3 -0
  31. package/dist/cjs/api/resources/dynamic/resources/auth/types/HeaderAuthValues.d.ts +3 -0
  32. package/dist/cjs/api/resources/dynamic/resources/auth/types/HeaderAuthValues.js +3 -0
  33. package/dist/cjs/api/resources/dynamic/resources/auth/types/InferredAuth.d.ts +9 -0
  34. package/dist/cjs/api/resources/dynamic/resources/auth/types/InferredAuth.js +3 -0
  35. package/dist/cjs/api/resources/dynamic/resources/auth/types/InferredAuthValues.d.ts +8 -0
  36. package/dist/cjs/api/resources/dynamic/resources/auth/types/InferredAuthValues.js +3 -0
  37. package/dist/cjs/api/resources/dynamic/resources/auth/types/OAuth.d.ts +5 -0
  38. package/dist/cjs/api/resources/dynamic/resources/auth/types/OAuth.js +3 -0
  39. package/dist/cjs/api/resources/dynamic/resources/auth/types/OAuthValues.d.ts +4 -0
  40. package/dist/cjs/api/resources/dynamic/resources/auth/types/OAuthValues.js +3 -0
  41. package/dist/cjs/api/resources/dynamic/resources/auth/types/index.d.ts +12 -0
  42. package/dist/cjs/api/resources/dynamic/resources/auth/types/index.js +28 -0
  43. package/dist/cjs/api/resources/dynamic/resources/commons/index.d.ts +1 -0
  44. package/dist/cjs/api/resources/dynamic/resources/commons/index.js +17 -0
  45. package/dist/cjs/api/resources/dynamic/resources/commons/types/EndpointId.d.ts +1 -0
  46. package/dist/cjs/api/resources/dynamic/resources/commons/types/EndpointId.js +3 -0
  47. package/dist/cjs/api/resources/dynamic/resources/commons/types/FernFilepath.d.ts +6 -0
  48. package/dist/cjs/api/resources/dynamic/resources/commons/types/FernFilepath.js +3 -0
  49. package/dist/cjs/api/resources/dynamic/resources/commons/types/Name.d.ts +8 -0
  50. package/dist/cjs/api/resources/dynamic/resources/commons/types/Name.js +3 -0
  51. package/dist/cjs/api/resources/dynamic/resources/commons/types/NameAndWireValue.d.ts +5 -0
  52. package/dist/cjs/api/resources/dynamic/resources/commons/types/NameAndWireValue.js +3 -0
  53. package/dist/cjs/api/resources/dynamic/resources/commons/types/SafeAndUnsafeString.d.ts +6 -0
  54. package/dist/cjs/api/resources/dynamic/resources/commons/types/SafeAndUnsafeString.js +3 -0
  55. package/dist/cjs/api/resources/dynamic/resources/commons/types/TypeId.d.ts +1 -0
  56. package/dist/cjs/api/resources/dynamic/resources/commons/types/TypeId.js +3 -0
  57. package/dist/cjs/api/resources/dynamic/resources/commons/types/WithDocs.d.ts +3 -0
  58. package/dist/cjs/api/resources/dynamic/resources/commons/types/WithDocs.js +3 -0
  59. package/dist/cjs/api/resources/dynamic/resources/commons/types/index.d.ts +7 -0
  60. package/dist/cjs/api/resources/dynamic/resources/commons/types/index.js +23 -0
  61. package/dist/cjs/api/resources/dynamic/resources/declaration/index.d.ts +1 -0
  62. package/dist/cjs/api/resources/dynamic/resources/declaration/index.js +17 -0
  63. package/dist/cjs/api/resources/dynamic/resources/declaration/types/Declaration.d.ts +5 -0
  64. package/dist/cjs/api/resources/dynamic/resources/declaration/types/Declaration.js +3 -0
  65. package/dist/cjs/api/resources/dynamic/resources/declaration/types/index.d.ts +1 -0
  66. package/dist/cjs/api/resources/dynamic/resources/declaration/types/index.js +17 -0
  67. package/dist/cjs/api/resources/dynamic/resources/endpoints/index.d.ts +1 -0
  68. package/dist/cjs/api/resources/dynamic/resources/endpoints/index.js +17 -0
  69. package/dist/cjs/api/resources/dynamic/resources/endpoints/types/BodyRequest.d.ts +5 -0
  70. package/dist/cjs/api/resources/dynamic/resources/endpoints/types/BodyRequest.js +3 -0
  71. package/dist/cjs/api/resources/dynamic/resources/endpoints/types/Endpoint.d.ts +9 -0
  72. package/dist/cjs/api/resources/dynamic/resources/endpoints/types/Endpoint.js +3 -0
  73. package/dist/cjs/api/resources/dynamic/resources/endpoints/types/EndpointExample.d.ts +7 -0
  74. package/dist/cjs/api/resources/dynamic/resources/endpoints/types/EndpointExample.js +3 -0
  75. package/dist/cjs/api/resources/dynamic/resources/endpoints/types/EndpointLocation.d.ts +8 -0
  76. package/dist/cjs/api/resources/dynamic/resources/endpoints/types/EndpointLocation.js +3 -0
  77. package/dist/cjs/api/resources/dynamic/resources/endpoints/types/FileUploadRequestBody.d.ts +4 -0
  78. package/dist/cjs/api/resources/dynamic/resources/endpoints/types/FileUploadRequestBody.js +3 -0
  79. package/dist/cjs/api/resources/dynamic/resources/endpoints/types/FileUploadRequestBodyProperty.d.ts +13 -0
  80. package/dist/cjs/api/resources/dynamic/resources/endpoints/types/FileUploadRequestBodyProperty.js +3 -0
  81. package/dist/cjs/api/resources/dynamic/resources/endpoints/types/InlinedRequest.d.ts +9 -0
  82. package/dist/cjs/api/resources/dynamic/resources/endpoints/types/InlinedRequest.js +3 -0
  83. package/dist/cjs/api/resources/dynamic/resources/endpoints/types/InlinedRequestBody.d.ts +14 -0
  84. package/dist/cjs/api/resources/dynamic/resources/endpoints/types/InlinedRequestBody.js +3 -0
  85. package/dist/cjs/api/resources/dynamic/resources/endpoints/types/InlinedRequestMetadata.d.ts +18 -0
  86. package/dist/cjs/api/resources/dynamic/resources/endpoints/types/InlinedRequestMetadata.js +3 -0
  87. package/dist/cjs/api/resources/dynamic/resources/endpoints/types/ReferencedRequestBody.d.ts +5 -0
  88. package/dist/cjs/api/resources/dynamic/resources/endpoints/types/ReferencedRequestBody.js +3 -0
  89. package/dist/cjs/api/resources/dynamic/resources/endpoints/types/ReferencedRequestBodyType.d.ts +11 -0
  90. package/dist/cjs/api/resources/dynamic/resources/endpoints/types/ReferencedRequestBodyType.js +3 -0
  91. package/dist/cjs/api/resources/dynamic/resources/endpoints/types/Request.d.ts +13 -0
  92. package/dist/cjs/api/resources/dynamic/resources/endpoints/types/Request.js +3 -0
  93. package/dist/cjs/api/resources/dynamic/resources/endpoints/types/Response.d.ts +29 -0
  94. package/dist/cjs/api/resources/dynamic/resources/endpoints/types/Response.js +3 -0
  95. package/dist/cjs/api/resources/dynamic/resources/endpoints/types/index.d.ts +13 -0
  96. package/dist/cjs/api/resources/dynamic/resources/endpoints/types/index.js +29 -0
  97. package/dist/cjs/api/resources/dynamic/resources/environment/index.d.ts +1 -0
  98. package/dist/cjs/api/resources/dynamic/resources/environment/index.js +17 -0
  99. package/dist/cjs/api/resources/dynamic/resources/environment/types/EnvironmentBaseUrlId.d.ts +1 -0
  100. package/dist/cjs/api/resources/dynamic/resources/environment/types/EnvironmentBaseUrlId.js +3 -0
  101. package/dist/cjs/api/resources/dynamic/resources/environment/types/EnvironmentBaseUrlWithId.d.ts +5 -0
  102. package/dist/cjs/api/resources/dynamic/resources/environment/types/EnvironmentBaseUrlWithId.js +3 -0
  103. package/dist/cjs/api/resources/dynamic/resources/environment/types/EnvironmentId.d.ts +1 -0
  104. package/dist/cjs/api/resources/dynamic/resources/environment/types/EnvironmentId.js +3 -0
  105. package/dist/cjs/api/resources/dynamic/resources/environment/types/EnvironmentUrl.d.ts +1 -0
  106. package/dist/cjs/api/resources/dynamic/resources/environment/types/EnvironmentUrl.js +3 -0
  107. package/dist/cjs/api/resources/dynamic/resources/environment/types/EnvironmentValues.d.ts +14 -0
  108. package/dist/cjs/api/resources/dynamic/resources/environment/types/EnvironmentValues.js +3 -0
  109. package/dist/cjs/api/resources/dynamic/resources/environment/types/Environments.d.ts +10 -0
  110. package/dist/cjs/api/resources/dynamic/resources/environment/types/Environments.js +3 -0
  111. package/dist/cjs/api/resources/dynamic/resources/environment/types/EnvironmentsConfig.d.ts +5 -0
  112. package/dist/cjs/api/resources/dynamic/resources/environment/types/EnvironmentsConfig.js +3 -0
  113. package/dist/cjs/api/resources/dynamic/resources/environment/types/MultipleBaseUrlsEnvironment.d.ts +6 -0
  114. package/dist/cjs/api/resources/dynamic/resources/environment/types/MultipleBaseUrlsEnvironment.js +3 -0
  115. package/dist/cjs/api/resources/dynamic/resources/environment/types/MultipleBaseUrlsEnvironments.d.ts +5 -0
  116. package/dist/cjs/api/resources/dynamic/resources/environment/types/MultipleBaseUrlsEnvironments.js +3 -0
  117. package/dist/cjs/api/resources/dynamic/resources/environment/types/MultipleEnvironmentUrlValues.d.ts +2 -0
  118. package/dist/cjs/api/resources/dynamic/resources/environment/types/MultipleEnvironmentUrlValues.js +3 -0
  119. package/dist/cjs/api/resources/dynamic/resources/environment/types/SingleBaseUrlEnvironment.d.ts +6 -0
  120. package/dist/cjs/api/resources/dynamic/resources/environment/types/SingleBaseUrlEnvironment.js +3 -0
  121. package/dist/cjs/api/resources/dynamic/resources/environment/types/SingleBaseUrlEnvironments.d.ts +4 -0
  122. package/dist/cjs/api/resources/dynamic/resources/environment/types/SingleBaseUrlEnvironments.js +3 -0
  123. package/dist/cjs/api/resources/dynamic/resources/environment/types/index.d.ts +12 -0
  124. package/dist/cjs/api/resources/dynamic/resources/environment/types/index.js +28 -0
  125. package/dist/cjs/api/resources/dynamic/resources/http/index.d.ts +1 -0
  126. package/dist/cjs/api/resources/dynamic/resources/http/index.js +17 -0
  127. package/dist/cjs/api/resources/dynamic/resources/http/types/HttpMethod.d.ts +9 -0
  128. package/dist/cjs/api/resources/dynamic/resources/http/types/HttpMethod.js +12 -0
  129. package/dist/cjs/api/resources/dynamic/resources/http/types/index.d.ts +1 -0
  130. package/dist/cjs/api/resources/dynamic/resources/http/types/index.js +17 -0
  131. package/dist/cjs/api/resources/dynamic/resources/index.d.ts +20 -0
  132. package/dist/cjs/api/resources/dynamic/resources/index.js +59 -0
  133. package/dist/cjs/api/resources/dynamic/resources/ir/index.d.ts +1 -0
  134. package/dist/cjs/api/resources/dynamic/resources/ir/index.js +17 -0
  135. package/dist/cjs/api/resources/dynamic/resources/ir/types/CratesPublishInfo.d.ts +5 -0
  136. package/dist/cjs/api/resources/dynamic/resources/ir/types/CratesPublishInfo.js +3 -0
  137. package/dist/cjs/api/resources/dynamic/resources/ir/types/DynamicIntermediateRepresentation.d.ts +34 -0
  138. package/dist/cjs/api/resources/dynamic/resources/ir/types/DynamicIntermediateRepresentation.js +3 -0
  139. package/dist/cjs/api/resources/dynamic/resources/ir/types/GeneratorConfig.d.ts +15 -0
  140. package/dist/cjs/api/resources/dynamic/resources/ir/types/GeneratorConfig.js +3 -0
  141. package/dist/cjs/api/resources/dynamic/resources/ir/types/GeneratorOutputConfig.d.ts +15 -0
  142. package/dist/cjs/api/resources/dynamic/resources/ir/types/GeneratorOutputConfig.js +3 -0
  143. package/dist/cjs/api/resources/dynamic/resources/ir/types/GoPublishInfo.d.ts +5 -0
  144. package/dist/cjs/api/resources/dynamic/resources/ir/types/GoPublishInfo.js +3 -0
  145. package/dist/cjs/api/resources/dynamic/resources/ir/types/MavenPublishInfo.d.ts +5 -0
  146. package/dist/cjs/api/resources/dynamic/resources/ir/types/MavenPublishInfo.js +3 -0
  147. package/dist/cjs/api/resources/dynamic/resources/ir/types/NpmPublishInfo.d.ts +5 -0
  148. package/dist/cjs/api/resources/dynamic/resources/ir/types/NpmPublishInfo.js +3 -0
  149. package/dist/cjs/api/resources/dynamic/resources/ir/types/NugetPublishInfo.d.ts +5 -0
  150. package/dist/cjs/api/resources/dynamic/resources/ir/types/NugetPublishInfo.js +3 -0
  151. package/dist/cjs/api/resources/dynamic/resources/ir/types/PublishInfo.d.ts +28 -0
  152. package/dist/cjs/api/resources/dynamic/resources/ir/types/PublishInfo.js +3 -0
  153. package/dist/cjs/api/resources/dynamic/resources/ir/types/PypiPublishInfo.d.ts +5 -0
  154. package/dist/cjs/api/resources/dynamic/resources/ir/types/PypiPublishInfo.js +3 -0
  155. package/dist/cjs/api/resources/dynamic/resources/ir/types/RubyGemsPublishInfo.d.ts +5 -0
  156. package/dist/cjs/api/resources/dynamic/resources/ir/types/RubyGemsPublishInfo.js +3 -0
  157. package/dist/cjs/api/resources/dynamic/resources/ir/types/SwiftPublishInfo.d.ts +5 -0
  158. package/dist/cjs/api/resources/dynamic/resources/ir/types/SwiftPublishInfo.js +3 -0
  159. package/dist/cjs/api/resources/dynamic/resources/ir/types/index.d.ts +12 -0
  160. package/dist/cjs/api/resources/dynamic/resources/ir/types/index.js +28 -0
  161. package/dist/cjs/api/resources/dynamic/resources/snippets/index.d.ts +1 -0
  162. package/dist/cjs/api/resources/dynamic/resources/snippets/index.js +17 -0
  163. package/dist/cjs/api/resources/dynamic/resources/snippets/types/EndpointSnippetRequest.d.ts +14 -0
  164. package/dist/cjs/api/resources/dynamic/resources/snippets/types/EndpointSnippetRequest.js +3 -0
  165. package/dist/cjs/api/resources/dynamic/resources/snippets/types/EndpointSnippetResponse.d.ts +12 -0
  166. package/dist/cjs/api/resources/dynamic/resources/snippets/types/EndpointSnippetResponse.js +3 -0
  167. package/dist/cjs/api/resources/dynamic/resources/snippets/types/ErrorSeverity.d.ts +5 -0
  168. package/dist/cjs/api/resources/dynamic/resources/snippets/types/ErrorSeverity.js +8 -0
  169. package/dist/cjs/api/resources/dynamic/resources/snippets/types/Error_.d.ts +5 -0
  170. package/dist/cjs/api/resources/dynamic/resources/snippets/types/Error_.js +3 -0
  171. package/dist/cjs/api/resources/dynamic/resources/snippets/types/Values.d.ts +7 -0
  172. package/dist/cjs/api/resources/dynamic/resources/snippets/types/Values.js +3 -0
  173. package/dist/cjs/api/resources/dynamic/resources/snippets/types/index.d.ts +5 -0
  174. package/dist/cjs/api/resources/dynamic/resources/snippets/types/index.js +21 -0
  175. package/dist/cjs/api/resources/dynamic/resources/types/index.d.ts +1 -0
  176. package/dist/cjs/api/resources/dynamic/resources/types/index.js +17 -0
  177. package/dist/cjs/api/resources/dynamic/resources/types/types/AliasType.d.ts +5 -0
  178. package/dist/cjs/api/resources/dynamic/resources/types/types/AliasType.js +3 -0
  179. package/dist/cjs/api/resources/dynamic/resources/types/types/DiscriminatedUnionType.d.ts +7 -0
  180. package/dist/cjs/api/resources/dynamic/resources/types/types/DiscriminatedUnionType.js +3 -0
  181. package/dist/cjs/api/resources/dynamic/resources/types/types/EnumType.d.ts +5 -0
  182. package/dist/cjs/api/resources/dynamic/resources/types/types/EnumType.js +3 -0
  183. package/dist/cjs/api/resources/dynamic/resources/types/types/LiteralType.d.ts +12 -0
  184. package/dist/cjs/api/resources/dynamic/resources/types/types/LiteralType.js +3 -0
  185. package/dist/cjs/api/resources/dynamic/resources/types/types/MapType.d.ts +5 -0
  186. package/dist/cjs/api/resources/dynamic/resources/types/types/MapType.js +3 -0
  187. package/dist/cjs/api/resources/dynamic/resources/types/types/NamedParameter.d.ts +8 -0
  188. package/dist/cjs/api/resources/dynamic/resources/types/types/NamedParameter.js +3 -0
  189. package/dist/cjs/api/resources/dynamic/resources/types/types/NamedType.d.ts +22 -0
  190. package/dist/cjs/api/resources/dynamic/resources/types/types/NamedType.js +3 -0
  191. package/dist/cjs/api/resources/dynamic/resources/types/types/ObjectPropertyAccess.d.ts +5 -0
  192. package/dist/cjs/api/resources/dynamic/resources/types/types/ObjectPropertyAccess.js +8 -0
  193. package/dist/cjs/api/resources/dynamic/resources/types/types/ObjectType.d.ts +12 -0
  194. package/dist/cjs/api/resources/dynamic/resources/types/types/ObjectType.js +3 -0
  195. package/dist/cjs/api/resources/dynamic/resources/types/types/PrimitiveTypeV1.d.ts +18 -0
  196. package/dist/cjs/api/resources/dynamic/resources/types/types/PrimitiveTypeV1.js +21 -0
  197. package/dist/cjs/api/resources/dynamic/resources/types/types/SingleDiscriminatedUnionType.d.ts +13 -0
  198. package/dist/cjs/api/resources/dynamic/resources/types/types/SingleDiscriminatedUnionType.js +3 -0
  199. package/dist/cjs/api/resources/dynamic/resources/types/types/SingleDiscriminatedUnionTypeNoProperties.d.ts +6 -0
  200. package/dist/cjs/api/resources/dynamic/resources/types/types/SingleDiscriminatedUnionTypeNoProperties.js +3 -0
  201. package/dist/cjs/api/resources/dynamic/resources/types/types/SingleDiscriminatedUnionTypeObject.d.ts +7 -0
  202. package/dist/cjs/api/resources/dynamic/resources/types/types/SingleDiscriminatedUnionTypeObject.js +3 -0
  203. package/dist/cjs/api/resources/dynamic/resources/types/types/SingleDiscriminatedUnionTypeSingleProperty.d.ts +7 -0
  204. package/dist/cjs/api/resources/dynamic/resources/types/types/SingleDiscriminatedUnionTypeSingleProperty.js +3 -0
  205. package/dist/cjs/api/resources/dynamic/resources/types/types/TypeReference.d.ts +38 -0
  206. package/dist/cjs/api/resources/dynamic/resources/types/types/TypeReference.js +3 -0
  207. package/dist/cjs/api/resources/dynamic/resources/types/types/UndiscriminatedUnionType.d.ts +6 -0
  208. package/dist/cjs/api/resources/dynamic/resources/types/types/UndiscriminatedUnionType.js +3 -0
  209. package/dist/cjs/api/resources/dynamic/resources/types/types/index.d.ts +16 -0
  210. package/dist/cjs/api/resources/dynamic/resources/types/types/index.js +32 -0
  211. package/dist/cjs/api/resources/dynamic/resources/variables/index.d.ts +1 -0
  212. package/dist/cjs/api/resources/dynamic/resources/variables/index.js +17 -0
  213. package/dist/cjs/api/resources/dynamic/resources/variables/types/VariableDeclaration.d.ts +13 -0
  214. package/dist/cjs/api/resources/dynamic/resources/variables/types/VariableDeclaration.js +3 -0
  215. package/dist/cjs/api/resources/dynamic/resources/variables/types/index.d.ts +1 -0
  216. package/dist/cjs/api/resources/dynamic/resources/variables/types/index.js +17 -0
  217. package/dist/cjs/api/resources/generatorExec/index.d.ts +1 -0
  218. package/dist/cjs/api/resources/generatorExec/index.js +17 -0
  219. package/dist/cjs/api/resources/generatorExec/resources/config/index.d.ts +1 -0
  220. package/dist/cjs/api/resources/generatorExec/resources/config/index.js +17 -0
  221. package/dist/cjs/api/resources/generatorExec/resources/config/types/BasicLicense.d.ts +4 -0
  222. package/dist/cjs/api/resources/generatorExec/resources/config/types/BasicLicense.js +3 -0
  223. package/dist/cjs/api/resources/generatorExec/resources/config/types/CratesGithubPublishInfo.d.ts +7 -0
  224. package/dist/cjs/api/resources/generatorExec/resources/config/types/CratesGithubPublishInfo.js +3 -0
  225. package/dist/cjs/api/resources/generatorExec/resources/config/types/CratesRegistryConfig.d.ts +5 -0
  226. package/dist/cjs/api/resources/generatorExec/resources/config/types/CratesRegistryConfig.js +3 -0
  227. package/dist/cjs/api/resources/generatorExec/resources/config/types/CustomLicense.d.ts +3 -0
  228. package/dist/cjs/api/resources/generatorExec/resources/config/types/CustomLicense.js +3 -0
  229. package/dist/cjs/api/resources/generatorExec/resources/config/types/EnvironmentVariable.d.ts +1 -0
  230. package/dist/cjs/api/resources/generatorExec/resources/config/types/EnvironmentVariable.js +3 -0
  231. package/dist/cjs/api/resources/generatorExec/resources/config/types/GeneratorConfig.d.ts +18 -0
  232. package/dist/cjs/api/resources/generatorExec/resources/config/types/GeneratorConfig.js +3 -0
  233. package/dist/cjs/api/resources/generatorExec/resources/config/types/GeneratorEnvironment.d.ts +10 -0
  234. package/dist/cjs/api/resources/generatorExec/resources/config/types/GeneratorEnvironment.js +3 -0
  235. package/dist/cjs/api/resources/generatorExec/resources/config/types/GeneratorOutputConfig.d.ts +8 -0
  236. package/dist/cjs/api/resources/generatorExec/resources/config/types/GeneratorOutputConfig.js +3 -0
  237. package/dist/cjs/api/resources/generatorExec/resources/config/types/GeneratorPublishConfig.d.ts +9 -0
  238. package/dist/cjs/api/resources/generatorExec/resources/config/types/GeneratorPublishConfig.js +3 -0
  239. package/dist/cjs/api/resources/generatorExec/resources/config/types/GeneratorPublishTarget.d.ts +25 -0
  240. package/dist/cjs/api/resources/generatorExec/resources/config/types/GeneratorPublishTarget.js +3 -0
  241. package/dist/cjs/api/resources/generatorExec/resources/config/types/GeneratorRegistriesConfig.d.ts +5 -0
  242. package/dist/cjs/api/resources/generatorExec/resources/config/types/GeneratorRegistriesConfig.js +3 -0
  243. package/dist/cjs/api/resources/generatorExec/resources/config/types/GeneratorRegistriesConfigV2.d.ts +9 -0
  244. package/dist/cjs/api/resources/generatorExec/resources/config/types/GeneratorRegistriesConfigV2.js +3 -0
  245. package/dist/cjs/api/resources/generatorExec/resources/config/types/GithubOutputMode.d.ts +14 -0
  246. package/dist/cjs/api/resources/generatorExec/resources/config/types/GithubOutputMode.js +3 -0
  247. package/dist/cjs/api/resources/generatorExec/resources/config/types/GithubPublishInfo.d.ts +25 -0
  248. package/dist/cjs/api/resources/generatorExec/resources/config/types/GithubPublishInfo.js +3 -0
  249. package/dist/cjs/api/resources/generatorExec/resources/config/types/LicenseConfig.d.ts +10 -0
  250. package/dist/cjs/api/resources/generatorExec/resources/config/types/LicenseConfig.js +3 -0
  251. package/dist/cjs/api/resources/generatorExec/resources/config/types/LicenseId.d.ts +5 -0
  252. package/dist/cjs/api/resources/generatorExec/resources/config/types/LicenseId.js +8 -0
  253. package/dist/cjs/api/resources/generatorExec/resources/config/types/MavenCentralSignature.d.ts +5 -0
  254. package/dist/cjs/api/resources/generatorExec/resources/config/types/MavenCentralSignature.js +3 -0
  255. package/dist/cjs/api/resources/generatorExec/resources/config/types/MavenCentralSignatureGithubInfo.d.ts +6 -0
  256. package/dist/cjs/api/resources/generatorExec/resources/config/types/MavenCentralSignatureGithubInfo.js +3 -0
  257. package/dist/cjs/api/resources/generatorExec/resources/config/types/MavenGithubPublishInfo.d.ts +9 -0
  258. package/dist/cjs/api/resources/generatorExec/resources/config/types/MavenGithubPublishInfo.js +3 -0
  259. package/dist/cjs/api/resources/generatorExec/resources/config/types/MavenRegistryConfig.d.ts +8 -0
  260. package/dist/cjs/api/resources/generatorExec/resources/config/types/MavenRegistryConfig.js +3 -0
  261. package/dist/cjs/api/resources/generatorExec/resources/config/types/MavenRegistryConfigV2.d.ts +8 -0
  262. package/dist/cjs/api/resources/generatorExec/resources/config/types/MavenRegistryConfigV2.js +3 -0
  263. package/dist/cjs/api/resources/generatorExec/resources/config/types/NpmGithubPublishInfo.d.ts +7 -0
  264. package/dist/cjs/api/resources/generatorExec/resources/config/types/NpmGithubPublishInfo.js +3 -0
  265. package/dist/cjs/api/resources/generatorExec/resources/config/types/NpmRegistryConfig.d.ts +5 -0
  266. package/dist/cjs/api/resources/generatorExec/resources/config/types/NpmRegistryConfig.js +3 -0
  267. package/dist/cjs/api/resources/generatorExec/resources/config/types/NpmRegistryConfigV2.d.ts +5 -0
  268. package/dist/cjs/api/resources/generatorExec/resources/config/types/NpmRegistryConfigV2.js +3 -0
  269. package/dist/cjs/api/resources/generatorExec/resources/config/types/NugetGithubPublishInfo.d.ts +7 -0
  270. package/dist/cjs/api/resources/generatorExec/resources/config/types/NugetGithubPublishInfo.js +3 -0
  271. package/dist/cjs/api/resources/generatorExec/resources/config/types/NugetRegistryConfig.d.ts +5 -0
  272. package/dist/cjs/api/resources/generatorExec/resources/config/types/NugetRegistryConfig.js +3 -0
  273. package/dist/cjs/api/resources/generatorExec/resources/config/types/OutputMetadata.d.ts +5 -0
  274. package/dist/cjs/api/resources/generatorExec/resources/config/types/OutputMetadata.js +3 -0
  275. package/dist/cjs/api/resources/generatorExec/resources/config/types/OutputMetadataAuthor.d.ts +4 -0
  276. package/dist/cjs/api/resources/generatorExec/resources/config/types/OutputMetadataAuthor.js +3 -0
  277. package/dist/cjs/api/resources/generatorExec/resources/config/types/OutputMode.d.ts +13 -0
  278. package/dist/cjs/api/resources/generatorExec/resources/config/types/OutputMode.js +3 -0
  279. package/dist/cjs/api/resources/generatorExec/resources/config/types/PostmanConfig.d.ts +4 -0
  280. package/dist/cjs/api/resources/generatorExec/resources/config/types/PostmanConfig.js +3 -0
  281. package/dist/cjs/api/resources/generatorExec/resources/config/types/PostmanGithubPublishInfo.d.ts +5 -0
  282. package/dist/cjs/api/resources/generatorExec/resources/config/types/PostmanGithubPublishInfo.js +3 -0
  283. package/dist/cjs/api/resources/generatorExec/resources/config/types/PublishingMetadata.d.ts +9 -0
  284. package/dist/cjs/api/resources/generatorExec/resources/config/types/PublishingMetadata.js +3 -0
  285. package/dist/cjs/api/resources/generatorExec/resources/config/types/PypiGithubPublishInfo.d.ts +9 -0
  286. package/dist/cjs/api/resources/generatorExec/resources/config/types/PypiGithubPublishInfo.js +3 -0
  287. package/dist/cjs/api/resources/generatorExec/resources/config/types/PypiMetadata.d.ts +6 -0
  288. package/dist/cjs/api/resources/generatorExec/resources/config/types/PypiMetadata.js +3 -0
  289. package/dist/cjs/api/resources/generatorExec/resources/config/types/PypiRegistryConfig.d.ts +8 -0
  290. package/dist/cjs/api/resources/generatorExec/resources/config/types/PypiRegistryConfig.js +3 -0
  291. package/dist/cjs/api/resources/generatorExec/resources/config/types/RemoteGeneratorEnvironment.d.ts +5 -0
  292. package/dist/cjs/api/resources/generatorExec/resources/config/types/RemoteGeneratorEnvironment.js +3 -0
  293. package/dist/cjs/api/resources/generatorExec/resources/config/types/RubyGemsGithubPublishInfo.d.ts +7 -0
  294. package/dist/cjs/api/resources/generatorExec/resources/config/types/RubyGemsGithubPublishInfo.js +3 -0
  295. package/dist/cjs/api/resources/generatorExec/resources/config/types/RubyGemsRegistryConfig.d.ts +5 -0
  296. package/dist/cjs/api/resources/generatorExec/resources/config/types/RubyGemsRegistryConfig.js +3 -0
  297. package/dist/cjs/api/resources/generatorExec/resources/config/types/index.d.ts +38 -0
  298. package/dist/cjs/api/resources/generatorExec/resources/config/types/index.js +54 -0
  299. package/dist/cjs/api/resources/generatorExec/resources/index.d.ts +2 -0
  300. package/dist/cjs/api/resources/generatorExec/resources/index.js +41 -0
  301. package/dist/cjs/api/resources/index.d.ts +4 -0
  302. package/dist/cjs/api/resources/index.js +43 -0
  303. package/dist/cjs/core/exports.d.ts +1 -0
  304. package/dist/cjs/core/exports.js +17 -0
  305. package/dist/cjs/core/fetcher/APIResponse.d.ts +20 -0
  306. package/dist/cjs/core/fetcher/APIResponse.js +2 -0
  307. package/dist/cjs/core/fetcher/BinaryResponse.d.ts +19 -0
  308. package/dist/cjs/core/fetcher/BinaryResponse.js +17 -0
  309. package/dist/cjs/core/fetcher/EndpointMetadata.d.ts +13 -0
  310. package/dist/cjs/core/fetcher/EndpointMetadata.js +2 -0
  311. package/dist/cjs/core/fetcher/EndpointSupplier.d.ts +12 -0
  312. package/dist/cjs/core/fetcher/EndpointSupplier.js +22 -0
  313. package/dist/cjs/core/fetcher/Fetcher.d.ts +48 -0
  314. package/dist/cjs/core/fetcher/Fetcher.js +316 -0
  315. package/dist/cjs/core/fetcher/Headers.d.ts +2 -0
  316. package/dist/cjs/core/fetcher/Headers.js +84 -0
  317. package/dist/cjs/core/fetcher/HttpResponsePromise.d.ts +58 -0
  318. package/dist/cjs/core/fetcher/HttpResponsePromise.js +103 -0
  319. package/dist/cjs/core/fetcher/RawResponse.d.ts +29 -0
  320. package/dist/cjs/core/fetcher/RawResponse.js +44 -0
  321. package/dist/cjs/core/fetcher/Supplier.d.ts +4 -0
  322. package/dist/cjs/core/fetcher/Supplier.js +22 -0
  323. package/dist/cjs/core/fetcher/createRequestUrl.d.ts +1 -0
  324. package/dist/cjs/core/fetcher/createRequestUrl.js +8 -0
  325. package/dist/cjs/core/fetcher/getErrorResponseBody.d.ts +1 -0
  326. package/dist/cjs/core/fetcher/getErrorResponseBody.js +45 -0
  327. package/dist/cjs/core/fetcher/getFetchFn.d.ts +1 -0
  328. package/dist/cjs/core/fetcher/getFetchFn.js +17 -0
  329. package/dist/cjs/core/fetcher/getHeader.d.ts +1 -0
  330. package/dist/cjs/core/fetcher/getHeader.js +11 -0
  331. package/dist/cjs/core/fetcher/getRequestBody.d.ts +7 -0
  332. package/dist/cjs/core/fetcher/getRequestBody.js +27 -0
  333. package/dist/cjs/core/fetcher/getResponseBody.d.ts +1 -0
  334. package/dist/cjs/core/fetcher/getResponseBody.js +69 -0
  335. package/dist/cjs/core/fetcher/index.d.ts +11 -0
  336. package/dist/cjs/core/fetcher/index.js +17 -0
  337. package/dist/cjs/core/fetcher/makeRequest.d.ts +1 -0
  338. package/dist/cjs/core/fetcher/makeRequest.js +40 -0
  339. package/dist/cjs/core/fetcher/requestWithRetries.d.ts +1 -0
  340. package/dist/cjs/core/fetcher/requestWithRetries.js +67 -0
  341. package/dist/cjs/core/fetcher/signals.d.ts +5 -0
  342. package/dist/cjs/core/fetcher/signals.js +24 -0
  343. package/dist/cjs/core/headers.d.ts +2 -0
  344. package/dist/cjs/core/headers.js +31 -0
  345. package/dist/cjs/core/index.d.ts +4 -0
  346. package/dist/cjs/core/index.js +43 -0
  347. package/dist/cjs/core/json.d.ts +15 -0
  348. package/dist/cjs/core/json.js +24 -0
  349. package/dist/cjs/core/logging/exports.d.ts +18 -0
  350. package/dist/cjs/core/logging/exports.js +45 -0
  351. package/dist/cjs/core/logging/index.d.ts +1 -0
  352. package/dist/cjs/core/logging/index.js +17 -0
  353. package/dist/cjs/core/logging/logger.d.ts +126 -0
  354. package/dist/cjs/core/logging/logger.js +144 -0
  355. package/dist/cjs/core/runtime/index.d.ts +1 -0
  356. package/dist/cjs/core/runtime/index.js +5 -0
  357. package/dist/cjs/core/runtime/runtime.d.ts +9 -0
  358. package/dist/cjs/core/runtime/runtime.js +103 -0
  359. package/dist/cjs/core/url/encodePathParam.d.ts +1 -0
  360. package/dist/cjs/core/url/encodePathParam.js +21 -0
  361. package/dist/cjs/core/url/index.d.ts +3 -0
  362. package/dist/cjs/core/url/index.js +9 -0
  363. package/dist/cjs/core/url/join.d.ts +1 -0
  364. package/dist/cjs/core/url/join.js +68 -0
  365. package/dist/cjs/core/url/qs.d.ts +6 -0
  366. package/dist/cjs/core/url/qs.js +64 -0
  367. package/dist/cjs/errors/FernIrError.d.ts +12 -0
  368. package/dist/cjs/errors/FernIrError.js +32 -0
  369. package/dist/cjs/errors/FernIrTimeoutError.d.ts +3 -0
  370. package/dist/cjs/errors/FernIrTimeoutError.js +15 -0
  371. package/dist/cjs/errors/handleNonStatusCodeError.d.ts +2 -0
  372. package/dist/cjs/errors/handleNonStatusCodeError.js +65 -0
  373. package/dist/cjs/errors/index.d.ts +2 -0
  374. package/dist/cjs/errors/index.js +7 -0
  375. package/dist/cjs/exports.d.ts +1 -0
  376. package/dist/cjs/exports.js +17 -0
  377. package/dist/cjs/index.d.ts +4 -0
  378. package/dist/cjs/index.js +44 -0
  379. package/dist/cjs/version.d.ts +1 -0
  380. package/dist/cjs/version.js +4 -0
  381. package/dist/esm/BaseClient.d.mts +32 -0
  382. package/dist/esm/BaseClient.mjs +14 -0
  383. package/dist/esm/api/index.d.mts +1 -0
  384. package/dist/esm/api/index.mjs +1 -0
  385. package/dist/esm/api/resources/commons/index.d.mts +1 -0
  386. package/dist/esm/api/resources/commons/index.mjs +1 -0
  387. package/dist/esm/api/resources/commons/types/Name.d.mts +8 -0
  388. package/dist/esm/api/resources/commons/types/Name.mjs +2 -0
  389. package/dist/esm/api/resources/commons/types/SafeAndUnsafeString.d.mts +6 -0
  390. package/dist/esm/api/resources/commons/types/SafeAndUnsafeString.mjs +2 -0
  391. package/dist/esm/api/resources/commons/types/index.d.mts +2 -0
  392. package/dist/esm/api/resources/commons/types/index.mjs +2 -0
  393. package/dist/esm/api/resources/dynamic/index.d.mts +1 -0
  394. package/dist/esm/api/resources/dynamic/index.mjs +1 -0
  395. package/dist/esm/api/resources/dynamic/resources/auth/index.d.mts +1 -0
  396. package/dist/esm/api/resources/dynamic/resources/auth/index.mjs +1 -0
  397. package/dist/esm/api/resources/dynamic/resources/auth/types/Auth.d.mts +19 -0
  398. package/dist/esm/api/resources/dynamic/resources/auth/types/Auth.mjs +2 -0
  399. package/dist/esm/api/resources/dynamic/resources/auth/types/AuthValues.d.mts +19 -0
  400. package/dist/esm/api/resources/dynamic/resources/auth/types/AuthValues.mjs +2 -0
  401. package/dist/esm/api/resources/dynamic/resources/auth/types/BasicAuth.d.mts +5 -0
  402. package/dist/esm/api/resources/dynamic/resources/auth/types/BasicAuth.mjs +2 -0
  403. package/dist/esm/api/resources/dynamic/resources/auth/types/BasicAuthValues.d.mts +4 -0
  404. package/dist/esm/api/resources/dynamic/resources/auth/types/BasicAuthValues.mjs +2 -0
  405. package/dist/esm/api/resources/dynamic/resources/auth/types/BearerAuth.d.mts +4 -0
  406. package/dist/esm/api/resources/dynamic/resources/auth/types/BearerAuth.mjs +2 -0
  407. package/dist/esm/api/resources/dynamic/resources/auth/types/BearerAuthValues.d.mts +3 -0
  408. package/dist/esm/api/resources/dynamic/resources/auth/types/BearerAuthValues.mjs +2 -0
  409. package/dist/esm/api/resources/dynamic/resources/auth/types/HeaderAuth.d.mts +4 -0
  410. package/dist/esm/api/resources/dynamic/resources/auth/types/HeaderAuth.mjs +2 -0
  411. package/dist/esm/api/resources/dynamic/resources/auth/types/HeaderAuthValues.d.mts +3 -0
  412. package/dist/esm/api/resources/dynamic/resources/auth/types/HeaderAuthValues.mjs +2 -0
  413. package/dist/esm/api/resources/dynamic/resources/auth/types/InferredAuth.d.mts +9 -0
  414. package/dist/esm/api/resources/dynamic/resources/auth/types/InferredAuth.mjs +2 -0
  415. package/dist/esm/api/resources/dynamic/resources/auth/types/InferredAuthValues.d.mts +8 -0
  416. package/dist/esm/api/resources/dynamic/resources/auth/types/InferredAuthValues.mjs +2 -0
  417. package/dist/esm/api/resources/dynamic/resources/auth/types/OAuth.d.mts +5 -0
  418. package/dist/esm/api/resources/dynamic/resources/auth/types/OAuth.mjs +2 -0
  419. package/dist/esm/api/resources/dynamic/resources/auth/types/OAuthValues.d.mts +4 -0
  420. package/dist/esm/api/resources/dynamic/resources/auth/types/OAuthValues.mjs +2 -0
  421. package/dist/esm/api/resources/dynamic/resources/auth/types/index.d.mts +12 -0
  422. package/dist/esm/api/resources/dynamic/resources/auth/types/index.mjs +12 -0
  423. package/dist/esm/api/resources/dynamic/resources/commons/index.d.mts +1 -0
  424. package/dist/esm/api/resources/dynamic/resources/commons/index.mjs +1 -0
  425. package/dist/esm/api/resources/dynamic/resources/commons/types/EndpointId.d.mts +1 -0
  426. package/dist/esm/api/resources/dynamic/resources/commons/types/EndpointId.mjs +2 -0
  427. package/dist/esm/api/resources/dynamic/resources/commons/types/FernFilepath.d.mts +6 -0
  428. package/dist/esm/api/resources/dynamic/resources/commons/types/FernFilepath.mjs +2 -0
  429. package/dist/esm/api/resources/dynamic/resources/commons/types/Name.d.mts +8 -0
  430. package/dist/esm/api/resources/dynamic/resources/commons/types/Name.mjs +2 -0
  431. package/dist/esm/api/resources/dynamic/resources/commons/types/NameAndWireValue.d.mts +5 -0
  432. package/dist/esm/api/resources/dynamic/resources/commons/types/NameAndWireValue.mjs +2 -0
  433. package/dist/esm/api/resources/dynamic/resources/commons/types/SafeAndUnsafeString.d.mts +6 -0
  434. package/dist/esm/api/resources/dynamic/resources/commons/types/SafeAndUnsafeString.mjs +2 -0
  435. package/dist/esm/api/resources/dynamic/resources/commons/types/TypeId.d.mts +1 -0
  436. package/dist/esm/api/resources/dynamic/resources/commons/types/TypeId.mjs +2 -0
  437. package/dist/esm/api/resources/dynamic/resources/commons/types/WithDocs.d.mts +3 -0
  438. package/dist/esm/api/resources/dynamic/resources/commons/types/WithDocs.mjs +2 -0
  439. package/dist/esm/api/resources/dynamic/resources/commons/types/index.d.mts +7 -0
  440. package/dist/esm/api/resources/dynamic/resources/commons/types/index.mjs +7 -0
  441. package/dist/esm/api/resources/dynamic/resources/declaration/index.d.mts +1 -0
  442. package/dist/esm/api/resources/dynamic/resources/declaration/index.mjs +1 -0
  443. package/dist/esm/api/resources/dynamic/resources/declaration/types/Declaration.d.mts +5 -0
  444. package/dist/esm/api/resources/dynamic/resources/declaration/types/Declaration.mjs +2 -0
  445. package/dist/esm/api/resources/dynamic/resources/declaration/types/index.d.mts +1 -0
  446. package/dist/esm/api/resources/dynamic/resources/declaration/types/index.mjs +1 -0
  447. package/dist/esm/api/resources/dynamic/resources/endpoints/index.d.mts +1 -0
  448. package/dist/esm/api/resources/dynamic/resources/endpoints/index.mjs +1 -0
  449. package/dist/esm/api/resources/dynamic/resources/endpoints/types/BodyRequest.d.mts +5 -0
  450. package/dist/esm/api/resources/dynamic/resources/endpoints/types/BodyRequest.mjs +2 -0
  451. package/dist/esm/api/resources/dynamic/resources/endpoints/types/Endpoint.d.mts +9 -0
  452. package/dist/esm/api/resources/dynamic/resources/endpoints/types/Endpoint.mjs +2 -0
  453. package/dist/esm/api/resources/dynamic/resources/endpoints/types/EndpointExample.d.mts +7 -0
  454. package/dist/esm/api/resources/dynamic/resources/endpoints/types/EndpointExample.mjs +2 -0
  455. package/dist/esm/api/resources/dynamic/resources/endpoints/types/EndpointLocation.d.mts +8 -0
  456. package/dist/esm/api/resources/dynamic/resources/endpoints/types/EndpointLocation.mjs +2 -0
  457. package/dist/esm/api/resources/dynamic/resources/endpoints/types/FileUploadRequestBody.d.mts +4 -0
  458. package/dist/esm/api/resources/dynamic/resources/endpoints/types/FileUploadRequestBody.mjs +2 -0
  459. package/dist/esm/api/resources/dynamic/resources/endpoints/types/FileUploadRequestBodyProperty.d.mts +13 -0
  460. package/dist/esm/api/resources/dynamic/resources/endpoints/types/FileUploadRequestBodyProperty.mjs +2 -0
  461. package/dist/esm/api/resources/dynamic/resources/endpoints/types/InlinedRequest.d.mts +9 -0
  462. package/dist/esm/api/resources/dynamic/resources/endpoints/types/InlinedRequest.mjs +2 -0
  463. package/dist/esm/api/resources/dynamic/resources/endpoints/types/InlinedRequestBody.d.mts +14 -0
  464. package/dist/esm/api/resources/dynamic/resources/endpoints/types/InlinedRequestBody.mjs +2 -0
  465. package/dist/esm/api/resources/dynamic/resources/endpoints/types/InlinedRequestMetadata.d.mts +18 -0
  466. package/dist/esm/api/resources/dynamic/resources/endpoints/types/InlinedRequestMetadata.mjs +2 -0
  467. package/dist/esm/api/resources/dynamic/resources/endpoints/types/ReferencedRequestBody.d.mts +5 -0
  468. package/dist/esm/api/resources/dynamic/resources/endpoints/types/ReferencedRequestBody.mjs +2 -0
  469. package/dist/esm/api/resources/dynamic/resources/endpoints/types/ReferencedRequestBodyType.d.mts +11 -0
  470. package/dist/esm/api/resources/dynamic/resources/endpoints/types/ReferencedRequestBodyType.mjs +2 -0
  471. package/dist/esm/api/resources/dynamic/resources/endpoints/types/Request.d.mts +13 -0
  472. package/dist/esm/api/resources/dynamic/resources/endpoints/types/Request.mjs +2 -0
  473. package/dist/esm/api/resources/dynamic/resources/endpoints/types/Response.d.mts +29 -0
  474. package/dist/esm/api/resources/dynamic/resources/endpoints/types/Response.mjs +2 -0
  475. package/dist/esm/api/resources/dynamic/resources/endpoints/types/index.d.mts +13 -0
  476. package/dist/esm/api/resources/dynamic/resources/endpoints/types/index.mjs +13 -0
  477. package/dist/esm/api/resources/dynamic/resources/environment/index.d.mts +1 -0
  478. package/dist/esm/api/resources/dynamic/resources/environment/index.mjs +1 -0
  479. package/dist/esm/api/resources/dynamic/resources/environment/types/EnvironmentBaseUrlId.d.mts +1 -0
  480. package/dist/esm/api/resources/dynamic/resources/environment/types/EnvironmentBaseUrlId.mjs +2 -0
  481. package/dist/esm/api/resources/dynamic/resources/environment/types/EnvironmentBaseUrlWithId.d.mts +5 -0
  482. package/dist/esm/api/resources/dynamic/resources/environment/types/EnvironmentBaseUrlWithId.mjs +2 -0
  483. package/dist/esm/api/resources/dynamic/resources/environment/types/EnvironmentId.d.mts +1 -0
  484. package/dist/esm/api/resources/dynamic/resources/environment/types/EnvironmentId.mjs +2 -0
  485. package/dist/esm/api/resources/dynamic/resources/environment/types/EnvironmentUrl.d.mts +1 -0
  486. package/dist/esm/api/resources/dynamic/resources/environment/types/EnvironmentUrl.mjs +2 -0
  487. package/dist/esm/api/resources/dynamic/resources/environment/types/EnvironmentValues.d.mts +14 -0
  488. package/dist/esm/api/resources/dynamic/resources/environment/types/EnvironmentValues.mjs +2 -0
  489. package/dist/esm/api/resources/dynamic/resources/environment/types/Environments.d.mts +10 -0
  490. package/dist/esm/api/resources/dynamic/resources/environment/types/Environments.mjs +2 -0
  491. package/dist/esm/api/resources/dynamic/resources/environment/types/EnvironmentsConfig.d.mts +5 -0
  492. package/dist/esm/api/resources/dynamic/resources/environment/types/EnvironmentsConfig.mjs +2 -0
  493. package/dist/esm/api/resources/dynamic/resources/environment/types/MultipleBaseUrlsEnvironment.d.mts +6 -0
  494. package/dist/esm/api/resources/dynamic/resources/environment/types/MultipleBaseUrlsEnvironment.mjs +2 -0
  495. package/dist/esm/api/resources/dynamic/resources/environment/types/MultipleBaseUrlsEnvironments.d.mts +5 -0
  496. package/dist/esm/api/resources/dynamic/resources/environment/types/MultipleBaseUrlsEnvironments.mjs +2 -0
  497. package/dist/esm/api/resources/dynamic/resources/environment/types/MultipleEnvironmentUrlValues.d.mts +2 -0
  498. package/dist/esm/api/resources/dynamic/resources/environment/types/MultipleEnvironmentUrlValues.mjs +2 -0
  499. package/dist/esm/api/resources/dynamic/resources/environment/types/SingleBaseUrlEnvironment.d.mts +6 -0
  500. package/dist/esm/api/resources/dynamic/resources/environment/types/SingleBaseUrlEnvironment.mjs +2 -0
  501. package/dist/esm/api/resources/dynamic/resources/environment/types/SingleBaseUrlEnvironments.d.mts +4 -0
  502. package/dist/esm/api/resources/dynamic/resources/environment/types/SingleBaseUrlEnvironments.mjs +2 -0
  503. package/dist/esm/api/resources/dynamic/resources/environment/types/index.d.mts +12 -0
  504. package/dist/esm/api/resources/dynamic/resources/environment/types/index.mjs +12 -0
  505. package/dist/esm/api/resources/dynamic/resources/http/index.d.mts +1 -0
  506. package/dist/esm/api/resources/dynamic/resources/http/index.mjs +1 -0
  507. package/dist/esm/api/resources/dynamic/resources/http/types/HttpMethod.d.mts +9 -0
  508. package/dist/esm/api/resources/dynamic/resources/http/types/HttpMethod.mjs +9 -0
  509. package/dist/esm/api/resources/dynamic/resources/http/types/index.d.mts +1 -0
  510. package/dist/esm/api/resources/dynamic/resources/http/types/index.mjs +1 -0
  511. package/dist/esm/api/resources/dynamic/resources/index.d.mts +20 -0
  512. package/dist/esm/api/resources/dynamic/resources/index.mjs +20 -0
  513. package/dist/esm/api/resources/dynamic/resources/ir/index.d.mts +1 -0
  514. package/dist/esm/api/resources/dynamic/resources/ir/index.mjs +1 -0
  515. package/dist/esm/api/resources/dynamic/resources/ir/types/CratesPublishInfo.d.mts +5 -0
  516. package/dist/esm/api/resources/dynamic/resources/ir/types/CratesPublishInfo.mjs +2 -0
  517. package/dist/esm/api/resources/dynamic/resources/ir/types/DynamicIntermediateRepresentation.d.mts +34 -0
  518. package/dist/esm/api/resources/dynamic/resources/ir/types/DynamicIntermediateRepresentation.mjs +2 -0
  519. package/dist/esm/api/resources/dynamic/resources/ir/types/GeneratorConfig.d.mts +15 -0
  520. package/dist/esm/api/resources/dynamic/resources/ir/types/GeneratorConfig.mjs +2 -0
  521. package/dist/esm/api/resources/dynamic/resources/ir/types/GeneratorOutputConfig.d.mts +15 -0
  522. package/dist/esm/api/resources/dynamic/resources/ir/types/GeneratorOutputConfig.mjs +2 -0
  523. package/dist/esm/api/resources/dynamic/resources/ir/types/GoPublishInfo.d.mts +5 -0
  524. package/dist/esm/api/resources/dynamic/resources/ir/types/GoPublishInfo.mjs +2 -0
  525. package/dist/esm/api/resources/dynamic/resources/ir/types/MavenPublishInfo.d.mts +5 -0
  526. package/dist/esm/api/resources/dynamic/resources/ir/types/MavenPublishInfo.mjs +2 -0
  527. package/dist/esm/api/resources/dynamic/resources/ir/types/NpmPublishInfo.d.mts +5 -0
  528. package/dist/esm/api/resources/dynamic/resources/ir/types/NpmPublishInfo.mjs +2 -0
  529. package/dist/esm/api/resources/dynamic/resources/ir/types/NugetPublishInfo.d.mts +5 -0
  530. package/dist/esm/api/resources/dynamic/resources/ir/types/NugetPublishInfo.mjs +2 -0
  531. package/dist/esm/api/resources/dynamic/resources/ir/types/PublishInfo.d.mts +28 -0
  532. package/dist/esm/api/resources/dynamic/resources/ir/types/PublishInfo.mjs +2 -0
  533. package/dist/esm/api/resources/dynamic/resources/ir/types/PypiPublishInfo.d.mts +5 -0
  534. package/dist/esm/api/resources/dynamic/resources/ir/types/PypiPublishInfo.mjs +2 -0
  535. package/dist/esm/api/resources/dynamic/resources/ir/types/RubyGemsPublishInfo.d.mts +5 -0
  536. package/dist/esm/api/resources/dynamic/resources/ir/types/RubyGemsPublishInfo.mjs +2 -0
  537. package/dist/esm/api/resources/dynamic/resources/ir/types/SwiftPublishInfo.d.mts +5 -0
  538. package/dist/esm/api/resources/dynamic/resources/ir/types/SwiftPublishInfo.mjs +2 -0
  539. package/dist/esm/api/resources/dynamic/resources/ir/types/index.d.mts +12 -0
  540. package/dist/esm/api/resources/dynamic/resources/ir/types/index.mjs +12 -0
  541. package/dist/esm/api/resources/dynamic/resources/snippets/index.d.mts +1 -0
  542. package/dist/esm/api/resources/dynamic/resources/snippets/index.mjs +1 -0
  543. package/dist/esm/api/resources/dynamic/resources/snippets/types/EndpointSnippetRequest.d.mts +14 -0
  544. package/dist/esm/api/resources/dynamic/resources/snippets/types/EndpointSnippetRequest.mjs +2 -0
  545. package/dist/esm/api/resources/dynamic/resources/snippets/types/EndpointSnippetResponse.d.mts +12 -0
  546. package/dist/esm/api/resources/dynamic/resources/snippets/types/EndpointSnippetResponse.mjs +2 -0
  547. package/dist/esm/api/resources/dynamic/resources/snippets/types/ErrorSeverity.d.mts +5 -0
  548. package/dist/esm/api/resources/dynamic/resources/snippets/types/ErrorSeverity.mjs +5 -0
  549. package/dist/esm/api/resources/dynamic/resources/snippets/types/Error_.d.mts +5 -0
  550. package/dist/esm/api/resources/dynamic/resources/snippets/types/Error_.mjs +2 -0
  551. package/dist/esm/api/resources/dynamic/resources/snippets/types/Values.d.mts +7 -0
  552. package/dist/esm/api/resources/dynamic/resources/snippets/types/Values.mjs +2 -0
  553. package/dist/esm/api/resources/dynamic/resources/snippets/types/index.d.mts +5 -0
  554. package/dist/esm/api/resources/dynamic/resources/snippets/types/index.mjs +5 -0
  555. package/dist/esm/api/resources/dynamic/resources/types/index.d.mts +1 -0
  556. package/dist/esm/api/resources/dynamic/resources/types/index.mjs +1 -0
  557. package/dist/esm/api/resources/dynamic/resources/types/types/AliasType.d.mts +5 -0
  558. package/dist/esm/api/resources/dynamic/resources/types/types/AliasType.mjs +2 -0
  559. package/dist/esm/api/resources/dynamic/resources/types/types/DiscriminatedUnionType.d.mts +7 -0
  560. package/dist/esm/api/resources/dynamic/resources/types/types/DiscriminatedUnionType.mjs +2 -0
  561. package/dist/esm/api/resources/dynamic/resources/types/types/EnumType.d.mts +5 -0
  562. package/dist/esm/api/resources/dynamic/resources/types/types/EnumType.mjs +2 -0
  563. package/dist/esm/api/resources/dynamic/resources/types/types/LiteralType.d.mts +12 -0
  564. package/dist/esm/api/resources/dynamic/resources/types/types/LiteralType.mjs +2 -0
  565. package/dist/esm/api/resources/dynamic/resources/types/types/MapType.d.mts +5 -0
  566. package/dist/esm/api/resources/dynamic/resources/types/types/MapType.mjs +2 -0
  567. package/dist/esm/api/resources/dynamic/resources/types/types/NamedParameter.d.mts +8 -0
  568. package/dist/esm/api/resources/dynamic/resources/types/types/NamedParameter.mjs +2 -0
  569. package/dist/esm/api/resources/dynamic/resources/types/types/NamedType.d.mts +22 -0
  570. package/dist/esm/api/resources/dynamic/resources/types/types/NamedType.mjs +2 -0
  571. package/dist/esm/api/resources/dynamic/resources/types/types/ObjectPropertyAccess.d.mts +5 -0
  572. package/dist/esm/api/resources/dynamic/resources/types/types/ObjectPropertyAccess.mjs +5 -0
  573. package/dist/esm/api/resources/dynamic/resources/types/types/ObjectType.d.mts +12 -0
  574. package/dist/esm/api/resources/dynamic/resources/types/types/ObjectType.mjs +2 -0
  575. package/dist/esm/api/resources/dynamic/resources/types/types/PrimitiveTypeV1.d.mts +18 -0
  576. package/dist/esm/api/resources/dynamic/resources/types/types/PrimitiveTypeV1.mjs +18 -0
  577. package/dist/esm/api/resources/dynamic/resources/types/types/SingleDiscriminatedUnionType.d.mts +13 -0
  578. package/dist/esm/api/resources/dynamic/resources/types/types/SingleDiscriminatedUnionType.mjs +2 -0
  579. package/dist/esm/api/resources/dynamic/resources/types/types/SingleDiscriminatedUnionTypeNoProperties.d.mts +6 -0
  580. package/dist/esm/api/resources/dynamic/resources/types/types/SingleDiscriminatedUnionTypeNoProperties.mjs +2 -0
  581. package/dist/esm/api/resources/dynamic/resources/types/types/SingleDiscriminatedUnionTypeObject.d.mts +7 -0
  582. package/dist/esm/api/resources/dynamic/resources/types/types/SingleDiscriminatedUnionTypeObject.mjs +2 -0
  583. package/dist/esm/api/resources/dynamic/resources/types/types/SingleDiscriminatedUnionTypeSingleProperty.d.mts +7 -0
  584. package/dist/esm/api/resources/dynamic/resources/types/types/SingleDiscriminatedUnionTypeSingleProperty.mjs +2 -0
  585. package/dist/esm/api/resources/dynamic/resources/types/types/TypeReference.d.mts +38 -0
  586. package/dist/esm/api/resources/dynamic/resources/types/types/TypeReference.mjs +2 -0
  587. package/dist/esm/api/resources/dynamic/resources/types/types/UndiscriminatedUnionType.d.mts +6 -0
  588. package/dist/esm/api/resources/dynamic/resources/types/types/UndiscriminatedUnionType.mjs +2 -0
  589. package/dist/esm/api/resources/dynamic/resources/types/types/index.d.mts +16 -0
  590. package/dist/esm/api/resources/dynamic/resources/types/types/index.mjs +16 -0
  591. package/dist/esm/api/resources/dynamic/resources/variables/index.d.mts +1 -0
  592. package/dist/esm/api/resources/dynamic/resources/variables/index.mjs +1 -0
  593. package/dist/esm/api/resources/dynamic/resources/variables/types/VariableDeclaration.d.mts +13 -0
  594. package/dist/esm/api/resources/dynamic/resources/variables/types/VariableDeclaration.mjs +2 -0
  595. package/dist/esm/api/resources/dynamic/resources/variables/types/index.d.mts +1 -0
  596. package/dist/esm/api/resources/dynamic/resources/variables/types/index.mjs +1 -0
  597. package/dist/esm/api/resources/generatorExec/index.d.mts +1 -0
  598. package/dist/esm/api/resources/generatorExec/index.mjs +1 -0
  599. package/dist/esm/api/resources/generatorExec/resources/config/index.d.mts +1 -0
  600. package/dist/esm/api/resources/generatorExec/resources/config/index.mjs +1 -0
  601. package/dist/esm/api/resources/generatorExec/resources/config/types/BasicLicense.d.mts +4 -0
  602. package/dist/esm/api/resources/generatorExec/resources/config/types/BasicLicense.mjs +2 -0
  603. package/dist/esm/api/resources/generatorExec/resources/config/types/CratesGithubPublishInfo.d.mts +7 -0
  604. package/dist/esm/api/resources/generatorExec/resources/config/types/CratesGithubPublishInfo.mjs +2 -0
  605. package/dist/esm/api/resources/generatorExec/resources/config/types/CratesRegistryConfig.d.mts +5 -0
  606. package/dist/esm/api/resources/generatorExec/resources/config/types/CratesRegistryConfig.mjs +2 -0
  607. package/dist/esm/api/resources/generatorExec/resources/config/types/CustomLicense.d.mts +3 -0
  608. package/dist/esm/api/resources/generatorExec/resources/config/types/CustomLicense.mjs +2 -0
  609. package/dist/esm/api/resources/generatorExec/resources/config/types/EnvironmentVariable.d.mts +1 -0
  610. package/dist/esm/api/resources/generatorExec/resources/config/types/EnvironmentVariable.mjs +2 -0
  611. package/dist/esm/api/resources/generatorExec/resources/config/types/GeneratorConfig.d.mts +18 -0
  612. package/dist/esm/api/resources/generatorExec/resources/config/types/GeneratorConfig.mjs +2 -0
  613. package/dist/esm/api/resources/generatorExec/resources/config/types/GeneratorEnvironment.d.mts +10 -0
  614. package/dist/esm/api/resources/generatorExec/resources/config/types/GeneratorEnvironment.mjs +2 -0
  615. package/dist/esm/api/resources/generatorExec/resources/config/types/GeneratorOutputConfig.d.mts +8 -0
  616. package/dist/esm/api/resources/generatorExec/resources/config/types/GeneratorOutputConfig.mjs +2 -0
  617. package/dist/esm/api/resources/generatorExec/resources/config/types/GeneratorPublishConfig.d.mts +9 -0
  618. package/dist/esm/api/resources/generatorExec/resources/config/types/GeneratorPublishConfig.mjs +2 -0
  619. package/dist/esm/api/resources/generatorExec/resources/config/types/GeneratorPublishTarget.d.mts +25 -0
  620. package/dist/esm/api/resources/generatorExec/resources/config/types/GeneratorPublishTarget.mjs +2 -0
  621. package/dist/esm/api/resources/generatorExec/resources/config/types/GeneratorRegistriesConfig.d.mts +5 -0
  622. package/dist/esm/api/resources/generatorExec/resources/config/types/GeneratorRegistriesConfig.mjs +2 -0
  623. package/dist/esm/api/resources/generatorExec/resources/config/types/GeneratorRegistriesConfigV2.d.mts +9 -0
  624. package/dist/esm/api/resources/generatorExec/resources/config/types/GeneratorRegistriesConfigV2.mjs +2 -0
  625. package/dist/esm/api/resources/generatorExec/resources/config/types/GithubOutputMode.d.mts +14 -0
  626. package/dist/esm/api/resources/generatorExec/resources/config/types/GithubOutputMode.mjs +2 -0
  627. package/dist/esm/api/resources/generatorExec/resources/config/types/GithubPublishInfo.d.mts +25 -0
  628. package/dist/esm/api/resources/generatorExec/resources/config/types/GithubPublishInfo.mjs +2 -0
  629. package/dist/esm/api/resources/generatorExec/resources/config/types/LicenseConfig.d.mts +10 -0
  630. package/dist/esm/api/resources/generatorExec/resources/config/types/LicenseConfig.mjs +2 -0
  631. package/dist/esm/api/resources/generatorExec/resources/config/types/LicenseId.d.mts +5 -0
  632. package/dist/esm/api/resources/generatorExec/resources/config/types/LicenseId.mjs +5 -0
  633. package/dist/esm/api/resources/generatorExec/resources/config/types/MavenCentralSignature.d.mts +5 -0
  634. package/dist/esm/api/resources/generatorExec/resources/config/types/MavenCentralSignature.mjs +2 -0
  635. package/dist/esm/api/resources/generatorExec/resources/config/types/MavenCentralSignatureGithubInfo.d.mts +6 -0
  636. package/dist/esm/api/resources/generatorExec/resources/config/types/MavenCentralSignatureGithubInfo.mjs +2 -0
  637. package/dist/esm/api/resources/generatorExec/resources/config/types/MavenGithubPublishInfo.d.mts +9 -0
  638. package/dist/esm/api/resources/generatorExec/resources/config/types/MavenGithubPublishInfo.mjs +2 -0
  639. package/dist/esm/api/resources/generatorExec/resources/config/types/MavenRegistryConfig.d.mts +8 -0
  640. package/dist/esm/api/resources/generatorExec/resources/config/types/MavenRegistryConfig.mjs +2 -0
  641. package/dist/esm/api/resources/generatorExec/resources/config/types/MavenRegistryConfigV2.d.mts +8 -0
  642. package/dist/esm/api/resources/generatorExec/resources/config/types/MavenRegistryConfigV2.mjs +2 -0
  643. package/dist/esm/api/resources/generatorExec/resources/config/types/NpmGithubPublishInfo.d.mts +7 -0
  644. package/dist/esm/api/resources/generatorExec/resources/config/types/NpmGithubPublishInfo.mjs +2 -0
  645. package/dist/esm/api/resources/generatorExec/resources/config/types/NpmRegistryConfig.d.mts +5 -0
  646. package/dist/esm/api/resources/generatorExec/resources/config/types/NpmRegistryConfig.mjs +2 -0
  647. package/dist/esm/api/resources/generatorExec/resources/config/types/NpmRegistryConfigV2.d.mts +5 -0
  648. package/dist/esm/api/resources/generatorExec/resources/config/types/NpmRegistryConfigV2.mjs +2 -0
  649. package/dist/esm/api/resources/generatorExec/resources/config/types/NugetGithubPublishInfo.d.mts +7 -0
  650. package/dist/esm/api/resources/generatorExec/resources/config/types/NugetGithubPublishInfo.mjs +2 -0
  651. package/dist/esm/api/resources/generatorExec/resources/config/types/NugetRegistryConfig.d.mts +5 -0
  652. package/dist/esm/api/resources/generatorExec/resources/config/types/NugetRegistryConfig.mjs +2 -0
  653. package/dist/esm/api/resources/generatorExec/resources/config/types/OutputMetadata.d.mts +5 -0
  654. package/dist/esm/api/resources/generatorExec/resources/config/types/OutputMetadata.mjs +2 -0
  655. package/dist/esm/api/resources/generatorExec/resources/config/types/OutputMetadataAuthor.d.mts +4 -0
  656. package/dist/esm/api/resources/generatorExec/resources/config/types/OutputMetadataAuthor.mjs +2 -0
  657. package/dist/esm/api/resources/generatorExec/resources/config/types/OutputMode.d.mts +13 -0
  658. package/dist/esm/api/resources/generatorExec/resources/config/types/OutputMode.mjs +2 -0
  659. package/dist/esm/api/resources/generatorExec/resources/config/types/PostmanConfig.d.mts +4 -0
  660. package/dist/esm/api/resources/generatorExec/resources/config/types/PostmanConfig.mjs +2 -0
  661. package/dist/esm/api/resources/generatorExec/resources/config/types/PostmanGithubPublishInfo.d.mts +5 -0
  662. package/dist/esm/api/resources/generatorExec/resources/config/types/PostmanGithubPublishInfo.mjs +2 -0
  663. package/dist/esm/api/resources/generatorExec/resources/config/types/PublishingMetadata.d.mts +9 -0
  664. package/dist/esm/api/resources/generatorExec/resources/config/types/PublishingMetadata.mjs +2 -0
  665. package/dist/esm/api/resources/generatorExec/resources/config/types/PypiGithubPublishInfo.d.mts +9 -0
  666. package/dist/esm/api/resources/generatorExec/resources/config/types/PypiGithubPublishInfo.mjs +2 -0
  667. package/dist/esm/api/resources/generatorExec/resources/config/types/PypiMetadata.d.mts +6 -0
  668. package/dist/esm/api/resources/generatorExec/resources/config/types/PypiMetadata.mjs +2 -0
  669. package/dist/esm/api/resources/generatorExec/resources/config/types/PypiRegistryConfig.d.mts +8 -0
  670. package/dist/esm/api/resources/generatorExec/resources/config/types/PypiRegistryConfig.mjs +2 -0
  671. package/dist/esm/api/resources/generatorExec/resources/config/types/RemoteGeneratorEnvironment.d.mts +5 -0
  672. package/dist/esm/api/resources/generatorExec/resources/config/types/RemoteGeneratorEnvironment.mjs +2 -0
  673. package/dist/esm/api/resources/generatorExec/resources/config/types/RubyGemsGithubPublishInfo.d.mts +7 -0
  674. package/dist/esm/api/resources/generatorExec/resources/config/types/RubyGemsGithubPublishInfo.mjs +2 -0
  675. package/dist/esm/api/resources/generatorExec/resources/config/types/RubyGemsRegistryConfig.d.mts +5 -0
  676. package/dist/esm/api/resources/generatorExec/resources/config/types/RubyGemsRegistryConfig.mjs +2 -0
  677. package/dist/esm/api/resources/generatorExec/resources/config/types/index.d.mts +38 -0
  678. package/dist/esm/api/resources/generatorExec/resources/config/types/index.mjs +38 -0
  679. package/dist/esm/api/resources/generatorExec/resources/index.d.mts +2 -0
  680. package/dist/esm/api/resources/generatorExec/resources/index.mjs +2 -0
  681. package/dist/esm/api/resources/index.d.mts +4 -0
  682. package/dist/esm/api/resources/index.mjs +4 -0
  683. package/dist/esm/core/exports.d.mts +1 -0
  684. package/dist/esm/core/exports.mjs +1 -0
  685. package/dist/esm/core/fetcher/APIResponse.d.mts +20 -0
  686. package/dist/esm/core/fetcher/APIResponse.mjs +1 -0
  687. package/dist/esm/core/fetcher/BinaryResponse.d.mts +19 -0
  688. package/dist/esm/core/fetcher/BinaryResponse.mjs +14 -0
  689. package/dist/esm/core/fetcher/EndpointMetadata.d.mts +13 -0
  690. package/dist/esm/core/fetcher/EndpointMetadata.mjs +1 -0
  691. package/dist/esm/core/fetcher/EndpointSupplier.d.mts +12 -0
  692. package/dist/esm/core/fetcher/EndpointSupplier.mjs +19 -0
  693. package/dist/esm/core/fetcher/Fetcher.d.mts +48 -0
  694. package/dist/esm/core/fetcher/Fetcher.mjs +312 -0
  695. package/dist/esm/core/fetcher/Headers.d.mts +2 -0
  696. package/dist/esm/core/fetcher/Headers.mjs +82 -0
  697. package/dist/esm/core/fetcher/HttpResponsePromise.d.mts +58 -0
  698. package/dist/esm/core/fetcher/HttpResponsePromise.mjs +99 -0
  699. package/dist/esm/core/fetcher/RawResponse.d.mts +29 -0
  700. package/dist/esm/core/fetcher/RawResponse.mjs +40 -0
  701. package/dist/esm/core/fetcher/Supplier.d.mts +4 -0
  702. package/dist/esm/core/fetcher/Supplier.mjs +19 -0
  703. package/dist/esm/core/fetcher/createRequestUrl.d.mts +1 -0
  704. package/dist/esm/core/fetcher/createRequestUrl.mjs +5 -0
  705. package/dist/esm/core/fetcher/getErrorResponseBody.d.mts +1 -0
  706. package/dist/esm/core/fetcher/getErrorResponseBody.mjs +42 -0
  707. package/dist/esm/core/fetcher/getFetchFn.d.mts +1 -0
  708. package/dist/esm/core/fetcher/getFetchFn.mjs +14 -0
  709. package/dist/esm/core/fetcher/getHeader.d.mts +1 -0
  710. package/dist/esm/core/fetcher/getHeader.mjs +8 -0
  711. package/dist/esm/core/fetcher/getRequestBody.d.mts +7 -0
  712. package/dist/esm/core/fetcher/getRequestBody.mjs +24 -0
  713. package/dist/esm/core/fetcher/getResponseBody.d.mts +1 -0
  714. package/dist/esm/core/fetcher/getResponseBody.mjs +66 -0
  715. package/dist/esm/core/fetcher/index.d.mts +11 -0
  716. package/dist/esm/core/fetcher/index.mjs +6 -0
  717. package/dist/esm/core/fetcher/makeRequest.d.mts +1 -0
  718. package/dist/esm/core/fetcher/makeRequest.mjs +36 -0
  719. package/dist/esm/core/fetcher/requestWithRetries.d.mts +1 -0
  720. package/dist/esm/core/fetcher/requestWithRetries.mjs +64 -0
  721. package/dist/esm/core/fetcher/signals.d.mts +5 -0
  722. package/dist/esm/core/fetcher/signals.mjs +20 -0
  723. package/dist/esm/core/headers.d.mts +2 -0
  724. package/dist/esm/core/headers.mjs +27 -0
  725. package/dist/esm/core/index.d.mts +4 -0
  726. package/dist/esm/core/index.mjs +4 -0
  727. package/dist/esm/core/json.d.mts +15 -0
  728. package/dist/esm/core/json.mjs +19 -0
  729. package/dist/esm/core/logging/exports.d.mts +18 -0
  730. package/dist/esm/core/logging/exports.mjs +9 -0
  731. package/dist/esm/core/logging/index.d.mts +1 -0
  732. package/dist/esm/core/logging/index.mjs +1 -0
  733. package/dist/esm/core/logging/logger.d.mts +126 -0
  734. package/dist/esm/core/logging/logger.mjs +138 -0
  735. package/dist/esm/core/runtime/index.d.mts +1 -0
  736. package/dist/esm/core/runtime/index.mjs +1 -0
  737. package/dist/esm/core/runtime/runtime.d.mts +9 -0
  738. package/dist/esm/core/runtime/runtime.mjs +100 -0
  739. package/dist/esm/core/url/encodePathParam.d.mts +1 -0
  740. package/dist/esm/core/url/encodePathParam.mjs +18 -0
  741. package/dist/esm/core/url/index.d.mts +3 -0
  742. package/dist/esm/core/url/index.mjs +3 -0
  743. package/dist/esm/core/url/join.d.mts +1 -0
  744. package/dist/esm/core/url/join.mjs +65 -0
  745. package/dist/esm/core/url/qs.d.mts +6 -0
  746. package/dist/esm/core/url/qs.mjs +61 -0
  747. package/dist/esm/errors/FernIrError.d.mts +12 -0
  748. package/dist/esm/errors/FernIrError.mjs +28 -0
  749. package/dist/esm/errors/FernIrTimeoutError.d.mts +3 -0
  750. package/dist/esm/errors/FernIrTimeoutError.mjs +11 -0
  751. package/dist/esm/errors/handleNonStatusCodeError.d.mts +2 -0
  752. package/dist/esm/errors/handleNonStatusCodeError.mjs +29 -0
  753. package/dist/esm/errors/index.d.mts +2 -0
  754. package/dist/esm/errors/index.mjs +2 -0
  755. package/dist/esm/exports.d.mts +1 -0
  756. package/dist/esm/exports.mjs +1 -0
  757. package/dist/esm/index.d.mts +4 -0
  758. package/dist/esm/index.mjs +3 -0
  759. package/dist/esm/version.d.mts +1 -0
  760. package/dist/esm/version.mjs +1 -0
  761. 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,2 @@
1
+ export * as config from "./config/index.mjs";
2
+ export * from "./config/types/index.mjs";
@@ -0,0 +1,2 @@
1
+ export * as config from "./config/index.mjs";
2
+ export * from "./config/types/index.mjs";
@@ -0,0 +1,4 @@
1
+ export * as commons from "./commons/index.mjs";
2
+ export * from "./commons/types/index.mjs";
3
+ export * as dynamic from "./dynamic/index.mjs";
4
+ export * as generatorExec from "./generatorExec/index.mjs";
@@ -0,0 +1,4 @@
1
+ export * as commons from "./commons/index.mjs";
2
+ export * from "./commons/types/index.mjs";
3
+ export * as dynamic from "./dynamic/index.mjs";
4
+ export * as generatorExec from "./generatorExec/index.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,2 @@
1
+ declare let Headers: typeof globalThis.Headers;
2
+ export { Headers };
@@ -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 };