@heynixie/contract 0.71.0 → 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.
- package/dist/{approval-contract.d.ts → contract/approval-contract.d.ts} +158 -0
- package/dist/{build-query-utils.d.ts → contract/build-query-utils.d.ts} +252 -238
- package/dist/{contract.d.ts → contract/contract.d.ts} +340 -285
- package/dist/contract/forgettable-kinds.d.ts +1 -0
- package/dist/{host-contract.d.ts → contract/host-contract.d.ts} +47 -0
- package/dist/{memory-view-contract.d.ts → contract/memory-view-contract.d.ts} +1 -217
- package/dist/contract/pause-state-schema.d.ts +9 -0
- package/dist/contract/recovery-schema.d.ts +21 -0
- package/dist/contract/rule-contract.d.ts +106 -0
- package/dist/index.d.ts +17 -18
- package/dist/index.js +751 -722
- package/dist/{build-pending-input.d.ts → span/build-pending-input.d.ts} +1 -1
- package/dist/{build-span-state.d.ts → span/build-span-state.d.ts} +1 -1
- package/dist/{pick-span-source.d.ts → span/pick-span-source.d.ts} +1 -1
- package/dist/types.d.ts +3 -3
- package/package.json +1 -1
- package/dist/forgettable-kinds.d.ts +0 -1
- package/dist/proposal-outcome-schema.d.ts +0 -37
- package/dist/rule-contract.d.ts +0 -124
- /package/dist/{action-proposal-schema.d.ts → contract/action-proposal-schema.d.ts} +0 -0
- /package/dist/{client-header-name.d.ts → contract/client-header-name.d.ts} +0 -0
- /package/dist/{forget-backup-schema.d.ts → contract/forget-backup-schema.d.ts} +0 -0
- /package/dist/{image-limits.d.ts → contract/image-limits.d.ts} +0 -0
- /package/dist/{image-not-found-error.d.ts → contract/image-not-found-error.d.ts} +0 -0
- /package/dist/{image-refused-error.d.ts → contract/image-refused-error.d.ts} +0 -0
- /package/dist/{input-miss-schema.d.ts → contract/input-miss-schema.d.ts} +0 -0
- /package/dist/{is-time-zone.d.ts → contract/is-time-zone.d.ts} +0 -0
- /package/dist/{known-contact-schema.d.ts → contract/known-contact-schema.d.ts} +0 -0
- /package/dist/{logged-input-schema.d.ts → contract/logged-input-schema.d.ts} +0 -0
- /package/dist/{memory-export-contract.d.ts → contract/memory-export-contract.d.ts} +0 -0
- /package/dist/{moment-contract.d.ts → contract/moment-contract.d.ts} +0 -0
- /package/dist/{render-session-cookie.d.ts → contract/render-session-cookie.d.ts} +0 -0
- /package/dist/{reused-id-errors.d.ts → contract/reused-id-errors.d.ts} +0 -0
- /package/dist/{session-cookie-name.d.ts → contract/session-cookie-name.d.ts} +0 -0
- /package/dist/{signed-in.d.ts → contract/signed-in.d.ts} +0 -0
- /package/dist/{task-schema.d.ts → contract/task-schema.d.ts} +0 -0
- /package/dist/{tool-call-schema.d.ts → contract/tool-call-schema.d.ts} +0 -0
- /package/dist/{turn-inputs-contract.d.ts → contract/turn-inputs-contract.d.ts} +0 -0
- /package/dist/{task-message-input-schema.d.ts → message/task-message-input-schema.d.ts} +0 -0
- /package/dist/{task-message-kind-schema.d.ts → message/task-message-kind-schema.d.ts} +0 -0
- /package/dist/{task-message-result-schema.d.ts → message/task-message-result-schema.d.ts} +0 -0
- /package/dist/{has-several-words.d.ts → span/has-several-words.d.ts} +0 -0
- /package/dist/{span-schema.d.ts → span/span-schema.d.ts} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const forgettableKinds: readonly ['action.outcome', 'action.queued', 'action.retry_scheduled', 'memory.writer_failed', 'model.compaction_failed', 'model.reply', 'model.session_summarized', 'owner_message', 'policy.action_answered', 'policy.action_proposed', 'policy.contact_marked_known', 'prompts.override_rejected', 'proposals.deferred', 'session.enrolled', 'session.labelled', 'session_kept', 'skills.write_rejected', 'task.created', 'task.run_ended', 'task.run_report_requested', 'task.step_errored', 'task_message', 'tool_called', 'tool_result'];
|
|
@@ -22,6 +22,52 @@ export declare const hostContract: {
|
|
|
22
22
|
state: z.ZodLiteral<"unknown">;
|
|
23
23
|
}, z.core.$strip>], "state">;
|
|
24
24
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
25
|
+
nixie: {
|
|
26
|
+
pause: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodObject<{
|
|
27
|
+
paused: z.ZodNullable<z.ZodObject<{
|
|
28
|
+
cause: z.ZodEnum<{
|
|
29
|
+
owner: "owner";
|
|
30
|
+
restore: "restore";
|
|
31
|
+
spending: "spending";
|
|
32
|
+
}>;
|
|
33
|
+
since: z.ZodDate;
|
|
34
|
+
}, z.core.$strip>>;
|
|
35
|
+
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
36
|
+
resume: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodObject<{
|
|
37
|
+
paused: z.ZodNullable<z.ZodObject<{
|
|
38
|
+
cause: z.ZodEnum<{
|
|
39
|
+
owner: "owner";
|
|
40
|
+
restore: "restore";
|
|
41
|
+
spending: "spending";
|
|
42
|
+
}>;
|
|
43
|
+
since: z.ZodDate;
|
|
44
|
+
}, z.core.$strip>>;
|
|
45
|
+
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
46
|
+
};
|
|
47
|
+
recovery: {
|
|
48
|
+
read: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodObject<{
|
|
49
|
+
recovery: z.ZodNullable<z.ZodObject<{
|
|
50
|
+
restoredAt: z.ZodDate;
|
|
51
|
+
backupTakenAt: z.ZodDate;
|
|
52
|
+
toCheck: z.ZodArray<z.ZodObject<{
|
|
53
|
+
taskID: z.ZodString;
|
|
54
|
+
name: z.ZodString;
|
|
55
|
+
stateAtBackup: z.ZodEnum<{
|
|
56
|
+
closed: "closed";
|
|
57
|
+
done: "done";
|
|
58
|
+
failed: "failed";
|
|
59
|
+
paused: "paused";
|
|
60
|
+
ready: "ready";
|
|
61
|
+
running: "running";
|
|
62
|
+
stopped: "stopped";
|
|
63
|
+
waiting: "waiting";
|
|
64
|
+
}>;
|
|
65
|
+
wasRunning: z.ZodBoolean;
|
|
66
|
+
pendingActions: z.ZodInt;
|
|
67
|
+
}, z.core.$strip>>;
|
|
68
|
+
}, z.core.$strip>>;
|
|
69
|
+
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
70
|
+
};
|
|
25
71
|
tasks: {
|
|
26
72
|
pause: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
27
73
|
taskID: z.ZodString;
|
|
@@ -269,6 +315,7 @@ export declare const hostContract: {
|
|
|
269
315
|
}>;
|
|
270
316
|
reason: z.ZodEnum<{
|
|
271
317
|
ambiguous_target: "ambiguous_target";
|
|
318
|
+
ask_rule: "ask_rule";
|
|
272
319
|
checker_not_asserted: "checker_not_asserted";
|
|
273
320
|
checker_unreachable: "checker_unreachable";
|
|
274
321
|
checker_unsure: "checker_unsure";
|
|
@@ -49,6 +49,7 @@ export declare const memoryProposalSchema: z.ZodObject<{
|
|
|
49
49
|
quote: z.ZodNullable<z.ZodString>;
|
|
50
50
|
reason: z.ZodEnum<{
|
|
51
51
|
ambiguous_target: "ambiguous_target";
|
|
52
|
+
ask_rule: "ask_rule";
|
|
52
53
|
checker_not_asserted: "checker_not_asserted";
|
|
53
54
|
checker_unreachable: "checker_unreachable";
|
|
54
55
|
checker_unsure: "checker_unsure";
|
|
@@ -1399,221 +1400,4 @@ export declare const memoryViewContract: {
|
|
|
1399
1400
|
status: number;
|
|
1400
1401
|
};
|
|
1401
1402
|
}>, Record<never, never>>;
|
|
1402
|
-
listProposals: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodObject<{
|
|
1403
|
-
proposals: z.ZodArray<z.ZodObject<{
|
|
1404
|
-
actionHash: z.ZodString;
|
|
1405
|
-
createdAt: z.ZodDate;
|
|
1406
|
-
evidence: z.ZodNullable<z.ZodObject<{
|
|
1407
|
-
end: z.ZodInt;
|
|
1408
|
-
message: z.ZodNullable<z.ZodObject<{
|
|
1409
|
-
status: z.ZodEnum<{
|
|
1410
|
-
missing: "missing";
|
|
1411
|
-
readable: "readable";
|
|
1412
|
-
shredded: "shredded";
|
|
1413
|
-
unreadable: "unreadable";
|
|
1414
|
-
}>;
|
|
1415
|
-
text: z.ZodOptional<z.ZodString>;
|
|
1416
|
-
}, z.core.$strip>>;
|
|
1417
|
-
sequence: z.ZodInt;
|
|
1418
|
-
start: z.ZodInt;
|
|
1419
|
-
}, z.core.$strip>>;
|
|
1420
|
-
image: z.ZodNullable<z.ZodObject<{
|
|
1421
|
-
position: z.ZodInt;
|
|
1422
|
-
sequence: z.ZodInt;
|
|
1423
|
-
thread: z.ZodString;
|
|
1424
|
-
}, z.core.$strip>>;
|
|
1425
|
-
isPinned: z.ZodBoolean;
|
|
1426
|
-
isSensitive: z.ZodBoolean;
|
|
1427
|
-
itemID: z.ZodString;
|
|
1428
|
-
kind: z.ZodEnum<{
|
|
1429
|
-
fact: "fact";
|
|
1430
|
-
self: "self";
|
|
1431
|
-
}>;
|
|
1432
|
-
lapseAt: z.ZodDate;
|
|
1433
|
-
newSubject: z.ZodNullable<z.ZodEnum<{
|
|
1434
|
-
owner: "owner";
|
|
1435
|
-
self: "self";
|
|
1436
|
-
shared: "shared";
|
|
1437
|
-
}>>;
|
|
1438
|
-
operation: z.ZodEnum<{
|
|
1439
|
-
pin: "pin";
|
|
1440
|
-
remember: "remember";
|
|
1441
|
-
retire: "retire";
|
|
1442
|
-
}>;
|
|
1443
|
-
origin: z.ZodEnum<{
|
|
1444
|
-
conversation: "conversation";
|
|
1445
|
-
memory_writer: "memory_writer";
|
|
1446
|
-
owner: "owner";
|
|
1447
|
-
task: "task";
|
|
1448
|
-
}>;
|
|
1449
|
-
proposalID: z.ZodString;
|
|
1450
|
-
quote: z.ZodNullable<z.ZodString>;
|
|
1451
|
-
reason: z.ZodEnum<{
|
|
1452
|
-
ambiguous_target: "ambiguous_target";
|
|
1453
|
-
checker_not_asserted: "checker_not_asserted";
|
|
1454
|
-
checker_unreachable: "checker_unreachable";
|
|
1455
|
-
checker_unsure: "checker_unsure";
|
|
1456
|
-
forgotten_evidence: "forgotten_evidence";
|
|
1457
|
-
from_photo: "from_photo";
|
|
1458
|
-
invisible_character: "invisible_character";
|
|
1459
|
-
no_quote: "no_quote";
|
|
1460
|
-
other: "other";
|
|
1461
|
-
pinned: "pinned";
|
|
1462
|
-
quote_in_quoted_block: "quote_in_quoted_block";
|
|
1463
|
-
quote_not_typed: "quote_not_typed";
|
|
1464
|
-
self_note: "self_note";
|
|
1465
|
-
sensitive: "sensitive";
|
|
1466
|
-
subject_change: "subject_change";
|
|
1467
|
-
token_missing: "token_missing";
|
|
1468
|
-
}>;
|
|
1469
|
-
source: z.ZodEnum<{
|
|
1470
|
-
owner: "owner";
|
|
1471
|
-
owner_data: "owner_data";
|
|
1472
|
-
untrusted: "untrusted";
|
|
1473
|
-
}>;
|
|
1474
|
-
sources: z.ZodArray<z.ZodObject<{
|
|
1475
|
-
origin: z.ZodEnum<{
|
|
1476
|
-
conversation: "conversation";
|
|
1477
|
-
memory_writer: "memory_writer";
|
|
1478
|
-
owner: "owner";
|
|
1479
|
-
task: "task";
|
|
1480
|
-
}>;
|
|
1481
|
-
proposedAt: z.ZodDate;
|
|
1482
|
-
thread: z.ZodNullable<z.ZodString>;
|
|
1483
|
-
}, z.core.$strip>>;
|
|
1484
|
-
subject: z.ZodEnum<{
|
|
1485
|
-
owner: "owner";
|
|
1486
|
-
self: "self";
|
|
1487
|
-
shared: "shared";
|
|
1488
|
-
}>;
|
|
1489
|
-
targetVersion: z.ZodNullable<z.ZodInt>;
|
|
1490
|
-
text: z.ZodString;
|
|
1491
|
-
until: z.ZodNullable<z.ZodDate>;
|
|
1492
|
-
}, z.core.$strip>>;
|
|
1493
|
-
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
1494
|
-
UNAUTHORIZED: {
|
|
1495
|
-
message: string;
|
|
1496
|
-
status: number;
|
|
1497
|
-
};
|
|
1498
|
-
}>, {
|
|
1499
|
-
MEMORY_NOT_STARTED: {
|
|
1500
|
-
message: string;
|
|
1501
|
-
status: number;
|
|
1502
|
-
};
|
|
1503
|
-
}>, Record<never, never>>;
|
|
1504
|
-
approveProposals: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
1505
|
-
answers: z.ZodArray<z.ZodObject<{
|
|
1506
|
-
actionHash: z.ZodString;
|
|
1507
|
-
clientActionID: z.ZodUUID;
|
|
1508
|
-
proposalID: z.ZodString;
|
|
1509
|
-
editedText: z.ZodOptional<z.ZodString>;
|
|
1510
|
-
ignoreCloseMatch: z.ZodOptional<z.ZodBoolean>;
|
|
1511
|
-
revisionOf: z.ZodOptional<z.ZodObject<{
|
|
1512
|
-
itemID: z.ZodString;
|
|
1513
|
-
version: z.ZodInt;
|
|
1514
|
-
}, z.core.$strip>>;
|
|
1515
|
-
}, z.core.$strip>>;
|
|
1516
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1517
|
-
outcomes: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1518
|
-
proposalID: z.ZodString;
|
|
1519
|
-
status: z.ZodLiteral<"applied">;
|
|
1520
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1521
|
-
proposalID: z.ZodString;
|
|
1522
|
-
status: z.ZodLiteral<"rejected">;
|
|
1523
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1524
|
-
item: z.ZodObject<{
|
|
1525
|
-
itemID: z.ZodString;
|
|
1526
|
-
text: z.ZodString;
|
|
1527
|
-
version: z.ZodInt;
|
|
1528
|
-
}, z.core.$strip>;
|
|
1529
|
-
proposalID: z.ZodString;
|
|
1530
|
-
status: z.ZodLiteral<"close_match">;
|
|
1531
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1532
|
-
cause: z.ZodEnum<{
|
|
1533
|
-
answered: "answered";
|
|
1534
|
-
changed: "changed";
|
|
1535
|
-
gone: "gone";
|
|
1536
|
-
lapsed: "lapsed";
|
|
1537
|
-
moved: "moved";
|
|
1538
|
-
}>;
|
|
1539
|
-
proposalID: z.ZodString;
|
|
1540
|
-
status: z.ZodLiteral<"stale">;
|
|
1541
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1542
|
-
code: z.ZodEnum<{
|
|
1543
|
-
CLIENT_ACTION_ID_REUSED: "CLIENT_ACTION_ID_REUSED";
|
|
1544
|
-
PINNED_CORE_FULL: "PINNED_CORE_FULL";
|
|
1545
|
-
PIN_EDIT: "PIN_EDIT";
|
|
1546
|
-
RETIREMENT_EDIT: "RETIREMENT_EDIT";
|
|
1547
|
-
REVISION_TARGET: "REVISION_TARGET";
|
|
1548
|
-
WRONG_STATE: "WRONG_STATE";
|
|
1549
|
-
}>;
|
|
1550
|
-
proposalID: z.ZodString;
|
|
1551
|
-
status: z.ZodLiteral<"refused">;
|
|
1552
|
-
}, z.core.$strip>], "status">>;
|
|
1553
|
-
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
1554
|
-
UNAUTHORIZED: {
|
|
1555
|
-
message: string;
|
|
1556
|
-
status: number;
|
|
1557
|
-
};
|
|
1558
|
-
}>, {
|
|
1559
|
-
MEMORY_NOT_STARTED: {
|
|
1560
|
-
message: string;
|
|
1561
|
-
status: number;
|
|
1562
|
-
};
|
|
1563
|
-
}>, Record<never, never>>;
|
|
1564
|
-
rejectProposals: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
1565
|
-
answers: z.ZodArray<z.ZodObject<{
|
|
1566
|
-
actionHash: z.ZodString;
|
|
1567
|
-
clientActionID: z.ZodUUID;
|
|
1568
|
-
proposalID: z.ZodString;
|
|
1569
|
-
reason: z.ZodOptional<z.ZodString>;
|
|
1570
|
-
}, z.core.$strip>>;
|
|
1571
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1572
|
-
outcomes: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1573
|
-
proposalID: z.ZodString;
|
|
1574
|
-
status: z.ZodLiteral<"applied">;
|
|
1575
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1576
|
-
proposalID: z.ZodString;
|
|
1577
|
-
status: z.ZodLiteral<"rejected">;
|
|
1578
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1579
|
-
item: z.ZodObject<{
|
|
1580
|
-
itemID: z.ZodString;
|
|
1581
|
-
text: z.ZodString;
|
|
1582
|
-
version: z.ZodInt;
|
|
1583
|
-
}, z.core.$strip>;
|
|
1584
|
-
proposalID: z.ZodString;
|
|
1585
|
-
status: z.ZodLiteral<"close_match">;
|
|
1586
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1587
|
-
cause: z.ZodEnum<{
|
|
1588
|
-
answered: "answered";
|
|
1589
|
-
changed: "changed";
|
|
1590
|
-
gone: "gone";
|
|
1591
|
-
lapsed: "lapsed";
|
|
1592
|
-
moved: "moved";
|
|
1593
|
-
}>;
|
|
1594
|
-
proposalID: z.ZodString;
|
|
1595
|
-
status: z.ZodLiteral<"stale">;
|
|
1596
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1597
|
-
code: z.ZodEnum<{
|
|
1598
|
-
CLIENT_ACTION_ID_REUSED: "CLIENT_ACTION_ID_REUSED";
|
|
1599
|
-
PINNED_CORE_FULL: "PINNED_CORE_FULL";
|
|
1600
|
-
PIN_EDIT: "PIN_EDIT";
|
|
1601
|
-
RETIREMENT_EDIT: "RETIREMENT_EDIT";
|
|
1602
|
-
REVISION_TARGET: "REVISION_TARGET";
|
|
1603
|
-
WRONG_STATE: "WRONG_STATE";
|
|
1604
|
-
}>;
|
|
1605
|
-
proposalID: z.ZodString;
|
|
1606
|
-
status: z.ZodLiteral<"refused">;
|
|
1607
|
-
}, z.core.$strip>], "status">>;
|
|
1608
|
-
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
1609
|
-
UNAUTHORIZED: {
|
|
1610
|
-
message: string;
|
|
1611
|
-
status: number;
|
|
1612
|
-
};
|
|
1613
|
-
}>, {
|
|
1614
|
-
MEMORY_NOT_STARTED: {
|
|
1615
|
-
message: string;
|
|
1616
|
-
status: number;
|
|
1617
|
-
};
|
|
1618
|
-
}>, Record<never, never>>;
|
|
1619
1403
|
};
|
|
@@ -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
|
+
};
|
package/dist/index.d.ts
CHANGED
|
@@ -1,19 +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 { forgettableKinds } from './forgettable-kinds.js';
|
|
7
|
-
export { contract } from './contract.js';
|
|
8
|
-
export { hostContract } from './host-contract.js';
|
|
9
|
-
export { imageLimits } from './image-limits.js';
|
|
10
|
-
export { isTimeZone } from './is-time-zone.js';
|
|
11
|
-
export { pickSpanSource } from './pick-span-source.js';
|
|
12
|
-
export {
|
|
13
|
-
export {
|
|
14
|
-
export {
|
|
15
|
-
export {
|
|
16
|
-
export {
|
|
17
|
-
export {
|
|
18
|
-
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';
|
|
19
18
|
export type { ContractClient, ContractInputs, ContractOutputs, HostContractClient, HostContractInputs, ImageMediaType, LogRecord, PendingInput, Span, SpanSource, SpanState, } from './types.js';
|