@fern-api/venus-api-sdk 2.1.0 → 4.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 (243) hide show
  1. package/README.md +12 -12
  2. package/dist/cjs/BaseClient.js +2 -2
  3. package/dist/cjs/Client.d.ts +9 -9
  4. package/dist/cjs/Client.js +8 -8
  5. package/dist/cjs/api/client/healthHealthGet.d.ts +5 -5
  6. package/dist/cjs/api/client/healthHealthGet.js +2 -2
  7. package/dist/cjs/api/client/metricsMetricsGet.d.ts +5 -5
  8. package/dist/cjs/api/client/metricsMetricsGet.js +2 -2
  9. package/dist/cjs/api/resources/apiKeys/client/Client.d.ts +13 -13
  10. package/dist/cjs/api/resources/apiKeys/client/Client.js +22 -27
  11. package/dist/cjs/api/resources/apiKeys/client/create.d.ts +8 -8
  12. package/dist/cjs/api/resources/apiKeys/client/create.js +3 -3
  13. package/dist/cjs/api/resources/apiKeys/client/getTokenMetadata.d.ts +8 -8
  14. package/dist/cjs/api/resources/apiKeys/client/getTokenMetadata.js +3 -3
  15. package/dist/cjs/api/resources/apiKeys/client/getTokensForOrganization.d.ts +8 -8
  16. package/dist/cjs/api/resources/apiKeys/client/getTokensForOrganization.js +3 -3
  17. package/dist/cjs/api/resources/apiKeys/client/revokeToken.d.ts +8 -8
  18. package/dist/cjs/api/resources/apiKeys/client/revokeToken.js +3 -3
  19. package/dist/cjs/api/resources/apiKeys/client/revokeTokenById.d.ts +8 -8
  20. package/dist/cjs/api/resources/apiKeys/client/revokeTokenById.js +3 -3
  21. package/dist/cjs/api/resources/auth/client/Client.d.ts +9 -9
  22. package/dist/cjs/api/resources/auth/client/Client.js +13 -15
  23. package/dist/cjs/api/resources/auth/client/getAutopilotToken.d.ts +8 -8
  24. package/dist/cjs/api/resources/auth/client/getAutopilotToken.js +3 -3
  25. package/dist/cjs/api/resources/auth/client/getJwt.d.ts +8 -8
  26. package/dist/cjs/api/resources/auth/client/getJwt.js +3 -3
  27. package/dist/cjs/api/resources/auth/client/getOrgForGithubOwner.d.ts +8 -8
  28. package/dist/cjs/api/resources/auth/client/getOrgForGithubOwner.js +3 -3
  29. package/dist/cjs/api/resources/organization/client/Client.d.ts +24 -24
  30. package/dist/cjs/api/resources/organization/client/Client.js +44 -53
  31. package/dist/cjs/api/resources/organization/client/addUser.d.ts +8 -8
  32. package/dist/cjs/api/resources/organization/client/addUser.js +3 -3
  33. package/dist/cjs/api/resources/organization/client/create.d.ts +8 -8
  34. package/dist/cjs/api/resources/organization/client/create.js +3 -3
  35. package/dist/cjs/api/resources/organization/client/delete.d.ts +8 -8
  36. package/dist/cjs/api/resources/organization/client/delete.js +3 -3
  37. package/dist/cjs/api/resources/organization/client/get.d.ts +8 -8
  38. package/dist/cjs/api/resources/organization/client/get.js +3 -3
  39. package/dist/cjs/api/resources/organization/client/getMyOrganizationFromScopedToken.d.ts +8 -8
  40. package/dist/cjs/api/resources/organization/client/getMyOrganizationFromScopedToken.js +3 -3
  41. package/dist/cjs/api/resources/organization/client/getOrgIdsByPostmanTeamId.d.ts +8 -8
  42. package/dist/cjs/api/resources/organization/client/getOrgIdsByPostmanTeamId.js +3 -3
  43. package/dist/cjs/api/resources/organization/client/getOrgIdsFromToken.d.ts +5 -5
  44. package/dist/cjs/api/resources/organization/client/getOrgIdsFromToken.js +2 -2
  45. package/dist/cjs/api/resources/organization/client/getPostmanTeamIdByOrgId.d.ts +8 -8
  46. package/dist/cjs/api/resources/organization/client/getPostmanTeamIdByOrgId.js +3 -3
  47. package/dist/cjs/api/resources/organization/client/inviteUser.d.ts +8 -8
  48. package/dist/cjs/api/resources/organization/client/inviteUser.js +3 -3
  49. package/dist/cjs/api/resources/organization/client/isMember.d.ts +8 -8
  50. package/dist/cjs/api/resources/organization/client/isMember.js +3 -3
  51. package/dist/cjs/api/resources/organization/client/removeUser.d.ts +8 -8
  52. package/dist/cjs/api/resources/organization/client/removeUser.js +3 -3
  53. package/dist/cjs/api/resources/organization/client/update.d.ts +8 -8
  54. package/dist/cjs/api/resources/organization/client/update.js +3 -3
  55. package/dist/cjs/api/resources/registry/client/Client.d.ts +9 -9
  56. package/dist/cjs/api/resources/registry/client/Client.js +13 -15
  57. package/dist/cjs/api/resources/registry/client/generateRegistryTokens.d.ts +8 -8
  58. package/dist/cjs/api/resources/registry/client/generateRegistryTokens.js +3 -3
  59. package/dist/cjs/api/resources/registry/client/hasRegistryPermission.d.ts +8 -8
  60. package/dist/cjs/api/resources/registry/client/hasRegistryPermission.js +3 -3
  61. package/dist/cjs/api/resources/registry/client/requests/CheckRegistryPermissionRequest.d.ts +2 -2
  62. package/dist/cjs/api/resources/registry/client/revokeToken.d.ts +8 -8
  63. package/dist/cjs/api/resources/registry/client/revokeToken.js +3 -3
  64. package/dist/cjs/api/resources/user/client/Client.d.ts +8 -8
  65. package/dist/cjs/api/resources/user/client/Client.js +12 -15
  66. package/dist/cjs/api/resources/user/client/getMyOrganizations.d.ts +8 -8
  67. package/dist/cjs/api/resources/user/client/getMyOrganizations.js +3 -3
  68. package/dist/cjs/api/resources/user/client/getMyself.d.ts +5 -5
  69. package/dist/cjs/api/resources/user/client/getMyself.js +2 -2
  70. package/dist/cjs/api/resources/user/client/linkAccounts.d.ts +8 -8
  71. package/dist/cjs/api/resources/user/client/linkAccounts.js +3 -3
  72. package/dist/cjs/api/types/HttpValidationError.d.ts +2 -2
  73. package/dist/cjs/api/types/Organization.d.ts +2 -2
  74. package/dist/cjs/api/types/RegistryToken.d.ts +5 -5
  75. package/dist/cjs/api/types/RegistryTokens.d.ts +4 -4
  76. package/dist/cjs/api/types/TokenMetadata.d.ts +2 -2
  77. package/dist/cjs/api/types/TokenStatus.d.ts +5 -5
  78. package/dist/cjs/api/types/ValidationError.d.ts +2 -2
  79. package/dist/cjs/index.d.ts +2 -2
  80. package/dist/cjs/index.js +3 -3
  81. package/dist/cjs/serialization/resources/apiKeys/client/getTokensForOrganization.d.ts +2 -2
  82. package/dist/cjs/serialization/resources/apiKeys/client/requests/CreateApiKeyRequest.d.ts +2 -2
  83. package/dist/cjs/serialization/resources/apiKeys/client/requests/GetTokenMetadataRequest.d.ts +2 -2
  84. package/dist/cjs/serialization/resources/apiKeys/client/requests/RevokeApiKeyRequest.d.ts +2 -2
  85. package/dist/cjs/serialization/resources/auth/client/requests/GetAutopilotTokenRequest.d.ts +2 -2
  86. package/dist/cjs/serialization/resources/auth/client/requests/GetJwtRequest.d.ts +2 -2
  87. package/dist/cjs/serialization/resources/organization/client/requests/AddUserToOrgRequest.d.ts +2 -2
  88. package/dist/cjs/serialization/resources/organization/client/requests/CreateOrganizationRequest.d.ts +2 -2
  89. package/dist/cjs/serialization/resources/organization/client/requests/InviteUserToOrgRequest.d.ts +2 -2
  90. package/dist/cjs/serialization/resources/organization/client/requests/RemoveUserFromOrgRequest.d.ts +2 -2
  91. package/dist/cjs/serialization/resources/organization/client/requests/UpdateOrganizationRequest.d.ts +2 -2
  92. package/dist/cjs/serialization/resources/registry/client/requests/CheckRegistryPermissionRequest.d.ts +2 -2
  93. package/dist/cjs/serialization/resources/registry/client/requests/GenerateRegistryTokensRequest.d.ts +2 -2
  94. package/dist/cjs/serialization/resources/registry/client/requests/RevokeTokenRequest.d.ts +2 -2
  95. package/dist/cjs/serialization/resources/user/client/requests/LinkAccountsRequest.d.ts +2 -2
  96. package/dist/cjs/serialization/types/Active.d.ts +2 -2
  97. package/dist/cjs/serialization/types/CreateOrganizationResponse.d.ts +2 -2
  98. package/dist/cjs/serialization/types/CreateTokenResponse.d.ts +2 -2
  99. package/dist/cjs/serialization/types/Expired.d.ts +2 -2
  100. package/dist/cjs/serialization/types/HttpValidationError.d.ts +2 -2
  101. package/dist/cjs/serialization/types/JwtResponse.d.ts +2 -2
  102. package/dist/cjs/serialization/types/LightweightUser.d.ts +2 -2
  103. package/dist/cjs/serialization/types/LinkAccountsResponse.d.ts +2 -2
  104. package/dist/cjs/serialization/types/Maven.d.ts +2 -2
  105. package/dist/cjs/serialization/types/MavenRegistryToken.d.ts +2 -2
  106. package/dist/cjs/serialization/types/Npm.d.ts +2 -2
  107. package/dist/cjs/serialization/types/NpmRegistryToken.d.ts +2 -2
  108. package/dist/cjs/serialization/types/Organization.d.ts +2 -2
  109. package/dist/cjs/serialization/types/OrganizationsPage.d.ts +2 -2
  110. package/dist/cjs/serialization/types/Pypi.d.ts +2 -2
  111. package/dist/cjs/serialization/types/PypiRegistryToken.d.ts +2 -2
  112. package/dist/cjs/serialization/types/RegistryToken.d.ts +2 -2
  113. package/dist/cjs/serialization/types/RegistryTokens.d.ts +2 -2
  114. package/dist/cjs/serialization/types/Revoked.d.ts +2 -2
  115. package/dist/cjs/serialization/types/TokenMetadata.d.ts +2 -2
  116. package/dist/cjs/serialization/types/TokenStatus.d.ts +2 -2
  117. package/dist/cjs/serialization/types/User.d.ts +2 -2
  118. package/dist/cjs/serialization/types/ValidationError.d.ts +2 -2
  119. package/dist/cjs/serialization/types/ValidationErrorLocItem.d.ts +2 -2
  120. package/dist/cjs/version.d.ts +1 -1
  121. package/dist/cjs/version.js +1 -1
  122. package/dist/esm/BaseClient.mjs +2 -2
  123. package/dist/esm/Client.d.mts +9 -9
  124. package/dist/esm/Client.mjs +6 -6
  125. package/dist/esm/api/client/healthHealthGet.d.mts +5 -5
  126. package/dist/esm/api/client/healthHealthGet.mjs +2 -2
  127. package/dist/esm/api/client/metricsMetricsGet.d.mts +5 -5
  128. package/dist/esm/api/client/metricsMetricsGet.mjs +2 -2
  129. package/dist/esm/api/resources/apiKeys/client/Client.d.mts +13 -13
  130. package/dist/esm/api/resources/apiKeys/client/Client.mjs +23 -28
  131. package/dist/esm/api/resources/apiKeys/client/create.d.mts +8 -8
  132. package/dist/esm/api/resources/apiKeys/client/create.mjs +3 -3
  133. package/dist/esm/api/resources/apiKeys/client/getTokenMetadata.d.mts +8 -8
  134. package/dist/esm/api/resources/apiKeys/client/getTokenMetadata.mjs +3 -3
  135. package/dist/esm/api/resources/apiKeys/client/getTokensForOrganization.d.mts +8 -8
  136. package/dist/esm/api/resources/apiKeys/client/getTokensForOrganization.mjs +3 -3
  137. package/dist/esm/api/resources/apiKeys/client/revokeToken.d.mts +8 -8
  138. package/dist/esm/api/resources/apiKeys/client/revokeToken.mjs +3 -3
  139. package/dist/esm/api/resources/apiKeys/client/revokeTokenById.d.mts +8 -8
  140. package/dist/esm/api/resources/apiKeys/client/revokeTokenById.mjs +3 -3
  141. package/dist/esm/api/resources/auth/client/Client.d.mts +9 -9
  142. package/dist/esm/api/resources/auth/client/Client.mjs +14 -16
  143. package/dist/esm/api/resources/auth/client/getAutopilotToken.d.mts +8 -8
  144. package/dist/esm/api/resources/auth/client/getAutopilotToken.mjs +3 -3
  145. package/dist/esm/api/resources/auth/client/getJwt.d.mts +8 -8
  146. package/dist/esm/api/resources/auth/client/getJwt.mjs +3 -3
  147. package/dist/esm/api/resources/auth/client/getOrgForGithubOwner.d.mts +8 -8
  148. package/dist/esm/api/resources/auth/client/getOrgForGithubOwner.mjs +3 -3
  149. package/dist/esm/api/resources/organization/client/Client.d.mts +24 -24
  150. package/dist/esm/api/resources/organization/client/Client.mjs +44 -53
  151. package/dist/esm/api/resources/organization/client/addUser.d.mts +8 -8
  152. package/dist/esm/api/resources/organization/client/addUser.mjs +3 -3
  153. package/dist/esm/api/resources/organization/client/create.d.mts +8 -8
  154. package/dist/esm/api/resources/organization/client/create.mjs +3 -3
  155. package/dist/esm/api/resources/organization/client/delete.d.mts +8 -8
  156. package/dist/esm/api/resources/organization/client/delete.mjs +3 -3
  157. package/dist/esm/api/resources/organization/client/get.d.mts +8 -8
  158. package/dist/esm/api/resources/organization/client/get.mjs +3 -3
  159. package/dist/esm/api/resources/organization/client/getMyOrganizationFromScopedToken.d.mts +8 -8
  160. package/dist/esm/api/resources/organization/client/getMyOrganizationFromScopedToken.mjs +3 -3
  161. package/dist/esm/api/resources/organization/client/getOrgIdsByPostmanTeamId.d.mts +8 -8
  162. package/dist/esm/api/resources/organization/client/getOrgIdsByPostmanTeamId.mjs +3 -3
  163. package/dist/esm/api/resources/organization/client/getOrgIdsFromToken.d.mts +5 -5
  164. package/dist/esm/api/resources/organization/client/getOrgIdsFromToken.mjs +2 -2
  165. package/dist/esm/api/resources/organization/client/getPostmanTeamIdByOrgId.d.mts +8 -8
  166. package/dist/esm/api/resources/organization/client/getPostmanTeamIdByOrgId.mjs +3 -3
  167. package/dist/esm/api/resources/organization/client/inviteUser.d.mts +8 -8
  168. package/dist/esm/api/resources/organization/client/inviteUser.mjs +3 -3
  169. package/dist/esm/api/resources/organization/client/isMember.d.mts +8 -8
  170. package/dist/esm/api/resources/organization/client/isMember.mjs +3 -3
  171. package/dist/esm/api/resources/organization/client/removeUser.d.mts +8 -8
  172. package/dist/esm/api/resources/organization/client/removeUser.mjs +3 -3
  173. package/dist/esm/api/resources/organization/client/update.d.mts +8 -8
  174. package/dist/esm/api/resources/organization/client/update.mjs +3 -3
  175. package/dist/esm/api/resources/registry/client/Client.d.mts +9 -9
  176. package/dist/esm/api/resources/registry/client/Client.mjs +14 -16
  177. package/dist/esm/api/resources/registry/client/generateRegistryTokens.d.mts +8 -8
  178. package/dist/esm/api/resources/registry/client/generateRegistryTokens.mjs +3 -3
  179. package/dist/esm/api/resources/registry/client/hasRegistryPermission.d.mts +8 -8
  180. package/dist/esm/api/resources/registry/client/hasRegistryPermission.mjs +3 -3
  181. package/dist/esm/api/resources/registry/client/requests/CheckRegistryPermissionRequest.d.mts +2 -2
  182. package/dist/esm/api/resources/registry/client/revokeToken.d.mts +8 -8
  183. package/dist/esm/api/resources/registry/client/revokeToken.mjs +3 -3
  184. package/dist/esm/api/resources/user/client/Client.d.mts +8 -8
  185. package/dist/esm/api/resources/user/client/Client.mjs +13 -16
  186. package/dist/esm/api/resources/user/client/getMyOrganizations.d.mts +8 -8
  187. package/dist/esm/api/resources/user/client/getMyOrganizations.mjs +3 -3
  188. package/dist/esm/api/resources/user/client/getMyself.d.mts +5 -5
  189. package/dist/esm/api/resources/user/client/getMyself.mjs +2 -2
  190. package/dist/esm/api/resources/user/client/linkAccounts.d.mts +8 -8
  191. package/dist/esm/api/resources/user/client/linkAccounts.mjs +3 -3
  192. package/dist/esm/api/types/HttpValidationError.d.mts +2 -2
  193. package/dist/esm/api/types/Organization.d.mts +2 -2
  194. package/dist/esm/api/types/RegistryToken.d.mts +5 -5
  195. package/dist/esm/api/types/RegistryTokens.d.mts +4 -4
  196. package/dist/esm/api/types/TokenMetadata.d.mts +2 -2
  197. package/dist/esm/api/types/TokenStatus.d.mts +5 -5
  198. package/dist/esm/api/types/ValidationError.d.mts +2 -2
  199. package/dist/esm/index.d.mts +2 -2
  200. package/dist/esm/index.mjs +2 -2
  201. package/dist/esm/serialization/resources/apiKeys/client/getTokensForOrganization.d.mts +2 -2
  202. package/dist/esm/serialization/resources/apiKeys/client/requests/CreateApiKeyRequest.d.mts +2 -2
  203. package/dist/esm/serialization/resources/apiKeys/client/requests/GetTokenMetadataRequest.d.mts +2 -2
  204. package/dist/esm/serialization/resources/apiKeys/client/requests/RevokeApiKeyRequest.d.mts +2 -2
  205. package/dist/esm/serialization/resources/auth/client/requests/GetAutopilotTokenRequest.d.mts +2 -2
  206. package/dist/esm/serialization/resources/auth/client/requests/GetJwtRequest.d.mts +2 -2
  207. package/dist/esm/serialization/resources/organization/client/requests/AddUserToOrgRequest.d.mts +2 -2
  208. package/dist/esm/serialization/resources/organization/client/requests/CreateOrganizationRequest.d.mts +2 -2
  209. package/dist/esm/serialization/resources/organization/client/requests/InviteUserToOrgRequest.d.mts +2 -2
  210. package/dist/esm/serialization/resources/organization/client/requests/RemoveUserFromOrgRequest.d.mts +2 -2
  211. package/dist/esm/serialization/resources/organization/client/requests/UpdateOrganizationRequest.d.mts +2 -2
  212. package/dist/esm/serialization/resources/registry/client/requests/CheckRegistryPermissionRequest.d.mts +2 -2
  213. package/dist/esm/serialization/resources/registry/client/requests/GenerateRegistryTokensRequest.d.mts +2 -2
  214. package/dist/esm/serialization/resources/registry/client/requests/RevokeTokenRequest.d.mts +2 -2
  215. package/dist/esm/serialization/resources/user/client/requests/LinkAccountsRequest.d.mts +2 -2
  216. package/dist/esm/serialization/types/Active.d.mts +2 -2
  217. package/dist/esm/serialization/types/CreateOrganizationResponse.d.mts +2 -2
  218. package/dist/esm/serialization/types/CreateTokenResponse.d.mts +2 -2
  219. package/dist/esm/serialization/types/Expired.d.mts +2 -2
  220. package/dist/esm/serialization/types/HttpValidationError.d.mts +2 -2
  221. package/dist/esm/serialization/types/JwtResponse.d.mts +2 -2
  222. package/dist/esm/serialization/types/LightweightUser.d.mts +2 -2
  223. package/dist/esm/serialization/types/LinkAccountsResponse.d.mts +2 -2
  224. package/dist/esm/serialization/types/Maven.d.mts +2 -2
  225. package/dist/esm/serialization/types/MavenRegistryToken.d.mts +2 -2
  226. package/dist/esm/serialization/types/Npm.d.mts +2 -2
  227. package/dist/esm/serialization/types/NpmRegistryToken.d.mts +2 -2
  228. package/dist/esm/serialization/types/Organization.d.mts +2 -2
  229. package/dist/esm/serialization/types/OrganizationsPage.d.mts +2 -2
  230. package/dist/esm/serialization/types/Pypi.d.mts +2 -2
  231. package/dist/esm/serialization/types/PypiRegistryToken.d.mts +2 -2
  232. package/dist/esm/serialization/types/RegistryToken.d.mts +2 -2
  233. package/dist/esm/serialization/types/RegistryTokens.d.mts +2 -2
  234. package/dist/esm/serialization/types/Revoked.d.mts +2 -2
  235. package/dist/esm/serialization/types/TokenMetadata.d.mts +2 -2
  236. package/dist/esm/serialization/types/TokenStatus.d.mts +2 -2
  237. package/dist/esm/serialization/types/User.d.mts +2 -2
  238. package/dist/esm/serialization/types/ValidationError.d.mts +2 -2
  239. package/dist/esm/serialization/types/ValidationErrorLocItem.d.mts +2 -2
  240. package/dist/esm/version.d.mts +1 -1
  241. package/dist/esm/version.mjs +1 -1
  242. package/package.json +1 -1
  243. package/reference.md +54 -54
package/README.md CHANGED
@@ -38,9 +38,9 @@ A full reference for this library is available [here](https://github.com/fern-ap
38
38
  Instantiate and use the client with the following:
39
39
 
40
40
  ```typescript
41
- import { FernApiClient } from "@fern-api/venus-api-sdk";
41
+ import { FernVenusApiClient } from "@fern-api/venus-api-sdk";
42
42
 
43
- const client = new FernApiClient({ environment: "YOUR_BASE_URL", token: "YOUR_TOKEN" });
43
+ const client = new FernVenusApiClient({ environment: "YOUR_BASE_URL", token: "YOUR_TOKEN" });
44
44
  await client.apiKeys.create({
45
45
  organizationId: "organizationId"
46
46
  });
@@ -52,9 +52,9 @@ The SDK exports all request and response types as TypeScript interfaces. Simply
52
52
  following namespace:
53
53
 
54
54
  ```typescript
55
- import { FernApi } from "@fern-api/venus-api-sdk";
55
+ import { FernVenusApi } from "@fern-api/venus-api-sdk";
56
56
 
57
- const request: FernApi.CreateApiKeyRequest = {
57
+ const request: FernVenusApi.CreateApiKeyRequest = {
58
58
  ...
59
59
  };
60
60
  ```
@@ -65,12 +65,12 @@ When the API returns a non-success status code (4xx or 5xx response), a subclass
65
65
  will be thrown.
66
66
 
67
67
  ```typescript
68
- import { FernApiError } from "@fern-api/venus-api-sdk";
68
+ import { FernVenusApiError } from "@fern-api/venus-api-sdk";
69
69
 
70
70
  try {
71
71
  await client.apiKeys.create(...);
72
72
  } catch (err) {
73
- if (err instanceof FernApiError) {
73
+ if (err instanceof FernVenusApiError) {
74
74
  console.log(err.statusCode);
75
75
  console.log(err.message);
76
76
  console.log(err.body);
@@ -86,9 +86,9 @@ try {
86
86
  If you would like to send additional headers as part of the request, use the `headers` request option.
87
87
 
88
88
  ```typescript
89
- import { FernApiClient } from "@fern-api/venus-api-sdk";
89
+ import { FernVenusApiClient } from "@fern-api/venus-api-sdk";
90
90
 
91
- const client = new FernApiClient({
91
+ const client = new FernVenusApiClient({
92
92
  ...
93
93
  headers: {
94
94
  'X-Custom-Header': 'custom value'
@@ -173,9 +173,9 @@ console.log(rawResponse.headers['X-My-Header']);
173
173
  The SDK supports logging. You can configure the logger by passing in a `logging` object to the client options.
174
174
 
175
175
  ```typescript
176
- import { FernApiClient, logging } from "@fern-api/venus-api-sdk";
176
+ import { FernVenusApiClient, logging } from "@fern-api/venus-api-sdk";
177
177
 
178
- const client = new FernApiClient({
178
+ const client = new FernVenusApiClient({
179
179
  ...
180
180
  logging: {
181
181
  level: logging.LogLevel.Debug, // defaults to logging.LogLevel.Info
@@ -251,9 +251,9 @@ The SDK provides a way for you to customize the underlying HTTP client / Fetch f
251
251
  unsupported environment, this provides a way for you to break glass and ensure the SDK works.
252
252
 
253
253
  ```typescript
254
- import { FernApiClient } from "@fern-api/venus-api-sdk";
254
+ import { FernVenusApiClient } from "@fern-api/venus-api-sdk";
255
255
 
256
- const client = new FernApiClient({
256
+ const client = new FernVenusApiClient({
257
257
  ...
258
258
  fetcher: // provide your implementation here
259
259
  });
@@ -43,8 +43,8 @@ function normalizeClientOptions(options) {
43
43
  const headers = (0, headers_js_1.mergeHeaders)({
44
44
  "X-Fern-Language": "JavaScript",
45
45
  "X-Fern-SDK-Name": "@fern-api/venus-api-sdk",
46
- "X-Fern-SDK-Version": "2.1.0",
47
- "User-Agent": "@fern-api/venus-api-sdk/2.1.0",
46
+ "X-Fern-SDK-Version": "4.0.0",
47
+ "User-Agent": "@fern-api/venus-api-sdk/4.0.0",
48
48
  "X-Fern-Runtime": core.RUNTIME.type,
49
49
  "X-Fern-Runtime-Version": core.RUNTIME.version,
50
50
  }, options === null || options === void 0 ? void 0 : options.headers);
@@ -1,4 +1,4 @@
1
- import * as FernApi from "./api/index.js";
1
+ import * as FernVenusApi from "./api/index.js";
2
2
  import { ApiKeysClient } from "./api/resources/apiKeys/client/Client.js";
3
3
  import { AuthClient } from "./api/resources/auth/client/Client.js";
4
4
  import { OrganizationClient } from "./api/resources/organization/client/Client.js";
@@ -7,19 +7,19 @@ import { UserClient } from "./api/resources/user/client/Client.js";
7
7
  import type { BaseClientOptions, BaseRequestOptions } from "./BaseClient.js";
8
8
  import { type NormalizedClientOptionsWithAuth } from "./BaseClient.js";
9
9
  import * as core from "./core/index.js";
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: NormalizedClientOptionsWithAuth<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
  }
@@ -43,8 +43,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
43
43
  });
44
44
  };
45
45
  Object.defineProperty(exports, "__esModule", { value: true });
46
- exports.FernApiClient = void 0;
47
- const FernApi = __importStar(require("./api/index.js"));
46
+ exports.FernVenusApiClient = void 0;
47
+ const FernVenusApi = __importStar(require("./api/index.js"));
48
48
  const Client_js_1 = require("./api/resources/apiKeys/client/Client.js");
49
49
  const Client_js_2 = require("./api/resources/auth/client/Client.js");
50
50
  const Client_js_3 = require("./api/resources/organization/client/Client.js");
@@ -53,7 +53,7 @@ const Client_js_5 = require("./api/resources/user/client/Client.js");
53
53
  const BaseClient_js_1 = require("./BaseClient.js");
54
54
  const headers_js_1 = require("./core/headers.js");
55
55
  const core = __importStar(require("./core/index.js"));
56
- class FernApiClient {
56
+ class FernVenusApiClient {
57
57
  constructor(options) {
58
58
  this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
59
59
  }
@@ -80,7 +80,7 @@ class FernApiClient {
80
80
  /**
81
81
  * Endpoint that serves Prometheus metrics.
82
82
  *
83
- * @param {FernApiClient.RequestOptions} requestOptions - Request-specific configuration.
83
+ * @param {FernVenusApiClient.RequestOptions} requestOptions - Request-specific configuration.
84
84
  *
85
85
  * @example
86
86
  * await client.metricsMetricsGet()
@@ -117,7 +117,7 @@ class FernApiClient {
117
117
  return {
118
118
  data: {
119
119
  ok: false,
120
- error: FernApi.metricsMetricsGet.Error._unknown(_response.error),
120
+ error: FernVenusApi.metricsMetricsGet.Error._unknown(_response.error),
121
121
  rawResponse: _response.rawResponse,
122
122
  },
123
123
  rawResponse: _response.rawResponse,
@@ -125,7 +125,7 @@ class FernApiClient {
125
125
  });
126
126
  }
127
127
  /**
128
- * @param {FernApiClient.RequestOptions} requestOptions - Request-specific configuration.
128
+ * @param {FernVenusApiClient.RequestOptions} requestOptions - Request-specific configuration.
129
129
  *
130
130
  * @example
131
131
  * await client.healthHealthGet()
@@ -162,7 +162,7 @@ class FernApiClient {
162
162
  return {
163
163
  data: {
164
164
  ok: false,
165
- error: FernApi.healthHealthGet.Error._unknown(_response.error),
165
+ error: FernVenusApi.healthHealthGet.Error._unknown(_response.error),
166
166
  rawResponse: _response.rawResponse,
167
167
  },
168
168
  rawResponse: _response.rawResponse,
@@ -170,4 +170,4 @@ class FernApiClient {
170
170
  });
171
171
  }
172
172
  }
173
- exports.FernApiClient = FernApiClient;
173
+ exports.FernVenusApiClient = FernVenusApiClient;
@@ -1,19 +1,19 @@
1
1
  import type * as core from "../../core/index.js";
2
- import * as FernApi from "../index.js";
3
- export type Error = FernApi.healthHealthGet.Error._Unknown;
2
+ import * as FernVenusApi from "../index.js";
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
  };
@@ -35,14 +35,14 @@ var __importStar = (this && this.__importStar) || (function () {
35
35
  })();
36
36
  Object.defineProperty(exports, "__esModule", { value: true });
37
37
  exports.Error = void 0;
38
- const FernApi = __importStar(require("../index.js"));
38
+ const FernVenusApi = __importStar(require("../index.js"));
39
39
  exports.Error = {
40
40
  _unknown: (fetcherError) => {
41
41
  return {
42
42
  statusCode: undefined,
43
43
  content: fetcherError,
44
44
  _visit: function (visitor) {
45
- return FernApi.healthHealthGet.Error._visit(this, visitor);
45
+ return FernVenusApi.healthHealthGet.Error._visit(this, visitor);
46
46
  },
47
47
  };
48
48
  },
@@ -1,19 +1,19 @@
1
1
  import type * as core from "../../core/index.js";
2
- import * as FernApi from "../index.js";
3
- export type Error = FernApi.metricsMetricsGet.Error._Unknown;
2
+ import * as FernVenusApi from "../index.js";
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
  };
@@ -35,14 +35,14 @@ var __importStar = (this && this.__importStar) || (function () {
35
35
  })();
36
36
  Object.defineProperty(exports, "__esModule", { value: true });
37
37
  exports.Error = void 0;
38
- const FernApi = __importStar(require("../index.js"));
38
+ const FernVenusApi = __importStar(require("../index.js"));
39
39
  exports.Error = {
40
40
  _unknown: (fetcherError) => {
41
41
  return {
42
42
  statusCode: undefined,
43
43
  content: fetcherError,
44
44
  _visit: function (visitor) {
45
- return FernApi.metricsMetricsGet.Error._visit(this, visitor);
45
+ return FernVenusApi.metricsMetricsGet.Error._visit(this, visitor);
46
46
  },
47
47
  };
48
48
  },
@@ -1,17 +1,17 @@
1
1
  import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.js";
2
- import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.js";
2
+ import { type NormalizedClientOptions } from "../../../../BaseClient.js";
3
3
  import * as core from "../../../../core/index.js";
4
- import * as FernApi from "../../../index.js";
4
+ import * as FernVenusApi from "../../../index.js";
5
5
  export declare namespace ApiKeysClient {
6
6
  type Options = BaseClientOptions;
7
7
  interface RequestOptions extends BaseRequestOptions {
8
8
  }
9
9
  }
10
10
  export declare class ApiKeysClient {
11
- protected readonly _options: NormalizedClientOptionsWithAuth<ApiKeysClient.Options>;
11
+ protected readonly _options: NormalizedClientOptions<ApiKeysClient.Options>;
12
12
  constructor(options: ApiKeysClient.Options);
13
13
  /**
14
- * @param {FernApi.CreateApiKeyRequest} request
14
+ * @param {FernVenusApi.CreateApiKeyRequest} request
15
15
  * @param {ApiKeysClient.RequestOptions} requestOptions - Request-specific configuration.
16
16
  *
17
17
  * @example
@@ -19,10 +19,10 @@ export declare class ApiKeysClient {
19
19
  * organizationId: "organizationId"
20
20
  * })
21
21
  */
22
- create(request: FernApi.CreateApiKeyRequest, requestOptions?: ApiKeysClient.RequestOptions): core.HttpResponsePromise<core.APIResponse<FernApi.CreateTokenResponse, FernApi.apiKeys.create.Error>>;
22
+ create(request: FernVenusApi.CreateApiKeyRequest, requestOptions?: ApiKeysClient.RequestOptions): core.HttpResponsePromise<core.APIResponse<FernVenusApi.CreateTokenResponse, FernVenusApi.apiKeys.create.Error>>;
23
23
  private __create;
24
24
  /**
25
- * @param {FernApi.GetTokenMetadataRequest} request
25
+ * @param {FernVenusApi.GetTokenMetadataRequest} request
26
26
  * @param {ApiKeysClient.RequestOptions} requestOptions - Request-specific configuration.
27
27
  *
28
28
  * @example
@@ -30,10 +30,10 @@ export declare class ApiKeysClient {
30
30
  * token: "token"
31
31
  * })
32
32
  */
33
- getTokenMetadata(request: FernApi.GetTokenMetadataRequest, requestOptions?: ApiKeysClient.RequestOptions): core.HttpResponsePromise<core.APIResponse<FernApi.TokenMetadata, FernApi.apiKeys.getTokenMetadata.Error>>;
33
+ getTokenMetadata(request: FernVenusApi.GetTokenMetadataRequest, requestOptions?: ApiKeysClient.RequestOptions): core.HttpResponsePromise<core.APIResponse<FernVenusApi.TokenMetadata, FernVenusApi.apiKeys.getTokenMetadata.Error>>;
34
34
  private __getTokenMetadata;
35
35
  /**
36
- * @param {FernApi.GetTokensForOrganizationApiKeysOrganizationOrganizationIdGetRequest} request
36
+ * @param {FernVenusApi.GetTokensForOrganizationApiKeysOrganizationOrganizationIdGetRequest} request
37
37
  * @param {ApiKeysClient.RequestOptions} requestOptions - Request-specific configuration.
38
38
  *
39
39
  * @example
@@ -41,10 +41,10 @@ export declare class ApiKeysClient {
41
41
  * organizationId: "organization_id"
42
42
  * })
43
43
  */
44
- getTokensForOrganization(request: FernApi.GetTokensForOrganizationApiKeysOrganizationOrganizationIdGetRequest, requestOptions?: ApiKeysClient.RequestOptions): core.HttpResponsePromise<core.APIResponse<FernApi.TokenMetadata[], FernApi.apiKeys.getTokensForOrganization.Error>>;
44
+ getTokensForOrganization(request: FernVenusApi.GetTokensForOrganizationApiKeysOrganizationOrganizationIdGetRequest, requestOptions?: ApiKeysClient.RequestOptions): core.HttpResponsePromise<core.APIResponse<FernVenusApi.TokenMetadata[], FernVenusApi.apiKeys.getTokensForOrganization.Error>>;
45
45
  private __getTokensForOrganization;
46
46
  /**
47
- * @param {FernApi.RevokeTokenByIdApiKeysRevokeTokenIdPostRequest} request
47
+ * @param {FernVenusApi.RevokeTokenByIdApiKeysRevokeTokenIdPostRequest} request
48
48
  * @param {ApiKeysClient.RequestOptions} requestOptions - Request-specific configuration.
49
49
  *
50
50
  * @example
@@ -52,10 +52,10 @@ export declare class ApiKeysClient {
52
52
  * tokenId: "token_id"
53
53
  * })
54
54
  */
55
- revokeTokenById(request: FernApi.RevokeTokenByIdApiKeysRevokeTokenIdPostRequest, requestOptions?: ApiKeysClient.RequestOptions): core.HttpResponsePromise<core.APIResponse<void, FernApi.apiKeys.revokeTokenById.Error>>;
55
+ revokeTokenById(request: FernVenusApi.RevokeTokenByIdApiKeysRevokeTokenIdPostRequest, requestOptions?: ApiKeysClient.RequestOptions): core.HttpResponsePromise<core.APIResponse<void, FernVenusApi.apiKeys.revokeTokenById.Error>>;
56
56
  private __revokeTokenById;
57
57
  /**
58
- * @param {FernApi.RevokeApiKeyRequest} request
58
+ * @param {FernVenusApi.RevokeApiKeyRequest} request
59
59
  * @param {ApiKeysClient.RequestOptions} requestOptions - Request-specific configuration.
60
60
  *
61
61
  * @example
@@ -63,6 +63,6 @@ export declare class ApiKeysClient {
63
63
  * token: "token"
64
64
  * })
65
65
  */
66
- revokeToken(request: FernApi.RevokeApiKeyRequest, requestOptions?: ApiKeysClient.RequestOptions): core.HttpResponsePromise<core.APIResponse<void, FernApi.apiKeys.revokeToken.Error>>;
66
+ revokeToken(request: FernVenusApi.RevokeApiKeyRequest, requestOptions?: ApiKeysClient.RequestOptions): core.HttpResponsePromise<core.APIResponse<void, FernVenusApi.apiKeys.revokeToken.Error>>;
67
67
  private __revokeToken;
68
68
  }
@@ -48,13 +48,13 @@ const BaseClient_js_1 = require("../../../../BaseClient.js");
48
48
  const headers_js_1 = require("../../../../core/headers.js");
49
49
  const core = __importStar(require("../../../../core/index.js"));
50
50
  const serializers = __importStar(require("../../../../serialization/index.js"));
51
- const FernApi = __importStar(require("../../../index.js"));
51
+ const FernVenusApi = __importStar(require("../../../index.js"));
52
52
  class ApiKeysClient {
53
53
  constructor(options) {
54
- this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
54
+ this._options = (0, BaseClient_js_1.normalizeClientOptions)(options);
55
55
  }
56
56
  /**
57
- * @param {FernApi.CreateApiKeyRequest} request
57
+ * @param {FernVenusApi.CreateApiKeyRequest} request
58
58
  * @param {ApiKeysClient.RequestOptions} requestOptions - Request-specific configuration.
59
59
  *
60
60
  * @example
@@ -68,8 +68,7 @@ class ApiKeysClient {
68
68
  __create(request, requestOptions) {
69
69
  return __awaiter(this, void 0, void 0, function* () {
70
70
  var _a, _b, _c, _d, _e, _f, _g, _h;
71
- const _authRequest = yield this._options.authProvider.getAuthRequest();
72
- const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
71
+ const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
73
72
  const _response = yield core.fetcher({
74
73
  url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment)), "api-keys/create"),
75
74
  method: "POST",
@@ -110,7 +109,7 @@ class ApiKeysClient {
110
109
  return {
111
110
  data: {
112
111
  ok: false,
113
- error: FernApi.apiKeys.create.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
112
+ error: FernVenusApi.apiKeys.create.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
114
113
  unrecognizedObjectKeys: "passthrough",
115
114
  allowUnrecognizedUnionMembers: true,
116
115
  allowUnrecognizedEnumValues: true,
@@ -126,7 +125,7 @@ class ApiKeysClient {
126
125
  return {
127
126
  data: {
128
127
  ok: false,
129
- error: FernApi.apiKeys.create.Error._unknown(_response.error),
128
+ error: FernVenusApi.apiKeys.create.Error._unknown(_response.error),
130
129
  rawResponse: _response.rawResponse,
131
130
  },
132
131
  rawResponse: _response.rawResponse,
@@ -134,7 +133,7 @@ class ApiKeysClient {
134
133
  });
135
134
  }
136
135
  /**
137
- * @param {FernApi.GetTokenMetadataRequest} request
136
+ * @param {FernVenusApi.GetTokenMetadataRequest} request
138
137
  * @param {ApiKeysClient.RequestOptions} requestOptions - Request-specific configuration.
139
138
  *
140
139
  * @example
@@ -148,8 +147,7 @@ class ApiKeysClient {
148
147
  __getTokenMetadata(request, requestOptions) {
149
148
  return __awaiter(this, void 0, void 0, function* () {
150
149
  var _a, _b, _c, _d, _e, _f, _g, _h;
151
- const _authRequest = yield this._options.authProvider.getAuthRequest();
152
- const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
150
+ const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
153
151
  const _response = yield core.fetcher({
154
152
  url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment)), "api-keys/metadata"),
155
153
  method: "POST",
@@ -190,7 +188,7 @@ class ApiKeysClient {
190
188
  return {
191
189
  data: {
192
190
  ok: false,
193
- error: FernApi.apiKeys.getTokenMetadata.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
191
+ error: FernVenusApi.apiKeys.getTokenMetadata.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
194
192
  unrecognizedObjectKeys: "passthrough",
195
193
  allowUnrecognizedUnionMembers: true,
196
194
  allowUnrecognizedEnumValues: true,
@@ -206,7 +204,7 @@ class ApiKeysClient {
206
204
  return {
207
205
  data: {
208
206
  ok: false,
209
- error: FernApi.apiKeys.getTokenMetadata.Error._unknown(_response.error),
207
+ error: FernVenusApi.apiKeys.getTokenMetadata.Error._unknown(_response.error),
210
208
  rawResponse: _response.rawResponse,
211
209
  },
212
210
  rawResponse: _response.rawResponse,
@@ -214,7 +212,7 @@ class ApiKeysClient {
214
212
  });
215
213
  }
216
214
  /**
217
- * @param {FernApi.GetTokensForOrganizationApiKeysOrganizationOrganizationIdGetRequest} request
215
+ * @param {FernVenusApi.GetTokensForOrganizationApiKeysOrganizationOrganizationIdGetRequest} request
218
216
  * @param {ApiKeysClient.RequestOptions} requestOptions - Request-specific configuration.
219
217
  *
220
218
  * @example
@@ -229,8 +227,7 @@ class ApiKeysClient {
229
227
  return __awaiter(this, void 0, void 0, function* () {
230
228
  var _a, _b, _c, _d, _e, _f, _g, _h;
231
229
  const { organizationId } = request;
232
- const _authRequest = yield this._options.authProvider.getAuthRequest();
233
- const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
230
+ const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
234
231
  const _response = yield core.fetcher({
235
232
  url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment)), `api-keys/organization/${core.url.encodePathParam(organizationId)}`),
236
233
  method: "GET",
@@ -265,7 +262,7 @@ class ApiKeysClient {
265
262
  return {
266
263
  data: {
267
264
  ok: false,
268
- error: FernApi.apiKeys.getTokensForOrganization.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
265
+ error: FernVenusApi.apiKeys.getTokensForOrganization.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
269
266
  unrecognizedObjectKeys: "passthrough",
270
267
  allowUnrecognizedUnionMembers: true,
271
268
  allowUnrecognizedEnumValues: true,
@@ -281,7 +278,7 @@ class ApiKeysClient {
281
278
  return {
282
279
  data: {
283
280
  ok: false,
284
- error: FernApi.apiKeys.getTokensForOrganization.Error._unknown(_response.error),
281
+ error: FernVenusApi.apiKeys.getTokensForOrganization.Error._unknown(_response.error),
285
282
  rawResponse: _response.rawResponse,
286
283
  },
287
284
  rawResponse: _response.rawResponse,
@@ -289,7 +286,7 @@ class ApiKeysClient {
289
286
  });
290
287
  }
291
288
  /**
292
- * @param {FernApi.RevokeTokenByIdApiKeysRevokeTokenIdPostRequest} request
289
+ * @param {FernVenusApi.RevokeTokenByIdApiKeysRevokeTokenIdPostRequest} request
293
290
  * @param {ApiKeysClient.RequestOptions} requestOptions - Request-specific configuration.
294
291
  *
295
292
  * @example
@@ -304,8 +301,7 @@ class ApiKeysClient {
304
301
  return __awaiter(this, void 0, void 0, function* () {
305
302
  var _a, _b, _c, _d, _e, _f, _g, _h;
306
303
  const { tokenId } = request;
307
- const _authRequest = yield this._options.authProvider.getAuthRequest();
308
- const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
304
+ const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
309
305
  const _response = yield core.fetcher({
310
306
  url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment)), `api-keys/revoke/${core.url.encodePathParam(tokenId)}`),
311
307
  method: "POST",
@@ -334,7 +330,7 @@ class ApiKeysClient {
334
330
  return {
335
331
  data: {
336
332
  ok: false,
337
- error: FernApi.apiKeys.revokeTokenById.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
333
+ error: FernVenusApi.apiKeys.revokeTokenById.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
338
334
  unrecognizedObjectKeys: "passthrough",
339
335
  allowUnrecognizedUnionMembers: true,
340
336
  allowUnrecognizedEnumValues: true,
@@ -350,7 +346,7 @@ class ApiKeysClient {
350
346
  return {
351
347
  data: {
352
348
  ok: false,
353
- error: FernApi.apiKeys.revokeTokenById.Error._unknown(_response.error),
349
+ error: FernVenusApi.apiKeys.revokeTokenById.Error._unknown(_response.error),
354
350
  rawResponse: _response.rawResponse,
355
351
  },
356
352
  rawResponse: _response.rawResponse,
@@ -358,7 +354,7 @@ class ApiKeysClient {
358
354
  });
359
355
  }
360
356
  /**
361
- * @param {FernApi.RevokeApiKeyRequest} request
357
+ * @param {FernVenusApi.RevokeApiKeyRequest} request
362
358
  * @param {ApiKeysClient.RequestOptions} requestOptions - Request-specific configuration.
363
359
  *
364
360
  * @example
@@ -372,8 +368,7 @@ class ApiKeysClient {
372
368
  __revokeToken(request, requestOptions) {
373
369
  return __awaiter(this, void 0, void 0, function* () {
374
370
  var _a, _b, _c, _d, _e, _f, _g, _h;
375
- const _authRequest = yield this._options.authProvider.getAuthRequest();
376
- const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
371
+ const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
377
372
  const _response = yield core.fetcher({
378
373
  url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment)), "api-keys/revoke"),
379
374
  method: "POST",
@@ -408,7 +403,7 @@ class ApiKeysClient {
408
403
  return {
409
404
  data: {
410
405
  ok: false,
411
- error: FernApi.apiKeys.revokeToken.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
406
+ error: FernVenusApi.apiKeys.revokeToken.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
412
407
  unrecognizedObjectKeys: "passthrough",
413
408
  allowUnrecognizedUnionMembers: true,
414
409
  allowUnrecognizedEnumValues: true,
@@ -424,7 +419,7 @@ class ApiKeysClient {
424
419
  return {
425
420
  data: {
426
421
  ok: false,
427
- error: FernApi.apiKeys.revokeToken.Error._unknown(_response.error),
422
+ error: FernVenusApi.apiKeys.revokeToken.Error._unknown(_response.error),
428
423
  rawResponse: _response.rawResponse,
429
424
  },
430
425
  rawResponse: _response.rawResponse,
@@ -1,25 +1,25 @@
1
1
  import type * as core from "../../../../core/index.js";
2
- import * as FernApi from "../../../index.js";
3
- export type Error = FernApi.apiKeys.create.Error.UnprocessableEntityError | FernApi.apiKeys.create.Error._Unknown;
2
+ import * as FernVenusApi from "../../../index.js";
3
+ export type Error = FernVenusApi.apiKeys.create.Error.UnprocessableEntityError | FernVenusApi.apiKeys.create.Error._Unknown;
4
4
  export declare namespace Error {
5
5
  interface UnprocessableEntityError extends _Utils {
6
6
  statusCode: 422;
7
- content: FernApi.HttpValidationError;
7
+ content: FernVenusApi.HttpValidationError;
8
8
  }
9
9
  interface _Unknown extends _Utils {
10
10
  statusCode: void;
11
11
  content: core.Fetcher.Error;
12
12
  }
13
13
  interface _Utils {
14
- _visit: <_Result>(visitor: FernApi.apiKeys.create.Error._Visitor<_Result>) => _Result;
14
+ _visit: <_Result>(visitor: FernVenusApi.apiKeys.create.Error._Visitor<_Result>) => _Result;
15
15
  }
16
16
  interface _Visitor<_Result> {
17
- unprocessableEntityError: (value: FernApi.HttpValidationError) => _Result;
17
+ unprocessableEntityError: (value: FernVenusApi.HttpValidationError) => _Result;
18
18
  _other: (value: core.Fetcher.Error) => _Result;
19
19
  }
20
20
  }
21
21
  export declare const Error: {
22
- readonly unprocessableEntityError: (value: FernApi.HttpValidationError) => FernApi.apiKeys.create.Error.UnprocessableEntityError;
23
- readonly _unknown: (fetcherError: core.Fetcher.Error) => FernApi.apiKeys.create.Error._Unknown;
24
- readonly _visit: <_Result>(value: FernApi.apiKeys.create.Error, visitor: FernApi.apiKeys.create.Error._Visitor<_Result>) => _Result;
22
+ readonly unprocessableEntityError: (value: FernVenusApi.HttpValidationError) => FernVenusApi.apiKeys.create.Error.UnprocessableEntityError;
23
+ readonly _unknown: (fetcherError: core.Fetcher.Error) => FernVenusApi.apiKeys.create.Error._Unknown;
24
+ readonly _visit: <_Result>(value: FernVenusApi.apiKeys.create.Error, visitor: FernVenusApi.apiKeys.create.Error._Visitor<_Result>) => _Result;
25
25
  };
@@ -35,14 +35,14 @@ var __importStar = (this && this.__importStar) || (function () {
35
35
  })();
36
36
  Object.defineProperty(exports, "__esModule", { value: true });
37
37
  exports.Error = void 0;
38
- const FernApi = __importStar(require("../../../index.js"));
38
+ const FernVenusApi = __importStar(require("../../../index.js"));
39
39
  exports.Error = {
40
40
  unprocessableEntityError: (value) => {
41
41
  return {
42
42
  content: value,
43
43
  statusCode: 422,
44
44
  _visit: function (visitor) {
45
- return FernApi.apiKeys.create.Error._visit(this, visitor);
45
+ return FernVenusApi.apiKeys.create.Error._visit(this, visitor);
46
46
  },
47
47
  };
48
48
  },
@@ -51,7 +51,7 @@ exports.Error = {
51
51
  statusCode: undefined,
52
52
  content: fetcherError,
53
53
  _visit: function (visitor) {
54
- return FernApi.apiKeys.create.Error._visit(this, visitor);
54
+ return FernVenusApi.apiKeys.create.Error._visit(this, visitor);
55
55
  },
56
56
  };
57
57
  },