@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 CHANGED
@@ -553,7 +553,7 @@ var MAX_NUMBER_OF_BATCH_SCAN_OBJECTS = 5;
553
553
  var MAX_CONNECTION_POOL_SIZE = 100;
554
554
  var MAX_NUMBER_OF_RETRIES = 5;
555
555
  var HTTP_FORCE_RETRY_STATUS_CODES = [500, 502, 503, 504];
556
- var SDK_VERSION = "0.9.1";
556
+ var SDK_VERSION = "0.9.2";
557
557
  var USER_AGENT = `PAN-AIRS/${SDK_VERSION}-typescript-sdk`;
558
558
  var DEFAULT_MGMT_ENDPOINT = "https://api.sase.paloaltonetworks.com/aisec";
559
559
  var DEFAULT_TOKEN_ENDPOINT = "https://auth.apps.paloaltonetworks.com/oauth2/access_token";
@@ -2043,16 +2043,16 @@ var DictionaryDetectionSubTechniqueSchema = import_zod27.z.enum([
2043
2043
  "threshold"
2044
2044
  ]);
2045
2045
  var DictionaryMetaDataDTOSchema = import_zod27.z.object({
2046
- number_of_keywords: import_zod27.z.number().optional(),
2047
- original_file_name: import_zod27.z.string().optional(),
2048
- original_file_size_in_byte: import_zod27.z.number().optional()
2046
+ number_of_keywords: import_zod27.z.number().nullish(),
2047
+ original_file_name: import_zod27.z.string().nullish(),
2048
+ original_file_size_in_byte: import_zod27.z.number().nullish()
2049
2049
  }).passthrough();
2050
2050
  var DictionaryTagsSchema = import_zod27.z.object({
2051
- classification: import_zod27.z.array(DictionaryClassificationSchema).optional()
2051
+ classification: import_zod27.z.array(DictionaryClassificationSchema).nullish()
2052
2052
  }).passthrough();
2053
2053
  var ResourceModelExtensionSchema = import_zod27.z.object({
2054
- key: import_zod27.z.string().optional(),
2055
- value: import_zod27.z.string().optional()
2054
+ key: import_zod27.z.string().nullish(),
2055
+ value: import_zod27.z.string().nullish()
2056
2056
  }).passthrough();
2057
2057
  var DictionaryRequestSchema = import_zod27.z.object({
2058
2058
  category: DictionaryCategorySchema,
@@ -2130,27 +2130,27 @@ var WeightedRegexSchema = import_zod28.z.object({
2130
2130
  weight: import_zod28.z.number()
2131
2131
  }).passthrough();
2132
2132
  var MetadataCriterionSchema = import_zod28.z.object({
2133
- comparisonOperatorType: ComparisonOperatorTypeSchema.optional(),
2134
- name: import_zod28.z.string().optional(),
2135
- type: import_zod28.z.string().optional(),
2136
- value: import_zod28.z.string().optional()
2133
+ comparisonOperatorType: ComparisonOperatorTypeSchema.nullish(),
2134
+ name: import_zod28.z.string().nullish(),
2135
+ type: import_zod28.z.string().nullish(),
2136
+ value: import_zod28.z.string().nullish()
2137
2137
  }).passthrough();
2138
2138
  var DataPatternDetectionConfigSchema = import_zod28.z.object({
2139
2139
  technique: DataPatternTechniqueSchema,
2140
- supported_confidence_levels: import_zod28.z.array(DataPatternConfidenceLevelSchema).optional()
2140
+ supported_confidence_levels: import_zod28.z.array(DataPatternConfidenceLevelSchema).nullish()
2141
2141
  }).passthrough();
2142
2142
  var DataPatternMatchingRulesSchema = import_zod28.z.object({
2143
- delimiter: import_zod28.z.string().optional(),
2143
+ delimiter: import_zod28.z.string().nullish(),
2144
2144
  /** Proximity window for keyword matching — spec bounds 2..1000 inclusive. */
2145
- proximity_distance: import_zod28.z.number().int().min(2).max(1e3).optional(),
2146
- proximity_keywords: import_zod28.z.array(import_zod28.z.string()).optional(),
2147
- regexes: import_zod28.z.array(WeightedRegexSchema).optional(),
2148
- metadata_criteria: import_zod28.z.array(MetadataCriterionSchema).optional()
2145
+ proximity_distance: import_zod28.z.number().int().min(2).max(1e3).nullish(),
2146
+ proximity_keywords: import_zod28.z.array(import_zod28.z.string()).nullish(),
2147
+ regexes: import_zod28.z.array(WeightedRegexSchema).nullish(),
2148
+ metadata_criteria: import_zod28.z.array(MetadataCriterionSchema).nullish()
2149
2149
  }).passthrough();
2150
2150
  var DataPatternTagsSchema = import_zod28.z.object({
2151
- classification: import_zod28.z.array(import_zod28.z.string()).optional(),
2152
- compliance: import_zod28.z.array(import_zod28.z.string()).optional(),
2153
- geography: import_zod28.z.array(import_zod28.z.string()).optional()
2151
+ classification: import_zod28.z.array(import_zod28.z.string()).nullish(),
2152
+ compliance: import_zod28.z.array(import_zod28.z.string()).nullish(),
2153
+ geography: import_zod28.z.array(import_zod28.z.string()).nullish()
2154
2154
  }).passthrough();
2155
2155
  var DataPatternRequestSchema = import_zod28.z.object({
2156
2156
  name: import_zod28.z.string().min(1).max(64),
@@ -2217,49 +2217,49 @@ var DataProfileStatusSchema = import_zod29.z.enum(["active", "disabled", "delete
2217
2217
  var DataProfileSubtypeSchema = import_zod29.z.enum(["custom", "predefined"]);
2218
2218
  var DetectionRuleItemSchema = import_zod29.z.object({
2219
2219
  detection_technique: RuleItemDetectionTechniqueSchema,
2220
- id: import_zod29.z.string().optional(),
2221
- name: import_zod29.z.string().optional(),
2222
- description: import_zod29.z.string().optional(),
2223
- version: import_zod29.z.number().int().optional(),
2224
- match_type: RuleItemMatchTypeSchema.optional(),
2225
- by_unique_count: import_zod29.z.boolean().optional(),
2226
- confidence_level: RuleItemConfidenceLevelSchema.optional(),
2227
- supported_confidence_levels: import_zod29.z.array(RuleItemConfidenceLevelSchema).optional(),
2228
- occurrence_count: import_zod29.z.number().int().optional(),
2229
- occurrence_high: import_zod29.z.number().int().optional(),
2230
- occurrence_low: import_zod29.z.number().int().optional(),
2231
- occurrence_operator_type: RuleItemOccurrenceOperatorTypeSchema.optional(),
2220
+ id: import_zod29.z.string().nullish(),
2221
+ name: import_zod29.z.string().nullish(),
2222
+ description: import_zod29.z.string().nullish(),
2223
+ version: import_zod29.z.number().int().nullish(),
2224
+ match_type: RuleItemMatchTypeSchema.nullish(),
2225
+ by_unique_count: import_zod29.z.boolean().nullish(),
2226
+ confidence_level: RuleItemConfidenceLevelSchema.nullish(),
2227
+ supported_confidence_levels: import_zod29.z.array(RuleItemConfidenceLevelSchema).nullish(),
2228
+ occurrence_count: import_zod29.z.number().int().nullish(),
2229
+ occurrence_high: import_zod29.z.number().int().nullish(),
2230
+ occurrence_low: import_zod29.z.number().int().nullish(),
2231
+ occurrence_operator_type: RuleItemOccurrenceOperatorTypeSchema.nullish(),
2232
2232
  // dictionary + document-type fields
2233
- score: import_zod29.z.number().int().optional(),
2234
- score_high: import_zod29.z.number().int().optional(),
2235
- score_low: import_zod29.z.number().int().optional(),
2233
+ score: import_zod29.z.number().int().nullish(),
2234
+ score_high: import_zod29.z.number().int().nullish(),
2235
+ score_low: import_zod29.z.number().int().nullish(),
2236
2236
  // edm fields
2237
- edm_dataset_id: import_zod29.z.string().optional(),
2238
- primary_fields: import_zod29.z.array(import_zod29.z.string()).optional(),
2239
- primary_match_criteria: RuleItemEdmMatchCriteriaSchema.optional(),
2240
- primary_match_any_count: import_zod29.z.number().int().optional(),
2241
- secondary_fields: import_zod29.z.array(import_zod29.z.string()).optional(),
2242
- secondary_match_criteria: RuleItemEdmMatchCriteriaSchema.optional(),
2243
- secondary_match_any_count: import_zod29.z.number().int().optional()
2237
+ edm_dataset_id: import_zod29.z.string().nullish(),
2238
+ primary_fields: import_zod29.z.array(import_zod29.z.string()).nullish(),
2239
+ primary_match_criteria: RuleItemEdmMatchCriteriaSchema.nullish(),
2240
+ primary_match_any_count: import_zod29.z.number().int().nullish(),
2241
+ secondary_fields: import_zod29.z.array(import_zod29.z.string()).nullish(),
2242
+ secondary_match_criteria: RuleItemEdmMatchCriteriaSchema.nullish(),
2243
+ secondary_match_any_count: import_zod29.z.number().int().nullish()
2244
2244
  }).passthrough();
2245
2245
  var ExpressionTreeNodeSchema = import_zod29.z.lazy(
2246
2246
  () => import_zod29.z.object({
2247
- operator_type: ExpressionOperatorTypeSchema.optional(),
2248
- rule_item: DetectionRuleItemSchema.optional(),
2249
- sub_expressions: import_zod29.z.array(ExpressionTreeNodeSchema).optional()
2247
+ operator_type: ExpressionOperatorTypeSchema.nullish(),
2248
+ rule_item: DetectionRuleItemSchema.nullish(),
2249
+ sub_expressions: import_zod29.z.array(ExpressionTreeNodeSchema).nullish()
2250
2250
  }).passthrough()
2251
2251
  );
2252
2252
  var MultiProfileDataNodeSchema = import_zod29.z.object({
2253
- data_profile_ids: import_zod29.z.array(import_zod29.z.number()).optional(),
2254
- operator_type: ExpressionOperatorTypeSchema.optional()
2253
+ data_profile_ids: import_zod29.z.array(import_zod29.z.number()).nullish(),
2254
+ operator_type: ExpressionOperatorTypeSchema.nullish()
2255
2255
  }).passthrough();
2256
2256
  var DefaultTreeDetectionRuleSchema = import_zod29.z.object({
2257
2257
  rule_type: import_zod29.z.literal("expression_tree"),
2258
- expression_tree: ExpressionTreeNodeSchema.optional()
2258
+ expression_tree: ExpressionTreeNodeSchema.nullish()
2259
2259
  }).passthrough();
2260
2260
  var MultiProfileDetectionRuleSchema = import_zod29.z.object({
2261
2261
  rule_type: import_zod29.z.literal("multi_profile"),
2262
- multi_profile: MultiProfileDataNodeSchema.optional()
2262
+ multi_profile: MultiProfileDataNodeSchema.nullish()
2263
2263
  }).passthrough();
2264
2264
  var DetectionRuleSchema = import_zod29.z.discriminatedUnion("rule_type", [
2265
2265
  DefaultTreeDetectionRuleSchema,
@@ -2297,62 +2297,62 @@ var PageDataProfileResponseSchema = pageSchema(DataProfileResponseSchema);
2297
2297
  // src/models/dlp-data-filtering-profile.ts
2298
2298
  var import_zod30 = require("zod");
2299
2299
  var AppExclusionSchema = import_zod30.z.object({
2300
- app_id: import_zod30.z.string().optional(),
2301
- app_name: import_zod30.z.string().optional(),
2302
- type: import_zod30.z.string().optional()
2300
+ app_id: import_zod30.z.string().nullish(),
2301
+ app_name: import_zod30.z.string().nullish(),
2302
+ type: import_zod30.z.string().nullish()
2303
2303
  }).passthrough();
2304
2304
  var URLExclusionSchema = import_zod30.z.object({
2305
- type: import_zod30.z.string().optional(),
2306
- url_id: import_zod30.z.string().optional(),
2307
- url_name: import_zod30.z.string().optional()
2305
+ type: import_zod30.z.string().nullish(),
2306
+ url_id: import_zod30.z.string().nullish(),
2307
+ url_name: import_zod30.z.string().nullish()
2308
2308
  }).passthrough();
2309
2309
  var ExclusionsSchema = import_zod30.z.object({
2310
- app_exclusion_list: import_zod30.z.array(AppExclusionSchema).optional(),
2311
- url_exclusion_list: import_zod30.z.array(URLExclusionSchema).optional(),
2310
+ app_exclusion_list: import_zod30.z.array(AppExclusionSchema).nullish(),
2311
+ url_exclusion_list: import_zod30.z.array(URLExclusionSchema).nullish(),
2312
2312
  /**
2313
2313
  * Map of category-name → string-array. `additionalProperties: { type: array of string }`
2314
2314
  * in the OpenAPI spec; modeled here as `z.record(z.array(z.string()))`.
2315
2315
  */
2316
- exclusion_list: import_zod30.z.record(import_zod30.z.array(import_zod30.z.string())).optional()
2316
+ exclusion_list: import_zod30.z.record(import_zod30.z.array(import_zod30.z.string())).nullish()
2317
2317
  }).passthrough();
2318
2318
  var SourceAttributesSchema = import_zod30.z.object({
2319
- match_any: import_zod30.z.boolean().optional(),
2320
- user_group_ids: import_zod30.z.array(import_zod30.z.string()).optional(),
2321
- user_ids: import_zod30.z.array(import_zod30.z.string()).optional()
2319
+ match_any: import_zod30.z.boolean().nullish(),
2320
+ user_group_ids: import_zod30.z.array(import_zod30.z.string()).nullish(),
2321
+ user_ids: import_zod30.z.array(import_zod30.z.string()).nullish()
2322
2322
  }).passthrough();
2323
2323
  var DestinationAttributesSchema = import_zod30.z.object({
2324
- match_any: import_zod30.z.boolean().optional(),
2325
- app_ids: import_zod30.z.array(import_zod30.z.string()).optional(),
2326
- url_patterns: import_zod30.z.array(import_zod30.z.string()).optional()
2324
+ match_any: import_zod30.z.boolean().nullish(),
2325
+ app_ids: import_zod30.z.array(import_zod30.z.string()).nullish(),
2326
+ url_patterns: import_zod30.z.array(import_zod30.z.string()).nullish()
2327
2327
  }).passthrough();
2328
2328
  var ExceptionRuleDTOSchema = import_zod30.z.object({
2329
- id: import_zod30.z.string().optional(),
2330
- action: import_zod30.z.enum(["ALLOW", "ALERT", "BLOCK"]).optional(),
2331
- log_severity: import_zod30.z.enum(["INFORMATIONAL", "LOW", "MEDIUM", "HIGH", "CRITICAL"]).optional(),
2329
+ id: import_zod30.z.string().nullish(),
2330
+ action: import_zod30.z.enum(["ALLOW", "ALERT", "BLOCK"]).nullish(),
2331
+ log_severity: import_zod30.z.enum(["INFORMATIONAL", "LOW", "MEDIUM", "HIGH", "CRITICAL"]).nullish(),
2332
2332
  /**
2333
2333
  * `int64` per spec; declared as `z.number()` since JS numbers cover any realistic
2334
2334
  * data_profile_id and the SDK never round-trips these unmodified.
2335
2335
  */
2336
- data_profile_ids: import_zod30.z.array(import_zod30.z.number()).optional(),
2337
- destination_attributes: DestinationAttributesSchema.optional(),
2338
- source_attributes: SourceAttributesSchema.optional()
2336
+ data_profile_ids: import_zod30.z.array(import_zod30.z.number()).nullish(),
2337
+ destination_attributes: DestinationAttributesSchema.nullish(),
2338
+ source_attributes: SourceAttributesSchema.nullish()
2339
2339
  }).passthrough();
2340
2340
  var DataFilteringRuleDTOSchema = import_zod30.z.object({
2341
- action: import_zod30.z.string().optional(),
2342
- response_page: import_zod30.z.string().optional(),
2343
- show_rsp_page: import_zod30.z.string().optional()
2341
+ action: import_zod30.z.string().nullish(),
2342
+ response_page: import_zod30.z.string().nullish(),
2343
+ show_rsp_page: import_zod30.z.string().nullish()
2344
2344
  }).passthrough();
2345
2345
  var DataFilteringDetailsSchema = import_zod30.z.object({
2346
- action: import_zod30.z.string().optional(),
2347
- dataProfileId: import_zod30.z.number().optional(),
2348
- direction: import_zod30.z.string().optional(),
2349
- euc_template_id: import_zod30.z.string().optional(),
2350
- fileBased: import_zod30.z.string().optional(),
2351
- fileTypes: import_zod30.z.array(import_zod30.z.string()).optional(),
2352
- is_end_user_coaching_enabled: import_zod30.z.boolean().optional(),
2353
- logSeverity: import_zod30.z.string().optional(),
2354
- nonFileBased: import_zod30.z.string().optional(),
2355
- scanType: import_zod30.z.string().optional()
2346
+ action: import_zod30.z.string().nullish(),
2347
+ dataProfileId: import_zod30.z.number().nullish(),
2348
+ direction: import_zod30.z.string().nullish(),
2349
+ euc_template_id: import_zod30.z.string().nullish(),
2350
+ fileBased: import_zod30.z.string().nullish(),
2351
+ fileTypes: import_zod30.z.array(import_zod30.z.string()).nullish(),
2352
+ is_end_user_coaching_enabled: import_zod30.z.boolean().nullish(),
2353
+ logSeverity: import_zod30.z.string().nullish(),
2354
+ nonFileBased: import_zod30.z.string().nullish(),
2355
+ scanType: import_zod30.z.string().nullish()
2356
2356
  }).passthrough();
2357
2357
  var DataFilteringProfileRequestSchema = import_zod30.z.object({
2358
2358
  file_based: import_zod30.z.boolean(),