@kya-os/consent 0.1.14 → 0.1.15
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/cjs/schemas/api.schemas.js +6 -0
- package/dist/cjs/schemas/api.schemas.js.map +1 -1
- package/dist/schemas/api.schemas.d.ts +152 -144
- package/dist/schemas/api.schemas.d.ts.map +1 -1
- package/dist/schemas/api.schemas.js +6 -0
- package/dist/schemas/api.schemas.js.map +1 -1
- package/dist/types/api.types.d.ts +6 -0
- package/dist/types/api.types.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -53,6 +53,12 @@ exports.ConsentApprovalRequestSchema = zod_1.z.object({
|
|
|
53
53
|
.regex(/^did:/, "Must be a valid DID format")
|
|
54
54
|
.max(500)
|
|
55
55
|
.optional(),
|
|
56
|
+
/**
|
|
57
|
+
* Human-readable user identifier from credential authentication.
|
|
58
|
+
* This is separate from user_did (cryptographic identity) and used for UX display.
|
|
59
|
+
* Examples: email address, username, or other provider-specific identifier.
|
|
60
|
+
*/
|
|
61
|
+
credential_user_id: zod_1.z.string().max(200).optional(),
|
|
56
62
|
});
|
|
57
63
|
/**
|
|
58
64
|
* Consent Approval Response Schema
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api.schemas.js","sourceRoot":"","sources":["../../../src/schemas/api.schemas.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;
|
|
1
|
+
{"version":3,"file":"api.schemas.js","sourceRoot":"","sources":["../../../src/schemas/api.schemas.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAgLH,wEAIC;AAED,0EAIC;AAED,sDAIC;AAED,8DAIC;AApMD,6BAAwB;AACxB,yDAAoD;AACpD,2DAAkE;AAElE;;GAEG;AACU,QAAA,mBAAmB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC1C,QAAQ,EAAE,OAAC;SACR,MAAM,EAAE;SACR,GAAG,CAAC,CAAC,EAAE,sBAAsB,CAAC;SA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Q,KAAK,EAAE,EAAE,CAAC;YACxD,GAAG,CAAC,QAAQ,CAAC;gBACX,IAAI,EAAE,OAAC,CAAC,YAAY,CAAC,MAAM;gBAC3B,OAAO,EAAE,iDAAiD;gBAC1D,IAAI,EAAE,CAAC,UAAU,CAAC;aACnB,CAAC,CAAC;QACL,CAAC;IACH,CAAC;IACD,IAAI,IAAI,CAAC,QAAQ,KAAK,SAAS,IAAI,IAAI,CAAC,QAAQ,KAAK,EAAE,EAAE,CAAC;QACxD,GAAG,CAAC,QAAQ,CAAC;YACX,IAAI,EAAE,OAAC,CAAC,YAAY,CAAC,MAAM;YAC3B,OAAO,EAAE,8BAA8B;YACvC,IAAI,EAAE,CAAC,UAAU,CAAC;SACnB,CAAC,CAAC;IACL,CAAC;AACH,CAAC,CAAC,CAAC;AAML;;GAEG;AAEH,SAAgB,8BAA8B,CAC5C,OAAgB;IAEhB,OAAO,oCAA4B,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;AACzD,CAAC;AAED,SAAgB,+BAA+B,CAC7C,QAAiB;IAEjB,OAAO,qCAA6B,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;AAC3D,CAAC;AAED,SAAgB,qBAAqB,CACnC,QAAiB;IAEjB,OAAO,2BAAmB,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;AACjD,CAAC;AAED,SAAgB,yBAAyB,CACvC,MAAe;IAEf,OAAO,+BAAuB,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;AACnD,CAAC"}
|
|
@@ -60,6 +60,12 @@ export declare const ConsentApprovalRequestSchema: z.ZodObject<{
|
|
|
60
60
|
name?: string | undefined;
|
|
61
61
|
}>>>;
|
|
62
62
|
user_did: z.ZodOptional<z.ZodString>;
|
|
63
|
+
/**
|
|
64
|
+
* Human-readable user identifier from credential authentication.
|
|
65
|
+
* This is separate from user_did (cryptographic identity) and used for UX display.
|
|
66
|
+
* Examples: email address, username, or other provider-specific identifier.
|
|
67
|
+
*/
|
|
68
|
+
credential_user_id: z.ZodOptional<z.ZodString>;
|
|
63
69
|
}, "strip", z.ZodTypeAny, {
|
|
64
70
|
tool: string;
|
|
65
71
|
scopes: string[];
|
|
@@ -69,8 +75,8 @@ export declare const ConsentApprovalRequestSchema: z.ZodObject<{
|
|
|
69
75
|
auth_mode: "consent-only" | "credentials" | "oauth" | "magic-link" | "otp" | "qr-code" | "passkey" | "idv";
|
|
70
76
|
provider_type: string;
|
|
71
77
|
termsAccepted: boolean;
|
|
72
|
-
customFields?: Record<string, string | boolean> | undefined;
|
|
73
78
|
termsVersion?: string | undefined;
|
|
79
|
+
customFields?: Record<string, string | boolean> | undefined;
|
|
74
80
|
oauth_identity?: {
|
|
75
81
|
provider: string;
|
|
76
82
|
subject: string;
|
|
@@ -78,6 +84,7 @@ export declare const ConsentApprovalRequestSchema: z.ZodObject<{
|
|
|
78
84
|
name?: string | undefined;
|
|
79
85
|
} | null | undefined;
|
|
80
86
|
user_did?: string | undefined;
|
|
87
|
+
credential_user_id?: string | undefined;
|
|
81
88
|
}, {
|
|
82
89
|
tool: string;
|
|
83
90
|
scopes: string[];
|
|
@@ -85,10 +92,10 @@ export declare const ConsentApprovalRequestSchema: z.ZodObject<{
|
|
|
85
92
|
session_id: string;
|
|
86
93
|
project_id: string;
|
|
87
94
|
termsAccepted: boolean;
|
|
88
|
-
customFields?: Record<string, string | boolean> | undefined;
|
|
89
95
|
auth_mode?: "consent-only" | "credentials" | "oauth" | "magic-link" | "otp" | "qr-code" | "passkey" | "idv" | undefined;
|
|
90
96
|
provider_type?: string | undefined;
|
|
91
97
|
termsVersion?: string | undefined;
|
|
98
|
+
customFields?: Record<string, string | boolean> | undefined;
|
|
92
99
|
oauth_identity?: {
|
|
93
100
|
provider: string;
|
|
94
101
|
subject: string;
|
|
@@ -96,6 +103,7 @@ export declare const ConsentApprovalRequestSchema: z.ZodObject<{
|
|
|
96
103
|
name?: string | undefined;
|
|
97
104
|
} | null | undefined;
|
|
98
105
|
user_did?: string | undefined;
|
|
106
|
+
credential_user_id?: string | undefined;
|
|
99
107
|
}>;
|
|
100
108
|
export type ConsentApprovalRequestSchemaType = z.infer<typeof ConsentApprovalRequestSchema>;
|
|
101
109
|
/**
|
|
@@ -242,10 +250,10 @@ export declare const ConsentConfigAPIResponseSchema: z.ZodObject<{
|
|
|
242
250
|
}>, "many">>;
|
|
243
251
|
pattern: z.ZodOptional<z.ZodString>;
|
|
244
252
|
}, "strip", z.ZodTypeAny, {
|
|
245
|
-
|
|
253
|
+
name: string;
|
|
254
|
+
type: "email" | "text" | "textarea" | "checkbox" | "select";
|
|
246
255
|
required: boolean;
|
|
247
256
|
label: string;
|
|
248
|
-
name: string;
|
|
249
257
|
options?: {
|
|
250
258
|
value: string;
|
|
251
259
|
label: string;
|
|
@@ -253,10 +261,10 @@ export declare const ConsentConfigAPIResponseSchema: z.ZodObject<{
|
|
|
253
261
|
placeholder?: string | undefined;
|
|
254
262
|
pattern?: string | undefined;
|
|
255
263
|
}, {
|
|
256
|
-
|
|
264
|
+
name: string;
|
|
265
|
+
type: "email" | "text" | "textarea" | "checkbox" | "select";
|
|
257
266
|
required: boolean;
|
|
258
267
|
label: string;
|
|
259
|
-
name: string;
|
|
260
268
|
options?: {
|
|
261
269
|
value: string;
|
|
262
270
|
label: string;
|
|
@@ -264,10 +272,10 @@ export declare const ConsentConfigAPIResponseSchema: z.ZodObject<{
|
|
|
264
272
|
placeholder?: string | undefined;
|
|
265
273
|
pattern?: string | undefined;
|
|
266
274
|
}>, {
|
|
267
|
-
|
|
275
|
+
name: string;
|
|
276
|
+
type: "email" | "text" | "textarea" | "checkbox" | "select";
|
|
268
277
|
required: boolean;
|
|
269
278
|
label: string;
|
|
270
|
-
name: string;
|
|
271
279
|
options?: {
|
|
272
280
|
value: string;
|
|
273
281
|
label: string;
|
|
@@ -275,10 +283,10 @@ export declare const ConsentConfigAPIResponseSchema: z.ZodObject<{
|
|
|
275
283
|
placeholder?: string | undefined;
|
|
276
284
|
pattern?: string | undefined;
|
|
277
285
|
}, {
|
|
278
|
-
|
|
286
|
+
name: string;
|
|
287
|
+
type: "email" | "text" | "textarea" | "checkbox" | "select";
|
|
279
288
|
required: boolean;
|
|
280
289
|
label: string;
|
|
281
|
-
name: string;
|
|
282
290
|
options?: {
|
|
283
291
|
value: string;
|
|
284
292
|
label: string;
|
|
@@ -467,18 +475,25 @@ export declare const ConsentConfigAPIResponseSchema: z.ZodObject<{
|
|
|
467
475
|
verificationType?: "document" | "selfie" | "both" | undefined;
|
|
468
476
|
estimatedTime?: string | undefined;
|
|
469
477
|
} | undefined;
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
478
|
+
customFields?: {
|
|
479
|
+
name: string;
|
|
480
|
+
type: "email" | "text" | "textarea" | "checkbox" | "select";
|
|
481
|
+
required: boolean;
|
|
482
|
+
label: string;
|
|
483
|
+
options?: {
|
|
484
|
+
value: string;
|
|
485
|
+
label: string;
|
|
486
|
+
}[] | undefined;
|
|
487
|
+
placeholder?: string | undefined;
|
|
488
|
+
pattern?: string | undefined;
|
|
489
|
+
}[] | undefined;
|
|
490
|
+
success?: {
|
|
491
|
+
title?: string | undefined;
|
|
492
|
+
description?: string | undefined;
|
|
493
|
+
showCredential?: boolean | undefined;
|
|
494
|
+
redirectUrl?: string | undefined;
|
|
495
|
+
redirectDelay?: number | undefined;
|
|
496
|
+
continueButtonText?: string | undefined;
|
|
482
497
|
} | undefined;
|
|
483
498
|
branding?: {
|
|
484
499
|
primaryColor?: string | undefined;
|
|
@@ -503,26 +518,19 @@ export declare const ConsentConfigAPIResponseSchema: z.ZodObject<{
|
|
|
503
518
|
version?: string | undefined;
|
|
504
519
|
required?: boolean | undefined;
|
|
505
520
|
} | undefined;
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
521
|
+
magicLink?: {
|
|
522
|
+
buttonText?: string | undefined;
|
|
523
|
+
enabled?: boolean | undefined;
|
|
524
|
+
emailLabel?: string | undefined;
|
|
525
|
+
emailPlaceholder?: string | undefined;
|
|
526
|
+
resendCooldown?: number | undefined;
|
|
527
|
+
} | undefined;
|
|
528
|
+
qrCode?: {
|
|
529
|
+
enabled?: boolean | undefined;
|
|
530
|
+
instructions?: string | undefined;
|
|
531
|
+
size?: number | undefined;
|
|
532
|
+
showManualEntry?: boolean | undefined;
|
|
513
533
|
} | undefined;
|
|
514
|
-
customFields?: {
|
|
515
|
-
type: "text" | "textarea" | "checkbox" | "select" | "email";
|
|
516
|
-
required: boolean;
|
|
517
|
-
label: string;
|
|
518
|
-
name: string;
|
|
519
|
-
options?: {
|
|
520
|
-
value: string;
|
|
521
|
-
label: string;
|
|
522
|
-
}[] | undefined;
|
|
523
|
-
placeholder?: string | undefined;
|
|
524
|
-
pattern?: string | undefined;
|
|
525
|
-
}[] | undefined;
|
|
526
534
|
expirationDays?: number | undefined;
|
|
527
535
|
metadata?: {
|
|
528
536
|
version?: number | undefined;
|
|
@@ -565,18 +573,25 @@ export declare const ConsentConfigAPIResponseSchema: z.ZodObject<{
|
|
|
565
573
|
verificationType?: "document" | "selfie" | "both" | undefined;
|
|
566
574
|
estimatedTime?: string | undefined;
|
|
567
575
|
} | undefined;
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
576
|
+
customFields?: {
|
|
577
|
+
name: string;
|
|
578
|
+
type: "email" | "text" | "textarea" | "checkbox" | "select";
|
|
579
|
+
required: boolean;
|
|
580
|
+
label: string;
|
|
581
|
+
options?: {
|
|
582
|
+
value: string;
|
|
583
|
+
label: string;
|
|
584
|
+
}[] | undefined;
|
|
585
|
+
placeholder?: string | undefined;
|
|
586
|
+
pattern?: string | undefined;
|
|
587
|
+
}[] | undefined;
|
|
588
|
+
success?: {
|
|
589
|
+
title?: string | undefined;
|
|
590
|
+
description?: string | undefined;
|
|
591
|
+
showCredential?: boolean | undefined;
|
|
592
|
+
redirectUrl?: string | undefined;
|
|
593
|
+
redirectDelay?: number | undefined;
|
|
594
|
+
continueButtonText?: string | undefined;
|
|
580
595
|
} | undefined;
|
|
581
596
|
branding?: {
|
|
582
597
|
primaryColor?: string | undefined;
|
|
@@ -601,26 +616,19 @@ export declare const ConsentConfigAPIResponseSchema: z.ZodObject<{
|
|
|
601
616
|
version?: string | undefined;
|
|
602
617
|
required?: boolean | undefined;
|
|
603
618
|
} | undefined;
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
619
|
+
magicLink?: {
|
|
620
|
+
buttonText?: string | undefined;
|
|
621
|
+
enabled?: boolean | undefined;
|
|
622
|
+
emailLabel?: string | undefined;
|
|
623
|
+
emailPlaceholder?: string | undefined;
|
|
624
|
+
resendCooldown?: number | undefined;
|
|
625
|
+
} | undefined;
|
|
626
|
+
qrCode?: {
|
|
627
|
+
enabled?: boolean | undefined;
|
|
628
|
+
instructions?: string | undefined;
|
|
629
|
+
size?: number | undefined;
|
|
630
|
+
showManualEntry?: boolean | undefined;
|
|
611
631
|
} | undefined;
|
|
612
|
-
customFields?: {
|
|
613
|
-
type: "text" | "textarea" | "checkbox" | "select" | "email";
|
|
614
|
-
required: boolean;
|
|
615
|
-
label: string;
|
|
616
|
-
name: string;
|
|
617
|
-
options?: {
|
|
618
|
-
value: string;
|
|
619
|
-
label: string;
|
|
620
|
-
}[] | undefined;
|
|
621
|
-
placeholder?: string | undefined;
|
|
622
|
-
pattern?: string | undefined;
|
|
623
|
-
}[] | undefined;
|
|
624
632
|
expirationDays?: number | undefined;
|
|
625
633
|
metadata?: {
|
|
626
634
|
version?: number | undefined;
|
|
@@ -668,18 +676,25 @@ export declare const ConsentConfigAPIResponseSchema: z.ZodObject<{
|
|
|
668
676
|
verificationType?: "document" | "selfie" | "both" | undefined;
|
|
669
677
|
estimatedTime?: string | undefined;
|
|
670
678
|
} | undefined;
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
679
|
+
customFields?: {
|
|
680
|
+
name: string;
|
|
681
|
+
type: "email" | "text" | "textarea" | "checkbox" | "select";
|
|
682
|
+
required: boolean;
|
|
683
|
+
label: string;
|
|
684
|
+
options?: {
|
|
685
|
+
value: string;
|
|
686
|
+
label: string;
|
|
687
|
+
}[] | undefined;
|
|
688
|
+
placeholder?: string | undefined;
|
|
689
|
+
pattern?: string | undefined;
|
|
690
|
+
}[] | undefined;
|
|
691
|
+
success?: {
|
|
692
|
+
title?: string | undefined;
|
|
693
|
+
description?: string | undefined;
|
|
694
|
+
showCredential?: boolean | undefined;
|
|
695
|
+
redirectUrl?: string | undefined;
|
|
696
|
+
redirectDelay?: number | undefined;
|
|
697
|
+
continueButtonText?: string | undefined;
|
|
683
698
|
} | undefined;
|
|
684
699
|
branding?: {
|
|
685
700
|
primaryColor?: string | undefined;
|
|
@@ -704,26 +719,19 @@ export declare const ConsentConfigAPIResponseSchema: z.ZodObject<{
|
|
|
704
719
|
version?: string | undefined;
|
|
705
720
|
required?: boolean | undefined;
|
|
706
721
|
} | undefined;
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
722
|
+
magicLink?: {
|
|
723
|
+
buttonText?: string | undefined;
|
|
724
|
+
enabled?: boolean | undefined;
|
|
725
|
+
emailLabel?: string | undefined;
|
|
726
|
+
emailPlaceholder?: string | undefined;
|
|
727
|
+
resendCooldown?: number | undefined;
|
|
728
|
+
} | undefined;
|
|
729
|
+
qrCode?: {
|
|
730
|
+
enabled?: boolean | undefined;
|
|
731
|
+
instructions?: string | undefined;
|
|
732
|
+
size?: number | undefined;
|
|
733
|
+
showManualEntry?: boolean | undefined;
|
|
714
734
|
} | undefined;
|
|
715
|
-
customFields?: {
|
|
716
|
-
type: "text" | "textarea" | "checkbox" | "select" | "email";
|
|
717
|
-
required: boolean;
|
|
718
|
-
label: string;
|
|
719
|
-
name: string;
|
|
720
|
-
options?: {
|
|
721
|
-
value: string;
|
|
722
|
-
label: string;
|
|
723
|
-
}[] | undefined;
|
|
724
|
-
placeholder?: string | undefined;
|
|
725
|
-
pattern?: string | undefined;
|
|
726
|
-
}[] | undefined;
|
|
727
735
|
expirationDays?: number | undefined;
|
|
728
736
|
metadata?: {
|
|
729
737
|
version?: number | undefined;
|
|
@@ -770,18 +778,25 @@ export declare const ConsentConfigAPIResponseSchema: z.ZodObject<{
|
|
|
770
778
|
verificationType?: "document" | "selfie" | "both" | undefined;
|
|
771
779
|
estimatedTime?: string | undefined;
|
|
772
780
|
} | undefined;
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
781
|
+
customFields?: {
|
|
782
|
+
name: string;
|
|
783
|
+
type: "email" | "text" | "textarea" | "checkbox" | "select";
|
|
784
|
+
required: boolean;
|
|
785
|
+
label: string;
|
|
786
|
+
options?: {
|
|
787
|
+
value: string;
|
|
788
|
+
label: string;
|
|
789
|
+
}[] | undefined;
|
|
790
|
+
placeholder?: string | undefined;
|
|
791
|
+
pattern?: string | undefined;
|
|
792
|
+
}[] | undefined;
|
|
793
|
+
success?: {
|
|
794
|
+
title?: string | undefined;
|
|
795
|
+
description?: string | undefined;
|
|
796
|
+
showCredential?: boolean | undefined;
|
|
797
|
+
redirectUrl?: string | undefined;
|
|
798
|
+
redirectDelay?: number | undefined;
|
|
799
|
+
continueButtonText?: string | undefined;
|
|
785
800
|
} | undefined;
|
|
786
801
|
branding?: {
|
|
787
802
|
primaryColor?: string | undefined;
|
|
@@ -806,26 +821,19 @@ export declare const ConsentConfigAPIResponseSchema: z.ZodObject<{
|
|
|
806
821
|
version?: string | undefined;
|
|
807
822
|
required?: boolean | undefined;
|
|
808
823
|
} | undefined;
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
824
|
+
magicLink?: {
|
|
825
|
+
buttonText?: string | undefined;
|
|
826
|
+
enabled?: boolean | undefined;
|
|
827
|
+
emailLabel?: string | undefined;
|
|
828
|
+
emailPlaceholder?: string | undefined;
|
|
829
|
+
resendCooldown?: number | undefined;
|
|
830
|
+
} | undefined;
|
|
831
|
+
qrCode?: {
|
|
832
|
+
enabled?: boolean | undefined;
|
|
833
|
+
instructions?: string | undefined;
|
|
834
|
+
size?: number | undefined;
|
|
835
|
+
showManualEntry?: boolean | undefined;
|
|
816
836
|
} | undefined;
|
|
817
|
-
customFields?: {
|
|
818
|
-
type: "text" | "textarea" | "checkbox" | "select" | "email";
|
|
819
|
-
required: boolean;
|
|
820
|
-
label: string;
|
|
821
|
-
name: string;
|
|
822
|
-
options?: {
|
|
823
|
-
value: string;
|
|
824
|
-
label: string;
|
|
825
|
-
}[] | undefined;
|
|
826
|
-
placeholder?: string | undefined;
|
|
827
|
-
pattern?: string | undefined;
|
|
828
|
-
}[] | undefined;
|
|
829
837
|
expirationDays?: number | undefined;
|
|
830
838
|
metadata?: {
|
|
831
839
|
version?: number | undefined;
|
|
@@ -848,21 +856,21 @@ export declare const CredentialAuthRequestSchema: z.ZodObject<{
|
|
|
848
856
|
provider: z.ZodString;
|
|
849
857
|
remember_me: z.ZodOptional<z.ZodBoolean>;
|
|
850
858
|
}, "strip", z.ZodTypeAny, {
|
|
851
|
-
password: string;
|
|
852
859
|
provider: string;
|
|
853
860
|
agent_did: string;
|
|
854
861
|
session_id: string;
|
|
855
862
|
project_id: string;
|
|
856
863
|
username: string;
|
|
864
|
+
password: string;
|
|
857
865
|
csrf_token: string;
|
|
858
866
|
remember_me?: boolean | undefined;
|
|
859
867
|
}, {
|
|
860
|
-
password: string;
|
|
861
868
|
provider: string;
|
|
862
869
|
agent_did: string;
|
|
863
870
|
session_id: string;
|
|
864
871
|
project_id: string;
|
|
865
872
|
username: string;
|
|
873
|
+
password: string;
|
|
866
874
|
csrf_token: string;
|
|
867
875
|
remember_me?: boolean | undefined;
|
|
868
876
|
}>;
|
|
@@ -930,49 +938,49 @@ export declare const ConsentPageConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
930
938
|
}, "strip", z.ZodTypeAny, {
|
|
931
939
|
tool: string;
|
|
932
940
|
scopes: string[];
|
|
933
|
-
toolDescription: string;
|
|
934
941
|
agentDid: string;
|
|
935
942
|
sessionId: string;
|
|
936
943
|
projectId: string;
|
|
937
944
|
serverUrl: string;
|
|
938
|
-
|
|
945
|
+
toolDescription: string;
|
|
939
946
|
provider?: string | undefined;
|
|
947
|
+
autoClose?: boolean | undefined;
|
|
940
948
|
oauthRequired?: boolean | undefined;
|
|
941
949
|
oauthUrl?: string | undefined;
|
|
942
950
|
}, {
|
|
943
951
|
tool: string;
|
|
944
952
|
scopes: string[];
|
|
945
|
-
toolDescription: string;
|
|
946
953
|
agentDid: string;
|
|
947
954
|
sessionId: string;
|
|
948
955
|
projectId: string;
|
|
949
956
|
serverUrl: string;
|
|
950
|
-
|
|
957
|
+
toolDescription: string;
|
|
951
958
|
provider?: string | undefined;
|
|
959
|
+
autoClose?: boolean | undefined;
|
|
952
960
|
oauthRequired?: boolean | undefined;
|
|
953
961
|
oauthUrl?: string | undefined;
|
|
954
962
|
}>, {
|
|
955
963
|
tool: string;
|
|
956
964
|
scopes: string[];
|
|
957
|
-
toolDescription: string;
|
|
958
965
|
agentDid: string;
|
|
959
966
|
sessionId: string;
|
|
960
967
|
projectId: string;
|
|
961
968
|
serverUrl: string;
|
|
962
|
-
|
|
969
|
+
toolDescription: string;
|
|
963
970
|
provider?: string | undefined;
|
|
971
|
+
autoClose?: boolean | undefined;
|
|
964
972
|
oauthRequired?: boolean | undefined;
|
|
965
973
|
oauthUrl?: string | undefined;
|
|
966
974
|
}, {
|
|
967
975
|
tool: string;
|
|
968
976
|
scopes: string[];
|
|
969
|
-
toolDescription: string;
|
|
970
977
|
agentDid: string;
|
|
971
978
|
sessionId: string;
|
|
972
979
|
projectId: string;
|
|
973
980
|
serverUrl: string;
|
|
974
|
-
|
|
981
|
+
toolDescription: string;
|
|
975
982
|
provider?: string | undefined;
|
|
983
|
+
autoClose?: boolean | undefined;
|
|
976
984
|
oauthRequired?: boolean | undefined;
|
|
977
985
|
oauthUrl?: string | undefined;
|
|
978
986
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api.schemas.d.ts","sourceRoot":"","sources":["../../src/schemas/api.schemas.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB;;GAEG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;EAW9B,CAAC;AAEH,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAE1E;;;;;GAKG;AACH,eAAO,MAAM,4BAA4B
|
|
1
|
+
{"version":3,"file":"api.schemas.d.ts","sourceRoot":"","sources":["../../src/schemas/api.schemas.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB;;GAEG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;EAW9B,CAAC;AAEH,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAE1E;;;;;GAKG;AACH,eAAO,MAAM,4BAA4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.max(500)
|
|
48
48
|
.optional(),
|
|
49
|
+
/**
|
|
50
|
+
* Human-readable user identifier from credential authentication.
|
|
51
|
+
* This is separate from user_did (cryptographic identity) and used for UX display.
|
|
52
|
+
* Examples: email address, username, or other provider-specific identifier.
|
|
53
|
+
*/
|
|
54
|
+
credential_user_id: z.string().max(200).optional(),
|
|
49
55
|
});
|
|
50
56
|
/**
|
|
51
57
|
* Consent Approval Response Schema
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api.schemas.js","sourceRoot":"","sources":["../../src/schemas/api.schemas.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,2BAA2B,EAAE,MAAM,qBAAqB,CAAC;AAElE;;GAEG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC1C,QAAQ,EAAE,CAAC;SACR,MAAM,EAAE;SACR,GAAG,CAAC,CAAC,EAAE,sBAAsB,CAAC;SAC9B,GAAG,CAAC,EAAE,EAAE,6CAA6C,CAAC;IACzD,OAAO,EAAE,CAAC;SACP,MAAM,EAAE;SACR,GAAG,CAAC,CAAC,EAAE,qBAAqB,CAAC;SAC7B,GAAG,CAAC,GAAG,EAAE,wCAAwC,CAAC;IACrD,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE;IAC7C,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE;CACrC,CAAC,CAAC;AAIH;;;;;GAKG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAAC,CAAC,MAAM,CAAC;IACnD,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,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@ export interface ConsentApprovalRequest {
|
|
|
63
63
|
oauth_identity?: OAuthIdentity | null;
|
|
64
64
|
/** User DID for persistent identity (optional) */
|
|
65
65
|
user_did?: string;
|
|
66
|
+
/**
|
|
67
|
+
* Human-readable user identifier from credential authentication.
|
|
68
|
+
* This is separate from user_did (cryptographic identity) and used for UX display.
|
|
69
|
+
* Examples: email address, username, or other provider-specific identifier.
|
|
70
|
+
*/
|
|
71
|
+
credential_user_id?: string;
|
|
66
72
|
}
|
|
67
73
|
/**
|
|
68
74
|
* Consent Approval Response
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api.types.d.ts","sourceRoot":"","sources":["../../src/types/api.types.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAEjD;;;;;GAKG;AACH,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;;OAGG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED;;;;;;GAMG;AACH,MAAM,WAAW,sBAAsB;IACrC,gBAAgB;IAChB,IAAI,EAAE,MAAM,CAAC;IAEb,sBAAsB;IACtB,MAAM,EAAE,MAAM,EAAE,CAAC;IAEjB,mDAAmD;IACnD,SAAS,EAAE,MAAM,CAAC;IAElB,oDAAoD;IACpD,UAAU,EAAE,MAAM,CAAC;IAEnB,oDAAoD;IACpD,UAAU,EAAE,MAAM,CAAC;IAEnB,4DAA4D;IAC5D,SAAS,CAAC,EAAE,QAAQ,CAAC;IAErB,yCAAyC;IACzC,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB,kCAAkC;IAClC,aAAa,EAAE,OAAO,CAAC;IAEvB,oCAAoC;IACpC,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB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