@heynixie/contract 0.71.0 → 0.73.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} +208 -2
- package/dist/contract/authentication-response-schema.d.ts +17 -0
- package/dist/contract/base64-url-schema.d.ts +2 -0
- package/dist/{build-query-utils.d.ts → contract/build-query-utils.d.ts} +619 -262
- package/dist/contract/challenge-for-schema.d.ts +18 -0
- package/dist/contract/choice-schema.d.ts +7 -0
- package/dist/{contract.d.ts → contract/contract.d.ts} +661 -308
- package/dist/contract/creation-options-schema.d.ts +42 -0
- package/dist/contract/credential-descriptor-schema.d.ts +6 -0
- package/dist/contract/forgettable-kinds.d.ts +1 -0
- package/dist/{host-contract.d.ts → contract/host-contract.d.ts} +75 -199
- package/dist/contract/host-passkey-contract.d.ts +29 -0
- package/dist/{memory-view-contract.d.ts → contract/memory-view-contract.d.ts} +1 -230
- package/dist/contract/no-passkey-error.d.ts +6 -0
- package/dist/contract/passkey-contract.d.ts +270 -0
- package/dist/contract/passkey-failed-error.d.ts +18 -0
- package/dist/contract/passkey-failure-schema.d.ts +10 -0
- package/dist/contract/pause-state-schema.d.ts +9 -0
- package/dist/contract/recovery-schema.d.ts +21 -0
- package/dist/contract/registration-response-schema.d.ts +19 -0
- package/dist/contract/request-options-schema.d.ts +16 -0
- package/dist/contract/rule-contract.d.ts +106 -0
- package/dist/contract/transports-schema.d.ts +2 -0
- package/dist/contract/user-verification-schema.d.ts +6 -0
- package/dist/index.d.ts +17 -18
- package/dist/index.js +1153 -944
- 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
|
@@ -41,7 +41,6 @@ export declare const memoryProposalSchema: z.ZodObject<{
|
|
|
41
41
|
}>;
|
|
42
42
|
origin: z.ZodEnum<{
|
|
43
43
|
conversation: "conversation";
|
|
44
|
-
memory_writer: "memory_writer";
|
|
45
44
|
owner: "owner";
|
|
46
45
|
task: "task";
|
|
47
46
|
}>;
|
|
@@ -49,6 +48,7 @@ export declare const memoryProposalSchema: z.ZodObject<{
|
|
|
49
48
|
quote: z.ZodNullable<z.ZodString>;
|
|
50
49
|
reason: z.ZodEnum<{
|
|
51
50
|
ambiguous_target: "ambiguous_target";
|
|
51
|
+
ask_rule: "ask_rule";
|
|
52
52
|
checker_not_asserted: "checker_not_asserted";
|
|
53
53
|
checker_unreachable: "checker_unreachable";
|
|
54
54
|
checker_unsure: "checker_unsure";
|
|
@@ -73,7 +73,6 @@ export declare const memoryProposalSchema: z.ZodObject<{
|
|
|
73
73
|
sources: z.ZodArray<z.ZodObject<{
|
|
74
74
|
origin: z.ZodEnum<{
|
|
75
75
|
conversation: "conversation";
|
|
76
|
-
memory_writer: "memory_writer";
|
|
77
76
|
owner: "owner";
|
|
78
77
|
task: "task";
|
|
79
78
|
}>;
|
|
@@ -475,7 +474,6 @@ export declare const memoryViewContract: {
|
|
|
475
474
|
origin: z.ZodEnum<{
|
|
476
475
|
conversation: "conversation";
|
|
477
476
|
lapse: "lapse";
|
|
478
|
-
memory_writer: "memory_writer";
|
|
479
477
|
owner: "owner";
|
|
480
478
|
task: "task";
|
|
481
479
|
}>;
|
|
@@ -539,7 +537,6 @@ export declare const memoryViewContract: {
|
|
|
539
537
|
origin: z.ZodEnum<{
|
|
540
538
|
conversation: "conversation";
|
|
541
539
|
lapse: "lapse";
|
|
542
|
-
memory_writer: "memory_writer";
|
|
543
540
|
owner: "owner";
|
|
544
541
|
task: "task";
|
|
545
542
|
}>;
|
|
@@ -603,7 +600,6 @@ export declare const memoryViewContract: {
|
|
|
603
600
|
origin: z.ZodEnum<{
|
|
604
601
|
conversation: "conversation";
|
|
605
602
|
lapse: "lapse";
|
|
606
|
-
memory_writer: "memory_writer";
|
|
607
603
|
owner: "owner";
|
|
608
604
|
task: "task";
|
|
609
605
|
}>;
|
|
@@ -661,7 +657,6 @@ export declare const memoryViewContract: {
|
|
|
661
657
|
origin: z.ZodEnum<{
|
|
662
658
|
conversation: "conversation";
|
|
663
659
|
lapse: "lapse";
|
|
664
|
-
memory_writer: "memory_writer";
|
|
665
660
|
owner: "owner";
|
|
666
661
|
task: "task";
|
|
667
662
|
}>;
|
|
@@ -723,7 +718,6 @@ export declare const memoryViewContract: {
|
|
|
723
718
|
origin: z.ZodEnum<{
|
|
724
719
|
conversation: "conversation";
|
|
725
720
|
lapse: "lapse";
|
|
726
|
-
memory_writer: "memory_writer";
|
|
727
721
|
owner: "owner";
|
|
728
722
|
task: "task";
|
|
729
723
|
}>;
|
|
@@ -864,7 +858,6 @@ export declare const memoryViewContract: {
|
|
|
864
858
|
origin: z.ZodEnum<{
|
|
865
859
|
conversation: "conversation";
|
|
866
860
|
lapse: "lapse";
|
|
867
|
-
memory_writer: "memory_writer";
|
|
868
861
|
owner: "owner";
|
|
869
862
|
task: "task";
|
|
870
863
|
}>;
|
|
@@ -907,8 +900,6 @@ export declare const memoryViewContract: {
|
|
|
907
900
|
version: z.ZodNullable<z.ZodInt>;
|
|
908
901
|
}, z.core.$strip>>;
|
|
909
902
|
kind: z.ZodEnum<{
|
|
910
|
-
batch: "batch";
|
|
911
|
-
catch_up: "catch_up";
|
|
912
903
|
run: "run";
|
|
913
904
|
turn: "turn";
|
|
914
905
|
}>;
|
|
@@ -1024,7 +1015,6 @@ export declare const memoryViewContract: {
|
|
|
1024
1015
|
origin: z.ZodEnum<{
|
|
1025
1016
|
conversation: "conversation";
|
|
1026
1017
|
lapse: "lapse";
|
|
1027
|
-
memory_writer: "memory_writer";
|
|
1028
1018
|
owner: "owner";
|
|
1029
1019
|
task: "task";
|
|
1030
1020
|
}>;
|
|
@@ -1086,7 +1076,6 @@ export declare const memoryViewContract: {
|
|
|
1086
1076
|
origin: z.ZodEnum<{
|
|
1087
1077
|
conversation: "conversation";
|
|
1088
1078
|
lapse: "lapse";
|
|
1089
|
-
memory_writer: "memory_writer";
|
|
1090
1079
|
owner: "owner";
|
|
1091
1080
|
task: "task";
|
|
1092
1081
|
}>;
|
|
@@ -1198,7 +1187,6 @@ export declare const memoryViewContract: {
|
|
|
1198
1187
|
origin: z.ZodEnum<{
|
|
1199
1188
|
conversation: "conversation";
|
|
1200
1189
|
lapse: "lapse";
|
|
1201
|
-
memory_writer: "memory_writer";
|
|
1202
1190
|
owner: "owner";
|
|
1203
1191
|
task: "task";
|
|
1204
1192
|
}>;
|
|
@@ -1399,221 +1387,4 @@ export declare const memoryViewContract: {
|
|
|
1399
1387
|
status: number;
|
|
1400
1388
|
};
|
|
1401
1389
|
}>, 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
1390
|
};
|
|
@@ -0,0 +1,270 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const passkeyContract: {
|
|
3
|
+
challenge: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
4
|
+
for: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
5
|
+
kind: z.ZodLiteral<"answer">;
|
|
6
|
+
proposalID: z.ZodString;
|
|
7
|
+
actionHash: z.ZodString;
|
|
8
|
+
choice: z.ZodEnum<{
|
|
9
|
+
always_allow: "always_allow";
|
|
10
|
+
approve: "approve";
|
|
11
|
+
decline: "decline";
|
|
12
|
+
defer: "defer";
|
|
13
|
+
}>;
|
|
14
|
+
ruleHash: z.ZodOptional<z.ZodString>;
|
|
15
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
16
|
+
kind: z.ZodLiteral<"register">;
|
|
17
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
18
|
+
kind: z.ZodLiteral<"revoke">;
|
|
19
|
+
passkeyID: z.ZodString;
|
|
20
|
+
}, z.core.$strip>], "kind">;
|
|
21
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
22
|
+
options: z.ZodObject<{
|
|
23
|
+
challenge: z.ZodString;
|
|
24
|
+
rpId: z.ZodString;
|
|
25
|
+
allowCredentials: z.ZodArray<z.ZodObject<{
|
|
26
|
+
id: z.ZodString;
|
|
27
|
+
type: z.ZodLiteral<"public-key">;
|
|
28
|
+
transports: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
29
|
+
}, z.core.$strip>>;
|
|
30
|
+
userVerification: z.ZodEnum<{
|
|
31
|
+
discouraged: "discouraged";
|
|
32
|
+
preferred: "preferred";
|
|
33
|
+
required: "required";
|
|
34
|
+
}>;
|
|
35
|
+
timeout: z.ZodInt;
|
|
36
|
+
}, z.core.$strip>;
|
|
37
|
+
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
38
|
+
UNAUTHORIZED: {
|
|
39
|
+
message: string;
|
|
40
|
+
status: number;
|
|
41
|
+
};
|
|
42
|
+
}>, {
|
|
43
|
+
NO_PASSKEY: {
|
|
44
|
+
message: string;
|
|
45
|
+
status: number;
|
|
46
|
+
};
|
|
47
|
+
}>, Record<never, never>>;
|
|
48
|
+
registrationOptions: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
49
|
+
code: z.ZodOptional<z.ZodString>;
|
|
50
|
+
passkey: z.ZodOptional<z.ZodObject<{
|
|
51
|
+
id: z.ZodString;
|
|
52
|
+
rawId: z.ZodString;
|
|
53
|
+
response: z.ZodObject<{
|
|
54
|
+
clientDataJSON: z.ZodString;
|
|
55
|
+
authenticatorData: z.ZodString;
|
|
56
|
+
signature: z.ZodString;
|
|
57
|
+
userHandle: z.ZodOptional<z.ZodString>;
|
|
58
|
+
}, z.core.$strip>;
|
|
59
|
+
authenticatorAttachment: z.ZodOptional<z.ZodEnum<{
|
|
60
|
+
"cross-platform": "cross-platform";
|
|
61
|
+
platform: "platform";
|
|
62
|
+
}>>;
|
|
63
|
+
clientExtensionResults: z.ZodObject<{}, z.core.$strip>;
|
|
64
|
+
type: z.ZodLiteral<"public-key">;
|
|
65
|
+
}, z.core.$strip>>;
|
|
66
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
67
|
+
options: z.ZodObject<{
|
|
68
|
+
rp: z.ZodObject<{
|
|
69
|
+
id: z.ZodString;
|
|
70
|
+
name: z.ZodString;
|
|
71
|
+
}, z.core.$strip>;
|
|
72
|
+
user: z.ZodObject<{
|
|
73
|
+
id: z.ZodString;
|
|
74
|
+
name: z.ZodString;
|
|
75
|
+
displayName: z.ZodString;
|
|
76
|
+
}, z.core.$strip>;
|
|
77
|
+
challenge: z.ZodString;
|
|
78
|
+
pubKeyCredParams: z.ZodArray<z.ZodObject<{
|
|
79
|
+
type: z.ZodLiteral<"public-key">;
|
|
80
|
+
alg: z.ZodInt;
|
|
81
|
+
}, z.core.$strip>>;
|
|
82
|
+
timeout: z.ZodInt;
|
|
83
|
+
excludeCredentials: z.ZodArray<z.ZodObject<{
|
|
84
|
+
id: z.ZodString;
|
|
85
|
+
type: z.ZodLiteral<"public-key">;
|
|
86
|
+
transports: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
87
|
+
}, z.core.$strip>>;
|
|
88
|
+
authenticatorSelection: z.ZodObject<{
|
|
89
|
+
residentKey: z.ZodEnum<{
|
|
90
|
+
discouraged: "discouraged";
|
|
91
|
+
preferred: "preferred";
|
|
92
|
+
required: "required";
|
|
93
|
+
}>;
|
|
94
|
+
requireResidentKey: z.ZodBoolean;
|
|
95
|
+
userVerification: z.ZodEnum<{
|
|
96
|
+
discouraged: "discouraged";
|
|
97
|
+
preferred: "preferred";
|
|
98
|
+
required: "required";
|
|
99
|
+
}>;
|
|
100
|
+
}, z.core.$strip>;
|
|
101
|
+
attestation: z.ZodEnum<{
|
|
102
|
+
direct: "direct";
|
|
103
|
+
enterprise: "enterprise";
|
|
104
|
+
indirect: "indirect";
|
|
105
|
+
none: "none";
|
|
106
|
+
}>;
|
|
107
|
+
}, z.core.$strip>;
|
|
108
|
+
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
109
|
+
UNAUTHORIZED: {
|
|
110
|
+
message: string;
|
|
111
|
+
status: number;
|
|
112
|
+
};
|
|
113
|
+
}>, {
|
|
114
|
+
PASSKEY_FAILED: {
|
|
115
|
+
message: string;
|
|
116
|
+
status: number;
|
|
117
|
+
data: z.ZodObject<{
|
|
118
|
+
reason: z.ZodEnum<{
|
|
119
|
+
binding: "binding";
|
|
120
|
+
counter: "counter";
|
|
121
|
+
no_user_verification: "no_user_verification";
|
|
122
|
+
origin: "origin";
|
|
123
|
+
signature: "signature";
|
|
124
|
+
unknown_challenge: "unknown_challenge";
|
|
125
|
+
unknown_passkey: "unknown_passkey";
|
|
126
|
+
}>;
|
|
127
|
+
}, z.core.$strip>;
|
|
128
|
+
};
|
|
129
|
+
TOO_MANY_PASSKEYS: {
|
|
130
|
+
message: string;
|
|
131
|
+
status: number;
|
|
132
|
+
};
|
|
133
|
+
ORIGIN_UNSUPPORTED: {
|
|
134
|
+
message: string;
|
|
135
|
+
status: number;
|
|
136
|
+
};
|
|
137
|
+
ORIGIN_CHANGED: {
|
|
138
|
+
message: string;
|
|
139
|
+
status: number;
|
|
140
|
+
};
|
|
141
|
+
}>, {
|
|
142
|
+
CODE_REQUIRED: {
|
|
143
|
+
message: string;
|
|
144
|
+
status: number;
|
|
145
|
+
};
|
|
146
|
+
CODE_INVALID: {
|
|
147
|
+
message: string;
|
|
148
|
+
status: number;
|
|
149
|
+
};
|
|
150
|
+
}>, Record<never, never>>;
|
|
151
|
+
register: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
152
|
+
clientActionID: z.ZodUUID;
|
|
153
|
+
response: z.ZodObject<{
|
|
154
|
+
id: z.ZodString;
|
|
155
|
+
rawId: z.ZodString;
|
|
156
|
+
response: z.ZodObject<{
|
|
157
|
+
clientDataJSON: z.ZodString;
|
|
158
|
+
attestationObject: z.ZodString;
|
|
159
|
+
authenticatorData: z.ZodOptional<z.ZodString>;
|
|
160
|
+
transports: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
161
|
+
publicKeyAlgorithm: z.ZodOptional<z.ZodInt>;
|
|
162
|
+
publicKey: z.ZodOptional<z.ZodString>;
|
|
163
|
+
}, z.core.$strip>;
|
|
164
|
+
authenticatorAttachment: z.ZodOptional<z.ZodEnum<{
|
|
165
|
+
"cross-platform": "cross-platform";
|
|
166
|
+
platform: "platform";
|
|
167
|
+
}>>;
|
|
168
|
+
clientExtensionResults: z.ZodObject<{}, z.core.$strip>;
|
|
169
|
+
type: z.ZodLiteral<"public-key">;
|
|
170
|
+
}, z.core.$strip>;
|
|
171
|
+
label: z.ZodOptional<z.ZodString>;
|
|
172
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
173
|
+
passkeyID: z.ZodString;
|
|
174
|
+
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
175
|
+
UNAUTHORIZED: {
|
|
176
|
+
message: string;
|
|
177
|
+
status: number;
|
|
178
|
+
};
|
|
179
|
+
}>, {
|
|
180
|
+
CLIENT_ACTION_ID_REUSED: {
|
|
181
|
+
message: string;
|
|
182
|
+
status: number;
|
|
183
|
+
};
|
|
184
|
+
}>, {
|
|
185
|
+
REGISTRATION_FAILED: {
|
|
186
|
+
message: string;
|
|
187
|
+
status: number;
|
|
188
|
+
data: z.ZodObject<{
|
|
189
|
+
reason: z.ZodString;
|
|
190
|
+
}, z.core.$strip>;
|
|
191
|
+
};
|
|
192
|
+
TOO_MANY_PASSKEYS: {
|
|
193
|
+
message: string;
|
|
194
|
+
status: number;
|
|
195
|
+
};
|
|
196
|
+
ORIGIN_UNSUPPORTED: {
|
|
197
|
+
message: string;
|
|
198
|
+
status: number;
|
|
199
|
+
};
|
|
200
|
+
}>, Record<never, never>>;
|
|
201
|
+
list: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodObject<{
|
|
202
|
+
passkeys: z.ZodArray<z.ZodObject<{
|
|
203
|
+
passkeyID: z.ZodString;
|
|
204
|
+
label: z.ZodString;
|
|
205
|
+
synced: z.ZodBoolean;
|
|
206
|
+
authorizedBy: z.ZodString;
|
|
207
|
+
registeredAt: z.ZodDate;
|
|
208
|
+
lastUsedAt: z.ZodNullable<z.ZodDate>;
|
|
209
|
+
revokedAt: z.ZodNullable<z.ZodDate>;
|
|
210
|
+
}, z.core.$strip>>;
|
|
211
|
+
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
212
|
+
UNAUTHORIZED: {
|
|
213
|
+
message: string;
|
|
214
|
+
status: number;
|
|
215
|
+
};
|
|
216
|
+
}>, Record<never, never>>;
|
|
217
|
+
revoke: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
218
|
+
clientActionID: z.ZodUUID;
|
|
219
|
+
passkeyID: z.ZodString;
|
|
220
|
+
passkey: z.ZodObject<{
|
|
221
|
+
id: z.ZodString;
|
|
222
|
+
rawId: z.ZodString;
|
|
223
|
+
response: z.ZodObject<{
|
|
224
|
+
clientDataJSON: z.ZodString;
|
|
225
|
+
authenticatorData: z.ZodString;
|
|
226
|
+
signature: z.ZodString;
|
|
227
|
+
userHandle: z.ZodOptional<z.ZodString>;
|
|
228
|
+
}, z.core.$strip>;
|
|
229
|
+
authenticatorAttachment: z.ZodOptional<z.ZodEnum<{
|
|
230
|
+
"cross-platform": "cross-platform";
|
|
231
|
+
platform: "platform";
|
|
232
|
+
}>>;
|
|
233
|
+
clientExtensionResults: z.ZodObject<{}, z.core.$strip>;
|
|
234
|
+
type: z.ZodLiteral<"public-key">;
|
|
235
|
+
}, z.core.$strip>;
|
|
236
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
237
|
+
revokedAt: z.ZodDate;
|
|
238
|
+
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
239
|
+
UNAUTHORIZED: {
|
|
240
|
+
message: string;
|
|
241
|
+
status: number;
|
|
242
|
+
};
|
|
243
|
+
}>, {
|
|
244
|
+
CLIENT_ACTION_ID_REUSED: {
|
|
245
|
+
message: string;
|
|
246
|
+
status: number;
|
|
247
|
+
};
|
|
248
|
+
}>, {
|
|
249
|
+
PASSKEY_FAILED: {
|
|
250
|
+
message: string;
|
|
251
|
+
status: number;
|
|
252
|
+
data: z.ZodObject<{
|
|
253
|
+
reason: z.ZodEnum<{
|
|
254
|
+
binding: "binding";
|
|
255
|
+
counter: "counter";
|
|
256
|
+
no_user_verification: "no_user_verification";
|
|
257
|
+
origin: "origin";
|
|
258
|
+
signature: "signature";
|
|
259
|
+
unknown_challenge: "unknown_challenge";
|
|
260
|
+
unknown_passkey: "unknown_passkey";
|
|
261
|
+
}>;
|
|
262
|
+
}, z.core.$strip>;
|
|
263
|
+
};
|
|
264
|
+
}>, {
|
|
265
|
+
NOT_FOUND: {
|
|
266
|
+
message: string;
|
|
267
|
+
status: number;
|
|
268
|
+
};
|
|
269
|
+
}>, Record<never, never>>;
|
|
270
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const passkeyFailedError: {
|
|
3
|
+
PASSKEY_FAILED: {
|
|
4
|
+
message: string;
|
|
5
|
+
status: number;
|
|
6
|
+
data: z.ZodObject<{
|
|
7
|
+
reason: z.ZodEnum<{
|
|
8
|
+
binding: "binding";
|
|
9
|
+
counter: "counter";
|
|
10
|
+
no_user_verification: "no_user_verification";
|
|
11
|
+
origin: "origin";
|
|
12
|
+
signature: "signature";
|
|
13
|
+
unknown_challenge: "unknown_challenge";
|
|
14
|
+
unknown_passkey: "unknown_passkey";
|
|
15
|
+
}>;
|
|
16
|
+
}, z.core.$strip>;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const passkeyFailureSchema: z.ZodEnum<{
|
|
3
|
+
binding: "binding";
|
|
4
|
+
counter: "counter";
|
|
5
|
+
no_user_verification: "no_user_verification";
|
|
6
|
+
origin: "origin";
|
|
7
|
+
signature: "signature";
|
|
8
|
+
unknown_challenge: "unknown_challenge";
|
|
9
|
+
unknown_passkey: "unknown_passkey";
|
|
10
|
+
}>;
|
|
@@ -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,19 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const registrationResponseSchema: z.ZodObject<{
|
|
3
|
+
id: z.ZodString;
|
|
4
|
+
rawId: z.ZodString;
|
|
5
|
+
response: z.ZodObject<{
|
|
6
|
+
clientDataJSON: z.ZodString;
|
|
7
|
+
attestationObject: z.ZodString;
|
|
8
|
+
authenticatorData: z.ZodOptional<z.ZodString>;
|
|
9
|
+
transports: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
10
|
+
publicKeyAlgorithm: z.ZodOptional<z.ZodInt>;
|
|
11
|
+
publicKey: z.ZodOptional<z.ZodString>;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
authenticatorAttachment: z.ZodOptional<z.ZodEnum<{
|
|
14
|
+
"cross-platform": "cross-platform";
|
|
15
|
+
platform: "platform";
|
|
16
|
+
}>>;
|
|
17
|
+
clientExtensionResults: z.ZodObject<{}, z.core.$strip>;
|
|
18
|
+
type: z.ZodLiteral<"public-key">;
|
|
19
|
+
}, z.core.$strip>;
|