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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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 +9 -9
  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 +11 -11
  11. package/dist/cjs/api/resources/apiKeys/client/Client.js +16 -16
  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 +7 -7
  23. package/dist/cjs/api/resources/auth/client/Client.js +10 -10
  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 +42 -39
  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 +7 -7
  57. package/dist/cjs/api/resources/registry/client/Client.js +10 -10
  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 +6 -6
  66. package/dist/cjs/api/resources/user/client/Client.js +8 -8
  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 +8 -8
  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 +11 -11
  152. package/dist/esm/api/resources/apiKeys/client/Client.mjs +16 -16
  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 +7 -7
  164. package/dist/esm/api/resources/auth/client/Client.mjs +10 -10
  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 +43 -40
  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 +7 -7
  198. package/dist/esm/api/resources/registry/client/Client.mjs +10 -10
  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 +6 -6
  207. package/dist/esm/api/resources/user/client/Client.mjs +8 -8
  208. package/dist/esm/api/resources/user/client/getMyOrganizations.d.mts +8 -8
  209. package/dist/esm/api/resources/user/client/getMyOrganizations.mjs +3 -3
  210. package/dist/esm/api/resources/user/client/getMyself.d.mts +5 -5
  211. package/dist/esm/api/resources/user/client/getMyself.mjs +2 -2
  212. package/dist/esm/api/resources/user/client/linkAccounts.d.mts +8 -8
  213. package/dist/esm/api/resources/user/client/linkAccounts.mjs +3 -3
  214. package/dist/esm/api/types/HttpValidationError.d.mts +2 -2
  215. package/dist/esm/api/types/Organization.d.mts +2 -2
  216. package/dist/esm/api/types/RegistryToken.d.mts +5 -5
  217. package/dist/esm/api/types/RegistryTokens.d.mts +4 -4
  218. package/dist/esm/api/types/TokenMetadata.d.mts +2 -2
  219. package/dist/esm/api/types/TokenStatus.d.mts +5 -5
  220. package/dist/esm/api/types/ValidationError.d.mts +2 -2
  221. package/dist/esm/auth/BearerAuthProvider.d.mts +20 -0
  222. package/dist/esm/auth/BearerAuthProvider.mjs +39 -0
  223. package/dist/esm/auth/index.d.mts +1 -0
  224. package/dist/esm/auth/index.mjs +1 -0
  225. package/dist/esm/core/auth/AuthProvider.d.mts +7 -0
  226. package/dist/esm/core/auth/AuthProvider.mjs +1 -0
  227. package/dist/esm/core/auth/AuthRequest.d.mts +9 -0
  228. package/dist/esm/core/auth/AuthRequest.mjs +1 -0
  229. package/dist/esm/core/auth/BasicAuth.d.mts +8 -0
  230. package/dist/esm/core/auth/BasicAuth.mjs +24 -0
  231. package/dist/esm/core/auth/BearerToken.d.mts +7 -0
  232. package/dist/esm/core/auth/BearerToken.mjs +13 -0
  233. package/dist/esm/core/auth/NoOpAuthProvider.d.mts +5 -0
  234. package/dist/esm/core/auth/NoOpAuthProvider.mjs +5 -0
  235. package/dist/esm/core/auth/index.d.mts +5 -0
  236. package/dist/esm/core/auth/index.mjs +3 -0
  237. package/dist/esm/core/base64.d.mts +2 -0
  238. package/dist/esm/core/base64.mjs +22 -0
  239. package/dist/esm/core/index.d.mts +2 -0
  240. package/dist/esm/core/index.mjs +2 -0
  241. package/dist/esm/index.d.mts +2 -2
  242. package/dist/esm/index.mjs +2 -2
  243. package/dist/esm/serialization/resources/apiKeys/client/getTokensForOrganization.d.mts +2 -2
  244. package/dist/esm/serialization/resources/apiKeys/client/requests/CreateApiKeyRequest.d.mts +2 -2
  245. package/dist/esm/serialization/resources/apiKeys/client/requests/GetTokenMetadataRequest.d.mts +2 -2
  246. package/dist/esm/serialization/resources/apiKeys/client/requests/RevokeApiKeyRequest.d.mts +2 -2
  247. package/dist/esm/serialization/resources/auth/client/requests/GetAutopilotTokenRequest.d.mts +2 -2
  248. package/dist/esm/serialization/resources/auth/client/requests/GetJwtRequest.d.mts +2 -2
  249. package/dist/esm/serialization/resources/organization/client/requests/AddUserToOrgRequest.d.mts +2 -2
  250. package/dist/esm/serialization/resources/organization/client/requests/CreateOrganizationRequest.d.mts +2 -2
  251. package/dist/esm/serialization/resources/organization/client/requests/InviteUserToOrgRequest.d.mts +2 -2
  252. package/dist/esm/serialization/resources/organization/client/requests/RemoveUserFromOrgRequest.d.mts +2 -2
  253. package/dist/esm/serialization/resources/organization/client/requests/UpdateOrganizationRequest.d.mts +2 -2
  254. package/dist/esm/serialization/resources/registry/client/requests/CheckRegistryPermissionRequest.d.mts +2 -2
  255. package/dist/esm/serialization/resources/registry/client/requests/GenerateRegistryTokensRequest.d.mts +2 -2
  256. package/dist/esm/serialization/resources/registry/client/requests/RevokeTokenRequest.d.mts +2 -2
  257. package/dist/esm/serialization/resources/user/client/requests/LinkAccountsRequest.d.mts +2 -2
  258. package/dist/esm/serialization/types/Active.d.mts +2 -2
  259. package/dist/esm/serialization/types/CreateOrganizationResponse.d.mts +2 -2
  260. package/dist/esm/serialization/types/CreateTokenResponse.d.mts +2 -2
  261. package/dist/esm/serialization/types/Expired.d.mts +2 -2
  262. package/dist/esm/serialization/types/HttpValidationError.d.mts +2 -2
  263. package/dist/esm/serialization/types/JwtResponse.d.mts +2 -2
  264. package/dist/esm/serialization/types/LightweightUser.d.mts +2 -2
  265. package/dist/esm/serialization/types/LinkAccountsResponse.d.mts +2 -2
  266. package/dist/esm/serialization/types/Maven.d.mts +2 -2
  267. package/dist/esm/serialization/types/MavenRegistryToken.d.mts +2 -2
  268. package/dist/esm/serialization/types/Npm.d.mts +2 -2
  269. package/dist/esm/serialization/types/NpmRegistryToken.d.mts +2 -2
  270. package/dist/esm/serialization/types/Organization.d.mts +2 -2
  271. package/dist/esm/serialization/types/OrganizationsPage.d.mts +2 -2
  272. package/dist/esm/serialization/types/Pypi.d.mts +2 -2
  273. package/dist/esm/serialization/types/PypiRegistryToken.d.mts +2 -2
  274. package/dist/esm/serialization/types/RegistryToken.d.mts +2 -2
  275. package/dist/esm/serialization/types/RegistryTokens.d.mts +2 -2
  276. package/dist/esm/serialization/types/Revoked.d.mts +2 -2
  277. package/dist/esm/serialization/types/TokenMetadata.d.mts +2 -2
  278. package/dist/esm/serialization/types/TokenStatus.d.mts +2 -2
  279. package/dist/esm/serialization/types/User.d.mts +2 -2
  280. package/dist/esm/serialization/types/ValidationError.d.mts +2 -2
  281. package/dist/esm/serialization/types/ValidationErrorLocItem.d.mts +2 -2
  282. package/dist/esm/version.d.mts +1 -1
  283. package/dist/esm/version.mjs +1 -1
  284. package/package.json +1 -1
  285. package/reference.md +54 -54
@@ -1,17 +1,17 @@
1
1
  import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.js";
2
- import { type NormalizedClientOptions } from "../../../../BaseClient.js";
2
+ import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.js";
3
3
  import * as core from "../../../../core/index.js";
4
- import * as FernApi from "../../../index.js";
4
+ import * as FernVenusApi from "../../../index.js";
5
5
  export declare namespace OrganizationClient {
6
6
  type Options = BaseClientOptions;
7
7
  interface RequestOptions extends BaseRequestOptions {
8
8
  }
9
9
  }
10
10
  export declare class OrganizationClient {
11
- protected readonly _options: NormalizedClientOptions<OrganizationClient.Options>;
11
+ protected readonly _options: NormalizedClientOptionsWithAuth<OrganizationClient.Options>;
12
12
  constructor(options: OrganizationClient.Options);
13
13
  /**
14
- * @param {FernApi.CreateOrganizationRequest} request
14
+ * @param {FernVenusApi.CreateOrganizationRequest} request
15
15
  * @param {OrganizationClient.RequestOptions} requestOptions - Request-specific configuration.
16
16
  *
17
17
  * @example
@@ -19,10 +19,10 @@ export declare class OrganizationClient {
19
19
  * organizationId: "organizationId"
20
20
  * })
21
21
  */
22
- create(request: FernApi.CreateOrganizationRequest, requestOptions?: OrganizationClient.RequestOptions): core.HttpResponsePromise<core.APIResponse<FernApi.CreateOrganizationResponse, FernApi.organization.create.Error>>;
22
+ create(request: FernVenusApi.CreateOrganizationRequest, requestOptions?: OrganizationClient.RequestOptions): core.HttpResponsePromise<core.APIResponse<FernVenusApi.CreateOrganizationResponse, FernVenusApi.organization.create.Error>>;
23
23
  private __create;
24
24
  /**
25
- * @param {FernApi.UpdateOrganizationRequest} request
25
+ * @param {FernVenusApi.UpdateOrganizationRequest} request
26
26
  * @param {OrganizationClient.RequestOptions} requestOptions - Request-specific configuration.
27
27
  *
28
28
  * @example
@@ -30,10 +30,10 @@ export declare class OrganizationClient {
30
30
  * orgId: "org_id"
31
31
  * })
32
32
  */
33
- update(request: FernApi.UpdateOrganizationRequest, requestOptions?: OrganizationClient.RequestOptions): core.HttpResponsePromise<core.APIResponse<void, FernApi.organization.update.Error>>;
33
+ update(request: FernVenusApi.UpdateOrganizationRequest, requestOptions?: OrganizationClient.RequestOptions): core.HttpResponsePromise<core.APIResponse<void, FernVenusApi.organization.update.Error>>;
34
34
  private __update;
35
35
  /**
36
- * @param {FernApi.GetOrganizationsOrgIdGetRequest} request
36
+ * @param {FernVenusApi.GetOrganizationsOrgIdGetRequest} request
37
37
  * @param {OrganizationClient.RequestOptions} requestOptions - Request-specific configuration.
38
38
  *
39
39
  * @example
@@ -41,12 +41,12 @@ export declare class OrganizationClient {
41
41
  * orgId: "org_id"
42
42
  * })
43
43
  */
44
- get(request: FernApi.GetOrganizationsOrgIdGetRequest, requestOptions?: OrganizationClient.RequestOptions): core.HttpResponsePromise<core.APIResponse<FernApi.Organization, FernApi.organization.get.Error>>;
44
+ get(request: FernVenusApi.GetOrganizationsOrgIdGetRequest, requestOptions?: OrganizationClient.RequestOptions): core.HttpResponsePromise<core.APIResponse<FernVenusApi.Organization, FernVenusApi.organization.get.Error>>;
45
45
  private __get;
46
46
  /**
47
47
  * Deletes an organization. Only users with admin role can delete organizations.
48
48
  *
49
- * @param {FernApi.DeleteOrganizationsOrgIdDeleteRequest} request
49
+ * @param {FernVenusApi.DeleteOrganizationsOrgIdDeleteRequest} request
50
50
  * @param {OrganizationClient.RequestOptions} requestOptions - Request-specific configuration.
51
51
  *
52
52
  * @example
@@ -54,12 +54,12 @@ export declare class OrganizationClient {
54
54
  * orgId: "org_id"
55
55
  * })
56
56
  */
57
- delete(request: FernApi.DeleteOrganizationsOrgIdDeleteRequest, requestOptions?: OrganizationClient.RequestOptions): core.HttpResponsePromise<core.APIResponse<void, FernApi.organization.delete.Error>>;
57
+ delete(request: FernVenusApi.DeleteOrganizationsOrgIdDeleteRequest, requestOptions?: OrganizationClient.RequestOptions): core.HttpResponsePromise<core.APIResponse<void, FernVenusApi.organization.delete.Error>>;
58
58
  private __delete;
59
59
  /**
60
60
  * Look up an organization by its associated Postman team ID.
61
61
  *
62
- * @param {FernApi.GetOrgIdsByPostmanTeamIdOrganizationsPostmanTeamPostmanTeamIdGetRequest} request
62
+ * @param {FernVenusApi.GetOrgIdsByPostmanTeamIdOrganizationsPostmanTeamPostmanTeamIdGetRequest} request
63
63
  * @param {OrganizationClient.RequestOptions} requestOptions - Request-specific configuration.
64
64
  *
65
65
  * @example
@@ -67,12 +67,12 @@ export declare class OrganizationClient {
67
67
  * postmanTeamId: "postman_team_id"
68
68
  * })
69
69
  */
70
- getOrgIdsByPostmanTeamId(request: FernApi.GetOrgIdsByPostmanTeamIdOrganizationsPostmanTeamPostmanTeamIdGetRequest, requestOptions?: OrganizationClient.RequestOptions): core.HttpResponsePromise<core.APIResponse<FernApi.Organization, FernApi.organization.getOrgIdsByPostmanTeamId.Error>>;
70
+ getOrgIdsByPostmanTeamId(request: FernVenusApi.GetOrgIdsByPostmanTeamIdOrganizationsPostmanTeamPostmanTeamIdGetRequest, requestOptions?: OrganizationClient.RequestOptions): core.HttpResponsePromise<core.APIResponse<FernVenusApi.Organization, FernVenusApi.organization.getOrgIdsByPostmanTeamId.Error>>;
71
71
  private __getOrgIdsByPostmanTeamId;
72
72
  /**
73
73
  * Get the Postman team ID associated with an organization ID.
74
74
  *
75
- * @param {FernApi.GetPostmanTeamIdByOrgIdOrganizationsOrgIdPostmanTeamIdGetRequest} request
75
+ * @param {FernVenusApi.GetPostmanTeamIdByOrgIdOrganizationsOrgIdPostmanTeamIdGetRequest} request
76
76
  * @param {OrganizationClient.RequestOptions} requestOptions - Request-specific configuration.
77
77
  *
78
78
  * @example
@@ -80,10 +80,10 @@ export declare class OrganizationClient {
80
80
  * orgId: "org_id"
81
81
  * })
82
82
  */
83
- getPostmanTeamIdByOrgId(request: FernApi.GetPostmanTeamIdByOrgIdOrganizationsOrgIdPostmanTeamIdGetRequest, requestOptions?: OrganizationClient.RequestOptions): core.HttpResponsePromise<core.APIResponse<string, FernApi.organization.getPostmanTeamIdByOrgId.Error>>;
83
+ getPostmanTeamIdByOrgId(request: FernVenusApi.GetPostmanTeamIdByOrgIdOrganizationsOrgIdPostmanTeamIdGetRequest, requestOptions?: OrganizationClient.RequestOptions): core.HttpResponsePromise<core.APIResponse<string, FernVenusApi.organization.getPostmanTeamIdByOrgId.Error>>;
84
84
  private __getPostmanTeamIdByOrgId;
85
85
  /**
86
- * @param {FernApi.IsMemberOrganizationsBelongsToOrganizationOrganizationIdPostRequest} request
86
+ * @param {FernVenusApi.IsMemberOrganizationsBelongsToOrganizationOrganizationIdPostRequest} request
87
87
  * @param {OrganizationClient.RequestOptions} requestOptions - Request-specific configuration.
88
88
  *
89
89
  * @example
@@ -91,18 +91,18 @@ export declare class OrganizationClient {
91
91
  * organizationId: "organization_id"
92
92
  * })
93
93
  */
94
- isMember(request: FernApi.IsMemberOrganizationsBelongsToOrganizationOrganizationIdPostRequest, requestOptions?: OrganizationClient.RequestOptions): core.HttpResponsePromise<core.APIResponse<boolean, FernApi.organization.isMember.Error>>;
94
+ isMember(request: FernVenusApi.IsMemberOrganizationsBelongsToOrganizationOrganizationIdPostRequest, requestOptions?: OrganizationClient.RequestOptions): core.HttpResponsePromise<core.APIResponse<boolean, FernVenusApi.organization.isMember.Error>>;
95
95
  private __isMember;
96
96
  /**
97
97
  * Returns the org for a scoped token. The token is limited to one organization.
98
98
  *
99
- * @param {FernApi.GetMyOrganizationFromScopedTokenOrganizationsMyselfPostRequest} request
99
+ * @param {FernVenusApi.GetMyOrganizationFromScopedTokenOrganizationsMyselfPostRequest} request
100
100
  * @param {OrganizationClient.RequestOptions} requestOptions - Request-specific configuration.
101
101
  *
102
102
  * @example
103
103
  * await client.organization.getMyOrganizationFromScopedToken()
104
104
  */
105
- getMyOrganizationFromScopedToken(request?: FernApi.GetMyOrganizationFromScopedTokenOrganizationsMyselfPostRequest, requestOptions?: OrganizationClient.RequestOptions): core.HttpResponsePromise<core.APIResponse<FernApi.Organization, FernApi.organization.getMyOrganizationFromScopedToken.Error>>;
105
+ getMyOrganizationFromScopedToken(request?: FernVenusApi.GetMyOrganizationFromScopedTokenOrganizationsMyselfPostRequest, requestOptions?: OrganizationClient.RequestOptions): core.HttpResponsePromise<core.APIResponse<FernVenusApi.Organization, FernVenusApi.organization.getMyOrganizationFromScopedToken.Error>>;
106
106
  private __getMyOrganizationFromScopedToken;
107
107
  /**
108
108
  * @param {OrganizationClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -110,10 +110,10 @@ export declare class OrganizationClient {
110
110
  * @example
111
111
  * await client.organization.getOrgIdsFromToken()
112
112
  */
113
- getOrgIdsFromToken(requestOptions?: OrganizationClient.RequestOptions): core.HttpResponsePromise<core.APIResponse<string[], FernApi.organization.getOrgIdsFromToken.Error>>;
113
+ getOrgIdsFromToken(requestOptions?: OrganizationClient.RequestOptions): core.HttpResponsePromise<core.APIResponse<string[], FernVenusApi.organization.getOrgIdsFromToken.Error>>;
114
114
  private __getOrgIdsFromToken;
115
115
  /**
116
- * @param {FernApi.AddUserToOrgRequest} request
116
+ * @param {FernVenusApi.AddUserToOrgRequest} request
117
117
  * @param {OrganizationClient.RequestOptions} requestOptions - Request-specific configuration.
118
118
  *
119
119
  * @example
@@ -122,10 +122,10 @@ export declare class OrganizationClient {
122
122
  * orgId: "orgId"
123
123
  * })
124
124
  */
125
- addUser(request: FernApi.AddUserToOrgRequest, requestOptions?: OrganizationClient.RequestOptions): core.HttpResponsePromise<core.APIResponse<void, FernApi.organization.addUser.Error>>;
125
+ addUser(request: FernVenusApi.AddUserToOrgRequest, requestOptions?: OrganizationClient.RequestOptions): core.HttpResponsePromise<core.APIResponse<void, FernVenusApi.organization.addUser.Error>>;
126
126
  private __addUser;
127
127
  /**
128
- * @param {FernApi.InviteUserToOrgRequest} request
128
+ * @param {FernVenusApi.InviteUserToOrgRequest} request
129
129
  * @param {OrganizationClient.RequestOptions} requestOptions - Request-specific configuration.
130
130
  *
131
131
  * @example
@@ -134,10 +134,10 @@ export declare class OrganizationClient {
134
134
  * auth0OrgId: "auth0OrgId"
135
135
  * })
136
136
  */
137
- inviteUser(request: FernApi.InviteUserToOrgRequest, requestOptions?: OrganizationClient.RequestOptions): core.HttpResponsePromise<core.APIResponse<void, FernApi.organization.inviteUser.Error>>;
137
+ inviteUser(request: FernVenusApi.InviteUserToOrgRequest, requestOptions?: OrganizationClient.RequestOptions): core.HttpResponsePromise<core.APIResponse<void, FernVenusApi.organization.inviteUser.Error>>;
138
138
  private __inviteUser;
139
139
  /**
140
- * @param {FernApi.RemoveUserFromOrgRequest} request
140
+ * @param {FernVenusApi.RemoveUserFromOrgRequest} request
141
141
  * @param {OrganizationClient.RequestOptions} requestOptions - Request-specific configuration.
142
142
  *
143
143
  * @example
@@ -146,6 +146,6 @@ export declare class OrganizationClient {
146
146
  * auth0OrgId: "auth0OrgId"
147
147
  * })
148
148
  */
149
- removeUser(request: FernApi.RemoveUserFromOrgRequest, requestOptions?: OrganizationClient.RequestOptions): core.HttpResponsePromise<core.APIResponse<void, FernApi.organization.removeUser.Error>>;
149
+ removeUser(request: FernVenusApi.RemoveUserFromOrgRequest, requestOptions?: OrganizationClient.RequestOptions): core.HttpResponsePromise<core.APIResponse<void, FernVenusApi.organization.removeUser.Error>>;
150
150
  private __removeUser;
151
151
  }
@@ -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
@@ -120,7 +120,7 @@ class OrganizationClient {
120
120
  return {
121
121
  data: {
122
122
  ok: false,
123
- error: FernApi.organization.create.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
123
+ error: FernVenusApi.organization.create.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
124
124
  unrecognizedObjectKeys: "passthrough",
125
125
  allowUnrecognizedUnionMembers: true,
126
126
  allowUnrecognizedEnumValues: true,
@@ -136,7 +136,7 @@ class OrganizationClient {
136
136
  return {
137
137
  data: {
138
138
  ok: false,
139
- error: FernApi.organization.create.Error._unknown(_response.error),
139
+ error: FernVenusApi.organization.create.Error._unknown(_response.error),
140
140
  rawResponse: _response.rawResponse,
141
141
  },
142
142
  rawResponse: _response.rawResponse,
@@ -144,7 +144,7 @@ class OrganizationClient {
144
144
  });
145
145
  }
146
146
  /**
147
- * @param {FernApi.UpdateOrganizationRequest} request
147
+ * @param {FernVenusApi.UpdateOrganizationRequest} request
148
148
  * @param {OrganizationClient.RequestOptions} requestOptions - Request-specific configuration.
149
149
  *
150
150
  * @example
@@ -194,7 +194,7 @@ class OrganizationClient {
194
194
  return {
195
195
  data: {
196
196
  ok: false,
197
- error: FernApi.organization.update.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
197
+ error: FernVenusApi.organization.update.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
198
198
  unrecognizedObjectKeys: "passthrough",
199
199
  allowUnrecognizedUnionMembers: true,
200
200
  allowUnrecognizedEnumValues: true,
@@ -210,7 +210,7 @@ class OrganizationClient {
210
210
  return {
211
211
  data: {
212
212
  ok: false,
213
- error: FernApi.organization.update.Error._unknown(_response.error),
213
+ error: FernVenusApi.organization.update.Error._unknown(_response.error),
214
214
  rawResponse: _response.rawResponse,
215
215
  },
216
216
  rawResponse: _response.rawResponse,
@@ -218,7 +218,7 @@ class OrganizationClient {
218
218
  });
219
219
  }
220
220
  /**
221
- * @param {FernApi.GetOrganizationsOrgIdGetRequest} request
221
+ * @param {FernVenusApi.GetOrganizationsOrgIdGetRequest} request
222
222
  * @param {OrganizationClient.RequestOptions} requestOptions - Request-specific configuration.
223
223
  *
224
224
  * @example
@@ -236,7 +236,8 @@ class OrganizationClient {
236
236
  const _queryParams = {
237
237
  shouldIncludeFernUsers,
238
238
  };
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);
239
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
240
+ 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
241
  const _response = yield core.fetcher({
241
242
  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
243
  method: "GET",
@@ -271,7 +272,7 @@ class OrganizationClient {
271
272
  return {
272
273
  data: {
273
274
  ok: false,
274
- error: FernApi.organization.get.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
275
+ error: FernVenusApi.organization.get.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
275
276
  unrecognizedObjectKeys: "passthrough",
276
277
  allowUnrecognizedUnionMembers: true,
277
278
  allowUnrecognizedEnumValues: true,
@@ -287,7 +288,7 @@ class OrganizationClient {
287
288
  return {
288
289
  data: {
289
290
  ok: false,
290
- error: FernApi.organization.get.Error._unknown(_response.error),
291
+ error: FernVenusApi.organization.get.Error._unknown(_response.error),
291
292
  rawResponse: _response.rawResponse,
292
293
  },
293
294
  rawResponse: _response.rawResponse,
@@ -297,7 +298,7 @@ class OrganizationClient {
297
298
  /**
298
299
  * Deletes an organization. Only users with admin role can delete organizations.
299
300
  *
300
- * @param {FernApi.DeleteOrganizationsOrgIdDeleteRequest} request
301
+ * @param {FernVenusApi.DeleteOrganizationsOrgIdDeleteRequest} request
301
302
  * @param {OrganizationClient.RequestOptions} requestOptions - Request-specific configuration.
302
303
  *
303
304
  * @example
@@ -341,7 +342,7 @@ class OrganizationClient {
341
342
  return {
342
343
  data: {
343
344
  ok: false,
344
- error: FernApi.organization.delete.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
345
+ error: FernVenusApi.organization.delete.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
345
346
  unrecognizedObjectKeys: "passthrough",
346
347
  allowUnrecognizedUnionMembers: true,
347
348
  allowUnrecognizedEnumValues: true,
@@ -357,7 +358,7 @@ class OrganizationClient {
357
358
  return {
358
359
  data: {
359
360
  ok: false,
360
- error: FernApi.organization.delete.Error._unknown(_response.error),
361
+ error: FernVenusApi.organization.delete.Error._unknown(_response.error),
361
362
  rawResponse: _response.rawResponse,
362
363
  },
363
364
  rawResponse: _response.rawResponse,
@@ -367,7 +368,7 @@ class OrganizationClient {
367
368
  /**
368
369
  * Look up an organization by its associated Postman team ID.
369
370
  *
370
- * @param {FernApi.GetOrgIdsByPostmanTeamIdOrganizationsPostmanTeamPostmanTeamIdGetRequest} request
371
+ * @param {FernVenusApi.GetOrgIdsByPostmanTeamIdOrganizationsPostmanTeamPostmanTeamIdGetRequest} request
371
372
  * @param {OrganizationClient.RequestOptions} requestOptions - Request-specific configuration.
372
373
  *
373
374
  * @example
@@ -382,7 +383,8 @@ class OrganizationClient {
382
383
  return __awaiter(this, void 0, void 0, function* () {
383
384
  var _a, _b, _c, _d, _e, _f, _g, _h;
384
385
  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);
386
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
387
+ 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
388
  const _response = yield core.fetcher({
387
389
  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
390
  method: "GET",
@@ -417,7 +419,7 @@ class OrganizationClient {
417
419
  return {
418
420
  data: {
419
421
  ok: false,
420
- error: FernApi.organization.getOrgIdsByPostmanTeamId.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
422
+ error: FernVenusApi.organization.getOrgIdsByPostmanTeamId.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
421
423
  unrecognizedObjectKeys: "passthrough",
422
424
  allowUnrecognizedUnionMembers: true,
423
425
  allowUnrecognizedEnumValues: true,
@@ -433,7 +435,7 @@ class OrganizationClient {
433
435
  return {
434
436
  data: {
435
437
  ok: false,
436
- error: FernApi.organization.getOrgIdsByPostmanTeamId.Error._unknown(_response.error),
438
+ error: FernVenusApi.organization.getOrgIdsByPostmanTeamId.Error._unknown(_response.error),
437
439
  rawResponse: _response.rawResponse,
438
440
  },
439
441
  rawResponse: _response.rawResponse,
@@ -443,7 +445,7 @@ class OrganizationClient {
443
445
  /**
444
446
  * Get the Postman team ID associated with an organization ID.
445
447
  *
446
- * @param {FernApi.GetPostmanTeamIdByOrgIdOrganizationsOrgIdPostmanTeamIdGetRequest} request
448
+ * @param {FernVenusApi.GetPostmanTeamIdByOrgIdOrganizationsOrgIdPostmanTeamIdGetRequest} request
447
449
  * @param {OrganizationClient.RequestOptions} requestOptions - Request-specific configuration.
448
450
  *
449
451
  * @example
@@ -458,7 +460,8 @@ class OrganizationClient {
458
460
  return __awaiter(this, void 0, void 0, function* () {
459
461
  var _a, _b, _c, _d, _e, _f, _g, _h;
460
462
  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);
463
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
464
+ 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
465
  const _response = yield core.fetcher({
463
466
  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
467
  method: "GET",
@@ -493,7 +496,7 @@ class OrganizationClient {
493
496
  return {
494
497
  data: {
495
498
  ok: false,
496
- error: FernApi.organization.getPostmanTeamIdByOrgId.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
499
+ error: FernVenusApi.organization.getPostmanTeamIdByOrgId.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
497
500
  unrecognizedObjectKeys: "passthrough",
498
501
  allowUnrecognizedUnionMembers: true,
499
502
  allowUnrecognizedEnumValues: true,
@@ -509,7 +512,7 @@ class OrganizationClient {
509
512
  return {
510
513
  data: {
511
514
  ok: false,
512
- error: FernApi.organization.getPostmanTeamIdByOrgId.Error._unknown(_response.error),
515
+ error: FernVenusApi.organization.getPostmanTeamIdByOrgId.Error._unknown(_response.error),
513
516
  rawResponse: _response.rawResponse,
514
517
  },
515
518
  rawResponse: _response.rawResponse,
@@ -517,7 +520,7 @@ class OrganizationClient {
517
520
  });
518
521
  }
519
522
  /**
520
- * @param {FernApi.IsMemberOrganizationsBelongsToOrganizationOrganizationIdPostRequest} request
523
+ * @param {FernVenusApi.IsMemberOrganizationsBelongsToOrganizationOrganizationIdPostRequest} request
521
524
  * @param {OrganizationClient.RequestOptions} requestOptions - Request-specific configuration.
522
525
  *
523
526
  * @example
@@ -567,7 +570,7 @@ class OrganizationClient {
567
570
  return {
568
571
  data: {
569
572
  ok: false,
570
- error: FernApi.organization.isMember.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
573
+ error: FernVenusApi.organization.isMember.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
571
574
  unrecognizedObjectKeys: "passthrough",
572
575
  allowUnrecognizedUnionMembers: true,
573
576
  allowUnrecognizedEnumValues: true,
@@ -583,7 +586,7 @@ class OrganizationClient {
583
586
  return {
584
587
  data: {
585
588
  ok: false,
586
- error: FernApi.organization.isMember.Error._unknown(_response.error),
589
+ error: FernVenusApi.organization.isMember.Error._unknown(_response.error),
587
590
  rawResponse: _response.rawResponse,
588
591
  },
589
592
  rawResponse: _response.rawResponse,
@@ -593,7 +596,7 @@ class OrganizationClient {
593
596
  /**
594
597
  * Returns the org for a scoped token. The token is limited to one organization.
595
598
  *
596
- * @param {FernApi.GetMyOrganizationFromScopedTokenOrganizationsMyselfPostRequest} request
599
+ * @param {FernVenusApi.GetMyOrganizationFromScopedTokenOrganizationsMyselfPostRequest} request
597
600
  * @param {OrganizationClient.RequestOptions} requestOptions - Request-specific configuration.
598
601
  *
599
602
  * @example
@@ -644,7 +647,7 @@ class OrganizationClient {
644
647
  return {
645
648
  data: {
646
649
  ok: false,
647
- error: FernApi.organization.getMyOrganizationFromScopedToken.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
650
+ error: FernVenusApi.organization.getMyOrganizationFromScopedToken.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
648
651
  unrecognizedObjectKeys: "passthrough",
649
652
  allowUnrecognizedUnionMembers: true,
650
653
  allowUnrecognizedEnumValues: true,
@@ -660,7 +663,7 @@ class OrganizationClient {
660
663
  return {
661
664
  data: {
662
665
  ok: false,
663
- error: FernApi.organization.getMyOrganizationFromScopedToken.Error._unknown(_response.error),
666
+ error: FernVenusApi.organization.getMyOrganizationFromScopedToken.Error._unknown(_response.error),
664
667
  rawResponse: _response.rawResponse,
665
668
  },
666
669
  rawResponse: _response.rawResponse,
@@ -711,7 +714,7 @@ class OrganizationClient {
711
714
  return {
712
715
  data: {
713
716
  ok: false,
714
- error: FernApi.organization.getOrgIdsFromToken.Error._unknown(_response.error),
717
+ error: FernVenusApi.organization.getOrgIdsFromToken.Error._unknown(_response.error),
715
718
  rawResponse: _response.rawResponse,
716
719
  },
717
720
  rawResponse: _response.rawResponse,
@@ -719,7 +722,7 @@ class OrganizationClient {
719
722
  });
720
723
  }
721
724
  /**
722
- * @param {FernApi.AddUserToOrgRequest} request
725
+ * @param {FernVenusApi.AddUserToOrgRequest} request
723
726
  * @param {OrganizationClient.RequestOptions} requestOptions - Request-specific configuration.
724
727
  *
725
728
  * @example
@@ -769,7 +772,7 @@ class OrganizationClient {
769
772
  return {
770
773
  data: {
771
774
  ok: false,
772
- error: FernApi.organization.addUser.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
775
+ error: FernVenusApi.organization.addUser.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
773
776
  unrecognizedObjectKeys: "passthrough",
774
777
  allowUnrecognizedUnionMembers: true,
775
778
  allowUnrecognizedEnumValues: true,
@@ -785,7 +788,7 @@ class OrganizationClient {
785
788
  return {
786
789
  data: {
787
790
  ok: false,
788
- error: FernApi.organization.addUser.Error._unknown(_response.error),
791
+ error: FernVenusApi.organization.addUser.Error._unknown(_response.error),
789
792
  rawResponse: _response.rawResponse,
790
793
  },
791
794
  rawResponse: _response.rawResponse,
@@ -793,7 +796,7 @@ class OrganizationClient {
793
796
  });
794
797
  }
795
798
  /**
796
- * @param {FernApi.InviteUserToOrgRequest} request
799
+ * @param {FernVenusApi.InviteUserToOrgRequest} request
797
800
  * @param {OrganizationClient.RequestOptions} requestOptions - Request-specific configuration.
798
801
  *
799
802
  * @example
@@ -843,7 +846,7 @@ class OrganizationClient {
843
846
  return {
844
847
  data: {
845
848
  ok: false,
846
- error: FernApi.organization.inviteUser.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
849
+ error: FernVenusApi.organization.inviteUser.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
847
850
  unrecognizedObjectKeys: "passthrough",
848
851
  allowUnrecognizedUnionMembers: true,
849
852
  allowUnrecognizedEnumValues: true,
@@ -859,7 +862,7 @@ class OrganizationClient {
859
862
  return {
860
863
  data: {
861
864
  ok: false,
862
- error: FernApi.organization.inviteUser.Error._unknown(_response.error),
865
+ error: FernVenusApi.organization.inviteUser.Error._unknown(_response.error),
863
866
  rawResponse: _response.rawResponse,
864
867
  },
865
868
  rawResponse: _response.rawResponse,
@@ -867,7 +870,7 @@ class OrganizationClient {
867
870
  });
868
871
  }
869
872
  /**
870
- * @param {FernApi.RemoveUserFromOrgRequest} request
873
+ * @param {FernVenusApi.RemoveUserFromOrgRequest} request
871
874
  * @param {OrganizationClient.RequestOptions} requestOptions - Request-specific configuration.
872
875
  *
873
876
  * @example
@@ -917,7 +920,7 @@ class OrganizationClient {
917
920
  return {
918
921
  data: {
919
922
  ok: false,
920
- error: FernApi.organization.removeUser.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
923
+ error: FernVenusApi.organization.removeUser.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
921
924
  unrecognizedObjectKeys: "passthrough",
922
925
  allowUnrecognizedUnionMembers: true,
923
926
  allowUnrecognizedEnumValues: true,
@@ -933,7 +936,7 @@ class OrganizationClient {
933
936
  return {
934
937
  data: {
935
938
  ok: false,
936
- error: FernApi.organization.removeUser.Error._unknown(_response.error),
939
+ error: FernVenusApi.organization.removeUser.Error._unknown(_response.error),
937
940
  rawResponse: _response.rawResponse,
938
941
  },
939
942
  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
  },