@heynixie/contract 0.70.2 → 0.72.0

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 (42) hide show
  1. package/dist/contract/action-proposal-schema.d.ts +18 -0
  2. package/dist/contract/approval-contract.d.ts +479 -0
  3. package/dist/{build-query-utils.d.ts → contract/build-query-utils.d.ts} +548 -191
  4. package/dist/{contract.d.ts → contract/contract.d.ts} +704 -243
  5. package/dist/contract/forgettable-kinds.d.ts +1 -0
  6. package/dist/{host-contract.d.ts → contract/host-contract.d.ts} +284 -0
  7. package/dist/contract/input-miss-schema.d.ts +23 -0
  8. package/dist/contract/known-contact-schema.d.ts +7 -0
  9. package/dist/contract/logged-input-schema.d.ts +36 -0
  10. package/dist/{memory-view-contract.d.ts → contract/memory-view-contract.d.ts} +92 -217
  11. package/dist/{moment-contract.d.ts → contract/moment-contract.d.ts} +1 -0
  12. package/dist/contract/pause-state-schema.d.ts +9 -0
  13. package/dist/contract/recovery-schema.d.ts +21 -0
  14. package/dist/contract/rule-contract.d.ts +106 -0
  15. package/dist/contract/turn-inputs-contract.d.ts +134 -0
  16. package/dist/index.d.ts +17 -17
  17. package/dist/index.js +979 -667
  18. package/dist/{build-pending-input.d.ts → span/build-pending-input.d.ts} +1 -1
  19. package/dist/{build-span-state.d.ts → span/build-span-state.d.ts} +1 -1
  20. package/dist/{pick-span-source.d.ts → span/pick-span-source.d.ts} +1 -1
  21. package/dist/types.d.ts +3 -3
  22. package/package.json +2 -2
  23. package/dist/proposal-outcome-schema.d.ts +0 -37
  24. package/dist/rule-contract.d.ts +0 -65
  25. /package/dist/{client-header-name.d.ts → contract/client-header-name.d.ts} +0 -0
  26. /package/dist/{forget-backup-schema.d.ts → contract/forget-backup-schema.d.ts} +0 -0
  27. /package/dist/{image-limits.d.ts → contract/image-limits.d.ts} +0 -0
  28. /package/dist/{image-not-found-error.d.ts → contract/image-not-found-error.d.ts} +0 -0
  29. /package/dist/{image-refused-error.d.ts → contract/image-refused-error.d.ts} +0 -0
  30. /package/dist/{is-time-zone.d.ts → contract/is-time-zone.d.ts} +0 -0
  31. /package/dist/{memory-export-contract.d.ts → contract/memory-export-contract.d.ts} +0 -0
  32. /package/dist/{render-session-cookie.d.ts → contract/render-session-cookie.d.ts} +0 -0
  33. /package/dist/{reused-id-errors.d.ts → contract/reused-id-errors.d.ts} +0 -0
  34. /package/dist/{session-cookie-name.d.ts → contract/session-cookie-name.d.ts} +0 -0
  35. /package/dist/{signed-in.d.ts → contract/signed-in.d.ts} +0 -0
  36. /package/dist/{task-schema.d.ts → contract/task-schema.d.ts} +0 -0
  37. /package/dist/{tool-call-schema.d.ts → contract/tool-call-schema.d.ts} +0 -0
  38. /package/dist/{task-message-input-schema.d.ts → message/task-message-input-schema.d.ts} +0 -0
  39. /package/dist/{task-message-kind-schema.d.ts → message/task-message-kind-schema.d.ts} +0 -0
  40. /package/dist/{task-message-result-schema.d.ts → message/task-message-result-schema.d.ts} +0 -0
  41. /package/dist/{has-several-words.d.ts → span/has-several-words.d.ts} +0 -0
  42. /package/dist/{span-schema.d.ts → span/span-schema.d.ts} +0 -0
@@ -1,4 +1,95 @@
1
1
  import { z } from 'zod';
2
+ export declare const memoryProposalSchema: z.ZodObject<{
3
+ actionHash: z.ZodString;
4
+ createdAt: z.ZodDate;
5
+ evidence: z.ZodNullable<z.ZodObject<{
6
+ end: z.ZodInt;
7
+ message: z.ZodNullable<z.ZodObject<{
8
+ status: z.ZodEnum<{
9
+ missing: "missing";
10
+ readable: "readable";
11
+ shredded: "shredded";
12
+ unreadable: "unreadable";
13
+ }>;
14
+ text: z.ZodOptional<z.ZodString>;
15
+ }, z.core.$strip>>;
16
+ sequence: z.ZodInt;
17
+ start: z.ZodInt;
18
+ }, z.core.$strip>>;
19
+ image: z.ZodNullable<z.ZodObject<{
20
+ position: z.ZodInt;
21
+ sequence: z.ZodInt;
22
+ thread: z.ZodString;
23
+ }, z.core.$strip>>;
24
+ isPinned: z.ZodBoolean;
25
+ isSensitive: z.ZodBoolean;
26
+ itemID: z.ZodString;
27
+ kind: z.ZodEnum<{
28
+ fact: "fact";
29
+ self: "self";
30
+ }>;
31
+ lapseAt: z.ZodDate;
32
+ newSubject: z.ZodNullable<z.ZodEnum<{
33
+ owner: "owner";
34
+ self: "self";
35
+ shared: "shared";
36
+ }>>;
37
+ operation: z.ZodEnum<{
38
+ pin: "pin";
39
+ remember: "remember";
40
+ retire: "retire";
41
+ }>;
42
+ origin: z.ZodEnum<{
43
+ conversation: "conversation";
44
+ memory_writer: "memory_writer";
45
+ owner: "owner";
46
+ task: "task";
47
+ }>;
48
+ proposalID: z.ZodString;
49
+ quote: z.ZodNullable<z.ZodString>;
50
+ reason: z.ZodEnum<{
51
+ ambiguous_target: "ambiguous_target";
52
+ ask_rule: "ask_rule";
53
+ checker_not_asserted: "checker_not_asserted";
54
+ checker_unreachable: "checker_unreachable";
55
+ checker_unsure: "checker_unsure";
56
+ forgotten_evidence: "forgotten_evidence";
57
+ from_photo: "from_photo";
58
+ invisible_character: "invisible_character";
59
+ no_quote: "no_quote";
60
+ other: "other";
61
+ pinned: "pinned";
62
+ quote_in_quoted_block: "quote_in_quoted_block";
63
+ quote_not_typed: "quote_not_typed";
64
+ self_note: "self_note";
65
+ sensitive: "sensitive";
66
+ subject_change: "subject_change";
67
+ token_missing: "token_missing";
68
+ }>;
69
+ source: z.ZodEnum<{
70
+ owner: "owner";
71
+ owner_data: "owner_data";
72
+ untrusted: "untrusted";
73
+ }>;
74
+ sources: z.ZodArray<z.ZodObject<{
75
+ origin: z.ZodEnum<{
76
+ conversation: "conversation";
77
+ memory_writer: "memory_writer";
78
+ owner: "owner";
79
+ task: "task";
80
+ }>;
81
+ proposedAt: z.ZodDate;
82
+ thread: z.ZodNullable<z.ZodString>;
83
+ }, z.core.$strip>>;
84
+ subject: z.ZodEnum<{
85
+ owner: "owner";
86
+ self: "self";
87
+ shared: "shared";
88
+ }>;
89
+ targetVersion: z.ZodNullable<z.ZodInt>;
90
+ text: z.ZodString;
91
+ until: z.ZodNullable<z.ZodDate>;
92
+ }, z.core.$strip>;
2
93
  export declare const memoryViewContract: {
3
94
  export: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
4
95
  clientActionID: z.ZodUUID;
@@ -151,6 +242,7 @@ export declare const memoryViewContract: {
151
242
  }, z.core.$strip>, z.ZodObject<{
152
243
  records: z.ZodArray<z.ZodObject<{
153
244
  isGap: z.ZodBoolean;
245
+ isRemoved: z.ZodBoolean;
154
246
  kind: z.ZodString;
155
247
  recordedAt: z.ZodDate;
156
248
  sequence: z.ZodInt;
@@ -1308,221 +1400,4 @@ export declare const memoryViewContract: {
1308
1400
  status: number;
1309
1401
  };
1310
1402
  }>, Record<never, never>>;
1311
- listProposals: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodObject<{
1312
- proposals: z.ZodArray<z.ZodObject<{
1313
- actionHash: z.ZodString;
1314
- createdAt: z.ZodDate;
1315
- evidence: z.ZodNullable<z.ZodObject<{
1316
- end: z.ZodInt;
1317
- message: z.ZodNullable<z.ZodObject<{
1318
- status: z.ZodEnum<{
1319
- missing: "missing";
1320
- readable: "readable";
1321
- shredded: "shredded";
1322
- unreadable: "unreadable";
1323
- }>;
1324
- text: z.ZodOptional<z.ZodString>;
1325
- }, z.core.$strip>>;
1326
- sequence: z.ZodInt;
1327
- start: z.ZodInt;
1328
- }, z.core.$strip>>;
1329
- image: z.ZodNullable<z.ZodObject<{
1330
- position: z.ZodInt;
1331
- sequence: z.ZodInt;
1332
- thread: z.ZodString;
1333
- }, z.core.$strip>>;
1334
- isPinned: z.ZodBoolean;
1335
- isSensitive: z.ZodBoolean;
1336
- itemID: z.ZodString;
1337
- kind: z.ZodEnum<{
1338
- fact: "fact";
1339
- self: "self";
1340
- }>;
1341
- lapseAt: z.ZodDate;
1342
- newSubject: z.ZodNullable<z.ZodEnum<{
1343
- owner: "owner";
1344
- self: "self";
1345
- shared: "shared";
1346
- }>>;
1347
- operation: z.ZodEnum<{
1348
- pin: "pin";
1349
- remember: "remember";
1350
- retire: "retire";
1351
- }>;
1352
- origin: z.ZodEnum<{
1353
- conversation: "conversation";
1354
- memory_writer: "memory_writer";
1355
- owner: "owner";
1356
- task: "task";
1357
- }>;
1358
- proposalID: z.ZodString;
1359
- quote: z.ZodNullable<z.ZodString>;
1360
- reason: z.ZodEnum<{
1361
- ambiguous_target: "ambiguous_target";
1362
- checker_not_asserted: "checker_not_asserted";
1363
- checker_unreachable: "checker_unreachable";
1364
- checker_unsure: "checker_unsure";
1365
- forgotten_evidence: "forgotten_evidence";
1366
- from_photo: "from_photo";
1367
- invisible_character: "invisible_character";
1368
- no_quote: "no_quote";
1369
- other: "other";
1370
- pinned: "pinned";
1371
- quote_in_quoted_block: "quote_in_quoted_block";
1372
- quote_not_typed: "quote_not_typed";
1373
- self_note: "self_note";
1374
- sensitive: "sensitive";
1375
- subject_change: "subject_change";
1376
- token_missing: "token_missing";
1377
- }>;
1378
- source: z.ZodEnum<{
1379
- owner: "owner";
1380
- owner_data: "owner_data";
1381
- untrusted: "untrusted";
1382
- }>;
1383
- sources: z.ZodArray<z.ZodObject<{
1384
- origin: z.ZodEnum<{
1385
- conversation: "conversation";
1386
- memory_writer: "memory_writer";
1387
- owner: "owner";
1388
- task: "task";
1389
- }>;
1390
- proposedAt: z.ZodDate;
1391
- thread: z.ZodNullable<z.ZodString>;
1392
- }, z.core.$strip>>;
1393
- subject: z.ZodEnum<{
1394
- owner: "owner";
1395
- self: "self";
1396
- shared: "shared";
1397
- }>;
1398
- targetVersion: z.ZodNullable<z.ZodInt>;
1399
- text: z.ZodString;
1400
- until: z.ZodNullable<z.ZodDate>;
1401
- }, z.core.$strip>>;
1402
- }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
1403
- UNAUTHORIZED: {
1404
- message: string;
1405
- status: number;
1406
- };
1407
- }>, {
1408
- MEMORY_NOT_STARTED: {
1409
- message: string;
1410
- status: number;
1411
- };
1412
- }>, Record<never, never>>;
1413
- approveProposals: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
1414
- answers: z.ZodArray<z.ZodObject<{
1415
- actionHash: z.ZodString;
1416
- clientActionID: z.ZodUUID;
1417
- proposalID: z.ZodString;
1418
- editedText: z.ZodOptional<z.ZodString>;
1419
- ignoreCloseMatch: z.ZodOptional<z.ZodBoolean>;
1420
- revisionOf: z.ZodOptional<z.ZodObject<{
1421
- itemID: z.ZodString;
1422
- version: z.ZodInt;
1423
- }, z.core.$strip>>;
1424
- }, z.core.$strip>>;
1425
- }, z.core.$strip>, z.ZodObject<{
1426
- outcomes: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1427
- proposalID: z.ZodString;
1428
- status: z.ZodLiteral<"applied">;
1429
- }, z.core.$strip>, z.ZodObject<{
1430
- proposalID: z.ZodString;
1431
- status: z.ZodLiteral<"rejected">;
1432
- }, z.core.$strip>, z.ZodObject<{
1433
- item: z.ZodObject<{
1434
- itemID: z.ZodString;
1435
- text: z.ZodString;
1436
- version: z.ZodInt;
1437
- }, z.core.$strip>;
1438
- proposalID: z.ZodString;
1439
- status: z.ZodLiteral<"close_match">;
1440
- }, z.core.$strip>, z.ZodObject<{
1441
- cause: z.ZodEnum<{
1442
- answered: "answered";
1443
- changed: "changed";
1444
- gone: "gone";
1445
- lapsed: "lapsed";
1446
- moved: "moved";
1447
- }>;
1448
- proposalID: z.ZodString;
1449
- status: z.ZodLiteral<"stale">;
1450
- }, z.core.$strip>, z.ZodObject<{
1451
- code: z.ZodEnum<{
1452
- CLIENT_ACTION_ID_REUSED: "CLIENT_ACTION_ID_REUSED";
1453
- PINNED_CORE_FULL: "PINNED_CORE_FULL";
1454
- PIN_EDIT: "PIN_EDIT";
1455
- RETIREMENT_EDIT: "RETIREMENT_EDIT";
1456
- REVISION_TARGET: "REVISION_TARGET";
1457
- WRONG_STATE: "WRONG_STATE";
1458
- }>;
1459
- proposalID: z.ZodString;
1460
- status: z.ZodLiteral<"refused">;
1461
- }, z.core.$strip>], "status">>;
1462
- }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
1463
- UNAUTHORIZED: {
1464
- message: string;
1465
- status: number;
1466
- };
1467
- }>, {
1468
- MEMORY_NOT_STARTED: {
1469
- message: string;
1470
- status: number;
1471
- };
1472
- }>, Record<never, never>>;
1473
- rejectProposals: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
1474
- answers: z.ZodArray<z.ZodObject<{
1475
- actionHash: z.ZodString;
1476
- clientActionID: z.ZodUUID;
1477
- proposalID: z.ZodString;
1478
- reason: z.ZodOptional<z.ZodString>;
1479
- }, z.core.$strip>>;
1480
- }, z.core.$strip>, z.ZodObject<{
1481
- outcomes: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1482
- proposalID: z.ZodString;
1483
- status: z.ZodLiteral<"applied">;
1484
- }, z.core.$strip>, z.ZodObject<{
1485
- proposalID: z.ZodString;
1486
- status: z.ZodLiteral<"rejected">;
1487
- }, z.core.$strip>, z.ZodObject<{
1488
- item: z.ZodObject<{
1489
- itemID: z.ZodString;
1490
- text: z.ZodString;
1491
- version: z.ZodInt;
1492
- }, z.core.$strip>;
1493
- proposalID: z.ZodString;
1494
- status: z.ZodLiteral<"close_match">;
1495
- }, z.core.$strip>, z.ZodObject<{
1496
- cause: z.ZodEnum<{
1497
- answered: "answered";
1498
- changed: "changed";
1499
- gone: "gone";
1500
- lapsed: "lapsed";
1501
- moved: "moved";
1502
- }>;
1503
- proposalID: z.ZodString;
1504
- status: z.ZodLiteral<"stale">;
1505
- }, z.core.$strip>, z.ZodObject<{
1506
- code: z.ZodEnum<{
1507
- CLIENT_ACTION_ID_REUSED: "CLIENT_ACTION_ID_REUSED";
1508
- PINNED_CORE_FULL: "PINNED_CORE_FULL";
1509
- PIN_EDIT: "PIN_EDIT";
1510
- RETIREMENT_EDIT: "RETIREMENT_EDIT";
1511
- REVISION_TARGET: "REVISION_TARGET";
1512
- WRONG_STATE: "WRONG_STATE";
1513
- }>;
1514
- proposalID: z.ZodString;
1515
- status: z.ZodLiteral<"refused">;
1516
- }, z.core.$strip>], "status">>;
1517
- }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
1518
- UNAUTHORIZED: {
1519
- message: string;
1520
- status: number;
1521
- };
1522
- }>, {
1523
- MEMORY_NOT_STARTED: {
1524
- message: string;
1525
- status: number;
1526
- };
1527
- }>, Record<never, never>>;
1528
1403
  };
@@ -125,6 +125,7 @@ export declare const momentContract: {
125
125
  }, z.core.$strip>, z.ZodObject<{
126
126
  records: z.ZodArray<z.ZodObject<{
127
127
  isGap: z.ZodBoolean;
128
+ isRemoved: z.ZodBoolean;
128
129
  kind: z.ZodString;
129
130
  recordedAt: z.ZodDate;
130
131
  sequence: z.ZodInt;
@@ -0,0 +1,9 @@
1
+ import { z } from 'zod';
2
+ export declare const pauseStateSchema: z.ZodNullable<z.ZodObject<{
3
+ cause: z.ZodEnum<{
4
+ owner: "owner";
5
+ restore: "restore";
6
+ spending: "spending";
7
+ }>;
8
+ since: z.ZodDate;
9
+ }, z.core.$strip>>;
@@ -0,0 +1,21 @@
1
+ import { z } from 'zod';
2
+ export declare const recoverySchema: z.ZodNullable<z.ZodObject<{
3
+ restoredAt: z.ZodDate;
4
+ backupTakenAt: z.ZodDate;
5
+ toCheck: z.ZodArray<z.ZodObject<{
6
+ taskID: z.ZodString;
7
+ name: z.ZodString;
8
+ stateAtBackup: z.ZodEnum<{
9
+ closed: "closed";
10
+ done: "done";
11
+ failed: "failed";
12
+ paused: "paused";
13
+ ready: "ready";
14
+ running: "running";
15
+ stopped: "stopped";
16
+ waiting: "waiting";
17
+ }>;
18
+ wasRunning: z.ZodBoolean;
19
+ pendingActions: z.ZodInt;
20
+ }, z.core.$strip>>;
21
+ }, z.core.$strip>>;
@@ -0,0 +1,106 @@
1
+ import { z } from 'zod';
2
+ export declare const ruleContract: {
3
+ readRule: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
4
+ ruleID: z.ZodString;
5
+ }, z.core.$strip>, z.ZodObject<{
6
+ ruleID: z.ZodString;
7
+ revision: z.ZodInt;
8
+ sentence: z.ZodString;
9
+ outcome: z.ZodEnum<{
10
+ allow: "allow";
11
+ ask: "ask";
12
+ deny: "deny";
13
+ }>;
14
+ destinations: z.ZodArray<z.ZodString>;
15
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
16
+ UNAUTHORIZED: {
17
+ message: string;
18
+ status: number;
19
+ };
20
+ }>, {
21
+ NOT_FOUND: {
22
+ message: string;
23
+ status: number;
24
+ };
25
+ }>, Record<never, never>>;
26
+ removeRule: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
27
+ ruleID: z.ZodString;
28
+ revision: z.ZodInt;
29
+ clientActionID: z.ZodUUID;
30
+ }, z.core.$strip>, z.ZodObject<{
31
+ ruleID: z.ZodString;
32
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
33
+ UNAUTHORIZED: {
34
+ message: string;
35
+ status: number;
36
+ };
37
+ }>, {
38
+ CLIENT_ACTION_ID_REUSED: {
39
+ message: string;
40
+ status: number;
41
+ };
42
+ }>, {
43
+ NOT_FOUND: {
44
+ message: string;
45
+ status: number;
46
+ };
47
+ CONFLICT: {
48
+ message: string;
49
+ status: number;
50
+ data: z.ZodObject<{
51
+ revision: z.ZodInt;
52
+ }, z.core.$strip>;
53
+ };
54
+ NOT_ALLOWED: {
55
+ message: string;
56
+ status: number;
57
+ data: z.ZodObject<{
58
+ reason: z.ZodEnum<{
59
+ empty: "empty";
60
+ widens: "widens";
61
+ }>;
62
+ }, z.core.$strip>;
63
+ };
64
+ }>, Record<never, never>>;
65
+ editRule: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
66
+ ruleID: z.ZodString;
67
+ revision: z.ZodInt;
68
+ destinations: z.ZodArray<z.ZodString>;
69
+ clientActionID: z.ZodUUID;
70
+ }, z.core.$strip>, z.ZodObject<{
71
+ ruleID: z.ZodString;
72
+ revision: z.ZodInt;
73
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
74
+ UNAUTHORIZED: {
75
+ message: string;
76
+ status: number;
77
+ };
78
+ }>, {
79
+ CLIENT_ACTION_ID_REUSED: {
80
+ message: string;
81
+ status: number;
82
+ };
83
+ }>, {
84
+ NOT_FOUND: {
85
+ message: string;
86
+ status: number;
87
+ };
88
+ CONFLICT: {
89
+ message: string;
90
+ status: number;
91
+ data: z.ZodObject<{
92
+ revision: z.ZodInt;
93
+ }, z.core.$strip>;
94
+ };
95
+ NOT_ALLOWED: {
96
+ message: string;
97
+ status: number;
98
+ data: z.ZodObject<{
99
+ reason: z.ZodEnum<{
100
+ empty: "empty";
101
+ widens: "widens";
102
+ }>;
103
+ }, z.core.$strip>;
104
+ };
105
+ }>, Record<never, never>>;
106
+ };
@@ -0,0 +1,134 @@
1
+ import { z } from 'zod';
2
+ export declare const turnInputsContract: {
3
+ list: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
4
+ limit: z.ZodDefault<z.ZodInt>;
5
+ }, z.core.$strict>, z.ZodObject<{
6
+ inputs: z.ZodArray<z.ZodObject<{
7
+ inputID: z.ZodString;
8
+ captureID: z.ZodString;
9
+ taskID: z.ZodString;
10
+ stepRunID: z.ZodString;
11
+ writer: z.ZodString;
12
+ counter: z.ZodInt;
13
+ role: z.ZodString;
14
+ profile: z.ZodString;
15
+ model: z.ZodString;
16
+ harness: z.ZodString;
17
+ api: z.ZodString;
18
+ endpoint: z.ZodString;
19
+ route: z.ZodString;
20
+ isRewritten: z.ZodBoolean;
21
+ upstreamStatus: z.ZodInt;
22
+ bytes: z.ZodInt;
23
+ intakeSequence: z.ZodInt;
24
+ receivedAt: z.ZodDate;
25
+ takenAt: z.ZodDate;
26
+ state: z.ZodEnum<{
27
+ missing: "missing";
28
+ removed: "removed";
29
+ stored: "stored";
30
+ writing: "writing";
31
+ }>;
32
+ removedCause: z.ZodNullable<z.ZodEnum<{
33
+ dropped: "dropped";
34
+ forget: "forget";
35
+ reset: "reset";
36
+ restore: "restore";
37
+ retention_bytes: "retention_bytes";
38
+ retention_days: "retention_days";
39
+ }>>;
40
+ }, z.core.$strip>>;
41
+ misses: z.ZodArray<z.ZodObject<{
42
+ missID: z.ZodString;
43
+ captureID: z.ZodNullable<z.ZodString>;
44
+ taskID: z.ZodString;
45
+ stepRunID: z.ZodString;
46
+ reason: z.ZodEnum<{
47
+ capture_closed: "capture_closed";
48
+ holds_own_value: "holds_own_value";
49
+ intake_failed: "intake_failed";
50
+ no_capture_point: "no_capture_point";
51
+ not_received: "not_received";
52
+ queue_full: "queue_full";
53
+ seal_failed: "seal_failed";
54
+ spool_full: "spool_full";
55
+ spool_write_failed: "spool_write_failed";
56
+ undecodable: "undecodable";
57
+ }>;
58
+ count: z.ZodInt;
59
+ writer: z.ZodNullable<z.ZodString>;
60
+ counter: z.ZodNullable<z.ZodInt>;
61
+ createdAt: z.ZodDate;
62
+ }, z.core.$strip>>;
63
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
64
+ NOT_FOUND: {
65
+ message: string;
66
+ status: number;
67
+ };
68
+ REMOVED: {
69
+ message: string;
70
+ status: number;
71
+ };
72
+ OPEN_NOT_RECORDED: {
73
+ message: string;
74
+ status: number;
75
+ };
76
+ NOT_CONFIGURED: {
77
+ message: string;
78
+ status: number;
79
+ };
80
+ }>, Record<never, never>>;
81
+ open: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
82
+ inputID: z.ZodString;
83
+ }, z.core.$strict>, z.ZodObject<{
84
+ inputID: z.ZodString;
85
+ body: z.ZodBase64;
86
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
87
+ NOT_FOUND: {
88
+ message: string;
89
+ status: number;
90
+ };
91
+ REMOVED: {
92
+ message: string;
93
+ status: number;
94
+ };
95
+ OPEN_NOT_RECORDED: {
96
+ message: string;
97
+ status: number;
98
+ };
99
+ NOT_CONFIGURED: {
100
+ message: string;
101
+ status: number;
102
+ };
103
+ }>, Record<never, never>>;
104
+ set: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodDiscriminatedUnion<[z.ZodObject<{
105
+ state: z.ZodLiteral<"on">;
106
+ forMs: z.ZodNullable<z.ZodInt>;
107
+ }, z.core.$strict>, z.ZodObject<{
108
+ state: z.ZodLiteral<"off">;
109
+ drop: z.ZodBoolean;
110
+ }, z.core.$strict>], "state">, z.ZodObject<{
111
+ state: z.ZodEnum<{
112
+ off: "off";
113
+ on: "on";
114
+ }>;
115
+ until: z.ZodNullable<z.ZodNumber>;
116
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
117
+ NOT_FOUND: {
118
+ message: string;
119
+ status: number;
120
+ };
121
+ REMOVED: {
122
+ message: string;
123
+ status: number;
124
+ };
125
+ OPEN_NOT_RECORDED: {
126
+ message: string;
127
+ status: number;
128
+ };
129
+ NOT_CONFIGURED: {
130
+ message: string;
131
+ status: number;
132
+ };
133
+ }>, Record<never, never>>;
134
+ };
package/dist/index.d.ts CHANGED
@@ -1,18 +1,18 @@
1
- export type { BeforeInputFields } from './build-pending-input.js';
2
- export { buildPendingInput } from './build-pending-input.js';
3
- export { buildQueryUtils } from './build-query-utils.js';
4
- export { buildSpanState } from './build-span-state.js';
5
- export { clientHeaderName } from './client-header-name.js';
6
- export { contract } from './contract.js';
7
- export { hostContract } from './host-contract.js';
8
- export { imageLimits } from './image-limits.js';
9
- export { isTimeZone } from './is-time-zone.js';
10
- export { pickSpanSource } from './pick-span-source.js';
11
- export { proposalOutcomeSchema } from './proposal-outcome-schema.js';
12
- export { renderSessionCookie } from './render-session-cookie.js';
13
- export { sessionCookieName } from './session-cookie-name.js';
14
- export { spanSchema } from './span-schema.js';
15
- export { taskMessageInputSchema } from './task-message-input-schema.js';
16
- export { taskMessageKindSchema } from './task-message-kind-schema.js';
17
- export { taskMessageResultSchema } from './task-message-result-schema.js';
1
+ export type { BeforeInputFields } from './span/build-pending-input.js';
2
+ export { buildPendingInput } from './span/build-pending-input.js';
3
+ export { buildQueryUtils } from './contract/build-query-utils.js';
4
+ export { buildSpanState } from './span/build-span-state.js';
5
+ export { clientHeaderName } from './contract/client-header-name.js';
6
+ export { forgettableKinds } from './contract/forgettable-kinds.js';
7
+ export { contract } from './contract/contract.js';
8
+ export { hostContract } from './contract/host-contract.js';
9
+ export { imageLimits } from './contract/image-limits.js';
10
+ export { isTimeZone } from './contract/is-time-zone.js';
11
+ export { pickSpanSource } from './span/pick-span-source.js';
12
+ export { renderSessionCookie } from './contract/render-session-cookie.js';
13
+ export { sessionCookieName } from './contract/session-cookie-name.js';
14
+ export { spanSchema } from './span/span-schema.js';
15
+ export { taskMessageInputSchema } from './message/task-message-input-schema.js';
16
+ export { taskMessageKindSchema } from './message/task-message-kind-schema.js';
17
+ export { taskMessageResultSchema } from './message/task-message-result-schema.js';
18
18
  export type { ContractClient, ContractInputs, ContractOutputs, HostContractClient, HostContractInputs, ImageMediaType, LogRecord, PendingInput, Span, SpanSource, SpanState, } from './types.js';