@kya-os/consent 0.1.7 → 0.1.9
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/components/mcp-consent.d.ts +5 -0
- package/dist/components/mcp-consent.d.ts.map +1 -1
- package/dist/components/mcp-consent.js +12 -0
- package/dist/components/mcp-consent.js.map +1 -1
- package/dist/consent.js +7 -0
- package/dist/consent.min.js +2 -2
- package/dist/constants/index.d.ts +1 -0
- package/dist/constants/index.d.ts.map +1 -1
- package/dist/constants/index.js +2 -0
- package/dist/constants/index.js.map +1 -1
- package/dist/schemas/api.schemas.d.ts +153 -153
- package/dist/schemas/config.schemas.d.ts +160 -160
- package/dist/schemas/modes.schemas.d.ts +28 -28
- package/package.json +1 -1
- package/dist/utils/credential-fields.d.ts +0 -63
- package/dist/utils/credential-fields.d.ts.map +0 -1
- package/dist/utils/credential-fields.js +0 -166
- package/dist/utils/credential-fields.js.map +0 -1
- package/dist/utils/index.d.ts +0 -5
- package/dist/utils/index.d.ts.map +0 -1
- package/dist/utils/index.js +0 -5
- package/dist/utils/index.js.map +0 -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;
|
|
66
67
|
agent_did: string;
|
|
67
68
|
session_id: string;
|
|
68
69
|
project_id: string;
|
|
69
70
|
auth_mode: "consent-only" | "credentials" | "oauth" | "magic-link" | "otp" | "qr-code" | "passkey" | "idv";
|
|
70
71
|
provider_type: string;
|
|
71
|
-
termsAccepted: boolean;
|
|
72
|
-
termsVersion?: string | undefined;
|
|
73
72
|
customFields?: Record<string, string | boolean> | undefined;
|
|
73
|
+
termsVersion?: string | 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;
|
|
84
85
|
agent_did: string;
|
|
85
86
|
session_id: string;
|
|
86
87
|
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
|
-
termsVersion?: string | undefined;
|
|
91
90
|
customFields?: Record<string, string | boolean> | undefined;
|
|
91
|
+
termsVersion?: string | 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;
|
|
112
113
|
delegation_id?: string | undefined;
|
|
113
114
|
delegation_token?: string | undefined;
|
|
114
|
-
error?: string | undefined;
|
|
115
115
|
error_code?: string | undefined;
|
|
116
116
|
}, {
|
|
117
117
|
success: boolean;
|
|
118
|
+
error?: string | undefined;
|
|
118
119
|
delegation_id?: string | undefined;
|
|
119
120
|
delegation_token?: string | undefined;
|
|
120
|
-
error?: string | undefined;
|
|
121
121
|
error_code?: string | undefined;
|
|
122
122
|
}>, {
|
|
123
123
|
success: boolean;
|
|
124
|
+
error?: string | undefined;
|
|
124
125
|
delegation_id?: string | undefined;
|
|
125
126
|
delegation_token?: string | undefined;
|
|
126
|
-
error?: string | undefined;
|
|
127
127
|
error_code?: string | undefined;
|
|
128
128
|
}, {
|
|
129
129
|
success: boolean;
|
|
130
|
+
error?: string | undefined;
|
|
130
131
|
delegation_id?: string | undefined;
|
|
131
132
|
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;
|
|
213
214
|
title?: string | undefined;
|
|
214
215
|
description?: string | undefined;
|
|
215
216
|
showCredential?: boolean | undefined;
|
|
216
|
-
redirectUrl?: string | undefined;
|
|
217
217
|
redirectDelay?: number | undefined;
|
|
218
218
|
continueButtonText?: string | undefined;
|
|
219
219
|
}, {
|
|
220
|
+
redirectUrl?: string | undefined;
|
|
220
221
|
title?: string | undefined;
|
|
221
222
|
description?: string | undefined;
|
|
222
223
|
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;
|
|
247
246
|
required: boolean;
|
|
248
247
|
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;
|
|
258
257
|
required: boolean;
|
|
259
258
|
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;
|
|
269
268
|
required: boolean;
|
|
270
269
|
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;
|
|
280
279
|
required: boolean;
|
|
281
280
|
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;
|
|
298
300
|
usernameLabel?: string | undefined;
|
|
299
301
|
usernamePlaceholder?: string | undefined;
|
|
300
302
|
passwordLabel?: string | undefined;
|
|
301
303
|
passwordPlaceholder?: string | undefined;
|
|
302
304
|
showRememberMe?: boolean | undefined;
|
|
305
|
+
}, {
|
|
303
306
|
showForgotPassword?: boolean | undefined;
|
|
304
307
|
forgotPasswordUrl?: string | undefined;
|
|
305
|
-
}, {
|
|
306
308
|
usernameLabel?: string | undefined;
|
|
307
309
|
usernamePlaceholder?: string | undefined;
|
|
308
310
|
passwordLabel?: string | undefined;
|
|
309
311
|
passwordPlaceholder?: string | undefined;
|
|
310
312
|
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;
|
|
334
335
|
buttonText?: string | undefined;
|
|
335
336
|
enabled?: boolean | undefined;
|
|
336
337
|
emailLabel?: string | undefined;
|
|
337
338
|
emailPlaceholder?: string | undefined;
|
|
338
|
-
resendCooldown?: number | undefined;
|
|
339
339
|
}, {
|
|
340
|
+
resendCooldown?: number | undefined;
|
|
340
341
|
buttonText?: string | undefined;
|
|
341
342
|
enabled?: boolean | undefined;
|
|
342
343
|
emailLabel?: string | undefined;
|
|
343
344
|
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
|
-
enabled?: boolean | undefined;
|
|
355
354
|
resendCooldown?: number | undefined;
|
|
355
|
+
enabled?: boolean | undefined;
|
|
356
356
|
phoneLabel?: string | undefined;
|
|
357
357
|
phonePlaceholder?: string | undefined;
|
|
358
358
|
instructions?: string | undefined;
|
|
359
|
-
digits?:
|
|
359
|
+
digits?: 4 | 6 | 8 | undefined;
|
|
360
360
|
}, {
|
|
361
|
-
enabled?: boolean | undefined;
|
|
362
361
|
resendCooldown?: number | undefined;
|
|
362
|
+
enabled?: boolean | undefined;
|
|
363
363
|
phoneLabel?: string | undefined;
|
|
364
364
|
phonePlaceholder?: string | undefined;
|
|
365
365
|
instructions?: string | undefined;
|
|
366
|
-
digits?:
|
|
366
|
+
digits?: 4 | 6 | 8 | 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;
|
|
436
438
|
usernameLabel?: string | undefined;
|
|
437
439
|
usernamePlaceholder?: string | undefined;
|
|
438
440
|
passwordLabel?: string | undefined;
|
|
439
441
|
passwordPlaceholder?: string | undefined;
|
|
440
442
|
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
|
-
enabled?: boolean | undefined;
|
|
451
450
|
resendCooldown?: number | undefined;
|
|
451
|
+
enabled?: boolean | undefined;
|
|
452
452
|
phoneLabel?: string | undefined;
|
|
453
453
|
phonePlaceholder?: string | undefined;
|
|
454
454
|
instructions?: string | undefined;
|
|
455
|
-
digits?:
|
|
455
|
+
digits?: 4 | 6 | 8 | undefined;
|
|
456
456
|
} | undefined;
|
|
457
457
|
passkey?: {
|
|
458
458
|
buttonText?: string | undefined;
|
|
@@ -467,12 +467,26 @@ 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;
|
|
470
484
|
magicLink?: {
|
|
485
|
+
resendCooldown?: number | undefined;
|
|
471
486
|
buttonText?: string | undefined;
|
|
472
487
|
enabled?: boolean | undefined;
|
|
473
488
|
emailLabel?: string | undefined;
|
|
474
489
|
emailPlaceholder?: string | undefined;
|
|
475
|
-
resendCooldown?: number | undefined;
|
|
476
490
|
} | undefined;
|
|
477
491
|
qrCode?: {
|
|
478
492
|
enabled?: boolean | undefined;
|
|
@@ -480,26 +494,6 @@ export declare const ConsentConfigAPIResponseSchema: z.ZodObject<{
|
|
|
480
494
|
size?: number | undefined;
|
|
481
495
|
showManualEntry?: boolean | undefined;
|
|
482
496
|
} | 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;
|
|
503
497
|
branding?: {
|
|
504
498
|
primaryColor?: string | undefined;
|
|
505
499
|
secondaryColor?: string | undefined;
|
|
@@ -517,12 +511,18 @@ export declare const ConsentConfigAPIResponseSchema: z.ZodObject<{
|
|
|
517
511
|
popupEnabled?: boolean | undefined;
|
|
518
512
|
theme?: "light" | "dark" | "auto" | undefined;
|
|
519
513
|
} | undefined;
|
|
520
|
-
|
|
521
|
-
text
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
514
|
+
customFields?: {
|
|
515
|
+
type: "email" | "text" | "textarea" | "checkbox" | "select";
|
|
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
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;
|
|
534
536
|
usernameLabel?: string | undefined;
|
|
535
537
|
usernamePlaceholder?: string | undefined;
|
|
536
538
|
passwordLabel?: string | undefined;
|
|
537
539
|
passwordPlaceholder?: string | undefined;
|
|
538
540
|
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
|
-
enabled?: boolean | undefined;
|
|
549
548
|
resendCooldown?: number | undefined;
|
|
549
|
+
enabled?: boolean | undefined;
|
|
550
550
|
phoneLabel?: string | undefined;
|
|
551
551
|
phonePlaceholder?: string | undefined;
|
|
552
552
|
instructions?: string | undefined;
|
|
553
|
-
digits?:
|
|
553
|
+
digits?: 4 | 6 | 8 | undefined;
|
|
554
554
|
} | undefined;
|
|
555
555
|
passkey?: {
|
|
556
556
|
buttonText?: string | undefined;
|
|
@@ -565,12 +565,26 @@ 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;
|
|
568
582
|
magicLink?: {
|
|
583
|
+
resendCooldown?: number | undefined;
|
|
569
584
|
buttonText?: string | undefined;
|
|
570
585
|
enabled?: boolean | undefined;
|
|
571
586
|
emailLabel?: string | undefined;
|
|
572
587
|
emailPlaceholder?: string | undefined;
|
|
573
|
-
resendCooldown?: number | undefined;
|
|
574
588
|
} | undefined;
|
|
575
589
|
qrCode?: {
|
|
576
590
|
enabled?: boolean | undefined;
|
|
@@ -578,26 +592,6 @@ export declare const ConsentConfigAPIResponseSchema: z.ZodObject<{
|
|
|
578
592
|
size?: number | undefined;
|
|
579
593
|
showManualEntry?: boolean | undefined;
|
|
580
594
|
} | 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;
|
|
601
595
|
branding?: {
|
|
602
596
|
primaryColor?: string | undefined;
|
|
603
597
|
secondaryColor?: string | undefined;
|
|
@@ -615,12 +609,18 @@ export declare const ConsentConfigAPIResponseSchema: z.ZodObject<{
|
|
|
615
609
|
popupEnabled?: boolean | undefined;
|
|
616
610
|
theme?: "light" | "dark" | "auto" | undefined;
|
|
617
611
|
} | undefined;
|
|
618
|
-
|
|
619
|
-
text
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
612
|
+
customFields?: {
|
|
613
|
+
type: "email" | "text" | "textarea" | "checkbox" | "select";
|
|
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
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;
|
|
637
639
|
usernameLabel?: string | undefined;
|
|
638
640
|
usernamePlaceholder?: string | undefined;
|
|
639
641
|
passwordLabel?: string | undefined;
|
|
640
642
|
passwordPlaceholder?: string | undefined;
|
|
641
643
|
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
|
-
enabled?: boolean | undefined;
|
|
652
651
|
resendCooldown?: number | undefined;
|
|
652
|
+
enabled?: boolean | undefined;
|
|
653
653
|
phoneLabel?: string | undefined;
|
|
654
654
|
phonePlaceholder?: string | undefined;
|
|
655
655
|
instructions?: string | undefined;
|
|
656
|
-
digits?:
|
|
656
|
+
digits?: 4 | 6 | 8 | undefined;
|
|
657
657
|
} | undefined;
|
|
658
658
|
passkey?: {
|
|
659
659
|
buttonText?: string | undefined;
|
|
@@ -668,12 +668,26 @@ 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;
|
|
671
685
|
magicLink?: {
|
|
686
|
+
resendCooldown?: number | undefined;
|
|
672
687
|
buttonText?: string | undefined;
|
|
673
688
|
enabled?: boolean | undefined;
|
|
674
689
|
emailLabel?: string | undefined;
|
|
675
690
|
emailPlaceholder?: string | undefined;
|
|
676
|
-
resendCooldown?: number | undefined;
|
|
677
691
|
} | undefined;
|
|
678
692
|
qrCode?: {
|
|
679
693
|
enabled?: boolean | undefined;
|
|
@@ -681,26 +695,6 @@ export declare const ConsentConfigAPIResponseSchema: z.ZodObject<{
|
|
|
681
695
|
size?: number | undefined;
|
|
682
696
|
showManualEntry?: boolean | undefined;
|
|
683
697
|
} | 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;
|
|
704
698
|
branding?: {
|
|
705
699
|
primaryColor?: string | undefined;
|
|
706
700
|
secondaryColor?: string | undefined;
|
|
@@ -718,12 +712,18 @@ export declare const ConsentConfigAPIResponseSchema: z.ZodObject<{
|
|
|
718
712
|
popupEnabled?: boolean | undefined;
|
|
719
713
|
theme?: "light" | "dark" | "auto" | undefined;
|
|
720
714
|
} | undefined;
|
|
721
|
-
|
|
722
|
-
text
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
715
|
+
customFields?: {
|
|
716
|
+
type: "email" | "text" | "textarea" | "checkbox" | "select";
|
|
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
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;
|
|
739
741
|
usernameLabel?: string | undefined;
|
|
740
742
|
usernamePlaceholder?: string | undefined;
|
|
741
743
|
passwordLabel?: string | undefined;
|
|
742
744
|
passwordPlaceholder?: string | undefined;
|
|
743
745
|
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
|
-
enabled?: boolean | undefined;
|
|
754
753
|
resendCooldown?: number | undefined;
|
|
754
|
+
enabled?: boolean | undefined;
|
|
755
755
|
phoneLabel?: string | undefined;
|
|
756
756
|
phonePlaceholder?: string | undefined;
|
|
757
757
|
instructions?: string | undefined;
|
|
758
|
-
digits?:
|
|
758
|
+
digits?: 4 | 6 | 8 | undefined;
|
|
759
759
|
} | undefined;
|
|
760
760
|
passkey?: {
|
|
761
761
|
buttonText?: string | undefined;
|
|
@@ -770,12 +770,26 @@ 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;
|
|
773
787
|
magicLink?: {
|
|
788
|
+
resendCooldown?: number | undefined;
|
|
774
789
|
buttonText?: string | undefined;
|
|
775
790
|
enabled?: boolean | undefined;
|
|
776
791
|
emailLabel?: string | undefined;
|
|
777
792
|
emailPlaceholder?: string | undefined;
|
|
778
|
-
resendCooldown?: number | undefined;
|
|
779
793
|
} | undefined;
|
|
780
794
|
qrCode?: {
|
|
781
795
|
enabled?: boolean | undefined;
|
|
@@ -783,26 +797,6 @@ export declare const ConsentConfigAPIResponseSchema: z.ZodObject<{
|
|
|
783
797
|
size?: number | undefined;
|
|
784
798
|
showManualEntry?: boolean | undefined;
|
|
785
799
|
} | 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;
|
|
806
800
|
branding?: {
|
|
807
801
|
primaryColor?: string | undefined;
|
|
808
802
|
secondaryColor?: string | undefined;
|
|
@@ -820,12 +814,18 @@ export declare const ConsentConfigAPIResponseSchema: z.ZodObject<{
|
|
|
820
814
|
popupEnabled?: boolean | undefined;
|
|
821
815
|
theme?: "light" | "dark" | "auto" | undefined;
|
|
822
816
|
} | undefined;
|
|
823
|
-
|
|
824
|
-
text
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
817
|
+
customFields?: {
|
|
818
|
+
type: "email" | "text" | "textarea" | "checkbox" | "select";
|
|
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
829
|
expirationDays?: number | undefined;
|
|
830
830
|
metadata?: {
|
|
831
831
|
version?: number | undefined;
|
|
@@ -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;
|
|
895
896
|
oauth_identity?: {
|
|
896
897
|
provider: string;
|
|
897
898
|
subject: string;
|
|
898
899
|
email?: string | undefined;
|
|
899
900
|
name?: string | undefined;
|
|
900
901
|
} | undefined;
|
|
901
|
-
error?: string | undefined;
|
|
902
902
|
error_code?: string | undefined;
|
|
903
903
|
}, {
|
|
904
904
|
success: boolean;
|
|
905
|
+
error?: string | undefined;
|
|
905
906
|
oauth_identity?: {
|
|
906
907
|
provider: string;
|
|
907
908
|
subject: string;
|
|
908
909
|
email?: string | undefined;
|
|
909
910
|
name?: string | undefined;
|
|
910
911
|
} | undefined;
|
|
911
|
-
error?: string | undefined;
|
|
912
912
|
error_code?: string | undefined;
|
|
913
913
|
}>;
|
|
914
914
|
export type CredentialAuthResponseSchemaType = z.infer<typeof CredentialAuthResponseSchema>;
|
|
@@ -930,11 +930,11 @@ export declare const ConsentPageConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
930
930
|
}, "strip", z.ZodTypeAny, {
|
|
931
931
|
tool: string;
|
|
932
932
|
scopes: string[];
|
|
933
|
-
toolDescription: string;
|
|
934
933
|
agentDid: string;
|
|
935
934
|
sessionId: string;
|
|
936
935
|
projectId: string;
|
|
937
936
|
serverUrl: string;
|
|
937
|
+
toolDescription: string;
|
|
938
938
|
provider?: string | undefined;
|
|
939
939
|
autoClose?: boolean | undefined;
|
|
940
940
|
oauthRequired?: boolean | undefined;
|
|
@@ -942,11 +942,11 @@ export declare const ConsentPageConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
942
942
|
}, {
|
|
943
943
|
tool: string;
|
|
944
944
|
scopes: string[];
|
|
945
|
-
toolDescription: string;
|
|
946
945
|
agentDid: string;
|
|
947
946
|
sessionId: string;
|
|
948
947
|
projectId: string;
|
|
949
948
|
serverUrl: string;
|
|
949
|
+
toolDescription: string;
|
|
950
950
|
provider?: string | undefined;
|
|
951
951
|
autoClose?: boolean | undefined;
|
|
952
952
|
oauthRequired?: boolean | undefined;
|
|
@@ -954,11 +954,11 @@ export declare const ConsentPageConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
954
954
|
}>, {
|
|
955
955
|
tool: string;
|
|
956
956
|
scopes: string[];
|
|
957
|
-
toolDescription: string;
|
|
958
957
|
agentDid: string;
|
|
959
958
|
sessionId: string;
|
|
960
959
|
projectId: string;
|
|
961
960
|
serverUrl: string;
|
|
961
|
+
toolDescription: string;
|
|
962
962
|
provider?: string | undefined;
|
|
963
963
|
autoClose?: boolean | undefined;
|
|
964
964
|
oauthRequired?: boolean | undefined;
|
|
@@ -966,11 +966,11 @@ export declare const ConsentPageConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
966
966
|
}, {
|
|
967
967
|
tool: string;
|
|
968
968
|
scopes: string[];
|
|
969
|
-
toolDescription: string;
|
|
970
969
|
agentDid: string;
|
|
971
970
|
sessionId: string;
|
|
972
971
|
projectId: string;
|
|
973
972
|
serverUrl: string;
|
|
973
|
+
toolDescription: string;
|
|
974
974
|
provider?: string | undefined;
|
|
975
975
|
autoClose?: boolean | undefined;
|
|
976
976
|
oauthRequired?: boolean | undefined;
|