@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.cjs
CHANGED
|
@@ -29,8 +29,10 @@ __export(index_exports, {
|
|
|
29
29
|
Action: () => Action,
|
|
30
30
|
AgentEntrySchema: () => AgentEntrySchema,
|
|
31
31
|
AgentMetaSchema: () => AgentMetaSchema,
|
|
32
|
+
AgentProtectionItemSchema: () => AgentProtectionItemSchema,
|
|
32
33
|
AgentReportSchema: () => AgentReportSchema,
|
|
33
34
|
AiProfileSchema: () => AiProfileSchema,
|
|
35
|
+
AiSecurityProfileSchema: () => AiSecurityProfileSchema,
|
|
34
36
|
ApiEndpointType: () => ApiEndpointType,
|
|
35
37
|
ApiKeyCreateRequestSchema: () => ApiKeyCreateRequestSchema,
|
|
36
38
|
ApiKeyDPInfoSchema: () => ApiKeyDPInfoSchema,
|
|
@@ -106,6 +108,9 @@ __export(index_exports, {
|
|
|
106
108
|
DSDetailResultSchema: () => DSDetailResultSchema,
|
|
107
109
|
DSResultMetadataSchema: () => DSResultMetadataSchema,
|
|
108
110
|
DashboardOverviewResponseSchema: () => DashboardOverviewResponseSchema,
|
|
111
|
+
DataLeakDetectionMemberSchema: () => DataLeakDetectionMemberSchema,
|
|
112
|
+
DataProtectionSchema: () => DataProtectionSchema,
|
|
113
|
+
DatabaseSecurityItemSchema: () => DatabaseSecurityItemSchema,
|
|
109
114
|
DatabricksConnectionParamsSchema: () => DatabricksConnectionParamsSchema,
|
|
110
115
|
DateRangeFilter: () => DateRangeFilter,
|
|
111
116
|
DbsEntrySchema: () => DbsEntrySchema,
|
|
@@ -119,11 +124,13 @@ __export(index_exports, {
|
|
|
119
124
|
DeploymentProfilesResponseSchema: () => DeploymentProfilesResponseSchema,
|
|
120
125
|
DetectionServiceName: () => DetectionServiceName,
|
|
121
126
|
DetectionServiceResultSchema: () => DetectionServiceResultSchema,
|
|
122
|
-
|
|
127
|
+
DlpDataProfilePolicySchema: () => DlpDataProfilePolicySchema,
|
|
128
|
+
DlpDataProfileSchema: () => DlpDataProfileSchema,
|
|
123
129
|
DlpPatternDetectionSchema: () => DlpPatternDetectionSchema,
|
|
124
130
|
DlpProfileListResponseSchema: () => DlpProfileListResponseSchema,
|
|
125
131
|
DlpProfilesClient: () => DlpProfilesClient,
|
|
126
132
|
DlpReportSchema: () => DlpReportSchema,
|
|
133
|
+
DlpRuleSchema: () => DlpRuleSchema,
|
|
127
134
|
DynamicJobMetadataSchema: () => DynamicJobMetadataSchema,
|
|
128
135
|
DynamicJobReportSchema: () => DynamicJobReportSchema,
|
|
129
136
|
DynamicJobReportStatsSchema: () => DynamicJobReportStatsSchema,
|
|
@@ -215,12 +222,15 @@ __export(index_exports, {
|
|
|
215
222
|
MODEL_SEC_TOKEN_ENDPOINT: () => MODEL_SEC_TOKEN_ENDPOINT,
|
|
216
223
|
MODEL_SEC_TSG_ID: () => MODEL_SEC_TSG_ID,
|
|
217
224
|
MODEL_SEC_VIOLATIONS_PATH: () => MODEL_SEC_VIOLATIONS_PATH,
|
|
225
|
+
MaliciousCodeProtectionSchema: () => MaliciousCodeProtectionSchema,
|
|
218
226
|
MalwareReportSchema: () => MalwareReportSchema,
|
|
219
227
|
ManagementClient: () => ManagementClient,
|
|
220
228
|
MaskedDataSchema: () => MaskedDataSchema,
|
|
221
229
|
McEntrySchema: () => McEntrySchema,
|
|
222
230
|
McReportSchema: () => McReportSchema,
|
|
223
231
|
MetadataSchema: () => MetadataSchema,
|
|
232
|
+
ModelConfigurationSchema: () => ModelConfigurationSchema,
|
|
233
|
+
ModelProtectionItemSchema: () => ModelProtectionItemSchema,
|
|
224
234
|
ModelScanIssueSchema: () => ModelScanIssueSchema,
|
|
225
235
|
ModelScanStatus: () => ModelScanStatus,
|
|
226
236
|
ModelSecurityClient: () => ModelSecurityClient,
|
|
@@ -245,6 +255,8 @@ __export(index_exports, {
|
|
|
245
255
|
PAYLOAD_HASH: () => PAYLOAD_HASH,
|
|
246
256
|
PaginatedScanResultsSchema: () => PaginatedScanResultsSchema,
|
|
247
257
|
PatternDetectionSchema: () => PatternDetectionSchema,
|
|
258
|
+
PolicyAppProtectionSchema: () => PolicyAppProtectionSchema,
|
|
259
|
+
PolicyLatencySchema: () => PolicyLatencySchema,
|
|
248
260
|
PolicySchema: () => PolicySchema,
|
|
249
261
|
PolicyType: () => PolicyType,
|
|
250
262
|
PrerequisiteModelSchema: () => PrerequisiteModelSchema,
|
|
@@ -387,8 +399,11 @@ __export(index_exports, {
|
|
|
387
399
|
ToolDetectedSchema: () => ToolDetectedSchema,
|
|
388
400
|
ToolEventMetadataSchema: () => ToolEventMetadataSchema,
|
|
389
401
|
ToolEventSchema: () => ToolEventSchema,
|
|
402
|
+
TopicArraySchema: () => TopicArraySchema,
|
|
403
|
+
TopicObjectSchema: () => TopicObjectSchema,
|
|
390
404
|
TopicsClient: () => TopicsClient,
|
|
391
405
|
USER_AGENT: () => USER_AGENT,
|
|
406
|
+
UrlCategorySchema: () => UrlCategorySchema,
|
|
392
407
|
UrlfEntrySchema: () => UrlfEntrySchema,
|
|
393
408
|
ValidationErrorSchema: () => ValidationErrorSchema,
|
|
394
409
|
Verdict: () => Verdict,
|
|
@@ -430,7 +445,7 @@ var MAX_NUMBER_OF_BATCH_SCAN_OBJECTS = 5;
|
|
|
430
445
|
var MAX_CONNECTION_POOL_SIZE = 100;
|
|
431
446
|
var MAX_NUMBER_OF_RETRIES = 5;
|
|
432
447
|
var HTTP_FORCE_RETRY_STATUS_CODES = [500, 502, 503, 504];
|
|
433
|
-
var SDK_VERSION = "0.6.
|
|
448
|
+
var SDK_VERSION = "0.6.10";
|
|
434
449
|
var USER_AGENT = `PAN-AIRS/${SDK_VERSION}-typescript-sdk`;
|
|
435
450
|
var DEFAULT_MGMT_ENDPOINT = "https://api.sase.paloaltonetworks.com/aisec";
|
|
436
451
|
var DEFAULT_TOKEN_ENDPOINT = "https://auth.apps.paloaltonetworks.com/oauth2/access_token";
|
|
@@ -1331,45 +1346,98 @@ var ErrorResponseSchema = import_zod15.z.object({
|
|
|
1331
1346
|
|
|
1332
1347
|
// src/models/mgmt-security-profile.ts
|
|
1333
1348
|
var import_zod16 = require("zod");
|
|
1334
|
-
var
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
}).passthrough();
|
|
1338
|
-
var
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
"
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
}).passthrough()
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1349
|
+
var PolicyLatencySchema = import_zod16.z.object({
|
|
1350
|
+
"inline-timeout-action": import_zod16.z.string().optional(),
|
|
1351
|
+
"max-inline-latency": import_zod16.z.number().optional()
|
|
1352
|
+
}).passthrough();
|
|
1353
|
+
var DataLeakDetectionMemberSchema = import_zod16.z.object({
|
|
1354
|
+
text: import_zod16.z.string(),
|
|
1355
|
+
id: import_zod16.z.string().optional(),
|
|
1356
|
+
version: import_zod16.z.string().optional()
|
|
1357
|
+
}).passthrough();
|
|
1358
|
+
var DatabaseSecurityItemSchema = import_zod16.z.object({
|
|
1359
|
+
name: import_zod16.z.string(),
|
|
1360
|
+
action: import_zod16.z.string()
|
|
1361
|
+
}).passthrough();
|
|
1362
|
+
var DataProtectionSchema = import_zod16.z.object({
|
|
1363
|
+
"data-leak-detection": import_zod16.z.object({
|
|
1364
|
+
member: import_zod16.z.array(DataLeakDetectionMemberSchema).nullable().optional(),
|
|
1365
|
+
action: import_zod16.z.string(),
|
|
1366
|
+
"mask-data-inline": import_zod16.z.boolean().optional()
|
|
1367
|
+
}).passthrough().optional(),
|
|
1368
|
+
"database-security": import_zod16.z.array(DatabaseSecurityItemSchema).nullable().optional()
|
|
1369
|
+
}).passthrough();
|
|
1370
|
+
var UrlCategorySchema = import_zod16.z.object({
|
|
1371
|
+
member: import_zod16.z.array(import_zod16.z.string()).nullable().optional()
|
|
1372
|
+
}).passthrough();
|
|
1373
|
+
var MaliciousCodeProtectionSchema = import_zod16.z.object({
|
|
1374
|
+
name: import_zod16.z.string(),
|
|
1375
|
+
action: import_zod16.z.string()
|
|
1376
|
+
}).passthrough();
|
|
1377
|
+
var PolicyAppProtectionSchema = import_zod16.z.object({
|
|
1378
|
+
"alert-url-category": UrlCategorySchema.optional(),
|
|
1379
|
+
"block-url-category": UrlCategorySchema.optional(),
|
|
1380
|
+
"allow-url-category": UrlCategorySchema.optional(),
|
|
1381
|
+
"default-url-category": UrlCategorySchema.optional(),
|
|
1382
|
+
"url-detected-action": import_zod16.z.string().optional(),
|
|
1383
|
+
"malicious-code-protection": MaliciousCodeProtectionSchema.optional()
|
|
1384
|
+
}).passthrough();
|
|
1385
|
+
var TopicObjectSchema = import_zod16.z.object({
|
|
1386
|
+
topic_name: import_zod16.z.string(),
|
|
1387
|
+
topic_id: import_zod16.z.string(),
|
|
1388
|
+
revision: import_zod16.z.number()
|
|
1389
|
+
}).passthrough();
|
|
1390
|
+
var TopicArraySchema = import_zod16.z.object({
|
|
1391
|
+
action: import_zod16.z.string(),
|
|
1392
|
+
topic: import_zod16.z.array(TopicObjectSchema)
|
|
1393
|
+
}).passthrough();
|
|
1394
|
+
var ModelProtectionItemSchema = import_zod16.z.object({
|
|
1395
|
+
name: import_zod16.z.string(),
|
|
1396
|
+
action: import_zod16.z.string(),
|
|
1397
|
+
"topic-list": import_zod16.z.array(TopicArraySchema).optional(),
|
|
1398
|
+
options: import_zod16.z.array(import_zod16.z.unknown()).optional()
|
|
1399
|
+
}).passthrough();
|
|
1400
|
+
var AgentProtectionItemSchema = import_zod16.z.object({
|
|
1401
|
+
name: import_zod16.z.string(),
|
|
1402
|
+
action: import_zod16.z.string()
|
|
1403
|
+
}).passthrough();
|
|
1404
|
+
var DlpRuleSchema = import_zod16.z.object({
|
|
1405
|
+
action: import_zod16.z.string().optional()
|
|
1406
|
+
}).passthrough();
|
|
1407
|
+
var DlpDataProfilePolicySchema = import_zod16.z.object({
|
|
1408
|
+
name: import_zod16.z.string(),
|
|
1409
|
+
uuid: import_zod16.z.string(),
|
|
1410
|
+
id: import_zod16.z.string().optional(),
|
|
1411
|
+
version: import_zod16.z.string().optional(),
|
|
1412
|
+
description: import_zod16.z.string().optional(),
|
|
1413
|
+
rule1: DlpRuleSchema.optional(),
|
|
1414
|
+
rule2: DlpRuleSchema.optional(),
|
|
1415
|
+
"log-severity": import_zod16.z.string().optional(),
|
|
1416
|
+
"non-file-based": import_zod16.z.string().optional(),
|
|
1417
|
+
"file-based": import_zod16.z.string().optional()
|
|
1359
1418
|
}).passthrough();
|
|
1360
1419
|
var ModelConfigurationSchema = import_zod16.z.object({
|
|
1361
|
-
|
|
1420
|
+
"mask-data-in-storage": import_zod16.z.boolean().optional(),
|
|
1421
|
+
latency: PolicyLatencySchema.optional(),
|
|
1422
|
+
"data-protection": DataProtectionSchema.optional(),
|
|
1423
|
+
"app-protection": PolicyAppProtectionSchema.optional(),
|
|
1424
|
+
"model-protection": import_zod16.z.array(ModelProtectionItemSchema).optional(),
|
|
1425
|
+
"agent-protection": import_zod16.z.array(AgentProtectionItemSchema).optional()
|
|
1426
|
+
}).passthrough();
|
|
1427
|
+
var AiSecurityProfileSchema = import_zod16.z.object({
|
|
1428
|
+
"model-type": import_zod16.z.string().optional(),
|
|
1429
|
+
"content-type": import_zod16.z.string().optional(),
|
|
1430
|
+
"model-configuration": ModelConfigurationSchema.optional()
|
|
1362
1431
|
}).passthrough();
|
|
1363
1432
|
var PolicySchema = import_zod16.z.object({
|
|
1364
|
-
"
|
|
1365
|
-
"
|
|
1366
|
-
"model-protection": ModelProtectionSchema.optional(),
|
|
1367
|
-
"agent-protection": AgentProtectionSchema.optional(),
|
|
1368
|
-
"model-configuration": ModelConfigurationSchema.optional()
|
|
1433
|
+
"ai-security-profiles": import_zod16.z.array(AiSecurityProfileSchema).optional(),
|
|
1434
|
+
"dlp-data-profiles": import_zod16.z.array(DlpDataProfilePolicySchema).optional()
|
|
1369
1435
|
}).passthrough();
|
|
1370
1436
|
var SecurityProfileSchema = import_zod16.z.object({
|
|
1371
1437
|
profile_id: import_zod16.z.string().optional(),
|
|
1372
1438
|
profile_name: import_zod16.z.string(),
|
|
1439
|
+
csp_id: import_zod16.z.string().optional(),
|
|
1440
|
+
tsg_id: import_zod16.z.string().optional(),
|
|
1373
1441
|
revision: import_zod16.z.number().optional(),
|
|
1374
1442
|
active: import_zod16.z.boolean().optional(),
|
|
1375
1443
|
policy: PolicySchema.optional(),
|
|
@@ -1380,6 +1448,8 @@ var SecurityProfileSchema = import_zod16.z.object({
|
|
|
1380
1448
|
var CreateSecurityProfileRequestSchema = import_zod16.z.object({
|
|
1381
1449
|
profile_id: import_zod16.z.string().optional(),
|
|
1382
1450
|
profile_name: import_zod16.z.string(),
|
|
1451
|
+
csp_id: import_zod16.z.string().optional(),
|
|
1452
|
+
tsg_id: import_zod16.z.string().optional(),
|
|
1383
1453
|
revision: import_zod16.z.number().optional(),
|
|
1384
1454
|
active: import_zod16.z.boolean().optional(),
|
|
1385
1455
|
policy: PolicySchema.optional(),
|
|
@@ -1555,7 +1625,7 @@ var DeploymentProfilesResponseSchema = import_zod20.z.object({
|
|
|
1555
1625
|
|
|
1556
1626
|
// src/models/mgmt-dlp-profile.ts
|
|
1557
1627
|
var import_zod21 = require("zod");
|
|
1558
|
-
var
|
|
1628
|
+
var DlpDataProfileSchema = import_zod21.z.object({
|
|
1559
1629
|
name: import_zod21.z.string(),
|
|
1560
1630
|
uuid: import_zod21.z.string(),
|
|
1561
1631
|
id: import_zod21.z.string().optional(),
|
|
@@ -1567,7 +1637,7 @@ var DlpDataProfileSchema2 = import_zod21.z.object({
|
|
|
1567
1637
|
"file-based": import_zod21.z.string().optional()
|
|
1568
1638
|
}).passthrough();
|
|
1569
1639
|
var DlpProfileListResponseSchema = import_zod21.z.object({
|
|
1570
|
-
dlp_profiles: import_zod21.z.array(
|
|
1640
|
+
dlp_profiles: import_zod21.z.array(DlpDataProfileSchema).optional()
|
|
1571
1641
|
}).passthrough();
|
|
1572
1642
|
|
|
1573
1643
|
// src/models/mgmt-scan-log.ts
|
|
@@ -5958,8 +6028,10 @@ var RedTeamClient = class {
|
|
|
5958
6028
|
Action,
|
|
5959
6029
|
AgentEntrySchema,
|
|
5960
6030
|
AgentMetaSchema,
|
|
6031
|
+
AgentProtectionItemSchema,
|
|
5961
6032
|
AgentReportSchema,
|
|
5962
6033
|
AiProfileSchema,
|
|
6034
|
+
AiSecurityProfileSchema,
|
|
5963
6035
|
ApiEndpointType,
|
|
5964
6036
|
ApiKeyCreateRequestSchema,
|
|
5965
6037
|
ApiKeyDPInfoSchema,
|
|
@@ -6035,6 +6107,9 @@ var RedTeamClient = class {
|
|
|
6035
6107
|
DSDetailResultSchema,
|
|
6036
6108
|
DSResultMetadataSchema,
|
|
6037
6109
|
DashboardOverviewResponseSchema,
|
|
6110
|
+
DataLeakDetectionMemberSchema,
|
|
6111
|
+
DataProtectionSchema,
|
|
6112
|
+
DatabaseSecurityItemSchema,
|
|
6038
6113
|
DatabricksConnectionParamsSchema,
|
|
6039
6114
|
DateRangeFilter,
|
|
6040
6115
|
DbsEntrySchema,
|
|
@@ -6048,11 +6123,13 @@ var RedTeamClient = class {
|
|
|
6048
6123
|
DeploymentProfilesResponseSchema,
|
|
6049
6124
|
DetectionServiceName,
|
|
6050
6125
|
DetectionServiceResultSchema,
|
|
6126
|
+
DlpDataProfilePolicySchema,
|
|
6051
6127
|
DlpDataProfileSchema,
|
|
6052
6128
|
DlpPatternDetectionSchema,
|
|
6053
6129
|
DlpProfileListResponseSchema,
|
|
6054
6130
|
DlpProfilesClient,
|
|
6055
6131
|
DlpReportSchema,
|
|
6132
|
+
DlpRuleSchema,
|
|
6056
6133
|
DynamicJobMetadataSchema,
|
|
6057
6134
|
DynamicJobReportSchema,
|
|
6058
6135
|
DynamicJobReportStatsSchema,
|
|
@@ -6144,12 +6221,15 @@ var RedTeamClient = class {
|
|
|
6144
6221
|
MODEL_SEC_TOKEN_ENDPOINT,
|
|
6145
6222
|
MODEL_SEC_TSG_ID,
|
|
6146
6223
|
MODEL_SEC_VIOLATIONS_PATH,
|
|
6224
|
+
MaliciousCodeProtectionSchema,
|
|
6147
6225
|
MalwareReportSchema,
|
|
6148
6226
|
ManagementClient,
|
|
6149
6227
|
MaskedDataSchema,
|
|
6150
6228
|
McEntrySchema,
|
|
6151
6229
|
McReportSchema,
|
|
6152
6230
|
MetadataSchema,
|
|
6231
|
+
ModelConfigurationSchema,
|
|
6232
|
+
ModelProtectionItemSchema,
|
|
6153
6233
|
ModelScanIssueSchema,
|
|
6154
6234
|
ModelScanStatus,
|
|
6155
6235
|
ModelSecurityClient,
|
|
@@ -6174,6 +6254,8 @@ var RedTeamClient = class {
|
|
|
6174
6254
|
PAYLOAD_HASH,
|
|
6175
6255
|
PaginatedScanResultsSchema,
|
|
6176
6256
|
PatternDetectionSchema,
|
|
6257
|
+
PolicyAppProtectionSchema,
|
|
6258
|
+
PolicyLatencySchema,
|
|
6177
6259
|
PolicySchema,
|
|
6178
6260
|
PolicyType,
|
|
6179
6261
|
PrerequisiteModelSchema,
|
|
@@ -6316,8 +6398,11 @@ var RedTeamClient = class {
|
|
|
6316
6398
|
ToolDetectedSchema,
|
|
6317
6399
|
ToolEventMetadataSchema,
|
|
6318
6400
|
ToolEventSchema,
|
|
6401
|
+
TopicArraySchema,
|
|
6402
|
+
TopicObjectSchema,
|
|
6319
6403
|
TopicsClient,
|
|
6320
6404
|
USER_AGENT,
|
|
6405
|
+
UrlCategorySchema,
|
|
6321
6406
|
UrlfEntrySchema,
|
|
6322
6407
|
ValidationErrorSchema,
|
|
6323
6408
|
Verdict,
|