@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,141 +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
- ExternalOrganization,
12
- ExternalOrganization$inboundSchema,
13
- ExternalOrganization$Outbound,
14
- ExternalOrganization$outboundSchema,
15
- } from "./externalorganization.js";
16
- import {
17
- Organization,
18
- Organization$inboundSchema,
19
- Organization$Outbound,
20
- Organization$outboundSchema,
21
- } from "./organization.js";
22
- import {
23
- Platforms,
24
- Platforms$inboundSchema,
25
- Platforms$outboundSchema,
26
- } from "./platforms.js";
27
- import {
28
- RepositoryProfileSettings,
29
- RepositoryProfileSettings$inboundSchema,
30
- RepositoryProfileSettings$Outbound,
31
- RepositoryProfileSettings$outboundSchema,
32
- } from "./repositoryprofilesettings.js";
33
-
34
- export type Repository = {
35
- id: string;
36
- platform: Platforms;
37
- isPrivate: boolean;
38
- name: string;
39
- description: string | null;
40
- stars: number | null;
41
- license: string | null;
42
- homepage: string | null;
43
- /**
44
- * Settings for the repository profile
45
- */
46
- profileSettings: RepositoryProfileSettings | null;
47
- organization: ExternalOrganization;
48
- internalOrganization: Organization | null;
49
- };
50
-
51
- /** @internal */
52
- export const Repository$inboundSchema: z.ZodType<
53
- Repository,
54
- z.ZodTypeDef,
55
- unknown
56
- > = z.object({
57
- id: z.string(),
58
- platform: Platforms$inboundSchema,
59
- is_private: z.boolean(),
60
- name: z.string(),
61
- description: z.nullable(z.string()),
62
- stars: z.nullable(z.number().int()),
63
- license: z.nullable(z.string()),
64
- homepage: z.nullable(z.string()),
65
- profile_settings: z.nullable(RepositoryProfileSettings$inboundSchema),
66
- organization: ExternalOrganization$inboundSchema,
67
- internal_organization: z.nullable(Organization$inboundSchema),
68
- }).transform((v) => {
69
- return remap$(v, {
70
- "is_private": "isPrivate",
71
- "profile_settings": "profileSettings",
72
- "internal_organization": "internalOrganization",
73
- });
74
- });
75
-
76
- /** @internal */
77
- export type Repository$Outbound = {
78
- id: string;
79
- platform: string;
80
- is_private: boolean;
81
- name: string;
82
- description: string | null;
83
- stars: number | null;
84
- license: string | null;
85
- homepage: string | null;
86
- profile_settings: RepositoryProfileSettings$Outbound | null;
87
- organization: ExternalOrganization$Outbound;
88
- internal_organization: Organization$Outbound | null;
89
- };
90
-
91
- /** @internal */
92
- export const Repository$outboundSchema: z.ZodType<
93
- Repository$Outbound,
94
- z.ZodTypeDef,
95
- Repository
96
- > = z.object({
97
- id: z.string(),
98
- platform: Platforms$outboundSchema,
99
- isPrivate: z.boolean(),
100
- name: z.string(),
101
- description: z.nullable(z.string()),
102
- stars: z.nullable(z.number().int()),
103
- license: z.nullable(z.string()),
104
- homepage: z.nullable(z.string()),
105
- profileSettings: z.nullable(RepositoryProfileSettings$outboundSchema),
106
- organization: ExternalOrganization$outboundSchema,
107
- internalOrganization: z.nullable(Organization$outboundSchema),
108
- }).transform((v) => {
109
- return remap$(v, {
110
- isPrivate: "is_private",
111
- profileSettings: "profile_settings",
112
- internalOrganization: "internal_organization",
113
- });
114
- });
115
-
116
- /**
117
- * @internal
118
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
119
- */
120
- export namespace Repository$ {
121
- /** @deprecated use `Repository$inboundSchema` instead. */
122
- export const inboundSchema = Repository$inboundSchema;
123
- /** @deprecated use `Repository$outboundSchema` instead. */
124
- export const outboundSchema = Repository$outboundSchema;
125
- /** @deprecated use `Repository$Outbound` instead. */
126
- export type Outbound = Repository$Outbound;
127
- }
128
-
129
- export function repositoryToJSON(repository: Repository): string {
130
- return JSON.stringify(Repository$outboundSchema.parse(repository));
131
- }
132
-
133
- export function repositoryFromJSON(
134
- jsonString: string,
135
- ): SafeParseResult<Repository, SDKValidationError> {
136
- return safeParse(
137
- jsonString,
138
- (x) => Repository$inboundSchema.parse(JSON.parse(x)),
139
- `Failed to parse 'Repository' from JSON`,
140
- );
141
- }
@@ -1,110 +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 RepositoryProfileSettings = {
12
- /**
13
- * A description of the repository
14
- */
15
- description?: string | null | undefined;
16
- /**
17
- * A URL to a cover image
18
- */
19
- coverImageUrl?: string | null | undefined;
20
- /**
21
- * A list of featured organizations
22
- */
23
- featuredOrganizations?: Array<string> | null | undefined;
24
- /**
25
- * A list of highlighted subscription tiers
26
- */
27
- highlightedSubscriptionTiers?: Array<string> | null | undefined;
28
- /**
29
- * A list of links related to the repository
30
- */
31
- links?: Array<string> | null | undefined;
32
- };
33
-
34
- /** @internal */
35
- export const RepositoryProfileSettings$inboundSchema: z.ZodType<
36
- RepositoryProfileSettings,
37
- z.ZodTypeDef,
38
- unknown
39
- > = z.object({
40
- description: z.nullable(z.string()).optional(),
41
- cover_image_url: z.nullable(z.string()).optional(),
42
- featured_organizations: z.nullable(z.array(z.string())).optional(),
43
- highlighted_subscription_tiers: z.nullable(z.array(z.string())).optional(),
44
- links: z.nullable(z.array(z.string())).optional(),
45
- }).transform((v) => {
46
- return remap$(v, {
47
- "cover_image_url": "coverImageUrl",
48
- "featured_organizations": "featuredOrganizations",
49
- "highlighted_subscription_tiers": "highlightedSubscriptionTiers",
50
- });
51
- });
52
-
53
- /** @internal */
54
- export type RepositoryProfileSettings$Outbound = {
55
- description?: string | null | undefined;
56
- cover_image_url?: string | null | undefined;
57
- featured_organizations?: Array<string> | null | undefined;
58
- highlighted_subscription_tiers?: Array<string> | null | undefined;
59
- links?: Array<string> | null | undefined;
60
- };
61
-
62
- /** @internal */
63
- export const RepositoryProfileSettings$outboundSchema: z.ZodType<
64
- RepositoryProfileSettings$Outbound,
65
- z.ZodTypeDef,
66
- RepositoryProfileSettings
67
- > = z.object({
68
- description: z.nullable(z.string()).optional(),
69
- coverImageUrl: z.nullable(z.string()).optional(),
70
- featuredOrganizations: z.nullable(z.array(z.string())).optional(),
71
- highlightedSubscriptionTiers: z.nullable(z.array(z.string())).optional(),
72
- links: z.nullable(z.array(z.string())).optional(),
73
- }).transform((v) => {
74
- return remap$(v, {
75
- coverImageUrl: "cover_image_url",
76
- featuredOrganizations: "featured_organizations",
77
- highlightedSubscriptionTiers: "highlighted_subscription_tiers",
78
- });
79
- });
80
-
81
- /**
82
- * @internal
83
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
84
- */
85
- export namespace RepositoryProfileSettings$ {
86
- /** @deprecated use `RepositoryProfileSettings$inboundSchema` instead. */
87
- export const inboundSchema = RepositoryProfileSettings$inboundSchema;
88
- /** @deprecated use `RepositoryProfileSettings$outboundSchema` instead. */
89
- export const outboundSchema = RepositoryProfileSettings$outboundSchema;
90
- /** @deprecated use `RepositoryProfileSettings$Outbound` instead. */
91
- export type Outbound = RepositoryProfileSettings$Outbound;
92
- }
93
-
94
- export function repositoryProfileSettingsToJSON(
95
- repositoryProfileSettings: RepositoryProfileSettings,
96
- ): string {
97
- return JSON.stringify(
98
- RepositoryProfileSettings$outboundSchema.parse(repositoryProfileSettings),
99
- );
100
- }
101
-
102
- export function repositoryProfileSettingsFromJSON(
103
- jsonString: string,
104
- ): SafeParseResult<RepositoryProfileSettings, SDKValidationError> {
105
- return safeParse(
106
- jsonString,
107
- (x) => RepositoryProfileSettings$inboundSchema.parse(JSON.parse(x)),
108
- `Failed to parse 'RepositoryProfileSettings' from JSON`,
109
- );
110
- }
@@ -1,109 +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 RepositoryProfileSettingsUpdate = {
12
- setDescription?: boolean | null | undefined;
13
- description?: string | null | undefined;
14
- setCoverImageUrl?: boolean | null | undefined;
15
- coverImageUrl?: string | null | undefined;
16
- featuredOrganizations?: Array<string> | null | undefined;
17
- highlightedSubscriptionTiers?: Array<string> | null | undefined;
18
- links?: Array<string> | null | undefined;
19
- };
20
-
21
- /** @internal */
22
- export const RepositoryProfileSettingsUpdate$inboundSchema: z.ZodType<
23
- RepositoryProfileSettingsUpdate,
24
- z.ZodTypeDef,
25
- unknown
26
- > = z.object({
27
- set_description: z.nullable(z.boolean()).optional(),
28
- description: z.nullable(z.string()).optional(),
29
- set_cover_image_url: z.nullable(z.boolean()).optional(),
30
- cover_image_url: z.nullable(z.string()).optional(),
31
- featured_organizations: z.nullable(z.array(z.string())).optional(),
32
- highlighted_subscription_tiers: z.nullable(z.array(z.string())).optional(),
33
- links: z.nullable(z.array(z.string())).optional(),
34
- }).transform((v) => {
35
- return remap$(v, {
36
- "set_description": "setDescription",
37
- "set_cover_image_url": "setCoverImageUrl",
38
- "cover_image_url": "coverImageUrl",
39
- "featured_organizations": "featuredOrganizations",
40
- "highlighted_subscription_tiers": "highlightedSubscriptionTiers",
41
- });
42
- });
43
-
44
- /** @internal */
45
- export type RepositoryProfileSettingsUpdate$Outbound = {
46
- set_description?: boolean | null | undefined;
47
- description?: string | null | undefined;
48
- set_cover_image_url?: boolean | null | undefined;
49
- cover_image_url?: string | null | undefined;
50
- featured_organizations?: Array<string> | null | undefined;
51
- highlighted_subscription_tiers?: Array<string> | null | undefined;
52
- links?: Array<string> | null | undefined;
53
- };
54
-
55
- /** @internal */
56
- export const RepositoryProfileSettingsUpdate$outboundSchema: z.ZodType<
57
- RepositoryProfileSettingsUpdate$Outbound,
58
- z.ZodTypeDef,
59
- RepositoryProfileSettingsUpdate
60
- > = z.object({
61
- setDescription: z.nullable(z.boolean()).optional(),
62
- description: z.nullable(z.string()).optional(),
63
- setCoverImageUrl: z.nullable(z.boolean()).optional(),
64
- coverImageUrl: z.nullable(z.string()).optional(),
65
- featuredOrganizations: z.nullable(z.array(z.string())).optional(),
66
- highlightedSubscriptionTiers: z.nullable(z.array(z.string())).optional(),
67
- links: z.nullable(z.array(z.string())).optional(),
68
- }).transform((v) => {
69
- return remap$(v, {
70
- setDescription: "set_description",
71
- setCoverImageUrl: "set_cover_image_url",
72
- coverImageUrl: "cover_image_url",
73
- featuredOrganizations: "featured_organizations",
74
- highlightedSubscriptionTiers: "highlighted_subscription_tiers",
75
- });
76
- });
77
-
78
- /**
79
- * @internal
80
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
81
- */
82
- export namespace RepositoryProfileSettingsUpdate$ {
83
- /** @deprecated use `RepositoryProfileSettingsUpdate$inboundSchema` instead. */
84
- export const inboundSchema = RepositoryProfileSettingsUpdate$inboundSchema;
85
- /** @deprecated use `RepositoryProfileSettingsUpdate$outboundSchema` instead. */
86
- export const outboundSchema = RepositoryProfileSettingsUpdate$outboundSchema;
87
- /** @deprecated use `RepositoryProfileSettingsUpdate$Outbound` instead. */
88
- export type Outbound = RepositoryProfileSettingsUpdate$Outbound;
89
- }
90
-
91
- export function repositoryProfileSettingsUpdateToJSON(
92
- repositoryProfileSettingsUpdate: RepositoryProfileSettingsUpdate,
93
- ): string {
94
- return JSON.stringify(
95
- RepositoryProfileSettingsUpdate$outboundSchema.parse(
96
- repositoryProfileSettingsUpdate,
97
- ),
98
- );
99
- }
100
-
101
- export function repositoryProfileSettingsUpdateFromJSON(
102
- jsonString: string,
103
- ): SafeParseResult<RepositoryProfileSettingsUpdate, SDKValidationError> {
104
- return safeParse(
105
- jsonString,
106
- (x) => RepositoryProfileSettingsUpdate$inboundSchema.parse(JSON.parse(x)),
107
- `Failed to parse 'RepositoryProfileSettingsUpdate' from JSON`,
108
- );
109
- }
@@ -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 RepositorySortProperty = {
9
- CreatedAt: "created_at",
10
- MinusCreatedAt: "-created_at",
11
- Name: "name",
12
- MinusName: "-name",
13
- Stars: "stars",
14
- MinusStars: "-stars",
15
- } as const;
16
- export type RepositorySortProperty = ClosedEnum<typeof RepositorySortProperty>;
17
-
18
- /** @internal */
19
- export const RepositorySortProperty$inboundSchema: z.ZodNativeEnum<
20
- typeof RepositorySortProperty
21
- > = z.nativeEnum(RepositorySortProperty);
22
-
23
- /** @internal */
24
- export const RepositorySortProperty$outboundSchema: z.ZodNativeEnum<
25
- typeof RepositorySortProperty
26
- > = RepositorySortProperty$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 RepositorySortProperty$ {
33
- /** @deprecated use `RepositorySortProperty$inboundSchema` instead. */
34
- export const inboundSchema = RepositorySortProperty$inboundSchema;
35
- /** @deprecated use `RepositorySortProperty$outboundSchema` instead. */
36
- export const outboundSchema = RepositorySortProperty$outboundSchema;
37
- }
@@ -1,86 +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
- RepositoryProfileSettingsUpdate,
12
- RepositoryProfileSettingsUpdate$inboundSchema,
13
- RepositoryProfileSettingsUpdate$Outbound,
14
- RepositoryProfileSettingsUpdate$outboundSchema,
15
- } from "./repositoryprofilesettingsupdate.js";
16
-
17
- export type RepositoryUpdate = {
18
- profileSettings?: RepositoryProfileSettingsUpdate | null | undefined;
19
- };
20
-
21
- /** @internal */
22
- export const RepositoryUpdate$inboundSchema: z.ZodType<
23
- RepositoryUpdate,
24
- z.ZodTypeDef,
25
- unknown
26
- > = z.object({
27
- profile_settings: z.nullable(RepositoryProfileSettingsUpdate$inboundSchema)
28
- .optional(),
29
- }).transform((v) => {
30
- return remap$(v, {
31
- "profile_settings": "profileSettings",
32
- });
33
- });
34
-
35
- /** @internal */
36
- export type RepositoryUpdate$Outbound = {
37
- profile_settings?:
38
- | RepositoryProfileSettingsUpdate$Outbound
39
- | null
40
- | undefined;
41
- };
42
-
43
- /** @internal */
44
- export const RepositoryUpdate$outboundSchema: z.ZodType<
45
- RepositoryUpdate$Outbound,
46
- z.ZodTypeDef,
47
- RepositoryUpdate
48
- > = z.object({
49
- profileSettings: z.nullable(RepositoryProfileSettingsUpdate$outboundSchema)
50
- .optional(),
51
- }).transform((v) => {
52
- return remap$(v, {
53
- profileSettings: "profile_settings",
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 RepositoryUpdate$ {
62
- /** @deprecated use `RepositoryUpdate$inboundSchema` instead. */
63
- export const inboundSchema = RepositoryUpdate$inboundSchema;
64
- /** @deprecated use `RepositoryUpdate$outboundSchema` instead. */
65
- export const outboundSchema = RepositoryUpdate$outboundSchema;
66
- /** @deprecated use `RepositoryUpdate$Outbound` instead. */
67
- export type Outbound = RepositoryUpdate$Outbound;
68
- }
69
-
70
- export function repositoryUpdateToJSON(
71
- repositoryUpdate: RepositoryUpdate,
72
- ): string {
73
- return JSON.stringify(
74
- RepositoryUpdate$outboundSchema.parse(repositoryUpdate),
75
- );
76
- }
77
-
78
- export function repositoryUpdateFromJSON(
79
- jsonString: string,
80
- ): SafeParseResult<RepositoryUpdate, SDKValidationError> {
81
- return safeParse(
82
- jsonString,
83
- (x) => RepositoryUpdate$inboundSchema.parse(JSON.parse(x)),
84
- `Failed to parse 'RepositoryUpdate' from JSON`,
85
- );
86
- }
@@ -1,32 +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 State = {
9
- Open: "open",
10
- Closed: "closed",
11
- } as const;
12
- export type State = ClosedEnum<typeof State>;
13
-
14
- /** @internal */
15
- export const State$inboundSchema: z.ZodNativeEnum<typeof State> = z.nativeEnum(
16
- State,
17
- );
18
-
19
- /** @internal */
20
- export const State$outboundSchema: z.ZodNativeEnum<typeof State> =
21
- State$inboundSchema;
22
-
23
- /**
24
- * @internal
25
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
26
- */
27
- export namespace State$ {
28
- /** @deprecated use `State$inboundSchema` instead. */
29
- export const inboundSchema = State$inboundSchema;
30
- /** @deprecated use `State$outboundSchema` instead. */
31
- export const outboundSchema = State$outboundSchema;
32
- }
@@ -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 { safeParse } from "../../lib/schemas.js";
7
- import { Result as SafeParseResult } from "../../types/fp.js";
8
- import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
- import {
10
- Pledge,
11
- Pledge$inboundSchema,
12
- Pledge$Outbound,
13
- Pledge$outboundSchema,
14
- } from "./pledge.js";
15
-
16
- /**
17
- * Sent when a new pledge is created. Note that this does mean that the pledge has been paid yet.
18
- *
19
- * @remarks
20
- *
21
- * **Discord & Slack support:** Full
22
- */
23
- export type WebhookPledgeCreatedPayload = {
24
- type?: "pledge.created" | undefined;
25
- data: Pledge;
26
- };
27
-
28
- /** @internal */
29
- export const WebhookPledgeCreatedPayload$inboundSchema: z.ZodType<
30
- WebhookPledgeCreatedPayload,
31
- z.ZodTypeDef,
32
- unknown
33
- > = z.object({
34
- type: z.literal("pledge.created").optional(),
35
- data: Pledge$inboundSchema,
36
- });
37
-
38
- /** @internal */
39
- export type WebhookPledgeCreatedPayload$Outbound = {
40
- type: "pledge.created";
41
- data: Pledge$Outbound;
42
- };
43
-
44
- /** @internal */
45
- export const WebhookPledgeCreatedPayload$outboundSchema: z.ZodType<
46
- WebhookPledgeCreatedPayload$Outbound,
47
- z.ZodTypeDef,
48
- WebhookPledgeCreatedPayload
49
- > = z.object({
50
- type: z.literal("pledge.created").default("pledge.created" as const),
51
- data: Pledge$outboundSchema,
52
- });
53
-
54
- /**
55
- * @internal
56
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
57
- */
58
- export namespace WebhookPledgeCreatedPayload$ {
59
- /** @deprecated use `WebhookPledgeCreatedPayload$inboundSchema` instead. */
60
- export const inboundSchema = WebhookPledgeCreatedPayload$inboundSchema;
61
- /** @deprecated use `WebhookPledgeCreatedPayload$outboundSchema` instead. */
62
- export const outboundSchema = WebhookPledgeCreatedPayload$outboundSchema;
63
- /** @deprecated use `WebhookPledgeCreatedPayload$Outbound` instead. */
64
- export type Outbound = WebhookPledgeCreatedPayload$Outbound;
65
- }
66
-
67
- export function webhookPledgeCreatedPayloadToJSON(
68
- webhookPledgeCreatedPayload: WebhookPledgeCreatedPayload,
69
- ): string {
70
- return JSON.stringify(
71
- WebhookPledgeCreatedPayload$outboundSchema.parse(
72
- webhookPledgeCreatedPayload,
73
- ),
74
- );
75
- }
76
-
77
- export function webhookPledgeCreatedPayloadFromJSON(
78
- jsonString: string,
79
- ): SafeParseResult<WebhookPledgeCreatedPayload, SDKValidationError> {
80
- return safeParse(
81
- jsonString,
82
- (x) => WebhookPledgeCreatedPayload$inboundSchema.parse(JSON.parse(x)),
83
- `Failed to parse 'WebhookPledgeCreatedPayload' from JSON`,
84
- );
85
- }
@@ -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 { safeParse } from "../../lib/schemas.js";
7
- import { Result as SafeParseResult } from "../../types/fp.js";
8
- import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
- import {
10
- Pledge,
11
- Pledge$inboundSchema,
12
- Pledge$Outbound,
13
- Pledge$outboundSchema,
14
- } from "./pledge.js";
15
-
16
- /**
17
- * Sent when a pledge is updated.
18
- *
19
- * @remarks
20
- *
21
- * **Discord & Slack support:** Basic
22
- */
23
- export type WebhookPledgeUpdatedPayload = {
24
- type?: "pledge.updated" | undefined;
25
- data: Pledge;
26
- };
27
-
28
- /** @internal */
29
- export const WebhookPledgeUpdatedPayload$inboundSchema: z.ZodType<
30
- WebhookPledgeUpdatedPayload,
31
- z.ZodTypeDef,
32
- unknown
33
- > = z.object({
34
- type: z.literal("pledge.updated").optional(),
35
- data: Pledge$inboundSchema,
36
- });
37
-
38
- /** @internal */
39
- export type WebhookPledgeUpdatedPayload$Outbound = {
40
- type: "pledge.updated";
41
- data: Pledge$Outbound;
42
- };
43
-
44
- /** @internal */
45
- export const WebhookPledgeUpdatedPayload$outboundSchema: z.ZodType<
46
- WebhookPledgeUpdatedPayload$Outbound,
47
- z.ZodTypeDef,
48
- WebhookPledgeUpdatedPayload
49
- > = z.object({
50
- type: z.literal("pledge.updated").default("pledge.updated" as const),
51
- data: Pledge$outboundSchema,
52
- });
53
-
54
- /**
55
- * @internal
56
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
57
- */
58
- export namespace WebhookPledgeUpdatedPayload$ {
59
- /** @deprecated use `WebhookPledgeUpdatedPayload$inboundSchema` instead. */
60
- export const inboundSchema = WebhookPledgeUpdatedPayload$inboundSchema;
61
- /** @deprecated use `WebhookPledgeUpdatedPayload$outboundSchema` instead. */
62
- export const outboundSchema = WebhookPledgeUpdatedPayload$outboundSchema;
63
- /** @deprecated use `WebhookPledgeUpdatedPayload$Outbound` instead. */
64
- export type Outbound = WebhookPledgeUpdatedPayload$Outbound;
65
- }
66
-
67
- export function webhookPledgeUpdatedPayloadToJSON(
68
- webhookPledgeUpdatedPayload: WebhookPledgeUpdatedPayload,
69
- ): string {
70
- return JSON.stringify(
71
- WebhookPledgeUpdatedPayload$outboundSchema.parse(
72
- webhookPledgeUpdatedPayload,
73
- ),
74
- );
75
- }
76
-
77
- export function webhookPledgeUpdatedPayloadFromJSON(
78
- jsonString: string,
79
- ): SafeParseResult<WebhookPledgeUpdatedPayload, SDKValidationError> {
80
- return safeParse(
81
- jsonString,
82
- (x) => WebhookPledgeUpdatedPayload$inboundSchema.parse(JSON.parse(x)),
83
- `Failed to parse 'WebhookPledgeUpdatedPayload' from JSON`,
84
- );
85
- }