@kya-os/consent 0.1.4 → 0.1.6
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/components/mcp-consent.d.ts +19 -0
- package/dist/components/mcp-consent.d.ts.map +1 -1
- package/dist/components/mcp-consent.js +25 -1
- package/dist/components/mcp-consent.js.map +1 -1
- package/dist/consent.js +27 -8
- package/dist/schemas/api.schemas.d.ts +159 -159
- package/dist/schemas/config.schemas.d.ts +160 -160
- package/dist/schemas/modes.schemas.d.ts +28 -28
- package/dist/types/modes.types.d.ts +45 -8
- package/dist/types/modes.types.d.ts.map +1 -1
- package/dist/types/modes.types.js +45 -8
- package/dist/types/modes.types.js.map +1 -1
- package/package.json +1 -1
|
@@ -63,14 +63,14 @@ export declare const ConsentApprovalRequestSchema: z.ZodObject<{
|
|
|
63
63
|
}, "strip", z.ZodTypeAny, {
|
|
64
64
|
tool: string;
|
|
65
65
|
scopes: string[];
|
|
66
|
-
termsAccepted: boolean;
|
|
67
66
|
agent_did: string;
|
|
68
67
|
session_id: string;
|
|
69
68
|
project_id: string;
|
|
70
69
|
auth_mode: "consent-only" | "credentials" | "oauth" | "magic-link" | "otp" | "qr-code" | "passkey" | "idv";
|
|
71
70
|
provider_type: string;
|
|
72
|
-
|
|
71
|
+
termsAccepted: boolean;
|
|
73
72
|
termsVersion?: string | undefined;
|
|
73
|
+
customFields?: Record<string, string | boolean> | undefined;
|
|
74
74
|
oauth_identity?: {
|
|
75
75
|
provider: string;
|
|
76
76
|
subject: string;
|
|
@@ -81,14 +81,14 @@ export declare const ConsentApprovalRequestSchema: z.ZodObject<{
|
|
|
81
81
|
}, {
|
|
82
82
|
tool: string;
|
|
83
83
|
scopes: string[];
|
|
84
|
-
termsAccepted: boolean;
|
|
85
84
|
agent_did: string;
|
|
86
85
|
session_id: string;
|
|
87
86
|
project_id: string;
|
|
87
|
+
termsAccepted: boolean;
|
|
88
88
|
auth_mode?: "consent-only" | "credentials" | "oauth" | "magic-link" | "otp" | "qr-code" | "passkey" | "idv" | undefined;
|
|
89
89
|
provider_type?: string | undefined;
|
|
90
|
-
customFields?: Record<string, string | boolean> | undefined;
|
|
91
90
|
termsVersion?: string | undefined;
|
|
91
|
+
customFields?: Record<string, string | boolean> | undefined;
|
|
92
92
|
oauth_identity?: {
|
|
93
93
|
provider: string;
|
|
94
94
|
subject: string;
|
|
@@ -109,27 +109,27 @@ export declare const ConsentApprovalResponseSchema: z.ZodEffects<z.ZodObject<{
|
|
|
109
109
|
error_code: z.ZodOptional<z.ZodString>;
|
|
110
110
|
}, "strip", z.ZodTypeAny, {
|
|
111
111
|
success: boolean;
|
|
112
|
-
error?: string | undefined;
|
|
113
112
|
delegation_id?: string | undefined;
|
|
114
113
|
delegation_token?: string | undefined;
|
|
114
|
+
error?: string | undefined;
|
|
115
115
|
error_code?: string | undefined;
|
|
116
116
|
}, {
|
|
117
117
|
success: boolean;
|
|
118
|
-
error?: string | undefined;
|
|
119
118
|
delegation_id?: string | undefined;
|
|
120
119
|
delegation_token?: string | undefined;
|
|
120
|
+
error?: string | undefined;
|
|
121
121
|
error_code?: string | undefined;
|
|
122
122
|
}>, {
|
|
123
123
|
success: boolean;
|
|
124
|
-
error?: string | undefined;
|
|
125
124
|
delegation_id?: string | undefined;
|
|
126
125
|
delegation_token?: string | undefined;
|
|
126
|
+
error?: string | undefined;
|
|
127
127
|
error_code?: string | undefined;
|
|
128
128
|
}, {
|
|
129
129
|
success: boolean;
|
|
130
|
-
error?: string | undefined;
|
|
131
130
|
delegation_id?: string | undefined;
|
|
132
131
|
delegation_token?: string | undefined;
|
|
132
|
+
error?: string | undefined;
|
|
133
133
|
error_code?: string | undefined;
|
|
134
134
|
}>;
|
|
135
135
|
export type ConsentApprovalResponseSchemaType = z.infer<typeof ConsentApprovalResponseSchema>;
|
|
@@ -210,17 +210,17 @@ export declare const ConsentConfigAPIResponseSchema: z.ZodObject<{
|
|
|
210
210
|
redirectDelay: z.ZodOptional<z.ZodNumber>;
|
|
211
211
|
continueButtonText: z.ZodOptional<z.ZodString>;
|
|
212
212
|
}, "strip", z.ZodTypeAny, {
|
|
213
|
-
redirectUrl?: string | undefined;
|
|
214
213
|
title?: string | undefined;
|
|
215
214
|
description?: string | undefined;
|
|
216
215
|
showCredential?: boolean | undefined;
|
|
216
|
+
redirectUrl?: string | undefined;
|
|
217
217
|
redirectDelay?: number | undefined;
|
|
218
218
|
continueButtonText?: string | undefined;
|
|
219
219
|
}, {
|
|
220
|
-
redirectUrl?: string | undefined;
|
|
221
220
|
title?: string | undefined;
|
|
222
221
|
description?: string | undefined;
|
|
223
222
|
showCredential?: boolean | undefined;
|
|
223
|
+
redirectUrl?: string | undefined;
|
|
224
224
|
redirectDelay?: number | undefined;
|
|
225
225
|
continueButtonText?: string | undefined;
|
|
226
226
|
}>>;
|
|
@@ -243,9 +243,9 @@ export declare const ConsentConfigAPIResponseSchema: z.ZodObject<{
|
|
|
243
243
|
pattern: z.ZodOptional<z.ZodString>;
|
|
244
244
|
}, "strip", z.ZodTypeAny, {
|
|
245
245
|
type: "email" | "text" | "textarea" | "checkbox" | "select";
|
|
246
|
+
name: string;
|
|
246
247
|
required: boolean;
|
|
247
248
|
label: string;
|
|
248
|
-
name: string;
|
|
249
249
|
options?: {
|
|
250
250
|
value: string;
|
|
251
251
|
label: string;
|
|
@@ -254,9 +254,9 @@ export declare const ConsentConfigAPIResponseSchema: z.ZodObject<{
|
|
|
254
254
|
pattern?: string | undefined;
|
|
255
255
|
}, {
|
|
256
256
|
type: "email" | "text" | "textarea" | "checkbox" | "select";
|
|
257
|
+
name: string;
|
|
257
258
|
required: boolean;
|
|
258
259
|
label: string;
|
|
259
|
-
name: string;
|
|
260
260
|
options?: {
|
|
261
261
|
value: string;
|
|
262
262
|
label: string;
|
|
@@ -265,9 +265,9 @@ export declare const ConsentConfigAPIResponseSchema: z.ZodObject<{
|
|
|
265
265
|
pattern?: string | undefined;
|
|
266
266
|
}>, {
|
|
267
267
|
type: "email" | "text" | "textarea" | "checkbox" | "select";
|
|
268
|
+
name: string;
|
|
268
269
|
required: boolean;
|
|
269
270
|
label: string;
|
|
270
|
-
name: string;
|
|
271
271
|
options?: {
|
|
272
272
|
value: string;
|
|
273
273
|
label: string;
|
|
@@ -276,9 +276,9 @@ export declare const ConsentConfigAPIResponseSchema: z.ZodObject<{
|
|
|
276
276
|
pattern?: string | undefined;
|
|
277
277
|
}, {
|
|
278
278
|
type: "email" | "text" | "textarea" | "checkbox" | "select";
|
|
279
|
+
name: string;
|
|
279
280
|
required: boolean;
|
|
280
281
|
label: string;
|
|
281
|
-
name: string;
|
|
282
282
|
options?: {
|
|
283
283
|
value: string;
|
|
284
284
|
label: string;
|
|
@@ -295,21 +295,21 @@ export declare const ConsentConfigAPIResponseSchema: z.ZodObject<{
|
|
|
295
295
|
showForgotPassword: z.ZodOptional<z.ZodBoolean>;
|
|
296
296
|
forgotPasswordUrl: z.ZodOptional<z.ZodString>;
|
|
297
297
|
}, "strip", z.ZodTypeAny, {
|
|
298
|
-
showForgotPassword?: boolean | undefined;
|
|
299
|
-
forgotPasswordUrl?: string | undefined;
|
|
300
298
|
usernameLabel?: string | undefined;
|
|
301
299
|
usernamePlaceholder?: string | undefined;
|
|
302
300
|
passwordLabel?: string | undefined;
|
|
303
301
|
passwordPlaceholder?: string | undefined;
|
|
304
302
|
showRememberMe?: boolean | undefined;
|
|
305
|
-
}, {
|
|
306
303
|
showForgotPassword?: boolean | undefined;
|
|
307
304
|
forgotPasswordUrl?: string | undefined;
|
|
305
|
+
}, {
|
|
308
306
|
usernameLabel?: string | undefined;
|
|
309
307
|
usernamePlaceholder?: string | undefined;
|
|
310
308
|
passwordLabel?: string | undefined;
|
|
311
309
|
passwordPlaceholder?: string | undefined;
|
|
312
310
|
showRememberMe?: boolean | undefined;
|
|
311
|
+
showForgotPassword?: boolean | undefined;
|
|
312
|
+
forgotPasswordUrl?: string | undefined;
|
|
313
313
|
}>>;
|
|
314
314
|
oauth: z.ZodOptional<z.ZodObject<{
|
|
315
315
|
providerId: z.ZodOptional<z.ZodString>;
|
|
@@ -331,17 +331,17 @@ export declare const ConsentConfigAPIResponseSchema: z.ZodObject<{
|
|
|
331
331
|
buttonText: z.ZodOptional<z.ZodString>;
|
|
332
332
|
resendCooldown: z.ZodOptional<z.ZodNumber>;
|
|
333
333
|
}, "strip", z.ZodTypeAny, {
|
|
334
|
-
resendCooldown?: number | undefined;
|
|
335
334
|
buttonText?: string | undefined;
|
|
336
335
|
enabled?: boolean | undefined;
|
|
337
336
|
emailLabel?: string | undefined;
|
|
338
337
|
emailPlaceholder?: string | undefined;
|
|
339
|
-
}, {
|
|
340
338
|
resendCooldown?: number | undefined;
|
|
339
|
+
}, {
|
|
341
340
|
buttonText?: string | undefined;
|
|
342
341
|
enabled?: boolean | undefined;
|
|
343
342
|
emailLabel?: string | undefined;
|
|
344
343
|
emailPlaceholder?: string | undefined;
|
|
344
|
+
resendCooldown?: number | undefined;
|
|
345
345
|
}>>;
|
|
346
346
|
otp: z.ZodOptional<z.ZodObject<{
|
|
347
347
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -351,19 +351,19 @@ export declare const ConsentConfigAPIResponseSchema: z.ZodObject<{
|
|
|
351
351
|
digits: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<4>, z.ZodLiteral<6>, z.ZodLiteral<8>]>>;
|
|
352
352
|
resendCooldown: z.ZodOptional<z.ZodNumber>;
|
|
353
353
|
}, "strip", z.ZodTypeAny, {
|
|
354
|
-
resendCooldown?: number | undefined;
|
|
355
354
|
enabled?: boolean | undefined;
|
|
355
|
+
resendCooldown?: number | undefined;
|
|
356
356
|
phoneLabel?: string | undefined;
|
|
357
357
|
phonePlaceholder?: string | undefined;
|
|
358
358
|
instructions?: string | undefined;
|
|
359
|
-
digits?:
|
|
359
|
+
digits?: 8 | 4 | 6 | undefined;
|
|
360
360
|
}, {
|
|
361
|
-
resendCooldown?: number | undefined;
|
|
362
361
|
enabled?: boolean | undefined;
|
|
362
|
+
resendCooldown?: number | undefined;
|
|
363
363
|
phoneLabel?: string | undefined;
|
|
364
364
|
phonePlaceholder?: string | undefined;
|
|
365
365
|
instructions?: string | undefined;
|
|
366
|
-
digits?:
|
|
366
|
+
digits?: 8 | 4 | 6 | undefined;
|
|
367
367
|
}>>;
|
|
368
368
|
qrCode: z.ZodOptional<z.ZodObject<{
|
|
369
369
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -433,13 +433,13 @@ export declare const ConsentConfigAPIResponseSchema: z.ZodObject<{
|
|
|
433
433
|
}>>;
|
|
434
434
|
}, "strip", z.ZodTypeAny, {
|
|
435
435
|
credentials?: {
|
|
436
|
-
showForgotPassword?: boolean | undefined;
|
|
437
|
-
forgotPasswordUrl?: string | undefined;
|
|
438
436
|
usernameLabel?: string | undefined;
|
|
439
437
|
usernamePlaceholder?: string | undefined;
|
|
440
438
|
passwordLabel?: string | undefined;
|
|
441
439
|
passwordPlaceholder?: string | undefined;
|
|
442
440
|
showRememberMe?: boolean | undefined;
|
|
441
|
+
showForgotPassword?: boolean | undefined;
|
|
442
|
+
forgotPasswordUrl?: string | undefined;
|
|
443
443
|
} | undefined;
|
|
444
444
|
oauth?: {
|
|
445
445
|
providerId?: string | undefined;
|
|
@@ -447,12 +447,12 @@ export declare const ConsentConfigAPIResponseSchema: z.ZodObject<{
|
|
|
447
447
|
buttonText?: string | undefined;
|
|
448
448
|
} | undefined;
|
|
449
449
|
otp?: {
|
|
450
|
-
resendCooldown?: number | undefined;
|
|
451
450
|
enabled?: boolean | undefined;
|
|
451
|
+
resendCooldown?: number | undefined;
|
|
452
452
|
phoneLabel?: string | undefined;
|
|
453
453
|
phonePlaceholder?: string | undefined;
|
|
454
454
|
instructions?: string | undefined;
|
|
455
|
-
digits?:
|
|
455
|
+
digits?: 8 | 4 | 6 | undefined;
|
|
456
456
|
} | undefined;
|
|
457
457
|
passkey?: {
|
|
458
458
|
buttonText?: string | undefined;
|
|
@@ -467,26 +467,12 @@ export declare const ConsentConfigAPIResponseSchema: z.ZodObject<{
|
|
|
467
467
|
verificationType?: "document" | "selfie" | "both" | undefined;
|
|
468
468
|
estimatedTime?: string | undefined;
|
|
469
469
|
} | undefined;
|
|
470
|
-
success?: {
|
|
471
|
-
redirectUrl?: string | undefined;
|
|
472
|
-
title?: string | undefined;
|
|
473
|
-
description?: string | undefined;
|
|
474
|
-
showCredential?: boolean | undefined;
|
|
475
|
-
redirectDelay?: number | undefined;
|
|
476
|
-
continueButtonText?: string | undefined;
|
|
477
|
-
} | undefined;
|
|
478
|
-
terms?: {
|
|
479
|
-
text?: string | undefined;
|
|
480
|
-
url?: string | undefined;
|
|
481
|
-
version?: string | undefined;
|
|
482
|
-
required?: boolean | undefined;
|
|
483
|
-
} | undefined;
|
|
484
470
|
magicLink?: {
|
|
485
|
-
resendCooldown?: number | undefined;
|
|
486
471
|
buttonText?: string | undefined;
|
|
487
472
|
enabled?: boolean | undefined;
|
|
488
473
|
emailLabel?: string | undefined;
|
|
489
474
|
emailPlaceholder?: string | undefined;
|
|
475
|
+
resendCooldown?: number | undefined;
|
|
490
476
|
} | undefined;
|
|
491
477
|
qrCode?: {
|
|
492
478
|
enabled?: boolean | undefined;
|
|
@@ -494,6 +480,26 @@ export declare const ConsentConfigAPIResponseSchema: z.ZodObject<{
|
|
|
494
480
|
size?: number | undefined;
|
|
495
481
|
showManualEntry?: boolean | undefined;
|
|
496
482
|
} | undefined;
|
|
483
|
+
customFields?: {
|
|
484
|
+
type: "email" | "text" | "textarea" | "checkbox" | "select";
|
|
485
|
+
name: string;
|
|
486
|
+
required: boolean;
|
|
487
|
+
label: string;
|
|
488
|
+
options?: {
|
|
489
|
+
value: string;
|
|
490
|
+
label: string;
|
|
491
|
+
}[] | undefined;
|
|
492
|
+
placeholder?: string | undefined;
|
|
493
|
+
pattern?: string | undefined;
|
|
494
|
+
}[] | undefined;
|
|
495
|
+
success?: {
|
|
496
|
+
title?: string | undefined;
|
|
497
|
+
description?: string | undefined;
|
|
498
|
+
showCredential?: boolean | undefined;
|
|
499
|
+
redirectUrl?: string | undefined;
|
|
500
|
+
redirectDelay?: number | undefined;
|
|
501
|
+
continueButtonText?: string | undefined;
|
|
502
|
+
} | undefined;
|
|
497
503
|
branding?: {
|
|
498
504
|
primaryColor?: string | undefined;
|
|
499
505
|
secondaryColor?: string | undefined;
|
|
@@ -511,18 +517,12 @@ export declare const ConsentConfigAPIResponseSchema: z.ZodObject<{
|
|
|
511
517
|
popupEnabled?: boolean | undefined;
|
|
512
518
|
theme?: "light" | "dark" | "auto" | undefined;
|
|
513
519
|
} | undefined;
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
value: string;
|
|
521
|
-
label: string;
|
|
522
|
-
}[] | undefined;
|
|
523
|
-
placeholder?: string | undefined;
|
|
524
|
-
pattern?: string | undefined;
|
|
525
|
-
}[] | undefined;
|
|
520
|
+
terms?: {
|
|
521
|
+
text?: string | undefined;
|
|
522
|
+
url?: string | undefined;
|
|
523
|
+
version?: string | undefined;
|
|
524
|
+
required?: boolean | undefined;
|
|
525
|
+
} | undefined;
|
|
526
526
|
expirationDays?: number | undefined;
|
|
527
527
|
metadata?: {
|
|
528
528
|
version?: number | undefined;
|
|
@@ -531,13 +531,13 @@ export declare const ConsentConfigAPIResponseSchema: z.ZodObject<{
|
|
|
531
531
|
} | undefined;
|
|
532
532
|
}, {
|
|
533
533
|
credentials?: {
|
|
534
|
-
showForgotPassword?: boolean | undefined;
|
|
535
|
-
forgotPasswordUrl?: string | undefined;
|
|
536
534
|
usernameLabel?: string | undefined;
|
|
537
535
|
usernamePlaceholder?: string | undefined;
|
|
538
536
|
passwordLabel?: string | undefined;
|
|
539
537
|
passwordPlaceholder?: string | undefined;
|
|
540
538
|
showRememberMe?: boolean | undefined;
|
|
539
|
+
showForgotPassword?: boolean | undefined;
|
|
540
|
+
forgotPasswordUrl?: string | undefined;
|
|
541
541
|
} | undefined;
|
|
542
542
|
oauth?: {
|
|
543
543
|
providerId?: string | undefined;
|
|
@@ -545,12 +545,12 @@ export declare const ConsentConfigAPIResponseSchema: z.ZodObject<{
|
|
|
545
545
|
buttonText?: string | undefined;
|
|
546
546
|
} | undefined;
|
|
547
547
|
otp?: {
|
|
548
|
-
resendCooldown?: number | undefined;
|
|
549
548
|
enabled?: boolean | undefined;
|
|
549
|
+
resendCooldown?: number | undefined;
|
|
550
550
|
phoneLabel?: string | undefined;
|
|
551
551
|
phonePlaceholder?: string | undefined;
|
|
552
552
|
instructions?: string | undefined;
|
|
553
|
-
digits?:
|
|
553
|
+
digits?: 8 | 4 | 6 | undefined;
|
|
554
554
|
} | undefined;
|
|
555
555
|
passkey?: {
|
|
556
556
|
buttonText?: string | undefined;
|
|
@@ -565,26 +565,12 @@ export declare const ConsentConfigAPIResponseSchema: z.ZodObject<{
|
|
|
565
565
|
verificationType?: "document" | "selfie" | "both" | undefined;
|
|
566
566
|
estimatedTime?: string | undefined;
|
|
567
567
|
} | undefined;
|
|
568
|
-
success?: {
|
|
569
|
-
redirectUrl?: string | undefined;
|
|
570
|
-
title?: string | undefined;
|
|
571
|
-
description?: string | undefined;
|
|
572
|
-
showCredential?: boolean | undefined;
|
|
573
|
-
redirectDelay?: number | undefined;
|
|
574
|
-
continueButtonText?: string | undefined;
|
|
575
|
-
} | undefined;
|
|
576
|
-
terms?: {
|
|
577
|
-
text?: string | undefined;
|
|
578
|
-
url?: string | undefined;
|
|
579
|
-
version?: string | undefined;
|
|
580
|
-
required?: boolean | undefined;
|
|
581
|
-
} | undefined;
|
|
582
568
|
magicLink?: {
|
|
583
|
-
resendCooldown?: number | undefined;
|
|
584
569
|
buttonText?: string | undefined;
|
|
585
570
|
enabled?: boolean | undefined;
|
|
586
571
|
emailLabel?: string | undefined;
|
|
587
572
|
emailPlaceholder?: string | undefined;
|
|
573
|
+
resendCooldown?: number | undefined;
|
|
588
574
|
} | undefined;
|
|
589
575
|
qrCode?: {
|
|
590
576
|
enabled?: boolean | undefined;
|
|
@@ -592,6 +578,26 @@ export declare const ConsentConfigAPIResponseSchema: z.ZodObject<{
|
|
|
592
578
|
size?: number | undefined;
|
|
593
579
|
showManualEntry?: boolean | undefined;
|
|
594
580
|
} | undefined;
|
|
581
|
+
customFields?: {
|
|
582
|
+
type: "email" | "text" | "textarea" | "checkbox" | "select";
|
|
583
|
+
name: string;
|
|
584
|
+
required: boolean;
|
|
585
|
+
label: string;
|
|
586
|
+
options?: {
|
|
587
|
+
value: string;
|
|
588
|
+
label: string;
|
|
589
|
+
}[] | undefined;
|
|
590
|
+
placeholder?: string | undefined;
|
|
591
|
+
pattern?: string | undefined;
|
|
592
|
+
}[] | undefined;
|
|
593
|
+
success?: {
|
|
594
|
+
title?: string | undefined;
|
|
595
|
+
description?: string | undefined;
|
|
596
|
+
showCredential?: boolean | undefined;
|
|
597
|
+
redirectUrl?: string | undefined;
|
|
598
|
+
redirectDelay?: number | undefined;
|
|
599
|
+
continueButtonText?: string | undefined;
|
|
600
|
+
} | undefined;
|
|
595
601
|
branding?: {
|
|
596
602
|
primaryColor?: string | undefined;
|
|
597
603
|
secondaryColor?: string | undefined;
|
|
@@ -609,18 +615,12 @@ export declare const ConsentConfigAPIResponseSchema: z.ZodObject<{
|
|
|
609
615
|
popupEnabled?: boolean | undefined;
|
|
610
616
|
theme?: "light" | "dark" | "auto" | undefined;
|
|
611
617
|
} | undefined;
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
value: string;
|
|
619
|
-
label: string;
|
|
620
|
-
}[] | undefined;
|
|
621
|
-
placeholder?: string | undefined;
|
|
622
|
-
pattern?: string | undefined;
|
|
623
|
-
}[] | undefined;
|
|
618
|
+
terms?: {
|
|
619
|
+
text?: string | undefined;
|
|
620
|
+
url?: string | undefined;
|
|
621
|
+
version?: string | undefined;
|
|
622
|
+
required?: boolean | undefined;
|
|
623
|
+
} | undefined;
|
|
624
624
|
expirationDays?: number | undefined;
|
|
625
625
|
metadata?: {
|
|
626
626
|
version?: number | undefined;
|
|
@@ -634,13 +634,13 @@ export declare const ConsentConfigAPIResponseSchema: z.ZodObject<{
|
|
|
634
634
|
error?: string | undefined;
|
|
635
635
|
data?: {
|
|
636
636
|
credentials?: {
|
|
637
|
-
showForgotPassword?: boolean | undefined;
|
|
638
|
-
forgotPasswordUrl?: string | undefined;
|
|
639
637
|
usernameLabel?: string | undefined;
|
|
640
638
|
usernamePlaceholder?: string | undefined;
|
|
641
639
|
passwordLabel?: string | undefined;
|
|
642
640
|
passwordPlaceholder?: string | undefined;
|
|
643
641
|
showRememberMe?: boolean | undefined;
|
|
642
|
+
showForgotPassword?: boolean | undefined;
|
|
643
|
+
forgotPasswordUrl?: string | undefined;
|
|
644
644
|
} | undefined;
|
|
645
645
|
oauth?: {
|
|
646
646
|
providerId?: string | undefined;
|
|
@@ -648,12 +648,12 @@ export declare const ConsentConfigAPIResponseSchema: z.ZodObject<{
|
|
|
648
648
|
buttonText?: string | undefined;
|
|
649
649
|
} | undefined;
|
|
650
650
|
otp?: {
|
|
651
|
-
resendCooldown?: number | undefined;
|
|
652
651
|
enabled?: boolean | undefined;
|
|
652
|
+
resendCooldown?: number | undefined;
|
|
653
653
|
phoneLabel?: string | undefined;
|
|
654
654
|
phonePlaceholder?: string | undefined;
|
|
655
655
|
instructions?: string | undefined;
|
|
656
|
-
digits?:
|
|
656
|
+
digits?: 8 | 4 | 6 | undefined;
|
|
657
657
|
} | undefined;
|
|
658
658
|
passkey?: {
|
|
659
659
|
buttonText?: string | undefined;
|
|
@@ -668,26 +668,12 @@ export declare const ConsentConfigAPIResponseSchema: z.ZodObject<{
|
|
|
668
668
|
verificationType?: "document" | "selfie" | "both" | undefined;
|
|
669
669
|
estimatedTime?: string | undefined;
|
|
670
670
|
} | undefined;
|
|
671
|
-
success?: {
|
|
672
|
-
redirectUrl?: string | undefined;
|
|
673
|
-
title?: string | undefined;
|
|
674
|
-
description?: string | undefined;
|
|
675
|
-
showCredential?: boolean | undefined;
|
|
676
|
-
redirectDelay?: number | undefined;
|
|
677
|
-
continueButtonText?: string | undefined;
|
|
678
|
-
} | undefined;
|
|
679
|
-
terms?: {
|
|
680
|
-
text?: string | undefined;
|
|
681
|
-
url?: string | undefined;
|
|
682
|
-
version?: string | undefined;
|
|
683
|
-
required?: boolean | undefined;
|
|
684
|
-
} | undefined;
|
|
685
671
|
magicLink?: {
|
|
686
|
-
resendCooldown?: number | undefined;
|
|
687
672
|
buttonText?: string | undefined;
|
|
688
673
|
enabled?: boolean | undefined;
|
|
689
674
|
emailLabel?: string | undefined;
|
|
690
675
|
emailPlaceholder?: string | undefined;
|
|
676
|
+
resendCooldown?: number | undefined;
|
|
691
677
|
} | undefined;
|
|
692
678
|
qrCode?: {
|
|
693
679
|
enabled?: boolean | undefined;
|
|
@@ -695,6 +681,26 @@ export declare const ConsentConfigAPIResponseSchema: z.ZodObject<{
|
|
|
695
681
|
size?: number | undefined;
|
|
696
682
|
showManualEntry?: boolean | undefined;
|
|
697
683
|
} | undefined;
|
|
684
|
+
customFields?: {
|
|
685
|
+
type: "email" | "text" | "textarea" | "checkbox" | "select";
|
|
686
|
+
name: string;
|
|
687
|
+
required: boolean;
|
|
688
|
+
label: string;
|
|
689
|
+
options?: {
|
|
690
|
+
value: string;
|
|
691
|
+
label: string;
|
|
692
|
+
}[] | undefined;
|
|
693
|
+
placeholder?: string | undefined;
|
|
694
|
+
pattern?: string | undefined;
|
|
695
|
+
}[] | undefined;
|
|
696
|
+
success?: {
|
|
697
|
+
title?: string | undefined;
|
|
698
|
+
description?: string | undefined;
|
|
699
|
+
showCredential?: boolean | undefined;
|
|
700
|
+
redirectUrl?: string | undefined;
|
|
701
|
+
redirectDelay?: number | undefined;
|
|
702
|
+
continueButtonText?: string | undefined;
|
|
703
|
+
} | undefined;
|
|
698
704
|
branding?: {
|
|
699
705
|
primaryColor?: string | undefined;
|
|
700
706
|
secondaryColor?: string | undefined;
|
|
@@ -712,18 +718,12 @@ export declare const ConsentConfigAPIResponseSchema: z.ZodObject<{
|
|
|
712
718
|
popupEnabled?: boolean | undefined;
|
|
713
719
|
theme?: "light" | "dark" | "auto" | undefined;
|
|
714
720
|
} | undefined;
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
value: string;
|
|
722
|
-
label: string;
|
|
723
|
-
}[] | undefined;
|
|
724
|
-
placeholder?: string | undefined;
|
|
725
|
-
pattern?: string | undefined;
|
|
726
|
-
}[] | undefined;
|
|
721
|
+
terms?: {
|
|
722
|
+
text?: string | undefined;
|
|
723
|
+
url?: string | undefined;
|
|
724
|
+
version?: string | undefined;
|
|
725
|
+
required?: boolean | undefined;
|
|
726
|
+
} | undefined;
|
|
727
727
|
expirationDays?: number | undefined;
|
|
728
728
|
metadata?: {
|
|
729
729
|
version?: number | undefined;
|
|
@@ -736,13 +736,13 @@ export declare const ConsentConfigAPIResponseSchema: z.ZodObject<{
|
|
|
736
736
|
error?: string | undefined;
|
|
737
737
|
data?: {
|
|
738
738
|
credentials?: {
|
|
739
|
-
showForgotPassword?: boolean | undefined;
|
|
740
|
-
forgotPasswordUrl?: string | undefined;
|
|
741
739
|
usernameLabel?: string | undefined;
|
|
742
740
|
usernamePlaceholder?: string | undefined;
|
|
743
741
|
passwordLabel?: string | undefined;
|
|
744
742
|
passwordPlaceholder?: string | undefined;
|
|
745
743
|
showRememberMe?: boolean | undefined;
|
|
744
|
+
showForgotPassword?: boolean | undefined;
|
|
745
|
+
forgotPasswordUrl?: string | undefined;
|
|
746
746
|
} | undefined;
|
|
747
747
|
oauth?: {
|
|
748
748
|
providerId?: string | undefined;
|
|
@@ -750,12 +750,12 @@ export declare const ConsentConfigAPIResponseSchema: z.ZodObject<{
|
|
|
750
750
|
buttonText?: string | undefined;
|
|
751
751
|
} | undefined;
|
|
752
752
|
otp?: {
|
|
753
|
-
resendCooldown?: number | undefined;
|
|
754
753
|
enabled?: boolean | undefined;
|
|
754
|
+
resendCooldown?: number | undefined;
|
|
755
755
|
phoneLabel?: string | undefined;
|
|
756
756
|
phonePlaceholder?: string | undefined;
|
|
757
757
|
instructions?: string | undefined;
|
|
758
|
-
digits?:
|
|
758
|
+
digits?: 8 | 4 | 6 | undefined;
|
|
759
759
|
} | undefined;
|
|
760
760
|
passkey?: {
|
|
761
761
|
buttonText?: string | undefined;
|
|
@@ -770,26 +770,12 @@ export declare const ConsentConfigAPIResponseSchema: z.ZodObject<{
|
|
|
770
770
|
verificationType?: "document" | "selfie" | "both" | undefined;
|
|
771
771
|
estimatedTime?: string | undefined;
|
|
772
772
|
} | undefined;
|
|
773
|
-
success?: {
|
|
774
|
-
redirectUrl?: string | undefined;
|
|
775
|
-
title?: string | undefined;
|
|
776
|
-
description?: string | undefined;
|
|
777
|
-
showCredential?: boolean | undefined;
|
|
778
|
-
redirectDelay?: number | undefined;
|
|
779
|
-
continueButtonText?: string | undefined;
|
|
780
|
-
} | undefined;
|
|
781
|
-
terms?: {
|
|
782
|
-
text?: string | undefined;
|
|
783
|
-
url?: string | undefined;
|
|
784
|
-
version?: string | undefined;
|
|
785
|
-
required?: boolean | undefined;
|
|
786
|
-
} | undefined;
|
|
787
773
|
magicLink?: {
|
|
788
|
-
resendCooldown?: number | undefined;
|
|
789
774
|
buttonText?: string | undefined;
|
|
790
775
|
enabled?: boolean | undefined;
|
|
791
776
|
emailLabel?: string | undefined;
|
|
792
777
|
emailPlaceholder?: string | undefined;
|
|
778
|
+
resendCooldown?: number | undefined;
|
|
793
779
|
} | undefined;
|
|
794
780
|
qrCode?: {
|
|
795
781
|
enabled?: boolean | undefined;
|
|
@@ -797,6 +783,26 @@ export declare const ConsentConfigAPIResponseSchema: z.ZodObject<{
|
|
|
797
783
|
size?: number | undefined;
|
|
798
784
|
showManualEntry?: boolean | undefined;
|
|
799
785
|
} | undefined;
|
|
786
|
+
customFields?: {
|
|
787
|
+
type: "email" | "text" | "textarea" | "checkbox" | "select";
|
|
788
|
+
name: string;
|
|
789
|
+
required: boolean;
|
|
790
|
+
label: string;
|
|
791
|
+
options?: {
|
|
792
|
+
value: string;
|
|
793
|
+
label: string;
|
|
794
|
+
}[] | undefined;
|
|
795
|
+
placeholder?: string | undefined;
|
|
796
|
+
pattern?: string | undefined;
|
|
797
|
+
}[] | undefined;
|
|
798
|
+
success?: {
|
|
799
|
+
title?: string | undefined;
|
|
800
|
+
description?: string | undefined;
|
|
801
|
+
showCredential?: boolean | undefined;
|
|
802
|
+
redirectUrl?: string | undefined;
|
|
803
|
+
redirectDelay?: number | undefined;
|
|
804
|
+
continueButtonText?: string | undefined;
|
|
805
|
+
} | undefined;
|
|
800
806
|
branding?: {
|
|
801
807
|
primaryColor?: string | undefined;
|
|
802
808
|
secondaryColor?: string | undefined;
|
|
@@ -814,18 +820,12 @@ export declare const ConsentConfigAPIResponseSchema: z.ZodObject<{
|
|
|
814
820
|
popupEnabled?: boolean | undefined;
|
|
815
821
|
theme?: "light" | "dark" | "auto" | undefined;
|
|
816
822
|
} | undefined;
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
value: string;
|
|
824
|
-
label: string;
|
|
825
|
-
}[] | undefined;
|
|
826
|
-
placeholder?: string | undefined;
|
|
827
|
-
pattern?: string | undefined;
|
|
828
|
-
}[] | undefined;
|
|
823
|
+
terms?: {
|
|
824
|
+
text?: string | undefined;
|
|
825
|
+
url?: string | undefined;
|
|
826
|
+
version?: string | undefined;
|
|
827
|
+
required?: boolean | undefined;
|
|
828
|
+
} | undefined;
|
|
829
829
|
expirationDays?: number | undefined;
|
|
830
830
|
metadata?: {
|
|
831
831
|
version?: number | undefined;
|
|
@@ -848,21 +848,21 @@ export declare const CredentialAuthRequestSchema: z.ZodObject<{
|
|
|
848
848
|
provider: z.ZodString;
|
|
849
849
|
remember_me: z.ZodOptional<z.ZodBoolean>;
|
|
850
850
|
}, "strip", z.ZodTypeAny, {
|
|
851
|
+
provider: string;
|
|
851
852
|
agent_did: string;
|
|
852
853
|
session_id: string;
|
|
853
854
|
project_id: string;
|
|
854
855
|
username: string;
|
|
855
856
|
password: string;
|
|
856
|
-
provider: string;
|
|
857
857
|
csrf_token: string;
|
|
858
858
|
remember_me?: boolean | undefined;
|
|
859
859
|
}, {
|
|
860
|
+
provider: string;
|
|
860
861
|
agent_did: string;
|
|
861
862
|
session_id: string;
|
|
862
863
|
project_id: string;
|
|
863
864
|
username: string;
|
|
864
865
|
password: string;
|
|
865
|
-
provider: string;
|
|
866
866
|
csrf_token: string;
|
|
867
867
|
remember_me?: boolean | undefined;
|
|
868
868
|
}>;
|
|
@@ -892,23 +892,23 @@ export declare const CredentialAuthResponseSchema: z.ZodObject<{
|
|
|
892
892
|
error_code: z.ZodOptional<z.ZodString>;
|
|
893
893
|
}, "strip", z.ZodTypeAny, {
|
|
894
894
|
success: boolean;
|
|
895
|
-
error?: string | undefined;
|
|
896
895
|
oauth_identity?: {
|
|
897
896
|
provider: string;
|
|
898
897
|
subject: string;
|
|
899
898
|
email?: string | undefined;
|
|
900
899
|
name?: string | undefined;
|
|
901
900
|
} | undefined;
|
|
901
|
+
error?: string | undefined;
|
|
902
902
|
error_code?: string | undefined;
|
|
903
903
|
}, {
|
|
904
904
|
success: boolean;
|
|
905
|
-
error?: string | undefined;
|
|
906
905
|
oauth_identity?: {
|
|
907
906
|
provider: string;
|
|
908
907
|
subject: string;
|
|
909
908
|
email?: string | undefined;
|
|
910
909
|
name?: string | undefined;
|
|
911
910
|
} | undefined;
|
|
911
|
+
error?: string | undefined;
|
|
912
912
|
error_code?: string | undefined;
|
|
913
913
|
}>;
|
|
914
914
|
export type CredentialAuthResponseSchemaType = z.infer<typeof CredentialAuthResponseSchema>;
|
|
@@ -930,49 +930,49 @@ export declare const ConsentPageConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
930
930
|
}, "strip", z.ZodTypeAny, {
|
|
931
931
|
tool: string;
|
|
932
932
|
scopes: string[];
|
|
933
|
+
toolDescription: string;
|
|
933
934
|
agentDid: string;
|
|
934
935
|
sessionId: string;
|
|
935
936
|
projectId: string;
|
|
936
937
|
serverUrl: string;
|
|
937
|
-
toolDescription: string;
|
|
938
|
-
autoClose?: boolean | undefined;
|
|
939
938
|
provider?: string | undefined;
|
|
939
|
+
autoClose?: boolean | undefined;
|
|
940
940
|
oauthRequired?: boolean | undefined;
|
|
941
941
|
oauthUrl?: string | undefined;
|
|
942
942
|
}, {
|
|
943
943
|
tool: string;
|
|
944
944
|
scopes: string[];
|
|
945
|
+
toolDescription: string;
|
|
945
946
|
agentDid: string;
|
|
946
947
|
sessionId: string;
|
|
947
948
|
projectId: string;
|
|
948
949
|
serverUrl: string;
|
|
949
|
-
toolDescription: string;
|
|
950
|
-
autoClose?: boolean | undefined;
|
|
951
950
|
provider?: string | undefined;
|
|
951
|
+
autoClose?: boolean | undefined;
|
|
952
952
|
oauthRequired?: boolean | undefined;
|
|
953
953
|
oauthUrl?: string | undefined;
|
|
954
954
|
}>, {
|
|
955
955
|
tool: string;
|
|
956
956
|
scopes: string[];
|
|
957
|
+
toolDescription: string;
|
|
957
958
|
agentDid: string;
|
|
958
959
|
sessionId: string;
|
|
959
960
|
projectId: string;
|
|
960
961
|
serverUrl: string;
|
|
961
|
-
toolDescription: string;
|
|
962
|
-
autoClose?: boolean | undefined;
|
|
963
962
|
provider?: string | undefined;
|
|
963
|
+
autoClose?: boolean | undefined;
|
|
964
964
|
oauthRequired?: boolean | undefined;
|
|
965
965
|
oauthUrl?: string | undefined;
|
|
966
966
|
}, {
|
|
967
967
|
tool: string;
|
|
968
968
|
scopes: string[];
|
|
969
|
+
toolDescription: string;
|
|
969
970
|
agentDid: string;
|
|
970
971
|
sessionId: string;
|
|
971
972
|
projectId: string;
|
|
972
973
|
serverUrl: string;
|
|
973
|
-
toolDescription: string;
|
|
974
|
-
autoClose?: boolean | undefined;
|
|
975
974
|
provider?: string | undefined;
|
|
975
|
+
autoClose?: boolean | undefined;
|
|
976
976
|
oauthRequired?: boolean | undefined;
|
|
977
977
|
oauthUrl?: string | undefined;
|
|
978
978
|
}>;
|