@kya-os/contracts 1.7.13 → 1.7.15
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 +83 -83
- package/dist/agentshield-api/schemas.js +2 -1
- package/dist/agentshield-api/types.d.ts +1 -1
- package/dist/audit/index.d.ts +21 -21
- package/dist/cli.d.ts +5 -5
- package/dist/consent/schemas.d.ts +28 -28
- package/dist/dashboard-config/schemas.d.ts +3106 -2582
- package/dist/delegation/schemas.d.ts +24 -24
- package/dist/deploy/schemas.d.ts +2 -2
- package/dist/handshake.d.ts +26 -26
- 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 +132 -37
- package/dist/tool-protection/index.js +42 -7
- 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
|
-
createdAt?: number | undefined;
|
|
4614
4613
|
metadata?: Record<string, any> | undefined;
|
|
4614
|
+
createdAt?: number | 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
|
-
createdAt?: number | undefined;
|
|
4674
4673
|
metadata?: Record<string, any> | undefined;
|
|
4674
|
+
createdAt?: number | 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
|
-
createdAt?: number | undefined;
|
|
4736
4735
|
metadata?: Record<string, any> | undefined;
|
|
4736
|
+
createdAt?: number | 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
|
-
createdAt?: number | undefined;
|
|
4799
4798
|
metadata?: Record<string, any> | undefined;
|
|
4799
|
+
createdAt?: number | 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
|
-
createdAt?: number | undefined;
|
|
5319
5318
|
metadata?: Record<string, any> | undefined;
|
|
5319
|
+
createdAt?: number | 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
|
-
createdAt?: number | undefined;
|
|
5379
5378
|
metadata?: Record<string, any> | undefined;
|
|
5379
|
+
createdAt?: number | 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
|
-
createdAt?: number | undefined;
|
|
5441
5440
|
metadata?: Record<string, any> | undefined;
|
|
5441
|
+
createdAt?: number | 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
|
-
createdAt?: number | undefined;
|
|
5504
5503
|
metadata?: Record<string, any> | undefined;
|
|
5504
|
+
createdAt?: number | 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
|
-
createdAt?: number | undefined;
|
|
6035
6034
|
metadata?: Record<string, any> | undefined;
|
|
6035
|
+
createdAt?: number | 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
|
-
createdAt?: number | undefined;
|
|
6095
6094
|
metadata?: Record<string, any> | undefined;
|
|
6095
|
+
createdAt?: number | 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
|
-
createdAt?: number | undefined;
|
|
6157
6156
|
metadata?: Record<string, any> | undefined;
|
|
6157
|
+
createdAt?: number | 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
|
-
createdAt?: number | undefined;
|
|
6220
6219
|
metadata?: Record<string, any> | undefined;
|
|
6220
|
+
createdAt?: number | 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
|
-
createdAt?: number | undefined;
|
|
6751
6750
|
metadata?: Record<string, any> | undefined;
|
|
6751
|
+
createdAt?: number | 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
|
-
createdAt?: number | undefined;
|
|
6811
6810
|
metadata?: Record<string, any> | undefined;
|
|
6811
|
+
createdAt?: number | 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
|
-
createdAt?: number | undefined;
|
|
6873
6872
|
metadata?: Record<string, any> | undefined;
|
|
6873
|
+
createdAt?: number | 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
|
-
createdAt?: number | undefined;
|
|
6936
6935
|
metadata?: Record<string, any> | undefined;
|
|
6936
|
+
createdAt?: number | 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
|
-
createdAt?: number | undefined;
|
|
7475
7474
|
metadata?: Record<string, any> | undefined;
|
|
7475
|
+
createdAt?: number | 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
|
-
createdAt?: number | undefined;
|
|
7535
7534
|
metadata?: Record<string, any> | undefined;
|
|
7535
|
+
createdAt?: number | 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
|
-
createdAt?: number | undefined;
|
|
7597
7596
|
metadata?: Record<string, any> | undefined;
|
|
7597
|
+
createdAt?: number | 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
|
-
createdAt?: number | undefined;
|
|
7660
7659
|
metadata?: Record<string, any> | undefined;
|
|
7660
|
+
createdAt?: number | 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
|
-
createdAt?: number | undefined;
|
|
8191
8190
|
metadata?: Record<string, any> | undefined;
|
|
8191
|
+
createdAt?: number | 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
|
-
createdAt?: number | undefined;
|
|
8251
8250
|
metadata?: Record<string, any> | undefined;
|
|
8251
|
+
createdAt?: number | 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
|
-
createdAt?: number | undefined;
|
|
8313
8312
|
metadata?: Record<string, any> | undefined;
|
|
8313
|
+
createdAt?: number | 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
|
-
createdAt?: number | undefined;
|
|
8376
8375
|
metadata?: Record<string, any> | undefined;
|
|
8376
|
+
createdAt?: number | 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;
|
|
899
900
|
identity?: {
|
|
900
901
|
did: string;
|
|
901
902
|
publicKey: string;
|
|
902
903
|
privateKey: string;
|
|
903
904
|
} | 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;
|
|
912
913
|
identity?: {
|
|
913
914
|
did: string;
|
|
914
915
|
publicKey: string;
|
|
915
916
|
privateKey: string;
|
|
916
917
|
} | undefined;
|
|
917
|
-
warnings?: string[] | undefined;
|
|
918
918
|
}>;
|
|
919
919
|
/**
|
|
920
920
|
* Deploy step status schema
|
package/dist/handshake.d.ts
CHANGED
|
@@ -23,15 +23,15 @@ 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;
|
|
27
26
|
version?: string | undefined;
|
|
27
|
+
title?: string | undefined;
|
|
28
28
|
platform?: string | undefined;
|
|
29
29
|
vendor?: string | undefined;
|
|
30
30
|
persistentId?: string | undefined;
|
|
31
31
|
}, {
|
|
32
32
|
name: string;
|
|
33
|
-
title?: string | undefined;
|
|
34
33
|
version?: string | undefined;
|
|
34
|
+
title?: string | undefined;
|
|
35
35
|
platform?: string | undefined;
|
|
36
36
|
vendor?: string | undefined;
|
|
37
37
|
persistentId?: string | undefined;
|
|
@@ -48,20 +48,20 @@ export declare const MCPClientSessionInfoSchema: z.ZodObject<{
|
|
|
48
48
|
protocolVersion: z.ZodOptional<z.ZodString>;
|
|
49
49
|
capabilities: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
50
50
|
}, "strip", z.ZodTypeAny, {
|
|
51
|
-
name: string;
|
|
52
51
|
clientId: string;
|
|
53
|
-
|
|
52
|
+
name: string;
|
|
54
53
|
version?: string | undefined;
|
|
54
|
+
title?: string | undefined;
|
|
55
55
|
platform?: string | undefined;
|
|
56
56
|
vendor?: string | undefined;
|
|
57
57
|
persistentId?: string | undefined;
|
|
58
58
|
protocolVersion?: string | undefined;
|
|
59
59
|
capabilities?: Record<string, unknown> | undefined;
|
|
60
60
|
}, {
|
|
61
|
-
name: string;
|
|
62
61
|
clientId: string;
|
|
63
|
-
|
|
62
|
+
name: string;
|
|
64
63
|
version?: string | undefined;
|
|
64
|
+
title?: string | undefined;
|
|
65
65
|
platform?: string | undefined;
|
|
66
66
|
vendor?: string | undefined;
|
|
67
67
|
persistentId?: string | undefined;
|
|
@@ -84,20 +84,20 @@ export declare const HandshakeRequestSchema: z.ZodObject<{
|
|
|
84
84
|
clientId: z.ZodOptional<z.ZodString>;
|
|
85
85
|
}, "strip", z.ZodTypeAny, {
|
|
86
86
|
name: string;
|
|
87
|
-
|
|
87
|
+
clientId?: string | undefined;
|
|
88
88
|
version?: string | undefined;
|
|
89
|
+
title?: string | undefined;
|
|
89
90
|
platform?: string | undefined;
|
|
90
91
|
vendor?: string | undefined;
|
|
91
92
|
persistentId?: string | undefined;
|
|
92
|
-
clientId?: string | undefined;
|
|
93
93
|
}, {
|
|
94
94
|
name: string;
|
|
95
|
-
|
|
95
|
+
clientId?: string | undefined;
|
|
96
96
|
version?: string | undefined;
|
|
97
|
+
title?: string | undefined;
|
|
97
98
|
platform?: string | undefined;
|
|
98
99
|
vendor?: string | undefined;
|
|
99
100
|
persistentId?: string | undefined;
|
|
100
|
-
clientId?: string | undefined;
|
|
101
101
|
}>>;
|
|
102
102
|
clientProtocolVersion: z.ZodOptional<z.ZodString>;
|
|
103
103
|
clientCapabilities: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -108,12 +108,12 @@ export declare const HandshakeRequestSchema: z.ZodObject<{
|
|
|
108
108
|
agentDid?: string | undefined;
|
|
109
109
|
clientInfo?: {
|
|
110
110
|
name: string;
|
|
111
|
-
|
|
111
|
+
clientId?: string | undefined;
|
|
112
112
|
version?: string | undefined;
|
|
113
|
+
title?: string | undefined;
|
|
113
114
|
platform?: string | undefined;
|
|
114
115
|
vendor?: string | undefined;
|
|
115
116
|
persistentId?: string | undefined;
|
|
116
|
-
clientId?: string | undefined;
|
|
117
117
|
} | undefined;
|
|
118
118
|
clientProtocolVersion?: string | undefined;
|
|
119
119
|
clientCapabilities?: Record<string, unknown> | undefined;
|
|
@@ -124,12 +124,12 @@ export declare const HandshakeRequestSchema: z.ZodObject<{
|
|
|
124
124
|
agentDid?: string | undefined;
|
|
125
125
|
clientInfo?: {
|
|
126
126
|
name: string;
|
|
127
|
-
|
|
127
|
+
clientId?: string | undefined;
|
|
128
128
|
version?: string | undefined;
|
|
129
|
+
title?: string | undefined;
|
|
129
130
|
platform?: string | undefined;
|
|
130
131
|
vendor?: string | undefined;
|
|
131
132
|
persistentId?: string | undefined;
|
|
132
|
-
clientId?: string | undefined;
|
|
133
133
|
} | undefined;
|
|
134
134
|
clientProtocolVersion?: string | undefined;
|
|
135
135
|
clientCapabilities?: Record<string, unknown> | undefined;
|
|
@@ -158,20 +158,20 @@ export declare const SessionContextSchema: z.ZodObject<{
|
|
|
158
158
|
protocolVersion: z.ZodOptional<z.ZodString>;
|
|
159
159
|
capabilities: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
160
160
|
}, "strip", z.ZodTypeAny, {
|
|
161
|
-
name: string;
|
|
162
161
|
clientId: string;
|
|
163
|
-
|
|
162
|
+
name: string;
|
|
164
163
|
version?: string | undefined;
|
|
164
|
+
title?: string | undefined;
|
|
165
165
|
platform?: string | undefined;
|
|
166
166
|
vendor?: string | undefined;
|
|
167
167
|
persistentId?: string | undefined;
|
|
168
168
|
protocolVersion?: string | undefined;
|
|
169
169
|
capabilities?: Record<string, unknown> | undefined;
|
|
170
170
|
}, {
|
|
171
|
-
name: string;
|
|
172
171
|
clientId: string;
|
|
173
|
-
|
|
172
|
+
name: string;
|
|
174
173
|
version?: string | undefined;
|
|
174
|
+
title?: string | undefined;
|
|
175
175
|
platform?: string | undefined;
|
|
176
176
|
vendor?: string | undefined;
|
|
177
177
|
persistentId?: string | undefined;
|
|
@@ -204,20 +204,20 @@ export declare const SessionContextSchema: z.ZodObject<{
|
|
|
204
204
|
name?: string | undefined;
|
|
205
205
|
}>>;
|
|
206
206
|
}, "strip", z.ZodTypeAny, {
|
|
207
|
+
createdAt: number;
|
|
207
208
|
nonce: string;
|
|
208
209
|
audience: string;
|
|
209
210
|
timestamp: number;
|
|
210
211
|
sessionId: string;
|
|
211
|
-
createdAt: number;
|
|
212
212
|
lastActivity: number;
|
|
213
213
|
ttlMinutes: number;
|
|
214
|
-
identityState: "
|
|
214
|
+
identityState: "authenticated" | "anonymous";
|
|
215
215
|
agentDid?: string | undefined;
|
|
216
216
|
clientInfo?: {
|
|
217
|
-
name: string;
|
|
218
217
|
clientId: string;
|
|
219
|
-
|
|
218
|
+
name: string;
|
|
220
219
|
version?: string | undefined;
|
|
220
|
+
title?: string | undefined;
|
|
221
221
|
platform?: string | undefined;
|
|
222
222
|
vendor?: string | undefined;
|
|
223
223
|
persistentId?: string | undefined;
|
|
@@ -234,18 +234,18 @@ export declare const SessionContextSchema: z.ZodObject<{
|
|
|
234
234
|
name?: string | undefined;
|
|
235
235
|
} | undefined;
|
|
236
236
|
}, {
|
|
237
|
+
createdAt: number;
|
|
237
238
|
nonce: string;
|
|
238
239
|
audience: string;
|
|
239
240
|
timestamp: number;
|
|
240
241
|
sessionId: string;
|
|
241
|
-
createdAt: number;
|
|
242
242
|
lastActivity: number;
|
|
243
243
|
agentDid?: string | undefined;
|
|
244
244
|
clientInfo?: {
|
|
245
|
-
name: string;
|
|
246
245
|
clientId: string;
|
|
247
|
-
|
|
246
|
+
name: string;
|
|
248
247
|
version?: string | undefined;
|
|
248
|
+
title?: string | undefined;
|
|
249
249
|
platform?: string | undefined;
|
|
250
250
|
vendor?: string | undefined;
|
|
251
251
|
persistentId?: string | undefined;
|
|
@@ -256,7 +256,7 @@ export declare const SessionContextSchema: z.ZodObject<{
|
|
|
256
256
|
serverDid?: string | undefined;
|
|
257
257
|
clientDid?: string | undefined;
|
|
258
258
|
userDid?: string | undefined;
|
|
259
|
-
identityState?: "
|
|
259
|
+
identityState?: "authenticated" | "anonymous" | undefined;
|
|
260
260
|
oauthIdentity?: {
|
|
261
261
|
provider: string;
|
|
262
262
|
subject: string;
|
|
@@ -86,10 +86,10 @@ export declare const ProofDetailsSchema: z.ZodObject<{
|
|
|
86
86
|
}>>;
|
|
87
87
|
}, "strip", z.ZodTypeAny, {
|
|
88
88
|
did: string;
|
|
89
|
-
sessionId: string;
|
|
90
89
|
nonce: string;
|
|
91
90
|
audience: string;
|
|
92
91
|
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;
|
|
108
107
|
nonce: string;
|
|
109
108
|
audience: string;
|
|
110
109
|
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;
|
|
234
233
|
nonce: string;
|
|
235
234
|
audience: string;
|
|
236
235
|
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;
|
|
252
251
|
nonce: string;
|
|
253
252
|
audience: string;
|
|
254
253
|
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;
|
|
359
358
|
nonce: string;
|
|
360
359
|
audience: string;
|
|
361
360
|
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;
|
|
377
376
|
nonce: string;
|
|
378
377
|
audience: string;
|
|
379
378
|
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;
|
|
484
483
|
nonce: string;
|
|
485
484
|
audience: string;
|
|
486
485
|
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;
|
|
502
501
|
nonce: string;
|
|
503
502
|
audience: string;
|
|
504
503
|
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;
|
|
620
619
|
nonce: string;
|
|
621
620
|
audience: string;
|
|
622
621
|
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;
|
|
638
637
|
nonce: string;
|
|
639
638
|
audience: string;
|
|
640
639
|
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;
|
|
745
744
|
nonce: string;
|
|
746
745
|
audience: string;
|
|
747
746
|
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;
|
|
763
762
|
nonce: string;
|
|
764
763
|
audience: string;
|
|
765
764
|
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;
|
|
32
31
|
nonce: string;
|
|
33
32
|
audience: string;
|
|
34
33
|
timestamp: number;
|
|
34
|
+
url: string;
|
|
35
35
|
method: string;
|
|
36
36
|
bodyHash?: string | undefined;
|
|
37
37
|
headersHash?: string | undefined;
|
|
38
38
|
}, {
|
|
39
|
-
url: string;
|
|
40
39
|
nonce: string;
|
|
41
40
|
audience: string;
|
|
42
41
|
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;
|
|
92
91
|
nonce: string;
|
|
93
92
|
audience: string;
|
|
94
93
|
timestamp: number;
|
|
94
|
+
url: string;
|
|
95
95
|
method: string;
|
|
96
96
|
bodyHash?: string | undefined;
|
|
97
97
|
headersHash?: string | undefined;
|
|
98
98
|
}, {
|
|
99
|
-
url: string;
|
|
100
99
|
nonce: string;
|
|
101
100
|
audience: string;
|
|
102
101
|
timestamp: number;
|
|
102
|
+
url: string;
|
|
103
103
|
method: string;
|
|
104
104
|
bodyHash?: string | undefined;
|
|
105
105
|
headersHash?: string | undefined;
|