@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
@@ -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
  unprocessableEntityError: (value) => {
5
5
  return {
6
6
  content: value,
7
7
  statusCode: 422,
8
8
  _visit: function (visitor) {
9
- return FernApi.organization.removeUser.Error._visit(this, visitor);
9
+ return FernVenusApi.organization.removeUser.Error._visit(this, visitor);
10
10
  },
11
11
  };
12
12
  },
@@ -15,7 +15,7 @@ export const Error = {
15
15
  statusCode: undefined,
16
16
  content: fetcherError,
17
17
  _visit: function (visitor) {
18
- return FernApi.organization.removeUser.Error._visit(this, visitor);
18
+ return FernVenusApi.organization.removeUser.Error._visit(this, visitor);
19
19
  },
20
20
  };
21
21
  },
@@ -1,25 +1,25 @@
1
1
  import type * as core from "../../../../core/index.mjs";
2
- import * as FernApi from "../../../index.mjs";
3
- export type Error = FernApi.organization.update.Error.UnprocessableEntityError | FernApi.organization.update.Error._Unknown;
2
+ import * as FernVenusApi from "../../../index.mjs";
3
+ export type Error = FernVenusApi.organization.update.Error.UnprocessableEntityError | FernVenusApi.organization.update.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.organization.update.Error._Visitor<_Result>) => _Result;
14
+ _visit: <_Result>(visitor: FernVenusApi.organization.update.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.organization.update.Error.UnprocessableEntityError;
23
- readonly _unknown: (fetcherError: core.Fetcher.Error) => FernApi.organization.update.Error._Unknown;
24
- readonly _visit: <_Result>(value: FernApi.organization.update.Error, visitor: FernApi.organization.update.Error._Visitor<_Result>) => _Result;
22
+ readonly unprocessableEntityError: (value: FernVenusApi.HttpValidationError) => FernVenusApi.organization.update.Error.UnprocessableEntityError;
23
+ readonly _unknown: (fetcherError: core.Fetcher.Error) => FernVenusApi.organization.update.Error._Unknown;
24
+ readonly _visit: <_Result>(value: FernVenusApi.organization.update.Error, visitor: FernVenusApi.organization.update.Error._Visitor<_Result>) => _Result;
25
25
  };
@@ -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
  unprocessableEntityError: (value) => {
5
5
  return {
6
6
  content: value,
7
7
  statusCode: 422,
8
8
  _visit: function (visitor) {
9
- return FernApi.organization.update.Error._visit(this, visitor);
9
+ return FernVenusApi.organization.update.Error._visit(this, visitor);
10
10
  },
11
11
  };
12
12
  },
@@ -15,7 +15,7 @@ export const Error = {
15
15
  statusCode: undefined,
16
16
  content: fetcherError,
17
17
  _visit: function (visitor) {
18
- return FernApi.organization.update.Error._visit(this, visitor);
18
+ return FernVenusApi.organization.update.Error._visit(this, visitor);
19
19
  },
20
20
  };
21
21
  },
@@ -1,17 +1,17 @@
1
1
  import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.mjs";
2
- import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.mjs";
2
+ import { type NormalizedClientOptions } from "../../../../BaseClient.mjs";
3
3
  import * as core from "../../../../core/index.mjs";
4
- import * as FernApi from "../../../index.mjs";
4
+ import * as FernVenusApi from "../../../index.mjs";
5
5
  export declare namespace RegistryClient {
6
6
  type Options = BaseClientOptions;
7
7
  interface RequestOptions extends BaseRequestOptions {
8
8
  }
9
9
  }
10
10
  export declare class RegistryClient {
11
- protected readonly _options: NormalizedClientOptionsWithAuth<RegistryClient.Options>;
11
+ protected readonly _options: NormalizedClientOptions<RegistryClient.Options>;
12
12
  constructor(options: RegistryClient.Options);
13
13
  /**
14
- * @param {FernApi.GenerateRegistryTokensRequest} request
14
+ * @param {FernVenusApi.GenerateRegistryTokensRequest} request
15
15
  * @param {RegistryClient.RequestOptions} requestOptions - Request-specific configuration.
16
16
  *
17
17
  * @example
@@ -19,10 +19,10 @@ export declare class RegistryClient {
19
19
  * organizationId: "organizationId"
20
20
  * })
21
21
  */
22
- generateRegistryTokens(request: FernApi.GenerateRegistryTokensRequest, requestOptions?: RegistryClient.RequestOptions): core.HttpResponsePromise<core.APIResponse<FernApi.RegistryTokens, FernApi.registry.generateRegistryTokens.Error>>;
22
+ generateRegistryTokens(request: FernVenusApi.GenerateRegistryTokensRequest, requestOptions?: RegistryClient.RequestOptions): core.HttpResponsePromise<core.APIResponse<FernVenusApi.RegistryTokens, FernVenusApi.registry.generateRegistryTokens.Error>>;
23
23
  private __generateRegistryTokens;
24
24
  /**
25
- * @param {FernApi.CheckRegistryPermissionRequest} request
25
+ * @param {FernVenusApi.CheckRegistryPermissionRequest} request
26
26
  * @param {RegistryClient.RequestOptions} requestOptions - Request-specific configuration.
27
27
  *
28
28
  * @example
@@ -30,10 +30,10 @@ export declare class RegistryClient {
30
30
  * organizationId: "organizationId"
31
31
  * })
32
32
  */
33
- hasRegistryPermission(request: FernApi.CheckRegistryPermissionRequest, requestOptions?: RegistryClient.RequestOptions): core.HttpResponsePromise<core.APIResponse<boolean, FernApi.registry.hasRegistryPermission.Error>>;
33
+ hasRegistryPermission(request: FernVenusApi.CheckRegistryPermissionRequest, requestOptions?: RegistryClient.RequestOptions): core.HttpResponsePromise<core.APIResponse<boolean, FernVenusApi.registry.hasRegistryPermission.Error>>;
34
34
  private __hasRegistryPermission;
35
35
  /**
36
- * @param {FernApi.RevokeTokenRequest} request
36
+ * @param {FernVenusApi.RevokeTokenRequest} request
37
37
  * @param {RegistryClient.RequestOptions} requestOptions - Request-specific configuration.
38
38
  *
39
39
  * @example
@@ -42,6 +42,6 @@ export declare class RegistryClient {
42
42
  * token: "token"
43
43
  * })
44
44
  */
45
- revokeToken(request: FernApi.RevokeTokenRequest, requestOptions?: RegistryClient.RequestOptions): core.HttpResponsePromise<core.APIResponse<void, FernApi.registry.revokeToken.Error>>;
45
+ revokeToken(request: FernVenusApi.RevokeTokenRequest, requestOptions?: RegistryClient.RequestOptions): core.HttpResponsePromise<core.APIResponse<void, FernVenusApi.registry.revokeToken.Error>>;
46
46
  private __revokeToken;
47
47
  }
@@ -8,17 +8,17 @@ 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 { normalizeClientOptionsWithAuth } from "../../../../BaseClient.mjs";
11
+ import { normalizeClientOptions } from "../../../../BaseClient.mjs";
12
12
  import { mergeHeaders } from "../../../../core/headers.mjs";
13
13
  import * as core from "../../../../core/index.mjs";
14
14
  import * as serializers from "../../../../serialization/index.mjs";
15
- import * as FernApi from "../../../index.mjs";
15
+ import * as FernVenusApi from "../../../index.mjs";
16
16
  export class RegistryClient {
17
17
  constructor(options) {
18
- this._options = normalizeClientOptionsWithAuth(options);
18
+ this._options = normalizeClientOptions(options);
19
19
  }
20
20
  /**
21
- * @param {FernApi.GenerateRegistryTokensRequest} request
21
+ * @param {FernVenusApi.GenerateRegistryTokensRequest} request
22
22
  * @param {RegistryClient.RequestOptions} requestOptions - Request-specific configuration.
23
23
  *
24
24
  * @example
@@ -32,8 +32,7 @@ export class RegistryClient {
32
32
  __generateRegistryTokens(request, requestOptions) {
33
33
  return __awaiter(this, void 0, void 0, function* () {
34
34
  var _a, _b, _c, _d, _e, _f, _g, _h;
35
- const _authRequest = yield this._options.authProvider.getAuthRequest();
36
- 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);
35
+ const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
37
36
  const _response = yield core.fetcher({
38
37
  url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment)), "registry/generate-tokens"),
39
38
  method: "POST",
@@ -74,7 +73,7 @@ export class RegistryClient {
74
73
  return {
75
74
  data: {
76
75
  ok: false,
77
- error: FernApi.registry.generateRegistryTokens.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
76
+ error: FernVenusApi.registry.generateRegistryTokens.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
78
77
  unrecognizedObjectKeys: "passthrough",
79
78
  allowUnrecognizedUnionMembers: true,
80
79
  allowUnrecognizedEnumValues: true,
@@ -90,7 +89,7 @@ export class RegistryClient {
90
89
  return {
91
90
  data: {
92
91
  ok: false,
93
- error: FernApi.registry.generateRegistryTokens.Error._unknown(_response.error),
92
+ error: FernVenusApi.registry.generateRegistryTokens.Error._unknown(_response.error),
94
93
  rawResponse: _response.rawResponse,
95
94
  },
96
95
  rawResponse: _response.rawResponse,
@@ -98,7 +97,7 @@ export class RegistryClient {
98
97
  });
99
98
  }
100
99
  /**
101
- * @param {FernApi.CheckRegistryPermissionRequest} request
100
+ * @param {FernVenusApi.CheckRegistryPermissionRequest} request
102
101
  * @param {RegistryClient.RequestOptions} requestOptions - Request-specific configuration.
103
102
  *
104
103
  * @example
@@ -153,7 +152,7 @@ export class RegistryClient {
153
152
  return {
154
153
  data: {
155
154
  ok: false,
156
- error: FernApi.registry.hasRegistryPermission.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
155
+ error: FernVenusApi.registry.hasRegistryPermission.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
157
156
  unrecognizedObjectKeys: "passthrough",
158
157
  allowUnrecognizedUnionMembers: true,
159
158
  allowUnrecognizedEnumValues: true,
@@ -169,7 +168,7 @@ export class RegistryClient {
169
168
  return {
170
169
  data: {
171
170
  ok: false,
172
- error: FernApi.registry.hasRegistryPermission.Error._unknown(_response.error),
171
+ error: FernVenusApi.registry.hasRegistryPermission.Error._unknown(_response.error),
173
172
  rawResponse: _response.rawResponse,
174
173
  },
175
174
  rawResponse: _response.rawResponse,
@@ -177,7 +176,7 @@ export class RegistryClient {
177
176
  });
178
177
  }
179
178
  /**
180
- * @param {FernApi.RevokeTokenRequest} request
179
+ * @param {FernVenusApi.RevokeTokenRequest} request
181
180
  * @param {RegistryClient.RequestOptions} requestOptions - Request-specific configuration.
182
181
  *
183
182
  * @example
@@ -192,8 +191,7 @@ export class RegistryClient {
192
191
  __revokeToken(request, requestOptions) {
193
192
  return __awaiter(this, void 0, void 0, function* () {
194
193
  var _a, _b, _c, _d, _e, _f, _g, _h;
195
- const _authRequest = yield this._options.authProvider.getAuthRequest();
196
- 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);
194
+ const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
197
195
  const _response = yield core.fetcher({
198
196
  url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment)), "registry/revoke-token"),
199
197
  method: "POST",
@@ -228,7 +226,7 @@ export class RegistryClient {
228
226
  return {
229
227
  data: {
230
228
  ok: false,
231
- error: FernApi.registry.revokeToken.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
229
+ error: FernVenusApi.registry.revokeToken.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
232
230
  unrecognizedObjectKeys: "passthrough",
233
231
  allowUnrecognizedUnionMembers: true,
234
232
  allowUnrecognizedEnumValues: true,
@@ -244,7 +242,7 @@ export class RegistryClient {
244
242
  return {
245
243
  data: {
246
244
  ok: false,
247
- error: FernApi.registry.revokeToken.Error._unknown(_response.error),
245
+ error: FernVenusApi.registry.revokeToken.Error._unknown(_response.error),
248
246
  rawResponse: _response.rawResponse,
249
247
  },
250
248
  rawResponse: _response.rawResponse,
@@ -1,25 +1,25 @@
1
1
  import type * as core from "../../../../core/index.mjs";
2
- import * as FernApi from "../../../index.mjs";
3
- export type Error = FernApi.registry.generateRegistryTokens.Error.UnprocessableEntityError | FernApi.registry.generateRegistryTokens.Error._Unknown;
2
+ import * as FernVenusApi from "../../../index.mjs";
3
+ export type Error = FernVenusApi.registry.generateRegistryTokens.Error.UnprocessableEntityError | FernVenusApi.registry.generateRegistryTokens.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.registry.generateRegistryTokens.Error._Visitor<_Result>) => _Result;
14
+ _visit: <_Result>(visitor: FernVenusApi.registry.generateRegistryTokens.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.registry.generateRegistryTokens.Error.UnprocessableEntityError;
23
- readonly _unknown: (fetcherError: core.Fetcher.Error) => FernApi.registry.generateRegistryTokens.Error._Unknown;
24
- readonly _visit: <_Result>(value: FernApi.registry.generateRegistryTokens.Error, visitor: FernApi.registry.generateRegistryTokens.Error._Visitor<_Result>) => _Result;
22
+ readonly unprocessableEntityError: (value: FernVenusApi.HttpValidationError) => FernVenusApi.registry.generateRegistryTokens.Error.UnprocessableEntityError;
23
+ readonly _unknown: (fetcherError: core.Fetcher.Error) => FernVenusApi.registry.generateRegistryTokens.Error._Unknown;
24
+ readonly _visit: <_Result>(value: FernVenusApi.registry.generateRegistryTokens.Error, visitor: FernVenusApi.registry.generateRegistryTokens.Error._Visitor<_Result>) => _Result;
25
25
  };
@@ -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
  unprocessableEntityError: (value) => {
5
5
  return {
6
6
  content: value,
7
7
  statusCode: 422,
8
8
  _visit: function (visitor) {
9
- return FernApi.registry.generateRegistryTokens.Error._visit(this, visitor);
9
+ return FernVenusApi.registry.generateRegistryTokens.Error._visit(this, visitor);
10
10
  },
11
11
  };
12
12
  },
@@ -15,7 +15,7 @@ export const Error = {
15
15
  statusCode: undefined,
16
16
  content: fetcherError,
17
17
  _visit: function (visitor) {
18
- return FernApi.registry.generateRegistryTokens.Error._visit(this, visitor);
18
+ return FernVenusApi.registry.generateRegistryTokens.Error._visit(this, visitor);
19
19
  },
20
20
  };
21
21
  },
@@ -1,25 +1,25 @@
1
1
  import type * as core from "../../../../core/index.mjs";
2
- import * as FernApi from "../../../index.mjs";
3
- export type Error = FernApi.registry.hasRegistryPermission.Error.UnprocessableEntityError | FernApi.registry.hasRegistryPermission.Error._Unknown;
2
+ import * as FernVenusApi from "../../../index.mjs";
3
+ export type Error = FernVenusApi.registry.hasRegistryPermission.Error.UnprocessableEntityError | FernVenusApi.registry.hasRegistryPermission.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.registry.hasRegistryPermission.Error._Visitor<_Result>) => _Result;
14
+ _visit: <_Result>(visitor: FernVenusApi.registry.hasRegistryPermission.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.registry.hasRegistryPermission.Error.UnprocessableEntityError;
23
- readonly _unknown: (fetcherError: core.Fetcher.Error) => FernApi.registry.hasRegistryPermission.Error._Unknown;
24
- readonly _visit: <_Result>(value: FernApi.registry.hasRegistryPermission.Error, visitor: FernApi.registry.hasRegistryPermission.Error._Visitor<_Result>) => _Result;
22
+ readonly unprocessableEntityError: (value: FernVenusApi.HttpValidationError) => FernVenusApi.registry.hasRegistryPermission.Error.UnprocessableEntityError;
23
+ readonly _unknown: (fetcherError: core.Fetcher.Error) => FernVenusApi.registry.hasRegistryPermission.Error._Unknown;
24
+ readonly _visit: <_Result>(value: FernVenusApi.registry.hasRegistryPermission.Error, visitor: FernVenusApi.registry.hasRegistryPermission.Error._Visitor<_Result>) => _Result;
25
25
  };
@@ -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
  unprocessableEntityError: (value) => {
5
5
  return {
6
6
  content: value,
7
7
  statusCode: 422,
8
8
  _visit: function (visitor) {
9
- return FernApi.registry.hasRegistryPermission.Error._visit(this, visitor);
9
+ return FernVenusApi.registry.hasRegistryPermission.Error._visit(this, visitor);
10
10
  },
11
11
  };
12
12
  },
@@ -15,7 +15,7 @@ export const Error = {
15
15
  statusCode: undefined,
16
16
  content: fetcherError,
17
17
  _visit: function (visitor) {
18
- return FernApi.registry.hasRegistryPermission.Error._visit(this, visitor);
18
+ return FernVenusApi.registry.hasRegistryPermission.Error._visit(this, visitor);
19
19
  },
20
20
  };
21
21
  },
@@ -1,4 +1,4 @@
1
- import type * as FernApi from "../../../../index.mjs";
1
+ import type * as FernVenusApi from "../../../../index.mjs";
2
2
  /**
3
3
  * @example
4
4
  * {
@@ -7,5 +7,5 @@ import type * as FernApi from "../../../../index.mjs";
7
7
  */
8
8
  export interface CheckRegistryPermissionRequest {
9
9
  organizationId: string;
10
- token?: FernApi.RegistryToken | null;
10
+ token?: FernVenusApi.RegistryToken | null;
11
11
  }
@@ -1,25 +1,25 @@
1
1
  import type * as core from "../../../../core/index.mjs";
2
- import * as FernApi from "../../../index.mjs";
3
- export type Error = FernApi.registry.revokeToken.Error.UnprocessableEntityError | FernApi.registry.revokeToken.Error._Unknown;
2
+ import * as FernVenusApi from "../../../index.mjs";
3
+ export type Error = FernVenusApi.registry.revokeToken.Error.UnprocessableEntityError | FernVenusApi.registry.revokeToken.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.registry.revokeToken.Error._Visitor<_Result>) => _Result;
14
+ _visit: <_Result>(visitor: FernVenusApi.registry.revokeToken.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.registry.revokeToken.Error.UnprocessableEntityError;
23
- readonly _unknown: (fetcherError: core.Fetcher.Error) => FernApi.registry.revokeToken.Error._Unknown;
24
- readonly _visit: <_Result>(value: FernApi.registry.revokeToken.Error, visitor: FernApi.registry.revokeToken.Error._Visitor<_Result>) => _Result;
22
+ readonly unprocessableEntityError: (value: FernVenusApi.HttpValidationError) => FernVenusApi.registry.revokeToken.Error.UnprocessableEntityError;
23
+ readonly _unknown: (fetcherError: core.Fetcher.Error) => FernVenusApi.registry.revokeToken.Error._Unknown;
24
+ readonly _visit: <_Result>(value: FernVenusApi.registry.revokeToken.Error, visitor: FernVenusApi.registry.revokeToken.Error._Visitor<_Result>) => _Result;
25
25
  };
@@ -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
  unprocessableEntityError: (value) => {
5
5
  return {
6
6
  content: value,
7
7
  statusCode: 422,
8
8
  _visit: function (visitor) {
9
- return FernApi.registry.revokeToken.Error._visit(this, visitor);
9
+ return FernVenusApi.registry.revokeToken.Error._visit(this, visitor);
10
10
  },
11
11
  };
12
12
  },
@@ -15,7 +15,7 @@ export const Error = {
15
15
  statusCode: undefined,
16
16
  content: fetcherError,
17
17
  _visit: function (visitor) {
18
- return FernApi.registry.revokeToken.Error._visit(this, visitor);
18
+ return FernVenusApi.registry.revokeToken.Error._visit(this, visitor);
19
19
  },
20
20
  };
21
21
  },
@@ -1,14 +1,14 @@
1
1
  import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.mjs";
2
- import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.mjs";
2
+ import { type NormalizedClientOptions } from "../../../../BaseClient.mjs";
3
3
  import * as core from "../../../../core/index.mjs";
4
- import * as FernApi from "../../../index.mjs";
4
+ import * as FernVenusApi from "../../../index.mjs";
5
5
  export declare namespace UserClient {
6
6
  type Options = BaseClientOptions;
7
7
  interface RequestOptions extends BaseRequestOptions {
8
8
  }
9
9
  }
10
10
  export declare class UserClient {
11
- protected readonly _options: NormalizedClientOptionsWithAuth<UserClient.Options>;
11
+ protected readonly _options: NormalizedClientOptions<UserClient.Options>;
12
12
  constructor(options: UserClient.Options);
13
13
  /**
14
14
  * @param {UserClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -16,10 +16,10 @@ export declare class UserClient {
16
16
  * @example
17
17
  * await client.user.getMyself()
18
18
  */
19
- getMyself(requestOptions?: UserClient.RequestOptions): core.HttpResponsePromise<core.APIResponse<FernApi.User, FernApi.user.getMyself.Error>>;
19
+ getMyself(requestOptions?: UserClient.RequestOptions): core.HttpResponsePromise<core.APIResponse<FernVenusApi.User, FernVenusApi.user.getMyself.Error>>;
20
20
  private __getMyself;
21
21
  /**
22
- * @param {FernApi.GetMyOrganizationsUsersOrganizationsGetRequest} request
22
+ * @param {FernVenusApi.GetMyOrganizationsUsersOrganizationsGetRequest} request
23
23
  * @param {UserClient.RequestOptions} requestOptions - Request-specific configuration.
24
24
  *
25
25
  * @example
@@ -27,13 +27,13 @@ export declare class UserClient {
27
27
  * pageId: 1
28
28
  * })
29
29
  */
30
- getMyOrganizations(request: FernApi.GetMyOrganizationsUsersOrganizationsGetRequest, requestOptions?: UserClient.RequestOptions): core.HttpResponsePromise<core.APIResponse<FernApi.OrganizationsPage, FernApi.user.getMyOrganizations.Error>>;
30
+ getMyOrganizations(request: FernVenusApi.GetMyOrganizationsUsersOrganizationsGetRequest, requestOptions?: UserClient.RequestOptions): core.HttpResponsePromise<core.APIResponse<FernVenusApi.OrganizationsPage, FernVenusApi.user.getMyOrganizations.Error>>;
31
31
  private __getMyOrganizations;
32
32
  /**
33
33
  * Link user accounts with the same verified email address.
34
34
  * Requires admin token authentication.
35
35
  *
36
- * @param {FernApi.LinkAccountsRequest} request
36
+ * @param {FernVenusApi.LinkAccountsRequest} request
37
37
  * @param {UserClient.RequestOptions} requestOptions - Request-specific configuration.
38
38
  *
39
39
  * @example
@@ -41,6 +41,6 @@ export declare class UserClient {
41
41
  * userId: "userId"
42
42
  * })
43
43
  */
44
- linkAccounts(request: FernApi.LinkAccountsRequest, requestOptions?: UserClient.RequestOptions): core.HttpResponsePromise<core.APIResponse<FernApi.LinkAccountsResponse, FernApi.user.linkAccounts.Error>>;
44
+ linkAccounts(request: FernVenusApi.LinkAccountsRequest, requestOptions?: UserClient.RequestOptions): core.HttpResponsePromise<core.APIResponse<FernVenusApi.LinkAccountsResponse, FernVenusApi.user.linkAccounts.Error>>;
45
45
  private __linkAccounts;
46
46
  }
@@ -8,14 +8,14 @@ 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 { normalizeClientOptionsWithAuth } from "../../../../BaseClient.mjs";
11
+ import { normalizeClientOptions } from "../../../../BaseClient.mjs";
12
12
  import { mergeHeaders } from "../../../../core/headers.mjs";
13
13
  import * as core from "../../../../core/index.mjs";
14
14
  import * as serializers from "../../../../serialization/index.mjs";
15
- import * as FernApi from "../../../index.mjs";
15
+ import * as FernVenusApi from "../../../index.mjs";
16
16
  export class UserClient {
17
17
  constructor(options) {
18
- this._options = normalizeClientOptionsWithAuth(options);
18
+ this._options = normalizeClientOptions(options);
19
19
  }
20
20
  /**
21
21
  * @param {UserClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -29,8 +29,7 @@ export class UserClient {
29
29
  __getMyself(requestOptions) {
30
30
  return __awaiter(this, void 0, void 0, function* () {
31
31
  var _a, _b, _c, _d, _e, _f, _g, _h;
32
- const _authRequest = yield this._options.authProvider.getAuthRequest();
33
- 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);
32
+ const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
34
33
  const _response = yield core.fetcher({
35
34
  url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment)), "users"),
36
35
  method: "GET",
@@ -62,7 +61,7 @@ export class UserClient {
62
61
  return {
63
62
  data: {
64
63
  ok: false,
65
- error: FernApi.user.getMyself.Error._unknown(_response.error),
64
+ error: FernVenusApi.user.getMyself.Error._unknown(_response.error),
66
65
  rawResponse: _response.rawResponse,
67
66
  },
68
67
  rawResponse: _response.rawResponse,
@@ -70,7 +69,7 @@ export class UserClient {
70
69
  });
71
70
  }
72
71
  /**
73
- * @param {FernApi.GetMyOrganizationsUsersOrganizationsGetRequest} request
72
+ * @param {FernVenusApi.GetMyOrganizationsUsersOrganizationsGetRequest} request
74
73
  * @param {UserClient.RequestOptions} requestOptions - Request-specific configuration.
75
74
  *
76
75
  * @example
@@ -88,8 +87,7 @@ export class UserClient {
88
87
  const _queryParams = {
89
88
  pageId,
90
89
  };
91
- const _authRequest = yield this._options.authProvider.getAuthRequest();
92
- 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);
90
+ const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
93
91
  const _response = yield core.fetcher({
94
92
  url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment)), "users/organizations"),
95
93
  method: "GET",
@@ -124,7 +122,7 @@ export class UserClient {
124
122
  return {
125
123
  data: {
126
124
  ok: false,
127
- error: FernApi.user.getMyOrganizations.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
125
+ error: FernVenusApi.user.getMyOrganizations.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
128
126
  unrecognizedObjectKeys: "passthrough",
129
127
  allowUnrecognizedUnionMembers: true,
130
128
  allowUnrecognizedEnumValues: true,
@@ -140,7 +138,7 @@ export class UserClient {
140
138
  return {
141
139
  data: {
142
140
  ok: false,
143
- error: FernApi.user.getMyOrganizations.Error._unknown(_response.error),
141
+ error: FernVenusApi.user.getMyOrganizations.Error._unknown(_response.error),
144
142
  rawResponse: _response.rawResponse,
145
143
  },
146
144
  rawResponse: _response.rawResponse,
@@ -151,7 +149,7 @@ export class UserClient {
151
149
  * Link user accounts with the same verified email address.
152
150
  * Requires admin token authentication.
153
151
  *
154
- * @param {FernApi.LinkAccountsRequest} request
152
+ * @param {FernVenusApi.LinkAccountsRequest} request
155
153
  * @param {UserClient.RequestOptions} requestOptions - Request-specific configuration.
156
154
  *
157
155
  * @example
@@ -165,8 +163,7 @@ export class UserClient {
165
163
  __linkAccounts(request, requestOptions) {
166
164
  return __awaiter(this, void 0, void 0, function* () {
167
165
  var _a, _b, _c, _d, _e, _f, _g, _h;
168
- const _authRequest = yield this._options.authProvider.getAuthRequest();
169
- 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);
166
+ const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
170
167
  const _response = yield core.fetcher({
171
168
  url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment)), "users/link-accounts"),
172
169
  method: "POST",
@@ -207,7 +204,7 @@ export class UserClient {
207
204
  return {
208
205
  data: {
209
206
  ok: false,
210
- error: FernApi.user.linkAccounts.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
207
+ error: FernVenusApi.user.linkAccounts.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
211
208
  unrecognizedObjectKeys: "passthrough",
212
209
  allowUnrecognizedUnionMembers: true,
213
210
  allowUnrecognizedEnumValues: true,
@@ -223,7 +220,7 @@ export class UserClient {
223
220
  return {
224
221
  data: {
225
222
  ok: false,
226
- error: FernApi.user.linkAccounts.Error._unknown(_response.error),
223
+ error: FernVenusApi.user.linkAccounts.Error._unknown(_response.error),
227
224
  rawResponse: _response.rawResponse,
228
225
  },
229
226
  rawResponse: _response.rawResponse,