@fern-api/venus-api-sdk 0.0.1 → 0.0.3

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 (337) hide show
  1. package/Client.d.ts +23 -0
  2. package/Client.js +28 -0
  3. package/api/index.js +17 -0
  4. package/api/resources/commons/index.js +17 -0
  5. package/api/resources/commons/types/OrganizationId.js +10 -0
  6. package/api/resources/commons/types/UserId.js +10 -0
  7. package/api/resources/commons/types/index.js +18 -0
  8. package/api/resources/index.js +40 -0
  9. package/api/resources/organization/client/Client.d.ts +24 -0
  10. package/api/resources/organization/client/Client.js +214 -0
  11. package/{types/api → api}/resources/organization/client/addUser.d.ts +0 -1
  12. package/api/resources/organization/client/addUser.js +44 -0
  13. package/{types/api → api}/resources/organization/client/create.d.ts +0 -1
  14. package/api/resources/organization/client/create.js +44 -0
  15. package/{types/api → api}/resources/organization/client/get.d.ts +0 -1
  16. package/api/resources/organization/client/get.js +34 -0
  17. package/{types/api → api}/resources/organization/client/getMyOrganizationFromScopedToken.d.ts +0 -1
  18. package/api/resources/organization/client/getMyOrganizationFromScopedToken.js +34 -0
  19. package/api/resources/organization/client/index.js +36 -0
  20. package/{types/api → api}/resources/organization/client/isMember.d.ts +0 -1
  21. package/api/resources/organization/client/isMember.js +24 -0
  22. package/api/resources/organization/client/requests/AddUserToOrgRequest.js +5 -0
  23. package/api/resources/organization/client/requests/CreateOrganizationRequest.js +5 -0
  24. package/api/resources/organization/client/requests/UpdateOrganizationRequest.js +5 -0
  25. package/api/resources/organization/client/requests/index.js +2 -0
  26. package/{types/api → api}/resources/organization/client/update.d.ts +0 -1
  27. package/api/resources/organization/client/update.js +34 -0
  28. package/api/resources/organization/index.js +18 -0
  29. package/api/resources/organization/types/LightweightUser.d.ts +8 -0
  30. package/api/resources/organization/types/LightweightUser.js +5 -0
  31. package/{types/api → api}/resources/organization/types/Organization.d.ts +2 -0
  32. package/api/resources/organization/types/Organization.js +5 -0
  33. package/api/resources/organization/types/index.d.ts +2 -0
  34. package/api/resources/organization/types/index.js +18 -0
  35. package/api/resources/registry/client/Client.d.ts +18 -0
  36. package/api/resources/registry/client/Client.js +135 -0
  37. package/{types/api → api}/resources/registry/client/generateRegistryTokens.d.ts +0 -1
  38. package/api/resources/registry/client/generateRegistryTokens.js +44 -0
  39. package/{types/api → api}/resources/registry/client/hasRegistryPermission.d.ts +0 -1
  40. package/api/resources/registry/client/hasRegistryPermission.js +44 -0
  41. package/api/resources/registry/client/index.js +33 -0
  42. package/api/resources/registry/client/requests/CheckRegistryPermissionRequest.js +5 -0
  43. package/api/resources/registry/client/requests/GenerateRegistryTokensRequest.js +5 -0
  44. package/api/resources/registry/client/requests/RevokeTokenRequest.js +5 -0
  45. package/api/resources/registry/client/requests/index.js +2 -0
  46. package/{types/api → api}/resources/registry/client/revokeToken.d.ts +0 -1
  47. package/api/resources/registry/client/revokeToken.js +44 -0
  48. package/api/resources/registry/index.js +18 -0
  49. package/api/resources/registry/types/MavenRegistryToken.js +5 -0
  50. package/api/resources/registry/types/NpmRegistryToken.js +5 -0
  51. package/api/resources/registry/types/PypiRegistryToken.d.ts +7 -0
  52. package/api/resources/registry/types/PypiRegistryToken.js +5 -0
  53. package/{types/api → api}/resources/registry/types/RegistryToken.d.ts +6 -1
  54. package/api/resources/registry/types/RegistryToken.js +56 -0
  55. package/{types/api → api}/resources/registry/types/RegistryTokens.d.ts +1 -0
  56. package/api/resources/registry/types/RegistryTokens.js +5 -0
  57. package/{types/api → api}/resources/registry/types/index.d.ts +1 -0
  58. package/api/resources/registry/types/index.js +21 -0
  59. package/api/resources/user/client/Client.d.ts +17 -0
  60. package/api/resources/user/client/Client.js +87 -0
  61. package/{types/api → api}/resources/user/client/getMyOrganizations.d.ts +0 -1
  62. package/api/resources/user/client/getMyOrganizations.js +24 -0
  63. package/{types/api → api}/resources/user/client/getMyself.d.ts +0 -1
  64. package/api/resources/user/client/getMyself.js +24 -0
  65. package/api/resources/user/client/index.js +32 -0
  66. package/api/resources/user/client/requests/GetUserOrganizationsRequest.js +5 -0
  67. package/api/resources/user/client/requests/index.js +2 -0
  68. package/api/resources/user/index.js +18 -0
  69. package/api/resources/user/types/OrganizationsPage.js +5 -0
  70. package/api/resources/user/types/User.js +5 -0
  71. package/api/resources/user/types/index.js +18 -0
  72. package/core/auth/BasicAuth.js +26 -0
  73. package/core/auth/BearerToken.js +15 -0
  74. package/core/auth/index.js +7 -0
  75. package/core/fetcher/APIResponse.js +2 -0
  76. package/{types/core → core}/fetcher/Fetcher.d.ts +1 -4
  77. package/core/fetcher/Fetcher.js +85 -0
  78. package/core/fetcher/Supplier.js +13 -0
  79. package/core/fetcher/index.js +7 -0
  80. package/core/index.js +32 -0
  81. package/core/schemas/Schema.d.ts +46 -0
  82. package/core/schemas/Schema.js +19 -0
  83. package/core/schemas/builders/date/date.js +55 -0
  84. package/core/schemas/builders/date/index.js +5 -0
  85. package/core/schemas/builders/enum/enum.d.ts +2 -0
  86. package/core/schemas/builders/enum/enum.js +29 -0
  87. package/core/schemas/builders/enum/index.js +5 -0
  88. package/{types/core → core}/schemas/builders/index.d.ts +0 -1
  89. package/core/schemas/builders/index.js +28 -0
  90. package/core/schemas/builders/lazy/index.js +7 -0
  91. package/core/schemas/builders/lazy/lazy.js +28 -0
  92. package/core/schemas/builders/lazy/lazyObject.js +21 -0
  93. package/core/schemas/builders/list/index.js +5 -0
  94. package/core/schemas/builders/list/list.js +53 -0
  95. package/core/schemas/builders/literals/index.js +5 -0
  96. package/core/schemas/builders/literals/stringLiteral.d.ts +2 -0
  97. package/core/schemas/builders/literals/stringLiteral.js +28 -0
  98. package/core/schemas/builders/object/index.js +9 -0
  99. package/core/schemas/builders/object/object.js +231 -0
  100. package/core/schemas/builders/object/property.js +16 -0
  101. package/{types/core → core}/schemas/builders/object/types.d.ts +5 -4
  102. package/core/schemas/builders/object/types.js +2 -0
  103. package/core/schemas/builders/object-like/getObjectLikeUtils.d.ts +9 -0
  104. package/core/schemas/builders/object-like/getObjectLikeUtils.js +62 -0
  105. package/core/schemas/builders/object-like/index.d.ts +2 -0
  106. package/core/schemas/builders/object-like/index.js +6 -0
  107. package/core/schemas/builders/object-like/types.d.ts +7 -0
  108. package/core/schemas/builders/object-like/types.js +2 -0
  109. package/core/schemas/builders/primitives/any.d.ts +1 -0
  110. package/core/schemas/builders/primitives/any.js +6 -0
  111. package/core/schemas/builders/primitives/boolean.d.ts +1 -0
  112. package/core/schemas/builders/primitives/boolean.js +24 -0
  113. package/core/schemas/builders/primitives/index.js +13 -0
  114. package/core/schemas/builders/primitives/number.d.ts +1 -0
  115. package/core/schemas/builders/primitives/number.js +24 -0
  116. package/core/schemas/builders/primitives/string.d.ts +1 -0
  117. package/core/schemas/builders/primitives/string.js +24 -0
  118. package/core/schemas/builders/primitives/unknown.d.ts +1 -0
  119. package/core/schemas/builders/primitives/unknown.js +6 -0
  120. package/core/schemas/builders/record/index.d.ts +2 -0
  121. package/core/schemas/builders/record/index.js +5 -0
  122. package/core/schemas/builders/record/record.d.ts +3 -0
  123. package/core/schemas/builders/record/record.js +91 -0
  124. package/core/schemas/builders/record/types.d.ts +5 -0
  125. package/core/schemas/builders/record/types.js +2 -0
  126. package/core/schemas/builders/schema-utils/JsonError.d.ts +5 -0
  127. package/core/schemas/builders/schema-utils/JsonError.js +13 -0
  128. package/core/schemas/builders/schema-utils/ParseError.d.ts +5 -0
  129. package/core/schemas/builders/schema-utils/ParseError.js +13 -0
  130. package/core/schemas/builders/schema-utils/getSchemaUtils.d.ts +17 -0
  131. package/core/schemas/builders/schema-utils/getSchemaUtils.js +82 -0
  132. package/{types/core → core}/schemas/builders/schema-utils/index.d.ts +2 -1
  133. package/core/schemas/builders/schema-utils/index.js +11 -0
  134. package/core/schemas/builders/schema-utils/stringifyValidationErrors.d.ts +2 -0
  135. package/core/schemas/builders/schema-utils/stringifyValidationErrors.js +10 -0
  136. package/core/schemas/builders/set/index.js +5 -0
  137. package/core/schemas/builders/set/set.js +44 -0
  138. package/core/schemas/builders/union/discriminant.js +10 -0
  139. package/core/schemas/builders/union/index.js +7 -0
  140. package/core/schemas/builders/union/types.js +2 -0
  141. package/core/schemas/builders/union/union.js +100 -0
  142. package/core/schemas/index.js +17 -0
  143. package/core/schemas/utils/MaybePromise.d.ts +1 -0
  144. package/core/schemas/utils/MaybePromise.js +2 -0
  145. package/core/schemas/utils/OptionalRecord.d.ts +1 -0
  146. package/core/schemas/utils/OptionalRecord.js +2 -0
  147. package/core/schemas/utils/addQuestionMarksToNullableProperties.d.ts +7 -0
  148. package/core/schemas/utils/addQuestionMarksToNullableProperties.js +2 -0
  149. package/core/schemas/utils/createIdentitySchemaCreator.d.ts +2 -0
  150. package/core/schemas/utils/createIdentitySchemaCreator.js +18 -0
  151. package/core/schemas/utils/entries.js +7 -0
  152. package/core/schemas/utils/filterObject.js +14 -0
  153. package/core/schemas/utils/isPlainObject.d.ts +2 -0
  154. package/core/schemas/utils/isPlainObject.js +19 -0
  155. package/core/schemas/utils/keys.js +7 -0
  156. package/core/schemas/utils/partition.js +16 -0
  157. package/index.js +29 -0
  158. package/package.json +20 -44
  159. package/serialization/index.js +17 -0
  160. package/serialization/resources/commons/index.js +17 -0
  161. package/serialization/resources/commons/types/OrganizationId.js +35 -0
  162. package/serialization/resources/commons/types/UserId.js +37 -0
  163. package/serialization/resources/commons/types/index.js +18 -0
  164. package/{types/serialization → serialization}/resources/index.d.ts +2 -0
  165. package/serialization/resources/index.js +39 -0
  166. package/{types/serialization → serialization}/resources/organization/client/addUser.d.ts +0 -7
  167. package/serialization/resources/organization/client/addUser.js +47 -0
  168. package/{types/serialization → serialization}/resources/organization/client/create.d.ts +0 -7
  169. package/serialization/resources/organization/client/create.js +47 -0
  170. package/{types/serialization → serialization}/resources/organization/client/get.d.ts +0 -4
  171. package/serialization/resources/organization/client/get.js +44 -0
  172. package/{types/serialization → serialization}/resources/organization/client/getMyOrganizationFromScopedToken.d.ts +0 -4
  173. package/serialization/resources/organization/client/getMyOrganizationFromScopedToken.js +44 -0
  174. package/{types/serialization → serialization}/resources/organization/client/index.d.ts +1 -0
  175. package/serialization/resources/organization/client/index.js +36 -0
  176. package/serialization/resources/organization/client/isMember.js +31 -0
  177. package/serialization/resources/organization/client/requests/AddUserToOrgRequest.d.ts +13 -0
  178. package/serialization/resources/organization/client/requests/AddUserToOrgRequest.js +34 -0
  179. package/serialization/resources/organization/client/requests/CreateOrganizationRequest.d.ts +13 -0
  180. package/serialization/resources/organization/client/requests/CreateOrganizationRequest.js +34 -0
  181. package/serialization/resources/organization/client/requests/UpdateOrganizationRequest.d.ts +12 -0
  182. package/serialization/resources/organization/client/requests/UpdateOrganizationRequest.js +33 -0
  183. package/serialization/resources/organization/client/requests/index.d.ts +3 -0
  184. package/serialization/resources/organization/client/requests/index.js +9 -0
  185. package/{types/serialization → serialization}/resources/organization/client/update.d.ts +0 -6
  186. package/serialization/resources/organization/client/update.js +44 -0
  187. package/serialization/resources/organization/index.js +18 -0
  188. package/serialization/resources/organization/types/LightweightUser.d.ts +14 -0
  189. package/serialization/resources/organization/types/LightweightUser.js +35 -0
  190. package/{types/serialization → serialization}/resources/organization/types/Organization.d.ts +2 -0
  191. package/serialization/resources/organization/types/Organization.js +36 -0
  192. package/serialization/resources/organization/types/index.d.ts +2 -0
  193. package/serialization/resources/organization/types/index.js +18 -0
  194. package/{types/serialization → serialization}/resources/registry/client/generateRegistryTokens.d.ts +0 -10
  195. package/serialization/resources/registry/client/generateRegistryTokens.js +47 -0
  196. package/{types/serialization → serialization}/resources/registry/client/hasRegistryPermission.d.ts +1 -8
  197. package/serialization/resources/registry/client/hasRegistryPermission.js +48 -0
  198. package/{types/serialization → serialization}/resources/registry/client/index.d.ts +1 -0
  199. package/serialization/resources/registry/client/index.js +33 -0
  200. package/serialization/resources/registry/client/requests/CheckRegistryPermissionRequest.d.ts +13 -0
  201. package/serialization/resources/registry/client/requests/CheckRegistryPermissionRequest.js +34 -0
  202. package/serialization/resources/registry/client/requests/GenerateRegistryTokensRequest.d.ts +12 -0
  203. package/serialization/resources/registry/client/requests/GenerateRegistryTokensRequest.js +33 -0
  204. package/serialization/resources/registry/client/requests/RevokeTokenRequest.d.ts +13 -0
  205. package/serialization/resources/registry/client/requests/RevokeTokenRequest.js +34 -0
  206. package/serialization/resources/registry/client/requests/index.d.ts +3 -0
  207. package/serialization/resources/registry/client/requests/index.js +9 -0
  208. package/{types/serialization → serialization}/resources/registry/client/revokeToken.d.ts +0 -7
  209. package/serialization/resources/registry/client/revokeToken.js +47 -0
  210. package/serialization/resources/registry/index.js +18 -0
  211. package/serialization/resources/registry/types/MavenRegistryToken.js +34 -0
  212. package/serialization/resources/registry/types/NpmRegistryToken.js +33 -0
  213. package/serialization/resources/registry/types/PypiRegistryToken.d.ts +13 -0
  214. package/serialization/resources/registry/types/PypiRegistryToken.js +34 -0
  215. package/{types/serialization → serialization}/resources/registry/types/RegistryToken.d.ts +4 -1
  216. package/serialization/resources/registry/types/RegistryToken.js +52 -0
  217. package/{types/serialization → serialization}/resources/registry/types/RegistryTokens.d.ts +1 -0
  218. package/serialization/resources/registry/types/RegistryTokens.js +35 -0
  219. package/{types/serialization → serialization}/resources/registry/types/index.d.ts +1 -0
  220. package/serialization/resources/registry/types/index.js +21 -0
  221. package/serialization/resources/user/index.d.ts +1 -0
  222. package/serialization/resources/user/index.js +17 -0
  223. package/serialization/resources/user/types/OrganizationsPage.js +34 -0
  224. package/serialization/resources/user/types/User.js +36 -0
  225. package/serialization/resources/user/types/index.js +18 -0
  226. package/core.d.ts +0 -3
  227. package/dist/browser/cjs/core.js +0 -4286
  228. package/dist/browser/cjs/index.js +0 -6332
  229. package/dist/browser/cjs/serialization.js +0 -5852
  230. package/dist/browser/esm/core.js +0 -4280
  231. package/dist/browser/esm/index.js +0 -6328
  232. package/dist/browser/esm/serialization.js +0 -5864
  233. package/dist/node/core.js +0 -12643
  234. package/dist/node/index.js +0 -14715
  235. package/dist/node/serialization.js +0 -14721
  236. package/serialization.d.ts +0 -3
  237. package/types/Client.d.ts +0 -21
  238. package/types/api/resources/organization/client/Client.d.ts +0 -24
  239. package/types/api/resources/organization/types/index.d.ts +0 -1
  240. package/types/api/resources/registry/client/Client.d.ts +0 -18
  241. package/types/api/resources/user/client/Client.d.ts +0 -17
  242. package/types/core/schemas/Schema.d.ts +0 -18
  243. package/types/core/schemas/builders/enum/enum.d.ts +0 -2
  244. package/types/core/schemas/builders/identity/createIdentitySchemaCreator.d.ts +0 -2
  245. package/types/core/schemas/builders/identity/identity.d.ts +0 -2
  246. package/types/core/schemas/builders/identity/index.d.ts +0 -2
  247. package/types/core/schemas/builders/literals/stringLiteral.d.ts +0 -2
  248. package/types/core/schemas/builders/object-like/getObjectLikeUtils.d.ts +0 -8
  249. package/types/core/schemas/builders/object-like/index.d.ts +0 -2
  250. package/types/core/schemas/builders/object-like/types.d.ts +0 -13
  251. package/types/core/schemas/builders/primitives/any.d.ts +0 -1
  252. package/types/core/schemas/builders/primitives/boolean.d.ts +0 -1
  253. package/types/core/schemas/builders/primitives/number.d.ts +0 -1
  254. package/types/core/schemas/builders/primitives/string.d.ts +0 -1
  255. package/types/core/schemas/builders/primitives/unknown.d.ts +0 -1
  256. package/types/core/schemas/builders/record/index.d.ts +0 -1
  257. package/types/core/schemas/builders/record/record.d.ts +0 -2
  258. package/types/core/schemas/builders/schema-utils/getSchemaUtils.d.ts +0 -12
  259. package/types/core/schemas/builders/schema-utils/types.d.ts +0 -7
  260. package/types/core/schemas/utils/addQuestionMarksToNullableProperties.d.ts +0 -9
  261. package/types/serialization/resources/organization/types/index.d.ts +0 -1
  262. package/types/serialization/resources/user/client/getMyOrganizations.d.ts +0 -10
  263. package/types/serialization/resources/user/client/getMyself.d.ts +0 -10
  264. package/types/serialization/resources/user/client/index.d.ts +0 -2
  265. package/types/serialization/resources/user/index.d.ts +0 -2
  266. /package/{types/api → api}/index.d.ts +0 -0
  267. /package/{types/api → api}/resources/commons/index.d.ts +0 -0
  268. /package/{types/api → api}/resources/commons/types/OrganizationId.d.ts +0 -0
  269. /package/{types/api → api}/resources/commons/types/UserId.d.ts +0 -0
  270. /package/{types/api → api}/resources/commons/types/index.d.ts +0 -0
  271. /package/{types/api → api}/resources/index.d.ts +0 -0
  272. /package/{types/api → api}/resources/organization/client/index.d.ts +0 -0
  273. /package/{types/api → api}/resources/organization/client/requests/AddUserToOrgRequest.d.ts +0 -0
  274. /package/{types/api → api}/resources/organization/client/requests/CreateOrganizationRequest.d.ts +0 -0
  275. /package/{types/api → api}/resources/organization/client/requests/UpdateOrganizationRequest.d.ts +0 -0
  276. /package/{types/api → api}/resources/organization/client/requests/index.d.ts +0 -0
  277. /package/{types/api → api}/resources/organization/index.d.ts +0 -0
  278. /package/{types/api → api}/resources/registry/client/index.d.ts +0 -0
  279. /package/{types/api → api}/resources/registry/client/requests/CheckRegistryPermissionRequest.d.ts +0 -0
  280. /package/{types/api → api}/resources/registry/client/requests/GenerateRegistryTokensRequest.d.ts +0 -0
  281. /package/{types/api → api}/resources/registry/client/requests/RevokeTokenRequest.d.ts +0 -0
  282. /package/{types/api → api}/resources/registry/client/requests/index.d.ts +0 -0
  283. /package/{types/api → api}/resources/registry/index.d.ts +0 -0
  284. /package/{types/api → api}/resources/registry/types/MavenRegistryToken.d.ts +0 -0
  285. /package/{types/api → api}/resources/registry/types/NpmRegistryToken.d.ts +0 -0
  286. /package/{types/api → api}/resources/user/client/index.d.ts +0 -0
  287. /package/{types/api → api}/resources/user/client/requests/GetUserOrganizationsRequest.d.ts +0 -0
  288. /package/{types/api → api}/resources/user/client/requests/index.d.ts +0 -0
  289. /package/{types/api → api}/resources/user/index.d.ts +0 -0
  290. /package/{types/api → api}/resources/user/types/OrganizationsPage.d.ts +0 -0
  291. /package/{types/api → api}/resources/user/types/User.d.ts +0 -0
  292. /package/{types/api → api}/resources/user/types/index.d.ts +0 -0
  293. /package/{types/core → core}/auth/BasicAuth.d.ts +0 -0
  294. /package/{types/core → core}/auth/BearerToken.d.ts +0 -0
  295. /package/{types/core → core}/auth/index.d.ts +0 -0
  296. /package/{types/core → core}/fetcher/APIResponse.d.ts +0 -0
  297. /package/{types/core → core}/fetcher/Supplier.d.ts +0 -0
  298. /package/{types/core → core}/fetcher/index.d.ts +0 -0
  299. /package/{types/core → core}/index.d.ts +0 -0
  300. /package/{types/core → core}/schemas/builders/date/date.d.ts +0 -0
  301. /package/{types/core → core}/schemas/builders/date/index.d.ts +0 -0
  302. /package/{types/core → core}/schemas/builders/enum/index.d.ts +0 -0
  303. /package/{types/core → core}/schemas/builders/lazy/index.d.ts +0 -0
  304. /package/{types/core → core}/schemas/builders/lazy/lazy.d.ts +0 -0
  305. /package/{types/core → core}/schemas/builders/lazy/lazyObject.d.ts +0 -0
  306. /package/{types/core → core}/schemas/builders/list/index.d.ts +0 -0
  307. /package/{types/core → core}/schemas/builders/list/list.d.ts +0 -0
  308. /package/{types/core → core}/schemas/builders/literals/index.d.ts +0 -0
  309. /package/{types/core → core}/schemas/builders/object/index.d.ts +0 -0
  310. /package/{types/core → core}/schemas/builders/object/object.d.ts +0 -0
  311. /package/{types/core → core}/schemas/builders/object/property.d.ts +0 -0
  312. /package/{types/core → core}/schemas/builders/primitives/index.d.ts +0 -0
  313. /package/{types/core → core}/schemas/builders/set/index.d.ts +0 -0
  314. /package/{types/core → core}/schemas/builders/set/set.d.ts +0 -0
  315. /package/{types/core → core}/schemas/builders/union/discriminant.d.ts +0 -0
  316. /package/{types/core → core}/schemas/builders/union/index.d.ts +0 -0
  317. /package/{types/core → core}/schemas/builders/union/types.d.ts +0 -0
  318. /package/{types/core → core}/schemas/builders/union/union.d.ts +0 -0
  319. /package/{types/core → core}/schemas/index.d.ts +0 -0
  320. /package/{types/core → core}/schemas/utils/entries.d.ts +0 -0
  321. /package/{types/core → core}/schemas/utils/filterObject.d.ts +0 -0
  322. /package/{types/core → core}/schemas/utils/keys.d.ts +0 -0
  323. /package/{types/core → core}/schemas/utils/partition.d.ts +0 -0
  324. /package/{types/index.d.ts → index.d.ts} +0 -0
  325. /package/{types/serialization → serialization}/index.d.ts +0 -0
  326. /package/{types/serialization → serialization}/resources/commons/index.d.ts +0 -0
  327. /package/{types/serialization → serialization}/resources/commons/types/OrganizationId.d.ts +0 -0
  328. /package/{types/serialization → serialization}/resources/commons/types/UserId.d.ts +0 -0
  329. /package/{types/serialization → serialization}/resources/commons/types/index.d.ts +0 -0
  330. /package/{types/serialization → serialization}/resources/organization/client/isMember.d.ts +0 -0
  331. /package/{types/serialization → serialization}/resources/organization/index.d.ts +0 -0
  332. /package/{types/serialization → serialization}/resources/registry/index.d.ts +0 -0
  333. /package/{types/serialization → serialization}/resources/registry/types/MavenRegistryToken.d.ts +0 -0
  334. /package/{types/serialization → serialization}/resources/registry/types/NpmRegistryToken.d.ts +0 -0
  335. /package/{types/serialization → serialization}/resources/user/types/OrganizationsPage.d.ts +0 -0
  336. /package/{types/serialization → serialization}/resources/user/types/User.d.ts +0 -0
  337. /package/{types/serialization → serialization}/resources/user/types/index.d.ts +0 -0
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
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
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.CheckRegistryPermissionRequest = void 0;
30
+ const core = __importStar(require("../../../../../core"));
31
+ exports.CheckRegistryPermissionRequest = core.serialization.object({
32
+ organizationId: core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../..")))).OrganizationId),
33
+ token: core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../..")))).RegistryToken).optional(),
34
+ });
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../..";
5
+ import { FernVenusApi } from "../../../../..";
6
+ import * as core from "../../../../../core";
7
+ export declare const GenerateRegistryTokensRequest: core.serialization.Schema<serializers.GenerateRegistryTokensRequest.Raw, FernVenusApi.GenerateRegistryTokensRequest>;
8
+ export declare namespace GenerateRegistryTokensRequest {
9
+ interface Raw {
10
+ organizationId: serializers.OrganizationId.Raw;
11
+ }
12
+ }
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
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
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.GenerateRegistryTokensRequest = void 0;
30
+ const core = __importStar(require("../../../../../core"));
31
+ exports.GenerateRegistryTokensRequest = core.serialization.object({
32
+ organizationId: core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../..")))).OrganizationId),
33
+ });
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../..";
5
+ import { FernVenusApi } from "../../../../..";
6
+ import * as core from "../../../../../core";
7
+ export declare const RevokeTokenRequest: core.serialization.Schema<serializers.RevokeTokenRequest.Raw, FernVenusApi.RevokeTokenRequest>;
8
+ export declare namespace RevokeTokenRequest {
9
+ interface Raw {
10
+ organizationId: serializers.OrganizationId.Raw;
11
+ token: string;
12
+ }
13
+ }
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
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
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.RevokeTokenRequest = void 0;
30
+ const core = __importStar(require("../../../../../core"));
31
+ exports.RevokeTokenRequest = core.serialization.object({
32
+ organizationId: core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../..")))).OrganizationId),
33
+ token: core.serialization.string(),
34
+ });
@@ -0,0 +1,3 @@
1
+ export { GenerateRegistryTokensRequest } from "./GenerateRegistryTokensRequest";
2
+ export { CheckRegistryPermissionRequest } from "./CheckRegistryPermissionRequest";
3
+ export { RevokeTokenRequest } from "./RevokeTokenRequest";
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RevokeTokenRequest = exports.CheckRegistryPermissionRequest = exports.GenerateRegistryTokensRequest = void 0;
4
+ var GenerateRegistryTokensRequest_1 = require("./GenerateRegistryTokensRequest");
5
+ Object.defineProperty(exports, "GenerateRegistryTokensRequest", { enumerable: true, get: function () { return GenerateRegistryTokensRequest_1.GenerateRegistryTokensRequest; } });
6
+ var CheckRegistryPermissionRequest_1 = require("./CheckRegistryPermissionRequest");
7
+ Object.defineProperty(exports, "CheckRegistryPermissionRequest", { enumerable: true, get: function () { return CheckRegistryPermissionRequest_1.CheckRegistryPermissionRequest; } });
8
+ var RevokeTokenRequest_1 = require("./RevokeTokenRequest");
9
+ Object.defineProperty(exports, "RevokeTokenRequest", { enumerable: true, get: function () { return RevokeTokenRequest_1.RevokeTokenRequest; } });
@@ -4,13 +4,6 @@
4
4
  import * as serializers from "../../..";
5
5
  import { FernVenusApi } from "../../../..";
6
6
  import * as core from "../../../../core";
7
- export declare const Request: core.serialization.Schema<serializers.registry.revokeToken.Request.Raw, FernVenusApi.RevokeTokenRequest>;
8
- export declare namespace Request {
9
- interface Raw {
10
- organizationId: serializers.OrganizationId.Raw;
11
- token: string;
12
- }
13
- }
14
7
  export declare const Error: core.serialization.Schema<serializers.registry.revokeToken.Error.Raw, FernVenusApi.registry.revokeToken.Error>;
15
8
  export declare namespace Error {
16
9
  type Raw = Error.UnauthorizedError | Error.OrganizationNotFoundError;
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
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
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.Error = void 0;
30
+ const venus_api_sdk_1 = require("../../../..");
31
+ const core = __importStar(require("../../../../core"));
32
+ exports.Error = core.serialization
33
+ .union("error", {
34
+ UnauthorizedError: core.serialization.object({}),
35
+ OrganizationNotFoundError: core.serialization.object({}),
36
+ })
37
+ .transform({
38
+ transform: (value) => {
39
+ switch (value.error) {
40
+ case "UnauthorizedError":
41
+ return venus_api_sdk_1.FernVenusApi.registry.revokeToken.Error.unauthorizedError();
42
+ case "OrganizationNotFoundError":
43
+ return venus_api_sdk_1.FernVenusApi.registry.revokeToken.Error.organizationNotFoundError();
44
+ }
45
+ },
46
+ untransform: ({ _visit, ...value }) => value,
47
+ });
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./types"), exports);
18
+ __exportStar(require("./client"), exports);
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
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
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.MavenRegistryToken = void 0;
30
+ const core = __importStar(require("../../../../core"));
31
+ exports.MavenRegistryToken = core.serialization.object({
32
+ username: core.serialization.string(),
33
+ password: core.serialization.string(),
34
+ });
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
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
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.NpmRegistryToken = void 0;
30
+ const core = __importStar(require("../../../../core"));
31
+ exports.NpmRegistryToken = core.serialization.object({
32
+ token: core.serialization.string(),
33
+ });
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../..";
5
+ import { FernVenusApi } from "../../../..";
6
+ import * as core from "../../../../core";
7
+ export declare const PypiRegistryToken: core.serialization.ObjectSchema<serializers.PypiRegistryToken.Raw, FernVenusApi.PypiRegistryToken>;
8
+ export declare namespace PypiRegistryToken {
9
+ interface Raw {
10
+ username: string;
11
+ password: string;
12
+ }
13
+ }
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
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
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.PypiRegistryToken = void 0;
30
+ const core = __importStar(require("../../../../core"));
31
+ exports.PypiRegistryToken = core.serialization.object({
32
+ username: core.serialization.string(),
33
+ password: core.serialization.string(),
34
+ });
@@ -6,11 +6,14 @@ import { FernVenusApi } from "../../../..";
6
6
  import * as core from "../../../../core";
7
7
  export declare const RegistryToken: core.serialization.Schema<serializers.RegistryToken.Raw, FernVenusApi.RegistryToken>;
8
8
  export declare namespace RegistryToken {
9
- type Raw = RegistryToken.Npm | RegistryToken.Maven;
9
+ type Raw = RegistryToken.Npm | RegistryToken.Maven | RegistryToken.Pypi;
10
10
  interface Npm extends serializers.NpmRegistryToken.Raw {
11
11
  type: "npm";
12
12
  }
13
13
  interface Maven extends serializers.MavenRegistryToken.Raw {
14
14
  type: "maven";
15
15
  }
16
+ interface Pypi extends serializers.PypiRegistryToken.Raw {
17
+ type: "pypi";
18
+ }
16
19
  }
@@ -0,0 +1,52 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
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
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.RegistryToken = void 0;
30
+ const venus_api_sdk_1 = require("../../../..");
31
+ const core = __importStar(require("../../../../core"));
32
+ exports.RegistryToken = core.serialization
33
+ .union("type", {
34
+ npm: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../..")))).NpmRegistryToken),
35
+ maven: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../..")))).MavenRegistryToken),
36
+ pypi: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../..")))).PypiRegistryToken),
37
+ })
38
+ .transform({
39
+ transform: (value) => {
40
+ switch (value.type) {
41
+ case "npm":
42
+ return venus_api_sdk_1.FernVenusApi.RegistryToken.npm(value);
43
+ case "maven":
44
+ return venus_api_sdk_1.FernVenusApi.RegistryToken.maven(value);
45
+ case "pypi":
46
+ return venus_api_sdk_1.FernVenusApi.RegistryToken.pypi(value);
47
+ default:
48
+ return venus_api_sdk_1.FernVenusApi.RegistryToken._unknown(value);
49
+ }
50
+ },
51
+ untransform: ({ _visit, ...value }) => value,
52
+ });
@@ -9,5 +9,6 @@ export declare namespace RegistryTokens {
9
9
  interface Raw {
10
10
  npm: serializers.NpmRegistryToken.Raw;
11
11
  maven: serializers.MavenRegistryToken.Raw;
12
+ pypi: serializers.PypiRegistryToken.Raw;
12
13
  }
13
14
  }
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
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
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.RegistryTokens = void 0;
30
+ const core = __importStar(require("../../../../core"));
31
+ exports.RegistryTokens = core.serialization.object({
32
+ npm: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../..")))).NpmRegistryToken),
33
+ maven: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../..")))).MavenRegistryToken),
34
+ pypi: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../..")))).PypiRegistryToken),
35
+ });
@@ -1,4 +1,5 @@
1
1
  export * from "./RegistryTokens";
2
2
  export * from "./NpmRegistryToken";
3
3
  export * from "./MavenRegistryToken";
4
+ export * from "./PypiRegistryToken";
4
5
  export * from "./RegistryToken";
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./RegistryTokens"), exports);
18
+ __exportStar(require("./NpmRegistryToken"), exports);
19
+ __exportStar(require("./MavenRegistryToken"), exports);
20
+ __exportStar(require("./PypiRegistryToken"), exports);
21
+ __exportStar(require("./RegistryToken"), exports);
@@ -0,0 +1 @@
1
+ export * from "./types";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./types"), exports);
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
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
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.OrganizationsPage = void 0;
30
+ const core = __importStar(require("../../../../core"));
31
+ exports.OrganizationsPage = core.serialization.object({
32
+ organizations: core.serialization.list(core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../..")))).OrganizationId)),
33
+ nextPage: core.serialization.number().optional(),
34
+ });
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
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
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.User = void 0;
30
+ const core = __importStar(require("../../../../core"));
31
+ exports.User = core.serialization.object({
32
+ userId: core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../..")))).UserId),
33
+ username: core.serialization.string(),
34
+ email: core.serialization.string().optional(),
35
+ createdAt: core.serialization.property("created_at", core.serialization.date().optional()),
36
+ });
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./User"), exports);
18
+ __exportStar(require("./OrganizationsPage"), exports);
package/core.d.ts DELETED
@@ -1,3 +0,0 @@
1
- // this is needed for older versions of TypeScript
2
- // that don't read the "exports" field in package.json
3
- export * from "./types/core";