@kya-os/contracts 1.3.3 → 1.3.4

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.
Files changed (82) hide show
  1. package/package.json +3 -2
  2. package/README.md +0 -130
  3. package/dist/agentshield-api/endpoints.d.ts +0 -21
  4. package/dist/agentshield-api/endpoints.js +0 -20
  5. package/dist/agentshield-api/index.d.ts +0 -5
  6. package/dist/agentshield-api/index.js +0 -27
  7. package/dist/agentshield-api/schemas.d.ts +0 -9846
  8. package/dist/agentshield-api/schemas.js +0 -92
  9. package/dist/agentshield-api/types.d.ts +0 -92
  10. package/dist/agentshield-api/types.js +0 -12
  11. package/dist/cli.d.ts +0 -375
  12. package/dist/cli.js +0 -109
  13. package/dist/config/base.d.ts +0 -19
  14. package/dist/config/base.js +0 -2
  15. package/dist/config/delegation.d.ts +0 -46
  16. package/dist/config/delegation.js +0 -2
  17. package/dist/config/identity.d.ts +0 -22
  18. package/dist/config/identity.js +0 -2
  19. package/dist/config/index.d.ts +0 -17
  20. package/dist/config/index.js +0 -2
  21. package/dist/config/proofing.d.ts +0 -26
  22. package/dist/config/proofing.js +0 -2
  23. package/dist/config/tool-protection.d.ts +0 -36
  24. package/dist/config/tool-protection.js +0 -2
  25. package/dist/delegation/constraints.d.ts +0 -726
  26. package/dist/delegation/constraints.js +0 -103
  27. package/dist/delegation/index.d.ts +0 -2
  28. package/dist/delegation/index.js +0 -18
  29. package/dist/delegation/schemas.d.ts +0 -8042
  30. package/dist/delegation/schemas.js +0 -232
  31. package/dist/did/index.d.ts +0 -3
  32. package/dist/did/index.js +0 -19
  33. package/dist/did/resolve-contract.d.ts +0 -53
  34. package/dist/did/resolve-contract.js +0 -12
  35. package/dist/did/schemas.d.ts +0 -33
  36. package/dist/did/schemas.js +0 -80
  37. package/dist/did/types.d.ts +0 -38
  38. package/dist/did/types.js +0 -37
  39. package/dist/env/constants.d.ts +0 -13
  40. package/dist/env/constants.js +0 -15
  41. package/dist/env/index.d.ts +0 -1
  42. package/dist/env/index.js +0 -17
  43. package/dist/handshake.d.ts +0 -138
  44. package/dist/handshake.js +0 -50
  45. package/dist/index.d.ts +0 -11
  46. package/dist/index.js +0 -28
  47. package/dist/proof/index.d.ts +0 -2
  48. package/dist/proof/index.js +0 -18
  49. package/dist/proof/proof-record.d.ts +0 -728
  50. package/dist/proof/proof-record.js +0 -60
  51. package/dist/proof/signing-spec.d.ts +0 -73
  52. package/dist/proof/signing-spec.js +0 -52
  53. package/dist/proof.d.ts +0 -378
  54. package/dist/proof.js +0 -59
  55. package/dist/registry.d.ts +0 -326
  56. package/dist/registry.js +0 -98
  57. package/dist/runtime/errors.d.ts +0 -179
  58. package/dist/runtime/errors.js +0 -51
  59. package/dist/runtime/headers.d.ts +0 -34
  60. package/dist/runtime/headers.js +0 -52
  61. package/dist/runtime/index.d.ts +0 -2
  62. package/dist/runtime/index.js +0 -18
  63. package/dist/test.d.ts +0 -215
  64. package/dist/test.js +0 -83
  65. package/dist/tlkrc/index.d.ts +0 -1
  66. package/dist/tlkrc/index.js +0 -17
  67. package/dist/tlkrc/rotation.d.ts +0 -168
  68. package/dist/tlkrc/rotation.js +0 -55
  69. package/dist/tool-protection/index.d.ts +0 -129
  70. package/dist/tool-protection/index.js +0 -80
  71. package/dist/utils/validation.d.ts +0 -14
  72. package/dist/utils/validation.js +0 -56
  73. package/dist/vc/index.d.ts +0 -2
  74. package/dist/vc/index.js +0 -18
  75. package/dist/vc/schemas.d.ts +0 -1888
  76. package/dist/vc/schemas.js +0 -116
  77. package/dist/vc/statuslist.d.ts +0 -292
  78. package/dist/vc/statuslist.js +0 -61
  79. package/dist/verifier.d.ts +0 -202
  80. package/dist/verifier.js +0 -76
  81. package/dist/well-known/index.d.ts +0 -248
  82. package/dist/well-known/index.js +0 -104
@@ -1,728 +0,0 @@
1
- import { z } from 'zod';
2
- export declare const RequestInfoSchema: z.ZodObject<{
3
- method: z.ZodString;
4
- url: z.ZodString;
5
- bodyHash: z.ZodOptional<z.ZodString>;
6
- headersHash: z.ZodOptional<z.ZodString>;
7
- }, "strip", z.ZodTypeAny, {
8
- url: string;
9
- method: string;
10
- bodyHash?: string | undefined;
11
- headersHash?: string | undefined;
12
- }, {
13
- url: string;
14
- method: string;
15
- bodyHash?: string | undefined;
16
- headersHash?: string | undefined;
17
- }>;
18
- export type RequestInfo = z.infer<typeof RequestInfoSchema>;
19
- export declare const ResponseInfoSchema: z.ZodObject<{
20
- status: z.ZodNumber;
21
- bodyHash: z.ZodOptional<z.ZodString>;
22
- }, "strip", z.ZodTypeAny, {
23
- status: number;
24
- bodyHash?: string | undefined;
25
- }, {
26
- status: number;
27
- bodyHash?: string | undefined;
28
- }>;
29
- export type ResponseInfo = z.infer<typeof ResponseInfoSchema>;
30
- export declare const ProofDetailsSchema: z.ZodObject<{
31
- timestamp: z.ZodNumber;
32
- nonce: z.ZodString;
33
- did: z.ZodString;
34
- signature: z.ZodString;
35
- algorithm: z.ZodEnum<["Ed25519", "ES256"]>;
36
- sessionId: z.ZodString;
37
- audience: z.ZodString;
38
- request: z.ZodOptional<z.ZodObject<{
39
- method: z.ZodString;
40
- url: z.ZodString;
41
- bodyHash: z.ZodOptional<z.ZodString>;
42
- headersHash: z.ZodOptional<z.ZodString>;
43
- }, "strip", z.ZodTypeAny, {
44
- url: string;
45
- method: string;
46
- bodyHash?: string | undefined;
47
- headersHash?: string | undefined;
48
- }, {
49
- url: string;
50
- method: string;
51
- bodyHash?: string | undefined;
52
- headersHash?: string | undefined;
53
- }>>;
54
- response: z.ZodOptional<z.ZodObject<{
55
- status: z.ZodNumber;
56
- bodyHash: z.ZodOptional<z.ZodString>;
57
- }, "strip", z.ZodTypeAny, {
58
- status: number;
59
- bodyHash?: string | undefined;
60
- }, {
61
- status: number;
62
- bodyHash?: string | undefined;
63
- }>>;
64
- }, "strip", z.ZodTypeAny, {
65
- did: string;
66
- nonce: string;
67
- audience: string;
68
- timestamp: number;
69
- sessionId: string;
70
- signature: string;
71
- algorithm: "Ed25519" | "ES256";
72
- request?: {
73
- url: string;
74
- method: string;
75
- bodyHash?: string | undefined;
76
- headersHash?: string | undefined;
77
- } | undefined;
78
- response?: {
79
- status: number;
80
- bodyHash?: string | undefined;
81
- } | undefined;
82
- }, {
83
- did: string;
84
- nonce: string;
85
- audience: string;
86
- timestamp: number;
87
- sessionId: string;
88
- signature: string;
89
- algorithm: "Ed25519" | "ES256";
90
- request?: {
91
- url: string;
92
- method: string;
93
- bodyHash?: string | undefined;
94
- headersHash?: string | undefined;
95
- } | undefined;
96
- response?: {
97
- status: number;
98
- bodyHash?: string | undefined;
99
- } | undefined;
100
- }>;
101
- export type ProofDetails = z.infer<typeof ProofDetailsSchema>;
102
- export declare const LinkageInfoSchema: z.ZodObject<{
103
- delegationId: z.ZodOptional<z.ZodString>;
104
- credentialId: z.ZodOptional<z.ZodString>;
105
- chainDepth: z.ZodOptional<z.ZodNumber>;
106
- }, "strip", z.ZodTypeAny, {
107
- delegationId?: string | undefined;
108
- credentialId?: string | undefined;
109
- chainDepth?: number | undefined;
110
- }, {
111
- delegationId?: string | undefined;
112
- credentialId?: string | undefined;
113
- chainDepth?: number | undefined;
114
- }>;
115
- export type LinkageInfo = z.infer<typeof LinkageInfoSchema>;
116
- export declare const CrispInfoSchema: z.ZodObject<{
117
- unit: z.ZodEnum<["USD", "ops", "points"]>;
118
- delta: z.ZodOptional<z.ZodNumber>;
119
- remaining: z.ZodOptional<z.ZodNumber>;
120
- }, "strip", z.ZodTypeAny, {
121
- unit: "USD" | "ops" | "points";
122
- delta?: number | undefined;
123
- remaining?: number | undefined;
124
- }, {
125
- unit: "USD" | "ops" | "points";
126
- delta?: number | undefined;
127
- remaining?: number | undefined;
128
- }>;
129
- export type CrispInfo = z.infer<typeof CrispInfoSchema>;
130
- export declare const VerificationInfoSchema: z.ZodObject<{
131
- result: z.ZodEnum<["pending", "pass", "fail"]>;
132
- reason: z.ZodOptional<z.ZodString>;
133
- checkedAt: z.ZodOptional<z.ZodNumber>;
134
- }, "strip", z.ZodTypeAny, {
135
- result: "pending" | "pass" | "fail";
136
- reason?: string | undefined;
137
- checkedAt?: number | undefined;
138
- }, {
139
- result: "pending" | "pass" | "fail";
140
- reason?: string | undefined;
141
- checkedAt?: number | undefined;
142
- }>;
143
- export type VerificationInfo = z.infer<typeof VerificationInfoSchema>;
144
- export declare const ProofRecordSchema: z.ZodObject<{
145
- id: z.ZodString;
146
- toolName: z.ZodString;
147
- storedAt: z.ZodNumber;
148
- expiresAt: z.ZodNumber;
149
- proof: z.ZodObject<{
150
- timestamp: z.ZodNumber;
151
- nonce: z.ZodString;
152
- did: z.ZodString;
153
- signature: z.ZodString;
154
- algorithm: z.ZodEnum<["Ed25519", "ES256"]>;
155
- sessionId: z.ZodString;
156
- audience: z.ZodString;
157
- request: z.ZodOptional<z.ZodObject<{
158
- method: z.ZodString;
159
- url: z.ZodString;
160
- bodyHash: z.ZodOptional<z.ZodString>;
161
- headersHash: z.ZodOptional<z.ZodString>;
162
- }, "strip", z.ZodTypeAny, {
163
- url: string;
164
- method: string;
165
- bodyHash?: string | undefined;
166
- headersHash?: string | undefined;
167
- }, {
168
- url: string;
169
- method: string;
170
- bodyHash?: string | undefined;
171
- headersHash?: string | undefined;
172
- }>>;
173
- response: z.ZodOptional<z.ZodObject<{
174
- status: z.ZodNumber;
175
- bodyHash: z.ZodOptional<z.ZodString>;
176
- }, "strip", z.ZodTypeAny, {
177
- status: number;
178
- bodyHash?: string | undefined;
179
- }, {
180
- status: number;
181
- bodyHash?: string | undefined;
182
- }>>;
183
- }, "strip", z.ZodTypeAny, {
184
- did: string;
185
- nonce: string;
186
- audience: string;
187
- timestamp: number;
188
- sessionId: string;
189
- signature: string;
190
- algorithm: "Ed25519" | "ES256";
191
- request?: {
192
- url: string;
193
- method: string;
194
- bodyHash?: string | undefined;
195
- headersHash?: string | undefined;
196
- } | undefined;
197
- response?: {
198
- status: number;
199
- bodyHash?: string | undefined;
200
- } | undefined;
201
- }, {
202
- did: string;
203
- nonce: string;
204
- audience: string;
205
- timestamp: number;
206
- sessionId: string;
207
- signature: string;
208
- algorithm: "Ed25519" | "ES256";
209
- request?: {
210
- url: string;
211
- method: string;
212
- bodyHash?: string | undefined;
213
- headersHash?: string | undefined;
214
- } | undefined;
215
- response?: {
216
- status: number;
217
- bodyHash?: string | undefined;
218
- } | undefined;
219
- }>;
220
- linkage: z.ZodOptional<z.ZodObject<{
221
- delegationId: z.ZodOptional<z.ZodString>;
222
- credentialId: z.ZodOptional<z.ZodString>;
223
- chainDepth: z.ZodOptional<z.ZodNumber>;
224
- }, "strip", z.ZodTypeAny, {
225
- delegationId?: string | undefined;
226
- credentialId?: string | undefined;
227
- chainDepth?: number | undefined;
228
- }, {
229
- delegationId?: string | undefined;
230
- credentialId?: string | undefined;
231
- chainDepth?: number | undefined;
232
- }>>;
233
- crisp: z.ZodOptional<z.ZodObject<{
234
- unit: z.ZodEnum<["USD", "ops", "points"]>;
235
- delta: z.ZodOptional<z.ZodNumber>;
236
- remaining: z.ZodOptional<z.ZodNumber>;
237
- }, "strip", z.ZodTypeAny, {
238
- unit: "USD" | "ops" | "points";
239
- delta?: number | undefined;
240
- remaining?: number | undefined;
241
- }, {
242
- unit: "USD" | "ops" | "points";
243
- delta?: number | undefined;
244
- remaining?: number | undefined;
245
- }>>;
246
- verification: z.ZodOptional<z.ZodObject<{
247
- result: z.ZodEnum<["pending", "pass", "fail"]>;
248
- reason: z.ZodOptional<z.ZodString>;
249
- checkedAt: z.ZodOptional<z.ZodNumber>;
250
- }, "strip", z.ZodTypeAny, {
251
- result: "pending" | "pass" | "fail";
252
- reason?: string | undefined;
253
- checkedAt?: number | undefined;
254
- }, {
255
- result: "pending" | "pass" | "fail";
256
- reason?: string | undefined;
257
- checkedAt?: number | undefined;
258
- }>>;
259
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
260
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
261
- id: z.ZodString;
262
- toolName: z.ZodString;
263
- storedAt: z.ZodNumber;
264
- expiresAt: z.ZodNumber;
265
- proof: z.ZodObject<{
266
- timestamp: z.ZodNumber;
267
- nonce: z.ZodString;
268
- did: z.ZodString;
269
- signature: z.ZodString;
270
- algorithm: z.ZodEnum<["Ed25519", "ES256"]>;
271
- sessionId: z.ZodString;
272
- audience: z.ZodString;
273
- request: z.ZodOptional<z.ZodObject<{
274
- method: z.ZodString;
275
- url: z.ZodString;
276
- bodyHash: z.ZodOptional<z.ZodString>;
277
- headersHash: z.ZodOptional<z.ZodString>;
278
- }, "strip", z.ZodTypeAny, {
279
- url: string;
280
- method: string;
281
- bodyHash?: string | undefined;
282
- headersHash?: string | undefined;
283
- }, {
284
- url: string;
285
- method: string;
286
- bodyHash?: string | undefined;
287
- headersHash?: string | undefined;
288
- }>>;
289
- response: z.ZodOptional<z.ZodObject<{
290
- status: z.ZodNumber;
291
- bodyHash: z.ZodOptional<z.ZodString>;
292
- }, "strip", z.ZodTypeAny, {
293
- status: number;
294
- bodyHash?: string | undefined;
295
- }, {
296
- status: number;
297
- bodyHash?: string | undefined;
298
- }>>;
299
- }, "strip", z.ZodTypeAny, {
300
- did: string;
301
- nonce: string;
302
- audience: string;
303
- timestamp: number;
304
- sessionId: string;
305
- signature: string;
306
- algorithm: "Ed25519" | "ES256";
307
- request?: {
308
- url: string;
309
- method: string;
310
- bodyHash?: string | undefined;
311
- headersHash?: string | undefined;
312
- } | undefined;
313
- response?: {
314
- status: number;
315
- bodyHash?: string | undefined;
316
- } | undefined;
317
- }, {
318
- did: string;
319
- nonce: string;
320
- audience: string;
321
- timestamp: number;
322
- sessionId: string;
323
- signature: string;
324
- algorithm: "Ed25519" | "ES256";
325
- request?: {
326
- url: string;
327
- method: string;
328
- bodyHash?: string | undefined;
329
- headersHash?: string | undefined;
330
- } | undefined;
331
- response?: {
332
- status: number;
333
- bodyHash?: string | undefined;
334
- } | undefined;
335
- }>;
336
- linkage: z.ZodOptional<z.ZodObject<{
337
- delegationId: z.ZodOptional<z.ZodString>;
338
- credentialId: z.ZodOptional<z.ZodString>;
339
- chainDepth: z.ZodOptional<z.ZodNumber>;
340
- }, "strip", z.ZodTypeAny, {
341
- delegationId?: string | undefined;
342
- credentialId?: string | undefined;
343
- chainDepth?: number | undefined;
344
- }, {
345
- delegationId?: string | undefined;
346
- credentialId?: string | undefined;
347
- chainDepth?: number | undefined;
348
- }>>;
349
- crisp: z.ZodOptional<z.ZodObject<{
350
- unit: z.ZodEnum<["USD", "ops", "points"]>;
351
- delta: z.ZodOptional<z.ZodNumber>;
352
- remaining: z.ZodOptional<z.ZodNumber>;
353
- }, "strip", z.ZodTypeAny, {
354
- unit: "USD" | "ops" | "points";
355
- delta?: number | undefined;
356
- remaining?: number | undefined;
357
- }, {
358
- unit: "USD" | "ops" | "points";
359
- delta?: number | undefined;
360
- remaining?: number | undefined;
361
- }>>;
362
- verification: z.ZodOptional<z.ZodObject<{
363
- result: z.ZodEnum<["pending", "pass", "fail"]>;
364
- reason: z.ZodOptional<z.ZodString>;
365
- checkedAt: z.ZodOptional<z.ZodNumber>;
366
- }, "strip", z.ZodTypeAny, {
367
- result: "pending" | "pass" | "fail";
368
- reason?: string | undefined;
369
- checkedAt?: number | undefined;
370
- }, {
371
- result: "pending" | "pass" | "fail";
372
- reason?: string | undefined;
373
- checkedAt?: number | undefined;
374
- }>>;
375
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
376
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
377
- id: z.ZodString;
378
- toolName: z.ZodString;
379
- storedAt: z.ZodNumber;
380
- expiresAt: z.ZodNumber;
381
- proof: z.ZodObject<{
382
- timestamp: z.ZodNumber;
383
- nonce: z.ZodString;
384
- did: z.ZodString;
385
- signature: z.ZodString;
386
- algorithm: z.ZodEnum<["Ed25519", "ES256"]>;
387
- sessionId: z.ZodString;
388
- audience: z.ZodString;
389
- request: z.ZodOptional<z.ZodObject<{
390
- method: z.ZodString;
391
- url: z.ZodString;
392
- bodyHash: z.ZodOptional<z.ZodString>;
393
- headersHash: z.ZodOptional<z.ZodString>;
394
- }, "strip", z.ZodTypeAny, {
395
- url: string;
396
- method: string;
397
- bodyHash?: string | undefined;
398
- headersHash?: string | undefined;
399
- }, {
400
- url: string;
401
- method: string;
402
- bodyHash?: string | undefined;
403
- headersHash?: string | undefined;
404
- }>>;
405
- response: z.ZodOptional<z.ZodObject<{
406
- status: z.ZodNumber;
407
- bodyHash: z.ZodOptional<z.ZodString>;
408
- }, "strip", z.ZodTypeAny, {
409
- status: number;
410
- bodyHash?: string | undefined;
411
- }, {
412
- status: number;
413
- bodyHash?: string | undefined;
414
- }>>;
415
- }, "strip", z.ZodTypeAny, {
416
- did: string;
417
- nonce: string;
418
- audience: string;
419
- timestamp: number;
420
- sessionId: string;
421
- signature: string;
422
- algorithm: "Ed25519" | "ES256";
423
- request?: {
424
- url: string;
425
- method: string;
426
- bodyHash?: string | undefined;
427
- headersHash?: string | undefined;
428
- } | undefined;
429
- response?: {
430
- status: number;
431
- bodyHash?: string | undefined;
432
- } | undefined;
433
- }, {
434
- did: string;
435
- nonce: string;
436
- audience: string;
437
- timestamp: number;
438
- sessionId: string;
439
- signature: string;
440
- algorithm: "Ed25519" | "ES256";
441
- request?: {
442
- url: string;
443
- method: string;
444
- bodyHash?: string | undefined;
445
- headersHash?: string | undefined;
446
- } | undefined;
447
- response?: {
448
- status: number;
449
- bodyHash?: string | undefined;
450
- } | undefined;
451
- }>;
452
- linkage: z.ZodOptional<z.ZodObject<{
453
- delegationId: z.ZodOptional<z.ZodString>;
454
- credentialId: z.ZodOptional<z.ZodString>;
455
- chainDepth: z.ZodOptional<z.ZodNumber>;
456
- }, "strip", z.ZodTypeAny, {
457
- delegationId?: string | undefined;
458
- credentialId?: string | undefined;
459
- chainDepth?: number | undefined;
460
- }, {
461
- delegationId?: string | undefined;
462
- credentialId?: string | undefined;
463
- chainDepth?: number | undefined;
464
- }>>;
465
- crisp: z.ZodOptional<z.ZodObject<{
466
- unit: z.ZodEnum<["USD", "ops", "points"]>;
467
- delta: z.ZodOptional<z.ZodNumber>;
468
- remaining: z.ZodOptional<z.ZodNumber>;
469
- }, "strip", z.ZodTypeAny, {
470
- unit: "USD" | "ops" | "points";
471
- delta?: number | undefined;
472
- remaining?: number | undefined;
473
- }, {
474
- unit: "USD" | "ops" | "points";
475
- delta?: number | undefined;
476
- remaining?: number | undefined;
477
- }>>;
478
- verification: z.ZodOptional<z.ZodObject<{
479
- result: z.ZodEnum<["pending", "pass", "fail"]>;
480
- reason: z.ZodOptional<z.ZodString>;
481
- checkedAt: z.ZodOptional<z.ZodNumber>;
482
- }, "strip", z.ZodTypeAny, {
483
- result: "pending" | "pass" | "fail";
484
- reason?: string | undefined;
485
- checkedAt?: number | undefined;
486
- }, {
487
- result: "pending" | "pass" | "fail";
488
- reason?: string | undefined;
489
- checkedAt?: number | undefined;
490
- }>>;
491
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
492
- }, z.ZodTypeAny, "passthrough">>;
493
- export type ProofRecord = z.infer<typeof ProofRecordSchema>;
494
- export declare function validateProofRecord(record: unknown): z.SafeParseReturnType<z.objectInputType<{
495
- id: z.ZodString;
496
- toolName: z.ZodString;
497
- storedAt: z.ZodNumber;
498
- expiresAt: z.ZodNumber;
499
- proof: z.ZodObject<{
500
- timestamp: z.ZodNumber;
501
- nonce: z.ZodString;
502
- did: z.ZodString;
503
- signature: z.ZodString;
504
- algorithm: z.ZodEnum<["Ed25519", "ES256"]>;
505
- sessionId: z.ZodString;
506
- audience: z.ZodString;
507
- request: z.ZodOptional<z.ZodObject<{
508
- method: z.ZodString;
509
- url: z.ZodString;
510
- bodyHash: z.ZodOptional<z.ZodString>;
511
- headersHash: z.ZodOptional<z.ZodString>;
512
- }, "strip", z.ZodTypeAny, {
513
- url: string;
514
- method: string;
515
- bodyHash?: string | undefined;
516
- headersHash?: string | undefined;
517
- }, {
518
- url: string;
519
- method: string;
520
- bodyHash?: string | undefined;
521
- headersHash?: string | undefined;
522
- }>>;
523
- response: z.ZodOptional<z.ZodObject<{
524
- status: z.ZodNumber;
525
- bodyHash: z.ZodOptional<z.ZodString>;
526
- }, "strip", z.ZodTypeAny, {
527
- status: number;
528
- bodyHash?: string | undefined;
529
- }, {
530
- status: number;
531
- bodyHash?: string | undefined;
532
- }>>;
533
- }, "strip", z.ZodTypeAny, {
534
- did: string;
535
- nonce: string;
536
- audience: string;
537
- timestamp: number;
538
- sessionId: string;
539
- signature: string;
540
- algorithm: "Ed25519" | "ES256";
541
- request?: {
542
- url: string;
543
- method: string;
544
- bodyHash?: string | undefined;
545
- headersHash?: string | undefined;
546
- } | undefined;
547
- response?: {
548
- status: number;
549
- bodyHash?: string | undefined;
550
- } | undefined;
551
- }, {
552
- did: string;
553
- nonce: string;
554
- audience: string;
555
- timestamp: number;
556
- sessionId: string;
557
- signature: string;
558
- algorithm: "Ed25519" | "ES256";
559
- request?: {
560
- url: string;
561
- method: string;
562
- bodyHash?: string | undefined;
563
- headersHash?: string | undefined;
564
- } | undefined;
565
- response?: {
566
- status: number;
567
- bodyHash?: string | undefined;
568
- } | undefined;
569
- }>;
570
- linkage: z.ZodOptional<z.ZodObject<{
571
- delegationId: z.ZodOptional<z.ZodString>;
572
- credentialId: z.ZodOptional<z.ZodString>;
573
- chainDepth: z.ZodOptional<z.ZodNumber>;
574
- }, "strip", z.ZodTypeAny, {
575
- delegationId?: string | undefined;
576
- credentialId?: string | undefined;
577
- chainDepth?: number | undefined;
578
- }, {
579
- delegationId?: string | undefined;
580
- credentialId?: string | undefined;
581
- chainDepth?: number | undefined;
582
- }>>;
583
- crisp: z.ZodOptional<z.ZodObject<{
584
- unit: z.ZodEnum<["USD", "ops", "points"]>;
585
- delta: z.ZodOptional<z.ZodNumber>;
586
- remaining: z.ZodOptional<z.ZodNumber>;
587
- }, "strip", z.ZodTypeAny, {
588
- unit: "USD" | "ops" | "points";
589
- delta?: number | undefined;
590
- remaining?: number | undefined;
591
- }, {
592
- unit: "USD" | "ops" | "points";
593
- delta?: number | undefined;
594
- remaining?: number | undefined;
595
- }>>;
596
- verification: z.ZodOptional<z.ZodObject<{
597
- result: z.ZodEnum<["pending", "pass", "fail"]>;
598
- reason: z.ZodOptional<z.ZodString>;
599
- checkedAt: z.ZodOptional<z.ZodNumber>;
600
- }, "strip", z.ZodTypeAny, {
601
- result: "pending" | "pass" | "fail";
602
- reason?: string | undefined;
603
- checkedAt?: number | undefined;
604
- }, {
605
- result: "pending" | "pass" | "fail";
606
- reason?: string | undefined;
607
- checkedAt?: number | undefined;
608
- }>>;
609
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
610
- }, z.ZodTypeAny, "passthrough">, z.objectOutputType<{
611
- id: z.ZodString;
612
- toolName: z.ZodString;
613
- storedAt: z.ZodNumber;
614
- expiresAt: z.ZodNumber;
615
- proof: z.ZodObject<{
616
- timestamp: z.ZodNumber;
617
- nonce: z.ZodString;
618
- did: z.ZodString;
619
- signature: z.ZodString;
620
- algorithm: z.ZodEnum<["Ed25519", "ES256"]>;
621
- sessionId: z.ZodString;
622
- audience: z.ZodString;
623
- request: z.ZodOptional<z.ZodObject<{
624
- method: z.ZodString;
625
- url: z.ZodString;
626
- bodyHash: z.ZodOptional<z.ZodString>;
627
- headersHash: z.ZodOptional<z.ZodString>;
628
- }, "strip", z.ZodTypeAny, {
629
- url: string;
630
- method: string;
631
- bodyHash?: string | undefined;
632
- headersHash?: string | undefined;
633
- }, {
634
- url: string;
635
- method: string;
636
- bodyHash?: string | undefined;
637
- headersHash?: string | undefined;
638
- }>>;
639
- response: z.ZodOptional<z.ZodObject<{
640
- status: z.ZodNumber;
641
- bodyHash: z.ZodOptional<z.ZodString>;
642
- }, "strip", z.ZodTypeAny, {
643
- status: number;
644
- bodyHash?: string | undefined;
645
- }, {
646
- status: number;
647
- bodyHash?: string | undefined;
648
- }>>;
649
- }, "strip", z.ZodTypeAny, {
650
- did: string;
651
- nonce: string;
652
- audience: string;
653
- timestamp: number;
654
- sessionId: string;
655
- signature: string;
656
- algorithm: "Ed25519" | "ES256";
657
- request?: {
658
- url: string;
659
- method: string;
660
- bodyHash?: string | undefined;
661
- headersHash?: string | undefined;
662
- } | undefined;
663
- response?: {
664
- status: number;
665
- bodyHash?: string | undefined;
666
- } | undefined;
667
- }, {
668
- did: string;
669
- nonce: string;
670
- audience: string;
671
- timestamp: number;
672
- sessionId: string;
673
- signature: string;
674
- algorithm: "Ed25519" | "ES256";
675
- request?: {
676
- url: string;
677
- method: string;
678
- bodyHash?: string | undefined;
679
- headersHash?: string | undefined;
680
- } | undefined;
681
- response?: {
682
- status: number;
683
- bodyHash?: string | undefined;
684
- } | undefined;
685
- }>;
686
- linkage: z.ZodOptional<z.ZodObject<{
687
- delegationId: z.ZodOptional<z.ZodString>;
688
- credentialId: z.ZodOptional<z.ZodString>;
689
- chainDepth: z.ZodOptional<z.ZodNumber>;
690
- }, "strip", z.ZodTypeAny, {
691
- delegationId?: string | undefined;
692
- credentialId?: string | undefined;
693
- chainDepth?: number | undefined;
694
- }, {
695
- delegationId?: string | undefined;
696
- credentialId?: string | undefined;
697
- chainDepth?: number | undefined;
698
- }>>;
699
- crisp: z.ZodOptional<z.ZodObject<{
700
- unit: z.ZodEnum<["USD", "ops", "points"]>;
701
- delta: z.ZodOptional<z.ZodNumber>;
702
- remaining: z.ZodOptional<z.ZodNumber>;
703
- }, "strip", z.ZodTypeAny, {
704
- unit: "USD" | "ops" | "points";
705
- delta?: number | undefined;
706
- remaining?: number | undefined;
707
- }, {
708
- unit: "USD" | "ops" | "points";
709
- delta?: number | undefined;
710
- remaining?: number | undefined;
711
- }>>;
712
- verification: z.ZodOptional<z.ZodObject<{
713
- result: z.ZodEnum<["pending", "pass", "fail"]>;
714
- reason: z.ZodOptional<z.ZodString>;
715
- checkedAt: z.ZodOptional<z.ZodNumber>;
716
- }, "strip", z.ZodTypeAny, {
717
- result: "pending" | "pass" | "fail";
718
- reason?: string | undefined;
719
- checkedAt?: number | undefined;
720
- }, {
721
- result: "pending" | "pass" | "fail";
722
- reason?: string | undefined;
723
- checkedAt?: number | undefined;
724
- }>>;
725
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
726
- }, z.ZodTypeAny, "passthrough">>;
727
- export declare function isProofRecordExpired(record: ProofRecord): boolean;
728
- export declare const DEFAULT_PROOF_RECORD_TTL_MS: number;