@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
@@ -19,17 +19,17 @@ var __rest = (this && this.__rest) || function (s, e) {
19
19
  }
20
20
  return t;
21
21
  };
22
- import { normalizeClientOptions } from "../../../../BaseClient.mjs";
22
+ import { normalizeClientOptionsWithAuth } from "../../../../BaseClient.mjs";
23
23
  import { mergeHeaders } from "../../../../core/headers.mjs";
24
24
  import * as core from "../../../../core/index.mjs";
25
25
  import * as serializers from "../../../../serialization/index.mjs";
26
- import * as FernApi from "../../../index.mjs";
26
+ import * as FernVenusApi from "../../../index.mjs";
27
27
  export class OrganizationClient {
28
28
  constructor(options) {
29
- this._options = normalizeClientOptions(options);
29
+ this._options = normalizeClientOptionsWithAuth(options);
30
30
  }
31
31
  /**
32
- * @param {FernApi.CreateOrganizationRequest} request
32
+ * @param {FernVenusApi.CreateOrganizationRequest} request
33
33
  * @param {OrganizationClient.RequestOptions} requestOptions - Request-specific configuration.
34
34
  *
35
35
  * @example
@@ -43,7 +43,8 @@ export class OrganizationClient {
43
43
  __create(request, requestOptions) {
44
44
  return __awaiter(this, void 0, void 0, function* () {
45
45
  var _a, _b, _c, _d, _e, _f, _g, _h;
46
- const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
46
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
47
+ 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);
47
48
  const _response = yield core.fetcher({
48
49
  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"),
49
50
  method: "POST",
@@ -84,7 +85,7 @@ export class OrganizationClient {
84
85
  return {
85
86
  data: {
86
87
  ok: false,
87
- error: FernApi.organization.create.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
88
+ error: FernVenusApi.organization.create.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
88
89
  unrecognizedObjectKeys: "passthrough",
89
90
  allowUnrecognizedUnionMembers: true,
90
91
  allowUnrecognizedEnumValues: true,
@@ -100,7 +101,7 @@ export class OrganizationClient {
100
101
  return {
101
102
  data: {
102
103
  ok: false,
103
- error: FernApi.organization.create.Error._unknown(_response.error),
104
+ error: FernVenusApi.organization.create.Error._unknown(_response.error),
104
105
  rawResponse: _response.rawResponse,
105
106
  },
106
107
  rawResponse: _response.rawResponse,
@@ -108,7 +109,7 @@ export class OrganizationClient {
108
109
  });
109
110
  }
110
111
  /**
111
- * @param {FernApi.UpdateOrganizationRequest} request
112
+ * @param {FernVenusApi.UpdateOrganizationRequest} request
112
113
  * @param {OrganizationClient.RequestOptions} requestOptions - Request-specific configuration.
113
114
  *
114
115
  * @example
@@ -123,7 +124,8 @@ export class OrganizationClient {
123
124
  return __awaiter(this, void 0, void 0, function* () {
124
125
  var _a, _b, _c, _d, _e, _f, _g, _h;
125
126
  const { orgId } = request, _body = __rest(request, ["orgId"]);
126
- const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
127
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
128
+ 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);
127
129
  const _response = yield core.fetcher({
128
130
  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`),
129
131
  method: "POST",
@@ -158,7 +160,7 @@ export class OrganizationClient {
158
160
  return {
159
161
  data: {
160
162
  ok: false,
161
- error: FernApi.organization.update.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
163
+ error: FernVenusApi.organization.update.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
162
164
  unrecognizedObjectKeys: "passthrough",
163
165
  allowUnrecognizedUnionMembers: true,
164
166
  allowUnrecognizedEnumValues: true,
@@ -174,7 +176,7 @@ export class OrganizationClient {
174
176
  return {
175
177
  data: {
176
178
  ok: false,
177
- error: FernApi.organization.update.Error._unknown(_response.error),
179
+ error: FernVenusApi.organization.update.Error._unknown(_response.error),
178
180
  rawResponse: _response.rawResponse,
179
181
  },
180
182
  rawResponse: _response.rawResponse,
@@ -182,7 +184,7 @@ export class OrganizationClient {
182
184
  });
183
185
  }
184
186
  /**
185
- * @param {FernApi.GetOrganizationsOrgIdGetRequest} request
187
+ * @param {FernVenusApi.GetOrganizationsOrgIdGetRequest} request
186
188
  * @param {OrganizationClient.RequestOptions} requestOptions - Request-specific configuration.
187
189
  *
188
190
  * @example
@@ -200,7 +202,8 @@ export class OrganizationClient {
200
202
  const _queryParams = {
201
203
  shouldIncludeFernUsers,
202
204
  };
203
- const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
205
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
206
+ 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);
204
207
  const _response = yield core.fetcher({
205
208
  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)}`),
206
209
  method: "GET",
@@ -235,7 +238,7 @@ export class OrganizationClient {
235
238
  return {
236
239
  data: {
237
240
  ok: false,
238
- error: FernApi.organization.get.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
241
+ error: FernVenusApi.organization.get.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
239
242
  unrecognizedObjectKeys: "passthrough",
240
243
  allowUnrecognizedUnionMembers: true,
241
244
  allowUnrecognizedEnumValues: true,
@@ -251,7 +254,7 @@ export class OrganizationClient {
251
254
  return {
252
255
  data: {
253
256
  ok: false,
254
- error: FernApi.organization.get.Error._unknown(_response.error),
257
+ error: FernVenusApi.organization.get.Error._unknown(_response.error),
255
258
  rawResponse: _response.rawResponse,
256
259
  },
257
260
  rawResponse: _response.rawResponse,
@@ -261,7 +264,7 @@ export class OrganizationClient {
261
264
  /**
262
265
  * Deletes an organization. Only users with admin role can delete organizations.
263
266
  *
264
- * @param {FernApi.DeleteOrganizationsOrgIdDeleteRequest} request
267
+ * @param {FernVenusApi.DeleteOrganizationsOrgIdDeleteRequest} request
265
268
  * @param {OrganizationClient.RequestOptions} requestOptions - Request-specific configuration.
266
269
  *
267
270
  * @example
@@ -276,7 +279,8 @@ export class OrganizationClient {
276
279
  return __awaiter(this, void 0, void 0, function* () {
277
280
  var _a, _b, _c, _d, _e, _f, _g, _h;
278
281
  const { orgId } = request;
279
- const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
282
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
283
+ 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);
280
284
  const _response = yield core.fetcher({
281
285
  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)}`),
282
286
  method: "DELETE",
@@ -305,7 +309,7 @@ export class OrganizationClient {
305
309
  return {
306
310
  data: {
307
311
  ok: false,
308
- error: FernApi.organization.delete.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
312
+ error: FernVenusApi.organization.delete.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
309
313
  unrecognizedObjectKeys: "passthrough",
310
314
  allowUnrecognizedUnionMembers: true,
311
315
  allowUnrecognizedEnumValues: true,
@@ -321,7 +325,7 @@ export class OrganizationClient {
321
325
  return {
322
326
  data: {
323
327
  ok: false,
324
- error: FernApi.organization.delete.Error._unknown(_response.error),
328
+ error: FernVenusApi.organization.delete.Error._unknown(_response.error),
325
329
  rawResponse: _response.rawResponse,
326
330
  },
327
331
  rawResponse: _response.rawResponse,
@@ -331,7 +335,7 @@ export class OrganizationClient {
331
335
  /**
332
336
  * Look up an organization by its associated Postman team ID.
333
337
  *
334
- * @param {FernApi.GetOrgIdsByPostmanTeamIdOrganizationsPostmanTeamPostmanTeamIdGetRequest} request
338
+ * @param {FernVenusApi.GetOrgIdsByPostmanTeamIdOrganizationsPostmanTeamPostmanTeamIdGetRequest} request
335
339
  * @param {OrganizationClient.RequestOptions} requestOptions - Request-specific configuration.
336
340
  *
337
341
  * @example
@@ -346,7 +350,8 @@ export class OrganizationClient {
346
350
  return __awaiter(this, void 0, void 0, function* () {
347
351
  var _a, _b, _c, _d, _e, _f, _g, _h;
348
352
  const { postmanTeamId } = request;
349
- const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
353
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
354
+ 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);
350
355
  const _response = yield core.fetcher({
351
356
  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)}`),
352
357
  method: "GET",
@@ -381,7 +386,7 @@ export class OrganizationClient {
381
386
  return {
382
387
  data: {
383
388
  ok: false,
384
- error: FernApi.organization.getOrgIdsByPostmanTeamId.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
389
+ error: FernVenusApi.organization.getOrgIdsByPostmanTeamId.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
385
390
  unrecognizedObjectKeys: "passthrough",
386
391
  allowUnrecognizedUnionMembers: true,
387
392
  allowUnrecognizedEnumValues: true,
@@ -397,7 +402,7 @@ export class OrganizationClient {
397
402
  return {
398
403
  data: {
399
404
  ok: false,
400
- error: FernApi.organization.getOrgIdsByPostmanTeamId.Error._unknown(_response.error),
405
+ error: FernVenusApi.organization.getOrgIdsByPostmanTeamId.Error._unknown(_response.error),
401
406
  rawResponse: _response.rawResponse,
402
407
  },
403
408
  rawResponse: _response.rawResponse,
@@ -407,7 +412,7 @@ export class OrganizationClient {
407
412
  /**
408
413
  * Get the Postman team ID associated with an organization ID.
409
414
  *
410
- * @param {FernApi.GetPostmanTeamIdByOrgIdOrganizationsOrgIdPostmanTeamIdGetRequest} request
415
+ * @param {FernVenusApi.GetPostmanTeamIdByOrgIdOrganizationsOrgIdPostmanTeamIdGetRequest} request
411
416
  * @param {OrganizationClient.RequestOptions} requestOptions - Request-specific configuration.
412
417
  *
413
418
  * @example
@@ -422,7 +427,8 @@ export class OrganizationClient {
422
427
  return __awaiter(this, void 0, void 0, function* () {
423
428
  var _a, _b, _c, _d, _e, _f, _g, _h;
424
429
  const { orgId } = request;
425
- const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
430
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
431
+ 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);
426
432
  const _response = yield core.fetcher({
427
433
  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`),
428
434
  method: "GET",
@@ -457,7 +463,7 @@ export class OrganizationClient {
457
463
  return {
458
464
  data: {
459
465
  ok: false,
460
- error: FernApi.organization.getPostmanTeamIdByOrgId.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
466
+ error: FernVenusApi.organization.getPostmanTeamIdByOrgId.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
461
467
  unrecognizedObjectKeys: "passthrough",
462
468
  allowUnrecognizedUnionMembers: true,
463
469
  allowUnrecognizedEnumValues: true,
@@ -473,7 +479,7 @@ export class OrganizationClient {
473
479
  return {
474
480
  data: {
475
481
  ok: false,
476
- error: FernApi.organization.getPostmanTeamIdByOrgId.Error._unknown(_response.error),
482
+ error: FernVenusApi.organization.getPostmanTeamIdByOrgId.Error._unknown(_response.error),
477
483
  rawResponse: _response.rawResponse,
478
484
  },
479
485
  rawResponse: _response.rawResponse,
@@ -481,7 +487,7 @@ export class OrganizationClient {
481
487
  });
482
488
  }
483
489
  /**
484
- * @param {FernApi.IsMemberOrganizationsBelongsToOrganizationOrganizationIdPostRequest} request
490
+ * @param {FernVenusApi.IsMemberOrganizationsBelongsToOrganizationOrganizationIdPostRequest} request
485
491
  * @param {OrganizationClient.RequestOptions} requestOptions - Request-specific configuration.
486
492
  *
487
493
  * @example
@@ -496,7 +502,8 @@ export class OrganizationClient {
496
502
  return __awaiter(this, void 0, void 0, function* () {
497
503
  var _a, _b, _c, _d, _e, _f, _g, _h;
498
504
  const { organizationId } = request;
499
- const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
505
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
506
+ 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);
500
507
  const _response = yield core.fetcher({
501
508
  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)}`),
502
509
  method: "POST",
@@ -531,7 +538,7 @@ export class OrganizationClient {
531
538
  return {
532
539
  data: {
533
540
  ok: false,
534
- error: FernApi.organization.isMember.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
541
+ error: FernVenusApi.organization.isMember.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
535
542
  unrecognizedObjectKeys: "passthrough",
536
543
  allowUnrecognizedUnionMembers: true,
537
544
  allowUnrecognizedEnumValues: true,
@@ -547,7 +554,7 @@ export class OrganizationClient {
547
554
  return {
548
555
  data: {
549
556
  ok: false,
550
- error: FernApi.organization.isMember.Error._unknown(_response.error),
557
+ error: FernVenusApi.organization.isMember.Error._unknown(_response.error),
551
558
  rawResponse: _response.rawResponse,
552
559
  },
553
560
  rawResponse: _response.rawResponse,
@@ -557,7 +564,7 @@ export class OrganizationClient {
557
564
  /**
558
565
  * Returns the org for a scoped token. The token is limited to one organization.
559
566
  *
560
- * @param {FernApi.GetMyOrganizationFromScopedTokenOrganizationsMyselfPostRequest} request
567
+ * @param {FernVenusApi.GetMyOrganizationFromScopedTokenOrganizationsMyselfPostRequest} request
561
568
  * @param {OrganizationClient.RequestOptions} requestOptions - Request-specific configuration.
562
569
  *
563
570
  * @example
@@ -573,7 +580,8 @@ export class OrganizationClient {
573
580
  const _queryParams = {
574
581
  shouldIncludeFernUsers,
575
582
  };
576
- const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
583
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
584
+ 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);
577
585
  const _response = yield core.fetcher({
578
586
  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"),
579
587
  method: "POST",
@@ -608,7 +616,7 @@ export class OrganizationClient {
608
616
  return {
609
617
  data: {
610
618
  ok: false,
611
- error: FernApi.organization.getMyOrganizationFromScopedToken.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
619
+ error: FernVenusApi.organization.getMyOrganizationFromScopedToken.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
612
620
  unrecognizedObjectKeys: "passthrough",
613
621
  allowUnrecognizedUnionMembers: true,
614
622
  allowUnrecognizedEnumValues: true,
@@ -624,7 +632,7 @@ export class OrganizationClient {
624
632
  return {
625
633
  data: {
626
634
  ok: false,
627
- error: FernApi.organization.getMyOrganizationFromScopedToken.Error._unknown(_response.error),
635
+ error: FernVenusApi.organization.getMyOrganizationFromScopedToken.Error._unknown(_response.error),
628
636
  rawResponse: _response.rawResponse,
629
637
  },
630
638
  rawResponse: _response.rawResponse,
@@ -643,7 +651,8 @@ export class OrganizationClient {
643
651
  __getOrgIdsFromToken(requestOptions) {
644
652
  return __awaiter(this, void 0, void 0, function* () {
645
653
  var _a, _b, _c, _d, _e, _f, _g, _h;
646
- const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
654
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
655
+ 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);
647
656
  const _response = yield core.fetcher({
648
657
  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"),
649
658
  method: "POST",
@@ -675,7 +684,7 @@ export class OrganizationClient {
675
684
  return {
676
685
  data: {
677
686
  ok: false,
678
- error: FernApi.organization.getOrgIdsFromToken.Error._unknown(_response.error),
687
+ error: FernVenusApi.organization.getOrgIdsFromToken.Error._unknown(_response.error),
679
688
  rawResponse: _response.rawResponse,
680
689
  },
681
690
  rawResponse: _response.rawResponse,
@@ -683,7 +692,7 @@ export class OrganizationClient {
683
692
  });
684
693
  }
685
694
  /**
686
- * @param {FernApi.AddUserToOrgRequest} request
695
+ * @param {FernVenusApi.AddUserToOrgRequest} request
687
696
  * @param {OrganizationClient.RequestOptions} requestOptions - Request-specific configuration.
688
697
  *
689
698
  * @example
@@ -698,7 +707,8 @@ export class OrganizationClient {
698
707
  __addUser(request, requestOptions) {
699
708
  return __awaiter(this, void 0, void 0, function* () {
700
709
  var _a, _b, _c, _d, _e, _f, _g, _h;
701
- const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
710
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
711
+ 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);
702
712
  const _response = yield core.fetcher({
703
713
  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"),
704
714
  method: "POST",
@@ -733,7 +743,7 @@ export class OrganizationClient {
733
743
  return {
734
744
  data: {
735
745
  ok: false,
736
- error: FernApi.organization.addUser.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
746
+ error: FernVenusApi.organization.addUser.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
737
747
  unrecognizedObjectKeys: "passthrough",
738
748
  allowUnrecognizedUnionMembers: true,
739
749
  allowUnrecognizedEnumValues: true,
@@ -749,7 +759,7 @@ export class OrganizationClient {
749
759
  return {
750
760
  data: {
751
761
  ok: false,
752
- error: FernApi.organization.addUser.Error._unknown(_response.error),
762
+ error: FernVenusApi.organization.addUser.Error._unknown(_response.error),
753
763
  rawResponse: _response.rawResponse,
754
764
  },
755
765
  rawResponse: _response.rawResponse,
@@ -757,7 +767,7 @@ export class OrganizationClient {
757
767
  });
758
768
  }
759
769
  /**
760
- * @param {FernApi.InviteUserToOrgRequest} request
770
+ * @param {FernVenusApi.InviteUserToOrgRequest} request
761
771
  * @param {OrganizationClient.RequestOptions} requestOptions - Request-specific configuration.
762
772
  *
763
773
  * @example
@@ -772,7 +782,8 @@ export class OrganizationClient {
772
782
  __inviteUser(request, requestOptions) {
773
783
  return __awaiter(this, void 0, void 0, function* () {
774
784
  var _a, _b, _c, _d, _e, _f, _g, _h;
775
- const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
785
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
786
+ 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);
776
787
  const _response = yield core.fetcher({
777
788
  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"),
778
789
  method: "POST",
@@ -807,7 +818,7 @@ export class OrganizationClient {
807
818
  return {
808
819
  data: {
809
820
  ok: false,
810
- error: FernApi.organization.inviteUser.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
821
+ error: FernVenusApi.organization.inviteUser.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
811
822
  unrecognizedObjectKeys: "passthrough",
812
823
  allowUnrecognizedUnionMembers: true,
813
824
  allowUnrecognizedEnumValues: true,
@@ -823,7 +834,7 @@ export class OrganizationClient {
823
834
  return {
824
835
  data: {
825
836
  ok: false,
826
- error: FernApi.organization.inviteUser.Error._unknown(_response.error),
837
+ error: FernVenusApi.organization.inviteUser.Error._unknown(_response.error),
827
838
  rawResponse: _response.rawResponse,
828
839
  },
829
840
  rawResponse: _response.rawResponse,
@@ -831,7 +842,7 @@ export class OrganizationClient {
831
842
  });
832
843
  }
833
844
  /**
834
- * @param {FernApi.RemoveUserFromOrgRequest} request
845
+ * @param {FernVenusApi.RemoveUserFromOrgRequest} request
835
846
  * @param {OrganizationClient.RequestOptions} requestOptions - Request-specific configuration.
836
847
  *
837
848
  * @example
@@ -846,7 +857,8 @@ export class OrganizationClient {
846
857
  __removeUser(request, requestOptions) {
847
858
  return __awaiter(this, void 0, void 0, function* () {
848
859
  var _a, _b, _c, _d, _e, _f, _g, _h;
849
- const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
860
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
861
+ 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);
850
862
  const _response = yield core.fetcher({
851
863
  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"),
852
864
  method: "DELETE",
@@ -881,7 +893,7 @@ export class OrganizationClient {
881
893
  return {
882
894
  data: {
883
895
  ok: false,
884
- error: FernApi.organization.removeUser.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
896
+ error: FernVenusApi.organization.removeUser.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
885
897
  unrecognizedObjectKeys: "passthrough",
886
898
  allowUnrecognizedUnionMembers: true,
887
899
  allowUnrecognizedEnumValues: true,
@@ -897,7 +909,7 @@ export class OrganizationClient {
897
909
  return {
898
910
  data: {
899
911
  ok: false,
900
- error: FernApi.organization.removeUser.Error._unknown(_response.error),
912
+ error: FernVenusApi.organization.removeUser.Error._unknown(_response.error),
901
913
  rawResponse: _response.rawResponse,
902
914
  },
903
915
  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.organization.addUser.Error.UnprocessableEntityError | FernApi.organization.addUser.Error._Unknown;
2
+ import * as FernVenusApi from "../../../index.mjs";
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
  };
@@ -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.addUser.Error._visit(this, visitor);
9
+ return FernVenusApi.organization.addUser.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.addUser.Error._visit(this, visitor);
18
+ return FernVenusApi.organization.addUser.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.create.Error.UnprocessableEntityError | FernApi.organization.create.Error._Unknown;
2
+ import * as FernVenusApi from "../../../index.mjs";
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
  };
@@ -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.create.Error._visit(this, visitor);
9
+ return FernVenusApi.organization.create.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.create.Error._visit(this, visitor);
18
+ return FernVenusApi.organization.create.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.delete.Error.UnprocessableEntityError | FernApi.organization.delete.Error._Unknown;
2
+ import * as FernVenusApi from "../../../index.mjs";
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
  };
@@ -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.delete.Error._visit(this, visitor);
9
+ return FernVenusApi.organization.delete.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.delete.Error._visit(this, visitor);
18
+ return FernVenusApi.organization.delete.Error._visit(this, visitor);
19
19
  },
20
20
  };
21
21
  },