plugnmeet-protocol-js 1.4.1-0 → 1.4.1-3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -812,6 +812,12 @@ export type NatsKvUserInfo = Message<"plugnmeet.NatsKvUserInfo"> & {
812
812
  * @generated from field: uint64 disconnected_at = 10 [jstype = JS_STRING];
813
813
  */
814
814
  disconnectedAt: string;
815
+ /**
816
+ * session client type; WEB when absent (backward compatible)
817
+ *
818
+ * @generated from field: plugnmeet.ClientType client_type = 11;
819
+ */
820
+ clientType: ClientType;
815
821
  };
816
822
  /**
817
823
  * Describes the message plugnmeet.NatsKvUserInfo.
@@ -904,6 +910,12 @@ export type MediaServerConnInfo = Message<"plugnmeet.MediaServerConnInfo"> & {
904
910
  * @generated from field: optional plugnmeet.TurnCredentials turn_credentials = 4;
905
911
  */
906
912
  turnCredentials?: TurnCredentials | undefined;
913
+ /**
914
+ * LiveKit JWT for the [userID]-native publish-only twin; only set when the session is HYBRID_WEB
915
+ *
916
+ * @generated from field: string native_token = 5;
917
+ */
918
+ nativeToken: string;
907
919
  };
908
920
  /**
909
921
  * Describes the message plugnmeet.MediaServerConnInfo.
@@ -1028,6 +1040,28 @@ export type ChatMessage = Message<"plugnmeet.ChatMessage"> & {
1028
1040
  * Use `create(ChatMessageSchema)` to create a new message.
1029
1041
  */
1030
1042
  export const ChatMessageSchema: GenMessage<ChatMessage>;
1043
+ /**
1044
+ * ClientType identifies which client shell is joining.
1045
+ * WEB = standard plugNmeet web client (default).
1046
+ * HYBRID_WEB = web client running inside a native app's webview (hybrid mode:
1047
+ * subscribe-only; media publishing is delegated to the native host app).
1048
+ *
1049
+ * @generated from enum plugnmeet.ClientType
1050
+ */
1051
+ export enum ClientType {
1052
+ /**
1053
+ * @generated from enum value: WEB = 0;
1054
+ */
1055
+ WEB = 0,
1056
+ /**
1057
+ * @generated from enum value: HYBRID_WEB = 1;
1058
+ */
1059
+ HYBRID_WEB = 1
1060
+ }
1061
+ /**
1062
+ * Describes the enum plugnmeet.ClientType.
1063
+ */
1064
+ export const ClientTypeSchema: GenEnum<ClientType>;
1031
1065
  /**
1032
1066
  * @generated from enum plugnmeet.NatsMsgServerToClientEvents
1033
1067
  */
@@ -1287,6 +1321,12 @@ export type VerifyTokenRes = Message<"plugnmeet.VerifyTokenRes"> & {
1287
1321
  * @generated from field: optional bool is_cloud = 10;
1288
1322
  */
1289
1323
  isCloud?: boolean | undefined;
1324
+ /**
1325
+ * echoed from the token claims; web client enters hybrid UI when HYBRID_WEB
1326
+ *
1327
+ * @generated from field: plugnmeet.ClientType client_type = 11;
1328
+ */
1329
+ clientType: ClientType;
1290
1330
  };
1291
1331
  /**
1292
1332
  * Describes the message plugnmeet.VerifyTokenRes.
@@ -2510,11 +2550,15 @@ enum ParticipantInfo_KindDetail {
2510
2550
  */
2511
2551
  CONNECTOR_TWILIO = 3,
2512
2552
  /**
2513
- * NEXT_ID: 5
2514
- *
2515
2553
  * @generated from enum value: BRIDGE_RTSP = 4;
2516
2554
  */
2517
- BRIDGE_RTSP = 4
2555
+ BRIDGE_RTSP = 4,
2556
+ /**
2557
+ * NEXT_ID: 6
2558
+ *
2559
+ * @generated from enum value: SIMULATION = 5;
2560
+ */
2561
+ SIMULATION = 5
2518
2562
  }
2519
2563
  /**
2520
2564
  * @generated from enum livekit.Encryption.Type
@@ -5308,6 +5352,12 @@ export type UserInfo = Message<"plugnmeet.UserInfo"> & {
5308
5352
  * @generated from field: plugnmeet.UserMetadata user_metadata = 5;
5309
5353
  */
5310
5354
  userMetadata?: UserMetadata | undefined;
5355
+ /**
5356
+ * default WEB; customer backend sets HYBRID_WEB for native-shell joins
5357
+ *
5358
+ * @generated from field: plugnmeet.ClientType client_type = 6;
5359
+ */
5360
+ clientType: ClientType;
5311
5361
  };
5312
5362
  /**
5313
5363
  * Describes the message plugnmeet.UserInfo.
@@ -5422,6 +5472,12 @@ export type PlugNmeetTokenClaims = Message<"plugnmeet.PlugNmeetTokenClaims"> & {
5422
5472
  * @generated from field: bool is_hidden = 5;
5423
5473
  */
5424
5474
  isHidden: boolean;
5475
+ /**
5476
+ * copied from UserInfo at join-token generation
5477
+ *
5478
+ * @generated from field: plugnmeet.ClientType client_type = 6;
5479
+ */
5480
+ clientType: ClientType;
5425
5481
  };
5426
5482
  /**
5427
5483
  * Describes the message plugnmeet.PlugNmeetTokenClaims.
@@ -6572,6 +6628,325 @@ export type LtiCustomDesign = Message<"plugnmeet.LtiCustomDesign"> & {
6572
6628
  * Use `create(LtiCustomDesignSchema)` to create a new message.
6573
6629
  */
6574
6630
  export const LtiCustomDesignSchema: GenMessage<LtiCustomDesign>;
6631
+ /**
6632
+ * Describes the file plugnmeet_native_bridge.proto.
6633
+ */
6634
+ export const file_plugnmeet_native_bridge: GenFile;
6635
+ /**
6636
+ * Wire format for communication between the webview and the native host.
6637
+ * Messages are encoded as proto3 JSON (not binary).
6638
+ *
6639
+ * @generated from message plugnmeet.NativeBridgeMsg
6640
+ */
6641
+ export type NativeBridgeMsg = Message<"plugnmeet.NativeBridgeMsg"> & {
6642
+ /**
6643
+ * @generated from field: plugnmeet.NativeBridgeActions action = 1;
6644
+ */
6645
+ action: NativeBridgeActions;
6646
+ /**
6647
+ * @generated from oneof plugnmeet.NativeBridgeMsg.payload
6648
+ */
6649
+ payload: {
6650
+ /**
6651
+ * @generated from field: plugnmeet.NativeBridgeInitializePublisher initialize_native_publisher = 2;
6652
+ */
6653
+ value: NativeBridgeInitializePublisher;
6654
+ case: "initializeNativePublisher";
6655
+ } | {
6656
+ /**
6657
+ * @generated from field: plugnmeet.NativeBridgeMediaSource media_source = 3;
6658
+ */
6659
+ value: NativeBridgeMediaSource;
6660
+ case: "mediaSource";
6661
+ } | {
6662
+ /**
6663
+ * @generated from field: plugnmeet.NativeBridgeHeartbeat heartbeat = 4;
6664
+ */
6665
+ value: NativeBridgeHeartbeat;
6666
+ case: "heartbeat";
6667
+ } | {
6668
+ /**
6669
+ * @generated from field: plugnmeet.NativeBridgeMediaStatus media_status = 5;
6670
+ */
6671
+ value: NativeBridgeMediaStatus;
6672
+ case: "mediaStatus";
6673
+ } | {
6674
+ /**
6675
+ * @generated from field: plugnmeet.NativeBridgeTrackState track_state = 6;
6676
+ */
6677
+ value: NativeBridgeTrackState;
6678
+ case: "trackState";
6679
+ } | {
6680
+ /**
6681
+ * @generated from field: plugnmeet.NativeBridgeMediaMuted media_muted = 7;
6682
+ */
6683
+ value: NativeBridgeMediaMuted;
6684
+ case: "mediaMuted";
6685
+ } | {
6686
+ case: undefined;
6687
+ value?: undefined;
6688
+ };
6689
+ };
6690
+ /**
6691
+ * Describes the message plugnmeet.NativeBridgeMsg.
6692
+ * Use `create(NativeBridgeMsgSchema)` to create a new message.
6693
+ */
6694
+ export const NativeBridgeMsgSchema: GenMessage<NativeBridgeMsg>;
6695
+ /**
6696
+ * @generated from message plugnmeet.NativeBridgeInitializePublisher
6697
+ */
6698
+ export type NativeBridgeInitializePublisher = Message<"plugnmeet.NativeBridgeInitializePublisher"> & {
6699
+ /**
6700
+ * @generated from field: string livekit_url = 1;
6701
+ */
6702
+ livekitUrl: string;
6703
+ /**
6704
+ * @generated from field: string token = 2;
6705
+ */
6706
+ token: string;
6707
+ /**
6708
+ * @generated from field: string native_user_id = 3;
6709
+ */
6710
+ nativeUserId: string;
6711
+ /**
6712
+ * @generated from field: optional plugnmeet.NativeBridgeE2EE e2ee = 4;
6713
+ */
6714
+ e2ee?: NativeBridgeE2EE | undefined;
6715
+ };
6716
+ /**
6717
+ * Describes the message plugnmeet.NativeBridgeInitializePublisher.
6718
+ * Use `create(NativeBridgeInitializePublisherSchema)` to create a new message.
6719
+ */
6720
+ export const NativeBridgeInitializePublisherSchema: GenMessage<NativeBridgeInitializePublisher>;
6721
+ /**
6722
+ * @generated from message plugnmeet.NativeBridgeE2EE
6723
+ */
6724
+ export type NativeBridgeE2EE = Message<"plugnmeet.NativeBridgeE2EE"> & {
6725
+ /**
6726
+ * @generated from field: bool enabled = 1;
6727
+ */
6728
+ enabled: boolean;
6729
+ /**
6730
+ * @generated from field: optional string key = 2;
6731
+ */
6732
+ key?: string | undefined;
6733
+ };
6734
+ /**
6735
+ * Describes the message plugnmeet.NativeBridgeE2EE.
6736
+ * Use `create(NativeBridgeE2EESchema)` to create a new message.
6737
+ */
6738
+ export const NativeBridgeE2EESchema: GenMessage<NativeBridgeE2EE>;
6739
+ /**
6740
+ * Used for PUBLISH/UNPUBLISH/MUTE/UNMUTE actions (web -> native).
6741
+ *
6742
+ * @generated from message plugnmeet.NativeBridgeMediaSource
6743
+ */
6744
+ export type NativeBridgeMediaSource = Message<"plugnmeet.NativeBridgeMediaSource"> & {
6745
+ /**
6746
+ * @generated from field: plugnmeet.NativeMediaSource source = 1;
6747
+ */
6748
+ source: NativeMediaSource;
6749
+ };
6750
+ /**
6751
+ * Describes the message plugnmeet.NativeBridgeMediaSource.
6752
+ * Use `create(NativeBridgeMediaSourceSchema)` to create a new message.
6753
+ */
6754
+ export const NativeBridgeMediaSourceSchema: GenMessage<NativeBridgeMediaSource>;
6755
+ /**
6756
+ * Unix milliseconds.
6757
+ *
6758
+ * @generated from message plugnmeet.NativeBridgeHeartbeat
6759
+ */
6760
+ export type NativeBridgeHeartbeat = Message<"plugnmeet.NativeBridgeHeartbeat"> & {
6761
+ /**
6762
+ * @generated from field: int64 ts = 1 [jstype = JS_STRING];
6763
+ */
6764
+ ts: string;
6765
+ };
6766
+ /**
6767
+ * Describes the message plugnmeet.NativeBridgeHeartbeat.
6768
+ * Use `create(NativeBridgeHeartbeatSchema)` to create a new message.
6769
+ */
6770
+ export const NativeBridgeHeartbeatSchema: GenMessage<NativeBridgeHeartbeat>;
6771
+ /**
6772
+ * Native -> web: action confirmation or error report.
6773
+ *
6774
+ * @generated from message plugnmeet.NativeBridgeMediaStatus
6775
+ */
6776
+ export type NativeBridgeMediaStatus = Message<"plugnmeet.NativeBridgeMediaStatus"> & {
6777
+ /**
6778
+ * @generated from field: plugnmeet.NativeMediaSource source = 1;
6779
+ */
6780
+ source: NativeMediaSource;
6781
+ /**
6782
+ * @generated from field: optional string device_id = 2;
6783
+ */
6784
+ deviceId?: string | undefined;
6785
+ /**
6786
+ * @generated from field: optional string error = 3;
6787
+ */
6788
+ error?: string | undefined;
6789
+ };
6790
+ /**
6791
+ * Describes the message plugnmeet.NativeBridgeMediaStatus.
6792
+ * Use `create(NativeBridgeMediaStatusSchema)` to create a new message.
6793
+ */
6794
+ export const NativeBridgeMediaStatusSchema: GenMessage<NativeBridgeMediaStatus>;
6795
+ /**
6796
+ * Native -> web: track published/unpublished notification.
6797
+ *
6798
+ * @generated from message plugnmeet.NativeBridgeTrackState
6799
+ */
6800
+ export type NativeBridgeTrackState = Message<"plugnmeet.NativeBridgeTrackState"> & {
6801
+ /**
6802
+ * @generated from field: string user_id = 1;
6803
+ */
6804
+ userId: string;
6805
+ /**
6806
+ * @generated from field: plugnmeet.NativeTrackKind kind = 2;
6807
+ */
6808
+ kind: NativeTrackKind;
6809
+ /**
6810
+ * @generated from field: plugnmeet.NativeMediaSource source = 3;
6811
+ */
6812
+ source: NativeMediaSource;
6813
+ };
6814
+ /**
6815
+ * Describes the message plugnmeet.NativeBridgeTrackState.
6816
+ * Use `create(NativeBridgeTrackStateSchema)` to create a new message.
6817
+ */
6818
+ export const NativeBridgeTrackStateSchema: GenMessage<NativeBridgeTrackState>;
6819
+ /**
6820
+ * Native -> web: mute state confirmation.
6821
+ *
6822
+ * @generated from message plugnmeet.NativeBridgeMediaMuted
6823
+ */
6824
+ export type NativeBridgeMediaMuted = Message<"plugnmeet.NativeBridgeMediaMuted"> & {
6825
+ /**
6826
+ * @generated from field: plugnmeet.NativeMediaSource source = 1;
6827
+ */
6828
+ source: NativeMediaSource;
6829
+ /**
6830
+ * @generated from field: bool muted = 2;
6831
+ */
6832
+ muted: boolean;
6833
+ };
6834
+ /**
6835
+ * Describes the message plugnmeet.NativeBridgeMediaMuted.
6836
+ * Use `create(NativeBridgeMediaMutedSchema)` to create a new message.
6837
+ */
6838
+ export const NativeBridgeMediaMutedSchema: GenMessage<NativeBridgeMediaMuted>;
6839
+ /**
6840
+ * @generated from enum plugnmeet.NativeBridgeActions
6841
+ */
6842
+ export enum NativeBridgeActions {
6843
+ /**
6844
+ * @generated from enum value: NATIVE_BRIDGE_ACTION_UNSPECIFIED = 0;
6845
+ */
6846
+ NATIVE_BRIDGE_ACTION_UNSPECIFIED = 0,
6847
+ /**
6848
+ * web app -> native host
6849
+ *
6850
+ * @generated from enum value: INITIALIZE_NATIVE_PUBLISHER = 1;
6851
+ */
6852
+ INITIALIZE_NATIVE_PUBLISHER = 1,
6853
+ /**
6854
+ * @generated from enum value: PUBLISH_NATIVE_MEDIA = 2;
6855
+ */
6856
+ PUBLISH_NATIVE_MEDIA = 2,
6857
+ /**
6858
+ * @generated from enum value: UNPUBLISH_NATIVE_MEDIA = 3;
6859
+ */
6860
+ UNPUBLISH_NATIVE_MEDIA = 3,
6861
+ /**
6862
+ * @generated from enum value: MUTE_NATIVE_MEDIA = 4;
6863
+ */
6864
+ MUTE_NATIVE_MEDIA = 4,
6865
+ /**
6866
+ * @generated from enum value: UNMUTE_NATIVE_MEDIA = 5;
6867
+ */
6868
+ UNMUTE_NATIVE_MEDIA = 5,
6869
+ /**
6870
+ * @generated from enum value: TEARDOWN_NATIVE_PUBLISHER = 6;
6871
+ */
6872
+ TEARDOWN_NATIVE_PUBLISHER = 6,
6873
+ /**
6874
+ * @generated from enum value: NATIVE_HEARTBEAT_PING = 7;
6875
+ */
6876
+ NATIVE_HEARTBEAT_PING = 7,
6877
+ /**
6878
+ * native host -> web app
6879
+ *
6880
+ * @generated from enum value: NATIVE_MEDIA_STATUS = 20;
6881
+ */
6882
+ NATIVE_MEDIA_STATUS = 20,
6883
+ /**
6884
+ * @generated from enum value: NATIVE_TRACK_PUBLISHED = 21;
6885
+ */
6886
+ NATIVE_TRACK_PUBLISHED = 21,
6887
+ /**
6888
+ * @generated from enum value: NATIVE_TRACK_UNPUBLISHED = 22;
6889
+ */
6890
+ NATIVE_TRACK_UNPUBLISHED = 22,
6891
+ /**
6892
+ * @generated from enum value: NATIVE_MEDIA_MUTED = 23;
6893
+ */
6894
+ NATIVE_MEDIA_MUTED = 23,
6895
+ /**
6896
+ * @generated from enum value: NATIVE_HEARTBEAT_PONG = 24;
6897
+ */
6898
+ NATIVE_HEARTBEAT_PONG = 24
6899
+ }
6900
+ /**
6901
+ * Describes the enum plugnmeet.NativeBridgeActions.
6902
+ */
6903
+ export const NativeBridgeActionsSchema: GenEnum<NativeBridgeActions>;
6904
+ /**
6905
+ * @generated from enum plugnmeet.NativeMediaSource
6906
+ */
6907
+ export enum NativeMediaSource {
6908
+ /**
6909
+ * @generated from enum value: NATIVE_MEDIA_SOURCE_UNSPECIFIED = 0;
6910
+ */
6911
+ NATIVE_MEDIA_SOURCE_UNSPECIFIED = 0,
6912
+ /**
6913
+ * @generated from enum value: MIC = 1;
6914
+ */
6915
+ MIC = 1,
6916
+ /**
6917
+ * @generated from enum value: WEBCAM = 2;
6918
+ */
6919
+ WEBCAM = 2,
6920
+ /**
6921
+ * @generated from enum value: SCREENSHARE = 3;
6922
+ */
6923
+ SCREENSHARE = 3
6924
+ }
6925
+ /**
6926
+ * Describes the enum plugnmeet.NativeMediaSource.
6927
+ */
6928
+ export const NativeMediaSourceSchema: GenEnum<NativeMediaSource>;
6929
+ /**
6930
+ * @generated from enum plugnmeet.NativeTrackKind
6931
+ */
6932
+ export enum NativeTrackKind {
6933
+ /**
6934
+ * @generated from enum value: NATIVE_TRACK_KIND_UNSPECIFIED = 0;
6935
+ */
6936
+ NATIVE_TRACK_KIND_UNSPECIFIED = 0,
6937
+ /**
6938
+ * @generated from enum value: AUDIO = 1;
6939
+ */
6940
+ AUDIO = 1,
6941
+ /**
6942
+ * @generated from enum value: VIDEO = 2;
6943
+ */
6944
+ VIDEO = 2
6945
+ }
6946
+ /**
6947
+ * Describes the enum plugnmeet.NativeTrackKind.
6948
+ */
6949
+ export const NativeTrackKindSchema: GenEnum<NativeTrackKind>;
6575
6950
  /**
6576
6951
  * Describes the file plugnmeet_polls.proto.
6577
6952
  */