| 1 | // @generated from apps/docs/src/data/openapi.json by crates/g1t/src/ops.rs. |
| 2 | // Do not edit: run `G1T_WRITE_OPS=1 cargo test -p g1t ops_table`. |
| 3 | |
| 4 | use crate::ops::{Field, In, Operation, Param}; |
| 5 | |
| 6 | #[rustfmt::skip] |
| 7 | pub static OPERATIONS: &[Operation] = &[ |
| 8 | Operation { |
| 9 | id: "add_ai_provider", |
| 10 | method: "POST", |
| 11 | path: "/workspaces/{workspace}/ai/providers", |
| 12 | tag: "AI", |
| 13 | summary: "Add an AI provider", |
| 14 | scope: Some("workspace:admin"), |
| 15 | params: &[ |
| 16 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 17 | ], |
| 18 | body: &[ |
| 19 | Field { name: "config", kind: "object", required: false, values: &[] }, |
| 20 | Field { name: "name", kind: "string", required: false, values: &[] }, |
| 21 | Field { name: "provider", kind: "string", required: true, values: &["anthropic", "openai", "gemini", "xai", "mistral", "deepseek", "azure_openai", "openrouter", "groq", "together", "fireworks", "cerebras", "anthropic_endpoint", "openai_endpoint"] }, |
| 22 | Field { name: "secret", kind: "string", required: false, values: &[] }, |
| 23 | ], |
| 24 | }, |
| 25 | Operation { |
| 26 | id: "get_ask_settings", |
| 27 | method: "GET", |
| 28 | path: "/workspaces/{workspace}/ai/ask", |
| 29 | tag: "AI", |
| 30 | summary: "Get Ask settings", |
| 31 | scope: Some("workspace:read"), |
| 32 | params: &[ |
| 33 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 34 | ], |
| 35 | body: &[], |
| 36 | }, |
| 37 | Operation { |
| 38 | id: "list_ai_providers", |
| 39 | method: "GET", |
| 40 | path: "/workspaces/{workspace}/ai/providers", |
| 41 | tag: "AI", |
| 42 | summary: "List AI providers", |
| 43 | scope: Some("workspace:read"), |
| 44 | params: &[ |
| 45 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 46 | ], |
| 47 | body: &[], |
| 48 | }, |
| 49 | Operation { |
| 50 | id: "remove_ai_provider", |
| 51 | method: "DELETE", |
| 52 | path: "/workspaces/{workspace}/ai/providers/{id}", |
| 53 | tag: "AI", |
| 54 | summary: "Remove an AI provider", |
| 55 | scope: Some("workspace:admin"), |
| 56 | params: &[ |
| 57 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 58 | Param { name: "id", location: In::Path, kind: "string", required: true, values: &[] }, |
| 59 | ], |
| 60 | body: &[], |
| 61 | }, |
| 62 | Operation { |
| 63 | id: "set_ask_settings", |
| 64 | method: "PUT", |
| 65 | path: "/workspaces/{workspace}/ai/ask", |
| 66 | tag: "AI", |
| 67 | summary: "Set Ask settings", |
| 68 | scope: Some("workspace:admin"), |
| 69 | params: &[ |
| 70 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 71 | ], |
| 72 | body: &[ |
| 73 | Field { name: "model", kind: "string", required: false, values: &[] }, |
| 74 | Field { name: "provider_id", kind: "string", required: false, values: &[] }, |
| 75 | ], |
| 76 | }, |
| 77 | Operation { |
| 78 | id: "test_ai_provider", |
| 79 | method: "POST", |
| 80 | path: "/workspaces/{workspace}/ai/providers/{id}/test", |
| 81 | tag: "AI", |
| 82 | summary: "Test an AI provider", |
| 83 | scope: Some("workspace:admin"), |
| 84 | params: &[ |
| 85 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 86 | Param { name: "id", location: In::Path, kind: "string", required: true, values: &[] }, |
| 87 | ], |
| 88 | body: &[], |
| 89 | }, |
| 90 | Operation { |
| 91 | id: "update_ai_provider", |
| 92 | method: "PATCH", |
| 93 | path: "/workspaces/{workspace}/ai/providers/{id}", |
| 94 | tag: "AI", |
| 95 | summary: "Update an AI provider", |
| 96 | scope: Some("workspace:admin"), |
| 97 | params: &[ |
| 98 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 99 | Param { name: "id", location: In::Path, kind: "string", required: true, values: &[] }, |
| 100 | ], |
| 101 | body: &[ |
| 102 | Field { name: "config", kind: "object", required: false, values: &[] }, |
| 103 | Field { name: "name", kind: "string", required: false, values: &[] }, |
| 104 | Field { name: "secret", kind: "string", required: false, values: &[] }, |
| 105 | ], |
| 106 | }, |
| 107 | Operation { |
| 108 | id: "accept_repo_invitation", |
| 109 | method: "PATCH", |
| 110 | path: "/user/repository_invitations/{id}", |
| 111 | tag: "Access", |
| 112 | summary: "Accept a repository invitation", |
| 113 | scope: Some("account:write"), |
| 114 | params: &[ |
| 115 | Param { name: "id", location: In::Path, kind: "string", required: true, values: &[] }, |
| 116 | ], |
| 117 | body: &[], |
| 118 | }, |
| 119 | Operation { |
| 120 | id: "add_collaborator", |
| 121 | method: "POST", |
| 122 | path: "/repos/{owner}/{name}/collaborators", |
| 123 | tag: "Access", |
| 124 | summary: "Add a collaborator", |
| 125 | scope: Some("access:admin"), |
| 126 | params: &[ |
| 127 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 128 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 129 | ], |
| 130 | body: &[ |
| 131 | Field { name: "invitee", kind: "string", required: true, values: &[] }, |
| 132 | Field { name: "role", kind: "string", required: true, values: &["read", "triage", "write", "maintain", "admin"] }, |
| 133 | ], |
| 134 | }, |
| 135 | Operation { |
| 136 | id: "create_deploy_key", |
| 137 | method: "POST", |
| 138 | path: "/repos/{owner}/{name}/keys", |
| 139 | tag: "Access", |
| 140 | summary: "Create a deploy key", |
| 141 | scope: Some("access:admin"), |
| 142 | params: &[ |
| 143 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 144 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 145 | ], |
| 146 | body: &[ |
| 147 | Field { name: "key", kind: "string", required: true, values: &[] }, |
| 148 | Field { name: "read_only", kind: "boolean", required: false, values: &[] }, |
| 149 | Field { name: "title", kind: "string", required: false, values: &[] }, |
| 150 | ], |
| 151 | }, |
| 152 | Operation { |
| 153 | id: "decline_repo_invitation", |
| 154 | method: "DELETE", |
| 155 | path: "/user/repository_invitations/{id}", |
| 156 | tag: "Access", |
| 157 | summary: "Decline a repository invitation", |
| 158 | scope: Some("account:write"), |
| 159 | params: &[ |
| 160 | Param { name: "id", location: In::Path, kind: "string", required: true, values: &[] }, |
| 161 | ], |
| 162 | body: &[], |
| 163 | }, |
| 164 | Operation { |
| 165 | id: "delete_deploy_key", |
| 166 | method: "DELETE", |
| 167 | path: "/repos/{owner}/{name}/keys/{id}", |
| 168 | tag: "Access", |
| 169 | summary: "Delete a deploy key", |
| 170 | scope: Some("access:admin"), |
| 171 | params: &[ |
| 172 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 173 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 174 | Param { name: "id", location: In::Path, kind: "string", required: true, values: &[] }, |
| 175 | ], |
| 176 | body: &[], |
| 177 | }, |
| 178 | Operation { |
| 179 | id: "get_collaborator_permission", |
| 180 | method: "GET", |
| 181 | path: "/repos/{owner}/{name}/collaborators/{username}/permission", |
| 182 | tag: "Access", |
| 183 | summary: "Get someone's permission", |
| 184 | scope: Some("access:read"), |
| 185 | params: &[ |
| 186 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 187 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 188 | Param { name: "username", location: In::Path, kind: "string", required: true, values: &[] }, |
| 189 | ], |
| 190 | body: &[], |
| 191 | }, |
| 192 | Operation { |
| 193 | id: "get_deploy_key", |
| 194 | method: "GET", |
| 195 | path: "/repos/{owner}/{name}/keys/{id}", |
| 196 | tag: "Access", |
| 197 | summary: "Get a deploy key", |
| 198 | scope: Some("access:read"), |
| 199 | params: &[ |
| 200 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 201 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 202 | Param { name: "id", location: In::Path, kind: "string", required: true, values: &[] }, |
| 203 | ], |
| 204 | body: &[], |
| 205 | }, |
| 206 | Operation { |
| 207 | id: "list_collaborators", |
| 208 | method: "GET", |
| 209 | path: "/repos/{owner}/{name}/collaborators", |
| 210 | tag: "Access", |
| 211 | summary: "List who has access", |
| 212 | scope: Some("access:read"), |
| 213 | params: &[ |
| 214 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 215 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 216 | ], |
| 217 | body: &[], |
| 218 | }, |
| 219 | Operation { |
| 220 | id: "list_deploy_keys", |
| 221 | method: "GET", |
| 222 | path: "/repos/{owner}/{name}/keys", |
| 223 | tag: "Access", |
| 224 | summary: "List deploy keys", |
| 225 | scope: Some("access:read"), |
| 226 | params: &[ |
| 227 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 228 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 229 | ], |
| 230 | body: &[], |
| 231 | }, |
| 232 | Operation { |
| 233 | id: "list_my_repo_invitations", |
| 234 | method: "GET", |
| 235 | path: "/user/repository_invitations", |
| 236 | tag: "Access", |
| 237 | summary: "List your repository invitations", |
| 238 | scope: Some("account:read"), |
| 239 | params: &[], |
| 240 | body: &[], |
| 241 | }, |
| 242 | Operation { |
| 243 | id: "list_outside_collaborators", |
| 244 | method: "GET", |
| 245 | path: "/workspaces/{workspace}/outside_collaborators", |
| 246 | tag: "Access", |
| 247 | summary: "List outside collaborators", |
| 248 | scope: Some("access:read"), |
| 249 | params: &[ |
| 250 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 251 | ], |
| 252 | body: &[], |
| 253 | }, |
| 254 | Operation { |
| 255 | id: "list_repo_invitations", |
| 256 | method: "GET", |
| 257 | path: "/repos/{owner}/{name}/invitations", |
| 258 | tag: "Access", |
| 259 | summary: "List a repository's invitations", |
| 260 | scope: Some("access:read"), |
| 261 | params: &[ |
| 262 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 263 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 264 | ], |
| 265 | body: &[], |
| 266 | }, |
| 267 | Operation { |
| 268 | id: "remove_collaborator", |
| 269 | method: "DELETE", |
| 270 | path: "/repos/{owner}/{name}/collaborators/{username}", |
| 271 | tag: "Access", |
| 272 | summary: "Remove a collaborator", |
| 273 | scope: Some("access:admin"), |
| 274 | params: &[ |
| 275 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 276 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 277 | Param { name: "username", location: In::Path, kind: "string", required: true, values: &[] }, |
| 278 | ], |
| 279 | body: &[], |
| 280 | }, |
| 281 | Operation { |
| 282 | id: "revoke_repo_invitation", |
| 283 | method: "DELETE", |
| 284 | path: "/repos/{owner}/{name}/invitations/{id}", |
| 285 | tag: "Access", |
| 286 | summary: "Revoke a repository invitation", |
| 287 | scope: Some("access:admin"), |
| 288 | params: &[ |
| 289 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 290 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 291 | Param { name: "id", location: In::Path, kind: "string", required: true, values: &[] }, |
| 292 | ], |
| 293 | body: &[], |
| 294 | }, |
| 295 | Operation { |
| 296 | id: "set_base_permission", |
| 297 | method: "PUT", |
| 298 | path: "/workspaces/{workspace}/base_permission", |
| 299 | tag: "Access", |
| 300 | summary: "Set the base permission", |
| 301 | scope: Some("access:admin"), |
| 302 | params: &[ |
| 303 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 304 | ], |
| 305 | body: &[ |
| 306 | Field { name: "base_permission", kind: "string", required: true, values: &["none", "read", "write", "admin"] }, |
| 307 | ], |
| 308 | }, |
| 309 | Operation { |
| 310 | id: "update_collaborator", |
| 311 | method: "PATCH", |
| 312 | path: "/repos/{owner}/{name}/collaborators/{username}", |
| 313 | tag: "Access", |
| 314 | summary: "Change a collaborator's role", |
| 315 | scope: Some("access:admin"), |
| 316 | params: &[ |
| 317 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 318 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 319 | Param { name: "username", location: In::Path, kind: "string", required: true, values: &[] }, |
| 320 | ], |
| 321 | body: &[ |
| 322 | Field { name: "role", kind: "string", required: true, values: &["read", "triage", "write", "maintain", "admin"] }, |
| 323 | ], |
| 324 | }, |
| 325 | Operation { |
| 326 | id: "add_email", |
| 327 | method: "POST", |
| 328 | path: "/user/emails", |
| 329 | tag: "Accounts", |
| 330 | summary: "Add an email address", |
| 331 | scope: Some("account:write"), |
| 332 | params: &[], |
| 333 | body: &[ |
| 334 | Field { name: "email", kind: "string", required: true, values: &[] }, |
| 335 | Field { name: "password", kind: "string", required: true, values: &[] }, |
| 336 | ], |
| 337 | }, |
| 338 | Operation { |
| 339 | id: "confirm_email", |
| 340 | method: "POST", |
| 341 | path: "/user/emails/confirm", |
| 342 | tag: "Accounts", |
| 343 | summary: "Confirm an email address", |
| 344 | scope: Some("account:write"), |
| 345 | params: &[], |
| 346 | body: &[ |
| 347 | Field { name: "code", kind: "string", required: true, values: &[] }, |
| 348 | ], |
| 349 | }, |
| 350 | Operation { |
| 351 | id: "device_code", |
| 352 | method: "POST", |
| 353 | path: "/device/code", |
| 354 | tag: "Accounts", |
| 355 | summary: "Start signing in", |
| 356 | scope: None, |
| 357 | params: &[], |
| 358 | body: &[ |
| 359 | Field { name: "client_name", kind: "string", required: false, values: &[] }, |
| 360 | ], |
| 361 | }, |
| 362 | Operation { |
| 363 | id: "device_token", |
| 364 | method: "POST", |
| 365 | path: "/device/token", |
| 366 | tag: "Accounts", |
| 367 | summary: "Finish signing in", |
| 368 | scope: None, |
| 369 | params: &[], |
| 370 | body: &[ |
| 371 | Field { name: "device_code", kind: "string", required: true, values: &[] }, |
| 372 | ], |
| 373 | }, |
| 374 | Operation { |
| 375 | id: "list_emails", |
| 376 | method: "GET", |
| 377 | path: "/user/emails", |
| 378 | tag: "Accounts", |
| 379 | summary: "List your email addresses", |
| 380 | scope: Some("account:read"), |
| 381 | params: &[], |
| 382 | body: &[], |
| 383 | }, |
| 384 | Operation { |
| 385 | id: "remove_email", |
| 386 | method: "DELETE", |
| 387 | path: "/user/emails/{email}", |
| 388 | tag: "Accounts", |
| 389 | summary: "Remove an email address", |
| 390 | scope: Some("account:write"), |
| 391 | params: &[ |
| 392 | Param { name: "email", location: In::Path, kind: "string", required: true, values: &[] }, |
| 393 | ], |
| 394 | body: &[ |
| 395 | Field { name: "password", kind: "string", required: true, values: &[] }, |
| 396 | ], |
| 397 | }, |
| 398 | Operation { |
| 399 | id: "update_email_settings", |
| 400 | method: "PATCH", |
| 401 | path: "/user/email-settings", |
| 402 | tag: "Accounts", |
| 403 | summary: "Change your email settings", |
| 404 | scope: Some("account:write"), |
| 405 | params: &[], |
| 406 | body: &[ |
| 407 | Field { name: "backup", kind: "string", required: false, values: &[] }, |
| 408 | Field { name: "block_private_pushes", kind: "boolean", required: false, values: &[] }, |
| 409 | Field { name: "password", kind: "string", required: false, values: &[] }, |
| 410 | Field { name: "primary", kind: "string", required: false, values: &[] }, |
| 411 | Field { name: "private_email", kind: "boolean", required: false, values: &[] }, |
| 412 | ], |
| 413 | }, |
| 414 | Operation { |
| 415 | id: "whoami", |
| 416 | method: "GET", |
| 417 | path: "/user", |
| 418 | tag: "Accounts", |
| 419 | summary: "Get the current user", |
| 420 | scope: None, |
| 421 | params: &[], |
| 422 | body: &[], |
| 423 | }, |
| 424 | Operation { |
| 425 | id: "cancel_workflow_run", |
| 426 | method: "POST", |
| 427 | path: "/repos/{owner}/{name}/actions/runs/{id}/cancel", |
| 428 | tag: "Actions", |
| 429 | summary: "Cancel a workflow run", |
| 430 | scope: Some("workflows:write"), |
| 431 | params: &[ |
| 432 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 433 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 434 | Param { name: "id", location: In::Path, kind: "string", required: true, values: &[] }, |
| 435 | ], |
| 436 | body: &[ |
| 437 | Field { name: "force", kind: "boolean", required: false, values: &[] }, |
| 438 | ], |
| 439 | }, |
| 440 | Operation { |
| 441 | id: "delete_artifact", |
| 442 | method: "DELETE", |
| 443 | path: "/repos/{owner}/{name}/actions/artifacts/{id}", |
| 444 | tag: "Actions", |
| 445 | summary: "Delete an artifact", |
| 446 | scope: Some("workflows:write"), |
| 447 | params: &[ |
| 448 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 449 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 450 | Param { name: "id", location: In::Path, kind: "integer", required: true, values: &[] }, |
| 451 | ], |
| 452 | body: &[], |
| 453 | }, |
| 454 | Operation { |
| 455 | id: "delete_cache", |
| 456 | method: "DELETE", |
| 457 | path: "/repos/{owner}/{name}/actions/caches/{id}", |
| 458 | tag: "Actions", |
| 459 | summary: "Delete a cache by id", |
| 460 | scope: Some("workflows:write"), |
| 461 | params: &[ |
| 462 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 463 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 464 | Param { name: "id", location: In::Path, kind: "integer", required: true, values: &[] }, |
| 465 | ], |
| 466 | body: &[], |
| 467 | }, |
| 468 | Operation { |
| 469 | id: "delete_caches_by_key", |
| 470 | method: "DELETE", |
| 471 | path: "/repos/{owner}/{name}/actions/caches", |
| 472 | tag: "Actions", |
| 473 | summary: "Delete caches by key", |
| 474 | scope: Some("workflows:write"), |
| 475 | params: &[ |
| 476 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 477 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 478 | ], |
| 479 | body: &[ |
| 480 | Field { name: "key", kind: "string", required: true, values: &[] }, |
| 481 | Field { name: "ref", kind: "string", required: false, values: &[] }, |
| 482 | ], |
| 483 | }, |
| 484 | Operation { |
| 485 | id: "disable_workflow", |
| 486 | method: "PUT", |
| 487 | path: "/repos/{owner}/{name}/actions/workflows/{workflow}/disable", |
| 488 | tag: "Actions", |
| 489 | summary: "Turn a workflow off", |
| 490 | scope: Some("workflows:write"), |
| 491 | params: &[ |
| 492 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 493 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 494 | Param { name: "workflow", location: In::Path, kind: "string", required: true, values: &[] }, |
| 495 | ], |
| 496 | body: &[ |
| 497 | Field { name: "enabled", kind: "boolean", required: true, values: &[] }, |
| 498 | ], |
| 499 | }, |
| 500 | Operation { |
| 501 | id: "dispatch_workflow", |
| 502 | method: "POST", |
| 503 | path: "/repos/{owner}/{name}/actions/workflows/{workflow}/dispatches", |
| 504 | tag: "Actions", |
| 505 | summary: "Run a workflow", |
| 506 | scope: Some("workflows:write"), |
| 507 | params: &[ |
| 508 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 509 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 510 | Param { name: "workflow", location: In::Path, kind: "string", required: true, values: &[] }, |
| 511 | ], |
| 512 | body: &[ |
| 513 | Field { name: "inputs", kind: "object", required: false, values: &[] }, |
| 514 | Field { name: "ref", kind: "string", required: false, values: &[] }, |
| 515 | ], |
| 516 | }, |
| 517 | Operation { |
| 518 | id: "download_artifact", |
| 519 | method: "GET", |
| 520 | path: "/repos/{owner}/{name}/actions/artifacts/{id}/zip", |
| 521 | tag: "Actions", |
| 522 | summary: "Download an artifact", |
| 523 | scope: Some("workflows:read"), |
| 524 | params: &[ |
| 525 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 526 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 527 | Param { name: "id", location: In::Path, kind: "integer", required: true, values: &[] }, |
| 528 | ], |
| 529 | body: &[], |
| 530 | }, |
| 531 | Operation { |
| 532 | id: "enable_workflow", |
| 533 | method: "PUT", |
| 534 | path: "/repos/{owner}/{name}/actions/workflows/{workflow}/enable", |
| 535 | tag: "Actions", |
| 536 | summary: "Turn a workflow on", |
| 537 | scope: Some("workflows:write"), |
| 538 | params: &[ |
| 539 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 540 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 541 | Param { name: "workflow", location: In::Path, kind: "string", required: true, values: &[] }, |
| 542 | ], |
| 543 | body: &[ |
| 544 | Field { name: "enabled", kind: "boolean", required: true, values: &[] }, |
| 545 | ], |
| 546 | }, |
| 547 | Operation { |
| 548 | id: "force_cancel_workflow_run", |
| 549 | method: "POST", |
| 550 | path: "/repos/{owner}/{name}/actions/runs/{id}/force-cancel", |
| 551 | tag: "Actions", |
| 552 | summary: "Force-cancel a workflow run", |
| 553 | scope: Some("workflows:write"), |
| 554 | params: &[ |
| 555 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 556 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 557 | Param { name: "id", location: In::Path, kind: "string", required: true, values: &[] }, |
| 558 | ], |
| 559 | body: &[ |
| 560 | Field { name: "force", kind: "boolean", required: false, values: &[] }, |
| 561 | ], |
| 562 | }, |
| 563 | Operation { |
| 564 | id: "get_artifact", |
| 565 | method: "GET", |
| 566 | path: "/repos/{owner}/{name}/actions/artifacts/{id}", |
| 567 | tag: "Actions", |
| 568 | summary: "Get an artifact", |
| 569 | scope: Some("workflows:read"), |
| 570 | params: &[ |
| 571 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 572 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 573 | Param { name: "id", location: In::Path, kind: "integer", required: true, values: &[] }, |
| 574 | ], |
| 575 | body: &[], |
| 576 | }, |
| 577 | Operation { |
| 578 | id: "get_artifact_retention", |
| 579 | method: "GET", |
| 580 | path: "/repos/{owner}/{name}/actions/permissions/artifact-and-log-retention", |
| 581 | tag: "Actions", |
| 582 | summary: "Get artifact retention", |
| 583 | scope: Some("workflows:read"), |
| 584 | params: &[ |
| 585 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 586 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 587 | ], |
| 588 | body: &[], |
| 589 | }, |
| 590 | Operation { |
| 591 | id: "get_cache_usage", |
| 592 | method: "GET", |
| 593 | path: "/repos/{owner}/{name}/actions/cache/usage", |
| 594 | tag: "Actions", |
| 595 | summary: "Get a repository's cache usage", |
| 596 | scope: Some("workflows:read"), |
| 597 | params: &[ |
| 598 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 599 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 600 | ], |
| 601 | body: &[], |
| 602 | }, |
| 603 | Operation { |
| 604 | id: "get_job_logs", |
| 605 | method: "GET", |
| 606 | path: "/repos/{owner}/{name}/actions/jobs/{job}/logs", |
| 607 | tag: "Actions", |
| 608 | summary: "Get a job's log", |
| 609 | scope: Some("workflows:read"), |
| 610 | params: &[ |
| 611 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 612 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 613 | Param { name: "job", location: In::Path, kind: "string", required: true, values: &[] }, |
| 614 | Param { name: "after", location: In::Query, kind: "integer", required: false, values: &[] }, |
| 615 | Param { name: "tail", location: In::Query, kind: "integer", required: false, values: &[] }, |
| 616 | ], |
| 617 | body: &[], |
| 618 | }, |
| 619 | Operation { |
| 620 | id: "get_workflow", |
| 621 | method: "GET", |
| 622 | path: "/repos/{owner}/{name}/actions/workflows/{workflow}", |
| 623 | tag: "Actions", |
| 624 | summary: "Get a workflow", |
| 625 | scope: Some("workflows:read"), |
| 626 | params: &[ |
| 627 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 628 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 629 | Param { name: "workflow", location: In::Path, kind: "string", required: true, values: &[] }, |
| 630 | Param { name: "ref", location: In::Query, kind: "string", required: false, values: &[] }, |
| 631 | ], |
| 632 | body: &[], |
| 633 | }, |
| 634 | Operation { |
| 635 | id: "get_workflow_run", |
| 636 | method: "GET", |
| 637 | path: "/repos/{owner}/{name}/actions/runs/{id}", |
| 638 | tag: "Actions", |
| 639 | summary: "Get a workflow run", |
| 640 | scope: Some("workflows:read"), |
| 641 | params: &[ |
| 642 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 643 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 644 | Param { name: "id", location: In::Path, kind: "string", required: true, values: &[] }, |
| 645 | ], |
| 646 | body: &[], |
| 647 | }, |
| 648 | Operation { |
| 649 | id: "get_workflow_run_attempt", |
| 650 | method: "GET", |
| 651 | path: "/repos/{owner}/{name}/actions/runs/{id}/attempts/{attempt}", |
| 652 | tag: "Actions", |
| 653 | summary: "Get a workflow run attempt", |
| 654 | scope: Some("workflows:read"), |
| 655 | params: &[ |
| 656 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 657 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 658 | Param { name: "id", location: In::Path, kind: "string", required: true, values: &[] }, |
| 659 | Param { name: "attempt", location: In::Path, kind: "integer", required: true, values: &[] }, |
| 660 | ], |
| 661 | body: &[], |
| 662 | }, |
| 663 | Operation { |
| 664 | id: "list_artifacts", |
| 665 | method: "GET", |
| 666 | path: "/repos/{owner}/{name}/actions/artifacts", |
| 667 | tag: "Actions", |
| 668 | summary: "List a repository's artifacts", |
| 669 | scope: Some("workflows:read"), |
| 670 | params: &[ |
| 671 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 672 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 673 | Param { name: "name", location: In::Query, kind: "string", required: false, values: &[] }, |
| 674 | Param { name: "page", location: In::Query, kind: "integer", required: false, values: &[] }, |
| 675 | Param { name: "per_page", location: In::Query, kind: "integer", required: false, values: &[] }, |
| 676 | ], |
| 677 | body: &[], |
| 678 | }, |
| 679 | Operation { |
| 680 | id: "list_caches", |
| 681 | method: "GET", |
| 682 | path: "/repos/{owner}/{name}/actions/caches", |
| 683 | tag: "Actions", |
| 684 | summary: "List a repository's caches", |
| 685 | scope: Some("workflows:read"), |
| 686 | params: &[ |
| 687 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 688 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 689 | Param { name: "key", location: In::Query, kind: "string", required: false, values: &[] }, |
| 690 | Param { name: "ref", location: In::Query, kind: "string", required: false, values: &[] }, |
| 691 | Param { name: "sort", location: In::Query, kind: "string", required: false, values: &["last_accessed_at", "created_at", "size_in_bytes"] }, |
| 692 | Param { name: "direction", location: In::Query, kind: "string", required: false, values: &["asc", "desc"] }, |
| 693 | Param { name: "page", location: In::Query, kind: "integer", required: false, values: &[] }, |
| 694 | Param { name: "per_page", location: In::Query, kind: "integer", required: false, values: &[] }, |
| 695 | ], |
| 696 | body: &[], |
| 697 | }, |
| 698 | Operation { |
| 699 | id: "list_runs_of_workflow", |
| 700 | method: "GET", |
| 701 | path: "/repos/{owner}/{name}/actions/workflows/{workflow}/runs", |
| 702 | tag: "Actions", |
| 703 | summary: "List a workflow's runs", |
| 704 | scope: Some("workflows:read"), |
| 705 | params: &[ |
| 706 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 707 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 708 | Param { name: "workflow", location: In::Path, kind: "string", required: true, values: &[] }, |
| 709 | Param { name: "branch", location: In::Query, kind: "string", required: false, values: &[] }, |
| 710 | Param { name: "event", location: In::Query, kind: "string", required: false, values: &[] }, |
| 711 | Param { name: "status", location: In::Query, kind: "string", required: false, values: &[] }, |
| 712 | Param { name: "head_sha", location: In::Query, kind: "string", required: false, values: &[] }, |
| 713 | Param { name: "since", location: In::Query, kind: "string", required: false, values: &[] }, |
| 714 | Param { name: "until", location: In::Query, kind: "string", required: false, values: &[] }, |
| 715 | Param { name: "per_page", location: In::Query, kind: "integer", required: false, values: &[] }, |
| 716 | ], |
| 717 | body: &[], |
| 718 | }, |
| 719 | Operation { |
| 720 | id: "list_workflow_run_artifacts", |
| 721 | method: "GET", |
| 722 | path: "/repos/{owner}/{name}/actions/runs/{id}/artifacts", |
| 723 | tag: "Actions", |
| 724 | summary: "List a workflow run's artifacts", |
| 725 | scope: Some("workflows:read"), |
| 726 | params: &[ |
| 727 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 728 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 729 | Param { name: "id", location: In::Path, kind: "string", required: true, values: &[] }, |
| 730 | Param { name: "name", location: In::Query, kind: "string", required: false, values: &[] }, |
| 731 | ], |
| 732 | body: &[], |
| 733 | }, |
| 734 | Operation { |
| 735 | id: "list_workflow_runs", |
| 736 | method: "GET", |
| 737 | path: "/repos/{owner}/{name}/actions/runs", |
| 738 | tag: "Actions", |
| 739 | summary: "List workflow runs", |
| 740 | scope: Some("workflows:read"), |
| 741 | params: &[ |
| 742 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 743 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 744 | Param { name: "workflow", location: In::Query, kind: "string", required: false, values: &[] }, |
| 745 | Param { name: "branch", location: In::Query, kind: "string", required: false, values: &[] }, |
| 746 | Param { name: "event", location: In::Query, kind: "string", required: false, values: &[] }, |
| 747 | Param { name: "pull", location: In::Query, kind: "integer", required: false, values: &[] }, |
| 748 | Param { name: "head_sha", location: In::Query, kind: "string", required: false, values: &[] }, |
| 749 | Param { name: "status", location: In::Query, kind: "string", required: false, values: &[] }, |
| 750 | Param { name: "since", location: In::Query, kind: "string", required: false, values: &[] }, |
| 751 | Param { name: "until", location: In::Query, kind: "string", required: false, values: &[] }, |
| 752 | Param { name: "per_page", location: In::Query, kind: "integer", required: false, values: &[] }, |
| 753 | ], |
| 754 | body: &[], |
| 755 | }, |
| 756 | Operation { |
| 757 | id: "list_workflows", |
| 758 | method: "GET", |
| 759 | path: "/repos/{owner}/{name}/actions/workflows", |
| 760 | tag: "Actions", |
| 761 | summary: "List workflows", |
| 762 | scope: Some("workflows:read"), |
| 763 | params: &[ |
| 764 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 765 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 766 | ], |
| 767 | body: &[], |
| 768 | }, |
| 769 | Operation { |
| 770 | id: "rerun_failed_jobs", |
| 771 | method: "POST", |
| 772 | path: "/repos/{owner}/{name}/actions/runs/{id}/rerun-failed-jobs", |
| 773 | tag: "Actions", |
| 774 | summary: "Re-run failed jobs", |
| 775 | scope: Some("workflows:write"), |
| 776 | params: &[ |
| 777 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 778 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 779 | Param { name: "id", location: In::Path, kind: "string", required: true, values: &[] }, |
| 780 | ], |
| 781 | body: &[ |
| 782 | Field { name: "debug", kind: "boolean", required: false, values: &[] }, |
| 783 | Field { name: "enable_debug_logging", kind: "boolean", required: false, values: &[] }, |
| 784 | Field { name: "failed_only", kind: "boolean", required: false, values: &[] }, |
| 785 | Field { name: "job", kind: "string", required: false, values: &[] }, |
| 786 | ], |
| 787 | }, |
| 788 | Operation { |
| 789 | id: "rerun_job", |
| 790 | method: "POST", |
| 791 | path: "/repos/{owner}/{name}/actions/jobs/{job}/rerun", |
| 792 | tag: "Actions", |
| 793 | summary: "Re-run a job", |
| 794 | scope: Some("workflows:write"), |
| 795 | params: &[ |
| 796 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 797 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 798 | Param { name: "job", location: In::Path, kind: "string", required: true, values: &[] }, |
| 799 | ], |
| 800 | body: &[ |
| 801 | Field { name: "debug", kind: "boolean", required: false, values: &[] }, |
| 802 | Field { name: "enable_debug_logging", kind: "boolean", required: false, values: &[] }, |
| 803 | Field { name: "failed_only", kind: "boolean", required: false, values: &[] }, |
| 804 | Field { name: "id", kind: "string", required: false, values: &[] }, |
| 805 | ], |
| 806 | }, |
| 807 | Operation { |
| 808 | id: "rerun_workflow_run", |
| 809 | method: "POST", |
| 810 | path: "/repos/{owner}/{name}/actions/runs/{id}/rerun", |
| 811 | tag: "Actions", |
| 812 | summary: "Re-run a workflow run", |
| 813 | scope: Some("workflows:write"), |
| 814 | params: &[ |
| 815 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 816 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 817 | Param { name: "id", location: In::Path, kind: "string", required: true, values: &[] }, |
| 818 | ], |
| 819 | body: &[ |
| 820 | Field { name: "debug", kind: "boolean", required: false, values: &[] }, |
| 821 | Field { name: "enable_debug_logging", kind: "boolean", required: false, values: &[] }, |
| 822 | Field { name: "failed_only", kind: "boolean", required: false, values: &[] }, |
| 823 | Field { name: "job", kind: "string", required: false, values: &[] }, |
| 824 | ], |
| 825 | }, |
| 826 | Operation { |
| 827 | id: "set_artifact_retention", |
| 828 | method: "PUT", |
| 829 | path: "/repos/{owner}/{name}/actions/permissions/artifact-and-log-retention", |
| 830 | tag: "Actions", |
| 831 | summary: "Set artifact retention", |
| 832 | scope: Some("workflows:write"), |
| 833 | params: &[ |
| 834 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 835 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 836 | ], |
| 837 | body: &[ |
| 838 | Field { name: "days", kind: "integer", required: true, values: &[] }, |
| 839 | ], |
| 840 | }, |
| 841 | Operation { |
| 842 | id: "update_workflow", |
| 843 | method: "PATCH", |
| 844 | path: "/repos/{owner}/{name}/actions/workflows/{workflow}", |
| 845 | tag: "Actions", |
| 846 | summary: "Turn a workflow on or off", |
| 847 | scope: Some("workflows:write"), |
| 848 | params: &[ |
| 849 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 850 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 851 | Param { name: "workflow", location: In::Path, kind: "string", required: true, values: &[] }, |
| 852 | ], |
| 853 | body: &[ |
| 854 | Field { name: "enabled", kind: "boolean", required: true, values: &[] }, |
| 855 | ], |
| 856 | }, |
| 857 | Operation { |
| 858 | id: "create_workspace_artifact", |
| 859 | method: "POST", |
| 860 | path: "/workspaces/{workspace}/artifacts", |
| 861 | tag: "Artifacts", |
| 862 | summary: "Create an artifact", |
| 863 | scope: Some("artifacts:write"), |
| 864 | params: &[ |
| 865 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 866 | ], |
| 867 | body: &[ |
| 868 | Field { name: "icon", kind: "string", required: false, values: &[] }, |
| 869 | Field { name: "kind", kind: "string", required: false, values: &["doc", "slides", "design", "dashboard"] }, |
| 870 | Field { name: "markdown", kind: "string", required: false, values: &[] }, |
| 871 | Field { name: "parent_id", kind: "string", required: false, values: &[] }, |
| 872 | Field { name: "space", kind: "string", required: false, values: &[] }, |
| 873 | Field { name: "template_id", kind: "string", required: false, values: &[] }, |
| 874 | Field { name: "title", kind: "string", required: false, values: &[] }, |
| 875 | ], |
| 876 | }, |
| 877 | Operation { |
| 878 | id: "edit_workspace_artifact", |
| 879 | method: "PUT", |
| 880 | path: "/workspaces/{workspace}/artifacts/{artifact_id}/content", |
| 881 | tag: "Artifacts", |
| 882 | summary: "Edit an artifact's content", |
| 883 | scope: Some("artifacts:write"), |
| 884 | params: &[ |
| 885 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 886 | Param { name: "artifact_id", location: In::Path, kind: "string", required: true, values: &[] }, |
| 887 | ], |
| 888 | body: &[ |
| 889 | Field { name: "kind", kind: "string", required: false, values: &["doc", "slides", "design", "dashboard"] }, |
| 890 | Field { name: "markdown", kind: "string", required: false, values: &[] }, |
| 891 | Field { name: "marks_current", kind: "boolean", required: false, values: &[] }, |
| 892 | Field { name: "note", kind: "string", required: false, values: &[] }, |
| 893 | Field { name: "ops", kind: "array", required: false, values: &[] }, |
| 894 | Field { name: "suggest_only", kind: "boolean", required: false, values: &[] }, |
| 895 | Field { name: "target", kind: "object", required: false, values: &[] }, |
| 896 | ], |
| 897 | }, |
| 898 | Operation { |
| 899 | id: "get_workspace_artifact", |
| 900 | method: "GET", |
| 901 | path: "/workspaces/{workspace}/artifacts/{artifact_id}", |
| 902 | tag: "Artifacts", |
| 903 | summary: "Get an artifact", |
| 904 | scope: Some("artifacts:read"), |
| 905 | params: &[ |
| 906 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 907 | Param { name: "artifact_id", location: In::Path, kind: "string", required: true, values: &[] }, |
| 908 | ], |
| 909 | body: &[], |
| 910 | }, |
| 911 | Operation { |
| 912 | id: "get_workspace_artifact_access", |
| 913 | method: "GET", |
| 914 | path: "/workspaces/{workspace}/artifacts/{artifact_id}/access", |
| 915 | tag: "Artifacts", |
| 916 | summary: "Get who can open an artifact", |
| 917 | scope: Some("artifacts:read"), |
| 918 | params: &[ |
| 919 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 920 | Param { name: "artifact_id", location: In::Path, kind: "string", required: true, values: &[] }, |
| 921 | ], |
| 922 | body: &[], |
| 923 | }, |
| 924 | Operation { |
| 925 | id: "get_workspace_artifact_content", |
| 926 | method: "GET", |
| 927 | path: "/workspaces/{workspace}/artifacts/{artifact_id}/content", |
| 928 | tag: "Artifacts", |
| 929 | summary: "Get an artifact's content", |
| 930 | scope: Some("artifacts:read"), |
| 931 | params: &[ |
| 932 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 933 | Param { name: "artifact_id", location: In::Path, kind: "string", required: true, values: &[] }, |
| 934 | ], |
| 935 | body: &[], |
| 936 | }, |
| 937 | Operation { |
| 938 | id: "list_workspace_artifact_spaces", |
| 939 | method: "GET", |
| 940 | path: "/workspaces/{workspace}/artifact-spaces", |
| 941 | tag: "Artifacts", |
| 942 | summary: "List artifact spaces", |
| 943 | scope: Some("artifacts:read"), |
| 944 | params: &[ |
| 945 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 946 | ], |
| 947 | body: &[], |
| 948 | }, |
| 949 | Operation { |
| 950 | id: "list_workspace_artifact_templates", |
| 951 | method: "GET", |
| 952 | path: "/workspaces/{workspace}/artifact-templates", |
| 953 | tag: "Artifacts", |
| 954 | summary: "List artifact templates", |
| 955 | scope: Some("artifacts:read"), |
| 956 | params: &[ |
| 957 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 958 | Param { name: "kind", location: In::Query, kind: "string", required: false, values: &["doc", "slides", "design", "dashboard"] }, |
| 959 | ], |
| 960 | body: &[], |
| 961 | }, |
| 962 | Operation { |
| 963 | id: "list_workspace_artifact_versions", |
| 964 | method: "GET", |
| 965 | path: "/workspaces/{workspace}/artifacts/{artifact_id}/versions", |
| 966 | tag: "Artifacts", |
| 967 | summary: "List an artifact's versions", |
| 968 | scope: Some("artifacts:read"), |
| 969 | params: &[ |
| 970 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 971 | Param { name: "artifact_id", location: In::Path, kind: "string", required: true, values: &[] }, |
| 972 | ], |
| 973 | body: &[], |
| 974 | }, |
| 975 | Operation { |
| 976 | id: "list_workspace_artifacts", |
| 977 | method: "GET", |
| 978 | path: "/workspaces/{workspace}/artifacts", |
| 979 | tag: "Artifacts", |
| 980 | summary: "List a workspace's artifacts", |
| 981 | scope: Some("artifacts:read"), |
| 982 | params: &[ |
| 983 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 984 | Param { name: "tab", location: In::Query, kind: "string", required: false, values: &["all", "yours", "shared"] }, |
| 985 | Param { name: "kind", location: In::Query, kind: "string", required: false, values: &["doc", "slides", "design", "dashboard"] }, |
| 986 | Param { name: "space", location: In::Query, kind: "string", required: false, values: &[] }, |
| 987 | Param { name: "project", location: In::Query, kind: "string", required: false, values: &[] }, |
| 988 | Param { name: "q", location: In::Query, kind: "string", required: false, values: &[] }, |
| 989 | Param { name: "state", location: In::Query, kind: "string", required: false, values: &["active", "trashed"] }, |
| 990 | Param { name: "cursor", location: In::Query, kind: "string", required: false, values: &[] }, |
| 991 | Param { name: "limit", location: In::Query, kind: "integer", required: false, values: &[] }, |
| 992 | ], |
| 993 | body: &[], |
| 994 | }, |
| 995 | Operation { |
| 996 | id: "purge_workspace_artifact", |
| 997 | method: "POST", |
| 998 | path: "/workspaces/{workspace}/artifacts/{artifact_id}/purge", |
| 999 | tag: "Artifacts", |
| 1000 | summary: "Delete an artifact for good", |
| 1001 | scope: Some("artifacts:admin"), |
| 1002 | params: &[ |
| 1003 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 1004 | Param { name: "artifact_id", location: In::Path, kind: "string", required: true, values: &[] }, |
| 1005 | ], |
| 1006 | body: &[], |
| 1007 | }, |
| 1008 | Operation { |
| 1009 | id: "query_workspace_dataset", |
| 1010 | method: "POST", |
| 1011 | path: "/workspaces/{workspace}/datasets/query", |
| 1012 | tag: "Artifacts", |
| 1013 | summary: "Query a dataset", |
| 1014 | scope: Some("artifacts:read"), |
| 1015 | params: &[ |
| 1016 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 1017 | ], |
| 1018 | body: &[ |
| 1019 | Field { name: "query", kind: "object", required: true, values: &[] }, |
| 1020 | ], |
| 1021 | }, |
| 1022 | Operation { |
| 1023 | id: "restore_workspace_artifact", |
| 1024 | method: "POST", |
| 1025 | path: "/workspaces/{workspace}/artifacts/{artifact_id}/restore", |
| 1026 | tag: "Artifacts", |
| 1027 | summary: "Restore an artifact from the trash", |
| 1028 | scope: Some("artifacts:write"), |
| 1029 | params: &[ |
| 1030 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 1031 | Param { name: "artifact_id", location: In::Path, kind: "string", required: true, values: &[] }, |
| 1032 | ], |
| 1033 | body: &[], |
| 1034 | }, |
| 1035 | Operation { |
| 1036 | id: "restore_workspace_artifact_version", |
| 1037 | method: "POST", |
| 1038 | path: "/workspaces/{workspace}/artifacts/{artifact_id}/versions/{version_id}/restore", |
| 1039 | tag: "Artifacts", |
| 1040 | summary: "Restore an artifact version", |
| 1041 | scope: Some("artifacts:write"), |
| 1042 | params: &[ |
| 1043 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 1044 | Param { name: "artifact_id", location: In::Path, kind: "string", required: true, values: &[] }, |
| 1045 | Param { name: "version_id", location: In::Path, kind: "string", required: true, values: &[] }, |
| 1046 | ], |
| 1047 | body: &[], |
| 1048 | }, |
| 1049 | Operation { |
| 1050 | id: "search_workspace_artifacts", |
| 1051 | method: "GET", |
| 1052 | path: "/workspaces/{workspace}/artifacts/search", |
| 1053 | tag: "Artifacts", |
| 1054 | summary: "Search a workspace's artifacts", |
| 1055 | scope: Some("artifacts:read"), |
| 1056 | params: &[ |
| 1057 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 1058 | Param { name: "q", location: In::Query, kind: "string", required: true, values: &[] }, |
| 1059 | Param { name: "kind", location: In::Query, kind: "string", required: false, values: &["doc", "slides", "design", "dashboard"] }, |
| 1060 | Param { name: "space", location: In::Query, kind: "string", required: false, values: &[] }, |
| 1061 | Param { name: "project", location: In::Query, kind: "string", required: false, values: &[] }, |
| 1062 | Param { name: "limit", location: In::Query, kind: "integer", required: false, values: &[] }, |
| 1063 | ], |
| 1064 | body: &[], |
| 1065 | }, |
| 1066 | Operation { |
| 1067 | id: "set_workspace_artifact_access", |
| 1068 | method: "PUT", |
| 1069 | path: "/workspaces/{workspace}/artifacts/{artifact_id}/access", |
| 1070 | tag: "Artifacts", |
| 1071 | summary: "Share an artifact", |
| 1072 | scope: Some("artifacts:admin"), |
| 1073 | params: &[ |
| 1074 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 1075 | Param { name: "artifact_id", location: In::Path, kind: "string", required: true, values: &[] }, |
| 1076 | ], |
| 1077 | body: &[ |
| 1078 | Field { name: "agent", kind: "string", required: false, values: &[] }, |
| 1079 | Field { name: "agent_mode", kind: "string", required: false, values: &["suggest", "edit"] }, |
| 1080 | Field { name: "general_access", kind: "string", required: false, values: &["none", "workspace", "link"] }, |
| 1081 | Field { name: "general_role", kind: "string", required: false, values: &["view", "comment", "edit"] }, |
| 1082 | Field { name: "inherit", kind: "boolean", required: false, values: &[] }, |
| 1083 | Field { name: "notify", kind: "string", required: false, values: &[] }, |
| 1084 | Field { name: "principal", kind: "string", required: false, values: &[] }, |
| 1085 | Field { name: "role", kind: "string", required: false, values: &["view", "comment", "edit", "manage", "none"] }, |
| 1086 | Field { name: "team", kind: "string", required: false, values: &[] }, |
| 1087 | Field { name: "username", kind: "string", required: false, values: &[] }, |
| 1088 | ], |
| 1089 | }, |
| 1090 | Operation { |
| 1091 | id: "trash_workspace_artifact", |
| 1092 | method: "DELETE", |
| 1093 | path: "/workspaces/{workspace}/artifacts/{artifact_id}", |
| 1094 | tag: "Artifacts", |
| 1095 | summary: "Move an artifact to the trash", |
| 1096 | scope: Some("artifacts:write"), |
| 1097 | params: &[ |
| 1098 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 1099 | Param { name: "artifact_id", location: In::Path, kind: "string", required: true, values: &[] }, |
| 1100 | ], |
| 1101 | body: &[], |
| 1102 | }, |
| 1103 | Operation { |
| 1104 | id: "update_workspace_artifact", |
| 1105 | method: "PATCH", |
| 1106 | path: "/workspaces/{workspace}/artifacts/{artifact_id}", |
| 1107 | tag: "Artifacts", |
| 1108 | summary: "Update an artifact", |
| 1109 | scope: Some("artifacts:write"), |
| 1110 | params: &[ |
| 1111 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 1112 | Param { name: "artifact_id", location: In::Path, kind: "string", required: true, values: &[] }, |
| 1113 | ], |
| 1114 | body: &[ |
| 1115 | Field { name: "before_id", kind: "string", required: false, values: &[] }, |
| 1116 | Field { name: "icon", kind: "string", required: false, values: &[] }, |
| 1117 | Field { name: "parent_id", kind: "string", required: false, values: &[] }, |
| 1118 | Field { name: "space", kind: "string", required: false, values: &[] }, |
| 1119 | Field { name: "title", kind: "string", required: false, values: &[] }, |
| 1120 | ], |
| 1121 | }, |
| 1122 | Operation { |
| 1123 | id: "get_billing_details", |
| 1124 | method: "GET", |
| 1125 | path: "/workspaces/{workspace}/billing_details", |
| 1126 | tag: "Billing", |
| 1127 | summary: "Get a workspace's billing details", |
| 1128 | scope: Some("billing:read"), |
| 1129 | params: &[ |
| 1130 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 1131 | ], |
| 1132 | body: &[], |
| 1133 | }, |
| 1134 | Operation { |
| 1135 | id: "get_budget", |
| 1136 | method: "GET", |
| 1137 | path: "/workspaces/{workspace}/budget", |
| 1138 | tag: "Billing", |
| 1139 | summary: "Get a workspace's budget", |
| 1140 | scope: Some("billing:read"), |
| 1141 | params: &[ |
| 1142 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 1143 | ], |
| 1144 | body: &[], |
| 1145 | }, |
| 1146 | Operation { |
| 1147 | id: "get_usage", |
| 1148 | method: "GET", |
| 1149 | path: "/workspaces/{workspace}/usage", |
| 1150 | tag: "Billing", |
| 1151 | summary: "Get a workspace's usage", |
| 1152 | scope: Some("billing:read"), |
| 1153 | params: &[ |
| 1154 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 1155 | Param { name: "from", location: In::Query, kind: "string", required: false, values: &[] }, |
| 1156 | Param { name: "until", location: In::Query, kind: "string", required: false, values: &[] }, |
| 1157 | Param { name: "products", location: In::Query, kind: "array", required: false, values: &[] }, |
| 1158 | Param { name: "projects", location: In::Query, kind: "array", required: false, values: &[] }, |
| 1159 | Param { name: "group_by", location: In::Query, kind: "string", required: false, values: &["product", "project", "day"] }, |
| 1160 | ], |
| 1161 | body: &[], |
| 1162 | }, |
| 1163 | Operation { |
| 1164 | id: "list_invoices", |
| 1165 | method: "GET", |
| 1166 | path: "/workspaces/{workspace}/invoices", |
| 1167 | tag: "Billing", |
| 1168 | summary: "List a workspace's invoices", |
| 1169 | scope: Some("billing:read"), |
| 1170 | params: &[ |
| 1171 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 1172 | ], |
| 1173 | body: &[], |
| 1174 | }, |
| 1175 | Operation { |
| 1176 | id: "set_budget", |
| 1177 | method: "PUT", |
| 1178 | path: "/workspaces/{workspace}/budget", |
| 1179 | tag: "Billing", |
| 1180 | summary: "Change a workspace's budget", |
| 1181 | scope: Some("billing:write"), |
| 1182 | params: &[ |
| 1183 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 1184 | ], |
| 1185 | body: &[ |
| 1186 | Field { name: "alerts", kind: "array", required: false, values: &[] }, |
| 1187 | Field { name: "amount_micros", kind: "integer", required: false, values: &[] }, |
| 1188 | Field { name: "pause_at_limit", kind: "boolean", required: false, values: &[] }, |
| 1189 | Field { name: "webhook", kind: "string", required: false, values: &[] }, |
| 1190 | ], |
| 1191 | }, |
| 1192 | Operation { |
| 1193 | id: "create_check_run", |
| 1194 | method: "POST", |
| 1195 | path: "/repos/{owner}/{name}/check-runs", |
| 1196 | tag: "Checks", |
| 1197 | summary: "Create a check run", |
| 1198 | scope: Some("checks:write"), |
| 1199 | params: &[ |
| 1200 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 1201 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 1202 | ], |
| 1203 | body: &[ |
| 1204 | Field { name: "actions", kind: "array", required: false, values: &[] }, |
| 1205 | Field { name: "app", kind: "string", required: false, values: &[] }, |
| 1206 | Field { name: "completed_at", kind: "string", required: false, values: &[] }, |
| 1207 | Field { name: "conclusion", kind: "string", required: false, values: &["success", "failure", "neutral", "cancelled", "skipped", "timed_out", "action_required"] }, |
| 1208 | Field { name: "details_url", kind: "string", required: false, values: &[] }, |
| 1209 | Field { name: "external_id", kind: "string", required: false, values: &[] }, |
| 1210 | Field { name: "head_sha", kind: "string", required: true, values: &[] }, |
| 1211 | Field { name: "name", kind: "string", required: true, values: &[] }, |
| 1212 | Field { name: "output", kind: "object", required: false, values: &[] }, |
| 1213 | Field { name: "started_at", kind: "string", required: false, values: &[] }, |
| 1214 | Field { name: "status", kind: "string", required: false, values: &["queued", "in_progress", "completed"] }, |
| 1215 | ], |
| 1216 | }, |
| 1217 | Operation { |
| 1218 | id: "create_commit_status", |
| 1219 | method: "POST", |
| 1220 | path: "/repos/{owner}/{name}/statuses/{sha}", |
| 1221 | tag: "Checks", |
| 1222 | summary: "Create a commit status", |
| 1223 | scope: Some("checks:write"), |
| 1224 | params: &[ |
| 1225 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 1226 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 1227 | Param { name: "sha", location: In::Path, kind: "string", required: true, values: &[] }, |
| 1228 | ], |
| 1229 | body: &[ |
| 1230 | Field { name: "context", kind: "string", required: false, values: &[] }, |
| 1231 | Field { name: "description", kind: "string", required: false, values: &[] }, |
| 1232 | Field { name: "state", kind: "string", required: true, values: &["pending", "success", "failure", "error"] }, |
| 1233 | Field { name: "target_url", kind: "string", required: false, values: &[] }, |
| 1234 | ], |
| 1235 | }, |
| 1236 | Operation { |
| 1237 | id: "get_check_run", |
| 1238 | method: "GET", |
| 1239 | path: "/repos/{owner}/{name}/check-runs/{id}", |
| 1240 | tag: "Checks", |
| 1241 | summary: "Get a check run", |
| 1242 | scope: Some("checks:read"), |
| 1243 | params: &[ |
| 1244 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 1245 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 1246 | Param { name: "id", location: In::Path, kind: "string", required: true, values: &[] }, |
| 1247 | ], |
| 1248 | body: &[], |
| 1249 | }, |
| 1250 | Operation { |
| 1251 | id: "get_check_suite", |
| 1252 | method: "GET", |
| 1253 | path: "/repos/{owner}/{name}/check-suites/{id}", |
| 1254 | tag: "Checks", |
| 1255 | summary: "Get a check suite", |
| 1256 | scope: Some("checks:read"), |
| 1257 | params: &[ |
| 1258 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 1259 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 1260 | Param { name: "id", location: In::Path, kind: "string", required: true, values: &[] }, |
| 1261 | ], |
| 1262 | body: &[], |
| 1263 | }, |
| 1264 | Operation { |
| 1265 | id: "get_combined_status", |
| 1266 | method: "GET", |
| 1267 | path: "/repos/{owner}/{name}/commits/{ref}/status", |
| 1268 | tag: "Checks", |
| 1269 | summary: "Get a commit's combined status", |
| 1270 | scope: Some("checks:read"), |
| 1271 | params: &[ |
| 1272 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 1273 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 1274 | Param { name: "ref", location: In::Path, kind: "string", required: true, values: &[] }, |
| 1275 | ], |
| 1276 | body: &[], |
| 1277 | }, |
| 1278 | Operation { |
| 1279 | id: "list_check_run_annotations", |
| 1280 | method: "GET", |
| 1281 | path: "/repos/{owner}/{name}/check-runs/{id}/annotations", |
| 1282 | tag: "Checks", |
| 1283 | summary: "List a check run's annotations", |
| 1284 | scope: Some("checks:read"), |
| 1285 | params: &[ |
| 1286 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 1287 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 1288 | Param { name: "id", location: In::Path, kind: "string", required: true, values: &[] }, |
| 1289 | ], |
| 1290 | body: &[], |
| 1291 | }, |
| 1292 | Operation { |
| 1293 | id: "list_check_runs_for_ref", |
| 1294 | method: "GET", |
| 1295 | path: "/repos/{owner}/{name}/commits/{ref}/check-runs", |
| 1296 | tag: "Checks", |
| 1297 | summary: "List a commit's check runs", |
| 1298 | scope: Some("checks:read"), |
| 1299 | params: &[ |
| 1300 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 1301 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 1302 | Param { name: "ref", location: In::Path, kind: "string", required: true, values: &[] }, |
| 1303 | Param { name: "check_name", location: In::Query, kind: "string", required: false, values: &[] }, |
| 1304 | Param { name: "status", location: In::Query, kind: "string", required: false, values: &["queued", "in_progress", "completed"] }, |
| 1305 | Param { name: "app", location: In::Query, kind: "string", required: false, values: &[] }, |
| 1306 | Param { name: "filter", location: In::Query, kind: "string", required: false, values: &["latest", "all"] }, |
| 1307 | ], |
| 1308 | body: &[], |
| 1309 | }, |
| 1310 | Operation { |
| 1311 | id: "list_check_suites_for_ref", |
| 1312 | method: "GET", |
| 1313 | path: "/repos/{owner}/{name}/commits/{ref}/check-suites", |
| 1314 | tag: "Checks", |
| 1315 | summary: "List a commit's check suites", |
| 1316 | scope: Some("checks:read"), |
| 1317 | params: &[ |
| 1318 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 1319 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 1320 | Param { name: "ref", location: In::Path, kind: "string", required: true, values: &[] }, |
| 1321 | Param { name: "app", location: In::Query, kind: "string", required: false, values: &[] }, |
| 1322 | Param { name: "check_name", location: In::Query, kind: "string", required: false, values: &[] }, |
| 1323 | ], |
| 1324 | body: &[], |
| 1325 | }, |
| 1326 | Operation { |
| 1327 | id: "list_commit_statuses", |
| 1328 | method: "GET", |
| 1329 | path: "/repos/{owner}/{name}/commits/{ref}/statuses", |
| 1330 | tag: "Checks", |
| 1331 | summary: "List a commit's statuses", |
| 1332 | scope: Some("checks:read"), |
| 1333 | params: &[ |
| 1334 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 1335 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 1336 | Param { name: "ref", location: In::Path, kind: "string", required: true, values: &[] }, |
| 1337 | ], |
| 1338 | body: &[], |
| 1339 | }, |
| 1340 | Operation { |
| 1341 | id: "rerequest_check_run", |
| 1342 | method: "POST", |
| 1343 | path: "/repos/{owner}/{name}/check-runs/{id}/rerequest", |
| 1344 | tag: "Checks", |
| 1345 | summary: "Rerequest a check run", |
| 1346 | scope: Some("checks:write"), |
| 1347 | params: &[ |
| 1348 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 1349 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 1350 | Param { name: "id", location: In::Path, kind: "string", required: true, values: &[] }, |
| 1351 | ], |
| 1352 | body: &[], |
| 1353 | }, |
| 1354 | Operation { |
| 1355 | id: "rerequest_check_suite", |
| 1356 | method: "POST", |
| 1357 | path: "/repos/{owner}/{name}/check-suites/{id}/rerequest", |
| 1358 | tag: "Checks", |
| 1359 | summary: "Rerequest a check suite", |
| 1360 | scope: Some("checks:write"), |
| 1361 | params: &[ |
| 1362 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 1363 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 1364 | Param { name: "id", location: In::Path, kind: "string", required: true, values: &[] }, |
| 1365 | ], |
| 1366 | body: &[], |
| 1367 | }, |
| 1368 | Operation { |
| 1369 | id: "update_check_run", |
| 1370 | method: "PATCH", |
| 1371 | path: "/repos/{owner}/{name}/check-runs/{id}", |
| 1372 | tag: "Checks", |
| 1373 | summary: "Update a check run", |
| 1374 | scope: Some("checks:write"), |
| 1375 | params: &[ |
| 1376 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 1377 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 1378 | Param { name: "id", location: In::Path, kind: "string", required: true, values: &[] }, |
| 1379 | ], |
| 1380 | body: &[ |
| 1381 | Field { name: "actions", kind: "array", required: false, values: &[] }, |
| 1382 | Field { name: "completed_at", kind: "string", required: false, values: &[] }, |
| 1383 | Field { name: "conclusion", kind: "string", required: false, values: &["success", "failure", "neutral", "cancelled", "skipped", "timed_out", "action_required"] }, |
| 1384 | Field { name: "details_url", kind: "string", required: false, values: &[] }, |
| 1385 | Field { name: "external_id", kind: "string", required: false, values: &[] }, |
| 1386 | Field { name: "name", kind: "string", required: false, values: &[] }, |
| 1387 | Field { name: "output", kind: "object", required: false, values: &[] }, |
| 1388 | Field { name: "started_at", kind: "string", required: false, values: &[] }, |
| 1389 | Field { name: "status", kind: "string", required: false, values: &["queued", "in_progress", "completed"] }, |
| 1390 | ], |
| 1391 | }, |
| 1392 | Operation { |
| 1393 | id: "claim_issue", |
| 1394 | method: "POST", |
| 1395 | path: "/repos/{owner}/{name}/issues/{number}/claim", |
| 1396 | tag: "Claims and work", |
| 1397 | summary: "Claim an issue", |
| 1398 | scope: Some("issues:write"), |
| 1399 | params: &[ |
| 1400 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 1401 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 1402 | Param { name: "number", location: In::Path, kind: "integer", required: true, values: &[] }, |
| 1403 | ], |
| 1404 | body: &[ |
| 1405 | Field { name: "body", kind: "string", required: false, values: &[] }, |
| 1406 | Field { name: "note", kind: "string", required: false, values: &[] }, |
| 1407 | Field { name: "session_id", kind: "string", required: false, values: &[] }, |
| 1408 | Field { name: "title", kind: "string", required: false, values: &[] }, |
| 1409 | Field { name: "ttl_minutes", kind: "integer", required: false, values: &[] }, |
| 1410 | ], |
| 1411 | }, |
| 1412 | Operation { |
| 1413 | id: "claim_new_issue", |
| 1414 | method: "POST", |
| 1415 | path: "/repos/{owner}/{name}/claims", |
| 1416 | tag: "Claims and work", |
| 1417 | summary: "Open an issue and claim it", |
| 1418 | scope: Some("issues:write"), |
| 1419 | params: &[ |
| 1420 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 1421 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 1422 | ], |
| 1423 | body: &[ |
| 1424 | Field { name: "body", kind: "string", required: false, values: &[] }, |
| 1425 | Field { name: "note", kind: "string", required: false, values: &[] }, |
| 1426 | Field { name: "number", kind: "integer", required: false, values: &[] }, |
| 1427 | Field { name: "session_id", kind: "string", required: false, values: &[] }, |
| 1428 | Field { name: "title", kind: "string", required: false, values: &[] }, |
| 1429 | Field { name: "ttl_minutes", kind: "integer", required: false, values: &[] }, |
| 1430 | ], |
| 1431 | }, |
| 1432 | Operation { |
| 1433 | id: "get_work", |
| 1434 | method: "GET", |
| 1435 | path: "/repos/{owner}/{name}/issues/{number}/work", |
| 1436 | tag: "Claims and work", |
| 1437 | summary: "Get an issue's work context", |
| 1438 | scope: Some("issues:read"), |
| 1439 | params: &[ |
| 1440 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 1441 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 1442 | Param { name: "number", location: In::Path, kind: "integer", required: true, values: &[] }, |
| 1443 | ], |
| 1444 | body: &[], |
| 1445 | }, |
| 1446 | Operation { |
| 1447 | id: "hand_off_issue", |
| 1448 | method: "POST", |
| 1449 | path: "/repos/{owner}/{name}/issues/{number}/handoff", |
| 1450 | tag: "Claims and work", |
| 1451 | summary: "Hand off an issue", |
| 1452 | scope: Some("issues:write"), |
| 1453 | params: &[ |
| 1454 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 1455 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 1456 | Param { name: "number", location: In::Path, kind: "integer", required: true, values: &[] }, |
| 1457 | ], |
| 1458 | body: &[ |
| 1459 | Field { name: "note", kind: "string", required: true, values: &[] }, |
| 1460 | Field { name: "session_id", kind: "string", required: false, values: &[] }, |
| 1461 | Field { name: "to", kind: "string", required: false, values: &[] }, |
| 1462 | ], |
| 1463 | }, |
| 1464 | Operation { |
| 1465 | id: "list_claims", |
| 1466 | method: "GET", |
| 1467 | path: "/repos/{owner}/{name}/claims", |
| 1468 | tag: "Claims and work", |
| 1469 | summary: "List claims", |
| 1470 | scope: Some("issues:read"), |
| 1471 | params: &[ |
| 1472 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 1473 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 1474 | Param { name: "state", location: In::Query, kind: "string", required: false, values: &["active", "released", "expired", "handed_off"] }, |
| 1475 | Param { name: "issue", location: In::Query, kind: "integer", required: false, values: &[] }, |
| 1476 | ], |
| 1477 | body: &[], |
| 1478 | }, |
| 1479 | Operation { |
| 1480 | id: "release_claim", |
| 1481 | method: "POST", |
| 1482 | path: "/repos/{owner}/{name}/issues/{number}/release", |
| 1483 | tag: "Claims and work", |
| 1484 | summary: "Release a claim", |
| 1485 | scope: Some("issues:write"), |
| 1486 | params: &[ |
| 1487 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 1488 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 1489 | Param { name: "number", location: In::Path, kind: "integer", required: true, values: &[] }, |
| 1490 | ], |
| 1491 | body: &[ |
| 1492 | Field { name: "reason", kind: "string", required: false, values: &[] }, |
| 1493 | Field { name: "session_id", kind: "string", required: false, values: &[] }, |
| 1494 | ], |
| 1495 | }, |
| 1496 | Operation { |
| 1497 | id: "get_code_scanning_alert", |
| 1498 | method: "GET", |
| 1499 | path: "/repos/{owner}/{name}/code-scanning/alerts/{number}", |
| 1500 | tag: "Code scanning", |
| 1501 | summary: "Get a code scanning alert", |
| 1502 | scope: Some("security:read"), |
| 1503 | params: &[ |
| 1504 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 1505 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 1506 | Param { name: "number", location: In::Path, kind: "integer", required: true, values: &[] }, |
| 1507 | ], |
| 1508 | body: &[], |
| 1509 | }, |
| 1510 | Operation { |
| 1511 | id: "get_sarif_upload", |
| 1512 | method: "GET", |
| 1513 | path: "/repos/{owner}/{name}/code-scanning/sarifs/{id}", |
| 1514 | tag: "Code scanning", |
| 1515 | summary: "Get a SARIF upload", |
| 1516 | scope: Some("security:read"), |
| 1517 | params: &[ |
| 1518 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 1519 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 1520 | Param { name: "id", location: In::Path, kind: "string", required: true, values: &[] }, |
| 1521 | ], |
| 1522 | body: &[], |
| 1523 | }, |
| 1524 | Operation { |
| 1525 | id: "list_code_scanning_alerts", |
| 1526 | method: "GET", |
| 1527 | path: "/repos/{owner}/{name}/code-scanning/alerts", |
| 1528 | tag: "Code scanning", |
| 1529 | summary: "List code scanning alerts", |
| 1530 | scope: Some("security:read"), |
| 1531 | params: &[ |
| 1532 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 1533 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 1534 | Param { name: "state", location: In::Query, kind: "string", required: false, values: &["open", "dismissed", "fixed"] }, |
| 1535 | Param { name: "severity", location: In::Query, kind: "string", required: false, values: &["critical", "high", "medium", "low", "unknown"] }, |
| 1536 | Param { name: "tool", location: In::Query, kind: "string", required: false, values: &[] }, |
| 1537 | Param { name: "rule_id", location: In::Query, kind: "string", required: false, values: &[] }, |
| 1538 | ], |
| 1539 | body: &[], |
| 1540 | }, |
| 1541 | Operation { |
| 1542 | id: "list_code_scanning_alerts_for_workspace", |
| 1543 | method: "GET", |
| 1544 | path: "/workspaces/{workspace}/code-scanning/alerts", |
| 1545 | tag: "Code scanning", |
| 1546 | summary: "List code scanning alerts for a workspace", |
| 1547 | scope: Some("security:read"), |
| 1548 | params: &[ |
| 1549 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 1550 | Param { name: "state", location: In::Query, kind: "string", required: false, values: &["open", "dismissed", "fixed"] }, |
| 1551 | Param { name: "severity", location: In::Query, kind: "string", required: false, values: &["critical", "high", "medium", "low", "unknown"] }, |
| 1552 | Param { name: "tool", location: In::Query, kind: "string", required: false, values: &[] }, |
| 1553 | Param { name: "rule_id", location: In::Query, kind: "string", required: false, values: &[] }, |
| 1554 | ], |
| 1555 | body: &[], |
| 1556 | }, |
| 1557 | Operation { |
| 1558 | id: "list_code_scanning_analyses", |
| 1559 | method: "GET", |
| 1560 | path: "/repos/{owner}/{name}/code-scanning/analyses", |
| 1561 | tag: "Code scanning", |
| 1562 | summary: "List code scanning analyses", |
| 1563 | scope: Some("security:read"), |
| 1564 | params: &[ |
| 1565 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 1566 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 1567 | ], |
| 1568 | body: &[], |
| 1569 | }, |
| 1570 | Operation { |
| 1571 | id: "update_code_scanning_alert", |
| 1572 | method: "PATCH", |
| 1573 | path: "/repos/{owner}/{name}/code-scanning/alerts/{number}", |
| 1574 | tag: "Code scanning", |
| 1575 | summary: "Dismiss or reopen a code scanning alert", |
| 1576 | scope: Some("security:write"), |
| 1577 | params: &[ |
| 1578 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 1579 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 1580 | Param { name: "number", location: In::Path, kind: "integer", required: true, values: &[] }, |
| 1581 | ], |
| 1582 | body: &[ |
| 1583 | Field { name: "dismissed_comment", kind: "string", required: false, values: &[] }, |
| 1584 | Field { name: "dismissed_reason", kind: "string", required: false, values: &["false_positive", "wont_fix", "used_in_tests"] }, |
| 1585 | Field { name: "state", kind: "string", required: true, values: &["open", "dismissed"] }, |
| 1586 | ], |
| 1587 | }, |
| 1588 | Operation { |
| 1589 | id: "upload_sarif", |
| 1590 | method: "POST", |
| 1591 | path: "/repos/{owner}/{name}/code-scanning/sarifs", |
| 1592 | tag: "Code scanning", |
| 1593 | summary: "Upload a SARIF file", |
| 1594 | scope: Some("security:write"), |
| 1595 | params: &[ |
| 1596 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 1597 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 1598 | ], |
| 1599 | body: &[ |
| 1600 | Field { name: "category", kind: "string", required: false, values: &[] }, |
| 1601 | Field { name: "checkout_uri", kind: "string", required: false, values: &[] }, |
| 1602 | Field { name: "commit_sha", kind: "string", required: true, values: &[] }, |
| 1603 | Field { name: "ref", kind: "string", required: true, values: &[] }, |
| 1604 | Field { name: "sarif", kind: "string", required: true, values: &[] }, |
| 1605 | Field { name: "tool_name", kind: "string", required: false, values: &[] }, |
| 1606 | ], |
| 1607 | }, |
| 1608 | Operation { |
| 1609 | id: "create_commit_comment", |
| 1610 | method: "POST", |
| 1611 | path: "/repos/{owner}/{name}/commits/{sha}/comments", |
| 1612 | tag: "Commit comments", |
| 1613 | summary: "Comment on a commit", |
| 1614 | scope: Some("issues:write"), |
| 1615 | params: &[ |
| 1616 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 1617 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 1618 | Param { name: "sha", location: In::Path, kind: "string", required: true, values: &[] }, |
| 1619 | ], |
| 1620 | body: &[ |
| 1621 | Field { name: "body", kind: "string", required: true, values: &[] }, |
| 1622 | Field { name: "line", kind: "integer", required: false, values: &[] }, |
| 1623 | Field { name: "path", kind: "string", required: false, values: &[] }, |
| 1624 | ], |
| 1625 | }, |
| 1626 | Operation { |
| 1627 | id: "delete_commit_comment", |
| 1628 | method: "DELETE", |
| 1629 | path: "/repos/{owner}/{name}/comments/{comment_id}", |
| 1630 | tag: "Commit comments", |
| 1631 | summary: "Delete a commit comment", |
| 1632 | scope: Some("issues:write"), |
| 1633 | params: &[ |
| 1634 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 1635 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 1636 | Param { name: "comment_id", location: In::Path, kind: "string", required: true, values: &[] }, |
| 1637 | ], |
| 1638 | body: &[], |
| 1639 | }, |
| 1640 | Operation { |
| 1641 | id: "list_commit_comments", |
| 1642 | method: "GET", |
| 1643 | path: "/repos/{owner}/{name}/commits/{sha}/comments", |
| 1644 | tag: "Commit comments", |
| 1645 | summary: "List a commit's comments", |
| 1646 | scope: Some("repo:read"), |
| 1647 | params: &[ |
| 1648 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 1649 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 1650 | Param { name: "sha", location: In::Path, kind: "string", required: true, values: &[] }, |
| 1651 | ], |
| 1652 | body: &[], |
| 1653 | }, |
| 1654 | Operation { |
| 1655 | id: "list_repo_commit_comments", |
| 1656 | method: "GET", |
| 1657 | path: "/repos/{owner}/{name}/comments", |
| 1658 | tag: "Commit comments", |
| 1659 | summary: "List a repository's commit comments", |
| 1660 | scope: Some("repo:read"), |
| 1661 | params: &[ |
| 1662 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 1663 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 1664 | Param { name: "page", location: In::Query, kind: "integer", required: false, values: &[] }, |
| 1665 | ], |
| 1666 | body: &[], |
| 1667 | }, |
| 1668 | Operation { |
| 1669 | id: "update_commit_comment", |
| 1670 | method: "PATCH", |
| 1671 | path: "/repos/{owner}/{name}/comments/{comment_id}", |
| 1672 | tag: "Commit comments", |
| 1673 | summary: "Edit a commit comment", |
| 1674 | scope: Some("issues:write"), |
| 1675 | params: &[ |
| 1676 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 1677 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 1678 | Param { name: "comment_id", location: In::Path, kind: "string", required: true, values: &[] }, |
| 1679 | ], |
| 1680 | body: &[ |
| 1681 | Field { name: "body", kind: "string", required: true, values: &[] }, |
| 1682 | ], |
| 1683 | }, |
| 1684 | Operation { |
| 1685 | id: "list_decisions", |
| 1686 | method: "GET", |
| 1687 | path: "/repos/{owner}/{name}/pulls/{number}/decisions", |
| 1688 | tag: "Decisions and why", |
| 1689 | summary: "List a pull request's decisions", |
| 1690 | scope: Some("pull_requests:read"), |
| 1691 | params: &[ |
| 1692 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 1693 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 1694 | Param { name: "number", location: In::Path, kind: "integer", required: true, values: &[] }, |
| 1695 | ], |
| 1696 | body: &[], |
| 1697 | }, |
| 1698 | Operation { |
| 1699 | id: "list_issue_decisions", |
| 1700 | method: "GET", |
| 1701 | path: "/repos/{owner}/{name}/issues/{number}/decisions", |
| 1702 | tag: "Decisions and why", |
| 1703 | summary: "List an issue's decisions", |
| 1704 | scope: Some("pull_requests:read"), |
| 1705 | params: &[ |
| 1706 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 1707 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 1708 | Param { name: "number", location: In::Path, kind: "integer", required: true, values: &[] }, |
| 1709 | ], |
| 1710 | body: &[], |
| 1711 | }, |
| 1712 | Operation { |
| 1713 | id: "record_decision", |
| 1714 | method: "POST", |
| 1715 | path: "/repos/{owner}/{name}/pulls/{number}/decisions", |
| 1716 | tag: "Decisions and why", |
| 1717 | summary: "Record a decision", |
| 1718 | scope: Some("pull_requests:write"), |
| 1719 | params: &[ |
| 1720 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 1721 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 1722 | Param { name: "number", location: In::Path, kind: "integer", required: true, values: &[] }, |
| 1723 | ], |
| 1724 | body: &[ |
| 1725 | Field { name: "evidence", kind: "object", required: false, values: &[] }, |
| 1726 | Field { name: "kind", kind: "string", required: true, values: &["proposal", "claim", "fix", "note"] }, |
| 1727 | Field { name: "session_id", kind: "string", required: false, values: &[] }, |
| 1728 | Field { name: "summary", kind: "string", required: true, values: &[] }, |
| 1729 | ], |
| 1730 | }, |
| 1731 | Operation { |
| 1732 | id: "why", |
| 1733 | method: "GET", |
| 1734 | path: "/repos/{owner}/{name}/why", |
| 1735 | tag: "Decisions and why", |
| 1736 | summary: "Explain a line", |
| 1737 | scope: Some("code:read"), |
| 1738 | params: &[ |
| 1739 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 1740 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 1741 | Param { name: "path", location: In::Query, kind: "string", required: true, values: &[] }, |
| 1742 | Param { name: "line", location: In::Query, kind: "integer", required: true, values: &[] }, |
| 1743 | Param { name: "ref", location: In::Query, kind: "string", required: false, values: &[] }, |
| 1744 | ], |
| 1745 | body: &[], |
| 1746 | }, |
| 1747 | Operation { |
| 1748 | id: "create_deployment", |
| 1749 | method: "POST", |
| 1750 | path: "/repos/{owner}/{name}/deployments", |
| 1751 | tag: "Deployments", |
| 1752 | summary: "Create a deployment", |
| 1753 | scope: Some("deployments:write"), |
| 1754 | params: &[ |
| 1755 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 1756 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 1757 | ], |
| 1758 | body: &[ |
| 1759 | Field { name: "description", kind: "string", required: false, values: &[] }, |
| 1760 | Field { name: "environment", kind: "string", required: false, values: &[] }, |
| 1761 | Field { name: "environment_url", kind: "string", required: false, values: &[] }, |
| 1762 | Field { name: "log_url", kind: "string", required: false, values: &[] }, |
| 1763 | Field { name: "payload", kind: "object", required: false, values: &[] }, |
| 1764 | Field { name: "production_environment", kind: "boolean", required: false, values: &[] }, |
| 1765 | Field { name: "ref", kind: "string", required: true, values: &[] }, |
| 1766 | Field { name: "sha", kind: "string", required: false, values: &[] }, |
| 1767 | Field { name: "state", kind: "string", required: false, values: &["queued", "in_progress", "success", "failure", "error", "inactive"] }, |
| 1768 | Field { name: "task", kind: "string", required: false, values: &[] }, |
| 1769 | Field { name: "transient_environment", kind: "boolean", required: false, values: &[] }, |
| 1770 | ], |
| 1771 | }, |
| 1772 | Operation { |
| 1773 | id: "create_deployment_status", |
| 1774 | method: "POST", |
| 1775 | path: "/repos/{owner}/{name}/deployments/{id}/statuses", |
| 1776 | tag: "Deployments", |
| 1777 | summary: "Create a deployment status", |
| 1778 | scope: Some("deployments:write"), |
| 1779 | params: &[ |
| 1780 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 1781 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 1782 | Param { name: "id", location: In::Path, kind: "string", required: true, values: &[] }, |
| 1783 | ], |
| 1784 | body: &[ |
| 1785 | Field { name: "auto_inactive", kind: "boolean", required: false, values: &[] }, |
| 1786 | Field { name: "description", kind: "string", required: false, values: &[] }, |
| 1787 | Field { name: "environment_url", kind: "string", required: false, values: &[] }, |
| 1788 | Field { name: "log_url", kind: "string", required: false, values: &[] }, |
| 1789 | Field { name: "state", kind: "string", required: true, values: &["queued", "in_progress", "success", "failure", "error", "inactive"] }, |
| 1790 | ], |
| 1791 | }, |
| 1792 | Operation { |
| 1793 | id: "get_deployment", |
| 1794 | method: "GET", |
| 1795 | path: "/repos/{owner}/{name}/deployments/{id}", |
| 1796 | tag: "Deployments", |
| 1797 | summary: "Get a deployment", |
| 1798 | scope: Some("deployments:read"), |
| 1799 | params: &[ |
| 1800 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 1801 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 1802 | Param { name: "id", location: In::Path, kind: "string", required: true, values: &[] }, |
| 1803 | ], |
| 1804 | body: &[], |
| 1805 | }, |
| 1806 | Operation { |
| 1807 | id: "get_environment", |
| 1808 | method: "GET", |
| 1809 | path: "/repos/{owner}/{name}/environments/{environment}", |
| 1810 | tag: "Deployments", |
| 1811 | summary: "Get an environment", |
| 1812 | scope: Some("deployments:read"), |
| 1813 | params: &[ |
| 1814 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 1815 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 1816 | Param { name: "environment", location: In::Path, kind: "string", required: true, values: &[] }, |
| 1817 | ], |
| 1818 | body: &[], |
| 1819 | }, |
| 1820 | Operation { |
| 1821 | id: "list_deployment_statuses", |
| 1822 | method: "GET", |
| 1823 | path: "/repos/{owner}/{name}/deployments/{id}/statuses", |
| 1824 | tag: "Deployments", |
| 1825 | summary: "List deployment statuses", |
| 1826 | scope: Some("deployments:read"), |
| 1827 | params: &[ |
| 1828 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 1829 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 1830 | Param { name: "id", location: In::Path, kind: "string", required: true, values: &[] }, |
| 1831 | ], |
| 1832 | body: &[], |
| 1833 | }, |
| 1834 | Operation { |
| 1835 | id: "list_deployments", |
| 1836 | method: "GET", |
| 1837 | path: "/repos/{owner}/{name}/deployments", |
| 1838 | tag: "Deployments", |
| 1839 | summary: "List deployments", |
| 1840 | scope: Some("deployments:read"), |
| 1841 | params: &[ |
| 1842 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 1843 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 1844 | Param { name: "environment", location: In::Query, kind: "string", required: false, values: &[] }, |
| 1845 | Param { name: "ref", location: In::Query, kind: "string", required: false, values: &[] }, |
| 1846 | Param { name: "sha", location: In::Query, kind: "string", required: false, values: &[] }, |
| 1847 | Param { name: "task", location: In::Query, kind: "string", required: false, values: &[] }, |
| 1848 | Param { name: "state", location: In::Query, kind: "string", required: false, values: &["queued", "in_progress", "success", "failure", "error", "inactive"] }, |
| 1849 | Param { name: "source", location: In::Query, kind: "string", required: false, values: &["api", "actions", "g1t_page"] }, |
| 1850 | Param { name: "creator", location: In::Query, kind: "string", required: false, values: &[] }, |
| 1851 | Param { name: "page", location: In::Query, kind: "integer", required: false, values: &[] }, |
| 1852 | Param { name: "per_page", location: In::Query, kind: "integer", required: false, values: &[] }, |
| 1853 | ], |
| 1854 | body: &[], |
| 1855 | }, |
| 1856 | Operation { |
| 1857 | id: "list_environments", |
| 1858 | method: "GET", |
| 1859 | path: "/repos/{owner}/{name}/environments", |
| 1860 | tag: "Deployments", |
| 1861 | summary: "List environments", |
| 1862 | scope: Some("deployments:read"), |
| 1863 | params: &[ |
| 1864 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 1865 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 1866 | ], |
| 1867 | body: &[], |
| 1868 | }, |
| 1869 | Operation { |
| 1870 | id: "start_deployment_build", |
| 1871 | method: "POST", |
| 1872 | path: "/repos/{owner}/{name}/deployments/builds", |
| 1873 | tag: "Deployments", |
| 1874 | summary: "Start a g1t.page build from a workflow", |
| 1875 | scope: Some("deployments:write"), |
| 1876 | params: &[ |
| 1877 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 1878 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 1879 | ], |
| 1880 | body: &[ |
| 1881 | Field { name: "project", kind: "string", required: false, values: &[] }, |
| 1882 | Field { name: "sha", kind: "string", required: false, values: &[] }, |
| 1883 | ], |
| 1884 | }, |
| 1885 | Operation { |
| 1886 | id: "connect_integration", |
| 1887 | method: "POST", |
| 1888 | path: "/workspaces/{workspace}/integrations", |
| 1889 | tag: "Integrations", |
| 1890 | summary: "Connect an integration", |
| 1891 | scope: Some("workspace:admin"), |
| 1892 | params: &[ |
| 1893 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 1894 | ], |
| 1895 | body: &[ |
| 1896 | Field { name: "config", kind: "object", required: false, values: &[] }, |
| 1897 | Field { name: "name", kind: "string", required: false, values: &[] }, |
| 1898 | Field { name: "provider", kind: "string", required: true, values: &["sentry", "datadog", "webhook", "jira", "linear"] }, |
| 1899 | Field { name: "secret", kind: "string", required: false, values: &[] }, |
| 1900 | Field { name: "signing_secret", kind: "string", required: false, values: &[] }, |
| 1901 | ], |
| 1902 | }, |
| 1903 | Operation { |
| 1904 | id: "disconnect_integration", |
| 1905 | method: "DELETE", |
| 1906 | path: "/workspaces/{workspace}/integrations/{id}", |
| 1907 | tag: "Integrations", |
| 1908 | summary: "Disconnect an integration", |
| 1909 | scope: Some("workspace:admin"), |
| 1910 | params: &[ |
| 1911 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 1912 | Param { name: "id", location: In::Path, kind: "string", required: true, values: &[] }, |
| 1913 | ], |
| 1914 | body: &[], |
| 1915 | }, |
| 1916 | Operation { |
| 1917 | id: "get_context", |
| 1918 | method: "GET", |
| 1919 | path: "/repos/{owner}/{name}/context", |
| 1920 | tag: "Integrations", |
| 1921 | summary: "Look up a ticket", |
| 1922 | scope: Some("issues:read"), |
| 1923 | params: &[ |
| 1924 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 1925 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 1926 | Param { name: "reference", location: In::Query, kind: "string", required: true, values: &[] }, |
| 1927 | ], |
| 1928 | body: &[], |
| 1929 | }, |
| 1930 | Operation { |
| 1931 | id: "import_issue", |
| 1932 | method: "POST", |
| 1933 | path: "/repos/{owner}/{name}/issues/import", |
| 1934 | tag: "Integrations", |
| 1935 | summary: "Import an issue", |
| 1936 | scope: Some("issues:write"), |
| 1937 | params: &[ |
| 1938 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 1939 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 1940 | ], |
| 1941 | body: &[ |
| 1942 | Field { name: "reference", kind: "string", required: true, values: &[] }, |
| 1943 | ], |
| 1944 | }, |
| 1945 | Operation { |
| 1946 | id: "list_integrations", |
| 1947 | method: "GET", |
| 1948 | path: "/workspaces/{workspace}/integrations", |
| 1949 | tag: "Integrations", |
| 1950 | summary: "List integrations", |
| 1951 | scope: Some("workspace:read"), |
| 1952 | params: &[ |
| 1953 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 1954 | ], |
| 1955 | body: &[], |
| 1956 | }, |
| 1957 | Operation { |
| 1958 | id: "test_integration", |
| 1959 | method: "POST", |
| 1960 | path: "/workspaces/{workspace}/integrations/{id}/test", |
| 1961 | tag: "Integrations", |
| 1962 | summary: "Test an integration", |
| 1963 | scope: Some("workspace:admin"), |
| 1964 | params: &[ |
| 1965 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 1966 | Param { name: "id", location: In::Path, kind: "string", required: true, values: &[] }, |
| 1967 | ], |
| 1968 | body: &[], |
| 1969 | }, |
| 1970 | Operation { |
| 1971 | id: "update_integration", |
| 1972 | method: "PATCH", |
| 1973 | path: "/workspaces/{workspace}/integrations/{id}", |
| 1974 | tag: "Integrations", |
| 1975 | summary: "Update an integration", |
| 1976 | scope: Some("workspace:admin"), |
| 1977 | params: &[ |
| 1978 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 1979 | Param { name: "id", location: In::Path, kind: "string", required: true, values: &[] }, |
| 1980 | ], |
| 1981 | body: &[ |
| 1982 | Field { name: "config", kind: "object", required: false, values: &[] }, |
| 1983 | Field { name: "name", kind: "string", required: false, values: &[] }, |
| 1984 | Field { name: "secret", kind: "string", required: false, values: &[] }, |
| 1985 | Field { name: "signing_secret", kind: "string", required: false, values: &[] }, |
| 1986 | ], |
| 1987 | }, |
| 1988 | Operation { |
| 1989 | id: "accept_invitation", |
| 1990 | method: "POST", |
| 1991 | path: "/user/invitations/{id}/accept", |
| 1992 | tag: "Invites", |
| 1993 | summary: "Accept a workspace invitation", |
| 1994 | scope: Some("account:write"), |
| 1995 | params: &[ |
| 1996 | Param { name: "id", location: In::Path, kind: "string", required: true, values: &[] }, |
| 1997 | ], |
| 1998 | body: &[], |
| 1999 | }, |
| 2000 | Operation { |
| 2001 | id: "create_invite", |
| 2002 | method: "POST", |
| 2003 | path: "/user/invites", |
| 2004 | tag: "Invites", |
| 2005 | summary: "Invite a friend to g1t", |
| 2006 | scope: Some("account:write"), |
| 2007 | params: &[], |
| 2008 | body: &[ |
| 2009 | Field { name: "email", kind: "string", required: true, values: &[] }, |
| 2010 | Field { name: "message", kind: "string", required: false, values: &[] }, |
| 2011 | Field { name: "role", kind: "string", required: false, values: &["member", "owner"] }, |
| 2012 | Field { name: "workspace", kind: "string", required: false, values: &[] }, |
| 2013 | ], |
| 2014 | }, |
| 2015 | Operation { |
| 2016 | id: "decline_invitation", |
| 2017 | method: "POST", |
| 2018 | path: "/user/invitations/{id}/decline", |
| 2019 | tag: "Invites", |
| 2020 | summary: "Decline a workspace invitation", |
| 2021 | scope: Some("account:write"), |
| 2022 | params: &[ |
| 2023 | Param { name: "id", location: In::Path, kind: "string", required: true, values: &[] }, |
| 2024 | ], |
| 2025 | body: &[], |
| 2026 | }, |
| 2027 | Operation { |
| 2028 | id: "invite_member", |
| 2029 | method: "POST", |
| 2030 | path: "/workspaces/{workspace}/invitations", |
| 2031 | tag: "Invites", |
| 2032 | summary: "Invite someone to a workspace", |
| 2033 | scope: Some("workspace:admin"), |
| 2034 | params: &[ |
| 2035 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 2036 | ], |
| 2037 | body: &[ |
| 2038 | Field { name: "email", kind: "string", required: false, values: &[] }, |
| 2039 | Field { name: "role", kind: "string", required: false, values: &["member", "owner"] }, |
| 2040 | Field { name: "username", kind: "string", required: false, values: &[] }, |
| 2041 | ], |
| 2042 | }, |
| 2043 | Operation { |
| 2044 | id: "list_invitations", |
| 2045 | method: "GET", |
| 2046 | path: "/user/invitations", |
| 2047 | tag: "Invites", |
| 2048 | summary: "List your workspace invitations", |
| 2049 | scope: Some("account:read"), |
| 2050 | params: &[], |
| 2051 | body: &[], |
| 2052 | }, |
| 2053 | Operation { |
| 2054 | id: "list_invites", |
| 2055 | method: "GET", |
| 2056 | path: "/user/invites", |
| 2057 | tag: "Invites", |
| 2058 | summary: "List your invites to g1t", |
| 2059 | scope: Some("account:read"), |
| 2060 | params: &[], |
| 2061 | body: &[], |
| 2062 | }, |
| 2063 | Operation { |
| 2064 | id: "list_workspace_invites", |
| 2065 | method: "GET", |
| 2066 | path: "/workspaces/{workspace}/invitations", |
| 2067 | tag: "Invites", |
| 2068 | summary: "List a workspace's invites", |
| 2069 | scope: Some("workspace:read"), |
| 2070 | params: &[ |
| 2071 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 2072 | ], |
| 2073 | body: &[], |
| 2074 | }, |
| 2075 | Operation { |
| 2076 | id: "resend_invite", |
| 2077 | method: "POST", |
| 2078 | path: "/user/invites/{id}/resend", |
| 2079 | tag: "Invites", |
| 2080 | summary: "Send an invite to g1t again", |
| 2081 | scope: Some("account:write"), |
| 2082 | params: &[ |
| 2083 | Param { name: "id", location: In::Path, kind: "string", required: true, values: &[] }, |
| 2084 | ], |
| 2085 | body: &[], |
| 2086 | }, |
| 2087 | Operation { |
| 2088 | id: "revoke_invite", |
| 2089 | method: "DELETE", |
| 2090 | path: "/user/invites/{id}", |
| 2091 | tag: "Invites", |
| 2092 | summary: "Revoke an invite to g1t", |
| 2093 | scope: Some("account:write"), |
| 2094 | params: &[ |
| 2095 | Param { name: "id", location: In::Path, kind: "string", required: true, values: &[] }, |
| 2096 | ], |
| 2097 | body: &[], |
| 2098 | }, |
| 2099 | Operation { |
| 2100 | id: "revoke_workspace_invite", |
| 2101 | method: "DELETE", |
| 2102 | path: "/workspaces/{workspace}/invitations/{id}", |
| 2103 | tag: "Invites", |
| 2104 | summary: "Revoke a workspace's invite", |
| 2105 | scope: Some("workspace:admin"), |
| 2106 | params: &[ |
| 2107 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 2108 | Param { name: "id", location: In::Path, kind: "string", required: true, values: &[] }, |
| 2109 | ], |
| 2110 | body: &[], |
| 2111 | }, |
| 2112 | Operation { |
| 2113 | id: "add_comment", |
| 2114 | method: "POST", |
| 2115 | path: "/repos/{owner}/{name}/issues/{number}/comments", |
| 2116 | tag: "Issues", |
| 2117 | summary: "Add a comment", |
| 2118 | scope: Some("issues:write"), |
| 2119 | params: &[ |
| 2120 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 2121 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 2122 | Param { name: "number", location: In::Path, kind: "integer", required: true, values: &[] }, |
| 2123 | ], |
| 2124 | body: &[ |
| 2125 | Field { name: "body", kind: "string", required: true, values: &[] }, |
| 2126 | Field { name: "line", kind: "integer", required: false, values: &[] }, |
| 2127 | Field { name: "path", kind: "string", required: false, values: &[] }, |
| 2128 | ], |
| 2129 | }, |
| 2130 | Operation { |
| 2131 | id: "add_issue_labels", |
| 2132 | method: "POST", |
| 2133 | path: "/repos/{owner}/{name}/issues/{number}/labels", |
| 2134 | tag: "Issues", |
| 2135 | summary: "Add labels to an issue", |
| 2136 | scope: Some("issues:write"), |
| 2137 | params: &[ |
| 2138 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 2139 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 2140 | Param { name: "number", location: In::Path, kind: "integer", required: true, values: &[] }, |
| 2141 | ], |
| 2142 | body: &[ |
| 2143 | Field { name: "labels", kind: "array", required: true, values: &[] }, |
| 2144 | ], |
| 2145 | }, |
| 2146 | Operation { |
| 2147 | id: "close_issue", |
| 2148 | method: "POST", |
| 2149 | path: "/repos/{owner}/{name}/issues/{number}/close", |
| 2150 | tag: "Issues", |
| 2151 | summary: "Close an issue", |
| 2152 | scope: Some("issues:write"), |
| 2153 | params: &[ |
| 2154 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 2155 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 2156 | Param { name: "number", location: In::Path, kind: "integer", required: true, values: &[] }, |
| 2157 | ], |
| 2158 | body: &[ |
| 2159 | Field { name: "reason", kind: "string", required: false, values: &["completed", "not_planned"] }, |
| 2160 | ], |
| 2161 | }, |
| 2162 | Operation { |
| 2163 | id: "create_issue", |
| 2164 | method: "POST", |
| 2165 | path: "/repos/{owner}/{name}/issues", |
| 2166 | tag: "Issues", |
| 2167 | summary: "Create an issue", |
| 2168 | scope: Some("issues:write"), |
| 2169 | params: &[ |
| 2170 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 2171 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 2172 | ], |
| 2173 | body: &[ |
| 2174 | Field { name: "body", kind: "string", required: false, values: &[] }, |
| 2175 | Field { name: "checks", kind: "array", required: false, values: &[] }, |
| 2176 | Field { name: "labels", kind: "array", required: false, values: &[] }, |
| 2177 | Field { name: "milestone", kind: "integer", required: false, values: &[] }, |
| 2178 | Field { name: "title", kind: "string", required: true, values: &[] }, |
| 2179 | ], |
| 2180 | }, |
| 2181 | Operation { |
| 2182 | id: "delete_comment", |
| 2183 | method: "DELETE", |
| 2184 | path: "/repos/{owner}/{name}/issues/comments/{comment_id}", |
| 2185 | tag: "Issues", |
| 2186 | summary: "Delete a comment", |
| 2187 | scope: Some("issues:write"), |
| 2188 | params: &[ |
| 2189 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 2190 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 2191 | Param { name: "comment_id", location: In::Path, kind: "string", required: true, values: &[] }, |
| 2192 | ], |
| 2193 | body: &[], |
| 2194 | }, |
| 2195 | Operation { |
| 2196 | id: "edit_comment", |
| 2197 | method: "PATCH", |
| 2198 | path: "/repos/{owner}/{name}/issues/comments/{comment_id}", |
| 2199 | tag: "Issues", |
| 2200 | summary: "Edit a comment", |
| 2201 | scope: Some("issues:write"), |
| 2202 | params: &[ |
| 2203 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 2204 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 2205 | Param { name: "comment_id", location: In::Path, kind: "string", required: true, values: &[] }, |
| 2206 | ], |
| 2207 | body: &[ |
| 2208 | Field { name: "body", kind: "string", required: true, values: &[] }, |
| 2209 | ], |
| 2210 | }, |
| 2211 | Operation { |
| 2212 | id: "get_issue", |
| 2213 | method: "GET", |
| 2214 | path: "/repos/{owner}/{name}/issues/{number}", |
| 2215 | tag: "Issues", |
| 2216 | summary: "Get an issue", |
| 2217 | scope: Some("issues:read"), |
| 2218 | params: &[ |
| 2219 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 2220 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 2221 | Param { name: "number", location: In::Path, kind: "integer", required: true, values: &[] }, |
| 2222 | ], |
| 2223 | body: &[], |
| 2224 | }, |
| 2225 | Operation { |
| 2226 | id: "list_issue_labels", |
| 2227 | method: "GET", |
| 2228 | path: "/repos/{owner}/{name}/issues/{number}/labels", |
| 2229 | tag: "Issues", |
| 2230 | summary: "List an issue's labels", |
| 2231 | scope: Some("issues:read"), |
| 2232 | params: &[ |
| 2233 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 2234 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 2235 | Param { name: "number", location: In::Path, kind: "integer", required: true, values: &[] }, |
| 2236 | ], |
| 2237 | body: &[], |
| 2238 | }, |
| 2239 | Operation { |
| 2240 | id: "list_issues", |
| 2241 | method: "GET", |
| 2242 | path: "/repos/{owner}/{name}/issues", |
| 2243 | tag: "Issues", |
| 2244 | summary: "List issues", |
| 2245 | scope: Some("issues:read"), |
| 2246 | params: &[ |
| 2247 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 2248 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 2249 | Param { name: "state", location: In::Query, kind: "string", required: false, values: &["open", "closed"] }, |
| 2250 | Param { name: "label", location: In::Query, kind: "string", required: false, values: &[] }, |
| 2251 | Param { name: "milestone", location: In::Query, kind: "integer", required: false, values: &[] }, |
| 2252 | ], |
| 2253 | body: &[], |
| 2254 | }, |
| 2255 | Operation { |
| 2256 | id: "remove_issue_label", |
| 2257 | method: "DELETE", |
| 2258 | path: "/repos/{owner}/{name}/issues/{number}/labels/{label}", |
| 2259 | tag: "Issues", |
| 2260 | summary: "Remove labels from an issue", |
| 2261 | scope: Some("issues:write"), |
| 2262 | params: &[ |
| 2263 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 2264 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 2265 | Param { name: "number", location: In::Path, kind: "integer", required: true, values: &[] }, |
| 2266 | Param { name: "label", location: In::Path, kind: "string", required: true, values: &[] }, |
| 2267 | ], |
| 2268 | body: &[ |
| 2269 | Field { name: "labels", kind: "array", required: false, values: &[] }, |
| 2270 | ], |
| 2271 | }, |
| 2272 | Operation { |
| 2273 | id: "remove_issue_labels", |
| 2274 | method: "DELETE", |
| 2275 | path: "/repos/{owner}/{name}/issues/{number}/labels", |
| 2276 | tag: "Issues", |
| 2277 | summary: "Remove labels from an issue", |
| 2278 | scope: Some("issues:write"), |
| 2279 | params: &[ |
| 2280 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 2281 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 2282 | Param { name: "number", location: In::Path, kind: "integer", required: true, values: &[] }, |
| 2283 | ], |
| 2284 | body: &[ |
| 2285 | Field { name: "label", kind: "string", required: false, values: &[] }, |
| 2286 | Field { name: "labels", kind: "array", required: false, values: &[] }, |
| 2287 | ], |
| 2288 | }, |
| 2289 | Operation { |
| 2290 | id: "reopen_issue", |
| 2291 | method: "POST", |
| 2292 | path: "/repos/{owner}/{name}/issues/{number}/reopen", |
| 2293 | tag: "Issues", |
| 2294 | summary: "Reopen an issue", |
| 2295 | scope: Some("issues:write"), |
| 2296 | params: &[ |
| 2297 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 2298 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 2299 | Param { name: "number", location: In::Path, kind: "integer", required: true, values: &[] }, |
| 2300 | ], |
| 2301 | body: &[], |
| 2302 | }, |
| 2303 | Operation { |
| 2304 | id: "set_issue_labels", |
| 2305 | method: "PUT", |
| 2306 | path: "/repos/{owner}/{name}/issues/{number}/labels", |
| 2307 | tag: "Issues", |
| 2308 | summary: "Set an issue's labels", |
| 2309 | scope: Some("issues:write"), |
| 2310 | params: &[ |
| 2311 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 2312 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 2313 | Param { name: "number", location: In::Path, kind: "integer", required: true, values: &[] }, |
| 2314 | ], |
| 2315 | body: &[ |
| 2316 | Field { name: "labels", kind: "array", required: true, values: &[] }, |
| 2317 | ], |
| 2318 | }, |
| 2319 | Operation { |
| 2320 | id: "update_issue", |
| 2321 | method: "PATCH", |
| 2322 | path: "/repos/{owner}/{name}/issues/{number}", |
| 2323 | tag: "Issues", |
| 2324 | summary: "Update an issue", |
| 2325 | scope: Some("issues:write"), |
| 2326 | params: &[ |
| 2327 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 2328 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 2329 | Param { name: "number", location: In::Path, kind: "integer", required: true, values: &[] }, |
| 2330 | ], |
| 2331 | body: &[ |
| 2332 | Field { name: "assignees", kind: "array", required: false, values: &[] }, |
| 2333 | Field { name: "blocked_by", kind: "array", required: false, values: &[] }, |
| 2334 | Field { name: "body", kind: "string", required: false, values: &[] }, |
| 2335 | Field { name: "labels", kind: "array", required: false, values: &[] }, |
| 2336 | Field { name: "milestone", kind: "integer", required: false, values: &[] }, |
| 2337 | Field { name: "title", kind: "string", required: false, values: &[] }, |
| 2338 | ], |
| 2339 | }, |
| 2340 | Operation { |
| 2341 | id: "add_default_labels", |
| 2342 | method: "POST", |
| 2343 | path: "/repos/{owner}/{name}/labels/defaults", |
| 2344 | tag: "Labels and milestones", |
| 2345 | summary: "Add the default labels", |
| 2346 | scope: Some("issues:write"), |
| 2347 | params: &[ |
| 2348 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 2349 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 2350 | ], |
| 2351 | body: &[], |
| 2352 | }, |
| 2353 | Operation { |
| 2354 | id: "create_label", |
| 2355 | method: "POST", |
| 2356 | path: "/repos/{owner}/{name}/labels", |
| 2357 | tag: "Labels and milestones", |
| 2358 | summary: "Create a label", |
| 2359 | scope: Some("issues:write"), |
| 2360 | params: &[ |
| 2361 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 2362 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 2363 | ], |
| 2364 | body: &[ |
| 2365 | Field { name: "color", kind: "string", required: false, values: &[] }, |
| 2366 | Field { name: "description", kind: "string", required: false, values: &[] }, |
| 2367 | Field { name: "label", kind: "string", required: true, values: &[] }, |
| 2368 | ], |
| 2369 | }, |
| 2370 | Operation { |
| 2371 | id: "create_milestone", |
| 2372 | method: "POST", |
| 2373 | path: "/repos/{owner}/{name}/milestones", |
| 2374 | tag: "Labels and milestones", |
| 2375 | summary: "Create a milestone", |
| 2376 | scope: Some("issues:write"), |
| 2377 | params: &[ |
| 2378 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 2379 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 2380 | ], |
| 2381 | body: &[ |
| 2382 | Field { name: "description", kind: "string", required: false, values: &[] }, |
| 2383 | Field { name: "due_on", kind: "string", required: false, values: &[] }, |
| 2384 | Field { name: "state", kind: "string", required: false, values: &["open", "closed"] }, |
| 2385 | Field { name: "title", kind: "string", required: true, values: &[] }, |
| 2386 | ], |
| 2387 | }, |
| 2388 | Operation { |
| 2389 | id: "delete_label", |
| 2390 | method: "DELETE", |
| 2391 | path: "/repos/{owner}/{name}/labels/{label}", |
| 2392 | tag: "Labels and milestones", |
| 2393 | summary: "Delete a label", |
| 2394 | scope: Some("issues:write"), |
| 2395 | params: &[ |
| 2396 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 2397 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 2398 | Param { name: "label", location: In::Path, kind: "string", required: true, values: &[] }, |
| 2399 | ], |
| 2400 | body: &[], |
| 2401 | }, |
| 2402 | Operation { |
| 2403 | id: "delete_milestone", |
| 2404 | method: "DELETE", |
| 2405 | path: "/repos/{owner}/{name}/milestones/{milestone}", |
| 2406 | tag: "Labels and milestones", |
| 2407 | summary: "Delete a milestone", |
| 2408 | scope: Some("issues:write"), |
| 2409 | params: &[ |
| 2410 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 2411 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 2412 | Param { name: "milestone", location: In::Path, kind: "integer", required: true, values: &[] }, |
| 2413 | ], |
| 2414 | body: &[], |
| 2415 | }, |
| 2416 | Operation { |
| 2417 | id: "get_milestone", |
| 2418 | method: "GET", |
| 2419 | path: "/repos/{owner}/{name}/milestones/{milestone}", |
| 2420 | tag: "Labels and milestones", |
| 2421 | summary: "Get a milestone", |
| 2422 | scope: Some("repo:read"), |
| 2423 | params: &[ |
| 2424 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 2425 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 2426 | Param { name: "milestone", location: In::Path, kind: "integer", required: true, values: &[] }, |
| 2427 | ], |
| 2428 | body: &[], |
| 2429 | }, |
| 2430 | Operation { |
| 2431 | id: "list_labels", |
| 2432 | method: "GET", |
| 2433 | path: "/repos/{owner}/{name}/labels", |
| 2434 | tag: "Labels and milestones", |
| 2435 | summary: "List labels", |
| 2436 | scope: Some("repo:read"), |
| 2437 | params: &[ |
| 2438 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 2439 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 2440 | ], |
| 2441 | body: &[], |
| 2442 | }, |
| 2443 | Operation { |
| 2444 | id: "list_milestones", |
| 2445 | method: "GET", |
| 2446 | path: "/repos/{owner}/{name}/milestones", |
| 2447 | tag: "Labels and milestones", |
| 2448 | summary: "List milestones", |
| 2449 | scope: Some("repo:read"), |
| 2450 | params: &[ |
| 2451 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 2452 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 2453 | Param { name: "state", location: In::Query, kind: "string", required: false, values: &["open", "closed"] }, |
| 2454 | ], |
| 2455 | body: &[], |
| 2456 | }, |
| 2457 | Operation { |
| 2458 | id: "update_label", |
| 2459 | method: "PATCH", |
| 2460 | path: "/repos/{owner}/{name}/labels/{label}", |
| 2461 | tag: "Labels and milestones", |
| 2462 | summary: "Update a label", |
| 2463 | scope: Some("issues:write"), |
| 2464 | params: &[ |
| 2465 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 2466 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 2467 | Param { name: "label", location: In::Path, kind: "string", required: true, values: &[] }, |
| 2468 | ], |
| 2469 | body: &[ |
| 2470 | Field { name: "color", kind: "string", required: false, values: &[] }, |
| 2471 | Field { name: "description", kind: "string", required: false, values: &[] }, |
| 2472 | Field { name: "new_name", kind: "string", required: false, values: &[] }, |
| 2473 | ], |
| 2474 | }, |
| 2475 | Operation { |
| 2476 | id: "update_milestone", |
| 2477 | method: "PATCH", |
| 2478 | path: "/repos/{owner}/{name}/milestones/{milestone}", |
| 2479 | tag: "Labels and milestones", |
| 2480 | summary: "Update a milestone", |
| 2481 | scope: Some("issues:write"), |
| 2482 | params: &[ |
| 2483 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 2484 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 2485 | Param { name: "milestone", location: In::Path, kind: "integer", required: true, values: &[] }, |
| 2486 | ], |
| 2487 | body: &[ |
| 2488 | Field { name: "description", kind: "string", required: false, values: &[] }, |
| 2489 | Field { name: "due_on", kind: "string", required: false, values: &[] }, |
| 2490 | Field { name: "state", kind: "string", required: false, values: &["open", "closed"] }, |
| 2491 | Field { name: "title", kind: "string", required: false, values: &[] }, |
| 2492 | ], |
| 2493 | }, |
| 2494 | Operation { |
| 2495 | id: "leave_workspace", |
| 2496 | method: "DELETE", |
| 2497 | path: "/user/memberships/{workspace}", |
| 2498 | tag: "Members", |
| 2499 | summary: "Leave a workspace", |
| 2500 | scope: Some("account:write"), |
| 2501 | params: &[ |
| 2502 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 2503 | ], |
| 2504 | body: &[], |
| 2505 | }, |
| 2506 | Operation { |
| 2507 | id: "list_members", |
| 2508 | method: "GET", |
| 2509 | path: "/workspaces/{workspace}/members", |
| 2510 | tag: "Members", |
| 2511 | summary: "List a workspace's members", |
| 2512 | scope: Some("workspace:read"), |
| 2513 | params: &[ |
| 2514 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 2515 | ], |
| 2516 | body: &[], |
| 2517 | }, |
| 2518 | Operation { |
| 2519 | id: "remove_member", |
| 2520 | method: "DELETE", |
| 2521 | path: "/workspaces/{workspace}/members/{username}", |
| 2522 | tag: "Members", |
| 2523 | summary: "Remove a member", |
| 2524 | scope: Some("workspace:admin"), |
| 2525 | params: &[ |
| 2526 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 2527 | Param { name: "username", location: In::Path, kind: "string", required: true, values: &[] }, |
| 2528 | ], |
| 2529 | body: &[], |
| 2530 | }, |
| 2531 | Operation { |
| 2532 | id: "transfer_ownership", |
| 2533 | method: "POST", |
| 2534 | path: "/workspaces/{workspace}/transfer_ownership", |
| 2535 | tag: "Members", |
| 2536 | summary: "Transfer a workspace's ownership", |
| 2537 | scope: Some("workspace:admin"), |
| 2538 | params: &[ |
| 2539 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 2540 | ], |
| 2541 | body: &[ |
| 2542 | Field { name: "username", kind: "string", required: true, values: &[] }, |
| 2543 | ], |
| 2544 | }, |
| 2545 | Operation { |
| 2546 | id: "update_member", |
| 2547 | method: "PATCH", |
| 2548 | path: "/workspaces/{workspace}/members/{username}", |
| 2549 | tag: "Members", |
| 2550 | summary: "Change a member's role", |
| 2551 | scope: Some("workspace:admin"), |
| 2552 | params: &[ |
| 2553 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 2554 | Param { name: "username", location: In::Path, kind: "string", required: true, values: &[] }, |
| 2555 | ], |
| 2556 | body: &[ |
| 2557 | Field { name: "org_roles", kind: "array", required: false, values: &[] }, |
| 2558 | Field { name: "role", kind: "string", required: false, values: &["owner", "member"] }, |
| 2559 | ], |
| 2560 | }, |
| 2561 | Operation { |
| 2562 | id: "delete_issue_subscription", |
| 2563 | method: "DELETE", |
| 2564 | path: "/repos/{owner}/{name}/issues/{number}/subscription", |
| 2565 | tag: "Notifications", |
| 2566 | summary: "Unsubscribe from an issue", |
| 2567 | scope: Some("notifications:write"), |
| 2568 | params: &[ |
| 2569 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 2570 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 2571 | Param { name: "number", location: In::Path, kind: "integer", required: true, values: &[] }, |
| 2572 | ], |
| 2573 | body: &[ |
| 2574 | Field { name: "id", kind: "string", required: false, values: &[] }, |
| 2575 | ], |
| 2576 | }, |
| 2577 | Operation { |
| 2578 | id: "delete_repo_subscription", |
| 2579 | method: "DELETE", |
| 2580 | path: "/repos/{owner}/{name}/subscription", |
| 2581 | tag: "Notifications", |
| 2582 | summary: "Stop watching a repository", |
| 2583 | scope: Some("notifications:write"), |
| 2584 | params: &[ |
| 2585 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 2586 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 2587 | ], |
| 2588 | body: &[], |
| 2589 | }, |
| 2590 | Operation { |
| 2591 | id: "delete_thread_subscription", |
| 2592 | method: "DELETE", |
| 2593 | path: "/notifications/threads/{id}/subscription", |
| 2594 | tag: "Notifications", |
| 2595 | summary: "Unsubscribe from a thread", |
| 2596 | scope: Some("notifications:write"), |
| 2597 | params: &[ |
| 2598 | Param { name: "id", location: In::Path, kind: "string", required: true, values: &[] }, |
| 2599 | ], |
| 2600 | body: &[ |
| 2601 | Field { name: "number", kind: "integer", required: false, values: &[] }, |
| 2602 | ], |
| 2603 | }, |
| 2604 | Operation { |
| 2605 | id: "get_issue_subscription", |
| 2606 | method: "GET", |
| 2607 | path: "/repos/{owner}/{name}/issues/{number}/subscription", |
| 2608 | tag: "Notifications", |
| 2609 | summary: "Get your subscription to an issue", |
| 2610 | scope: Some("notifications:read"), |
| 2611 | params: &[ |
| 2612 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 2613 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 2614 | Param { name: "number", location: In::Path, kind: "integer", required: true, values: &[] }, |
| 2615 | ], |
| 2616 | body: &[], |
| 2617 | }, |
| 2618 | Operation { |
| 2619 | id: "get_notification_thread", |
| 2620 | method: "GET", |
| 2621 | path: "/notifications/threads/{id}", |
| 2622 | tag: "Notifications", |
| 2623 | summary: "Get a thread", |
| 2624 | scope: Some("notifications:read"), |
| 2625 | params: &[ |
| 2626 | Param { name: "id", location: In::Path, kind: "string", required: true, values: &[] }, |
| 2627 | ], |
| 2628 | body: &[], |
| 2629 | }, |
| 2630 | Operation { |
| 2631 | id: "get_repo_subscription", |
| 2632 | method: "GET", |
| 2633 | path: "/repos/{owner}/{name}/subscription", |
| 2634 | tag: "Notifications", |
| 2635 | summary: "Get how you watch a repository", |
| 2636 | scope: Some("notifications:read"), |
| 2637 | params: &[ |
| 2638 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 2639 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 2640 | ], |
| 2641 | body: &[], |
| 2642 | }, |
| 2643 | Operation { |
| 2644 | id: "get_thread_subscription", |
| 2645 | method: "GET", |
| 2646 | path: "/notifications/threads/{id}/subscription", |
| 2647 | tag: "Notifications", |
| 2648 | summary: "Get a thread subscription", |
| 2649 | scope: Some("notifications:read"), |
| 2650 | params: &[ |
| 2651 | Param { name: "id", location: In::Path, kind: "string", required: true, values: &[] }, |
| 2652 | ], |
| 2653 | body: &[], |
| 2654 | }, |
| 2655 | Operation { |
| 2656 | id: "list_notifications", |
| 2657 | method: "GET", |
| 2658 | path: "/notifications", |
| 2659 | tag: "Notifications", |
| 2660 | summary: "List notifications", |
| 2661 | scope: Some("notifications:read"), |
| 2662 | params: &[ |
| 2663 | Param { name: "all", location: In::Query, kind: "boolean", required: false, values: &[] }, |
| 2664 | Param { name: "participating", location: In::Query, kind: "boolean", required: false, values: &[] }, |
| 2665 | Param { name: "view", location: In::Query, kind: "string", required: false, values: &["inbox", "saved", "done"] }, |
| 2666 | Param { name: "reason", location: In::Query, kind: "string", required: false, values: &["agent", "review_requested", "assign", "mention", "team_mention", "ci_activity", "security_alert", "state_change", "author", "comment", "manual", "subscribed"] }, |
| 2667 | Param { name: "severity", location: In::Query, kind: "string", required: false, values: &["error", "warning", "success", "info"] }, |
| 2668 | Param { name: "since", location: In::Query, kind: "string", required: false, values: &[] }, |
| 2669 | Param { name: "before", location: In::Query, kind: "string", required: false, values: &[] }, |
| 2670 | Param { name: "cursor", location: In::Query, kind: "string", required: false, values: &[] }, |
| 2671 | Param { name: "per_page", location: In::Query, kind: "integer", required: false, values: &[] }, |
| 2672 | ], |
| 2673 | body: &[], |
| 2674 | }, |
| 2675 | Operation { |
| 2676 | id: "list_repo_notifications", |
| 2677 | method: "GET", |
| 2678 | path: "/repos/{owner}/{name}/notifications", |
| 2679 | tag: "Notifications", |
| 2680 | summary: "List a repository's notifications", |
| 2681 | scope: Some("notifications:read"), |
| 2682 | params: &[ |
| 2683 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 2684 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 2685 | Param { name: "all", location: In::Query, kind: "boolean", required: false, values: &[] }, |
| 2686 | Param { name: "participating", location: In::Query, kind: "boolean", required: false, values: &[] }, |
| 2687 | Param { name: "view", location: In::Query, kind: "string", required: false, values: &["inbox", "saved", "done"] }, |
| 2688 | Param { name: "reason", location: In::Query, kind: "string", required: false, values: &["agent", "review_requested", "assign", "mention", "team_mention", "ci_activity", "security_alert", "state_change", "author", "comment", "manual", "subscribed"] }, |
| 2689 | Param { name: "severity", location: In::Query, kind: "string", required: false, values: &["error", "warning", "success", "info"] }, |
| 2690 | Param { name: "since", location: In::Query, kind: "string", required: false, values: &[] }, |
| 2691 | Param { name: "before", location: In::Query, kind: "string", required: false, values: &[] }, |
| 2692 | Param { name: "cursor", location: In::Query, kind: "string", required: false, values: &[] }, |
| 2693 | Param { name: "per_page", location: In::Query, kind: "integer", required: false, values: &[] }, |
| 2694 | ], |
| 2695 | body: &[], |
| 2696 | }, |
| 2697 | Operation { |
| 2698 | id: "list_watched_repos", |
| 2699 | method: "GET", |
| 2700 | path: "/user/subscriptions", |
| 2701 | tag: "Notifications", |
| 2702 | summary: "List repositories you watch", |
| 2703 | scope: Some("notifications:read"), |
| 2704 | params: &[], |
| 2705 | body: &[], |
| 2706 | }, |
| 2707 | Operation { |
| 2708 | id: "mark_notifications_read", |
| 2709 | method: "PUT", |
| 2710 | path: "/notifications", |
| 2711 | tag: "Notifications", |
| 2712 | summary: "Mark notifications read", |
| 2713 | scope: Some("notifications:write"), |
| 2714 | params: &[], |
| 2715 | body: &[ |
| 2716 | Field { name: "last_read_at", kind: "string", required: false, values: &[] }, |
| 2717 | Field { name: "read", kind: "boolean", required: false, values: &[] }, |
| 2718 | ], |
| 2719 | }, |
| 2720 | Operation { |
| 2721 | id: "mark_repo_notifications_read", |
| 2722 | method: "PUT", |
| 2723 | path: "/repos/{owner}/{name}/notifications", |
| 2724 | tag: "Notifications", |
| 2725 | summary: "Mark a repository's notifications read", |
| 2726 | scope: Some("notifications:write"), |
| 2727 | params: &[ |
| 2728 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 2729 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 2730 | ], |
| 2731 | body: &[ |
| 2732 | Field { name: "last_read_at", kind: "string", required: false, values: &[] }, |
| 2733 | Field { name: "read", kind: "boolean", required: false, values: &[] }, |
| 2734 | ], |
| 2735 | }, |
| 2736 | Operation { |
| 2737 | id: "mark_thread_done", |
| 2738 | method: "DELETE", |
| 2739 | path: "/notifications/threads/{id}", |
| 2740 | tag: "Notifications", |
| 2741 | summary: "Mark a thread done", |
| 2742 | scope: Some("notifications:write"), |
| 2743 | params: &[ |
| 2744 | Param { name: "id", location: In::Path, kind: "string", required: true, values: &[] }, |
| 2745 | ], |
| 2746 | body: &[ |
| 2747 | Field { name: "done", kind: "boolean", required: false, values: &[] }, |
| 2748 | ], |
| 2749 | }, |
| 2750 | Operation { |
| 2751 | id: "mark_thread_read", |
| 2752 | method: "PATCH", |
| 2753 | path: "/notifications/threads/{id}", |
| 2754 | tag: "Notifications", |
| 2755 | summary: "Mark a thread read", |
| 2756 | scope: Some("notifications:write"), |
| 2757 | params: &[ |
| 2758 | Param { name: "id", location: In::Path, kind: "string", required: true, values: &[] }, |
| 2759 | ], |
| 2760 | body: &[ |
| 2761 | Field { name: "read", kind: "boolean", required: false, values: &[] }, |
| 2762 | ], |
| 2763 | }, |
| 2764 | Operation { |
| 2765 | id: "save_thread", |
| 2766 | method: "PUT", |
| 2767 | path: "/notifications/threads/{id}/saved", |
| 2768 | tag: "Notifications", |
| 2769 | summary: "Save a thread", |
| 2770 | scope: Some("notifications:write"), |
| 2771 | params: &[ |
| 2772 | Param { name: "id", location: In::Path, kind: "string", required: true, values: &[] }, |
| 2773 | ], |
| 2774 | body: &[ |
| 2775 | Field { name: "saved", kind: "boolean", required: false, values: &[] }, |
| 2776 | ], |
| 2777 | }, |
| 2778 | Operation { |
| 2779 | id: "set_issue_subscription", |
| 2780 | method: "PUT", |
| 2781 | path: "/repos/{owner}/{name}/issues/{number}/subscription", |
| 2782 | tag: "Notifications", |
| 2783 | summary: "Subscribe to an issue", |
| 2784 | scope: Some("notifications:write"), |
| 2785 | params: &[ |
| 2786 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 2787 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 2788 | Param { name: "number", location: In::Path, kind: "integer", required: true, values: &[] }, |
| 2789 | ], |
| 2790 | body: &[ |
| 2791 | Field { name: "id", kind: "string", required: false, values: &[] }, |
| 2792 | Field { name: "ignored", kind: "boolean", required: false, values: &[] }, |
| 2793 | Field { name: "subscribed", kind: "boolean", required: false, values: &[] }, |
| 2794 | ], |
| 2795 | }, |
| 2796 | Operation { |
| 2797 | id: "set_repo_subscription", |
| 2798 | method: "PUT", |
| 2799 | path: "/repos/{owner}/{name}/subscription", |
| 2800 | tag: "Notifications", |
| 2801 | summary: "Watch a repository", |
| 2802 | scope: Some("notifications:write"), |
| 2803 | params: &[ |
| 2804 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 2805 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 2806 | ], |
| 2807 | body: &[ |
| 2808 | Field { name: "events", kind: "array", required: false, values: &[] }, |
| 2809 | Field { name: "ignored", kind: "boolean", required: false, values: &[] }, |
| 2810 | Field { name: "level", kind: "string", required: false, values: &["participating", "all", "ignore", "custom"] }, |
| 2811 | Field { name: "subscribed", kind: "boolean", required: false, values: &[] }, |
| 2812 | ], |
| 2813 | }, |
| 2814 | Operation { |
| 2815 | id: "set_thread_subscription", |
| 2816 | method: "PUT", |
| 2817 | path: "/notifications/threads/{id}/subscription", |
| 2818 | tag: "Notifications", |
| 2819 | summary: "Set a thread subscription", |
| 2820 | scope: Some("notifications:write"), |
| 2821 | params: &[ |
| 2822 | Param { name: "id", location: In::Path, kind: "string", required: true, values: &[] }, |
| 2823 | ], |
| 2824 | body: &[ |
| 2825 | Field { name: "ignored", kind: "boolean", required: false, values: &[] }, |
| 2826 | Field { name: "number", kind: "integer", required: false, values: &[] }, |
| 2827 | Field { name: "subscribed", kind: "boolean", required: false, values: &[] }, |
| 2828 | ], |
| 2829 | }, |
| 2830 | Operation { |
| 2831 | id: "snooze_thread", |
| 2832 | method: "PUT", |
| 2833 | path: "/notifications/threads/{id}/snooze", |
| 2834 | tag: "Notifications", |
| 2835 | summary: "Snooze a thread", |
| 2836 | scope: Some("notifications:write"), |
| 2837 | params: &[ |
| 2838 | Param { name: "id", location: In::Path, kind: "string", required: true, values: &[] }, |
| 2839 | ], |
| 2840 | body: &[ |
| 2841 | Field { name: "until", kind: "string", required: false, values: &[] }, |
| 2842 | ], |
| 2843 | }, |
| 2844 | Operation { |
| 2845 | id: "unsave_thread", |
| 2846 | method: "DELETE", |
| 2847 | path: "/notifications/threads/{id}/saved", |
| 2848 | tag: "Notifications", |
| 2849 | summary: "Unsave a thread", |
| 2850 | scope: Some("notifications:write"), |
| 2851 | params: &[ |
| 2852 | Param { name: "id", location: In::Path, kind: "string", required: true, values: &[] }, |
| 2853 | ], |
| 2854 | body: &[ |
| 2855 | Field { name: "saved", kind: "boolean", required: false, values: &[] }, |
| 2856 | ], |
| 2857 | }, |
| 2858 | Operation { |
| 2859 | id: "unsnooze_thread", |
| 2860 | method: "DELETE", |
| 2861 | path: "/notifications/threads/{id}/snooze", |
| 2862 | tag: "Notifications", |
| 2863 | summary: "Bring a snoozed thread back", |
| 2864 | scope: Some("notifications:write"), |
| 2865 | params: &[ |
| 2866 | Param { name: "id", location: In::Path, kind: "string", required: true, values: &[] }, |
| 2867 | ], |
| 2868 | body: &[ |
| 2869 | Field { name: "until", kind: "string", required: false, values: &[] }, |
| 2870 | ], |
| 2871 | }, |
| 2872 | Operation { |
| 2873 | id: "create_ingest_token", |
| 2874 | method: "POST", |
| 2875 | path: "/workspaces/{workspace}/projects/{project}/observability/tokens", |
| 2876 | tag: "Observability", |
| 2877 | summary: "Create an ingest token", |
| 2878 | scope: Some("observability:write"), |
| 2879 | params: &[ |
| 2880 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 2881 | Param { name: "project", location: In::Path, kind: "string", required: true, values: &[] }, |
| 2882 | ], |
| 2883 | body: &[ |
| 2884 | Field { name: "name", kind: "string", required: true, values: &[] }, |
| 2885 | ], |
| 2886 | }, |
| 2887 | Operation { |
| 2888 | id: "create_telemetry_export", |
| 2889 | method: "POST", |
| 2890 | path: "/workspaces/{workspace}/projects/{project}/observability/exports", |
| 2891 | tag: "Observability", |
| 2892 | summary: "Create a telemetry export", |
| 2893 | scope: Some("observability:write"), |
| 2894 | params: &[ |
| 2895 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 2896 | Param { name: "project", location: In::Path, kind: "string", required: true, values: &[] }, |
| 2897 | ], |
| 2898 | body: &[ |
| 2899 | Field { name: "enabled", kind: "boolean", required: false, values: &[] }, |
| 2900 | Field { name: "endpoint", kind: "string", required: true, values: &[] }, |
| 2901 | Field { name: "headers", kind: "object", required: false, values: &[] }, |
| 2902 | Field { name: "name", kind: "string", required: true, values: &[] }, |
| 2903 | Field { name: "signals", kind: "array", required: false, values: &[] }, |
| 2904 | ], |
| 2905 | }, |
| 2906 | Operation { |
| 2907 | id: "delete_ingest_token", |
| 2908 | method: "DELETE", |
| 2909 | path: "/workspaces/{workspace}/projects/{project}/observability/tokens/{id}", |
| 2910 | tag: "Observability", |
| 2911 | summary: "Delete an ingest token", |
| 2912 | scope: Some("observability:write"), |
| 2913 | params: &[ |
| 2914 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 2915 | Param { name: "project", location: In::Path, kind: "string", required: true, values: &[] }, |
| 2916 | Param { name: "id", location: In::Path, kind: "string", required: true, values: &[] }, |
| 2917 | ], |
| 2918 | body: &[], |
| 2919 | }, |
| 2920 | Operation { |
| 2921 | id: "delete_telemetry_export", |
| 2922 | method: "DELETE", |
| 2923 | path: "/workspaces/{workspace}/projects/{project}/observability/exports/{id}", |
| 2924 | tag: "Observability", |
| 2925 | summary: "Delete a telemetry export", |
| 2926 | scope: Some("observability:write"), |
| 2927 | params: &[ |
| 2928 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 2929 | Param { name: "project", location: In::Path, kind: "string", required: true, values: &[] }, |
| 2930 | Param { name: "id", location: In::Path, kind: "string", required: true, values: &[] }, |
| 2931 | ], |
| 2932 | body: &[], |
| 2933 | }, |
| 2934 | Operation { |
| 2935 | id: "get_metric", |
| 2936 | method: "GET", |
| 2937 | path: "/workspaces/{workspace}/projects/{project}/observability/metrics/{metric}", |
| 2938 | tag: "Observability", |
| 2939 | summary: "Get a metric", |
| 2940 | scope: Some("observability:read"), |
| 2941 | params: &[ |
| 2942 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 2943 | Param { name: "project", location: In::Path, kind: "string", required: true, values: &[] }, |
| 2944 | Param { name: "metric", location: In::Path, kind: "string", required: true, values: &[] }, |
| 2945 | Param { name: "from", location: In::Query, kind: "string", required: false, values: &[] }, |
| 2946 | Param { name: "to", location: In::Query, kind: "string", required: false, values: &[] }, |
| 2947 | Param { name: "aggregate", location: In::Query, kind: "string", required: false, values: &["avg", "sum", "min", "max", "p50", "p95", "p99"] }, |
| 2948 | Param { name: "group_by", location: In::Query, kind: "string", required: false, values: &[] }, |
| 2949 | Param { name: "step", location: In::Query, kind: "integer", required: false, values: &[] }, |
| 2950 | Param { name: "service", location: In::Query, kind: "string", required: false, values: &[] }, |
| 2951 | Param { name: "environment", location: In::Query, kind: "string", required: false, values: &[] }, |
| 2952 | ], |
| 2953 | body: &[], |
| 2954 | }, |
| 2955 | Operation { |
| 2956 | id: "get_observability_overview", |
| 2957 | method: "GET", |
| 2958 | path: "/workspaces/{workspace}/projects/{project}/observability/overview", |
| 2959 | tag: "Observability", |
| 2960 | summary: "Get a project's observability overview", |
| 2961 | scope: Some("observability:read"), |
| 2962 | params: &[ |
| 2963 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 2964 | Param { name: "project", location: In::Path, kind: "string", required: true, values: &[] }, |
| 2965 | Param { name: "from", location: In::Query, kind: "string", required: false, values: &[] }, |
| 2966 | Param { name: "to", location: In::Query, kind: "string", required: false, values: &[] }, |
| 2967 | Param { name: "environment", location: In::Query, kind: "string", required: false, values: &[] }, |
| 2968 | Param { name: "service", location: In::Query, kind: "string", required: false, values: &[] }, |
| 2969 | Param { name: "deployment_id", location: In::Query, kind: "string", required: false, values: &[] }, |
| 2970 | Param { name: "step", location: In::Query, kind: "integer", required: false, values: &[] }, |
| 2971 | ], |
| 2972 | body: &[], |
| 2973 | }, |
| 2974 | Operation { |
| 2975 | id: "get_observability_settings", |
| 2976 | method: "GET", |
| 2977 | path: "/workspaces/{workspace}/projects/{project}/observability/settings", |
| 2978 | tag: "Observability", |
| 2979 | summary: "Get observability settings", |
| 2980 | scope: Some("observability:read"), |
| 2981 | params: &[ |
| 2982 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 2983 | Param { name: "project", location: In::Path, kind: "string", required: true, values: &[] }, |
| 2984 | ], |
| 2985 | body: &[], |
| 2986 | }, |
| 2987 | Operation { |
| 2988 | id: "get_observability_usage", |
| 2989 | method: "GET", |
| 2990 | path: "/workspaces/{workspace}/projects/{project}/observability/usage", |
| 2991 | tag: "Observability", |
| 2992 | summary: "Get observability usage", |
| 2993 | scope: Some("observability:read"), |
| 2994 | params: &[ |
| 2995 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 2996 | Param { name: "project", location: In::Path, kind: "string", required: true, values: &[] }, |
| 2997 | ], |
| 2998 | body: &[], |
| 2999 | }, |
| 3000 | Operation { |
| 3001 | id: "get_request", |
| 3002 | method: "GET", |
| 3003 | path: "/workspaces/{workspace}/projects/{project}/observability/requests/{id}", |
| 3004 | tag: "Observability", |
| 3005 | summary: "Get a request", |
| 3006 | scope: Some("observability:read"), |
| 3007 | params: &[ |
| 3008 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 3009 | Param { name: "project", location: In::Path, kind: "string", required: true, values: &[] }, |
| 3010 | Param { name: "id", location: In::Path, kind: "string", required: true, values: &[] }, |
| 3011 | ], |
| 3012 | body: &[], |
| 3013 | }, |
| 3014 | Operation { |
| 3015 | id: "get_trace", |
| 3016 | method: "GET", |
| 3017 | path: "/workspaces/{workspace}/projects/{project}/observability/traces/{trace_id}", |
| 3018 | tag: "Observability", |
| 3019 | summary: "Get a trace", |
| 3020 | scope: Some("observability:read"), |
| 3021 | params: &[ |
| 3022 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 3023 | Param { name: "project", location: In::Path, kind: "string", required: true, values: &[] }, |
| 3024 | Param { name: "trace_id", location: In::Path, kind: "string", required: true, values: &[] }, |
| 3025 | ], |
| 3026 | body: &[], |
| 3027 | }, |
| 3028 | Operation { |
| 3029 | id: "list_errors", |
| 3030 | method: "GET", |
| 3031 | path: "/workspaces/{workspace}/projects/{project}/observability/errors", |
| 3032 | tag: "Observability", |
| 3033 | summary: "List errors", |
| 3034 | scope: Some("observability:read"), |
| 3035 | params: &[ |
| 3036 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 3037 | Param { name: "project", location: In::Path, kind: "string", required: true, values: &[] }, |
| 3038 | Param { name: "state", location: In::Query, kind: "string", required: false, values: &["open", "resolved", "ignored"] }, |
| 3039 | Param { name: "environment", location: In::Query, kind: "string", required: false, values: &[] }, |
| 3040 | Param { name: "service", location: In::Query, kind: "string", required: false, values: &[] }, |
| 3041 | Param { name: "from", location: In::Query, kind: "string", required: false, values: &[] }, |
| 3042 | Param { name: "to", location: In::Query, kind: "string", required: false, values: &[] }, |
| 3043 | ], |
| 3044 | body: &[], |
| 3045 | }, |
| 3046 | Operation { |
| 3047 | id: "list_ingest_tokens", |
| 3048 | method: "GET", |
| 3049 | path: "/workspaces/{workspace}/projects/{project}/observability/tokens", |
| 3050 | tag: "Observability", |
| 3051 | summary: "List ingest tokens", |
| 3052 | scope: Some("observability:read"), |
| 3053 | params: &[ |
| 3054 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 3055 | Param { name: "project", location: In::Path, kind: "string", required: true, values: &[] }, |
| 3056 | ], |
| 3057 | body: &[], |
| 3058 | }, |
| 3059 | Operation { |
| 3060 | id: "list_logs", |
| 3061 | method: "GET", |
| 3062 | path: "/workspaces/{workspace}/projects/{project}/observability/logs", |
| 3063 | tag: "Observability", |
| 3064 | summary: "List logs", |
| 3065 | scope: Some("observability:read"), |
| 3066 | params: &[ |
| 3067 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 3068 | Param { name: "project", location: In::Path, kind: "string", required: true, values: &[] }, |
| 3069 | Param { name: "from", location: In::Query, kind: "string", required: false, values: &[] }, |
| 3070 | Param { name: "to", location: In::Query, kind: "string", required: false, values: &[] }, |
| 3071 | Param { name: "q", location: In::Query, kind: "string", required: false, values: &[] }, |
| 3072 | Param { name: "level", location: In::Query, kind: "string", required: false, values: &[] }, |
| 3073 | Param { name: "trace_id", location: In::Query, kind: "string", required: false, values: &[] }, |
| 3074 | Param { name: "request_id", location: In::Query, kind: "string", required: false, values: &[] }, |
| 3075 | Param { name: "environment", location: In::Query, kind: "string", required: false, values: &[] }, |
| 3076 | Param { name: "service", location: In::Query, kind: "string", required: false, values: &[] }, |
| 3077 | Param { name: "deployment_id", location: In::Query, kind: "string", required: false, values: &[] }, |
| 3078 | Param { name: "cursor", location: In::Query, kind: "string", required: false, values: &[] }, |
| 3079 | Param { name: "limit", location: In::Query, kind: "integer", required: false, values: &[] }, |
| 3080 | ], |
| 3081 | body: &[], |
| 3082 | }, |
| 3083 | Operation { |
| 3084 | id: "list_metrics", |
| 3085 | method: "GET", |
| 3086 | path: "/workspaces/{workspace}/projects/{project}/observability/metrics", |
| 3087 | tag: "Observability", |
| 3088 | summary: "List metrics", |
| 3089 | scope: Some("observability:read"), |
| 3090 | params: &[ |
| 3091 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 3092 | Param { name: "project", location: In::Path, kind: "string", required: true, values: &[] }, |
| 3093 | ], |
| 3094 | body: &[], |
| 3095 | }, |
| 3096 | Operation { |
| 3097 | id: "list_requests", |
| 3098 | method: "GET", |
| 3099 | path: "/workspaces/{workspace}/projects/{project}/observability/requests", |
| 3100 | tag: "Observability", |
| 3101 | summary: "List requests", |
| 3102 | scope: Some("observability:read"), |
| 3103 | params: &[ |
| 3104 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 3105 | Param { name: "project", location: In::Path, kind: "string", required: true, values: &[] }, |
| 3106 | Param { name: "from", location: In::Query, kind: "string", required: false, values: &[] }, |
| 3107 | Param { name: "to", location: In::Query, kind: "string", required: false, values: &[] }, |
| 3108 | Param { name: "q", location: In::Query, kind: "string", required: false, values: &[] }, |
| 3109 | Param { name: "status", location: In::Query, kind: "string", required: false, values: &[] }, |
| 3110 | Param { name: "errors_only", location: In::Query, kind: "boolean", required: false, values: &[] }, |
| 3111 | Param { name: "route", location: In::Query, kind: "string", required: false, values: &[] }, |
| 3112 | Param { name: "min_duration_ms", location: In::Query, kind: "integer", required: false, values: &[] }, |
| 3113 | Param { name: "environment", location: In::Query, kind: "string", required: false, values: &[] }, |
| 3114 | Param { name: "service", location: In::Query, kind: "string", required: false, values: &[] }, |
| 3115 | Param { name: "deployment_id", location: In::Query, kind: "string", required: false, values: &[] }, |
| 3116 | Param { name: "cursor", location: In::Query, kind: "string", required: false, values: &[] }, |
| 3117 | Param { name: "limit", location: In::Query, kind: "integer", required: false, values: &[] }, |
| 3118 | ], |
| 3119 | body: &[], |
| 3120 | }, |
| 3121 | Operation { |
| 3122 | id: "list_telemetry_exports", |
| 3123 | method: "GET", |
| 3124 | path: "/workspaces/{workspace}/projects/{project}/observability/exports", |
| 3125 | tag: "Observability", |
| 3126 | summary: "List telemetry exports", |
| 3127 | scope: Some("observability:read"), |
| 3128 | params: &[ |
| 3129 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 3130 | Param { name: "project", location: In::Path, kind: "string", required: true, values: &[] }, |
| 3131 | ], |
| 3132 | body: &[], |
| 3133 | }, |
| 3134 | Operation { |
| 3135 | id: "list_traces", |
| 3136 | method: "GET", |
| 3137 | path: "/workspaces/{workspace}/projects/{project}/observability/traces", |
| 3138 | tag: "Observability", |
| 3139 | summary: "List traces", |
| 3140 | scope: Some("observability:read"), |
| 3141 | params: &[ |
| 3142 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 3143 | Param { name: "project", location: In::Path, kind: "string", required: true, values: &[] }, |
| 3144 | Param { name: "from", location: In::Query, kind: "string", required: false, values: &[] }, |
| 3145 | Param { name: "to", location: In::Query, kind: "string", required: false, values: &[] }, |
| 3146 | Param { name: "q", location: In::Query, kind: "string", required: false, values: &[] }, |
| 3147 | Param { name: "errors_only", location: In::Query, kind: "boolean", required: false, values: &[] }, |
| 3148 | Param { name: "min_duration_ms", location: In::Query, kind: "integer", required: false, values: &[] }, |
| 3149 | Param { name: "environment", location: In::Query, kind: "string", required: false, values: &[] }, |
| 3150 | Param { name: "service", location: In::Query, kind: "string", required: false, values: &[] }, |
| 3151 | Param { name: "cursor", location: In::Query, kind: "string", required: false, values: &[] }, |
| 3152 | Param { name: "limit", location: In::Query, kind: "integer", required: false, values: &[] }, |
| 3153 | ], |
| 3154 | body: &[], |
| 3155 | }, |
| 3156 | Operation { |
| 3157 | id: "update_error", |
| 3158 | method: "PATCH", |
| 3159 | path: "/workspaces/{workspace}/projects/{project}/observability/errors/{fingerprint}", |
| 3160 | tag: "Observability", |
| 3161 | summary: "Update an error", |
| 3162 | scope: Some("observability:write"), |
| 3163 | params: &[ |
| 3164 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 3165 | Param { name: "project", location: In::Path, kind: "string", required: true, values: &[] }, |
| 3166 | Param { name: "fingerprint", location: In::Path, kind: "string", required: true, values: &[] }, |
| 3167 | ], |
| 3168 | body: &[ |
| 3169 | Field { name: "issue_number", kind: "integer", required: false, values: &[] }, |
| 3170 | Field { name: "state", kind: "string", required: false, values: &["open", "resolved", "ignored"] }, |
| 3171 | ], |
| 3172 | }, |
| 3173 | Operation { |
| 3174 | id: "update_observability_settings", |
| 3175 | method: "PATCH", |
| 3176 | path: "/workspaces/{workspace}/projects/{project}/observability/settings", |
| 3177 | tag: "Observability", |
| 3178 | summary: "Update observability settings", |
| 3179 | scope: Some("observability:write"), |
| 3180 | params: &[ |
| 3181 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 3182 | Param { name: "project", location: In::Path, kind: "string", required: true, values: &[] }, |
| 3183 | ], |
| 3184 | body: &[ |
| 3185 | Field { name: "deployments", kind: "boolean", required: false, values: &[] }, |
| 3186 | Field { name: "retention_days", kind: "integer", required: false, values: &[] }, |
| 3187 | ], |
| 3188 | }, |
| 3189 | Operation { |
| 3190 | id: "update_telemetry_export", |
| 3191 | method: "PATCH", |
| 3192 | path: "/workspaces/{workspace}/projects/{project}/observability/exports/{id}", |
| 3193 | tag: "Observability", |
| 3194 | summary: "Update a telemetry export", |
| 3195 | scope: Some("observability:write"), |
| 3196 | params: &[ |
| 3197 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 3198 | Param { name: "project", location: In::Path, kind: "string", required: true, values: &[] }, |
| 3199 | Param { name: "id", location: In::Path, kind: "string", required: true, values: &[] }, |
| 3200 | ], |
| 3201 | body: &[ |
| 3202 | Field { name: "enabled", kind: "boolean", required: false, values: &[] }, |
| 3203 | Field { name: "endpoint", kind: "string", required: false, values: &[] }, |
| 3204 | Field { name: "headers", kind: "object", required: false, values: &[] }, |
| 3205 | Field { name: "name", kind: "string", required: false, values: &[] }, |
| 3206 | Field { name: "signals", kind: "array", required: false, values: &[] }, |
| 3207 | ], |
| 3208 | }, |
| 3209 | Operation { |
| 3210 | id: "delete_package", |
| 3211 | method: "DELETE", |
| 3212 | path: "/workspaces/{workspace}/packages/{package_type}/{package_name}", |
| 3213 | tag: "Packages", |
| 3214 | summary: "Delete a package", |
| 3215 | scope: Some("packages:delete"), |
| 3216 | params: &[ |
| 3217 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 3218 | Param { name: "package_type", location: In::Path, kind: "string", required: true, values: &["container", "npm", "cargo", "maven", "nuget", "rubygems", "composer"] }, |
| 3219 | Param { name: "package_name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 3220 | ], |
| 3221 | body: &[], |
| 3222 | }, |
| 3223 | Operation { |
| 3224 | id: "delete_package_version", |
| 3225 | method: "DELETE", |
| 3226 | path: "/workspaces/{workspace}/packages/{package_type}/{package_name}/versions/{version_id}", |
| 3227 | tag: "Packages", |
| 3228 | summary: "Delete a package version", |
| 3229 | scope: Some("packages:delete"), |
| 3230 | params: &[ |
| 3231 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 3232 | Param { name: "package_type", location: In::Path, kind: "string", required: true, values: &["container", "npm", "cargo", "maven", "nuget", "rubygems", "composer"] }, |
| 3233 | Param { name: "package_name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 3234 | Param { name: "version_id", location: In::Path, kind: "string", required: true, values: &[] }, |
| 3235 | ], |
| 3236 | body: &[], |
| 3237 | }, |
| 3238 | Operation { |
| 3239 | id: "get_package", |
| 3240 | method: "GET", |
| 3241 | path: "/workspaces/{workspace}/packages/{package_type}/{package_name}", |
| 3242 | tag: "Packages", |
| 3243 | summary: "Get a package", |
| 3244 | scope: Some("packages:read"), |
| 3245 | params: &[ |
| 3246 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 3247 | Param { name: "package_type", location: In::Path, kind: "string", required: true, values: &["container", "npm", "cargo", "maven", "nuget", "rubygems", "composer"] }, |
| 3248 | Param { name: "package_name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 3249 | ], |
| 3250 | body: &[], |
| 3251 | }, |
| 3252 | Operation { |
| 3253 | id: "get_package_version", |
| 3254 | method: "GET", |
| 3255 | path: "/workspaces/{workspace}/packages/{package_type}/{package_name}/versions/{version_id}", |
| 3256 | tag: "Packages", |
| 3257 | summary: "Get a package version", |
| 3258 | scope: Some("packages:read"), |
| 3259 | params: &[ |
| 3260 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 3261 | Param { name: "package_type", location: In::Path, kind: "string", required: true, values: &["container", "npm", "cargo", "maven", "nuget", "rubygems", "composer"] }, |
| 3262 | Param { name: "package_name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 3263 | Param { name: "version_id", location: In::Path, kind: "string", required: true, values: &[] }, |
| 3264 | ], |
| 3265 | body: &[], |
| 3266 | }, |
| 3267 | Operation { |
| 3268 | id: "link_package", |
| 3269 | method: "PUT", |
| 3270 | path: "/workspaces/{workspace}/packages/{package_type}/{package_name}/repository", |
| 3271 | tag: "Packages", |
| 3272 | summary: "Link a package to a repository", |
| 3273 | scope: Some("packages:write"), |
| 3274 | params: &[ |
| 3275 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 3276 | Param { name: "package_type", location: In::Path, kind: "string", required: true, values: &["container", "npm", "cargo", "maven", "nuget", "rubygems", "composer"] }, |
| 3277 | Param { name: "package_name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 3278 | ], |
| 3279 | body: &[ |
| 3280 | Field { name: "repository", kind: "string", required: true, values: &[] }, |
| 3281 | ], |
| 3282 | }, |
| 3283 | Operation { |
| 3284 | id: "list_package_access", |
| 3285 | method: "GET", |
| 3286 | path: "/workspaces/{workspace}/packages/{package_type}/{package_name}/access", |
| 3287 | tag: "Packages", |
| 3288 | summary: "List who has access to a package", |
| 3289 | scope: Some("packages:read"), |
| 3290 | params: &[ |
| 3291 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 3292 | Param { name: "package_type", location: In::Path, kind: "string", required: true, values: &["container", "npm", "cargo", "maven", "nuget", "rubygems", "composer"] }, |
| 3293 | Param { name: "package_name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 3294 | ], |
| 3295 | body: &[], |
| 3296 | }, |
| 3297 | Operation { |
| 3298 | id: "list_package_actions_access", |
| 3299 | method: "GET", |
| 3300 | path: "/workspaces/{workspace}/packages/{package_type}/{package_name}/actions-access", |
| 3301 | tag: "Packages", |
| 3302 | summary: "List a package's Actions access", |
| 3303 | scope: Some("packages:read"), |
| 3304 | params: &[ |
| 3305 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 3306 | Param { name: "package_type", location: In::Path, kind: "string", required: true, values: &["container", "npm", "cargo", "maven", "nuget", "rubygems", "composer"] }, |
| 3307 | Param { name: "package_name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 3308 | ], |
| 3309 | body: &[], |
| 3310 | }, |
| 3311 | Operation { |
| 3312 | id: "list_package_versions", |
| 3313 | method: "GET", |
| 3314 | path: "/workspaces/{workspace}/packages/{package_type}/{package_name}/versions", |
| 3315 | tag: "Packages", |
| 3316 | summary: "List a package's versions", |
| 3317 | scope: Some("packages:read"), |
| 3318 | params: &[ |
| 3319 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 3320 | Param { name: "package_type", location: In::Path, kind: "string", required: true, values: &["container", "npm", "cargo", "maven", "nuget", "rubygems", "composer"] }, |
| 3321 | Param { name: "package_name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 3322 | Param { name: "state", location: In::Query, kind: "string", required: false, values: &["active", "deleted"] }, |
| 3323 | ], |
| 3324 | body: &[], |
| 3325 | }, |
| 3326 | Operation { |
| 3327 | id: "list_packages", |
| 3328 | method: "GET", |
| 3329 | path: "/workspaces/{workspace}/packages", |
| 3330 | tag: "Packages", |
| 3331 | summary: "List a workspace's packages", |
| 3332 | scope: Some("packages:read"), |
| 3333 | params: &[ |
| 3334 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 3335 | Param { name: "package_type", location: In::Query, kind: "string", required: false, values: &["container", "npm", "cargo", "maven", "nuget", "rubygems", "composer"] }, |
| 3336 | Param { name: "q", location: In::Query, kind: "string", required: false, values: &[] }, |
| 3337 | Param { name: "state", location: In::Query, kind: "string", required: false, values: &["active", "deleted"] }, |
| 3338 | ], |
| 3339 | body: &[], |
| 3340 | }, |
| 3341 | Operation { |
| 3342 | id: "remove_package_access", |
| 3343 | method: "DELETE", |
| 3344 | path: "/workspaces/{workspace}/packages/{package_type}/{package_name}/access", |
| 3345 | tag: "Packages", |
| 3346 | summary: "Remove a person's or team's role on a package", |
| 3347 | scope: Some("packages:write"), |
| 3348 | params: &[ |
| 3349 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 3350 | Param { name: "package_type", location: In::Path, kind: "string", required: true, values: &["container", "npm", "cargo", "maven", "nuget", "rubygems", "composer"] }, |
| 3351 | Param { name: "package_name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 3352 | ], |
| 3353 | body: &[ |
| 3354 | Field { name: "team", kind: "string", required: false, values: &[] }, |
| 3355 | Field { name: "username", kind: "string", required: false, values: &[] }, |
| 3356 | ], |
| 3357 | }, |
| 3358 | Operation { |
| 3359 | id: "remove_package_actions_access", |
| 3360 | method: "DELETE", |
| 3361 | path: "/workspaces/{workspace}/packages/{package_type}/{package_name}/actions-access/{repository}", |
| 3362 | tag: "Packages", |
| 3363 | summary: "Remove a repository's Actions access to a package", |
| 3364 | scope: Some("packages:write"), |
| 3365 | params: &[ |
| 3366 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 3367 | Param { name: "package_type", location: In::Path, kind: "string", required: true, values: &["container", "npm", "cargo", "maven", "nuget", "rubygems", "composer"] }, |
| 3368 | Param { name: "package_name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 3369 | Param { name: "repository", location: In::Path, kind: "string", required: true, values: &[] }, |
| 3370 | ], |
| 3371 | body: &[], |
| 3372 | }, |
| 3373 | Operation { |
| 3374 | id: "restore_package", |
| 3375 | method: "POST", |
| 3376 | path: "/workspaces/{workspace}/packages/{package_type}/{package_name}/restore", |
| 3377 | tag: "Packages", |
| 3378 | summary: "Restore a package", |
| 3379 | scope: Some("packages:delete"), |
| 3380 | params: &[ |
| 3381 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 3382 | Param { name: "package_type", location: In::Path, kind: "string", required: true, values: &["container", "npm", "cargo", "maven", "nuget", "rubygems", "composer"] }, |
| 3383 | Param { name: "package_name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 3384 | ], |
| 3385 | body: &[], |
| 3386 | }, |
| 3387 | Operation { |
| 3388 | id: "restore_package_version", |
| 3389 | method: "POST", |
| 3390 | path: "/workspaces/{workspace}/packages/{package_type}/{package_name}/versions/{version_id}/restore", |
| 3391 | tag: "Packages", |
| 3392 | summary: "Restore a package version", |
| 3393 | scope: Some("packages:delete"), |
| 3394 | params: &[ |
| 3395 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 3396 | Param { name: "package_type", location: In::Path, kind: "string", required: true, values: &["container", "npm", "cargo", "maven", "nuget", "rubygems", "composer"] }, |
| 3397 | Param { name: "package_name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 3398 | Param { name: "version_id", location: In::Path, kind: "string", required: true, values: &[] }, |
| 3399 | ], |
| 3400 | body: &[], |
| 3401 | }, |
| 3402 | Operation { |
| 3403 | id: "set_package_access", |
| 3404 | method: "PUT", |
| 3405 | path: "/workspaces/{workspace}/packages/{package_type}/{package_name}/access", |
| 3406 | tag: "Packages", |
| 3407 | summary: "Give a person or team a role on a package", |
| 3408 | scope: Some("packages:write"), |
| 3409 | params: &[ |
| 3410 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 3411 | Param { name: "package_type", location: In::Path, kind: "string", required: true, values: &["container", "npm", "cargo", "maven", "nuget", "rubygems", "composer"] }, |
| 3412 | Param { name: "package_name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 3413 | ], |
| 3414 | body: &[ |
| 3415 | Field { name: "role", kind: "string", required: true, values: &["read", "write", "admin"] }, |
| 3416 | Field { name: "team", kind: "string", required: false, values: &[] }, |
| 3417 | Field { name: "username", kind: "string", required: false, values: &[] }, |
| 3418 | ], |
| 3419 | }, |
| 3420 | Operation { |
| 3421 | id: "set_package_actions_access", |
| 3422 | method: "PUT", |
| 3423 | path: "/workspaces/{workspace}/packages/{package_type}/{package_name}/actions-access", |
| 3424 | tag: "Packages", |
| 3425 | summary: "Give a repository's workflows access to a package", |
| 3426 | scope: Some("packages:write"), |
| 3427 | params: &[ |
| 3428 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 3429 | Param { name: "package_type", location: In::Path, kind: "string", required: true, values: &["container", "npm", "cargo", "maven", "nuget", "rubygems", "composer"] }, |
| 3430 | Param { name: "package_name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 3431 | ], |
| 3432 | body: &[ |
| 3433 | Field { name: "repository", kind: "string", required: true, values: &[] }, |
| 3434 | Field { name: "role", kind: "string", required: true, values: &["read", "write"] }, |
| 3435 | ], |
| 3436 | }, |
| 3437 | Operation { |
| 3438 | id: "unlink_package", |
| 3439 | method: "DELETE", |
| 3440 | path: "/workspaces/{workspace}/packages/{package_type}/{package_name}/repository", |
| 3441 | tag: "Packages", |
| 3442 | summary: "Unlink a package from its repository", |
| 3443 | scope: Some("packages:write"), |
| 3444 | params: &[ |
| 3445 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 3446 | Param { name: "package_type", location: In::Path, kind: "string", required: true, values: &["container", "npm", "cargo", "maven", "nuget", "rubygems", "composer"] }, |
| 3447 | Param { name: "package_name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 3448 | ], |
| 3449 | body: &[], |
| 3450 | }, |
| 3451 | Operation { |
| 3452 | id: "update_package", |
| 3453 | method: "PATCH", |
| 3454 | path: "/workspaces/{workspace}/packages/{package_type}/{package_name}", |
| 3455 | tag: "Packages", |
| 3456 | summary: "Update a package", |
| 3457 | scope: Some("packages:write"), |
| 3458 | params: &[ |
| 3459 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 3460 | Param { name: "package_type", location: In::Path, kind: "string", required: true, values: &["container", "npm", "cargo", "maven", "nuget", "rubygems", "composer"] }, |
| 3461 | Param { name: "package_name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 3462 | ], |
| 3463 | body: &[ |
| 3464 | Field { name: "inherit_access", kind: "boolean", required: false, values: &[] }, |
| 3465 | Field { name: "visibility", kind: "string", required: false, values: &["public", "private"] }, |
| 3466 | ], |
| 3467 | }, |
| 3468 | Operation { |
| 3469 | id: "get_token_policy", |
| 3470 | method: "GET", |
| 3471 | path: "/workspaces/{workspace}/personal-access-token-policy", |
| 3472 | tag: "Personal access tokens", |
| 3473 | summary: "Get a workspace's personal access token policy", |
| 3474 | scope: Some("workspace:read"), |
| 3475 | params: &[ |
| 3476 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 3477 | ], |
| 3478 | body: &[], |
| 3479 | }, |
| 3480 | Operation { |
| 3481 | id: "list_member_tokens", |
| 3482 | method: "GET", |
| 3483 | path: "/workspaces/{workspace}/personal-access-tokens", |
| 3484 | tag: "Personal access tokens", |
| 3485 | summary: "List the personal access tokens that reach a workspace", |
| 3486 | scope: Some("access:read"), |
| 3487 | params: &[ |
| 3488 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 3489 | ], |
| 3490 | body: &[], |
| 3491 | }, |
| 3492 | Operation { |
| 3493 | id: "list_token_requests", |
| 3494 | method: "GET", |
| 3495 | path: "/workspaces/{workspace}/personal-access-token-requests", |
| 3496 | tag: "Personal access tokens", |
| 3497 | summary: "List personal access tokens waiting for approval", |
| 3498 | scope: Some("access:read"), |
| 3499 | params: &[ |
| 3500 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 3501 | ], |
| 3502 | body: &[], |
| 3503 | }, |
| 3504 | Operation { |
| 3505 | id: "review_token_request", |
| 3506 | method: "POST", |
| 3507 | path: "/workspaces/{workspace}/personal-access-token-requests/{id}", |
| 3508 | tag: "Personal access tokens", |
| 3509 | summary: "Approve or deny a personal access token", |
| 3510 | scope: Some("access:admin"), |
| 3511 | params: &[ |
| 3512 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 3513 | Param { name: "id", location: In::Path, kind: "string", required: true, values: &[] }, |
| 3514 | ], |
| 3515 | body: &[ |
| 3516 | Field { name: "decision", kind: "string", required: true, values: &["approve", "deny"] }, |
| 3517 | Field { name: "reason", kind: "string", required: false, values: &[] }, |
| 3518 | ], |
| 3519 | }, |
| 3520 | Operation { |
| 3521 | id: "revoke_member_token", |
| 3522 | method: "POST", |
| 3523 | path: "/workspaces/{workspace}/personal-access-tokens/{id}", |
| 3524 | tag: "Personal access tokens", |
| 3525 | summary: "Revoke a member's token in a workspace", |
| 3526 | scope: Some("access:admin"), |
| 3527 | params: &[ |
| 3528 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 3529 | Param { name: "id", location: In::Path, kind: "string", required: true, values: &[] }, |
| 3530 | ], |
| 3531 | body: &[ |
| 3532 | Field { name: "reason", kind: "string", required: false, values: &[] }, |
| 3533 | ], |
| 3534 | }, |
| 3535 | Operation { |
| 3536 | id: "set_token_policy", |
| 3537 | method: "PATCH", |
| 3538 | path: "/workspaces/{workspace}/personal-access-token-policy", |
| 3539 | tag: "Personal access tokens", |
| 3540 | summary: "Set a workspace's personal access token policy", |
| 3541 | scope: Some("workspace:admin"), |
| 3542 | params: &[ |
| 3543 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 3544 | ], |
| 3545 | body: &[ |
| 3546 | Field { name: "allow_tokens_for_all_workspaces", kind: "boolean", required: false, values: &[] }, |
| 3547 | Field { name: "allow_tokens_for_this_workspace", kind: "boolean", required: false, values: &[] }, |
| 3548 | Field { name: "forbid_no_expiry", kind: "boolean", required: false, values: &[] }, |
| 3549 | Field { name: "max_lifetime_days", kind: "integer", required: false, values: &[] }, |
| 3550 | Field { name: "require_approval", kind: "boolean", required: false, values: &[] }, |
| 3551 | ], |
| 3552 | }, |
| 3553 | Operation { |
| 3554 | id: "list_pinned_projects", |
| 3555 | method: "GET", |
| 3556 | path: "/user/pinned_projects/{workspace}", |
| 3557 | tag: "Pinned projects", |
| 3558 | summary: "List your pinned projects", |
| 3559 | scope: Some("account:read"), |
| 3560 | params: &[ |
| 3561 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 3562 | ], |
| 3563 | body: &[], |
| 3564 | }, |
| 3565 | Operation { |
| 3566 | id: "pin_project", |
| 3567 | method: "PUT", |
| 3568 | path: "/user/pinned_projects/{workspace}/{project}", |
| 3569 | tag: "Pinned projects", |
| 3570 | summary: "Pin a project", |
| 3571 | scope: Some("account:write"), |
| 3572 | params: &[ |
| 3573 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 3574 | Param { name: "project", location: In::Path, kind: "string", required: true, values: &[] }, |
| 3575 | ], |
| 3576 | body: &[ |
| 3577 | Field { name: "position", kind: "integer", required: false, values: &[] }, |
| 3578 | ], |
| 3579 | }, |
| 3580 | Operation { |
| 3581 | id: "reorder_pinned_projects", |
| 3582 | method: "PUT", |
| 3583 | path: "/user/pinned_projects/{workspace}", |
| 3584 | tag: "Pinned projects", |
| 3585 | summary: "Reorder your pinned projects", |
| 3586 | scope: Some("account:write"), |
| 3587 | params: &[ |
| 3588 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 3589 | ], |
| 3590 | body: &[ |
| 3591 | Field { name: "projects", kind: "array", required: true, values: &[] }, |
| 3592 | ], |
| 3593 | }, |
| 3594 | Operation { |
| 3595 | id: "unpin_project", |
| 3596 | method: "DELETE", |
| 3597 | path: "/user/pinned_projects/{workspace}/{project}", |
| 3598 | tag: "Pinned projects", |
| 3599 | summary: "Unpin a project", |
| 3600 | scope: Some("account:write"), |
| 3601 | params: &[ |
| 3602 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 3603 | Param { name: "project", location: In::Path, kind: "string", required: true, values: &[] }, |
| 3604 | ], |
| 3605 | body: &[], |
| 3606 | }, |
| 3607 | Operation { |
| 3608 | id: "get_project", |
| 3609 | method: "GET", |
| 3610 | path: "/workspaces/{workspace}/projects/{project}", |
| 3611 | tag: "Projects", |
| 3612 | summary: "Get a project", |
| 3613 | scope: Some("repo:read"), |
| 3614 | params: &[ |
| 3615 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 3616 | Param { name: "project", location: In::Path, kind: "string", required: true, values: &[] }, |
| 3617 | ], |
| 3618 | body: &[], |
| 3619 | }, |
| 3620 | Operation { |
| 3621 | id: "list_projects", |
| 3622 | method: "GET", |
| 3623 | path: "/workspaces/{workspace}/projects", |
| 3624 | tag: "Projects", |
| 3625 | summary: "List a workspace's projects", |
| 3626 | scope: Some("repo:read"), |
| 3627 | params: &[ |
| 3628 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 3629 | ], |
| 3630 | body: &[], |
| 3631 | }, |
| 3632 | Operation { |
| 3633 | id: "update_project", |
| 3634 | method: "PATCH", |
| 3635 | path: "/workspaces/{workspace}/projects/{project}", |
| 3636 | tag: "Projects", |
| 3637 | summary: "Update a project", |
| 3638 | scope: Some("repo:write"), |
| 3639 | params: &[ |
| 3640 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 3641 | Param { name: "project", location: In::Path, kind: "string", required: true, values: &[] }, |
| 3642 | ], |
| 3643 | body: &[ |
| 3644 | Field { name: "description", kind: "string", required: false, values: &[] }, |
| 3645 | Field { name: "docs_url", kind: "string", required: false, values: &[] }, |
| 3646 | Field { name: "homepage", kind: "string", required: false, values: &[] }, |
| 3647 | Field { name: "kind", kind: "string", required: false, values: &["auto", "app", "library", "tool", "docs", "other"] }, |
| 3648 | Field { name: "links", kind: "array", required: false, values: &[] }, |
| 3649 | Field { name: "name", kind: "string", required: false, values: &[] }, |
| 3650 | Field { name: "production_url", kind: "string", required: false, values: &[] }, |
| 3651 | Field { name: "root_dir", kind: "string", required: false, values: &[] }, |
| 3652 | Field { name: "runs", kind: "string", required: false, values: &["auto", "g1t", "elsewhere"] }, |
| 3653 | ], |
| 3654 | }, |
| 3655 | Operation { |
| 3656 | id: "close_pull_request", |
| 3657 | method: "POST", |
| 3658 | path: "/repos/{owner}/{name}/pulls/{number}/close", |
| 3659 | tag: "Pull requests", |
| 3660 | summary: "Close a pull request", |
| 3661 | scope: Some("pull_requests:write"), |
| 3662 | params: &[ |
| 3663 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 3664 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 3665 | Param { name: "number", location: In::Path, kind: "integer", required: true, values: &[] }, |
| 3666 | ], |
| 3667 | body: &[], |
| 3668 | }, |
| 3669 | Operation { |
| 3670 | id: "convert_pull_request_to_draft", |
| 3671 | method: "POST", |
| 3672 | path: "/repos/{owner}/{name}/pulls/{number}/draft", |
| 3673 | tag: "Pull requests", |
| 3674 | summary: "Convert a pull request to a draft", |
| 3675 | scope: Some("pull_requests:write"), |
| 3676 | params: &[ |
| 3677 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 3678 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 3679 | Param { name: "number", location: In::Path, kind: "integer", required: true, values: &[] }, |
| 3680 | ], |
| 3681 | body: &[], |
| 3682 | }, |
| 3683 | Operation { |
| 3684 | id: "create_pull_request", |
| 3685 | method: "POST", |
| 3686 | path: "/repos/{owner}/{name}/pulls", |
| 3687 | tag: "Pull requests", |
| 3688 | summary: "Create a pull request", |
| 3689 | scope: Some("pull_requests:write"), |
| 3690 | params: &[ |
| 3691 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 3692 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 3693 | ], |
| 3694 | body: &[ |
| 3695 | Field { name: "agent", kind: "string", required: false, values: &[] }, |
| 3696 | Field { name: "base", kind: "string", required: false, values: &[] }, |
| 3697 | Field { name: "body", kind: "string", required: false, values: &[] }, |
| 3698 | Field { name: "branch", kind: "string", required: false, values: &[] }, |
| 3699 | Field { name: "head_repo", kind: "string", required: false, values: &[] }, |
| 3700 | Field { name: "issue", kind: "integer", required: false, values: &[] }, |
| 3701 | Field { name: "title", kind: "string", required: false, values: &[] }, |
| 3702 | ], |
| 3703 | }, |
| 3704 | Operation { |
| 3705 | id: "delete_pull_request_head_branch", |
| 3706 | method: "DELETE", |
| 3707 | path: "/repos/{owner}/{name}/pulls/{number}/head-branch", |
| 3708 | tag: "Pull requests", |
| 3709 | summary: "Delete a pull request's branch", |
| 3710 | scope: Some("pull_requests:write"), |
| 3711 | params: &[ |
| 3712 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 3713 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 3714 | Param { name: "number", location: In::Path, kind: "integer", required: true, values: &[] }, |
| 3715 | ], |
| 3716 | body: &[], |
| 3717 | }, |
| 3718 | Operation { |
| 3719 | id: "disable_pull_request_auto_merge", |
| 3720 | method: "DELETE", |
| 3721 | path: "/repos/{owner}/{name}/pulls/{number}/auto-merge", |
| 3722 | tag: "Pull requests", |
| 3723 | summary: "Disable auto-merge", |
| 3724 | scope: Some("pull_requests:write"), |
| 3725 | params: &[ |
| 3726 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 3727 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 3728 | Param { name: "number", location: In::Path, kind: "integer", required: true, values: &[] }, |
| 3729 | ], |
| 3730 | body: &[], |
| 3731 | }, |
| 3732 | Operation { |
| 3733 | id: "enable_pull_request_auto_merge", |
| 3734 | method: "PUT", |
| 3735 | path: "/repos/{owner}/{name}/pulls/{number}/auto-merge", |
| 3736 | tag: "Pull requests", |
| 3737 | summary: "Enable auto-merge", |
| 3738 | scope: Some("pull_requests:write"), |
| 3739 | params: &[ |
| 3740 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 3741 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 3742 | Param { name: "number", location: In::Path, kind: "integer", required: true, values: &[] }, |
| 3743 | ], |
| 3744 | body: &[ |
| 3745 | Field { name: "commit_message", kind: "string", required: false, values: &[] }, |
| 3746 | Field { name: "commit_title", kind: "string", required: false, values: &[] }, |
| 3747 | Field { name: "merge_method", kind: "string", required: false, values: &["merge", "squash", "rebase", "fast_forward"] }, |
| 3748 | ], |
| 3749 | }, |
| 3750 | Operation { |
| 3751 | id: "get_merge_queue", |
| 3752 | method: "GET", |
| 3753 | path: "/repos/{owner}/{name}/queue", |
| 3754 | tag: "Pull requests", |
| 3755 | summary: "Get the merge queue", |
| 3756 | scope: Some("pull_requests:read"), |
| 3757 | params: &[ |
| 3758 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 3759 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 3760 | ], |
| 3761 | body: &[], |
| 3762 | }, |
| 3763 | Operation { |
| 3764 | id: "get_pull_request", |
| 3765 | method: "GET", |
| 3766 | path: "/repos/{owner}/{name}/pulls/{number}", |
| 3767 | tag: "Pull requests", |
| 3768 | summary: "Get a pull request", |
| 3769 | scope: Some("pull_requests:read"), |
| 3770 | params: &[ |
| 3771 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 3772 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 3773 | Param { name: "number", location: In::Path, kind: "integer", required: true, values: &[] }, |
| 3774 | ], |
| 3775 | body: &[], |
| 3776 | }, |
| 3777 | Operation { |
| 3778 | id: "get_pull_request_changes", |
| 3779 | method: "GET", |
| 3780 | path: "/repos/{owner}/{name}/pulls/{number}/changes", |
| 3781 | tag: "Pull requests", |
| 3782 | summary: "Get a pull request's changes", |
| 3783 | scope: Some("pull_requests:read"), |
| 3784 | params: &[ |
| 3785 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 3786 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 3787 | Param { name: "number", location: In::Path, kind: "integer", required: true, values: &[] }, |
| 3788 | Param { name: "paths", location: In::Query, kind: "array", required: false, values: &[] }, |
| 3789 | ], |
| 3790 | body: &[], |
| 3791 | }, |
| 3792 | Operation { |
| 3793 | id: "get_pull_request_merge_options", |
| 3794 | method: "GET", |
| 3795 | path: "/repos/{owner}/{name}/pulls/{number}/merge-options", |
| 3796 | tag: "Pull requests", |
| 3797 | summary: "Get a pull request's merge options", |
| 3798 | scope: Some("pull_requests:read"), |
| 3799 | params: &[ |
| 3800 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 3801 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 3802 | Param { name: "number", location: In::Path, kind: "integer", required: true, values: &[] }, |
| 3803 | ], |
| 3804 | body: &[], |
| 3805 | }, |
| 3806 | Operation { |
| 3807 | id: "list_pull_requests", |
| 3808 | method: "GET", |
| 3809 | path: "/repos/{owner}/{name}/pulls", |
| 3810 | tag: "Pull requests", |
| 3811 | summary: "List pull requests", |
| 3812 | scope: Some("pull_requests:read"), |
| 3813 | params: &[ |
| 3814 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 3815 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 3816 | Param { name: "state", location: In::Query, kind: "string", required: false, values: &["open", "closed"] }, |
| 3817 | Param { name: "label", location: In::Query, kind: "string", required: false, values: &[] }, |
| 3818 | Param { name: "milestone", location: In::Query, kind: "integer", required: false, values: &[] }, |
| 3819 | Param { name: "base", location: In::Query, kind: "string", required: false, values: &[] }, |
| 3820 | ], |
| 3821 | body: &[], |
| 3822 | }, |
| 3823 | Operation { |
| 3824 | id: "mark_pull_request_ready", |
| 3825 | method: "POST", |
| 3826 | path: "/repos/{owner}/{name}/pulls/{number}/ready", |
| 3827 | tag: "Pull requests", |
| 3828 | summary: "Mark a pull request ready", |
| 3829 | scope: Some("pull_requests:write"), |
| 3830 | params: &[ |
| 3831 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 3832 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 3833 | Param { name: "number", location: In::Path, kind: "integer", required: true, values: &[] }, |
| 3834 | ], |
| 3835 | body: &[ |
| 3836 | Field { name: "summary", kind: "string", required: true, values: &[] }, |
| 3837 | ], |
| 3838 | }, |
| 3839 | Operation { |
| 3840 | id: "merge_pull_request", |
| 3841 | method: "POST", |
| 3842 | path: "/repos/{owner}/{name}/pulls/{number}/merge", |
| 3843 | tag: "Pull requests", |
| 3844 | summary: "Merge a pull request", |
| 3845 | scope: Some("pull_requests:write"), |
| 3846 | params: &[ |
| 3847 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 3848 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 3849 | Param { name: "number", location: In::Path, kind: "integer", required: true, values: &[] }, |
| 3850 | ], |
| 3851 | body: &[ |
| 3852 | Field { name: "bypass_rules", kind: "boolean", required: false, values: &[] }, |
| 3853 | Field { name: "commit_message", kind: "string", required: false, values: &[] }, |
| 3854 | Field { name: "commit_title", kind: "string", required: false, values: &[] }, |
| 3855 | Field { name: "delete_branch", kind: "boolean", required: false, values: &[] }, |
| 3856 | Field { name: "ignore_checks", kind: "boolean", required: false, values: &[] }, |
| 3857 | Field { name: "keep_issue_open", kind: "boolean", required: false, values: &[] }, |
| 3858 | Field { name: "merge_method", kind: "string", required: false, values: &["merge", "squash", "rebase", "fast_forward"] }, |
| 3859 | Field { name: "sha", kind: "string", required: false, values: &[] }, |
| 3860 | ], |
| 3861 | }, |
| 3862 | Operation { |
| 3863 | id: "remove_requested_reviewers", |
| 3864 | method: "DELETE", |
| 3865 | path: "/repos/{owner}/{name}/pulls/{number}/requested_reviewers", |
| 3866 | tag: "Pull requests", |
| 3867 | summary: "Remove requested reviewers", |
| 3868 | scope: Some("pull_requests:write"), |
| 3869 | params: &[ |
| 3870 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 3871 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 3872 | Param { name: "number", location: In::Path, kind: "integer", required: true, values: &[] }, |
| 3873 | ], |
| 3874 | body: &[ |
| 3875 | Field { name: "reviewers", kind: "array", required: false, values: &[] }, |
| 3876 | Field { name: "team_reviewers", kind: "array", required: false, values: &[] }, |
| 3877 | ], |
| 3878 | }, |
| 3879 | Operation { |
| 3880 | id: "reopen_pull_request", |
| 3881 | method: "POST", |
| 3882 | path: "/repos/{owner}/{name}/pulls/{number}/reopen", |
| 3883 | tag: "Pull requests", |
| 3884 | summary: "Reopen a pull request", |
| 3885 | scope: Some("pull_requests:write"), |
| 3886 | params: &[ |
| 3887 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 3888 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 3889 | Param { name: "number", location: In::Path, kind: "integer", required: true, values: &[] }, |
| 3890 | ], |
| 3891 | body: &[], |
| 3892 | }, |
| 3893 | Operation { |
| 3894 | id: "request_reviewers", |
| 3895 | method: "POST", |
| 3896 | path: "/repos/{owner}/{name}/pulls/{number}/requested_reviewers", |
| 3897 | tag: "Pull requests", |
| 3898 | summary: "Request reviewers", |
| 3899 | scope: Some("pull_requests:write"), |
| 3900 | params: &[ |
| 3901 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 3902 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 3903 | Param { name: "number", location: In::Path, kind: "integer", required: true, values: &[] }, |
| 3904 | ], |
| 3905 | body: &[ |
| 3906 | Field { name: "reviewers", kind: "array", required: false, values: &[] }, |
| 3907 | Field { name: "team_reviewers", kind: "array", required: false, values: &[] }, |
| 3908 | ], |
| 3909 | }, |
| 3910 | Operation { |
| 3911 | id: "restore_pull_request_head_branch", |
| 3912 | method: "POST", |
| 3913 | path: "/repos/{owner}/{name}/pulls/{number}/head-branch/restore", |
| 3914 | tag: "Pull requests", |
| 3915 | summary: "Restore a pull request's branch", |
| 3916 | scope: Some("pull_requests:write"), |
| 3917 | params: &[ |
| 3918 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 3919 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 3920 | Param { name: "number", location: In::Path, kind: "integer", required: true, values: &[] }, |
| 3921 | ], |
| 3922 | body: &[], |
| 3923 | }, |
| 3924 | Operation { |
| 3925 | id: "review_pull_request", |
| 3926 | method: "POST", |
| 3927 | path: "/repos/{owner}/{name}/pulls/{number}/reviews", |
| 3928 | tag: "Pull requests", |
| 3929 | summary: "Review a pull request", |
| 3930 | scope: Some("pull_requests:write"), |
| 3931 | params: &[ |
| 3932 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 3933 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 3934 | Param { name: "number", location: In::Path, kind: "integer", required: true, values: &[] }, |
| 3935 | ], |
| 3936 | body: &[ |
| 3937 | Field { name: "body", kind: "string", required: false, values: &[] }, |
| 3938 | Field { name: "verdict", kind: "string", required: true, values: &["approve", "request_changes"] }, |
| 3939 | ], |
| 3940 | }, |
| 3941 | Operation { |
| 3942 | id: "update_pull_request", |
| 3943 | method: "PATCH", |
| 3944 | path: "/repos/{owner}/{name}/pulls/{number}", |
| 3945 | tag: "Pull requests", |
| 3946 | summary: "Update a pull request", |
| 3947 | scope: Some("pull_requests:write"), |
| 3948 | params: &[ |
| 3949 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 3950 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 3951 | Param { name: "number", location: In::Path, kind: "integer", required: true, values: &[] }, |
| 3952 | ], |
| 3953 | body: &[ |
| 3954 | Field { name: "assignees", kind: "array", required: false, values: &[] }, |
| 3955 | Field { name: "base", kind: "string", required: false, values: &[] }, |
| 3956 | Field { name: "labels", kind: "array", required: false, values: &[] }, |
| 3957 | Field { name: "milestone", kind: "integer", required: false, values: &[] }, |
| 3958 | Field { name: "reviewers", kind: "array", required: false, values: &[] }, |
| 3959 | Field { name: "state", kind: "string", required: false, values: &["open", "closed"] }, |
| 3960 | ], |
| 3961 | }, |
| 3962 | Operation { |
| 3963 | id: "update_pull_request_branch", |
| 3964 | method: "PUT", |
| 3965 | path: "/repos/{owner}/{name}/pulls/{number}/update-branch", |
| 3966 | tag: "Pull requests", |
| 3967 | summary: "Update a pull request's branch", |
| 3968 | scope: Some("pull_requests:write"), |
| 3969 | params: &[ |
| 3970 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 3971 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 3972 | Param { name: "number", location: In::Path, kind: "integer", required: true, values: &[] }, |
| 3973 | ], |
| 3974 | body: &[ |
| 3975 | Field { name: "expected_head_sha", kind: "string", required: false, values: &[] }, |
| 3976 | Field { name: "update_method", kind: "string", required: false, values: &["merge", "rebase"] }, |
| 3977 | ], |
| 3978 | }, |
| 3979 | Operation { |
| 3980 | id: "create_release", |
| 3981 | method: "POST", |
| 3982 | path: "/repos/{owner}/{name}/releases", |
| 3983 | tag: "Releases", |
| 3984 | summary: "Create a release", |
| 3985 | scope: Some("repo:write"), |
| 3986 | params: &[ |
| 3987 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 3988 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 3989 | ], |
| 3990 | body: &[ |
| 3991 | Field { name: "body", kind: "string", required: false, values: &[] }, |
| 3992 | Field { name: "draft", kind: "boolean", required: false, values: &[] }, |
| 3993 | Field { name: "prerelease", kind: "boolean", required: false, values: &[] }, |
| 3994 | Field { name: "release_name", kind: "string", required: false, values: &[] }, |
| 3995 | Field { name: "tag_name", kind: "string", required: true, values: &[] }, |
| 3996 | Field { name: "target", kind: "string", required: false, values: &[] }, |
| 3997 | ], |
| 3998 | }, |
| 3999 | Operation { |
| 4000 | id: "delete_release", |
| 4001 | method: "DELETE", |
| 4002 | path: "/repos/{owner}/{name}/releases/{id}", |
| 4003 | tag: "Releases", |
| 4004 | summary: "Delete a release", |
| 4005 | scope: Some("repo:write"), |
| 4006 | params: &[ |
| 4007 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 4008 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 4009 | Param { name: "id", location: In::Path, kind: "string", required: true, values: &[] }, |
| 4010 | ], |
| 4011 | body: &[], |
| 4012 | }, |
| 4013 | Operation { |
| 4014 | id: "get_latest_release", |
| 4015 | method: "GET", |
| 4016 | path: "/repos/{owner}/{name}/releases/latest", |
| 4017 | tag: "Releases", |
| 4018 | summary: "Get the latest release", |
| 4019 | scope: Some("repo:read"), |
| 4020 | params: &[ |
| 4021 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 4022 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 4023 | ], |
| 4024 | body: &[], |
| 4025 | }, |
| 4026 | Operation { |
| 4027 | id: "get_release", |
| 4028 | method: "GET", |
| 4029 | path: "/repos/{owner}/{name}/releases/{id}", |
| 4030 | tag: "Releases", |
| 4031 | summary: "Get a release", |
| 4032 | scope: Some("repo:read"), |
| 4033 | params: &[ |
| 4034 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 4035 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 4036 | Param { name: "id", location: In::Path, kind: "string", required: true, values: &[] }, |
| 4037 | ], |
| 4038 | body: &[], |
| 4039 | }, |
| 4040 | Operation { |
| 4041 | id: "get_release_by_tag", |
| 4042 | method: "GET", |
| 4043 | path: "/repos/{owner}/{name}/releases/tags/{tag}", |
| 4044 | tag: "Releases", |
| 4045 | summary: "Get a release by its tag", |
| 4046 | scope: Some("repo:read"), |
| 4047 | params: &[ |
| 4048 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 4049 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 4050 | Param { name: "tag", location: In::Path, kind: "string", required: true, values: &[] }, |
| 4051 | ], |
| 4052 | body: &[], |
| 4053 | }, |
| 4054 | Operation { |
| 4055 | id: "list_releases", |
| 4056 | method: "GET", |
| 4057 | path: "/repos/{owner}/{name}/releases", |
| 4058 | tag: "Releases", |
| 4059 | summary: "List releases", |
| 4060 | scope: Some("repo:read"), |
| 4061 | params: &[ |
| 4062 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 4063 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 4064 | ], |
| 4065 | body: &[], |
| 4066 | }, |
| 4067 | Operation { |
| 4068 | id: "update_release", |
| 4069 | method: "PATCH", |
| 4070 | path: "/repos/{owner}/{name}/releases/{id}", |
| 4071 | tag: "Releases", |
| 4072 | summary: "Update a release", |
| 4073 | scope: Some("repo:write"), |
| 4074 | params: &[ |
| 4075 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 4076 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 4077 | Param { name: "id", location: In::Path, kind: "string", required: true, values: &[] }, |
| 4078 | ], |
| 4079 | body: &[ |
| 4080 | Field { name: "body", kind: "string", required: false, values: &[] }, |
| 4081 | Field { name: "draft", kind: "boolean", required: false, values: &[] }, |
| 4082 | Field { name: "prerelease", kind: "boolean", required: false, values: &[] }, |
| 4083 | Field { name: "release_name", kind: "string", required: false, values: &[] }, |
| 4084 | ], |
| 4085 | }, |
| 4086 | Operation { |
| 4087 | id: "archive_repo", |
| 4088 | method: "POST", |
| 4089 | path: "/repos/{owner}/{name}/archive", |
| 4090 | tag: "Repositories", |
| 4091 | summary: "Archive a repository", |
| 4092 | scope: Some("repo:admin"), |
| 4093 | params: &[ |
| 4094 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 4095 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 4096 | ], |
| 4097 | body: &[], |
| 4098 | }, |
| 4099 | Operation { |
| 4100 | id: "create_branch", |
| 4101 | method: "POST", |
| 4102 | path: "/repos/{owner}/{name}/branches", |
| 4103 | tag: "Repositories", |
| 4104 | summary: "Create a branch", |
| 4105 | scope: Some("repo:write"), |
| 4106 | params: &[ |
| 4107 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 4108 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 4109 | ], |
| 4110 | body: &[ |
| 4111 | Field { name: "from", kind: "string", required: false, values: &[] }, |
| 4112 | Field { name: "name", kind: "string", required: true, values: &[] }, |
| 4113 | ], |
| 4114 | }, |
| 4115 | Operation { |
| 4116 | id: "create_repo", |
| 4117 | method: "POST", |
| 4118 | path: "/repos", |
| 4119 | tag: "Repositories", |
| 4120 | summary: "Create a repository", |
| 4121 | scope: Some("repo:write"), |
| 4122 | params: &[], |
| 4123 | body: &[ |
| 4124 | Field { name: "description", kind: "string", required: false, values: &[] }, |
| 4125 | Field { name: "import_url", kind: "string", required: false, values: &[] }, |
| 4126 | Field { name: "name", kind: "string", required: true, values: &[] }, |
| 4127 | Field { name: "private", kind: "boolean", required: false, values: &[] }, |
| 4128 | Field { name: "workspace", kind: "string", required: false, values: &[] }, |
| 4129 | ], |
| 4130 | }, |
| 4131 | Operation { |
| 4132 | id: "delete_branch", |
| 4133 | method: "DELETE", |
| 4134 | path: "/repos/{owner}/{name}/branches/{branch}", |
| 4135 | tag: "Repositories", |
| 4136 | summary: "Delete a branch", |
| 4137 | scope: Some("repo:write"), |
| 4138 | params: &[ |
| 4139 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 4140 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 4141 | Param { name: "branch", location: In::Path, kind: "string", required: true, values: &[] }, |
| 4142 | ], |
| 4143 | body: &[ |
| 4144 | Field { name: "head", kind: "string", required: false, values: &[] }, |
| 4145 | ], |
| 4146 | }, |
| 4147 | Operation { |
| 4148 | id: "delete_repo", |
| 4149 | method: "DELETE", |
| 4150 | path: "/repos/{owner}/{name}", |
| 4151 | tag: "Repositories", |
| 4152 | summary: "Delete a repository", |
| 4153 | scope: Some("repo:admin"), |
| 4154 | params: &[ |
| 4155 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 4156 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 4157 | ], |
| 4158 | body: &[ |
| 4159 | Field { name: "confirm", kind: "string", required: true, values: &[] }, |
| 4160 | ], |
| 4161 | }, |
| 4162 | Operation { |
| 4163 | id: "detach_fork", |
| 4164 | method: "POST", |
| 4165 | path: "/repos/{owner}/{name}/detach", |
| 4166 | tag: "Repositories", |
| 4167 | summary: "Detach a fork", |
| 4168 | scope: Some("repo:admin"), |
| 4169 | params: &[ |
| 4170 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 4171 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 4172 | ], |
| 4173 | body: &[], |
| 4174 | }, |
| 4175 | Operation { |
| 4176 | id: "download_tarball_archive", |
| 4177 | method: "GET", |
| 4178 | path: "/repos/{owner}/{name}/tarball/{ref}", |
| 4179 | tag: "Repositories", |
| 4180 | summary: "Download a repository archive (tar)", |
| 4181 | scope: Some("code:read"), |
| 4182 | params: &[ |
| 4183 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 4184 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 4185 | Param { name: "ref", location: In::Path, kind: "string", required: true, values: &[] }, |
| 4186 | ], |
| 4187 | body: &[], |
| 4188 | }, |
| 4189 | Operation { |
| 4190 | id: "download_zipball_archive", |
| 4191 | method: "GET", |
| 4192 | path: "/repos/{owner}/{name}/zipball/{ref}", |
| 4193 | tag: "Repositories", |
| 4194 | summary: "Download a repository archive (zip)", |
| 4195 | scope: Some("code:read"), |
| 4196 | params: &[ |
| 4197 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 4198 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 4199 | Param { name: "ref", location: In::Path, kind: "string", required: true, values: &[] }, |
| 4200 | ], |
| 4201 | body: &[], |
| 4202 | }, |
| 4203 | Operation { |
| 4204 | id: "fork_repo", |
| 4205 | method: "POST", |
| 4206 | path: "/repos/{owner}/{name}/forks", |
| 4207 | tag: "Repositories", |
| 4208 | summary: "Fork a repository", |
| 4209 | scope: Some("repo:write"), |
| 4210 | params: &[ |
| 4211 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 4212 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 4213 | ], |
| 4214 | body: &[ |
| 4215 | Field { name: "default_branch_only", kind: "boolean", required: false, values: &[] }, |
| 4216 | Field { name: "description", kind: "string", required: false, values: &[] }, |
| 4217 | Field { name: "name", kind: "string", required: false, values: &[] }, |
| 4218 | Field { name: "workspace", kind: "string", required: false, values: &[] }, |
| 4219 | ], |
| 4220 | }, |
| 4221 | Operation { |
| 4222 | id: "get_codeowners_errors", |
| 4223 | method: "GET", |
| 4224 | path: "/repos/{owner}/{name}/codeowners/errors", |
| 4225 | tag: "Repositories", |
| 4226 | summary: "List CODEOWNERS errors", |
| 4227 | scope: Some("repo:read"), |
| 4228 | params: &[ |
| 4229 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 4230 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 4231 | Param { name: "ref", location: In::Query, kind: "string", required: false, values: &[] }, |
| 4232 | ], |
| 4233 | body: &[], |
| 4234 | }, |
| 4235 | Operation { |
| 4236 | id: "get_contents", |
| 4237 | method: "GET", |
| 4238 | path: "/repos/{owner}/{name}/contents", |
| 4239 | tag: "Repositories", |
| 4240 | summary: "Get repository contents", |
| 4241 | scope: Some("code:read"), |
| 4242 | params: &[ |
| 4243 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 4244 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 4245 | Param { name: "path", location: In::Query, kind: "string", required: false, values: &[] }, |
| 4246 | Param { name: "ref", location: In::Query, kind: "string", required: false, values: &[] }, |
| 4247 | ], |
| 4248 | body: &[], |
| 4249 | }, |
| 4250 | Operation { |
| 4251 | id: "get_repo", |
| 4252 | method: "GET", |
| 4253 | path: "/repos/{owner}/{name}", |
| 4254 | tag: "Repositories", |
| 4255 | summary: "Get a repository", |
| 4256 | scope: Some("repo:read"), |
| 4257 | params: &[ |
| 4258 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 4259 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 4260 | ], |
| 4261 | body: &[], |
| 4262 | }, |
| 4263 | Operation { |
| 4264 | id: "get_repo_settings", |
| 4265 | method: "GET", |
| 4266 | path: "/repos/{owner}/{name}/settings", |
| 4267 | tag: "Repositories", |
| 4268 | summary: "Get repository settings", |
| 4269 | scope: Some("repo:read"), |
| 4270 | params: &[ |
| 4271 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 4272 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 4273 | ], |
| 4274 | body: &[], |
| 4275 | }, |
| 4276 | Operation { |
| 4277 | id: "list_check_names", |
| 4278 | method: "GET", |
| 4279 | path: "/repos/{owner}/{name}/check-names", |
| 4280 | tag: "Repositories", |
| 4281 | summary: "List check names", |
| 4282 | scope: Some("repo:read"), |
| 4283 | params: &[ |
| 4284 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 4285 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 4286 | ], |
| 4287 | body: &[], |
| 4288 | }, |
| 4289 | Operation { |
| 4290 | id: "list_commits", |
| 4291 | method: "GET", |
| 4292 | path: "/repos/{owner}/{name}/commits", |
| 4293 | tag: "Repositories", |
| 4294 | summary: "List commits", |
| 4295 | scope: Some("code:read"), |
| 4296 | params: &[ |
| 4297 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 4298 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 4299 | Param { name: "ref", location: In::Query, kind: "string", required: false, values: &[] }, |
| 4300 | Param { name: "path", location: In::Query, kind: "string", required: false, values: &[] }, |
| 4301 | Param { name: "limit", location: In::Query, kind: "integer", required: false, values: &[] }, |
| 4302 | ], |
| 4303 | body: &[], |
| 4304 | }, |
| 4305 | Operation { |
| 4306 | id: "list_deleted_repos", |
| 4307 | method: "GET", |
| 4308 | path: "/workspaces/{workspace}/repos/deleted", |
| 4309 | tag: "Repositories", |
| 4310 | summary: "List recently deleted repositories", |
| 4311 | scope: Some("repo:read"), |
| 4312 | params: &[ |
| 4313 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 4314 | ], |
| 4315 | body: &[], |
| 4316 | }, |
| 4317 | Operation { |
| 4318 | id: "list_events", |
| 4319 | method: "GET", |
| 4320 | path: "/repos/{owner}/{name}/events", |
| 4321 | tag: "Repositories", |
| 4322 | summary: "List repository events", |
| 4323 | scope: Some("repo:read"), |
| 4324 | params: &[ |
| 4325 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 4326 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 4327 | Param { name: "before", location: In::Query, kind: "string", required: false, values: &[] }, |
| 4328 | Param { name: "after", location: In::Query, kind: "string", required: false, values: &[] }, |
| 4329 | Param { name: "types", location: In::Query, kind: "array", required: false, values: &[] }, |
| 4330 | Param { name: "numbers", location: In::Query, kind: "array", required: false, values: &[] }, |
| 4331 | Param { name: "since", location: In::Query, kind: "string", required: false, values: &[] }, |
| 4332 | Param { name: "limit", location: In::Query, kind: "integer", required: false, values: &[] }, |
| 4333 | Param { name: "wait", location: In::Query, kind: "integer", required: false, values: &[] }, |
| 4334 | ], |
| 4335 | body: &[], |
| 4336 | }, |
| 4337 | Operation { |
| 4338 | id: "list_forks", |
| 4339 | method: "GET", |
| 4340 | path: "/repos/{owner}/{name}/forks", |
| 4341 | tag: "Repositories", |
| 4342 | summary: "List forks", |
| 4343 | scope: Some("repo:read"), |
| 4344 | params: &[ |
| 4345 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 4346 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 4347 | Param { name: "limit", location: In::Query, kind: "integer", required: false, values: &[] }, |
| 4348 | ], |
| 4349 | body: &[], |
| 4350 | }, |
| 4351 | Operation { |
| 4352 | id: "list_repos", |
| 4353 | method: "GET", |
| 4354 | path: "/repos", |
| 4355 | tag: "Repositories", |
| 4356 | summary: "List repositories", |
| 4357 | scope: Some("repo:read"), |
| 4358 | params: &[ |
| 4359 | Param { name: "q", location: In::Query, kind: "string", required: false, values: &[] }, |
| 4360 | ], |
| 4361 | body: &[], |
| 4362 | }, |
| 4363 | Operation { |
| 4364 | id: "purge_repo", |
| 4365 | method: "POST", |
| 4366 | path: "/repos/{owner}/{name}/purge", |
| 4367 | tag: "Repositories", |
| 4368 | summary: "Purge a deleted repository", |
| 4369 | scope: Some("repo:admin"), |
| 4370 | params: &[ |
| 4371 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 4372 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 4373 | ], |
| 4374 | body: &[ |
| 4375 | Field { name: "confirm", kind: "string", required: true, values: &[] }, |
| 4376 | ], |
| 4377 | }, |
| 4378 | Operation { |
| 4379 | id: "rename_branch", |
| 4380 | method: "POST", |
| 4381 | path: "/repos/{owner}/{name}/branches/{branch}/rename", |
| 4382 | tag: "Repositories", |
| 4383 | summary: "Rename a branch", |
| 4384 | scope: Some("repo:write"), |
| 4385 | params: &[ |
| 4386 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 4387 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 4388 | Param { name: "branch", location: In::Path, kind: "string", required: true, values: &[] }, |
| 4389 | ], |
| 4390 | body: &[ |
| 4391 | Field { name: "new_name", kind: "string", required: true, values: &[] }, |
| 4392 | ], |
| 4393 | }, |
| 4394 | Operation { |
| 4395 | id: "rename_repo", |
| 4396 | method: "POST", |
| 4397 | path: "/repos/{owner}/{name}/rename", |
| 4398 | tag: "Repositories", |
| 4399 | summary: "Rename a repository", |
| 4400 | scope: Some("repo:admin"), |
| 4401 | params: &[ |
| 4402 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 4403 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 4404 | ], |
| 4405 | body: &[ |
| 4406 | Field { name: "name", kind: "string", required: true, values: &[] }, |
| 4407 | ], |
| 4408 | }, |
| 4409 | Operation { |
| 4410 | id: "restore_repo", |
| 4411 | method: "POST", |
| 4412 | path: "/repos/{owner}/{name}/restore", |
| 4413 | tag: "Repositories", |
| 4414 | summary: "Restore a deleted repository", |
| 4415 | scope: Some("repo:admin"), |
| 4416 | params: &[ |
| 4417 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 4418 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 4419 | ], |
| 4420 | body: &[], |
| 4421 | }, |
| 4422 | Operation { |
| 4423 | id: "set_repo_visibility", |
| 4424 | method: "POST", |
| 4425 | path: "/repos/{owner}/{name}/visibility", |
| 4426 | tag: "Repositories", |
| 4427 | summary: "Change a repository's visibility", |
| 4428 | scope: Some("repo:admin"), |
| 4429 | params: &[ |
| 4430 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 4431 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 4432 | ], |
| 4433 | body: &[ |
| 4434 | Field { name: "confirm", kind: "string", required: true, values: &[] }, |
| 4435 | Field { name: "private", kind: "boolean", required: true, values: &[] }, |
| 4436 | ], |
| 4437 | }, |
| 4438 | Operation { |
| 4439 | id: "sync_fork", |
| 4440 | method: "POST", |
| 4441 | path: "/repos/{owner}/{name}/merge-upstream", |
| 4442 | tag: "Repositories", |
| 4443 | summary: "Sync a fork", |
| 4444 | scope: Some("repo:write"), |
| 4445 | params: &[ |
| 4446 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 4447 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 4448 | ], |
| 4449 | body: &[ |
| 4450 | Field { name: "branch", kind: "string", required: false, values: &[] }, |
| 4451 | ], |
| 4452 | }, |
| 4453 | Operation { |
| 4454 | id: "transfer_repo", |
| 4455 | method: "POST", |
| 4456 | path: "/repos/{owner}/{name}/transfer", |
| 4457 | tag: "Repositories", |
| 4458 | summary: "Transfer a repository", |
| 4459 | scope: Some("repo:admin"), |
| 4460 | params: &[ |
| 4461 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 4462 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 4463 | ], |
| 4464 | body: &[ |
| 4465 | Field { name: "to", kind: "string", required: true, values: &[] }, |
| 4466 | ], |
| 4467 | }, |
| 4468 | Operation { |
| 4469 | id: "unarchive_repo", |
| 4470 | method: "POST", |
| 4471 | path: "/repos/{owner}/{name}/unarchive", |
| 4472 | tag: "Repositories", |
| 4473 | summary: "Unarchive a repository", |
| 4474 | scope: Some("repo:admin"), |
| 4475 | params: &[ |
| 4476 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 4477 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 4478 | ], |
| 4479 | body: &[], |
| 4480 | }, |
| 4481 | Operation { |
| 4482 | id: "update_repo", |
| 4483 | method: "PATCH", |
| 4484 | path: "/repos/{owner}/{name}", |
| 4485 | tag: "Repositories", |
| 4486 | summary: "Update a repository", |
| 4487 | scope: Some("repo:write"), |
| 4488 | params: &[ |
| 4489 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 4490 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 4491 | ], |
| 4492 | body: &[ |
| 4493 | Field { name: "allow_forking", kind: "boolean", required: false, values: &[] }, |
| 4494 | Field { name: "default_branch", kind: "string", required: false, values: &[] }, |
| 4495 | Field { name: "description", kind: "string", required: false, values: &[] }, |
| 4496 | Field { name: "max_ref_updates", kind: "integer", required: false, values: &[] }, |
| 4497 | Field { name: "private", kind: "boolean", required: false, values: &[] }, |
| 4498 | Field { name: "protected", kind: "boolean", required: false, values: &[] }, |
| 4499 | Field { name: "topics", kind: "array", required: false, values: &[] }, |
| 4500 | Field { name: "website", kind: "string", required: false, values: &[] }, |
| 4501 | ], |
| 4502 | }, |
| 4503 | Operation { |
| 4504 | id: "update_repo_settings", |
| 4505 | method: "PATCH", |
| 4506 | path: "/repos/{owner}/{name}/settings", |
| 4507 | tag: "Repositories", |
| 4508 | summary: "Update repository settings", |
| 4509 | scope: Some("repo:write"), |
| 4510 | params: &[ |
| 4511 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 4512 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 4513 | ], |
| 4514 | body: &[ |
| 4515 | Field { name: "allow_auto_merge", kind: "boolean", required: false, values: &[] }, |
| 4516 | Field { name: "allow_commit_comments", kind: "boolean", required: false, values: &[] }, |
| 4517 | Field { name: "allow_fast_forward", kind: "boolean", required: false, values: &[] }, |
| 4518 | Field { name: "allow_ignoring_checks", kind: "boolean", required: false, values: &[] }, |
| 4519 | Field { name: "allow_merge_commit", kind: "boolean", required: false, values: &[] }, |
| 4520 | Field { name: "allow_rebase_merge", kind: "boolean", required: false, values: &[] }, |
| 4521 | Field { name: "allow_squash_merge", kind: "boolean", required: false, values: &[] }, |
| 4522 | Field { name: "auto_close_issues", kind: "boolean", required: false, values: &[] }, |
| 4523 | Field { name: "auto_merge", kind: "boolean", required: false, values: &[] }, |
| 4524 | Field { name: "count_agent_approvals", kind: "boolean", required: false, values: &[] }, |
| 4525 | Field { name: "default_merge_method", kind: "string", required: false, values: &["merge", "squash", "rebase", "fast_forward"] }, |
| 4526 | Field { name: "delete_branch_on_merge", kind: "boolean", required: false, values: &[] }, |
| 4527 | Field { name: "has_issues", kind: "boolean", required: false, values: &[] }, |
| 4528 | Field { name: "merge_commit_message", kind: "string", required: false, values: &["default", "pull_title", "pull_title_and_description", "custom"] }, |
| 4529 | Field { name: "merge_commit_template", kind: "string", required: false, values: &[] }, |
| 4530 | Field { name: "merge_queue", kind: "boolean", required: false, values: &[] }, |
| 4531 | Field { name: "require_code_owner_review", kind: "boolean", required: false, values: &[] }, |
| 4532 | Field { name: "require_up_to_date", kind: "boolean", required: false, values: &[] }, |
| 4533 | Field { name: "require_web_commit_sign_off", kind: "boolean", required: false, values: &[] }, |
| 4534 | Field { name: "required_approvals", kind: "integer", required: false, values: &[] }, |
| 4535 | Field { name: "required_checks", kind: "array", required: false, values: &[] }, |
| 4536 | Field { name: "squash_commit_message", kind: "string", required: false, values: &["default", "pull_title", "pull_title_and_description", "pull_title_and_commits", "custom"] }, |
| 4537 | Field { name: "squash_commit_template", kind: "string", required: false, values: &[] }, |
| 4538 | Field { name: "suggest_updating_branches", kind: "boolean", required: false, values: &[] }, |
| 4539 | ], |
| 4540 | }, |
| 4541 | Operation { |
| 4542 | id: "get_languages", |
| 4543 | method: "GET", |
| 4544 | path: "/repos/{owner}/{name}/languages", |
| 4545 | tag: "Repository insights", |
| 4546 | summary: "Get a repository's languages", |
| 4547 | scope: Some("repo:read"), |
| 4548 | params: &[ |
| 4549 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 4550 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 4551 | ], |
| 4552 | body: &[], |
| 4553 | }, |
| 4554 | Operation { |
| 4555 | id: "get_license", |
| 4556 | method: "GET", |
| 4557 | path: "/repos/{owner}/{name}/license", |
| 4558 | tag: "Repository insights", |
| 4559 | summary: "Get a repository's license", |
| 4560 | scope: Some("repo:read"), |
| 4561 | params: &[ |
| 4562 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 4563 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 4564 | ], |
| 4565 | body: &[], |
| 4566 | }, |
| 4567 | Operation { |
| 4568 | id: "list_contributors", |
| 4569 | method: "GET", |
| 4570 | path: "/repos/{owner}/{name}/contributors", |
| 4571 | tag: "Repository insights", |
| 4572 | summary: "List a repository's contributors", |
| 4573 | scope: Some("repo:read"), |
| 4574 | params: &[ |
| 4575 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 4576 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 4577 | ], |
| 4578 | body: &[], |
| 4579 | }, |
| 4580 | Operation { |
| 4581 | id: "create_repo_ruleset", |
| 4582 | method: "POST", |
| 4583 | path: "/repos/{owner}/{name}/rulesets", |
| 4584 | tag: "Rules", |
| 4585 | summary: "Create a repository ruleset", |
| 4586 | scope: Some("repo:admin"), |
| 4587 | params: &[ |
| 4588 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 4589 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 4590 | ], |
| 4591 | body: &[ |
| 4592 | Field { name: "bypass_actors", kind: "array", required: false, values: &[] }, |
| 4593 | Field { name: "conditions", kind: "object", required: false, values: &[] }, |
| 4594 | Field { name: "enforcement", kind: "string", required: false, values: &["active", "evaluate", "disabled"] }, |
| 4595 | Field { name: "rules", kind: "array", required: false, values: &[] }, |
| 4596 | Field { name: "ruleset_name", kind: "string", required: false, values: &[] }, |
| 4597 | Field { name: "target", kind: "string", required: false, values: &["branch", "tag"] }, |
| 4598 | ], |
| 4599 | }, |
| 4600 | Operation { |
| 4601 | id: "create_workspace_ruleset", |
| 4602 | method: "POST", |
| 4603 | path: "/workspaces/{workspace}/rulesets", |
| 4604 | tag: "Rules", |
| 4605 | summary: "Create a workspace ruleset", |
| 4606 | scope: Some("workspace:admin"), |
| 4607 | params: &[ |
| 4608 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 4609 | ], |
| 4610 | body: &[ |
| 4611 | Field { name: "bypass_actors", kind: "array", required: false, values: &[] }, |
| 4612 | Field { name: "conditions", kind: "object", required: false, values: &[] }, |
| 4613 | Field { name: "enforcement", kind: "string", required: false, values: &["active", "evaluate", "disabled"] }, |
| 4614 | Field { name: "rules", kind: "array", required: false, values: &[] }, |
| 4615 | Field { name: "ruleset_name", kind: "string", required: false, values: &[] }, |
| 4616 | Field { name: "target", kind: "string", required: false, values: &["branch", "tag"] }, |
| 4617 | ], |
| 4618 | }, |
| 4619 | Operation { |
| 4620 | id: "delete_repo_ruleset", |
| 4621 | method: "DELETE", |
| 4622 | path: "/repos/{owner}/{name}/rulesets/{id}", |
| 4623 | tag: "Rules", |
| 4624 | summary: "Delete a repository ruleset", |
| 4625 | scope: Some("repo:admin"), |
| 4626 | params: &[ |
| 4627 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 4628 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 4629 | Param { name: "id", location: In::Path, kind: "string", required: true, values: &[] }, |
| 4630 | ], |
| 4631 | body: &[], |
| 4632 | }, |
| 4633 | Operation { |
| 4634 | id: "delete_workspace_ruleset", |
| 4635 | method: "DELETE", |
| 4636 | path: "/workspaces/{workspace}/rulesets/{id}", |
| 4637 | tag: "Rules", |
| 4638 | summary: "Delete a workspace ruleset", |
| 4639 | scope: Some("workspace:admin"), |
| 4640 | params: &[ |
| 4641 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 4642 | Param { name: "id", location: In::Path, kind: "string", required: true, values: &[] }, |
| 4643 | ], |
| 4644 | body: &[], |
| 4645 | }, |
| 4646 | Operation { |
| 4647 | id: "get_branch_rules", |
| 4648 | method: "GET", |
| 4649 | path: "/repos/{owner}/{name}/rules/branches/{branch}", |
| 4650 | tag: "Rules", |
| 4651 | summary: "Get the rules for a branch", |
| 4652 | scope: Some("repo:read"), |
| 4653 | params: &[ |
| 4654 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 4655 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 4656 | Param { name: "branch", location: In::Path, kind: "string", required: true, values: &[] }, |
| 4657 | Param { name: "target", location: In::Query, kind: "string", required: false, values: &["branch", "tag"] }, |
| 4658 | ], |
| 4659 | body: &[], |
| 4660 | }, |
| 4661 | Operation { |
| 4662 | id: "get_repo_ruleset", |
| 4663 | method: "GET", |
| 4664 | path: "/repos/{owner}/{name}/rulesets/{id}", |
| 4665 | tag: "Rules", |
| 4666 | summary: "Get a repository ruleset", |
| 4667 | scope: Some("repo:read"), |
| 4668 | params: &[ |
| 4669 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 4670 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 4671 | Param { name: "id", location: In::Path, kind: "string", required: true, values: &[] }, |
| 4672 | ], |
| 4673 | body: &[], |
| 4674 | }, |
| 4675 | Operation { |
| 4676 | id: "get_workspace_ruleset", |
| 4677 | method: "GET", |
| 4678 | path: "/workspaces/{workspace}/rulesets/{id}", |
| 4679 | tag: "Rules", |
| 4680 | summary: "Get a workspace ruleset", |
| 4681 | scope: Some("workspace:read"), |
| 4682 | params: &[ |
| 4683 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 4684 | Param { name: "id", location: In::Path, kind: "string", required: true, values: &[] }, |
| 4685 | ], |
| 4686 | body: &[], |
| 4687 | }, |
| 4688 | Operation { |
| 4689 | id: "list_repo_rulesets", |
| 4690 | method: "GET", |
| 4691 | path: "/repos/{owner}/{name}/rulesets", |
| 4692 | tag: "Rules", |
| 4693 | summary: "List a repository's rulesets", |
| 4694 | scope: Some("repo:read"), |
| 4695 | params: &[ |
| 4696 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 4697 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 4698 | Param { name: "include_parents", location: In::Query, kind: "boolean", required: false, values: &[] }, |
| 4699 | ], |
| 4700 | body: &[], |
| 4701 | }, |
| 4702 | Operation { |
| 4703 | id: "list_rule_evaluations", |
| 4704 | method: "GET", |
| 4705 | path: "/repos/{owner}/{name}/rules/evaluations", |
| 4706 | tag: "Rules", |
| 4707 | summary: "List a repository's rule evaluations", |
| 4708 | scope: Some("repo:read"), |
| 4709 | params: &[ |
| 4710 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 4711 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 4712 | Param { name: "ruleset_id", location: In::Query, kind: "string", required: false, values: &[] }, |
| 4713 | Param { name: "verdict", location: In::Query, kind: "string", required: false, values: &["pass", "fail", "bypass"] }, |
| 4714 | Param { name: "problems_only", location: In::Query, kind: "boolean", required: false, values: &[] }, |
| 4715 | Param { name: "before", location: In::Query, kind: "string", required: false, values: &[] }, |
| 4716 | Param { name: "limit", location: In::Query, kind: "integer", required: false, values: &[] }, |
| 4717 | ], |
| 4718 | body: &[], |
| 4719 | }, |
| 4720 | Operation { |
| 4721 | id: "list_workspace_rule_evaluations", |
| 4722 | method: "GET", |
| 4723 | path: "/workspaces/{workspace}/rules/evaluations", |
| 4724 | tag: "Rules", |
| 4725 | summary: "List a workspace's rule evaluations", |
| 4726 | scope: Some("workspace:read"), |
| 4727 | params: &[ |
| 4728 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 4729 | Param { name: "ruleset_id", location: In::Query, kind: "string", required: false, values: &[] }, |
| 4730 | Param { name: "verdict", location: In::Query, kind: "string", required: false, values: &["pass", "fail", "bypass"] }, |
| 4731 | Param { name: "problems_only", location: In::Query, kind: "boolean", required: false, values: &[] }, |
| 4732 | Param { name: "before", location: In::Query, kind: "string", required: false, values: &[] }, |
| 4733 | Param { name: "limit", location: In::Query, kind: "integer", required: false, values: &[] }, |
| 4734 | ], |
| 4735 | body: &[], |
| 4736 | }, |
| 4737 | Operation { |
| 4738 | id: "list_workspace_rulesets", |
| 4739 | method: "GET", |
| 4740 | path: "/workspaces/{workspace}/rulesets", |
| 4741 | tag: "Rules", |
| 4742 | summary: "List a workspace's rulesets", |
| 4743 | scope: Some("workspace:read"), |
| 4744 | params: &[ |
| 4745 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 4746 | ], |
| 4747 | body: &[], |
| 4748 | }, |
| 4749 | Operation { |
| 4750 | id: "update_repo_ruleset", |
| 4751 | method: "PUT", |
| 4752 | path: "/repos/{owner}/{name}/rulesets/{id}", |
| 4753 | tag: "Rules", |
| 4754 | summary: "Update a repository ruleset", |
| 4755 | scope: Some("repo:admin"), |
| 4756 | params: &[ |
| 4757 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 4758 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 4759 | Param { name: "id", location: In::Path, kind: "string", required: true, values: &[] }, |
| 4760 | ], |
| 4761 | body: &[ |
| 4762 | Field { name: "bypass_actors", kind: "array", required: false, values: &[] }, |
| 4763 | Field { name: "conditions", kind: "object", required: false, values: &[] }, |
| 4764 | Field { name: "enforcement", kind: "string", required: false, values: &["active", "evaluate", "disabled"] }, |
| 4765 | Field { name: "rules", kind: "array", required: false, values: &[] }, |
| 4766 | Field { name: "ruleset_name", kind: "string", required: false, values: &[] }, |
| 4767 | Field { name: "target", kind: "string", required: false, values: &["branch", "tag"] }, |
| 4768 | ], |
| 4769 | }, |
| 4770 | Operation { |
| 4771 | id: "update_workspace_ruleset", |
| 4772 | method: "PUT", |
| 4773 | path: "/workspaces/{workspace}/rulesets/{id}", |
| 4774 | tag: "Rules", |
| 4775 | summary: "Update a workspace ruleset", |
| 4776 | scope: Some("workspace:admin"), |
| 4777 | params: &[ |
| 4778 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 4779 | Param { name: "id", location: In::Path, kind: "string", required: true, values: &[] }, |
| 4780 | ], |
| 4781 | body: &[ |
| 4782 | Field { name: "bypass_actors", kind: "array", required: false, values: &[] }, |
| 4783 | Field { name: "conditions", kind: "object", required: false, values: &[] }, |
| 4784 | Field { name: "enforcement", kind: "string", required: false, values: &["active", "evaluate", "disabled"] }, |
| 4785 | Field { name: "rules", kind: "array", required: false, values: &[] }, |
| 4786 | Field { name: "ruleset_name", kind: "string", required: false, values: &[] }, |
| 4787 | Field { name: "target", kind: "string", required: false, values: &["branch", "tag"] }, |
| 4788 | ], |
| 4789 | }, |
| 4790 | Operation { |
| 4791 | id: "approve_workflow_run", |
| 4792 | method: "POST", |
| 4793 | path: "/repos/{owner}/{name}/actions/runs/{id}/approve", |
| 4794 | tag: "Run protection", |
| 4795 | summary: "Approve a workflow run", |
| 4796 | scope: Some("workflows:write"), |
| 4797 | params: &[ |
| 4798 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 4799 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 4800 | Param { name: "id", location: In::Path, kind: "string", required: true, values: &[] }, |
| 4801 | ], |
| 4802 | body: &[], |
| 4803 | }, |
| 4804 | Operation { |
| 4805 | id: "create_repository_dispatch", |
| 4806 | method: "POST", |
| 4807 | path: "/repos/{owner}/{name}/dispatches", |
| 4808 | tag: "Run protection", |
| 4809 | summary: "Create a repository dispatch event", |
| 4810 | scope: Some("code:write"), |
| 4811 | params: &[ |
| 4812 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 4813 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 4814 | ], |
| 4815 | body: &[ |
| 4816 | Field { name: "client_payload", kind: "object", required: false, values: &[] }, |
| 4817 | Field { name: "event_type", kind: "string", required: true, values: &[] }, |
| 4818 | ], |
| 4819 | }, |
| 4820 | Operation { |
| 4821 | id: "create_workspace_managed_workflow", |
| 4822 | method: "POST", |
| 4823 | path: "/workspaces/{workspace}/actions/managed-workflows", |
| 4824 | tag: "Run protection", |
| 4825 | summary: "Add a workflow a workspace manages", |
| 4826 | scope: Some("workspace:admin"), |
| 4827 | params: &[ |
| 4828 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 4829 | ], |
| 4830 | body: &[ |
| 4831 | Field { name: "mode", kind: "string", required: true, values: &["required", "default"] }, |
| 4832 | Field { name: "name", kind: "string", required: true, values: &[] }, |
| 4833 | Field { name: "repositories", kind: "array", required: false, values: &[] }, |
| 4834 | Field { name: "source", kind: "string", required: true, values: &[] }, |
| 4835 | Field { name: "visibility", kind: "string", required: false, values: &["all", "public", "private"] }, |
| 4836 | ], |
| 4837 | }, |
| 4838 | Operation { |
| 4839 | id: "delete_environment", |
| 4840 | method: "DELETE", |
| 4841 | path: "/repos/{owner}/{name}/environments/{environment}", |
| 4842 | tag: "Run protection", |
| 4843 | summary: "Delete an environment's protection rules", |
| 4844 | scope: Some("repo:admin"), |
| 4845 | params: &[ |
| 4846 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 4847 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 4848 | Param { name: "environment", location: In::Path, kind: "string", required: true, values: &[] }, |
| 4849 | ], |
| 4850 | body: &[], |
| 4851 | }, |
| 4852 | Operation { |
| 4853 | id: "delete_workspace_managed_workflow", |
| 4854 | method: "DELETE", |
| 4855 | path: "/workspaces/{workspace}/actions/managed-workflows/{workflow}", |
| 4856 | tag: "Run protection", |
| 4857 | summary: "Remove a workflow a workspace manages", |
| 4858 | scope: Some("workspace:admin"), |
| 4859 | params: &[ |
| 4860 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 4861 | Param { name: "workflow", location: In::Path, kind: "string", required: true, values: &[] }, |
| 4862 | ], |
| 4863 | body: &[], |
| 4864 | }, |
| 4865 | Operation { |
| 4866 | id: "get_actions_access", |
| 4867 | method: "GET", |
| 4868 | path: "/repos/{owner}/{name}/actions/permissions/access", |
| 4869 | tag: "Run protection", |
| 4870 | summary: "Get who may use a repository's actions and workflows", |
| 4871 | scope: Some("repo:read"), |
| 4872 | params: &[ |
| 4873 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 4874 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 4875 | ], |
| 4876 | body: &[], |
| 4877 | }, |
| 4878 | Operation { |
| 4879 | id: "get_actions_permissions", |
| 4880 | method: "GET", |
| 4881 | path: "/repos/{owner}/{name}/actions/permissions", |
| 4882 | tag: "Run protection", |
| 4883 | summary: "Get whether a repository's workflows run", |
| 4884 | scope: Some("repo:read"), |
| 4885 | params: &[ |
| 4886 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 4887 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 4888 | ], |
| 4889 | body: &[], |
| 4890 | }, |
| 4891 | Operation { |
| 4892 | id: "get_fork_pr_approval", |
| 4893 | method: "GET", |
| 4894 | path: "/repos/{owner}/{name}/actions/permissions/fork-pr-contributor-approval", |
| 4895 | tag: "Run protection", |
| 4896 | summary: "Get the approval policy for outside pull requests", |
| 4897 | scope: Some("repo:read"), |
| 4898 | params: &[ |
| 4899 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 4900 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 4901 | ], |
| 4902 | body: &[], |
| 4903 | }, |
| 4904 | Operation { |
| 4905 | id: "get_pending_deployments", |
| 4906 | method: "GET", |
| 4907 | path: "/repos/{owner}/{name}/actions/runs/{id}/pending_deployments", |
| 4908 | tag: "Run protection", |
| 4909 | summary: "Get a run's pending deployments", |
| 4910 | scope: Some("workflows:read"), |
| 4911 | params: &[ |
| 4912 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 4913 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 4914 | Param { name: "id", location: In::Path, kind: "string", required: true, values: &[] }, |
| 4915 | ], |
| 4916 | body: &[], |
| 4917 | }, |
| 4918 | Operation { |
| 4919 | id: "get_workflow_permissions", |
| 4920 | method: "GET", |
| 4921 | path: "/repos/{owner}/{name}/actions/permissions/workflow", |
| 4922 | tag: "Run protection", |
| 4923 | summary: "Get the default workflow permissions", |
| 4924 | scope: Some("repo:read"), |
| 4925 | params: &[ |
| 4926 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 4927 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 4928 | ], |
| 4929 | body: &[], |
| 4930 | }, |
| 4931 | Operation { |
| 4932 | id: "get_workspace_workflow_permissions", |
| 4933 | method: "GET", |
| 4934 | path: "/workspaces/{workspace}/actions/permissions/workflow", |
| 4935 | tag: "Run protection", |
| 4936 | summary: "Get a workspace's default workflow permissions", |
| 4937 | scope: Some("workspace:read"), |
| 4938 | params: &[ |
| 4939 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 4940 | ], |
| 4941 | body: &[], |
| 4942 | }, |
| 4943 | Operation { |
| 4944 | id: "list_workspace_managed_workflows", |
| 4945 | method: "GET", |
| 4946 | path: "/workspaces/{workspace}/actions/managed-workflows", |
| 4947 | tag: "Run protection", |
| 4948 | summary: "List the workflows a workspace manages", |
| 4949 | scope: Some("workspace:read"), |
| 4950 | params: &[ |
| 4951 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 4952 | ], |
| 4953 | body: &[], |
| 4954 | }, |
| 4955 | Operation { |
| 4956 | id: "review_pending_deployments", |
| 4957 | method: "POST", |
| 4958 | path: "/repos/{owner}/{name}/actions/runs/{id}/pending_deployments", |
| 4959 | tag: "Run protection", |
| 4960 | summary: "Review a run's pending deployments", |
| 4961 | scope: Some("workflows:write"), |
| 4962 | params: &[ |
| 4963 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 4964 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 4965 | Param { name: "id", location: In::Path, kind: "string", required: true, values: &[] }, |
| 4966 | ], |
| 4967 | body: &[ |
| 4968 | Field { name: "comment", kind: "string", required: false, values: &[] }, |
| 4969 | Field { name: "environment_names", kind: "array", required: false, values: &[] }, |
| 4970 | Field { name: "state", kind: "string", required: true, values: &["approved", "rejected"] }, |
| 4971 | ], |
| 4972 | }, |
| 4973 | Operation { |
| 4974 | id: "set_actions_access", |
| 4975 | method: "PUT", |
| 4976 | path: "/repos/{owner}/{name}/actions/permissions/access", |
| 4977 | tag: "Run protection", |
| 4978 | summary: "Set who may use a repository's actions and workflows", |
| 4979 | scope: Some("repo:admin"), |
| 4980 | params: &[ |
| 4981 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 4982 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 4983 | ], |
| 4984 | body: &[ |
| 4985 | Field { name: "access_level", kind: "string", required: true, values: &["none", "organization", "user"] }, |
| 4986 | ], |
| 4987 | }, |
| 4988 | Operation { |
| 4989 | id: "set_actions_permissions", |
| 4990 | method: "PUT", |
| 4991 | path: "/repos/{owner}/{name}/actions/permissions", |
| 4992 | tag: "Run protection", |
| 4993 | summary: "Turn a repository's workflows on or off", |
| 4994 | scope: Some("repo:admin"), |
| 4995 | params: &[ |
| 4996 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 4997 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 4998 | ], |
| 4999 | body: &[ |
| 5000 | Field { name: "enabled", kind: "boolean", required: true, values: &[] }, |
| 5001 | ], |
| 5002 | }, |
| 5003 | Operation { |
| 5004 | id: "set_fork_pr_approval", |
| 5005 | method: "PUT", |
| 5006 | path: "/repos/{owner}/{name}/actions/permissions/fork-pr-contributor-approval", |
| 5007 | tag: "Run protection", |
| 5008 | summary: "Set the approval policy for outside pull requests", |
| 5009 | scope: Some("repo:admin"), |
| 5010 | params: &[ |
| 5011 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 5012 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 5013 | ], |
| 5014 | body: &[ |
| 5015 | Field { name: "approval_policy", kind: "string", required: true, values: &["first_time_contributors", "outside_contributors", "all_external_contributors"] }, |
| 5016 | ], |
| 5017 | }, |
| 5018 | Operation { |
| 5019 | id: "set_workflow_permissions", |
| 5020 | method: "PUT", |
| 5021 | path: "/repos/{owner}/{name}/actions/permissions/workflow", |
| 5022 | tag: "Run protection", |
| 5023 | summary: "Set the default workflow permissions", |
| 5024 | scope: Some("repo:admin"), |
| 5025 | params: &[ |
| 5026 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 5027 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 5028 | ], |
| 5029 | body: &[ |
| 5030 | Field { name: "can_approve_pull_request_reviews", kind: "boolean", required: false, values: &[] }, |
| 5031 | Field { name: "default_workflow_permissions", kind: "string", required: false, values: &["read", "write", "inherit"] }, |
| 5032 | ], |
| 5033 | }, |
| 5034 | Operation { |
| 5035 | id: "set_workspace_workflow_permissions", |
| 5036 | method: "PUT", |
| 5037 | path: "/workspaces/{workspace}/actions/permissions/workflow", |
| 5038 | tag: "Run protection", |
| 5039 | summary: "Set a workspace's default workflow permissions", |
| 5040 | scope: Some("workspace:admin"), |
| 5041 | params: &[ |
| 5042 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 5043 | ], |
| 5044 | body: &[ |
| 5045 | Field { name: "can_approve_pull_request_reviews", kind: "boolean", required: false, values: &[] }, |
| 5046 | Field { name: "default_workflow_permissions", kind: "string", required: false, values: &["read", "write"] }, |
| 5047 | Field { name: "max_workflow_permissions", kind: "string", required: false, values: &["read", "write"] }, |
| 5048 | ], |
| 5049 | }, |
| 5050 | Operation { |
| 5051 | id: "update_environment", |
| 5052 | method: "PUT", |
| 5053 | path: "/repos/{owner}/{name}/environments/{environment}", |
| 5054 | tag: "Run protection", |
| 5055 | summary: "Create or update an environment's protection rules", |
| 5056 | scope: Some("repo:admin"), |
| 5057 | params: &[ |
| 5058 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 5059 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 5060 | Param { name: "environment", location: In::Path, kind: "string", required: true, values: &[] }, |
| 5061 | ], |
| 5062 | body: &[ |
| 5063 | Field { name: "branch_policies", kind: "array", required: false, values: &[] }, |
| 5064 | Field { name: "can_admins_bypass", kind: "boolean", required: false, values: &[] }, |
| 5065 | Field { name: "deployment_branch_policy", kind: "object", required: false, values: &[] }, |
| 5066 | Field { name: "prevent_self_review", kind: "boolean", required: false, values: &[] }, |
| 5067 | Field { name: "reviewers", kind: "array", required: false, values: &[] }, |
| 5068 | Field { name: "wait_timer", kind: "integer", required: false, values: &[] }, |
| 5069 | ], |
| 5070 | }, |
| 5071 | Operation { |
| 5072 | id: "update_workspace_managed_workflow", |
| 5073 | method: "PATCH", |
| 5074 | path: "/workspaces/{workspace}/actions/managed-workflows/{workflow}", |
| 5075 | tag: "Run protection", |
| 5076 | summary: "Update a workflow a workspace manages", |
| 5077 | scope: Some("workspace:admin"), |
| 5078 | params: &[ |
| 5079 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 5080 | Param { name: "workflow", location: In::Path, kind: "string", required: true, values: &[] }, |
| 5081 | ], |
| 5082 | body: &[ |
| 5083 | Field { name: "mode", kind: "string", required: false, values: &["required", "default"] }, |
| 5084 | Field { name: "refresh", kind: "boolean", required: false, values: &[] }, |
| 5085 | Field { name: "repositories", kind: "array", required: false, values: &[] }, |
| 5086 | Field { name: "source", kind: "string", required: false, values: &[] }, |
| 5087 | Field { name: "visibility", kind: "string", required: false, values: &["all", "public", "private"] }, |
| 5088 | ], |
| 5089 | }, |
| 5090 | Operation { |
| 5091 | id: "create_runner_group", |
| 5092 | method: "POST", |
| 5093 | path: "/workspaces/{workspace}/actions/runner-groups", |
| 5094 | tag: "Runners", |
| 5095 | summary: "Create a runner group", |
| 5096 | scope: Some("runners:admin"), |
| 5097 | params: &[ |
| 5098 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 5099 | ], |
| 5100 | body: &[ |
| 5101 | Field { name: "id", kind: "string", required: false, values: &[] }, |
| 5102 | Field { name: "name", kind: "string", required: true, values: &[] }, |
| 5103 | Field { name: "repositories", kind: "array", required: false, values: &[] }, |
| 5104 | ], |
| 5105 | }, |
| 5106 | Operation { |
| 5107 | id: "create_runner_registration_token", |
| 5108 | method: "POST", |
| 5109 | path: "/repos/{owner}/{name}/actions/runners/registration-token", |
| 5110 | tag: "Runners", |
| 5111 | summary: "Create a runner registration token", |
| 5112 | scope: Some("runners:admin"), |
| 5113 | params: &[ |
| 5114 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 5115 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 5116 | ], |
| 5117 | body: &[ |
| 5118 | Field { name: "group", kind: "string", required: false, values: &[] }, |
| 5119 | Field { name: "workspace", kind: "string", required: false, values: &[] }, |
| 5120 | ], |
| 5121 | }, |
| 5122 | Operation { |
| 5123 | id: "create_runner_registration_token_for_workspace", |
| 5124 | method: "POST", |
| 5125 | path: "/workspaces/{workspace}/actions/runners/registration-token", |
| 5126 | tag: "Runners", |
| 5127 | summary: "Create a runner registration token for a workspace", |
| 5128 | scope: Some("runners:admin"), |
| 5129 | params: &[ |
| 5130 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 5131 | ], |
| 5132 | body: &[ |
| 5133 | Field { name: "group", kind: "string", required: false, values: &[] }, |
| 5134 | ], |
| 5135 | }, |
| 5136 | Operation { |
| 5137 | id: "delete_runner_group", |
| 5138 | method: "DELETE", |
| 5139 | path: "/workspaces/{workspace}/actions/runner-groups/{id}", |
| 5140 | tag: "Runners", |
| 5141 | summary: "Delete a runner group", |
| 5142 | scope: Some("runners:admin"), |
| 5143 | params: &[ |
| 5144 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 5145 | Param { name: "id", location: In::Path, kind: "string", required: true, values: &[] }, |
| 5146 | ], |
| 5147 | body: &[], |
| 5148 | }, |
| 5149 | Operation { |
| 5150 | id: "get_runner_settings", |
| 5151 | method: "GET", |
| 5152 | path: "/repos/{owner}/{name}/actions/runner-settings", |
| 5153 | tag: "Runners", |
| 5154 | summary: "Get runner settings", |
| 5155 | scope: Some("runners:read"), |
| 5156 | params: &[ |
| 5157 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 5158 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 5159 | ], |
| 5160 | body: &[], |
| 5161 | }, |
| 5162 | Operation { |
| 5163 | id: "get_runner_settings_for_workspace", |
| 5164 | method: "GET", |
| 5165 | path: "/workspaces/{workspace}/actions/runner-settings", |
| 5166 | tag: "Runners", |
| 5167 | summary: "Get runner settings for a workspace", |
| 5168 | scope: Some("runners:read"), |
| 5169 | params: &[ |
| 5170 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 5171 | ], |
| 5172 | body: &[], |
| 5173 | }, |
| 5174 | Operation { |
| 5175 | id: "list_runner_groups", |
| 5176 | method: "GET", |
| 5177 | path: "/workspaces/{workspace}/actions/runner-groups", |
| 5178 | tag: "Runners", |
| 5179 | summary: "List runner groups", |
| 5180 | scope: Some("runners:read"), |
| 5181 | params: &[ |
| 5182 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 5183 | ], |
| 5184 | body: &[], |
| 5185 | }, |
| 5186 | Operation { |
| 5187 | id: "list_runners", |
| 5188 | method: "GET", |
| 5189 | path: "/repos/{owner}/{name}/actions/runners", |
| 5190 | tag: "Runners", |
| 5191 | summary: "List self-hosted runners", |
| 5192 | scope: Some("runners:read"), |
| 5193 | params: &[ |
| 5194 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 5195 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 5196 | ], |
| 5197 | body: &[], |
| 5198 | }, |
| 5199 | Operation { |
| 5200 | id: "list_runners_for_workspace", |
| 5201 | method: "GET", |
| 5202 | path: "/workspaces/{workspace}/actions/runners", |
| 5203 | tag: "Runners", |
| 5204 | summary: "List self-hosted runners for a workspace", |
| 5205 | scope: Some("runners:read"), |
| 5206 | params: &[ |
| 5207 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 5208 | ], |
| 5209 | body: &[], |
| 5210 | }, |
| 5211 | Operation { |
| 5212 | id: "remove_runner", |
| 5213 | method: "DELETE", |
| 5214 | path: "/repos/{owner}/{name}/actions/runners/{id}", |
| 5215 | tag: "Runners", |
| 5216 | summary: "Remove a self-hosted runner", |
| 5217 | scope: Some("runners:admin"), |
| 5218 | params: &[ |
| 5219 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 5220 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 5221 | Param { name: "id", location: In::Path, kind: "string", required: true, values: &[] }, |
| 5222 | ], |
| 5223 | body: &[ |
| 5224 | Field { name: "workspace", kind: "string", required: false, values: &[] }, |
| 5225 | ], |
| 5226 | }, |
| 5227 | Operation { |
| 5228 | id: "remove_runner_for_workspace", |
| 5229 | method: "DELETE", |
| 5230 | path: "/workspaces/{workspace}/actions/runners/{id}", |
| 5231 | tag: "Runners", |
| 5232 | summary: "Remove a self-hosted runner for a workspace", |
| 5233 | scope: Some("runners:admin"), |
| 5234 | params: &[ |
| 5235 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 5236 | Param { name: "id", location: In::Path, kind: "string", required: true, values: &[] }, |
| 5237 | ], |
| 5238 | body: &[], |
| 5239 | }, |
| 5240 | Operation { |
| 5241 | id: "update_runner_group", |
| 5242 | method: "PATCH", |
| 5243 | path: "/workspaces/{workspace}/actions/runner-groups/{id}", |
| 5244 | tag: "Runners", |
| 5245 | summary: "Change a runner group", |
| 5246 | scope: Some("runners:admin"), |
| 5247 | params: &[ |
| 5248 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 5249 | Param { name: "id", location: In::Path, kind: "string", required: true, values: &[] }, |
| 5250 | ], |
| 5251 | body: &[ |
| 5252 | Field { name: "name", kind: "string", required: false, values: &[] }, |
| 5253 | Field { name: "repositories", kind: "array", required: false, values: &[] }, |
| 5254 | ], |
| 5255 | }, |
| 5256 | Operation { |
| 5257 | id: "update_runner_settings", |
| 5258 | method: "PATCH", |
| 5259 | path: "/repos/{owner}/{name}/actions/runner-settings", |
| 5260 | tag: "Runners", |
| 5261 | summary: "Change runner settings", |
| 5262 | scope: Some("runners:admin"), |
| 5263 | params: &[ |
| 5264 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 5265 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 5266 | ], |
| 5267 | body: &[ |
| 5268 | Field { name: "agent_labels", kind: "array", required: false, values: &[] }, |
| 5269 | Field { name: "agents_on_self_hosted", kind: "boolean", required: false, values: &[] }, |
| 5270 | Field { name: "fork_pull_requests", kind: "boolean", required: false, values: &[] }, |
| 5271 | Field { name: "inherit", kind: "boolean", required: false, values: &[] }, |
| 5272 | Field { name: "workspace", kind: "string", required: false, values: &[] }, |
| 5273 | ], |
| 5274 | }, |
| 5275 | Operation { |
| 5276 | id: "update_runner_settings_for_workspace", |
| 5277 | method: "PATCH", |
| 5278 | path: "/workspaces/{workspace}/actions/runner-settings", |
| 5279 | tag: "Runners", |
| 5280 | summary: "Change runner settings for a workspace", |
| 5281 | scope: Some("runners:admin"), |
| 5282 | params: &[ |
| 5283 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 5284 | ], |
| 5285 | body: &[ |
| 5286 | Field { name: "agent_labels", kind: "array", required: false, values: &[] }, |
| 5287 | Field { name: "agents_on_self_hosted", kind: "boolean", required: false, values: &[] }, |
| 5288 | Field { name: "fork_pull_requests", kind: "boolean", required: false, values: &[] }, |
| 5289 | Field { name: "inherit", kind: "boolean", required: false, values: &[] }, |
| 5290 | ], |
| 5291 | }, |
| 5292 | Operation { |
| 5293 | id: "search", |
| 5294 | method: "GET", |
| 5295 | path: "/search", |
| 5296 | tag: "Search", |
| 5297 | summary: "Search g1t", |
| 5298 | scope: Some("repo:read"), |
| 5299 | params: &[ |
| 5300 | Param { name: "q", location: In::Query, kind: "string", required: true, values: &[] }, |
| 5301 | Param { name: "type", location: In::Query, kind: "string", required: false, values: &["repositories", "code", "issues", "pulls", "people"] }, |
| 5302 | Param { name: "page", location: In::Query, kind: "integer", required: false, values: &[] }, |
| 5303 | Param { name: "per_page", location: In::Query, kind: "integer", required: false, values: &[] }, |
| 5304 | ], |
| 5305 | body: &[], |
| 5306 | }, |
| 5307 | Operation { |
| 5308 | id: "bypass_push_protection", |
| 5309 | method: "POST", |
| 5310 | path: "/repos/{owner}/{name}/secret-scanning/alerts/{id}/bypass", |
| 5311 | tag: "Secret scanning", |
| 5312 | summary: "Bypass push protection", |
| 5313 | scope: Some("security:write"), |
| 5314 | params: &[ |
| 5315 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 5316 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 5317 | Param { name: "id", location: In::Path, kind: "string", required: true, values: &[] }, |
| 5318 | ], |
| 5319 | body: &[ |
| 5320 | Field { name: "comment", kind: "string", required: false, values: &[] }, |
| 5321 | Field { name: "reason", kind: "string", required: true, values: &["false_positive", "used_in_tests", "will_fix_later"] }, |
| 5322 | ], |
| 5323 | }, |
| 5324 | Operation { |
| 5325 | id: "check_secret_validity", |
| 5326 | method: "POST", |
| 5327 | path: "/repos/{owner}/{name}/secret-scanning/alerts/{id}/validity", |
| 5328 | tag: "Secret scanning", |
| 5329 | summary: "Check whether a secret still works", |
| 5330 | scope: Some("security:write"), |
| 5331 | params: &[ |
| 5332 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 5333 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 5334 | Param { name: "id", location: In::Path, kind: "string", required: true, values: &[] }, |
| 5335 | ], |
| 5336 | body: &[], |
| 5337 | }, |
| 5338 | Operation { |
| 5339 | id: "create_custom_pattern", |
| 5340 | method: "POST", |
| 5341 | path: "/repos/{owner}/{name}/secret-scanning/custom-patterns", |
| 5342 | tag: "Secret scanning", |
| 5343 | summary: "Create a custom pattern", |
| 5344 | scope: Some("security:write"), |
| 5345 | params: &[ |
| 5346 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 5347 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 5348 | ], |
| 5349 | body: &[ |
| 5350 | Field { name: "after", kind: "string", required: false, values: &[] }, |
| 5351 | Field { name: "before", kind: "string", required: false, values: &[] }, |
| 5352 | Field { name: "pattern", kind: "string", required: true, values: &[] }, |
| 5353 | Field { name: "pattern_name", kind: "string", required: true, values: &[] }, |
| 5354 | Field { name: "publish", kind: "boolean", required: false, values: &[] }, |
| 5355 | Field { name: "test_strings", kind: "array", required: false, values: &[] }, |
| 5356 | Field { name: "workspace", kind: "string", required: false, values: &[] }, |
| 5357 | ], |
| 5358 | }, |
| 5359 | Operation { |
| 5360 | id: "create_custom_pattern_for_workspace", |
| 5361 | method: "POST", |
| 5362 | path: "/workspaces/{workspace}/secret-scanning/custom-patterns", |
| 5363 | tag: "Secret scanning", |
| 5364 | summary: "Create a custom pattern for a workspace", |
| 5365 | scope: Some("security:write"), |
| 5366 | params: &[ |
| 5367 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 5368 | ], |
| 5369 | body: &[ |
| 5370 | Field { name: "after", kind: "string", required: false, values: &[] }, |
| 5371 | Field { name: "before", kind: "string", required: false, values: &[] }, |
| 5372 | Field { name: "pattern", kind: "string", required: true, values: &[] }, |
| 5373 | Field { name: "pattern_name", kind: "string", required: true, values: &[] }, |
| 5374 | Field { name: "publish", kind: "boolean", required: false, values: &[] }, |
| 5375 | Field { name: "test_strings", kind: "array", required: false, values: &[] }, |
| 5376 | ], |
| 5377 | }, |
| 5378 | Operation { |
| 5379 | id: "delete_custom_pattern", |
| 5380 | method: "DELETE", |
| 5381 | path: "/repos/{owner}/{name}/secret-scanning/custom-patterns/{id}", |
| 5382 | tag: "Secret scanning", |
| 5383 | summary: "Delete a custom pattern", |
| 5384 | scope: Some("security:write"), |
| 5385 | params: &[ |
| 5386 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 5387 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 5388 | Param { name: "id", location: In::Path, kind: "string", required: true, values: &[] }, |
| 5389 | ], |
| 5390 | body: &[ |
| 5391 | Field { name: "workspace", kind: "string", required: false, values: &[] }, |
| 5392 | ], |
| 5393 | }, |
| 5394 | Operation { |
| 5395 | id: "delete_custom_pattern_for_workspace", |
| 5396 | method: "DELETE", |
| 5397 | path: "/workspaces/{workspace}/secret-scanning/custom-patterns/{id}", |
| 5398 | tag: "Secret scanning", |
| 5399 | summary: "Delete a custom pattern for a workspace", |
| 5400 | scope: Some("security:write"), |
| 5401 | params: &[ |
| 5402 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 5403 | Param { name: "id", location: In::Path, kind: "string", required: true, values: &[] }, |
| 5404 | ], |
| 5405 | body: &[], |
| 5406 | }, |
| 5407 | Operation { |
| 5408 | id: "dry_run_custom_pattern", |
| 5409 | method: "POST", |
| 5410 | path: "/repos/{owner}/{name}/secret-scanning/custom-patterns/dry-run", |
| 5411 | tag: "Secret scanning", |
| 5412 | summary: "Dry-run a custom pattern", |
| 5413 | scope: Some("security:write"), |
| 5414 | params: &[ |
| 5415 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 5416 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 5417 | ], |
| 5418 | body: &[ |
| 5419 | Field { name: "after", kind: "string", required: false, values: &[] }, |
| 5420 | Field { name: "before", kind: "string", required: false, values: &[] }, |
| 5421 | Field { name: "pattern", kind: "string", required: true, values: &[] }, |
| 5422 | Field { name: "pattern_name", kind: "string", required: false, values: &[] }, |
| 5423 | Field { name: "repos", kind: "array", required: false, values: &[] }, |
| 5424 | Field { name: "workspace", kind: "string", required: false, values: &[] }, |
| 5425 | ], |
| 5426 | }, |
| 5427 | Operation { |
| 5428 | id: "dry_run_custom_pattern_for_workspace", |
| 5429 | method: "POST", |
| 5430 | path: "/workspaces/{workspace}/secret-scanning/custom-patterns/dry-run", |
| 5431 | tag: "Secret scanning", |
| 5432 | summary: "Dry-run a custom pattern for a workspace", |
| 5433 | scope: Some("security:write"), |
| 5434 | params: &[ |
| 5435 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 5436 | ], |
| 5437 | body: &[ |
| 5438 | Field { name: "after", kind: "string", required: false, values: &[] }, |
| 5439 | Field { name: "before", kind: "string", required: false, values: &[] }, |
| 5440 | Field { name: "pattern", kind: "string", required: true, values: &[] }, |
| 5441 | Field { name: "pattern_name", kind: "string", required: false, values: &[] }, |
| 5442 | Field { name: "repos", kind: "array", required: false, values: &[] }, |
| 5443 | ], |
| 5444 | }, |
| 5445 | Operation { |
| 5446 | id: "get_secret_scanning_alert", |
| 5447 | method: "GET", |
| 5448 | path: "/repos/{owner}/{name}/secret-scanning/alerts/{id}", |
| 5449 | tag: "Secret scanning", |
| 5450 | summary: "Get a secret scanning alert", |
| 5451 | scope: Some("security:read"), |
| 5452 | params: &[ |
| 5453 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 5454 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 5455 | Param { name: "id", location: In::Path, kind: "string", required: true, values: &[] }, |
| 5456 | ], |
| 5457 | body: &[], |
| 5458 | }, |
| 5459 | Operation { |
| 5460 | id: "list_bypass_requests", |
| 5461 | method: "GET", |
| 5462 | path: "/workspaces/{workspace}/secret-scanning/bypass-requests", |
| 5463 | tag: "Secret scanning", |
| 5464 | summary: "List push protection bypass requests", |
| 5465 | scope: Some("security:read"), |
| 5466 | params: &[ |
| 5467 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 5468 | Param { name: "state", location: In::Query, kind: "string", required: false, values: &["pending", "approved", "denied", "cancelled"] }, |
| 5469 | Param { name: "repo", location: In::Query, kind: "string", required: false, values: &[] }, |
| 5470 | ], |
| 5471 | body: &[], |
| 5472 | }, |
| 5473 | Operation { |
| 5474 | id: "list_custom_patterns", |
| 5475 | method: "GET", |
| 5476 | path: "/repos/{owner}/{name}/secret-scanning/custom-patterns", |
| 5477 | tag: "Secret scanning", |
| 5478 | summary: "List custom patterns", |
| 5479 | scope: Some("security:read"), |
| 5480 | params: &[ |
| 5481 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 5482 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 5483 | ], |
| 5484 | body: &[], |
| 5485 | }, |
| 5486 | Operation { |
| 5487 | id: "list_custom_patterns_for_workspace", |
| 5488 | method: "GET", |
| 5489 | path: "/workspaces/{workspace}/secret-scanning/custom-patterns", |
| 5490 | tag: "Secret scanning", |
| 5491 | summary: "List custom patterns for a workspace", |
| 5492 | scope: Some("security:read"), |
| 5493 | params: &[ |
| 5494 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 5495 | ], |
| 5496 | body: &[], |
| 5497 | }, |
| 5498 | Operation { |
| 5499 | id: "list_secret_scanning_alerts", |
| 5500 | method: "GET", |
| 5501 | path: "/repos/{owner}/{name}/secret-scanning/alerts", |
| 5502 | tag: "Secret scanning", |
| 5503 | summary: "List secret scanning alerts", |
| 5504 | scope: Some("security:read"), |
| 5505 | params: &[ |
| 5506 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 5507 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 5508 | Param { name: "state", location: In::Query, kind: "string", required: false, values: &["open", "dismissed", "fixed"] }, |
| 5509 | Param { name: "secret_type", location: In::Query, kind: "string", required: false, values: &[] }, |
| 5510 | Param { name: "validity", location: In::Query, kind: "string", required: false, values: &["active", "inactive", "unknown", "unsupported"] }, |
| 5511 | Param { name: "bypassed", location: In::Query, kind: "boolean", required: false, values: &[] }, |
| 5512 | ], |
| 5513 | body: &[], |
| 5514 | }, |
| 5515 | Operation { |
| 5516 | id: "list_secret_scanning_alerts_for_workspace", |
| 5517 | method: "GET", |
| 5518 | path: "/workspaces/{workspace}/secret-scanning/alerts", |
| 5519 | tag: "Secret scanning", |
| 5520 | summary: "List secret scanning alerts for a workspace", |
| 5521 | scope: Some("security:read"), |
| 5522 | params: &[ |
| 5523 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 5524 | Param { name: "state", location: In::Query, kind: "string", required: false, values: &["open", "dismissed", "fixed"] }, |
| 5525 | Param { name: "secret_type", location: In::Query, kind: "string", required: false, values: &[] }, |
| 5526 | Param { name: "validity", location: In::Query, kind: "string", required: false, values: &["active", "inactive", "unknown", "unsupported"] }, |
| 5527 | Param { name: "bypassed", location: In::Query, kind: "boolean", required: false, values: &[] }, |
| 5528 | ], |
| 5529 | body: &[], |
| 5530 | }, |
| 5531 | Operation { |
| 5532 | id: "list_secret_scanning_locations", |
| 5533 | method: "GET", |
| 5534 | path: "/repos/{owner}/{name}/secret-scanning/alerts/{id}/locations", |
| 5535 | tag: "Secret scanning", |
| 5536 | summary: "List where a secret was found", |
| 5537 | scope: Some("security:read"), |
| 5538 | params: &[ |
| 5539 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 5540 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 5541 | Param { name: "id", location: In::Path, kind: "string", required: true, values: &[] }, |
| 5542 | ], |
| 5543 | body: &[], |
| 5544 | }, |
| 5545 | Operation { |
| 5546 | id: "review_bypass_request", |
| 5547 | method: "PATCH", |
| 5548 | path: "/workspaces/{workspace}/secret-scanning/bypass-requests/{id}", |
| 5549 | tag: "Secret scanning", |
| 5550 | summary: "Review a bypass request", |
| 5551 | scope: Some("security:write"), |
| 5552 | params: &[ |
| 5553 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 5554 | Param { name: "id", location: In::Path, kind: "string", required: true, values: &[] }, |
| 5555 | ], |
| 5556 | body: &[ |
| 5557 | Field { name: "comment", kind: "string", required: false, values: &[] }, |
| 5558 | Field { name: "decision", kind: "string", required: true, values: &["approve", "deny", "cancel"] }, |
| 5559 | ], |
| 5560 | }, |
| 5561 | Operation { |
| 5562 | id: "update_custom_pattern", |
| 5563 | method: "PATCH", |
| 5564 | path: "/repos/{owner}/{name}/secret-scanning/custom-patterns/{id}", |
| 5565 | tag: "Secret scanning", |
| 5566 | summary: "Update a custom pattern", |
| 5567 | scope: Some("security:write"), |
| 5568 | params: &[ |
| 5569 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 5570 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 5571 | Param { name: "id", location: In::Path, kind: "string", required: true, values: &[] }, |
| 5572 | ], |
| 5573 | body: &[ |
| 5574 | Field { name: "after", kind: "string", required: false, values: &[] }, |
| 5575 | Field { name: "before", kind: "string", required: false, values: &[] }, |
| 5576 | Field { name: "pattern", kind: "string", required: true, values: &[] }, |
| 5577 | Field { name: "pattern_name", kind: "string", required: true, values: &[] }, |
| 5578 | Field { name: "publish", kind: "boolean", required: false, values: &[] }, |
| 5579 | Field { name: "test_strings", kind: "array", required: false, values: &[] }, |
| 5580 | Field { name: "workspace", kind: "string", required: false, values: &[] }, |
| 5581 | ], |
| 5582 | }, |
| 5583 | Operation { |
| 5584 | id: "update_custom_pattern_for_workspace", |
| 5585 | method: "PATCH", |
| 5586 | path: "/workspaces/{workspace}/secret-scanning/custom-patterns/{id}", |
| 5587 | tag: "Secret scanning", |
| 5588 | summary: "Update a custom pattern for a workspace", |
| 5589 | scope: Some("security:write"), |
| 5590 | params: &[ |
| 5591 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 5592 | Param { name: "id", location: In::Path, kind: "string", required: true, values: &[] }, |
| 5593 | ], |
| 5594 | body: &[ |
| 5595 | Field { name: "after", kind: "string", required: false, values: &[] }, |
| 5596 | Field { name: "before", kind: "string", required: false, values: &[] }, |
| 5597 | Field { name: "pattern", kind: "string", required: true, values: &[] }, |
| 5598 | Field { name: "pattern_name", kind: "string", required: true, values: &[] }, |
| 5599 | Field { name: "publish", kind: "boolean", required: false, values: &[] }, |
| 5600 | Field { name: "test_strings", kind: "array", required: false, values: &[] }, |
| 5601 | ], |
| 5602 | }, |
| 5603 | Operation { |
| 5604 | id: "update_secret_scanning_alert", |
| 5605 | method: "PATCH", |
| 5606 | path: "/repos/{owner}/{name}/secret-scanning/alerts/{id}", |
| 5607 | tag: "Secret scanning", |
| 5608 | summary: "Dismiss or reopen a secret scanning alert", |
| 5609 | scope: Some("security:write"), |
| 5610 | params: &[ |
| 5611 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 5612 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 5613 | Param { name: "id", location: In::Path, kind: "string", required: true, values: &[] }, |
| 5614 | ], |
| 5615 | body: &[ |
| 5616 | Field { name: "comment", kind: "string", required: false, values: &[] }, |
| 5617 | Field { name: "reason", kind: "string", required: false, values: &["false_positive", "used_in_tests", "revoked", "wont_fix"] }, |
| 5618 | Field { name: "state", kind: "string", required: true, values: &["open", "dismissed"] }, |
| 5619 | ], |
| 5620 | }, |
| 5621 | Operation { |
| 5622 | id: "delete_actions_secret", |
| 5623 | method: "DELETE", |
| 5624 | path: "/repos/{owner}/{name}/actions/secrets/{setting}", |
| 5625 | tag: "Secrets and variables", |
| 5626 | summary: "Delete a secret", |
| 5627 | scope: Some("secrets:admin"), |
| 5628 | params: &[ |
| 5629 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 5630 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 5631 | Param { name: "setting", location: In::Path, kind: "string", required: true, values: &[] }, |
| 5632 | ], |
| 5633 | body: &[ |
| 5634 | Field { name: "id", kind: "string", required: false, values: &[] }, |
| 5635 | Field { name: "workspace", kind: "string", required: false, values: &[] }, |
| 5636 | ], |
| 5637 | }, |
| 5638 | Operation { |
| 5639 | id: "delete_actions_secret_for_workspace", |
| 5640 | method: "DELETE", |
| 5641 | path: "/workspaces/{workspace}/actions/secrets/{setting}", |
| 5642 | tag: "Secrets and variables", |
| 5643 | summary: "Delete a secret for a workspace", |
| 5644 | scope: Some("secrets:admin"), |
| 5645 | params: &[ |
| 5646 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 5647 | Param { name: "setting", location: In::Path, kind: "string", required: true, values: &[] }, |
| 5648 | ], |
| 5649 | body: &[ |
| 5650 | Field { name: "id", kind: "string", required: false, values: &[] }, |
| 5651 | ], |
| 5652 | }, |
| 5653 | Operation { |
| 5654 | id: "delete_actions_variable", |
| 5655 | method: "DELETE", |
| 5656 | path: "/repos/{owner}/{name}/actions/variables/{setting}", |
| 5657 | tag: "Secrets and variables", |
| 5658 | summary: "Delete a variable", |
| 5659 | scope: Some("secrets:admin"), |
| 5660 | params: &[ |
| 5661 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 5662 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 5663 | Param { name: "setting", location: In::Path, kind: "string", required: true, values: &[] }, |
| 5664 | ], |
| 5665 | body: &[ |
| 5666 | Field { name: "id", kind: "string", required: false, values: &[] }, |
| 5667 | Field { name: "workspace", kind: "string", required: false, values: &[] }, |
| 5668 | ], |
| 5669 | }, |
| 5670 | Operation { |
| 5671 | id: "delete_actions_variable_for_workspace", |
| 5672 | method: "DELETE", |
| 5673 | path: "/workspaces/{workspace}/actions/variables/{setting}", |
| 5674 | tag: "Secrets and variables", |
| 5675 | summary: "Delete a variable for a workspace", |
| 5676 | scope: Some("secrets:admin"), |
| 5677 | params: &[ |
| 5678 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 5679 | Param { name: "setting", location: In::Path, kind: "string", required: true, values: &[] }, |
| 5680 | ], |
| 5681 | body: &[ |
| 5682 | Field { name: "id", kind: "string", required: false, values: &[] }, |
| 5683 | ], |
| 5684 | }, |
| 5685 | Operation { |
| 5686 | id: "list_actions_secrets", |
| 5687 | method: "GET", |
| 5688 | path: "/repos/{owner}/{name}/actions/secrets", |
| 5689 | tag: "Secrets and variables", |
| 5690 | summary: "List secrets", |
| 5691 | scope: Some("secrets:read"), |
| 5692 | params: &[ |
| 5693 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 5694 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 5695 | ], |
| 5696 | body: &[], |
| 5697 | }, |
| 5698 | Operation { |
| 5699 | id: "list_actions_secrets_for_workspace", |
| 5700 | method: "GET", |
| 5701 | path: "/workspaces/{workspace}/actions/secrets", |
| 5702 | tag: "Secrets and variables", |
| 5703 | summary: "List secrets for a workspace", |
| 5704 | scope: Some("secrets:read"), |
| 5705 | params: &[ |
| 5706 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 5707 | ], |
| 5708 | body: &[], |
| 5709 | }, |
| 5710 | Operation { |
| 5711 | id: "list_actions_variables", |
| 5712 | method: "GET", |
| 5713 | path: "/repos/{owner}/{name}/actions/variables", |
| 5714 | tag: "Secrets and variables", |
| 5715 | summary: "List variables", |
| 5716 | scope: Some("secrets:read"), |
| 5717 | params: &[ |
| 5718 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 5719 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 5720 | ], |
| 5721 | body: &[], |
| 5722 | }, |
| 5723 | Operation { |
| 5724 | id: "list_actions_variables_for_workspace", |
| 5725 | method: "GET", |
| 5726 | path: "/workspaces/{workspace}/actions/variables", |
| 5727 | tag: "Secrets and variables", |
| 5728 | summary: "List variables for a workspace", |
| 5729 | scope: Some("secrets:read"), |
| 5730 | params: &[ |
| 5731 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 5732 | ], |
| 5733 | body: &[], |
| 5734 | }, |
| 5735 | Operation { |
| 5736 | id: "set_actions_secret", |
| 5737 | method: "PUT", |
| 5738 | path: "/repos/{owner}/{name}/actions/secrets/{setting}", |
| 5739 | tag: "Secrets and variables", |
| 5740 | summary: "Set a secret", |
| 5741 | scope: Some("secrets:admin"), |
| 5742 | params: &[ |
| 5743 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 5744 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 5745 | Param { name: "setting", location: In::Path, kind: "string", required: true, values: &[] }, |
| 5746 | ], |
| 5747 | body: &[ |
| 5748 | Field { name: "available_to", kind: "array", required: false, values: &[] }, |
| 5749 | Field { name: "brokered_hosts", kind: "array", required: false, values: &[] }, |
| 5750 | Field { name: "environments", kind: "array", required: false, values: &[] }, |
| 5751 | Field { name: "id", kind: "string", required: false, values: &[] }, |
| 5752 | Field { name: "note", kind: "string", required: false, values: &[] }, |
| 5753 | Field { name: "projects", kind: "array", required: false, values: &[] }, |
| 5754 | Field { name: "value", kind: "string", required: false, values: &[] }, |
| 5755 | Field { name: "workspace", kind: "string", required: false, values: &[] }, |
| 5756 | ], |
| 5757 | }, |
| 5758 | Operation { |
| 5759 | id: "set_actions_secret_for_workspace", |
| 5760 | method: "PUT", |
| 5761 | path: "/workspaces/{workspace}/actions/secrets/{setting}", |
| 5762 | tag: "Secrets and variables", |
| 5763 | summary: "Set a secret for a workspace", |
| 5764 | scope: Some("secrets:admin"), |
| 5765 | params: &[ |
| 5766 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 5767 | Param { name: "setting", location: In::Path, kind: "string", required: true, values: &[] }, |
| 5768 | ], |
| 5769 | body: &[ |
| 5770 | Field { name: "available_to", kind: "array", required: false, values: &[] }, |
| 5771 | Field { name: "brokered_hosts", kind: "array", required: false, values: &[] }, |
| 5772 | Field { name: "environments", kind: "array", required: false, values: &[] }, |
| 5773 | Field { name: "id", kind: "string", required: false, values: &[] }, |
| 5774 | Field { name: "note", kind: "string", required: false, values: &[] }, |
| 5775 | Field { name: "projects", kind: "array", required: false, values: &[] }, |
| 5776 | Field { name: "value", kind: "string", required: false, values: &[] }, |
| 5777 | ], |
| 5778 | }, |
| 5779 | Operation { |
| 5780 | id: "set_actions_variable", |
| 5781 | method: "POST", |
| 5782 | path: "/repos/{owner}/{name}/actions/variables", |
| 5783 | tag: "Secrets and variables", |
| 5784 | summary: "Set a variable", |
| 5785 | scope: Some("secrets:admin"), |
| 5786 | params: &[ |
| 5787 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 5788 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 5789 | ], |
| 5790 | body: &[ |
| 5791 | Field { name: "available_to", kind: "array", required: false, values: &[] }, |
| 5792 | Field { name: "brokered_hosts", kind: "array", required: false, values: &[] }, |
| 5793 | Field { name: "environments", kind: "array", required: false, values: &[] }, |
| 5794 | Field { name: "id", kind: "string", required: false, values: &[] }, |
| 5795 | Field { name: "note", kind: "string", required: false, values: &[] }, |
| 5796 | Field { name: "projects", kind: "array", required: false, values: &[] }, |
| 5797 | Field { name: "setting", kind: "string", required: true, values: &[] }, |
| 5798 | Field { name: "value", kind: "string", required: false, values: &[] }, |
| 5799 | Field { name: "workspace", kind: "string", required: false, values: &[] }, |
| 5800 | ], |
| 5801 | }, |
| 5802 | Operation { |
| 5803 | id: "set_actions_variable_for_workspace", |
| 5804 | method: "POST", |
| 5805 | path: "/workspaces/{workspace}/actions/variables", |
| 5806 | tag: "Secrets and variables", |
| 5807 | summary: "Set a variable for a workspace", |
| 5808 | scope: Some("secrets:admin"), |
| 5809 | params: &[ |
| 5810 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 5811 | ], |
| 5812 | body: &[ |
| 5813 | Field { name: "available_to", kind: "array", required: false, values: &[] }, |
| 5814 | Field { name: "brokered_hosts", kind: "array", required: false, values: &[] }, |
| 5815 | Field { name: "environments", kind: "array", required: false, values: &[] }, |
| 5816 | Field { name: "id", kind: "string", required: false, values: &[] }, |
| 5817 | Field { name: "note", kind: "string", required: false, values: &[] }, |
| 5818 | Field { name: "projects", kind: "array", required: false, values: &[] }, |
| 5819 | Field { name: "setting", kind: "string", required: true, values: &[] }, |
| 5820 | Field { name: "value", kind: "string", required: false, values: &[] }, |
| 5821 | ], |
| 5822 | }, |
| 5823 | Operation { |
| 5824 | id: "update_actions_variable", |
| 5825 | method: "PATCH", |
| 5826 | path: "/repos/{owner}/{name}/actions/variables/{setting}", |
| 5827 | tag: "Secrets and variables", |
| 5828 | summary: "Update a variable", |
| 5829 | scope: Some("secrets:admin"), |
| 5830 | params: &[ |
| 5831 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 5832 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 5833 | Param { name: "setting", location: In::Path, kind: "string", required: true, values: &[] }, |
| 5834 | ], |
| 5835 | body: &[ |
| 5836 | Field { name: "available_to", kind: "array", required: false, values: &[] }, |
| 5837 | Field { name: "brokered_hosts", kind: "array", required: false, values: &[] }, |
| 5838 | Field { name: "environments", kind: "array", required: false, values: &[] }, |
| 5839 | Field { name: "id", kind: "string", required: false, values: &[] }, |
| 5840 | Field { name: "note", kind: "string", required: false, values: &[] }, |
| 5841 | Field { name: "projects", kind: "array", required: false, values: &[] }, |
| 5842 | Field { name: "value", kind: "string", required: false, values: &[] }, |
| 5843 | Field { name: "workspace", kind: "string", required: false, values: &[] }, |
| 5844 | ], |
| 5845 | }, |
| 5846 | Operation { |
| 5847 | id: "update_actions_variable_for_workspace", |
| 5848 | method: "PATCH", |
| 5849 | path: "/workspaces/{workspace}/actions/variables/{setting}", |
| 5850 | tag: "Secrets and variables", |
| 5851 | summary: "Update a variable for a workspace", |
| 5852 | scope: Some("secrets:admin"), |
| 5853 | params: &[ |
| 5854 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 5855 | Param { name: "setting", location: In::Path, kind: "string", required: true, values: &[] }, |
| 5856 | ], |
| 5857 | body: &[ |
| 5858 | Field { name: "available_to", kind: "array", required: false, values: &[] }, |
| 5859 | Field { name: "brokered_hosts", kind: "array", required: false, values: &[] }, |
| 5860 | Field { name: "environments", kind: "array", required: false, values: &[] }, |
| 5861 | Field { name: "id", kind: "string", required: false, values: &[] }, |
| 5862 | Field { name: "note", kind: "string", required: false, values: &[] }, |
| 5863 | Field { name: "projects", kind: "array", required: false, values: &[] }, |
| 5864 | Field { name: "value", kind: "string", required: false, values: &[] }, |
| 5865 | ], |
| 5866 | }, |
| 5867 | Operation { |
| 5868 | id: "dismiss_security_alert", |
| 5869 | method: "POST", |
| 5870 | path: "/repos/{owner}/{name}/security/alerts/{id}/dismiss", |
| 5871 | tag: "Security", |
| 5872 | summary: "Dismiss a security alert", |
| 5873 | scope: Some("repo:admin"), |
| 5874 | params: &[ |
| 5875 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 5876 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 5877 | Param { name: "id", location: In::Path, kind: "string", required: true, values: &[] }, |
| 5878 | ], |
| 5879 | body: &[ |
| 5880 | Field { name: "comment", kind: "string", required: false, values: &[] }, |
| 5881 | Field { name: "reason", kind: "string", required: true, values: &["false_positive", "used_in_tests", "revoked", "wont_fix", "fix_started", "no_bandwidth", "tolerable_risk", "inaccurate", "not_used"] }, |
| 5882 | ], |
| 5883 | }, |
| 5884 | Operation { |
| 5885 | id: "list_security_alerts", |
| 5886 | method: "GET", |
| 5887 | path: "/repos/{owner}/{name}/security/alerts", |
| 5888 | tag: "Security", |
| 5889 | summary: "List security alerts", |
| 5890 | scope: Some("repo:read"), |
| 5891 | params: &[ |
| 5892 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 5893 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 5894 | Param { name: "state", location: In::Query, kind: "string", required: false, values: &["open", "dismissed", "fixed"] }, |
| 5895 | Param { name: "kind", location: In::Query, kind: "string", required: false, values: &["secret", "dependency"] }, |
| 5896 | ], |
| 5897 | body: &[], |
| 5898 | }, |
| 5899 | Operation { |
| 5900 | id: "reopen_security_alert", |
| 5901 | method: "POST", |
| 5902 | path: "/repos/{owner}/{name}/security/alerts/{id}/reopen", |
| 5903 | tag: "Security", |
| 5904 | summary: "Reopen a security alert", |
| 5905 | scope: Some("repo:admin"), |
| 5906 | params: &[ |
| 5907 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 5908 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 5909 | Param { name: "id", location: In::Path, kind: "string", required: true, values: &[] }, |
| 5910 | ], |
| 5911 | body: &[], |
| 5912 | }, |
| 5913 | Operation { |
| 5914 | id: "create_security_advisory", |
| 5915 | method: "POST", |
| 5916 | path: "/repos/{owner}/{name}/security/advisories", |
| 5917 | tag: "Security advisories", |
| 5918 | summary: "Create a security advisory", |
| 5919 | scope: Some("security:write"), |
| 5920 | params: &[ |
| 5921 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 5922 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 5923 | ], |
| 5924 | body: &[ |
| 5925 | Field { name: "affected_versions", kind: "string", required: false, values: &[] }, |
| 5926 | Field { name: "credits", kind: "array", required: false, values: &[] }, |
| 5927 | Field { name: "cve_id", kind: "string", required: false, values: &[] }, |
| 5928 | Field { name: "cvss_score", kind: "number", required: false, values: &[] }, |
| 5929 | Field { name: "cvss_vector", kind: "string", required: false, values: &[] }, |
| 5930 | Field { name: "description", kind: "string", required: false, values: &[] }, |
| 5931 | Field { name: "ecosystem", kind: "string", required: false, values: &[] }, |
| 5932 | Field { name: "package", kind: "string", required: false, values: &[] }, |
| 5933 | Field { name: "patched_versions", kind: "string", required: false, values: &[] }, |
| 5934 | Field { name: "severity", kind: "string", required: true, values: &["critical", "high", "medium", "low"] }, |
| 5935 | Field { name: "title", kind: "string", required: true, values: &[] }, |
| 5936 | ], |
| 5937 | }, |
| 5938 | Operation { |
| 5939 | id: "get_security_advisory", |
| 5940 | method: "GET", |
| 5941 | path: "/repos/{owner}/{name}/security/advisories/{id}", |
| 5942 | tag: "Security advisories", |
| 5943 | summary: "Get a security advisory", |
| 5944 | scope: Some("security:read"), |
| 5945 | params: &[ |
| 5946 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 5947 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 5948 | Param { name: "id", location: In::Path, kind: "string", required: true, values: &[] }, |
| 5949 | ], |
| 5950 | body: &[], |
| 5951 | }, |
| 5952 | Operation { |
| 5953 | id: "list_security_advisories", |
| 5954 | method: "GET", |
| 5955 | path: "/repos/{owner}/{name}/security/advisories", |
| 5956 | tag: "Security advisories", |
| 5957 | summary: "List security advisories", |
| 5958 | scope: Some("security:read"), |
| 5959 | params: &[ |
| 5960 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 5961 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 5962 | Param { name: "state", location: In::Query, kind: "string", required: false, values: &["draft", "published", "withdrawn"] }, |
| 5963 | ], |
| 5964 | body: &[], |
| 5965 | }, |
| 5966 | Operation { |
| 5967 | id: "list_vulnerability_reports", |
| 5968 | method: "GET", |
| 5969 | path: "/repos/{owner}/{name}/security/reports", |
| 5970 | tag: "Security advisories", |
| 5971 | summary: "List vulnerability reports", |
| 5972 | scope: Some("security:read"), |
| 5973 | params: &[ |
| 5974 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 5975 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 5976 | Param { name: "state", location: In::Query, kind: "string", required: false, values: &["new", "accepted", "declined"] }, |
| 5977 | ], |
| 5978 | body: &[], |
| 5979 | }, |
| 5980 | Operation { |
| 5981 | id: "report_vulnerability", |
| 5982 | method: "POST", |
| 5983 | path: "/repos/{owner}/{name}/security/reports", |
| 5984 | tag: "Security advisories", |
| 5985 | summary: "Report a vulnerability privately", |
| 5986 | scope: Some("security:write"), |
| 5987 | params: &[ |
| 5988 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 5989 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 5990 | ], |
| 5991 | body: &[ |
| 5992 | Field { name: "description", kind: "string", required: true, values: &[] }, |
| 5993 | Field { name: "email", kind: "string", required: false, values: &[] }, |
| 5994 | Field { name: "severity", kind: "string", required: false, values: &["critical", "high", "medium", "low"] }, |
| 5995 | Field { name: "title", kind: "string", required: true, values: &[] }, |
| 5996 | ], |
| 5997 | }, |
| 5998 | Operation { |
| 5999 | id: "review_vulnerability_report", |
| 6000 | method: "PATCH", |
| 6001 | path: "/repos/{owner}/{name}/security/reports/{id}", |
| 6002 | tag: "Security advisories", |
| 6003 | summary: "Accept or decline a vulnerability report", |
| 6004 | scope: Some("security:write"), |
| 6005 | params: &[ |
| 6006 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 6007 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 6008 | Param { name: "id", location: In::Path, kind: "string", required: true, values: &[] }, |
| 6009 | ], |
| 6010 | body: &[ |
| 6011 | Field { name: "decision", kind: "string", required: true, values: &["accept", "decline"] }, |
| 6012 | Field { name: "note", kind: "string", required: false, values: &[] }, |
| 6013 | ], |
| 6014 | }, |
| 6015 | Operation { |
| 6016 | id: "set_security_advisory_state", |
| 6017 | method: "POST", |
| 6018 | path: "/repos/{owner}/{name}/security/advisories/{id}/state", |
| 6019 | tag: "Security advisories", |
| 6020 | summary: "Publish or withdraw a security advisory", |
| 6021 | scope: Some("security:write"), |
| 6022 | params: &[ |
| 6023 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 6024 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 6025 | Param { name: "id", location: In::Path, kind: "string", required: true, values: &[] }, |
| 6026 | ], |
| 6027 | body: &[ |
| 6028 | Field { name: "state", kind: "string", required: true, values: &["published", "withdrawn"] }, |
| 6029 | ], |
| 6030 | }, |
| 6031 | Operation { |
| 6032 | id: "update_security_advisory", |
| 6033 | method: "PATCH", |
| 6034 | path: "/repos/{owner}/{name}/security/advisories/{id}", |
| 6035 | tag: "Security advisories", |
| 6036 | summary: "Update a security advisory", |
| 6037 | scope: Some("security:write"), |
| 6038 | params: &[ |
| 6039 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 6040 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 6041 | Param { name: "id", location: In::Path, kind: "string", required: true, values: &[] }, |
| 6042 | ], |
| 6043 | body: &[ |
| 6044 | Field { name: "affected_versions", kind: "string", required: false, values: &[] }, |
| 6045 | Field { name: "credits", kind: "array", required: false, values: &[] }, |
| 6046 | Field { name: "cve_id", kind: "string", required: false, values: &[] }, |
| 6047 | Field { name: "cvss_score", kind: "number", required: false, values: &[] }, |
| 6048 | Field { name: "cvss_vector", kind: "string", required: false, values: &[] }, |
| 6049 | Field { name: "description", kind: "string", required: false, values: &[] }, |
| 6050 | Field { name: "ecosystem", kind: "string", required: false, values: &[] }, |
| 6051 | Field { name: "package", kind: "string", required: false, values: &[] }, |
| 6052 | Field { name: "patched_versions", kind: "string", required: false, values: &[] }, |
| 6053 | Field { name: "severity", kind: "string", required: false, values: &["critical", "high", "medium", "low"] }, |
| 6054 | Field { name: "title", kind: "string", required: false, values: &[] }, |
| 6055 | ], |
| 6056 | }, |
| 6057 | Operation { |
| 6058 | id: "get_security_overview", |
| 6059 | method: "GET", |
| 6060 | path: "/workspaces/{workspace}/security/overview", |
| 6061 | tag: "Security settings", |
| 6062 | summary: "Get the security overview", |
| 6063 | scope: Some("security:read"), |
| 6064 | params: &[ |
| 6065 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 6066 | Param { name: "days", location: In::Query, kind: "integer", required: false, values: &[] }, |
| 6067 | ], |
| 6068 | body: &[], |
| 6069 | }, |
| 6070 | Operation { |
| 6071 | id: "get_security_settings", |
| 6072 | method: "GET", |
| 6073 | path: "/repos/{owner}/{name}/security/settings", |
| 6074 | tag: "Security settings", |
| 6075 | summary: "Get a repository's security settings", |
| 6076 | scope: Some("security:read"), |
| 6077 | params: &[ |
| 6078 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 6079 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 6080 | ], |
| 6081 | body: &[], |
| 6082 | }, |
| 6083 | Operation { |
| 6084 | id: "get_workspace_security_settings", |
| 6085 | method: "GET", |
| 6086 | path: "/workspaces/{workspace}/security/settings", |
| 6087 | tag: "Security settings", |
| 6088 | summary: "Get a workspace's security settings", |
| 6089 | scope: Some("security:read"), |
| 6090 | params: &[ |
| 6091 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 6092 | ], |
| 6093 | body: &[], |
| 6094 | }, |
| 6095 | Operation { |
| 6096 | id: "update_security_settings", |
| 6097 | method: "PATCH", |
| 6098 | path: "/repos/{owner}/{name}/security/settings", |
| 6099 | tag: "Security settings", |
| 6100 | summary: "Update a repository's security settings", |
| 6101 | scope: Some("security:write"), |
| 6102 | params: &[ |
| 6103 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 6104 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 6105 | ], |
| 6106 | body: &[ |
| 6107 | Field { name: "code_scanning_gate", kind: "string", required: false, values: &["none", "errors", "critical", "high", "medium", "any"] }, |
| 6108 | Field { name: "dependency_review", kind: "boolean", required: false, values: &[] }, |
| 6109 | Field { name: "history_alerts", kind: "boolean", required: false, values: &[] }, |
| 6110 | Field { name: "private_vulnerability_reporting", kind: "boolean", required: false, values: &[] }, |
| 6111 | Field { name: "review_comment", kind: "boolean", required: false, values: &[] }, |
| 6112 | Field { name: "review_deny_licenses", kind: "array", required: false, values: &[] }, |
| 6113 | Field { name: "review_fail_on", kind: "string", required: false, values: &["critical", "high", "medium", "low", "none"] }, |
| 6114 | ], |
| 6115 | }, |
| 6116 | Operation { |
| 6117 | id: "update_workspace_security_settings", |
| 6118 | method: "PATCH", |
| 6119 | path: "/workspaces/{workspace}/security/settings", |
| 6120 | tag: "Security settings", |
| 6121 | summary: "Update a workspace's security settings", |
| 6122 | scope: Some("security:write"), |
| 6123 | params: &[ |
| 6124 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 6125 | ], |
| 6126 | body: &[ |
| 6127 | Field { name: "delegated_bypass", kind: "boolean", required: false, values: &[] }, |
| 6128 | Field { name: "validity_checks", kind: "boolean", required: false, values: &[] }, |
| 6129 | ], |
| 6130 | }, |
| 6131 | Operation { |
| 6132 | id: "end_session", |
| 6133 | method: "POST", |
| 6134 | path: "/repos/{owner}/{name}/sessions/{id}/end", |
| 6135 | tag: "Sessions", |
| 6136 | summary: "End a session", |
| 6137 | scope: Some("pull_requests:write"), |
| 6138 | params: &[ |
| 6139 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 6140 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 6141 | Param { name: "id", location: In::Path, kind: "string", required: true, values: &[] }, |
| 6142 | ], |
| 6143 | body: &[ |
| 6144 | Field { name: "reason", kind: "string", required: false, values: &[] }, |
| 6145 | Field { name: "result", kind: "string", required: false, values: &[] }, |
| 6146 | ], |
| 6147 | }, |
| 6148 | Operation { |
| 6149 | id: "get_session", |
| 6150 | method: "GET", |
| 6151 | path: "/repos/{owner}/{name}/sessions/{id}", |
| 6152 | tag: "Sessions", |
| 6153 | summary: "Get a session", |
| 6154 | scope: Some("pull_requests:read"), |
| 6155 | params: &[ |
| 6156 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 6157 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 6158 | Param { name: "id", location: In::Path, kind: "string", required: true, values: &[] }, |
| 6159 | Param { name: "after", location: In::Query, kind: "integer", required: false, values: &[] }, |
| 6160 | ], |
| 6161 | body: &[], |
| 6162 | }, |
| 6163 | Operation { |
| 6164 | id: "list_sessions", |
| 6165 | method: "GET", |
| 6166 | path: "/repos/{owner}/{name}/sessions", |
| 6167 | tag: "Sessions", |
| 6168 | summary: "List sessions", |
| 6169 | scope: Some("pull_requests:read"), |
| 6170 | params: &[ |
| 6171 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 6172 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 6173 | Param { name: "state", location: In::Query, kind: "string", required: false, values: &["active", "idle", "ended"] }, |
| 6174 | Param { name: "issue", location: In::Query, kind: "integer", required: false, values: &[] }, |
| 6175 | Param { name: "pull", location: In::Query, kind: "integer", required: false, values: &[] }, |
| 6176 | Param { name: "path", location: In::Query, kind: "string", required: false, values: &[] }, |
| 6177 | Param { name: "subagents", location: In::Query, kind: "boolean", required: false, values: &[] }, |
| 6178 | ], |
| 6179 | body: &[], |
| 6180 | }, |
| 6181 | Operation { |
| 6182 | id: "read_session", |
| 6183 | method: "GET", |
| 6184 | path: "/repos/{owner}/{name}/pulls/{number}/session", |
| 6185 | tag: "Sessions", |
| 6186 | summary: "Read a session", |
| 6187 | scope: Some("pull_requests:read"), |
| 6188 | params: &[ |
| 6189 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 6190 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 6191 | Param { name: "number", location: In::Path, kind: "integer", required: true, values: &[] }, |
| 6192 | Param { name: "after", location: In::Query, kind: "integer", required: false, values: &[] }, |
| 6193 | ], |
| 6194 | body: &[], |
| 6195 | }, |
| 6196 | Operation { |
| 6197 | id: "record_session", |
| 6198 | method: "POST", |
| 6199 | path: "/repos/{owner}/{name}/pulls/{number}/session", |
| 6200 | tag: "Sessions", |
| 6201 | summary: "Record session entries", |
| 6202 | scope: Some("pull_requests:write"), |
| 6203 | params: &[ |
| 6204 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 6205 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 6206 | Param { name: "number", location: In::Path, kind: "integer", required: true, values: &[] }, |
| 6207 | ], |
| 6208 | body: &[ |
| 6209 | Field { name: "entries", kind: "array", required: true, values: &[] }, |
| 6210 | ], |
| 6211 | }, |
| 6212 | Operation { |
| 6213 | id: "record_session_entries", |
| 6214 | method: "POST", |
| 6215 | path: "/repos/{owner}/{name}/sessions/{id}/entries", |
| 6216 | tag: "Sessions", |
| 6217 | summary: "Record entries in a session", |
| 6218 | scope: Some("pull_requests:write"), |
| 6219 | params: &[ |
| 6220 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 6221 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 6222 | Param { name: "id", location: In::Path, kind: "string", required: true, values: &[] }, |
| 6223 | ], |
| 6224 | body: &[ |
| 6225 | Field { name: "acknowledge", kind: "array", required: false, values: &[] }, |
| 6226 | Field { name: "entries", kind: "array", required: false, values: &[] }, |
| 6227 | Field { name: "touched", kind: "array", required: false, values: &[] }, |
| 6228 | ], |
| 6229 | }, |
| 6230 | Operation { |
| 6231 | id: "start_agent_session", |
| 6232 | method: "POST", |
| 6233 | path: "/repos/{owner}/{name}/agent-sessions", |
| 6234 | tag: "Sessions", |
| 6235 | summary: "Start an agent session on an issue", |
| 6236 | scope: Some("pull_requests:write"), |
| 6237 | params: &[ |
| 6238 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 6239 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 6240 | ], |
| 6241 | body: &[ |
| 6242 | Field { name: "body", kind: "string", required: false, values: &[] }, |
| 6243 | Field { name: "handoff", kind: "boolean", required: false, values: &[] }, |
| 6244 | Field { name: "instruction", kind: "string", required: false, values: &[] }, |
| 6245 | Field { name: "issue", kind: "integer", required: false, values: &[] }, |
| 6246 | Field { name: "mode", kind: "string", required: false, values: &["plan", "implement", "review"] }, |
| 6247 | Field { name: "title", kind: "string", required: false, values: &[] }, |
| 6248 | ], |
| 6249 | }, |
| 6250 | Operation { |
| 6251 | id: "start_session", |
| 6252 | method: "POST", |
| 6253 | path: "/repos/{owner}/{name}/sessions", |
| 6254 | tag: "Sessions", |
| 6255 | summary: "Start a session", |
| 6256 | scope: Some("pull_requests:write"), |
| 6257 | params: &[ |
| 6258 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 6259 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 6260 | ], |
| 6261 | body: &[ |
| 6262 | Field { name: "agent_type", kind: "string", required: false, values: &[] }, |
| 6263 | Field { name: "branch", kind: "string", required: false, values: &[] }, |
| 6264 | Field { name: "harness", kind: "string", required: true, values: &["claude_code", "claude_managed_agents", "codex", "cursor", "copilot", "other"] }, |
| 6265 | Field { name: "harness_session_id", kind: "string", required: false, values: &[] }, |
| 6266 | Field { name: "head_commit", kind: "string", required: false, values: &[] }, |
| 6267 | Field { name: "issue", kind: "integer", required: false, values: &[] }, |
| 6268 | Field { name: "model", kind: "string", required: false, values: &[] }, |
| 6269 | Field { name: "parent_id", kind: "string", required: false, values: &[] }, |
| 6270 | Field { name: "prompt", kind: "string", required: false, values: &[] }, |
| 6271 | Field { name: "pull", kind: "integer", required: false, values: &[] }, |
| 6272 | Field { name: "task", kind: "string", required: false, values: &[] }, |
| 6273 | Field { name: "title", kind: "string", required: false, values: &[] }, |
| 6274 | ], |
| 6275 | }, |
| 6276 | Operation { |
| 6277 | id: "update_session", |
| 6278 | method: "PATCH", |
| 6279 | path: "/repos/{owner}/{name}/sessions/{id}", |
| 6280 | tag: "Sessions", |
| 6281 | summary: "Update a session", |
| 6282 | scope: Some("pull_requests:write"), |
| 6283 | params: &[ |
| 6284 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 6285 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 6286 | Param { name: "id", location: In::Path, kind: "string", required: true, values: &[] }, |
| 6287 | ], |
| 6288 | body: &[ |
| 6289 | Field { name: "agent_type", kind: "string", required: false, values: &[] }, |
| 6290 | Field { name: "branch", kind: "string", required: false, values: &[] }, |
| 6291 | Field { name: "head_commit", kind: "string", required: false, values: &[] }, |
| 6292 | Field { name: "issue", kind: "integer", required: false, values: &[] }, |
| 6293 | Field { name: "model", kind: "string", required: false, values: &[] }, |
| 6294 | Field { name: "prompt", kind: "string", required: false, values: &[] }, |
| 6295 | Field { name: "pull", kind: "integer", required: false, values: &[] }, |
| 6296 | Field { name: "result", kind: "string", required: false, values: &[] }, |
| 6297 | Field { name: "task", kind: "string", required: false, values: &[] }, |
| 6298 | Field { name: "title", kind: "string", required: false, values: &[] }, |
| 6299 | ], |
| 6300 | }, |
| 6301 | Operation { |
| 6302 | id: "check_starred", |
| 6303 | method: "GET", |
| 6304 | path: "/user/starred/{owner}/{name}", |
| 6305 | tag: "Stars", |
| 6306 | summary: "Check whether you starred a repository", |
| 6307 | scope: Some("account:read"), |
| 6308 | params: &[ |
| 6309 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 6310 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 6311 | ], |
| 6312 | body: &[], |
| 6313 | }, |
| 6314 | Operation { |
| 6315 | id: "list_stargazers", |
| 6316 | method: "GET", |
| 6317 | path: "/repos/{owner}/{name}/stargazers", |
| 6318 | tag: "Stars", |
| 6319 | summary: "List who starred a repository", |
| 6320 | scope: Some("repo:read"), |
| 6321 | params: &[ |
| 6322 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 6323 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 6324 | Param { name: "page", location: In::Query, kind: "integer", required: false, values: &[] }, |
| 6325 | ], |
| 6326 | body: &[], |
| 6327 | }, |
| 6328 | Operation { |
| 6329 | id: "list_starred", |
| 6330 | method: "GET", |
| 6331 | path: "/user/starred", |
| 6332 | tag: "Stars", |
| 6333 | summary: "List repositories you starred", |
| 6334 | scope: Some("account:read"), |
| 6335 | params: &[], |
| 6336 | body: &[], |
| 6337 | }, |
| 6338 | Operation { |
| 6339 | id: "star_repo", |
| 6340 | method: "PUT", |
| 6341 | path: "/user/starred/{owner}/{name}", |
| 6342 | tag: "Stars", |
| 6343 | summary: "Star a repository", |
| 6344 | scope: Some("account:write"), |
| 6345 | params: &[ |
| 6346 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 6347 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 6348 | ], |
| 6349 | body: &[], |
| 6350 | }, |
| 6351 | Operation { |
| 6352 | id: "unstar_repo", |
| 6353 | method: "DELETE", |
| 6354 | path: "/user/starred/{owner}/{name}", |
| 6355 | tag: "Stars", |
| 6356 | summary: "Unstar a repository", |
| 6357 | scope: Some("account:write"), |
| 6358 | params: &[ |
| 6359 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 6360 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 6361 | ], |
| 6362 | body: &[], |
| 6363 | }, |
| 6364 | Operation { |
| 6365 | id: "compare_dependencies", |
| 6366 | method: "GET", |
| 6367 | path: "/repos/{owner}/{name}/dependency-graph/compare/{basehead}", |
| 6368 | tag: "Supply chain", |
| 6369 | summary: "Compare dependencies", |
| 6370 | scope: Some("security:read"), |
| 6371 | params: &[ |
| 6372 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 6373 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 6374 | Param { name: "basehead", location: In::Path, kind: "string", required: true, values: &[] }, |
| 6375 | ], |
| 6376 | body: &[], |
| 6377 | }, |
| 6378 | Operation { |
| 6379 | id: "get_dependency_graph", |
| 6380 | method: "GET", |
| 6381 | path: "/repos/{owner}/{name}/dependency-graph", |
| 6382 | tag: "Supply chain", |
| 6383 | summary: "Get the dependency graph", |
| 6384 | scope: Some("security:read"), |
| 6385 | params: &[ |
| 6386 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 6387 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 6388 | ], |
| 6389 | body: &[], |
| 6390 | }, |
| 6391 | Operation { |
| 6392 | id: "get_sbom", |
| 6393 | method: "GET", |
| 6394 | path: "/repos/{owner}/{name}/dependency-graph/sbom", |
| 6395 | tag: "Supply chain", |
| 6396 | summary: "Export an SBOM", |
| 6397 | scope: Some("security:read"), |
| 6398 | params: &[ |
| 6399 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 6400 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 6401 | ], |
| 6402 | body: &[], |
| 6403 | }, |
| 6404 | Operation { |
| 6405 | id: "get_vulnerability_alert", |
| 6406 | method: "GET", |
| 6407 | path: "/repos/{owner}/{name}/vulnerability-alerts/{id}", |
| 6408 | tag: "Supply chain", |
| 6409 | summary: "Get a vulnerability alert", |
| 6410 | scope: Some("security:read"), |
| 6411 | params: &[ |
| 6412 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 6413 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 6414 | Param { name: "id", location: In::Path, kind: "string", required: true, values: &[] }, |
| 6415 | ], |
| 6416 | body: &[], |
| 6417 | }, |
| 6418 | Operation { |
| 6419 | id: "list_vulnerability_alerts", |
| 6420 | method: "GET", |
| 6421 | path: "/repos/{owner}/{name}/vulnerability-alerts", |
| 6422 | tag: "Supply chain", |
| 6423 | summary: "List vulnerability alerts", |
| 6424 | scope: Some("security:read"), |
| 6425 | params: &[ |
| 6426 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 6427 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 6428 | Param { name: "state", location: In::Query, kind: "string", required: false, values: &["open", "dismissed", "fixed"] }, |
| 6429 | Param { name: "severity", location: In::Query, kind: "string", required: false, values: &["critical", "high", "medium", "low", "unknown"] }, |
| 6430 | Param { name: "ecosystem", location: In::Query, kind: "string", required: false, values: &[] }, |
| 6431 | Param { name: "package", location: In::Query, kind: "string", required: false, values: &[] }, |
| 6432 | ], |
| 6433 | body: &[], |
| 6434 | }, |
| 6435 | Operation { |
| 6436 | id: "list_vulnerability_alerts_for_workspace", |
| 6437 | method: "GET", |
| 6438 | path: "/workspaces/{workspace}/vulnerability-alerts", |
| 6439 | tag: "Supply chain", |
| 6440 | summary: "List vulnerability alerts for a workspace", |
| 6441 | scope: Some("security:read"), |
| 6442 | params: &[ |
| 6443 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 6444 | Param { name: "state", location: In::Query, kind: "string", required: false, values: &["open", "dismissed", "fixed"] }, |
| 6445 | Param { name: "severity", location: In::Query, kind: "string", required: false, values: &["critical", "high", "medium", "low", "unknown"] }, |
| 6446 | Param { name: "ecosystem", location: In::Query, kind: "string", required: false, values: &[] }, |
| 6447 | Param { name: "package", location: In::Query, kind: "string", required: false, values: &[] }, |
| 6448 | ], |
| 6449 | body: &[], |
| 6450 | }, |
| 6451 | Operation { |
| 6452 | id: "rerun_dependency_review", |
| 6453 | method: "POST", |
| 6454 | path: "/repos/{owner}/{name}/pulls/{number}/dependency-review/rerun", |
| 6455 | tag: "Supply chain", |
| 6456 | summary: "Re-run dependency review", |
| 6457 | scope: Some("security:write"), |
| 6458 | params: &[ |
| 6459 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 6460 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 6461 | Param { name: "number", location: In::Path, kind: "integer", required: true, values: &[] }, |
| 6462 | ], |
| 6463 | body: &[], |
| 6464 | }, |
| 6465 | Operation { |
| 6466 | id: "update_vulnerability_alert", |
| 6467 | method: "PATCH", |
| 6468 | path: "/repos/{owner}/{name}/vulnerability-alerts/{id}", |
| 6469 | tag: "Supply chain", |
| 6470 | summary: "Dismiss or reopen a vulnerability alert", |
| 6471 | scope: Some("security:write"), |
| 6472 | params: &[ |
| 6473 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 6474 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 6475 | Param { name: "id", location: In::Path, kind: "string", required: true, values: &[] }, |
| 6476 | ], |
| 6477 | body: &[ |
| 6478 | Field { name: "comment", kind: "string", required: false, values: &[] }, |
| 6479 | Field { name: "reason", kind: "string", required: false, values: &["fix_started", "no_bandwidth", "tolerable_risk", "inaccurate", "not_used"] }, |
| 6480 | Field { name: "state", kind: "string", required: true, values: &["open", "dismissed"] }, |
| 6481 | ], |
| 6482 | }, |
| 6483 | Operation { |
| 6484 | id: "create_team", |
| 6485 | method: "POST", |
| 6486 | path: "/workspaces/{workspace}/teams", |
| 6487 | tag: "Teams", |
| 6488 | summary: "Create a team", |
| 6489 | scope: Some("workspace:admin"), |
| 6490 | params: &[ |
| 6491 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 6492 | ], |
| 6493 | body: &[ |
| 6494 | Field { name: "description", kind: "string", required: false, values: &[] }, |
| 6495 | Field { name: "members", kind: "array", required: false, values: &[] }, |
| 6496 | Field { name: "name", kind: "string", required: true, values: &[] }, |
| 6497 | Field { name: "notify", kind: "boolean", required: false, values: &[] }, |
| 6498 | Field { name: "parent", kind: "string", required: false, values: &[] }, |
| 6499 | Field { name: "slug", kind: "string", required: false, values: &[] }, |
| 6500 | Field { name: "visibility", kind: "string", required: false, values: &["visible", "secret"] }, |
| 6501 | ], |
| 6502 | }, |
| 6503 | Operation { |
| 6504 | id: "delete_team", |
| 6505 | method: "DELETE", |
| 6506 | path: "/workspaces/{workspace}/teams/{team}", |
| 6507 | tag: "Teams", |
| 6508 | summary: "Delete a team", |
| 6509 | scope: Some("workspace:admin"), |
| 6510 | params: &[ |
| 6511 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 6512 | Param { name: "team", location: In::Path, kind: "string", required: true, values: &[] }, |
| 6513 | ], |
| 6514 | body: &[], |
| 6515 | }, |
| 6516 | Operation { |
| 6517 | id: "get_team", |
| 6518 | method: "GET", |
| 6519 | path: "/workspaces/{workspace}/teams/{team}", |
| 6520 | tag: "Teams", |
| 6521 | summary: "Get a team", |
| 6522 | scope: Some("workspace:read"), |
| 6523 | params: &[ |
| 6524 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 6525 | Param { name: "team", location: In::Path, kind: "string", required: true, values: &[] }, |
| 6526 | ], |
| 6527 | body: &[], |
| 6528 | }, |
| 6529 | Operation { |
| 6530 | id: "list_child_teams", |
| 6531 | method: "GET", |
| 6532 | path: "/workspaces/{workspace}/teams/{team}/teams", |
| 6533 | tag: "Teams", |
| 6534 | summary: "List child teams", |
| 6535 | scope: Some("workspace:read"), |
| 6536 | params: &[ |
| 6537 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 6538 | Param { name: "team", location: In::Path, kind: "string", required: true, values: &[] }, |
| 6539 | ], |
| 6540 | body: &[], |
| 6541 | }, |
| 6542 | Operation { |
| 6543 | id: "list_team_members", |
| 6544 | method: "GET", |
| 6545 | path: "/workspaces/{workspace}/teams/{team}/members", |
| 6546 | tag: "Teams", |
| 6547 | summary: "List a team's members", |
| 6548 | scope: Some("workspace:read"), |
| 6549 | params: &[ |
| 6550 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 6551 | Param { name: "team", location: In::Path, kind: "string", required: true, values: &[] }, |
| 6552 | Param { name: "include_child_teams", location: In::Query, kind: "boolean", required: false, values: &[] }, |
| 6553 | ], |
| 6554 | body: &[], |
| 6555 | }, |
| 6556 | Operation { |
| 6557 | id: "list_team_repos", |
| 6558 | method: "GET", |
| 6559 | path: "/workspaces/{workspace}/teams/{team}/repos", |
| 6560 | tag: "Teams", |
| 6561 | summary: "List a team's repositories", |
| 6562 | scope: Some("workspace:read"), |
| 6563 | params: &[ |
| 6564 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 6565 | Param { name: "team", location: In::Path, kind: "string", required: true, values: &[] }, |
| 6566 | ], |
| 6567 | body: &[], |
| 6568 | }, |
| 6569 | Operation { |
| 6570 | id: "list_teams", |
| 6571 | method: "GET", |
| 6572 | path: "/workspaces/{workspace}/teams", |
| 6573 | tag: "Teams", |
| 6574 | summary: "List teams", |
| 6575 | scope: Some("workspace:read"), |
| 6576 | params: &[ |
| 6577 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 6578 | Param { name: "q", location: In::Query, kind: "string", required: false, values: &[] }, |
| 6579 | ], |
| 6580 | body: &[], |
| 6581 | }, |
| 6582 | Operation { |
| 6583 | id: "list_user_teams", |
| 6584 | method: "GET", |
| 6585 | path: "/workspaces/{workspace}/members/{username}/teams", |
| 6586 | tag: "Teams", |
| 6587 | summary: "List someone's teams", |
| 6588 | scope: Some("workspace:read"), |
| 6589 | params: &[ |
| 6590 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 6591 | Param { name: "username", location: In::Path, kind: "string", required: true, values: &[] }, |
| 6592 | ], |
| 6593 | body: &[], |
| 6594 | }, |
| 6595 | Operation { |
| 6596 | id: "remove_team_member", |
| 6597 | method: "DELETE", |
| 6598 | path: "/workspaces/{workspace}/teams/{team}/members/{username}", |
| 6599 | tag: "Teams", |
| 6600 | summary: "Remove a team member", |
| 6601 | scope: Some("workspace:admin"), |
| 6602 | params: &[ |
| 6603 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 6604 | Param { name: "team", location: In::Path, kind: "string", required: true, values: &[] }, |
| 6605 | Param { name: "username", location: In::Path, kind: "string", required: true, values: &[] }, |
| 6606 | ], |
| 6607 | body: &[], |
| 6608 | }, |
| 6609 | Operation { |
| 6610 | id: "remove_team_repo", |
| 6611 | method: "DELETE", |
| 6612 | path: "/workspaces/{workspace}/teams/{team}/repos/{repo}", |
| 6613 | tag: "Teams", |
| 6614 | summary: "Remove a team from a repository", |
| 6615 | scope: Some("access:admin"), |
| 6616 | params: &[ |
| 6617 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 6618 | Param { name: "team", location: In::Path, kind: "string", required: true, values: &[] }, |
| 6619 | Param { name: "repo", location: In::Path, kind: "string", required: true, values: &[] }, |
| 6620 | ], |
| 6621 | body: &[], |
| 6622 | }, |
| 6623 | Operation { |
| 6624 | id: "set_team_member", |
| 6625 | method: "PUT", |
| 6626 | path: "/workspaces/{workspace}/teams/{team}/members/{username}", |
| 6627 | tag: "Teams", |
| 6628 | summary: "Add or change a team member", |
| 6629 | scope: Some("workspace:admin"), |
| 6630 | params: &[ |
| 6631 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 6632 | Param { name: "team", location: In::Path, kind: "string", required: true, values: &[] }, |
| 6633 | Param { name: "username", location: In::Path, kind: "string", required: true, values: &[] }, |
| 6634 | ], |
| 6635 | body: &[ |
| 6636 | Field { name: "role", kind: "string", required: false, values: &["member", "maintainer"] }, |
| 6637 | ], |
| 6638 | }, |
| 6639 | Operation { |
| 6640 | id: "set_team_repo", |
| 6641 | method: "PUT", |
| 6642 | path: "/workspaces/{workspace}/teams/{team}/repos/{repo}", |
| 6643 | tag: "Teams", |
| 6644 | summary: "Give a team a role on a repository", |
| 6645 | scope: Some("access:admin"), |
| 6646 | params: &[ |
| 6647 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 6648 | Param { name: "team", location: In::Path, kind: "string", required: true, values: &[] }, |
| 6649 | Param { name: "repo", location: In::Path, kind: "string", required: true, values: &[] }, |
| 6650 | ], |
| 6651 | body: &[ |
| 6652 | Field { name: "role", kind: "string", required: true, values: &["read", "triage", "write", "maintain", "admin"] }, |
| 6653 | ], |
| 6654 | }, |
| 6655 | Operation { |
| 6656 | id: "set_team_review_assignment", |
| 6657 | method: "PUT", |
| 6658 | path: "/workspaces/{workspace}/teams/{team}/review_assignment", |
| 6659 | tag: "Teams", |
| 6660 | summary: "Set a team's review assignment", |
| 6661 | scope: Some("workspace:admin"), |
| 6662 | params: &[ |
| 6663 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 6664 | Param { name: "team", location: In::Path, kind: "string", required: true, values: &[] }, |
| 6665 | ], |
| 6666 | body: &[ |
| 6667 | Field { name: "algorithm", kind: "string", required: false, values: &["round_robin", "load_balance"] }, |
| 6668 | Field { name: "busy_at", kind: "integer", required: false, values: &[] }, |
| 6669 | Field { name: "count", kind: "integer", required: false, values: &[] }, |
| 6670 | Field { name: "enabled", kind: "boolean", required: false, values: &[] }, |
| 6671 | Field { name: "excluded", kind: "array", required: false, values: &[] }, |
| 6672 | Field { name: "include_child_teams", kind: "boolean", required: false, values: &[] }, |
| 6673 | Field { name: "notify_team", kind: "boolean", required: false, values: &[] }, |
| 6674 | Field { name: "skip_busy", kind: "boolean", required: false, values: &[] }, |
| 6675 | ], |
| 6676 | }, |
| 6677 | Operation { |
| 6678 | id: "update_team", |
| 6679 | method: "PATCH", |
| 6680 | path: "/workspaces/{workspace}/teams/{team}", |
| 6681 | tag: "Teams", |
| 6682 | summary: "Update a team", |
| 6683 | scope: Some("workspace:admin"), |
| 6684 | params: &[ |
| 6685 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 6686 | Param { name: "team", location: In::Path, kind: "string", required: true, values: &[] }, |
| 6687 | ], |
| 6688 | body: &[ |
| 6689 | Field { name: "description", kind: "string", required: false, values: &[] }, |
| 6690 | Field { name: "name", kind: "string", required: false, values: &[] }, |
| 6691 | Field { name: "notify", kind: "boolean", required: false, values: &[] }, |
| 6692 | Field { name: "parent", kind: "string", required: false, values: &[] }, |
| 6693 | Field { name: "review_assignment", kind: "object", required: false, values: &[] }, |
| 6694 | Field { name: "slug", kind: "string", required: false, values: &[] }, |
| 6695 | Field { name: "visibility", kind: "string", required: false, values: &["visible", "secret"] }, |
| 6696 | ], |
| 6697 | }, |
| 6698 | Operation { |
| 6699 | id: "create_webhook", |
| 6700 | method: "POST", |
| 6701 | path: "/repos/{owner}/{name}/hooks", |
| 6702 | tag: "Webhooks", |
| 6703 | summary: "Create a webhook", |
| 6704 | scope: Some("webhooks:admin"), |
| 6705 | params: &[ |
| 6706 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 6707 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 6708 | ], |
| 6709 | body: &[ |
| 6710 | Field { name: "events", kind: "array", required: false, values: &[] }, |
| 6711 | Field { name: "secret", kind: "string", required: false, values: &[] }, |
| 6712 | Field { name: "url", kind: "string", required: true, values: &[] }, |
| 6713 | Field { name: "workspace", kind: "string", required: false, values: &[] }, |
| 6714 | ], |
| 6715 | }, |
| 6716 | Operation { |
| 6717 | id: "create_webhook_for_workspace", |
| 6718 | method: "POST", |
| 6719 | path: "/workspaces/{workspace}/hooks", |
| 6720 | tag: "Webhooks", |
| 6721 | summary: "Create a webhook for a workspace", |
| 6722 | scope: Some("webhooks:admin"), |
| 6723 | params: &[ |
| 6724 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 6725 | ], |
| 6726 | body: &[ |
| 6727 | Field { name: "events", kind: "array", required: false, values: &[] }, |
| 6728 | Field { name: "secret", kind: "string", required: false, values: &[] }, |
| 6729 | Field { name: "url", kind: "string", required: true, values: &[] }, |
| 6730 | ], |
| 6731 | }, |
| 6732 | Operation { |
| 6733 | id: "delete_webhook", |
| 6734 | method: "DELETE", |
| 6735 | path: "/repos/{owner}/{name}/hooks/{id}", |
| 6736 | tag: "Webhooks", |
| 6737 | summary: "Delete a webhook", |
| 6738 | scope: Some("webhooks:admin"), |
| 6739 | params: &[ |
| 6740 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 6741 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 6742 | Param { name: "id", location: In::Path, kind: "string", required: true, values: &[] }, |
| 6743 | ], |
| 6744 | body: &[ |
| 6745 | Field { name: "workspace", kind: "string", required: false, values: &[] }, |
| 6746 | ], |
| 6747 | }, |
| 6748 | Operation { |
| 6749 | id: "delete_webhook_for_workspace", |
| 6750 | method: "DELETE", |
| 6751 | path: "/workspaces/{workspace}/hooks/{id}", |
| 6752 | tag: "Webhooks", |
| 6753 | summary: "Delete a webhook for a workspace", |
| 6754 | scope: Some("webhooks:admin"), |
| 6755 | params: &[ |
| 6756 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 6757 | Param { name: "id", location: In::Path, kind: "string", required: true, values: &[] }, |
| 6758 | ], |
| 6759 | body: &[], |
| 6760 | }, |
| 6761 | Operation { |
| 6762 | id: "list_webhook_deliveries", |
| 6763 | method: "GET", |
| 6764 | path: "/repos/{owner}/{name}/hooks/{id}/deliveries", |
| 6765 | tag: "Webhooks", |
| 6766 | summary: "List webhook deliveries", |
| 6767 | scope: Some("webhooks:read"), |
| 6768 | params: &[ |
| 6769 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 6770 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 6771 | Param { name: "id", location: In::Path, kind: "string", required: true, values: &[] }, |
| 6772 | ], |
| 6773 | body: &[], |
| 6774 | }, |
| 6775 | Operation { |
| 6776 | id: "list_webhook_deliveries_for_workspace", |
| 6777 | method: "GET", |
| 6778 | path: "/workspaces/{workspace}/hooks/{id}/deliveries", |
| 6779 | tag: "Webhooks", |
| 6780 | summary: "List webhook deliveries for a workspace", |
| 6781 | scope: Some("webhooks:read"), |
| 6782 | params: &[ |
| 6783 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 6784 | Param { name: "id", location: In::Path, kind: "string", required: true, values: &[] }, |
| 6785 | ], |
| 6786 | body: &[], |
| 6787 | }, |
| 6788 | Operation { |
| 6789 | id: "list_webhooks", |
| 6790 | method: "GET", |
| 6791 | path: "/repos/{owner}/{name}/hooks", |
| 6792 | tag: "Webhooks", |
| 6793 | summary: "List webhooks", |
| 6794 | scope: Some("webhooks:read"), |
| 6795 | params: &[ |
| 6796 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 6797 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 6798 | ], |
| 6799 | body: &[], |
| 6800 | }, |
| 6801 | Operation { |
| 6802 | id: "list_webhooks_for_workspace", |
| 6803 | method: "GET", |
| 6804 | path: "/workspaces/{workspace}/hooks", |
| 6805 | tag: "Webhooks", |
| 6806 | summary: "List webhooks for a workspace", |
| 6807 | scope: Some("webhooks:read"), |
| 6808 | params: &[ |
| 6809 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 6810 | ], |
| 6811 | body: &[], |
| 6812 | }, |
| 6813 | Operation { |
| 6814 | id: "ping_webhook", |
| 6815 | method: "POST", |
| 6816 | path: "/repos/{owner}/{name}/hooks/{id}/pings", |
| 6817 | tag: "Webhooks", |
| 6818 | summary: "Ping a webhook", |
| 6819 | scope: Some("webhooks:admin"), |
| 6820 | params: &[ |
| 6821 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 6822 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 6823 | Param { name: "id", location: In::Path, kind: "string", required: true, values: &[] }, |
| 6824 | ], |
| 6825 | body: &[ |
| 6826 | Field { name: "workspace", kind: "string", required: false, values: &[] }, |
| 6827 | ], |
| 6828 | }, |
| 6829 | Operation { |
| 6830 | id: "ping_webhook_for_workspace", |
| 6831 | method: "POST", |
| 6832 | path: "/workspaces/{workspace}/hooks/{id}/pings", |
| 6833 | tag: "Webhooks", |
| 6834 | summary: "Ping a webhook for a workspace", |
| 6835 | scope: Some("webhooks:admin"), |
| 6836 | params: &[ |
| 6837 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 6838 | Param { name: "id", location: In::Path, kind: "string", required: true, values: &[] }, |
| 6839 | ], |
| 6840 | body: &[], |
| 6841 | }, |
| 6842 | Operation { |
| 6843 | id: "redeliver_webhook", |
| 6844 | method: "POST", |
| 6845 | path: "/repos/{owner}/{name}/hooks/{id}/deliveries/{delivery}/redeliver", |
| 6846 | tag: "Webhooks", |
| 6847 | summary: "Redeliver a webhook delivery", |
| 6848 | scope: Some("webhooks:admin"), |
| 6849 | params: &[ |
| 6850 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 6851 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 6852 | Param { name: "id", location: In::Path, kind: "string", required: true, values: &[] }, |
| 6853 | Param { name: "delivery", location: In::Path, kind: "string", required: true, values: &[] }, |
| 6854 | ], |
| 6855 | body: &[ |
| 6856 | Field { name: "workspace", kind: "string", required: false, values: &[] }, |
| 6857 | ], |
| 6858 | }, |
| 6859 | Operation { |
| 6860 | id: "redeliver_webhook_for_workspace", |
| 6861 | method: "POST", |
| 6862 | path: "/workspaces/{workspace}/hooks/{id}/deliveries/{delivery}/redeliver", |
| 6863 | tag: "Webhooks", |
| 6864 | summary: "Redeliver a webhook delivery for a workspace", |
| 6865 | scope: Some("webhooks:admin"), |
| 6866 | params: &[ |
| 6867 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 6868 | Param { name: "id", location: In::Path, kind: "string", required: true, values: &[] }, |
| 6869 | Param { name: "delivery", location: In::Path, kind: "string", required: true, values: &[] }, |
| 6870 | ], |
| 6871 | body: &[], |
| 6872 | }, |
| 6873 | Operation { |
| 6874 | id: "update_webhook", |
| 6875 | method: "PATCH", |
| 6876 | path: "/repos/{owner}/{name}/hooks/{id}", |
| 6877 | tag: "Webhooks", |
| 6878 | summary: "Update a webhook", |
| 6879 | scope: Some("webhooks:admin"), |
| 6880 | params: &[ |
| 6881 | Param { name: "owner", location: In::Path, kind: "string", required: true, values: &[] }, |
| 6882 | Param { name: "name", location: In::Path, kind: "string", required: true, values: &[] }, |
| 6883 | Param { name: "id", location: In::Path, kind: "string", required: true, values: &[] }, |
| 6884 | ], |
| 6885 | body: &[ |
| 6886 | Field { name: "active", kind: "boolean", required: false, values: &[] }, |
| 6887 | Field { name: "events", kind: "array", required: false, values: &[] }, |
| 6888 | Field { name: "url", kind: "string", required: false, values: &[] }, |
| 6889 | Field { name: "workspace", kind: "string", required: false, values: &[] }, |
| 6890 | ], |
| 6891 | }, |
| 6892 | Operation { |
| 6893 | id: "update_webhook_for_workspace", |
| 6894 | method: "PATCH", |
| 6895 | path: "/workspaces/{workspace}/hooks/{id}", |
| 6896 | tag: "Webhooks", |
| 6897 | summary: "Update a webhook for a workspace", |
| 6898 | scope: Some("webhooks:admin"), |
| 6899 | params: &[ |
| 6900 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 6901 | Param { name: "id", location: In::Path, kind: "string", required: true, values: &[] }, |
| 6902 | ], |
| 6903 | body: &[ |
| 6904 | Field { name: "active", kind: "boolean", required: false, values: &[] }, |
| 6905 | Field { name: "events", kind: "array", required: false, values: &[] }, |
| 6906 | Field { name: "url", kind: "string", required: false, values: &[] }, |
| 6907 | ], |
| 6908 | }, |
| 6909 | Operation { |
| 6910 | id: "create_workspace", |
| 6911 | method: "POST", |
| 6912 | path: "/workspaces", |
| 6913 | tag: "Workspaces", |
| 6914 | summary: "Create a workspace", |
| 6915 | scope: Some("workspace:admin"), |
| 6916 | params: &[], |
| 6917 | body: &[ |
| 6918 | Field { name: "name", kind: "string", required: false, values: &[] }, |
| 6919 | Field { name: "slug", kind: "string", required: true, values: &[] }, |
| 6920 | ], |
| 6921 | }, |
| 6922 | Operation { |
| 6923 | id: "delete_workspace", |
| 6924 | method: "DELETE", |
| 6925 | path: "/workspaces/{workspace}", |
| 6926 | tag: "Workspaces", |
| 6927 | summary: "Delete a workspace", |
| 6928 | scope: Some("workspace:admin"), |
| 6929 | params: &[ |
| 6930 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 6931 | ], |
| 6932 | body: &[ |
| 6933 | Field { name: "confirm", kind: "string", required: true, values: &[] }, |
| 6934 | ], |
| 6935 | }, |
| 6936 | Operation { |
| 6937 | id: "get_workspace", |
| 6938 | method: "GET", |
| 6939 | path: "/workspaces/{workspace}", |
| 6940 | tag: "Workspaces", |
| 6941 | summary: "Get a workspace", |
| 6942 | scope: Some("workspace:read"), |
| 6943 | params: &[ |
| 6944 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 6945 | ], |
| 6946 | body: &[], |
| 6947 | }, |
| 6948 | Operation { |
| 6949 | id: "get_workspace_activity", |
| 6950 | method: "GET", |
| 6951 | path: "/workspaces/{workspace}/activity", |
| 6952 | tag: "Workspaces", |
| 6953 | summary: "Get a workspace's activity", |
| 6954 | scope: Some("repo:read"), |
| 6955 | params: &[ |
| 6956 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 6957 | Param { name: "since", location: In::Query, kind: "string", required: false, values: &[] }, |
| 6958 | Param { name: "until", location: In::Query, kind: "string", required: false, values: &[] }, |
| 6959 | Param { name: "kinds", location: In::Query, kind: "array", required: false, values: &[] }, |
| 6960 | Param { name: "limit", location: In::Query, kind: "integer", required: false, values: &[] }, |
| 6961 | ], |
| 6962 | body: &[], |
| 6963 | }, |
| 6964 | Operation { |
| 6965 | id: "update_workspace", |
| 6966 | method: "PATCH", |
| 6967 | path: "/workspaces/{workspace}", |
| 6968 | tag: "Workspaces", |
| 6969 | summary: "Update a workspace", |
| 6970 | scope: Some("workspace:admin"), |
| 6971 | params: &[ |
| 6972 | Param { name: "workspace", location: In::Path, kind: "string", required: true, values: &[] }, |
| 6973 | ], |
| 6974 | body: &[ |
| 6975 | Field { name: "base_permission", kind: "string", required: false, values: &["none", "read", "write", "admin"] }, |
| 6976 | Field { name: "description", kind: "string", required: false, values: &[] }, |
| 6977 | Field { name: "members_can_change_repo_visibility", kind: "boolean", required: false, values: &[] }, |
| 6978 | Field { name: "members_can_create_private_repositories", kind: "boolean", required: false, values: &[] }, |
| 6979 | Field { name: "members_can_create_public_repositories", kind: "boolean", required: false, values: &[] }, |
| 6980 | Field { name: "members_can_delete_repositories", kind: "boolean", required: false, values: &[] }, |
| 6981 | Field { name: "members_can_invite_outside_collaborators", kind: "boolean", required: false, values: &[] }, |
| 6982 | Field { name: "name", kind: "string", required: false, values: &[] }, |
| 6983 | Field { name: "team_creation", kind: "string", required: false, values: &["members", "owners"] }, |
| 6984 | Field { name: "two_factor_requirement_enabled", kind: "boolean", required: false, values: &[] }, |
| 6985 | ], |
| 6986 | }, |
| 6987 | ]; |