@cdot65/prisma-airs-sdk 0.6.1 → 0.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -4,6 +4,12 @@ var HEADER_AUTH_TOKEN = "Authorization";
4
4
  var PAYLOAD_HASH = "x-payload-hash";
5
5
  var BEARER = "Bearer ";
6
6
  var DEFAULT_ENDPOINT = "https://service.api.aisecurity.paloaltonetworks.com";
7
+ var AIRS_ENDPOINTS = {
8
+ US: "https://service.api.aisecurity.paloaltonetworks.com",
9
+ EU: "https://service-de.api.aisecurity.paloaltonetworks.com",
10
+ INDIA: "https://service-in.api.aisecurity.paloaltonetworks.com",
11
+ SINGAPORE: "https://service-sg.api.aisecurity.paloaltonetworks.com"
12
+ };
7
13
  var AI_SEC_API_KEY = "PANW_AI_SEC_API_KEY";
8
14
  var AI_SEC_API_TOKEN = "PANW_AI_SEC_API_TOKEN";
9
15
  var AI_SEC_API_ENDPOINT = "PANW_AI_SEC_API_ENDPOINT";
@@ -23,7 +29,7 @@ var MAX_NUMBER_OF_BATCH_SCAN_OBJECTS = 5;
23
29
  var MAX_CONNECTION_POOL_SIZE = 100;
24
30
  var MAX_NUMBER_OF_RETRIES = 5;
25
31
  var HTTP_FORCE_RETRY_STATUS_CODES = [500, 502, 503, 504];
26
- var SDK_VERSION = "0.6.1";
32
+ var SDK_VERSION = "0.6.2";
27
33
  var USER_AGENT = `PAN-AIRS/${SDK_VERSION}-typescript-sdk`;
28
34
  var DEFAULT_MGMT_ENDPOINT = "https://api.sase.paloaltonetworks.com/aisec";
29
35
  var DEFAULT_TOKEN_ENDPOINT = "https://auth.apps.paloaltonetworks.com/oauth2/access_token";
@@ -41,6 +47,15 @@ var MGMT_PROFILES_TSG_PATH = "/v1/mgmt/profiles/tsg";
41
47
  var MGMT_TOPIC_PATH = "/v1/mgmt/topic";
42
48
  var MGMT_TOPICS_TSG_PATH = "/v1/mgmt/topics/tsg";
43
49
  var MGMT_TOPIC_FORCE_PATH = "/v1/mgmt/topic/force";
50
+ var MGMT_API_KEY_PATH = "/v1/mgmt/apikey";
51
+ var MGMT_API_KEYS_TSG_PATH = "/v1/mgmt/apikeys/tsg";
52
+ var MGMT_DLP_PROFILES_PATH = "/v1/mgmt/dlpprofiles";
53
+ var MGMT_DEPLOYMENT_PROFILES_PATH = "/v1/mgmt/deploymentprofiles";
54
+ var MGMT_SCAN_LOGS_PATH = "/v1/mgmt/scanlogs";
55
+ var MGMT_CUSTOMER_APP_PATH = "/v1/mgmt/customerapp";
56
+ var MGMT_CUSTOMER_APPS_TSG_PATH = "/v1/mgmt/customerapp/tsg";
57
+ var MGMT_OAUTH_INVALIDATE_PATH = "/v1/mgmt/oauth/invalidateToken";
58
+ var MGMT_OAUTH_TOKEN_PATH = "/v1/mgmt/oauth/client_credential/accesstoken";
44
59
  var DEFAULT_MODEL_SEC_DATA_ENDPOINT = "https://api.sase.paloaltonetworks.com/aims/data";
45
60
  var DEFAULT_MODEL_SEC_MGMT_ENDPOINT = "https://api.sase.paloaltonetworks.com/aims/mgmt";
46
61
  var MODEL_SEC_CLIENT_ID = "PANW_MODEL_SEC_CLIENT_ID";
@@ -564,6 +579,25 @@ var Category = {
564
579
  MALICIOUS: "malicious",
565
580
  UNKNOWN: "unknown"
566
581
  };
582
+ var DetectionServiceName = {
583
+ DLP: "dlp",
584
+ INJECTION: "injection",
585
+ URL_CATS: "url_cats",
586
+ TOXIC_CONTENT: "toxic_content",
587
+ MALICIOUS_CODE: "malicious_code",
588
+ AGENT: "agent",
589
+ TOPIC_VIOLATION: "topic_violation",
590
+ DB_SECURITY: "db_security",
591
+ UNGROUNDED: "ungrounded"
592
+ };
593
+ var ContentErrorType = {
594
+ PROMPT: "prompt",
595
+ RESPONSE: "response"
596
+ };
597
+ var ErrorStatus = {
598
+ ERROR: "error",
599
+ TIMEOUT: "timeout"
600
+ };
567
601
 
568
602
  // src/models/ai-profile.ts
569
603
  import { z } from "zod";
@@ -622,7 +656,7 @@ var ScanRequestSchema = z4.object({
622
656
  });
623
657
 
624
658
  // src/models/scan-response.ts
625
- import { z as z7 } from "zod";
659
+ import { z as z8 } from "zod";
626
660
 
627
661
  // src/models/prompt-detected.ts
628
662
  import { z as z5 } from "zod";
@@ -655,39 +689,112 @@ var ResponseDetectedSchema = z6.object({
655
689
  topic_violation: z6.boolean().optional()
656
690
  });
657
691
 
658
- // src/models/scan-response.ts
659
- var MaskedDataSchema = z7.object({
660
- data: z7.string().optional(),
661
- pattern_detections: z7.array(z7.record(z7.unknown())).optional()
662
- });
663
- var IODetectedSchema = z7.object({
664
- url_cats: z7.boolean().optional(),
665
- dlp: z7.boolean().optional(),
666
- injection: z7.boolean().optional(),
667
- toxic_content: z7.boolean().optional(),
668
- malicious_code: z7.boolean().optional()
669
- }).passthrough();
670
- var ScanSummarySchema = z7.object({
692
+ // src/models/detection-reports.ts
693
+ import { z as z7 } from "zod";
694
+ var TcReportSchema = z7.object({
695
+ confidence: z7.string().optional(),
696
+ verdict: z7.string().optional()
697
+ }).passthrough();
698
+ var DbsEntrySchema = z7.object({
699
+ sub_type: z7.string().optional(),
671
700
  verdict: z7.string().optional(),
672
701
  action: z7.string().optional()
673
702
  }).passthrough();
674
- var ToolDetectedSchema = z7.object({
703
+ var DbsReportSchema = z7.array(DbsEntrySchema);
704
+ var McEntrySchema = z7.object({
705
+ file_type: z7.string().optional(),
706
+ code_sha256: z7.string().optional()
707
+ }).passthrough();
708
+ var MalwareReportSchema = z7.object({
709
+ verdict: z7.string().optional()
710
+ }).passthrough();
711
+ var CmdEntrySchema = z7.object({
712
+ code_block: z7.string().optional(),
713
+ verdict: z7.string().optional()
714
+ }).passthrough();
715
+ var CmdInjectReportSchema = z7.array(CmdEntrySchema);
716
+ var McReportSchema = z7.object({
717
+ all_code_blocks: z7.array(z7.string()).optional(),
718
+ code_analysis_by_type: z7.array(McEntrySchema).optional(),
675
719
  verdict: z7.string().optional(),
720
+ malware_script_report: MalwareReportSchema.optional(),
721
+ command_injection_report: CmdInjectReportSchema.optional()
722
+ }).passthrough();
723
+ var AgentEntrySchema = z7.object({
724
+ category_type: z7.string().optional(),
725
+ verdict: z7.string().optional()
726
+ }).passthrough();
727
+ var AgentReportSchema = z7.object({
728
+ model_verdict: z7.string().optional(),
729
+ agent_framework: z7.string().optional(),
730
+ agent_patterns: z7.array(AgentEntrySchema).optional()
731
+ }).passthrough();
732
+ var TgReportSchema = z7.object({
733
+ allowed_topic_list: z7.string().optional(),
734
+ blocked_topic_list: z7.string().optional(),
735
+ allowedTopics: z7.array(z7.string()).optional(),
736
+ blockedTopics: z7.array(z7.string()).optional()
737
+ }).passthrough();
738
+ var CgReportSchema = z7.object({
739
+ status: z7.string().optional(),
740
+ explanation: z7.string().optional(),
741
+ category: z7.string().optional()
742
+ }).passthrough();
743
+ var OffsetSchema = z7.array(z7.array(z7.number()));
744
+ var DlpPatternDetectionSchema = z7.object({
745
+ data_pattern_id: z7.string().optional(),
746
+ version: z7.number().optional(),
747
+ name: z7.string().optional(),
748
+ high_confidence_detections: OffsetSchema.optional(),
749
+ medium_confidence_detections: OffsetSchema.optional(),
750
+ low_confidence_detections: OffsetSchema.optional()
751
+ }).passthrough();
752
+ var PatternDetectionSchema = z7.object({
753
+ pattern: z7.string().optional(),
754
+ locations: OffsetSchema.optional()
755
+ }).passthrough();
756
+ var ContentErrorSchema = z7.object({
757
+ content_type: z7.string().optional(),
758
+ feature: z7.string().optional(),
759
+ status: z7.string().optional()
760
+ }).passthrough();
761
+
762
+ // src/models/scan-response.ts
763
+ var MaskedDataSchema = z8.object({
764
+ data: z8.string().optional(),
765
+ pattern_detections: z8.array(PatternDetectionSchema).optional()
766
+ });
767
+ var IODetectedSchema = z8.object({
768
+ url_cats: z8.boolean().optional(),
769
+ dlp: z8.boolean().optional(),
770
+ injection: z8.boolean().optional(),
771
+ toxic_content: z8.boolean().optional(),
772
+ malicious_code: z8.boolean().optional()
773
+ }).passthrough();
774
+ var ScanSummarySchema = z8.object({
775
+ verdict: z8.string().optional(),
776
+ action: z8.string().optional()
777
+ }).passthrough();
778
+ var ToolDetectedSchema = z8.object({
779
+ verdict: z8.string().optional(),
676
780
  metadata: ToolEventMetadataSchema.optional(),
677
781
  summary: ScanSummarySchema.optional(),
678
782
  input_detected: IODetectedSchema.optional(),
679
783
  output_detected: IODetectedSchema.optional()
680
784
  });
681
- var ScanResponseSchema = z7.object({
682
- source: z7.string().optional(),
683
- report_id: z7.string(),
684
- scan_id: z7.string(),
685
- tr_id: z7.string().optional(),
686
- session_id: z7.string().optional(),
687
- profile_id: z7.string().optional(),
688
- profile_name: z7.string().optional(),
689
- category: z7.string(),
690
- action: z7.string(),
785
+ var ScanResponseSchema = z8.object({
786
+ source: z8.string().optional(),
787
+ report_id: z8.string(),
788
+ scan_id: z8.string(),
789
+ tr_id: z8.string().optional(),
790
+ session_id: z8.string().optional(),
791
+ profile_id: z8.string().optional(),
792
+ profile_name: z8.string().optional(),
793
+ category: z8.string(),
794
+ action: z8.string(),
795
+ timeout: z8.boolean().optional(),
796
+ error: z8.boolean().optional(),
797
+ errors: z8.array(ContentErrorSchema).optional(),
691
798
  prompt_detected: PromptDetectedSchema.optional(),
692
799
  response_detected: ResponseDetectedSchema.optional(),
693
800
  prompt_masked_data: MaskedDataSchema.optional(),
@@ -695,221 +802,459 @@ var ScanResponseSchema = z7.object({
695
802
  prompt_detection_details: PromptDetectionDetailsSchema.optional(),
696
803
  response_detection_details: ResponseDetectionDetailsSchema.optional(),
697
804
  tool_detected: ToolDetectedSchema.optional(),
698
- created_at: z7.string().optional(),
699
- completed_at: z7.string().optional()
805
+ created_at: z8.string().optional(),
806
+ completed_at: z8.string().optional()
700
807
  });
701
808
 
702
809
  // src/models/async-scan.ts
703
- import { z as z8 } from "zod";
704
- var AsyncScanObjectSchema = z8.object({
705
- req_id: z8.number().int(),
810
+ import { z as z9 } from "zod";
811
+ var AsyncScanObjectSchema = z9.object({
812
+ req_id: z9.number().int(),
706
813
  scan_req: ScanRequestSchema
707
814
  });
708
- var AsyncScanResponseSchema = z8.object({
709
- received: z8.string(),
710
- scan_id: z8.string(),
711
- report_id: z8.string().optional(),
712
- source: z8.string().optional()
815
+ var AsyncScanResponseSchema = z9.object({
816
+ received: z9.string(),
817
+ scan_id: z9.string(),
818
+ report_id: z9.string().optional(),
819
+ source: z9.string().optional()
713
820
  });
714
821
 
715
822
  // src/models/scan-id-result.ts
716
- import { z as z9 } from "zod";
717
- var ScanIdResultSchema = z9.object({
718
- source: z9.string().optional(),
719
- req_id: z9.number().optional(),
720
- status: z9.string().optional(),
721
- scan_id: z9.string().optional(),
823
+ import { z as z10 } from "zod";
824
+ var ScanIdResultSchema = z10.object({
825
+ source: z10.string().optional(),
826
+ req_id: z10.number().optional(),
827
+ status: z10.string().optional(),
828
+ scan_id: z10.string().optional(),
722
829
  result: ScanResponseSchema.optional()
723
830
  });
724
831
 
725
832
  // src/models/threat-report.ts
726
- import { z as z13 } from "zod";
833
+ import { z as z14 } from "zod";
727
834
 
728
835
  // src/models/detection.ts
729
- import { z as z12 } from "zod";
836
+ import { z as z13 } from "zod";
730
837
 
731
838
  // src/models/dlp-report.ts
732
- import { z as z10 } from "zod";
733
- var DlpReportSchema = z10.object({
734
- dlp_report_id: z10.string().optional(),
735
- dlp_profile_name: z10.string().optional(),
736
- dlp_profile_id: z10.string().optional(),
737
- dlp_profile_version: z10.number().optional(),
738
- data_pattern_rule1_verdict: z10.string().optional(),
739
- data_pattern_rule2_verdict: z10.string().optional()
839
+ import { z as z11 } from "zod";
840
+ var DlpReportSchema = z11.object({
841
+ dlp_report_id: z11.string().optional(),
842
+ dlp_profile_name: z11.string().optional(),
843
+ dlp_profile_id: z11.string().optional(),
844
+ dlp_profile_version: z11.number().optional(),
845
+ data_pattern_rule1_verdict: z11.string().optional(),
846
+ data_pattern_rule2_verdict: z11.string().optional(),
847
+ data_pattern_detection_offsets: z11.array(DlpPatternDetectionSchema).optional()
740
848
  });
741
849
 
742
850
  // src/models/urlf-report.ts
743
- import { z as z11 } from "zod";
744
- var UrlfEntrySchema = z11.object({
745
- url: z11.string().optional(),
746
- risk_level: z11.string().optional(),
747
- categories: z11.array(z11.string()).optional()
851
+ import { z as z12 } from "zod";
852
+ var UrlfEntrySchema = z12.object({
853
+ url: z12.string().optional(),
854
+ risk_level: z12.string().optional(),
855
+ action: z12.string().optional(),
856
+ categories: z12.array(z12.string()).optional()
748
857
  });
749
858
 
750
859
  // src/models/detection.ts
751
- var DSDetailResultSchema = z12.object({
752
- urlf_report: z12.array(UrlfEntrySchema).optional(),
753
- dlp_report: DlpReportSchema.optional()
754
- });
755
- var DSResultMetadataSchema = z12.object({
756
- score: z12.number().optional(),
757
- confidence: z12.string().optional()
758
- }).passthrough();
759
- var DetectionServiceResultSchema = z12.object({
760
- data_type: z12.string().optional(),
761
- detection_service: z12.string().optional(),
762
- verdict: z12.string().optional(),
763
- action: z12.string().optional(),
860
+ var DSDetailResultSchema = z13.object({
861
+ urlf_report: z13.array(UrlfEntrySchema).optional(),
862
+ dlp_report: DlpReportSchema.optional(),
863
+ dbs_report: DbsReportSchema.optional(),
864
+ tc_report: TcReportSchema.optional(),
865
+ mc_report: McReportSchema.optional(),
866
+ agent_report: AgentReportSchema.optional(),
867
+ topic_guardrails_report: TgReportSchema.optional(),
868
+ cg_report: CgReportSchema.optional()
869
+ }).passthrough();
870
+ var DSResultMetadataSchema = z13.object({
871
+ score: z13.number().optional(),
872
+ confidence: z13.string().optional(),
873
+ ecosystem: z13.string().optional(),
874
+ method: z13.string().optional(),
875
+ server_name: z13.string().optional(),
876
+ tool_invoked: z13.string().optional(),
877
+ direction: z13.string().optional()
878
+ }).passthrough();
879
+ var DetectionServiceResultSchema = z13.object({
880
+ data_type: z13.string().optional(),
881
+ detection_service: z13.string().optional(),
882
+ verdict: z13.string().optional(),
883
+ action: z13.string().optional(),
764
884
  metadata: DSResultMetadataSchema.optional(),
765
885
  result_detail: DSDetailResultSchema.optional()
766
886
  });
767
887
 
768
888
  // src/models/threat-report.ts
769
- var ThreatScanReportSchema = z13.object({
770
- source: z13.string().optional(),
771
- report_id: z13.string().optional(),
772
- scan_id: z13.string().optional(),
773
- req_id: z13.number().optional(),
774
- transaction_id: z13.string().optional(),
775
- session_id: z13.string().optional(),
776
- detection_results: z13.array(DetectionServiceResultSchema).optional()
889
+ var ThreatScanReportSchema = z14.object({
890
+ source: z14.string().optional(),
891
+ report_id: z14.string().optional(),
892
+ scan_id: z14.string().optional(),
893
+ req_id: z14.number().optional(),
894
+ transaction_id: z14.string().optional(),
895
+ session_id: z14.string().optional(),
896
+ detection_results: z14.array(DetectionServiceResultSchema).optional()
777
897
  });
778
898
 
779
899
  // src/models/error-response.ts
780
- import { z as z14 } from "zod";
781
- var ErrorResponseSchema = z14.object({
782
- status_code: z14.number().optional(),
783
- message: z14.string().optional(),
784
- error: z14.object({
785
- message: z14.string().optional()
900
+ import { z as z15 } from "zod";
901
+ var ErrorResponseSchema = z15.object({
902
+ status_code: z15.number().optional(),
903
+ message: z15.string().optional(),
904
+ error: z15.object({
905
+ message: z15.string().optional()
786
906
  }).passthrough().optional(),
787
- retry_after: z14.object({
788
- interval: z14.number().optional(),
789
- unit: z14.string().optional()
907
+ retry_after: z15.object({
908
+ interval: z15.number().optional(),
909
+ unit: z15.string().optional()
790
910
  }).optional()
791
911
  });
792
912
 
793
913
  // src/models/mgmt-security-profile.ts
794
- import { z as z15 } from "zod";
795
- var DlpDataProfileSchema = z15.object({
796
- profile_name: z15.string(),
797
- active: z15.boolean().optional()
914
+ import { z as z16 } from "zod";
915
+ var DlpDataProfileSchema = z16.object({
916
+ profile_name: z16.string(),
917
+ active: z16.boolean().optional()
798
918
  }).passthrough();
799
- var DlpSchema = z15.object({
800
- dlp_status: z15.string().optional(),
801
- data_profiles: z15.array(DlpDataProfileSchema).optional()
919
+ var DlpSchema = z16.object({
920
+ dlp_status: z16.string().optional(),
921
+ data_profiles: z16.array(DlpDataProfileSchema).optional()
802
922
  }).passthrough();
803
- var DataLeakDetectionSchema = z15.object({
804
- "data-leak-detection-status": z15.string().optional(),
923
+ var DataLeakDetectionSchema = z16.object({
924
+ "data-leak-detection-status": z16.string().optional(),
805
925
  dlp: DlpSchema.optional()
806
926
  }).passthrough();
807
- var AppProtectionSchema = z15.object({
808
- "prompt-injection": z15.string().optional(),
809
- "jailbreak-detection": z15.string().optional()
927
+ var AppProtectionSchema = z16.object({
928
+ "prompt-injection": z16.string().optional(),
929
+ "jailbreak-detection": z16.string().optional()
810
930
  }).passthrough();
811
- var ModelProtectionSchema = z15.object({
812
- "model-denial-of-service": z15.string().optional()
931
+ var ModelProtectionSchema = z16.object({
932
+ "model-denial-of-service": z16.string().optional()
813
933
  }).passthrough();
814
- var AgentProtectionSchema = z15.object({
815
- "malicious-agent-activity": z15.string().optional()
934
+ var AgentProtectionSchema = z16.object({
935
+ "malicious-agent-activity": z16.string().optional()
816
936
  }).passthrough();
817
- var LatencySchema = z15.object({
818
- status: z15.string().optional(),
819
- max_latency_ms: z15.number().optional()
937
+ var LatencySchema = z16.object({
938
+ status: z16.string().optional(),
939
+ max_latency_ms: z16.number().optional()
820
940
  }).passthrough();
821
- var ModelConfigurationSchema = z15.object({
941
+ var ModelConfigurationSchema = z16.object({
822
942
  latency: LatencySchema.optional()
823
943
  }).passthrough();
824
- var PolicySchema = z15.object({
944
+ var PolicySchema = z16.object({
825
945
  "data-leak-detection": DataLeakDetectionSchema.optional(),
826
946
  "app-protection": AppProtectionSchema.optional(),
827
947
  "model-protection": ModelProtectionSchema.optional(),
828
948
  "agent-protection": AgentProtectionSchema.optional(),
829
949
  "model-configuration": ModelConfigurationSchema.optional()
830
950
  }).passthrough();
831
- var SecurityProfileSchema = z15.object({
832
- profile_id: z15.string().optional(),
833
- profile_name: z15.string(),
834
- revision: z15.number().optional(),
835
- active: z15.boolean().optional(),
836
- policy: PolicySchema.optional(),
837
- created_by: z15.string().optional(),
838
- updated_by: z15.string().optional(),
839
- last_modified_ts: z15.string().optional()
840
- }).passthrough();
841
- var CreateSecurityProfileRequestSchema = z15.object({
842
- profile_id: z15.string().optional(),
843
- profile_name: z15.string(),
844
- revision: z15.number().optional(),
845
- active: z15.boolean().optional(),
846
- policy: PolicySchema.optional(),
847
- created_by: z15.string().optional(),
848
- updated_by: z15.string().optional(),
849
- last_modified_ts: z15.string().optional()
850
- }).passthrough();
851
- var SecurityProfileListResponseSchema = z15.object({
852
- ai_profiles: z15.array(SecurityProfileSchema),
853
- next_offset: z15.number().optional()
854
- }).passthrough();
855
- var DeleteProfileResponseSchema = z15.object({
856
- message: z15.string()
857
- }).passthrough();
858
- var DeleteProfileConflictSchema = z15.object({
859
- message: z15.string(),
860
- payload: z15.array(
861
- z15.object({
862
- policy_id: z15.string(),
863
- policy_name: z15.string(),
864
- priority: z15.number()
865
- }).passthrough()
866
- )
867
- }).passthrough();
868
-
869
- // src/models/mgmt-custom-topic.ts
870
- import { z as z16 } from "zod";
871
- var CustomTopicSchema = z16.object({
872
- topic_id: z16.string().optional(),
873
- topic_name: z16.string(),
951
+ var SecurityProfileSchema = z16.object({
952
+ profile_id: z16.string().optional(),
953
+ profile_name: z16.string(),
874
954
  revision: z16.number().optional(),
875
955
  active: z16.boolean().optional(),
876
- description: z16.string().optional(),
877
- examples: z16.array(z16.string()).optional(),
956
+ policy: PolicySchema.optional(),
878
957
  created_by: z16.string().optional(),
879
958
  updated_by: z16.string().optional(),
880
- last_modified_ts: z16.string().optional(),
881
- created_ts: z16.string().optional()
959
+ last_modified_ts: z16.string().optional()
882
960
  }).passthrough();
883
- var CreateCustomTopicRequestSchema = z16.object({
884
- topic_id: z16.string().optional(),
885
- topic_name: z16.string(),
961
+ var CreateSecurityProfileRequestSchema = z16.object({
962
+ profile_id: z16.string().optional(),
963
+ profile_name: z16.string(),
886
964
  revision: z16.number().optional(),
887
965
  active: z16.boolean().optional(),
888
- description: z16.string().optional(),
889
- examples: z16.array(z16.string()).optional(),
966
+ policy: PolicySchema.optional(),
890
967
  created_by: z16.string().optional(),
891
968
  updated_by: z16.string().optional(),
892
- last_modified_ts: z16.string().optional(),
893
- created_ts: z16.string().optional()
969
+ last_modified_ts: z16.string().optional()
894
970
  }).passthrough();
895
- var CustomTopicListResponseSchema = z16.object({
896
- custom_topics: z16.array(CustomTopicSchema),
971
+ var SecurityProfileListResponseSchema = z16.object({
972
+ ai_profiles: z16.array(SecurityProfileSchema),
897
973
  next_offset: z16.number().optional()
898
974
  }).passthrough();
899
- var DeleteTopicResponseSchema = z16.object({
975
+ var DeleteProfileResponseSchema = z16.object({
900
976
  message: z16.string()
901
977
  }).passthrough();
902
- var DeleteTopicConflictSchema = z16.object({
978
+ var DeleteProfileConflictSchema = z16.object({
903
979
  message: z16.string(),
904
980
  payload: z16.array(
905
981
  z16.object({
906
- profile_id: z16.string(),
907
- profile_name: z16.string(),
908
- revision: z16.number()
982
+ policy_id: z16.string(),
983
+ policy_name: z16.string(),
984
+ priority: z16.number()
985
+ }).passthrough()
986
+ )
987
+ }).passthrough();
988
+
989
+ // src/models/mgmt-custom-topic.ts
990
+ import { z as z17 } from "zod";
991
+ var CustomTopicSchema = z17.object({
992
+ topic_id: z17.string().optional(),
993
+ topic_name: z17.string(),
994
+ revision: z17.number().optional(),
995
+ active: z17.boolean().optional(),
996
+ description: z17.string().optional(),
997
+ examples: z17.array(z17.string()).optional(),
998
+ created_by: z17.string().optional(),
999
+ updated_by: z17.string().optional(),
1000
+ last_modified_ts: z17.string().optional(),
1001
+ created_ts: z17.string().optional()
1002
+ }).passthrough();
1003
+ var CreateCustomTopicRequestSchema = z17.object({
1004
+ topic_id: z17.string().optional(),
1005
+ topic_name: z17.string(),
1006
+ revision: z17.number().optional(),
1007
+ active: z17.boolean().optional(),
1008
+ description: z17.string().optional(),
1009
+ examples: z17.array(z17.string()).optional(),
1010
+ created_by: z17.string().optional(),
1011
+ updated_by: z17.string().optional(),
1012
+ last_modified_ts: z17.string().optional(),
1013
+ created_ts: z17.string().optional()
1014
+ }).passthrough();
1015
+ var CustomTopicListResponseSchema = z17.object({
1016
+ custom_topics: z17.array(CustomTopicSchema),
1017
+ next_offset: z17.number().optional()
1018
+ }).passthrough();
1019
+ var DeleteTopicResponseSchema = z17.object({
1020
+ message: z17.string()
1021
+ }).passthrough();
1022
+ var DeleteTopicConflictSchema = z17.object({
1023
+ message: z17.string(),
1024
+ payload: z17.array(
1025
+ z17.object({
1026
+ profile_id: z17.string(),
1027
+ profile_name: z17.string(),
1028
+ revision: z17.number()
909
1029
  }).passthrough()
910
1030
  )
911
1031
  }).passthrough();
912
1032
 
1033
+ // src/models/mgmt-api-key.ts
1034
+ import { z as z18 } from "zod";
1035
+ var ApiKeySchema = z18.object({
1036
+ api_key_id: z18.string(),
1037
+ api_key_last8: z18.string(),
1038
+ api_key_name: z18.string().optional(),
1039
+ auth_code: z18.string(),
1040
+ csp_id: z18.string().optional(),
1041
+ tsg_id: z18.string().optional(),
1042
+ expiration: z18.string(),
1043
+ revoked: z18.boolean(),
1044
+ revoke_reason: z18.string().optional(),
1045
+ cust_app: z18.string().optional(),
1046
+ cust_env: z18.string().optional(),
1047
+ cust_ai_agent_framework: z18.string().optional(),
1048
+ cust_cloud_provider: z18.string().optional(),
1049
+ created_by: z18.string().optional(),
1050
+ updated_by: z18.string().optional(),
1051
+ last_modified_ts: z18.string().optional(),
1052
+ rotation_time_interval: z18.number().optional(),
1053
+ rotation_time_unit: z18.string().optional(),
1054
+ dp_name: z18.string().optional(),
1055
+ status: z18.string().optional(),
1056
+ api_key: z18.string().optional(),
1057
+ lic_expiration: z18.string().optional(),
1058
+ avg_text_records: z18.number().optional(),
1059
+ creation_ts: z18.string().optional(),
1060
+ customer_appId: z18.string().optional()
1061
+ }).passthrough();
1062
+ var ApiKeyCreateRequestSchema = z18.object({
1063
+ dp_name: z18.string().optional(),
1064
+ auth_code: z18.string(),
1065
+ cust_app: z18.string(),
1066
+ cust_env: z18.string().optional(),
1067
+ cust_cloud_provider: z18.string().optional(),
1068
+ cust_ai_agent_framework: z18.string().optional(),
1069
+ revoked: z18.boolean(),
1070
+ created_by: z18.string(),
1071
+ api_key_name: z18.string(),
1072
+ rotation_time_interval: z18.number(),
1073
+ rotation_time_unit: z18.string()
1074
+ });
1075
+ var ApiKeyRegenerateRequestSchema = z18.object({
1076
+ rotation_time_interval: z18.number(),
1077
+ rotation_time_unit: z18.string(),
1078
+ updated_by: z18.string().optional()
1079
+ });
1080
+ var ApiKeyListResponseSchema = z18.object({
1081
+ api_keys: z18.array(ApiKeySchema).optional(),
1082
+ next_offset: z18.number().optional()
1083
+ }).passthrough();
1084
+ var ApiKeyDeleteResponseSchema = z18.object({
1085
+ message: z18.string().optional()
1086
+ }).passthrough();
1087
+
1088
+ // src/models/mgmt-customer-app.ts
1089
+ import { z as z19 } from "zod";
1090
+ var ApiKeyDPInfoSchema = z19.object({
1091
+ api_key_name: z19.string(),
1092
+ dp_name: z19.string(),
1093
+ auth_code: z19.string()
1094
+ }).passthrough();
1095
+ var CustomerAppSchema = z19.object({
1096
+ customer_appId: z19.string().optional(),
1097
+ tsg_id: z19.string(),
1098
+ app_name: z19.string(),
1099
+ model_name: z19.string().optional(),
1100
+ cloud_provider: z19.string(),
1101
+ environment: z19.string(),
1102
+ status: z19.string().optional(),
1103
+ created_by: z19.string().optional(),
1104
+ updated_by: z19.string().optional(),
1105
+ ai_agent_framework: z19.string().optional()
1106
+ }).passthrough();
1107
+ var CustomerAppWithKeysSchema = z19.object({
1108
+ customer_appId: z19.string(),
1109
+ tsg_id: z19.string(),
1110
+ app_name: z19.string(),
1111
+ model_name: z19.string().optional(),
1112
+ cloud_provider: z19.string(),
1113
+ environment: z19.string(),
1114
+ ai_agent_framework: z19.string().optional(),
1115
+ api_keys_dp_info: z19.array(ApiKeyDPInfoSchema).optional()
1116
+ }).passthrough();
1117
+ var CustomerAppListResponseSchema = z19.object({
1118
+ customer_apps: z19.array(CustomerAppWithKeysSchema).optional(),
1119
+ next_offset: z19.number().optional()
1120
+ }).passthrough();
1121
+
1122
+ // src/models/mgmt-deployment-profile.ts
1123
+ import { z as z20 } from "zod";
1124
+ var DeploymentProfileEntrySchema = z20.object({
1125
+ dp_name: z20.string(),
1126
+ auth_code: z20.string(),
1127
+ tsg_id: z20.string().optional(),
1128
+ status: z20.string().optional(),
1129
+ expiration_date: z20.string().optional(),
1130
+ ave_text_records: z20.number().optional()
1131
+ }).passthrough();
1132
+ var DeploymentProfilesResponseSchema = z20.object({
1133
+ deployment_profiles: z20.array(DeploymentProfileEntrySchema),
1134
+ status: z20.string()
1135
+ }).passthrough();
1136
+
1137
+ // src/models/mgmt-dlp-profile.ts
1138
+ import { z as z21 } from "zod";
1139
+ var DlpDataProfileSchema2 = z21.object({
1140
+ name: z21.string(),
1141
+ uuid: z21.string(),
1142
+ id: z21.string().optional(),
1143
+ version: z21.string().optional(),
1144
+ rule1: z21.object({ action: z21.string().optional() }).passthrough().optional(),
1145
+ rule2: z21.object({ action: z21.string().optional() }).passthrough().optional(),
1146
+ "log-severity": z21.string().optional(),
1147
+ "non-file-based": z21.string().optional(),
1148
+ "file-based": z21.string().optional()
1149
+ }).passthrough();
1150
+ var DlpProfileListResponseSchema = z21.object({
1151
+ dlp_profiles: z21.array(DlpDataProfileSchema2).optional()
1152
+ }).passthrough();
1153
+
1154
+ // src/models/mgmt-scan-log.ts
1155
+ import { z as z22 } from "zod";
1156
+ var ScanResultEntrySchema = z22.object({
1157
+ csp_id: z22.string(),
1158
+ tsg_id: z22.string(),
1159
+ scan_id: z22.string(),
1160
+ scan_sub_req_id: z22.number(),
1161
+ api_key_name: z22.string(),
1162
+ app_name: z22.string(),
1163
+ tokens: z22.number(),
1164
+ text_records: z22.number(),
1165
+ transaction_id: z22.string().optional(),
1166
+ profile_id: z22.string().optional(),
1167
+ profile_name: z22.string().optional(),
1168
+ model_name: z22.string().optional(),
1169
+ user: z22.string().optional(),
1170
+ environment: z22.string().optional(),
1171
+ cloud_provider: z22.string().optional(),
1172
+ agent_framework: z22.string().optional(),
1173
+ report_id: z22.string().optional(),
1174
+ received_ts: z22.string().optional(),
1175
+ completed_ts: z22.string().optional(),
1176
+ status: z22.string().optional(),
1177
+ verdict: z22.string().optional(),
1178
+ action: z22.string().optional(),
1179
+ is_prompt: z22.boolean().optional(),
1180
+ is_response: z22.boolean().optional(),
1181
+ pi_final_verdict: z22.string().optional(),
1182
+ uf_final_verdict: z22.string().optional(),
1183
+ dlp_final_verdict: z22.string().optional(),
1184
+ dbs_final_verdict: z22.string().optional(),
1185
+ tc_final_verdict: z22.string().optional(),
1186
+ mc_final_verdict: z22.string().optional(),
1187
+ agent_final_verdict: z22.string().optional(),
1188
+ cg_final_verdict: z22.string().optional(),
1189
+ tg_final_verdict: z22.string().optional(),
1190
+ prompt_pi_verdict: z22.string().optional(),
1191
+ prompt_uf_verdict: z22.string().optional(),
1192
+ prompt_dlp_verdict: z22.string().optional(),
1193
+ prompt_tc_verdict: z22.string().optional(),
1194
+ prompt_mc_verdict: z22.string().optional(),
1195
+ prompt_agent_verdict: z22.string().optional(),
1196
+ prompt_tg_verdict: z22.string().optional(),
1197
+ prompt_verdict: z22.string().optional(),
1198
+ prompt_pi_action: z22.string().optional(),
1199
+ prompt_uf_action: z22.string().optional(),
1200
+ prompt_dlp_action: z22.string().optional(),
1201
+ prompt_tc_action: z22.string().optional(),
1202
+ prompt_mc_action: z22.string().optional(),
1203
+ prompt_agent_action: z22.string().optional(),
1204
+ prompt_tg_action: z22.string().optional(),
1205
+ response_uf_verdict: z22.string().optional(),
1206
+ response_dlp_verdict: z22.string().optional(),
1207
+ response_dbs_verdict: z22.string().optional(),
1208
+ response_tc_verdict: z22.string().optional(),
1209
+ response_mc_verdict: z22.string().optional(),
1210
+ response_agent_verdict: z22.string().optional(),
1211
+ response_cg_verdict: z22.string().optional(),
1212
+ response_tg_verdict: z22.string().optional(),
1213
+ response_uf_action: z22.string().optional(),
1214
+ response_dlp_action: z22.string().optional(),
1215
+ response_dbs_action: z22.string().optional(),
1216
+ response_tc_action: z22.string().optional(),
1217
+ response_mc_action: z22.string().optional(),
1218
+ response_agent_action: z22.string().optional(),
1219
+ response_cg_action: z22.string().optional(),
1220
+ response_tg_action: z22.string().optional(),
1221
+ response_verdict: z22.string().optional(),
1222
+ detection_service_flags: z22.number().optional(),
1223
+ content_masked: z22.boolean().optional(),
1224
+ user_ip: z22.string().optional()
1225
+ }).passthrough();
1226
+ var ScanResultForDashboardSchema = z22.object({
1227
+ text_records_count: z22.number().optional(),
1228
+ api_calls_count: z22.number().optional(),
1229
+ threats_count: z22.number().optional(),
1230
+ all_transactions_count: z22.number().optional(),
1231
+ benign_transaction_count: z22.number().optional(),
1232
+ scan_result_entries: z22.array(ScanResultEntrySchema).optional()
1233
+ }).passthrough();
1234
+ var PaginatedScanResultsSchema = z22.object({
1235
+ scan_result_for_dashboard: ScanResultForDashboardSchema.optional(),
1236
+ total_pages: z22.number().optional(),
1237
+ page_number: z22.number().optional(),
1238
+ page_size: z22.number().optional(),
1239
+ page_token: z22.string().optional(),
1240
+ revision: z22.number().optional()
1241
+ }).passthrough();
1242
+
1243
+ // src/models/mgmt-oauth.ts
1244
+ import { z as z23 } from "zod";
1245
+ var ClientIdAndCustomerAppSchema = z23.object({
1246
+ client_id: z23.string(),
1247
+ customer_app: z23.string()
1248
+ });
1249
+ var Oauth2TokenSchema = z23.object({
1250
+ token_type: z23.string().optional(),
1251
+ issued_at: z23.string().optional(),
1252
+ client_id: z23.string().optional(),
1253
+ access_token: z23.string(),
1254
+ expires_in: z23.string().optional(),
1255
+ status: z23.string().optional()
1256
+ }).passthrough();
1257
+
913
1258
  // src/models/model-security-enums.ts
914
1259
  var ErrorCodes = {
915
1260
  UNKNOWN_ERROR: "UNKNOWN_ERROR",
@@ -1040,240 +1385,240 @@ var RuleFieldValueKey = {
1040
1385
  };
1041
1386
 
1042
1387
  // src/models/model-security.ts
1043
- import { z as z17 } from "zod";
1044
- var ModelSecurityPaginationSchema = z17.object({
1045
- total_items: z17.number().int().nullable().optional()
1388
+ import { z as z24 } from "zod";
1389
+ var ModelSecurityPaginationSchema = z24.object({
1390
+ total_items: z24.number().int().nullable().optional()
1046
1391
  }).passthrough();
1047
- var LabelSchema = z17.object({
1048
- key: z17.string(),
1049
- value: z17.string()
1392
+ var LabelSchema = z24.object({
1393
+ key: z24.string(),
1394
+ value: z24.string()
1050
1395
  });
1051
- var LabelsCreateRequestSchema = z17.object({
1052
- labels: z17.array(LabelSchema)
1396
+ var LabelsCreateRequestSchema = z24.object({
1397
+ labels: z24.array(LabelSchema)
1053
1398
  });
1054
- var LabelsResponseSchema = z17.object({}).passthrough();
1055
- var LabelKeyListSchema = z17.object({
1399
+ var LabelsResponseSchema = z24.object({}).passthrough();
1400
+ var LabelKeyListSchema = z24.object({
1056
1401
  pagination: ModelSecurityPaginationSchema,
1057
- keys: z17.array(z17.string())
1402
+ keys: z24.array(z24.string())
1058
1403
  }).passthrough();
1059
- var LabelValueListSchema = z17.object({
1404
+ var LabelValueListSchema = z24.object({
1060
1405
  pagination: ModelSecurityPaginationSchema,
1061
- values: z17.array(z17.string())
1062
- }).passthrough();
1063
- var EvalSummarySchema = z17.object({
1064
- rules_failed: z17.number().int().optional().default(0),
1065
- rules_passed: z17.number().int().optional().default(0),
1066
- total_rules: z17.number().int().optional().default(0)
1067
- }).passthrough();
1068
- var ModelScanIssueSchema = z17.object({
1069
- description: z17.string(),
1070
- source: z17.string(),
1071
- threat: z17.string().nullable().optional(),
1072
- module: z17.string().nullable().optional(),
1073
- operator: z17.string().nullable().optional()
1074
- }).passthrough();
1075
- var FileScanDataSchema = z17.object({
1076
- file_path: z17.string(),
1077
- modelscan_status: z17.string(),
1078
- blob_id: z17.string(),
1079
- error_message: z17.string().nullable().optional(),
1080
- formats: z17.array(z17.string()).nullable().optional(),
1081
- issues_detected: z17.array(ModelScanIssueSchema).nullable().optional()
1082
- }).passthrough();
1083
- var ScanDetailsSchema = z17.object({
1084
- scanner_version: z17.string(),
1085
- time_started: z17.string(),
1086
- files: z17.array(FileScanDataSchema),
1087
- total_files_scanned: z17.number().int(),
1088
- total_files_skipped: z17.number().int(),
1089
- model_formats: z17.array(z17.string()),
1090
- model_size_bytes: z17.number().int(),
1091
- scan_duration_ms: z17.number().int(),
1092
- error_code: z17.string().nullable().optional(),
1093
- error_message: z17.string().nullable().optional()
1406
+ values: z24.array(z24.string())
1407
+ }).passthrough();
1408
+ var EvalSummarySchema = z24.object({
1409
+ rules_failed: z24.number().int().optional().default(0),
1410
+ rules_passed: z24.number().int().optional().default(0),
1411
+ total_rules: z24.number().int().optional().default(0)
1412
+ }).passthrough();
1413
+ var ModelScanIssueSchema = z24.object({
1414
+ description: z24.string(),
1415
+ source: z24.string(),
1416
+ threat: z24.string().nullable().optional(),
1417
+ module: z24.string().nullable().optional(),
1418
+ operator: z24.string().nullable().optional()
1419
+ }).passthrough();
1420
+ var FileScanDataSchema = z24.object({
1421
+ file_path: z24.string(),
1422
+ modelscan_status: z24.string(),
1423
+ blob_id: z24.string(),
1424
+ error_message: z24.string().nullable().optional(),
1425
+ formats: z24.array(z24.string()).nullable().optional(),
1426
+ issues_detected: z24.array(ModelScanIssueSchema).nullable().optional()
1427
+ }).passthrough();
1428
+ var ScanDetailsSchema = z24.object({
1429
+ scanner_version: z24.string(),
1430
+ time_started: z24.string(),
1431
+ files: z24.array(FileScanDataSchema),
1432
+ total_files_scanned: z24.number().int(),
1433
+ total_files_skipped: z24.number().int(),
1434
+ model_formats: z24.array(z24.string()),
1435
+ model_size_bytes: z24.number().int(),
1436
+ scan_duration_ms: z24.number().int(),
1437
+ error_code: z24.string().nullable().optional(),
1438
+ error_message: z24.string().nullable().optional()
1094
1439
  });
1095
- var ScanCreateRequestSchema = z17.object({
1096
- model_uri: z17.string(),
1097
- security_group_uuid: z17.string(),
1098
- scan_origin: z17.string(),
1099
- allow_patterns: z17.array(z17.string()).nullable().optional(),
1100
- ignore_patterns: z17.array(z17.string()).nullable().optional(),
1101
- labels: z17.array(LabelSchema).nullable().optional(),
1102
- model_author: z17.string().nullable().optional(),
1103
- model_name: z17.string().nullable().optional(),
1104
- model_version: z17.string().nullable().optional(),
1440
+ var ScanCreateRequestSchema = z24.object({
1441
+ model_uri: z24.string(),
1442
+ security_group_uuid: z24.string(),
1443
+ scan_origin: z24.string(),
1444
+ allow_patterns: z24.array(z24.string()).nullable().optional(),
1445
+ ignore_patterns: z24.array(z24.string()).nullable().optional(),
1446
+ labels: z24.array(LabelSchema).nullable().optional(),
1447
+ model_author: z24.string().nullable().optional(),
1448
+ model_name: z24.string().nullable().optional(),
1449
+ model_version: z24.string().nullable().optional(),
1105
1450
  scan_details: ScanDetailsSchema.nullable().optional()
1106
1451
  });
1107
- var ScanBaseResponseSchema = z17.object({
1108
- uuid: z17.string(),
1109
- tsg_id: z17.string(),
1110
- created_at: z17.string(),
1111
- updated_at: z17.string(),
1112
- model_uri: z17.string(),
1113
- owner: z17.string(),
1114
- scan_origin: z17.string(),
1115
- security_group_uuid: z17.string(),
1116
- security_group_name: z17.string(),
1117
- model_version_uuid: z17.string(),
1118
- eval_outcome: z17.string(),
1119
- source_type: z17.string(),
1120
- created_by: z17.string().nullable().optional(),
1121
- enabled_rule_count_snapshot: z17.number().int().nullable().optional(),
1122
- error_code: z17.string().nullable().optional(),
1123
- error_message: z17.string().nullable().optional(),
1452
+ var ScanBaseResponseSchema = z24.object({
1453
+ uuid: z24.string(),
1454
+ tsg_id: z24.string(),
1455
+ created_at: z24.string(),
1456
+ updated_at: z24.string(),
1457
+ model_uri: z24.string(),
1458
+ owner: z24.string(),
1459
+ scan_origin: z24.string(),
1460
+ security_group_uuid: z24.string(),
1461
+ security_group_name: z24.string(),
1462
+ model_version_uuid: z24.string(),
1463
+ eval_outcome: z24.string(),
1464
+ source_type: z24.string(),
1465
+ created_by: z24.string().nullable().optional(),
1466
+ enabled_rule_count_snapshot: z24.number().int().nullable().optional(),
1467
+ error_code: z24.string().nullable().optional(),
1468
+ error_message: z24.string().nullable().optional(),
1124
1469
  eval_summary: EvalSummarySchema.nullable().optional(),
1125
- labels: z17.array(LabelSchema).optional(),
1126
- model_formats: z17.array(z17.string()).nullable().optional(),
1127
- scanner_version: z17.string().nullable().optional(),
1128
- time_started: z17.string().nullable().optional(),
1129
- total_files_scanned: z17.number().int().nullable().optional(),
1130
- total_files_skipped: z17.number().int().nullable().optional()
1131
- }).passthrough();
1132
- var ScanListSchema = z17.object({
1470
+ labels: z24.array(LabelSchema).optional(),
1471
+ model_formats: z24.array(z24.string()).nullable().optional(),
1472
+ scanner_version: z24.string().nullable().optional(),
1473
+ time_started: z24.string().nullable().optional(),
1474
+ total_files_scanned: z24.number().int().nullable().optional(),
1475
+ total_files_skipped: z24.number().int().nullable().optional()
1476
+ }).passthrough();
1477
+ var ScanListSchema = z24.object({
1133
1478
  pagination: ModelSecurityPaginationSchema,
1134
- scans: z17.array(ScanBaseResponseSchema)
1135
- }).passthrough();
1136
- var FileResponseSchema = z17.object({
1137
- uuid: z17.string(),
1138
- tsg_id: z17.string(),
1139
- created_at: z17.string(),
1140
- updated_at: z17.string(),
1141
- path: z17.string(),
1142
- parent_path: z17.string(),
1143
- type: z17.string(),
1144
- result: z17.string(),
1145
- model_version_uuid: z17.string(),
1146
- blob_id: z17.string().nullable().optional(),
1147
- formats: z17.array(z17.string()).nullable().optional(),
1148
- scan_uuid: z17.string().nullable().optional()
1149
- }).passthrough();
1150
- var FileListSchema = z17.object({
1479
+ scans: z24.array(ScanBaseResponseSchema)
1480
+ }).passthrough();
1481
+ var FileResponseSchema = z24.object({
1482
+ uuid: z24.string(),
1483
+ tsg_id: z24.string(),
1484
+ created_at: z24.string(),
1485
+ updated_at: z24.string(),
1486
+ path: z24.string(),
1487
+ parent_path: z24.string(),
1488
+ type: z24.string(),
1489
+ result: z24.string(),
1490
+ model_version_uuid: z24.string(),
1491
+ blob_id: z24.string().nullable().optional(),
1492
+ formats: z24.array(z24.string()).nullable().optional(),
1493
+ scan_uuid: z24.string().nullable().optional()
1494
+ }).passthrough();
1495
+ var FileListSchema = z24.object({
1151
1496
  pagination: ModelSecurityPaginationSchema,
1152
- files: z17.array(FileResponseSchema)
1153
- }).passthrough();
1154
- var RuleEvaluationResponseSchema = z17.object({
1155
- uuid: z17.string(),
1156
- tsg_id: z17.string(),
1157
- created_at: z17.string(),
1158
- updated_at: z17.string(),
1159
- result: z17.string(),
1160
- violation_count: z17.number().int(),
1161
- rule_instance_uuid: z17.string(),
1162
- scan_uuid: z17.string(),
1163
- rule_name: z17.string(),
1164
- rule_description: z17.string(),
1165
- rule_instance_state: z17.string()
1166
- }).passthrough();
1167
- var RuleEvaluationListSchema = z17.object({
1497
+ files: z24.array(FileResponseSchema)
1498
+ }).passthrough();
1499
+ var RuleEvaluationResponseSchema = z24.object({
1500
+ uuid: z24.string(),
1501
+ tsg_id: z24.string(),
1502
+ created_at: z24.string(),
1503
+ updated_at: z24.string(),
1504
+ result: z24.string(),
1505
+ violation_count: z24.number().int(),
1506
+ rule_instance_uuid: z24.string(),
1507
+ scan_uuid: z24.string(),
1508
+ rule_name: z24.string(),
1509
+ rule_description: z24.string(),
1510
+ rule_instance_state: z24.string()
1511
+ }).passthrough();
1512
+ var RuleEvaluationListSchema = z24.object({
1168
1513
  pagination: ModelSecurityPaginationSchema,
1169
- evaluations: z17.array(RuleEvaluationResponseSchema)
1170
- }).passthrough();
1171
- var ViolationResponseSchema = z17.object({
1172
- uuid: z17.string(),
1173
- tsg_id: z17.string(),
1174
- created_at: z17.string(),
1175
- updated_at: z17.string(),
1176
- description: z17.string(),
1177
- rule_instance_uuid: z17.string(),
1178
- rule_name: z17.string(),
1179
- rule_description: z17.string(),
1180
- rule_instance_state: z17.string(),
1181
- file: z17.string().nullable().optional(),
1182
- hash: z17.string().nullable().optional(),
1183
- module: z17.string().nullable().optional(),
1184
- operator: z17.string().nullable().optional(),
1185
- threat: z17.string().nullable().optional(),
1186
- threat_description: z17.string().nullable().optional()
1187
- }).passthrough();
1188
- var ViolationListSchema = z17.object({
1514
+ evaluations: z24.array(RuleEvaluationResponseSchema)
1515
+ }).passthrough();
1516
+ var ViolationResponseSchema = z24.object({
1517
+ uuid: z24.string(),
1518
+ tsg_id: z24.string(),
1519
+ created_at: z24.string(),
1520
+ updated_at: z24.string(),
1521
+ description: z24.string(),
1522
+ rule_instance_uuid: z24.string(),
1523
+ rule_name: z24.string(),
1524
+ rule_description: z24.string(),
1525
+ rule_instance_state: z24.string(),
1526
+ file: z24.string().nullable().optional(),
1527
+ hash: z24.string().nullable().optional(),
1528
+ module: z24.string().nullable().optional(),
1529
+ operator: z24.string().nullable().optional(),
1530
+ threat: z24.string().nullable().optional(),
1531
+ threat_description: z24.string().nullable().optional()
1532
+ }).passthrough();
1533
+ var ViolationListSchema = z24.object({
1189
1534
  pagination: ModelSecurityPaginationSchema,
1190
- violations: z17.array(ViolationResponseSchema)
1191
- }).passthrough();
1192
- var RuleEditableFieldDropdownSchema = z17.object({
1193
- value: z17.string(),
1194
- label: z17.string()
1195
- }).passthrough();
1196
- var RuleEditableFieldSchema = z17.object({
1197
- attribute_name: z17.string(),
1198
- type: z17.string(),
1199
- display_name: z17.string(),
1200
- display_type: z17.string(),
1201
- description: z17.string().nullable().optional(),
1202
- dropdown_values: z17.array(RuleEditableFieldDropdownSchema).nullable().optional()
1203
- }).passthrough();
1204
- var RuleRemediationSchema = z17.object({
1205
- description: z17.string(),
1206
- steps: z17.array(z17.string()),
1207
- url: z17.string()
1208
- }).passthrough();
1209
- var RuleConfigurationSchema = z17.object({
1210
- field_values: z17.record(z17.unknown()).optional(),
1211
- state: z17.string().nullable().optional()
1212
- }).passthrough();
1213
- var ModelSecurityRuleResponseSchema = z17.object({
1214
- uuid: z17.string(),
1215
- name: z17.string(),
1216
- description: z17.string(),
1217
- rule_type: z17.string(),
1218
- compatible_sources: z17.array(z17.string()),
1219
- default_state: z17.string(),
1535
+ violations: z24.array(ViolationResponseSchema)
1536
+ }).passthrough();
1537
+ var RuleEditableFieldDropdownSchema = z24.object({
1538
+ value: z24.string(),
1539
+ label: z24.string()
1540
+ }).passthrough();
1541
+ var RuleEditableFieldSchema = z24.object({
1542
+ attribute_name: z24.string(),
1543
+ type: z24.string(),
1544
+ display_name: z24.string(),
1545
+ display_type: z24.string(),
1546
+ description: z24.string().nullable().optional(),
1547
+ dropdown_values: z24.array(RuleEditableFieldDropdownSchema).nullable().optional()
1548
+ }).passthrough();
1549
+ var RuleRemediationSchema = z24.object({
1550
+ description: z24.string(),
1551
+ steps: z24.array(z24.string()),
1552
+ url: z24.string()
1553
+ }).passthrough();
1554
+ var RuleConfigurationSchema = z24.object({
1555
+ field_values: z24.record(z24.unknown()).optional(),
1556
+ state: z24.string().nullable().optional()
1557
+ }).passthrough();
1558
+ var ModelSecurityRuleResponseSchema = z24.object({
1559
+ uuid: z24.string(),
1560
+ name: z24.string(),
1561
+ description: z24.string(),
1562
+ rule_type: z24.string(),
1563
+ compatible_sources: z24.array(z24.string()),
1564
+ default_state: z24.string(),
1220
1565
  remediation: RuleRemediationSchema,
1221
- editable_fields: z17.array(RuleEditableFieldSchema),
1222
- constant_values: z17.record(z17.unknown()),
1223
- default_values: z17.record(z17.unknown())
1566
+ editable_fields: z24.array(RuleEditableFieldSchema),
1567
+ constant_values: z24.record(z24.unknown()),
1568
+ default_values: z24.record(z24.unknown())
1224
1569
  }).passthrough();
1225
- var ListModelSecurityRulesResponseSchema = z17.object({
1570
+ var ListModelSecurityRulesResponseSchema = z24.object({
1226
1571
  pagination: ModelSecurityPaginationSchema,
1227
- rules: z17.array(ModelSecurityRuleResponseSchema)
1228
- }).passthrough();
1229
- var ModelSecurityRuleInstanceResponseSchema = z17.object({
1230
- uuid: z17.string(),
1231
- tsg_id: z17.string(),
1232
- created_at: z17.string(),
1233
- updated_at: z17.string(),
1234
- security_group_uuid: z17.string(),
1235
- security_rule_uuid: z17.string(),
1236
- state: z17.string(),
1572
+ rules: z24.array(ModelSecurityRuleResponseSchema)
1573
+ }).passthrough();
1574
+ var ModelSecurityRuleInstanceResponseSchema = z24.object({
1575
+ uuid: z24.string(),
1576
+ tsg_id: z24.string(),
1577
+ created_at: z24.string(),
1578
+ updated_at: z24.string(),
1579
+ security_group_uuid: z24.string(),
1580
+ security_rule_uuid: z24.string(),
1581
+ state: z24.string(),
1237
1582
  rule: ModelSecurityRuleResponseSchema,
1238
- field_values: z17.record(z17.unknown()).optional()
1583
+ field_values: z24.record(z24.unknown()).optional()
1239
1584
  }).passthrough();
1240
- var ModelSecurityRuleInstanceUpdateRequestSchema = z17.object({
1241
- security_group_uuid: z17.string(),
1242
- state: z17.string().nullable().optional(),
1243
- field_values: z17.record(z17.unknown()).nullable().optional()
1585
+ var ModelSecurityRuleInstanceUpdateRequestSchema = z24.object({
1586
+ security_group_uuid: z24.string(),
1587
+ state: z24.string().nullable().optional(),
1588
+ field_values: z24.record(z24.unknown()).nullable().optional()
1244
1589
  });
1245
- var ListModelSecurityRuleInstancesResponseSchema = z17.object({
1590
+ var ListModelSecurityRuleInstancesResponseSchema = z24.object({
1246
1591
  pagination: ModelSecurityPaginationSchema,
1247
- rule_instances: z17.array(ModelSecurityRuleInstanceResponseSchema)
1592
+ rule_instances: z24.array(ModelSecurityRuleInstanceResponseSchema)
1248
1593
  }).passthrough();
1249
- var ModelSecurityGroupCreateRequestSchema = z17.object({
1250
- name: z17.string(),
1251
- source_type: z17.string(),
1252
- description: z17.string().optional().default(""),
1253
- rule_configurations: z17.record(RuleConfigurationSchema).optional()
1594
+ var ModelSecurityGroupCreateRequestSchema = z24.object({
1595
+ name: z24.string(),
1596
+ source_type: z24.string(),
1597
+ description: z24.string().optional().default(""),
1598
+ rule_configurations: z24.record(RuleConfigurationSchema).optional()
1254
1599
  });
1255
- var ModelSecurityGroupResponseSchema = z17.object({
1256
- uuid: z17.string(),
1257
- tsg_id: z17.string(),
1258
- created_at: z17.string(),
1259
- updated_at: z17.string(),
1260
- name: z17.string(),
1261
- description: z17.string(),
1262
- source_type: z17.string(),
1263
- state: z17.string(),
1264
- is_tombstone: z17.boolean()
1265
- }).passthrough();
1266
- var ModelSecurityGroupUpdateRequestSchema = z17.object({
1267
- name: z17.string().nullable().optional(),
1268
- description: z17.string().nullable().optional()
1600
+ var ModelSecurityGroupResponseSchema = z24.object({
1601
+ uuid: z24.string(),
1602
+ tsg_id: z24.string(),
1603
+ created_at: z24.string(),
1604
+ updated_at: z24.string(),
1605
+ name: z24.string(),
1606
+ description: z24.string(),
1607
+ source_type: z24.string(),
1608
+ state: z24.string(),
1609
+ is_tombstone: z24.boolean()
1610
+ }).passthrough();
1611
+ var ModelSecurityGroupUpdateRequestSchema = z24.object({
1612
+ name: z24.string().nullable().optional(),
1613
+ description: z24.string().nullable().optional()
1269
1614
  });
1270
- var ListModelSecurityGroupsResponseSchema = z17.object({
1615
+ var ListModelSecurityGroupsResponseSchema = z24.object({
1271
1616
  pagination: ModelSecurityPaginationSchema,
1272
- security_groups: z17.array(ModelSecurityGroupResponseSchema)
1617
+ security_groups: z24.array(ModelSecurityGroupResponseSchema)
1273
1618
  }).passthrough();
1274
- var PyPIAuthResponseSchema = z17.object({
1275
- url: z17.string(),
1276
- expires_at: z17.string()
1619
+ var PyPIAuthResponseSchema = z24.object({
1620
+ url: z24.string(),
1621
+ expires_at: z24.string()
1277
1622
  }).passthrough();
1278
1623
 
1279
1624
  // src/models/red-team-enums.ts
@@ -1471,891 +1816,891 @@ var TargetType = {
1471
1816
  };
1472
1817
 
1473
1818
  // src/models/red-team.ts
1474
- import { z as z18 } from "zod";
1475
- var RedTeamPaginationSchema = z18.object({ total_items: z18.number().int().nullable().optional() }).passthrough();
1476
- var CountByNameSchema = z18.object({ name: z18.string(), count: z18.number().int() });
1477
- var ValidationErrorSchema = z18.object({
1478
- loc: z18.array(z18.union([z18.string(), z18.number()])),
1479
- msg: z18.string(),
1480
- type: z18.string()
1819
+ import { z as z25 } from "zod";
1820
+ var RedTeamPaginationSchema = z25.object({ total_items: z25.number().int().nullable().optional() }).passthrough();
1821
+ var CountByNameSchema = z25.object({ name: z25.string(), count: z25.number().int() });
1822
+ var ValidationErrorSchema = z25.object({
1823
+ loc: z25.array(z25.union([z25.string(), z25.number()])),
1824
+ msg: z25.string(),
1825
+ type: z25.string()
1481
1826
  });
1482
- var HTTPValidationErrorSchema = z18.object({ detail: z18.array(ValidationErrorSchema).optional() }).passthrough();
1483
- var TargetBackgroundSchema = z18.object({
1484
- industry: z18.string().nullable().optional(),
1485
- use_case: z18.string().nullable().optional(),
1486
- competitors: z18.array(z18.string()).nullable().optional()
1487
- }).passthrough();
1488
- var TargetAdditionalContextSchema = z18.object({
1489
- base_model: z18.string().nullable().optional(),
1490
- core_architecture: z18.string().nullable().optional(),
1491
- system_prompt: z18.string().nullable().optional(),
1492
- languages_supported: z18.array(z18.string()).nullable().optional(),
1493
- banned_keywords: z18.array(z18.string()).nullable().optional(),
1494
- tools_accessible: z18.array(z18.string()).nullable().optional()
1495
- }).passthrough();
1496
- var TargetMetadataSchema = z18.object({
1497
- multi_turn: z18.boolean().optional(),
1498
- multi_turn_error_message: z18.string().nullable().optional(),
1499
- rate_limit: z18.number().int().nullable().optional(),
1500
- rate_limit_enabled: z18.boolean().optional(),
1501
- rate_limit_error_code: z18.number().int().nullable().optional(),
1502
- rate_limit_error_json: z18.record(z18.unknown()).nullable().optional(),
1503
- rate_limit_error_message: z18.string().nullable().optional(),
1504
- content_filter_enabled: z18.boolean().optional(),
1505
- content_filter_error_code: z18.number().int().nullable().optional(),
1506
- content_filter_error_json: z18.record(z18.unknown()).nullable().optional(),
1507
- content_filter_error_message: z18.string().nullable().optional(),
1508
- probe_message: z18.string().optional(),
1509
- request_timeout: z18.number().optional()
1510
- }).passthrough();
1511
- var MultiTurnStatefulConfigSchema = z18.object({
1512
- type: z18.string().default("stateful"),
1513
- response_id_field: z18.string(),
1514
- request_id_field: z18.string()
1515
- }).passthrough();
1516
- var MultiTurnStatelessConfigSchema = z18.object({
1517
- type: z18.string().default("stateless"),
1518
- assistant_role: z18.string().nullable().optional()
1519
- }).passthrough();
1520
- var OpenAIConnectionParamsSchema = z18.object({
1521
- api_key: z18.string(),
1522
- model_name: z18.string()
1523
- }).passthrough();
1524
- var HuggingfaceConnectionParamsSchema = z18.object({
1525
- api_key: z18.string(),
1526
- model_name: z18.string()
1527
- }).passthrough();
1528
- var DatabricksConnectionParamsSchema = z18.object({
1529
- auth_type: z18.string(),
1530
- workspace_url: z18.string(),
1531
- model_name: z18.string(),
1532
- access_token: z18.string().nullable().optional(),
1533
- client_id: z18.string().nullable().optional(),
1534
- secret: z18.string().nullable().optional()
1535
- }).passthrough();
1536
- var BedrockAccessConnectionParamsSchema = z18.object({
1537
- access_id: z18.string(),
1538
- access_secret: z18.string(),
1539
- region: z18.string(),
1540
- model_id: z18.string(),
1541
- session_token: z18.string().nullable().optional()
1542
- }).passthrough();
1543
- var RestConnectionParamsSchema = z18.object({
1544
- api_endpoint: z18.string().nullable().optional(),
1545
- request_headers: z18.record(z18.unknown()).nullable().optional(),
1546
- request_json: z18.record(z18.unknown()).nullable().optional(),
1547
- response_json: z18.record(z18.unknown()).nullable().optional(),
1548
- response_key: z18.string().nullable().optional(),
1549
- target_connection_config: z18.unknown().nullable().optional(),
1550
- curl: z18.string().nullable().optional(),
1551
- multi_turn_config: z18.unknown().nullable().optional()
1827
+ var HTTPValidationErrorSchema = z25.object({ detail: z25.array(ValidationErrorSchema).optional() }).passthrough();
1828
+ var TargetBackgroundSchema = z25.object({
1829
+ industry: z25.string().nullable().optional(),
1830
+ use_case: z25.string().nullable().optional(),
1831
+ competitors: z25.array(z25.string()).nullable().optional()
1832
+ }).passthrough();
1833
+ var TargetAdditionalContextSchema = z25.object({
1834
+ base_model: z25.string().nullable().optional(),
1835
+ core_architecture: z25.string().nullable().optional(),
1836
+ system_prompt: z25.string().nullable().optional(),
1837
+ languages_supported: z25.array(z25.string()).nullable().optional(),
1838
+ banned_keywords: z25.array(z25.string()).nullable().optional(),
1839
+ tools_accessible: z25.array(z25.string()).nullable().optional()
1840
+ }).passthrough();
1841
+ var TargetMetadataSchema = z25.object({
1842
+ multi_turn: z25.boolean().optional(),
1843
+ multi_turn_error_message: z25.string().nullable().optional(),
1844
+ rate_limit: z25.number().int().nullable().optional(),
1845
+ rate_limit_enabled: z25.boolean().optional(),
1846
+ rate_limit_error_code: z25.number().int().nullable().optional(),
1847
+ rate_limit_error_json: z25.record(z25.unknown()).nullable().optional(),
1848
+ rate_limit_error_message: z25.string().nullable().optional(),
1849
+ content_filter_enabled: z25.boolean().optional(),
1850
+ content_filter_error_code: z25.number().int().nullable().optional(),
1851
+ content_filter_error_json: z25.record(z25.unknown()).nullable().optional(),
1852
+ content_filter_error_message: z25.string().nullable().optional(),
1853
+ probe_message: z25.string().optional(),
1854
+ request_timeout: z25.number().optional()
1855
+ }).passthrough();
1856
+ var MultiTurnStatefulConfigSchema = z25.object({
1857
+ type: z25.string().default("stateful"),
1858
+ response_id_field: z25.string(),
1859
+ request_id_field: z25.string()
1860
+ }).passthrough();
1861
+ var MultiTurnStatelessConfigSchema = z25.object({
1862
+ type: z25.string().default("stateless"),
1863
+ assistant_role: z25.string().nullable().optional()
1864
+ }).passthrough();
1865
+ var OpenAIConnectionParamsSchema = z25.object({
1866
+ api_key: z25.string(),
1867
+ model_name: z25.string()
1868
+ }).passthrough();
1869
+ var HuggingfaceConnectionParamsSchema = z25.object({
1870
+ api_key: z25.string(),
1871
+ model_name: z25.string()
1872
+ }).passthrough();
1873
+ var DatabricksConnectionParamsSchema = z25.object({
1874
+ auth_type: z25.string(),
1875
+ workspace_url: z25.string(),
1876
+ model_name: z25.string(),
1877
+ access_token: z25.string().nullable().optional(),
1878
+ client_id: z25.string().nullable().optional(),
1879
+ secret: z25.string().nullable().optional()
1880
+ }).passthrough();
1881
+ var BedrockAccessConnectionParamsSchema = z25.object({
1882
+ access_id: z25.string(),
1883
+ access_secret: z25.string(),
1884
+ region: z25.string(),
1885
+ model_id: z25.string(),
1886
+ session_token: z25.string().nullable().optional()
1887
+ }).passthrough();
1888
+ var RestConnectionParamsSchema = z25.object({
1889
+ api_endpoint: z25.string().nullable().optional(),
1890
+ request_headers: z25.record(z25.unknown()).nullable().optional(),
1891
+ request_json: z25.record(z25.unknown()).nullable().optional(),
1892
+ response_json: z25.record(z25.unknown()).nullable().optional(),
1893
+ response_key: z25.string().nullable().optional(),
1894
+ target_connection_config: z25.unknown().nullable().optional(),
1895
+ curl: z25.string().nullable().optional(),
1896
+ multi_turn_config: z25.unknown().nullable().optional()
1552
1897
  }).passthrough();
1553
1898
  var StreamingConnectionParamsSchema = RestConnectionParamsSchema.extend({
1554
- response_stop_key: z18.string(),
1555
- response_stop_value: z18.string()
1899
+ response_stop_key: z25.string(),
1900
+ response_stop_value: z25.string()
1556
1901
  }).passthrough();
1557
- var ConnectionParamsSchema = z18.union([
1902
+ var ConnectionParamsSchema = z25.union([
1558
1903
  StreamingConnectionParamsSchema,
1559
1904
  RestConnectionParamsSchema
1560
1905
  ]);
1561
- var TargetJobRequestSchema = z18.object({
1562
- uuid: z18.string(),
1563
- version: z18.number().int().nullable().optional()
1906
+ var TargetJobRequestSchema = z25.object({
1907
+ uuid: z25.string(),
1908
+ version: z25.number().int().nullable().optional()
1564
1909
  });
1565
- var JobTimeRecordSchema = z18.object({
1566
- queued_at: z18.string().nullable().optional(),
1567
- started_at: z18.string().nullable().optional(),
1568
- completed_at: z18.string().nullable().optional(),
1569
- time_taken: z18.string().nullable().optional()
1570
- }).passthrough();
1571
- var StaticJobMetadataSchema = z18.object({
1572
- categories: z18.record(z18.unknown()),
1573
- rate_limit_enabled: z18.boolean().optional(),
1574
- rate_limit: z18.number().int().nullable().optional(),
1575
- rate_limit_error_code: z18.number().int().nullable().optional(),
1576
- rate_limit_error_message: z18.string().nullable().optional(),
1577
- rate_limit_error_json: z18.unknown().optional(),
1578
- content_filter_enabled: z18.boolean().optional(),
1579
- content_filter_error_code: z18.number().int().nullable().optional(),
1580
- content_filter_error_message: z18.string().nullable().optional(),
1581
- content_filter_error_json: z18.unknown().optional()
1582
- }).passthrough();
1583
- var DynamicJobMetadataSchema = z18.object({
1584
- rate_limit_enabled: z18.boolean().optional(),
1585
- rate_limit: z18.number().int().nullable().optional(),
1586
- rate_limit_error_code: z18.number().int().nullable().optional(),
1587
- rate_limit_error_message: z18.string().nullable().optional(),
1588
- rate_limit_error_json: z18.unknown().optional(),
1589
- content_filter_enabled: z18.boolean().optional(),
1590
- content_filter_error_code: z18.number().int().nullable().optional(),
1591
- content_filter_error_message: z18.string().nullable().optional(),
1592
- content_filter_error_json: z18.unknown().optional(),
1593
- stream_breadth: z18.number().int().optional(),
1594
- stream_depth: z18.number().int().optional(),
1595
- max_tokens: z18.number().int().optional(),
1596
- context_size: z18.number().int().optional(),
1597
- attack_goals: z18.array(z18.unknown()).optional(),
1598
- base_model: z18.string().nullable().optional(),
1599
- use_case: z18.string().nullable().optional(),
1600
- system_prompt: z18.string().nullable().optional()
1601
- }).passthrough();
1602
- var CustomJobMetadataSchema = z18.object({
1603
- custom_prompt_sets: z18.array(z18.unknown()),
1604
- rate_limit_enabled: z18.boolean().optional(),
1605
- rate_limit: z18.number().int().nullable().optional(),
1606
- rate_limit_error_code: z18.number().int().nullable().optional(),
1607
- rate_limit_error_message: z18.string().nullable().optional(),
1608
- rate_limit_error_json: z18.unknown().optional(),
1609
- content_filter_enabled: z18.boolean().optional(),
1610
- content_filter_error_code: z18.number().int().nullable().optional(),
1611
- content_filter_error_message: z18.string().nullable().optional(),
1612
- content_filter_error_json: z18.unknown().optional()
1613
- }).passthrough();
1614
- var JobCreateRequestSchema = z18.object({
1615
- name: z18.string(),
1910
+ var JobTimeRecordSchema = z25.object({
1911
+ queued_at: z25.string().nullable().optional(),
1912
+ started_at: z25.string().nullable().optional(),
1913
+ completed_at: z25.string().nullable().optional(),
1914
+ time_taken: z25.string().nullable().optional()
1915
+ }).passthrough();
1916
+ var StaticJobMetadataSchema = z25.object({
1917
+ categories: z25.record(z25.unknown()),
1918
+ rate_limit_enabled: z25.boolean().optional(),
1919
+ rate_limit: z25.number().int().nullable().optional(),
1920
+ rate_limit_error_code: z25.number().int().nullable().optional(),
1921
+ rate_limit_error_message: z25.string().nullable().optional(),
1922
+ rate_limit_error_json: z25.unknown().optional(),
1923
+ content_filter_enabled: z25.boolean().optional(),
1924
+ content_filter_error_code: z25.number().int().nullable().optional(),
1925
+ content_filter_error_message: z25.string().nullable().optional(),
1926
+ content_filter_error_json: z25.unknown().optional()
1927
+ }).passthrough();
1928
+ var DynamicJobMetadataSchema = z25.object({
1929
+ rate_limit_enabled: z25.boolean().optional(),
1930
+ rate_limit: z25.number().int().nullable().optional(),
1931
+ rate_limit_error_code: z25.number().int().nullable().optional(),
1932
+ rate_limit_error_message: z25.string().nullable().optional(),
1933
+ rate_limit_error_json: z25.unknown().optional(),
1934
+ content_filter_enabled: z25.boolean().optional(),
1935
+ content_filter_error_code: z25.number().int().nullable().optional(),
1936
+ content_filter_error_message: z25.string().nullable().optional(),
1937
+ content_filter_error_json: z25.unknown().optional(),
1938
+ stream_breadth: z25.number().int().optional(),
1939
+ stream_depth: z25.number().int().optional(),
1940
+ max_tokens: z25.number().int().optional(),
1941
+ context_size: z25.number().int().optional(),
1942
+ attack_goals: z25.array(z25.unknown()).optional(),
1943
+ base_model: z25.string().nullable().optional(),
1944
+ use_case: z25.string().nullable().optional(),
1945
+ system_prompt: z25.string().nullable().optional()
1946
+ }).passthrough();
1947
+ var CustomJobMetadataSchema = z25.object({
1948
+ custom_prompt_sets: z25.array(z25.unknown()),
1949
+ rate_limit_enabled: z25.boolean().optional(),
1950
+ rate_limit: z25.number().int().nullable().optional(),
1951
+ rate_limit_error_code: z25.number().int().nullable().optional(),
1952
+ rate_limit_error_message: z25.string().nullable().optional(),
1953
+ rate_limit_error_json: z25.unknown().optional(),
1954
+ content_filter_enabled: z25.boolean().optional(),
1955
+ content_filter_error_code: z25.number().int().nullable().optional(),
1956
+ content_filter_error_message: z25.string().nullable().optional(),
1957
+ content_filter_error_json: z25.unknown().optional()
1958
+ }).passthrough();
1959
+ var JobCreateRequestSchema = z25.object({
1960
+ name: z25.string(),
1616
1961
  target: TargetJobRequestSchema,
1617
- job_type: z18.string(),
1618
- job_metadata: z18.union([
1962
+ job_type: z25.string(),
1963
+ job_metadata: z25.union([
1619
1964
  StaticJobMetadataSchema,
1620
1965
  DynamicJobMetadataSchema,
1621
1966
  CustomJobMetadataSchema
1622
1967
  ]),
1623
- version: z18.number().int().nullable().optional(),
1624
- extra_info: z18.record(z18.unknown()).nullable().optional()
1968
+ version: z25.number().int().nullable().optional(),
1969
+ extra_info: z25.record(z25.unknown()).nullable().optional()
1625
1970
  });
1626
- var StaticJobReportStatsSchema = z18.object({
1627
- output_completion_percentage: z18.number(),
1628
- partial_report_unlocked: z18.boolean().optional(),
1629
- partial_report_unlocked_at: z18.string().nullable().optional(),
1630
- report_summary: z18.string().nullable().optional()
1631
- }).passthrough();
1632
- var DynamicJobReportStatsSchema = z18.object({
1633
- total_goals: z18.number().int().optional(),
1634
- total_streams: z18.number().int().optional(),
1635
- total_threats: z18.number().int().optional(),
1636
- goals_achieved: z18.number().int().optional(),
1637
- report_summary: z18.string().nullable().optional()
1638
- }).passthrough();
1639
- var TargetReferenceSchema = z18.object({
1640
- uuid: z18.string(),
1641
- tsg_id: z18.string(),
1642
- name: z18.string(),
1643
- description: z18.string().nullable().optional(),
1644
- target_type: z18.string().nullable().optional(),
1645
- connection_type: z18.string().nullable().optional(),
1646
- api_endpoint_type: z18.string().nullable().optional(),
1647
- response_mode: z18.string().nullable().optional(),
1648
- session_supported: z18.boolean().optional(),
1649
- extra_info: z18.record(z18.unknown()).nullable().optional(),
1650
- status: z18.string(),
1651
- active: z18.boolean(),
1652
- validated: z18.boolean(),
1653
- version: z18.number().int().nullable().optional(),
1654
- secret_version: z18.string().nullable().optional(),
1655
- created_by_user_id: z18.string().nullable().optional(),
1656
- updated_by_user_id: z18.string().nullable().optional(),
1657
- created_at: z18.string(),
1658
- updated_at: z18.string(),
1971
+ var StaticJobReportStatsSchema = z25.object({
1972
+ output_completion_percentage: z25.number(),
1973
+ partial_report_unlocked: z25.boolean().optional(),
1974
+ partial_report_unlocked_at: z25.string().nullable().optional(),
1975
+ report_summary: z25.string().nullable().optional()
1976
+ }).passthrough();
1977
+ var DynamicJobReportStatsSchema = z25.object({
1978
+ total_goals: z25.number().int().optional(),
1979
+ total_streams: z25.number().int().optional(),
1980
+ total_threats: z25.number().int().optional(),
1981
+ goals_achieved: z25.number().int().optional(),
1982
+ report_summary: z25.string().nullable().optional()
1983
+ }).passthrough();
1984
+ var TargetReferenceSchema = z25.object({
1985
+ uuid: z25.string(),
1986
+ tsg_id: z25.string(),
1987
+ name: z25.string(),
1988
+ description: z25.string().nullable().optional(),
1989
+ target_type: z25.string().nullable().optional(),
1990
+ connection_type: z25.string().nullable().optional(),
1991
+ api_endpoint_type: z25.string().nullable().optional(),
1992
+ response_mode: z25.string().nullable().optional(),
1993
+ session_supported: z25.boolean().optional(),
1994
+ extra_info: z25.record(z25.unknown()).nullable().optional(),
1995
+ status: z25.string(),
1996
+ active: z25.boolean(),
1997
+ validated: z25.boolean(),
1998
+ version: z25.number().int().nullable().optional(),
1999
+ secret_version: z25.string().nullable().optional(),
2000
+ created_by_user_id: z25.string().nullable().optional(),
2001
+ updated_by_user_id: z25.string().nullable().optional(),
2002
+ created_at: z25.string(),
2003
+ updated_at: z25.string(),
1659
2004
  target_metadata: TargetMetadataSchema.optional(),
1660
2005
  target_background: TargetBackgroundSchema.nullable().optional(),
1661
- profiling_status: z18.string().nullable().optional(),
2006
+ profiling_status: z25.string().nullable().optional(),
1662
2007
  additional_context: TargetAdditionalContextSchema.nullable().optional()
1663
2008
  }).passthrough();
1664
- var JobResponseSchema = z18.object({
1665
- uuid: z18.string(),
1666
- tsg_id: z18.string(),
1667
- name: z18.string(),
2009
+ var JobResponseSchema = z25.object({
2010
+ uuid: z25.string(),
2011
+ tsg_id: z25.string(),
2012
+ name: z25.string(),
1668
2013
  target: TargetReferenceSchema,
1669
- job_type: z18.string(),
1670
- job_metadata: z18.unknown(),
1671
- version: z18.number().int().nullable().optional(),
1672
- extra_info: z18.record(z18.unknown()).nullable().optional(),
1673
- target_id: z18.string(),
1674
- target_type: z18.string(),
1675
- total: z18.number().int().nullable().optional(),
1676
- completed: z18.number().int().nullable().optional(),
1677
- status: z18.string().optional(),
1678
- score: z18.number().nullable().optional(),
1679
- asr: z18.number().nullable().optional(),
2014
+ job_type: z25.string(),
2015
+ job_metadata: z25.unknown(),
2016
+ version: z25.number().int().nullable().optional(),
2017
+ extra_info: z25.record(z25.unknown()).nullable().optional(),
2018
+ target_id: z25.string(),
2019
+ target_type: z25.string(),
2020
+ total: z25.number().int().nullable().optional(),
2021
+ completed: z25.number().int().nullable().optional(),
2022
+ status: z25.string().optional(),
2023
+ score: z25.number().nullable().optional(),
2024
+ asr: z25.number().nullable().optional(),
1680
2025
  time_record: JobTimeRecordSchema.nullable().optional(),
1681
- created_at: z18.string().nullable().optional(),
1682
- updated_at: z18.string().nullable().optional(),
1683
- created_by_user_id: z18.string().nullable().optional(),
1684
- report_stats: z18.unknown().optional(),
1685
- metering_quota_uuid: z18.string().nullable().optional(),
1686
- counted_towards_quota: z18.string().optional(),
1687
- invocation_id: z18.string().nullable().optional()
1688
- }).passthrough();
1689
- var JobListResponseSchema = z18.object({
2026
+ created_at: z25.string().nullable().optional(),
2027
+ updated_at: z25.string().nullable().optional(),
2028
+ created_by_user_id: z25.string().nullable().optional(),
2029
+ report_stats: z25.unknown().optional(),
2030
+ metering_quota_uuid: z25.string().nullable().optional(),
2031
+ counted_towards_quota: z25.string().optional(),
2032
+ invocation_id: z25.string().nullable().optional()
2033
+ }).passthrough();
2034
+ var JobListResponseSchema = z25.object({
1690
2035
  pagination: RedTeamPaginationSchema,
1691
- data: z18.array(JobResponseSchema)
2036
+ data: z25.array(JobResponseSchema)
1692
2037
  }).passthrough();
1693
- var JobAbortResponseSchema = z18.object({
1694
- job_id: z18.string(),
1695
- message: z18.string()
2038
+ var JobAbortResponseSchema = z25.object({
2039
+ job_id: z25.string(),
2040
+ message: z25.string()
1696
2041
  });
1697
- var PrerequisiteModelSchema = z18.object({
1698
- id: z18.string(),
1699
- display_name: z18.string(),
1700
- description: z18.string()
2042
+ var PrerequisiteModelSchema = z25.object({
2043
+ id: z25.string(),
2044
+ display_name: z25.string(),
2045
+ description: z25.string()
1701
2046
  });
1702
- var SubCategoryModelSchema = z18.object({
1703
- id: z18.string(),
1704
- display_name: z18.string(),
1705
- description: z18.string(),
1706
- preselect: z18.boolean().optional(),
1707
- prerequisites: z18.array(PrerequisiteModelSchema).nullable().optional(),
1708
- active: z18.boolean().optional()
1709
- }).passthrough();
1710
- var CategoryModelSchema = z18.object({
1711
- id: z18.string(),
1712
- display_name: z18.string(),
1713
- description: z18.string(),
1714
- preselect: z18.boolean().optional(),
1715
- sub_categories: z18.array(SubCategoryModelSchema)
1716
- }).passthrough();
1717
- var AttackOutputSchema = z18.object({
1718
- uuid: z18.string(),
1719
- tsg_id: z18.string(),
1720
- attack_id: z18.string(),
1721
- job_id: z18.string(),
1722
- target_id: z18.string(),
1723
- output: z18.string(),
1724
- threat: z18.boolean().nullable().optional(),
1725
- marked_safe: z18.boolean().nullable().optional()
1726
- }).passthrough();
1727
- var AttackMultiTurnOutputSchema = z18.object({
1728
- uuid: z18.string(),
1729
- tsg_id: z18.string(),
1730
- attack_id: z18.string(),
1731
- job_id: z18.string(),
1732
- target_id: z18.string(),
1733
- output: z18.string(),
1734
- prompt: z18.string(),
1735
- turn: z18.number().int(),
1736
- threat: z18.boolean().nullable().optional(),
1737
- marked_safe: z18.boolean().nullable().optional(),
1738
- generation: z18.number().int().optional(),
1739
- multi_turn: z18.boolean().optional()
1740
- }).passthrough();
1741
- var AttackListItemSchema = z18.object({
1742
- uuid: z18.string(),
1743
- tsg_id: z18.string(),
1744
- job_id: z18.string(),
1745
- target_id: z18.string(),
1746
- prompt: z18.string(),
1747
- prompt_mapping_id: z18.string(),
1748
- prompt_id: z18.string(),
1749
- category: z18.string(),
1750
- sub_category: z18.string(),
1751
- category_display_name: z18.string(),
1752
- sub_category_display_name: z18.string(),
1753
- status: z18.string().optional(),
1754
- marked_safe: z18.boolean().nullable().optional(),
1755
- extra_info: z18.record(z18.unknown()).optional(),
1756
- threat: z18.boolean().nullable().optional(),
1757
- attack_type: z18.string().optional(),
1758
- multi_turn: z18.boolean().optional(),
1759
- asr: z18.number().nullable().optional(),
1760
- version: z18.number().int().nullable().optional(),
1761
- severity: z18.string().optional()
1762
- }).passthrough();
1763
- var AttackListResponseSchema = z18.object({
2047
+ var SubCategoryModelSchema = z25.object({
2048
+ id: z25.string(),
2049
+ display_name: z25.string(),
2050
+ description: z25.string(),
2051
+ preselect: z25.boolean().optional(),
2052
+ prerequisites: z25.array(PrerequisiteModelSchema).nullable().optional(),
2053
+ active: z25.boolean().optional()
2054
+ }).passthrough();
2055
+ var CategoryModelSchema = z25.object({
2056
+ id: z25.string(),
2057
+ display_name: z25.string(),
2058
+ description: z25.string(),
2059
+ preselect: z25.boolean().optional(),
2060
+ sub_categories: z25.array(SubCategoryModelSchema)
2061
+ }).passthrough();
2062
+ var AttackOutputSchema = z25.object({
2063
+ uuid: z25.string(),
2064
+ tsg_id: z25.string(),
2065
+ attack_id: z25.string(),
2066
+ job_id: z25.string(),
2067
+ target_id: z25.string(),
2068
+ output: z25.string(),
2069
+ threat: z25.boolean().nullable().optional(),
2070
+ marked_safe: z25.boolean().nullable().optional()
2071
+ }).passthrough();
2072
+ var AttackMultiTurnOutputSchema = z25.object({
2073
+ uuid: z25.string(),
2074
+ tsg_id: z25.string(),
2075
+ attack_id: z25.string(),
2076
+ job_id: z25.string(),
2077
+ target_id: z25.string(),
2078
+ output: z25.string(),
2079
+ prompt: z25.string(),
2080
+ turn: z25.number().int(),
2081
+ threat: z25.boolean().nullable().optional(),
2082
+ marked_safe: z25.boolean().nullable().optional(),
2083
+ generation: z25.number().int().optional(),
2084
+ multi_turn: z25.boolean().optional()
2085
+ }).passthrough();
2086
+ var AttackListItemSchema = z25.object({
2087
+ uuid: z25.string(),
2088
+ tsg_id: z25.string(),
2089
+ job_id: z25.string(),
2090
+ target_id: z25.string(),
2091
+ prompt: z25.string(),
2092
+ prompt_mapping_id: z25.string(),
2093
+ prompt_id: z25.string(),
2094
+ category: z25.string(),
2095
+ sub_category: z25.string(),
2096
+ category_display_name: z25.string(),
2097
+ sub_category_display_name: z25.string(),
2098
+ status: z25.string().optional(),
2099
+ marked_safe: z25.boolean().nullable().optional(),
2100
+ extra_info: z25.record(z25.unknown()).optional(),
2101
+ threat: z25.boolean().nullable().optional(),
2102
+ attack_type: z25.string().optional(),
2103
+ multi_turn: z25.boolean().optional(),
2104
+ asr: z25.number().nullable().optional(),
2105
+ version: z25.number().int().nullable().optional(),
2106
+ severity: z25.string().optional()
2107
+ }).passthrough();
2108
+ var AttackListResponseSchema = z25.object({
1764
2109
  pagination: RedTeamPaginationSchema,
1765
- data: z18.array(AttackListItemSchema)
1766
- }).passthrough();
1767
- var AttackDetailResponseSchema = z18.object({
1768
- uuid: z18.string(),
1769
- tsg_id: z18.string(),
1770
- job_id: z18.string(),
1771
- target_id: z18.string(),
1772
- prompt: z18.string(),
1773
- prompt_mapping_id: z18.string(),
1774
- prompt_id: z18.string(),
1775
- category: z18.string(),
1776
- sub_category: z18.string(),
1777
- category_display_name: z18.string(),
1778
- sub_category_display_name: z18.string(),
1779
- compliance_frameworks: z18.array(z18.unknown()),
1780
- goal: z18.string().nullable(),
1781
- status: z18.string().optional(),
1782
- marked_safe: z18.boolean().nullable().optional(),
1783
- extra_info: z18.record(z18.unknown()).optional(),
1784
- threat: z18.boolean().nullable().optional(),
1785
- attack_type: z18.string().optional(),
1786
- multi_turn: z18.boolean().optional(),
1787
- asr: z18.number().nullable().optional(),
1788
- version: z18.number().int().nullable().optional(),
1789
- severity: z18.string().optional(),
1790
- outputs: z18.array(AttackOutputSchema).optional()
1791
- }).passthrough();
1792
- var AttackMultiTurnDetailResponseSchema = z18.object({
1793
- uuid: z18.string(),
1794
- tsg_id: z18.string(),
1795
- job_id: z18.string(),
1796
- target_id: z18.string(),
1797
- prompt: z18.string(),
1798
- prompt_mapping_id: z18.string(),
1799
- prompt_id: z18.string(),
1800
- category: z18.string(),
1801
- sub_category: z18.string(),
1802
- category_display_name: z18.string(),
1803
- sub_category_display_name: z18.string(),
1804
- compliance_frameworks: z18.array(z18.unknown()),
1805
- goal: z18.string().nullable(),
1806
- status: z18.string().optional(),
1807
- marked_safe: z18.boolean().nullable().optional(),
1808
- extra_info: z18.record(z18.unknown()).optional(),
1809
- threat: z18.boolean().nullable().optional(),
1810
- attack_type: z18.string().optional(),
1811
- multi_turn: z18.boolean().optional(),
1812
- asr: z18.number().nullable().optional(),
1813
- version: z18.number().int().nullable().optional(),
1814
- severity: z18.string().optional(),
1815
- outputs: z18.array(AttackMultiTurnOutputSchema).optional()
1816
- }).passthrough();
1817
- var SubCategoryStatsSchema = z18.object({
1818
- id: z18.string(),
1819
- display_name: z18.string(),
1820
- description: z18.string(),
1821
- preselect: z18.boolean().optional(),
1822
- prerequisites: z18.array(PrerequisiteModelSchema).nullable().optional(),
1823
- active: z18.boolean().optional(),
1824
- successful: z18.number().int(),
1825
- failed: z18.number().int(),
1826
- total: z18.number().int().optional()
1827
- }).passthrough();
1828
- var CategoryReportSchema = z18.object({
1829
- id: z18.string(),
1830
- display_name: z18.string(),
1831
- description: z18.string(),
1832
- preselect: z18.boolean().optional(),
1833
- sub_categories: z18.array(SubCategoryStatsSchema),
1834
- asr: z18.number(),
1835
- total_prompts: z18.number().int(),
1836
- total_attacks: z18.number().int(),
1837
- successful: z18.number().int(),
1838
- failed: z18.number().int()
1839
- }).passthrough();
1840
- var SeverityStatsSchema = z18.object({
1841
- severity: z18.string(),
1842
- successful: z18.number().int().optional(),
1843
- failed: z18.number().int().optional()
1844
- }).passthrough();
1845
- var SeverityReportSchema = z18.object({
1846
- stats: z18.array(SeverityStatsSchema),
1847
- successful: z18.number().int().optional(),
1848
- failed: z18.number().int().optional(),
1849
- total_attacks: z18.number().int().optional()
1850
- }).passthrough();
1851
- var ComplianceTechniqueSchema = z18.object({
1852
- id: z18.string(),
1853
- display_name: z18.string(),
1854
- compliance_id: z18.string(),
1855
- description: z18.string(),
1856
- link: z18.string(),
1857
- version: z18.string(),
1858
- active: z18.boolean(),
1859
- successful: z18.number().int().optional(),
1860
- failed: z18.number().int().optional(),
1861
- total: z18.number().int().optional()
1862
- }).passthrough();
1863
- var ComplianceReportSchema = z18.object({
1864
- id: z18.string(),
1865
- display_name: z18.string(),
1866
- description: z18.string(),
1867
- active: z18.boolean(),
1868
- version: z18.string(),
1869
- link: z18.string(),
1870
- techniques: z18.array(ComplianceTechniqueSchema),
1871
- score: z18.number().int().optional()
1872
- }).passthrough();
1873
- var RuntimeSecurityPolicySchema = z18.object({
1874
- policy_id: z18.string(),
1875
- display_name: z18.string(),
1876
- config: z18.record(z18.unknown())
1877
- }).passthrough();
1878
- var StaticJobRemediationSchema = z18.object({
1879
- remediation: z18.string(),
1880
- description: z18.string(),
1881
- mapping_remediation_id: z18.string().nullable().optional(),
1882
- subcategories: z18.array(z18.string()).nullable().optional(),
1883
- effectiveness: z18.number().int().optional(),
1884
- ease_of_implementation: z18.number().int().optional(),
1885
- priority: z18.number().int().optional(),
1886
- resource_links: z18.array(z18.string()).optional(),
1887
- categories: z18.array(z18.string()).nullable().optional()
1888
- }).passthrough();
1889
- var StaticJobRemediationRecommendationSchema = z18.object({
1890
- runtime_security_policy_configuration: z18.array(RuntimeSecurityPolicySchema).nullable().optional(),
1891
- other_measures: z18.array(StaticJobRemediationSchema).optional()
1892
- }).passthrough();
1893
- var StaticJobReportSchema = z18.object({
2110
+ data: z25.array(AttackListItemSchema)
2111
+ }).passthrough();
2112
+ var AttackDetailResponseSchema = z25.object({
2113
+ uuid: z25.string(),
2114
+ tsg_id: z25.string(),
2115
+ job_id: z25.string(),
2116
+ target_id: z25.string(),
2117
+ prompt: z25.string(),
2118
+ prompt_mapping_id: z25.string(),
2119
+ prompt_id: z25.string(),
2120
+ category: z25.string(),
2121
+ sub_category: z25.string(),
2122
+ category_display_name: z25.string(),
2123
+ sub_category_display_name: z25.string(),
2124
+ compliance_frameworks: z25.array(z25.unknown()),
2125
+ goal: z25.string().nullable(),
2126
+ status: z25.string().optional(),
2127
+ marked_safe: z25.boolean().nullable().optional(),
2128
+ extra_info: z25.record(z25.unknown()).optional(),
2129
+ threat: z25.boolean().nullable().optional(),
2130
+ attack_type: z25.string().optional(),
2131
+ multi_turn: z25.boolean().optional(),
2132
+ asr: z25.number().nullable().optional(),
2133
+ version: z25.number().int().nullable().optional(),
2134
+ severity: z25.string().optional(),
2135
+ outputs: z25.array(AttackOutputSchema).optional()
2136
+ }).passthrough();
2137
+ var AttackMultiTurnDetailResponseSchema = z25.object({
2138
+ uuid: z25.string(),
2139
+ tsg_id: z25.string(),
2140
+ job_id: z25.string(),
2141
+ target_id: z25.string(),
2142
+ prompt: z25.string(),
2143
+ prompt_mapping_id: z25.string(),
2144
+ prompt_id: z25.string(),
2145
+ category: z25.string(),
2146
+ sub_category: z25.string(),
2147
+ category_display_name: z25.string(),
2148
+ sub_category_display_name: z25.string(),
2149
+ compliance_frameworks: z25.array(z25.unknown()),
2150
+ goal: z25.string().nullable(),
2151
+ status: z25.string().optional(),
2152
+ marked_safe: z25.boolean().nullable().optional(),
2153
+ extra_info: z25.record(z25.unknown()).optional(),
2154
+ threat: z25.boolean().nullable().optional(),
2155
+ attack_type: z25.string().optional(),
2156
+ multi_turn: z25.boolean().optional(),
2157
+ asr: z25.number().nullable().optional(),
2158
+ version: z25.number().int().nullable().optional(),
2159
+ severity: z25.string().optional(),
2160
+ outputs: z25.array(AttackMultiTurnOutputSchema).optional()
2161
+ }).passthrough();
2162
+ var SubCategoryStatsSchema = z25.object({
2163
+ id: z25.string(),
2164
+ display_name: z25.string(),
2165
+ description: z25.string(),
2166
+ preselect: z25.boolean().optional(),
2167
+ prerequisites: z25.array(PrerequisiteModelSchema).nullable().optional(),
2168
+ active: z25.boolean().optional(),
2169
+ successful: z25.number().int(),
2170
+ failed: z25.number().int(),
2171
+ total: z25.number().int().optional()
2172
+ }).passthrough();
2173
+ var CategoryReportSchema = z25.object({
2174
+ id: z25.string(),
2175
+ display_name: z25.string(),
2176
+ description: z25.string(),
2177
+ preselect: z25.boolean().optional(),
2178
+ sub_categories: z25.array(SubCategoryStatsSchema),
2179
+ asr: z25.number(),
2180
+ total_prompts: z25.number().int(),
2181
+ total_attacks: z25.number().int(),
2182
+ successful: z25.number().int(),
2183
+ failed: z25.number().int()
2184
+ }).passthrough();
2185
+ var SeverityStatsSchema = z25.object({
2186
+ severity: z25.string(),
2187
+ successful: z25.number().int().optional(),
2188
+ failed: z25.number().int().optional()
2189
+ }).passthrough();
2190
+ var SeverityReportSchema = z25.object({
2191
+ stats: z25.array(SeverityStatsSchema),
2192
+ successful: z25.number().int().optional(),
2193
+ failed: z25.number().int().optional(),
2194
+ total_attacks: z25.number().int().optional()
2195
+ }).passthrough();
2196
+ var ComplianceTechniqueSchema = z25.object({
2197
+ id: z25.string(),
2198
+ display_name: z25.string(),
2199
+ compliance_id: z25.string(),
2200
+ description: z25.string(),
2201
+ link: z25.string(),
2202
+ version: z25.string(),
2203
+ active: z25.boolean(),
2204
+ successful: z25.number().int().optional(),
2205
+ failed: z25.number().int().optional(),
2206
+ total: z25.number().int().optional()
2207
+ }).passthrough();
2208
+ var ComplianceReportSchema = z25.object({
2209
+ id: z25.string(),
2210
+ display_name: z25.string(),
2211
+ description: z25.string(),
2212
+ active: z25.boolean(),
2213
+ version: z25.string(),
2214
+ link: z25.string(),
2215
+ techniques: z25.array(ComplianceTechniqueSchema),
2216
+ score: z25.number().int().optional()
2217
+ }).passthrough();
2218
+ var RuntimeSecurityPolicySchema = z25.object({
2219
+ policy_id: z25.string(),
2220
+ display_name: z25.string(),
2221
+ config: z25.record(z25.unknown())
2222
+ }).passthrough();
2223
+ var StaticJobRemediationSchema = z25.object({
2224
+ remediation: z25.string(),
2225
+ description: z25.string(),
2226
+ mapping_remediation_id: z25.string().nullable().optional(),
2227
+ subcategories: z25.array(z25.string()).nullable().optional(),
2228
+ effectiveness: z25.number().int().optional(),
2229
+ ease_of_implementation: z25.number().int().optional(),
2230
+ priority: z25.number().int().optional(),
2231
+ resource_links: z25.array(z25.string()).optional(),
2232
+ categories: z25.array(z25.string()).nullable().optional()
2233
+ }).passthrough();
2234
+ var StaticJobRemediationRecommendationSchema = z25.object({
2235
+ runtime_security_policy_configuration: z25.array(RuntimeSecurityPolicySchema).nullable().optional(),
2236
+ other_measures: z25.array(StaticJobRemediationSchema).optional()
2237
+ }).passthrough();
2238
+ var StaticJobReportSchema = z25.object({
1894
2239
  severity_report: SeverityReportSchema,
1895
- asr: z18.number().nullable().optional(),
1896
- score: z18.number().nullable().optional(),
2240
+ asr: z25.number().nullable().optional(),
2241
+ score: z25.number().nullable().optional(),
1897
2242
  security_report: CategoryReportSchema.nullable().optional(),
1898
2243
  safety_report: CategoryReportSchema.nullable().optional(),
1899
2244
  brand_report: CategoryReportSchema.nullable().optional(),
1900
- compliance_report: z18.array(ComplianceReportSchema).nullable().optional(),
1901
- report_summary: z18.string().nullable().optional(),
2245
+ compliance_report: z25.array(ComplianceReportSchema).nullable().optional(),
2246
+ report_summary: z25.string().nullable().optional(),
1902
2247
  recommendations: StaticJobRemediationRecommendationSchema.nullable().optional()
1903
2248
  }).passthrough();
1904
- var DynamicJobReportSchema = z18.object({
1905
- total_goals: z18.number().int().optional(),
1906
- total_streams: z18.number().int().optional(),
1907
- total_threats: z18.number().int().optional(),
1908
- goals_achieved: z18.number().int().optional(),
1909
- report_summary: z18.string().nullable().optional(),
1910
- score: z18.number().optional(),
1911
- asr: z18.number().optional()
1912
- }).passthrough();
1913
- var RemediationDetailSchema = z18.object({
1914
- remediation: z18.string(),
1915
- description: z18.string(),
1916
- resource_links: z18.array(z18.string()).optional(),
1917
- priority_level: z18.string().optional(),
1918
- ease_of_implementation_level: z18.string().optional(),
1919
- effectiveness_level: z18.string().optional()
1920
- }).passthrough();
1921
- var RemediationResponseSchema = z18.object({ remediations: z18.array(RemediationDetailSchema).optional() }).passthrough();
1922
- var RuntimeSecurityProfileResponseSchema = z18.object({
1923
- runtime_security_profile: z18.array(RuntimeSecurityPolicySchema).nullable().optional()
1924
- }).passthrough();
1925
- var GoalSchema = z18.object({
1926
- goal: z18.string(),
1927
- safe_response: z18.string(),
1928
- jailbroken_response: z18.string(),
1929
- goal_metadata: z18.record(z18.unknown()).optional(),
1930
- custom_goal: z18.boolean().optional(),
1931
- goal_type: z18.string().optional(),
1932
- uuid: z18.string(),
1933
- tsg_id: z18.string(),
1934
- job_id: z18.string(),
1935
- goal_to_show: z18.string().nullable().optional(),
1936
- threat: z18.boolean().optional(),
1937
- version: z18.number().int().nullable().optional(),
1938
- extra_info: z18.record(z18.unknown()).nullable().optional()
1939
- }).passthrough();
1940
- var GoalListResponseSchema = z18.object({ pagination: RedTeamPaginationSchema, data: z18.array(GoalSchema) }).passthrough();
1941
- var StreamIterationDataSchema = z18.object({
1942
- uuid: z18.string(),
1943
- tsg_id: z18.string(),
1944
- job_id: z18.string(),
1945
- stream_id: z18.string(),
1946
- goal_id: z18.string(),
1947
- iteration: z18.number().int(),
1948
- prompt: z18.string(),
1949
- techniques: z18.string(),
1950
- improvement: z18.string(),
1951
- prompts_objective: z18.string(),
1952
- summary: z18.string(),
1953
- output: z18.string().nullable().optional(),
1954
- score: z18.number().int().nullable().optional(),
1955
- judge_reasoning: z18.string().nullable().optional(),
1956
- threat: z18.boolean().optional(),
1957
- created_at: z18.string().nullable().optional(),
1958
- updated_at: z18.string().nullable().optional(),
1959
- extra_info: z18.record(z18.unknown()).nullable().optional(),
1960
- version: z18.number().int().nullable().optional()
1961
- }).passthrough();
1962
- var StreamDetailResponseSchema = z18.object({
1963
- uuid: z18.string(),
1964
- tsg_id: z18.string(),
1965
- job_id: z18.string(),
1966
- target_id: z18.string(),
1967
- goal_id: z18.string(),
1968
- stream_idx: z18.number().int().optional(),
1969
- iteration: z18.number().int().optional(),
1970
- goal: z18.unknown().optional(),
1971
- marked_safe: z18.boolean().optional(),
1972
- stream_type: z18.string().nullable().optional(),
1973
- threat: z18.boolean().optional(),
2249
+ var DynamicJobReportSchema = z25.object({
2250
+ total_goals: z25.number().int().optional(),
2251
+ total_streams: z25.number().int().optional(),
2252
+ total_threats: z25.number().int().optional(),
2253
+ goals_achieved: z25.number().int().optional(),
2254
+ report_summary: z25.string().nullable().optional(),
2255
+ score: z25.number().optional(),
2256
+ asr: z25.number().optional()
2257
+ }).passthrough();
2258
+ var RemediationDetailSchema = z25.object({
2259
+ remediation: z25.string(),
2260
+ description: z25.string(),
2261
+ resource_links: z25.array(z25.string()).optional(),
2262
+ priority_level: z25.string().optional(),
2263
+ ease_of_implementation_level: z25.string().optional(),
2264
+ effectiveness_level: z25.string().optional()
2265
+ }).passthrough();
2266
+ var RemediationResponseSchema = z25.object({ remediations: z25.array(RemediationDetailSchema).optional() }).passthrough();
2267
+ var RuntimeSecurityProfileResponseSchema = z25.object({
2268
+ runtime_security_profile: z25.array(RuntimeSecurityPolicySchema).nullable().optional()
2269
+ }).passthrough();
2270
+ var GoalSchema = z25.object({
2271
+ goal: z25.string(),
2272
+ safe_response: z25.string(),
2273
+ jailbroken_response: z25.string(),
2274
+ goal_metadata: z25.record(z25.unknown()).optional(),
2275
+ custom_goal: z25.boolean().optional(),
2276
+ goal_type: z25.string().optional(),
2277
+ uuid: z25.string(),
2278
+ tsg_id: z25.string(),
2279
+ job_id: z25.string(),
2280
+ goal_to_show: z25.string().nullable().optional(),
2281
+ threat: z25.boolean().optional(),
2282
+ version: z25.number().int().nullable().optional(),
2283
+ extra_info: z25.record(z25.unknown()).nullable().optional()
2284
+ }).passthrough();
2285
+ var GoalListResponseSchema = z25.object({ pagination: RedTeamPaginationSchema, data: z25.array(GoalSchema) }).passthrough();
2286
+ var StreamIterationDataSchema = z25.object({
2287
+ uuid: z25.string(),
2288
+ tsg_id: z25.string(),
2289
+ job_id: z25.string(),
2290
+ stream_id: z25.string(),
2291
+ goal_id: z25.string(),
2292
+ iteration: z25.number().int(),
2293
+ prompt: z25.string(),
2294
+ techniques: z25.string(),
2295
+ improvement: z25.string(),
2296
+ prompts_objective: z25.string(),
2297
+ summary: z25.string(),
2298
+ output: z25.string().nullable().optional(),
2299
+ score: z25.number().int().nullable().optional(),
2300
+ judge_reasoning: z25.string().nullable().optional(),
2301
+ threat: z25.boolean().optional(),
2302
+ created_at: z25.string().nullable().optional(),
2303
+ updated_at: z25.string().nullable().optional(),
2304
+ extra_info: z25.record(z25.unknown()).nullable().optional(),
2305
+ version: z25.number().int().nullable().optional()
2306
+ }).passthrough();
2307
+ var StreamDetailResponseSchema = z25.object({
2308
+ uuid: z25.string(),
2309
+ tsg_id: z25.string(),
2310
+ job_id: z25.string(),
2311
+ target_id: z25.string(),
2312
+ goal_id: z25.string(),
2313
+ stream_idx: z25.number().int().optional(),
2314
+ iteration: z25.number().int().optional(),
2315
+ goal: z25.unknown().optional(),
2316
+ marked_safe: z25.boolean().optional(),
2317
+ stream_type: z25.string().nullable().optional(),
2318
+ threat: z25.boolean().optional(),
1974
2319
  first_threat_iteration: StreamIterationDataSchema.nullable().optional(),
1975
- created_at: z18.string().nullable().optional(),
1976
- updated_at: z18.string().nullable().optional(),
1977
- extra_info: z18.record(z18.unknown()).optional(),
1978
- version: z18.number().int().nullable().optional(),
1979
- iterations: z18.array(StreamIterationDataSchema).optional()
1980
- }).passthrough();
1981
- var StreamListResponseSchema = z18.object({ pagination: RedTeamPaginationSchema, data: z18.array(StreamDetailResponseSchema) }).passthrough();
1982
- var CustomAttackOutputSchema = z18.object({
1983
- uuid: z18.string(),
1984
- tsg_id: z18.string(),
1985
- custom_attack_id: z18.string(),
1986
- job_id: z18.string(),
1987
- target_id: z18.string(),
1988
- output: z18.string(),
1989
- threat: z18.boolean().nullable().optional(),
1990
- marked_safe: z18.boolean().nullable().optional()
1991
- }).passthrough();
1992
- var PropertyAssignmentSchema = z18.object({
1993
- name: z18.string(),
1994
- value: z18.string()
2320
+ created_at: z25.string().nullable().optional(),
2321
+ updated_at: z25.string().nullable().optional(),
2322
+ extra_info: z25.record(z25.unknown()).optional(),
2323
+ version: z25.number().int().nullable().optional(),
2324
+ iterations: z25.array(StreamIterationDataSchema).optional()
2325
+ }).passthrough();
2326
+ var StreamListResponseSchema = z25.object({ pagination: RedTeamPaginationSchema, data: z25.array(StreamDetailResponseSchema) }).passthrough();
2327
+ var CustomAttackOutputSchema = z25.object({
2328
+ uuid: z25.string(),
2329
+ tsg_id: z25.string(),
2330
+ custom_attack_id: z25.string(),
2331
+ job_id: z25.string(),
2332
+ target_id: z25.string(),
2333
+ output: z25.string(),
2334
+ threat: z25.boolean().nullable().optional(),
2335
+ marked_safe: z25.boolean().nullable().optional()
2336
+ }).passthrough();
2337
+ var PropertyAssignmentSchema = z25.object({
2338
+ name: z25.string(),
2339
+ value: z25.string()
1995
2340
  });
1996
- var PropertyValueStatisticSchema = z18.object({
1997
- value: z18.string(),
1998
- successful_attack_count: z18.number().int(),
1999
- total_attack_count: z18.number().int(),
2000
- success_rate: z18.number()
2341
+ var PropertyValueStatisticSchema = z25.object({
2342
+ value: z25.string(),
2343
+ successful_attack_count: z25.number().int(),
2344
+ total_attack_count: z25.number().int(),
2345
+ success_rate: z25.number()
2001
2346
  });
2002
- var PropertyStatisticSchema = z18.object({
2003
- property_name: z18.string(),
2004
- values: z18.array(PropertyValueStatisticSchema)
2347
+ var PropertyStatisticSchema = z25.object({
2348
+ property_name: z25.string(),
2349
+ values: z25.array(PropertyValueStatisticSchema)
2005
2350
  });
2006
- var PromptSetSummarySchema = z18.object({
2007
- prompt_set_id: z18.string(),
2008
- prompt_set_name: z18.string(),
2009
- total_prompts: z18.number().int(),
2010
- total_attacks: z18.number().int(),
2011
- total_threats: z18.number().int(),
2012
- failed_attacks: z18.number().int(),
2013
- threat_rate: z18.number(),
2014
- property_names: z18.array(z18.string()).optional(),
2015
- property_statistics: z18.array(PropertyStatisticSchema).optional()
2016
- }).passthrough();
2017
- var CustomAttackReportResponseSchema = z18.object({
2018
- total_prompts: z18.number().int(),
2019
- total_attacks: z18.number().int(),
2020
- total_threats: z18.number().int(),
2021
- failed_attacks: z18.number().int(),
2022
- score: z18.number(),
2023
- asr: z18.number(),
2024
- custom_attack_reports: z18.array(PromptSetSummarySchema).optional(),
2025
- property_statistics: z18.array(PropertyStatisticSchema).optional()
2026
- }).passthrough();
2027
- var PromptSetsReportResponseSchema = z18.object({
2028
- prompt_sets: z18.array(PromptSetSummarySchema),
2029
- total_prompt_sets: z18.number().int(),
2030
- applied_filters: z18.record(z18.unknown()).optional()
2031
- }).passthrough();
2032
- var PromptDetailResponseSchema = z18.object({
2033
- prompt_id: z18.string(),
2034
- prompt_text: z18.string(),
2035
- goal: z18.string().nullable().optional(),
2036
- user_defined_goal: z18.boolean().optional(),
2037
- properties: z18.array(PropertyAssignmentSchema).optional(),
2038
- attack_id: z18.string().nullable().optional(),
2039
- threat: z18.boolean().nullable().optional(),
2040
- attack_outputs: z18.array(CustomAttackOutputSchema).optional(),
2041
- asr: z18.number().nullable().optional(),
2042
- prompt_set_id: z18.string().nullable().optional(),
2043
- prompt_set_name: z18.string().nullable().optional()
2044
- }).passthrough();
2045
- var CustomAttacksListResponseSchema = z18.object({
2351
+ var PromptSetSummarySchema = z25.object({
2352
+ prompt_set_id: z25.string(),
2353
+ prompt_set_name: z25.string(),
2354
+ total_prompts: z25.number().int(),
2355
+ total_attacks: z25.number().int(),
2356
+ total_threats: z25.number().int(),
2357
+ failed_attacks: z25.number().int(),
2358
+ threat_rate: z25.number(),
2359
+ property_names: z25.array(z25.string()).optional(),
2360
+ property_statistics: z25.array(PropertyStatisticSchema).optional()
2361
+ }).passthrough();
2362
+ var CustomAttackReportResponseSchema = z25.object({
2363
+ total_prompts: z25.number().int(),
2364
+ total_attacks: z25.number().int(),
2365
+ total_threats: z25.number().int(),
2366
+ failed_attacks: z25.number().int(),
2367
+ score: z25.number(),
2368
+ asr: z25.number(),
2369
+ custom_attack_reports: z25.array(PromptSetSummarySchema).optional(),
2370
+ property_statistics: z25.array(PropertyStatisticSchema).optional()
2371
+ }).passthrough();
2372
+ var PromptSetsReportResponseSchema = z25.object({
2373
+ prompt_sets: z25.array(PromptSetSummarySchema),
2374
+ total_prompt_sets: z25.number().int(),
2375
+ applied_filters: z25.record(z25.unknown()).optional()
2376
+ }).passthrough();
2377
+ var PromptDetailResponseSchema = z25.object({
2378
+ prompt_id: z25.string(),
2379
+ prompt_text: z25.string(),
2380
+ goal: z25.string().nullable().optional(),
2381
+ user_defined_goal: z25.boolean().optional(),
2382
+ properties: z25.array(PropertyAssignmentSchema).optional(),
2383
+ attack_id: z25.string().nullable().optional(),
2384
+ threat: z25.boolean().nullable().optional(),
2385
+ attack_outputs: z25.array(CustomAttackOutputSchema).optional(),
2386
+ asr: z25.number().nullable().optional(),
2387
+ prompt_set_id: z25.string().nullable().optional(),
2388
+ prompt_set_name: z25.string().nullable().optional()
2389
+ }).passthrough();
2390
+ var CustomAttacksListResponseSchema = z25.object({
2046
2391
  pagination: RedTeamPaginationSchema,
2047
- data: z18.array(z18.unknown()),
2048
- total_attacks: z18.number().int(),
2049
- total_threats: z18.number().int()
2050
- }).passthrough();
2051
- var RiskLevelSchema = z18.object({
2052
- risk_rating: z18.string(),
2053
- total: z18.number().int(),
2054
- targets_by_type: z18.array(CountByNameSchema).optional()
2055
- }).passthrough();
2056
- var ScanStatisticsResponseSchema = z18.object({
2057
- total_scans: z18.number().int(),
2058
- targets_scanned: z18.number().int(),
2059
- targets_scanned_by_type: z18.array(CountByNameSchema).optional(),
2060
- scan_status: z18.array(CountByNameSchema).optional(),
2061
- risk_profile: z18.array(RiskLevelSchema).optional()
2062
- }).passthrough();
2063
- var ScoreTrendSeriesSchema = z18.object({
2064
- label: z18.string(),
2065
- data: z18.array(z18.number().nullable())
2392
+ data: z25.array(z25.unknown()),
2393
+ total_attacks: z25.number().int(),
2394
+ total_threats: z25.number().int()
2395
+ }).passthrough();
2396
+ var RiskLevelSchema = z25.object({
2397
+ risk_rating: z25.string(),
2398
+ total: z25.number().int(),
2399
+ targets_by_type: z25.array(CountByNameSchema).optional()
2400
+ }).passthrough();
2401
+ var ScanStatisticsResponseSchema = z25.object({
2402
+ total_scans: z25.number().int(),
2403
+ targets_scanned: z25.number().int(),
2404
+ targets_scanned_by_type: z25.array(CountByNameSchema).optional(),
2405
+ scan_status: z25.array(CountByNameSchema).optional(),
2406
+ risk_profile: z25.array(RiskLevelSchema).optional()
2407
+ }).passthrough();
2408
+ var ScoreTrendSeriesSchema = z25.object({
2409
+ label: z25.string(),
2410
+ data: z25.array(z25.number().nullable())
2066
2411
  });
2067
- var ScoreTrendResponseSchema = z18.object({
2068
- labels: z18.array(z18.string()),
2069
- series: z18.array(ScoreTrendSeriesSchema)
2412
+ var ScoreTrendResponseSchema = z25.object({
2413
+ labels: z25.array(z25.string()),
2414
+ series: z25.array(ScoreTrendSeriesSchema)
2070
2415
  });
2071
- var SentimentRequestSchema = z18.object({
2072
- job_id: z18.string(),
2073
- up_vote: z18.boolean().optional(),
2074
- down_vote: z18.boolean().optional()
2416
+ var SentimentRequestSchema = z25.object({
2417
+ job_id: z25.string(),
2418
+ up_vote: z25.boolean().optional(),
2419
+ down_vote: z25.boolean().optional()
2075
2420
  });
2076
- var SentimentResponseSchema = z18.object({
2077
- job_id: z18.string(),
2078
- up_vote: z18.boolean().optional(),
2079
- down_vote: z18.boolean().optional()
2080
- }).passthrough();
2081
- var QuotaDetailsSchema = z18.object({
2082
- allocated: z18.number().int(),
2083
- unlimited: z18.boolean(),
2084
- consumed: z18.number().int()
2421
+ var SentimentResponseSchema = z25.object({
2422
+ job_id: z25.string(),
2423
+ up_vote: z25.boolean().optional(),
2424
+ down_vote: z25.boolean().optional()
2425
+ }).passthrough();
2426
+ var QuotaDetailsSchema = z25.object({
2427
+ allocated: z25.number().int(),
2428
+ unlimited: z25.boolean(),
2429
+ consumed: z25.number().int()
2085
2430
  });
2086
- var QuotaSummarySchema = z18.object({
2431
+ var QuotaSummarySchema = z25.object({
2087
2432
  static: QuotaDetailsSchema,
2088
2433
  dynamic: QuotaDetailsSchema,
2089
2434
  custom: QuotaDetailsSchema
2090
2435
  });
2091
- var ErrorLogSchema = z18.object({
2092
- created_at: z18.string(),
2093
- updated_at: z18.string(),
2094
- job_id: z18.string().nullable().optional(),
2095
- target_id: z18.string().nullable().optional(),
2096
- target_version: z18.number().int().nullable().optional(),
2097
- attack_id: z18.string().nullable().optional(),
2098
- error_type: z18.string().nullable().optional(),
2099
- error_source: z18.string().nullable().optional(),
2100
- error_message: z18.string().nullable().optional(),
2101
- target_object: z18.record(z18.unknown()).nullable().optional(),
2102
- extra_info: z18.record(z18.unknown()).nullable().optional(),
2103
- version: z18.number().int().optional()
2104
- }).passthrough();
2105
- var ErrorLogListResponseSchema = z18.object({ pagination: RedTeamPaginationSchema, data: z18.array(ErrorLogSchema) }).passthrough();
2106
- var TargetCreateRequestSchema = z18.object({
2107
- name: z18.string(),
2108
- description: z18.unknown().optional(),
2109
- target_type: z18.unknown().optional(),
2110
- connection_type: z18.unknown().optional(),
2111
- api_endpoint_type: z18.unknown().optional(),
2112
- response_mode: z18.unknown().optional(),
2113
- connection_params: z18.unknown().optional(),
2114
- session_supported: z18.boolean().optional(),
2115
- target_metadata: z18.unknown().optional(),
2116
- target_background: z18.unknown().optional(),
2117
- additional_context: z18.unknown().optional(),
2118
- extra_info: z18.unknown().optional(),
2119
- network_broker_channel_uuid: z18.unknown().optional()
2120
- }).passthrough();
2121
- var TargetUpdateRequestSchema = z18.object({
2122
- name: z18.string(),
2123
- description: z18.unknown().optional(),
2124
- target_type: z18.unknown().optional(),
2125
- connection_type: z18.unknown().optional(),
2126
- api_endpoint_type: z18.unknown().optional(),
2127
- response_mode: z18.unknown().optional(),
2128
- connection_params: z18.unknown().optional(),
2129
- session_supported: z18.boolean().optional(),
2130
- target_metadata: z18.unknown().optional(),
2131
- target_background: z18.unknown().optional(),
2132
- additional_context: z18.unknown().optional(),
2133
- extra_info: z18.unknown().optional(),
2134
- network_broker_channel_uuid: z18.unknown().optional()
2135
- }).passthrough();
2136
- var TargetContextUpdateSchema = z18.object({
2137
- target_background: z18.unknown().optional(),
2138
- additional_context: z18.unknown().optional()
2139
- }).passthrough();
2140
- var TargetResponseSchema = z18.object({
2141
- uuid: z18.string(),
2142
- tsg_id: z18.string(),
2143
- name: z18.string(),
2144
- status: z18.unknown(),
2145
- active: z18.boolean(),
2146
- validated: z18.boolean(),
2147
- created_at: z18.string(),
2148
- updated_at: z18.string(),
2149
- description: z18.unknown().optional(),
2150
- target_type: z18.unknown().optional(),
2151
- connection_type: z18.unknown().optional(),
2152
- api_endpoint_type: z18.unknown().optional(),
2153
- response_mode: z18.unknown().optional(),
2154
- session_supported: z18.boolean().optional(),
2155
- extra_info: z18.unknown().optional(),
2156
- version: z18.unknown().optional(),
2157
- secret_version: z18.unknown().optional(),
2158
- created_by_user_id: z18.unknown().optional(),
2159
- updated_by_user_id: z18.unknown().optional(),
2160
- target_metadata: z18.unknown().optional(),
2161
- target_background: z18.unknown().optional(),
2162
- profiling_status: z18.unknown().optional(),
2163
- additional_context: z18.unknown().optional()
2164
- }).passthrough();
2165
- var TargetListItemSchema = z18.object({
2166
- uuid: z18.string(),
2167
- tsg_id: z18.string(),
2168
- name: z18.string(),
2169
- status: z18.unknown(),
2170
- active: z18.boolean(),
2171
- validated: z18.boolean(),
2172
- created_at: z18.string(),
2173
- updated_at: z18.string(),
2174
- description: z18.unknown().optional(),
2175
- target_type: z18.unknown().optional(),
2176
- connection_type: z18.unknown().optional(),
2177
- api_endpoint_type: z18.unknown().optional(),
2178
- response_mode: z18.unknown().optional(),
2179
- session_supported: z18.boolean().optional(),
2180
- extra_info: z18.unknown().optional(),
2181
- version: z18.unknown().optional(),
2182
- secret_version: z18.unknown().optional(),
2183
- created_by_user_id: z18.unknown().optional(),
2184
- updated_by_user_id: z18.unknown().optional()
2185
- }).passthrough();
2186
- var TargetListSchema = z18.object({ pagination: RedTeamPaginationSchema, data: z18.array(TargetListItemSchema).optional() }).passthrough();
2187
- var TargetProbeRequestSchema = z18.object({
2188
- name: z18.string(),
2189
- uuid: z18.unknown().optional(),
2190
- description: z18.unknown().optional(),
2191
- target_type: z18.unknown().optional(),
2192
- connection_type: z18.unknown().optional(),
2193
- api_endpoint_type: z18.unknown().optional(),
2194
- response_mode: z18.unknown().optional(),
2195
- connection_params: z18.unknown().optional(),
2196
- session_supported: z18.boolean().optional(),
2197
- target_metadata: z18.unknown().optional(),
2198
- target_background: z18.unknown().optional(),
2199
- additional_context: z18.unknown().optional(),
2200
- extra_info: z18.unknown().optional(),
2201
- network_broker_channel_uuid: z18.unknown().optional(),
2202
- probe_fields: z18.unknown().optional()
2203
- }).passthrough();
2204
- var TargetProfileResponseSchema = z18.object({
2205
- target_id: z18.string(),
2206
- target_version: z18.number().int(),
2207
- status: z18.string(),
2208
- profiling_status: z18.unknown().optional(),
2209
- target_background: z18.unknown().optional(),
2210
- additional_context: z18.unknown().optional(),
2211
- ai_generated_fields: z18.unknown().optional(),
2212
- other_details: z18.unknown().optional()
2213
- }).passthrough();
2214
- var BaseResponseSchema = z18.object({
2215
- message: z18.string(),
2216
- status: z18.number().int()
2436
+ var ErrorLogSchema = z25.object({
2437
+ created_at: z25.string(),
2438
+ updated_at: z25.string(),
2439
+ job_id: z25.string().nullable().optional(),
2440
+ target_id: z25.string().nullable().optional(),
2441
+ target_version: z25.number().int().nullable().optional(),
2442
+ attack_id: z25.string().nullable().optional(),
2443
+ error_type: z25.string().nullable().optional(),
2444
+ error_source: z25.string().nullable().optional(),
2445
+ error_message: z25.string().nullable().optional(),
2446
+ target_object: z25.record(z25.unknown()).nullable().optional(),
2447
+ extra_info: z25.record(z25.unknown()).nullable().optional(),
2448
+ version: z25.number().int().optional()
2449
+ }).passthrough();
2450
+ var ErrorLogListResponseSchema = z25.object({ pagination: RedTeamPaginationSchema, data: z25.array(ErrorLogSchema) }).passthrough();
2451
+ var TargetCreateRequestSchema = z25.object({
2452
+ name: z25.string(),
2453
+ description: z25.unknown().optional(),
2454
+ target_type: z25.unknown().optional(),
2455
+ connection_type: z25.unknown().optional(),
2456
+ api_endpoint_type: z25.unknown().optional(),
2457
+ response_mode: z25.unknown().optional(),
2458
+ connection_params: z25.unknown().optional(),
2459
+ session_supported: z25.boolean().optional(),
2460
+ target_metadata: z25.unknown().optional(),
2461
+ target_background: z25.unknown().optional(),
2462
+ additional_context: z25.unknown().optional(),
2463
+ extra_info: z25.unknown().optional(),
2464
+ network_broker_channel_uuid: z25.unknown().optional()
2465
+ }).passthrough();
2466
+ var TargetUpdateRequestSchema = z25.object({
2467
+ name: z25.string(),
2468
+ description: z25.unknown().optional(),
2469
+ target_type: z25.unknown().optional(),
2470
+ connection_type: z25.unknown().optional(),
2471
+ api_endpoint_type: z25.unknown().optional(),
2472
+ response_mode: z25.unknown().optional(),
2473
+ connection_params: z25.unknown().optional(),
2474
+ session_supported: z25.boolean().optional(),
2475
+ target_metadata: z25.unknown().optional(),
2476
+ target_background: z25.unknown().optional(),
2477
+ additional_context: z25.unknown().optional(),
2478
+ extra_info: z25.unknown().optional(),
2479
+ network_broker_channel_uuid: z25.unknown().optional()
2480
+ }).passthrough();
2481
+ var TargetContextUpdateSchema = z25.object({
2482
+ target_background: z25.unknown().optional(),
2483
+ additional_context: z25.unknown().optional()
2484
+ }).passthrough();
2485
+ var TargetResponseSchema = z25.object({
2486
+ uuid: z25.string(),
2487
+ tsg_id: z25.string(),
2488
+ name: z25.string(),
2489
+ status: z25.unknown(),
2490
+ active: z25.boolean(),
2491
+ validated: z25.boolean(),
2492
+ created_at: z25.string(),
2493
+ updated_at: z25.string(),
2494
+ description: z25.unknown().optional(),
2495
+ target_type: z25.unknown().optional(),
2496
+ connection_type: z25.unknown().optional(),
2497
+ api_endpoint_type: z25.unknown().optional(),
2498
+ response_mode: z25.unknown().optional(),
2499
+ session_supported: z25.boolean().optional(),
2500
+ extra_info: z25.unknown().optional(),
2501
+ version: z25.unknown().optional(),
2502
+ secret_version: z25.unknown().optional(),
2503
+ created_by_user_id: z25.unknown().optional(),
2504
+ updated_by_user_id: z25.unknown().optional(),
2505
+ target_metadata: z25.unknown().optional(),
2506
+ target_background: z25.unknown().optional(),
2507
+ profiling_status: z25.unknown().optional(),
2508
+ additional_context: z25.unknown().optional()
2509
+ }).passthrough();
2510
+ var TargetListItemSchema = z25.object({
2511
+ uuid: z25.string(),
2512
+ tsg_id: z25.string(),
2513
+ name: z25.string(),
2514
+ status: z25.unknown(),
2515
+ active: z25.boolean(),
2516
+ validated: z25.boolean(),
2517
+ created_at: z25.string(),
2518
+ updated_at: z25.string(),
2519
+ description: z25.unknown().optional(),
2520
+ target_type: z25.unknown().optional(),
2521
+ connection_type: z25.unknown().optional(),
2522
+ api_endpoint_type: z25.unknown().optional(),
2523
+ response_mode: z25.unknown().optional(),
2524
+ session_supported: z25.boolean().optional(),
2525
+ extra_info: z25.unknown().optional(),
2526
+ version: z25.unknown().optional(),
2527
+ secret_version: z25.unknown().optional(),
2528
+ created_by_user_id: z25.unknown().optional(),
2529
+ updated_by_user_id: z25.unknown().optional()
2530
+ }).passthrough();
2531
+ var TargetListSchema = z25.object({ pagination: RedTeamPaginationSchema, data: z25.array(TargetListItemSchema).optional() }).passthrough();
2532
+ var TargetProbeRequestSchema = z25.object({
2533
+ name: z25.string(),
2534
+ uuid: z25.unknown().optional(),
2535
+ description: z25.unknown().optional(),
2536
+ target_type: z25.unknown().optional(),
2537
+ connection_type: z25.unknown().optional(),
2538
+ api_endpoint_type: z25.unknown().optional(),
2539
+ response_mode: z25.unknown().optional(),
2540
+ connection_params: z25.unknown().optional(),
2541
+ session_supported: z25.boolean().optional(),
2542
+ target_metadata: z25.unknown().optional(),
2543
+ target_background: z25.unknown().optional(),
2544
+ additional_context: z25.unknown().optional(),
2545
+ extra_info: z25.unknown().optional(),
2546
+ network_broker_channel_uuid: z25.unknown().optional(),
2547
+ probe_fields: z25.unknown().optional()
2548
+ }).passthrough();
2549
+ var TargetProfileResponseSchema = z25.object({
2550
+ target_id: z25.string(),
2551
+ target_version: z25.number().int(),
2552
+ status: z25.string(),
2553
+ profiling_status: z25.unknown().optional(),
2554
+ target_background: z25.unknown().optional(),
2555
+ additional_context: z25.unknown().optional(),
2556
+ ai_generated_fields: z25.unknown().optional(),
2557
+ other_details: z25.unknown().optional()
2558
+ }).passthrough();
2559
+ var BaseResponseSchema = z25.object({
2560
+ message: z25.string(),
2561
+ status: z25.number().int()
2217
2562
  });
2218
- var PromptSetStatsSchema = z18.object({
2219
- total_prompts: z18.number().int(),
2220
- active_prompts: z18.number().int(),
2221
- inactive_prompts: z18.number().int(),
2222
- failed_prompts: z18.number().int().optional(),
2223
- validation_prompts: z18.number().int().optional()
2224
- }).passthrough();
2225
- var CustomPromptSetCreateRequestSchema = z18.object({
2226
- name: z18.string(),
2227
- description: z18.unknown().optional(),
2228
- property_names: z18.array(z18.string()).optional()
2563
+ var PromptSetStatsSchema = z25.object({
2564
+ total_prompts: z25.number().int(),
2565
+ active_prompts: z25.number().int(),
2566
+ inactive_prompts: z25.number().int(),
2567
+ failed_prompts: z25.number().int().optional(),
2568
+ validation_prompts: z25.number().int().optional()
2569
+ }).passthrough();
2570
+ var CustomPromptSetCreateRequestSchema = z25.object({
2571
+ name: z25.string(),
2572
+ description: z25.unknown().optional(),
2573
+ property_names: z25.array(z25.string()).optional()
2229
2574
  });
2230
- var CustomPromptSetUpdateRequestSchema = z18.object({
2231
- name: z18.unknown().optional(),
2232
- description: z18.unknown().optional(),
2233
- archive: z18.unknown().optional(),
2234
- property_names: z18.unknown().optional()
2235
- }).passthrough();
2236
- var CustomPromptSetArchiveRequestSchema = z18.object({ archive: z18.boolean() });
2237
- var CustomPromptSetResponseSchema = z18.object({
2238
- uuid: z18.string(),
2239
- name: z18.string(),
2240
- active: z18.boolean(),
2241
- archive: z18.boolean(),
2242
- status: z18.string(),
2243
- created_at: z18.string(),
2244
- updated_at: z18.string(),
2245
- description: z18.unknown().optional(),
2246
- property_names: z18.array(z18.string()).optional(),
2247
- properties: z18.array(z18.unknown()).optional(),
2248
- stats: z18.unknown().optional(),
2249
- extra_info: z18.unknown().optional(),
2250
- version: z18.unknown().optional(),
2251
- created_by_user_id: z18.unknown().optional(),
2252
- updated_by_user_id: z18.unknown().optional()
2253
- }).passthrough();
2254
- var CustomPromptSetListItemSchema = z18.object({
2255
- uuid: z18.string(),
2256
- name: z18.string(),
2257
- active: z18.boolean(),
2258
- archive: z18.boolean(),
2259
- status: z18.string(),
2260
- created_at: z18.string(),
2261
- updated_at: z18.string(),
2262
- description: z18.unknown().optional(),
2263
- property_names: z18.array(z18.string()).optional(),
2264
- stats: z18.unknown().optional(),
2265
- created_by_user_id: z18.unknown().optional()
2266
- }).passthrough();
2267
- var CustomPromptSetListSchema = z18.object({
2575
+ var CustomPromptSetUpdateRequestSchema = z25.object({
2576
+ name: z25.unknown().optional(),
2577
+ description: z25.unknown().optional(),
2578
+ archive: z25.unknown().optional(),
2579
+ property_names: z25.unknown().optional()
2580
+ }).passthrough();
2581
+ var CustomPromptSetArchiveRequestSchema = z25.object({ archive: z25.boolean() });
2582
+ var CustomPromptSetResponseSchema = z25.object({
2583
+ uuid: z25.string(),
2584
+ name: z25.string(),
2585
+ active: z25.boolean(),
2586
+ archive: z25.boolean(),
2587
+ status: z25.string(),
2588
+ created_at: z25.string(),
2589
+ updated_at: z25.string(),
2590
+ description: z25.unknown().optional(),
2591
+ property_names: z25.array(z25.string()).optional(),
2592
+ properties: z25.array(z25.unknown()).optional(),
2593
+ stats: z25.unknown().optional(),
2594
+ extra_info: z25.unknown().optional(),
2595
+ version: z25.unknown().optional(),
2596
+ created_by_user_id: z25.unknown().optional(),
2597
+ updated_by_user_id: z25.unknown().optional()
2598
+ }).passthrough();
2599
+ var CustomPromptSetListItemSchema = z25.object({
2600
+ uuid: z25.string(),
2601
+ name: z25.string(),
2602
+ active: z25.boolean(),
2603
+ archive: z25.boolean(),
2604
+ status: z25.string(),
2605
+ created_at: z25.string(),
2606
+ updated_at: z25.string(),
2607
+ description: z25.unknown().optional(),
2608
+ property_names: z25.array(z25.string()).optional(),
2609
+ stats: z25.unknown().optional(),
2610
+ created_by_user_id: z25.unknown().optional()
2611
+ }).passthrough();
2612
+ var CustomPromptSetListSchema = z25.object({
2268
2613
  pagination: RedTeamPaginationSchema,
2269
- data: z18.array(CustomPromptSetListItemSchema).optional()
2270
- }).passthrough();
2271
- var CustomPromptSetListActiveSchema = z18.object({ data: z18.array(CustomPromptSetListItemSchema).optional() }).passthrough();
2272
- var CustomPromptSetReferenceSchema = z18.object({
2273
- uuid: z18.string(),
2274
- name: z18.string(),
2275
- status: z18.string(),
2276
- active: z18.boolean(),
2277
- tsg_id: z18.string(),
2278
- created_at: z18.string(),
2279
- updated_at: z18.string(),
2280
- version: z18.unknown().optional()
2281
- }).passthrough();
2282
- var CustomPromptSetVersionInfoSchema = z18.object({
2283
- uuid: z18.string(),
2284
- status: z18.string(),
2285
- is_latest: z18.boolean(),
2286
- version: z18.string().nullable().optional(),
2614
+ data: z25.array(CustomPromptSetListItemSchema).optional()
2615
+ }).passthrough();
2616
+ var CustomPromptSetListActiveSchema = z25.object({ data: z25.array(CustomPromptSetListItemSchema).optional() }).passthrough();
2617
+ var CustomPromptSetReferenceSchema = z25.object({
2618
+ uuid: z25.string(),
2619
+ name: z25.string(),
2620
+ status: z25.string(),
2621
+ active: z25.boolean(),
2622
+ tsg_id: z25.string(),
2623
+ created_at: z25.string(),
2624
+ updated_at: z25.string(),
2625
+ version: z25.unknown().optional()
2626
+ }).passthrough();
2627
+ var CustomPromptSetVersionInfoSchema = z25.object({
2628
+ uuid: z25.string(),
2629
+ status: z25.string(),
2630
+ is_latest: z25.boolean(),
2631
+ version: z25.string().nullable().optional(),
2287
2632
  stats: PromptSetStatsSchema.nullable().optional(),
2288
- snapshot_created_at: z18.string().nullable().optional()
2633
+ snapshot_created_at: z25.string().nullable().optional()
2289
2634
  }).passthrough();
2290
- var CustomPromptCreateRequestSchema = z18.object({
2291
- prompt: z18.string(),
2292
- prompt_set_id: z18.string(),
2293
- goal: z18.unknown().optional(),
2294
- properties: z18.unknown().optional()
2635
+ var CustomPromptCreateRequestSchema = z25.object({
2636
+ prompt: z25.string(),
2637
+ prompt_set_id: z25.string(),
2638
+ goal: z25.unknown().optional(),
2639
+ properties: z25.unknown().optional()
2295
2640
  });
2296
- var CustomPromptUpdateRequestSchema = z18.object({
2297
- prompt: z18.unknown().optional(),
2298
- goal: z18.unknown().optional(),
2299
- properties: z18.unknown().optional()
2300
- }).passthrough();
2301
- var CustomPromptResponseSchema = z18.object({
2302
- uuid: z18.string(),
2303
- prompt: z18.string(),
2304
- user_defined_goal: z18.boolean(),
2305
- status: z18.string(),
2306
- active: z18.boolean(),
2307
- prompt_set_id: z18.string(),
2308
- created_at: z18.string(),
2309
- updated_at: z18.string(),
2310
- goal: z18.unknown().optional(),
2311
- properties: z18.unknown().optional(),
2312
- property_assignments: z18.array(z18.unknown()).optional(),
2313
- detector_category: z18.unknown().optional(),
2314
- severity: z18.unknown().optional(),
2315
- extra_info: z18.unknown().optional()
2316
- }).passthrough();
2317
- var CustomPromptListItemSchema = z18.object({
2318
- uuid: z18.string(),
2319
- prompt: z18.string(),
2320
- user_defined_goal: z18.boolean(),
2321
- status: z18.string(),
2322
- active: z18.boolean(),
2323
- created_at: z18.string(),
2324
- updated_at: z18.string(),
2325
- goal: z18.unknown().optional(),
2326
- properties: z18.unknown().optional()
2327
- }).passthrough();
2328
- var CustomPromptListSchema = z18.object({
2641
+ var CustomPromptUpdateRequestSchema = z25.object({
2642
+ prompt: z25.unknown().optional(),
2643
+ goal: z25.unknown().optional(),
2644
+ properties: z25.unknown().optional()
2645
+ }).passthrough();
2646
+ var CustomPromptResponseSchema = z25.object({
2647
+ uuid: z25.string(),
2648
+ prompt: z25.string(),
2649
+ user_defined_goal: z25.boolean(),
2650
+ status: z25.string(),
2651
+ active: z25.boolean(),
2652
+ prompt_set_id: z25.string(),
2653
+ created_at: z25.string(),
2654
+ updated_at: z25.string(),
2655
+ goal: z25.unknown().optional(),
2656
+ properties: z25.unknown().optional(),
2657
+ property_assignments: z25.array(z25.unknown()).optional(),
2658
+ detector_category: z25.unknown().optional(),
2659
+ severity: z25.unknown().optional(),
2660
+ extra_info: z25.unknown().optional()
2661
+ }).passthrough();
2662
+ var CustomPromptListItemSchema = z25.object({
2663
+ uuid: z25.string(),
2664
+ prompt: z25.string(),
2665
+ user_defined_goal: z25.boolean(),
2666
+ status: z25.string(),
2667
+ active: z25.boolean(),
2668
+ created_at: z25.string(),
2669
+ updated_at: z25.string(),
2670
+ goal: z25.unknown().optional(),
2671
+ properties: z25.unknown().optional()
2672
+ }).passthrough();
2673
+ var CustomPromptListSchema = z25.object({
2329
2674
  pagination: RedTeamPaginationSchema,
2330
- data: z18.array(CustomPromptListItemSchema).optional()
2675
+ data: z25.array(CustomPromptListItemSchema).optional()
2331
2676
  }).passthrough();
2332
- var PropertyNameCreateRequestSchema = z18.object({ name: z18.string() });
2333
- var PropertyValueCreateRequestSchema = z18.object({
2334
- property_name: z18.string(),
2335
- property_value: z18.string()
2677
+ var PropertyNameCreateRequestSchema = z25.object({ name: z25.string() });
2678
+ var PropertyValueCreateRequestSchema = z25.object({
2679
+ property_name: z25.string(),
2680
+ property_value: z25.string()
2336
2681
  });
2337
- var PropertyDefinitionSchema = z18.object({
2338
- property_name: z18.string(),
2339
- created_at: z18.string()
2682
+ var PropertyDefinitionSchema = z25.object({
2683
+ property_name: z25.string(),
2684
+ created_at: z25.string()
2340
2685
  });
2341
- var PropertyNamesListResponseSchema = z18.object({ data: z18.array(PropertyDefinitionSchema).optional() }).passthrough();
2342
- var PropertyValuesResponseSchema = z18.object({
2343
- name: z18.string(),
2344
- values: z18.array(z18.string()).optional()
2686
+ var PropertyNamesListResponseSchema = z25.object({ data: z25.array(PropertyDefinitionSchema).optional() }).passthrough();
2687
+ var PropertyValuesResponseSchema = z25.object({
2688
+ name: z25.string(),
2689
+ values: z25.array(z25.string()).optional()
2345
2690
  }).passthrough();
2346
- var PropertyValuesMultipleResponseSchema = z18.object({ data: z18.record(z18.array(z18.string())).optional() }).passthrough();
2347
- var DashboardOverviewResponseSchema = z18.object({
2348
- total_targets: z18.number().int(),
2349
- targets_by_type: z18.array(CountByNameSchema).optional()
2691
+ var PropertyValuesMultipleResponseSchema = z25.object({ data: z25.record(z25.array(z25.string())).optional() }).passthrough();
2692
+ var DashboardOverviewResponseSchema = z25.object({
2693
+ total_targets: z25.number().int(),
2694
+ targets_by_type: z25.array(CountByNameSchema).optional()
2350
2695
  }).passthrough();
2351
2696
 
2352
2697
  // src/models/oauth-token.ts
2353
- import { z as z19 } from "zod";
2354
- var OAuthTokenResponseSchema = z19.object({
2355
- access_token: z19.string(),
2356
- token_type: z19.string().optional(),
2357
- expires_in: z19.number(),
2358
- scope: z19.string().optional()
2698
+ import { z as z26 } from "zod";
2699
+ var OAuthTokenResponseSchema = z26.object({
2700
+ access_token: z26.string(),
2701
+ token_type: z26.string().optional(),
2702
+ expires_in: z26.number(),
2703
+ scope: z26.string().optional()
2359
2704
  });
2360
2705
 
2361
2706
  // src/management/oauth-client.ts
@@ -2524,8 +2869,327 @@ async function managementHttpRequest(opts) {
2524
2869
  return { status: response.status, data };
2525
2870
  }
2526
2871
 
2527
- // src/management/profiles.ts
2528
- var ProfilesClient = class {
2872
+ // src/management/profiles.ts
2873
+ var ProfilesClient = class {
2874
+ baseUrl;
2875
+ oauthClient;
2876
+ tsgId;
2877
+ numRetries;
2878
+ constructor(opts) {
2879
+ this.baseUrl = opts.baseUrl;
2880
+ this.oauthClient = opts.oauthClient;
2881
+ this.tsgId = opts.tsgId;
2882
+ this.numRetries = opts.numRetries;
2883
+ }
2884
+ /**
2885
+ * Create a new security profile.
2886
+ * @param request - Profile configuration.
2887
+ * @returns The created security profile.
2888
+ */
2889
+ async create(request) {
2890
+ const res = await managementHttpRequest({
2891
+ method: "POST",
2892
+ baseUrl: this.baseUrl,
2893
+ path: MGMT_PROFILE_PATH,
2894
+ body: request,
2895
+ oauthClient: this.oauthClient,
2896
+ numRetries: this.numRetries
2897
+ });
2898
+ return res.data;
2899
+ }
2900
+ /**
2901
+ * List security profiles for the TSG.
2902
+ * @param opts - Pagination options.
2903
+ * @returns Paginated list of security profiles.
2904
+ */
2905
+ async list(opts) {
2906
+ const params = {
2907
+ offset: String(opts?.offset ?? 0),
2908
+ limit: String(opts?.limit ?? 100)
2909
+ };
2910
+ const res = await managementHttpRequest({
2911
+ method: "GET",
2912
+ baseUrl: this.baseUrl,
2913
+ path: `${MGMT_PROFILES_TSG_PATH}/${this.tsgId}`,
2914
+ params,
2915
+ oauthClient: this.oauthClient,
2916
+ numRetries: this.numRetries
2917
+ });
2918
+ return res.data;
2919
+ }
2920
+ /**
2921
+ * Update an existing security profile.
2922
+ * @param profileId - UUID of the profile to update.
2923
+ * @param request - Updated profile configuration.
2924
+ * @returns The updated security profile.
2925
+ */
2926
+ async update(profileId, request) {
2927
+ if (!isValidUuid(profileId)) {
2928
+ throw new AISecSDKException(
2929
+ `Invalid profile_id: ${profileId}`,
2930
+ "AISEC_USER_REQUEST_PAYLOAD_ERROR" /* USER_REQUEST_PAYLOAD_ERROR */
2931
+ );
2932
+ }
2933
+ const res = await managementHttpRequest({
2934
+ method: "PUT",
2935
+ baseUrl: this.baseUrl,
2936
+ path: `${MGMT_PROFILE_PATH}/uuid/${profileId}`,
2937
+ body: request,
2938
+ oauthClient: this.oauthClient,
2939
+ numRetries: this.numRetries
2940
+ });
2941
+ return res.data;
2942
+ }
2943
+ /**
2944
+ * Delete a security profile.
2945
+ * @param profileId - UUID of the profile to delete.
2946
+ * @returns Deletion confirmation message.
2947
+ */
2948
+ async delete(profileId) {
2949
+ if (!isValidUuid(profileId)) {
2950
+ throw new AISecSDKException(
2951
+ `Invalid profile_id: ${profileId}`,
2952
+ "AISEC_USER_REQUEST_PAYLOAD_ERROR" /* USER_REQUEST_PAYLOAD_ERROR */
2953
+ );
2954
+ }
2955
+ const res = await managementHttpRequest({
2956
+ method: "DELETE",
2957
+ baseUrl: this.baseUrl,
2958
+ path: `${MGMT_PROFILE_PATH}/${profileId}`,
2959
+ oauthClient: this.oauthClient,
2960
+ numRetries: this.numRetries
2961
+ });
2962
+ return res.data;
2963
+ }
2964
+ /**
2965
+ * Force-delete a security profile, bypassing safety checks.
2966
+ * @param profileId - UUID of the profile to force-delete.
2967
+ * @param updatedBy - Email of the user performing the deletion.
2968
+ * @returns Deletion confirmation message.
2969
+ */
2970
+ async forceDelete(profileId, updatedBy) {
2971
+ if (!isValidUuid(profileId)) {
2972
+ throw new AISecSDKException(
2973
+ `Invalid profile_id: ${profileId}`,
2974
+ "AISEC_USER_REQUEST_PAYLOAD_ERROR" /* USER_REQUEST_PAYLOAD_ERROR */
2975
+ );
2976
+ }
2977
+ const res = await managementHttpRequest({
2978
+ method: "DELETE",
2979
+ baseUrl: this.baseUrl,
2980
+ path: `${MGMT_PROFILE_PATH}/${profileId}/force`,
2981
+ params: { updated_by: updatedBy },
2982
+ oauthClient: this.oauthClient,
2983
+ numRetries: this.numRetries
2984
+ });
2985
+ return res.data;
2986
+ }
2987
+ };
2988
+
2989
+ // src/management/topics.ts
2990
+ var TopicsClient = class {
2991
+ baseUrl;
2992
+ oauthClient;
2993
+ tsgId;
2994
+ numRetries;
2995
+ constructor(opts) {
2996
+ this.baseUrl = opts.baseUrl;
2997
+ this.oauthClient = opts.oauthClient;
2998
+ this.tsgId = opts.tsgId;
2999
+ this.numRetries = opts.numRetries;
3000
+ }
3001
+ /**
3002
+ * Create a new custom topic.
3003
+ * @param request - Topic definition with name, description, and examples.
3004
+ * @returns The created custom topic.
3005
+ */
3006
+ async create(request) {
3007
+ const res = await managementHttpRequest({
3008
+ method: "POST",
3009
+ baseUrl: this.baseUrl,
3010
+ path: MGMT_TOPIC_PATH,
3011
+ body: request,
3012
+ oauthClient: this.oauthClient,
3013
+ numRetries: this.numRetries
3014
+ });
3015
+ return res.data;
3016
+ }
3017
+ /**
3018
+ * List custom topics for the TSG.
3019
+ * @param opts - Pagination options.
3020
+ * @returns Paginated list of custom topics.
3021
+ */
3022
+ async list(opts) {
3023
+ const params = {
3024
+ offset: String(opts?.offset ?? 0),
3025
+ limit: String(opts?.limit ?? 100)
3026
+ };
3027
+ const res = await managementHttpRequest({
3028
+ method: "GET",
3029
+ baseUrl: this.baseUrl,
3030
+ path: `${MGMT_TOPICS_TSG_PATH}/${this.tsgId}`,
3031
+ params,
3032
+ oauthClient: this.oauthClient,
3033
+ numRetries: this.numRetries
3034
+ });
3035
+ return res.data;
3036
+ }
3037
+ /**
3038
+ * Update an existing custom topic.
3039
+ * @param topicId - UUID of the topic to update.
3040
+ * @param request - Updated topic definition.
3041
+ * @returns The updated custom topic.
3042
+ */
3043
+ async update(topicId, request) {
3044
+ if (!isValidUuid(topicId)) {
3045
+ throw new AISecSDKException(
3046
+ `Invalid topic_id: ${topicId}`,
3047
+ "AISEC_USER_REQUEST_PAYLOAD_ERROR" /* USER_REQUEST_PAYLOAD_ERROR */
3048
+ );
3049
+ }
3050
+ const res = await managementHttpRequest({
3051
+ method: "PUT",
3052
+ baseUrl: this.baseUrl,
3053
+ path: `${MGMT_TOPIC_PATH}/uuid/${topicId}`,
3054
+ body: request,
3055
+ oauthClient: this.oauthClient,
3056
+ numRetries: this.numRetries
3057
+ });
3058
+ return res.data;
3059
+ }
3060
+ /**
3061
+ * Delete a custom topic. Fails if topic is referenced by a profile.
3062
+ * @param topicId - UUID of the topic to delete.
3063
+ * @returns Deletion confirmation message.
3064
+ */
3065
+ async delete(topicId) {
3066
+ if (!isValidUuid(topicId)) {
3067
+ throw new AISecSDKException(
3068
+ `Invalid topic_id: ${topicId}`,
3069
+ "AISEC_USER_REQUEST_PAYLOAD_ERROR" /* USER_REQUEST_PAYLOAD_ERROR */
3070
+ );
3071
+ }
3072
+ const res = await managementHttpRequest({
3073
+ method: "DELETE",
3074
+ baseUrl: this.baseUrl,
3075
+ path: `${MGMT_TOPIC_PATH}/${topicId}`,
3076
+ oauthClient: this.oauthClient,
3077
+ numRetries: this.numRetries
3078
+ });
3079
+ return res.data;
3080
+ }
3081
+ /**
3082
+ * Force-delete a custom topic, removing it from any referencing profiles.
3083
+ * @param topicId - UUID of the topic to force-delete.
3084
+ * @param updatedBy - Email of the user performing the deletion.
3085
+ * @returns Deletion confirmation message.
3086
+ */
3087
+ async forceDelete(topicId, updatedBy) {
3088
+ if (!isValidUuid(topicId)) {
3089
+ throw new AISecSDKException(
3090
+ `Invalid topic_id: ${topicId}`,
3091
+ "AISEC_USER_REQUEST_PAYLOAD_ERROR" /* USER_REQUEST_PAYLOAD_ERROR */
3092
+ );
3093
+ }
3094
+ const params = updatedBy ? { updated_by: updatedBy } : void 0;
3095
+ const res = await managementHttpRequest({
3096
+ method: "DELETE",
3097
+ baseUrl: this.baseUrl,
3098
+ path: `${MGMT_TOPIC_FORCE_PATH}/${topicId}`,
3099
+ params,
3100
+ oauthClient: this.oauthClient,
3101
+ numRetries: this.numRetries
3102
+ });
3103
+ return res.data;
3104
+ }
3105
+ };
3106
+
3107
+ // src/management/api-keys.ts
3108
+ var ApiKeysClient = class {
3109
+ baseUrl;
3110
+ oauthClient;
3111
+ tsgId;
3112
+ numRetries;
3113
+ constructor(opts) {
3114
+ this.baseUrl = opts.baseUrl;
3115
+ this.oauthClient = opts.oauthClient;
3116
+ this.tsgId = opts.tsgId;
3117
+ this.numRetries = opts.numRetries;
3118
+ }
3119
+ /**
3120
+ * Create a new API key.
3121
+ * @param request - API key creation request.
3122
+ * @returns The created API key.
3123
+ */
3124
+ async create(request) {
3125
+ const res = await managementHttpRequest({
3126
+ method: "POST",
3127
+ baseUrl: this.baseUrl,
3128
+ path: MGMT_API_KEY_PATH,
3129
+ body: request,
3130
+ oauthClient: this.oauthClient,
3131
+ numRetries: this.numRetries
3132
+ });
3133
+ return res.data;
3134
+ }
3135
+ /**
3136
+ * List API keys for the TSG.
3137
+ * @param opts - Pagination options.
3138
+ * @returns Paginated list of API keys.
3139
+ */
3140
+ async list(opts) {
3141
+ const params = {
3142
+ offset: String(opts?.offset ?? 0),
3143
+ limit: String(opts?.limit ?? 100)
3144
+ };
3145
+ const res = await managementHttpRequest({
3146
+ method: "GET",
3147
+ baseUrl: this.baseUrl,
3148
+ path: `${MGMT_API_KEYS_TSG_PATH}/${this.tsgId}`,
3149
+ params,
3150
+ oauthClient: this.oauthClient,
3151
+ numRetries: this.numRetries
3152
+ });
3153
+ return res.data;
3154
+ }
3155
+ /**
3156
+ * Delete an API key by name.
3157
+ * @param apiKeyName - Name of the API key to delete.
3158
+ * @param updatedBy - Email of user performing the deletion.
3159
+ * @returns Deletion confirmation.
3160
+ */
3161
+ async delete(apiKeyName, updatedBy) {
3162
+ const res = await managementHttpRequest({
3163
+ method: "DELETE",
3164
+ baseUrl: this.baseUrl,
3165
+ path: `${MGMT_API_KEY_PATH}/delete/${encodeURIComponent(apiKeyName)}`,
3166
+ params: { updated_by: updatedBy },
3167
+ oauthClient: this.oauthClient,
3168
+ numRetries: this.numRetries
3169
+ });
3170
+ return res.data;
3171
+ }
3172
+ /**
3173
+ * Regenerate an API key.
3174
+ * @param apiKeyId - UUID of the API key to regenerate.
3175
+ * @param request - Regeneration request with rotation config.
3176
+ * @returns The regenerated API key.
3177
+ */
3178
+ async regenerate(apiKeyId, request) {
3179
+ const res = await managementHttpRequest({
3180
+ method: "POST",
3181
+ baseUrl: this.baseUrl,
3182
+ path: `${MGMT_API_KEY_PATH}/regenerate/${encodeURIComponent(apiKeyId)}`,
3183
+ body: request,
3184
+ oauthClient: this.oauthClient,
3185
+ numRetries: this.numRetries
3186
+ });
3187
+ return res.data;
3188
+ }
3189
+ };
3190
+
3191
+ // src/management/customer-apps.ts
3192
+ var CustomerAppsClient = class {
2529
3193
  baseUrl;
2530
3194
  oauthClient;
2531
3195
  tsgId;
@@ -2537,25 +3201,25 @@ var ProfilesClient = class {
2537
3201
  this.numRetries = opts.numRetries;
2538
3202
  }
2539
3203
  /**
2540
- * Create a new security profile.
2541
- * @param request - Profile configuration.
2542
- * @returns The created security profile.
3204
+ * Get a customer app by name.
3205
+ * @param appName - Name of the customer app.
3206
+ * @returns The customer app.
2543
3207
  */
2544
- async create(request) {
3208
+ async get(appName) {
2545
3209
  const res = await managementHttpRequest({
2546
- method: "POST",
3210
+ method: "GET",
2547
3211
  baseUrl: this.baseUrl,
2548
- path: MGMT_PROFILE_PATH,
2549
- body: request,
3212
+ path: MGMT_CUSTOMER_APP_PATH,
3213
+ params: { app_name: appName },
2550
3214
  oauthClient: this.oauthClient,
2551
3215
  numRetries: this.numRetries
2552
3216
  });
2553
3217
  return res.data;
2554
3218
  }
2555
3219
  /**
2556
- * List security profiles for the TSG.
3220
+ * List customer apps for the TSG.
2557
3221
  * @param opts - Pagination options.
2558
- * @returns Paginated list of security profiles.
3222
+ * @returns Paginated list of customer apps.
2559
3223
  */
2560
3224
  async list(opts) {
2561
3225
  const params = {
@@ -2565,7 +3229,7 @@ var ProfilesClient = class {
2565
3229
  const res = await managementHttpRequest({
2566
3230
  method: "GET",
2567
3231
  baseUrl: this.baseUrl,
2568
- path: `${MGMT_PROFILES_TSG_PATH}/${this.tsgId}`,
3232
+ path: `${MGMT_CUSTOMER_APPS_TSG_PATH}/${this.tsgId}`,
2569
3233
  params,
2570
3234
  oauthClient: this.oauthClient,
2571
3235
  numRetries: this.numRetries
@@ -2573,22 +3237,17 @@ var ProfilesClient = class {
2573
3237
  return res.data;
2574
3238
  }
2575
3239
  /**
2576
- * Update an existing security profile.
2577
- * @param profileId - UUID of the profile to update.
2578
- * @param request - Updated profile configuration.
2579
- * @returns The updated security profile.
3240
+ * Update a customer app.
3241
+ * @param customerAppId - UUID of the customer app to update.
3242
+ * @param request - Updated customer app data.
3243
+ * @returns The updated customer app.
2580
3244
  */
2581
- async update(profileId, request) {
2582
- if (!isValidUuid(profileId)) {
2583
- throw new AISecSDKException(
2584
- `Invalid profile_id: ${profileId}`,
2585
- "AISEC_USER_REQUEST_PAYLOAD_ERROR" /* USER_REQUEST_PAYLOAD_ERROR */
2586
- );
2587
- }
3245
+ async update(customerAppId, request) {
2588
3246
  const res = await managementHttpRequest({
2589
3247
  method: "PUT",
2590
3248
  baseUrl: this.baseUrl,
2591
- path: `${MGMT_PROFILE_PATH}/uuid/${profileId}`,
3249
+ path: MGMT_CUSTOMER_APP_PATH,
3250
+ params: { customer_app_id: customerAppId },
2592
3251
  body: request,
2593
3252
  oauthClient: this.oauthClient,
2594
3253
  numRetries: this.numRetries
@@ -2596,21 +3255,17 @@ var ProfilesClient = class {
2596
3255
  return res.data;
2597
3256
  }
2598
3257
  /**
2599
- * Delete a security profile.
2600
- * @param profileId - UUID of the profile to delete.
2601
- * @returns Deletion confirmation message.
3258
+ * Delete a customer app.
3259
+ * @param appName - Name of the customer app to delete.
3260
+ * @param updatedBy - Email of user performing the deletion.
3261
+ * @returns The deleted customer app.
2602
3262
  */
2603
- async delete(profileId) {
2604
- if (!isValidUuid(profileId)) {
2605
- throw new AISecSDKException(
2606
- `Invalid profile_id: ${profileId}`,
2607
- "AISEC_USER_REQUEST_PAYLOAD_ERROR" /* USER_REQUEST_PAYLOAD_ERROR */
2608
- );
2609
- }
3263
+ async delete(appName, updatedBy) {
2610
3264
  const res = await managementHttpRequest({
2611
3265
  method: "DELETE",
2612
3266
  baseUrl: this.baseUrl,
2613
- path: `${MGMT_PROFILE_PATH}/${profileId}`,
3267
+ path: MGMT_CUSTOMER_APP_PATH,
3268
+ params: { app_name: appName, updated_by: updatedBy },
2614
3269
  oauthClient: this.oauthClient,
2615
3270
  numRetries: this.numRetries
2616
3271
  });
@@ -2618,114 +3273,143 @@ var ProfilesClient = class {
2618
3273
  }
2619
3274
  };
2620
3275
 
2621
- // src/management/topics.ts
2622
- var TopicsClient = class {
3276
+ // src/management/dlp-profiles.ts
3277
+ var DlpProfilesClient = class {
2623
3278
  baseUrl;
2624
3279
  oauthClient;
2625
- tsgId;
2626
3280
  numRetries;
2627
3281
  constructor(opts) {
2628
3282
  this.baseUrl = opts.baseUrl;
2629
3283
  this.oauthClient = opts.oauthClient;
2630
- this.tsgId = opts.tsgId;
2631
3284
  this.numRetries = opts.numRetries;
2632
3285
  }
2633
3286
  /**
2634
- * Create a new custom topic.
2635
- * @param request - Topic definition with name, description, and examples.
2636
- * @returns The created custom topic.
3287
+ * List all DLP profiles for the TSG.
3288
+ * @returns List of DLP profiles.
2637
3289
  */
2638
- async create(request) {
3290
+ async list() {
2639
3291
  const res = await managementHttpRequest({
2640
- method: "POST",
3292
+ method: "GET",
2641
3293
  baseUrl: this.baseUrl,
2642
- path: MGMT_TOPIC_PATH,
2643
- body: request,
3294
+ path: MGMT_DLP_PROFILES_PATH,
2644
3295
  oauthClient: this.oauthClient,
2645
3296
  numRetries: this.numRetries
2646
3297
  });
2647
3298
  return res.data;
2648
3299
  }
3300
+ };
3301
+
3302
+ // src/management/deployment-profiles.ts
3303
+ var DeploymentProfilesClient = class {
3304
+ baseUrl;
3305
+ oauthClient;
3306
+ numRetries;
3307
+ constructor(opts) {
3308
+ this.baseUrl = opts.baseUrl;
3309
+ this.oauthClient = opts.oauthClient;
3310
+ this.numRetries = opts.numRetries;
3311
+ }
2649
3312
  /**
2650
- * List custom topics for the TSG.
2651
- * @param opts - Pagination options.
2652
- * @returns Paginated list of custom topics.
3313
+ * List deployment profiles for the TSG.
3314
+ * @param opts - Optional filter options.
3315
+ * @returns Deployment profiles response.
2653
3316
  */
2654
3317
  async list(opts) {
2655
- const params = {
2656
- offset: String(opts?.offset ?? 0),
2657
- limit: String(opts?.limit ?? 100)
2658
- };
3318
+ const params = {};
3319
+ if (opts?.unactivated !== void 0) params.unactivated = String(opts.unactivated);
2659
3320
  const res = await managementHttpRequest({
2660
3321
  method: "GET",
2661
3322
  baseUrl: this.baseUrl,
2662
- path: `${MGMT_TOPICS_TSG_PATH}/${this.tsgId}`,
2663
- params,
3323
+ path: MGMT_DEPLOYMENT_PROFILES_PATH,
3324
+ params: Object.keys(params).length > 0 ? params : void 0,
2664
3325
  oauthClient: this.oauthClient,
2665
3326
  numRetries: this.numRetries
2666
3327
  });
2667
3328
  return res.data;
2668
3329
  }
3330
+ };
3331
+
3332
+ // src/management/scan-logs.ts
3333
+ var ScanLogsClient = class {
3334
+ baseUrl;
3335
+ oauthClient;
3336
+ numRetries;
3337
+ constructor(opts) {
3338
+ this.baseUrl = opts.baseUrl;
3339
+ this.oauthClient = opts.oauthClient;
3340
+ this.numRetries = opts.numRetries;
3341
+ }
2669
3342
  /**
2670
- * Update an existing custom topic.
2671
- * @param topicId - UUID of the topic to update.
2672
- * @param request - Updated topic definition.
2673
- * @returns The updated custom topic.
3343
+ * Retrieve scan logs by time interval.
3344
+ * @param opts - Query options including time range, pagination, and filter.
3345
+ * @returns Paginated scan results.
2674
3346
  */
2675
- async update(topicId, request) {
2676
- if (!isValidUuid(topicId)) {
2677
- throw new AISecSDKException(
2678
- `Invalid topic_id: ${topicId}`,
2679
- "AISEC_USER_REQUEST_PAYLOAD_ERROR" /* USER_REQUEST_PAYLOAD_ERROR */
2680
- );
2681
- }
3347
+ async query(opts) {
3348
+ const params = {
3349
+ time_interval: String(opts.time_interval),
3350
+ time_unit: opts.time_unit,
3351
+ pageNumber: String(opts.pageNumber),
3352
+ pageSize: String(opts.pageSize),
3353
+ filter: opts.filter
3354
+ };
3355
+ const body = opts.page_token ? { page_token: opts.page_token } : void 0;
2682
3356
  const res = await managementHttpRequest({
2683
- method: "PUT",
3357
+ method: "POST",
2684
3358
  baseUrl: this.baseUrl,
2685
- path: `${MGMT_TOPIC_PATH}/uuid/${topicId}`,
2686
- body: request,
3359
+ path: MGMT_SCAN_LOGS_PATH,
3360
+ params,
3361
+ body,
2687
3362
  oauthClient: this.oauthClient,
2688
3363
  numRetries: this.numRetries
2689
3364
  });
2690
3365
  return res.data;
2691
3366
  }
3367
+ };
3368
+
3369
+ // src/management/oauth-management.ts
3370
+ var OAuthManagementClient = class {
3371
+ baseUrl;
3372
+ oauthClient;
3373
+ numRetries;
3374
+ constructor(opts) {
3375
+ this.baseUrl = opts.baseUrl;
3376
+ this.oauthClient = opts.oauthClient;
3377
+ this.numRetries = opts.numRetries;
3378
+ }
2692
3379
  /**
2693
- * Delete a custom topic. Fails if topic is referenced by a profile.
2694
- * @param topicId - UUID of the topic to delete.
2695
- * @returns Deletion confirmation message.
3380
+ * Invalidate an OAuth token.
3381
+ * @param token - The OAuth token to invalidate.
3382
+ * @param body - Client ID and customer app.
3383
+ * @returns Confirmation string.
2696
3384
  */
2697
- async delete(topicId) {
2698
- if (!isValidUuid(topicId)) {
2699
- throw new AISecSDKException(
2700
- `Invalid topic_id: ${topicId}`,
2701
- "AISEC_USER_REQUEST_PAYLOAD_ERROR" /* USER_REQUEST_PAYLOAD_ERROR */
2702
- );
2703
- }
3385
+ async invalidateToken(token, body) {
2704
3386
  const res = await managementHttpRequest({
2705
- method: "DELETE",
3387
+ method: "POST",
2706
3388
  baseUrl: this.baseUrl,
2707
- path: `${MGMT_TOPIC_PATH}/${topicId}`,
3389
+ path: MGMT_OAUTH_INVALIDATE_PATH,
3390
+ params: { token },
3391
+ body,
2708
3392
  oauthClient: this.oauthClient,
2709
3393
  numRetries: this.numRetries
2710
3394
  });
2711
3395
  return res.data;
2712
3396
  }
2713
3397
  /**
2714
- * Force-delete a custom topic, removing it from any referencing profiles.
2715
- * @param topicId - UUID of the topic to force-delete.
2716
- * @returns Deletion confirmation message.
3398
+ * Get an OAuth token for client credentials.
3399
+ * @param opts - Token request options.
3400
+ * @returns OAuth2 token response.
2717
3401
  */
2718
- async forceDelete(topicId) {
2719
- if (!isValidUuid(topicId)) {
2720
- throw new AISecSDKException(
2721
- `Invalid topic_id: ${topicId}`,
2722
- "AISEC_USER_REQUEST_PAYLOAD_ERROR" /* USER_REQUEST_PAYLOAD_ERROR */
2723
- );
2724
- }
3402
+ async getAccessToken(opts) {
3403
+ const params = {};
3404
+ if (opts.tokenTtlInterval !== void 0)
3405
+ params.tokenTtlInterval = String(opts.tokenTtlInterval);
3406
+ if (opts.tokenTtlUnit !== void 0) params.tokenTtlUnit = opts.tokenTtlUnit;
2725
3407
  const res = await managementHttpRequest({
2726
- method: "DELETE",
3408
+ method: "POST",
2727
3409
  baseUrl: this.baseUrl,
2728
- path: `${MGMT_TOPIC_FORCE_PATH}/${topicId}`,
3410
+ path: MGMT_OAUTH_TOKEN_PATH,
3411
+ params: Object.keys(params).length > 0 ? params : void 0,
3412
+ body: opts.body,
2729
3413
  oauthClient: this.oauthClient,
2730
3414
  numRetries: this.numRetries
2731
3415
  });
@@ -2737,6 +3421,12 @@ var TopicsClient = class {
2737
3421
  var ManagementClient = class {
2738
3422
  profiles;
2739
3423
  topics;
3424
+ apiKeys;
3425
+ customerApps;
3426
+ dlpProfiles;
3427
+ deploymentProfiles;
3428
+ scanLogs;
3429
+ oauth;
2740
3430
  constructor(opts = {}) {
2741
3431
  const clientId = opts.clientId ?? process.env[MGMT_CLIENT_ID];
2742
3432
  const clientSecret = opts.clientSecret ?? process.env[MGMT_CLIENT_SECRET];
@@ -2783,19 +3473,92 @@ var ManagementClient = class {
2783
3473
  tsgId,
2784
3474
  numRetries
2785
3475
  });
3476
+ this.apiKeys = new ApiKeysClient({
3477
+ baseUrl: apiEndpoint,
3478
+ oauthClient,
3479
+ tsgId,
3480
+ numRetries
3481
+ });
3482
+ this.customerApps = new CustomerAppsClient({
3483
+ baseUrl: apiEndpoint,
3484
+ oauthClient,
3485
+ tsgId,
3486
+ numRetries
3487
+ });
3488
+ this.dlpProfiles = new DlpProfilesClient({
3489
+ baseUrl: apiEndpoint,
3490
+ oauthClient,
3491
+ numRetries
3492
+ });
3493
+ this.deploymentProfiles = new DeploymentProfilesClient({
3494
+ baseUrl: apiEndpoint,
3495
+ oauthClient,
3496
+ numRetries
3497
+ });
3498
+ this.scanLogs = new ScanLogsClient({
3499
+ baseUrl: apiEndpoint,
3500
+ oauthClient,
3501
+ numRetries
3502
+ });
3503
+ this.oauth = new OAuthManagementClient({
3504
+ baseUrl: apiEndpoint,
3505
+ oauthClient,
3506
+ numRetries
3507
+ });
2786
3508
  }
2787
3509
  };
2788
3510
 
2789
3511
  // src/model-security/scans-client.ts
2790
- function buildListParams(opts) {
3512
+ function buildScanListParams(opts) {
2791
3513
  const params = {};
2792
3514
  if (opts?.skip !== void 0) params.skip = String(opts.skip);
2793
3515
  if (opts?.limit !== void 0) params.limit = String(opts.limit);
2794
3516
  if (opts?.sort_by !== void 0) params.sort_by = opts.sort_by;
2795
- if (opts?.sort_direction !== void 0) params.sort_direction = opts.sort_direction;
3517
+ if (opts?.sort_order !== void 0) params.sort_order = opts.sort_order;
3518
+ if (opts?.search_query !== void 0) params.search_query = opts.search_query;
3519
+ if (opts?.eval_outcomes !== void 0) params.eval_outcomes = opts.eval_outcomes;
3520
+ if (opts?.source_types !== void 0) params.source_types = opts.source_types;
3521
+ if (opts?.security_group_uuid !== void 0)
3522
+ params.security_group_uuid = opts.security_group_uuid;
3523
+ if (opts?.start_time !== void 0) params.start_time = opts.start_time;
3524
+ if (opts?.end_time !== void 0) params.end_time = opts.end_time;
3525
+ if (opts?.labels_query !== void 0) params.labels_query = opts.labels_query;
3526
+ return params;
3527
+ }
3528
+ function buildEvaluationListParams(opts) {
3529
+ const params = {};
3530
+ if (opts?.skip !== void 0) params.skip = String(opts.skip);
3531
+ if (opts?.limit !== void 0) params.limit = String(opts.limit);
3532
+ if (opts?.sort_field !== void 0) params.sort_field = opts.sort_field;
3533
+ if (opts?.sort_order !== void 0) params.sort_order = opts.sort_order;
3534
+ if (opts?.result !== void 0) params.result = opts.result;
3535
+ if (opts?.rule_instance_uuid !== void 0) params.rule_instance_uuid = opts.rule_instance_uuid;
3536
+ return params;
3537
+ }
3538
+ function buildFileListParams(opts) {
3539
+ const params = {};
3540
+ if (opts?.skip !== void 0) params.skip = String(opts.skip);
3541
+ if (opts?.limit !== void 0) params.limit = String(opts.limit);
3542
+ if (opts?.sort_field !== void 0) params.sort_field = opts.sort_field;
3543
+ if (opts?.sort_dir !== void 0) params.sort_dir = opts.sort_dir;
3544
+ if (opts?.type !== void 0) params.type = opts.type;
3545
+ if (opts?.result !== void 0) params.result = opts.result;
3546
+ if (opts?.query_path !== void 0) params.query_path = opts.query_path;
3547
+ return params;
3548
+ }
3549
+ function buildLabelListParams(opts) {
3550
+ const params = {};
3551
+ if (opts?.skip !== void 0) params.skip = String(opts.skip);
3552
+ if (opts?.limit !== void 0) params.limit = String(opts.limit);
2796
3553
  if (opts?.search !== void 0) params.search = opts.search;
2797
3554
  return params;
2798
3555
  }
3556
+ function buildViolationListParams(opts) {
3557
+ const params = {};
3558
+ if (opts?.skip !== void 0) params.skip = String(opts.skip);
3559
+ if (opts?.limit !== void 0) params.limit = String(opts.limit);
3560
+ return params;
3561
+ }
2799
3562
  var ModelSecurityScansClient = class {
2800
3563
  baseUrl;
2801
3564
  oauthClient;
@@ -2827,15 +3590,11 @@ var ModelSecurityScansClient = class {
2827
3590
  * @returns Paginated list of scans.
2828
3591
  */
2829
3592
  async list(opts) {
2830
- const params = buildListParams(opts);
2831
- if (opts?.eval_outcome !== void 0) params.eval_outcome = opts.eval_outcome;
2832
- if (opts?.source_type !== void 0) params.source_type = opts.source_type;
2833
- if (opts?.scan_origin !== void 0) params.scan_origin = opts.scan_origin;
2834
3593
  const res = await managementHttpRequest({
2835
3594
  method: "GET",
2836
3595
  baseUrl: this.baseUrl,
2837
3596
  path: MODEL_SEC_SCANS_PATH,
2838
- params,
3597
+ params: buildScanListParams(opts),
2839
3598
  oauthClient: this.oauthClient,
2840
3599
  numRetries: this.numRetries
2841
3600
  });
@@ -2865,7 +3624,7 @@ var ModelSecurityScansClient = class {
2865
3624
  /**
2866
3625
  * Get rule evaluations for a scan.
2867
3626
  * @param scanUuid - Scan UUID.
2868
- * @param opts - Pagination options.
3627
+ * @param opts - Pagination and filter options.
2869
3628
  * @returns Paginated list of rule evaluations.
2870
3629
  */
2871
3630
  async getEvaluations(scanUuid, opts) {
@@ -2879,7 +3638,7 @@ var ModelSecurityScansClient = class {
2879
3638
  method: "GET",
2880
3639
  baseUrl: this.baseUrl,
2881
3640
  path: `${MODEL_SEC_SCANS_PATH}/${scanUuid}/evaluations`,
2882
- params: buildListParams(opts),
3641
+ params: buildEvaluationListParams(opts),
2883
3642
  oauthClient: this.oauthClient,
2884
3643
  numRetries: this.numRetries
2885
3644
  });
@@ -2898,14 +3657,11 @@ var ModelSecurityScansClient = class {
2898
3657
  "AISEC_USER_REQUEST_PAYLOAD_ERROR" /* USER_REQUEST_PAYLOAD_ERROR */
2899
3658
  );
2900
3659
  }
2901
- const params = buildListParams(opts);
2902
- if (opts?.type !== void 0) params.type = opts.type;
2903
- if (opts?.result !== void 0) params.result = opts.result;
2904
3660
  const res = await managementHttpRequest({
2905
3661
  method: "GET",
2906
3662
  baseUrl: this.baseUrl,
2907
3663
  path: `${MODEL_SEC_SCANS_PATH}/${scanUuid}/files`,
2908
- params,
3664
+ params: buildFileListParams(opts),
2909
3665
  oauthClient: this.oauthClient,
2910
3666
  numRetries: this.numRetries
2911
3667
  });
@@ -3000,7 +3756,7 @@ var ModelSecurityScansClient = class {
3000
3756
  method: "GET",
3001
3757
  baseUrl: this.baseUrl,
3002
3758
  path: `${MODEL_SEC_SCANS_PATH}/${scanUuid}/rule-violations`,
3003
- params: buildListParams(opts),
3759
+ params: buildViolationListParams(opts),
3004
3760
  oauthClient: this.oauthClient,
3005
3761
  numRetries: this.numRetries
3006
3762
  });
@@ -3016,7 +3772,7 @@ var ModelSecurityScansClient = class {
3016
3772
  method: "GET",
3017
3773
  baseUrl: this.baseUrl,
3018
3774
  path: `${MODEL_SEC_SCANS_PATH}/label-keys`,
3019
- params: buildListParams(opts),
3775
+ params: buildLabelListParams(opts),
3020
3776
  oauthClient: this.oauthClient,
3021
3777
  numRetries: this.numRetries
3022
3778
  });
@@ -3033,7 +3789,7 @@ var ModelSecurityScansClient = class {
3033
3789
  method: "GET",
3034
3790
  baseUrl: this.baseUrl,
3035
3791
  path: `${MODEL_SEC_SCANS_PATH}/label-keys/${encodeURIComponent(key)}/values`,
3036
- params: buildListParams(opts),
3792
+ params: buildLabelListParams(opts),
3037
3793
  oauthClient: this.oauthClient,
3038
3794
  numRetries: this.numRetries
3039
3795
  });
@@ -3428,12 +4184,10 @@ var ModelSecurityClient = class {
3428
4184
  };
3429
4185
 
3430
4186
  // src/red-team/scans-client.ts
3431
- function buildListParams2(opts) {
4187
+ function buildListParams(opts) {
3432
4188
  const params = {};
3433
4189
  if (opts?.skip !== void 0) params.skip = String(opts.skip);
3434
4190
  if (opts?.limit !== void 0) params.limit = String(opts.limit);
3435
- if (opts?.sort_by !== void 0) params.sort_by = opts.sort_by;
3436
- if (opts?.sort_direction !== void 0) params.sort_direction = opts.sort_direction;
3437
4191
  if (opts?.search !== void 0) params.search = opts.search;
3438
4192
  return params;
3439
4193
  }
@@ -3460,7 +4214,7 @@ var RedTeamScansClient = class {
3460
4214
  }
3461
4215
  /** List red team scan jobs with optional filters. */
3462
4216
  async list(opts) {
3463
- const params = buildListParams2(opts);
4217
+ const params = buildListParams(opts);
3464
4218
  if (opts?.status !== void 0) params.status = opts.status;
3465
4219
  if (opts?.job_type !== void 0) params.job_type = opts.job_type;
3466
4220
  if (opts?.target_id !== void 0) params.target_id = opts.target_id;
@@ -3516,12 +4270,10 @@ var RedTeamScansClient = class {
3516
4270
  };
3517
4271
 
3518
4272
  // src/red-team/reports-client.ts
3519
- function buildListParams3(opts) {
4273
+ function buildListParams2(opts) {
3520
4274
  const params = {};
3521
4275
  if (opts?.skip !== void 0) params.skip = String(opts.skip);
3522
4276
  if (opts?.limit !== void 0) params.limit = String(opts.limit);
3523
- if (opts?.sort_by !== void 0) params.sort_by = opts.sort_by;
3524
- if (opts?.sort_direction !== void 0) params.sort_direction = opts.sort_direction;
3525
4277
  if (opts?.search !== void 0) params.search = opts.search;
3526
4278
  return params;
3527
4279
  }
@@ -3545,11 +4297,13 @@ var RedTeamReportsClient = class {
3545
4297
  /** List attacks for a static scan. */
3546
4298
  async listAttacks(jobId, opts) {
3547
4299
  validateJobId(jobId);
3548
- const params = buildListParams3(opts);
4300
+ const params = buildListParams2(opts);
3549
4301
  if (opts?.status !== void 0) params.status = opts.status;
3550
4302
  if (opts?.severity !== void 0) params.severity = opts.severity;
3551
4303
  if (opts?.category !== void 0) params.category = opts.category;
3552
4304
  if (opts?.sub_category !== void 0) params.sub_category = opts.sub_category;
4305
+ if (opts?.attack_type !== void 0) params.attack_type = opts.attack_type;
4306
+ if (opts?.threat !== void 0) params.threat = String(opts.threat);
3553
4307
  const res = await managementHttpRequest({
3554
4308
  method: "GET",
3555
4309
  baseUrl: this.baseUrl,
@@ -3674,8 +4428,10 @@ var RedTeamReportsClient = class {
3674
4428
  /** List goals for a dynamic scan. */
3675
4429
  async listGoals(jobId, opts) {
3676
4430
  validateJobId(jobId);
3677
- const params = buildListParams3(opts);
4431
+ const params = buildListParams2(opts);
3678
4432
  if (opts?.goal_type !== void 0) params.goal_type = opts.goal_type;
4433
+ if (opts?.status !== void 0) params.status = opts.status;
4434
+ if (opts?.count !== void 0) params.count = String(opts.count);
3679
4435
  const res = await managementHttpRequest({
3680
4436
  method: "GET",
3681
4437
  baseUrl: this.baseUrl,
@@ -3699,7 +4455,7 @@ var RedTeamReportsClient = class {
3699
4455
  method: "GET",
3700
4456
  baseUrl: this.baseUrl,
3701
4457
  path: `${RED_TEAM_REPORT_DYNAMIC_PATH}/${jobId}/goal/${goalId}/list-streams`,
3702
- params: buildListParams3(opts),
4458
+ params: buildListParams2(opts),
3703
4459
  oauthClient: this.oauthClient,
3704
4460
  numRetries: this.numRetries
3705
4461
  });
@@ -3728,8 +4484,7 @@ var RedTeamReportsClient = class {
3728
4484
  /** Download a report in the specified format. */
3729
4485
  async downloadReport(jobId, format) {
3730
4486
  validateJobId(jobId);
3731
- const params = {};
3732
- if (format !== void 0) params.file_format = format;
4487
+ const params = { file_format: format };
3733
4488
  const res = await managementHttpRequest({
3734
4489
  method: "GET",
3735
4490
  baseUrl: this.baseUrl,
@@ -3755,12 +4510,10 @@ var RedTeamReportsClient = class {
3755
4510
  };
3756
4511
 
3757
4512
  // src/red-team/custom-attack-reports-client.ts
3758
- function buildListParams4(opts) {
4513
+ function buildListParams3(opts) {
3759
4514
  const params = {};
3760
4515
  if (opts?.skip !== void 0) params.skip = String(opts.skip);
3761
4516
  if (opts?.limit !== void 0) params.limit = String(opts.limit);
3762
- if (opts?.sort_by !== void 0) params.sort_by = opts.sort_by;
3763
- if (opts?.sort_direction !== void 0) params.sort_direction = opts.sort_direction;
3764
4517
  if (opts?.search !== void 0) params.search = opts.search;
3765
4518
  return params;
3766
4519
  }
@@ -3811,11 +4564,13 @@ var RedTeamCustomAttackReportsClient = class {
3811
4564
  "AISEC_USER_REQUEST_PAYLOAD_ERROR" /* USER_REQUEST_PAYLOAD_ERROR */
3812
4565
  );
3813
4566
  }
4567
+ const params = buildListParams3(opts);
4568
+ if (opts?.is_threat !== void 0) params.is_threat = String(opts.is_threat);
3814
4569
  const res = await managementHttpRequest({
3815
4570
  method: "GET",
3816
4571
  baseUrl: this.baseUrl,
3817
4572
  path: `${RED_TEAM_CUSTOM_ATTACKS_REPORT_PATH}/report/${jobId}/prompt-set/${promptSetId}/prompts`,
3818
- params: buildListParams4(opts),
4573
+ params,
3819
4574
  oauthClient: this.oauthClient,
3820
4575
  numRetries: this.numRetries
3821
4576
  });
@@ -3842,11 +4597,15 @@ var RedTeamCustomAttackReportsClient = class {
3842
4597
  /** List custom attacks for a scan. */
3843
4598
  async listCustomAttacks(jobId, opts) {
3844
4599
  validateJobId2(jobId);
4600
+ const params = buildListParams3(opts);
4601
+ if (opts?.threat !== void 0) params.threat = String(opts.threat);
4602
+ if (opts?.prompt_set_id !== void 0) params.prompt_set_id = opts.prompt_set_id;
4603
+ if (opts?.property_value !== void 0) params.property_value = opts.property_value;
3845
4604
  const res = await managementHttpRequest({
3846
4605
  method: "GET",
3847
4606
  baseUrl: this.baseUrl,
3848
4607
  path: `${RED_TEAM_CUSTOM_ATTACKS_REPORT_PATH}/job/${jobId}/list-custom-attacks`,
3849
- params: buildListParams4(opts),
4608
+ params,
3850
4609
  oauthClient: this.oauthClient,
3851
4610
  numRetries: this.numRetries
3852
4611
  });
@@ -3885,12 +4644,10 @@ var RedTeamCustomAttackReportsClient = class {
3885
4644
  };
3886
4645
 
3887
4646
  // src/red-team/targets-client.ts
3888
- function buildListParams5(opts) {
4647
+ function buildListParams4(opts) {
3889
4648
  const params = {};
3890
4649
  if (opts?.skip !== void 0) params.skip = String(opts.skip);
3891
4650
  if (opts?.limit !== void 0) params.limit = String(opts.limit);
3892
- if (opts?.sort_by !== void 0) params.sort_by = opts.sort_by;
3893
- if (opts?.sort_direction !== void 0) params.sort_direction = opts.sort_direction;
3894
4651
  if (opts?.search !== void 0) params.search = opts.search;
3895
4652
  return params;
3896
4653
  }
@@ -3920,10 +4677,9 @@ var RedTeamTargetsClient = class {
3920
4677
  }
3921
4678
  /** List targets with optional filters. */
3922
4679
  async list(opts) {
3923
- const params = buildListParams5(opts);
4680
+ const params = buildListParams4(opts);
3924
4681
  if (opts?.target_type !== void 0) params.target_type = opts.target_type;
3925
4682
  if (opts?.status !== void 0) params.status = opts.status;
3926
- if (opts?.active !== void 0) params.active = String(opts.active);
3927
4683
  const res = await managementHttpRequest({
3928
4684
  method: "GET",
3929
4685
  baseUrl: this.baseUrl,
@@ -4039,12 +4795,10 @@ var RedTeamTargetsClient = class {
4039
4795
  };
4040
4796
 
4041
4797
  // src/red-team/custom-attacks-client.ts
4042
- function buildListParams6(opts) {
4798
+ function buildListParams5(opts) {
4043
4799
  const params = {};
4044
4800
  if (opts?.skip !== void 0) params.skip = String(opts.skip);
4045
4801
  if (opts?.limit !== void 0) params.limit = String(opts.limit);
4046
- if (opts?.sort_by !== void 0) params.sort_by = opts.sort_by;
4047
- if (opts?.sort_direction !== void 0) params.sort_direction = opts.sort_direction;
4048
4802
  if (opts?.search !== void 0) params.search = opts.search;
4049
4803
  return params;
4050
4804
  }
@@ -4079,7 +4833,8 @@ var RedTeamCustomAttacksClient = class {
4079
4833
  }
4080
4834
  /** List custom prompt sets. */
4081
4835
  async listPromptSets(opts) {
4082
- const params = buildListParams6(opts);
4836
+ const params = buildListParams5(opts);
4837
+ if (opts?.status !== void 0) params.status = opts.status;
4083
4838
  if (opts?.active !== void 0) params.active = String(opts.active);
4084
4839
  if (opts?.archive !== void 0) params.archive = String(opts.archive);
4085
4840
  const res = await managementHttpRequest({
@@ -4222,7 +4977,7 @@ var RedTeamCustomAttacksClient = class {
4222
4977
  /** List prompts in a prompt set. */
4223
4978
  async listPrompts(promptSetUuid, opts) {
4224
4979
  validateUuid(promptSetUuid, "prompt set uuid");
4225
- const params = buildListParams6(opts);
4980
+ const params = buildListParams5(opts);
4226
4981
  if (opts?.active !== void 0) params.active = String(opts.active);
4227
4982
  const res = await managementHttpRequest({
4228
4983
  method: "GET",
@@ -4343,12 +5098,10 @@ var RedTeamCustomAttacksClient = class {
4343
5098
  };
4344
5099
 
4345
5100
  // src/red-team/client.ts
4346
- function buildListParams7(opts) {
5101
+ function buildListParams6(opts) {
4347
5102
  const params = {};
4348
5103
  if (opts?.skip !== void 0) params.skip = String(opts.skip);
4349
5104
  if (opts?.limit !== void 0) params.limit = String(opts.limit);
4350
- if (opts?.sort_by !== void 0) params.sort_by = opts.sort_by;
4351
- if (opts?.sort_direction !== void 0) params.sort_direction = opts.sort_direction;
4352
5105
  if (opts?.search !== void 0) params.search = opts.search;
4353
5106
  return params;
4354
5107
  }
@@ -4482,7 +5235,7 @@ var RedTeamClient = class {
4482
5235
  method: "GET",
4483
5236
  baseUrl: this.dataEndpoint,
4484
5237
  path: `${RED_TEAM_ERROR_LOG_PATH}/${jobId}`,
4485
- params: buildListParams7(opts),
5238
+ params: buildListParams6(opts),
4486
5239
  oauthClient: this.oauthClient,
4487
5240
  numRetries: this.numRetries
4488
5241
  });
@@ -4530,15 +5283,25 @@ var RedTeamClient = class {
4530
5283
  }
4531
5284
  };
4532
5285
  export {
5286
+ AIRS_ENDPOINTS,
4533
5287
  AISecSDKException,
4534
5288
  AI_SEC_API_ENDPOINT,
4535
5289
  AI_SEC_API_KEY,
4536
5290
  AI_SEC_API_TOKEN,
4537
5291
  ASYNC_SCAN_PATH,
4538
5292
  Action,
5293
+ AgentEntrySchema,
4539
5294
  AgentMetaSchema,
5295
+ AgentReportSchema,
4540
5296
  AiProfileSchema,
4541
5297
  ApiEndpointType,
5298
+ ApiKeyCreateRequestSchema,
5299
+ ApiKeyDPInfoSchema,
5300
+ ApiKeyDeleteResponseSchema,
5301
+ ApiKeyListResponseSchema,
5302
+ ApiKeyRegenerateRequestSchema,
5303
+ ApiKeySchema,
5304
+ ApiKeysClient,
4542
5305
  AsyncScanObjectSchema,
4543
5306
  AsyncScanResponseSchema,
4544
5307
  AttackDetailResponseSchema,
@@ -4557,11 +5320,17 @@ export {
4557
5320
  Category,
4558
5321
  CategoryModelSchema,
4559
5322
  CategoryReportSchema,
5323
+ CgReportSchema,
5324
+ ClientIdAndCustomerAppSchema,
5325
+ CmdEntrySchema,
5326
+ CmdInjectReportSchema,
4560
5327
  ComplianceReportSchema,
4561
5328
  ComplianceSubCategory,
4562
5329
  ComplianceTechniqueSchema,
4563
5330
  ConnectionParamsSchema,
4564
5331
  Content,
5332
+ ContentErrorSchema,
5333
+ ContentErrorType,
4565
5334
  CountByNameSchema,
4566
5335
  CountedQuotaEnum,
4567
5336
  CreateCustomTopicRequestSchema,
@@ -4586,6 +5355,10 @@ export {
4586
5355
  CustomPromptUpdateRequestSchema,
4587
5356
  CustomTopicListResponseSchema,
4588
5357
  CustomTopicSchema,
5358
+ CustomerAppListResponseSchema,
5359
+ CustomerAppSchema,
5360
+ CustomerAppWithKeysSchema,
5361
+ CustomerAppsClient,
4589
5362
  DEFAULT_ENDPOINT,
4590
5363
  DEFAULT_MGMT_ENDPOINT,
4591
5364
  DEFAULT_MODEL_SEC_DATA_ENDPOINT,
@@ -4598,11 +5371,21 @@ export {
4598
5371
  DashboardOverviewResponseSchema,
4599
5372
  DatabricksConnectionParamsSchema,
4600
5373
  DateRangeFilter,
5374
+ DbsEntrySchema,
5375
+ DbsReportSchema,
4601
5376
  DeleteProfileConflictSchema,
4602
5377
  DeleteProfileResponseSchema,
4603
5378
  DeleteTopicConflictSchema,
4604
5379
  DeleteTopicResponseSchema,
5380
+ DeploymentProfileEntrySchema,
5381
+ DeploymentProfilesClient,
5382
+ DeploymentProfilesResponseSchema,
5383
+ DetectionServiceName,
4605
5384
  DetectionServiceResultSchema,
5385
+ DlpDataProfileSchema2 as DlpDataProfileSchema,
5386
+ DlpPatternDetectionSchema,
5387
+ DlpProfileListResponseSchema,
5388
+ DlpProfilesClient,
4606
5389
  DlpReportSchema,
4607
5390
  DynamicJobMetadataSchema,
4608
5391
  DynamicJobReportSchema,
@@ -4612,6 +5395,7 @@ export {
4612
5395
  ErrorLogSchema,
4613
5396
  ErrorResponseSchema,
4614
5397
  ErrorSource,
5398
+ ErrorStatus,
4615
5399
  ErrorType,
4616
5400
  EvalOutcome,
4617
5401
  EvalSummarySchema,
@@ -4663,11 +5447,20 @@ export {
4663
5447
  MAX_SESSION_ID_STR_LENGTH,
4664
5448
  MAX_TOKEN_LENGTH,
4665
5449
  MAX_TRANSACTION_ID_STR_LENGTH,
5450
+ MGMT_API_KEYS_TSG_PATH,
5451
+ MGMT_API_KEY_PATH,
4666
5452
  MGMT_CLIENT_ID,
4667
5453
  MGMT_CLIENT_SECRET,
5454
+ MGMT_CUSTOMER_APPS_TSG_PATH,
5455
+ MGMT_CUSTOMER_APP_PATH,
5456
+ MGMT_DEPLOYMENT_PROFILES_PATH,
5457
+ MGMT_DLP_PROFILES_PATH,
4668
5458
  MGMT_ENDPOINT,
5459
+ MGMT_OAUTH_INVALIDATE_PATH,
5460
+ MGMT_OAUTH_TOKEN_PATH,
4669
5461
  MGMT_PROFILES_TSG_PATH,
4670
5462
  MGMT_PROFILE_PATH,
5463
+ MGMT_SCAN_LOGS_PATH,
4671
5464
  MGMT_TOKEN_ENDPOINT,
4672
5465
  MGMT_TOPICS_TSG_PATH,
4673
5466
  MGMT_TOPIC_FORCE_PATH,
@@ -4685,8 +5478,11 @@ export {
4685
5478
  MODEL_SEC_TOKEN_ENDPOINT,
4686
5479
  MODEL_SEC_TSG_ID,
4687
5480
  MODEL_SEC_VIOLATIONS_PATH,
5481
+ MalwareReportSchema,
4688
5482
  ManagementClient,
4689
5483
  MaskedDataSchema,
5484
+ McEntrySchema,
5485
+ McReportSchema,
4690
5486
  MetadataSchema,
4691
5487
  ModelScanIssueSchema,
4692
5488
  ModelScanStatus,
@@ -4705,8 +5501,13 @@ export {
4705
5501
  MultiTurnStatefulConfigSchema,
4706
5502
  MultiTurnStatelessConfigSchema,
4707
5503
  OAuthClient,
5504
+ OAuthManagementClient,
5505
+ Oauth2TokenSchema,
5506
+ OffsetSchema,
4708
5507
  OpenAIConnectionParamsSchema,
4709
5508
  PAYLOAD_HASH,
5509
+ PaginatedScanResultsSchema,
5510
+ PatternDetectionSchema,
4710
5511
  PolicySchema,
4711
5512
  PolicyType,
4712
5513
  PrerequisiteModelSchema,
@@ -4789,10 +5590,13 @@ export {
4789
5590
  ScanDetailsSchema,
4790
5591
  ScanIdResultSchema,
4791
5592
  ScanListSchema,
5593
+ ScanLogsClient,
4792
5594
  ScanOrigin,
4793
5595
  ScanRequestContentsInnerSchema,
4794
5596
  ScanRequestSchema,
4795
5597
  ScanResponseSchema,
5598
+ ScanResultEntrySchema,
5599
+ ScanResultForDashboardSchema,
4796
5600
  ScanStatisticsResponseSchema,
4797
5601
  ScanSummarySchema,
4798
5602
  Scanner,
@@ -4839,6 +5643,8 @@ export {
4839
5643
  TargetStatus,
4840
5644
  TargetType,
4841
5645
  TargetUpdateRequestSchema,
5646
+ TcReportSchema,
5647
+ TgReportSchema,
4842
5648
  ThreatCategory,
4843
5649
  ThreatScanReportSchema,
4844
5650
  ToolDetectedSchema,