@rad-security/mcp-server 0.0.47 → 0.0.48

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.
@@ -6,47 +6,41 @@ export declare const source_types: readonly ["kubeobject", "k8s_audit_log", "con
6
6
  export declare const severities: readonly ["negligible", "low", "medium", "high", "critical"];
7
7
  export declare const listFindingsSchema: z.ZodObject<{
8
8
  limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
9
- types: z.ZodOptional<z.ZodArray<z.ZodEnum<["k8s_misconfiguration", "runtime_alert", "k8s_audit_logs_anomaly"]>, "many">>;
10
- severities: z.ZodOptional<z.ZodArray<z.ZodEnum<["negligible", "low", "medium", "high", "critical"]>, "many">>;
11
- source_kinds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
12
- source_types: z.ZodOptional<z.ZodArray<z.ZodEnum<["kubeobject", "k8s_audit_log", "container"]>, "many">>;
13
- source_names: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
14
- source_namespaces: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
15
- status: z.ZodDefault<z.ZodOptional<z.ZodEnum<["open", "closed", "ignored"]>>>;
9
+ types: z.ZodOptional<z.ZodArray<z.ZodEnum<{
10
+ k8s_audit_logs_anomaly: "k8s_audit_logs_anomaly";
11
+ k8s_misconfiguration: "k8s_misconfiguration";
12
+ runtime_alert: "runtime_alert";
13
+ }>>>;
14
+ severities: z.ZodOptional<z.ZodArray<z.ZodEnum<{
15
+ negligible: "negligible";
16
+ low: "low";
17
+ medium: "medium";
18
+ high: "high";
19
+ critical: "critical";
20
+ }>>>;
21
+ source_kinds: z.ZodOptional<z.ZodArray<z.ZodString>>;
22
+ source_types: z.ZodOptional<z.ZodArray<z.ZodEnum<{
23
+ kubeobject: "kubeobject";
24
+ k8s_audit_log: "k8s_audit_log";
25
+ container: "container";
26
+ }>>>;
27
+ source_names: z.ZodOptional<z.ZodArray<z.ZodString>>;
28
+ source_namespaces: z.ZodOptional<z.ZodArray<z.ZodString>>;
29
+ status: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
30
+ open: "open";
31
+ closed: "closed";
32
+ ignored: "ignored";
33
+ }>>>;
16
34
  from_time: z.ZodDefault<z.ZodOptional<z.ZodString>>;
17
35
  to_time: z.ZodOptional<z.ZodString>;
18
- }, "strip", z.ZodTypeAny, {
19
- status: "open" | "closed" | "ignored";
20
- limit: number;
21
- from_time: string;
22
- to_time?: string | undefined;
23
- types?: ("k8s_audit_logs_anomaly" | "k8s_misconfiguration" | "runtime_alert")[] | undefined;
24
- severities?: ("negligible" | "low" | "medium" | "high" | "critical")[] | undefined;
25
- source_kinds?: string[] | undefined;
26
- source_types?: ("kubeobject" | "k8s_audit_log" | "container")[] | undefined;
27
- source_names?: string[] | undefined;
28
- source_namespaces?: string[] | undefined;
29
- }, {
30
- status?: "open" | "closed" | "ignored" | undefined;
31
- limit?: number | undefined;
32
- from_time?: string | undefined;
33
- to_time?: string | undefined;
34
- types?: ("k8s_audit_logs_anomaly" | "k8s_misconfiguration" | "runtime_alert")[] | undefined;
35
- severities?: ("negligible" | "low" | "medium" | "high" | "critical")[] | undefined;
36
- source_kinds?: string[] | undefined;
37
- source_types?: ("kubeobject" | "k8s_audit_log" | "container")[] | undefined;
38
- source_names?: string[] | undefined;
39
- source_namespaces?: string[] | undefined;
40
- }>;
36
+ }, z.core.$strip>;
41
37
  export declare const updateFindingStatusSchema: z.ZodObject<{
42
38
  id: z.ZodString;
43
- status: z.ZodEnum<["open", "closed", "ignored"]>;
44
- }, "strip", z.ZodTypeAny, {
45
- status: "open" | "closed" | "ignored";
46
- id: string;
47
- }, {
48
- status: "open" | "closed" | "ignored";
49
- id: string;
50
- }>;
39
+ status: z.ZodEnum<{
40
+ open: "open";
41
+ closed: "closed";
42
+ ignored: "ignored";
43
+ }>;
44
+ }, z.core.$strip>;
51
45
  export declare function listFindings(client: RadSecurityClient, limit?: number, types?: string[], severities?: string[], source_types?: string[], source_kinds?: string[], source_names?: string[], source_namespaces?: string[], status?: string, from_time?: string, to_time?: string): Promise<any>;
52
46
  export declare function updateFindingGroupStatus(client: RadSecurityClient, id: string, status: string): Promise<void>;
@@ -6,42 +6,16 @@ export declare const ListImagesSchema: z.ZodObject<{
6
6
  sort: z.ZodDefault<z.ZodOptional<z.ZodString>>;
7
7
  filters: z.ZodOptional<z.ZodString>;
8
8
  q: z.ZodOptional<z.ZodString>;
9
- }, "strip", z.ZodTypeAny, {
10
- offset: number;
11
- limit: number;
12
- sort: string;
13
- filters?: string | undefined;
14
- q?: string | undefined;
15
- }, {
16
- filters?: string | undefined;
17
- offset?: number | undefined;
18
- limit?: number | undefined;
19
- q?: string | undefined;
20
- sort?: string | undefined;
21
- }>;
9
+ }, z.core.$strip>;
22
10
  export declare const ListImageVulnerabilitiesSchema: z.ZodObject<{
23
11
  digest: z.ZodString;
24
- severities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
12
+ severities: z.ZodOptional<z.ZodArray<z.ZodString>>;
25
13
  page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
26
14
  page_size: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
27
- }, "strip", z.ZodTypeAny, {
28
- page: number;
29
- page_size: number;
30
- digest: string;
31
- severities?: string[] | undefined;
32
- }, {
33
- digest: string;
34
- page?: number | undefined;
35
- page_size?: number | undefined;
36
- severities?: string[] | undefined;
37
- }>;
15
+ }, z.core.$strip>;
38
16
  export declare const GetImageSBOMSchema: z.ZodObject<{
39
17
  digest: z.ZodString;
40
- }, "strip", z.ZodTypeAny, {
41
- digest: string;
42
- }, {
43
- digest: string;
44
- }>;
18
+ }, z.core.$strip>;
45
19
  export declare function listImages(client: RadSecurityClient, limit?: number, offset?: number, sort?: string, filters?: string, q?: string): Promise<any>;
46
20
  export declare function listImageScans(client: RadSecurityClient, digest: string, page?: number, page_size?: number): Promise<any>;
47
21
  export declare function listImageVulnerabilities(client: RadSecurityClient, digest: string, severities?: string[], page?: number, page_size?: number): Promise<any>;
@@ -4,35 +4,15 @@ export declare const MarkInboxItemAsFalsePositiveSchema: z.ZodObject<{
4
4
  inbox_item_id: z.ZodString;
5
5
  value: z.ZodDefault<z.ZodBoolean>;
6
6
  reason: z.ZodString;
7
- }, "strip", z.ZodTypeAny, {
8
- value: boolean;
9
- reason: string;
10
- inbox_item_id: string;
11
- }, {
12
- reason: string;
13
- inbox_item_id: string;
14
- value?: boolean | undefined;
15
- }>;
7
+ }, z.core.$strip>;
16
8
  export declare const ListInboxItemsSchema: z.ZodObject<{
17
9
  limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
18
10
  offset: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
19
11
  filters_query: z.ZodOptional<z.ZodString>;
20
- }, "strip", z.ZodTypeAny, {
21
- offset: number;
22
- limit: number;
23
- filters_query?: string | undefined;
24
- }, {
25
- offset?: number | undefined;
26
- limit?: number | undefined;
27
- filters_query?: string | undefined;
28
- }>;
12
+ }, z.core.$strip>;
29
13
  export declare const GetInboxItemDetailsSchema: z.ZodObject<{
30
14
  inbox_item_id: z.ZodString;
31
- }, "strip", z.ZodTypeAny, {
32
- inbox_item_id: string;
33
- }, {
34
- inbox_item_id: string;
35
- }>;
15
+ }, z.core.$strip>;
36
16
  export declare function markInboxItemAsFalsePositive(client: RadSecurityClient, inboxItemId: string, value: boolean | undefined, reason: string): Promise<any>;
37
17
  export declare function listInboxItems(client: RadSecurityClient, limit?: number, offset?: number, filters_query?: string): Promise<any>;
38
18
  export declare function getInboxItemDetails(client: RadSecurityClient, inboxItemId: string): Promise<any>;
@@ -3,13 +3,7 @@ import { RadSecurityClient } from "../client.js";
3
3
  export declare const ListExternalIntegrationsSchema: z.ZodObject<{
4
4
  offset: z.ZodOptional<z.ZodNumber>;
5
5
  limit: z.ZodOptional<z.ZodNumber>;
6
- }, "strip", z.ZodTypeAny, {
7
- offset?: number | undefined;
8
- limit?: number | undefined;
9
- }, {
10
- offset?: number | undefined;
11
- limit?: number | undefined;
12
- }>;
6
+ }, z.core.$strip>;
13
7
  /**
14
8
  * List external integrations configured for the tenant
15
9
  */
@@ -5,70 +5,28 @@ export declare const SearchKnowledgeBaseSchema: z.ZodObject<{
5
5
  top_k: z.ZodOptional<z.ZodNumber>;
6
6
  min_score: z.ZodOptional<z.ZodNumber>;
7
7
  thread_id: z.ZodOptional<z.ZodString>;
8
- collections: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
9
- document_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
10
- }, "strip", z.ZodTypeAny, {
11
- query: string;
12
- thread_id?: string | undefined;
13
- top_k?: number | undefined;
14
- min_score?: number | undefined;
15
- collections?: string[] | undefined;
16
- document_ids?: string[] | undefined;
17
- }, {
18
- query: string;
19
- thread_id?: string | undefined;
20
- top_k?: number | undefined;
21
- min_score?: number | undefined;
22
- collections?: string[] | undefined;
23
- document_ids?: string[] | undefined;
24
- }>;
8
+ collections: z.ZodOptional<z.ZodArray<z.ZodString>>;
9
+ document_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
10
+ }, z.core.$strip>;
25
11
  export declare const ListCollectionsSchema: z.ZodObject<{
26
12
  limit: z.ZodOptional<z.ZodNumber>;
27
13
  offset: z.ZodOptional<z.ZodNumber>;
28
- }, "strip", z.ZodTypeAny, {
29
- offset?: number | undefined;
30
- limit?: number | undefined;
31
- }, {
32
- offset?: number | undefined;
33
- limit?: number | undefined;
34
- }>;
14
+ }, z.core.$strip>;
35
15
  export declare const ListDocumentsSchema: z.ZodObject<{
36
16
  limit: z.ZodOptional<z.ZodNumber>;
37
17
  offset: z.ZodOptional<z.ZodNumber>;
38
18
  filters: z.ZodOptional<z.ZodString>;
39
- }, "strip", z.ZodTypeAny, {
40
- filters?: string | undefined;
41
- offset?: number | undefined;
42
- limit?: number | undefined;
43
- }, {
44
- filters?: string | undefined;
45
- offset?: number | undefined;
46
- limit?: number | undefined;
47
- }>;
19
+ }, z.core.$strip>;
48
20
  export declare const GetDocumentContentSchema: z.ZodObject<{
49
21
  document_id: z.ZodString;
50
- }, "strip", z.ZodTypeAny, {
51
- document_id: string;
52
- }, {
53
- document_id: string;
54
- }>;
22
+ }, z.core.$strip>;
55
23
  export declare const GetDocumentDownloadUrlSchema: z.ZodObject<{
56
24
  document_id: z.ZodString;
57
- }, "strip", z.ZodTypeAny, {
58
- document_id: string;
59
- }, {
60
- document_id: string;
61
- }>;
25
+ }, z.core.$strip>;
62
26
  export declare const StructuredQueryDocumentSchema: z.ZodObject<{
63
27
  document_id: z.ZodString;
64
28
  query: z.ZodString;
65
- }, "strip", z.ZodTypeAny, {
66
- query: string;
67
- document_id: string;
68
- }, {
69
- query: string;
70
- document_id: string;
71
- }>;
29
+ }, z.core.$strip>;
72
30
  export declare function searchKnowledgeBase(client: RadSecurityClient, query: string, topK?: number, minScore?: number, threadId?: string, collections?: string[], documentIds?: string[]): Promise<any>;
73
31
  export declare function listCollections(client: RadSecurityClient, limit?: number, offset?: number): Promise<any>;
74
32
  export declare function listDocuments(client: RadSecurityClient, limit?: number, offset?: number, filters?: string): Promise<any>;
@@ -3,31 +3,13 @@ import { RadSecurityClient } from "../client.js";
3
3
  export declare const GetKubernetesResourceDetailsSchema: z.ZodObject<{
4
4
  cluster_id: z.ZodString;
5
5
  resource_uid: z.ZodString;
6
- }, "strip", z.ZodTypeAny, {
7
- cluster_id: string;
8
- resource_uid: string;
9
- }, {
10
- cluster_id: string;
11
- resource_uid: string;
12
- }>;
6
+ }, z.core.$strip>;
13
7
  export declare const ListKubernetesResourcesSchema: z.ZodObject<{
14
8
  namespace: z.ZodOptional<z.ZodString>;
15
- kinds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
9
+ kinds: z.ZodOptional<z.ZodArray<z.ZodString>>;
16
10
  cluster_id: z.ZodOptional<z.ZodString>;
17
11
  page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
18
12
  page_size: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
19
- }, "strip", z.ZodTypeAny, {
20
- page: number;
21
- page_size: number;
22
- namespace?: string | undefined;
23
- cluster_id?: string | undefined;
24
- kinds?: string[] | undefined;
25
- }, {
26
- namespace?: string | undefined;
27
- cluster_id?: string | undefined;
28
- page?: number | undefined;
29
- page_size?: number | undefined;
30
- kinds?: string[] | undefined;
31
- }>;
13
+ }, z.core.$strip>;
32
14
  export declare function getKubernetesResourceDetails(client: RadSecurityClient, clusterId: string, resourceUid: string): Promise<any>;
33
15
  export declare function listKubernetesResources(client: RadSecurityClient, kinds: string[] | undefined, namespace?: string, clusterId?: string, page?: number, pageSize?: number): Promise<any>;
@@ -3,61 +3,37 @@ import { RadSecurityClient } from "../client.js";
3
3
  /**
4
4
  * Schema for listing available data types (discovery)
5
5
  */
6
- export declare const RadQLListDataTypesSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
6
+ export declare const RadQLListDataTypesSchema: z.ZodObject<{}, z.core.$strip>;
7
7
  /**
8
8
  * Schema for getting metadata about a specific data type (schema discovery)
9
9
  */
10
10
  export declare const RadQLGetTypeMetadataSchema: z.ZodObject<{
11
11
  data_type: z.ZodString;
12
- }, "strip", z.ZodTypeAny, {
13
- data_type: string;
14
- }, {
15
- data_type: string;
16
- }>;
12
+ }, z.core.$strip>;
17
13
  /**
18
14
  * Schema for listing filter values for a field (enum discovery)
19
15
  */
20
16
  export declare const RadQLListFilterValuesSchema: z.ZodObject<{
21
17
  data_type: z.ZodString;
22
18
  filter_name: z.ZodString;
23
- }, "strip", z.ZodTypeAny, {
24
- data_type: string;
25
- filter_name: string;
26
- }, {
27
- data_type: string;
28
- filter_name: string;
29
- }>;
19
+ }, z.core.$strip>;
30
20
  /**
31
21
  * Main RadQL query schema for executing queries against the Data API
32
22
  */
33
23
  export declare const RadQLQuerySchema: z.ZodObject<{
34
24
  data_type: z.ZodString;
35
- operation: z.ZodEnum<["list", "get_by_id", "stats"]>;
25
+ operation: z.ZodEnum<{
26
+ list: "list";
27
+ get_by_id: "get_by_id";
28
+ stats: "stats";
29
+ }>;
36
30
  filters_query: z.ZodOptional<z.ZodString>;
37
31
  stats_query: z.ZodOptional<z.ZodString>;
38
32
  id: z.ZodOptional<z.ZodString>;
39
33
  limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
40
34
  offset: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
41
- include_relations: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
42
- }, "strip", z.ZodTypeAny, {
43
- offset: number;
44
- limit: number;
45
- data_type: string;
46
- operation: "list" | "get_by_id" | "stats";
47
- id?: string | undefined;
48
- filters_query?: string | undefined;
49
- stats_query?: string | undefined;
50
- include_relations?: string[] | undefined;
51
- }, {
52
- data_type: string;
53
- operation: "list" | "get_by_id" | "stats";
54
- offset?: number | undefined;
55
- limit?: number | undefined;
56
- id?: string | undefined;
57
- filters_query?: string | undefined;
58
- stats_query?: string | undefined;
59
- include_relations?: string[] | undefined;
60
- }>;
35
+ include_relations: z.ZodOptional<z.ZodArray<z.ZodString>>;
36
+ }, z.core.$strip>;
61
37
  /**
62
38
  * Helper schema for building RadQL queries programmatically
63
39
  */
@@ -65,107 +41,65 @@ export declare const RadQLQueryBuilderSchema: z.ZodObject<{
65
41
  data_type: z.ZodString;
66
42
  conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
67
43
  field: z.ZodString;
68
- operator: z.ZodEnum<[":", "=", "!=", "!:", "<>", ">", ">=", "<", "<=", "contains", "starts_with", "ends_with"]>;
69
- value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>;
44
+ operator: z.ZodEnum<{
45
+ ":": ":";
46
+ "=": "=";
47
+ "!=": "!=";
48
+ "!:": "!:";
49
+ "<>": "<>";
50
+ ">": ">";
51
+ ">=": ">=";
52
+ "<": "<";
53
+ "<=": "<=";
54
+ contains: "contains";
55
+ starts_with: "starts_with";
56
+ ends_with: "ends_with";
57
+ }>;
58
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
70
59
  negate: z.ZodOptional<z.ZodBoolean>;
71
- }, "strip", z.ZodTypeAny, {
72
- value: string | number | boolean;
73
- field: string;
74
- operator: ":" | "=" | "!=" | "!:" | "<>" | ">" | ">=" | "<" | "<=" | "contains" | "starts_with" | "ends_with";
75
- negate?: boolean | undefined;
76
- }, {
77
- value: string | number | boolean;
78
- field: string;
79
- operator: ":" | "=" | "!=" | "!:" | "<>" | ">" | ">=" | "<" | "<=" | "contains" | "starts_with" | "ends_with";
80
- negate?: boolean | undefined;
81
- }>, "many">>;
82
- logic: z.ZodDefault<z.ZodOptional<z.ZodEnum<["AND", "OR"]>>>;
83
- aggregation: z.ZodOptional<z.ZodEnum<["count", "sum", "avg", "min", "max", "median"]>>;
60
+ }, z.core.$strip>>>;
61
+ logic: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
62
+ AND: "AND";
63
+ OR: "OR";
64
+ }>>>;
65
+ aggregation: z.ZodOptional<z.ZodEnum<{
66
+ count: "count";
67
+ sum: "sum";
68
+ avg: "avg";
69
+ min: "min";
70
+ max: "max";
71
+ median: "median";
72
+ }>>;
84
73
  aggregate_field: z.ZodOptional<z.ZodString>;
85
- group_by: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
86
- time_group: z.ZodOptional<z.ZodEnum<["second", "minute", "hour", "day", "month", "year"]>>;
87
- }, "strip", z.ZodTypeAny, {
88
- data_type: string;
89
- logic: "AND" | "OR";
90
- conditions?: {
91
- value: string | number | boolean;
92
- field: string;
93
- operator: ":" | "=" | "!=" | "!:" | "<>" | ">" | ">=" | "<" | "<=" | "contains" | "starts_with" | "ends_with";
94
- negate?: boolean | undefined;
95
- }[] | undefined;
96
- aggregation?: "count" | "sum" | "avg" | "min" | "max" | "median" | undefined;
97
- aggregate_field?: string | undefined;
98
- group_by?: string[] | undefined;
99
- time_group?: "second" | "minute" | "hour" | "day" | "month" | "year" | undefined;
100
- }, {
101
- data_type: string;
102
- conditions?: {
103
- value: string | number | boolean;
104
- field: string;
105
- operator: ":" | "=" | "!=" | "!:" | "<>" | ">" | ">=" | "<" | "<=" | "contains" | "starts_with" | "ends_with";
106
- negate?: boolean | undefined;
107
- }[] | undefined;
108
- logic?: "AND" | "OR" | undefined;
109
- aggregation?: "count" | "sum" | "avg" | "min" | "max" | "median" | undefined;
110
- aggregate_field?: string | undefined;
111
- group_by?: string[] | undefined;
112
- time_group?: "second" | "minute" | "hour" | "day" | "month" | "year" | undefined;
113
- }>;
74
+ group_by: z.ZodOptional<z.ZodArray<z.ZodString>>;
75
+ time_group: z.ZodOptional<z.ZodEnum<{
76
+ second: "second";
77
+ minute: "minute";
78
+ hour: "hour";
79
+ day: "day";
80
+ month: "month";
81
+ year: "year";
82
+ }>>;
83
+ }, z.core.$strip>;
114
84
  /**
115
85
  * Batch query schema for executing multiple queries in parallel
116
86
  */
117
87
  export declare const RadQLBatchQuerySchema: z.ZodObject<{
118
88
  queries: z.ZodArray<z.ZodObject<{
119
89
  data_type: z.ZodString;
120
- operation: z.ZodEnum<["list", "get_by_id", "stats"]>;
90
+ operation: z.ZodEnum<{
91
+ list: "list";
92
+ get_by_id: "get_by_id";
93
+ stats: "stats";
94
+ }>;
121
95
  filters_query: z.ZodOptional<z.ZodString>;
122
96
  stats_query: z.ZodOptional<z.ZodString>;
123
97
  id: z.ZodOptional<z.ZodString>;
124
98
  limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
125
99
  offset: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
126
- include_relations: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
127
- }, "strip", z.ZodTypeAny, {
128
- offset: number;
129
- limit: number;
130
- data_type: string;
131
- operation: "list" | "get_by_id" | "stats";
132
- id?: string | undefined;
133
- filters_query?: string | undefined;
134
- stats_query?: string | undefined;
135
- include_relations?: string[] | undefined;
136
- }, {
137
- data_type: string;
138
- operation: "list" | "get_by_id" | "stats";
139
- offset?: number | undefined;
140
- limit?: number | undefined;
141
- id?: string | undefined;
142
- filters_query?: string | undefined;
143
- stats_query?: string | undefined;
144
- include_relations?: string[] | undefined;
145
- }>, "many">;
146
- }, "strip", z.ZodTypeAny, {
147
- queries: {
148
- offset: number;
149
- limit: number;
150
- data_type: string;
151
- operation: "list" | "get_by_id" | "stats";
152
- id?: string | undefined;
153
- filters_query?: string | undefined;
154
- stats_query?: string | undefined;
155
- include_relations?: string[] | undefined;
156
- }[];
157
- }, {
158
- queries: {
159
- data_type: string;
160
- operation: "list" | "get_by_id" | "stats";
161
- offset?: number | undefined;
162
- limit?: number | undefined;
163
- id?: string | undefined;
164
- filters_query?: string | undefined;
165
- stats_query?: string | undefined;
166
- include_relations?: string[] | undefined;
167
- }[];
168
- }>;
100
+ include_relations: z.ZodOptional<z.ZodArray<z.ZodString>>;
101
+ }, z.core.$strip>>;
102
+ }, z.core.$strip>;
169
103
  /**
170
104
  * List all available data types that can be queried
171
105
  */
@@ -1,29 +1,15 @@
1
1
  import { z } from "zod";
2
2
  import { RadSecurityClient } from "../client.js";
3
3
  export declare const GetContainersProcessTreesSchema: z.ZodObject<{
4
- container_ids: z.ZodArray<z.ZodString, "many">;
4
+ container_ids: z.ZodArray<z.ZodString>;
5
5
  processes_limit: z.ZodDefault<z.ZodNumber>;
6
- }, "strip", z.ZodTypeAny, {
7
- container_ids: string[];
8
- processes_limit: number;
9
- }, {
10
- container_ids: string[];
11
- processes_limit?: number | undefined;
12
- }>;
6
+ }, z.core.$strip>;
13
7
  export declare const GetContainersBaselinesSchema: z.ZodObject<{
14
- container_ids: z.ZodArray<z.ZodString, "many">;
15
- }, "strip", z.ZodTypeAny, {
16
- container_ids: string[];
17
- }, {
18
- container_ids: string[];
19
- }>;
8
+ container_ids: z.ZodArray<z.ZodString>;
9
+ }, z.core.$strip>;
20
10
  export declare const GetContainerLLMAnalysisSchema: z.ZodObject<{
21
11
  container_id: z.ZodString;
22
- }, "strip", z.ZodTypeAny, {
23
- container_id: string;
24
- }, {
25
- container_id: string;
26
- }>;
12
+ }, z.core.$strip>;
27
13
  export declare function getContainersBaselines(client: RadSecurityClient, containerIds: string[]): Promise<any>;
28
14
  export declare function getContainersProcessTrees(client: RadSecurityClient, containerIds: string[], processesLimit?: number): Promise<any>;
29
15
  export declare function getContainerLLMAnalysis(client: RadSecurityClient, containerId: string): Promise<any>;
@@ -2,49 +2,23 @@ import { z } from "zod";
2
2
  import { RadSecurityClient } from "../client.js";
3
3
  export declare const ListWorkflowRunsSchema: z.ZodObject<{
4
4
  workflow_id: z.ZodString;
5
- }, "strip", z.ZodTypeAny, {
6
- workflow_id: string;
7
- }, {
8
- workflow_id: string;
9
- }>;
5
+ }, z.core.$strip>;
10
6
  export declare const GetWorkflowRunSchema: z.ZodObject<{
11
7
  workflow_id: z.ZodString;
12
8
  run_id: z.ZodString;
13
- }, "strip", z.ZodTypeAny, {
14
- workflow_id: string;
15
- run_id: string;
16
- }, {
17
- workflow_id: string;
18
- run_id: string;
19
- }>;
9
+ }, z.core.$strip>;
20
10
  export declare const RunWorkflowSchema: z.ZodObject<{
21
11
  workflow_id: z.ZodString;
22
12
  async: z.ZodDefault<z.ZodBoolean>;
23
13
  args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
24
- }, "strip", z.ZodTypeAny, {
25
- workflow_id: string;
26
- async: boolean;
27
- args?: Record<string, any> | undefined;
28
- }, {
29
- workflow_id: string;
30
- async?: boolean | undefined;
31
- args?: Record<string, any> | undefined;
32
- }>;
14
+ }, z.core.$strip>;
33
15
  export declare const GetWorkflowSchema: z.ZodObject<{
34
16
  workflow_id: z.ZodString;
35
- }, "strip", z.ZodTypeAny, {
36
- workflow_id: string;
37
- }, {
38
- workflow_id: string;
39
- }>;
17
+ }, z.core.$strip>;
40
18
  export declare const ListWorkflowSchedulesSchema: z.ZodObject<{
41
19
  workflow_id: z.ZodString;
42
- }, "strip", z.ZodTypeAny, {
43
- workflow_id: string;
44
- }, {
45
- workflow_id: string;
46
- }>;
47
- export declare const ListWorkflowsSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
20
+ }, z.core.$strip>;
21
+ export declare const ListWorkflowsSchema: z.ZodObject<{}, z.core.$strip>;
48
22
  /**
49
23
  * List workflow runs
50
24
  */
@@ -10,7 +10,7 @@ export const GetWorkflowRunSchema = z.object({
10
10
  export const RunWorkflowSchema = z.object({
11
11
  workflow_id: z.string().describe("ID of the workflow to run"),
12
12
  async: z.boolean().default(true).describe("If true, run asynchronously and return immediately. If false, wait for the workflow to finish."),
13
- args: z.record(z.any()).optional().describe("Optional arguments to override when running the workflow"),
13
+ args: z.record(z.string(), z.any()).optional().describe("Optional arguments to override when running the workflow"),
14
14
  });
15
15
  export const GetWorkflowSchema = z.object({
16
16
  workflow_id: z.string().describe("ID of the workflow to get"),
@@ -1 +1 @@
1
- {"version":3,"file":"workflows.js","sourceRoot":"","sources":["../../src/operations/workflows.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAExC,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC7C,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,qCAAqC,CAAC;CACxE,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC3C,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,oBAAoB,CAAC;IACtD,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,wBAAwB,CAAC;CACtD,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC,MAAM,CAAC;IACxC,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,2BAA2B,CAAC;IAC7D,KAAK,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,OAAO,CA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,CAAC;AACH,CAAC;AAED;;GAEG;AACH,MAAM,CAAC,KAAK,UAAU,qBAAqB,CACzC,MAAyB,EACzB,UAAkB;IAElB,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,WAAW,CACvC,OAAO,CAAA,aAAa,MAAM,CAAC,YAAY,EAAE,cAAc,UAAU,YAAY,CAC9E,CAAC;IAEF,OAAO,QAAQ,CAAC;AAClB,CAAC;AAED;;GAEG;AACH,MAAM,CAAC,KAAK,UAAU,aAAa,CACjC,MAAyB;IAEzB,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,WAAW,CACvC,OAAO,CAAA,aAAa,MAAM,CAAC,YAAY,EAAE,YAAY,CACtD,CAAC;IAEF,OAAO,QAAQ,CAAC;AAClB,CAAC"}
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const VERSION = "0.0.47";
1
+ export declare const VERSION = "0.0.48";
package/dist/version.js CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = "0.0.47";
1
+ export const VERSION = "0.0.48";
2
2
  //# sourceMappingURL=version.js.map