@kya-os/contracts 1.7.26 → 1.7.32
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/agent-deployment-utils.d.ts +20 -0
- package/dist/agent-deployment-utils.js +37 -0
- package/dist/agent-deployment.d.ts +19 -19
- package/dist/agent-deployment.js +2 -1
- package/dist/agentshield-api/admin-schemas.d.ts +2 -2
- package/dist/agentshield-api/schemas.d.ts +462 -462
- package/dist/audit/index.d.ts +24 -24
- package/dist/cli.d.ts +44 -44
- package/dist/compute-binding.d.ts +6 -6
- package/dist/compute.d.ts +27 -8
- package/dist/compute.js +6 -0
- package/dist/config/identity.d.ts +98 -98
- package/dist/consent/schemas.d.ts +72 -72
- package/dist/dashboard-config/schemas.d.ts +2191 -2191
- package/dist/delegation/constraints.d.ts +32 -32
- package/dist/delegation/schemas.d.ts +610 -610
- package/dist/deploy/schemas.d.ts +84 -84
- package/dist/gateway/index.d.ts +579 -0
- package/dist/gateway/index.js +103 -0
- package/dist/handshake.d.ts +42 -42
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2 -0
- package/dist/molti/admin-ws.d.ts +116 -116
- package/dist/molti/schemas.d.ts +98 -98
- package/dist/openclaw/index.d.ts +20 -0
- package/dist/openclaw/index.js +28 -0
- package/dist/openclaw/types.d.ts +714 -0
- package/dist/openclaw/types.js +122 -0
- package/dist/pairing/index.d.ts +44 -0
- package/dist/pairing/index.js +11 -0
- package/dist/policy/schemas.d.ts +553 -553
- package/dist/proof/proof-record.d.ts +48 -48
- package/dist/proof/signing-spec.d.ts +8 -8
- package/dist/proof.d.ts +68 -68
- package/dist/registry.d.ts +24 -24
- package/dist/reputation/api.d.ts +156 -156
- package/dist/reputation/credentials.d.ts +48 -48
- package/dist/reputation/schemas.d.ts +48 -48
- package/dist/test.d.ts +22 -22
- package/dist/tlkrc/rotation.d.ts +12 -12
- package/dist/tool-protection/index.d.ts +22 -22
- package/dist/verifier.d.ts +17 -17
- package/dist/well-known/index.d.ts +72 -72
- package/package.json +10 -2
|
@@ -85,13 +85,13 @@ export declare const ProofDetailsSchema: z.ZodObject<{
|
|
|
85
85
|
bodyHash?: string | undefined;
|
|
86
86
|
}>>;
|
|
87
87
|
}, "strip", z.ZodTypeAny, {
|
|
88
|
-
timestamp: number;
|
|
89
88
|
did: string;
|
|
90
|
-
|
|
91
|
-
audience: string;
|
|
92
|
-
sessionId: string;
|
|
89
|
+
timestamp: number;
|
|
93
90
|
signature: string;
|
|
91
|
+
nonce: string;
|
|
94
92
|
algorithm: "Ed25519" | "ES256";
|
|
93
|
+
sessionId: string;
|
|
94
|
+
audience: string;
|
|
95
95
|
request?: {
|
|
96
96
|
url: string;
|
|
97
97
|
method: string;
|
|
@@ -103,13 +103,13 @@ export declare const ProofDetailsSchema: z.ZodObject<{
|
|
|
103
103
|
bodyHash?: string | undefined;
|
|
104
104
|
} | undefined;
|
|
105
105
|
}, {
|
|
106
|
-
timestamp: number;
|
|
107
106
|
did: string;
|
|
108
|
-
|
|
109
|
-
audience: string;
|
|
110
|
-
sessionId: string;
|
|
107
|
+
timestamp: number;
|
|
111
108
|
signature: string;
|
|
109
|
+
nonce: string;
|
|
112
110
|
algorithm: "Ed25519" | "ES256";
|
|
111
|
+
sessionId: string;
|
|
112
|
+
audience: string;
|
|
113
113
|
request?: {
|
|
114
114
|
url: string;
|
|
115
115
|
method: string;
|
|
@@ -229,13 +229,13 @@ export declare const ProofRecordSchema: z.ZodObject<{
|
|
|
229
229
|
bodyHash?: string | undefined;
|
|
230
230
|
}>>;
|
|
231
231
|
}, "strip", z.ZodTypeAny, {
|
|
232
|
-
timestamp: number;
|
|
233
232
|
did: string;
|
|
234
|
-
|
|
235
|
-
audience: string;
|
|
236
|
-
sessionId: string;
|
|
233
|
+
timestamp: number;
|
|
237
234
|
signature: string;
|
|
235
|
+
nonce: string;
|
|
238
236
|
algorithm: "Ed25519" | "ES256";
|
|
237
|
+
sessionId: string;
|
|
238
|
+
audience: string;
|
|
239
239
|
request?: {
|
|
240
240
|
url: string;
|
|
241
241
|
method: string;
|
|
@@ -247,13 +247,13 @@ export declare const ProofRecordSchema: z.ZodObject<{
|
|
|
247
247
|
bodyHash?: string | undefined;
|
|
248
248
|
} | undefined;
|
|
249
249
|
}, {
|
|
250
|
-
timestamp: number;
|
|
251
250
|
did: string;
|
|
252
|
-
|
|
253
|
-
audience: string;
|
|
254
|
-
sessionId: string;
|
|
251
|
+
timestamp: number;
|
|
255
252
|
signature: string;
|
|
253
|
+
nonce: string;
|
|
256
254
|
algorithm: "Ed25519" | "ES256";
|
|
255
|
+
sessionId: string;
|
|
256
|
+
audience: string;
|
|
257
257
|
request?: {
|
|
258
258
|
url: string;
|
|
259
259
|
method: string;
|
|
@@ -354,13 +354,13 @@ export declare const ProofRecordSchema: z.ZodObject<{
|
|
|
354
354
|
bodyHash?: string | undefined;
|
|
355
355
|
}>>;
|
|
356
356
|
}, "strip", z.ZodTypeAny, {
|
|
357
|
-
timestamp: number;
|
|
358
357
|
did: string;
|
|
359
|
-
|
|
360
|
-
audience: string;
|
|
361
|
-
sessionId: string;
|
|
358
|
+
timestamp: number;
|
|
362
359
|
signature: string;
|
|
360
|
+
nonce: string;
|
|
363
361
|
algorithm: "Ed25519" | "ES256";
|
|
362
|
+
sessionId: string;
|
|
363
|
+
audience: string;
|
|
364
364
|
request?: {
|
|
365
365
|
url: string;
|
|
366
366
|
method: string;
|
|
@@ -372,13 +372,13 @@ export declare const ProofRecordSchema: z.ZodObject<{
|
|
|
372
372
|
bodyHash?: string | undefined;
|
|
373
373
|
} | undefined;
|
|
374
374
|
}, {
|
|
375
|
-
timestamp: number;
|
|
376
375
|
did: string;
|
|
377
|
-
|
|
378
|
-
audience: string;
|
|
379
|
-
sessionId: string;
|
|
376
|
+
timestamp: number;
|
|
380
377
|
signature: string;
|
|
378
|
+
nonce: string;
|
|
381
379
|
algorithm: "Ed25519" | "ES256";
|
|
380
|
+
sessionId: string;
|
|
381
|
+
audience: string;
|
|
382
382
|
request?: {
|
|
383
383
|
url: string;
|
|
384
384
|
method: string;
|
|
@@ -479,13 +479,13 @@ export declare const ProofRecordSchema: z.ZodObject<{
|
|
|
479
479
|
bodyHash?: string | undefined;
|
|
480
480
|
}>>;
|
|
481
481
|
}, "strip", z.ZodTypeAny, {
|
|
482
|
-
timestamp: number;
|
|
483
482
|
did: string;
|
|
484
|
-
|
|
485
|
-
audience: string;
|
|
486
|
-
sessionId: string;
|
|
483
|
+
timestamp: number;
|
|
487
484
|
signature: string;
|
|
485
|
+
nonce: string;
|
|
488
486
|
algorithm: "Ed25519" | "ES256";
|
|
487
|
+
sessionId: string;
|
|
488
|
+
audience: string;
|
|
489
489
|
request?: {
|
|
490
490
|
url: string;
|
|
491
491
|
method: string;
|
|
@@ -497,13 +497,13 @@ export declare const ProofRecordSchema: z.ZodObject<{
|
|
|
497
497
|
bodyHash?: string | undefined;
|
|
498
498
|
} | undefined;
|
|
499
499
|
}, {
|
|
500
|
-
timestamp: number;
|
|
501
500
|
did: string;
|
|
502
|
-
|
|
503
|
-
audience: string;
|
|
504
|
-
sessionId: string;
|
|
501
|
+
timestamp: number;
|
|
505
502
|
signature: string;
|
|
503
|
+
nonce: string;
|
|
506
504
|
algorithm: "Ed25519" | "ES256";
|
|
505
|
+
sessionId: string;
|
|
506
|
+
audience: string;
|
|
507
507
|
request?: {
|
|
508
508
|
url: string;
|
|
509
509
|
method: string;
|
|
@@ -615,13 +615,13 @@ export declare function validateProofRecord(record: unknown): z.SafeParseReturnT
|
|
|
615
615
|
bodyHash?: string | undefined;
|
|
616
616
|
}>>;
|
|
617
617
|
}, "strip", z.ZodTypeAny, {
|
|
618
|
-
timestamp: number;
|
|
619
618
|
did: string;
|
|
620
|
-
|
|
621
|
-
audience: string;
|
|
622
|
-
sessionId: string;
|
|
619
|
+
timestamp: number;
|
|
623
620
|
signature: string;
|
|
621
|
+
nonce: string;
|
|
624
622
|
algorithm: "Ed25519" | "ES256";
|
|
623
|
+
sessionId: string;
|
|
624
|
+
audience: string;
|
|
625
625
|
request?: {
|
|
626
626
|
url: string;
|
|
627
627
|
method: string;
|
|
@@ -633,13 +633,13 @@ export declare function validateProofRecord(record: unknown): z.SafeParseReturnT
|
|
|
633
633
|
bodyHash?: string | undefined;
|
|
634
634
|
} | undefined;
|
|
635
635
|
}, {
|
|
636
|
-
timestamp: number;
|
|
637
636
|
did: string;
|
|
638
|
-
|
|
639
|
-
audience: string;
|
|
640
|
-
sessionId: string;
|
|
637
|
+
timestamp: number;
|
|
641
638
|
signature: string;
|
|
639
|
+
nonce: string;
|
|
642
640
|
algorithm: "Ed25519" | "ES256";
|
|
641
|
+
sessionId: string;
|
|
642
|
+
audience: string;
|
|
643
643
|
request?: {
|
|
644
644
|
url: string;
|
|
645
645
|
method: string;
|
|
@@ -740,13 +740,13 @@ export declare function validateProofRecord(record: unknown): z.SafeParseReturnT
|
|
|
740
740
|
bodyHash?: string | undefined;
|
|
741
741
|
}>>;
|
|
742
742
|
}, "strip", z.ZodTypeAny, {
|
|
743
|
-
timestamp: number;
|
|
744
743
|
did: string;
|
|
745
|
-
|
|
746
|
-
audience: string;
|
|
747
|
-
sessionId: string;
|
|
744
|
+
timestamp: number;
|
|
748
745
|
signature: string;
|
|
746
|
+
nonce: string;
|
|
749
747
|
algorithm: "Ed25519" | "ES256";
|
|
748
|
+
sessionId: string;
|
|
749
|
+
audience: string;
|
|
750
750
|
request?: {
|
|
751
751
|
url: string;
|
|
752
752
|
method: string;
|
|
@@ -758,13 +758,13 @@ export declare function validateProofRecord(record: unknown): z.SafeParseReturnT
|
|
|
758
758
|
bodyHash?: string | undefined;
|
|
759
759
|
} | undefined;
|
|
760
760
|
}, {
|
|
761
|
-
timestamp: number;
|
|
762
761
|
did: string;
|
|
763
|
-
|
|
764
|
-
audience: string;
|
|
765
|
-
sessionId: string;
|
|
762
|
+
timestamp: number;
|
|
766
763
|
signature: string;
|
|
764
|
+
nonce: string;
|
|
767
765
|
algorithm: "Ed25519" | "ES256";
|
|
766
|
+
sessionId: string;
|
|
767
|
+
audience: string;
|
|
768
768
|
request?: {
|
|
769
769
|
url: string;
|
|
770
770
|
method: string;
|
|
@@ -29,18 +29,18 @@ export declare const CanonicalRequestPartsSchema: z.ZodObject<{
|
|
|
29
29
|
audience: z.ZodString;
|
|
30
30
|
}, "strip", z.ZodTypeAny, {
|
|
31
31
|
timestamp: number;
|
|
32
|
-
nonce: string;
|
|
33
|
-
audience: string;
|
|
34
32
|
url: string;
|
|
35
33
|
method: string;
|
|
34
|
+
nonce: string;
|
|
35
|
+
audience: string;
|
|
36
36
|
bodyHash?: string | undefined;
|
|
37
37
|
headersHash?: string | undefined;
|
|
38
38
|
}, {
|
|
39
39
|
timestamp: number;
|
|
40
|
-
nonce: string;
|
|
41
|
-
audience: string;
|
|
42
40
|
url: string;
|
|
43
41
|
method: string;
|
|
42
|
+
nonce: string;
|
|
43
|
+
audience: string;
|
|
44
44
|
bodyHash?: string | undefined;
|
|
45
45
|
headersHash?: string | undefined;
|
|
46
46
|
}>;
|
|
@@ -89,18 +89,18 @@ export type SigningOrderField = (typeof SIGNING_ORDER)[number];
|
|
|
89
89
|
*/
|
|
90
90
|
export declare function validateCanonicalRequestParts(parts: unknown): z.SafeParseReturnType<{
|
|
91
91
|
timestamp: number;
|
|
92
|
-
nonce: string;
|
|
93
|
-
audience: string;
|
|
94
92
|
url: string;
|
|
95
93
|
method: string;
|
|
94
|
+
nonce: string;
|
|
95
|
+
audience: string;
|
|
96
96
|
bodyHash?: string | undefined;
|
|
97
97
|
headersHash?: string | undefined;
|
|
98
98
|
}, {
|
|
99
99
|
timestamp: number;
|
|
100
|
-
nonce: string;
|
|
101
|
-
audience: string;
|
|
102
100
|
url: string;
|
|
103
101
|
method: string;
|
|
102
|
+
nonce: string;
|
|
103
|
+
audience: string;
|
|
104
104
|
bodyHash?: string | undefined;
|
|
105
105
|
headersHash?: string | undefined;
|
|
106
106
|
}>;
|
package/dist/proof.d.ts
CHANGED
|
@@ -23,28 +23,28 @@ export declare const ProofMetaSchema: z.ZodObject<{
|
|
|
23
23
|
clientDid: z.ZodOptional<z.ZodString>;
|
|
24
24
|
}, "strip", z.ZodTypeAny, {
|
|
25
25
|
did: string;
|
|
26
|
-
kid: string;
|
|
27
26
|
nonce: string;
|
|
28
|
-
audience: string;
|
|
29
27
|
sessionId: string;
|
|
28
|
+
audience: string;
|
|
29
|
+
kid: string;
|
|
30
30
|
ts: number;
|
|
31
31
|
requestHash: string;
|
|
32
32
|
responseHash: string;
|
|
33
|
-
clientDid?: string | undefined;
|
|
34
33
|
scopeId?: string | undefined;
|
|
35
34
|
delegationRef?: string | undefined;
|
|
35
|
+
clientDid?: string | undefined;
|
|
36
36
|
}, {
|
|
37
37
|
did: string;
|
|
38
|
-
kid: string;
|
|
39
38
|
nonce: string;
|
|
40
|
-
audience: string;
|
|
41
39
|
sessionId: string;
|
|
40
|
+
audience: string;
|
|
41
|
+
kid: string;
|
|
42
42
|
ts: number;
|
|
43
43
|
requestHash: string;
|
|
44
44
|
responseHash: string;
|
|
45
|
-
clientDid?: string | undefined;
|
|
46
45
|
scopeId?: string | undefined;
|
|
47
46
|
delegationRef?: string | undefined;
|
|
47
|
+
clientDid?: string | undefined;
|
|
48
48
|
}>;
|
|
49
49
|
export declare const DetachedProofSchema: z.ZodObject<{
|
|
50
50
|
jws: z.ZodString;
|
|
@@ -62,58 +62,58 @@ export declare const DetachedProofSchema: z.ZodObject<{
|
|
|
62
62
|
clientDid: z.ZodOptional<z.ZodString>;
|
|
63
63
|
}, "strip", z.ZodTypeAny, {
|
|
64
64
|
did: string;
|
|
65
|
-
kid: string;
|
|
66
65
|
nonce: string;
|
|
67
|
-
audience: string;
|
|
68
66
|
sessionId: string;
|
|
67
|
+
audience: string;
|
|
68
|
+
kid: string;
|
|
69
69
|
ts: number;
|
|
70
70
|
requestHash: string;
|
|
71
71
|
responseHash: string;
|
|
72
|
-
clientDid?: string | undefined;
|
|
73
72
|
scopeId?: string | undefined;
|
|
74
73
|
delegationRef?: string | undefined;
|
|
74
|
+
clientDid?: string | undefined;
|
|
75
75
|
}, {
|
|
76
76
|
did: string;
|
|
77
|
-
kid: string;
|
|
78
77
|
nonce: string;
|
|
79
|
-
audience: string;
|
|
80
78
|
sessionId: string;
|
|
79
|
+
audience: string;
|
|
80
|
+
kid: string;
|
|
81
81
|
ts: number;
|
|
82
82
|
requestHash: string;
|
|
83
83
|
responseHash: string;
|
|
84
|
-
clientDid?: string | undefined;
|
|
85
84
|
scopeId?: string | undefined;
|
|
86
85
|
delegationRef?: string | undefined;
|
|
86
|
+
clientDid?: string | undefined;
|
|
87
87
|
}>;
|
|
88
88
|
}, "strip", z.ZodTypeAny, {
|
|
89
89
|
jws: string;
|
|
90
90
|
meta: {
|
|
91
91
|
did: string;
|
|
92
|
-
kid: string;
|
|
93
92
|
nonce: string;
|
|
94
|
-
audience: string;
|
|
95
93
|
sessionId: string;
|
|
94
|
+
audience: string;
|
|
95
|
+
kid: string;
|
|
96
96
|
ts: number;
|
|
97
97
|
requestHash: string;
|
|
98
98
|
responseHash: string;
|
|
99
|
-
clientDid?: string | undefined;
|
|
100
99
|
scopeId?: string | undefined;
|
|
101
100
|
delegationRef?: string | undefined;
|
|
101
|
+
clientDid?: string | undefined;
|
|
102
102
|
};
|
|
103
103
|
}, {
|
|
104
104
|
jws: string;
|
|
105
105
|
meta: {
|
|
106
106
|
did: string;
|
|
107
|
-
kid: string;
|
|
108
107
|
nonce: string;
|
|
109
|
-
audience: string;
|
|
110
108
|
sessionId: string;
|
|
109
|
+
audience: string;
|
|
110
|
+
kid: string;
|
|
111
111
|
ts: number;
|
|
112
112
|
requestHash: string;
|
|
113
113
|
responseHash: string;
|
|
114
|
-
clientDid?: string | undefined;
|
|
115
114
|
scopeId?: string | undefined;
|
|
116
115
|
delegationRef?: string | undefined;
|
|
116
|
+
clientDid?: string | undefined;
|
|
117
117
|
};
|
|
118
118
|
}>;
|
|
119
119
|
export declare const CanonicalHashesSchema: z.ZodObject<{
|
|
@@ -140,25 +140,25 @@ export declare const AuditRecordSchema: z.ZodObject<{
|
|
|
140
140
|
}, "strip", z.ZodTypeAny, {
|
|
141
141
|
version: "audit.v1";
|
|
142
142
|
did: string;
|
|
143
|
-
|
|
143
|
+
scope: string;
|
|
144
144
|
audience: string;
|
|
145
|
+
kid: string;
|
|
145
146
|
ts: number;
|
|
146
147
|
session: string;
|
|
148
|
+
verified: "yes" | "no";
|
|
147
149
|
reqHash: string;
|
|
148
150
|
resHash: string;
|
|
149
|
-
verified: "yes" | "no";
|
|
150
|
-
scope: string;
|
|
151
151
|
}, {
|
|
152
152
|
version: "audit.v1";
|
|
153
153
|
did: string;
|
|
154
|
-
|
|
154
|
+
scope: string;
|
|
155
155
|
audience: string;
|
|
156
|
+
kid: string;
|
|
156
157
|
ts: number;
|
|
157
158
|
session: string;
|
|
159
|
+
verified: "yes" | "no";
|
|
158
160
|
reqHash: string;
|
|
159
161
|
resHash: string;
|
|
160
|
-
verified: "yes" | "no";
|
|
161
|
-
scope: string;
|
|
162
162
|
}>;
|
|
163
163
|
export type ProofMeta = z.infer<typeof ProofMetaSchema>;
|
|
164
164
|
export type DetachedProof = z.infer<typeof DetachedProofSchema>;
|
|
@@ -178,17 +178,17 @@ export declare const ToolCallContextSchema: z.ZodObject<{
|
|
|
178
178
|
scopeId: z.ZodString;
|
|
179
179
|
userId: z.ZodOptional<z.ZodString>;
|
|
180
180
|
}, "strip", z.ZodTypeAny, {
|
|
181
|
-
scopeId: string;
|
|
182
181
|
tool: string;
|
|
182
|
+
scopeId: string;
|
|
183
183
|
args: Record<string, unknown>;
|
|
184
|
-
userId?: string | undefined;
|
|
185
184
|
result?: unknown;
|
|
185
|
+
userId?: string | undefined;
|
|
186
186
|
}, {
|
|
187
|
-
scopeId: string;
|
|
188
187
|
tool: string;
|
|
188
|
+
scopeId: string;
|
|
189
189
|
args: Record<string, unknown>;
|
|
190
|
-
userId?: string | undefined;
|
|
191
190
|
result?: unknown;
|
|
191
|
+
userId?: string | undefined;
|
|
192
192
|
}>;
|
|
193
193
|
/**
|
|
194
194
|
* Proof submission context for AgentShield API
|
|
@@ -202,35 +202,35 @@ export declare const ProofSubmissionContextSchema: z.ZodObject<{
|
|
|
202
202
|
scopeId: z.ZodString;
|
|
203
203
|
userId: z.ZodOptional<z.ZodString>;
|
|
204
204
|
}, "strip", z.ZodTypeAny, {
|
|
205
|
-
scopeId: string;
|
|
206
205
|
tool: string;
|
|
206
|
+
scopeId: string;
|
|
207
207
|
args: Record<string, unknown>;
|
|
208
|
-
userId?: string | undefined;
|
|
209
208
|
result?: unknown;
|
|
209
|
+
userId?: string | undefined;
|
|
210
210
|
}, {
|
|
211
|
-
scopeId: string;
|
|
212
211
|
tool: string;
|
|
212
|
+
scopeId: string;
|
|
213
213
|
args: Record<string, unknown>;
|
|
214
|
-
userId?: string | undefined;
|
|
215
214
|
result?: unknown;
|
|
215
|
+
userId?: string | undefined;
|
|
216
216
|
}>, "many">;
|
|
217
217
|
mcpServerUrl: z.ZodOptional<z.ZodString>;
|
|
218
218
|
}, "strip", z.ZodTypeAny, {
|
|
219
219
|
toolCalls: {
|
|
220
|
-
scopeId: string;
|
|
221
220
|
tool: string;
|
|
221
|
+
scopeId: string;
|
|
222
222
|
args: Record<string, unknown>;
|
|
223
|
-
userId?: string | undefined;
|
|
224
223
|
result?: unknown;
|
|
224
|
+
userId?: string | undefined;
|
|
225
225
|
}[];
|
|
226
226
|
mcpServerUrl?: string | undefined;
|
|
227
227
|
}, {
|
|
228
228
|
toolCalls: {
|
|
229
|
-
scopeId: string;
|
|
230
229
|
tool: string;
|
|
230
|
+
scopeId: string;
|
|
231
231
|
args: Record<string, unknown>;
|
|
232
|
-
userId?: string | undefined;
|
|
233
232
|
result?: unknown;
|
|
233
|
+
userId?: string | undefined;
|
|
234
234
|
}[];
|
|
235
235
|
mcpServerUrl?: string | undefined;
|
|
236
236
|
}>;
|
|
@@ -256,58 +256,58 @@ export declare const ProofSubmissionRequestSchema: z.ZodObject<{
|
|
|
256
256
|
clientDid: z.ZodOptional<z.ZodString>;
|
|
257
257
|
}, "strip", z.ZodTypeAny, {
|
|
258
258
|
did: string;
|
|
259
|
-
kid: string;
|
|
260
259
|
nonce: string;
|
|
261
|
-
audience: string;
|
|
262
260
|
sessionId: string;
|
|
261
|
+
audience: string;
|
|
262
|
+
kid: string;
|
|
263
263
|
ts: number;
|
|
264
264
|
requestHash: string;
|
|
265
265
|
responseHash: string;
|
|
266
|
-
clientDid?: string | undefined;
|
|
267
266
|
scopeId?: string | undefined;
|
|
268
267
|
delegationRef?: string | undefined;
|
|
268
|
+
clientDid?: string | undefined;
|
|
269
269
|
}, {
|
|
270
270
|
did: string;
|
|
271
|
-
kid: string;
|
|
272
271
|
nonce: string;
|
|
273
|
-
audience: string;
|
|
274
272
|
sessionId: string;
|
|
273
|
+
audience: string;
|
|
274
|
+
kid: string;
|
|
275
275
|
ts: number;
|
|
276
276
|
requestHash: string;
|
|
277
277
|
responseHash: string;
|
|
278
|
-
clientDid?: string | undefined;
|
|
279
278
|
scopeId?: string | undefined;
|
|
280
279
|
delegationRef?: string | undefined;
|
|
280
|
+
clientDid?: string | undefined;
|
|
281
281
|
}>;
|
|
282
282
|
}, "strip", z.ZodTypeAny, {
|
|
283
283
|
jws: string;
|
|
284
284
|
meta: {
|
|
285
285
|
did: string;
|
|
286
|
-
kid: string;
|
|
287
286
|
nonce: string;
|
|
288
|
-
audience: string;
|
|
289
287
|
sessionId: string;
|
|
288
|
+
audience: string;
|
|
289
|
+
kid: string;
|
|
290
290
|
ts: number;
|
|
291
291
|
requestHash: string;
|
|
292
292
|
responseHash: string;
|
|
293
|
-
clientDid?: string | undefined;
|
|
294
293
|
scopeId?: string | undefined;
|
|
295
294
|
delegationRef?: string | undefined;
|
|
295
|
+
clientDid?: string | undefined;
|
|
296
296
|
};
|
|
297
297
|
}, {
|
|
298
298
|
jws: string;
|
|
299
299
|
meta: {
|
|
300
300
|
did: string;
|
|
301
|
-
kid: string;
|
|
302
301
|
nonce: string;
|
|
303
|
-
audience: string;
|
|
304
302
|
sessionId: string;
|
|
303
|
+
audience: string;
|
|
304
|
+
kid: string;
|
|
305
305
|
ts: number;
|
|
306
306
|
requestHash: string;
|
|
307
307
|
responseHash: string;
|
|
308
|
-
clientDid?: string | undefined;
|
|
309
308
|
scopeId?: string | undefined;
|
|
310
309
|
delegationRef?: string | undefined;
|
|
310
|
+
clientDid?: string | undefined;
|
|
311
311
|
};
|
|
312
312
|
}>, "many">;
|
|
313
313
|
context: z.ZodOptional<z.ZodObject<{
|
|
@@ -318,35 +318,35 @@ export declare const ProofSubmissionRequestSchema: z.ZodObject<{
|
|
|
318
318
|
scopeId: z.ZodString;
|
|
319
319
|
userId: z.ZodOptional<z.ZodString>;
|
|
320
320
|
}, "strip", z.ZodTypeAny, {
|
|
321
|
-
scopeId: string;
|
|
322
321
|
tool: string;
|
|
322
|
+
scopeId: string;
|
|
323
323
|
args: Record<string, unknown>;
|
|
324
|
-
userId?: string | undefined;
|
|
325
324
|
result?: unknown;
|
|
325
|
+
userId?: string | undefined;
|
|
326
326
|
}, {
|
|
327
|
-
scopeId: string;
|
|
328
327
|
tool: string;
|
|
328
|
+
scopeId: string;
|
|
329
329
|
args: Record<string, unknown>;
|
|
330
|
-
userId?: string | undefined;
|
|
331
330
|
result?: unknown;
|
|
331
|
+
userId?: string | undefined;
|
|
332
332
|
}>, "many">;
|
|
333
333
|
mcpServerUrl: z.ZodOptional<z.ZodString>;
|
|
334
334
|
}, "strip", z.ZodTypeAny, {
|
|
335
335
|
toolCalls: {
|
|
336
|
-
scopeId: string;
|
|
337
336
|
tool: string;
|
|
337
|
+
scopeId: string;
|
|
338
338
|
args: Record<string, unknown>;
|
|
339
|
-
userId?: string | undefined;
|
|
340
339
|
result?: unknown;
|
|
340
|
+
userId?: string | undefined;
|
|
341
341
|
}[];
|
|
342
342
|
mcpServerUrl?: string | undefined;
|
|
343
343
|
}, {
|
|
344
344
|
toolCalls: {
|
|
345
|
-
scopeId: string;
|
|
346
345
|
tool: string;
|
|
346
|
+
scopeId: string;
|
|
347
347
|
args: Record<string, unknown>;
|
|
348
|
-
userId?: string | undefined;
|
|
349
348
|
result?: unknown;
|
|
349
|
+
userId?: string | undefined;
|
|
350
350
|
}[];
|
|
351
351
|
mcpServerUrl?: string | undefined;
|
|
352
352
|
}>>;
|
|
@@ -356,58 +356,58 @@ export declare const ProofSubmissionRequestSchema: z.ZodObject<{
|
|
|
356
356
|
jws: string;
|
|
357
357
|
meta: {
|
|
358
358
|
did: string;
|
|
359
|
-
kid: string;
|
|
360
359
|
nonce: string;
|
|
361
|
-
audience: string;
|
|
362
360
|
sessionId: string;
|
|
361
|
+
audience: string;
|
|
362
|
+
kid: string;
|
|
363
363
|
ts: number;
|
|
364
364
|
requestHash: string;
|
|
365
365
|
responseHash: string;
|
|
366
|
-
clientDid?: string | undefined;
|
|
367
366
|
scopeId?: string | undefined;
|
|
368
367
|
delegationRef?: string | undefined;
|
|
368
|
+
clientDid?: string | undefined;
|
|
369
369
|
};
|
|
370
370
|
}[];
|
|
371
|
-
delegation_id?: string | null | undefined;
|
|
372
371
|
context?: {
|
|
373
372
|
toolCalls: {
|
|
374
|
-
scopeId: string;
|
|
375
373
|
tool: string;
|
|
374
|
+
scopeId: string;
|
|
376
375
|
args: Record<string, unknown>;
|
|
377
|
-
userId?: string | undefined;
|
|
378
376
|
result?: unknown;
|
|
377
|
+
userId?: string | undefined;
|
|
379
378
|
}[];
|
|
380
379
|
mcpServerUrl?: string | undefined;
|
|
381
380
|
} | undefined;
|
|
381
|
+
delegation_id?: string | null | undefined;
|
|
382
382
|
}, {
|
|
383
383
|
session_id: string;
|
|
384
384
|
proofs: {
|
|
385
385
|
jws: string;
|
|
386
386
|
meta: {
|
|
387
387
|
did: string;
|
|
388
|
-
kid: string;
|
|
389
388
|
nonce: string;
|
|
390
|
-
audience: string;
|
|
391
389
|
sessionId: string;
|
|
390
|
+
audience: string;
|
|
391
|
+
kid: string;
|
|
392
392
|
ts: number;
|
|
393
393
|
requestHash: string;
|
|
394
394
|
responseHash: string;
|
|
395
|
-
clientDid?: string | undefined;
|
|
396
395
|
scopeId?: string | undefined;
|
|
397
396
|
delegationRef?: string | undefined;
|
|
397
|
+
clientDid?: string | undefined;
|
|
398
398
|
};
|
|
399
399
|
}[];
|
|
400
|
-
delegation_id?: string | null | undefined;
|
|
401
400
|
context?: {
|
|
402
401
|
toolCalls: {
|
|
403
|
-
scopeId: string;
|
|
404
402
|
tool: string;
|
|
403
|
+
scopeId: string;
|
|
405
404
|
args: Record<string, unknown>;
|
|
406
|
-
userId?: string | undefined;
|
|
407
405
|
result?: unknown;
|
|
406
|
+
userId?: string | undefined;
|
|
408
407
|
}[];
|
|
409
408
|
mcpServerUrl?: string | undefined;
|
|
410
409
|
} | undefined;
|
|
410
|
+
delegation_id?: string | null | undefined;
|
|
411
411
|
}>;
|
|
412
412
|
export type ToolCallContext = z.infer<typeof ToolCallContextSchema>;
|
|
413
413
|
export type ProofSubmissionContext = z.infer<typeof ProofSubmissionContextSchema>;
|