@cdot65/prisma-airs-cli 3.2.0 → 4.0.0

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.d.ts CHANGED
@@ -523,6 +523,14 @@ interface RedTeamService {
523
523
  jobType?: string;
524
524
  targetId?: string;
525
525
  limit?: number;
526
+ offset?: number;
527
+ }): Promise<RedTeamJob[]>;
528
+ listAllScans(opts?: {
529
+ status?: string;
530
+ jobType?: string;
531
+ targetId?: string;
532
+ limit?: number;
533
+ max?: number;
526
534
  }): Promise<RedTeamJob[]>;
527
535
  /** Abort a running scan. */
528
536
  abortScan(jobId: string): Promise<void>;
@@ -553,6 +561,9 @@ interface RedTeamService {
553
561
  channels: RedTeamChannel[];
554
562
  totalItems?: number;
555
563
  }>;
564
+ listAllChannels(opts?: RedTeamChannelListOptions & {
565
+ max?: number;
566
+ }): Promise<RedTeamChannel[]>;
556
567
  /** Get a network broker channel by ID. */
557
568
  getChannel(channelId: string): Promise<RedTeamChannel>;
558
569
  /** Create a network broker channel. */
@@ -572,6 +583,20 @@ interface RedTeamService {
572
583
  logs: RedTeamErrorLog[];
573
584
  totalItems?: number;
574
585
  }>;
586
+ listAdapters(opts?: RedTeamAdapterListOptions): Promise<{
587
+ adapters: RedTeamAdapterListItem[];
588
+ totalItems?: number;
589
+ }>;
590
+ listAllAdapters(opts?: RedTeamAdapterListOptions & {
591
+ max?: number;
592
+ }): Promise<RedTeamAdapterListItem[]>;
593
+ getAdapter(uuid: string): Promise<RedTeamAdapterDetail>;
594
+ createAdapter(request: RedTeamAdapterCreateRequest, validate?: boolean): Promise<RedTeamAdapterDetail>;
595
+ /** Read-modify-write: merges overrides onto the current record (upstream PUT is full-replacement). */
596
+ updateAdapter(uuid: string, overrides: RedTeamAdapterUpdateOverrides, validate?: boolean): Promise<RedTeamAdapterDetail>;
597
+ deleteAdapter(uuid: string): Promise<void>;
598
+ /** Run a script end-to-end through the broker channel; returns an execution outcome. */
599
+ validateAdapter(request: RedTeamAdapterValidateRequest): Promise<RedTeamAdapterValidationResult>;
575
600
  }
576
601
  /** Normalized security group. */
577
602
  interface ModelSecurityGroup {
@@ -802,6 +827,9 @@ interface ModelSecurityService {
802
827
  totalItems: number;
803
828
  groups: ModelSecurityGroup[];
804
829
  }>;
830
+ listAllGroups(opts?: ModelSecurityGroupListOptions & {
831
+ max?: number;
832
+ }): Promise<ModelSecurityGroup[]>;
805
833
  getGroup(uuid: string): Promise<ModelSecurityGroup>;
806
834
  createGroup(request: ModelSecurityGroupCreateRequest): Promise<ModelSecurityGroup>;
807
835
  updateGroup(uuid: string, request: ModelSecurityGroupUpdateRequest): Promise<ModelSecurityGroup>;
@@ -816,12 +844,18 @@ interface ModelSecurityService {
816
844
  totalItems: number;
817
845
  rules: ModelSecurityRule[];
818
846
  }>;
847
+ listAllRules(opts?: ModelSecurityRuleListOptions & {
848
+ max?: number;
849
+ }): Promise<ModelSecurityRule[]>;
819
850
  getRule(uuid: string): Promise<ModelSecurityRule>;
820
851
  createScan(request: Record<string, unknown>): Promise<ModelSecurityScan>;
821
852
  listScans(opts?: ModelSecurityScanListOptions): Promise<{
822
853
  totalItems: number;
823
854
  scans: ModelSecurityScan[];
824
855
  }>;
856
+ listAllScans(opts?: ModelSecurityScanListOptions & {
857
+ max?: number;
858
+ }): Promise<ModelSecurityScan[]>;
825
859
  getScan(uuid: string): Promise<ModelSecurityScan>;
826
860
  getEvaluations(scanUuid: string, opts?: {
827
861
  skip?: number;
@@ -865,6 +899,9 @@ interface ModelSecurityService {
865
899
  totalItems: number;
866
900
  models: ModelSecurityModel[];
867
901
  }>;
902
+ listAllModels(opts?: ModelSecurityModelListOptions & {
903
+ max?: number;
904
+ }): Promise<ModelSecurityModel[]>;
868
905
  getModel(uuid: string): Promise<ModelSecurityModel>;
869
906
  listModelVersions(modelUuid: string, opts?: ModelSecurityModelVersionListOptions): Promise<{
870
907
  totalItems: number;
@@ -903,6 +940,7 @@ interface DeleteResponse {
903
940
  interface PaginationOptions {
904
941
  offset?: number;
905
942
  limit?: number;
943
+ latest?: boolean;
906
944
  }
907
945
  /** Normalized API key. */
908
946
  interface ApiKeyInfo {
@@ -1022,6 +1060,8 @@ interface ManagementService {
1022
1060
  forceDeleteTopic(topicId: string, updatedBy?: string): Promise<DeleteResponse>;
1023
1061
  /** List all custom topics. */
1024
1062
  listTopics(): Promise<CustomTopic$1[]>;
1063
+ /** List latest topic revisions with client-side grouping in the SDK. */
1064
+ listLatestTopics(opts?: PaginationOptions): Promise<CustomTopic$1[]>;
1025
1065
  /** Get a single custom topic by ID. */
1026
1066
  getTopic(topicId: string): Promise<CustomTopic$1>;
1027
1067
  /** Get a single custom topic by name. */
@@ -1042,6 +1082,10 @@ interface ManagementService {
1042
1082
  getProfileByName(profileName: string): Promise<SecurityProfileInfo>;
1043
1083
  /** List security profiles. */
1044
1084
  listProfiles(opts?: PaginationOptions): Promise<SecurityProfileListResult>;
1085
+ /** Walk all security-profile pages. */
1086
+ listAllProfiles(opts?: Omit<PaginationOptions, 'offset'> & {
1087
+ max?: number;
1088
+ }): Promise<SecurityProfileInfo[]>;
1045
1089
  /** Create a security profile. */
1046
1090
  createProfile(request: CreateSecurityProfileRequest): Promise<SecurityProfileInfo>;
1047
1091
  /** Update a security profile. */
@@ -1051,10 +1095,18 @@ interface ManagementService {
1051
1095
  /** Force-delete a security profile (removes from referencing policies). */
1052
1096
  forceDeleteProfile(profileId: string, updatedBy: string): Promise<DeleteResponse>;
1053
1097
  listApiKeys(opts?: PaginationOptions): Promise<ApiKeyListResult>;
1098
+ listAllApiKeys(opts?: {
1099
+ limit?: number;
1100
+ max?: number;
1101
+ }): Promise<ApiKeyInfo[]>;
1054
1102
  createApiKey(request: Record<string, unknown>): Promise<ApiKeyInfo>;
1055
1103
  regenerateApiKey(apiKeyId: string, request: Record<string, unknown>): Promise<ApiKeyInfo>;
1056
1104
  deleteApiKey(apiKeyName: string, updatedBy: string): Promise<DeleteResponse>;
1057
1105
  listCustomerApps(opts?: PaginationOptions): Promise<CustomerAppListResult>;
1106
+ listAllCustomerApps(opts?: {
1107
+ limit?: number;
1108
+ max?: number;
1109
+ }): Promise<CustomerAppInfo[]>;
1058
1110
  getCustomerApp(appName: string): Promise<CustomerAppInfo>;
1059
1111
  updateCustomerApp(appId: string, request: Record<string, unknown>): Promise<CustomerAppInfo>;
1060
1112
  deleteCustomerApp(appName: string, updatedBy: string): Promise<CustomerAppInfo>;
@@ -1077,6 +1129,83 @@ interface ManagementService {
1077
1129
  }): Promise<DeploymentProfileInfo[]>;
1078
1130
  queryScanLogs(opts: ScanLogQueryOptions): Promise<ScanLogQueryResult>;
1079
1131
  }
1132
+ /** An adapter configuration variable. Secrets are masked; key off `isRedacted`, not the value. */
1133
+ interface RedTeamAdapterVar {
1134
+ key: string;
1135
+ value?: string | null;
1136
+ type: 'VAR' | 'SECRET';
1137
+ isRedacted?: boolean;
1138
+ }
1139
+ /** Adapter list row — no script, description, or variables; `get` for the full record. */
1140
+ interface RedTeamAdapterListItem {
1141
+ uuid: string;
1142
+ name: string;
1143
+ status: string;
1144
+ createdAt?: string;
1145
+ updatedAt?: string;
1146
+ createdByUserId?: string | null;
1147
+ targetCount?: number | null;
1148
+ }
1149
+ /** Full adapter record. */
1150
+ interface RedTeamAdapterDetail {
1151
+ uuid: string;
1152
+ tsgId?: string;
1153
+ name: string;
1154
+ scriptB64: string;
1155
+ status: string;
1156
+ description?: string | null;
1157
+ networkBrokerChannelUuid?: string | null;
1158
+ variables: RedTeamAdapterVar[];
1159
+ targetCount?: number | null;
1160
+ createdAt?: string | null;
1161
+ updatedAt?: string | null;
1162
+ createdByUserId?: string | null;
1163
+ updatedByUserId?: string | null;
1164
+ }
1165
+ interface RedTeamAdapterListOptions {
1166
+ limit?: number;
1167
+ offset?: number;
1168
+ search?: string;
1169
+ }
1170
+ interface RedTeamAdapterCreateRequest {
1171
+ name: string;
1172
+ scriptB64: string;
1173
+ /** Sample prompt used to exercise the adapter during validation. Not stored. */
1174
+ prompt: string;
1175
+ description?: string;
1176
+ /** Optional while DRAFT; required to activate (validate: true). */
1177
+ networkBrokerChannelUuid?: string;
1178
+ variables?: RedTeamAdapterVar[];
1179
+ }
1180
+ /**
1181
+ * CLI-side overrides for adapter update. The upstream PUT is a full
1182
+ * replacement, so the service merges these onto the current record —
1183
+ * `prompt` is the only always-required field because it is never stored.
1184
+ */
1185
+ interface RedTeamAdapterUpdateOverrides {
1186
+ prompt: string;
1187
+ name?: string;
1188
+ scriptB64?: string;
1189
+ description?: string;
1190
+ networkBrokerChannelUuid?: string;
1191
+ /** Replaces the WHOLE variable set when given; omitted keys are deleted upstream. */
1192
+ variables?: RedTeamAdapterVar[];
1193
+ }
1194
+ interface RedTeamAdapterValidateRequest {
1195
+ scriptB64: string;
1196
+ networkBrokerChannelUuid: string;
1197
+ prompt: string;
1198
+ variables?: RedTeamAdapterVar[];
1199
+ /** Resolve redacted/null variable values from this stored adapter before the run. */
1200
+ adapterUuid?: string;
1201
+ }
1202
+ /** Execution outcome of a validation run — not an adapter record. */
1203
+ interface RedTeamAdapterValidationResult {
1204
+ validated: boolean;
1205
+ stdout?: string | null;
1206
+ stderr?: string | null;
1207
+ traceback?: string | null;
1208
+ }
1080
1209
 
1081
1210
  /**
1082
1211
  * Wraps the SDK's ManagementClient to implement our ManagementService interface.
@@ -1090,6 +1219,7 @@ declare class SdkManagementService implements ManagementService {
1090
1219
  deleteTopic(topicId: string): Promise<void>;
1091
1220
  forceDeleteTopic(topicId: string, updatedBy?: string): Promise<DeleteResponse>;
1092
1221
  listTopics(): Promise<CustomTopic$1[]>;
1222
+ listLatestTopics(opts?: PaginationOptions): Promise<CustomTopic$1[]>;
1093
1223
  getTopic(topicId: string): Promise<CustomTopic$1>;
1094
1224
  getTopicByName(topicName: string): Promise<CustomTopic$1>;
1095
1225
  /**
@@ -1116,17 +1246,28 @@ declare class SdkManagementService implements ManagementService {
1116
1246
  getProfile(profileId: string): Promise<SecurityProfileInfo>;
1117
1247
  getProfileByName(profileName: string): Promise<SecurityProfileInfo>;
1118
1248
  listProfiles(opts?: PaginationOptions): Promise<SecurityProfileListResult>;
1249
+ listAllProfiles(opts?: Omit<PaginationOptions, 'offset'> & {
1250
+ max?: number;
1251
+ }): Promise<SecurityProfileInfo[]>;
1119
1252
  createProfile(request: CreateSecurityProfileRequest): Promise<SecurityProfileInfo>;
1120
1253
  updateProfile(profileId: string, request: CreateSecurityProfileRequest): Promise<SecurityProfileInfo>;
1121
1254
  deleteProfile(profileId: string): Promise<DeleteResponse>;
1122
1255
  forceDeleteProfile(profileId: string, updatedBy: string): Promise<DeleteResponse>;
1123
1256
  private normalizeApiKey;
1124
1257
  listApiKeys(opts?: PaginationOptions): Promise<ApiKeyListResult>;
1258
+ listAllApiKeys(opts?: {
1259
+ limit?: number;
1260
+ max?: number;
1261
+ }): Promise<ApiKeyInfo[]>;
1125
1262
  createApiKey(request: Record<string, unknown>): Promise<ApiKeyInfo>;
1126
1263
  regenerateApiKey(apiKeyId: string, request: Record<string, unknown>): Promise<ApiKeyInfo>;
1127
1264
  deleteApiKey(apiKeyName: string, updatedBy: string): Promise<DeleteResponse>;
1128
1265
  private normalizeCustomerApp;
1129
1266
  listCustomerApps(opts?: PaginationOptions): Promise<CustomerAppListResult>;
1267
+ listAllCustomerApps(opts?: {
1268
+ limit?: number;
1269
+ max?: number;
1270
+ }): Promise<CustomerAppInfo[]>;
1130
1271
  getCustomerApp(appName: string): Promise<CustomerAppInfo>;
1131
1272
  updateCustomerApp(appId: string, request: Record<string, unknown>): Promise<CustomerAppInfo>;
1132
1273
  deleteCustomerApp(appName: string, updatedBy: string): Promise<CustomerAppInfo>;
@@ -1152,6 +1293,9 @@ declare class SdkModelSecurityService implements ModelSecurityService {
1152
1293
  totalItems: number;
1153
1294
  groups: ModelSecurityGroup[];
1154
1295
  }>;
1296
+ listAllGroups(opts?: ModelSecurityGroupListOptions & {
1297
+ max?: number;
1298
+ }): Promise<ModelSecurityGroup[]>;
1155
1299
  getGroup(uuid: string): Promise<ModelSecurityGroup>;
1156
1300
  createGroup(request: ModelSecurityGroupCreateRequest): Promise<ModelSecurityGroup>;
1157
1301
  updateGroup(uuid: string, request: ModelSecurityGroupUpdateRequest): Promise<ModelSecurityGroup>;
@@ -1178,12 +1322,18 @@ declare class SdkModelSecurityService implements ModelSecurityService {
1178
1322
  totalItems: number;
1179
1323
  rules: ModelSecurityRule[];
1180
1324
  }>;
1325
+ listAllRules(opts?: ModelSecurityRuleListOptions & {
1326
+ max?: number;
1327
+ }): Promise<ModelSecurityRule[]>;
1181
1328
  getRule(uuid: string): Promise<ModelSecurityRule>;
1182
1329
  createScan(request: Record<string, unknown>): Promise<ModelSecurityScan>;
1183
1330
  listScans(opts?: ModelSecurityScanListOptions): Promise<{
1184
1331
  totalItems: number;
1185
1332
  scans: ModelSecurityScan[];
1186
1333
  }>;
1334
+ listAllScans(opts?: ModelSecurityScanListOptions & {
1335
+ max?: number;
1336
+ }): Promise<ModelSecurityScan[]>;
1187
1337
  getScan(uuid: string): Promise<ModelSecurityScan>;
1188
1338
  getEvaluations(scanUuid: string, opts?: {
1189
1339
  skip?: number;
@@ -1227,6 +1377,9 @@ declare class SdkModelSecurityService implements ModelSecurityService {
1227
1377
  totalItems: number;
1228
1378
  models: ModelSecurityModel[];
1229
1379
  }>;
1380
+ listAllModels(opts?: ModelSecurityModelListOptions & {
1381
+ max?: number;
1382
+ }): Promise<ModelSecurityModel[]>;
1230
1383
  getModel(uuid: string): Promise<ModelSecurityModel>;
1231
1384
  listModelVersions(modelUuid: string, opts?: ModelSecurityModelVersionListOptions): Promise<{
1232
1385
  totalItems: number;
@@ -1301,10 +1454,6 @@ declare class SdkPromptSetService implements PromptSetService {
1301
1454
  createPropertyValue(name: string, value: string): Promise<MutationResponse>;
1302
1455
  }
1303
1456
 
1304
- /**
1305
- * Wraps the SDK's RedTeamClient to implement RedTeamService.
1306
- * Provides scan creation, status polling, report retrieval, and target/category listing.
1307
- */
1308
1457
  declare class SdkRedTeamService implements RedTeamService {
1309
1458
  private client;
1310
1459
  constructor(opts?: RedTeamClientOptions);
@@ -1346,6 +1495,14 @@ declare class SdkRedTeamService implements RedTeamService {
1346
1495
  jobType?: string;
1347
1496
  targetId?: string;
1348
1497
  limit?: number;
1498
+ offset?: number;
1499
+ }): Promise<RedTeamJob[]>;
1500
+ listAllScans(opts?: {
1501
+ status?: string;
1502
+ jobType?: string;
1503
+ targetId?: string;
1504
+ limit?: number;
1505
+ max?: number;
1349
1506
  }): Promise<RedTeamJob[]>;
1350
1507
  abortScan(jobId: string): Promise<void>;
1351
1508
  getStaticReport(jobId: string): Promise<RedTeamStaticReport>;
@@ -1367,6 +1524,9 @@ declare class SdkRedTeamService implements RedTeamService {
1367
1524
  channels: RedTeamChannel[];
1368
1525
  totalItems?: number;
1369
1526
  }>;
1527
+ listAllChannels(opts?: RedTeamChannelListOptions & {
1528
+ max?: number;
1529
+ }): Promise<RedTeamChannel[]>;
1370
1530
  getChannel(channelId: string): Promise<RedTeamChannel>;
1371
1531
  createChannel(request: RedTeamChannelCreateRequest): Promise<RedTeamChannel>;
1372
1532
  updateChannel(channelId: string, request: RedTeamChannelUpdateRequest): Promise<RedTeamChannel>;
@@ -1380,6 +1540,18 @@ declare class SdkRedTeamService implements RedTeamService {
1380
1540
  logs: RedTeamErrorLog[];
1381
1541
  totalItems?: number;
1382
1542
  }>;
1543
+ listAdapters(opts?: RedTeamAdapterListOptions): Promise<{
1544
+ adapters: RedTeamAdapterListItem[];
1545
+ totalItems?: number;
1546
+ }>;
1547
+ listAllAdapters(opts?: RedTeamAdapterListOptions & {
1548
+ max?: number;
1549
+ }): Promise<RedTeamAdapterListItem[]>;
1550
+ getAdapter(uuid: string): Promise<RedTeamAdapterDetail>;
1551
+ createAdapter(request: RedTeamAdapterCreateRequest, validate?: boolean): Promise<RedTeamAdapterDetail>;
1552
+ updateAdapter(uuid: string, overrides: RedTeamAdapterUpdateOverrides, validate?: boolean): Promise<RedTeamAdapterDetail>;
1553
+ deleteAdapter(uuid: string): Promise<void>;
1554
+ validateAdapter(request: RedTeamAdapterValidateRequest): Promise<RedTeamAdapterValidationResult>;
1383
1555
  }
1384
1556
 
1385
1557
  /** Maximum async request objects accepted by the installed AIRS SDK. */
@@ -1482,7 +1654,11 @@ declare const ConfigSchema: z.ZodObject<{
1482
1654
  modelSecDataEndpoint: z.ZodOptional<z.ZodString>;
1483
1655
  modelSecMgmtEndpoint: z.ZodOptional<z.ZodString>;
1484
1656
  modelSecTokenEndpoint: z.ZodOptional<z.ZodString>;
1657
+ aiGwDataEndpoint: z.ZodOptional<z.ZodString>;
1658
+ aiGwAdminEndpoint: z.ZodOptional<z.ZodString>;
1659
+ aiGwTokenEndpoint: z.ZodOptional<z.ZodString>;
1485
1660
  scanConcurrency: z.ZodDefault<z.ZodNumber>;
1661
+ defaultOutput: z.ZodOptional<z.ZodEnum<["pretty", "table", "markdown", "csv", "json", "yaml"]>>;
1486
1662
  dataDir: z.ZodDefault<z.ZodString>;
1487
1663
  }, "strip", z.ZodTypeAny, {
1488
1664
  scanConcurrency: number;
@@ -1504,6 +1680,10 @@ declare const ConfigSchema: z.ZodObject<{
1504
1680
  modelSecDataEndpoint?: string | undefined;
1505
1681
  modelSecMgmtEndpoint?: string | undefined;
1506
1682
  modelSecTokenEndpoint?: string | undefined;
1683
+ aiGwDataEndpoint?: string | undefined;
1684
+ aiGwAdminEndpoint?: string | undefined;
1685
+ aiGwTokenEndpoint?: string | undefined;
1686
+ defaultOutput?: "json" | "yaml" | "pretty" | "table" | "markdown" | "csv" | undefined;
1507
1687
  }, {
1508
1688
  airsApiKey?: string | undefined;
1509
1689
  airsApiToken?: string | undefined;
@@ -1522,7 +1702,11 @@ declare const ConfigSchema: z.ZodObject<{
1522
1702
  modelSecDataEndpoint?: string | undefined;
1523
1703
  modelSecMgmtEndpoint?: string | undefined;
1524
1704
  modelSecTokenEndpoint?: string | undefined;
1705
+ aiGwDataEndpoint?: string | undefined;
1706
+ aiGwAdminEndpoint?: string | undefined;
1707
+ aiGwTokenEndpoint?: string | undefined;
1525
1708
  scanConcurrency?: number | undefined;
1709
+ defaultOutput?: "json" | "yaml" | "pretty" | "table" | "markdown" | "csv" | undefined;
1526
1710
  dataDir?: string | undefined;
1527
1711
  }>;
1528
1712
  type Config = z.infer<typeof ConfigSchema>;
@@ -1646,4 +1830,4 @@ declare function computeMetrics(results: TestResult[]): EfficacyMetrics;
1646
1830
  /** Compute per-category error breakdown from test results. Sorted by error rate descending. */
1647
1831
  declare function computeCategoryBreakdown(results: TestResult[]): CategoryBreakdown[];
1648
1832
 
1649
- export { AirsScanService, type AnalysisReport, type BackupEnvelope, type BackupFormat, type BackupResult, type BatchEntry, type BulkScanAction, type BulkScanResult, type CategoryBreakdown, type CustomTopic, type EfficacyMetrics, type IndexedPrompt, type IterationResult, type ModelSecurityEvaluation, type ModelSecurityFile, type ModelSecurityFileListOptions, type ModelSecurityGroup, type ModelSecurityGroupCreateRequest, type ModelSecurityGroupListOptions, type ModelSecurityGroupUpdateRequest, type ModelSecurityLabel, type ModelSecurityPyPIAuth, type ModelSecurityRule, type ModelSecurityRuleEditableField, type ModelSecurityRuleInstance, type ModelSecurityRuleInstanceListOptions, type ModelSecurityRuleInstanceUpdateRequest, type ModelSecurityRuleListOptions, type ModelSecurityScan, type ModelSecurityScanListOptions, type ModelSecurityService, type ModelSecurityViolation, type MutationResponse, type PollRetryOptions, type ProfileTopic, type PromptDetail, type PromptSetDetail, type PromptSetService, type PromptSetVersionInfo, type PropertyValueList, type RedTeamAttack, type RedTeamCategory, type RedTeamCustomAttack, type RedTeamCustomReport, type RedTeamJob, type RedTeamService, type RedTeamStaticReport, type RedTeamTarget, type RedTeamTargetCreateRequest, type RedTeamTargetDetail, type RedTeamTargetUpdateRequest, type ReliableRuntimeService, type ResourceType, type RestoreResult, type RunState, type RuntimeScanResult, type RuntimeService, SDK_ASYNC_BATCH_SIZE, SdkManagementService, SdkModelSecurityService, SdkPromptSetService, SdkRedTeamService, SdkRuntimeService, type SubmittedBatch, type TargetOperationOptions, type TestCase, type TestResult, type UserInput, type ValidationError, computeCategoryBreakdown, computeMetrics, loadConfig, readBackupDir, readBackupFile, resolveOutputDir, sanitizeFilename, validateDescription, validateExamples, validateName, validateTopic, writeBackupFile };
1833
+ export { AirsScanService, type AnalysisReport, type ApiKeyInfo, type ApiKeyListResult, type BackupEnvelope, type BackupFormat, type BackupResult, type BatchEntry, type BulkScanAction, type BulkScanResult, type CategoryBreakdown, type ConsumptionAppListEntry, type ConsumptionQueryOptions, type ConsumptionTimeInterval, type CustomTopic, type CustomerAppConsumption, type CustomerAppInfo, type CustomerAppListResult, type DeleteResponse, type DeploymentProfileInfo, type EfficacyMetrics, type EulaContent, type EulaStatus, type IndexedPrompt, type InstanceDetail, type InstanceRequest, type InstanceResponse, type IterationResult, type ManagementService, type ModelSecurityEvaluation, type ModelSecurityFile, type ModelSecurityFileListOptions, type ModelSecurityGroup, type ModelSecurityGroupCreateRequest, type ModelSecurityGroupListOptions, type ModelSecurityGroupUpdateRequest, type ModelSecurityLabel, type ModelSecurityModel, type ModelSecurityModelListOptions, type ModelSecurityModelVersion, type ModelSecurityModelVersionListOptions, type ModelSecurityPyPIAuth, type ModelSecurityRule, type ModelSecurityRuleEditableField, type ModelSecurityRuleInstance, type ModelSecurityRuleInstanceListOptions, type ModelSecurityRuleInstanceUpdateRequest, type ModelSecurityRuleListOptions, type ModelSecurityScan, type ModelSecurityScanListOptions, type ModelSecurityService, type ModelSecurityViolation, type MutationResponse, type PaginationOptions, type PollRetryOptions, type ProfileTopic, type PromptDetail, type PromptSetDetail, type PromptSetService, type PromptSetVersionInfo, type PropertyValueList, type RedTeamAdapterCreateRequest, type RedTeamAdapterDetail, type RedTeamAdapterListItem, type RedTeamAdapterListOptions, type RedTeamAdapterUpdateOverrides, type RedTeamAdapterValidateRequest, type RedTeamAdapterValidationResult, type RedTeamAdapterVar, type RedTeamAttack, type RedTeamCategory, type RedTeamChannel, type RedTeamChannelCreateRequest, type RedTeamChannelListOptions, type RedTeamChannelStats, type RedTeamChannelUpdateRequest, type RedTeamCustomAttack, type RedTeamCustomReport, type RedTeamDynamicReport, type RedTeamErrorLog, type RedTeamJob, type RedTeamLanguages, type RedTeamService, type RedTeamStaticReport, type RedTeamTarget, type RedTeamTargetCreateRequest, type RedTeamTargetDetail, type RedTeamTargetUpdateRequest, type RegistryCredentials, type ReliableRuntimeService, type ResourceType, type RestoreResult, type RunState, type RuntimeScanResult, type RuntimeService, SDK_ASYNC_BATCH_SIZE, type ScanLogQueryOptions, type ScanLogQueryResult, type ScanResult, type ScanService, SdkManagementService, SdkModelSecurityService, SdkPromptSetService, SdkRedTeamService, SdkRuntimeService, type SecurityProfileInfo, type SecurityProfileListResult, type SubmittedBatch, type TargetAuthValidationRequest, type TargetAuthValidationResult, type TargetOperationOptions, type TestCase, type TestResult, type UserInput, type ValidationError, computeCategoryBreakdown, computeMetrics, loadConfig, readBackupDir, readBackupFile, resolveOutputDir, sanitizeFilename, validateDescription, validateExamples, validateName, validateTopic, writeBackupFile };
package/dist/index.js CHANGED
@@ -18,7 +18,7 @@ import {
18
18
  validateName,
19
19
  validateTopic,
20
20
  writeBackupFile
21
- } from "./chunk-TTBN7YHC.js";
21
+ } from "./chunk-W5YDJS7H.js";
22
22
  export {
23
23
  AirsScanService,
24
24
  SDK_ASYNC_BATCH_SIZE,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cdot65/prisma-airs-cli",
3
3
  "packageManager": "pnpm@10.6.5",
4
- "version": "3.2.0",
4
+ "version": "4.0.0",
5
5
  "description": "CLI and library for Palo Alto Prisma AIRS — guardrail refinement, AI red teaming, model security scanning, profile audits",
6
6
  "type": "module",
7
7
  "main": "dist/index.js",
@@ -29,11 +29,23 @@
29
29
  "docker:build:arm64": "docker buildx build -f docker/Dockerfile --platform linux/arm64 --load -t prisma-airs-cli:local-arm64 .",
30
30
  "docker:run": "docker run --rm -v ~/.prisma-airs:/root/.prisma-airs prisma-airs-cli:local",
31
31
  "docker:push:arm64": "./docker/docker-push-arm64.sh",
32
+ "container:dev": "container run --rm -it -v \"$PWD\":/work -w /work node:20-alpine sh",
32
33
  "docs:api": "typedoc",
33
34
  "docs:install": "pnpm -C docs-site install",
34
35
  "docs:build": "pnpm docs:api && pnpm -C docs-site build",
35
36
  "docs:serve": "pnpm docs:api && pnpm -C docs-site start",
36
- "build:tsc": "tsc"
37
+ "build:tsc": "tsc",
38
+ "local:setup": "pnpm install && pnpm run build",
39
+ "local:built:version": "node dist/cli/index.js --version",
40
+ "local:built:help": "node dist/cli/index.js --help",
41
+ "local:smoke": "pnpm run build && pnpm local:built:version && pnpm local:built:help",
42
+ "local:dev:help": "tsx src/cli/index.ts --help",
43
+ "local:dev:profiles": "tsx src/cli/index.ts runtime profiles list --output json",
44
+ "local:dev:topics": "tsx src/cli/index.ts runtime topics list --all --output yaml",
45
+ "local:dev:doctor": "tsx src/cli/index.ts doctor --output markdown",
46
+ "local:link": "pnpm run build && pnpm link --global",
47
+ "local:link:check": "airs --version",
48
+ "local:unlink": "pnpm uninstall --global @cdot65/prisma-airs-cli"
37
49
  },
38
50
  "engines": {
39
51
  "node": ">=20.0.0"
@@ -44,7 +56,7 @@
44
56
  },
45
57
  "license": "MIT",
46
58
  "dependencies": {
47
- "@cdot65/prisma-airs-sdk": "^0.13.2",
59
+ "@cdot65/prisma-airs-sdk": "^0.18.0",
48
60
  "@inquirer/prompts": "^8.3.0",
49
61
  "chalk": "^5.6.2",
50
62
  "commander": "^14.0.3",