@greenarmor/ges-core 1.2.8 → 1.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.
@@ -1,6 +1,6 @@
1
1
  import { z } from "zod";
2
2
  export declare const ProjectTypeSchema: z.ZodEnum<["saas", "ai-application", "mcp-server", "blockchain", "wallet", "government-system", "healthcare-system", "event-platform", "photo-storage-platform", "vulnerability-scanner", "generic-web-application", "api-backend", "mobile-application"]>;
3
- export declare const FrameworkNameSchema: z.ZodEnum<["GDPR", "OWASP", "CIS", "NIST", "NIST-800-53", "ISO27001", "ISO27701", "HIPAA"]>;
3
+ export declare const FrameworkNameSchema: z.ZodEnum<["GDPR", "OWASP", "CIS", "NIST", "NIST-800-53", "ISO27001", "ISO27701", "HIPAA", "PRIVACY-CORE", "UK-GDPR", "LGPD", "PDPA-SG", "DPA-PH", "PDPA-TH", "APPI", "PIPA", "PIPL", "PDPO-HK", "PIPEDA", "CPRA", "POPIA", "PDPL-UAE", "PDPL-SA", "DPDPA", "FADP", "PDPA-MY", "PDP-ID", "PDP-VN", "NDPA-NG", "DPA-KE", "PDPA-QA"]>;
4
4
  export declare const DataClassificationSchema: z.ZodEnum<["public", "internal", "confidential", "restricted"]>;
5
5
  export declare const ControlStatusSchema: z.ZodEnum<["pass", "fail", "warning", "not-applicable", "not-implemented"]>;
6
6
  export declare const ReportFormatSchema: z.ZodEnum<["markdown", "html", "pdf"]>;
@@ -20,7 +20,8 @@ export declare const RequirementConfigSchema: z.ZodObject<{
20
20
  export declare const ProjectConfigSchema: z.ZodObject<{
21
21
  project_name: z.ZodString;
22
22
  project_type: z.ZodEnum<["saas", "ai-application", "mcp-server", "blockchain", "wallet", "government-system", "healthcare-system", "event-platform", "photo-storage-platform", "vulnerability-scanner", "generic-web-application", "api-backend", "mobile-application"]>;
23
- frameworks: z.ZodArray<z.ZodEnum<["GDPR", "OWASP", "CIS", "NIST", "NIST-800-53", "ISO27001", "ISO27701", "HIPAA"]>, "many">;
23
+ frameworks: z.ZodArray<z.ZodEnum<["GDPR", "OWASP", "CIS", "NIST", "NIST-800-53", "ISO27001", "ISO27701", "HIPAA", "PRIVACY-CORE", "UK-GDPR", "LGPD", "PDPA-SG", "DPA-PH", "PDPA-TH", "APPI", "PIPA", "PIPL", "PDPO-HK", "PIPEDA", "CPRA", "POPIA", "PDPL-UAE", "PDPL-SA", "DPDPA", "FADP", "PDPA-MY", "PDP-ID", "PDP-VN", "NDPA-NG", "DPA-KE", "PDPA-QA"]>, "many">;
24
+ country: z.ZodOptional<z.ZodString>;
24
25
  requirements: z.ZodObject<{
25
26
  encryption: z.ZodObject<{
26
27
  required: z.ZodBoolean;
@@ -218,42 +219,42 @@ export declare const ProjectConfigSchema: z.ZodObject<{
218
219
  notes?: string | undefined;
219
220
  }>;
220
221
  }, "strip", z.ZodTypeAny, {
221
- encryption: {
222
+ authentication: {
222
223
  required: boolean;
223
224
  level?: "mandatory" | "recommended" | "optional" | undefined;
224
225
  notes?: string | undefined;
225
226
  };
226
- mfa: {
227
+ authorization: {
227
228
  required: boolean;
228
229
  level?: "mandatory" | "recommended" | "optional" | undefined;
229
230
  notes?: string | undefined;
230
231
  };
231
- audit_logs: {
232
+ encryption: {
232
233
  required: boolean;
233
234
  level?: "mandatory" | "recommended" | "optional" | undefined;
234
235
  notes?: string | undefined;
235
236
  };
236
- backups: {
237
+ mfa: {
237
238
  required: boolean;
238
239
  level?: "mandatory" | "recommended" | "optional" | undefined;
239
240
  notes?: string | undefined;
240
241
  };
241
- retention_policy: {
242
+ audit_logs: {
242
243
  required: boolean;
243
244
  level?: "mandatory" | "recommended" | "optional" | undefined;
244
245
  notes?: string | undefined;
245
246
  };
246
- vulnerability_scanning: {
247
+ backups: {
247
248
  required: boolean;
248
249
  level?: "mandatory" | "recommended" | "optional" | undefined;
249
250
  notes?: string | undefined;
250
251
  };
251
- authentication: {
252
+ retention_policy: {
252
253
  required: boolean;
253
254
  level?: "mandatory" | "recommended" | "optional" | undefined;
254
255
  notes?: string | undefined;
255
256
  };
256
- authorization: {
257
+ vulnerability_scanning: {
257
258
  required: boolean;
258
259
  level?: "mandatory" | "recommended" | "optional" | undefined;
259
260
  notes?: string | undefined;
@@ -294,42 +295,42 @@ export declare const ProjectConfigSchema: z.ZodObject<{
294
295
  notes?: string | undefined;
295
296
  };
296
297
  }, {
297
- encryption: {
298
+ authentication: {
298
299
  required: boolean;
299
300
  level?: "mandatory" | "recommended" | "optional" | undefined;
300
301
  notes?: string | undefined;
301
302
  };
302
- mfa: {
303
+ authorization: {
303
304
  required: boolean;
304
305
  level?: "mandatory" | "recommended" | "optional" | undefined;
305
306
  notes?: string | undefined;
306
307
  };
307
- audit_logs: {
308
+ encryption: {
308
309
  required: boolean;
309
310
  level?: "mandatory" | "recommended" | "optional" | undefined;
310
311
  notes?: string | undefined;
311
312
  };
312
- backups: {
313
+ mfa: {
313
314
  required: boolean;
314
315
  level?: "mandatory" | "recommended" | "optional" | undefined;
315
316
  notes?: string | undefined;
316
317
  };
317
- retention_policy: {
318
+ audit_logs: {
318
319
  required: boolean;
319
320
  level?: "mandatory" | "recommended" | "optional" | undefined;
320
321
  notes?: string | undefined;
321
322
  };
322
- vulnerability_scanning: {
323
+ backups: {
323
324
  required: boolean;
324
325
  level?: "mandatory" | "recommended" | "optional" | undefined;
325
326
  notes?: string | undefined;
326
327
  };
327
- authentication: {
328
+ retention_policy: {
328
329
  required: boolean;
329
330
  level?: "mandatory" | "recommended" | "optional" | undefined;
330
331
  notes?: string | undefined;
331
332
  };
332
- authorization: {
333
+ vulnerability_scanning: {
333
334
  required: boolean;
334
335
  level?: "mandatory" | "recommended" | "optional" | undefined;
335
336
  notes?: string | undefined;
@@ -373,46 +374,47 @@ export declare const ProjectConfigSchema: z.ZodObject<{
373
374
  created_at: z.ZodString;
374
375
  version: z.ZodString;
375
376
  }, "strip", z.ZodTypeAny, {
377
+ created_at: string;
376
378
  project_name: string;
377
379
  project_type: "saas" | "ai-application" | "mcp-server" | "blockchain" | "wallet" | "government-system" | "healthcare-system" | "event-platform" | "photo-storage-platform" | "vulnerability-scanner" | "generic-web-application" | "api-backend" | "mobile-application";
378
- frameworks: ("GDPR" | "OWASP" | "CIS" | "NIST" | "NIST-800-53" | "ISO27001" | "ISO27701" | "HIPAA")[];
380
+ frameworks: ("GDPR" | "OWASP" | "CIS" | "NIST" | "NIST-800-53" | "ISO27001" | "ISO27701" | "HIPAA" | "PRIVACY-CORE" | "UK-GDPR" | "LGPD" | "PDPA-SG" | "DPA-PH" | "PDPA-TH" | "APPI" | "PIPA" | "PIPL" | "PDPO-HK" | "PIPEDA" | "CPRA" | "POPIA" | "PDPL-UAE" | "PDPL-SA" | "DPDPA" | "FADP" | "PDPA-MY" | "PDP-ID" | "PDP-VN" | "NDPA-NG" | "DPA-KE" | "PDPA-QA")[];
379
381
  requirements: {
380
- encryption: {
382
+ authentication: {
381
383
  required: boolean;
382
384
  level?: "mandatory" | "recommended" | "optional" | undefined;
383
385
  notes?: string | undefined;
384
386
  };
385
- mfa: {
387
+ authorization: {
386
388
  required: boolean;
387
389
  level?: "mandatory" | "recommended" | "optional" | undefined;
388
390
  notes?: string | undefined;
389
391
  };
390
- audit_logs: {
392
+ encryption: {
391
393
  required: boolean;
392
394
  level?: "mandatory" | "recommended" | "optional" | undefined;
393
395
  notes?: string | undefined;
394
396
  };
395
- backups: {
397
+ mfa: {
396
398
  required: boolean;
397
399
  level?: "mandatory" | "recommended" | "optional" | undefined;
398
400
  notes?: string | undefined;
399
401
  };
400
- retention_policy: {
402
+ audit_logs: {
401
403
  required: boolean;
402
404
  level?: "mandatory" | "recommended" | "optional" | undefined;
403
405
  notes?: string | undefined;
404
406
  };
405
- vulnerability_scanning: {
407
+ backups: {
406
408
  required: boolean;
407
409
  level?: "mandatory" | "recommended" | "optional" | undefined;
408
410
  notes?: string | undefined;
409
411
  };
410
- authentication: {
412
+ retention_policy: {
411
413
  required: boolean;
412
414
  level?: "mandatory" | "recommended" | "optional" | undefined;
413
415
  notes?: string | undefined;
414
416
  };
415
- authorization: {
417
+ vulnerability_scanning: {
416
418
  required: boolean;
417
419
  level?: "mandatory" | "recommended" | "optional" | undefined;
418
420
  notes?: string | undefined;
@@ -453,49 +455,50 @@ export declare const ProjectConfigSchema: z.ZodObject<{
453
455
  notes?: string | undefined;
454
456
  };
455
457
  };
456
- created_at: string;
457
458
  version: string;
459
+ country?: string | undefined;
458
460
  }, {
461
+ created_at: string;
459
462
  project_name: string;
460
463
  project_type: "saas" | "ai-application" | "mcp-server" | "blockchain" | "wallet" | "government-system" | "healthcare-system" | "event-platform" | "photo-storage-platform" | "vulnerability-scanner" | "generic-web-application" | "api-backend" | "mobile-application";
461
- frameworks: ("GDPR" | "OWASP" | "CIS" | "NIST" | "NIST-800-53" | "ISO27001" | "ISO27701" | "HIPAA")[];
464
+ frameworks: ("GDPR" | "OWASP" | "CIS" | "NIST" | "NIST-800-53" | "ISO27001" | "ISO27701" | "HIPAA" | "PRIVACY-CORE" | "UK-GDPR" | "LGPD" | "PDPA-SG" | "DPA-PH" | "PDPA-TH" | "APPI" | "PIPA" | "PIPL" | "PDPO-HK" | "PIPEDA" | "CPRA" | "POPIA" | "PDPL-UAE" | "PDPL-SA" | "DPDPA" | "FADP" | "PDPA-MY" | "PDP-ID" | "PDP-VN" | "NDPA-NG" | "DPA-KE" | "PDPA-QA")[];
462
465
  requirements: {
463
- encryption: {
466
+ authentication: {
464
467
  required: boolean;
465
468
  level?: "mandatory" | "recommended" | "optional" | undefined;
466
469
  notes?: string | undefined;
467
470
  };
468
- mfa: {
471
+ authorization: {
469
472
  required: boolean;
470
473
  level?: "mandatory" | "recommended" | "optional" | undefined;
471
474
  notes?: string | undefined;
472
475
  };
473
- audit_logs: {
476
+ encryption: {
474
477
  required: boolean;
475
478
  level?: "mandatory" | "recommended" | "optional" | undefined;
476
479
  notes?: string | undefined;
477
480
  };
478
- backups: {
481
+ mfa: {
479
482
  required: boolean;
480
483
  level?: "mandatory" | "recommended" | "optional" | undefined;
481
484
  notes?: string | undefined;
482
485
  };
483
- retention_policy: {
486
+ audit_logs: {
484
487
  required: boolean;
485
488
  level?: "mandatory" | "recommended" | "optional" | undefined;
486
489
  notes?: string | undefined;
487
490
  };
488
- vulnerability_scanning: {
491
+ backups: {
489
492
  required: boolean;
490
493
  level?: "mandatory" | "recommended" | "optional" | undefined;
491
494
  notes?: string | undefined;
492
495
  };
493
- authentication: {
496
+ retention_policy: {
494
497
  required: boolean;
495
498
  level?: "mandatory" | "recommended" | "optional" | undefined;
496
499
  notes?: string | undefined;
497
500
  };
498
- authorization: {
501
+ vulnerability_scanning: {
499
502
  required: boolean;
500
503
  level?: "mandatory" | "recommended" | "optional" | undefined;
501
504
  notes?: string | undefined;
@@ -536,8 +539,8 @@ export declare const ProjectConfigSchema: z.ZodObject<{
536
539
  notes?: string | undefined;
537
540
  };
538
541
  };
539
- created_at: string;
540
542
  version: string;
543
+ country?: string | undefined;
541
544
  }>;
542
545
  export declare const ControlCheckSchema: z.ZodObject<{
543
546
  id: z.ZodString;
@@ -560,7 +563,7 @@ export declare const ControlSchema: z.ZodObject<{
560
563
  name: z.ZodString;
561
564
  description: z.ZodString;
562
565
  category: z.ZodString;
563
- framework: z.ZodEnum<["GDPR", "OWASP", "CIS", "NIST", "NIST-800-53", "ISO27001", "ISO27701", "HIPAA"]>;
566
+ framework: z.ZodEnum<["GDPR", "OWASP", "CIS", "NIST", "NIST-800-53", "ISO27001", "ISO27701", "HIPAA", "PRIVACY-CORE", "UK-GDPR", "LGPD", "PDPA-SG", "DPA-PH", "PDPA-TH", "APPI", "PIPA", "PIPL", "PDPO-HK", "PIPEDA", "CPRA", "POPIA", "PDPL-UAE", "PDPL-SA", "DPDPA", "FADP", "PDPA-MY", "PDP-ID", "PDP-VN", "NDPA-NG", "DPA-KE", "PDPA-QA"]>;
564
567
  article: z.ZodOptional<z.ZodString>;
565
568
  status: z.ZodDefault<z.ZodEnum<["pass", "fail", "warning", "not-applicable", "not-implemented"]>>;
566
569
  severity: z.ZodEnum<["critical", "high", "medium", "low"]>;
@@ -587,7 +590,7 @@ export declare const ControlSchema: z.ZodObject<{
587
590
  description: string;
588
591
  name: string;
589
592
  category: string;
590
- framework: "GDPR" | "OWASP" | "CIS" | "NIST" | "NIST-800-53" | "ISO27001" | "ISO27701" | "HIPAA";
593
+ framework: "GDPR" | "OWASP" | "CIS" | "NIST" | "NIST-800-53" | "ISO27001" | "ISO27701" | "HIPAA" | "PRIVACY-CORE" | "UK-GDPR" | "LGPD" | "PDPA-SG" | "DPA-PH" | "PDPA-TH" | "APPI" | "PIPA" | "PIPL" | "PDPO-HK" | "PIPEDA" | "CPRA" | "POPIA" | "PDPL-UAE" | "PDPL-SA" | "DPDPA" | "FADP" | "PDPA-MY" | "PDP-ID" | "PDP-VN" | "NDPA-NG" | "DPA-KE" | "PDPA-QA";
591
594
  severity: "critical" | "high" | "medium" | "low";
592
595
  implementation_guidance: string;
593
596
  checks: {
@@ -602,7 +605,7 @@ export declare const ControlSchema: z.ZodObject<{
602
605
  description: string;
603
606
  name: string;
604
607
  category: string;
605
- framework: "GDPR" | "OWASP" | "CIS" | "NIST" | "NIST-800-53" | "ISO27001" | "ISO27701" | "HIPAA";
608
+ framework: "GDPR" | "OWASP" | "CIS" | "NIST" | "NIST-800-53" | "ISO27001" | "ISO27701" | "HIPAA" | "PRIVACY-CORE" | "UK-GDPR" | "LGPD" | "PDPA-SG" | "DPA-PH" | "PDPA-TH" | "APPI" | "PIPA" | "PIPL" | "PDPO-HK" | "PIPEDA" | "CPRA" | "POPIA" | "PDPL-UAE" | "PDPL-SA" | "DPDPA" | "FADP" | "PDPA-MY" | "PDP-ID" | "PDP-VN" | "NDPA-NG" | "DPA-KE" | "PDPA-QA";
606
609
  severity: "critical" | "high" | "medium" | "low";
607
610
  implementation_guidance: string;
608
611
  checks: {
@@ -23,6 +23,29 @@ export const FrameworkNameSchema = z.enum([
23
23
  "ISO27001",
24
24
  "ISO27701",
25
25
  "HIPAA",
26
+ "PRIVACY-CORE",
27
+ "UK-GDPR",
28
+ "LGPD",
29
+ "PDPA-SG",
30
+ "DPA-PH",
31
+ "PDPA-TH",
32
+ "APPI",
33
+ "PIPA",
34
+ "PIPL",
35
+ "PDPO-HK",
36
+ "PIPEDA",
37
+ "CPRA",
38
+ "POPIA",
39
+ "PDPL-UAE",
40
+ "PDPL-SA",
41
+ "DPDPA",
42
+ "FADP",
43
+ "PDPA-MY",
44
+ "PDP-ID",
45
+ "PDP-VN",
46
+ "NDPA-NG",
47
+ "DPA-KE",
48
+ "PDPA-QA",
26
49
  ]);
27
50
  export const DataClassificationSchema = z.enum([
28
51
  "public",
@@ -47,6 +70,7 @@ export const ProjectConfigSchema = z.object({
47
70
  project_name: z.string().min(1),
48
71
  project_type: ProjectTypeSchema,
49
72
  frameworks: z.array(FrameworkNameSchema).min(1),
73
+ country: z.string().optional(),
50
74
  requirements: z.object({
51
75
  encryption: RequirementConfigSchema,
52
76
  mfa: RequirementConfigSchema,
@@ -1,5 +1,5 @@
1
1
  export type ProjectType = "saas" | "ai-application" | "mcp-server" | "blockchain" | "wallet" | "government-system" | "healthcare-system" | "event-platform" | "photo-storage-platform" | "vulnerability-scanner" | "generic-web-application" | "api-backend" | "mobile-application";
2
- export type FrameworkName = "GDPR" | "OWASP" | "CIS" | "NIST" | "NIST-800-53" | "ISO27001" | "ISO27701" | "HIPAA";
2
+ export type FrameworkName = "GDPR" | "OWASP" | "CIS" | "NIST" | "NIST-800-53" | "ISO27001" | "ISO27701" | "HIPAA" | "PRIVACY-CORE" | "UK-GDPR" | "LGPD" | "PDPA-SG" | "DPA-PH" | "PDPA-TH" | "APPI" | "PIPA" | "PIPL" | "PDPO-HK" | "PIPEDA" | "CPRA" | "POPIA" | "PDPL-UAE" | "PDPL-SA" | "DPDPA" | "FADP" | "PDPA-MY" | "PDP-ID" | "PDP-VN" | "NDPA-NG" | "DPA-KE" | "PDPA-QA";
3
3
  export type DataClassification = "public" | "internal" | "confidential" | "restricted";
4
4
  export type SeverityLevel = "critical" | "high" | "medium" | "low";
5
5
  export type ControlStatus = "pass" | "fail" | "warning" | "not-applicable" | "not-implemented";
@@ -8,6 +8,7 @@ export interface ProjectConfig {
8
8
  project_name: string;
9
9
  project_type: ProjectType;
10
10
  frameworks: FrameworkName[];
11
+ country?: string;
11
12
  requirements: Requirements;
12
13
  created_at: string;
13
14
  version: string;
package/package.json CHANGED
@@ -24,7 +24,7 @@
24
24
  "name": "@greenarmor/ges-core",
25
25
  "type": "module",
26
26
  "types": "./dist/index.d.ts",
27
- "version": "1.2.8",
27
+ "version": "1.3.0",
28
28
  "scripts": {
29
29
  "build": "tsc",
30
30
  "clean": "rm -rf dist tsconfig.tsbuildinfo",