livekit-server-sdk 0.5.10 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.js +1 -1
- package/.github/workflows/test.yaml +3 -0
- package/.prettierignore +7 -0
- package/README.md +8 -8
- package/dist/AccessToken.js +1 -1
- package/dist/AccessToken.js.map +1 -1
- package/dist/EgressClient.d.ts +42 -27
- package/dist/EgressClient.js +107 -41
- package/dist/EgressClient.js.map +1 -1
- package/dist/RecordingServiceClient.js +5 -1
- package/dist/RecordingServiceClient.js.map +1 -1
- package/dist/RoomServiceClient.js.map +1 -1
- package/dist/TwirpRPC.js.map +1 -1
- package/dist/WebhookReceiver.test.js.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/proto/google/protobuf/empty.d.ts +1 -1
- package/dist/proto/google/protobuf/empty.js +1 -1
- package/dist/proto/google/protobuf/empty.js.map +1 -1
- package/dist/proto/google/protobuf/timestamp.d.ts +1 -1
- package/dist/proto/google/protobuf/timestamp.js +8 -9
- package/dist/proto/google/protobuf/timestamp.js.map +1 -1
- package/dist/proto/livekit_egress.d.ts +476 -141
- package/dist/proto/livekit_egress.js +386 -401
- package/dist/proto/livekit_egress.js.map +1 -1
- package/dist/proto/livekit_models.d.ts +17 -1
- package/dist/proto/livekit_models.js +310 -379
- package/dist/proto/livekit_models.js.map +1 -1
- package/dist/proto/livekit_recording.d.ts +2 -2
- package/dist/proto/livekit_recording.js +94 -130
- package/dist/proto/livekit_recording.js.map +1 -1
- package/dist/proto/livekit_room.d.ts +12 -2
- package/dist/proto/livekit_room.js +81 -109
- package/dist/proto/livekit_room.js.map +1 -1
- package/dist/proto/livekit_webhook.d.ts +148 -44
- package/dist/proto/livekit_webhook.js +20 -28
- package/dist/proto/livekit_webhook.js.map +1 -1
- package/package.json +9 -4
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as _m0 from
|
|
2
|
-
import { Room, ParticipantInfo, TrackInfo } from
|
|
3
|
-
import { RecordingInfo } from
|
|
4
|
-
import { EgressInfo } from
|
|
1
|
+
import * as _m0 from 'protobufjs/minimal';
|
|
2
|
+
import { Room, ParticipantInfo, TrackInfo } from './livekit_models';
|
|
3
|
+
import { RecordingInfo } from './livekit_recording';
|
|
4
|
+
import { EgressInfo } from './livekit_egress';
|
|
5
5
|
export declare const protobufPackage = "livekit";
|
|
6
6
|
export interface WebhookEvent {
|
|
7
7
|
/**
|
|
@@ -80,6 +80,8 @@ export declare const WebhookEvent: {
|
|
|
80
80
|
hidden?: boolean | undefined;
|
|
81
81
|
recorder?: boolean | undefined;
|
|
82
82
|
} | undefined;
|
|
83
|
+
region?: string | undefined;
|
|
84
|
+
isPublisher?: boolean | undefined;
|
|
83
85
|
} | undefined;
|
|
84
86
|
recordingInfo?: {
|
|
85
87
|
id?: string | undefined;
|
|
@@ -99,7 +101,10 @@ export declare const WebhookEvent: {
|
|
|
99
101
|
egressId?: string | undefined;
|
|
100
102
|
roomId?: string | undefined;
|
|
101
103
|
status?: import("./livekit_egress").EgressStatus | undefined;
|
|
102
|
-
|
|
104
|
+
startedAt?: number | undefined;
|
|
105
|
+
endedAt?: number | undefined;
|
|
106
|
+
error?: string | undefined;
|
|
107
|
+
roomComposite?: {
|
|
103
108
|
roomName?: string | undefined;
|
|
104
109
|
layout?: string | undefined;
|
|
105
110
|
audioOnly?: boolean | undefined;
|
|
@@ -186,24 +191,39 @@ export declare const WebhookEvent: {
|
|
|
186
191
|
track?: {
|
|
187
192
|
roomName?: string | undefined;
|
|
188
193
|
trackId?: string | undefined;
|
|
189
|
-
|
|
194
|
+
file?: {
|
|
195
|
+
filepath?: string | undefined;
|
|
196
|
+
s3?: {
|
|
197
|
+
accessKey?: string | undefined;
|
|
198
|
+
secret?: string | undefined;
|
|
199
|
+
region?: string | undefined;
|
|
200
|
+
endpoint?: string | undefined;
|
|
201
|
+
bucket?: string | undefined;
|
|
202
|
+
} | undefined;
|
|
203
|
+
gcp?: {
|
|
204
|
+
credentials?: Uint8Array | undefined;
|
|
205
|
+
bucket?: string | undefined;
|
|
206
|
+
} | undefined;
|
|
207
|
+
azure?: {
|
|
208
|
+
accountName?: string | undefined;
|
|
209
|
+
accountKey?: string | undefined;
|
|
210
|
+
containerName?: string | undefined;
|
|
211
|
+
} | undefined;
|
|
212
|
+
} | undefined;
|
|
190
213
|
websocketUrl?: string | undefined;
|
|
191
214
|
} | undefined;
|
|
192
215
|
stream?: {
|
|
193
216
|
info?: {
|
|
194
217
|
url?: string | undefined;
|
|
195
|
-
|
|
196
|
-
endedAt?: number | undefined;
|
|
218
|
+
duration?: number | undefined;
|
|
197
219
|
}[] | undefined;
|
|
198
220
|
} | undefined;
|
|
199
221
|
file?: {
|
|
200
222
|
filename?: string | undefined;
|
|
201
|
-
|
|
202
|
-
endedAt?: number | undefined;
|
|
223
|
+
duration?: number | undefined;
|
|
203
224
|
size?: number | undefined;
|
|
204
225
|
location?: string | undefined;
|
|
205
226
|
} | undefined;
|
|
206
|
-
error?: string | undefined;
|
|
207
227
|
} | undefined;
|
|
208
228
|
track?: {
|
|
209
229
|
sid?: string | undefined;
|
|
@@ -302,6 +322,8 @@ export declare const WebhookEvent: {
|
|
|
302
322
|
hidden?: boolean | undefined;
|
|
303
323
|
recorder?: boolean | undefined;
|
|
304
324
|
} | undefined;
|
|
325
|
+
region?: string | undefined;
|
|
326
|
+
isPublisher?: boolean | undefined;
|
|
305
327
|
} & {
|
|
306
328
|
sid?: string | undefined;
|
|
307
329
|
identity?: string | undefined;
|
|
@@ -418,6 +440,8 @@ export declare const WebhookEvent: {
|
|
|
418
440
|
hidden?: boolean | undefined;
|
|
419
441
|
recorder?: boolean | undefined;
|
|
420
442
|
} & Record<Exclude<keyof I["participant"]["permission"], keyof import("./livekit_models").ParticipantPermission>, never>) | undefined;
|
|
443
|
+
region?: string | undefined;
|
|
444
|
+
isPublisher?: boolean | undefined;
|
|
421
445
|
} & Record<Exclude<keyof I["participant"], keyof ParticipantInfo>, never>) | undefined;
|
|
422
446
|
recordingInfo?: ({
|
|
423
447
|
id?: string | undefined;
|
|
@@ -462,7 +486,10 @@ export declare const WebhookEvent: {
|
|
|
462
486
|
egressId?: string | undefined;
|
|
463
487
|
roomId?: string | undefined;
|
|
464
488
|
status?: import("./livekit_egress").EgressStatus | undefined;
|
|
465
|
-
|
|
489
|
+
startedAt?: number | undefined;
|
|
490
|
+
endedAt?: number | undefined;
|
|
491
|
+
error?: string | undefined;
|
|
492
|
+
roomComposite?: {
|
|
466
493
|
roomName?: string | undefined;
|
|
467
494
|
layout?: string | undefined;
|
|
468
495
|
audioOnly?: boolean | undefined;
|
|
@@ -549,29 +576,47 @@ export declare const WebhookEvent: {
|
|
|
549
576
|
track?: {
|
|
550
577
|
roomName?: string | undefined;
|
|
551
578
|
trackId?: string | undefined;
|
|
552
|
-
|
|
579
|
+
file?: {
|
|
580
|
+
filepath?: string | undefined;
|
|
581
|
+
s3?: {
|
|
582
|
+
accessKey?: string | undefined;
|
|
583
|
+
secret?: string | undefined;
|
|
584
|
+
region?: string | undefined;
|
|
585
|
+
endpoint?: string | undefined;
|
|
586
|
+
bucket?: string | undefined;
|
|
587
|
+
} | undefined;
|
|
588
|
+
gcp?: {
|
|
589
|
+
credentials?: Uint8Array | undefined;
|
|
590
|
+
bucket?: string | undefined;
|
|
591
|
+
} | undefined;
|
|
592
|
+
azure?: {
|
|
593
|
+
accountName?: string | undefined;
|
|
594
|
+
accountKey?: string | undefined;
|
|
595
|
+
containerName?: string | undefined;
|
|
596
|
+
} | undefined;
|
|
597
|
+
} | undefined;
|
|
553
598
|
websocketUrl?: string | undefined;
|
|
554
599
|
} | undefined;
|
|
555
600
|
stream?: {
|
|
556
601
|
info?: {
|
|
557
602
|
url?: string | undefined;
|
|
558
|
-
|
|
559
|
-
endedAt?: number | undefined;
|
|
603
|
+
duration?: number | undefined;
|
|
560
604
|
}[] | undefined;
|
|
561
605
|
} | undefined;
|
|
562
606
|
file?: {
|
|
563
607
|
filename?: string | undefined;
|
|
564
|
-
|
|
565
|
-
endedAt?: number | undefined;
|
|
608
|
+
duration?: number | undefined;
|
|
566
609
|
size?: number | undefined;
|
|
567
610
|
location?: string | undefined;
|
|
568
611
|
} | undefined;
|
|
569
|
-
error?: string | undefined;
|
|
570
612
|
} & {
|
|
571
613
|
egressId?: string | undefined;
|
|
572
614
|
roomId?: string | undefined;
|
|
573
615
|
status?: import("./livekit_egress").EgressStatus | undefined;
|
|
574
|
-
|
|
616
|
+
startedAt?: number | undefined;
|
|
617
|
+
endedAt?: number | undefined;
|
|
618
|
+
error?: string | undefined;
|
|
619
|
+
roomComposite?: ({
|
|
575
620
|
roomName?: string | undefined;
|
|
576
621
|
layout?: string | undefined;
|
|
577
622
|
audioOnly?: boolean | undefined;
|
|
@@ -653,14 +698,14 @@ export declare const WebhookEvent: {
|
|
|
653
698
|
region?: string | undefined;
|
|
654
699
|
endpoint?: string | undefined;
|
|
655
700
|
bucket?: string | undefined;
|
|
656
|
-
} & Record<Exclude<keyof I["egressInfo"]["
|
|
701
|
+
} & Record<Exclude<keyof I["egressInfo"]["roomComposite"]["file"]["s3"], keyof import("./livekit_egress").S3Upload>, never>) | undefined;
|
|
657
702
|
gcp?: ({
|
|
658
703
|
credentials?: Uint8Array | undefined;
|
|
659
704
|
bucket?: string | undefined;
|
|
660
705
|
} & {
|
|
661
706
|
credentials?: Uint8Array | undefined;
|
|
662
707
|
bucket?: string | undefined;
|
|
663
|
-
} & Record<Exclude<keyof I["egressInfo"]["
|
|
708
|
+
} & Record<Exclude<keyof I["egressInfo"]["roomComposite"]["file"]["gcp"], keyof import("./livekit_egress").GCPUpload>, never>) | undefined;
|
|
664
709
|
azure?: ({
|
|
665
710
|
accountName?: string | undefined;
|
|
666
711
|
accountKey?: string | undefined;
|
|
@@ -669,15 +714,15 @@ export declare const WebhookEvent: {
|
|
|
669
714
|
accountName?: string | undefined;
|
|
670
715
|
accountKey?: string | undefined;
|
|
671
716
|
containerName?: string | undefined;
|
|
672
|
-
} & Record<Exclude<keyof I["egressInfo"]["
|
|
673
|
-
} & Record<Exclude<keyof I["egressInfo"]["
|
|
717
|
+
} & Record<Exclude<keyof I["egressInfo"]["roomComposite"]["file"]["azure"], keyof import("./livekit_egress").AzureBlobUpload>, never>) | undefined;
|
|
718
|
+
} & Record<Exclude<keyof I["egressInfo"]["roomComposite"]["file"], keyof import("./livekit_egress").EncodedFileOutput>, never>) | undefined;
|
|
674
719
|
stream?: ({
|
|
675
720
|
protocol?: import("./livekit_egress").StreamProtocol | undefined;
|
|
676
721
|
urls?: string[] | undefined;
|
|
677
722
|
} & {
|
|
678
723
|
protocol?: import("./livekit_egress").StreamProtocol | undefined;
|
|
679
|
-
urls?: (string[] & string[] & Record<Exclude<keyof I["egressInfo"]["
|
|
680
|
-
} & Record<Exclude<keyof I["egressInfo"]["
|
|
724
|
+
urls?: (string[] & string[] & Record<Exclude<keyof I["egressInfo"]["roomComposite"]["stream"]["urls"], number | keyof string[]>, never>) | undefined;
|
|
725
|
+
} & Record<Exclude<keyof I["egressInfo"]["roomComposite"]["stream"], keyof import("./livekit_egress").StreamOutput>, never>) | undefined;
|
|
681
726
|
preset?: import("./livekit_egress").EncodingOptionsPreset | undefined;
|
|
682
727
|
advanced?: ({
|
|
683
728
|
width?: number | undefined;
|
|
@@ -699,8 +744,8 @@ export declare const WebhookEvent: {
|
|
|
699
744
|
audioFrequency?: number | undefined;
|
|
700
745
|
videoCodec?: import("./livekit_egress").VideoCodec | undefined;
|
|
701
746
|
videoBitrate?: number | undefined;
|
|
702
|
-
} & Record<Exclude<keyof I["egressInfo"]["
|
|
703
|
-
} & Record<Exclude<keyof I["egressInfo"]["
|
|
747
|
+
} & Record<Exclude<keyof I["egressInfo"]["roomComposite"]["advanced"], keyof import("./livekit_egress").EncodingOptions>, never>) | undefined;
|
|
748
|
+
} & Record<Exclude<keyof I["egressInfo"]["roomComposite"], keyof import("./livekit_egress").RoomCompositeEgressRequest>, never>) | undefined;
|
|
704
749
|
trackComposite?: ({
|
|
705
750
|
roomName?: string | undefined;
|
|
706
751
|
audioTrackId?: string | undefined;
|
|
@@ -830,53 +875,112 @@ export declare const WebhookEvent: {
|
|
|
830
875
|
track?: ({
|
|
831
876
|
roomName?: string | undefined;
|
|
832
877
|
trackId?: string | undefined;
|
|
833
|
-
|
|
878
|
+
file?: {
|
|
879
|
+
filepath?: string | undefined;
|
|
880
|
+
s3?: {
|
|
881
|
+
accessKey?: string | undefined;
|
|
882
|
+
secret?: string | undefined;
|
|
883
|
+
region?: string | undefined;
|
|
884
|
+
endpoint?: string | undefined;
|
|
885
|
+
bucket?: string | undefined;
|
|
886
|
+
} | undefined;
|
|
887
|
+
gcp?: {
|
|
888
|
+
credentials?: Uint8Array | undefined;
|
|
889
|
+
bucket?: string | undefined;
|
|
890
|
+
} | undefined;
|
|
891
|
+
azure?: {
|
|
892
|
+
accountName?: string | undefined;
|
|
893
|
+
accountKey?: string | undefined;
|
|
894
|
+
containerName?: string | undefined;
|
|
895
|
+
} | undefined;
|
|
896
|
+
} | undefined;
|
|
834
897
|
websocketUrl?: string | undefined;
|
|
835
898
|
} & {
|
|
836
899
|
roomName?: string | undefined;
|
|
837
900
|
trackId?: string | undefined;
|
|
838
|
-
|
|
901
|
+
file?: ({
|
|
902
|
+
filepath?: string | undefined;
|
|
903
|
+
s3?: {
|
|
904
|
+
accessKey?: string | undefined;
|
|
905
|
+
secret?: string | undefined;
|
|
906
|
+
region?: string | undefined;
|
|
907
|
+
endpoint?: string | undefined;
|
|
908
|
+
bucket?: string | undefined;
|
|
909
|
+
} | undefined;
|
|
910
|
+
gcp?: {
|
|
911
|
+
credentials?: Uint8Array | undefined;
|
|
912
|
+
bucket?: string | undefined;
|
|
913
|
+
} | undefined;
|
|
914
|
+
azure?: {
|
|
915
|
+
accountName?: string | undefined;
|
|
916
|
+
accountKey?: string | undefined;
|
|
917
|
+
containerName?: string | undefined;
|
|
918
|
+
} | undefined;
|
|
919
|
+
} & {
|
|
920
|
+
filepath?: string | undefined;
|
|
921
|
+
s3?: ({
|
|
922
|
+
accessKey?: string | undefined;
|
|
923
|
+
secret?: string | undefined;
|
|
924
|
+
region?: string | undefined;
|
|
925
|
+
endpoint?: string | undefined;
|
|
926
|
+
bucket?: string | undefined;
|
|
927
|
+
} & {
|
|
928
|
+
accessKey?: string | undefined;
|
|
929
|
+
secret?: string | undefined;
|
|
930
|
+
region?: string | undefined;
|
|
931
|
+
endpoint?: string | undefined;
|
|
932
|
+
bucket?: string | undefined;
|
|
933
|
+
} & Record<Exclude<keyof I["egressInfo"]["track"]["file"]["s3"], keyof import("./livekit_egress").S3Upload>, never>) | undefined;
|
|
934
|
+
gcp?: ({
|
|
935
|
+
credentials?: Uint8Array | undefined;
|
|
936
|
+
bucket?: string | undefined;
|
|
937
|
+
} & {
|
|
938
|
+
credentials?: Uint8Array | undefined;
|
|
939
|
+
bucket?: string | undefined;
|
|
940
|
+
} & Record<Exclude<keyof I["egressInfo"]["track"]["file"]["gcp"], keyof import("./livekit_egress").GCPUpload>, never>) | undefined;
|
|
941
|
+
azure?: ({
|
|
942
|
+
accountName?: string | undefined;
|
|
943
|
+
accountKey?: string | undefined;
|
|
944
|
+
containerName?: string | undefined;
|
|
945
|
+
} & {
|
|
946
|
+
accountName?: string | undefined;
|
|
947
|
+
accountKey?: string | undefined;
|
|
948
|
+
containerName?: string | undefined;
|
|
949
|
+
} & Record<Exclude<keyof I["egressInfo"]["track"]["file"]["azure"], keyof import("./livekit_egress").AzureBlobUpload>, never>) | undefined;
|
|
950
|
+
} & Record<Exclude<keyof I["egressInfo"]["track"]["file"], keyof import("./livekit_egress").DirectFileOutput>, never>) | undefined;
|
|
839
951
|
websocketUrl?: string | undefined;
|
|
840
952
|
} & Record<Exclude<keyof I["egressInfo"]["track"], keyof import("./livekit_egress").TrackEgressRequest>, never>) | undefined;
|
|
841
953
|
stream?: ({
|
|
842
954
|
info?: {
|
|
843
955
|
url?: string | undefined;
|
|
844
|
-
|
|
845
|
-
endedAt?: number | undefined;
|
|
956
|
+
duration?: number | undefined;
|
|
846
957
|
}[] | undefined;
|
|
847
958
|
} & {
|
|
848
959
|
info?: ({
|
|
849
960
|
url?: string | undefined;
|
|
850
|
-
|
|
851
|
-
endedAt?: number | undefined;
|
|
961
|
+
duration?: number | undefined;
|
|
852
962
|
}[] & ({
|
|
853
963
|
url?: string | undefined;
|
|
854
|
-
|
|
855
|
-
endedAt?: number | undefined;
|
|
964
|
+
duration?: number | undefined;
|
|
856
965
|
} & {
|
|
857
966
|
url?: string | undefined;
|
|
858
|
-
|
|
859
|
-
endedAt?: number | undefined;
|
|
967
|
+
duration?: number | undefined;
|
|
860
968
|
} & Record<Exclude<keyof I["egressInfo"]["stream"]["info"][number], keyof import("./livekit_egress").StreamInfo>, never>)[] & Record<Exclude<keyof I["egressInfo"]["stream"]["info"], number | keyof {
|
|
861
969
|
url?: string | undefined;
|
|
862
|
-
|
|
863
|
-
endedAt?: number | undefined;
|
|
970
|
+
duration?: number | undefined;
|
|
864
971
|
}[]>, never>) | undefined;
|
|
865
972
|
} & Record<Exclude<keyof I["egressInfo"]["stream"], "info">, never>) | undefined;
|
|
866
973
|
file?: ({
|
|
867
974
|
filename?: string | undefined;
|
|
868
|
-
|
|
869
|
-
endedAt?: number | undefined;
|
|
975
|
+
duration?: number | undefined;
|
|
870
976
|
size?: number | undefined;
|
|
871
977
|
location?: string | undefined;
|
|
872
978
|
} & {
|
|
873
979
|
filename?: string | undefined;
|
|
874
|
-
|
|
875
|
-
endedAt?: number | undefined;
|
|
980
|
+
duration?: number | undefined;
|
|
876
981
|
size?: number | undefined;
|
|
877
982
|
location?: string | undefined;
|
|
878
983
|
} & Record<Exclude<keyof I["egressInfo"]["file"], keyof import("./livekit_egress").FileInfo>, never>) | undefined;
|
|
879
|
-
error?: string | undefined;
|
|
880
984
|
} & Record<Exclude<keyof I["egressInfo"], keyof EgressInfo>, never>) | undefined;
|
|
881
985
|
track?: ({
|
|
882
986
|
sid?: string | undefined;
|
|
@@ -29,22 +29,22 @@ const _m0 = __importStar(require("protobufjs/minimal"));
|
|
|
29
29
|
const livekit_models_1 = require("./livekit_models");
|
|
30
30
|
const livekit_recording_1 = require("./livekit_recording");
|
|
31
31
|
const livekit_egress_1 = require("./livekit_egress");
|
|
32
|
-
exports.protobufPackage =
|
|
32
|
+
exports.protobufPackage = 'livekit';
|
|
33
33
|
function createBaseWebhookEvent() {
|
|
34
34
|
return {
|
|
35
|
-
event:
|
|
35
|
+
event: '',
|
|
36
36
|
room: undefined,
|
|
37
37
|
participant: undefined,
|
|
38
38
|
recordingInfo: undefined,
|
|
39
39
|
egressInfo: undefined,
|
|
40
40
|
track: undefined,
|
|
41
|
-
id:
|
|
41
|
+
id: '',
|
|
42
42
|
createdAt: 0,
|
|
43
43
|
};
|
|
44
44
|
}
|
|
45
45
|
exports.WebhookEvent = {
|
|
46
46
|
encode(message, writer = _m0.Writer.create()) {
|
|
47
|
-
if (message.event !==
|
|
47
|
+
if (message.event !== '') {
|
|
48
48
|
writer.uint32(10).string(message.event);
|
|
49
49
|
}
|
|
50
50
|
if (message.room !== undefined) {
|
|
@@ -62,7 +62,7 @@ exports.WebhookEvent = {
|
|
|
62
62
|
if (message.track !== undefined) {
|
|
63
63
|
livekit_models_1.TrackInfo.encode(message.track, writer.uint32(66).fork()).ldelim();
|
|
64
64
|
}
|
|
65
|
-
if (message.id !==
|
|
65
|
+
if (message.id !== '') {
|
|
66
66
|
writer.uint32(50).string(message.id);
|
|
67
67
|
}
|
|
68
68
|
if (message.createdAt !== 0) {
|
|
@@ -110,7 +110,7 @@ exports.WebhookEvent = {
|
|
|
110
110
|
},
|
|
111
111
|
fromJSON(object) {
|
|
112
112
|
return {
|
|
113
|
-
event: isSet(object.event) ? String(object.event) :
|
|
113
|
+
event: isSet(object.event) ? String(object.event) : '',
|
|
114
114
|
room: isSet(object.room) ? livekit_models_1.Room.fromJSON(object.room) : undefined,
|
|
115
115
|
participant: isSet(object.participant)
|
|
116
116
|
? livekit_models_1.ParticipantInfo.fromJSON(object.participant)
|
|
@@ -118,19 +118,16 @@ exports.WebhookEvent = {
|
|
|
118
118
|
recordingInfo: isSet(object.recordingInfo)
|
|
119
119
|
? livekit_recording_1.RecordingInfo.fromJSON(object.recordingInfo)
|
|
120
120
|
: undefined,
|
|
121
|
-
egressInfo: isSet(object.egressInfo)
|
|
122
|
-
? livekit_egress_1.EgressInfo.fromJSON(object.egressInfo)
|
|
123
|
-
: undefined,
|
|
121
|
+
egressInfo: isSet(object.egressInfo) ? livekit_egress_1.EgressInfo.fromJSON(object.egressInfo) : undefined,
|
|
124
122
|
track: isSet(object.track) ? livekit_models_1.TrackInfo.fromJSON(object.track) : undefined,
|
|
125
|
-
id: isSet(object.id) ? String(object.id) :
|
|
123
|
+
id: isSet(object.id) ? String(object.id) : '',
|
|
126
124
|
createdAt: isSet(object.createdAt) ? Number(object.createdAt) : 0,
|
|
127
125
|
};
|
|
128
126
|
},
|
|
129
127
|
toJSON(message) {
|
|
130
128
|
const obj = {};
|
|
131
129
|
message.event !== undefined && (obj.event = message.event);
|
|
132
|
-
message.room !== undefined &&
|
|
133
|
-
(obj.room = message.room ? livekit_models_1.Room.toJSON(message.room) : undefined);
|
|
130
|
+
message.room !== undefined && (obj.room = message.room ? livekit_models_1.Room.toJSON(message.room) : undefined);
|
|
134
131
|
message.participant !== undefined &&
|
|
135
132
|
(obj.participant = message.participant
|
|
136
133
|
? livekit_models_1.ParticipantInfo.toJSON(message.participant)
|
|
@@ -140,24 +137,19 @@ exports.WebhookEvent = {
|
|
|
140
137
|
? livekit_recording_1.RecordingInfo.toJSON(message.recordingInfo)
|
|
141
138
|
: undefined);
|
|
142
139
|
message.egressInfo !== undefined &&
|
|
143
|
-
(obj.egressInfo = message.egressInfo
|
|
144
|
-
? livekit_egress_1.EgressInfo.toJSON(message.egressInfo)
|
|
145
|
-
: undefined);
|
|
140
|
+
(obj.egressInfo = message.egressInfo ? livekit_egress_1.EgressInfo.toJSON(message.egressInfo) : undefined);
|
|
146
141
|
message.track !== undefined &&
|
|
147
142
|
(obj.track = message.track ? livekit_models_1.TrackInfo.toJSON(message.track) : undefined);
|
|
148
143
|
message.id !== undefined && (obj.id = message.id);
|
|
149
|
-
message.createdAt !== undefined &&
|
|
150
|
-
(obj.createdAt = Math.round(message.createdAt));
|
|
144
|
+
message.createdAt !== undefined && (obj.createdAt = Math.round(message.createdAt));
|
|
151
145
|
return obj;
|
|
152
146
|
},
|
|
153
147
|
fromPartial(object) {
|
|
154
148
|
var _a, _b, _c;
|
|
155
149
|
const message = createBaseWebhookEvent();
|
|
156
|
-
message.event = (_a = object.event) !== null && _a !== void 0 ? _a :
|
|
150
|
+
message.event = (_a = object.event) !== null && _a !== void 0 ? _a : '';
|
|
157
151
|
message.room =
|
|
158
|
-
object.room !== undefined && object.room !== null
|
|
159
|
-
? livekit_models_1.Room.fromPartial(object.room)
|
|
160
|
-
: undefined;
|
|
152
|
+
object.room !== undefined && object.room !== null ? livekit_models_1.Room.fromPartial(object.room) : undefined;
|
|
161
153
|
message.participant =
|
|
162
154
|
object.participant !== undefined && object.participant !== null
|
|
163
155
|
? livekit_models_1.ParticipantInfo.fromPartial(object.participant)
|
|
@@ -174,25 +166,25 @@ exports.WebhookEvent = {
|
|
|
174
166
|
object.track !== undefined && object.track !== null
|
|
175
167
|
? livekit_models_1.TrackInfo.fromPartial(object.track)
|
|
176
168
|
: undefined;
|
|
177
|
-
message.id = (_b = object.id) !== null && _b !== void 0 ? _b :
|
|
169
|
+
message.id = (_b = object.id) !== null && _b !== void 0 ? _b : '';
|
|
178
170
|
message.createdAt = (_c = object.createdAt) !== null && _c !== void 0 ? _c : 0;
|
|
179
171
|
return message;
|
|
180
172
|
},
|
|
181
173
|
};
|
|
182
174
|
var globalThis = (() => {
|
|
183
|
-
if (typeof globalThis !==
|
|
175
|
+
if (typeof globalThis !== 'undefined')
|
|
184
176
|
return globalThis;
|
|
185
|
-
if (typeof self !==
|
|
177
|
+
if (typeof self !== 'undefined')
|
|
186
178
|
return self;
|
|
187
|
-
if (typeof window !==
|
|
179
|
+
if (typeof window !== 'undefined')
|
|
188
180
|
return window;
|
|
189
|
-
if (typeof global !==
|
|
181
|
+
if (typeof global !== 'undefined')
|
|
190
182
|
return global;
|
|
191
|
-
throw
|
|
183
|
+
throw 'Unable to locate global object';
|
|
192
184
|
})();
|
|
193
185
|
function longToNumber(long) {
|
|
194
186
|
if (long.gt(Number.MAX_SAFE_INTEGER)) {
|
|
195
|
-
throw new globalThis.Error(
|
|
187
|
+
throw new globalThis.Error('Value is larger than Number.MAX_SAFE_INTEGER');
|
|
196
188
|
}
|
|
197
189
|
return long.toNumber();
|
|
198
190
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"livekit_webhook.js","sourceRoot":"","sources":["../../src/proto/livekit_webhook.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,oBAAoB;AACpB,gDAAwB;AACxB,wDAA0C;AAC1C,qDAAoE;AACpE,2DAAoD;AACpD,qDAA8C;AAEjC,QAAA,eAAe,GAAG,SAAS,CAAC;AAuBzC,SAAS,sBAAsB;IAC7B,OAAO;QACL,KAAK,EAAE,EAAE;QACT,IAAI,EAAE,SAAS;QACf,WAAW,EAAE,SAAS;QACtB,aAAa,EAAE,SAAS;QACxB,UAAU,EAAE,SAAS;QACrB,KAAK,EAAE,SAAS;QAChB,EAAE,EAAE,EAAE;QACN,SAAS,EAAE,CAAC;KACb,CAAC;AACJ,CAAC;AAEY,QAAA,YAAY,GAAG;IAC1B,MAAM,
|
|
1
|
+
{"version":3,"file":"livekit_webhook.js","sourceRoot":"","sources":["../../src/proto/livekit_webhook.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,oBAAoB;AACpB,gDAAwB;AACxB,wDAA0C;AAC1C,qDAAoE;AACpE,2DAAoD;AACpD,qDAA8C;AAEjC,QAAA,eAAe,GAAG,SAAS,CAAC;AAuBzC,SAAS,sBAAsB;IAC7B,O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zD,IAAI,OAAO,IAAI,KAAK,WAAW;QAAE,OAAO,IAAI,CAAC;IAC7C,IAAI,OAAO,MAAM,KAAK,WAAW;QAAE,OAAO,MAAM,CAAC;IACjD,IAAI,OAAO,MAAM,KAAK,WAAW;QAAE,OAAO,MAAM,CAAC;IACjD,MAAM,gCAAgC,CAAC;AACzC,CAAC,CAAC,EAAE,CAAC;AAmBL,SAAS,YAAY,CAAC,IAAU;IAC9B,IAAI,IAAI,CAAC,EAAE,CAAC,MAAM,CAAC,gBAAgB,CAAC,EAAE;QACpC,MAAM,IAAI,UAAU,CAAC,KAAK,CAAC,8CAA8C,CAAC,CAAC;KAC5E;IACD,OAAO,IAAI,CAAC,QAAQ,EAAE,CAAC;AACzB,CAAC;AAED,IAAI,GAAG,CAAC,IAAI,CAAC,IAAI,KAAK,cAAI,EAAE;IAC1B,GAAG,CAAC,IAAI,CAAC,IAAI,GAAG,cAAW,CAAC;IAC5B,GAAG,CAAC,SAAS,EAAE,CAAC;CACjB;AAED,SAAS,KAAK,CAAC,KAAU;IACvB,OAAO,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,SAAS,CAAC;AAC/C,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "livekit-server-sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"description": "Server-side SDK for LiveKit",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -8,10 +8,13 @@
|
|
|
8
8
|
"author": "David Zhao <david@davidzhao.com>",
|
|
9
9
|
"license": "Apache 2.0",
|
|
10
10
|
"scripts": {
|
|
11
|
-
"build": "
|
|
12
|
-
"build
|
|
11
|
+
"build": "tsc",
|
|
12
|
+
"build:watch": "tsc --watch",
|
|
13
|
+
"build-docs": "typedoc",
|
|
13
14
|
"proto": "protoc --plugin=node_modules/ts-proto/protoc-gen-ts_proto --ts_proto_opt=esModuleInterop=true --ts_proto_out=./src/proto --ts_proto_opt=useOptionals=true --ts_proto_opt=outputClientImpl=false -I./protocol ./protocol/livekit_egress.proto ./protocol/livekit_room.proto ./protocol/livekit_recording.proto ./protocol/livekit_webhook.proto",
|
|
14
15
|
"lint": "eslint .",
|
|
16
|
+
"format": "prettier --write src",
|
|
17
|
+
"format:check": "prettier --check src",
|
|
15
18
|
"test": "jest"
|
|
16
19
|
},
|
|
17
20
|
"dependencies": {
|
|
@@ -26,13 +29,15 @@
|
|
|
26
29
|
"@typescript-eslint/eslint-plugin": "^4.29.1",
|
|
27
30
|
"eslint": "^7.32.0",
|
|
28
31
|
"eslint-config-airbnb-typescript": "^12.3.1",
|
|
32
|
+
"eslint-config-prettier": "^8.5.0",
|
|
29
33
|
"eslint-plugin-import": "^2.24.0",
|
|
30
34
|
"jest": "^26.6.3",
|
|
35
|
+
"prettier": "^2.6.2",
|
|
31
36
|
"ts-jest": "^26.4.4",
|
|
32
37
|
"ts-loader": "^8.0.11",
|
|
33
38
|
"ts-node": "^9.1.1",
|
|
34
39
|
"ts-proto": "^1.110.1",
|
|
35
|
-
"typedoc": "^0.
|
|
40
|
+
"typedoc": "^0.22.13",
|
|
36
41
|
"typescript": "4.2.x",
|
|
37
42
|
"webpack": "^5.9.0",
|
|
38
43
|
"webpack-cli": "^4.2.0"
|