@fern-api/venus-api-sdk 0.10.0 → 0.10.1-2-g8c943d4

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 (577) hide show
  1. package/Client.d.ts +14 -6
  2. package/Client.js +8 -9
  3. package/api/resources/commons/types/OrganizationId.d.ts +1 -1
  4. package/api/resources/commons/types/UserId.d.ts +1 -1
  5. package/api/resources/organization/client/Client.d.ts +116 -13
  6. package/api/resources/organization/client/Client.js +513 -236
  7. package/api/resources/organization/client/addUser.d.ts +1 -1
  8. package/api/resources/organization/client/addUser.js +27 -4
  9. package/api/resources/organization/client/create.d.ts +1 -1
  10. package/api/resources/organization/client/create.js +27 -4
  11. package/api/resources/organization/client/get.d.ts +1 -1
  12. package/api/resources/organization/client/get.js +26 -3
  13. package/api/resources/organization/client/getMyOrganizationFromScopedToken.d.ts +1 -1
  14. package/api/resources/organization/client/getMyOrganizationFromScopedToken.js +26 -3
  15. package/api/resources/organization/client/getOrgIdsFromToken.d.ts +1 -1
  16. package/api/resources/organization/client/getOrgIdsFromToken.js +25 -2
  17. package/api/resources/organization/client/inviteUser.d.ts +1 -1
  18. package/api/resources/organization/client/inviteUser.js +27 -4
  19. package/api/resources/organization/client/isMember.d.ts +1 -1
  20. package/api/resources/organization/client/isMember.js +25 -2
  21. package/api/resources/organization/client/removeUser.d.ts +1 -1
  22. package/api/resources/organization/client/removeUser.js +27 -4
  23. package/api/resources/organization/client/requests/AddUserToOrgRequest.d.ts +8 -1
  24. package/api/resources/organization/client/requests/CreateOrganizationRequest.d.ts +15 -1
  25. package/api/resources/organization/client/requests/GetMyOrganizationFromScopedToken.d.ts +6 -0
  26. package/api/resources/organization/client/requests/GetOrganizationRequest.d.ts +6 -0
  27. package/api/resources/organization/client/requests/InviteUserToOrgRequest.d.ts +8 -1
  28. package/api/resources/organization/client/requests/RemoveUserFromOrgRequest.d.ts +8 -1
  29. package/api/resources/organization/client/requests/UpdateOrganizationRequest.d.ts +31 -0
  30. package/api/resources/organization/client/requests/index.d.ts +7 -7
  31. package/api/resources/organization/client/update.d.ts +1 -1
  32. package/api/resources/organization/client/update.js +26 -3
  33. package/api/resources/organization/types/Organization.d.ts +1 -1
  34. package/api/resources/registry/client/Client.d.ts +48 -7
  35. package/api/resources/registry/client/Client.js +198 -87
  36. package/api/resources/registry/client/generateRegistryTokens.d.ts +1 -1
  37. package/api/resources/registry/client/generateRegistryTokens.js +27 -4
  38. package/api/resources/registry/client/hasRegistryPermission.d.ts +1 -1
  39. package/api/resources/registry/client/hasRegistryPermission.js +27 -4
  40. package/api/resources/registry/client/requests/CheckRegistryPermissionRequest.d.ts +11 -1
  41. package/api/resources/registry/client/requests/GenerateRegistryTokensRequest.d.ts +7 -1
  42. package/api/resources/registry/client/requests/RevokeTokenRequest.d.ts +8 -1
  43. package/api/resources/registry/client/requests/index.d.ts +3 -3
  44. package/api/resources/registry/client/revokeToken.d.ts +1 -1
  45. package/api/resources/registry/client/revokeToken.js +27 -4
  46. package/api/resources/registry/types/RegistryToken.d.ts +5 -28
  47. package/api/resources/registry/types/RegistryToken.js +0 -51
  48. package/api/resources/registry/types/RegistryTokens.d.ts +1 -1
  49. package/api/resources/user/client/Client.d.ts +30 -6
  50. package/api/resources/user/client/Client.js +107 -43
  51. package/api/resources/user/client/getMyOrganizations.d.ts +1 -1
  52. package/api/resources/user/client/getMyOrganizations.js +25 -2
  53. package/api/resources/user/client/getMyself.d.ts +1 -1
  54. package/api/resources/user/client/getMyself.js +25 -2
  55. package/api/resources/user/client/requests/GetUserOrganizationsRequest.d.ts +6 -0
  56. package/api/resources/user/client/requests/index.d.ts +1 -1
  57. package/api/resources/user/types/OrganizationsPage.d.ts +1 -1
  58. package/api/resources/user/types/User.d.ts +1 -1
  59. package/core/fetcher/APIResponse.d.ts +1 -0
  60. package/core/fetcher/Fetcher.d.ts +9 -2
  61. package/core/fetcher/Fetcher.js +78 -64
  62. package/core/fetcher/Supplier.js +11 -2
  63. package/core/fetcher/createRequestUrl.d.ts +1 -0
  64. package/core/fetcher/createRequestUrl.js +13 -0
  65. package/core/fetcher/getFetchFn.d.ts +4 -0
  66. package/core/fetcher/getFetchFn.js +59 -0
  67. package/core/fetcher/getHeader.d.ts +1 -0
  68. package/core/fetcher/getHeader.js +12 -0
  69. package/core/fetcher/getRequestBody.d.ts +7 -0
  70. package/core/fetcher/getRequestBody.js +23 -0
  71. package/core/fetcher/getResponseBody.d.ts +1 -0
  72. package/core/fetcher/getResponseBody.js +52 -0
  73. package/core/fetcher/index.d.ts +4 -2
  74. package/core/fetcher/index.js +3 -1
  75. package/core/fetcher/makeRequest.d.ts +1 -0
  76. package/core/fetcher/makeRequest.js +42 -0
  77. package/core/fetcher/requestWithRetries.d.ts +1 -0
  78. package/core/fetcher/requestWithRetries.js +32 -0
  79. package/core/fetcher/signals.d.ts +12 -0
  80. package/core/fetcher/signals.js +37 -0
  81. package/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.ts +30 -0
  82. package/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.js +247 -0
  83. package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +22 -0
  84. package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +124 -0
  85. package/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +31 -0
  86. package/core/fetcher/stream-wrappers/UndiciStreamWrapper.js +229 -0
  87. package/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +18 -0
  88. package/core/fetcher/stream-wrappers/chooseStreamWrapper.js +50 -0
  89. package/core/index.d.ts +3 -2
  90. package/core/index.js +6 -5
  91. package/core/runtime/index.d.ts +1 -0
  92. package/core/runtime/index.js +5 -0
  93. package/core/runtime/runtime.d.ts +9 -0
  94. package/core/runtime/runtime.js +93 -0
  95. package/core/schemas/Schema.d.ts +44 -5
  96. package/core/schemas/Schema.js +3 -0
  97. package/core/schemas/builders/bigint/bigint.d.ts +2 -0
  98. package/core/schemas/builders/bigint/bigint.js +50 -0
  99. package/core/schemas/builders/bigint/index.d.ts +1 -0
  100. package/core/schemas/builders/bigint/index.js +5 -0
  101. package/core/schemas/builders/date/date.js +22 -14
  102. package/core/schemas/builders/enum/enum.js +17 -7
  103. package/core/schemas/builders/index.d.ts +2 -0
  104. package/core/schemas/builders/index.js +2 -0
  105. package/core/schemas/builders/lazy/index.d.ts +2 -1
  106. package/core/schemas/builders/lazy/lazy.d.ts +2 -2
  107. package/core/schemas/builders/lazy/lazy.js +6 -9
  108. package/core/schemas/builders/lazy/lazyObject.js +2 -11
  109. package/core/schemas/builders/list/list.js +16 -14
  110. package/core/schemas/builders/literals/booleanLiteral.d.ts +2 -0
  111. package/core/schemas/builders/literals/booleanLiteral.js +29 -0
  112. package/core/schemas/builders/literals/index.d.ts +1 -0
  113. package/core/schemas/builders/literals/index.js +3 -1
  114. package/core/schemas/builders/literals/stringLiteral.js +4 -3
  115. package/core/schemas/builders/object/index.d.ts +5 -2
  116. package/core/schemas/builders/object/index.js +3 -1
  117. package/core/schemas/builders/object/object.js +65 -63
  118. package/core/schemas/builders/object/objectWithoutOptionalProperties.d.ts +6 -0
  119. package/core/schemas/builders/object/objectWithoutOptionalProperties.js +8 -0
  120. package/core/schemas/builders/object/types.d.ts +2 -2
  121. package/core/schemas/builders/object-like/getObjectLikeUtils.js +9 -17
  122. package/core/schemas/builders/object-like/index.d.ts +1 -1
  123. package/core/schemas/builders/primitives/boolean.js +4 -3
  124. package/core/schemas/builders/primitives/number.js +4 -3
  125. package/core/schemas/builders/primitives/string.js +4 -3
  126. package/core/schemas/builders/record/index.d.ts +1 -1
  127. package/core/schemas/builders/record/record.js +36 -32
  128. package/core/schemas/builders/record/types.d.ts +2 -3
  129. package/core/schemas/builders/schema-utils/JsonError.js +0 -1
  130. package/core/schemas/builders/schema-utils/ParseError.js +0 -1
  131. package/core/schemas/builders/schema-utils/getSchemaUtils.d.ts +2 -2
  132. package/core/schemas/builders/schema-utils/getSchemaUtils.js +16 -16
  133. package/core/schemas/builders/schema-utils/index.d.ts +2 -1
  134. package/core/schemas/builders/set/set.js +10 -10
  135. package/core/schemas/builders/undiscriminated-union/index.d.ts +2 -0
  136. package/core/schemas/builders/undiscriminated-union/index.js +5 -0
  137. package/core/schemas/builders/undiscriminated-union/types.d.ts +4 -0
  138. package/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.d.ts +3 -0
  139. package/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +40 -0
  140. package/core/schemas/builders/union/index.d.ts +3 -2
  141. package/core/schemas/builders/union/union.js +61 -31
  142. package/core/schemas/index.d.ts +1 -1
  143. package/core/schemas/utils/createIdentitySchemaCreator.js +2 -4
  144. package/core/schemas/utils/getErrorMessageForIncorrectType.d.ts +1 -0
  145. package/core/schemas/utils/getErrorMessageForIncorrectType.js +28 -0
  146. package/core/schemas/utils/isPlainObject.d.ts +0 -1
  147. package/core/schemas/utils/isPlainObject.js +1 -2
  148. package/core/schemas/utils/maybeSkipValidation.d.ts +2 -0
  149. package/core/schemas/utils/maybeSkipValidation.js +28 -0
  150. package/dist/Client.d.ts +31 -0
  151. package/dist/Client.js +27 -0
  152. package/dist/api/index.d.ts +1 -0
  153. package/dist/api/index.js +17 -0
  154. package/dist/api/resources/commons/index.d.ts +1 -0
  155. package/dist/api/resources/commons/index.js +17 -0
  156. package/dist/api/resources/commons/types/OrganizationId.d.ts +8 -0
  157. package/dist/api/resources/commons/types/OrganizationId.js +10 -0
  158. package/dist/api/resources/commons/types/UserId.d.ts +8 -0
  159. package/dist/api/resources/commons/types/UserId.js +10 -0
  160. package/dist/api/resources/commons/types/index.d.ts +2 -0
  161. package/dist/api/resources/commons/types/index.js +18 -0
  162. package/dist/api/resources/index.d.ts +11 -0
  163. package/dist/api/resources/index.js +40 -0
  164. package/dist/api/resources/organization/client/Client.d.ts +130 -0
  165. package/dist/api/resources/organization/client/Client.js +582 -0
  166. package/dist/api/resources/organization/client/addUser.d.ts +32 -0
  167. package/dist/api/resources/organization/client/addUser.js +67 -0
  168. package/dist/api/resources/organization/client/create.d.ts +32 -0
  169. package/dist/api/resources/organization/client/create.js +67 -0
  170. package/dist/api/resources/organization/client/get.d.ts +27 -0
  171. package/dist/api/resources/organization/client/get.js +57 -0
  172. package/dist/api/resources/organization/client/getMyOrganizationFromScopedToken.d.ts +27 -0
  173. package/dist/api/resources/organization/client/getMyOrganizationFromScopedToken.js +57 -0
  174. package/dist/api/resources/organization/client/getOrgIdsFromToken.d.ts +22 -0
  175. package/dist/api/resources/organization/client/getOrgIdsFromToken.js +47 -0
  176. package/dist/api/resources/organization/client/index.d.ts +10 -0
  177. package/dist/api/resources/organization/client/index.js +39 -0
  178. package/dist/api/resources/organization/client/inviteUser.d.ts +32 -0
  179. package/dist/api/resources/organization/client/inviteUser.js +67 -0
  180. package/dist/api/resources/organization/client/isMember.d.ts +22 -0
  181. package/dist/api/resources/organization/client/isMember.js +47 -0
  182. package/dist/api/resources/organization/client/removeUser.d.ts +32 -0
  183. package/dist/api/resources/organization/client/removeUser.js +67 -0
  184. package/dist/api/resources/organization/client/requests/AddUserToOrgRequest.d.ts +15 -0
  185. package/dist/api/resources/organization/client/requests/AddUserToOrgRequest.js +5 -0
  186. package/dist/api/resources/organization/client/requests/CreateOrganizationRequest.d.ts +23 -0
  187. package/dist/api/resources/organization/client/requests/CreateOrganizationRequest.js +5 -0
  188. package/dist/api/resources/organization/client/requests/GetMyOrganizationFromScopedToken.d.ts +12 -0
  189. package/dist/api/resources/organization/client/requests/GetMyOrganizationFromScopedToken.js +5 -0
  190. package/dist/api/resources/organization/client/requests/GetOrganizationRequest.d.ts +12 -0
  191. package/dist/api/resources/organization/client/requests/GetOrganizationRequest.js +5 -0
  192. package/dist/api/resources/organization/client/requests/InviteUserToOrgRequest.d.ts +15 -0
  193. package/dist/api/resources/organization/client/requests/InviteUserToOrgRequest.js +5 -0
  194. package/dist/api/resources/organization/client/requests/RemoveUserFromOrgRequest.d.ts +15 -0
  195. package/dist/api/resources/organization/client/requests/RemoveUserFromOrgRequest.js +5 -0
  196. package/dist/api/resources/organization/client/requests/UpdateOrganizationRequest.d.ts +49 -0
  197. package/dist/api/resources/organization/client/requests/UpdateOrganizationRequest.js +5 -0
  198. package/dist/api/resources/organization/client/requests/index.d.ts +7 -0
  199. package/dist/api/resources/organization/client/requests/index.js +2 -0
  200. package/dist/api/resources/organization/client/update.d.ts +27 -0
  201. package/dist/api/resources/organization/client/update.js +57 -0
  202. package/dist/api/resources/organization/index.d.ts +2 -0
  203. package/dist/api/resources/organization/index.js +18 -0
  204. package/dist/api/resources/organization/types/LightweightUser.d.ts +9 -0
  205. package/dist/api/resources/organization/types/LightweightUser.js +5 -0
  206. package/dist/api/resources/organization/types/Organization.d.ts +35 -0
  207. package/dist/api/resources/organization/types/Organization.js +5 -0
  208. package/dist/api/resources/organization/types/index.d.ts +2 -0
  209. package/dist/api/resources/organization/types/index.js +18 -0
  210. package/dist/api/resources/registry/client/Client.d.ts +59 -0
  211. package/dist/api/resources/registry/client/Client.js +246 -0
  212. package/dist/api/resources/registry/client/generateRegistryTokens.d.ts +32 -0
  213. package/dist/api/resources/registry/client/generateRegistryTokens.js +67 -0
  214. package/dist/api/resources/registry/client/hasRegistryPermission.d.ts +32 -0
  215. package/dist/api/resources/registry/client/hasRegistryPermission.js +67 -0
  216. package/dist/api/resources/registry/client/index.d.ts +4 -0
  217. package/dist/api/resources/registry/client/index.js +33 -0
  218. package/dist/api/resources/registry/client/requests/CheckRegistryPermissionRequest.d.ts +18 -0
  219. package/dist/api/resources/registry/client/requests/CheckRegistryPermissionRequest.js +5 -0
  220. package/dist/api/resources/registry/client/requests/GenerateRegistryTokensRequest.d.ts +13 -0
  221. package/dist/api/resources/registry/client/requests/GenerateRegistryTokensRequest.js +5 -0
  222. package/dist/api/resources/registry/client/requests/RevokeTokenRequest.d.ts +15 -0
  223. package/dist/api/resources/registry/client/requests/RevokeTokenRequest.js +5 -0
  224. package/dist/api/resources/registry/client/requests/index.d.ts +3 -0
  225. package/dist/api/resources/registry/client/requests/index.js +2 -0
  226. package/dist/api/resources/registry/client/revokeToken.d.ts +32 -0
  227. package/dist/api/resources/registry/client/revokeToken.js +67 -0
  228. package/dist/api/resources/registry/index.d.ts +2 -0
  229. package/dist/api/resources/registry/index.js +18 -0
  230. package/dist/api/resources/registry/types/MavenRegistryToken.d.ts +7 -0
  231. package/dist/api/resources/registry/types/MavenRegistryToken.js +5 -0
  232. package/dist/api/resources/registry/types/NpmRegistryToken.d.ts +6 -0
  233. package/dist/api/resources/registry/types/NpmRegistryToken.js +5 -0
  234. package/dist/api/resources/registry/types/PypiRegistryToken.d.ts +7 -0
  235. package/dist/api/resources/registry/types/PypiRegistryToken.js +5 -0
  236. package/dist/api/resources/registry/types/RegistryToken.d.ts +16 -0
  237. package/dist/api/resources/registry/types/RegistryToken.js +5 -0
  238. package/dist/api/resources/registry/types/RegistryTokens.d.ts +9 -0
  239. package/dist/api/resources/registry/types/RegistryTokens.js +5 -0
  240. package/dist/api/resources/registry/types/index.d.ts +5 -0
  241. package/dist/api/resources/registry/types/index.js +21 -0
  242. package/dist/api/resources/user/client/Client.d.ts +41 -0
  243. package/dist/api/resources/user/client/Client.js +151 -0
  244. package/dist/api/resources/user/client/getMyOrganizations.d.ts +22 -0
  245. package/dist/api/resources/user/client/getMyOrganizations.js +47 -0
  246. package/dist/api/resources/user/client/getMyself.d.ts +22 -0
  247. package/dist/api/resources/user/client/getMyself.js +47 -0
  248. package/dist/api/resources/user/client/index.d.ts +3 -0
  249. package/dist/api/resources/user/client/index.js +32 -0
  250. package/dist/api/resources/user/client/requests/GetUserOrganizationsRequest.d.ts +12 -0
  251. package/dist/api/resources/user/client/requests/GetUserOrganizationsRequest.js +5 -0
  252. package/dist/api/resources/user/client/requests/index.d.ts +1 -0
  253. package/dist/api/resources/user/client/requests/index.js +2 -0
  254. package/dist/api/resources/user/index.d.ts +2 -0
  255. package/dist/api/resources/user/index.js +18 -0
  256. package/dist/api/resources/user/types/OrganizationsPage.d.ts +8 -0
  257. package/dist/api/resources/user/types/OrganizationsPage.js +5 -0
  258. package/dist/api/resources/user/types/User.d.ts +10 -0
  259. package/dist/api/resources/user/types/User.js +5 -0
  260. package/dist/api/resources/user/types/index.d.ts +2 -0
  261. package/dist/api/resources/user/types/index.js +18 -0
  262. package/dist/core/auth/BasicAuth.d.ts +8 -0
  263. package/dist/core/auth/BasicAuth.js +26 -0
  264. package/dist/core/auth/BearerToken.d.ts +5 -0
  265. package/dist/core/auth/BearerToken.js +15 -0
  266. package/dist/core/auth/index.d.ts +2 -0
  267. package/dist/core/auth/index.js +7 -0
  268. package/dist/core/fetcher/APIResponse.d.ts +10 -0
  269. package/dist/core/fetcher/APIResponse.js +2 -0
  270. package/dist/core/fetcher/Fetcher.d.ts +39 -0
  271. package/dist/core/fetcher/Fetcher.js +99 -0
  272. package/dist/core/fetcher/Supplier.d.ts +4 -0
  273. package/dist/core/fetcher/Supplier.js +22 -0
  274. package/dist/core/fetcher/createRequestUrl.d.ts +1 -0
  275. package/dist/core/fetcher/createRequestUrl.js +13 -0
  276. package/dist/core/fetcher/getFetchFn.d.ts +4 -0
  277. package/dist/core/fetcher/getFetchFn.js +59 -0
  278. package/dist/core/fetcher/getHeader.d.ts +1 -0
  279. package/dist/core/fetcher/getHeader.js +12 -0
  280. package/dist/core/fetcher/getRequestBody.d.ts +7 -0
  281. package/dist/core/fetcher/getRequestBody.js +23 -0
  282. package/dist/core/fetcher/getResponseBody.d.ts +1 -0
  283. package/dist/core/fetcher/getResponseBody.js +52 -0
  284. package/dist/core/fetcher/index.d.ts +5 -0
  285. package/dist/core/fetcher/index.js +9 -0
  286. package/dist/core/fetcher/makeRequest.d.ts +1 -0
  287. package/dist/core/fetcher/makeRequest.js +42 -0
  288. package/dist/core/fetcher/requestWithRetries.d.ts +1 -0
  289. package/dist/core/fetcher/requestWithRetries.js +32 -0
  290. package/dist/core/fetcher/signals.d.ts +12 -0
  291. package/dist/core/fetcher/signals.js +37 -0
  292. package/dist/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.ts +30 -0
  293. package/dist/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.js +247 -0
  294. package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +22 -0
  295. package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +124 -0
  296. package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +31 -0
  297. package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.js +229 -0
  298. package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +18 -0
  299. package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.js +50 -0
  300. package/dist/core/index.d.ts +4 -0
  301. package/dist/core/index.js +33 -0
  302. package/dist/core/runtime/index.d.ts +1 -0
  303. package/dist/core/runtime/index.js +5 -0
  304. package/dist/core/runtime/runtime.d.ts +9 -0
  305. package/dist/core/runtime/runtime.js +93 -0
  306. package/dist/core/schemas/Schema.d.ts +85 -0
  307. package/dist/core/schemas/Schema.js +22 -0
  308. package/dist/core/schemas/builders/bigint/bigint.d.ts +2 -0
  309. package/dist/core/schemas/builders/bigint/bigint.js +50 -0
  310. package/dist/core/schemas/builders/bigint/index.d.ts +1 -0
  311. package/dist/core/schemas/builders/bigint/index.js +5 -0
  312. package/dist/core/schemas/builders/date/date.d.ts +2 -0
  313. package/dist/core/schemas/builders/date/date.js +63 -0
  314. package/dist/core/schemas/builders/date/index.d.ts +1 -0
  315. package/dist/core/schemas/builders/date/index.js +5 -0
  316. package/dist/core/schemas/builders/enum/enum.d.ts +2 -0
  317. package/dist/core/schemas/builders/enum/enum.js +39 -0
  318. package/dist/core/schemas/builders/enum/index.d.ts +1 -0
  319. package/dist/core/schemas/builders/enum/index.js +5 -0
  320. package/dist/core/schemas/builders/index.d.ts +14 -0
  321. package/dist/core/schemas/builders/index.js +30 -0
  322. package/dist/core/schemas/builders/lazy/index.d.ts +3 -0
  323. package/dist/core/schemas/builders/lazy/index.js +7 -0
  324. package/dist/core/schemas/builders/lazy/lazy.d.ts +5 -0
  325. package/dist/core/schemas/builders/lazy/lazy.js +25 -0
  326. package/dist/core/schemas/builders/lazy/lazyObject.d.ts +3 -0
  327. package/dist/core/schemas/builders/lazy/lazyObject.js +12 -0
  328. package/dist/core/schemas/builders/list/index.d.ts +1 -0
  329. package/dist/core/schemas/builders/list/index.js +5 -0
  330. package/dist/core/schemas/builders/list/list.d.ts +2 -0
  331. package/dist/core/schemas/builders/list/list.js +55 -0
  332. package/dist/core/schemas/builders/literals/booleanLiteral.d.ts +2 -0
  333. package/dist/core/schemas/builders/literals/booleanLiteral.js +29 -0
  334. package/dist/core/schemas/builders/literals/index.d.ts +2 -0
  335. package/dist/core/schemas/builders/literals/index.js +7 -0
  336. package/dist/core/schemas/builders/literals/stringLiteral.d.ts +2 -0
  337. package/dist/core/schemas/builders/literals/stringLiteral.js +29 -0
  338. package/dist/core/schemas/builders/object/index.d.ts +6 -0
  339. package/dist/core/schemas/builders/object/index.js +11 -0
  340. package/dist/core/schemas/builders/object/object.d.ts +3 -0
  341. package/dist/core/schemas/builders/object/object.js +233 -0
  342. package/dist/core/schemas/builders/object/objectWithoutOptionalProperties.d.ts +6 -0
  343. package/dist/core/schemas/builders/object/objectWithoutOptionalProperties.js +8 -0
  344. package/dist/core/schemas/builders/object/property.d.ts +8 -0
  345. package/dist/core/schemas/builders/object/property.js +16 -0
  346. package/dist/core/schemas/builders/object/types.d.ts +26 -0
  347. package/dist/core/schemas/builders/object/types.js +2 -0
  348. package/dist/core/schemas/builders/object-like/getObjectLikeUtils.d.ts +9 -0
  349. package/dist/core/schemas/builders/object-like/getObjectLikeUtils.js +54 -0
  350. package/dist/core/schemas/builders/object-like/index.d.ts +2 -0
  351. package/dist/core/schemas/builders/object-like/index.js +6 -0
  352. package/dist/core/schemas/builders/object-like/types.d.ts +7 -0
  353. package/dist/core/schemas/builders/object-like/types.js +2 -0
  354. package/dist/core/schemas/builders/primitives/any.d.ts +1 -0
  355. package/dist/core/schemas/builders/primitives/any.js +6 -0
  356. package/dist/core/schemas/builders/primitives/boolean.d.ts +1 -0
  357. package/dist/core/schemas/builders/primitives/boolean.js +25 -0
  358. package/dist/core/schemas/builders/primitives/index.d.ts +5 -0
  359. package/dist/core/schemas/builders/primitives/index.js +13 -0
  360. package/dist/core/schemas/builders/primitives/number.d.ts +1 -0
  361. package/dist/core/schemas/builders/primitives/number.js +25 -0
  362. package/dist/core/schemas/builders/primitives/string.d.ts +1 -0
  363. package/dist/core/schemas/builders/primitives/string.js +25 -0
  364. package/dist/core/schemas/builders/primitives/unknown.d.ts +1 -0
  365. package/dist/core/schemas/builders/primitives/unknown.js +6 -0
  366. package/dist/core/schemas/builders/record/index.d.ts +2 -0
  367. package/dist/core/schemas/builders/record/index.js +5 -0
  368. package/dist/core/schemas/builders/record/record.d.ts +3 -0
  369. package/dist/core/schemas/builders/record/record.js +95 -0
  370. package/dist/core/schemas/builders/record/types.d.ts +4 -0
  371. package/dist/core/schemas/builders/record/types.js +2 -0
  372. package/dist/core/schemas/builders/schema-utils/JsonError.d.ts +5 -0
  373. package/dist/core/schemas/builders/schema-utils/JsonError.js +12 -0
  374. package/dist/core/schemas/builders/schema-utils/ParseError.d.ts +5 -0
  375. package/dist/core/schemas/builders/schema-utils/ParseError.js +12 -0
  376. package/dist/core/schemas/builders/schema-utils/getSchemaUtils.d.ts +17 -0
  377. package/dist/core/schemas/builders/schema-utils/getSchemaUtils.js +82 -0
  378. package/dist/core/schemas/builders/schema-utils/index.d.ts +4 -0
  379. package/dist/core/schemas/builders/schema-utils/index.js +11 -0
  380. package/dist/core/schemas/builders/schema-utils/stringifyValidationErrors.d.ts +2 -0
  381. package/dist/core/schemas/builders/schema-utils/stringifyValidationErrors.js +10 -0
  382. package/dist/core/schemas/builders/set/index.d.ts +1 -0
  383. package/dist/core/schemas/builders/set/index.js +5 -0
  384. package/dist/core/schemas/builders/set/set.d.ts +2 -0
  385. package/dist/core/schemas/builders/set/set.js +44 -0
  386. package/dist/core/schemas/builders/undiscriminated-union/index.d.ts +2 -0
  387. package/dist/core/schemas/builders/undiscriminated-union/index.js +5 -0
  388. package/dist/core/schemas/builders/undiscriminated-union/types.d.ts +4 -0
  389. package/dist/core/schemas/builders/undiscriminated-union/types.js +2 -0
  390. package/dist/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.d.ts +3 -0
  391. package/dist/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +40 -0
  392. package/dist/core/schemas/builders/union/discriminant.d.ts +5 -0
  393. package/dist/core/schemas/builders/union/discriminant.js +10 -0
  394. package/dist/core/schemas/builders/union/index.d.ts +4 -0
  395. package/dist/core/schemas/builders/union/index.js +7 -0
  396. package/dist/core/schemas/builders/union/types.d.ts +13 -0
  397. package/dist/core/schemas/builders/union/types.js +2 -0
  398. package/dist/core/schemas/builders/union/union.d.ts +4 -0
  399. package/dist/core/schemas/builders/union/union.js +130 -0
  400. package/dist/core/schemas/index.d.ts +2 -0
  401. package/dist/core/schemas/index.js +17 -0
  402. package/dist/core/schemas/utils/MaybePromise.d.ts +1 -0
  403. package/dist/core/schemas/utils/MaybePromise.js +2 -0
  404. package/dist/core/schemas/utils/addQuestionMarksToNullableProperties.d.ts +7 -0
  405. package/dist/core/schemas/utils/addQuestionMarksToNullableProperties.js +2 -0
  406. package/dist/core/schemas/utils/createIdentitySchemaCreator.d.ts +2 -0
  407. package/dist/core/schemas/utils/createIdentitySchemaCreator.js +16 -0
  408. package/dist/core/schemas/utils/entries.d.ts +1 -0
  409. package/dist/core/schemas/utils/entries.js +7 -0
  410. package/dist/core/schemas/utils/filterObject.d.ts +1 -0
  411. package/dist/core/schemas/utils/filterObject.js +14 -0
  412. package/dist/core/schemas/utils/getErrorMessageForIncorrectType.d.ts +1 -0
  413. package/dist/core/schemas/utils/getErrorMessageForIncorrectType.js +28 -0
  414. package/dist/core/schemas/utils/isPlainObject.d.ts +1 -0
  415. package/dist/core/schemas/utils/isPlainObject.js +18 -0
  416. package/dist/core/schemas/utils/keys.d.ts +1 -0
  417. package/dist/core/schemas/utils/keys.js +7 -0
  418. package/dist/core/schemas/utils/maybeSkipValidation.d.ts +2 -0
  419. package/dist/core/schemas/utils/maybeSkipValidation.js +28 -0
  420. package/dist/core/schemas/utils/partition.d.ts +1 -0
  421. package/dist/core/schemas/utils/partition.js +16 -0
  422. package/dist/index.d.ts +2 -0
  423. package/dist/index.js +29 -0
  424. package/dist/serialization/index.d.ts +1 -0
  425. package/dist/serialization/index.js +17 -0
  426. package/dist/serialization/resources/commons/index.d.ts +1 -0
  427. package/dist/serialization/resources/commons/index.js +17 -0
  428. package/dist/serialization/resources/commons/types/OrganizationId.d.ts +10 -0
  429. package/dist/serialization/resources/commons/types/OrganizationId.js +35 -0
  430. package/dist/serialization/resources/commons/types/UserId.d.ts +10 -0
  431. package/dist/serialization/resources/commons/types/UserId.js +37 -0
  432. package/dist/serialization/resources/commons/types/index.d.ts +2 -0
  433. package/dist/serialization/resources/commons/types/index.js +18 -0
  434. package/dist/serialization/resources/index.d.ts +10 -0
  435. package/dist/serialization/resources/index.js +39 -0
  436. package/dist/serialization/resources/organization/client/addUser.d.ts +16 -0
  437. package/dist/serialization/resources/organization/client/addUser.js +61 -0
  438. package/dist/serialization/resources/organization/client/create.d.ts +16 -0
  439. package/dist/serialization/resources/organization/client/create.js +61 -0
  440. package/dist/serialization/resources/organization/client/get.d.ts +13 -0
  441. package/dist/serialization/resources/organization/client/get.js +58 -0
  442. package/dist/serialization/resources/organization/client/getMyOrganizationFromScopedToken.d.ts +13 -0
  443. package/dist/serialization/resources/organization/client/getMyOrganizationFromScopedToken.js +58 -0
  444. package/dist/serialization/resources/organization/client/getOrgIdsFromToken.d.ts +11 -0
  445. package/dist/serialization/resources/organization/client/getOrgIdsFromToken.js +32 -0
  446. package/dist/serialization/resources/organization/client/index.d.ts +10 -0
  447. package/dist/serialization/resources/organization/client/index.js +39 -0
  448. package/dist/serialization/resources/organization/client/inviteUser.d.ts +16 -0
  449. package/dist/serialization/resources/organization/client/inviteUser.js +61 -0
  450. package/dist/serialization/resources/organization/client/isMember.d.ts +9 -0
  451. package/dist/serialization/resources/organization/client/isMember.js +31 -0
  452. package/dist/serialization/resources/organization/client/removeUser.d.ts +16 -0
  453. package/dist/serialization/resources/organization/client/removeUser.js +61 -0
  454. package/dist/serialization/resources/organization/client/requests/AddUserToOrgRequest.d.ts +15 -0
  455. package/dist/serialization/resources/organization/client/requests/AddUserToOrgRequest.js +36 -0
  456. package/dist/serialization/resources/organization/client/requests/CreateOrganizationRequest.d.ts +15 -0
  457. package/dist/serialization/resources/organization/client/requests/CreateOrganizationRequest.js +36 -0
  458. package/dist/serialization/resources/organization/client/requests/InviteUserToOrgRequest.d.ts +14 -0
  459. package/dist/serialization/resources/organization/client/requests/InviteUserToOrgRequest.js +35 -0
  460. package/dist/serialization/resources/organization/client/requests/RemoveUserFromOrgRequest.d.ts +14 -0
  461. package/dist/serialization/resources/organization/client/requests/RemoveUserFromOrgRequest.js +35 -0
  462. package/dist/serialization/resources/organization/client/requests/UpdateOrganizationRequest.d.ts +24 -0
  463. package/dist/serialization/resources/organization/client/requests/UpdateOrganizationRequest.js +45 -0
  464. package/dist/serialization/resources/organization/client/requests/index.d.ts +5 -0
  465. package/dist/serialization/resources/organization/client/requests/index.js +13 -0
  466. package/dist/serialization/resources/organization/client/update.d.ts +13 -0
  467. package/dist/serialization/resources/organization/client/update.js +58 -0
  468. package/dist/serialization/resources/organization/index.d.ts +2 -0
  469. package/dist/serialization/resources/organization/index.js +18 -0
  470. package/dist/serialization/resources/organization/types/LightweightUser.d.ts +15 -0
  471. package/dist/serialization/resources/organization/types/LightweightUser.js +36 -0
  472. package/dist/serialization/resources/organization/types/Organization.d.ts +30 -0
  473. package/dist/serialization/resources/organization/types/Organization.js +51 -0
  474. package/dist/serialization/resources/organization/types/index.d.ts +2 -0
  475. package/dist/serialization/resources/organization/types/index.js +18 -0
  476. package/dist/serialization/resources/registry/client/generateRegistryTokens.d.ts +16 -0
  477. package/dist/serialization/resources/registry/client/generateRegistryTokens.js +61 -0
  478. package/dist/serialization/resources/registry/client/hasRegistryPermission.d.ts +20 -0
  479. package/dist/serialization/resources/registry/client/hasRegistryPermission.js +62 -0
  480. package/dist/serialization/resources/registry/client/index.d.ts +4 -0
  481. package/dist/serialization/resources/registry/client/index.js +33 -0
  482. package/dist/serialization/resources/registry/client/requests/CheckRegistryPermissionRequest.d.ts +15 -0
  483. package/dist/serialization/resources/registry/client/requests/CheckRegistryPermissionRequest.js +36 -0
  484. package/dist/serialization/resources/registry/client/requests/GenerateRegistryTokensRequest.d.ts +13 -0
  485. package/dist/serialization/resources/registry/client/requests/GenerateRegistryTokensRequest.js +34 -0
  486. package/dist/serialization/resources/registry/client/requests/RevokeTokenRequest.d.ts +14 -0
  487. package/dist/serialization/resources/registry/client/requests/RevokeTokenRequest.js +35 -0
  488. package/dist/serialization/resources/registry/client/requests/index.d.ts +3 -0
  489. package/dist/serialization/resources/registry/client/requests/index.js +9 -0
  490. package/dist/serialization/resources/registry/client/revokeToken.d.ts +16 -0
  491. package/dist/serialization/resources/registry/client/revokeToken.js +61 -0
  492. package/dist/serialization/resources/registry/index.d.ts +2 -0
  493. package/dist/serialization/resources/registry/index.js +18 -0
  494. package/dist/serialization/resources/registry/types/MavenRegistryToken.d.ts +13 -0
  495. package/dist/serialization/resources/registry/types/MavenRegistryToken.js +34 -0
  496. package/dist/serialization/resources/registry/types/NpmRegistryToken.d.ts +12 -0
  497. package/dist/serialization/resources/registry/types/NpmRegistryToken.js +33 -0
  498. package/dist/serialization/resources/registry/types/PypiRegistryToken.d.ts +13 -0
  499. package/dist/serialization/resources/registry/types/PypiRegistryToken.js +34 -0
  500. package/dist/serialization/resources/registry/types/RegistryToken.d.ts +22 -0
  501. package/dist/serialization/resources/registry/types/RegistryToken.js +43 -0
  502. package/dist/serialization/resources/registry/types/RegistryTokens.d.ts +17 -0
  503. package/dist/serialization/resources/registry/types/RegistryTokens.js +38 -0
  504. package/dist/serialization/resources/registry/types/index.d.ts +5 -0
  505. package/dist/serialization/resources/registry/types/index.js +21 -0
  506. package/dist/serialization/resources/user/index.d.ts +1 -0
  507. package/dist/serialization/resources/user/index.js +17 -0
  508. package/dist/serialization/resources/user/types/OrganizationsPage.d.ts +14 -0
  509. package/dist/serialization/resources/user/types/OrganizationsPage.js +35 -0
  510. package/dist/serialization/resources/user/types/User.d.ts +16 -0
  511. package/dist/serialization/resources/user/types/User.js +37 -0
  512. package/dist/serialization/resources/user/types/index.d.ts +2 -0
  513. package/dist/serialization/resources/user/types/index.js +18 -0
  514. package/dist/version.d.ts +1 -0
  515. package/dist/version.js +4 -0
  516. package/jest.config.js +5 -0
  517. package/package.json +28 -18
  518. package/serialization/resources/commons/types/OrganizationId.d.ts +2 -2
  519. package/serialization/resources/commons/types/OrganizationId.js +2 -2
  520. package/serialization/resources/commons/types/UserId.d.ts +2 -2
  521. package/serialization/resources/commons/types/UserId.js +2 -2
  522. package/serialization/resources/organization/client/addUser.d.ts +2 -2
  523. package/serialization/resources/organization/client/addUser.js +18 -4
  524. package/serialization/resources/organization/client/create.d.ts +2 -2
  525. package/serialization/resources/organization/client/create.js +18 -4
  526. package/serialization/resources/organization/client/get.d.ts +2 -2
  527. package/serialization/resources/organization/client/get.js +17 -3
  528. package/serialization/resources/organization/client/getMyOrganizationFromScopedToken.d.ts +2 -2
  529. package/serialization/resources/organization/client/getMyOrganizationFromScopedToken.js +17 -3
  530. package/serialization/resources/organization/client/getOrgIdsFromToken.d.ts +4 -3
  531. package/serialization/resources/organization/client/getOrgIdsFromToken.js +2 -1
  532. package/serialization/resources/organization/client/inviteUser.d.ts +2 -2
  533. package/serialization/resources/organization/client/inviteUser.js +18 -4
  534. package/serialization/resources/organization/client/isMember.d.ts +1 -1
  535. package/serialization/resources/organization/client/removeUser.d.ts +2 -2
  536. package/serialization/resources/organization/client/removeUser.js +18 -4
  537. package/serialization/resources/organization/client/requests/AddUserToOrgRequest.d.ts +6 -4
  538. package/serialization/resources/organization/client/requests/AddUserToOrgRequest.js +4 -2
  539. package/serialization/resources/organization/client/requests/CreateOrganizationRequest.d.ts +4 -3
  540. package/serialization/resources/organization/client/requests/CreateOrganizationRequest.js +2 -1
  541. package/serialization/resources/organization/client/requests/InviteUserToOrgRequest.d.ts +4 -3
  542. package/serialization/resources/organization/client/requests/InviteUserToOrgRequest.js +2 -1
  543. package/serialization/resources/organization/client/requests/RemoveUserFromOrgRequest.d.ts +4 -3
  544. package/serialization/resources/organization/client/requests/RemoveUserFromOrgRequest.js +2 -1
  545. package/serialization/resources/organization/client/requests/UpdateOrganizationRequest.d.ts +2 -2
  546. package/serialization/resources/organization/client/update.d.ts +2 -2
  547. package/serialization/resources/organization/client/update.js +17 -3
  548. package/serialization/resources/organization/types/LightweightUser.d.ts +2 -2
  549. package/serialization/resources/organization/types/Organization.d.ts +6 -4
  550. package/serialization/resources/organization/types/Organization.js +4 -2
  551. package/serialization/resources/registry/client/generateRegistryTokens.d.ts +2 -2
  552. package/serialization/resources/registry/client/generateRegistryTokens.js +18 -4
  553. package/serialization/resources/registry/client/hasRegistryPermission.d.ts +2 -2
  554. package/serialization/resources/registry/client/hasRegistryPermission.js +18 -4
  555. package/serialization/resources/registry/client/requests/CheckRegistryPermissionRequest.d.ts +6 -4
  556. package/serialization/resources/registry/client/requests/CheckRegistryPermissionRequest.js +4 -2
  557. package/serialization/resources/registry/client/requests/GenerateRegistryTokensRequest.d.ts +4 -3
  558. package/serialization/resources/registry/client/requests/GenerateRegistryTokensRequest.js +2 -1
  559. package/serialization/resources/registry/client/requests/RevokeTokenRequest.d.ts +4 -3
  560. package/serialization/resources/registry/client/requests/RevokeTokenRequest.js +2 -1
  561. package/serialization/resources/registry/client/revokeToken.d.ts +2 -2
  562. package/serialization/resources/registry/client/revokeToken.js +18 -4
  563. package/serialization/resources/registry/types/MavenRegistryToken.d.ts +2 -2
  564. package/serialization/resources/registry/types/NpmRegistryToken.d.ts +2 -2
  565. package/serialization/resources/registry/types/PypiRegistryToken.d.ts +2 -2
  566. package/serialization/resources/registry/types/RegistryToken.d.ts +8 -5
  567. package/serialization/resources/registry/types/RegistryToken.js +8 -17
  568. package/serialization/resources/registry/types/RegistryTokens.d.ts +8 -5
  569. package/serialization/resources/registry/types/RegistryTokens.js +6 -3
  570. package/serialization/resources/user/types/OrganizationsPage.d.ts +4 -3
  571. package/serialization/resources/user/types/OrganizationsPage.js +2 -1
  572. package/serialization/resources/user/types/User.d.ts +4 -3
  573. package/serialization/resources/user/types/User.js +2 -1
  574. package/version.d.ts +1 -0
  575. package/version.js +4 -0
  576. package/core/schemas/utils/OptionalRecord.d.ts +0 -1
  577. /package/core/schemas/{utils/OptionalRecord.js → builders/undiscriminated-union/types.js} +0 -0
@@ -1,7 +1,7 @@
1
- export { CreateOrganizationRequest } from "./CreateOrganizationRequest";
2
- export { UpdateOrganizationRequest } from "./UpdateOrganizationRequest";
3
- export { GetOrganizationRequest } from "./GetOrganizationRequest";
4
- export { GetMyOrganizationFromScopedToken } from "./GetMyOrganizationFromScopedToken";
5
- export { AddUserToOrgRequest } from "./AddUserToOrgRequest";
6
- export { InviteUserToOrgRequest } from "./InviteUserToOrgRequest";
7
- export { RemoveUserFromOrgRequest } from "./RemoveUserFromOrgRequest";
1
+ export { type CreateOrganizationRequest } from "./CreateOrganizationRequest";
2
+ export { type UpdateOrganizationRequest } from "./UpdateOrganizationRequest";
3
+ export { type GetOrganizationRequest } from "./GetOrganizationRequest";
4
+ export { type GetMyOrganizationFromScopedToken } from "./GetMyOrganizationFromScopedToken";
5
+ export { type AddUserToOrgRequest } from "./AddUserToOrgRequest";
6
+ export { type InviteUserToOrgRequest } from "./InviteUserToOrgRequest";
7
+ export { type RemoveUserFromOrgRequest } from "./RemoveUserFromOrgRequest";
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import { FernVenusApi } from "../../../..";
4
+ import * as FernVenusApi from "../../../index";
5
5
  import * as core from "../../../../core";
6
6
  export declare type Error = FernVenusApi.organization.update.Error.UnauthorizedError | FernVenusApi.organization.update.Error._Unknown;
7
7
  export declare namespace Error {
@@ -2,15 +2,38 @@
2
2
  /**
3
3
  * This file was auto-generated by Fern from our API Definition.
4
4
  */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
5
28
  Object.defineProperty(exports, "__esModule", { value: true });
6
29
  exports.Error = void 0;
7
- const venus_api_sdk_1 = require("../../../..");
30
+ const FernVenusApi = __importStar(require("../../../index"));
8
31
  exports.Error = {
9
32
  unauthorizedError: () => {
10
33
  return {
11
34
  error: "UnauthorizedError",
12
35
  _visit: function (visitor) {
13
- return venus_api_sdk_1.FernVenusApi.organization.update.Error._visit(this, visitor);
36
+ return FernVenusApi.organization.update.Error._visit(this, visitor);
14
37
  },
15
38
  };
16
39
  },
@@ -19,7 +42,7 @@ exports.Error = {
19
42
  error: undefined,
20
43
  content: fetcherError,
21
44
  _visit: function (visitor) {
22
- return venus_api_sdk_1.FernVenusApi.organization.update.Error._visit(this, visitor);
45
+ return FernVenusApi.organization.update.Error._visit(this, visitor);
23
46
  },
24
47
  };
25
48
  },
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import { FernVenusApi } from "../../../..";
4
+ import * as FernVenusApi from "../../../index";
5
5
  export interface Organization {
6
6
  organizationId: FernVenusApi.OrganizationId;
7
7
  auth0Id: string;
@@ -2,17 +2,58 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as core from "../../../../core";
5
- import { FernVenusApi } from "../../../..";
5
+ import * as FernVenusApi from "../../../index";
6
6
  export declare namespace Registry {
7
7
  interface Options {
8
- environment: string;
8
+ environment: core.Supplier<string>;
9
9
  token?: core.Supplier<core.BearerToken | undefined>;
10
10
  }
11
+ interface RequestOptions {
12
+ /** The maximum time to wait for a response in seconds. */
13
+ timeoutInSeconds?: number;
14
+ /** The number of times to retry the request. Defaults to 2. */
15
+ maxRetries?: number;
16
+ /** A hook to abort the request. */
17
+ abortSignal?: AbortSignal;
18
+ }
11
19
  }
12
20
  export declare class Registry {
13
- private readonly options;
14
- constructor(options: Registry.Options);
15
- generateRegistryTokens(request: FernVenusApi.GenerateRegistryTokensRequest): Promise<core.APIResponse<FernVenusApi.RegistryTokens, FernVenusApi.registry.generateRegistryTokens.Error>>;
16
- hasRegistryPermission(request: FernVenusApi.CheckRegistryPermissionRequest): Promise<core.APIResponse<boolean, FernVenusApi.registry.hasRegistryPermission.Error>>;
17
- revokeToken(request: FernVenusApi.RevokeTokenRequest): Promise<core.APIResponse<void, FernVenusApi.registry.revokeToken.Error>>;
21
+ protected readonly _options: Registry.Options;
22
+ constructor(_options: Registry.Options);
23
+ /**
24
+ * @param {FernVenusApi.GenerateRegistryTokensRequest} request
25
+ * @param {Registry.RequestOptions} requestOptions - Request-specific configuration.
26
+ *
27
+ * @example
28
+ * await client.registry.generateRegistryTokens({
29
+ * organizationId: FernVenusApi.OrganizationId("string")
30
+ * })
31
+ */
32
+ generateRegistryTokens(request: FernVenusApi.GenerateRegistryTokensRequest, requestOptions?: Registry.RequestOptions): Promise<core.APIResponse<FernVenusApi.RegistryTokens, FernVenusApi.registry.generateRegistryTokens.Error>>;
33
+ /**
34
+ * @param {FernVenusApi.CheckRegistryPermissionRequest} request
35
+ * @param {Registry.RequestOptions} requestOptions - Request-specific configuration.
36
+ *
37
+ * @example
38
+ * await client.registry.hasRegistryPermission({
39
+ * organizationId: FernVenusApi.OrganizationId("string"),
40
+ * token: {
41
+ * type: "npm",
42
+ * token: "string"
43
+ * }
44
+ * })
45
+ */
46
+ hasRegistryPermission(request: FernVenusApi.CheckRegistryPermissionRequest, requestOptions?: Registry.RequestOptions): Promise<core.APIResponse<boolean, FernVenusApi.registry.hasRegistryPermission.Error>>;
47
+ /**
48
+ * @param {FernVenusApi.RevokeTokenRequest} request
49
+ * @param {Registry.RequestOptions} requestOptions - Request-specific configuration.
50
+ *
51
+ * @example
52
+ * await client.registry.revokeToken({
53
+ * organizationId: FernVenusApi.OrganizationId("string"),
54
+ * token: "string"
55
+ * })
56
+ */
57
+ revokeToken(request: FernVenusApi.RevokeTokenRequest, requestOptions?: Registry.RequestOptions): Promise<core.APIResponse<void, FernVenusApi.registry.revokeToken.Error>>;
58
+ protected _getAuthorizationHeader(): Promise<string | undefined>;
18
59
  }
@@ -25,111 +25,222 @@ var __importStar = (this && this.__importStar) || function (mod) {
25
25
  __setModuleDefault(result, mod);
26
26
  return result;
27
27
  };
28
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
29
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
30
+ return new (P || (P = Promise))(function (resolve, reject) {
31
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
32
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
33
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
34
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
35
+ });
36
+ };
28
37
  var __importDefault = (this && this.__importDefault) || function (mod) {
29
38
  return (mod && mod.__esModule) ? mod : { "default": mod };
30
39
  };
31
40
  Object.defineProperty(exports, "__esModule", { value: true });
32
41
  exports.Registry = void 0;
33
42
  const core = __importStar(require("../../../../core"));
34
- const venus_api_sdk_1 = require("../../../..");
43
+ const FernVenusApi = __importStar(require("../../../index"));
44
+ const serializers = __importStar(require("../../../../serialization/index"));
35
45
  const url_join_1 = __importDefault(require("url-join"));
36
- const serializers = __importStar(require("../../../../serialization"));
37
46
  class Registry {
38
- options;
39
- constructor(options) {
40
- this.options = options;
47
+ constructor(_options) {
48
+ this._options = _options;
41
49
  }
42
- async generateRegistryTokens(request) {
43
- const _response = await core.fetcher({
44
- url: (0, url_join_1.default)(this.options.environment, "/registry/generate-tokens"),
45
- method: "POST",
46
- headers: {
47
- Authorization: core.BearerToken.toAuthorizationHeader(await core.Supplier.get(this.options.token)),
48
- },
49
- body: await serializers.GenerateRegistryTokensRequest.jsonOrThrow(request),
50
- });
51
- if (_response.ok) {
50
+ /**
51
+ * @param {FernVenusApi.GenerateRegistryTokensRequest} request
52
+ * @param {Registry.RequestOptions} requestOptions - Request-specific configuration.
53
+ *
54
+ * @example
55
+ * await client.registry.generateRegistryTokens({
56
+ * organizationId: FernVenusApi.OrganizationId("string")
57
+ * })
58
+ */
59
+ generateRegistryTokens(request, requestOptions) {
60
+ var _a;
61
+ return __awaiter(this, void 0, void 0, function* () {
62
+ const _response = yield core.fetcher({
63
+ url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), "/registry/generate-tokens"),
64
+ method: "POST",
65
+ headers: {
66
+ Authorization: yield this._getAuthorizationHeader(),
67
+ "X-Fern-Language": "JavaScript",
68
+ "X-Fern-SDK-Name": "@fern-api/venus-api-sdk",
69
+ "X-Fern-SDK-Version": "0.10.1-2-g8c943d4",
70
+ "X-Fern-Runtime": core.RUNTIME.type,
71
+ "X-Fern-Runtime-Version": core.RUNTIME.version,
72
+ },
73
+ contentType: "application/json",
74
+ requestType: "json",
75
+ body: serializers.GenerateRegistryTokensRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
76
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
77
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
78
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
79
+ });
80
+ if (_response.ok) {
81
+ return {
82
+ ok: true,
83
+ body: serializers.RegistryTokens.parseOrThrow(_response.body, {
84
+ unrecognizedObjectKeys: "passthrough",
85
+ allowUnrecognizedUnionMembers: true,
86
+ allowUnrecognizedEnumValues: true,
87
+ breadcrumbsPrefix: ["response"],
88
+ }),
89
+ };
90
+ }
91
+ if (_response.error.reason === "status-code") {
92
+ switch ((_a = _response.error.body) === null || _a === void 0 ? void 0 : _a.error) {
93
+ case "UnauthorizedError":
94
+ case "OrganizationNotFoundError":
95
+ return {
96
+ ok: false,
97
+ error: serializers.registry.generateRegistryTokens.Error.parseOrThrow(_response.error.body, {
98
+ unrecognizedObjectKeys: "passthrough",
99
+ allowUnrecognizedUnionMembers: true,
100
+ allowUnrecognizedEnumValues: true,
101
+ breadcrumbsPrefix: ["response"],
102
+ }),
103
+ };
104
+ }
105
+ }
52
106
  return {
53
- ok: true,
54
- body: await serializers.RegistryTokens.parseOrThrow(_response.body, {
55
- allowUnknownKeys: true,
56
- }),
107
+ ok: false,
108
+ error: FernVenusApi.registry.generateRegistryTokens.Error._unknown(_response.error),
57
109
  };
58
- }
59
- if (_response.error.reason === "status-code") {
60
- switch (_response.error.body?.error) {
61
- case "UnauthorizedError":
62
- case "OrganizationNotFoundError":
63
- return {
64
- ok: false,
65
- error: await serializers.registry.generateRegistryTokens.Error.parseOrThrow(_response.error.body, { allowUnknownKeys: true }),
66
- };
67
- }
68
- }
69
- return {
70
- ok: false,
71
- error: venus_api_sdk_1.FernVenusApi.registry.generateRegistryTokens.Error._unknown(_response.error),
72
- };
73
- }
74
- async hasRegistryPermission(request) {
75
- const _response = await core.fetcher({
76
- url: (0, url_join_1.default)(this.options.environment, "/registry/check-permissions"),
77
- method: "POST",
78
- headers: {
79
- Authorization: core.BearerToken.toAuthorizationHeader(await core.Supplier.get(this.options.token)),
80
- },
81
- body: await serializers.CheckRegistryPermissionRequest.jsonOrThrow(request),
82
110
  });
83
- if (_response.ok) {
111
+ }
112
+ /**
113
+ * @param {FernVenusApi.CheckRegistryPermissionRequest} request
114
+ * @param {Registry.RequestOptions} requestOptions - Request-specific configuration.
115
+ *
116
+ * @example
117
+ * await client.registry.hasRegistryPermission({
118
+ * organizationId: FernVenusApi.OrganizationId("string"),
119
+ * token: {
120
+ * type: "npm",
121
+ * token: "string"
122
+ * }
123
+ * })
124
+ */
125
+ hasRegistryPermission(request, requestOptions) {
126
+ var _a;
127
+ return __awaiter(this, void 0, void 0, function* () {
128
+ const _response = yield core.fetcher({
129
+ url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), "/registry/check-permissions"),
130
+ method: "POST",
131
+ headers: {
132
+ Authorization: yield this._getAuthorizationHeader(),
133
+ "X-Fern-Language": "JavaScript",
134
+ "X-Fern-SDK-Name": "@fern-api/venus-api-sdk",
135
+ "X-Fern-SDK-Version": "0.10.1-2-g8c943d4",
136
+ "X-Fern-Runtime": core.RUNTIME.type,
137
+ "X-Fern-Runtime-Version": core.RUNTIME.version,
138
+ },
139
+ contentType: "application/json",
140
+ requestType: "json",
141
+ body: serializers.CheckRegistryPermissionRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
142
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
143
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
144
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
145
+ });
146
+ if (_response.ok) {
147
+ return {
148
+ ok: true,
149
+ body: serializers.registry.hasRegistryPermission.Response.parseOrThrow(_response.body, {
150
+ unrecognizedObjectKeys: "passthrough",
151
+ allowUnrecognizedUnionMembers: true,
152
+ allowUnrecognizedEnumValues: true,
153
+ breadcrumbsPrefix: ["response"],
154
+ }),
155
+ };
156
+ }
157
+ if (_response.error.reason === "status-code") {
158
+ switch ((_a = _response.error.body) === null || _a === void 0 ? void 0 : _a.error) {
159
+ case "UnauthorizedError":
160
+ case "OrganizationNotFoundError":
161
+ return {
162
+ ok: false,
163
+ error: serializers.registry.hasRegistryPermission.Error.parseOrThrow(_response.error.body, {
164
+ unrecognizedObjectKeys: "passthrough",
165
+ allowUnrecognizedUnionMembers: true,
166
+ allowUnrecognizedEnumValues: true,
167
+ breadcrumbsPrefix: ["response"],
168
+ }),
169
+ };
170
+ }
171
+ }
84
172
  return {
85
- ok: true,
86
- body: await serializers.registry.hasRegistryPermission.Response.parseOrThrow(_response.body, { allowUnknownKeys: true }),
173
+ ok: false,
174
+ error: FernVenusApi.registry.hasRegistryPermission.Error._unknown(_response.error),
87
175
  };
88
- }
89
- if (_response.error.reason === "status-code") {
90
- switch (_response.error.body?.error) {
91
- case "UnauthorizedError":
92
- case "OrganizationNotFoundError":
93
- return {
94
- ok: false,
95
- error: await serializers.registry.hasRegistryPermission.Error.parseOrThrow(_response.error.body, { allowUnknownKeys: true }),
96
- };
97
- }
98
- }
99
- return {
100
- ok: false,
101
- error: venus_api_sdk_1.FernVenusApi.registry.hasRegistryPermission.Error._unknown(_response.error),
102
- };
103
- }
104
- async revokeToken(request) {
105
- const _response = await core.fetcher({
106
- url: (0, url_join_1.default)(this.options.environment, "/registry/revoke-token"),
107
- method: "POST",
108
- headers: {
109
- Authorization: core.BearerToken.toAuthorizationHeader(await core.Supplier.get(this.options.token)),
110
- },
111
- body: await serializers.RevokeTokenRequest.jsonOrThrow(request),
112
176
  });
113
- if (_response.ok) {
177
+ }
178
+ /**
179
+ * @param {FernVenusApi.RevokeTokenRequest} request
180
+ * @param {Registry.RequestOptions} requestOptions - Request-specific configuration.
181
+ *
182
+ * @example
183
+ * await client.registry.revokeToken({
184
+ * organizationId: FernVenusApi.OrganizationId("string"),
185
+ * token: "string"
186
+ * })
187
+ */
188
+ revokeToken(request, requestOptions) {
189
+ var _a;
190
+ return __awaiter(this, void 0, void 0, function* () {
191
+ const _response = yield core.fetcher({
192
+ url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), "/registry/revoke-token"),
193
+ method: "POST",
194
+ headers: {
195
+ Authorization: yield this._getAuthorizationHeader(),
196
+ "X-Fern-Language": "JavaScript",
197
+ "X-Fern-SDK-Name": "@fern-api/venus-api-sdk",
198
+ "X-Fern-SDK-Version": "0.10.1-2-g8c943d4",
199
+ "X-Fern-Runtime": core.RUNTIME.type,
200
+ "X-Fern-Runtime-Version": core.RUNTIME.version,
201
+ },
202
+ contentType: "application/json",
203
+ requestType: "json",
204
+ body: serializers.RevokeTokenRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
205
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
206
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
207
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
208
+ });
209
+ if (_response.ok) {
210
+ return {
211
+ ok: true,
212
+ body: undefined,
213
+ };
214
+ }
215
+ if (_response.error.reason === "status-code") {
216
+ switch ((_a = _response.error.body) === null || _a === void 0 ? void 0 : _a.error) {
217
+ case "UnauthorizedError":
218
+ case "OrganizationNotFoundError":
219
+ return {
220
+ ok: false,
221
+ error: serializers.registry.revokeToken.Error.parseOrThrow(_response.error.body, {
222
+ unrecognizedObjectKeys: "passthrough",
223
+ allowUnrecognizedUnionMembers: true,
224
+ allowUnrecognizedEnumValues: true,
225
+ breadcrumbsPrefix: ["response"],
226
+ }),
227
+ };
228
+ }
229
+ }
114
230
  return {
115
- ok: true,
116
- body: undefined,
231
+ ok: false,
232
+ error: FernVenusApi.registry.revokeToken.Error._unknown(_response.error),
117
233
  };
118
- }
119
- if (_response.error.reason === "status-code") {
120
- switch (_response.error.body?.error) {
121
- case "UnauthorizedError":
122
- case "OrganizationNotFoundError":
123
- return {
124
- ok: false,
125
- error: await serializers.registry.revokeToken.Error.parseOrThrow(_response.error.body, { allowUnknownKeys: true }),
126
- };
234
+ });
235
+ }
236
+ _getAuthorizationHeader() {
237
+ return __awaiter(this, void 0, void 0, function* () {
238
+ const bearer = yield core.Supplier.get(this._options.token);
239
+ if (bearer != null) {
240
+ return `Bearer ${bearer}`;
127
241
  }
128
- }
129
- return {
130
- ok: false,
131
- error: venus_api_sdk_1.FernVenusApi.registry.revokeToken.Error._unknown(_response.error),
132
- };
242
+ return undefined;
243
+ });
133
244
  }
134
245
  }
135
246
  exports.Registry = Registry;
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import { FernVenusApi } from "../../../..";
4
+ import * as FernVenusApi from "../../../index";
5
5
  import * as core from "../../../../core";
6
6
  export declare type Error = FernVenusApi.registry.generateRegistryTokens.Error.UnauthorizedError | FernVenusApi.registry.generateRegistryTokens.Error.OrganizationNotFoundError | FernVenusApi.registry.generateRegistryTokens.Error._Unknown;
7
7
  export declare namespace Error {
@@ -2,15 +2,38 @@
2
2
  /**
3
3
  * This file was auto-generated by Fern from our API Definition.
4
4
  */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
5
28
  Object.defineProperty(exports, "__esModule", { value: true });
6
29
  exports.Error = void 0;
7
- const venus_api_sdk_1 = require("../../../..");
30
+ const FernVenusApi = __importStar(require("../../../index"));
8
31
  exports.Error = {
9
32
  unauthorizedError: () => {
10
33
  return {
11
34
  error: "UnauthorizedError",
12
35
  _visit: function (visitor) {
13
- return venus_api_sdk_1.FernVenusApi.registry.generateRegistryTokens.Error._visit(this, visitor);
36
+ return FernVenusApi.registry.generateRegistryTokens.Error._visit(this, visitor);
14
37
  },
15
38
  };
16
39
  },
@@ -18,7 +41,7 @@ exports.Error = {
18
41
  return {
19
42
  error: "OrganizationNotFoundError",
20
43
  _visit: function (visitor) {
21
- return venus_api_sdk_1.FernVenusApi.registry.generateRegistryTokens.Error._visit(this, visitor);
44
+ return FernVenusApi.registry.generateRegistryTokens.Error._visit(this, visitor);
22
45
  },
23
46
  };
24
47
  },
@@ -27,7 +50,7 @@ exports.Error = {
27
50
  error: undefined,
28
51
  content: fetcherError,
29
52
  _visit: function (visitor) {
30
- return venus_api_sdk_1.FernVenusApi.registry.generateRegistryTokens.Error._visit(this, visitor);
53
+ return FernVenusApi.registry.generateRegistryTokens.Error._visit(this, visitor);
31
54
  },
32
55
  };
33
56
  },
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import { FernVenusApi } from "../../../..";
4
+ import * as FernVenusApi from "../../../index";
5
5
  import * as core from "../../../../core";
6
6
  export declare type Error = FernVenusApi.registry.hasRegistryPermission.Error.UnauthorizedError | FernVenusApi.registry.hasRegistryPermission.Error.OrganizationNotFoundError | FernVenusApi.registry.hasRegistryPermission.Error._Unknown;
7
7
  export declare namespace Error {
@@ -2,15 +2,38 @@
2
2
  /**
3
3
  * This file was auto-generated by Fern from our API Definition.
4
4
  */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
5
28
  Object.defineProperty(exports, "__esModule", { value: true });
6
29
  exports.Error = void 0;
7
- const venus_api_sdk_1 = require("../../../..");
30
+ const FernVenusApi = __importStar(require("../../../index"));
8
31
  exports.Error = {
9
32
  unauthorizedError: () => {
10
33
  return {
11
34
  error: "UnauthorizedError",
12
35
  _visit: function (visitor) {
13
- return venus_api_sdk_1.FernVenusApi.registry.hasRegistryPermission.Error._visit(this, visitor);
36
+ return FernVenusApi.registry.hasRegistryPermission.Error._visit(this, visitor);
14
37
  },
15
38
  };
16
39
  },
@@ -18,7 +41,7 @@ exports.Error = {
18
41
  return {
19
42
  error: "OrganizationNotFoundError",
20
43
  _visit: function (visitor) {
21
- return venus_api_sdk_1.FernVenusApi.registry.hasRegistryPermission.Error._visit(this, visitor);
44
+ return FernVenusApi.registry.hasRegistryPermission.Error._visit(this, visitor);
22
45
  },
23
46
  };
24
47
  },
@@ -27,7 +50,7 @@ exports.Error = {
27
50
  error: undefined,
28
51
  content: fetcherError,
29
52
  _visit: function (visitor) {
30
- return venus_api_sdk_1.FernVenusApi.registry.hasRegistryPermission.Error._visit(this, visitor);
53
+ return FernVenusApi.registry.hasRegistryPermission.Error._visit(this, visitor);
31
54
  },
32
55
  };
33
56
  },
@@ -1,7 +1,17 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import { FernVenusApi } from "../../../../..";
4
+ import * as FernVenusApi from "../../../../index";
5
+ /**
6
+ * @example
7
+ * {
8
+ * organizationId: FernVenusApi.OrganizationId("string"),
9
+ * token: {
10
+ * type: "npm",
11
+ * token: "string"
12
+ * }
13
+ * }
14
+ */
5
15
  export interface CheckRegistryPermissionRequest {
6
16
  organizationId: FernVenusApi.OrganizationId;
7
17
  token?: FernVenusApi.RegistryToken;
@@ -1,7 +1,13 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import { FernVenusApi } from "../../../../..";
4
+ import * as FernVenusApi from "../../../../index";
5
+ /**
6
+ * @example
7
+ * {
8
+ * organizationId: FernVenusApi.OrganizationId("string")
9
+ * }
10
+ */
5
11
  export interface GenerateRegistryTokensRequest {
6
12
  organizationId: FernVenusApi.OrganizationId;
7
13
  }
@@ -1,7 +1,14 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import { FernVenusApi } from "../../../../..";
4
+ import * as FernVenusApi from "../../../../index";
5
+ /**
6
+ * @example
7
+ * {
8
+ * organizationId: FernVenusApi.OrganizationId("string"),
9
+ * token: "string"
10
+ * }
11
+ */
5
12
  export interface RevokeTokenRequest {
6
13
  organizationId: FernVenusApi.OrganizationId;
7
14
  token: string;