@intentic/sandbox-contract 1.432.0 → 1.433.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 (232) hide show
  1. package/README.md +15 -0
  2. package/dist/contracts/agent.contract.d.ts +252 -72
  3. package/dist/contracts/agent.contract.d.ts.map +1 -1
  4. package/dist/contracts/agents.contract.d.ts +67 -0
  5. package/dist/contracts/agents.contract.d.ts.map +1 -1
  6. package/dist/contracts/approvals.contract.d.ts +35 -0
  7. package/dist/contracts/approvals.contract.d.ts.map +1 -1
  8. package/dist/contracts/approvals.contract.js +13 -3
  9. package/dist/contracts/approvals.contract.js.map +1 -1
  10. package/dist/contracts/automations.contract.d.ts +1 -0
  11. package/dist/contracts/automations.contract.d.ts.map +1 -1
  12. package/dist/contracts/capabilities.contract.d.ts +3 -0
  13. package/dist/contracts/capabilities.contract.d.ts.map +1 -1
  14. package/dist/contracts/extensions.contract.d.ts +4 -0
  15. package/dist/contracts/extensions.contract.d.ts.map +1 -1
  16. package/dist/contracts/needs.contract.d.ts +198 -0
  17. package/dist/contracts/needs.contract.d.ts.map +1 -1
  18. package/dist/contracts/runner.contract.d.ts +156 -36
  19. package/dist/contracts/runner.contract.d.ts.map +1 -1
  20. package/dist/contracts/seal.contract.d.ts +5 -0
  21. package/dist/contracts/seal.contract.d.ts.map +1 -1
  22. package/dist/contracts/sessions.contract.d.ts +22 -0
  23. package/dist/contracts/sessions.contract.d.ts.map +1 -1
  24. package/dist/contracts/settings.contract.d.ts +16 -0
  25. package/dist/contracts/settings.contract.d.ts.map +1 -1
  26. package/dist/contracts/stack-grants.contract.d.ts +22 -0
  27. package/dist/contracts/stack-grants.contract.d.ts.map +1 -1
  28. package/dist/contracts/system.contract.d.ts +7 -4
  29. package/dist/contracts/system.contract.d.ts.map +1 -1
  30. package/dist/events/agent-events.d.ts +88 -0
  31. package/dist/events/agent-events.d.ts.map +1 -1
  32. package/dist/events/agent-transcript.d.ts +22 -0
  33. package/dist/events/agent-transcript.d.ts.map +1 -1
  34. package/dist/events/system-events.d.ts +4 -0
  35. package/dist/events/system-events.d.ts.map +1 -1
  36. package/dist/events/transcript.d.ts +110 -0
  37. package/dist/events/transcript.d.ts.map +1 -1
  38. package/dist/ids/conversation-ids.d.ts.map +1 -1
  39. package/dist/ids/conversation-ids.js.map +1 -1
  40. package/dist/protocol/raw/extension-protocol.d.ts +116 -0
  41. package/dist/protocol/raw/extension-protocol.d.ts.map +1 -1
  42. package/dist/protocol/raw/extension-protocol.js +17 -1
  43. package/dist/protocol/raw/extension-protocol.js.map +1 -1
  44. package/dist/protocol/raw/raw-json-routes.d.ts +2974 -0
  45. package/dist/protocol/raw/raw-json-routes.d.ts.map +1 -1
  46. package/dist/protocol/raw/raw-json-routes.js +39 -0
  47. package/dist/protocol/raw/raw-json-routes.js.map +1 -1
  48. package/dist/protocol/raw/raw-routes.d.ts +179 -0
  49. package/dist/protocol/raw/raw-routes.d.ts.map +1 -1
  50. package/dist/protocol/raw/raw-routes.js +41 -0
  51. package/dist/protocol/raw/raw-routes.js.map +1 -1
  52. package/dist/protocol/s2s/address.d.ts +53 -0
  53. package/dist/protocol/s2s/address.d.ts.map +1 -0
  54. package/dist/protocol/s2s/address.js +111 -0
  55. package/dist/protocol/s2s/address.js.map +1 -0
  56. package/dist/protocol/s2s/attestation.d.ts +41 -0
  57. package/dist/protocol/s2s/attestation.d.ts.map +1 -0
  58. package/dist/protocol/s2s/attestation.js +96 -0
  59. package/dist/protocol/s2s/attestation.js.map +1 -0
  60. package/dist/protocol/s2s/canonical.d.ts +10 -0
  61. package/dist/protocol/s2s/canonical.d.ts.map +1 -0
  62. package/dist/protocol/s2s/canonical.js +94 -0
  63. package/dist/protocol/s2s/canonical.js.map +1 -0
  64. package/dist/protocol/s2s/envelope.d.ts +40 -0
  65. package/dist/protocol/s2s/envelope.d.ts.map +1 -0
  66. package/dist/protocol/s2s/envelope.js +116 -0
  67. package/dist/protocol/s2s/envelope.js.map +1 -0
  68. package/dist/protocol/s2s/extension-sign.d.ts +21 -0
  69. package/dist/protocol/s2s/extension-sign.d.ts.map +1 -0
  70. package/dist/protocol/s2s/extension-sign.js +41 -0
  71. package/dist/protocol/s2s/extension-sign.js.map +1 -0
  72. package/dist/protocol/s2s/identity-doc.d.ts +50 -0
  73. package/dist/protocol/s2s/identity-doc.d.ts.map +1 -0
  74. package/dist/protocol/s2s/identity-doc.js +89 -0
  75. package/dist/protocol/s2s/identity-doc.js.map +1 -0
  76. package/dist/protocol/s2s/index.d.ts +12 -0
  77. package/dist/protocol/s2s/index.d.ts.map +1 -0
  78. package/dist/protocol/s2s/index.js +12 -0
  79. package/dist/protocol/s2s/index.js.map +1 -0
  80. package/dist/protocol/s2s/kem.d.ts +15 -0
  81. package/dist/protocol/s2s/kem.d.ts.map +1 -0
  82. package/dist/protocol/s2s/kem.js +34 -0
  83. package/dist/protocol/s2s/kem.js.map +1 -0
  84. package/dist/protocol/s2s/keys.d.ts +34 -0
  85. package/dist/protocol/s2s/keys.d.ts.map +1 -0
  86. package/dist/protocol/s2s/keys.js +81 -0
  87. package/dist/protocol/s2s/keys.js.map +1 -0
  88. package/dist/protocol/s2s/passkey-cosign.d.ts +44 -0
  89. package/dist/protocol/s2s/passkey-cosign.d.ts.map +1 -0
  90. package/dist/protocol/s2s/passkey-cosign.js +139 -0
  91. package/dist/protocol/s2s/passkey-cosign.js.map +1 -0
  92. package/dist/protocol/s2s/session.d.ts +61 -0
  93. package/dist/protocol/s2s/session.d.ts.map +1 -0
  94. package/dist/protocol/s2s/session.js +98 -0
  95. package/dist/protocol/s2s/session.js.map +1 -0
  96. package/dist/protocol/s2s/sign.d.ts +12 -0
  97. package/dist/protocol/s2s/sign.d.ts.map +1 -0
  98. package/dist/protocol/s2s/sign.js +33 -0
  99. package/dist/protocol/s2s/sign.js.map +1 -0
  100. package/dist/schemas/agents-list.d.ts +2 -0
  101. package/dist/schemas/agents-list.d.ts.map +1 -1
  102. package/dist/schemas/agents.d.ts +4 -0
  103. package/dist/schemas/agents.d.ts.map +1 -1
  104. package/dist/schemas/approvals.d.ts +100 -0
  105. package/dist/schemas/approvals.d.ts.map +1 -1
  106. package/dist/schemas/approvals.js +21 -0
  107. package/dist/schemas/approvals.js.map +1 -1
  108. package/dist/schemas/automations.d.ts +2 -0
  109. package/dist/schemas/automations.d.ts.map +1 -1
  110. package/dist/schemas/automations.js +1 -1
  111. package/dist/schemas/automations.js.map +1 -1
  112. package/dist/schemas/capabilities.d.ts +1 -0
  113. package/dist/schemas/capabilities.d.ts.map +1 -1
  114. package/dist/schemas/command-admission.d.ts +6 -0
  115. package/dist/schemas/command-admission.d.ts.map +1 -1
  116. package/dist/schemas/command-admission.js +2 -1
  117. package/dist/schemas/command-admission.js.map +1 -1
  118. package/dist/schemas/contact-need.d.ts +50 -0
  119. package/dist/schemas/contact-need.d.ts.map +1 -0
  120. package/dist/schemas/contact-need.js +19 -0
  121. package/dist/schemas/contact-need.js.map +1 -0
  122. package/dist/schemas/contacts-settings.d.ts +5 -0
  123. package/dist/schemas/contacts-settings.d.ts.map +1 -0
  124. package/dist/schemas/contacts-settings.js +11 -0
  125. package/dist/schemas/contacts-settings.js.map +1 -0
  126. package/dist/schemas/extension-updates.d.ts +8 -0
  127. package/dist/schemas/extension-updates.d.ts.map +1 -1
  128. package/dist/schemas/issues.d.ts +2 -0
  129. package/dist/schemas/issues.d.ts.map +1 -1
  130. package/dist/schemas/issues.js +1 -0
  131. package/dist/schemas/issues.js.map +1 -1
  132. package/dist/schemas/links.d.ts +8 -0
  133. package/dist/schemas/links.d.ts.map +1 -1
  134. package/dist/schemas/links.js +4 -0
  135. package/dist/schemas/links.js.map +1 -1
  136. package/dist/schemas/need-kinds.d.ts +2 -1
  137. package/dist/schemas/need-kinds.d.ts.map +1 -1
  138. package/dist/schemas/need-kinds.js +2 -2
  139. package/dist/schemas/need-kinds.js.map +1 -1
  140. package/dist/schemas/needs.d.ts +156 -13
  141. package/dist/schemas/needs.d.ts.map +1 -1
  142. package/dist/schemas/needs.js +5 -12
  143. package/dist/schemas/needs.js.map +1 -1
  144. package/dist/schemas/redirect-need.d.ts +15 -0
  145. package/dist/schemas/redirect-need.d.ts.map +1 -0
  146. package/dist/schemas/redirect-need.js +14 -0
  147. package/dist/schemas/redirect-need.js.map +1 -0
  148. package/dist/schemas/s2s-identity.d.ts +521 -0
  149. package/dist/schemas/s2s-identity.d.ts.map +1 -0
  150. package/dist/schemas/s2s-identity.js +208 -0
  151. package/dist/schemas/s2s-identity.js.map +1 -0
  152. package/dist/schemas/s2s-views.d.ts +2127 -0
  153. package/dist/schemas/s2s-views.d.ts.map +1 -0
  154. package/dist/schemas/s2s-views.js +217 -0
  155. package/dist/schemas/s2s-views.js.map +1 -0
  156. package/dist/schemas/s2s-wire.d.ts +1616 -0
  157. package/dist/schemas/s2s-wire.d.ts.map +1 -0
  158. package/dist/schemas/s2s-wire.js +276 -0
  159. package/dist/schemas/s2s-wire.js.map +1 -0
  160. package/dist/schemas/s2s.d.ts +5 -0
  161. package/dist/schemas/s2s.d.ts.map +1 -0
  162. package/dist/schemas/s2s.js +5 -0
  163. package/dist/schemas/s2s.js.map +1 -0
  164. package/dist/schemas/settings.d.ts +16 -0
  165. package/dist/schemas/settings.d.ts.map +1 -1
  166. package/dist/schemas/settings.js +2 -0
  167. package/dist/schemas/settings.js.map +1 -1
  168. package/dist/schemas/terminal.d.ts +2 -0
  169. package/dist/schemas/terminal.d.ts.map +1 -1
  170. package/dist/schemas/terminal.js +4 -0
  171. package/dist/schemas/terminal.js.map +1 -1
  172. package/dist/schemas/vpn.d.ts +4 -0
  173. package/dist/schemas/vpn.d.ts.map +1 -1
  174. package/dist/schemas/vpn.js +9 -0
  175. package/dist/schemas/vpn.js.map +1 -1
  176. package/dist/state/auth-state.d.ts.map +1 -1
  177. package/dist/state/auth-state.js +6 -0
  178. package/dist/state/auth-state.js.map +1 -1
  179. package/dist/state/definition.d.ts +18 -0
  180. package/dist/state/definition.d.ts.map +1 -1
  181. package/package.json +20 -5
  182. package/src/contracts/approvals.contract.ts +24 -3
  183. package/src/ids/conversation-ids.test.ts +22 -3
  184. package/src/ids/conversation-ids.ts +5 -7
  185. package/src/protocol/ingress-contract.fixture.json +6 -1
  186. package/src/protocol/raw/extension-protocol.ts +45 -1
  187. package/src/protocol/raw/raw-json-routes.ts +85 -0
  188. package/src/protocol/raw/raw-routes.ts +66 -3
  189. package/src/protocol/s2s/address.test.ts +157 -0
  190. package/src/protocol/s2s/address.ts +193 -0
  191. package/src/protocol/s2s/attestation.test.ts +262 -0
  192. package/src/protocol/s2s/attestation.ts +173 -0
  193. package/src/protocol/s2s/canonical.test.ts +70 -0
  194. package/src/protocol/s2s/canonical.ts +119 -0
  195. package/src/protocol/s2s/envelope.test.ts +162 -0
  196. package/src/protocol/s2s/envelope.ts +194 -0
  197. package/src/protocol/s2s/extension-sign.test.ts +117 -0
  198. package/src/protocol/s2s/extension-sign.ts +76 -0
  199. package/src/protocol/s2s/identity-doc.test.ts +187 -0
  200. package/src/protocol/s2s/identity-doc.ts +169 -0
  201. package/src/protocol/s2s/index.ts +15 -0
  202. package/src/protocol/s2s/kem.ts +62 -0
  203. package/src/protocol/s2s/keys.test.ts +76 -0
  204. package/src/protocol/s2s/keys.ts +155 -0
  205. package/src/protocol/s2s/passkey-cosign.test.ts +98 -0
  206. package/src/protocol/s2s/passkey-cosign.testing.ts +86 -0
  207. package/src/protocol/s2s/passkey-cosign.ts +192 -0
  208. package/src/protocol/s2s/s2s.testing.ts +22 -0
  209. package/src/protocol/s2s/session.test.ts +133 -0
  210. package/src/protocol/s2s/session.ts +179 -0
  211. package/src/protocol/s2s/sign.test.ts +66 -0
  212. package/src/protocol/s2s/sign.ts +53 -0
  213. package/src/schemas/approvals.ts +41 -0
  214. package/src/schemas/automations.ts +4 -3
  215. package/src/schemas/command-admission.ts +4 -1
  216. package/src/schemas/contact-need.ts +26 -0
  217. package/src/schemas/contacts-settings.ts +16 -0
  218. package/src/schemas/issues.ts +1 -0
  219. package/src/schemas/links.ts +4 -0
  220. package/src/schemas/need-kinds.ts +2 -2
  221. package/src/schemas/needs.ts +5 -18
  222. package/src/schemas/redirect-need.ts +19 -0
  223. package/src/schemas/s2s-identity.ts +329 -0
  224. package/src/schemas/s2s-views.ts +326 -0
  225. package/src/schemas/s2s-wire.ts +401 -0
  226. package/src/schemas/s2s.test.ts +175 -0
  227. package/src/schemas/s2s.ts +9 -0
  228. package/src/schemas/settings.ts +2 -0
  229. package/src/schemas/terminal.ts +6 -0
  230. package/src/schemas/version-seam.test.ts +9 -0
  231. package/src/schemas/vpn.ts +13 -0
  232. package/src/state/auth-state.ts +10 -0
@@ -0,0 +1,1616 @@
1
+ import { z } from "zod";
2
+ export declare const S2S_BODY_MAX_BYTES: number;
3
+ export declare const S2S_BODY_MAX_CHARS: number;
4
+ export declare const S2S_ENVELOPE_MAX_BYTES: number;
5
+ export declare const S2S_MESSAGE_FILES_MAX = 20;
6
+ export declare const S2S_MESSAGE_BYTES_MAX: number;
7
+ export declare const S2S_MESSAGE_TEXT_MAX = 60000;
8
+ export declare const S2S_SUBJECT_MAX = 200;
9
+ export declare const S2S_SEEN_IDS_MS: number;
10
+ export declare const S2S_ENVELOPE_MAX_AGE_MS: number;
11
+ export declare const S2S_ENVELOPE_MAX_AHEAD_MS: number;
12
+ export declare const S2S_STRANGER_REQUESTS_PER_ADDRESS_HOUR = 3;
13
+ export declare const S2S_STRANGER_REQUESTS_PER_HOUR = 30;
14
+ export declare const S2S_PER_MINUTE: {
15
+ readonly message: 60;
16
+ readonly report: 30;
17
+ readonly task: 10;
18
+ };
19
+ export declare const S2S_OUTBOX_KEEP_MS: number;
20
+ export declare const S2S_OUTBOX_BACKOFF_BASE_MS = 30000;
21
+ export declare const S2S_OUTBOX_BACKOFF_MAX_MS: number;
22
+ export declare const S2S_WAKE_QUERY = "wake";
23
+ export declare const S2S_SESSION_HEADER = "x-intentic-s2s-session";
24
+ export declare const S2S_SESSION_TTL_MS: number;
25
+ export declare const S2S_CALL_SKEW_MS: number;
26
+ export declare const S2sEnvelopeIdSchema: z.ZodString;
27
+ export declare const S2S_PAYLOAD_KINDS: readonly ["contact.request", "contact.accept", "contact.update", "contact.remove", "identity.rotated", "message", "report", "task.request", "task.update", "task.message", "task.answer", "task.stop", "receipt", "attestation.request", "attestation.issued"];
28
+ export declare const S2sPayloadKindSchema: z.ZodEnum<{
29
+ "attestation.issued": "attestation.issued";
30
+ "attestation.request": "attestation.request";
31
+ "contact.accept": "contact.accept";
32
+ "contact.remove": "contact.remove";
33
+ "contact.request": "contact.request";
34
+ "contact.update": "contact.update";
35
+ "identity.rotated": "identity.rotated";
36
+ message: "message";
37
+ receipt: "receipt";
38
+ report: "report";
39
+ "task.answer": "task.answer";
40
+ "task.message": "task.message";
41
+ "task.request": "task.request";
42
+ "task.stop": "task.stop";
43
+ "task.update": "task.update";
44
+ }>;
45
+ export type S2sPayloadKind = z.infer<typeof S2sPayloadKindSchema>;
46
+ export declare const isS2sPayloadKind: (kind: string) => kind is S2sPayloadKind;
47
+ declare const headerFields: {
48
+ v: z.ZodLiteral<1>;
49
+ id: z.ZodString;
50
+ from: z.ZodString;
51
+ fromFp: z.ZodString;
52
+ to: z.ZodString;
53
+ toFp: z.ZodString;
54
+ kind: z.ZodString;
55
+ thread: z.ZodOptional<z.ZodString>;
56
+ replyTo: z.ZodOptional<z.ZodString>;
57
+ as: z.ZodOptional<z.ZodString>;
58
+ hops: z.ZodNumber;
59
+ sentAt: z.ZodNumber;
60
+ };
61
+ export declare const S2sEnvelopeHeaderSchema: z.ZodObject<{
62
+ v: z.ZodLiteral<1>;
63
+ id: z.ZodString;
64
+ from: z.ZodString;
65
+ fromFp: z.ZodString;
66
+ to: z.ZodString;
67
+ toFp: z.ZodString;
68
+ kind: z.ZodString;
69
+ thread: z.ZodOptional<z.ZodString>;
70
+ replyTo: z.ZodOptional<z.ZodString>;
71
+ as: z.ZodOptional<z.ZodString>;
72
+ hops: z.ZodNumber;
73
+ sentAt: z.ZodNumber;
74
+ }, z.core.$loose>;
75
+ export type S2sEnvelopeHeader = z.infer<z.ZodObject<typeof headerFields>>;
76
+ export declare const S2sEncSchema: z.ZodObject<{
77
+ x25519: z.ZodString;
78
+ mlkem768: z.ZodString;
79
+ nonce: z.ZodString;
80
+ }, z.core.$strip>;
81
+ export type S2sEnc = z.infer<typeof S2sEncSchema>;
82
+ declare const envelopeFields: {
83
+ v: z.ZodLiteral<1>;
84
+ id: z.ZodString;
85
+ from: z.ZodString;
86
+ fromFp: z.ZodString;
87
+ to: z.ZodString;
88
+ toFp: z.ZodString;
89
+ kind: z.ZodString;
90
+ thread: z.ZodOptional<z.ZodString>;
91
+ replyTo: z.ZodOptional<z.ZodString>;
92
+ as: z.ZodOptional<z.ZodString>;
93
+ hops: z.ZodNumber;
94
+ sentAt: z.ZodNumber;
95
+ enc: z.ZodObject<{
96
+ x25519: z.ZodString;
97
+ mlkem768: z.ZodString;
98
+ nonce: z.ZodString;
99
+ }, z.core.$strip>;
100
+ body: z.ZodString;
101
+ sig: z.ZodObject<{
102
+ ed25519: z.ZodString;
103
+ mldsa65: z.ZodString;
104
+ }, z.core.$strip>;
105
+ };
106
+ export declare const S2sEnvelopeSchema: z.ZodObject<{
107
+ v: z.ZodLiteral<1>;
108
+ id: z.ZodString;
109
+ from: z.ZodString;
110
+ fromFp: z.ZodString;
111
+ to: z.ZodString;
112
+ toFp: z.ZodString;
113
+ kind: z.ZodString;
114
+ thread: z.ZodOptional<z.ZodString>;
115
+ replyTo: z.ZodOptional<z.ZodString>;
116
+ as: z.ZodOptional<z.ZodString>;
117
+ hops: z.ZodNumber;
118
+ sentAt: z.ZodNumber;
119
+ enc: z.ZodObject<{
120
+ x25519: z.ZodString;
121
+ mlkem768: z.ZodString;
122
+ nonce: z.ZodString;
123
+ }, z.core.$strip>;
124
+ body: z.ZodString;
125
+ sig: z.ZodObject<{
126
+ ed25519: z.ZodString;
127
+ mldsa65: z.ZodString;
128
+ }, z.core.$strip>;
129
+ }, z.core.$loose>;
130
+ export type S2sEnvelope = z.infer<z.ZodObject<typeof envelopeFields>>;
131
+ export declare const S2sAttachmentSchema: z.ZodObject<{
132
+ name: z.ZodString;
133
+ data: z.ZodString;
134
+ }, z.core.$strip>;
135
+ export type S2sAttachment = z.infer<typeof S2sAttachmentSchema>;
136
+ export declare const S2sContactRequestSchema: z.ZodObject<{
137
+ kind: z.ZodLiteral<"contact.request">;
138
+ document: z.ZodObject<{
139
+ v: z.ZodLiteral<1>;
140
+ sandbox: z.ZodString;
141
+ name: z.ZodString;
142
+ host: z.ZodString;
143
+ domains: z.ZodArray<z.ZodString>;
144
+ keys: z.ZodObject<{
145
+ ed25519: z.ZodString;
146
+ mldsa65: z.ZodString;
147
+ x25519: z.ZodString;
148
+ mlkem768: z.ZodString;
149
+ }, z.core.$strip>;
150
+ fingerprint: z.ZodString;
151
+ recovery: z.ZodOptional<z.ZodString>;
152
+ protocols: z.ZodArray<z.ZodString>;
153
+ issuedAt: z.ZodNumber;
154
+ prev: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
155
+ by: z.ZodLiteral<"key">;
156
+ fingerprint: z.ZodString;
157
+ keys: z.ZodObject<{
158
+ ed25519: z.ZodString;
159
+ mldsa65: z.ZodString;
160
+ x25519: z.ZodString;
161
+ mlkem768: z.ZodString;
162
+ }, z.core.$strip>;
163
+ at: z.ZodNumber;
164
+ sig: z.ZodObject<{
165
+ ed25519: z.ZodString;
166
+ mldsa65: z.ZodString;
167
+ }, z.core.$strip>;
168
+ }, z.core.$strip>, z.ZodObject<{
169
+ by: z.ZodLiteral<"recovery">;
170
+ fingerprint: z.ZodString;
171
+ keys: z.ZodObject<{
172
+ ed25519: z.ZodString;
173
+ mldsa65: z.ZodString;
174
+ }, z.core.$strip>;
175
+ at: z.ZodNumber;
176
+ sig: z.ZodObject<{
177
+ ed25519: z.ZodString;
178
+ mldsa65: z.ZodString;
179
+ }, z.core.$strip>;
180
+ }, z.core.$strip>], "by">>;
181
+ attestations: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
182
+ issuedAt: z.ZodNumber;
183
+ validUntil: z.ZodNumber;
184
+ v: z.ZodLiteral<1>;
185
+ type: z.ZodLiteral<"sandbox-vouch">;
186
+ issuer: z.ZodObject<{
187
+ sandbox: z.ZodString;
188
+ address: z.ZodString;
189
+ fingerprint: z.ZodString;
190
+ keys: z.ZodObject<{
191
+ ed25519: z.ZodString;
192
+ mldsa65: z.ZodString;
193
+ x25519: z.ZodString;
194
+ mlkem768: z.ZodString;
195
+ }, z.core.$loose>;
196
+ name: z.ZodOptional<z.ZodString>;
197
+ }, z.core.$loose>;
198
+ subject: z.ZodObject<{
199
+ sandbox: z.ZodString;
200
+ address: z.ZodString;
201
+ fingerprint: z.ZodString;
202
+ }, z.core.$loose>;
203
+ claims: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
204
+ sig: z.ZodObject<{
205
+ ed25519: z.ZodString;
206
+ mldsa65: z.ZodString;
207
+ }, z.core.$loose>;
208
+ }, z.core.$loose>, z.ZodObject<{
209
+ issuedAt: z.ZodNumber;
210
+ validUntil: z.ZodNumber;
211
+ v: z.ZodLiteral<1>;
212
+ type: z.ZodLiteral<"eudi-pid">;
213
+ format: z.ZodEnum<{
214
+ "dc+sd-jwt": "dc+sd-jwt";
215
+ mso_mdoc: "mso_mdoc";
216
+ }>;
217
+ presentation: z.ZodString;
218
+ subject: z.ZodObject<{
219
+ sandbox: z.ZodString;
220
+ address: z.ZodString;
221
+ fingerprint: z.ZodString;
222
+ }, z.core.$loose>;
223
+ }, z.core.$loose>, z.ZodObject<{
224
+ type: z.ZodString;
225
+ }, z.core.$loose>]>>>;
226
+ sig: z.ZodObject<{
227
+ ed25519: z.ZodString;
228
+ mldsa65: z.ZodString;
229
+ }, z.core.$strip>;
230
+ }, z.core.$loose>;
231
+ note: z.ZodOptional<z.ZodString>;
232
+ grants: z.ZodObject<{
233
+ message: z.ZodDefault<z.ZodBoolean>;
234
+ report: z.ZodDefault<z.ZodBoolean>;
235
+ task: z.ZodOptional<z.ZodObject<{
236
+ actsAs: z.ZodOptional<z.ZodString>;
237
+ runAs: z.ZodOptional<z.ZodString>;
238
+ approve: z.ZodDefault<z.ZodBoolean>;
239
+ turnsPerHour: z.ZodDefault<z.ZodNumber>;
240
+ }, z.core.$strip>>;
241
+ records: z.ZodDefault<z.ZodBoolean>;
242
+ operate: z.ZodDefault<z.ZodBoolean>;
243
+ wake: z.ZodDefault<z.ZodBoolean>;
244
+ }, z.core.$strip>;
245
+ scope: z.ZodDiscriminatedUnion<[z.ZodObject<{
246
+ kind: z.ZodLiteral<"sandbox">;
247
+ }, z.core.$strip>, z.ZodObject<{
248
+ kind: z.ZodLiteral<"person">;
249
+ person: z.ZodString;
250
+ }, z.core.$strip>], "kind">;
251
+ wake: z.ZodOptional<z.ZodString>;
252
+ }, z.core.$strip>;
253
+ export declare const S2sContactAcceptSchema: z.ZodObject<{
254
+ kind: z.ZodLiteral<"contact.accept">;
255
+ document: z.ZodObject<{
256
+ v: z.ZodLiteral<1>;
257
+ sandbox: z.ZodString;
258
+ name: z.ZodString;
259
+ host: z.ZodString;
260
+ domains: z.ZodArray<z.ZodString>;
261
+ keys: z.ZodObject<{
262
+ ed25519: z.ZodString;
263
+ mldsa65: z.ZodString;
264
+ x25519: z.ZodString;
265
+ mlkem768: z.ZodString;
266
+ }, z.core.$strip>;
267
+ fingerprint: z.ZodString;
268
+ recovery: z.ZodOptional<z.ZodString>;
269
+ protocols: z.ZodArray<z.ZodString>;
270
+ issuedAt: z.ZodNumber;
271
+ prev: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
272
+ by: z.ZodLiteral<"key">;
273
+ fingerprint: z.ZodString;
274
+ keys: z.ZodObject<{
275
+ ed25519: z.ZodString;
276
+ mldsa65: z.ZodString;
277
+ x25519: z.ZodString;
278
+ mlkem768: z.ZodString;
279
+ }, z.core.$strip>;
280
+ at: z.ZodNumber;
281
+ sig: z.ZodObject<{
282
+ ed25519: z.ZodString;
283
+ mldsa65: z.ZodString;
284
+ }, z.core.$strip>;
285
+ }, z.core.$strip>, z.ZodObject<{
286
+ by: z.ZodLiteral<"recovery">;
287
+ fingerprint: z.ZodString;
288
+ keys: z.ZodObject<{
289
+ ed25519: z.ZodString;
290
+ mldsa65: z.ZodString;
291
+ }, z.core.$strip>;
292
+ at: z.ZodNumber;
293
+ sig: z.ZodObject<{
294
+ ed25519: z.ZodString;
295
+ mldsa65: z.ZodString;
296
+ }, z.core.$strip>;
297
+ }, z.core.$strip>], "by">>;
298
+ attestations: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
299
+ issuedAt: z.ZodNumber;
300
+ validUntil: z.ZodNumber;
301
+ v: z.ZodLiteral<1>;
302
+ type: z.ZodLiteral<"sandbox-vouch">;
303
+ issuer: z.ZodObject<{
304
+ sandbox: z.ZodString;
305
+ address: z.ZodString;
306
+ fingerprint: z.ZodString;
307
+ keys: z.ZodObject<{
308
+ ed25519: z.ZodString;
309
+ mldsa65: z.ZodString;
310
+ x25519: z.ZodString;
311
+ mlkem768: z.ZodString;
312
+ }, z.core.$loose>;
313
+ name: z.ZodOptional<z.ZodString>;
314
+ }, z.core.$loose>;
315
+ subject: z.ZodObject<{
316
+ sandbox: z.ZodString;
317
+ address: z.ZodString;
318
+ fingerprint: z.ZodString;
319
+ }, z.core.$loose>;
320
+ claims: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
321
+ sig: z.ZodObject<{
322
+ ed25519: z.ZodString;
323
+ mldsa65: z.ZodString;
324
+ }, z.core.$loose>;
325
+ }, z.core.$loose>, z.ZodObject<{
326
+ issuedAt: z.ZodNumber;
327
+ validUntil: z.ZodNumber;
328
+ v: z.ZodLiteral<1>;
329
+ type: z.ZodLiteral<"eudi-pid">;
330
+ format: z.ZodEnum<{
331
+ "dc+sd-jwt": "dc+sd-jwt";
332
+ mso_mdoc: "mso_mdoc";
333
+ }>;
334
+ presentation: z.ZodString;
335
+ subject: z.ZodObject<{
336
+ sandbox: z.ZodString;
337
+ address: z.ZodString;
338
+ fingerprint: z.ZodString;
339
+ }, z.core.$loose>;
340
+ }, z.core.$loose>, z.ZodObject<{
341
+ type: z.ZodString;
342
+ }, z.core.$loose>]>>>;
343
+ sig: z.ZodObject<{
344
+ ed25519: z.ZodString;
345
+ mldsa65: z.ZodString;
346
+ }, z.core.$strip>;
347
+ }, z.core.$loose>;
348
+ grants: z.ZodObject<{
349
+ message: z.ZodDefault<z.ZodBoolean>;
350
+ report: z.ZodDefault<z.ZodBoolean>;
351
+ task: z.ZodOptional<z.ZodObject<{
352
+ actsAs: z.ZodOptional<z.ZodString>;
353
+ runAs: z.ZodOptional<z.ZodString>;
354
+ approve: z.ZodDefault<z.ZodBoolean>;
355
+ turnsPerHour: z.ZodDefault<z.ZodNumber>;
356
+ }, z.core.$strip>>;
357
+ records: z.ZodDefault<z.ZodBoolean>;
358
+ operate: z.ZodDefault<z.ZodBoolean>;
359
+ wake: z.ZodDefault<z.ZodBoolean>;
360
+ }, z.core.$strip>;
361
+ wake: z.ZodOptional<z.ZodString>;
362
+ }, z.core.$strip>;
363
+ export declare const S2sContactUpdateSchema: z.ZodObject<{
364
+ kind: z.ZodLiteral<"contact.update">;
365
+ grants: z.ZodOptional<z.ZodObject<{
366
+ message: z.ZodDefault<z.ZodBoolean>;
367
+ report: z.ZodDefault<z.ZodBoolean>;
368
+ task: z.ZodOptional<z.ZodObject<{
369
+ actsAs: z.ZodOptional<z.ZodString>;
370
+ runAs: z.ZodOptional<z.ZodString>;
371
+ approve: z.ZodDefault<z.ZodBoolean>;
372
+ turnsPerHour: z.ZodDefault<z.ZodNumber>;
373
+ }, z.core.$strip>>;
374
+ records: z.ZodDefault<z.ZodBoolean>;
375
+ operate: z.ZodDefault<z.ZodBoolean>;
376
+ wake: z.ZodDefault<z.ZodBoolean>;
377
+ }, z.core.$strip>>;
378
+ wake: z.ZodOptional<z.ZodNullable<z.ZodString>>;
379
+ }, z.core.$strip>;
380
+ export declare const S2sContactRemoveSchema: z.ZodObject<{
381
+ kind: z.ZodLiteral<"contact.remove">;
382
+ reason: z.ZodOptional<z.ZodString>;
383
+ }, z.core.$strip>;
384
+ export declare const S2sIdentityRotatedSchema: z.ZodObject<{
385
+ kind: z.ZodLiteral<"identity.rotated">;
386
+ document: z.ZodObject<{
387
+ v: z.ZodLiteral<1>;
388
+ sandbox: z.ZodString;
389
+ name: z.ZodString;
390
+ host: z.ZodString;
391
+ domains: z.ZodArray<z.ZodString>;
392
+ keys: z.ZodObject<{
393
+ ed25519: z.ZodString;
394
+ mldsa65: z.ZodString;
395
+ x25519: z.ZodString;
396
+ mlkem768: z.ZodString;
397
+ }, z.core.$strip>;
398
+ fingerprint: z.ZodString;
399
+ recovery: z.ZodOptional<z.ZodString>;
400
+ protocols: z.ZodArray<z.ZodString>;
401
+ issuedAt: z.ZodNumber;
402
+ prev: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
403
+ by: z.ZodLiteral<"key">;
404
+ fingerprint: z.ZodString;
405
+ keys: z.ZodObject<{
406
+ ed25519: z.ZodString;
407
+ mldsa65: z.ZodString;
408
+ x25519: z.ZodString;
409
+ mlkem768: z.ZodString;
410
+ }, z.core.$strip>;
411
+ at: z.ZodNumber;
412
+ sig: z.ZodObject<{
413
+ ed25519: z.ZodString;
414
+ mldsa65: z.ZodString;
415
+ }, z.core.$strip>;
416
+ }, z.core.$strip>, z.ZodObject<{
417
+ by: z.ZodLiteral<"recovery">;
418
+ fingerprint: z.ZodString;
419
+ keys: z.ZodObject<{
420
+ ed25519: z.ZodString;
421
+ mldsa65: z.ZodString;
422
+ }, z.core.$strip>;
423
+ at: z.ZodNumber;
424
+ sig: z.ZodObject<{
425
+ ed25519: z.ZodString;
426
+ mldsa65: z.ZodString;
427
+ }, z.core.$strip>;
428
+ }, z.core.$strip>], "by">>;
429
+ attestations: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
430
+ issuedAt: z.ZodNumber;
431
+ validUntil: z.ZodNumber;
432
+ v: z.ZodLiteral<1>;
433
+ type: z.ZodLiteral<"sandbox-vouch">;
434
+ issuer: z.ZodObject<{
435
+ sandbox: z.ZodString;
436
+ address: z.ZodString;
437
+ fingerprint: z.ZodString;
438
+ keys: z.ZodObject<{
439
+ ed25519: z.ZodString;
440
+ mldsa65: z.ZodString;
441
+ x25519: z.ZodString;
442
+ mlkem768: z.ZodString;
443
+ }, z.core.$loose>;
444
+ name: z.ZodOptional<z.ZodString>;
445
+ }, z.core.$loose>;
446
+ subject: z.ZodObject<{
447
+ sandbox: z.ZodString;
448
+ address: z.ZodString;
449
+ fingerprint: z.ZodString;
450
+ }, z.core.$loose>;
451
+ claims: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
452
+ sig: z.ZodObject<{
453
+ ed25519: z.ZodString;
454
+ mldsa65: z.ZodString;
455
+ }, z.core.$loose>;
456
+ }, z.core.$loose>, z.ZodObject<{
457
+ issuedAt: z.ZodNumber;
458
+ validUntil: z.ZodNumber;
459
+ v: z.ZodLiteral<1>;
460
+ type: z.ZodLiteral<"eudi-pid">;
461
+ format: z.ZodEnum<{
462
+ "dc+sd-jwt": "dc+sd-jwt";
463
+ mso_mdoc: "mso_mdoc";
464
+ }>;
465
+ presentation: z.ZodString;
466
+ subject: z.ZodObject<{
467
+ sandbox: z.ZodString;
468
+ address: z.ZodString;
469
+ fingerprint: z.ZodString;
470
+ }, z.core.$loose>;
471
+ }, z.core.$loose>, z.ZodObject<{
472
+ type: z.ZodString;
473
+ }, z.core.$loose>]>>>;
474
+ sig: z.ZodObject<{
475
+ ed25519: z.ZodString;
476
+ mldsa65: z.ZodString;
477
+ }, z.core.$strip>;
478
+ }, z.core.$loose>;
479
+ }, z.core.$strip>;
480
+ export declare const S2sMessagePayloadSchema: z.ZodObject<{
481
+ kind: z.ZodLiteral<"message">;
482
+ subject: z.ZodOptional<z.ZodString>;
483
+ text: z.ZodString;
484
+ attachments: z.ZodDefault<z.ZodArray<z.ZodObject<{
485
+ name: z.ZodString;
486
+ data: z.ZodString;
487
+ }, z.core.$strip>>>;
488
+ }, z.core.$strip>;
489
+ export declare const S2sReportPayloadSchema: z.ZodObject<{
490
+ report: z.ZodObject<{
491
+ message: z.ZodString;
492
+ stack: z.ZodOptional<z.ZodString>;
493
+ url: z.ZodOptional<z.ZodString>;
494
+ release: z.ZodOptional<z.ZodString>;
495
+ userAgent: z.ZodOptional<z.ZodString>;
496
+ description: z.ZodOptional<z.ZodString>;
497
+ reporter: z.ZodOptional<z.ZodObject<{
498
+ email: z.ZodOptional<z.ZodString>;
499
+ name: z.ZodOptional<z.ZodString>;
500
+ }, z.core.$strip>>;
501
+ breadcrumbs: z.ZodOptional<z.ZodArray<z.ZodObject<{
502
+ at: z.ZodNumber;
503
+ kind: z.ZodString;
504
+ message: z.ZodString;
505
+ }, z.core.$strip>>>;
506
+ context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
507
+ fingerprint: z.ZodOptional<z.ZodString>;
508
+ kind: z.ZodEnum<{
509
+ crash: "crash";
510
+ detection: "detection";
511
+ }>;
512
+ }, z.core.$strip>;
513
+ conversationId: z.ZodOptional<z.ZodString>;
514
+ times: z.ZodOptional<z.ZodNumber>;
515
+ kind: z.ZodLiteral<"report">;
516
+ project: z.ZodString;
517
+ }, z.core.$strip>;
518
+ export declare const S2sTaskRequestSchema: z.ZodObject<{
519
+ requestId: z.ZodString;
520
+ task: z.ZodString;
521
+ title: z.ZodOptional<z.ZodString>;
522
+ hops: z.ZodDefault<z.ZodNumber>;
523
+ tainted: z.ZodOptional<z.ZodString>;
524
+ from: z.ZodOptional<z.ZodObject<{
525
+ conversation: z.ZodOptional<z.ZodString>;
526
+ title: z.ZodOptional<z.ZodString>;
527
+ }, z.core.$strip>>;
528
+ kind: z.ZodLiteral<"task.request">;
529
+ }, z.core.$strip>;
530
+ export declare const S2sTaskUpdateSchema: z.ZodObject<{
531
+ kind: z.ZodLiteral<"task.update">;
532
+ task: z.ZodString;
533
+ status: z.ZodObject<{
534
+ conversationId: z.ZodString;
535
+ state: z.ZodEnum<{
536
+ blocked: "blocked";
537
+ declined: "declined";
538
+ failed: "failed";
539
+ finished: "finished";
540
+ held: "held";
541
+ running: "running";
542
+ stopped: "stopped";
543
+ }>;
544
+ title: z.ZodOptional<z.ZodString>;
545
+ report: z.ZodOptional<z.ZodString>;
546
+ question: z.ZodOptional<z.ZodObject<{
547
+ requestId: z.ZodString;
548
+ questions: z.ZodArray<z.ZodObject<{
549
+ question: z.ZodString;
550
+ header: z.ZodString;
551
+ multiSelect: z.ZodBoolean;
552
+ options: z.ZodArray<z.ZodObject<{
553
+ label: z.ZodString;
554
+ description: z.ZodString;
555
+ preview: z.ZodOptional<z.ZodString>;
556
+ }, z.core.$strip>>;
557
+ }, z.core.$strip>>;
558
+ }, z.core.$strip>>;
559
+ waitingOn: z.ZodOptional<z.ZodString>;
560
+ error: z.ZodOptional<z.ZodString>;
561
+ version: z.ZodNumber;
562
+ updatedAt: z.ZodNumber;
563
+ }, z.core.$strip>;
564
+ }, z.core.$strip>;
565
+ export declare const S2sTaskMessageSchema: z.ZodObject<{
566
+ kind: z.ZodLiteral<"task.message">;
567
+ task: z.ZodString;
568
+ message: z.ZodObject<{
569
+ message: z.ZodString;
570
+ messageId: z.ZodOptional<z.ZodString>;
571
+ tainted: z.ZodOptional<z.ZodString>;
572
+ }, z.core.$strip>;
573
+ }, z.core.$strip>;
574
+ export declare const S2sTaskAnswerSchema: z.ZodObject<{
575
+ kind: z.ZodLiteral<"task.answer">;
576
+ task: z.ZodString;
577
+ answer: z.ZodObject<{
578
+ requestId: z.ZodString;
579
+ answers: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>;
580
+ }, z.core.$strip>;
581
+ }, z.core.$strip>;
582
+ export declare const S2sTaskStopSchema: z.ZodObject<{
583
+ kind: z.ZodLiteral<"task.stop">;
584
+ task: z.ZodString;
585
+ }, z.core.$strip>;
586
+ export declare const S2sReceiptSchema: z.ZodObject<{
587
+ kind: z.ZodLiteral<"receipt">;
588
+ of: z.ZodString;
589
+ read: z.ZodBoolean;
590
+ at: z.ZodNumber;
591
+ }, z.core.$strip>;
592
+ export declare const S2sAttestationRequestSchema: z.ZodObject<{
593
+ kind: z.ZodLiteral<"attestation.request">;
594
+ claims: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
595
+ note: z.ZodOptional<z.ZodString>;
596
+ }, z.core.$strip>;
597
+ export declare const S2sAttestationIssuedSchema: z.ZodObject<{
598
+ kind: z.ZodLiteral<"attestation.issued">;
599
+ attestation: z.ZodUnion<readonly [z.ZodObject<{
600
+ issuedAt: z.ZodNumber;
601
+ validUntil: z.ZodNumber;
602
+ v: z.ZodLiteral<1>;
603
+ type: z.ZodLiteral<"sandbox-vouch">;
604
+ issuer: z.ZodObject<{
605
+ sandbox: z.ZodString;
606
+ address: z.ZodString;
607
+ fingerprint: z.ZodString;
608
+ keys: z.ZodObject<{
609
+ ed25519: z.ZodString;
610
+ mldsa65: z.ZodString;
611
+ x25519: z.ZodString;
612
+ mlkem768: z.ZodString;
613
+ }, z.core.$loose>;
614
+ name: z.ZodOptional<z.ZodString>;
615
+ }, z.core.$loose>;
616
+ subject: z.ZodObject<{
617
+ sandbox: z.ZodString;
618
+ address: z.ZodString;
619
+ fingerprint: z.ZodString;
620
+ }, z.core.$loose>;
621
+ claims: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
622
+ sig: z.ZodObject<{
623
+ ed25519: z.ZodString;
624
+ mldsa65: z.ZodString;
625
+ }, z.core.$loose>;
626
+ }, z.core.$loose>, z.ZodObject<{
627
+ issuedAt: z.ZodNumber;
628
+ validUntil: z.ZodNumber;
629
+ v: z.ZodLiteral<1>;
630
+ type: z.ZodLiteral<"eudi-pid">;
631
+ format: z.ZodEnum<{
632
+ "dc+sd-jwt": "dc+sd-jwt";
633
+ mso_mdoc: "mso_mdoc";
634
+ }>;
635
+ presentation: z.ZodString;
636
+ subject: z.ZodObject<{
637
+ sandbox: z.ZodString;
638
+ address: z.ZodString;
639
+ fingerprint: z.ZodString;
640
+ }, z.core.$loose>;
641
+ }, z.core.$loose>, z.ZodObject<{
642
+ type: z.ZodString;
643
+ }, z.core.$loose>]>;
644
+ note: z.ZodOptional<z.ZodString>;
645
+ }, z.core.$strip>;
646
+ export declare const attestationText: (claims: Readonly<Record<string, string | number | boolean>>, note?: string) => string;
647
+ export declare const S2sPayloadSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
648
+ kind: z.ZodLiteral<"contact.request">;
649
+ document: z.ZodObject<{
650
+ v: z.ZodLiteral<1>;
651
+ sandbox: z.ZodString;
652
+ name: z.ZodString;
653
+ host: z.ZodString;
654
+ domains: z.ZodArray<z.ZodString>;
655
+ keys: z.ZodObject<{
656
+ ed25519: z.ZodString;
657
+ mldsa65: z.ZodString;
658
+ x25519: z.ZodString;
659
+ mlkem768: z.ZodString;
660
+ }, z.core.$strip>;
661
+ fingerprint: z.ZodString;
662
+ recovery: z.ZodOptional<z.ZodString>;
663
+ protocols: z.ZodArray<z.ZodString>;
664
+ issuedAt: z.ZodNumber;
665
+ prev: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
666
+ by: z.ZodLiteral<"key">;
667
+ fingerprint: z.ZodString;
668
+ keys: z.ZodObject<{
669
+ ed25519: z.ZodString;
670
+ mldsa65: z.ZodString;
671
+ x25519: z.ZodString;
672
+ mlkem768: z.ZodString;
673
+ }, z.core.$strip>;
674
+ at: z.ZodNumber;
675
+ sig: z.ZodObject<{
676
+ ed25519: z.ZodString;
677
+ mldsa65: z.ZodString;
678
+ }, z.core.$strip>;
679
+ }, z.core.$strip>, z.ZodObject<{
680
+ by: z.ZodLiteral<"recovery">;
681
+ fingerprint: z.ZodString;
682
+ keys: z.ZodObject<{
683
+ ed25519: z.ZodString;
684
+ mldsa65: z.ZodString;
685
+ }, z.core.$strip>;
686
+ at: z.ZodNumber;
687
+ sig: z.ZodObject<{
688
+ ed25519: z.ZodString;
689
+ mldsa65: z.ZodString;
690
+ }, z.core.$strip>;
691
+ }, z.core.$strip>], "by">>;
692
+ attestations: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
693
+ issuedAt: z.ZodNumber;
694
+ validUntil: z.ZodNumber;
695
+ v: z.ZodLiteral<1>;
696
+ type: z.ZodLiteral<"sandbox-vouch">;
697
+ issuer: z.ZodObject<{
698
+ sandbox: z.ZodString;
699
+ address: z.ZodString;
700
+ fingerprint: z.ZodString;
701
+ keys: z.ZodObject<{
702
+ ed25519: z.ZodString;
703
+ mldsa65: z.ZodString;
704
+ x25519: z.ZodString;
705
+ mlkem768: z.ZodString;
706
+ }, z.core.$loose>;
707
+ name: z.ZodOptional<z.ZodString>;
708
+ }, z.core.$loose>;
709
+ subject: z.ZodObject<{
710
+ sandbox: z.ZodString;
711
+ address: z.ZodString;
712
+ fingerprint: z.ZodString;
713
+ }, z.core.$loose>;
714
+ claims: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
715
+ sig: z.ZodObject<{
716
+ ed25519: z.ZodString;
717
+ mldsa65: z.ZodString;
718
+ }, z.core.$loose>;
719
+ }, z.core.$loose>, z.ZodObject<{
720
+ issuedAt: z.ZodNumber;
721
+ validUntil: z.ZodNumber;
722
+ v: z.ZodLiteral<1>;
723
+ type: z.ZodLiteral<"eudi-pid">;
724
+ format: z.ZodEnum<{
725
+ "dc+sd-jwt": "dc+sd-jwt";
726
+ mso_mdoc: "mso_mdoc";
727
+ }>;
728
+ presentation: z.ZodString;
729
+ subject: z.ZodObject<{
730
+ sandbox: z.ZodString;
731
+ address: z.ZodString;
732
+ fingerprint: z.ZodString;
733
+ }, z.core.$loose>;
734
+ }, z.core.$loose>, z.ZodObject<{
735
+ type: z.ZodString;
736
+ }, z.core.$loose>]>>>;
737
+ sig: z.ZodObject<{
738
+ ed25519: z.ZodString;
739
+ mldsa65: z.ZodString;
740
+ }, z.core.$strip>;
741
+ }, z.core.$loose>;
742
+ note: z.ZodOptional<z.ZodString>;
743
+ grants: z.ZodObject<{
744
+ message: z.ZodDefault<z.ZodBoolean>;
745
+ report: z.ZodDefault<z.ZodBoolean>;
746
+ task: z.ZodOptional<z.ZodObject<{
747
+ actsAs: z.ZodOptional<z.ZodString>;
748
+ runAs: z.ZodOptional<z.ZodString>;
749
+ approve: z.ZodDefault<z.ZodBoolean>;
750
+ turnsPerHour: z.ZodDefault<z.ZodNumber>;
751
+ }, z.core.$strip>>;
752
+ records: z.ZodDefault<z.ZodBoolean>;
753
+ operate: z.ZodDefault<z.ZodBoolean>;
754
+ wake: z.ZodDefault<z.ZodBoolean>;
755
+ }, z.core.$strip>;
756
+ scope: z.ZodDiscriminatedUnion<[z.ZodObject<{
757
+ kind: z.ZodLiteral<"sandbox">;
758
+ }, z.core.$strip>, z.ZodObject<{
759
+ kind: z.ZodLiteral<"person">;
760
+ person: z.ZodString;
761
+ }, z.core.$strip>], "kind">;
762
+ wake: z.ZodOptional<z.ZodString>;
763
+ }, z.core.$strip>, z.ZodObject<{
764
+ kind: z.ZodLiteral<"contact.accept">;
765
+ document: z.ZodObject<{
766
+ v: z.ZodLiteral<1>;
767
+ sandbox: z.ZodString;
768
+ name: z.ZodString;
769
+ host: z.ZodString;
770
+ domains: z.ZodArray<z.ZodString>;
771
+ keys: z.ZodObject<{
772
+ ed25519: z.ZodString;
773
+ mldsa65: z.ZodString;
774
+ x25519: z.ZodString;
775
+ mlkem768: z.ZodString;
776
+ }, z.core.$strip>;
777
+ fingerprint: z.ZodString;
778
+ recovery: z.ZodOptional<z.ZodString>;
779
+ protocols: z.ZodArray<z.ZodString>;
780
+ issuedAt: z.ZodNumber;
781
+ prev: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
782
+ by: z.ZodLiteral<"key">;
783
+ fingerprint: z.ZodString;
784
+ keys: z.ZodObject<{
785
+ ed25519: z.ZodString;
786
+ mldsa65: z.ZodString;
787
+ x25519: z.ZodString;
788
+ mlkem768: z.ZodString;
789
+ }, z.core.$strip>;
790
+ at: z.ZodNumber;
791
+ sig: z.ZodObject<{
792
+ ed25519: z.ZodString;
793
+ mldsa65: z.ZodString;
794
+ }, z.core.$strip>;
795
+ }, z.core.$strip>, z.ZodObject<{
796
+ by: z.ZodLiteral<"recovery">;
797
+ fingerprint: z.ZodString;
798
+ keys: z.ZodObject<{
799
+ ed25519: z.ZodString;
800
+ mldsa65: z.ZodString;
801
+ }, z.core.$strip>;
802
+ at: z.ZodNumber;
803
+ sig: z.ZodObject<{
804
+ ed25519: z.ZodString;
805
+ mldsa65: z.ZodString;
806
+ }, z.core.$strip>;
807
+ }, z.core.$strip>], "by">>;
808
+ attestations: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
809
+ issuedAt: z.ZodNumber;
810
+ validUntil: z.ZodNumber;
811
+ v: z.ZodLiteral<1>;
812
+ type: z.ZodLiteral<"sandbox-vouch">;
813
+ issuer: z.ZodObject<{
814
+ sandbox: z.ZodString;
815
+ address: z.ZodString;
816
+ fingerprint: z.ZodString;
817
+ keys: z.ZodObject<{
818
+ ed25519: z.ZodString;
819
+ mldsa65: z.ZodString;
820
+ x25519: z.ZodString;
821
+ mlkem768: z.ZodString;
822
+ }, z.core.$loose>;
823
+ name: z.ZodOptional<z.ZodString>;
824
+ }, z.core.$loose>;
825
+ subject: z.ZodObject<{
826
+ sandbox: z.ZodString;
827
+ address: z.ZodString;
828
+ fingerprint: z.ZodString;
829
+ }, z.core.$loose>;
830
+ claims: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
831
+ sig: z.ZodObject<{
832
+ ed25519: z.ZodString;
833
+ mldsa65: z.ZodString;
834
+ }, z.core.$loose>;
835
+ }, z.core.$loose>, z.ZodObject<{
836
+ issuedAt: z.ZodNumber;
837
+ validUntil: z.ZodNumber;
838
+ v: z.ZodLiteral<1>;
839
+ type: z.ZodLiteral<"eudi-pid">;
840
+ format: z.ZodEnum<{
841
+ "dc+sd-jwt": "dc+sd-jwt";
842
+ mso_mdoc: "mso_mdoc";
843
+ }>;
844
+ presentation: z.ZodString;
845
+ subject: z.ZodObject<{
846
+ sandbox: z.ZodString;
847
+ address: z.ZodString;
848
+ fingerprint: z.ZodString;
849
+ }, z.core.$loose>;
850
+ }, z.core.$loose>, z.ZodObject<{
851
+ type: z.ZodString;
852
+ }, z.core.$loose>]>>>;
853
+ sig: z.ZodObject<{
854
+ ed25519: z.ZodString;
855
+ mldsa65: z.ZodString;
856
+ }, z.core.$strip>;
857
+ }, z.core.$loose>;
858
+ grants: z.ZodObject<{
859
+ message: z.ZodDefault<z.ZodBoolean>;
860
+ report: z.ZodDefault<z.ZodBoolean>;
861
+ task: z.ZodOptional<z.ZodObject<{
862
+ actsAs: z.ZodOptional<z.ZodString>;
863
+ runAs: z.ZodOptional<z.ZodString>;
864
+ approve: z.ZodDefault<z.ZodBoolean>;
865
+ turnsPerHour: z.ZodDefault<z.ZodNumber>;
866
+ }, z.core.$strip>>;
867
+ records: z.ZodDefault<z.ZodBoolean>;
868
+ operate: z.ZodDefault<z.ZodBoolean>;
869
+ wake: z.ZodDefault<z.ZodBoolean>;
870
+ }, z.core.$strip>;
871
+ wake: z.ZodOptional<z.ZodString>;
872
+ }, z.core.$strip>, z.ZodObject<{
873
+ kind: z.ZodLiteral<"contact.update">;
874
+ grants: z.ZodOptional<z.ZodObject<{
875
+ message: z.ZodDefault<z.ZodBoolean>;
876
+ report: z.ZodDefault<z.ZodBoolean>;
877
+ task: z.ZodOptional<z.ZodObject<{
878
+ actsAs: z.ZodOptional<z.ZodString>;
879
+ runAs: z.ZodOptional<z.ZodString>;
880
+ approve: z.ZodDefault<z.ZodBoolean>;
881
+ turnsPerHour: z.ZodDefault<z.ZodNumber>;
882
+ }, z.core.$strip>>;
883
+ records: z.ZodDefault<z.ZodBoolean>;
884
+ operate: z.ZodDefault<z.ZodBoolean>;
885
+ wake: z.ZodDefault<z.ZodBoolean>;
886
+ }, z.core.$strip>>;
887
+ wake: z.ZodOptional<z.ZodNullable<z.ZodString>>;
888
+ }, z.core.$strip>, z.ZodObject<{
889
+ kind: z.ZodLiteral<"contact.remove">;
890
+ reason: z.ZodOptional<z.ZodString>;
891
+ }, z.core.$strip>, z.ZodObject<{
892
+ kind: z.ZodLiteral<"identity.rotated">;
893
+ document: z.ZodObject<{
894
+ v: z.ZodLiteral<1>;
895
+ sandbox: z.ZodString;
896
+ name: z.ZodString;
897
+ host: z.ZodString;
898
+ domains: z.ZodArray<z.ZodString>;
899
+ keys: z.ZodObject<{
900
+ ed25519: z.ZodString;
901
+ mldsa65: z.ZodString;
902
+ x25519: z.ZodString;
903
+ mlkem768: z.ZodString;
904
+ }, z.core.$strip>;
905
+ fingerprint: z.ZodString;
906
+ recovery: z.ZodOptional<z.ZodString>;
907
+ protocols: z.ZodArray<z.ZodString>;
908
+ issuedAt: z.ZodNumber;
909
+ prev: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
910
+ by: z.ZodLiteral<"key">;
911
+ fingerprint: z.ZodString;
912
+ keys: z.ZodObject<{
913
+ ed25519: z.ZodString;
914
+ mldsa65: z.ZodString;
915
+ x25519: z.ZodString;
916
+ mlkem768: z.ZodString;
917
+ }, z.core.$strip>;
918
+ at: z.ZodNumber;
919
+ sig: z.ZodObject<{
920
+ ed25519: z.ZodString;
921
+ mldsa65: z.ZodString;
922
+ }, z.core.$strip>;
923
+ }, z.core.$strip>, z.ZodObject<{
924
+ by: z.ZodLiteral<"recovery">;
925
+ fingerprint: z.ZodString;
926
+ keys: z.ZodObject<{
927
+ ed25519: z.ZodString;
928
+ mldsa65: z.ZodString;
929
+ }, z.core.$strip>;
930
+ at: z.ZodNumber;
931
+ sig: z.ZodObject<{
932
+ ed25519: z.ZodString;
933
+ mldsa65: z.ZodString;
934
+ }, z.core.$strip>;
935
+ }, z.core.$strip>], "by">>;
936
+ attestations: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
937
+ issuedAt: z.ZodNumber;
938
+ validUntil: z.ZodNumber;
939
+ v: z.ZodLiteral<1>;
940
+ type: z.ZodLiteral<"sandbox-vouch">;
941
+ issuer: z.ZodObject<{
942
+ sandbox: z.ZodString;
943
+ address: z.ZodString;
944
+ fingerprint: z.ZodString;
945
+ keys: z.ZodObject<{
946
+ ed25519: z.ZodString;
947
+ mldsa65: z.ZodString;
948
+ x25519: z.ZodString;
949
+ mlkem768: z.ZodString;
950
+ }, z.core.$loose>;
951
+ name: z.ZodOptional<z.ZodString>;
952
+ }, z.core.$loose>;
953
+ subject: z.ZodObject<{
954
+ sandbox: z.ZodString;
955
+ address: z.ZodString;
956
+ fingerprint: z.ZodString;
957
+ }, z.core.$loose>;
958
+ claims: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
959
+ sig: z.ZodObject<{
960
+ ed25519: z.ZodString;
961
+ mldsa65: z.ZodString;
962
+ }, z.core.$loose>;
963
+ }, z.core.$loose>, z.ZodObject<{
964
+ issuedAt: z.ZodNumber;
965
+ validUntil: z.ZodNumber;
966
+ v: z.ZodLiteral<1>;
967
+ type: z.ZodLiteral<"eudi-pid">;
968
+ format: z.ZodEnum<{
969
+ "dc+sd-jwt": "dc+sd-jwt";
970
+ mso_mdoc: "mso_mdoc";
971
+ }>;
972
+ presentation: z.ZodString;
973
+ subject: z.ZodObject<{
974
+ sandbox: z.ZodString;
975
+ address: z.ZodString;
976
+ fingerprint: z.ZodString;
977
+ }, z.core.$loose>;
978
+ }, z.core.$loose>, z.ZodObject<{
979
+ type: z.ZodString;
980
+ }, z.core.$loose>]>>>;
981
+ sig: z.ZodObject<{
982
+ ed25519: z.ZodString;
983
+ mldsa65: z.ZodString;
984
+ }, z.core.$strip>;
985
+ }, z.core.$loose>;
986
+ }, z.core.$strip>, z.ZodObject<{
987
+ kind: z.ZodLiteral<"message">;
988
+ subject: z.ZodOptional<z.ZodString>;
989
+ text: z.ZodString;
990
+ attachments: z.ZodDefault<z.ZodArray<z.ZodObject<{
991
+ name: z.ZodString;
992
+ data: z.ZodString;
993
+ }, z.core.$strip>>>;
994
+ }, z.core.$strip>, z.ZodObject<{
995
+ report: z.ZodObject<{
996
+ message: z.ZodString;
997
+ stack: z.ZodOptional<z.ZodString>;
998
+ url: z.ZodOptional<z.ZodString>;
999
+ release: z.ZodOptional<z.ZodString>;
1000
+ userAgent: z.ZodOptional<z.ZodString>;
1001
+ description: z.ZodOptional<z.ZodString>;
1002
+ reporter: z.ZodOptional<z.ZodObject<{
1003
+ email: z.ZodOptional<z.ZodString>;
1004
+ name: z.ZodOptional<z.ZodString>;
1005
+ }, z.core.$strip>>;
1006
+ breadcrumbs: z.ZodOptional<z.ZodArray<z.ZodObject<{
1007
+ at: z.ZodNumber;
1008
+ kind: z.ZodString;
1009
+ message: z.ZodString;
1010
+ }, z.core.$strip>>>;
1011
+ context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1012
+ fingerprint: z.ZodOptional<z.ZodString>;
1013
+ kind: z.ZodEnum<{
1014
+ crash: "crash";
1015
+ detection: "detection";
1016
+ }>;
1017
+ }, z.core.$strip>;
1018
+ conversationId: z.ZodOptional<z.ZodString>;
1019
+ times: z.ZodOptional<z.ZodNumber>;
1020
+ kind: z.ZodLiteral<"report">;
1021
+ project: z.ZodString;
1022
+ }, z.core.$strip>, z.ZodObject<{
1023
+ requestId: z.ZodString;
1024
+ task: z.ZodString;
1025
+ title: z.ZodOptional<z.ZodString>;
1026
+ hops: z.ZodDefault<z.ZodNumber>;
1027
+ tainted: z.ZodOptional<z.ZodString>;
1028
+ from: z.ZodOptional<z.ZodObject<{
1029
+ conversation: z.ZodOptional<z.ZodString>;
1030
+ title: z.ZodOptional<z.ZodString>;
1031
+ }, z.core.$strip>>;
1032
+ kind: z.ZodLiteral<"task.request">;
1033
+ }, z.core.$strip>, z.ZodObject<{
1034
+ kind: z.ZodLiteral<"task.update">;
1035
+ task: z.ZodString;
1036
+ status: z.ZodObject<{
1037
+ conversationId: z.ZodString;
1038
+ state: z.ZodEnum<{
1039
+ blocked: "blocked";
1040
+ declined: "declined";
1041
+ failed: "failed";
1042
+ finished: "finished";
1043
+ held: "held";
1044
+ running: "running";
1045
+ stopped: "stopped";
1046
+ }>;
1047
+ title: z.ZodOptional<z.ZodString>;
1048
+ report: z.ZodOptional<z.ZodString>;
1049
+ question: z.ZodOptional<z.ZodObject<{
1050
+ requestId: z.ZodString;
1051
+ questions: z.ZodArray<z.ZodObject<{
1052
+ question: z.ZodString;
1053
+ header: z.ZodString;
1054
+ multiSelect: z.ZodBoolean;
1055
+ options: z.ZodArray<z.ZodObject<{
1056
+ label: z.ZodString;
1057
+ description: z.ZodString;
1058
+ preview: z.ZodOptional<z.ZodString>;
1059
+ }, z.core.$strip>>;
1060
+ }, z.core.$strip>>;
1061
+ }, z.core.$strip>>;
1062
+ waitingOn: z.ZodOptional<z.ZodString>;
1063
+ error: z.ZodOptional<z.ZodString>;
1064
+ version: z.ZodNumber;
1065
+ updatedAt: z.ZodNumber;
1066
+ }, z.core.$strip>;
1067
+ }, z.core.$strip>, z.ZodObject<{
1068
+ kind: z.ZodLiteral<"task.message">;
1069
+ task: z.ZodString;
1070
+ message: z.ZodObject<{
1071
+ message: z.ZodString;
1072
+ messageId: z.ZodOptional<z.ZodString>;
1073
+ tainted: z.ZodOptional<z.ZodString>;
1074
+ }, z.core.$strip>;
1075
+ }, z.core.$strip>, z.ZodObject<{
1076
+ kind: z.ZodLiteral<"task.answer">;
1077
+ task: z.ZodString;
1078
+ answer: z.ZodObject<{
1079
+ requestId: z.ZodString;
1080
+ answers: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>;
1081
+ }, z.core.$strip>;
1082
+ }, z.core.$strip>, z.ZodObject<{
1083
+ kind: z.ZodLiteral<"task.stop">;
1084
+ task: z.ZodString;
1085
+ }, z.core.$strip>, z.ZodObject<{
1086
+ kind: z.ZodLiteral<"receipt">;
1087
+ of: z.ZodString;
1088
+ read: z.ZodBoolean;
1089
+ at: z.ZodNumber;
1090
+ }, z.core.$strip>, z.ZodObject<{
1091
+ kind: z.ZodLiteral<"attestation.request">;
1092
+ claims: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
1093
+ note: z.ZodOptional<z.ZodString>;
1094
+ }, z.core.$strip>, z.ZodObject<{
1095
+ kind: z.ZodLiteral<"attestation.issued">;
1096
+ attestation: z.ZodUnion<readonly [z.ZodObject<{
1097
+ issuedAt: z.ZodNumber;
1098
+ validUntil: z.ZodNumber;
1099
+ v: z.ZodLiteral<1>;
1100
+ type: z.ZodLiteral<"sandbox-vouch">;
1101
+ issuer: z.ZodObject<{
1102
+ sandbox: z.ZodString;
1103
+ address: z.ZodString;
1104
+ fingerprint: z.ZodString;
1105
+ keys: z.ZodObject<{
1106
+ ed25519: z.ZodString;
1107
+ mldsa65: z.ZodString;
1108
+ x25519: z.ZodString;
1109
+ mlkem768: z.ZodString;
1110
+ }, z.core.$loose>;
1111
+ name: z.ZodOptional<z.ZodString>;
1112
+ }, z.core.$loose>;
1113
+ subject: z.ZodObject<{
1114
+ sandbox: z.ZodString;
1115
+ address: z.ZodString;
1116
+ fingerprint: z.ZodString;
1117
+ }, z.core.$loose>;
1118
+ claims: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
1119
+ sig: z.ZodObject<{
1120
+ ed25519: z.ZodString;
1121
+ mldsa65: z.ZodString;
1122
+ }, z.core.$loose>;
1123
+ }, z.core.$loose>, z.ZodObject<{
1124
+ issuedAt: z.ZodNumber;
1125
+ validUntil: z.ZodNumber;
1126
+ v: z.ZodLiteral<1>;
1127
+ type: z.ZodLiteral<"eudi-pid">;
1128
+ format: z.ZodEnum<{
1129
+ "dc+sd-jwt": "dc+sd-jwt";
1130
+ mso_mdoc: "mso_mdoc";
1131
+ }>;
1132
+ presentation: z.ZodString;
1133
+ subject: z.ZodObject<{
1134
+ sandbox: z.ZodString;
1135
+ address: z.ZodString;
1136
+ fingerprint: z.ZodString;
1137
+ }, z.core.$loose>;
1138
+ }, z.core.$loose>, z.ZodObject<{
1139
+ type: z.ZodString;
1140
+ }, z.core.$loose>]>;
1141
+ note: z.ZodOptional<z.ZodString>;
1142
+ }, z.core.$strip>], "kind">;
1143
+ export type S2sPayload = z.infer<typeof S2sPayloadSchema>;
1144
+ export type S2sPayloadOf<K extends S2sPayloadKind> = Extract<S2sPayload, {
1145
+ readonly kind: K;
1146
+ }>;
1147
+ export declare const S2sInboxAcceptedSchema: z.ZodObject<{
1148
+ ok: z.ZodLiteral<true>;
1149
+ id: z.ZodString;
1150
+ duplicate: z.ZodOptional<z.ZodBoolean>;
1151
+ }, z.core.$strip>;
1152
+ export type S2sInboxAccepted = z.infer<typeof S2sInboxAcceptedSchema>;
1153
+ export declare const S2S_REFUSAL_CODES: readonly ["malformed", "signature", "not_contact", "grant", "floor", "key_changed", "unconfirmed", "recipient", "hops", "too_large", "unknown_kind", "rate", "unready", "task", "session", "replay"];
1154
+ export declare const S2sRefusalCodeSchema: z.ZodEnum<{
1155
+ floor: "floor";
1156
+ grant: "grant";
1157
+ hops: "hops";
1158
+ key_changed: "key_changed";
1159
+ malformed: "malformed";
1160
+ not_contact: "not_contact";
1161
+ rate: "rate";
1162
+ recipient: "recipient";
1163
+ replay: "replay";
1164
+ session: "session";
1165
+ signature: "signature";
1166
+ task: "task";
1167
+ too_large: "too_large";
1168
+ unconfirmed: "unconfirmed";
1169
+ unknown_kind: "unknown_kind";
1170
+ unready: "unready";
1171
+ }>;
1172
+ export type S2sRefusalCode = z.infer<typeof S2sRefusalCodeSchema>;
1173
+ export declare const S2S_REFUSAL_STATUS: {
1174
+ readonly malformed: 400;
1175
+ readonly signature: 403;
1176
+ readonly not_contact: 403;
1177
+ readonly grant: 403;
1178
+ readonly floor: 403;
1179
+ readonly key_changed: 403;
1180
+ readonly unconfirmed: 403;
1181
+ readonly recipient: 409;
1182
+ readonly hops: 409;
1183
+ readonly too_large: 413;
1184
+ readonly unknown_kind: 422;
1185
+ readonly rate: 429;
1186
+ readonly unready: 503;
1187
+ readonly task: 409;
1188
+ readonly session: 409;
1189
+ readonly replay: 409;
1190
+ };
1191
+ export declare const S2sRefusalSchema: z.ZodObject<{
1192
+ error: z.ZodString;
1193
+ code: z.ZodEnum<{
1194
+ floor: "floor";
1195
+ grant: "grant";
1196
+ hops: "hops";
1197
+ key_changed: "key_changed";
1198
+ malformed: "malformed";
1199
+ not_contact: "not_contact";
1200
+ rate: "rate";
1201
+ recipient: "recipient";
1202
+ replay: "replay";
1203
+ session: "session";
1204
+ signature: "signature";
1205
+ task: "task";
1206
+ too_large: "too_large";
1207
+ unconfirmed: "unconfirmed";
1208
+ unknown_kind: "unknown_kind";
1209
+ unready: "unready";
1210
+ }>;
1211
+ }, z.core.$strip>;
1212
+ export type S2sRefusal = z.infer<typeof S2sRefusalSchema>;
1213
+ declare const sessionOpenFields: {
1214
+ v: z.ZodLiteral<1>;
1215
+ from: z.ZodString;
1216
+ fromFp: z.ZodString;
1217
+ to: z.ZodString;
1218
+ toFp: z.ZodString;
1219
+ as: z.ZodOptional<z.ZodString>;
1220
+ at: z.ZodNumber;
1221
+ nonce: z.ZodString;
1222
+ enc: z.ZodObject<{
1223
+ x25519: z.ZodString;
1224
+ mlkem768: z.ZodString;
1225
+ }, z.core.$strip>;
1226
+ sig: z.ZodObject<{
1227
+ ed25519: z.ZodString;
1228
+ mldsa65: z.ZodString;
1229
+ }, z.core.$strip>;
1230
+ };
1231
+ export declare const S2sSessionOpenSchema: z.ZodObject<{
1232
+ v: z.ZodLiteral<1>;
1233
+ from: z.ZodString;
1234
+ fromFp: z.ZodString;
1235
+ to: z.ZodString;
1236
+ toFp: z.ZodString;
1237
+ as: z.ZodOptional<z.ZodString>;
1238
+ at: z.ZodNumber;
1239
+ nonce: z.ZodString;
1240
+ enc: z.ZodObject<{
1241
+ x25519: z.ZodString;
1242
+ mlkem768: z.ZodString;
1243
+ }, z.core.$strip>;
1244
+ sig: z.ZodObject<{
1245
+ ed25519: z.ZodString;
1246
+ mldsa65: z.ZodString;
1247
+ }, z.core.$strip>;
1248
+ }, z.core.$loose>;
1249
+ export type S2sSessionOpen = z.infer<z.ZodObject<typeof sessionOpenFields>>;
1250
+ export declare const S2sSessionAnswerSchema: z.ZodObject<{
1251
+ session: z.ZodString;
1252
+ expiresAt: z.ZodNumber;
1253
+ confirm: z.ZodString;
1254
+ }, z.core.$strip>;
1255
+ export type S2sSessionAnswer = z.infer<typeof S2sSessionAnswerSchema>;
1256
+ export declare const S2sCallAnswerSchema: z.ZodObject<{
1257
+ status: z.ZodNumber;
1258
+ body: z.ZodUnknown;
1259
+ }, z.core.$strip>;
1260
+ export type S2sCallAnswer = z.infer<typeof S2sCallAnswerSchema>;
1261
+ export declare const S2sCallSealedSchema: z.ZodObject<{
1262
+ at: z.ZodNumber;
1263
+ nonce: z.ZodString;
1264
+ body: z.ZodString;
1265
+ }, z.core.$strip>;
1266
+ export type S2sCallSealed = z.infer<typeof S2sCallSealedSchema>;
1267
+ export declare const S2S_CALL_METHODS: readonly ["records.fleet", "records.show", "records.bundle", "records.diagnostics", "operate.exec", "operate.status", "operate.stop", "operate.read", "operate.write", "task.watch"];
1268
+ export declare const S2sCallMethodSchema: z.ZodEnum<{
1269
+ "operate.exec": "operate.exec";
1270
+ "operate.read": "operate.read";
1271
+ "operate.status": "operate.status";
1272
+ "operate.stop": "operate.stop";
1273
+ "operate.write": "operate.write";
1274
+ "records.bundle": "records.bundle";
1275
+ "records.diagnostics": "records.diagnostics";
1276
+ "records.fleet": "records.fleet";
1277
+ "records.show": "records.show";
1278
+ "task.watch": "task.watch";
1279
+ }>;
1280
+ export type S2sCallMethod = z.infer<typeof S2sCallMethodSchema>;
1281
+ export declare const S2sOperateStatusInputSchema: z.ZodObject<{
1282
+ id: z.ZodString;
1283
+ waitS: z.ZodOptional<z.ZodNumber>;
1284
+ }, z.core.$strip>;
1285
+ export declare const S2sTaskWatchInputSchema: z.ZodObject<{
1286
+ task: z.ZodString;
1287
+ after: z.ZodOptional<z.ZodNumber>;
1288
+ waitS: z.ZodOptional<z.ZodNumber>;
1289
+ }, z.core.$strip>;
1290
+ export declare const S2S_CALLS: {
1291
+ readonly "records.fleet": {
1292
+ readonly grant: "records";
1293
+ readonly input: z.ZodObject<{
1294
+ q: z.ZodOptional<z.ZodString>;
1295
+ query: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1296
+ }, z.core.$strip>;
1297
+ readonly output: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1298
+ };
1299
+ readonly "records.show": {
1300
+ readonly grant: "records";
1301
+ readonly input: z.ZodObject<{
1302
+ handle: z.ZodString;
1303
+ query: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1304
+ }, z.core.$strip>;
1305
+ readonly output: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1306
+ };
1307
+ readonly "records.bundle": {
1308
+ readonly grant: "records";
1309
+ readonly input: z.ZodObject<{
1310
+ handle: z.ZodString;
1311
+ }, z.core.$strip>;
1312
+ readonly output: z.ZodObject<{
1313
+ kind: z.ZodLiteral<"intentic.conversation-bundle">;
1314
+ version: z.ZodLiteral<1>;
1315
+ exportedAt: z.ZodString;
1316
+ sandbox: z.ZodObject<{
1317
+ name: z.ZodString;
1318
+ version: z.ZodOptional<z.ZodString>;
1319
+ }, z.core.$strip>;
1320
+ conversation: z.ZodString;
1321
+ show: z.ZodUnknown;
1322
+ transcript: z.ZodUnknown;
1323
+ prompt: z.ZodOptional<z.ZodObject<{
1324
+ at: z.ZodNumber;
1325
+ runtime: z.ZodString;
1326
+ mode: z.ZodEnum<{
1327
+ claude: "claude";
1328
+ custom: "custom";
1329
+ intentic: "intentic";
1330
+ }>;
1331
+ base: z.ZodObject<{
1332
+ kind: z.ZodEnum<{
1333
+ claude: "claude";
1334
+ custom: "custom";
1335
+ intentic: "intentic";
1336
+ runtime: "runtime";
1337
+ trimmed: "trimmed";
1338
+ }>;
1339
+ text: z.ZodOptional<z.ZodString>;
1340
+ model: z.ZodOptional<z.ZodString>;
1341
+ }, z.core.$strip>;
1342
+ sections: z.ZodArray<z.ZodObject<{
1343
+ source: z.ZodPreprocess<z.ZodEnum<{
1344
+ guidance: "guidance";
1345
+ memory: "memory";
1346
+ role: "role";
1347
+ }>, unknown>;
1348
+ title: z.ZodString;
1349
+ text: z.ZodString;
1350
+ }, z.core.$strip>>;
1351
+ }, z.core.$strip>>;
1352
+ timeline: z.ZodString;
1353
+ turns: z.ZodString;
1354
+ errors: z.ZodString;
1355
+ restarts: z.ZodString;
1356
+ browser: z.ZodString;
1357
+ }, z.core.$strip>;
1358
+ };
1359
+ readonly "records.diagnostics": {
1360
+ readonly grant: "records";
1361
+ readonly input: z.ZodDiscriminatedUnion<[z.ZodObject<{
1362
+ source: z.ZodOptional<z.ZodEnum<{
1363
+ browser: "browser";
1364
+ daemon: "daemon";
1365
+ }>>;
1366
+ sinceMinutes: z.ZodOptional<z.ZodNumber>;
1367
+ from: z.ZodOptional<z.ZodISODateTime>;
1368
+ until: z.ZodOptional<z.ZodISODateTime>;
1369
+ level: z.ZodOptional<z.ZodEnum<{
1370
+ debug: "debug";
1371
+ error: "error";
1372
+ fatal: "fatal";
1373
+ info: "info";
1374
+ trace: "trace";
1375
+ warn: "warn";
1376
+ }>>;
1377
+ contains: z.ZodOptional<z.ZodString>;
1378
+ group: z.ZodOptional<z.ZodBoolean>;
1379
+ stacks: z.ZodOptional<z.ZodBoolean>;
1380
+ limit: z.ZodOptional<z.ZodNumber>;
1381
+ query: z.ZodLiteral<"errors">;
1382
+ }, z.core.$strip>, z.ZodObject<{
1383
+ source: z.ZodOptional<z.ZodEnum<{
1384
+ rollups: "rollups";
1385
+ slow: "slow";
1386
+ }>>;
1387
+ sinceMinutes: z.ZodOptional<z.ZodNumber>;
1388
+ op: z.ZodOptional<z.ZodString>;
1389
+ groupBy: z.ZodOptional<z.ZodEnum<{
1390
+ none: "none";
1391
+ op: "op";
1392
+ "op+path": "op+path";
1393
+ }>>;
1394
+ limit: z.ZodOptional<z.ZodNumber>;
1395
+ query: z.ZodLiteral<"slow">;
1396
+ }, z.core.$strip>, z.ZodObject<{
1397
+ sinceMinutes: z.ZodOptional<z.ZodNumber>;
1398
+ conversationId: z.ZodOptional<z.ZodString>;
1399
+ only: z.ZodOptional<z.ZodEnum<{
1400
+ failed: "failed";
1401
+ interrupted: "interrupted";
1402
+ silent: "silent";
1403
+ unproven: "unproven";
1404
+ }>>;
1405
+ limit: z.ZodOptional<z.ZodNumber>;
1406
+ query: z.ZodLiteral<"turns">;
1407
+ }, z.core.$strip>, z.ZodObject<{
1408
+ field: z.ZodString;
1409
+ sinceMinutes: z.ZodOptional<z.ZodNumber>;
1410
+ limit: z.ZodOptional<z.ZodNumber>;
1411
+ query: z.ZodLiteral<"resources">;
1412
+ }, z.core.$strip>, z.ZodObject<{
1413
+ sinceMinutes: z.ZodOptional<z.ZodNumber>;
1414
+ limit: z.ZodOptional<z.ZodNumber>;
1415
+ query: z.ZodLiteral<"restarts">;
1416
+ }, z.core.$strip>, z.ZodObject<{
1417
+ conversationId: z.ZodString;
1418
+ sinceMinutes: z.ZodOptional<z.ZodNumber>;
1419
+ level: z.ZodOptional<z.ZodEnum<{
1420
+ debug: "debug";
1421
+ error: "error";
1422
+ fatal: "fatal";
1423
+ info: "info";
1424
+ trace: "trace";
1425
+ warn: "warn";
1426
+ }>>;
1427
+ limit: z.ZodOptional<z.ZodNumber>;
1428
+ query: z.ZodLiteral<"timeline">;
1429
+ }, z.core.$strip>, z.ZodObject<{
1430
+ sinceMinutes: z.ZodOptional<z.ZodNumber>;
1431
+ conversationId: z.ZodOptional<z.ZodString>;
1432
+ contains: z.ZodOptional<z.ZodString>;
1433
+ group: z.ZodOptional<z.ZodBoolean>;
1434
+ limit: z.ZodOptional<z.ZodNumber>;
1435
+ query: z.ZodLiteral<"failures">;
1436
+ }, z.core.$strip>, z.ZodObject<{
1437
+ conversationId: z.ZodOptional<z.ZodString>;
1438
+ query: z.ZodLiteral<"tools">;
1439
+ }, z.core.$strip>], "query">;
1440
+ readonly output: z.ZodObject<{
1441
+ text: z.ZodString;
1442
+ sandbox: z.ZodOptional<z.ZodString>;
1443
+ }, z.core.$strip>;
1444
+ };
1445
+ readonly "operate.exec": {
1446
+ readonly grant: "operate";
1447
+ readonly input: z.ZodObject<{
1448
+ command: z.ZodString;
1449
+ cwd: z.ZodOptional<z.ZodString>;
1450
+ timeoutS: z.ZodDefault<z.ZodNumber>;
1451
+ waitS: z.ZodDefault<z.ZodNumber>;
1452
+ from: z.ZodOptional<z.ZodObject<{
1453
+ conversation: z.ZodOptional<z.ZodString>;
1454
+ title: z.ZodOptional<z.ZodString>;
1455
+ }, z.core.$strip>>;
1456
+ }, z.core.$strip>;
1457
+ readonly output: z.ZodObject<{
1458
+ id: z.ZodString;
1459
+ state: z.ZodEnum<{
1460
+ exited: "exited";
1461
+ failed: "failed";
1462
+ running: "running";
1463
+ stopped: "stopped";
1464
+ timeout: "timeout";
1465
+ }>;
1466
+ exitCode: z.ZodOptional<z.ZodNumber>;
1467
+ signal: z.ZodOptional<z.ZodString>;
1468
+ stdout: z.ZodString;
1469
+ stderr: z.ZodString;
1470
+ truncated: z.ZodBoolean;
1471
+ error: z.ZodOptional<z.ZodString>;
1472
+ cwd: z.ZodString;
1473
+ jailed: z.ZodBoolean;
1474
+ startedAt: z.ZodNumber;
1475
+ endedAt: z.ZodOptional<z.ZodNumber>;
1476
+ }, z.core.$strip>;
1477
+ };
1478
+ readonly "operate.status": {
1479
+ readonly grant: "operate";
1480
+ readonly input: z.ZodObject<{
1481
+ id: z.ZodString;
1482
+ waitS: z.ZodOptional<z.ZodNumber>;
1483
+ }, z.core.$strip>;
1484
+ readonly output: z.ZodObject<{
1485
+ id: z.ZodString;
1486
+ state: z.ZodEnum<{
1487
+ exited: "exited";
1488
+ failed: "failed";
1489
+ running: "running";
1490
+ stopped: "stopped";
1491
+ timeout: "timeout";
1492
+ }>;
1493
+ exitCode: z.ZodOptional<z.ZodNumber>;
1494
+ signal: z.ZodOptional<z.ZodString>;
1495
+ stdout: z.ZodString;
1496
+ stderr: z.ZodString;
1497
+ truncated: z.ZodBoolean;
1498
+ error: z.ZodOptional<z.ZodString>;
1499
+ cwd: z.ZodString;
1500
+ jailed: z.ZodBoolean;
1501
+ startedAt: z.ZodNumber;
1502
+ endedAt: z.ZodOptional<z.ZodNumber>;
1503
+ }, z.core.$strip>;
1504
+ };
1505
+ readonly "operate.stop": {
1506
+ readonly grant: "operate";
1507
+ readonly input: z.ZodObject<{
1508
+ id: z.ZodString;
1509
+ }, z.core.$strip>;
1510
+ readonly output: z.ZodObject<{
1511
+ id: z.ZodString;
1512
+ state: z.ZodEnum<{
1513
+ exited: "exited";
1514
+ failed: "failed";
1515
+ running: "running";
1516
+ stopped: "stopped";
1517
+ timeout: "timeout";
1518
+ }>;
1519
+ exitCode: z.ZodOptional<z.ZodNumber>;
1520
+ signal: z.ZodOptional<z.ZodString>;
1521
+ stdout: z.ZodString;
1522
+ stderr: z.ZodString;
1523
+ truncated: z.ZodBoolean;
1524
+ error: z.ZodOptional<z.ZodString>;
1525
+ cwd: z.ZodString;
1526
+ jailed: z.ZodBoolean;
1527
+ startedAt: z.ZodNumber;
1528
+ endedAt: z.ZodOptional<z.ZodNumber>;
1529
+ }, z.core.$strip>;
1530
+ };
1531
+ readonly "operate.read": {
1532
+ readonly grant: "operate";
1533
+ readonly input: z.ZodObject<{
1534
+ path: z.ZodString;
1535
+ offset: z.ZodOptional<z.ZodNumber>;
1536
+ limit: z.ZodOptional<z.ZodNumber>;
1537
+ from: z.ZodOptional<z.ZodObject<{
1538
+ conversation: z.ZodOptional<z.ZodString>;
1539
+ title: z.ZodOptional<z.ZodString>;
1540
+ }, z.core.$strip>>;
1541
+ }, z.core.$strip>;
1542
+ readonly output: z.ZodObject<{
1543
+ path: z.ZodString;
1544
+ kind: z.ZodEnum<{
1545
+ directory: "directory";
1546
+ file: "file";
1547
+ }>;
1548
+ content: z.ZodString;
1549
+ bytes: z.ZodOptional<z.ZodNumber>;
1550
+ lines: z.ZodOptional<z.ZodNumber>;
1551
+ binary: z.ZodOptional<z.ZodBoolean>;
1552
+ truncated: z.ZodBoolean;
1553
+ jailed: z.ZodBoolean;
1554
+ }, z.core.$strip>;
1555
+ };
1556
+ readonly "operate.write": {
1557
+ readonly grant: "operate";
1558
+ readonly input: z.ZodObject<{
1559
+ path: z.ZodString;
1560
+ content: z.ZodString;
1561
+ from: z.ZodOptional<z.ZodObject<{
1562
+ conversation: z.ZodOptional<z.ZodString>;
1563
+ title: z.ZodOptional<z.ZodString>;
1564
+ }, z.core.$strip>>;
1565
+ }, z.core.$strip>;
1566
+ readonly output: z.ZodObject<{
1567
+ path: z.ZodString;
1568
+ bytes: z.ZodNumber;
1569
+ jailed: z.ZodBoolean;
1570
+ }, z.core.$strip>;
1571
+ };
1572
+ readonly "task.watch": {
1573
+ readonly grant: "task";
1574
+ readonly input: z.ZodObject<{
1575
+ task: z.ZodString;
1576
+ after: z.ZodOptional<z.ZodNumber>;
1577
+ waitS: z.ZodOptional<z.ZodNumber>;
1578
+ }, z.core.$strip>;
1579
+ readonly output: z.ZodObject<{
1580
+ conversationId: z.ZodString;
1581
+ state: z.ZodEnum<{
1582
+ blocked: "blocked";
1583
+ declined: "declined";
1584
+ failed: "failed";
1585
+ finished: "finished";
1586
+ held: "held";
1587
+ running: "running";
1588
+ stopped: "stopped";
1589
+ }>;
1590
+ title: z.ZodOptional<z.ZodString>;
1591
+ report: z.ZodOptional<z.ZodString>;
1592
+ question: z.ZodOptional<z.ZodObject<{
1593
+ requestId: z.ZodString;
1594
+ questions: z.ZodArray<z.ZodObject<{
1595
+ question: z.ZodString;
1596
+ header: z.ZodString;
1597
+ multiSelect: z.ZodBoolean;
1598
+ options: z.ZodArray<z.ZodObject<{
1599
+ label: z.ZodString;
1600
+ description: z.ZodString;
1601
+ preview: z.ZodOptional<z.ZodString>;
1602
+ }, z.core.$strip>>;
1603
+ }, z.core.$strip>>;
1604
+ }, z.core.$strip>>;
1605
+ waitingOn: z.ZodOptional<z.ZodString>;
1606
+ error: z.ZodOptional<z.ZodString>;
1607
+ version: z.ZodNumber;
1608
+ updatedAt: z.ZodNumber;
1609
+ }, z.core.$strip>;
1610
+ };
1611
+ };
1612
+ export type S2sCallInput<M extends S2sCallMethod> = z.input<(typeof S2S_CALLS)[M]["input"]>;
1613
+ export type S2sCallOutput<M extends S2sCallMethod> = z.output<(typeof S2S_CALLS)[M]["output"]>;
1614
+ export declare const S2S_MAX_HOPS = 2;
1615
+ export {};
1616
+ //# sourceMappingURL=s2s-wire.d.ts.map