@cdot65/prisma-airs-sdk 0.6.0 → 0.6.1
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 +44 -29
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +45 -6
- package/dist/index.d.ts +45 -6
- package/dist/index.js +44 -29
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -33093,8 +33093,8 @@ declare const MAX_NUMBER_OF_BATCH_SCAN_OBJECTS = 5;
|
|
|
33093
33093
|
declare const MAX_CONNECTION_POOL_SIZE = 100;
|
|
33094
33094
|
declare const MAX_NUMBER_OF_RETRIES = 5;
|
|
33095
33095
|
declare const HTTP_FORCE_RETRY_STATUS_CODES: number[];
|
|
33096
|
-
declare const SDK_VERSION = "0.6.
|
|
33097
|
-
declare const USER_AGENT = "PAN-AIRS/0.6.
|
|
33096
|
+
declare const SDK_VERSION = "0.6.1";
|
|
33097
|
+
declare const USER_AGENT = "PAN-AIRS/0.6.1-typescript-sdk";
|
|
33098
33098
|
declare const DEFAULT_MGMT_ENDPOINT = "https://api.sase.paloaltonetworks.com/aisec";
|
|
33099
33099
|
declare const DEFAULT_TOKEN_ENDPOINT = "https://auth.apps.paloaltonetworks.com/oauth2/access_token";
|
|
33100
33100
|
declare const MGMT_CLIENT_ID = "PANW_MGMT_CLIENT_ID";
|
|
@@ -33462,6 +33462,34 @@ declare class ModelSecurityScansClient {
|
|
|
33462
33462
|
getViolation(uuid: string): Promise<ViolationResponse>;
|
|
33463
33463
|
}
|
|
33464
33464
|
|
|
33465
|
+
/** Options for listing security groups. */
|
|
33466
|
+
interface ModelSecurityGroupListOptions {
|
|
33467
|
+
/** Number of items to skip. */
|
|
33468
|
+
skip?: number;
|
|
33469
|
+
/** Maximum number of items to return (1-100). */
|
|
33470
|
+
limit?: number;
|
|
33471
|
+
/** Field to sort by: 'created_at' or 'updated_at'. */
|
|
33472
|
+
sort_field?: string;
|
|
33473
|
+
/** Sort direction: 'asc' or 'desc'. */
|
|
33474
|
+
sort_dir?: string;
|
|
33475
|
+
/** Filter by source types. */
|
|
33476
|
+
source_types?: string[];
|
|
33477
|
+
/** Search term (matches UUID or Name, 3-1000 chars). */
|
|
33478
|
+
search_query?: string;
|
|
33479
|
+
/** Filter by rule UUIDs with ALLOWING or BLOCKING state. */
|
|
33480
|
+
enabled_rules?: string[];
|
|
33481
|
+
}
|
|
33482
|
+
/** Options for listing rule instances within a security group. */
|
|
33483
|
+
interface ModelSecurityRuleInstanceListOptions {
|
|
33484
|
+
/** Number of items to skip. */
|
|
33485
|
+
skip?: number;
|
|
33486
|
+
/** Maximum number of items to return. */
|
|
33487
|
+
limit?: number;
|
|
33488
|
+
/** Filter by security rule UUID. */
|
|
33489
|
+
security_rule_uuid?: string;
|
|
33490
|
+
/** Filter by rule state: 'DISABLED', 'ALLOWING', or 'BLOCKING'. */
|
|
33491
|
+
state?: string;
|
|
33492
|
+
}
|
|
33465
33493
|
/** @internal */
|
|
33466
33494
|
interface ModelSecurityGroupsClientOptions {
|
|
33467
33495
|
baseUrl: string;
|
|
@@ -33485,7 +33513,7 @@ declare class ModelSecurityGroupsClient {
|
|
|
33485
33513
|
* @param opts - Pagination and filter options.
|
|
33486
33514
|
* @returns Paginated list of security groups.
|
|
33487
33515
|
*/
|
|
33488
|
-
list(opts?:
|
|
33516
|
+
list(opts?: ModelSecurityGroupListOptions): Promise<ListModelSecurityGroupsResponse>;
|
|
33489
33517
|
/**
|
|
33490
33518
|
* Get a single security group by UUID.
|
|
33491
33519
|
* @param uuid - Security group UUID.
|
|
@@ -33510,7 +33538,7 @@ declare class ModelSecurityGroupsClient {
|
|
|
33510
33538
|
* @param opts - Pagination options.
|
|
33511
33539
|
* @returns Paginated list of rule instances.
|
|
33512
33540
|
*/
|
|
33513
|
-
listRuleInstances(securityGroupUuid: string, opts?:
|
|
33541
|
+
listRuleInstances(securityGroupUuid: string, opts?: ModelSecurityRuleInstanceListOptions): Promise<ListModelSecurityRuleInstancesResponse>;
|
|
33514
33542
|
/**
|
|
33515
33543
|
* Get a single rule instance within a security group.
|
|
33516
33544
|
* @param securityGroupUuid - Security group UUID.
|
|
@@ -33528,6 +33556,17 @@ declare class ModelSecurityGroupsClient {
|
|
|
33528
33556
|
updateRuleInstance(securityGroupUuid: string, ruleInstanceUuid: string, request: ModelSecurityRuleInstanceUpdateRequest): Promise<ModelSecurityRuleInstanceResponse>;
|
|
33529
33557
|
}
|
|
33530
33558
|
|
|
33559
|
+
/** Options for listing security rules. */
|
|
33560
|
+
interface ModelSecurityRuleListOptions {
|
|
33561
|
+
/** Number of items to skip. */
|
|
33562
|
+
skip?: number;
|
|
33563
|
+
/** Maximum number of items to return. */
|
|
33564
|
+
limit?: number;
|
|
33565
|
+
/** Filter by source type. */
|
|
33566
|
+
source_type?: string;
|
|
33567
|
+
/** Search term (matches UUID or Name, 3-1000 chars). */
|
|
33568
|
+
search_query?: string;
|
|
33569
|
+
}
|
|
33531
33570
|
/** @internal */
|
|
33532
33571
|
interface ModelSecurityRulesClientOptions {
|
|
33533
33572
|
baseUrl: string;
|
|
@@ -33545,7 +33584,7 @@ declare class ModelSecurityRulesClient {
|
|
|
33545
33584
|
* @param opts - Pagination options.
|
|
33546
33585
|
* @returns Paginated list of security rules.
|
|
33547
33586
|
*/
|
|
33548
|
-
list(opts?:
|
|
33587
|
+
list(opts?: ModelSecurityRuleListOptions): Promise<ListModelSecurityRulesResponse>;
|
|
33549
33588
|
/**
|
|
33550
33589
|
* Get a single security rule by UUID.
|
|
33551
33590
|
* @param uuid - Security rule UUID.
|
|
@@ -33873,4 +33912,4 @@ declare class RedTeamClient {
|
|
|
33873
33912
|
getDashboardOverview(): Promise<DashboardOverviewResponse>;
|
|
33874
33913
|
}
|
|
33875
33914
|
|
|
33876
|
-
export { AISecSDKException, AI_SEC_API_ENDPOINT, AI_SEC_API_KEY, AI_SEC_API_TOKEN, ASYNC_SCAN_PATH, Action, Action as ActionType, type AgentMeta, AgentMetaSchema, type AiProfile, AiProfileSchema, ApiEndpointType, type AsyncScanObject, AsyncScanObjectSchema, type AsyncScanResponse, AsyncScanResponseSchema, type AttackDetailResponse, AttackDetailResponseSchema, type AttackListItem, AttackListItemSchema, type AttackListOptions, type AttackListResponse, AttackListResponseSchema, type AttackMultiTurnDetailResponse, AttackMultiTurnDetailResponseSchema, type AttackMultiTurnOutput, AttackMultiTurnOutputSchema, type AttackOutput, AttackOutputSchema, AttackStatus, AttackType, AuthType, BEARER, type BaseResponse, BaseResponseSchema, type BedrockAccessConnectionParams, BedrockAccessConnectionParamsSchema, BrandSubCategory, Category, type CategoryModel, CategoryModelSchema, type CategoryReport, CategoryReportSchema, Category as CategoryType, type ComplianceReport, ComplianceReportSchema, ComplianceSubCategory, type ComplianceTechnique, ComplianceTechniqueSchema, type ConnectionParams, ConnectionParamsSchema, Content, type ContentOptions, type CountByName, CountByNameSchema, CountedQuotaEnum, type CreateCustomTopicRequest, CreateCustomTopicRequestSchema, type CreateSecurityProfileRequest, CreateSecurityProfileRequestSchema, type CustomAttackOutput, CustomAttackOutputSchema, type CustomAttackReportResponse, CustomAttackReportResponseSchema, type CustomAttacksListResponse, CustomAttacksListResponseSchema, type CustomJobMetadata, CustomJobMetadataSchema, type CustomPromptCreateRequest, CustomPromptCreateRequestSchema, type CustomPromptList, type CustomPromptListItem, CustomPromptListItemSchema, CustomPromptListSchema, type CustomPromptResponse, CustomPromptResponseSchema, type CustomPromptSetArchiveRequest, CustomPromptSetArchiveRequestSchema, type CustomPromptSetCreateRequest, CustomPromptSetCreateRequestSchema, type CustomPromptSetList, type CustomPromptSetListActive, CustomPromptSetListActiveSchema, type CustomPromptSetListItem, CustomPromptSetListItemSchema, CustomPromptSetListSchema, type CustomPromptSetReference, CustomPromptSetReferenceSchema, type CustomPromptSetResponse, CustomPromptSetResponseSchema, type CustomPromptSetUpdateRequest, CustomPromptSetUpdateRequestSchema, type CustomPromptSetVersionInfo, CustomPromptSetVersionInfoSchema, type CustomPromptUpdateRequest, CustomPromptUpdateRequestSchema, type CustomTopic, type CustomTopicListResponse, CustomTopicListResponseSchema, CustomTopicSchema, DEFAULT_ENDPOINT, DEFAULT_MGMT_ENDPOINT, DEFAULT_MODEL_SEC_DATA_ENDPOINT, DEFAULT_MODEL_SEC_MGMT_ENDPOINT, DEFAULT_RED_TEAM_DATA_ENDPOINT, DEFAULT_RED_TEAM_MGMT_ENDPOINT, DEFAULT_TOKEN_ENDPOINT, type DSDetailResult, DSDetailResultSchema, type DSResultMetadata, DSResultMetadataSchema, type DashboardOverviewResponse, DashboardOverviewResponseSchema, type DatabricksConnectionParams, DatabricksConnectionParamsSchema, DateRangeFilter, type DeleteProfileConflict, DeleteProfileConflictSchema, type DeleteProfileResponse, DeleteProfileResponseSchema, type DeleteTopicConflict, DeleteTopicConflictSchema, type DeleteTopicResponse, DeleteTopicResponseSchema, type DetectionServiceResult, DetectionServiceResultSchema, type DlpReport, DlpReportSchema, type DynamicJobMetadata, DynamicJobMetadataSchema, type DynamicJobReport, DynamicJobReportSchema, type DynamicJobReportStats, DynamicJobReportStatsSchema, ErrorCodes, type ErrorLog, type ErrorLogListResponse, ErrorLogListResponseSchema, ErrorLogSchema, type ErrorResponse, ErrorResponseSchema, ErrorSource, ErrorType, EvalOutcome, type EvalSummary, EvalSummarySchema, FileFormat, type FileList, FileListSchema, type FileResponse, FileResponseSchema, type FileScanData, FileScanDataSchema, FileScanResult, FileType, type Goal, type GoalListOptions, type GoalListResponse, GoalListResponseSchema, GoalSchema, GoalType, GoalTypeQueryParam, GuardrailAction, HEADER_API_KEY, HEADER_AUTH_TOKEN, type HTTPValidationError, HTTPValidationErrorSchema, HTTP_FORCE_RETRY_STATUS_CODES, type HuggingfaceConnectionParams, HuggingfaceConnectionParamsSchema, type IODetected, IODetectedSchema, type InitOptions, type JobAbortResponse, JobAbortResponseSchema, type JobCreateRequest, JobCreateRequestSchema, type JobListResponse, JobListResponseSchema, type JobResponse, JobResponseSchema, JobStatus, JobStatusFilter, type JobTimeRecord, JobTimeRecordSchema, JobType, type Label, type LabelKeyList, LabelKeyListSchema, LabelSchema, type LabelValueList, LabelValueListSchema, type LabelsCreateRequest, LabelsCreateRequestSchema, type LabelsResponse, LabelsResponseSchema, type ListModelSecurityGroupsResponse, ListModelSecurityGroupsResponseSchema, type ListModelSecurityRuleInstancesResponse, ListModelSecurityRuleInstancesResponseSchema, type ListModelSecurityRulesResponse, ListModelSecurityRulesResponseSchema, MAX_AI_PROFILE_NAME_LENGTH, MAX_API_KEY_LENGTH, MAX_CONNECTION_POOL_SIZE, MAX_CONTENT_CONTEXT_LENGTH, MAX_CONTENT_PROMPT_LENGTH, MAX_CONTENT_RESPONSE_LENGTH, MAX_NUMBER_OF_BATCH_SCAN_OBJECTS, MAX_NUMBER_OF_REPORT_IDS, MAX_NUMBER_OF_RETRIES, MAX_NUMBER_OF_SCAN_IDS, MAX_REPORT_ID_STR_LENGTH, MAX_SCAN_ID_STR_LENGTH, MAX_SESSION_ID_STR_LENGTH, MAX_TOKEN_LENGTH, MAX_TRANSACTION_ID_STR_LENGTH, MGMT_CLIENT_ID, MGMT_CLIENT_SECRET, MGMT_ENDPOINT, MGMT_PROFILES_TSG_PATH, MGMT_PROFILE_PATH, MGMT_TOKEN_ENDPOINT, MGMT_TOPICS_TSG_PATH, MGMT_TOPIC_FORCE_PATH, MGMT_TOPIC_PATH, MGMT_TSG_ID, MODEL_SEC_CLIENT_ID, MODEL_SEC_CLIENT_SECRET, MODEL_SEC_DATA_ENDPOINT, MODEL_SEC_EVALUATIONS_PATH, MODEL_SEC_MGMT_ENDPOINT, MODEL_SEC_PYPI_AUTH_PATH, MODEL_SEC_SCANS_PATH, MODEL_SEC_SECURITY_GROUPS_PATH, MODEL_SEC_SECURITY_RULES_PATH, MODEL_SEC_TOKEN_ENDPOINT, MODEL_SEC_TSG_ID, MODEL_SEC_VIOLATIONS_PATH, ManagementClient, type ManagementClientOptions, type MaskedData, MaskedDataSchema, type Metadata, MetadataSchema, type ModelScanIssue, ModelScanIssueSchema, ModelScanStatus, ModelSecurityClient, type ModelSecurityClientOptions, type ModelSecurityFileListOptions, type ModelSecurityGroupCreateRequest, ModelSecurityGroupCreateRequestSchema, type ModelSecurityGroupResponse, ModelSecurityGroupResponseSchema, ModelSecurityGroupState, type ModelSecurityGroupUpdateRequest, ModelSecurityGroupUpdateRequestSchema, ModelSecurityGroupsClient, type ModelSecurityListOptions, type ModelSecurityPagination, ModelSecurityPaginationSchema, type ModelSecurityRuleInstanceResponse, ModelSecurityRuleInstanceResponseSchema, type ModelSecurityRuleInstanceUpdateRequest, ModelSecurityRuleInstanceUpdateRequestSchema, type ModelSecurityRuleResponse, ModelSecurityRuleResponseSchema, ModelSecurityRulesClient, type ModelSecurityScanListOptions, ModelSecurityScansClient, type MultiTurnStatefulConfig, MultiTurnStatefulConfigSchema, type MultiTurnStatelessConfig, MultiTurnStatelessConfigSchema, OAuthClient, type OAuthClientOptions, type OpenAIConnectionParams, OpenAIConnectionParamsSchema, PAYLOAD_HASH, type PaginationOptions, type Policy, PolicySchema, PolicyType, type PrerequisiteModel, PrerequisiteModelSchema, ProfilesClient, ProfilingStatus, type PromptDetailResponse, PromptDetailResponseSchema, type PromptDetected, PromptDetectedSchema, type PromptDetectionDetails, PromptDetectionDetailsSchema, type PromptListOptions, type PromptSetListOptions, type PromptSetStats, PromptSetStatsSchema, type PromptSetSummary, PromptSetSummarySchema, type PromptSetsReportResponse, PromptSetsReportResponseSchema, type PropertyAssignment, PropertyAssignmentSchema, type PropertyDefinition, PropertyDefinitionSchema, type PropertyNameCreateRequest, PropertyNameCreateRequestSchema, type PropertyNamesListResponse, PropertyNamesListResponseSchema, type PropertyStatistic, PropertyStatisticSchema, type PropertyValueCreateRequest, PropertyValueCreateRequestSchema, type PropertyValueStatistic, PropertyValueStatisticSchema, type PropertyValuesMultipleResponse, PropertyValuesMultipleResponseSchema, type PropertyValuesResponse, PropertyValuesResponseSchema, type PyPIAuthResponse, PyPIAuthResponseSchema, type QuotaDetails, QuotaDetailsSchema, type QuotaSummary, QuotaSummarySchema, RED_TEAM_CATEGORIES_PATH, RED_TEAM_CLIENT_ID, RED_TEAM_CLIENT_SECRET, RED_TEAM_CUSTOM_ATTACKS_REPORT_PATH, RED_TEAM_CUSTOM_ATTACK_PATH, RED_TEAM_DASHBOARD_PATH, RED_TEAM_DATA_ENDPOINT, RED_TEAM_ERROR_LOG_PATH, RED_TEAM_MGMT_DASHBOARD_PATH, RED_TEAM_MGMT_ENDPOINT, RED_TEAM_QUOTA_PATH, RED_TEAM_REPORT_DYNAMIC_PATH, RED_TEAM_REPORT_PATH, RED_TEAM_REPORT_STATIC_PATH, RED_TEAM_SCAN_PATH, RED_TEAM_SENTIMENT_PATH, RED_TEAM_TARGET_PATH, RED_TEAM_TOKEN_ENDPOINT, RED_TEAM_TSG_ID, RedTeamCategory, RedTeamClient, type RedTeamClientOptions, RedTeamCustomAttackReportsClient, RedTeamCustomAttacksClient, RedTeamErrorType, type RedTeamListOptions, type RedTeamPagination, RedTeamPaginationSchema, RedTeamReportsClient, type RedTeamScanListOptions, RedTeamScansClient, RedTeamTargetsClient, type RemediationDetail, RemediationDetailSchema, type RemediationResponse, RemediationResponseSchema, type ResponseDetected, ResponseDetectedSchema, type ResponseDetectionDetails, ResponseDetectionDetailsSchema, ResponseMode, type RestConnectionParams, RestConnectionParamsSchema, type RiskLevel, RiskLevelSchema, RiskRating, type RuleConfiguration, RuleConfigurationSchema, type RuleEditableField, type RuleEditableFieldDropdown, RuleEditableFieldDropdownSchema, RuleEditableFieldSchema, RuleEditableFieldType, type RuleEvaluationList, RuleEvaluationListSchema, type RuleEvaluationResponse, RuleEvaluationResponseSchema, RuleEvaluationResult, RuleFieldValueKey, type RuleRemediation, RuleRemediationSchema, RuleState, RuleType, type RuntimeSecurityPolicy, RuntimeSecurityPolicySchema, type RuntimeSecurityProfileResponse, RuntimeSecurityProfileResponseSchema, SCAN_REPORTS_PATH, SCAN_RESULTS_PATH, SDK_VERSION, SYNC_SCAN_PATH, SafetySubCategory, type ScanBaseResponse, ScanBaseResponseSchema, type ScanCreateRequest, ScanCreateRequestSchema, type ScanDetails, ScanDetailsSchema, type ScanIdResult, ScanIdResultSchema, type ScanList, ScanListSchema, ScanOrigin, type ScanRequest, type ScanRequestContentsInner, ScanRequestContentsInnerSchema, ScanRequestSchema, type ScanResponse, ScanResponseSchema, type ScanStatisticsResponse, ScanStatisticsResponseSchema, type ScanSummary, ScanSummarySchema, Scanner, type ScoreTrendResponse, ScoreTrendResponseSchema, type ScoreTrendSeries, ScoreTrendSeriesSchema, type SecurityProfile, type SecurityProfileListResponse, SecurityProfileListResponseSchema, SecurityProfileSchema, SecuritySubCategory, type SentimentRequest, SentimentRequestSchema, type SentimentResponse, SentimentResponseSchema, SeverityFilter, type SeverityReport, SeverityReportSchema, type SeverityStats, SeverityStatsSchema, SortByDateField, SortByFileField, SortDirection, SourceType, type StaticJobMetadata, StaticJobMetadataSchema, type StaticJobRemediation, type StaticJobRemediationRecommendation, StaticJobRemediationRecommendationSchema, StaticJobRemediationSchema, type StaticJobReport, StaticJobReportSchema, type StaticJobReportStats, StaticJobReportStatsSchema, StatusQueryParam, type StreamDetailResponse, StreamDetailResponseSchema, type StreamIterationData, StreamIterationDataSchema, type StreamListResponse, StreamListResponseSchema, StreamType, type StreamingConnectionParams, StreamingConnectionParamsSchema, type SubCategoryModel, SubCategoryModelSchema, type SubCategoryStats, SubCategoryStatsSchema, type SyncScanOptions, type TargetAdditionalContext, TargetAdditionalContextSchema, type TargetBackground, TargetBackgroundSchema, TargetConnectionType, type TargetContextUpdate, TargetContextUpdateSchema, type TargetCreateRequest, TargetCreateRequestSchema, type TargetJobRequest, TargetJobRequestSchema, type TargetList, type TargetListItem, TargetListItemSchema, type TargetListOptions, TargetListSchema, type TargetMetadata, TargetMetadataSchema, type TargetOperationOptions, type TargetProbeRequest, TargetProbeRequestSchema, type TargetProfileResponse, TargetProfileResponseSchema, type TargetReference, TargetReferenceSchema, type TargetResponse, TargetResponseSchema, TargetStatus, TargetType, type TargetUpdateRequest, TargetUpdateRequestSchema, ThreatCategory, type ThreatScanReport, ThreatScanReportSchema, type TokenInfo, type ToolDetected, ToolDetectedSchema, type ToolEvent, type ToolEventMetadata, ToolEventMetadataSchema, ToolEventSchema, TopicsClient, USER_AGENT, type UrlfEntry, UrlfEntrySchema, type ValidationError, ValidationErrorSchema, Verdict, Verdict as VerdictType, type ViolationList, ViolationListSchema, type ViolationResponse, ViolationResponseSchema, globalConfiguration, init };
|
|
33915
|
+
export { AISecSDKException, AI_SEC_API_ENDPOINT, AI_SEC_API_KEY, AI_SEC_API_TOKEN, ASYNC_SCAN_PATH, Action, Action as ActionType, type AgentMeta, AgentMetaSchema, type AiProfile, AiProfileSchema, ApiEndpointType, type AsyncScanObject, AsyncScanObjectSchema, type AsyncScanResponse, AsyncScanResponseSchema, type AttackDetailResponse, AttackDetailResponseSchema, type AttackListItem, AttackListItemSchema, type AttackListOptions, type AttackListResponse, AttackListResponseSchema, type AttackMultiTurnDetailResponse, AttackMultiTurnDetailResponseSchema, type AttackMultiTurnOutput, AttackMultiTurnOutputSchema, type AttackOutput, AttackOutputSchema, AttackStatus, AttackType, AuthType, BEARER, type BaseResponse, BaseResponseSchema, type BedrockAccessConnectionParams, BedrockAccessConnectionParamsSchema, BrandSubCategory, Category, type CategoryModel, CategoryModelSchema, type CategoryReport, CategoryReportSchema, Category as CategoryType, type ComplianceReport, ComplianceReportSchema, ComplianceSubCategory, type ComplianceTechnique, ComplianceTechniqueSchema, type ConnectionParams, ConnectionParamsSchema, Content, type ContentOptions, type CountByName, CountByNameSchema, CountedQuotaEnum, type CreateCustomTopicRequest, CreateCustomTopicRequestSchema, type CreateSecurityProfileRequest, CreateSecurityProfileRequestSchema, type CustomAttackOutput, CustomAttackOutputSchema, type CustomAttackReportResponse, CustomAttackReportResponseSchema, type CustomAttacksListResponse, CustomAttacksListResponseSchema, type CustomJobMetadata, CustomJobMetadataSchema, type CustomPromptCreateRequest, CustomPromptCreateRequestSchema, type CustomPromptList, type CustomPromptListItem, CustomPromptListItemSchema, CustomPromptListSchema, type CustomPromptResponse, CustomPromptResponseSchema, type CustomPromptSetArchiveRequest, CustomPromptSetArchiveRequestSchema, type CustomPromptSetCreateRequest, CustomPromptSetCreateRequestSchema, type CustomPromptSetList, type CustomPromptSetListActive, CustomPromptSetListActiveSchema, type CustomPromptSetListItem, CustomPromptSetListItemSchema, CustomPromptSetListSchema, type CustomPromptSetReference, CustomPromptSetReferenceSchema, type CustomPromptSetResponse, CustomPromptSetResponseSchema, type CustomPromptSetUpdateRequest, CustomPromptSetUpdateRequestSchema, type CustomPromptSetVersionInfo, CustomPromptSetVersionInfoSchema, type CustomPromptUpdateRequest, CustomPromptUpdateRequestSchema, type CustomTopic, type CustomTopicListResponse, CustomTopicListResponseSchema, CustomTopicSchema, DEFAULT_ENDPOINT, DEFAULT_MGMT_ENDPOINT, DEFAULT_MODEL_SEC_DATA_ENDPOINT, DEFAULT_MODEL_SEC_MGMT_ENDPOINT, DEFAULT_RED_TEAM_DATA_ENDPOINT, DEFAULT_RED_TEAM_MGMT_ENDPOINT, DEFAULT_TOKEN_ENDPOINT, type DSDetailResult, DSDetailResultSchema, type DSResultMetadata, DSResultMetadataSchema, type DashboardOverviewResponse, DashboardOverviewResponseSchema, type DatabricksConnectionParams, DatabricksConnectionParamsSchema, DateRangeFilter, type DeleteProfileConflict, DeleteProfileConflictSchema, type DeleteProfileResponse, DeleteProfileResponseSchema, type DeleteTopicConflict, DeleteTopicConflictSchema, type DeleteTopicResponse, DeleteTopicResponseSchema, type DetectionServiceResult, DetectionServiceResultSchema, type DlpReport, DlpReportSchema, type DynamicJobMetadata, DynamicJobMetadataSchema, type DynamicJobReport, DynamicJobReportSchema, type DynamicJobReportStats, DynamicJobReportStatsSchema, ErrorCodes, type ErrorLog, type ErrorLogListResponse, ErrorLogListResponseSchema, ErrorLogSchema, type ErrorResponse, ErrorResponseSchema, ErrorSource, ErrorType, EvalOutcome, type EvalSummary, EvalSummarySchema, FileFormat, type FileList, FileListSchema, type FileResponse, FileResponseSchema, type FileScanData, FileScanDataSchema, FileScanResult, FileType, type Goal, type GoalListOptions, type GoalListResponse, GoalListResponseSchema, GoalSchema, GoalType, GoalTypeQueryParam, GuardrailAction, HEADER_API_KEY, HEADER_AUTH_TOKEN, type HTTPValidationError, HTTPValidationErrorSchema, HTTP_FORCE_RETRY_STATUS_CODES, type HuggingfaceConnectionParams, HuggingfaceConnectionParamsSchema, type IODetected, IODetectedSchema, type InitOptions, type JobAbortResponse, JobAbortResponseSchema, type JobCreateRequest, JobCreateRequestSchema, type JobListResponse, JobListResponseSchema, type JobResponse, JobResponseSchema, JobStatus, JobStatusFilter, type JobTimeRecord, JobTimeRecordSchema, JobType, type Label, type LabelKeyList, LabelKeyListSchema, LabelSchema, type LabelValueList, LabelValueListSchema, type LabelsCreateRequest, LabelsCreateRequestSchema, type LabelsResponse, LabelsResponseSchema, type ListModelSecurityGroupsResponse, ListModelSecurityGroupsResponseSchema, type ListModelSecurityRuleInstancesResponse, ListModelSecurityRuleInstancesResponseSchema, type ListModelSecurityRulesResponse, ListModelSecurityRulesResponseSchema, MAX_AI_PROFILE_NAME_LENGTH, MAX_API_KEY_LENGTH, MAX_CONNECTION_POOL_SIZE, MAX_CONTENT_CONTEXT_LENGTH, MAX_CONTENT_PROMPT_LENGTH, MAX_CONTENT_RESPONSE_LENGTH, MAX_NUMBER_OF_BATCH_SCAN_OBJECTS, MAX_NUMBER_OF_REPORT_IDS, MAX_NUMBER_OF_RETRIES, MAX_NUMBER_OF_SCAN_IDS, MAX_REPORT_ID_STR_LENGTH, MAX_SCAN_ID_STR_LENGTH, MAX_SESSION_ID_STR_LENGTH, MAX_TOKEN_LENGTH, MAX_TRANSACTION_ID_STR_LENGTH, MGMT_CLIENT_ID, MGMT_CLIENT_SECRET, MGMT_ENDPOINT, MGMT_PROFILES_TSG_PATH, MGMT_PROFILE_PATH, MGMT_TOKEN_ENDPOINT, MGMT_TOPICS_TSG_PATH, MGMT_TOPIC_FORCE_PATH, MGMT_TOPIC_PATH, MGMT_TSG_ID, MODEL_SEC_CLIENT_ID, MODEL_SEC_CLIENT_SECRET, MODEL_SEC_DATA_ENDPOINT, MODEL_SEC_EVALUATIONS_PATH, MODEL_SEC_MGMT_ENDPOINT, MODEL_SEC_PYPI_AUTH_PATH, MODEL_SEC_SCANS_PATH, MODEL_SEC_SECURITY_GROUPS_PATH, MODEL_SEC_SECURITY_RULES_PATH, MODEL_SEC_TOKEN_ENDPOINT, MODEL_SEC_TSG_ID, MODEL_SEC_VIOLATIONS_PATH, ManagementClient, type ManagementClientOptions, type MaskedData, MaskedDataSchema, type Metadata, MetadataSchema, type ModelScanIssue, ModelScanIssueSchema, ModelScanStatus, ModelSecurityClient, type ModelSecurityClientOptions, type ModelSecurityFileListOptions, type ModelSecurityGroupCreateRequest, ModelSecurityGroupCreateRequestSchema, type ModelSecurityGroupListOptions, type ModelSecurityGroupResponse, ModelSecurityGroupResponseSchema, ModelSecurityGroupState, type ModelSecurityGroupUpdateRequest, ModelSecurityGroupUpdateRequestSchema, ModelSecurityGroupsClient, type ModelSecurityListOptions, type ModelSecurityPagination, ModelSecurityPaginationSchema, type ModelSecurityRuleInstanceListOptions, type ModelSecurityRuleInstanceResponse, ModelSecurityRuleInstanceResponseSchema, type ModelSecurityRuleInstanceUpdateRequest, ModelSecurityRuleInstanceUpdateRequestSchema, type ModelSecurityRuleListOptions, type ModelSecurityRuleResponse, ModelSecurityRuleResponseSchema, ModelSecurityRulesClient, type ModelSecurityScanListOptions, ModelSecurityScansClient, type MultiTurnStatefulConfig, MultiTurnStatefulConfigSchema, type MultiTurnStatelessConfig, MultiTurnStatelessConfigSchema, OAuthClient, type OAuthClientOptions, type OpenAIConnectionParams, OpenAIConnectionParamsSchema, PAYLOAD_HASH, type PaginationOptions, type Policy, PolicySchema, PolicyType, type PrerequisiteModel, PrerequisiteModelSchema, ProfilesClient, ProfilingStatus, type PromptDetailResponse, PromptDetailResponseSchema, type PromptDetected, PromptDetectedSchema, type PromptDetectionDetails, PromptDetectionDetailsSchema, type PromptListOptions, type PromptSetListOptions, type PromptSetStats, PromptSetStatsSchema, type PromptSetSummary, PromptSetSummarySchema, type PromptSetsReportResponse, PromptSetsReportResponseSchema, type PropertyAssignment, PropertyAssignmentSchema, type PropertyDefinition, PropertyDefinitionSchema, type PropertyNameCreateRequest, PropertyNameCreateRequestSchema, type PropertyNamesListResponse, PropertyNamesListResponseSchema, type PropertyStatistic, PropertyStatisticSchema, type PropertyValueCreateRequest, PropertyValueCreateRequestSchema, type PropertyValueStatistic, PropertyValueStatisticSchema, type PropertyValuesMultipleResponse, PropertyValuesMultipleResponseSchema, type PropertyValuesResponse, PropertyValuesResponseSchema, type PyPIAuthResponse, PyPIAuthResponseSchema, type QuotaDetails, QuotaDetailsSchema, type QuotaSummary, QuotaSummarySchema, RED_TEAM_CATEGORIES_PATH, RED_TEAM_CLIENT_ID, RED_TEAM_CLIENT_SECRET, RED_TEAM_CUSTOM_ATTACKS_REPORT_PATH, RED_TEAM_CUSTOM_ATTACK_PATH, RED_TEAM_DASHBOARD_PATH, RED_TEAM_DATA_ENDPOINT, RED_TEAM_ERROR_LOG_PATH, RED_TEAM_MGMT_DASHBOARD_PATH, RED_TEAM_MGMT_ENDPOINT, RED_TEAM_QUOTA_PATH, RED_TEAM_REPORT_DYNAMIC_PATH, RED_TEAM_REPORT_PATH, RED_TEAM_REPORT_STATIC_PATH, RED_TEAM_SCAN_PATH, RED_TEAM_SENTIMENT_PATH, RED_TEAM_TARGET_PATH, RED_TEAM_TOKEN_ENDPOINT, RED_TEAM_TSG_ID, RedTeamCategory, RedTeamClient, type RedTeamClientOptions, RedTeamCustomAttackReportsClient, RedTeamCustomAttacksClient, RedTeamErrorType, type RedTeamListOptions, type RedTeamPagination, RedTeamPaginationSchema, RedTeamReportsClient, type RedTeamScanListOptions, RedTeamScansClient, RedTeamTargetsClient, type RemediationDetail, RemediationDetailSchema, type RemediationResponse, RemediationResponseSchema, type ResponseDetected, ResponseDetectedSchema, type ResponseDetectionDetails, ResponseDetectionDetailsSchema, ResponseMode, type RestConnectionParams, RestConnectionParamsSchema, type RiskLevel, RiskLevelSchema, RiskRating, type RuleConfiguration, RuleConfigurationSchema, type RuleEditableField, type RuleEditableFieldDropdown, RuleEditableFieldDropdownSchema, RuleEditableFieldSchema, RuleEditableFieldType, type RuleEvaluationList, RuleEvaluationListSchema, type RuleEvaluationResponse, RuleEvaluationResponseSchema, RuleEvaluationResult, RuleFieldValueKey, type RuleRemediation, RuleRemediationSchema, RuleState, RuleType, type RuntimeSecurityPolicy, RuntimeSecurityPolicySchema, type RuntimeSecurityProfileResponse, RuntimeSecurityProfileResponseSchema, SCAN_REPORTS_PATH, SCAN_RESULTS_PATH, SDK_VERSION, SYNC_SCAN_PATH, SafetySubCategory, type ScanBaseResponse, ScanBaseResponseSchema, type ScanCreateRequest, ScanCreateRequestSchema, type ScanDetails, ScanDetailsSchema, type ScanIdResult, ScanIdResultSchema, type ScanList, ScanListSchema, ScanOrigin, type ScanRequest, type ScanRequestContentsInner, ScanRequestContentsInnerSchema, ScanRequestSchema, type ScanResponse, ScanResponseSchema, type ScanStatisticsResponse, ScanStatisticsResponseSchema, type ScanSummary, ScanSummarySchema, Scanner, type ScoreTrendResponse, ScoreTrendResponseSchema, type ScoreTrendSeries, ScoreTrendSeriesSchema, type SecurityProfile, type SecurityProfileListResponse, SecurityProfileListResponseSchema, SecurityProfileSchema, SecuritySubCategory, type SentimentRequest, SentimentRequestSchema, type SentimentResponse, SentimentResponseSchema, SeverityFilter, type SeverityReport, SeverityReportSchema, type SeverityStats, SeverityStatsSchema, SortByDateField, SortByFileField, SortDirection, SourceType, type StaticJobMetadata, StaticJobMetadataSchema, type StaticJobRemediation, type StaticJobRemediationRecommendation, StaticJobRemediationRecommendationSchema, StaticJobRemediationSchema, type StaticJobReport, StaticJobReportSchema, type StaticJobReportStats, StaticJobReportStatsSchema, StatusQueryParam, type StreamDetailResponse, StreamDetailResponseSchema, type StreamIterationData, StreamIterationDataSchema, type StreamListResponse, StreamListResponseSchema, StreamType, type StreamingConnectionParams, StreamingConnectionParamsSchema, type SubCategoryModel, SubCategoryModelSchema, type SubCategoryStats, SubCategoryStatsSchema, type SyncScanOptions, type TargetAdditionalContext, TargetAdditionalContextSchema, type TargetBackground, TargetBackgroundSchema, TargetConnectionType, type TargetContextUpdate, TargetContextUpdateSchema, type TargetCreateRequest, TargetCreateRequestSchema, type TargetJobRequest, TargetJobRequestSchema, type TargetList, type TargetListItem, TargetListItemSchema, type TargetListOptions, TargetListSchema, type TargetMetadata, TargetMetadataSchema, type TargetOperationOptions, type TargetProbeRequest, TargetProbeRequestSchema, type TargetProfileResponse, TargetProfileResponseSchema, type TargetReference, TargetReferenceSchema, type TargetResponse, TargetResponseSchema, TargetStatus, TargetType, type TargetUpdateRequest, TargetUpdateRequestSchema, ThreatCategory, type ThreatScanReport, ThreatScanReportSchema, type TokenInfo, type ToolDetected, ToolDetectedSchema, type ToolEvent, type ToolEventMetadata, ToolEventMetadataSchema, ToolEventSchema, TopicsClient, USER_AGENT, type UrlfEntry, UrlfEntrySchema, type ValidationError, ValidationErrorSchema, Verdict, Verdict as VerdictType, type ViolationList, ViolationListSchema, type ViolationResponse, ViolationResponseSchema, globalConfiguration, init };
|
package/dist/index.d.ts
CHANGED
|
@@ -33093,8 +33093,8 @@ declare const MAX_NUMBER_OF_BATCH_SCAN_OBJECTS = 5;
|
|
|
33093
33093
|
declare const MAX_CONNECTION_POOL_SIZE = 100;
|
|
33094
33094
|
declare const MAX_NUMBER_OF_RETRIES = 5;
|
|
33095
33095
|
declare const HTTP_FORCE_RETRY_STATUS_CODES: number[];
|
|
33096
|
-
declare const SDK_VERSION = "0.6.
|
|
33097
|
-
declare const USER_AGENT = "PAN-AIRS/0.6.
|
|
33096
|
+
declare const SDK_VERSION = "0.6.1";
|
|
33097
|
+
declare const USER_AGENT = "PAN-AIRS/0.6.1-typescript-sdk";
|
|
33098
33098
|
declare const DEFAULT_MGMT_ENDPOINT = "https://api.sase.paloaltonetworks.com/aisec";
|
|
33099
33099
|
declare const DEFAULT_TOKEN_ENDPOINT = "https://auth.apps.paloaltonetworks.com/oauth2/access_token";
|
|
33100
33100
|
declare const MGMT_CLIENT_ID = "PANW_MGMT_CLIENT_ID";
|
|
@@ -33462,6 +33462,34 @@ declare class ModelSecurityScansClient {
|
|
|
33462
33462
|
getViolation(uuid: string): Promise<ViolationResponse>;
|
|
33463
33463
|
}
|
|
33464
33464
|
|
|
33465
|
+
/** Options for listing security groups. */
|
|
33466
|
+
interface ModelSecurityGroupListOptions {
|
|
33467
|
+
/** Number of items to skip. */
|
|
33468
|
+
skip?: number;
|
|
33469
|
+
/** Maximum number of items to return (1-100). */
|
|
33470
|
+
limit?: number;
|
|
33471
|
+
/** Field to sort by: 'created_at' or 'updated_at'. */
|
|
33472
|
+
sort_field?: string;
|
|
33473
|
+
/** Sort direction: 'asc' or 'desc'. */
|
|
33474
|
+
sort_dir?: string;
|
|
33475
|
+
/** Filter by source types. */
|
|
33476
|
+
source_types?: string[];
|
|
33477
|
+
/** Search term (matches UUID or Name, 3-1000 chars). */
|
|
33478
|
+
search_query?: string;
|
|
33479
|
+
/** Filter by rule UUIDs with ALLOWING or BLOCKING state. */
|
|
33480
|
+
enabled_rules?: string[];
|
|
33481
|
+
}
|
|
33482
|
+
/** Options for listing rule instances within a security group. */
|
|
33483
|
+
interface ModelSecurityRuleInstanceListOptions {
|
|
33484
|
+
/** Number of items to skip. */
|
|
33485
|
+
skip?: number;
|
|
33486
|
+
/** Maximum number of items to return. */
|
|
33487
|
+
limit?: number;
|
|
33488
|
+
/** Filter by security rule UUID. */
|
|
33489
|
+
security_rule_uuid?: string;
|
|
33490
|
+
/** Filter by rule state: 'DISABLED', 'ALLOWING', or 'BLOCKING'. */
|
|
33491
|
+
state?: string;
|
|
33492
|
+
}
|
|
33465
33493
|
/** @internal */
|
|
33466
33494
|
interface ModelSecurityGroupsClientOptions {
|
|
33467
33495
|
baseUrl: string;
|
|
@@ -33485,7 +33513,7 @@ declare class ModelSecurityGroupsClient {
|
|
|
33485
33513
|
* @param opts - Pagination and filter options.
|
|
33486
33514
|
* @returns Paginated list of security groups.
|
|
33487
33515
|
*/
|
|
33488
|
-
list(opts?:
|
|
33516
|
+
list(opts?: ModelSecurityGroupListOptions): Promise<ListModelSecurityGroupsResponse>;
|
|
33489
33517
|
/**
|
|
33490
33518
|
* Get a single security group by UUID.
|
|
33491
33519
|
* @param uuid - Security group UUID.
|
|
@@ -33510,7 +33538,7 @@ declare class ModelSecurityGroupsClient {
|
|
|
33510
33538
|
* @param opts - Pagination options.
|
|
33511
33539
|
* @returns Paginated list of rule instances.
|
|
33512
33540
|
*/
|
|
33513
|
-
listRuleInstances(securityGroupUuid: string, opts?:
|
|
33541
|
+
listRuleInstances(securityGroupUuid: string, opts?: ModelSecurityRuleInstanceListOptions): Promise<ListModelSecurityRuleInstancesResponse>;
|
|
33514
33542
|
/**
|
|
33515
33543
|
* Get a single rule instance within a security group.
|
|
33516
33544
|
* @param securityGroupUuid - Security group UUID.
|
|
@@ -33528,6 +33556,17 @@ declare class ModelSecurityGroupsClient {
|
|
|
33528
33556
|
updateRuleInstance(securityGroupUuid: string, ruleInstanceUuid: string, request: ModelSecurityRuleInstanceUpdateRequest): Promise<ModelSecurityRuleInstanceResponse>;
|
|
33529
33557
|
}
|
|
33530
33558
|
|
|
33559
|
+
/** Options for listing security rules. */
|
|
33560
|
+
interface ModelSecurityRuleListOptions {
|
|
33561
|
+
/** Number of items to skip. */
|
|
33562
|
+
skip?: number;
|
|
33563
|
+
/** Maximum number of items to return. */
|
|
33564
|
+
limit?: number;
|
|
33565
|
+
/** Filter by source type. */
|
|
33566
|
+
source_type?: string;
|
|
33567
|
+
/** Search term (matches UUID or Name, 3-1000 chars). */
|
|
33568
|
+
search_query?: string;
|
|
33569
|
+
}
|
|
33531
33570
|
/** @internal */
|
|
33532
33571
|
interface ModelSecurityRulesClientOptions {
|
|
33533
33572
|
baseUrl: string;
|
|
@@ -33545,7 +33584,7 @@ declare class ModelSecurityRulesClient {
|
|
|
33545
33584
|
* @param opts - Pagination options.
|
|
33546
33585
|
* @returns Paginated list of security rules.
|
|
33547
33586
|
*/
|
|
33548
|
-
list(opts?:
|
|
33587
|
+
list(opts?: ModelSecurityRuleListOptions): Promise<ListModelSecurityRulesResponse>;
|
|
33549
33588
|
/**
|
|
33550
33589
|
* Get a single security rule by UUID.
|
|
33551
33590
|
* @param uuid - Security rule UUID.
|
|
@@ -33873,4 +33912,4 @@ declare class RedTeamClient {
|
|
|
33873
33912
|
getDashboardOverview(): Promise<DashboardOverviewResponse>;
|
|
33874
33913
|
}
|
|
33875
33914
|
|
|
33876
|
-
export { AISecSDKException, AI_SEC_API_ENDPOINT, AI_SEC_API_KEY, AI_SEC_API_TOKEN, ASYNC_SCAN_PATH, Action, Action as ActionType, type AgentMeta, AgentMetaSchema, type AiProfile, AiProfileSchema, ApiEndpointType, type AsyncScanObject, AsyncScanObjectSchema, type AsyncScanResponse, AsyncScanResponseSchema, type AttackDetailResponse, AttackDetailResponseSchema, type AttackListItem, AttackListItemSchema, type AttackListOptions, type AttackListResponse, AttackListResponseSchema, type AttackMultiTurnDetailResponse, AttackMultiTurnDetailResponseSchema, type AttackMultiTurnOutput, AttackMultiTurnOutputSchema, type AttackOutput, AttackOutputSchema, AttackStatus, AttackType, AuthType, BEARER, type BaseResponse, BaseResponseSchema, type BedrockAccessConnectionParams, BedrockAccessConnectionParamsSchema, BrandSubCategory, Category, type CategoryModel, CategoryModelSchema, type CategoryReport, CategoryReportSchema, Category as CategoryType, type ComplianceReport, ComplianceReportSchema, ComplianceSubCategory, type ComplianceTechnique, ComplianceTechniqueSchema, type ConnectionParams, ConnectionParamsSchema, Content, type ContentOptions, type CountByName, CountByNameSchema, CountedQuotaEnum, type CreateCustomTopicRequest, CreateCustomTopicRequestSchema, type CreateSecurityProfileRequest, CreateSecurityProfileRequestSchema, type CustomAttackOutput, CustomAttackOutputSchema, type CustomAttackReportResponse, CustomAttackReportResponseSchema, type CustomAttacksListResponse, CustomAttacksListResponseSchema, type CustomJobMetadata, CustomJobMetadataSchema, type CustomPromptCreateRequest, CustomPromptCreateRequestSchema, type CustomPromptList, type CustomPromptListItem, CustomPromptListItemSchema, CustomPromptListSchema, type CustomPromptResponse, CustomPromptResponseSchema, type CustomPromptSetArchiveRequest, CustomPromptSetArchiveRequestSchema, type CustomPromptSetCreateRequest, CustomPromptSetCreateRequestSchema, type CustomPromptSetList, type CustomPromptSetListActive, CustomPromptSetListActiveSchema, type CustomPromptSetListItem, CustomPromptSetListItemSchema, CustomPromptSetListSchema, type CustomPromptSetReference, CustomPromptSetReferenceSchema, type CustomPromptSetResponse, CustomPromptSetResponseSchema, type CustomPromptSetUpdateRequest, CustomPromptSetUpdateRequestSchema, type CustomPromptSetVersionInfo, CustomPromptSetVersionInfoSchema, type CustomPromptUpdateRequest, CustomPromptUpdateRequestSchema, type CustomTopic, type CustomTopicListResponse, CustomTopicListResponseSchema, CustomTopicSchema, DEFAULT_ENDPOINT, DEFAULT_MGMT_ENDPOINT, DEFAULT_MODEL_SEC_DATA_ENDPOINT, DEFAULT_MODEL_SEC_MGMT_ENDPOINT, DEFAULT_RED_TEAM_DATA_ENDPOINT, DEFAULT_RED_TEAM_MGMT_ENDPOINT, DEFAULT_TOKEN_ENDPOINT, type DSDetailResult, DSDetailResultSchema, type DSResultMetadata, DSResultMetadataSchema, type DashboardOverviewResponse, DashboardOverviewResponseSchema, type DatabricksConnectionParams, DatabricksConnectionParamsSchema, DateRangeFilter, type DeleteProfileConflict, DeleteProfileConflictSchema, type DeleteProfileResponse, DeleteProfileResponseSchema, type DeleteTopicConflict, DeleteTopicConflictSchema, type DeleteTopicResponse, DeleteTopicResponseSchema, type DetectionServiceResult, DetectionServiceResultSchema, type DlpReport, DlpReportSchema, type DynamicJobMetadata, DynamicJobMetadataSchema, type DynamicJobReport, DynamicJobReportSchema, type DynamicJobReportStats, DynamicJobReportStatsSchema, ErrorCodes, type ErrorLog, type ErrorLogListResponse, ErrorLogListResponseSchema, ErrorLogSchema, type ErrorResponse, ErrorResponseSchema, ErrorSource, ErrorType, EvalOutcome, type EvalSummary, EvalSummarySchema, FileFormat, type FileList, FileListSchema, type FileResponse, FileResponseSchema, type FileScanData, FileScanDataSchema, FileScanResult, FileType, type Goal, type GoalListOptions, type GoalListResponse, GoalListResponseSchema, GoalSchema, GoalType, GoalTypeQueryParam, GuardrailAction, HEADER_API_KEY, HEADER_AUTH_TOKEN, type HTTPValidationError, HTTPValidationErrorSchema, HTTP_FORCE_RETRY_STATUS_CODES, type HuggingfaceConnectionParams, HuggingfaceConnectionParamsSchema, type IODetected, IODetectedSchema, type InitOptions, type JobAbortResponse, JobAbortResponseSchema, type JobCreateRequest, JobCreateRequestSchema, type JobListResponse, JobListResponseSchema, type JobResponse, JobResponseSchema, JobStatus, JobStatusFilter, type JobTimeRecord, JobTimeRecordSchema, JobType, type Label, type LabelKeyList, LabelKeyListSchema, LabelSchema, type LabelValueList, LabelValueListSchema, type LabelsCreateRequest, LabelsCreateRequestSchema, type LabelsResponse, LabelsResponseSchema, type ListModelSecurityGroupsResponse, ListModelSecurityGroupsResponseSchema, type ListModelSecurityRuleInstancesResponse, ListModelSecurityRuleInstancesResponseSchema, type ListModelSecurityRulesResponse, ListModelSecurityRulesResponseSchema, MAX_AI_PROFILE_NAME_LENGTH, MAX_API_KEY_LENGTH, MAX_CONNECTION_POOL_SIZE, MAX_CONTENT_CONTEXT_LENGTH, MAX_CONTENT_PROMPT_LENGTH, MAX_CONTENT_RESPONSE_LENGTH, MAX_NUMBER_OF_BATCH_SCAN_OBJECTS, MAX_NUMBER_OF_REPORT_IDS, MAX_NUMBER_OF_RETRIES, MAX_NUMBER_OF_SCAN_IDS, MAX_REPORT_ID_STR_LENGTH, MAX_SCAN_ID_STR_LENGTH, MAX_SESSION_ID_STR_LENGTH, MAX_TOKEN_LENGTH, MAX_TRANSACTION_ID_STR_LENGTH, MGMT_CLIENT_ID, MGMT_CLIENT_SECRET, MGMT_ENDPOINT, MGMT_PROFILES_TSG_PATH, MGMT_PROFILE_PATH, MGMT_TOKEN_ENDPOINT, MGMT_TOPICS_TSG_PATH, MGMT_TOPIC_FORCE_PATH, MGMT_TOPIC_PATH, MGMT_TSG_ID, MODEL_SEC_CLIENT_ID, MODEL_SEC_CLIENT_SECRET, MODEL_SEC_DATA_ENDPOINT, MODEL_SEC_EVALUATIONS_PATH, MODEL_SEC_MGMT_ENDPOINT, MODEL_SEC_PYPI_AUTH_PATH, MODEL_SEC_SCANS_PATH, MODEL_SEC_SECURITY_GROUPS_PATH, MODEL_SEC_SECURITY_RULES_PATH, MODEL_SEC_TOKEN_ENDPOINT, MODEL_SEC_TSG_ID, MODEL_SEC_VIOLATIONS_PATH, ManagementClient, type ManagementClientOptions, type MaskedData, MaskedDataSchema, type Metadata, MetadataSchema, type ModelScanIssue, ModelScanIssueSchema, ModelScanStatus, ModelSecurityClient, type ModelSecurityClientOptions, type ModelSecurityFileListOptions, type ModelSecurityGroupCreateRequest, ModelSecurityGroupCreateRequestSchema, type ModelSecurityGroupResponse, ModelSecurityGroupResponseSchema, ModelSecurityGroupState, type ModelSecurityGroupUpdateRequest, ModelSecurityGroupUpdateRequestSchema, ModelSecurityGroupsClient, type ModelSecurityListOptions, type ModelSecurityPagination, ModelSecurityPaginationSchema, type ModelSecurityRuleInstanceResponse, ModelSecurityRuleInstanceResponseSchema, type ModelSecurityRuleInstanceUpdateRequest, ModelSecurityRuleInstanceUpdateRequestSchema, type ModelSecurityRuleResponse, ModelSecurityRuleResponseSchema, ModelSecurityRulesClient, type ModelSecurityScanListOptions, ModelSecurityScansClient, type MultiTurnStatefulConfig, MultiTurnStatefulConfigSchema, type MultiTurnStatelessConfig, MultiTurnStatelessConfigSchema, OAuthClient, type OAuthClientOptions, type OpenAIConnectionParams, OpenAIConnectionParamsSchema, PAYLOAD_HASH, type PaginationOptions, type Policy, PolicySchema, PolicyType, type PrerequisiteModel, PrerequisiteModelSchema, ProfilesClient, ProfilingStatus, type PromptDetailResponse, PromptDetailResponseSchema, type PromptDetected, PromptDetectedSchema, type PromptDetectionDetails, PromptDetectionDetailsSchema, type PromptListOptions, type PromptSetListOptions, type PromptSetStats, PromptSetStatsSchema, type PromptSetSummary, PromptSetSummarySchema, type PromptSetsReportResponse, PromptSetsReportResponseSchema, type PropertyAssignment, PropertyAssignmentSchema, type PropertyDefinition, PropertyDefinitionSchema, type PropertyNameCreateRequest, PropertyNameCreateRequestSchema, type PropertyNamesListResponse, PropertyNamesListResponseSchema, type PropertyStatistic, PropertyStatisticSchema, type PropertyValueCreateRequest, PropertyValueCreateRequestSchema, type PropertyValueStatistic, PropertyValueStatisticSchema, type PropertyValuesMultipleResponse, PropertyValuesMultipleResponseSchema, type PropertyValuesResponse, PropertyValuesResponseSchema, type PyPIAuthResponse, PyPIAuthResponseSchema, type QuotaDetails, QuotaDetailsSchema, type QuotaSummary, QuotaSummarySchema, RED_TEAM_CATEGORIES_PATH, RED_TEAM_CLIENT_ID, RED_TEAM_CLIENT_SECRET, RED_TEAM_CUSTOM_ATTACKS_REPORT_PATH, RED_TEAM_CUSTOM_ATTACK_PATH, RED_TEAM_DASHBOARD_PATH, RED_TEAM_DATA_ENDPOINT, RED_TEAM_ERROR_LOG_PATH, RED_TEAM_MGMT_DASHBOARD_PATH, RED_TEAM_MGMT_ENDPOINT, RED_TEAM_QUOTA_PATH, RED_TEAM_REPORT_DYNAMIC_PATH, RED_TEAM_REPORT_PATH, RED_TEAM_REPORT_STATIC_PATH, RED_TEAM_SCAN_PATH, RED_TEAM_SENTIMENT_PATH, RED_TEAM_TARGET_PATH, RED_TEAM_TOKEN_ENDPOINT, RED_TEAM_TSG_ID, RedTeamCategory, RedTeamClient, type RedTeamClientOptions, RedTeamCustomAttackReportsClient, RedTeamCustomAttacksClient, RedTeamErrorType, type RedTeamListOptions, type RedTeamPagination, RedTeamPaginationSchema, RedTeamReportsClient, type RedTeamScanListOptions, RedTeamScansClient, RedTeamTargetsClient, type RemediationDetail, RemediationDetailSchema, type RemediationResponse, RemediationResponseSchema, type ResponseDetected, ResponseDetectedSchema, type ResponseDetectionDetails, ResponseDetectionDetailsSchema, ResponseMode, type RestConnectionParams, RestConnectionParamsSchema, type RiskLevel, RiskLevelSchema, RiskRating, type RuleConfiguration, RuleConfigurationSchema, type RuleEditableField, type RuleEditableFieldDropdown, RuleEditableFieldDropdownSchema, RuleEditableFieldSchema, RuleEditableFieldType, type RuleEvaluationList, RuleEvaluationListSchema, type RuleEvaluationResponse, RuleEvaluationResponseSchema, RuleEvaluationResult, RuleFieldValueKey, type RuleRemediation, RuleRemediationSchema, RuleState, RuleType, type RuntimeSecurityPolicy, RuntimeSecurityPolicySchema, type RuntimeSecurityProfileResponse, RuntimeSecurityProfileResponseSchema, SCAN_REPORTS_PATH, SCAN_RESULTS_PATH, SDK_VERSION, SYNC_SCAN_PATH, SafetySubCategory, type ScanBaseResponse, ScanBaseResponseSchema, type ScanCreateRequest, ScanCreateRequestSchema, type ScanDetails, ScanDetailsSchema, type ScanIdResult, ScanIdResultSchema, type ScanList, ScanListSchema, ScanOrigin, type ScanRequest, type ScanRequestContentsInner, ScanRequestContentsInnerSchema, ScanRequestSchema, type ScanResponse, ScanResponseSchema, type ScanStatisticsResponse, ScanStatisticsResponseSchema, type ScanSummary, ScanSummarySchema, Scanner, type ScoreTrendResponse, ScoreTrendResponseSchema, type ScoreTrendSeries, ScoreTrendSeriesSchema, type SecurityProfile, type SecurityProfileListResponse, SecurityProfileListResponseSchema, SecurityProfileSchema, SecuritySubCategory, type SentimentRequest, SentimentRequestSchema, type SentimentResponse, SentimentResponseSchema, SeverityFilter, type SeverityReport, SeverityReportSchema, type SeverityStats, SeverityStatsSchema, SortByDateField, SortByFileField, SortDirection, SourceType, type StaticJobMetadata, StaticJobMetadataSchema, type StaticJobRemediation, type StaticJobRemediationRecommendation, StaticJobRemediationRecommendationSchema, StaticJobRemediationSchema, type StaticJobReport, StaticJobReportSchema, type StaticJobReportStats, StaticJobReportStatsSchema, StatusQueryParam, type StreamDetailResponse, StreamDetailResponseSchema, type StreamIterationData, StreamIterationDataSchema, type StreamListResponse, StreamListResponseSchema, StreamType, type StreamingConnectionParams, StreamingConnectionParamsSchema, type SubCategoryModel, SubCategoryModelSchema, type SubCategoryStats, SubCategoryStatsSchema, type SyncScanOptions, type TargetAdditionalContext, TargetAdditionalContextSchema, type TargetBackground, TargetBackgroundSchema, TargetConnectionType, type TargetContextUpdate, TargetContextUpdateSchema, type TargetCreateRequest, TargetCreateRequestSchema, type TargetJobRequest, TargetJobRequestSchema, type TargetList, type TargetListItem, TargetListItemSchema, type TargetListOptions, TargetListSchema, type TargetMetadata, TargetMetadataSchema, type TargetOperationOptions, type TargetProbeRequest, TargetProbeRequestSchema, type TargetProfileResponse, TargetProfileResponseSchema, type TargetReference, TargetReferenceSchema, type TargetResponse, TargetResponseSchema, TargetStatus, TargetType, type TargetUpdateRequest, TargetUpdateRequestSchema, ThreatCategory, type ThreatScanReport, ThreatScanReportSchema, type TokenInfo, type ToolDetected, ToolDetectedSchema, type ToolEvent, type ToolEventMetadata, ToolEventMetadataSchema, ToolEventSchema, TopicsClient, USER_AGENT, type UrlfEntry, UrlfEntrySchema, type ValidationError, ValidationErrorSchema, Verdict, Verdict as VerdictType, type ViolationList, ViolationListSchema, type ViolationResponse, ViolationResponseSchema, globalConfiguration, init };
|
|
33915
|
+
export { AISecSDKException, AI_SEC_API_ENDPOINT, AI_SEC_API_KEY, AI_SEC_API_TOKEN, ASYNC_SCAN_PATH, Action, Action as ActionType, type AgentMeta, AgentMetaSchema, type AiProfile, AiProfileSchema, ApiEndpointType, type AsyncScanObject, AsyncScanObjectSchema, type AsyncScanResponse, AsyncScanResponseSchema, type AttackDetailResponse, AttackDetailResponseSchema, type AttackListItem, AttackListItemSchema, type AttackListOptions, type AttackListResponse, AttackListResponseSchema, type AttackMultiTurnDetailResponse, AttackMultiTurnDetailResponseSchema, type AttackMultiTurnOutput, AttackMultiTurnOutputSchema, type AttackOutput, AttackOutputSchema, AttackStatus, AttackType, AuthType, BEARER, type BaseResponse, BaseResponseSchema, type BedrockAccessConnectionParams, BedrockAccessConnectionParamsSchema, BrandSubCategory, Category, type CategoryModel, CategoryModelSchema, type CategoryReport, CategoryReportSchema, Category as CategoryType, type ComplianceReport, ComplianceReportSchema, ComplianceSubCategory, type ComplianceTechnique, ComplianceTechniqueSchema, type ConnectionParams, ConnectionParamsSchema, Content, type ContentOptions, type CountByName, CountByNameSchema, CountedQuotaEnum, type CreateCustomTopicRequest, CreateCustomTopicRequestSchema, type CreateSecurityProfileRequest, CreateSecurityProfileRequestSchema, type CustomAttackOutput, CustomAttackOutputSchema, type CustomAttackReportResponse, CustomAttackReportResponseSchema, type CustomAttacksListResponse, CustomAttacksListResponseSchema, type CustomJobMetadata, CustomJobMetadataSchema, type CustomPromptCreateRequest, CustomPromptCreateRequestSchema, type CustomPromptList, type CustomPromptListItem, CustomPromptListItemSchema, CustomPromptListSchema, type CustomPromptResponse, CustomPromptResponseSchema, type CustomPromptSetArchiveRequest, CustomPromptSetArchiveRequestSchema, type CustomPromptSetCreateRequest, CustomPromptSetCreateRequestSchema, type CustomPromptSetList, type CustomPromptSetListActive, CustomPromptSetListActiveSchema, type CustomPromptSetListItem, CustomPromptSetListItemSchema, CustomPromptSetListSchema, type CustomPromptSetReference, CustomPromptSetReferenceSchema, type CustomPromptSetResponse, CustomPromptSetResponseSchema, type CustomPromptSetUpdateRequest, CustomPromptSetUpdateRequestSchema, type CustomPromptSetVersionInfo, CustomPromptSetVersionInfoSchema, type CustomPromptUpdateRequest, CustomPromptUpdateRequestSchema, type CustomTopic, type CustomTopicListResponse, CustomTopicListResponseSchema, CustomTopicSchema, DEFAULT_ENDPOINT, DEFAULT_MGMT_ENDPOINT, DEFAULT_MODEL_SEC_DATA_ENDPOINT, DEFAULT_MODEL_SEC_MGMT_ENDPOINT, DEFAULT_RED_TEAM_DATA_ENDPOINT, DEFAULT_RED_TEAM_MGMT_ENDPOINT, DEFAULT_TOKEN_ENDPOINT, type DSDetailResult, DSDetailResultSchema, type DSResultMetadata, DSResultMetadataSchema, type DashboardOverviewResponse, DashboardOverviewResponseSchema, type DatabricksConnectionParams, DatabricksConnectionParamsSchema, DateRangeFilter, type DeleteProfileConflict, DeleteProfileConflictSchema, type DeleteProfileResponse, DeleteProfileResponseSchema, type DeleteTopicConflict, DeleteTopicConflictSchema, type DeleteTopicResponse, DeleteTopicResponseSchema, type DetectionServiceResult, DetectionServiceResultSchema, type DlpReport, DlpReportSchema, type DynamicJobMetadata, DynamicJobMetadataSchema, type DynamicJobReport, DynamicJobReportSchema, type DynamicJobReportStats, DynamicJobReportStatsSchema, ErrorCodes, type ErrorLog, type ErrorLogListResponse, ErrorLogListResponseSchema, ErrorLogSchema, type ErrorResponse, ErrorResponseSchema, ErrorSource, ErrorType, EvalOutcome, type EvalSummary, EvalSummarySchema, FileFormat, type FileList, FileListSchema, type FileResponse, FileResponseSchema, type FileScanData, FileScanDataSchema, FileScanResult, FileType, type Goal, type GoalListOptions, type GoalListResponse, GoalListResponseSchema, GoalSchema, GoalType, GoalTypeQueryParam, GuardrailAction, HEADER_API_KEY, HEADER_AUTH_TOKEN, type HTTPValidationError, HTTPValidationErrorSchema, HTTP_FORCE_RETRY_STATUS_CODES, type HuggingfaceConnectionParams, HuggingfaceConnectionParamsSchema, type IODetected, IODetectedSchema, type InitOptions, type JobAbortResponse, JobAbortResponseSchema, type JobCreateRequest, JobCreateRequestSchema, type JobListResponse, JobListResponseSchema, type JobResponse, JobResponseSchema, JobStatus, JobStatusFilter, type JobTimeRecord, JobTimeRecordSchema, JobType, type Label, type LabelKeyList, LabelKeyListSchema, LabelSchema, type LabelValueList, LabelValueListSchema, type LabelsCreateRequest, LabelsCreateRequestSchema, type LabelsResponse, LabelsResponseSchema, type ListModelSecurityGroupsResponse, ListModelSecurityGroupsResponseSchema, type ListModelSecurityRuleInstancesResponse, ListModelSecurityRuleInstancesResponseSchema, type ListModelSecurityRulesResponse, ListModelSecurityRulesResponseSchema, MAX_AI_PROFILE_NAME_LENGTH, MAX_API_KEY_LENGTH, MAX_CONNECTION_POOL_SIZE, MAX_CONTENT_CONTEXT_LENGTH, MAX_CONTENT_PROMPT_LENGTH, MAX_CONTENT_RESPONSE_LENGTH, MAX_NUMBER_OF_BATCH_SCAN_OBJECTS, MAX_NUMBER_OF_REPORT_IDS, MAX_NUMBER_OF_RETRIES, MAX_NUMBER_OF_SCAN_IDS, MAX_REPORT_ID_STR_LENGTH, MAX_SCAN_ID_STR_LENGTH, MAX_SESSION_ID_STR_LENGTH, MAX_TOKEN_LENGTH, MAX_TRANSACTION_ID_STR_LENGTH, MGMT_CLIENT_ID, MGMT_CLIENT_SECRET, MGMT_ENDPOINT, MGMT_PROFILES_TSG_PATH, MGMT_PROFILE_PATH, MGMT_TOKEN_ENDPOINT, MGMT_TOPICS_TSG_PATH, MGMT_TOPIC_FORCE_PATH, MGMT_TOPIC_PATH, MGMT_TSG_ID, MODEL_SEC_CLIENT_ID, MODEL_SEC_CLIENT_SECRET, MODEL_SEC_DATA_ENDPOINT, MODEL_SEC_EVALUATIONS_PATH, MODEL_SEC_MGMT_ENDPOINT, MODEL_SEC_PYPI_AUTH_PATH, MODEL_SEC_SCANS_PATH, MODEL_SEC_SECURITY_GROUPS_PATH, MODEL_SEC_SECURITY_RULES_PATH, MODEL_SEC_TOKEN_ENDPOINT, MODEL_SEC_TSG_ID, MODEL_SEC_VIOLATIONS_PATH, ManagementClient, type ManagementClientOptions, type MaskedData, MaskedDataSchema, type Metadata, MetadataSchema, type ModelScanIssue, ModelScanIssueSchema, ModelScanStatus, ModelSecurityClient, type ModelSecurityClientOptions, type ModelSecurityFileListOptions, type ModelSecurityGroupCreateRequest, ModelSecurityGroupCreateRequestSchema, type ModelSecurityGroupListOptions, type ModelSecurityGroupResponse, ModelSecurityGroupResponseSchema, ModelSecurityGroupState, type ModelSecurityGroupUpdateRequest, ModelSecurityGroupUpdateRequestSchema, ModelSecurityGroupsClient, type ModelSecurityListOptions, type ModelSecurityPagination, ModelSecurityPaginationSchema, type ModelSecurityRuleInstanceListOptions, type ModelSecurityRuleInstanceResponse, ModelSecurityRuleInstanceResponseSchema, type ModelSecurityRuleInstanceUpdateRequest, ModelSecurityRuleInstanceUpdateRequestSchema, type ModelSecurityRuleListOptions, type ModelSecurityRuleResponse, ModelSecurityRuleResponseSchema, ModelSecurityRulesClient, type ModelSecurityScanListOptions, ModelSecurityScansClient, type MultiTurnStatefulConfig, MultiTurnStatefulConfigSchema, type MultiTurnStatelessConfig, MultiTurnStatelessConfigSchema, OAuthClient, type OAuthClientOptions, type OpenAIConnectionParams, OpenAIConnectionParamsSchema, PAYLOAD_HASH, type PaginationOptions, type Policy, PolicySchema, PolicyType, type PrerequisiteModel, PrerequisiteModelSchema, ProfilesClient, ProfilingStatus, type PromptDetailResponse, PromptDetailResponseSchema, type PromptDetected, PromptDetectedSchema, type PromptDetectionDetails, PromptDetectionDetailsSchema, type PromptListOptions, type PromptSetListOptions, type PromptSetStats, PromptSetStatsSchema, type PromptSetSummary, PromptSetSummarySchema, type PromptSetsReportResponse, PromptSetsReportResponseSchema, type PropertyAssignment, PropertyAssignmentSchema, type PropertyDefinition, PropertyDefinitionSchema, type PropertyNameCreateRequest, PropertyNameCreateRequestSchema, type PropertyNamesListResponse, PropertyNamesListResponseSchema, type PropertyStatistic, PropertyStatisticSchema, type PropertyValueCreateRequest, PropertyValueCreateRequestSchema, type PropertyValueStatistic, PropertyValueStatisticSchema, type PropertyValuesMultipleResponse, PropertyValuesMultipleResponseSchema, type PropertyValuesResponse, PropertyValuesResponseSchema, type PyPIAuthResponse, PyPIAuthResponseSchema, type QuotaDetails, QuotaDetailsSchema, type QuotaSummary, QuotaSummarySchema, RED_TEAM_CATEGORIES_PATH, RED_TEAM_CLIENT_ID, RED_TEAM_CLIENT_SECRET, RED_TEAM_CUSTOM_ATTACKS_REPORT_PATH, RED_TEAM_CUSTOM_ATTACK_PATH, RED_TEAM_DASHBOARD_PATH, RED_TEAM_DATA_ENDPOINT, RED_TEAM_ERROR_LOG_PATH, RED_TEAM_MGMT_DASHBOARD_PATH, RED_TEAM_MGMT_ENDPOINT, RED_TEAM_QUOTA_PATH, RED_TEAM_REPORT_DYNAMIC_PATH, RED_TEAM_REPORT_PATH, RED_TEAM_REPORT_STATIC_PATH, RED_TEAM_SCAN_PATH, RED_TEAM_SENTIMENT_PATH, RED_TEAM_TARGET_PATH, RED_TEAM_TOKEN_ENDPOINT, RED_TEAM_TSG_ID, RedTeamCategory, RedTeamClient, type RedTeamClientOptions, RedTeamCustomAttackReportsClient, RedTeamCustomAttacksClient, RedTeamErrorType, type RedTeamListOptions, type RedTeamPagination, RedTeamPaginationSchema, RedTeamReportsClient, type RedTeamScanListOptions, RedTeamScansClient, RedTeamTargetsClient, type RemediationDetail, RemediationDetailSchema, type RemediationResponse, RemediationResponseSchema, type ResponseDetected, ResponseDetectedSchema, type ResponseDetectionDetails, ResponseDetectionDetailsSchema, ResponseMode, type RestConnectionParams, RestConnectionParamsSchema, type RiskLevel, RiskLevelSchema, RiskRating, type RuleConfiguration, RuleConfigurationSchema, type RuleEditableField, type RuleEditableFieldDropdown, RuleEditableFieldDropdownSchema, RuleEditableFieldSchema, RuleEditableFieldType, type RuleEvaluationList, RuleEvaluationListSchema, type RuleEvaluationResponse, RuleEvaluationResponseSchema, RuleEvaluationResult, RuleFieldValueKey, type RuleRemediation, RuleRemediationSchema, RuleState, RuleType, type RuntimeSecurityPolicy, RuntimeSecurityPolicySchema, type RuntimeSecurityProfileResponse, RuntimeSecurityProfileResponseSchema, SCAN_REPORTS_PATH, SCAN_RESULTS_PATH, SDK_VERSION, SYNC_SCAN_PATH, SafetySubCategory, type ScanBaseResponse, ScanBaseResponseSchema, type ScanCreateRequest, ScanCreateRequestSchema, type ScanDetails, ScanDetailsSchema, type ScanIdResult, ScanIdResultSchema, type ScanList, ScanListSchema, ScanOrigin, type ScanRequest, type ScanRequestContentsInner, ScanRequestContentsInnerSchema, ScanRequestSchema, type ScanResponse, ScanResponseSchema, type ScanStatisticsResponse, ScanStatisticsResponseSchema, type ScanSummary, ScanSummarySchema, Scanner, type ScoreTrendResponse, ScoreTrendResponseSchema, type ScoreTrendSeries, ScoreTrendSeriesSchema, type SecurityProfile, type SecurityProfileListResponse, SecurityProfileListResponseSchema, SecurityProfileSchema, SecuritySubCategory, type SentimentRequest, SentimentRequestSchema, type SentimentResponse, SentimentResponseSchema, SeverityFilter, type SeverityReport, SeverityReportSchema, type SeverityStats, SeverityStatsSchema, SortByDateField, SortByFileField, SortDirection, SourceType, type StaticJobMetadata, StaticJobMetadataSchema, type StaticJobRemediation, type StaticJobRemediationRecommendation, StaticJobRemediationRecommendationSchema, StaticJobRemediationSchema, type StaticJobReport, StaticJobReportSchema, type StaticJobReportStats, StaticJobReportStatsSchema, StatusQueryParam, type StreamDetailResponse, StreamDetailResponseSchema, type StreamIterationData, StreamIterationDataSchema, type StreamListResponse, StreamListResponseSchema, StreamType, type StreamingConnectionParams, StreamingConnectionParamsSchema, type SubCategoryModel, SubCategoryModelSchema, type SubCategoryStats, SubCategoryStatsSchema, type SyncScanOptions, type TargetAdditionalContext, TargetAdditionalContextSchema, type TargetBackground, TargetBackgroundSchema, TargetConnectionType, type TargetContextUpdate, TargetContextUpdateSchema, type TargetCreateRequest, TargetCreateRequestSchema, type TargetJobRequest, TargetJobRequestSchema, type TargetList, type TargetListItem, TargetListItemSchema, type TargetListOptions, TargetListSchema, type TargetMetadata, TargetMetadataSchema, type TargetOperationOptions, type TargetProbeRequest, TargetProbeRequestSchema, type TargetProfileResponse, TargetProfileResponseSchema, type TargetReference, TargetReferenceSchema, type TargetResponse, TargetResponseSchema, TargetStatus, TargetType, type TargetUpdateRequest, TargetUpdateRequestSchema, ThreatCategory, type ThreatScanReport, ThreatScanReportSchema, type TokenInfo, type ToolDetected, ToolDetectedSchema, type ToolEvent, type ToolEventMetadata, ToolEventMetadataSchema, ToolEventSchema, TopicsClient, USER_AGENT, type UrlfEntry, UrlfEntrySchema, type ValidationError, ValidationErrorSchema, Verdict, Verdict as VerdictType, type ViolationList, ViolationListSchema, type ViolationResponse, ViolationResponseSchema, globalConfiguration, init };
|
package/dist/index.js
CHANGED
|
@@ -23,7 +23,7 @@ var MAX_NUMBER_OF_BATCH_SCAN_OBJECTS = 5;
|
|
|
23
23
|
var MAX_CONNECTION_POOL_SIZE = 100;
|
|
24
24
|
var MAX_NUMBER_OF_RETRIES = 5;
|
|
25
25
|
var HTTP_FORCE_RETRY_STATUS_CODES = [500, 502, 503, 504];
|
|
26
|
-
var SDK_VERSION = "0.6.
|
|
26
|
+
var SDK_VERSION = "0.6.1";
|
|
27
27
|
var USER_AGENT = `PAN-AIRS/${SDK_VERSION}-typescript-sdk`;
|
|
28
28
|
var DEFAULT_MGMT_ENDPOINT = "https://api.sase.paloaltonetworks.com/aisec";
|
|
29
29
|
var DEFAULT_TOKEN_ENDPOINT = "https://auth.apps.paloaltonetworks.com/oauth2/access_token";
|
|
@@ -2490,7 +2490,13 @@ async function managementHttpRequest(opts) {
|
|
|
2490
2490
|
const url = new URL(`${stripped}${path}`);
|
|
2491
2491
|
if (params) {
|
|
2492
2492
|
for (const [key, value] of Object.entries(params)) {
|
|
2493
|
-
|
|
2493
|
+
if (Array.isArray(value)) {
|
|
2494
|
+
for (const v of value) {
|
|
2495
|
+
url.searchParams.append(key, v);
|
|
2496
|
+
}
|
|
2497
|
+
} else {
|
|
2498
|
+
url.searchParams.set(key, value);
|
|
2499
|
+
}
|
|
2494
2500
|
}
|
|
2495
2501
|
}
|
|
2496
2502
|
const headers = {
|
|
@@ -3078,13 +3084,23 @@ var ModelSecurityScansClient = class {
|
|
|
3078
3084
|
};
|
|
3079
3085
|
|
|
3080
3086
|
// src/model-security/security-groups-client.ts
|
|
3081
|
-
function
|
|
3087
|
+
function buildGroupListParams(opts) {
|
|
3082
3088
|
const params = {};
|
|
3083
3089
|
if (opts?.skip !== void 0) params.skip = String(opts.skip);
|
|
3084
3090
|
if (opts?.limit !== void 0) params.limit = String(opts.limit);
|
|
3085
|
-
if (opts?.
|
|
3086
|
-
if (opts?.
|
|
3087
|
-
if (opts?.
|
|
3091
|
+
if (opts?.sort_field !== void 0) params.sort_field = opts.sort_field;
|
|
3092
|
+
if (opts?.sort_dir !== void 0) params.sort_dir = opts.sort_dir;
|
|
3093
|
+
if (opts?.source_types !== void 0) params.source_types = opts.source_types;
|
|
3094
|
+
if (opts?.search_query !== void 0) params.search_query = opts.search_query;
|
|
3095
|
+
if (opts?.enabled_rules !== void 0) params.enabled_rules = opts.enabled_rules;
|
|
3096
|
+
return params;
|
|
3097
|
+
}
|
|
3098
|
+
function buildRuleInstanceListParams(opts) {
|
|
3099
|
+
const params = {};
|
|
3100
|
+
if (opts?.skip !== void 0) params.skip = String(opts.skip);
|
|
3101
|
+
if (opts?.limit !== void 0) params.limit = String(opts.limit);
|
|
3102
|
+
if (opts?.security_rule_uuid !== void 0) params.security_rule_uuid = opts.security_rule_uuid;
|
|
3103
|
+
if (opts?.state !== void 0) params.state = opts.state;
|
|
3088
3104
|
return params;
|
|
3089
3105
|
}
|
|
3090
3106
|
var ModelSecurityGroupsClient = class {
|
|
@@ -3122,7 +3138,7 @@ var ModelSecurityGroupsClient = class {
|
|
|
3122
3138
|
method: "GET",
|
|
3123
3139
|
baseUrl: this.baseUrl,
|
|
3124
3140
|
path: MODEL_SEC_SECURITY_GROUPS_PATH,
|
|
3125
|
-
params:
|
|
3141
|
+
params: buildGroupListParams(opts),
|
|
3126
3142
|
oauthClient: this.oauthClient,
|
|
3127
3143
|
numRetries: this.numRetries
|
|
3128
3144
|
});
|
|
@@ -3208,7 +3224,7 @@ var ModelSecurityGroupsClient = class {
|
|
|
3208
3224
|
method: "GET",
|
|
3209
3225
|
baseUrl: this.baseUrl,
|
|
3210
3226
|
path: `${MODEL_SEC_SECURITY_GROUPS_PATH}/${securityGroupUuid}/rule-instances`,
|
|
3211
|
-
params:
|
|
3227
|
+
params: buildRuleInstanceListParams(opts),
|
|
3212
3228
|
oauthClient: this.oauthClient,
|
|
3213
3229
|
numRetries: this.numRetries
|
|
3214
3230
|
});
|
|
@@ -3275,13 +3291,12 @@ var ModelSecurityGroupsClient = class {
|
|
|
3275
3291
|
};
|
|
3276
3292
|
|
|
3277
3293
|
// src/model-security/security-rules-client.ts
|
|
3278
|
-
function
|
|
3294
|
+
function buildRuleListParams(opts) {
|
|
3279
3295
|
const params = {};
|
|
3280
3296
|
if (opts?.skip !== void 0) params.skip = String(opts.skip);
|
|
3281
3297
|
if (opts?.limit !== void 0) params.limit = String(opts.limit);
|
|
3282
|
-
if (opts?.
|
|
3283
|
-
if (opts?.
|
|
3284
|
-
if (opts?.search !== void 0) params.search = opts.search;
|
|
3298
|
+
if (opts?.source_type !== void 0) params.source_type = opts.source_type;
|
|
3299
|
+
if (opts?.search_query !== void 0) params.search_query = opts.search_query;
|
|
3285
3300
|
return params;
|
|
3286
3301
|
}
|
|
3287
3302
|
var ModelSecurityRulesClient = class {
|
|
@@ -3303,7 +3318,7 @@ var ModelSecurityRulesClient = class {
|
|
|
3303
3318
|
method: "GET",
|
|
3304
3319
|
baseUrl: this.baseUrl,
|
|
3305
3320
|
path: MODEL_SEC_SECURITY_RULES_PATH,
|
|
3306
|
-
params:
|
|
3321
|
+
params: buildRuleListParams(opts),
|
|
3307
3322
|
oauthClient: this.oauthClient,
|
|
3308
3323
|
numRetries: this.numRetries
|
|
3309
3324
|
});
|
|
@@ -3413,7 +3428,7 @@ var ModelSecurityClient = class {
|
|
|
3413
3428
|
};
|
|
3414
3429
|
|
|
3415
3430
|
// src/red-team/scans-client.ts
|
|
3416
|
-
function
|
|
3431
|
+
function buildListParams2(opts) {
|
|
3417
3432
|
const params = {};
|
|
3418
3433
|
if (opts?.skip !== void 0) params.skip = String(opts.skip);
|
|
3419
3434
|
if (opts?.limit !== void 0) params.limit = String(opts.limit);
|
|
@@ -3445,7 +3460,7 @@ var RedTeamScansClient = class {
|
|
|
3445
3460
|
}
|
|
3446
3461
|
/** List red team scan jobs with optional filters. */
|
|
3447
3462
|
async list(opts) {
|
|
3448
|
-
const params =
|
|
3463
|
+
const params = buildListParams2(opts);
|
|
3449
3464
|
if (opts?.status !== void 0) params.status = opts.status;
|
|
3450
3465
|
if (opts?.job_type !== void 0) params.job_type = opts.job_type;
|
|
3451
3466
|
if (opts?.target_id !== void 0) params.target_id = opts.target_id;
|
|
@@ -3501,7 +3516,7 @@ var RedTeamScansClient = class {
|
|
|
3501
3516
|
};
|
|
3502
3517
|
|
|
3503
3518
|
// src/red-team/reports-client.ts
|
|
3504
|
-
function
|
|
3519
|
+
function buildListParams3(opts) {
|
|
3505
3520
|
const params = {};
|
|
3506
3521
|
if (opts?.skip !== void 0) params.skip = String(opts.skip);
|
|
3507
3522
|
if (opts?.limit !== void 0) params.limit = String(opts.limit);
|
|
@@ -3530,7 +3545,7 @@ var RedTeamReportsClient = class {
|
|
|
3530
3545
|
/** List attacks for a static scan. */
|
|
3531
3546
|
async listAttacks(jobId, opts) {
|
|
3532
3547
|
validateJobId(jobId);
|
|
3533
|
-
const params =
|
|
3548
|
+
const params = buildListParams3(opts);
|
|
3534
3549
|
if (opts?.status !== void 0) params.status = opts.status;
|
|
3535
3550
|
if (opts?.severity !== void 0) params.severity = opts.severity;
|
|
3536
3551
|
if (opts?.category !== void 0) params.category = opts.category;
|
|
@@ -3659,7 +3674,7 @@ var RedTeamReportsClient = class {
|
|
|
3659
3674
|
/** List goals for a dynamic scan. */
|
|
3660
3675
|
async listGoals(jobId, opts) {
|
|
3661
3676
|
validateJobId(jobId);
|
|
3662
|
-
const params =
|
|
3677
|
+
const params = buildListParams3(opts);
|
|
3663
3678
|
if (opts?.goal_type !== void 0) params.goal_type = opts.goal_type;
|
|
3664
3679
|
const res = await managementHttpRequest({
|
|
3665
3680
|
method: "GET",
|
|
@@ -3684,7 +3699,7 @@ var RedTeamReportsClient = class {
|
|
|
3684
3699
|
method: "GET",
|
|
3685
3700
|
baseUrl: this.baseUrl,
|
|
3686
3701
|
path: `${RED_TEAM_REPORT_DYNAMIC_PATH}/${jobId}/goal/${goalId}/list-streams`,
|
|
3687
|
-
params:
|
|
3702
|
+
params: buildListParams3(opts),
|
|
3688
3703
|
oauthClient: this.oauthClient,
|
|
3689
3704
|
numRetries: this.numRetries
|
|
3690
3705
|
});
|
|
@@ -3740,7 +3755,7 @@ var RedTeamReportsClient = class {
|
|
|
3740
3755
|
};
|
|
3741
3756
|
|
|
3742
3757
|
// src/red-team/custom-attack-reports-client.ts
|
|
3743
|
-
function
|
|
3758
|
+
function buildListParams4(opts) {
|
|
3744
3759
|
const params = {};
|
|
3745
3760
|
if (opts?.skip !== void 0) params.skip = String(opts.skip);
|
|
3746
3761
|
if (opts?.limit !== void 0) params.limit = String(opts.limit);
|
|
@@ -3800,7 +3815,7 @@ var RedTeamCustomAttackReportsClient = class {
|
|
|
3800
3815
|
method: "GET",
|
|
3801
3816
|
baseUrl: this.baseUrl,
|
|
3802
3817
|
path: `${RED_TEAM_CUSTOM_ATTACKS_REPORT_PATH}/report/${jobId}/prompt-set/${promptSetId}/prompts`,
|
|
3803
|
-
params:
|
|
3818
|
+
params: buildListParams4(opts),
|
|
3804
3819
|
oauthClient: this.oauthClient,
|
|
3805
3820
|
numRetries: this.numRetries
|
|
3806
3821
|
});
|
|
@@ -3831,7 +3846,7 @@ var RedTeamCustomAttackReportsClient = class {
|
|
|
3831
3846
|
method: "GET",
|
|
3832
3847
|
baseUrl: this.baseUrl,
|
|
3833
3848
|
path: `${RED_TEAM_CUSTOM_ATTACKS_REPORT_PATH}/job/${jobId}/list-custom-attacks`,
|
|
3834
|
-
params:
|
|
3849
|
+
params: buildListParams4(opts),
|
|
3835
3850
|
oauthClient: this.oauthClient,
|
|
3836
3851
|
numRetries: this.numRetries
|
|
3837
3852
|
});
|
|
@@ -3870,7 +3885,7 @@ var RedTeamCustomAttackReportsClient = class {
|
|
|
3870
3885
|
};
|
|
3871
3886
|
|
|
3872
3887
|
// src/red-team/targets-client.ts
|
|
3873
|
-
function
|
|
3888
|
+
function buildListParams5(opts) {
|
|
3874
3889
|
const params = {};
|
|
3875
3890
|
if (opts?.skip !== void 0) params.skip = String(opts.skip);
|
|
3876
3891
|
if (opts?.limit !== void 0) params.limit = String(opts.limit);
|
|
@@ -3905,7 +3920,7 @@ var RedTeamTargetsClient = class {
|
|
|
3905
3920
|
}
|
|
3906
3921
|
/** List targets with optional filters. */
|
|
3907
3922
|
async list(opts) {
|
|
3908
|
-
const params =
|
|
3923
|
+
const params = buildListParams5(opts);
|
|
3909
3924
|
if (opts?.target_type !== void 0) params.target_type = opts.target_type;
|
|
3910
3925
|
if (opts?.status !== void 0) params.status = opts.status;
|
|
3911
3926
|
if (opts?.active !== void 0) params.active = String(opts.active);
|
|
@@ -4024,7 +4039,7 @@ var RedTeamTargetsClient = class {
|
|
|
4024
4039
|
};
|
|
4025
4040
|
|
|
4026
4041
|
// src/red-team/custom-attacks-client.ts
|
|
4027
|
-
function
|
|
4042
|
+
function buildListParams6(opts) {
|
|
4028
4043
|
const params = {};
|
|
4029
4044
|
if (opts?.skip !== void 0) params.skip = String(opts.skip);
|
|
4030
4045
|
if (opts?.limit !== void 0) params.limit = String(opts.limit);
|
|
@@ -4064,7 +4079,7 @@ var RedTeamCustomAttacksClient = class {
|
|
|
4064
4079
|
}
|
|
4065
4080
|
/** List custom prompt sets. */
|
|
4066
4081
|
async listPromptSets(opts) {
|
|
4067
|
-
const params =
|
|
4082
|
+
const params = buildListParams6(opts);
|
|
4068
4083
|
if (opts?.active !== void 0) params.active = String(opts.active);
|
|
4069
4084
|
if (opts?.archive !== void 0) params.archive = String(opts.archive);
|
|
4070
4085
|
const res = await managementHttpRequest({
|
|
@@ -4207,7 +4222,7 @@ var RedTeamCustomAttacksClient = class {
|
|
|
4207
4222
|
/** List prompts in a prompt set. */
|
|
4208
4223
|
async listPrompts(promptSetUuid, opts) {
|
|
4209
4224
|
validateUuid(promptSetUuid, "prompt set uuid");
|
|
4210
|
-
const params =
|
|
4225
|
+
const params = buildListParams6(opts);
|
|
4211
4226
|
if (opts?.active !== void 0) params.active = String(opts.active);
|
|
4212
4227
|
const res = await managementHttpRequest({
|
|
4213
4228
|
method: "GET",
|
|
@@ -4328,7 +4343,7 @@ var RedTeamCustomAttacksClient = class {
|
|
|
4328
4343
|
};
|
|
4329
4344
|
|
|
4330
4345
|
// src/red-team/client.ts
|
|
4331
|
-
function
|
|
4346
|
+
function buildListParams7(opts) {
|
|
4332
4347
|
const params = {};
|
|
4333
4348
|
if (opts?.skip !== void 0) params.skip = String(opts.skip);
|
|
4334
4349
|
if (opts?.limit !== void 0) params.limit = String(opts.limit);
|
|
@@ -4467,7 +4482,7 @@ var RedTeamClient = class {
|
|
|
4467
4482
|
method: "GET",
|
|
4468
4483
|
baseUrl: this.dataEndpoint,
|
|
4469
4484
|
path: `${RED_TEAM_ERROR_LOG_PATH}/${jobId}`,
|
|
4470
|
-
params:
|
|
4485
|
+
params: buildListParams7(opts),
|
|
4471
4486
|
oauthClient: this.oauthClient,
|
|
4472
4487
|
numRetries: this.numRetries
|
|
4473
4488
|
});
|