@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.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  package_default
3
- } from "./chunk-7QSC3SIL.mjs";
3
+ } from "./chunk-GTNIELH6.mjs";
4
4
 
5
5
  // ../fishjam-openapi/dist/index.js
6
6
  import globalAxios2 from "axios";
@@ -132,12 +132,7 @@ var CredentialsApiFp = function(configuration) {
132
132
  const localVarAxiosArgs = await localVarAxiosParamCreator.validateCredentials(options);
133
133
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
134
134
  const localVarOperationServerBasePath = operationServerMap["CredentialsApi.validateCredentials"]?.[localVarOperationServerIndex]?.url;
135
- return (axios2, basePath) => createRequestFunction(
136
- localVarAxiosArgs,
137
- globalAxios2,
138
- BASE_PATH,
139
- configuration
140
- )(axios2, localVarOperationServerBasePath || basePath);
135
+ return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
141
136
  }
142
137
  };
143
138
  };
@@ -157,13 +152,13 @@ var MoQApiAxiosParamCreator = function(configuration) {
157
152
  return {
158
153
  /**
159
154
  * Issue a short-lived JWT for a Media over QUIC client.
160
- * @summary Create a MoQ token
161
- * @param {MoqTokenConfig} [moqTokenConfig]
155
+ * @summary Create MoQ access
156
+ * @param {MoqAccessConfig} [moqAccessConfig]
162
157
  * @param {*} [options] Override http request option.
163
158
  * @throws {RequiredError}
164
159
  */
165
- createMoqToken: async (moqTokenConfig, options = {}) => {
166
- const localVarPath = `/moq/token`;
160
+ createMoqAccess: async (moqAccessConfig, options = {}) => {
161
+ const localVarPath = `/moq/access`;
167
162
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
168
163
  let baseOptions;
169
164
  if (configuration) {
@@ -177,7 +172,7 @@ var MoQApiAxiosParamCreator = function(configuration) {
177
172
  setSearchParams(localVarUrlObj, localVarQueryParameter);
178
173
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
179
174
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
180
- localVarRequestOptions.data = serializeDataIfNeeded(moqTokenConfig, localVarRequestOptions, configuration);
175
+ localVarRequestOptions.data = serializeDataIfNeeded(moqAccessConfig, localVarRequestOptions, configuration);
181
176
  return {
182
177
  url: toPathString(localVarUrlObj),
183
178
  options: localVarRequestOptions
@@ -190,35 +185,30 @@ var MoQApiFp = function(configuration) {
190
185
  return {
191
186
  /**
192
187
  * Issue a short-lived JWT for a Media over QUIC client.
193
- * @summary Create a MoQ token
194
- * @param {MoqTokenConfig} [moqTokenConfig]
188
+ * @summary Create MoQ access
189
+ * @param {MoqAccessConfig} [moqAccessConfig]
195
190
  * @param {*} [options] Override http request option.
196
191
  * @throws {RequiredError}
197
192
  */
198
- async createMoqToken(moqTokenConfig, options) {
199
- const localVarAxiosArgs = await localVarAxiosParamCreator.createMoqToken(moqTokenConfig, options);
193
+ async createMoqAccess(moqAccessConfig, options) {
194
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createMoqAccess(moqAccessConfig, options);
200
195
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
201
- const localVarOperationServerBasePath = operationServerMap["MoQApi.createMoqToken"]?.[localVarOperationServerIndex]?.url;
202
- return (axios2, basePath) => createRequestFunction(
203
- localVarAxiosArgs,
204
- globalAxios2,
205
- BASE_PATH,
206
- configuration
207
- )(axios2, localVarOperationServerBasePath || basePath);
196
+ const localVarOperationServerBasePath = operationServerMap["MoQApi.createMoqAccess"]?.[localVarOperationServerIndex]?.url;
197
+ return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
208
198
  }
209
199
  };
210
200
  };
211
201
  var MoQApi = class extends BaseAPI {
212
202
  /**
213
203
  * Issue a short-lived JWT for a Media over QUIC client.
214
- * @summary Create a MoQ token
215
- * @param {MoqTokenConfig} [moqTokenConfig]
204
+ * @summary Create MoQ access
205
+ * @param {MoqAccessConfig} [moqAccessConfig]
216
206
  * @param {*} [options] Override http request option.
217
207
  * @throws {RequiredError}
218
208
  * @memberof MoQApi
219
209
  */
220
- createMoqToken(moqTokenConfig, options) {
221
- return MoQApiFp(this.configuration).createMoqToken(moqTokenConfig, options).then((request) => request(this.axios, this.basePath));
210
+ createMoqAccess(moqAccessConfig, options) {
211
+ return MoQApiFp(this.configuration).createMoqAccess(moqAccessConfig, options).then((request) => request(this.axios, this.basePath));
222
212
  }
223
213
  };
224
214
  var RoomsApiAxiosParamCreator = function(configuration) {
@@ -227,7 +217,7 @@ var RoomsApiAxiosParamCreator = function(configuration) {
227
217
  * Add a peer to a room and return its connection token.
228
218
  * @summary Create a peer
229
219
  * @param {string} roomId Room id
230
- * @param {PeerConfig} [peerConfig]
220
+ * @param {PeerConfig} [peerConfig]
231
221
  * @param {*} [options] Override http request option.
232
222
  * @throws {RequiredError}
233
223
  */
@@ -256,7 +246,7 @@ var RoomsApiAxiosParamCreator = function(configuration) {
256
246
  /**
257
247
  * Create a new room with the given configuration.
258
248
  * @summary Create a room
259
- * @param {RoomConfig} [roomConfig]
249
+ * @param {RoomConfig} [roomConfig]
260
250
  * @param {*} [options] Override http request option.
261
251
  * @throws {RequiredError}
262
252
  */
@@ -477,11 +467,7 @@ var RoomsApiAxiosParamCreator = function(configuration) {
477
467
  setSearchParams(localVarUrlObj, localVarQueryParameter);
478
468
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
479
469
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
480
- localVarRequestOptions.data = serializeDataIfNeeded(
481
- subscribeTracksRequest,
482
- localVarRequestOptions,
483
- configuration
484
- );
470
+ localVarRequestOptions.data = serializeDataIfNeeded(subscribeTracksRequest, localVarRequestOptions, configuration);
485
471
  return {
486
472
  url: toPathString(localVarUrlObj),
487
473
  options: localVarRequestOptions
@@ -496,7 +482,7 @@ var RoomsApiFp = function(configuration) {
496
482
  * Add a peer to a room and return its connection token.
497
483
  * @summary Create a peer
498
484
  * @param {string} roomId Room id
499
- * @param {PeerConfig} [peerConfig]
485
+ * @param {PeerConfig} [peerConfig]
500
486
  * @param {*} [options] Override http request option.
501
487
  * @throws {RequiredError}
502
488
  */
@@ -504,17 +490,12 @@ var RoomsApiFp = function(configuration) {
504
490
  const localVarAxiosArgs = await localVarAxiosParamCreator.addPeer(roomId, peerConfig, options);
505
491
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
506
492
  const localVarOperationServerBasePath = operationServerMap["RoomsApi.addPeer"]?.[localVarOperationServerIndex]?.url;
507
- return (axios2, basePath) => createRequestFunction(
508
- localVarAxiosArgs,
509
- globalAxios2,
510
- BASE_PATH,
511
- configuration
512
- )(axios2, localVarOperationServerBasePath || basePath);
493
+ return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
513
494
  },
514
495
  /**
515
496
  * Create a new room with the given configuration.
516
497
  * @summary Create a room
517
- * @param {RoomConfig} [roomConfig]
498
+ * @param {RoomConfig} [roomConfig]
518
499
  * @param {*} [options] Override http request option.
519
500
  * @throws {RequiredError}
520
501
  */
@@ -522,12 +503,7 @@ var RoomsApiFp = function(configuration) {
522
503
  const localVarAxiosArgs = await localVarAxiosParamCreator.createRoom(roomConfig, options);
523
504
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
524
505
  const localVarOperationServerBasePath = operationServerMap["RoomsApi.createRoom"]?.[localVarOperationServerIndex]?.url;
525
- return (axios2, basePath) => createRequestFunction(
526
- localVarAxiosArgs,
527
- globalAxios2,
528
- BASE_PATH,
529
- configuration
530
- )(axios2, localVarOperationServerBasePath || basePath);
506
+ return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
531
507
  },
532
508
  /**
533
509
  * Remove a peer from a room and disconnect it.
@@ -541,12 +517,7 @@ var RoomsApiFp = function(configuration) {
541
517
  const localVarAxiosArgs = await localVarAxiosParamCreator.deletePeer(roomId, id, options);
542
518
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
543
519
  const localVarOperationServerBasePath = operationServerMap["RoomsApi.deletePeer"]?.[localVarOperationServerIndex]?.url;
544
- return (axios2, basePath) => createRequestFunction(
545
- localVarAxiosArgs,
546
- globalAxios2,
547
- BASE_PATH,
548
- configuration
549
- )(axios2, localVarOperationServerBasePath || basePath);
520
+ return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
550
521
  },
551
522
  /**
552
523
  * Delete a room by id and disconnect all of its peers.
@@ -559,12 +530,7 @@ var RoomsApiFp = function(configuration) {
559
530
  const localVarAxiosArgs = await localVarAxiosParamCreator.deleteRoom(roomId, options);
560
531
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
561
532
  const localVarOperationServerBasePath = operationServerMap["RoomsApi.deleteRoom"]?.[localVarOperationServerIndex]?.url;
562
- return (axios2, basePath) => createRequestFunction(
563
- localVarAxiosArgs,
564
- globalAxios2,
565
- BASE_PATH,
566
- configuration
567
- )(axios2, localVarOperationServerBasePath || basePath);
533
+ return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
568
534
  },
569
535
  /**
570
536
  * List all rooms and livestreams.
@@ -576,12 +542,7 @@ var RoomsApiFp = function(configuration) {
576
542
  const localVarAxiosArgs = await localVarAxiosParamCreator.getAllRooms(options);
577
543
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
578
544
  const localVarOperationServerBasePath = operationServerMap["RoomsApi.getAllRooms"]?.[localVarOperationServerIndex]?.url;
579
- return (axios2, basePath) => createRequestFunction(
580
- localVarAxiosArgs,
581
- globalAxios2,
582
- BASE_PATH,
583
- configuration
584
- )(axios2, localVarOperationServerBasePath || basePath);
545
+ return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
585
546
  },
586
547
  /**
587
548
  * Get a room by id.
@@ -594,12 +555,7 @@ var RoomsApiFp = function(configuration) {
594
555
  const localVarAxiosArgs = await localVarAxiosParamCreator.getRoom(roomId, options);
595
556
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
596
557
  const localVarOperationServerBasePath = operationServerMap["RoomsApi.getRoom"]?.[localVarOperationServerIndex]?.url;
597
- return (axios2, basePath) => createRequestFunction(
598
- localVarAxiosArgs,
599
- globalAxios2,
600
- BASE_PATH,
601
- configuration
602
- )(axios2, localVarOperationServerBasePath || basePath);
558
+ return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
603
559
  },
604
560
  /**
605
561
  * Issue a fresh connection token for an existing peer.
@@ -613,12 +569,7 @@ var RoomsApiFp = function(configuration) {
613
569
  const localVarAxiosArgs = await localVarAxiosParamCreator.refreshToken(roomId, id, options);
614
570
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
615
571
  const localVarOperationServerBasePath = operationServerMap["RoomsApi.refreshToken"]?.[localVarOperationServerIndex]?.url;
616
- return (axios2, basePath) => createRequestFunction(
617
- localVarAxiosArgs,
618
- globalAxios2,
619
- BASE_PATH,
620
- configuration
621
- )(axios2, localVarOperationServerBasePath || basePath);
572
+ return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
622
573
  },
623
574
  /**
624
575
  * Subscribe a peer to all current and future tracks published by another peer in the same room.
@@ -633,12 +584,7 @@ var RoomsApiFp = function(configuration) {
633
584
  const localVarAxiosArgs = await localVarAxiosParamCreator.subscribePeer(roomId, id, peerId, options);
634
585
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
635
586
  const localVarOperationServerBasePath = operationServerMap["RoomsApi.subscribePeer"]?.[localVarOperationServerIndex]?.url;
636
- return (axios2, basePath) => createRequestFunction(
637
- localVarAxiosArgs,
638
- globalAxios2,
639
- BASE_PATH,
640
- configuration
641
- )(axios2, localVarOperationServerBasePath || basePath);
587
+ return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
642
588
  },
643
589
  /**
644
590
  * Subscribe a peer to a specific list of track IDs in the same room.
@@ -650,20 +596,10 @@ var RoomsApiFp = function(configuration) {
650
596
  * @throws {RequiredError}
651
597
  */
652
598
  async subscribeTracks(roomId, id, subscribeTracksRequest, options) {
653
- const localVarAxiosArgs = await localVarAxiosParamCreator.subscribeTracks(
654
- roomId,
655
- id,
656
- subscribeTracksRequest,
657
- options
658
- );
599
+ const localVarAxiosArgs = await localVarAxiosParamCreator.subscribeTracks(roomId, id, subscribeTracksRequest, options);
659
600
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
660
601
  const localVarOperationServerBasePath = operationServerMap["RoomsApi.subscribeTracks"]?.[localVarOperationServerIndex]?.url;
661
- return (axios2, basePath) => createRequestFunction(
662
- localVarAxiosArgs,
663
- globalAxios2,
664
- BASE_PATH,
665
- configuration
666
- )(axios2, localVarOperationServerBasePath || basePath);
602
+ return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
667
603
  }
668
604
  };
669
605
  };
@@ -672,7 +608,7 @@ var RoomsApi = class extends BaseAPI {
672
608
  * Add a peer to a room and return its connection token.
673
609
  * @summary Create a peer
674
610
  * @param {string} roomId Room id
675
- * @param {PeerConfig} [peerConfig]
611
+ * @param {PeerConfig} [peerConfig]
676
612
  * @param {*} [options] Override http request option.
677
613
  * @throws {RequiredError}
678
614
  * @memberof RoomsApi
@@ -683,7 +619,7 @@ var RoomsApi = class extends BaseAPI {
683
619
  /**
684
620
  * Create a new room with the given configuration.
685
621
  * @summary Create a room
686
- * @param {RoomConfig} [roomConfig]
622
+ * @param {RoomConfig} [roomConfig]
687
623
  * @param {*} [options] Override http request option.
688
624
  * @throws {RequiredError}
689
625
  * @memberof RoomsApi
@@ -785,10 +721,7 @@ var StreamersApiAxiosParamCreator = function(configuration) {
785
721
  */
786
722
  createStreamer: async (streamId, options = {}) => {
787
723
  assertParamExists("createStreamer", "streamId", streamId);
788
- const localVarPath = `/livestream/{stream_id}/streamer`.replace(
789
- `{${"stream_id"}}`,
790
- encodeURIComponent(String(streamId))
791
- );
724
+ const localVarPath = `/livestream/{stream_id}/streamer`.replace(`{${"stream_id"}}`, encodeURIComponent(String(streamId)));
792
725
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
793
726
  let baseOptions;
794
727
  if (configuration) {
@@ -878,12 +811,7 @@ var StreamersApiFp = function(configuration) {
878
811
  const localVarAxiosArgs = await localVarAxiosParamCreator.createStreamer(streamId, options);
879
812
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
880
813
  const localVarOperationServerBasePath = operationServerMap["StreamersApi.createStreamer"]?.[localVarOperationServerIndex]?.url;
881
- return (axios2, basePath) => createRequestFunction(
882
- localVarAxiosArgs,
883
- globalAxios2,
884
- BASE_PATH,
885
- configuration
886
- )(axios2, localVarOperationServerBasePath || basePath);
814
+ return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
887
815
  },
888
816
  /**
889
817
  * Delete a streamer from a stream and revoke its token.
@@ -897,12 +825,7 @@ var StreamersApiFp = function(configuration) {
897
825
  const localVarAxiosArgs = await localVarAxiosParamCreator.deleteStreamer(streamId, streamerId, options);
898
826
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
899
827
  const localVarOperationServerBasePath = operationServerMap["StreamersApi.deleteStreamer"]?.[localVarOperationServerIndex]?.url;
900
- return (axios2, basePath) => createRequestFunction(
901
- localVarAxiosArgs,
902
- globalAxios2,
903
- BASE_PATH,
904
- configuration
905
- )(axios2, localVarOperationServerBasePath || basePath);
828
+ return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
906
829
  },
907
830
  /**
908
831
  * Issue a fresh streamer token.
@@ -915,12 +838,7 @@ var StreamersApiFp = function(configuration) {
915
838
  const localVarAxiosArgs = await localVarAxiosParamCreator.generateStreamerToken(roomId, options);
916
839
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
917
840
  const localVarOperationServerBasePath = operationServerMap["StreamersApi.generateStreamerToken"]?.[localVarOperationServerIndex]?.url;
918
- return (axios2, basePath) => createRequestFunction(
919
- localVarAxiosArgs,
920
- globalAxios2,
921
- BASE_PATH,
922
- configuration
923
- )(axios2, localVarOperationServerBasePath || basePath);
841
+ return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
924
842
  }
925
843
  };
926
844
  };
@@ -971,10 +889,7 @@ var ViewersApiAxiosParamCreator = function(configuration) {
971
889
  */
972
890
  createViewer: async (streamId, options = {}) => {
973
891
  assertParamExists("createViewer", "streamId", streamId);
974
- const localVarPath = `/livestream/{stream_id}/viewer`.replace(
975
- `{${"stream_id"}}`,
976
- encodeURIComponent(String(streamId))
977
- );
892
+ const localVarPath = `/livestream/{stream_id}/viewer`.replace(`{${"stream_id"}}`, encodeURIComponent(String(streamId)));
978
893
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
979
894
  let baseOptions;
980
895
  if (configuration) {
@@ -1064,12 +979,7 @@ var ViewersApiFp = function(configuration) {
1064
979
  const localVarAxiosArgs = await localVarAxiosParamCreator.createViewer(streamId, options);
1065
980
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1066
981
  const localVarOperationServerBasePath = operationServerMap["ViewersApi.createViewer"]?.[localVarOperationServerIndex]?.url;
1067
- return (axios2, basePath) => createRequestFunction(
1068
- localVarAxiosArgs,
1069
- globalAxios2,
1070
- BASE_PATH,
1071
- configuration
1072
- )(axios2, localVarOperationServerBasePath || basePath);
982
+ return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
1073
983
  },
1074
984
  /**
1075
985
  * Delete a viewer from a stream and revoke its token.
@@ -1083,12 +993,7 @@ var ViewersApiFp = function(configuration) {
1083
993
  const localVarAxiosArgs = await localVarAxiosParamCreator.deleteViewer(streamId, viewerId, options);
1084
994
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1085
995
  const localVarOperationServerBasePath = operationServerMap["ViewersApi.deleteViewer"]?.[localVarOperationServerIndex]?.url;
1086
- return (axios2, basePath) => createRequestFunction(
1087
- localVarAxiosArgs,
1088
- globalAxios2,
1089
- BASE_PATH,
1090
- configuration
1091
- )(axios2, localVarOperationServerBasePath || basePath);
996
+ return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
1092
997
  },
1093
998
  /**
1094
999
  * Issue a fresh viewer token.
@@ -1101,12 +1006,7 @@ var ViewersApiFp = function(configuration) {
1101
1006
  const localVarAxiosArgs = await localVarAxiosParamCreator.generateViewerToken(roomId, options);
1102
1007
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1103
1008
  const localVarOperationServerBasePath = operationServerMap["ViewersApi.generateViewerToken"]?.[localVarOperationServerIndex]?.url;
1104
- return (axios2, basePath) => createRequestFunction(
1105
- localVarAxiosArgs,
1106
- globalAxios2,
1107
- BASE_PATH,
1108
- configuration
1109
- )(axios2, localVarOperationServerBasePath || basePath);
1009
+ return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
1110
1010
  }
1111
1011
  };
1112
1012
  };
@@ -6502,13 +6402,13 @@ var FishjamClient = class _FishjamClient {
6502
6402
  }
6503
6403
  }
6504
6404
  /**
6505
- * Creates a MoQ token.
6506
- * @returns a MoQ token
6405
+ * Creates MoQ access.
6406
+ * @returns connection details containing the relay URL with the JWT embedded as a `?jwt=` query parameter, and the token itself
6507
6407
  */
6508
- async createMoqToken(config) {
6408
+ async createMoqAccess(config) {
6509
6409
  try {
6510
- const tokenResponse = await this.moqApi.createMoqToken(config);
6511
- return tokenResponse.data;
6410
+ const accessResponse = await this.moqApi.createMoqAccess(config);
6411
+ return accessResponse.data;
6512
6412
  } catch (error) {
6513
6413
  throw mapException(error);
6514
6414
  }
@@ -31,7 +31,7 @@ var import_genai = require("@google/genai");
31
31
  // package.json
32
32
  var package_default = {
33
33
  name: "@fishjam-cloud/js-server-sdk",
34
- version: "0.28.0",
34
+ version: "0.28.1",
35
35
  description: "Fishjam server SDK for JavaScript",
36
36
  homepage: "https://github.com/fishjam-cloud/js-server-sdk",
37
37
  author: "Fishjam Team",
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  package_default
3
- } from "../chunk-7QSC3SIL.mjs";
3
+ } from "../chunk-GTNIELH6.mjs";
4
4
 
5
5
  // src/integrations/gemini.ts
6
6
  import { GoogleGenAI } from "@google/genai";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fishjam-cloud/js-server-sdk",
3
- "version": "0.28.0",
3
+ "version": "0.28.1",
4
4
  "description": "Fishjam server SDK for JavaScript",
5
5
  "homepage": "https://github.com/fishjam-cloud/js-server-sdk",
6
6
  "author": "Fishjam Team",
@@ -74,8 +74,8 @@
74
74
  }
75
75
  },
76
76
  "devDependencies": {
77
- "@fishjam-cloud/fishjam-openapi": "0.28.0",
78
- "@fishjam-cloud/fishjam-proto": "0.28.0",
77
+ "@fishjam-cloud/fishjam-openapi": "0.28.1",
78
+ "@fishjam-cloud/fishjam-proto": "0.28.1",
79
79
  "@openapitools/openapi-generator-cli": "^2.18.4",
80
80
  "@types/node": "^22.13.16",
81
81
  "@types/websocket": "^1.0.10",