@cdot65/prisma-airs-sdk 0.6.4 → 0.6.6
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 +366 -134
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +397 -128
- package/dist/index.d.ts +397 -128
- package/dist/index.js +366 -134
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -16485,9 +16485,15 @@ declare class Content {
|
|
|
16485
16485
|
set codeResponse(value: string | undefined);
|
|
16486
16486
|
get toolEvent(): ToolEvent | undefined;
|
|
16487
16487
|
set toolEvent(value: ToolEvent | undefined);
|
|
16488
|
-
/**
|
|
16488
|
+
/**
|
|
16489
|
+
* Total byte length of all text content fields.
|
|
16490
|
+
* @returns Combined byte length of all text content fields.
|
|
16491
|
+
*/
|
|
16489
16492
|
get length(): number;
|
|
16490
|
-
/**
|
|
16493
|
+
/**
|
|
16494
|
+
* Serialize to the API request format.
|
|
16495
|
+
* @returns The content as a scan request contents inner object.
|
|
16496
|
+
*/
|
|
16491
16497
|
toJSON(): ScanRequestContentsInner;
|
|
16492
16498
|
/**
|
|
16493
16499
|
* Create a Content instance from an API response object.
|
|
@@ -16497,6 +16503,7 @@ declare class Content {
|
|
|
16497
16503
|
/**
|
|
16498
16504
|
* Load content from a JSON file.
|
|
16499
16505
|
* @param filePath - Path to JSON file containing scan request contents.
|
|
16506
|
+
* @returns A new Content instance populated from the JSON file.
|
|
16500
16507
|
*/
|
|
16501
16508
|
static fromJSONFile(filePath: string): Content;
|
|
16502
16509
|
}
|
|
@@ -20752,13 +20759,13 @@ declare const ErrorResponseSchema: z.ZodObject<{
|
|
|
20752
20759
|
retry_after: z.ZodOptional<z.ZodObject<{
|
|
20753
20760
|
interval: z.ZodOptional<z.ZodNumber>;
|
|
20754
20761
|
unit: z.ZodOptional<z.ZodString>;
|
|
20755
|
-
}, "
|
|
20756
|
-
interval
|
|
20757
|
-
unit
|
|
20758
|
-
}, {
|
|
20759
|
-
interval
|
|
20760
|
-
unit
|
|
20761
|
-
}
|
|
20762
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
20763
|
+
interval: z.ZodOptional<z.ZodNumber>;
|
|
20764
|
+
unit: z.ZodOptional<z.ZodString>;
|
|
20765
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
20766
|
+
interval: z.ZodOptional<z.ZodNumber>;
|
|
20767
|
+
unit: z.ZodOptional<z.ZodString>;
|
|
20768
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
20762
20769
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
20763
20770
|
status_code: z.ZodOptional<z.ZodNumber>;
|
|
20764
20771
|
message: z.ZodOptional<z.ZodString>;
|
|
@@ -20772,13 +20779,13 @@ declare const ErrorResponseSchema: z.ZodObject<{
|
|
|
20772
20779
|
retry_after: z.ZodOptional<z.ZodObject<{
|
|
20773
20780
|
interval: z.ZodOptional<z.ZodNumber>;
|
|
20774
20781
|
unit: z.ZodOptional<z.ZodString>;
|
|
20775
|
-
}, "
|
|
20776
|
-
interval
|
|
20777
|
-
unit
|
|
20778
|
-
}, {
|
|
20779
|
-
interval
|
|
20780
|
-
unit
|
|
20781
|
-
}
|
|
20782
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
20783
|
+
interval: z.ZodOptional<z.ZodNumber>;
|
|
20784
|
+
unit: z.ZodOptional<z.ZodString>;
|
|
20785
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
20786
|
+
interval: z.ZodOptional<z.ZodNumber>;
|
|
20787
|
+
unit: z.ZodOptional<z.ZodString>;
|
|
20788
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
20782
20789
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
20783
20790
|
status_code: z.ZodOptional<z.ZodNumber>;
|
|
20784
20791
|
message: z.ZodOptional<z.ZodString>;
|
|
@@ -20792,13 +20799,13 @@ declare const ErrorResponseSchema: z.ZodObject<{
|
|
|
20792
20799
|
retry_after: z.ZodOptional<z.ZodObject<{
|
|
20793
20800
|
interval: z.ZodOptional<z.ZodNumber>;
|
|
20794
20801
|
unit: z.ZodOptional<z.ZodString>;
|
|
20795
|
-
}, "
|
|
20796
|
-
interval
|
|
20797
|
-
unit
|
|
20798
|
-
}, {
|
|
20799
|
-
interval
|
|
20800
|
-
unit
|
|
20801
|
-
}
|
|
20802
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
20803
|
+
interval: z.ZodOptional<z.ZodNumber>;
|
|
20804
|
+
unit: z.ZodOptional<z.ZodString>;
|
|
20805
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
20806
|
+
interval: z.ZodOptional<z.ZodNumber>;
|
|
20807
|
+
unit: z.ZodOptional<z.ZodString>;
|
|
20808
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
20802
20809
|
}, z.ZodTypeAny, "passthrough">>;
|
|
20803
20810
|
/** AIRS API error response with optional retry-after guidance. */
|
|
20804
20811
|
type ErrorResponse = z.infer<typeof ErrorResponseSchema>;
|
|
@@ -29860,31 +29867,31 @@ declare const ApiKeyCreateRequestSchema: z.ZodObject<{
|
|
|
29860
29867
|
api_key_name: z.ZodString;
|
|
29861
29868
|
rotation_time_interval: z.ZodNumber;
|
|
29862
29869
|
rotation_time_unit: z.ZodString;
|
|
29863
|
-
}, "
|
|
29864
|
-
|
|
29865
|
-
|
|
29866
|
-
|
|
29867
|
-
|
|
29868
|
-
|
|
29869
|
-
|
|
29870
|
-
|
|
29871
|
-
|
|
29872
|
-
|
|
29873
|
-
|
|
29874
|
-
|
|
29875
|
-
}, {
|
|
29876
|
-
|
|
29877
|
-
|
|
29878
|
-
|
|
29879
|
-
|
|
29880
|
-
|
|
29881
|
-
|
|
29882
|
-
|
|
29883
|
-
|
|
29884
|
-
|
|
29885
|
-
|
|
29886
|
-
|
|
29887
|
-
}
|
|
29870
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
29871
|
+
dp_name: z.ZodOptional<z.ZodString>;
|
|
29872
|
+
auth_code: z.ZodString;
|
|
29873
|
+
cust_app: z.ZodString;
|
|
29874
|
+
cust_env: z.ZodOptional<z.ZodString>;
|
|
29875
|
+
cust_cloud_provider: z.ZodOptional<z.ZodString>;
|
|
29876
|
+
cust_ai_agent_framework: z.ZodOptional<z.ZodString>;
|
|
29877
|
+
revoked: z.ZodBoolean;
|
|
29878
|
+
created_by: z.ZodString;
|
|
29879
|
+
api_key_name: z.ZodString;
|
|
29880
|
+
rotation_time_interval: z.ZodNumber;
|
|
29881
|
+
rotation_time_unit: z.ZodString;
|
|
29882
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
29883
|
+
dp_name: z.ZodOptional<z.ZodString>;
|
|
29884
|
+
auth_code: z.ZodString;
|
|
29885
|
+
cust_app: z.ZodString;
|
|
29886
|
+
cust_env: z.ZodOptional<z.ZodString>;
|
|
29887
|
+
cust_cloud_provider: z.ZodOptional<z.ZodString>;
|
|
29888
|
+
cust_ai_agent_framework: z.ZodOptional<z.ZodString>;
|
|
29889
|
+
revoked: z.ZodBoolean;
|
|
29890
|
+
created_by: z.ZodString;
|
|
29891
|
+
api_key_name: z.ZodString;
|
|
29892
|
+
rotation_time_interval: z.ZodNumber;
|
|
29893
|
+
rotation_time_unit: z.ZodString;
|
|
29894
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
29888
29895
|
/** API key creation request. */
|
|
29889
29896
|
type ApiKeyCreateRequest = z.infer<typeof ApiKeyCreateRequestSchema>;
|
|
29890
29897
|
/** Zod schema for API key regeneration request. */
|
|
@@ -29892,15 +29899,15 @@ declare const ApiKeyRegenerateRequestSchema: z.ZodObject<{
|
|
|
29892
29899
|
rotation_time_interval: z.ZodNumber;
|
|
29893
29900
|
rotation_time_unit: z.ZodString;
|
|
29894
29901
|
updated_by: z.ZodOptional<z.ZodString>;
|
|
29895
|
-
}, "
|
|
29896
|
-
rotation_time_interval:
|
|
29897
|
-
rotation_time_unit:
|
|
29898
|
-
updated_by
|
|
29899
|
-
}, {
|
|
29900
|
-
rotation_time_interval:
|
|
29901
|
-
rotation_time_unit:
|
|
29902
|
-
updated_by
|
|
29903
|
-
}
|
|
29902
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
29903
|
+
rotation_time_interval: z.ZodNumber;
|
|
29904
|
+
rotation_time_unit: z.ZodString;
|
|
29905
|
+
updated_by: z.ZodOptional<z.ZodString>;
|
|
29906
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
29907
|
+
rotation_time_interval: z.ZodNumber;
|
|
29908
|
+
rotation_time_unit: z.ZodString;
|
|
29909
|
+
updated_by: z.ZodOptional<z.ZodString>;
|
|
29910
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
29904
29911
|
/** API key regeneration request. */
|
|
29905
29912
|
type ApiKeyRegenerateRequest = z.infer<typeof ApiKeyRegenerateRequestSchema>;
|
|
29906
29913
|
/** Zod schema for paginated API key list response. */
|
|
@@ -33678,13 +33685,13 @@ type PaginatedScanResults = z.infer<typeof PaginatedScanResultsSchema>;
|
|
|
33678
33685
|
declare const ClientIdAndCustomerAppSchema: z.ZodObject<{
|
|
33679
33686
|
client_id: z.ZodString;
|
|
33680
33687
|
customer_app: z.ZodString;
|
|
33681
|
-
}, "
|
|
33682
|
-
client_id:
|
|
33683
|
-
customer_app:
|
|
33684
|
-
}, {
|
|
33685
|
-
client_id:
|
|
33686
|
-
customer_app:
|
|
33687
|
-
}
|
|
33688
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
33689
|
+
client_id: z.ZodString;
|
|
33690
|
+
customer_app: z.ZodString;
|
|
33691
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
33692
|
+
client_id: z.ZodString;
|
|
33693
|
+
customer_app: z.ZodString;
|
|
33694
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
33688
33695
|
/** OAuth client_id and customer_app request body. */
|
|
33689
33696
|
type ClientIdAndCustomerApp = z.infer<typeof ClientIdAndCustomerAppSchema>;
|
|
33690
33697
|
/** Zod schema for OAuth2 token response. */
|
|
@@ -56690,8 +56697,8 @@ declare const MAX_NUMBER_OF_BATCH_SCAN_OBJECTS = 5;
|
|
|
56690
56697
|
declare const MAX_CONNECTION_POOL_SIZE = 100;
|
|
56691
56698
|
declare const MAX_NUMBER_OF_RETRIES = 5;
|
|
56692
56699
|
declare const HTTP_FORCE_RETRY_STATUS_CODES: number[];
|
|
56693
|
-
declare const SDK_VERSION = "0.6.
|
|
56694
|
-
declare const USER_AGENT = "PAN-AIRS/0.6.
|
|
56700
|
+
declare const SDK_VERSION = "0.6.6";
|
|
56701
|
+
declare const USER_AGENT = "PAN-AIRS/0.6.6-typescript-sdk";
|
|
56695
56702
|
declare const DEFAULT_MGMT_ENDPOINT = "https://api.sase.paloaltonetworks.com/aisec";
|
|
56696
56703
|
declare const DEFAULT_TOKEN_ENDPOINT = "https://auth.apps.paloaltonetworks.com/oauth2/access_token";
|
|
56697
56704
|
declare const MGMT_CLIENT_ID = "PANW_MGMT_CLIENT_ID";
|
|
@@ -56803,14 +56810,20 @@ declare class OAuthClient {
|
|
|
56803
56810
|
* @returns Bearer access token string.
|
|
56804
56811
|
*/
|
|
56805
56812
|
getToken(): Promise<string>;
|
|
56806
|
-
/**
|
|
56813
|
+
/**
|
|
56814
|
+
* Clear the cached token, forcing a fresh fetch on next call.
|
|
56815
|
+
*/
|
|
56807
56816
|
clearToken(): void;
|
|
56808
|
-
/**
|
|
56817
|
+
/**
|
|
56818
|
+
* Check if the current token has passed its expiry time. Returns true if no token exists.
|
|
56819
|
+
* @returns Whether the token is expired.
|
|
56820
|
+
*/
|
|
56809
56821
|
isTokenExpired(): boolean;
|
|
56810
56822
|
/**
|
|
56811
56823
|
* Check if the token is within the pre-expiry buffer window.
|
|
56812
56824
|
* Returns true if no token exists.
|
|
56813
56825
|
* @param bufferMs - Custom buffer in ms. Defaults to the configured `tokenBufferMs`.
|
|
56826
|
+
* @returns Whether the token is expiring soon.
|
|
56814
56827
|
*/
|
|
56815
56828
|
isTokenExpiringSoon(bufferMs?: number): boolean;
|
|
56816
56829
|
/**
|
|
@@ -56918,7 +56931,7 @@ declare class TopicsClient {
|
|
|
56918
56931
|
/**
|
|
56919
56932
|
* Force-delete a custom topic, removing it from any referencing profiles.
|
|
56920
56933
|
* @param topicId - UUID of the topic to force-delete.
|
|
56921
|
-
* @param updatedBy - Email of the user performing the deletion.
|
|
56934
|
+
* @param updatedBy - Optional. Email of the user performing the deletion.
|
|
56922
56935
|
* @returns Deletion confirmation message.
|
|
56923
56936
|
*/
|
|
56924
56937
|
forceDelete(topicId: string, updatedBy?: string): Promise<DeleteTopicResponse>;
|
|
@@ -57394,6 +57407,7 @@ declare class ModelSecurityGroupsClient {
|
|
|
57394
57407
|
/**
|
|
57395
57408
|
* Delete a security group.
|
|
57396
57409
|
* @param uuid - Security group UUID.
|
|
57410
|
+
* @returns Resolves when the security group is deleted.
|
|
57397
57411
|
*/
|
|
57398
57412
|
delete(uuid: string): Promise<void>;
|
|
57399
57413
|
/**
|
|
@@ -57527,13 +57541,28 @@ declare class RedTeamScansClient {
|
|
|
57527
57541
|
* @returns The created job response.
|
|
57528
57542
|
*/
|
|
57529
57543
|
create(request: JobCreateRequest): Promise<JobResponse>;
|
|
57530
|
-
/**
|
|
57544
|
+
/**
|
|
57545
|
+
* List red team scan jobs with optional filters.
|
|
57546
|
+
* @param opts - Optional pagination, search, and filter options.
|
|
57547
|
+
* @returns The paginated list of scan jobs.
|
|
57548
|
+
*/
|
|
57531
57549
|
list(opts?: RedTeamScanListOptions): Promise<JobListResponse>;
|
|
57532
|
-
/**
|
|
57550
|
+
/**
|
|
57551
|
+
* Get a single scan job by ID.
|
|
57552
|
+
* @param jobId - The job UUID.
|
|
57553
|
+
* @returns The job response.
|
|
57554
|
+
*/
|
|
57533
57555
|
get(jobId: string): Promise<JobResponse>;
|
|
57534
|
-
/**
|
|
57556
|
+
/**
|
|
57557
|
+
* Abort a running scan job.
|
|
57558
|
+
* @param jobId - The job UUID.
|
|
57559
|
+
* @returns The abort response.
|
|
57560
|
+
*/
|
|
57535
57561
|
abort(jobId: string): Promise<JobAbortResponse>;
|
|
57536
|
-
/**
|
|
57562
|
+
/**
|
|
57563
|
+
* Get all categories with subcategories.
|
|
57564
|
+
* @returns The list of category models.
|
|
57565
|
+
*/
|
|
57537
57566
|
getCategories(): Promise<CategoryModel[]>;
|
|
57538
57567
|
}
|
|
57539
57568
|
|
|
@@ -57564,33 +57593,96 @@ declare class RedTeamReportsClient {
|
|
|
57564
57593
|
private readonly oauthClient;
|
|
57565
57594
|
private readonly numRetries;
|
|
57566
57595
|
constructor(opts: RedTeamReportsClientOptions);
|
|
57567
|
-
/**
|
|
57596
|
+
/**
|
|
57597
|
+
* List attacks for a static scan.
|
|
57598
|
+
* @param jobId - The job UUID.
|
|
57599
|
+
* @param opts - Optional pagination, search, and filter options.
|
|
57600
|
+
* @returns The paginated list of attacks.
|
|
57601
|
+
*/
|
|
57568
57602
|
listAttacks(jobId: string, opts?: AttackListOptions): Promise<AttackListResponse>;
|
|
57569
|
-
/**
|
|
57603
|
+
/**
|
|
57604
|
+
* Get attack details for a static scan.
|
|
57605
|
+
* @param jobId - The job UUID.
|
|
57606
|
+
* @param attackId - The attack UUID.
|
|
57607
|
+
* @returns The attack detail response.
|
|
57608
|
+
*/
|
|
57570
57609
|
getAttackDetail(jobId: string, attackId: string): Promise<AttackDetailResponse>;
|
|
57571
|
-
/**
|
|
57610
|
+
/**
|
|
57611
|
+
* Get multi-turn attack details for a static scan.
|
|
57612
|
+
* @param jobId - The job UUID.
|
|
57613
|
+
* @param attackId - The attack UUID.
|
|
57614
|
+
* @returns The multi-turn attack detail response.
|
|
57615
|
+
*/
|
|
57572
57616
|
getMultiTurnAttackDetail(jobId: string, attackId: string): Promise<AttackMultiTurnDetailResponse>;
|
|
57573
|
-
/**
|
|
57617
|
+
/**
|
|
57618
|
+
* Get the attack library report for a static scan.
|
|
57619
|
+
* @param jobId - The job UUID.
|
|
57620
|
+
* @returns The static job report.
|
|
57621
|
+
*/
|
|
57574
57622
|
getStaticReport(jobId: string): Promise<StaticJobReport>;
|
|
57575
|
-
/**
|
|
57623
|
+
/**
|
|
57624
|
+
* Get remediation recommendations for a static scan.
|
|
57625
|
+
* @param jobId - The job UUID.
|
|
57626
|
+
* @returns The remediation response.
|
|
57627
|
+
*/
|
|
57576
57628
|
getStaticRemediation(jobId: string): Promise<RemediationResponse>;
|
|
57577
|
-
/**
|
|
57629
|
+
/**
|
|
57630
|
+
* Get runtime security profile config for a static scan.
|
|
57631
|
+
* @param jobId - The job UUID.
|
|
57632
|
+
* @returns The runtime security profile response.
|
|
57633
|
+
*/
|
|
57578
57634
|
getStaticRuntimePolicy(jobId: string): Promise<RuntimeSecurityProfileResponse>;
|
|
57579
|
-
/**
|
|
57635
|
+
/**
|
|
57636
|
+
* Get the agent scan report for a dynamic scan.
|
|
57637
|
+
* @param jobId - The job UUID.
|
|
57638
|
+
* @returns The dynamic job report.
|
|
57639
|
+
*/
|
|
57580
57640
|
getDynamicReport(jobId: string): Promise<DynamicJobReport>;
|
|
57581
|
-
/**
|
|
57641
|
+
/**
|
|
57642
|
+
* Get remediation recommendations for a dynamic scan.
|
|
57643
|
+
* @param jobId - The job UUID.
|
|
57644
|
+
* @returns The remediation response.
|
|
57645
|
+
*/
|
|
57582
57646
|
getDynamicRemediation(jobId: string): Promise<RemediationResponse>;
|
|
57583
|
-
/**
|
|
57647
|
+
/**
|
|
57648
|
+
* Get runtime security profile config for a dynamic scan.
|
|
57649
|
+
* @param jobId - The job UUID.
|
|
57650
|
+
* @returns The runtime security profile response.
|
|
57651
|
+
*/
|
|
57584
57652
|
getDynamicRuntimePolicy(jobId: string): Promise<RuntimeSecurityProfileResponse>;
|
|
57585
|
-
/**
|
|
57653
|
+
/**
|
|
57654
|
+
* List goals for a dynamic scan.
|
|
57655
|
+
* @param jobId - The job UUID.
|
|
57656
|
+
* @param opts - Optional pagination, search, and filter options.
|
|
57657
|
+
* @returns The paginated list of goals.
|
|
57658
|
+
*/
|
|
57586
57659
|
listGoals(jobId: string, opts?: GoalListOptions): Promise<GoalListResponse>;
|
|
57587
|
-
/**
|
|
57660
|
+
/**
|
|
57661
|
+
* List streams for a goal in a dynamic scan.
|
|
57662
|
+
* @param jobId - The job UUID.
|
|
57663
|
+
* @param goalId - The goal UUID.
|
|
57664
|
+
* @param opts - Optional pagination and search options.
|
|
57665
|
+
* @returns The paginated list of streams.
|
|
57666
|
+
*/
|
|
57588
57667
|
listGoalStreams(jobId: string, goalId: string, opts?: RedTeamListOptions): Promise<StreamListResponse>;
|
|
57589
|
-
/**
|
|
57668
|
+
/**
|
|
57669
|
+
* Get stream details by stream ID.
|
|
57670
|
+
* @param streamId - The stream UUID.
|
|
57671
|
+
* @returns The stream detail response.
|
|
57672
|
+
*/
|
|
57590
57673
|
getStreamDetail(streamId: string): Promise<StreamDetailResponse>;
|
|
57591
|
-
/**
|
|
57674
|
+
/**
|
|
57675
|
+
* Download a report in the specified format.
|
|
57676
|
+
* @param jobId - The job UUID.
|
|
57677
|
+
* @param format - The file format (e.g. "pdf", "csv").
|
|
57678
|
+
* @returns The report data in the requested format (untyped — shape depends on `format`).
|
|
57679
|
+
*/
|
|
57592
57680
|
downloadReport(jobId: string, format: string): Promise<unknown>;
|
|
57593
|
-
/**
|
|
57681
|
+
/**
|
|
57682
|
+
* Generate a partial report for a running scan.
|
|
57683
|
+
* @param jobId - The job UUID.
|
|
57684
|
+
* @returns The partial report payload (untyped — schema not yet defined by the API).
|
|
57685
|
+
*/
|
|
57594
57686
|
generatePartialReport(jobId: string): Promise<unknown>;
|
|
57595
57687
|
}
|
|
57596
57688
|
|
|
@@ -57616,19 +57708,52 @@ declare class RedTeamCustomAttackReportsClient {
|
|
|
57616
57708
|
private readonly oauthClient;
|
|
57617
57709
|
private readonly numRetries;
|
|
57618
57710
|
constructor(opts: RedTeamCustomAttackReportsClientOptions);
|
|
57619
|
-
/**
|
|
57711
|
+
/**
|
|
57712
|
+
* Get custom attack report for a scan.
|
|
57713
|
+
* @param jobId - The job UUID.
|
|
57714
|
+
* @returns The custom attack report response.
|
|
57715
|
+
*/
|
|
57620
57716
|
getReport(jobId: string): Promise<CustomAttackReportResponse>;
|
|
57621
|
-
/**
|
|
57717
|
+
/**
|
|
57718
|
+
* Get prompt sets for a custom attack scan.
|
|
57719
|
+
* @param jobId - The job UUID.
|
|
57720
|
+
* @returns The prompt sets report response.
|
|
57721
|
+
*/
|
|
57622
57722
|
getPromptSets(jobId: string): Promise<PromptSetsReportResponse>;
|
|
57623
|
-
/**
|
|
57723
|
+
/**
|
|
57724
|
+
* Get prompts for a specific prompt set in a scan.
|
|
57725
|
+
* @param jobId - The job UUID.
|
|
57726
|
+
* @param promptSetId - The prompt set UUID.
|
|
57727
|
+
* @param opts - Optional pagination, search, and filter options.
|
|
57728
|
+
* @returns The list of prompt detail responses.
|
|
57729
|
+
*/
|
|
57624
57730
|
getPromptsBySet(jobId: string, promptSetId: string, opts?: PromptsBySetListOptions): Promise<PromptDetailResponse[]>;
|
|
57625
|
-
/**
|
|
57731
|
+
/**
|
|
57732
|
+
* Get details for a specific prompt.
|
|
57733
|
+
* @param jobId - The job UUID.
|
|
57734
|
+
* @param promptId - The prompt UUID.
|
|
57735
|
+
* @returns The prompt detail response.
|
|
57736
|
+
*/
|
|
57626
57737
|
getPromptDetail(jobId: string, promptId: string): Promise<PromptDetailResponse>;
|
|
57627
|
-
/**
|
|
57738
|
+
/**
|
|
57739
|
+
* List custom attacks for a scan.
|
|
57740
|
+
* @param jobId - The job UUID.
|
|
57741
|
+
* @param opts - Optional pagination, search, and filter options.
|
|
57742
|
+
* @returns The paginated list of custom attacks.
|
|
57743
|
+
*/
|
|
57628
57744
|
listCustomAttacks(jobId: string, opts?: CustomAttacksReportListOptions): Promise<CustomAttacksListResponse>;
|
|
57629
|
-
/**
|
|
57745
|
+
/**
|
|
57746
|
+
* Get attack outputs for a custom attack.
|
|
57747
|
+
* @param jobId - The job UUID.
|
|
57748
|
+
* @param attackId - The attack UUID.
|
|
57749
|
+
* @returns The list of attack outputs.
|
|
57750
|
+
*/
|
|
57630
57751
|
getAttackOutputs(jobId: string, attackId: string): Promise<CustomAttackOutput[]>;
|
|
57631
|
-
/**
|
|
57752
|
+
/**
|
|
57753
|
+
* Get property statistics for a custom attack scan.
|
|
57754
|
+
* @param jobId - The job UUID.
|
|
57755
|
+
* @returns The list of property statistics.
|
|
57756
|
+
*/
|
|
57632
57757
|
getPropertyStats(jobId: string): Promise<PropertyStatistic[]>;
|
|
57633
57758
|
}
|
|
57634
57759
|
|
|
@@ -57661,19 +57786,50 @@ declare class RedTeamTargetsClient {
|
|
|
57661
57786
|
* @returns The created target response.
|
|
57662
57787
|
*/
|
|
57663
57788
|
create(request: TargetCreateRequest, opts?: TargetOperationOptions): Promise<TargetResponse>;
|
|
57664
|
-
/**
|
|
57789
|
+
/**
|
|
57790
|
+
* List targets with optional filters.
|
|
57791
|
+
* @param opts - Optional pagination, search, and filter options.
|
|
57792
|
+
* @returns The paginated list of targets.
|
|
57793
|
+
*/
|
|
57665
57794
|
list(opts?: TargetListOptions): Promise<TargetList>;
|
|
57666
|
-
/**
|
|
57795
|
+
/**
|
|
57796
|
+
* Get a target by UUID.
|
|
57797
|
+
* @param uuid - The target UUID.
|
|
57798
|
+
* @returns The target response.
|
|
57799
|
+
*/
|
|
57667
57800
|
get(uuid: string): Promise<TargetResponse>;
|
|
57668
|
-
/**
|
|
57801
|
+
/**
|
|
57802
|
+
* Update a target.
|
|
57803
|
+
* @param uuid - The target UUID.
|
|
57804
|
+
* @param request - Target update request body.
|
|
57805
|
+
* @param opts - Optional operation options (e.g. validate connection).
|
|
57806
|
+
* @returns The updated target response.
|
|
57807
|
+
*/
|
|
57669
57808
|
update(uuid: string, request: TargetUpdateRequest, opts?: TargetOperationOptions): Promise<TargetResponse>;
|
|
57670
|
-
/**
|
|
57809
|
+
/**
|
|
57810
|
+
* Delete a target.
|
|
57811
|
+
* @param uuid - The target UUID.
|
|
57812
|
+
* @returns The delete response.
|
|
57813
|
+
*/
|
|
57671
57814
|
delete(uuid: string): Promise<BaseResponse>;
|
|
57672
|
-
/**
|
|
57815
|
+
/**
|
|
57816
|
+
* Run profiling probes on a target.
|
|
57817
|
+
* @param request - The probe request body.
|
|
57818
|
+
* @returns The target response after probing.
|
|
57819
|
+
*/
|
|
57673
57820
|
probe(request: TargetProbeRequest): Promise<TargetResponse>;
|
|
57674
|
-
/**
|
|
57821
|
+
/**
|
|
57822
|
+
* Get profiling results for a target.
|
|
57823
|
+
* @param uuid - The target UUID.
|
|
57824
|
+
* @returns The target profile response.
|
|
57825
|
+
*/
|
|
57675
57826
|
getProfile(uuid: string): Promise<TargetProfileResponse>;
|
|
57676
|
-
/**
|
|
57827
|
+
/**
|
|
57828
|
+
* Update a target profile (background + additional context).
|
|
57829
|
+
* @param uuid - The target UUID.
|
|
57830
|
+
* @param request - The context update request body.
|
|
57831
|
+
* @returns The updated target response.
|
|
57832
|
+
*/
|
|
57677
57833
|
updateProfile(uuid: string, request: TargetContextUpdate): Promise<TargetResponse>;
|
|
57678
57834
|
}
|
|
57679
57835
|
|
|
@@ -57699,45 +57855,131 @@ declare class RedTeamCustomAttacksClient {
|
|
|
57699
57855
|
private readonly oauthClient;
|
|
57700
57856
|
private readonly numRetries;
|
|
57701
57857
|
constructor(opts: RedTeamCustomAttacksClientOptions);
|
|
57702
|
-
/**
|
|
57858
|
+
/**
|
|
57859
|
+
* Create a new custom prompt set.
|
|
57860
|
+
* @param request - Prompt set creation request body.
|
|
57861
|
+
* @returns The created prompt set response.
|
|
57862
|
+
*/
|
|
57703
57863
|
createPromptSet(request: CustomPromptSetCreateRequest): Promise<CustomPromptSetResponse>;
|
|
57704
|
-
/**
|
|
57864
|
+
/**
|
|
57865
|
+
* List custom prompt sets.
|
|
57866
|
+
* @param opts - Optional pagination, search, and filter options.
|
|
57867
|
+
* @returns The paginated list of prompt sets.
|
|
57868
|
+
*/
|
|
57705
57869
|
listPromptSets(opts?: PromptSetListOptions): Promise<CustomPromptSetList>;
|
|
57706
|
-
/**
|
|
57870
|
+
/**
|
|
57871
|
+
* Get a prompt set by UUID.
|
|
57872
|
+
* @param uuid - The prompt set UUID.
|
|
57873
|
+
* @returns The prompt set response.
|
|
57874
|
+
*/
|
|
57707
57875
|
getPromptSet(uuid: string): Promise<CustomPromptSetResponse>;
|
|
57708
|
-
/**
|
|
57876
|
+
/**
|
|
57877
|
+
* Update a prompt set.
|
|
57878
|
+
* @param uuid - The prompt set UUID.
|
|
57879
|
+
* @param request - Prompt set update request body.
|
|
57880
|
+
* @returns The updated prompt set response.
|
|
57881
|
+
*/
|
|
57709
57882
|
updatePromptSet(uuid: string, request: CustomPromptSetUpdateRequest): Promise<CustomPromptSetResponse>;
|
|
57710
|
-
/**
|
|
57883
|
+
/**
|
|
57884
|
+
* Archive or unarchive a prompt set.
|
|
57885
|
+
* @param uuid - The prompt set UUID.
|
|
57886
|
+
* @param request - Archive request body.
|
|
57887
|
+
* @returns The updated prompt set response.
|
|
57888
|
+
*/
|
|
57711
57889
|
archivePromptSet(uuid: string, request: CustomPromptSetArchiveRequest): Promise<CustomPromptSetResponse>;
|
|
57712
|
-
/**
|
|
57890
|
+
/**
|
|
57891
|
+
* Resolve a prompt set reference for data plane consumption.
|
|
57892
|
+
* @param uuid - The prompt set UUID.
|
|
57893
|
+
* @returns The prompt set reference.
|
|
57894
|
+
*/
|
|
57713
57895
|
getPromptSetReference(uuid: string): Promise<CustomPromptSetReference>;
|
|
57714
|
-
/**
|
|
57896
|
+
/**
|
|
57897
|
+
* Get version information for a prompt set.
|
|
57898
|
+
* @param uuid - The prompt set UUID.
|
|
57899
|
+
* @returns The prompt set version info.
|
|
57900
|
+
*/
|
|
57715
57901
|
getPromptSetVersionInfo(uuid: string): Promise<CustomPromptSetVersionInfo>;
|
|
57716
|
-
/**
|
|
57902
|
+
/**
|
|
57903
|
+
* List active prompt sets (for data plane).
|
|
57904
|
+
* @returns The list of active prompt sets.
|
|
57905
|
+
*/
|
|
57717
57906
|
listActivePromptSets(): Promise<CustomPromptSetListActive>;
|
|
57718
|
-
/**
|
|
57907
|
+
/**
|
|
57908
|
+
* Download CSV template for a prompt set.
|
|
57909
|
+
* @param uuid - The prompt set UUID.
|
|
57910
|
+
* @returns The CSV template content (untyped — raw response from the API).
|
|
57911
|
+
*/
|
|
57719
57912
|
downloadTemplate(uuid: string): Promise<unknown>;
|
|
57720
|
-
/**
|
|
57913
|
+
/**
|
|
57914
|
+
* Upload a CSV file of custom prompts for a prompt set.
|
|
57915
|
+
* @param promptSetUuid - The prompt set UUID.
|
|
57916
|
+
* @param file - The CSV file blob.
|
|
57917
|
+
* @returns The upload response.
|
|
57918
|
+
*/
|
|
57721
57919
|
uploadPromptsCsv(promptSetUuid: string, file: Blob): Promise<BaseResponse>;
|
|
57722
|
-
/**
|
|
57920
|
+
/**
|
|
57921
|
+
* Create a new custom prompt.
|
|
57922
|
+
* @param request - Prompt creation request body.
|
|
57923
|
+
* @returns The created prompt response.
|
|
57924
|
+
*/
|
|
57723
57925
|
createPrompt(request: CustomPromptCreateRequest): Promise<CustomPromptResponse>;
|
|
57724
|
-
/**
|
|
57926
|
+
/**
|
|
57927
|
+
* List prompts in a prompt set.
|
|
57928
|
+
* @param promptSetUuid - The prompt set UUID.
|
|
57929
|
+
* @param opts - Optional pagination, search, and filter options.
|
|
57930
|
+
* @returns The paginated list of prompts.
|
|
57931
|
+
*/
|
|
57725
57932
|
listPrompts(promptSetUuid: string, opts?: PromptListOptions): Promise<CustomPromptList>;
|
|
57726
|
-
/**
|
|
57933
|
+
/**
|
|
57934
|
+
* Get a prompt by UUID.
|
|
57935
|
+
* @param promptSetUuid - The prompt set UUID.
|
|
57936
|
+
* @param promptUuid - The prompt UUID.
|
|
57937
|
+
* @returns The prompt response.
|
|
57938
|
+
*/
|
|
57727
57939
|
getPrompt(promptSetUuid: string, promptUuid: string): Promise<CustomPromptResponse>;
|
|
57728
|
-
/**
|
|
57940
|
+
/**
|
|
57941
|
+
* Update a prompt.
|
|
57942
|
+
* @param promptSetUuid - The prompt set UUID.
|
|
57943
|
+
* @param promptUuid - The prompt UUID.
|
|
57944
|
+
* @param request - Prompt update request body.
|
|
57945
|
+
* @returns The updated prompt response.
|
|
57946
|
+
*/
|
|
57729
57947
|
updatePrompt(promptSetUuid: string, promptUuid: string, request: CustomPromptUpdateRequest): Promise<CustomPromptResponse>;
|
|
57730
|
-
/**
|
|
57948
|
+
/**
|
|
57949
|
+
* Delete a prompt.
|
|
57950
|
+
* @param promptSetUuid - The prompt set UUID.
|
|
57951
|
+
* @param promptUuid - The prompt UUID.
|
|
57952
|
+
* @returns The delete response.
|
|
57953
|
+
*/
|
|
57731
57954
|
deletePrompt(promptSetUuid: string, promptUuid: string): Promise<BaseResponse>;
|
|
57732
|
-
/**
|
|
57955
|
+
/**
|
|
57956
|
+
* Get all property names.
|
|
57957
|
+
* @returns The list of property names.
|
|
57958
|
+
*/
|
|
57733
57959
|
getPropertyNames(): Promise<PropertyNamesListResponse>;
|
|
57734
|
-
/**
|
|
57960
|
+
/**
|
|
57961
|
+
* Create a new property name.
|
|
57962
|
+
* @param request - Property name creation request body.
|
|
57963
|
+
* @returns The creation response.
|
|
57964
|
+
*/
|
|
57735
57965
|
createPropertyName(request: PropertyNameCreateRequest): Promise<BaseResponse>;
|
|
57736
|
-
/**
|
|
57966
|
+
/**
|
|
57967
|
+
* Get values for a property name.
|
|
57968
|
+
* @param propertyName - The property name to look up.
|
|
57969
|
+
* @returns The property values response.
|
|
57970
|
+
*/
|
|
57737
57971
|
getPropertyValues(propertyName: string): Promise<PropertyValuesResponse>;
|
|
57738
|
-
/**
|
|
57972
|
+
/**
|
|
57973
|
+
* Get values for multiple property names.
|
|
57974
|
+
* @param propertyNames - Array of property names to look up.
|
|
57975
|
+
* @returns The property values for all requested names.
|
|
57976
|
+
*/
|
|
57739
57977
|
getPropertyValuesMultiple(propertyNames: string[]): Promise<PropertyValuesMultipleResponse>;
|
|
57740
|
-
/**
|
|
57978
|
+
/**
|
|
57979
|
+
* Create a property value.
|
|
57980
|
+
* @param request - Property value creation request body.
|
|
57981
|
+
* @returns The creation response.
|
|
57982
|
+
*/
|
|
57741
57983
|
createPropertyValue(request: PropertyValueCreateRequest): Promise<BaseResponse>;
|
|
57742
57984
|
}
|
|
57743
57985
|
|
|
@@ -57778,22 +58020,49 @@ declare class RedTeamClient {
|
|
|
57778
58020
|
private readonly oauthClient;
|
|
57779
58021
|
private readonly numRetries;
|
|
57780
58022
|
constructor(opts?: RedTeamClientOptions);
|
|
57781
|
-
/**
|
|
58023
|
+
/**
|
|
58024
|
+
* Get scan statistics and risk profile (data plane dashboard).
|
|
58025
|
+
* @param params - Optional date range and target ID filters.
|
|
58026
|
+
* @returns The scan statistics response.
|
|
58027
|
+
*/
|
|
57782
58028
|
getScanStatistics(params?: {
|
|
57783
58029
|
date_range?: string;
|
|
57784
58030
|
target_id?: string;
|
|
57785
58031
|
}): Promise<ScanStatisticsResponse>;
|
|
57786
|
-
/**
|
|
58032
|
+
/**
|
|
58033
|
+
* Get score trend for a target (data plane dashboard).
|
|
58034
|
+
* @param targetId - The target UUID.
|
|
58035
|
+
* @returns The score trend response.
|
|
58036
|
+
*/
|
|
57787
58037
|
getScoreTrend(targetId: string): Promise<ScoreTrendResponse>;
|
|
57788
|
-
/**
|
|
58038
|
+
/**
|
|
58039
|
+
* Get quota summary.
|
|
58040
|
+
* @returns The quota summary.
|
|
58041
|
+
*/
|
|
57789
58042
|
getQuota(): Promise<QuotaSummary>;
|
|
57790
|
-
/**
|
|
58043
|
+
/**
|
|
58044
|
+
* List error logs for a scan job.
|
|
58045
|
+
* @param jobId - The job UUID.
|
|
58046
|
+
* @param opts - Optional pagination and search options.
|
|
58047
|
+
* @returns The paginated list of error logs.
|
|
58048
|
+
*/
|
|
57791
58049
|
getErrorLogs(jobId: string, opts?: RedTeamListOptions): Promise<ErrorLogListResponse>;
|
|
57792
|
-
/**
|
|
58050
|
+
/**
|
|
58051
|
+
* Update sentiment for a scan report.
|
|
58052
|
+
* @param request - The sentiment request body.
|
|
58053
|
+
* @returns The sentiment response.
|
|
58054
|
+
*/
|
|
57793
58055
|
updateSentiment(request: SentimentRequest): Promise<SentimentResponse>;
|
|
57794
|
-
/**
|
|
58056
|
+
/**
|
|
58057
|
+
* Get sentiment for a scan report.
|
|
58058
|
+
* @param jobId - The job UUID.
|
|
58059
|
+
* @returns The sentiment response.
|
|
58060
|
+
*/
|
|
57795
58061
|
getSentiment(jobId: string): Promise<SentimentResponse>;
|
|
57796
|
-
/**
|
|
58062
|
+
/**
|
|
58063
|
+
* Get management dashboard overview.
|
|
58064
|
+
* @returns The dashboard overview response.
|
|
58065
|
+
*/
|
|
57797
58066
|
getDashboardOverview(): Promise<DashboardOverviewResponse>;
|
|
57798
58067
|
}
|
|
57799
58068
|
|