@faiber/faiber-session 0.11.0 → 0.11.1

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.
@@ -118,12 +118,22 @@ export interface ConfigurationLivekitConfigUpdatePutResponseData extends JsonObj
118
118
  export interface ConfigurationLivekitConfigUpdatePutResponse extends ApiEnvelope<ConfigurationLivekitConfigUpdatePutResponseData> {
119
119
  }
120
120
  /** Backend response type: crate::integration::models::IntegrationDocsResponse. */
121
+ export interface IntegrationIntegrationDocsShowGetResponseDataSteps extends JsonObject {
122
+ "method": string;
123
+ "path": string;
124
+ "description": string;
125
+ }
126
+ export interface IntegrationIntegrationDocsShowGetResponseDataSnippets extends JsonObject {
127
+ "language": string;
128
+ "title": string;
129
+ "code": string;
130
+ }
121
131
  export interface IntegrationIntegrationDocsShowGetResponseData extends JsonObject {
122
132
  "api_base_path": string;
123
133
  "livekit_ws_url": string;
124
134
  "authentication": string;
125
- "steps": BackendJson<"IntegrationStep">[];
126
- "snippets": BackendJson<"IntegrationSnippet">[];
135
+ "steps": IntegrationIntegrationDocsShowGetResponseDataSteps[];
136
+ "snippets": IntegrationIntegrationDocsShowGetResponseDataSnippets[];
127
137
  }
128
138
  export interface IntegrationIntegrationDocsShowGetResponse extends ApiEnvelope<IntegrationIntegrationDocsShowGetResponseData> {
129
139
  }
@@ -164,13 +174,56 @@ export interface RecordingRecordingsIndexGetQuery extends QueryParams {
164
174
  "status"?: string | null;
165
175
  }
166
176
  /** Backend response type: RecordingQueueResponse. */
177
+ export interface RecordingRecordingsIndexGetResponseDataRecordings extends JsonObject {
178
+ "id": string;
179
+ "room_id": string;
180
+ "room_name": string;
181
+ "duration": number;
182
+ "status": string;
183
+ "process_at"?: string | null;
184
+ "processing_started_at"?: string | null;
185
+ "completed_at"?: string | null;
186
+ "processing_error"?: string | null;
187
+ "audio_processing": boolean;
188
+ "started_at"?: string | null;
189
+ "stopped_at"?: string | null;
190
+ }
191
+ export interface RecordingRecordingsIndexGetResponseDataMeta extends JsonObject {
192
+ "page": number;
193
+ "page_size": number;
194
+ "total_items": number;
195
+ "total_pages": number;
196
+ }
167
197
  export interface RecordingRecordingsIndexGetResponseData extends JsonObject {
168
- "recordings": BackendJson<"RecordingQueueItem">[];
169
- "meta": BackendJson<"PagedPaginationMeta">;
198
+ "recordings": RecordingRecordingsIndexGetResponseDataRecordings[];
199
+ "meta": RecordingRecordingsIndexGetResponseDataMeta;
170
200
  }
171
201
  export interface RecordingRecordingsIndexGetResponse extends ApiEnvelope<RecordingRecordingsIndexGetResponseData> {
172
202
  }
173
203
  /** Backend response type: RecordingManifestResponse. */
204
+ export interface RecordingRecordingManifestGetResponseDataTracks extends JsonObject {
205
+ "id": string;
206
+ "participant_identity": string;
207
+ "profile_id"?: string | null;
208
+ "track_sid": string;
209
+ "kind": string;
210
+ "source": string;
211
+ "mime_type": string;
212
+ "object_key": string;
213
+ "started_at": string;
214
+ "ended_at"?: string | null;
215
+ "duration_ms"?: number | null;
216
+ "status": string;
217
+ }
218
+ export interface RecordingRecordingManifestGetResponseDataAudioAnalyses extends JsonObject {
219
+ "track_id": string;
220
+ "profile_id"?: string | null;
221
+ "started_at": string;
222
+ "ended_at"?: string | null;
223
+ "model_ref": string;
224
+ "transcript": string;
225
+ "analysis": JsonValue;
226
+ }
174
227
  export interface RecordingRecordingManifestGetResponseData extends JsonObject {
175
228
  "schema_version": number;
176
229
  "recording_id": string;
@@ -180,8 +233,8 @@ export interface RecordingRecordingManifestGetResponseData extends JsonObject {
180
233
  "stopped_at"?: string | null;
181
234
  "archive_key"?: string | null;
182
235
  "manifest_key"?: string | null;
183
- "tracks": BackendJson<"RecordingTrackResponse">[];
184
- "audio_analyses": BackendJson<"AudioAnalysisResponse">[];
236
+ "tracks": RecordingRecordingManifestGetResponseDataTracks[];
237
+ "audio_analyses": RecordingRecordingManifestGetResponseDataAudioAnalyses[];
185
238
  }
186
239
  export interface RecordingRecordingManifestGetResponse extends ApiEnvelope<RecordingRecordingManifestGetResponseData> {
187
240
  }
@@ -192,6 +245,29 @@ export interface RecordingRecordingSchedulePostInput extends JsonObject {
192
245
  "audio_model_ref"?: string | null;
193
246
  }
194
247
  /** Backend response type: RecordingManifestResponse. */
248
+ export interface RecordingRecordingSchedulePostResponseDataTracks extends JsonObject {
249
+ "id": string;
250
+ "participant_identity": string;
251
+ "profile_id"?: string | null;
252
+ "track_sid": string;
253
+ "kind": string;
254
+ "source": string;
255
+ "mime_type": string;
256
+ "object_key": string;
257
+ "started_at": string;
258
+ "ended_at"?: string | null;
259
+ "duration_ms"?: number | null;
260
+ "status": string;
261
+ }
262
+ export interface RecordingRecordingSchedulePostResponseDataAudioAnalyses extends JsonObject {
263
+ "track_id": string;
264
+ "profile_id"?: string | null;
265
+ "started_at": string;
266
+ "ended_at"?: string | null;
267
+ "model_ref": string;
268
+ "transcript": string;
269
+ "analysis": JsonValue;
270
+ }
195
271
  export interface RecordingRecordingSchedulePostResponseData extends JsonObject {
196
272
  "schema_version": number;
197
273
  "recording_id": string;
@@ -201,8 +277,8 @@ export interface RecordingRecordingSchedulePostResponseData extends JsonObject {
201
277
  "stopped_at"?: string | null;
202
278
  "archive_key"?: string | null;
203
279
  "manifest_key"?: string | null;
204
- "tracks": BackendJson<"RecordingTrackResponse">[];
205
- "audio_analyses": BackendJson<"AudioAnalysisResponse">[];
280
+ "tracks": RecordingRecordingSchedulePostResponseDataTracks[];
281
+ "audio_analyses": RecordingRecordingSchedulePostResponseDataAudioAnalyses[];
206
282
  }
207
283
  export interface RecordingRecordingSchedulePostResponse extends ApiEnvelope<RecordingRecordingSchedulePostResponseData> {
208
284
  }
@@ -216,9 +292,14 @@ export interface RecordingAudioModelsGetResponseItem extends JsonObject {
216
292
  export interface RecordingAudioModelsGetResponse extends ApiEnvelope<RecordingAudioModelsGetResponseItem[]> {
217
293
  }
218
294
  /** Backend request type: RoomStateRespond. */
295
+ export interface RoomStateRoomStateRespondPostInputEvidenceImages extends JsonObject {
296
+ "mime_type": string;
297
+ "data_base64": string;
298
+ "name"?: string | null;
299
+ }
219
300
  export interface RoomStateRoomStateRespondPostInput extends JsonObject {
220
301
  "values": string[];
221
- "evidence_images"?: BackendJson<"TaskEvidenceImage">[];
302
+ "evidence_images"?: RoomStateRoomStateRespondPostInputEvidenceImages[];
222
303
  }
223
304
  /** Backend response type: RoomStateRespondResponse. */
224
305
  export interface RoomStateRoomStateRespondPostResponseData extends JsonObject {
@@ -236,69 +317,963 @@ export interface RoomRoomsIndexGetQuery extends QueryParams {
236
317
  "search"?: string | null;
237
318
  }
238
319
  /** Backend response type: RoomListResponse. */
320
+ export interface RoomRoomsIndexGetResponseDataRooms extends JsonObject {
321
+ "id": string;
322
+ "name": string;
323
+ "capacity": number;
324
+ "status": number;
325
+ "session_id"?: string | null;
326
+ "starts_at"?: string | null;
327
+ "ended_at"?: string | null;
328
+ "current_state"?: string | null;
329
+ "is_done": boolean;
330
+ }
239
331
  export interface RoomRoomsIndexGetResponseData extends JsonObject {
240
- "rooms": BackendJson<"RoomResponse">[];
332
+ "rooms": RoomRoomsIndexGetResponseDataRooms[];
241
333
  }
242
334
  export interface RoomRoomsIndexGetResponse extends ApiEnvelope<RoomRoomsIndexGetResponseData> {
243
335
  }
244
336
  /** Backend request type: RoomCreate. */
337
+ export type RoomRoomsCreatePostInputStatesState = "NotOpen" | "Awaiting" | "Question" | "Game" | "Task" | "Ended" | "Closed" | "Replay" | "Live" | "Interactive" | "ChargeLow";
338
+ export interface RoomRoomsCreatePostInputStatesDataGameHintVideo extends JsonObject {
339
+ "id": number;
340
+ "type": string;
341
+ }
342
+ export interface RoomRoomsCreatePostInputStatesDataGame extends JsonObject {
343
+ "id": string;
344
+ "game_id": string;
345
+ "duration": number;
346
+ "hint_text"?: string | null;
347
+ "hint_image"?: string | null;
348
+ "hint_video"?: RoomRoomsCreatePostInputStatesDataGameHintVideo | null;
349
+ }
350
+ export interface RoomRoomsCreatePostInputStatesDataQuestionVideo extends JsonObject {
351
+ "id": number;
352
+ "type": string;
353
+ }
354
+ export interface RoomRoomsCreatePostInputStatesDataQuestionHintVideo extends JsonObject {
355
+ "id": number;
356
+ "type": string;
357
+ }
358
+ export interface RoomRoomsCreatePostInputStatesDataQuestionOptions extends JsonObject {
359
+ "id": number;
360
+ "answer": string;
361
+ }
362
+ export interface RoomRoomsCreatePostInputStatesDataQuestion extends JsonObject {
363
+ "id": string;
364
+ "duration": number;
365
+ "text"?: string | null;
366
+ "hint_text"?: string | null;
367
+ "image"?: string | null;
368
+ "hint_image"?: string | null;
369
+ "video"?: RoomRoomsCreatePostInputStatesDataQuestionVideo | null;
370
+ "hint_video"?: RoomRoomsCreatePostInputStatesDataQuestionHintVideo | null;
371
+ "options"?: RoomRoomsCreatePostInputStatesDataQuestionOptions[] | null;
372
+ }
373
+ export interface RoomRoomsCreatePostInputStatesDataTaskVideo extends JsonObject {
374
+ "id": number;
375
+ "type": string;
376
+ }
377
+ export interface RoomRoomsCreatePostInputStatesDataTaskHintVideo extends JsonObject {
378
+ "id": number;
379
+ "type": string;
380
+ }
381
+ export interface RoomRoomsCreatePostInputStatesDataTask extends JsonObject {
382
+ "id": string;
383
+ "duration": number;
384
+ "text"?: string | null;
385
+ "hint_text"?: string | null;
386
+ "image"?: string | null;
387
+ "hint_image"?: string | null;
388
+ "video"?: RoomRoomsCreatePostInputStatesDataTaskVideo | null;
389
+ "hint_video"?: RoomRoomsCreatePostInputStatesDataTaskHintVideo | null;
390
+ }
391
+ export interface RoomRoomsCreatePostInputStatesDataInteractiveVideo extends JsonObject {
392
+ "id": number;
393
+ "type": string;
394
+ }
395
+ export interface RoomRoomsCreatePostInputStatesDataInteractive extends JsonObject {
396
+ "id": string;
397
+ "duration": number;
398
+ "video"?: RoomRoomsCreatePostInputStatesDataInteractiveVideo | null;
399
+ }
400
+ export type RoomRoomsCreatePostInputStatesDataValidationType = "Equality" | "AssistantPrompt";
401
+ export interface RoomRoomsCreatePostInputStatesDataValidation extends JsonObject {
402
+ "type": RoomRoomsCreatePostInputStatesDataValidationType;
403
+ "value": string;
404
+ }
405
+ export interface RoomRoomsCreatePostInputStatesDataRewards extends JsonObject {
406
+ "on_complete": string;
407
+ }
408
+ export interface RoomRoomsCreatePostInputStatesData extends JsonObject {
409
+ "game"?: RoomRoomsCreatePostInputStatesDataGame | null;
410
+ "question"?: RoomRoomsCreatePostInputStatesDataQuestion | null;
411
+ "task"?: RoomRoomsCreatePostInputStatesDataTask | null;
412
+ "interactive"?: RoomRoomsCreatePostInputStatesDataInteractive | null;
413
+ "validation"?: RoomRoomsCreatePostInputStatesDataValidation[] | null;
414
+ "rewards"?: RoomRoomsCreatePostInputStatesDataRewards | null;
415
+ "content_id"?: string | null;
416
+ "composition"?: JsonValue | null;
417
+ }
418
+ export interface RoomRoomsCreatePostInputStates extends JsonObject {
419
+ "state": RoomRoomsCreatePostInputStatesState;
420
+ "duration": number;
421
+ "data"?: RoomRoomsCreatePostInputStatesData | null;
422
+ }
245
423
  export interface RoomRoomsCreatePostInput extends JsonObject {
246
424
  "name": string;
247
425
  "capacity": number;
248
426
  "session_id"?: string | null;
249
427
  "users"?: string[] | null;
250
- "states"?: BackendJson<"RoomStateCommand">[] | null;
428
+ "states"?: RoomRoomsCreatePostInputStates[] | null;
251
429
  "status"?: number | null;
252
430
  "starts_at": string;
253
431
  "drm_mixed_media_id"?: string | null;
254
432
  }
255
433
  /** Backend response type: RoomSingleResponse. */
434
+ export interface RoomRoomsCreatePostResponseDataRoomClients extends JsonObject {
435
+ "id": string;
436
+ "profile_id": string;
437
+ "roles": string[];
438
+ "name"?: string | null;
439
+ "token"?: string | null;
440
+ "status": number;
441
+ }
442
+ export interface RoomRoomsCreatePostResponseDataRoomCurrentStateClientResponses extends JsonObject {
443
+ "id": string;
444
+ "client_id": string;
445
+ "room_state_id": string;
446
+ "validated"?: boolean | null;
447
+ "created_at": string;
448
+ "validated_at"?: string | null;
449
+ }
450
+ export interface RoomRoomsCreatePostResponseDataRoomCurrentStateDataGameHintVideo extends JsonObject {
451
+ "id": number;
452
+ "type": string;
453
+ }
454
+ export interface RoomRoomsCreatePostResponseDataRoomCurrentStateDataGame extends JsonObject {
455
+ "id": string;
456
+ "game_id": string;
457
+ "duration": number;
458
+ "hint_text"?: string | null;
459
+ "hint_image"?: string | null;
460
+ "hint_video"?: RoomRoomsCreatePostResponseDataRoomCurrentStateDataGameHintVideo | null;
461
+ }
462
+ export interface RoomRoomsCreatePostResponseDataRoomCurrentStateDataQuestionVideo extends JsonObject {
463
+ "id": number;
464
+ "type": string;
465
+ }
466
+ export interface RoomRoomsCreatePostResponseDataRoomCurrentStateDataQuestionHintVideo extends JsonObject {
467
+ "id": number;
468
+ "type": string;
469
+ }
470
+ export interface RoomRoomsCreatePostResponseDataRoomCurrentStateDataQuestionOptions extends JsonObject {
471
+ "id": number;
472
+ "answer": string;
473
+ }
474
+ export interface RoomRoomsCreatePostResponseDataRoomCurrentStateDataQuestion extends JsonObject {
475
+ "id": string;
476
+ "duration": number;
477
+ "text"?: string | null;
478
+ "hint_text"?: string | null;
479
+ "image"?: string | null;
480
+ "hint_image"?: string | null;
481
+ "video"?: RoomRoomsCreatePostResponseDataRoomCurrentStateDataQuestionVideo | null;
482
+ "hint_video"?: RoomRoomsCreatePostResponseDataRoomCurrentStateDataQuestionHintVideo | null;
483
+ "options"?: RoomRoomsCreatePostResponseDataRoomCurrentStateDataQuestionOptions[] | null;
484
+ }
485
+ export interface RoomRoomsCreatePostResponseDataRoomCurrentStateDataTaskVideo extends JsonObject {
486
+ "id": number;
487
+ "type": string;
488
+ }
489
+ export interface RoomRoomsCreatePostResponseDataRoomCurrentStateDataTaskHintVideo extends JsonObject {
490
+ "id": number;
491
+ "type": string;
492
+ }
493
+ export interface RoomRoomsCreatePostResponseDataRoomCurrentStateDataTask extends JsonObject {
494
+ "id": string;
495
+ "duration": number;
496
+ "text"?: string | null;
497
+ "hint_text"?: string | null;
498
+ "image"?: string | null;
499
+ "hint_image"?: string | null;
500
+ "video"?: RoomRoomsCreatePostResponseDataRoomCurrentStateDataTaskVideo | null;
501
+ "hint_video"?: RoomRoomsCreatePostResponseDataRoomCurrentStateDataTaskHintVideo | null;
502
+ }
503
+ export interface RoomRoomsCreatePostResponseDataRoomCurrentStateDataInteractiveVideo extends JsonObject {
504
+ "id": number;
505
+ "type": string;
506
+ }
507
+ export interface RoomRoomsCreatePostResponseDataRoomCurrentStateDataInteractive extends JsonObject {
508
+ "id": string;
509
+ "duration": number;
510
+ "video"?: RoomRoomsCreatePostResponseDataRoomCurrentStateDataInteractiveVideo | null;
511
+ }
512
+ export type RoomRoomsCreatePostResponseDataRoomCurrentStateDataValidationType = "Equality" | "AssistantPrompt";
513
+ export interface RoomRoomsCreatePostResponseDataRoomCurrentStateDataValidation extends JsonObject {
514
+ "type": RoomRoomsCreatePostResponseDataRoomCurrentStateDataValidationType;
515
+ "value": string;
516
+ }
517
+ export interface RoomRoomsCreatePostResponseDataRoomCurrentStateDataRewards extends JsonObject {
518
+ "on_complete": string;
519
+ }
520
+ export interface RoomRoomsCreatePostResponseDataRoomCurrentStateData extends JsonObject {
521
+ "game"?: RoomRoomsCreatePostResponseDataRoomCurrentStateDataGame | null;
522
+ "question"?: RoomRoomsCreatePostResponseDataRoomCurrentStateDataQuestion | null;
523
+ "task"?: RoomRoomsCreatePostResponseDataRoomCurrentStateDataTask | null;
524
+ "interactive"?: RoomRoomsCreatePostResponseDataRoomCurrentStateDataInteractive | null;
525
+ "validation"?: RoomRoomsCreatePostResponseDataRoomCurrentStateDataValidation[] | null;
526
+ "rewards"?: RoomRoomsCreatePostResponseDataRoomCurrentStateDataRewards | null;
527
+ "content_id"?: string | null;
528
+ "composition"?: JsonValue | null;
529
+ }
530
+ export type RoomRoomsCreatePostResponseDataRoomCurrentStateState = "NotOpen" | "Awaiting" | "Question" | "Game" | "Task" | "Ended" | "Closed" | "Replay" | "Live" | "Interactive" | "ChargeLow";
531
+ export interface RoomRoomsCreatePostResponseDataRoomCurrentState extends JsonObject {
532
+ "id": string;
533
+ "room_id": string;
534
+ "duration_in_seconds": number;
535
+ "client_responses": RoomRoomsCreatePostResponseDataRoomCurrentStateClientResponses[];
536
+ "data"?: RoomRoomsCreatePostResponseDataRoomCurrentStateData | null;
537
+ "state": RoomRoomsCreatePostResponseDataRoomCurrentStateState;
538
+ "started_at"?: string | null;
539
+ "ended_at"?: string | null;
540
+ "status": number;
541
+ }
542
+ export interface RoomRoomsCreatePostResponseDataRoom extends JsonObject {
543
+ "id": string;
544
+ "lms_classroom_session_id"?: string | null;
545
+ "name": string;
546
+ "capacity": number;
547
+ "starts_at"?: string | null;
548
+ "ended_at"?: string | null;
549
+ "clients": RoomRoomsCreatePostResponseDataRoomClients[];
550
+ "current_state"?: RoomRoomsCreatePostResponseDataRoomCurrentState | null;
551
+ "duration_in_seconds": number;
552
+ "room_name": string;
553
+ "room_channel": string;
554
+ "server_time": string;
555
+ "status": number;
556
+ "drm_mixed_media_id"?: string | null;
557
+ "drm_manifest_version"?: number | null;
558
+ }
256
559
  export interface RoomRoomsCreatePostResponseData extends JsonObject {
257
- "room": BackendJson<"RoomDetailResponse">;
560
+ "room": RoomRoomsCreatePostResponseDataRoom;
258
561
  }
259
562
  export interface RoomRoomsCreatePostResponse extends ApiEnvelope<RoomRoomsCreatePostResponseData> {
260
563
  }
261
564
  /** Backend response type: RoomSingleResponse. */
565
+ export interface RoomRoomsDeleteDeleteResponseDataRoomClients extends JsonObject {
566
+ "id": string;
567
+ "profile_id": string;
568
+ "roles": string[];
569
+ "name"?: string | null;
570
+ "token"?: string | null;
571
+ "status": number;
572
+ }
573
+ export interface RoomRoomsDeleteDeleteResponseDataRoomCurrentStateClientResponses extends JsonObject {
574
+ "id": string;
575
+ "client_id": string;
576
+ "room_state_id": string;
577
+ "validated"?: boolean | null;
578
+ "created_at": string;
579
+ "validated_at"?: string | null;
580
+ }
581
+ export interface RoomRoomsDeleteDeleteResponseDataRoomCurrentStateDataGameHintVideo extends JsonObject {
582
+ "id": number;
583
+ "type": string;
584
+ }
585
+ export interface RoomRoomsDeleteDeleteResponseDataRoomCurrentStateDataGame extends JsonObject {
586
+ "id": string;
587
+ "game_id": string;
588
+ "duration": number;
589
+ "hint_text"?: string | null;
590
+ "hint_image"?: string | null;
591
+ "hint_video"?: RoomRoomsDeleteDeleteResponseDataRoomCurrentStateDataGameHintVideo | null;
592
+ }
593
+ export interface RoomRoomsDeleteDeleteResponseDataRoomCurrentStateDataQuestionVideo extends JsonObject {
594
+ "id": number;
595
+ "type": string;
596
+ }
597
+ export interface RoomRoomsDeleteDeleteResponseDataRoomCurrentStateDataQuestionHintVideo extends JsonObject {
598
+ "id": number;
599
+ "type": string;
600
+ }
601
+ export interface RoomRoomsDeleteDeleteResponseDataRoomCurrentStateDataQuestionOptions extends JsonObject {
602
+ "id": number;
603
+ "answer": string;
604
+ }
605
+ export interface RoomRoomsDeleteDeleteResponseDataRoomCurrentStateDataQuestion extends JsonObject {
606
+ "id": string;
607
+ "duration": number;
608
+ "text"?: string | null;
609
+ "hint_text"?: string | null;
610
+ "image"?: string | null;
611
+ "hint_image"?: string | null;
612
+ "video"?: RoomRoomsDeleteDeleteResponseDataRoomCurrentStateDataQuestionVideo | null;
613
+ "hint_video"?: RoomRoomsDeleteDeleteResponseDataRoomCurrentStateDataQuestionHintVideo | null;
614
+ "options"?: RoomRoomsDeleteDeleteResponseDataRoomCurrentStateDataQuestionOptions[] | null;
615
+ }
616
+ export interface RoomRoomsDeleteDeleteResponseDataRoomCurrentStateDataTaskVideo extends JsonObject {
617
+ "id": number;
618
+ "type": string;
619
+ }
620
+ export interface RoomRoomsDeleteDeleteResponseDataRoomCurrentStateDataTaskHintVideo extends JsonObject {
621
+ "id": number;
622
+ "type": string;
623
+ }
624
+ export interface RoomRoomsDeleteDeleteResponseDataRoomCurrentStateDataTask extends JsonObject {
625
+ "id": string;
626
+ "duration": number;
627
+ "text"?: string | null;
628
+ "hint_text"?: string | null;
629
+ "image"?: string | null;
630
+ "hint_image"?: string | null;
631
+ "video"?: RoomRoomsDeleteDeleteResponseDataRoomCurrentStateDataTaskVideo | null;
632
+ "hint_video"?: RoomRoomsDeleteDeleteResponseDataRoomCurrentStateDataTaskHintVideo | null;
633
+ }
634
+ export interface RoomRoomsDeleteDeleteResponseDataRoomCurrentStateDataInteractiveVideo extends JsonObject {
635
+ "id": number;
636
+ "type": string;
637
+ }
638
+ export interface RoomRoomsDeleteDeleteResponseDataRoomCurrentStateDataInteractive extends JsonObject {
639
+ "id": string;
640
+ "duration": number;
641
+ "video"?: RoomRoomsDeleteDeleteResponseDataRoomCurrentStateDataInteractiveVideo | null;
642
+ }
643
+ export type RoomRoomsDeleteDeleteResponseDataRoomCurrentStateDataValidationType = "Equality" | "AssistantPrompt";
644
+ export interface RoomRoomsDeleteDeleteResponseDataRoomCurrentStateDataValidation extends JsonObject {
645
+ "type": RoomRoomsDeleteDeleteResponseDataRoomCurrentStateDataValidationType;
646
+ "value": string;
647
+ }
648
+ export interface RoomRoomsDeleteDeleteResponseDataRoomCurrentStateDataRewards extends JsonObject {
649
+ "on_complete": string;
650
+ }
651
+ export interface RoomRoomsDeleteDeleteResponseDataRoomCurrentStateData extends JsonObject {
652
+ "game"?: RoomRoomsDeleteDeleteResponseDataRoomCurrentStateDataGame | null;
653
+ "question"?: RoomRoomsDeleteDeleteResponseDataRoomCurrentStateDataQuestion | null;
654
+ "task"?: RoomRoomsDeleteDeleteResponseDataRoomCurrentStateDataTask | null;
655
+ "interactive"?: RoomRoomsDeleteDeleteResponseDataRoomCurrentStateDataInteractive | null;
656
+ "validation"?: RoomRoomsDeleteDeleteResponseDataRoomCurrentStateDataValidation[] | null;
657
+ "rewards"?: RoomRoomsDeleteDeleteResponseDataRoomCurrentStateDataRewards | null;
658
+ "content_id"?: string | null;
659
+ "composition"?: JsonValue | null;
660
+ }
661
+ export type RoomRoomsDeleteDeleteResponseDataRoomCurrentStateState = "NotOpen" | "Awaiting" | "Question" | "Game" | "Task" | "Ended" | "Closed" | "Replay" | "Live" | "Interactive" | "ChargeLow";
662
+ export interface RoomRoomsDeleteDeleteResponseDataRoomCurrentState extends JsonObject {
663
+ "id": string;
664
+ "room_id": string;
665
+ "duration_in_seconds": number;
666
+ "client_responses": RoomRoomsDeleteDeleteResponseDataRoomCurrentStateClientResponses[];
667
+ "data"?: RoomRoomsDeleteDeleteResponseDataRoomCurrentStateData | null;
668
+ "state": RoomRoomsDeleteDeleteResponseDataRoomCurrentStateState;
669
+ "started_at"?: string | null;
670
+ "ended_at"?: string | null;
671
+ "status": number;
672
+ }
673
+ export interface RoomRoomsDeleteDeleteResponseDataRoom extends JsonObject {
674
+ "id": string;
675
+ "lms_classroom_session_id"?: string | null;
676
+ "name": string;
677
+ "capacity": number;
678
+ "starts_at"?: string | null;
679
+ "ended_at"?: string | null;
680
+ "clients": RoomRoomsDeleteDeleteResponseDataRoomClients[];
681
+ "current_state"?: RoomRoomsDeleteDeleteResponseDataRoomCurrentState | null;
682
+ "duration_in_seconds": number;
683
+ "room_name": string;
684
+ "room_channel": string;
685
+ "server_time": string;
686
+ "status": number;
687
+ "drm_mixed_media_id"?: string | null;
688
+ "drm_manifest_version"?: number | null;
689
+ }
262
690
  export interface RoomRoomsDeleteDeleteResponseData extends JsonObject {
263
- "room": BackendJson<"RoomDetailResponse">;
691
+ "room": RoomRoomsDeleteDeleteResponseDataRoom;
264
692
  }
265
693
  export interface RoomRoomsDeleteDeleteResponse extends ApiEnvelope<RoomRoomsDeleteDeleteResponseData> {
266
694
  }
267
695
  /** Backend response type: RoomSingleResponse. */
696
+ export interface RoomRoomsShowGetResponseDataRoomClients extends JsonObject {
697
+ "id": string;
698
+ "profile_id": string;
699
+ "roles": string[];
700
+ "name"?: string | null;
701
+ "token"?: string | null;
702
+ "status": number;
703
+ }
704
+ export interface RoomRoomsShowGetResponseDataRoomCurrentStateClientResponses extends JsonObject {
705
+ "id": string;
706
+ "client_id": string;
707
+ "room_state_id": string;
708
+ "validated"?: boolean | null;
709
+ "created_at": string;
710
+ "validated_at"?: string | null;
711
+ }
712
+ export interface RoomRoomsShowGetResponseDataRoomCurrentStateDataGameHintVideo extends JsonObject {
713
+ "id": number;
714
+ "type": string;
715
+ }
716
+ export interface RoomRoomsShowGetResponseDataRoomCurrentStateDataGame extends JsonObject {
717
+ "id": string;
718
+ "game_id": string;
719
+ "duration": number;
720
+ "hint_text"?: string | null;
721
+ "hint_image"?: string | null;
722
+ "hint_video"?: RoomRoomsShowGetResponseDataRoomCurrentStateDataGameHintVideo | null;
723
+ }
724
+ export interface RoomRoomsShowGetResponseDataRoomCurrentStateDataQuestionVideo extends JsonObject {
725
+ "id": number;
726
+ "type": string;
727
+ }
728
+ export interface RoomRoomsShowGetResponseDataRoomCurrentStateDataQuestionHintVideo extends JsonObject {
729
+ "id": number;
730
+ "type": string;
731
+ }
732
+ export interface RoomRoomsShowGetResponseDataRoomCurrentStateDataQuestionOptions extends JsonObject {
733
+ "id": number;
734
+ "answer": string;
735
+ }
736
+ export interface RoomRoomsShowGetResponseDataRoomCurrentStateDataQuestion extends JsonObject {
737
+ "id": string;
738
+ "duration": number;
739
+ "text"?: string | null;
740
+ "hint_text"?: string | null;
741
+ "image"?: string | null;
742
+ "hint_image"?: string | null;
743
+ "video"?: RoomRoomsShowGetResponseDataRoomCurrentStateDataQuestionVideo | null;
744
+ "hint_video"?: RoomRoomsShowGetResponseDataRoomCurrentStateDataQuestionHintVideo | null;
745
+ "options"?: RoomRoomsShowGetResponseDataRoomCurrentStateDataQuestionOptions[] | null;
746
+ }
747
+ export interface RoomRoomsShowGetResponseDataRoomCurrentStateDataTaskVideo extends JsonObject {
748
+ "id": number;
749
+ "type": string;
750
+ }
751
+ export interface RoomRoomsShowGetResponseDataRoomCurrentStateDataTaskHintVideo extends JsonObject {
752
+ "id": number;
753
+ "type": string;
754
+ }
755
+ export interface RoomRoomsShowGetResponseDataRoomCurrentStateDataTask extends JsonObject {
756
+ "id": string;
757
+ "duration": number;
758
+ "text"?: string | null;
759
+ "hint_text"?: string | null;
760
+ "image"?: string | null;
761
+ "hint_image"?: string | null;
762
+ "video"?: RoomRoomsShowGetResponseDataRoomCurrentStateDataTaskVideo | null;
763
+ "hint_video"?: RoomRoomsShowGetResponseDataRoomCurrentStateDataTaskHintVideo | null;
764
+ }
765
+ export interface RoomRoomsShowGetResponseDataRoomCurrentStateDataInteractiveVideo extends JsonObject {
766
+ "id": number;
767
+ "type": string;
768
+ }
769
+ export interface RoomRoomsShowGetResponseDataRoomCurrentStateDataInteractive extends JsonObject {
770
+ "id": string;
771
+ "duration": number;
772
+ "video"?: RoomRoomsShowGetResponseDataRoomCurrentStateDataInteractiveVideo | null;
773
+ }
774
+ export type RoomRoomsShowGetResponseDataRoomCurrentStateDataValidationType = "Equality" | "AssistantPrompt";
775
+ export interface RoomRoomsShowGetResponseDataRoomCurrentStateDataValidation extends JsonObject {
776
+ "type": RoomRoomsShowGetResponseDataRoomCurrentStateDataValidationType;
777
+ "value": string;
778
+ }
779
+ export interface RoomRoomsShowGetResponseDataRoomCurrentStateDataRewards extends JsonObject {
780
+ "on_complete": string;
781
+ }
782
+ export interface RoomRoomsShowGetResponseDataRoomCurrentStateData extends JsonObject {
783
+ "game"?: RoomRoomsShowGetResponseDataRoomCurrentStateDataGame | null;
784
+ "question"?: RoomRoomsShowGetResponseDataRoomCurrentStateDataQuestion | null;
785
+ "task"?: RoomRoomsShowGetResponseDataRoomCurrentStateDataTask | null;
786
+ "interactive"?: RoomRoomsShowGetResponseDataRoomCurrentStateDataInteractive | null;
787
+ "validation"?: RoomRoomsShowGetResponseDataRoomCurrentStateDataValidation[] | null;
788
+ "rewards"?: RoomRoomsShowGetResponseDataRoomCurrentStateDataRewards | null;
789
+ "content_id"?: string | null;
790
+ "composition"?: JsonValue | null;
791
+ }
792
+ export type RoomRoomsShowGetResponseDataRoomCurrentStateState = "NotOpen" | "Awaiting" | "Question" | "Game" | "Task" | "Ended" | "Closed" | "Replay" | "Live" | "Interactive" | "ChargeLow";
793
+ export interface RoomRoomsShowGetResponseDataRoomCurrentState extends JsonObject {
794
+ "id": string;
795
+ "room_id": string;
796
+ "duration_in_seconds": number;
797
+ "client_responses": RoomRoomsShowGetResponseDataRoomCurrentStateClientResponses[];
798
+ "data"?: RoomRoomsShowGetResponseDataRoomCurrentStateData | null;
799
+ "state": RoomRoomsShowGetResponseDataRoomCurrentStateState;
800
+ "started_at"?: string | null;
801
+ "ended_at"?: string | null;
802
+ "status": number;
803
+ }
804
+ export interface RoomRoomsShowGetResponseDataRoom extends JsonObject {
805
+ "id": string;
806
+ "lms_classroom_session_id"?: string | null;
807
+ "name": string;
808
+ "capacity": number;
809
+ "starts_at"?: string | null;
810
+ "ended_at"?: string | null;
811
+ "clients": RoomRoomsShowGetResponseDataRoomClients[];
812
+ "current_state"?: RoomRoomsShowGetResponseDataRoomCurrentState | null;
813
+ "duration_in_seconds": number;
814
+ "room_name": string;
815
+ "room_channel": string;
816
+ "server_time": string;
817
+ "status": number;
818
+ "drm_mixed_media_id"?: string | null;
819
+ "drm_manifest_version"?: number | null;
820
+ }
268
821
  export interface RoomRoomsShowGetResponseData extends JsonObject {
269
- "room": BackendJson<"RoomDetailResponse">;
822
+ "room": RoomRoomsShowGetResponseDataRoom;
270
823
  }
271
824
  export interface RoomRoomsShowGetResponse extends ApiEnvelope<RoomRoomsShowGetResponseData> {
272
825
  }
273
826
  /** Backend request type: RoomUpdate. */
827
+ export type RoomRoomsUpdatePatchInputStatesState = "NotOpen" | "Awaiting" | "Question" | "Game" | "Task" | "Ended" | "Closed" | "Replay" | "Live" | "Interactive" | "ChargeLow";
828
+ export interface RoomRoomsUpdatePatchInputStatesDataGameHintVideo extends JsonObject {
829
+ "id": number;
830
+ "type": string;
831
+ }
832
+ export interface RoomRoomsUpdatePatchInputStatesDataGame extends JsonObject {
833
+ "id": string;
834
+ "game_id": string;
835
+ "duration": number;
836
+ "hint_text"?: string | null;
837
+ "hint_image"?: string | null;
838
+ "hint_video"?: RoomRoomsUpdatePatchInputStatesDataGameHintVideo | null;
839
+ }
840
+ export interface RoomRoomsUpdatePatchInputStatesDataQuestionVideo extends JsonObject {
841
+ "id": number;
842
+ "type": string;
843
+ }
844
+ export interface RoomRoomsUpdatePatchInputStatesDataQuestionHintVideo extends JsonObject {
845
+ "id": number;
846
+ "type": string;
847
+ }
848
+ export interface RoomRoomsUpdatePatchInputStatesDataQuestionOptions extends JsonObject {
849
+ "id": number;
850
+ "answer": string;
851
+ }
852
+ export interface RoomRoomsUpdatePatchInputStatesDataQuestion extends JsonObject {
853
+ "id": string;
854
+ "duration": number;
855
+ "text"?: string | null;
856
+ "hint_text"?: string | null;
857
+ "image"?: string | null;
858
+ "hint_image"?: string | null;
859
+ "video"?: RoomRoomsUpdatePatchInputStatesDataQuestionVideo | null;
860
+ "hint_video"?: RoomRoomsUpdatePatchInputStatesDataQuestionHintVideo | null;
861
+ "options"?: RoomRoomsUpdatePatchInputStatesDataQuestionOptions[] | null;
862
+ }
863
+ export interface RoomRoomsUpdatePatchInputStatesDataTaskVideo extends JsonObject {
864
+ "id": number;
865
+ "type": string;
866
+ }
867
+ export interface RoomRoomsUpdatePatchInputStatesDataTaskHintVideo extends JsonObject {
868
+ "id": number;
869
+ "type": string;
870
+ }
871
+ export interface RoomRoomsUpdatePatchInputStatesDataTask extends JsonObject {
872
+ "id": string;
873
+ "duration": number;
874
+ "text"?: string | null;
875
+ "hint_text"?: string | null;
876
+ "image"?: string | null;
877
+ "hint_image"?: string | null;
878
+ "video"?: RoomRoomsUpdatePatchInputStatesDataTaskVideo | null;
879
+ "hint_video"?: RoomRoomsUpdatePatchInputStatesDataTaskHintVideo | null;
880
+ }
881
+ export interface RoomRoomsUpdatePatchInputStatesDataInteractiveVideo extends JsonObject {
882
+ "id": number;
883
+ "type": string;
884
+ }
885
+ export interface RoomRoomsUpdatePatchInputStatesDataInteractive extends JsonObject {
886
+ "id": string;
887
+ "duration": number;
888
+ "video"?: RoomRoomsUpdatePatchInputStatesDataInteractiveVideo | null;
889
+ }
890
+ export type RoomRoomsUpdatePatchInputStatesDataValidationType = "Equality" | "AssistantPrompt";
891
+ export interface RoomRoomsUpdatePatchInputStatesDataValidation extends JsonObject {
892
+ "type": RoomRoomsUpdatePatchInputStatesDataValidationType;
893
+ "value": string;
894
+ }
895
+ export interface RoomRoomsUpdatePatchInputStatesDataRewards extends JsonObject {
896
+ "on_complete": string;
897
+ }
898
+ export interface RoomRoomsUpdatePatchInputStatesData extends JsonObject {
899
+ "game"?: RoomRoomsUpdatePatchInputStatesDataGame | null;
900
+ "question"?: RoomRoomsUpdatePatchInputStatesDataQuestion | null;
901
+ "task"?: RoomRoomsUpdatePatchInputStatesDataTask | null;
902
+ "interactive"?: RoomRoomsUpdatePatchInputStatesDataInteractive | null;
903
+ "validation"?: RoomRoomsUpdatePatchInputStatesDataValidation[] | null;
904
+ "rewards"?: RoomRoomsUpdatePatchInputStatesDataRewards | null;
905
+ "content_id"?: string | null;
906
+ "composition"?: JsonValue | null;
907
+ }
908
+ export interface RoomRoomsUpdatePatchInputStates extends JsonObject {
909
+ "state": RoomRoomsUpdatePatchInputStatesState;
910
+ "duration": number;
911
+ "data"?: RoomRoomsUpdatePatchInputStatesData | null;
912
+ }
274
913
  export interface RoomRoomsUpdatePatchInput extends JsonObject {
275
914
  "name"?: string | null;
276
915
  "capacity"?: number | null;
277
916
  "session_id"?: string | null;
278
917
  "users"?: string[] | null;
279
- "states"?: BackendJson<"RoomStateCommand">[] | null;
918
+ "states"?: RoomRoomsUpdatePatchInputStates[] | null;
280
919
  "status"?: number | null;
281
920
  "starts_at"?: string | null;
282
921
  }
283
922
  /** Backend response type: RoomSingleResponse. */
923
+ export interface RoomRoomsUpdatePatchResponseDataRoomClients extends JsonObject {
924
+ "id": string;
925
+ "profile_id": string;
926
+ "roles": string[];
927
+ "name"?: string | null;
928
+ "token"?: string | null;
929
+ "status": number;
930
+ }
931
+ export interface RoomRoomsUpdatePatchResponseDataRoomCurrentStateClientResponses extends JsonObject {
932
+ "id": string;
933
+ "client_id": string;
934
+ "room_state_id": string;
935
+ "validated"?: boolean | null;
936
+ "created_at": string;
937
+ "validated_at"?: string | null;
938
+ }
939
+ export interface RoomRoomsUpdatePatchResponseDataRoomCurrentStateDataGameHintVideo extends JsonObject {
940
+ "id": number;
941
+ "type": string;
942
+ }
943
+ export interface RoomRoomsUpdatePatchResponseDataRoomCurrentStateDataGame extends JsonObject {
944
+ "id": string;
945
+ "game_id": string;
946
+ "duration": number;
947
+ "hint_text"?: string | null;
948
+ "hint_image"?: string | null;
949
+ "hint_video"?: RoomRoomsUpdatePatchResponseDataRoomCurrentStateDataGameHintVideo | null;
950
+ }
951
+ export interface RoomRoomsUpdatePatchResponseDataRoomCurrentStateDataQuestionVideo extends JsonObject {
952
+ "id": number;
953
+ "type": string;
954
+ }
955
+ export interface RoomRoomsUpdatePatchResponseDataRoomCurrentStateDataQuestionHintVideo extends JsonObject {
956
+ "id": number;
957
+ "type": string;
958
+ }
959
+ export interface RoomRoomsUpdatePatchResponseDataRoomCurrentStateDataQuestionOptions extends JsonObject {
960
+ "id": number;
961
+ "answer": string;
962
+ }
963
+ export interface RoomRoomsUpdatePatchResponseDataRoomCurrentStateDataQuestion extends JsonObject {
964
+ "id": string;
965
+ "duration": number;
966
+ "text"?: string | null;
967
+ "hint_text"?: string | null;
968
+ "image"?: string | null;
969
+ "hint_image"?: string | null;
970
+ "video"?: RoomRoomsUpdatePatchResponseDataRoomCurrentStateDataQuestionVideo | null;
971
+ "hint_video"?: RoomRoomsUpdatePatchResponseDataRoomCurrentStateDataQuestionHintVideo | null;
972
+ "options"?: RoomRoomsUpdatePatchResponseDataRoomCurrentStateDataQuestionOptions[] | null;
973
+ }
974
+ export interface RoomRoomsUpdatePatchResponseDataRoomCurrentStateDataTaskVideo extends JsonObject {
975
+ "id": number;
976
+ "type": string;
977
+ }
978
+ export interface RoomRoomsUpdatePatchResponseDataRoomCurrentStateDataTaskHintVideo extends JsonObject {
979
+ "id": number;
980
+ "type": string;
981
+ }
982
+ export interface RoomRoomsUpdatePatchResponseDataRoomCurrentStateDataTask extends JsonObject {
983
+ "id": string;
984
+ "duration": number;
985
+ "text"?: string | null;
986
+ "hint_text"?: string | null;
987
+ "image"?: string | null;
988
+ "hint_image"?: string | null;
989
+ "video"?: RoomRoomsUpdatePatchResponseDataRoomCurrentStateDataTaskVideo | null;
990
+ "hint_video"?: RoomRoomsUpdatePatchResponseDataRoomCurrentStateDataTaskHintVideo | null;
991
+ }
992
+ export interface RoomRoomsUpdatePatchResponseDataRoomCurrentStateDataInteractiveVideo extends JsonObject {
993
+ "id": number;
994
+ "type": string;
995
+ }
996
+ export interface RoomRoomsUpdatePatchResponseDataRoomCurrentStateDataInteractive extends JsonObject {
997
+ "id": string;
998
+ "duration": number;
999
+ "video"?: RoomRoomsUpdatePatchResponseDataRoomCurrentStateDataInteractiveVideo | null;
1000
+ }
1001
+ export type RoomRoomsUpdatePatchResponseDataRoomCurrentStateDataValidationType = "Equality" | "AssistantPrompt";
1002
+ export interface RoomRoomsUpdatePatchResponseDataRoomCurrentStateDataValidation extends JsonObject {
1003
+ "type": RoomRoomsUpdatePatchResponseDataRoomCurrentStateDataValidationType;
1004
+ "value": string;
1005
+ }
1006
+ export interface RoomRoomsUpdatePatchResponseDataRoomCurrentStateDataRewards extends JsonObject {
1007
+ "on_complete": string;
1008
+ }
1009
+ export interface RoomRoomsUpdatePatchResponseDataRoomCurrentStateData extends JsonObject {
1010
+ "game"?: RoomRoomsUpdatePatchResponseDataRoomCurrentStateDataGame | null;
1011
+ "question"?: RoomRoomsUpdatePatchResponseDataRoomCurrentStateDataQuestion | null;
1012
+ "task"?: RoomRoomsUpdatePatchResponseDataRoomCurrentStateDataTask | null;
1013
+ "interactive"?: RoomRoomsUpdatePatchResponseDataRoomCurrentStateDataInteractive | null;
1014
+ "validation"?: RoomRoomsUpdatePatchResponseDataRoomCurrentStateDataValidation[] | null;
1015
+ "rewards"?: RoomRoomsUpdatePatchResponseDataRoomCurrentStateDataRewards | null;
1016
+ "content_id"?: string | null;
1017
+ "composition"?: JsonValue | null;
1018
+ }
1019
+ export type RoomRoomsUpdatePatchResponseDataRoomCurrentStateState = "NotOpen" | "Awaiting" | "Question" | "Game" | "Task" | "Ended" | "Closed" | "Replay" | "Live" | "Interactive" | "ChargeLow";
1020
+ export interface RoomRoomsUpdatePatchResponseDataRoomCurrentState extends JsonObject {
1021
+ "id": string;
1022
+ "room_id": string;
1023
+ "duration_in_seconds": number;
1024
+ "client_responses": RoomRoomsUpdatePatchResponseDataRoomCurrentStateClientResponses[];
1025
+ "data"?: RoomRoomsUpdatePatchResponseDataRoomCurrentStateData | null;
1026
+ "state": RoomRoomsUpdatePatchResponseDataRoomCurrentStateState;
1027
+ "started_at"?: string | null;
1028
+ "ended_at"?: string | null;
1029
+ "status": number;
1030
+ }
1031
+ export interface RoomRoomsUpdatePatchResponseDataRoom extends JsonObject {
1032
+ "id": string;
1033
+ "lms_classroom_session_id"?: string | null;
1034
+ "name": string;
1035
+ "capacity": number;
1036
+ "starts_at"?: string | null;
1037
+ "ended_at"?: string | null;
1038
+ "clients": RoomRoomsUpdatePatchResponseDataRoomClients[];
1039
+ "current_state"?: RoomRoomsUpdatePatchResponseDataRoomCurrentState | null;
1040
+ "duration_in_seconds": number;
1041
+ "room_name": string;
1042
+ "room_channel": string;
1043
+ "server_time": string;
1044
+ "status": number;
1045
+ "drm_mixed_media_id"?: string | null;
1046
+ "drm_manifest_version"?: number | null;
1047
+ }
284
1048
  export interface RoomRoomsUpdatePatchResponseData extends JsonObject {
285
- "room": BackendJson<"RoomDetailResponse">;
1049
+ "room": RoomRoomsUpdatePatchResponseDataRoom;
286
1050
  }
287
1051
  export interface RoomRoomsUpdatePatchResponse extends ApiEnvelope<RoomRoomsUpdatePatchResponseData> {
288
1052
  }
289
1053
  /** Backend request type: RoomUpdate. */
1054
+ export type RoomRoomsUpdatePutInputStatesState = "NotOpen" | "Awaiting" | "Question" | "Game" | "Task" | "Ended" | "Closed" | "Replay" | "Live" | "Interactive" | "ChargeLow";
1055
+ export interface RoomRoomsUpdatePutInputStatesDataGameHintVideo extends JsonObject {
1056
+ "id": number;
1057
+ "type": string;
1058
+ }
1059
+ export interface RoomRoomsUpdatePutInputStatesDataGame extends JsonObject {
1060
+ "id": string;
1061
+ "game_id": string;
1062
+ "duration": number;
1063
+ "hint_text"?: string | null;
1064
+ "hint_image"?: string | null;
1065
+ "hint_video"?: RoomRoomsUpdatePutInputStatesDataGameHintVideo | null;
1066
+ }
1067
+ export interface RoomRoomsUpdatePutInputStatesDataQuestionVideo extends JsonObject {
1068
+ "id": number;
1069
+ "type": string;
1070
+ }
1071
+ export interface RoomRoomsUpdatePutInputStatesDataQuestionHintVideo extends JsonObject {
1072
+ "id": number;
1073
+ "type": string;
1074
+ }
1075
+ export interface RoomRoomsUpdatePutInputStatesDataQuestionOptions extends JsonObject {
1076
+ "id": number;
1077
+ "answer": string;
1078
+ }
1079
+ export interface RoomRoomsUpdatePutInputStatesDataQuestion extends JsonObject {
1080
+ "id": string;
1081
+ "duration": number;
1082
+ "text"?: string | null;
1083
+ "hint_text"?: string | null;
1084
+ "image"?: string | null;
1085
+ "hint_image"?: string | null;
1086
+ "video"?: RoomRoomsUpdatePutInputStatesDataQuestionVideo | null;
1087
+ "hint_video"?: RoomRoomsUpdatePutInputStatesDataQuestionHintVideo | null;
1088
+ "options"?: RoomRoomsUpdatePutInputStatesDataQuestionOptions[] | null;
1089
+ }
1090
+ export interface RoomRoomsUpdatePutInputStatesDataTaskVideo extends JsonObject {
1091
+ "id": number;
1092
+ "type": string;
1093
+ }
1094
+ export interface RoomRoomsUpdatePutInputStatesDataTaskHintVideo extends JsonObject {
1095
+ "id": number;
1096
+ "type": string;
1097
+ }
1098
+ export interface RoomRoomsUpdatePutInputStatesDataTask extends JsonObject {
1099
+ "id": string;
1100
+ "duration": number;
1101
+ "text"?: string | null;
1102
+ "hint_text"?: string | null;
1103
+ "image"?: string | null;
1104
+ "hint_image"?: string | null;
1105
+ "video"?: RoomRoomsUpdatePutInputStatesDataTaskVideo | null;
1106
+ "hint_video"?: RoomRoomsUpdatePutInputStatesDataTaskHintVideo | null;
1107
+ }
1108
+ export interface RoomRoomsUpdatePutInputStatesDataInteractiveVideo extends JsonObject {
1109
+ "id": number;
1110
+ "type": string;
1111
+ }
1112
+ export interface RoomRoomsUpdatePutInputStatesDataInteractive extends JsonObject {
1113
+ "id": string;
1114
+ "duration": number;
1115
+ "video"?: RoomRoomsUpdatePutInputStatesDataInteractiveVideo | null;
1116
+ }
1117
+ export type RoomRoomsUpdatePutInputStatesDataValidationType = "Equality" | "AssistantPrompt";
1118
+ export interface RoomRoomsUpdatePutInputStatesDataValidation extends JsonObject {
1119
+ "type": RoomRoomsUpdatePutInputStatesDataValidationType;
1120
+ "value": string;
1121
+ }
1122
+ export interface RoomRoomsUpdatePutInputStatesDataRewards extends JsonObject {
1123
+ "on_complete": string;
1124
+ }
1125
+ export interface RoomRoomsUpdatePutInputStatesData extends JsonObject {
1126
+ "game"?: RoomRoomsUpdatePutInputStatesDataGame | null;
1127
+ "question"?: RoomRoomsUpdatePutInputStatesDataQuestion | null;
1128
+ "task"?: RoomRoomsUpdatePutInputStatesDataTask | null;
1129
+ "interactive"?: RoomRoomsUpdatePutInputStatesDataInteractive | null;
1130
+ "validation"?: RoomRoomsUpdatePutInputStatesDataValidation[] | null;
1131
+ "rewards"?: RoomRoomsUpdatePutInputStatesDataRewards | null;
1132
+ "content_id"?: string | null;
1133
+ "composition"?: JsonValue | null;
1134
+ }
1135
+ export interface RoomRoomsUpdatePutInputStates extends JsonObject {
1136
+ "state": RoomRoomsUpdatePutInputStatesState;
1137
+ "duration": number;
1138
+ "data"?: RoomRoomsUpdatePutInputStatesData | null;
1139
+ }
290
1140
  export interface RoomRoomsUpdatePutInput extends JsonObject {
291
1141
  "name"?: string | null;
292
1142
  "capacity"?: number | null;
293
1143
  "session_id"?: string | null;
294
1144
  "users"?: string[] | null;
295
- "states"?: BackendJson<"RoomStateCommand">[] | null;
1145
+ "states"?: RoomRoomsUpdatePutInputStates[] | null;
296
1146
  "status"?: number | null;
297
1147
  "starts_at"?: string | null;
298
1148
  }
299
1149
  /** Backend response type: RoomSingleResponse. */
1150
+ export interface RoomRoomsUpdatePutResponseDataRoomClients extends JsonObject {
1151
+ "id": string;
1152
+ "profile_id": string;
1153
+ "roles": string[];
1154
+ "name"?: string | null;
1155
+ "token"?: string | null;
1156
+ "status": number;
1157
+ }
1158
+ export interface RoomRoomsUpdatePutResponseDataRoomCurrentStateClientResponses extends JsonObject {
1159
+ "id": string;
1160
+ "client_id": string;
1161
+ "room_state_id": string;
1162
+ "validated"?: boolean | null;
1163
+ "created_at": string;
1164
+ "validated_at"?: string | null;
1165
+ }
1166
+ export interface RoomRoomsUpdatePutResponseDataRoomCurrentStateDataGameHintVideo extends JsonObject {
1167
+ "id": number;
1168
+ "type": string;
1169
+ }
1170
+ export interface RoomRoomsUpdatePutResponseDataRoomCurrentStateDataGame extends JsonObject {
1171
+ "id": string;
1172
+ "game_id": string;
1173
+ "duration": number;
1174
+ "hint_text"?: string | null;
1175
+ "hint_image"?: string | null;
1176
+ "hint_video"?: RoomRoomsUpdatePutResponseDataRoomCurrentStateDataGameHintVideo | null;
1177
+ }
1178
+ export interface RoomRoomsUpdatePutResponseDataRoomCurrentStateDataQuestionVideo extends JsonObject {
1179
+ "id": number;
1180
+ "type": string;
1181
+ }
1182
+ export interface RoomRoomsUpdatePutResponseDataRoomCurrentStateDataQuestionHintVideo extends JsonObject {
1183
+ "id": number;
1184
+ "type": string;
1185
+ }
1186
+ export interface RoomRoomsUpdatePutResponseDataRoomCurrentStateDataQuestionOptions extends JsonObject {
1187
+ "id": number;
1188
+ "answer": string;
1189
+ }
1190
+ export interface RoomRoomsUpdatePutResponseDataRoomCurrentStateDataQuestion extends JsonObject {
1191
+ "id": string;
1192
+ "duration": number;
1193
+ "text"?: string | null;
1194
+ "hint_text"?: string | null;
1195
+ "image"?: string | null;
1196
+ "hint_image"?: string | null;
1197
+ "video"?: RoomRoomsUpdatePutResponseDataRoomCurrentStateDataQuestionVideo | null;
1198
+ "hint_video"?: RoomRoomsUpdatePutResponseDataRoomCurrentStateDataQuestionHintVideo | null;
1199
+ "options"?: RoomRoomsUpdatePutResponseDataRoomCurrentStateDataQuestionOptions[] | null;
1200
+ }
1201
+ export interface RoomRoomsUpdatePutResponseDataRoomCurrentStateDataTaskVideo extends JsonObject {
1202
+ "id": number;
1203
+ "type": string;
1204
+ }
1205
+ export interface RoomRoomsUpdatePutResponseDataRoomCurrentStateDataTaskHintVideo extends JsonObject {
1206
+ "id": number;
1207
+ "type": string;
1208
+ }
1209
+ export interface RoomRoomsUpdatePutResponseDataRoomCurrentStateDataTask extends JsonObject {
1210
+ "id": string;
1211
+ "duration": number;
1212
+ "text"?: string | null;
1213
+ "hint_text"?: string | null;
1214
+ "image"?: string | null;
1215
+ "hint_image"?: string | null;
1216
+ "video"?: RoomRoomsUpdatePutResponseDataRoomCurrentStateDataTaskVideo | null;
1217
+ "hint_video"?: RoomRoomsUpdatePutResponseDataRoomCurrentStateDataTaskHintVideo | null;
1218
+ }
1219
+ export interface RoomRoomsUpdatePutResponseDataRoomCurrentStateDataInteractiveVideo extends JsonObject {
1220
+ "id": number;
1221
+ "type": string;
1222
+ }
1223
+ export interface RoomRoomsUpdatePutResponseDataRoomCurrentStateDataInteractive extends JsonObject {
1224
+ "id": string;
1225
+ "duration": number;
1226
+ "video"?: RoomRoomsUpdatePutResponseDataRoomCurrentStateDataInteractiveVideo | null;
1227
+ }
1228
+ export type RoomRoomsUpdatePutResponseDataRoomCurrentStateDataValidationType = "Equality" | "AssistantPrompt";
1229
+ export interface RoomRoomsUpdatePutResponseDataRoomCurrentStateDataValidation extends JsonObject {
1230
+ "type": RoomRoomsUpdatePutResponseDataRoomCurrentStateDataValidationType;
1231
+ "value": string;
1232
+ }
1233
+ export interface RoomRoomsUpdatePutResponseDataRoomCurrentStateDataRewards extends JsonObject {
1234
+ "on_complete": string;
1235
+ }
1236
+ export interface RoomRoomsUpdatePutResponseDataRoomCurrentStateData extends JsonObject {
1237
+ "game"?: RoomRoomsUpdatePutResponseDataRoomCurrentStateDataGame | null;
1238
+ "question"?: RoomRoomsUpdatePutResponseDataRoomCurrentStateDataQuestion | null;
1239
+ "task"?: RoomRoomsUpdatePutResponseDataRoomCurrentStateDataTask | null;
1240
+ "interactive"?: RoomRoomsUpdatePutResponseDataRoomCurrentStateDataInteractive | null;
1241
+ "validation"?: RoomRoomsUpdatePutResponseDataRoomCurrentStateDataValidation[] | null;
1242
+ "rewards"?: RoomRoomsUpdatePutResponseDataRoomCurrentStateDataRewards | null;
1243
+ "content_id"?: string | null;
1244
+ "composition"?: JsonValue | null;
1245
+ }
1246
+ export type RoomRoomsUpdatePutResponseDataRoomCurrentStateState = "NotOpen" | "Awaiting" | "Question" | "Game" | "Task" | "Ended" | "Closed" | "Replay" | "Live" | "Interactive" | "ChargeLow";
1247
+ export interface RoomRoomsUpdatePutResponseDataRoomCurrentState extends JsonObject {
1248
+ "id": string;
1249
+ "room_id": string;
1250
+ "duration_in_seconds": number;
1251
+ "client_responses": RoomRoomsUpdatePutResponseDataRoomCurrentStateClientResponses[];
1252
+ "data"?: RoomRoomsUpdatePutResponseDataRoomCurrentStateData | null;
1253
+ "state": RoomRoomsUpdatePutResponseDataRoomCurrentStateState;
1254
+ "started_at"?: string | null;
1255
+ "ended_at"?: string | null;
1256
+ "status": number;
1257
+ }
1258
+ export interface RoomRoomsUpdatePutResponseDataRoom extends JsonObject {
1259
+ "id": string;
1260
+ "lms_classroom_session_id"?: string | null;
1261
+ "name": string;
1262
+ "capacity": number;
1263
+ "starts_at"?: string | null;
1264
+ "ended_at"?: string | null;
1265
+ "clients": RoomRoomsUpdatePutResponseDataRoomClients[];
1266
+ "current_state"?: RoomRoomsUpdatePutResponseDataRoomCurrentState | null;
1267
+ "duration_in_seconds": number;
1268
+ "room_name": string;
1269
+ "room_channel": string;
1270
+ "server_time": string;
1271
+ "status": number;
1272
+ "drm_mixed_media_id"?: string | null;
1273
+ "drm_manifest_version"?: number | null;
1274
+ }
300
1275
  export interface RoomRoomsUpdatePutResponseData extends JsonObject {
301
- "room": BackendJson<"RoomDetailResponse">;
1276
+ "room": RoomRoomsUpdatePutResponseDataRoom;
302
1277
  }
303
1278
  export interface RoomRoomsUpdatePutResponse extends ApiEnvelope<RoomRoomsUpdatePutResponseData> {
304
1279
  }
@@ -315,6 +1290,10 @@ export interface RoomRoomsInteractiveStartPostResponseData extends JsonObject {
315
1290
  }
316
1291
  export type RoomRoomsInteractiveStartPostResponse = RoomRoomsInteractiveStartPostResponseData;
317
1292
  /** Backend response type: LiveKitJoinResponse. */
1293
+ export interface RoomRoomsJoinGetResponseDataRealtime extends JsonObject {
1294
+ "url": string;
1295
+ "app_key": string;
1296
+ }
318
1297
  export interface RoomRoomsJoinGetResponseData extends JsonObject {
319
1298
  "token": string;
320
1299
  "url": string;
@@ -323,13 +1302,20 @@ export interface RoomRoomsJoinGetResponseData extends JsonObject {
323
1302
  "ai_chat_enabled": boolean;
324
1303
  "chat_model_ref"?: string | null;
325
1304
  "chat_assistant_id"?: string | null;
326
- "realtime"?: BackendJson<"RealtimeJoinResponse"> | null;
1305
+ "realtime"?: RoomRoomsJoinGetResponseDataRealtime | null;
327
1306
  }
328
1307
  export interface RoomRoomsJoinGetResponse extends ApiEnvelope<RoomRoomsJoinGetResponseData> {
329
1308
  }
330
1309
  /** Backend response type: RoomLeaderboardResponse. */
1310
+ export interface RoomRoomsLeaderboardGetResponseDataEntries extends JsonObject {
1311
+ "profile_id": string;
1312
+ "name": string;
1313
+ "active_seconds": number;
1314
+ "coins_earned": number;
1315
+ "earned_assets": string[];
1316
+ }
331
1317
  export interface RoomRoomsLeaderboardGetResponseData extends JsonObject {
332
- "entries": BackendJson<"RoomLeaderboardEntry">[];
1318
+ "entries": RoomRoomsLeaderboardGetResponseDataEntries[];
333
1319
  }
334
1320
  export interface RoomRoomsLeaderboardGetResponse extends ApiEnvelope<RoomRoomsLeaderboardGetResponseData> {
335
1321
  }
@@ -341,21 +1327,297 @@ export interface RoomRoomsLivekitTokenGetResponseData extends JsonObject {
341
1327
  export interface RoomRoomsLivekitTokenGetResponse extends ApiEnvelope<RoomRoomsLivekitTokenGetResponseData> {
342
1328
  }
343
1329
  /** Backend response type: RoomSingleFullResponse. */
1330
+ export interface RoomRoomsPlaybackShowGetResponseDataRoomClients extends JsonObject {
1331
+ "id": string;
1332
+ "profile_id": string;
1333
+ "roles": string[];
1334
+ "name"?: string | null;
1335
+ "token"?: string | null;
1336
+ "status": number;
1337
+ }
1338
+ export interface RoomRoomsPlaybackShowGetResponseDataRoomStatesClientResponses extends JsonObject {
1339
+ "id": string;
1340
+ "client_id": string;
1341
+ "room_state_id": string;
1342
+ "validated"?: boolean | null;
1343
+ "created_at": string;
1344
+ "validated_at"?: string | null;
1345
+ }
1346
+ export interface RoomRoomsPlaybackShowGetResponseDataRoomStatesDataGameHintVideo extends JsonObject {
1347
+ "id": number;
1348
+ "type": string;
1349
+ }
1350
+ export interface RoomRoomsPlaybackShowGetResponseDataRoomStatesDataGame extends JsonObject {
1351
+ "id": string;
1352
+ "game_id": string;
1353
+ "duration": number;
1354
+ "hint_text"?: string | null;
1355
+ "hint_image"?: string | null;
1356
+ "hint_video"?: RoomRoomsPlaybackShowGetResponseDataRoomStatesDataGameHintVideo | null;
1357
+ }
1358
+ export interface RoomRoomsPlaybackShowGetResponseDataRoomStatesDataQuestionVideo extends JsonObject {
1359
+ "id": number;
1360
+ "type": string;
1361
+ }
1362
+ export interface RoomRoomsPlaybackShowGetResponseDataRoomStatesDataQuestionHintVideo extends JsonObject {
1363
+ "id": number;
1364
+ "type": string;
1365
+ }
1366
+ export interface RoomRoomsPlaybackShowGetResponseDataRoomStatesDataQuestionOptions extends JsonObject {
1367
+ "id": number;
1368
+ "answer": string;
1369
+ }
1370
+ export interface RoomRoomsPlaybackShowGetResponseDataRoomStatesDataQuestion extends JsonObject {
1371
+ "id": string;
1372
+ "duration": number;
1373
+ "text"?: string | null;
1374
+ "hint_text"?: string | null;
1375
+ "image"?: string | null;
1376
+ "hint_image"?: string | null;
1377
+ "video"?: RoomRoomsPlaybackShowGetResponseDataRoomStatesDataQuestionVideo | null;
1378
+ "hint_video"?: RoomRoomsPlaybackShowGetResponseDataRoomStatesDataQuestionHintVideo | null;
1379
+ "options"?: RoomRoomsPlaybackShowGetResponseDataRoomStatesDataQuestionOptions[] | null;
1380
+ }
1381
+ export interface RoomRoomsPlaybackShowGetResponseDataRoomStatesDataTaskVideo extends JsonObject {
1382
+ "id": number;
1383
+ "type": string;
1384
+ }
1385
+ export interface RoomRoomsPlaybackShowGetResponseDataRoomStatesDataTaskHintVideo extends JsonObject {
1386
+ "id": number;
1387
+ "type": string;
1388
+ }
1389
+ export interface RoomRoomsPlaybackShowGetResponseDataRoomStatesDataTask extends JsonObject {
1390
+ "id": string;
1391
+ "duration": number;
1392
+ "text"?: string | null;
1393
+ "hint_text"?: string | null;
1394
+ "image"?: string | null;
1395
+ "hint_image"?: string | null;
1396
+ "video"?: RoomRoomsPlaybackShowGetResponseDataRoomStatesDataTaskVideo | null;
1397
+ "hint_video"?: RoomRoomsPlaybackShowGetResponseDataRoomStatesDataTaskHintVideo | null;
1398
+ }
1399
+ export interface RoomRoomsPlaybackShowGetResponseDataRoomStatesDataInteractiveVideo extends JsonObject {
1400
+ "id": number;
1401
+ "type": string;
1402
+ }
1403
+ export interface RoomRoomsPlaybackShowGetResponseDataRoomStatesDataInteractive extends JsonObject {
1404
+ "id": string;
1405
+ "duration": number;
1406
+ "video"?: RoomRoomsPlaybackShowGetResponseDataRoomStatesDataInteractiveVideo | null;
1407
+ }
1408
+ export type RoomRoomsPlaybackShowGetResponseDataRoomStatesDataValidationType = "Equality" | "AssistantPrompt";
1409
+ export interface RoomRoomsPlaybackShowGetResponseDataRoomStatesDataValidation extends JsonObject {
1410
+ "type": RoomRoomsPlaybackShowGetResponseDataRoomStatesDataValidationType;
1411
+ "value": string;
1412
+ }
1413
+ export interface RoomRoomsPlaybackShowGetResponseDataRoomStatesDataRewards extends JsonObject {
1414
+ "on_complete": string;
1415
+ }
1416
+ export interface RoomRoomsPlaybackShowGetResponseDataRoomStatesData extends JsonObject {
1417
+ "game"?: RoomRoomsPlaybackShowGetResponseDataRoomStatesDataGame | null;
1418
+ "question"?: RoomRoomsPlaybackShowGetResponseDataRoomStatesDataQuestion | null;
1419
+ "task"?: RoomRoomsPlaybackShowGetResponseDataRoomStatesDataTask | null;
1420
+ "interactive"?: RoomRoomsPlaybackShowGetResponseDataRoomStatesDataInteractive | null;
1421
+ "validation"?: RoomRoomsPlaybackShowGetResponseDataRoomStatesDataValidation[] | null;
1422
+ "rewards"?: RoomRoomsPlaybackShowGetResponseDataRoomStatesDataRewards | null;
1423
+ "content_id"?: string | null;
1424
+ "composition"?: JsonValue | null;
1425
+ }
1426
+ export type RoomRoomsPlaybackShowGetResponseDataRoomStatesState = "NotOpen" | "Awaiting" | "Question" | "Game" | "Task" | "Ended" | "Closed" | "Replay" | "Live" | "Interactive" | "ChargeLow";
1427
+ export interface RoomRoomsPlaybackShowGetResponseDataRoomStates extends JsonObject {
1428
+ "id": string;
1429
+ "room_id": string;
1430
+ "duration_in_seconds": number;
1431
+ "client_responses": RoomRoomsPlaybackShowGetResponseDataRoomStatesClientResponses[];
1432
+ "data"?: RoomRoomsPlaybackShowGetResponseDataRoomStatesData | null;
1433
+ "state": RoomRoomsPlaybackShowGetResponseDataRoomStatesState;
1434
+ "started_at"?: string | null;
1435
+ "ended_at"?: string | null;
1436
+ "status": number;
1437
+ }
1438
+ export interface RoomRoomsPlaybackShowGetResponseDataRoom extends JsonObject {
1439
+ "id": string;
1440
+ "lms_classroom_session_id"?: string | null;
1441
+ "name": string;
1442
+ "capacity": number;
1443
+ "starts_at"?: string | null;
1444
+ "ended_at"?: string | null;
1445
+ "clients": RoomRoomsPlaybackShowGetResponseDataRoomClients[];
1446
+ "states": RoomRoomsPlaybackShowGetResponseDataRoomStates[];
1447
+ "room_name": string;
1448
+ "room_channel": string;
1449
+ "server_time": string;
1450
+ "status": number;
1451
+ "drm_mixed_media_id"?: string | null;
1452
+ "drm_manifest_version"?: number | null;
1453
+ }
344
1454
  export interface RoomRoomsPlaybackShowGetResponseData extends JsonObject {
345
- "room": BackendJson<"RoomDetailFullResponse">;
1455
+ "room": RoomRoomsPlaybackShowGetResponseDataRoom;
346
1456
  }
347
1457
  export interface RoomRoomsPlaybackShowGetResponse extends ApiEnvelope<RoomRoomsPlaybackShowGetResponseData> {
348
1458
  }
349
1459
  /** Backend response type: RoomRecordingResponse. */
1460
+ export interface RoomRoomsRecordingsGetResponseDataRoom extends JsonObject {
1461
+ "id": string;
1462
+ "name": string;
1463
+ "status": number;
1464
+ }
1465
+ export interface RoomRoomsRecordingsGetResponseDataRecordingsAudioAnalyses extends JsonObject {
1466
+ "profile_id"?: string | null;
1467
+ "participant_identity": string;
1468
+ "transcript": string;
1469
+ "analysis": JsonValue;
1470
+ }
1471
+ export interface RoomRoomsRecordingsGetResponseDataRecordings extends JsonObject {
1472
+ "id": string;
1473
+ "name": string;
1474
+ "url": string;
1475
+ "duration": number;
1476
+ "started_at"?: string | null;
1477
+ "stopped_at"?: string | null;
1478
+ "status": string;
1479
+ "process_at"?: string | null;
1480
+ "completed_at"?: string | null;
1481
+ "processing_error"?: string | null;
1482
+ "audio_processing": boolean;
1483
+ "audio_model_ref"?: string | null;
1484
+ "manifest_key"?: string | null;
1485
+ "audio_analyses": RoomRoomsRecordingsGetResponseDataRecordingsAudioAnalyses[];
1486
+ }
350
1487
  export interface RoomRoomsRecordingsGetResponseData extends JsonObject {
351
- "room": BackendJson<"RoomRecordingRoomResponse">;
352
- "recordings": BackendJson<"RoomRecording">[];
1488
+ "room": RoomRoomsRecordingsGetResponseDataRoom;
1489
+ "recordings": RoomRoomsRecordingsGetResponseDataRecordings[];
353
1490
  }
354
1491
  export interface RoomRoomsRecordingsGetResponse extends ApiEnvelope<RoomRoomsRecordingsGetResponseData> {
355
1492
  }
356
1493
  /** Backend response type: RoomSingleResponse. */
1494
+ export interface RoomRoomsStopGetResponseDataRoomClients extends JsonObject {
1495
+ "id": string;
1496
+ "profile_id": string;
1497
+ "roles": string[];
1498
+ "name"?: string | null;
1499
+ "token"?: string | null;
1500
+ "status": number;
1501
+ }
1502
+ export interface RoomRoomsStopGetResponseDataRoomCurrentStateClientResponses extends JsonObject {
1503
+ "id": string;
1504
+ "client_id": string;
1505
+ "room_state_id": string;
1506
+ "validated"?: boolean | null;
1507
+ "created_at": string;
1508
+ "validated_at"?: string | null;
1509
+ }
1510
+ export interface RoomRoomsStopGetResponseDataRoomCurrentStateDataGameHintVideo extends JsonObject {
1511
+ "id": number;
1512
+ "type": string;
1513
+ }
1514
+ export interface RoomRoomsStopGetResponseDataRoomCurrentStateDataGame extends JsonObject {
1515
+ "id": string;
1516
+ "game_id": string;
1517
+ "duration": number;
1518
+ "hint_text"?: string | null;
1519
+ "hint_image"?: string | null;
1520
+ "hint_video"?: RoomRoomsStopGetResponseDataRoomCurrentStateDataGameHintVideo | null;
1521
+ }
1522
+ export interface RoomRoomsStopGetResponseDataRoomCurrentStateDataQuestionVideo extends JsonObject {
1523
+ "id": number;
1524
+ "type": string;
1525
+ }
1526
+ export interface RoomRoomsStopGetResponseDataRoomCurrentStateDataQuestionHintVideo extends JsonObject {
1527
+ "id": number;
1528
+ "type": string;
1529
+ }
1530
+ export interface RoomRoomsStopGetResponseDataRoomCurrentStateDataQuestionOptions extends JsonObject {
1531
+ "id": number;
1532
+ "answer": string;
1533
+ }
1534
+ export interface RoomRoomsStopGetResponseDataRoomCurrentStateDataQuestion extends JsonObject {
1535
+ "id": string;
1536
+ "duration": number;
1537
+ "text"?: string | null;
1538
+ "hint_text"?: string | null;
1539
+ "image"?: string | null;
1540
+ "hint_image"?: string | null;
1541
+ "video"?: RoomRoomsStopGetResponseDataRoomCurrentStateDataQuestionVideo | null;
1542
+ "hint_video"?: RoomRoomsStopGetResponseDataRoomCurrentStateDataQuestionHintVideo | null;
1543
+ "options"?: RoomRoomsStopGetResponseDataRoomCurrentStateDataQuestionOptions[] | null;
1544
+ }
1545
+ export interface RoomRoomsStopGetResponseDataRoomCurrentStateDataTaskVideo extends JsonObject {
1546
+ "id": number;
1547
+ "type": string;
1548
+ }
1549
+ export interface RoomRoomsStopGetResponseDataRoomCurrentStateDataTaskHintVideo extends JsonObject {
1550
+ "id": number;
1551
+ "type": string;
1552
+ }
1553
+ export interface RoomRoomsStopGetResponseDataRoomCurrentStateDataTask extends JsonObject {
1554
+ "id": string;
1555
+ "duration": number;
1556
+ "text"?: string | null;
1557
+ "hint_text"?: string | null;
1558
+ "image"?: string | null;
1559
+ "hint_image"?: string | null;
1560
+ "video"?: RoomRoomsStopGetResponseDataRoomCurrentStateDataTaskVideo | null;
1561
+ "hint_video"?: RoomRoomsStopGetResponseDataRoomCurrentStateDataTaskHintVideo | null;
1562
+ }
1563
+ export interface RoomRoomsStopGetResponseDataRoomCurrentStateDataInteractiveVideo extends JsonObject {
1564
+ "id": number;
1565
+ "type": string;
1566
+ }
1567
+ export interface RoomRoomsStopGetResponseDataRoomCurrentStateDataInteractive extends JsonObject {
1568
+ "id": string;
1569
+ "duration": number;
1570
+ "video"?: RoomRoomsStopGetResponseDataRoomCurrentStateDataInteractiveVideo | null;
1571
+ }
1572
+ export type RoomRoomsStopGetResponseDataRoomCurrentStateDataValidationType = "Equality" | "AssistantPrompt";
1573
+ export interface RoomRoomsStopGetResponseDataRoomCurrentStateDataValidation extends JsonObject {
1574
+ "type": RoomRoomsStopGetResponseDataRoomCurrentStateDataValidationType;
1575
+ "value": string;
1576
+ }
1577
+ export interface RoomRoomsStopGetResponseDataRoomCurrentStateDataRewards extends JsonObject {
1578
+ "on_complete": string;
1579
+ }
1580
+ export interface RoomRoomsStopGetResponseDataRoomCurrentStateData extends JsonObject {
1581
+ "game"?: RoomRoomsStopGetResponseDataRoomCurrentStateDataGame | null;
1582
+ "question"?: RoomRoomsStopGetResponseDataRoomCurrentStateDataQuestion | null;
1583
+ "task"?: RoomRoomsStopGetResponseDataRoomCurrentStateDataTask | null;
1584
+ "interactive"?: RoomRoomsStopGetResponseDataRoomCurrentStateDataInteractive | null;
1585
+ "validation"?: RoomRoomsStopGetResponseDataRoomCurrentStateDataValidation[] | null;
1586
+ "rewards"?: RoomRoomsStopGetResponseDataRoomCurrentStateDataRewards | null;
1587
+ "content_id"?: string | null;
1588
+ "composition"?: JsonValue | null;
1589
+ }
1590
+ export type RoomRoomsStopGetResponseDataRoomCurrentStateState = "NotOpen" | "Awaiting" | "Question" | "Game" | "Task" | "Ended" | "Closed" | "Replay" | "Live" | "Interactive" | "ChargeLow";
1591
+ export interface RoomRoomsStopGetResponseDataRoomCurrentState extends JsonObject {
1592
+ "id": string;
1593
+ "room_id": string;
1594
+ "duration_in_seconds": number;
1595
+ "client_responses": RoomRoomsStopGetResponseDataRoomCurrentStateClientResponses[];
1596
+ "data"?: RoomRoomsStopGetResponseDataRoomCurrentStateData | null;
1597
+ "state": RoomRoomsStopGetResponseDataRoomCurrentStateState;
1598
+ "started_at"?: string | null;
1599
+ "ended_at"?: string | null;
1600
+ "status": number;
1601
+ }
1602
+ export interface RoomRoomsStopGetResponseDataRoom extends JsonObject {
1603
+ "id": string;
1604
+ "lms_classroom_session_id"?: string | null;
1605
+ "name": string;
1606
+ "capacity": number;
1607
+ "starts_at"?: string | null;
1608
+ "ended_at"?: string | null;
1609
+ "clients": RoomRoomsStopGetResponseDataRoomClients[];
1610
+ "current_state"?: RoomRoomsStopGetResponseDataRoomCurrentState | null;
1611
+ "duration_in_seconds": number;
1612
+ "room_name": string;
1613
+ "room_channel": string;
1614
+ "server_time": string;
1615
+ "status": number;
1616
+ "drm_mixed_media_id"?: string | null;
1617
+ "drm_manifest_version"?: number | null;
1618
+ }
357
1619
  export interface RoomRoomsStopGetResponseData extends JsonObject {
358
- "room": BackendJson<"RoomDetailResponse">;
1620
+ "room": RoomRoomsStopGetResponseDataRoom;
359
1621
  }
360
1622
  export interface RoomRoomsStopGetResponse extends ApiEnvelope<RoomRoomsStopGetResponseData> {
361
1623
  }
@@ -368,6 +1630,8 @@ export interface RoomRoomsAnalyticsGetResponseData extends JsonObject {
368
1630
  }
369
1631
  export interface RoomRoomsAnalyticsGetResponse extends ApiEnvelope<RoomRoomsAnalyticsGetResponseData> {
370
1632
  }
1633
+ /** Backend request type: binary byte stream. */
1634
+ export type RoomLivekitWebhookPostInput = Blob | ArrayBuffer | ArrayBufferView;
371
1635
  /** Backend response type: APIEmptyResponse. */
372
1636
  export interface RoomLivekitWebhookPostResponseData extends JsonObject {
373
1637
  "status": string;