@standards-kit/conform 0.1.3 → 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.
Files changed (90) hide show
  1. package/dist/{chunk-PZ2NVKI7.js → chunk-FJZMUGYW.js} +30 -13
  2. package/dist/chunk-FJZMUGYW.js.map +1 -0
  3. package/dist/chunk-O745CMWG.js +29 -0
  4. package/dist/chunk-O745CMWG.js.map +1 -0
  5. package/dist/chunk-RHM53NLG.js +49 -0
  6. package/dist/chunk-RHM53NLG.js.map +1 -0
  7. package/dist/{chunk-RXA4FO7L.js → chunk-YKKWXHYS.js} +13 -9
  8. package/dist/chunk-YKKWXHYS.js.map +1 -0
  9. package/dist/cli/index.d.ts +3 -0
  10. package/dist/cli/process.d.ts +2 -0
  11. package/dist/cli/utils.d.ts +19 -0
  12. package/dist/cli/validate.d.ts +2 -0
  13. package/dist/cli.js +3905 -3875
  14. package/dist/cli.js.map +1 -1
  15. package/dist/{cloudwatch-KSZ4A256.js → cloudwatch-3LTDYG6G.js} +6 -10
  16. package/dist/cloudwatch-3LTDYG6G.js.map +1 -0
  17. package/dist/constants.d.ts +69 -0
  18. package/dist/core/schema.d.ts +170 -1684
  19. package/dist/{core-KB2W6SE2.js → core-LFX2BFLG.js} +3 -2
  20. package/dist/{dynamodb-5KVESCVJ.js → dynamodb-HQH3IMAI.js} +6 -10
  21. package/dist/dynamodb-HQH3IMAI.js.map +1 -0
  22. package/dist/{ec2-HKPE6GZV.js → ec2-AEPT735A.js} +6 -10
  23. package/dist/ec2-AEPT735A.js.map +1 -0
  24. package/dist/{ecs-OS3NJZTA.js → ecs-UHKCH5A7.js} +6 -10
  25. package/dist/ecs-UHKCH5A7.js.map +1 -0
  26. package/dist/{elasticache-7TCRHYYM.js → elasticache-5Y6K7GKJ.js} +6 -10
  27. package/dist/elasticache-5Y6K7GKJ.js.map +1 -0
  28. package/dist/{elb-PEDLXW5R.js → elb-CN6ELVM5.js} +6 -10
  29. package/dist/elb-CN6ELVM5.js.map +1 -0
  30. package/dist/{iam-7H5HFWVQ.js → iam-YXMHK2MV.js} +6 -2
  31. package/dist/iam-YXMHK2MV.js.map +1 -0
  32. package/dist/index.d.ts +1 -1
  33. package/dist/index.js +93 -121
  34. package/dist/index.js.map +1 -1
  35. package/dist/infra/checkers/client-factory.d.ts +45 -0
  36. package/dist/infra/schemas.d.ts +41 -533
  37. package/dist/{infra-ZQRXX7AW.js → infra-RFEWGWPW.js} +20 -18
  38. package/dist/{infra-ZQRXX7AW.js.map → infra-RFEWGWPW.js.map} +1 -1
  39. package/dist/{lambda-NFB5UILT.js → lambda-YTJOCYV5.js} +6 -10
  40. package/dist/lambda-YTJOCYV5.js.map +1 -0
  41. package/dist/mcp/standards/parser.d.ts +2 -14
  42. package/dist/{mcp-WXYRFNEV.js → mcp-T2JFU4E2.js} +4 -3
  43. package/dist/{mcp-WXYRFNEV.js.map → mcp-T2JFU4E2.js.map} +1 -1
  44. package/dist/projects/tier-loader.d.ts +10 -3
  45. package/dist/projects/types.d.ts +4 -4
  46. package/dist/{rds-KLG5O5SI.js → rds-GZ5RVPIU.js} +6 -10
  47. package/dist/rds-GZ5RVPIU.js.map +1 -0
  48. package/dist/{registry-7CDIMOLZ.js → registry-J2LVW3M2.js} +3 -2
  49. package/dist/{s3-2DH7PRVR.js → s3-53UELUWT.js} +16 -12
  50. package/dist/s3-53UELUWT.js.map +1 -0
  51. package/dist/s3-S4GXNR7H.js +53 -0
  52. package/dist/s3-S4GXNR7H.js.map +1 -0
  53. package/dist/{scan-IKEHLZXV.js → scan-BZH5IR3Z.js} +4 -3
  54. package/dist/scan-BZH5IR3Z.js.map +1 -0
  55. package/dist/{secretsmanager-MOOIHLAO.js → secretsmanager-FJKTPIXI.js} +6 -10
  56. package/dist/secretsmanager-FJKTPIXI.js.map +1 -0
  57. package/dist/{sns-Y36LVTWA.js → sns-RV64OMK2.js} +6 -10
  58. package/dist/sns-RV64OMK2.js.map +1 -0
  59. package/dist/{sqs-RRS3GRHK.js → sqs-MHBW6UFC.js} +6 -10
  60. package/dist/sqs-MHBW6UFC.js.map +1 -0
  61. package/dist/{standards-RXK5G4IG.js → standards-ALMA4VIU.js} +3 -2
  62. package/dist/{sync-XV6XBLVZ.js → sync-EGJ2CSYK.js} +3 -2
  63. package/dist/sync-EGJ2CSYK.js.map +1 -0
  64. package/dist/validate/index.d.ts +1 -1
  65. package/dist/validate/tier.d.ts +3 -0
  66. package/dist/validate/types.d.ts +3 -9
  67. package/dist/{validate-DKEJICCK.js → validate-X4K2SHYT.js} +53 -84
  68. package/dist/validate-X4K2SHYT.js.map +1 -0
  69. package/package.json +10 -16
  70. package/dist/chunk-PZ2NVKI7.js.map +0 -1
  71. package/dist/chunk-RXA4FO7L.js.map +0 -1
  72. package/dist/cloudwatch-KSZ4A256.js.map +0 -1
  73. package/dist/dynamodb-5KVESCVJ.js.map +0 -1
  74. package/dist/ec2-HKPE6GZV.js.map +0 -1
  75. package/dist/ecs-OS3NJZTA.js.map +0 -1
  76. package/dist/elasticache-7TCRHYYM.js.map +0 -1
  77. package/dist/elb-PEDLXW5R.js.map +0 -1
  78. package/dist/iam-7H5HFWVQ.js.map +0 -1
  79. package/dist/lambda-NFB5UILT.js.map +0 -1
  80. package/dist/rds-KLG5O5SI.js.map +0 -1
  81. package/dist/s3-2DH7PRVR.js.map +0 -1
  82. package/dist/scan-IKEHLZXV.js.map +0 -1
  83. package/dist/secretsmanager-MOOIHLAO.js.map +0 -1
  84. package/dist/sns-Y36LVTWA.js.map +0 -1
  85. package/dist/sqs-RRS3GRHK.js.map +0 -1
  86. package/dist/sync-XV6XBLVZ.js.map +0 -1
  87. package/dist/validate-DKEJICCK.js.map +0 -1
  88. /package/dist/{core-KB2W6SE2.js.map → core-LFX2BFLG.js.map} +0 -0
  89. /package/dist/{registry-7CDIMOLZ.js.map → registry-J2LVW3M2.js.map} +0 -0
  90. /package/dist/{standards-RXK5G4IG.js.map → standards-ALMA4VIU.js.map} +0 -0
@@ -8,7 +8,10 @@ import { z } from "zod";
8
8
  /**
9
9
  * Cloud provider schema
10
10
  */
11
- export declare const CloudProviderSchema: z.ZodEnum<["aws", "gcp"]>;
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
- }, "strip", z.ZodTypeAny, {
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
- }, "strip", z.ZodTypeAny, {
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
- /** Cloud provider */
122
- cloud: z.ZodEnum<["aws", "gcp"]>;
123
- /** AWS account ID or GCP project ID */
75
+ cloud: z.ZodEnum<{
76
+ aws: "aws";
77
+ gcp: "gcp";
78
+ }>;
124
79
  id: z.ZodString;
125
- }, "strip", z.ZodTypeAny, {
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
- /** List of resource identifiers (ARNs or GCP resource paths) */
140
- resources: z.ZodArray<z.ZodString, "many">;
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
- /** List of resource identifiers (ARNs or GCP resource paths) */
164
- resources: z.ZodArray<z.ZodString, "many">;
165
- }, "strip", z.ZodTypeAny, {
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
- /** Flat list of resource identifiers */
197
- resources: z.ZodArray<z.ZodString, "many">;
198
- }, "strip", z.ZodTypeAny, {
199
- resources: string[];
200
- version?: 1 | undefined;
201
- project?: string | undefined;
202
- }, {
203
- resources: string[];
204
- version?: 1 | undefined;
205
- project?: string | 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
- /** List of resource identifiers (ARNs or GCP resource paths) */
221
- resources: z.ZodArray<z.ZodString, "many">;
222
- }, "strip", z.ZodTypeAny, {
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
- /** Flat list of resource identifiers */
249
- resources: z.ZodArray<z.ZodString, "many">;
250
- }, "strip", z.ZodTypeAny, {
251
- resources: string[];
252
- version?: 1 | undefined;
253
- project?: string | undefined;
254
- }, {
255
- resources: string[];
256
- version?: 1 | undefined;
257
- project?: string | 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
- }, "strip", z.ZodTypeAny, {
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
- }, "strip", z.ZodTypeAny, {
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
- }, "strip", z.ZodTypeAny, {
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
- }, "strip", z.ZodTypeAny, {
362
- total: number;
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
- }, "strip", z.ZodTypeAny, {
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
- }, "strip", z.ZodTypeAny, {
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
- }, "strip", z.ZodTypeAny, {
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
- }, "strip", z.ZodTypeAny, {
508
- total: number;
509
- missing: number;
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
- }, "strip", z.ZodTypeAny, {
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
- }, "strip", z.ZodTypeAny, {
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
- }, "strip", z.ZodTypeAny, {
684
- type?: string | undefined;
685
- urn?: string | undefined;
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