@kya-os/contracts 1.7.6 → 1.7.8

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/cli.d.ts CHANGED
@@ -37,11 +37,11 @@ export declare const CLIIdentityFileSchema: z.ZodEffects<z.ZodEffects<z.ZodObjec
37
37
  claimUrl: string | null;
38
38
  }>>;
39
39
  }, "strip", z.ZodTypeAny, {
40
- version: "1.0";
41
40
  did: string;
42
41
  publicKey: string;
43
42
  privateKey: string;
44
43
  createdAt: string;
44
+ version: "1.0";
45
45
  kta?: {
46
46
  registered: boolean;
47
47
  registeredAt: string;
@@ -51,11 +51,11 @@ export declare const CLIIdentityFileSchema: z.ZodEffects<z.ZodEffects<z.ZodObjec
51
51
  keyId?: string | undefined;
52
52
  lastRotated?: string | undefined;
53
53
  }, {
54
- version: "1.0";
55
54
  did: string;
56
55
  publicKey: string;
57
56
  privateKey: string;
58
57
  createdAt: string;
58
+ version: "1.0";
59
59
  kta?: {
60
60
  registered: boolean;
61
61
  registeredAt: string;
@@ -65,11 +65,11 @@ export declare const CLIIdentityFileSchema: z.ZodEffects<z.ZodEffects<z.ZodObjec
65
65
  keyId?: string | undefined;
66
66
  lastRotated?: string | undefined;
67
67
  }>, {
68
- version: "1.0";
69
68
  did: string;
70
69
  publicKey: string;
71
70
  privateKey: string;
72
71
  createdAt: string;
72
+ version: "1.0";
73
73
  kta?: {
74
74
  registered: boolean;
75
75
  registeredAt: string;
@@ -79,11 +79,11 @@ export declare const CLIIdentityFileSchema: z.ZodEffects<z.ZodEffects<z.ZodObjec
79
79
  keyId?: string | undefined;
80
80
  lastRotated?: string | undefined;
81
81
  }, {
82
- version: "1.0";
83
82
  did: string;
84
83
  publicKey: string;
85
84
  privateKey: string;
86
85
  createdAt: string;
86
+ version: "1.0";
87
87
  kta?: {
88
88
  registered: boolean;
89
89
  registeredAt: string;
@@ -102,11 +102,11 @@ export declare const CLIIdentityFileSchema: z.ZodEffects<z.ZodEffects<z.ZodObjec
102
102
  lastRotated?: string;
103
103
  kta?: z.infer<typeof KTARegistrationSchema>;
104
104
  }, {
105
- version: "1.0";
106
105
  did: string;
107
106
  publicKey: string;
108
107
  privateKey: string;
109
108
  createdAt: string;
109
+ version: "1.0";
110
110
  kta?: {
111
111
  registered: boolean;
112
112
  registeredAt: string;
@@ -298,6 +298,41 @@ export declare const CredentialProviderConfigSchema: z.ZodObject<{
298
298
  submitButtonText?: string | undefined;
299
299
  } | undefined;
300
300
  }>;
301
+ /**
302
+ * OAuth Provider Secret Metadata
303
+ *
304
+ * Metadata for runtime secret resolution from secure storage.
305
+ * Part of the MCP-I provider-registry model where agents resolve
306
+ * secrets by name from Cloudflare Worker env bindings.
307
+ */
308
+ export interface OAuthProviderSecretMetadata {
309
+ /**
310
+ * Secret name for client secret in secure storage
311
+ * Used by agents to resolve the actual secret value at runtime
312
+ * @example 'KYA_PROD_MYPROJ_GITHUB_CLIENT_SECRET'
313
+ */
314
+ clientSecretName?: string;
315
+ /**
316
+ * Secret name for client ID in secure storage (optional)
317
+ * @example 'KYA_PROD_MYPROJ_GITHUB_CLIENT_ID'
318
+ */
319
+ clientIdSecretName?: string;
320
+ /**
321
+ * Secret name for API key in secure storage (for non-OAuth providers)
322
+ * @example 'KYA_PROD_MYPROJ_CUSTOM_API_KEY'
323
+ */
324
+ apiKeySecretName?: string;
325
+ /**
326
+ * Version number of the client secret for rotation tracking
327
+ * Incremented on each rotation
328
+ */
329
+ clientSecretVersion?: number;
330
+ /**
331
+ * ISO 8601 timestamp of when the secret was last rotated
332
+ * @example '2025-12-01T00:00:00Z'
333
+ */
334
+ lastRotatedAt?: string;
335
+ }
301
336
  /**
302
337
  * OAuth Provider Configuration
303
338
  *
@@ -332,6 +367,17 @@ export interface OAuthProvider {
332
367
  responseType?: string;
333
368
  /** OAuth grant type (default: "authorization_code") */
334
369
  grantType?: string;
370
+ /**
371
+ * Whether provider has a client secret configured
372
+ * Boolean flag indicating secret availability without exposing the value
373
+ */
374
+ hasClientSecret?: boolean;
375
+ /**
376
+ * Secret resolution metadata for MCP-I provider-registry model
377
+ * Contains secret names (not values) for runtime resolution from secure storage
378
+ * Agents use these names to look up actual secrets from Cloudflare Worker env
379
+ */
380
+ metadata?: OAuthProviderSecretMetadata;
335
381
  }
336
382
  /**
337
383
  * OAuth Configuration
@@ -353,6 +399,28 @@ export interface OAuthConfig {
353
399
  */
354
400
  configuredProvider?: string | null;
355
401
  }
402
+ /**
403
+ * Zod schema for OAuthProviderSecretMetadata validation
404
+ */
405
+ export declare const OAuthProviderSecretMetadataSchema: z.ZodObject<{
406
+ clientSecretName: z.ZodOptional<z.ZodString>;
407
+ clientIdSecretName: z.ZodOptional<z.ZodString>;
408
+ apiKeySecretName: z.ZodOptional<z.ZodString>;
409
+ clientSecretVersion: z.ZodOptional<z.ZodNumber>;
410
+ lastRotatedAt: z.ZodOptional<z.ZodString>;
411
+ }, "strip", z.ZodTypeAny, {
412
+ clientSecretName?: string | undefined;
413
+ clientIdSecretName?: string | undefined;
414
+ apiKeySecretName?: string | undefined;
415
+ clientSecretVersion?: number | undefined;
416
+ lastRotatedAt?: string | undefined;
417
+ }, {
418
+ clientSecretName?: string | undefined;
419
+ clientIdSecretName?: string | undefined;
420
+ apiKeySecretName?: string | undefined;
421
+ clientSecretVersion?: number | undefined;
422
+ lastRotatedAt?: string | undefined;
423
+ }>;
356
424
  /**
357
425
  * Zod schema for OAuthProvider validation
358
426
  */
@@ -371,6 +439,26 @@ export declare const OAuthProviderSchema: z.ZodObject<{
371
439
  tokenEndpointAuthMethod: z.ZodOptional<z.ZodEnum<["client_secret_post", "client_secret_basic"]>>;
372
440
  responseType: z.ZodDefault<z.ZodOptional<z.ZodString>>;
373
441
  grantType: z.ZodDefault<z.ZodOptional<z.ZodString>>;
442
+ hasClientSecret: z.ZodOptional<z.ZodBoolean>;
443
+ metadata: z.ZodOptional<z.ZodObject<{
444
+ clientSecretName: z.ZodOptional<z.ZodString>;
445
+ clientIdSecretName: z.ZodOptional<z.ZodString>;
446
+ apiKeySecretName: z.ZodOptional<z.ZodString>;
447
+ clientSecretVersion: z.ZodOptional<z.ZodNumber>;
448
+ lastRotatedAt: z.ZodOptional<z.ZodString>;
449
+ }, "strip", z.ZodTypeAny, {
450
+ clientSecretName?: string | undefined;
451
+ clientIdSecretName?: string | undefined;
452
+ apiKeySecretName?: string | undefined;
453
+ clientSecretVersion?: number | undefined;
454
+ lastRotatedAt?: string | undefined;
455
+ }, {
456
+ clientSecretName?: string | undefined;
457
+ clientIdSecretName?: string | undefined;
458
+ apiKeySecretName?: string | undefined;
459
+ clientSecretVersion?: number | undefined;
460
+ lastRotatedAt?: string | undefined;
461
+ }>>;
374
462
  }, "strip", z.ZodTypeAny, {
375
463
  clientId: string;
376
464
  authorizationUrl: string;
@@ -386,6 +474,14 @@ export declare const OAuthProviderSchema: z.ZodObject<{
386
474
  proxyMode?: boolean | undefined;
387
475
  customParams?: Record<string, string> | undefined;
388
476
  tokenEndpointAuthMethod?: "client_secret_post" | "client_secret_basic" | undefined;
477
+ hasClientSecret?: boolean | undefined;
478
+ metadata?: {
479
+ clientSecretName?: string | undefined;
480
+ clientIdSecretName?: string | undefined;
481
+ apiKeySecretName?: string | undefined;
482
+ clientSecretVersion?: number | undefined;
483
+ lastRotatedAt?: string | undefined;
484
+ } | undefined;
389
485
  }, {
390
486
  clientId: string;
391
487
  authorizationUrl: string;
@@ -401,6 +497,14 @@ export declare const OAuthProviderSchema: z.ZodObject<{
401
497
  tokenEndpointAuthMethod?: "client_secret_post" | "client_secret_basic" | undefined;
402
498
  responseType?: string | undefined;
403
499
  grantType?: string | undefined;
500
+ hasClientSecret?: boolean | undefined;
501
+ metadata?: {
502
+ clientSecretName?: string | undefined;
503
+ clientIdSecretName?: string | undefined;
504
+ apiKeySecretName?: string | undefined;
505
+ clientSecretVersion?: number | undefined;
506
+ lastRotatedAt?: string | undefined;
507
+ } | undefined;
404
508
  }>;
405
509
  /**
406
510
  * Zod schema for OAuthConfig validation
@@ -421,6 +525,26 @@ export declare const OAuthConfigSchema: z.ZodObject<{
421
525
  tokenEndpointAuthMethod: z.ZodOptional<z.ZodEnum<["client_secret_post", "client_secret_basic"]>>;
422
526
  responseType: z.ZodDefault<z.ZodOptional<z.ZodString>>;
423
527
  grantType: z.ZodDefault<z.ZodOptional<z.ZodString>>;
528
+ hasClientSecret: z.ZodOptional<z.ZodBoolean>;
529
+ metadata: z.ZodOptional<z.ZodObject<{
530
+ clientSecretName: z.ZodOptional<z.ZodString>;
531
+ clientIdSecretName: z.ZodOptional<z.ZodString>;
532
+ apiKeySecretName: z.ZodOptional<z.ZodString>;
533
+ clientSecretVersion: z.ZodOptional<z.ZodNumber>;
534
+ lastRotatedAt: z.ZodOptional<z.ZodString>;
535
+ }, "strip", z.ZodTypeAny, {
536
+ clientSecretName?: string | undefined;
537
+ clientIdSecretName?: string | undefined;
538
+ apiKeySecretName?: string | undefined;
539
+ clientSecretVersion?: number | undefined;
540
+ lastRotatedAt?: string | undefined;
541
+ }, {
542
+ clientSecretName?: string | undefined;
543
+ clientIdSecretName?: string | undefined;
544
+ apiKeySecretName?: string | undefined;
545
+ clientSecretVersion?: number | undefined;
546
+ lastRotatedAt?: string | undefined;
547
+ }>>;
424
548
  }, "strip", z.ZodTypeAny, {
425
549
  clientId: string;
426
550
  authorizationUrl: string;
@@ -436,6 +560,14 @@ export declare const OAuthConfigSchema: z.ZodObject<{
436
560
  proxyMode?: boolean | undefined;
437
561
  customParams?: Record<string, string> | undefined;
438
562
  tokenEndpointAuthMethod?: "client_secret_post" | "client_secret_basic" | undefined;
563
+ hasClientSecret?: boolean | undefined;
564
+ metadata?: {
565
+ clientSecretName?: string | undefined;
566
+ clientIdSecretName?: string | undefined;
567
+ apiKeySecretName?: string | undefined;
568
+ clientSecretVersion?: number | undefined;
569
+ lastRotatedAt?: string | undefined;
570
+ } | undefined;
439
571
  }, {
440
572
  clientId: string;
441
573
  authorizationUrl: string;
@@ -451,6 +583,14 @@ export declare const OAuthConfigSchema: z.ZodObject<{
451
583
  tokenEndpointAuthMethod?: "client_secret_post" | "client_secret_basic" | undefined;
452
584
  responseType?: string | undefined;
453
585
  grantType?: string | undefined;
586
+ hasClientSecret?: boolean | undefined;
587
+ metadata?: {
588
+ clientSecretName?: string | undefined;
589
+ clientIdSecretName?: string | undefined;
590
+ apiKeySecretName?: string | undefined;
591
+ clientSecretVersion?: number | undefined;
592
+ lastRotatedAt?: string | undefined;
593
+ } | undefined;
454
594
  }>>;
455
595
  configuredProvider: z.ZodOptional<z.ZodNullable<z.ZodString>>;
456
596
  }, "strip", z.ZodTypeAny, {
@@ -469,6 +609,14 @@ export declare const OAuthConfigSchema: z.ZodObject<{
469
609
  proxyMode?: boolean | undefined;
470
610
  customParams?: Record<string, string> | undefined;
471
611
  tokenEndpointAuthMethod?: "client_secret_post" | "client_secret_basic" | undefined;
612
+ hasClientSecret?: boolean | undefined;
613
+ metadata?: {
614
+ clientSecretName?: string | undefined;
615
+ clientIdSecretName?: string | undefined;
616
+ apiKeySecretName?: string | undefined;
617
+ clientSecretVersion?: number | undefined;
618
+ lastRotatedAt?: string | undefined;
619
+ } | undefined;
472
620
  }>;
473
621
  configuredProvider?: string | null | undefined;
474
622
  }, {
@@ -487,6 +635,14 @@ export declare const OAuthConfigSchema: z.ZodObject<{
487
635
  tokenEndpointAuthMethod?: "client_secret_post" | "client_secret_basic" | undefined;
488
636
  responseType?: string | undefined;
489
637
  grantType?: string | undefined;
638
+ hasClientSecret?: boolean | undefined;
639
+ metadata?: {
640
+ clientSecretName?: string | undefined;
641
+ clientIdSecretName?: string | undefined;
642
+ apiKeySecretName?: string | undefined;
643
+ clientSecretVersion?: number | undefined;
644
+ lastRotatedAt?: string | undefined;
645
+ } | undefined;
490
646
  }>;
491
647
  configuredProvider?: string | null | undefined;
492
648
  }>;
@@ -511,6 +667,10 @@ export interface OAuth2ProviderConfig extends BaseProviderConfig {
511
667
  tokenEndpointAuthMethod?: "client_secret_post" | "client_secret_basic";
512
668
  responseType?: string;
513
669
  grantType?: string;
670
+ /** Whether provider has a client secret configured */
671
+ hasClientSecret?: boolean;
672
+ /** Secret resolution metadata for MCP-I provider-registry model */
673
+ metadata?: OAuthProviderSecretMetadata;
514
674
  }
515
675
  /**
516
676
  * Zod schema for OAuth2ProviderConfig validation
@@ -532,6 +692,26 @@ export declare const OAuth2ProviderConfigSchema: z.ZodObject<{
532
692
  tokenEndpointAuthMethod: z.ZodOptional<z.ZodEnum<["client_secret_post", "client_secret_basic"]>>;
533
693
  responseType: z.ZodDefault<z.ZodOptional<z.ZodString>>;
534
694
  grantType: z.ZodDefault<z.ZodOptional<z.ZodString>>;
695
+ hasClientSecret: z.ZodOptional<z.ZodBoolean>;
696
+ metadata: z.ZodOptional<z.ZodObject<{
697
+ clientSecretName: z.ZodOptional<z.ZodString>;
698
+ clientIdSecretName: z.ZodOptional<z.ZodString>;
699
+ apiKeySecretName: z.ZodOptional<z.ZodString>;
700
+ clientSecretVersion: z.ZodOptional<z.ZodNumber>;
701
+ lastRotatedAt: z.ZodOptional<z.ZodString>;
702
+ }, "strip", z.ZodTypeAny, {
703
+ clientSecretName?: string | undefined;
704
+ clientIdSecretName?: string | undefined;
705
+ apiKeySecretName?: string | undefined;
706
+ clientSecretVersion?: number | undefined;
707
+ lastRotatedAt?: string | undefined;
708
+ }, {
709
+ clientSecretName?: string | undefined;
710
+ clientIdSecretName?: string | undefined;
711
+ apiKeySecretName?: string | undefined;
712
+ clientSecretVersion?: number | undefined;
713
+ lastRotatedAt?: string | undefined;
714
+ }>>;
535
715
  }, "strip", z.ZodTypeAny, {
536
716
  type: "oauth2";
537
717
  clientId: string;
@@ -549,6 +729,14 @@ export declare const OAuth2ProviderConfigSchema: z.ZodObject<{
549
729
  proxyMode?: boolean | undefined;
550
730
  customParams?: Record<string, string> | undefined;
551
731
  tokenEndpointAuthMethod?: "client_secret_post" | "client_secret_basic" | undefined;
732
+ hasClientSecret?: boolean | undefined;
733
+ metadata?: {
734
+ clientSecretName?: string | undefined;
735
+ clientIdSecretName?: string | undefined;
736
+ apiKeySecretName?: string | undefined;
737
+ clientSecretVersion?: number | undefined;
738
+ lastRotatedAt?: string | undefined;
739
+ } | undefined;
552
740
  }, {
553
741
  type: "oauth2";
554
742
  clientId: string;
@@ -566,6 +754,14 @@ export declare const OAuth2ProviderConfigSchema: z.ZodObject<{
566
754
  tokenEndpointAuthMethod?: "client_secret_post" | "client_secret_basic" | undefined;
567
755
  responseType?: string | undefined;
568
756
  grantType?: string | undefined;
757
+ hasClientSecret?: boolean | undefined;
758
+ metadata?: {
759
+ clientSecretName?: string | undefined;
760
+ clientIdSecretName?: string | undefined;
761
+ apiKeySecretName?: string | undefined;
762
+ clientSecretVersion?: number | undefined;
763
+ lastRotatedAt?: string | undefined;
764
+ } | undefined;
569
765
  }>;
570
766
  /**
571
767
  * Unified Auth Provider Type
@@ -594,6 +790,26 @@ export declare const AuthProviderSchema: z.ZodDiscriminatedUnion<"type", [z.ZodO
594
790
  tokenEndpointAuthMethod: z.ZodOptional<z.ZodEnum<["client_secret_post", "client_secret_basic"]>>;
595
791
  responseType: z.ZodDefault<z.ZodOptional<z.ZodString>>;
596
792
  grantType: z.ZodDefault<z.ZodOptional<z.ZodString>>;
793
+ hasClientSecret: z.ZodOptional<z.ZodBoolean>;
794
+ metadata: z.ZodOptional<z.ZodObject<{
795
+ clientSecretName: z.ZodOptional<z.ZodString>;
796
+ clientIdSecretName: z.ZodOptional<z.ZodString>;
797
+ apiKeySecretName: z.ZodOptional<z.ZodString>;
798
+ clientSecretVersion: z.ZodOptional<z.ZodNumber>;
799
+ lastRotatedAt: z.ZodOptional<z.ZodString>;
800
+ }, "strip", z.ZodTypeAny, {
801
+ clientSecretName?: string | undefined;
802
+ clientIdSecretName?: string | undefined;
803
+ apiKeySecretName?: string | undefined;
804
+ clientSecretVersion?: number | undefined;
805
+ lastRotatedAt?: string | undefined;
806
+ }, {
807
+ clientSecretName?: string | undefined;
808
+ clientIdSecretName?: string | undefined;
809
+ apiKeySecretName?: string | undefined;
810
+ clientSecretVersion?: number | undefined;
811
+ lastRotatedAt?: string | undefined;
812
+ }>>;
597
813
  }, "strip", z.ZodTypeAny, {
598
814
  type: "oauth2";
599
815
  clientId: string;
@@ -611,6 +827,14 @@ export declare const AuthProviderSchema: z.ZodDiscriminatedUnion<"type", [z.ZodO
611
827
  proxyMode?: boolean | undefined;
612
828
  customParams?: Record<string, string> | undefined;
613
829
  tokenEndpointAuthMethod?: "client_secret_post" | "client_secret_basic" | undefined;
830
+ hasClientSecret?: boolean | undefined;
831
+ metadata?: {
832
+ clientSecretName?: string | undefined;
833
+ clientIdSecretName?: string | undefined;
834
+ apiKeySecretName?: string | undefined;
835
+ clientSecretVersion?: number | undefined;
836
+ lastRotatedAt?: string | undefined;
837
+ } | undefined;
614
838
  }, {
615
839
  type: "oauth2";
616
840
  clientId: string;
@@ -628,6 +852,14 @@ export declare const AuthProviderSchema: z.ZodDiscriminatedUnion<"type", [z.ZodO
628
852
  tokenEndpointAuthMethod?: "client_secret_post" | "client_secret_basic" | undefined;
629
853
  responseType?: string | undefined;
630
854
  grantType?: string | undefined;
855
+ hasClientSecret?: boolean | undefined;
856
+ metadata?: {
857
+ clientSecretName?: string | undefined;
858
+ clientIdSecretName?: string | undefined;
859
+ apiKeySecretName?: string | undefined;
860
+ clientSecretVersion?: number | undefined;
861
+ lastRotatedAt?: string | undefined;
862
+ } | undefined;
631
863
  }>, z.ZodObject<{
632
864
  type: z.ZodLiteral<"credential">;
633
865
  displayName: z.ZodOptional<z.ZodString>;
@@ -906,27 +1138,27 @@ export declare const AgentIdentitySchema: z.ZodObject<{
906
1138
  publicKey: string;
907
1139
  privateKey: string;
908
1140
  createdAt: string;
1141
+ metadata?: z.objectOutputType<{
1142
+ name: z.ZodOptional<z.ZodString>;
1143
+ version: z.ZodOptional<z.ZodString>;
1144
+ }, z.ZodTypeAny, "passthrough"> | undefined;
909
1145
  kta?: {
910
1146
  registered: boolean;
911
1147
  registeredAt: string;
912
1148
  claimUrl: string | null;
913
1149
  } | undefined;
914
- metadata?: z.objectOutputType<{
915
- name: z.ZodOptional<z.ZodString>;
916
- version: z.ZodOptional<z.ZodString>;
917
- }, z.ZodTypeAny, "passthrough"> | undefined;
918
1150
  }, {
919
1151
  did: string;
920
1152
  publicKey: string;
921
1153
  privateKey: string;
922
1154
  createdAt: string;
1155
+ metadata?: z.objectInputType<{
1156
+ name: z.ZodOptional<z.ZodString>;
1157
+ version: z.ZodOptional<z.ZodString>;
1158
+ }, z.ZodTypeAny, "passthrough"> | undefined;
923
1159
  kta?: {
924
1160
  registered: boolean;
925
1161
  registeredAt: string;
926
1162
  claimUrl: string | null;
927
1163
  } | undefined;
928
- metadata?: z.objectInputType<{
929
- name: z.ZodOptional<z.ZodString>;
930
- version: z.ZodOptional<z.ZodString>;
931
- }, z.ZodTypeAny, "passthrough"> | undefined;
932
1164
  }>;
@@ -8,7 +8,7 @@
8
8
  * @module @kya-os/contracts/config
9
9
  */
10
10
  Object.defineProperty(exports, "__esModule", { value: true });
11
- exports.AgentIdentitySchema = exports.KTARegistrationSchema = exports.AuthProviderSchema = exports.OAuth2ProviderConfigSchema = exports.OAuthConfigSchema = exports.OAuthProviderSchema = exports.CredentialProviderConfigSchema = void 0;
11
+ exports.AgentIdentitySchema = exports.KTARegistrationSchema = exports.AuthProviderSchema = exports.OAuth2ProviderConfigSchema = exports.OAuthConfigSchema = exports.OAuthProviderSchema = exports.OAuthProviderSecretMetadataSchema = exports.CredentialProviderConfigSchema = void 0;
12
12
  const zod_1 = require("zod");
13
13
  /**
14
14
  * Zod schema for CredentialProviderConfig validation
@@ -48,6 +48,16 @@ exports.CredentialProviderConfigSchema = zod_1.z.object({
48
48
  })
49
49
  .optional(),
50
50
  });
51
+ /**
52
+ * Zod schema for OAuthProviderSecretMetadata validation
53
+ */
54
+ exports.OAuthProviderSecretMetadataSchema = zod_1.z.object({
55
+ clientSecretName: zod_1.z.string().optional(),
56
+ clientIdSecretName: zod_1.z.string().optional(),
57
+ apiKeySecretName: zod_1.z.string().optional(),
58
+ clientSecretVersion: zod_1.z.number().optional(),
59
+ lastRotatedAt: zod_1.z.string().optional(),
60
+ });
51
61
  /**
52
62
  * Zod schema for OAuthProvider validation
53
63
  */
@@ -69,6 +79,9 @@ exports.OAuthProviderSchema = zod_1.z.object({
69
79
  .optional(),
70
80
  responseType: zod_1.z.string().optional().default("code"),
71
81
  grantType: zod_1.z.string().optional().default("authorization_code"),
82
+ // MCP-I Provider Registry
83
+ hasClientSecret: zod_1.z.boolean().optional(),
84
+ metadata: exports.OAuthProviderSecretMetadataSchema.optional(),
72
85
  });
73
86
  /**
74
87
  * Zod schema for OAuthConfig validation
@@ -99,6 +112,9 @@ exports.OAuth2ProviderConfigSchema = zod_1.z.object({
99
112
  .optional(),
100
113
  responseType: zod_1.z.string().optional().default("code"),
101
114
  grantType: zod_1.z.string().optional().default("authorization_code"),
115
+ // MCP-I Provider Registry
116
+ hasClientSecret: zod_1.z.boolean().optional(),
117
+ metadata: exports.OAuthProviderSecretMetadataSchema.optional(),
102
118
  });
103
119
  /**
104
120
  * Zod schema for AuthProvider validation (discriminated union)
@@ -13,7 +13,7 @@ import type { DelegationConfig } from "./delegation.js";
13
13
  import type { ToolProtectionSourceConfig } from "./tool-protection.js";
14
14
  import type { ClientMessagesConfig } from "./client-messages.js";
15
15
  export { MCPIBaseConfig } from "./base.js";
16
- export { RuntimeIdentityConfig, AgentIdentity, OAuthProvider, OAuthConfig, IdpTokens, AuthProviderType, BaseProviderConfig, CredentialProviderConfig, CredentialProviderConfigSchema, OAuth2ProviderConfig, OAuth2ProviderConfigSchema, AuthProvider, AuthProviderSchema, } from "./identity.js";
16
+ export { RuntimeIdentityConfig, AgentIdentity, OAuthProvider, OAuthConfig, IdpTokens, AuthProviderType, BaseProviderConfig, CredentialProviderConfig, CredentialProviderConfigSchema, OAuth2ProviderConfig, OAuth2ProviderConfigSchema, AuthProvider, AuthProviderSchema, OAuthProviderSecretMetadata, OAuthProviderSecretMetadataSchema, OAuthProviderSchema, OAuthConfigSchema, } from "./identity.js";
17
17
  export type { ToolExecutionContext } from "./tool-context.js";
18
18
  /**
19
19
  * @deprecated Use RuntimeIdentityConfig instead
@@ -8,12 +8,15 @@
8
8
  * @module @kya-os/contracts/config
9
9
  */
10
10
  Object.defineProperty(exports, "__esModule", { value: true });
11
- exports.validateClientMessagesConfig = exports.validateClientMessageTemplate = exports.isClientMessagesConfig = exports.isClientMessageTemplate = exports.ClientMessagesConfigSchema = exports.ClientMessageTemplateSchema = exports.buildBaseConfig = exports.AuthProviderSchema = exports.OAuth2ProviderConfigSchema = exports.CredentialProviderConfigSchema = void 0;
11
+ exports.validateClientMessagesConfig = exports.validateClientMessageTemplate = exports.isClientMessagesConfig = exports.isClientMessageTemplate = exports.ClientMessagesConfigSchema = exports.ClientMessageTemplateSchema = exports.buildBaseConfig = exports.OAuthConfigSchema = exports.OAuthProviderSchema = exports.OAuthProviderSecretMetadataSchema = exports.AuthProviderSchema = exports.OAuth2ProviderConfigSchema = exports.CredentialProviderConfigSchema = void 0;
12
12
  // Identity configuration
13
13
  var identity_js_1 = require("./identity.js");
14
14
  Object.defineProperty(exports, "CredentialProviderConfigSchema", { enumerable: true, get: function () { return identity_js_1.CredentialProviderConfigSchema; } });
15
15
  Object.defineProperty(exports, "OAuth2ProviderConfigSchema", { enumerable: true, get: function () { return identity_js_1.OAuth2ProviderConfigSchema; } });
16
16
  Object.defineProperty(exports, "AuthProviderSchema", { enumerable: true, get: function () { return identity_js_1.AuthProviderSchema; } });
17
+ Object.defineProperty(exports, "OAuthProviderSecretMetadataSchema", { enumerable: true, get: function () { return identity_js_1.OAuthProviderSecretMetadataSchema; } });
18
+ Object.defineProperty(exports, "OAuthProviderSchema", { enumerable: true, get: function () { return identity_js_1.OAuthProviderSchema; } });
19
+ Object.defineProperty(exports, "OAuthConfigSchema", { enumerable: true, get: function () { return identity_js_1.OAuthConfigSchema; } });
17
20
  // Configuration builder utilities
18
21
  var builder_js_1 = require("./builder.js");
19
22
  Object.defineProperty(exports, "buildBaseConfig", { enumerable: true, get: function () { return builder_js_1.buildBaseConfig; } });
@@ -31,13 +31,13 @@ export declare const gitHubInstallationSchema: z.ZodObject<{
31
31
  type: z.ZodEnum<["User", "Organization"]>;
32
32
  id: z.ZodNumber;
33
33
  }, "strip", z.ZodTypeAny, {
34
- type: "User" | "Organization";
35
34
  id: number;
35
+ type: "User" | "Organization";
36
36
  login: string;
37
37
  avatarUrl: string;
38
38
  }, {
39
- type: "User" | "Organization";
40
39
  id: number;
40
+ type: "User" | "Organization";
41
41
  login: string;
42
42
  avatarUrl: string;
43
43
  }>;
@@ -46,29 +46,29 @@ export declare const gitHubInstallationSchema: z.ZodObject<{
46
46
  createdAt: z.ZodString;
47
47
  updatedAt: z.ZodString;
48
48
  }, "strip", z.ZodTypeAny, {
49
- createdAt: string;
50
49
  id: string;
51
50
  installationId: number;
52
51
  account: {
53
- type: "User" | "Organization";
54
52
  id: number;
53
+ type: "User" | "Organization";
55
54
  login: string;
56
55
  avatarUrl: string;
57
56
  };
58
57
  permissions: string[];
58
+ createdAt: string;
59
59
  updatedAt: string;
60
60
  suspendedAt?: string | null | undefined;
61
61
  }, {
62
- createdAt: string;
63
62
  id: string;
64
63
  installationId: number;
65
64
  account: {
66
- type: "User" | "Organization";
67
65
  id: number;
66
+ type: "User" | "Organization";
68
67
  login: string;
69
68
  avatarUrl: string;
70
69
  };
71
70
  permissions: string[];
71
+ createdAt: string;
72
72
  updatedAt: string;
73
73
  suspendedAt?: string | null | undefined;
74
74
  }>;
@@ -83,15 +83,15 @@ export declare const gitHubRepositorySchema: z.ZodObject<{
83
83
  defaultBranch: z.ZodString;
84
84
  }, "strip", z.ZodTypeAny, {
85
85
  name: string;
86
- url: string;
87
86
  fullName: string;
88
87
  private: boolean;
88
+ url: string;
89
89
  defaultBranch: string;
90
90
  }, {
91
91
  name: string;
92
- url: string;
93
92
  fullName: string;
94
93
  private: boolean;
94
+ url: string;
95
95
  defaultBranch: string;
96
96
  }>;
97
97
  /**
@@ -137,13 +137,13 @@ export declare const gitHubCallbackResponseSchema: z.ZodObject<{
137
137
  type: z.ZodEnum<["User", "Organization"]>;
138
138
  id: z.ZodNumber;
139
139
  }, "strip", z.ZodTypeAny, {
140
- type: "User" | "Organization";
141
140
  id: number;
141
+ type: "User" | "Organization";
142
142
  login: string;
143
143
  avatarUrl: string;
144
144
  }, {
145
- type: "User" | "Organization";
146
145
  id: number;
146
+ type: "User" | "Organization";
147
147
  login: string;
148
148
  avatarUrl: string;
149
149
  }>;
@@ -152,61 +152,61 @@ export declare const gitHubCallbackResponseSchema: z.ZodObject<{
152
152
  createdAt: z.ZodString;
153
153
  updatedAt: z.ZodString;
154
154
  }, "strip", z.ZodTypeAny, {
155
- createdAt: string;
156
155
  id: string;
157
156
  installationId: number;
158
157
  account: {
159
- type: "User" | "Organization";
160
158
  id: number;
159
+ type: "User" | "Organization";
161
160
  login: string;
162
161
  avatarUrl: string;
163
162
  };
164
163
  permissions: string[];
164
+ createdAt: string;
165
165
  updatedAt: string;
166
166
  suspendedAt?: string | null | undefined;
167
167
  }, {
168
- createdAt: string;
169
168
  id: string;
170
169
  installationId: number;
171
170
  account: {
172
- type: "User" | "Organization";
173
171
  id: number;
172
+ type: "User" | "Organization";
174
173
  login: string;
175
174
  avatarUrl: string;
176
175
  };
177
176
  permissions: string[];
177
+ createdAt: string;
178
178
  updatedAt: string;
179
179
  suspendedAt?: string | null | undefined;
180
180
  }>;
181
181
  }, "strip", z.ZodTypeAny, {
182
182
  success: true;
183
183
  installation: {
184
- createdAt: string;
185
184
  id: string;
186
185
  installationId: number;
187
186
  account: {
188
- type: "User" | "Organization";
189
187
  id: number;
188
+ type: "User" | "Organization";
190
189
  login: string;
191
190
  avatarUrl: string;
192
191
  };
193
192
  permissions: string[];
193
+ createdAt: string;
194
194
  updatedAt: string;
195
195
  suspendedAt?: string | null | undefined;
196
196
  };
197
197
  }, {
198
198
  success: true;
199
199
  installation: {
200
- createdAt: string;
201
200
  id: string;
202
201
  installationId: number;
203
202
  account: {
204
- type: "User" | "Organization";
205
203
  id: number;
204
+ type: "User" | "Organization";
206
205
  login: string;
207
206
  avatarUrl: string;
208
207
  };
209
208
  permissions: string[];
209
+ createdAt: string;
210
210
  updatedAt: string;
211
211
  suspendedAt?: string | null | undefined;
212
212
  };
@@ -227,13 +227,13 @@ export declare const gitHubStatusResponseSchema: z.ZodObject<{
227
227
  type: z.ZodEnum<["User", "Organization"]>;
228
228
  id: z.ZodNumber;
229
229
  }, "strip", z.ZodTypeAny, {
230
- type: "User" | "Organization";
231
230
  id: number;
231
+ type: "User" | "Organization";
232
232
  login: string;
233
233
  avatarUrl: string;
234
234
  }, {
235
- type: "User" | "Organization";
236
235
  id: number;
236
+ type: "User" | "Organization";
237
237
  login: string;
238
238
  avatarUrl: string;
239
239
  }>;
@@ -242,29 +242,29 @@ export declare const gitHubStatusResponseSchema: z.ZodObject<{
242
242
  createdAt: z.ZodString;
243
243
  updatedAt: z.ZodString;
244
244
  }, "strip", z.ZodTypeAny, {
245
- createdAt: string;
246
245
  id: string;
247
246
  installationId: number;
248
247
  account: {
249
- type: "User" | "Organization";
250
248
  id: number;
249
+ type: "User" | "Organization";
251
250
  login: string;
252
251
  avatarUrl: string;
253
252
  };
254
253
  permissions: string[];
254
+ createdAt: string;
255
255
  updatedAt: string;
256
256
  suspendedAt?: string | null | undefined;
257
257
  }, {
258
- createdAt: string;
259
258
  id: string;
260
259
  installationId: number;
261
260
  account: {
262
- type: "User" | "Organization";
263
261
  id: number;
262
+ type: "User" | "Organization";
264
263
  login: string;
265
264
  avatarUrl: string;
266
265
  };
267
266
  permissions: string[];
267
+ createdAt: string;
268
268
  updatedAt: string;
269
269
  suspendedAt?: string | null | undefined;
270
270
  }>>;
@@ -276,116 +276,116 @@ export declare const gitHubStatusResponseSchema: z.ZodObject<{
276
276
  defaultBranch: z.ZodString;
277
277
  }, "strip", z.ZodTypeAny, {
278
278
  name: string;
279
- url: string;
280
279
  fullName: string;
281
280
  private: boolean;
281
+ url: string;
282
282
  defaultBranch: string;
283
283
  }, {
284
284
  name: string;
285
- url: string;
286
285
  fullName: string;
287
286
  private: boolean;
287
+ url: string;
288
288
  defaultBranch: string;
289
289
  }>, "many">>;
290
290
  }, "strip", z.ZodTypeAny, {
291
291
  connected: boolean;
292
292
  installation?: {
293
- createdAt: string;
294
293
  id: string;
295
294
  installationId: number;
296
295
  account: {
297
- type: "User" | "Organization";
298
296
  id: number;
297
+ type: "User" | "Organization";
299
298
  login: string;
300
299
  avatarUrl: string;
301
300
  };
302
301
  permissions: string[];
302
+ createdAt: string;
303
303
  updatedAt: string;
304
304
  suspendedAt?: string | null | undefined;
305
305
  } | undefined;
306
306
  repositories?: {
307
307
  name: string;
308
- url: string;
309
308
  fullName: string;
310
309
  private: boolean;
310
+ url: string;
311
311
  defaultBranch: string;
312
312
  }[] | undefined;
313
313
  }, {
314
314
  connected: boolean;
315
315
  installation?: {
316
- createdAt: string;
317
316
  id: string;
318
317
  installationId: number;
319
318
  account: {
320
- type: "User" | "Organization";
321
319
  id: number;
320
+ type: "User" | "Organization";
322
321
  login: string;
323
322
  avatarUrl: string;
324
323
  };
325
324
  permissions: string[];
325
+ createdAt: string;
326
326
  updatedAt: string;
327
327
  suspendedAt?: string | null | undefined;
328
328
  } | undefined;
329
329
  repositories?: {
330
330
  name: string;
331
- url: string;
332
331
  fullName: string;
333
332
  private: boolean;
333
+ url: string;
334
334
  defaultBranch: string;
335
335
  }[] | undefined;
336
336
  }>;
337
337
  }, "strip", z.ZodTypeAny, {
338
- success: true;
339
338
  data: {
340
339
  connected: boolean;
341
340
  installation?: {
342
- createdAt: string;
343
341
  id: string;
344
342
  installationId: number;
345
343
  account: {
346
- type: "User" | "Organization";
347
344
  id: number;
345
+ type: "User" | "Organization";
348
346
  login: string;
349
347
  avatarUrl: string;
350
348
  };
351
349
  permissions: string[];
350
+ createdAt: string;
352
351
  updatedAt: string;
353
352
  suspendedAt?: string | null | undefined;
354
353
  } | undefined;
355
354
  repositories?: {
356
355
  name: string;
357
- url: string;
358
356
  fullName: string;
359
357
  private: boolean;
358
+ url: string;
360
359
  defaultBranch: string;
361
360
  }[] | undefined;
362
361
  };
363
- }, {
364
362
  success: true;
363
+ }, {
365
364
  data: {
366
365
  connected: boolean;
367
366
  installation?: {
368
- createdAt: string;
369
367
  id: string;
370
368
  installationId: number;
371
369
  account: {
372
- type: "User" | "Organization";
373
370
  id: number;
371
+ type: "User" | "Organization";
374
372
  login: string;
375
373
  avatarUrl: string;
376
374
  };
377
375
  permissions: string[];
376
+ createdAt: string;
378
377
  updatedAt: string;
379
378
  suspendedAt?: string | null | undefined;
380
379
  } | undefined;
381
380
  repositories?: {
382
381
  name: string;
383
- url: string;
384
382
  fullName: string;
385
383
  private: boolean;
384
+ url: string;
386
385
  defaultBranch: string;
387
386
  }[] | undefined;
388
387
  };
388
+ success: true;
389
389
  }>;
390
390
  /**
391
391
  * GitHub disconnect response schema
@@ -421,15 +421,15 @@ export declare const deployToGitHubRequestSchema: z.ZodObject<{
421
421
  isPrivate: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
422
422
  description: z.ZodOptional<z.ZodString>;
423
423
  }, "strip", z.ZodTypeAny, {
424
- platform: "cloudflare" | "vercel";
425
424
  repoName: string;
426
425
  template: "blank" | "ecommerce" | "hardware-world";
426
+ platform: "cloudflare" | "vercel";
427
427
  isPrivate: boolean;
428
428
  description?: string | undefined;
429
429
  }, {
430
- platform: "cloudflare" | "vercel";
431
430
  repoName: string;
432
431
  template: "blank" | "ecommerce" | "hardware-world";
432
+ platform: "cloudflare" | "vercel";
433
433
  isPrivate?: boolean | undefined;
434
434
  description?: string | undefined;
435
435
  }>;
@@ -536,7 +536,6 @@ export declare const deployToGitHubResponseSchema: z.ZodObject<{
536
536
  nextSteps: string[];
537
537
  }>;
538
538
  }, "strip", z.ZodTypeAny, {
539
- success: true;
540
539
  data: {
541
540
  repoUrl: string;
542
541
  repoFullName: string;
@@ -548,8 +547,8 @@ export declare const deployToGitHubResponseSchema: z.ZodObject<{
548
547
  deployUrl: string;
549
548
  nextSteps: string[];
550
549
  };
551
- }, {
552
550
  success: true;
551
+ }, {
553
552
  data: {
554
553
  repoUrl: string;
555
554
  repoFullName: string;
@@ -561,6 +560,7 @@ export declare const deployToGitHubResponseSchema: z.ZodObject<{
561
560
  deployUrl: string;
562
561
  nextSteps: string[];
563
562
  };
563
+ success: true;
564
564
  }>;
565
565
  /**
566
566
  * Deploy error response schema
@@ -640,7 +640,6 @@ export declare const deployToGitHubResultSchema: z.ZodDiscriminatedUnion<"succes
640
640
  nextSteps: string[];
641
641
  }>;
642
642
  }, "strip", z.ZodTypeAny, {
643
- success: true;
644
643
  data: {
645
644
  repoUrl: string;
646
645
  repoFullName: string;
@@ -652,8 +651,8 @@ export declare const deployToGitHubResultSchema: z.ZodDiscriminatedUnion<"succes
652
651
  deployUrl: string;
653
652
  nextSteps: string[];
654
653
  };
655
- }, {
656
654
  success: true;
655
+ }, {
657
656
  data: {
658
657
  repoUrl: string;
659
658
  repoFullName: string;
@@ -665,6 +664,7 @@ export declare const deployToGitHubResultSchema: z.ZodDiscriminatedUnion<"succes
665
664
  deployUrl: string;
666
665
  nextSteps: string[];
667
666
  };
667
+ success: true;
668
668
  }>, z.ZodObject<{
669
669
  success: z.ZodLiteral<false>;
670
670
  error: z.ZodObject<{
@@ -712,29 +712,29 @@ export declare const deployedRepositorySchema: z.ZodObject<{
712
712
  createdAt: z.ZodString;
713
713
  updatedAt: z.ZodString;
714
714
  }, "strip", z.ZodTypeAny, {
715
- platform: "cloudflare" | "vercel";
716
- createdAt: string;
717
- projectId: string;
718
715
  id: string;
719
716
  installationId: string;
717
+ createdAt: string;
720
718
  updatedAt: string;
721
719
  template: "blank" | "ecommerce" | "hardware-world";
720
+ platform: "cloudflare" | "vercel";
722
721
  repoUrl: string;
723
722
  repoFullName: string;
724
723
  userId: string;
724
+ projectId: string;
725
725
  cloudflareDeployed: boolean;
726
726
  cloudflareUrl?: string | null | undefined;
727
727
  }, {
728
- platform: "cloudflare" | "vercel";
729
- createdAt: string;
730
- projectId: string;
731
728
  id: string;
732
729
  installationId: string;
730
+ createdAt: string;
733
731
  updatedAt: string;
734
732
  template: "blank" | "ecommerce" | "hardware-world";
733
+ platform: "cloudflare" | "vercel";
735
734
  repoUrl: string;
736
735
  repoFullName: string;
737
736
  userId: string;
737
+ projectId: string;
738
738
  cloudflareDeployed: boolean;
739
739
  cloudflareUrl?: string | null | undefined;
740
740
  }>;
@@ -757,64 +757,64 @@ export declare const listDeployedRepositoriesResponseSchema: z.ZodObject<{
757
757
  createdAt: z.ZodString;
758
758
  updatedAt: z.ZodString;
759
759
  }, "strip", z.ZodTypeAny, {
760
- platform: "cloudflare" | "vercel";
761
- createdAt: string;
762
- projectId: string;
763
760
  id: string;
764
761
  installationId: string;
762
+ createdAt: string;
765
763
  updatedAt: string;
766
764
  template: "blank" | "ecommerce" | "hardware-world";
765
+ platform: "cloudflare" | "vercel";
767
766
  repoUrl: string;
768
767
  repoFullName: string;
769
768
  userId: string;
769
+ projectId: string;
770
770
  cloudflareDeployed: boolean;
771
771
  cloudflareUrl?: string | null | undefined;
772
772
  }, {
773
- platform: "cloudflare" | "vercel";
774
- createdAt: string;
775
- projectId: string;
776
773
  id: string;
777
774
  installationId: string;
775
+ createdAt: string;
778
776
  updatedAt: string;
779
777
  template: "blank" | "ecommerce" | "hardware-world";
778
+ platform: "cloudflare" | "vercel";
780
779
  repoUrl: string;
781
780
  repoFullName: string;
782
781
  userId: string;
782
+ projectId: string;
783
783
  cloudflareDeployed: boolean;
784
784
  cloudflareUrl?: string | null | undefined;
785
785
  }>, "many">;
786
786
  }, "strip", z.ZodTypeAny, {
787
- success: true;
788
787
  data: {
789
- platform: "cloudflare" | "vercel";
790
- createdAt: string;
791
- projectId: string;
792
788
  id: string;
793
789
  installationId: string;
790
+ createdAt: string;
794
791
  updatedAt: string;
795
792
  template: "blank" | "ecommerce" | "hardware-world";
793
+ platform: "cloudflare" | "vercel";
796
794
  repoUrl: string;
797
795
  repoFullName: string;
798
796
  userId: string;
797
+ projectId: string;
799
798
  cloudflareDeployed: boolean;
800
799
  cloudflareUrl?: string | null | undefined;
801
800
  }[];
802
- }, {
803
801
  success: true;
802
+ }, {
804
803
  data: {
805
- platform: "cloudflare" | "vercel";
806
- createdAt: string;
807
- projectId: string;
808
804
  id: string;
809
805
  installationId: string;
806
+ createdAt: string;
810
807
  updatedAt: string;
811
808
  template: "blank" | "ecommerce" | "hardware-world";
809
+ platform: "cloudflare" | "vercel";
812
810
  repoUrl: string;
813
811
  repoFullName: string;
814
812
  userId: string;
813
+ projectId: string;
815
814
  cloudflareDeployed: boolean;
816
815
  cloudflareUrl?: string | null | undefined;
817
816
  }[];
817
+ success: true;
818
818
  }>;
819
819
  /**
820
820
  * Generated file schema
@@ -843,15 +843,15 @@ export declare const scaffolderOptionsSchema: z.ZodObject<{
843
843
  agentShieldApiKey: z.ZodOptional<z.ZodString>;
844
844
  skipIdentity: z.ZodOptional<z.ZodBoolean>;
845
845
  }, "strip", z.ZodTypeAny, {
846
- platform: "cloudflare" | "vercel";
847
846
  template: "blank" | "ecommerce" | "hardware-world";
847
+ platform: "cloudflare" | "vercel";
848
848
  projectName: string;
849
849
  agentShieldProjectId?: string | undefined;
850
850
  agentShieldApiKey?: string | undefined;
851
851
  skipIdentity?: boolean | undefined;
852
852
  }, {
853
- platform: "cloudflare" | "vercel";
854
853
  template: "blank" | "ecommerce" | "hardware-world";
854
+ platform: "cloudflare" | "vercel";
855
855
  projectName: string;
856
856
  agentShieldProjectId?: string | undefined;
857
857
  agentShieldApiKey?: string | undefined;
@@ -931,16 +931,16 @@ export declare const deployStepSchema: z.ZodObject<{
931
931
  startedAt: z.ZodOptional<z.ZodString>;
932
932
  completedAt: z.ZodOptional<z.ZodString>;
933
933
  }, "strip", z.ZodTypeAny, {
934
- name: string;
935
- status: "pending" | "in_progress" | "completed" | "failed";
936
934
  id: string;
935
+ status: "pending" | "in_progress" | "completed" | "failed";
936
+ name: string;
937
937
  message?: string | undefined;
938
938
  startedAt?: string | undefined;
939
939
  completedAt?: string | undefined;
940
940
  }, {
941
- name: string;
942
- status: "pending" | "in_progress" | "completed" | "failed";
943
941
  id: string;
942
+ status: "pending" | "in_progress" | "completed" | "failed";
943
+ name: string;
944
944
  message?: string | undefined;
945
945
  startedAt?: string | undefined;
946
946
  completedAt?: string | undefined;
@@ -957,16 +957,16 @@ export declare const deploymentProgressSchema: z.ZodObject<{
957
957
  startedAt: z.ZodOptional<z.ZodString>;
958
958
  completedAt: z.ZodOptional<z.ZodString>;
959
959
  }, "strip", z.ZodTypeAny, {
960
- name: string;
961
- status: "pending" | "in_progress" | "completed" | "failed";
962
960
  id: string;
961
+ status: "pending" | "in_progress" | "completed" | "failed";
962
+ name: string;
963
963
  message?: string | undefined;
964
964
  startedAt?: string | undefined;
965
965
  completedAt?: string | undefined;
966
966
  }, {
967
- name: string;
968
- status: "pending" | "in_progress" | "completed" | "failed";
969
967
  id: string;
968
+ status: "pending" | "in_progress" | "completed" | "failed";
969
+ name: string;
970
970
  message?: string | undefined;
971
971
  startedAt?: string | undefined;
972
972
  completedAt?: string | undefined;
@@ -976,9 +976,9 @@ export declare const deploymentProgressSchema: z.ZodObject<{
976
976
  overallStatus: z.ZodEnum<["pending", "in_progress", "completed", "failed"]>;
977
977
  }, "strip", z.ZodTypeAny, {
978
978
  steps: {
979
- name: string;
980
- status: "pending" | "in_progress" | "completed" | "failed";
981
979
  id: string;
980
+ status: "pending" | "in_progress" | "completed" | "failed";
981
+ name: string;
982
982
  message?: string | undefined;
983
983
  startedAt?: string | undefined;
984
984
  completedAt?: string | undefined;
@@ -988,9 +988,9 @@ export declare const deploymentProgressSchema: z.ZodObject<{
988
988
  overallStatus: "pending" | "in_progress" | "completed" | "failed";
989
989
  }, {
990
990
  steps: {
991
- name: string;
992
- status: "pending" | "in_progress" | "completed" | "failed";
993
991
  id: string;
992
+ status: "pending" | "in_progress" | "completed" | "failed";
993
+ name: string;
994
994
  message?: string | undefined;
995
995
  startedAt?: string | undefined;
996
996
  completedAt?: string | undefined;
@@ -23,16 +23,16 @@ export declare const MCPClientInfoSchema: z.ZodObject<{
23
23
  persistentId: z.ZodOptional<z.ZodString>;
24
24
  }, "strip", z.ZodTypeAny, {
25
25
  name: string;
26
+ title?: string | undefined;
26
27
  version?: string | undefined;
27
28
  platform?: string | undefined;
28
- title?: string | undefined;
29
29
  vendor?: string | undefined;
30
30
  persistentId?: string | undefined;
31
31
  }, {
32
32
  name: string;
33
+ title?: string | undefined;
33
34
  version?: string | undefined;
34
35
  platform?: string | undefined;
35
- title?: string | undefined;
36
36
  vendor?: string | undefined;
37
37
  persistentId?: string | undefined;
38
38
  }>;
@@ -50,9 +50,9 @@ export declare const MCPClientSessionInfoSchema: z.ZodObject<{
50
50
  }, "strip", z.ZodTypeAny, {
51
51
  name: string;
52
52
  clientId: string;
53
+ title?: string | undefined;
53
54
  version?: string | undefined;
54
55
  platform?: string | undefined;
55
- title?: string | undefined;
56
56
  vendor?: string | undefined;
57
57
  persistentId?: string | undefined;
58
58
  protocolVersion?: string | undefined;
@@ -60,9 +60,9 @@ export declare const MCPClientSessionInfoSchema: z.ZodObject<{
60
60
  }, {
61
61
  name: string;
62
62
  clientId: string;
63
+ title?: string | undefined;
63
64
  version?: string | undefined;
64
65
  platform?: string | undefined;
65
- title?: string | undefined;
66
66
  vendor?: string | undefined;
67
67
  persistentId?: string | undefined;
68
68
  protocolVersion?: string | undefined;
@@ -84,17 +84,17 @@ export declare const HandshakeRequestSchema: z.ZodObject<{
84
84
  clientId: z.ZodOptional<z.ZodString>;
85
85
  }, "strip", z.ZodTypeAny, {
86
86
  name: string;
87
+ title?: string | undefined;
87
88
  version?: string | undefined;
88
89
  platform?: string | undefined;
89
- title?: string | undefined;
90
90
  vendor?: string | undefined;
91
91
  persistentId?: string | undefined;
92
92
  clientId?: string | undefined;
93
93
  }, {
94
94
  name: string;
95
+ title?: string | undefined;
95
96
  version?: string | undefined;
96
97
  platform?: string | undefined;
97
- title?: string | undefined;
98
98
  vendor?: string | undefined;
99
99
  persistentId?: string | undefined;
100
100
  clientId?: string | undefined;
@@ -102,15 +102,15 @@ export declare const HandshakeRequestSchema: z.ZodObject<{
102
102
  clientProtocolVersion: z.ZodOptional<z.ZodString>;
103
103
  clientCapabilities: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
104
104
  }, "strip", z.ZodTypeAny, {
105
- timestamp: number;
106
105
  nonce: string;
107
106
  audience: string;
107
+ timestamp: number;
108
108
  agentDid?: string | undefined;
109
109
  clientInfo?: {
110
110
  name: string;
111
+ title?: string | undefined;
111
112
  version?: string | undefined;
112
113
  platform?: string | undefined;
113
- title?: string | undefined;
114
114
  vendor?: string | undefined;
115
115
  persistentId?: string | undefined;
116
116
  clientId?: string | undefined;
@@ -118,15 +118,15 @@ export declare const HandshakeRequestSchema: z.ZodObject<{
118
118
  clientProtocolVersion?: string | undefined;
119
119
  clientCapabilities?: Record<string, unknown> | undefined;
120
120
  }, {
121
- timestamp: number;
122
121
  nonce: string;
123
122
  audience: string;
123
+ timestamp: number;
124
124
  agentDid?: string | undefined;
125
125
  clientInfo?: {
126
126
  name: string;
127
+ title?: string | undefined;
127
128
  version?: string | undefined;
128
129
  platform?: string | undefined;
129
- title?: string | undefined;
130
130
  vendor?: string | undefined;
131
131
  persistentId?: string | undefined;
132
132
  clientId?: string | undefined;
@@ -160,9 +160,9 @@ export declare const SessionContextSchema: z.ZodObject<{
160
160
  }, "strip", z.ZodTypeAny, {
161
161
  name: string;
162
162
  clientId: string;
163
+ title?: string | undefined;
163
164
  version?: string | undefined;
164
165
  platform?: string | undefined;
165
- title?: string | undefined;
166
166
  vendor?: string | undefined;
167
167
  persistentId?: string | undefined;
168
168
  protocolVersion?: string | undefined;
@@ -170,9 +170,9 @@ export declare const SessionContextSchema: z.ZodObject<{
170
170
  }, {
171
171
  name: string;
172
172
  clientId: string;
173
+ title?: string | undefined;
173
174
  version?: string | undefined;
174
175
  platform?: string | undefined;
175
- title?: string | undefined;
176
176
  vendor?: string | undefined;
177
177
  persistentId?: string | undefined;
178
178
  protocolVersion?: string | undefined;
@@ -204,27 +204,27 @@ export declare const SessionContextSchema: z.ZodObject<{
204
204
  name?: string | undefined;
205
205
  }>>;
206
206
  }, "strip", z.ZodTypeAny, {
207
- ttlMinutes: number;
208
- timestamp: number;
209
207
  nonce: string;
210
208
  audience: string;
209
+ timestamp: number;
211
210
  sessionId: string;
212
211
  createdAt: number;
213
212
  lastActivity: number;
213
+ ttlMinutes: number;
214
214
  identityState: "anonymous" | "authenticated";
215
215
  agentDid?: string | undefined;
216
- serverDid?: string | undefined;
217
216
  clientInfo?: {
218
217
  name: string;
219
218
  clientId: string;
219
+ title?: string | undefined;
220
220
  version?: string | undefined;
221
221
  platform?: string | undefined;
222
- title?: string | undefined;
223
222
  vendor?: string | undefined;
224
223
  persistentId?: string | undefined;
225
224
  protocolVersion?: string | undefined;
226
225
  capabilities?: Record<string, unknown> | undefined;
227
226
  } | undefined;
227
+ serverDid?: string | undefined;
228
228
  clientDid?: string | undefined;
229
229
  userDid?: string | undefined;
230
230
  oauthIdentity?: {
@@ -234,26 +234,26 @@ export declare const SessionContextSchema: z.ZodObject<{
234
234
  name?: string | undefined;
235
235
  } | undefined;
236
236
  }, {
237
- timestamp: number;
238
237
  nonce: string;
239
238
  audience: string;
239
+ timestamp: number;
240
240
  sessionId: string;
241
241
  createdAt: number;
242
242
  lastActivity: number;
243
243
  agentDid?: string | undefined;
244
- serverDid?: string | undefined;
245
- ttlMinutes?: number | undefined;
246
244
  clientInfo?: {
247
245
  name: string;
248
246
  clientId: string;
247
+ title?: string | undefined;
249
248
  version?: string | undefined;
250
249
  platform?: string | undefined;
251
- title?: string | undefined;
252
250
  vendor?: string | undefined;
253
251
  persistentId?: string | undefined;
254
252
  protocolVersion?: string | undefined;
255
253
  capabilities?: Record<string, unknown> | undefined;
256
254
  } | undefined;
255
+ ttlMinutes?: number | undefined;
256
+ serverDid?: string | undefined;
257
257
  clientDid?: string | undefined;
258
258
  userDid?: string | undefined;
259
259
  identityState?: "anonymous" | "authenticated" | undefined;
@@ -346,7 +346,7 @@ export declare const NonceCacheConfigSchema: z.ZodObject<{
346
346
  keyPrefix?: string | undefined;
347
347
  }>>;
348
348
  }, "strip", z.ZodTypeAny, {
349
- type?: "cloudflare-kv" | "memory" | "redis" | "dynamodb" | undefined;
349
+ type?: "memory" | "redis" | "dynamodb" | "cloudflare-kv" | undefined;
350
350
  redis?: {
351
351
  url: string;
352
352
  keyPrefix: string;
@@ -362,7 +362,7 @@ export declare const NonceCacheConfigSchema: z.ZodObject<{
362
362
  namespace: string;
363
363
  } | undefined;
364
364
  }, {
365
- type?: "cloudflare-kv" | "memory" | "redis" | "dynamodb" | undefined;
365
+ type?: "memory" | "redis" | "dynamodb" | "cloudflare-kv" | undefined;
366
366
  redis?: {
367
367
  url: string;
368
368
  keyPrefix?: string | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kya-os/contracts",
3
- "version": "1.7.6",
3
+ "version": "1.7.8",
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",