@rad-security/mcp-server 0.0.27 → 0.0.30-2.g4ae51ae
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/README.md +5 -10
- package/dist/index.js +49 -220
- package/dist/index.js.map +1 -1
- package/dist/operations/cve-dispositions.d.ts +27 -0
- package/dist/operations/cve-dispositions.js +46 -0
- package/dist/operations/cve-dispositions.js.map +1 -0
- package/dist/operations/findings.d.ts +4 -4
- package/dist/operations/findings.js +1 -1
- package/dist/operations/findings.js.map +1 -1
- package/dist/operations/inbox.d.ts +2 -2
- package/dist/operations/radql.js +72 -1
- package/dist/operations/radql.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/version.js.map +1 -1
- package/package.json +1 -1
- package/dist/operations/cloud-compliance.d.ts +0 -116
- package/dist/operations/cloud-compliance.js +0 -123
- package/dist/operations/cloud-compliance.js.map +0 -1
- package/dist/operations/cloud-inventory.d.ts +0 -70
- package/dist/operations/cloud-inventory.js +0 -61
- package/dist/operations/cloud-inventory.js.map +0 -1
- package/dist/operations/runtime_network.d.ts +0 -50
- package/dist/operations/runtime_network.js +0 -41
- package/dist/operations/runtime_network.js.map +0 -1
- package/dist/operations/threats.d.ts +0 -22
- package/dist/operations/threats.js +0 -24
- package/dist/operations/threats.js.map +0 -1
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
import { RadSecurityClient } from "../client.js";
|
|
3
|
-
declare const ProviderTypeEnum: z.ZodEnum<["aws", "gcp", "azure", "linode"]>;
|
|
4
|
-
type ProviderType = z.infer<typeof ProviderTypeEnum>;
|
|
5
|
-
export declare const ListCloudResourcesSchema: z.ZodObject<{
|
|
6
|
-
provider: z.ZodEnum<["aws", "gcp", "azure", "linode"]>;
|
|
7
|
-
filters: z.ZodOptional<z.ZodString>;
|
|
8
|
-
offset: z.ZodOptional<z.ZodNumber>;
|
|
9
|
-
limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
10
|
-
q: z.ZodOptional<z.ZodString>;
|
|
11
|
-
}, "strip", z.ZodTypeAny, {
|
|
12
|
-
limit: number;
|
|
13
|
-
provider: "aws" | "gcp" | "azure" | "linode";
|
|
14
|
-
filters?: string | undefined;
|
|
15
|
-
offset?: number | undefined;
|
|
16
|
-
q?: string | undefined;
|
|
17
|
-
}, {
|
|
18
|
-
provider: "aws" | "gcp" | "azure" | "linode";
|
|
19
|
-
filters?: string | undefined;
|
|
20
|
-
offset?: number | undefined;
|
|
21
|
-
limit?: number | undefined;
|
|
22
|
-
q?: string | undefined;
|
|
23
|
-
}>;
|
|
24
|
-
export declare const GetCloudResourceDetailsSchema: z.ZodObject<{
|
|
25
|
-
provider: z.ZodEnum<["aws", "gcp", "azure", "linode"]>;
|
|
26
|
-
resource_type: z.ZodString;
|
|
27
|
-
resource_id: z.ZodString;
|
|
28
|
-
}, "strip", z.ZodTypeAny, {
|
|
29
|
-
provider: "aws" | "gcp" | "azure" | "linode";
|
|
30
|
-
resource_type: string;
|
|
31
|
-
resource_id: string;
|
|
32
|
-
}, {
|
|
33
|
-
provider: "aws" | "gcp" | "azure" | "linode";
|
|
34
|
-
resource_type: string;
|
|
35
|
-
resource_id: string;
|
|
36
|
-
}>;
|
|
37
|
-
export declare const GetCloudResourceFacetsSchema: z.ZodObject<{
|
|
38
|
-
provider: z.ZodEnum<["aws", "gcp", "azure", "linode"]>;
|
|
39
|
-
}, "strip", z.ZodTypeAny, {
|
|
40
|
-
provider: "aws" | "gcp" | "azure" | "linode";
|
|
41
|
-
}, {
|
|
42
|
-
provider: "aws" | "gcp" | "azure" | "linode";
|
|
43
|
-
}>;
|
|
44
|
-
export declare const GetCloudResourceFacetValuesSchema: z.ZodObject<{
|
|
45
|
-
provider: z.ZodEnum<["aws", "gcp", "azure", "linode"]>;
|
|
46
|
-
facet_id: z.ZodString;
|
|
47
|
-
}, "strip", z.ZodTypeAny, {
|
|
48
|
-
provider: "aws" | "gcp" | "azure" | "linode";
|
|
49
|
-
facet_id: string;
|
|
50
|
-
}, {
|
|
51
|
-
provider: "aws" | "gcp" | "azure" | "linode";
|
|
52
|
-
facet_id: string;
|
|
53
|
-
}>;
|
|
54
|
-
/**
|
|
55
|
-
* List cloud resources for a specific provider.
|
|
56
|
-
*/
|
|
57
|
-
export declare function listCloudResources(client: RadSecurityClient, provider: ProviderType, filters?: string, offset?: number, limit?: number, q?: string): Promise<any>;
|
|
58
|
-
/**
|
|
59
|
-
* Get details for a specific cloud resource.
|
|
60
|
-
*/
|
|
61
|
-
export declare function getCloudResourceDetails(client: RadSecurityClient, provider: ProviderType, resource_type: string, resource_id: string): Promise<any>;
|
|
62
|
-
/**
|
|
63
|
-
* Get available facets for a provider.
|
|
64
|
-
*/
|
|
65
|
-
export declare function getCloudResourceFacets(client: RadSecurityClient, provider: ProviderType): Promise<any>;
|
|
66
|
-
/**
|
|
67
|
-
* Get values for a specific facet.
|
|
68
|
-
*/
|
|
69
|
-
export declare function getCloudResourceFacetValues(client: RadSecurityClient, provider: ProviderType, facet_id: string): Promise<any>;
|
|
70
|
-
export {};
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
// Define provider type using Zod enum
|
|
3
|
-
const ProviderTypeEnum = z.enum(["aws", "gcp", "azure", "linode"]);
|
|
4
|
-
// Schema for list_cloud_resources
|
|
5
|
-
export const ListCloudResourcesSchema = z.object({
|
|
6
|
-
provider: ProviderTypeEnum.describe("Cloud provider (aws, gcp, azure, linode)"),
|
|
7
|
-
filters: z.string().optional().describe("Filter string (e.g., 'resource_type:EC2NetworkInterface,resource_type:SQSQueue,aws_account:123456789012,compliance:not_compliant')"),
|
|
8
|
-
offset: z.number().optional().describe("Pagination offset. Default: 0"),
|
|
9
|
-
limit: z.number().optional().default(20).describe("Maximum number of results to return"),
|
|
10
|
-
q: z.string().optional().describe("Free text search query"),
|
|
11
|
-
});
|
|
12
|
-
// Schema for get_resource_details
|
|
13
|
-
export const GetCloudResourceDetailsSchema = z.object({
|
|
14
|
-
provider: ProviderTypeEnum.describe("Cloud provider (aws, gcp, azure, linode)"),
|
|
15
|
-
resource_type: z.string().describe("Type of cloud resource (to be fetched from get_cloud_resource_facet_values or from list_cloud_resources)"),
|
|
16
|
-
resource_id: z.string().describe("ID of the cloud resource"),
|
|
17
|
-
});
|
|
18
|
-
// Schema for get_facets
|
|
19
|
-
export const GetCloudResourceFacetsSchema = z.object({
|
|
20
|
-
provider: ProviderTypeEnum.describe("Cloud provider (aws, gcp, azure, linode)"),
|
|
21
|
-
});
|
|
22
|
-
// Schema for get_cloud_resource_facet_values
|
|
23
|
-
export const GetCloudResourceFacetValuesSchema = z.object({
|
|
24
|
-
provider: ProviderTypeEnum.describe("Cloud provider (aws, gcp, azure, linode)"),
|
|
25
|
-
facet_id: z.string().describe("ID of the facet"),
|
|
26
|
-
});
|
|
27
|
-
/**
|
|
28
|
-
* List cloud resources for a specific provider.
|
|
29
|
-
*/
|
|
30
|
-
export async function listCloudResources(client, provider, filters, offset, limit = 20, q) {
|
|
31
|
-
const params = { limit };
|
|
32
|
-
if (filters) {
|
|
33
|
-
params.filter = filters;
|
|
34
|
-
}
|
|
35
|
-
if (offset !== undefined) {
|
|
36
|
-
params.offset = offset;
|
|
37
|
-
}
|
|
38
|
-
if (q) {
|
|
39
|
-
params.q = q;
|
|
40
|
-
}
|
|
41
|
-
return client.makeRequest(`/accounts/${client.getAccountId()}/cloud-inventory/v1/${provider}`, params);
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* Get details for a specific cloud resource.
|
|
45
|
-
*/
|
|
46
|
-
export async function getCloudResourceDetails(client, provider, resource_type, resource_id) {
|
|
47
|
-
return client.makeRequest(`/accounts/${client.getAccountId()}/cloud-inventory/v1/${provider}/${resource_type}/${resource_id}`);
|
|
48
|
-
}
|
|
49
|
-
/**
|
|
50
|
-
* Get available facets for a provider.
|
|
51
|
-
*/
|
|
52
|
-
export async function getCloudResourceFacets(client, provider) {
|
|
53
|
-
return client.makeRequest(`/accounts/${client.getAccountId()}/cloud-inventory/v1/${provider}/facets`);
|
|
54
|
-
}
|
|
55
|
-
/**
|
|
56
|
-
* Get values for a specific facet.
|
|
57
|
-
*/
|
|
58
|
-
export async function getCloudResourceFacetValues(client, provider, facet_id) {
|
|
59
|
-
return client.makeRequest(`/accounts/${client.getAccountId()}/cloud-inventory/v1/${provider}/facets/${facet_id}`);
|
|
60
|
-
}
|
|
61
|
-
//# sourceMappingURL=cloud-inventory.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cloud-inventory.js","sourceRoot":"","sources":["../../src/operations/cloud-inventory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,sCAAsC;AACtC,MAAM,gBAAgB,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,QAAQ,CAAC,CAAC,CAAC;AAGnE,kCAAkC;AAClC,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC/C,QAAQ,EAAE,gBAAgB,CAAC,QAAQ,CAAC,0CAA0C,CAAC;IAC/E,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,oIAAoI,CAAC;IAC7K,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,+BAA+B,CAAC;IACvE,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,qCAAqC,CAAC;IACxF,CAAC,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,wBAAwB,CAAC;CAC5D,CAAC,CAAC;AAEH,kCAAkC;AAClC,MAAM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AACJ,CAAC;AAED;;GAEG;AACH,MAAM,CAAC,KAAK,UAAU,uBAAuB,CAC3C,MAAyB,EACzB,QAAsB,EACtB,aAAqB,EACrB,WAAmB;IAEnB,OAAO,MAAM,CAAC,WAAW,CACvB,aAAa,MAAM,CAAC,YAAY,EAAE,uBAAuB,QAAQ,IAAI,aAAa,IAAI,WAAW,EAAE,CACpG,CAAC;AACJ,CAAC;AAED;;GAEG;AACH,MAAM,CAAC,KAAK,UAAU,sBAAsB,CAC1C,MAAyB,EACzB,QAAsB;IAEtB,OAAO,MAAM,CAAC,WAAW,CACvB,aAAa,MAAM,CAAC,YAAY,EAAE,uBAAuB,QAAQ,SAAS,CAC3E,CAAC;AACJ,CAAC;AAED;;GAEG;AACH,MAAM,CAAC,KAAK,UAAU,2BAA2B,CAC/C,MAAyB,EACzB,QAAsB,EACtB,QAAgB;IAEhB,OAAO,MAAM,CAAC,WAAW,CACvB,aAAa,MAAM,CAAC,YAAY,EAAE,uBAAuB,QAAQ,WAAW,QAAQ,EAAE,CACvF,CAAC;AACJ,CAAC"}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
import { RadSecurityClient } from "../client.js";
|
|
3
|
-
export declare const listHttpRequestsSchema: z.ZodObject<{
|
|
4
|
-
filters: z.ZodOptional<z.ZodString>;
|
|
5
|
-
offset: z.ZodOptional<z.ZodNumber>;
|
|
6
|
-
limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
7
|
-
q: z.ZodOptional<z.ZodString>;
|
|
8
|
-
}, "strip", z.ZodTypeAny, {
|
|
9
|
-
limit: number;
|
|
10
|
-
filters?: string | undefined;
|
|
11
|
-
offset?: number | undefined;
|
|
12
|
-
q?: string | undefined;
|
|
13
|
-
}, {
|
|
14
|
-
filters?: string | undefined;
|
|
15
|
-
offset?: number | undefined;
|
|
16
|
-
limit?: number | undefined;
|
|
17
|
-
q?: string | undefined;
|
|
18
|
-
}>;
|
|
19
|
-
export declare const listNetworkConnectionsSchema: z.ZodObject<{
|
|
20
|
-
filters: z.ZodOptional<z.ZodString>;
|
|
21
|
-
limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
22
|
-
q: z.ZodOptional<z.ZodString>;
|
|
23
|
-
}, "strip", z.ZodTypeAny, {
|
|
24
|
-
limit: number;
|
|
25
|
-
filters?: string | undefined;
|
|
26
|
-
q?: string | undefined;
|
|
27
|
-
}, {
|
|
28
|
-
filters?: string | undefined;
|
|
29
|
-
limit?: number | undefined;
|
|
30
|
-
q?: string | undefined;
|
|
31
|
-
}>;
|
|
32
|
-
export declare const listNetworkConnectionSourcesSchema: z.ZodObject<{
|
|
33
|
-
filters: z.ZodOptional<z.ZodString>;
|
|
34
|
-
offset: z.ZodOptional<z.ZodNumber>;
|
|
35
|
-
limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
36
|
-
q: z.ZodOptional<z.ZodString>;
|
|
37
|
-
}, "strip", z.ZodTypeAny, {
|
|
38
|
-
limit: number;
|
|
39
|
-
filters?: string | undefined;
|
|
40
|
-
offset?: number | undefined;
|
|
41
|
-
q?: string | undefined;
|
|
42
|
-
}, {
|
|
43
|
-
filters?: string | undefined;
|
|
44
|
-
offset?: number | undefined;
|
|
45
|
-
limit?: number | undefined;
|
|
46
|
-
q?: string | undefined;
|
|
47
|
-
}>;
|
|
48
|
-
export declare function listHttpRequests(client: RadSecurityClient, params: z.infer<typeof listHttpRequestsSchema>): Promise<any>;
|
|
49
|
-
export declare function listNetworkConnections(client: RadSecurityClient, params: z.infer<typeof listNetworkConnectionsSchema>): Promise<any>;
|
|
50
|
-
export declare function listNetworkConnectionSources(client: RadSecurityClient, params: z.infer<typeof listNetworkConnectionSourcesSchema>): Promise<any>;
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
// Input schemas
|
|
3
|
-
export const listHttpRequestsSchema = z.object({
|
|
4
|
-
filters: z.string().optional().describe("Filter string for filtering results. Filter options: method, path, cluster_id, " +
|
|
5
|
-
"scheme, source_workload_name, source_workload_namespace, destination_workload_name, destination_workload_namespace," +
|
|
6
|
-
"has_pii. Example: 'method:GET,path:/api/v1/users,scheme:https,source_workload_name:my-workload,source_workload_namespace:my-namespace,destination_workload_name:my-workload,destination_workload_namespace:my-namespace,has_pii:true'"),
|
|
7
|
-
offset: z.number().optional().describe("Offset to start the list from"),
|
|
8
|
-
limit: z.number().optional().default(20).describe("Limit the number of items in the list"),
|
|
9
|
-
q: z.string().optional().describe("Query to filter the list of HTTP requests"),
|
|
10
|
-
});
|
|
11
|
-
export const listNetworkConnectionsSchema = z.object({
|
|
12
|
-
filters: z.string().optional().describe("Filter string for filtering results." +
|
|
13
|
-
"Filter options: source_workload_name, source_workload_namespace, destination_workload_name, destination_workload_namespace, cluster_id. " +
|
|
14
|
-
"Example: 'source_workload_name:my-workload,destination_workload_name:my-workload,cluster_id:my-cluster'"),
|
|
15
|
-
limit: z.number().optional().default(20).describe("Limit the number of items in the list"),
|
|
16
|
-
q: z.string().optional().describe("Query to filter the list of network connections"),
|
|
17
|
-
});
|
|
18
|
-
export const listNetworkConnectionSourcesSchema = z.object({
|
|
19
|
-
filters: z.string().optional().describe("Filter string for filtering results." +
|
|
20
|
-
"Filter options: source_workload_name, source_workload_namespace, destination_workload_name, destination_workload_namespace, cluster_id." +
|
|
21
|
-
"Example: 'source_workload_name:my-workload,destination_workload_name:my-workload,cluster_id:my-cluster'"),
|
|
22
|
-
offset: z.number().optional().describe("Offset to start the list from"),
|
|
23
|
-
limit: z.number().optional().default(20).describe("Limit the number of items in the list"),
|
|
24
|
-
q: z.string().optional().describe("Query to filter the list of network connection sources"),
|
|
25
|
-
});
|
|
26
|
-
export async function listHttpRequests(client, params) {
|
|
27
|
-
const validatedParams = listHttpRequestsSchema.parse(params);
|
|
28
|
-
const response = await client.makeRequest(`/accounts/${client.getAccountId()}/container_runtime_insights/http_requests`, validatedParams);
|
|
29
|
-
return response;
|
|
30
|
-
}
|
|
31
|
-
export async function listNetworkConnections(client, params) {
|
|
32
|
-
const validatedParams = listNetworkConnectionsSchema.parse(params);
|
|
33
|
-
const response = await client.makeRequest(`/accounts/${client.getAccountId()}/container_runtime_insights/network_connections`, validatedParams);
|
|
34
|
-
return response;
|
|
35
|
-
}
|
|
36
|
-
export async function listNetworkConnectionSources(client, params) {
|
|
37
|
-
const validatedParams = listNetworkConnectionSourcesSchema.parse(params);
|
|
38
|
-
const response = await client.makeRequest(`/accounts/${client.getAccountId()}/container_runtime_insights/network_connection_sources`, validatedParams);
|
|
39
|
-
return response;
|
|
40
|
-
}
|
|
41
|
-
//# sourceMappingURL=runtime_network.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"runtime_network.js","sourceRoot":"","sources":["../../src/operations/runtime_network.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,gBAAgB;AAChB,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC7C,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,iFAAiF;QACvH,qHAAqH;QACrH,uOAAuO,CAAC;IAC1O,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,+BAA+B,CAAC;IACvE,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,uCAAuC,CAAC;IAC1F,CAAC,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,2CAA2C,CAAC;CAC/E,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAAC,CAAC,MAAM,CAAC;IACnD,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAA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AC,KAAK,CAAC,MAAM,CAAC,CAAC;IACnE,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,WAAW,CACvC,aAAa,MAAM,CAAC,YAAY,EAAE,iDAAiD,EACnF,eAAe,CAChB,CAAC;IACF,OAAO,QAAQ,CAAC;AAClB,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,4BAA4B,CAChD,MAAyB,EACzB,MAA0D;IAE1D,MAAM,eAAe,GAAG,kCAAkC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IACzE,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,WAAW,CACvC,aAAa,MAAM,CAAC,YAAY,EAAE,wDAAwD,EAC1F,eAAe,CAChB,CAAC;IACF,OAAO,QAAQ,CAAC;AAClB,CAAC"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
import { RadSecurityClient } from "../client.js";
|
|
3
|
-
export declare const listThreatVectorsSchema: z.ZodObject<{
|
|
4
|
-
clustersIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
5
|
-
namespaces: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
6
|
-
resource_uid: z.ZodOptional<z.ZodString>;
|
|
7
|
-
page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
8
|
-
page_size: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
9
|
-
}, "strip", z.ZodTypeAny, {
|
|
10
|
-
page: number;
|
|
11
|
-
page_size: number;
|
|
12
|
-
resource_uid?: string | undefined;
|
|
13
|
-
clustersIds?: string[] | undefined;
|
|
14
|
-
namespaces?: string[] | undefined;
|
|
15
|
-
}, {
|
|
16
|
-
page?: number | undefined;
|
|
17
|
-
page_size?: number | undefined;
|
|
18
|
-
resource_uid?: string | undefined;
|
|
19
|
-
clustersIds?: string[] | undefined;
|
|
20
|
-
namespaces?: string[] | undefined;
|
|
21
|
-
}>;
|
|
22
|
-
export declare function listThreatVectors(client: RadSecurityClient, clustersIds: string[] | undefined, namespaces: string[] | undefined, resourceUid: string | undefined, page?: number, pageSize?: number): Promise<any>;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
// Input schemas
|
|
3
|
-
export const listThreatVectorsSchema = z.object({
|
|
4
|
-
clustersIds: z.array(z.string()).optional().describe("Cluster ids to check for threat vectors"),
|
|
5
|
-
namespaces: z.array(z.string()).optional().describe("Namespaces to check for threat vectors"),
|
|
6
|
-
resource_uid: z.string().optional().describe("Threat vector associated with this resource"),
|
|
7
|
-
page: z.number().optional().default(1).describe("Page number to retrieve"),
|
|
8
|
-
page_size: z.number().optional().default(20).describe("Number of items per page"),
|
|
9
|
-
});
|
|
10
|
-
// Main functions
|
|
11
|
-
export async function listThreatVectors(client, clustersIds, namespaces, resourceUid, page = 1, pageSize = 20) {
|
|
12
|
-
const params = {
|
|
13
|
-
associated_with_resource_uid: resourceUid,
|
|
14
|
-
clusters: clustersIds,
|
|
15
|
-
namespaces: namespaces,
|
|
16
|
-
statuses: "Open",
|
|
17
|
-
page_size: pageSize,
|
|
18
|
-
page: page,
|
|
19
|
-
};
|
|
20
|
-
const response = await client.makeRequest(`/accounts/${client.getAccountId()}/threat_vector_instances/v2`, params);
|
|
21
|
-
// Return the transformed response
|
|
22
|
-
return response;
|
|
23
|
-
}
|
|
24
|
-
//# sourceMappingURL=threats.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"threats.js","sourceRoot":"","sources":["../../src/operations/threats.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,gBAAgB;AAChB,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9C,WAAW,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,yCAAyC,CAAC;IAC/F,U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