@kya-os/contracts 1.7.12 → 1.7.13
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/schemas.d.ts +149 -149
- package/dist/agentshield-api/schemas.js +1 -1
- package/dist/agentshield-api/types.d.ts +1 -1
- package/dist/audit/index.d.ts +6 -6
- package/dist/cli.d.ts +5 -5
- package/dist/consent/schemas.d.ts +28 -28
- package/dist/dashboard-config/schemas.d.ts +1584 -1584
- package/dist/delegation/schemas.d.ts +24 -24
- package/dist/deploy/schemas.d.ts +2 -2
- package/dist/handshake.d.ts +29 -29
- package/dist/proof/proof-record.d.ts +12 -12
- package/dist/proof/signing-spec.d.ts +4 -4
- package/dist/proof.d.ts +24 -24
- package/dist/reputation/api.d.ts +18 -18
- package/dist/reputation/schemas.d.ts +10 -10
- package/dist/tool-protection/index.d.ts +4 -4
- package/dist/verifier.d.ts +6 -6
- package/dist/well-known/index.d.ts +18 -18
- package/package.json +1 -1
|
@@ -130,7 +130,7 @@ exports.delegationCredentialSchema = zod_1.z.object({
|
|
|
130
130
|
created_at: zod_1.z.number().int().positive(),
|
|
131
131
|
credential_jwt: zod_1.z.string().optional(),
|
|
132
132
|
authorization: zod_1.z.object({
|
|
133
|
-
type: zod_1.z.enum(['oauth', 'credential', 'none']),
|
|
133
|
+
type: zod_1.z.enum(['oauth', 'password', 'credential', 'none']),
|
|
134
134
|
provider: zod_1.z.string().optional(),
|
|
135
135
|
credentialType: zod_1.z.string().optional(),
|
|
136
136
|
}),
|
|
@@ -150,7 +150,7 @@ export interface DelegationCredential {
|
|
|
150
150
|
created_at: number;
|
|
151
151
|
credential_jwt?: string;
|
|
152
152
|
authorization: {
|
|
153
|
-
type: 'oauth' | 'credential' | 'none';
|
|
153
|
+
type: 'oauth' | 'password' | 'credential' | 'none';
|
|
154
154
|
provider?: string;
|
|
155
155
|
credentialType?: string;
|
|
156
156
|
};
|
package/dist/audit/index.d.ts
CHANGED
|
@@ -65,8 +65,6 @@ export declare const AuditContextSchema: z.ZodObject<{
|
|
|
65
65
|
*/
|
|
66
66
|
scopeId: z.ZodOptional<z.ZodString>;
|
|
67
67
|
}, "strip", z.ZodTypeAny, {
|
|
68
|
-
requestHash: string;
|
|
69
|
-
responseHash: string;
|
|
70
68
|
identity: {
|
|
71
69
|
did: string;
|
|
72
70
|
kid: string;
|
|
@@ -79,11 +77,11 @@ export declare const AuditContextSchema: z.ZodObject<{
|
|
|
79
77
|
} & {
|
|
80
78
|
[k: string]: unknown;
|
|
81
79
|
};
|
|
80
|
+
requestHash: string;
|
|
81
|
+
responseHash: string;
|
|
82
82
|
verified: "yes" | "no";
|
|
83
83
|
scopeId?: string | undefined;
|
|
84
84
|
}, {
|
|
85
|
-
requestHash: string;
|
|
86
|
-
responseHash: string;
|
|
87
85
|
identity: {
|
|
88
86
|
did: string;
|
|
89
87
|
kid: string;
|
|
@@ -96,6 +94,8 @@ export declare const AuditContextSchema: z.ZodObject<{
|
|
|
96
94
|
} & {
|
|
97
95
|
[k: string]: unknown;
|
|
98
96
|
};
|
|
97
|
+
requestHash: string;
|
|
98
|
+
responseHash: string;
|
|
99
99
|
verified: "yes" | "no";
|
|
100
100
|
scopeId?: string | undefined;
|
|
101
101
|
}>;
|
|
@@ -153,7 +153,6 @@ 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
|
-
eventType: string;
|
|
157
156
|
identity: {
|
|
158
157
|
did: string;
|
|
159
158
|
kid: string;
|
|
@@ -166,9 +165,9 @@ export declare const AuditEventContextSchema: z.ZodObject<{
|
|
|
166
165
|
} & {
|
|
167
166
|
[k: string]: unknown;
|
|
168
167
|
};
|
|
168
|
+
eventType: string;
|
|
169
169
|
eventData?: Record<string, unknown> | undefined;
|
|
170
170
|
}, {
|
|
171
|
-
eventType: string;
|
|
172
171
|
identity: {
|
|
173
172
|
did: string;
|
|
174
173
|
kid: string;
|
|
@@ -181,6 +180,7 @@ export declare const AuditEventContextSchema: z.ZodObject<{
|
|
|
181
180
|
} & {
|
|
182
181
|
[k: string]: unknown;
|
|
183
182
|
};
|
|
183
|
+
eventType: string;
|
|
184
184
|
eventData?: Record<string, unknown> | undefined;
|
|
185
185
|
}>;
|
|
186
186
|
export type AuditEventContext = {
|
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;
|
|
@@ -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
|
email?: string | undefined;
|
|
157
157
|
name?: string | undefined;
|
|
158
158
|
}, {
|
|
159
|
-
subject: string;
|
|
160
159
|
provider: string;
|
|
160
|
+
subject: 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
|
-
agentDid: string;
|
|
285
284
|
sessionId: string;
|
|
285
|
+
agentDid: string;
|
|
286
286
|
tool: string;
|
|
287
287
|
projectId: string;
|
|
288
|
-
toolDescription: string;
|
|
289
288
|
serverUrl: string;
|
|
289
|
+
toolDescription: 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
|
-
agentDid: string;
|
|
321
320
|
sessionId: string;
|
|
321
|
+
agentDid: string;
|
|
322
322
|
tool: string;
|
|
323
323
|
projectId: string;
|
|
324
|
-
toolDescription: string;
|
|
325
324
|
serverUrl: string;
|
|
325
|
+
toolDescription: 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
|
-
agentDid: string;
|
|
357
356
|
sessionId: string;
|
|
357
|
+
agentDid: string;
|
|
358
358
|
tool: string;
|
|
359
359
|
projectId: string;
|
|
360
|
-
toolDescription: string;
|
|
361
360
|
serverUrl: string;
|
|
361
|
+
toolDescription: 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
|
-
agentDid: string;
|
|
393
392
|
sessionId: string;
|
|
393
|
+
agentDid: string;
|
|
394
394
|
tool: string;
|
|
395
395
|
projectId: string;
|
|
396
|
-
toolDescription: string;
|
|
397
396
|
serverUrl: string;
|
|
397
|
+
toolDescription: 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
|
-
subject: string;
|
|
473
472
|
provider: string;
|
|
473
|
+
subject: string;
|
|
474
474
|
email?: string | undefined;
|
|
475
475
|
name?: string | undefined;
|
|
476
476
|
}, {
|
|
477
|
-
subject: string;
|
|
478
477
|
provider: string;
|
|
478
|
+
subject: 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
|
-
tool: string;
|
|
491
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
|
user_did?: string | undefined;
|
|
496
496
|
customFields?: Record<string, string | boolean> | undefined;
|
|
497
497
|
termsVersion?: string | undefined;
|
|
498
498
|
oauth_identity?: {
|
|
499
|
-
subject: string;
|
|
500
499
|
provider: string;
|
|
500
|
+
subject: string;
|
|
501
501
|
email?: string | undefined;
|
|
502
502
|
name?: string | undefined;
|
|
503
503
|
} | null | undefined;
|
|
504
504
|
}, {
|
|
505
505
|
scopes: string[];
|
|
506
|
-
tool: string;
|
|
507
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
|
user_did?: string | undefined;
|
|
512
512
|
customFields?: Record<string, string | boolean> | undefined;
|
|
513
513
|
termsVersion?: string | undefined;
|
|
514
514
|
oauth_identity?: {
|
|
515
|
-
subject: string;
|
|
516
515
|
provider: string;
|
|
516
|
+
subject: 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
|
-
agentDid: string;
|
|
747
746
|
sessionId: string;
|
|
747
|
+
agentDid: string;
|
|
748
748
|
tool: string;
|
|
749
749
|
projectId: string;
|
|
750
|
-
toolDescription: string;
|
|
751
750
|
serverUrl: string;
|
|
751
|
+
toolDescription: 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
|
-
agentDid: string;
|
|
783
782
|
sessionId: string;
|
|
783
|
+
agentDid: string;
|
|
784
784
|
tool: string;
|
|
785
785
|
projectId: string;
|
|
786
|
-
toolDescription: string;
|
|
787
786
|
serverUrl: string;
|
|
787
|
+
toolDescription: 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
|
-
tool: string;
|
|
826
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
|
user_did?: string | undefined;
|
|
831
831
|
customFields?: Record<string, string | boolean> | undefined;
|
|
832
832
|
termsVersion?: string | undefined;
|
|
833
833
|
oauth_identity?: {
|
|
834
|
-
subject: string;
|
|
835
834
|
provider: string;
|
|
835
|
+
subject: string;
|
|
836
836
|
email?: string | undefined;
|
|
837
837
|
name?: string | undefined;
|
|
838
838
|
} | null | undefined;
|
|
839
839
|
}, {
|
|
840
840
|
scopes: string[];
|
|
841
|
-
tool: string;
|
|
842
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
|
user_did?: string | undefined;
|
|
847
847
|
customFields?: Record<string, string | boolean> | undefined;
|
|
848
848
|
termsVersion?: string | undefined;
|
|
849
849
|
oauth_identity?: {
|
|
850
|
-
subject: string;
|
|
851
850
|
provider: string;
|
|
851
|
+
subject: string;
|
|
852
852
|
email?: string | undefined;
|
|
853
853
|
name?: string | undefined;
|
|
854
854
|
} | null | undefined;
|