@kya-os/contracts 1.6.2 → 1.6.3-canary.0
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 +100 -74
- package/dist/audit/index.d.ts +24 -24
- 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 +4 -1
- package/dist/dashboard-config/schemas.d.ts +6595 -3160
- package/dist/dashboard-config/schemas.js +23 -1
- package/dist/dashboard-config/types.d.ts +28 -1
- package/dist/handshake.d.ts +14 -14
- package/dist/tool-protection/index.d.ts +6 -6
- package/dist/well-known/index.d.ts +2 -2
- package/package.json +5 -1
|
@@ -155,9 +155,9 @@ export declare const OAuthProviderSchema: z.ZodObject<{
|
|
|
155
155
|
requiresClientSecret: boolean;
|
|
156
156
|
responseType: string;
|
|
157
157
|
grantType: string;
|
|
158
|
-
scopes?: string[] | undefined;
|
|
159
158
|
clientSecret?: string | null | undefined;
|
|
160
159
|
userInfoUrl?: string | undefined;
|
|
160
|
+
scopes?: string[] | undefined;
|
|
161
161
|
defaultScopes?: string[] | undefined;
|
|
162
162
|
proxyMode?: boolean | undefined;
|
|
163
163
|
customParams?: Record<string, string> | undefined;
|
|
@@ -168,9 +168,9 @@ export declare const OAuthProviderSchema: z.ZodObject<{
|
|
|
168
168
|
tokenUrl: string;
|
|
169
169
|
supportsPKCE: boolean;
|
|
170
170
|
requiresClientSecret: boolean;
|
|
171
|
-
scopes?: string[] | undefined;
|
|
172
171
|
clientSecret?: string | null | undefined;
|
|
173
172
|
userInfoUrl?: string | undefined;
|
|
173
|
+
scopes?: string[] | undefined;
|
|
174
174
|
defaultScopes?: string[] | undefined;
|
|
175
175
|
proxyMode?: boolean | undefined;
|
|
176
176
|
customParams?: Record<string, string> | undefined;
|
|
@@ -205,9 +205,9 @@ export declare const OAuthConfigSchema: z.ZodObject<{
|
|
|
205
205
|
requiresClientSecret: boolean;
|
|
206
206
|
responseType: string;
|
|
207
207
|
grantType: string;
|
|
208
|
-
scopes?: string[] | undefined;
|
|
209
208
|
clientSecret?: string | null | undefined;
|
|
210
209
|
userInfoUrl?: string | undefined;
|
|
210
|
+
scopes?: string[] | undefined;
|
|
211
211
|
defaultScopes?: string[] | undefined;
|
|
212
212
|
proxyMode?: boolean | undefined;
|
|
213
213
|
customParams?: Record<string, string> | undefined;
|
|
@@ -218,9 +218,9 @@ export declare const OAuthConfigSchema: z.ZodObject<{
|
|
|
218
218
|
tokenUrl: string;
|
|
219
219
|
supportsPKCE: boolean;
|
|
220
220
|
requiresClientSecret: boolean;
|
|
221
|
-
scopes?: string[] | undefined;
|
|
222
221
|
clientSecret?: string | null | undefined;
|
|
223
222
|
userInfoUrl?: string | undefined;
|
|
223
|
+
scopes?: string[] | undefined;
|
|
224
224
|
defaultScopes?: string[] | undefined;
|
|
225
225
|
proxyMode?: boolean | undefined;
|
|
226
226
|
customParams?: Record<string, string> | undefined;
|
|
@@ -238,9 +238,9 @@ export declare const OAuthConfigSchema: z.ZodObject<{
|
|
|
238
238
|
requiresClientSecret: boolean;
|
|
239
239
|
responseType: string;
|
|
240
240
|
grantType: string;
|
|
241
|
-
scopes?: string[] | undefined;
|
|
242
241
|
clientSecret?: string | null | undefined;
|
|
243
242
|
userInfoUrl?: string | undefined;
|
|
243
|
+
scopes?: string[] | undefined;
|
|
244
244
|
defaultScopes?: string[] | undefined;
|
|
245
245
|
proxyMode?: boolean | undefined;
|
|
246
246
|
customParams?: Record<string, string> | undefined;
|
|
@@ -254,9 +254,9 @@ export declare const OAuthConfigSchema: z.ZodObject<{
|
|
|
254
254
|
tokenUrl: string;
|
|
255
255
|
supportsPKCE: boolean;
|
|
256
256
|
requiresClientSecret: boolean;
|
|
257
|
-
scopes?: string[] | undefined;
|
|
258
257
|
clientSecret?: string | null | undefined;
|
|
259
258
|
userInfoUrl?: string | undefined;
|
|
259
|
+
scopes?: string[] | undefined;
|
|
260
260
|
defaultScopes?: string[] | undefined;
|
|
261
261
|
proxyMode?: boolean | undefined;
|
|
262
262
|
customParams?: Record<string, string> | undefined;
|
|
@@ -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
|
-
url?: string | undefined;
|
|
42
41
|
text?: string | undefined;
|
|
43
|
-
}, {
|
|
44
|
-
version?: string | undefined;
|
|
45
42
|
url?: string | undefined;
|
|
43
|
+
}, {
|
|
46
44
|
required?: boolean | undefined;
|
|
45
|
+
version?: string | undefined;
|
|
47
46
|
text?: string | undefined;
|
|
47
|
+
url?: 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
|
-
name: string;
|
|
86
85
|
required: boolean;
|
|
86
|
+
name: string;
|
|
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
|
-
name: string;
|
|
97
96
|
required: boolean;
|
|
97
|
+
name: string;
|
|
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
|
-
name: string;
|
|
108
107
|
required: boolean;
|
|
108
|
+
name: string;
|
|
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
|
-
name: string;
|
|
119
118
|
required: boolean;
|
|
119
|
+
name: string;
|
|
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
|
-
subject: string;
|
|
155
154
|
provider: string;
|
|
155
|
+
subject: string;
|
|
156
156
|
name?: string | undefined;
|
|
157
157
|
email?: string | undefined;
|
|
158
158
|
}, {
|
|
159
|
-
subject: string;
|
|
160
159
|
provider: string;
|
|
160
|
+
subject: 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
|
-
url?: string | undefined;
|
|
201
200
|
text?: string | undefined;
|
|
202
|
-
}, {
|
|
203
|
-
version?: string | undefined;
|
|
204
201
|
url?: string | undefined;
|
|
202
|
+
}, {
|
|
205
203
|
required?: boolean | undefined;
|
|
204
|
+
version?: string | undefined;
|
|
206
205
|
text?: string | undefined;
|
|
206
|
+
url?: 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
|
-
name: string;
|
|
228
227
|
required: boolean;
|
|
228
|
+
name: string;
|
|
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
|
-
name: string;
|
|
239
238
|
required: boolean;
|
|
239
|
+
name: string;
|
|
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
|
-
name: string;
|
|
250
249
|
required: boolean;
|
|
250
|
+
name: string;
|
|
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
|
-
name: string;
|
|
261
260
|
required: boolean;
|
|
261
|
+
name: string;
|
|
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
|
-
|
|
283
|
+
scopes: string[];
|
|
284
284
|
sessionId: string;
|
|
285
|
+
agentDid: string;
|
|
285
286
|
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
|
-
url?: string | undefined;
|
|
301
300
|
text?: string | undefined;
|
|
301
|
+
url?: string | undefined;
|
|
302
302
|
} | undefined;
|
|
303
303
|
customFields?: {
|
|
304
304
|
type: "text" | "textarea" | "checkbox" | "select";
|
|
305
|
-
name: string;
|
|
306
305
|
required: boolean;
|
|
306
|
+
name: string;
|
|
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
|
-
|
|
319
|
+
scopes: string[];
|
|
320
320
|
sessionId: string;
|
|
321
|
+
agentDid: string;
|
|
321
322
|
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
|
-
version?: string | undefined;
|
|
335
|
-
url?: string | undefined;
|
|
336
334
|
required?: boolean | undefined;
|
|
335
|
+
version?: string | undefined;
|
|
337
336
|
text?: string | undefined;
|
|
337
|
+
url?: string | undefined;
|
|
338
338
|
} | undefined;
|
|
339
339
|
customFields?: {
|
|
340
340
|
type: "text" | "textarea" | "checkbox" | "select";
|
|
341
|
-
name: string;
|
|
342
341
|
required: boolean;
|
|
342
|
+
name: string;
|
|
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
|
-
|
|
355
|
+
scopes: string[];
|
|
356
356
|
sessionId: string;
|
|
357
|
+
agentDid: string;
|
|
357
358
|
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
|
-
url?: string | undefined;
|
|
373
372
|
text?: string | undefined;
|
|
373
|
+
url?: string | undefined;
|
|
374
374
|
} | undefined;
|
|
375
375
|
customFields?: {
|
|
376
376
|
type: "text" | "textarea" | "checkbox" | "select";
|
|
377
|
-
name: string;
|
|
378
377
|
required: boolean;
|
|
378
|
+
name: string;
|
|
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
|
-
|
|
391
|
+
scopes: string[];
|
|
392
392
|
sessionId: string;
|
|
393
|
+
agentDid: string;
|
|
393
394
|
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
|
-
version?: string | undefined;
|
|
407
|
-
url?: string | undefined;
|
|
408
406
|
required?: boolean | undefined;
|
|
407
|
+
version?: string | undefined;
|
|
409
408
|
text?: string | undefined;
|
|
409
|
+
url?: string | undefined;
|
|
410
410
|
} | undefined;
|
|
411
411
|
customFields?: {
|
|
412
412
|
type: "text" | "textarea" | "checkbox" | "select";
|
|
413
|
-
name: string;
|
|
414
413
|
required: boolean;
|
|
414
|
+
name: string;
|
|
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
|
-
subject: string;
|
|
473
472
|
provider: string;
|
|
473
|
+
subject: string;
|
|
474
474
|
name?: string | undefined;
|
|
475
475
|
email?: string | undefined;
|
|
476
476
|
}, {
|
|
477
|
-
subject: string;
|
|
478
477
|
provider: string;
|
|
478
|
+
subject: 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
|
-
tool: string;
|
|
490
|
-
session_id: string;
|
|
491
489
|
scopes: string[];
|
|
490
|
+
session_id: string;
|
|
491
|
+
tool: string;
|
|
492
|
+
termsAccepted: boolean;
|
|
492
493
|
agent_did: string;
|
|
493
494
|
project_id: string;
|
|
494
|
-
termsAccepted: boolean;
|
|
495
495
|
customFields?: Record<string, string | boolean> | undefined;
|
|
496
496
|
termsVersion?: string | undefined;
|
|
497
497
|
oauth_identity?: {
|
|
498
|
-
subject: string;
|
|
499
498
|
provider: string;
|
|
499
|
+
subject: string;
|
|
500
500
|
name?: string | undefined;
|
|
501
501
|
email?: string | undefined;
|
|
502
502
|
} | null | undefined;
|
|
503
503
|
user_did?: string | undefined;
|
|
504
504
|
}, {
|
|
505
|
-
tool: string;
|
|
506
|
-
session_id: string;
|
|
507
505
|
scopes: string[];
|
|
506
|
+
session_id: string;
|
|
507
|
+
tool: string;
|
|
508
|
+
termsAccepted: boolean;
|
|
508
509
|
agent_did: string;
|
|
509
510
|
project_id: string;
|
|
510
|
-
termsAccepted: boolean;
|
|
511
511
|
customFields?: Record<string, string | boolean> | undefined;
|
|
512
512
|
termsVersion?: string | undefined;
|
|
513
513
|
oauth_identity?: {
|
|
514
|
-
subject: string;
|
|
515
514
|
provider: string;
|
|
515
|
+
subject: 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
|
-
url?: string | undefined;
|
|
586
585
|
text?: string | undefined;
|
|
587
|
-
}, {
|
|
588
|
-
version?: string | undefined;
|
|
589
586
|
url?: string | undefined;
|
|
587
|
+
}, {
|
|
590
588
|
required?: boolean | undefined;
|
|
589
|
+
version?: string | undefined;
|
|
591
590
|
text?: string | undefined;
|
|
591
|
+
url?: 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
|
-
name: string;
|
|
613
612
|
required: boolean;
|
|
613
|
+
name: string;
|
|
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
|
-
name: string;
|
|
624
623
|
required: boolean;
|
|
624
|
+
name: string;
|
|
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
|
-
name: string;
|
|
635
634
|
required: boolean;
|
|
635
|
+
name: string;
|
|
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
|
-
name: string;
|
|
646
645
|
required: boolean;
|
|
646
|
+
name: string;
|
|
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
|
-
url?: string | undefined;
|
|
682
681
|
text?: string | undefined;
|
|
682
|
+
url?: string | undefined;
|
|
683
683
|
} | undefined;
|
|
684
684
|
customFields?: {
|
|
685
685
|
type: "text" | "textarea" | "checkbox" | "select";
|
|
686
|
-
name: string;
|
|
687
686
|
required: boolean;
|
|
687
|
+
name: string;
|
|
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
|
-
version?: string | undefined;
|
|
711
|
-
url?: string | undefined;
|
|
712
710
|
required?: boolean | undefined;
|
|
711
|
+
version?: string | undefined;
|
|
713
712
|
text?: string | undefined;
|
|
713
|
+
url?: string | undefined;
|
|
714
714
|
} | undefined;
|
|
715
715
|
customFields?: {
|
|
716
716
|
type: "text" | "textarea" | "checkbox" | "select";
|
|
717
|
-
name: string;
|
|
718
717
|
required: boolean;
|
|
718
|
+
name: string;
|
|
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
|
-
|
|
745
|
+
scopes: string[];
|
|
746
746
|
sessionId: string;
|
|
747
|
+
agentDid: string;
|
|
747
748
|
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
|
-
version?: string | undefined;
|
|
761
|
-
url?: string | undefined;
|
|
762
760
|
required?: boolean | undefined;
|
|
761
|
+
version?: string | undefined;
|
|
763
762
|
text?: string | undefined;
|
|
763
|
+
url?: string | undefined;
|
|
764
764
|
} | undefined;
|
|
765
765
|
customFields?: {
|
|
766
766
|
type: "text" | "textarea" | "checkbox" | "select";
|
|
767
|
-
name: string;
|
|
768
767
|
required: boolean;
|
|
768
|
+
name: string;
|
|
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
|
-
|
|
781
|
+
scopes: string[];
|
|
782
782
|
sessionId: string;
|
|
783
|
+
agentDid: string;
|
|
783
784
|
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
|
-
url?: string | undefined;
|
|
799
798
|
text?: string | undefined;
|
|
799
|
+
url?: string | undefined;
|
|
800
800
|
} | undefined;
|
|
801
801
|
customFields?: {
|
|
802
802
|
type: "text" | "textarea" | "checkbox" | "select";
|
|
803
|
-
name: string;
|
|
804
803
|
required: boolean;
|
|
804
|
+
name: string;
|
|
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
|
-
tool: string;
|
|
825
|
-
session_id: string;
|
|
826
824
|
scopes: string[];
|
|
825
|
+
session_id: string;
|
|
826
|
+
tool: string;
|
|
827
|
+
termsAccepted: boolean;
|
|
827
828
|
agent_did: string;
|
|
828
829
|
project_id: string;
|
|
829
|
-
termsAccepted: boolean;
|
|
830
830
|
customFields?: Record<string, string | boolean> | undefined;
|
|
831
831
|
termsVersion?: string | undefined;
|
|
832
832
|
oauth_identity?: {
|
|
833
|
-
subject: string;
|
|
834
833
|
provider: string;
|
|
834
|
+
subject: string;
|
|
835
835
|
name?: string | undefined;
|
|
836
836
|
email?: string | undefined;
|
|
837
837
|
} | null | undefined;
|
|
838
838
|
user_did?: string | undefined;
|
|
839
839
|
}, {
|
|
840
|
-
tool: string;
|
|
841
|
-
session_id: string;
|
|
842
840
|
scopes: string[];
|
|
841
|
+
session_id: string;
|
|
842
|
+
tool: string;
|
|
843
|
+
termsAccepted: boolean;
|
|
843
844
|
agent_did: string;
|
|
844
845
|
project_id: string;
|
|
845
|
-
termsAccepted: boolean;
|
|
846
846
|
customFields?: Record<string, string | boolean> | undefined;
|
|
847
847
|
termsVersion?: string | undefined;
|
|
848
848
|
oauth_identity?: {
|
|
849
|
-
subject: string;
|
|
850
849
|
provider: string;
|
|
850
|
+
subject: 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
|
-
version?: string | undefined;
|
|
890
|
-
url?: string | undefined;
|
|
891
889
|
required?: boolean | undefined;
|
|
890
|
+
version?: string | undefined;
|
|
892
891
|
text?: string | undefined;
|
|
892
|
+
url?: string | undefined;
|
|
893
893
|
} | undefined;
|
|
894
894
|
customFields?: {
|
|
895
895
|
type: "text" | "textarea" | "checkbox" | "select";
|
|
896
|
-
name: string;
|
|
897
896
|
required: boolean;
|
|
897
|
+
name: string;
|
|
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
|
-
url?: string | undefined;
|
|
923
922
|
text?: string | undefined;
|
|
923
|
+
url?: string | undefined;
|
|
924
924
|
} | undefined;
|
|
925
925
|
customFields?: {
|
|
926
926
|
type: "text" | "textarea" | "checkbox" | "select";
|
|
927
|
-
name: string;
|
|
928
927
|
required: boolean;
|
|
928
|
+
name: string;
|
|
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, 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';
|
|
8
|
+
export type { MCPIServerConfig, MergedMCPIServerConfig, GetServerConfigRequest, GetServerConfigResponse, GetMergedServerConfigResponse, UpdateServerConfigRequest, UpdateServerConfigResponse, ValidateServerConfigRequest, ValidateServerConfigResponse, } from './types.js';
|
|
9
|
+
export { identityConfigSchema, proofingConfigSchema, delegationConfigSchema, toolProtectionConfigSchema, mergedToolProtectionConfigSchema, auditConfigSchema, sessionConfigSchema, platformConfigSchema, cloudflarePlatformConfigSchema, nodePlatformConfigSchema, vercelPlatformConfigSchema, configMetadataSchema, mcpIServerConfigSchema, mergedMcpIServerConfigSchema, getServerConfigRequestSchema, getServerConfigResponseSchema, getMergedServerConfigResponseSchema, updateServerConfigRequestSchema, updateServerConfigResponseSchema, validateServerConfigRequestSchema, validateServerConfigResponseSchema, } from './schemas.js';
|
|
10
10
|
export { defaultConfig, getDefaultConfigForPlatform, mergeWithDefaults, } from './default-config.js';
|
|
@@ -7,13 +7,14 @@
|
|
|
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.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;
|
|
10
|
+
exports.mergeWithDefaults = exports.getDefaultConfigForPlatform = exports.defaultConfig = exports.validateServerConfigResponseSchema = exports.validateServerConfigRequestSchema = exports.updateServerConfigResponseSchema = exports.updateServerConfigRequestSchema = exports.getMergedServerConfigResponseSchema = exports.getServerConfigResponseSchema = exports.getServerConfigRequestSchema = exports.mergedMcpIServerConfigSchema = exports.mcpIServerConfigSchema = exports.configMetadataSchema = exports.vercelPlatformConfigSchema = exports.nodePlatformConfigSchema = exports.cloudflarePlatformConfigSchema = exports.platformConfigSchema = exports.sessionConfigSchema = exports.auditConfigSchema = exports.mergedToolProtectionConfigSchema = 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; } });
|
|
17
18
|
Object.defineProperty(exports, "auditConfigSchema", { enumerable: true, get: function () { return schemas_js_1.auditConfigSchema; } });
|
|
18
19
|
Object.defineProperty(exports, "sessionConfigSchema", { enumerable: true, get: function () { return schemas_js_1.sessionConfigSchema; } });
|
|
19
20
|
Object.defineProperty(exports, "platformConfigSchema", { enumerable: true, get: function () { return schemas_js_1.platformConfigSchema; } });
|
|
@@ -22,8 +23,10 @@ Object.defineProperty(exports, "nodePlatformConfigSchema", { enumerable: true, g
|
|
|
22
23
|
Object.defineProperty(exports, "vercelPlatformConfigSchema", { enumerable: true, get: function () { return schemas_js_1.vercelPlatformConfigSchema; } });
|
|
23
24
|
Object.defineProperty(exports, "configMetadataSchema", { enumerable: true, get: function () { return schemas_js_1.configMetadataSchema; } });
|
|
24
25
|
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; } });
|
|
25
27
|
Object.defineProperty(exports, "getServerConfigRequestSchema", { enumerable: true, get: function () { return schemas_js_1.getServerConfigRequestSchema; } });
|
|
26
28
|
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; } });
|
|
27
30
|
Object.defineProperty(exports, "updateServerConfigRequestSchema", { enumerable: true, get: function () { return schemas_js_1.updateServerConfigRequestSchema; } });
|
|
28
31
|
Object.defineProperty(exports, "updateServerConfigResponseSchema", { enumerable: true, get: function () { return schemas_js_1.updateServerConfigResponseSchema; } });
|
|
29
32
|
Object.defineProperty(exports, "validateServerConfigRequestSchema", { enumerable: true, get: function () { return schemas_js_1.validateServerConfigRequestSchema; } });
|