@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.
@@ -65,38 +65,38 @@ export declare const AuditContextSchema: z.ZodObject<{
65
65
  */
66
66
  scopeId: z.ZodOptional<z.ZodString>;
67
67
  }, "strip", z.ZodTypeAny, {
68
- identity: {
69
- did: string;
70
- kid: string;
71
- } & {
72
- [k: string]: unknown;
73
- };
68
+ requestHash: string;
69
+ responseHash: string;
74
70
  session: {
75
71
  audience: string;
76
72
  sessionId: string;
77
73
  } & {
78
74
  [k: string]: unknown;
79
75
  };
80
- requestHash: string;
81
- responseHash: string;
82
76
  verified: "yes" | "no";
83
- scopeId?: string | undefined;
84
- }, {
85
77
  identity: {
86
78
  did: string;
87
79
  kid: string;
88
80
  } & {
89
81
  [k: string]: unknown;
90
82
  };
83
+ scopeId?: string | undefined;
84
+ }, {
85
+ requestHash: string;
86
+ responseHash: string;
91
87
  session: {
92
88
  audience: string;
93
89
  sessionId: string;
94
90
  } & {
95
91
  [k: string]: unknown;
96
92
  };
97
- requestHash: string;
98
- responseHash: string;
99
93
  verified: "yes" | "no";
94
+ identity: {
95
+ did: string;
96
+ kid: string;
97
+ } & {
98
+ [k: string]: unknown;
99
+ };
100
100
  scopeId?: string | undefined;
101
101
  }>;
102
102
  export type AuditContext = {
@@ -153,33 +153,33 @@ export declare const AuditEventContextSchema: z.ZodObject<{
153
153
  */
154
154
  eventData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
155
155
  }, "strip", z.ZodTypeAny, {
156
- identity: {
157
- did: string;
158
- kid: string;
159
- } & {
160
- [k: string]: unknown;
161
- };
162
156
  session: {
163
157
  audience: string;
164
158
  sessionId: string;
165
159
  } & {
166
160
  [k: string]: unknown;
167
161
  };
168
- eventType: string;
169
- eventData?: Record<string, unknown> | undefined;
170
- }, {
171
162
  identity: {
172
163
  did: string;
173
164
  kid: string;
174
165
  } & {
175
166
  [k: string]: unknown;
176
167
  };
168
+ eventType: string;
169
+ eventData?: Record<string, unknown> | undefined;
170
+ }, {
177
171
  session: {
178
172
  audience: string;
179
173
  sessionId: string;
180
174
  } & {
181
175
  [k: string]: unknown;
182
176
  };
177
+ identity: {
178
+ did: string;
179
+ kid: string;
180
+ } & {
181
+ [k: string]: unknown;
182
+ };
183
183
  eventType: string;
184
184
  eventData?: Record<string, unknown> | undefined;
185
185
  }>;
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";
40
41
  did: string;
41
42
  publicKey: string;
42
43
  privateKey: string;
43
44
  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";
54
55
  did: string;
55
56
  publicKey: string;
56
57
  privateKey: string;
57
58
  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";
68
69
  did: string;
69
70
  publicKey: string;
70
71
  privateKey: string;
71
72
  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";
82
83
  did: string;
83
84
  publicKey: string;
84
85
  privateKey: string;
85
86
  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";
105
106
  did: string;
106
107
  publicKey: string;
107
108
  privateKey: string;
108
109
  createdAt: string;
109
- version: "1.0";
110
110
  kta?: {
111
111
  registered: boolean;
112
112
  registeredAt: string;
@@ -151,13 +151,13 @@ export declare const oauthIdentitySchema: z.ZodObject<{
151
151
  */
152
152
  name: z.ZodOptional<z.ZodString>;
153
153
  }, "strip", z.ZodTypeAny, {
154
- provider: string;
155
154
  subject: string;
155
+ provider: string;
156
156
  email?: string | undefined;
157
157
  name?: string | undefined;
158
158
  }, {
159
- provider: string;
160
159
  subject: string;
160
+ provider: string;
161
161
  email?: string | undefined;
162
162
  name?: string | undefined;
163
163
  }>;
@@ -281,12 +281,12 @@ export declare const consentPageConfigSchema: z.ZodEffects<z.ZodObject<{
281
281
  oauthUrl: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
282
282
  }, "strip", z.ZodTypeAny, {
283
283
  scopes: string[];
284
- sessionId: string;
285
284
  agentDid: string;
285
+ sessionId: string;
286
286
  tool: string;
287
287
  projectId: string;
288
- serverUrl: string;
289
288
  toolDescription: string;
289
+ serverUrl: string;
290
290
  branding?: {
291
291
  primaryColor?: string | undefined;
292
292
  logoUrl?: string | undefined;
@@ -317,12 +317,12 @@ export declare const consentPageConfigSchema: z.ZodEffects<z.ZodObject<{
317
317
  oauthUrl?: string | undefined;
318
318
  }, {
319
319
  scopes: string[];
320
- sessionId: string;
321
320
  agentDid: string;
321
+ sessionId: string;
322
322
  tool: string;
323
323
  projectId: string;
324
- serverUrl: string;
325
324
  toolDescription: string;
325
+ serverUrl: string;
326
326
  branding?: {
327
327
  primaryColor?: string | undefined;
328
328
  logoUrl?: string | undefined;
@@ -353,12 +353,12 @@ export declare const consentPageConfigSchema: z.ZodEffects<z.ZodObject<{
353
353
  oauthUrl?: string | undefined;
354
354
  }>, {
355
355
  scopes: string[];
356
- sessionId: string;
357
356
  agentDid: string;
357
+ sessionId: string;
358
358
  tool: string;
359
359
  projectId: string;
360
- serverUrl: string;
361
360
  toolDescription: string;
361
+ serverUrl: string;
362
362
  branding?: {
363
363
  primaryColor?: string | undefined;
364
364
  logoUrl?: string | undefined;
@@ -389,12 +389,12 @@ export declare const consentPageConfigSchema: z.ZodEffects<z.ZodObject<{
389
389
  oauthUrl?: string | undefined;
390
390
  }, {
391
391
  scopes: string[];
392
- sessionId: string;
393
392
  agentDid: string;
393
+ sessionId: string;
394
394
  tool: string;
395
395
  projectId: string;
396
- serverUrl: string;
397
396
  toolDescription: string;
397
+ serverUrl: string;
398
398
  branding?: {
399
399
  primaryColor?: string | undefined;
400
400
  logoUrl?: string | undefined;
@@ -469,13 +469,13 @@ export declare const consentApprovalRequestSchema: z.ZodObject<{
469
469
  */
470
470
  name: z.ZodOptional<z.ZodString>;
471
471
  }, "strip", z.ZodTypeAny, {
472
- provider: string;
473
472
  subject: string;
473
+ provider: string;
474
474
  email?: string | undefined;
475
475
  name?: string | undefined;
476
476
  }, {
477
- provider: string;
478
477
  subject: string;
478
+ provider: string;
479
479
  email?: string | undefined;
480
480
  name?: string | undefined;
481
481
  }>>>;
@@ -487,33 +487,33 @@ export declare const consentApprovalRequestSchema: z.ZodObject<{
487
487
  user_did: z.ZodOptional<z.ZodString>;
488
488
  }, "strip", z.ZodTypeAny, {
489
489
  scopes: string[];
490
- session_id: string;
491
490
  tool: string;
492
- termsAccepted: boolean;
491
+ session_id: string;
493
492
  agent_did: string;
494
493
  project_id: string;
494
+ termsAccepted: boolean;
495
495
  user_did?: string | undefined;
496
496
  customFields?: Record<string, string | boolean> | undefined;
497
497
  termsVersion?: string | undefined;
498
498
  oauth_identity?: {
499
- provider: string;
500
499
  subject: string;
500
+ provider: string;
501
501
  email?: string | undefined;
502
502
  name?: string | undefined;
503
503
  } | null | undefined;
504
504
  }, {
505
505
  scopes: string[];
506
- session_id: string;
507
506
  tool: string;
508
- termsAccepted: boolean;
507
+ session_id: string;
509
508
  agent_did: string;
510
509
  project_id: string;
510
+ termsAccepted: boolean;
511
511
  user_did?: string | undefined;
512
512
  customFields?: Record<string, string | boolean> | undefined;
513
513
  termsVersion?: string | undefined;
514
514
  oauth_identity?: {
515
- provider: string;
516
515
  subject: string;
516
+ provider: string;
517
517
  email?: string | undefined;
518
518
  name?: string | undefined;
519
519
  } | null | undefined;
@@ -743,12 +743,12 @@ export type ConsentConfig = z.infer<typeof consentConfigSchema>;
743
743
  */
744
744
  export declare function validateConsentPageConfig(config: unknown): z.SafeParseReturnType<{
745
745
  scopes: string[];
746
- sessionId: string;
747
746
  agentDid: string;
747
+ sessionId: string;
748
748
  tool: string;
749
749
  projectId: string;
750
- serverUrl: string;
751
750
  toolDescription: string;
751
+ serverUrl: string;
752
752
  branding?: {
753
753
  primaryColor?: string | undefined;
754
754
  logoUrl?: string | undefined;
@@ -779,12 +779,12 @@ export declare function validateConsentPageConfig(config: unknown): z.SafeParseR
779
779
  oauthUrl?: string | undefined;
780
780
  }, {
781
781
  scopes: string[];
782
- sessionId: string;
783
782
  agentDid: string;
783
+ sessionId: string;
784
784
  tool: string;
785
785
  projectId: string;
786
- serverUrl: string;
787
786
  toolDescription: string;
787
+ serverUrl: string;
788
788
  branding?: {
789
789
  primaryColor?: string | undefined;
790
790
  logoUrl?: string | undefined;
@@ -822,33 +822,33 @@ export declare function validateConsentPageConfig(config: unknown): z.SafeParseR
822
822
  */
823
823
  export declare function validateConsentApprovalRequest(request: unknown): z.SafeParseReturnType<{
824
824
  scopes: string[];
825
- session_id: string;
826
825
  tool: string;
827
- termsAccepted: boolean;
826
+ session_id: string;
828
827
  agent_did: string;
829
828
  project_id: string;
829
+ termsAccepted: boolean;
830
830
  user_did?: string | undefined;
831
831
  customFields?: Record<string, string | boolean> | undefined;
832
832
  termsVersion?: string | undefined;
833
833
  oauth_identity?: {
834
- provider: string;
835
834
  subject: string;
835
+ provider: string;
836
836
  email?: string | undefined;
837
837
  name?: string | undefined;
838
838
  } | null | undefined;
839
839
  }, {
840
840
  scopes: string[];
841
- session_id: string;
842
841
  tool: string;
843
- termsAccepted: boolean;
842
+ session_id: string;
844
843
  agent_did: string;
845
844
  project_id: string;
845
+ termsAccepted: boolean;
846
846
  user_did?: string | undefined;
847
847
  customFields?: Record<string, string | boolean> | undefined;
848
848
  termsVersion?: string | undefined;
849
849
  oauth_identity?: {
850
- provider: string;
851
850
  subject: string;
851
+ provider: string;
852
852
  email?: string | undefined;
853
853
  name?: string | undefined;
854
854
  } | null | undefined;