@cdot65/prisma-airs-sdk 0.9.0 → 0.9.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.cjs +158 -158
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +9506 -9470
- package/dist/index.d.ts +9506 -9470
- package/dist/index.js +158 -158
- 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.2";
|
|
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
|
|
@@ -1519,16 +1519,16 @@ var DictionaryDetectionSubTechniqueSchema = z27.enum([
|
|
|
1519
1519
|
"threshold"
|
|
1520
1520
|
]);
|
|
1521
1521
|
var DictionaryMetaDataDTOSchema = z27.object({
|
|
1522
|
-
number_of_keywords: z27.number().
|
|
1523
|
-
original_file_name: z27.string().
|
|
1524
|
-
original_file_size_in_byte: z27.number().
|
|
1522
|
+
number_of_keywords: z27.number().nullish(),
|
|
1523
|
+
original_file_name: z27.string().nullish(),
|
|
1524
|
+
original_file_size_in_byte: z27.number().nullish()
|
|
1525
1525
|
}).passthrough();
|
|
1526
1526
|
var DictionaryTagsSchema = z27.object({
|
|
1527
|
-
classification: z27.array(DictionaryClassificationSchema).
|
|
1527
|
+
classification: z27.array(DictionaryClassificationSchema).nullish()
|
|
1528
1528
|
}).passthrough();
|
|
1529
1529
|
var ResourceModelExtensionSchema = z27.object({
|
|
1530
|
-
key: z27.string().
|
|
1531
|
-
value: z27.string().
|
|
1530
|
+
key: z27.string().nullish(),
|
|
1531
|
+
value: z27.string().nullish()
|
|
1532
1532
|
}).passthrough();
|
|
1533
1533
|
var DictionaryRequestSchema = z27.object({
|
|
1534
1534
|
category: DictionaryCategorySchema,
|
|
@@ -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
|
|
|
@@ -1606,27 +1606,27 @@ var WeightedRegexSchema = z28.object({
|
|
|
1606
1606
|
weight: z28.number()
|
|
1607
1607
|
}).passthrough();
|
|
1608
1608
|
var MetadataCriterionSchema = z28.object({
|
|
1609
|
-
comparisonOperatorType: ComparisonOperatorTypeSchema.
|
|
1610
|
-
name: z28.string().
|
|
1611
|
-
type: z28.string().
|
|
1612
|
-
value: z28.string().
|
|
1609
|
+
comparisonOperatorType: ComparisonOperatorTypeSchema.nullish(),
|
|
1610
|
+
name: z28.string().nullish(),
|
|
1611
|
+
type: z28.string().nullish(),
|
|
1612
|
+
value: z28.string().nullish()
|
|
1613
1613
|
}).passthrough();
|
|
1614
1614
|
var DataPatternDetectionConfigSchema = z28.object({
|
|
1615
1615
|
technique: DataPatternTechniqueSchema,
|
|
1616
|
-
supported_confidence_levels: z28.array(DataPatternConfidenceLevelSchema).
|
|
1616
|
+
supported_confidence_levels: z28.array(DataPatternConfidenceLevelSchema).nullish()
|
|
1617
1617
|
}).passthrough();
|
|
1618
1618
|
var DataPatternMatchingRulesSchema = z28.object({
|
|
1619
|
-
delimiter: z28.string().
|
|
1619
|
+
delimiter: z28.string().nullish(),
|
|
1620
1620
|
/** Proximity window for keyword matching — spec bounds 2..1000 inclusive. */
|
|
1621
|
-
proximity_distance: z28.number().int().min(2).max(1e3).
|
|
1622
|
-
proximity_keywords: z28.array(z28.string()).
|
|
1623
|
-
regexes: z28.array(WeightedRegexSchema).
|
|
1624
|
-
metadata_criteria: z28.array(MetadataCriterionSchema).
|
|
1621
|
+
proximity_distance: z28.number().int().min(2).max(1e3).nullish(),
|
|
1622
|
+
proximity_keywords: z28.array(z28.string()).nullish(),
|
|
1623
|
+
regexes: z28.array(WeightedRegexSchema).nullish(),
|
|
1624
|
+
metadata_criteria: z28.array(MetadataCriterionSchema).nullish()
|
|
1625
1625
|
}).passthrough();
|
|
1626
1626
|
var DataPatternTagsSchema = z28.object({
|
|
1627
|
-
classification: z28.array(z28.string()).
|
|
1628
|
-
compliance: z28.array(z28.string()).
|
|
1629
|
-
geography: z28.array(z28.string()).
|
|
1627
|
+
classification: z28.array(z28.string()).nullish(),
|
|
1628
|
+
compliance: z28.array(z28.string()).nullish(),
|
|
1629
|
+
geography: z28.array(z28.string()).nullish()
|
|
1630
1630
|
}).passthrough();
|
|
1631
1631
|
var DataPatternRequestSchema = z28.object({
|
|
1632
1632
|
name: z28.string().min(1).max(64),
|
|
@@ -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
|
|
|
@@ -1693,49 +1693,49 @@ var DataProfileStatusSchema = z29.enum(["active", "disabled", "deleted"]);
|
|
|
1693
1693
|
var DataProfileSubtypeSchema = z29.enum(["custom", "predefined"]);
|
|
1694
1694
|
var DetectionRuleItemSchema = z29.object({
|
|
1695
1695
|
detection_technique: RuleItemDetectionTechniqueSchema,
|
|
1696
|
-
id: z29.string().
|
|
1697
|
-
name: z29.string().
|
|
1698
|
-
description: z29.string().
|
|
1699
|
-
version: z29.number().int().
|
|
1700
|
-
match_type: RuleItemMatchTypeSchema.
|
|
1701
|
-
by_unique_count: z29.boolean().
|
|
1702
|
-
confidence_level: RuleItemConfidenceLevelSchema.
|
|
1703
|
-
supported_confidence_levels: z29.array(RuleItemConfidenceLevelSchema).
|
|
1704
|
-
occurrence_count: z29.number().int().
|
|
1705
|
-
occurrence_high: z29.number().int().
|
|
1706
|
-
occurrence_low: z29.number().int().
|
|
1707
|
-
occurrence_operator_type: RuleItemOccurrenceOperatorTypeSchema.
|
|
1696
|
+
id: z29.string().nullish(),
|
|
1697
|
+
name: z29.string().nullish(),
|
|
1698
|
+
description: z29.string().nullish(),
|
|
1699
|
+
version: z29.number().int().nullish(),
|
|
1700
|
+
match_type: RuleItemMatchTypeSchema.nullish(),
|
|
1701
|
+
by_unique_count: z29.boolean().nullish(),
|
|
1702
|
+
confidence_level: RuleItemConfidenceLevelSchema.nullish(),
|
|
1703
|
+
supported_confidence_levels: z29.array(RuleItemConfidenceLevelSchema).nullish(),
|
|
1704
|
+
occurrence_count: z29.number().int().nullish(),
|
|
1705
|
+
occurrence_high: z29.number().int().nullish(),
|
|
1706
|
+
occurrence_low: z29.number().int().nullish(),
|
|
1707
|
+
occurrence_operator_type: RuleItemOccurrenceOperatorTypeSchema.nullish(),
|
|
1708
1708
|
// dictionary + document-type fields
|
|
1709
|
-
score: z29.number().int().
|
|
1710
|
-
score_high: z29.number().int().
|
|
1711
|
-
score_low: z29.number().int().
|
|
1709
|
+
score: z29.number().int().nullish(),
|
|
1710
|
+
score_high: z29.number().int().nullish(),
|
|
1711
|
+
score_low: z29.number().int().nullish(),
|
|
1712
1712
|
// edm fields
|
|
1713
|
-
edm_dataset_id: z29.string().
|
|
1714
|
-
primary_fields: z29.array(z29.string()).
|
|
1715
|
-
primary_match_criteria: RuleItemEdmMatchCriteriaSchema.
|
|
1716
|
-
primary_match_any_count: z29.number().int().
|
|
1717
|
-
secondary_fields: z29.array(z29.string()).
|
|
1718
|
-
secondary_match_criteria: RuleItemEdmMatchCriteriaSchema.
|
|
1719
|
-
secondary_match_any_count: z29.number().int().
|
|
1713
|
+
edm_dataset_id: z29.string().nullish(),
|
|
1714
|
+
primary_fields: z29.array(z29.string()).nullish(),
|
|
1715
|
+
primary_match_criteria: RuleItemEdmMatchCriteriaSchema.nullish(),
|
|
1716
|
+
primary_match_any_count: z29.number().int().nullish(),
|
|
1717
|
+
secondary_fields: z29.array(z29.string()).nullish(),
|
|
1718
|
+
secondary_match_criteria: RuleItemEdmMatchCriteriaSchema.nullish(),
|
|
1719
|
+
secondary_match_any_count: z29.number().int().nullish()
|
|
1720
1720
|
}).passthrough();
|
|
1721
1721
|
var ExpressionTreeNodeSchema = z29.lazy(
|
|
1722
1722
|
() => z29.object({
|
|
1723
|
-
operator_type: ExpressionOperatorTypeSchema.
|
|
1724
|
-
rule_item: DetectionRuleItemSchema.
|
|
1725
|
-
sub_expressions: z29.array(ExpressionTreeNodeSchema).
|
|
1723
|
+
operator_type: ExpressionOperatorTypeSchema.nullish(),
|
|
1724
|
+
rule_item: DetectionRuleItemSchema.nullish(),
|
|
1725
|
+
sub_expressions: z29.array(ExpressionTreeNodeSchema).nullish()
|
|
1726
1726
|
}).passthrough()
|
|
1727
1727
|
);
|
|
1728
1728
|
var MultiProfileDataNodeSchema = z29.object({
|
|
1729
|
-
data_profile_ids: z29.array(z29.number()).
|
|
1730
|
-
operator_type: ExpressionOperatorTypeSchema.
|
|
1729
|
+
data_profile_ids: z29.array(z29.number()).nullish(),
|
|
1730
|
+
operator_type: ExpressionOperatorTypeSchema.nullish()
|
|
1731
1731
|
}).passthrough();
|
|
1732
1732
|
var DefaultTreeDetectionRuleSchema = z29.object({
|
|
1733
1733
|
rule_type: z29.literal("expression_tree"),
|
|
1734
|
-
expression_tree: ExpressionTreeNodeSchema.
|
|
1734
|
+
expression_tree: ExpressionTreeNodeSchema.nullish()
|
|
1735
1735
|
}).passthrough();
|
|
1736
1736
|
var MultiProfileDetectionRuleSchema = z29.object({
|
|
1737
1737
|
rule_type: z29.literal("multi_profile"),
|
|
1738
|
-
multi_profile: MultiProfileDataNodeSchema.
|
|
1738
|
+
multi_profile: MultiProfileDataNodeSchema.nullish()
|
|
1739
1739
|
}).passthrough();
|
|
1740
1740
|
var DetectionRuleSchema = z29.discriminatedUnion("rule_type", [
|
|
1741
1741
|
DefaultTreeDetectionRuleSchema,
|
|
@@ -1754,81 +1754,81 @@ 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
|
|
|
1773
1773
|
// src/models/dlp-data-filtering-profile.ts
|
|
1774
1774
|
import { z as z30 } from "zod";
|
|
1775
1775
|
var AppExclusionSchema = z30.object({
|
|
1776
|
-
app_id: z30.string().
|
|
1777
|
-
app_name: z30.string().
|
|
1778
|
-
type: z30.string().
|
|
1776
|
+
app_id: z30.string().nullish(),
|
|
1777
|
+
app_name: z30.string().nullish(),
|
|
1778
|
+
type: z30.string().nullish()
|
|
1779
1779
|
}).passthrough();
|
|
1780
1780
|
var URLExclusionSchema = z30.object({
|
|
1781
|
-
type: z30.string().
|
|
1782
|
-
url_id: z30.string().
|
|
1783
|
-
url_name: z30.string().
|
|
1781
|
+
type: z30.string().nullish(),
|
|
1782
|
+
url_id: z30.string().nullish(),
|
|
1783
|
+
url_name: z30.string().nullish()
|
|
1784
1784
|
}).passthrough();
|
|
1785
1785
|
var ExclusionsSchema = z30.object({
|
|
1786
|
-
app_exclusion_list: z30.array(AppExclusionSchema).
|
|
1787
|
-
url_exclusion_list: z30.array(URLExclusionSchema).
|
|
1786
|
+
app_exclusion_list: z30.array(AppExclusionSchema).nullish(),
|
|
1787
|
+
url_exclusion_list: z30.array(URLExclusionSchema).nullish(),
|
|
1788
1788
|
/**
|
|
1789
1789
|
* Map of category-name → string-array. `additionalProperties: { type: array of string }`
|
|
1790
1790
|
* in the OpenAPI spec; modeled here as `z.record(z.array(z.string()))`.
|
|
1791
1791
|
*/
|
|
1792
|
-
exclusion_list: z30.record(z30.array(z30.string())).
|
|
1792
|
+
exclusion_list: z30.record(z30.array(z30.string())).nullish()
|
|
1793
1793
|
}).passthrough();
|
|
1794
1794
|
var SourceAttributesSchema = z30.object({
|
|
1795
|
-
match_any: z30.boolean().
|
|
1796
|
-
user_group_ids: z30.array(z30.string()).
|
|
1797
|
-
user_ids: z30.array(z30.string()).
|
|
1795
|
+
match_any: z30.boolean().nullish(),
|
|
1796
|
+
user_group_ids: z30.array(z30.string()).nullish(),
|
|
1797
|
+
user_ids: z30.array(z30.string()).nullish()
|
|
1798
1798
|
}).passthrough();
|
|
1799
1799
|
var DestinationAttributesSchema = z30.object({
|
|
1800
|
-
match_any: z30.boolean().
|
|
1801
|
-
app_ids: z30.array(z30.string()).
|
|
1802
|
-
url_patterns: z30.array(z30.string()).
|
|
1800
|
+
match_any: z30.boolean().nullish(),
|
|
1801
|
+
app_ids: z30.array(z30.string()).nullish(),
|
|
1802
|
+
url_patterns: z30.array(z30.string()).nullish()
|
|
1803
1803
|
}).passthrough();
|
|
1804
1804
|
var ExceptionRuleDTOSchema = z30.object({
|
|
1805
|
-
id: z30.string().
|
|
1806
|
-
action: z30.enum(["ALLOW", "ALERT", "BLOCK"]).
|
|
1807
|
-
log_severity: z30.enum(["INFORMATIONAL", "LOW", "MEDIUM", "HIGH", "CRITICAL"]).
|
|
1805
|
+
id: z30.string().nullish(),
|
|
1806
|
+
action: z30.enum(["ALLOW", "ALERT", "BLOCK"]).nullish(),
|
|
1807
|
+
log_severity: z30.enum(["INFORMATIONAL", "LOW", "MEDIUM", "HIGH", "CRITICAL"]).nullish(),
|
|
1808
1808
|
/**
|
|
1809
1809
|
* `int64` per spec; declared as `z.number()` since JS numbers cover any realistic
|
|
1810
1810
|
* data_profile_id and the SDK never round-trips these unmodified.
|
|
1811
1811
|
*/
|
|
1812
|
-
data_profile_ids: z30.array(z30.number()).
|
|
1813
|
-
destination_attributes: DestinationAttributesSchema.
|
|
1814
|
-
source_attributes: SourceAttributesSchema.
|
|
1812
|
+
data_profile_ids: z30.array(z30.number()).nullish(),
|
|
1813
|
+
destination_attributes: DestinationAttributesSchema.nullish(),
|
|
1814
|
+
source_attributes: SourceAttributesSchema.nullish()
|
|
1815
1815
|
}).passthrough();
|
|
1816
1816
|
var DataFilteringRuleDTOSchema = z30.object({
|
|
1817
|
-
action: z30.string().
|
|
1818
|
-
response_page: z30.string().
|
|
1819
|
-
show_rsp_page: z30.string().
|
|
1817
|
+
action: z30.string().nullish(),
|
|
1818
|
+
response_page: z30.string().nullish(),
|
|
1819
|
+
show_rsp_page: z30.string().nullish()
|
|
1820
1820
|
}).passthrough();
|
|
1821
1821
|
var DataFilteringDetailsSchema = z30.object({
|
|
1822
|
-
action: z30.string().
|
|
1823
|
-
dataProfileId: z30.number().
|
|
1824
|
-
direction: z30.string().
|
|
1825
|
-
euc_template_id: z30.string().
|
|
1826
|
-
fileBased: z30.string().
|
|
1827
|
-
fileTypes: z30.array(z30.string()).
|
|
1828
|
-
is_end_user_coaching_enabled: z30.boolean().
|
|
1829
|
-
logSeverity: z30.string().
|
|
1830
|
-
nonFileBased: z30.string().
|
|
1831
|
-
scanType: z30.string().
|
|
1822
|
+
action: z30.string().nullish(),
|
|
1823
|
+
dataProfileId: z30.number().nullish(),
|
|
1824
|
+
direction: z30.string().nullish(),
|
|
1825
|
+
euc_template_id: z30.string().nullish(),
|
|
1826
|
+
fileBased: z30.string().nullish(),
|
|
1827
|
+
fileTypes: z30.array(z30.string()).nullish(),
|
|
1828
|
+
is_end_user_coaching_enabled: z30.boolean().nullish(),
|
|
1829
|
+
logSeverity: z30.string().nullish(),
|
|
1830
|
+
nonFileBased: z30.string().nullish(),
|
|
1831
|
+
scanType: z30.string().nullish()
|
|
1832
1832
|
}).passthrough();
|
|
1833
1833
|
var DataFilteringProfileRequestSchema = z30.object({
|
|
1834
1834
|
file_based: z30.boolean(),
|
|
@@ -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
|