@fishjam-cloud/js-server-sdk 0.28.0 → 0.28.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.
package/dist/index.js CHANGED
@@ -183,12 +183,7 @@ var CredentialsApiFp = function(configuration) {
183
183
  const localVarAxiosArgs = await localVarAxiosParamCreator.validateCredentials(options);
184
184
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
185
185
  const localVarOperationServerBasePath = operationServerMap["CredentialsApi.validateCredentials"]?.[localVarOperationServerIndex]?.url;
186
- return (axios2, basePath) => createRequestFunction(
187
- localVarAxiosArgs,
188
- import_axios.default,
189
- BASE_PATH,
190
- configuration
191
- )(axios2, localVarOperationServerBasePath || basePath);
186
+ return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, import_axios.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
192
187
  }
193
188
  };
194
189
  };
@@ -208,13 +203,13 @@ var MoQApiAxiosParamCreator = function(configuration) {
208
203
  return {
209
204
  /**
210
205
  * Issue a short-lived JWT for a Media over QUIC client.
211
- * @summary Create a MoQ token
212
- * @param {MoqTokenConfig} [moqTokenConfig]
206
+ * @summary Create MoQ access
207
+ * @param {MoqAccessConfig} [moqAccessConfig]
213
208
  * @param {*} [options] Override http request option.
214
209
  * @throws {RequiredError}
215
210
  */
216
- createMoqToken: async (moqTokenConfig, options = {}) => {
217
- const localVarPath = `/moq/token`;
211
+ createMoqAccess: async (moqAccessConfig, options = {}) => {
212
+ const localVarPath = `/moq/access`;
218
213
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
219
214
  let baseOptions;
220
215
  if (configuration) {
@@ -228,7 +223,7 @@ var MoQApiAxiosParamCreator = function(configuration) {
228
223
  setSearchParams(localVarUrlObj, localVarQueryParameter);
229
224
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
230
225
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
231
- localVarRequestOptions.data = serializeDataIfNeeded(moqTokenConfig, localVarRequestOptions, configuration);
226
+ localVarRequestOptions.data = serializeDataIfNeeded(moqAccessConfig, localVarRequestOptions, configuration);
232
227
  return {
233
228
  url: toPathString(localVarUrlObj),
234
229
  options: localVarRequestOptions
@@ -241,35 +236,30 @@ var MoQApiFp = function(configuration) {
241
236
  return {
242
237
  /**
243
238
  * Issue a short-lived JWT for a Media over QUIC client.
244
- * @summary Create a MoQ token
245
- * @param {MoqTokenConfig} [moqTokenConfig]
239
+ * @summary Create MoQ access
240
+ * @param {MoqAccessConfig} [moqAccessConfig]
246
241
  * @param {*} [options] Override http request option.
247
242
  * @throws {RequiredError}
248
243
  */
249
- async createMoqToken(moqTokenConfig, options) {
250
- const localVarAxiosArgs = await localVarAxiosParamCreator.createMoqToken(moqTokenConfig, options);
244
+ async createMoqAccess(moqAccessConfig, options) {
245
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createMoqAccess(moqAccessConfig, options);
251
246
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
252
- const localVarOperationServerBasePath = operationServerMap["MoQApi.createMoqToken"]?.[localVarOperationServerIndex]?.url;
253
- return (axios2, basePath) => createRequestFunction(
254
- localVarAxiosArgs,
255
- import_axios.default,
256
- BASE_PATH,
257
- configuration
258
- )(axios2, localVarOperationServerBasePath || basePath);
247
+ const localVarOperationServerBasePath = operationServerMap["MoQApi.createMoqAccess"]?.[localVarOperationServerIndex]?.url;
248
+ return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, import_axios.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
259
249
  }
260
250
  };
261
251
  };
262
252
  var MoQApi = class extends BaseAPI {
263
253
  /**
264
254
  * Issue a short-lived JWT for a Media over QUIC client.
265
- * @summary Create a MoQ token
266
- * @param {MoqTokenConfig} [moqTokenConfig]
255
+ * @summary Create MoQ access
256
+ * @param {MoqAccessConfig} [moqAccessConfig]
267
257
  * @param {*} [options] Override http request option.
268
258
  * @throws {RequiredError}
269
259
  * @memberof MoQApi
270
260
  */
271
- createMoqToken(moqTokenConfig, options) {
272
- return MoQApiFp(this.configuration).createMoqToken(moqTokenConfig, options).then((request) => request(this.axios, this.basePath));
261
+ createMoqAccess(moqAccessConfig, options) {
262
+ return MoQApiFp(this.configuration).createMoqAccess(moqAccessConfig, options).then((request) => request(this.axios, this.basePath));
273
263
  }
274
264
  };
275
265
  var RoomsApiAxiosParamCreator = function(configuration) {
@@ -278,7 +268,7 @@ var RoomsApiAxiosParamCreator = function(configuration) {
278
268
  * Add a peer to a room and return its connection token.
279
269
  * @summary Create a peer
280
270
  * @param {string} roomId Room id
281
- * @param {PeerConfig} [peerConfig]
271
+ * @param {PeerConfig} [peerConfig]
282
272
  * @param {*} [options] Override http request option.
283
273
  * @throws {RequiredError}
284
274
  */
@@ -307,7 +297,7 @@ var RoomsApiAxiosParamCreator = function(configuration) {
307
297
  /**
308
298
  * Create a new room with the given configuration.
309
299
  * @summary Create a room
310
- * @param {RoomConfig} [roomConfig]
300
+ * @param {RoomConfig} [roomConfig]
311
301
  * @param {*} [options] Override http request option.
312
302
  * @throws {RequiredError}
313
303
  */
@@ -528,11 +518,7 @@ var RoomsApiAxiosParamCreator = function(configuration) {
528
518
  setSearchParams(localVarUrlObj, localVarQueryParameter);
529
519
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
530
520
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
531
- localVarRequestOptions.data = serializeDataIfNeeded(
532
- subscribeTracksRequest,
533
- localVarRequestOptions,
534
- configuration
535
- );
521
+ localVarRequestOptions.data = serializeDataIfNeeded(subscribeTracksRequest, localVarRequestOptions, configuration);
536
522
  return {
537
523
  url: toPathString(localVarUrlObj),
538
524
  options: localVarRequestOptions
@@ -547,7 +533,7 @@ var RoomsApiFp = function(configuration) {
547
533
  * Add a peer to a room and return its connection token.
548
534
  * @summary Create a peer
549
535
  * @param {string} roomId Room id
550
- * @param {PeerConfig} [peerConfig]
536
+ * @param {PeerConfig} [peerConfig]
551
537
  * @param {*} [options] Override http request option.
552
538
  * @throws {RequiredError}
553
539
  */
@@ -555,17 +541,12 @@ var RoomsApiFp = function(configuration) {
555
541
  const localVarAxiosArgs = await localVarAxiosParamCreator.addPeer(roomId, peerConfig, options);
556
542
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
557
543
  const localVarOperationServerBasePath = operationServerMap["RoomsApi.addPeer"]?.[localVarOperationServerIndex]?.url;
558
- return (axios2, basePath) => createRequestFunction(
559
- localVarAxiosArgs,
560
- import_axios.default,
561
- BASE_PATH,
562
- configuration
563
- )(axios2, localVarOperationServerBasePath || basePath);
544
+ return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, import_axios.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
564
545
  },
565
546
  /**
566
547
  * Create a new room with the given configuration.
567
548
  * @summary Create a room
568
- * @param {RoomConfig} [roomConfig]
549
+ * @param {RoomConfig} [roomConfig]
569
550
  * @param {*} [options] Override http request option.
570
551
  * @throws {RequiredError}
571
552
  */
@@ -573,12 +554,7 @@ var RoomsApiFp = function(configuration) {
573
554
  const localVarAxiosArgs = await localVarAxiosParamCreator.createRoom(roomConfig, options);
574
555
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
575
556
  const localVarOperationServerBasePath = operationServerMap["RoomsApi.createRoom"]?.[localVarOperationServerIndex]?.url;
576
- return (axios2, basePath) => createRequestFunction(
577
- localVarAxiosArgs,
578
- import_axios.default,
579
- BASE_PATH,
580
- configuration
581
- )(axios2, localVarOperationServerBasePath || basePath);
557
+ return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, import_axios.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
582
558
  },
583
559
  /**
584
560
  * Remove a peer from a room and disconnect it.
@@ -592,12 +568,7 @@ var RoomsApiFp = function(configuration) {
592
568
  const localVarAxiosArgs = await localVarAxiosParamCreator.deletePeer(roomId, id, options);
593
569
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
594
570
  const localVarOperationServerBasePath = operationServerMap["RoomsApi.deletePeer"]?.[localVarOperationServerIndex]?.url;
595
- return (axios2, basePath) => createRequestFunction(
596
- localVarAxiosArgs,
597
- import_axios.default,
598
- BASE_PATH,
599
- configuration
600
- )(axios2, localVarOperationServerBasePath || basePath);
571
+ return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, import_axios.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
601
572
  },
602
573
  /**
603
574
  * Delete a room by id and disconnect all of its peers.
@@ -610,12 +581,7 @@ var RoomsApiFp = function(configuration) {
610
581
  const localVarAxiosArgs = await localVarAxiosParamCreator.deleteRoom(roomId, options);
611
582
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
612
583
  const localVarOperationServerBasePath = operationServerMap["RoomsApi.deleteRoom"]?.[localVarOperationServerIndex]?.url;
613
- return (axios2, basePath) => createRequestFunction(
614
- localVarAxiosArgs,
615
- import_axios.default,
616
- BASE_PATH,
617
- configuration
618
- )(axios2, localVarOperationServerBasePath || basePath);
584
+ return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, import_axios.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
619
585
  },
620
586
  /**
621
587
  * List all rooms and livestreams.
@@ -627,12 +593,7 @@ var RoomsApiFp = function(configuration) {
627
593
  const localVarAxiosArgs = await localVarAxiosParamCreator.getAllRooms(options);
628
594
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
629
595
  const localVarOperationServerBasePath = operationServerMap["RoomsApi.getAllRooms"]?.[localVarOperationServerIndex]?.url;
630
- return (axios2, basePath) => createRequestFunction(
631
- localVarAxiosArgs,
632
- import_axios.default,
633
- BASE_PATH,
634
- configuration
635
- )(axios2, localVarOperationServerBasePath || basePath);
596
+ return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, import_axios.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
636
597
  },
637
598
  /**
638
599
  * Get a room by id.
@@ -645,12 +606,7 @@ var RoomsApiFp = function(configuration) {
645
606
  const localVarAxiosArgs = await localVarAxiosParamCreator.getRoom(roomId, options);
646
607
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
647
608
  const localVarOperationServerBasePath = operationServerMap["RoomsApi.getRoom"]?.[localVarOperationServerIndex]?.url;
648
- return (axios2, basePath) => createRequestFunction(
649
- localVarAxiosArgs,
650
- import_axios.default,
651
- BASE_PATH,
652
- configuration
653
- )(axios2, localVarOperationServerBasePath || basePath);
609
+ return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, import_axios.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
654
610
  },
655
611
  /**
656
612
  * Issue a fresh connection token for an existing peer.
@@ -664,12 +620,7 @@ var RoomsApiFp = function(configuration) {
664
620
  const localVarAxiosArgs = await localVarAxiosParamCreator.refreshToken(roomId, id, options);
665
621
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
666
622
  const localVarOperationServerBasePath = operationServerMap["RoomsApi.refreshToken"]?.[localVarOperationServerIndex]?.url;
667
- return (axios2, basePath) => createRequestFunction(
668
- localVarAxiosArgs,
669
- import_axios.default,
670
- BASE_PATH,
671
- configuration
672
- )(axios2, localVarOperationServerBasePath || basePath);
623
+ return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, import_axios.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
673
624
  },
674
625
  /**
675
626
  * Subscribe a peer to all current and future tracks published by another peer in the same room.
@@ -684,12 +635,7 @@ var RoomsApiFp = function(configuration) {
684
635
  const localVarAxiosArgs = await localVarAxiosParamCreator.subscribePeer(roomId, id, peerId, options);
685
636
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
686
637
  const localVarOperationServerBasePath = operationServerMap["RoomsApi.subscribePeer"]?.[localVarOperationServerIndex]?.url;
687
- return (axios2, basePath) => createRequestFunction(
688
- localVarAxiosArgs,
689
- import_axios.default,
690
- BASE_PATH,
691
- configuration
692
- )(axios2, localVarOperationServerBasePath || basePath);
638
+ return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, import_axios.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
693
639
  },
694
640
  /**
695
641
  * Subscribe a peer to a specific list of track IDs in the same room.
@@ -701,20 +647,10 @@ var RoomsApiFp = function(configuration) {
701
647
  * @throws {RequiredError}
702
648
  */
703
649
  async subscribeTracks(roomId, id, subscribeTracksRequest, options) {
704
- const localVarAxiosArgs = await localVarAxiosParamCreator.subscribeTracks(
705
- roomId,
706
- id,
707
- subscribeTracksRequest,
708
- options
709
- );
650
+ const localVarAxiosArgs = await localVarAxiosParamCreator.subscribeTracks(roomId, id, subscribeTracksRequest, options);
710
651
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
711
652
  const localVarOperationServerBasePath = operationServerMap["RoomsApi.subscribeTracks"]?.[localVarOperationServerIndex]?.url;
712
- return (axios2, basePath) => createRequestFunction(
713
- localVarAxiosArgs,
714
- import_axios.default,
715
- BASE_PATH,
716
- configuration
717
- )(axios2, localVarOperationServerBasePath || basePath);
653
+ return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, import_axios.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
718
654
  }
719
655
  };
720
656
  };
@@ -723,7 +659,7 @@ var RoomsApi = class extends BaseAPI {
723
659
  * Add a peer to a room and return its connection token.
724
660
  * @summary Create a peer
725
661
  * @param {string} roomId Room id
726
- * @param {PeerConfig} [peerConfig]
662
+ * @param {PeerConfig} [peerConfig]
727
663
  * @param {*} [options] Override http request option.
728
664
  * @throws {RequiredError}
729
665
  * @memberof RoomsApi
@@ -734,7 +670,7 @@ var RoomsApi = class extends BaseAPI {
734
670
  /**
735
671
  * Create a new room with the given configuration.
736
672
  * @summary Create a room
737
- * @param {RoomConfig} [roomConfig]
673
+ * @param {RoomConfig} [roomConfig]
738
674
  * @param {*} [options] Override http request option.
739
675
  * @throws {RequiredError}
740
676
  * @memberof RoomsApi
@@ -836,10 +772,7 @@ var StreamersApiAxiosParamCreator = function(configuration) {
836
772
  */
837
773
  createStreamer: async (streamId, options = {}) => {
838
774
  assertParamExists("createStreamer", "streamId", streamId);
839
- const localVarPath = `/livestream/{stream_id}/streamer`.replace(
840
- `{${"stream_id"}}`,
841
- encodeURIComponent(String(streamId))
842
- );
775
+ const localVarPath = `/livestream/{stream_id}/streamer`.replace(`{${"stream_id"}}`, encodeURIComponent(String(streamId)));
843
776
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
844
777
  let baseOptions;
845
778
  if (configuration) {
@@ -929,12 +862,7 @@ var StreamersApiFp = function(configuration) {
929
862
  const localVarAxiosArgs = await localVarAxiosParamCreator.createStreamer(streamId, options);
930
863
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
931
864
  const localVarOperationServerBasePath = operationServerMap["StreamersApi.createStreamer"]?.[localVarOperationServerIndex]?.url;
932
- return (axios2, basePath) => createRequestFunction(
933
- localVarAxiosArgs,
934
- import_axios.default,
935
- BASE_PATH,
936
- configuration
937
- )(axios2, localVarOperationServerBasePath || basePath);
865
+ return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, import_axios.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
938
866
  },
939
867
  /**
940
868
  * Delete a streamer from a stream and revoke its token.
@@ -948,12 +876,7 @@ var StreamersApiFp = function(configuration) {
948
876
  const localVarAxiosArgs = await localVarAxiosParamCreator.deleteStreamer(streamId, streamerId, options);
949
877
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
950
878
  const localVarOperationServerBasePath = operationServerMap["StreamersApi.deleteStreamer"]?.[localVarOperationServerIndex]?.url;
951
- return (axios2, basePath) => createRequestFunction(
952
- localVarAxiosArgs,
953
- import_axios.default,
954
- BASE_PATH,
955
- configuration
956
- )(axios2, localVarOperationServerBasePath || basePath);
879
+ return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, import_axios.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
957
880
  },
958
881
  /**
959
882
  * Issue a fresh streamer token.
@@ -966,12 +889,7 @@ var StreamersApiFp = function(configuration) {
966
889
  const localVarAxiosArgs = await localVarAxiosParamCreator.generateStreamerToken(roomId, options);
967
890
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
968
891
  const localVarOperationServerBasePath = operationServerMap["StreamersApi.generateStreamerToken"]?.[localVarOperationServerIndex]?.url;
969
- return (axios2, basePath) => createRequestFunction(
970
- localVarAxiosArgs,
971
- import_axios.default,
972
- BASE_PATH,
973
- configuration
974
- )(axios2, localVarOperationServerBasePath || basePath);
892
+ return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, import_axios.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
975
893
  }
976
894
  };
977
895
  };
@@ -1022,10 +940,7 @@ var ViewersApiAxiosParamCreator = function(configuration) {
1022
940
  */
1023
941
  createViewer: async (streamId, options = {}) => {
1024
942
  assertParamExists("createViewer", "streamId", streamId);
1025
- const localVarPath = `/livestream/{stream_id}/viewer`.replace(
1026
- `{${"stream_id"}}`,
1027
- encodeURIComponent(String(streamId))
1028
- );
943
+ const localVarPath = `/livestream/{stream_id}/viewer`.replace(`{${"stream_id"}}`, encodeURIComponent(String(streamId)));
1029
944
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1030
945
  let baseOptions;
1031
946
  if (configuration) {
@@ -1115,12 +1030,7 @@ var ViewersApiFp = function(configuration) {
1115
1030
  const localVarAxiosArgs = await localVarAxiosParamCreator.createViewer(streamId, options);
1116
1031
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1117
1032
  const localVarOperationServerBasePath = operationServerMap["ViewersApi.createViewer"]?.[localVarOperationServerIndex]?.url;
1118
- return (axios2, basePath) => createRequestFunction(
1119
- localVarAxiosArgs,
1120
- import_axios.default,
1121
- BASE_PATH,
1122
- configuration
1123
- )(axios2, localVarOperationServerBasePath || basePath);
1033
+ return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, import_axios.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
1124
1034
  },
1125
1035
  /**
1126
1036
  * Delete a viewer from a stream and revoke its token.
@@ -1134,12 +1044,7 @@ var ViewersApiFp = function(configuration) {
1134
1044
  const localVarAxiosArgs = await localVarAxiosParamCreator.deleteViewer(streamId, viewerId, options);
1135
1045
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1136
1046
  const localVarOperationServerBasePath = operationServerMap["ViewersApi.deleteViewer"]?.[localVarOperationServerIndex]?.url;
1137
- return (axios2, basePath) => createRequestFunction(
1138
- localVarAxiosArgs,
1139
- import_axios.default,
1140
- BASE_PATH,
1141
- configuration
1142
- )(axios2, localVarOperationServerBasePath || basePath);
1047
+ return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, import_axios.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
1143
1048
  },
1144
1049
  /**
1145
1050
  * Issue a fresh viewer token.
@@ -1152,12 +1057,7 @@ var ViewersApiFp = function(configuration) {
1152
1057
  const localVarAxiosArgs = await localVarAxiosParamCreator.generateViewerToken(roomId, options);
1153
1058
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1154
1059
  const localVarOperationServerBasePath = operationServerMap["ViewersApi.generateViewerToken"]?.[localVarOperationServerIndex]?.url;
1155
- return (axios2, basePath) => createRequestFunction(
1156
- localVarAxiosArgs,
1157
- import_axios.default,
1158
- BASE_PATH,
1159
- configuration
1160
- )(axios2, localVarOperationServerBasePath || basePath);
1060
+ return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, import_axios.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
1161
1061
  }
1162
1062
  };
1163
1063
  };
@@ -6295,7 +6195,7 @@ var mapException = (error, entity) => {
6295
6195
  // package.json
6296
6196
  var package_default = {
6297
6197
  name: "@fishjam-cloud/js-server-sdk",
6298
- version: "0.28.0",
6198
+ version: "0.28.1",
6299
6199
  description: "Fishjam server SDK for JavaScript",
6300
6200
  homepage: "https://github.com/fishjam-cloud/js-server-sdk",
6301
6201
  author: "Fishjam Team",
@@ -6648,13 +6548,13 @@ var FishjamClient = class _FishjamClient {
6648
6548
  }
6649
6549
  }
6650
6550
  /**
6651
- * Creates a MoQ token.
6652
- * @returns a MoQ token
6551
+ * Creates MoQ access.
6552
+ * @returns connection details containing the relay URL with the JWT embedded as a `?jwt=` query parameter, and the token itself
6653
6553
  */
6654
- async createMoqToken(config) {
6554
+ async createMoqAccess(config) {
6655
6555
  try {
6656
- const tokenResponse = await this.moqApi.createMoqToken(config);
6657
- return tokenResponse.data;
6556
+ const accessResponse = await this.moqApi.createMoqAccess(config);
6557
+ return accessResponse.data;
6658
6558
  } catch (error) {
6659
6559
  throw mapException(error);
6660
6560
  }