gitabu 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (104) hide show
  1. checksums.yaml +7 -0
  2. data/.rspec +3 -0
  3. data/.rubocop.yml +33 -0
  4. data/CHANGELOG.md +3 -0
  5. data/Gemfile +10 -0
  6. data/Gemfile.lock +65 -0
  7. data/LICENSE.txt +21 -0
  8. data/README.md +42 -0
  9. data/Rakefile +12 -0
  10. data/gitabu.gemspec +41 -0
  11. data/lib/gitabu/api/v3/actions.rb +3724 -0
  12. data/lib/gitabu/api/v3/activity.rb +835 -0
  13. data/lib/gitabu/api/v3/apps.rb +961 -0
  14. data/lib/gitabu/api/v3/billing.rb +217 -0
  15. data/lib/gitabu/api/v3/branches.rb +1098 -0
  16. data/lib/gitabu/api/v3/checks.rb +384 -0
  17. data/lib/gitabu/api/v3/code_scanning.rb +315 -0
  18. data/lib/gitabu/api/v3/codes_of_conduct.rb +92 -0
  19. data/lib/gitabu/api/v3/codespaces.rb +650 -0
  20. data/lib/gitabu/api/v3/collaborators.rb +341 -0
  21. data/lib/gitabu/api/v3/commits.rb +428 -0
  22. data/lib/gitabu/api/v3/dependabot.rb +419 -0
  23. data/lib/gitabu/api/v3/deploy_keys.rb +152 -0
  24. data/lib/gitabu/api/v3/deployments.rb +356 -0
  25. data/lib/gitabu/api/v3/emojis.rb +67 -0
  26. data/lib/gitabu/api/v3/enterprise_admin.rb +495 -0
  27. data/lib/gitabu/api/v3/gists.rb +552 -0
  28. data/lib/gitabu/api/v3/git.rb +409 -0
  29. data/lib/gitabu/api/v3/gitignore.rb +92 -0
  30. data/lib/gitabu/api/v3/interactions.rb +275 -0
  31. data/lib/gitabu/api/v3/issues.rb +1119 -0
  32. data/lib/gitabu/api/v3/licenses.rb +118 -0
  33. data/lib/gitabu/api/v3/markdown.rb +94 -0
  34. data/lib/gitabu/api/v3/meta.rb +142 -0
  35. data/lib/gitabu/api/v3/metrics.rb +302 -0
  36. data/lib/gitabu/api/v3/migrations.rb +631 -0
  37. data/lib/gitabu/api/v3/orgs.rb +1291 -0
  38. data/lib/gitabu/api/v3/packages.rb +686 -0
  39. data/lib/gitabu/api/v3/pages.rb +282 -0
  40. data/lib/gitabu/api/v3/projects.rb +693 -0
  41. data/lib/gitabu/api/v3/pulls.rb +816 -0
  42. data/lib/gitabu/api/v3/rate_limit.rb +67 -0
  43. data/lib/gitabu/api/v3/reactions.rb +734 -0
  44. data/lib/gitabu/api/v3/releases.rb +411 -0
  45. data/lib/gitabu/api/v3/repos.rb +1136 -0
  46. data/lib/gitabu/api/v3/scim.rb +214 -0
  47. data/lib/gitabu/api/v3/search.rb +217 -0
  48. data/lib/gitabu/api/v3/secret_scanning.rb +201 -0
  49. data/lib/gitabu/api/v3/teams.rb +1963 -0
  50. data/lib/gitabu/api/v3/users.rb +851 -0
  51. data/lib/gitabu/api/v3/webhooks.rb +379 -0
  52. data/lib/gitabu/builder.rb +37 -0
  53. data/lib/gitabu/client.rb +8 -0
  54. data/lib/gitabu/generator.rb +75 -0
  55. data/lib/gitabu/http_client.rb +96 -0
  56. data/lib/gitabu/items.rb +110 -0
  57. data/lib/gitabu/public/api/v3/actions.json +5779 -0
  58. data/lib/gitabu/public/api/v3/activity.json +1248 -0
  59. data/lib/gitabu/public/api/v3/apps.json +1174 -0
  60. data/lib/gitabu/public/api/v3/billing.json +183 -0
  61. data/lib/gitabu/public/api/v3/branches.json +1886 -0
  62. data/lib/gitabu/public/api/v3/checks.json +856 -0
  63. data/lib/gitabu/public/api/v3/code_scanning.json +666 -0
  64. data/lib/gitabu/public/api/v3/codes_of_conduct.json +41 -0
  65. data/lib/gitabu/public/api/v3/codespaces.json +884 -0
  66. data/lib/gitabu/public/api/v3/collaborators.json +464 -0
  67. data/lib/gitabu/public/api/v3/commits.json +830 -0
  68. data/lib/gitabu/public/api/v3/dependabot.json +596 -0
  69. data/lib/gitabu/public/api/v3/deploy_keys.json +195 -0
  70. data/lib/gitabu/public/api/v3/deployments.json +698 -0
  71. data/lib/gitabu/public/api/v3/emojis.json +18 -0
  72. data/lib/gitabu/public/api/v3/enterprise_admin.json +881 -0
  73. data/lib/gitabu/public/api/v3/gists.json +689 -0
  74. data/lib/gitabu/public/api/v3/git.json +735 -0
  75. data/lib/gitabu/public/api/v3/gitignore.json +41 -0
  76. data/lib/gitabu/public/api/v3/interactions.json +265 -0
  77. data/lib/gitabu/public/api/v3/issues.json +2359 -0
  78. data/lib/gitabu/public/api/v3/licenses.json +100 -0
  79. data/lib/gitabu/public/api/v3/markdown.json +59 -0
  80. data/lib/gitabu/public/api/v3/meta.json +69 -0
  81. data/lib/gitabu/public/api/v3/metrics.json +342 -0
  82. data/lib/gitabu/public/api/v3/migrations.json +960 -0
  83. data/lib/gitabu/public/api/v3/orgs.json +1989 -0
  84. data/lib/gitabu/public/api/v3/packages.json +1078 -0
  85. data/lib/gitabu/public/api/v3/pages.json +373 -0
  86. data/lib/gitabu/public/api/v3/projects.json +966 -0
  87. data/lib/gitabu/public/api/v3/pulls.json +1768 -0
  88. data/lib/gitabu/public/api/v3/rate_limit.json +18 -0
  89. data/lib/gitabu/public/api/v3/reactions.json +1425 -0
  90. data/lib/gitabu/public/api/v3/releases.json +753 -0
  91. data/lib/gitabu/public/api/v3/repos.json +2314 -0
  92. data/lib/gitabu/public/api/v3/scim.json +412 -0
  93. data/lib/gitabu/public/api/v3/search.json +408 -0
  94. data/lib/gitabu/public/api/v3/secret_scanning.json +385 -0
  95. data/lib/gitabu/public/api/v3/teams.json +3126 -0
  96. data/lib/gitabu/public/api/v3/users.json +956 -0
  97. data/lib/gitabu/public/api/v3/webhooks.json +667 -0
  98. data/lib/gitabu/run.rb +237 -0
  99. data/lib/gitabu/scraper.rb +86 -0
  100. data/lib/gitabu/templates/template.rb.erb +70 -0
  101. data/lib/gitabu/version.rb +6 -0
  102. data/lib/gitabu.rb +57 -0
  103. data/sig/gitabu.rbs +4 -0
  104. metadata +177 -0
@@ -0,0 +1,1078 @@
1
+ {
2
+ "result": [
3
+ {
4
+ "namespace_description": "List packages for an organization",
5
+ "method": "get",
6
+ "endpoint": "/orgs/{org}/packages",
7
+ "field_0": {
8
+ "field_type": "header",
9
+ "fields": {
10
+ "name": "accept",
11
+ "type": "string",
12
+ "in": "header",
13
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
14
+ }
15
+ },
16
+ "field_1": {
17
+ "field_type": "query",
18
+ "fields": {
19
+ "name": "package_type",
20
+ "type": "string",
21
+ "in": "query",
22
+ "description": "The type of supported package. Can be one of npm, maven, rubygems, nuget, docker, or container. Packages in GitHub's Gradle registry have the type maven. Docker images pushed to GitHub's Container registry (ghcr.io) have the type container. You can use the type docker to find images that were pushed to GitHub's Docker registry (docker.pkg.github.com), even if these have now been migrated to the Container registry."
23
+ }
24
+ },
25
+ "field_2": {
26
+ "field_type": "path",
27
+ "fields": {
28
+ "name": "org",
29
+ "type": "string",
30
+ "in": "path",
31
+ "description": ""
32
+ }
33
+ },
34
+ "field_3": {
35
+ "field_type": "query",
36
+ "fields": {
37
+ "name": "visibility",
38
+ "type": "string",
39
+ "in": "query",
40
+ "description": "The selected visibility of the packages. Can be one of public, private, or internal. Only container package_types currently support internal visibility properly. For other ecosystems internal is synonymous with private. This parameter is optional and only filters an existing result set."
41
+ }
42
+ }
43
+ },
44
+ {
45
+ "namespace_description": "Get a package for an organization",
46
+ "method": "get",
47
+ "endpoint": "/orgs/{org}/packages/{package_type}/{package_name}",
48
+ "field_0": {
49
+ "field_type": "header",
50
+ "fields": {
51
+ "name": "accept",
52
+ "type": "string",
53
+ "in": "header",
54
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
55
+ }
56
+ },
57
+ "field_1": {
58
+ "field_type": "path",
59
+ "fields": {
60
+ "name": "package_type",
61
+ "type": "string",
62
+ "in": "path",
63
+ "description": "The type of supported package. Can be one of npm, maven, rubygems, nuget, docker, or container. Packages in GitHub's Gradle registry have the type maven. Docker images pushed to GitHub's Container registry (ghcr.io) have the type container. You can use the type docker to find images that were pushed to GitHub's Docker registry (docker.pkg.github.com), even if these have now been migrated to the Container registry."
64
+ }
65
+ },
66
+ "field_2": {
67
+ "field_type": "path",
68
+ "fields": {
69
+ "name": "package_name",
70
+ "type": "string",
71
+ "in": "path",
72
+ "description": "The name of the package."
73
+ }
74
+ },
75
+ "field_3": {
76
+ "field_type": "path",
77
+ "fields": {
78
+ "name": "org",
79
+ "type": "string",
80
+ "in": "path",
81
+ "description": ""
82
+ }
83
+ }
84
+ },
85
+ {
86
+ "namespace_description": "Delete a package for an organization",
87
+ "method": "delete",
88
+ "endpoint": "/orgs/{org}/packages/{package_type}/{package_name}",
89
+ "field_0": {
90
+ "field_type": "header",
91
+ "fields": {
92
+ "name": "accept",
93
+ "type": "string",
94
+ "in": "header",
95
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
96
+ }
97
+ },
98
+ "field_1": {
99
+ "field_type": "path",
100
+ "fields": {
101
+ "name": "package_type",
102
+ "type": "string",
103
+ "in": "path",
104
+ "description": "The type of supported package. Can be one of npm, maven, rubygems, nuget, docker, or container. Packages in GitHub's Gradle registry have the type maven. Docker images pushed to GitHub's Container registry (ghcr.io) have the type container. You can use the type docker to find images that were pushed to GitHub's Docker registry (docker.pkg.github.com), even if these have now been migrated to the Container registry."
105
+ }
106
+ },
107
+ "field_2": {
108
+ "field_type": "path",
109
+ "fields": {
110
+ "name": "package_name",
111
+ "type": "string",
112
+ "in": "path",
113
+ "description": "The name of the package."
114
+ }
115
+ },
116
+ "field_3": {
117
+ "field_type": "path",
118
+ "fields": {
119
+ "name": "org",
120
+ "type": "string",
121
+ "in": "path",
122
+ "description": ""
123
+ }
124
+ }
125
+ },
126
+ {
127
+ "namespace_description": "Restore a package for an organization",
128
+ "method": "post",
129
+ "endpoint": "/orgs/{org}/packages/{package_type}/{package_name}/restore",
130
+ "field_0": {
131
+ "field_type": "header",
132
+ "fields": {
133
+ "name": "accept",
134
+ "type": "string",
135
+ "in": "header",
136
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
137
+ }
138
+ },
139
+ "field_1": {
140
+ "field_type": "path",
141
+ "fields": {
142
+ "name": "package_type",
143
+ "type": "string",
144
+ "in": "path",
145
+ "description": "The type of supported package. Can be one of npm, maven, rubygems, nuget, docker, or container. Packages in GitHub's Gradle registry have the type maven. Docker images pushed to GitHub's Container registry (ghcr.io) have the type container. You can use the type docker to find images that were pushed to GitHub's Docker registry (docker.pkg.github.com), even if these have now been migrated to the Container registry."
146
+ }
147
+ },
148
+ "field_2": {
149
+ "field_type": "path",
150
+ "fields": {
151
+ "name": "package_name",
152
+ "type": "string",
153
+ "in": "path",
154
+ "description": "The name of the package."
155
+ }
156
+ },
157
+ "field_3": {
158
+ "field_type": "path",
159
+ "fields": {
160
+ "name": "org",
161
+ "type": "string",
162
+ "in": "path",
163
+ "description": ""
164
+ }
165
+ },
166
+ "field_4": {
167
+ "field_type": "query",
168
+ "fields": {
169
+ "name": "token",
170
+ "type": "string",
171
+ "in": "query",
172
+ "description": "package token"
173
+ }
174
+ }
175
+ },
176
+ {
177
+ "namespace_description": "Get all package versions for a package owned by an organization",
178
+ "method": "get",
179
+ "endpoint": "/orgs/{org}/packages/{package_type}/{package_name}/versions",
180
+ "field_0": {
181
+ "field_type": "header",
182
+ "fields": {
183
+ "name": "accept",
184
+ "type": "string",
185
+ "in": "header",
186
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
187
+ }
188
+ },
189
+ "field_1": {
190
+ "field_type": "path",
191
+ "fields": {
192
+ "name": "package_type",
193
+ "type": "string",
194
+ "in": "path",
195
+ "description": "The type of supported package. Can be one of npm, maven, rubygems, nuget, docker, or container. Packages in GitHub's Gradle registry have the type maven. Docker images pushed to GitHub's Container registry (ghcr.io) have the type container. You can use the type docker to find images that were pushed to GitHub's Docker registry (docker.pkg.github.com), even if these have now been migrated to the Container registry."
196
+ }
197
+ },
198
+ "field_2": {
199
+ "field_type": "path",
200
+ "fields": {
201
+ "name": "package_name",
202
+ "type": "string",
203
+ "in": "path",
204
+ "description": "The name of the package."
205
+ }
206
+ },
207
+ "field_3": {
208
+ "field_type": "path",
209
+ "fields": {
210
+ "name": "org",
211
+ "type": "string",
212
+ "in": "path",
213
+ "description": ""
214
+ }
215
+ },
216
+ "field_4": {
217
+ "field_type": "query",
218
+ "fields": {
219
+ "name": "page",
220
+ "type": "integer",
221
+ "in": "query",
222
+ "description": "Page number of the results to fetch.Default: 1"
223
+ }
224
+ },
225
+ "field_5": {
226
+ "field_type": "query",
227
+ "fields": {
228
+ "name": "per_page",
229
+ "type": "integer",
230
+ "in": "query",
231
+ "description": "Results per page (max 100)Default: 30"
232
+ }
233
+ },
234
+ "field_6": {
235
+ "field_type": "query",
236
+ "fields": {
237
+ "name": "state",
238
+ "type": "string",
239
+ "in": "query",
240
+ "description": "The state of the package, either active or deleted.Default: active"
241
+ }
242
+ }
243
+ },
244
+ {
245
+ "namespace_description": "Get a package version for an organization",
246
+ "method": "get",
247
+ "endpoint": "/orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}",
248
+ "field_0": {
249
+ "field_type": "header",
250
+ "fields": {
251
+ "name": "accept",
252
+ "type": "string",
253
+ "in": "header",
254
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
255
+ }
256
+ },
257
+ "field_1": {
258
+ "field_type": "path",
259
+ "fields": {
260
+ "name": "package_type",
261
+ "type": "string",
262
+ "in": "path",
263
+ "description": "The type of supported package. Can be one of npm, maven, rubygems, nuget, docker, or container. Packages in GitHub's Gradle registry have the type maven. Docker images pushed to GitHub's Container registry (ghcr.io) have the type container. You can use the type docker to find images that were pushed to GitHub's Docker registry (docker.pkg.github.com), even if these have now been migrated to the Container registry."
264
+ }
265
+ },
266
+ "field_2": {
267
+ "field_type": "path",
268
+ "fields": {
269
+ "name": "package_name",
270
+ "type": "string",
271
+ "in": "path",
272
+ "description": "The name of the package."
273
+ }
274
+ },
275
+ "field_3": {
276
+ "field_type": "path",
277
+ "fields": {
278
+ "name": "org",
279
+ "type": "string",
280
+ "in": "path",
281
+ "description": ""
282
+ }
283
+ },
284
+ "field_4": {
285
+ "field_type": "path",
286
+ "fields": {
287
+ "name": "package_version_id",
288
+ "type": "integer",
289
+ "in": "path",
290
+ "description": "Unique identifier of the package version."
291
+ }
292
+ }
293
+ },
294
+ {
295
+ "namespace_description": "Delete package version for an organization",
296
+ "method": "delete",
297
+ "endpoint": "/orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}",
298
+ "field_0": {
299
+ "field_type": "header",
300
+ "fields": {
301
+ "name": "accept",
302
+ "type": "string",
303
+ "in": "header",
304
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
305
+ }
306
+ },
307
+ "field_1": {
308
+ "field_type": "path",
309
+ "fields": {
310
+ "name": "package_type",
311
+ "type": "string",
312
+ "in": "path",
313
+ "description": "The type of supported package. Can be one of npm, maven, rubygems, nuget, docker, or container. Packages in GitHub's Gradle registry have the type maven. Docker images pushed to GitHub's Container registry (ghcr.io) have the type container. You can use the type docker to find images that were pushed to GitHub's Docker registry (docker.pkg.github.com), even if these have now been migrated to the Container registry."
314
+ }
315
+ },
316
+ "field_2": {
317
+ "field_type": "path",
318
+ "fields": {
319
+ "name": "package_name",
320
+ "type": "string",
321
+ "in": "path",
322
+ "description": "The name of the package."
323
+ }
324
+ },
325
+ "field_3": {
326
+ "field_type": "path",
327
+ "fields": {
328
+ "name": "org",
329
+ "type": "string",
330
+ "in": "path",
331
+ "description": ""
332
+ }
333
+ },
334
+ "field_4": {
335
+ "field_type": "path",
336
+ "fields": {
337
+ "name": "package_version_id",
338
+ "type": "integer",
339
+ "in": "path",
340
+ "description": "Unique identifier of the package version."
341
+ }
342
+ }
343
+ },
344
+ {
345
+ "namespace_description": "Restore package version for an organization",
346
+ "method": "post",
347
+ "endpoint": "/orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore",
348
+ "field_0": {
349
+ "field_type": "header",
350
+ "fields": {
351
+ "name": "accept",
352
+ "type": "string",
353
+ "in": "header",
354
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
355
+ }
356
+ },
357
+ "field_1": {
358
+ "field_type": "path",
359
+ "fields": {
360
+ "name": "package_type",
361
+ "type": "string",
362
+ "in": "path",
363
+ "description": "The type of supported package. Can be one of npm, maven, rubygems, nuget, docker, or container. Packages in GitHub's Gradle registry have the type maven. Docker images pushed to GitHub's Container registry (ghcr.io) have the type container. You can use the type docker to find images that were pushed to GitHub's Docker registry (docker.pkg.github.com), even if these have now been migrated to the Container registry."
364
+ }
365
+ },
366
+ "field_2": {
367
+ "field_type": "path",
368
+ "fields": {
369
+ "name": "package_name",
370
+ "type": "string",
371
+ "in": "path",
372
+ "description": "The name of the package."
373
+ }
374
+ },
375
+ "field_3": {
376
+ "field_type": "path",
377
+ "fields": {
378
+ "name": "org",
379
+ "type": "string",
380
+ "in": "path",
381
+ "description": ""
382
+ }
383
+ },
384
+ "field_4": {
385
+ "field_type": "path",
386
+ "fields": {
387
+ "name": "package_version_id",
388
+ "type": "integer",
389
+ "in": "path",
390
+ "description": "Unique identifier of the package version."
391
+ }
392
+ }
393
+ },
394
+ {
395
+ "namespace_description": "List packages for the authenticated user's namespace",
396
+ "method": "get",
397
+ "endpoint": "/user/packages",
398
+ "field_0": {
399
+ "field_type": "header",
400
+ "fields": {
401
+ "name": "accept",
402
+ "type": "string",
403
+ "in": "header",
404
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
405
+ }
406
+ },
407
+ "field_1": {
408
+ "field_type": "query",
409
+ "fields": {
410
+ "name": "package_type",
411
+ "type": "string",
412
+ "in": "query",
413
+ "description": "The type of supported package. Can be one of npm, maven, rubygems, nuget, docker, or container. Packages in GitHub's Gradle registry have the type maven. Docker images pushed to GitHub's Container registry (ghcr.io) have the type container. You can use the type docker to find images that were pushed to GitHub's Docker registry (docker.pkg.github.com), even if these have now been migrated to the Container registry."
414
+ }
415
+ },
416
+ "field_2": {
417
+ "field_type": "query",
418
+ "fields": {
419
+ "name": "visibility",
420
+ "type": "string",
421
+ "in": "query",
422
+ "description": "The selected visibility of the packages. Can be one of public, private, or internal. Only container package_types currently support internal visibility properly. For other ecosystems internal is synonymous with private. This parameter is optional and only filters an existing result set."
423
+ }
424
+ }
425
+ },
426
+ {
427
+ "namespace_description": "Get a package for the authenticated user",
428
+ "method": "get",
429
+ "endpoint": "/user/packages/{package_type}/{package_name}",
430
+ "field_0": {
431
+ "field_type": "header",
432
+ "fields": {
433
+ "name": "accept",
434
+ "type": "string",
435
+ "in": "header",
436
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
437
+ }
438
+ },
439
+ "field_1": {
440
+ "field_type": "path",
441
+ "fields": {
442
+ "name": "package_type",
443
+ "type": "string",
444
+ "in": "path",
445
+ "description": "The type of supported package. Can be one of npm, maven, rubygems, nuget, docker, or container. Packages in GitHub's Gradle registry have the type maven. Docker images pushed to GitHub's Container registry (ghcr.io) have the type container. You can use the type docker to find images that were pushed to GitHub's Docker registry (docker.pkg.github.com), even if these have now been migrated to the Container registry."
446
+ }
447
+ },
448
+ "field_2": {
449
+ "field_type": "path",
450
+ "fields": {
451
+ "name": "package_name",
452
+ "type": "string",
453
+ "in": "path",
454
+ "description": "The name of the package."
455
+ }
456
+ }
457
+ },
458
+ {
459
+ "namespace_description": "Delete a package for the authenticated user",
460
+ "method": "delete",
461
+ "endpoint": "/user/packages/{package_type}/{package_name}",
462
+ "field_0": {
463
+ "field_type": "header",
464
+ "fields": {
465
+ "name": "accept",
466
+ "type": "string",
467
+ "in": "header",
468
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
469
+ }
470
+ },
471
+ "field_1": {
472
+ "field_type": "path",
473
+ "fields": {
474
+ "name": "package_type",
475
+ "type": "string",
476
+ "in": "path",
477
+ "description": "The type of supported package. Can be one of npm, maven, rubygems, nuget, docker, or container. Packages in GitHub's Gradle registry have the type maven. Docker images pushed to GitHub's Container registry (ghcr.io) have the type container. You can use the type docker to find images that were pushed to GitHub's Docker registry (docker.pkg.github.com), even if these have now been migrated to the Container registry."
478
+ }
479
+ },
480
+ "field_2": {
481
+ "field_type": "path",
482
+ "fields": {
483
+ "name": "package_name",
484
+ "type": "string",
485
+ "in": "path",
486
+ "description": "The name of the package."
487
+ }
488
+ }
489
+ },
490
+ {
491
+ "namespace_description": "Restore a package for the authenticated user",
492
+ "method": "post",
493
+ "endpoint": "/user/packages/{package_type}/{package_name}/restore",
494
+ "field_0": {
495
+ "field_type": "header",
496
+ "fields": {
497
+ "name": "accept",
498
+ "type": "string",
499
+ "in": "header",
500
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
501
+ }
502
+ },
503
+ "field_1": {
504
+ "field_type": "path",
505
+ "fields": {
506
+ "name": "package_type",
507
+ "type": "string",
508
+ "in": "path",
509
+ "description": "The type of supported package. Can be one of npm, maven, rubygems, nuget, docker, or container. Packages in GitHub's Gradle registry have the type maven. Docker images pushed to GitHub's Container registry (ghcr.io) have the type container. You can use the type docker to find images that were pushed to GitHub's Docker registry (docker.pkg.github.com), even if these have now been migrated to the Container registry."
510
+ }
511
+ },
512
+ "field_2": {
513
+ "field_type": "path",
514
+ "fields": {
515
+ "name": "package_name",
516
+ "type": "string",
517
+ "in": "path",
518
+ "description": "The name of the package."
519
+ }
520
+ },
521
+ "field_3": {
522
+ "field_type": "query",
523
+ "fields": {
524
+ "name": "token",
525
+ "type": "string",
526
+ "in": "query",
527
+ "description": "package token"
528
+ }
529
+ }
530
+ },
531
+ {
532
+ "namespace_description": "Get all package versions for a package owned by the authenticated user",
533
+ "method": "get",
534
+ "endpoint": "/user/packages/{package_type}/{package_name}/versions",
535
+ "field_0": {
536
+ "field_type": "header",
537
+ "fields": {
538
+ "name": "accept",
539
+ "type": "string",
540
+ "in": "header",
541
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
542
+ }
543
+ },
544
+ "field_1": {
545
+ "field_type": "path",
546
+ "fields": {
547
+ "name": "package_type",
548
+ "type": "string",
549
+ "in": "path",
550
+ "description": "The type of supported package. Can be one of npm, maven, rubygems, nuget, docker, or container. Packages in GitHub's Gradle registry have the type maven. Docker images pushed to GitHub's Container registry (ghcr.io) have the type container. You can use the type docker to find images that were pushed to GitHub's Docker registry (docker.pkg.github.com), even if these have now been migrated to the Container registry."
551
+ }
552
+ },
553
+ "field_2": {
554
+ "field_type": "path",
555
+ "fields": {
556
+ "name": "package_name",
557
+ "type": "string",
558
+ "in": "path",
559
+ "description": "The name of the package."
560
+ }
561
+ },
562
+ "field_3": {
563
+ "field_type": "query",
564
+ "fields": {
565
+ "name": "page",
566
+ "type": "integer",
567
+ "in": "query",
568
+ "description": "Page number of the results to fetch.Default: 1"
569
+ }
570
+ },
571
+ "field_4": {
572
+ "field_type": "query",
573
+ "fields": {
574
+ "name": "per_page",
575
+ "type": "integer",
576
+ "in": "query",
577
+ "description": "Results per page (max 100)Default: 30"
578
+ }
579
+ },
580
+ "field_5": {
581
+ "field_type": "query",
582
+ "fields": {
583
+ "name": "state",
584
+ "type": "string",
585
+ "in": "query",
586
+ "description": "The state of the package, either active or deleted.Default: active"
587
+ }
588
+ }
589
+ },
590
+ {
591
+ "namespace_description": "Get a package version for the authenticated user",
592
+ "method": "get",
593
+ "endpoint": "/user/packages/{package_type}/{package_name}/versions/{package_version_id}",
594
+ "field_0": {
595
+ "field_type": "header",
596
+ "fields": {
597
+ "name": "accept",
598
+ "type": "string",
599
+ "in": "header",
600
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
601
+ }
602
+ },
603
+ "field_1": {
604
+ "field_type": "path",
605
+ "fields": {
606
+ "name": "package_type",
607
+ "type": "string",
608
+ "in": "path",
609
+ "description": "The type of supported package. Can be one of npm, maven, rubygems, nuget, docker, or container. Packages in GitHub's Gradle registry have the type maven. Docker images pushed to GitHub's Container registry (ghcr.io) have the type container. You can use the type docker to find images that were pushed to GitHub's Docker registry (docker.pkg.github.com), even if these have now been migrated to the Container registry."
610
+ }
611
+ },
612
+ "field_2": {
613
+ "field_type": "path",
614
+ "fields": {
615
+ "name": "package_name",
616
+ "type": "string",
617
+ "in": "path",
618
+ "description": "The name of the package."
619
+ }
620
+ },
621
+ "field_3": {
622
+ "field_type": "path",
623
+ "fields": {
624
+ "name": "package_version_id",
625
+ "type": "integer",
626
+ "in": "path",
627
+ "description": "Unique identifier of the package version."
628
+ }
629
+ }
630
+ },
631
+ {
632
+ "namespace_description": "Delete a package version for the authenticated user",
633
+ "method": "delete",
634
+ "endpoint": "/user/packages/{package_type}/{package_name}/versions/{package_version_id}",
635
+ "field_0": {
636
+ "field_type": "header",
637
+ "fields": {
638
+ "name": "accept",
639
+ "type": "string",
640
+ "in": "header",
641
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
642
+ }
643
+ },
644
+ "field_1": {
645
+ "field_type": "path",
646
+ "fields": {
647
+ "name": "package_type",
648
+ "type": "string",
649
+ "in": "path",
650
+ "description": "The type of supported package. Can be one of npm, maven, rubygems, nuget, docker, or container. Packages in GitHub's Gradle registry have the type maven. Docker images pushed to GitHub's Container registry (ghcr.io) have the type container. You can use the type docker to find images that were pushed to GitHub's Docker registry (docker.pkg.github.com), even if these have now been migrated to the Container registry."
651
+ }
652
+ },
653
+ "field_2": {
654
+ "field_type": "path",
655
+ "fields": {
656
+ "name": "package_name",
657
+ "type": "string",
658
+ "in": "path",
659
+ "description": "The name of the package."
660
+ }
661
+ },
662
+ "field_3": {
663
+ "field_type": "path",
664
+ "fields": {
665
+ "name": "package_version_id",
666
+ "type": "integer",
667
+ "in": "path",
668
+ "description": "Unique identifier of the package version."
669
+ }
670
+ }
671
+ },
672
+ {
673
+ "namespace_description": "Restore a package version for the authenticated user",
674
+ "method": "post",
675
+ "endpoint": "/user/packages/{package_type}/{package_name}/versions/{package_version_id}/restore",
676
+ "field_0": {
677
+ "field_type": "header",
678
+ "fields": {
679
+ "name": "accept",
680
+ "type": "string",
681
+ "in": "header",
682
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
683
+ }
684
+ },
685
+ "field_1": {
686
+ "field_type": "path",
687
+ "fields": {
688
+ "name": "package_type",
689
+ "type": "string",
690
+ "in": "path",
691
+ "description": "The type of supported package. Can be one of npm, maven, rubygems, nuget, docker, or container. Packages in GitHub's Gradle registry have the type maven. Docker images pushed to GitHub's Container registry (ghcr.io) have the type container. You can use the type docker to find images that were pushed to GitHub's Docker registry (docker.pkg.github.com), even if these have now been migrated to the Container registry."
692
+ }
693
+ },
694
+ "field_2": {
695
+ "field_type": "path",
696
+ "fields": {
697
+ "name": "package_name",
698
+ "type": "string",
699
+ "in": "path",
700
+ "description": "The name of the package."
701
+ }
702
+ },
703
+ "field_3": {
704
+ "field_type": "path",
705
+ "fields": {
706
+ "name": "package_version_id",
707
+ "type": "integer",
708
+ "in": "path",
709
+ "description": "Unique identifier of the package version."
710
+ }
711
+ }
712
+ },
713
+ {
714
+ "namespace_description": "List packages for a user",
715
+ "method": "get",
716
+ "endpoint": "/users/{username}/packages",
717
+ "field_0": {
718
+ "field_type": "header",
719
+ "fields": {
720
+ "name": "accept",
721
+ "type": "string",
722
+ "in": "header",
723
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
724
+ }
725
+ },
726
+ "field_1": {
727
+ "field_type": "query",
728
+ "fields": {
729
+ "name": "package_type",
730
+ "type": "string",
731
+ "in": "query",
732
+ "description": "The type of supported package. Can be one of npm, maven, rubygems, nuget, docker, or container. Packages in GitHub's Gradle registry have the type maven. Docker images pushed to GitHub's Container registry (ghcr.io) have the type container. You can use the type docker to find images that were pushed to GitHub's Docker registry (docker.pkg.github.com), even if these have now been migrated to the Container registry."
733
+ }
734
+ },
735
+ "field_2": {
736
+ "field_type": "query",
737
+ "fields": {
738
+ "name": "visibility",
739
+ "type": "string",
740
+ "in": "query",
741
+ "description": "The selected visibility of the packages. Can be one of public, private, or internal. Only container package_types currently support internal visibility properly. For other ecosystems internal is synonymous with private. This parameter is optional and only filters an existing result set."
742
+ }
743
+ },
744
+ "field_3": {
745
+ "field_type": "path",
746
+ "fields": {
747
+ "name": "username",
748
+ "type": "string",
749
+ "in": "path",
750
+ "description": ""
751
+ }
752
+ }
753
+ },
754
+ {
755
+ "namespace_description": "Get a package for a user",
756
+ "method": "get",
757
+ "endpoint": "/users/{username}/packages/{package_type}/{package_name}",
758
+ "field_0": {
759
+ "field_type": "header",
760
+ "fields": {
761
+ "name": "accept",
762
+ "type": "string",
763
+ "in": "header",
764
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
765
+ }
766
+ },
767
+ "field_1": {
768
+ "field_type": "path",
769
+ "fields": {
770
+ "name": "package_type",
771
+ "type": "string",
772
+ "in": "path",
773
+ "description": "The type of supported package. Can be one of npm, maven, rubygems, nuget, docker, or container. Packages in GitHub's Gradle registry have the type maven. Docker images pushed to GitHub's Container registry (ghcr.io) have the type container. You can use the type docker to find images that were pushed to GitHub's Docker registry (docker.pkg.github.com), even if these have now been migrated to the Container registry."
774
+ }
775
+ },
776
+ "field_2": {
777
+ "field_type": "path",
778
+ "fields": {
779
+ "name": "package_name",
780
+ "type": "string",
781
+ "in": "path",
782
+ "description": "The name of the package."
783
+ }
784
+ },
785
+ "field_3": {
786
+ "field_type": "path",
787
+ "fields": {
788
+ "name": "username",
789
+ "type": "string",
790
+ "in": "path",
791
+ "description": ""
792
+ }
793
+ }
794
+ },
795
+ {
796
+ "namespace_description": "Delete a package for a user",
797
+ "method": "delete",
798
+ "endpoint": "/users/{username}/packages/{package_type}/{package_name}",
799
+ "field_0": {
800
+ "field_type": "header",
801
+ "fields": {
802
+ "name": "accept",
803
+ "type": "string",
804
+ "in": "header",
805
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
806
+ }
807
+ },
808
+ "field_1": {
809
+ "field_type": "path",
810
+ "fields": {
811
+ "name": "package_type",
812
+ "type": "string",
813
+ "in": "path",
814
+ "description": "The type of supported package. Can be one of npm, maven, rubygems, nuget, docker, or container. Packages in GitHub's Gradle registry have the type maven. Docker images pushed to GitHub's Container registry (ghcr.io) have the type container. You can use the type docker to find images that were pushed to GitHub's Docker registry (docker.pkg.github.com), even if these have now been migrated to the Container registry."
815
+ }
816
+ },
817
+ "field_2": {
818
+ "field_type": "path",
819
+ "fields": {
820
+ "name": "package_name",
821
+ "type": "string",
822
+ "in": "path",
823
+ "description": "The name of the package."
824
+ }
825
+ },
826
+ "field_3": {
827
+ "field_type": "path",
828
+ "fields": {
829
+ "name": "username",
830
+ "type": "string",
831
+ "in": "path",
832
+ "description": ""
833
+ }
834
+ }
835
+ },
836
+ {
837
+ "namespace_description": "Restore a package for a user",
838
+ "method": "post",
839
+ "endpoint": "/users/{username}/packages/{package_type}/{package_name}/restore",
840
+ "field_0": {
841
+ "field_type": "header",
842
+ "fields": {
843
+ "name": "accept",
844
+ "type": "string",
845
+ "in": "header",
846
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
847
+ }
848
+ },
849
+ "field_1": {
850
+ "field_type": "path",
851
+ "fields": {
852
+ "name": "package_type",
853
+ "type": "string",
854
+ "in": "path",
855
+ "description": "The type of supported package. Can be one of npm, maven, rubygems, nuget, docker, or container. Packages in GitHub's Gradle registry have the type maven. Docker images pushed to GitHub's Container registry (ghcr.io) have the type container. You can use the type docker to find images that were pushed to GitHub's Docker registry (docker.pkg.github.com), even if these have now been migrated to the Container registry."
856
+ }
857
+ },
858
+ "field_2": {
859
+ "field_type": "path",
860
+ "fields": {
861
+ "name": "package_name",
862
+ "type": "string",
863
+ "in": "path",
864
+ "description": "The name of the package."
865
+ }
866
+ },
867
+ "field_3": {
868
+ "field_type": "path",
869
+ "fields": {
870
+ "name": "username",
871
+ "type": "string",
872
+ "in": "path",
873
+ "description": ""
874
+ }
875
+ },
876
+ "field_4": {
877
+ "field_type": "query",
878
+ "fields": {
879
+ "name": "token",
880
+ "type": "string",
881
+ "in": "query",
882
+ "description": "package token"
883
+ }
884
+ }
885
+ },
886
+ {
887
+ "namespace_description": "Get all package versions for a package owned by a user",
888
+ "method": "get",
889
+ "endpoint": "/users/{username}/packages/{package_type}/{package_name}/versions",
890
+ "field_0": {
891
+ "field_type": "header",
892
+ "fields": {
893
+ "name": "accept",
894
+ "type": "string",
895
+ "in": "header",
896
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
897
+ }
898
+ },
899
+ "field_1": {
900
+ "field_type": "path",
901
+ "fields": {
902
+ "name": "package_type",
903
+ "type": "string",
904
+ "in": "path",
905
+ "description": "The type of supported package. Can be one of npm, maven, rubygems, nuget, docker, or container. Packages in GitHub's Gradle registry have the type maven. Docker images pushed to GitHub's Container registry (ghcr.io) have the type container. You can use the type docker to find images that were pushed to GitHub's Docker registry (docker.pkg.github.com), even if these have now been migrated to the Container registry."
906
+ }
907
+ },
908
+ "field_2": {
909
+ "field_type": "path",
910
+ "fields": {
911
+ "name": "package_name",
912
+ "type": "string",
913
+ "in": "path",
914
+ "description": "The name of the package."
915
+ }
916
+ },
917
+ "field_3": {
918
+ "field_type": "path",
919
+ "fields": {
920
+ "name": "username",
921
+ "type": "string",
922
+ "in": "path",
923
+ "description": ""
924
+ }
925
+ }
926
+ },
927
+ {
928
+ "namespace_description": "Get a package version for a user",
929
+ "method": "get",
930
+ "endpoint": "/users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}",
931
+ "field_0": {
932
+ "field_type": "header",
933
+ "fields": {
934
+ "name": "accept",
935
+ "type": "string",
936
+ "in": "header",
937
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
938
+ }
939
+ },
940
+ "field_1": {
941
+ "field_type": "path",
942
+ "fields": {
943
+ "name": "package_type",
944
+ "type": "string",
945
+ "in": "path",
946
+ "description": "The type of supported package. Can be one of npm, maven, rubygems, nuget, docker, or container. Packages in GitHub's Gradle registry have the type maven. Docker images pushed to GitHub's Container registry (ghcr.io) have the type container. You can use the type docker to find images that were pushed to GitHub's Docker registry (docker.pkg.github.com), even if these have now been migrated to the Container registry."
947
+ }
948
+ },
949
+ "field_2": {
950
+ "field_type": "path",
951
+ "fields": {
952
+ "name": "package_name",
953
+ "type": "string",
954
+ "in": "path",
955
+ "description": "The name of the package."
956
+ }
957
+ },
958
+ "field_3": {
959
+ "field_type": "path",
960
+ "fields": {
961
+ "name": "package_version_id",
962
+ "type": "integer",
963
+ "in": "path",
964
+ "description": "Unique identifier of the package version."
965
+ }
966
+ },
967
+ "field_4": {
968
+ "field_type": "path",
969
+ "fields": {
970
+ "name": "username",
971
+ "type": "string",
972
+ "in": "path",
973
+ "description": ""
974
+ }
975
+ }
976
+ },
977
+ {
978
+ "namespace_description": "Delete package version for a user",
979
+ "method": "delete",
980
+ "endpoint": "/users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}",
981
+ "field_0": {
982
+ "field_type": "header",
983
+ "fields": {
984
+ "name": "accept",
985
+ "type": "string",
986
+ "in": "header",
987
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
988
+ }
989
+ },
990
+ "field_1": {
991
+ "field_type": "path",
992
+ "fields": {
993
+ "name": "package_type",
994
+ "type": "string",
995
+ "in": "path",
996
+ "description": "The type of supported package. Can be one of npm, maven, rubygems, nuget, docker, or container. Packages in GitHub's Gradle registry have the type maven. Docker images pushed to GitHub's Container registry (ghcr.io) have the type container. You can use the type docker to find images that were pushed to GitHub's Docker registry (docker.pkg.github.com), even if these have now been migrated to the Container registry."
997
+ }
998
+ },
999
+ "field_2": {
1000
+ "field_type": "path",
1001
+ "fields": {
1002
+ "name": "package_name",
1003
+ "type": "string",
1004
+ "in": "path",
1005
+ "description": "The name of the package."
1006
+ }
1007
+ },
1008
+ "field_3": {
1009
+ "field_type": "path",
1010
+ "fields": {
1011
+ "name": "username",
1012
+ "type": "string",
1013
+ "in": "path",
1014
+ "description": ""
1015
+ }
1016
+ },
1017
+ "field_4": {
1018
+ "field_type": "path",
1019
+ "fields": {
1020
+ "name": "package_version_id",
1021
+ "type": "integer",
1022
+ "in": "path",
1023
+ "description": "Unique identifier of the package version."
1024
+ }
1025
+ }
1026
+ },
1027
+ {
1028
+ "namespace_description": "Restore package version for a user",
1029
+ "method": "post",
1030
+ "endpoint": "/users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore",
1031
+ "field_0": {
1032
+ "field_type": "header",
1033
+ "fields": {
1034
+ "name": "accept",
1035
+ "type": "string",
1036
+ "in": "header",
1037
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
1038
+ }
1039
+ },
1040
+ "field_1": {
1041
+ "field_type": "path",
1042
+ "fields": {
1043
+ "name": "package_type",
1044
+ "type": "string",
1045
+ "in": "path",
1046
+ "description": "The type of supported package. Can be one of npm, maven, rubygems, nuget, docker, or container. Packages in GitHub's Gradle registry have the type maven. Docker images pushed to GitHub's Container registry (ghcr.io) have the type container. You can use the type docker to find images that were pushed to GitHub's Docker registry (docker.pkg.github.com), even if these have now been migrated to the Container registry."
1047
+ }
1048
+ },
1049
+ "field_2": {
1050
+ "field_type": "path",
1051
+ "fields": {
1052
+ "name": "package_name",
1053
+ "type": "string",
1054
+ "in": "path",
1055
+ "description": "The name of the package."
1056
+ }
1057
+ },
1058
+ "field_3": {
1059
+ "field_type": "path",
1060
+ "fields": {
1061
+ "name": "username",
1062
+ "type": "string",
1063
+ "in": "path",
1064
+ "description": ""
1065
+ }
1066
+ },
1067
+ "field_4": {
1068
+ "field_type": "path",
1069
+ "fields": {
1070
+ "name": "package_version_id",
1071
+ "type": "integer",
1072
+ "in": "path",
1073
+ "description": "Unique identifier of the package version."
1074
+ }
1075
+ }
1076
+ }
1077
+ ]
1078
+ }