@kya-os/contracts 1.6.3-canary.0 → 1.6.3
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/agentshield-api/admin-schemas.d.ts +2 -2
- package/dist/agentshield-api/schemas.d.ts +74 -100
- package/dist/audit/index.d.ts +4 -4
- package/dist/config/identity.d.ts +6 -6
- package/dist/consent/schemas.d.ts +78 -78
- package/dist/dashboard-config/index.d.ts +2 -2
- package/dist/dashboard-config/index.js +1 -4
- package/dist/dashboard-config/schemas.d.ts +3307 -6742
- package/dist/dashboard-config/schemas.js +1 -23
- package/dist/dashboard-config/types.d.ts +1 -28
- package/dist/handshake.d.ts +50 -0
- package/dist/handshake.js +23 -1
- package/dist/identity/index.d.ts +7 -0
- package/dist/identity/index.js +23 -0
- package/dist/identity/schemas.d.ts +250 -0
- package/dist/identity/schemas.js +115 -0
- package/dist/index.js +1 -0
- package/dist/tool-protection/index.d.ts +6 -6
- package/dist/well-known/index.d.ts +2 -2
- package/package.json +6 -6
|
@@ -38,13 +38,13 @@ export declare const consentTermsSchema: z.ZodObject<{
|
|
|
38
38
|
}, "strip", z.ZodTypeAny, {
|
|
39
39
|
required: boolean;
|
|
40
40
|
version?: string | undefined;
|
|
41
|
-
text?: string | undefined;
|
|
42
41
|
url?: string | undefined;
|
|
42
|
+
text?: string | undefined;
|
|
43
43
|
}, {
|
|
44
|
-
required?: boolean | undefined;
|
|
45
44
|
version?: string | undefined;
|
|
46
|
-
text?: string | undefined;
|
|
47
45
|
url?: string | undefined;
|
|
46
|
+
required?: boolean | undefined;
|
|
47
|
+
text?: string | undefined;
|
|
48
48
|
}>;
|
|
49
49
|
export type ConsentTerms = z.infer<typeof consentTermsSchema>;
|
|
50
50
|
/**
|
|
@@ -82,8 +82,8 @@ export declare const consentCustomFieldSchema: z.ZodEffects<z.ZodObject<{
|
|
|
82
82
|
pattern: z.ZodOptional<z.ZodString>;
|
|
83
83
|
}, "strip", z.ZodTypeAny, {
|
|
84
84
|
type: "text" | "textarea" | "checkbox" | "select";
|
|
85
|
-
required: boolean;
|
|
86
85
|
name: string;
|
|
86
|
+
required: boolean;
|
|
87
87
|
label: string;
|
|
88
88
|
options?: {
|
|
89
89
|
value: string;
|
|
@@ -93,8 +93,8 @@ export declare const consentCustomFieldSchema: z.ZodEffects<z.ZodObject<{
|
|
|
93
93
|
pattern?: string | undefined;
|
|
94
94
|
}, {
|
|
95
95
|
type: "text" | "textarea" | "checkbox" | "select";
|
|
96
|
-
required: boolean;
|
|
97
96
|
name: string;
|
|
97
|
+
required: boolean;
|
|
98
98
|
label: string;
|
|
99
99
|
options?: {
|
|
100
100
|
value: string;
|
|
@@ -104,8 +104,8 @@ export declare const consentCustomFieldSchema: z.ZodEffects<z.ZodObject<{
|
|
|
104
104
|
pattern?: string | undefined;
|
|
105
105
|
}>, {
|
|
106
106
|
type: "text" | "textarea" | "checkbox" | "select";
|
|
107
|
-
required: boolean;
|
|
108
107
|
name: string;
|
|
108
|
+
required: boolean;
|
|
109
109
|
label: string;
|
|
110
110
|
options?: {
|
|
111
111
|
value: string;
|
|
@@ -115,8 +115,8 @@ export declare const consentCustomFieldSchema: z.ZodEffects<z.ZodObject<{
|
|
|
115
115
|
pattern?: string | undefined;
|
|
116
116
|
}, {
|
|
117
117
|
type: "text" | "textarea" | "checkbox" | "select";
|
|
118
|
-
required: boolean;
|
|
119
118
|
name: string;
|
|
119
|
+
required: boolean;
|
|
120
120
|
label: string;
|
|
121
121
|
options?: {
|
|
122
122
|
value: string;
|
|
@@ -151,13 +151,13 @@ export declare const oauthIdentitySchema: z.ZodObject<{
|
|
|
151
151
|
*/
|
|
152
152
|
name: z.ZodOptional<z.ZodString>;
|
|
153
153
|
}, "strip", z.ZodTypeAny, {
|
|
154
|
-
provider: string;
|
|
155
154
|
subject: string;
|
|
155
|
+
provider: string;
|
|
156
156
|
name?: string | undefined;
|
|
157
157
|
email?: string | undefined;
|
|
158
158
|
}, {
|
|
159
|
-
provider: string;
|
|
160
159
|
subject: string;
|
|
160
|
+
provider: string;
|
|
161
161
|
name?: string | undefined;
|
|
162
162
|
email?: string | undefined;
|
|
163
163
|
}>;
|
|
@@ -197,13 +197,13 @@ export declare const consentPageConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
197
197
|
}, "strip", z.ZodTypeAny, {
|
|
198
198
|
required: boolean;
|
|
199
199
|
version?: string | undefined;
|
|
200
|
-
text?: string | undefined;
|
|
201
200
|
url?: string | undefined;
|
|
201
|
+
text?: string | undefined;
|
|
202
202
|
}, {
|
|
203
|
-
required?: boolean | undefined;
|
|
204
203
|
version?: string | undefined;
|
|
205
|
-
text?: string | undefined;
|
|
206
204
|
url?: string | undefined;
|
|
205
|
+
required?: boolean | undefined;
|
|
206
|
+
text?: string | undefined;
|
|
207
207
|
}>>;
|
|
208
208
|
customFields: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
209
209
|
name: z.ZodString;
|
|
@@ -224,8 +224,8 @@ export declare const consentPageConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
224
224
|
pattern: z.ZodOptional<z.ZodString>;
|
|
225
225
|
}, "strip", z.ZodTypeAny, {
|
|
226
226
|
type: "text" | "textarea" | "checkbox" | "select";
|
|
227
|
-
required: boolean;
|
|
228
227
|
name: string;
|
|
228
|
+
required: boolean;
|
|
229
229
|
label: string;
|
|
230
230
|
options?: {
|
|
231
231
|
value: string;
|
|
@@ -235,8 +235,8 @@ export declare const consentPageConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
235
235
|
pattern?: string | undefined;
|
|
236
236
|
}, {
|
|
237
237
|
type: "text" | "textarea" | "checkbox" | "select";
|
|
238
|
-
required: boolean;
|
|
239
238
|
name: string;
|
|
239
|
+
required: boolean;
|
|
240
240
|
label: string;
|
|
241
241
|
options?: {
|
|
242
242
|
value: string;
|
|
@@ -246,8 +246,8 @@ export declare const consentPageConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
246
246
|
pattern?: string | undefined;
|
|
247
247
|
}>, {
|
|
248
248
|
type: "text" | "textarea" | "checkbox" | "select";
|
|
249
|
-
required: boolean;
|
|
250
249
|
name: string;
|
|
250
|
+
required: boolean;
|
|
251
251
|
label: string;
|
|
252
252
|
options?: {
|
|
253
253
|
value: string;
|
|
@@ -257,8 +257,8 @@ export declare const consentPageConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
257
257
|
pattern?: string | undefined;
|
|
258
258
|
}, {
|
|
259
259
|
type: "text" | "textarea" | "checkbox" | "select";
|
|
260
|
-
required: boolean;
|
|
261
260
|
name: string;
|
|
261
|
+
required: boolean;
|
|
262
262
|
label: string;
|
|
263
263
|
options?: {
|
|
264
264
|
value: string;
|
|
@@ -280,10 +280,10 @@ export declare const consentPageConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
280
280
|
*/
|
|
281
281
|
oauthUrl: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
282
282
|
}, "strip", z.ZodTypeAny, {
|
|
283
|
-
scopes: string[];
|
|
284
|
-
sessionId: string;
|
|
285
283
|
agentDid: string;
|
|
284
|
+
sessionId: string;
|
|
286
285
|
tool: string;
|
|
286
|
+
scopes: string[];
|
|
287
287
|
projectId: string;
|
|
288
288
|
serverUrl: string;
|
|
289
289
|
toolDescription: string;
|
|
@@ -297,13 +297,13 @@ export declare const consentPageConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
297
297
|
terms?: {
|
|
298
298
|
required: boolean;
|
|
299
299
|
version?: string | undefined;
|
|
300
|
-
text?: string | undefined;
|
|
301
300
|
url?: string | undefined;
|
|
301
|
+
text?: string | undefined;
|
|
302
302
|
} | undefined;
|
|
303
303
|
customFields?: {
|
|
304
304
|
type: "text" | "textarea" | "checkbox" | "select";
|
|
305
|
-
required: boolean;
|
|
306
305
|
name: string;
|
|
306
|
+
required: boolean;
|
|
307
307
|
label: string;
|
|
308
308
|
options?: {
|
|
309
309
|
value: string;
|
|
@@ -316,10 +316,10 @@ export declare const consentPageConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
316
316
|
oauthRequired?: boolean | undefined;
|
|
317
317
|
oauthUrl?: string | undefined;
|
|
318
318
|
}, {
|
|
319
|
-
scopes: string[];
|
|
320
|
-
sessionId: string;
|
|
321
319
|
agentDid: string;
|
|
320
|
+
sessionId: string;
|
|
322
321
|
tool: string;
|
|
322
|
+
scopes: string[];
|
|
323
323
|
projectId: string;
|
|
324
324
|
serverUrl: string;
|
|
325
325
|
toolDescription: string;
|
|
@@ -331,15 +331,15 @@ export declare const consentPageConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
331
331
|
theme?: "light" | "dark" | "auto" | undefined;
|
|
332
332
|
} | undefined;
|
|
333
333
|
terms?: {
|
|
334
|
-
required?: boolean | undefined;
|
|
335
334
|
version?: string | undefined;
|
|
336
|
-
text?: string | undefined;
|
|
337
335
|
url?: string | undefined;
|
|
336
|
+
required?: boolean | undefined;
|
|
337
|
+
text?: string | undefined;
|
|
338
338
|
} | undefined;
|
|
339
339
|
customFields?: {
|
|
340
340
|
type: "text" | "textarea" | "checkbox" | "select";
|
|
341
|
-
required: boolean;
|
|
342
341
|
name: string;
|
|
342
|
+
required: boolean;
|
|
343
343
|
label: string;
|
|
344
344
|
options?: {
|
|
345
345
|
value: string;
|
|
@@ -352,10 +352,10 @@ export declare const consentPageConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
352
352
|
oauthRequired?: boolean | undefined;
|
|
353
353
|
oauthUrl?: string | undefined;
|
|
354
354
|
}>, {
|
|
355
|
-
scopes: string[];
|
|
356
|
-
sessionId: string;
|
|
357
355
|
agentDid: string;
|
|
356
|
+
sessionId: string;
|
|
358
357
|
tool: string;
|
|
358
|
+
scopes: string[];
|
|
359
359
|
projectId: string;
|
|
360
360
|
serverUrl: string;
|
|
361
361
|
toolDescription: string;
|
|
@@ -369,13 +369,13 @@ export declare const consentPageConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
369
369
|
terms?: {
|
|
370
370
|
required: boolean;
|
|
371
371
|
version?: string | undefined;
|
|
372
|
-
text?: string | undefined;
|
|
373
372
|
url?: string | undefined;
|
|
373
|
+
text?: string | undefined;
|
|
374
374
|
} | undefined;
|
|
375
375
|
customFields?: {
|
|
376
376
|
type: "text" | "textarea" | "checkbox" | "select";
|
|
377
|
-
required: boolean;
|
|
378
377
|
name: string;
|
|
378
|
+
required: boolean;
|
|
379
379
|
label: string;
|
|
380
380
|
options?: {
|
|
381
381
|
value: string;
|
|
@@ -388,10 +388,10 @@ export declare const consentPageConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
388
388
|
oauthRequired?: boolean | undefined;
|
|
389
389
|
oauthUrl?: string | undefined;
|
|
390
390
|
}, {
|
|
391
|
-
scopes: string[];
|
|
392
|
-
sessionId: string;
|
|
393
391
|
agentDid: string;
|
|
392
|
+
sessionId: string;
|
|
394
393
|
tool: string;
|
|
394
|
+
scopes: string[];
|
|
395
395
|
projectId: string;
|
|
396
396
|
serverUrl: string;
|
|
397
397
|
toolDescription: string;
|
|
@@ -403,15 +403,15 @@ export declare const consentPageConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
403
403
|
theme?: "light" | "dark" | "auto" | undefined;
|
|
404
404
|
} | undefined;
|
|
405
405
|
terms?: {
|
|
406
|
-
required?: boolean | undefined;
|
|
407
406
|
version?: string | undefined;
|
|
408
|
-
text?: string | undefined;
|
|
409
407
|
url?: string | undefined;
|
|
408
|
+
required?: boolean | undefined;
|
|
409
|
+
text?: string | undefined;
|
|
410
410
|
} | undefined;
|
|
411
411
|
customFields?: {
|
|
412
412
|
type: "text" | "textarea" | "checkbox" | "select";
|
|
413
|
-
required: boolean;
|
|
414
413
|
name: string;
|
|
414
|
+
required: boolean;
|
|
415
415
|
label: string;
|
|
416
416
|
options?: {
|
|
417
417
|
value: string;
|
|
@@ -469,13 +469,13 @@ export declare const consentApprovalRequestSchema: z.ZodObject<{
|
|
|
469
469
|
*/
|
|
470
470
|
name: z.ZodOptional<z.ZodString>;
|
|
471
471
|
}, "strip", z.ZodTypeAny, {
|
|
472
|
-
provider: string;
|
|
473
472
|
subject: string;
|
|
473
|
+
provider: string;
|
|
474
474
|
name?: string | undefined;
|
|
475
475
|
email?: string | undefined;
|
|
476
476
|
}, {
|
|
477
|
-
provider: string;
|
|
478
477
|
subject: string;
|
|
478
|
+
provider: string;
|
|
479
479
|
name?: string | undefined;
|
|
480
480
|
email?: string | undefined;
|
|
481
481
|
}>>>;
|
|
@@ -486,33 +486,33 @@ export declare const consentApprovalRequestSchema: z.ZodObject<{
|
|
|
486
486
|
*/
|
|
487
487
|
user_did: z.ZodOptional<z.ZodString>;
|
|
488
488
|
}, "strip", z.ZodTypeAny, {
|
|
489
|
-
scopes: string[];
|
|
490
|
-
session_id: string;
|
|
491
489
|
tool: string;
|
|
492
|
-
|
|
490
|
+
session_id: string;
|
|
491
|
+
scopes: string[];
|
|
493
492
|
agent_did: string;
|
|
494
493
|
project_id: string;
|
|
494
|
+
termsAccepted: boolean;
|
|
495
495
|
customFields?: Record<string, string | boolean> | undefined;
|
|
496
496
|
termsVersion?: string | undefined;
|
|
497
497
|
oauth_identity?: {
|
|
498
|
-
provider: string;
|
|
499
498
|
subject: string;
|
|
499
|
+
provider: string;
|
|
500
500
|
name?: string | undefined;
|
|
501
501
|
email?: string | undefined;
|
|
502
502
|
} | null | undefined;
|
|
503
503
|
user_did?: string | undefined;
|
|
504
504
|
}, {
|
|
505
|
-
scopes: string[];
|
|
506
|
-
session_id: string;
|
|
507
505
|
tool: string;
|
|
508
|
-
|
|
506
|
+
session_id: string;
|
|
507
|
+
scopes: string[];
|
|
509
508
|
agent_did: string;
|
|
510
509
|
project_id: string;
|
|
510
|
+
termsAccepted: boolean;
|
|
511
511
|
customFields?: Record<string, string | boolean> | undefined;
|
|
512
512
|
termsVersion?: string | undefined;
|
|
513
513
|
oauth_identity?: {
|
|
514
|
-
provider: string;
|
|
515
514
|
subject: string;
|
|
515
|
+
provider: string;
|
|
516
516
|
name?: string | undefined;
|
|
517
517
|
email?: string | undefined;
|
|
518
518
|
} | null | undefined;
|
|
@@ -582,13 +582,13 @@ export declare const consentConfigSchema: z.ZodObject<{
|
|
|
582
582
|
}, "strip", z.ZodTypeAny, {
|
|
583
583
|
required: boolean;
|
|
584
584
|
version?: string | undefined;
|
|
585
|
-
text?: string | undefined;
|
|
586
585
|
url?: string | undefined;
|
|
586
|
+
text?: string | undefined;
|
|
587
587
|
}, {
|
|
588
|
-
required?: boolean | undefined;
|
|
589
588
|
version?: string | undefined;
|
|
590
|
-
text?: string | undefined;
|
|
591
589
|
url?: string | undefined;
|
|
590
|
+
required?: boolean | undefined;
|
|
591
|
+
text?: string | undefined;
|
|
592
592
|
}>>;
|
|
593
593
|
customFields: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
594
594
|
name: z.ZodString;
|
|
@@ -609,8 +609,8 @@ export declare const consentConfigSchema: z.ZodObject<{
|
|
|
609
609
|
pattern: z.ZodOptional<z.ZodString>;
|
|
610
610
|
}, "strip", z.ZodTypeAny, {
|
|
611
611
|
type: "text" | "textarea" | "checkbox" | "select";
|
|
612
|
-
required: boolean;
|
|
613
612
|
name: string;
|
|
613
|
+
required: boolean;
|
|
614
614
|
label: string;
|
|
615
615
|
options?: {
|
|
616
616
|
value: string;
|
|
@@ -620,8 +620,8 @@ export declare const consentConfigSchema: z.ZodObject<{
|
|
|
620
620
|
pattern?: string | undefined;
|
|
621
621
|
}, {
|
|
622
622
|
type: "text" | "textarea" | "checkbox" | "select";
|
|
623
|
-
required: boolean;
|
|
624
623
|
name: string;
|
|
624
|
+
required: boolean;
|
|
625
625
|
label: string;
|
|
626
626
|
options?: {
|
|
627
627
|
value: string;
|
|
@@ -631,8 +631,8 @@ export declare const consentConfigSchema: z.ZodObject<{
|
|
|
631
631
|
pattern?: string | undefined;
|
|
632
632
|
}>, {
|
|
633
633
|
type: "text" | "textarea" | "checkbox" | "select";
|
|
634
|
-
required: boolean;
|
|
635
634
|
name: string;
|
|
635
|
+
required: boolean;
|
|
636
636
|
label: string;
|
|
637
637
|
options?: {
|
|
638
638
|
value: string;
|
|
@@ -642,8 +642,8 @@ export declare const consentConfigSchema: z.ZodObject<{
|
|
|
642
642
|
pattern?: string | undefined;
|
|
643
643
|
}, {
|
|
644
644
|
type: "text" | "textarea" | "checkbox" | "select";
|
|
645
|
-
required: boolean;
|
|
646
645
|
name: string;
|
|
646
|
+
required: boolean;
|
|
647
647
|
label: string;
|
|
648
648
|
options?: {
|
|
649
649
|
value: string;
|
|
@@ -678,13 +678,13 @@ export declare const consentConfigSchema: z.ZodObject<{
|
|
|
678
678
|
terms?: {
|
|
679
679
|
required: boolean;
|
|
680
680
|
version?: string | undefined;
|
|
681
|
-
text?: string | undefined;
|
|
682
681
|
url?: string | undefined;
|
|
682
|
+
text?: string | undefined;
|
|
683
683
|
} | undefined;
|
|
684
684
|
customFields?: {
|
|
685
685
|
type: "text" | "textarea" | "checkbox" | "select";
|
|
686
|
-
required: boolean;
|
|
687
686
|
name: string;
|
|
687
|
+
required: boolean;
|
|
688
688
|
label: string;
|
|
689
689
|
options?: {
|
|
690
690
|
value: string;
|
|
@@ -707,15 +707,15 @@ export declare const consentConfigSchema: z.ZodObject<{
|
|
|
707
707
|
theme?: "light" | "dark" | "auto" | undefined;
|
|
708
708
|
} | undefined;
|
|
709
709
|
terms?: {
|
|
710
|
-
required?: boolean | undefined;
|
|
711
710
|
version?: string | undefined;
|
|
712
|
-
text?: string | undefined;
|
|
713
711
|
url?: string | undefined;
|
|
712
|
+
required?: boolean | undefined;
|
|
713
|
+
text?: string | undefined;
|
|
714
714
|
} | undefined;
|
|
715
715
|
customFields?: {
|
|
716
716
|
type: "text" | "textarea" | "checkbox" | "select";
|
|
717
|
-
required: boolean;
|
|
718
717
|
name: string;
|
|
718
|
+
required: boolean;
|
|
719
719
|
label: string;
|
|
720
720
|
options?: {
|
|
721
721
|
value: string;
|
|
@@ -742,10 +742,10 @@ export type ConsentConfig = z.infer<typeof consentConfigSchema>;
|
|
|
742
742
|
* @returns Validation result
|
|
743
743
|
*/
|
|
744
744
|
export declare function validateConsentPageConfig(config: unknown): z.SafeParseReturnType<{
|
|
745
|
-
scopes: string[];
|
|
746
|
-
sessionId: string;
|
|
747
745
|
agentDid: string;
|
|
746
|
+
sessionId: string;
|
|
748
747
|
tool: string;
|
|
748
|
+
scopes: string[];
|
|
749
749
|
projectId: string;
|
|
750
750
|
serverUrl: string;
|
|
751
751
|
toolDescription: string;
|
|
@@ -757,15 +757,15 @@ export declare function validateConsentPageConfig(config: unknown): z.SafeParseR
|
|
|
757
757
|
theme?: "light" | "dark" | "auto" | undefined;
|
|
758
758
|
} | undefined;
|
|
759
759
|
terms?: {
|
|
760
|
-
required?: boolean | undefined;
|
|
761
760
|
version?: string | undefined;
|
|
762
|
-
text?: string | undefined;
|
|
763
761
|
url?: string | undefined;
|
|
762
|
+
required?: boolean | undefined;
|
|
763
|
+
text?: string | undefined;
|
|
764
764
|
} | undefined;
|
|
765
765
|
customFields?: {
|
|
766
766
|
type: "text" | "textarea" | "checkbox" | "select";
|
|
767
|
-
required: boolean;
|
|
768
767
|
name: string;
|
|
768
|
+
required: boolean;
|
|
769
769
|
label: string;
|
|
770
770
|
options?: {
|
|
771
771
|
value: string;
|
|
@@ -778,10 +778,10 @@ export declare function validateConsentPageConfig(config: unknown): z.SafeParseR
|
|
|
778
778
|
oauthRequired?: boolean | undefined;
|
|
779
779
|
oauthUrl?: string | undefined;
|
|
780
780
|
}, {
|
|
781
|
-
scopes: string[];
|
|
782
|
-
sessionId: string;
|
|
783
781
|
agentDid: string;
|
|
782
|
+
sessionId: string;
|
|
784
783
|
tool: string;
|
|
784
|
+
scopes: string[];
|
|
785
785
|
projectId: string;
|
|
786
786
|
serverUrl: string;
|
|
787
787
|
toolDescription: string;
|
|
@@ -795,13 +795,13 @@ export declare function validateConsentPageConfig(config: unknown): z.SafeParseR
|
|
|
795
795
|
terms?: {
|
|
796
796
|
required: boolean;
|
|
797
797
|
version?: string | undefined;
|
|
798
|
-
text?: string | undefined;
|
|
799
798
|
url?: string | undefined;
|
|
799
|
+
text?: string | undefined;
|
|
800
800
|
} | undefined;
|
|
801
801
|
customFields?: {
|
|
802
802
|
type: "text" | "textarea" | "checkbox" | "select";
|
|
803
|
-
required: boolean;
|
|
804
803
|
name: string;
|
|
804
|
+
required: boolean;
|
|
805
805
|
label: string;
|
|
806
806
|
options?: {
|
|
807
807
|
value: string;
|
|
@@ -821,33 +821,33 @@ export declare function validateConsentPageConfig(config: unknown): z.SafeParseR
|
|
|
821
821
|
* @returns Validation result
|
|
822
822
|
*/
|
|
823
823
|
export declare function validateConsentApprovalRequest(request: unknown): z.SafeParseReturnType<{
|
|
824
|
-
scopes: string[];
|
|
825
|
-
session_id: string;
|
|
826
824
|
tool: string;
|
|
827
|
-
|
|
825
|
+
session_id: string;
|
|
826
|
+
scopes: string[];
|
|
828
827
|
agent_did: string;
|
|
829
828
|
project_id: string;
|
|
829
|
+
termsAccepted: boolean;
|
|
830
830
|
customFields?: Record<string, string | boolean> | undefined;
|
|
831
831
|
termsVersion?: string | undefined;
|
|
832
832
|
oauth_identity?: {
|
|
833
|
-
provider: string;
|
|
834
833
|
subject: string;
|
|
834
|
+
provider: string;
|
|
835
835
|
name?: string | undefined;
|
|
836
836
|
email?: string | undefined;
|
|
837
837
|
} | null | undefined;
|
|
838
838
|
user_did?: string | undefined;
|
|
839
839
|
}, {
|
|
840
|
-
scopes: string[];
|
|
841
|
-
session_id: string;
|
|
842
840
|
tool: string;
|
|
843
|
-
|
|
841
|
+
session_id: string;
|
|
842
|
+
scopes: string[];
|
|
844
843
|
agent_did: string;
|
|
845
844
|
project_id: string;
|
|
845
|
+
termsAccepted: boolean;
|
|
846
846
|
customFields?: Record<string, string | boolean> | undefined;
|
|
847
847
|
termsVersion?: string | undefined;
|
|
848
848
|
oauth_identity?: {
|
|
849
|
-
provider: string;
|
|
850
849
|
subject: string;
|
|
850
|
+
provider: string;
|
|
851
851
|
name?: string | undefined;
|
|
852
852
|
email?: string | undefined;
|
|
853
853
|
} | null | undefined;
|
|
@@ -886,15 +886,15 @@ export declare function validateConsentConfig(config: unknown): z.SafeParseRetur
|
|
|
886
886
|
theme?: "light" | "dark" | "auto" | undefined;
|
|
887
887
|
} | undefined;
|
|
888
888
|
terms?: {
|
|
889
|
-
required?: boolean | undefined;
|
|
890
889
|
version?: string | undefined;
|
|
891
|
-
text?: string | undefined;
|
|
892
890
|
url?: string | undefined;
|
|
891
|
+
required?: boolean | undefined;
|
|
892
|
+
text?: string | undefined;
|
|
893
893
|
} | undefined;
|
|
894
894
|
customFields?: {
|
|
895
895
|
type: "text" | "textarea" | "checkbox" | "select";
|
|
896
|
-
required: boolean;
|
|
897
896
|
name: string;
|
|
897
|
+
required: boolean;
|
|
898
898
|
label: string;
|
|
899
899
|
options?: {
|
|
900
900
|
value: string;
|
|
@@ -919,13 +919,13 @@ export declare function validateConsentConfig(config: unknown): z.SafeParseRetur
|
|
|
919
919
|
terms?: {
|
|
920
920
|
required: boolean;
|
|
921
921
|
version?: string | undefined;
|
|
922
|
-
text?: string | undefined;
|
|
923
922
|
url?: string | undefined;
|
|
923
|
+
text?: string | undefined;
|
|
924
924
|
} | undefined;
|
|
925
925
|
customFields?: {
|
|
926
926
|
type: "text" | "textarea" | "checkbox" | "select";
|
|
927
|
-
required: boolean;
|
|
928
927
|
name: string;
|
|
928
|
+
required: boolean;
|
|
929
929
|
label: string;
|
|
930
930
|
options?: {
|
|
931
931
|
value: string;
|
|
@@ -5,6 +5,6 @@
|
|
|
5
5
|
*
|
|
6
6
|
* @package @kya-os/contracts/dashboard-config
|
|
7
7
|
*/
|
|
8
|
-
export type { MCPIServerConfig,
|
|
9
|
-
export { identityConfigSchema, proofingConfigSchema, delegationConfigSchema, toolProtectionConfigSchema,
|
|
8
|
+
export type { MCPIServerConfig, GetServerConfigRequest, GetServerConfigResponse, UpdateServerConfigRequest, UpdateServerConfigResponse, ValidateServerConfigRequest, ValidateServerConfigResponse, } from './types.js';
|
|
9
|
+
export { identityConfigSchema, proofingConfigSchema, delegationConfigSchema, toolProtectionConfigSchema, auditConfigSchema, sessionConfigSchema, platformConfigSchema, cloudflarePlatformConfigSchema, nodePlatformConfigSchema, vercelPlatformConfigSchema, configMetadataSchema, mcpIServerConfigSchema, getServerConfigRequestSchema, getServerConfigResponseSchema, updateServerConfigRequestSchema, updateServerConfigResponseSchema, validateServerConfigRequestSchema, validateServerConfigResponseSchema, } from './schemas.js';
|
|
10
10
|
export { defaultConfig, getDefaultConfigForPlatform, mergeWithDefaults, } from './default-config.js';
|
|
@@ -7,14 +7,13 @@
|
|
|
7
7
|
* @package @kya-os/contracts/dashboard-config
|
|
8
8
|
*/
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.mergeWithDefaults = exports.getDefaultConfigForPlatform = exports.defaultConfig = exports.validateServerConfigResponseSchema = exports.validateServerConfigRequestSchema = exports.updateServerConfigResponseSchema = exports.updateServerConfigRequestSchema = exports.
|
|
10
|
+
exports.mergeWithDefaults = exports.getDefaultConfigForPlatform = exports.defaultConfig = exports.validateServerConfigResponseSchema = exports.validateServerConfigRequestSchema = exports.updateServerConfigResponseSchema = exports.updateServerConfigRequestSchema = exports.getServerConfigResponseSchema = exports.getServerConfigRequestSchema = exports.mcpIServerConfigSchema = exports.configMetadataSchema = exports.vercelPlatformConfigSchema = exports.nodePlatformConfigSchema = exports.cloudflarePlatformConfigSchema = exports.platformConfigSchema = exports.sessionConfigSchema = exports.auditConfigSchema = exports.toolProtectionConfigSchema = exports.delegationConfigSchema = exports.proofingConfigSchema = exports.identityConfigSchema = void 0;
|
|
11
11
|
// Schema exports
|
|
12
12
|
var schemas_js_1 = require("./schemas.js");
|
|
13
13
|
Object.defineProperty(exports, "identityConfigSchema", { enumerable: true, get: function () { return schemas_js_1.identityConfigSchema; } });
|
|
14
14
|
Object.defineProperty(exports, "proofingConfigSchema", { enumerable: true, get: function () { return schemas_js_1.proofingConfigSchema; } });
|
|
15
15
|
Object.defineProperty(exports, "delegationConfigSchema", { enumerable: true, get: function () { return schemas_js_1.delegationConfigSchema; } });
|
|
16
16
|
Object.defineProperty(exports, "toolProtectionConfigSchema", { enumerable: true, get: function () { return schemas_js_1.toolProtectionConfigSchema; } });
|
|
17
|
-
Object.defineProperty(exports, "mergedToolProtectionConfigSchema", { enumerable: true, get: function () { return schemas_js_1.mergedToolProtectionConfigSchema; } });
|
|
18
17
|
Object.defineProperty(exports, "auditConfigSchema", { enumerable: true, get: function () { return schemas_js_1.auditConfigSchema; } });
|
|
19
18
|
Object.defineProperty(exports, "sessionConfigSchema", { enumerable: true, get: function () { return schemas_js_1.sessionConfigSchema; } });
|
|
20
19
|
Object.defineProperty(exports, "platformConfigSchema", { enumerable: true, get: function () { return schemas_js_1.platformConfigSchema; } });
|
|
@@ -23,10 +22,8 @@ Object.defineProperty(exports, "nodePlatformConfigSchema", { enumerable: true, g
|
|
|
23
22
|
Object.defineProperty(exports, "vercelPlatformConfigSchema", { enumerable: true, get: function () { return schemas_js_1.vercelPlatformConfigSchema; } });
|
|
24
23
|
Object.defineProperty(exports, "configMetadataSchema", { enumerable: true, get: function () { return schemas_js_1.configMetadataSchema; } });
|
|
25
24
|
Object.defineProperty(exports, "mcpIServerConfigSchema", { enumerable: true, get: function () { return schemas_js_1.mcpIServerConfigSchema; } });
|
|
26
|
-
Object.defineProperty(exports, "mergedMcpIServerConfigSchema", { enumerable: true, get: function () { return schemas_js_1.mergedMcpIServerConfigSchema; } });
|
|
27
25
|
Object.defineProperty(exports, "getServerConfigRequestSchema", { enumerable: true, get: function () { return schemas_js_1.getServerConfigRequestSchema; } });
|
|
28
26
|
Object.defineProperty(exports, "getServerConfigResponseSchema", { enumerable: true, get: function () { return schemas_js_1.getServerConfigResponseSchema; } });
|
|
29
|
-
Object.defineProperty(exports, "getMergedServerConfigResponseSchema", { enumerable: true, get: function () { return schemas_js_1.getMergedServerConfigResponseSchema; } });
|
|
30
27
|
Object.defineProperty(exports, "updateServerConfigRequestSchema", { enumerable: true, get: function () { return schemas_js_1.updateServerConfigRequestSchema; } });
|
|
31
28
|
Object.defineProperty(exports, "updateServerConfigResponseSchema", { enumerable: true, get: function () { return schemas_js_1.updateServerConfigResponseSchema; } });
|
|
32
29
|
Object.defineProperty(exports, "validateServerConfigRequestSchema", { enumerable: true, get: function () { return schemas_js_1.validateServerConfigRequestSchema; } });
|