wire-mesh-core 1.45.2 → 1.47.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/adapters/frame-codec.d.cts +1 -1
- package/dist/adapters/frame-codec.d.mts +1 -1
- package/dist/adapters/node-fs-storage.cjs +3 -24
- package/dist/adapters/node-identity.d.cts +2 -2
- package/dist/adapters/node-identity.d.mts +2 -2
- package/dist/adapters/tcp-transport.d.cts +1 -1
- package/dist/adapters/tcp-transport.d.mts +1 -1
- package/dist/adapters/threshold-identity.cjs +42 -0
- package/dist/adapters/threshold-identity.d.cts +33 -0
- package/dist/adapters/threshold-identity.d.mts +33 -0
- package/dist/adapters/threshold-identity.mjs +41 -0
- package/dist/adapters/threshold-wasm.cjs +139 -0
- package/dist/adapters/threshold-wasm.d.cts +63 -0
- package/dist/adapters/threshold-wasm.d.mts +63 -0
- package/dist/adapters/threshold-wasm.mjs +123 -0
- package/dist/adapters/tls-transport.d.cts +1 -1
- package/dist/adapters/tls-transport.d.mts +1 -1
- package/dist/domain/bulk.cjs +26 -0
- package/dist/domain/bulk.d.cts +10 -2
- package/dist/domain/bulk.d.mts +10 -2
- package/dist/domain/bulk.mjs +26 -1
- package/dist/domain/capability-grant.cjs +1 -1
- package/dist/domain/capability-grant.d.cts +3 -3
- package/dist/domain/capability-grant.d.mts +3 -3
- package/dist/domain/capability-grant.mjs +1 -1
- package/dist/domain/capability-request.cjs +1 -1
- package/dist/domain/capability-request.d.cts +2 -2
- package/dist/domain/capability-request.d.mts +2 -2
- package/dist/domain/capability-request.mjs +1 -1
- package/dist/domain/data-sync.d.cts +2 -2
- package/dist/domain/data-sync.d.mts +2 -2
- package/dist/domain/device-id.d.cts +1 -1
- package/dist/domain/device-id.d.mts +1 -1
- package/dist/domain/grant-candidates.d.cts +1 -1
- package/dist/domain/grant-candidates.d.mts +1 -1
- package/dist/domain/handshake.d.cts +1 -1
- package/dist/domain/handshake.d.mts +1 -1
- package/dist/domain/mesh-session.d.cts +3 -3
- package/dist/domain/mesh-session.d.mts +3 -3
- package/dist/domain/notice-board.d.cts +3 -3
- package/dist/domain/notice-board.d.mts +3 -3
- package/dist/domain/relay-hub.d.cts +2 -2
- package/dist/domain/relay-hub.d.mts +2 -2
- package/dist/domain/relay-use-gate.d.cts +2 -2
- package/dist/domain/relay-use-gate.d.mts +2 -2
- package/dist/domain/revocation-view.cjs +1 -1
- package/dist/domain/revocation-view.d.cts +2 -2
- package/dist/domain/revocation-view.d.mts +2 -2
- package/dist/domain/revocation-view.mjs +1 -1
- package/dist/domain/room-rekey.d.cts +3 -3
- package/dist/domain/room-rekey.d.mts +3 -3
- package/dist/domain/room-token-verification.cjs +1 -1
- package/dist/domain/room-token-verification.d.cts +1 -1
- package/dist/domain/room-token-verification.d.mts +1 -1
- package/dist/domain/room-token-verification.mjs +1 -1
- package/dist/domain/room.d.cts +4 -4
- package/dist/domain/room.d.mts +4 -4
- package/dist/domain/shard-manifest.d.cts +1 -1
- package/dist/domain/shard-manifest.d.mts +1 -1
- package/dist/domain/threshold-subject.cjs +35 -0
- package/dist/domain/threshold-subject.d.cts +33 -0
- package/dist/domain/threshold-subject.d.mts +33 -0
- package/dist/domain/threshold-subject.mjs +32 -0
- package/dist/domain/tokens.cjs +2 -1
- package/dist/domain/tokens.d.cts +2 -2
- package/dist/domain/tokens.d.mts +2 -2
- package/dist/domain/tokens.mjs +2 -2
- package/dist/domain/webrtc-signaling.cjs +107 -0
- package/dist/domain/webrtc-signaling.d.cts +38 -0
- package/dist/domain/webrtc-signaling.d.mts +38 -0
- package/dist/domain/webrtc-signaling.mjs +93 -0
- package/dist/generated/protocol.cjs +97 -1
- package/dist/generated/protocol.d.cts +2 -2
- package/dist/generated/protocol.d.mts +2 -2
- package/dist/generated/protocol.mjs +85 -2
- package/dist/{identity-B4XBWkqg.d.cts → identity-9TmmK7vP.d.mts} +1 -1
- package/dist/{identity-CIb9dGkJ.d.mts → identity-CUkDHCRK.d.cts} +1 -1
- package/dist/ports/identity.d.cts +1 -1
- package/dist/ports/identity.d.mts +1 -1
- package/dist/ports/transport.d.cts +1 -1
- package/dist/ports/transport.d.mts +1 -1
- package/dist/{protocol-gbXtNeOc.d.cts → protocol-CNFRVx9w.d.cts} +333 -1
- package/dist/{protocol-gbXtNeOc.d.mts → protocol-CNFRVx9w.d.mts} +333 -1
- package/dist/rolldown-runtime-VH7oDXx4.cjs +28 -0
- package/dist/{room-token-verification-BggPfYr8.d.mts → room-token-verification-BdtM1rQ4.d.mts} +2 -2
- package/dist/{room-token-verification-CkQV0Iq7.d.cts → room-token-verification-DpOfZOdl.d.cts} +2 -2
- package/dist/{tokens-CdQwzCyJ.mjs → tokens-B0dpTLhS.mjs} +2 -2
- package/dist/{tokens-k172l0Iy.d.mts → tokens-CVyPoJ6l.d.mts} +5 -3
- package/dist/{tokens-C9Kwy0Gk.d.cts → tokens-Cl8sQo7o.d.cts} +5 -3
- package/dist/{tokens-DxGVURpB.cjs → tokens-Dh6mG6p_.cjs} +7 -1
- package/dist/{transport-DAsFqDDS.d.cts → transport-C7KVkhgb.d.mts} +1 -1
- package/dist/{transport-Dy4h2eNY.d.mts → transport-De0zHlaA.d.cts} +1 -1
- package/package.json +50 -34
|
@@ -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;
|
|
@@ -123,6 +162,14 @@ declare const manageCommandParamsSchema: z.ZodLazy<z.ZodUnion<readonly [z.ZodUni
|
|
|
123
162
|
"sdp-m-line-index": z.ZodOptional<z.ZodNumber>;
|
|
124
163
|
"username-fragment": z.ZodOptional<z.ZodString>;
|
|
125
164
|
}, z.core.$strip>>>>;
|
|
165
|
+
}, z.core.$strip>>>, z.ZodLazy<z.ZodLazy<z.ZodObject<{
|
|
166
|
+
verb: z.ZodLiteral<"webrtc.sfu-track-map">;
|
|
167
|
+
"negotiation-id": z.ZodNumber;
|
|
168
|
+
tracks: z.ZodArray<z.ZodLazy<z.ZodLazy<z.ZodObject<{
|
|
169
|
+
mid: z.ZodString;
|
|
170
|
+
member: z.ZodLazy<z.ZodLazy<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>>;
|
|
171
|
+
kind: z.ZodUnion<readonly [z.ZodLiteral<"audio">, z.ZodLiteral<"video">]>;
|
|
172
|
+
}, z.core.$strip>>>>;
|
|
126
173
|
}, z.core.$strip>>>]>]>>;
|
|
127
174
|
declare const bulkDataFrameSchema: z.ZodLazy<z.ZodObject<{
|
|
128
175
|
type: z.ZodLiteral<"bulk-data">;
|
|
@@ -371,6 +418,45 @@ declare const frameVariantSchema: z.ZodLazy<z.ZodUnion<readonly [z.ZodLazy<z.Zod
|
|
|
371
418
|
"key-epoch": z.ZodNumber;
|
|
372
419
|
"wrapped-key": z.ZodUnion<readonly [z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>, z.ZodArray<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>]>;
|
|
373
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<{
|
|
374
460
|
verb: z.ZodLiteral<"webrtc.offer">;
|
|
375
461
|
"negotiation-id": z.ZodNumber;
|
|
376
462
|
sdp: z.ZodString;
|
|
@@ -387,6 +473,14 @@ declare const frameVariantSchema: z.ZodLazy<z.ZodUnion<readonly [z.ZodLazy<z.Zod
|
|
|
387
473
|
"sdp-m-line-index": z.ZodOptional<z.ZodNumber>;
|
|
388
474
|
"username-fragment": z.ZodOptional<z.ZodString>;
|
|
389
475
|
}, z.core.$strip>>>>;
|
|
476
|
+
}, z.core.$strip>>>, z.ZodLazy<z.ZodLazy<z.ZodObject<{
|
|
477
|
+
verb: z.ZodLiteral<"webrtc.sfu-track-map">;
|
|
478
|
+
"negotiation-id": z.ZodNumber;
|
|
479
|
+
tracks: z.ZodArray<z.ZodLazy<z.ZodLazy<z.ZodObject<{
|
|
480
|
+
mid: z.ZodString;
|
|
481
|
+
member: z.ZodLazy<z.ZodLazy<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>>;
|
|
482
|
+
kind: z.ZodUnion<readonly [z.ZodLiteral<"audio">, z.ZodLiteral<"video">]>;
|
|
483
|
+
}, z.core.$strip>>>>;
|
|
390
484
|
}, z.core.$strip>>>]>]>>>;
|
|
391
485
|
}, z.core.$strip>>>;
|
|
392
486
|
scope: z.ZodLazy<z.ZodLazy<z.ZodObject<{
|
|
@@ -602,6 +696,45 @@ declare const frameSchema: z.ZodLazy<z.ZodLazy<z.ZodLazy<z.ZodUnion<readonly [z.
|
|
|
602
696
|
"key-epoch": z.ZodNumber;
|
|
603
697
|
"wrapped-key": z.ZodUnion<readonly [z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>, z.ZodArray<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>]>;
|
|
604
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<{
|
|
605
738
|
verb: z.ZodLiteral<"webrtc.offer">;
|
|
606
739
|
"negotiation-id": z.ZodNumber;
|
|
607
740
|
sdp: z.ZodString;
|
|
@@ -618,6 +751,14 @@ declare const frameSchema: z.ZodLazy<z.ZodLazy<z.ZodLazy<z.ZodUnion<readonly [z.
|
|
|
618
751
|
"sdp-m-line-index": z.ZodOptional<z.ZodNumber>;
|
|
619
752
|
"username-fragment": z.ZodOptional<z.ZodString>;
|
|
620
753
|
}, z.core.$strip>>>>;
|
|
754
|
+
}, z.core.$strip>>>, z.ZodLazy<z.ZodLazy<z.ZodObject<{
|
|
755
|
+
verb: z.ZodLiteral<"webrtc.sfu-track-map">;
|
|
756
|
+
"negotiation-id": z.ZodNumber;
|
|
757
|
+
tracks: z.ZodArray<z.ZodLazy<z.ZodLazy<z.ZodObject<{
|
|
758
|
+
mid: z.ZodString;
|
|
759
|
+
member: z.ZodLazy<z.ZodLazy<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>>;
|
|
760
|
+
kind: z.ZodUnion<readonly [z.ZodLiteral<"audio">, z.ZodLiteral<"video">]>;
|
|
761
|
+
}, z.core.$strip>>>>;
|
|
621
762
|
}, z.core.$strip>>>]>]>>>;
|
|
622
763
|
}, z.core.$strip>>>;
|
|
623
764
|
scope: z.ZodLazy<z.ZodLazy<z.ZodObject<{
|
|
@@ -804,6 +945,45 @@ declare const manageCommandSchema: z.ZodLazy<z.ZodObject<{
|
|
|
804
945
|
"key-epoch": z.ZodNumber;
|
|
805
946
|
"wrapped-key": z.ZodUnion<readonly [z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>, z.ZodArray<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>]>;
|
|
806
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<{
|
|
807
987
|
verb: z.ZodLiteral<"webrtc.offer">;
|
|
808
988
|
"negotiation-id": z.ZodNumber;
|
|
809
989
|
sdp: z.ZodString;
|
|
@@ -820,6 +1000,14 @@ declare const manageCommandSchema: z.ZodLazy<z.ZodObject<{
|
|
|
820
1000
|
"sdp-m-line-index": z.ZodOptional<z.ZodNumber>;
|
|
821
1001
|
"username-fragment": z.ZodOptional<z.ZodString>;
|
|
822
1002
|
}, z.core.$strip>>>>;
|
|
1003
|
+
}, z.core.$strip>>>, z.ZodLazy<z.ZodLazy<z.ZodObject<{
|
|
1004
|
+
verb: z.ZodLiteral<"webrtc.sfu-track-map">;
|
|
1005
|
+
"negotiation-id": z.ZodNumber;
|
|
1006
|
+
tracks: z.ZodArray<z.ZodLazy<z.ZodLazy<z.ZodObject<{
|
|
1007
|
+
mid: z.ZodString;
|
|
1008
|
+
member: z.ZodLazy<z.ZodLazy<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>>;
|
|
1009
|
+
kind: z.ZodUnion<readonly [z.ZodLiteral<"audio">, z.ZodLiteral<"video">]>;
|
|
1010
|
+
}, z.core.$strip>>>>;
|
|
823
1011
|
}, z.core.$strip>>>]>]>>>;
|
|
824
1012
|
}, z.core.$strip>>;
|
|
825
1013
|
declare const manageRequestFrameSchema: z.ZodLazy<z.ZodObject<{
|
|
@@ -917,6 +1105,45 @@ declare const manageRequestFrameSchema: z.ZodLazy<z.ZodObject<{
|
|
|
917
1105
|
"key-epoch": z.ZodNumber;
|
|
918
1106
|
"wrapped-key": z.ZodUnion<readonly [z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>, z.ZodArray<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>]>;
|
|
919
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<{
|
|
920
1147
|
verb: z.ZodLiteral<"webrtc.offer">;
|
|
921
1148
|
"negotiation-id": z.ZodNumber;
|
|
922
1149
|
sdp: z.ZodString;
|
|
@@ -933,6 +1160,14 @@ declare const manageRequestFrameSchema: z.ZodLazy<z.ZodObject<{
|
|
|
933
1160
|
"sdp-m-line-index": z.ZodOptional<z.ZodNumber>;
|
|
934
1161
|
"username-fragment": z.ZodOptional<z.ZodString>;
|
|
935
1162
|
}, z.core.$strip>>>>;
|
|
1163
|
+
}, z.core.$strip>>>, z.ZodLazy<z.ZodLazy<z.ZodObject<{
|
|
1164
|
+
verb: z.ZodLiteral<"webrtc.sfu-track-map">;
|
|
1165
|
+
"negotiation-id": z.ZodNumber;
|
|
1166
|
+
tracks: z.ZodArray<z.ZodLazy<z.ZodLazy<z.ZodObject<{
|
|
1167
|
+
mid: z.ZodString;
|
|
1168
|
+
member: z.ZodLazy<z.ZodLazy<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>>;
|
|
1169
|
+
kind: z.ZodUnion<readonly [z.ZodLiteral<"audio">, z.ZodLiteral<"video">]>;
|
|
1170
|
+
}, z.core.$strip>>>>;
|
|
936
1171
|
}, z.core.$strip>>>]>]>>>;
|
|
937
1172
|
}, z.core.$strip>>>;
|
|
938
1173
|
scope: z.ZodLazy<z.ZodLazy<z.ZodObject<{
|
|
@@ -1114,6 +1349,76 @@ declare const streamEndFrameSchema: z.ZodLazy<z.ZodObject<{
|
|
|
1114
1349
|
"exit-code": z.ZodOptional<z.ZodNumber>;
|
|
1115
1350
|
"exit-signal": z.ZodOptional<z.ZodNumber>;
|
|
1116
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>>;
|
|
1117
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>>]>>;
|
|
1118
1423
|
declare const coreCapabilitySchema: z.ZodLazy<z.ZodString>;
|
|
1119
1424
|
declare const namespacedCapabilitySchema: z.ZodLazy<z.ZodString>;
|
|
@@ -1224,6 +1529,20 @@ declare const coordinatorFrameSchema: z.ZodLazy<z.ZodObject<{
|
|
|
1224
1529
|
coordinator: z.ZodLazy<z.ZodLazy<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>>;
|
|
1225
1530
|
"capacity-hint": z.ZodOptional<z.ZodNumber>;
|
|
1226
1531
|
}, z.core.$strip>>;
|
|
1532
|
+
declare const sfuTrackMapSchema: z.ZodLazy<z.ZodObject<{
|
|
1533
|
+
verb: z.ZodLiteral<"webrtc.sfu-track-map">;
|
|
1534
|
+
"negotiation-id": z.ZodNumber;
|
|
1535
|
+
tracks: z.ZodArray<z.ZodLazy<z.ZodLazy<z.ZodObject<{
|
|
1536
|
+
mid: z.ZodString;
|
|
1537
|
+
member: z.ZodLazy<z.ZodLazy<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>>;
|
|
1538
|
+
kind: z.ZodUnion<readonly [z.ZodLiteral<"audio">, z.ZodLiteral<"video">]>;
|
|
1539
|
+
}, z.core.$strip>>>>;
|
|
1540
|
+
}, z.core.$strip>>;
|
|
1541
|
+
declare const sfuTrackEntrySchema: z.ZodLazy<z.ZodObject<{
|
|
1542
|
+
mid: z.ZodString;
|
|
1543
|
+
member: z.ZodLazy<z.ZodLazy<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>>;
|
|
1544
|
+
kind: z.ZodUnion<readonly [z.ZodLiteral<"audio">, z.ZodLiteral<"video">]>;
|
|
1545
|
+
}, z.core.$strip>>;
|
|
1227
1546
|
declare const webrtcOfferSchema: z.ZodLazy<z.ZodObject<{
|
|
1228
1547
|
verb: z.ZodLiteral<"webrtc.offer">;
|
|
1229
1548
|
"negotiation-id": z.ZodNumber;
|
|
@@ -1315,6 +1634,17 @@ type StreamSession = z.infer<typeof streamSessionSchema>;
|
|
|
1315
1634
|
type StreamDataFrame = z.infer<typeof streamDataFrameSchema>;
|
|
1316
1635
|
type StreamAckFrame = z.infer<typeof streamAckFrameSchema>;
|
|
1317
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>;
|
|
1318
1648
|
type CapabilityVerb = z.infer<typeof capabilityVerbSchema>;
|
|
1319
1649
|
type CoreCapability = z.infer<typeof coreCapabilitySchema>;
|
|
1320
1650
|
type NamespacedCapability = z.infer<typeof namespacedCapabilitySchema>;
|
|
@@ -1341,9 +1671,11 @@ type RelayConnectFrame = z.infer<typeof relayConnectFrameSchema>;
|
|
|
1341
1671
|
type RelayDataFrame = z.infer<typeof relayDataFrameSchema>;
|
|
1342
1672
|
type RelayInboundFrame = z.infer<typeof relayInboundFrameSchema>;
|
|
1343
1673
|
type CoordinatorFrame = z.infer<typeof coordinatorFrameSchema>;
|
|
1674
|
+
type SfuTrackMap = z.infer<typeof sfuTrackMapSchema>;
|
|
1675
|
+
type SfuTrackEntry = z.infer<typeof sfuTrackEntrySchema>;
|
|
1344
1676
|
type WebrtcOffer = z.infer<typeof webrtcOfferSchema>;
|
|
1345
1677
|
type WebrtcAnswer = z.infer<typeof webrtcAnswerSchema>;
|
|
1346
1678
|
type WebrtcIceCandidate = z.infer<typeof webrtcIceCandidateSchema>;
|
|
1347
1679
|
type IceCandidateInit = z.infer<typeof iceCandidateInitSchema>;
|
|
1348
1680
|
//#endregion
|
|
1349
|
-
export { PeerIdentity as $,
|
|
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 };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
//#region \0rolldown/runtime.js
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __copyProps = (to, from, except, desc) => {
|
|
9
|
+
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
10
|
+
key = keys[i];
|
|
11
|
+
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
12
|
+
get: ((k) => from[k]).bind(null, key),
|
|
13
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule || !__hasOwnProp.call(mod, "default") ? __defProp(target, "default", {
|
|
19
|
+
value: mod,
|
|
20
|
+
enumerable: true
|
|
21
|
+
}) : target, mod));
|
|
22
|
+
//#endregion
|
|
23
|
+
Object.defineProperty(exports, "__toESM", {
|
|
24
|
+
enumerable: true,
|
|
25
|
+
get: function() {
|
|
26
|
+
return __toESM;
|
|
27
|
+
}
|
|
28
|
+
});
|
package/dist/{room-token-verification-BggPfYr8.d.mts → room-token-verification-BdtM1rQ4.d.mts}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as IdentityKey, D as DeviceId,
|
|
2
|
-
import { l as TokenVerdictReason, u as VerifyCapabilityTokenOptions } from "./tokens-
|
|
1
|
+
import { B as IdentityKey, D as DeviceId, Yt as TokenClaims, p as CapabilityToken } from "./protocol-CNFRVx9w.mjs";
|
|
2
|
+
import { l as TokenVerdictReason, u as VerifyCapabilityTokenOptions } from "./tokens-CVyPoJ6l.mjs";
|
|
3
3
|
//#region src/domain/room-token-verification.d.ts
|
|
4
4
|
/** The one capability every core/room verb (room.send/read/leave/members) is gated by, per spec/room.cddl -- room.join/room.invite are deliberately ungated instead and need no token check at all. */
|
|
5
5
|
declare const ROOM_MEMBER_CAPABILITY = "room:member";
|
package/dist/{room-token-verification-CkQV0Iq7.d.cts → room-token-verification-DpOfZOdl.d.cts}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as IdentityKey, D as DeviceId,
|
|
2
|
-
import { l as TokenVerdictReason, u as VerifyCapabilityTokenOptions } from "./tokens-
|
|
1
|
+
import { B as IdentityKey, D as DeviceId, Yt as TokenClaims, p as CapabilityToken } from "./protocol-CNFRVx9w.cjs";
|
|
2
|
+
import { l as TokenVerdictReason, u as VerifyCapabilityTokenOptions } from "./tokens-Cl8sQo7o.cjs";
|
|
3
3
|
//#region src/domain/room-token-verification.d.ts
|
|
4
4
|
/** The one capability every core/room verb (room.send/read/leave/members) is gated by, per spec/room.cddl -- room.join/room.invite are deliberately ungated instead and need no token check at all. */
|
|
5
5
|
declare const ROOM_MEMBER_CAPABILITY = "room:member";
|
|
@@ -134,7 +134,7 @@ async function evaluateConditions(nodes, claims, clock, extraHandlers = {}) {
|
|
|
134
134
|
}
|
|
135
135
|
//#endregion
|
|
136
136
|
//#region src/domain/tokens.ts
|
|
137
|
-
/** RFC 9052 §4.4 Sig_structure for a COSE_Sign1 with no external AAD: ["Signature1", protected, external_aad, payload]. */
|
|
137
|
+
/** RFC 9052 §4.4 Sig_structure for a COSE_Sign1 with no external AAD: ["Signature1", protected, external_aad, payload]. Exported (not just used internally by verifyTokenChain) so any other self-certifying COSE_Sign1 construction in this codebase -- e.g. threshold-subject.ts's own to-be-signed bytes for a FROST-signed capability-token/revocation-entry/handle-record/room-notice -- reuses this single construction rather than a second hand-rolled one. */
|
|
138
138
|
function sig1ToBeSigned(protectedHeader, payload) {
|
|
139
139
|
return encode([
|
|
140
140
|
"Signature1",
|
|
@@ -456,4 +456,4 @@ async function mintRevocationEntry(options) {
|
|
|
456
456
|
];
|
|
457
457
|
}
|
|
458
458
|
//#endregion
|
|
459
|
-
export {
|
|
459
|
+
export { verifyCapabilityToken as a, sig1ToBeSigned as i, mintCapabilityToken as n, verifyRevocationEntry as o, mintRevocationEntry as r, canGrant as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as IdentityKey, D as DeviceId,
|
|
2
|
-
import { t as IdentityPort } from "./identity-
|
|
1
|
+
import { B as IdentityKey, D as DeviceId, Yt as TokenClaims, _t as RevocationEntry, gt as RevocationClaims, p as CapabilityToken } from "./protocol-CNFRVx9w.mjs";
|
|
2
|
+
import { t as IdentityPort } from "./identity-9TmmK7vP.mjs";
|
|
3
3
|
import { t as Clock } from "./clock-DiSx-WKM.mjs";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
import { JsonValue, PredicateNode, Resolution } from "trilean";
|
|
@@ -53,6 +53,8 @@ interface VerifyCapabilityTokenOptions {
|
|
|
53
53
|
/** Registers domain-specific delegate systems a presented token's own `conditions` entries may name, beyond the five mandatory narrowing ops (which are never reachable from `conditions` -- see evaluateConditions's own doc comment). None are registered by wire-mesh-core itself; a domain (a message TTL, #84's future revoke-authorization check) supplies its own here. A `conditions` entry naming a system absent from this map is indeterminate, and therefore fails the whole token -- fail-closed, not a silent no-op. */
|
|
54
54
|
extraPredicateResolvers?: Readonly<Record<string, TokenDelegateHandler<ConditionsContext>>>;
|
|
55
55
|
}
|
|
56
|
+
/** RFC 9052 §4.4 Sig_structure for a COSE_Sign1 with no external AAD: ["Signature1", protected, external_aad, payload]. Exported (not just used internally by verifyTokenChain) so any other self-certifying COSE_Sign1 construction in this codebase -- e.g. threshold-subject.ts's own to-be-signed bytes for a FROST-signed capability-token/revocation-entry/handle-record/room-notice -- reuses this single construction rather than a second hand-rolled one. */
|
|
57
|
+
declare function sig1ToBeSigned(protectedHeader: Uint8Array, payload: Uint8Array): Uint8Array;
|
|
56
58
|
/**
|
|
57
59
|
* Verifies one capability token per tokens.cddl's own documented rules: the token is a well-formed COSE_Sign1 whose signature actually verifies against its own embedded issuer-key, that issuer-key is self-certifying (sha256(issuer-key.public-key) equals the claimed issuer device-id -- no shared secret needed to check this), the token is currently valid (not expired, not before not-before, not revoked by its own issuer), and -- recursively -- any parent delegation narrows rather than widens across all three axes of authority: the parent's bearer must be this token's issuer (the delegation chain is unbroken), this token's expiry must not exceed its parent's, and this token's scope must narrow its parent's (same kind; equal-or-descendant path when the parent carries one) with an identical capability verb (the capability-verb grammar has no sub-verb relation, so a different verb is a different authority, not a narrower one). Undecodable payload bytes return "malformed" and undecodable parent bytes return "parent_invalid" -- hostile input produces a verdict, never a throw.
|
|
58
60
|
*/
|
|
@@ -121,4 +123,4 @@ interface MintRevocationEntryOptions {
|
|
|
121
123
|
/** Mints one revocation-entry (management.cddl): a COSE_Sign1 over revocation-claims, signed the same way mintCapabilityToken signs a token. No narrowing chain to check -- a revocation entry has no parent and cannot fail to be issuable the way a delegated token can, so this returns the entry directly rather than a verdict. */
|
|
122
124
|
declare function mintRevocationEntry(options: MintRevocationEntryOptions): Promise<RevocationEntry>;
|
|
123
125
|
//#endregion
|
|
124
|
-
export { RevocationCheck as a, TokenVerdict as c, VerifyRevocationEntryOptions as d, canGrant as f,
|
|
126
|
+
export { verifyRevocationEntry as _, RevocationCheck as a, TokenVerdict as c, VerifyRevocationEntryOptions as d, canGrant as f, verifyCapabilityToken as g, sig1ToBeSigned as h, MintVerdict as i, TokenVerdictReason as l, mintRevocationEntry as m, MintRefusalReason as n, RevocationEntryVerdict as o, mintCapabilityToken as p, MintRevocationEntryOptions as r, RevocationEntryVerdictReason as s, MintCapabilityTokenOptions as t, VerifyCapabilityTokenOptions as u };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as IdentityKey, D as DeviceId,
|
|
2
|
-
import { t as IdentityPort } from "./identity-
|
|
1
|
+
import { B as IdentityKey, D as DeviceId, Yt as TokenClaims, _t as RevocationEntry, gt as RevocationClaims, p as CapabilityToken } from "./protocol-CNFRVx9w.cjs";
|
|
2
|
+
import { t as IdentityPort } from "./identity-CUkDHCRK.cjs";
|
|
3
3
|
import { t as Clock } from "./clock-DiSx-WKM.cjs";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
import { JsonValue, PredicateNode, Resolution } from "trilean";
|
|
@@ -53,6 +53,8 @@ interface VerifyCapabilityTokenOptions {
|
|
|
53
53
|
/** Registers domain-specific delegate systems a presented token's own `conditions` entries may name, beyond the five mandatory narrowing ops (which are never reachable from `conditions` -- see evaluateConditions's own doc comment). None are registered by wire-mesh-core itself; a domain (a message TTL, #84's future revoke-authorization check) supplies its own here. A `conditions` entry naming a system absent from this map is indeterminate, and therefore fails the whole token -- fail-closed, not a silent no-op. */
|
|
54
54
|
extraPredicateResolvers?: Readonly<Record<string, TokenDelegateHandler<ConditionsContext>>>;
|
|
55
55
|
}
|
|
56
|
+
/** RFC 9052 §4.4 Sig_structure for a COSE_Sign1 with no external AAD: ["Signature1", protected, external_aad, payload]. Exported (not just used internally by verifyTokenChain) so any other self-certifying COSE_Sign1 construction in this codebase -- e.g. threshold-subject.ts's own to-be-signed bytes for a FROST-signed capability-token/revocation-entry/handle-record/room-notice -- reuses this single construction rather than a second hand-rolled one. */
|
|
57
|
+
declare function sig1ToBeSigned(protectedHeader: Uint8Array, payload: Uint8Array): Uint8Array;
|
|
56
58
|
/**
|
|
57
59
|
* Verifies one capability token per tokens.cddl's own documented rules: the token is a well-formed COSE_Sign1 whose signature actually verifies against its own embedded issuer-key, that issuer-key is self-certifying (sha256(issuer-key.public-key) equals the claimed issuer device-id -- no shared secret needed to check this), the token is currently valid (not expired, not before not-before, not revoked by its own issuer), and -- recursively -- any parent delegation narrows rather than widens across all three axes of authority: the parent's bearer must be this token's issuer (the delegation chain is unbroken), this token's expiry must not exceed its parent's, and this token's scope must narrow its parent's (same kind; equal-or-descendant path when the parent carries one) with an identical capability verb (the capability-verb grammar has no sub-verb relation, so a different verb is a different authority, not a narrower one). Undecodable payload bytes return "malformed" and undecodable parent bytes return "parent_invalid" -- hostile input produces a verdict, never a throw.
|
|
58
60
|
*/
|
|
@@ -121,4 +123,4 @@ interface MintRevocationEntryOptions {
|
|
|
121
123
|
/** Mints one revocation-entry (management.cddl): a COSE_Sign1 over revocation-claims, signed the same way mintCapabilityToken signs a token. No narrowing chain to check -- a revocation entry has no parent and cannot fail to be issuable the way a delegated token can, so this returns the entry directly rather than a verdict. */
|
|
122
124
|
declare function mintRevocationEntry(options: MintRevocationEntryOptions): Promise<RevocationEntry>;
|
|
123
125
|
//#endregion
|
|
124
|
-
export { RevocationCheck as a, TokenVerdict as c, VerifyRevocationEntryOptions as d, canGrant as f,
|
|
126
|
+
export { verifyRevocationEntry as _, RevocationCheck as a, TokenVerdict as c, VerifyRevocationEntryOptions as d, canGrant as f, verifyCapabilityToken as g, sig1ToBeSigned as h, MintVerdict as i, TokenVerdictReason as l, mintRevocationEntry as m, MintRefusalReason as n, RevocationEntryVerdict as o, mintCapabilityToken as p, MintRevocationEntryOptions as r, RevocationEntryVerdictReason as s, MintCapabilityTokenOptions as t, VerifyCapabilityTokenOptions as u };
|
|
@@ -134,7 +134,7 @@ async function evaluateConditions(nodes, claims, clock, extraHandlers = {}) {
|
|
|
134
134
|
}
|
|
135
135
|
//#endregion
|
|
136
136
|
//#region src/domain/tokens.ts
|
|
137
|
-
/** RFC 9052 §4.4 Sig_structure for a COSE_Sign1 with no external AAD: ["Signature1", protected, external_aad, payload]. */
|
|
137
|
+
/** RFC 9052 §4.4 Sig_structure for a COSE_Sign1 with no external AAD: ["Signature1", protected, external_aad, payload]. Exported (not just used internally by verifyTokenChain) so any other self-certifying COSE_Sign1 construction in this codebase -- e.g. threshold-subject.ts's own to-be-signed bytes for a FROST-signed capability-token/revocation-entry/handle-record/room-notice -- reuses this single construction rather than a second hand-rolled one. */
|
|
138
138
|
function sig1ToBeSigned(protectedHeader, payload) {
|
|
139
139
|
return (0, cbor2.encode)([
|
|
140
140
|
"Signature1",
|
|
@@ -474,6 +474,12 @@ Object.defineProperty(exports, "mintRevocationEntry", {
|
|
|
474
474
|
return mintRevocationEntry;
|
|
475
475
|
}
|
|
476
476
|
});
|
|
477
|
+
Object.defineProperty(exports, "sig1ToBeSigned", {
|
|
478
|
+
enumerable: true,
|
|
479
|
+
get: function() {
|
|
480
|
+
return sig1ToBeSigned;
|
|
481
|
+
}
|
|
482
|
+
});
|
|
477
483
|
Object.defineProperty(exports, "verifyCapabilityToken", {
|
|
478
484
|
enumerable: true,
|
|
479
485
|
get: function() {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { D as DeviceId, N as Frame } from "./protocol-
|
|
1
|
+
import { D as DeviceId, N as Frame } from "./protocol-CNFRVx9w.mjs";
|
|
2
2
|
//#region src/ports/transport.d.ts
|
|
3
3
|
/**
|
|
4
4
|
* An async, serialisable-data contract for exchanging frame values over some connection -- deliberately without baking in any specific transport's own primitives (no raw socket types, no WebSocket-specific options), so a TCP adapter, a WebSocket adapter, or an in-memory adapter for tests can all satisfy it.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { D as DeviceId, N as Frame } from "./protocol-
|
|
1
|
+
import { D as DeviceId, N as Frame } from "./protocol-CNFRVx9w.cjs";
|
|
2
2
|
//#region src/ports/transport.d.ts
|
|
3
3
|
/**
|
|
4
4
|
* An async, serialisable-data contract for exchanging frame values over some connection -- deliberately without baking in any specific transport's own primitives (no raw socket types, no WebSocket-specific options), so a TCP adapter, a WebSocket adapter, or an in-memory adapter for tests can all satisfy it.
|