@polar-sh/sdk 0.32.7 → 0.32.8

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 (506) hide show
  1. package/FUNCTIONS.md +2 -6
  2. package/README.md +7 -49
  3. package/bin/mcp-server.js +127 -20
  4. package/bin/mcp-server.js.map +13 -11
  5. package/dist/commonjs/funcs/eventsList.js +1 -0
  6. package/dist/commonjs/funcs/eventsList.js.map +1 -1
  7. package/dist/commonjs/lib/config.d.ts +3 -3
  8. package/dist/commonjs/lib/config.js +3 -3
  9. package/dist/commonjs/lib/matchers.d.ts +3 -1
  10. package/dist/commonjs/lib/matchers.d.ts.map +1 -1
  11. package/dist/commonjs/lib/matchers.js +12 -0
  12. package/dist/commonjs/lib/matchers.js.map +1 -1
  13. package/dist/commonjs/lib/sdks.js +7 -2
  14. package/dist/commonjs/lib/sdks.js.map +1 -1
  15. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  16. package/dist/commonjs/mcp-server/server.js +1 -1
  17. package/dist/commonjs/models/components/customerstatesubscription.d.ts +6 -0
  18. package/dist/commonjs/models/components/customerstatesubscription.d.ts.map +1 -1
  19. package/dist/commonjs/models/components/customerstatesubscription.js +3 -0
  20. package/dist/commonjs/models/components/customerstatesubscription.js.map +1 -1
  21. package/dist/commonjs/models/components/customerstatesubscriptionmeter.d.ts +65 -0
  22. package/dist/commonjs/models/components/customerstatesubscriptionmeter.d.ts.map +1 -0
  23. package/dist/commonjs/models/components/customerstatesubscriptionmeter.js +88 -0
  24. package/dist/commonjs/models/components/customerstatesubscriptionmeter.js.map +1 -0
  25. package/dist/commonjs/models/components/customersubscription.d.ts +6 -0
  26. package/dist/commonjs/models/components/customersubscription.d.ts.map +1 -1
  27. package/dist/commonjs/models/components/customersubscription.js +3 -0
  28. package/dist/commonjs/models/components/customersubscription.js.map +1 -1
  29. package/dist/commonjs/models/components/customersubscriptionmeter.d.ts +65 -0
  30. package/dist/commonjs/models/components/customersubscriptionmeter.d.ts.map +1 -0
  31. package/dist/commonjs/models/components/customersubscriptionmeter.js +91 -0
  32. package/dist/commonjs/models/components/customersubscriptionmeter.js.map +1 -0
  33. package/dist/commonjs/models/components/customersubscriptionmetermeter.d.ts +47 -0
  34. package/dist/commonjs/models/components/customersubscriptionmetermeter.d.ts.map +1 -0
  35. package/dist/commonjs/models/components/customersubscriptionmetermeter.js +76 -0
  36. package/dist/commonjs/models/components/customersubscriptionmetermeter.js.map +1 -0
  37. package/dist/commonjs/models/components/eventname.d.ts +3 -0
  38. package/dist/commonjs/models/components/eventname.d.ts.map +1 -1
  39. package/dist/commonjs/models/components/eventname.js +3 -0
  40. package/dist/commonjs/models/components/eventname.js.map +1 -1
  41. package/dist/commonjs/models/components/organization.d.ts +0 -23
  42. package/dist/commonjs/models/components/organization.d.ts.map +1 -1
  43. package/dist/commonjs/models/components/organization.js +0 -17
  44. package/dist/commonjs/models/components/organization.js.map +1 -1
  45. package/dist/commonjs/models/components/organizationupdate.d.ts +0 -41
  46. package/dist/commonjs/models/components/organizationupdate.d.ts.map +1 -1
  47. package/dist/commonjs/models/components/organizationupdate.js +0 -36
  48. package/dist/commonjs/models/components/organizationupdate.js.map +1 -1
  49. package/dist/commonjs/models/components/subscription.d.ts +6 -0
  50. package/dist/commonjs/models/components/subscription.d.ts.map +1 -1
  51. package/dist/commonjs/models/components/subscription.js +3 -0
  52. package/dist/commonjs/models/components/subscription.js.map +1 -1
  53. package/dist/commonjs/models/components/subscriptionmeter.d.ts +68 -0
  54. package/dist/commonjs/models/components/subscriptionmeter.d.ts.map +1 -0
  55. package/dist/commonjs/models/components/subscriptionmeter.js +91 -0
  56. package/dist/commonjs/models/components/subscriptionmeter.js.map +1 -0
  57. package/dist/commonjs/models/operations/benefitslist.d.ts +13 -13
  58. package/dist/commonjs/models/operations/benefitslist.d.ts.map +1 -1
  59. package/dist/commonjs/models/operations/benefitslist.js +16 -16
  60. package/dist/commonjs/models/operations/benefitslist.js.map +1 -1
  61. package/dist/commonjs/models/operations/eventslist.d.ts +5 -0
  62. package/dist/commonjs/models/operations/eventslist.d.ts.map +1 -1
  63. package/dist/commonjs/models/operations/eventslist.js +2 -0
  64. package/dist/commonjs/models/operations/eventslist.js.map +1 -1
  65. package/dist/commonjs/models/operations/subscriptionslist.d.ts +13 -13
  66. package/dist/commonjs/models/operations/subscriptionslist.d.ts.map +1 -1
  67. package/dist/commonjs/models/operations/subscriptionslist.js +16 -16
  68. package/dist/commonjs/models/operations/subscriptionslist.js.map +1 -1
  69. package/dist/commonjs/sdk/sdk.d.ts +0 -6
  70. package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
  71. package/dist/commonjs/sdk/sdk.js +0 -8
  72. package/dist/commonjs/sdk/sdk.js.map +1 -1
  73. package/dist/commonjs/test.d.ts +2 -0
  74. package/dist/commonjs/test.d.ts.map +1 -0
  75. package/dist/commonjs/test.js +3 -0
  76. package/dist/commonjs/test.js.map +1 -0
  77. package/dist/commonjs/webhooks.d.ts +1 -1
  78. package/dist/commonjs/webhooks.d.ts.map +1 -1
  79. package/dist/commonjs/webhooks.js +3 -6
  80. package/dist/commonjs/webhooks.js.map +1 -1
  81. package/dist/esm/funcs/eventsList.js +1 -0
  82. package/dist/esm/funcs/eventsList.js.map +1 -1
  83. package/dist/esm/lib/config.d.ts +3 -3
  84. package/dist/esm/lib/config.js +3 -3
  85. package/dist/esm/lib/matchers.d.ts +3 -1
  86. package/dist/esm/lib/matchers.d.ts.map +1 -1
  87. package/dist/esm/lib/matchers.js +10 -0
  88. package/dist/esm/lib/matchers.js.map +1 -1
  89. package/dist/esm/lib/sdks.js +7 -2
  90. package/dist/esm/lib/sdks.js.map +1 -1
  91. package/dist/esm/mcp-server/mcp-server.js +1 -1
  92. package/dist/esm/mcp-server/server.js +1 -1
  93. package/dist/esm/models/components/customerstatesubscription.d.ts +6 -0
  94. package/dist/esm/models/components/customerstatesubscription.d.ts.map +1 -1
  95. package/dist/esm/models/components/customerstatesubscription.js +3 -0
  96. package/dist/esm/models/components/customerstatesubscription.js.map +1 -1
  97. package/dist/esm/models/components/customerstatesubscriptionmeter.d.ts +65 -0
  98. package/dist/esm/models/components/customerstatesubscriptionmeter.d.ts.map +1 -0
  99. package/dist/esm/models/components/customerstatesubscriptionmeter.js +60 -0
  100. package/dist/esm/models/components/customerstatesubscriptionmeter.js.map +1 -0
  101. package/dist/esm/models/components/customersubscription.d.ts +6 -0
  102. package/dist/esm/models/components/customersubscription.d.ts.map +1 -1
  103. package/dist/esm/models/components/customersubscription.js +3 -0
  104. package/dist/esm/models/components/customersubscription.js.map +1 -1
  105. package/dist/esm/models/components/customersubscriptionmeter.d.ts +65 -0
  106. package/dist/esm/models/components/customersubscriptionmeter.d.ts.map +1 -0
  107. package/dist/esm/models/components/customersubscriptionmeter.js +63 -0
  108. package/dist/esm/models/components/customersubscriptionmeter.js.map +1 -0
  109. package/dist/esm/models/components/customersubscriptionmetermeter.d.ts +47 -0
  110. package/dist/esm/models/components/customersubscriptionmetermeter.d.ts.map +1 -0
  111. package/dist/esm/models/components/customersubscriptionmetermeter.js +48 -0
  112. package/dist/esm/models/components/customersubscriptionmetermeter.js.map +1 -0
  113. package/dist/esm/models/components/eventname.d.ts +3 -0
  114. package/dist/esm/models/components/eventname.d.ts.map +1 -1
  115. package/dist/esm/models/components/eventname.js +3 -0
  116. package/dist/esm/models/components/eventname.js.map +1 -1
  117. package/dist/esm/models/components/organization.d.ts +0 -23
  118. package/dist/esm/models/components/organization.d.ts.map +1 -1
  119. package/dist/esm/models/components/organization.js +0 -17
  120. package/dist/esm/models/components/organization.js.map +1 -1
  121. package/dist/esm/models/components/organizationupdate.d.ts +0 -41
  122. package/dist/esm/models/components/organizationupdate.d.ts.map +1 -1
  123. package/dist/esm/models/components/organizationupdate.js +0 -36
  124. package/dist/esm/models/components/organizationupdate.js.map +1 -1
  125. package/dist/esm/models/components/subscription.d.ts +6 -0
  126. package/dist/esm/models/components/subscription.d.ts.map +1 -1
  127. package/dist/esm/models/components/subscription.js +3 -0
  128. package/dist/esm/models/components/subscription.js.map +1 -1
  129. package/dist/esm/models/components/subscriptionmeter.d.ts +68 -0
  130. package/dist/esm/models/components/subscriptionmeter.d.ts.map +1 -0
  131. package/dist/esm/models/components/subscriptionmeter.js +63 -0
  132. package/dist/esm/models/components/subscriptionmeter.js.map +1 -0
  133. package/dist/esm/models/operations/benefitslist.d.ts +13 -13
  134. package/dist/esm/models/operations/benefitslist.d.ts.map +1 -1
  135. package/dist/esm/models/operations/benefitslist.js +13 -13
  136. package/dist/esm/models/operations/benefitslist.js.map +1 -1
  137. package/dist/esm/models/operations/eventslist.d.ts +5 -0
  138. package/dist/esm/models/operations/eventslist.d.ts.map +1 -1
  139. package/dist/esm/models/operations/eventslist.js +2 -0
  140. package/dist/esm/models/operations/eventslist.js.map +1 -1
  141. package/dist/esm/models/operations/subscriptionslist.d.ts +13 -13
  142. package/dist/esm/models/operations/subscriptionslist.d.ts.map +1 -1
  143. package/dist/esm/models/operations/subscriptionslist.js +13 -13
  144. package/dist/esm/models/operations/subscriptionslist.js.map +1 -1
  145. package/dist/esm/sdk/sdk.d.ts +0 -6
  146. package/dist/esm/sdk/sdk.d.ts.map +1 -1
  147. package/dist/esm/sdk/sdk.js +0 -8
  148. package/dist/esm/sdk/sdk.js.map +1 -1
  149. package/dist/esm/test.d.ts +2 -0
  150. package/dist/esm/test.d.ts.map +1 -0
  151. package/dist/esm/test.js +2 -0
  152. package/dist/esm/test.js.map +1 -0
  153. package/dist/esm/webhooks.d.ts +1 -1
  154. package/dist/esm/webhooks.d.ts.map +1 -1
  155. package/dist/esm/webhooks.js +3 -6
  156. package/dist/esm/webhooks.js.map +1 -1
  157. package/jsr.json +1 -1
  158. package/package.json +1 -1
  159. package/src/funcs/eventsList.ts +1 -0
  160. package/src/lib/config.ts +3 -3
  161. package/src/lib/matchers.ts +20 -0
  162. package/src/lib/sdks.ts +8 -2
  163. package/src/mcp-server/mcp-server.ts +1 -1
  164. package/src/mcp-server/server.ts +1 -1
  165. package/src/models/components/customerstatesubscription.ts +13 -0
  166. package/src/models/components/customerstatesubscriptionmeter.ts +135 -0
  167. package/src/models/components/customersubscription.ts +13 -0
  168. package/src/models/components/customersubscriptionmeter.ts +140 -0
  169. package/src/models/components/customersubscriptionmetermeter.ts +105 -0
  170. package/src/models/components/eventname.ts +9 -0
  171. package/src/models/components/organization.ts +0 -45
  172. package/src/models/components/organizationupdate.ts +0 -82
  173. package/src/models/components/subscription.ts +13 -0
  174. package/src/models/components/subscriptionmeter.ts +143 -0
  175. package/src/models/operations/benefitslist.ts +27 -37
  176. package/src/models/operations/eventslist.ts +7 -0
  177. package/src/models/operations/subscriptionslist.ts +26 -44
  178. package/src/sdk/sdk.ts +0 -14
  179. package/src/test.ts +0 -0
  180. package/src/webhooks.ts +3 -6
  181. package/dist/commonjs/funcs/externalOrganizationsList.d.ts +0 -22
  182. package/dist/commonjs/funcs/externalOrganizationsList.d.ts.map +0 -1
  183. package/dist/commonjs/funcs/externalOrganizationsList.js +0 -153
  184. package/dist/commonjs/funcs/externalOrganizationsList.js.map +0 -1
  185. package/dist/commonjs/funcs/repositoriesGet.d.ts +0 -21
  186. package/dist/commonjs/funcs/repositoriesGet.d.ts.map +0 -1
  187. package/dist/commonjs/funcs/repositoriesGet.js +0 -115
  188. package/dist/commonjs/funcs/repositoriesGet.js.map +0 -1
  189. package/dist/commonjs/funcs/repositoriesList.d.ts +0 -22
  190. package/dist/commonjs/funcs/repositoriesList.d.ts.map +0 -1
  191. package/dist/commonjs/funcs/repositoriesList.js +0 -153
  192. package/dist/commonjs/funcs/repositoriesList.js.map +0 -1
  193. package/dist/commonjs/funcs/repositoriesUpdate.d.ts +0 -22
  194. package/dist/commonjs/funcs/repositoriesUpdate.d.ts.map +0 -1
  195. package/dist/commonjs/funcs/repositoriesUpdate.js +0 -117
  196. package/dist/commonjs/funcs/repositoriesUpdate.js.map +0 -1
  197. package/dist/commonjs/models/components/assignee.d.ts +0 -35
  198. package/dist/commonjs/models/components/assignee.d.ts.map +0 -1
  199. package/dist/commonjs/models/components/assignee.js +0 -76
  200. package/dist/commonjs/models/components/assignee.js.map +0 -1
  201. package/dist/commonjs/models/components/author.d.ts +0 -35
  202. package/dist/commonjs/models/components/author.d.ts.map +0 -1
  203. package/dist/commonjs/models/components/author.js +0 -77
  204. package/dist/commonjs/models/components/author.js.map +0 -1
  205. package/dist/commonjs/models/components/currencyamount.d.ts +0 -37
  206. package/dist/commonjs/models/components/currencyamount.d.ts.map +0 -1
  207. package/dist/commonjs/models/components/currencyamount.js +0 -61
  208. package/dist/commonjs/models/components/currencyamount.js.map +0 -1
  209. package/dist/commonjs/models/components/externalorganization.d.ts +0 -54
  210. package/dist/commonjs/models/components/externalorganization.d.ts.map +0 -1
  211. package/dist/commonjs/models/components/externalorganization.js +0 -101
  212. package/dist/commonjs/models/components/externalorganization.js.map +0 -1
  213. package/dist/commonjs/models/components/externalorganizationsortproperty.d.ts +0 -34
  214. package/dist/commonjs/models/components/externalorganizationsortproperty.d.ts.map +0 -1
  215. package/dist/commonjs/models/components/externalorganizationsortproperty.js +0 -52
  216. package/dist/commonjs/models/components/externalorganizationsortproperty.js.map +0 -1
  217. package/dist/commonjs/models/components/funding.d.ts +0 -35
  218. package/dist/commonjs/models/components/funding.d.ts.map +0 -1
  219. package/dist/commonjs/models/components/funding.js +0 -73
  220. package/dist/commonjs/models/components/funding.js.map +0 -1
  221. package/dist/commonjs/models/components/issue.d.ts +0 -113
  222. package/dist/commonjs/models/components/issue.d.ts.map +0 -1
  223. package/dist/commonjs/models/components/issue.js +0 -134
  224. package/dist/commonjs/models/components/issue.js.map +0 -1
  225. package/dist/commonjs/models/components/label.d.ts +0 -31
  226. package/dist/commonjs/models/components/label.d.ts.map +0 -1
  227. package/dist/commonjs/models/components/label.js +0 -62
  228. package/dist/commonjs/models/components/label.js.map +0 -1
  229. package/dist/commonjs/models/components/listresourceexternalorganization.d.ts +0 -33
  230. package/dist/commonjs/models/components/listresourceexternalorganization.d.ts.map +0 -1
  231. package/dist/commonjs/models/components/listresourceexternalorganization.js +0 -63
  232. package/dist/commonjs/models/components/listresourceexternalorganization.js.map +0 -1
  233. package/dist/commonjs/models/components/listresourcerepository.d.ts +0 -33
  234. package/dist/commonjs/models/components/listresourcerepository.d.ts.map +0 -1
  235. package/dist/commonjs/models/components/listresourcerepository.js +0 -63
  236. package/dist/commonjs/models/components/listresourcerepository.js.map +0 -1
  237. package/dist/commonjs/models/components/organizationprofilesettings.d.ts +0 -63
  238. package/dist/commonjs/models/components/organizationprofilesettings.d.ts.map +0 -1
  239. package/dist/commonjs/models/components/organizationprofilesettings.js +0 -87
  240. package/dist/commonjs/models/components/organizationprofilesettings.js.map +0 -1
  241. package/dist/commonjs/models/components/organizationsubscribepromotesettings.d.ts +0 -42
  242. package/dist/commonjs/models/components/organizationsubscribepromotesettings.d.ts.map +0 -1
  243. package/dist/commonjs/models/components/organizationsubscribepromotesettings.js +0 -74
  244. package/dist/commonjs/models/components/organizationsubscribepromotesettings.js.map +0 -1
  245. package/dist/commonjs/models/components/platforms.d.ts +0 -25
  246. package/dist/commonjs/models/components/platforms.d.ts.map +0 -1
  247. package/dist/commonjs/models/components/platforms.js +0 -50
  248. package/dist/commonjs/models/components/platforms.js.map +0 -1
  249. package/dist/commonjs/models/components/pledge.d.ts +0 -94
  250. package/dist/commonjs/models/components/pledge.d.ts.map +0 -1
  251. package/dist/commonjs/models/components/pledge.js +0 -116
  252. package/dist/commonjs/models/components/pledge.js.map +0 -1
  253. package/dist/commonjs/models/components/pledger.d.ts +0 -33
  254. package/dist/commonjs/models/components/pledger.d.ts.map +0 -1
  255. package/dist/commonjs/models/components/pledger.js +0 -74
  256. package/dist/commonjs/models/components/pledger.js.map +0 -1
  257. package/dist/commonjs/models/components/pledgestate.d.ts +0 -43
  258. package/dist/commonjs/models/components/pledgestate.d.ts.map +0 -1
  259. package/dist/commonjs/models/components/pledgestate.js +0 -56
  260. package/dist/commonjs/models/components/pledgestate.js.map +0 -1
  261. package/dist/commonjs/models/components/pledgetype.d.ts +0 -31
  262. package/dist/commonjs/models/components/pledgetype.d.ts.map +0 -1
  263. package/dist/commonjs/models/components/pledgetype.js +0 -52
  264. package/dist/commonjs/models/components/pledgetype.js.map +0 -1
  265. package/dist/commonjs/models/components/reactions.d.ts +0 -45
  266. package/dist/commonjs/models/components/reactions.d.ts.map +0 -1
  267. package/dist/commonjs/models/components/reactions.js +0 -88
  268. package/dist/commonjs/models/components/reactions.js.map +0 -1
  269. package/dist/commonjs/models/components/repository.d.ts +0 -56
  270. package/dist/commonjs/models/components/repository.d.ts.map +0 -1
  271. package/dist/commonjs/models/components/repository.js +0 -96
  272. package/dist/commonjs/models/components/repository.js.map +0 -1
  273. package/dist/commonjs/models/components/repositoryprofilesettings.d.ts +0 -52
  274. package/dist/commonjs/models/components/repositoryprofilesettings.d.ts.map +0 -1
  275. package/dist/commonjs/models/components/repositoryprofilesettings.js +0 -80
  276. package/dist/commonjs/models/components/repositoryprofilesettings.js.map +0 -1
  277. package/dist/commonjs/models/components/repositoryprofilesettingsupdate.d.ts +0 -41
  278. package/dist/commonjs/models/components/repositoryprofilesettingsupdate.d.ts.map +0 -1
  279. package/dist/commonjs/models/components/repositoryprofilesettingsupdate.js +0 -88
  280. package/dist/commonjs/models/components/repositoryprofilesettingsupdate.js.map +0 -1
  281. package/dist/commonjs/models/components/repositorysortproperty.d.ts +0 -40
  282. package/dist/commonjs/models/components/repositorysortproperty.d.ts.map +0 -1
  283. package/dist/commonjs/models/components/repositorysortproperty.js +0 -54
  284. package/dist/commonjs/models/components/repositorysortproperty.js.map +0 -1
  285. package/dist/commonjs/models/components/repositoryupdate.d.ts +0 -30
  286. package/dist/commonjs/models/components/repositoryupdate.d.ts.map +0 -1
  287. package/dist/commonjs/models/components/repositoryupdate.js +0 -71
  288. package/dist/commonjs/models/components/repositoryupdate.js.map +0 -1
  289. package/dist/commonjs/models/components/state.d.ts +0 -28
  290. package/dist/commonjs/models/components/state.d.ts.map +0 -1
  291. package/dist/commonjs/models/components/state.js +0 -50
  292. package/dist/commonjs/models/components/state.js.map +0 -1
  293. package/dist/commonjs/models/components/webhookpledgecreatedpayload.d.ts +0 -39
  294. package/dist/commonjs/models/components/webhookpledgecreatedpayload.d.ts.map +0 -1
  295. package/dist/commonjs/models/components/webhookpledgecreatedpayload.js +0 -62
  296. package/dist/commonjs/models/components/webhookpledgecreatedpayload.js.map +0 -1
  297. package/dist/commonjs/models/components/webhookpledgeupdatedpayload.d.ts +0 -39
  298. package/dist/commonjs/models/components/webhookpledgeupdatedpayload.d.ts.map +0 -1
  299. package/dist/commonjs/models/components/webhookpledgeupdatedpayload.js +0 -62
  300. package/dist/commonjs/models/components/webhookpledgeupdatedpayload.js.map +0 -1
  301. package/dist/commonjs/models/operations/externalorganizationslist.d.ts +0 -157
  302. package/dist/commonjs/models/operations/externalorganizationslist.d.ts.map +0 -1
  303. package/dist/commonjs/models/operations/externalorganizationslist.js +0 -189
  304. package/dist/commonjs/models/operations/externalorganizationslist.js.map +0 -1
  305. package/dist/commonjs/models/operations/repositoriesget.d.ts +0 -29
  306. package/dist/commonjs/models/operations/repositoriesget.d.ts.map +0 -1
  307. package/dist/commonjs/models/operations/repositoriesget.js +0 -59
  308. package/dist/commonjs/models/operations/repositoriesget.js.map +0 -1
  309. package/dist/commonjs/models/operations/repositorieslist.d.ts +0 -191
  310. package/dist/commonjs/models/operations/repositorieslist.d.ts.map +0 -1
  311. package/dist/commonjs/models/operations/repositorieslist.js +0 -219
  312. package/dist/commonjs/models/operations/repositorieslist.js.map +0 -1
  313. package/dist/commonjs/models/operations/repositoriesupdate.d.ts +0 -32
  314. package/dist/commonjs/models/operations/repositoriesupdate.d.ts.map +0 -1
  315. package/dist/commonjs/models/operations/repositoriesupdate.js +0 -71
  316. package/dist/commonjs/models/operations/repositoriesupdate.js.map +0 -1
  317. package/dist/commonjs/sdk/externalorganizations.d.ts +0 -17
  318. package/dist/commonjs/sdk/externalorganizations.d.ts.map +0 -1
  319. package/dist/commonjs/sdk/externalorganizations.js +0 -24
  320. package/dist/commonjs/sdk/externalorganizations.js.map +0 -1
  321. package/dist/commonjs/sdk/repositories.d.ts +0 -38
  322. package/dist/commonjs/sdk/repositories.d.ts.map +0 -1
  323. package/dist/commonjs/sdk/repositories.js +0 -49
  324. package/dist/commonjs/sdk/repositories.js.map +0 -1
  325. package/dist/esm/funcs/externalOrganizationsList.d.ts +0 -22
  326. package/dist/esm/funcs/externalOrganizationsList.d.ts.map +0 -1
  327. package/dist/esm/funcs/externalOrganizationsList.js +0 -127
  328. package/dist/esm/funcs/externalOrganizationsList.js.map +0 -1
  329. package/dist/esm/funcs/repositoriesGet.d.ts +0 -21
  330. package/dist/esm/funcs/repositoriesGet.d.ts.map +0 -1
  331. package/dist/esm/funcs/repositoriesGet.js +0 -89
  332. package/dist/esm/funcs/repositoriesGet.js.map +0 -1
  333. package/dist/esm/funcs/repositoriesList.d.ts +0 -22
  334. package/dist/esm/funcs/repositoriesList.d.ts.map +0 -1
  335. package/dist/esm/funcs/repositoriesList.js +0 -127
  336. package/dist/esm/funcs/repositoriesList.js.map +0 -1
  337. package/dist/esm/funcs/repositoriesUpdate.d.ts +0 -22
  338. package/dist/esm/funcs/repositoriesUpdate.d.ts.map +0 -1
  339. package/dist/esm/funcs/repositoriesUpdate.js +0 -91
  340. package/dist/esm/funcs/repositoriesUpdate.js.map +0 -1
  341. package/dist/esm/models/components/assignee.d.ts +0 -35
  342. package/dist/esm/models/components/assignee.d.ts.map +0 -1
  343. package/dist/esm/models/components/assignee.js +0 -48
  344. package/dist/esm/models/components/assignee.js.map +0 -1
  345. package/dist/esm/models/components/author.d.ts +0 -35
  346. package/dist/esm/models/components/author.d.ts.map +0 -1
  347. package/dist/esm/models/components/author.js +0 -49
  348. package/dist/esm/models/components/author.js.map +0 -1
  349. package/dist/esm/models/components/currencyamount.d.ts +0 -37
  350. package/dist/esm/models/components/currencyamount.d.ts.map +0 -1
  351. package/dist/esm/models/components/currencyamount.js +0 -33
  352. package/dist/esm/models/components/currencyamount.js.map +0 -1
  353. package/dist/esm/models/components/externalorganization.d.ts +0 -54
  354. package/dist/esm/models/components/externalorganization.d.ts.map +0 -1
  355. package/dist/esm/models/components/externalorganization.js +0 -73
  356. package/dist/esm/models/components/externalorganization.js.map +0 -1
  357. package/dist/esm/models/components/externalorganizationsortproperty.d.ts +0 -34
  358. package/dist/esm/models/components/externalorganizationsortproperty.d.ts.map +0 -1
  359. package/dist/esm/models/components/externalorganizationsortproperty.js +0 -26
  360. package/dist/esm/models/components/externalorganizationsortproperty.js.map +0 -1
  361. package/dist/esm/models/components/funding.d.ts +0 -35
  362. package/dist/esm/models/components/funding.d.ts.map +0 -1
  363. package/dist/esm/models/components/funding.js +0 -45
  364. package/dist/esm/models/components/funding.js.map +0 -1
  365. package/dist/esm/models/components/issue.d.ts +0 -113
  366. package/dist/esm/models/components/issue.d.ts.map +0 -1
  367. package/dist/esm/models/components/issue.js +0 -106
  368. package/dist/esm/models/components/issue.js.map +0 -1
  369. package/dist/esm/models/components/label.d.ts +0 -31
  370. package/dist/esm/models/components/label.d.ts.map +0 -1
  371. package/dist/esm/models/components/label.js +0 -34
  372. package/dist/esm/models/components/label.js.map +0 -1
  373. package/dist/esm/models/components/listresourceexternalorganization.d.ts +0 -33
  374. package/dist/esm/models/components/listresourceexternalorganization.d.ts.map +0 -1
  375. package/dist/esm/models/components/listresourceexternalorganization.js +0 -35
  376. package/dist/esm/models/components/listresourceexternalorganization.js.map +0 -1
  377. package/dist/esm/models/components/listresourcerepository.d.ts +0 -33
  378. package/dist/esm/models/components/listresourcerepository.d.ts.map +0 -1
  379. package/dist/esm/models/components/listresourcerepository.js +0 -35
  380. package/dist/esm/models/components/listresourcerepository.js.map +0 -1
  381. package/dist/esm/models/components/organizationprofilesettings.d.ts +0 -63
  382. package/dist/esm/models/components/organizationprofilesettings.d.ts.map +0 -1
  383. package/dist/esm/models/components/organizationprofilesettings.js +0 -59
  384. package/dist/esm/models/components/organizationprofilesettings.js.map +0 -1
  385. package/dist/esm/models/components/organizationsubscribepromotesettings.d.ts +0 -42
  386. package/dist/esm/models/components/organizationsubscribepromotesettings.d.ts.map +0 -1
  387. package/dist/esm/models/components/organizationsubscribepromotesettings.js +0 -46
  388. package/dist/esm/models/components/organizationsubscribepromotesettings.js.map +0 -1
  389. package/dist/esm/models/components/platforms.d.ts +0 -25
  390. package/dist/esm/models/components/platforms.d.ts.map +0 -1
  391. package/dist/esm/models/components/platforms.js +0 -24
  392. package/dist/esm/models/components/platforms.js.map +0 -1
  393. package/dist/esm/models/components/pledge.d.ts +0 -94
  394. package/dist/esm/models/components/pledge.d.ts.map +0 -1
  395. package/dist/esm/models/components/pledge.js +0 -88
  396. package/dist/esm/models/components/pledge.js.map +0 -1
  397. package/dist/esm/models/components/pledger.d.ts +0 -33
  398. package/dist/esm/models/components/pledger.d.ts.map +0 -1
  399. package/dist/esm/models/components/pledger.js +0 -46
  400. package/dist/esm/models/components/pledger.js.map +0 -1
  401. package/dist/esm/models/components/pledgestate.d.ts +0 -43
  402. package/dist/esm/models/components/pledgestate.d.ts.map +0 -1
  403. package/dist/esm/models/components/pledgestate.js +0 -30
  404. package/dist/esm/models/components/pledgestate.js.map +0 -1
  405. package/dist/esm/models/components/pledgetype.d.ts +0 -31
  406. package/dist/esm/models/components/pledgetype.d.ts.map +0 -1
  407. package/dist/esm/models/components/pledgetype.js +0 -26
  408. package/dist/esm/models/components/pledgetype.js.map +0 -1
  409. package/dist/esm/models/components/reactions.d.ts +0 -45
  410. package/dist/esm/models/components/reactions.d.ts.map +0 -1
  411. package/dist/esm/models/components/reactions.js +0 -60
  412. package/dist/esm/models/components/reactions.js.map +0 -1
  413. package/dist/esm/models/components/repository.d.ts +0 -56
  414. package/dist/esm/models/components/repository.d.ts.map +0 -1
  415. package/dist/esm/models/components/repository.js +0 -68
  416. package/dist/esm/models/components/repository.js.map +0 -1
  417. package/dist/esm/models/components/repositoryprofilesettings.d.ts +0 -52
  418. package/dist/esm/models/components/repositoryprofilesettings.d.ts.map +0 -1
  419. package/dist/esm/models/components/repositoryprofilesettings.js +0 -52
  420. package/dist/esm/models/components/repositoryprofilesettings.js.map +0 -1
  421. package/dist/esm/models/components/repositoryprofilesettingsupdate.d.ts +0 -41
  422. package/dist/esm/models/components/repositoryprofilesettingsupdate.d.ts.map +0 -1
  423. package/dist/esm/models/components/repositoryprofilesettingsupdate.js +0 -60
  424. package/dist/esm/models/components/repositoryprofilesettingsupdate.js.map +0 -1
  425. package/dist/esm/models/components/repositorysortproperty.d.ts +0 -40
  426. package/dist/esm/models/components/repositorysortproperty.d.ts.map +0 -1
  427. package/dist/esm/models/components/repositorysortproperty.js +0 -28
  428. package/dist/esm/models/components/repositorysortproperty.js.map +0 -1
  429. package/dist/esm/models/components/repositoryupdate.d.ts +0 -30
  430. package/dist/esm/models/components/repositoryupdate.d.ts.map +0 -1
  431. package/dist/esm/models/components/repositoryupdate.js +0 -43
  432. package/dist/esm/models/components/repositoryupdate.js.map +0 -1
  433. package/dist/esm/models/components/state.d.ts +0 -28
  434. package/dist/esm/models/components/state.d.ts.map +0 -1
  435. package/dist/esm/models/components/state.js +0 -24
  436. package/dist/esm/models/components/state.js.map +0 -1
  437. package/dist/esm/models/components/webhookpledgecreatedpayload.d.ts +0 -39
  438. package/dist/esm/models/components/webhookpledgecreatedpayload.d.ts.map +0 -1
  439. package/dist/esm/models/components/webhookpledgecreatedpayload.js +0 -34
  440. package/dist/esm/models/components/webhookpledgecreatedpayload.js.map +0 -1
  441. package/dist/esm/models/components/webhookpledgeupdatedpayload.d.ts +0 -39
  442. package/dist/esm/models/components/webhookpledgeupdatedpayload.d.ts.map +0 -1
  443. package/dist/esm/models/components/webhookpledgeupdatedpayload.js +0 -34
  444. package/dist/esm/models/components/webhookpledgeupdatedpayload.js.map +0 -1
  445. package/dist/esm/models/operations/externalorganizationslist.d.ts +0 -157
  446. package/dist/esm/models/operations/externalorganizationslist.d.ts.map +0 -1
  447. package/dist/esm/models/operations/externalorganizationslist.js +0 -153
  448. package/dist/esm/models/operations/externalorganizationslist.js.map +0 -1
  449. package/dist/esm/models/operations/repositoriesget.d.ts +0 -29
  450. package/dist/esm/models/operations/repositoriesget.d.ts.map +0 -1
  451. package/dist/esm/models/operations/repositoriesget.js +0 -31
  452. package/dist/esm/models/operations/repositoriesget.js.map +0 -1
  453. package/dist/esm/models/operations/repositorieslist.d.ts +0 -191
  454. package/dist/esm/models/operations/repositorieslist.d.ts.map +0 -1
  455. package/dist/esm/models/operations/repositorieslist.js +0 -181
  456. package/dist/esm/models/operations/repositorieslist.js.map +0 -1
  457. package/dist/esm/models/operations/repositoriesupdate.d.ts +0 -32
  458. package/dist/esm/models/operations/repositoriesupdate.d.ts.map +0 -1
  459. package/dist/esm/models/operations/repositoriesupdate.js +0 -43
  460. package/dist/esm/models/operations/repositoriesupdate.js.map +0 -1
  461. package/dist/esm/sdk/externalorganizations.d.ts +0 -17
  462. package/dist/esm/sdk/externalorganizations.d.ts.map +0 -1
  463. package/dist/esm/sdk/externalorganizations.js +0 -20
  464. package/dist/esm/sdk/externalorganizations.js.map +0 -1
  465. package/dist/esm/sdk/repositories.d.ts +0 -38
  466. package/dist/esm/sdk/repositories.d.ts.map +0 -1
  467. package/dist/esm/sdk/repositories.js +0 -45
  468. package/dist/esm/sdk/repositories.js.map +0 -1
  469. package/docs/sdks/externalorganizations/README.md +0 -95
  470. package/docs/sdks/repositories/README.md +0 -260
  471. package/src/funcs/externalOrganizationsList.ts +0 -256
  472. package/src/funcs/repositoriesGet.ts +0 -189
  473. package/src/funcs/repositoriesList.ts +0 -256
  474. package/src/funcs/repositoriesUpdate.ts +0 -198
  475. package/src/models/components/assignee.ts +0 -85
  476. package/src/models/components/author.ts +0 -82
  477. package/src/models/components/currencyamount.ts +0 -72
  478. package/src/models/components/externalorganization.ts +0 -136
  479. package/src/models/components/externalorganizationsortproperty.ts +0 -37
  480. package/src/models/components/funding.ts +0 -83
  481. package/src/models/components/issue.ts +0 -251
  482. package/src/models/components/label.ts +0 -63
  483. package/src/models/components/listresourceexternalorganization.ts +0 -84
  484. package/src/models/components/listresourcerepository.ts +0 -82
  485. package/src/models/components/organizationprofilesettings.ts +0 -134
  486. package/src/models/components/organizationsubscribepromotesettings.ts +0 -99
  487. package/src/models/components/platforms.ts +0 -30
  488. package/src/models/components/pledge.ts +0 -202
  489. package/src/models/components/pledger.ts +0 -78
  490. package/src/models/components/pledgestate.ts +0 -36
  491. package/src/models/components/pledgetype.ts +0 -32
  492. package/src/models/components/reactions.ts +0 -107
  493. package/src/models/components/repository.ts +0 -141
  494. package/src/models/components/repositoryprofilesettings.ts +0 -110
  495. package/src/models/components/repositoryprofilesettingsupdate.ts +0 -109
  496. package/src/models/components/repositorysortproperty.ts +0 -37
  497. package/src/models/components/repositoryupdate.ts +0 -86
  498. package/src/models/components/state.ts +0 -32
  499. package/src/models/components/webhookpledgecreatedpayload.ts +0 -85
  500. package/src/models/components/webhookpledgeupdatedpayload.ts +0 -85
  501. package/src/models/operations/externalorganizationslist.ts +0 -363
  502. package/src/models/operations/repositoriesget.ts +0 -66
  503. package/src/models/operations/repositorieslist.ts +0 -442
  504. package/src/models/operations/repositoriesupdate.ts +0 -85
  505. package/src/sdk/externalorganizations.ts +0 -34
  506. package/src/sdk/repositories.ts +0 -76
@@ -1,198 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import { PolarCore } from "../core.js";
6
- import { encodeJSON, encodeSimple } from "../lib/encodings.js";
7
- import * as M from "../lib/matchers.js";
8
- import { compactMap } from "../lib/primitives.js";
9
- import { safeParse } from "../lib/schemas.js";
10
- import { RequestOptions } from "../lib/sdks.js";
11
- import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
12
- import { pathToFunc } from "../lib/url.js";
13
- import {
14
- Repository,
15
- Repository$inboundSchema,
16
- } from "../models/components/repository.js";
17
- import {
18
- ConnectionError,
19
- InvalidRequestError,
20
- RequestAbortedError,
21
- RequestTimeoutError,
22
- UnexpectedClientError,
23
- } from "../models/errors/httpclienterrors.js";
24
- import {
25
- HTTPValidationError,
26
- HTTPValidationError$inboundSchema,
27
- } from "../models/errors/httpvalidationerror.js";
28
- import {
29
- NotPermitted,
30
- NotPermitted$inboundSchema,
31
- } from "../models/errors/notpermitted.js";
32
- import {
33
- ResourceNotFound,
34
- ResourceNotFound$inboundSchema,
35
- } from "../models/errors/resourcenotfound.js";
36
- import { SDKError } from "../models/errors/sdkerror.js";
37
- import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
38
- import {
39
- RepositoriesUpdateRequest,
40
- RepositoriesUpdateRequest$outboundSchema,
41
- } from "../models/operations/repositoriesupdate.js";
42
- import { APICall, APIPromise } from "../types/async.js";
43
- import { Result } from "../types/fp.js";
44
-
45
- /**
46
- * Update Repository
47
- *
48
- * @remarks
49
- * Update a repository.
50
- *
51
- * **Scopes**: `repositories:write`
52
- */
53
- export function repositoriesUpdate(
54
- client: PolarCore,
55
- request: RepositoriesUpdateRequest,
56
- options?: RequestOptions,
57
- ): APIPromise<
58
- Result<
59
- Repository,
60
- | NotPermitted
61
- | ResourceNotFound
62
- | HTTPValidationError
63
- | SDKError
64
- | SDKValidationError
65
- | UnexpectedClientError
66
- | InvalidRequestError
67
- | RequestAbortedError
68
- | RequestTimeoutError
69
- | ConnectionError
70
- >
71
- > {
72
- return new APIPromise($do(
73
- client,
74
- request,
75
- options,
76
- ));
77
- }
78
-
79
- async function $do(
80
- client: PolarCore,
81
- request: RepositoriesUpdateRequest,
82
- options?: RequestOptions,
83
- ): Promise<
84
- [
85
- Result<
86
- Repository,
87
- | NotPermitted
88
- | ResourceNotFound
89
- | HTTPValidationError
90
- | SDKError
91
- | SDKValidationError
92
- | UnexpectedClientError
93
- | InvalidRequestError
94
- | RequestAbortedError
95
- | RequestTimeoutError
96
- | ConnectionError
97
- >,
98
- APICall,
99
- ]
100
- > {
101
- const parsed = safeParse(
102
- request,
103
- (value) => RepositoriesUpdateRequest$outboundSchema.parse(value),
104
- "Input validation failed",
105
- );
106
- if (!parsed.ok) {
107
- return [parsed, { status: "invalid" }];
108
- }
109
- const payload = parsed.value;
110
- const body = encodeJSON("body", payload.RepositoryUpdate, { explode: true });
111
-
112
- const pathParams = {
113
- id: encodeSimple("id", payload.id, {
114
- explode: false,
115
- charEncoding: "percent",
116
- }),
117
- };
118
-
119
- const path = pathToFunc("/v1/repositories/{id}")(pathParams);
120
-
121
- const headers = new Headers(compactMap({
122
- "Content-Type": "application/json",
123
- Accept: "application/json",
124
- }));
125
-
126
- const secConfig = await extractSecurity(client._options.accessToken);
127
- const securityInput = secConfig == null ? {} : { accessToken: secConfig };
128
- const requestSecurity = resolveGlobalSecurity(securityInput);
129
-
130
- const context = {
131
- baseURL: options?.serverURL ?? client._baseURL ?? "",
132
- operationID: "repositories:update",
133
- oAuth2Scopes: [],
134
-
135
- resolvedSecurity: requestSecurity,
136
-
137
- securitySource: client._options.accessToken,
138
- retryConfig: options?.retries
139
- || client._options.retryConfig
140
- || { strategy: "none" },
141
- retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
142
- };
143
-
144
- const requestRes = client._createRequest(context, {
145
- security: requestSecurity,
146
- method: "PATCH",
147
- baseURL: options?.serverURL,
148
- path: path,
149
- headers: headers,
150
- body: body,
151
- timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
152
- }, options);
153
- if (!requestRes.ok) {
154
- return [requestRes, { status: "invalid" }];
155
- }
156
- const req = requestRes.value;
157
-
158
- const doResult = await client._do(req, {
159
- context,
160
- errorCodes: ["403", "404", "422", "4XX", "5XX"],
161
- retryConfig: context.retryConfig,
162
- retryCodes: context.retryCodes,
163
- });
164
- if (!doResult.ok) {
165
- return [doResult, { status: "request-error", request: req }];
166
- }
167
- const response = doResult.value;
168
-
169
- const responseFields = {
170
- HttpMeta: { Response: response, Request: req },
171
- };
172
-
173
- const [result] = await M.match<
174
- Repository,
175
- | NotPermitted
176
- | ResourceNotFound
177
- | HTTPValidationError
178
- | SDKError
179
- | SDKValidationError
180
- | UnexpectedClientError
181
- | InvalidRequestError
182
- | RequestAbortedError
183
- | RequestTimeoutError
184
- | ConnectionError
185
- >(
186
- M.json(200, Repository$inboundSchema),
187
- M.jsonErr(403, NotPermitted$inboundSchema),
188
- M.jsonErr(404, ResourceNotFound$inboundSchema),
189
- M.jsonErr(422, HTTPValidationError$inboundSchema),
190
- M.fail("4XX"),
191
- M.fail("5XX"),
192
- )(response, { extraFields: responseFields });
193
- if (!result.ok) {
194
- return [result, { status: "complete", request: req, response }];
195
- }
196
-
197
- return [result, { status: "complete", request: req, response }];
198
- }
@@ -1,85 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import * as z from "zod";
6
- import { remap as remap$ } from "../../lib/primitives.js";
7
- import { safeParse } from "../../lib/schemas.js";
8
- import { Result as SafeParseResult } from "../../types/fp.js";
9
- import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
-
11
- export type Assignee = {
12
- id: number;
13
- login: string;
14
- htmlUrl: string;
15
- avatarUrl: string;
16
- };
17
-
18
- /** @internal */
19
- export const Assignee$inboundSchema: z.ZodType<
20
- Assignee,
21
- z.ZodTypeDef,
22
- unknown
23
- > = z.object({
24
- id: z.number().int(),
25
- login: z.string(),
26
- html_url: z.string(),
27
- avatar_url: z.string(),
28
- }).transform((v) => {
29
- return remap$(v, {
30
- "html_url": "htmlUrl",
31
- "avatar_url": "avatarUrl",
32
- });
33
- });
34
-
35
- /** @internal */
36
- export type Assignee$Outbound = {
37
- id: number;
38
- login: string;
39
- html_url: string;
40
- avatar_url: string;
41
- };
42
-
43
- /** @internal */
44
- export const Assignee$outboundSchema: z.ZodType<
45
- Assignee$Outbound,
46
- z.ZodTypeDef,
47
- Assignee
48
- > = z.object({
49
- id: z.number().int(),
50
- login: z.string(),
51
- htmlUrl: z.string(),
52
- avatarUrl: z.string(),
53
- }).transform((v) => {
54
- return remap$(v, {
55
- htmlUrl: "html_url",
56
- avatarUrl: "avatar_url",
57
- });
58
- });
59
-
60
- /**
61
- * @internal
62
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
63
- */
64
- export namespace Assignee$ {
65
- /** @deprecated use `Assignee$inboundSchema` instead. */
66
- export const inboundSchema = Assignee$inboundSchema;
67
- /** @deprecated use `Assignee$outboundSchema` instead. */
68
- export const outboundSchema = Assignee$outboundSchema;
69
- /** @deprecated use `Assignee$Outbound` instead. */
70
- export type Outbound = Assignee$Outbound;
71
- }
72
-
73
- export function assigneeToJSON(assignee: Assignee): string {
74
- return JSON.stringify(Assignee$outboundSchema.parse(assignee));
75
- }
76
-
77
- export function assigneeFromJSON(
78
- jsonString: string,
79
- ): SafeParseResult<Assignee, SDKValidationError> {
80
- return safeParse(
81
- jsonString,
82
- (x) => Assignee$inboundSchema.parse(JSON.parse(x)),
83
- `Failed to parse 'Assignee' from JSON`,
84
- );
85
- }
@@ -1,82 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import * as z from "zod";
6
- import { remap as remap$ } from "../../lib/primitives.js";
7
- import { safeParse } from "../../lib/schemas.js";
8
- import { Result as SafeParseResult } from "../../types/fp.js";
9
- import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
-
11
- export type Author = {
12
- id: number;
13
- login: string;
14
- htmlUrl: string;
15
- avatarUrl: string;
16
- };
17
-
18
- /** @internal */
19
- export const Author$inboundSchema: z.ZodType<Author, z.ZodTypeDef, unknown> = z
20
- .object({
21
- id: z.number().int(),
22
- login: z.string(),
23
- html_url: z.string(),
24
- avatar_url: z.string(),
25
- }).transform((v) => {
26
- return remap$(v, {
27
- "html_url": "htmlUrl",
28
- "avatar_url": "avatarUrl",
29
- });
30
- });
31
-
32
- /** @internal */
33
- export type Author$Outbound = {
34
- id: number;
35
- login: string;
36
- html_url: string;
37
- avatar_url: string;
38
- };
39
-
40
- /** @internal */
41
- export const Author$outboundSchema: z.ZodType<
42
- Author$Outbound,
43
- z.ZodTypeDef,
44
- Author
45
- > = z.object({
46
- id: z.number().int(),
47
- login: z.string(),
48
- htmlUrl: z.string(),
49
- avatarUrl: z.string(),
50
- }).transform((v) => {
51
- return remap$(v, {
52
- htmlUrl: "html_url",
53
- avatarUrl: "avatar_url",
54
- });
55
- });
56
-
57
- /**
58
- * @internal
59
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
60
- */
61
- export namespace Author$ {
62
- /** @deprecated use `Author$inboundSchema` instead. */
63
- export const inboundSchema = Author$inboundSchema;
64
- /** @deprecated use `Author$outboundSchema` instead. */
65
- export const outboundSchema = Author$outboundSchema;
66
- /** @deprecated use `Author$Outbound` instead. */
67
- export type Outbound = Author$Outbound;
68
- }
69
-
70
- export function authorToJSON(author: Author): string {
71
- return JSON.stringify(Author$outboundSchema.parse(author));
72
- }
73
-
74
- export function authorFromJSON(
75
- jsonString: string,
76
- ): SafeParseResult<Author, SDKValidationError> {
77
- return safeParse(
78
- jsonString,
79
- (x) => Author$inboundSchema.parse(JSON.parse(x)),
80
- `Failed to parse 'Author' from JSON`,
81
- );
82
- }
@@ -1,72 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import * as z from "zod";
6
- import { safeParse } from "../../lib/schemas.js";
7
- import { Result as SafeParseResult } from "../../types/fp.js";
8
- import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
-
10
- export type CurrencyAmount = {
11
- /**
12
- * Three letter currency code (eg: USD)
13
- */
14
- currency: string;
15
- /**
16
- * Amount in the currencies smallest unit (cents if currency is USD)
17
- */
18
- amount: number;
19
- };
20
-
21
- /** @internal */
22
- export const CurrencyAmount$inboundSchema: z.ZodType<
23
- CurrencyAmount,
24
- z.ZodTypeDef,
25
- unknown
26
- > = z.object({
27
- currency: z.string(),
28
- amount: z.number().int(),
29
- });
30
-
31
- /** @internal */
32
- export type CurrencyAmount$Outbound = {
33
- currency: string;
34
- amount: number;
35
- };
36
-
37
- /** @internal */
38
- export const CurrencyAmount$outboundSchema: z.ZodType<
39
- CurrencyAmount$Outbound,
40
- z.ZodTypeDef,
41
- CurrencyAmount
42
- > = z.object({
43
- currency: z.string(),
44
- amount: z.number().int(),
45
- });
46
-
47
- /**
48
- * @internal
49
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
50
- */
51
- export namespace CurrencyAmount$ {
52
- /** @deprecated use `CurrencyAmount$inboundSchema` instead. */
53
- export const inboundSchema = CurrencyAmount$inboundSchema;
54
- /** @deprecated use `CurrencyAmount$outboundSchema` instead. */
55
- export const outboundSchema = CurrencyAmount$outboundSchema;
56
- /** @deprecated use `CurrencyAmount$Outbound` instead. */
57
- export type Outbound = CurrencyAmount$Outbound;
58
- }
59
-
60
- export function currencyAmountToJSON(currencyAmount: CurrencyAmount): string {
61
- return JSON.stringify(CurrencyAmount$outboundSchema.parse(currencyAmount));
62
- }
63
-
64
- export function currencyAmountFromJSON(
65
- jsonString: string,
66
- ): SafeParseResult<CurrencyAmount, SDKValidationError> {
67
- return safeParse(
68
- jsonString,
69
- (x) => CurrencyAmount$inboundSchema.parse(JSON.parse(x)),
70
- `Failed to parse 'CurrencyAmount' from JSON`,
71
- );
72
- }
@@ -1,136 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import * as z from "zod";
6
- import { remap as remap$ } from "../../lib/primitives.js";
7
- import { safeParse } from "../../lib/schemas.js";
8
- import { Result as SafeParseResult } from "../../types/fp.js";
9
- import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
- import {
11
- Platforms,
12
- Platforms$inboundSchema,
13
- Platforms$outboundSchema,
14
- } from "./platforms.js";
15
-
16
- export type ExternalOrganization = {
17
- id: string;
18
- platform: Platforms;
19
- name: string;
20
- avatarUrl: string;
21
- isPersonal: boolean;
22
- bio: string | null;
23
- prettyName: string | null;
24
- company: string | null;
25
- blog: string | null;
26
- location: string | null;
27
- email: string | null;
28
- twitterUsername: string | null;
29
- organizationId: string | null;
30
- };
31
-
32
- /** @internal */
33
- export const ExternalOrganization$inboundSchema: z.ZodType<
34
- ExternalOrganization,
35
- z.ZodTypeDef,
36
- unknown
37
- > = z.object({
38
- id: z.string(),
39
- platform: Platforms$inboundSchema,
40
- name: z.string(),
41
- avatar_url: z.string(),
42
- is_personal: z.boolean(),
43
- bio: z.nullable(z.string()),
44
- pretty_name: z.nullable(z.string()),
45
- company: z.nullable(z.string()),
46
- blog: z.nullable(z.string()),
47
- location: z.nullable(z.string()),
48
- email: z.nullable(z.string()),
49
- twitter_username: z.nullable(z.string()),
50
- organization_id: z.nullable(z.string()),
51
- }).transform((v) => {
52
- return remap$(v, {
53
- "avatar_url": "avatarUrl",
54
- "is_personal": "isPersonal",
55
- "pretty_name": "prettyName",
56
- "twitter_username": "twitterUsername",
57
- "organization_id": "organizationId",
58
- });
59
- });
60
-
61
- /** @internal */
62
- export type ExternalOrganization$Outbound = {
63
- id: string;
64
- platform: string;
65
- name: string;
66
- avatar_url: string;
67
- is_personal: boolean;
68
- bio: string | null;
69
- pretty_name: string | null;
70
- company: string | null;
71
- blog: string | null;
72
- location: string | null;
73
- email: string | null;
74
- twitter_username: string | null;
75
- organization_id: string | null;
76
- };
77
-
78
- /** @internal */
79
- export const ExternalOrganization$outboundSchema: z.ZodType<
80
- ExternalOrganization$Outbound,
81
- z.ZodTypeDef,
82
- ExternalOrganization
83
- > = z.object({
84
- id: z.string(),
85
- platform: Platforms$outboundSchema,
86
- name: z.string(),
87
- avatarUrl: z.string(),
88
- isPersonal: z.boolean(),
89
- bio: z.nullable(z.string()),
90
- prettyName: z.nullable(z.string()),
91
- company: z.nullable(z.string()),
92
- blog: z.nullable(z.string()),
93
- location: z.nullable(z.string()),
94
- email: z.nullable(z.string()),
95
- twitterUsername: z.nullable(z.string()),
96
- organizationId: z.nullable(z.string()),
97
- }).transform((v) => {
98
- return remap$(v, {
99
- avatarUrl: "avatar_url",
100
- isPersonal: "is_personal",
101
- prettyName: "pretty_name",
102
- twitterUsername: "twitter_username",
103
- organizationId: "organization_id",
104
- });
105
- });
106
-
107
- /**
108
- * @internal
109
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
110
- */
111
- export namespace ExternalOrganization$ {
112
- /** @deprecated use `ExternalOrganization$inboundSchema` instead. */
113
- export const inboundSchema = ExternalOrganization$inboundSchema;
114
- /** @deprecated use `ExternalOrganization$outboundSchema` instead. */
115
- export const outboundSchema = ExternalOrganization$outboundSchema;
116
- /** @deprecated use `ExternalOrganization$Outbound` instead. */
117
- export type Outbound = ExternalOrganization$Outbound;
118
- }
119
-
120
- export function externalOrganizationToJSON(
121
- externalOrganization: ExternalOrganization,
122
- ): string {
123
- return JSON.stringify(
124
- ExternalOrganization$outboundSchema.parse(externalOrganization),
125
- );
126
- }
127
-
128
- export function externalOrganizationFromJSON(
129
- jsonString: string,
130
- ): SafeParseResult<ExternalOrganization, SDKValidationError> {
131
- return safeParse(
132
- jsonString,
133
- (x) => ExternalOrganization$inboundSchema.parse(JSON.parse(x)),
134
- `Failed to parse 'ExternalOrganization' from JSON`,
135
- );
136
- }
@@ -1,37 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import * as z from "zod";
6
- import { ClosedEnum } from "../../types/enums.js";
7
-
8
- export const ExternalOrganizationSortProperty = {
9
- CreatedAt: "created_at",
10
- MinusCreatedAt: "-created_at",
11
- Name: "name",
12
- MinusName: "-name",
13
- } as const;
14
- export type ExternalOrganizationSortProperty = ClosedEnum<
15
- typeof ExternalOrganizationSortProperty
16
- >;
17
-
18
- /** @internal */
19
- export const ExternalOrganizationSortProperty$inboundSchema: z.ZodNativeEnum<
20
- typeof ExternalOrganizationSortProperty
21
- > = z.nativeEnum(ExternalOrganizationSortProperty);
22
-
23
- /** @internal */
24
- export const ExternalOrganizationSortProperty$outboundSchema: z.ZodNativeEnum<
25
- typeof ExternalOrganizationSortProperty
26
- > = ExternalOrganizationSortProperty$inboundSchema;
27
-
28
- /**
29
- * @internal
30
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
31
- */
32
- export namespace ExternalOrganizationSortProperty$ {
33
- /** @deprecated use `ExternalOrganizationSortProperty$inboundSchema` instead. */
34
- export const inboundSchema = ExternalOrganizationSortProperty$inboundSchema;
35
- /** @deprecated use `ExternalOrganizationSortProperty$outboundSchema` instead. */
36
- export const outboundSchema = ExternalOrganizationSortProperty$outboundSchema;
37
- }
@@ -1,83 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import * as z from "zod";
6
- import { remap as remap$ } from "../../lib/primitives.js";
7
- import { safeParse } from "../../lib/schemas.js";
8
- import { Result as SafeParseResult } from "../../types/fp.js";
9
- import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
- import {
11
- CurrencyAmount,
12
- CurrencyAmount$inboundSchema,
13
- CurrencyAmount$Outbound,
14
- CurrencyAmount$outboundSchema,
15
- } from "./currencyamount.js";
16
-
17
- export type Funding = {
18
- fundingGoal?: CurrencyAmount | null | undefined;
19
- /**
20
- * Sum of pledges to this isuse (including currently open pledges and pledges that have been paid out). Always in USD.
21
- */
22
- pledgesSum?: CurrencyAmount | null | undefined;
23
- };
24
-
25
- /** @internal */
26
- export const Funding$inboundSchema: z.ZodType<Funding, z.ZodTypeDef, unknown> =
27
- z.object({
28
- funding_goal: z.nullable(CurrencyAmount$inboundSchema).optional(),
29
- pledges_sum: z.nullable(CurrencyAmount$inboundSchema).optional(),
30
- }).transform((v) => {
31
- return remap$(v, {
32
- "funding_goal": "fundingGoal",
33
- "pledges_sum": "pledgesSum",
34
- });
35
- });
36
-
37
- /** @internal */
38
- export type Funding$Outbound = {
39
- funding_goal?: CurrencyAmount$Outbound | null | undefined;
40
- pledges_sum?: CurrencyAmount$Outbound | null | undefined;
41
- };
42
-
43
- /** @internal */
44
- export const Funding$outboundSchema: z.ZodType<
45
- Funding$Outbound,
46
- z.ZodTypeDef,
47
- Funding
48
- > = z.object({
49
- fundingGoal: z.nullable(CurrencyAmount$outboundSchema).optional(),
50
- pledgesSum: z.nullable(CurrencyAmount$outboundSchema).optional(),
51
- }).transform((v) => {
52
- return remap$(v, {
53
- fundingGoal: "funding_goal",
54
- pledgesSum: "pledges_sum",
55
- });
56
- });
57
-
58
- /**
59
- * @internal
60
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
61
- */
62
- export namespace Funding$ {
63
- /** @deprecated use `Funding$inboundSchema` instead. */
64
- export const inboundSchema = Funding$inboundSchema;
65
- /** @deprecated use `Funding$outboundSchema` instead. */
66
- export const outboundSchema = Funding$outboundSchema;
67
- /** @deprecated use `Funding$Outbound` instead. */
68
- export type Outbound = Funding$Outbound;
69
- }
70
-
71
- export function fundingToJSON(funding: Funding): string {
72
- return JSON.stringify(Funding$outboundSchema.parse(funding));
73
- }
74
-
75
- export function fundingFromJSON(
76
- jsonString: string,
77
- ): SafeParseResult<Funding, SDKValidationError> {
78
- return safeParse(
79
- jsonString,
80
- (x) => Funding$inboundSchema.parse(JSON.parse(x)),
81
- `Failed to parse 'Funding' from JSON`,
82
- );
83
- }