@fastpix/fastpix-node 2.0.1 → 2.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 (40) hide show
  1. package/README.md +219 -168
  2. package/dist/commonjs/funcs/signingKeysGetSigningKeyById.d.ts +2 -2
  3. package/dist/commonjs/funcs/signingKeysGetSigningKeyById.js +2 -2
  4. package/dist/commonjs/models/operations/getdrmconfiguration.d.ts +2 -2
  5. package/dist/commonjs/models/operations/getdrmconfiguration.d.ts.map +1 -1
  6. package/dist/commonjs/models/operations/getdrmconfiguration.js +2 -2
  7. package/dist/commonjs/models/operations/getdrmconfiguration.js.map +1 -1
  8. package/dist/commonjs/sdk/signingkeys.d.ts +2 -2
  9. package/dist/commonjs/sdk/signingkeys.js +2 -2
  10. package/dist/esm/funcs/signingKeysGetSigningKeyById.d.ts +2 -2
  11. package/dist/esm/funcs/signingKeysGetSigningKeyById.js +2 -2
  12. package/dist/esm/models/operations/getdrmconfiguration.d.ts +2 -2
  13. package/dist/esm/models/operations/getdrmconfiguration.d.ts.map +1 -1
  14. package/dist/esm/models/operations/getdrmconfiguration.js +2 -2
  15. package/dist/esm/models/operations/getdrmconfiguration.js.map +1 -1
  16. package/dist/esm/sdk/signingkeys.d.ts +2 -2
  17. package/dist/esm/sdk/signingkeys.js +2 -2
  18. package/package.json +1 -1
  19. package/samples/ai/ai-features.ts +194 -0
  20. package/samples/analytics/dimensions.ts +113 -0
  21. package/samples/analytics/errors.ts +133 -0
  22. package/samples/analytics/metrics.ts +117 -0
  23. package/samples/analytics/views.ts +120 -0
  24. package/samples/common/config.ts +84 -0
  25. package/samples/common/setup.ts +42 -0
  26. package/samples/comprehensive-example.ts +267 -0
  27. package/samples/index.ts +224 -0
  28. package/samples/live/live-playback.ts +104 -0
  29. package/samples/live/manage-live-stream.ts +176 -0
  30. package/samples/live/start-live-stream.ts +91 -0
  31. package/samples/media/input-video.ts +65 -0
  32. package/samples/media/manage-videos.ts +166 -0
  33. package/samples/media/playback.ts +89 -0
  34. package/samples/media/playlist.ts +201 -0
  35. package/samples/package.json +51 -0
  36. package/samples/security/drm-configurations.ts +125 -0
  37. package/samples/security/signing-keys.ts +154 -0
  38. package/src/funcs/signingKeysGetSigningKeyById.ts +2 -2
  39. package/src/models/operations/getdrmconfiguration.ts +4 -4
  40. package/src/sdk/signingkeys.ts +2 -2
package/README.md CHANGED
@@ -1,53 +1,81 @@
1
- # FastPix Typescript SDK
1
+ # FastPix Node.js SDK
2
2
 
3
- Type-safe and developer-friendly TypeScript SDK for integration with the FastPix platform API.
3
+ A robust, type-safe Node.js SDK designed for seamless integration with the FastPix API platform.
4
4
 
5
- # Introduction
5
+ <!-- Start Summary [summary] -->
6
+ ## Introduction
6
7
 
7
- The FastPix TypeScript SDK simplifies integration with the FastPix platform. It provides a type-safe and developer-friendly interface for secure and efficient communication with the FastPix API, enabling easy management of media uploads, live streaming, on-demand content, playlists, video analytics, and signing keys for secure access and token management. It is intended for use with Node.js (version >= 18)
8
+ The FastPix Node.js SDK simplifies integration with the FastPix platform. It provides a clean, TypeScript interface for secure and efficient communication with the FastPix API, enabling easy management of media uploads, live streaming, ondemand content, playlists, video analytics, and signing keys for secure access and token management. It is intended for use with Node.js 18 and above.
8
9
 
9
- # Key Features
10
+ ## Prerequisites
10
11
 
11
- ## Media API
12
- - **Upload Media**: Seamlessly upload media files from URLs or local devices.
13
- - **Manage Media**: List, fetch, update, and delete media assets with ease.
14
- - **Playback IDs**: Generate and manage playback IDs for secure and flexible media access.
15
- - **Advanced Media Tools**: Generate video summaries, chapters, named entities, subtitles, and perform content moderation.
16
- - **Playlist Management**: Create and manage playlists, add or remove media, and adjust playback order.
17
- - **DRM Support**: Configure and manage DRM settings for protected content.
12
+ ### Environment and Version Support
18
13
 
19
- ## Live API
20
- - **Create & Manage Live Streams**: Effortlessly create, list, update, and delete live streams.
21
- - **Control Stream Access**: Generate playback IDs to manage viewer access securely.
22
- - **Stream Management**: Enable, disable, or complete streams with fine-grained control.
23
- - **Simulcast to Multiple Platforms**: Broadcast live content to multiple platforms simultaneously.
14
+ <table>
15
+ <tr>
16
+ <th>Requirement</th>
17
+ <th>Version</th>
18
+ <th>Description</th>
19
+ </tr>
20
+ <tr>
21
+ <td><strong>Node.js</strong></td>
22
+ <td><code>18+</code></td>
23
+ <td>Core runtime environment</td>
24
+ </tr>
25
+ <tr>
26
+ <td><strong>npm/yarn/pnpm</strong></td>
27
+ <td><code>Latest</code></td>
28
+ <td>Package manager for dependencies</td>
29
+ </tr>
30
+ <tr>
31
+ <td><strong>Internet</strong></td>
32
+ <td><code>Required</code></td>
33
+ <td>API communication and authentication</td>
34
+ </tr>
35
+ </table>
24
36
 
25
- ## Signing Keys
26
- - **Create Signing Keys**: Generate signing keys for secure token-based access.
27
- - **List & Retrieve Keys**: Fetch all keys or get details for a specific key.
28
- - **Manage Keys**: Delete or revoke signing keys to maintain secure access control.
37
+ > **Pro Tip:** We recommend using Node.js 20+ for optimal performance and the latest language features.
29
38
 
30
- ## Video Data API
31
- - **View Analytics**: List video views, get detailed view information, and track top-performing content.
32
- - **Concurrent Viewer Insights**: Access timeseries data for live and on-demand streams.
33
- - **Custom Reporting**: Filter viewers by dimensions, list breakdowns, and compare metrics across datasets.
34
- - **Error Tracking & Diagnostics**: Retrieve logs and analyze errors for proactive monitoring.
39
+ ### Getting Started with FastPix
35
40
 
36
- For detailed usage, refer to the [FastPix API Reference](https://docs.fastpix.io/reference/signingkeys-overview).
41
+ To get started with the **FastPix Node.js SDK**, ensure you have the following:
37
42
 
38
- # Prerequisites:
43
+ - The FastPix APIs are authenticated using a **Username** and a **Password**. You must generate these credentials to use the SDK.
39
44
 
40
- ## Getting started with FastPix:
45
+ - Follow the steps in the [Authentication with Basic Auth](https://docs.fastpix.io/docs/basic-authentication) guide to obtain your credentials.
41
46
 
42
- To get started with the **FastPix Node SDK**, ensure you have the following:
47
+ ### Environment Variables (Optional)
43
48
 
44
- - The FastPix APIs are authenticated using an **Access Token** and a **Secret Key**. You must generate these credentials to use the SDK.
49
+ Configure your FastPix credentials using environment variables for enhanced security and convenience:
45
50
 
46
- - Follow the steps in the [Authentication with Access Tokens](https://docs.fastpix.io/docs/basic-authentication) guide to obtain your credentials.
51
+ ```bash
52
+ # Set your FastPix credentials
53
+ export FASTPIX_USERNAME="your-access-token"
54
+ export FASTPIX_PASSWORD="your-secret-key"
55
+ ```
56
+
57
+ > **Security Note:** Never commit your credentials to version control. Use environment variables or secure credential management systems.
58
+
59
+ <!-- Start Table of Contents [toc] -->
60
+ ## Table of Contents
61
+ <!-- $toc-max-depth=2 -->
62
+ * [Fastpix Node.js SDK](#fastpix-nodejs-sdk)
63
+ * [Setup](#setup)
64
+ * [Example Usage](#example-usage)
65
+ * [Available Resources and Operations](#available-resources-and-operations)
66
+ * [Retries](#retries)
67
+ * [Error Handling](#error-handling)
68
+ * [Server Selection](#server-selection)
69
+ * [Development](#development)
47
70
 
48
- # Installation:
71
+ <!-- End Table of Contents [toc] -->
49
72
 
50
- You can install the FastPix TypeScript SDK using your preferred Node.js package manager:
73
+ <!-- Start Setup [setup] -->
74
+ ## Setup
75
+
76
+ ### Installation
77
+
78
+ Install the FastPix Node.js SDK using your preferred package manager:
51
79
 
52
80
  ```bash
53
81
  npm install @fastpix/fastpix-node
@@ -71,23 +99,48 @@ bun add @fastpix/fastpix-node
71
99
  yarn add @fastpix/fastpix-node
72
100
  ```
73
101
 
74
- ## Requirements
102
+ ### Imports
75
103
 
76
- For supported JavaScript runtimes, please consult [RUNTIMES.md](RUNTIMES.md).
77
- This package is published with CommonJS and ES Modules (ESM) support.
104
+ Import the necessary modules for your FastPix integration:
78
105
 
79
- ## Table of Contents
80
- * [SDK Example Usage](#sdk-example-usage)
81
- * [Available Resources and Operations](#available-resources-and-operations)
82
- * [Retries](#retries)
83
- * [Error Handling](#error-handling)
84
- * [Server Selection](#server-selection)
85
- * [Custom HTTP Client](#custom-http-client)
86
- * [Debugging](#debugging)
87
- * [Detailed Usage](#detailed-usage)
88
- * [Support](#support)
106
+ ```typescript
107
+ // Basic imports
108
+ import { Fastpix } from "@fastpix/fastpix-node";
109
+ import type { CreateMediaRequest } from "@fastpix/fastpix-node/models/operations";
110
+ ```
111
+
112
+ ### Initialization
113
+
114
+ Initialize the FastPix SDK with your credentials:
115
+
116
+ ```typescript
117
+ import { Fastpix } from "@fastpix/fastpix-node";
118
+
119
+ const fastpix = new Fastpix({
120
+ security: {
121
+ username: "your-access-token",
122
+ password: "your-secret-key",
123
+ },
124
+ });
125
+ ```
126
+
127
+ Or using environment variables:
128
+
129
+ ```typescript
130
+ import { Fastpix } from "@fastpix/fastpix-node";
89
131
 
90
- ## SDK Example Usage
132
+ const fastpix = new Fastpix({
133
+ security: {
134
+ username: process.env.FASTPIX_USERNAME,
135
+ password: process.env.FASTPIX_PASSWORD,
136
+ },
137
+ });
138
+ ```
139
+
140
+ <!-- End Setup [setup] -->
141
+
142
+ <!-- Start Example Usage [example-usage] -->
143
+ ## Example Usage
91
144
 
92
145
  ### Example
93
146
 
@@ -97,7 +150,7 @@ import { Fastpix } from "@fastpix/fastpix-node";
97
150
  const fastpix = new Fastpix({
98
151
  security: {
99
152
  username: "your-access-token",
100
- password: "secret-key",
153
+ password: "your-secret-key",
101
154
  },
102
155
  });
103
156
 
@@ -115,135 +168,147 @@ async function run() {
115
168
  accessPolicy: "public",
116
169
  });
117
170
 
118
- console.log(result);
171
+ // handle response
172
+ console.log(result);
173
+
119
174
  }
120
175
 
121
176
  run();
122
-
123
177
  ```
178
+ <!-- End Example Usage [example-usage] -->
124
179
 
180
+ <!-- Start Available Resources and Operations [operations] -->
125
181
  ## Available Resources and Operations
126
182
 
127
- <details open>
128
- <summary>Available methods</summary>
129
-
130
- ### [dimensions](https://github.com/FastPix/node-sdk/blob/main/docs/sdks/dimensions/README.md)
131
-
132
- * [listDimensions](https://github.com/FastPix/node-sdk/blob/main/docs/sdks/dimensions/README.md#listdimensions) - List the dimensions
133
- * [listFilterValuesForDimension](https://github.com/FastPix/node-sdk/blob/main/docs/sdks/dimensions/README.md#listfiltervaluesfordimension) - List the filter values for a dimension
134
-
135
- ### [drmConfigurations](https://github.com/FastPix/node-sdk/blob/main/docs/sdks/drmconfigurations/README.md)
136
-
137
- * [getDrmConfiguration](https://github.com/FastPix/node-sdk/blob/main/docs/sdks/drmconfigurations/README.md#getdrmconfiguration) - Get list of DRM configuration IDs
138
- * [getDrmConfigurationById](https://github.com/FastPix/node-sdk/blob/main/docs/sdks/drmconfigurations/README.md#getdrmconfigurationbyid) - Get DRM configuration by ID
139
-
140
- ### [errors](https://github.com/FastPix/node-sdk/blob/main/docs/sdks/errors/README.md)
141
-
142
- * [listErrors](https://github.com/FastPix/node-sdk/blob/main/docs/sdks/errors/README.md#listerrors) - List errors
183
+ Comprehensive Node.js SDK for FastPix platform integration with full API coverage.
184
+
185
+ ### Media API
186
+
187
+ Upload, manage, and transform video content with comprehensive media management capabilities.
188
+
189
+ For detailed documentation, see [FastPix Video on Demand Overview](https://docs.fastpix.io/docs/video-on-demand-overview).
190
+
191
+ #### Input Video
192
+ - [Create from URL](https://github.com/FastPix/node-sdk/blob/main/docs/sdks/inputvideo/README.md#createmedia) - Upload video content from external URL
193
+ - [Upload from Device](https://github.com/FastPix/node-sdk/blob/main/docs/sdks/inputvideo/README.md#directuploadvideomedia) - Upload video files directly from device
194
+
195
+ #### Manage Videos
196
+ - [List All Media](https://github.com/FastPix/node-sdk/blob/main/docs/sdks/managevideos/README.md#listmedia) - Retrieve complete list of all media files
197
+ - [Get Media by ID](https://github.com/FastPix/node-sdk/blob/main/docs/sdks/managevideos/README.md#getmedia) - Get detailed information for specific media
198
+ - [Update Media](https://github.com/FastPix/node-sdk/blob/main/docs/sdks/managevideos/README.md#updatedmedia) - Modify media metadata and settings
199
+ - [Delete Media](https://github.com/FastPix/node-sdk/blob/main/docs/sdks/managevideos/README.md#deletemedia) - Remove media files from library
200
+ - [Add Track](https://github.com/FastPix/node-sdk/blob/main/docs/sdks/managevideos/README.md#addmediatrack) - Add audio or subtitle tracks to media
201
+ - [Cancel Upload](https://github.com/FastPix/node-sdk/blob/main/docs/sdks/managevideos/README.md#cancelupload) - Stop ongoing media upload process
202
+ - [Update Track](https://github.com/FastPix/node-sdk/blob/main/docs/sdks/managevideos/README.md#updatemediatrack) - Modify existing audio or subtitle tracks
203
+ - [Delete Track](https://github.com/FastPix/node-sdk/blob/main/docs/sdks/managevideos/README.md#deletemediatrack) - Remove audio or subtitle tracks
204
+ - [Generate Subtitles](https://github.com/FastPix/node-sdk/blob/main/docs/sdks/managevideos/README.md#generatesubtitletrack) - Create automatic subtitles for media
205
+ - [Update Source Access](https://github.com/FastPix/node-sdk/blob/main/docs/sdks/managevideos/README.md#updatedsourceaccess) - Control access permissions for media source
206
+ - [Update MP4 Support](https://github.com/FastPix/node-sdk/blob/main/docs/sdks/managevideos/README.md#updatedmp4support) - Configure MP4 download capabilities
207
+ - [Get Input Info](https://github.com/FastPix/node-sdk/blob/main/docs/sdks/managevideos/README.md#retrievemediainputinfo) - Retrieve detailed input information
208
+ - [List Uploads](https://github.com/FastPix/node-sdk/blob/main/docs/sdks/managevideos/README.md#listuploads) - Get all available upload URLs
209
+ - [Get Media Clips](https://github.com/FastPix/node-sdk/blob/main/docs/sdks/managevideos/README.md#getmediaclips) - Retrieve all video clips for media
143
210
 
211
+ #### Playback
212
+ - [Create Playback ID](https://github.com/FastPix/node-sdk/blob/main/docs/sdks/playback/README.md#createmediaplaybackid) - Generate secure playback identifier
213
+ - [Delete Playback ID](https://github.com/FastPix/node-sdk/blob/main/docs/sdks/playback/README.md#deletemediaplaybackid) - Remove playback access
214
+ - [Get Playback ID](https://github.com/FastPix/node-sdk/blob/main/docs/sdks/playback/README.md#getplaybackid) - Retrieve playback configuration details
144
215
 
145
- ### [inputVideo](https://github.com/FastPix/node-sdk/blob/main/docs/sdks/inputvideo/README.md)
216
+ #### Playlist
217
+ - [Create Playlist](https://github.com/FastPix/node-sdk/blob/main/docs/sdks/playlist/README.md#createaplaylist) - Create new video playlist
218
+ - [List Playlists](https://github.com/FastPix/node-sdk/blob/main/docs/sdks/playlist/README.md#getallplaylists) - Get all available playlists
219
+ - [Get Playlist](https://github.com/FastPix/node-sdk/blob/main/docs/sdks/playlist/README.md#getplaylistbyid) - Retrieve specific playlist details
220
+ - [Update Playlist](https://github.com/FastPix/node-sdk/blob/main/docs/sdks/playlist/README.md#updateaplaylist) - Modify playlist settings and metadata
221
+ - [Delete Playlist](https://github.com/FastPix/node-sdk/blob/main/docs/sdks/playlist/README.md#deleteaplaylist) - Remove playlist from library
222
+ - [Add Media](https://github.com/FastPix/node-sdk/blob/main/docs/sdks/playlist/README.md#addmediatoplaylist) - Add media items to playlist
223
+ - [Reorder Media](https://github.com/FastPix/node-sdk/blob/main/docs/sdks/playlist/README.md#changemediaorderinplaylist) - Change order of media in playlist
224
+ - [Remove Media](https://github.com/FastPix/node-sdk/blob/main/docs/sdks/playlist/README.md#deletemediafromplaylist) - Remove media from playlist
146
225
 
147
- * [createMedia](https://github.com/FastPix/node-sdk/blob/main/docs/sdks/inputvideo/README.md#createmedia) - Create media from URL
148
- * [directUploadVideoMedia](https://github.com/FastPix/node-sdk/blob/main/docs/sdks/inputvideo/README.md#directuploadvideomedia) - Upload media from device
226
+ #### Signing Keys
227
+ - [Create Key](https://github.com/FastPix/node-sdk/blob/main/docs/sdks/signingkeys/README.md#createsigningkey) - Generate new signing key pair
228
+ - [List Keys](https://github.com/FastPix/node-sdk/blob/main/docs/sdks/signingkeys/README.md#listsigningkeys) - Get all available signing keys
229
+ - [Delete Key](https://github.com/FastPix/node-sdk/blob/main/docs/sdks/signingkeys/README.md#deletesigningkey) - Remove signing key from system
230
+ - [Get Key](https://github.com/FastPix/node-sdk/blob/main/docs/sdks/signingkeys/README.md#getsigningkeybyid) - Retrieve specific signing key details
149
231
 
150
- ### [inVideoAIFeatures](https://github.com/FastPix/node-sdk/blob/main/docs/sdks/invideoaifeatures/README.md)
232
+ #### DRM Configurations
233
+ - [List DRM Configs](https://github.com/FastPix/node-sdk/blob/main/docs/sdks/drmconfigurations/README.md#getdrmconfiguration) - Get all DRM configuration options
234
+ - [Get DRM Config](https://github.com/FastPix/node-sdk/blob/main/docs/sdks/drmconfigurations/README.md#getdrmconfigurationbyid) - Retrieve specific DRM configuration
151
235
 
152
- * [updateMediaSummary](https://github.com/FastPix/node-sdk/blob/main/docs/sdks/invideoaifeatures/README.md#updatemediasummary) - Generate video summary
153
- * [updateMediaChapters](https://github.com/FastPix/node-sdk/blob/main/docs/sdks/invideoaifeatures/README.md#updatemediachapters) - Generate video chapters
154
- * [updateMediaNamedEntities](https://github.com/FastPix/node-sdk/blob/main/docs/sdks/invideoaifeatures/README.md#updatemedianamedentities) - Generate named entities
155
- * [updateMediaModeration](https://github.com/FastPix/node-sdk/blob/main/docs/sdks/invideoaifeatures/README.md#updatemediamoderation) - Enable video moderation
236
+ ### Live API
156
237
 
157
- ### [livePlayback](https://github.com/FastPix/node-sdk/blob/main/docs/sdks/liveplayback/README.md)
238
+ Stream, manage, and transform live video content with real-time broadcasting capabilities.
158
239
 
159
- * [createPlaybackIdOfStream](https://github.com/FastPix/node-sdk/blob/main/docs/sdks/liveplayback/README.md#createplaybackidofstream) - Create a playbackId
160
- * [deletePlaybackIdOfStream](https://github.com/FastPix/node-sdk/blob/main/docs/sdks/liveplayback/README.md#deleteplaybackidofstream) - Delete a playbackId
161
- * [getLiveStreamPlaybackId](https://github.com/FastPix/node-sdk/blob/main/docs/sdks/liveplayback/README.md#getlivestreamplaybackid) - Get playbackId details
240
+ For detailed documentation, see [FastPix Live Stream Overview](https://docs.fastpix.io/docs/live-stream-overview).
162
241
 
163
- ### [manageLiveStream](https://github.com/FastPix/node-sdk/blob/main/docs/sdks/managelivestream/README.md)
242
+ #### Start Live Stream
243
+ - [Create Stream](https://github.com/FastPix/node-sdk/blob/main/docs/sdks/startlivestream/README.md#createnewstream) - Initialize new live streaming session
164
244
 
165
- * [getAllStreams](https://github.com/FastPix/node-sdk/blob/main/docs/sdks/managelivestream/README.md#getallstreams) - Get all live streams
166
- * [getLiveStreamViewerCountById](https://github.com/FastPix/node-sdk/blob/main/docs/sdks/managelivestream/README.md#getlivestreamviewercountbyid) - Get stream views by ID
167
- * [getLiveStreamById](https://github.com/FastPix/node-sdk/blob/main/docs/sdks/managelivestream/README.md#getlivestreambyid) - Get stream by ID
168
- * [deleteLiveStream](https://github.com/FastPix/node-sdk/blob/main/docs/sdks/managelivestream/README.md#deletelivestream) - Delete a stream
169
- * [updateLiveStream](https://github.com/FastPix/node-sdk/blob/main/docs/sdks/managelivestream/README.md#updatelivestream) - Update a stream
170
- * [enableLiveStream](https://github.com/FastPix/node-sdk/blob/main/docs/sdks/managelivestream/README.md#enablelivestream) - Enable a stream
171
- * [disableLiveStream](https://github.com/FastPix/node-sdk/blob/main/docs/sdks/managelivestream/README.md#disablelivestream) - Disable a stream
172
- * [completeLiveStream](https://github.com/FastPix/node-sdk/blob/main/docs/sdks/managelivestream/README.md#completelivestream) - Complete a stream
245
+ #### Manage Live Stream
246
+ - [List Streams](https://github.com/FastPix/node-sdk/blob/main/docs/sdks/managelivestream/README.md#getallstreams) - Retrieve all active live streams
247
+ - [Get Viewer Count](https://github.com/FastPix/node-sdk/blob/main/docs/sdks/managelivestream/README.md#getlivestreamviewercountbyid) - Get real-time viewer statistics
248
+ - [Get Stream](https://github.com/FastPix/node-sdk/blob/main/docs/sdks/managelivestream/README.md#getlivestreambyid) - Retrieve detailed stream information
249
+ - [Delete Stream](https://github.com/FastPix/node-sdk/blob/main/docs/sdks/managelivestream/README.md#deletelivestream) - Terminate and remove live stream
250
+ - [Update Stream](https://github.com/FastPix/node-sdk/blob/main/docs/sdks/managelivestream/README.md#updatelivestream) - Modify stream settings and configuration
251
+ - [Enable Stream](https://github.com/FastPix/node-sdk/blob/main/docs/sdks/managelivestream/README.md#enablelivestream) - Activate live streaming
252
+ - [Disable Stream](https://github.com/FastPix/node-sdk/blob/main/docs/sdks/managelivestream/README.md#disablelivestream) - Pause live streaming
253
+ - [Complete Stream](https://github.com/FastPix/node-sdk/blob/main/docs/sdks/managelivestream/README.md#completelivestream) - Finalize and archive stream
173
254
 
174
- ### [manageVideos](https://github.com/FastPix/node-sdk/blob/main/docs/sdks/managevideos/README.md)
255
+ #### Live Playback
256
+ - [Create Playback ID](https://github.com/FastPix/node-sdk/blob/main/docs/sdks/liveplayback/README.md#createplaybackidofstream) - Generate secure live playback access
257
+ - [Delete Playback ID](https://github.com/FastPix/node-sdk/blob/main/docs/sdks/liveplayback/README.md#deleteplaybackidofstream) - Revoke live playback access
258
+ - [Get Playback ID](https://github.com/FastPix/node-sdk/blob/main/docs/sdks/liveplayback/README.md#getlivestreamplaybackid) - Retrieve live playback configuration
175
259
 
176
- * [listMedia](https://github.com/FastPix/node-sdk/blob/main/docs/sdks/managevideos/README.md#listmedia) - Get list of all media
177
- * [listLiveClips](https://github.com/FastPix/node-sdk/blob/main/docs/sdks/managevideos/README.md#listliveclips) - Get all clips of a live stream
178
- * [getMedia](https://github.com/FastPix/node-sdk/blob/main/docs/sdks/managevideos/README.md#getmedia) - Get a media by ID
179
- * [updatedMedia](https://github.com/FastPix/node-sdk/blob/main/docs/sdks/managevideos/README.md#updatedmedia) - Update a media by ID
180
- * [deleteMedia](https://github.com/FastPix/node-sdk/blob/main/docs/sdks/managevideos/README.md#deletemedia) - Delete a media by ID
181
- * [addMediaTrack](https://github.com/FastPix/node-sdk/blob/main/docs/sdks/managevideos/README.md#addmediatrack) - Add audio / subtitle track
182
- * [cancelUpload](https://github.com/FastPix/node-sdk/blob/main/docs/sdks/managevideos/README.md#cancelupload) - Cancel ongoing upload
183
- * [updateMediaTrack](https://github.com/FastPix/node-sdk/blob/main/docs/sdks/managevideos/README.md#updatemediatrack) - Update audio / subtitle track
184
- * [deleteMediaTrack](https://github.com/FastPix/node-sdk/blob/main/docs/sdks/managevideos/README.md#deletemediatrack) - Delete audio / subtitle track
185
- * [generateSubtitleTrack](https://github.com/FastPix/node-sdk/blob/main/docs/sdks/managevideos/README.md#generatesubtitletrack) - Generate track subtitle
186
- * [updatedSourceAccess](https://github.com/FastPix/node-sdk/blob/main/docs/sdks/managevideos/README.md#updatedsourceaccess) - Update the source access of a media by ID
187
- * [updatedMp4Support](https://github.com/FastPix/node-sdk/blob/main/docs/sdks/managevideos/README.md#updatedmp4support) - Update the mp4Support of a media by ID
188
- * [retrieveMediaInputInfo](https://github.com/FastPix/node-sdk/blob/main/docs/sdks/managevideos/README.md#retrievemediainputinfo) - Get info of media inputs
189
- * [listUploads](https://github.com/FastPix/node-sdk/blob/main/docs/sdks/managevideos/README.md#listuploads) - Get all unused upload URLs
190
- * [getMediaClips](https://github.com/FastPix/node-sdk/blob/main/docs/sdks/managevideos/README.md#getmediaclips) - Get all clips of a media
260
+ #### Simulcast Stream
261
+ - [Create Simulcast](https://github.com/FastPix/node-sdk/blob/main/docs/sdks/simulcaststream/README.md#createsimulcastofstream) - Set up multi-platform streaming
262
+ - [Delete Simulcast](https://github.com/FastPix/node-sdk/blob/main/docs/sdks/simulcaststream/README.md#deletesimulcastofstream) - Remove simulcast configuration
263
+ - [Get Simulcast](https://github.com/FastPix/node-sdk/blob/main/docs/sdks/simulcaststream/README.md#getspecificsimulcastofstream) - Retrieve simulcast settings
264
+ - [Update Simulcast](https://github.com/FastPix/node-sdk/blob/main/docs/sdks/simulcaststream/README.md#updatespecificsimulcastofstream) - Modify simulcast parameters
191
265
 
192
- ### [metrics](https://github.com/FastPix/node-sdk/blob/main/docs/sdks/metrics/README.md)
266
+ ### Video Data API
193
267
 
194
- * [listBreakdownValues](https://github.com/FastPix/node-sdk/blob/main/docs/sdks/metrics/README.md#listbreakdownvalues) - List breakdown values
195
- * [listOverallValues](https://github.com/FastPix/node-sdk/blob/main/docs/sdks/metrics/README.md#listoverallvalues) - List overall values
196
- * [getTimeseriesData](https://github.com/FastPix/node-sdk/blob/main/docs/sdks/metrics/README.md#gettimeseriesdata) - Get timeseries data
197
- * [listComparisonValues](https://github.com/FastPix/node-sdk/blob/main/docs/sdks/metrics/README.md#listcomparisonvalues) - List comparison values
268
+ Monitor video performance and quality with comprehensive analytics and real-time metrics.
198
269
 
199
- ### [playback](https://github.com/FastPix/node-sdk/blob/main/docs/sdks/playback/README.md)
270
+ For detailed documentation, see [FastPix Video Data Overview](https://docs.fastpix.io/docs/video-data-overview).
200
271
 
201
- * [createMediaPlaybackId](https://github.com/FastPix/node-sdk/blob/main/docs/sdks/playback/README.md#createmediaplaybackid) - Create a playback ID
202
- * [deleteMediaPlaybackId](https://github.com/FastPix/node-sdk/blob/main/docs/sdks/playback/README.md#deletemediaplaybackid) - Delete a playback ID
203
- * [getPlaybackId](https://github.com/FastPix/node-sdk/blob/main/docs/sdks/playback/README.md#getplaybackid) - Get a playback ID
272
+ #### Metrics
273
+ - [List Breakdown Values](https://github.com/FastPix/node-sdk/blob/main/docs/sdks/metrics/README.md#listbreakdownvalues) - Get detailed breakdown of metrics by dimension
274
+ - [List Overall Values](https://github.com/FastPix/node-sdk/blob/main/docs/sdks/metrics/README.md#listoverallvalues) - Get aggregated metric values across all content
275
+ - [Get Timeseries Data](https://github.com/FastPix/node-sdk/blob/main/docs/sdks/metrics/README.md#gettimeseriesdata) - Retrieve time-based metric trends and patterns
276
+ - [List Comparison Values](https://github.com/FastPix/node-sdk/blob/main/docs/sdks/metrics/README.md#listcomparisonvalues) - Compare metrics across different time periods
204
277
 
205
- ### [playlist](https://github.com/FastPix/node-sdk/blob/main/docs/sdks/playlist/README.md)
278
+ #### Views
279
+ - [List Video Views](https://github.com/FastPix/node-sdk/blob/main/docs/sdks/views/README.md#listvideoviews) - Get comprehensive list of video viewing sessions
280
+ - [Get View Details](https://github.com/FastPix/node-sdk/blob/main/docs/sdks/views/README.md#getvideoviewdetails) - Retrieve detailed information about specific video views
281
+ - [List Top Content](https://github.com/FastPix/node-sdk/blob/main/docs/sdks/views/README.md#listbytopcontent) - Find your most popular and engaging content
282
+ - [Get Concurrent Viewers](https://github.com/FastPix/node-sdk/blob/main/docs/sdks/views/README.md#getdataviewlistcurrentviewsgettimeseriesviews) - Monitor real-time viewer counts over time
283
+ - [Get Viewer Breakdown](https://github.com/FastPix/node-sdk/blob/main/docs/sdks/views/README.md#getdataviewlistcurrentviewsfilter) - Analyze viewers by device, location, and other dimensions
206
284
 
207
- * [createAPlaylist](https://github.com/FastPix/node-sdk/blob/main/docs/sdks/playlist/README.md#createaplaylist) - Create a new playlist
208
- * [getAllPlaylists](https://github.com/FastPix/node-sdk/blob/main/docs/sdks/playlist/README.md#getallplaylists) - Get all playlists
209
- * [getPlaylistById](https://github.com/FastPix/node-sdk/blob/main/docs/sdks/playlist/README.md#getplaylistbyid) - Get a playlist by ID
210
- * [updateAPlaylist](https://github.com/FastPix/node-sdk/blob/main/docs/sdks/playlist/README.md#updateaplaylist) - Update a playlist by ID
211
- * [deleteAPlaylist](https://github.com/FastPix/node-sdk/blob/main/docs/sdks/playlist/README.md#deleteaplaylist) - Delete a playlist by ID
212
- * [addMediaToPlaylist](https://github.com/FastPix/node-sdk/blob/main/docs/sdks/playlist/README.md#addmediatoplaylist) - Add media to a playlist by ID
213
- * [changeMediaOrderInPlaylist](https://github.com/FastPix/node-sdk/blob/main/docs/sdks/playlist/README.md#changemediaorderinplaylist) - Change media order in a playlist by ID
214
- * [deleteMediaFromPlaylist](https://github.com/FastPix/node-sdk/blob/main/docs/sdks/playlist/README.md#deletemediafromplaylist) - Delete media in a playlist by ID
285
+ #### Dimensions
286
+ - [List Dimensions](https://github.com/FastPix/node-sdk/blob/main/docs/sdks/dimensions/README.md#listdimensions) - Get available data dimensions for filtering and analysis
287
+ - [List Filter Values](https://github.com/FastPix/node-sdk/blob/main/docs/sdks/dimensions/README.md#listfiltervaluesfordimension) - Get specific values for a particular dimension
288
+
289
+ ### In-Video AI Features
290
+
291
+ Enhance video content with AI-powered features including moderation, summarization, and intelligent categorization.
292
+
293
+ For detailed documentation, see [Video Moderation Guide](https://docs.fastpix.io/docs/using-nsfw-and-profanity-filter-for-video-moderation).
294
+
295
+ - [Generate Summary](https://github.com/FastPix/node-sdk/blob/main/docs/sdks/invideoaifeatures/README.md#updatemediasummary) - Create AI-generated video summaries
296
+ - [Create Chapters](https://github.com/FastPix/node-sdk/blob/main/docs/sdks/invideoaifeatures/README.md#updatemediachapters) - Automatically generate video chapter markers
297
+ - [Extract Entities](https://github.com/FastPix/node-sdk/blob/main/docs/sdks/invideoaifeatures/README.md#updatemedianamedentities) - Identify and extract named entities from content
298
+ - [Enable Moderation](https://github.com/FastPix/node-sdk/blob/main/docs/sdks/invideoaifeatures/README.md#updatemediamoderation) - Activate content moderation and safety checks
299
+
300
+ ### Error Handling
301
+
302
+ Handle and manage errors with comprehensive error handling capabilities and detailed error information for all API operations.
215
303
 
216
- ### [signingKeys](https://github.com/FastPix/node-sdk/blob/main/docs/sdks/signingkeys/README.md)
304
+ - [List Errors](https://github.com/FastPix/node-sdk/blob/main/docs/sdks/errors/README.md#listerrors) - Retrieve comprehensive error logs and diagnostics
217
305
 
218
- * [createSigningKey](https://github.com/FastPix/node-sdk/blob/main/docs/sdks/signingkeys/README.md#createsigningkey) - Create a signing key
219
- * [listSigningKeys](https://github.com/FastPix/node-sdk/blob/main/docs/sdks/signingkeys/README.md#listsigningkeys) - Get list of signing key
220
- * [deleteSigningKey](https://github.com/FastPix/node-sdk/blob/main/docs/sdks/signingkeys/README.md#deletesigningkey) - Delete a signing key
221
- * [getSigningKeyById](https://github.com/FastPix/node-sdk/blob/main/docs/sdks/signingkeys/README.md#getsigningkeybyid) - Get signing key by ID
222
-
223
- ### [simulcastStream](https://github.com/FastPix/node-sdk/blob/main/docs/sdks/simulcaststream/README.md)
224
-
225
- * [createSimulcastOfStream](https://github.com/FastPix/node-sdk/blob/main/docs/sdks/simulcaststream/README.md#createsimulcastofstream) - Create a simulcast
226
- * [deleteSimulcastOfStream](https://github.com/FastPix/node-sdk/blob/main/docs/sdks/simulcaststream/README.md#deletesimulcastofstream) - Delete a simulcast
227
- * [getSpecificSimulcastOfStream](https://github.com/FastPix/node-sdk/blob/main/docs/sdks/simulcaststream/README.md#getspecificsimulcastofstream) - Get a specific simulcast
228
- * [updateSpecificSimulcastOfStream](https://github.com/FastPix/node-sdk/blob/main/docs/sdks/simulcaststream/README.md#updatespecificsimulcastofstream) - Update a simulcast
229
-
230
- ### [startLiveStream](https://github.com/FastPix/node-sdk/blob/main/docs/sdks/startlivestream/README.md)
231
-
232
- * [createNewStream](https://github.com/FastPix/node-sdk/blob/main/docs/sdks/startlivestream/README.md#createnewstream) - Create a new stream
233
-
234
- ### [views](https://github.com/FastPix/node-sdk/blob/main/docs/sdks/views/README.md)
235
-
236
- * [listVideoViews](https://github.com/FastPix/node-sdk/blob/main/docs/sdks/views/README.md#listvideoviews) - List video views
237
- * [getVideoViewDetails](https://github.com/FastPix/node-sdk/blob/main/docs/sdks/views/README.md#getvideoviewdetails) - Get details of video view
238
- * [listByTopContent](https://github.com/FastPix/node-sdk/blob/main/docs/sdks/views/README.md#listbytopcontent) - List by top content
239
- * [getDataViewlistCurrentViewsGetTimeseriesViews](https://github.com/FastPix/node-sdk/blob/main/docs/sdks/views/README.md#getdataviewlistcurrentviewsgettimeseriesviews) - Get concurrent viewers timeseries
240
- * [getDataViewlistCurrentViewsFilter](https://github.com/FastPix/node-sdk/blob/main/docs/sdks/views/README.md#getdataviewlistcurrentviewsfilter) - Get concurrent viewers breakdown by dimension
241
-
242
- </details>
306
+ <!-- End Available Resources and Operations [operations] -->
243
307
 
308
+ <!-- Start Retries [retries] -->
244
309
  ## Retries
245
310
 
246
- Some of the endpoints in this SDK support retries. If you use the SDK without any configuration, it will fall back to the default retry strategy provided by the API. However, the default retry strategy can be overridden on a per-operation basis, or across the entire SDK.
311
+ Some of the endpoints in this SDK support retries. If you use the SDK without any configuration, it will fall back to the default retry strategy provided by the API. However, the default retry strategy can be overridden on a per-operation basis, or across the entire SDK.
247
312
 
248
313
  To change the default retry strategy for a single API call, simply provide a retryConfig object to the call:
249
314
  ```typescript
@@ -523,29 +588,15 @@ httpClient.addHook("requestError", (error, request) => {
523
588
  const sdk = new Fastpix({ httpClient: httpClient });
524
589
  ```
525
590
 
526
- ## Debugging
527
-
528
- You can setup your SDK to emit debug logs for SDK requests and responses.
591
+ # Development
529
592
 
530
- You can pass a logger that matches `console`'s interface as an SDK option.
593
+ This Node.js SDK is programmatically generated from our API specifications. Any manual modifications to internal files will be overwritten during subsequent generation cycles.
531
594
 
532
- Beware that debug logging will reveal secrets, like API tokens in headers, in log messages printed to a console or files. It's recommended to use this feature only during local development and not in production.
533
-
534
- ```typescript
535
- import { Fastpix } from "@fastpix/fastpix-node";
536
-
537
- const sdk = new Fastpix({ debugLogger: console });
538
- ```
539
-
540
- You can also enable a default debug logger by setting an environment variable `FASTPIX_DEBUG` to true.
595
+ We value community contributions and feedback. Feel free to submit pull requests or open issues with your suggestions, and we'll do our best to include them in future releases.
541
596
 
542
597
  ## Detailed Usage
543
598
 
544
- For a complete understanding of each API's functionality, including request and response details, parameter descriptions, and additional examples, please refer to the [FastPix API Reference](https://docs.fastpix.io/reference/signingkeys-overview).
545
-
546
- The API reference provides comprehensive documentation for all available endpoints and features, ensuring developers can integrate and utilize FastPix APIs efficiently.
547
-
548
- ## Support
599
+ For comprehensive understanding of each API's functionality, including detailed request and response specifications, parameter descriptions, and additional examples, please refer to the [FastPix API Reference](https://docs.fastpix.io/reference/signingkeys-overview).
549
600
 
550
- If you have any queries, please reach out to **support@fastpix.io**.
601
+ The API reference offers complete documentation for all available endpoints and features, enabling developers to integrate and leverage FastPix APIs effectively.
551
602
 
@@ -23,8 +23,8 @@ import { Result } from "../types/fp.js";
23
23
  *
24
24
  * ```
25
25
  * {
26
- * "kid": "359302ee-2446-4afe-9348-8b4656b9ddb1",
27
- * "aud": "media:6cee6f85-9334-4a51-9ce3-e0241d94ceef",
26
+ * "kid": "your-signing-key-id",
27
+ * "aud": "media:your-media-id",
28
28
  * "iss": "fastpix.io",
29
29
  * "sub": "",
30
30
  * "iat": 1706703204,
@@ -58,8 +58,8 @@ const async_js_1 = require("../types/async.js");
58
58
  *
59
59
  * ```
60
60
  * {
61
- * "kid": "359302ee-2446-4afe-9348-8b4656b9ddb1",
62
- * "aud": "media:6cee6f85-9334-4a51-9ce3-e0241d94ceef",
61
+ * "kid": "your-signing-key-id",
62
+ * "aud": "media:your-media-id",
63
63
  * "iss": "fastpix.io",
64
64
  * "sub": "",
65
65
  * "iat": 1706703204,
@@ -17,7 +17,7 @@ export type GetDrmConfigurationRequest = {
17
17
  */
18
18
  export type GetDrmConfigurationResponse = {
19
19
  success?: boolean | undefined;
20
- data?: Array<models.DrmIdResponse> | undefined;
20
+ data?: models.DrmIdResponse | undefined;
21
21
  /**
22
22
  * Pagination organizes content into pages for better readability and navigation.
23
23
  */
@@ -51,7 +51,7 @@ export declare const GetDrmConfigurationResponse$inboundSchema: z.ZodType<GetDrm
51
51
  /** @internal */
52
52
  export type GetDrmConfigurationResponse$Outbound = {
53
53
  success?: boolean | undefined;
54
- data?: Array<models.DrmIdResponse$Outbound> | undefined;
54
+ data?: models.DrmIdResponse$Outbound | undefined;
55
55
  pagination?: models.Pagination$Outbound | undefined;
56
56
  };
57
57
  /** @internal */
@@ -1 +1 @@
1
- {"version":3,"file":"getdrmconfiguration.d.ts","sourceRoot":"","sources":["../../../../src/models/operations/getdrmconfiguration.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,KAAK,MAAM,MAAM,aAAa,CAAC;AAEtC,MAAM,MAAM,0BAA0B,GAAG;IACvC;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC5B,CAAC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AC9B,IAAI,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,sBAAsB,CAAC,GAAG,SAAS,CAAC;IACxD,UAAU,CAAC,EAAE,MAAM,CAAC,mBAAmB,GAAG,SAAS,CAAC;CACrD,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,0CAA0C,EAAE,CAAC,CAAC,OAAO,CAChE,oCAAoC,EACpC,CAAC,CAAC,UAAU,EACZ,2BAA2B,CAK3B,CAAC;AAEH;;;GAGG;AACH,yBAAiB,4BAA4B,CAAC;IAC5C,2EAA2E;IACpE,MAAM,aAAa,+DAA4C,CAAC;IACvE,4EAA4E;IACrE,MAAM,cAAc,4FAA6C,CAAC;IACzE,sEAAsE;IACtE,KAAY,QAAQ,GAAG,oCAAoC,CAAC;CAC7D;AAED,wBAAgB,iCAAiC,CAC/C,2BAA2B,EAAE,2BAA2B,GACvD,MAAM,CAMR;AAED,wBAAgB,mCAAmC,CACjD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,2BAA2B,EAAE,kBAAkB,CAAC,CAMlE"}
1
+ {"version":3,"file":"getdrmconfiguration.d.ts","sourceRoot":"","sources":["../../../../src/models/operations/getdrmconfiguration.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,KAAK,MAAM,MAAM,aAAa,CAAC;AAEtC,MAAM,MAAM,0BAA0B,GAAG;IACvC;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC5B,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,2BAA2B,GAAG;IACxC,OAAO,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC9B,IAAI,CAAC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CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,0CAA0C,EAAE,CAAC,CAAC,OAAO,CAChE,oCAAoC,EACpC,CAAC,CAAC,UAAU,EACZ,2BAA2B,CAK3B,CAAC;AAEH;;;GAGG;AACH,yBAAiB,4BAA4B,CAAC;IAC5C,2EAA2E;IACpE,MAAM,aAAa,+DAA4C,CAAC;IACvE,4EAA4E;IACrE,MAAM,cAAc,4FAA6C,CAAC;IACzE,sEAAsE;IACtE,KAAY,QAAQ,GAAG,oCAAoC,CAAC;CAC7D;AAED,wBAAgB,iCAAiC,CAC/C,2BAA2B,EAAE,2BAA2B,GACvD,MAAM,CAMR;AAED,wBAAgB,mCAAmC,CACjD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,2BAA2B,EAAE,kBAAkB,CAAC,CAMlE"}
@@ -71,13 +71,13 @@ function getDrmConfigurationRequestFromJSON(jsonString) {
71
71
  /** @internal */
72
72
  exports.GetDrmConfigurationResponse$inboundSchema = z.object({
73
73
  success: z.boolean().optional(),
74
- data: z.array(models.DrmIdResponse$inboundSchema).optional(),
74
+ data: models.DrmIdResponse$inboundSchema.optional(),
75
75
  pagination: models.Pagination$inboundSchema.optional(),
76
76
  });
77
77
  /** @internal */
78
78
  exports.GetDrmConfigurationResponse$outboundSchema = z.object({
79
79
  success: z.boolean().optional(),
80
- data: z.array(models.DrmIdResponse$outboundSchema).optional(),
80
+ data: models.DrmIdResponse$outboundSchema.optional(),
81
81
  pagination: models.Pagination$outboundSchema.optional(),
82
82
  });
83
83
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"getdrmconfiguration.js","sourceRoot":"","sources":["../../../../src/models/operations/getdrmconfiguration.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoEA,4EAMC;AAED,gFAQC;AA4CD,8EAQC;AAED,kFAQC;AAlJD,uCAAyB;AACzB,qDAAiD;AAGjD,oDAAsC;AAyBtC,gBAAgB;AACH,QAAA,wCAAwC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B,CAAC,QAAQ,EAAE;IACnD,UAAU,EAAE,MAAM,CAAC,wBAAwB,CAAC,QAAQ,EAAE;CACvD,CAAC,CAAC;AASH,gBAAgB;AACH,QAAA,0CAA0C,GAInD,CAAC,CAAC,MAAM,CAAC;IACX,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IAC/B,IAAI,EAAE,MAAM,CAAC,4BAA4B,CAAC,QAAQ,EAAE;IACpD,UAAU,EAAE,MAAM,CAAC,yBAAyB,CAAC,QAAQ,EAAE;CACxD,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,4BAA4B,CAO5C;AAPD,WAAiB,4BAA4B;IAC3C,2EAA2E;IAC9D,0CAAa,GAAG,iDAAyC,CAAC;IACvE,4EAA4E;IAC/D,2CAAc,GAAG,kDAA0C,CAAC;AAG3E,CAAC,EAPgB,4BAA4B,4CAA5B,4BAA4B,QAO5C;AAED,SAAgB,iCAAiC,CAC/C,2BAAwD;IAExD,OAAO,IAAI,CAAC,SAAS,CACnB,kDAA0C,CAAC,KAAK,CAC9C,2BAA2B,CAC5B,CACF,CAAC;AACJ,CAAC;AAED,SAAgB,mCAAmC,CACjD,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,iDAAyC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACrE,yDAAyD,CAC1D,CAAC;AACJ,CAAC"}
@@ -73,8 +73,8 @@ export declare class SigningKeys extends ClientSDK {
73
73
  *
74
74
  * ```
75
75
  * {
76
- * "kid": "359302ee-2446-4afe-9348-8b4656b9ddb1",
77
- * "aud": "media:6cee6f85-9334-4a51-9ce3-e0241d94ceef",
76
+ * "kid": "your-signing-key-id",
77
+ * "aud": "media:your-media-id",
78
78
  * "iss": "fastpix.io",
79
79
  * "sub": "",
80
80
  * "iat": 1706703204,
@@ -85,8 +85,8 @@ class SigningKeys extends sdks_js_1.ClientSDK {
85
85
  *
86
86
  * ```
87
87
  * {
88
- * "kid": "359302ee-2446-4afe-9348-8b4656b9ddb1",
89
- * "aud": "media:6cee6f85-9334-4a51-9ce3-e0241d94ceef",
88
+ * "kid": "your-signing-key-id",
89
+ * "aud": "media:your-media-id",
90
90
  * "iss": "fastpix.io",
91
91
  * "sub": "",
92
92
  * "iat": 1706703204,