@draftt-io/draftt-mcp 1.0.2 → 1.1.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/LICENSE +21 -201
- package/README.md +88 -19
- package/dist/api/client.d.ts +16 -7
- package/dist/api/client.js +42 -12
- package/dist/api/client.js.map +1 -1
- package/dist/api/drafttClient.d.ts +14 -11
- package/dist/api/drafttClient.js +39 -16
- package/dist/api/drafttClient.js.map +1 -1
- package/dist/api/responseFormatter.d.ts +6 -6
- package/dist/api/responseFormatter.js +160 -7
- package/dist/api/responseFormatter.js.map +1 -1
- package/dist/handlers/componentHandler.d.ts +4 -2
- package/dist/handlers/componentHandler.js +16 -9
- package/dist/handlers/componentHandler.js.map +1 -1
- package/dist/handlers/drafttHandler.d.ts +10 -2
- package/dist/handlers/drafttHandler.js +29 -4
- package/dist/handlers/drafttHandler.js.map +1 -1
- package/dist/handlers/policyHandler.d.ts +10 -6
- package/dist/handlers/policyHandler.js +43 -23
- package/dist/handlers/policyHandler.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +120 -56
- package/dist/index.js.map +1 -1
- package/dist/mcp-server-sse.d.ts +2 -0
- package/dist/mcp-server-sse.js +151 -0
- package/dist/mcp-server-sse.js.map +1 -0
- package/dist/models/component.d.ts +46 -44
- package/dist/models/draftt.d.ts +5 -0
- package/dist/models/policy.d.ts +30 -1
- package/dist/schemas/componentSchema.d.ts +376 -203
- package/dist/schemas/componentSchema.js +155 -47
- package/dist/schemas/componentSchema.js.map +1 -1
- package/dist/schemas/drafttSchema.d.ts +18 -1
- package/dist/schemas/drafttSchema.js +16 -2
- package/dist/schemas/drafttSchema.js.map +1 -1
- package/dist/schemas/policySchema.d.ts +190 -5
- package/dist/schemas/policySchema.js +69 -10
- package/dist/schemas/policySchema.js.map +1 -1
- package/dist/utils/constants.d.ts +31 -3
- package/dist/utils/constants.js +103 -24
- package/dist/utils/constants.js.map +1 -1
- package/dist/utils/json.d.ts +37 -0
- package/dist/utils/json.js +102 -0
- package/dist/utils/json.js.map +1 -0
- package/dist/utils/logger.d.ts +1 -1
- package/dist/utils/logger.js +2 -2
- package/package.json +9 -4
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
export declare const componentSearchSchema: {
|
|
2
|
+
export declare const componentSearchSchema: z.ZodObject<{
|
|
3
3
|
filter: z.ZodOptional<z.ZodObject<{
|
|
4
4
|
integrationId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
5
5
|
uniqueIdentifier: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
6
|
-
region: z.ZodOptional<z.ZodOptional<z.
|
|
7
|
-
technology: z.ZodOptional<z.ZodOptional<z.
|
|
8
|
-
type: z.ZodOptional<z.ZodOptional<z.
|
|
6
|
+
region: z.ZodOptional<z.ZodOptional<z.ZodEnum<["us-east-1", "us-east-2", "us-west-1", "us-west-2", "af-south-1", "ap-east-1", "ap-south-1", "ap-south-2", "ap-southeast-1", "ap-southeast-2", "ap-southeast-3", "ap-southeast-4", "ap-northeast-1", "ap-northeast-2", "ap-northeast-3", "ca-central-1", "eu-central-1", "eu-central-2", "eu-west-1", "eu-west-2", "eu-west-3", "eu-south-1", "eu-south-2", "eu-north-1", "il-central-1", "me-south-1", "me-central-1", "sa-east-1", "asia-east1", "asia-east2", "asia-northeast1", "asia-northeast2", "asia-northeast3", "asia-south1", "asia-south2", "asia-southeast1", "asia-southeast2", "australia-southeast1", "australia-southeast2", "europe-central2", "europe-north1", "europe-west1", "europe-west2", "europe-west3", "europe-west4", "europe-west6", "europe-west8", "europe-west9", "europe-west12", "me-central1", "me-west1", "northamerica-northeast1", "northamerica-northeast2", "southamerica-east1", "southamerica-west1", "us-central1", "us-east1", "us-east4", "us-east5", "us-south1", "us-west1", "us-west2", "us-west3", "us-west4"]>>>;
|
|
7
|
+
technology: z.ZodOptional<z.ZodOptional<z.ZodEnum<["bigquery", "cloudsql", "ecr", "elasticache", "k8s", "lambda", "opensearch", "rds", "kafka"]>>>;
|
|
8
|
+
type: z.ZodOptional<z.ZodOptional<z.ZodEnum<["aws-lambda-dotnet", "aws-lambda-go", "aws-lambda-java", "aws-lambda-nodejs", "aws-lambda-providedal", "aws-lambda-python", "aws-lambda-ruby", "aws-msk", "bigquery", "cloudsql-mysql", "cloudsql-postgres", "eks", "elasticache-memcached", "elasticache-redis", "elasticsearch", "gke", "java", "mongodb-atlas", "nodejs", "opensearch", "python", "rds-aurora-mysql", "rds-aurora-postgresql", "rds-docdb", "rds-mariadb", "rds-mysql", "rds-neptune", "rds-oracle", "rds-postgres", "rds-sqlserver-ex"]>>>;
|
|
9
9
|
version: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
10
10
|
tags: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
11
11
|
key: z.ZodString;
|
|
@@ -56,11 +56,11 @@ export declare const componentSearchSchema: {
|
|
|
56
56
|
lte?: string | undefined;
|
|
57
57
|
}>>>;
|
|
58
58
|
}, "strip", z.ZodTypeAny, {
|
|
59
|
-
type?:
|
|
59
|
+
type?: "bigquery" | "opensearch" | "aws-lambda-dotnet" | "aws-lambda-go" | "aws-lambda-java" | "aws-lambda-nodejs" | "aws-lambda-providedal" | "aws-lambda-python" | "aws-lambda-ruby" | "aws-msk" | "cloudsql-mysql" | "cloudsql-postgres" | "eks" | "elasticache-memcached" | "elasticache-redis" | "elasticsearch" | "gke" | "java" | "mongodb-atlas" | "nodejs" | "python" | "rds-aurora-mysql" | "rds-aurora-postgresql" | "rds-docdb" | "rds-mariadb" | "rds-mysql" | "rds-neptune" | "rds-oracle" | "rds-postgres" | "rds-sqlserver-ex" | undefined;
|
|
60
60
|
integrationId?: string | undefined;
|
|
61
61
|
uniqueIdentifier?: string | undefined;
|
|
62
|
-
region?:
|
|
63
|
-
technology?:
|
|
62
|
+
region?: "us-east-1" | "us-east-2" | "us-west-1" | "us-west-2" | "af-south-1" | "ap-east-1" | "ap-south-1" | "ap-south-2" | "ap-southeast-1" | "ap-southeast-2" | "ap-southeast-3" | "ap-southeast-4" | "ap-northeast-1" | "ap-northeast-2" | "ap-northeast-3" | "ca-central-1" | "eu-central-1" | "eu-central-2" | "eu-west-1" | "eu-west-2" | "eu-west-3" | "eu-south-1" | "eu-south-2" | "eu-north-1" | "il-central-1" | "me-south-1" | "me-central-1" | "sa-east-1" | "asia-east1" | "asia-east2" | "asia-northeast1" | "asia-northeast2" | "asia-northeast3" | "asia-south1" | "asia-south2" | "asia-southeast1" | "asia-southeast2" | "australia-southeast1" | "australia-southeast2" | "europe-central2" | "europe-north1" | "europe-west1" | "europe-west2" | "europe-west3" | "europe-west4" | "europe-west6" | "europe-west8" | "europe-west9" | "europe-west12" | "me-central1" | "me-west1" | "northamerica-northeast1" | "northamerica-northeast2" | "southamerica-east1" | "southamerica-west1" | "us-central1" | "us-east1" | "us-east4" | "us-east5" | "us-south1" | "us-west1" | "us-west2" | "us-west3" | "us-west4" | undefined;
|
|
63
|
+
technology?: "bigquery" | "cloudsql" | "ecr" | "elasticache" | "k8s" | "lambda" | "opensearch" | "rds" | "kafka" | undefined;
|
|
64
64
|
version?: string | undefined;
|
|
65
65
|
tags?: {
|
|
66
66
|
key: string;
|
|
@@ -81,11 +81,11 @@ export declare const componentSearchSchema: {
|
|
|
81
81
|
lte?: string | undefined;
|
|
82
82
|
} | undefined;
|
|
83
83
|
}, {
|
|
84
|
-
type?:
|
|
84
|
+
type?: "bigquery" | "opensearch" | "aws-lambda-dotnet" | "aws-lambda-go" | "aws-lambda-java" | "aws-lambda-nodejs" | "aws-lambda-providedal" | "aws-lambda-python" | "aws-lambda-ruby" | "aws-msk" | "cloudsql-mysql" | "cloudsql-postgres" | "eks" | "elasticache-memcached" | "elasticache-redis" | "elasticsearch" | "gke" | "java" | "mongodb-atlas" | "nodejs" | "python" | "rds-aurora-mysql" | "rds-aurora-postgresql" | "rds-docdb" | "rds-mariadb" | "rds-mysql" | "rds-neptune" | "rds-oracle" | "rds-postgres" | "rds-sqlserver-ex" | undefined;
|
|
85
85
|
integrationId?: string | undefined;
|
|
86
86
|
uniqueIdentifier?: string | undefined;
|
|
87
|
-
region?:
|
|
88
|
-
technology?:
|
|
87
|
+
region?: "us-east-1" | "us-east-2" | "us-west-1" | "us-west-2" | "af-south-1" | "ap-east-1" | "ap-south-1" | "ap-south-2" | "ap-southeast-1" | "ap-southeast-2" | "ap-southeast-3" | "ap-southeast-4" | "ap-northeast-1" | "ap-northeast-2" | "ap-northeast-3" | "ca-central-1" | "eu-central-1" | "eu-central-2" | "eu-west-1" | "eu-west-2" | "eu-west-3" | "eu-south-1" | "eu-south-2" | "eu-north-1" | "il-central-1" | "me-south-1" | "me-central-1" | "sa-east-1" | "asia-east1" | "asia-east2" | "asia-northeast1" | "asia-northeast2" | "asia-northeast3" | "asia-south1" | "asia-south2" | "asia-southeast1" | "asia-southeast2" | "australia-southeast1" | "australia-southeast2" | "europe-central2" | "europe-north1" | "europe-west1" | "europe-west2" | "europe-west3" | "europe-west4" | "europe-west6" | "europe-west8" | "europe-west9" | "europe-west12" | "me-central1" | "me-west1" | "northamerica-northeast1" | "northamerica-northeast2" | "southamerica-east1" | "southamerica-west1" | "us-central1" | "us-east1" | "us-east4" | "us-east5" | "us-south1" | "us-west1" | "us-west2" | "us-west3" | "us-west4" | undefined;
|
|
88
|
+
technology?: "bigquery" | "cloudsql" | "ecr" | "elasticache" | "k8s" | "lambda" | "opensearch" | "rds" | "kafka" | undefined;
|
|
89
89
|
version?: string | undefined;
|
|
90
90
|
tags?: {
|
|
91
91
|
key: string;
|
|
@@ -139,145 +139,14 @@ export declare const componentSearchSchema: {
|
|
|
139
139
|
}>>;
|
|
140
140
|
nextToken: z.ZodOptional<z.ZodString>;
|
|
141
141
|
pageSize: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
142
|
-
};
|
|
143
|
-
export declare const componentGetSchema: {
|
|
144
|
-
componentId: z.ZodString;
|
|
145
|
-
};
|
|
146
|
-
export declare const policyComponentSortSchema: z.ZodObject<{
|
|
147
|
-
componentId: z.ZodOptional<z.ZodOptional<z.ZodEnum<["asc", "desc"]>>>;
|
|
148
|
-
integrationId: z.ZodOptional<z.ZodOptional<z.ZodEnum<["asc", "desc"]>>>;
|
|
149
|
-
name: z.ZodOptional<z.ZodOptional<z.ZodEnum<["asc", "desc"]>>>;
|
|
150
|
-
technology: z.ZodOptional<z.ZodOptional<z.ZodEnum<["asc", "desc"]>>>;
|
|
151
|
-
type: z.ZodOptional<z.ZodOptional<z.ZodEnum<["asc", "desc"]>>>;
|
|
152
|
-
urgency: z.ZodOptional<z.ZodOptional<z.ZodEnum<["asc", "desc"]>>>;
|
|
153
|
-
priority: z.ZodOptional<z.ZodOptional<z.ZodEnum<["asc", "desc"]>>>;
|
|
154
|
-
isCompliant: z.ZodOptional<z.ZodOptional<z.ZodEnum<["asc", "desc"]>>>;
|
|
155
|
-
requiredVersion: z.ZodOptional<z.ZodOptional<z.ZodEnum<["asc", "desc"]>>>;
|
|
156
|
-
desiredVersion: z.ZodOptional<z.ZodOptional<z.ZodEnum<["asc", "desc"]>>>;
|
|
157
|
-
recommendedVersion: z.ZodOptional<z.ZodOptional<z.ZodEnum<["asc", "desc"]>>>;
|
|
158
|
-
dueDate: z.ZodOptional<z.ZodOptional<z.ZodEnum<["asc", "desc"]>>>;
|
|
159
|
-
tags: z.ZodOptional<z.ZodOptional<z.ZodEnum<["asc", "desc"]>>>;
|
|
160
|
-
createdAt: z.ZodOptional<z.ZodOptional<z.ZodEnum<["asc", "desc"]>>>;
|
|
161
|
-
updatedAt: z.ZodOptional<z.ZodOptional<z.ZodEnum<["asc", "desc"]>>>;
|
|
162
142
|
}, "strip", z.ZodTypeAny, {
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
componentId?: "asc" | "desc" | undefined;
|
|
171
|
-
urgency?: "asc" | "desc" | undefined;
|
|
172
|
-
priority?: "asc" | "desc" | undefined;
|
|
173
|
-
isCompliant?: "asc" | "desc" | undefined;
|
|
174
|
-
requiredVersion?: "asc" | "desc" | undefined;
|
|
175
|
-
desiredVersion?: "asc" | "desc" | undefined;
|
|
176
|
-
recommendedVersion?: "asc" | "desc" | undefined;
|
|
177
|
-
dueDate?: "asc" | "desc" | undefined;
|
|
178
|
-
}, {
|
|
179
|
-
name?: "asc" | "desc" | undefined;
|
|
180
|
-
type?: "asc" | "desc" | undefined;
|
|
181
|
-
integrationId?: "asc" | "desc" | undefined;
|
|
182
|
-
technology?: "asc" | "desc" | undefined;
|
|
183
|
-
tags?: "asc" | "desc" | undefined;
|
|
184
|
-
createdAt?: "asc" | "desc" | undefined;
|
|
185
|
-
updatedAt?: "asc" | "desc" | undefined;
|
|
186
|
-
componentId?: "asc" | "desc" | undefined;
|
|
187
|
-
urgency?: "asc" | "desc" | undefined;
|
|
188
|
-
priority?: "asc" | "desc" | undefined;
|
|
189
|
-
isCompliant?: "asc" | "desc" | undefined;
|
|
190
|
-
requiredVersion?: "asc" | "desc" | undefined;
|
|
191
|
-
desiredVersion?: "asc" | "desc" | undefined;
|
|
192
|
-
recommendedVersion?: "asc" | "desc" | undefined;
|
|
193
|
-
dueDate?: "asc" | "desc" | undefined;
|
|
194
|
-
}>;
|
|
195
|
-
export declare const policyComponentSearchSchema: {
|
|
196
|
-
policyId: z.ZodString;
|
|
197
|
-
filter: z.ZodOptional<z.ZodObject<{
|
|
198
|
-
componentId: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
199
|
-
integrationId: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
200
|
-
name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
201
|
-
technology: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
202
|
-
type: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
203
|
-
urgency: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
204
|
-
priority: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
205
|
-
isCompliant: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
206
|
-
requiredVersion: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
207
|
-
desiredVersion: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
208
|
-
recommendedVersion: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
209
|
-
dueDate: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
210
|
-
eq: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
211
|
-
gt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
212
|
-
gte: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
213
|
-
lt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
214
|
-
lte: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
215
|
-
}, "strip", z.ZodTypeAny, {
|
|
216
|
-
eq?: string | undefined;
|
|
217
|
-
gt?: string | undefined;
|
|
218
|
-
gte?: string | undefined;
|
|
219
|
-
lt?: string | undefined;
|
|
220
|
-
lte?: string | undefined;
|
|
221
|
-
}, {
|
|
222
|
-
eq?: string | undefined;
|
|
223
|
-
gt?: string | undefined;
|
|
224
|
-
gte?: string | undefined;
|
|
225
|
-
lt?: string | undefined;
|
|
226
|
-
lte?: string | undefined;
|
|
227
|
-
}>>>;
|
|
228
|
-
tags: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
229
|
-
key: z.ZodString;
|
|
230
|
-
value: z.ZodString;
|
|
231
|
-
}, "strip", z.ZodTypeAny, {
|
|
232
|
-
key: string;
|
|
233
|
-
value: string;
|
|
234
|
-
}, {
|
|
235
|
-
key: string;
|
|
236
|
-
value: string;
|
|
237
|
-
}>, "many">>>;
|
|
238
|
-
createdAt: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
239
|
-
eq: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
240
|
-
gt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
241
|
-
gte: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
242
|
-
lt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
243
|
-
lte: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
244
|
-
}, "strip", z.ZodTypeAny, {
|
|
245
|
-
eq?: string | undefined;
|
|
246
|
-
gt?: string | undefined;
|
|
247
|
-
gte?: string | undefined;
|
|
248
|
-
lt?: string | undefined;
|
|
249
|
-
lte?: string | undefined;
|
|
250
|
-
}, {
|
|
251
|
-
eq?: string | undefined;
|
|
252
|
-
gt?: string | undefined;
|
|
253
|
-
gte?: string | undefined;
|
|
254
|
-
lt?: string | undefined;
|
|
255
|
-
lte?: string | undefined;
|
|
256
|
-
}>>>;
|
|
257
|
-
updatedAt: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
258
|
-
eq: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
259
|
-
gt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
260
|
-
gte: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
261
|
-
lt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
262
|
-
lte: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
263
|
-
}, "strip", z.ZodTypeAny, {
|
|
264
|
-
eq?: string | undefined;
|
|
265
|
-
gt?: string | undefined;
|
|
266
|
-
gte?: string | undefined;
|
|
267
|
-
lt?: string | undefined;
|
|
268
|
-
lte?: string | undefined;
|
|
269
|
-
}, {
|
|
270
|
-
eq?: string | undefined;
|
|
271
|
-
gt?: string | undefined;
|
|
272
|
-
gte?: string | undefined;
|
|
273
|
-
lt?: string | undefined;
|
|
274
|
-
lte?: string | undefined;
|
|
275
|
-
}>>>;
|
|
276
|
-
}, "strip", z.ZodTypeAny, {
|
|
277
|
-
name?: string | undefined;
|
|
278
|
-
type?: string | undefined;
|
|
279
|
-
integrationId?: number | undefined;
|
|
280
|
-
technology?: string | undefined;
|
|
143
|
+
filter?: {
|
|
144
|
+
type?: "bigquery" | "opensearch" | "aws-lambda-dotnet" | "aws-lambda-go" | "aws-lambda-java" | "aws-lambda-nodejs" | "aws-lambda-providedal" | "aws-lambda-python" | "aws-lambda-ruby" | "aws-msk" | "cloudsql-mysql" | "cloudsql-postgres" | "eks" | "elasticache-memcached" | "elasticache-redis" | "elasticsearch" | "gke" | "java" | "mongodb-atlas" | "nodejs" | "python" | "rds-aurora-mysql" | "rds-aurora-postgresql" | "rds-docdb" | "rds-mariadb" | "rds-mysql" | "rds-neptune" | "rds-oracle" | "rds-postgres" | "rds-sqlserver-ex" | undefined;
|
|
145
|
+
integrationId?: string | undefined;
|
|
146
|
+
uniqueIdentifier?: string | undefined;
|
|
147
|
+
region?: "us-east-1" | "us-east-2" | "us-west-1" | "us-west-2" | "af-south-1" | "ap-east-1" | "ap-south-1" | "ap-south-2" | "ap-southeast-1" | "ap-southeast-2" | "ap-southeast-3" | "ap-southeast-4" | "ap-northeast-1" | "ap-northeast-2" | "ap-northeast-3" | "ca-central-1" | "eu-central-1" | "eu-central-2" | "eu-west-1" | "eu-west-2" | "eu-west-3" | "eu-south-1" | "eu-south-2" | "eu-north-1" | "il-central-1" | "me-south-1" | "me-central-1" | "sa-east-1" | "asia-east1" | "asia-east2" | "asia-northeast1" | "asia-northeast2" | "asia-northeast3" | "asia-south1" | "asia-south2" | "asia-southeast1" | "asia-southeast2" | "australia-southeast1" | "australia-southeast2" | "europe-central2" | "europe-north1" | "europe-west1" | "europe-west2" | "europe-west3" | "europe-west4" | "europe-west6" | "europe-west8" | "europe-west9" | "europe-west12" | "me-central1" | "me-west1" | "northamerica-northeast1" | "northamerica-northeast2" | "southamerica-east1" | "southamerica-west1" | "us-central1" | "us-east1" | "us-east4" | "us-east5" | "us-south1" | "us-west1" | "us-west2" | "us-west3" | "us-west4" | undefined;
|
|
148
|
+
technology?: "bigquery" | "cloudsql" | "ecr" | "elasticache" | "k8s" | "lambda" | "opensearch" | "rds" | "kafka" | undefined;
|
|
149
|
+
version?: string | undefined;
|
|
281
150
|
tags?: {
|
|
282
151
|
key: string;
|
|
283
152
|
value: string;
|
|
@@ -296,25 +165,28 @@ export declare const policyComponentSearchSchema: {
|
|
|
296
165
|
lt?: string | undefined;
|
|
297
166
|
lte?: string | undefined;
|
|
298
167
|
} | undefined;
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
type?:
|
|
316
|
-
integrationId?:
|
|
317
|
-
|
|
168
|
+
} | undefined;
|
|
169
|
+
sort?: {
|
|
170
|
+
type?: "asc" | "desc" | undefined;
|
|
171
|
+
integrationId?: "asc" | "desc" | undefined;
|
|
172
|
+
uniqueIdentifier?: "asc" | "desc" | undefined;
|
|
173
|
+
region?: "asc" | "desc" | undefined;
|
|
174
|
+
technology?: "asc" | "desc" | undefined;
|
|
175
|
+
version?: "asc" | "desc" | undefined;
|
|
176
|
+
tags?: "asc" | "desc" | undefined;
|
|
177
|
+
createdAt?: "asc" | "desc" | undefined;
|
|
178
|
+
updatedAt?: "asc" | "desc" | undefined;
|
|
179
|
+
} | undefined;
|
|
180
|
+
nextToken?: string | undefined;
|
|
181
|
+
pageSize?: number | undefined;
|
|
182
|
+
}, {
|
|
183
|
+
filter?: {
|
|
184
|
+
type?: "bigquery" | "opensearch" | "aws-lambda-dotnet" | "aws-lambda-go" | "aws-lambda-java" | "aws-lambda-nodejs" | "aws-lambda-providedal" | "aws-lambda-python" | "aws-lambda-ruby" | "aws-msk" | "cloudsql-mysql" | "cloudsql-postgres" | "eks" | "elasticache-memcached" | "elasticache-redis" | "elasticsearch" | "gke" | "java" | "mongodb-atlas" | "nodejs" | "python" | "rds-aurora-mysql" | "rds-aurora-postgresql" | "rds-docdb" | "rds-mariadb" | "rds-mysql" | "rds-neptune" | "rds-oracle" | "rds-postgres" | "rds-sqlserver-ex" | undefined;
|
|
185
|
+
integrationId?: string | undefined;
|
|
186
|
+
uniqueIdentifier?: string | undefined;
|
|
187
|
+
region?: "us-east-1" | "us-east-2" | "us-west-1" | "us-west-2" | "af-south-1" | "ap-east-1" | "ap-south-1" | "ap-south-2" | "ap-southeast-1" | "ap-southeast-2" | "ap-southeast-3" | "ap-southeast-4" | "ap-northeast-1" | "ap-northeast-2" | "ap-northeast-3" | "ca-central-1" | "eu-central-1" | "eu-central-2" | "eu-west-1" | "eu-west-2" | "eu-west-3" | "eu-south-1" | "eu-south-2" | "eu-north-1" | "il-central-1" | "me-south-1" | "me-central-1" | "sa-east-1" | "asia-east1" | "asia-east2" | "asia-northeast1" | "asia-northeast2" | "asia-northeast3" | "asia-south1" | "asia-south2" | "asia-southeast1" | "asia-southeast2" | "australia-southeast1" | "australia-southeast2" | "europe-central2" | "europe-north1" | "europe-west1" | "europe-west2" | "europe-west3" | "europe-west4" | "europe-west6" | "europe-west8" | "europe-west9" | "europe-west12" | "me-central1" | "me-west1" | "northamerica-northeast1" | "northamerica-northeast2" | "southamerica-east1" | "southamerica-west1" | "us-central1" | "us-east1" | "us-east4" | "us-east5" | "us-south1" | "us-west1" | "us-west2" | "us-west3" | "us-west4" | undefined;
|
|
188
|
+
technology?: "bigquery" | "cloudsql" | "ecr" | "elasticache" | "k8s" | "lambda" | "opensearch" | "rds" | "kafka" | undefined;
|
|
189
|
+
version?: string | undefined;
|
|
318
190
|
tags?: {
|
|
319
191
|
key: string;
|
|
320
192
|
value: string;
|
|
@@ -333,74 +205,375 @@ export declare const policyComponentSearchSchema: {
|
|
|
333
205
|
lt?: string | undefined;
|
|
334
206
|
lte?: string | undefined;
|
|
335
207
|
} | undefined;
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
208
|
+
} | undefined;
|
|
209
|
+
sort?: {
|
|
210
|
+
type?: "asc" | "desc" | undefined;
|
|
211
|
+
integrationId?: "asc" | "desc" | undefined;
|
|
212
|
+
uniqueIdentifier?: "asc" | "desc" | undefined;
|
|
213
|
+
region?: "asc" | "desc" | undefined;
|
|
214
|
+
technology?: "asc" | "desc" | undefined;
|
|
215
|
+
version?: "asc" | "desc" | undefined;
|
|
216
|
+
tags?: "asc" | "desc" | undefined;
|
|
217
|
+
createdAt?: "asc" | "desc" | undefined;
|
|
218
|
+
updatedAt?: "asc" | "desc" | undefined;
|
|
219
|
+
} | undefined;
|
|
220
|
+
nextToken?: string | undefined;
|
|
221
|
+
pageSize?: number | undefined;
|
|
222
|
+
}>;
|
|
223
|
+
export declare const componentGetSchema: z.ZodObject<{
|
|
224
|
+
componentId: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
|
|
225
|
+
}, "strip", z.ZodTypeAny, {
|
|
226
|
+
componentId: string | number;
|
|
227
|
+
}, {
|
|
228
|
+
componentId: string | number;
|
|
229
|
+
}>;
|
|
230
|
+
export declare const policyComponentGetSchema: z.ZodObject<{
|
|
231
|
+
policyId: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
|
|
232
|
+
componentId: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
|
|
233
|
+
}, "strip", z.ZodTypeAny, {
|
|
234
|
+
policyId: string | number;
|
|
235
|
+
componentId: string | number;
|
|
236
|
+
}, {
|
|
237
|
+
policyId: string | number;
|
|
238
|
+
componentId: string | number;
|
|
239
|
+
}>;
|
|
240
|
+
declare const stringOperatorSchema: z.ZodObject<{
|
|
241
|
+
$eq: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
242
|
+
$ne: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
243
|
+
$gt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
244
|
+
$gte: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
245
|
+
$lt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
246
|
+
$lte: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
247
|
+
$in: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
248
|
+
$nin: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
249
|
+
$exists: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
250
|
+
}, "strip", z.ZodTypeAny, {
|
|
251
|
+
$eq?: string | undefined;
|
|
252
|
+
$ne?: string | undefined;
|
|
253
|
+
$gt?: string | undefined;
|
|
254
|
+
$gte?: string | undefined;
|
|
255
|
+
$lt?: string | undefined;
|
|
256
|
+
$lte?: string | undefined;
|
|
257
|
+
$in?: string[] | undefined;
|
|
258
|
+
$nin?: string[] | undefined;
|
|
259
|
+
$exists?: boolean | undefined;
|
|
260
|
+
}, {
|
|
261
|
+
$eq?: string | undefined;
|
|
262
|
+
$ne?: string | undefined;
|
|
263
|
+
$gt?: string | undefined;
|
|
264
|
+
$gte?: string | undefined;
|
|
265
|
+
$lt?: string | undefined;
|
|
266
|
+
$lte?: string | undefined;
|
|
267
|
+
$in?: string[] | undefined;
|
|
268
|
+
$nin?: string[] | undefined;
|
|
269
|
+
$exists?: boolean | undefined;
|
|
270
|
+
}>;
|
|
271
|
+
declare const numberOperatorSchema: z.ZodObject<{
|
|
272
|
+
$eq: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
273
|
+
$ne: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
274
|
+
$gt: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
275
|
+
$gte: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
276
|
+
$lt: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
277
|
+
$lte: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
278
|
+
$in: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
|
|
279
|
+
$nin: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
|
|
280
|
+
$exists: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
281
|
+
}, "strip", z.ZodTypeAny, {
|
|
282
|
+
$eq?: number | undefined;
|
|
283
|
+
$ne?: number | undefined;
|
|
284
|
+
$gt?: number | undefined;
|
|
285
|
+
$gte?: number | undefined;
|
|
286
|
+
$lt?: number | undefined;
|
|
287
|
+
$lte?: number | undefined;
|
|
288
|
+
$in?: number[] | undefined;
|
|
289
|
+
$nin?: number[] | undefined;
|
|
290
|
+
$exists?: boolean | undefined;
|
|
291
|
+
}, {
|
|
292
|
+
$eq?: number | undefined;
|
|
293
|
+
$ne?: number | undefined;
|
|
294
|
+
$gt?: number | undefined;
|
|
295
|
+
$gte?: number | undefined;
|
|
296
|
+
$lt?: number | undefined;
|
|
297
|
+
$lte?: number | undefined;
|
|
298
|
+
$in?: number[] | undefined;
|
|
299
|
+
$nin?: number[] | undefined;
|
|
300
|
+
$exists?: boolean | undefined;
|
|
301
|
+
}>;
|
|
302
|
+
declare const booleanOperatorSchema: z.ZodObject<{
|
|
303
|
+
$eq: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
304
|
+
$ne: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
305
|
+
$exists: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
306
|
+
}, "strip", z.ZodTypeAny, {
|
|
307
|
+
$eq?: boolean | undefined;
|
|
308
|
+
$ne?: boolean | undefined;
|
|
309
|
+
$exists?: boolean | undefined;
|
|
310
|
+
}, {
|
|
311
|
+
$eq?: boolean | undefined;
|
|
312
|
+
$ne?: boolean | undefined;
|
|
313
|
+
$exists?: boolean | undefined;
|
|
314
|
+
}>;
|
|
315
|
+
interface PolicyComponentQueryFilter {
|
|
316
|
+
$and?: PolicyComponentQueryFilter[];
|
|
317
|
+
$or?: PolicyComponentQueryFilter[];
|
|
318
|
+
id?: z.infer<typeof numberOperatorSchema>;
|
|
319
|
+
policyId?: z.infer<typeof numberOperatorSchema>;
|
|
320
|
+
technology?: z.infer<typeof stringOperatorSchema>;
|
|
321
|
+
name?: z.infer<typeof stringOperatorSchema>;
|
|
322
|
+
componentId?: z.infer<typeof numberOperatorSchema>;
|
|
323
|
+
urgency?: z.infer<typeof numberOperatorSchema>;
|
|
324
|
+
effort?: z.infer<typeof numberOperatorSchema>;
|
|
325
|
+
orgComplexity?: z.infer<typeof numberOperatorSchema>;
|
|
326
|
+
priority?: z.infer<typeof numberOperatorSchema>;
|
|
327
|
+
isCompliant?: z.infer<typeof booleanOperatorSchema>;
|
|
328
|
+
currentVersion?: z.infer<typeof stringOperatorSchema>;
|
|
329
|
+
desiredVersion?: z.infer<typeof stringOperatorSchema>;
|
|
330
|
+
recommendedVersion?: z.infer<typeof stringOperatorSchema>;
|
|
331
|
+
status?: z.infer<typeof stringOperatorSchema>;
|
|
332
|
+
extendedSupportAnnualCost?: z.infer<typeof numberOperatorSchema>;
|
|
333
|
+
activeExtendedSupport?: z.infer<typeof booleanOperatorSchema>;
|
|
334
|
+
dueDate?: z.infer<typeof stringOperatorSchema>;
|
|
335
|
+
createdAt?: z.infer<typeof stringOperatorSchema>;
|
|
336
|
+
updatedAt?: z.infer<typeof stringOperatorSchema>;
|
|
337
|
+
deletedAt?: z.infer<typeof stringOperatorSchema>;
|
|
338
|
+
}
|
|
339
|
+
interface TagFilters {
|
|
340
|
+
$and?: TagFilters[];
|
|
341
|
+
$or?: TagFilters[];
|
|
342
|
+
[key: string]: z.infer<typeof stringOperatorSchema> | TagFilters[] | undefined;
|
|
343
|
+
}
|
|
344
|
+
export declare const policyComponentQuerySchema: z.ZodObject<{
|
|
345
|
+
policyId: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
|
|
346
|
+
filter: z.ZodOptional<z.ZodType<PolicyComponentQueryFilter, z.ZodTypeDef, PolicyComponentQueryFilter>>;
|
|
347
|
+
tagFilters: z.ZodOptional<z.ZodType<TagFilters, z.ZodTypeDef, TagFilters>>;
|
|
348
|
+
selectTags: z.ZodOptional<z.ZodBoolean>;
|
|
349
|
+
calculateDisplayNames: z.ZodOptional<z.ZodBoolean>;
|
|
350
|
+
select: z.ZodOptional<z.ZodArray<z.ZodEnum<["id", "policyId", "technology", "name", "componentId", "urgency", "effort", "orgComplexity", "priority", "isCompliant", "currentVersion", "desiredVersion", "recommendedVersion", "status", "extendedSupportAnnualCost", "dueDate", "createdAt", "updatedAt", "deletedAt"]>, "many">>;
|
|
351
351
|
sort: z.ZodOptional<z.ZodObject<{
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
name: z.ZodOptional<z.ZodOptional<z.ZodEnum<["asc", "desc"]>>>;
|
|
352
|
+
id: z.ZodOptional<z.ZodOptional<z.ZodEnum<["asc", "desc"]>>>;
|
|
353
|
+
policyId: z.ZodOptional<z.ZodOptional<z.ZodEnum<["asc", "desc"]>>>;
|
|
355
354
|
technology: z.ZodOptional<z.ZodOptional<z.ZodEnum<["asc", "desc"]>>>;
|
|
356
|
-
|
|
355
|
+
name: z.ZodOptional<z.ZodOptional<z.ZodEnum<["asc", "desc"]>>>;
|
|
356
|
+
componentId: z.ZodOptional<z.ZodOptional<z.ZodEnum<["asc", "desc"]>>>;
|
|
357
357
|
urgency: z.ZodOptional<z.ZodOptional<z.ZodEnum<["asc", "desc"]>>>;
|
|
358
|
+
effort: z.ZodOptional<z.ZodOptional<z.ZodEnum<["asc", "desc"]>>>;
|
|
359
|
+
orgComplexity: z.ZodOptional<z.ZodOptional<z.ZodEnum<["asc", "desc"]>>>;
|
|
358
360
|
priority: z.ZodOptional<z.ZodOptional<z.ZodEnum<["asc", "desc"]>>>;
|
|
359
361
|
isCompliant: z.ZodOptional<z.ZodOptional<z.ZodEnum<["asc", "desc"]>>>;
|
|
360
|
-
|
|
362
|
+
currentVersion: z.ZodOptional<z.ZodOptional<z.ZodEnum<["asc", "desc"]>>>;
|
|
361
363
|
desiredVersion: z.ZodOptional<z.ZodOptional<z.ZodEnum<["asc", "desc"]>>>;
|
|
362
364
|
recommendedVersion: z.ZodOptional<z.ZodOptional<z.ZodEnum<["asc", "desc"]>>>;
|
|
365
|
+
status: z.ZodOptional<z.ZodOptional<z.ZodEnum<["asc", "desc"]>>>;
|
|
366
|
+
extendedSupportAnnualCost: z.ZodOptional<z.ZodOptional<z.ZodEnum<["asc", "desc"]>>>;
|
|
367
|
+
activeExtendedSupport: z.ZodOptional<z.ZodOptional<z.ZodEnum<["asc", "desc"]>>>;
|
|
363
368
|
dueDate: z.ZodOptional<z.ZodOptional<z.ZodEnum<["asc", "desc"]>>>;
|
|
364
|
-
tags: z.ZodOptional<z.ZodOptional<z.ZodEnum<["asc", "desc"]>>>;
|
|
365
369
|
createdAt: z.ZodOptional<z.ZodOptional<z.ZodEnum<["asc", "desc"]>>>;
|
|
366
370
|
updatedAt: z.ZodOptional<z.ZodOptional<z.ZodEnum<["asc", "desc"]>>>;
|
|
371
|
+
deletedAt: z.ZodOptional<z.ZodOptional<z.ZodEnum<["asc", "desc"]>>>;
|
|
367
372
|
}, "strip", z.ZodTypeAny, {
|
|
368
373
|
name?: "asc" | "desc" | undefined;
|
|
369
|
-
|
|
370
|
-
|
|
374
|
+
policyId?: "asc" | "desc" | undefined;
|
|
375
|
+
componentId?: "asc" | "desc" | undefined;
|
|
376
|
+
status?: "asc" | "desc" | undefined;
|
|
371
377
|
technology?: "asc" | "desc" | undefined;
|
|
372
|
-
tags?: "asc" | "desc" | undefined;
|
|
373
378
|
createdAt?: "asc" | "desc" | undefined;
|
|
374
379
|
updatedAt?: "asc" | "desc" | undefined;
|
|
375
|
-
|
|
380
|
+
id?: "asc" | "desc" | undefined;
|
|
376
381
|
urgency?: "asc" | "desc" | undefined;
|
|
382
|
+
effort?: "asc" | "desc" | undefined;
|
|
383
|
+
orgComplexity?: "asc" | "desc" | undefined;
|
|
377
384
|
priority?: "asc" | "desc" | undefined;
|
|
378
385
|
isCompliant?: "asc" | "desc" | undefined;
|
|
379
|
-
|
|
386
|
+
currentVersion?: "asc" | "desc" | undefined;
|
|
380
387
|
desiredVersion?: "asc" | "desc" | undefined;
|
|
381
388
|
recommendedVersion?: "asc" | "desc" | undefined;
|
|
389
|
+
extendedSupportAnnualCost?: "asc" | "desc" | undefined;
|
|
390
|
+
activeExtendedSupport?: "asc" | "desc" | undefined;
|
|
382
391
|
dueDate?: "asc" | "desc" | undefined;
|
|
392
|
+
deletedAt?: "asc" | "desc" | undefined;
|
|
383
393
|
}, {
|
|
384
394
|
name?: "asc" | "desc" | undefined;
|
|
385
|
-
|
|
386
|
-
|
|
395
|
+
policyId?: "asc" | "desc" | undefined;
|
|
396
|
+
componentId?: "asc" | "desc" | undefined;
|
|
397
|
+
status?: "asc" | "desc" | undefined;
|
|
387
398
|
technology?: "asc" | "desc" | undefined;
|
|
388
|
-
tags?: "asc" | "desc" | undefined;
|
|
389
399
|
createdAt?: "asc" | "desc" | undefined;
|
|
390
400
|
updatedAt?: "asc" | "desc" | undefined;
|
|
401
|
+
id?: "asc" | "desc" | undefined;
|
|
402
|
+
urgency?: "asc" | "desc" | undefined;
|
|
403
|
+
effort?: "asc" | "desc" | undefined;
|
|
404
|
+
orgComplexity?: "asc" | "desc" | undefined;
|
|
405
|
+
priority?: "asc" | "desc" | undefined;
|
|
406
|
+
isCompliant?: "asc" | "desc" | undefined;
|
|
407
|
+
currentVersion?: "asc" | "desc" | undefined;
|
|
408
|
+
desiredVersion?: "asc" | "desc" | undefined;
|
|
409
|
+
recommendedVersion?: "asc" | "desc" | undefined;
|
|
410
|
+
extendedSupportAnnualCost?: "asc" | "desc" | undefined;
|
|
411
|
+
activeExtendedSupport?: "asc" | "desc" | undefined;
|
|
412
|
+
dueDate?: "asc" | "desc" | undefined;
|
|
413
|
+
deletedAt?: "asc" | "desc" | undefined;
|
|
414
|
+
}>>;
|
|
415
|
+
pageToken: z.ZodOptional<z.ZodString>;
|
|
416
|
+
pageSize: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
417
|
+
}, "strip", z.ZodTypeAny, {
|
|
418
|
+
policyId: string | number;
|
|
419
|
+
filter?: PolicyComponentQueryFilter | undefined;
|
|
420
|
+
sort?: {
|
|
421
|
+
name?: "asc" | "desc" | undefined;
|
|
422
|
+
policyId?: "asc" | "desc" | undefined;
|
|
391
423
|
componentId?: "asc" | "desc" | undefined;
|
|
424
|
+
status?: "asc" | "desc" | undefined;
|
|
425
|
+
technology?: "asc" | "desc" | undefined;
|
|
426
|
+
createdAt?: "asc" | "desc" | undefined;
|
|
427
|
+
updatedAt?: "asc" | "desc" | undefined;
|
|
428
|
+
id?: "asc" | "desc" | undefined;
|
|
392
429
|
urgency?: "asc" | "desc" | undefined;
|
|
430
|
+
effort?: "asc" | "desc" | undefined;
|
|
431
|
+
orgComplexity?: "asc" | "desc" | undefined;
|
|
393
432
|
priority?: "asc" | "desc" | undefined;
|
|
394
433
|
isCompliant?: "asc" | "desc" | undefined;
|
|
395
|
-
|
|
434
|
+
currentVersion?: "asc" | "desc" | undefined;
|
|
396
435
|
desiredVersion?: "asc" | "desc" | undefined;
|
|
397
436
|
recommendedVersion?: "asc" | "desc" | undefined;
|
|
437
|
+
extendedSupportAnnualCost?: "asc" | "desc" | undefined;
|
|
438
|
+
activeExtendedSupport?: "asc" | "desc" | undefined;
|
|
398
439
|
dueDate?: "asc" | "desc" | undefined;
|
|
440
|
+
deletedAt?: "asc" | "desc" | undefined;
|
|
441
|
+
} | undefined;
|
|
442
|
+
pageSize?: number | undefined;
|
|
443
|
+
tagFilters?: TagFilters | undefined;
|
|
444
|
+
selectTags?: boolean | undefined;
|
|
445
|
+
calculateDisplayNames?: boolean | undefined;
|
|
446
|
+
select?: ("name" | "policyId" | "componentId" | "status" | "technology" | "createdAt" | "updatedAt" | "id" | "urgency" | "effort" | "orgComplexity" | "priority" | "isCompliant" | "currentVersion" | "desiredVersion" | "recommendedVersion" | "extendedSupportAnnualCost" | "dueDate" | "deletedAt")[] | undefined;
|
|
447
|
+
pageToken?: string | undefined;
|
|
448
|
+
}, {
|
|
449
|
+
policyId: string | number;
|
|
450
|
+
filter?: PolicyComponentQueryFilter | undefined;
|
|
451
|
+
sort?: {
|
|
452
|
+
name?: "asc" | "desc" | undefined;
|
|
453
|
+
policyId?: "asc" | "desc" | undefined;
|
|
454
|
+
componentId?: "asc" | "desc" | undefined;
|
|
455
|
+
status?: "asc" | "desc" | undefined;
|
|
456
|
+
technology?: "asc" | "desc" | undefined;
|
|
457
|
+
createdAt?: "asc" | "desc" | undefined;
|
|
458
|
+
updatedAt?: "asc" | "desc" | undefined;
|
|
459
|
+
id?: "asc" | "desc" | undefined;
|
|
460
|
+
urgency?: "asc" | "desc" | undefined;
|
|
461
|
+
effort?: "asc" | "desc" | undefined;
|
|
462
|
+
orgComplexity?: "asc" | "desc" | undefined;
|
|
463
|
+
priority?: "asc" | "desc" | undefined;
|
|
464
|
+
isCompliant?: "asc" | "desc" | undefined;
|
|
465
|
+
currentVersion?: "asc" | "desc" | undefined;
|
|
466
|
+
desiredVersion?: "asc" | "desc" | undefined;
|
|
467
|
+
recommendedVersion?: "asc" | "desc" | undefined;
|
|
468
|
+
extendedSupportAnnualCost?: "asc" | "desc" | undefined;
|
|
469
|
+
activeExtendedSupport?: "asc" | "desc" | undefined;
|
|
470
|
+
dueDate?: "asc" | "desc" | undefined;
|
|
471
|
+
deletedAt?: "asc" | "desc" | undefined;
|
|
472
|
+
} | undefined;
|
|
473
|
+
pageSize?: number | undefined;
|
|
474
|
+
tagFilters?: TagFilters | undefined;
|
|
475
|
+
selectTags?: boolean | undefined;
|
|
476
|
+
calculateDisplayNames?: boolean | undefined;
|
|
477
|
+
select?: ("name" | "policyId" | "componentId" | "status" | "technology" | "createdAt" | "updatedAt" | "id" | "urgency" | "effort" | "orgComplexity" | "priority" | "isCompliant" | "currentVersion" | "desiredVersion" | "recommendedVersion" | "extendedSupportAnnualCost" | "dueDate" | "deletedAt")[] | undefined;
|
|
478
|
+
pageToken?: string | undefined;
|
|
479
|
+
}>;
|
|
480
|
+
interface ComponentQueryFilter {
|
|
481
|
+
$and?: ComponentQueryFilter[];
|
|
482
|
+
$or?: ComponentQueryFilter[];
|
|
483
|
+
id?: z.infer<typeof numberOperatorSchema>;
|
|
484
|
+
integrationId?: z.infer<typeof numberOperatorSchema>;
|
|
485
|
+
uniqueIdentifier?: z.infer<typeof stringOperatorSchema>;
|
|
486
|
+
region?: z.infer<typeof stringOperatorSchema>;
|
|
487
|
+
technology?: z.infer<typeof stringOperatorSchema>;
|
|
488
|
+
type?: z.infer<typeof stringOperatorSchema>;
|
|
489
|
+
version?: z.infer<typeof stringOperatorSchema>;
|
|
490
|
+
createdAt?: z.infer<typeof stringOperatorSchema>;
|
|
491
|
+
updatedAt?: z.infer<typeof stringOperatorSchema>;
|
|
492
|
+
deletedAt?: z.infer<typeof stringOperatorSchema>;
|
|
493
|
+
}
|
|
494
|
+
interface ComponentTagFilters {
|
|
495
|
+
$and?: ComponentTagFilters[];
|
|
496
|
+
$or?: ComponentTagFilters[];
|
|
497
|
+
[key: string]: z.infer<typeof stringOperatorSchema> | ComponentTagFilters[] | undefined;
|
|
498
|
+
}
|
|
499
|
+
export declare const componentQuerySchema: z.ZodObject<{
|
|
500
|
+
filter: z.ZodOptional<z.ZodType<ComponentQueryFilter, z.ZodTypeDef, ComponentQueryFilter>>;
|
|
501
|
+
tagFilters: z.ZodOptional<z.ZodType<ComponentTagFilters, z.ZodTypeDef, ComponentTagFilters>>;
|
|
502
|
+
selectTags: z.ZodOptional<z.ZodBoolean>;
|
|
503
|
+
select: z.ZodOptional<z.ZodArray<z.ZodEnum<["id", "integrationId", "uniqueIdentifier", "region", "technology", "type", "version", "createdAt", "updatedAt", "deletedAt"]>, "many">>;
|
|
504
|
+
sort: z.ZodOptional<z.ZodObject<{
|
|
505
|
+
id: z.ZodOptional<z.ZodOptional<z.ZodEnum<["asc", "desc"]>>>;
|
|
506
|
+
integrationId: z.ZodOptional<z.ZodOptional<z.ZodEnum<["asc", "desc"]>>>;
|
|
507
|
+
uniqueIdentifier: z.ZodOptional<z.ZodOptional<z.ZodEnum<["asc", "desc"]>>>;
|
|
508
|
+
region: z.ZodOptional<z.ZodOptional<z.ZodEnum<["asc", "desc"]>>>;
|
|
509
|
+
technology: z.ZodOptional<z.ZodOptional<z.ZodEnum<["asc", "desc"]>>>;
|
|
510
|
+
type: z.ZodOptional<z.ZodOptional<z.ZodEnum<["asc", "desc"]>>>;
|
|
511
|
+
version: z.ZodOptional<z.ZodOptional<z.ZodEnum<["asc", "desc"]>>>;
|
|
512
|
+
createdAt: z.ZodOptional<z.ZodOptional<z.ZodEnum<["asc", "desc"]>>>;
|
|
513
|
+
updatedAt: z.ZodOptional<z.ZodOptional<z.ZodEnum<["asc", "desc"]>>>;
|
|
514
|
+
deletedAt: z.ZodOptional<z.ZodOptional<z.ZodEnum<["asc", "desc"]>>>;
|
|
515
|
+
}, "strip", z.ZodTypeAny, {
|
|
516
|
+
type?: "asc" | "desc" | undefined;
|
|
517
|
+
integrationId?: "asc" | "desc" | undefined;
|
|
518
|
+
uniqueIdentifier?: "asc" | "desc" | undefined;
|
|
519
|
+
region?: "asc" | "desc" | undefined;
|
|
520
|
+
technology?: "asc" | "desc" | undefined;
|
|
521
|
+
version?: "asc" | "desc" | undefined;
|
|
522
|
+
createdAt?: "asc" | "desc" | undefined;
|
|
523
|
+
updatedAt?: "asc" | "desc" | undefined;
|
|
524
|
+
id?: "asc" | "desc" | undefined;
|
|
525
|
+
deletedAt?: "asc" | "desc" | undefined;
|
|
526
|
+
}, {
|
|
527
|
+
type?: "asc" | "desc" | undefined;
|
|
528
|
+
integrationId?: "asc" | "desc" | undefined;
|
|
529
|
+
uniqueIdentifier?: "asc" | "desc" | undefined;
|
|
530
|
+
region?: "asc" | "desc" | undefined;
|
|
531
|
+
technology?: "asc" | "desc" | undefined;
|
|
532
|
+
version?: "asc" | "desc" | undefined;
|
|
533
|
+
createdAt?: "asc" | "desc" | undefined;
|
|
534
|
+
updatedAt?: "asc" | "desc" | undefined;
|
|
535
|
+
id?: "asc" | "desc" | undefined;
|
|
536
|
+
deletedAt?: "asc" | "desc" | undefined;
|
|
399
537
|
}>>;
|
|
400
|
-
|
|
538
|
+
pageToken: z.ZodOptional<z.ZodString>;
|
|
401
539
|
pageSize: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
402
|
-
}
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
540
|
+
}, "strip", z.ZodTypeAny, {
|
|
541
|
+
filter?: ComponentQueryFilter | undefined;
|
|
542
|
+
sort?: {
|
|
543
|
+
type?: "asc" | "desc" | undefined;
|
|
544
|
+
integrationId?: "asc" | "desc" | undefined;
|
|
545
|
+
uniqueIdentifier?: "asc" | "desc" | undefined;
|
|
546
|
+
region?: "asc" | "desc" | undefined;
|
|
547
|
+
technology?: "asc" | "desc" | undefined;
|
|
548
|
+
version?: "asc" | "desc" | undefined;
|
|
549
|
+
createdAt?: "asc" | "desc" | undefined;
|
|
550
|
+
updatedAt?: "asc" | "desc" | undefined;
|
|
551
|
+
id?: "asc" | "desc" | undefined;
|
|
552
|
+
deletedAt?: "asc" | "desc" | undefined;
|
|
553
|
+
} | undefined;
|
|
554
|
+
pageSize?: number | undefined;
|
|
555
|
+
tagFilters?: ComponentTagFilters | undefined;
|
|
556
|
+
selectTags?: boolean | undefined;
|
|
557
|
+
select?: ("type" | "integrationId" | "uniqueIdentifier" | "region" | "technology" | "version" | "createdAt" | "updatedAt" | "id" | "deletedAt")[] | undefined;
|
|
558
|
+
pageToken?: string | undefined;
|
|
559
|
+
}, {
|
|
560
|
+
filter?: ComponentQueryFilter | undefined;
|
|
561
|
+
sort?: {
|
|
562
|
+
type?: "asc" | "desc" | undefined;
|
|
563
|
+
integrationId?: "asc" | "desc" | undefined;
|
|
564
|
+
uniqueIdentifier?: "asc" | "desc" | undefined;
|
|
565
|
+
region?: "asc" | "desc" | undefined;
|
|
566
|
+
technology?: "asc" | "desc" | undefined;
|
|
567
|
+
version?: "asc" | "desc" | undefined;
|
|
568
|
+
createdAt?: "asc" | "desc" | undefined;
|
|
569
|
+
updatedAt?: "asc" | "desc" | undefined;
|
|
570
|
+
id?: "asc" | "desc" | undefined;
|
|
571
|
+
deletedAt?: "asc" | "desc" | undefined;
|
|
572
|
+
} | undefined;
|
|
573
|
+
pageSize?: number | undefined;
|
|
574
|
+
tagFilters?: ComponentTagFilters | undefined;
|
|
575
|
+
selectTags?: boolean | undefined;
|
|
576
|
+
select?: ("type" | "integrationId" | "uniqueIdentifier" | "region" | "technology" | "version" | "createdAt" | "updatedAt" | "id" | "deletedAt")[] | undefined;
|
|
577
|
+
pageToken?: string | undefined;
|
|
578
|
+
}>;
|
|
579
|
+
export {};
|