@sealkeeper/schema 0.0.1 → 0.4.1

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 (68) hide show
  1. package/LICENSE +202 -0
  2. package/NOTICE +2 -0
  3. package/README.md +14 -1
  4. package/dist/agent-id.d.ts +13 -0
  5. package/dist/agent-id.js +29 -0
  6. package/dist/agent-name.d.ts +9 -0
  7. package/dist/agent-name.js +58 -0
  8. package/dist/api.d.ts +1212 -0
  9. package/dist/api.js +633 -0
  10. package/dist/base64url.d.ts +4 -0
  11. package/dist/base64url.js +43 -0
  12. package/dist/credential.d.ts +392 -0
  13. package/dist/credential.js +287 -0
  14. package/dist/db/agent-renames.d.ts +126 -0
  15. package/dist/db/agent-renames.js +20 -0
  16. package/dist/db/agents.d.ts +145 -0
  17. package/dist/db/agents.js +40 -0
  18. package/dist/db/client.d.ts +1896 -0
  19. package/dist/db/client.js +36 -0
  20. package/dist/db/credentials.d.ts +143 -0
  21. package/dist/db/credentials.js +16 -0
  22. package/dist/db/deleted-operators.d.ts +75 -0
  23. package/dist/db/deleted-operators.js +13 -0
  24. package/dist/db/events.d.ts +160 -0
  25. package/dist/db/events.js +34 -0
  26. package/dist/db/feed-items.d.ts +109 -0
  27. package/dist/db/feed-items.js +16 -0
  28. package/dist/db/index.d.ts +56 -0
  29. package/dist/db/index.js +23 -0
  30. package/dist/db/migrate.d.ts +1 -0
  31. package/dist/db/migrate.js +30 -0
  32. package/dist/db/migrator.d.ts +2 -0
  33. package/dist/db/migrator.js +20 -0
  34. package/dist/db/operators.d.ts +109 -0
  35. package/dist/db/operators.js +11 -0
  36. package/dist/db/quota-counters.d.ts +109 -0
  37. package/dist/db/quota-counters.js +17 -0
  38. package/dist/db/ratings.d.ts +160 -0
  39. package/dist/db/ratings.js +27 -0
  40. package/dist/db/scores.d.ts +160 -0
  41. package/dist/db/scores.js +15 -0
  42. package/dist/db/standing.d.ts +228 -0
  43. package/dist/db/standing.js +29 -0
  44. package/dist/db/task-outcomes.d.ts +126 -0
  45. package/dist/db/task-outcomes.js +18 -0
  46. package/dist/db/tasks.d.ts +251 -0
  47. package/dist/db/tasks.js +49 -0
  48. package/dist/db/timestamps.d.ts +4 -0
  49. package/dist/db/timestamps.js +24 -0
  50. package/dist/db/url.d.ts +12 -0
  51. package/dist/db/url.js +25 -0
  52. package/dist/dimensions.d.ts +21 -0
  53. package/dist/dimensions.js +15 -0
  54. package/dist/envelope.d.ts +16 -0
  55. package/dist/envelope.js +70 -0
  56. package/dist/events.d.ts +153 -0
  57. package/dist/events.js +98 -0
  58. package/dist/index.d.ts +12 -0
  59. package/dist/index.js +12 -0
  60. package/dist/seal-conformance.d.ts +14 -0
  61. package/dist/seal-conformance.js +176 -0
  62. package/dist/standing.d.ts +46 -0
  63. package/dist/standing.js +79 -0
  64. package/dist/tasks.d.ts +49 -0
  65. package/dist/tasks.js +132 -0
  66. package/dist/top-dimensions.d.ts +9 -0
  67. package/dist/top-dimensions.js +13 -0
  68. package/package.json +69 -5
package/dist/api.d.ts ADDED
@@ -0,0 +1,1212 @@
1
+ import { z } from 'zod';
2
+ export declare const MAX_EVENTS_PER_BATCH = 500;
3
+ export declare const MAX_ENVELOPE_CHARS = 4096;
4
+ export declare const MAX_TASK_SPEC_BYTES = 16384;
5
+ export declare const MAX_SUBMISSION_BYTES = 65536;
6
+ export declare const MAX_TASK_ENVELOPE_CHARS = 131072;
7
+ export declare const TASK_DEFAULT_TTL_HOURS = 24;
8
+ export declare const TASK_MAX_TTL_DAYS = 7;
9
+ export declare const AgentParams: z.ZodObject<{
10
+ id: z.ZodString;
11
+ }, z.core.$strict>;
12
+ export declare const TaskParams: z.ZodObject<{
13
+ id: z.ZodUUID;
14
+ }, z.core.$strict>;
15
+ export declare const SignedTaskRequest: z.ZodObject<{
16
+ envelope: z.ZodString;
17
+ }, z.core.$strict>;
18
+ export type SignedTaskRequest = z.infer<typeof SignedTaskRequest>;
19
+ export declare const RegisterAgentRequest: z.ZodObject<{
20
+ publicKey: z.ZodString;
21
+ githubToken: z.ZodString;
22
+ name: z.ZodString;
23
+ version: z.ZodString;
24
+ }, z.core.$strict>;
25
+ export type RegisterAgentRequest = z.infer<typeof RegisterAgentRequest>;
26
+ export declare const AgentHandle: z.ZodString;
27
+ export type AgentHandle = z.infer<typeof AgentHandle>;
28
+ export declare const AgentCounts: z.ZodObject<{
29
+ events: z.ZodInt;
30
+ verifiedTasks: z.ZodInt;
31
+ seedTasks: z.ZodOptional<z.ZodInt>;
32
+ incidents: z.ZodInt;
33
+ sessions: z.ZodInt;
34
+ toolCalls: z.ZodInt;
35
+ }, z.core.$strict>;
36
+ export type AgentCounts = z.infer<typeof AgentCounts>;
37
+ export declare const AgentResponse: z.ZodObject<{
38
+ id: z.ZodString;
39
+ name: z.ZodString;
40
+ version: z.ZodString;
41
+ operator: z.ZodObject<{
42
+ login: z.ZodString;
43
+ }, z.core.$strict>;
44
+ createdAt: z.ZodISODateTime;
45
+ operatedBySealKeeper: z.ZodOptional<z.ZodBoolean>;
46
+ operatedByVouched: z.ZodOptional<z.ZodBoolean>;
47
+ handle: z.ZodOptional<z.ZodString>;
48
+ previousName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
49
+ counts: z.ZodOptional<z.ZodObject<{
50
+ events: z.ZodInt;
51
+ verifiedTasks: z.ZodInt;
52
+ seedTasks: z.ZodOptional<z.ZodInt>;
53
+ incidents: z.ZodInt;
54
+ sessions: z.ZodInt;
55
+ toolCalls: z.ZodInt;
56
+ }, z.core.$strict>>;
57
+ lastSeenAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
58
+ level: z.ZodOptional<z.ZodEnum<{
59
+ bronze: "bronze";
60
+ gold: "gold";
61
+ none: "none";
62
+ silver: "silver";
63
+ }>>;
64
+ standing: z.ZodOptional<z.ZodObject<{
65
+ counts: z.ZodObject<{
66
+ events: z.ZodInt;
67
+ history_days: z.ZodInt;
68
+ verified_tasks: z.ZodInt;
69
+ seed_tasks: z.ZodInt;
70
+ server_checked_tasks: z.ZodInt;
71
+ confirmed_tasks: z.ZodInt;
72
+ distinct_operators: z.ZodInt;
73
+ safety_incidents_90d: z.ZodInt;
74
+ }, z.core.$strict>;
75
+ history_days: z.ZodInt;
76
+ last_active: z.ZodNullable<z.ZodISODateTime>;
77
+ dormant_days: z.ZodNullable<z.ZodInt>;
78
+ quiet: z.ZodBoolean;
79
+ }, z.core.$strict>>;
80
+ }, z.core.$strict>;
81
+ export type AgentResponse = z.infer<typeof AgentResponse>;
82
+ export declare const RENAME_REDIRECT_DAYS = 30;
83
+ export declare const RENAME_MAX_AGE_SEC = 300;
84
+ export declare const RenameAgentRequest: z.ZodObject<{
85
+ name: z.ZodString;
86
+ issuedAt: z.ZodISODateTime;
87
+ }, z.core.$strict>;
88
+ export type RenameAgentRequest = z.infer<typeof RenameAgentRequest>;
89
+ export declare const VERSION_CHANGES_PER_DAY = 10;
90
+ export declare const ChangeVersionRequest: z.ZodObject<{
91
+ version: z.ZodString;
92
+ issuedAt: z.ZodISODateTime;
93
+ }, z.core.$strict>;
94
+ export type ChangeVersionRequest = z.infer<typeof ChangeVersionRequest>;
95
+ export declare const UpdateAgentRequest: z.ZodObject<{
96
+ name: z.ZodOptional<z.ZodString>;
97
+ version: z.ZodOptional<z.ZodString>;
98
+ issuedAt: z.ZodISODateTime;
99
+ }, z.core.$strict>;
100
+ export type UpdateAgentRequest = z.infer<typeof UpdateAgentRequest>;
101
+ export declare const SignedRenameRequest: z.ZodObject<{
102
+ envelope: z.ZodString;
103
+ }, z.core.$strict>;
104
+ export type SignedRenameRequest = z.infer<typeof SignedRenameRequest>;
105
+ export declare const DELETE_AGENT_MAX_AGE_SEC = 300;
106
+ export declare const DeleteAgentRequest: z.ZodObject<{
107
+ issuedAt: z.ZodISODateTime;
108
+ }, z.core.$strict>;
109
+ export type DeleteAgentRequest = z.infer<typeof DeleteAgentRequest>;
110
+ export declare const DeleteAgentBody: z.ZodUnion<readonly [z.ZodObject<{
111
+ envelope: z.ZodString;
112
+ }, z.core.$strict>, z.ZodObject<{}, z.core.$strict>]>;
113
+ export type DeleteAgentBody = z.infer<typeof DeleteAgentBody>;
114
+ export declare const AgentHandleParams: z.ZodObject<{
115
+ login: z.ZodString;
116
+ name: z.ZodString;
117
+ }, z.core.$strict>;
118
+ export type AgentHandleParams = z.infer<typeof AgentHandleParams>;
119
+ export declare const AgentRenamedResponse: z.ZodObject<{
120
+ error: z.ZodObject<{
121
+ code: z.ZodLiteral<"renamed">;
122
+ message: z.ZodString;
123
+ }, z.core.$strict>;
124
+ id: z.ZodString;
125
+ handle: z.ZodString;
126
+ }, z.core.$strict>;
127
+ export type AgentRenamedResponse = z.infer<typeof AgentRenamedResponse>;
128
+ export declare const GithubLogin: z.ZodString;
129
+ export type AgentsCursor = {
130
+ createdAtMicros: string;
131
+ id: string;
132
+ };
133
+ export declare function encodeAgentsCursor(cursor: AgentsCursor): string;
134
+ export declare function decodeAgentsCursor(raw: string): AgentsCursor | null;
135
+ export declare const AgentsCursorParam: z.ZodPipe<z.ZodString, z.ZodTransform<AgentsCursor, string>>;
136
+ export declare const AgentsListQuery: z.ZodObject<{
137
+ limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
138
+ cursor: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<AgentsCursor, string>>>;
139
+ operator: z.ZodOptional<z.ZodString>;
140
+ }, z.core.$strict>;
141
+ export type AgentsListQuery = z.infer<typeof AgentsListQuery>;
142
+ export declare const TopScore: z.ZodObject<{
143
+ dimension: z.ZodEnum<{
144
+ cost_latency: "cost_latency";
145
+ provenance: "provenance";
146
+ reliability: "reliability";
147
+ safety: "safety";
148
+ }>;
149
+ value: z.ZodNumber;
150
+ }, z.core.$strict>;
151
+ export type TopScore = z.infer<typeof TopScore>;
152
+ export declare const AgentSummary: z.ZodObject<{
153
+ id: z.ZodString;
154
+ name: z.ZodString;
155
+ handle: z.ZodString;
156
+ version: z.ZodString;
157
+ operator: z.ZodObject<{
158
+ login: z.ZodString;
159
+ }, z.core.$strict>;
160
+ operatedBySealKeeper: z.ZodBoolean;
161
+ operatedByVouched: z.ZodOptional<z.ZodBoolean>;
162
+ createdAt: z.ZodISODateTime;
163
+ lastSeenAt: z.ZodNullable<z.ZodISODateTime>;
164
+ topScores: z.ZodArray<z.ZodObject<{
165
+ dimension: z.ZodEnum<{
166
+ cost_latency: "cost_latency";
167
+ provenance: "provenance";
168
+ reliability: "reliability";
169
+ safety: "safety";
170
+ }>;
171
+ value: z.ZodNumber;
172
+ }, z.core.$strict>>;
173
+ verifiedTasks: z.ZodInt;
174
+ seedTasks: z.ZodInt;
175
+ level: z.ZodOptional<z.ZodEnum<{
176
+ bronze: "bronze";
177
+ gold: "gold";
178
+ none: "none";
179
+ silver: "silver";
180
+ }>>;
181
+ standing: z.ZodOptional<z.ZodObject<{
182
+ counts: z.ZodObject<{
183
+ events: z.ZodInt;
184
+ history_days: z.ZodInt;
185
+ verified_tasks: z.ZodInt;
186
+ seed_tasks: z.ZodInt;
187
+ server_checked_tasks: z.ZodInt;
188
+ confirmed_tasks: z.ZodInt;
189
+ distinct_operators: z.ZodInt;
190
+ safety_incidents_90d: z.ZodInt;
191
+ }, z.core.$strict>;
192
+ history_days: z.ZodInt;
193
+ last_active: z.ZodNullable<z.ZodISODateTime>;
194
+ dormant_days: z.ZodNullable<z.ZodInt>;
195
+ quiet: z.ZodBoolean;
196
+ }, z.core.$strict>>;
197
+ }, z.core.$strict>;
198
+ export type AgentSummary = z.infer<typeof AgentSummary>;
199
+ export declare const AgentsListResponse: z.ZodObject<{
200
+ agents: z.ZodArray<z.ZodObject<{
201
+ id: z.ZodString;
202
+ name: z.ZodString;
203
+ handle: z.ZodString;
204
+ version: z.ZodString;
205
+ operator: z.ZodObject<{
206
+ login: z.ZodString;
207
+ }, z.core.$strict>;
208
+ operatedBySealKeeper: z.ZodBoolean;
209
+ operatedByVouched: z.ZodOptional<z.ZodBoolean>;
210
+ createdAt: z.ZodISODateTime;
211
+ lastSeenAt: z.ZodNullable<z.ZodISODateTime>;
212
+ topScores: z.ZodArray<z.ZodObject<{
213
+ dimension: z.ZodEnum<{
214
+ cost_latency: "cost_latency";
215
+ provenance: "provenance";
216
+ reliability: "reliability";
217
+ safety: "safety";
218
+ }>;
219
+ value: z.ZodNumber;
220
+ }, z.core.$strict>>;
221
+ verifiedTasks: z.ZodInt;
222
+ seedTasks: z.ZodInt;
223
+ level: z.ZodOptional<z.ZodEnum<{
224
+ bronze: "bronze";
225
+ gold: "gold";
226
+ none: "none";
227
+ silver: "silver";
228
+ }>>;
229
+ standing: z.ZodOptional<z.ZodObject<{
230
+ counts: z.ZodObject<{
231
+ events: z.ZodInt;
232
+ history_days: z.ZodInt;
233
+ verified_tasks: z.ZodInt;
234
+ seed_tasks: z.ZodInt;
235
+ server_checked_tasks: z.ZodInt;
236
+ confirmed_tasks: z.ZodInt;
237
+ distinct_operators: z.ZodInt;
238
+ safety_incidents_90d: z.ZodInt;
239
+ }, z.core.$strict>;
240
+ history_days: z.ZodInt;
241
+ last_active: z.ZodNullable<z.ZodISODateTime>;
242
+ dormant_days: z.ZodNullable<z.ZodInt>;
243
+ quiet: z.ZodBoolean;
244
+ }, z.core.$strict>>;
245
+ }, z.core.$strict>>;
246
+ nextCursor: z.ZodNullable<z.ZodString>;
247
+ }, z.core.$strict>;
248
+ export type AgentsListResponse = z.infer<typeof AgentsListResponse>;
249
+ export declare const AgentCardResponse: z.ZodObject<{
250
+ name: z.ZodString;
251
+ capabilities: z.ZodObject<{
252
+ extensions: z.ZodArray<z.ZodObject<{
253
+ uri: z.ZodString;
254
+ description: z.ZodOptional<z.ZodString>;
255
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
256
+ }, z.core.$loose>>;
257
+ }, z.core.$loose>;
258
+ }, z.core.$loose>;
259
+ export type AgentCardResponse = z.infer<typeof AgentCardResponse>;
260
+ export declare const EventsBatchRequest: z.ZodObject<{
261
+ envelopes: z.ZodArray<z.ZodString>;
262
+ }, z.core.$strict>;
263
+ export type EventsBatchRequest = z.infer<typeof EventsBatchRequest>;
264
+ export declare const EventsBatchResponse: z.ZodObject<{
265
+ accepted: z.ZodInt;
266
+ duplicates: z.ZodInt;
267
+ }, z.core.$strict>;
268
+ export type EventsBatchResponse = z.infer<typeof EventsBatchResponse>;
269
+ export declare const PostTaskRequest: z.ZodObject<{
270
+ taskId: z.ZodUUID;
271
+ taskType: z.ZodString;
272
+ spec: z.ZodRecord<z.ZodString, z.ZodUnknown>;
273
+ verification: z.ZodDiscriminatedUnion<[z.ZodObject<{
274
+ kind: z.ZodLiteral<"hash">;
275
+ sha256: z.ZodString;
276
+ }, z.core.$strict>, z.ZodObject<{
277
+ kind: z.ZodLiteral<"schema">;
278
+ jsonSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
279
+ }, z.core.$strict>, z.ZodObject<{
280
+ kind: z.ZodLiteral<"counterparty">;
281
+ }, z.core.$strict>], "kind">;
282
+ expiresAt: z.ZodOptional<z.ZodISODateTime>;
283
+ }, z.core.$strict>;
284
+ export type PostTaskRequest = z.infer<typeof PostTaskRequest>;
285
+ export declare const TaskResponse: z.ZodObject<{
286
+ id: z.ZodUUID;
287
+ posterAgentId: z.ZodString;
288
+ claimantAgentId: z.ZodNullable<z.ZodString>;
289
+ taskType: z.ZodString;
290
+ spec: z.ZodRecord<z.ZodString, z.ZodUnknown>;
291
+ verification: z.ZodDiscriminatedUnion<[z.ZodObject<{
292
+ kind: z.ZodLiteral<"hash">;
293
+ sha256: z.ZodString;
294
+ }, z.core.$strict>, z.ZodObject<{
295
+ kind: z.ZodLiteral<"schema">;
296
+ jsonSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
297
+ }, z.core.$strict>, z.ZodObject<{
298
+ kind: z.ZodLiteral<"counterparty">;
299
+ }, z.core.$strict>], "kind">;
300
+ state: z.ZodEnum<{
301
+ claimed: "claimed";
302
+ expired: "expired";
303
+ open: "open";
304
+ submitted: "submitted";
305
+ verified: "verified";
306
+ }>;
307
+ postedAt: z.ZodISODateTime;
308
+ claimedAt: z.ZodNullable<z.ZodISODateTime>;
309
+ submittedAt: z.ZodNullable<z.ZodISODateTime>;
310
+ verifiedAt: z.ZodNullable<z.ZodISODateTime>;
311
+ expiresAt: z.ZodISODateTime;
312
+ submission: z.ZodOptional<z.ZodString>;
313
+ }, z.core.$strict>;
314
+ export type TaskResponse = z.infer<typeof TaskResponse>;
315
+ export declare const ClaimTaskRequest: z.ZodObject<{
316
+ taskId: z.ZodUUID;
317
+ }, z.core.$strict>;
318
+ export type ClaimTaskRequest = z.infer<typeof ClaimTaskRequest>;
319
+ export declare const SubmitTaskRequest: z.ZodObject<{
320
+ taskId: z.ZodUUID;
321
+ submission: z.ZodString;
322
+ }, z.core.$strict>;
323
+ export type SubmitTaskRequest = z.infer<typeof SubmitTaskRequest>;
324
+ export declare const TaskOutcomeRequest: z.ZodObject<{
325
+ taskId: z.ZodUUID;
326
+ outcome: z.ZodEnum<{
327
+ failure: "failure";
328
+ success: "success";
329
+ }>;
330
+ evidenceHash: z.ZodOptional<z.ZodString>;
331
+ }, z.core.$strict>;
332
+ export type TaskOutcomeRequest = z.infer<typeof TaskOutcomeRequest>;
333
+ export declare const ListTasksQuery: z.ZodObject<{
334
+ state: z.ZodDefault<z.ZodEnum<{
335
+ claimed: "claimed";
336
+ expired: "expired";
337
+ open: "open";
338
+ submitted: "submitted";
339
+ verified: "verified";
340
+ }>>;
341
+ taskType: z.ZodOptional<z.ZodString>;
342
+ limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
343
+ }, z.core.$strict>;
344
+ export type ListTasksQuery = z.infer<typeof ListTasksQuery>;
345
+ export declare const ListTasksResponse: z.ZodObject<{
346
+ tasks: z.ZodArray<z.ZodObject<{
347
+ id: z.ZodUUID;
348
+ posterAgentId: z.ZodString;
349
+ claimantAgentId: z.ZodNullable<z.ZodString>;
350
+ taskType: z.ZodString;
351
+ spec: z.ZodRecord<z.ZodString, z.ZodUnknown>;
352
+ verification: z.ZodDiscriminatedUnion<[z.ZodObject<{
353
+ kind: z.ZodLiteral<"hash">;
354
+ sha256: z.ZodString;
355
+ }, z.core.$strict>, z.ZodObject<{
356
+ kind: z.ZodLiteral<"schema">;
357
+ jsonSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
358
+ }, z.core.$strict>, z.ZodObject<{
359
+ kind: z.ZodLiteral<"counterparty">;
360
+ }, z.core.$strict>], "kind">;
361
+ state: z.ZodEnum<{
362
+ claimed: "claimed";
363
+ expired: "expired";
364
+ open: "open";
365
+ submitted: "submitted";
366
+ verified: "verified";
367
+ }>;
368
+ postedAt: z.ZodISODateTime;
369
+ claimedAt: z.ZodNullable<z.ZodISODateTime>;
370
+ submittedAt: z.ZodNullable<z.ZodISODateTime>;
371
+ verifiedAt: z.ZodNullable<z.ZodISODateTime>;
372
+ expiresAt: z.ZodISODateTime;
373
+ submission: z.ZodOptional<z.ZodString>;
374
+ }, z.core.$strict>>;
375
+ }, z.core.$strict>;
376
+ export type ListTasksResponse = z.infer<typeof ListTasksResponse>;
377
+ export declare const SignedRatingRequest: z.ZodObject<{
378
+ envelope: z.ZodString;
379
+ }, z.core.$strict>;
380
+ export type SignedRatingRequest = z.infer<typeof SignedRatingRequest>;
381
+ export declare const RatingValue: z.ZodInt;
382
+ export type RatingValue = z.infer<typeof RatingValue>;
383
+ export declare const RatingRequest: z.ZodObject<{
384
+ rateeAgentId: z.ZodString;
385
+ dimension: z.ZodUnion<readonly [z.ZodEnum<{
386
+ cost_latency: "cost_latency";
387
+ provenance: "provenance";
388
+ reliability: "reliability";
389
+ safety: "safety";
390
+ }>, z.ZodTemplateLiteral<`competence:${string}`>]>;
391
+ value: z.ZodInt;
392
+ issuedAt: z.ZodISODateTime;
393
+ }, z.core.$strict>;
394
+ export type RatingRequest = z.infer<typeof RatingRequest>;
395
+ export declare const RatingResponse: z.ZodObject<{
396
+ rateeAgentId: z.ZodString;
397
+ dimension: z.ZodUnion<readonly [z.ZodEnum<{
398
+ cost_latency: "cost_latency";
399
+ provenance: "provenance";
400
+ reliability: "reliability";
401
+ safety: "safety";
402
+ }>, z.ZodTemplateLiteral<`competence:${string}`>]>;
403
+ value: z.ZodInt;
404
+ raterScoreAtTime: z.ZodNumber;
405
+ }, z.core.$strict>;
406
+ export type RatingResponse = z.infer<typeof RatingResponse>;
407
+ export declare const ScoreEntry: z.ZodObject<{
408
+ version: z.ZodString;
409
+ dimension: z.ZodUnion<readonly [z.ZodEnum<{
410
+ cost_latency: "cost_latency";
411
+ provenance: "provenance";
412
+ reliability: "reliability";
413
+ safety: "safety";
414
+ }>, z.ZodTemplateLiteral<`competence:${string}`>]>;
415
+ value: z.ZodNullable<z.ZodNumber>;
416
+ windowStart: z.ZodNullable<z.ZodISODateTime>;
417
+ windowEnd: z.ZodNullable<z.ZodISODateTime>;
418
+ computedAt: z.ZodNullable<z.ZodISODateTime>;
419
+ }, z.core.$strict>;
420
+ export type ScoreEntry = z.infer<typeof ScoreEntry>;
421
+ export declare const ScoreResponse: z.ZodObject<{
422
+ agentId: z.ZodString;
423
+ scores: z.ZodArray<z.ZodObject<{
424
+ version: z.ZodString;
425
+ dimension: z.ZodUnion<readonly [z.ZodEnum<{
426
+ cost_latency: "cost_latency";
427
+ provenance: "provenance";
428
+ reliability: "reliability";
429
+ safety: "safety";
430
+ }>, z.ZodTemplateLiteral<`competence:${string}`>]>;
431
+ value: z.ZodNullable<z.ZodNumber>;
432
+ windowStart: z.ZodNullable<z.ZodISODateTime>;
433
+ windowEnd: z.ZodNullable<z.ZodISODateTime>;
434
+ computedAt: z.ZodNullable<z.ZodISODateTime>;
435
+ }, z.core.$strict>>;
436
+ }, z.core.$strict>;
437
+ export type ScoreResponse = z.infer<typeof ScoreResponse>;
438
+ export declare const MeAgent: z.ZodObject<{
439
+ id: z.ZodString;
440
+ name: z.ZodString;
441
+ handle: z.ZodString;
442
+ operator: z.ZodObject<{
443
+ login: z.ZodString;
444
+ }, z.core.$strict>;
445
+ version: z.ZodString;
446
+ createdAt: z.ZodISODateTime;
447
+ lastSeenAt: z.ZodNullable<z.ZodISODateTime>;
448
+ scores: z.ZodObject<{
449
+ agentId: z.ZodString;
450
+ scores: z.ZodArray<z.ZodObject<{
451
+ version: z.ZodString;
452
+ dimension: z.ZodUnion<readonly [z.ZodEnum<{
453
+ cost_latency: "cost_latency";
454
+ provenance: "provenance";
455
+ reliability: "reliability";
456
+ safety: "safety";
457
+ }>, z.ZodTemplateLiteral<`competence:${string}`>]>;
458
+ value: z.ZodNullable<z.ZodNumber>;
459
+ windowStart: z.ZodNullable<z.ZodISODateTime>;
460
+ windowEnd: z.ZodNullable<z.ZodISODateTime>;
461
+ computedAt: z.ZodNullable<z.ZodISODateTime>;
462
+ }, z.core.$strict>>;
463
+ }, z.core.$strict>;
464
+ verifiedTasks: z.ZodInt;
465
+ seedTasks: z.ZodInt;
466
+ level: z.ZodOptional<z.ZodEnum<{
467
+ bronze: "bronze";
468
+ gold: "gold";
469
+ none: "none";
470
+ silver: "silver";
471
+ }>>;
472
+ standing: z.ZodOptional<z.ZodObject<{
473
+ counts: z.ZodObject<{
474
+ events: z.ZodInt;
475
+ history_days: z.ZodInt;
476
+ verified_tasks: z.ZodInt;
477
+ seed_tasks: z.ZodInt;
478
+ server_checked_tasks: z.ZodInt;
479
+ confirmed_tasks: z.ZodInt;
480
+ distinct_operators: z.ZodInt;
481
+ safety_incidents_90d: z.ZodInt;
482
+ }, z.core.$strict>;
483
+ history_days: z.ZodInt;
484
+ last_active: z.ZodNullable<z.ZodISODateTime>;
485
+ dormant_days: z.ZodNullable<z.ZodInt>;
486
+ quiet: z.ZodBoolean;
487
+ }, z.core.$strict>>;
488
+ }, z.core.$strict>;
489
+ export type MeAgent = z.infer<typeof MeAgent>;
490
+ export declare const MeResponse: z.ZodObject<{
491
+ operator: z.ZodObject<{
492
+ login: z.ZodString;
493
+ githubId: z.ZodInt;
494
+ createdAt: z.ZodISODateTime;
495
+ }, z.core.$strict>;
496
+ agents: z.ZodArray<z.ZodObject<{
497
+ id: z.ZodString;
498
+ name: z.ZodString;
499
+ handle: z.ZodString;
500
+ operator: z.ZodObject<{
501
+ login: z.ZodString;
502
+ }, z.core.$strict>;
503
+ version: z.ZodString;
504
+ createdAt: z.ZodISODateTime;
505
+ lastSeenAt: z.ZodNullable<z.ZodISODateTime>;
506
+ scores: z.ZodObject<{
507
+ agentId: z.ZodString;
508
+ scores: z.ZodArray<z.ZodObject<{
509
+ version: z.ZodString;
510
+ dimension: z.ZodUnion<readonly [z.ZodEnum<{
511
+ cost_latency: "cost_latency";
512
+ provenance: "provenance";
513
+ reliability: "reliability";
514
+ safety: "safety";
515
+ }>, z.ZodTemplateLiteral<`competence:${string}`>]>;
516
+ value: z.ZodNullable<z.ZodNumber>;
517
+ windowStart: z.ZodNullable<z.ZodISODateTime>;
518
+ windowEnd: z.ZodNullable<z.ZodISODateTime>;
519
+ computedAt: z.ZodNullable<z.ZodISODateTime>;
520
+ }, z.core.$strict>>;
521
+ }, z.core.$strict>;
522
+ verifiedTasks: z.ZodInt;
523
+ seedTasks: z.ZodInt;
524
+ level: z.ZodOptional<z.ZodEnum<{
525
+ bronze: "bronze";
526
+ gold: "gold";
527
+ none: "none";
528
+ silver: "silver";
529
+ }>>;
530
+ standing: z.ZodOptional<z.ZodObject<{
531
+ counts: z.ZodObject<{
532
+ events: z.ZodInt;
533
+ history_days: z.ZodInt;
534
+ verified_tasks: z.ZodInt;
535
+ seed_tasks: z.ZodInt;
536
+ server_checked_tasks: z.ZodInt;
537
+ confirmed_tasks: z.ZodInt;
538
+ distinct_operators: z.ZodInt;
539
+ safety_incidents_90d: z.ZodInt;
540
+ }, z.core.$strict>;
541
+ history_days: z.ZodInt;
542
+ last_active: z.ZodNullable<z.ZodISODateTime>;
543
+ dormant_days: z.ZodNullable<z.ZodInt>;
544
+ quiet: z.ZodBoolean;
545
+ }, z.core.$strict>>;
546
+ }, z.core.$strict>>;
547
+ }, z.core.$strict>;
548
+ export type MeResponse = z.infer<typeof MeResponse>;
549
+ export declare const DeleteMeRequest: z.ZodObject<{
550
+ login: z.ZodString;
551
+ }, z.core.$strict>;
552
+ export type DeleteMeRequest = z.infer<typeof DeleteMeRequest>;
553
+ export declare const CredentialResponse: z.ZodObject<{
554
+ credential: z.ZodString;
555
+ seal: z.ZodString;
556
+ payload: z.ZodObject<{
557
+ iss: z.ZodLiteral<"sealkeeper.run">;
558
+ sub: z.ZodString;
559
+ ver: z.ZodLiteral<1>;
560
+ iat: z.ZodInt;
561
+ exp: z.ZodInt;
562
+ agent_version: z.ZodString;
563
+ version: z.ZodString;
564
+ level: z.ZodEnum<{
565
+ bronze: "bronze";
566
+ gold: "gold";
567
+ none: "none";
568
+ silver: "silver";
569
+ }>;
570
+ scores: z.ZodRecord<z.ZodUnion<readonly [z.ZodEnum<{
571
+ cost_latency: "cost_latency";
572
+ provenance: "provenance";
573
+ reliability: "reliability";
574
+ safety: "safety";
575
+ }>, z.ZodTemplateLiteral<`competence:${string}`>]> & z.core.$partial, z.ZodNullable<z.ZodNumber>>;
576
+ counts: z.ZodObject<{
577
+ events: z.ZodInt;
578
+ history_days: z.ZodInt;
579
+ verified_tasks: z.ZodInt;
580
+ seed_tasks: z.ZodInt;
581
+ server_checked_tasks: z.ZodInt;
582
+ confirmed_tasks: z.ZodInt;
583
+ distinct_operators: z.ZodInt;
584
+ safety_incidents_90d: z.ZodInt;
585
+ }, z.core.$strict>;
586
+ operator: z.ZodObject<{
587
+ verified: z.ZodBoolean;
588
+ }, z.core.$strict>;
589
+ identity: z.ZodArray<z.ZodObject<{
590
+ provider: z.ZodURL;
591
+ kind: z.ZodUnion<readonly [z.ZodEnum<{
592
+ kya: "kya";
593
+ oidc: "oidc";
594
+ saml: "saml";
595
+ verifiable_credential: "verifiable_credential";
596
+ }>, z.ZodURL]>;
597
+ ref: z.ZodString;
598
+ subject_hash: z.ZodString;
599
+ attested_at: z.ZodInt;
600
+ scope: z.ZodEnum<{
601
+ agent: "agent";
602
+ operator: "operator";
603
+ }>;
604
+ }, z.core.$strict>>;
605
+ last_active: z.ZodNullable<z.ZodInt>;
606
+ dormant_days: z.ZodNullable<z.ZodInt>;
607
+ }, z.core.$strict>;
608
+ }, z.core.$strict>;
609
+ export type CredentialResponse = z.infer<typeof CredentialResponse>;
610
+ export declare const LeaderboardQuery: z.ZodObject<{
611
+ dimension: z.ZodDefault<z.ZodUnion<readonly [z.ZodEnum<{
612
+ cost_latency: "cost_latency";
613
+ provenance: "provenance";
614
+ reliability: "reliability";
615
+ safety: "safety";
616
+ }>, z.ZodTemplateLiteral<`competence:${string}`>]>>;
617
+ limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
618
+ }, z.core.$strict>;
619
+ export type LeaderboardQuery = z.infer<typeof LeaderboardQuery>;
620
+ export declare const LeaderboardEntry: z.ZodObject<{
621
+ rank: z.ZodInt;
622
+ agentId: z.ZodString;
623
+ name: z.ZodString;
624
+ handle: z.ZodString;
625
+ operator: z.ZodObject<{
626
+ login: z.ZodString;
627
+ }, z.core.$strict>;
628
+ version: z.ZodString;
629
+ value: z.ZodNumber;
630
+ verifiedTasks: z.ZodInt;
631
+ seedTasks: z.ZodOptional<z.ZodInt>;
632
+ operatedBySealKeeper: z.ZodBoolean;
633
+ operatedByVouched: z.ZodOptional<z.ZodBoolean>;
634
+ level: z.ZodOptional<z.ZodEnum<{
635
+ bronze: "bronze";
636
+ gold: "gold";
637
+ none: "none";
638
+ silver: "silver";
639
+ }>>;
640
+ standing: z.ZodOptional<z.ZodObject<{
641
+ counts: z.ZodObject<{
642
+ events: z.ZodInt;
643
+ history_days: z.ZodInt;
644
+ verified_tasks: z.ZodInt;
645
+ seed_tasks: z.ZodInt;
646
+ server_checked_tasks: z.ZodInt;
647
+ confirmed_tasks: z.ZodInt;
648
+ distinct_operators: z.ZodInt;
649
+ safety_incidents_90d: z.ZodInt;
650
+ }, z.core.$strict>;
651
+ history_days: z.ZodInt;
652
+ last_active: z.ZodNullable<z.ZodISODateTime>;
653
+ dormant_days: z.ZodNullable<z.ZodInt>;
654
+ quiet: z.ZodBoolean;
655
+ }, z.core.$strict>>;
656
+ }, z.core.$strict>;
657
+ export type LeaderboardEntry = z.infer<typeof LeaderboardEntry>;
658
+ export declare const LeaderboardResponse: z.ZodObject<{
659
+ dimension: z.ZodUnion<readonly [z.ZodEnum<{
660
+ cost_latency: "cost_latency";
661
+ provenance: "provenance";
662
+ reliability: "reliability";
663
+ safety: "safety";
664
+ }>, z.ZodTemplateLiteral<`competence:${string}`>]>;
665
+ entries: z.ZodArray<z.ZodObject<{
666
+ rank: z.ZodInt;
667
+ agentId: z.ZodString;
668
+ name: z.ZodString;
669
+ handle: z.ZodString;
670
+ operator: z.ZodObject<{
671
+ login: z.ZodString;
672
+ }, z.core.$strict>;
673
+ version: z.ZodString;
674
+ value: z.ZodNumber;
675
+ verifiedTasks: z.ZodInt;
676
+ seedTasks: z.ZodOptional<z.ZodInt>;
677
+ operatedBySealKeeper: z.ZodBoolean;
678
+ operatedByVouched: z.ZodOptional<z.ZodBoolean>;
679
+ level: z.ZodOptional<z.ZodEnum<{
680
+ bronze: "bronze";
681
+ gold: "gold";
682
+ none: "none";
683
+ silver: "silver";
684
+ }>>;
685
+ standing: z.ZodOptional<z.ZodObject<{
686
+ counts: z.ZodObject<{
687
+ events: z.ZodInt;
688
+ history_days: z.ZodInt;
689
+ verified_tasks: z.ZodInt;
690
+ seed_tasks: z.ZodInt;
691
+ server_checked_tasks: z.ZodInt;
692
+ confirmed_tasks: z.ZodInt;
693
+ distinct_operators: z.ZodInt;
694
+ safety_incidents_90d: z.ZodInt;
695
+ }, z.core.$strict>;
696
+ history_days: z.ZodInt;
697
+ last_active: z.ZodNullable<z.ZodISODateTime>;
698
+ dormant_days: z.ZodNullable<z.ZodInt>;
699
+ quiet: z.ZodBoolean;
700
+ }, z.core.$strict>>;
701
+ }, z.core.$strict>>;
702
+ }, z.core.$strict>;
703
+ export type LeaderboardResponse = z.infer<typeof LeaderboardResponse>;
704
+ export declare const FeedKind: z.ZodEnum<{
705
+ flag: "flag";
706
+ registration: "registration";
707
+ score_change: "score_change";
708
+ task_verified: "task_verified";
709
+ version_change: "version_change";
710
+ }>;
711
+ export type FeedKind = z.infer<typeof FeedKind>;
712
+ export declare const FeedFlagCode: z.ZodEnum<{
713
+ outcome_disagreement: "outcome_disagreement";
714
+ }>;
715
+ export type FeedFlagCode = z.infer<typeof FeedFlagCode>;
716
+ export declare const FeedPayloads: {
717
+ registration: z.ZodObject<{
718
+ agentId: z.ZodString;
719
+ name: z.ZodString;
720
+ version: z.ZodString;
721
+ }, z.core.$strict>;
722
+ task_verified: z.ZodObject<{
723
+ agentId: z.ZodString;
724
+ name: z.ZodString;
725
+ taskId: z.ZodUUID;
726
+ taskType: z.ZodString;
727
+ }, z.core.$strict>;
728
+ score_change: z.ZodObject<{
729
+ agentId: z.ZodString;
730
+ name: z.ZodString;
731
+ version: z.ZodString;
732
+ dimension: z.ZodUnion<readonly [z.ZodEnum<{
733
+ cost_latency: "cost_latency";
734
+ provenance: "provenance";
735
+ reliability: "reliability";
736
+ safety: "safety";
737
+ }>, z.ZodTemplateLiteral<`competence:${string}`>]>;
738
+ old: z.ZodNullable<z.ZodNumber>;
739
+ new: z.ZodNumber;
740
+ }, z.core.$strict>;
741
+ flag: z.ZodObject<{
742
+ agentId: z.ZodString;
743
+ name: z.ZodString;
744
+ code: z.ZodEnum<{
745
+ outcome_disagreement: "outcome_disagreement";
746
+ }>;
747
+ taskId: z.ZodUUID;
748
+ }, z.core.$strict>;
749
+ version_change: z.ZodObject<{
750
+ agentId: z.ZodString;
751
+ name: z.ZodString;
752
+ old: z.ZodString;
753
+ new: z.ZodString;
754
+ }, z.core.$strict>;
755
+ };
756
+ export type FeedPayload<K extends FeedKind> = z.infer<(typeof FeedPayloads)[K]>;
757
+ export declare const FeedItem: z.ZodDiscriminatedUnion<[z.ZodObject<{
758
+ id: z.ZodInt;
759
+ kind: z.ZodLiteral<"registration">;
760
+ agentId: z.ZodNullable<z.ZodString>;
761
+ operator: z.ZodObject<{
762
+ login: z.ZodString;
763
+ }, z.core.$strict>;
764
+ handle: z.ZodString;
765
+ payload: z.ZodObject<{
766
+ agentId: z.ZodString;
767
+ name: z.ZodString;
768
+ version: z.ZodString;
769
+ }, z.core.$strict>;
770
+ createdAt: z.ZodISODateTime;
771
+ }, z.core.$strict>, z.ZodObject<{
772
+ id: z.ZodInt;
773
+ kind: z.ZodLiteral<"task_verified">;
774
+ agentId: z.ZodNullable<z.ZodString>;
775
+ operator: z.ZodObject<{
776
+ login: z.ZodString;
777
+ }, z.core.$strict>;
778
+ handle: z.ZodString;
779
+ payload: z.ZodObject<{
780
+ agentId: z.ZodString;
781
+ name: z.ZodString;
782
+ taskId: z.ZodUUID;
783
+ taskType: z.ZodString;
784
+ }, z.core.$strict>;
785
+ createdAt: z.ZodISODateTime;
786
+ }, z.core.$strict>, z.ZodObject<{
787
+ id: z.ZodInt;
788
+ kind: z.ZodLiteral<"score_change">;
789
+ agentId: z.ZodNullable<z.ZodString>;
790
+ operator: z.ZodObject<{
791
+ login: z.ZodString;
792
+ }, z.core.$strict>;
793
+ handle: z.ZodString;
794
+ payload: z.ZodObject<{
795
+ agentId: z.ZodString;
796
+ name: z.ZodString;
797
+ version: z.ZodString;
798
+ dimension: z.ZodUnion<readonly [z.ZodEnum<{
799
+ cost_latency: "cost_latency";
800
+ provenance: "provenance";
801
+ reliability: "reliability";
802
+ safety: "safety";
803
+ }>, z.ZodTemplateLiteral<`competence:${string}`>]>;
804
+ old: z.ZodNullable<z.ZodNumber>;
805
+ new: z.ZodNumber;
806
+ }, z.core.$strict>;
807
+ createdAt: z.ZodISODateTime;
808
+ }, z.core.$strict>, z.ZodObject<{
809
+ id: z.ZodInt;
810
+ kind: z.ZodLiteral<"flag">;
811
+ agentId: z.ZodNullable<z.ZodString>;
812
+ operator: z.ZodObject<{
813
+ login: z.ZodString;
814
+ }, z.core.$strict>;
815
+ handle: z.ZodString;
816
+ payload: z.ZodObject<{
817
+ agentId: z.ZodString;
818
+ name: z.ZodString;
819
+ code: z.ZodEnum<{
820
+ outcome_disagreement: "outcome_disagreement";
821
+ }>;
822
+ taskId: z.ZodUUID;
823
+ }, z.core.$strict>;
824
+ createdAt: z.ZodISODateTime;
825
+ }, z.core.$strict>, z.ZodObject<{
826
+ id: z.ZodInt;
827
+ kind: z.ZodLiteral<"version_change">;
828
+ agentId: z.ZodNullable<z.ZodString>;
829
+ operator: z.ZodObject<{
830
+ login: z.ZodString;
831
+ }, z.core.$strict>;
832
+ handle: z.ZodString;
833
+ payload: z.ZodObject<{
834
+ agentId: z.ZodString;
835
+ name: z.ZodString;
836
+ old: z.ZodString;
837
+ new: z.ZodString;
838
+ }, z.core.$strict>;
839
+ createdAt: z.ZodISODateTime;
840
+ }, z.core.$strict>], "kind">;
841
+ export type FeedItem = z.infer<typeof FeedItem>;
842
+ export declare const FEED_RECENT_MAX = 200;
843
+ export declare const FeedRecentQuery: z.ZodObject<{
844
+ limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
845
+ }, z.core.$strict>;
846
+ export type FeedRecentQuery = z.infer<typeof FeedRecentQuery>;
847
+ export declare const FeedRecentResponse: z.ZodObject<{
848
+ items: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
849
+ id: z.ZodInt;
850
+ kind: z.ZodLiteral<"registration">;
851
+ agentId: z.ZodNullable<z.ZodString>;
852
+ operator: z.ZodObject<{
853
+ login: z.ZodString;
854
+ }, z.core.$strict>;
855
+ handle: z.ZodString;
856
+ payload: z.ZodObject<{
857
+ agentId: z.ZodString;
858
+ name: z.ZodString;
859
+ version: z.ZodString;
860
+ }, z.core.$strict>;
861
+ createdAt: z.ZodISODateTime;
862
+ }, z.core.$strict>, z.ZodObject<{
863
+ id: z.ZodInt;
864
+ kind: z.ZodLiteral<"task_verified">;
865
+ agentId: z.ZodNullable<z.ZodString>;
866
+ operator: z.ZodObject<{
867
+ login: z.ZodString;
868
+ }, z.core.$strict>;
869
+ handle: z.ZodString;
870
+ payload: z.ZodObject<{
871
+ agentId: z.ZodString;
872
+ name: z.ZodString;
873
+ taskId: z.ZodUUID;
874
+ taskType: z.ZodString;
875
+ }, z.core.$strict>;
876
+ createdAt: z.ZodISODateTime;
877
+ }, z.core.$strict>, z.ZodObject<{
878
+ id: z.ZodInt;
879
+ kind: z.ZodLiteral<"score_change">;
880
+ agentId: z.ZodNullable<z.ZodString>;
881
+ operator: z.ZodObject<{
882
+ login: z.ZodString;
883
+ }, z.core.$strict>;
884
+ handle: z.ZodString;
885
+ payload: z.ZodObject<{
886
+ agentId: z.ZodString;
887
+ name: z.ZodString;
888
+ version: z.ZodString;
889
+ dimension: z.ZodUnion<readonly [z.ZodEnum<{
890
+ cost_latency: "cost_latency";
891
+ provenance: "provenance";
892
+ reliability: "reliability";
893
+ safety: "safety";
894
+ }>, z.ZodTemplateLiteral<`competence:${string}`>]>;
895
+ old: z.ZodNullable<z.ZodNumber>;
896
+ new: z.ZodNumber;
897
+ }, z.core.$strict>;
898
+ createdAt: z.ZodISODateTime;
899
+ }, z.core.$strict>, z.ZodObject<{
900
+ id: z.ZodInt;
901
+ kind: z.ZodLiteral<"flag">;
902
+ agentId: z.ZodNullable<z.ZodString>;
903
+ operator: z.ZodObject<{
904
+ login: z.ZodString;
905
+ }, z.core.$strict>;
906
+ handle: z.ZodString;
907
+ payload: z.ZodObject<{
908
+ agentId: z.ZodString;
909
+ name: z.ZodString;
910
+ code: z.ZodEnum<{
911
+ outcome_disagreement: "outcome_disagreement";
912
+ }>;
913
+ taskId: z.ZodUUID;
914
+ }, z.core.$strict>;
915
+ createdAt: z.ZodISODateTime;
916
+ }, z.core.$strict>, z.ZodObject<{
917
+ id: z.ZodInt;
918
+ kind: z.ZodLiteral<"version_change">;
919
+ agentId: z.ZodNullable<z.ZodString>;
920
+ operator: z.ZodObject<{
921
+ login: z.ZodString;
922
+ }, z.core.$strict>;
923
+ handle: z.ZodString;
924
+ payload: z.ZodObject<{
925
+ agentId: z.ZodString;
926
+ name: z.ZodString;
927
+ old: z.ZodString;
928
+ new: z.ZodString;
929
+ }, z.core.$strict>;
930
+ createdAt: z.ZodISODateTime;
931
+ }, z.core.$strict>], "kind">>;
932
+ }, z.core.$strict>;
933
+ export type FeedRecentResponse = z.infer<typeof FeedRecentResponse>;
934
+ export declare const StatsResponse: z.ZodObject<{
935
+ agents: z.ZodInt;
936
+ verifiedTasks: z.ZodInt;
937
+ eventsLast24h: z.ZodInt;
938
+ }, z.core.$strict>;
939
+ export type StatsResponse = z.infer<typeof StatsResponse>;
940
+ export declare const CHECK_DEFAULT_MIN_VERIFIED = 1;
941
+ export declare const CHECK_DEFAULT_MAX_INCIDENTS = 0;
942
+ export declare const CHECK_DEFAULT_MIN_LEVEL = "bronze";
943
+ export declare const CheckQuery: z.ZodObject<{
944
+ minVerified: z.ZodDefault<z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>>;
945
+ maxIncidents: z.ZodDefault<z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>>;
946
+ minReliability: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>, z.ZodNumber>>;
947
+ minSafety: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>, z.ZodNumber>>;
948
+ minLevel: z.ZodDefault<z.ZodEnum<{
949
+ bronze: "bronze";
950
+ gold: "gold";
951
+ none: "none";
952
+ silver: "silver";
953
+ }>>;
954
+ }, z.core.$strict>;
955
+ export type CheckQuery = z.infer<typeof CheckQuery>;
956
+ export declare const CheckName: z.ZodEnum<{
957
+ maxIncidents: "maxIncidents";
958
+ minLevel: "minLevel";
959
+ minReliability: "minReliability";
960
+ minSafety: "minSafety";
961
+ minVerified: "minVerified";
962
+ seal: "seal";
963
+ }>;
964
+ export type CheckName = z.infer<typeof CheckName>;
965
+ export declare const SealPresence: z.ZodEnum<{
966
+ present: "present";
967
+ withheld: "withheld";
968
+ }>;
969
+ export type SealPresence = z.infer<typeof SealPresence>;
970
+ export declare const Check: z.ZodObject<{
971
+ name: z.ZodEnum<{
972
+ maxIncidents: "maxIncidents";
973
+ minLevel: "minLevel";
974
+ minReliability: "minReliability";
975
+ minSafety: "minSafety";
976
+ minVerified: "minVerified";
977
+ seal: "seal";
978
+ }>;
979
+ required: z.ZodUnion<readonly [z.ZodNumber, z.ZodEnum<{
980
+ bronze: "bronze";
981
+ gold: "gold";
982
+ none: "none";
983
+ silver: "silver";
984
+ }>, z.ZodEnum<{
985
+ present: "present";
986
+ withheld: "withheld";
987
+ }>]>;
988
+ actual: z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodEnum<{
989
+ bronze: "bronze";
990
+ gold: "gold";
991
+ none: "none";
992
+ silver: "silver";
993
+ }>, z.ZodEnum<{
994
+ present: "present";
995
+ withheld: "withheld";
996
+ }>]>>;
997
+ ok: z.ZodBoolean;
998
+ }, z.core.$strict>;
999
+ export type Check = z.infer<typeof Check>;
1000
+ export declare const CheckResponse: z.ZodObject<{
1001
+ ok: z.ZodBoolean;
1002
+ id: z.ZodString;
1003
+ handle: z.ZodString;
1004
+ checks: z.ZodArray<z.ZodObject<{
1005
+ name: z.ZodEnum<{
1006
+ maxIncidents: "maxIncidents";
1007
+ minLevel: "minLevel";
1008
+ minReliability: "minReliability";
1009
+ minSafety: "minSafety";
1010
+ minVerified: "minVerified";
1011
+ seal: "seal";
1012
+ }>;
1013
+ required: z.ZodUnion<readonly [z.ZodNumber, z.ZodEnum<{
1014
+ bronze: "bronze";
1015
+ gold: "gold";
1016
+ none: "none";
1017
+ silver: "silver";
1018
+ }>, z.ZodEnum<{
1019
+ present: "present";
1020
+ withheld: "withheld";
1021
+ }>]>;
1022
+ actual: z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodEnum<{
1023
+ bronze: "bronze";
1024
+ gold: "gold";
1025
+ none: "none";
1026
+ silver: "silver";
1027
+ }>, z.ZodEnum<{
1028
+ present: "present";
1029
+ withheld: "withheld";
1030
+ }>]>>;
1031
+ ok: z.ZodBoolean;
1032
+ }, z.core.$strict>>;
1033
+ credential: z.ZodString;
1034
+ }, z.core.$strict>;
1035
+ export type CheckResponse = z.infer<typeof CheckResponse>;
1036
+ export declare const SealCheckResponse: z.ZodObject<{
1037
+ ok: z.ZodBoolean;
1038
+ id: z.ZodString;
1039
+ handle: z.ZodString;
1040
+ checks: z.ZodArray<z.ZodObject<{
1041
+ name: z.ZodEnum<{
1042
+ maxIncidents: "maxIncidents";
1043
+ minLevel: "minLevel";
1044
+ minReliability: "minReliability";
1045
+ minSafety: "minSafety";
1046
+ minVerified: "minVerified";
1047
+ seal: "seal";
1048
+ }>;
1049
+ required: z.ZodUnion<readonly [z.ZodNumber, z.ZodEnum<{
1050
+ bronze: "bronze";
1051
+ gold: "gold";
1052
+ none: "none";
1053
+ silver: "silver";
1054
+ }>, z.ZodEnum<{
1055
+ present: "present";
1056
+ withheld: "withheld";
1057
+ }>]>;
1058
+ actual: z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodEnum<{
1059
+ bronze: "bronze";
1060
+ gold: "gold";
1061
+ none: "none";
1062
+ silver: "silver";
1063
+ }>, z.ZodEnum<{
1064
+ present: "present";
1065
+ withheld: "withheld";
1066
+ }>]>>;
1067
+ ok: z.ZodBoolean;
1068
+ }, z.core.$strict>>;
1069
+ credential: z.ZodNullable<z.ZodString>;
1070
+ seal: z.ZodNullable<z.ZodString>;
1071
+ }, z.core.$strict>;
1072
+ export type SealCheckResponse = z.infer<typeof SealCheckResponse>;
1073
+ export declare const SealWithheldResponse: z.ZodObject<{
1074
+ error: z.ZodObject<{
1075
+ code: z.ZodLiteral<"no_seal">;
1076
+ message: z.ZodString;
1077
+ }, z.core.$strict>;
1078
+ id: z.ZodString;
1079
+ dormant_days: z.ZodNullable<z.ZodInt>;
1080
+ }, z.core.$strict>;
1081
+ export type SealWithheldResponse = z.infer<typeof SealWithheldResponse>;
1082
+ export declare const SealVerifyRequest: z.ZodObject<{
1083
+ seal: z.ZodString;
1084
+ }, z.core.$strict>;
1085
+ export type SealVerifyRequest = z.infer<typeof SealVerifyRequest>;
1086
+ export declare const SealBrokenReason: z.ZodEnum<{
1087
+ bad_signature: "bad_signature";
1088
+ expired: "expired";
1089
+ malformed: "malformed";
1090
+ not_yet_valid: "not_yet_valid";
1091
+ unknown_kid: "unknown_kid";
1092
+ unsupported_version: "unsupported_version";
1093
+ wrong_issuer: "wrong_issuer";
1094
+ }>;
1095
+ export type SealBrokenReason = z.infer<typeof SealBrokenReason>;
1096
+ export declare const SealVerifyResponse: z.ZodDiscriminatedUnion<[z.ZodObject<{
1097
+ valid: z.ZodLiteral<true>;
1098
+ payload: z.ZodUnion<readonly [z.ZodObject<{
1099
+ iss: z.ZodEnum<{
1100
+ "sealkeeper.run": "sealkeeper.run";
1101
+ "vouched.run": "vouched.run";
1102
+ }>;
1103
+ sub: z.ZodString;
1104
+ ver: z.ZodLiteral<1>;
1105
+ iat: z.ZodInt;
1106
+ exp: z.ZodInt;
1107
+ agent_version: z.ZodString;
1108
+ version: z.ZodString;
1109
+ level: z.ZodEnum<{
1110
+ bronze: "bronze";
1111
+ gold: "gold";
1112
+ none: "none";
1113
+ silver: "silver";
1114
+ }>;
1115
+ scores: z.ZodRecord<z.ZodUnion<readonly [z.ZodEnum<{
1116
+ cost_latency: "cost_latency";
1117
+ provenance: "provenance";
1118
+ reliability: "reliability";
1119
+ safety: "safety";
1120
+ }>, z.ZodTemplateLiteral<`competence:${string}`>]> & z.core.$partial, z.ZodNullable<z.ZodNumber>>;
1121
+ counts: z.ZodObject<{
1122
+ events: z.ZodInt;
1123
+ history_days: z.ZodInt;
1124
+ verified_tasks: z.ZodInt;
1125
+ seed_tasks: z.ZodInt;
1126
+ server_checked_tasks: z.ZodInt;
1127
+ confirmed_tasks: z.ZodInt;
1128
+ distinct_operators: z.ZodInt;
1129
+ safety_incidents_90d: z.ZodInt;
1130
+ }, z.core.$strict>;
1131
+ operator: z.ZodObject<{
1132
+ verified: z.ZodBoolean;
1133
+ }, z.core.$strict>;
1134
+ identity: z.ZodArray<z.ZodObject<{
1135
+ provider: z.ZodURL;
1136
+ kind: z.ZodUnion<readonly [z.ZodEnum<{
1137
+ kya: "kya";
1138
+ oidc: "oidc";
1139
+ saml: "saml";
1140
+ verifiable_credential: "verifiable_credential";
1141
+ }>, z.ZodURL]>;
1142
+ ref: z.ZodString;
1143
+ subject_hash: z.ZodString;
1144
+ attested_at: z.ZodInt;
1145
+ scope: z.ZodEnum<{
1146
+ agent: "agent";
1147
+ operator: "operator";
1148
+ }>;
1149
+ }, z.core.$strict>>;
1150
+ last_active: z.ZodNullable<z.ZodInt>;
1151
+ dormant_days: z.ZodNullable<z.ZodInt>;
1152
+ }, z.core.$strict>, z.ZodObject<{
1153
+ iss: z.ZodEnum<{
1154
+ "sealkeeper.run": "sealkeeper.run";
1155
+ "vouched.run": "vouched.run";
1156
+ }>;
1157
+ sub: z.ZodString;
1158
+ iat: z.ZodInt;
1159
+ exp: z.ZodInt;
1160
+ version: z.ZodString;
1161
+ scores: z.ZodRecord<z.ZodUnion<readonly [z.ZodEnum<{
1162
+ cost_latency: "cost_latency";
1163
+ provenance: "provenance";
1164
+ reliability: "reliability";
1165
+ safety: "safety";
1166
+ }>, z.ZodTemplateLiteral<`competence:${string}`>]> & z.core.$partial, z.ZodNullable<z.ZodNumber>>;
1167
+ counts: z.ZodObject<{
1168
+ events: z.ZodInt;
1169
+ verified_tasks: z.ZodInt;
1170
+ seed_tasks: z.ZodOptional<z.ZodInt>;
1171
+ }, z.core.$strict>;
1172
+ }, z.core.$strict>]>;
1173
+ expiresIn: z.ZodInt;
1174
+ }, z.core.$strict>, z.ZodObject<{
1175
+ valid: z.ZodLiteral<false>;
1176
+ reason: z.ZodEnum<{
1177
+ bad_signature: "bad_signature";
1178
+ expired: "expired";
1179
+ malformed: "malformed";
1180
+ not_yet_valid: "not_yet_valid";
1181
+ unknown_kid: "unknown_kid";
1182
+ unsupported_version: "unsupported_version";
1183
+ wrong_issuer: "wrong_issuer";
1184
+ }>;
1185
+ }, z.core.$strict>], "valid">;
1186
+ export type SealVerifyResponse = z.infer<typeof SealVerifyResponse>;
1187
+ export declare const ScoreRunResponse: z.ZodObject<{
1188
+ scored: z.ZodInt;
1189
+ }, z.core.$strict>;
1190
+ export type ScoreRunResponse = z.infer<typeof ScoreRunResponse>;
1191
+ export declare const SeedRunResponse: z.ZodObject<{
1192
+ open: z.ZodInt;
1193
+ added: z.ZodInt;
1194
+ }, z.core.$strict>;
1195
+ export type SeedRunResponse = z.infer<typeof SeedRunResponse>;
1196
+ export declare const ErrorIssue: z.ZodObject<{
1197
+ path: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
1198
+ code: z.ZodString;
1199
+ message: z.ZodString;
1200
+ }, z.core.$strict>;
1201
+ export declare const ErrorResponse: z.ZodObject<{
1202
+ error: z.ZodObject<{
1203
+ code: z.ZodString;
1204
+ message: z.ZodString;
1205
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
1206
+ path: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
1207
+ code: z.ZodString;
1208
+ message: z.ZodString;
1209
+ }, z.core.$strict>>>;
1210
+ }, z.core.$strict>;
1211
+ }, z.core.$strict>;
1212
+ export type ErrorResponse = z.infer<typeof ErrorResponse>;