wire-mesh-core 1.46.0 → 1.48.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 (91) hide show
  1. package/dist/adapters/frame-codec.d.cts +1 -1
  2. package/dist/adapters/frame-codec.d.mts +1 -1
  3. package/dist/adapters/node-fs-storage.cjs +3 -24
  4. package/dist/adapters/node-identity.d.cts +2 -2
  5. package/dist/adapters/node-identity.d.mts +2 -2
  6. package/dist/adapters/tcp-transport.d.cts +1 -1
  7. package/dist/adapters/tcp-transport.d.mts +1 -1
  8. package/dist/adapters/threshold-identity.cjs +42 -0
  9. package/dist/adapters/threshold-identity.d.cts +33 -0
  10. package/dist/adapters/threshold-identity.d.mts +33 -0
  11. package/dist/adapters/threshold-identity.mjs +41 -0
  12. package/dist/adapters/threshold-wasm.cjs +197 -0
  13. package/dist/adapters/threshold-wasm.d.cts +89 -0
  14. package/dist/adapters/threshold-wasm.d.mts +89 -0
  15. package/dist/adapters/threshold-wasm.mjs +174 -0
  16. package/dist/adapters/tls-transport.d.cts +1 -1
  17. package/dist/adapters/tls-transport.d.mts +1 -1
  18. package/dist/domain/bulk.d.cts +2 -2
  19. package/dist/domain/bulk.d.mts +2 -2
  20. package/dist/domain/capability-grant.cjs +1 -1
  21. package/dist/domain/capability-grant.d.cts +3 -3
  22. package/dist/domain/capability-grant.d.mts +3 -3
  23. package/dist/domain/capability-grant.mjs +1 -1
  24. package/dist/domain/capability-request.cjs +1 -1
  25. package/dist/domain/capability-request.d.cts +2 -2
  26. package/dist/domain/capability-request.d.mts +2 -2
  27. package/dist/domain/capability-request.mjs +1 -1
  28. package/dist/domain/data-sync.d.cts +2 -2
  29. package/dist/domain/data-sync.d.mts +2 -2
  30. package/dist/domain/device-id.d.cts +1 -1
  31. package/dist/domain/device-id.d.mts +1 -1
  32. package/dist/domain/grant-candidates.d.cts +1 -1
  33. package/dist/domain/grant-candidates.d.mts +1 -1
  34. package/dist/domain/handshake.d.cts +1 -1
  35. package/dist/domain/handshake.d.mts +1 -1
  36. package/dist/domain/mesh-session.d.cts +3 -3
  37. package/dist/domain/mesh-session.d.mts +3 -3
  38. package/dist/domain/notice-board.d.cts +3 -3
  39. package/dist/domain/notice-board.d.mts +3 -3
  40. package/dist/domain/relay-hub.d.cts +2 -2
  41. package/dist/domain/relay-hub.d.mts +2 -2
  42. package/dist/domain/relay-use-gate.d.cts +2 -2
  43. package/dist/domain/relay-use-gate.d.mts +2 -2
  44. package/dist/domain/revocation-view.cjs +1 -1
  45. package/dist/domain/revocation-view.d.cts +2 -2
  46. package/dist/domain/revocation-view.d.mts +2 -2
  47. package/dist/domain/revocation-view.mjs +1 -1
  48. package/dist/domain/room-rekey.d.cts +3 -3
  49. package/dist/domain/room-rekey.d.mts +3 -3
  50. package/dist/domain/room-token-verification.cjs +1 -1
  51. package/dist/domain/room-token-verification.d.cts +1 -1
  52. package/dist/domain/room-token-verification.d.mts +1 -1
  53. package/dist/domain/room-token-verification.mjs +1 -1
  54. package/dist/domain/room.d.cts +4 -4
  55. package/dist/domain/room.d.mts +4 -4
  56. package/dist/domain/shard-manifest.d.cts +1 -1
  57. package/dist/domain/shard-manifest.d.mts +1 -1
  58. package/dist/domain/threshold-subject.cjs +35 -0
  59. package/dist/domain/threshold-subject.d.cts +33 -0
  60. package/dist/domain/threshold-subject.d.mts +33 -0
  61. package/dist/domain/threshold-subject.mjs +32 -0
  62. package/dist/domain/tokens.cjs +2 -1
  63. package/dist/domain/tokens.d.cts +2 -2
  64. package/dist/domain/tokens.d.mts +2 -2
  65. package/dist/domain/tokens.mjs +2 -2
  66. package/dist/domain/webrtc-signaling.cjs +1 -1
  67. package/dist/domain/webrtc-signaling.d.cts +2 -2
  68. package/dist/domain/webrtc-signaling.d.mts +2 -2
  69. package/dist/domain/webrtc-signaling.mjs +1 -1
  70. package/dist/generated/protocol.cjs +83 -0
  71. package/dist/generated/protocol.d.cts +2 -2
  72. package/dist/generated/protocol.d.mts +2 -2
  73. package/dist/generated/protocol.mjs +73 -1
  74. package/dist/{identity-DHf0J6IA.d.cts → identity-9TmmK7vP.d.mts} +1 -1
  75. package/dist/{identity-Oelt3uEn.d.mts → identity-CUkDHCRK.d.cts} +1 -1
  76. package/dist/ports/identity.d.cts +1 -1
  77. package/dist/ports/identity.d.mts +1 -1
  78. package/dist/ports/transport.d.cts +1 -1
  79. package/dist/ports/transport.d.mts +1 -1
  80. package/dist/{protocol-D8CU6s2_.d.cts → protocol-CNFRVx9w.d.cts} +277 -1
  81. package/dist/{protocol-D8CU6s2_.d.mts → protocol-CNFRVx9w.d.mts} +277 -1
  82. package/dist/rolldown-runtime-VH7oDXx4.cjs +28 -0
  83. package/dist/{room-token-verification-BQhqt1Rm.d.mts → room-token-verification-BdtM1rQ4.d.mts} +2 -2
  84. package/dist/{room-token-verification-DQGdYNg4.d.cts → room-token-verification-DpOfZOdl.d.cts} +2 -2
  85. package/dist/{tokens-CdQwzCyJ.mjs → tokens-B0dpTLhS.mjs} +2 -2
  86. package/dist/{tokens-Bh82oidM.d.mts → tokens-CVyPoJ6l.d.mts} +5 -3
  87. package/dist/{tokens-B1-MAIST.d.cts → tokens-Cl8sQo7o.d.cts} +5 -3
  88. package/dist/{tokens-DxGVURpB.cjs → tokens-Dh6mG6p_.cjs} +7 -1
  89. package/dist/{transport-BNeF6kDe.d.mts → transport-C7KVkhgb.d.mts} +1 -1
  90. package/dist/{transport-BbSGNRFZ.d.cts → transport-De0zHlaA.d.cts} +1 -1
  91. package/package.json +15 -2
@@ -44,6 +44,16 @@ const manageCommandParamsSchema = z.lazy(() => z.union([
44
44
  ]),
45
45
  z.union([z.lazy(() => roomJoinSchema), z.lazy(() => roomInviteSchema)]),
46
46
  z.lazy(() => roomRekeySchema),
47
+ z.union([
48
+ z.lazy(() => thresholdCommitSchema),
49
+ z.lazy(() => thresholdSignSchema),
50
+ z.lazy(() => thresholdAbortSchema)
51
+ ]),
52
+ z.union([
53
+ z.lazy(() => thresholdKeygenRound1Schema),
54
+ z.lazy(() => thresholdKeygenRound2Schema),
55
+ z.lazy(() => thresholdKeygenConfirmSchema)
56
+ ]),
47
57
  z.union([
48
58
  z.lazy(() => webrtcOfferSchema),
49
59
  z.lazy(() => webrtcAnswerSchema),
@@ -326,6 +336,68 @@ const streamEndFrameSchema = z.lazy(() => z.object({
326
336
  "exit-code": z.number().int().optional(),
327
337
  "exit-signal": z.number().int().optional()
328
338
  }));
339
+ const sessionIdSchema = z.lazy(() => z.number().int().nonnegative());
340
+ const thresholdSubjectSchema = z.lazy(() => z.object({
341
+ "kind": z.union([
342
+ z.literal("capability-token"),
343
+ z.literal("revocation-entry"),
344
+ z.literal("handle-record"),
345
+ z.literal("room-notice"),
346
+ z.string()
347
+ ]),
348
+ "protected": z.instanceof(Uint8Array),
349
+ "payload": z.instanceof(Uint8Array)
350
+ }));
351
+ const thresholdCommitmentSchema = z.lazy(() => z.object({
352
+ "participant": z.lazy(() => deviceIdSchema),
353
+ "hiding": z.instanceof(Uint8Array),
354
+ "binding": z.instanceof(Uint8Array)
355
+ }));
356
+ const thresholdCommitSchema = z.lazy(() => z.object({
357
+ "verb": z.literal("threshold.commit"),
358
+ "session-id": z.lazy(() => sessionIdSchema),
359
+ "group": z.lazy(() => deviceIdSchema),
360
+ "subject": z.lazy(() => thresholdSubjectSchema),
361
+ "deadline": z.number().int().nonnegative()
362
+ }));
363
+ const thresholdSignSchema = z.lazy(() => z.object({
364
+ "verb": z.literal("threshold.sign"),
365
+ "session-id": z.lazy(() => sessionIdSchema),
366
+ "commitments": z.array(z.lazy(() => thresholdCommitmentSchema))
367
+ }));
368
+ const thresholdShareClaimsSchema = z.lazy(() => z.object({
369
+ "session-id": z.lazy(() => sessionIdSchema),
370
+ "group": z.lazy(() => deviceIdSchema),
371
+ "share": z.instanceof(Uint8Array),
372
+ "issuer": z.lazy(() => deviceIdSchema),
373
+ "issuer-key": z.lazy(() => identityKeySchema)
374
+ }));
375
+ const thresholdShareEnvelopeSchema = z.lazy(() => z.lazy(() => coseSign1Schema));
376
+ const thresholdAbortSchema = z.lazy(() => z.object({
377
+ "verb": z.literal("threshold.abort"),
378
+ "session-id": z.lazy(() => sessionIdSchema),
379
+ "reason": z.string().optional()
380
+ }));
381
+ const thresholdKeygenRound1Schema = z.lazy(() => z.object({
382
+ "verb": z.literal("threshold.keygen-round1"),
383
+ "session-id": z.lazy(() => sessionIdSchema),
384
+ "threshold": z.number().int().nonnegative(),
385
+ "participants": z.array(z.lazy(() => deviceIdSchema)),
386
+ "commitment": z.array(z.instanceof(Uint8Array)),
387
+ "proof-of-knowledge": z.instanceof(Uint8Array).optional(),
388
+ "existing-group-key": z.instanceof(Uint8Array).optional()
389
+ }));
390
+ const thresholdKeygenRound2Schema = z.lazy(() => z.object({
391
+ "verb": z.literal("threshold.keygen-round2"),
392
+ "session-id": z.lazy(() => sessionIdSchema),
393
+ "share": z.instanceof(Uint8Array)
394
+ }));
395
+ const thresholdKeygenConfirmSchema = z.lazy(() => z.object({
396
+ "verb": z.literal("threshold.keygen-confirm"),
397
+ "session-id": z.lazy(() => sessionIdSchema),
398
+ "transcript-digest": z.instanceof(Uint8Array),
399
+ "group-key": z.instanceof(Uint8Array)
400
+ }));
329
401
  const capabilityVerbSchema = z.lazy(() => z.union([
330
402
  z.lazy(() => coreCapabilitySchema),
331
403
  z.lazy(() => namespacedCapabilitySchema),
@@ -459,4 +531,4 @@ const iceCandidateInitSchema = z.lazy(() => z.object({
459
531
  "username-fragment": z.string().optional()
460
532
  }));
461
533
  //#endregion
462
- export { bulkAckFrameSchema, bulkCancelSchema, bulkDataFrameSchema, bulkEndFrameSchema, bulkOpenSchema, bulkResumeSchema, candidateKindSchema, candidatesFrameSchema, capabilityGrantOkSchema, capabilityGrantSchema, capabilityRequestSchema, capabilityScopeSchema, capabilityTokenSchema, capabilityVerbSchema, closeFrameSchema, coordinatorFrameSchema, coreCapabilitySchema, coreDomainNameSchema, coseHeaderAlgSchema, coseHeaderKidSchema, coseHeaderLabelSchema, coseSign1Schema, coseTokenHeadersSchema, dataEntriesFrameSchema, dataHaveFrameSchema, dataRequestFrameSchema, deviceIdHexSchema, deviceIdSchema, dmRoomPathSchema, domainIdSchema, execListSchema, execSessionInfoSchema, frameSchema, frameVariantSchema, gossipFrameSchema, handleClaimsSchema, handleRecordSchema, handshakeFrameSchema, iceCandidateInitSchema, identityKeySchema, manageCommandParamsSchema, manageCommandSchema, manageErrorSchema, manageOkSchema, manageRequestFrameSchema, manageResponseFrameSchema, messageRefSchema, namespacedCapabilitySchema, namespacedDomainIdSchema, observedAddressFrameSchema, ownerNamedRoomPathSchema, peerAdvertSchema, peerIdentitySchema, pingFrameSchema, privateUseCapabilitySchema, privateUseDomainIdSchema, procKillSchema, procSignalSchema, procSpawnSchema, protocolVersionSchema, ptyKillSchema, ptyResizeSchema, ptySpawnSchema, ptyWriteSchema, relayConnectFrameSchema, relayDataFrameSchema, relayInboundFrameSchema, relayOfferFrameSchema, revocationAnnounceFrameSchema, revocationClaimsSchema, revocationEntrySchema, roomInviteSchema, roomJoinOkSchema, roomJoinSchema, roomLeaveSchema, roomMemberSchema, roomMembersOkSchema, roomMembersSchema, roomNoticeClaimsSchema, roomNoticeSchema, roomPathSchema, roomReadSchema, roomRekeySchema, roomSendSchema, sfuTrackEntrySchema, sfuTrackMapSchema, streamAckFrameSchema, streamDataFrameSchema, streamEndFrameSchema, streamSessionSchema, syncPunchFrameSchema, tokenClaimsSchema, transferIdSchema, webrtcAnswerSchema, webrtcIceCandidateSchema, webrtcOfferSchema, wireCandidateSchema };
534
+ export { bulkAckFrameSchema, bulkCancelSchema, bulkDataFrameSchema, bulkEndFrameSchema, bulkOpenSchema, bulkResumeSchema, candidateKindSchema, candidatesFrameSchema, capabilityGrantOkSchema, capabilityGrantSchema, capabilityRequestSchema, capabilityScopeSchema, capabilityTokenSchema, capabilityVerbSchema, closeFrameSchema, coordinatorFrameSchema, coreCapabilitySchema, coreDomainNameSchema, coseHeaderAlgSchema, coseHeaderKidSchema, coseHeaderLabelSchema, coseSign1Schema, coseTokenHeadersSchema, dataEntriesFrameSchema, dataHaveFrameSchema, dataRequestFrameSchema, deviceIdHexSchema, deviceIdSchema, dmRoomPathSchema, domainIdSchema, execListSchema, execSessionInfoSchema, frameSchema, frameVariantSchema, gossipFrameSchema, handleClaimsSchema, handleRecordSchema, handshakeFrameSchema, iceCandidateInitSchema, identityKeySchema, manageCommandParamsSchema, manageCommandSchema, manageErrorSchema, manageOkSchema, manageRequestFrameSchema, manageResponseFrameSchema, messageRefSchema, namespacedCapabilitySchema, namespacedDomainIdSchema, observedAddressFrameSchema, ownerNamedRoomPathSchema, peerAdvertSchema, peerIdentitySchema, pingFrameSchema, privateUseCapabilitySchema, privateUseDomainIdSchema, procKillSchema, procSignalSchema, procSpawnSchema, protocolVersionSchema, ptyKillSchema, ptyResizeSchema, ptySpawnSchema, ptyWriteSchema, relayConnectFrameSchema, relayDataFrameSchema, relayInboundFrameSchema, relayOfferFrameSchema, revocationAnnounceFrameSchema, revocationClaimsSchema, revocationEntrySchema, roomInviteSchema, roomJoinOkSchema, roomJoinSchema, roomLeaveSchema, roomMemberSchema, roomMembersOkSchema, roomMembersSchema, roomNoticeClaimsSchema, roomNoticeSchema, roomPathSchema, roomReadSchema, roomRekeySchema, roomSendSchema, sessionIdSchema, sfuTrackEntrySchema, sfuTrackMapSchema, streamAckFrameSchema, streamDataFrameSchema, streamEndFrameSchema, streamSessionSchema, syncPunchFrameSchema, thresholdAbortSchema, thresholdCommitSchema, thresholdCommitmentSchema, thresholdKeygenConfirmSchema, thresholdKeygenRound1Schema, thresholdKeygenRound2Schema, thresholdShareClaimsSchema, thresholdShareEnvelopeSchema, thresholdSignSchema, thresholdSubjectSchema, tokenClaimsSchema, transferIdSchema, webrtcAnswerSchema, webrtcIceCandidateSchema, webrtcOfferSchema, wireCandidateSchema };
@@ -1,4 +1,4 @@
1
- import { B as IdentityKey, D as DeviceId } from "./protocol-D8CU6s2_.cjs";
1
+ import { B as IdentityKey, D as DeviceId } from "./protocol-CNFRVx9w.mjs";
2
2
  //#region src/ports/identity.d.ts
3
3
  /**
4
4
  * Wraps the local node's own identity plus the signing/verification primitives capability-token handling needs -- never hardcoded to one crypto library's own API shape (Node's webcrypto, a WASM implementation, a hardware key, etc. can all satisfy this same contract).
@@ -1,4 +1,4 @@
1
- import { B as IdentityKey, D as DeviceId } from "./protocol-D8CU6s2_.mjs";
1
+ import { B as IdentityKey, D as DeviceId } from "./protocol-CNFRVx9w.cjs";
2
2
  //#region src/ports/identity.d.ts
3
3
  /**
4
4
  * Wraps the local node's own identity plus the signing/verification primitives capability-token handling needs -- never hardcoded to one crypto library's own API shape (Node's webcrypto, a WASM implementation, a hardware key, etc. can all satisfy this same contract).
@@ -1,2 +1,2 @@
1
- import { t as IdentityPort } from "../identity-DHf0J6IA.cjs";
1
+ import { t as IdentityPort } from "../identity-CUkDHCRK.cjs";
2
2
  export { IdentityPort };
@@ -1,2 +1,2 @@
1
- import { t as IdentityPort } from "../identity-Oelt3uEn.mjs";
1
+ import { t as IdentityPort } from "../identity-9TmmK7vP.mjs";
2
2
  export { IdentityPort };
@@ -1,2 +1,2 @@
1
- import { n as Listener, r as Transport, t as Connection } from "../transport-BbSGNRFZ.cjs";
1
+ import { n as Listener, r as Transport, t as Connection } from "../transport-De0zHlaA.cjs";
2
2
  export { Connection, Listener, Transport };
@@ -1,2 +1,2 @@
1
- import { n as Listener, r as Transport, t as Connection } from "../transport-BNeF6kDe.mjs";
1
+ import { n as Listener, r as Transport, t as Connection } from "../transport-C7KVkhgb.mjs";
2
2
  export { Connection, Listener, Transport };
@@ -107,6 +107,45 @@ declare const manageCommandParamsSchema: z.ZodLazy<z.ZodUnion<readonly [z.ZodUni
107
107
  "key-epoch": z.ZodNumber;
108
108
  "wrapped-key": z.ZodUnion<readonly [z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>, z.ZodArray<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>]>;
109
109
  }, z.core.$catchall<z.ZodUnknown>>>>, z.ZodUnion<readonly [z.ZodLazy<z.ZodLazy<z.ZodObject<{
110
+ verb: z.ZodLiteral<"threshold.commit">;
111
+ "session-id": z.ZodLazy<z.ZodLazy<z.ZodNumber>>;
112
+ group: z.ZodLazy<z.ZodLazy<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>>;
113
+ subject: z.ZodLazy<z.ZodLazy<z.ZodObject<{
114
+ kind: z.ZodUnion<readonly [z.ZodLiteral<"capability-token">, z.ZodLiteral<"revocation-entry">, z.ZodLiteral<"handle-record">, z.ZodLiteral<"room-notice">, z.ZodString]>;
115
+ protected: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
116
+ payload: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
117
+ }, z.core.$strip>>>;
118
+ deadline: z.ZodNumber;
119
+ }, z.core.$strip>>>, z.ZodLazy<z.ZodLazy<z.ZodObject<{
120
+ verb: z.ZodLiteral<"threshold.sign">;
121
+ "session-id": z.ZodLazy<z.ZodLazy<z.ZodNumber>>;
122
+ commitments: z.ZodArray<z.ZodLazy<z.ZodLazy<z.ZodObject<{
123
+ participant: z.ZodLazy<z.ZodLazy<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>>;
124
+ hiding: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
125
+ binding: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
126
+ }, z.core.$strip>>>>;
127
+ }, z.core.$strip>>>, z.ZodLazy<z.ZodLazy<z.ZodObject<{
128
+ verb: z.ZodLiteral<"threshold.abort">;
129
+ "session-id": z.ZodLazy<z.ZodLazy<z.ZodNumber>>;
130
+ reason: z.ZodOptional<z.ZodString>;
131
+ }, z.core.$strip>>>]>, z.ZodUnion<readonly [z.ZodLazy<z.ZodLazy<z.ZodObject<{
132
+ verb: z.ZodLiteral<"threshold.keygen-round1">;
133
+ "session-id": z.ZodLazy<z.ZodLazy<z.ZodNumber>>;
134
+ threshold: z.ZodNumber;
135
+ participants: z.ZodArray<z.ZodLazy<z.ZodLazy<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>>>;
136
+ commitment: z.ZodArray<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>;
137
+ "proof-of-knowledge": z.ZodOptional<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>;
138
+ "existing-group-key": z.ZodOptional<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>;
139
+ }, z.core.$strip>>>, z.ZodLazy<z.ZodLazy<z.ZodObject<{
140
+ verb: z.ZodLiteral<"threshold.keygen-round2">;
141
+ "session-id": z.ZodLazy<z.ZodLazy<z.ZodNumber>>;
142
+ share: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
143
+ }, z.core.$strip>>>, z.ZodLazy<z.ZodLazy<z.ZodObject<{
144
+ verb: z.ZodLiteral<"threshold.keygen-confirm">;
145
+ "session-id": z.ZodLazy<z.ZodLazy<z.ZodNumber>>;
146
+ "transcript-digest": z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
147
+ "group-key": z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
148
+ }, z.core.$strip>>>]>, z.ZodUnion<readonly [z.ZodLazy<z.ZodLazy<z.ZodObject<{
110
149
  verb: z.ZodLiteral<"webrtc.offer">;
111
150
  "negotiation-id": z.ZodNumber;
112
151
  sdp: z.ZodString;
@@ -379,6 +418,45 @@ declare const frameVariantSchema: z.ZodLazy<z.ZodUnion<readonly [z.ZodLazy<z.Zod
379
418
  "key-epoch": z.ZodNumber;
380
419
  "wrapped-key": z.ZodUnion<readonly [z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>, z.ZodArray<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>]>;
381
420
  }, z.core.$catchall<z.ZodUnknown>>>>, z.ZodUnion<readonly [z.ZodLazy<z.ZodLazy<z.ZodObject<{
421
+ verb: z.ZodLiteral<"threshold.commit">;
422
+ "session-id": z.ZodLazy<z.ZodLazy<z.ZodNumber>>;
423
+ group: z.ZodLazy<z.ZodLazy<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>>;
424
+ subject: z.ZodLazy<z.ZodLazy<z.ZodObject<{
425
+ kind: z.ZodUnion<readonly [z.ZodLiteral<"capability-token">, z.ZodLiteral<"revocation-entry">, z.ZodLiteral<"handle-record">, z.ZodLiteral<"room-notice">, z.ZodString]>;
426
+ protected: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
427
+ payload: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
428
+ }, z.core.$strip>>>;
429
+ deadline: z.ZodNumber;
430
+ }, z.core.$strip>>>, z.ZodLazy<z.ZodLazy<z.ZodObject<{
431
+ verb: z.ZodLiteral<"threshold.sign">;
432
+ "session-id": z.ZodLazy<z.ZodLazy<z.ZodNumber>>;
433
+ commitments: z.ZodArray<z.ZodLazy<z.ZodLazy<z.ZodObject<{
434
+ participant: z.ZodLazy<z.ZodLazy<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>>;
435
+ hiding: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
436
+ binding: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
437
+ }, z.core.$strip>>>>;
438
+ }, z.core.$strip>>>, z.ZodLazy<z.ZodLazy<z.ZodObject<{
439
+ verb: z.ZodLiteral<"threshold.abort">;
440
+ "session-id": z.ZodLazy<z.ZodLazy<z.ZodNumber>>;
441
+ reason: z.ZodOptional<z.ZodString>;
442
+ }, z.core.$strip>>>]>, z.ZodUnion<readonly [z.ZodLazy<z.ZodLazy<z.ZodObject<{
443
+ verb: z.ZodLiteral<"threshold.keygen-round1">;
444
+ "session-id": z.ZodLazy<z.ZodLazy<z.ZodNumber>>;
445
+ threshold: z.ZodNumber;
446
+ participants: z.ZodArray<z.ZodLazy<z.ZodLazy<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>>>;
447
+ commitment: z.ZodArray<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>;
448
+ "proof-of-knowledge": z.ZodOptional<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>;
449
+ "existing-group-key": z.ZodOptional<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>;
450
+ }, z.core.$strip>>>, z.ZodLazy<z.ZodLazy<z.ZodObject<{
451
+ verb: z.ZodLiteral<"threshold.keygen-round2">;
452
+ "session-id": z.ZodLazy<z.ZodLazy<z.ZodNumber>>;
453
+ share: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
454
+ }, z.core.$strip>>>, z.ZodLazy<z.ZodLazy<z.ZodObject<{
455
+ verb: z.ZodLiteral<"threshold.keygen-confirm">;
456
+ "session-id": z.ZodLazy<z.ZodLazy<z.ZodNumber>>;
457
+ "transcript-digest": z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
458
+ "group-key": z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
459
+ }, z.core.$strip>>>]>, z.ZodUnion<readonly [z.ZodLazy<z.ZodLazy<z.ZodObject<{
382
460
  verb: z.ZodLiteral<"webrtc.offer">;
383
461
  "negotiation-id": z.ZodNumber;
384
462
  sdp: z.ZodString;
@@ -618,6 +696,45 @@ declare const frameSchema: z.ZodLazy<z.ZodLazy<z.ZodLazy<z.ZodUnion<readonly [z.
618
696
  "key-epoch": z.ZodNumber;
619
697
  "wrapped-key": z.ZodUnion<readonly [z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>, z.ZodArray<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>]>;
620
698
  }, z.core.$catchall<z.ZodUnknown>>>>, z.ZodUnion<readonly [z.ZodLazy<z.ZodLazy<z.ZodObject<{
699
+ verb: z.ZodLiteral<"threshold.commit">;
700
+ "session-id": z.ZodLazy<z.ZodLazy<z.ZodNumber>>;
701
+ group: z.ZodLazy<z.ZodLazy<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>>;
702
+ subject: z.ZodLazy<z.ZodLazy<z.ZodObject<{
703
+ kind: z.ZodUnion<readonly [z.ZodLiteral<"capability-token">, z.ZodLiteral<"revocation-entry">, z.ZodLiteral<"handle-record">, z.ZodLiteral<"room-notice">, z.ZodString]>;
704
+ protected: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
705
+ payload: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
706
+ }, z.core.$strip>>>;
707
+ deadline: z.ZodNumber;
708
+ }, z.core.$strip>>>, z.ZodLazy<z.ZodLazy<z.ZodObject<{
709
+ verb: z.ZodLiteral<"threshold.sign">;
710
+ "session-id": z.ZodLazy<z.ZodLazy<z.ZodNumber>>;
711
+ commitments: z.ZodArray<z.ZodLazy<z.ZodLazy<z.ZodObject<{
712
+ participant: z.ZodLazy<z.ZodLazy<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>>;
713
+ hiding: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
714
+ binding: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
715
+ }, z.core.$strip>>>>;
716
+ }, z.core.$strip>>>, z.ZodLazy<z.ZodLazy<z.ZodObject<{
717
+ verb: z.ZodLiteral<"threshold.abort">;
718
+ "session-id": z.ZodLazy<z.ZodLazy<z.ZodNumber>>;
719
+ reason: z.ZodOptional<z.ZodString>;
720
+ }, z.core.$strip>>>]>, z.ZodUnion<readonly [z.ZodLazy<z.ZodLazy<z.ZodObject<{
721
+ verb: z.ZodLiteral<"threshold.keygen-round1">;
722
+ "session-id": z.ZodLazy<z.ZodLazy<z.ZodNumber>>;
723
+ threshold: z.ZodNumber;
724
+ participants: z.ZodArray<z.ZodLazy<z.ZodLazy<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>>>;
725
+ commitment: z.ZodArray<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>;
726
+ "proof-of-knowledge": z.ZodOptional<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>;
727
+ "existing-group-key": z.ZodOptional<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>;
728
+ }, z.core.$strip>>>, z.ZodLazy<z.ZodLazy<z.ZodObject<{
729
+ verb: z.ZodLiteral<"threshold.keygen-round2">;
730
+ "session-id": z.ZodLazy<z.ZodLazy<z.ZodNumber>>;
731
+ share: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
732
+ }, z.core.$strip>>>, z.ZodLazy<z.ZodLazy<z.ZodObject<{
733
+ verb: z.ZodLiteral<"threshold.keygen-confirm">;
734
+ "session-id": z.ZodLazy<z.ZodLazy<z.ZodNumber>>;
735
+ "transcript-digest": z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
736
+ "group-key": z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
737
+ }, z.core.$strip>>>]>, z.ZodUnion<readonly [z.ZodLazy<z.ZodLazy<z.ZodObject<{
621
738
  verb: z.ZodLiteral<"webrtc.offer">;
622
739
  "negotiation-id": z.ZodNumber;
623
740
  sdp: z.ZodString;
@@ -828,6 +945,45 @@ declare const manageCommandSchema: z.ZodLazy<z.ZodObject<{
828
945
  "key-epoch": z.ZodNumber;
829
946
  "wrapped-key": z.ZodUnion<readonly [z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>, z.ZodArray<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>]>;
830
947
  }, z.core.$catchall<z.ZodUnknown>>>>, z.ZodUnion<readonly [z.ZodLazy<z.ZodLazy<z.ZodObject<{
948
+ verb: z.ZodLiteral<"threshold.commit">;
949
+ "session-id": z.ZodLazy<z.ZodLazy<z.ZodNumber>>;
950
+ group: z.ZodLazy<z.ZodLazy<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>>;
951
+ subject: z.ZodLazy<z.ZodLazy<z.ZodObject<{
952
+ kind: z.ZodUnion<readonly [z.ZodLiteral<"capability-token">, z.ZodLiteral<"revocation-entry">, z.ZodLiteral<"handle-record">, z.ZodLiteral<"room-notice">, z.ZodString]>;
953
+ protected: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
954
+ payload: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
955
+ }, z.core.$strip>>>;
956
+ deadline: z.ZodNumber;
957
+ }, z.core.$strip>>>, z.ZodLazy<z.ZodLazy<z.ZodObject<{
958
+ verb: z.ZodLiteral<"threshold.sign">;
959
+ "session-id": z.ZodLazy<z.ZodLazy<z.ZodNumber>>;
960
+ commitments: z.ZodArray<z.ZodLazy<z.ZodLazy<z.ZodObject<{
961
+ participant: z.ZodLazy<z.ZodLazy<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>>;
962
+ hiding: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
963
+ binding: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
964
+ }, z.core.$strip>>>>;
965
+ }, z.core.$strip>>>, z.ZodLazy<z.ZodLazy<z.ZodObject<{
966
+ verb: z.ZodLiteral<"threshold.abort">;
967
+ "session-id": z.ZodLazy<z.ZodLazy<z.ZodNumber>>;
968
+ reason: z.ZodOptional<z.ZodString>;
969
+ }, z.core.$strip>>>]>, z.ZodUnion<readonly [z.ZodLazy<z.ZodLazy<z.ZodObject<{
970
+ verb: z.ZodLiteral<"threshold.keygen-round1">;
971
+ "session-id": z.ZodLazy<z.ZodLazy<z.ZodNumber>>;
972
+ threshold: z.ZodNumber;
973
+ participants: z.ZodArray<z.ZodLazy<z.ZodLazy<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>>>;
974
+ commitment: z.ZodArray<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>;
975
+ "proof-of-knowledge": z.ZodOptional<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>;
976
+ "existing-group-key": z.ZodOptional<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>;
977
+ }, z.core.$strip>>>, z.ZodLazy<z.ZodLazy<z.ZodObject<{
978
+ verb: z.ZodLiteral<"threshold.keygen-round2">;
979
+ "session-id": z.ZodLazy<z.ZodLazy<z.ZodNumber>>;
980
+ share: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
981
+ }, z.core.$strip>>>, z.ZodLazy<z.ZodLazy<z.ZodObject<{
982
+ verb: z.ZodLiteral<"threshold.keygen-confirm">;
983
+ "session-id": z.ZodLazy<z.ZodLazy<z.ZodNumber>>;
984
+ "transcript-digest": z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
985
+ "group-key": z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
986
+ }, z.core.$strip>>>]>, z.ZodUnion<readonly [z.ZodLazy<z.ZodLazy<z.ZodObject<{
831
987
  verb: z.ZodLiteral<"webrtc.offer">;
832
988
  "negotiation-id": z.ZodNumber;
833
989
  sdp: z.ZodString;
@@ -949,6 +1105,45 @@ declare const manageRequestFrameSchema: z.ZodLazy<z.ZodObject<{
949
1105
  "key-epoch": z.ZodNumber;
950
1106
  "wrapped-key": z.ZodUnion<readonly [z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>, z.ZodArray<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>]>;
951
1107
  }, z.core.$catchall<z.ZodUnknown>>>>, z.ZodUnion<readonly [z.ZodLazy<z.ZodLazy<z.ZodObject<{
1108
+ verb: z.ZodLiteral<"threshold.commit">;
1109
+ "session-id": z.ZodLazy<z.ZodLazy<z.ZodNumber>>;
1110
+ group: z.ZodLazy<z.ZodLazy<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>>;
1111
+ subject: z.ZodLazy<z.ZodLazy<z.ZodObject<{
1112
+ kind: z.ZodUnion<readonly [z.ZodLiteral<"capability-token">, z.ZodLiteral<"revocation-entry">, z.ZodLiteral<"handle-record">, z.ZodLiteral<"room-notice">, z.ZodString]>;
1113
+ protected: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
1114
+ payload: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
1115
+ }, z.core.$strip>>>;
1116
+ deadline: z.ZodNumber;
1117
+ }, z.core.$strip>>>, z.ZodLazy<z.ZodLazy<z.ZodObject<{
1118
+ verb: z.ZodLiteral<"threshold.sign">;
1119
+ "session-id": z.ZodLazy<z.ZodLazy<z.ZodNumber>>;
1120
+ commitments: z.ZodArray<z.ZodLazy<z.ZodLazy<z.ZodObject<{
1121
+ participant: z.ZodLazy<z.ZodLazy<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>>;
1122
+ hiding: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
1123
+ binding: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
1124
+ }, z.core.$strip>>>>;
1125
+ }, z.core.$strip>>>, z.ZodLazy<z.ZodLazy<z.ZodObject<{
1126
+ verb: z.ZodLiteral<"threshold.abort">;
1127
+ "session-id": z.ZodLazy<z.ZodLazy<z.ZodNumber>>;
1128
+ reason: z.ZodOptional<z.ZodString>;
1129
+ }, z.core.$strip>>>]>, z.ZodUnion<readonly [z.ZodLazy<z.ZodLazy<z.ZodObject<{
1130
+ verb: z.ZodLiteral<"threshold.keygen-round1">;
1131
+ "session-id": z.ZodLazy<z.ZodLazy<z.ZodNumber>>;
1132
+ threshold: z.ZodNumber;
1133
+ participants: z.ZodArray<z.ZodLazy<z.ZodLazy<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>>>;
1134
+ commitment: z.ZodArray<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>;
1135
+ "proof-of-knowledge": z.ZodOptional<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>;
1136
+ "existing-group-key": z.ZodOptional<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>;
1137
+ }, z.core.$strip>>>, z.ZodLazy<z.ZodLazy<z.ZodObject<{
1138
+ verb: z.ZodLiteral<"threshold.keygen-round2">;
1139
+ "session-id": z.ZodLazy<z.ZodLazy<z.ZodNumber>>;
1140
+ share: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
1141
+ }, z.core.$strip>>>, z.ZodLazy<z.ZodLazy<z.ZodObject<{
1142
+ verb: z.ZodLiteral<"threshold.keygen-confirm">;
1143
+ "session-id": z.ZodLazy<z.ZodLazy<z.ZodNumber>>;
1144
+ "transcript-digest": z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
1145
+ "group-key": z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
1146
+ }, z.core.$strip>>>]>, z.ZodUnion<readonly [z.ZodLazy<z.ZodLazy<z.ZodObject<{
952
1147
  verb: z.ZodLiteral<"webrtc.offer">;
953
1148
  "negotiation-id": z.ZodNumber;
954
1149
  sdp: z.ZodString;
@@ -1154,6 +1349,76 @@ declare const streamEndFrameSchema: z.ZodLazy<z.ZodObject<{
1154
1349
  "exit-code": z.ZodOptional<z.ZodNumber>;
1155
1350
  "exit-signal": z.ZodOptional<z.ZodNumber>;
1156
1351
  }, z.core.$strip>>;
1352
+ declare const sessionIdSchema: z.ZodLazy<z.ZodNumber>;
1353
+ declare const thresholdSubjectSchema: z.ZodLazy<z.ZodObject<{
1354
+ kind: z.ZodUnion<readonly [z.ZodLiteral<"capability-token">, z.ZodLiteral<"revocation-entry">, z.ZodLiteral<"handle-record">, z.ZodLiteral<"room-notice">, z.ZodString]>;
1355
+ protected: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
1356
+ payload: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
1357
+ }, z.core.$strip>>;
1358
+ declare const thresholdCommitmentSchema: z.ZodLazy<z.ZodObject<{
1359
+ participant: z.ZodLazy<z.ZodLazy<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>>;
1360
+ hiding: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
1361
+ binding: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
1362
+ }, z.core.$strip>>;
1363
+ declare const thresholdCommitSchema: z.ZodLazy<z.ZodObject<{
1364
+ verb: z.ZodLiteral<"threshold.commit">;
1365
+ "session-id": z.ZodLazy<z.ZodLazy<z.ZodNumber>>;
1366
+ group: z.ZodLazy<z.ZodLazy<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>>;
1367
+ subject: z.ZodLazy<z.ZodLazy<z.ZodObject<{
1368
+ kind: z.ZodUnion<readonly [z.ZodLiteral<"capability-token">, z.ZodLiteral<"revocation-entry">, z.ZodLiteral<"handle-record">, z.ZodLiteral<"room-notice">, z.ZodString]>;
1369
+ protected: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
1370
+ payload: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
1371
+ }, z.core.$strip>>>;
1372
+ deadline: z.ZodNumber;
1373
+ }, z.core.$strip>>;
1374
+ declare const thresholdSignSchema: z.ZodLazy<z.ZodObject<{
1375
+ verb: z.ZodLiteral<"threshold.sign">;
1376
+ "session-id": z.ZodLazy<z.ZodLazy<z.ZodNumber>>;
1377
+ commitments: z.ZodArray<z.ZodLazy<z.ZodLazy<z.ZodObject<{
1378
+ participant: z.ZodLazy<z.ZodLazy<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>>;
1379
+ hiding: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
1380
+ binding: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
1381
+ }, z.core.$strip>>>>;
1382
+ }, z.core.$strip>>;
1383
+ declare const thresholdShareClaimsSchema: z.ZodLazy<z.ZodObject<{
1384
+ "session-id": z.ZodLazy<z.ZodLazy<z.ZodNumber>>;
1385
+ group: z.ZodLazy<z.ZodLazy<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>>;
1386
+ share: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
1387
+ issuer: z.ZodLazy<z.ZodLazy<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>>;
1388
+ "issuer-key": z.ZodLazy<z.ZodLazy<z.ZodObject<{
1389
+ alg: z.ZodNumber;
1390
+ "public-key": z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
1391
+ }, z.core.$strip>>>;
1392
+ }, z.core.$strip>>;
1393
+ declare const thresholdShareEnvelopeSchema: z.ZodLazy<z.ZodLazy<z.ZodLazy<z.ZodTuple<[z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>, z.ZodLazy<z.ZodLazy<z.ZodObject<{
1394
+ "1": z.ZodOptional<z.ZodNumber>;
1395
+ "4": z.ZodOptional<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>;
1396
+ }, z.core.$catchall<z.ZodUnknown>>>>, z.ZodUnion<readonly [z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>, z.ZodNull]>, z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>], null>>>>;
1397
+ declare const thresholdAbortSchema: z.ZodLazy<z.ZodObject<{
1398
+ verb: z.ZodLiteral<"threshold.abort">;
1399
+ "session-id": z.ZodLazy<z.ZodLazy<z.ZodNumber>>;
1400
+ reason: z.ZodOptional<z.ZodString>;
1401
+ }, z.core.$strip>>;
1402
+ declare const thresholdKeygenRound1Schema: z.ZodLazy<z.ZodObject<{
1403
+ verb: z.ZodLiteral<"threshold.keygen-round1">;
1404
+ "session-id": z.ZodLazy<z.ZodLazy<z.ZodNumber>>;
1405
+ threshold: z.ZodNumber;
1406
+ participants: z.ZodArray<z.ZodLazy<z.ZodLazy<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>>>;
1407
+ commitment: z.ZodArray<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>;
1408
+ "proof-of-knowledge": z.ZodOptional<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>;
1409
+ "existing-group-key": z.ZodOptional<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>;
1410
+ }, z.core.$strip>>;
1411
+ declare const thresholdKeygenRound2Schema: z.ZodLazy<z.ZodObject<{
1412
+ verb: z.ZodLiteral<"threshold.keygen-round2">;
1413
+ "session-id": z.ZodLazy<z.ZodLazy<z.ZodNumber>>;
1414
+ share: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
1415
+ }, z.core.$strip>>;
1416
+ declare const thresholdKeygenConfirmSchema: z.ZodLazy<z.ZodObject<{
1417
+ verb: z.ZodLiteral<"threshold.keygen-confirm">;
1418
+ "session-id": z.ZodLazy<z.ZodLazy<z.ZodNumber>>;
1419
+ "transcript-digest": z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
1420
+ "group-key": z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
1421
+ }, z.core.$strip>>;
1157
1422
  declare const capabilityVerbSchema: z.ZodLazy<z.ZodUnion<readonly [z.ZodLazy<z.ZodLazy<z.ZodString>>, z.ZodLazy<z.ZodLazy<z.ZodString>>, z.ZodLazy<z.ZodLazy<z.ZodString>>]>>;
1158
1423
  declare const coreCapabilitySchema: z.ZodLazy<z.ZodString>;
1159
1424
  declare const namespacedCapabilitySchema: z.ZodLazy<z.ZodString>;
@@ -1369,6 +1634,17 @@ type StreamSession = z.infer<typeof streamSessionSchema>;
1369
1634
  type StreamDataFrame = z.infer<typeof streamDataFrameSchema>;
1370
1635
  type StreamAckFrame = z.infer<typeof streamAckFrameSchema>;
1371
1636
  type StreamEndFrame = z.infer<typeof streamEndFrameSchema>;
1637
+ type SessionId = z.infer<typeof sessionIdSchema>;
1638
+ type ThresholdSubject = z.infer<typeof thresholdSubjectSchema>;
1639
+ type ThresholdCommitment = z.infer<typeof thresholdCommitmentSchema>;
1640
+ type ThresholdCommit = z.infer<typeof thresholdCommitSchema>;
1641
+ type ThresholdSign = z.infer<typeof thresholdSignSchema>;
1642
+ type ThresholdShareClaims = z.infer<typeof thresholdShareClaimsSchema>;
1643
+ type ThresholdShareEnvelope = z.infer<typeof thresholdShareEnvelopeSchema>;
1644
+ type ThresholdAbort = z.infer<typeof thresholdAbortSchema>;
1645
+ type ThresholdKeygenRound1 = z.infer<typeof thresholdKeygenRound1Schema>;
1646
+ type ThresholdKeygenRound2 = z.infer<typeof thresholdKeygenRound2Schema>;
1647
+ type ThresholdKeygenConfirm = z.infer<typeof thresholdKeygenConfirmSchema>;
1372
1648
  type CapabilityVerb = z.infer<typeof capabilityVerbSchema>;
1373
1649
  type CoreCapability = z.infer<typeof coreCapabilitySchema>;
1374
1650
  type NamespacedCapability = z.infer<typeof namespacedCapabilitySchema>;
@@ -1402,4 +1678,4 @@ type WebrtcAnswer = z.infer<typeof webrtcAnswerSchema>;
1402
1678
  type WebrtcIceCandidate = z.infer<typeof webrtcIceCandidateSchema>;
1403
1679
  type IceCandidateInit = z.infer<typeof iceCandidateInitSchema>;
1404
1680
  //#endregion
1405
- export { PeerIdentity as $, ptyWriteSchema as $n, capabilityGrantSchema as $t, DomainId as A, manageCommandParamsSchema as An, webrtcIceCandidateSchema as Ar, RoomSend as At, IdentityKey as B, ownerNamedRoomPathSchema as Bn, WebrtcAnswer as Bt, CoseTokenHeaders as C, frameVariantSchema as Cn, streamDataFrameSchema as Cr, RoomMembers as Ct, DeviceId as D, handshakeFrameSchema as Dn, tokenClaimsSchema as Dr, RoomPath as Dt, DataRequestFrame as E, handleRecordSchema as En, syncPunchFrameSchema as Er, RoomNoticeClaims as Et, GossipFrame as F, manageResponseFrameSchema as Fn, StreamEndFrame as Ft, ManageRequestFrame as G, privateUseDomainIdSchema as Gn, bulkCancelSchema as Gt, ManageCommandParams as H, peerIdentitySchema as Hn, WebrtcOffer as Ht, HandleClaims as I, messageRefSchema as In, StreamSession as It, NamespacedCapability as J, procSpawnSchema as Jn, bulkOpenSchema as Jt, ManageResponseFrame as K, procKillSchema as Kn, bulkDataFrameSchema as Kt, HandleRecord as L, namespacedCapabilitySchema as Ln, SyncPunchFrame as Lt, ExecSessionInfo as M, manageErrorSchema as Mn, wireCandidateSchema as Mr, SfuTrackMap as Mt, Frame as N, manageOkSchema as Nn, StreamAckFrame as Nt, DeviceIdHex as O, iceCandidateInitSchema as On, transferIdSchema as Or, RoomRead as Ot, FrameVariant as P, manageRequestFrameSchema as Pn, StreamDataFrame as Pt, PeerAdvert as Q, ptySpawnSchema as Qn, capabilityGrantOkSchema as Qt, HandshakeFrame as R, namespacedDomainIdSchema as Rn, TokenClaims as Rt, CoseSign1 as S, frameSchema as Sn, streamAckFrameSchema as Sr, RoomMember as St, DataHaveFrame as T, handleClaimsSchema as Tn, streamSessionSchema as Tr, RoomNotice as Tt, ManageError as U, pingFrameSchema as Un, WireCandidate as Ut, ManageCommand as V, peerAdvertSchema as Vn, WebrtcIceCandidate as Vt, ManageOk as W, privateUseCapabilitySchema as Wn, bulkAckFrameSchema as Wt, ObservedAddressFrame as X, ptyKillSchema as Xn, candidateKindSchema as Xt, NamespacedDomainId as Y, protocolVersionSchema as Yn, bulkResumeSchema as Yt, OwnerNamedRoomPath as Z, ptyResizeSchema as Zn, candidatesFrameSchema as Zt, CoreCapability as _, deviceIdSchema as _n, roomReadSchema as _r, RevocationEntry as _t, BulkOpen as a, coordinatorFrameSchema as an, revocationClaimsSchema as ar, ProcSpawn as at, CoseHeaderKid as b, execListSchema as bn, sfuTrackEntrySchema as br, RoomJoinOk as bt, CandidatesFrame as c, coseHeaderAlgSchema as cn, roomJoinOkSchema as cr, PtyResize as ct, CapabilityRequest as d, coseSign1Schema as dn, roomMemberSchema as dr, RelayConnectFrame as dt, capabilityRequestSchema as en, relayConnectFrameSchema as er, PingFrame as et, CapabilityScope as f, coseTokenHeadersSchema as fn, roomMembersOkSchema as fr, RelayDataFrame as ft, CoordinatorFrame as g, deviceIdHexSchema as gn, roomPathSchema as gr, RevocationClaims as gt, CloseFrame as h, dataRequestFrameSchema as hn, roomNoticeSchema as hr, RevocationAnnounceFrame as ht, BulkEndFrame as i, closeFrameSchema as in, revocationAnnounceFrameSchema as ir, ProcSignal as it, ExecList as j, manageCommandSchema as jn, webrtcOfferSchema as jr, SfuTrackEntry as jt, DmRoomPath as k, identityKeySchema as kn, webrtcAnswerSchema as kr, RoomRekey as kt, CapabilityGrant as l, coseHeaderKidSchema as ln, roomJoinSchema as lr, PtySpawn as lt, CapabilityVerb as m, dataHaveFrameSchema as mn, roomNoticeClaimsSchema as mr, RelayOfferFrame as mt, BulkCancel as n, capabilityTokenSchema as nn, relayInboundFrameSchema as nr, PrivateUseDomainId as nt, BulkResume as o, coreCapabilitySchema as on, revocationEntrySchema as or, ProtocolVersion as ot, CapabilityToken as p, dataEntriesFrameSchema as pn, roomMembersSchema as pr, RelayInboundFrame as pt, MessageRef as q, procSignalSchema as qn, bulkEndFrameSchema as qt, BulkDataFrame as r, capabilityVerbSchema as rn, relayOfferFrameSchema as rr, ProcKill as rt, CandidateKind as s, coreDomainNameSchema as sn, roomInviteSchema as sr, PtyKill as st, BulkAckFrame as t, capabilityScopeSchema as tn, relayDataFrameSchema as tr, PrivateUseCapability as tt, CapabilityGrantOk as u, coseHeaderLabelSchema as un, roomLeaveSchema as ur, PtyWrite as ut, CoreDomainName as v, dmRoomPathSchema as vn, roomRekeySchema as vr, RoomInvite as vt, DataEntriesFrame as w, gossipFrameSchema as wn, streamEndFrameSchema as wr, RoomMembersOk as wt, CoseHeaderLabel as x, execSessionInfoSchema as xn, sfuTrackMapSchema as xr, RoomLeave as xt, CoseHeaderAlg as y, domainIdSchema as yn, roomSendSchema as yr, RoomJoin as yt, IceCandidateInit as z, observedAddressFrameSchema as zn, TransferId as zt };
1681
+ export { PeerIdentity as $, peerIdentitySchema as $n, webrtcOfferSchema as $r, WebrtcOffer as $t, DomainId as A, domainIdSchema as An, roomSendSchema as Ar, RoomSend as At, IdentityKey as B, identityKeySchema as Bn, thresholdCommitSchema as Br, ThresholdCommit as Bt, CoseTokenHeaders as C, coseTokenHeadersSchema as Cn, roomMembersOkSchema as Cr, RoomMembers as Ct, DeviceId as D, deviceIdHexSchema as Dn, roomPathSchema as Dr, RoomPath as Dt, DataRequestFrame as E, dataRequestFrameSchema as En, roomNoticeSchema as Er, RoomNoticeClaims as Et, GossipFrame as F, gossipFrameSchema as Fn, streamDataFrameSchema as Fr, StreamDataFrame as Ft, ManageRequestFrame as G, manageRequestFrameSchema as Gn, thresholdShareClaimsSchema as Gr, ThresholdShareClaims as Gt, ManageCommandParams as H, manageCommandSchema as Hn, thresholdKeygenConfirmSchema as Hr, ThresholdKeygenConfirm as Ht, HandleClaims as I, handleClaimsSchema as In, streamEndFrameSchema as Ir, StreamEndFrame as It, NamespacedCapability as J, namespacedCapabilitySchema as Jn, thresholdSubjectSchema as Jr, ThresholdSubject as Jt, ManageResponseFrame as K, manageResponseFrameSchema as Kn, thresholdShareEnvelopeSchema as Kr, ThresholdShareEnvelope as Kt, HandleRecord as L, handleRecordSchema as Ln, streamSessionSchema as Lr, StreamSession as Lt, ExecSessionInfo as M, execSessionInfoSchema as Mn, sfuTrackEntrySchema as Mr, SfuTrackEntry as Mt, Frame as N, frameSchema as Nn, sfuTrackMapSchema as Nr, SfuTrackMap as Nt, DeviceIdHex as O, deviceIdSchema as On, roomReadSchema as Or, RoomRead as Ot, FrameVariant as P, frameVariantSchema as Pn, streamAckFrameSchema as Pr, StreamAckFrame as Pt, PeerAdvert as Q, peerAdvertSchema as Qn, webrtcIceCandidateSchema as Qr, WebrtcIceCandidate as Qt, HandshakeFrame as R, handshakeFrameSchema as Rn, syncPunchFrameSchema as Rr, SyncPunchFrame as Rt, CoseSign1 as S, coseSign1Schema as Sn, roomMemberSchema as Sr, RoomMember as St, DataHaveFrame as T, dataHaveFrameSchema as Tn, roomNoticeClaimsSchema as Tr, RoomNotice as Tt, ManageError as U, manageErrorSchema as Un, thresholdKeygenRound1Schema as Ur, ThresholdKeygenRound1 as Ut, ManageCommand as V, manageCommandParamsSchema as Vn, thresholdCommitmentSchema as Vr, ThresholdCommitment as Vt, ManageOk as W, manageOkSchema as Wn, thresholdKeygenRound2Schema as Wr, ThresholdKeygenRound2 as Wt, ObservedAddressFrame as X, observedAddressFrameSchema as Xn, transferIdSchema as Xr, TransferId as Xt, NamespacedDomainId as Y, namespacedDomainIdSchema as Yn, tokenClaimsSchema as Yr, TokenClaims as Yt, OwnerNamedRoomPath as Z, ownerNamedRoomPathSchema as Zn, webrtcAnswerSchema as Zr, WebrtcAnswer as Zt, CoreCapability as _, coreCapabilitySchema as _n, revocationEntrySchema as _r, RevocationEntry as _t, BulkOpen as a, bulkOpenSchema as an, procSpawnSchema as ar, ProcSpawn as at, CoseHeaderKid as b, coseHeaderKidSchema as bn, roomJoinSchema as br, RoomJoinOk as bt, CandidatesFrame as c, candidatesFrameSchema as cn, ptyResizeSchema as cr, PtyResize as ct, CapabilityRequest as d, capabilityRequestSchema as dn, relayConnectFrameSchema as dr, RelayConnectFrame as dt, wireCandidateSchema as ei, WireCandidate as en, pingFrameSchema as er, PingFrame as et, CapabilityScope as f, capabilityScopeSchema as fn, relayDataFrameSchema as fr, RelayDataFrame as ft, CoordinatorFrame as g, coordinatorFrameSchema as gn, revocationClaimsSchema as gr, RevocationClaims as gt, CloseFrame as h, closeFrameSchema as hn, revocationAnnounceFrameSchema as hr, RevocationAnnounceFrame as ht, BulkEndFrame as i, bulkEndFrameSchema as in, procSignalSchema as ir, ProcSignal as it, ExecList as j, execListSchema as jn, sessionIdSchema as jr, SessionId as jt, DmRoomPath as k, dmRoomPathSchema as kn, roomRekeySchema as kr, RoomRekey as kt, CapabilityGrant as l, capabilityGrantOkSchema as ln, ptySpawnSchema as lr, PtySpawn as lt, CapabilityVerb as m, capabilityVerbSchema as mn, relayOfferFrameSchema as mr, RelayOfferFrame as mt, BulkCancel as n, bulkCancelSchema as nn, privateUseDomainIdSchema as nr, PrivateUseDomainId as nt, BulkResume as o, bulkResumeSchema as on, protocolVersionSchema as or, ProtocolVersion as ot, CapabilityToken as p, capabilityTokenSchema as pn, relayInboundFrameSchema as pr, RelayInboundFrame as pt, MessageRef as q, messageRefSchema as qn, thresholdSignSchema as qr, ThresholdSign as qt, BulkDataFrame as r, bulkDataFrameSchema as rn, procKillSchema as rr, ProcKill as rt, CandidateKind as s, candidateKindSchema as sn, ptyKillSchema as sr, PtyKill as st, BulkAckFrame as t, bulkAckFrameSchema as tn, privateUseCapabilitySchema as tr, PrivateUseCapability as tt, CapabilityGrantOk as u, capabilityGrantSchema as un, ptyWriteSchema as ur, PtyWrite as ut, CoreDomainName as v, coreDomainNameSchema as vn, roomInviteSchema as vr, RoomInvite as vt, DataEntriesFrame as w, dataEntriesFrameSchema as wn, roomMembersSchema as wr, RoomMembersOk as wt, CoseHeaderLabel as x, coseHeaderLabelSchema as xn, roomLeaveSchema as xr, RoomLeave as xt, CoseHeaderAlg as y, coseHeaderAlgSchema as yn, roomJoinOkSchema as yr, RoomJoin as yt, IceCandidateInit as z, iceCandidateInitSchema as zn, thresholdAbortSchema as zr, ThresholdAbort as zt };