@cdot65/prisma-airs-sdk 0.9.0 → 0.9.1
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 +76 -76
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2704 -2678
- package/dist/index.d.ts +2704 -2678
- package/dist/index.js +76 -76
- 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.9.
|
|
32
|
+
var SDK_VERSION = "0.9.1";
|
|
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";
|
|
@@ -633,13 +633,13 @@ import { z as z13 } from "zod";
|
|
|
633
633
|
// src/models/dlp-report.ts
|
|
634
634
|
import { z as z11 } from "zod";
|
|
635
635
|
var DlpReportSchema = z11.object({
|
|
636
|
-
dlp_report_id: z11.string().
|
|
637
|
-
dlp_profile_name: z11.string().
|
|
638
|
-
dlp_profile_id: z11.string().
|
|
639
|
-
dlp_profile_version: z11.number().
|
|
640
|
-
data_pattern_rule1_verdict: z11.string().
|
|
641
|
-
data_pattern_rule2_verdict: z11.string().
|
|
642
|
-
data_pattern_detection_offsets: z11.array(DlpPatternDetectionSchema).
|
|
636
|
+
dlp_report_id: z11.string().nullish(),
|
|
637
|
+
dlp_profile_name: z11.string().nullish(),
|
|
638
|
+
dlp_profile_id: z11.string().nullish(),
|
|
639
|
+
dlp_profile_version: z11.number().nullish(),
|
|
640
|
+
data_pattern_rule1_verdict: z11.string().nullish(),
|
|
641
|
+
data_pattern_rule2_verdict: z11.string().nullish(),
|
|
642
|
+
data_pattern_detection_offsets: z11.array(DlpPatternDetectionSchema).nullish()
|
|
643
643
|
}).passthrough();
|
|
644
644
|
|
|
645
645
|
// src/models/urlf-report.ts
|
|
@@ -1436,10 +1436,10 @@ var Oauth2TokenSchema = z24.object({
|
|
|
1436
1436
|
// src/models/dlp-audit.ts
|
|
1437
1437
|
import { z as z25 } from "zod";
|
|
1438
1438
|
var AuditResponseSchema = z25.object({
|
|
1439
|
-
created_at: z25.string().
|
|
1440
|
-
created_by: z25.string().
|
|
1441
|
-
updated_at: z25.string().
|
|
1442
|
-
updated_by: z25.string().
|
|
1439
|
+
created_at: z25.union([z25.string(), z25.number()]).nullish(),
|
|
1440
|
+
created_by: z25.string().nullish(),
|
|
1441
|
+
updated_at: z25.union([z25.string(), z25.number()]).nullish(),
|
|
1442
|
+
updated_by: z25.string().nullish()
|
|
1443
1443
|
}).passthrough();
|
|
1444
1444
|
|
|
1445
1445
|
// src/models/dlp-page.ts
|
|
@@ -1548,22 +1548,22 @@ var DictionaryPatchRequestSchema = z27.object({
|
|
|
1548
1548
|
region_name: jsonNullable(z27.string())
|
|
1549
1549
|
}).passthrough();
|
|
1550
1550
|
var DictionaryResponseSchema = z27.object({
|
|
1551
|
-
id: z27.string().
|
|
1552
|
-
name: z27.string().
|
|
1553
|
-
description: z27.string().
|
|
1554
|
-
category: z27.string().
|
|
1555
|
-
region_name: z27.string().
|
|
1556
|
-
type: DictionaryTypeSchema.
|
|
1557
|
-
is_case_sensitive: z27.boolean().
|
|
1558
|
-
is_parent_managed: z27.boolean().
|
|
1559
|
-
detection_technique: DictionaryDetectionTechniqueSchema.
|
|
1560
|
-
detection_sub_technique: DictionaryDetectionSubTechniqueSchema.
|
|
1561
|
-
dictionary_metadata: DictionaryMetaDataDTOSchema.
|
|
1551
|
+
id: z27.string().nullish(),
|
|
1552
|
+
name: z27.string().nullish(),
|
|
1553
|
+
description: z27.string().nullish(),
|
|
1554
|
+
category: z27.string().nullish(),
|
|
1555
|
+
region_name: z27.string().nullish(),
|
|
1556
|
+
type: DictionaryTypeSchema.nullish(),
|
|
1557
|
+
is_case_sensitive: z27.boolean().nullish(),
|
|
1558
|
+
is_parent_managed: z27.boolean().nullish(),
|
|
1559
|
+
detection_technique: DictionaryDetectionTechniqueSchema.nullish(),
|
|
1560
|
+
detection_sub_technique: DictionaryDetectionSubTechniqueSchema.nullish(),
|
|
1561
|
+
dictionary_metadata: DictionaryMetaDataDTOSchema.nullish(),
|
|
1562
1562
|
/** Keyword list — populated only when `keywords=true` is passed as a query parameter. */
|
|
1563
|
-
keywords: z27.array(z27.string()).
|
|
1564
|
-
tags: DictionaryTagsSchema.
|
|
1565
|
-
attributes: z27.array(ResourceModelExtensionSchema).
|
|
1566
|
-
audit_metadata: AuditResponseSchema.
|
|
1563
|
+
keywords: z27.array(z27.string()).nullish(),
|
|
1564
|
+
tags: DictionaryTagsSchema.nullish(),
|
|
1565
|
+
attributes: z27.array(ResourceModelExtensionSchema).nullish(),
|
|
1566
|
+
audit_metadata: AuditResponseSchema.nullish()
|
|
1567
1567
|
}).passthrough();
|
|
1568
1568
|
var PageDictionaryResponseSchema = pageSchema(DictionaryResponseSchema);
|
|
1569
1569
|
|
|
@@ -1645,19 +1645,19 @@ var DataPatternPatchRequestSchema = z28.object({
|
|
|
1645
1645
|
tags: jsonNullable(DataPatternTagsSchema)
|
|
1646
1646
|
}).passthrough();
|
|
1647
1647
|
var DataPatternResponseSchema = z28.object({
|
|
1648
|
-
id: z28.string().
|
|
1649
|
-
name: z28.string().
|
|
1650
|
-
description: z28.string().
|
|
1651
|
-
tenant_id: z28.string().
|
|
1652
|
-
type: DataPatternTypeSchema.
|
|
1653
|
-
status: DataPatternStatusSchema.
|
|
1654
|
-
license_type: DataPatternLicenseTypeSchema.
|
|
1655
|
-
is_parent_managed: z28.boolean().
|
|
1656
|
-
version: z28.number().
|
|
1657
|
-
detection_config: DataPatternDetectionConfigSchema.
|
|
1658
|
-
matching_rules: DataPatternMatchingRulesSchema.
|
|
1659
|
-
tags: DataPatternTagsSchema.
|
|
1660
|
-
audit_metadata: AuditResponseSchema.
|
|
1648
|
+
id: z28.string().nullish(),
|
|
1649
|
+
name: z28.string().nullish(),
|
|
1650
|
+
description: z28.string().nullish(),
|
|
1651
|
+
tenant_id: z28.string().nullish(),
|
|
1652
|
+
type: DataPatternTypeSchema.nullish(),
|
|
1653
|
+
status: DataPatternStatusSchema.nullish(),
|
|
1654
|
+
license_type: DataPatternLicenseTypeSchema.nullish(),
|
|
1655
|
+
is_parent_managed: z28.boolean().nullish(),
|
|
1656
|
+
version: z28.number().nullish(),
|
|
1657
|
+
detection_config: DataPatternDetectionConfigSchema.nullish(),
|
|
1658
|
+
matching_rules: DataPatternMatchingRulesSchema.nullish(),
|
|
1659
|
+
tags: DataPatternTagsSchema.nullish(),
|
|
1660
|
+
audit_metadata: AuditResponseSchema.nullish()
|
|
1661
1661
|
}).passthrough();
|
|
1662
1662
|
var PageDataPatternResponseSchema = pageSchema(DataPatternResponseSchema);
|
|
1663
1663
|
|
|
@@ -1754,19 +1754,19 @@ var DataProfilePatchRequestSchema = z29.object({
|
|
|
1754
1754
|
detection_rules: jsonNullable(z29.array(DetectionRuleSchema))
|
|
1755
1755
|
}).passthrough();
|
|
1756
1756
|
var DataProfileResponseSchema = z29.object({
|
|
1757
|
-
id: z29.string().
|
|
1758
|
-
name: z29.string().
|
|
1759
|
-
description: z29.string().
|
|
1760
|
-
tenant_id: z29.string().
|
|
1761
|
-
type: DataProfileSubtypeSchema.
|
|
1762
|
-
profile_status: DataProfileStatusSchema.
|
|
1763
|
-
profile_type: DataProfileTypeSchema.
|
|
1764
|
-
is_granular_data_profile: z29.boolean().
|
|
1765
|
-
is_parent_managed: z29.boolean().
|
|
1766
|
-
version: z29.number().int().
|
|
1767
|
-
advance_data_patterns_rule_request: z29.array(z29.string()).
|
|
1768
|
-
detection_rules: z29.array(DetectionRuleSchema).
|
|
1769
|
-
audit_metadata: AuditResponseSchema.
|
|
1757
|
+
id: z29.string().nullish(),
|
|
1758
|
+
name: z29.string().nullish(),
|
|
1759
|
+
description: z29.string().nullish(),
|
|
1760
|
+
tenant_id: z29.string().nullish(),
|
|
1761
|
+
type: DataProfileSubtypeSchema.nullish(),
|
|
1762
|
+
profile_status: DataProfileStatusSchema.nullish(),
|
|
1763
|
+
profile_type: DataProfileTypeSchema.nullish(),
|
|
1764
|
+
is_granular_data_profile: z29.boolean().nullish(),
|
|
1765
|
+
is_parent_managed: z29.boolean().nullish(),
|
|
1766
|
+
version: z29.number().int().nullish(),
|
|
1767
|
+
advance_data_patterns_rule_request: z29.array(z29.string()).nullish(),
|
|
1768
|
+
detection_rules: z29.array(DetectionRuleSchema).nullish(),
|
|
1769
|
+
audit_metadata: AuditResponseSchema.nullish()
|
|
1770
1770
|
}).passthrough();
|
|
1771
1771
|
var PageDataProfileResponseSchema = pageSchema(DataProfileResponseSchema);
|
|
1772
1772
|
|
|
@@ -1853,29 +1853,29 @@ var DataFilteringProfileRequestSchema = z30.object({
|
|
|
1853
1853
|
rule2: DataFilteringRuleDTOSchema.optional()
|
|
1854
1854
|
}).passthrough();
|
|
1855
1855
|
var DataFilteringProfileResponseSchema = z30.object({
|
|
1856
|
-
id: z30.string().
|
|
1857
|
-
name: z30.string().
|
|
1858
|
-
description: z30.string().
|
|
1859
|
-
tenant_id: z30.string().
|
|
1860
|
-
type: z30.string().
|
|
1861
|
-
data_profile_id: z30.number().
|
|
1862
|
-
direction: z30.string().
|
|
1863
|
-
file_based: z30.boolean().
|
|
1864
|
-
non_file_based: z30.boolean().
|
|
1865
|
-
log_severity: z30.string().
|
|
1866
|
-
scan_type: z30.enum(["include", "exclude"]).
|
|
1867
|
-
is_end_user_coaching_enabled: z30.boolean().
|
|
1868
|
-
is_granular_profile: z30.boolean().
|
|
1869
|
-
is_parent_managed: z30.boolean().
|
|
1870
|
-
euc_template_id: z30.string().
|
|
1871
|
-
version: z30.number().
|
|
1872
|
-
file_type: z30.array(z30.string()).
|
|
1873
|
-
audit_metadata: AuditResponseSchema.
|
|
1874
|
-
criteria_details: z30.array(DataFilteringDetailsSchema).
|
|
1875
|
-
exception_rules: z30.array(ExceptionRuleDTOSchema).
|
|
1876
|
-
exclusions: ExclusionsSchema.
|
|
1877
|
-
rule1: DataFilteringRuleDTOSchema.
|
|
1878
|
-
rule2: DataFilteringRuleDTOSchema.
|
|
1856
|
+
id: z30.string().nullish(),
|
|
1857
|
+
name: z30.string().nullish(),
|
|
1858
|
+
description: z30.string().nullish(),
|
|
1859
|
+
tenant_id: z30.string().nullish(),
|
|
1860
|
+
type: z30.string().nullish(),
|
|
1861
|
+
data_profile_id: z30.number().nullish(),
|
|
1862
|
+
direction: z30.string().nullish(),
|
|
1863
|
+
file_based: z30.boolean().nullish(),
|
|
1864
|
+
non_file_based: z30.boolean().nullish(),
|
|
1865
|
+
log_severity: z30.string().nullish(),
|
|
1866
|
+
scan_type: z30.enum(["include", "exclude"]).nullish(),
|
|
1867
|
+
is_end_user_coaching_enabled: z30.boolean().nullish(),
|
|
1868
|
+
is_granular_profile: z30.boolean().nullish(),
|
|
1869
|
+
is_parent_managed: z30.boolean().nullish(),
|
|
1870
|
+
euc_template_id: z30.string().nullish(),
|
|
1871
|
+
version: z30.number().nullish(),
|
|
1872
|
+
file_type: z30.array(z30.string()).nullish(),
|
|
1873
|
+
audit_metadata: AuditResponseSchema.nullish(),
|
|
1874
|
+
criteria_details: z30.array(DataFilteringDetailsSchema).nullish(),
|
|
1875
|
+
exception_rules: z30.array(ExceptionRuleDTOSchema).nullish(),
|
|
1876
|
+
exclusions: ExclusionsSchema.nullish(),
|
|
1877
|
+
rule1: DataFilteringRuleDTOSchema.nullish(),
|
|
1878
|
+
rule2: DataFilteringRuleDTOSchema.nullish()
|
|
1879
1879
|
}).passthrough();
|
|
1880
1880
|
var PageDataFilteringProfileResponseSchema = pageSchema(
|
|
1881
1881
|
DataFilteringProfileResponseSchema
|