@fern-api/venus-api-sdk 3.0.0 → 5.0.0

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 (285) hide show
  1. package/README.md +12 -12
  2. package/dist/cjs/BaseClient.d.ts +8 -2
  3. package/dist/cjs/BaseClient.js +14 -2
  4. package/dist/cjs/Client.d.ts +10 -10
  5. package/dist/cjs/Client.js +13 -11
  6. package/dist/cjs/api/client/healthHealthGet.d.ts +5 -5
  7. package/dist/cjs/api/client/healthHealthGet.js +2 -2
  8. package/dist/cjs/api/client/metricsMetricsGet.d.ts +5 -5
  9. package/dist/cjs/api/client/metricsMetricsGet.js +2 -2
  10. package/dist/cjs/api/resources/apiKeys/client/Client.d.ts +13 -13
  11. package/dist/cjs/api/resources/apiKeys/client/Client.js +27 -22
  12. package/dist/cjs/api/resources/apiKeys/client/create.d.ts +8 -8
  13. package/dist/cjs/api/resources/apiKeys/client/create.js +3 -3
  14. package/dist/cjs/api/resources/apiKeys/client/getTokenMetadata.d.ts +8 -8
  15. package/dist/cjs/api/resources/apiKeys/client/getTokenMetadata.js +3 -3
  16. package/dist/cjs/api/resources/apiKeys/client/getTokensForOrganization.d.ts +8 -8
  17. package/dist/cjs/api/resources/apiKeys/client/getTokensForOrganization.js +3 -3
  18. package/dist/cjs/api/resources/apiKeys/client/revokeToken.d.ts +8 -8
  19. package/dist/cjs/api/resources/apiKeys/client/revokeToken.js +3 -3
  20. package/dist/cjs/api/resources/apiKeys/client/revokeTokenById.d.ts +8 -8
  21. package/dist/cjs/api/resources/apiKeys/client/revokeTokenById.js +3 -3
  22. package/dist/cjs/api/resources/auth/client/Client.d.ts +9 -9
  23. package/dist/cjs/api/resources/auth/client/Client.js +17 -14
  24. package/dist/cjs/api/resources/auth/client/getAutopilotToken.d.ts +8 -8
  25. package/dist/cjs/api/resources/auth/client/getAutopilotToken.js +3 -3
  26. package/dist/cjs/api/resources/auth/client/getJwt.d.ts +8 -8
  27. package/dist/cjs/api/resources/auth/client/getJwt.js +3 -3
  28. package/dist/cjs/api/resources/auth/client/getOrgForGithubOwner.d.ts +8 -8
  29. package/dist/cjs/api/resources/auth/client/getOrgForGithubOwner.js +3 -3
  30. package/dist/cjs/api/resources/organization/client/Client.d.ts +26 -26
  31. package/dist/cjs/api/resources/organization/client/Client.js +60 -48
  32. package/dist/cjs/api/resources/organization/client/addUser.d.ts +8 -8
  33. package/dist/cjs/api/resources/organization/client/addUser.js +3 -3
  34. package/dist/cjs/api/resources/organization/client/create.d.ts +8 -8
  35. package/dist/cjs/api/resources/organization/client/create.js +3 -3
  36. package/dist/cjs/api/resources/organization/client/delete.d.ts +8 -8
  37. package/dist/cjs/api/resources/organization/client/delete.js +3 -3
  38. package/dist/cjs/api/resources/organization/client/get.d.ts +8 -8
  39. package/dist/cjs/api/resources/organization/client/get.js +3 -3
  40. package/dist/cjs/api/resources/organization/client/getMyOrganizationFromScopedToken.d.ts +8 -8
  41. package/dist/cjs/api/resources/organization/client/getMyOrganizationFromScopedToken.js +3 -3
  42. package/dist/cjs/api/resources/organization/client/getOrgIdsByPostmanTeamId.d.ts +8 -8
  43. package/dist/cjs/api/resources/organization/client/getOrgIdsByPostmanTeamId.js +3 -3
  44. package/dist/cjs/api/resources/organization/client/getOrgIdsFromToken.d.ts +5 -5
  45. package/dist/cjs/api/resources/organization/client/getOrgIdsFromToken.js +2 -2
  46. package/dist/cjs/api/resources/organization/client/getPostmanTeamIdByOrgId.d.ts +8 -8
  47. package/dist/cjs/api/resources/organization/client/getPostmanTeamIdByOrgId.js +3 -3
  48. package/dist/cjs/api/resources/organization/client/inviteUser.d.ts +8 -8
  49. package/dist/cjs/api/resources/organization/client/inviteUser.js +3 -3
  50. package/dist/cjs/api/resources/organization/client/isMember.d.ts +8 -8
  51. package/dist/cjs/api/resources/organization/client/isMember.js +3 -3
  52. package/dist/cjs/api/resources/organization/client/removeUser.d.ts +8 -8
  53. package/dist/cjs/api/resources/organization/client/removeUser.js +3 -3
  54. package/dist/cjs/api/resources/organization/client/update.d.ts +8 -8
  55. package/dist/cjs/api/resources/organization/client/update.js +3 -3
  56. package/dist/cjs/api/resources/registry/client/Client.d.ts +9 -9
  57. package/dist/cjs/api/resources/registry/client/Client.js +17 -14
  58. package/dist/cjs/api/resources/registry/client/generateRegistryTokens.d.ts +8 -8
  59. package/dist/cjs/api/resources/registry/client/generateRegistryTokens.js +3 -3
  60. package/dist/cjs/api/resources/registry/client/hasRegistryPermission.d.ts +8 -8
  61. package/dist/cjs/api/resources/registry/client/hasRegistryPermission.js +3 -3
  62. package/dist/cjs/api/resources/registry/client/requests/CheckRegistryPermissionRequest.d.ts +2 -2
  63. package/dist/cjs/api/resources/registry/client/revokeToken.d.ts +8 -8
  64. package/dist/cjs/api/resources/registry/client/revokeToken.js +3 -3
  65. package/dist/cjs/api/resources/user/client/Client.d.ts +8 -8
  66. package/dist/cjs/api/resources/user/client/Client.js +15 -12
  67. package/dist/cjs/api/resources/user/client/getMyOrganizations.d.ts +8 -8
  68. package/dist/cjs/api/resources/user/client/getMyOrganizations.js +3 -3
  69. package/dist/cjs/api/resources/user/client/getMyself.d.ts +5 -5
  70. package/dist/cjs/api/resources/user/client/getMyself.js +2 -2
  71. package/dist/cjs/api/resources/user/client/linkAccounts.d.ts +8 -8
  72. package/dist/cjs/api/resources/user/client/linkAccounts.js +3 -3
  73. package/dist/cjs/api/types/HttpValidationError.d.ts +2 -2
  74. package/dist/cjs/api/types/Organization.d.ts +2 -2
  75. package/dist/cjs/api/types/RegistryToken.d.ts +5 -5
  76. package/dist/cjs/api/types/RegistryTokens.d.ts +4 -4
  77. package/dist/cjs/api/types/TokenMetadata.d.ts +2 -2
  78. package/dist/cjs/api/types/TokenStatus.d.ts +5 -5
  79. package/dist/cjs/api/types/ValidationError.d.ts +2 -2
  80. package/dist/cjs/auth/BearerAuthProvider.d.ts +20 -0
  81. package/dist/cjs/auth/BearerAuthProvider.js +76 -0
  82. package/dist/cjs/auth/index.d.ts +1 -0
  83. package/dist/cjs/auth/index.js +5 -0
  84. package/dist/cjs/core/auth/AuthProvider.d.ts +7 -0
  85. package/dist/cjs/core/auth/AuthProvider.js +2 -0
  86. package/dist/cjs/core/auth/AuthRequest.d.ts +9 -0
  87. package/dist/cjs/core/auth/AuthRequest.js +2 -0
  88. package/dist/cjs/core/auth/BasicAuth.d.ts +8 -0
  89. package/dist/cjs/core/auth/BasicAuth.js +27 -0
  90. package/dist/cjs/core/auth/BearerToken.d.ts +7 -0
  91. package/dist/cjs/core/auth/BearerToken.js +16 -0
  92. package/dist/cjs/core/auth/NoOpAuthProvider.d.ts +5 -0
  93. package/dist/cjs/core/auth/NoOpAuthProvider.js +9 -0
  94. package/dist/cjs/core/auth/index.d.ts +5 -0
  95. package/dist/cjs/core/auth/index.js +9 -0
  96. package/dist/cjs/core/base64.d.ts +2 -0
  97. package/dist/cjs/core/base64.js +26 -0
  98. package/dist/cjs/core/index.d.ts +2 -0
  99. package/dist/cjs/core/index.js +2 -0
  100. package/dist/cjs/index.d.ts +2 -2
  101. package/dist/cjs/index.js +3 -3
  102. package/dist/cjs/serialization/resources/apiKeys/client/getTokensForOrganization.d.ts +2 -2
  103. package/dist/cjs/serialization/resources/apiKeys/client/requests/CreateApiKeyRequest.d.ts +2 -2
  104. package/dist/cjs/serialization/resources/apiKeys/client/requests/GetTokenMetadataRequest.d.ts +2 -2
  105. package/dist/cjs/serialization/resources/apiKeys/client/requests/RevokeApiKeyRequest.d.ts +2 -2
  106. package/dist/cjs/serialization/resources/auth/client/requests/GetAutopilotTokenRequest.d.ts +2 -2
  107. package/dist/cjs/serialization/resources/auth/client/requests/GetJwtRequest.d.ts +2 -2
  108. package/dist/cjs/serialization/resources/organization/client/requests/AddUserToOrgRequest.d.ts +2 -2
  109. package/dist/cjs/serialization/resources/organization/client/requests/CreateOrganizationRequest.d.ts +2 -2
  110. package/dist/cjs/serialization/resources/organization/client/requests/InviteUserToOrgRequest.d.ts +2 -2
  111. package/dist/cjs/serialization/resources/organization/client/requests/RemoveUserFromOrgRequest.d.ts +2 -2
  112. package/dist/cjs/serialization/resources/organization/client/requests/UpdateOrganizationRequest.d.ts +2 -2
  113. package/dist/cjs/serialization/resources/registry/client/requests/CheckRegistryPermissionRequest.d.ts +2 -2
  114. package/dist/cjs/serialization/resources/registry/client/requests/GenerateRegistryTokensRequest.d.ts +2 -2
  115. package/dist/cjs/serialization/resources/registry/client/requests/RevokeTokenRequest.d.ts +2 -2
  116. package/dist/cjs/serialization/resources/user/client/requests/LinkAccountsRequest.d.ts +2 -2
  117. package/dist/cjs/serialization/types/Active.d.ts +2 -2
  118. package/dist/cjs/serialization/types/CreateOrganizationResponse.d.ts +2 -2
  119. package/dist/cjs/serialization/types/CreateTokenResponse.d.ts +2 -2
  120. package/dist/cjs/serialization/types/Expired.d.ts +2 -2
  121. package/dist/cjs/serialization/types/HttpValidationError.d.ts +2 -2
  122. package/dist/cjs/serialization/types/JwtResponse.d.ts +2 -2
  123. package/dist/cjs/serialization/types/LightweightUser.d.ts +2 -2
  124. package/dist/cjs/serialization/types/LinkAccountsResponse.d.ts +2 -2
  125. package/dist/cjs/serialization/types/Maven.d.ts +2 -2
  126. package/dist/cjs/serialization/types/MavenRegistryToken.d.ts +2 -2
  127. package/dist/cjs/serialization/types/Npm.d.ts +2 -2
  128. package/dist/cjs/serialization/types/NpmRegistryToken.d.ts +2 -2
  129. package/dist/cjs/serialization/types/Organization.d.ts +2 -2
  130. package/dist/cjs/serialization/types/OrganizationsPage.d.ts +2 -2
  131. package/dist/cjs/serialization/types/Pypi.d.ts +2 -2
  132. package/dist/cjs/serialization/types/PypiRegistryToken.d.ts +2 -2
  133. package/dist/cjs/serialization/types/RegistryToken.d.ts +2 -2
  134. package/dist/cjs/serialization/types/RegistryTokens.d.ts +2 -2
  135. package/dist/cjs/serialization/types/Revoked.d.ts +2 -2
  136. package/dist/cjs/serialization/types/TokenMetadata.d.ts +2 -2
  137. package/dist/cjs/serialization/types/TokenStatus.d.ts +2 -2
  138. package/dist/cjs/serialization/types/User.d.ts +2 -2
  139. package/dist/cjs/serialization/types/ValidationError.d.ts +2 -2
  140. package/dist/cjs/serialization/types/ValidationErrorLocItem.d.ts +2 -2
  141. package/dist/cjs/version.d.ts +1 -1
  142. package/dist/cjs/version.js +1 -1
  143. package/dist/esm/BaseClient.d.mts +8 -2
  144. package/dist/esm/BaseClient.mjs +13 -2
  145. package/dist/esm/Client.d.mts +10 -10
  146. package/dist/esm/Client.mjs +12 -10
  147. package/dist/esm/api/client/healthHealthGet.d.mts +5 -5
  148. package/dist/esm/api/client/healthHealthGet.mjs +2 -2
  149. package/dist/esm/api/client/metricsMetricsGet.d.mts +5 -5
  150. package/dist/esm/api/client/metricsMetricsGet.mjs +2 -2
  151. package/dist/esm/api/resources/apiKeys/client/Client.d.mts +13 -13
  152. package/dist/esm/api/resources/apiKeys/client/Client.mjs +28 -23
  153. package/dist/esm/api/resources/apiKeys/client/create.d.mts +8 -8
  154. package/dist/esm/api/resources/apiKeys/client/create.mjs +3 -3
  155. package/dist/esm/api/resources/apiKeys/client/getTokenMetadata.d.mts +8 -8
  156. package/dist/esm/api/resources/apiKeys/client/getTokenMetadata.mjs +3 -3
  157. package/dist/esm/api/resources/apiKeys/client/getTokensForOrganization.d.mts +8 -8
  158. package/dist/esm/api/resources/apiKeys/client/getTokensForOrganization.mjs +3 -3
  159. package/dist/esm/api/resources/apiKeys/client/revokeToken.d.mts +8 -8
  160. package/dist/esm/api/resources/apiKeys/client/revokeToken.mjs +3 -3
  161. package/dist/esm/api/resources/apiKeys/client/revokeTokenById.d.mts +8 -8
  162. package/dist/esm/api/resources/apiKeys/client/revokeTokenById.mjs +3 -3
  163. package/dist/esm/api/resources/auth/client/Client.d.mts +9 -9
  164. package/dist/esm/api/resources/auth/client/Client.mjs +18 -15
  165. package/dist/esm/api/resources/auth/client/getAutopilotToken.d.mts +8 -8
  166. package/dist/esm/api/resources/auth/client/getAutopilotToken.mjs +3 -3
  167. package/dist/esm/api/resources/auth/client/getJwt.d.mts +8 -8
  168. package/dist/esm/api/resources/auth/client/getJwt.mjs +3 -3
  169. package/dist/esm/api/resources/auth/client/getOrgForGithubOwner.d.mts +8 -8
  170. package/dist/esm/api/resources/auth/client/getOrgForGithubOwner.mjs +3 -3
  171. package/dist/esm/api/resources/organization/client/Client.d.mts +26 -26
  172. package/dist/esm/api/resources/organization/client/Client.mjs +61 -49
  173. package/dist/esm/api/resources/organization/client/addUser.d.mts +8 -8
  174. package/dist/esm/api/resources/organization/client/addUser.mjs +3 -3
  175. package/dist/esm/api/resources/organization/client/create.d.mts +8 -8
  176. package/dist/esm/api/resources/organization/client/create.mjs +3 -3
  177. package/dist/esm/api/resources/organization/client/delete.d.mts +8 -8
  178. package/dist/esm/api/resources/organization/client/delete.mjs +3 -3
  179. package/dist/esm/api/resources/organization/client/get.d.mts +8 -8
  180. package/dist/esm/api/resources/organization/client/get.mjs +3 -3
  181. package/dist/esm/api/resources/organization/client/getMyOrganizationFromScopedToken.d.mts +8 -8
  182. package/dist/esm/api/resources/organization/client/getMyOrganizationFromScopedToken.mjs +3 -3
  183. package/dist/esm/api/resources/organization/client/getOrgIdsByPostmanTeamId.d.mts +8 -8
  184. package/dist/esm/api/resources/organization/client/getOrgIdsByPostmanTeamId.mjs +3 -3
  185. package/dist/esm/api/resources/organization/client/getOrgIdsFromToken.d.mts +5 -5
  186. package/dist/esm/api/resources/organization/client/getOrgIdsFromToken.mjs +2 -2
  187. package/dist/esm/api/resources/organization/client/getPostmanTeamIdByOrgId.d.mts +8 -8
  188. package/dist/esm/api/resources/organization/client/getPostmanTeamIdByOrgId.mjs +3 -3
  189. package/dist/esm/api/resources/organization/client/inviteUser.d.mts +8 -8
  190. package/dist/esm/api/resources/organization/client/inviteUser.mjs +3 -3
  191. package/dist/esm/api/resources/organization/client/isMember.d.mts +8 -8
  192. package/dist/esm/api/resources/organization/client/isMember.mjs +3 -3
  193. package/dist/esm/api/resources/organization/client/removeUser.d.mts +8 -8
  194. package/dist/esm/api/resources/organization/client/removeUser.mjs +3 -3
  195. package/dist/esm/api/resources/organization/client/update.d.mts +8 -8
  196. package/dist/esm/api/resources/organization/client/update.mjs +3 -3
  197. package/dist/esm/api/resources/registry/client/Client.d.mts +9 -9
  198. package/dist/esm/api/resources/registry/client/Client.mjs +18 -15
  199. package/dist/esm/api/resources/registry/client/generateRegistryTokens.d.mts +8 -8
  200. package/dist/esm/api/resources/registry/client/generateRegistryTokens.mjs +3 -3
  201. package/dist/esm/api/resources/registry/client/hasRegistryPermission.d.mts +8 -8
  202. package/dist/esm/api/resources/registry/client/hasRegistryPermission.mjs +3 -3
  203. package/dist/esm/api/resources/registry/client/requests/CheckRegistryPermissionRequest.d.mts +2 -2
  204. package/dist/esm/api/resources/registry/client/revokeToken.d.mts +8 -8
  205. package/dist/esm/api/resources/registry/client/revokeToken.mjs +3 -3
  206. package/dist/esm/api/resources/user/client/Client.d.mts +8 -8
  207. package/dist/esm/api/resources/user/client/Client.mjs +16 -13
  208. package/dist/esm/api/resources/user/client/getMyOrganizations.d.mts +8 -8
  209. package/dist/esm/api/resources/user/client/getMyOrganizations.mjs +3 -3
  210. package/dist/esm/api/resources/user/client/getMyself.d.mts +5 -5
  211. package/dist/esm/api/resources/user/client/getMyself.mjs +2 -2
  212. package/dist/esm/api/resources/user/client/linkAccounts.d.mts +8 -8
  213. package/dist/esm/api/resources/user/client/linkAccounts.mjs +3 -3
  214. package/dist/esm/api/types/HttpValidationError.d.mts +2 -2
  215. package/dist/esm/api/types/Organization.d.mts +2 -2
  216. package/dist/esm/api/types/RegistryToken.d.mts +5 -5
  217. package/dist/esm/api/types/RegistryTokens.d.mts +4 -4
  218. package/dist/esm/api/types/TokenMetadata.d.mts +2 -2
  219. package/dist/esm/api/types/TokenStatus.d.mts +5 -5
  220. package/dist/esm/api/types/ValidationError.d.mts +2 -2
  221. package/dist/esm/auth/BearerAuthProvider.d.mts +20 -0
  222. package/dist/esm/auth/BearerAuthProvider.mjs +39 -0
  223. package/dist/esm/auth/index.d.mts +1 -0
  224. package/dist/esm/auth/index.mjs +1 -0
  225. package/dist/esm/core/auth/AuthProvider.d.mts +7 -0
  226. package/dist/esm/core/auth/AuthProvider.mjs +1 -0
  227. package/dist/esm/core/auth/AuthRequest.d.mts +9 -0
  228. package/dist/esm/core/auth/AuthRequest.mjs +1 -0
  229. package/dist/esm/core/auth/BasicAuth.d.mts +8 -0
  230. package/dist/esm/core/auth/BasicAuth.mjs +24 -0
  231. package/dist/esm/core/auth/BearerToken.d.mts +7 -0
  232. package/dist/esm/core/auth/BearerToken.mjs +13 -0
  233. package/dist/esm/core/auth/NoOpAuthProvider.d.mts +5 -0
  234. package/dist/esm/core/auth/NoOpAuthProvider.mjs +5 -0
  235. package/dist/esm/core/auth/index.d.mts +5 -0
  236. package/dist/esm/core/auth/index.mjs +3 -0
  237. package/dist/esm/core/base64.d.mts +2 -0
  238. package/dist/esm/core/base64.mjs +22 -0
  239. package/dist/esm/core/index.d.mts +2 -0
  240. package/dist/esm/core/index.mjs +2 -0
  241. package/dist/esm/index.d.mts +2 -2
  242. package/dist/esm/index.mjs +2 -2
  243. package/dist/esm/serialization/resources/apiKeys/client/getTokensForOrganization.d.mts +2 -2
  244. package/dist/esm/serialization/resources/apiKeys/client/requests/CreateApiKeyRequest.d.mts +2 -2
  245. package/dist/esm/serialization/resources/apiKeys/client/requests/GetTokenMetadataRequest.d.mts +2 -2
  246. package/dist/esm/serialization/resources/apiKeys/client/requests/RevokeApiKeyRequest.d.mts +2 -2
  247. package/dist/esm/serialization/resources/auth/client/requests/GetAutopilotTokenRequest.d.mts +2 -2
  248. package/dist/esm/serialization/resources/auth/client/requests/GetJwtRequest.d.mts +2 -2
  249. package/dist/esm/serialization/resources/organization/client/requests/AddUserToOrgRequest.d.mts +2 -2
  250. package/dist/esm/serialization/resources/organization/client/requests/CreateOrganizationRequest.d.mts +2 -2
  251. package/dist/esm/serialization/resources/organization/client/requests/InviteUserToOrgRequest.d.mts +2 -2
  252. package/dist/esm/serialization/resources/organization/client/requests/RemoveUserFromOrgRequest.d.mts +2 -2
  253. package/dist/esm/serialization/resources/organization/client/requests/UpdateOrganizationRequest.d.mts +2 -2
  254. package/dist/esm/serialization/resources/registry/client/requests/CheckRegistryPermissionRequest.d.mts +2 -2
  255. package/dist/esm/serialization/resources/registry/client/requests/GenerateRegistryTokensRequest.d.mts +2 -2
  256. package/dist/esm/serialization/resources/registry/client/requests/RevokeTokenRequest.d.mts +2 -2
  257. package/dist/esm/serialization/resources/user/client/requests/LinkAccountsRequest.d.mts +2 -2
  258. package/dist/esm/serialization/types/Active.d.mts +2 -2
  259. package/dist/esm/serialization/types/CreateOrganizationResponse.d.mts +2 -2
  260. package/dist/esm/serialization/types/CreateTokenResponse.d.mts +2 -2
  261. package/dist/esm/serialization/types/Expired.d.mts +2 -2
  262. package/dist/esm/serialization/types/HttpValidationError.d.mts +2 -2
  263. package/dist/esm/serialization/types/JwtResponse.d.mts +2 -2
  264. package/dist/esm/serialization/types/LightweightUser.d.mts +2 -2
  265. package/dist/esm/serialization/types/LinkAccountsResponse.d.mts +2 -2
  266. package/dist/esm/serialization/types/Maven.d.mts +2 -2
  267. package/dist/esm/serialization/types/MavenRegistryToken.d.mts +2 -2
  268. package/dist/esm/serialization/types/Npm.d.mts +2 -2
  269. package/dist/esm/serialization/types/NpmRegistryToken.d.mts +2 -2
  270. package/dist/esm/serialization/types/Organization.d.mts +2 -2
  271. package/dist/esm/serialization/types/OrganizationsPage.d.mts +2 -2
  272. package/dist/esm/serialization/types/Pypi.d.mts +2 -2
  273. package/dist/esm/serialization/types/PypiRegistryToken.d.mts +2 -2
  274. package/dist/esm/serialization/types/RegistryToken.d.mts +2 -2
  275. package/dist/esm/serialization/types/RegistryTokens.d.mts +2 -2
  276. package/dist/esm/serialization/types/Revoked.d.mts +2 -2
  277. package/dist/esm/serialization/types/TokenMetadata.d.mts +2 -2
  278. package/dist/esm/serialization/types/TokenStatus.d.mts +2 -2
  279. package/dist/esm/serialization/types/User.d.mts +2 -2
  280. package/dist/esm/serialization/types/ValidationError.d.mts +2 -2
  281. package/dist/esm/serialization/types/ValidationErrorLocItem.d.mts +2 -2
  282. package/dist/esm/version.d.mts +1 -1
  283. package/dist/esm/version.mjs +1 -1
  284. package/package.json +1 -1
  285. package/reference.md +54 -54
@@ -1,7 +1,7 @@
1
- import type * as FernApi from "../../api/index.js";
1
+ import type * as FernVenusApi from "../../api/index.js";
2
2
  import * as core from "../../core/index.js";
3
3
  import type * as serializers from "../index.js";
4
- export declare const CreateOrganizationResponse: core.serialization.ObjectSchema<serializers.CreateOrganizationResponse.Raw, FernApi.CreateOrganizationResponse>;
4
+ export declare const CreateOrganizationResponse: core.serialization.ObjectSchema<serializers.CreateOrganizationResponse.Raw, FernVenusApi.CreateOrganizationResponse>;
5
5
  export declare namespace CreateOrganizationResponse {
6
6
  interface Raw {
7
7
  organizationId: string;
@@ -1,7 +1,7 @@
1
- import type * as FernApi from "../../api/index.js";
1
+ import type * as FernVenusApi from "../../api/index.js";
2
2
  import * as core from "../../core/index.js";
3
3
  import type * as serializers from "../index.js";
4
- export declare const CreateTokenResponse: core.serialization.ObjectSchema<serializers.CreateTokenResponse.Raw, FernApi.CreateTokenResponse>;
4
+ export declare const CreateTokenResponse: core.serialization.ObjectSchema<serializers.CreateTokenResponse.Raw, FernVenusApi.CreateTokenResponse>;
5
5
  export declare namespace CreateTokenResponse {
6
6
  interface Raw {
7
7
  token: string;
@@ -1,7 +1,7 @@
1
- import type * as FernApi from "../../api/index.js";
1
+ import type * as FernVenusApi from "../../api/index.js";
2
2
  import * as core from "../../core/index.js";
3
3
  import type * as serializers from "../index.js";
4
- export declare const Expired: core.serialization.ObjectSchema<serializers.Expired.Raw, FernApi.Expired>;
4
+ export declare const Expired: core.serialization.ObjectSchema<serializers.Expired.Raw, FernVenusApi.Expired>;
5
5
  export declare namespace Expired {
6
6
  type Raw = {};
7
7
  }
@@ -1,8 +1,8 @@
1
- import type * as FernApi from "../../api/index.js";
1
+ import type * as FernVenusApi from "../../api/index.js";
2
2
  import * as core from "../../core/index.js";
3
3
  import type * as serializers from "../index.js";
4
4
  import { ValidationError } from "./ValidationError.js";
5
- export declare const HttpValidationError: core.serialization.ObjectSchema<serializers.HttpValidationError.Raw, FernApi.HttpValidationError>;
5
+ export declare const HttpValidationError: core.serialization.ObjectSchema<serializers.HttpValidationError.Raw, FernVenusApi.HttpValidationError>;
6
6
  export declare namespace HttpValidationError {
7
7
  interface Raw {
8
8
  detail?: ValidationError.Raw[] | null;
@@ -1,7 +1,7 @@
1
- import type * as FernApi from "../../api/index.js";
1
+ import type * as FernVenusApi from "../../api/index.js";
2
2
  import * as core from "../../core/index.js";
3
3
  import type * as serializers from "../index.js";
4
- export declare const JwtResponse: core.serialization.ObjectSchema<serializers.JwtResponse.Raw, FernApi.JwtResponse>;
4
+ export declare const JwtResponse: core.serialization.ObjectSchema<serializers.JwtResponse.Raw, FernVenusApi.JwtResponse>;
5
5
  export declare namespace JwtResponse {
6
6
  interface Raw {
7
7
  token: string;
@@ -1,7 +1,7 @@
1
- import type * as FernApi from "../../api/index.js";
1
+ import type * as FernVenusApi from "../../api/index.js";
2
2
  import * as core from "../../core/index.js";
3
3
  import type * as serializers from "../index.js";
4
- export declare const LightweightUser: core.serialization.ObjectSchema<serializers.LightweightUser.Raw, FernApi.LightweightUser>;
4
+ export declare const LightweightUser: core.serialization.ObjectSchema<serializers.LightweightUser.Raw, FernVenusApi.LightweightUser>;
5
5
  export declare namespace LightweightUser {
6
6
  interface Raw {
7
7
  userId: string;
@@ -1,7 +1,7 @@
1
- import type * as FernApi from "../../api/index.js";
1
+ import type * as FernVenusApi from "../../api/index.js";
2
2
  import * as core from "../../core/index.js";
3
3
  import type * as serializers from "../index.js";
4
- export declare const LinkAccountsResponse: core.serialization.ObjectSchema<serializers.LinkAccountsResponse.Raw, FernApi.LinkAccountsResponse>;
4
+ export declare const LinkAccountsResponse: core.serialization.ObjectSchema<serializers.LinkAccountsResponse.Raw, FernVenusApi.LinkAccountsResponse>;
5
5
  export declare namespace LinkAccountsResponse {
6
6
  interface Raw {
7
7
  linkedAccounts: string[];
@@ -1,7 +1,7 @@
1
- import type * as FernApi from "../../api/index.js";
1
+ import type * as FernVenusApi from "../../api/index.js";
2
2
  import * as core from "../../core/index.js";
3
3
  import type * as serializers from "../index.js";
4
- export declare const Maven: core.serialization.ObjectSchema<serializers.Maven.Raw, FernApi.Maven>;
4
+ export declare const Maven: core.serialization.ObjectSchema<serializers.Maven.Raw, FernVenusApi.Maven>;
5
5
  export declare namespace Maven {
6
6
  interface Raw {
7
7
  username: string;
@@ -1,7 +1,7 @@
1
- import type * as FernApi from "../../api/index.js";
1
+ import type * as FernVenusApi from "../../api/index.js";
2
2
  import * as core from "../../core/index.js";
3
3
  import type * as serializers from "../index.js";
4
- export declare const MavenRegistryToken: core.serialization.ObjectSchema<serializers.MavenRegistryToken.Raw, FernApi.MavenRegistryToken>;
4
+ export declare const MavenRegistryToken: core.serialization.ObjectSchema<serializers.MavenRegistryToken.Raw, FernVenusApi.MavenRegistryToken>;
5
5
  export declare namespace MavenRegistryToken {
6
6
  interface Raw {
7
7
  username: string;
@@ -1,7 +1,7 @@
1
- import type * as FernApi from "../../api/index.js";
1
+ import type * as FernVenusApi from "../../api/index.js";
2
2
  import * as core from "../../core/index.js";
3
3
  import type * as serializers from "../index.js";
4
- export declare const Npm: core.serialization.ObjectSchema<serializers.Npm.Raw, FernApi.Npm>;
4
+ export declare const Npm: core.serialization.ObjectSchema<serializers.Npm.Raw, FernVenusApi.Npm>;
5
5
  export declare namespace Npm {
6
6
  interface Raw {
7
7
  token: string;
@@ -1,7 +1,7 @@
1
- import type * as FernApi from "../../api/index.js";
1
+ import type * as FernVenusApi from "../../api/index.js";
2
2
  import * as core from "../../core/index.js";
3
3
  import type * as serializers from "../index.js";
4
- export declare const NpmRegistryToken: core.serialization.ObjectSchema<serializers.NpmRegistryToken.Raw, FernApi.NpmRegistryToken>;
4
+ export declare const NpmRegistryToken: core.serialization.ObjectSchema<serializers.NpmRegistryToken.Raw, FernVenusApi.NpmRegistryToken>;
5
5
  export declare namespace NpmRegistryToken {
6
6
  interface Raw {
7
7
  token: string;
@@ -1,8 +1,8 @@
1
- import type * as FernApi from "../../api/index.js";
1
+ import type * as FernVenusApi from "../../api/index.js";
2
2
  import * as core from "../../core/index.js";
3
3
  import type * as serializers from "../index.js";
4
4
  import { LightweightUser } from "./LightweightUser.js";
5
- export declare const Organization: core.serialization.ObjectSchema<serializers.Organization.Raw, FernApi.Organization>;
5
+ export declare const Organization: core.serialization.ObjectSchema<serializers.Organization.Raw, FernVenusApi.Organization>;
6
6
  export declare namespace Organization {
7
7
  interface Raw {
8
8
  organizationId: string;
@@ -1,7 +1,7 @@
1
- import type * as FernApi from "../../api/index.js";
1
+ import type * as FernVenusApi from "../../api/index.js";
2
2
  import * as core from "../../core/index.js";
3
3
  import type * as serializers from "../index.js";
4
- export declare const OrganizationsPage: core.serialization.ObjectSchema<serializers.OrganizationsPage.Raw, FernApi.OrganizationsPage>;
4
+ export declare const OrganizationsPage: core.serialization.ObjectSchema<serializers.OrganizationsPage.Raw, FernVenusApi.OrganizationsPage>;
5
5
  export declare namespace OrganizationsPage {
6
6
  interface Raw {
7
7
  organizations: string[];
@@ -1,7 +1,7 @@
1
- import type * as FernApi from "../../api/index.js";
1
+ import type * as FernVenusApi from "../../api/index.js";
2
2
  import * as core from "../../core/index.js";
3
3
  import type * as serializers from "../index.js";
4
- export declare const Pypi: core.serialization.ObjectSchema<serializers.Pypi.Raw, FernApi.Pypi>;
4
+ export declare const Pypi: core.serialization.ObjectSchema<serializers.Pypi.Raw, FernVenusApi.Pypi>;
5
5
  export declare namespace Pypi {
6
6
  interface Raw {
7
7
  username: string;
@@ -1,7 +1,7 @@
1
- import type * as FernApi from "../../api/index.js";
1
+ import type * as FernVenusApi from "../../api/index.js";
2
2
  import * as core from "../../core/index.js";
3
3
  import type * as serializers from "../index.js";
4
- export declare const PypiRegistryToken: core.serialization.ObjectSchema<serializers.PypiRegistryToken.Raw, FernApi.PypiRegistryToken>;
4
+ export declare const PypiRegistryToken: core.serialization.ObjectSchema<serializers.PypiRegistryToken.Raw, FernVenusApi.PypiRegistryToken>;
5
5
  export declare namespace PypiRegistryToken {
6
6
  interface Raw {
7
7
  username: string;
@@ -1,10 +1,10 @@
1
- import type * as FernApi from "../../api/index.js";
1
+ import type * as FernVenusApi from "../../api/index.js";
2
2
  import * as core from "../../core/index.js";
3
3
  import type * as serializers from "../index.js";
4
4
  import { Maven } from "./Maven.js";
5
5
  import { Npm } from "./Npm.js";
6
6
  import { Pypi } from "./Pypi.js";
7
- export declare const RegistryToken: core.serialization.Schema<serializers.RegistryToken.Raw, FernApi.RegistryToken>;
7
+ export declare const RegistryToken: core.serialization.Schema<serializers.RegistryToken.Raw, FernVenusApi.RegistryToken>;
8
8
  export declare namespace RegistryToken {
9
9
  type Raw = RegistryToken.Maven | RegistryToken.Npm | RegistryToken.Pypi;
10
10
  interface Maven extends Maven.Raw {
@@ -1,10 +1,10 @@
1
- import type * as FernApi from "../../api/index.js";
1
+ import type * as FernVenusApi from "../../api/index.js";
2
2
  import * as core from "../../core/index.js";
3
3
  import type * as serializers from "../index.js";
4
4
  import { MavenRegistryToken } from "./MavenRegistryToken.js";
5
5
  import { NpmRegistryToken } from "./NpmRegistryToken.js";
6
6
  import { PypiRegistryToken } from "./PypiRegistryToken.js";
7
- export declare const RegistryTokens: core.serialization.ObjectSchema<serializers.RegistryTokens.Raw, FernApi.RegistryTokens>;
7
+ export declare const RegistryTokens: core.serialization.ObjectSchema<serializers.RegistryTokens.Raw, FernVenusApi.RegistryTokens>;
8
8
  export declare namespace RegistryTokens {
9
9
  interface Raw {
10
10
  npm: NpmRegistryToken.Raw;
@@ -1,7 +1,7 @@
1
- import type * as FernApi from "../../api/index.js";
1
+ import type * as FernVenusApi from "../../api/index.js";
2
2
  import * as core from "../../core/index.js";
3
3
  import type * as serializers from "../index.js";
4
- export declare const Revoked: core.serialization.ObjectSchema<serializers.Revoked.Raw, FernApi.Revoked>;
4
+ export declare const Revoked: core.serialization.ObjectSchema<serializers.Revoked.Raw, FernVenusApi.Revoked>;
5
5
  export declare namespace Revoked {
6
6
  type Raw = {};
7
7
  }
@@ -1,8 +1,8 @@
1
- import type * as FernApi from "../../api/index.js";
1
+ import type * as FernVenusApi from "../../api/index.js";
2
2
  import * as core from "../../core/index.js";
3
3
  import type * as serializers from "../index.js";
4
4
  import { TokenStatus } from "./TokenStatus.js";
5
- export declare const TokenMetadata: core.serialization.ObjectSchema<serializers.TokenMetadata.Raw, FernApi.TokenMetadata>;
5
+ export declare const TokenMetadata: core.serialization.ObjectSchema<serializers.TokenMetadata.Raw, FernVenusApi.TokenMetadata>;
6
6
  export declare namespace TokenMetadata {
7
7
  interface Raw {
8
8
  tokenId: string;
@@ -1,10 +1,10 @@
1
- import type * as FernApi from "../../api/index.js";
1
+ import type * as FernVenusApi from "../../api/index.js";
2
2
  import * as core from "../../core/index.js";
3
3
  import type * as serializers from "../index.js";
4
4
  import { Active } from "./Active.js";
5
5
  import { Expired } from "./Expired.js";
6
6
  import { Revoked } from "./Revoked.js";
7
- export declare const TokenStatus: core.serialization.Schema<serializers.TokenStatus.Raw, FernApi.TokenStatus>;
7
+ export declare const TokenStatus: core.serialization.Schema<serializers.TokenStatus.Raw, FernVenusApi.TokenStatus>;
8
8
  export declare namespace TokenStatus {
9
9
  type Raw = TokenStatus.Active | TokenStatus.Expired | TokenStatus.Revoked;
10
10
  interface Active extends Active.Raw {
@@ -1,7 +1,7 @@
1
- import type * as FernApi from "../../api/index.js";
1
+ import type * as FernVenusApi from "../../api/index.js";
2
2
  import * as core from "../../core/index.js";
3
3
  import type * as serializers from "../index.js";
4
- export declare const User: core.serialization.ObjectSchema<serializers.User.Raw, FernApi.User>;
4
+ export declare const User: core.serialization.ObjectSchema<serializers.User.Raw, FernVenusApi.User>;
5
5
  export declare namespace User {
6
6
  interface Raw {
7
7
  userId: string;
@@ -1,8 +1,8 @@
1
- import type * as FernApi from "../../api/index.js";
1
+ import type * as FernVenusApi from "../../api/index.js";
2
2
  import * as core from "../../core/index.js";
3
3
  import type * as serializers from "../index.js";
4
4
  import { ValidationErrorLocItem } from "./ValidationErrorLocItem.js";
5
- export declare const ValidationError: core.serialization.ObjectSchema<serializers.ValidationError.Raw, FernApi.ValidationError>;
5
+ export declare const ValidationError: core.serialization.ObjectSchema<serializers.ValidationError.Raw, FernVenusApi.ValidationError>;
6
6
  export declare namespace ValidationError {
7
7
  interface Raw {
8
8
  loc: ValidationErrorLocItem.Raw[];
@@ -1,7 +1,7 @@
1
- import type * as FernApi from "../../api/index.js";
1
+ import type * as FernVenusApi from "../../api/index.js";
2
2
  import * as core from "../../core/index.js";
3
3
  import type * as serializers from "../index.js";
4
- export declare const ValidationErrorLocItem: core.serialization.Schema<serializers.ValidationErrorLocItem.Raw, FernApi.ValidationErrorLocItem>;
4
+ export declare const ValidationErrorLocItem: core.serialization.Schema<serializers.ValidationErrorLocItem.Raw, FernVenusApi.ValidationErrorLocItem>;
5
5
  export declare namespace ValidationErrorLocItem {
6
6
  type Raw = string | number;
7
7
  }
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "3.0.0";
1
+ export declare const SDK_VERSION = "5.0.0";
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "3.0.0";
4
+ exports.SDK_VERSION = "5.0.0";
@@ -1,5 +1,6 @@
1
+ import { BearerAuthProvider } from "./auth/BearerAuthProvider.mjs";
1
2
  import * as core from "./core/index.mjs";
2
- export interface BaseClientOptions {
3
+ export type BaseClientOptions = {
3
4
  environment: core.Supplier<string>;
4
5
  /** Specify a custom URL to connect the client to. */
5
6
  baseUrl?: core.Supplier<string>;
@@ -13,7 +14,7 @@ export interface BaseClientOptions {
13
14
  fetch?: typeof fetch;
14
15
  /** Configure logging for the client. */
15
16
  logging?: core.logging.LogConfig | core.logging.Logger;
16
- }
17
+ } & BearerAuthProvider.AuthOptions;
17
18
  export interface BaseRequestOptions {
18
19
  /** The maximum time to wait for a response in seconds. */
19
20
  timeoutInSeconds?: number;
@@ -28,5 +29,10 @@ export interface BaseRequestOptions {
28
29
  }
29
30
  export type NormalizedClientOptions<T extends BaseClientOptions = BaseClientOptions> = T & {
30
31
  logging: core.logging.Logger;
32
+ authProvider?: core.AuthProvider;
33
+ };
34
+ export type NormalizedClientOptionsWithAuth<T extends BaseClientOptions = BaseClientOptions> = NormalizedClientOptions<T> & {
35
+ authProvider: core.AuthProvider;
31
36
  };
32
37
  export declare function normalizeClientOptions<T extends BaseClientOptions = BaseClientOptions>(options: T): NormalizedClientOptions<T>;
38
+ export declare function normalizeClientOptionsWithAuth<T extends BaseClientOptions = BaseClientOptions>(options: T): NormalizedClientOptionsWithAuth<T>;
@@ -1,14 +1,25 @@
1
1
  // This file was auto-generated by Fern from our API Definition.
2
+ import { BearerAuthProvider } from "./auth/BearerAuthProvider.mjs";
2
3
  import { mergeHeaders } from "./core/headers.mjs";
3
4
  import * as core from "./core/index.mjs";
4
5
  export function normalizeClientOptions(options) {
5
6
  const headers = mergeHeaders({
6
7
  "X-Fern-Language": "JavaScript",
7
8
  "X-Fern-SDK-Name": "@fern-api/venus-api-sdk",
8
- "X-Fern-SDK-Version": "3.0.0",
9
- "User-Agent": "@fern-api/venus-api-sdk/3.0.0",
9
+ "X-Fern-SDK-Version": "5.0.0",
10
+ "User-Agent": "@fern-api/venus-api-sdk/5.0.0",
10
11
  "X-Fern-Runtime": core.RUNTIME.type,
11
12
  "X-Fern-Runtime-Version": core.RUNTIME.version,
12
13
  }, options === null || options === void 0 ? void 0 : options.headers);
13
14
  return Object.assign(Object.assign({}, options), { logging: core.logging.createLogger(options === null || options === void 0 ? void 0 : options.logging), headers });
14
15
  }
16
+ export function normalizeClientOptionsWithAuth(options) {
17
+ var _a;
18
+ const normalized = normalizeClientOptions(options);
19
+ const normalizedWithNoOpAuthProvider = withNoOpAuthProvider(normalized);
20
+ (_a = normalized.authProvider) !== null && _a !== void 0 ? _a : (normalized.authProvider = new BearerAuthProvider(normalizedWithNoOpAuthProvider));
21
+ return normalized;
22
+ }
23
+ function withNoOpAuthProvider(options) {
24
+ return Object.assign(Object.assign({}, options), { authProvider: new core.NoOpAuthProvider() });
25
+ }
@@ -1,25 +1,25 @@
1
- import * as FernApi from "./api/index.mjs";
1
+ import * as FernVenusApi from "./api/index.mjs";
2
2
  import { ApiKeysClient } from "./api/resources/apiKeys/client/Client.mjs";
3
3
  import { AuthClient } from "./api/resources/auth/client/Client.mjs";
4
4
  import { OrganizationClient } from "./api/resources/organization/client/Client.mjs";
5
5
  import { RegistryClient } from "./api/resources/registry/client/Client.mjs";
6
6
  import { UserClient } from "./api/resources/user/client/Client.mjs";
7
7
  import type { BaseClientOptions, BaseRequestOptions } from "./BaseClient.mjs";
8
- import { type NormalizedClientOptions } from "./BaseClient.mjs";
8
+ import { type NormalizedClientOptionsWithAuth } from "./BaseClient.mjs";
9
9
  import * as core from "./core/index.mjs";
10
- export declare namespace FernApiClient {
10
+ export declare namespace FernVenusApiClient {
11
11
  type Options = BaseClientOptions;
12
12
  interface RequestOptions extends BaseRequestOptions {
13
13
  }
14
14
  }
15
- export declare class FernApiClient {
16
- protected readonly _options: NormalizedClientOptions<FernApiClient.Options>;
15
+ export declare class FernVenusApiClient {
16
+ protected readonly _options: NormalizedClientOptionsWithAuth<FernVenusApiClient.Options>;
17
17
  protected _apiKeys: ApiKeysClient | undefined;
18
18
  protected _auth: AuthClient | undefined;
19
19
  protected _organization: OrganizationClient | undefined;
20
20
  protected _registry: RegistryClient | undefined;
21
21
  protected _user: UserClient | undefined;
22
- constructor(options: FernApiClient.Options);
22
+ constructor(options: FernVenusApiClient.Options);
23
23
  get apiKeys(): ApiKeysClient;
24
24
  get auth(): AuthClient;
25
25
  get organization(): OrganizationClient;
@@ -28,19 +28,19 @@ export declare class FernApiClient {
28
28
  /**
29
29
  * Endpoint that serves Prometheus metrics.
30
30
  *
31
- * @param {FernApiClient.RequestOptions} requestOptions - Request-specific configuration.
31
+ * @param {FernVenusApiClient.RequestOptions} requestOptions - Request-specific configuration.
32
32
  *
33
33
  * @example
34
34
  * await client.metricsMetricsGet()
35
35
  */
36
- metricsMetricsGet(requestOptions?: FernApiClient.RequestOptions): core.HttpResponsePromise<core.APIResponse<unknown, FernApi.metricsMetricsGet.Error>>;
36
+ metricsMetricsGet(requestOptions?: FernVenusApiClient.RequestOptions): core.HttpResponsePromise<core.APIResponse<unknown, FernVenusApi.metricsMetricsGet.Error>>;
37
37
  private __metricsMetricsGet;
38
38
  /**
39
- * @param {FernApiClient.RequestOptions} requestOptions - Request-specific configuration.
39
+ * @param {FernVenusApiClient.RequestOptions} requestOptions - Request-specific configuration.
40
40
  *
41
41
  * @example
42
42
  * await client.healthHealthGet()
43
43
  */
44
- healthHealthGet(requestOptions?: FernApiClient.RequestOptions): core.HttpResponsePromise<core.APIResponse<unknown, FernApi.healthHealthGet.Error>>;
44
+ healthHealthGet(requestOptions?: FernVenusApiClient.RequestOptions): core.HttpResponsePromise<core.APIResponse<unknown, FernVenusApi.healthHealthGet.Error>>;
45
45
  private __healthHealthGet;
46
46
  }
@@ -8,18 +8,18 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
8
8
  step((generator = generator.apply(thisArg, _arguments || [])).next());
9
9
  });
10
10
  };
11
- import * as FernApi from "./api/index.mjs";
11
+ import * as FernVenusApi from "./api/index.mjs";
12
12
  import { ApiKeysClient } from "./api/resources/apiKeys/client/Client.mjs";
13
13
  import { AuthClient } from "./api/resources/auth/client/Client.mjs";
14
14
  import { OrganizationClient } from "./api/resources/organization/client/Client.mjs";
15
15
  import { RegistryClient } from "./api/resources/registry/client/Client.mjs";
16
16
  import { UserClient } from "./api/resources/user/client/Client.mjs";
17
- import { normalizeClientOptions } from "./BaseClient.mjs";
17
+ import { normalizeClientOptionsWithAuth } from "./BaseClient.mjs";
18
18
  import { mergeHeaders } from "./core/headers.mjs";
19
19
  import * as core from "./core/index.mjs";
20
- export class FernApiClient {
20
+ export class FernVenusApiClient {
21
21
  constructor(options) {
22
- this._options = normalizeClientOptions(options);
22
+ this._options = normalizeClientOptionsWithAuth(options);
23
23
  }
24
24
  get apiKeys() {
25
25
  var _a;
@@ -44,7 +44,7 @@ export class FernApiClient {
44
44
  /**
45
45
  * Endpoint that serves Prometheus metrics.
46
46
  *
47
- * @param {FernApiClient.RequestOptions} requestOptions - Request-specific configuration.
47
+ * @param {FernVenusApiClient.RequestOptions} requestOptions - Request-specific configuration.
48
48
  *
49
49
  * @example
50
50
  * await client.metricsMetricsGet()
@@ -55,7 +55,8 @@ export class FernApiClient {
55
55
  __metricsMetricsGet(requestOptions) {
56
56
  return __awaiter(this, void 0, void 0, function* () {
57
57
  var _a, _b, _c, _d, _e, _f, _g, _h;
58
- const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
58
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
59
+ const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
59
60
  const _response = yield core.fetcher({
60
61
  url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment)), "metrics"),
61
62
  method: "GET",
@@ -81,7 +82,7 @@ export class FernApiClient {
81
82
  return {
82
83
  data: {
83
84
  ok: false,
84
- error: FernApi.metricsMetricsGet.Error._unknown(_response.error),
85
+ error: FernVenusApi.metricsMetricsGet.Error._unknown(_response.error),
85
86
  rawResponse: _response.rawResponse,
86
87
  },
87
88
  rawResponse: _response.rawResponse,
@@ -89,7 +90,7 @@ export class FernApiClient {
89
90
  });
90
91
  }
91
92
  /**
92
- * @param {FernApiClient.RequestOptions} requestOptions - Request-specific configuration.
93
+ * @param {FernVenusApiClient.RequestOptions} requestOptions - Request-specific configuration.
93
94
  *
94
95
  * @example
95
96
  * await client.healthHealthGet()
@@ -100,7 +101,8 @@ export class FernApiClient {
100
101
  __healthHealthGet(requestOptions) {
101
102
  return __awaiter(this, void 0, void 0, function* () {
102
103
  var _a, _b, _c, _d, _e, _f, _g, _h;
103
- const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
104
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
105
+ const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
104
106
  const _response = yield core.fetcher({
105
107
  url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment)), "health"),
106
108
  method: "GET",
@@ -126,7 +128,7 @@ export class FernApiClient {
126
128
  return {
127
129
  data: {
128
130
  ok: false,
129
- error: FernApi.healthHealthGet.Error._unknown(_response.error),
131
+ error: FernVenusApi.healthHealthGet.Error._unknown(_response.error),
130
132
  rawResponse: _response.rawResponse,
131
133
  },
132
134
  rawResponse: _response.rawResponse,
@@ -1,19 +1,19 @@
1
1
  import type * as core from "../../core/index.mjs";
2
- import * as FernApi from "../index.mjs";
3
- export type Error = FernApi.healthHealthGet.Error._Unknown;
2
+ import * as FernVenusApi from "../index.mjs";
3
+ export type Error = FernVenusApi.healthHealthGet.Error._Unknown;
4
4
  export declare namespace Error {
5
5
  interface _Unknown extends _Utils {
6
6
  statusCode: void;
7
7
  content: core.Fetcher.Error;
8
8
  }
9
9
  interface _Utils {
10
- _visit: <_Result>(visitor: FernApi.healthHealthGet.Error._Visitor<_Result>) => _Result;
10
+ _visit: <_Result>(visitor: FernVenusApi.healthHealthGet.Error._Visitor<_Result>) => _Result;
11
11
  }
12
12
  interface _Visitor<_Result> {
13
13
  _other: (value: core.Fetcher.Error) => _Result;
14
14
  }
15
15
  }
16
16
  export declare const Error: {
17
- readonly _unknown: (fetcherError: core.Fetcher.Error) => FernApi.healthHealthGet.Error._Unknown;
18
- readonly _visit: <_Result>(value: FernApi.healthHealthGet.Error, visitor: FernApi.healthHealthGet.Error._Visitor<_Result>) => _Result;
17
+ readonly _unknown: (fetcherError: core.Fetcher.Error) => FernVenusApi.healthHealthGet.Error._Unknown;
18
+ readonly _visit: <_Result>(value: FernVenusApi.healthHealthGet.Error, visitor: FernVenusApi.healthHealthGet.Error._Visitor<_Result>) => _Result;
19
19
  };
@@ -1,12 +1,12 @@
1
1
  // This file was auto-generated by Fern from our API Definition.
2
- import * as FernApi from "../index.mjs";
2
+ import * as FernVenusApi from "../index.mjs";
3
3
  export const Error = {
4
4
  _unknown: (fetcherError) => {
5
5
  return {
6
6
  statusCode: undefined,
7
7
  content: fetcherError,
8
8
  _visit: function (visitor) {
9
- return FernApi.healthHealthGet.Error._visit(this, visitor);
9
+ return FernVenusApi.healthHealthGet.Error._visit(this, visitor);
10
10
  },
11
11
  };
12
12
  },
@@ -1,19 +1,19 @@
1
1
  import type * as core from "../../core/index.mjs";
2
- import * as FernApi from "../index.mjs";
3
- export type Error = FernApi.metricsMetricsGet.Error._Unknown;
2
+ import * as FernVenusApi from "../index.mjs";
3
+ export type Error = FernVenusApi.metricsMetricsGet.Error._Unknown;
4
4
  export declare namespace Error {
5
5
  interface _Unknown extends _Utils {
6
6
  statusCode: void;
7
7
  content: core.Fetcher.Error;
8
8
  }
9
9
  interface _Utils {
10
- _visit: <_Result>(visitor: FernApi.metricsMetricsGet.Error._Visitor<_Result>) => _Result;
10
+ _visit: <_Result>(visitor: FernVenusApi.metricsMetricsGet.Error._Visitor<_Result>) => _Result;
11
11
  }
12
12
  interface _Visitor<_Result> {
13
13
  _other: (value: core.Fetcher.Error) => _Result;
14
14
  }
15
15
  }
16
16
  export declare const Error: {
17
- readonly _unknown: (fetcherError: core.Fetcher.Error) => FernApi.metricsMetricsGet.Error._Unknown;
18
- readonly _visit: <_Result>(value: FernApi.metricsMetricsGet.Error, visitor: FernApi.metricsMetricsGet.Error._Visitor<_Result>) => _Result;
17
+ readonly _unknown: (fetcherError: core.Fetcher.Error) => FernVenusApi.metricsMetricsGet.Error._Unknown;
18
+ readonly _visit: <_Result>(value: FernVenusApi.metricsMetricsGet.Error, visitor: FernVenusApi.metricsMetricsGet.Error._Visitor<_Result>) => _Result;
19
19
  };
@@ -1,12 +1,12 @@
1
1
  // This file was auto-generated by Fern from our API Definition.
2
- import * as FernApi from "../index.mjs";
2
+ import * as FernVenusApi from "../index.mjs";
3
3
  export const Error = {
4
4
  _unknown: (fetcherError) => {
5
5
  return {
6
6
  statusCode: undefined,
7
7
  content: fetcherError,
8
8
  _visit: function (visitor) {
9
- return FernApi.metricsMetricsGet.Error._visit(this, visitor);
9
+ return FernVenusApi.metricsMetricsGet.Error._visit(this, visitor);
10
10
  },
11
11
  };
12
12
  },