@cdot65/prisma-airs-sdk 0.6.8 → 0.6.10
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.cjs +120 -35
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +18317 -7444
- package/dist/index.d.ts +18317 -7444
- package/dist/index.js +105 -35
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
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.
|
|
32
|
+
var SDK_VERSION = "0.6.10";
|
|
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,45 +930,98 @@ var ErrorResponseSchema = z15.object({
|
|
|
930
930
|
|
|
931
931
|
// src/models/mgmt-security-profile.ts
|
|
932
932
|
import { z as z16 } from "zod";
|
|
933
|
-
var
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
}).passthrough();
|
|
937
|
-
var
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
"
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
}).passthrough()
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
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
|
+
options: z16.array(z16.unknown()).optional()
|
|
983
|
+
}).passthrough();
|
|
984
|
+
var AgentProtectionItemSchema = z16.object({
|
|
985
|
+
name: z16.string(),
|
|
986
|
+
action: z16.string()
|
|
987
|
+
}).passthrough();
|
|
988
|
+
var DlpRuleSchema = z16.object({
|
|
989
|
+
action: z16.string().optional()
|
|
990
|
+
}).passthrough();
|
|
991
|
+
var DlpDataProfilePolicySchema = z16.object({
|
|
992
|
+
name: z16.string(),
|
|
993
|
+
uuid: z16.string(),
|
|
994
|
+
id: z16.string().optional(),
|
|
995
|
+
version: z16.string().optional(),
|
|
996
|
+
description: z16.string().optional(),
|
|
997
|
+
rule1: DlpRuleSchema.optional(),
|
|
998
|
+
rule2: DlpRuleSchema.optional(),
|
|
999
|
+
"log-severity": z16.string().optional(),
|
|
1000
|
+
"non-file-based": z16.string().optional(),
|
|
1001
|
+
"file-based": z16.string().optional()
|
|
958
1002
|
}).passthrough();
|
|
959
1003
|
var ModelConfigurationSchema = z16.object({
|
|
960
|
-
|
|
1004
|
+
"mask-data-in-storage": z16.boolean().optional(),
|
|
1005
|
+
latency: PolicyLatencySchema.optional(),
|
|
1006
|
+
"data-protection": DataProtectionSchema.optional(),
|
|
1007
|
+
"app-protection": PolicyAppProtectionSchema.optional(),
|
|
1008
|
+
"model-protection": z16.array(ModelProtectionItemSchema).optional(),
|
|
1009
|
+
"agent-protection": z16.array(AgentProtectionItemSchema).optional()
|
|
1010
|
+
}).passthrough();
|
|
1011
|
+
var AiSecurityProfileSchema = z16.object({
|
|
1012
|
+
"model-type": z16.string().optional(),
|
|
1013
|
+
"content-type": z16.string().optional(),
|
|
1014
|
+
"model-configuration": ModelConfigurationSchema.optional()
|
|
961
1015
|
}).passthrough();
|
|
962
1016
|
var PolicySchema = z16.object({
|
|
963
|
-
"
|
|
964
|
-
"
|
|
965
|
-
"model-protection": ModelProtectionSchema.optional(),
|
|
966
|
-
"agent-protection": AgentProtectionSchema.optional(),
|
|
967
|
-
"model-configuration": ModelConfigurationSchema.optional()
|
|
1017
|
+
"ai-security-profiles": z16.array(AiSecurityProfileSchema).optional(),
|
|
1018
|
+
"dlp-data-profiles": z16.array(DlpDataProfilePolicySchema).optional()
|
|
968
1019
|
}).passthrough();
|
|
969
1020
|
var SecurityProfileSchema = z16.object({
|
|
970
1021
|
profile_id: z16.string().optional(),
|
|
971
1022
|
profile_name: z16.string(),
|
|
1023
|
+
csp_id: z16.string().optional(),
|
|
1024
|
+
tsg_id: z16.string().optional(),
|
|
972
1025
|
revision: z16.number().optional(),
|
|
973
1026
|
active: z16.boolean().optional(),
|
|
974
1027
|
policy: PolicySchema.optional(),
|
|
@@ -979,6 +1032,8 @@ var SecurityProfileSchema = z16.object({
|
|
|
979
1032
|
var CreateSecurityProfileRequestSchema = z16.object({
|
|
980
1033
|
profile_id: z16.string().optional(),
|
|
981
1034
|
profile_name: z16.string(),
|
|
1035
|
+
csp_id: z16.string().optional(),
|
|
1036
|
+
tsg_id: z16.string().optional(),
|
|
982
1037
|
revision: z16.number().optional(),
|
|
983
1038
|
active: z16.boolean().optional(),
|
|
984
1039
|
policy: PolicySchema.optional(),
|
|
@@ -1154,7 +1209,7 @@ var DeploymentProfilesResponseSchema = z20.object({
|
|
|
1154
1209
|
|
|
1155
1210
|
// src/models/mgmt-dlp-profile.ts
|
|
1156
1211
|
import { z as z21 } from "zod";
|
|
1157
|
-
var
|
|
1212
|
+
var DlpDataProfileSchema = z21.object({
|
|
1158
1213
|
name: z21.string(),
|
|
1159
1214
|
uuid: z21.string(),
|
|
1160
1215
|
id: z21.string().optional(),
|
|
@@ -1166,7 +1221,7 @@ var DlpDataProfileSchema2 = z21.object({
|
|
|
1166
1221
|
"file-based": z21.string().optional()
|
|
1167
1222
|
}).passthrough();
|
|
1168
1223
|
var DlpProfileListResponseSchema = z21.object({
|
|
1169
|
-
dlp_profiles: z21.array(
|
|
1224
|
+
dlp_profiles: z21.array(DlpDataProfileSchema).optional()
|
|
1170
1225
|
}).passthrough();
|
|
1171
1226
|
|
|
1172
1227
|
// src/models/mgmt-scan-log.ts
|
|
@@ -5556,8 +5611,10 @@ export {
|
|
|
5556
5611
|
Action,
|
|
5557
5612
|
AgentEntrySchema,
|
|
5558
5613
|
AgentMetaSchema,
|
|
5614
|
+
AgentProtectionItemSchema,
|
|
5559
5615
|
AgentReportSchema,
|
|
5560
5616
|
AiProfileSchema,
|
|
5617
|
+
AiSecurityProfileSchema,
|
|
5561
5618
|
ApiEndpointType,
|
|
5562
5619
|
ApiKeyCreateRequestSchema,
|
|
5563
5620
|
ApiKeyDPInfoSchema,
|
|
@@ -5633,6 +5690,9 @@ export {
|
|
|
5633
5690
|
DSDetailResultSchema,
|
|
5634
5691
|
DSResultMetadataSchema,
|
|
5635
5692
|
DashboardOverviewResponseSchema,
|
|
5693
|
+
DataLeakDetectionMemberSchema,
|
|
5694
|
+
DataProtectionSchema,
|
|
5695
|
+
DatabaseSecurityItemSchema,
|
|
5636
5696
|
DatabricksConnectionParamsSchema,
|
|
5637
5697
|
DateRangeFilter,
|
|
5638
5698
|
DbsEntrySchema,
|
|
@@ -5646,11 +5706,13 @@ export {
|
|
|
5646
5706
|
DeploymentProfilesResponseSchema,
|
|
5647
5707
|
DetectionServiceName,
|
|
5648
5708
|
DetectionServiceResultSchema,
|
|
5649
|
-
|
|
5709
|
+
DlpDataProfilePolicySchema,
|
|
5710
|
+
DlpDataProfileSchema,
|
|
5650
5711
|
DlpPatternDetectionSchema,
|
|
5651
5712
|
DlpProfileListResponseSchema,
|
|
5652
5713
|
DlpProfilesClient,
|
|
5653
5714
|
DlpReportSchema,
|
|
5715
|
+
DlpRuleSchema,
|
|
5654
5716
|
DynamicJobMetadataSchema,
|
|
5655
5717
|
DynamicJobReportSchema,
|
|
5656
5718
|
DynamicJobReportStatsSchema,
|
|
@@ -5742,12 +5804,15 @@ export {
|
|
|
5742
5804
|
MODEL_SEC_TOKEN_ENDPOINT,
|
|
5743
5805
|
MODEL_SEC_TSG_ID,
|
|
5744
5806
|
MODEL_SEC_VIOLATIONS_PATH,
|
|
5807
|
+
MaliciousCodeProtectionSchema,
|
|
5745
5808
|
MalwareReportSchema,
|
|
5746
5809
|
ManagementClient,
|
|
5747
5810
|
MaskedDataSchema,
|
|
5748
5811
|
McEntrySchema,
|
|
5749
5812
|
McReportSchema,
|
|
5750
5813
|
MetadataSchema,
|
|
5814
|
+
ModelConfigurationSchema,
|
|
5815
|
+
ModelProtectionItemSchema,
|
|
5751
5816
|
ModelScanIssueSchema,
|
|
5752
5817
|
ModelScanStatus,
|
|
5753
5818
|
ModelSecurityClient,
|
|
@@ -5772,6 +5837,8 @@ export {
|
|
|
5772
5837
|
PAYLOAD_HASH,
|
|
5773
5838
|
PaginatedScanResultsSchema,
|
|
5774
5839
|
PatternDetectionSchema,
|
|
5840
|
+
PolicyAppProtectionSchema,
|
|
5841
|
+
PolicyLatencySchema,
|
|
5775
5842
|
PolicySchema,
|
|
5776
5843
|
PolicyType,
|
|
5777
5844
|
PrerequisiteModelSchema,
|
|
@@ -5914,8 +5981,11 @@ export {
|
|
|
5914
5981
|
ToolDetectedSchema,
|
|
5915
5982
|
ToolEventMetadataSchema,
|
|
5916
5983
|
ToolEventSchema,
|
|
5984
|
+
TopicArraySchema,
|
|
5985
|
+
TopicObjectSchema,
|
|
5917
5986
|
TopicsClient,
|
|
5918
5987
|
USER_AGENT,
|
|
5988
|
+
UrlCategorySchema,
|
|
5919
5989
|
UrlfEntrySchema,
|
|
5920
5990
|
ValidationErrorSchema,
|
|
5921
5991
|
Verdict,
|