@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
|
@@ -4610,8 +4610,8 @@ export declare const DelegationCredentialSubjectSchema: z.ZodObject<{
|
|
|
4610
4610
|
};
|
|
4611
4611
|
issuerDid: string;
|
|
4612
4612
|
subjectDid: string;
|
|
4613
|
-
metadata?: Record<string, any> | undefined;
|
|
4614
4613
|
createdAt?: number | undefined;
|
|
4614
|
+
metadata?: Record<string, any> | undefined;
|
|
4615
4615
|
controller?: string | undefined;
|
|
4616
4616
|
parentId?: string | undefined;
|
|
4617
4617
|
}, {
|
|
@@ -4670,8 +4670,8 @@ export declare const DelegationCredentialSubjectSchema: z.ZodObject<{
|
|
|
4670
4670
|
issuerDid: string;
|
|
4671
4671
|
subjectDid: string;
|
|
4672
4672
|
status?: "active" | "revoked" | "expired" | undefined;
|
|
4673
|
-
metadata?: Record<string, any> | undefined;
|
|
4674
4673
|
createdAt?: number | undefined;
|
|
4674
|
+
metadata?: Record<string, any> | undefined;
|
|
4675
4675
|
controller?: string | undefined;
|
|
4676
4676
|
parentId?: string | undefined;
|
|
4677
4677
|
}>;
|
|
@@ -4732,8 +4732,8 @@ export declare const DelegationCredentialSubjectSchema: z.ZodObject<{
|
|
|
4732
4732
|
};
|
|
4733
4733
|
issuerDid: string;
|
|
4734
4734
|
subjectDid: string;
|
|
4735
|
-
metadata?: Record<string, any> | undefined;
|
|
4736
4735
|
createdAt?: number | undefined;
|
|
4736
|
+
metadata?: Record<string, any> | undefined;
|
|
4737
4737
|
controller?: string | undefined;
|
|
4738
4738
|
parentId?: string | undefined;
|
|
4739
4739
|
};
|
|
@@ -4795,8 +4795,8 @@ export declare const DelegationCredentialSubjectSchema: z.ZodObject<{
|
|
|
4795
4795
|
issuerDid: string;
|
|
4796
4796
|
subjectDid: string;
|
|
4797
4797
|
status?: "active" | "revoked" | "expired" | undefined;
|
|
4798
|
-
metadata?: Record<string, any> | undefined;
|
|
4799
4798
|
createdAt?: number | undefined;
|
|
4799
|
+
metadata?: Record<string, any> | undefined;
|
|
4800
4800
|
controller?: string | undefined;
|
|
4801
4801
|
parentId?: string | undefined;
|
|
4802
4802
|
};
|
|
@@ -5315,8 +5315,8 @@ export declare const DelegationCredentialSchema: z.ZodObject<{
|
|
|
5315
5315
|
};
|
|
5316
5316
|
issuerDid: string;
|
|
5317
5317
|
subjectDid: string;
|
|
5318
|
-
metadata?: Record<string, any> | undefined;
|
|
5319
5318
|
createdAt?: number | undefined;
|
|
5319
|
+
metadata?: Record<string, any> | undefined;
|
|
5320
5320
|
controller?: string | undefined;
|
|
5321
5321
|
parentId?: string | undefined;
|
|
5322
5322
|
}, {
|
|
@@ -5375,8 +5375,8 @@ export declare const DelegationCredentialSchema: z.ZodObject<{
|
|
|
5375
5375
|
issuerDid: string;
|
|
5376
5376
|
subjectDid: string;
|
|
5377
5377
|
status?: "active" | "revoked" | "expired" | undefined;
|
|
5378
|
-
metadata?: Record<string, any> | undefined;
|
|
5379
5378
|
createdAt?: number | undefined;
|
|
5379
|
+
metadata?: Record<string, any> | undefined;
|
|
5380
5380
|
controller?: string | undefined;
|
|
5381
5381
|
parentId?: string | undefined;
|
|
5382
5382
|
}>;
|
|
@@ -5437,8 +5437,8 @@ export declare const DelegationCredentialSchema: z.ZodObject<{
|
|
|
5437
5437
|
};
|
|
5438
5438
|
issuerDid: string;
|
|
5439
5439
|
subjectDid: string;
|
|
5440
|
-
metadata?: Record<string, any> | undefined;
|
|
5441
5440
|
createdAt?: number | undefined;
|
|
5441
|
+
metadata?: Record<string, any> | undefined;
|
|
5442
5442
|
controller?: string | undefined;
|
|
5443
5443
|
parentId?: string | undefined;
|
|
5444
5444
|
};
|
|
@@ -5500,8 +5500,8 @@ export declare const DelegationCredentialSchema: z.ZodObject<{
|
|
|
5500
5500
|
issuerDid: string;
|
|
5501
5501
|
subjectDid: string;
|
|
5502
5502
|
status?: "active" | "revoked" | "expired" | undefined;
|
|
5503
|
-
metadata?: Record<string, any> | undefined;
|
|
5504
5503
|
createdAt?: number | undefined;
|
|
5504
|
+
metadata?: Record<string, any> | undefined;
|
|
5505
5505
|
controller?: string | undefined;
|
|
5506
5506
|
parentId?: string | undefined;
|
|
5507
5507
|
};
|
|
@@ -6031,8 +6031,8 @@ export declare const DelegationCredentialSchema: z.ZodObject<{
|
|
|
6031
6031
|
};
|
|
6032
6032
|
issuerDid: string;
|
|
6033
6033
|
subjectDid: string;
|
|
6034
|
-
metadata?: Record<string, any> | undefined;
|
|
6035
6034
|
createdAt?: number | undefined;
|
|
6035
|
+
metadata?: Record<string, any> | undefined;
|
|
6036
6036
|
controller?: string | undefined;
|
|
6037
6037
|
parentId?: string | undefined;
|
|
6038
6038
|
}, {
|
|
@@ -6091,8 +6091,8 @@ export declare const DelegationCredentialSchema: z.ZodObject<{
|
|
|
6091
6091
|
issuerDid: string;
|
|
6092
6092
|
subjectDid: string;
|
|
6093
6093
|
status?: "active" | "revoked" | "expired" | undefined;
|
|
6094
|
-
metadata?: Record<string, any> | undefined;
|
|
6095
6094
|
createdAt?: number | undefined;
|
|
6095
|
+
metadata?: Record<string, any> | undefined;
|
|
6096
6096
|
controller?: string | undefined;
|
|
6097
6097
|
parentId?: string | undefined;
|
|
6098
6098
|
}>;
|
|
@@ -6153,8 +6153,8 @@ export declare const DelegationCredentialSchema: z.ZodObject<{
|
|
|
6153
6153
|
};
|
|
6154
6154
|
issuerDid: string;
|
|
6155
6155
|
subjectDid: string;
|
|
6156
|
-
metadata?: Record<string, any> | undefined;
|
|
6157
6156
|
createdAt?: number | undefined;
|
|
6157
|
+
metadata?: Record<string, any> | undefined;
|
|
6158
6158
|
controller?: string | undefined;
|
|
6159
6159
|
parentId?: string | undefined;
|
|
6160
6160
|
};
|
|
@@ -6216,8 +6216,8 @@ export declare const DelegationCredentialSchema: z.ZodObject<{
|
|
|
6216
6216
|
issuerDid: string;
|
|
6217
6217
|
subjectDid: string;
|
|
6218
6218
|
status?: "active" | "revoked" | "expired" | undefined;
|
|
6219
|
-
metadata?: Record<string, any> | undefined;
|
|
6220
6219
|
createdAt?: number | undefined;
|
|
6220
|
+
metadata?: Record<string, any> | undefined;
|
|
6221
6221
|
controller?: string | undefined;
|
|
6222
6222
|
parentId?: string | undefined;
|
|
6223
6223
|
};
|
|
@@ -6747,8 +6747,8 @@ export declare const DelegationCredentialSchema: z.ZodObject<{
|
|
|
6747
6747
|
};
|
|
6748
6748
|
issuerDid: string;
|
|
6749
6749
|
subjectDid: string;
|
|
6750
|
-
metadata?: Record<string, any> | undefined;
|
|
6751
6750
|
createdAt?: number | undefined;
|
|
6751
|
+
metadata?: Record<string, any> | undefined;
|
|
6752
6752
|
controller?: string | undefined;
|
|
6753
6753
|
parentId?: string | undefined;
|
|
6754
6754
|
}, {
|
|
@@ -6807,8 +6807,8 @@ export declare const DelegationCredentialSchema: z.ZodObject<{
|
|
|
6807
6807
|
issuerDid: string;
|
|
6808
6808
|
subjectDid: string;
|
|
6809
6809
|
status?: "active" | "revoked" | "expired" | undefined;
|
|
6810
|
-
metadata?: Record<string, any> | undefined;
|
|
6811
6810
|
createdAt?: number | undefined;
|
|
6811
|
+
metadata?: Record<string, any> | undefined;
|
|
6812
6812
|
controller?: string | undefined;
|
|
6813
6813
|
parentId?: string | undefined;
|
|
6814
6814
|
}>;
|
|
@@ -6869,8 +6869,8 @@ export declare const DelegationCredentialSchema: z.ZodObject<{
|
|
|
6869
6869
|
};
|
|
6870
6870
|
issuerDid: string;
|
|
6871
6871
|
subjectDid: string;
|
|
6872
|
-
metadata?: Record<string, any> | undefined;
|
|
6873
6872
|
createdAt?: number | undefined;
|
|
6873
|
+
metadata?: Record<string, any> | undefined;
|
|
6874
6874
|
controller?: string | undefined;
|
|
6875
6875
|
parentId?: string | undefined;
|
|
6876
6876
|
};
|
|
@@ -6932,8 +6932,8 @@ export declare const DelegationCredentialSchema: z.ZodObject<{
|
|
|
6932
6932
|
issuerDid: string;
|
|
6933
6933
|
subjectDid: string;
|
|
6934
6934
|
status?: "active" | "revoked" | "expired" | undefined;
|
|
6935
|
-
metadata?: Record<string, any> | undefined;
|
|
6936
6935
|
createdAt?: number | undefined;
|
|
6936
|
+
metadata?: Record<string, any> | undefined;
|
|
6937
6937
|
controller?: string | undefined;
|
|
6938
6938
|
parentId?: string | undefined;
|
|
6939
6939
|
};
|
|
@@ -7471,8 +7471,8 @@ export declare function validateDelegationCredential(credential: unknown): z.Saf
|
|
|
7471
7471
|
};
|
|
7472
7472
|
issuerDid: string;
|
|
7473
7473
|
subjectDid: string;
|
|
7474
|
-
metadata?: Record<string, any> | undefined;
|
|
7475
7474
|
createdAt?: number | undefined;
|
|
7475
|
+
metadata?: Record<string, any> | undefined;
|
|
7476
7476
|
controller?: string | undefined;
|
|
7477
7477
|
parentId?: string | undefined;
|
|
7478
7478
|
}, {
|
|
@@ -7531,8 +7531,8 @@ export declare function validateDelegationCredential(credential: unknown): z.Saf
|
|
|
7531
7531
|
issuerDid: string;
|
|
7532
7532
|
subjectDid: string;
|
|
7533
7533
|
status?: "active" | "revoked" | "expired" | undefined;
|
|
7534
|
-
metadata?: Record<string, any> | undefined;
|
|
7535
7534
|
createdAt?: number | undefined;
|
|
7535
|
+
metadata?: Record<string, any> | undefined;
|
|
7536
7536
|
controller?: string | undefined;
|
|
7537
7537
|
parentId?: string | undefined;
|
|
7538
7538
|
}>;
|
|
@@ -7593,8 +7593,8 @@ export declare function validateDelegationCredential(credential: unknown): z.Saf
|
|
|
7593
7593
|
};
|
|
7594
7594
|
issuerDid: string;
|
|
7595
7595
|
subjectDid: string;
|
|
7596
|
-
metadata?: Record<string, any> | undefined;
|
|
7597
7596
|
createdAt?: number | undefined;
|
|
7597
|
+
metadata?: Record<string, any> | undefined;
|
|
7598
7598
|
controller?: string | undefined;
|
|
7599
7599
|
parentId?: string | undefined;
|
|
7600
7600
|
};
|
|
@@ -7656,8 +7656,8 @@ export declare function validateDelegationCredential(credential: unknown): z.Saf
|
|
|
7656
7656
|
issuerDid: string;
|
|
7657
7657
|
subjectDid: string;
|
|
7658
7658
|
status?: "active" | "revoked" | "expired" | undefined;
|
|
7659
|
-
metadata?: Record<string, any> | undefined;
|
|
7660
7659
|
createdAt?: number | undefined;
|
|
7660
|
+
metadata?: Record<string, any> | undefined;
|
|
7661
7661
|
controller?: string | undefined;
|
|
7662
7662
|
parentId?: string | undefined;
|
|
7663
7663
|
};
|
|
@@ -8187,8 +8187,8 @@ export declare function validateDelegationCredential(credential: unknown): z.Saf
|
|
|
8187
8187
|
};
|
|
8188
8188
|
issuerDid: string;
|
|
8189
8189
|
subjectDid: string;
|
|
8190
|
-
metadata?: Record<string, any> | undefined;
|
|
8191
8190
|
createdAt?: number | undefined;
|
|
8191
|
+
metadata?: Record<string, any> | undefined;
|
|
8192
8192
|
controller?: string | undefined;
|
|
8193
8193
|
parentId?: string | undefined;
|
|
8194
8194
|
}, {
|
|
@@ -8247,8 +8247,8 @@ export declare function validateDelegationCredential(credential: unknown): z.Saf
|
|
|
8247
8247
|
issuerDid: string;
|
|
8248
8248
|
subjectDid: string;
|
|
8249
8249
|
status?: "active" | "revoked" | "expired" | undefined;
|
|
8250
|
-
metadata?: Record<string, any> | undefined;
|
|
8251
8250
|
createdAt?: number | undefined;
|
|
8251
|
+
metadata?: Record<string, any> | undefined;
|
|
8252
8252
|
controller?: string | undefined;
|
|
8253
8253
|
parentId?: string | undefined;
|
|
8254
8254
|
}>;
|
|
@@ -8309,8 +8309,8 @@ export declare function validateDelegationCredential(credential: unknown): z.Saf
|
|
|
8309
8309
|
};
|
|
8310
8310
|
issuerDid: string;
|
|
8311
8311
|
subjectDid: string;
|
|
8312
|
-
metadata?: Record<string, any> | undefined;
|
|
8313
8312
|
createdAt?: number | undefined;
|
|
8313
|
+
metadata?: Record<string, any> | undefined;
|
|
8314
8314
|
controller?: string | undefined;
|
|
8315
8315
|
parentId?: string | undefined;
|
|
8316
8316
|
};
|
|
@@ -8372,8 +8372,8 @@ export declare function validateDelegationCredential(credential: unknown): z.Saf
|
|
|
8372
8372
|
issuerDid: string;
|
|
8373
8373
|
subjectDid: string;
|
|
8374
8374
|
status?: "active" | "revoked" | "expired" | undefined;
|
|
8375
|
-
metadata?: Record<string, any> | undefined;
|
|
8376
8375
|
createdAt?: number | undefined;
|
|
8376
|
+
metadata?: Record<string, any> | undefined;
|
|
8377
8377
|
controller?: string | undefined;
|
|
8378
8378
|
parentId?: string | undefined;
|
|
8379
8379
|
};
|
package/dist/deploy/schemas.d.ts
CHANGED
|
@@ -896,12 +896,12 @@ export declare const scaffolderResultSchema: z.ZodObject<{
|
|
|
896
896
|
content: string;
|
|
897
897
|
isBase64?: boolean | undefined;
|
|
898
898
|
}[];
|
|
899
|
-
warnings?: string[] | undefined;
|
|
900
899
|
identity?: {
|
|
901
900
|
did: string;
|
|
902
901
|
publicKey: string;
|
|
903
902
|
privateKey: string;
|
|
904
903
|
} | undefined;
|
|
904
|
+
warnings?: string[] | undefined;
|
|
905
905
|
}, {
|
|
906
906
|
success: boolean;
|
|
907
907
|
files: {
|
|
@@ -909,12 +909,12 @@ export declare const scaffolderResultSchema: z.ZodObject<{
|
|
|
909
909
|
content: string;
|
|
910
910
|
isBase64?: boolean | undefined;
|
|
911
911
|
}[];
|
|
912
|
-
warnings?: string[] | undefined;
|
|
913
912
|
identity?: {
|
|
914
913
|
did: string;
|
|
915
914
|
publicKey: string;
|
|
916
915
|
privateKey: string;
|
|
917
916
|
} | undefined;
|
|
917
|
+
warnings?: string[] | undefined;
|
|
918
918
|
}>;
|
|
919
919
|
/**
|
|
920
920
|
* Deploy step status schema
|
package/dist/handshake.d.ts
CHANGED
|
@@ -23,17 +23,17 @@ 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
29
|
vendor?: string | undefined;
|
|
29
|
-
title?: 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
36
|
vendor?: string | undefined;
|
|
36
|
-
title?: string | undefined;
|
|
37
37
|
persistentId?: string | undefined;
|
|
38
38
|
}>;
|
|
39
39
|
export declare const MCPClientSessionInfoSchema: z.ZodObject<{
|
|
@@ -50,20 +50,20 @@ 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
56
|
vendor?: string | undefined;
|
|
56
|
-
title?: string | undefined;
|
|
57
57
|
persistentId?: string | undefined;
|
|
58
58
|
protocolVersion?: string | undefined;
|
|
59
59
|
capabilities?: Record<string, unknown> | undefined;
|
|
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
66
|
vendor?: string | undefined;
|
|
66
|
-
title?: string | undefined;
|
|
67
67
|
persistentId?: string | undefined;
|
|
68
68
|
protocolVersion?: string | undefined;
|
|
69
69
|
capabilities?: Record<string, unknown> | undefined;
|
|
@@ -84,18 +84,18 @@ 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
90
|
vendor?: string | undefined;
|
|
90
|
-
title?: 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
98
|
vendor?: string | undefined;
|
|
98
|
-
title?: string | undefined;
|
|
99
99
|
persistentId?: string | undefined;
|
|
100
100
|
clientId?: string | undefined;
|
|
101
101
|
}>>;
|
|
@@ -108,10 +108,10 @@ export declare const HandshakeRequestSchema: z.ZodObject<{
|
|
|
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
114
|
vendor?: string | undefined;
|
|
114
|
-
title?: string | undefined;
|
|
115
115
|
persistentId?: string | undefined;
|
|
116
116
|
clientId?: string | undefined;
|
|
117
117
|
} | undefined;
|
|
@@ -124,10 +124,10 @@ export declare const HandshakeRequestSchema: z.ZodObject<{
|
|
|
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
130
|
vendor?: string | undefined;
|
|
130
|
-
title?: string | undefined;
|
|
131
131
|
persistentId?: string | undefined;
|
|
132
132
|
clientId?: string | undefined;
|
|
133
133
|
} | undefined;
|
|
@@ -160,20 +160,20 @@ 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
166
|
vendor?: string | undefined;
|
|
166
|
-
title?: string | undefined;
|
|
167
167
|
persistentId?: string | undefined;
|
|
168
168
|
protocolVersion?: string | undefined;
|
|
169
169
|
capabilities?: Record<string, unknown> | undefined;
|
|
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
176
|
vendor?: string | undefined;
|
|
176
|
-
title?: string | undefined;
|
|
177
177
|
persistentId?: string | undefined;
|
|
178
178
|
protocolVersion?: string | undefined;
|
|
179
179
|
capabilities?: Record<string, unknown> | undefined;
|
|
@@ -206,63 +206,63 @@ export declare const SessionContextSchema: z.ZodObject<{
|
|
|
206
206
|
}, "strip", z.ZodTypeAny, {
|
|
207
207
|
nonce: string;
|
|
208
208
|
audience: string;
|
|
209
|
+
timestamp: number;
|
|
209
210
|
sessionId: string;
|
|
210
211
|
createdAt: number;
|
|
211
|
-
timestamp: number;
|
|
212
212
|
lastActivity: number;
|
|
213
213
|
ttlMinutes: number;
|
|
214
214
|
identityState: "anonymous" | "authenticated";
|
|
215
|
-
clientDid?: string | undefined;
|
|
216
|
-
userDid?: string | undefined;
|
|
217
215
|
agentDid?: string | undefined;
|
|
218
|
-
oauthIdentity?: {
|
|
219
|
-
provider: string;
|
|
220
|
-
subject: string;
|
|
221
|
-
email?: string | undefined;
|
|
222
|
-
name?: string | undefined;
|
|
223
|
-
} | undefined;
|
|
224
216
|
clientInfo?: {
|
|
225
217
|
name: string;
|
|
226
218
|
clientId: string;
|
|
219
|
+
title?: string | undefined;
|
|
227
220
|
version?: string | undefined;
|
|
228
221
|
platform?: string | undefined;
|
|
229
222
|
vendor?: string | undefined;
|
|
230
|
-
title?: string | undefined;
|
|
231
223
|
persistentId?: string | undefined;
|
|
232
224
|
protocolVersion?: string | undefined;
|
|
233
225
|
capabilities?: Record<string, unknown> | undefined;
|
|
234
226
|
} | undefined;
|
|
235
227
|
serverDid?: string | undefined;
|
|
236
|
-
}, {
|
|
237
|
-
nonce: string;
|
|
238
|
-
audience: string;
|
|
239
|
-
sessionId: string;
|
|
240
|
-
createdAt: number;
|
|
241
|
-
timestamp: number;
|
|
242
|
-
lastActivity: number;
|
|
243
228
|
clientDid?: string | undefined;
|
|
244
229
|
userDid?: string | undefined;
|
|
245
|
-
agentDid?: string | undefined;
|
|
246
230
|
oauthIdentity?: {
|
|
247
231
|
provider: string;
|
|
248
232
|
subject: string;
|
|
249
233
|
email?: string | undefined;
|
|
250
234
|
name?: string | undefined;
|
|
251
235
|
} | undefined;
|
|
236
|
+
}, {
|
|
237
|
+
nonce: string;
|
|
238
|
+
audience: string;
|
|
239
|
+
timestamp: number;
|
|
240
|
+
sessionId: string;
|
|
241
|
+
createdAt: number;
|
|
242
|
+
lastActivity: number;
|
|
243
|
+
agentDid?: string | undefined;
|
|
252
244
|
clientInfo?: {
|
|
253
245
|
name: string;
|
|
254
246
|
clientId: string;
|
|
247
|
+
title?: string | undefined;
|
|
255
248
|
version?: string | undefined;
|
|
256
249
|
platform?: string | undefined;
|
|
257
250
|
vendor?: string | undefined;
|
|
258
|
-
title?: string | undefined;
|
|
259
251
|
persistentId?: string | undefined;
|
|
260
252
|
protocolVersion?: string | undefined;
|
|
261
253
|
capabilities?: Record<string, unknown> | undefined;
|
|
262
254
|
} | undefined;
|
|
263
255
|
ttlMinutes?: number | undefined;
|
|
264
256
|
serverDid?: string | undefined;
|
|
257
|
+
clientDid?: string | undefined;
|
|
258
|
+
userDid?: string | undefined;
|
|
265
259
|
identityState?: "anonymous" | "authenticated" | undefined;
|
|
260
|
+
oauthIdentity?: {
|
|
261
|
+
provider: string;
|
|
262
|
+
subject: string;
|
|
263
|
+
email?: string | undefined;
|
|
264
|
+
name?: string | undefined;
|
|
265
|
+
} | undefined;
|
|
266
266
|
}>;
|
|
267
267
|
export declare const NonceCacheEntrySchema: z.ZodObject<{
|
|
268
268
|
sessionId: z.ZodString;
|
|
@@ -86,10 +86,10 @@ export declare const ProofDetailsSchema: z.ZodObject<{
|
|
|
86
86
|
}>>;
|
|
87
87
|
}, "strip", z.ZodTypeAny, {
|
|
88
88
|
did: string;
|
|
89
|
+
sessionId: string;
|
|
89
90
|
nonce: string;
|
|
90
91
|
audience: string;
|
|
91
92
|
timestamp: number;
|
|
92
|
-
sessionId: string;
|
|
93
93
|
signature: string;
|
|
94
94
|
algorithm: "Ed25519" | "ES256";
|
|
95
95
|
request?: {
|
|
@@ -104,10 +104,10 @@ export declare const ProofDetailsSchema: z.ZodObject<{
|
|
|
104
104
|
} | undefined;
|
|
105
105
|
}, {
|
|
106
106
|
did: string;
|
|
107
|
+
sessionId: string;
|
|
107
108
|
nonce: string;
|
|
108
109
|
audience: string;
|
|
109
110
|
timestamp: number;
|
|
110
|
-
sessionId: string;
|
|
111
111
|
signature: string;
|
|
112
112
|
algorithm: "Ed25519" | "ES256";
|
|
113
113
|
request?: {
|
|
@@ -230,10 +230,10 @@ export declare const ProofRecordSchema: z.ZodObject<{
|
|
|
230
230
|
}>>;
|
|
231
231
|
}, "strip", z.ZodTypeAny, {
|
|
232
232
|
did: string;
|
|
233
|
+
sessionId: string;
|
|
233
234
|
nonce: string;
|
|
234
235
|
audience: string;
|
|
235
236
|
timestamp: number;
|
|
236
|
-
sessionId: string;
|
|
237
237
|
signature: string;
|
|
238
238
|
algorithm: "Ed25519" | "ES256";
|
|
239
239
|
request?: {
|
|
@@ -248,10 +248,10 @@ export declare const ProofRecordSchema: z.ZodObject<{
|
|
|
248
248
|
} | undefined;
|
|
249
249
|
}, {
|
|
250
250
|
did: string;
|
|
251
|
+
sessionId: string;
|
|
251
252
|
nonce: string;
|
|
252
253
|
audience: string;
|
|
253
254
|
timestamp: number;
|
|
254
|
-
sessionId: string;
|
|
255
255
|
signature: string;
|
|
256
256
|
algorithm: "Ed25519" | "ES256";
|
|
257
257
|
request?: {
|
|
@@ -355,10 +355,10 @@ export declare const ProofRecordSchema: z.ZodObject<{
|
|
|
355
355
|
}>>;
|
|
356
356
|
}, "strip", z.ZodTypeAny, {
|
|
357
357
|
did: string;
|
|
358
|
+
sessionId: string;
|
|
358
359
|
nonce: string;
|
|
359
360
|
audience: string;
|
|
360
361
|
timestamp: number;
|
|
361
|
-
sessionId: string;
|
|
362
362
|
signature: string;
|
|
363
363
|
algorithm: "Ed25519" | "ES256";
|
|
364
364
|
request?: {
|
|
@@ -373,10 +373,10 @@ export declare const ProofRecordSchema: z.ZodObject<{
|
|
|
373
373
|
} | undefined;
|
|
374
374
|
}, {
|
|
375
375
|
did: string;
|
|
376
|
+
sessionId: string;
|
|
376
377
|
nonce: string;
|
|
377
378
|
audience: string;
|
|
378
379
|
timestamp: number;
|
|
379
|
-
sessionId: string;
|
|
380
380
|
signature: string;
|
|
381
381
|
algorithm: "Ed25519" | "ES256";
|
|
382
382
|
request?: {
|
|
@@ -480,10 +480,10 @@ export declare const ProofRecordSchema: z.ZodObject<{
|
|
|
480
480
|
}>>;
|
|
481
481
|
}, "strip", z.ZodTypeAny, {
|
|
482
482
|
did: string;
|
|
483
|
+
sessionId: string;
|
|
483
484
|
nonce: string;
|
|
484
485
|
audience: string;
|
|
485
486
|
timestamp: number;
|
|
486
|
-
sessionId: string;
|
|
487
487
|
signature: string;
|
|
488
488
|
algorithm: "Ed25519" | "ES256";
|
|
489
489
|
request?: {
|
|
@@ -498,10 +498,10 @@ export declare const ProofRecordSchema: z.ZodObject<{
|
|
|
498
498
|
} | undefined;
|
|
499
499
|
}, {
|
|
500
500
|
did: string;
|
|
501
|
+
sessionId: string;
|
|
501
502
|
nonce: string;
|
|
502
503
|
audience: string;
|
|
503
504
|
timestamp: number;
|
|
504
|
-
sessionId: string;
|
|
505
505
|
signature: string;
|
|
506
506
|
algorithm: "Ed25519" | "ES256";
|
|
507
507
|
request?: {
|
|
@@ -616,10 +616,10 @@ export declare function validateProofRecord(record: unknown): z.SafeParseReturnT
|
|
|
616
616
|
}>>;
|
|
617
617
|
}, "strip", z.ZodTypeAny, {
|
|
618
618
|
did: string;
|
|
619
|
+
sessionId: string;
|
|
619
620
|
nonce: string;
|
|
620
621
|
audience: string;
|
|
621
622
|
timestamp: number;
|
|
622
|
-
sessionId: string;
|
|
623
623
|
signature: string;
|
|
624
624
|
algorithm: "Ed25519" | "ES256";
|
|
625
625
|
request?: {
|
|
@@ -634,10 +634,10 @@ export declare function validateProofRecord(record: unknown): z.SafeParseReturnT
|
|
|
634
634
|
} | undefined;
|
|
635
635
|
}, {
|
|
636
636
|
did: string;
|
|
637
|
+
sessionId: string;
|
|
637
638
|
nonce: string;
|
|
638
639
|
audience: string;
|
|
639
640
|
timestamp: number;
|
|
640
|
-
sessionId: string;
|
|
641
641
|
signature: string;
|
|
642
642
|
algorithm: "Ed25519" | "ES256";
|
|
643
643
|
request?: {
|
|
@@ -741,10 +741,10 @@ export declare function validateProofRecord(record: unknown): z.SafeParseReturnT
|
|
|
741
741
|
}>>;
|
|
742
742
|
}, "strip", z.ZodTypeAny, {
|
|
743
743
|
did: string;
|
|
744
|
+
sessionId: string;
|
|
744
745
|
nonce: string;
|
|
745
746
|
audience: string;
|
|
746
747
|
timestamp: number;
|
|
747
|
-
sessionId: string;
|
|
748
748
|
signature: string;
|
|
749
749
|
algorithm: "Ed25519" | "ES256";
|
|
750
750
|
request?: {
|
|
@@ -759,10 +759,10 @@ export declare function validateProofRecord(record: unknown): z.SafeParseReturnT
|
|
|
759
759
|
} | undefined;
|
|
760
760
|
}, {
|
|
761
761
|
did: string;
|
|
762
|
+
sessionId: string;
|
|
762
763
|
nonce: string;
|
|
763
764
|
audience: string;
|
|
764
765
|
timestamp: number;
|
|
765
|
-
sessionId: string;
|
|
766
766
|
signature: string;
|
|
767
767
|
algorithm: "Ed25519" | "ES256";
|
|
768
768
|
request?: {
|
|
@@ -28,18 +28,18 @@ export declare const CanonicalRequestPartsSchema: z.ZodObject<{
|
|
|
28
28
|
/** Audience (e.g., 'mcp-client') */
|
|
29
29
|
audience: z.ZodString;
|
|
30
30
|
}, "strip", z.ZodTypeAny, {
|
|
31
|
+
url: string;
|
|
31
32
|
nonce: string;
|
|
32
33
|
audience: string;
|
|
33
34
|
timestamp: number;
|
|
34
|
-
url: string;
|
|
35
35
|
method: string;
|
|
36
36
|
bodyHash?: string | undefined;
|
|
37
37
|
headersHash?: string | undefined;
|
|
38
38
|
}, {
|
|
39
|
+
url: string;
|
|
39
40
|
nonce: string;
|
|
40
41
|
audience: string;
|
|
41
42
|
timestamp: number;
|
|
42
|
-
url: string;
|
|
43
43
|
method: string;
|
|
44
44
|
bodyHash?: string | undefined;
|
|
45
45
|
headersHash?: string | undefined;
|
|
@@ -88,18 +88,18 @@ export type SigningOrderField = (typeof SIGNING_ORDER)[number];
|
|
|
88
88
|
* @returns Validation result
|
|
89
89
|
*/
|
|
90
90
|
export declare function validateCanonicalRequestParts(parts: unknown): z.SafeParseReturnType<{
|
|
91
|
+
url: string;
|
|
91
92
|
nonce: string;
|
|
92
93
|
audience: string;
|
|
93
94
|
timestamp: number;
|
|
94
|
-
url: string;
|
|
95
95
|
method: string;
|
|
96
96
|
bodyHash?: string | undefined;
|
|
97
97
|
headersHash?: string | undefined;
|
|
98
98
|
}, {
|
|
99
|
+
url: string;
|
|
99
100
|
nonce: string;
|
|
100
101
|
audience: string;
|
|
101
102
|
timestamp: number;
|
|
102
|
-
url: string;
|
|
103
103
|
method: string;
|
|
104
104
|
bodyHash?: string | undefined;
|
|
105
105
|
headersHash?: string | undefined;
|