@standards-kit/conform 0.2.0 → 0.3.0
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/{chunk-YGDEM6K5.js → chunk-FJZMUGYW.js} +13 -10
- package/dist/chunk-FJZMUGYW.js.map +1 -0
- package/dist/{chunk-NADY2H35.js → chunk-YKKWXHYS.js} +2 -2
- package/dist/{chunk-NADY2H35.js.map → chunk-YKKWXHYS.js.map} +1 -1
- package/dist/cli/index.d.ts +3 -0
- package/dist/cli/process.d.ts +2 -0
- package/dist/cli/utils.d.ts +19 -0
- package/dist/cli/validate.d.ts +2 -0
- package/dist/cli.js +3892 -3873
- package/dist/cli.js.map +1 -1
- package/dist/core/schema.d.ts +167 -1709
- package/dist/{core-QRFGIQ42.js → core-LFX2BFLG.js} +2 -2
- package/dist/index.js +3 -5
- package/dist/index.js.map +1 -1
- package/dist/infra/schemas.d.ts +41 -533
- package/dist/{infra-TO54IUSC.js → infra-RFEWGWPW.js} +2 -2
- package/dist/mcp/standards/parser.d.ts +2 -14
- package/dist/{mcp-73FZXT3P.js → mcp-T2JFU4E2.js} +3 -3
- package/dist/{registry-JRCQAIHR.js → registry-J2LVW3M2.js} +2 -2
- package/dist/{scan-RHQWHASY.js → scan-BZH5IR3Z.js} +3 -3
- package/dist/scan-BZH5IR3Z.js.map +1 -0
- package/dist/{standards-XAZKTKYJ.js → standards-ALMA4VIU.js} +2 -2
- package/dist/{sync-P3UZECLW.js → sync-EGJ2CSYK.js} +2 -2
- package/dist/sync-EGJ2CSYK.js.map +1 -0
- package/dist/{validate-J5E336GX.js → validate-X4K2SHYT.js} +4 -4
- package/dist/{validate-J5E336GX.js.map → validate-X4K2SHYT.js.map} +1 -1
- package/package.json +10 -6
- package/dist/chunk-YGDEM6K5.js.map +0 -1
- package/dist/scan-RHQWHASY.js.map +0 -1
- package/dist/sync-P3UZECLW.js.map +0 -1
- /package/dist/{core-QRFGIQ42.js.map → core-LFX2BFLG.js.map} +0 -0
- /package/dist/{infra-TO54IUSC.js.map → infra-RFEWGWPW.js.map} +0 -0
- /package/dist/{mcp-73FZXT3P.js.map → mcp-T2JFU4E2.js.map} +0 -0
- /package/dist/{registry-JRCQAIHR.js.map → registry-J2LVW3M2.js.map} +0 -0
- /package/dist/{standards-XAZKTKYJ.js.map → standards-ALMA4VIU.js.map} +0 -0
package/dist/infra/schemas.d.ts
CHANGED
|
@@ -8,7 +8,10 @@ import { z } from "zod";
|
|
|
8
8
|
/**
|
|
9
9
|
* Cloud provider schema
|
|
10
10
|
*/
|
|
11
|
-
export declare const CloudProviderSchema: z.ZodEnum<
|
|
11
|
+
export declare const CloudProviderSchema: z.ZodEnum<{
|
|
12
|
+
aws: "aws";
|
|
13
|
+
gcp: "gcp";
|
|
14
|
+
}>;
|
|
12
15
|
export type CloudProvider = z.infer<typeof CloudProviderSchema>;
|
|
13
16
|
/**
|
|
14
17
|
* Account key schema - format: "provider:accountId"
|
|
@@ -27,41 +30,15 @@ export type Arn = z.infer<typeof ArnSchema>;
|
|
|
27
30
|
* Parsed ARN schema - components extracted from an ARN
|
|
28
31
|
*/
|
|
29
32
|
export declare const ParsedArnSchema: z.ZodObject<{
|
|
30
|
-
/** Cloud provider (always "aws" for ARNs) */
|
|
31
33
|
cloud: z.ZodLiteral<"aws">;
|
|
32
|
-
/** AWS partition (aws, aws-cn, aws-us-gov) */
|
|
33
34
|
partition: z.ZodString;
|
|
34
|
-
/** AWS service (s3, lambda, rds, etc.) */
|
|
35
35
|
service: z.ZodString;
|
|
36
|
-
/** AWS region (empty for global services like S3, IAM) */
|
|
37
36
|
region: z.ZodString;
|
|
38
|
-
/** AWS account ID (empty for S3 buckets) */
|
|
39
37
|
accountId: z.ZodString;
|
|
40
|
-
/** Resource type (e.g., function, table, bucket) */
|
|
41
38
|
resourceType: z.ZodString;
|
|
42
|
-
/** Resource name/identifier */
|
|
43
39
|
resourceId: z.ZodString;
|
|
44
|
-
/** Original ARN string */
|
|
45
40
|
raw: z.ZodString;
|
|
46
|
-
},
|
|
47
|
-
region: string;
|
|
48
|
-
cloud: "aws";
|
|
49
|
-
partition: string;
|
|
50
|
-
service: string;
|
|
51
|
-
accountId: string;
|
|
52
|
-
resourceType: string;
|
|
53
|
-
resourceId: string;
|
|
54
|
-
raw: string;
|
|
55
|
-
}, {
|
|
56
|
-
region: string;
|
|
57
|
-
cloud: "aws";
|
|
58
|
-
partition: string;
|
|
59
|
-
service: string;
|
|
60
|
-
accountId: string;
|
|
61
|
-
resourceType: string;
|
|
62
|
-
resourceId: string;
|
|
63
|
-
raw: string;
|
|
64
|
-
}>;
|
|
41
|
+
}, z.core.$strip>;
|
|
65
42
|
export type ParsedArn = z.infer<typeof ParsedArnSchema>;
|
|
66
43
|
/**
|
|
67
44
|
* GCP resource path schema - validates GCP resource path format
|
|
@@ -77,74 +54,38 @@ export type GcpResourcePath = z.infer<typeof GcpResourcePathSchema>;
|
|
|
77
54
|
* Parsed GCP resource schema - components extracted from a GCP resource path
|
|
78
55
|
*/
|
|
79
56
|
export declare const ParsedGcpResourceSchema: z.ZodObject<{
|
|
80
|
-
/** Cloud provider (always "gcp" for GCP resources) */
|
|
81
57
|
cloud: z.ZodLiteral<"gcp">;
|
|
82
|
-
/** GCP project ID */
|
|
83
58
|
project: z.ZodString;
|
|
84
|
-
/** GCP service (run, iam, secretmanager, artifactregistry, etc.) */
|
|
85
59
|
service: z.ZodString;
|
|
86
|
-
/** Location/region (us-central1, global, etc.) */
|
|
87
60
|
location: z.ZodString;
|
|
88
|
-
/** Resource type (services, serviceAccounts, secrets, repositories, etc.) */
|
|
89
61
|
resourceType: z.ZodString;
|
|
90
|
-
/** Resource name/ID */
|
|
91
62
|
resourceId: z.ZodString;
|
|
92
|
-
/** Original resource path */
|
|
93
63
|
raw: z.ZodString;
|
|
94
|
-
},
|
|
95
|
-
project: string;
|
|
96
|
-
cloud: "gcp";
|
|
97
|
-
service: string;
|
|
98
|
-
resourceType: string;
|
|
99
|
-
resourceId: string;
|
|
100
|
-
raw: string;
|
|
101
|
-
location: string;
|
|
102
|
-
}, {
|
|
103
|
-
project: string;
|
|
104
|
-
cloud: "gcp";
|
|
105
|
-
service: string;
|
|
106
|
-
resourceType: string;
|
|
107
|
-
resourceId: string;
|
|
108
|
-
raw: string;
|
|
109
|
-
location: string;
|
|
110
|
-
}>;
|
|
64
|
+
}, z.core.$strip>;
|
|
111
65
|
export type ParsedGcpResource = z.infer<typeof ParsedGcpResourceSchema>;
|
|
112
66
|
/**
|
|
113
67
|
* Generic resource identifier - can be AWS ARN or GCP resource path
|
|
114
68
|
*/
|
|
115
|
-
export declare const ResourceIdentifierSchema: z.ZodUnion<[z.ZodString, z.ZodString]>;
|
|
69
|
+
export declare const ResourceIdentifierSchema: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
116
70
|
export type ResourceIdentifier = z.infer<typeof ResourceIdentifierSchema>;
|
|
117
71
|
/**
|
|
118
72
|
* Account identifier schema - parsed from account key
|
|
119
73
|
*/
|
|
120
74
|
export declare const AccountIdSchema: z.ZodObject<{
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
75
|
+
cloud: z.ZodEnum<{
|
|
76
|
+
aws: "aws";
|
|
77
|
+
gcp: "gcp";
|
|
78
|
+
}>;
|
|
124
79
|
id: z.ZodString;
|
|
125
|
-
},
|
|
126
|
-
id: string;
|
|
127
|
-
cloud: "aws" | "gcp";
|
|
128
|
-
}, {
|
|
129
|
-
id: string;
|
|
130
|
-
cloud: "aws" | "gcp";
|
|
131
|
-
}>;
|
|
80
|
+
}, z.core.$strip>;
|
|
132
81
|
export type AccountId = z.infer<typeof AccountIdSchema>;
|
|
133
82
|
/**
|
|
134
83
|
* Account entry in a multi-account manifest
|
|
135
84
|
*/
|
|
136
85
|
export declare const ManifestAccountSchema: z.ZodObject<{
|
|
137
|
-
/** Optional human-readable alias for this account */
|
|
138
86
|
alias: z.ZodOptional<z.ZodString>;
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
}, "strip", z.ZodTypeAny, {
|
|
142
|
-
resources: string[];
|
|
143
|
-
alias?: string | undefined;
|
|
144
|
-
}, {
|
|
145
|
-
resources: string[];
|
|
146
|
-
alias?: string | undefined;
|
|
147
|
-
}>;
|
|
87
|
+
resources: z.ZodArray<z.ZodString>;
|
|
88
|
+
}, z.core.$strip>;
|
|
148
89
|
export type ManifestAccount = z.infer<typeof ManifestAccountSchema>;
|
|
149
90
|
/**
|
|
150
91
|
* V2 Multi-account manifest schema
|
|
@@ -152,471 +93,120 @@ export type ManifestAccount = z.infer<typeof ManifestAccountSchema>;
|
|
|
152
93
|
* Resources are grouped by cloud account (AWS account ID or GCP project ID)
|
|
153
94
|
*/
|
|
154
95
|
export declare const MultiAccountManifestSchema: z.ZodObject<{
|
|
155
|
-
/** Manifest version - must be 2 for multi-account format */
|
|
156
96
|
version: z.ZodLiteral<2>;
|
|
157
|
-
/** Optional project name */
|
|
158
97
|
project: z.ZodOptional<z.ZodString>;
|
|
159
|
-
/** Resources grouped by account key (e.g., "aws:123456789012", "gcp:my-project") */
|
|
160
98
|
accounts: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
161
|
-
/** Optional human-readable alias for this account */
|
|
162
99
|
alias: z.ZodOptional<z.ZodString>;
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
resources: string[];
|
|
167
|
-
alias?: string | undefined;
|
|
168
|
-
}, {
|
|
169
|
-
resources: string[];
|
|
170
|
-
alias?: string | undefined;
|
|
171
|
-
}>>;
|
|
172
|
-
}, "strip", z.ZodTypeAny, {
|
|
173
|
-
version: 2;
|
|
174
|
-
accounts: Record<string, {
|
|
175
|
-
resources: string[];
|
|
176
|
-
alias?: string | undefined;
|
|
177
|
-
}>;
|
|
178
|
-
project?: string | undefined;
|
|
179
|
-
}, {
|
|
180
|
-
version: 2;
|
|
181
|
-
accounts: Record<string, {
|
|
182
|
-
resources: string[];
|
|
183
|
-
alias?: string | undefined;
|
|
184
|
-
}>;
|
|
185
|
-
project?: string | undefined;
|
|
186
|
-
}>;
|
|
100
|
+
resources: z.ZodArray<z.ZodString>;
|
|
101
|
+
}, z.core.$strip>>;
|
|
102
|
+
}, z.core.$strip>;
|
|
187
103
|
export type MultiAccountManifest = z.infer<typeof MultiAccountManifestSchema>;
|
|
188
104
|
/**
|
|
189
105
|
* Legacy manifest schema (v1) - flat array of resources
|
|
190
106
|
*/
|
|
191
107
|
export declare const LegacyManifestSchema: z.ZodObject<{
|
|
192
|
-
/** Optional manifest version (1 or undefined for legacy) */
|
|
193
108
|
version: z.ZodOptional<z.ZodLiteral<1>>;
|
|
194
|
-
/** Optional project name */
|
|
195
109
|
project: z.ZodOptional<z.ZodString>;
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
}, "strip", z.ZodTypeAny, {
|
|
199
|
-
resources: string[];
|
|
200
|
-
project?: string | undefined;
|
|
201
|
-
version?: 1 | undefined;
|
|
202
|
-
}, {
|
|
203
|
-
resources: string[];
|
|
204
|
-
project?: string | undefined;
|
|
205
|
-
version?: 1 | undefined;
|
|
206
|
-
}>;
|
|
110
|
+
resources: z.ZodArray<z.ZodString>;
|
|
111
|
+
}, z.core.$strip>;
|
|
207
112
|
export type LegacyManifest = z.infer<typeof LegacyManifestSchema>;
|
|
208
113
|
/**
|
|
209
114
|
* Any manifest schema - accepts either v1 or v2 format
|
|
210
115
|
*/
|
|
211
|
-
export declare const ManifestSchema: z.ZodUnion<[z.ZodObject<{
|
|
212
|
-
/** Manifest version - must be 2 for multi-account format */
|
|
116
|
+
export declare const ManifestSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
213
117
|
version: z.ZodLiteral<2>;
|
|
214
|
-
/** Optional project name */
|
|
215
118
|
project: z.ZodOptional<z.ZodString>;
|
|
216
|
-
/** Resources grouped by account key (e.g., "aws:123456789012", "gcp:my-project") */
|
|
217
119
|
accounts: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
218
|
-
/** Optional human-readable alias for this account */
|
|
219
120
|
alias: z.ZodOptional<z.ZodString>;
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
resources: string[];
|
|
224
|
-
alias?: string | undefined;
|
|
225
|
-
}, {
|
|
226
|
-
resources: string[];
|
|
227
|
-
alias?: string | undefined;
|
|
228
|
-
}>>;
|
|
229
|
-
}, "strip", z.ZodTypeAny, {
|
|
230
|
-
version: 2;
|
|
231
|
-
accounts: Record<string, {
|
|
232
|
-
resources: string[];
|
|
233
|
-
alias?: string | undefined;
|
|
234
|
-
}>;
|
|
235
|
-
project?: string | undefined;
|
|
236
|
-
}, {
|
|
237
|
-
version: 2;
|
|
238
|
-
accounts: Record<string, {
|
|
239
|
-
resources: string[];
|
|
240
|
-
alias?: string | undefined;
|
|
241
|
-
}>;
|
|
242
|
-
project?: string | undefined;
|
|
243
|
-
}>, z.ZodObject<{
|
|
244
|
-
/** Optional manifest version (1 or undefined for legacy) */
|
|
121
|
+
resources: z.ZodArray<z.ZodString>;
|
|
122
|
+
}, z.core.$strip>>;
|
|
123
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
245
124
|
version: z.ZodOptional<z.ZodLiteral<1>>;
|
|
246
|
-
/** Optional project name */
|
|
247
125
|
project: z.ZodOptional<z.ZodString>;
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
}, "strip", z.ZodTypeAny, {
|
|
251
|
-
resources: string[];
|
|
252
|
-
project?: string | undefined;
|
|
253
|
-
version?: 1 | undefined;
|
|
254
|
-
}, {
|
|
255
|
-
resources: string[];
|
|
256
|
-
project?: string | undefined;
|
|
257
|
-
version?: 1 | undefined;
|
|
258
|
-
}>]>;
|
|
126
|
+
resources: z.ZodArray<z.ZodString>;
|
|
127
|
+
}, z.core.$strip>]>;
|
|
259
128
|
export type Manifest = z.infer<typeof ManifestSchema>;
|
|
260
129
|
/**
|
|
261
130
|
* Result of checking a single resource
|
|
262
131
|
*/
|
|
263
132
|
export declare const ResourceCheckResultSchema: z.ZodObject<{
|
|
264
|
-
/** The resource ARN or GCP path */
|
|
265
133
|
arn: z.ZodString;
|
|
266
|
-
/** Whether the resource exists */
|
|
267
134
|
exists: z.ZodBoolean;
|
|
268
|
-
/** Error message if check failed */
|
|
269
135
|
error: z.ZodOptional<z.ZodString>;
|
|
270
|
-
/** Service name (e.g., s3, lambda, run) */
|
|
271
136
|
service: z.ZodString;
|
|
272
|
-
/** Resource type (e.g., bucket, function) */
|
|
273
137
|
resourceType: z.ZodString;
|
|
274
|
-
/** Resource identifier */
|
|
275
138
|
resourceId: z.ZodString;
|
|
276
|
-
},
|
|
277
|
-
exists: boolean;
|
|
278
|
-
service: string;
|
|
279
|
-
resourceType: string;
|
|
280
|
-
resourceId: string;
|
|
281
|
-
arn: string;
|
|
282
|
-
error?: string | undefined;
|
|
283
|
-
}, {
|
|
284
|
-
exists: boolean;
|
|
285
|
-
service: string;
|
|
286
|
-
resourceType: string;
|
|
287
|
-
resourceId: string;
|
|
288
|
-
arn: string;
|
|
289
|
-
error?: string | undefined;
|
|
290
|
-
}>;
|
|
139
|
+
}, z.core.$strip>;
|
|
291
140
|
export type ResourceCheckResult = z.infer<typeof ResourceCheckResultSchema>;
|
|
292
141
|
/**
|
|
293
142
|
* Scan summary statistics
|
|
294
143
|
*/
|
|
295
144
|
export declare const InfraScanSummarySchema: z.ZodObject<{
|
|
296
|
-
/** Total resources checked */
|
|
297
145
|
total: z.ZodNumber;
|
|
298
|
-
/** Resources that exist */
|
|
299
146
|
found: z.ZodNumber;
|
|
300
|
-
/** Resources that don't exist */
|
|
301
147
|
missing: z.ZodNumber;
|
|
302
|
-
/** Resources that couldn't be checked (errors) */
|
|
303
148
|
errors: z.ZodNumber;
|
|
304
|
-
},
|
|
305
|
-
total: number;
|
|
306
|
-
missing: number;
|
|
307
|
-
found: number;
|
|
308
|
-
errors: number;
|
|
309
|
-
}, {
|
|
310
|
-
total: number;
|
|
311
|
-
missing: number;
|
|
312
|
-
found: number;
|
|
313
|
-
errors: number;
|
|
314
|
-
}>;
|
|
149
|
+
}, z.core.$strip>;
|
|
315
150
|
export type InfraScanSummary = z.infer<typeof InfraScanSummarySchema>;
|
|
316
151
|
/**
|
|
317
152
|
* Per-account scan results
|
|
318
153
|
*/
|
|
319
154
|
declare const AccountScanResultSchema: z.ZodObject<{
|
|
320
|
-
/** Account alias if provided */
|
|
321
155
|
alias: z.ZodOptional<z.ZodString>;
|
|
322
|
-
/** Individual resource check results */
|
|
323
156
|
results: z.ZodArray<z.ZodObject<{
|
|
324
|
-
/** The resource ARN or GCP path */
|
|
325
157
|
arn: z.ZodString;
|
|
326
|
-
/** Whether the resource exists */
|
|
327
158
|
exists: z.ZodBoolean;
|
|
328
|
-
/** Error message if check failed */
|
|
329
159
|
error: z.ZodOptional<z.ZodString>;
|
|
330
|
-
/** Service name (e.g., s3, lambda, run) */
|
|
331
160
|
service: z.ZodString;
|
|
332
|
-
/** Resource type (e.g., bucket, function) */
|
|
333
161
|
resourceType: z.ZodString;
|
|
334
|
-
/** Resource identifier */
|
|
335
162
|
resourceId: z.ZodString;
|
|
336
|
-
},
|
|
337
|
-
exists: boolean;
|
|
338
|
-
service: string;
|
|
339
|
-
resourceType: string;
|
|
340
|
-
resourceId: string;
|
|
341
|
-
arn: string;
|
|
342
|
-
error?: string | undefined;
|
|
343
|
-
}, {
|
|
344
|
-
exists: boolean;
|
|
345
|
-
service: string;
|
|
346
|
-
resourceType: string;
|
|
347
|
-
resourceId: string;
|
|
348
|
-
arn: string;
|
|
349
|
-
error?: string | undefined;
|
|
350
|
-
}>, "many">;
|
|
351
|
-
/** Summary statistics for this account */
|
|
163
|
+
}, z.core.$strip>>;
|
|
352
164
|
summary: z.ZodObject<{
|
|
353
|
-
/** Total resources checked */
|
|
354
165
|
total: z.ZodNumber;
|
|
355
|
-
/** Resources that exist */
|
|
356
166
|
found: z.ZodNumber;
|
|
357
|
-
/** Resources that don't exist */
|
|
358
167
|
missing: z.ZodNumber;
|
|
359
|
-
/** Resources that couldn't be checked (errors) */
|
|
360
168
|
errors: z.ZodNumber;
|
|
361
|
-
},
|
|
362
|
-
|
|
363
|
-
missing: number;
|
|
364
|
-
found: number;
|
|
365
|
-
errors: number;
|
|
366
|
-
}, {
|
|
367
|
-
total: number;
|
|
368
|
-
missing: number;
|
|
369
|
-
found: number;
|
|
370
|
-
errors: number;
|
|
371
|
-
}>;
|
|
372
|
-
}, "strip", z.ZodTypeAny, {
|
|
373
|
-
summary: {
|
|
374
|
-
total: number;
|
|
375
|
-
missing: number;
|
|
376
|
-
found: number;
|
|
377
|
-
errors: number;
|
|
378
|
-
};
|
|
379
|
-
results: {
|
|
380
|
-
exists: boolean;
|
|
381
|
-
service: string;
|
|
382
|
-
resourceType: string;
|
|
383
|
-
resourceId: string;
|
|
384
|
-
arn: string;
|
|
385
|
-
error?: string | undefined;
|
|
386
|
-
}[];
|
|
387
|
-
alias?: string | undefined;
|
|
388
|
-
}, {
|
|
389
|
-
summary: {
|
|
390
|
-
total: number;
|
|
391
|
-
missing: number;
|
|
392
|
-
found: number;
|
|
393
|
-
errors: number;
|
|
394
|
-
};
|
|
395
|
-
results: {
|
|
396
|
-
exists: boolean;
|
|
397
|
-
service: string;
|
|
398
|
-
resourceType: string;
|
|
399
|
-
resourceId: string;
|
|
400
|
-
arn: string;
|
|
401
|
-
error?: string | undefined;
|
|
402
|
-
}[];
|
|
403
|
-
alias?: string | undefined;
|
|
404
|
-
}>;
|
|
169
|
+
}, z.core.$strip>;
|
|
170
|
+
}, z.core.$strip>;
|
|
405
171
|
export type AccountScanResult = z.infer<typeof AccountScanResultSchema>;
|
|
406
172
|
/**
|
|
407
173
|
* Full infrastructure scan result
|
|
408
174
|
*/
|
|
409
175
|
export declare const InfraScanResultSchema: z.ZodObject<{
|
|
410
|
-
/** Path to the manifest file */
|
|
411
176
|
manifest: z.ZodString;
|
|
412
|
-
/** Project name */
|
|
413
177
|
project: z.ZodOptional<z.ZodString>;
|
|
414
|
-
/** Individual resource check results */
|
|
415
178
|
results: z.ZodArray<z.ZodObject<{
|
|
416
|
-
/** The resource ARN or GCP path */
|
|
417
179
|
arn: z.ZodString;
|
|
418
|
-
/** Whether the resource exists */
|
|
419
180
|
exists: z.ZodBoolean;
|
|
420
|
-
/** Error message if check failed */
|
|
421
181
|
error: z.ZodOptional<z.ZodString>;
|
|
422
|
-
/** Service name (e.g., s3, lambda, run) */
|
|
423
182
|
service: z.ZodString;
|
|
424
|
-
/** Resource type (e.g., bucket, function) */
|
|
425
183
|
resourceType: z.ZodString;
|
|
426
|
-
/** Resource identifier */
|
|
427
184
|
resourceId: z.ZodString;
|
|
428
|
-
},
|
|
429
|
-
exists: boolean;
|
|
430
|
-
service: string;
|
|
431
|
-
resourceType: string;
|
|
432
|
-
resourceId: string;
|
|
433
|
-
arn: string;
|
|
434
|
-
error?: string | undefined;
|
|
435
|
-
}, {
|
|
436
|
-
exists: boolean;
|
|
437
|
-
service: string;
|
|
438
|
-
resourceType: string;
|
|
439
|
-
resourceId: string;
|
|
440
|
-
arn: string;
|
|
441
|
-
error?: string | undefined;
|
|
442
|
-
}>, "many">;
|
|
443
|
-
/** Summary statistics */
|
|
185
|
+
}, z.core.$strip>>;
|
|
444
186
|
summary: z.ZodObject<{
|
|
445
|
-
/** Total resources checked */
|
|
446
187
|
total: z.ZodNumber;
|
|
447
|
-
/** Resources that exist */
|
|
448
188
|
found: z.ZodNumber;
|
|
449
|
-
/** Resources that don't exist */
|
|
450
189
|
missing: z.ZodNumber;
|
|
451
|
-
/** Resources that couldn't be checked (errors) */
|
|
452
190
|
errors: z.ZodNumber;
|
|
453
|
-
},
|
|
454
|
-
total: number;
|
|
455
|
-
missing: number;
|
|
456
|
-
found: number;
|
|
457
|
-
errors: number;
|
|
458
|
-
}, {
|
|
459
|
-
total: number;
|
|
460
|
-
missing: number;
|
|
461
|
-
found: number;
|
|
462
|
-
errors: number;
|
|
463
|
-
}>;
|
|
464
|
-
/** Per-account results (only present for multi-account manifests) */
|
|
191
|
+
}, z.core.$strip>;
|
|
465
192
|
accountResults: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
466
|
-
/** Account alias if provided */
|
|
467
193
|
alias: z.ZodOptional<z.ZodString>;
|
|
468
|
-
/** Individual resource check results */
|
|
469
194
|
results: z.ZodArray<z.ZodObject<{
|
|
470
|
-
/** The resource ARN or GCP path */
|
|
471
195
|
arn: z.ZodString;
|
|
472
|
-
/** Whether the resource exists */
|
|
473
196
|
exists: z.ZodBoolean;
|
|
474
|
-
/** Error message if check failed */
|
|
475
197
|
error: z.ZodOptional<z.ZodString>;
|
|
476
|
-
/** Service name (e.g., s3, lambda, run) */
|
|
477
198
|
service: z.ZodString;
|
|
478
|
-
/** Resource type (e.g., bucket, function) */
|
|
479
199
|
resourceType: z.ZodString;
|
|
480
|
-
/** Resource identifier */
|
|
481
200
|
resourceId: z.ZodString;
|
|
482
|
-
},
|
|
483
|
-
exists: boolean;
|
|
484
|
-
service: string;
|
|
485
|
-
resourceType: string;
|
|
486
|
-
resourceId: string;
|
|
487
|
-
arn: string;
|
|
488
|
-
error?: string | undefined;
|
|
489
|
-
}, {
|
|
490
|
-
exists: boolean;
|
|
491
|
-
service: string;
|
|
492
|
-
resourceType: string;
|
|
493
|
-
resourceId: string;
|
|
494
|
-
arn: string;
|
|
495
|
-
error?: string | undefined;
|
|
496
|
-
}>, "many">;
|
|
497
|
-
/** Summary statistics for this account */
|
|
201
|
+
}, z.core.$strip>>;
|
|
498
202
|
summary: z.ZodObject<{
|
|
499
|
-
/** Total resources checked */
|
|
500
203
|
total: z.ZodNumber;
|
|
501
|
-
/** Resources that exist */
|
|
502
204
|
found: z.ZodNumber;
|
|
503
|
-
/** Resources that don't exist */
|
|
504
205
|
missing: z.ZodNumber;
|
|
505
|
-
/** Resources that couldn't be checked (errors) */
|
|
506
206
|
errors: z.ZodNumber;
|
|
507
|
-
},
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
found: number;
|
|
511
|
-
errors: number;
|
|
512
|
-
}, {
|
|
513
|
-
total: number;
|
|
514
|
-
missing: number;
|
|
515
|
-
found: number;
|
|
516
|
-
errors: number;
|
|
517
|
-
}>;
|
|
518
|
-
}, "strip", z.ZodTypeAny, {
|
|
519
|
-
summary: {
|
|
520
|
-
total: number;
|
|
521
|
-
missing: number;
|
|
522
|
-
found: number;
|
|
523
|
-
errors: number;
|
|
524
|
-
};
|
|
525
|
-
results: {
|
|
526
|
-
exists: boolean;
|
|
527
|
-
service: string;
|
|
528
|
-
resourceType: string;
|
|
529
|
-
resourceId: string;
|
|
530
|
-
arn: string;
|
|
531
|
-
error?: string | undefined;
|
|
532
|
-
}[];
|
|
533
|
-
alias?: string | undefined;
|
|
534
|
-
}, {
|
|
535
|
-
summary: {
|
|
536
|
-
total: number;
|
|
537
|
-
missing: number;
|
|
538
|
-
found: number;
|
|
539
|
-
errors: number;
|
|
540
|
-
};
|
|
541
|
-
results: {
|
|
542
|
-
exists: boolean;
|
|
543
|
-
service: string;
|
|
544
|
-
resourceType: string;
|
|
545
|
-
resourceId: string;
|
|
546
|
-
arn: string;
|
|
547
|
-
error?: string | undefined;
|
|
548
|
-
}[];
|
|
549
|
-
alias?: string | undefined;
|
|
550
|
-
}>>>;
|
|
551
|
-
}, "strip", z.ZodTypeAny, {
|
|
552
|
-
manifest: string;
|
|
553
|
-
summary: {
|
|
554
|
-
total: number;
|
|
555
|
-
missing: number;
|
|
556
|
-
found: number;
|
|
557
|
-
errors: number;
|
|
558
|
-
};
|
|
559
|
-
results: {
|
|
560
|
-
exists: boolean;
|
|
561
|
-
service: string;
|
|
562
|
-
resourceType: string;
|
|
563
|
-
resourceId: string;
|
|
564
|
-
arn: string;
|
|
565
|
-
error?: string | undefined;
|
|
566
|
-
}[];
|
|
567
|
-
project?: string | undefined;
|
|
568
|
-
accountResults?: Record<string, {
|
|
569
|
-
summary: {
|
|
570
|
-
total: number;
|
|
571
|
-
missing: number;
|
|
572
|
-
found: number;
|
|
573
|
-
errors: number;
|
|
574
|
-
};
|
|
575
|
-
results: {
|
|
576
|
-
exists: boolean;
|
|
577
|
-
service: string;
|
|
578
|
-
resourceType: string;
|
|
579
|
-
resourceId: string;
|
|
580
|
-
arn: string;
|
|
581
|
-
error?: string | undefined;
|
|
582
|
-
}[];
|
|
583
|
-
alias?: string | undefined;
|
|
584
|
-
}> | undefined;
|
|
585
|
-
}, {
|
|
586
|
-
manifest: string;
|
|
587
|
-
summary: {
|
|
588
|
-
total: number;
|
|
589
|
-
missing: number;
|
|
590
|
-
found: number;
|
|
591
|
-
errors: number;
|
|
592
|
-
};
|
|
593
|
-
results: {
|
|
594
|
-
exists: boolean;
|
|
595
|
-
service: string;
|
|
596
|
-
resourceType: string;
|
|
597
|
-
resourceId: string;
|
|
598
|
-
arn: string;
|
|
599
|
-
error?: string | undefined;
|
|
600
|
-
}[];
|
|
601
|
-
project?: string | undefined;
|
|
602
|
-
accountResults?: Record<string, {
|
|
603
|
-
summary: {
|
|
604
|
-
total: number;
|
|
605
|
-
missing: number;
|
|
606
|
-
found: number;
|
|
607
|
-
errors: number;
|
|
608
|
-
};
|
|
609
|
-
results: {
|
|
610
|
-
exists: boolean;
|
|
611
|
-
service: string;
|
|
612
|
-
resourceType: string;
|
|
613
|
-
resourceId: string;
|
|
614
|
-
arn: string;
|
|
615
|
-
error?: string | undefined;
|
|
616
|
-
}[];
|
|
617
|
-
alias?: string | undefined;
|
|
618
|
-
}> | undefined;
|
|
619
|
-
}>;
|
|
207
|
+
}, z.core.$strip>;
|
|
208
|
+
}, z.core.$strip>>>;
|
|
209
|
+
}, z.core.$strip>;
|
|
620
210
|
export type InfraScanResult = z.infer<typeof InfraScanResultSchema>;
|
|
621
211
|
/**
|
|
622
212
|
* Options for programmatic API
|
|
@@ -644,17 +234,7 @@ export declare const PulumiResourceSchema: z.ZodObject<{
|
|
|
644
234
|
type: z.ZodOptional<z.ZodString>;
|
|
645
235
|
inputs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
646
236
|
outputs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
647
|
-
},
|
|
648
|
-
type?: string | undefined;
|
|
649
|
-
urn?: string | undefined;
|
|
650
|
-
inputs?: Record<string, unknown> | undefined;
|
|
651
|
-
outputs?: Record<string, unknown> | undefined;
|
|
652
|
-
}, {
|
|
653
|
-
type?: string | undefined;
|
|
654
|
-
urn?: string | undefined;
|
|
655
|
-
inputs?: Record<string, unknown> | undefined;
|
|
656
|
-
outputs?: Record<string, unknown> | undefined;
|
|
657
|
-
}>;
|
|
237
|
+
}, z.core.$strip>;
|
|
658
238
|
export type PulumiResource = z.infer<typeof PulumiResourceSchema>;
|
|
659
239
|
/**
|
|
660
240
|
* Pulumi stack export schema (simplified)
|
|
@@ -666,87 +246,15 @@ export declare const PulumiStackExportSchema: z.ZodObject<{
|
|
|
666
246
|
time: z.ZodOptional<z.ZodString>;
|
|
667
247
|
magic: z.ZodOptional<z.ZodString>;
|
|
668
248
|
version: z.ZodOptional<z.ZodString>;
|
|
669
|
-
},
|
|
670
|
-
time?: string | undefined;
|
|
671
|
-
version?: string | undefined;
|
|
672
|
-
magic?: string | undefined;
|
|
673
|
-
}, {
|
|
674
|
-
time?: string | undefined;
|
|
675
|
-
version?: string | undefined;
|
|
676
|
-
magic?: string | undefined;
|
|
677
|
-
}>>;
|
|
249
|
+
}, z.core.$strip>>;
|
|
678
250
|
resources: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
679
251
|
urn: z.ZodOptional<z.ZodString>;
|
|
680
252
|
type: z.ZodOptional<z.ZodString>;
|
|
681
253
|
inputs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
682
254
|
outputs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
683
|
-
},
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
inputs?: Record<string, unknown> | undefined;
|
|
687
|
-
outputs?: Record<string, unknown> | undefined;
|
|
688
|
-
}, {
|
|
689
|
-
type?: string | undefined;
|
|
690
|
-
urn?: string | undefined;
|
|
691
|
-
inputs?: Record<string, unknown> | undefined;
|
|
692
|
-
outputs?: Record<string, unknown> | undefined;
|
|
693
|
-
}>, "many">>;
|
|
694
|
-
}, "strip", z.ZodTypeAny, {
|
|
695
|
-
manifest?: {
|
|
696
|
-
time?: string | undefined;
|
|
697
|
-
version?: string | undefined;
|
|
698
|
-
magic?: string | undefined;
|
|
699
|
-
} | undefined;
|
|
700
|
-
resources?: {
|
|
701
|
-
type?: string | undefined;
|
|
702
|
-
urn?: string | undefined;
|
|
703
|
-
inputs?: Record<string, unknown> | undefined;
|
|
704
|
-
outputs?: Record<string, unknown> | undefined;
|
|
705
|
-
}[] | undefined;
|
|
706
|
-
}, {
|
|
707
|
-
manifest?: {
|
|
708
|
-
time?: string | undefined;
|
|
709
|
-
version?: string | undefined;
|
|
710
|
-
magic?: string | undefined;
|
|
711
|
-
} | undefined;
|
|
712
|
-
resources?: {
|
|
713
|
-
type?: string | undefined;
|
|
714
|
-
urn?: string | undefined;
|
|
715
|
-
inputs?: Record<string, unknown> | undefined;
|
|
716
|
-
outputs?: Record<string, unknown> | undefined;
|
|
717
|
-
}[] | undefined;
|
|
718
|
-
}>>;
|
|
719
|
-
}, "strip", z.ZodTypeAny, {
|
|
720
|
-
version?: number | undefined;
|
|
721
|
-
deployment?: {
|
|
722
|
-
manifest?: {
|
|
723
|
-
time?: string | undefined;
|
|
724
|
-
version?: string | undefined;
|
|
725
|
-
magic?: string | undefined;
|
|
726
|
-
} | undefined;
|
|
727
|
-
resources?: {
|
|
728
|
-
type?: string | undefined;
|
|
729
|
-
urn?: string | undefined;
|
|
730
|
-
inputs?: Record<string, unknown> | undefined;
|
|
731
|
-
outputs?: Record<string, unknown> | undefined;
|
|
732
|
-
}[] | undefined;
|
|
733
|
-
} | undefined;
|
|
734
|
-
}, {
|
|
735
|
-
version?: number | undefined;
|
|
736
|
-
deployment?: {
|
|
737
|
-
manifest?: {
|
|
738
|
-
time?: string | undefined;
|
|
739
|
-
version?: string | undefined;
|
|
740
|
-
magic?: string | undefined;
|
|
741
|
-
} | undefined;
|
|
742
|
-
resources?: {
|
|
743
|
-
type?: string | undefined;
|
|
744
|
-
urn?: string | undefined;
|
|
745
|
-
inputs?: Record<string, unknown> | undefined;
|
|
746
|
-
outputs?: Record<string, unknown> | undefined;
|
|
747
|
-
}[] | undefined;
|
|
748
|
-
} | undefined;
|
|
749
|
-
}>;
|
|
255
|
+
}, z.core.$strip>>>;
|
|
256
|
+
}, z.core.$strip>>;
|
|
257
|
+
}, z.core.$strip>;
|
|
750
258
|
export type PulumiStackExport = z.infer<typeof PulumiStackExportSchema>;
|
|
751
259
|
/**
|
|
752
260
|
* Validate an ARN string
|