@fastpix/fastpix-node 1.0.0 → 1.0.2

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.
Files changed (2) hide show
  1. package/README.md +21 -21
  2. package/package.json +25 -2
package/README.md CHANGED
@@ -119,7 +119,7 @@ main();
119
119
 
120
120
  #### Upload Media from a URL:
121
121
 
122
- Use the `uploadMediaFromUrl` method to upload media directly from a URL. For detailed configuration options, refer to the [Create media from URL](./docs/VideoOnDemand/UploadMedia.md#method-uploadmediafromurl) API documentation.
122
+ Use the `uploadMediaFromUrl` method to upload media directly from a URL. For detailed configuration options, refer to the [Create media from URL](https://github.com/FastPix/node-sdk/blob/main/docs/VideoOnDemand/UploadMedia.md#method-uploadmediafromurl) API documentation.
123
123
 
124
124
  ```javascript
125
125
  // Define the request payload for uploading media from a URL.
@@ -143,7 +143,7 @@ console.log("Upload Response:", mediaFromUrlResponse);
143
143
 
144
144
  #### Upload Media from a Local Device:
145
145
 
146
- Use the `uploadMediaFromDevice` method to obtain a `signedUrl` and upload media directly from a local device. For more details on configuration options, refer to the [Upload media from device](./docs/VideoOnDemand/UploadMedia.md#method-uploadmediafromdevice) API documentation.
146
+ Use the `uploadMediaFromDevice` method to obtain a `signedUrl` and upload media directly from a local device. For more details on configuration options, refer to the [Upload media from device](https://github.com/FastPix/node-sdk/blob/main/docs/VideoOnDemand/UploadMedia.md#method-uploadmediafromdevice) API documentation.
147
147
 
148
148
  ```javascript
149
149
  // Define the request payload for uploading media from a device.
@@ -166,7 +166,7 @@ console.log("Upload Response:", mediaFromDeviceResponse);
166
166
 
167
167
  #### Get List of All Media:
168
168
 
169
- Use the `getAllMediaAssets` method to fetch a list of all media assets. You can customize the query by modifying parameters such as `limit`, `offset`, and `orderBy`. Refer to the [Get list of all media](./docs/VideoOnDemand/ManageMedia.md#method-getallmediaassets) API documentation for the accepted values.
169
+ Use the `getAllMediaAssets` method to fetch a list of all media assets. You can customize the query by modifying parameters such as `limit`, `offset`, and `orderBy`. Refer to the [Get list of all media](https://github.com/FastPix/node-sdk/blob/main/docs/VideoOnDemand/ManageMedia.md#method-getallmediaassets) API documentation for the accepted values.
170
170
 
171
171
  ```javascript
172
172
  // Define the parameters for fetching media assets in a separate variable.
@@ -182,7 +182,7 @@ console.log("Fetched Media Assets:", mediaAssets);
182
182
 
183
183
  #### Get Media Asset by ID:
184
184
 
185
- Use the `getMediaAssetById` method to retrieve a specific media asset by its ID. Provide `mediaId`of the asset to fetch its details. Refer to the [Get a media by ID](./docs/VideoOnDemand/ManageMedia.md#method-getmediaassetbyid) API documentation for more details.
185
+ Use the `getMediaAssetById` method to retrieve a specific media asset by its ID. Provide `mediaId`of the asset to fetch its details. Refer to the [Get a media by ID](https://github.com/FastPix/node-sdk/blob/main/docs/VideoOnDemand/ManageMedia.md#method-getmediaassetbyid) API documentation for more details.
186
186
 
187
187
  ```javascript
188
188
  // Define the parameter for fetching a specific media asset by ID.
@@ -196,7 +196,7 @@ console.log("Retrieved media asset by ID:", getMediaAsset);
196
196
 
197
197
  #### Update Media Asset:
198
198
 
199
- Use the `updateMediaAsset` method to update metadata or other properties of a specific media asset. Provide the `mediaId` of the asset along with the metadata to be updated. Refer to the [Update a media by ID](./docs/VideoOnDemand/ManageMedia.md#method-updatemediaasset) API documentation for more details.
199
+ Use the `updateMediaAsset` method to update metadata or other properties of a specific media asset. Provide the `mediaId` of the asset along with the metadata to be updated. Refer to the [Update a media by ID](https://github.com/FastPix/node-sdk/blob/main/docs/VideoOnDemand/ManageMedia.md#method-updatemediaasset) API documentation for more details.
200
200
 
201
201
  ```javascript
202
202
  // Define the parameter for specifying the media asset to be updated.
@@ -221,7 +221,7 @@ console.log("Updated Media Asset:", updateMediaAsset);
221
221
 
222
222
  #### Delete Media Asset:
223
223
 
224
- Use the `deleteMediaAsset` method to delete a specific media asset by its ID. Pass the `mediaId` of the asset you want to delete. Refer to the [Delete a media by ID](./docs/VideoOnDemand/ManageMedia.md#method-deletemediaasset) API documentation for more information.
224
+ Use the `deleteMediaAsset` method to delete a specific media asset by its ID. Pass the `mediaId` of the asset you want to delete. Refer to the [Delete a media by ID](https://github.com/FastPix/node-sdk/blob/main/docs/VideoOnDemand/ManageMedia.md#method-deletemediaasset) API documentation for more information.
225
225
 
226
226
  ```javascript
227
227
  // Define the parameter for specifying the media asset to be deleted.
@@ -235,7 +235,7 @@ console.log("Deleted Media Asset:", deleteMediaAsset);
235
235
 
236
236
  #### Get Media Asset Info:
237
237
 
238
- Use the `getMediaAssetInfo` method to retrieve detailed information about a specific media asset. Pass the `mediaId` to fetch its details. Refer to the [Get info of media inputs](./docs/VideoOnDemand/ManageMedia.md#method-getmediaassetinfo) API documentation for more details.
238
+ Use the `getMediaAssetInfo` method to retrieve detailed information about a specific media asset. Pass the `mediaId` to fetch its details. Refer to the [Get info of media inputs](https://github.com/FastPix/node-sdk/blob/main/docs/VideoOnDemand/ManageMedia.md#method-getmediaassetinfo) API documentation for more details.
239
239
 
240
240
  ```javascript
241
241
  // Define the parameter for specifying the media asset whose info is to be retrieved.
@@ -251,7 +251,7 @@ console.log("Media Asset Info:", getMediaInfo);
251
251
 
252
252
  #### Generate Media Playback ID:
253
253
 
254
- Use the `generateMediaPlaybackId` method to generate a playback ID for a specific media asset. You can pass an `mediaId` and configure options such as the `accessPolicy`. For detailed configuration options, refer to the [Create a playback ID](./docs/VideoOnDemand/ManageMediaPlayback.md#method-generatemediaplaybackid) API documentation.
254
+ Use the `generateMediaPlaybackId` method to generate a playback ID for a specific media asset. You can pass an `mediaId` and configure options such as the `accessPolicy`. For detailed configuration options, refer to the [Create a playback ID](https://github.com/FastPix/node-sdk/blob/main/docs/VideoOnDemand/ManageMediaPlayback.md#method-generatemediaplaybackid) API documentation.
255
255
 
256
256
  ```javascript
257
257
  // Define the mediaId and accessPolicy dynamically
@@ -273,7 +273,7 @@ console.log("Playback ID Creation Response:", playbackIdResponse);
273
273
 
274
274
  #### Delete Media Playback ID:
275
275
 
276
- Use the `deleteMediaPlaybackId` method to delete one or more playback IDs associated with a specific media asset. This method allows you to specify both the `mediaId` and the `playbackId` you wish to delete. This method supports deleting a **single playback ID** as a string or **multiple playback IDs** as an array of strings. For detailed configuration options, refer to the [Delete a playback ID](./docs/VideoOnDemand/ManageMediaPlayback.md#method-deletemediaplaybackid) API documentation.
276
+ Use the `deleteMediaPlaybackId` method to delete one or more playback IDs associated with a specific media asset. This method allows you to specify both the `mediaId` and the `playbackId` you wish to delete. This method supports deleting a **single playback ID** as a string or **multiple playback IDs** as an array of strings. For detailed configuration options, refer to the [Delete a playback ID](https://github.com/FastPix/node-sdk/blob/main/docs/VideoOnDemand/ManageMediaPlayback.md#method-deletemediaplaybackid) API documentation.
277
277
 
278
278
  ```javascript
279
279
  const mediaId = "media-id"; // The ID of the media asset for which you want to delete the playback ID.
@@ -297,7 +297,7 @@ console.log("Playback ID Deletion Response:", deletePlaybackResponse);
297
297
 
298
298
  ### 2.1. Start Live Stream:
299
299
 
300
- Use the `initiateLiveStream` method to start a live stream with specific configurations. For detailed configuration options, refer to the [Create a new stream](./docs/Live/CreateLiveStream.md#method-initiatelivestream) API documentation.
300
+ Use the `initiateLiveStream` method to start a live stream with specific configurations. For detailed configuration options, refer to the [Create a new stream](https://github.com/FastPix/node-sdk/blob/main/docs/Live/CreateLiveStream.md#method-initiatelivestream) API documentation.
301
301
 
302
302
  ```javascript
303
303
  const liveStreamRequest = {
@@ -324,7 +324,7 @@ console.log("Live Stream initiated successfully:", generateLiveStream);
324
324
 
325
325
  #### Get List of All Live Streams:
326
326
 
327
- Use the `getAllLiveStreams` method to fetch a list of all live streams. You can customize the query by modifying parameters such as `limit`, `offset`, and `orderBy`. For detailed configuration options, refer to the [Get all live streams](./docs/Live/ManageLiveStreams.md#method-getalllivestreams) API documentation.
327
+ Use the `getAllLiveStreams` method to fetch a list of all live streams. You can customize the query by modifying parameters such as `limit`, `offset`, and `orderBy`. For detailed configuration options, refer to the [Get all live streams](https://github.com/FastPix/node-sdk/blob/main/docs/Live/ManageLiveStreams.md#method-getalllivestreams) API documentation.
328
328
 
329
329
  ```javascript
330
330
  const getAllLiveStreamPagination = {
@@ -341,7 +341,7 @@ console.log("All Live Streams:", getAllLiveStreams);
341
341
 
342
342
  #### Get Live Stream by ID:
343
343
 
344
- Use the `getLiveStreamById` method to retrieve a specific live stream by its ID. Provide the `streamId` of the stream you wish to fetch. For more details, refer to the [Get stream by ID](./docs/Live/ManageLiveStreams.md#method-getlivestreambyid) API documentation.
344
+ Use the `getLiveStreamById` method to retrieve a specific live stream by its ID. Provide the `streamId` of the stream you wish to fetch. For more details, refer to the [Get stream by ID](https://github.com/FastPix/node-sdk/blob/main/docs/Live/ManageLiveStreams.md#method-getlivestreambyid) API documentation.
345
345
 
346
346
  ```javascript
347
347
  const getLiveStreamById = await fastpix.getLiveStreamById({
@@ -353,7 +353,7 @@ console.log("Live Stream Details:", getLiveStreamById);
353
353
 
354
354
  #### Update Live Stream:
355
355
 
356
- Use the `updateLiveStream` method to update a live stream's configuration. Provide the `streamId` of the stream and specify the fields you want to update. For more details, refer to the [Update a stream](./docs/Live/ManageLiveStreams.md#method-updatelivestream) API documentation.
356
+ Use the `updateLiveStream` method to update a live stream's configuration. Provide the `streamId` of the stream and specify the fields you want to update. For more details, refer to the [Update a stream](https://github.com/FastPix/node-sdk/blob/main/docs/Live/ManageLiveStreams.md#method-updatelivestream) API documentation.
357
357
 
358
358
  ```javascript
359
359
  const updateLiveStreamRequest = {
@@ -373,7 +373,7 @@ console.log("Updated Live Stream:", updateLiveStream);
373
373
 
374
374
  #### Delete Live Stream:
375
375
 
376
- Use the `deleteLiveStream` method to delete a live stream by its ID. Provide `streamId` of the stream you want to delete. For more details, refer to the [Delete a stream](./docs/Live/ManageLiveStreams.md#method-deletelivestream) API documentation.
376
+ Use the `deleteLiveStream` method to delete a live stream by its ID. Provide `streamId` of the stream you want to delete. For more details, refer to the [Delete a stream](https://github.com/FastPix/node-sdk/blob/main/docs/Live/ManageLiveStreams.md#method-deletelivestream) API documentation.
377
377
 
378
378
  ```javascript
379
379
  const deleteLiveStream = await fastpix.deleteLiveStream({
@@ -386,7 +386,7 @@ console.log("Deleted Live Stream:", deleteLiveStream);
386
386
 
387
387
  #### Generate Live Stream Playback ID:
388
388
 
389
- Use the `generateLiveStreamPlaybackId` method to generate a playback ID for a live stream. Replace `streamId` with the actual ID of the live stream and specify the desired `accessPolicy`. For more details, refer to the [Create a playback ID](./docs/Live/ManageStreamPlayback.md#method-generatelivestreamplaybackid) API documentation.
389
+ Use the `generateLiveStreamPlaybackId` method to generate a playback ID for a live stream. Replace `streamId` with the actual ID of the live stream and specify the desired `accessPolicy`. For more details, refer to the [Create a playback ID](https://github.com/FastPix/node-sdk/blob/main/docs/Live/ManageStreamPlayback.md#method-generatelivestreamplaybackid) API documentation.
390
390
 
391
391
  ```javascript
392
392
  const generateLiveStreamPlaybackId = await fastpix.generateLiveStreamPlaybackId(
@@ -399,7 +399,7 @@ console.log("Generated Live Stream Playback ID:", generateLiveStreamPlaybackId);
399
399
 
400
400
  #### Delete Live Stream Playback ID:
401
401
 
402
- Use the `deleteLiveStreamPlaybackId` method to remove one or more playback IDs associated with a live stream. This method allows you to specify the `streamId` of the live stream, and the `playbackId` you wish to delete. This method supports deleting a **single playback ID** as a string or **multiple playback IDs** as an array of strings. For more details, refer to the [Delete a playback ID](./docs/Live/ManageStreamPlayback.md#method-deletelivestreamplaybackid) API documentation.
402
+ Use the `deleteLiveStreamPlaybackId` method to remove one or more playback IDs associated with a live stream. This method allows you to specify the `streamId` of the live stream, and the `playbackId` you wish to delete. This method supports deleting a **single playback ID** as a string or **multiple playback IDs** as an array of strings. For more details, refer to the [Delete a playback ID](https://github.com/FastPix/node-sdk/blob/main/docs/Live/ManageStreamPlayback.md#method-deletelivestreamplaybackid) API documentation.
403
403
 
404
404
  ```javascript
405
405
  // Define the streamId and playbackId dynamically
@@ -421,7 +421,7 @@ console.log("Deleted Live Stream Playback ID:", deleteLiveStreamPlaybackId);
421
421
 
422
422
  #### Get Live Stream Playback Policy:
423
423
 
424
- Use the `getLiveStreamPlaybackPolicy` method to retrieve the playback policy for a specific live stream playback ID. Replace `streamId` with the stream's ID and `playbackId` with the actual playback ID to fetch the policy. For more details, refer to the [Get stream's playback ID](./docs/Live/ManageStreamPlayback.md#method-getlivestreamplaybackpolicy) API documentation.
424
+ Use the `getLiveStreamPlaybackPolicy` method to retrieve the playback policy for a specific live stream playback ID. Replace `streamId` with the stream's ID and `playbackId` with the actual playback ID to fetch the policy. For more details, refer to the [Get stream's playback ID](https://github.com/FastPix/node-sdk/blob/main/docs/Live/ManageStreamPlayback.md#method-getlivestreamplaybackpolicy) API documentation.
425
425
 
426
426
  ```javascript
427
427
  const getLiveStreamPlaybackPolicy = await fastpix.getLiveStreamPlaybackPolicy({
@@ -436,7 +436,7 @@ console.log("Live Stream Playback Policy:", getLiveStreamPlaybackPolicy);
436
436
 
437
437
  #### Initiate Live Stream Simulcast:
438
438
 
439
- Use the `initiateLiveStreamSimulcast` method to create a new simulcast for a live stream. Provide the stream ID and simulcast payload with the URL and stream key. For more details, refer to the [Create a simulcast](./docs/Live/ManageStreamSimulcast.md#method-initiatelivestreamsimulcast) API documentation.
439
+ Use the `initiateLiveStreamSimulcast` method to create a new simulcast for a live stream. Provide the stream ID and simulcast payload with the URL and stream key. For more details, refer to the [Create a simulcast](https://github.com/FastPix/node-sdk/blob/main/docs/Live/ManageStreamSimulcast.md#method-initiatelivestreamsimulcast) API documentation.
440
440
 
441
441
  ```javascript
442
442
  const simulcastPayload = {
@@ -457,7 +457,7 @@ console.log("Generate Simulcast:", generateSimulcast);
457
457
 
458
458
  #### Get Live Stream Simulcast:
459
459
 
460
- Use the `getLiveStreamSimulcast` method to retrieve details of a specific simulcast stream. Provide the `streamId` and `simulcastId` of the simulcast you want to fetch. For more details, refer to the [Get a specific simulcast of a stream](./docs/Live/ManageStreamSimulcast.md#method-getlivestreamsimulcast) API documentation.
460
+ Use the `getLiveStreamSimulcast` method to retrieve details of a specific simulcast stream. Provide the `streamId` and `simulcastId` of the simulcast you want to fetch. For more details, refer to the [Get a specific simulcast of a stream](https://github.com/FastPix/node-sdk/blob/main/docs/Live/ManageStreamSimulcast.md#method-getlivestreamsimulcast) API documentation.
461
461
 
462
462
  ```javascript
463
463
  const getLiveSimulcast = await fastpix.getLiveStreamSimulcast({
@@ -470,7 +470,7 @@ console.log("Live Stream Simulcast Details:", getLiveSimulcast);
470
470
 
471
471
  #### Update Live Stream Simulcast:
472
472
 
473
- Use the `updateLiveStreamSimulcast` method to update the configuration of a simulcast stream. Provide the `streamId`, `simulcastId`, and the fields you want to update. For more details, refer to the [Update a specific simulcast of a stream](./docs/Live/ManageStreamSimulcast.md#method-updatelivestreamsimulcast) API documentation.
473
+ Use the `updateLiveStreamSimulcast` method to update the configuration of a simulcast stream. Provide the `streamId`, `simulcastId`, and the fields you want to update. For more details, refer to the [Update a specific simulcast of a stream](https://github.com/FastPix/node-sdk/blob/main/docs/Live/ManageStreamSimulcast.md#method-updatelivestreamsimulcast) API documentation.
474
474
 
475
475
  ```javascript
476
476
  const updateLiveSimulcast = await fastpix.updateLiveStreamSimulcast(
@@ -491,7 +491,7 @@ console.log("Updated Live Stream Simulcast:", updateLiveSimulcast);
491
491
 
492
492
  #### Delete Live Stream Simulcast:
493
493
 
494
- Use the `deleteLiveStreamSimulcast` method to remove a specific simulcast from a live stream. Provide the `streamId` and `simulcastId` for the simulcast you want to delete. For more details, refer to the [Delete a simulcast](./docs/Live/ManageStreamSimulcast.md#method-deletelivestreamsimulcast) API documentation.
494
+ Use the `deleteLiveStreamSimulcast` method to remove a specific simulcast from a live stream. Provide the `streamId` and `simulcastId` for the simulcast you want to delete. For more details, refer to the [Delete a simulcast](https://github.com/FastPix/node-sdk/blob/main/docs/Live/ManageStreamSimulcast.md#method-deletelivestreamsimulcast) API documentation.
495
495
 
496
496
  ```javascript
497
497
  const deleteLiveSimulcast = await fastpix.deleteLiveStreamSimulcast({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fastpix/fastpix-node",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "FastPix API SDK for Node.js, written in TypeScript",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.mjs",
@@ -25,11 +25,34 @@
25
25
  "build:types": "tsc",
26
26
  "build": "npm run format && npm run build:esm && npm run build:cjs && npm run build:types"
27
27
  },
28
+ "keywords": [
29
+ "FastPix API SDK",
30
+ "FastPix Node.js SDK",
31
+ "on-demand media API",
32
+ "signing keys API",
33
+ "Video Data API",
34
+ "Live Video data API",
35
+ "CloudPlayout API",
36
+ "Simulcasting",
37
+ "media playback",
38
+ "live streaming",
39
+ "video analytics SDK",
40
+ "real-time video data",
41
+ "video streaming API",
42
+ "Node.js video API client",
43
+ "cloud video playout",
44
+ "media key generation",
45
+ "video data integration",
46
+ "FastPix on-demand video streaming",
47
+ "FastPix live streaming",
48
+ "video metadata API",
49
+ "FastPix live streaming SDK"
50
+ ],
28
51
  "author": "FastPix, Inc",
29
52
  "license": "Apache-2.0",
30
53
  "devDependencies": {
31
54
  "@types/node": "^22.10.1",
32
- "esbuild": "^0.24.0",
55
+ "esbuild": "^0.25.4",
33
56
  "prettier": "^3.4.2",
34
57
  "ts-node": "^10.9.2",
35
58
  "typescript": "^5.6.3"