@kya-os/contracts 1.7.13 → 1.7.14

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.
@@ -16,9 +16,17 @@ import { z } from 'zod';
16
16
  * The VC output is always a DelegationCredential created on consent confirmation.
17
17
  */
18
18
  export type AuthorizationRequirement = {
19
+ /**
20
+ * @deprecated Use 'oauth2' instead. Will be removed in v2.0.0.
21
+ */
19
22
  type: 'oauth';
20
23
  provider: string;
21
24
  requiredScopes?: string[];
25
+ } | {
26
+ /** OAuth 2.0 provider authentication (canonical) */
27
+ type: 'oauth2';
28
+ provider: string;
29
+ requiredScopes?: string[];
22
30
  } | {
23
31
  type: 'password';
24
32
  provider: string;
@@ -48,7 +56,10 @@ export type AuthorizationRequirement = {
48
56
  };
49
57
  /** Canonical authorization type values for type safety */
50
58
  export declare const AUTHORIZATION_TYPES: {
59
+ /** @deprecated Use OAUTH2 instead. Will be removed in v2.0.0. */
51
60
  readonly OAUTH: "oauth";
61
+ /** OAuth 2.0 provider authentication (canonical) */
62
+ readonly OAUTH2: "oauth2";
52
63
  readonly PASSWORD: "password";
53
64
  readonly MDL: "mdl";
54
65
  readonly IDV: "idv";
@@ -199,6 +210,18 @@ export declare const AuthorizationRequirementSchema: z.ZodDiscriminatedUnion<"ty
199
210
  type: "oauth";
200
211
  provider: string;
201
212
  requiredScopes?: string[] | undefined;
213
+ }>, z.ZodObject<{
214
+ type: z.ZodLiteral<"oauth2">;
215
+ provider: z.ZodString;
216
+ requiredScopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
217
+ }, "strip", z.ZodTypeAny, {
218
+ type: "oauth2";
219
+ provider: string;
220
+ requiredScopes?: string[] | undefined;
221
+ }, {
222
+ type: "oauth2";
223
+ provider: string;
224
+ requiredScopes?: string[] | undefined;
202
225
  }>, z.ZodObject<{
203
226
  type: z.ZodLiteral<"password">;
204
227
  provider: z.ZodString;
@@ -280,6 +303,18 @@ export declare const ToolProtectionSchema: z.ZodObject<{
280
303
  type: "oauth";
281
304
  provider: string;
282
305
  requiredScopes?: string[] | undefined;
306
+ }>, z.ZodObject<{
307
+ type: z.ZodLiteral<"oauth2">;
308
+ provider: z.ZodString;
309
+ requiredScopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
310
+ }, "strip", z.ZodTypeAny, {
311
+ type: "oauth2";
312
+ provider: string;
313
+ requiredScopes?: string[] | undefined;
314
+ }, {
315
+ type: "oauth2";
316
+ provider: string;
317
+ requiredScopes?: string[] | undefined;
283
318
  }>, z.ZodObject<{
284
319
  type: z.ZodLiteral<"password">;
285
320
  provider: z.ZodString;
@@ -351,6 +386,10 @@ export declare const ToolProtectionSchema: z.ZodObject<{
351
386
  type: "oauth";
352
387
  provider: string;
353
388
  requiredScopes?: string[] | undefined;
389
+ } | {
390
+ type: "oauth2";
391
+ provider: string;
392
+ requiredScopes?: string[] | undefined;
354
393
  } | {
355
394
  type: "password";
356
395
  provider: string;
@@ -382,6 +421,10 @@ export declare const ToolProtectionSchema: z.ZodObject<{
382
421
  type: "oauth";
383
422
  provider: string;
384
423
  requiredScopes?: string[] | undefined;
424
+ } | {
425
+ type: "oauth2";
426
+ provider: string;
427
+ requiredScopes?: string[] | undefined;
385
428
  } | {
386
429
  type: "password";
387
430
  provider: string;
@@ -424,6 +467,18 @@ export declare const ToolProtectionMapSchema: z.ZodRecord<z.ZodString, z.ZodObje
424
467
  type: "oauth";
425
468
  provider: string;
426
469
  requiredScopes?: string[] | undefined;
470
+ }>, z.ZodObject<{
471
+ type: z.ZodLiteral<"oauth2">;
472
+ provider: z.ZodString;
473
+ requiredScopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
474
+ }, "strip", z.ZodTypeAny, {
475
+ type: "oauth2";
476
+ provider: string;
477
+ requiredScopes?: string[] | undefined;
478
+ }, {
479
+ type: "oauth2";
480
+ provider: string;
481
+ requiredScopes?: string[] | undefined;
427
482
  }>, z.ZodObject<{
428
483
  type: z.ZodLiteral<"password">;
429
484
  provider: z.ZodString;
@@ -495,6 +550,10 @@ export declare const ToolProtectionMapSchema: z.ZodRecord<z.ZodString, z.ZodObje
495
550
  type: "oauth";
496
551
  provider: string;
497
552
  requiredScopes?: string[] | undefined;
553
+ } | {
554
+ type: "oauth2";
555
+ provider: string;
556
+ requiredScopes?: string[] | undefined;
498
557
  } | {
499
558
  type: "password";
500
559
  provider: string;
@@ -526,6 +585,10 @@ export declare const ToolProtectionMapSchema: z.ZodRecord<z.ZodString, z.ZodObje
526
585
  type: "oauth";
527
586
  provider: string;
528
587
  requiredScopes?: string[] | undefined;
588
+ } | {
589
+ type: "oauth2";
590
+ provider: string;
591
+ requiredScopes?: string[] | undefined;
529
592
  } | {
530
593
  type: "password";
531
594
  provider: string;
@@ -569,6 +632,18 @@ export declare const ToolProtectionResponseSchema: z.ZodObject<{
569
632
  type: "oauth";
570
633
  provider: string;
571
634
  requiredScopes?: string[] | undefined;
635
+ }>, z.ZodObject<{
636
+ type: z.ZodLiteral<"oauth2">;
637
+ provider: z.ZodString;
638
+ requiredScopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
639
+ }, "strip", z.ZodTypeAny, {
640
+ type: "oauth2";
641
+ provider: string;
642
+ requiredScopes?: string[] | undefined;
643
+ }, {
644
+ type: "oauth2";
645
+ provider: string;
646
+ requiredScopes?: string[] | undefined;
572
647
  }>, z.ZodObject<{
573
648
  type: z.ZodLiteral<"password">;
574
649
  provider: z.ZodString;
@@ -640,6 +715,10 @@ export declare const ToolProtectionResponseSchema: z.ZodObject<{
640
715
  type: "oauth";
641
716
  provider: string;
642
717
  requiredScopes?: string[] | undefined;
718
+ } | {
719
+ type: "oauth2";
720
+ provider: string;
721
+ requiredScopes?: string[] | undefined;
643
722
  } | {
644
723
  type: "password";
645
724
  provider: string;
@@ -671,6 +750,10 @@ export declare const ToolProtectionResponseSchema: z.ZodObject<{
671
750
  type: "oauth";
672
751
  provider: string;
673
752
  requiredScopes?: string[] | undefined;
753
+ } | {
754
+ type: "oauth2";
755
+ provider: string;
756
+ requiredScopes?: string[] | undefined;
674
757
  } | {
675
758
  type: "password";
676
759
  provider: string;
@@ -702,12 +785,12 @@ export declare const ToolProtectionResponseSchema: z.ZodObject<{
702
785
  source: z.ZodOptional<z.ZodString>;
703
786
  }, "strip", z.ZodTypeAny, {
704
787
  version?: string | undefined;
705
- source?: string | undefined;
706
788
  lastUpdated?: string | undefined;
789
+ source?: string | undefined;
707
790
  }, {
708
791
  version?: string | undefined;
709
- source?: string | undefined;
710
792
  lastUpdated?: string | undefined;
793
+ source?: string | undefined;
711
794
  }>>;
712
795
  }, "strip", z.ZodTypeAny, {
713
796
  toolProtections: Record<string, {
@@ -717,6 +800,10 @@ export declare const ToolProtectionResponseSchema: z.ZodObject<{
717
800
  type: "oauth";
718
801
  provider: string;
719
802
  requiredScopes?: string[] | undefined;
803
+ } | {
804
+ type: "oauth2";
805
+ provider: string;
806
+ requiredScopes?: string[] | undefined;
720
807
  } | {
721
808
  type: "password";
722
809
  provider: string;
@@ -744,8 +831,8 @@ export declare const ToolProtectionResponseSchema: z.ZodObject<{
744
831
  }>;
745
832
  metadata?: {
746
833
  version?: string | undefined;
747
- source?: string | undefined;
748
834
  lastUpdated?: string | undefined;
835
+ source?: string | undefined;
749
836
  } | undefined;
750
837
  }, {
751
838
  toolProtections: Record<string, {
@@ -755,6 +842,10 @@ export declare const ToolProtectionResponseSchema: z.ZodObject<{
755
842
  type: "oauth";
756
843
  provider: string;
757
844
  requiredScopes?: string[] | undefined;
845
+ } | {
846
+ type: "oauth2";
847
+ provider: string;
848
+ requiredScopes?: string[] | undefined;
758
849
  } | {
759
850
  type: "password";
760
851
  provider: string;
@@ -782,8 +873,8 @@ export declare const ToolProtectionResponseSchema: z.ZodObject<{
782
873
  }>;
783
874
  metadata?: {
784
875
  version?: string | undefined;
785
- source?: string | undefined;
786
876
  lastUpdated?: string | undefined;
877
+ source?: string | undefined;
787
878
  } | undefined;
788
879
  }>;
789
880
  export declare const DelegationRequiredErrorDataSchema: z.ZodObject<{
@@ -818,10 +909,11 @@ export declare function isDelegationRequiredErrorData(obj: any): obj is Delegati
818
909
  export declare function isAuthorizationRequirement(obj: unknown): obj is AuthorizationRequirement;
819
910
  /**
820
911
  * Type guard to check if a ToolProtection has OAuth authorization
912
+ * Checks for both 'oauth' (deprecated) and 'oauth2' (canonical)
821
913
  */
822
914
  export declare function hasOAuthAuthorization(protection: ToolProtection): protection is ToolProtection & {
823
915
  authorization: {
824
- type: 'oauth';
916
+ type: 'oauth' | 'oauth2';
825
917
  };
826
918
  };
827
919
  /**
@@ -921,21 +1013,24 @@ export declare function getAuthorizationTypeKey(auth: AuthorizationRequirement):
921
1013
  /**
922
1014
  * Normalize authorization requirement type
923
1015
  *
924
- * Normalizes deprecated 'credential' type to 'verifiable_credential' and emits
925
- * deprecation warnings. This function should be called at runtime boundaries
926
- * when processing authorization requirements.
1016
+ * Normalizes deprecated types to their canonical equivalents:
1017
+ * - 'oauth' 'oauth2'
1018
+ * - 'credential' 'verifiable_credential'
1019
+ *
1020
+ * This function should be called at runtime boundaries when processing
1021
+ * authorization requirements.
927
1022
  *
928
- * @param auth - Authorization requirement (may contain deprecated 'credential' type)
1023
+ * @param auth - Authorization requirement (may contain deprecated types)
929
1024
  * @param options - Normalization options
930
1025
  * @returns Normalized authorization requirement
931
1026
  *
932
1027
  * @example
933
1028
  * ```typescript
934
1029
  * const normalized = normalizeAuthorizationType(
935
- * { type: 'credential', credentialType: 'delegation' },
1030
+ * { type: 'oauth', provider: 'github' },
936
1031
  * { warn: true }
937
1032
  * );
938
- * // Returns: { type: 'verifiable_credential', credentialType: 'delegation' }
1033
+ * // Returns: { type: 'oauth2', provider: 'github' }
939
1034
  * // Logs: DEPRECATION warning
940
1035
  * ```
941
1036
  */
@@ -35,7 +35,10 @@ exports.normalizeAuthorizationType = normalizeAuthorizationType;
35
35
  const zod_1 = require("zod");
36
36
  /** Canonical authorization type values for type safety */
37
37
  exports.AUTHORIZATION_TYPES = {
38
+ /** @deprecated Use OAUTH2 instead. Will be removed in v2.0.0. */
38
39
  OAUTH: 'oauth',
40
+ /** OAuth 2.0 provider authentication (canonical) */
41
+ OAUTH2: 'oauth2',
39
42
  PASSWORD: 'password',
40
43
  MDL: 'mdl',
41
44
  IDV: 'idv',
@@ -46,11 +49,19 @@ exports.AUTHORIZATION_TYPES = {
46
49
  * Zod Schemas for Validation
47
50
  */
48
51
  exports.AuthorizationRequirementSchema = zod_1.z.discriminatedUnion('type', [
52
+ // Deprecated: 'oauth' is an alias for 'oauth2'
53
+ // Will be removed in v2.0.0. Use 'oauth2' instead.
49
54
  zod_1.z.object({
50
55
  type: zod_1.z.literal('oauth'),
51
56
  provider: zod_1.z.string(),
52
57
  requiredScopes: zod_1.z.array(zod_1.z.string()).optional(),
53
58
  }),
59
+ // OAuth 2.0 provider authentication (canonical)
60
+ zod_1.z.object({
61
+ type: zod_1.z.literal('oauth2'),
62
+ provider: zod_1.z.string(),
63
+ requiredScopes: zod_1.z.array(zod_1.z.string()).optional(),
64
+ }),
54
65
  zod_1.z.object({
55
66
  type: zod_1.z.literal('password'),
56
67
  provider: zod_1.z.string(),
@@ -127,9 +138,10 @@ function isAuthorizationRequirement(obj) {
127
138
  }
128
139
  /**
129
140
  * Type guard to check if a ToolProtection has OAuth authorization
141
+ * Checks for both 'oauth' (deprecated) and 'oauth2' (canonical)
130
142
  */
131
143
  function hasOAuthAuthorization(protection) {
132
- return protection.authorization?.type === 'oauth';
144
+ return protection.authorization?.type === 'oauth' || protection.authorization?.type === 'oauth2';
133
145
  }
134
146
  /**
135
147
  * Type guard to check if a ToolProtection has password authorization
@@ -290,6 +302,7 @@ function determineConsentProviderType(hasOAuthIdentity, isPasswordFlow = false,
290
302
  function getAuthorizationTypeLabel(auth) {
291
303
  switch (auth.type) {
292
304
  case 'oauth':
305
+ case 'oauth2':
293
306
  return auth.provider
294
307
  ? auth.provider.charAt(0).toUpperCase() + auth.provider.slice(1)
295
308
  : 'OAuth Provider';
@@ -318,7 +331,8 @@ function getAuthorizationTypeLabel(auth) {
318
331
  function getAuthorizationTypeKey(auth) {
319
332
  switch (auth.type) {
320
333
  case 'oauth':
321
- return `oauth:${auth.provider}`;
334
+ case 'oauth2':
335
+ return `oauth2:${auth.provider}`;
322
336
  case 'password':
323
337
  return `password:${auth.provider}`;
324
338
  case 'mdl':
@@ -341,26 +355,45 @@ function getAuthorizationTypeKey(auth) {
341
355
  /**
342
356
  * Normalize authorization requirement type
343
357
  *
344
- * Normalizes deprecated 'credential' type to 'verifiable_credential' and emits
345
- * deprecation warnings. This function should be called at runtime boundaries
346
- * when processing authorization requirements.
358
+ * Normalizes deprecated types to their canonical equivalents:
359
+ * - 'oauth' 'oauth2'
360
+ * - 'credential' 'verifiable_credential'
361
+ *
362
+ * This function should be called at runtime boundaries when processing
363
+ * authorization requirements.
347
364
  *
348
- * @param auth - Authorization requirement (may contain deprecated 'credential' type)
365
+ * @param auth - Authorization requirement (may contain deprecated types)
349
366
  * @param options - Normalization options
350
367
  * @returns Normalized authorization requirement
351
368
  *
352
369
  * @example
353
370
  * ```typescript
354
371
  * const normalized = normalizeAuthorizationType(
355
- * { type: 'credential', credentialType: 'delegation' },
372
+ * { type: 'oauth', provider: 'github' },
356
373
  * { warn: true }
357
374
  * );
358
- * // Returns: { type: 'verifiable_credential', credentialType: 'delegation' }
375
+ * // Returns: { type: 'oauth2', provider: 'github' }
359
376
  * // Logs: DEPRECATION warning
360
377
  * ```
361
378
  */
362
379
  function normalizeAuthorizationType(auth, options = {}) {
363
380
  const { warn = true, logger = console.warn } = options;
381
+ // Normalize 'oauth' to 'oauth2'
382
+ if (auth.type === 'oauth') {
383
+ if (warn) {
384
+ logger(`DEPRECATION: Authorization type 'oauth' is deprecated and will be removed in v2.0.0. ` +
385
+ `Please update to 'oauth2'. ` +
386
+ `See https://github.com/modelcontextprotocol-identity/xmcp-i/blob/main/docs/migrations/oauth-to-oauth2.md`);
387
+ }
388
+ // Normalize to oauth2
389
+ const normalized = {
390
+ type: 'oauth2',
391
+ provider: auth.provider,
392
+ ...(auth.requiredScopes !== undefined && { requiredScopes: auth.requiredScopes }),
393
+ };
394
+ return normalized;
395
+ }
396
+ // Normalize 'credential' to 'verifiable_credential'
364
397
  if (auth.type === 'credential') {
365
398
  if (warn) {
366
399
  logger(`DEPRECATION: Authorization type 'credential' is deprecated and will be removed in v2.0.0. ` +
@@ -20,8 +20,8 @@ export declare const AgentContextSchema: z.ZodObject<{
20
20
  confidence: "verified";
21
21
  registry: string;
22
22
  verifiedAt: number;
23
- subject?: string | undefined;
24
23
  delegationRef?: string | undefined;
24
+ subject?: string | undefined;
25
25
  }, {
26
26
  did: string;
27
27
  kid: string;
@@ -30,8 +30,8 @@ export declare const AgentContextSchema: z.ZodObject<{
30
30
  registry: string;
31
31
  verifiedAt: number;
32
32
  scopes?: string[] | undefined;
33
- subject?: string | undefined;
34
33
  delegationRef?: string | undefined;
34
+ subject?: string | undefined;
35
35
  }>;
36
36
  export declare const VerifierResultSchema: z.ZodObject<{
37
37
  success: z.ZodBoolean;
@@ -54,8 +54,8 @@ export declare const VerifierResultSchema: z.ZodObject<{
54
54
  confidence: "verified";
55
55
  registry: string;
56
56
  verifiedAt: number;
57
- subject?: string | undefined;
58
57
  delegationRef?: string | undefined;
58
+ subject?: string | undefined;
59
59
  }, {
60
60
  did: string;
61
61
  kid: string;
@@ -64,8 +64,8 @@ export declare const VerifierResultSchema: z.ZodObject<{
64
64
  registry: string;
65
65
  verifiedAt: number;
66
66
  scopes?: string[] | undefined;
67
- subject?: string | undefined;
68
67
  delegationRef?: string | undefined;
68
+ subject?: string | undefined;
69
69
  }>>;
70
70
  error: z.ZodOptional<z.ZodObject<{
71
71
  code: z.ZodString;
@@ -100,8 +100,8 @@ export declare const VerifierResultSchema: z.ZodObject<{
100
100
  confidence: "verified";
101
101
  registry: string;
102
102
  verifiedAt: number;
103
- subject?: string | undefined;
104
103
  delegationRef?: string | undefined;
104
+ subject?: string | undefined;
105
105
  } | undefined;
106
106
  }, {
107
107
  success: boolean;
@@ -120,8 +120,8 @@ export declare const VerifierResultSchema: z.ZodObject<{
120
120
  registry: string;
121
121
  verifiedAt: number;
122
122
  scopes?: string[] | undefined;
123
- subject?: string | undefined;
124
123
  delegationRef?: string | undefined;
124
+ subject?: string | undefined;
125
125
  } | undefined;
126
126
  }>;
127
127
  export declare const StructuredErrorSchema: z.ZodObject<{
@@ -300,14 +300,14 @@ export declare const DIDDocumentSchema: z.ZodObject<{
300
300
  type: string;
301
301
  id: string;
302
302
  controller: string;
303
- publicKeyBase64?: string | undefined;
304
303
  publicKeyMultibase?: string | undefined;
304
+ publicKeyBase64?: string | undefined;
305
305
  }, {
306
306
  type: string;
307
307
  id: string;
308
308
  controller: string;
309
- publicKeyBase64?: string | undefined;
310
309
  publicKeyMultibase?: string | undefined;
310
+ publicKeyBase64?: string | undefined;
311
311
  }>, "many">;
312
312
  authentication: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
313
313
  assertionMethod: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -329,19 +329,19 @@ export declare const DIDDocumentSchema: z.ZodObject<{
329
329
  }>, "many">>;
330
330
  }, "strip", z.ZodTypeAny, {
331
331
  id: string;
332
- '@context': string[];
333
332
  verificationMethod: {
334
333
  type: string;
335
334
  id: string;
336
335
  controller: string;
337
- publicKeyBase64?: string | undefined;
338
336
  publicKeyMultibase?: string | undefined;
337
+ publicKeyBase64?: string | undefined;
339
338
  }[];
339
+ '@context': string[];
340
340
  authentication?: string[] | undefined;
341
341
  assertionMethod?: string[] | undefined;
342
+ keyAgreement?: string[] | undefined;
342
343
  capabilityInvocation?: string[] | undefined;
343
344
  capabilityDelegation?: string[] | undefined;
344
- keyAgreement?: string[] | undefined;
345
345
  service?: {
346
346
  type: string;
347
347
  id: string;
@@ -349,19 +349,19 @@ export declare const DIDDocumentSchema: z.ZodObject<{
349
349
  }[] | undefined;
350
350
  }, {
351
351
  id: string;
352
- '@context': string[];
353
352
  verificationMethod: {
354
353
  type: string;
355
354
  id: string;
356
355
  controller: string;
357
- publicKeyBase64?: string | undefined;
358
356
  publicKeyMultibase?: string | undefined;
357
+ publicKeyBase64?: string | undefined;
359
358
  }[];
359
+ '@context': string[];
360
360
  authentication?: string[] | undefined;
361
361
  assertionMethod?: string[] | undefined;
362
+ keyAgreement?: string[] | undefined;
362
363
  capabilityInvocation?: string[] | undefined;
363
364
  capabilityDelegation?: string[] | undefined;
364
- keyAgreement?: string[] | undefined;
365
365
  service?: {
366
366
  type: string;
367
367
  id: string;
@@ -395,7 +395,7 @@ export declare const AgentDocumentSchema: z.ZodObject<{
395
395
  }>>;
396
396
  }, "strip", z.ZodTypeAny, {
397
397
  capabilities: {
398
- 'mcp-i': ("delegation" | "handshake" | "signing" | "verification" | "proof-generation")[];
398
+ 'mcp-i': ("handshake" | "signing" | "verification" | "delegation" | "proof-generation")[];
399
399
  } & {
400
400
  [k: string]: string[];
401
401
  };
@@ -408,7 +408,7 @@ export declare const AgentDocumentSchema: z.ZodObject<{
408
408
  } | undefined;
409
409
  }, {
410
410
  capabilities: {
411
- 'mcp-i': ("delegation" | "handshake" | "signing" | "verification" | "proof-generation")[];
411
+ 'mcp-i': ("handshake" | "signing" | "verification" | "delegation" | "proof-generation")[];
412
412
  } & {
413
413
  [k: string]: string[];
414
414
  };
@@ -656,6 +656,7 @@ export declare const MCPServerCardSchema: z.ZodObject<{
656
656
  completions?: Record<string, unknown> | undefined;
657
657
  experimental?: Record<string, unknown> | undefined;
658
658
  } | undefined;
659
+ $schema?: string | undefined;
659
660
  tools?: "dynamic" | {
660
661
  name: string;
661
662
  title?: string | undefined;
@@ -667,7 +668,7 @@ export declare const MCPServerCardSchema: z.ZodObject<{
667
668
  required: boolean;
668
669
  schemes: string[];
669
670
  } | undefined;
670
- $schema?: string | undefined;
671
+ instructions?: string | undefined;
671
672
  iconUrl?: string | undefined;
672
673
  documentationUrl?: string | undefined;
673
674
  prompts?: "dynamic" | {
@@ -693,7 +694,6 @@ export declare const MCPServerCardSchema: z.ZodObject<{
693
694
  roots?: Record<string, unknown> | undefined;
694
695
  elicitation?: Record<string, unknown> | undefined;
695
696
  } | undefined;
696
- instructions?: string | undefined;
697
697
  _meta?: Record<string, unknown> | undefined;
698
698
  }, {
699
699
  version: string;
@@ -722,6 +722,7 @@ export declare const MCPServerCardSchema: z.ZodObject<{
722
722
  completions?: Record<string, unknown> | undefined;
723
723
  experimental?: Record<string, unknown> | undefined;
724
724
  } | undefined;
725
+ $schema?: string | undefined;
725
726
  tools?: "dynamic" | {
726
727
  name: string;
727
728
  title?: string | undefined;
@@ -733,7 +734,7 @@ export declare const MCPServerCardSchema: z.ZodObject<{
733
734
  required: boolean;
734
735
  schemes: string[];
735
736
  } | undefined;
736
- $schema?: string | undefined;
737
+ instructions?: string | undefined;
737
738
  iconUrl?: string | undefined;
738
739
  documentationUrl?: string | undefined;
739
740
  prompts?: "dynamic" | {
@@ -759,7 +760,6 @@ export declare const MCPServerCardSchema: z.ZodObject<{
759
760
  roots?: Record<string, unknown> | undefined;
760
761
  elicitation?: Record<string, unknown> | undefined;
761
762
  } | undefined;
762
- instructions?: string | undefined;
763
763
  _meta?: Record<string, unknown> | undefined;
764
764
  }>;
765
765
  /** Legacy MCP Server Config Schema */
@@ -780,8 +780,8 @@ export declare const MCPServerConfigSchema: z.ZodObject<{
780
780
  transport: "sse" | "stdio" | "http";
781
781
  metadata?: Record<string, unknown> | undefined;
782
782
  version?: string | undefined;
783
- agentDid?: string | undefined;
784
783
  capabilities?: string[] | undefined;
784
+ agentDid?: string | undefined;
785
785
  description?: string | undefined;
786
786
  requiresAuth?: boolean | undefined;
787
787
  authProvider?: string | undefined;
@@ -791,8 +791,8 @@ export declare const MCPServerConfigSchema: z.ZodObject<{
791
791
  transport: "sse" | "stdio" | "http";
792
792
  metadata?: Record<string, unknown> | undefined;
793
793
  version?: string | undefined;
794
- agentDid?: string | undefined;
795
794
  capabilities?: string[] | undefined;
795
+ agentDid?: string | undefined;
796
796
  description?: string | undefined;
797
797
  requiresAuth?: boolean | undefined;
798
798
  authProvider?: string | undefined;
@@ -929,10 +929,10 @@ export declare const WellKnownConfigSchema: z.ZodObject<{
929
929
  protocolVersion?: string | undefined;
930
930
  description?: string | undefined;
931
931
  serviceEndpoint?: string | undefined;
932
+ instructions?: string | undefined;
932
933
  serviceName?: string | undefined;
933
934
  iconUrl?: string | undefined;
934
935
  documentationUrl?: string | undefined;
935
- instructions?: string | undefined;
936
936
  requiresAuth?: boolean | undefined;
937
937
  serviceTitle?: string | undefined;
938
938
  serverVersion?: string | undefined;
@@ -942,10 +942,10 @@ export declare const WellKnownConfigSchema: z.ZodObject<{
942
942
  protocolVersion?: string | undefined;
943
943
  description?: string | undefined;
944
944
  serviceEndpoint?: string | undefined;
945
+ instructions?: string | undefined;
945
946
  serviceName?: string | undefined;
946
947
  iconUrl?: string | undefined;
947
948
  documentationUrl?: string | undefined;
948
- instructions?: string | undefined;
949
949
  requiresAuth?: boolean | undefined;
950
950
  serviceTitle?: string | undefined;
951
951
  serverVersion?: string | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kya-os/contracts",
3
- "version": "1.7.13",
3
+ "version": "1.7.14",
4
4
  "description": "Shared contracts, types, and schemas for MCP-I framework",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",