@kya-os/consent 0.1.39 → 0.1.41
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/bundle/index.d.ts +2 -0
- package/dist/bundle/index.d.ts.map +1 -1
- package/dist/bundle/index.js +2 -0
- package/dist/bundle/index.js.map +1 -1
- package/dist/bundle/inline.d.ts.map +1 -1
- package/dist/bundle/inline.js +2 -2
- package/dist/bundle/inline.js.map +1 -1
- package/dist/cjs/bundle/index.js +4 -1
- package/dist/cjs/bundle/index.js.map +1 -1
- package/dist/cjs/bundle/inline.js +2 -2
- package/dist/cjs/bundle/inline.js.map +1 -1
- package/dist/cjs/components/consent-capabilities-screen.js +39 -2
- package/dist/cjs/components/consent-capabilities-screen.js.map +1 -1
- package/dist/cjs/components/consent-capability-card.js +62 -3
- package/dist/cjs/components/consent-capability-card.js.map +1 -1
- package/dist/cjs/components/consent-connector-header.js +247 -0
- package/dist/cjs/components/consent-connector-header.js.map +1 -0
- package/dist/cjs/components/index.js +3 -1
- package/dist/cjs/components/index.js.map +1 -1
- package/dist/cjs/components/mcp-consent.js +18 -1
- package/dist/cjs/components/mcp-consent.js.map +1 -1
- package/dist/cjs/mcp-app/inline.js +2 -2
- package/dist/cjs/mcp-app/inline.js.map +1 -1
- package/dist/components/consent-capabilities-screen.d.ts +13 -0
- package/dist/components/consent-capabilities-screen.d.ts.map +1 -1
- package/dist/components/consent-capabilities-screen.js +39 -2
- package/dist/components/consent-capabilities-screen.js.map +1 -1
- package/dist/components/consent-capability-card.d.ts +8 -0
- package/dist/components/consent-capability-card.d.ts.map +1 -1
- package/dist/components/consent-capability-card.js +62 -3
- package/dist/components/consent-capability-card.js.map +1 -1
- package/dist/components/consent-connector-header.d.ts +64 -0
- package/dist/components/consent-connector-header.d.ts.map +1 -0
- package/dist/components/consent-connector-header.js +244 -0
- package/dist/components/consent-connector-header.js.map +1 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +1 -0
- package/dist/components/index.js.map +1 -1
- package/dist/components/mcp-consent.d.ts.map +1 -1
- package/dist/components/mcp-consent.js +18 -1
- package/dist/components/mcp-consent.js.map +1 -1
- package/dist/consent.js +273 -5
- package/dist/consent.min.js +246 -108
- package/dist/mcp-app/inline.d.ts.map +1 -1
- package/dist/mcp-app/inline.js +2 -2
- package/dist/mcp-app/inline.js.map +1 -1
- package/dist/schemas/api.schemas.d.ts +30 -30
- package/dist/schemas/capabilities.schemas.d.ts +8 -8
- package/dist/schemas/config.schemas.d.ts +52 -52
- package/dist/schemas/modes.schemas.d.ts +6 -6
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inline.js","sourceRoot":"","sources":["../../src/mcp-app/inline.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,sEAAsE;AACtE,MAAM,CAAC,MAAM,oBAAoB,GAAW,
|
|
1
|
+
{"version":3,"file":"inline.js","sourceRoot":"","sources":["../../src/mcp-app/inline.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,sEAAsE;AACtE,MAAM,CAAC,MAAM,oBAAoB,GAAW,gp/uBAAgp/uB,CAAC;AAE7r/uB,4CAA4C;AAC5C,MAAM,CAAC,MAAM,yBAAyB,GAAW,MAAM,CAAC"}
|
|
@@ -251,11 +251,11 @@ export declare const ConsentConfigAPIResponseSchema: z.ZodObject<{
|
|
|
251
251
|
value: z.ZodString;
|
|
252
252
|
label: z.ZodString;
|
|
253
253
|
}, "strip", z.ZodTypeAny, {
|
|
254
|
-
value: string;
|
|
255
254
|
label: string;
|
|
256
|
-
}, {
|
|
257
255
|
value: string;
|
|
256
|
+
}, {
|
|
258
257
|
label: string;
|
|
258
|
+
value: string;
|
|
259
259
|
}>, "many">>;
|
|
260
260
|
pattern: z.ZodOptional<z.ZodString>;
|
|
261
261
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -264,8 +264,8 @@ export declare const ConsentConfigAPIResponseSchema: z.ZodObject<{
|
|
|
264
264
|
name: string;
|
|
265
265
|
required: boolean;
|
|
266
266
|
options?: {
|
|
267
|
-
value: string;
|
|
268
267
|
label: string;
|
|
268
|
+
value: string;
|
|
269
269
|
}[] | undefined;
|
|
270
270
|
placeholder?: string | undefined;
|
|
271
271
|
pattern?: string | undefined;
|
|
@@ -275,8 +275,8 @@ export declare const ConsentConfigAPIResponseSchema: z.ZodObject<{
|
|
|
275
275
|
name: string;
|
|
276
276
|
required: boolean;
|
|
277
277
|
options?: {
|
|
278
|
-
value: string;
|
|
279
278
|
label: string;
|
|
279
|
+
value: string;
|
|
280
280
|
}[] | undefined;
|
|
281
281
|
placeholder?: string | undefined;
|
|
282
282
|
pattern?: string | undefined;
|
|
@@ -286,8 +286,8 @@ export declare const ConsentConfigAPIResponseSchema: z.ZodObject<{
|
|
|
286
286
|
name: string;
|
|
287
287
|
required: boolean;
|
|
288
288
|
options?: {
|
|
289
|
-
value: string;
|
|
290
289
|
label: string;
|
|
290
|
+
value: string;
|
|
291
291
|
}[] | undefined;
|
|
292
292
|
placeholder?: string | undefined;
|
|
293
293
|
pattern?: string | undefined;
|
|
@@ -297,8 +297,8 @@ export declare const ConsentConfigAPIResponseSchema: z.ZodObject<{
|
|
|
297
297
|
name: string;
|
|
298
298
|
required: boolean;
|
|
299
299
|
options?: {
|
|
300
|
-
value: string;
|
|
301
300
|
label: string;
|
|
301
|
+
value: string;
|
|
302
302
|
}[] | undefined;
|
|
303
303
|
placeholder?: string | undefined;
|
|
304
304
|
pattern?: string | undefined;
|
|
@@ -373,14 +373,14 @@ export declare const ConsentConfigAPIResponseSchema: z.ZodObject<{
|
|
|
373
373
|
phoneLabel?: string | undefined;
|
|
374
374
|
phonePlaceholder?: string | undefined;
|
|
375
375
|
instructions?: string | undefined;
|
|
376
|
-
digits?:
|
|
376
|
+
digits?: 4 | 6 | 8 | undefined;
|
|
377
377
|
}, {
|
|
378
378
|
enabled?: boolean | undefined;
|
|
379
379
|
resendCooldown?: number | undefined;
|
|
380
380
|
phoneLabel?: string | undefined;
|
|
381
381
|
phonePlaceholder?: string | undefined;
|
|
382
382
|
instructions?: string | undefined;
|
|
383
|
-
digits?:
|
|
383
|
+
digits?: 4 | 6 | 8 | undefined;
|
|
384
384
|
}>>;
|
|
385
385
|
qrCode: z.ZodOptional<z.ZodObject<{
|
|
386
386
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -448,49 +448,49 @@ export declare const ConsentConfigAPIResponseSchema: z.ZodObject<{
|
|
|
448
448
|
scopes: z.ZodArray<z.ZodString, "many">;
|
|
449
449
|
category: z.ZodOptional<z.ZodString>;
|
|
450
450
|
}, "strip", z.ZodTypeAny, {
|
|
451
|
-
id: string;
|
|
452
451
|
label: string;
|
|
453
452
|
description: string;
|
|
454
453
|
icon: "search" | "cart" | "card" | "pin" | "pin-new" | "shield" | "key" | "tools" | "user" | "calendar" | "lock" | "eye" | "send" | "package" | "neutral";
|
|
455
454
|
riskLevel: "low" | "medium" | "high" | "critical";
|
|
455
|
+
id: string;
|
|
456
456
|
defaultOn: boolean;
|
|
457
457
|
cedar: string;
|
|
458
458
|
scopes: string[];
|
|
459
459
|
category?: string | undefined;
|
|
460
460
|
}, {
|
|
461
|
-
id: string;
|
|
462
461
|
label: string;
|
|
463
462
|
description: string;
|
|
464
463
|
icon: "search" | "cart" | "card" | "pin" | "pin-new" | "shield" | "key" | "tools" | "user" | "calendar" | "lock" | "eye" | "send" | "package" | "neutral";
|
|
465
464
|
riskLevel: "low" | "medium" | "high" | "critical";
|
|
465
|
+
id: string;
|
|
466
466
|
defaultOn: boolean;
|
|
467
467
|
cedar: string;
|
|
468
468
|
scopes: string[];
|
|
469
469
|
category?: string | undefined;
|
|
470
470
|
}>, "many">;
|
|
471
471
|
}, "strip", z.ZodTypeAny, {
|
|
472
|
-
id: string;
|
|
473
472
|
label: string;
|
|
473
|
+
id: string;
|
|
474
474
|
capabilities: {
|
|
475
|
-
id: string;
|
|
476
475
|
label: string;
|
|
477
476
|
description: string;
|
|
478
477
|
icon: "search" | "cart" | "card" | "pin" | "pin-new" | "shield" | "key" | "tools" | "user" | "calendar" | "lock" | "eye" | "send" | "package" | "neutral";
|
|
479
478
|
riskLevel: "low" | "medium" | "high" | "critical";
|
|
479
|
+
id: string;
|
|
480
480
|
defaultOn: boolean;
|
|
481
481
|
cedar: string;
|
|
482
482
|
scopes: string[];
|
|
483
483
|
category?: string | undefined;
|
|
484
484
|
}[];
|
|
485
485
|
}, {
|
|
486
|
-
id: string;
|
|
487
486
|
label: string;
|
|
487
|
+
id: string;
|
|
488
488
|
capabilities: {
|
|
489
|
-
id: string;
|
|
490
489
|
label: string;
|
|
491
490
|
description: string;
|
|
492
491
|
icon: "search" | "cart" | "card" | "pin" | "pin-new" | "shield" | "key" | "tools" | "user" | "calendar" | "lock" | "eye" | "send" | "package" | "neutral";
|
|
493
492
|
riskLevel: "low" | "medium" | "high" | "critical";
|
|
493
|
+
id: string;
|
|
494
494
|
defaultOn: boolean;
|
|
495
495
|
cedar: string;
|
|
496
496
|
scopes: string[];
|
|
@@ -561,7 +561,7 @@ export declare const ConsentConfigAPIResponseSchema: z.ZodObject<{
|
|
|
561
561
|
phoneLabel?: string | undefined;
|
|
562
562
|
phonePlaceholder?: string | undefined;
|
|
563
563
|
instructions?: string | undefined;
|
|
564
|
-
digits?:
|
|
564
|
+
digits?: 4 | 6 | 8 | undefined;
|
|
565
565
|
} | undefined;
|
|
566
566
|
passkey?: {
|
|
567
567
|
buttonText?: string | undefined;
|
|
@@ -590,14 +590,14 @@ export declare const ConsentConfigAPIResponseSchema: z.ZodObject<{
|
|
|
590
590
|
showManualEntry?: boolean | undefined;
|
|
591
591
|
} | undefined;
|
|
592
592
|
capabilities?: {
|
|
593
|
-
id: string;
|
|
594
593
|
label: string;
|
|
594
|
+
id: string;
|
|
595
595
|
capabilities: {
|
|
596
|
-
id: string;
|
|
597
596
|
label: string;
|
|
598
597
|
description: string;
|
|
599
598
|
icon: "search" | "cart" | "card" | "pin" | "pin-new" | "shield" | "key" | "tools" | "user" | "calendar" | "lock" | "eye" | "send" | "package" | "neutral";
|
|
600
599
|
riskLevel: "low" | "medium" | "high" | "critical";
|
|
600
|
+
id: string;
|
|
601
601
|
defaultOn: boolean;
|
|
602
602
|
cedar: string;
|
|
603
603
|
scopes: string[];
|
|
@@ -642,8 +642,8 @@ export declare const ConsentConfigAPIResponseSchema: z.ZodObject<{
|
|
|
642
642
|
name: string;
|
|
643
643
|
required: boolean;
|
|
644
644
|
options?: {
|
|
645
|
-
value: string;
|
|
646
645
|
label: string;
|
|
646
|
+
value: string;
|
|
647
647
|
}[] | undefined;
|
|
648
648
|
placeholder?: string | undefined;
|
|
649
649
|
pattern?: string | undefined;
|
|
@@ -687,7 +687,7 @@ export declare const ConsentConfigAPIResponseSchema: z.ZodObject<{
|
|
|
687
687
|
phoneLabel?: string | undefined;
|
|
688
688
|
phonePlaceholder?: string | undefined;
|
|
689
689
|
instructions?: string | undefined;
|
|
690
|
-
digits?:
|
|
690
|
+
digits?: 4 | 6 | 8 | undefined;
|
|
691
691
|
} | undefined;
|
|
692
692
|
passkey?: {
|
|
693
693
|
buttonText?: string | undefined;
|
|
@@ -716,14 +716,14 @@ export declare const ConsentConfigAPIResponseSchema: z.ZodObject<{
|
|
|
716
716
|
showManualEntry?: boolean | undefined;
|
|
717
717
|
} | undefined;
|
|
718
718
|
capabilities?: {
|
|
719
|
-
id: string;
|
|
720
719
|
label: string;
|
|
720
|
+
id: string;
|
|
721
721
|
capabilities: {
|
|
722
|
-
id: string;
|
|
723
722
|
label: string;
|
|
724
723
|
description: string;
|
|
725
724
|
icon: "search" | "cart" | "card" | "pin" | "pin-new" | "shield" | "key" | "tools" | "user" | "calendar" | "lock" | "eye" | "send" | "package" | "neutral";
|
|
726
725
|
riskLevel: "low" | "medium" | "high" | "critical";
|
|
726
|
+
id: string;
|
|
727
727
|
defaultOn: boolean;
|
|
728
728
|
cedar: string;
|
|
729
729
|
scopes: string[];
|
|
@@ -768,8 +768,8 @@ export declare const ConsentConfigAPIResponseSchema: z.ZodObject<{
|
|
|
768
768
|
name: string;
|
|
769
769
|
required: boolean;
|
|
770
770
|
options?: {
|
|
771
|
-
value: string;
|
|
772
771
|
label: string;
|
|
772
|
+
value: string;
|
|
773
773
|
}[] | undefined;
|
|
774
774
|
placeholder?: string | undefined;
|
|
775
775
|
pattern?: string | undefined;
|
|
@@ -818,7 +818,7 @@ export declare const ConsentConfigAPIResponseSchema: z.ZodObject<{
|
|
|
818
818
|
phoneLabel?: string | undefined;
|
|
819
819
|
phonePlaceholder?: string | undefined;
|
|
820
820
|
instructions?: string | undefined;
|
|
821
|
-
digits?:
|
|
821
|
+
digits?: 4 | 6 | 8 | undefined;
|
|
822
822
|
} | undefined;
|
|
823
823
|
passkey?: {
|
|
824
824
|
buttonText?: string | undefined;
|
|
@@ -847,14 +847,14 @@ export declare const ConsentConfigAPIResponseSchema: z.ZodObject<{
|
|
|
847
847
|
showManualEntry?: boolean | undefined;
|
|
848
848
|
} | undefined;
|
|
849
849
|
capabilities?: {
|
|
850
|
-
id: string;
|
|
851
850
|
label: string;
|
|
851
|
+
id: string;
|
|
852
852
|
capabilities: {
|
|
853
|
-
id: string;
|
|
854
853
|
label: string;
|
|
855
854
|
description: string;
|
|
856
855
|
icon: "search" | "cart" | "card" | "pin" | "pin-new" | "shield" | "key" | "tools" | "user" | "calendar" | "lock" | "eye" | "send" | "package" | "neutral";
|
|
857
856
|
riskLevel: "low" | "medium" | "high" | "critical";
|
|
857
|
+
id: string;
|
|
858
858
|
defaultOn: boolean;
|
|
859
859
|
cedar: string;
|
|
860
860
|
scopes: string[];
|
|
@@ -899,8 +899,8 @@ export declare const ConsentConfigAPIResponseSchema: z.ZodObject<{
|
|
|
899
899
|
name: string;
|
|
900
900
|
required: boolean;
|
|
901
901
|
options?: {
|
|
902
|
-
value: string;
|
|
903
902
|
label: string;
|
|
903
|
+
value: string;
|
|
904
904
|
}[] | undefined;
|
|
905
905
|
placeholder?: string | undefined;
|
|
906
906
|
pattern?: string | undefined;
|
|
@@ -948,7 +948,7 @@ export declare const ConsentConfigAPIResponseSchema: z.ZodObject<{
|
|
|
948
948
|
phoneLabel?: string | undefined;
|
|
949
949
|
phonePlaceholder?: string | undefined;
|
|
950
950
|
instructions?: string | undefined;
|
|
951
|
-
digits?:
|
|
951
|
+
digits?: 4 | 6 | 8 | undefined;
|
|
952
952
|
} | undefined;
|
|
953
953
|
passkey?: {
|
|
954
954
|
buttonText?: string | undefined;
|
|
@@ -977,14 +977,14 @@ export declare const ConsentConfigAPIResponseSchema: z.ZodObject<{
|
|
|
977
977
|
showManualEntry?: boolean | undefined;
|
|
978
978
|
} | undefined;
|
|
979
979
|
capabilities?: {
|
|
980
|
-
id: string;
|
|
981
980
|
label: string;
|
|
981
|
+
id: string;
|
|
982
982
|
capabilities: {
|
|
983
|
-
id: string;
|
|
984
983
|
label: string;
|
|
985
984
|
description: string;
|
|
986
985
|
icon: "search" | "cart" | "card" | "pin" | "pin-new" | "shield" | "key" | "tools" | "user" | "calendar" | "lock" | "eye" | "send" | "package" | "neutral";
|
|
987
986
|
riskLevel: "low" | "medium" | "high" | "critical";
|
|
987
|
+
id: string;
|
|
988
988
|
defaultOn: boolean;
|
|
989
989
|
cedar: string;
|
|
990
990
|
scopes: string[];
|
|
@@ -1029,8 +1029,8 @@ export declare const ConsentConfigAPIResponseSchema: z.ZodObject<{
|
|
|
1029
1029
|
name: string;
|
|
1030
1030
|
required: boolean;
|
|
1031
1031
|
options?: {
|
|
1032
|
-
value: string;
|
|
1033
1032
|
label: string;
|
|
1033
|
+
value: string;
|
|
1034
1034
|
}[] | undefined;
|
|
1035
1035
|
placeholder?: string | undefined;
|
|
1036
1036
|
pattern?: string | undefined;
|
|
@@ -38,21 +38,21 @@ export declare const CapabilitySchema: z.ZodObject<{
|
|
|
38
38
|
scopes: z.ZodArray<z.ZodString, "many">;
|
|
39
39
|
category: z.ZodOptional<z.ZodString>;
|
|
40
40
|
}, "strip", z.ZodTypeAny, {
|
|
41
|
-
id: string;
|
|
42
41
|
label: string;
|
|
43
42
|
description: string;
|
|
44
43
|
icon: "search" | "cart" | "card" | "pin" | "pin-new" | "shield" | "key" | "tools" | "user" | "calendar" | "lock" | "eye" | "send" | "package" | "neutral";
|
|
45
44
|
riskLevel: "low" | "medium" | "high" | "critical";
|
|
45
|
+
id: string;
|
|
46
46
|
defaultOn: boolean;
|
|
47
47
|
cedar: string;
|
|
48
48
|
scopes: string[];
|
|
49
49
|
category?: string | undefined;
|
|
50
50
|
}, {
|
|
51
|
-
id: string;
|
|
52
51
|
label: string;
|
|
53
52
|
description: string;
|
|
54
53
|
icon: "search" | "cart" | "card" | "pin" | "pin-new" | "shield" | "key" | "tools" | "user" | "calendar" | "lock" | "eye" | "send" | "package" | "neutral";
|
|
55
54
|
riskLevel: "low" | "medium" | "high" | "critical";
|
|
55
|
+
id: string;
|
|
56
56
|
defaultOn: boolean;
|
|
57
57
|
cedar: string;
|
|
58
58
|
scopes: string[];
|
|
@@ -76,49 +76,49 @@ export declare const CapabilityGroupSchema: z.ZodObject<{
|
|
|
76
76
|
scopes: z.ZodArray<z.ZodString, "many">;
|
|
77
77
|
category: z.ZodOptional<z.ZodString>;
|
|
78
78
|
}, "strip", z.ZodTypeAny, {
|
|
79
|
-
id: string;
|
|
80
79
|
label: string;
|
|
81
80
|
description: string;
|
|
82
81
|
icon: "search" | "cart" | "card" | "pin" | "pin-new" | "shield" | "key" | "tools" | "user" | "calendar" | "lock" | "eye" | "send" | "package" | "neutral";
|
|
83
82
|
riskLevel: "low" | "medium" | "high" | "critical";
|
|
83
|
+
id: string;
|
|
84
84
|
defaultOn: boolean;
|
|
85
85
|
cedar: string;
|
|
86
86
|
scopes: string[];
|
|
87
87
|
category?: string | undefined;
|
|
88
88
|
}, {
|
|
89
|
-
id: string;
|
|
90
89
|
label: string;
|
|
91
90
|
description: string;
|
|
92
91
|
icon: "search" | "cart" | "card" | "pin" | "pin-new" | "shield" | "key" | "tools" | "user" | "calendar" | "lock" | "eye" | "send" | "package" | "neutral";
|
|
93
92
|
riskLevel: "low" | "medium" | "high" | "critical";
|
|
93
|
+
id: string;
|
|
94
94
|
defaultOn: boolean;
|
|
95
95
|
cedar: string;
|
|
96
96
|
scopes: string[];
|
|
97
97
|
category?: string | undefined;
|
|
98
98
|
}>, "many">;
|
|
99
99
|
}, "strip", z.ZodTypeAny, {
|
|
100
|
-
id: string;
|
|
101
100
|
label: string;
|
|
101
|
+
id: string;
|
|
102
102
|
capabilities: {
|
|
103
|
-
id: string;
|
|
104
103
|
label: string;
|
|
105
104
|
description: string;
|
|
106
105
|
icon: "search" | "cart" | "card" | "pin" | "pin-new" | "shield" | "key" | "tools" | "user" | "calendar" | "lock" | "eye" | "send" | "package" | "neutral";
|
|
107
106
|
riskLevel: "low" | "medium" | "high" | "critical";
|
|
107
|
+
id: string;
|
|
108
108
|
defaultOn: boolean;
|
|
109
109
|
cedar: string;
|
|
110
110
|
scopes: string[];
|
|
111
111
|
category?: string | undefined;
|
|
112
112
|
}[];
|
|
113
113
|
}, {
|
|
114
|
-
id: string;
|
|
115
114
|
label: string;
|
|
115
|
+
id: string;
|
|
116
116
|
capabilities: {
|
|
117
|
-
id: string;
|
|
118
117
|
label: string;
|
|
119
118
|
description: string;
|
|
120
119
|
icon: "search" | "cart" | "card" | "pin" | "pin-new" | "shield" | "key" | "tools" | "user" | "calendar" | "lock" | "eye" | "send" | "package" | "neutral";
|
|
121
120
|
riskLevel: "low" | "medium" | "high" | "critical";
|
|
121
|
+
id: string;
|
|
122
122
|
defaultOn: boolean;
|
|
123
123
|
cedar: string;
|
|
124
124
|
scopes: string[];
|