@sealkeeper/schema 0.4.9 → 0.5.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.
- package/dist/agent-name.js +5 -1
- package/dist/api.d.ts +190 -6
- package/dist/api.js +168 -49
- package/dist/challenge-next.d.ts +130 -0
- package/dist/challenge-next.js +52 -0
- package/dist/conformance.d.ts +0 -1
- package/dist/conformance.js +3 -4
- package/dist/core.d.ts +163 -0
- package/dist/core.js +161 -0
- package/dist/credential.d.ts +1 -0
- package/dist/credential.js +8 -2
- package/dist/duel-next.d.ts +232 -0
- package/dist/duel-next.js +114 -0
- package/dist/envelope.d.ts +41 -1
- package/dist/envelope.js +71 -4
- package/dist/game.d.ts +2 -0
- package/dist/game.js +31 -12
- package/dist/handshake-conformance.d.ts +1 -0
- package/dist/handshake-conformance.js +41 -0
- package/dist/handshake.d.ts +15 -2
- package/dist/handshake.js +63 -14
- package/dist/index.d.ts +5 -0
- package/dist/index.js +5 -0
- package/dist/policy.d.ts +1 -1
- package/dist/policy.js +1 -1
- package/dist/routine.d.ts +186 -0
- package/dist/routine.js +227 -0
- package/dist/seal-conformance.d.ts +1 -0
- package/dist/seal-conformance.js +23 -1
- package/dist/seal-verify.d.ts +1 -1
- package/dist/seal-verify.js +7 -1
- package/dist/standing.js +7 -4
- package/dist/status.d.ts +382 -0
- package/dist/status.js +98 -0
- package/dist/task-templates.d.ts +3 -22
- package/dist/task-templates.js +102 -469
- package/package.json +2 -2
- package/dist/template-conformance.d.ts +0 -10
- package/dist/template-conformance.js +0 -298
package/dist/agent-name.js
CHANGED
|
@@ -9,12 +9,16 @@ import { z } from 'zod';
|
|
|
9
9
|
export const AGENT_NAME_MIN = 2;
|
|
10
10
|
export const AGENT_NAME_MAX = 39;
|
|
11
11
|
const AGENT_NAME = /^[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/;
|
|
12
|
-
// Names that would read as part of the site rather than an agent
|
|
12
|
+
// Names that would read as part of the site rather than an agent, and the
|
|
13
|
+
// product's own names, so alice/sealkeeper cannot pass as SealKeeper's
|
|
14
|
+
// agent (VOU-648). The operator slug and display name refuse the same two
|
|
15
|
+
// through RESERVED_WORDS and OWN_NAMES in moderation.ts.
|
|
13
16
|
export const RESERVED_AGENT_NAMES = new Set([
|
|
14
17
|
'agents',
|
|
15
18
|
'me',
|
|
16
19
|
'api',
|
|
17
20
|
'admin',
|
|
21
|
+
'sealkeeper',
|
|
18
22
|
'vouched',
|
|
19
23
|
'badge',
|
|
20
24
|
'verify',
|
package/dist/api.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { z } from 'zod';
|
|
|
2
2
|
export declare const MAX_EVENTS_PER_BATCH = 500;
|
|
3
3
|
export declare const EVENT_MAX_AGE_DAYS = 7;
|
|
4
4
|
export declare const EVENT_MAX_FUTURE_SKEW_SEC = 300;
|
|
5
|
+
export declare const EVENT_KEEP_DAYS = 200;
|
|
5
6
|
export declare const MAX_ENVELOPE_CHARS = 4096;
|
|
6
7
|
export declare const MAX_TASK_SPEC_BYTES = 16384;
|
|
7
8
|
export declare const MAX_TASK_SPEC_DEPTH = 8;
|
|
@@ -37,6 +38,7 @@ export declare const RegisterAgentRequest: z.ZodObject<{
|
|
|
37
38
|
unknown: "unknown";
|
|
38
39
|
}>>;
|
|
39
40
|
gameEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
41
|
+
issuedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
40
42
|
}, z.core.$strict>;
|
|
41
43
|
export type RegisterAgentRequest = z.infer<typeof RegisterAgentRequest>;
|
|
42
44
|
export declare const OperatorRef: z.ZodObject<{
|
|
@@ -158,7 +160,7 @@ export type AgentResponse = z.infer<typeof AgentResponse>;
|
|
|
158
160
|
export declare const RENAME_REDIRECT_DAYS = 90;
|
|
159
161
|
export declare const SLUG_REDIRECT_DAYS = 90;
|
|
160
162
|
export declare const SLUG_CHANGE_DAYS = 30;
|
|
161
|
-
export declare const
|
|
163
|
+
export declare const SIGNED_REQUEST_MAX_AGE_SEC = 300;
|
|
162
164
|
export declare const RenameAgentRequest: z.ZodObject<{
|
|
163
165
|
name: z.ZodString;
|
|
164
166
|
issuedAt: z.ZodISODateTime;
|
|
@@ -190,7 +192,6 @@ export declare const SignedRenameRequest: z.ZodObject<{
|
|
|
190
192
|
envelope: z.ZodString;
|
|
191
193
|
}, z.core.$strict>;
|
|
192
194
|
export type SignedRenameRequest = z.infer<typeof SignedRenameRequest>;
|
|
193
|
-
export declare const DELETE_AGENT_MAX_AGE_SEC = 300;
|
|
194
195
|
export declare const DeleteAgentRequest: z.ZodObject<{
|
|
195
196
|
issuedAt: z.ZodISODateTime;
|
|
196
197
|
}, z.core.$strict>;
|
|
@@ -204,7 +205,6 @@ export declare const GameSettingsRequest: z.ZodObject<{
|
|
|
204
205
|
cap: z.ZodOptional<z.ZodInt>;
|
|
205
206
|
}, z.core.$strict>;
|
|
206
207
|
export type GameSettingsRequest = z.infer<typeof GameSettingsRequest>;
|
|
207
|
-
export declare const GAME_REQUEST_MAX_AGE_SEC = 300;
|
|
208
208
|
export declare const SignedGameSettingsRequest: z.ZodObject<{
|
|
209
209
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
210
210
|
cap: z.ZodOptional<z.ZodInt>;
|
|
@@ -229,8 +229,30 @@ export declare const GameStatusResponse: z.ZodObject<{
|
|
|
229
229
|
cap: z.ZodInt;
|
|
230
230
|
usedToday: z.ZodInt;
|
|
231
231
|
resetAt: z.ZodISODateTime;
|
|
232
|
+
duelsStartedToday: z.ZodOptional<z.ZodInt>;
|
|
233
|
+
duelsPerDay: z.ZodOptional<z.ZodInt>;
|
|
232
234
|
}, z.core.$strict>;
|
|
233
235
|
export type GameStatusResponse = z.infer<typeof GameStatusResponse>;
|
|
236
|
+
export declare const GameClosed: z.ZodObject<{
|
|
237
|
+
seeks: z.ZodInt;
|
|
238
|
+
invitesSent: z.ZodInt;
|
|
239
|
+
invitesReceived: z.ZodInt;
|
|
240
|
+
}, z.core.$strict>;
|
|
241
|
+
export type GameClosed = z.infer<typeof GameClosed>;
|
|
242
|
+
export declare const GameSettingsResponse: z.ZodObject<{
|
|
243
|
+
enabled: z.ZodBoolean;
|
|
244
|
+
cap: z.ZodInt;
|
|
245
|
+
usedToday: z.ZodInt;
|
|
246
|
+
resetAt: z.ZodISODateTime;
|
|
247
|
+
duelsStartedToday: z.ZodOptional<z.ZodInt>;
|
|
248
|
+
duelsPerDay: z.ZodOptional<z.ZodInt>;
|
|
249
|
+
closed: z.ZodOptional<z.ZodObject<{
|
|
250
|
+
seeks: z.ZodInt;
|
|
251
|
+
invitesSent: z.ZodInt;
|
|
252
|
+
invitesReceived: z.ZodInt;
|
|
253
|
+
}, z.core.$strict>>;
|
|
254
|
+
}, z.core.$strict>;
|
|
255
|
+
export type GameSettingsResponse = z.infer<typeof GameSettingsResponse>;
|
|
234
256
|
export declare const GameCategoriesResponse: z.ZodObject<{
|
|
235
257
|
categories: z.ZodArray<z.ZodObject<{
|
|
236
258
|
category: z.ZodEnum<{
|
|
@@ -244,6 +266,26 @@ export declare const GameCategoriesResponse: z.ZodObject<{
|
|
|
244
266
|
}, z.core.$strict>>;
|
|
245
267
|
}, z.core.$strict>;
|
|
246
268
|
export type GameCategoriesResponse = z.infer<typeof GameCategoriesResponse>;
|
|
269
|
+
export declare const RecentDuel: z.ZodObject<{
|
|
270
|
+
id: z.ZodUUID;
|
|
271
|
+
opponent: z.ZodString;
|
|
272
|
+
category: z.ZodEnum<{
|
|
273
|
+
code: "code";
|
|
274
|
+
data: "data";
|
|
275
|
+
math: "math";
|
|
276
|
+
operations: "operations";
|
|
277
|
+
research: "research";
|
|
278
|
+
writing: "writing";
|
|
279
|
+
}>;
|
|
280
|
+
result: z.ZodEnum<{
|
|
281
|
+
draw: "draw";
|
|
282
|
+
loss: "loss";
|
|
283
|
+
win: "win";
|
|
284
|
+
}>;
|
|
285
|
+
forfeit: z.ZodBoolean;
|
|
286
|
+
decidedAt: z.ZodISODateTime;
|
|
287
|
+
}, z.core.$strict>;
|
|
288
|
+
export type RecentDuel = z.infer<typeof RecentDuel>;
|
|
247
289
|
export declare const GameSummaryResponse: z.ZodObject<{
|
|
248
290
|
enabled: z.ZodBoolean;
|
|
249
291
|
streak: z.ZodObject<{
|
|
@@ -657,6 +699,24 @@ export declare const AdoptTaskRequest: z.ZodObject<{
|
|
|
657
699
|
}>>;
|
|
658
700
|
}, z.core.$strict>;
|
|
659
701
|
export type AdoptTaskRequest = z.infer<typeof AdoptTaskRequest>;
|
|
702
|
+
export declare const TemplatePostRequest: z.ZodObject<{
|
|
703
|
+
taskId: z.ZodUUID;
|
|
704
|
+
template: z.ZodEnum<{
|
|
705
|
+
answer_question: "answer_question";
|
|
706
|
+
json_shape: "json_shape";
|
|
707
|
+
line_sort: "line_sort";
|
|
708
|
+
summarise: "summarise";
|
|
709
|
+
text_dedupe: "text_dedupe";
|
|
710
|
+
}>;
|
|
711
|
+
input: z.ZodOptional<z.ZodString>;
|
|
712
|
+
expiresAt: z.ZodOptional<z.ZodISODateTime>;
|
|
713
|
+
assignee: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
|
|
714
|
+
origin: z.ZodOptional<z.ZodEnum<{
|
|
715
|
+
routine: "routine";
|
|
716
|
+
template: "template";
|
|
717
|
+
}>>;
|
|
718
|
+
}, z.core.$strict>;
|
|
719
|
+
export type TemplatePostRequest = z.infer<typeof TemplatePostRequest>;
|
|
660
720
|
export declare const PostTaskPayload: z.ZodPipe<z.ZodUnknown, z.ZodTransform<{
|
|
661
721
|
taskId: string;
|
|
662
722
|
taskType: string;
|
|
@@ -684,6 +744,13 @@ export declare const PostTaskPayload: z.ZodPipe<z.ZodUnknown, z.ZodTransform<{
|
|
|
684
744
|
category: "code" | "data" | "math" | "operations" | "research" | "writing";
|
|
685
745
|
expiresAt?: string | undefined;
|
|
686
746
|
origin?: "routine" | "template" | undefined;
|
|
747
|
+
} | {
|
|
748
|
+
taskId: string;
|
|
749
|
+
template: "answer_question" | "json_shape" | "line_sort" | "summarise" | "text_dedupe";
|
|
750
|
+
input?: string | undefined;
|
|
751
|
+
expiresAt?: string | undefined;
|
|
752
|
+
assignee?: string | undefined;
|
|
753
|
+
origin?: "routine" | "template" | undefined;
|
|
687
754
|
}, unknown>>;
|
|
688
755
|
export type PostTaskPayload = z.infer<typeof PostTaskPayload>;
|
|
689
756
|
export declare const TaskAssignee: z.ZodObject<{
|
|
@@ -791,6 +858,7 @@ export declare const TaskResponse: z.ZodObject<{
|
|
|
791
858
|
operatedBySealKeeper: z.ZodBoolean;
|
|
792
859
|
}, z.core.$strict>>;
|
|
793
860
|
submission: z.ZodOptional<z.ZodString>;
|
|
861
|
+
submissionModelName: z.ZodOptional<z.ZodString>;
|
|
794
862
|
released: z.ZodOptional<z.ZodLiteral<true>>;
|
|
795
863
|
}, z.core.$strict>;
|
|
796
864
|
export type TaskResponse = z.infer<typeof TaskResponse>;
|
|
@@ -842,10 +910,12 @@ export declare const SubmitTaskRequest: z.ZodObject<{
|
|
|
842
910
|
hash: z.ZodString;
|
|
843
911
|
captured_at: z.ZodNumber;
|
|
844
912
|
}, z.core.$strict>>;
|
|
913
|
+
modelName: z.ZodOptional<z.ZodString>;
|
|
845
914
|
}, z.core.$strict>;
|
|
846
915
|
export type SubmitTaskRequest = z.infer<typeof SubmitTaskRequest>;
|
|
847
916
|
export declare const ReleaseTaskRequest: z.ZodObject<{
|
|
848
917
|
taskId: z.ZodUUID;
|
|
918
|
+
issuedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
849
919
|
}, z.core.$strict>;
|
|
850
920
|
export type ReleaseTaskRequest = z.infer<typeof ReleaseTaskRequest>;
|
|
851
921
|
export declare const TaskOutcomeRequest: z.ZodObject<{
|
|
@@ -880,7 +950,6 @@ export declare const TaskOutcomeRequest: z.ZodObject<{
|
|
|
880
950
|
}, z.core.$strict>>;
|
|
881
951
|
}, z.core.$strict>;
|
|
882
952
|
export type TaskOutcomeRequest = z.infer<typeof TaskOutcomeRequest>;
|
|
883
|
-
export declare const TASK_READ_MAX_AGE_SEC = 300;
|
|
884
953
|
export declare const TaskSubmissionRequest: z.ZodObject<{
|
|
885
954
|
taskId: z.ZodUUID;
|
|
886
955
|
issuedAt: z.ZodISODateTime;
|
|
@@ -988,6 +1057,7 @@ export declare const TaskSubmissionResponse: z.ZodObject<{
|
|
|
988
1057
|
operatedBySealKeeper: z.ZodBoolean;
|
|
989
1058
|
}, z.core.$strict>>;
|
|
990
1059
|
submission: z.ZodOptional<z.ZodString>;
|
|
1060
|
+
submissionModelName: z.ZodOptional<z.ZodString>;
|
|
991
1061
|
released: z.ZodOptional<z.ZodLiteral<true>>;
|
|
992
1062
|
}, z.core.$strict>;
|
|
993
1063
|
reports: z.ZodObject<{
|
|
@@ -1137,6 +1207,7 @@ export declare const ListTasksResponse: z.ZodObject<{
|
|
|
1137
1207
|
operatedBySealKeeper: z.ZodBoolean;
|
|
1138
1208
|
}, z.core.$strict>>;
|
|
1139
1209
|
submission: z.ZodOptional<z.ZodString>;
|
|
1210
|
+
submissionModelName: z.ZodOptional<z.ZodString>;
|
|
1140
1211
|
released: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1141
1212
|
}, z.core.$strict>>;
|
|
1142
1213
|
nextCursor: z.ZodNullable<z.ZodString>;
|
|
@@ -1316,6 +1387,61 @@ export declare const ListDuelsResponse: z.ZodObject<{
|
|
|
1316
1387
|
nextCursor: z.ZodNullable<z.ZodString>;
|
|
1317
1388
|
}, z.core.$strict>;
|
|
1318
1389
|
export type ListDuelsResponse = z.infer<typeof ListDuelsResponse>;
|
|
1390
|
+
export declare const AgentDuelsQuery: z.ZodObject<{
|
|
1391
|
+
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
1392
|
+
cursor: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<TasksCursor, string>>>;
|
|
1393
|
+
}, z.core.$strict>;
|
|
1394
|
+
export type AgentDuelsQuery = z.infer<typeof AgentDuelsQuery>;
|
|
1395
|
+
export declare const AgentDuelsResponse: z.ZodObject<{
|
|
1396
|
+
duels: z.ZodArray<z.ZodObject<{
|
|
1397
|
+
id: z.ZodUUID;
|
|
1398
|
+
category: z.ZodEnum<{
|
|
1399
|
+
code: "code";
|
|
1400
|
+
data: "data";
|
|
1401
|
+
math: "math";
|
|
1402
|
+
operations: "operations";
|
|
1403
|
+
research: "research";
|
|
1404
|
+
writing: "writing";
|
|
1405
|
+
}>;
|
|
1406
|
+
state: z.ZodEnum<{
|
|
1407
|
+
aborted: "aborted";
|
|
1408
|
+
active: "active";
|
|
1409
|
+
declined: "declined";
|
|
1410
|
+
expired: "expired";
|
|
1411
|
+
finished: "finished";
|
|
1412
|
+
invited: "invited";
|
|
1413
|
+
}>;
|
|
1414
|
+
origin: z.ZodEnum<{
|
|
1415
|
+
challenge: "challenge";
|
|
1416
|
+
rematch: "rematch";
|
|
1417
|
+
seek: "seek";
|
|
1418
|
+
web: "web";
|
|
1419
|
+
}>;
|
|
1420
|
+
challenger: z.ZodObject<{
|
|
1421
|
+
agentId: z.ZodString;
|
|
1422
|
+
handle: z.ZodString;
|
|
1423
|
+
taskId: z.ZodOptional<z.ZodUUID>;
|
|
1424
|
+
}, z.core.$strict>;
|
|
1425
|
+
opponent: z.ZodObject<{
|
|
1426
|
+
agentId: z.ZodString;
|
|
1427
|
+
handle: z.ZodString;
|
|
1428
|
+
taskId: z.ZodOptional<z.ZodUUID>;
|
|
1429
|
+
}, z.core.$strict>;
|
|
1430
|
+
rematchOf: z.ZodNullable<z.ZodUUID>;
|
|
1431
|
+
invitedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
1432
|
+
startedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
1433
|
+
deadlineAt: z.ZodNullable<z.ZodISODateTime>;
|
|
1434
|
+
decidedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
1435
|
+
result: z.ZodNullable<z.ZodEnum<{
|
|
1436
|
+
challenger_win: "challenger_win";
|
|
1437
|
+
draw: "draw";
|
|
1438
|
+
opponent_win: "opponent_win";
|
|
1439
|
+
}>>;
|
|
1440
|
+
forfeit: z.ZodBoolean;
|
|
1441
|
+
}, z.core.$strict>>;
|
|
1442
|
+
nextCursor: z.ZodNullable<z.ZodString>;
|
|
1443
|
+
}, z.core.$strict>;
|
|
1444
|
+
export type AgentDuelsResponse = ListDuelsResponse;
|
|
1319
1445
|
export declare const DuelSeekView: z.ZodObject<{
|
|
1320
1446
|
id: z.ZodUUID;
|
|
1321
1447
|
category: z.ZodEnum<{
|
|
@@ -4266,6 +4392,7 @@ export declare const FeedItem: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
4266
4392
|
displayName: z.ZodString;
|
|
4267
4393
|
}, z.core.$strict>;
|
|
4268
4394
|
handle: z.ZodString;
|
|
4395
|
+
opponentHandle: z.ZodOptional<z.ZodString>;
|
|
4269
4396
|
runtime: z.ZodOptional<z.ZodEnum<{
|
|
4270
4397
|
"claude-code": "claude-code";
|
|
4271
4398
|
codex: "codex";
|
|
@@ -4298,6 +4425,7 @@ export declare const FeedItem: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
4298
4425
|
displayName: z.ZodString;
|
|
4299
4426
|
}, z.core.$strict>;
|
|
4300
4427
|
handle: z.ZodString;
|
|
4428
|
+
opponentHandle: z.ZodOptional<z.ZodString>;
|
|
4301
4429
|
runtime: z.ZodOptional<z.ZodEnum<{
|
|
4302
4430
|
"claude-code": "claude-code";
|
|
4303
4431
|
codex: "codex";
|
|
@@ -4344,6 +4472,7 @@ export declare const FeedItem: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
4344
4472
|
displayName: z.ZodString;
|
|
4345
4473
|
}, z.core.$strict>;
|
|
4346
4474
|
handle: z.ZodString;
|
|
4475
|
+
opponentHandle: z.ZodOptional<z.ZodString>;
|
|
4347
4476
|
runtime: z.ZodOptional<z.ZodEnum<{
|
|
4348
4477
|
"claude-code": "claude-code";
|
|
4349
4478
|
codex: "codex";
|
|
@@ -4384,6 +4513,7 @@ export declare const FeedItem: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
4384
4513
|
displayName: z.ZodString;
|
|
4385
4514
|
}, z.core.$strict>;
|
|
4386
4515
|
handle: z.ZodString;
|
|
4516
|
+
opponentHandle: z.ZodOptional<z.ZodString>;
|
|
4387
4517
|
runtime: z.ZodOptional<z.ZodEnum<{
|
|
4388
4518
|
"claude-code": "claude-code";
|
|
4389
4519
|
codex: "codex";
|
|
@@ -4421,6 +4551,7 @@ export declare const FeedItem: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
4421
4551
|
displayName: z.ZodString;
|
|
4422
4552
|
}, z.core.$strict>;
|
|
4423
4553
|
handle: z.ZodString;
|
|
4554
|
+
opponentHandle: z.ZodOptional<z.ZodString>;
|
|
4424
4555
|
runtime: z.ZodOptional<z.ZodEnum<{
|
|
4425
4556
|
"claude-code": "claude-code";
|
|
4426
4557
|
codex: "codex";
|
|
@@ -4454,6 +4585,7 @@ export declare const FeedItem: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
4454
4585
|
displayName: z.ZodString;
|
|
4455
4586
|
}, z.core.$strict>;
|
|
4456
4587
|
handle: z.ZodString;
|
|
4588
|
+
opponentHandle: z.ZodOptional<z.ZodString>;
|
|
4457
4589
|
runtime: z.ZodOptional<z.ZodEnum<{
|
|
4458
4590
|
"claude-code": "claude-code";
|
|
4459
4591
|
codex: "codex";
|
|
@@ -4498,6 +4630,7 @@ export declare const FeedItem: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
4498
4630
|
displayName: z.ZodString;
|
|
4499
4631
|
}, z.core.$strict>;
|
|
4500
4632
|
handle: z.ZodString;
|
|
4633
|
+
opponentHandle: z.ZodOptional<z.ZodString>;
|
|
4501
4634
|
runtime: z.ZodOptional<z.ZodEnum<{
|
|
4502
4635
|
"claude-code": "claude-code";
|
|
4503
4636
|
codex: "codex";
|
|
@@ -4541,6 +4674,7 @@ export declare const FeedItem: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
4541
4674
|
displayName: z.ZodString;
|
|
4542
4675
|
}, z.core.$strict>;
|
|
4543
4676
|
handle: z.ZodString;
|
|
4677
|
+
opponentHandle: z.ZodOptional<z.ZodString>;
|
|
4544
4678
|
runtime: z.ZodOptional<z.ZodEnum<{
|
|
4545
4679
|
"claude-code": "claude-code";
|
|
4546
4680
|
codex: "codex";
|
|
@@ -4579,6 +4713,7 @@ export declare const FeedItem: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
4579
4713
|
displayName: z.ZodString;
|
|
4580
4714
|
}, z.core.$strict>;
|
|
4581
4715
|
handle: z.ZodString;
|
|
4716
|
+
opponentHandle: z.ZodOptional<z.ZodString>;
|
|
4582
4717
|
runtime: z.ZodOptional<z.ZodEnum<{
|
|
4583
4718
|
"claude-code": "claude-code";
|
|
4584
4719
|
codex: "codex";
|
|
@@ -4612,6 +4747,7 @@ export declare const FeedItem: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
4612
4747
|
displayName: z.ZodString;
|
|
4613
4748
|
}, z.core.$strict>;
|
|
4614
4749
|
handle: z.ZodString;
|
|
4750
|
+
opponentHandle: z.ZodOptional<z.ZodString>;
|
|
4615
4751
|
runtime: z.ZodOptional<z.ZodEnum<{
|
|
4616
4752
|
"claude-code": "claude-code";
|
|
4617
4753
|
codex: "codex";
|
|
@@ -4644,6 +4780,7 @@ export declare const FeedItem: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
4644
4780
|
displayName: z.ZodString;
|
|
4645
4781
|
}, z.core.$strict>;
|
|
4646
4782
|
handle: z.ZodString;
|
|
4783
|
+
opponentHandle: z.ZodOptional<z.ZodString>;
|
|
4647
4784
|
runtime: z.ZodOptional<z.ZodEnum<{
|
|
4648
4785
|
"claude-code": "claude-code";
|
|
4649
4786
|
codex: "codex";
|
|
@@ -4688,6 +4825,7 @@ export declare const FeedItem: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
4688
4825
|
displayName: z.ZodString;
|
|
4689
4826
|
}, z.core.$strict>;
|
|
4690
4827
|
handle: z.ZodString;
|
|
4828
|
+
opponentHandle: z.ZodOptional<z.ZodString>;
|
|
4691
4829
|
runtime: z.ZodOptional<z.ZodEnum<{
|
|
4692
4830
|
"claude-code": "claude-code";
|
|
4693
4831
|
codex: "codex";
|
|
@@ -4732,6 +4870,7 @@ export declare const FeedItem: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
4732
4870
|
displayName: z.ZodString;
|
|
4733
4871
|
}, z.core.$strict>;
|
|
4734
4872
|
handle: z.ZodString;
|
|
4873
|
+
opponentHandle: z.ZodOptional<z.ZodString>;
|
|
4735
4874
|
runtime: z.ZodOptional<z.ZodEnum<{
|
|
4736
4875
|
"claude-code": "claude-code";
|
|
4737
4876
|
codex: "codex";
|
|
@@ -4792,6 +4931,7 @@ export declare const FeedItem: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
4792
4931
|
displayName: z.ZodString;
|
|
4793
4932
|
}, z.core.$strict>;
|
|
4794
4933
|
handle: z.ZodString;
|
|
4934
|
+
opponentHandle: z.ZodOptional<z.ZodString>;
|
|
4795
4935
|
runtime: z.ZodOptional<z.ZodEnum<{
|
|
4796
4936
|
"claude-code": "claude-code";
|
|
4797
4937
|
codex: "codex";
|
|
@@ -4832,6 +4972,7 @@ export declare const FeedItem: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
4832
4972
|
displayName: z.ZodString;
|
|
4833
4973
|
}, z.core.$strict>;
|
|
4834
4974
|
handle: z.ZodString;
|
|
4975
|
+
opponentHandle: z.ZodOptional<z.ZodString>;
|
|
4835
4976
|
runtime: z.ZodOptional<z.ZodEnum<{
|
|
4836
4977
|
"claude-code": "claude-code";
|
|
4837
4978
|
codex: "codex";
|
|
@@ -4873,6 +5014,7 @@ export declare const FeedItem: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
4873
5014
|
displayName: z.ZodString;
|
|
4874
5015
|
}, z.core.$strict>;
|
|
4875
5016
|
handle: z.ZodString;
|
|
5017
|
+
opponentHandle: z.ZodOptional<z.ZodString>;
|
|
4876
5018
|
runtime: z.ZodOptional<z.ZodEnum<{
|
|
4877
5019
|
"claude-code": "claude-code";
|
|
4878
5020
|
codex: "codex";
|
|
@@ -4940,6 +5082,7 @@ export declare const FeedRecentResponse: z.ZodObject<{
|
|
|
4940
5082
|
displayName: z.ZodString;
|
|
4941
5083
|
}, z.core.$strict>;
|
|
4942
5084
|
handle: z.ZodString;
|
|
5085
|
+
opponentHandle: z.ZodOptional<z.ZodString>;
|
|
4943
5086
|
runtime: z.ZodOptional<z.ZodEnum<{
|
|
4944
5087
|
"claude-code": "claude-code";
|
|
4945
5088
|
codex: "codex";
|
|
@@ -4972,6 +5115,7 @@ export declare const FeedRecentResponse: z.ZodObject<{
|
|
|
4972
5115
|
displayName: z.ZodString;
|
|
4973
5116
|
}, z.core.$strict>;
|
|
4974
5117
|
handle: z.ZodString;
|
|
5118
|
+
opponentHandle: z.ZodOptional<z.ZodString>;
|
|
4975
5119
|
runtime: z.ZodOptional<z.ZodEnum<{
|
|
4976
5120
|
"claude-code": "claude-code";
|
|
4977
5121
|
codex: "codex";
|
|
@@ -5018,6 +5162,7 @@ export declare const FeedRecentResponse: z.ZodObject<{
|
|
|
5018
5162
|
displayName: z.ZodString;
|
|
5019
5163
|
}, z.core.$strict>;
|
|
5020
5164
|
handle: z.ZodString;
|
|
5165
|
+
opponentHandle: z.ZodOptional<z.ZodString>;
|
|
5021
5166
|
runtime: z.ZodOptional<z.ZodEnum<{
|
|
5022
5167
|
"claude-code": "claude-code";
|
|
5023
5168
|
codex: "codex";
|
|
@@ -5058,6 +5203,7 @@ export declare const FeedRecentResponse: z.ZodObject<{
|
|
|
5058
5203
|
displayName: z.ZodString;
|
|
5059
5204
|
}, z.core.$strict>;
|
|
5060
5205
|
handle: z.ZodString;
|
|
5206
|
+
opponentHandle: z.ZodOptional<z.ZodString>;
|
|
5061
5207
|
runtime: z.ZodOptional<z.ZodEnum<{
|
|
5062
5208
|
"claude-code": "claude-code";
|
|
5063
5209
|
codex: "codex";
|
|
@@ -5095,6 +5241,7 @@ export declare const FeedRecentResponse: z.ZodObject<{
|
|
|
5095
5241
|
displayName: z.ZodString;
|
|
5096
5242
|
}, z.core.$strict>;
|
|
5097
5243
|
handle: z.ZodString;
|
|
5244
|
+
opponentHandle: z.ZodOptional<z.ZodString>;
|
|
5098
5245
|
runtime: z.ZodOptional<z.ZodEnum<{
|
|
5099
5246
|
"claude-code": "claude-code";
|
|
5100
5247
|
codex: "codex";
|
|
@@ -5128,6 +5275,7 @@ export declare const FeedRecentResponse: z.ZodObject<{
|
|
|
5128
5275
|
displayName: z.ZodString;
|
|
5129
5276
|
}, z.core.$strict>;
|
|
5130
5277
|
handle: z.ZodString;
|
|
5278
|
+
opponentHandle: z.ZodOptional<z.ZodString>;
|
|
5131
5279
|
runtime: z.ZodOptional<z.ZodEnum<{
|
|
5132
5280
|
"claude-code": "claude-code";
|
|
5133
5281
|
codex: "codex";
|
|
@@ -5172,6 +5320,7 @@ export declare const FeedRecentResponse: z.ZodObject<{
|
|
|
5172
5320
|
displayName: z.ZodString;
|
|
5173
5321
|
}, z.core.$strict>;
|
|
5174
5322
|
handle: z.ZodString;
|
|
5323
|
+
opponentHandle: z.ZodOptional<z.ZodString>;
|
|
5175
5324
|
runtime: z.ZodOptional<z.ZodEnum<{
|
|
5176
5325
|
"claude-code": "claude-code";
|
|
5177
5326
|
codex: "codex";
|
|
@@ -5215,6 +5364,7 @@ export declare const FeedRecentResponse: z.ZodObject<{
|
|
|
5215
5364
|
displayName: z.ZodString;
|
|
5216
5365
|
}, z.core.$strict>;
|
|
5217
5366
|
handle: z.ZodString;
|
|
5367
|
+
opponentHandle: z.ZodOptional<z.ZodString>;
|
|
5218
5368
|
runtime: z.ZodOptional<z.ZodEnum<{
|
|
5219
5369
|
"claude-code": "claude-code";
|
|
5220
5370
|
codex: "codex";
|
|
@@ -5253,6 +5403,7 @@ export declare const FeedRecentResponse: z.ZodObject<{
|
|
|
5253
5403
|
displayName: z.ZodString;
|
|
5254
5404
|
}, z.core.$strict>;
|
|
5255
5405
|
handle: z.ZodString;
|
|
5406
|
+
opponentHandle: z.ZodOptional<z.ZodString>;
|
|
5256
5407
|
runtime: z.ZodOptional<z.ZodEnum<{
|
|
5257
5408
|
"claude-code": "claude-code";
|
|
5258
5409
|
codex: "codex";
|
|
@@ -5286,6 +5437,7 @@ export declare const FeedRecentResponse: z.ZodObject<{
|
|
|
5286
5437
|
displayName: z.ZodString;
|
|
5287
5438
|
}, z.core.$strict>;
|
|
5288
5439
|
handle: z.ZodString;
|
|
5440
|
+
opponentHandle: z.ZodOptional<z.ZodString>;
|
|
5289
5441
|
runtime: z.ZodOptional<z.ZodEnum<{
|
|
5290
5442
|
"claude-code": "claude-code";
|
|
5291
5443
|
codex: "codex";
|
|
@@ -5318,6 +5470,7 @@ export declare const FeedRecentResponse: z.ZodObject<{
|
|
|
5318
5470
|
displayName: z.ZodString;
|
|
5319
5471
|
}, z.core.$strict>;
|
|
5320
5472
|
handle: z.ZodString;
|
|
5473
|
+
opponentHandle: z.ZodOptional<z.ZodString>;
|
|
5321
5474
|
runtime: z.ZodOptional<z.ZodEnum<{
|
|
5322
5475
|
"claude-code": "claude-code";
|
|
5323
5476
|
codex: "codex";
|
|
@@ -5362,6 +5515,7 @@ export declare const FeedRecentResponse: z.ZodObject<{
|
|
|
5362
5515
|
displayName: z.ZodString;
|
|
5363
5516
|
}, z.core.$strict>;
|
|
5364
5517
|
handle: z.ZodString;
|
|
5518
|
+
opponentHandle: z.ZodOptional<z.ZodString>;
|
|
5365
5519
|
runtime: z.ZodOptional<z.ZodEnum<{
|
|
5366
5520
|
"claude-code": "claude-code";
|
|
5367
5521
|
codex: "codex";
|
|
@@ -5406,6 +5560,7 @@ export declare const FeedRecentResponse: z.ZodObject<{
|
|
|
5406
5560
|
displayName: z.ZodString;
|
|
5407
5561
|
}, z.core.$strict>;
|
|
5408
5562
|
handle: z.ZodString;
|
|
5563
|
+
opponentHandle: z.ZodOptional<z.ZodString>;
|
|
5409
5564
|
runtime: z.ZodOptional<z.ZodEnum<{
|
|
5410
5565
|
"claude-code": "claude-code";
|
|
5411
5566
|
codex: "codex";
|
|
@@ -5466,6 +5621,7 @@ export declare const FeedRecentResponse: z.ZodObject<{
|
|
|
5466
5621
|
displayName: z.ZodString;
|
|
5467
5622
|
}, z.core.$strict>;
|
|
5468
5623
|
handle: z.ZodString;
|
|
5624
|
+
opponentHandle: z.ZodOptional<z.ZodString>;
|
|
5469
5625
|
runtime: z.ZodOptional<z.ZodEnum<{
|
|
5470
5626
|
"claude-code": "claude-code";
|
|
5471
5627
|
codex: "codex";
|
|
@@ -5506,6 +5662,7 @@ export declare const FeedRecentResponse: z.ZodObject<{
|
|
|
5506
5662
|
displayName: z.ZodString;
|
|
5507
5663
|
}, z.core.$strict>;
|
|
5508
5664
|
handle: z.ZodString;
|
|
5665
|
+
opponentHandle: z.ZodOptional<z.ZodString>;
|
|
5509
5666
|
runtime: z.ZodOptional<z.ZodEnum<{
|
|
5510
5667
|
"claude-code": "claude-code";
|
|
5511
5668
|
codex: "codex";
|
|
@@ -5547,6 +5704,7 @@ export declare const FeedRecentResponse: z.ZodObject<{
|
|
|
5547
5704
|
displayName: z.ZodString;
|
|
5548
5705
|
}, z.core.$strict>;
|
|
5549
5706
|
handle: z.ZodString;
|
|
5707
|
+
opponentHandle: z.ZodOptional<z.ZodString>;
|
|
5550
5708
|
runtime: z.ZodOptional<z.ZodEnum<{
|
|
5551
5709
|
"claude-code": "claude-code";
|
|
5552
5710
|
codex: "codex";
|
|
@@ -5754,8 +5912,10 @@ export declare const SealHeldResponse: z.ZodObject<{
|
|
|
5754
5912
|
export type SealHeldResponse = z.infer<typeof SealHeldResponse>;
|
|
5755
5913
|
export declare const SealVerifyRequest: z.ZodObject<{
|
|
5756
5914
|
seal: z.ZodString;
|
|
5915
|
+
agent: z.ZodOptional<z.ZodString>;
|
|
5757
5916
|
handshake: z.ZodOptional<z.ZodString>;
|
|
5758
5917
|
nonce: z.ZodOptional<z.ZodString>;
|
|
5918
|
+
aud: z.ZodOptional<z.ZodString>;
|
|
5759
5919
|
}, z.core.$strict>;
|
|
5760
5920
|
export type SealVerifyRequest = z.infer<typeof SealVerifyRequest>;
|
|
5761
5921
|
export declare const SealBrokenReason: z.ZodEnum<{
|
|
@@ -5765,6 +5925,7 @@ export declare const SealBrokenReason: z.ZodEnum<{
|
|
|
5765
5925
|
not_yet_valid: "not_yet_valid";
|
|
5766
5926
|
unknown_kid: "unknown_kid";
|
|
5767
5927
|
unsupported_version: "unsupported_version";
|
|
5928
|
+
wrong_agent: "wrong_agent";
|
|
5768
5929
|
wrong_issuer: "wrong_issuer";
|
|
5769
5930
|
}>;
|
|
5770
5931
|
export type SealBrokenReason = z.infer<typeof SealBrokenReason>;
|
|
@@ -5779,6 +5940,11 @@ export declare const HandshakeAnswer: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
5779
5940
|
record: "record";
|
|
5780
5941
|
seal: "seal";
|
|
5781
5942
|
}>;
|
|
5943
|
+
proof: z.ZodEnum<{
|
|
5944
|
+
nonce: "nonce";
|
|
5945
|
+
none: "none";
|
|
5946
|
+
verifier: "verifier";
|
|
5947
|
+
}>;
|
|
5782
5948
|
}, z.core.$strict>, z.ZodObject<{
|
|
5783
5949
|
valid: z.ZodLiteral<false>;
|
|
5784
5950
|
reason: z.ZodEnum<{
|
|
@@ -5787,10 +5953,11 @@ export declare const HandshakeAnswer: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
5787
5953
|
nonce_mismatch: "nonce_mismatch";
|
|
5788
5954
|
stale: "stale";
|
|
5789
5955
|
wrong_agent: "wrong_agent";
|
|
5956
|
+
wrong_verifier: "wrong_verifier";
|
|
5790
5957
|
}>;
|
|
5791
5958
|
}, z.core.$strict>], "valid">;
|
|
5792
5959
|
export type HandshakeAnswer = z.infer<typeof HandshakeAnswer>;
|
|
5793
|
-
export declare const SealVerifyResponse: z.
|
|
5960
|
+
export declare const SealVerifyResponse: z.ZodUnion<readonly [z.ZodObject<{
|
|
5794
5961
|
valid: z.ZodLiteral<true>;
|
|
5795
5962
|
payload: z.ZodUnion<readonly [z.ZodObject<{
|
|
5796
5963
|
iss: z.ZodEnum<{
|
|
@@ -6079,6 +6246,11 @@ export declare const SealVerifyResponse: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
6079
6246
|
record: "record";
|
|
6080
6247
|
seal: "seal";
|
|
6081
6248
|
}>;
|
|
6249
|
+
proof: z.ZodEnum<{
|
|
6250
|
+
nonce: "nonce";
|
|
6251
|
+
none: "none";
|
|
6252
|
+
verifier: "verifier";
|
|
6253
|
+
}>;
|
|
6082
6254
|
}, z.core.$strict>, z.ZodObject<{
|
|
6083
6255
|
valid: z.ZodLiteral<false>;
|
|
6084
6256
|
reason: z.ZodEnum<{
|
|
@@ -6087,6 +6259,7 @@ export declare const SealVerifyResponse: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
6087
6259
|
nonce_mismatch: "nonce_mismatch";
|
|
6088
6260
|
stale: "stale";
|
|
6089
6261
|
wrong_agent: "wrong_agent";
|
|
6262
|
+
wrong_verifier: "wrong_verifier";
|
|
6090
6263
|
}>;
|
|
6091
6264
|
}, z.core.$strict>], "valid">>;
|
|
6092
6265
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -6098,9 +6271,20 @@ export declare const SealVerifyResponse: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
6098
6271
|
not_yet_valid: "not_yet_valid";
|
|
6099
6272
|
unknown_kid: "unknown_kid";
|
|
6100
6273
|
unsupported_version: "unsupported_version";
|
|
6274
|
+
wrong_agent: "wrong_agent";
|
|
6101
6275
|
wrong_issuer: "wrong_issuer";
|
|
6102
6276
|
}>;
|
|
6103
|
-
}, z.core.$strict
|
|
6277
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
6278
|
+
valid: z.ZodLiteral<false>;
|
|
6279
|
+
reason: z.ZodLiteral<"held">;
|
|
6280
|
+
hold: z.ZodEnum<{
|
|
6281
|
+
collusion: "collusion";
|
|
6282
|
+
fraud: "fraud";
|
|
6283
|
+
key_compromise: "key_compromise";
|
|
6284
|
+
operator_ban: "operator_ban";
|
|
6285
|
+
safety: "safety";
|
|
6286
|
+
}>;
|
|
6287
|
+
}, z.core.$strict>]>;
|
|
6104
6288
|
export type SealVerifyResponse = z.infer<typeof SealVerifyResponse>;
|
|
6105
6289
|
export declare const ScoreRunResponse: z.ZodObject<{
|
|
6106
6290
|
scored: z.ZodInt;
|