@cdot65/prisma-airs-sdk 0.9.1 → 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 +83 -83
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5782 -5772
- package/dist/index.d.ts +5782 -5772
- package/dist/index.js +83 -83
- 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";
|
|
@@ -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,
|
|
@@ -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),
|
|
@@ -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,
|
|
@@ -1773,62 +1773,62 @@ var PageDataProfileResponseSchema = pageSchema(DataProfileResponseSchema);
|
|
|
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(),
|