@cdot65/prisma-airs-sdk 0.6.8 → 0.6.9

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
@@ -29,7 +29,7 @@ var MAX_NUMBER_OF_BATCH_SCAN_OBJECTS = 5;
29
29
  var MAX_CONNECTION_POOL_SIZE = 100;
30
30
  var MAX_NUMBER_OF_RETRIES = 5;
31
31
  var HTTP_FORCE_RETRY_STATUS_CODES = [500, 502, 503, 504];
32
- var SDK_VERSION = "0.6.8";
32
+ var SDK_VERSION = "0.6.9";
33
33
  var USER_AGENT = `PAN-AIRS/${SDK_VERSION}-typescript-sdk`;
34
34
  var DEFAULT_MGMT_ENDPOINT = "https://api.sase.paloaltonetworks.com/aisec";
35
35
  var DEFAULT_TOKEN_ENDPOINT = "https://auth.apps.paloaltonetworks.com/oauth2/access_token";
@@ -930,41 +930,90 @@ var ErrorResponseSchema = z15.object({
930
930
 
931
931
  // src/models/mgmt-security-profile.ts
932
932
  import { z as z16 } from "zod";
933
- var DlpDataProfileSchema = z16.object({
934
- profile_name: z16.string(),
935
- active: z16.boolean().optional()
936
- }).passthrough();
937
- var DlpSchema = z16.object({
938
- dlp_status: z16.string().optional(),
939
- data_profiles: z16.array(DlpDataProfileSchema).optional()
940
- }).passthrough();
941
- var DataLeakDetectionSchema = z16.object({
942
- "data-leak-detection-status": z16.string().optional(),
943
- dlp: DlpSchema.optional()
944
- }).passthrough();
945
- var AppProtectionSchema = z16.object({
946
- "prompt-injection": z16.string().optional(),
947
- "jailbreak-detection": z16.string().optional()
948
- }).passthrough();
949
- var ModelProtectionSchema = z16.object({
950
- "model-denial-of-service": z16.string().optional()
951
- }).passthrough();
952
- var AgentProtectionSchema = z16.object({
953
- "malicious-agent-activity": z16.string().optional()
954
- }).passthrough();
955
- var LatencySchema = z16.object({
956
- status: z16.string().optional(),
957
- max_latency_ms: z16.number().optional()
933
+ var PolicyLatencySchema = z16.object({
934
+ "inline-timeout-action": z16.string().optional(),
935
+ "max-inline-latency": z16.number().optional()
936
+ }).passthrough();
937
+ var DataLeakDetectionMemberSchema = z16.object({
938
+ text: z16.string(),
939
+ id: z16.string().optional(),
940
+ version: z16.string().optional()
941
+ }).passthrough();
942
+ var DatabaseSecurityItemSchema = z16.object({
943
+ name: z16.string(),
944
+ action: z16.string()
945
+ }).passthrough();
946
+ var DataProtectionSchema = z16.object({
947
+ "data-leak-detection": z16.object({
948
+ member: z16.array(DataLeakDetectionMemberSchema).nullable().optional(),
949
+ action: z16.string(),
950
+ "mask-data-inline": z16.boolean().optional()
951
+ }).passthrough().optional(),
952
+ "database-security": z16.array(DatabaseSecurityItemSchema).nullable().optional()
953
+ }).passthrough();
954
+ var UrlCategorySchema = z16.object({
955
+ member: z16.array(z16.string()).nullable().optional()
956
+ }).passthrough();
957
+ var MaliciousCodeProtectionSchema = z16.object({
958
+ name: z16.string(),
959
+ action: z16.string()
960
+ }).passthrough();
961
+ var PolicyAppProtectionSchema = z16.object({
962
+ "alert-url-category": UrlCategorySchema.optional(),
963
+ "block-url-category": UrlCategorySchema.optional(),
964
+ "allow-url-category": UrlCategorySchema.optional(),
965
+ "default-url-category": UrlCategorySchema.optional(),
966
+ "url-detected-action": z16.string().optional(),
967
+ "malicious-code-protection": MaliciousCodeProtectionSchema.optional()
968
+ }).passthrough();
969
+ var TopicObjectSchema = z16.object({
970
+ topic_name: z16.string(),
971
+ topic_id: z16.string(),
972
+ revision: z16.number()
973
+ }).passthrough();
974
+ var TopicArraySchema = z16.object({
975
+ action: z16.string(),
976
+ topic: z16.array(TopicObjectSchema)
977
+ }).passthrough();
978
+ var ModelProtectionItemSchema = z16.object({
979
+ name: z16.string(),
980
+ action: z16.string(),
981
+ "topic-list": z16.array(TopicArraySchema).optional()
982
+ }).passthrough();
983
+ var AgentProtectionItemSchema = z16.object({
984
+ name: z16.string(),
985
+ action: z16.string()
986
+ }).passthrough();
987
+ var DlpRuleSchema = z16.object({
988
+ action: z16.string().optional()
989
+ }).passthrough();
990
+ var DlpDataProfilePolicySchema = z16.object({
991
+ name: z16.string(),
992
+ uuid: z16.string(),
993
+ id: z16.string().optional(),
994
+ version: z16.string().optional(),
995
+ rule1: DlpRuleSchema.optional(),
996
+ rule2: DlpRuleSchema.optional(),
997
+ "log-severity": z16.string().optional(),
998
+ "non-file-based": z16.string().optional(),
999
+ "file-based": z16.string().optional()
958
1000
  }).passthrough();
959
1001
  var ModelConfigurationSchema = z16.object({
960
- latency: LatencySchema.optional()
1002
+ "mask-data-in-storage": z16.boolean().optional(),
1003
+ latency: PolicyLatencySchema.optional(),
1004
+ "data-protection": DataProtectionSchema.optional(),
1005
+ "app-protection": PolicyAppProtectionSchema.optional(),
1006
+ "model-protection": z16.array(ModelProtectionItemSchema).optional(),
1007
+ "agent-protection": z16.array(AgentProtectionItemSchema).optional()
1008
+ }).passthrough();
1009
+ var AiSecurityProfileSchema = z16.object({
1010
+ "model-type": z16.string().optional(),
1011
+ "content-type": z16.string().optional(),
1012
+ "model-configuration": ModelConfigurationSchema.optional()
961
1013
  }).passthrough();
962
1014
  var PolicySchema = z16.object({
963
- "data-leak-detection": DataLeakDetectionSchema.optional(),
964
- "app-protection": AppProtectionSchema.optional(),
965
- "model-protection": ModelProtectionSchema.optional(),
966
- "agent-protection": AgentProtectionSchema.optional(),
967
- "model-configuration": ModelConfigurationSchema.optional()
1015
+ "ai-security-profiles": z16.array(AiSecurityProfileSchema).optional(),
1016
+ "dlp-data-profiles": z16.array(DlpDataProfilePolicySchema).optional()
968
1017
  }).passthrough();
969
1018
  var SecurityProfileSchema = z16.object({
970
1019
  profile_id: z16.string().optional(),
@@ -1154,7 +1203,7 @@ var DeploymentProfilesResponseSchema = z20.object({
1154
1203
 
1155
1204
  // src/models/mgmt-dlp-profile.ts
1156
1205
  import { z as z21 } from "zod";
1157
- var DlpDataProfileSchema2 = z21.object({
1206
+ var DlpDataProfileSchema = z21.object({
1158
1207
  name: z21.string(),
1159
1208
  uuid: z21.string(),
1160
1209
  id: z21.string().optional(),
@@ -1166,7 +1215,7 @@ var DlpDataProfileSchema2 = z21.object({
1166
1215
  "file-based": z21.string().optional()
1167
1216
  }).passthrough();
1168
1217
  var DlpProfileListResponseSchema = z21.object({
1169
- dlp_profiles: z21.array(DlpDataProfileSchema2).optional()
1218
+ dlp_profiles: z21.array(DlpDataProfileSchema).optional()
1170
1219
  }).passthrough();
1171
1220
 
1172
1221
  // src/models/mgmt-scan-log.ts
@@ -5556,8 +5605,10 @@ export {
5556
5605
  Action,
5557
5606
  AgentEntrySchema,
5558
5607
  AgentMetaSchema,
5608
+ AgentProtectionItemSchema,
5559
5609
  AgentReportSchema,
5560
5610
  AiProfileSchema,
5611
+ AiSecurityProfileSchema,
5561
5612
  ApiEndpointType,
5562
5613
  ApiKeyCreateRequestSchema,
5563
5614
  ApiKeyDPInfoSchema,
@@ -5633,6 +5684,9 @@ export {
5633
5684
  DSDetailResultSchema,
5634
5685
  DSResultMetadataSchema,
5635
5686
  DashboardOverviewResponseSchema,
5687
+ DataLeakDetectionMemberSchema,
5688
+ DataProtectionSchema,
5689
+ DatabaseSecurityItemSchema,
5636
5690
  DatabricksConnectionParamsSchema,
5637
5691
  DateRangeFilter,
5638
5692
  DbsEntrySchema,
@@ -5646,11 +5700,13 @@ export {
5646
5700
  DeploymentProfilesResponseSchema,
5647
5701
  DetectionServiceName,
5648
5702
  DetectionServiceResultSchema,
5649
- DlpDataProfileSchema2 as DlpDataProfileSchema,
5703
+ DlpDataProfilePolicySchema,
5704
+ DlpDataProfileSchema,
5650
5705
  DlpPatternDetectionSchema,
5651
5706
  DlpProfileListResponseSchema,
5652
5707
  DlpProfilesClient,
5653
5708
  DlpReportSchema,
5709
+ DlpRuleSchema,
5654
5710
  DynamicJobMetadataSchema,
5655
5711
  DynamicJobReportSchema,
5656
5712
  DynamicJobReportStatsSchema,
@@ -5742,12 +5798,15 @@ export {
5742
5798
  MODEL_SEC_TOKEN_ENDPOINT,
5743
5799
  MODEL_SEC_TSG_ID,
5744
5800
  MODEL_SEC_VIOLATIONS_PATH,
5801
+ MaliciousCodeProtectionSchema,
5745
5802
  MalwareReportSchema,
5746
5803
  ManagementClient,
5747
5804
  MaskedDataSchema,
5748
5805
  McEntrySchema,
5749
5806
  McReportSchema,
5750
5807
  MetadataSchema,
5808
+ ModelConfigurationSchema,
5809
+ ModelProtectionItemSchema,
5751
5810
  ModelScanIssueSchema,
5752
5811
  ModelScanStatus,
5753
5812
  ModelSecurityClient,
@@ -5772,6 +5831,8 @@ export {
5772
5831
  PAYLOAD_HASH,
5773
5832
  PaginatedScanResultsSchema,
5774
5833
  PatternDetectionSchema,
5834
+ PolicyAppProtectionSchema,
5835
+ PolicyLatencySchema,
5775
5836
  PolicySchema,
5776
5837
  PolicyType,
5777
5838
  PrerequisiteModelSchema,
@@ -5914,8 +5975,11 @@ export {
5914
5975
  ToolDetectedSchema,
5915
5976
  ToolEventMetadataSchema,
5916
5977
  ToolEventSchema,
5978
+ TopicArraySchema,
5979
+ TopicObjectSchema,
5917
5980
  TopicsClient,
5918
5981
  USER_AGENT,
5982
+ UrlCategorySchema,
5919
5983
  UrlfEntrySchema,
5920
5984
  ValidationErrorSchema,
5921
5985
  Verdict,