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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (285) hide show
  1. package/README.md +12 -12
  2. package/dist/cjs/BaseClient.d.ts +8 -2
  3. package/dist/cjs/BaseClient.js +14 -2
  4. package/dist/cjs/Client.d.ts +10 -10
  5. package/dist/cjs/Client.js +13 -11
  6. package/dist/cjs/api/client/healthHealthGet.d.ts +5 -5
  7. package/dist/cjs/api/client/healthHealthGet.js +2 -2
  8. package/dist/cjs/api/client/metricsMetricsGet.d.ts +5 -5
  9. package/dist/cjs/api/client/metricsMetricsGet.js +2 -2
  10. package/dist/cjs/api/resources/apiKeys/client/Client.d.ts +13 -13
  11. package/dist/cjs/api/resources/apiKeys/client/Client.js +27 -22
  12. package/dist/cjs/api/resources/apiKeys/client/create.d.ts +8 -8
  13. package/dist/cjs/api/resources/apiKeys/client/create.js +3 -3
  14. package/dist/cjs/api/resources/apiKeys/client/getTokenMetadata.d.ts +8 -8
  15. package/dist/cjs/api/resources/apiKeys/client/getTokenMetadata.js +3 -3
  16. package/dist/cjs/api/resources/apiKeys/client/getTokensForOrganization.d.ts +8 -8
  17. package/dist/cjs/api/resources/apiKeys/client/getTokensForOrganization.js +3 -3
  18. package/dist/cjs/api/resources/apiKeys/client/revokeToken.d.ts +8 -8
  19. package/dist/cjs/api/resources/apiKeys/client/revokeToken.js +3 -3
  20. package/dist/cjs/api/resources/apiKeys/client/revokeTokenById.d.ts +8 -8
  21. package/dist/cjs/api/resources/apiKeys/client/revokeTokenById.js +3 -3
  22. package/dist/cjs/api/resources/auth/client/Client.d.ts +9 -9
  23. package/dist/cjs/api/resources/auth/client/Client.js +17 -14
  24. package/dist/cjs/api/resources/auth/client/getAutopilotToken.d.ts +8 -8
  25. package/dist/cjs/api/resources/auth/client/getAutopilotToken.js +3 -3
  26. package/dist/cjs/api/resources/auth/client/getJwt.d.ts +8 -8
  27. package/dist/cjs/api/resources/auth/client/getJwt.js +3 -3
  28. package/dist/cjs/api/resources/auth/client/getOrgForGithubOwner.d.ts +8 -8
  29. package/dist/cjs/api/resources/auth/client/getOrgForGithubOwner.js +3 -3
  30. package/dist/cjs/api/resources/organization/client/Client.d.ts +26 -26
  31. package/dist/cjs/api/resources/organization/client/Client.js +60 -48
  32. package/dist/cjs/api/resources/organization/client/addUser.d.ts +8 -8
  33. package/dist/cjs/api/resources/organization/client/addUser.js +3 -3
  34. package/dist/cjs/api/resources/organization/client/create.d.ts +8 -8
  35. package/dist/cjs/api/resources/organization/client/create.js +3 -3
  36. package/dist/cjs/api/resources/organization/client/delete.d.ts +8 -8
  37. package/dist/cjs/api/resources/organization/client/delete.js +3 -3
  38. package/dist/cjs/api/resources/organization/client/get.d.ts +8 -8
  39. package/dist/cjs/api/resources/organization/client/get.js +3 -3
  40. package/dist/cjs/api/resources/organization/client/getMyOrganizationFromScopedToken.d.ts +8 -8
  41. package/dist/cjs/api/resources/organization/client/getMyOrganizationFromScopedToken.js +3 -3
  42. package/dist/cjs/api/resources/organization/client/getOrgIdsByPostmanTeamId.d.ts +8 -8
  43. package/dist/cjs/api/resources/organization/client/getOrgIdsByPostmanTeamId.js +3 -3
  44. package/dist/cjs/api/resources/organization/client/getOrgIdsFromToken.d.ts +5 -5
  45. package/dist/cjs/api/resources/organization/client/getOrgIdsFromToken.js +2 -2
  46. package/dist/cjs/api/resources/organization/client/getPostmanTeamIdByOrgId.d.ts +8 -8
  47. package/dist/cjs/api/resources/organization/client/getPostmanTeamIdByOrgId.js +3 -3
  48. package/dist/cjs/api/resources/organization/client/inviteUser.d.ts +8 -8
  49. package/dist/cjs/api/resources/organization/client/inviteUser.js +3 -3
  50. package/dist/cjs/api/resources/organization/client/isMember.d.ts +8 -8
  51. package/dist/cjs/api/resources/organization/client/isMember.js +3 -3
  52. package/dist/cjs/api/resources/organization/client/removeUser.d.ts +8 -8
  53. package/dist/cjs/api/resources/organization/client/removeUser.js +3 -3
  54. package/dist/cjs/api/resources/organization/client/update.d.ts +8 -8
  55. package/dist/cjs/api/resources/organization/client/update.js +3 -3
  56. package/dist/cjs/api/resources/registry/client/Client.d.ts +9 -9
  57. package/dist/cjs/api/resources/registry/client/Client.js +17 -14
  58. package/dist/cjs/api/resources/registry/client/generateRegistryTokens.d.ts +8 -8
  59. package/dist/cjs/api/resources/registry/client/generateRegistryTokens.js +3 -3
  60. package/dist/cjs/api/resources/registry/client/hasRegistryPermission.d.ts +8 -8
  61. package/dist/cjs/api/resources/registry/client/hasRegistryPermission.js +3 -3
  62. package/dist/cjs/api/resources/registry/client/requests/CheckRegistryPermissionRequest.d.ts +2 -2
  63. package/dist/cjs/api/resources/registry/client/revokeToken.d.ts +8 -8
  64. package/dist/cjs/api/resources/registry/client/revokeToken.js +3 -3
  65. package/dist/cjs/api/resources/user/client/Client.d.ts +8 -8
  66. package/dist/cjs/api/resources/user/client/Client.js +15 -12
  67. package/dist/cjs/api/resources/user/client/getMyOrganizations.d.ts +8 -8
  68. package/dist/cjs/api/resources/user/client/getMyOrganizations.js +3 -3
  69. package/dist/cjs/api/resources/user/client/getMyself.d.ts +5 -5
  70. package/dist/cjs/api/resources/user/client/getMyself.js +2 -2
  71. package/dist/cjs/api/resources/user/client/linkAccounts.d.ts +8 -8
  72. package/dist/cjs/api/resources/user/client/linkAccounts.js +3 -3
  73. package/dist/cjs/api/types/HttpValidationError.d.ts +2 -2
  74. package/dist/cjs/api/types/Organization.d.ts +2 -2
  75. package/dist/cjs/api/types/RegistryToken.d.ts +5 -5
  76. package/dist/cjs/api/types/RegistryTokens.d.ts +4 -4
  77. package/dist/cjs/api/types/TokenMetadata.d.ts +2 -2
  78. package/dist/cjs/api/types/TokenStatus.d.ts +5 -5
  79. package/dist/cjs/api/types/ValidationError.d.ts +2 -2
  80. package/dist/cjs/auth/BearerAuthProvider.d.ts +20 -0
  81. package/dist/cjs/auth/BearerAuthProvider.js +76 -0
  82. package/dist/cjs/auth/index.d.ts +1 -0
  83. package/dist/cjs/auth/index.js +5 -0
  84. package/dist/cjs/core/auth/AuthProvider.d.ts +7 -0
  85. package/dist/cjs/core/auth/AuthProvider.js +2 -0
  86. package/dist/cjs/core/auth/AuthRequest.d.ts +9 -0
  87. package/dist/cjs/core/auth/AuthRequest.js +2 -0
  88. package/dist/cjs/core/auth/BasicAuth.d.ts +8 -0
  89. package/dist/cjs/core/auth/BasicAuth.js +27 -0
  90. package/dist/cjs/core/auth/BearerToken.d.ts +7 -0
  91. package/dist/cjs/core/auth/BearerToken.js +16 -0
  92. package/dist/cjs/core/auth/NoOpAuthProvider.d.ts +5 -0
  93. package/dist/cjs/core/auth/NoOpAuthProvider.js +9 -0
  94. package/dist/cjs/core/auth/index.d.ts +5 -0
  95. package/dist/cjs/core/auth/index.js +9 -0
  96. package/dist/cjs/core/base64.d.ts +2 -0
  97. package/dist/cjs/core/base64.js +26 -0
  98. package/dist/cjs/core/index.d.ts +2 -0
  99. package/dist/cjs/core/index.js +2 -0
  100. package/dist/cjs/index.d.ts +2 -2
  101. package/dist/cjs/index.js +3 -3
  102. package/dist/cjs/serialization/resources/apiKeys/client/getTokensForOrganization.d.ts +2 -2
  103. package/dist/cjs/serialization/resources/apiKeys/client/requests/CreateApiKeyRequest.d.ts +2 -2
  104. package/dist/cjs/serialization/resources/apiKeys/client/requests/GetTokenMetadataRequest.d.ts +2 -2
  105. package/dist/cjs/serialization/resources/apiKeys/client/requests/RevokeApiKeyRequest.d.ts +2 -2
  106. package/dist/cjs/serialization/resources/auth/client/requests/GetAutopilotTokenRequest.d.ts +2 -2
  107. package/dist/cjs/serialization/resources/auth/client/requests/GetJwtRequest.d.ts +2 -2
  108. package/dist/cjs/serialization/resources/organization/client/requests/AddUserToOrgRequest.d.ts +2 -2
  109. package/dist/cjs/serialization/resources/organization/client/requests/CreateOrganizationRequest.d.ts +2 -2
  110. package/dist/cjs/serialization/resources/organization/client/requests/InviteUserToOrgRequest.d.ts +2 -2
  111. package/dist/cjs/serialization/resources/organization/client/requests/RemoveUserFromOrgRequest.d.ts +2 -2
  112. package/dist/cjs/serialization/resources/organization/client/requests/UpdateOrganizationRequest.d.ts +2 -2
  113. package/dist/cjs/serialization/resources/registry/client/requests/CheckRegistryPermissionRequest.d.ts +2 -2
  114. package/dist/cjs/serialization/resources/registry/client/requests/GenerateRegistryTokensRequest.d.ts +2 -2
  115. package/dist/cjs/serialization/resources/registry/client/requests/RevokeTokenRequest.d.ts +2 -2
  116. package/dist/cjs/serialization/resources/user/client/requests/LinkAccountsRequest.d.ts +2 -2
  117. package/dist/cjs/serialization/types/Active.d.ts +2 -2
  118. package/dist/cjs/serialization/types/CreateOrganizationResponse.d.ts +2 -2
  119. package/dist/cjs/serialization/types/CreateTokenResponse.d.ts +2 -2
  120. package/dist/cjs/serialization/types/Expired.d.ts +2 -2
  121. package/dist/cjs/serialization/types/HttpValidationError.d.ts +2 -2
  122. package/dist/cjs/serialization/types/JwtResponse.d.ts +2 -2
  123. package/dist/cjs/serialization/types/LightweightUser.d.ts +2 -2
  124. package/dist/cjs/serialization/types/LinkAccountsResponse.d.ts +2 -2
  125. package/dist/cjs/serialization/types/Maven.d.ts +2 -2
  126. package/dist/cjs/serialization/types/MavenRegistryToken.d.ts +2 -2
  127. package/dist/cjs/serialization/types/Npm.d.ts +2 -2
  128. package/dist/cjs/serialization/types/NpmRegistryToken.d.ts +2 -2
  129. package/dist/cjs/serialization/types/Organization.d.ts +2 -2
  130. package/dist/cjs/serialization/types/OrganizationsPage.d.ts +2 -2
  131. package/dist/cjs/serialization/types/Pypi.d.ts +2 -2
  132. package/dist/cjs/serialization/types/PypiRegistryToken.d.ts +2 -2
  133. package/dist/cjs/serialization/types/RegistryToken.d.ts +2 -2
  134. package/dist/cjs/serialization/types/RegistryTokens.d.ts +2 -2
  135. package/dist/cjs/serialization/types/Revoked.d.ts +2 -2
  136. package/dist/cjs/serialization/types/TokenMetadata.d.ts +2 -2
  137. package/dist/cjs/serialization/types/TokenStatus.d.ts +2 -2
  138. package/dist/cjs/serialization/types/User.d.ts +2 -2
  139. package/dist/cjs/serialization/types/ValidationError.d.ts +2 -2
  140. package/dist/cjs/serialization/types/ValidationErrorLocItem.d.ts +2 -2
  141. package/dist/cjs/version.d.ts +1 -1
  142. package/dist/cjs/version.js +1 -1
  143. package/dist/esm/BaseClient.d.mts +8 -2
  144. package/dist/esm/BaseClient.mjs +13 -2
  145. package/dist/esm/Client.d.mts +10 -10
  146. package/dist/esm/Client.mjs +12 -10
  147. package/dist/esm/api/client/healthHealthGet.d.mts +5 -5
  148. package/dist/esm/api/client/healthHealthGet.mjs +2 -2
  149. package/dist/esm/api/client/metricsMetricsGet.d.mts +5 -5
  150. package/dist/esm/api/client/metricsMetricsGet.mjs +2 -2
  151. package/dist/esm/api/resources/apiKeys/client/Client.d.mts +13 -13
  152. package/dist/esm/api/resources/apiKeys/client/Client.mjs +28 -23
  153. package/dist/esm/api/resources/apiKeys/client/create.d.mts +8 -8
  154. package/dist/esm/api/resources/apiKeys/client/create.mjs +3 -3
  155. package/dist/esm/api/resources/apiKeys/client/getTokenMetadata.d.mts +8 -8
  156. package/dist/esm/api/resources/apiKeys/client/getTokenMetadata.mjs +3 -3
  157. package/dist/esm/api/resources/apiKeys/client/getTokensForOrganization.d.mts +8 -8
  158. package/dist/esm/api/resources/apiKeys/client/getTokensForOrganization.mjs +3 -3
  159. package/dist/esm/api/resources/apiKeys/client/revokeToken.d.mts +8 -8
  160. package/dist/esm/api/resources/apiKeys/client/revokeToken.mjs +3 -3
  161. package/dist/esm/api/resources/apiKeys/client/revokeTokenById.d.mts +8 -8
  162. package/dist/esm/api/resources/apiKeys/client/revokeTokenById.mjs +3 -3
  163. package/dist/esm/api/resources/auth/client/Client.d.mts +9 -9
  164. package/dist/esm/api/resources/auth/client/Client.mjs +18 -15
  165. package/dist/esm/api/resources/auth/client/getAutopilotToken.d.mts +8 -8
  166. package/dist/esm/api/resources/auth/client/getAutopilotToken.mjs +3 -3
  167. package/dist/esm/api/resources/auth/client/getJwt.d.mts +8 -8
  168. package/dist/esm/api/resources/auth/client/getJwt.mjs +3 -3
  169. package/dist/esm/api/resources/auth/client/getOrgForGithubOwner.d.mts +8 -8
  170. package/dist/esm/api/resources/auth/client/getOrgForGithubOwner.mjs +3 -3
  171. package/dist/esm/api/resources/organization/client/Client.d.mts +26 -26
  172. package/dist/esm/api/resources/organization/client/Client.mjs +61 -49
  173. package/dist/esm/api/resources/organization/client/addUser.d.mts +8 -8
  174. package/dist/esm/api/resources/organization/client/addUser.mjs +3 -3
  175. package/dist/esm/api/resources/organization/client/create.d.mts +8 -8
  176. package/dist/esm/api/resources/organization/client/create.mjs +3 -3
  177. package/dist/esm/api/resources/organization/client/delete.d.mts +8 -8
  178. package/dist/esm/api/resources/organization/client/delete.mjs +3 -3
  179. package/dist/esm/api/resources/organization/client/get.d.mts +8 -8
  180. package/dist/esm/api/resources/organization/client/get.mjs +3 -3
  181. package/dist/esm/api/resources/organization/client/getMyOrganizationFromScopedToken.d.mts +8 -8
  182. package/dist/esm/api/resources/organization/client/getMyOrganizationFromScopedToken.mjs +3 -3
  183. package/dist/esm/api/resources/organization/client/getOrgIdsByPostmanTeamId.d.mts +8 -8
  184. package/dist/esm/api/resources/organization/client/getOrgIdsByPostmanTeamId.mjs +3 -3
  185. package/dist/esm/api/resources/organization/client/getOrgIdsFromToken.d.mts +5 -5
  186. package/dist/esm/api/resources/organization/client/getOrgIdsFromToken.mjs +2 -2
  187. package/dist/esm/api/resources/organization/client/getPostmanTeamIdByOrgId.d.mts +8 -8
  188. package/dist/esm/api/resources/organization/client/getPostmanTeamIdByOrgId.mjs +3 -3
  189. package/dist/esm/api/resources/organization/client/inviteUser.d.mts +8 -8
  190. package/dist/esm/api/resources/organization/client/inviteUser.mjs +3 -3
  191. package/dist/esm/api/resources/organization/client/isMember.d.mts +8 -8
  192. package/dist/esm/api/resources/organization/client/isMember.mjs +3 -3
  193. package/dist/esm/api/resources/organization/client/removeUser.d.mts +8 -8
  194. package/dist/esm/api/resources/organization/client/removeUser.mjs +3 -3
  195. package/dist/esm/api/resources/organization/client/update.d.mts +8 -8
  196. package/dist/esm/api/resources/organization/client/update.mjs +3 -3
  197. package/dist/esm/api/resources/registry/client/Client.d.mts +9 -9
  198. package/dist/esm/api/resources/registry/client/Client.mjs +18 -15
  199. package/dist/esm/api/resources/registry/client/generateRegistryTokens.d.mts +8 -8
  200. package/dist/esm/api/resources/registry/client/generateRegistryTokens.mjs +3 -3
  201. package/dist/esm/api/resources/registry/client/hasRegistryPermission.d.mts +8 -8
  202. package/dist/esm/api/resources/registry/client/hasRegistryPermission.mjs +3 -3
  203. package/dist/esm/api/resources/registry/client/requests/CheckRegistryPermissionRequest.d.mts +2 -2
  204. package/dist/esm/api/resources/registry/client/revokeToken.d.mts +8 -8
  205. package/dist/esm/api/resources/registry/client/revokeToken.mjs +3 -3
  206. package/dist/esm/api/resources/user/client/Client.d.mts +8 -8
  207. package/dist/esm/api/resources/user/client/Client.mjs +16 -13
  208. package/dist/esm/api/resources/user/client/getMyOrganizations.d.mts +8 -8
  209. package/dist/esm/api/resources/user/client/getMyOrganizations.mjs +3 -3
  210. package/dist/esm/api/resources/user/client/getMyself.d.mts +5 -5
  211. package/dist/esm/api/resources/user/client/getMyself.mjs +2 -2
  212. package/dist/esm/api/resources/user/client/linkAccounts.d.mts +8 -8
  213. package/dist/esm/api/resources/user/client/linkAccounts.mjs +3 -3
  214. package/dist/esm/api/types/HttpValidationError.d.mts +2 -2
  215. package/dist/esm/api/types/Organization.d.mts +2 -2
  216. package/dist/esm/api/types/RegistryToken.d.mts +5 -5
  217. package/dist/esm/api/types/RegistryTokens.d.mts +4 -4
  218. package/dist/esm/api/types/TokenMetadata.d.mts +2 -2
  219. package/dist/esm/api/types/TokenStatus.d.mts +5 -5
  220. package/dist/esm/api/types/ValidationError.d.mts +2 -2
  221. package/dist/esm/auth/BearerAuthProvider.d.mts +20 -0
  222. package/dist/esm/auth/BearerAuthProvider.mjs +39 -0
  223. package/dist/esm/auth/index.d.mts +1 -0
  224. package/dist/esm/auth/index.mjs +1 -0
  225. package/dist/esm/core/auth/AuthProvider.d.mts +7 -0
  226. package/dist/esm/core/auth/AuthProvider.mjs +1 -0
  227. package/dist/esm/core/auth/AuthRequest.d.mts +9 -0
  228. package/dist/esm/core/auth/AuthRequest.mjs +1 -0
  229. package/dist/esm/core/auth/BasicAuth.d.mts +8 -0
  230. package/dist/esm/core/auth/BasicAuth.mjs +24 -0
  231. package/dist/esm/core/auth/BearerToken.d.mts +7 -0
  232. package/dist/esm/core/auth/BearerToken.mjs +13 -0
  233. package/dist/esm/core/auth/NoOpAuthProvider.d.mts +5 -0
  234. package/dist/esm/core/auth/NoOpAuthProvider.mjs +5 -0
  235. package/dist/esm/core/auth/index.d.mts +5 -0
  236. package/dist/esm/core/auth/index.mjs +3 -0
  237. package/dist/esm/core/base64.d.mts +2 -0
  238. package/dist/esm/core/base64.mjs +22 -0
  239. package/dist/esm/core/index.d.mts +2 -0
  240. package/dist/esm/core/index.mjs +2 -0
  241. package/dist/esm/index.d.mts +2 -2
  242. package/dist/esm/index.mjs +2 -2
  243. package/dist/esm/serialization/resources/apiKeys/client/getTokensForOrganization.d.mts +2 -2
  244. package/dist/esm/serialization/resources/apiKeys/client/requests/CreateApiKeyRequest.d.mts +2 -2
  245. package/dist/esm/serialization/resources/apiKeys/client/requests/GetTokenMetadataRequest.d.mts +2 -2
  246. package/dist/esm/serialization/resources/apiKeys/client/requests/RevokeApiKeyRequest.d.mts +2 -2
  247. package/dist/esm/serialization/resources/auth/client/requests/GetAutopilotTokenRequest.d.mts +2 -2
  248. package/dist/esm/serialization/resources/auth/client/requests/GetJwtRequest.d.mts +2 -2
  249. package/dist/esm/serialization/resources/organization/client/requests/AddUserToOrgRequest.d.mts +2 -2
  250. package/dist/esm/serialization/resources/organization/client/requests/CreateOrganizationRequest.d.mts +2 -2
  251. package/dist/esm/serialization/resources/organization/client/requests/InviteUserToOrgRequest.d.mts +2 -2
  252. package/dist/esm/serialization/resources/organization/client/requests/RemoveUserFromOrgRequest.d.mts +2 -2
  253. package/dist/esm/serialization/resources/organization/client/requests/UpdateOrganizationRequest.d.mts +2 -2
  254. package/dist/esm/serialization/resources/registry/client/requests/CheckRegistryPermissionRequest.d.mts +2 -2
  255. package/dist/esm/serialization/resources/registry/client/requests/GenerateRegistryTokensRequest.d.mts +2 -2
  256. package/dist/esm/serialization/resources/registry/client/requests/RevokeTokenRequest.d.mts +2 -2
  257. package/dist/esm/serialization/resources/user/client/requests/LinkAccountsRequest.d.mts +2 -2
  258. package/dist/esm/serialization/types/Active.d.mts +2 -2
  259. package/dist/esm/serialization/types/CreateOrganizationResponse.d.mts +2 -2
  260. package/dist/esm/serialization/types/CreateTokenResponse.d.mts +2 -2
  261. package/dist/esm/serialization/types/Expired.d.mts +2 -2
  262. package/dist/esm/serialization/types/HttpValidationError.d.mts +2 -2
  263. package/dist/esm/serialization/types/JwtResponse.d.mts +2 -2
  264. package/dist/esm/serialization/types/LightweightUser.d.mts +2 -2
  265. package/dist/esm/serialization/types/LinkAccountsResponse.d.mts +2 -2
  266. package/dist/esm/serialization/types/Maven.d.mts +2 -2
  267. package/dist/esm/serialization/types/MavenRegistryToken.d.mts +2 -2
  268. package/dist/esm/serialization/types/Npm.d.mts +2 -2
  269. package/dist/esm/serialization/types/NpmRegistryToken.d.mts +2 -2
  270. package/dist/esm/serialization/types/Organization.d.mts +2 -2
  271. package/dist/esm/serialization/types/OrganizationsPage.d.mts +2 -2
  272. package/dist/esm/serialization/types/Pypi.d.mts +2 -2
  273. package/dist/esm/serialization/types/PypiRegistryToken.d.mts +2 -2
  274. package/dist/esm/serialization/types/RegistryToken.d.mts +2 -2
  275. package/dist/esm/serialization/types/RegistryTokens.d.mts +2 -2
  276. package/dist/esm/serialization/types/Revoked.d.mts +2 -2
  277. package/dist/esm/serialization/types/TokenMetadata.d.mts +2 -2
  278. package/dist/esm/serialization/types/TokenStatus.d.mts +2 -2
  279. package/dist/esm/serialization/types/User.d.mts +2 -2
  280. package/dist/esm/serialization/types/ValidationError.d.mts +2 -2
  281. package/dist/esm/serialization/types/ValidationErrorLocItem.d.mts +2 -2
  282. package/dist/esm/version.d.mts +1 -1
  283. package/dist/esm/version.mjs +1 -1
  284. package/package.json +1 -1
  285. package/reference.md +54 -54
@@ -59,13 +59,13 @@ const BaseClient_js_1 = require("../../../../BaseClient.js");
59
59
  const headers_js_1 = require("../../../../core/headers.js");
60
60
  const core = __importStar(require("../../../../core/index.js"));
61
61
  const serializers = __importStar(require("../../../../serialization/index.js"));
62
- const FernApi = __importStar(require("../../../index.js"));
62
+ const FernVenusApi = __importStar(require("../../../index.js"));
63
63
  class OrganizationClient {
64
64
  constructor(options) {
65
- this._options = (0, BaseClient_js_1.normalizeClientOptions)(options);
65
+ this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
66
66
  }
67
67
  /**
68
- * @param {FernApi.CreateOrganizationRequest} request
68
+ * @param {FernVenusApi.CreateOrganizationRequest} request
69
69
  * @param {OrganizationClient.RequestOptions} requestOptions - Request-specific configuration.
70
70
  *
71
71
  * @example
@@ -79,7 +79,8 @@ class OrganizationClient {
79
79
  __create(request, requestOptions) {
80
80
  return __awaiter(this, void 0, void 0, function* () {
81
81
  var _a, _b, _c, _d, _e, _f, _g, _h;
82
- 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);
82
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
83
+ 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);
83
84
  const _response = yield core.fetcher({
84
85
  url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment)), "organizations/create"),
85
86
  method: "POST",
@@ -120,7 +121,7 @@ class OrganizationClient {
120
121
  return {
121
122
  data: {
122
123
  ok: false,
123
- error: FernApi.organization.create.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
124
+ error: FernVenusApi.organization.create.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
124
125
  unrecognizedObjectKeys: "passthrough",
125
126
  allowUnrecognizedUnionMembers: true,
126
127
  allowUnrecognizedEnumValues: true,
@@ -136,7 +137,7 @@ class OrganizationClient {
136
137
  return {
137
138
  data: {
138
139
  ok: false,
139
- error: FernApi.organization.create.Error._unknown(_response.error),
140
+ error: FernVenusApi.organization.create.Error._unknown(_response.error),
140
141
  rawResponse: _response.rawResponse,
141
142
  },
142
143
  rawResponse: _response.rawResponse,
@@ -144,7 +145,7 @@ class OrganizationClient {
144
145
  });
145
146
  }
146
147
  /**
147
- * @param {FernApi.UpdateOrganizationRequest} request
148
+ * @param {FernVenusApi.UpdateOrganizationRequest} request
148
149
  * @param {OrganizationClient.RequestOptions} requestOptions - Request-specific configuration.
149
150
  *
150
151
  * @example
@@ -159,7 +160,8 @@ class OrganizationClient {
159
160
  return __awaiter(this, void 0, void 0, function* () {
160
161
  var _a, _b, _c, _d, _e, _f, _g, _h;
161
162
  const { orgId } = request, _body = __rest(request, ["orgId"]);
162
- 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);
163
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
164
+ 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);
163
165
  const _response = yield core.fetcher({
164
166
  url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment)), `organizations/${core.url.encodePathParam(orgId)}/update`),
165
167
  method: "POST",
@@ -194,7 +196,7 @@ class OrganizationClient {
194
196
  return {
195
197
  data: {
196
198
  ok: false,
197
- error: FernApi.organization.update.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
199
+ error: FernVenusApi.organization.update.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
198
200
  unrecognizedObjectKeys: "passthrough",
199
201
  allowUnrecognizedUnionMembers: true,
200
202
  allowUnrecognizedEnumValues: true,
@@ -210,7 +212,7 @@ class OrganizationClient {
210
212
  return {
211
213
  data: {
212
214
  ok: false,
213
- error: FernApi.organization.update.Error._unknown(_response.error),
215
+ error: FernVenusApi.organization.update.Error._unknown(_response.error),
214
216
  rawResponse: _response.rawResponse,
215
217
  },
216
218
  rawResponse: _response.rawResponse,
@@ -218,7 +220,7 @@ class OrganizationClient {
218
220
  });
219
221
  }
220
222
  /**
221
- * @param {FernApi.GetOrganizationsOrgIdGetRequest} request
223
+ * @param {FernVenusApi.GetOrganizationsOrgIdGetRequest} request
222
224
  * @param {OrganizationClient.RequestOptions} requestOptions - Request-specific configuration.
223
225
  *
224
226
  * @example
@@ -236,7 +238,8 @@ class OrganizationClient {
236
238
  const _queryParams = {
237
239
  shouldIncludeFernUsers,
238
240
  };
239
- 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);
241
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
242
+ 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);
240
243
  const _response = yield core.fetcher({
241
244
  url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment)), `organizations/${core.url.encodePathParam(orgId)}`),
242
245
  method: "GET",
@@ -271,7 +274,7 @@ class OrganizationClient {
271
274
  return {
272
275
  data: {
273
276
  ok: false,
274
- error: FernApi.organization.get.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
277
+ error: FernVenusApi.organization.get.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
275
278
  unrecognizedObjectKeys: "passthrough",
276
279
  allowUnrecognizedUnionMembers: true,
277
280
  allowUnrecognizedEnumValues: true,
@@ -287,7 +290,7 @@ class OrganizationClient {
287
290
  return {
288
291
  data: {
289
292
  ok: false,
290
- error: FernApi.organization.get.Error._unknown(_response.error),
293
+ error: FernVenusApi.organization.get.Error._unknown(_response.error),
291
294
  rawResponse: _response.rawResponse,
292
295
  },
293
296
  rawResponse: _response.rawResponse,
@@ -297,7 +300,7 @@ class OrganizationClient {
297
300
  /**
298
301
  * Deletes an organization. Only users with admin role can delete organizations.
299
302
  *
300
- * @param {FernApi.DeleteOrganizationsOrgIdDeleteRequest} request
303
+ * @param {FernVenusApi.DeleteOrganizationsOrgIdDeleteRequest} request
301
304
  * @param {OrganizationClient.RequestOptions} requestOptions - Request-specific configuration.
302
305
  *
303
306
  * @example
@@ -312,7 +315,8 @@ class OrganizationClient {
312
315
  return __awaiter(this, void 0, void 0, function* () {
313
316
  var _a, _b, _c, _d, _e, _f, _g, _h;
314
317
  const { orgId } = request;
315
- 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);
318
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
319
+ 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);
316
320
  const _response = yield core.fetcher({
317
321
  url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment)), `organizations/${core.url.encodePathParam(orgId)}`),
318
322
  method: "DELETE",
@@ -341,7 +345,7 @@ class OrganizationClient {
341
345
  return {
342
346
  data: {
343
347
  ok: false,
344
- error: FernApi.organization.delete.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
348
+ error: FernVenusApi.organization.delete.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
345
349
  unrecognizedObjectKeys: "passthrough",
346
350
  allowUnrecognizedUnionMembers: true,
347
351
  allowUnrecognizedEnumValues: true,
@@ -357,7 +361,7 @@ class OrganizationClient {
357
361
  return {
358
362
  data: {
359
363
  ok: false,
360
- error: FernApi.organization.delete.Error._unknown(_response.error),
364
+ error: FernVenusApi.organization.delete.Error._unknown(_response.error),
361
365
  rawResponse: _response.rawResponse,
362
366
  },
363
367
  rawResponse: _response.rawResponse,
@@ -367,7 +371,7 @@ class OrganizationClient {
367
371
  /**
368
372
  * Look up an organization by its associated Postman team ID.
369
373
  *
370
- * @param {FernApi.GetOrgIdsByPostmanTeamIdOrganizationsPostmanTeamPostmanTeamIdGetRequest} request
374
+ * @param {FernVenusApi.GetOrgIdsByPostmanTeamIdOrganizationsPostmanTeamPostmanTeamIdGetRequest} request
371
375
  * @param {OrganizationClient.RequestOptions} requestOptions - Request-specific configuration.
372
376
  *
373
377
  * @example
@@ -382,7 +386,8 @@ class OrganizationClient {
382
386
  return __awaiter(this, void 0, void 0, function* () {
383
387
  var _a, _b, _c, _d, _e, _f, _g, _h;
384
388
  const { postmanTeamId } = request;
385
- 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);
389
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
390
+ 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);
386
391
  const _response = yield core.fetcher({
387
392
  url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment)), `organizations/postman-team/${core.url.encodePathParam(postmanTeamId)}`),
388
393
  method: "GET",
@@ -417,7 +422,7 @@ class OrganizationClient {
417
422
  return {
418
423
  data: {
419
424
  ok: false,
420
- error: FernApi.organization.getOrgIdsByPostmanTeamId.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
425
+ error: FernVenusApi.organization.getOrgIdsByPostmanTeamId.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
421
426
  unrecognizedObjectKeys: "passthrough",
422
427
  allowUnrecognizedUnionMembers: true,
423
428
  allowUnrecognizedEnumValues: true,
@@ -433,7 +438,7 @@ class OrganizationClient {
433
438
  return {
434
439
  data: {
435
440
  ok: false,
436
- error: FernApi.organization.getOrgIdsByPostmanTeamId.Error._unknown(_response.error),
441
+ error: FernVenusApi.organization.getOrgIdsByPostmanTeamId.Error._unknown(_response.error),
437
442
  rawResponse: _response.rawResponse,
438
443
  },
439
444
  rawResponse: _response.rawResponse,
@@ -443,7 +448,7 @@ class OrganizationClient {
443
448
  /**
444
449
  * Get the Postman team ID associated with an organization ID.
445
450
  *
446
- * @param {FernApi.GetPostmanTeamIdByOrgIdOrganizationsOrgIdPostmanTeamIdGetRequest} request
451
+ * @param {FernVenusApi.GetPostmanTeamIdByOrgIdOrganizationsOrgIdPostmanTeamIdGetRequest} request
447
452
  * @param {OrganizationClient.RequestOptions} requestOptions - Request-specific configuration.
448
453
  *
449
454
  * @example
@@ -458,7 +463,8 @@ class OrganizationClient {
458
463
  return __awaiter(this, void 0, void 0, function* () {
459
464
  var _a, _b, _c, _d, _e, _f, _g, _h;
460
465
  const { orgId } = request;
461
- 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);
466
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
467
+ 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);
462
468
  const _response = yield core.fetcher({
463
469
  url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment)), `organizations/${core.url.encodePathParam(orgId)}/postman-team-id`),
464
470
  method: "GET",
@@ -493,7 +499,7 @@ class OrganizationClient {
493
499
  return {
494
500
  data: {
495
501
  ok: false,
496
- error: FernApi.organization.getPostmanTeamIdByOrgId.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
502
+ error: FernVenusApi.organization.getPostmanTeamIdByOrgId.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
497
503
  unrecognizedObjectKeys: "passthrough",
498
504
  allowUnrecognizedUnionMembers: true,
499
505
  allowUnrecognizedEnumValues: true,
@@ -509,7 +515,7 @@ class OrganizationClient {
509
515
  return {
510
516
  data: {
511
517
  ok: false,
512
- error: FernApi.organization.getPostmanTeamIdByOrgId.Error._unknown(_response.error),
518
+ error: FernVenusApi.organization.getPostmanTeamIdByOrgId.Error._unknown(_response.error),
513
519
  rawResponse: _response.rawResponse,
514
520
  },
515
521
  rawResponse: _response.rawResponse,
@@ -517,7 +523,7 @@ class OrganizationClient {
517
523
  });
518
524
  }
519
525
  /**
520
- * @param {FernApi.IsMemberOrganizationsBelongsToOrganizationOrganizationIdPostRequest} request
526
+ * @param {FernVenusApi.IsMemberOrganizationsBelongsToOrganizationOrganizationIdPostRequest} request
521
527
  * @param {OrganizationClient.RequestOptions} requestOptions - Request-specific configuration.
522
528
  *
523
529
  * @example
@@ -532,7 +538,8 @@ class OrganizationClient {
532
538
  return __awaiter(this, void 0, void 0, function* () {
533
539
  var _a, _b, _c, _d, _e, _f, _g, _h;
534
540
  const { organizationId } = request;
535
- 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);
541
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
542
+ 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);
536
543
  const _response = yield core.fetcher({
537
544
  url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment)), `organizations/belongs-to-organization/${core.url.encodePathParam(organizationId)}`),
538
545
  method: "POST",
@@ -567,7 +574,7 @@ class OrganizationClient {
567
574
  return {
568
575
  data: {
569
576
  ok: false,
570
- error: FernApi.organization.isMember.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
577
+ error: FernVenusApi.organization.isMember.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
571
578
  unrecognizedObjectKeys: "passthrough",
572
579
  allowUnrecognizedUnionMembers: true,
573
580
  allowUnrecognizedEnumValues: true,
@@ -583,7 +590,7 @@ class OrganizationClient {
583
590
  return {
584
591
  data: {
585
592
  ok: false,
586
- error: FernApi.organization.isMember.Error._unknown(_response.error),
593
+ error: FernVenusApi.organization.isMember.Error._unknown(_response.error),
587
594
  rawResponse: _response.rawResponse,
588
595
  },
589
596
  rawResponse: _response.rawResponse,
@@ -593,7 +600,7 @@ class OrganizationClient {
593
600
  /**
594
601
  * Returns the org for a scoped token. The token is limited to one organization.
595
602
  *
596
- * @param {FernApi.GetMyOrganizationFromScopedTokenOrganizationsMyselfPostRequest} request
603
+ * @param {FernVenusApi.GetMyOrganizationFromScopedTokenOrganizationsMyselfPostRequest} request
597
604
  * @param {OrganizationClient.RequestOptions} requestOptions - Request-specific configuration.
598
605
  *
599
606
  * @example
@@ -609,7 +616,8 @@ class OrganizationClient {
609
616
  const _queryParams = {
610
617
  shouldIncludeFernUsers,
611
618
  };
612
- 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);
619
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
620
+ 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);
613
621
  const _response = yield core.fetcher({
614
622
  url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment)), "organizations/myself"),
615
623
  method: "POST",
@@ -644,7 +652,7 @@ class OrganizationClient {
644
652
  return {
645
653
  data: {
646
654
  ok: false,
647
- error: FernApi.organization.getMyOrganizationFromScopedToken.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
655
+ error: FernVenusApi.organization.getMyOrganizationFromScopedToken.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
648
656
  unrecognizedObjectKeys: "passthrough",
649
657
  allowUnrecognizedUnionMembers: true,
650
658
  allowUnrecognizedEnumValues: true,
@@ -660,7 +668,7 @@ class OrganizationClient {
660
668
  return {
661
669
  data: {
662
670
  ok: false,
663
- error: FernApi.organization.getMyOrganizationFromScopedToken.Error._unknown(_response.error),
671
+ error: FernVenusApi.organization.getMyOrganizationFromScopedToken.Error._unknown(_response.error),
664
672
  rawResponse: _response.rawResponse,
665
673
  },
666
674
  rawResponse: _response.rawResponse,
@@ -679,7 +687,8 @@ class OrganizationClient {
679
687
  __getOrgIdsFromToken(requestOptions) {
680
688
  return __awaiter(this, void 0, void 0, function* () {
681
689
  var _a, _b, _c, _d, _e, _f, _g, _h;
682
- 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);
690
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
691
+ 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);
683
692
  const _response = yield core.fetcher({
684
693
  url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment)), "organizations"),
685
694
  method: "POST",
@@ -711,7 +720,7 @@ class OrganizationClient {
711
720
  return {
712
721
  data: {
713
722
  ok: false,
714
- error: FernApi.organization.getOrgIdsFromToken.Error._unknown(_response.error),
723
+ error: FernVenusApi.organization.getOrgIdsFromToken.Error._unknown(_response.error),
715
724
  rawResponse: _response.rawResponse,
716
725
  },
717
726
  rawResponse: _response.rawResponse,
@@ -719,7 +728,7 @@ class OrganizationClient {
719
728
  });
720
729
  }
721
730
  /**
722
- * @param {FernApi.AddUserToOrgRequest} request
731
+ * @param {FernVenusApi.AddUserToOrgRequest} request
723
732
  * @param {OrganizationClient.RequestOptions} requestOptions - Request-specific configuration.
724
733
  *
725
734
  * @example
@@ -734,7 +743,8 @@ class OrganizationClient {
734
743
  __addUser(request, requestOptions) {
735
744
  return __awaiter(this, void 0, void 0, function* () {
736
745
  var _a, _b, _c, _d, _e, _f, _g, _h;
737
- 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);
746
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
747
+ 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);
738
748
  const _response = yield core.fetcher({
739
749
  url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment)), "organizations/add-user"),
740
750
  method: "POST",
@@ -769,7 +779,7 @@ class OrganizationClient {
769
779
  return {
770
780
  data: {
771
781
  ok: false,
772
- error: FernApi.organization.addUser.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
782
+ error: FernVenusApi.organization.addUser.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
773
783
  unrecognizedObjectKeys: "passthrough",
774
784
  allowUnrecognizedUnionMembers: true,
775
785
  allowUnrecognizedEnumValues: true,
@@ -785,7 +795,7 @@ class OrganizationClient {
785
795
  return {
786
796
  data: {
787
797
  ok: false,
788
- error: FernApi.organization.addUser.Error._unknown(_response.error),
798
+ error: FernVenusApi.organization.addUser.Error._unknown(_response.error),
789
799
  rawResponse: _response.rawResponse,
790
800
  },
791
801
  rawResponse: _response.rawResponse,
@@ -793,7 +803,7 @@ class OrganizationClient {
793
803
  });
794
804
  }
795
805
  /**
796
- * @param {FernApi.InviteUserToOrgRequest} request
806
+ * @param {FernVenusApi.InviteUserToOrgRequest} request
797
807
  * @param {OrganizationClient.RequestOptions} requestOptions - Request-specific configuration.
798
808
  *
799
809
  * @example
@@ -808,7 +818,8 @@ class OrganizationClient {
808
818
  __inviteUser(request, requestOptions) {
809
819
  return __awaiter(this, void 0, void 0, function* () {
810
820
  var _a, _b, _c, _d, _e, _f, _g, _h;
811
- 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);
821
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
822
+ 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);
812
823
  const _response = yield core.fetcher({
813
824
  url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment)), "organizations/invite"),
814
825
  method: "POST",
@@ -843,7 +854,7 @@ class OrganizationClient {
843
854
  return {
844
855
  data: {
845
856
  ok: false,
846
- error: FernApi.organization.inviteUser.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
857
+ error: FernVenusApi.organization.inviteUser.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
847
858
  unrecognizedObjectKeys: "passthrough",
848
859
  allowUnrecognizedUnionMembers: true,
849
860
  allowUnrecognizedEnumValues: true,
@@ -859,7 +870,7 @@ class OrganizationClient {
859
870
  return {
860
871
  data: {
861
872
  ok: false,
862
- error: FernApi.organization.inviteUser.Error._unknown(_response.error),
873
+ error: FernVenusApi.organization.inviteUser.Error._unknown(_response.error),
863
874
  rawResponse: _response.rawResponse,
864
875
  },
865
876
  rawResponse: _response.rawResponse,
@@ -867,7 +878,7 @@ class OrganizationClient {
867
878
  });
868
879
  }
869
880
  /**
870
- * @param {FernApi.RemoveUserFromOrgRequest} request
881
+ * @param {FernVenusApi.RemoveUserFromOrgRequest} request
871
882
  * @param {OrganizationClient.RequestOptions} requestOptions - Request-specific configuration.
872
883
  *
873
884
  * @example
@@ -882,7 +893,8 @@ class OrganizationClient {
882
893
  __removeUser(request, requestOptions) {
883
894
  return __awaiter(this, void 0, void 0, function* () {
884
895
  var _a, _b, _c, _d, _e, _f, _g, _h;
885
- 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);
896
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
897
+ 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);
886
898
  const _response = yield core.fetcher({
887
899
  url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment)), "organizations/user"),
888
900
  method: "DELETE",
@@ -917,7 +929,7 @@ class OrganizationClient {
917
929
  return {
918
930
  data: {
919
931
  ok: false,
920
- error: FernApi.organization.removeUser.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
932
+ error: FernVenusApi.organization.removeUser.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
921
933
  unrecognizedObjectKeys: "passthrough",
922
934
  allowUnrecognizedUnionMembers: true,
923
935
  allowUnrecognizedEnumValues: true,
@@ -933,7 +945,7 @@ class OrganizationClient {
933
945
  return {
934
946
  data: {
935
947
  ok: false,
936
- error: FernApi.organization.removeUser.Error._unknown(_response.error),
948
+ error: FernVenusApi.organization.removeUser.Error._unknown(_response.error),
937
949
  rawResponse: _response.rawResponse,
938
950
  },
939
951
  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.organization.addUser.Error.UnprocessableEntityError | FernApi.organization.addUser.Error._Unknown;
2
+ import * as FernVenusApi from "../../../index.js";
3
+ export type Error = FernVenusApi.organization.addUser.Error.UnprocessableEntityError | FernVenusApi.organization.addUser.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.addUser.Error._Visitor<_Result>) => _Result;
14
+ _visit: <_Result>(visitor: FernVenusApi.organization.addUser.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.addUser.Error.UnprocessableEntityError;
23
- readonly _unknown: (fetcherError: core.Fetcher.Error) => FernApi.organization.addUser.Error._Unknown;
24
- readonly _visit: <_Result>(value: FernApi.organization.addUser.Error, visitor: FernApi.organization.addUser.Error._Visitor<_Result>) => _Result;
22
+ readonly unprocessableEntityError: (value: FernVenusApi.HttpValidationError) => FernVenusApi.organization.addUser.Error.UnprocessableEntityError;
23
+ readonly _unknown: (fetcherError: core.Fetcher.Error) => FernVenusApi.organization.addUser.Error._Unknown;
24
+ readonly _visit: <_Result>(value: FernVenusApi.organization.addUser.Error, visitor: FernVenusApi.organization.addUser.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.organization.addUser.Error._visit(this, visitor);
45
+ return FernVenusApi.organization.addUser.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.organization.addUser.Error._visit(this, visitor);
54
+ return FernVenusApi.organization.addUser.Error._visit(this, visitor);
55
55
  },
56
56
  };
57
57
  },
@@ -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.organization.create.Error.UnprocessableEntityError | FernApi.organization.create.Error._Unknown;
2
+ import * as FernVenusApi from "../../../index.js";
3
+ export type Error = FernVenusApi.organization.create.Error.UnprocessableEntityError | FernVenusApi.organization.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.organization.create.Error._Visitor<_Result>) => _Result;
14
+ _visit: <_Result>(visitor: FernVenusApi.organization.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.organization.create.Error.UnprocessableEntityError;
23
- readonly _unknown: (fetcherError: core.Fetcher.Error) => FernApi.organization.create.Error._Unknown;
24
- readonly _visit: <_Result>(value: FernApi.organization.create.Error, visitor: FernApi.organization.create.Error._Visitor<_Result>) => _Result;
22
+ readonly unprocessableEntityError: (value: FernVenusApi.HttpValidationError) => FernVenusApi.organization.create.Error.UnprocessableEntityError;
23
+ readonly _unknown: (fetcherError: core.Fetcher.Error) => FernVenusApi.organization.create.Error._Unknown;
24
+ readonly _visit: <_Result>(value: FernVenusApi.organization.create.Error, visitor: FernVenusApi.organization.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.organization.create.Error._visit(this, visitor);
45
+ return FernVenusApi.organization.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.organization.create.Error._visit(this, visitor);
54
+ return FernVenusApi.organization.create.Error._visit(this, visitor);
55
55
  },
56
56
  };
57
57
  },
@@ -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.organization.delete.Error.UnprocessableEntityError | FernApi.organization.delete.Error._Unknown;
2
+ import * as FernVenusApi from "../../../index.js";
3
+ export type Error = FernVenusApi.organization.delete.Error.UnprocessableEntityError | FernVenusApi.organization.delete.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.delete.Error._Visitor<_Result>) => _Result;
14
+ _visit: <_Result>(visitor: FernVenusApi.organization.delete.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.delete.Error.UnprocessableEntityError;
23
- readonly _unknown: (fetcherError: core.Fetcher.Error) => FernApi.organization.delete.Error._Unknown;
24
- readonly _visit: <_Result>(value: FernApi.organization.delete.Error, visitor: FernApi.organization.delete.Error._Visitor<_Result>) => _Result;
22
+ readonly unprocessableEntityError: (value: FernVenusApi.HttpValidationError) => FernVenusApi.organization.delete.Error.UnprocessableEntityError;
23
+ readonly _unknown: (fetcherError: core.Fetcher.Error) => FernVenusApi.organization.delete.Error._Unknown;
24
+ readonly _visit: <_Result>(value: FernVenusApi.organization.delete.Error, visitor: FernVenusApi.organization.delete.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.organization.delete.Error._visit(this, visitor);
45
+ return FernVenusApi.organization.delete.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.organization.delete.Error._visit(this, visitor);
54
+ return FernVenusApi.organization.delete.Error._visit(this, visitor);
55
55
  },
56
56
  };
57
57
  },