codecraftai-restclient-github-public 1.2.0__py3-none-any.whl

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 (579) hide show
  1. ccai/restclient/github/public/__init__.py +0 -0
  2. ccai/restclient/github/public/generation/githubrestclientgenerator.py +56 -0
  3. ccai/restclient/github/public/generation/specs/api-hints.json +172 -0
  4. ccai/restclient/github/public/generation/specs/api-public.json +306020 -0
  5. ccai/restclient/github/public/generation/specs/pagination-hints.json +31 -0
  6. ccai/restclient/github/public/githubpublicrestclient.py +262 -0
  7. ccai/restclient/github/public/githubrestclientbase.py +120 -0
  8. ccai/restclient/github/public/groups/__init__.py +0 -0
  9. ccai/restclient/github/public/groups/actions.py +8042 -0
  10. ccai/restclient/github/public/groups/activity.py +1488 -0
  11. ccai/restclient/github/public/groups/apiinsights.py +478 -0
  12. ccai/restclient/github/public/groups/apps.py +1662 -0
  13. ccai/restclient/github/public/groups/billing.py +401 -0
  14. ccai/restclient/github/public/groups/campaigns.py +262 -0
  15. ccai/restclient/github/public/groups/checks.py +632 -0
  16. ccai/restclient/github/public/groups/classroom.py +276 -0
  17. ccai/restclient/github/public/groups/codescanning.py +1203 -0
  18. ccai/restclient/github/public/groups/codesecurity.py +997 -0
  19. ccai/restclient/github/public/groups/codesofconduct.py +92 -0
  20. ccai/restclient/github/public/groups/codespaces.py +2271 -0
  21. ccai/restclient/github/public/groups/copilot.py +517 -0
  22. ccai/restclient/github/public/groups/credentials.py +62 -0
  23. ccai/restclient/github/public/groups/dependabot.py +1155 -0
  24. ccai/restclient/github/public/groups/dependencygraph.py +152 -0
  25. ccai/restclient/github/public/groups/emojis.py +51 -0
  26. ccai/restclient/github/public/groups/gists.py +909 -0
  27. ccai/restclient/github/public/groups/git.py +734 -0
  28. ccai/restclient/github/public/groups/gitignore.py +96 -0
  29. ccai/restclient/github/public/groups/hostedcompute.py +290 -0
  30. ccai/restclient/github/public/groups/interactions.py +389 -0
  31. ccai/restclient/github/public/groups/issues.py +2460 -0
  32. ccai/restclient/github/public/groups/licenses.py +153 -0
  33. ccai/restclient/github/public/groups/markdown.py +88 -0
  34. ccai/restclient/github/public/groups/meta.py +213 -0
  35. ccai/restclient/github/public/groups/migrations.py +1079 -0
  36. ccai/restclient/github/public/groups/oidc.py +102 -0
  37. ccai/restclient/github/public/groups/orgs.py +3958 -0
  38. ccai/restclient/github/public/groups/packages.py +1316 -0
  39. ccai/restclient/github/public/groups/privateregistries.py +294 -0
  40. ccai/restclient/github/public/groups/projectsclassic.py +1154 -0
  41. ccai/restclient/github/public/groups/pulls.py +1469 -0
  42. ccai/restclient/github/public/groups/ratelimit.py +68 -0
  43. ccai/restclient/github/public/groups/reactions.py +1247 -0
  44. ccai/restclient/github/public/groups/repos.py +9741 -0
  45. ccai/restclient/github/public/groups/search.py +417 -0
  46. ccai/restclient/github/public/groups/secretscanning.py +568 -0
  47. ccai/restclient/github/public/groups/securityadvisories.py +541 -0
  48. ccai/restclient/github/public/groups/teams.py +2985 -0
  49. ccai/restclient/github/public/groups/users.py +2054 -0
  50. ccai/restclient/github/public/py.typed +0 -0
  51. ccai/restclient/github/public/schemas/__init__.py +0 -0
  52. ccai/restclient/github/public/schemas/actions.py +418 -0
  53. ccai/restclient/github/public/schemas/activity.py +95 -0
  54. ccai/restclient/github/public/schemas/actor.py +20 -0
  55. ccai/restclient/github/public/schemas/addedtoprojectissueevent.py +24 -0
  56. ccai/restclient/github/public/schemas/apps.py +151 -0
  57. ccai/restclient/github/public/schemas/assignedissueevent.py +25 -0
  58. ccai/restclient/github/public/schemas/authenticationtoken.py +20 -0
  59. ccai/restclient/github/public/schemas/automerge.py +16 -0
  60. ccai/restclient/github/public/schemas/basicerror.py +16 -0
  61. ccai/restclient/github/public/schemas/billing.py +27 -0
  62. ccai/restclient/github/public/schemas/billingusagereport.py +12 -0
  63. ccai/restclient/github/public/schemas/billingusagereportuser.py +12 -0
  64. ccai/restclient/github/public/schemas/campaigns.py +27 -0
  65. ccai/restclient/github/public/schemas/checkrunwithsimplechecksuite.py +31 -0
  66. ccai/restclient/github/public/schemas/checks.py +80 -0
  67. ccai/restclient/github/public/schemas/classroom.py +109 -0
  68. ccai/restclient/github/public/schemas/codeofconductsimple.py +18 -0
  69. ccai/restclient/github/public/schemas/codescanning.py +197 -0
  70. ccai/restclient/github/public/schemas/codescanningalertlocation.py +17 -0
  71. ccai/restclient/github/public/schemas/codescanningalertrule.py +20 -0
  72. ccai/restclient/github/public/schemas/codescanningalertrulesummary.py +20 -0
  73. ccai/restclient/github/public/schemas/codescanninganalysistool.py +14 -0
  74. ccai/restclient/github/public/schemas/codescanningautofixcommitsresponse.py +11 -0
  75. ccai/restclient/github/public/schemas/codescanningdefaultsetupupdateresponse.py +15 -0
  76. ccai/restclient/github/public/schemas/codescanningsarifsreceipt.py +11 -0
  77. ccai/restclient/github/public/schemas/codescanningvariantanalysisrepository.py +20 -0
  78. ccai/restclient/github/public/schemas/codescanningvariantanalysisskippedrepogroup.py +13 -0
  79. ccai/restclient/github/public/schemas/codesecurity.py +73 -0
  80. ccai/restclient/github/public/schemas/codesofconduct.py +19 -0
  81. ccai/restclient/github/public/schemas/codespaces.py +130 -0
  82. ccai/restclient/github/public/schemas/codespacewithfullrepository.py +45 -0
  83. ccai/restclient/github/public/schemas/commit.py +25 -0
  84. ccai/restclient/github/public/schemas/contenttree.py +27 -0
  85. ccai/restclient/github/public/schemas/convertednotetoissueissueevent.py +24 -0
  86. ccai/restclient/github/public/schemas/copilot.py +50 -0
  87. ccai/restclient/github/public/schemas/copilotdotcomchat.py +16 -0
  88. ccai/restclient/github/public/schemas/copilotdotcompullrequests.py +16 -0
  89. ccai/restclient/github/public/schemas/copilotidechat.py +16 -0
  90. ccai/restclient/github/public/schemas/copilotidecodecompletions.py +17 -0
  91. ccai/restclient/github/public/schemas/copilotorganizationseatbreakdown.py +18 -0
  92. ccai/restclient/github/public/schemas/cvssseverities.py +13 -0
  93. ccai/restclient/github/public/schemas/demilestonedissueevent.py +24 -0
  94. ccai/restclient/github/public/schemas/dependabot.py +87 -0
  95. ccai/restclient/github/public/schemas/dependabotalertpackage.py +14 -0
  96. ccai/restclient/github/public/schemas/dependabotalertsecurityadvisory.py +29 -0
  97. ccai/restclient/github/public/schemas/dependabotalertsecurityvulnerability.py +18 -0
  98. ccai/restclient/github/public/schemas/dependency.py +16 -0
  99. ccai/restclient/github/public/schemas/dependencygraph.py +29 -0
  100. ccai/restclient/github/public/schemas/deploymentsimple.py +28 -0
  101. ccai/restclient/github/public/schemas/discussion.py +37 -0
  102. ccai/restclient/github/public/schemas/enterprise.py +24 -0
  103. ccai/restclient/github/public/schemas/enterpriseteam.py +27 -0
  104. ccai/restclient/github/public/schemas/enterprisewebhooks.py +26 -0
  105. ccai/restclient/github/public/schemas/gisthistory.py +19 -0
  106. ccai/restclient/github/public/schemas/gists.py +88 -0
  107. ccai/restclient/github/public/schemas/git.py +71 -0
  108. ccai/restclient/github/public/schemas/gitignore.py +14 -0
  109. ccai/restclient/github/public/schemas/hookdelivery.py +29 -0
  110. ccai/restclient/github/public/schemas/hookdeliveryitem.py +26 -0
  111. ccai/restclient/github/public/schemas/hookresponse.py +14 -0
  112. ccai/restclient/github/public/schemas/hostedcompute.py +30 -0
  113. ccai/restclient/github/public/schemas/installation.py +35 -0
  114. ccai/restclient/github/public/schemas/installationtoken.py +22 -0
  115. ccai/restclient/github/public/schemas/interactions.py +23 -0
  116. ccai/restclient/github/public/schemas/issuedependenciessummary.py +13 -0
  117. ccai/restclient/github/public/schemas/issueeventdismissedreview.py +15 -0
  118. ccai/restclient/github/public/schemas/issueeventlabel.py +16 -0
  119. ccai/restclient/github/public/schemas/issueeventmilestone.py +13 -0
  120. ccai/restclient/github/public/schemas/issueeventprojectcard.py +18 -0
  121. ccai/restclient/github/public/schemas/issueeventrename.py +14 -0
  122. ccai/restclient/github/public/schemas/issuefieldvalue.py +19 -0
  123. ccai/restclient/github/public/schemas/issues.py +135 -0
  124. ccai/restclient/github/public/schemas/labeledissueevent.py +24 -0
  125. ccai/restclient/github/public/schemas/licenses.py +58 -0
  126. ccai/restclient/github/public/schemas/link.py +13 -0
  127. ccai/restclient/github/public/schemas/linkwithtype.py +14 -0
  128. ccai/restclient/github/public/schemas/lockedissueevent.py +24 -0
  129. ccai/restclient/github/public/schemas/manifest.py +15 -0
  130. ccai/restclient/github/public/schemas/marketplaceaccount.py +18 -0
  131. ccai/restclient/github/public/schemas/mergegroup.py +17 -0
  132. ccai/restclient/github/public/schemas/meta.py +67 -0
  133. ccai/restclient/github/public/schemas/migrations.py +84 -0
  134. ccai/restclient/github/public/schemas/milestonedissueevent.py +24 -0
  135. ccai/restclient/github/public/schemas/minimalrepository.py +102 -0
  136. ccai/restclient/github/public/schemas/movedcolumninprojectissueevent.py +24 -0
  137. ccai/restclient/github/public/schemas/nullableactionshostedrunnerpoolimage.py +16 -0
  138. ccai/restclient/github/public/schemas/nullablecodeofconductsimple.py +18 -0
  139. ccai/restclient/github/public/schemas/nullablecodespacemachine.py +21 -0
  140. ccai/restclient/github/public/schemas/nullablecollaborator.py +37 -0
  141. ccai/restclient/github/public/schemas/nullablecommunityhealthfile.py +11 -0
  142. ccai/restclient/github/public/schemas/nullablegituser.py +15 -0
  143. ccai/restclient/github/public/schemas/nullableintegration.py +28 -0
  144. ccai/restclient/github/public/schemas/nullableissue.py +52 -0
  145. ccai/restclient/github/public/schemas/nullablelicensesimple.py +20 -0
  146. ccai/restclient/github/public/schemas/nullablemilestone.py +30 -0
  147. ccai/restclient/github/public/schemas/nullableminimalrepository.py +102 -0
  148. ccai/restclient/github/public/schemas/nullableorganizationsimple.py +26 -0
  149. ccai/restclient/github/public/schemas/nullableprojectsv2statusupdate.py +24 -0
  150. ccai/restclient/github/public/schemas/nullablerepository.py +110 -0
  151. ccai/restclient/github/public/schemas/nullablerepositorywebhooks.py +115 -0
  152. ccai/restclient/github/public/schemas/nullablescopedinstallation.py +18 -0
  153. ccai/restclient/github/public/schemas/nullablesimplecommit.py +20 -0
  154. ccai/restclient/github/public/schemas/nullablesimplerepository.py +60 -0
  155. ccai/restclient/github/public/schemas/nullablesimpleuser.py +36 -0
  156. ccai/restclient/github/public/schemas/nullableteamsimple.py +27 -0
  157. ccai/restclient/github/public/schemas/oidc.py +15 -0
  158. ccai/restclient/github/public/schemas/organizationinvitation.py +26 -0
  159. ccai/restclient/github/public/schemas/organizationsimplewebhooks.py +27 -0
  160. ccai/restclient/github/public/schemas/orgprivateregistryconfigurationwithselectedrepositories.py +21 -0
  161. ccai/restclient/github/public/schemas/orgs.py +332 -0
  162. ccai/restclient/github/public/schemas/packages.py +42 -0
  163. ccai/restclient/github/public/schemas/pagebuildstatus.py +14 -0
  164. ccai/restclient/github/public/schemas/pageshttpscertificate.py +15 -0
  165. ccai/restclient/github/public/schemas/pagessourcehash.py +11 -0
  166. ccai/restclient/github/public/schemas/personalaccesstokenrequest.py +28 -0
  167. ccai/restclient/github/public/schemas/privateregistries.py +20 -0
  168. ccai/restclient/github/public/schemas/projectsclassic.py +70 -0
  169. ccai/restclient/github/public/schemas/projectsv2.py +31 -0
  170. ccai/restclient/github/public/schemas/projectsv2item.py +23 -0
  171. ccai/restclient/github/public/schemas/projectsv2iterationsetting.py +20 -0
  172. ccai/restclient/github/public/schemas/projectsv2singleselectoption.py +18 -0
  173. ccai/restclient/github/public/schemas/projectsv2statusupdate.py +24 -0
  174. ccai/restclient/github/public/schemas/protectedbranchrequiredstatuscheck.py +20 -0
  175. ccai/restclient/github/public/schemas/publicip.py +15 -0
  176. ccai/restclient/github/public/schemas/pullrequestminimal.py +16 -0
  177. ccai/restclient/github/public/schemas/pullrequestsimple.py +50 -0
  178. ccai/restclient/github/public/schemas/pulls.py +185 -0
  179. ccai/restclient/github/public/schemas/ratelimit.py +23 -0
  180. ccai/restclient/github/public/schemas/reactions.py +17 -0
  181. ccai/restclient/github/public/schemas/referencedworkflow.py +15 -0
  182. ccai/restclient/github/public/schemas/removedfromprojectissueevent.py +24 -0
  183. ccai/restclient/github/public/schemas/renamedissueevent.py +24 -0
  184. ccai/restclient/github/public/schemas/repos.py +952 -0
  185. ccai/restclient/github/public/schemas/repository.py +110 -0
  186. ccai/restclient/github/public/schemas/repositoryadvisorycredit.py +15 -0
  187. ccai/restclient/github/public/schemas/repositoryadvisoryvulnerability.py +18 -0
  188. ccai/restclient/github/public/schemas/repositoryrulebranchnamepattern.py +16 -0
  189. ccai/restclient/github/public/schemas/repositoryrulecodescanning.py +16 -0
  190. ccai/restclient/github/public/schemas/repositoryrulecommitauthoremailpattern.py +16 -0
  191. ccai/restclient/github/public/schemas/repositoryrulecommitmessagepattern.py +16 -0
  192. ccai/restclient/github/public/schemas/repositoryrulecommitteremailpattern.py +16 -0
  193. ccai/restclient/github/public/schemas/repositoryrulecreation.py +13 -0
  194. ccai/restclient/github/public/schemas/repositoryruledeletion.py +13 -0
  195. ccai/restclient/github/public/schemas/repositoryrulefileextensionrestriction.py +16 -0
  196. ccai/restclient/github/public/schemas/repositoryrulefilepathrestriction.py +16 -0
  197. ccai/restclient/github/public/schemas/repositoryrulemaxfilepathlength.py +16 -0
  198. ccai/restclient/github/public/schemas/repositoryrulemaxfilesize.py +16 -0
  199. ccai/restclient/github/public/schemas/repositoryrulemergequeue.py +16 -0
  200. ccai/restclient/github/public/schemas/repositoryrulenonfastforward.py +13 -0
  201. ccai/restclient/github/public/schemas/repositoryruleparamscodescanningtool.py +15 -0
  202. ccai/restclient/github/public/schemas/repositoryruleparamsrequiredreviewerconfiguration.py +17 -0
  203. ccai/restclient/github/public/schemas/repositoryruleparamsrestrictedcommits.py +14 -0
  204. ccai/restclient/github/public/schemas/repositoryruleparamsreviewer.py +14 -0
  205. ccai/restclient/github/public/schemas/repositoryruleparamsstatuscheckconfiguration.py +14 -0
  206. ccai/restclient/github/public/schemas/repositoryruleparamsworkflowfilereference.py +16 -0
  207. ccai/restclient/github/public/schemas/repositoryrulepullrequest.py +16 -0
  208. ccai/restclient/github/public/schemas/repositoryrulerequireddeployments.py +16 -0
  209. ccai/restclient/github/public/schemas/repositoryrulerequiredlinearhistory.py +13 -0
  210. ccai/restclient/github/public/schemas/repositoryrulerequiredsignatures.py +13 -0
  211. ccai/restclient/github/public/schemas/repositoryrulerequiredstatuschecks.py +16 -0
  212. ccai/restclient/github/public/schemas/repositoryrulerulesetinfo.py +15 -0
  213. ccai/restclient/github/public/schemas/repositoryrulesetconditionsrepositoryidtarget.py +15 -0
  214. ccai/restclient/github/public/schemas/repositoryrulesetconditionsrepositorynametarget.py +15 -0
  215. ccai/restclient/github/public/schemas/repositoryrulesetconditionsrepositorypropertyspec.py +17 -0
  216. ccai/restclient/github/public/schemas/repositoryrulesetconditionsrepositorypropertytarget.py +15 -0
  217. ccai/restclient/github/public/schemas/repositoryruletagnamepattern.py +16 -0
  218. ccai/restclient/github/public/schemas/repositoryruleupdate.py +16 -0
  219. ccai/restclient/github/public/schemas/repositoryruleviolationerror.py +18 -0
  220. ccai/restclient/github/public/schemas/repositoryruleworkflows.py +16 -0
  221. ccai/restclient/github/public/schemas/repositorywebhooks.py +115 -0
  222. ccai/restclient/github/public/schemas/reviewdismissedissueevent.py +24 -0
  223. ccai/restclient/github/public/schemas/reviewrequestedissueevent.py +26 -0
  224. ccai/restclient/github/public/schemas/reviewrequestremovedissueevent.py +26 -0
  225. ccai/restclient/github/public/schemas/rulesetversion.py +17 -0
  226. ccai/restclient/github/public/schemas/runnerlabel.py +15 -0
  227. ccai/restclient/github/public/schemas/scimerror.py +20 -0
  228. ccai/restclient/github/public/schemas/search.py +263 -0
  229. ccai/restclient/github/public/schemas/secretscanning.py +96 -0
  230. ccai/restclient/github/public/schemas/secretscanningalertwebhook.py +33 -0
  231. ccai/restclient/github/public/schemas/secretscanninglocationcommit.py +21 -0
  232. ccai/restclient/github/public/schemas/secretscanninglocationdiscussionbody.py +13 -0
  233. ccai/restclient/github/public/schemas/secretscanninglocationdiscussioncomment.py +13 -0
  234. ccai/restclient/github/public/schemas/secretscanninglocationdiscussiontitle.py +13 -0
  235. ccai/restclient/github/public/schemas/secretscanninglocationissuebody.py +13 -0
  236. ccai/restclient/github/public/schemas/secretscanninglocationissuecomment.py +13 -0
  237. ccai/restclient/github/public/schemas/secretscanninglocationissuetitle.py +13 -0
  238. ccai/restclient/github/public/schemas/secretscanninglocationpullrequestbody.py +13 -0
  239. ccai/restclient/github/public/schemas/secretscanninglocationpullrequestcomment.py +13 -0
  240. ccai/restclient/github/public/schemas/secretscanninglocationpullrequestreview.py +13 -0
  241. ccai/restclient/github/public/schemas/secretscanninglocationpullrequestreviewcomment.py +13 -0
  242. ccai/restclient/github/public/schemas/secretscanninglocationpullrequesttitle.py +13 -0
  243. ccai/restclient/github/public/schemas/secretscanninglocationwikicommit.py +21 -0
  244. ccai/restclient/github/public/schemas/secretscanningpatternoverride.py +23 -0
  245. ccai/restclient/github/public/schemas/secretscanningscan.py +18 -0
  246. ccai/restclient/github/public/schemas/securityadvisories.py +106 -0
  247. ccai/restclient/github/public/schemas/securityadvisoryepss.py +14 -0
  248. ccai/restclient/github/public/schemas/securityandanalysis.py +18 -0
  249. ccai/restclient/github/public/schemas/shortblob.py +14 -0
  250. ccai/restclient/github/public/schemas/simplechecksuite.py +28 -0
  251. ccai/restclient/github/public/schemas/simpleclassroomorganization.py +20 -0
  252. ccai/restclient/github/public/schemas/simpleclassroomrepository.py +18 -0
  253. ccai/restclient/github/public/schemas/simpleclassroomuser.py +16 -0
  254. ccai/restclient/github/public/schemas/simplecommit.py +20 -0
  255. ccai/restclient/github/public/schemas/simplecommitstatus.py +22 -0
  256. ccai/restclient/github/public/schemas/simpleinstallation.py +16 -0
  257. ccai/restclient/github/public/schemas/simplerepository.py +60 -0
  258. ccai/restclient/github/public/schemas/statechangeissueevent.py +24 -0
  259. ccai/restclient/github/public/schemas/subissuessummary.py +12 -0
  260. ccai/restclient/github/public/schemas/teamorganization.py +63 -0
  261. ccai/restclient/github/public/schemas/teams.py +202 -0
  262. ccai/restclient/github/public/schemas/timelineassignedissueevent.py +24 -0
  263. ccai/restclient/github/public/schemas/timelinecommentevent.py +30 -0
  264. ccai/restclient/github/public/schemas/timelinecommitcommentedevent.py +18 -0
  265. ccai/restclient/github/public/schemas/timelinecommittedevent.py +25 -0
  266. ccai/restclient/github/public/schemas/timelinecrossreferencedevent.py +19 -0
  267. ccai/restclient/github/public/schemas/timelinelinecommentedevent.py +17 -0
  268. ccai/restclient/github/public/schemas/timelinereviewedevent.py +29 -0
  269. ccai/restclient/github/public/schemas/timelineunassignedissueevent.py +24 -0
  270. ccai/restclient/github/public/schemas/traffic.py +12 -0
  271. ccai/restclient/github/public/schemas/unassignedissueevent.py +25 -0
  272. ccai/restclient/github/public/schemas/unlabeledissueevent.py +24 -0
  273. ccai/restclient/github/public/schemas/users.py +183 -0
  274. ccai/restclient/github/public/schemas/validationerror.py +17 -0
  275. ccai/restclient/github/public/schemas/validationerrorsimple.py +17 -0
  276. ccai/restclient/github/public/schemas/verification.py +16 -0
  277. ccai/restclient/github/public/schemas/vulnerability.py +18 -0
  278. ccai/restclient/github/public/schemas/webhookbranchprotectionconfigurationdisabled.py +15 -0
  279. ccai/restclient/github/public/schemas/webhookbranchprotectionconfigurationenabled.py +15 -0
  280. ccai/restclient/github/public/schemas/webhookbranchprotectionrulecreated.py +16 -0
  281. ccai/restclient/github/public/schemas/webhookbranchprotectionruledeleted.py +16 -0
  282. ccai/restclient/github/public/schemas/webhookbranchprotectionruleedited.py +19 -0
  283. ccai/restclient/github/public/schemas/webhookcheckruncompleted.py +15 -0
  284. ccai/restclient/github/public/schemas/webhookcheckruncompletedformencoded.py +13 -0
  285. ccai/restclient/github/public/schemas/webhookcheckruncreated.py +15 -0
  286. ccai/restclient/github/public/schemas/webhookcheckruncreatedformencoded.py +13 -0
  287. ccai/restclient/github/public/schemas/webhookcheckrunrequestedaction.py +18 -0
  288. ccai/restclient/github/public/schemas/webhookcheckrunrequestedactionformencoded.py +13 -0
  289. ccai/restclient/github/public/schemas/webhookcheckrunrerequested.py +15 -0
  290. ccai/restclient/github/public/schemas/webhookcheckrunrerequestedformencoded.py +13 -0
  291. ccai/restclient/github/public/schemas/webhookchecksuitecompleted.py +18 -0
  292. ccai/restclient/github/public/schemas/webhookchecksuiterequested.py +18 -0
  293. ccai/restclient/github/public/schemas/webhookchecksuitererequested.py +18 -0
  294. ccai/restclient/github/public/schemas/webhookcodescanningalertappearedinbranch.py +20 -0
  295. ccai/restclient/github/public/schemas/webhookcodescanningalertclosedbyuser.py +20 -0
  296. ccai/restclient/github/public/schemas/webhookcodescanningalertcreated.py +20 -0
  297. ccai/restclient/github/public/schemas/webhookcodescanningalertfixed.py +20 -0
  298. ccai/restclient/github/public/schemas/webhookcodescanningalertreopened.py +20 -0
  299. ccai/restclient/github/public/schemas/webhookcodescanningalertreopenedbyuser.py +20 -0
  300. ccai/restclient/github/public/schemas/webhookcommitcommentcreated.py +18 -0
  301. ccai/restclient/github/public/schemas/webhookcreate.py +21 -0
  302. ccai/restclient/github/public/schemas/webhookcustompropertycreated.py +15 -0
  303. ccai/restclient/github/public/schemas/webhookcustompropertydeleted.py +17 -0
  304. ccai/restclient/github/public/schemas/webhookcustompropertypromotedtoenterprise.py +15 -0
  305. ccai/restclient/github/public/schemas/webhookcustompropertyupdated.py +15 -0
  306. ccai/restclient/github/public/schemas/webhookcustompropertyvaluesupdated.py +19 -0
  307. ccai/restclient/github/public/schemas/webhookdelete.py +17 -0
  308. ccai/restclient/github/public/schemas/webhookdependabotalertautodismissed.py +16 -0
  309. ccai/restclient/github/public/schemas/webhookdependabotalertautoreopened.py +16 -0
  310. ccai/restclient/github/public/schemas/webhookdependabotalertcreated.py +16 -0
  311. ccai/restclient/github/public/schemas/webhookdependabotalertdismissed.py +16 -0
  312. ccai/restclient/github/public/schemas/webhookdependabotalertfixed.py +16 -0
  313. ccai/restclient/github/public/schemas/webhookdependabotalertreintroduced.py +16 -0
  314. ccai/restclient/github/public/schemas/webhookdependabotalertreopened.py +16 -0
  315. ccai/restclient/github/public/schemas/webhookdeploykeycreated.py +16 -0
  316. ccai/restclient/github/public/schemas/webhookdeploykeydeleted.py +16 -0
  317. ccai/restclient/github/public/schemas/webhookdeploymentcreated.py +20 -0
  318. ccai/restclient/github/public/schemas/webhookdeploymentprotectionrulerequested.py +21 -0
  319. ccai/restclient/github/public/schemas/webhookdeploymentreviewapproved.py +24 -0
  320. ccai/restclient/github/public/schemas/webhookdeploymentreviewrejected.py +24 -0
  321. ccai/restclient/github/public/schemas/webhookdeploymentreviewrequested.py +23 -0
  322. ccai/restclient/github/public/schemas/webhookdeploymentstatuscreated.py +22 -0
  323. ccai/restclient/github/public/schemas/webhookdiscussionanswered.py +17 -0
  324. ccai/restclient/github/public/schemas/webhookdiscussioncategorychanged.py +19 -0
  325. ccai/restclient/github/public/schemas/webhookdiscussionclosed.py +16 -0
  326. ccai/restclient/github/public/schemas/webhookdiscussioncommentcreated.py +17 -0
  327. ccai/restclient/github/public/schemas/webhookdiscussioncommentdeleted.py +17 -0
  328. ccai/restclient/github/public/schemas/webhookdiscussioncommentedited.py +20 -0
  329. ccai/restclient/github/public/schemas/webhookdiscussioncreated.py +16 -0
  330. ccai/restclient/github/public/schemas/webhookdiscussiondeleted.py +16 -0
  331. ccai/restclient/github/public/schemas/webhookdiscussionedited.py +19 -0
  332. ccai/restclient/github/public/schemas/webhookdiscussionlabeled.py +17 -0
  333. ccai/restclient/github/public/schemas/webhookdiscussionlocked.py +16 -0
  334. ccai/restclient/github/public/schemas/webhookdiscussionpinned.py +16 -0
  335. ccai/restclient/github/public/schemas/webhookdiscussionreopened.py +16 -0
  336. ccai/restclient/github/public/schemas/webhookdiscussiontransferred.py +19 -0
  337. ccai/restclient/github/public/schemas/webhookdiscussionunanswered.py +15 -0
  338. ccai/restclient/github/public/schemas/webhookdiscussionunlabeled.py +17 -0
  339. ccai/restclient/github/public/schemas/webhookdiscussionunlocked.py +16 -0
  340. ccai/restclient/github/public/schemas/webhookdiscussionunpinned.py +16 -0
  341. ccai/restclient/github/public/schemas/webhookfork.py +18 -0
  342. ccai/restclient/github/public/schemas/webhookgithubappauthorizationrevoked.py +11 -0
  343. ccai/restclient/github/public/schemas/webhookgollum.py +17 -0
  344. ccai/restclient/github/public/schemas/webhookinstallationcreated.py +19 -0
  345. ccai/restclient/github/public/schemas/webhookinstallationdeleted.py +19 -0
  346. ccai/restclient/github/public/schemas/webhookinstallationnewpermissionsaccepted.py +19 -0
  347. ccai/restclient/github/public/schemas/webhookinstallationrepositoriesadded.py +21 -0
  348. ccai/restclient/github/public/schemas/webhookinstallationrepositoriesremoved.py +21 -0
  349. ccai/restclient/github/public/schemas/webhookinstallationsuspend.py +19 -0
  350. ccai/restclient/github/public/schemas/webhookinstallationtargetrenamed.py +20 -0
  351. ccai/restclient/github/public/schemas/webhookinstallationunsuspend.py +19 -0
  352. ccai/restclient/github/public/schemas/webhookissuecommentcreated.py +19 -0
  353. ccai/restclient/github/public/schemas/webhookissuecommentdeleted.py +17 -0
  354. ccai/restclient/github/public/schemas/webhookissuecommentedited.py +18 -0
  355. ccai/restclient/github/public/schemas/webhookissuedependenciesblockedbyadded.py +19 -0
  356. ccai/restclient/github/public/schemas/webhookissuedependenciesblockedbyremoved.py +19 -0
  357. ccai/restclient/github/public/schemas/webhookissuedependenciesblockingadded.py +19 -0
  358. ccai/restclient/github/public/schemas/webhookissuedependenciesblockingremoved.py +19 -0
  359. ccai/restclient/github/public/schemas/webhookissuesassigned.py +17 -0
  360. ccai/restclient/github/public/schemas/webhookissuesclosed.py +16 -0
  361. ccai/restclient/github/public/schemas/webhookissuesdeleted.py +18 -0
  362. ccai/restclient/github/public/schemas/webhookissuesdemilestoned.py +19 -0
  363. ccai/restclient/github/public/schemas/webhookissuesedited.py +20 -0
  364. ccai/restclient/github/public/schemas/webhookissueslabeled.py +19 -0
  365. ccai/restclient/github/public/schemas/webhookissueslocked.py +18 -0
  366. ccai/restclient/github/public/schemas/webhookissuesmilestoned.py +19 -0
  367. ccai/restclient/github/public/schemas/webhookissuesopened.py +19 -0
  368. ccai/restclient/github/public/schemas/webhookissuespinned.py +16 -0
  369. ccai/restclient/github/public/schemas/webhookissuesreopened.py +18 -0
  370. ccai/restclient/github/public/schemas/webhookissuestransferred.py +19 -0
  371. ccai/restclient/github/public/schemas/webhookissuestyped.py +17 -0
  372. ccai/restclient/github/public/schemas/webhookissuesunassigned.py +17 -0
  373. ccai/restclient/github/public/schemas/webhookissuesunlabeled.py +17 -0
  374. ccai/restclient/github/public/schemas/webhookissuesunlocked.py +18 -0
  375. ccai/restclient/github/public/schemas/webhookissuesunpinned.py +16 -0
  376. ccai/restclient/github/public/schemas/webhookissuesuntyped.py +17 -0
  377. ccai/restclient/github/public/schemas/webhooklabelcreated.py +16 -0
  378. ccai/restclient/github/public/schemas/webhooklabeldeleted.py +16 -0
  379. ccai/restclient/github/public/schemas/webhooklabeledited.py +19 -0
  380. ccai/restclient/github/public/schemas/webhookmarketplacepurchasecancelled.py +18 -0
  381. ccai/restclient/github/public/schemas/webhookmarketplacepurchasechanged.py +20 -0
  382. ccai/restclient/github/public/schemas/webhookmarketplacepurchasependingchange.py +20 -0
  383. ccai/restclient/github/public/schemas/webhookmarketplacepurchasependingchangecancelled.py +20 -0
  384. ccai/restclient/github/public/schemas/webhookmarketplacepurchasepurchased.py +18 -0
  385. ccai/restclient/github/public/schemas/webhookmemberadded.py +19 -0
  386. ccai/restclient/github/public/schemas/webhookmemberedited.py +19 -0
  387. ccai/restclient/github/public/schemas/webhookmemberremoved.py +16 -0
  388. ccai/restclient/github/public/schemas/webhookmembershipadded.py +20 -0
  389. ccai/restclient/github/public/schemas/webhookmembershipremoved.py +20 -0
  390. ccai/restclient/github/public/schemas/webhookmergegroupchecksrequested.py +15 -0
  391. ccai/restclient/github/public/schemas/webhookmergegroupdestroyed.py +16 -0
  392. ccai/restclient/github/public/schemas/webhookmetadeleted.py +19 -0
  393. ccai/restclient/github/public/schemas/webhookmilestoneclosed.py +16 -0
  394. ccai/restclient/github/public/schemas/webhookmilestonecreated.py +16 -0
  395. ccai/restclient/github/public/schemas/webhookmilestonedeleted.py +16 -0
  396. ccai/restclient/github/public/schemas/webhookmilestoneedited.py +19 -0
  397. ccai/restclient/github/public/schemas/webhookmilestoneopened.py +16 -0
  398. ccai/restclient/github/public/schemas/webhookorganizationdeleted.py +16 -0
  399. ccai/restclient/github/public/schemas/webhookorganizationmemberadded.py +16 -0
  400. ccai/restclient/github/public/schemas/webhookorganizationmemberinvited.py +19 -0
  401. ccai/restclient/github/public/schemas/webhookorganizationmemberremoved.py +16 -0
  402. ccai/restclient/github/public/schemas/webhookorganizationrenamed.py +19 -0
  403. ccai/restclient/github/public/schemas/webhookorgblockblocked.py +16 -0
  404. ccai/restclient/github/public/schemas/webhookorgblockunblocked.py +16 -0
  405. ccai/restclient/github/public/schemas/webhookpackagepublished.py +18 -0
  406. ccai/restclient/github/public/schemas/webhookpackageupdated.py +18 -0
  407. ccai/restclient/github/public/schemas/webhookpagebuild.py +18 -0
  408. ccai/restclient/github/public/schemas/webhookpersonalaccesstokenrequestapproved.py +15 -0
  409. ccai/restclient/github/public/schemas/webhookpersonalaccesstokenrequestcancelled.py +15 -0
  410. ccai/restclient/github/public/schemas/webhookpersonalaccesstokenrequestcreated.py +15 -0
  411. ccai/restclient/github/public/schemas/webhookpersonalaccesstokenrequestdenied.py +15 -0
  412. ccai/restclient/github/public/schemas/webhookping.py +17 -0
  413. ccai/restclient/github/public/schemas/webhookpingformencoded.py +13 -0
  414. ccai/restclient/github/public/schemas/webhookprojectcardconverted.py +19 -0
  415. ccai/restclient/github/public/schemas/webhookprojectcardcreated.py +16 -0
  416. ccai/restclient/github/public/schemas/webhookprojectcarddeleted.py +18 -0
  417. ccai/restclient/github/public/schemas/webhookprojectcardedited.py +19 -0
  418. ccai/restclient/github/public/schemas/webhookprojectcardmoved.py +19 -0
  419. ccai/restclient/github/public/schemas/webhookprojectclosed.py +16 -0
  420. ccai/restclient/github/public/schemas/webhookprojectcolumncreated.py +16 -0
  421. ccai/restclient/github/public/schemas/webhookprojectcolumndeleted.py +16 -0
  422. ccai/restclient/github/public/schemas/webhookprojectcolumnedited.py +19 -0
  423. ccai/restclient/github/public/schemas/webhookprojectcolumnmoved.py +16 -0
  424. ccai/restclient/github/public/schemas/webhookprojectcreated.py +16 -0
  425. ccai/restclient/github/public/schemas/webhookprojectdeleted.py +16 -0
  426. ccai/restclient/github/public/schemas/webhookprojectedited.py +19 -0
  427. ccai/restclient/github/public/schemas/webhookprojectreopened.py +16 -0
  428. ccai/restclient/github/public/schemas/webhookprojectsv2itemarchived.py +15 -0
  429. ccai/restclient/github/public/schemas/webhookprojectsv2itemconverted.py +17 -0
  430. ccai/restclient/github/public/schemas/webhookprojectsv2itemcreated.py +14 -0
  431. ccai/restclient/github/public/schemas/webhookprojectsv2itemdeleted.py +14 -0
  432. ccai/restclient/github/public/schemas/webhookprojectsv2itemedited.py +17 -0
  433. ccai/restclient/github/public/schemas/webhookprojectsv2itemreordered.py +17 -0
  434. ccai/restclient/github/public/schemas/webhookprojectsv2itemrestored.py +15 -0
  435. ccai/restclient/github/public/schemas/webhookprojectsv2projectclosed.py +14 -0
  436. ccai/restclient/github/public/schemas/webhookprojectsv2projectcreated.py +17 -0
  437. ccai/restclient/github/public/schemas/webhookprojectsv2projectdeleted.py +14 -0
  438. ccai/restclient/github/public/schemas/webhookprojectsv2projectedited.py +17 -0
  439. ccai/restclient/github/public/schemas/webhookprojectsv2projectreopened.py +14 -0
  440. ccai/restclient/github/public/schemas/webhookprojectsv2statusupdatecreated.py +14 -0
  441. ccai/restclient/github/public/schemas/webhookprojectsv2statusupdatedeleted.py +14 -0
  442. ccai/restclient/github/public/schemas/webhookprojectsv2statusupdateedited.py +17 -0
  443. ccai/restclient/github/public/schemas/webhookpublic.py +14 -0
  444. ccai/restclient/github/public/schemas/webhookpullrequestassigned.py +20 -0
  445. ccai/restclient/github/public/schemas/webhookpullrequestautomergedisabled.py +20 -0
  446. ccai/restclient/github/public/schemas/webhookpullrequestautomergeenabled.py +20 -0
  447. ccai/restclient/github/public/schemas/webhookpullrequestclosed.py +17 -0
  448. ccai/restclient/github/public/schemas/webhookpullrequestconvertedtodraft.py +17 -0
  449. ccai/restclient/github/public/schemas/webhookpullrequestdemilestoned.py +17 -0
  450. ccai/restclient/github/public/schemas/webhookpullrequestdequeued.py +20 -0
  451. ccai/restclient/github/public/schemas/webhookpullrequestedited.py +20 -0
  452. ccai/restclient/github/public/schemas/webhookpullrequestenqueued.py +19 -0
  453. ccai/restclient/github/public/schemas/webhookpullrequestlabeled.py +20 -0
  454. ccai/restclient/github/public/schemas/webhookpullrequestlocked.py +19 -0
  455. ccai/restclient/github/public/schemas/webhookpullrequestmilestoned.py +17 -0
  456. ccai/restclient/github/public/schemas/webhookpullrequestopened.py +17 -0
  457. ccai/restclient/github/public/schemas/webhookpullrequestreadyforreview.py +17 -0
  458. ccai/restclient/github/public/schemas/webhookpullrequestreopened.py +17 -0
  459. ccai/restclient/github/public/schemas/webhookpullrequestreviewcommentcreated.py +19 -0
  460. ccai/restclient/github/public/schemas/webhookpullrequestreviewcommentdeleted.py +19 -0
  461. ccai/restclient/github/public/schemas/webhookpullrequestreviewcommentedited.py +20 -0
  462. ccai/restclient/github/public/schemas/webhookpullrequestreviewdismissed.py +19 -0
  463. ccai/restclient/github/public/schemas/webhookpullrequestreviewedited.py +20 -0
  464. ccai/restclient/github/public/schemas/webhookpullrequestreviewsubmitted.py +19 -0
  465. ccai/restclient/github/public/schemas/webhookpullrequestreviewthreadresolved.py +20 -0
  466. ccai/restclient/github/public/schemas/webhookpullrequestreviewthreadunresolved.py +20 -0
  467. ccai/restclient/github/public/schemas/webhookpullrequestsynchronize.py +21 -0
  468. ccai/restclient/github/public/schemas/webhookpullrequestunassigned.py +20 -0
  469. ccai/restclient/github/public/schemas/webhookpullrequestunlabeled.py +20 -0
  470. ccai/restclient/github/public/schemas/webhookpullrequestunlocked.py +19 -0
  471. ccai/restclient/github/public/schemas/webhookpush.py +27 -0
  472. ccai/restclient/github/public/schemas/webhookregistrypackagepublished.py +18 -0
  473. ccai/restclient/github/public/schemas/webhookregistrypackageupdated.py +18 -0
  474. ccai/restclient/github/public/schemas/webhookreleasecreated.py +16 -0
  475. ccai/restclient/github/public/schemas/webhookreleasedeleted.py +16 -0
  476. ccai/restclient/github/public/schemas/webhookreleaseedited.py +19 -0
  477. ccai/restclient/github/public/schemas/webhookreleaseprereleased.py +18 -0
  478. ccai/restclient/github/public/schemas/webhookreleasepublished.py +16 -0
  479. ccai/restclient/github/public/schemas/webhookreleasereleased.py +16 -0
  480. ccai/restclient/github/public/schemas/webhookreleaseunpublished.py +16 -0
  481. ccai/restclient/github/public/schemas/webhookrepositoryadvisorypublished.py +16 -0
  482. ccai/restclient/github/public/schemas/webhookrepositoryadvisoryreported.py +16 -0
  483. ccai/restclient/github/public/schemas/webhookrepositoryarchived.py +15 -0
  484. ccai/restclient/github/public/schemas/webhookrepositorycreated.py +15 -0
  485. ccai/restclient/github/public/schemas/webhookrepositorydeleted.py +15 -0
  486. ccai/restclient/github/public/schemas/webhookrepositorydispatchsample.py +19 -0
  487. ccai/restclient/github/public/schemas/webhookrepositoryedited.py +18 -0
  488. ccai/restclient/github/public/schemas/webhookrepositoryimport.py +15 -0
  489. ccai/restclient/github/public/schemas/webhookrepositoryprivatized.py +15 -0
  490. ccai/restclient/github/public/schemas/webhookrepositorypublicized.py +15 -0
  491. ccai/restclient/github/public/schemas/webhookrepositoryrenamed.py +18 -0
  492. ccai/restclient/github/public/schemas/webhookrepositoryrulesetcreated.py +16 -0
  493. ccai/restclient/github/public/schemas/webhookrepositoryrulesetdeleted.py +16 -0
  494. ccai/restclient/github/public/schemas/webhookrepositoryrulesetedited.py +19 -0
  495. ccai/restclient/github/public/schemas/webhookrepositorytransferred.py +18 -0
  496. ccai/restclient/github/public/schemas/webhookrepositoryunarchived.py +15 -0
  497. ccai/restclient/github/public/schemas/webhookrepositoryvulnerabilityalertcreate.py +16 -0
  498. ccai/restclient/github/public/schemas/webhookrepositoryvulnerabilityalertdismiss.py +18 -0
  499. ccai/restclient/github/public/schemas/webhookrepositoryvulnerabilityalertreopen.py +16 -0
  500. ccai/restclient/github/public/schemas/webhookrepositoryvulnerabilityalertresolve.py +18 -0
  501. ccai/restclient/github/public/schemas/webhookrubygemsmetadata.py +21 -0
  502. ccai/restclient/github/public/schemas/webhooksalert.py +31 -0
  503. ccai/restclient/github/public/schemas/webhooksanswer.py +24 -0
  504. ccai/restclient/github/public/schemas/webhooksapprover.py +28 -0
  505. ccai/restclient/github/public/schemas/webhookschanges.py +15 -0
  506. ccai/restclient/github/public/schemas/webhookschanges8.py +12 -0
  507. ccai/restclient/github/public/schemas/webhookscomment.py +24 -0
  508. ccai/restclient/github/public/schemas/webhooksdeploykey.py +24 -0
  509. ccai/restclient/github/public/schemas/webhooksecretscanningalertcreated.py +16 -0
  510. ccai/restclient/github/public/schemas/webhooksecretscanningalertlocationcreated.py +16 -0
  511. ccai/restclient/github/public/schemas/webhooksecretscanningalertlocationcreatedformencoded.py +10 -0
  512. ccai/restclient/github/public/schemas/webhooksecretscanningalertpubliclyleaked.py +16 -0
  513. ccai/restclient/github/public/schemas/webhooksecretscanningalertreopened.py +16 -0
  514. ccai/restclient/github/public/schemas/webhooksecretscanningalertresolved.py +16 -0
  515. ccai/restclient/github/public/schemas/webhooksecretscanningalertvalidated.py +16 -0
  516. ccai/restclient/github/public/schemas/webhooksecretscanningscancompleted.py +24 -0
  517. ccai/restclient/github/public/schemas/webhooksecurityadvisorypublished.py +16 -0
  518. ccai/restclient/github/public/schemas/webhooksecurityadvisoryupdated.py +16 -0
  519. ccai/restclient/github/public/schemas/webhooksecurityadvisorywithdrawn.py +18 -0
  520. ccai/restclient/github/public/schemas/webhooksecurityandanalysis.py +17 -0
  521. ccai/restclient/github/public/schemas/webhooksissue.py +48 -0
  522. ccai/restclient/github/public/schemas/webhooksissue2.py +48 -0
  523. ccai/restclient/github/public/schemas/webhooksissuecomment.py +26 -0
  524. ccai/restclient/github/public/schemas/webhookslabel.py +18 -0
  525. ccai/restclient/github/public/schemas/webhooksmarketplacepurchase.py +18 -0
  526. ccai/restclient/github/public/schemas/webhooksmembership.py +21 -0
  527. ccai/restclient/github/public/schemas/webhooksmilestone.py +30 -0
  528. ccai/restclient/github/public/schemas/webhooksmilestone3.py +30 -0
  529. ccai/restclient/github/public/schemas/webhooksponsorshipcancelled.py +16 -0
  530. ccai/restclient/github/public/schemas/webhooksponsorshipcreated.py +16 -0
  531. ccai/restclient/github/public/schemas/webhooksponsorshipedited.py +19 -0
  532. ccai/restclient/github/public/schemas/webhooksponsorshippendingcancellation.py +17 -0
  533. ccai/restclient/github/public/schemas/webhooksponsorshippendingtierchange.py +18 -0
  534. ccai/restclient/github/public/schemas/webhooksponsorshiptierchanged.py +17 -0
  535. ccai/restclient/github/public/schemas/webhookspreviousmarketplacepurchase.py +18 -0
  536. ccai/restclient/github/public/schemas/webhooksproject.py +24 -0
  537. ccai/restclient/github/public/schemas/webhooksprojectcard.py +24 -0
  538. ccai/restclient/github/public/schemas/webhooksprojectchanges.py +12 -0
  539. ccai/restclient/github/public/schemas/webhooksprojectcolumn.py +20 -0
  540. ccai/restclient/github/public/schemas/webhookspullrequest5.py +59 -0
  541. ccai/restclient/github/public/schemas/webhooksrelease.py +36 -0
  542. ccai/restclient/github/public/schemas/webhooksrelease1.py +36 -0
  543. ccai/restclient/github/public/schemas/webhooksreview.py +26 -0
  544. ccai/restclient/github/public/schemas/webhooksreviewcomment.py +41 -0
  545. ccai/restclient/github/public/schemas/webhooksrule.py +42 -0
  546. ccai/restclient/github/public/schemas/webhookssecurityadvisory.py +27 -0
  547. ccai/restclient/github/public/schemas/webhookssponsorship.py +18 -0
  548. ccai/restclient/github/public/schemas/webhookstarcreated.py +18 -0
  549. ccai/restclient/github/public/schemas/webhookstardeleted.py +18 -0
  550. ccai/restclient/github/public/schemas/webhookstatus.py +28 -0
  551. ccai/restclient/github/public/schemas/webhooksteam.py +28 -0
  552. ccai/restclient/github/public/schemas/webhooksteam1.py +28 -0
  553. ccai/restclient/github/public/schemas/webhooksubissuesparentissueadded.py +19 -0
  554. ccai/restclient/github/public/schemas/webhooksubissuesparentissueremoved.py +19 -0
  555. ccai/restclient/github/public/schemas/webhooksubissuessubissueadded.py +19 -0
  556. ccai/restclient/github/public/schemas/webhooksubissuessubissueremoved.py +19 -0
  557. ccai/restclient/github/public/schemas/webhooksuser.py +33 -0
  558. ccai/restclient/github/public/schemas/webhooksusermannequin.py +33 -0
  559. ccai/restclient/github/public/schemas/webhooksworkflow.py +19 -0
  560. ccai/restclient/github/public/schemas/webhooksworkflowjobrun.py +19 -0
  561. ccai/restclient/github/public/schemas/webhookteamadd.py +15 -0
  562. ccai/restclient/github/public/schemas/webhookteamaddedtorepository.py +18 -0
  563. ccai/restclient/github/public/schemas/webhookteamcreated.py +18 -0
  564. ccai/restclient/github/public/schemas/webhookteamdeleted.py +18 -0
  565. ccai/restclient/github/public/schemas/webhookteamedited.py +19 -0
  566. ccai/restclient/github/public/schemas/webhookteamremovedfromrepository.py +18 -0
  567. ccai/restclient/github/public/schemas/webhookwatchstarted.py +15 -0
  568. ccai/restclient/github/public/schemas/webhookworkflowdispatch.py +19 -0
  569. ccai/restclient/github/public/schemas/webhookworkflowjobcompleted.py +17 -0
  570. ccai/restclient/github/public/schemas/webhookworkflowjobinprogress.py +17 -0
  571. ccai/restclient/github/public/schemas/webhookworkflowjobqueued.py +19 -0
  572. ccai/restclient/github/public/schemas/webhookworkflowjobwaiting.py +19 -0
  573. ccai/restclient/github/public/schemas/webhookworkflowruncompleted.py +19 -0
  574. ccai/restclient/github/public/schemas/webhookworkflowruninprogress.py +19 -0
  575. ccai/restclient/github/public/schemas/webhookworkflowrunrequested.py +19 -0
  576. codecraftai_restclient_github_public-1.2.0.dist-info/METADATA +87 -0
  577. codecraftai_restclient_github_public-1.2.0.dist-info/RECORD +579 -0
  578. codecraftai_restclient_github_public-1.2.0.dist-info/WHEEL +4 -0
  579. codecraftai_restclient_github_public-1.2.0.dist-info/licenses/LICENSE.md +204 -0
@@ -0,0 +1,1488 @@
1
+ # Auto-generated by RestClientGenerator. DO NOT EDIT.
2
+
3
+ from typing import Any, Dict, List, Optional, Union
4
+
5
+ from ccai.restclient.base.aspectsrest import AspectsRest
6
+ from ccai.restclient.base.pagedlist import PagedList
7
+ from ccai.restclient.base.restapigroup import RestApiGroup
8
+ from ccai.restclient.github.public.schemas.activity import Event
9
+ from ccai.restclient.github.public.schemas.activity import Feed
10
+ from ccai.restclient.github.public.schemas.activity import RepositorySubscription
11
+ from ccai.restclient.github.public.schemas.activity import Stargazer
12
+ from ccai.restclient.github.public.schemas.activity import StarredRepository
13
+ from ccai.restclient.github.public.schemas.activity import Thread
14
+ from ccai.restclient.github.public.schemas.activity import ThreadSubscription
15
+ from ccai.restclient.github.public.schemas.minimalrepository import MinimalRepository
16
+ from ccai.restclient.github.public.schemas.repos import SimpleUser
17
+ from ccai.restclient.github.public.schemas.repository import Repository
18
+
19
+
20
+ class ActivityApiGroup(RestApiGroup):
21
+ """
22
+ Activity APIs provide access to notifications, subscriptions, and timelines.
23
+ """
24
+
25
+ def check_repo_is_starred_by_authenticated_user(self, owner: str, repo: str, *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> Any:
26
+ """
27
+ Check if a repository is starred by the authenticated user
28
+
29
+ Whether the authenticated user has starred the repository.
30
+ """
31
+ client = self.client
32
+ if aspects is None:
33
+ aspects = client.aspects
34
+
35
+ header_params = client.headers
36
+ if headers is not None:
37
+ header_params = headers
38
+
39
+ leaf_template = "/user/starred/{owner}/{repo}"
40
+ path_params = {
41
+ 'owner': owner,
42
+ 'repo': repo,
43
+ }
44
+ call_leaf = leaf_template.format(**path_params)
45
+
46
+ query_params = None
47
+
48
+
49
+ if exp_status is None:
50
+ exp_status = [204]
51
+
52
+ resp = client.perform_call(
53
+ leaf=call_leaf,
54
+ method="GET",
55
+ params=query_params if query_params else None,
56
+ body=None,
57
+ exp_status=exp_status,
58
+ headers=header_params if header_params else None,
59
+ context_msg=None,
60
+ aspects=aspects,
61
+ )
62
+ if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
63
+ rtnval = None
64
+ else:
65
+ rtnval = resp.json()
66
+ return rtnval
67
+
68
+ def delete_repo_subscription(self, owner: str, repo: str, *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> Any:
69
+ """
70
+ Delete a repository subscription
71
+
72
+ This endpoint should only be used to stop watching a repository. To control whether or not you wish to receive notifications from a repository, [set the repository's subscription manually](https://docs.github.com/rest/activity/watching#set-a-repository-subscription).
73
+ """
74
+ client = self.client
75
+ if aspects is None:
76
+ aspects = client.aspects
77
+
78
+ header_params = client.headers
79
+ if headers is not None:
80
+ header_params = headers
81
+
82
+ leaf_template = "/repos/{owner}/{repo}/subscription"
83
+ path_params = {
84
+ 'owner': owner,
85
+ 'repo': repo,
86
+ }
87
+ call_leaf = leaf_template.format(**path_params)
88
+
89
+ query_params = None
90
+
91
+
92
+ if exp_status is None:
93
+ exp_status = [204]
94
+
95
+ resp = client.perform_call(
96
+ leaf=call_leaf,
97
+ method="DELETE",
98
+ params=query_params if query_params else None,
99
+ body=None,
100
+ exp_status=exp_status,
101
+ headers=header_params if header_params else None,
102
+ context_msg=None,
103
+ aspects=aspects,
104
+ )
105
+ if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
106
+ rtnval = None
107
+ else:
108
+ rtnval = resp.json()
109
+ return rtnval
110
+
111
+ def delete_thread_subscription(self, thread_id: int, *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> Any:
112
+ """
113
+ Delete a thread subscription
114
+
115
+ Mutes all future notifications for a conversation until you comment on the thread or get an **@mention**. If you are watching the repository of the thread, you will still receive notifications. To ignore future notifications for a repository you are watching, use the [Set a thread subscription](https://docs.github.com/rest/activity/notifications#set-a-thread-subscription) endpoint and set `ignore` to `true`.
116
+ """
117
+ client = self.client
118
+ if aspects is None:
119
+ aspects = client.aspects
120
+
121
+ header_params = client.headers
122
+ if headers is not None:
123
+ header_params = headers
124
+
125
+ leaf_template = "/notifications/threads/{thread_id}/subscription"
126
+ path_params = {
127
+ 'thread_id': thread_id,
128
+ }
129
+ call_leaf = leaf_template.format(**path_params)
130
+
131
+ query_params = None
132
+
133
+
134
+ if exp_status is None:
135
+ exp_status = [204]
136
+
137
+ resp = client.perform_call(
138
+ leaf=call_leaf,
139
+ method="DELETE",
140
+ params=query_params if query_params else None,
141
+ body=None,
142
+ exp_status=exp_status,
143
+ headers=header_params if header_params else None,
144
+ context_msg=None,
145
+ aspects=aspects,
146
+ )
147
+ if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
148
+ rtnval = None
149
+ else:
150
+ rtnval = resp.json()
151
+ return rtnval
152
+
153
+ def get_feeds(self, *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> Feed:
154
+ """
155
+ Get feeds
156
+
157
+ Lists the feeds available to the authenticated user. The response provides a URL for each feed. You can then get a specific feed by sending a request to one of the feed URLs.
158
+
159
+ * **Timeline**: The GitHub global public timeline
160
+ * **User**: The public timeline for any user, using `uri_template`. For more information, see "[Hypermedia](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#hypermedia)."
161
+ * **Current user public**: The public timeline for the authenticated user
162
+ * **Current user**: The private timeline for the authenticated user
163
+ * **Current user actor**: The private timeline for activity created by the authenticated user
164
+ * **Current user organizations**: The private timeline for the organizations the authenticated user is a member of.
165
+ * **Security advisories**: A collection of public announcements that provide information about security-related vulnerabilities in software on GitHub.
166
+
167
+ By default, timeline resources are returned in JSON. You can specify the `application/atom+xml` type in the `Accept` header to return timeline resources in Atom format. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."
168
+
169
+ > [!NOTE]
170
+ > Private feeds are only returned when [authenticating via Basic Auth](https://docs.github.com/rest/authentication/authenticating-to-the-rest-api#using-basic-authentication) since current feed URIs use the older, non revocable auth tokens.
171
+ """
172
+ client = self.client
173
+ if aspects is None:
174
+ aspects = client.aspects
175
+
176
+ header_params = client.headers
177
+ if headers is not None:
178
+ header_params = headers
179
+
180
+ call_leaf = "/feeds"
181
+
182
+ query_params = None
183
+
184
+
185
+ if exp_status is None:
186
+ exp_status = [200]
187
+
188
+ resp = client.perform_call(
189
+ leaf=call_leaf,
190
+ method="GET",
191
+ params=query_params if query_params else None,
192
+ body=None,
193
+ exp_status=exp_status,
194
+ headers=header_params if header_params else None,
195
+ context_msg=None,
196
+ aspects=aspects,
197
+ )
198
+ if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
199
+ rtnobj = None
200
+ else:
201
+ raw_data = resp.json()
202
+ rtnobj = Feed.from_dict(raw_data)
203
+ return rtnobj
204
+
205
+ def get_repo_subscription(self, owner: str, repo: str, *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> RepositorySubscription:
206
+ """
207
+ Get a repository subscription
208
+
209
+ Gets information about whether the authenticated user is subscribed to the repository.
210
+ """
211
+ client = self.client
212
+ if aspects is None:
213
+ aspects = client.aspects
214
+
215
+ header_params = client.headers
216
+ if headers is not None:
217
+ header_params = headers
218
+
219
+ leaf_template = "/repos/{owner}/{repo}/subscription"
220
+ path_params = {
221
+ 'owner': owner,
222
+ 'repo': repo,
223
+ }
224
+ call_leaf = leaf_template.format(**path_params)
225
+
226
+ query_params = None
227
+
228
+
229
+ if exp_status is None:
230
+ exp_status = [200]
231
+
232
+ resp = client.perform_call(
233
+ leaf=call_leaf,
234
+ method="GET",
235
+ params=query_params if query_params else None,
236
+ body=None,
237
+ exp_status=exp_status,
238
+ headers=header_params if header_params else None,
239
+ context_msg=None,
240
+ aspects=aspects,
241
+ )
242
+ if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
243
+ rtnobj = None
244
+ else:
245
+ raw_data = resp.json()
246
+ rtnobj = RepositorySubscription.from_dict(raw_data)
247
+ return rtnobj
248
+
249
+ def get_thread(self, thread_id: int, *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> Thread:
250
+ """
251
+ Get a thread
252
+
253
+ Gets information about a notification thread.
254
+ """
255
+ client = self.client
256
+ if aspects is None:
257
+ aspects = client.aspects
258
+
259
+ header_params = client.headers
260
+ if headers is not None:
261
+ header_params = headers
262
+
263
+ leaf_template = "/notifications/threads/{thread_id}"
264
+ path_params = {
265
+ 'thread_id': thread_id,
266
+ }
267
+ call_leaf = leaf_template.format(**path_params)
268
+
269
+ query_params = None
270
+
271
+
272
+ if exp_status is None:
273
+ exp_status = [200]
274
+
275
+ resp = client.perform_call(
276
+ leaf=call_leaf,
277
+ method="GET",
278
+ params=query_params if query_params else None,
279
+ body=None,
280
+ exp_status=exp_status,
281
+ headers=header_params if header_params else None,
282
+ context_msg=None,
283
+ aspects=aspects,
284
+ )
285
+ if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
286
+ rtnobj = None
287
+ else:
288
+ raw_data = resp.json()
289
+ rtnobj = Thread.from_dict(raw_data)
290
+ return rtnobj
291
+
292
+ def get_thread_subscription_for_authenticated_user(self, thread_id: int, *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> ThreadSubscription:
293
+ """
294
+ Get a thread subscription for the authenticated user
295
+
296
+ This checks to see if the current user is subscribed to a thread. You can also [get a repository subscription](https://docs.github.com/rest/activity/watching#get-a-repository-subscription).
297
+
298
+ Note that subscriptions are only generated if a user is participating in a conversation--for example, they've replied to the thread, were **@mentioned**, or manually subscribe to a thread.
299
+ """
300
+ client = self.client
301
+ if aspects is None:
302
+ aspects = client.aspects
303
+
304
+ header_params = client.headers
305
+ if headers is not None:
306
+ header_params = headers
307
+
308
+ leaf_template = "/notifications/threads/{thread_id}/subscription"
309
+ path_params = {
310
+ 'thread_id': thread_id,
311
+ }
312
+ call_leaf = leaf_template.format(**path_params)
313
+
314
+ query_params = None
315
+
316
+
317
+ if exp_status is None:
318
+ exp_status = [200]
319
+
320
+ resp = client.perform_call(
321
+ leaf=call_leaf,
322
+ method="GET",
323
+ params=query_params if query_params else None,
324
+ body=None,
325
+ exp_status=exp_status,
326
+ headers=header_params if header_params else None,
327
+ context_msg=None,
328
+ aspects=aspects,
329
+ )
330
+ if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
331
+ rtnobj = None
332
+ else:
333
+ raw_data = resp.json()
334
+ rtnobj = ThreadSubscription.from_dict(raw_data)
335
+ return rtnobj
336
+
337
+ def list_events_for_authenticated_user(self, username: str, *, per_page: Optional[int] = 30, page: Optional[int] = 1, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> PagedList[Event]:
338
+ """
339
+ List events for the authenticated user
340
+
341
+ If you are authenticated as the given user, you will see your private events. Otherwise, you'll only see public events. _Optional_: use the fine-grained token with following permission set to view private events: "Events" user permissions (read).
342
+
343
+ > [!NOTE]
344
+ > This API is not built to serve real-time use cases. Depending on the time of day, event latency can be anywhere from 30s to 6h.
345
+ """
346
+ client = self.client
347
+ if aspects is None:
348
+ aspects = client.aspects
349
+
350
+ header_params = client.headers
351
+ if headers is not None:
352
+ header_params = headers
353
+
354
+ leaf_template = "/users/{username}/events"
355
+ path_params = {
356
+ 'username': username,
357
+ }
358
+ call_leaf = leaf_template.format(**path_params)
359
+
360
+ query_params = {}
361
+ if per_page is not None:
362
+ query_params['per_page'] = per_page
363
+ if page is not None:
364
+ query_params['page'] = page
365
+
366
+
367
+ if exp_status is None:
368
+ exp_status = [200]
369
+
370
+ resp = client.perform_call(
371
+ leaf=call_leaf,
372
+ method="GET",
373
+ params=query_params if query_params else None,
374
+ body=None,
375
+ exp_status=exp_status,
376
+ headers=header_params if header_params else None,
377
+ context_msg=None,
378
+ aspects=aspects,
379
+ )
380
+ raw_data = resp.json()
381
+ items = [self._parse_item(item, Event) for item in raw_data]
382
+ rtnval = PagedList[Event](items, dict(resp.headers), raw_data)
383
+ return rtnval
384
+
385
+ def list_notifications_for_authenticated_user(self, *, all: Optional[bool] = False, participating: Optional[bool] = False, since: Optional[str] = None, before: Optional[str] = None, page: Optional[int] = 1, per_page: Optional[int] = 50, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> PagedList[Thread]:
386
+ """
387
+ List notifications for the authenticated user
388
+
389
+ List all notifications for the current user, sorted by most recently updated.
390
+ """
391
+ client = self.client
392
+ if aspects is None:
393
+ aspects = client.aspects
394
+
395
+ header_params = client.headers
396
+ if headers is not None:
397
+ header_params = headers
398
+
399
+ call_leaf = "/notifications"
400
+
401
+ query_params = {}
402
+ if all is not None:
403
+ query_params['all'] = all
404
+ if participating is not None:
405
+ query_params['participating'] = participating
406
+ if since is not None:
407
+ query_params['since'] = since
408
+ if before is not None:
409
+ query_params['before'] = before
410
+ if page is not None:
411
+ query_params['page'] = page
412
+ if per_page is not None:
413
+ query_params['per_page'] = per_page
414
+
415
+
416
+ if exp_status is None:
417
+ exp_status = [200]
418
+
419
+ resp = client.perform_call(
420
+ leaf=call_leaf,
421
+ method="GET",
422
+ params=query_params if query_params else None,
423
+ body=None,
424
+ exp_status=exp_status,
425
+ headers=header_params if header_params else None,
426
+ context_msg=None,
427
+ aspects=aspects,
428
+ )
429
+ raw_data = resp.json()
430
+ items = [self._parse_item(item, Thread) for item in raw_data]
431
+ rtnval = PagedList[Thread](items, dict(resp.headers), raw_data)
432
+ return rtnval
433
+
434
+ def list_org_events_for_authenticated_user(self, username: str, org: str, *, per_page: Optional[int] = 30, page: Optional[int] = 1, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> PagedList[Event]:
435
+ """
436
+ List organization events for the authenticated user
437
+
438
+ This is the user's organization dashboard. You must be authenticated as the user to view this.
439
+
440
+ > [!NOTE]
441
+ > This API is not built to serve real-time use cases. Depending on the time of day, event latency can be anywhere from 30s to 6h.
442
+ """
443
+ client = self.client
444
+ if aspects is None:
445
+ aspects = client.aspects
446
+
447
+ header_params = client.headers
448
+ if headers is not None:
449
+ header_params = headers
450
+
451
+ leaf_template = "/users/{username}/events/orgs/{org}"
452
+ path_params = {
453
+ 'username': username,
454
+ 'org': org,
455
+ }
456
+ call_leaf = leaf_template.format(**path_params)
457
+
458
+ query_params = {}
459
+ if per_page is not None:
460
+ query_params['per_page'] = per_page
461
+ if page is not None:
462
+ query_params['page'] = page
463
+
464
+
465
+ if exp_status is None:
466
+ exp_status = [200]
467
+
468
+ resp = client.perform_call(
469
+ leaf=call_leaf,
470
+ method="GET",
471
+ params=query_params if query_params else None,
472
+ body=None,
473
+ exp_status=exp_status,
474
+ headers=header_params if header_params else None,
475
+ context_msg=None,
476
+ aspects=aspects,
477
+ )
478
+ raw_data = resp.json()
479
+ items = [self._parse_item(item, Event) for item in raw_data]
480
+ rtnval = PagedList[Event](items, dict(resp.headers), raw_data)
481
+ return rtnval
482
+
483
+ def list_public_events(self, *, per_page: Optional[int] = 30, page: Optional[int] = 1, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> PagedList[Event]:
484
+ """
485
+ List public events
486
+
487
+ > [!NOTE]
488
+ > This API is not built to serve real-time use cases. Depending on the time of day, event latency can be anywhere from 30s to 6h.
489
+ """
490
+ client = self.client
491
+ if aspects is None:
492
+ aspects = client.aspects
493
+
494
+ header_params = client.headers
495
+ if headers is not None:
496
+ header_params = headers
497
+
498
+ call_leaf = "/events"
499
+
500
+ query_params = {}
501
+ if per_page is not None:
502
+ query_params['per_page'] = per_page
503
+ if page is not None:
504
+ query_params['page'] = page
505
+
506
+
507
+ if exp_status is None:
508
+ exp_status = [200]
509
+
510
+ resp = client.perform_call(
511
+ leaf=call_leaf,
512
+ method="GET",
513
+ params=query_params if query_params else None,
514
+ body=None,
515
+ exp_status=exp_status,
516
+ headers=header_params if header_params else None,
517
+ context_msg=None,
518
+ aspects=aspects,
519
+ )
520
+ raw_data = resp.json()
521
+ items = [self._parse_item(item, Event) for item in raw_data]
522
+ rtnval = PagedList[Event](items, dict(resp.headers), raw_data)
523
+ return rtnval
524
+
525
+ def list_public_events_for_repo_network(self, owner: str, repo: str, *, per_page: Optional[int] = 30, page: Optional[int] = 1, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> PagedList[Event]:
526
+ """
527
+ List public events for a network of repositories
528
+
529
+ > [!NOTE]
530
+ > This API is not built to serve real-time use cases. Depending on the time of day, event latency can be anywhere from 30s to 6h.
531
+ """
532
+ client = self.client
533
+ if aspects is None:
534
+ aspects = client.aspects
535
+
536
+ header_params = client.headers
537
+ if headers is not None:
538
+ header_params = headers
539
+
540
+ leaf_template = "/networks/{owner}/{repo}/events"
541
+ path_params = {
542
+ 'owner': owner,
543
+ 'repo': repo,
544
+ }
545
+ call_leaf = leaf_template.format(**path_params)
546
+
547
+ query_params = {}
548
+ if per_page is not None:
549
+ query_params['per_page'] = per_page
550
+ if page is not None:
551
+ query_params['page'] = page
552
+
553
+
554
+ if exp_status is None:
555
+ exp_status = [200]
556
+
557
+ resp = client.perform_call(
558
+ leaf=call_leaf,
559
+ method="GET",
560
+ params=query_params if query_params else None,
561
+ body=None,
562
+ exp_status=exp_status,
563
+ headers=header_params if header_params else None,
564
+ context_msg=None,
565
+ aspects=aspects,
566
+ )
567
+ raw_data = resp.json()
568
+ items = [self._parse_item(item, Event) for item in raw_data]
569
+ rtnval = PagedList[Event](items, dict(resp.headers), raw_data)
570
+ return rtnval
571
+
572
+ def list_public_events_for_user(self, username: str, *, per_page: Optional[int] = 30, page: Optional[int] = 1, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> PagedList[Event]:
573
+ """
574
+ List public events for a user
575
+
576
+ > [!NOTE]
577
+ > This API is not built to serve real-time use cases. Depending on the time of day, event latency can be anywhere from 30s to 6h.
578
+ """
579
+ client = self.client
580
+ if aspects is None:
581
+ aspects = client.aspects
582
+
583
+ header_params = client.headers
584
+ if headers is not None:
585
+ header_params = headers
586
+
587
+ leaf_template = "/users/{username}/events/public"
588
+ path_params = {
589
+ 'username': username,
590
+ }
591
+ call_leaf = leaf_template.format(**path_params)
592
+
593
+ query_params = {}
594
+ if per_page is not None:
595
+ query_params['per_page'] = per_page
596
+ if page is not None:
597
+ query_params['page'] = page
598
+
599
+
600
+ if exp_status is None:
601
+ exp_status = [200]
602
+
603
+ resp = client.perform_call(
604
+ leaf=call_leaf,
605
+ method="GET",
606
+ params=query_params if query_params else None,
607
+ body=None,
608
+ exp_status=exp_status,
609
+ headers=header_params if header_params else None,
610
+ context_msg=None,
611
+ aspects=aspects,
612
+ )
613
+ raw_data = resp.json()
614
+ items = [self._parse_item(item, Event) for item in raw_data]
615
+ rtnval = PagedList[Event](items, dict(resp.headers), raw_data)
616
+ return rtnval
617
+
618
+ def list_public_org_events(self, org: str, *, per_page: Optional[int] = 30, page: Optional[int] = 1, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> PagedList[Event]:
619
+ """
620
+ List public organization events
621
+
622
+ > [!NOTE]
623
+ > This API is not built to serve real-time use cases. Depending on the time of day, event latency can be anywhere from 30s to 6h.
624
+ """
625
+ client = self.client
626
+ if aspects is None:
627
+ aspects = client.aspects
628
+
629
+ header_params = client.headers
630
+ if headers is not None:
631
+ header_params = headers
632
+
633
+ leaf_template = "/orgs/{org}/events"
634
+ path_params = {
635
+ 'org': org,
636
+ }
637
+ call_leaf = leaf_template.format(**path_params)
638
+
639
+ query_params = {}
640
+ if per_page is not None:
641
+ query_params['per_page'] = per_page
642
+ if page is not None:
643
+ query_params['page'] = page
644
+
645
+
646
+ if exp_status is None:
647
+ exp_status = [200]
648
+
649
+ resp = client.perform_call(
650
+ leaf=call_leaf,
651
+ method="GET",
652
+ params=query_params if query_params else None,
653
+ body=None,
654
+ exp_status=exp_status,
655
+ headers=header_params if header_params else None,
656
+ context_msg=None,
657
+ aspects=aspects,
658
+ )
659
+ raw_data = resp.json()
660
+ items = [self._parse_item(item, Event) for item in raw_data]
661
+ rtnval = PagedList[Event](items, dict(resp.headers), raw_data)
662
+ return rtnval
663
+
664
+ def list_received_events_for_user(self, username: str, *, per_page: Optional[int] = 30, page: Optional[int] = 1, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> PagedList[Event]:
665
+ """
666
+ List events received by the authenticated user
667
+
668
+ These are events that you've received by watching repositories and following users. If you are authenticated as the
669
+ given user, you will see private events. Otherwise, you'll only see public events.
670
+
671
+ > [!NOTE]
672
+ > This API is not built to serve real-time use cases. Depending on the time of day, event latency can be anywhere from 30s to 6h.
673
+ """
674
+ client = self.client
675
+ if aspects is None:
676
+ aspects = client.aspects
677
+
678
+ header_params = client.headers
679
+ if headers is not None:
680
+ header_params = headers
681
+
682
+ leaf_template = "/users/{username}/received_events"
683
+ path_params = {
684
+ 'username': username,
685
+ }
686
+ call_leaf = leaf_template.format(**path_params)
687
+
688
+ query_params = {}
689
+ if per_page is not None:
690
+ query_params['per_page'] = per_page
691
+ if page is not None:
692
+ query_params['page'] = page
693
+
694
+
695
+ if exp_status is None:
696
+ exp_status = [200]
697
+
698
+ resp = client.perform_call(
699
+ leaf=call_leaf,
700
+ method="GET",
701
+ params=query_params if query_params else None,
702
+ body=None,
703
+ exp_status=exp_status,
704
+ headers=header_params if header_params else None,
705
+ context_msg=None,
706
+ aspects=aspects,
707
+ )
708
+ raw_data = resp.json()
709
+ items = [self._parse_item(item, Event) for item in raw_data]
710
+ rtnval = PagedList[Event](items, dict(resp.headers), raw_data)
711
+ return rtnval
712
+
713
+ def list_received_public_events_for_user(self, username: str, *, per_page: Optional[int] = 30, page: Optional[int] = 1, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> PagedList[Event]:
714
+ """
715
+ List public events received by a user
716
+
717
+ > [!NOTE]
718
+ > This API is not built to serve real-time use cases. Depending on the time of day, event latency can be anywhere from 30s to 6h.
719
+ """
720
+ client = self.client
721
+ if aspects is None:
722
+ aspects = client.aspects
723
+
724
+ header_params = client.headers
725
+ if headers is not None:
726
+ header_params = headers
727
+
728
+ leaf_template = "/users/{username}/received_events/public"
729
+ path_params = {
730
+ 'username': username,
731
+ }
732
+ call_leaf = leaf_template.format(**path_params)
733
+
734
+ query_params = {}
735
+ if per_page is not None:
736
+ query_params['per_page'] = per_page
737
+ if page is not None:
738
+ query_params['page'] = page
739
+
740
+
741
+ if exp_status is None:
742
+ exp_status = [200]
743
+
744
+ resp = client.perform_call(
745
+ leaf=call_leaf,
746
+ method="GET",
747
+ params=query_params if query_params else None,
748
+ body=None,
749
+ exp_status=exp_status,
750
+ headers=header_params if header_params else None,
751
+ context_msg=None,
752
+ aspects=aspects,
753
+ )
754
+ raw_data = resp.json()
755
+ items = [self._parse_item(item, Event) for item in raw_data]
756
+ rtnval = PagedList[Event](items, dict(resp.headers), raw_data)
757
+ return rtnval
758
+
759
+ def list_repo_events(self, owner: str, repo: str, *, per_page: Optional[int] = 30, page: Optional[int] = 1, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> PagedList[Event]:
760
+ """
761
+ List repository events
762
+
763
+ > [!NOTE]
764
+ > This API is not built to serve real-time use cases. Depending on the time of day, event latency can be anywhere from 30s to 6h.
765
+ """
766
+ client = self.client
767
+ if aspects is None:
768
+ aspects = client.aspects
769
+
770
+ header_params = client.headers
771
+ if headers is not None:
772
+ header_params = headers
773
+
774
+ leaf_template = "/repos/{owner}/{repo}/events"
775
+ path_params = {
776
+ 'owner': owner,
777
+ 'repo': repo,
778
+ }
779
+ call_leaf = leaf_template.format(**path_params)
780
+
781
+ query_params = {}
782
+ if per_page is not None:
783
+ query_params['per_page'] = per_page
784
+ if page is not None:
785
+ query_params['page'] = page
786
+
787
+
788
+ if exp_status is None:
789
+ exp_status = [200]
790
+
791
+ resp = client.perform_call(
792
+ leaf=call_leaf,
793
+ method="GET",
794
+ params=query_params if query_params else None,
795
+ body=None,
796
+ exp_status=exp_status,
797
+ headers=header_params if header_params else None,
798
+ context_msg=None,
799
+ aspects=aspects,
800
+ )
801
+ raw_data = resp.json()
802
+ items = [self._parse_item(item, Event) for item in raw_data]
803
+ rtnval = PagedList[Event](items, dict(resp.headers), raw_data)
804
+ return rtnval
805
+
806
+ def list_repo_notifications_for_authenticated_user(self, owner: str, repo: str, *, all: Optional[bool] = False, participating: Optional[bool] = False, since: Optional[str] = None, before: Optional[str] = None, per_page: Optional[int] = 30, page: Optional[int] = 1, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> PagedList[Thread]:
807
+ """
808
+ List repository notifications for the authenticated user
809
+
810
+ Lists all notifications for the current user in the specified repository.
811
+ """
812
+ client = self.client
813
+ if aspects is None:
814
+ aspects = client.aspects
815
+
816
+ header_params = client.headers
817
+ if headers is not None:
818
+ header_params = headers
819
+
820
+ leaf_template = "/repos/{owner}/{repo}/notifications"
821
+ path_params = {
822
+ 'owner': owner,
823
+ 'repo': repo,
824
+ }
825
+ call_leaf = leaf_template.format(**path_params)
826
+
827
+ query_params = {}
828
+ if all is not None:
829
+ query_params['all'] = all
830
+ if participating is not None:
831
+ query_params['participating'] = participating
832
+ if since is not None:
833
+ query_params['since'] = since
834
+ if before is not None:
835
+ query_params['before'] = before
836
+ if per_page is not None:
837
+ query_params['per_page'] = per_page
838
+ if page is not None:
839
+ query_params['page'] = page
840
+
841
+
842
+ if exp_status is None:
843
+ exp_status = [200]
844
+
845
+ resp = client.perform_call(
846
+ leaf=call_leaf,
847
+ method="GET",
848
+ params=query_params if query_params else None,
849
+ body=None,
850
+ exp_status=exp_status,
851
+ headers=header_params if header_params else None,
852
+ context_msg=None,
853
+ aspects=aspects,
854
+ )
855
+ raw_data = resp.json()
856
+ items = [self._parse_item(item, Thread) for item in raw_data]
857
+ rtnval = PagedList[Thread](items, dict(resp.headers), raw_data)
858
+ return rtnval
859
+
860
+ def list_repos_starred_by_authenticated_user(self, *, sort: Optional[str] = "created", direction: Optional[str] = "desc", per_page: Optional[int] = 30, page: Optional[int] = 1, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> PagedList[Repository]:
861
+ """
862
+ List repositories starred by the authenticated user
863
+
864
+ Lists repositories the authenticated user has starred.
865
+
866
+ This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."
867
+
868
+ - **`application/vnd.github.star+json`**: Includes a timestamp of when the star was created.
869
+ """
870
+ client = self.client
871
+ if aspects is None:
872
+ aspects = client.aspects
873
+
874
+ header_params = client.headers
875
+ if headers is not None:
876
+ header_params = headers
877
+
878
+ call_leaf = "/user/starred"
879
+
880
+ query_params = {}
881
+ if sort is not None:
882
+ query_params['sort'] = sort
883
+ if direction is not None:
884
+ query_params['direction'] = direction
885
+ if per_page is not None:
886
+ query_params['per_page'] = per_page
887
+ if page is not None:
888
+ query_params['page'] = page
889
+
890
+
891
+ if exp_status is None:
892
+ exp_status = [200]
893
+
894
+ resp = client.perform_call(
895
+ leaf=call_leaf,
896
+ method="GET",
897
+ params=query_params if query_params else None,
898
+ body=None,
899
+ exp_status=exp_status,
900
+ headers=header_params if header_params else None,
901
+ context_msg=None,
902
+ aspects=aspects,
903
+ )
904
+ raw_data = resp.json()
905
+ items = [self._parse_item(item, Repository) for item in raw_data]
906
+ rtnval = PagedList[Repository](items, dict(resp.headers), raw_data)
907
+ return rtnval
908
+
909
+ def list_repos_starred_by_user(self, username: str, *, sort: Optional[str] = "created", direction: Optional[str] = "desc", per_page: Optional[int] = 30, page: Optional[int] = 1, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> Union[List[StarredRepository], List[Repository]]:
910
+ """
911
+ List repositories starred by a user
912
+
913
+ Lists repositories a user has starred.
914
+
915
+ This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."
916
+
917
+ - **`application/vnd.github.star+json`**: Includes a timestamp of when the star was created.
918
+ """
919
+ client = self.client
920
+ if aspects is None:
921
+ aspects = client.aspects
922
+
923
+ header_params = client.headers
924
+ if headers is not None:
925
+ header_params = headers
926
+
927
+ leaf_template = "/users/{username}/starred"
928
+ path_params = {
929
+ 'username': username,
930
+ }
931
+ call_leaf = leaf_template.format(**path_params)
932
+
933
+ query_params = {}
934
+ if sort is not None:
935
+ query_params['sort'] = sort
936
+ if direction is not None:
937
+ query_params['direction'] = direction
938
+ if per_page is not None:
939
+ query_params['per_page'] = per_page
940
+ if page is not None:
941
+ query_params['page'] = page
942
+
943
+
944
+ if exp_status is None:
945
+ exp_status = [200]
946
+
947
+ resp = client.perform_call(
948
+ leaf=call_leaf,
949
+ method="GET",
950
+ params=query_params if query_params else None,
951
+ body=None,
952
+ exp_status=exp_status,
953
+ headers=header_params if header_params else None,
954
+ context_msg=None,
955
+ aspects=aspects,
956
+ )
957
+ if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
958
+ rtnval = None
959
+ else:
960
+ raw_data = resp.json()
961
+ rtnval = self._parse_item(raw_data, Union[List[StarredRepository], List[Repository]])
962
+ return rtnval
963
+
964
+ def list_repos_watched_by_user(self, username: str, *, per_page: Optional[int] = 30, page: Optional[int] = 1, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> PagedList[MinimalRepository]:
965
+ """
966
+ List repositories watched by a user
967
+
968
+ Lists repositories a user is watching.
969
+ """
970
+ client = self.client
971
+ if aspects is None:
972
+ aspects = client.aspects
973
+
974
+ header_params = client.headers
975
+ if headers is not None:
976
+ header_params = headers
977
+
978
+ leaf_template = "/users/{username}/subscriptions"
979
+ path_params = {
980
+ 'username': username,
981
+ }
982
+ call_leaf = leaf_template.format(**path_params)
983
+
984
+ query_params = {}
985
+ if per_page is not None:
986
+ query_params['per_page'] = per_page
987
+ if page is not None:
988
+ query_params['page'] = page
989
+
990
+
991
+ if exp_status is None:
992
+ exp_status = [200]
993
+
994
+ resp = client.perform_call(
995
+ leaf=call_leaf,
996
+ method="GET",
997
+ params=query_params if query_params else None,
998
+ body=None,
999
+ exp_status=exp_status,
1000
+ headers=header_params if header_params else None,
1001
+ context_msg=None,
1002
+ aspects=aspects,
1003
+ )
1004
+ raw_data = resp.json()
1005
+ items = [self._parse_item(item, MinimalRepository) for item in raw_data]
1006
+ rtnval = PagedList[MinimalRepository](items, dict(resp.headers), raw_data)
1007
+ return rtnval
1008
+
1009
+ def list_stargazers_for_repo(self, owner: str, repo: str, *, per_page: Optional[int] = 30, page: Optional[int] = 1, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> Union[List[SimpleUser], List[Stargazer]]:
1010
+ """
1011
+ List stargazers
1012
+
1013
+ Lists the people that have starred the repository.
1014
+
1015
+ This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."
1016
+
1017
+ - **`application/vnd.github.star+json`**: Includes a timestamp of when the star was created.
1018
+ """
1019
+ client = self.client
1020
+ if aspects is None:
1021
+ aspects = client.aspects
1022
+
1023
+ header_params = client.headers
1024
+ if headers is not None:
1025
+ header_params = headers
1026
+
1027
+ leaf_template = "/repos/{owner}/{repo}/stargazers"
1028
+ path_params = {
1029
+ 'owner': owner,
1030
+ 'repo': repo,
1031
+ }
1032
+ call_leaf = leaf_template.format(**path_params)
1033
+
1034
+ query_params = {}
1035
+ if per_page is not None:
1036
+ query_params['per_page'] = per_page
1037
+ if page is not None:
1038
+ query_params['page'] = page
1039
+
1040
+
1041
+ if exp_status is None:
1042
+ exp_status = [200]
1043
+
1044
+ resp = client.perform_call(
1045
+ leaf=call_leaf,
1046
+ method="GET",
1047
+ params=query_params if query_params else None,
1048
+ body=None,
1049
+ exp_status=exp_status,
1050
+ headers=header_params if header_params else None,
1051
+ context_msg=None,
1052
+ aspects=aspects,
1053
+ )
1054
+ if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
1055
+ rtnval = None
1056
+ else:
1057
+ raw_data = resp.json()
1058
+ rtnval = self._parse_item(raw_data, Union[List[SimpleUser], List[Stargazer]])
1059
+ return rtnval
1060
+
1061
+ def list_watched_repos_for_authenticated_user(self, *, per_page: Optional[int] = 30, page: Optional[int] = 1, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> PagedList[MinimalRepository]:
1062
+ """
1063
+ List repositories watched by the authenticated user
1064
+
1065
+ Lists repositories the authenticated user is watching.
1066
+ """
1067
+ client = self.client
1068
+ if aspects is None:
1069
+ aspects = client.aspects
1070
+
1071
+ header_params = client.headers
1072
+ if headers is not None:
1073
+ header_params = headers
1074
+
1075
+ call_leaf = "/user/subscriptions"
1076
+
1077
+ query_params = {}
1078
+ if per_page is not None:
1079
+ query_params['per_page'] = per_page
1080
+ if page is not None:
1081
+ query_params['page'] = page
1082
+
1083
+
1084
+ if exp_status is None:
1085
+ exp_status = [200]
1086
+
1087
+ resp = client.perform_call(
1088
+ leaf=call_leaf,
1089
+ method="GET",
1090
+ params=query_params if query_params else None,
1091
+ body=None,
1092
+ exp_status=exp_status,
1093
+ headers=header_params if header_params else None,
1094
+ context_msg=None,
1095
+ aspects=aspects,
1096
+ )
1097
+ raw_data = resp.json()
1098
+ items = [self._parse_item(item, MinimalRepository) for item in raw_data]
1099
+ rtnval = PagedList[MinimalRepository](items, dict(resp.headers), raw_data)
1100
+ return rtnval
1101
+
1102
+ def list_watchers_for_repo(self, owner: str, repo: str, *, per_page: Optional[int] = 30, page: Optional[int] = 1, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> PagedList[SimpleUser]:
1103
+ """
1104
+ List watchers
1105
+
1106
+ Lists the people watching the specified repository.
1107
+ """
1108
+ client = self.client
1109
+ if aspects is None:
1110
+ aspects = client.aspects
1111
+
1112
+ header_params = client.headers
1113
+ if headers is not None:
1114
+ header_params = headers
1115
+
1116
+ leaf_template = "/repos/{owner}/{repo}/subscribers"
1117
+ path_params = {
1118
+ 'owner': owner,
1119
+ 'repo': repo,
1120
+ }
1121
+ call_leaf = leaf_template.format(**path_params)
1122
+
1123
+ query_params = {}
1124
+ if per_page is not None:
1125
+ query_params['per_page'] = per_page
1126
+ if page is not None:
1127
+ query_params['page'] = page
1128
+
1129
+
1130
+ if exp_status is None:
1131
+ exp_status = [200]
1132
+
1133
+ resp = client.perform_call(
1134
+ leaf=call_leaf,
1135
+ method="GET",
1136
+ params=query_params if query_params else None,
1137
+ body=None,
1138
+ exp_status=exp_status,
1139
+ headers=header_params if header_params else None,
1140
+ context_msg=None,
1141
+ aspects=aspects,
1142
+ )
1143
+ raw_data = resp.json()
1144
+ items = [self._parse_item(item, SimpleUser) for item in raw_data]
1145
+ rtnval = PagedList[SimpleUser](items, dict(resp.headers), raw_data)
1146
+ return rtnval
1147
+
1148
+ def mark_notifications_as_read(self, body: Dict[str, Any], *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> Any:
1149
+ """
1150
+ Mark notifications as read
1151
+
1152
+ Marks all notifications as "read" for the current user. If the number of notifications is too large to complete in one request, you will receive a `202 Accepted` status and GitHub will run an asynchronous process to mark notifications as "read." To check whether any "unread" notifications remain, you can use the [List notifications for the authenticated user](https://docs.github.com/rest/activity/notifications#list-notifications-for-the-authenticated-user) endpoint and pass the query parameter `all=false`.
1153
+ """
1154
+ client = self.client
1155
+ if aspects is None:
1156
+ aspects = client.aspects
1157
+
1158
+ header_params = client.headers
1159
+ if headers is not None:
1160
+ header_params = headers
1161
+
1162
+ call_leaf = "/notifications"
1163
+
1164
+ query_params = None
1165
+
1166
+
1167
+ if exp_status is None:
1168
+ exp_status = [202, 205]
1169
+
1170
+ resp = client.perform_call(
1171
+ leaf=call_leaf,
1172
+ method="PUT",
1173
+ params=query_params if query_params else None,
1174
+ body=body,
1175
+ exp_status=exp_status,
1176
+ headers=header_params if header_params else None,
1177
+ context_msg=None,
1178
+ aspects=aspects,
1179
+ )
1180
+ if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
1181
+ rtnval = None
1182
+ else:
1183
+ rtnval = resp.json()
1184
+ return rtnval
1185
+
1186
+ def mark_repo_notifications_as_read(self, owner: str, repo: str, body: Dict[str, Any], *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> Any:
1187
+ """
1188
+ Mark repository notifications as read
1189
+
1190
+ Marks all notifications in a repository as "read" for the current user. If the number of notifications is too large to complete in one request, you will receive a `202 Accepted` status and GitHub will run an asynchronous process to mark notifications as "read." To check whether any "unread" notifications remain, you can use the [List repository notifications for the authenticated user](https://docs.github.com/rest/activity/notifications#list-repository-notifications-for-the-authenticated-user) endpoint and pass the query parameter `all=false`.
1191
+ """
1192
+ client = self.client
1193
+ if aspects is None:
1194
+ aspects = client.aspects
1195
+
1196
+ header_params = client.headers
1197
+ if headers is not None:
1198
+ header_params = headers
1199
+
1200
+ leaf_template = "/repos/{owner}/{repo}/notifications"
1201
+ path_params = {
1202
+ 'owner': owner,
1203
+ 'repo': repo,
1204
+ }
1205
+ call_leaf = leaf_template.format(**path_params)
1206
+
1207
+ query_params = None
1208
+
1209
+
1210
+ if exp_status is None:
1211
+ exp_status = [202, 205]
1212
+
1213
+ resp = client.perform_call(
1214
+ leaf=call_leaf,
1215
+ method="PUT",
1216
+ params=query_params if query_params else None,
1217
+ body=body,
1218
+ exp_status=exp_status,
1219
+ headers=header_params if header_params else None,
1220
+ context_msg=None,
1221
+ aspects=aspects,
1222
+ )
1223
+ if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
1224
+ rtnval = None
1225
+ else:
1226
+ rtnval = resp.json()
1227
+ return rtnval
1228
+
1229
+ def mark_thread_as_done(self, thread_id: int, *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> Any:
1230
+ """
1231
+ Mark a thread as done
1232
+
1233
+ Marks a thread as "done." Marking a thread as "done" is equivalent to marking a notification in your notification inbox on GitHub as done: https://github.com/notifications.
1234
+ """
1235
+ client = self.client
1236
+ if aspects is None:
1237
+ aspects = client.aspects
1238
+
1239
+ header_params = client.headers
1240
+ if headers is not None:
1241
+ header_params = headers
1242
+
1243
+ leaf_template = "/notifications/threads/{thread_id}"
1244
+ path_params = {
1245
+ 'thread_id': thread_id,
1246
+ }
1247
+ call_leaf = leaf_template.format(**path_params)
1248
+
1249
+ query_params = None
1250
+
1251
+
1252
+ if exp_status is None:
1253
+ exp_status = [204]
1254
+
1255
+ resp = client.perform_call(
1256
+ leaf=call_leaf,
1257
+ method="DELETE",
1258
+ params=query_params if query_params else None,
1259
+ body=None,
1260
+ exp_status=exp_status,
1261
+ headers=header_params if header_params else None,
1262
+ context_msg=None,
1263
+ aspects=aspects,
1264
+ )
1265
+ if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
1266
+ rtnval = None
1267
+ else:
1268
+ rtnval = resp.json()
1269
+ return rtnval
1270
+
1271
+ def mark_thread_as_read(self, thread_id: int, *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> Any:
1272
+ """
1273
+ Mark a thread as read
1274
+
1275
+ Marks a thread as "read." Marking a thread as "read" is equivalent to clicking a notification in your notification inbox on GitHub: https://github.com/notifications.
1276
+ """
1277
+ client = self.client
1278
+ if aspects is None:
1279
+ aspects = client.aspects
1280
+
1281
+ header_params = client.headers
1282
+ if headers is not None:
1283
+ header_params = headers
1284
+
1285
+ leaf_template = "/notifications/threads/{thread_id}"
1286
+ path_params = {
1287
+ 'thread_id': thread_id,
1288
+ }
1289
+ call_leaf = leaf_template.format(**path_params)
1290
+
1291
+ query_params = None
1292
+
1293
+
1294
+ if exp_status is None:
1295
+ exp_status = [205]
1296
+
1297
+ resp = client.perform_call(
1298
+ leaf=call_leaf,
1299
+ method="PATCH",
1300
+ params=query_params if query_params else None,
1301
+ body=None,
1302
+ exp_status=exp_status,
1303
+ headers=header_params if header_params else None,
1304
+ context_msg=None,
1305
+ aspects=aspects,
1306
+ )
1307
+ if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
1308
+ rtnval = None
1309
+ else:
1310
+ rtnval = resp.json()
1311
+ return rtnval
1312
+
1313
+ def set_repo_subscription(self, owner: str, repo: str, body: Dict[str, Any], *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> RepositorySubscription:
1314
+ """
1315
+ Set a repository subscription
1316
+
1317
+ If you would like to watch a repository, set `subscribed` to `true`. If you would like to ignore notifications made within a repository, set `ignored` to `true`. If you would like to stop watching a repository, [delete the repository's subscription](https://docs.github.com/rest/activity/watching#delete-a-repository-subscription) completely.
1318
+ """
1319
+ client = self.client
1320
+ if aspects is None:
1321
+ aspects = client.aspects
1322
+
1323
+ header_params = client.headers
1324
+ if headers is not None:
1325
+ header_params = headers
1326
+
1327
+ leaf_template = "/repos/{owner}/{repo}/subscription"
1328
+ path_params = {
1329
+ 'owner': owner,
1330
+ 'repo': repo,
1331
+ }
1332
+ call_leaf = leaf_template.format(**path_params)
1333
+
1334
+ query_params = None
1335
+
1336
+
1337
+ if exp_status is None:
1338
+ exp_status = [200]
1339
+
1340
+ resp = client.perform_call(
1341
+ leaf=call_leaf,
1342
+ method="PUT",
1343
+ params=query_params if query_params else None,
1344
+ body=body,
1345
+ exp_status=exp_status,
1346
+ headers=header_params if header_params else None,
1347
+ context_msg=None,
1348
+ aspects=aspects,
1349
+ )
1350
+ if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
1351
+ rtnobj = None
1352
+ else:
1353
+ raw_data = resp.json()
1354
+ rtnobj = RepositorySubscription.from_dict(raw_data)
1355
+ return rtnobj
1356
+
1357
+ def set_thread_subscription(self, thread_id: int, body: Dict[str, Any], *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> ThreadSubscription:
1358
+ """
1359
+ Set a thread subscription
1360
+
1361
+ If you are watching a repository, you receive notifications for all threads by default. Use this endpoint to ignore future notifications for threads until you comment on the thread or get an **@mention**.
1362
+
1363
+ You can also use this endpoint to subscribe to threads that you are currently not receiving notifications for or to subscribed to threads that you have previously ignored.
1364
+
1365
+ Unsubscribing from a conversation in a repository that you are not watching is functionally equivalent to the [Delete a thread subscription](https://docs.github.com/rest/activity/notifications#delete-a-thread-subscription) endpoint.
1366
+ """
1367
+ client = self.client
1368
+ if aspects is None:
1369
+ aspects = client.aspects
1370
+
1371
+ header_params = client.headers
1372
+ if headers is not None:
1373
+ header_params = headers
1374
+
1375
+ leaf_template = "/notifications/threads/{thread_id}/subscription"
1376
+ path_params = {
1377
+ 'thread_id': thread_id,
1378
+ }
1379
+ call_leaf = leaf_template.format(**path_params)
1380
+
1381
+ query_params = None
1382
+
1383
+
1384
+ if exp_status is None:
1385
+ exp_status = [200]
1386
+
1387
+ resp = client.perform_call(
1388
+ leaf=call_leaf,
1389
+ method="PUT",
1390
+ params=query_params if query_params else None,
1391
+ body=body,
1392
+ exp_status=exp_status,
1393
+ headers=header_params if header_params else None,
1394
+ context_msg=None,
1395
+ aspects=aspects,
1396
+ )
1397
+ if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
1398
+ rtnobj = None
1399
+ else:
1400
+ raw_data = resp.json()
1401
+ rtnobj = ThreadSubscription.from_dict(raw_data)
1402
+ return rtnobj
1403
+
1404
+ def star_repo_for_authenticated_user(self, owner: str, repo: str, *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> Any:
1405
+ """
1406
+ Star a repository for the authenticated user
1407
+
1408
+ Note that you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see "[HTTP method](https://docs.github.com/rest/guides/getting-started-with-the-rest-api#http-method)."
1409
+ """
1410
+ client = self.client
1411
+ if aspects is None:
1412
+ aspects = client.aspects
1413
+
1414
+ header_params = client.headers
1415
+ if headers is not None:
1416
+ header_params = headers
1417
+
1418
+ leaf_template = "/user/starred/{owner}/{repo}"
1419
+ path_params = {
1420
+ 'owner': owner,
1421
+ 'repo': repo,
1422
+ }
1423
+ call_leaf = leaf_template.format(**path_params)
1424
+
1425
+ query_params = None
1426
+
1427
+
1428
+ if exp_status is None:
1429
+ exp_status = [204]
1430
+
1431
+ resp = client.perform_call(
1432
+ leaf=call_leaf,
1433
+ method="PUT",
1434
+ params=query_params if query_params else None,
1435
+ body=None,
1436
+ exp_status=exp_status,
1437
+ headers=header_params if header_params else None,
1438
+ context_msg=None,
1439
+ aspects=aspects,
1440
+ )
1441
+ if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
1442
+ rtnval = None
1443
+ else:
1444
+ rtnval = resp.json()
1445
+ return rtnval
1446
+
1447
+ def unstar_repo_for_authenticated_user(self, owner: str, repo: str, *, exp_status: Optional[List[int]] = None, headers: Optional[Dict[str, str]] = None, aspects: Optional[AspectsRest] = None) -> Any:
1448
+ """
1449
+ Unstar a repository for the authenticated user
1450
+
1451
+ Unstar a repository that the authenticated user has previously starred.
1452
+ """
1453
+ client = self.client
1454
+ if aspects is None:
1455
+ aspects = client.aspects
1456
+
1457
+ header_params = client.headers
1458
+ if headers is not None:
1459
+ header_params = headers
1460
+
1461
+ leaf_template = "/user/starred/{owner}/{repo}"
1462
+ path_params = {
1463
+ 'owner': owner,
1464
+ 'repo': repo,
1465
+ }
1466
+ call_leaf = leaf_template.format(**path_params)
1467
+
1468
+ query_params = None
1469
+
1470
+
1471
+ if exp_status is None:
1472
+ exp_status = [204]
1473
+
1474
+ resp = client.perform_call(
1475
+ leaf=call_leaf,
1476
+ method="DELETE",
1477
+ params=query_params if query_params else None,
1478
+ body=None,
1479
+ exp_status=exp_status,
1480
+ headers=header_params if header_params else None,
1481
+ context_msg=None,
1482
+ aspects=aspects,
1483
+ )
1484
+ if resp.status_code in (204, 205) or (resp.status_code == 202 and len(resp.content) == 0):
1485
+ rtnval = None
1486
+ else:
1487
+ rtnval = resp.json()
1488
+ return rtnval