@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.
Files changed (44) hide show
  1. package/dist/agent-deployment-utils.d.ts +20 -0
  2. package/dist/agent-deployment-utils.js +37 -0
  3. package/dist/agent-deployment.d.ts +19 -19
  4. package/dist/agent-deployment.js +2 -1
  5. package/dist/agentshield-api/admin-schemas.d.ts +2 -2
  6. package/dist/agentshield-api/schemas.d.ts +462 -462
  7. package/dist/audit/index.d.ts +24 -24
  8. package/dist/cli.d.ts +44 -44
  9. package/dist/compute-binding.d.ts +6 -6
  10. package/dist/compute.d.ts +27 -8
  11. package/dist/compute.js +6 -0
  12. package/dist/config/identity.d.ts +98 -98
  13. package/dist/consent/schemas.d.ts +72 -72
  14. package/dist/dashboard-config/schemas.d.ts +2191 -2191
  15. package/dist/delegation/constraints.d.ts +32 -32
  16. package/dist/delegation/schemas.d.ts +610 -610
  17. package/dist/deploy/schemas.d.ts +84 -84
  18. package/dist/gateway/index.d.ts +579 -0
  19. package/dist/gateway/index.js +103 -0
  20. package/dist/handshake.d.ts +42 -42
  21. package/dist/index.d.ts +1 -0
  22. package/dist/index.js +2 -0
  23. package/dist/molti/admin-ws.d.ts +116 -116
  24. package/dist/molti/schemas.d.ts +98 -98
  25. package/dist/openclaw/index.d.ts +20 -0
  26. package/dist/openclaw/index.js +28 -0
  27. package/dist/openclaw/types.d.ts +714 -0
  28. package/dist/openclaw/types.js +122 -0
  29. package/dist/pairing/index.d.ts +44 -0
  30. package/dist/pairing/index.js +11 -0
  31. package/dist/policy/schemas.d.ts +553 -553
  32. package/dist/proof/proof-record.d.ts +48 -48
  33. package/dist/proof/signing-spec.d.ts +8 -8
  34. package/dist/proof.d.ts +68 -68
  35. package/dist/registry.d.ts +24 -24
  36. package/dist/reputation/api.d.ts +156 -156
  37. package/dist/reputation/credentials.d.ts +48 -48
  38. package/dist/reputation/schemas.d.ts +48 -48
  39. package/dist/test.d.ts +22 -22
  40. package/dist/tlkrc/rotation.d.ts +12 -12
  41. package/dist/tool-protection/index.d.ts +22 -22
  42. package/dist/verifier.d.ts +17 -17
  43. package/dist/well-known/index.d.ts +72 -72
  44. package/package.json +10 -2
@@ -626,18 +626,18 @@ export declare const ReputationScoreSchema: z.ZodObject<{
626
626
  agentDid: z.ZodString;
627
627
  }, "strip", z.ZodTypeAny, {
628
628
  agentDid: string;
629
- confidence: number;
630
629
  score: number;
630
+ confidence: number;
631
631
  confidenceLevel: "Low" | "Medium" | "High" | "VeryHigh";
632
632
  level: "Unknown" | "Poor" | "BelowAverage" | "Average" | "Good" | "Excellent" | "Outstanding";
633
+ isProvisional: boolean;
634
+ calculatedAt: string;
633
635
  components: {
634
636
  priorScore: number;
635
637
  empiricalScore: number;
636
638
  confidenceWeight: number;
637
639
  priorWeight: number;
638
640
  };
639
- isProvisional: boolean;
640
- calculatedAt: string;
641
641
  factors?: {
642
642
  interactionScore: number;
643
643
  consistencyScore: number;
@@ -647,18 +647,18 @@ export declare const ReputationScoreSchema: z.ZodObject<{
647
647
  } | undefined;
648
648
  }, {
649
649
  agentDid: string;
650
- confidence: number;
651
650
  score: number;
651
+ confidence: number;
652
652
  confidenceLevel: "Low" | "Medium" | "High" | "VeryHigh";
653
653
  level: "Unknown" | "Poor" | "BelowAverage" | "Average" | "Good" | "Excellent" | "Outstanding";
654
+ isProvisional: boolean;
655
+ calculatedAt: string;
654
656
  components: {
655
657
  priorScore: number;
656
658
  empiricalScore: number;
657
659
  confidenceWeight: number;
658
660
  priorWeight: number;
659
661
  };
660
- isProvisional: boolean;
661
- calculatedAt: string;
662
662
  factors?: {
663
663
  interactionScore: number;
664
664
  consistencyScore: number;
@@ -1010,12 +1010,6 @@ export declare const ScoreChangePredictionRequestSchema: z.ZodObject<{
1010
1010
  maxPriorScore?: number | undefined;
1011
1011
  }>>;
1012
1012
  }, "strip", z.ZodTypeAny, {
1013
- changes: {
1014
- additionalReviews?: number | undefined;
1015
- newAverageRating?: number | undefined;
1016
- additionalInteractions?: number | undefined;
1017
- additionalSuccessfulInteractions?: number | undefined;
1018
- };
1019
1013
  current: {
1020
1014
  issues: {
1021
1015
  disputesFiled: number;
@@ -1047,6 +1041,12 @@ export declare const ScoreChangePredictionRequestSchema: z.ZodObject<{
1047
1041
  metadata?: Record<string, unknown> | undefined;
1048
1042
  createdAt?: string | undefined;
1049
1043
  };
1044
+ changes: {
1045
+ additionalReviews?: number | undefined;
1046
+ newAverageRating?: number | undefined;
1047
+ additionalInteractions?: number | undefined;
1048
+ additionalSuccessfulInteractions?: number | undefined;
1049
+ };
1050
1050
  config?: {
1051
1051
  kValue: number;
1052
1052
  basePriorScore: number;
@@ -1059,12 +1059,6 @@ export declare const ScoreChangePredictionRequestSchema: z.ZodObject<{
1059
1059
  } | undefined;
1060
1060
  } | undefined;
1061
1061
  }, {
1062
- changes: {
1063
- additionalReviews?: number | undefined;
1064
- newAverageRating?: number | undefined;
1065
- additionalInteractions?: number | undefined;
1066
- additionalSuccessfulInteractions?: number | undefined;
1067
- };
1068
1062
  current: {
1069
1063
  did: string;
1070
1064
  issues?: {
@@ -1096,6 +1090,12 @@ export declare const ScoreChangePredictionRequestSchema: z.ZodObject<{
1096
1090
  negativeReviews?: number | undefined;
1097
1091
  } | undefined;
1098
1092
  };
1093
+ changes: {
1094
+ additionalReviews?: number | undefined;
1095
+ newAverageRating?: number | undefined;
1096
+ additionalInteractions?: number | undefined;
1097
+ additionalSuccessfulInteractions?: number | undefined;
1098
+ };
1099
1099
  config?: {
1100
1100
  kValue?: number | undefined;
1101
1101
  preset?: "Testing" | "Conservative" | "Aggressive" | undefined;
@@ -1177,18 +1177,18 @@ export declare const ScoreChangePredictionResponseSchema: z.ZodObject<{
1177
1177
  agentDid: z.ZodString;
1178
1178
  }, "strip", z.ZodTypeAny, {
1179
1179
  agentDid: string;
1180
- confidence: number;
1181
1180
  score: number;
1181
+ confidence: number;
1182
1182
  confidenceLevel: "Low" | "Medium" | "High" | "VeryHigh";
1183
1183
  level: "Unknown" | "Poor" | "BelowAverage" | "Average" | "Good" | "Excellent" | "Outstanding";
1184
+ isProvisional: boolean;
1185
+ calculatedAt: string;
1184
1186
  components: {
1185
1187
  priorScore: number;
1186
1188
  empiricalScore: number;
1187
1189
  confidenceWeight: number;
1188
1190
  priorWeight: number;
1189
1191
  };
1190
- isProvisional: boolean;
1191
- calculatedAt: string;
1192
1192
  factors?: {
1193
1193
  interactionScore: number;
1194
1194
  consistencyScore: number;
@@ -1198,18 +1198,18 @@ export declare const ScoreChangePredictionResponseSchema: z.ZodObject<{
1198
1198
  } | undefined;
1199
1199
  }, {
1200
1200
  agentDid: string;
1201
- confidence: number;
1202
1201
  score: number;
1202
+ confidence: number;
1203
1203
  confidenceLevel: "Low" | "Medium" | "High" | "VeryHigh";
1204
1204
  level: "Unknown" | "Poor" | "BelowAverage" | "Average" | "Good" | "Excellent" | "Outstanding";
1205
+ isProvisional: boolean;
1206
+ calculatedAt: string;
1205
1207
  components: {
1206
1208
  priorScore: number;
1207
1209
  empiricalScore: number;
1208
1210
  confidenceWeight: number;
1209
1211
  priorWeight: number;
1210
1212
  };
1211
- isProvisional: boolean;
1212
- calculatedAt: string;
1213
1213
  factors?: {
1214
1214
  interactionScore: number;
1215
1215
  consistencyScore: number;
@@ -1282,18 +1282,18 @@ export declare const ScoreChangePredictionResponseSchema: z.ZodObject<{
1282
1282
  agentDid: z.ZodString;
1283
1283
  }, "strip", z.ZodTypeAny, {
1284
1284
  agentDid: string;
1285
- confidence: number;
1286
1285
  score: number;
1286
+ confidence: number;
1287
1287
  confidenceLevel: "Low" | "Medium" | "High" | "VeryHigh";
1288
1288
  level: "Unknown" | "Poor" | "BelowAverage" | "Average" | "Good" | "Excellent" | "Outstanding";
1289
+ isProvisional: boolean;
1290
+ calculatedAt: string;
1289
1291
  components: {
1290
1292
  priorScore: number;
1291
1293
  empiricalScore: number;
1292
1294
  confidenceWeight: number;
1293
1295
  priorWeight: number;
1294
1296
  };
1295
- isProvisional: boolean;
1296
- calculatedAt: string;
1297
1297
  factors?: {
1298
1298
  interactionScore: number;
1299
1299
  consistencyScore: number;
@@ -1303,18 +1303,18 @@ export declare const ScoreChangePredictionResponseSchema: z.ZodObject<{
1303
1303
  } | undefined;
1304
1304
  }, {
1305
1305
  agentDid: string;
1306
- confidence: number;
1307
1306
  score: number;
1307
+ confidence: number;
1308
1308
  confidenceLevel: "Low" | "Medium" | "High" | "VeryHigh";
1309
1309
  level: "Unknown" | "Poor" | "BelowAverage" | "Average" | "Good" | "Excellent" | "Outstanding";
1310
+ isProvisional: boolean;
1311
+ calculatedAt: string;
1310
1312
  components: {
1311
1313
  priorScore: number;
1312
1314
  empiricalScore: number;
1313
1315
  confidenceWeight: number;
1314
1316
  priorWeight: number;
1315
1317
  };
1316
- isProvisional: boolean;
1317
- calculatedAt: string;
1318
1318
  factors?: {
1319
1319
  interactionScore: number;
1320
1320
  consistencyScore: number;
@@ -1330,18 +1330,18 @@ export declare const ScoreChangePredictionResponseSchema: z.ZodObject<{
1330
1330
  }, "strip", z.ZodTypeAny, {
1331
1331
  currentScore: {
1332
1332
  agentDid: string;
1333
- confidence: number;
1334
1333
  score: number;
1334
+ confidence: number;
1335
1335
  confidenceLevel: "Low" | "Medium" | "High" | "VeryHigh";
1336
1336
  level: "Unknown" | "Poor" | "BelowAverage" | "Average" | "Good" | "Excellent" | "Outstanding";
1337
+ isProvisional: boolean;
1338
+ calculatedAt: string;
1337
1339
  components: {
1338
1340
  priorScore: number;
1339
1341
  empiricalScore: number;
1340
1342
  confidenceWeight: number;
1341
1343
  priorWeight: number;
1342
1344
  };
1343
- isProvisional: boolean;
1344
- calculatedAt: string;
1345
1345
  factors?: {
1346
1346
  interactionScore: number;
1347
1347
  consistencyScore: number;
@@ -1352,18 +1352,18 @@ export declare const ScoreChangePredictionResponseSchema: z.ZodObject<{
1352
1352
  };
1353
1353
  predictedScore: {
1354
1354
  agentDid: string;
1355
- confidence: number;
1356
1355
  score: number;
1356
+ confidence: number;
1357
1357
  confidenceLevel: "Low" | "Medium" | "High" | "VeryHigh";
1358
1358
  level: "Unknown" | "Poor" | "BelowAverage" | "Average" | "Good" | "Excellent" | "Outstanding";
1359
+ isProvisional: boolean;
1360
+ calculatedAt: string;
1359
1361
  components: {
1360
1362
  priorScore: number;
1361
1363
  empiricalScore: number;
1362
1364
  confidenceWeight: number;
1363
1365
  priorWeight: number;
1364
1366
  };
1365
- isProvisional: boolean;
1366
- calculatedAt: string;
1367
1367
  factors?: {
1368
1368
  interactionScore: number;
1369
1369
  consistencyScore: number;
@@ -1377,18 +1377,18 @@ export declare const ScoreChangePredictionResponseSchema: z.ZodObject<{
1377
1377
  }, {
1378
1378
  currentScore: {
1379
1379
  agentDid: string;
1380
- confidence: number;
1381
1380
  score: number;
1381
+ confidence: number;
1382
1382
  confidenceLevel: "Low" | "Medium" | "High" | "VeryHigh";
1383
1383
  level: "Unknown" | "Poor" | "BelowAverage" | "Average" | "Good" | "Excellent" | "Outstanding";
1384
+ isProvisional: boolean;
1385
+ calculatedAt: string;
1384
1386
  components: {
1385
1387
  priorScore: number;
1386
1388
  empiricalScore: number;
1387
1389
  confidenceWeight: number;
1388
1390
  priorWeight: number;
1389
1391
  };
1390
- isProvisional: boolean;
1391
- calculatedAt: string;
1392
1392
  factors?: {
1393
1393
  interactionScore: number;
1394
1394
  consistencyScore: number;
@@ -1399,18 +1399,18 @@ export declare const ScoreChangePredictionResponseSchema: z.ZodObject<{
1399
1399
  };
1400
1400
  predictedScore: {
1401
1401
  agentDid: string;
1402
- confidence: number;
1403
1402
  score: number;
1403
+ confidence: number;
1404
1404
  confidenceLevel: "Low" | "Medium" | "High" | "VeryHigh";
1405
1405
  level: "Unknown" | "Poor" | "BelowAverage" | "Average" | "Good" | "Excellent" | "Outstanding";
1406
+ isProvisional: boolean;
1407
+ calculatedAt: string;
1406
1408
  components: {
1407
1409
  priorScore: number;
1408
1410
  empiricalScore: number;
1409
1411
  confidenceWeight: number;
1410
1412
  priorWeight: number;
1411
1413
  };
1412
- isProvisional: boolean;
1413
- calculatedAt: string;
1414
1414
  factors?: {
1415
1415
  interactionScore: number;
1416
1416
  consistencyScore: number;
@@ -1498,18 +1498,18 @@ export declare function validateAgentData(data: unknown): z.SafeParseReturnType<
1498
1498
  */
1499
1499
  export declare function validateReputationScore(score: unknown): z.SafeParseReturnType<{
1500
1500
  agentDid: string;
1501
- confidence: number;
1502
1501
  score: number;
1502
+ confidence: number;
1503
1503
  confidenceLevel: "Low" | "Medium" | "High" | "VeryHigh";
1504
1504
  level: "Unknown" | "Poor" | "BelowAverage" | "Average" | "Good" | "Excellent" | "Outstanding";
1505
+ isProvisional: boolean;
1506
+ calculatedAt: string;
1505
1507
  components: {
1506
1508
  priorScore: number;
1507
1509
  empiricalScore: number;
1508
1510
  confidenceWeight: number;
1509
1511
  priorWeight: number;
1510
1512
  };
1511
- isProvisional: boolean;
1512
- calculatedAt: string;
1513
1513
  factors?: {
1514
1514
  interactionScore: number;
1515
1515
  consistencyScore: number;
@@ -1519,18 +1519,18 @@ export declare function validateReputationScore(score: unknown): z.SafeParseRetu
1519
1519
  } | undefined;
1520
1520
  }, {
1521
1521
  agentDid: string;
1522
- confidence: number;
1523
1522
  score: number;
1523
+ confidence: number;
1524
1524
  confidenceLevel: "Low" | "Medium" | "High" | "VeryHigh";
1525
1525
  level: "Unknown" | "Poor" | "BelowAverage" | "Average" | "Good" | "Excellent" | "Outstanding";
1526
+ isProvisional: boolean;
1527
+ calculatedAt: string;
1526
1528
  components: {
1527
1529
  priorScore: number;
1528
1530
  empiricalScore: number;
1529
1531
  confidenceWeight: number;
1530
1532
  priorWeight: number;
1531
1533
  };
1532
- isProvisional: boolean;
1533
- calculatedAt: string;
1534
1534
  factors?: {
1535
1535
  interactionScore: number;
1536
1536
  consistencyScore: number;
package/dist/test.d.ts CHANGED
@@ -38,16 +38,16 @@ export declare const MockIdentitySchema: z.ZodObject<{
38
38
  }, "strip", z.ZodTypeAny, {
39
39
  did: string;
40
40
  publicKey: string;
41
- privateKey: string;
42
41
  createdAt: string;
43
42
  kid: string;
43
+ privateKey: string;
44
44
  lastRotated?: string | undefined;
45
45
  }, {
46
46
  did: string;
47
47
  publicKey: string;
48
- privateKey: string;
49
48
  createdAt: string;
50
49
  kid: string;
50
+ privateKey: string;
51
51
  lastRotated?: string | undefined;
52
52
  }>;
53
53
  export type MockIdentity = z.infer<typeof MockIdentitySchema>;
@@ -75,44 +75,44 @@ export declare const MockIdentityProviderConfigSchema: z.ZodObject<{
75
75
  }, "strip", z.ZodTypeAny, {
76
76
  did: string;
77
77
  publicKey: string;
78
- privateKey: string;
79
78
  createdAt: string;
80
79
  kid: string;
80
+ privateKey: string;
81
81
  lastRotated?: string | undefined;
82
82
  }, {
83
83
  did: string;
84
84
  publicKey: string;
85
- privateKey: string;
86
85
  createdAt: string;
87
86
  kid: string;
87
+ privateKey: string;
88
88
  lastRotated?: string | undefined;
89
89
  }>>;
90
90
  delegations: z.ZodRecord<z.ZodString, z.ZodEnum<["active", "revoked", "pending"]>>;
91
91
  ktaFailures: z.ZodDefault<z.ZodArray<z.ZodEnum<["network", "auth", "invalid", "timeout"]>, "many">>;
92
92
  deterministicSeed: z.ZodOptional<z.ZodString>;
93
93
  }, "strip", z.ZodTypeAny, {
94
+ delegations: Record<string, "pending" | "active" | "revoked">;
94
95
  identities: Record<string, {
95
96
  did: string;
96
97
  publicKey: string;
97
- privateKey: string;
98
98
  createdAt: string;
99
99
  kid: string;
100
+ privateKey: string;
100
101
  lastRotated?: string | undefined;
101
102
  }>;
102
- delegations: Record<string, "revoked" | "pending" | "active">;
103
- ktaFailures: ("network" | "auth" | "invalid" | "timeout")[];
103
+ ktaFailures: ("timeout" | "network" | "auth" | "invalid")[];
104
104
  deterministicSeed?: string | undefined;
105
105
  }, {
106
+ delegations: Record<string, "pending" | "active" | "revoked">;
106
107
  identities: Record<string, {
107
108
  did: string;
108
109
  publicKey: string;
109
- privateKey: string;
110
110
  createdAt: string;
111
111
  kid: string;
112
+ privateKey: string;
112
113
  lastRotated?: string | undefined;
113
114
  }>;
114
- delegations: Record<string, "revoked" | "pending" | "active">;
115
- ktaFailures?: ("network" | "auth" | "invalid" | "timeout")[] | undefined;
115
+ ktaFailures?: ("timeout" | "network" | "auth" | "invalid")[] | undefined;
116
116
  deterministicSeed?: string | undefined;
117
117
  }>;
118
118
  export type MockIdentityProviderConfig = z.infer<typeof MockIdentityProviderConfigSchema>;
@@ -172,17 +172,12 @@ export declare const LocalVerificationResultSchema: z.ZodObject<{
172
172
  warnings: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
173
173
  }, "strip", z.ZodTypeAny, {
174
174
  valid: boolean;
175
- warnings: string[];
176
- session: {
177
- valid: boolean;
178
- expired: boolean;
179
- error?: string | undefined;
180
- };
181
175
  signature: {
182
176
  valid: boolean;
183
177
  algorithm: string;
184
178
  error?: string | undefined;
185
179
  };
180
+ errors: string[];
186
181
  proof: {
187
182
  valid: boolean;
188
183
  structure: boolean;
@@ -190,16 +185,16 @@ export declare const LocalVerificationResultSchema: z.ZodObject<{
190
185
  hashes: boolean;
191
186
  error?: string | undefined;
192
187
  };
193
- errors: string[];
194
- did?: string | undefined;
195
- kid?: string | undefined;
196
- }, {
197
- valid: boolean;
188
+ warnings: string[];
198
189
  session: {
199
190
  valid: boolean;
200
191
  expired: boolean;
201
192
  error?: string | undefined;
202
193
  };
194
+ did?: string | undefined;
195
+ kid?: string | undefined;
196
+ }, {
197
+ valid: boolean;
203
198
  signature: {
204
199
  valid: boolean;
205
200
  algorithm: string;
@@ -212,10 +207,15 @@ export declare const LocalVerificationResultSchema: z.ZodObject<{
212
207
  hashes: boolean;
213
208
  error?: string | undefined;
214
209
  };
210
+ session: {
211
+ valid: boolean;
212
+ expired: boolean;
213
+ error?: string | undefined;
214
+ };
215
215
  did?: string | undefined;
216
+ errors?: string[] | undefined;
216
217
  kid?: string | undefined;
217
218
  warnings?: string[] | undefined;
218
- errors?: string[] | undefined;
219
219
  }>;
220
220
  export type LocalVerificationResult = z.infer<typeof LocalVerificationResultSchema>;
221
221
  /**
@@ -37,43 +37,43 @@ export declare const RotationEventSchema: z.ZodEffects<z.ZodObject<{
37
37
  /** Optional metadata */
38
38
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
39
39
  }, "strip", z.ZodTypeAny, {
40
- signature: string;
41
40
  issuerDid: string;
42
41
  prevKeyId: string;
43
42
  nextKeyId: string;
44
43
  effectiveAt: number;
45
44
  issuedAt: number;
46
45
  seq: number;
46
+ signature: string;
47
47
  metadata?: Record<string, any> | undefined;
48
48
  prevEventHash?: string | undefined;
49
49
  }, {
50
- signature: string;
51
50
  issuerDid: string;
52
51
  prevKeyId: string;
53
52
  nextKeyId: string;
54
53
  effectiveAt: number;
55
54
  issuedAt: number;
56
55
  seq: number;
56
+ signature: string;
57
57
  metadata?: Record<string, any> | undefined;
58
58
  prevEventHash?: string | undefined;
59
59
  }>, {
60
- signature: string;
61
60
  issuerDid: string;
62
61
  prevKeyId: string;
63
62
  nextKeyId: string;
64
63
  effectiveAt: number;
65
64
  issuedAt: number;
66
65
  seq: number;
66
+ signature: string;
67
67
  metadata?: Record<string, any> | undefined;
68
68
  prevEventHash?: string | undefined;
69
69
  }, {
70
- signature: string;
71
70
  issuerDid: string;
72
71
  prevKeyId: string;
73
72
  nextKeyId: string;
74
73
  effectiveAt: number;
75
74
  issuedAt: number;
76
75
  seq: number;
76
+ signature: string;
77
77
  metadata?: Record<string, any> | undefined;
78
78
  prevEventHash?: string | undefined;
79
79
  }>;
@@ -107,43 +107,43 @@ export declare const RotationChainSchema: z.ZodObject<{
107
107
  /** Optional metadata */
108
108
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
109
109
  }, "strip", z.ZodTypeAny, {
110
- signature: string;
111
110
  issuerDid: string;
112
111
  prevKeyId: string;
113
112
  nextKeyId: string;
114
113
  effectiveAt: number;
115
114
  issuedAt: number;
116
115
  seq: number;
116
+ signature: string;
117
117
  metadata?: Record<string, any> | undefined;
118
118
  prevEventHash?: string | undefined;
119
119
  }, {
120
- signature: string;
121
120
  issuerDid: string;
122
121
  prevKeyId: string;
123
122
  nextKeyId: string;
124
123
  effectiveAt: number;
125
124
  issuedAt: number;
126
125
  seq: number;
126
+ signature: string;
127
127
  metadata?: Record<string, any> | undefined;
128
128
  prevEventHash?: string | undefined;
129
129
  }>, {
130
- signature: string;
131
130
  issuerDid: string;
132
131
  prevKeyId: string;
133
132
  nextKeyId: string;
134
133
  effectiveAt: number;
135
134
  issuedAt: number;
136
135
  seq: number;
136
+ signature: string;
137
137
  metadata?: Record<string, any> | undefined;
138
138
  prevEventHash?: string | undefined;
139
139
  }, {
140
- signature: string;
141
140
  issuerDid: string;
142
141
  prevKeyId: string;
143
142
  nextKeyId: string;
144
143
  effectiveAt: number;
145
144
  issuedAt: number;
146
145
  seq: number;
146
+ signature: string;
147
147
  metadata?: Record<string, any> | undefined;
148
148
  prevEventHash?: string | undefined;
149
149
  }>, "many">;
@@ -157,13 +157,13 @@ export declare const RotationChainSchema: z.ZodObject<{
157
157
  valid: boolean;
158
158
  issuerDid: string;
159
159
  events: {
160
- signature: string;
161
160
  issuerDid: string;
162
161
  prevKeyId: string;
163
162
  nextKeyId: string;
164
163
  effectiveAt: number;
165
164
  issuedAt: number;
166
165
  seq: number;
166
+ signature: string;
167
167
  metadata?: Record<string, any> | undefined;
168
168
  prevEventHash?: string | undefined;
169
169
  }[];
@@ -173,13 +173,13 @@ export declare const RotationChainSchema: z.ZodObject<{
173
173
  valid: boolean;
174
174
  issuerDid: string;
175
175
  events: {
176
- signature: string;
177
176
  issuerDid: string;
178
177
  prevKeyId: string;
179
178
  nextKeyId: string;
180
179
  effectiveAt: number;
181
180
  issuedAt: number;
182
181
  seq: number;
182
+ signature: string;
183
183
  metadata?: Record<string, any> | undefined;
184
184
  prevEventHash?: string | undefined;
185
185
  }[];
@@ -197,23 +197,23 @@ export type RotationChain = z.infer<typeof RotationChainSchema>;
197
197
  * @returns Validation result
198
198
  */
199
199
  export declare function validateRotationEvent(event: unknown): z.SafeParseReturnType<{
200
- signature: string;
201
200
  issuerDid: string;
202
201
  prevKeyId: string;
203
202
  nextKeyId: string;
204
203
  effectiveAt: number;
205
204
  issuedAt: number;
206
205
  seq: number;
206
+ signature: string;
207
207
  metadata?: Record<string, any> | undefined;
208
208
  prevEventHash?: string | undefined;
209
209
  }, {
210
- signature: string;
211
210
  issuerDid: string;
212
211
  prevKeyId: string;
213
212
  nextKeyId: string;
214
213
  effectiveAt: number;
215
214
  issuedAt: number;
216
215
  seq: number;
216
+ signature: string;
217
217
  metadata?: Record<string, any> | undefined;
218
218
  prevEventHash?: string | undefined;
219
219
  }>;