sew-proto 0.11.6

Sew wire contracts: ids, addresses, errors, HTTP and gateway bodies, permissions, policies, audit.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
{
  "$defs": {
    "CallKeysParams": {
      "description": "The client timings and constants the server relays (READY `call_keys.params` and every\n[`CallKeysInit`]). The single source for client timings.",
      "properties": {
        "ciphersuite": {
          "description": "The ciphersuite every group uses (1).",
          "format": "uint16",
          "maximum": 65535,
          "minimum": 0,
          "type": "integer"
        },
        "ciphersuites": {
          "description": "The ciphersuites the server accepts (`[1]` in v1).",
          "items": {
            "format": "uint16",
            "maximum": 65535,
            "minimum": 0,
            "type": "integer"
          },
          "type": "array"
        },
        "client_activate_fallback_ms": {
          "description": "A sender that acked but hears no `activate` switches after this long.",
          "format": "uint64",
          "minimum": 0,
          "type": "integer"
        },
        "exporter_label": {
          "description": "The MLS exporter label of frame keys ([`tls::EXPORTER_LABEL`]).",
          "type": "string"
        },
        "kdf": {
          "description": "`\"hkdf\"`.",
          "type": "string"
        },
        "key_package_max_lifetime_s": {
          "description": "Longest KeyPackage lifetime the server accepts.",
          "format": "uint64",
          "minimum": 0,
          "type": "integer"
        },
        "key_ring_size": {
          "description": "Always 64.",
          "format": "uint32",
          "minimum": 0,
          "type": "integer"
        },
        "release_info_label": {
          "description": "The recorder release `info` label ([`tls::RELEASE_INFO_LABEL`]).",
          "type": "string"
        },
        "retire_after_ms": {
          "description": "Receivers retire an old slot this long after `activate`.",
          "format": "uint64",
          "minimum": 0,
          "type": "integer"
        },
        "securing_indicator_after_ms": {
          "description": "\"Securing…\" shows only after this long.",
          "format": "uint64",
          "minimum": 0,
          "type": "integer"
        },
        "unknown_call_buffer_ms": {
          "description": "Dispatches for a `call_id` the client does not know yet are buffered this long.",
          "format": "uint64",
          "minimum": 0,
          "type": "integer"
        }
      },
      "required": [
        "ciphersuite",
        "ciphersuites",
        "key_ring_size",
        "kdf",
        "exporter_label",
        "release_info_label",
        "retire_after_ms",
        "client_activate_fallback_ms",
        "key_package_max_lifetime_s",
        "unknown_call_buffer_ms",
        "securing_indicator_after_ms"
      ],
      "type": "object"
    },
    "CallPublicKey": {
      "description": "A public key and its id (`kid` = hex of the first 8 bytes of SHA-256 of the raw key).",
      "properties": {
        "kid": {
          "description": "16 lowercase hex characters.",
          "type": "string"
        },
        "public_key": {
          "description": "The raw 32-byte Ed25519 public key.",
          "pattern": "^[A-Za-z0-9_-]*$",
          "type": "string"
        }
      },
      "required": [
        "kid",
        "public_key"
      ],
      "type": "object"
    },
    "CallReadyUser": {
      "description": "[`CallReady`]'s member.",
      "properties": {
        "id": {
          "description": "The member id.",
          "pattern": "^[1-9][0-9]{0,18}$",
          "type": "string"
        }
      },
      "required": [
        "id"
      ],
      "type": "object"
    },
    "Capture": {
      "description": "Whether a granted participant's microphone is actually captured.",
      "oneOf": [
        {
          "const": "recorded",
          "description": "The recorder captures this member.",
          "type": "string"
        },
        {
          "const": "not_recorded",
          "description": "Not captured (see the reason).",
          "type": "string"
        }
      ]
    },
    "Consent": {
      "description": "What a participant said to the recording notice. Stored in\n`recording_participants.consent`.",
      "oneOf": [
        {
          "const": "pending",
          "description": "In the room, has not answered.",
          "type": "string"
        },
        {
          "const": "granted",
          "description": "Agreed.",
          "type": "string"
        },
        {
          "const": "declined",
          "description": "Refused; stays in the room unrecorded (unless declining means not joining).",
          "type": "string"
        },
        {
          "const": "withdrawn",
          "description": "Agreed earlier, then withdrew.",
          "type": "string"
        }
      ]
    },
    "ConsentPrompt": {
      "description": "The consent modal's data. Every slot is data; templates supply the\nsentences. `notice_version` is a stable hash of every other slot; the answer must echo it.",
      "properties": {
        "admin_download": {
          "description": "Authorised compliance admins can download the audio (always `true` in v1).",
          "type": "boolean"
        },
        "agent_readers": {
          "description": "Agents in this channel can read the transcript (a coworker agent is a member of it);\nabsent when none is.",
          "type": "boolean"
        },
        "app_readers": {
          "description": "The display names of the Apps whose servers can read the transcript (the Space's\ngoverning App, when it may); absent when none.",
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "audio_keep_days": {
          "description": "How long audio is kept (0 = until the transcript is final).",
          "format": "uint16",
          "maximum": 65535,
          "minimum": 0,
          "type": "integer"
        },
        "decline_mode": {
          "$ref": "#/$defs/DeclineMode",
          "description": "What declining does."
        },
        "feature_label": {
          "description": "[`RECORDING_FEATURE_LABEL`].",
          "type": "string"
        },
        "notice_version": {
          "description": "A stable hash of every other slot value.",
          "format": "uint32",
          "minimum": 0,
          "type": "integer"
        },
        "recorded_now": {
          "description": "Who is currently recorded (granted and captured), ascending.",
          "items": {
            "description": "A Sew id: a decimal string of a 64-bit time-sortable id (1 to 9223372036854775807).",
            "pattern": "^[1-9][0-9]{0,18}$",
            "type": "string"
          },
          "type": "array"
        },
        "recorder_name": {
          "description": "[`RECORDER_DISPLAY_NAME`].",
          "type": "string"
        },
        "recording_id": {
          "description": "What the answer refers to.",
          "pattern": "^(auto|[1-9][0-9]{0,18})$",
          "type": "string"
        },
        "required": {
          "description": "The room records every call with two or more people (absent when not).",
          "type": "boolean"
        },
        "room": {
          "$ref": "#/$defs/PromptRoom",
          "description": "Where."
        },
        "started_by": {
          "anyOf": [
            {
              "$ref": "#/$defs/PromptMember"
            },
            {
              "type": "null"
            }
          ],
          "description": "Who started it (`None` for an auto channel with no recording yet)."
        },
        "transcript": {
          "$ref": "#/$defs/PromptTranscript",
          "description": "What happens to the words."
        }
      },
      "required": [
        "recording_id",
        "notice_version",
        "recorder_name",
        "feature_label",
        "room",
        "audio_keep_days",
        "transcript",
        "admin_download",
        "decline_mode",
        "recorded_now"
      ],
      "type": "object"
    },
    "DeclineMode": {
      "description": "What declining does (from `recording.require_consent_to_join`).",
      "oneOf": [
        {
          "const": "join_unrecorded",
          "description": "The decliner joins, unrecorded (the default).",
          "type": "string"
        },
        {
          "const": "not_join",
          "description": "Declining means not joining.",
          "type": "string"
        }
      ]
    },
    "NotRecordedReason": {
      "description": "Why a granted participant is not captured. Stored in\n`recording_participants.capture_reason`.",
      "oneOf": [
        {
          "const": "track_cap",
          "description": "A track cap is reached; not allowlisted.",
          "type": "string"
        },
        {
          "const": "no_microphone",
          "description": "No microphone published.",
          "type": "string"
        },
        {
          "const": "no_key",
          "description": "The recorder could not decrypt the member's frames.",
          "type": "string"
        },
        {
          "const": "unencrypted",
          "description": "The track was published unencrypted.",
          "type": "string"
        },
        {
          "const": "codec",
          "description": "The track is not Opus.",
          "type": "string"
        },
        {
          "const": "permission",
          "description": "Not subscribable under the room's permissions.",
          "type": "string"
        }
      ]
    },
    "PromptMember": {
      "description": "The starter as the consent modal shows them.",
      "properties": {
        "display_name": {
          "description": "Their display name.",
          "type": "string"
        },
        "member_id": {
          "description": "The member.",
          "pattern": "^[1-9][0-9]{0,18}$",
          "type": "string"
        }
      },
      "required": [
        "member_id",
        "display_name"
      ],
      "type": "object"
    },
    "PromptRoom": {
      "description": "Where the recording is.",
      "properties": {
        "channel_id": {
          "description": "The voice channel or DM.",
          "pattern": "^[1-9][0-9]{0,18}$",
          "type": "string"
        },
        "kind": {
          "$ref": "#/$defs/PromptRoomKind",
          "description": "Its kind."
        },
        "name": {
          "description": "The channel's name (voice channels only).",
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "channel_id",
        "kind"
      ],
      "type": "object"
    },
    "PromptRoomKind": {
      "description": "The room kind the modal names.",
      "oneOf": [
        {
          "const": "voice",
          "description": "A voice channel.",
          "type": "string"
        },
        {
          "const": "dm",
          "description": "A DM call.",
          "type": "string"
        },
        {
          "const": "group_dm",
          "description": "A group-DM call.",
          "type": "string"
        }
      ]
    },
    "PromptTranscript": {
      "description": "What happens to the words.",
      "properties": {
        "e2ee": {
          "description": "Transcripts are not end-to-end encrypted.",
          "type": "boolean"
        },
        "posted_to_channel": {
          "description": "Transcripts are posted into the channel as ordinary messages.",
          "type": "boolean"
        },
        "readable_by": {
          "description": "Who can read them: `channel_members`, `search`, `agents`.",
          "items": {
            "type": "string"
          },
          "type": "array"
        }
      },
      "required": [
        "posted_to_channel",
        "readable_by",
        "e2ee"
      ],
      "type": "object"
    },
    "ReadyCallKeys": {
      "description": "READY `call_keys`: the trust anchors and client parameters. Absent when voice is\ndisabled.",
      "properties": {
        "ca": {
          "$ref": "#/$defs/CallPublicKey",
          "description": "The install CA."
        },
        "crl": {
          "description": "Serials of revoked, unexpired device certificates (at most 5,000).",
          "items": {
            "description": "A Sew id: a decimal string of a 64-bit time-sortable id (1 to 9223372036854775807).",
            "pattern": "^[1-9][0-9]{0,18}$",
            "type": "string"
          },
          "type": "array"
        },
        "crl_partial": {
          "description": "More revoked serials exist: page them with `GET /api/v1/devices/crl`.",
          "type": "boolean"
        },
        "ds_public_key": {
          "description": "The raw 32-byte DS Ed25519 key, for pinning.",
          "pattern": "^[A-Za-z0-9_-]*$",
          "type": "string"
        },
        "external_sender": {
          "description": "TLS `ExternalSender` of every group.",
          "pattern": "^[A-Za-z0-9_-]*$",
          "type": "string"
        },
        "params": {
          "$ref": "#/$defs/CallKeysParams",
          "description": "Client timings."
        },
        "verification_code": {
          "$ref": "#/$defs/VerificationCode",
          "description": "Policy `calls.verification_code`."
        }
      },
      "required": [
        "external_sender",
        "ds_public_key",
        "ca",
        "crl",
        "verification_code",
        "params"
      ],
      "type": "object"
    },
    "RecordUnavailable": {
      "description": "Why Record would be refused for now although the person may record: a hint a client\nmay show on a greyed Record. It never changes `can_record`.",
      "oneOf": [
        {
          "const": "recording_capacity",
          "description": "The install runs as many recordings as it allows.",
          "type": "string"
        },
        {
          "const": "recorder_unavailable",
          "description": "The recorder does not answer.",
          "type": "string"
        }
      ]
    },
    "Recording": {
      "description": "A recording.",
      "properties": {
        "audio_keep_days": {
          "description": "Audio keep days (0 = until the transcript is final).",
          "format": "uint16",
          "maximum": 65535,
          "minimum": 0,
          "type": "integer"
        },
        "auto": {
          "description": "Started by an auto-record channel's first join, or (`trigger: required`) by the room\nreaching two people.",
          "type": "boolean"
        },
        "call_record_id": {
          "description": "The DM call (`calls.id`) of a DM-call recording.",
          "pattern": "^[1-9][0-9]{0,18}$",
          "type": [
            "string",
            "null"
          ]
        },
        "channel_id": {
          "description": "The voice channel or DM.",
          "pattern": "^[1-9][0-9]{0,18}$",
          "type": "string"
        },
        "consent_prompt": {
          "anyOf": [
            {
              "$ref": "#/$defs/ConsentPrompt"
            },
            {
              "type": "null"
            }
          ],
          "description": "The consent modal (self only, while the viewer is `pending`)."
        },
        "id": {
          "description": "The recording.",
          "pattern": "^[1-9][0-9]{0,18}$",
          "type": "string"
        },
        "language": {
          "description": "The language hint (`None` = auto).",
          "type": [
            "string",
            "null"
          ]
        },
        "max_duration_ms": {
          "description": "`recording.max_duration_ms`.",
          "format": "uint64",
          "minimum": 0,
          "type": "integer"
        },
        "message_id": {
          "description": "The record message.",
          "pattern": "^[1-9][0-9]{0,18}$",
          "type": "string"
        },
        "mixed": {
          "description": "A mixed file is made after stop.",
          "type": "boolean"
        },
        "my_consent": {
          "anyOf": [
            {
              "$ref": "#/$defs/Consent"
            },
            {
              "type": "null"
            }
          ],
          "description": "The viewer's own consent (self only; absent for non-participants)."
        },
        "my_controls": {
          "anyOf": [
            {
              "$ref": "#/$defs/RecordingControls"
            },
            {
              "type": "null"
            }
          ],
          "description": "The viewer's own Record and Stop (self only), while the viewer is in the recording's\nroom. Absent from servers that predate it, and for viewers outside the room."
        },
        "participants": {
          "description": "Members in the room plus members who ever granted, ascending.",
          "items": {
            "$ref": "#/$defs/RecordingParticipant"
          },
          "type": "array"
        },
        "space_id": {
          "description": "The channel's space (absent for DMs).",
          "pattern": "^[1-9][0-9]{0,18}$",
          "type": [
            "string",
            "null"
          ]
        },
        "started_at": {
          "description": "When.",
          "format": "date-time",
          "type": "string"
        },
        "started_by": {
          "description": "Who started it.",
          "pattern": "^[1-9][0-9]{0,18}$",
          "type": "string"
        },
        "state": {
          "$ref": "#/$defs/RecordingState",
          "description": "Its state."
        },
        "stop_reason": {
          "anyOf": [
            {
              "$ref": "#/$defs/StopReason"
            },
            {
              "type": "null"
            }
          ],
          "description": "Why."
        },
        "stopped_at": {
          "description": "When it stopped.",
          "format": "date-time",
          "type": [
            "string",
            "null"
          ]
        },
        "trigger": {
          "$ref": "#/$defs/RecordingTrigger",
          "default": "manual",
          "description": "What started it: `manual` (someone pressed Record), `auto` (an auto-record room's\nfirst join) or `required` (the room reached two people while it records every call\nwith more than one person). Always sent; a payload without it (an older Sew) reads as\n`manual`, and `auto` then tells an automatic start."
        }
      },
      "required": [
        "id",
        "channel_id",
        "state",
        "started_by",
        "started_at",
        "auto",
        "message_id",
        "mixed",
        "audio_keep_days",
        "max_duration_ms",
        "participants"
      ],
      "type": "object"
    },
    "RecordingControls": {
      "description": "A person's Record and Stop in the room they are in, as Sew would take them now\n(`Recording.my_controls`, the call socket's READY). Of two values, the larger `rev` is the\nnewer.",
      "properties": {
        "can_record": {
          "description": "Sew would take this person's Record now (passing conditions aside).",
          "type": "boolean"
        },
        "can_stop": {
          "description": "Sew would take this person's Stop now.",
          "type": "boolean"
        },
        "record_unavailable": {
          "anyOf": [
            {
              "$ref": "#/$defs/RecordUnavailable"
            },
            {
              "type": "null"
            }
          ],
          "description": "While the person may record: why a start would be refused for now (a hint only)."
        },
        "rev": {
          "default": 0,
          "description": "A server-wide increasing revision.",
          "format": "uint64",
          "minimum": 0,
          "type": "integer"
        }
      },
      "required": [
        "can_record",
        "can_stop"
      ],
      "type": "object"
    },
    "RecordingParticipant": {
      "description": "One participant of a recording, as everyone in the audience sees it.",
      "properties": {
        "capture": {
          "anyOf": [
            {
              "$ref": "#/$defs/Capture"
            },
            {
              "type": "null"
            }
          ],
          "description": "Whether they are captured (only for `granted`)."
        },
        "consent": {
          "$ref": "#/$defs/Consent",
          "description": "What they said."
        },
        "member_id": {
          "description": "The member.",
          "pattern": "^[1-9][0-9]{0,18}$",
          "type": "string"
        },
        "reason": {
          "anyOf": [
            {
              "$ref": "#/$defs/NotRecordedReason"
            },
            {
              "type": "null"
            }
          ],
          "description": "Why not (only for `not_recorded`)."
        }
      },
      "required": [
        "member_id",
        "consent"
      ],
      "type": "object"
    },
    "RecordingState": {
      "description": "A recording's lifecycle state. Stored in `recordings.state`.",
      "oneOf": [
        {
          "const": "starting",
          "description": "Admitting and certifying the recorder.",
          "type": "string"
        },
        {
          "const": "recording",
          "description": "The recorder joined.",
          "type": "string"
        },
        {
          "const": "stopping",
          "description": "Draining the recorder.",
          "type": "string"
        },
        {
          "const": "stopped",
          "description": "Over.",
          "type": "string"
        }
      ]
    },
    "RecordingTrigger": {
      "description": "What started a recording. Stored in `recordings.trigger`.",
      "oneOf": [
        {
          "const": "manual",
          "description": "A person pressed Record (the start route).",
          "type": "string"
        },
        {
          "const": "auto",
          "description": "An auto-record room's first join.",
          "type": "string"
        },
        {
          "const": "required",
          "description": "The room reached two people while recording is required.",
          "type": "string"
        }
      ]
    },
    "StopReason": {
      "description": "Why a recording stopped. Stored in `recordings.stop_reason`.",
      "oneOf": [
        {
          "const": "stopped",
          "description": "The stop route.",
          "type": "string"
        },
        {
          "const": "room_empty",
          "description": "No standard voice entries left in the room.",
          "type": "string"
        },
        {
          "const": "call_ended",
          "description": "The DM call ended.",
          "type": "string"
        },
        {
          "const": "max_duration",
          "description": "`recording.max_duration_ms` reached.",
          "type": "string"
        },
        {
          "const": "recorder_failed",
          "description": "The recorder failed (join timeout, certificate, unreachable, too many rejoins).",
          "type": "string"
        },
        {
          "const": "media_restarted",
          "description": "The engine room was lost beyond the re-admit grace.",
          "type": "string"
        },
        {
          "const": "storage_full",
          "description": "Three consecutive `storage_full` segment writes.",
          "type": "string"
        },
        {
          "const": "disabled",
          "description": "Recording was disabled (policy, config, archive, `sew recording disable`).",
          "type": "string"
        },
        {
          "const": "max_bytes",
          "description": "`recording.max_bytes` reached.",
          "type": "string"
        },
        {
          "const": "mgmt_stopped",
          "description": "Stopped over the management API (the App or K2 governing the room).",
          "type": "string"
        }
      ]
    },
    "VerificationCode": {
      "description": "Policy `calls.verification_code`: whether \"Call info → Security code\" is\nshown. `required` is reserved for a later mode and refused by the policy validator.",
      "oneOf": [
        {
          "const": "shown",
          "description": "Shown on request, never modal (the default).",
          "type": "string"
        },
        {
          "const": "hidden",
          "description": "Not shown.",
          "type": "string"
        },
        {
          "const": "required",
          "description": "Reserved: \"confirm before you speak\" (refused in v1).",
          "type": "string"
        }
      ]
    }
  },
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "description": "The `ready` dispatch of a call socket (a socket IDENTIFYed with a `sewcc_` call\ncredential): no Spaces, channels, presence or read states; the socket indexes nothing and\ngets only `call_keys_delivered`, its member's `voice_server_updated`, its call channel's\n`voice_state_updated`, (Sew 0.7.3) its member's own copy of the call channel's\n`recording_updated` and its member's `recording_controls_updated` for the call channel.",
  "properties": {
    "call_keys": {
      "anyOf": [
        {
          "$ref": "#/$defs/ReadyCallKeys"
        },
        {
          "type": "null"
        }
      ],
      "description": "The call key trust anchors and client parameters, exactly READY's `call_keys` for this\nmember (the CA and DS keys, `external_sender` and the CRL a native client pins\nand checks its certificate against; no route in the credential's scope returns them).\nAbsent when voice is disabled."
    },
    "install_id": {
      "description": "The install id (READY's `install.id`): the native client keys its trust store\non it.",
      "pattern": "^[1-9][0-9]{0,18}$",
      "type": "string"
    },
    "recording": {
      "anyOf": [
        {
          "$ref": "#/$defs/Recording"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "The call channel's active recording as this member sees it (`my_consent`, and\n`consent_prompt` while the member has not answered), or `null` when none is active\n(Sew 0.7.3). A native client rebuilds its recording state (`Input::Recording`) from it\nafter a new gateway session. Always written, so `null` means none is active; an absent\nfield means a Sew older than 0.7.3."
    },
    "recording_controls": {
      "anyOf": [
        {
          "$ref": "#/$defs/RecordingControls"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "The member's Record and Stop in the call's room, or `null` while the member has no\nconnected voice entry there yet. Always written by a server that computes them, so an\nabsent field means an older server."
    },
    "session_id": {
      "description": "The gateway session id: the call credential's `gateway_session` and RESUME's\n`session_id`.",
      "type": "string"
    },
    "user": {
      "$ref": "#/$defs/CallReadyUser",
      "description": "The member."
    },
    "v": {
      "description": "The protocol version (1).",
      "format": "uint32",
      "minimum": 0,
      "type": "integer"
    }
  },
  "required": [
    "v",
    "session_id",
    "user",
    "install_id"
  ],
  "title": "CallReady",
  "type": "object"
}