|
3 | 3 | from __future__ import annotations
|
4 | 4 |
|
5 | 5 | from typing import Any, List, Type, cast
|
| 6 | +from typing_extensions import Literal |
6 | 7 |
|
7 | 8 | import httpx
|
8 | 9 |
|
|
28 | 29 | from ....types.intel.attack_surface_report import (
|
29 | 30 | ProductParam,
|
30 | 31 | SubjectParam,
|
31 |
| - IssueTypeParam, |
32 | 32 | IssueClassParam,
|
33 | 33 | IssueListResponse,
|
34 | 34 | IssueTypeResponse,
|
@@ -62,8 +62,26 @@ def list(
|
62 | 62 | dismissed: bool | NotGiven = NOT_GIVEN,
|
63 | 63 | issue_class: IssueClassParam | NotGiven = NOT_GIVEN,
|
64 | 64 | issue_class_neq: IssueClassParam | NotGiven = NOT_GIVEN,
|
65 |
| - issue_type: IssueTypeParam | NotGiven = NOT_GIVEN, |
66 |
| - issue_type_neq: IssueTypeParam | NotGiven = NOT_GIVEN, |
| 65 | + issue_type: List[ |
| 66 | + Literal[ |
| 67 | + "compliance_violation", |
| 68 | + "email_security", |
| 69 | + "exposed_infrastructure", |
| 70 | + "insecure_configuration", |
| 71 | + "weak_authentication", |
| 72 | + ] |
| 73 | + ] |
| 74 | + | NotGiven = NOT_GIVEN, |
| 75 | + issue_type_neq: List[ |
| 76 | + Literal[ |
| 77 | + "compliance_violation", |
| 78 | + "email_security", |
| 79 | + "exposed_infrastructure", |
| 80 | + "insecure_configuration", |
| 81 | + "weak_authentication", |
| 82 | + ] |
| 83 | + ] |
| 84 | + | NotGiven = NOT_GIVEN, |
67 | 85 | page: int | NotGiven = NOT_GIVEN,
|
68 | 86 | per_page: int | NotGiven = NOT_GIVEN,
|
69 | 87 | product: ProductParam | NotGiven = NOT_GIVEN,
|
@@ -136,8 +154,26 @@ def class_(
|
136 | 154 | dismissed: bool | NotGiven = NOT_GIVEN,
|
137 | 155 | issue_class: IssueClassParam | NotGiven = NOT_GIVEN,
|
138 | 156 | issue_class_neq: IssueClassParam | NotGiven = NOT_GIVEN,
|
139 |
| - issue_type: IssueTypeParam | NotGiven = NOT_GIVEN, |
140 |
| - issue_type_neq: IssueTypeParam | NotGiven = NOT_GIVEN, |
| 157 | + issue_type: List[ |
| 158 | + Literal[ |
| 159 | + "compliance_violation", |
| 160 | + "email_security", |
| 161 | + "exposed_infrastructure", |
| 162 | + "insecure_configuration", |
| 163 | + "weak_authentication", |
| 164 | + ] |
| 165 | + ] |
| 166 | + | NotGiven = NOT_GIVEN, |
| 167 | + issue_type_neq: List[ |
| 168 | + Literal[ |
| 169 | + "compliance_violation", |
| 170 | + "email_security", |
| 171 | + "exposed_infrastructure", |
| 172 | + "insecure_configuration", |
| 173 | + "weak_authentication", |
| 174 | + ] |
| 175 | + ] |
| 176 | + | NotGiven = NOT_GIVEN, |
141 | 177 | product: ProductParam | NotGiven = NOT_GIVEN,
|
142 | 178 | product_neq: ProductParam | NotGiven = NOT_GIVEN,
|
143 | 179 | severity: List[SeverityQueryParam] | NotGiven = NOT_GIVEN,
|
@@ -251,8 +287,26 @@ def severity(
|
251 | 287 | dismissed: bool | NotGiven = NOT_GIVEN,
|
252 | 288 | issue_class: IssueClassParam | NotGiven = NOT_GIVEN,
|
253 | 289 | issue_class_neq: IssueClassParam | NotGiven = NOT_GIVEN,
|
254 |
| - issue_type: IssueTypeParam | NotGiven = NOT_GIVEN, |
255 |
| - issue_type_neq: IssueTypeParam | NotGiven = NOT_GIVEN, |
| 290 | + issue_type: List[ |
| 291 | + Literal[ |
| 292 | + "compliance_violation", |
| 293 | + "email_security", |
| 294 | + "exposed_infrastructure", |
| 295 | + "insecure_configuration", |
| 296 | + "weak_authentication", |
| 297 | + ] |
| 298 | + ] |
| 299 | + | NotGiven = NOT_GIVEN, |
| 300 | + issue_type_neq: List[ |
| 301 | + Literal[ |
| 302 | + "compliance_violation", |
| 303 | + "email_security", |
| 304 | + "exposed_infrastructure", |
| 305 | + "insecure_configuration", |
| 306 | + "weak_authentication", |
| 307 | + ] |
| 308 | + ] |
| 309 | + | NotGiven = NOT_GIVEN, |
256 | 310 | product: ProductParam | NotGiven = NOT_GIVEN,
|
257 | 311 | product_neq: ProductParam | NotGiven = NOT_GIVEN,
|
258 | 312 | severity: List[SeverityQueryParam] | NotGiven = NOT_GIVEN,
|
@@ -317,8 +371,26 @@ def type(
|
317 | 371 | dismissed: bool | NotGiven = NOT_GIVEN,
|
318 | 372 | issue_class: IssueClassParam | NotGiven = NOT_GIVEN,
|
319 | 373 | issue_class_neq: IssueClassParam | NotGiven = NOT_GIVEN,
|
320 |
| - issue_type: IssueTypeParam | NotGiven = NOT_GIVEN, |
321 |
| - issue_type_neq: IssueTypeParam | NotGiven = NOT_GIVEN, |
| 374 | + issue_type: List[ |
| 375 | + Literal[ |
| 376 | + "compliance_violation", |
| 377 | + "email_security", |
| 378 | + "exposed_infrastructure", |
| 379 | + "insecure_configuration", |
| 380 | + "weak_authentication", |
| 381 | + ] |
| 382 | + ] |
| 383 | + | NotGiven = NOT_GIVEN, |
| 384 | + issue_type_neq: List[ |
| 385 | + Literal[ |
| 386 | + "compliance_violation", |
| 387 | + "email_security", |
| 388 | + "exposed_infrastructure", |
| 389 | + "insecure_configuration", |
| 390 | + "weak_authentication", |
| 391 | + ] |
| 392 | + ] |
| 393 | + | NotGiven = NOT_GIVEN, |
322 | 394 | product: ProductParam | NotGiven = NOT_GIVEN,
|
323 | 395 | product_neq: ProductParam | NotGiven = NOT_GIVEN,
|
324 | 396 | severity: List[SeverityQueryParam] | NotGiven = NOT_GIVEN,
|
@@ -393,8 +465,26 @@ def list(
|
393 | 465 | dismissed: bool | NotGiven = NOT_GIVEN,
|
394 | 466 | issue_class: IssueClassParam | NotGiven = NOT_GIVEN,
|
395 | 467 | issue_class_neq: IssueClassParam | NotGiven = NOT_GIVEN,
|
396 |
| - issue_type: IssueTypeParam | NotGiven = NOT_GIVEN, |
397 |
| - issue_type_neq: IssueTypeParam | NotGiven = NOT_GIVEN, |
| 468 | + issue_type: List[ |
| 469 | + Literal[ |
| 470 | + "compliance_violation", |
| 471 | + "email_security", |
| 472 | + "exposed_infrastructure", |
| 473 | + "insecure_configuration", |
| 474 | + "weak_authentication", |
| 475 | + ] |
| 476 | + ] |
| 477 | + | NotGiven = NOT_GIVEN, |
| 478 | + issue_type_neq: List[ |
| 479 | + Literal[ |
| 480 | + "compliance_violation", |
| 481 | + "email_security", |
| 482 | + "exposed_infrastructure", |
| 483 | + "insecure_configuration", |
| 484 | + "weak_authentication", |
| 485 | + ] |
| 486 | + ] |
| 487 | + | NotGiven = NOT_GIVEN, |
398 | 488 | page: int | NotGiven = NOT_GIVEN,
|
399 | 489 | per_page: int | NotGiven = NOT_GIVEN,
|
400 | 490 | product: ProductParam | NotGiven = NOT_GIVEN,
|
@@ -467,8 +557,26 @@ async def class_(
|
467 | 557 | dismissed: bool | NotGiven = NOT_GIVEN,
|
468 | 558 | issue_class: IssueClassParam | NotGiven = NOT_GIVEN,
|
469 | 559 | issue_class_neq: IssueClassParam | NotGiven = NOT_GIVEN,
|
470 |
| - issue_type: IssueTypeParam | NotGiven = NOT_GIVEN, |
471 |
| - issue_type_neq: IssueTypeParam | NotGiven = NOT_GIVEN, |
| 560 | + issue_type: List[ |
| 561 | + Literal[ |
| 562 | + "compliance_violation", |
| 563 | + "email_security", |
| 564 | + "exposed_infrastructure", |
| 565 | + "insecure_configuration", |
| 566 | + "weak_authentication", |
| 567 | + ] |
| 568 | + ] |
| 569 | + | NotGiven = NOT_GIVEN, |
| 570 | + issue_type_neq: List[ |
| 571 | + Literal[ |
| 572 | + "compliance_violation", |
| 573 | + "email_security", |
| 574 | + "exposed_infrastructure", |
| 575 | + "insecure_configuration", |
| 576 | + "weak_authentication", |
| 577 | + ] |
| 578 | + ] |
| 579 | + | NotGiven = NOT_GIVEN, |
472 | 580 | product: ProductParam | NotGiven = NOT_GIVEN,
|
473 | 581 | product_neq: ProductParam | NotGiven = NOT_GIVEN,
|
474 | 582 | severity: List[SeverityQueryParam] | NotGiven = NOT_GIVEN,
|
@@ -582,8 +690,26 @@ async def severity(
|
582 | 690 | dismissed: bool | NotGiven = NOT_GIVEN,
|
583 | 691 | issue_class: IssueClassParam | NotGiven = NOT_GIVEN,
|
584 | 692 | issue_class_neq: IssueClassParam | NotGiven = NOT_GIVEN,
|
585 |
| - issue_type: IssueTypeParam | NotGiven = NOT_GIVEN, |
586 |
| - issue_type_neq: IssueTypeParam | NotGiven = NOT_GIVEN, |
| 693 | + issue_type: List[ |
| 694 | + Literal[ |
| 695 | + "compliance_violation", |
| 696 | + "email_security", |
| 697 | + "exposed_infrastructure", |
| 698 | + "insecure_configuration", |
| 699 | + "weak_authentication", |
| 700 | + ] |
| 701 | + ] |
| 702 | + | NotGiven = NOT_GIVEN, |
| 703 | + issue_type_neq: List[ |
| 704 | + Literal[ |
| 705 | + "compliance_violation", |
| 706 | + "email_security", |
| 707 | + "exposed_infrastructure", |
| 708 | + "insecure_configuration", |
| 709 | + "weak_authentication", |
| 710 | + ] |
| 711 | + ] |
| 712 | + | NotGiven = NOT_GIVEN, |
587 | 713 | product: ProductParam | NotGiven = NOT_GIVEN,
|
588 | 714 | product_neq: ProductParam | NotGiven = NOT_GIVEN,
|
589 | 715 | severity: List[SeverityQueryParam] | NotGiven = NOT_GIVEN,
|
@@ -648,8 +774,26 @@ async def type(
|
648 | 774 | dismissed: bool | NotGiven = NOT_GIVEN,
|
649 | 775 | issue_class: IssueClassParam | NotGiven = NOT_GIVEN,
|
650 | 776 | issue_class_neq: IssueClassParam | NotGiven = NOT_GIVEN,
|
651 |
| - issue_type: IssueTypeParam | NotGiven = NOT_GIVEN, |
652 |
| - issue_type_neq: IssueTypeParam | NotGiven = NOT_GIVEN, |
| 777 | + issue_type: List[ |
| 778 | + Literal[ |
| 779 | + "compliance_violation", |
| 780 | + "email_security", |
| 781 | + "exposed_infrastructure", |
| 782 | + "insecure_configuration", |
| 783 | + "weak_authentication", |
| 784 | + ] |
| 785 | + ] |
| 786 | + | NotGiven = NOT_GIVEN, |
| 787 | + issue_type_neq: List[ |
| 788 | + Literal[ |
| 789 | + "compliance_violation", |
| 790 | + "email_security", |
| 791 | + "exposed_infrastructure", |
| 792 | + "insecure_configuration", |
| 793 | + "weak_authentication", |
| 794 | + ] |
| 795 | + ] |
| 796 | + | NotGiven = NOT_GIVEN, |
653 | 797 | product: ProductParam | NotGiven = NOT_GIVEN,
|
654 | 798 | product_neq: ProductParam | NotGiven = NOT_GIVEN,
|
655 | 799 | severity: List[SeverityQueryParam] | NotGiven = NOT_GIVEN,
|
|
0 commit comments