@sealkeeper/schema 0.5.0 → 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 +143 -2
- package/dist/api.js +103 -23
- package/dist/conformance.d.ts +0 -1
- package/dist/conformance.js +3 -4
- package/dist/credential.d.ts +1 -0
- package/dist/credential.js +8 -3
- package/dist/duel-next.js +4 -1
- package/dist/envelope.d.ts +41 -1
- package/dist/envelope.js +71 -4
- package/dist/game.js +15 -11
- 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/policy.d.ts +1 -1
- package/dist/policy.js +1 -1
- 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 -6
- package/dist/task-templates.d.ts +2 -22
- package/dist/task-templates.js +94 -469
- package/package.json +1 -1
- 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<{
|
|
@@ -697,6 +699,24 @@ export declare const AdoptTaskRequest: z.ZodObject<{
|
|
|
697
699
|
}>>;
|
|
698
700
|
}, z.core.$strict>;
|
|
699
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>;
|
|
700
720
|
export declare const PostTaskPayload: z.ZodPipe<z.ZodUnknown, z.ZodTransform<{
|
|
701
721
|
taskId: string;
|
|
702
722
|
taskType: string;
|
|
@@ -724,6 +744,13 @@ export declare const PostTaskPayload: z.ZodPipe<z.ZodUnknown, z.ZodTransform<{
|
|
|
724
744
|
category: "code" | "data" | "math" | "operations" | "research" | "writing";
|
|
725
745
|
expiresAt?: string | undefined;
|
|
726
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;
|
|
727
754
|
}, unknown>>;
|
|
728
755
|
export type PostTaskPayload = z.infer<typeof PostTaskPayload>;
|
|
729
756
|
export declare const TaskAssignee: z.ZodObject<{
|
|
@@ -888,6 +915,7 @@ export declare const SubmitTaskRequest: z.ZodObject<{
|
|
|
888
915
|
export type SubmitTaskRequest = z.infer<typeof SubmitTaskRequest>;
|
|
889
916
|
export declare const ReleaseTaskRequest: z.ZodObject<{
|
|
890
917
|
taskId: z.ZodUUID;
|
|
918
|
+
issuedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
891
919
|
}, z.core.$strict>;
|
|
892
920
|
export type ReleaseTaskRequest = z.infer<typeof ReleaseTaskRequest>;
|
|
893
921
|
export declare const TaskOutcomeRequest: z.ZodObject<{
|
|
@@ -1359,6 +1387,61 @@ export declare const ListDuelsResponse: z.ZodObject<{
|
|
|
1359
1387
|
nextCursor: z.ZodNullable<z.ZodString>;
|
|
1360
1388
|
}, z.core.$strict>;
|
|
1361
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;
|
|
1362
1445
|
export declare const DuelSeekView: z.ZodObject<{
|
|
1363
1446
|
id: z.ZodUUID;
|
|
1364
1447
|
category: z.ZodEnum<{
|
|
@@ -4309,6 +4392,7 @@ export declare const FeedItem: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
4309
4392
|
displayName: z.ZodString;
|
|
4310
4393
|
}, z.core.$strict>;
|
|
4311
4394
|
handle: z.ZodString;
|
|
4395
|
+
opponentHandle: z.ZodOptional<z.ZodString>;
|
|
4312
4396
|
runtime: z.ZodOptional<z.ZodEnum<{
|
|
4313
4397
|
"claude-code": "claude-code";
|
|
4314
4398
|
codex: "codex";
|
|
@@ -4341,6 +4425,7 @@ export declare const FeedItem: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
4341
4425
|
displayName: z.ZodString;
|
|
4342
4426
|
}, z.core.$strict>;
|
|
4343
4427
|
handle: z.ZodString;
|
|
4428
|
+
opponentHandle: z.ZodOptional<z.ZodString>;
|
|
4344
4429
|
runtime: z.ZodOptional<z.ZodEnum<{
|
|
4345
4430
|
"claude-code": "claude-code";
|
|
4346
4431
|
codex: "codex";
|
|
@@ -4387,6 +4472,7 @@ export declare const FeedItem: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
4387
4472
|
displayName: z.ZodString;
|
|
4388
4473
|
}, z.core.$strict>;
|
|
4389
4474
|
handle: z.ZodString;
|
|
4475
|
+
opponentHandle: z.ZodOptional<z.ZodString>;
|
|
4390
4476
|
runtime: z.ZodOptional<z.ZodEnum<{
|
|
4391
4477
|
"claude-code": "claude-code";
|
|
4392
4478
|
codex: "codex";
|
|
@@ -4427,6 +4513,7 @@ export declare const FeedItem: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
4427
4513
|
displayName: z.ZodString;
|
|
4428
4514
|
}, z.core.$strict>;
|
|
4429
4515
|
handle: z.ZodString;
|
|
4516
|
+
opponentHandle: z.ZodOptional<z.ZodString>;
|
|
4430
4517
|
runtime: z.ZodOptional<z.ZodEnum<{
|
|
4431
4518
|
"claude-code": "claude-code";
|
|
4432
4519
|
codex: "codex";
|
|
@@ -4464,6 +4551,7 @@ export declare const FeedItem: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
4464
4551
|
displayName: z.ZodString;
|
|
4465
4552
|
}, z.core.$strict>;
|
|
4466
4553
|
handle: z.ZodString;
|
|
4554
|
+
opponentHandle: z.ZodOptional<z.ZodString>;
|
|
4467
4555
|
runtime: z.ZodOptional<z.ZodEnum<{
|
|
4468
4556
|
"claude-code": "claude-code";
|
|
4469
4557
|
codex: "codex";
|
|
@@ -4497,6 +4585,7 @@ export declare const FeedItem: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
4497
4585
|
displayName: z.ZodString;
|
|
4498
4586
|
}, z.core.$strict>;
|
|
4499
4587
|
handle: z.ZodString;
|
|
4588
|
+
opponentHandle: z.ZodOptional<z.ZodString>;
|
|
4500
4589
|
runtime: z.ZodOptional<z.ZodEnum<{
|
|
4501
4590
|
"claude-code": "claude-code";
|
|
4502
4591
|
codex: "codex";
|
|
@@ -4541,6 +4630,7 @@ export declare const FeedItem: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
4541
4630
|
displayName: z.ZodString;
|
|
4542
4631
|
}, z.core.$strict>;
|
|
4543
4632
|
handle: z.ZodString;
|
|
4633
|
+
opponentHandle: z.ZodOptional<z.ZodString>;
|
|
4544
4634
|
runtime: z.ZodOptional<z.ZodEnum<{
|
|
4545
4635
|
"claude-code": "claude-code";
|
|
4546
4636
|
codex: "codex";
|
|
@@ -4584,6 +4674,7 @@ export declare const FeedItem: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
4584
4674
|
displayName: z.ZodString;
|
|
4585
4675
|
}, z.core.$strict>;
|
|
4586
4676
|
handle: z.ZodString;
|
|
4677
|
+
opponentHandle: z.ZodOptional<z.ZodString>;
|
|
4587
4678
|
runtime: z.ZodOptional<z.ZodEnum<{
|
|
4588
4679
|
"claude-code": "claude-code";
|
|
4589
4680
|
codex: "codex";
|
|
@@ -4622,6 +4713,7 @@ export declare const FeedItem: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
4622
4713
|
displayName: z.ZodString;
|
|
4623
4714
|
}, z.core.$strict>;
|
|
4624
4715
|
handle: z.ZodString;
|
|
4716
|
+
opponentHandle: z.ZodOptional<z.ZodString>;
|
|
4625
4717
|
runtime: z.ZodOptional<z.ZodEnum<{
|
|
4626
4718
|
"claude-code": "claude-code";
|
|
4627
4719
|
codex: "codex";
|
|
@@ -4655,6 +4747,7 @@ export declare const FeedItem: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
4655
4747
|
displayName: z.ZodString;
|
|
4656
4748
|
}, z.core.$strict>;
|
|
4657
4749
|
handle: z.ZodString;
|
|
4750
|
+
opponentHandle: z.ZodOptional<z.ZodString>;
|
|
4658
4751
|
runtime: z.ZodOptional<z.ZodEnum<{
|
|
4659
4752
|
"claude-code": "claude-code";
|
|
4660
4753
|
codex: "codex";
|
|
@@ -4687,6 +4780,7 @@ export declare const FeedItem: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
4687
4780
|
displayName: z.ZodString;
|
|
4688
4781
|
}, z.core.$strict>;
|
|
4689
4782
|
handle: z.ZodString;
|
|
4783
|
+
opponentHandle: z.ZodOptional<z.ZodString>;
|
|
4690
4784
|
runtime: z.ZodOptional<z.ZodEnum<{
|
|
4691
4785
|
"claude-code": "claude-code";
|
|
4692
4786
|
codex: "codex";
|
|
@@ -4731,6 +4825,7 @@ export declare const FeedItem: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
4731
4825
|
displayName: z.ZodString;
|
|
4732
4826
|
}, z.core.$strict>;
|
|
4733
4827
|
handle: z.ZodString;
|
|
4828
|
+
opponentHandle: z.ZodOptional<z.ZodString>;
|
|
4734
4829
|
runtime: z.ZodOptional<z.ZodEnum<{
|
|
4735
4830
|
"claude-code": "claude-code";
|
|
4736
4831
|
codex: "codex";
|
|
@@ -4775,6 +4870,7 @@ export declare const FeedItem: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
4775
4870
|
displayName: z.ZodString;
|
|
4776
4871
|
}, z.core.$strict>;
|
|
4777
4872
|
handle: z.ZodString;
|
|
4873
|
+
opponentHandle: z.ZodOptional<z.ZodString>;
|
|
4778
4874
|
runtime: z.ZodOptional<z.ZodEnum<{
|
|
4779
4875
|
"claude-code": "claude-code";
|
|
4780
4876
|
codex: "codex";
|
|
@@ -4835,6 +4931,7 @@ export declare const FeedItem: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
4835
4931
|
displayName: z.ZodString;
|
|
4836
4932
|
}, z.core.$strict>;
|
|
4837
4933
|
handle: z.ZodString;
|
|
4934
|
+
opponentHandle: z.ZodOptional<z.ZodString>;
|
|
4838
4935
|
runtime: z.ZodOptional<z.ZodEnum<{
|
|
4839
4936
|
"claude-code": "claude-code";
|
|
4840
4937
|
codex: "codex";
|
|
@@ -4875,6 +4972,7 @@ export declare const FeedItem: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
4875
4972
|
displayName: z.ZodString;
|
|
4876
4973
|
}, z.core.$strict>;
|
|
4877
4974
|
handle: z.ZodString;
|
|
4975
|
+
opponentHandle: z.ZodOptional<z.ZodString>;
|
|
4878
4976
|
runtime: z.ZodOptional<z.ZodEnum<{
|
|
4879
4977
|
"claude-code": "claude-code";
|
|
4880
4978
|
codex: "codex";
|
|
@@ -4916,6 +5014,7 @@ export declare const FeedItem: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
4916
5014
|
displayName: z.ZodString;
|
|
4917
5015
|
}, z.core.$strict>;
|
|
4918
5016
|
handle: z.ZodString;
|
|
5017
|
+
opponentHandle: z.ZodOptional<z.ZodString>;
|
|
4919
5018
|
runtime: z.ZodOptional<z.ZodEnum<{
|
|
4920
5019
|
"claude-code": "claude-code";
|
|
4921
5020
|
codex: "codex";
|
|
@@ -4983,6 +5082,7 @@ export declare const FeedRecentResponse: z.ZodObject<{
|
|
|
4983
5082
|
displayName: z.ZodString;
|
|
4984
5083
|
}, z.core.$strict>;
|
|
4985
5084
|
handle: z.ZodString;
|
|
5085
|
+
opponentHandle: z.ZodOptional<z.ZodString>;
|
|
4986
5086
|
runtime: z.ZodOptional<z.ZodEnum<{
|
|
4987
5087
|
"claude-code": "claude-code";
|
|
4988
5088
|
codex: "codex";
|
|
@@ -5015,6 +5115,7 @@ export declare const FeedRecentResponse: z.ZodObject<{
|
|
|
5015
5115
|
displayName: z.ZodString;
|
|
5016
5116
|
}, z.core.$strict>;
|
|
5017
5117
|
handle: z.ZodString;
|
|
5118
|
+
opponentHandle: z.ZodOptional<z.ZodString>;
|
|
5018
5119
|
runtime: z.ZodOptional<z.ZodEnum<{
|
|
5019
5120
|
"claude-code": "claude-code";
|
|
5020
5121
|
codex: "codex";
|
|
@@ -5061,6 +5162,7 @@ export declare const FeedRecentResponse: z.ZodObject<{
|
|
|
5061
5162
|
displayName: z.ZodString;
|
|
5062
5163
|
}, z.core.$strict>;
|
|
5063
5164
|
handle: z.ZodString;
|
|
5165
|
+
opponentHandle: z.ZodOptional<z.ZodString>;
|
|
5064
5166
|
runtime: z.ZodOptional<z.ZodEnum<{
|
|
5065
5167
|
"claude-code": "claude-code";
|
|
5066
5168
|
codex: "codex";
|
|
@@ -5101,6 +5203,7 @@ export declare const FeedRecentResponse: z.ZodObject<{
|
|
|
5101
5203
|
displayName: z.ZodString;
|
|
5102
5204
|
}, z.core.$strict>;
|
|
5103
5205
|
handle: z.ZodString;
|
|
5206
|
+
opponentHandle: z.ZodOptional<z.ZodString>;
|
|
5104
5207
|
runtime: z.ZodOptional<z.ZodEnum<{
|
|
5105
5208
|
"claude-code": "claude-code";
|
|
5106
5209
|
codex: "codex";
|
|
@@ -5138,6 +5241,7 @@ export declare const FeedRecentResponse: z.ZodObject<{
|
|
|
5138
5241
|
displayName: z.ZodString;
|
|
5139
5242
|
}, z.core.$strict>;
|
|
5140
5243
|
handle: z.ZodString;
|
|
5244
|
+
opponentHandle: z.ZodOptional<z.ZodString>;
|
|
5141
5245
|
runtime: z.ZodOptional<z.ZodEnum<{
|
|
5142
5246
|
"claude-code": "claude-code";
|
|
5143
5247
|
codex: "codex";
|
|
@@ -5171,6 +5275,7 @@ export declare const FeedRecentResponse: z.ZodObject<{
|
|
|
5171
5275
|
displayName: z.ZodString;
|
|
5172
5276
|
}, z.core.$strict>;
|
|
5173
5277
|
handle: z.ZodString;
|
|
5278
|
+
opponentHandle: z.ZodOptional<z.ZodString>;
|
|
5174
5279
|
runtime: z.ZodOptional<z.ZodEnum<{
|
|
5175
5280
|
"claude-code": "claude-code";
|
|
5176
5281
|
codex: "codex";
|
|
@@ -5215,6 +5320,7 @@ export declare const FeedRecentResponse: z.ZodObject<{
|
|
|
5215
5320
|
displayName: z.ZodString;
|
|
5216
5321
|
}, z.core.$strict>;
|
|
5217
5322
|
handle: z.ZodString;
|
|
5323
|
+
opponentHandle: z.ZodOptional<z.ZodString>;
|
|
5218
5324
|
runtime: z.ZodOptional<z.ZodEnum<{
|
|
5219
5325
|
"claude-code": "claude-code";
|
|
5220
5326
|
codex: "codex";
|
|
@@ -5258,6 +5364,7 @@ export declare const FeedRecentResponse: z.ZodObject<{
|
|
|
5258
5364
|
displayName: z.ZodString;
|
|
5259
5365
|
}, z.core.$strict>;
|
|
5260
5366
|
handle: z.ZodString;
|
|
5367
|
+
opponentHandle: z.ZodOptional<z.ZodString>;
|
|
5261
5368
|
runtime: z.ZodOptional<z.ZodEnum<{
|
|
5262
5369
|
"claude-code": "claude-code";
|
|
5263
5370
|
codex: "codex";
|
|
@@ -5296,6 +5403,7 @@ export declare const FeedRecentResponse: z.ZodObject<{
|
|
|
5296
5403
|
displayName: z.ZodString;
|
|
5297
5404
|
}, z.core.$strict>;
|
|
5298
5405
|
handle: z.ZodString;
|
|
5406
|
+
opponentHandle: z.ZodOptional<z.ZodString>;
|
|
5299
5407
|
runtime: z.ZodOptional<z.ZodEnum<{
|
|
5300
5408
|
"claude-code": "claude-code";
|
|
5301
5409
|
codex: "codex";
|
|
@@ -5329,6 +5437,7 @@ export declare const FeedRecentResponse: z.ZodObject<{
|
|
|
5329
5437
|
displayName: z.ZodString;
|
|
5330
5438
|
}, z.core.$strict>;
|
|
5331
5439
|
handle: z.ZodString;
|
|
5440
|
+
opponentHandle: z.ZodOptional<z.ZodString>;
|
|
5332
5441
|
runtime: z.ZodOptional<z.ZodEnum<{
|
|
5333
5442
|
"claude-code": "claude-code";
|
|
5334
5443
|
codex: "codex";
|
|
@@ -5361,6 +5470,7 @@ export declare const FeedRecentResponse: z.ZodObject<{
|
|
|
5361
5470
|
displayName: z.ZodString;
|
|
5362
5471
|
}, z.core.$strict>;
|
|
5363
5472
|
handle: z.ZodString;
|
|
5473
|
+
opponentHandle: z.ZodOptional<z.ZodString>;
|
|
5364
5474
|
runtime: z.ZodOptional<z.ZodEnum<{
|
|
5365
5475
|
"claude-code": "claude-code";
|
|
5366
5476
|
codex: "codex";
|
|
@@ -5405,6 +5515,7 @@ export declare const FeedRecentResponse: z.ZodObject<{
|
|
|
5405
5515
|
displayName: z.ZodString;
|
|
5406
5516
|
}, z.core.$strict>;
|
|
5407
5517
|
handle: z.ZodString;
|
|
5518
|
+
opponentHandle: z.ZodOptional<z.ZodString>;
|
|
5408
5519
|
runtime: z.ZodOptional<z.ZodEnum<{
|
|
5409
5520
|
"claude-code": "claude-code";
|
|
5410
5521
|
codex: "codex";
|
|
@@ -5449,6 +5560,7 @@ export declare const FeedRecentResponse: z.ZodObject<{
|
|
|
5449
5560
|
displayName: z.ZodString;
|
|
5450
5561
|
}, z.core.$strict>;
|
|
5451
5562
|
handle: z.ZodString;
|
|
5563
|
+
opponentHandle: z.ZodOptional<z.ZodString>;
|
|
5452
5564
|
runtime: z.ZodOptional<z.ZodEnum<{
|
|
5453
5565
|
"claude-code": "claude-code";
|
|
5454
5566
|
codex: "codex";
|
|
@@ -5509,6 +5621,7 @@ export declare const FeedRecentResponse: z.ZodObject<{
|
|
|
5509
5621
|
displayName: z.ZodString;
|
|
5510
5622
|
}, z.core.$strict>;
|
|
5511
5623
|
handle: z.ZodString;
|
|
5624
|
+
opponentHandle: z.ZodOptional<z.ZodString>;
|
|
5512
5625
|
runtime: z.ZodOptional<z.ZodEnum<{
|
|
5513
5626
|
"claude-code": "claude-code";
|
|
5514
5627
|
codex: "codex";
|
|
@@ -5549,6 +5662,7 @@ export declare const FeedRecentResponse: z.ZodObject<{
|
|
|
5549
5662
|
displayName: z.ZodString;
|
|
5550
5663
|
}, z.core.$strict>;
|
|
5551
5664
|
handle: z.ZodString;
|
|
5665
|
+
opponentHandle: z.ZodOptional<z.ZodString>;
|
|
5552
5666
|
runtime: z.ZodOptional<z.ZodEnum<{
|
|
5553
5667
|
"claude-code": "claude-code";
|
|
5554
5668
|
codex: "codex";
|
|
@@ -5590,6 +5704,7 @@ export declare const FeedRecentResponse: z.ZodObject<{
|
|
|
5590
5704
|
displayName: z.ZodString;
|
|
5591
5705
|
}, z.core.$strict>;
|
|
5592
5706
|
handle: z.ZodString;
|
|
5707
|
+
opponentHandle: z.ZodOptional<z.ZodString>;
|
|
5593
5708
|
runtime: z.ZodOptional<z.ZodEnum<{
|
|
5594
5709
|
"claude-code": "claude-code";
|
|
5595
5710
|
codex: "codex";
|
|
@@ -5797,8 +5912,10 @@ export declare const SealHeldResponse: z.ZodObject<{
|
|
|
5797
5912
|
export type SealHeldResponse = z.infer<typeof SealHeldResponse>;
|
|
5798
5913
|
export declare const SealVerifyRequest: z.ZodObject<{
|
|
5799
5914
|
seal: z.ZodString;
|
|
5915
|
+
agent: z.ZodOptional<z.ZodString>;
|
|
5800
5916
|
handshake: z.ZodOptional<z.ZodString>;
|
|
5801
5917
|
nonce: z.ZodOptional<z.ZodString>;
|
|
5918
|
+
aud: z.ZodOptional<z.ZodString>;
|
|
5802
5919
|
}, z.core.$strict>;
|
|
5803
5920
|
export type SealVerifyRequest = z.infer<typeof SealVerifyRequest>;
|
|
5804
5921
|
export declare const SealBrokenReason: z.ZodEnum<{
|
|
@@ -5808,6 +5925,7 @@ export declare const SealBrokenReason: z.ZodEnum<{
|
|
|
5808
5925
|
not_yet_valid: "not_yet_valid";
|
|
5809
5926
|
unknown_kid: "unknown_kid";
|
|
5810
5927
|
unsupported_version: "unsupported_version";
|
|
5928
|
+
wrong_agent: "wrong_agent";
|
|
5811
5929
|
wrong_issuer: "wrong_issuer";
|
|
5812
5930
|
}>;
|
|
5813
5931
|
export type SealBrokenReason = z.infer<typeof SealBrokenReason>;
|
|
@@ -5822,6 +5940,11 @@ export declare const HandshakeAnswer: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
5822
5940
|
record: "record";
|
|
5823
5941
|
seal: "seal";
|
|
5824
5942
|
}>;
|
|
5943
|
+
proof: z.ZodEnum<{
|
|
5944
|
+
nonce: "nonce";
|
|
5945
|
+
none: "none";
|
|
5946
|
+
verifier: "verifier";
|
|
5947
|
+
}>;
|
|
5825
5948
|
}, z.core.$strict>, z.ZodObject<{
|
|
5826
5949
|
valid: z.ZodLiteral<false>;
|
|
5827
5950
|
reason: z.ZodEnum<{
|
|
@@ -5830,10 +5953,11 @@ export declare const HandshakeAnswer: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
5830
5953
|
nonce_mismatch: "nonce_mismatch";
|
|
5831
5954
|
stale: "stale";
|
|
5832
5955
|
wrong_agent: "wrong_agent";
|
|
5956
|
+
wrong_verifier: "wrong_verifier";
|
|
5833
5957
|
}>;
|
|
5834
5958
|
}, z.core.$strict>], "valid">;
|
|
5835
5959
|
export type HandshakeAnswer = z.infer<typeof HandshakeAnswer>;
|
|
5836
|
-
export declare const SealVerifyResponse: z.
|
|
5960
|
+
export declare const SealVerifyResponse: z.ZodUnion<readonly [z.ZodObject<{
|
|
5837
5961
|
valid: z.ZodLiteral<true>;
|
|
5838
5962
|
payload: z.ZodUnion<readonly [z.ZodObject<{
|
|
5839
5963
|
iss: z.ZodEnum<{
|
|
@@ -6122,6 +6246,11 @@ export declare const SealVerifyResponse: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
6122
6246
|
record: "record";
|
|
6123
6247
|
seal: "seal";
|
|
6124
6248
|
}>;
|
|
6249
|
+
proof: z.ZodEnum<{
|
|
6250
|
+
nonce: "nonce";
|
|
6251
|
+
none: "none";
|
|
6252
|
+
verifier: "verifier";
|
|
6253
|
+
}>;
|
|
6125
6254
|
}, z.core.$strict>, z.ZodObject<{
|
|
6126
6255
|
valid: z.ZodLiteral<false>;
|
|
6127
6256
|
reason: z.ZodEnum<{
|
|
@@ -6130,6 +6259,7 @@ export declare const SealVerifyResponse: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
6130
6259
|
nonce_mismatch: "nonce_mismatch";
|
|
6131
6260
|
stale: "stale";
|
|
6132
6261
|
wrong_agent: "wrong_agent";
|
|
6262
|
+
wrong_verifier: "wrong_verifier";
|
|
6133
6263
|
}>;
|
|
6134
6264
|
}, z.core.$strict>], "valid">>;
|
|
6135
6265
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -6141,9 +6271,20 @@ export declare const SealVerifyResponse: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
6141
6271
|
not_yet_valid: "not_yet_valid";
|
|
6142
6272
|
unknown_kid: "unknown_kid";
|
|
6143
6273
|
unsupported_version: "unsupported_version";
|
|
6274
|
+
wrong_agent: "wrong_agent";
|
|
6144
6275
|
wrong_issuer: "wrong_issuer";
|
|
6145
6276
|
}>;
|
|
6146
|
-
}, 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>]>;
|
|
6147
6288
|
export type SealVerifyResponse = z.infer<typeof SealVerifyResponse>;
|
|
6148
6289
|
export declare const ScoreRunResponse: z.ZodObject<{
|
|
6149
6290
|
scored: z.ZodInt;
|