@cdot65/prisma-airs-sdk 0.6.3 → 0.6.4

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.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.6.3";
32
+ var SDK_VERSION = "0.6.4";
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";
@@ -913,7 +913,7 @@ var ErrorResponseSchema = z15.object({
913
913
  interval: z15.number().optional(),
914
914
  unit: z15.string().optional()
915
915
  }).optional()
916
- });
916
+ }).passthrough();
917
917
 
918
918
  // src/models/mgmt-security-profile.ts
919
919
  import { z as z16 } from "zod";
@@ -1397,10 +1397,10 @@ var ModelSecurityPaginationSchema = z24.object({
1397
1397
  var LabelSchema = z24.object({
1398
1398
  key: z24.string(),
1399
1399
  value: z24.string()
1400
- });
1400
+ }).passthrough();
1401
1401
  var LabelsCreateRequestSchema = z24.object({
1402
1402
  labels: z24.array(LabelSchema)
1403
- });
1403
+ }).passthrough();
1404
1404
  var LabelsResponseSchema = z24.object({}).passthrough();
1405
1405
  var LabelKeyListSchema = z24.object({
1406
1406
  pagination: ModelSecurityPaginationSchema,
@@ -1441,7 +1441,7 @@ var ScanDetailsSchema = z24.object({
1441
1441
  scan_duration_ms: z24.number().int(),
1442
1442
  error_code: z24.string().nullable().optional(),
1443
1443
  error_message: z24.string().nullable().optional()
1444
- });
1444
+ }).passthrough();
1445
1445
  var ScanCreateRequestSchema = z24.object({
1446
1446
  model_uri: z24.string(),
1447
1447
  security_group_uuid: z24.string(),
@@ -1453,7 +1453,7 @@ var ScanCreateRequestSchema = z24.object({
1453
1453
  model_name: z24.string().nullable().optional(),
1454
1454
  model_version: z24.string().nullable().optional(),
1455
1455
  scan_details: ScanDetailsSchema.nullable().optional()
1456
- });
1456
+ }).passthrough();
1457
1457
  var ScanBaseResponseSchema = z24.object({
1458
1458
  uuid: z24.string(),
1459
1459
  tsg_id: z24.string(),
@@ -1591,7 +1591,7 @@ var ModelSecurityRuleInstanceUpdateRequestSchema = z24.object({
1591
1591
  security_group_uuid: z24.string(),
1592
1592
  state: z24.string().nullable().optional(),
1593
1593
  field_values: z24.record(z24.unknown()).nullable().optional()
1594
- });
1594
+ }).passthrough();
1595
1595
  var ListModelSecurityRuleInstancesResponseSchema = z24.object({
1596
1596
  pagination: ModelSecurityPaginationSchema,
1597
1597
  rule_instances: z24.array(ModelSecurityRuleInstanceResponseSchema)
@@ -1601,7 +1601,7 @@ var ModelSecurityGroupCreateRequestSchema = z24.object({
1601
1601
  source_type: z24.string(),
1602
1602
  description: z24.string().optional().default(""),
1603
1603
  rule_configurations: z24.record(RuleConfigurationSchema).optional()
1604
- });
1604
+ }).passthrough();
1605
1605
  var ModelSecurityGroupResponseSchema = z24.object({
1606
1606
  uuid: z24.string(),
1607
1607
  tsg_id: z24.string(),
@@ -1616,7 +1616,7 @@ var ModelSecurityGroupResponseSchema = z24.object({
1616
1616
  var ModelSecurityGroupUpdateRequestSchema = z24.object({
1617
1617
  name: z24.string().nullable().optional(),
1618
1618
  description: z24.string().nullable().optional()
1619
- });
1619
+ }).passthrough();
1620
1620
  var ListModelSecurityGroupsResponseSchema = z24.object({
1621
1621
  pagination: ModelSecurityPaginationSchema,
1622
1622
  security_groups: z24.array(ModelSecurityGroupResponseSchema)
@@ -1823,12 +1823,12 @@ var TargetType = {
1823
1823
  // src/models/red-team.ts
1824
1824
  import { z as z25 } from "zod";
1825
1825
  var RedTeamPaginationSchema = z25.object({ total_items: z25.number().int().nullable().optional() }).passthrough();
1826
- var CountByNameSchema = z25.object({ name: z25.string(), count: z25.number().int() });
1826
+ var CountByNameSchema = z25.object({ name: z25.string(), count: z25.number().int() }).passthrough();
1827
1827
  var ValidationErrorSchema = z25.object({
1828
1828
  loc: z25.array(z25.union([z25.string(), z25.number()])),
1829
1829
  msg: z25.string(),
1830
1830
  type: z25.string()
1831
- });
1831
+ }).passthrough();
1832
1832
  var HTTPValidationErrorSchema = z25.object({ detail: z25.array(ValidationErrorSchema).optional() }).passthrough();
1833
1833
  var TargetBackgroundSchema = z25.object({
1834
1834
  industry: z25.string().nullable().optional(),
@@ -1911,7 +1911,7 @@ var ConnectionParamsSchema = z25.union([
1911
1911
  var TargetJobRequestSchema = z25.object({
1912
1912
  uuid: z25.string(),
1913
1913
  version: z25.number().int().nullable().optional()
1914
- });
1914
+ }).passthrough();
1915
1915
  var JobTimeRecordSchema = z25.object({
1916
1916
  queued_at: z25.string().nullable().optional(),
1917
1917
  started_at: z25.string().nullable().optional(),
@@ -1972,7 +1972,7 @@ var JobCreateRequestSchema = z25.object({
1972
1972
  ]),
1973
1973
  version: z25.number().int().nullable().optional(),
1974
1974
  extra_info: z25.record(z25.unknown()).nullable().optional()
1975
- });
1975
+ }).passthrough();
1976
1976
  var StaticJobReportStatsSchema = z25.object({
1977
1977
  output_completion_percentage: z25.number(),
1978
1978
  partial_report_unlocked: z25.boolean().optional(),
@@ -2043,12 +2043,12 @@ var JobListResponseSchema = z25.object({
2043
2043
  var JobAbortResponseSchema = z25.object({
2044
2044
  job_id: z25.string(),
2045
2045
  message: z25.string()
2046
- });
2046
+ }).passthrough();
2047
2047
  var PrerequisiteModelSchema = z25.object({
2048
2048
  id: z25.string(),
2049
2049
  display_name: z25.string(),
2050
2050
  description: z25.string()
2051
- });
2051
+ }).passthrough();
2052
2052
  var SubCategoryModelSchema = z25.object({
2053
2053
  id: z25.string(),
2054
2054
  display_name: z25.string(),
@@ -2342,17 +2342,17 @@ var CustomAttackOutputSchema = z25.object({
2342
2342
  var PropertyAssignmentSchema = z25.object({
2343
2343
  name: z25.string(),
2344
2344
  value: z25.string()
2345
- });
2345
+ }).passthrough();
2346
2346
  var PropertyValueStatisticSchema = z25.object({
2347
2347
  value: z25.string(),
2348
2348
  successful_attack_count: z25.number().int(),
2349
2349
  total_attack_count: z25.number().int(),
2350
2350
  success_rate: z25.number()
2351
- });
2351
+ }).passthrough();
2352
2352
  var PropertyStatisticSchema = z25.object({
2353
2353
  property_name: z25.string(),
2354
2354
  values: z25.array(PropertyValueStatisticSchema)
2355
- });
2355
+ }).passthrough();
2356
2356
  var PromptSetSummarySchema = z25.object({
2357
2357
  prompt_set_id: z25.string(),
2358
2358
  prompt_set_name: z25.string(),
@@ -2413,16 +2413,16 @@ var ScanStatisticsResponseSchema = z25.object({
2413
2413
  var ScoreTrendSeriesSchema = z25.object({
2414
2414
  label: z25.string(),
2415
2415
  data: z25.array(z25.number().nullable())
2416
- });
2416
+ }).passthrough();
2417
2417
  var ScoreTrendResponseSchema = z25.object({
2418
2418
  labels: z25.array(z25.string()),
2419
2419
  series: z25.array(ScoreTrendSeriesSchema)
2420
- });
2420
+ }).passthrough();
2421
2421
  var SentimentRequestSchema = z25.object({
2422
2422
  job_id: z25.string(),
2423
2423
  up_vote: z25.boolean().optional(),
2424
2424
  down_vote: z25.boolean().optional()
2425
- });
2425
+ }).passthrough();
2426
2426
  var SentimentResponseSchema = z25.object({
2427
2427
  job_id: z25.string(),
2428
2428
  up_vote: z25.boolean().optional(),
@@ -2432,12 +2432,12 @@ var QuotaDetailsSchema = z25.object({
2432
2432
  allocated: z25.number().int(),
2433
2433
  unlimited: z25.boolean(),
2434
2434
  consumed: z25.number().int()
2435
- });
2435
+ }).passthrough();
2436
2436
  var QuotaSummarySchema = z25.object({
2437
2437
  static: QuotaDetailsSchema,
2438
2438
  dynamic: QuotaDetailsSchema,
2439
2439
  custom: QuotaDetailsSchema
2440
- });
2440
+ }).passthrough();
2441
2441
  var ErrorLogSchema = z25.object({
2442
2442
  created_at: z25.string(),
2443
2443
  updated_at: z25.string(),
@@ -2564,7 +2564,7 @@ var TargetProfileResponseSchema = z25.object({
2564
2564
  var BaseResponseSchema = z25.object({
2565
2565
  message: z25.string(),
2566
2566
  status: z25.number().int()
2567
- });
2567
+ }).passthrough();
2568
2568
  var PromptSetStatsSchema = z25.object({
2569
2569
  total_prompts: z25.number().int(),
2570
2570
  active_prompts: z25.number().int(),
@@ -2576,14 +2576,14 @@ var CustomPromptSetCreateRequestSchema = z25.object({
2576
2576
  name: z25.string(),
2577
2577
  description: z25.unknown().optional(),
2578
2578
  property_names: z25.array(z25.string()).optional()
2579
- });
2579
+ }).passthrough();
2580
2580
  var CustomPromptSetUpdateRequestSchema = z25.object({
2581
2581
  name: z25.unknown().optional(),
2582
2582
  description: z25.unknown().optional(),
2583
2583
  archive: z25.unknown().optional(),
2584
2584
  property_names: z25.unknown().optional()
2585
2585
  }).passthrough();
2586
- var CustomPromptSetArchiveRequestSchema = z25.object({ archive: z25.boolean() });
2586
+ var CustomPromptSetArchiveRequestSchema = z25.object({ archive: z25.boolean() }).passthrough();
2587
2587
  var CustomPromptSetResponseSchema = z25.object({
2588
2588
  uuid: z25.string(),
2589
2589
  name: z25.string(),
@@ -2642,7 +2642,7 @@ var CustomPromptCreateRequestSchema = z25.object({
2642
2642
  prompt_set_id: z25.string(),
2643
2643
  goal: z25.unknown().optional(),
2644
2644
  properties: z25.unknown().optional()
2645
- });
2645
+ }).passthrough();
2646
2646
  var CustomPromptUpdateRequestSchema = z25.object({
2647
2647
  prompt: z25.unknown().optional(),
2648
2648
  goal: z25.unknown().optional(),
@@ -2679,15 +2679,15 @@ var CustomPromptListSchema = z25.object({
2679
2679
  pagination: RedTeamPaginationSchema,
2680
2680
  data: z25.array(CustomPromptListItemSchema).optional()
2681
2681
  }).passthrough();
2682
- var PropertyNameCreateRequestSchema = z25.object({ name: z25.string() });
2682
+ var PropertyNameCreateRequestSchema = z25.object({ name: z25.string() }).passthrough();
2683
2683
  var PropertyValueCreateRequestSchema = z25.object({
2684
2684
  property_name: z25.string(),
2685
2685
  property_value: z25.string()
2686
- });
2686
+ }).passthrough();
2687
2687
  var PropertyDefinitionSchema = z25.object({
2688
2688
  property_name: z25.string(),
2689
2689
  created_at: z25.string()
2690
- });
2690
+ }).passthrough();
2691
2691
  var PropertyNamesListResponseSchema = z25.object({ data: z25.array(PropertyDefinitionSchema).optional() }).passthrough();
2692
2692
  var PropertyValuesResponseSchema = z25.object({
2693
2693
  name: z25.string(),