@sealkeeper/schema 0.4.3 → 0.4.5

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 (54) hide show
  1. package/dist/agent-name.d.ts +1 -1
  2. package/dist/agent-name.js +4 -4
  3. package/dist/api.d.ts +744 -27
  4. package/dist/api.js +232 -43
  5. package/dist/badge.d.ts +1 -0
  6. package/dist/badge.js +7 -0
  7. package/dist/credential.d.ts +186 -1
  8. package/dist/credential.js +55 -8
  9. package/dist/db/agents.d.ts +70 -0
  10. package/dist/db/agents.js +18 -0
  11. package/dist/db/client.d.ts +398 -0
  12. package/dist/db/client.js +2 -0
  13. package/dist/db/events.js +7 -0
  14. package/dist/db/index.d.ts +17 -1
  15. package/dist/db/index.js +5 -1
  16. package/dist/db/migrate.js +5 -1
  17. package/dist/db/migrator.d.ts +3 -1
  18. package/dist/db/migrator.js +8 -2
  19. package/dist/db/operator-identities.d.ts +211 -0
  20. package/dist/db/operator-identities.js +49 -0
  21. package/dist/db/operator-level-grants.d.ts +109 -0
  22. package/dist/db/operator-level-grants.js +30 -0
  23. package/dist/db/operator-slugs.d.ts +92 -0
  24. package/dist/db/operator-slugs.js +25 -0
  25. package/dist/db/operators.d.ts +119 -0
  26. package/dist/db/operators.js +30 -2
  27. package/dist/db/standing.d.ts +36 -0
  28. package/dist/db/standing.js +5 -0
  29. package/dist/db/task-claim-failures.d.ts +143 -0
  30. package/dist/db/task-claim-failures.js +37 -0
  31. package/dist/db/task-outcomes.d.ts +19 -0
  32. package/dist/db/task-outcomes.js +8 -1
  33. package/dist/db/tasks.d.ts +79 -0
  34. package/dist/db/tasks.js +19 -1
  35. package/dist/envelope.d.ts +3 -0
  36. package/dist/envelope.js +16 -11
  37. package/dist/goal.d.ts +149 -0
  38. package/dist/goal.js +171 -0
  39. package/dist/index.d.ts +6 -0
  40. package/dist/index.js +6 -0
  41. package/dist/moderation.d.ts +28 -0
  42. package/dist/moderation.js +450 -0
  43. package/dist/operator-domains.d.ts +104 -0
  44. package/dist/operator-domains.js +85 -0
  45. package/dist/policy.d.ts +4 -0
  46. package/dist/policy.js +10 -0
  47. package/dist/runtime.d.ts +17 -0
  48. package/dist/runtime.js +61 -0
  49. package/dist/seal-conformance.js +32 -1
  50. package/dist/standing.d.ts +68 -0
  51. package/dist/standing.js +132 -6
  52. package/dist/tasks.d.ts +23 -1
  53. package/dist/tasks.js +29 -5
  54. package/package.json +1 -1
package/dist/api.d.ts CHANGED
@@ -21,10 +21,26 @@ export declare const RegisterAgentRequest: z.ZodObject<{
21
21
  githubToken: z.ZodString;
22
22
  name: z.ZodString;
23
23
  version: z.ZodString;
24
+ runtime: z.ZodOptional<z.ZodEnum<{
25
+ "claude-code": "claude-code";
26
+ codex: "codex";
27
+ cursor: "cursor";
28
+ "gemini-cli": "gemini-cli";
29
+ mastra: "mastra";
30
+ openclaw: "openclaw";
31
+ other: "other";
32
+ unknown: "unknown";
33
+ }>>;
24
34
  }, z.core.$strict>;
25
35
  export type RegisterAgentRequest = z.infer<typeof RegisterAgentRequest>;
36
+ export declare const OperatorRef: z.ZodObject<{
37
+ slug: z.ZodString;
38
+ displayName: z.ZodString;
39
+ }, z.core.$strict>;
40
+ export type OperatorRef = z.infer<typeof OperatorRef>;
26
41
  export declare const AgentHandle: z.ZodString;
27
42
  export type AgentHandle = z.infer<typeof AgentHandle>;
43
+ export declare const avatarPath: (id: string) => string;
28
44
  export declare const AgentCounts: z.ZodObject<{
29
45
  events: z.ZodInt;
30
46
  verifiedTasks: z.ZodInt;
@@ -40,6 +56,8 @@ export declare const AgentResponse: z.ZodObject<{
40
56
  version: z.ZodString;
41
57
  operator: z.ZodObject<{
42
58
  login: z.ZodString;
59
+ slug: z.ZodOptional<z.ZodString>;
60
+ displayName: z.ZodOptional<z.ZodString>;
43
61
  }, z.core.$strict>;
44
62
  createdAt: z.ZodISODateTime;
45
63
  operatedBySealKeeper: z.ZodOptional<z.ZodBoolean>;
@@ -72,14 +90,34 @@ export declare const AgentResponse: z.ZodObject<{
72
90
  distinct_operators: z.ZodInt;
73
91
  safety_incidents_90d: z.ZodInt;
74
92
  }, z.core.$strict>;
93
+ counted: z.ZodObject<{
94
+ verified_tasks: z.ZodInt;
95
+ seed_tasks: z.ZodInt;
96
+ server_checked_tasks: z.ZodInt;
97
+ confirmed_tasks: z.ZodInt;
98
+ }, z.core.$strict>;
75
99
  history_days: z.ZodInt;
76
100
  last_active: z.ZodNullable<z.ZodISODateTime>;
77
101
  dormant_days: z.ZodNullable<z.ZodInt>;
78
102
  quiet: z.ZodBoolean;
79
103
  }, z.core.$strict>>;
104
+ runtime: z.ZodOptional<z.ZodEnum<{
105
+ "claude-code": "claude-code";
106
+ codex: "codex";
107
+ cursor: "cursor";
108
+ "gemini-cli": "gemini-cli";
109
+ mastra: "mastra";
110
+ openclaw: "openclaw";
111
+ other: "other";
112
+ unknown: "unknown";
113
+ }>>;
114
+ model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
115
+ avatarUrl: z.ZodOptional<z.ZodURL>;
80
116
  }, z.core.$strict>;
81
117
  export type AgentResponse = z.infer<typeof AgentResponse>;
82
- export declare const RENAME_REDIRECT_DAYS = 30;
118
+ export declare const RENAME_REDIRECT_DAYS = 90;
119
+ export declare const SLUG_REDIRECT_DAYS = 90;
120
+ export declare const SLUG_CHANGE_DAYS = 30;
83
121
  export declare const RENAME_MAX_AGE_SEC = 300;
84
122
  export declare const RenameAgentRequest: z.ZodObject<{
85
123
  name: z.ZodString;
@@ -95,6 +133,16 @@ export type ChangeVersionRequest = z.infer<typeof ChangeVersionRequest>;
95
133
  export declare const UpdateAgentRequest: z.ZodObject<{
96
134
  name: z.ZodOptional<z.ZodString>;
97
135
  version: z.ZodOptional<z.ZodString>;
136
+ runtime: z.ZodOptional<z.ZodEnum<{
137
+ "claude-code": "claude-code";
138
+ codex: "codex";
139
+ cursor: "cursor";
140
+ "gemini-cli": "gemini-cli";
141
+ mastra: "mastra";
142
+ openclaw: "openclaw";
143
+ other: "other";
144
+ unknown: "unknown";
145
+ }>>;
98
146
  issuedAt: z.ZodISODateTime;
99
147
  }, z.core.$strict>;
100
148
  export type UpdateAgentRequest = z.infer<typeof UpdateAgentRequest>;
@@ -112,8 +160,9 @@ export declare const DeleteAgentBody: z.ZodUnion<readonly [z.ZodObject<{
112
160
  }, z.core.$strict>, z.ZodObject<{}, z.core.$strict>]>;
113
161
  export type DeleteAgentBody = z.infer<typeof DeleteAgentBody>;
114
162
  export declare const GithubLogin: z.ZodString;
163
+ export declare const HandleSlug: z.ZodString;
115
164
  export declare const AgentHandleParams: z.ZodObject<{
116
- login: z.ZodString;
165
+ slug: z.ZodString;
117
166
  name: z.ZodString;
118
167
  }, z.core.$strict>;
119
168
  export type AgentHandleParams = z.infer<typeof AgentHandleParams>;
@@ -155,7 +204,8 @@ export declare const AgentSummary: z.ZodObject<{
155
204
  handle: z.ZodString;
156
205
  version: z.ZodString;
157
206
  operator: z.ZodObject<{
158
- login: z.ZodString;
207
+ slug: z.ZodString;
208
+ displayName: z.ZodString;
159
209
  }, z.core.$strict>;
160
210
  operatedBySealKeeper: z.ZodBoolean;
161
211
  operatedByVouched: z.ZodOptional<z.ZodBoolean>;
@@ -189,11 +239,28 @@ export declare const AgentSummary: z.ZodObject<{
189
239
  distinct_operators: z.ZodInt;
190
240
  safety_incidents_90d: z.ZodInt;
191
241
  }, z.core.$strict>;
242
+ counted: z.ZodObject<{
243
+ verified_tasks: z.ZodInt;
244
+ seed_tasks: z.ZodInt;
245
+ server_checked_tasks: z.ZodInt;
246
+ confirmed_tasks: z.ZodInt;
247
+ }, z.core.$strict>;
192
248
  history_days: z.ZodInt;
193
249
  last_active: z.ZodNullable<z.ZodISODateTime>;
194
250
  dormant_days: z.ZodNullable<z.ZodInt>;
195
251
  quiet: z.ZodBoolean;
196
252
  }, z.core.$strict>>;
253
+ runtime: z.ZodEnum<{
254
+ "claude-code": "claude-code";
255
+ codex: "codex";
256
+ cursor: "cursor";
257
+ "gemini-cli": "gemini-cli";
258
+ mastra: "mastra";
259
+ openclaw: "openclaw";
260
+ other: "other";
261
+ unknown: "unknown";
262
+ }>;
263
+ avatarUrl: z.ZodOptional<z.ZodURL>;
197
264
  }, z.core.$strict>;
198
265
  export type AgentSummary = z.infer<typeof AgentSummary>;
199
266
  export declare const AgentsListResponse: z.ZodObject<{
@@ -203,7 +270,8 @@ export declare const AgentsListResponse: z.ZodObject<{
203
270
  handle: z.ZodString;
204
271
  version: z.ZodString;
205
272
  operator: z.ZodObject<{
206
- login: z.ZodString;
273
+ slug: z.ZodString;
274
+ displayName: z.ZodString;
207
275
  }, z.core.$strict>;
208
276
  operatedBySealKeeper: z.ZodBoolean;
209
277
  operatedByVouched: z.ZodOptional<z.ZodBoolean>;
@@ -237,11 +305,28 @@ export declare const AgentsListResponse: z.ZodObject<{
237
305
  distinct_operators: z.ZodInt;
238
306
  safety_incidents_90d: z.ZodInt;
239
307
  }, z.core.$strict>;
308
+ counted: z.ZodObject<{
309
+ verified_tasks: z.ZodInt;
310
+ seed_tasks: z.ZodInt;
311
+ server_checked_tasks: z.ZodInt;
312
+ confirmed_tasks: z.ZodInt;
313
+ }, z.core.$strict>;
240
314
  history_days: z.ZodInt;
241
315
  last_active: z.ZodNullable<z.ZodISODateTime>;
242
316
  dormant_days: z.ZodNullable<z.ZodInt>;
243
317
  quiet: z.ZodBoolean;
244
318
  }, z.core.$strict>>;
319
+ runtime: z.ZodEnum<{
320
+ "claude-code": "claude-code";
321
+ codex: "codex";
322
+ cursor: "cursor";
323
+ "gemini-cli": "gemini-cli";
324
+ mastra: "mastra";
325
+ openclaw: "openclaw";
326
+ other: "other";
327
+ unknown: "unknown";
328
+ }>;
329
+ avatarUrl: z.ZodOptional<z.ZodURL>;
245
330
  }, z.core.$strict>>;
246
331
  nextCursor: z.ZodNullable<z.ZodString>;
247
332
  }, z.core.$strict>;
@@ -268,6 +353,12 @@ export declare const EventsBatchResponse: z.ZodObject<{
268
353
  export type EventsBatchResponse = z.infer<typeof EventsBatchResponse>;
269
354
  export declare const AgentRef: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
270
355
  export type AgentRef = z.infer<typeof AgentRef>;
356
+ export declare const TaskOrigin: z.ZodEnum<{
357
+ manual: "manual";
358
+ routine: "routine";
359
+ template: "template";
360
+ }>;
361
+ export type TaskOrigin = z.infer<typeof TaskOrigin>;
271
362
  export declare const PostTaskRequest: z.ZodObject<{
272
363
  taskId: z.ZodUUID;
273
364
  taskType: z.ZodString;
@@ -283,11 +374,26 @@ export declare const PostTaskRequest: z.ZodObject<{
283
374
  }, z.core.$strict>], "kind">;
284
375
  expiresAt: z.ZodOptional<z.ZodISODateTime>;
285
376
  assignee: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
377
+ origin: z.ZodOptional<z.ZodEnum<{
378
+ manual: "manual";
379
+ routine: "routine";
380
+ template: "template";
381
+ }>>;
286
382
  }, z.core.$strict>;
287
383
  export type PostTaskRequest = z.infer<typeof PostTaskRequest>;
288
384
  export declare const TaskAssignee: z.ZodObject<{
289
385
  id: z.ZodString;
290
386
  handle: z.ZodString;
387
+ runtime: z.ZodOptional<z.ZodEnum<{
388
+ "claude-code": "claude-code";
389
+ codex: "codex";
390
+ cursor: "cursor";
391
+ "gemini-cli": "gemini-cli";
392
+ mastra: "mastra";
393
+ openclaw: "openclaw";
394
+ other: "other";
395
+ unknown: "unknown";
396
+ }>>;
291
397
  }, z.core.$strict>;
292
398
  export type TaskAssignee = z.infer<typeof TaskAssignee>;
293
399
  export declare const TaskResponse: z.ZodObject<{
@@ -297,12 +403,22 @@ export declare const TaskResponse: z.ZodObject<{
297
403
  assignee: z.ZodOptional<z.ZodNullable<z.ZodObject<{
298
404
  id: z.ZodString;
299
405
  handle: z.ZodString;
406
+ runtime: z.ZodOptional<z.ZodEnum<{
407
+ "claude-code": "claude-code";
408
+ codex: "codex";
409
+ cursor: "cursor";
410
+ "gemini-cli": "gemini-cli";
411
+ mastra: "mastra";
412
+ openclaw: "openclaw";
413
+ other: "other";
414
+ unknown: "unknown";
415
+ }>>;
300
416
  }, z.core.$strict>>>;
301
417
  taskType: z.ZodString;
302
418
  spec: z.ZodRecord<z.ZodString, z.ZodUnknown>;
303
419
  verification: z.ZodDiscriminatedUnion<[z.ZodObject<{
304
420
  kind: z.ZodLiteral<"hash">;
305
- sha256: z.ZodString;
421
+ sha256: z.ZodOptional<z.ZodString>;
306
422
  }, z.core.$strict>, z.ZodObject<{
307
423
  kind: z.ZodLiteral<"schema">;
308
424
  jsonSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
@@ -340,6 +456,11 @@ export declare const TaskOutcomeRequest: z.ZodObject<{
340
456
  success: "success";
341
457
  }>;
342
458
  evidenceHash: z.ZodOptional<z.ZodString>;
459
+ origin: z.ZodOptional<z.ZodEnum<{
460
+ manual: "manual";
461
+ routine: "routine";
462
+ template: "template";
463
+ }>>;
343
464
  }, z.core.$strict>;
344
465
  export type TaskOutcomeRequest = z.infer<typeof TaskOutcomeRequest>;
345
466
  export declare const TASK_READ_MAX_AGE_SEC = 300;
@@ -367,12 +488,22 @@ export declare const TaskSubmissionResponse: z.ZodObject<{
367
488
  assignee: z.ZodOptional<z.ZodNullable<z.ZodObject<{
368
489
  id: z.ZodString;
369
490
  handle: z.ZodString;
491
+ runtime: z.ZodOptional<z.ZodEnum<{
492
+ "claude-code": "claude-code";
493
+ codex: "codex";
494
+ cursor: "cursor";
495
+ "gemini-cli": "gemini-cli";
496
+ mastra: "mastra";
497
+ openclaw: "openclaw";
498
+ other: "other";
499
+ unknown: "unknown";
500
+ }>>;
370
501
  }, z.core.$strict>>>;
371
502
  taskType: z.ZodString;
372
503
  spec: z.ZodRecord<z.ZodString, z.ZodUnknown>;
373
504
  verification: z.ZodDiscriminatedUnion<[z.ZodObject<{
374
505
  kind: z.ZodLiteral<"hash">;
375
- sha256: z.ZodString;
506
+ sha256: z.ZodOptional<z.ZodString>;
376
507
  }, z.core.$strict>, z.ZodObject<{
377
508
  kind: z.ZodLiteral<"schema">;
378
509
  jsonSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
@@ -426,12 +557,22 @@ export declare const ListTasksResponse: z.ZodObject<{
426
557
  assignee: z.ZodOptional<z.ZodNullable<z.ZodObject<{
427
558
  id: z.ZodString;
428
559
  handle: z.ZodString;
560
+ runtime: z.ZodOptional<z.ZodEnum<{
561
+ "claude-code": "claude-code";
562
+ codex: "codex";
563
+ cursor: "cursor";
564
+ "gemini-cli": "gemini-cli";
565
+ mastra: "mastra";
566
+ openclaw: "openclaw";
567
+ other: "other";
568
+ unknown: "unknown";
569
+ }>>;
429
570
  }, z.core.$strict>>>;
430
571
  taskType: z.ZodString;
431
572
  spec: z.ZodRecord<z.ZodString, z.ZodUnknown>;
432
573
  verification: z.ZodDiscriminatedUnion<[z.ZodObject<{
433
574
  kind: z.ZodLiteral<"hash">;
434
- sha256: z.ZodString;
575
+ sha256: z.ZodOptional<z.ZodString>;
435
576
  }, z.core.$strict>, z.ZodObject<{
436
577
  kind: z.ZodLiteral<"schema">;
437
578
  jsonSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
@@ -483,6 +624,22 @@ export type AgentTasksQuery = z.infer<typeof AgentTasksQuery>;
483
624
  export declare const TaskParty: z.ZodObject<{
484
625
  id: z.ZodString;
485
626
  handle: z.ZodString;
627
+ runtime: z.ZodOptional<z.ZodEnum<{
628
+ "claude-code": "claude-code";
629
+ codex: "codex";
630
+ cursor: "cursor";
631
+ "gemini-cli": "gemini-cli";
632
+ mastra: "mastra";
633
+ openclaw: "openclaw";
634
+ other: "other";
635
+ unknown: "unknown";
636
+ }>>;
637
+ level: z.ZodOptional<z.ZodEnum<{
638
+ bronze: "bronze";
639
+ gold: "gold";
640
+ none: "none";
641
+ silver: "silver";
642
+ }>>;
486
643
  operatedBySealKeeper: z.ZodBoolean;
487
644
  }, z.core.$strict>;
488
645
  export type TaskParty = z.infer<typeof TaskParty>;
@@ -492,7 +649,6 @@ export declare const TaskView: z.ZodObject<{
492
649
  spec: z.ZodRecord<z.ZodString, z.ZodUnknown>;
493
650
  verification: z.ZodDiscriminatedUnion<[z.ZodObject<{
494
651
  kind: z.ZodLiteral<"hash">;
495
- sha256: z.ZodString;
496
652
  }, z.core.$strict>, z.ZodObject<{
497
653
  kind: z.ZodLiteral<"schema">;
498
654
  jsonSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
@@ -509,20 +665,79 @@ export declare const TaskView: z.ZodObject<{
509
665
  poster: z.ZodObject<{
510
666
  id: z.ZodString;
511
667
  handle: z.ZodString;
668
+ runtime: z.ZodOptional<z.ZodEnum<{
669
+ "claude-code": "claude-code";
670
+ codex: "codex";
671
+ cursor: "cursor";
672
+ "gemini-cli": "gemini-cli";
673
+ mastra: "mastra";
674
+ openclaw: "openclaw";
675
+ other: "other";
676
+ unknown: "unknown";
677
+ }>>;
678
+ level: z.ZodOptional<z.ZodEnum<{
679
+ bronze: "bronze";
680
+ gold: "gold";
681
+ none: "none";
682
+ silver: "silver";
683
+ }>>;
512
684
  operatedBySealKeeper: z.ZodBoolean;
513
685
  }, z.core.$strict>;
514
686
  claimant: z.ZodNullable<z.ZodObject<{
515
687
  id: z.ZodString;
516
688
  handle: z.ZodString;
689
+ runtime: z.ZodOptional<z.ZodEnum<{
690
+ "claude-code": "claude-code";
691
+ codex: "codex";
692
+ cursor: "cursor";
693
+ "gemini-cli": "gemini-cli";
694
+ mastra: "mastra";
695
+ openclaw: "openclaw";
696
+ other: "other";
697
+ unknown: "unknown";
698
+ }>>;
699
+ level: z.ZodOptional<z.ZodEnum<{
700
+ bronze: "bronze";
701
+ gold: "gold";
702
+ none: "none";
703
+ silver: "silver";
704
+ }>>;
517
705
  operatedBySealKeeper: z.ZodBoolean;
518
706
  }, z.core.$strict>>;
519
707
  assignee: z.ZodNullable<z.ZodObject<{
520
708
  id: z.ZodString;
521
709
  handle: z.ZodString;
710
+ runtime: z.ZodOptional<z.ZodEnum<{
711
+ "claude-code": "claude-code";
712
+ codex: "codex";
713
+ cursor: "cursor";
714
+ "gemini-cli": "gemini-cli";
715
+ mastra: "mastra";
716
+ openclaw: "openclaw";
717
+ other: "other";
718
+ unknown: "unknown";
719
+ }>>;
720
+ level: z.ZodOptional<z.ZodEnum<{
721
+ bronze: "bronze";
722
+ gold: "gold";
723
+ none: "none";
724
+ silver: "silver";
725
+ }>>;
522
726
  operatedBySealKeeper: z.ZodBoolean;
523
727
  }, z.core.$strict>>;
728
+ origin: z.ZodEnum<{
729
+ manual: "manual";
730
+ routine: "routine";
731
+ template: "template";
732
+ }>;
524
733
  countsForTrust: z.ZodNullable<z.ZodBoolean>;
525
734
  evidenceWeight: z.ZodNullable<z.ZodNumber>;
735
+ counted: z.ZodNullable<z.ZodNumber>;
736
+ countedNote: z.ZodNullable<z.ZodEnum<{
737
+ daily_ceiling: "daily_ceiling";
738
+ diminishing: "diminishing";
739
+ outside_window: "outside_window";
740
+ }>>;
526
741
  postedAt: z.ZodISODateTime;
527
742
  claimedAt: z.ZodNullable<z.ZodISODateTime>;
528
743
  submittedAt: z.ZodNullable<z.ZodISODateTime>;
@@ -537,7 +752,6 @@ export declare const TaskViewsResponse: z.ZodObject<{
537
752
  spec: z.ZodRecord<z.ZodString, z.ZodUnknown>;
538
753
  verification: z.ZodDiscriminatedUnion<[z.ZodObject<{
539
754
  kind: z.ZodLiteral<"hash">;
540
- sha256: z.ZodString;
541
755
  }, z.core.$strict>, z.ZodObject<{
542
756
  kind: z.ZodLiteral<"schema">;
543
757
  jsonSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
@@ -554,20 +768,79 @@ export declare const TaskViewsResponse: z.ZodObject<{
554
768
  poster: z.ZodObject<{
555
769
  id: z.ZodString;
556
770
  handle: z.ZodString;
771
+ runtime: z.ZodOptional<z.ZodEnum<{
772
+ "claude-code": "claude-code";
773
+ codex: "codex";
774
+ cursor: "cursor";
775
+ "gemini-cli": "gemini-cli";
776
+ mastra: "mastra";
777
+ openclaw: "openclaw";
778
+ other: "other";
779
+ unknown: "unknown";
780
+ }>>;
781
+ level: z.ZodOptional<z.ZodEnum<{
782
+ bronze: "bronze";
783
+ gold: "gold";
784
+ none: "none";
785
+ silver: "silver";
786
+ }>>;
557
787
  operatedBySealKeeper: z.ZodBoolean;
558
788
  }, z.core.$strict>;
559
789
  claimant: z.ZodNullable<z.ZodObject<{
560
790
  id: z.ZodString;
561
791
  handle: z.ZodString;
792
+ runtime: z.ZodOptional<z.ZodEnum<{
793
+ "claude-code": "claude-code";
794
+ codex: "codex";
795
+ cursor: "cursor";
796
+ "gemini-cli": "gemini-cli";
797
+ mastra: "mastra";
798
+ openclaw: "openclaw";
799
+ other: "other";
800
+ unknown: "unknown";
801
+ }>>;
802
+ level: z.ZodOptional<z.ZodEnum<{
803
+ bronze: "bronze";
804
+ gold: "gold";
805
+ none: "none";
806
+ silver: "silver";
807
+ }>>;
562
808
  operatedBySealKeeper: z.ZodBoolean;
563
809
  }, z.core.$strict>>;
564
810
  assignee: z.ZodNullable<z.ZodObject<{
565
811
  id: z.ZodString;
566
812
  handle: z.ZodString;
813
+ runtime: z.ZodOptional<z.ZodEnum<{
814
+ "claude-code": "claude-code";
815
+ codex: "codex";
816
+ cursor: "cursor";
817
+ "gemini-cli": "gemini-cli";
818
+ mastra: "mastra";
819
+ openclaw: "openclaw";
820
+ other: "other";
821
+ unknown: "unknown";
822
+ }>>;
823
+ level: z.ZodOptional<z.ZodEnum<{
824
+ bronze: "bronze";
825
+ gold: "gold";
826
+ none: "none";
827
+ silver: "silver";
828
+ }>>;
567
829
  operatedBySealKeeper: z.ZodBoolean;
568
830
  }, z.core.$strict>>;
831
+ origin: z.ZodEnum<{
832
+ manual: "manual";
833
+ routine: "routine";
834
+ template: "template";
835
+ }>;
569
836
  countsForTrust: z.ZodNullable<z.ZodBoolean>;
570
837
  evidenceWeight: z.ZodNullable<z.ZodNumber>;
838
+ counted: z.ZodNullable<z.ZodNumber>;
839
+ countedNote: z.ZodNullable<z.ZodEnum<{
840
+ daily_ceiling: "daily_ceiling";
841
+ diminishing: "diminishing";
842
+ outside_window: "outside_window";
843
+ }>>;
571
844
  postedAt: z.ZodISODateTime;
572
845
  claimedAt: z.ZodNullable<z.ZodISODateTime>;
573
846
  submittedAt: z.ZodNullable<z.ZodISODateTime>;
@@ -643,7 +916,8 @@ export declare const MeAgent: z.ZodObject<{
643
916
  name: z.ZodString;
644
917
  handle: z.ZodString;
645
918
  operator: z.ZodObject<{
646
- login: z.ZodString;
919
+ slug: z.ZodString;
920
+ displayName: z.ZodString;
647
921
  }, z.core.$strict>;
648
922
  version: z.ZodString;
649
923
  createdAt: z.ZodISODateTime;
@@ -683,16 +957,46 @@ export declare const MeAgent: z.ZodObject<{
683
957
  distinct_operators: z.ZodInt;
684
958
  safety_incidents_90d: z.ZodInt;
685
959
  }, z.core.$strict>;
960
+ counted: z.ZodObject<{
961
+ verified_tasks: z.ZodInt;
962
+ seed_tasks: z.ZodInt;
963
+ server_checked_tasks: z.ZodInt;
964
+ confirmed_tasks: z.ZodInt;
965
+ }, z.core.$strict>;
686
966
  history_days: z.ZodInt;
687
967
  last_active: z.ZodNullable<z.ZodISODateTime>;
688
968
  dormant_days: z.ZodNullable<z.ZodInt>;
689
969
  quiet: z.ZodBoolean;
690
970
  }, z.core.$strict>>;
971
+ runtime: z.ZodEnum<{
972
+ "claude-code": "claude-code";
973
+ codex: "codex";
974
+ cursor: "cursor";
975
+ "gemini-cli": "gemini-cli";
976
+ mastra: "mastra";
977
+ openclaw: "openclaw";
978
+ other: "other";
979
+ unknown: "unknown";
980
+ }>;
691
981
  }, z.core.$strict>;
692
982
  export type MeAgent = z.infer<typeof MeAgent>;
983
+ export declare const MeOperator: z.ZodObject<{
984
+ login: z.ZodString;
985
+ slug: z.ZodString;
986
+ displayName: z.ZodString;
987
+ slugChangedAt: z.ZodNullable<z.ZodISODateTime>;
988
+ slugNoticeDismissedAt: z.ZodNullable<z.ZodISODateTime>;
989
+ githubId: z.ZodInt;
990
+ createdAt: z.ZodISODateTime;
991
+ }, z.core.$strict>;
992
+ export type MeOperator = z.infer<typeof MeOperator>;
693
993
  export declare const MeResponse: z.ZodObject<{
694
994
  operator: z.ZodObject<{
695
995
  login: z.ZodString;
996
+ slug: z.ZodString;
997
+ displayName: z.ZodString;
998
+ slugChangedAt: z.ZodNullable<z.ZodISODateTime>;
999
+ slugNoticeDismissedAt: z.ZodNullable<z.ZodISODateTime>;
696
1000
  githubId: z.ZodInt;
697
1001
  createdAt: z.ZodISODateTime;
698
1002
  }, z.core.$strict>;
@@ -701,7 +1005,8 @@ export declare const MeResponse: z.ZodObject<{
701
1005
  name: z.ZodString;
702
1006
  handle: z.ZodString;
703
1007
  operator: z.ZodObject<{
704
- login: z.ZodString;
1008
+ slug: z.ZodString;
1009
+ displayName: z.ZodString;
705
1010
  }, z.core.$strict>;
706
1011
  version: z.ZodString;
707
1012
  createdAt: z.ZodISODateTime;
@@ -741,14 +1046,35 @@ export declare const MeResponse: z.ZodObject<{
741
1046
  distinct_operators: z.ZodInt;
742
1047
  safety_incidents_90d: z.ZodInt;
743
1048
  }, z.core.$strict>;
1049
+ counted: z.ZodObject<{
1050
+ verified_tasks: z.ZodInt;
1051
+ seed_tasks: z.ZodInt;
1052
+ server_checked_tasks: z.ZodInt;
1053
+ confirmed_tasks: z.ZodInt;
1054
+ }, z.core.$strict>;
744
1055
  history_days: z.ZodInt;
745
1056
  last_active: z.ZodNullable<z.ZodISODateTime>;
746
1057
  dormant_days: z.ZodNullable<z.ZodInt>;
747
1058
  quiet: z.ZodBoolean;
748
1059
  }, z.core.$strict>>;
1060
+ runtime: z.ZodEnum<{
1061
+ "claude-code": "claude-code";
1062
+ codex: "codex";
1063
+ cursor: "cursor";
1064
+ "gemini-cli": "gemini-cli";
1065
+ mastra: "mastra";
1066
+ openclaw: "openclaw";
1067
+ other: "other";
1068
+ unknown: "unknown";
1069
+ }>;
749
1070
  }, z.core.$strict>>;
750
1071
  }, z.core.$strict>;
751
1072
  export type MeResponse = z.infer<typeof MeResponse>;
1073
+ export declare const UpdateMeRequest: z.ZodObject<{
1074
+ slug: z.ZodOptional<z.ZodString>;
1075
+ displayName: z.ZodOptional<z.ZodString>;
1076
+ }, z.core.$strict>;
1077
+ export type UpdateMeRequest = z.infer<typeof UpdateMeRequest>;
752
1078
  export declare const DeleteMeRequest: z.ZodObject<{
753
1079
  login: z.ZodString;
754
1080
  }, z.core.$strict>;
@@ -826,9 +1152,20 @@ export declare const LeaderboardEntry: z.ZodObject<{
826
1152
  name: z.ZodString;
827
1153
  handle: z.ZodString;
828
1154
  operator: z.ZodObject<{
829
- login: z.ZodString;
1155
+ slug: z.ZodString;
1156
+ displayName: z.ZodString;
830
1157
  }, z.core.$strict>;
831
1158
  version: z.ZodString;
1159
+ runtime: z.ZodOptional<z.ZodEnum<{
1160
+ "claude-code": "claude-code";
1161
+ codex: "codex";
1162
+ cursor: "cursor";
1163
+ "gemini-cli": "gemini-cli";
1164
+ mastra: "mastra";
1165
+ openclaw: "openclaw";
1166
+ other: "other";
1167
+ unknown: "unknown";
1168
+ }>>;
832
1169
  value: z.ZodNumber;
833
1170
  verifiedTasks: z.ZodInt;
834
1171
  seedTasks: z.ZodOptional<z.ZodInt>;
@@ -851,6 +1188,12 @@ export declare const LeaderboardEntry: z.ZodObject<{
851
1188
  distinct_operators: z.ZodInt;
852
1189
  safety_incidents_90d: z.ZodInt;
853
1190
  }, z.core.$strict>;
1191
+ counted: z.ZodObject<{
1192
+ verified_tasks: z.ZodInt;
1193
+ seed_tasks: z.ZodInt;
1194
+ server_checked_tasks: z.ZodInt;
1195
+ confirmed_tasks: z.ZodInt;
1196
+ }, z.core.$strict>;
854
1197
  history_days: z.ZodInt;
855
1198
  last_active: z.ZodNullable<z.ZodISODateTime>;
856
1199
  dormant_days: z.ZodNullable<z.ZodInt>;
@@ -871,9 +1214,20 @@ export declare const LeaderboardResponse: z.ZodObject<{
871
1214
  name: z.ZodString;
872
1215
  handle: z.ZodString;
873
1216
  operator: z.ZodObject<{
874
- login: z.ZodString;
1217
+ slug: z.ZodString;
1218
+ displayName: z.ZodString;
875
1219
  }, z.core.$strict>;
876
1220
  version: z.ZodString;
1221
+ runtime: z.ZodOptional<z.ZodEnum<{
1222
+ "claude-code": "claude-code";
1223
+ codex: "codex";
1224
+ cursor: "cursor";
1225
+ "gemini-cli": "gemini-cli";
1226
+ mastra: "mastra";
1227
+ openclaw: "openclaw";
1228
+ other: "other";
1229
+ unknown: "unknown";
1230
+ }>>;
877
1231
  value: z.ZodNumber;
878
1232
  verifiedTasks: z.ZodInt;
879
1233
  seedTasks: z.ZodOptional<z.ZodInt>;
@@ -896,6 +1250,12 @@ export declare const LeaderboardResponse: z.ZodObject<{
896
1250
  distinct_operators: z.ZodInt;
897
1251
  safety_incidents_90d: z.ZodInt;
898
1252
  }, z.core.$strict>;
1253
+ counted: z.ZodObject<{
1254
+ verified_tasks: z.ZodInt;
1255
+ seed_tasks: z.ZodInt;
1256
+ server_checked_tasks: z.ZodInt;
1257
+ confirmed_tasks: z.ZodInt;
1258
+ }, z.core.$strict>;
899
1259
  history_days: z.ZodInt;
900
1260
  last_active: z.ZodNullable<z.ZodISODateTime>;
901
1261
  dormant_days: z.ZodNullable<z.ZodInt>;
@@ -1004,9 +1364,26 @@ export declare const FeedItem: z.ZodDiscriminatedUnion<[z.ZodObject<{
1004
1364
  kind: z.ZodLiteral<"registration">;
1005
1365
  agentId: z.ZodNullable<z.ZodString>;
1006
1366
  operator: z.ZodObject<{
1007
- login: z.ZodString;
1367
+ slug: z.ZodString;
1368
+ displayName: z.ZodString;
1008
1369
  }, z.core.$strict>;
1009
1370
  handle: z.ZodString;
1371
+ runtime: z.ZodOptional<z.ZodEnum<{
1372
+ "claude-code": "claude-code";
1373
+ codex: "codex";
1374
+ cursor: "cursor";
1375
+ "gemini-cli": "gemini-cli";
1376
+ mastra: "mastra";
1377
+ openclaw: "openclaw";
1378
+ other: "other";
1379
+ unknown: "unknown";
1380
+ }>>;
1381
+ level: z.ZodOptional<z.ZodEnum<{
1382
+ bronze: "bronze";
1383
+ gold: "gold";
1384
+ none: "none";
1385
+ silver: "silver";
1386
+ }>>;
1010
1387
  payload: z.ZodObject<{
1011
1388
  agentId: z.ZodString;
1012
1389
  name: z.ZodString;
@@ -1018,9 +1395,26 @@ export declare const FeedItem: z.ZodDiscriminatedUnion<[z.ZodObject<{
1018
1395
  kind: z.ZodLiteral<"task_verified">;
1019
1396
  agentId: z.ZodNullable<z.ZodString>;
1020
1397
  operator: z.ZodObject<{
1021
- login: z.ZodString;
1398
+ slug: z.ZodString;
1399
+ displayName: z.ZodString;
1022
1400
  }, z.core.$strict>;
1023
1401
  handle: z.ZodString;
1402
+ runtime: z.ZodOptional<z.ZodEnum<{
1403
+ "claude-code": "claude-code";
1404
+ codex: "codex";
1405
+ cursor: "cursor";
1406
+ "gemini-cli": "gemini-cli";
1407
+ mastra: "mastra";
1408
+ openclaw: "openclaw";
1409
+ other: "other";
1410
+ unknown: "unknown";
1411
+ }>>;
1412
+ level: z.ZodOptional<z.ZodEnum<{
1413
+ bronze: "bronze";
1414
+ gold: "gold";
1415
+ none: "none";
1416
+ silver: "silver";
1417
+ }>>;
1024
1418
  payload: z.ZodObject<{
1025
1419
  agentId: z.ZodString;
1026
1420
  name: z.ZodString;
@@ -1034,9 +1428,26 @@ export declare const FeedItem: z.ZodDiscriminatedUnion<[z.ZodObject<{
1034
1428
  kind: z.ZodLiteral<"score_change">;
1035
1429
  agentId: z.ZodNullable<z.ZodString>;
1036
1430
  operator: z.ZodObject<{
1037
- login: z.ZodString;
1431
+ slug: z.ZodString;
1432
+ displayName: z.ZodString;
1038
1433
  }, z.core.$strict>;
1039
1434
  handle: z.ZodString;
1435
+ runtime: z.ZodOptional<z.ZodEnum<{
1436
+ "claude-code": "claude-code";
1437
+ codex: "codex";
1438
+ cursor: "cursor";
1439
+ "gemini-cli": "gemini-cli";
1440
+ mastra: "mastra";
1441
+ openclaw: "openclaw";
1442
+ other: "other";
1443
+ unknown: "unknown";
1444
+ }>>;
1445
+ level: z.ZodOptional<z.ZodEnum<{
1446
+ bronze: "bronze";
1447
+ gold: "gold";
1448
+ none: "none";
1449
+ silver: "silver";
1450
+ }>>;
1040
1451
  payload: z.ZodObject<{
1041
1452
  agentId: z.ZodString;
1042
1453
  name: z.ZodString;
@@ -1056,9 +1467,26 @@ export declare const FeedItem: z.ZodDiscriminatedUnion<[z.ZodObject<{
1056
1467
  kind: z.ZodLiteral<"flag">;
1057
1468
  agentId: z.ZodNullable<z.ZodString>;
1058
1469
  operator: z.ZodObject<{
1059
- login: z.ZodString;
1470
+ slug: z.ZodString;
1471
+ displayName: z.ZodString;
1060
1472
  }, z.core.$strict>;
1061
1473
  handle: z.ZodString;
1474
+ runtime: z.ZodOptional<z.ZodEnum<{
1475
+ "claude-code": "claude-code";
1476
+ codex: "codex";
1477
+ cursor: "cursor";
1478
+ "gemini-cli": "gemini-cli";
1479
+ mastra: "mastra";
1480
+ openclaw: "openclaw";
1481
+ other: "other";
1482
+ unknown: "unknown";
1483
+ }>>;
1484
+ level: z.ZodOptional<z.ZodEnum<{
1485
+ bronze: "bronze";
1486
+ gold: "gold";
1487
+ none: "none";
1488
+ silver: "silver";
1489
+ }>>;
1062
1490
  payload: z.ZodObject<{
1063
1491
  agentId: z.ZodString;
1064
1492
  name: z.ZodString;
@@ -1073,9 +1501,26 @@ export declare const FeedItem: z.ZodDiscriminatedUnion<[z.ZodObject<{
1073
1501
  kind: z.ZodLiteral<"version_change">;
1074
1502
  agentId: z.ZodNullable<z.ZodString>;
1075
1503
  operator: z.ZodObject<{
1076
- login: z.ZodString;
1504
+ slug: z.ZodString;
1505
+ displayName: z.ZodString;
1077
1506
  }, z.core.$strict>;
1078
1507
  handle: z.ZodString;
1508
+ runtime: z.ZodOptional<z.ZodEnum<{
1509
+ "claude-code": "claude-code";
1510
+ codex: "codex";
1511
+ cursor: "cursor";
1512
+ "gemini-cli": "gemini-cli";
1513
+ mastra: "mastra";
1514
+ openclaw: "openclaw";
1515
+ other: "other";
1516
+ unknown: "unknown";
1517
+ }>>;
1518
+ level: z.ZodOptional<z.ZodEnum<{
1519
+ bronze: "bronze";
1520
+ gold: "gold";
1521
+ none: "none";
1522
+ silver: "silver";
1523
+ }>>;
1079
1524
  payload: z.ZodObject<{
1080
1525
  agentId: z.ZodString;
1081
1526
  name: z.ZodString;
@@ -1088,9 +1533,26 @@ export declare const FeedItem: z.ZodDiscriminatedUnion<[z.ZodObject<{
1088
1533
  kind: z.ZodLiteral<"level_change">;
1089
1534
  agentId: z.ZodNullable<z.ZodString>;
1090
1535
  operator: z.ZodObject<{
1091
- login: z.ZodString;
1536
+ slug: z.ZodString;
1537
+ displayName: z.ZodString;
1092
1538
  }, z.core.$strict>;
1093
1539
  handle: z.ZodString;
1540
+ runtime: z.ZodOptional<z.ZodEnum<{
1541
+ "claude-code": "claude-code";
1542
+ codex: "codex";
1543
+ cursor: "cursor";
1544
+ "gemini-cli": "gemini-cli";
1545
+ mastra: "mastra";
1546
+ openclaw: "openclaw";
1547
+ other: "other";
1548
+ unknown: "unknown";
1549
+ }>>;
1550
+ level: z.ZodOptional<z.ZodEnum<{
1551
+ bronze: "bronze";
1552
+ gold: "gold";
1553
+ none: "none";
1554
+ silver: "silver";
1555
+ }>>;
1094
1556
  payload: z.ZodObject<{
1095
1557
  agentId: z.ZodString;
1096
1558
  name: z.ZodString;
@@ -1114,9 +1576,26 @@ export declare const FeedItem: z.ZodDiscriminatedUnion<[z.ZodObject<{
1114
1576
  kind: z.ZodLiteral<"milestone">;
1115
1577
  agentId: z.ZodNullable<z.ZodString>;
1116
1578
  operator: z.ZodObject<{
1117
- login: z.ZodString;
1579
+ slug: z.ZodString;
1580
+ displayName: z.ZodString;
1118
1581
  }, z.core.$strict>;
1119
1582
  handle: z.ZodString;
1583
+ runtime: z.ZodOptional<z.ZodEnum<{
1584
+ "claude-code": "claude-code";
1585
+ codex: "codex";
1586
+ cursor: "cursor";
1587
+ "gemini-cli": "gemini-cli";
1588
+ mastra: "mastra";
1589
+ openclaw: "openclaw";
1590
+ other: "other";
1591
+ unknown: "unknown";
1592
+ }>>;
1593
+ level: z.ZodOptional<z.ZodEnum<{
1594
+ bronze: "bronze";
1595
+ gold: "gold";
1596
+ none: "none";
1597
+ silver: "silver";
1598
+ }>>;
1120
1599
  payload: z.ZodObject<{
1121
1600
  agentId: z.ZodString;
1122
1601
  name: z.ZodString;
@@ -1147,9 +1626,26 @@ export declare const FeedRecentResponse: z.ZodObject<{
1147
1626
  kind: z.ZodLiteral<"registration">;
1148
1627
  agentId: z.ZodNullable<z.ZodString>;
1149
1628
  operator: z.ZodObject<{
1150
- login: z.ZodString;
1629
+ slug: z.ZodString;
1630
+ displayName: z.ZodString;
1151
1631
  }, z.core.$strict>;
1152
1632
  handle: z.ZodString;
1633
+ runtime: z.ZodOptional<z.ZodEnum<{
1634
+ "claude-code": "claude-code";
1635
+ codex: "codex";
1636
+ cursor: "cursor";
1637
+ "gemini-cli": "gemini-cli";
1638
+ mastra: "mastra";
1639
+ openclaw: "openclaw";
1640
+ other: "other";
1641
+ unknown: "unknown";
1642
+ }>>;
1643
+ level: z.ZodOptional<z.ZodEnum<{
1644
+ bronze: "bronze";
1645
+ gold: "gold";
1646
+ none: "none";
1647
+ silver: "silver";
1648
+ }>>;
1153
1649
  payload: z.ZodObject<{
1154
1650
  agentId: z.ZodString;
1155
1651
  name: z.ZodString;
@@ -1161,9 +1657,26 @@ export declare const FeedRecentResponse: z.ZodObject<{
1161
1657
  kind: z.ZodLiteral<"task_verified">;
1162
1658
  agentId: z.ZodNullable<z.ZodString>;
1163
1659
  operator: z.ZodObject<{
1164
- login: z.ZodString;
1660
+ slug: z.ZodString;
1661
+ displayName: z.ZodString;
1165
1662
  }, z.core.$strict>;
1166
1663
  handle: z.ZodString;
1664
+ runtime: z.ZodOptional<z.ZodEnum<{
1665
+ "claude-code": "claude-code";
1666
+ codex: "codex";
1667
+ cursor: "cursor";
1668
+ "gemini-cli": "gemini-cli";
1669
+ mastra: "mastra";
1670
+ openclaw: "openclaw";
1671
+ other: "other";
1672
+ unknown: "unknown";
1673
+ }>>;
1674
+ level: z.ZodOptional<z.ZodEnum<{
1675
+ bronze: "bronze";
1676
+ gold: "gold";
1677
+ none: "none";
1678
+ silver: "silver";
1679
+ }>>;
1167
1680
  payload: z.ZodObject<{
1168
1681
  agentId: z.ZodString;
1169
1682
  name: z.ZodString;
@@ -1177,9 +1690,26 @@ export declare const FeedRecentResponse: z.ZodObject<{
1177
1690
  kind: z.ZodLiteral<"score_change">;
1178
1691
  agentId: z.ZodNullable<z.ZodString>;
1179
1692
  operator: z.ZodObject<{
1180
- login: z.ZodString;
1693
+ slug: z.ZodString;
1694
+ displayName: z.ZodString;
1181
1695
  }, z.core.$strict>;
1182
1696
  handle: z.ZodString;
1697
+ runtime: z.ZodOptional<z.ZodEnum<{
1698
+ "claude-code": "claude-code";
1699
+ codex: "codex";
1700
+ cursor: "cursor";
1701
+ "gemini-cli": "gemini-cli";
1702
+ mastra: "mastra";
1703
+ openclaw: "openclaw";
1704
+ other: "other";
1705
+ unknown: "unknown";
1706
+ }>>;
1707
+ level: z.ZodOptional<z.ZodEnum<{
1708
+ bronze: "bronze";
1709
+ gold: "gold";
1710
+ none: "none";
1711
+ silver: "silver";
1712
+ }>>;
1183
1713
  payload: z.ZodObject<{
1184
1714
  agentId: z.ZodString;
1185
1715
  name: z.ZodString;
@@ -1199,9 +1729,26 @@ export declare const FeedRecentResponse: z.ZodObject<{
1199
1729
  kind: z.ZodLiteral<"flag">;
1200
1730
  agentId: z.ZodNullable<z.ZodString>;
1201
1731
  operator: z.ZodObject<{
1202
- login: z.ZodString;
1732
+ slug: z.ZodString;
1733
+ displayName: z.ZodString;
1203
1734
  }, z.core.$strict>;
1204
1735
  handle: z.ZodString;
1736
+ runtime: z.ZodOptional<z.ZodEnum<{
1737
+ "claude-code": "claude-code";
1738
+ codex: "codex";
1739
+ cursor: "cursor";
1740
+ "gemini-cli": "gemini-cli";
1741
+ mastra: "mastra";
1742
+ openclaw: "openclaw";
1743
+ other: "other";
1744
+ unknown: "unknown";
1745
+ }>>;
1746
+ level: z.ZodOptional<z.ZodEnum<{
1747
+ bronze: "bronze";
1748
+ gold: "gold";
1749
+ none: "none";
1750
+ silver: "silver";
1751
+ }>>;
1205
1752
  payload: z.ZodObject<{
1206
1753
  agentId: z.ZodString;
1207
1754
  name: z.ZodString;
@@ -1216,9 +1763,26 @@ export declare const FeedRecentResponse: z.ZodObject<{
1216
1763
  kind: z.ZodLiteral<"version_change">;
1217
1764
  agentId: z.ZodNullable<z.ZodString>;
1218
1765
  operator: z.ZodObject<{
1219
- login: z.ZodString;
1766
+ slug: z.ZodString;
1767
+ displayName: z.ZodString;
1220
1768
  }, z.core.$strict>;
1221
1769
  handle: z.ZodString;
1770
+ runtime: z.ZodOptional<z.ZodEnum<{
1771
+ "claude-code": "claude-code";
1772
+ codex: "codex";
1773
+ cursor: "cursor";
1774
+ "gemini-cli": "gemini-cli";
1775
+ mastra: "mastra";
1776
+ openclaw: "openclaw";
1777
+ other: "other";
1778
+ unknown: "unknown";
1779
+ }>>;
1780
+ level: z.ZodOptional<z.ZodEnum<{
1781
+ bronze: "bronze";
1782
+ gold: "gold";
1783
+ none: "none";
1784
+ silver: "silver";
1785
+ }>>;
1222
1786
  payload: z.ZodObject<{
1223
1787
  agentId: z.ZodString;
1224
1788
  name: z.ZodString;
@@ -1231,9 +1795,26 @@ export declare const FeedRecentResponse: z.ZodObject<{
1231
1795
  kind: z.ZodLiteral<"level_change">;
1232
1796
  agentId: z.ZodNullable<z.ZodString>;
1233
1797
  operator: z.ZodObject<{
1234
- login: z.ZodString;
1798
+ slug: z.ZodString;
1799
+ displayName: z.ZodString;
1235
1800
  }, z.core.$strict>;
1236
1801
  handle: z.ZodString;
1802
+ runtime: z.ZodOptional<z.ZodEnum<{
1803
+ "claude-code": "claude-code";
1804
+ codex: "codex";
1805
+ cursor: "cursor";
1806
+ "gemini-cli": "gemini-cli";
1807
+ mastra: "mastra";
1808
+ openclaw: "openclaw";
1809
+ other: "other";
1810
+ unknown: "unknown";
1811
+ }>>;
1812
+ level: z.ZodOptional<z.ZodEnum<{
1813
+ bronze: "bronze";
1814
+ gold: "gold";
1815
+ none: "none";
1816
+ silver: "silver";
1817
+ }>>;
1237
1818
  payload: z.ZodObject<{
1238
1819
  agentId: z.ZodString;
1239
1820
  name: z.ZodString;
@@ -1257,9 +1838,26 @@ export declare const FeedRecentResponse: z.ZodObject<{
1257
1838
  kind: z.ZodLiteral<"milestone">;
1258
1839
  agentId: z.ZodNullable<z.ZodString>;
1259
1840
  operator: z.ZodObject<{
1260
- login: z.ZodString;
1841
+ slug: z.ZodString;
1842
+ displayName: z.ZodString;
1261
1843
  }, z.core.$strict>;
1262
1844
  handle: z.ZodString;
1845
+ runtime: z.ZodOptional<z.ZodEnum<{
1846
+ "claude-code": "claude-code";
1847
+ codex: "codex";
1848
+ cursor: "cursor";
1849
+ "gemini-cli": "gemini-cli";
1850
+ mastra: "mastra";
1851
+ openclaw: "openclaw";
1852
+ other: "other";
1853
+ unknown: "unknown";
1854
+ }>>;
1855
+ level: z.ZodOptional<z.ZodEnum<{
1856
+ bronze: "bronze";
1857
+ gold: "gold";
1858
+ none: "none";
1859
+ silver: "silver";
1860
+ }>>;
1263
1861
  payload: z.ZodObject<{
1264
1862
  agentId: z.ZodString;
1265
1863
  name: z.ZodString;
@@ -1498,6 +2096,66 @@ export declare const SealVerifyResponse: z.ZodDiscriminatedUnion<[z.ZodObject<{
1498
2096
  }, z.core.$strict>>;
1499
2097
  last_active: z.ZodNullable<z.ZodInt>;
1500
2098
  dormant_days: z.ZodNullable<z.ZodInt>;
2099
+ }, z.core.$strict>, z.ZodObject<{
2100
+ iss: z.ZodEnum<{
2101
+ "sealkeeper.run": "sealkeeper.run";
2102
+ "vouched.run": "vouched.run";
2103
+ }>;
2104
+ sub: z.ZodString;
2105
+ ver: z.ZodLiteral<2>;
2106
+ iat: z.ZodInt;
2107
+ exp: z.ZodInt;
2108
+ agent_version: z.ZodString;
2109
+ version: z.ZodString;
2110
+ level: z.ZodEnum<{
2111
+ bronze: "bronze";
2112
+ gold: "gold";
2113
+ none: "none";
2114
+ silver: "silver";
2115
+ }>;
2116
+ scores: z.ZodRecord<z.ZodUnion<readonly [z.ZodEnum<{
2117
+ cost_latency: "cost_latency";
2118
+ provenance: "provenance";
2119
+ reliability: "reliability";
2120
+ safety: "safety";
2121
+ }>, z.ZodTemplateLiteral<`competence:${string}`>]> & z.core.$partial, z.ZodNullable<z.ZodNumber>>;
2122
+ counts: z.ZodObject<{
2123
+ events: z.ZodInt;
2124
+ history_days: z.ZodInt;
2125
+ verified_tasks: z.ZodInt;
2126
+ seed_tasks: z.ZodInt;
2127
+ server_checked_tasks: z.ZodInt;
2128
+ confirmed_tasks: z.ZodInt;
2129
+ distinct_operators: z.ZodInt;
2130
+ safety_incidents_90d: z.ZodInt;
2131
+ }, z.core.$strict>;
2132
+ counted: z.ZodObject<{
2133
+ verified_tasks: z.ZodInt;
2134
+ seed_tasks: z.ZodInt;
2135
+ server_checked_tasks: z.ZodInt;
2136
+ confirmed_tasks: z.ZodInt;
2137
+ }, z.core.$strict>;
2138
+ operator: z.ZodObject<{
2139
+ verified: z.ZodBoolean;
2140
+ }, z.core.$strict>;
2141
+ identity: z.ZodArray<z.ZodObject<{
2142
+ provider: z.ZodURL;
2143
+ kind: z.ZodUnion<readonly [z.ZodEnum<{
2144
+ kya: "kya";
2145
+ oidc: "oidc";
2146
+ saml: "saml";
2147
+ verifiable_credential: "verifiable_credential";
2148
+ }>, z.ZodURL]>;
2149
+ ref: z.ZodString;
2150
+ subject_hash: z.ZodString;
2151
+ attested_at: z.ZodInt;
2152
+ scope: z.ZodEnum<{
2153
+ agent: "agent";
2154
+ operator: "operator";
2155
+ }>;
2156
+ }, z.core.$strict>>;
2157
+ last_active: z.ZodNullable<z.ZodInt>;
2158
+ dormant_days: z.ZodNullable<z.ZodInt>;
1501
2159
  }, z.core.$strict>, z.ZodObject<{
1502
2160
  iss: z.ZodEnum<{
1503
2161
  "sealkeeper.run": "sealkeeper.run";
@@ -1542,6 +2200,65 @@ export declare const SeedRunResponse: z.ZodObject<{
1542
2200
  added: z.ZodInt;
1543
2201
  }, z.core.$strict>;
1544
2202
  export type SeedRunResponse = z.infer<typeof SeedRunResponse>;
2203
+ export declare const INTERNAL_METRICS_MAX_DAYS = 90;
2204
+ export declare const InternalMetricsQuery: z.ZodObject<{
2205
+ days: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
2206
+ }, z.core.$strict>;
2207
+ export type InternalMetricsQuery = z.infer<typeof InternalMetricsQuery>;
2208
+ export declare const InternalMetricsResponse: z.ZodObject<{
2209
+ days: z.ZodInt;
2210
+ seedOperatorKnown: z.ZodBoolean;
2211
+ snapshot: z.ZodObject<{
2212
+ agents: z.ZodObject<{
2213
+ sealkeeper: z.ZodInt;
2214
+ others: z.ZodInt;
2215
+ }, z.core.$strict>;
2216
+ levels: z.ZodObject<{
2217
+ none: z.ZodObject<{
2218
+ sealkeeper: z.ZodInt;
2219
+ others: z.ZodInt;
2220
+ }, z.core.$strict>;
2221
+ bronze: z.ZodObject<{
2222
+ sealkeeper: z.ZodInt;
2223
+ others: z.ZodInt;
2224
+ }, z.core.$strict>;
2225
+ silver: z.ZodObject<{
2226
+ sealkeeper: z.ZodInt;
2227
+ others: z.ZodInt;
2228
+ }, z.core.$strict>;
2229
+ gold: z.ZodObject<{
2230
+ sealkeeper: z.ZodInt;
2231
+ others: z.ZodInt;
2232
+ }, z.core.$strict>;
2233
+ }, z.core.$strict>;
2234
+ }, z.core.$strict>;
2235
+ perDay: z.ZodArray<z.ZodObject<{
2236
+ day: z.ZodString;
2237
+ agentsRegistered: z.ZodObject<{
2238
+ sealkeeper: z.ZodInt;
2239
+ others: z.ZodInt;
2240
+ }, z.core.$strict>;
2241
+ verifiedTasks: z.ZodObject<{
2242
+ seed: z.ZodInt;
2243
+ serverChecked: z.ZodInt;
2244
+ confirmed: z.ZodInt;
2245
+ }, z.core.$strict>;
2246
+ addressedTasks: z.ZodObject<{
2247
+ posted: z.ZodInt;
2248
+ verified: z.ZodInt;
2249
+ }, z.core.$strict>;
2250
+ operatorPairs: z.ZodInt;
2251
+ routine: z.ZodObject<{
2252
+ tasksPosted: z.ZodInt;
2253
+ outcomes: z.ZodInt;
2254
+ }, z.core.$strict>;
2255
+ }, z.core.$strict>>;
2256
+ notMeasured: z.ZodArray<z.ZodObject<{
2257
+ metric: z.ZodString;
2258
+ why: z.ZodString;
2259
+ }, z.core.$strict>>;
2260
+ }, z.core.$strict>;
2261
+ export type InternalMetricsResponse = z.infer<typeof InternalMetricsResponse>;
1545
2262
  export declare const ErrorIssue: z.ZodObject<{
1546
2263
  path: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
1547
2264
  code: z.ZodString;