@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/proof.d.ts CHANGED
@@ -24,9 +24,9 @@ export declare const ProofMetaSchema: z.ZodObject<{
24
24
  }, "strip", z.ZodTypeAny, {
25
25
  did: string;
26
26
  kid: string;
27
- sessionId: string;
28
27
  nonce: string;
29
28
  audience: string;
29
+ sessionId: string;
30
30
  ts: number;
31
31
  requestHash: string;
32
32
  responseHash: string;
@@ -36,9 +36,9 @@ export declare const ProofMetaSchema: z.ZodObject<{
36
36
  }, {
37
37
  did: string;
38
38
  kid: string;
39
- sessionId: string;
40
39
  nonce: string;
41
40
  audience: string;
41
+ sessionId: string;
42
42
  ts: number;
43
43
  requestHash: string;
44
44
  responseHash: string;
@@ -63,9 +63,9 @@ export declare const DetachedProofSchema: z.ZodObject<{
63
63
  }, "strip", z.ZodTypeAny, {
64
64
  did: string;
65
65
  kid: string;
66
- sessionId: string;
67
66
  nonce: string;
68
67
  audience: string;
68
+ sessionId: string;
69
69
  ts: number;
70
70
  requestHash: string;
71
71
  responseHash: string;
@@ -75,9 +75,9 @@ export declare const DetachedProofSchema: z.ZodObject<{
75
75
  }, {
76
76
  did: string;
77
77
  kid: string;
78
- sessionId: string;
79
78
  nonce: string;
80
79
  audience: string;
80
+ sessionId: string;
81
81
  ts: number;
82
82
  requestHash: string;
83
83
  responseHash: string;
@@ -90,9 +90,9 @@ export declare const DetachedProofSchema: z.ZodObject<{
90
90
  meta: {
91
91
  did: string;
92
92
  kid: string;
93
- sessionId: string;
94
93
  nonce: string;
95
94
  audience: string;
95
+ sessionId: string;
96
96
  ts: number;
97
97
  requestHash: string;
98
98
  responseHash: string;
@@ -105,9 +105,9 @@ export declare const DetachedProofSchema: z.ZodObject<{
105
105
  meta: {
106
106
  did: string;
107
107
  kid: string;
108
- sessionId: string;
109
108
  nonce: string;
110
109
  audience: string;
110
+ sessionId: string;
111
111
  ts: number;
112
112
  requestHash: string;
113
113
  responseHash: string;
@@ -178,14 +178,14 @@ export declare const ToolCallContextSchema: z.ZodObject<{
178
178
  scopeId: z.ZodString;
179
179
  userId: z.ZodOptional<z.ZodString>;
180
180
  }, "strip", z.ZodTypeAny, {
181
- tool: string;
182
181
  scopeId: string;
182
+ tool: string;
183
183
  args: Record<string, unknown>;
184
184
  userId?: string | undefined;
185
185
  result?: unknown;
186
186
  }, {
187
- tool: string;
188
187
  scopeId: string;
188
+ tool: string;
189
189
  args: Record<string, unknown>;
190
190
  userId?: string | undefined;
191
191
  result?: unknown;
@@ -202,14 +202,14 @@ export declare const ProofSubmissionContextSchema: z.ZodObject<{
202
202
  scopeId: z.ZodString;
203
203
  userId: z.ZodOptional<z.ZodString>;
204
204
  }, "strip", z.ZodTypeAny, {
205
- tool: string;
206
205
  scopeId: string;
206
+ tool: string;
207
207
  args: Record<string, unknown>;
208
208
  userId?: string | undefined;
209
209
  result?: unknown;
210
210
  }, {
211
- tool: string;
212
211
  scopeId: string;
212
+ tool: string;
213
213
  args: Record<string, unknown>;
214
214
  userId?: string | undefined;
215
215
  result?: unknown;
@@ -217,8 +217,8 @@ export declare const ProofSubmissionContextSchema: z.ZodObject<{
217
217
  mcpServerUrl: z.ZodOptional<z.ZodString>;
218
218
  }, "strip", z.ZodTypeAny, {
219
219
  toolCalls: {
220
- tool: string;
221
220
  scopeId: string;
221
+ tool: string;
222
222
  args: Record<string, unknown>;
223
223
  userId?: string | undefined;
224
224
  result?: unknown;
@@ -226,8 +226,8 @@ export declare const ProofSubmissionContextSchema: z.ZodObject<{
226
226
  mcpServerUrl?: string | undefined;
227
227
  }, {
228
228
  toolCalls: {
229
- tool: string;
230
229
  scopeId: string;
230
+ tool: string;
231
231
  args: Record<string, unknown>;
232
232
  userId?: string | undefined;
233
233
  result?: unknown;
@@ -257,9 +257,9 @@ export declare const ProofSubmissionRequestSchema: z.ZodObject<{
257
257
  }, "strip", z.ZodTypeAny, {
258
258
  did: string;
259
259
  kid: string;
260
- sessionId: string;
261
260
  nonce: string;
262
261
  audience: string;
262
+ sessionId: string;
263
263
  ts: number;
264
264
  requestHash: string;
265
265
  responseHash: string;
@@ -269,9 +269,9 @@ export declare const ProofSubmissionRequestSchema: z.ZodObject<{
269
269
  }, {
270
270
  did: string;
271
271
  kid: string;
272
- sessionId: string;
273
272
  nonce: string;
274
273
  audience: string;
274
+ sessionId: string;
275
275
  ts: number;
276
276
  requestHash: string;
277
277
  responseHash: string;
@@ -284,9 +284,9 @@ export declare const ProofSubmissionRequestSchema: z.ZodObject<{
284
284
  meta: {
285
285
  did: string;
286
286
  kid: string;
287
- sessionId: string;
288
287
  nonce: string;
289
288
  audience: string;
289
+ sessionId: string;
290
290
  ts: number;
291
291
  requestHash: string;
292
292
  responseHash: string;
@@ -299,9 +299,9 @@ export declare const ProofSubmissionRequestSchema: z.ZodObject<{
299
299
  meta: {
300
300
  did: string;
301
301
  kid: string;
302
- sessionId: string;
303
302
  nonce: string;
304
303
  audience: string;
304
+ sessionId: string;
305
305
  ts: number;
306
306
  requestHash: string;
307
307
  responseHash: string;
@@ -318,14 +318,14 @@ export declare const ProofSubmissionRequestSchema: z.ZodObject<{
318
318
  scopeId: z.ZodString;
319
319
  userId: z.ZodOptional<z.ZodString>;
320
320
  }, "strip", z.ZodTypeAny, {
321
- tool: string;
322
321
  scopeId: string;
322
+ tool: string;
323
323
  args: Record<string, unknown>;
324
324
  userId?: string | undefined;
325
325
  result?: unknown;
326
326
  }, {
327
- tool: string;
328
327
  scopeId: string;
328
+ tool: string;
329
329
  args: Record<string, unknown>;
330
330
  userId?: string | undefined;
331
331
  result?: unknown;
@@ -333,8 +333,8 @@ export declare const ProofSubmissionRequestSchema: z.ZodObject<{
333
333
  mcpServerUrl: z.ZodOptional<z.ZodString>;
334
334
  }, "strip", z.ZodTypeAny, {
335
335
  toolCalls: {
336
- tool: string;
337
336
  scopeId: string;
337
+ tool: string;
338
338
  args: Record<string, unknown>;
339
339
  userId?: string | undefined;
340
340
  result?: unknown;
@@ -342,8 +342,8 @@ export declare const ProofSubmissionRequestSchema: z.ZodObject<{
342
342
  mcpServerUrl?: string | undefined;
343
343
  }, {
344
344
  toolCalls: {
345
- tool: string;
346
345
  scopeId: string;
346
+ tool: string;
347
347
  args: Record<string, unknown>;
348
348
  userId?: string | undefined;
349
349
  result?: unknown;
@@ -357,9 +357,9 @@ export declare const ProofSubmissionRequestSchema: z.ZodObject<{
357
357
  meta: {
358
358
  did: string;
359
359
  kid: string;
360
- sessionId: string;
361
360
  nonce: string;
362
361
  audience: string;
362
+ sessionId: string;
363
363
  ts: number;
364
364
  requestHash: string;
365
365
  responseHash: string;
@@ -371,8 +371,8 @@ export declare const ProofSubmissionRequestSchema: z.ZodObject<{
371
371
  delegation_id?: string | null | undefined;
372
372
  context?: {
373
373
  toolCalls: {
374
- tool: string;
375
374
  scopeId: string;
375
+ tool: string;
376
376
  args: Record<string, unknown>;
377
377
  userId?: string | undefined;
378
378
  result?: unknown;
@@ -386,9 +386,9 @@ export declare const ProofSubmissionRequestSchema: z.ZodObject<{
386
386
  meta: {
387
387
  did: string;
388
388
  kid: string;
389
- sessionId: string;
390
389
  nonce: string;
391
390
  audience: string;
391
+ sessionId: string;
392
392
  ts: number;
393
393
  requestHash: string;
394
394
  responseHash: string;
@@ -400,8 +400,8 @@ export declare const ProofSubmissionRequestSchema: z.ZodObject<{
400
400
  delegation_id?: string | null | undefined;
401
401
  context?: {
402
402
  toolCalls: {
403
- tool: string;
404
403
  scopeId: string;
404
+ tool: string;
405
405
  args: Record<string, unknown>;
406
406
  userId?: string | undefined;
407
407
  result?: unknown;
@@ -120,8 +120,8 @@ export declare const CalculateReputationRequestSchema: z.ZodObject<{
120
120
  negativeReviews: number;
121
121
  averageRating?: number | undefined;
122
122
  };
123
- createdAt?: string | undefined;
124
123
  metadata?: Record<string, unknown> | undefined;
124
+ createdAt?: string | undefined;
125
125
  }, {
126
126
  did: string;
127
127
  issues?: {
@@ -129,8 +129,8 @@ export declare const CalculateReputationRequestSchema: z.ZodObject<{
129
129
  disputesLost?: number | undefined;
130
130
  abuseReportsVerified?: number | undefined;
131
131
  } | undefined;
132
- createdAt?: string | undefined;
133
132
  metadata?: Record<string, unknown> | undefined;
133
+ createdAt?: string | undefined;
134
134
  mcpLevel?: number | undefined;
135
135
  credentials?: {
136
136
  identityVerified?: boolean | undefined;
@@ -230,8 +230,8 @@ export declare const CalculateReputationRequestSchema: z.ZodObject<{
230
230
  negativeReviews: number;
231
231
  averageRating?: number | undefined;
232
232
  };
233
- createdAt?: string | undefined;
234
233
  metadata?: Record<string, unknown> | undefined;
234
+ createdAt?: string | undefined;
235
235
  };
236
236
  config?: {
237
237
  kValue: number;
@@ -252,8 +252,8 @@ export declare const CalculateReputationRequestSchema: z.ZodObject<{
252
252
  disputesLost?: number | undefined;
253
253
  abuseReportsVerified?: number | undefined;
254
254
  } | undefined;
255
- createdAt?: string | undefined;
256
255
  metadata?: Record<string, unknown> | undefined;
256
+ createdAt?: string | undefined;
257
257
  mcpLevel?: number | undefined;
258
258
  credentials?: {
259
259
  identityVerified?: boolean | undefined;
@@ -568,8 +568,8 @@ export declare const BatchCalculateRequestSchema: z.ZodObject<{
568
568
  negativeReviews: number;
569
569
  averageRating?: number | undefined;
570
570
  };
571
- createdAt?: string | undefined;
572
571
  metadata?: Record<string, unknown> | undefined;
572
+ createdAt?: string | undefined;
573
573
  }, {
574
574
  did: string;
575
575
  issues?: {
@@ -577,8 +577,8 @@ export declare const BatchCalculateRequestSchema: z.ZodObject<{
577
577
  disputesLost?: number | undefined;
578
578
  abuseReportsVerified?: number | undefined;
579
579
  } | undefined;
580
- createdAt?: string | undefined;
581
580
  metadata?: Record<string, unknown> | undefined;
581
+ createdAt?: string | undefined;
582
582
  mcpLevel?: number | undefined;
583
583
  credentials?: {
584
584
  identityVerified?: boolean | undefined;
@@ -678,8 +678,8 @@ export declare const BatchCalculateRequestSchema: z.ZodObject<{
678
678
  negativeReviews: number;
679
679
  averageRating?: number | undefined;
680
680
  };
681
- createdAt?: string | undefined;
682
681
  metadata?: Record<string, unknown> | undefined;
682
+ createdAt?: string | undefined;
683
683
  }[];
684
684
  config?: {
685
685
  kValue: number;
@@ -700,8 +700,8 @@ export declare const BatchCalculateRequestSchema: z.ZodObject<{
700
700
  disputesLost?: number | undefined;
701
701
  abuseReportsVerified?: number | undefined;
702
702
  } | undefined;
703
- createdAt?: string | undefined;
704
703
  metadata?: Record<string, unknown> | undefined;
704
+ createdAt?: string | undefined;
705
705
  mcpLevel?: number | undefined;
706
706
  credentials?: {
707
707
  identityVerified?: boolean | undefined;
@@ -1333,8 +1333,8 @@ export declare const PredictScoreChangeRequestSchema: z.ZodObject<{
1333
1333
  negativeReviews: number;
1334
1334
  averageRating?: number | undefined;
1335
1335
  };
1336
- createdAt?: string | undefined;
1337
1336
  metadata?: Record<string, unknown> | undefined;
1337
+ createdAt?: string | undefined;
1338
1338
  }, {
1339
1339
  did: string;
1340
1340
  issues?: {
@@ -1342,8 +1342,8 @@ export declare const PredictScoreChangeRequestSchema: z.ZodObject<{
1342
1342
  disputesLost?: number | undefined;
1343
1343
  abuseReportsVerified?: number | undefined;
1344
1344
  } | undefined;
1345
- createdAt?: string | undefined;
1346
1345
  metadata?: Record<string, unknown> | undefined;
1346
+ createdAt?: string | undefined;
1347
1347
  mcpLevel?: number | undefined;
1348
1348
  credentials?: {
1349
1349
  identityVerified?: boolean | undefined;
@@ -1464,8 +1464,8 @@ export declare const PredictScoreChangeRequestSchema: z.ZodObject<{
1464
1464
  negativeReviews: number;
1465
1465
  averageRating?: number | undefined;
1466
1466
  };
1467
- createdAt?: string | undefined;
1468
1467
  metadata?: Record<string, unknown> | undefined;
1468
+ createdAt?: string | undefined;
1469
1469
  };
1470
1470
  config?: {
1471
1471
  kValue: number;
@@ -1492,8 +1492,8 @@ export declare const PredictScoreChangeRequestSchema: z.ZodObject<{
1492
1492
  disputesLost?: number | undefined;
1493
1493
  abuseReportsVerified?: number | undefined;
1494
1494
  } | undefined;
1495
- createdAt?: string | undefined;
1496
1495
  metadata?: Record<string, unknown> | undefined;
1496
+ createdAt?: string | undefined;
1497
1497
  mcpLevel?: number | undefined;
1498
1498
  credentials?: {
1499
1499
  identityVerified?: boolean | undefined;
@@ -2203,8 +2203,8 @@ export declare function validateCalculateRequest(data: unknown): z.SafeParseRetu
2203
2203
  disputesLost?: number | undefined;
2204
2204
  abuseReportsVerified?: number | undefined;
2205
2205
  } | undefined;
2206
- createdAt?: string | undefined;
2207
2206
  metadata?: Record<string, unknown> | undefined;
2207
+ createdAt?: string | undefined;
2208
2208
  mcpLevel?: number | undefined;
2209
2209
  credentials?: {
2210
2210
  identityVerified?: boolean | undefined;
@@ -2267,8 +2267,8 @@ export declare function validateCalculateRequest(data: unknown): z.SafeParseRetu
2267
2267
  negativeReviews: number;
2268
2268
  averageRating?: number | undefined;
2269
2269
  };
2270
- createdAt?: string | undefined;
2271
2270
  metadata?: Record<string, unknown> | undefined;
2271
+ createdAt?: string | undefined;
2272
2272
  };
2273
2273
  config?: {
2274
2274
  kValue: number;
@@ -2293,8 +2293,8 @@ export declare function validateBatchCalculateRequest(data: unknown): z.SafePars
2293
2293
  disputesLost?: number | undefined;
2294
2294
  abuseReportsVerified?: number | undefined;
2295
2295
  } | undefined;
2296
- createdAt?: string | undefined;
2297
2296
  metadata?: Record<string, unknown> | undefined;
2297
+ createdAt?: string | undefined;
2298
2298
  mcpLevel?: number | undefined;
2299
2299
  credentials?: {
2300
2300
  identityVerified?: boolean | undefined;
@@ -2357,8 +2357,8 @@ export declare function validateBatchCalculateRequest(data: unknown): z.SafePars
2357
2357
  negativeReviews: number;
2358
2358
  averageRating?: number | undefined;
2359
2359
  };
2360
- createdAt?: string | undefined;
2361
2360
  metadata?: Record<string, unknown> | undefined;
2361
+ createdAt?: string | undefined;
2362
2362
  }[];
2363
2363
  config?: {
2364
2364
  kValue: number;
@@ -2389,8 +2389,8 @@ export declare function validatePredictRequest(data: unknown): z.SafeParseReturn
2389
2389
  disputesLost?: number | undefined;
2390
2390
  abuseReportsVerified?: number | undefined;
2391
2391
  } | undefined;
2392
- createdAt?: string | undefined;
2393
2392
  metadata?: Record<string, unknown> | undefined;
2393
+ createdAt?: string | undefined;
2394
2394
  mcpLevel?: number | undefined;
2395
2395
  credentials?: {
2396
2396
  identityVerified?: boolean | undefined;
@@ -2459,8 +2459,8 @@ export declare function validatePredictRequest(data: unknown): z.SafeParseReturn
2459
2459
  negativeReviews: number;
2460
2460
  averageRating?: number | undefined;
2461
2461
  };
2462
- createdAt?: string | undefined;
2463
2462
  metadata?: Record<string, unknown> | undefined;
2463
+ createdAt?: string | undefined;
2464
2464
  };
2465
2465
  config?: {
2466
2466
  kValue: number;
@@ -267,8 +267,8 @@ export declare const AgentDataSchema: z.ZodObject<{
267
267
  negativeReviews: number;
268
268
  averageRating?: number | undefined;
269
269
  };
270
- createdAt?: string | undefined;
271
270
  metadata?: Record<string, unknown> | undefined;
271
+ createdAt?: string | undefined;
272
272
  }, {
273
273
  did: string;
274
274
  issues?: {
@@ -276,8 +276,8 @@ export declare const AgentDataSchema: z.ZodObject<{
276
276
  disputesLost?: number | undefined;
277
277
  abuseReportsVerified?: number | undefined;
278
278
  } | undefined;
279
- createdAt?: string | undefined;
280
279
  metadata?: Record<string, unknown> | undefined;
280
+ createdAt?: string | undefined;
281
281
  mcpLevel?: number | undefined;
282
282
  credentials?: {
283
283
  identityVerified?: boolean | undefined;
@@ -404,8 +404,8 @@ export declare const PartialAgentDataSchema: z.ZodObject<{
404
404
  disputesLost: number;
405
405
  abuseReportsVerified: number;
406
406
  } | undefined;
407
- createdAt?: string | undefined;
408
407
  metadata?: Record<string, unknown> | undefined;
408
+ createdAt?: string | undefined;
409
409
  mcpLevel?: number | undefined;
410
410
  credentials?: {
411
411
  identityVerified: boolean;
@@ -434,8 +434,8 @@ export declare const PartialAgentDataSchema: z.ZodObject<{
434
434
  disputesLost?: number | undefined;
435
435
  abuseReportsVerified?: number | undefined;
436
436
  } | undefined;
437
- createdAt?: string | undefined;
438
437
  metadata?: Record<string, unknown> | undefined;
438
+ createdAt?: string | undefined;
439
439
  mcpLevel?: number | undefined;
440
440
  credentials?: {
441
441
  identityVerified?: boolean | undefined;
@@ -899,8 +899,8 @@ export declare const ScoreChangePredictionRequestSchema: z.ZodObject<{
899
899
  negativeReviews: number;
900
900
  averageRating?: number | undefined;
901
901
  };
902
- createdAt?: string | undefined;
903
902
  metadata?: Record<string, unknown> | undefined;
903
+ createdAt?: string | undefined;
904
904
  }, {
905
905
  did: string;
906
906
  issues?: {
@@ -908,8 +908,8 @@ export declare const ScoreChangePredictionRequestSchema: z.ZodObject<{
908
908
  disputesLost?: number | undefined;
909
909
  abuseReportsVerified?: number | undefined;
910
910
  } | undefined;
911
- createdAt?: string | undefined;
912
911
  metadata?: Record<string, unknown> | undefined;
912
+ createdAt?: string | undefined;
913
913
  mcpLevel?: number | undefined;
914
914
  credentials?: {
915
915
  identityVerified?: boolean | undefined;
@@ -1044,8 +1044,8 @@ export declare const ScoreChangePredictionRequestSchema: z.ZodObject<{
1044
1044
  negativeReviews: number;
1045
1045
  averageRating?: number | undefined;
1046
1046
  };
1047
- createdAt?: string | undefined;
1048
1047
  metadata?: Record<string, unknown> | undefined;
1048
+ createdAt?: string | undefined;
1049
1049
  };
1050
1050
  config?: {
1051
1051
  kValue: number;
@@ -1072,8 +1072,8 @@ export declare const ScoreChangePredictionRequestSchema: z.ZodObject<{
1072
1072
  disputesLost?: number | undefined;
1073
1073
  abuseReportsVerified?: number | undefined;
1074
1074
  } | undefined;
1075
- createdAt?: string | undefined;
1076
1075
  metadata?: Record<string, unknown> | undefined;
1076
+ createdAt?: string | undefined;
1077
1077
  mcpLevel?: number | undefined;
1078
1078
  credentials?: {
1079
1079
  identityVerified?: boolean | undefined;
@@ -1436,8 +1436,8 @@ export declare function validateAgentData(data: unknown): z.SafeParseReturnType<
1436
1436
  disputesLost?: number | undefined;
1437
1437
  abuseReportsVerified?: number | undefined;
1438
1438
  } | undefined;
1439
- createdAt?: string | undefined;
1440
1439
  metadata?: Record<string, unknown> | undefined;
1440
+ createdAt?: string | undefined;
1441
1441
  mcpLevel?: number | undefined;
1442
1442
  credentials?: {
1443
1443
  identityVerified?: boolean | undefined;
@@ -1487,8 +1487,8 @@ export declare function validateAgentData(data: unknown): z.SafeParseReturnType<
1487
1487
  negativeReviews: number;
1488
1488
  averageRating?: number | undefined;
1489
1489
  };
1490
- createdAt?: string | undefined;
1491
1490
  metadata?: Record<string, unknown> | undefined;
1491
+ createdAt?: string | undefined;
1492
1492
  }>;
1493
1493
  /**
1494
1494
  * Validate reputation score