@kya-os/consent 0.1.14 → 0.1.16
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/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/inline.js +2 -2
- package/dist/cjs/bundle/inline.js.map +1 -1
- package/dist/cjs/components/mcp-consent.js +1 -1
- package/dist/cjs/components/mcp-consent.js.map +1 -1
- package/dist/cjs/schemas/api.schemas.js +6 -0
- package/dist/cjs/schemas/api.schemas.js.map +1 -1
- package/dist/components/mcp-consent.d.ts +1 -0
- package/dist/components/mcp-consent.d.ts.map +1 -1
- package/dist/components/mcp-consent.js +1 -1
- package/dist/components/mcp-consent.js.map +1 -1
- package/dist/consent.js +1 -1
- package/dist/consent.min.js +13 -13
- package/dist/schemas/api.schemas.d.ts +126 -118
- 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/schemas/config.schemas.d.ts +116 -116
- package/dist/schemas/modes.schemas.d.ts +28 -28
- package/dist/types/api.types.d.ts +6 -0
- package/dist/types/api.types.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -60,15 +60,22 @@ 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[];
|
|
72
|
+
termsAccepted: boolean;
|
|
66
73
|
agent_did: string;
|
|
67
74
|
session_id: string;
|
|
68
75
|
project_id: string;
|
|
69
76
|
auth_mode: "consent-only" | "credentials" | "oauth" | "magic-link" | "otp" | "qr-code" | "passkey" | "idv";
|
|
70
77
|
provider_type: string;
|
|
71
|
-
|
|
78
|
+
user_did?: string | undefined;
|
|
72
79
|
customFields?: Record<string, string | boolean> | undefined;
|
|
73
80
|
termsVersion?: string | undefined;
|
|
74
81
|
oauth_identity?: {
|
|
@@ -77,17 +84,18 @@ export declare const ConsentApprovalRequestSchema: z.ZodObject<{
|
|
|
77
84
|
email?: string | undefined;
|
|
78
85
|
name?: string | undefined;
|
|
79
86
|
} | null | undefined;
|
|
80
|
-
|
|
87
|
+
credential_user_id?: string | undefined;
|
|
81
88
|
}, {
|
|
82
89
|
tool: string;
|
|
83
90
|
scopes: string[];
|
|
91
|
+
termsAccepted: boolean;
|
|
84
92
|
agent_did: string;
|
|
85
93
|
session_id: string;
|
|
86
94
|
project_id: string;
|
|
87
|
-
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;
|
|
97
|
+
user_did?: string | undefined;
|
|
98
|
+
customFields?: Record<string, string | boolean> | undefined;
|
|
91
99
|
termsVersion?: string | undefined;
|
|
92
100
|
oauth_identity?: {
|
|
93
101
|
provider: string;
|
|
@@ -95,7 +103,7 @@ export declare const ConsentApprovalRequestSchema: z.ZodObject<{
|
|
|
95
103
|
email?: string | undefined;
|
|
96
104
|
name?: string | undefined;
|
|
97
105
|
} | null | undefined;
|
|
98
|
-
|
|
106
|
+
credential_user_id?: string | undefined;
|
|
99
107
|
}>;
|
|
100
108
|
export type ConsentApprovalRequestSchemaType = z.infer<typeof ConsentApprovalRequestSchema>;
|
|
101
109
|
/**
|
|
@@ -109,27 +117,27 @@ export declare const ConsentApprovalResponseSchema: z.ZodEffects<z.ZodObject<{
|
|
|
109
117
|
error_code: z.ZodOptional<z.ZodString>;
|
|
110
118
|
}, "strip", z.ZodTypeAny, {
|
|
111
119
|
success: boolean;
|
|
120
|
+
error?: string | undefined;
|
|
112
121
|
delegation_id?: string | undefined;
|
|
113
122
|
delegation_token?: string | undefined;
|
|
114
|
-
error?: string | undefined;
|
|
115
123
|
error_code?: string | undefined;
|
|
116
124
|
}, {
|
|
117
125
|
success: boolean;
|
|
126
|
+
error?: string | undefined;
|
|
118
127
|
delegation_id?: string | undefined;
|
|
119
128
|
delegation_token?: string | undefined;
|
|
120
|
-
error?: string | undefined;
|
|
121
129
|
error_code?: string | undefined;
|
|
122
130
|
}>, {
|
|
123
131
|
success: boolean;
|
|
132
|
+
error?: string | undefined;
|
|
124
133
|
delegation_id?: string | undefined;
|
|
125
134
|
delegation_token?: string | undefined;
|
|
126
|
-
error?: string | undefined;
|
|
127
135
|
error_code?: string | undefined;
|
|
128
136
|
}, {
|
|
129
137
|
success: boolean;
|
|
138
|
+
error?: string | undefined;
|
|
130
139
|
delegation_id?: string | undefined;
|
|
131
140
|
delegation_token?: string | undefined;
|
|
132
|
-
error?: string | undefined;
|
|
133
141
|
error_code?: string | undefined;
|
|
134
142
|
}>;
|
|
135
143
|
export type ConsentApprovalResponseSchemaType = z.infer<typeof ConsentApprovalResponseSchema>;
|
|
@@ -210,17 +218,17 @@ export declare const ConsentConfigAPIResponseSchema: z.ZodObject<{
|
|
|
210
218
|
redirectDelay: z.ZodOptional<z.ZodNumber>;
|
|
211
219
|
continueButtonText: z.ZodOptional<z.ZodString>;
|
|
212
220
|
}, "strip", z.ZodTypeAny, {
|
|
221
|
+
redirectUrl?: string | undefined;
|
|
213
222
|
title?: string | undefined;
|
|
214
223
|
description?: string | undefined;
|
|
215
224
|
showCredential?: boolean | undefined;
|
|
216
|
-
redirectUrl?: string | undefined;
|
|
217
225
|
redirectDelay?: number | undefined;
|
|
218
226
|
continueButtonText?: string | undefined;
|
|
219
227
|
}, {
|
|
228
|
+
redirectUrl?: string | undefined;
|
|
220
229
|
title?: string | undefined;
|
|
221
230
|
description?: string | undefined;
|
|
222
231
|
showCredential?: boolean | undefined;
|
|
223
|
-
redirectUrl?: string | undefined;
|
|
224
232
|
redirectDelay?: number | undefined;
|
|
225
233
|
continueButtonText?: string | undefined;
|
|
226
234
|
}>>;
|
|
@@ -242,7 +250,7 @@ export declare const ConsentConfigAPIResponseSchema: z.ZodObject<{
|
|
|
242
250
|
}>, "many">>;
|
|
243
251
|
pattern: z.ZodOptional<z.ZodString>;
|
|
244
252
|
}, "strip", z.ZodTypeAny, {
|
|
245
|
-
type: "
|
|
253
|
+
type: "email" | "text" | "textarea" | "checkbox" | "select";
|
|
246
254
|
required: boolean;
|
|
247
255
|
label: string;
|
|
248
256
|
name: string;
|
|
@@ -253,7 +261,7 @@ export declare const ConsentConfigAPIResponseSchema: z.ZodObject<{
|
|
|
253
261
|
placeholder?: string | undefined;
|
|
254
262
|
pattern?: string | undefined;
|
|
255
263
|
}, {
|
|
256
|
-
type: "
|
|
264
|
+
type: "email" | "text" | "textarea" | "checkbox" | "select";
|
|
257
265
|
required: boolean;
|
|
258
266
|
label: string;
|
|
259
267
|
name: string;
|
|
@@ -264,7 +272,7 @@ export declare const ConsentConfigAPIResponseSchema: z.ZodObject<{
|
|
|
264
272
|
placeholder?: string | undefined;
|
|
265
273
|
pattern?: string | undefined;
|
|
266
274
|
}>, {
|
|
267
|
-
type: "
|
|
275
|
+
type: "email" | "text" | "textarea" | "checkbox" | "select";
|
|
268
276
|
required: boolean;
|
|
269
277
|
label: string;
|
|
270
278
|
name: string;
|
|
@@ -275,7 +283,7 @@ export declare const ConsentConfigAPIResponseSchema: z.ZodObject<{
|
|
|
275
283
|
placeholder?: string | undefined;
|
|
276
284
|
pattern?: string | undefined;
|
|
277
285
|
}, {
|
|
278
|
-
type: "
|
|
286
|
+
type: "email" | "text" | "textarea" | "checkbox" | "select";
|
|
279
287
|
required: boolean;
|
|
280
288
|
label: string;
|
|
281
289
|
name: string;
|
|
@@ -295,21 +303,21 @@ export declare const ConsentConfigAPIResponseSchema: z.ZodObject<{
|
|
|
295
303
|
showForgotPassword: z.ZodOptional<z.ZodBoolean>;
|
|
296
304
|
forgotPasswordUrl: z.ZodOptional<z.ZodString>;
|
|
297
305
|
}, "strip", z.ZodTypeAny, {
|
|
306
|
+
showForgotPassword?: boolean | undefined;
|
|
307
|
+
forgotPasswordUrl?: string | undefined;
|
|
298
308
|
usernameLabel?: string | undefined;
|
|
299
309
|
usernamePlaceholder?: string | undefined;
|
|
300
310
|
passwordLabel?: string | undefined;
|
|
301
311
|
passwordPlaceholder?: string | undefined;
|
|
302
312
|
showRememberMe?: boolean | undefined;
|
|
313
|
+
}, {
|
|
303
314
|
showForgotPassword?: boolean | undefined;
|
|
304
315
|
forgotPasswordUrl?: string | undefined;
|
|
305
|
-
}, {
|
|
306
316
|
usernameLabel?: string | undefined;
|
|
307
317
|
usernamePlaceholder?: string | undefined;
|
|
308
318
|
passwordLabel?: string | undefined;
|
|
309
319
|
passwordPlaceholder?: string | undefined;
|
|
310
320
|
showRememberMe?: boolean | undefined;
|
|
311
|
-
showForgotPassword?: boolean | undefined;
|
|
312
|
-
forgotPasswordUrl?: string | undefined;
|
|
313
321
|
}>>;
|
|
314
322
|
oauth: z.ZodOptional<z.ZodObject<{
|
|
315
323
|
providerId: z.ZodOptional<z.ZodString>;
|
|
@@ -331,17 +339,17 @@ export declare const ConsentConfigAPIResponseSchema: z.ZodObject<{
|
|
|
331
339
|
buttonText: z.ZodOptional<z.ZodString>;
|
|
332
340
|
resendCooldown: z.ZodOptional<z.ZodNumber>;
|
|
333
341
|
}, "strip", z.ZodTypeAny, {
|
|
342
|
+
resendCooldown?: number | undefined;
|
|
334
343
|
buttonText?: string | undefined;
|
|
335
344
|
enabled?: boolean | undefined;
|
|
336
345
|
emailLabel?: string | undefined;
|
|
337
346
|
emailPlaceholder?: string | undefined;
|
|
338
|
-
resendCooldown?: number | undefined;
|
|
339
347
|
}, {
|
|
348
|
+
resendCooldown?: number | undefined;
|
|
340
349
|
buttonText?: string | undefined;
|
|
341
350
|
enabled?: boolean | undefined;
|
|
342
351
|
emailLabel?: string | undefined;
|
|
343
352
|
emailPlaceholder?: string | undefined;
|
|
344
|
-
resendCooldown?: number | undefined;
|
|
345
353
|
}>>;
|
|
346
354
|
otp: z.ZodOptional<z.ZodObject<{
|
|
347
355
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -351,19 +359,19 @@ export declare const ConsentConfigAPIResponseSchema: z.ZodObject<{
|
|
|
351
359
|
digits: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<4>, z.ZodLiteral<6>, z.ZodLiteral<8>]>>;
|
|
352
360
|
resendCooldown: z.ZodOptional<z.ZodNumber>;
|
|
353
361
|
}, "strip", z.ZodTypeAny, {
|
|
354
|
-
enabled?: boolean | undefined;
|
|
355
362
|
resendCooldown?: number | undefined;
|
|
363
|
+
enabled?: boolean | undefined;
|
|
356
364
|
phoneLabel?: string | undefined;
|
|
357
365
|
phonePlaceholder?: string | undefined;
|
|
358
366
|
instructions?: string | undefined;
|
|
359
|
-
digits?:
|
|
367
|
+
digits?: 4 | 6 | 8 | undefined;
|
|
360
368
|
}, {
|
|
361
|
-
enabled?: boolean | undefined;
|
|
362
369
|
resendCooldown?: number | undefined;
|
|
370
|
+
enabled?: boolean | undefined;
|
|
363
371
|
phoneLabel?: string | undefined;
|
|
364
372
|
phonePlaceholder?: string | undefined;
|
|
365
373
|
instructions?: string | undefined;
|
|
366
|
-
digits?:
|
|
374
|
+
digits?: 4 | 6 | 8 | undefined;
|
|
367
375
|
}>>;
|
|
368
376
|
qrCode: z.ZodOptional<z.ZodObject<{
|
|
369
377
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -433,13 +441,13 @@ export declare const ConsentConfigAPIResponseSchema: z.ZodObject<{
|
|
|
433
441
|
}>>;
|
|
434
442
|
}, "strip", z.ZodTypeAny, {
|
|
435
443
|
credentials?: {
|
|
444
|
+
showForgotPassword?: boolean | undefined;
|
|
445
|
+
forgotPasswordUrl?: string | undefined;
|
|
436
446
|
usernameLabel?: string | undefined;
|
|
437
447
|
usernamePlaceholder?: string | undefined;
|
|
438
448
|
passwordLabel?: string | undefined;
|
|
439
449
|
passwordPlaceholder?: string | undefined;
|
|
440
450
|
showRememberMe?: boolean | undefined;
|
|
441
|
-
showForgotPassword?: boolean | undefined;
|
|
442
|
-
forgotPasswordUrl?: string | undefined;
|
|
443
451
|
} | undefined;
|
|
444
452
|
oauth?: {
|
|
445
453
|
providerId?: string | undefined;
|
|
@@ -447,12 +455,12 @@ export declare const ConsentConfigAPIResponseSchema: z.ZodObject<{
|
|
|
447
455
|
buttonText?: string | undefined;
|
|
448
456
|
} | undefined;
|
|
449
457
|
otp?: {
|
|
450
|
-
enabled?: boolean | undefined;
|
|
451
458
|
resendCooldown?: number | undefined;
|
|
459
|
+
enabled?: boolean | undefined;
|
|
452
460
|
phoneLabel?: string | undefined;
|
|
453
461
|
phonePlaceholder?: string | undefined;
|
|
454
462
|
instructions?: string | undefined;
|
|
455
|
-
digits?:
|
|
463
|
+
digits?: 4 | 6 | 8 | undefined;
|
|
456
464
|
} | undefined;
|
|
457
465
|
passkey?: {
|
|
458
466
|
buttonText?: string | undefined;
|
|
@@ -467,12 +475,26 @@ export declare const ConsentConfigAPIResponseSchema: z.ZodObject<{
|
|
|
467
475
|
verificationType?: "document" | "selfie" | "both" | undefined;
|
|
468
476
|
estimatedTime?: string | undefined;
|
|
469
477
|
} | undefined;
|
|
478
|
+
success?: {
|
|
479
|
+
redirectUrl?: string | undefined;
|
|
480
|
+
title?: string | undefined;
|
|
481
|
+
description?: string | undefined;
|
|
482
|
+
showCredential?: boolean | undefined;
|
|
483
|
+
redirectDelay?: number | undefined;
|
|
484
|
+
continueButtonText?: string | undefined;
|
|
485
|
+
} | undefined;
|
|
486
|
+
terms?: {
|
|
487
|
+
text?: string | undefined;
|
|
488
|
+
url?: string | undefined;
|
|
489
|
+
version?: string | undefined;
|
|
490
|
+
required?: boolean | undefined;
|
|
491
|
+
} | undefined;
|
|
470
492
|
magicLink?: {
|
|
493
|
+
resendCooldown?: number | undefined;
|
|
471
494
|
buttonText?: string | undefined;
|
|
472
495
|
enabled?: boolean | undefined;
|
|
473
496
|
emailLabel?: string | undefined;
|
|
474
497
|
emailPlaceholder?: string | undefined;
|
|
475
|
-
resendCooldown?: number | undefined;
|
|
476
498
|
} | undefined;
|
|
477
499
|
qrCode?: {
|
|
478
500
|
enabled?: boolean | undefined;
|
|
@@ -497,22 +519,8 @@ export declare const ConsentConfigAPIResponseSchema: z.ZodObject<{
|
|
|
497
519
|
popupEnabled?: boolean | undefined;
|
|
498
520
|
theme?: "light" | "dark" | "auto" | undefined;
|
|
499
521
|
} | undefined;
|
|
500
|
-
terms?: {
|
|
501
|
-
text?: string | undefined;
|
|
502
|
-
url?: string | undefined;
|
|
503
|
-
version?: string | undefined;
|
|
504
|
-
required?: boolean | undefined;
|
|
505
|
-
} | undefined;
|
|
506
|
-
success?: {
|
|
507
|
-
title?: string | undefined;
|
|
508
|
-
description?: string | undefined;
|
|
509
|
-
showCredential?: boolean | undefined;
|
|
510
|
-
redirectUrl?: string | undefined;
|
|
511
|
-
redirectDelay?: number | undefined;
|
|
512
|
-
continueButtonText?: string | undefined;
|
|
513
|
-
} | undefined;
|
|
514
522
|
customFields?: {
|
|
515
|
-
type: "
|
|
523
|
+
type: "email" | "text" | "textarea" | "checkbox" | "select";
|
|
516
524
|
required: boolean;
|
|
517
525
|
label: string;
|
|
518
526
|
name: string;
|
|
@@ -531,13 +539,13 @@ export declare const ConsentConfigAPIResponseSchema: z.ZodObject<{
|
|
|
531
539
|
} | undefined;
|
|
532
540
|
}, {
|
|
533
541
|
credentials?: {
|
|
542
|
+
showForgotPassword?: boolean | undefined;
|
|
543
|
+
forgotPasswordUrl?: string | undefined;
|
|
534
544
|
usernameLabel?: string | undefined;
|
|
535
545
|
usernamePlaceholder?: string | undefined;
|
|
536
546
|
passwordLabel?: string | undefined;
|
|
537
547
|
passwordPlaceholder?: string | undefined;
|
|
538
548
|
showRememberMe?: boolean | undefined;
|
|
539
|
-
showForgotPassword?: boolean | undefined;
|
|
540
|
-
forgotPasswordUrl?: string | undefined;
|
|
541
549
|
} | undefined;
|
|
542
550
|
oauth?: {
|
|
543
551
|
providerId?: string | undefined;
|
|
@@ -545,12 +553,12 @@ export declare const ConsentConfigAPIResponseSchema: z.ZodObject<{
|
|
|
545
553
|
buttonText?: string | undefined;
|
|
546
554
|
} | undefined;
|
|
547
555
|
otp?: {
|
|
548
|
-
enabled?: boolean | undefined;
|
|
549
556
|
resendCooldown?: number | undefined;
|
|
557
|
+
enabled?: boolean | undefined;
|
|
550
558
|
phoneLabel?: string | undefined;
|
|
551
559
|
phonePlaceholder?: string | undefined;
|
|
552
560
|
instructions?: string | undefined;
|
|
553
|
-
digits?:
|
|
561
|
+
digits?: 4 | 6 | 8 | undefined;
|
|
554
562
|
} | undefined;
|
|
555
563
|
passkey?: {
|
|
556
564
|
buttonText?: string | undefined;
|
|
@@ -565,12 +573,26 @@ export declare const ConsentConfigAPIResponseSchema: z.ZodObject<{
|
|
|
565
573
|
verificationType?: "document" | "selfie" | "both" | undefined;
|
|
566
574
|
estimatedTime?: string | undefined;
|
|
567
575
|
} | undefined;
|
|
576
|
+
success?: {
|
|
577
|
+
redirectUrl?: string | undefined;
|
|
578
|
+
title?: string | undefined;
|
|
579
|
+
description?: string | undefined;
|
|
580
|
+
showCredential?: boolean | undefined;
|
|
581
|
+
redirectDelay?: number | undefined;
|
|
582
|
+
continueButtonText?: string | undefined;
|
|
583
|
+
} | undefined;
|
|
584
|
+
terms?: {
|
|
585
|
+
text?: string | undefined;
|
|
586
|
+
url?: string | undefined;
|
|
587
|
+
version?: string | undefined;
|
|
588
|
+
required?: boolean | undefined;
|
|
589
|
+
} | undefined;
|
|
568
590
|
magicLink?: {
|
|
591
|
+
resendCooldown?: number | undefined;
|
|
569
592
|
buttonText?: string | undefined;
|
|
570
593
|
enabled?: boolean | undefined;
|
|
571
594
|
emailLabel?: string | undefined;
|
|
572
595
|
emailPlaceholder?: string | undefined;
|
|
573
|
-
resendCooldown?: number | undefined;
|
|
574
596
|
} | undefined;
|
|
575
597
|
qrCode?: {
|
|
576
598
|
enabled?: boolean | undefined;
|
|
@@ -595,22 +617,8 @@ export declare const ConsentConfigAPIResponseSchema: z.ZodObject<{
|
|
|
595
617
|
popupEnabled?: boolean | undefined;
|
|
596
618
|
theme?: "light" | "dark" | "auto" | undefined;
|
|
597
619
|
} | undefined;
|
|
598
|
-
terms?: {
|
|
599
|
-
text?: string | undefined;
|
|
600
|
-
url?: string | undefined;
|
|
601
|
-
version?: string | undefined;
|
|
602
|
-
required?: boolean | undefined;
|
|
603
|
-
} | undefined;
|
|
604
|
-
success?: {
|
|
605
|
-
title?: string | undefined;
|
|
606
|
-
description?: string | undefined;
|
|
607
|
-
showCredential?: boolean | undefined;
|
|
608
|
-
redirectUrl?: string | undefined;
|
|
609
|
-
redirectDelay?: number | undefined;
|
|
610
|
-
continueButtonText?: string | undefined;
|
|
611
|
-
} | undefined;
|
|
612
620
|
customFields?: {
|
|
613
|
-
type: "
|
|
621
|
+
type: "email" | "text" | "textarea" | "checkbox" | "select";
|
|
614
622
|
required: boolean;
|
|
615
623
|
label: string;
|
|
616
624
|
name: string;
|
|
@@ -634,13 +642,13 @@ export declare const ConsentConfigAPIResponseSchema: z.ZodObject<{
|
|
|
634
642
|
error?: string | undefined;
|
|
635
643
|
data?: {
|
|
636
644
|
credentials?: {
|
|
645
|
+
showForgotPassword?: boolean | undefined;
|
|
646
|
+
forgotPasswordUrl?: string | undefined;
|
|
637
647
|
usernameLabel?: string | undefined;
|
|
638
648
|
usernamePlaceholder?: string | undefined;
|
|
639
649
|
passwordLabel?: string | undefined;
|
|
640
650
|
passwordPlaceholder?: string | undefined;
|
|
641
651
|
showRememberMe?: boolean | undefined;
|
|
642
|
-
showForgotPassword?: boolean | undefined;
|
|
643
|
-
forgotPasswordUrl?: string | undefined;
|
|
644
652
|
} | undefined;
|
|
645
653
|
oauth?: {
|
|
646
654
|
providerId?: string | undefined;
|
|
@@ -648,12 +656,12 @@ export declare const ConsentConfigAPIResponseSchema: z.ZodObject<{
|
|
|
648
656
|
buttonText?: string | undefined;
|
|
649
657
|
} | undefined;
|
|
650
658
|
otp?: {
|
|
651
|
-
enabled?: boolean | undefined;
|
|
652
659
|
resendCooldown?: number | undefined;
|
|
660
|
+
enabled?: boolean | undefined;
|
|
653
661
|
phoneLabel?: string | undefined;
|
|
654
662
|
phonePlaceholder?: string | undefined;
|
|
655
663
|
instructions?: string | undefined;
|
|
656
|
-
digits?:
|
|
664
|
+
digits?: 4 | 6 | 8 | undefined;
|
|
657
665
|
} | undefined;
|
|
658
666
|
passkey?: {
|
|
659
667
|
buttonText?: string | undefined;
|
|
@@ -668,12 +676,26 @@ export declare const ConsentConfigAPIResponseSchema: z.ZodObject<{
|
|
|
668
676
|
verificationType?: "document" | "selfie" | "both" | undefined;
|
|
669
677
|
estimatedTime?: string | undefined;
|
|
670
678
|
} | undefined;
|
|
679
|
+
success?: {
|
|
680
|
+
redirectUrl?: string | undefined;
|
|
681
|
+
title?: string | undefined;
|
|
682
|
+
description?: string | undefined;
|
|
683
|
+
showCredential?: boolean | undefined;
|
|
684
|
+
redirectDelay?: number | undefined;
|
|
685
|
+
continueButtonText?: string | undefined;
|
|
686
|
+
} | undefined;
|
|
687
|
+
terms?: {
|
|
688
|
+
text?: string | undefined;
|
|
689
|
+
url?: string | undefined;
|
|
690
|
+
version?: string | undefined;
|
|
691
|
+
required?: boolean | undefined;
|
|
692
|
+
} | undefined;
|
|
671
693
|
magicLink?: {
|
|
694
|
+
resendCooldown?: number | undefined;
|
|
672
695
|
buttonText?: string | undefined;
|
|
673
696
|
enabled?: boolean | undefined;
|
|
674
697
|
emailLabel?: string | undefined;
|
|
675
698
|
emailPlaceholder?: string | undefined;
|
|
676
|
-
resendCooldown?: number | undefined;
|
|
677
699
|
} | undefined;
|
|
678
700
|
qrCode?: {
|
|
679
701
|
enabled?: boolean | undefined;
|
|
@@ -698,22 +720,8 @@ export declare const ConsentConfigAPIResponseSchema: z.ZodObject<{
|
|
|
698
720
|
popupEnabled?: boolean | undefined;
|
|
699
721
|
theme?: "light" | "dark" | "auto" | undefined;
|
|
700
722
|
} | undefined;
|
|
701
|
-
terms?: {
|
|
702
|
-
text?: string | undefined;
|
|
703
|
-
url?: string | undefined;
|
|
704
|
-
version?: string | undefined;
|
|
705
|
-
required?: boolean | undefined;
|
|
706
|
-
} | undefined;
|
|
707
|
-
success?: {
|
|
708
|
-
title?: string | undefined;
|
|
709
|
-
description?: string | undefined;
|
|
710
|
-
showCredential?: boolean | undefined;
|
|
711
|
-
redirectUrl?: string | undefined;
|
|
712
|
-
redirectDelay?: number | undefined;
|
|
713
|
-
continueButtonText?: string | undefined;
|
|
714
|
-
} | undefined;
|
|
715
723
|
customFields?: {
|
|
716
|
-
type: "
|
|
724
|
+
type: "email" | "text" | "textarea" | "checkbox" | "select";
|
|
717
725
|
required: boolean;
|
|
718
726
|
label: string;
|
|
719
727
|
name: string;
|
|
@@ -736,13 +744,13 @@ export declare const ConsentConfigAPIResponseSchema: z.ZodObject<{
|
|
|
736
744
|
error?: string | undefined;
|
|
737
745
|
data?: {
|
|
738
746
|
credentials?: {
|
|
747
|
+
showForgotPassword?: boolean | undefined;
|
|
748
|
+
forgotPasswordUrl?: string | undefined;
|
|
739
749
|
usernameLabel?: string | undefined;
|
|
740
750
|
usernamePlaceholder?: string | undefined;
|
|
741
751
|
passwordLabel?: string | undefined;
|
|
742
752
|
passwordPlaceholder?: string | undefined;
|
|
743
753
|
showRememberMe?: boolean | undefined;
|
|
744
|
-
showForgotPassword?: boolean | undefined;
|
|
745
|
-
forgotPasswordUrl?: string | undefined;
|
|
746
754
|
} | undefined;
|
|
747
755
|
oauth?: {
|
|
748
756
|
providerId?: string | undefined;
|
|
@@ -750,12 +758,12 @@ export declare const ConsentConfigAPIResponseSchema: z.ZodObject<{
|
|
|
750
758
|
buttonText?: string | undefined;
|
|
751
759
|
} | undefined;
|
|
752
760
|
otp?: {
|
|
753
|
-
enabled?: boolean | undefined;
|
|
754
761
|
resendCooldown?: number | undefined;
|
|
762
|
+
enabled?: boolean | undefined;
|
|
755
763
|
phoneLabel?: string | undefined;
|
|
756
764
|
phonePlaceholder?: string | undefined;
|
|
757
765
|
instructions?: string | undefined;
|
|
758
|
-
digits?:
|
|
766
|
+
digits?: 4 | 6 | 8 | undefined;
|
|
759
767
|
} | undefined;
|
|
760
768
|
passkey?: {
|
|
761
769
|
buttonText?: string | undefined;
|
|
@@ -770,12 +778,26 @@ export declare const ConsentConfigAPIResponseSchema: z.ZodObject<{
|
|
|
770
778
|
verificationType?: "document" | "selfie" | "both" | undefined;
|
|
771
779
|
estimatedTime?: string | undefined;
|
|
772
780
|
} | undefined;
|
|
781
|
+
success?: {
|
|
782
|
+
redirectUrl?: string | undefined;
|
|
783
|
+
title?: string | undefined;
|
|
784
|
+
description?: string | undefined;
|
|
785
|
+
showCredential?: boolean | undefined;
|
|
786
|
+
redirectDelay?: number | undefined;
|
|
787
|
+
continueButtonText?: string | undefined;
|
|
788
|
+
} | undefined;
|
|
789
|
+
terms?: {
|
|
790
|
+
text?: string | undefined;
|
|
791
|
+
url?: string | undefined;
|
|
792
|
+
version?: string | undefined;
|
|
793
|
+
required?: boolean | undefined;
|
|
794
|
+
} | undefined;
|
|
773
795
|
magicLink?: {
|
|
796
|
+
resendCooldown?: number | undefined;
|
|
774
797
|
buttonText?: string | undefined;
|
|
775
798
|
enabled?: boolean | undefined;
|
|
776
799
|
emailLabel?: string | undefined;
|
|
777
800
|
emailPlaceholder?: string | undefined;
|
|
778
|
-
resendCooldown?: number | undefined;
|
|
779
801
|
} | undefined;
|
|
780
802
|
qrCode?: {
|
|
781
803
|
enabled?: boolean | undefined;
|
|
@@ -800,22 +822,8 @@ export declare const ConsentConfigAPIResponseSchema: z.ZodObject<{
|
|
|
800
822
|
popupEnabled?: boolean | undefined;
|
|
801
823
|
theme?: "light" | "dark" | "auto" | undefined;
|
|
802
824
|
} | undefined;
|
|
803
|
-
terms?: {
|
|
804
|
-
text?: string | undefined;
|
|
805
|
-
url?: string | undefined;
|
|
806
|
-
version?: string | undefined;
|
|
807
|
-
required?: boolean | undefined;
|
|
808
|
-
} | undefined;
|
|
809
|
-
success?: {
|
|
810
|
-
title?: string | undefined;
|
|
811
|
-
description?: string | undefined;
|
|
812
|
-
showCredential?: boolean | undefined;
|
|
813
|
-
redirectUrl?: string | undefined;
|
|
814
|
-
redirectDelay?: number | undefined;
|
|
815
|
-
continueButtonText?: string | undefined;
|
|
816
|
-
} | undefined;
|
|
817
825
|
customFields?: {
|
|
818
|
-
type: "
|
|
826
|
+
type: "email" | "text" | "textarea" | "checkbox" | "select";
|
|
819
827
|
required: boolean;
|
|
820
828
|
label: string;
|
|
821
829
|
name: string;
|
|
@@ -848,22 +856,22 @@ 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;
|
|
860
|
+
password: string;
|
|
853
861
|
agent_did: string;
|
|
854
862
|
session_id: string;
|
|
855
863
|
project_id: string;
|
|
856
|
-
username: string;
|
|
857
864
|
csrf_token: string;
|
|
865
|
+
username: string;
|
|
858
866
|
remember_me?: boolean | undefined;
|
|
859
867
|
}, {
|
|
860
|
-
password: string;
|
|
861
868
|
provider: string;
|
|
869
|
+
password: string;
|
|
862
870
|
agent_did: string;
|
|
863
871
|
session_id: string;
|
|
864
872
|
project_id: string;
|
|
865
|
-
username: string;
|
|
866
873
|
csrf_token: string;
|
|
874
|
+
username: string;
|
|
867
875
|
remember_me?: boolean | undefined;
|
|
868
876
|
}>;
|
|
869
877
|
export type CredentialAuthRequestSchemaType = z.infer<typeof CredentialAuthRequestSchema>;
|
|
@@ -892,23 +900,23 @@ export declare const CredentialAuthResponseSchema: z.ZodObject<{
|
|
|
892
900
|
error_code: z.ZodOptional<z.ZodString>;
|
|
893
901
|
}, "strip", z.ZodTypeAny, {
|
|
894
902
|
success: boolean;
|
|
903
|
+
error?: string | undefined;
|
|
895
904
|
oauth_identity?: {
|
|
896
905
|
provider: string;
|
|
897
906
|
subject: string;
|
|
898
907
|
email?: string | undefined;
|
|
899
908
|
name?: string | undefined;
|
|
900
909
|
} | undefined;
|
|
901
|
-
error?: string | undefined;
|
|
902
910
|
error_code?: string | undefined;
|
|
903
911
|
}, {
|
|
904
912
|
success: boolean;
|
|
913
|
+
error?: string | undefined;
|
|
905
914
|
oauth_identity?: {
|
|
906
915
|
provider: string;
|
|
907
916
|
subject: string;
|
|
908
917
|
email?: string | undefined;
|
|
909
918
|
name?: string | undefined;
|
|
910
919
|
} | undefined;
|
|
911
|
-
error?: string | undefined;
|
|
912
920
|
error_code?: string | undefined;
|
|
913
921
|
}>;
|
|
914
922
|
export type CredentialAuthResponseSchemaType = z.infer<typeof CredentialAuthResponseSchema>;
|
|
@@ -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;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,CAAC,CAAC,mBAAmB,CAAC,OAAO,EAAE,iCAAiC,CAAC,CAEnE;AAED,wBAAgB,qBAAqB,CACnC,QAAQ,EAAE,OAAO,GAChB,CAAC,CAAC,mBAAmB,CAAC,OAAO,EAAE,uBAAuB,CAAC,CAEzD;AAED,wBAAgB,yBAAyB,CACvC,MAAM,EAAE,OAAO,GACd,CAAC,CAAC,mBAAmB,CAAC,OAAO,EAAE,2BAA2B,CAAC,CAE7D"}
|
|
@@ -46,6 +46,12 @@ export const ConsentApprovalRequestSchema = z.object({
|
|
|
46
46
|
.regex(/^did:/, "Must be a valid DID format")
|
|
47
47
|
.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
|