@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.
Files changed (58) hide show
  1. package/dist/{approval-contract.d.ts → contract/approval-contract.d.ts} +208 -2
  2. package/dist/contract/authentication-response-schema.d.ts +17 -0
  3. package/dist/contract/base64-url-schema.d.ts +2 -0
  4. package/dist/{build-query-utils.d.ts → contract/build-query-utils.d.ts} +619 -262
  5. package/dist/contract/challenge-for-schema.d.ts +18 -0
  6. package/dist/contract/choice-schema.d.ts +7 -0
  7. package/dist/{contract.d.ts → contract/contract.d.ts} +661 -308
  8. package/dist/contract/creation-options-schema.d.ts +42 -0
  9. package/dist/contract/credential-descriptor-schema.d.ts +6 -0
  10. package/dist/contract/forgettable-kinds.d.ts +1 -0
  11. package/dist/{host-contract.d.ts → contract/host-contract.d.ts} +75 -199
  12. package/dist/contract/host-passkey-contract.d.ts +29 -0
  13. package/dist/{memory-view-contract.d.ts → contract/memory-view-contract.d.ts} +1 -230
  14. package/dist/contract/no-passkey-error.d.ts +6 -0
  15. package/dist/contract/passkey-contract.d.ts +270 -0
  16. package/dist/contract/passkey-failed-error.d.ts +18 -0
  17. package/dist/contract/passkey-failure-schema.d.ts +10 -0
  18. package/dist/contract/pause-state-schema.d.ts +9 -0
  19. package/dist/contract/recovery-schema.d.ts +21 -0
  20. package/dist/contract/registration-response-schema.d.ts +19 -0
  21. package/dist/contract/request-options-schema.d.ts +16 -0
  22. package/dist/contract/rule-contract.d.ts +106 -0
  23. package/dist/contract/transports-schema.d.ts +2 -0
  24. package/dist/contract/user-verification-schema.d.ts +6 -0
  25. package/dist/index.d.ts +17 -18
  26. package/dist/index.js +1153 -944
  27. package/dist/{build-pending-input.d.ts → span/build-pending-input.d.ts} +1 -1
  28. package/dist/{build-span-state.d.ts → span/build-span-state.d.ts} +1 -1
  29. package/dist/{pick-span-source.d.ts → span/pick-span-source.d.ts} +1 -1
  30. package/dist/types.d.ts +3 -3
  31. package/package.json +1 -1
  32. package/dist/forgettable-kinds.d.ts +0 -1
  33. package/dist/proposal-outcome-schema.d.ts +0 -37
  34. package/dist/rule-contract.d.ts +0 -124
  35. /package/dist/{action-proposal-schema.d.ts → contract/action-proposal-schema.d.ts} +0 -0
  36. /package/dist/{client-header-name.d.ts → contract/client-header-name.d.ts} +0 -0
  37. /package/dist/{forget-backup-schema.d.ts → contract/forget-backup-schema.d.ts} +0 -0
  38. /package/dist/{image-limits.d.ts → contract/image-limits.d.ts} +0 -0
  39. /package/dist/{image-not-found-error.d.ts → contract/image-not-found-error.d.ts} +0 -0
  40. /package/dist/{image-refused-error.d.ts → contract/image-refused-error.d.ts} +0 -0
  41. /package/dist/{input-miss-schema.d.ts → contract/input-miss-schema.d.ts} +0 -0
  42. /package/dist/{is-time-zone.d.ts → contract/is-time-zone.d.ts} +0 -0
  43. /package/dist/{known-contact-schema.d.ts → contract/known-contact-schema.d.ts} +0 -0
  44. /package/dist/{logged-input-schema.d.ts → contract/logged-input-schema.d.ts} +0 -0
  45. /package/dist/{memory-export-contract.d.ts → contract/memory-export-contract.d.ts} +0 -0
  46. /package/dist/{moment-contract.d.ts → contract/moment-contract.d.ts} +0 -0
  47. /package/dist/{render-session-cookie.d.ts → contract/render-session-cookie.d.ts} +0 -0
  48. /package/dist/{reused-id-errors.d.ts → contract/reused-id-errors.d.ts} +0 -0
  49. /package/dist/{session-cookie-name.d.ts → contract/session-cookie-name.d.ts} +0 -0
  50. /package/dist/{signed-in.d.ts → contract/signed-in.d.ts} +0 -0
  51. /package/dist/{task-schema.d.ts → contract/task-schema.d.ts} +0 -0
  52. /package/dist/{tool-call-schema.d.ts → contract/tool-call-schema.d.ts} +0 -0
  53. /package/dist/{turn-inputs-contract.d.ts → contract/turn-inputs-contract.d.ts} +0 -0
  54. /package/dist/{task-message-input-schema.d.ts → message/task-message-input-schema.d.ts} +0 -0
  55. /package/dist/{task-message-kind-schema.d.ts → message/task-message-kind-schema.d.ts} +0 -0
  56. /package/dist/{task-message-result-schema.d.ts → message/task-message-result-schema.d.ts} +0 -0
  57. /package/dist/{has-several-words.d.ts → span/has-several-words.d.ts} +0 -0
  58. /package/dist/{span-schema.d.ts → span/span-schema.d.ts} +0 -0
@@ -0,0 +1,42 @@
1
+ import { z } from 'zod';
2
+ export declare const creationOptionsSchema: z.ZodObject<{
3
+ rp: z.ZodObject<{
4
+ id: z.ZodString;
5
+ name: z.ZodString;
6
+ }, z.core.$strip>;
7
+ user: z.ZodObject<{
8
+ id: z.ZodString;
9
+ name: z.ZodString;
10
+ displayName: z.ZodString;
11
+ }, z.core.$strip>;
12
+ challenge: z.ZodString;
13
+ pubKeyCredParams: z.ZodArray<z.ZodObject<{
14
+ type: z.ZodLiteral<"public-key">;
15
+ alg: z.ZodInt;
16
+ }, z.core.$strip>>;
17
+ timeout: z.ZodInt;
18
+ excludeCredentials: z.ZodArray<z.ZodObject<{
19
+ id: z.ZodString;
20
+ type: z.ZodLiteral<"public-key">;
21
+ transports: z.ZodOptional<z.ZodArray<z.ZodString>>;
22
+ }, z.core.$strip>>;
23
+ authenticatorSelection: z.ZodObject<{
24
+ residentKey: z.ZodEnum<{
25
+ discouraged: "discouraged";
26
+ preferred: "preferred";
27
+ required: "required";
28
+ }>;
29
+ requireResidentKey: z.ZodBoolean;
30
+ userVerification: z.ZodEnum<{
31
+ discouraged: "discouraged";
32
+ preferred: "preferred";
33
+ required: "required";
34
+ }>;
35
+ }, z.core.$strip>;
36
+ attestation: z.ZodEnum<{
37
+ direct: "direct";
38
+ enterprise: "enterprise";
39
+ indirect: "indirect";
40
+ none: "none";
41
+ }>;
42
+ }, z.core.$strip>;
@@ -0,0 +1,6 @@
1
+ import { z } from 'zod';
2
+ export declare const credentialDescriptorSchema: z.ZodObject<{
3
+ id: z.ZodString;
4
+ type: z.ZodLiteral<"public-key">;
5
+ transports: z.ZodOptional<z.ZodArray<z.ZodString>>;
6
+ }, z.core.$strip>;
@@ -0,0 +1 @@
1
+ export declare const forgettableKinds: readonly ['action.outcome', 'action.queued', 'action.retry_scheduled', 'model.compaction_failed', 'model.reply', 'model.session_summarized', 'owner_message', 'passkey.registered', '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;
@@ -240,6 +286,34 @@ export declare const hostContract: {
240
286
  };
241
287
  }>, Record<never, never>>;
242
288
  };
289
+ passkeys: {
290
+ issueCode: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodObject<{
291
+ code: z.ZodString;
292
+ expiresAt: z.ZodDate;
293
+ }, z.core.$strip>, Record<never, never>, Record<never, never>>;
294
+ list: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodArray<z.ZodObject<{
295
+ passkeyID: z.ZodString;
296
+ label: z.ZodString;
297
+ synced: z.ZodBoolean;
298
+ origin: z.ZodString;
299
+ registeredBy: z.ZodString;
300
+ authorizedBy: z.ZodString;
301
+ registeredAt: z.ZodDate;
302
+ lastUsedAt: z.ZodNullable<z.ZodDate>;
303
+ revokedAt: z.ZodNullable<z.ZodDate>;
304
+ }, z.core.$strip>>, Record<never, never>, Record<never, never>>;
305
+ revoke: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
306
+ passkeyID: z.ZodString;
307
+ }, z.core.$strict>, z.ZodObject<{
308
+ passkeyID: z.ZodString;
309
+ revokedAt: z.ZodDate;
310
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
311
+ PASSKEY_NOT_FOUND: {
312
+ message: string;
313
+ status: number;
314
+ };
315
+ }>, Record<never, never>>;
316
+ };
243
317
  memory: {
244
318
  proposals: {
245
319
  list: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodArray<z.ZodObject<{
@@ -269,6 +343,7 @@ export declare const hostContract: {
269
343
  }>;
270
344
  reason: z.ZodEnum<{
271
345
  ambiguous_target: "ambiguous_target";
346
+ ask_rule: "ask_rule";
272
347
  checker_not_asserted: "checker_not_asserted";
273
348
  checker_unreachable: "checker_unreachable";
274
349
  checker_unsure: "checker_unsure";
@@ -288,7 +363,6 @@ export declare const hostContract: {
288
363
  actionHash: z.ZodString;
289
364
  origin: z.ZodEnum<{
290
365
  conversation: "conversation";
291
- memory_writer: "memory_writer";
292
366
  owner: "owner";
293
367
  task: "task";
294
368
  }>;
@@ -302,7 +376,6 @@ export declare const hostContract: {
302
376
  sources: z.ZodArray<z.ZodObject<{
303
377
  origin: z.ZodEnum<{
304
378
  conversation: "conversation";
305
- memory_writer: "memory_writer";
306
379
  owner: "owner";
307
380
  task: "task";
308
381
  }>;
@@ -569,7 +642,6 @@ export declare const hostContract: {
569
642
  origin: z.ZodEnum<{
570
643
  conversation: "conversation";
571
644
  lapse: "lapse";
572
- memory_writer: "memory_writer";
573
645
  owner: "owner";
574
646
  task: "task";
575
647
  }>;
@@ -965,202 +1037,6 @@ export declare const hostContract: {
965
1037
  };
966
1038
  }>, Record<never, never>>;
967
1039
  };
968
- consolidation: {
969
- read: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodNullable<z.ZodObject<{
970
- diffID: z.ZodString;
971
- model: z.ZodNullable<z.ZodString>;
972
- createdAt: z.ZodDate;
973
- changes: z.ZodArray<z.ZodObject<{
974
- changeID: z.ZodString;
975
- shortID: z.ZodString;
976
- kind: z.ZodEnum<{
977
- merge: "merge";
978
- retire: "retire";
979
- rewrite: "rewrite";
980
- }>;
981
- inputs: z.ZodArray<z.ZodObject<{
982
- itemID: z.ZodString;
983
- version: z.ZodInt;
984
- text: z.ZodNullable<z.ZodString>;
985
- isCurrent: z.ZodBoolean;
986
- }, z.core.$strip>>;
987
- text: z.ZodNullable<z.ZodString>;
988
- reason: z.ZodString;
989
- source: z.ZodEnum<{
990
- owner: "owner";
991
- owner_data: "owner_data";
992
- untrusted: "untrusted";
993
- }>;
994
- actionHash: z.ZodString;
995
- lapseAt: z.ZodDate;
996
- comment: z.ZodNullable<z.ZodObject<{
997
- text: z.ZodString;
998
- at: z.ZodDate;
999
- }, z.core.$strip>>;
1000
- }, z.core.$strip>>;
1001
- summary: z.ZodNullable<z.ZodString>;
1002
- }, z.core.$strip>>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
1003
- MEMORY_NOT_STARTED: {
1004
- message: string;
1005
- status: number;
1006
- };
1007
- NOT_FOUND: {
1008
- message: string;
1009
- status: number;
1010
- };
1011
- PROPOSAL_HASH: {
1012
- message: string;
1013
- status: number;
1014
- };
1015
- PROPOSAL_CLOSED: {
1016
- message: string;
1017
- status: number;
1018
- };
1019
- STALE_VERSION: {
1020
- message: string;
1021
- status: number;
1022
- };
1023
- WRONG_STATE: {
1024
- message: string;
1025
- status: number;
1026
- };
1027
- PINNED_CORE_FULL: {
1028
- message: string;
1029
- status: number;
1030
- };
1031
- REVISION_TARGET: {
1032
- message: string;
1033
- status: number;
1034
- };
1035
- RETIREMENT_EDIT: {
1036
- message: string;
1037
- status: number;
1038
- };
1039
- PIN_EDIT: {
1040
- message: string;
1041
- status: number;
1042
- };
1043
- SELF_NOTE_REFUSED: {
1044
- message: string;
1045
- status: number;
1046
- };
1047
- }>, Record<never, never>>;
1048
- approve: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
1049
- answers: z.ZodArray<z.ZodObject<{
1050
- changeID: z.ZodString;
1051
- actionHash: z.ZodString;
1052
- }, z.core.$strict>>;
1053
- }, z.core.$strict>, z.ZodObject<{
1054
- outcomes: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1055
- changeID: z.ZodString;
1056
- status: z.ZodLiteral<"applied">;
1057
- versions: z.ZodArray<z.ZodObject<{
1058
- itemID: z.ZodString;
1059
- version: z.ZodInt;
1060
- }, z.core.$strip>>;
1061
- }, z.core.$strip>, z.ZodObject<{
1062
- changeID: z.ZodString;
1063
- status: z.ZodLiteral<"refused">;
1064
- code: z.ZodString;
1065
- }, z.core.$strip>], "status">>;
1066
- }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
1067
- MEMORY_NOT_STARTED: {
1068
- message: string;
1069
- status: number;
1070
- };
1071
- NOT_FOUND: {
1072
- message: string;
1073
- status: number;
1074
- };
1075
- PROPOSAL_HASH: {
1076
- message: string;
1077
- status: number;
1078
- };
1079
- PROPOSAL_CLOSED: {
1080
- message: string;
1081
- status: number;
1082
- };
1083
- STALE_VERSION: {
1084
- message: string;
1085
- status: number;
1086
- };
1087
- WRONG_STATE: {
1088
- message: string;
1089
- status: number;
1090
- };
1091
- PINNED_CORE_FULL: {
1092
- message: string;
1093
- status: number;
1094
- };
1095
- REVISION_TARGET: {
1096
- message: string;
1097
- status: number;
1098
- };
1099
- RETIREMENT_EDIT: {
1100
- message: string;
1101
- status: number;
1102
- };
1103
- PIN_EDIT: {
1104
- message: string;
1105
- status: number;
1106
- };
1107
- SELF_NOTE_REFUSED: {
1108
- message: string;
1109
- status: number;
1110
- };
1111
- }>, Record<never, never>>;
1112
- reject: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
1113
- changeID: z.ZodString;
1114
- actionHash: z.ZodString;
1115
- }, z.core.$strict>, z.ZodObject<{
1116
- changeID: z.ZodString;
1117
- }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
1118
- MEMORY_NOT_STARTED: {
1119
- message: string;
1120
- status: number;
1121
- };
1122
- NOT_FOUND: {
1123
- message: string;
1124
- status: number;
1125
- };
1126
- PROPOSAL_HASH: {
1127
- message: string;
1128
- status: number;
1129
- };
1130
- PROPOSAL_CLOSED: {
1131
- message: string;
1132
- status: number;
1133
- };
1134
- STALE_VERSION: {
1135
- message: string;
1136
- status: number;
1137
- };
1138
- WRONG_STATE: {
1139
- message: string;
1140
- status: number;
1141
- };
1142
- PINNED_CORE_FULL: {
1143
- message: string;
1144
- status: number;
1145
- };
1146
- REVISION_TARGET: {
1147
- message: string;
1148
- status: number;
1149
- };
1150
- RETIREMENT_EDIT: {
1151
- message: string;
1152
- status: number;
1153
- };
1154
- PIN_EDIT: {
1155
- message: string;
1156
- status: number;
1157
- };
1158
- SELF_NOTE_REFUSED: {
1159
- message: string;
1160
- status: number;
1161
- };
1162
- }>, Record<never, never>>;
1163
- };
1164
1040
  };
1165
1041
  skills: {
1166
1042
  proposals: {
@@ -0,0 +1,29 @@
1
+ import { z } from 'zod';
2
+ export declare const hostPasskeyContract: {
3
+ issueCode: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodObject<{
4
+ code: z.ZodString;
5
+ expiresAt: z.ZodDate;
6
+ }, z.core.$strip>, Record<never, never>, Record<never, never>>;
7
+ list: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodArray<z.ZodObject<{
8
+ passkeyID: z.ZodString;
9
+ label: z.ZodString;
10
+ synced: z.ZodBoolean;
11
+ origin: z.ZodString;
12
+ registeredBy: z.ZodString;
13
+ authorizedBy: z.ZodString;
14
+ registeredAt: z.ZodDate;
15
+ lastUsedAt: z.ZodNullable<z.ZodDate>;
16
+ revokedAt: z.ZodNullable<z.ZodDate>;
17
+ }, z.core.$strip>>, Record<never, never>, Record<never, never>>;
18
+ revoke: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
19
+ passkeyID: z.ZodString;
20
+ }, z.core.$strict>, z.ZodObject<{
21
+ passkeyID: z.ZodString;
22
+ revokedAt: z.ZodDate;
23
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
24
+ PASSKEY_NOT_FOUND: {
25
+ message: string;
26
+ status: number;
27
+ };
28
+ }>, Record<never, never>>;
29
+ };