@foxglove/embed 0.57.0 → 0.59.0
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/layout.generated.d.ts +20 -20
- package/dist/types.d.ts +10 -1
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/layout.generated.ts +20 -20
- package/src/types.ts +13 -0
|
@@ -120,7 +120,7 @@ export type StateTransitionsPanel = BasePanel & {
|
|
|
120
120
|
*/
|
|
121
121
|
export type PlotSeries = PlotSeriesBase & {
|
|
122
122
|
/**
|
|
123
|
-
*
|
|
123
|
+
* FoxQL expression containing y-axis values for the series
|
|
124
124
|
*/
|
|
125
125
|
value?: string;
|
|
126
126
|
/**
|
|
@@ -130,21 +130,21 @@ export type PlotSeries = PlotSeriesBase & {
|
|
|
130
130
|
/**
|
|
131
131
|
* For Timestamp plots, set which source of time information is used for message ordering:
|
|
132
132
|
* - receiveTime is the standard timestamp used for playback message ordering across the app. For live connections, this is when the message was received; for recorded files, this is when the message was originally recorded
|
|
133
|
-
* - customField is a
|
|
133
|
+
* - customField is a FoxQL expression which can point to any field within the message data containing sec and nsec integers
|
|
134
134
|
* - headerStamp is a header.stamp ROS 1 or ROS 2 field containing sec and nsec integers (and special case of 'custom field', above). This typically represents when sensor data was captured
|
|
135
135
|
* - publishTime is an optional MCAP-specific field representing when the event occurred
|
|
136
136
|
*/
|
|
137
137
|
timestampMethod?: "receiveTime" | "publishTime" | "headerStamp" | "customField";
|
|
138
138
|
/**
|
|
139
|
-
*
|
|
139
|
+
* FoxQL expression containing a timestamp field on the same topic as the y-value expression
|
|
140
140
|
*/
|
|
141
141
|
timestampPath?: string;
|
|
142
142
|
/**
|
|
143
|
-
* For
|
|
143
|
+
* For Expression plots: FoxQL expression containing x-axis values for the series. Overrides default x-axis values if set.
|
|
144
144
|
*/
|
|
145
145
|
xValuePath?: string;
|
|
146
146
|
/**
|
|
147
|
-
* For
|
|
147
|
+
* For Expression plots: controls whether this series shows all data or only latest data. When omitted, the panel time range is used.
|
|
148
148
|
*/
|
|
149
149
|
timeRange?: "all" | "latest";
|
|
150
150
|
/**
|
|
@@ -177,7 +177,7 @@ export type PlotSeries = PlotSeriesBase & {
|
|
|
177
177
|
[k: string]: PlotDynamicSeriesOverride;
|
|
178
178
|
};
|
|
179
179
|
/**
|
|
180
|
-
* For Timestamp plots where the y-value
|
|
180
|
+
* For Timestamp plots where the y-value expression resolves to an array of numbers: how to expand the array into series. "none" (the default) preserves the expression's existing behavior: a [:] slice stays in one series, while a bare array expression remains unplottable. "byIndex" plots one sub-series per array index, using the index as the sub-series label.
|
|
181
181
|
*/
|
|
182
182
|
arrayExpansion?: "none" | "byIndex";
|
|
183
183
|
};
|
|
@@ -1297,7 +1297,7 @@ export type Layout = {
|
|
|
1297
1297
|
content: Content;
|
|
1298
1298
|
};
|
|
1299
1299
|
/**
|
|
1300
|
-
* A dictionary of variable values available in panels,
|
|
1300
|
+
* A dictionary of variable values available in panels, FoxQL expressions, user scripts, and extensions.
|
|
1301
1301
|
*
|
|
1302
1302
|
* This interface was referenced by `Layout`'s JSON-Schema
|
|
1303
1303
|
* via the `definition` "Variables".
|
|
@@ -1466,7 +1466,7 @@ export type MarkdownConfig = {
|
|
|
1466
1466
|
*/
|
|
1467
1467
|
renderMode?: "static" | "message";
|
|
1468
1468
|
/**
|
|
1469
|
-
*
|
|
1469
|
+
* FoxQL expression for a field containing Markdown text as a string.
|
|
1470
1470
|
*/
|
|
1471
1471
|
messagePath?: string;
|
|
1472
1472
|
/**
|
|
@@ -1519,7 +1519,7 @@ export type StateTransitionsDiscreteCustomStates = {
|
|
|
1519
1519
|
*/
|
|
1520
1520
|
export type StateTransitionsSeries = {
|
|
1521
1521
|
/**
|
|
1522
|
-
*
|
|
1522
|
+
* FoxQL expression containing values for the series
|
|
1523
1523
|
*/
|
|
1524
1524
|
value?: string;
|
|
1525
1525
|
/**
|
|
@@ -1539,7 +1539,7 @@ export type StateTransitionsSeries = {
|
|
|
1539
1539
|
*/
|
|
1540
1540
|
timestampMethod?: "receiveTime" | "publishTime" | "headerStamp" | "customField";
|
|
1541
1541
|
/**
|
|
1542
|
-
*
|
|
1542
|
+
* FoxQL expression containing a timestamp field on the same topic as the value expression
|
|
1543
1543
|
*/
|
|
1544
1544
|
timestampPath?: string;
|
|
1545
1545
|
customStates?: StateTransitionsCustomStates;
|
|
@@ -1718,14 +1718,14 @@ export type PlotComparisonSlotOverride = {
|
|
|
1718
1718
|
enabled?: boolean;
|
|
1719
1719
|
};
|
|
1720
1720
|
/**
|
|
1721
|
-
* For
|
|
1721
|
+
* For Expression plots: the FoxQL expression containing default x-axis values for the series. You can also set these individually for each series.
|
|
1722
1722
|
*
|
|
1723
1723
|
* This interface was referenced by `Layout`'s JSON-Schema
|
|
1724
1724
|
* via the `definition` "PlotXAxisPath".
|
|
1725
1725
|
*/
|
|
1726
1726
|
export type PlotXAxisPath = {
|
|
1727
1727
|
/**
|
|
1728
|
-
*
|
|
1728
|
+
* FoxQL expression containing x-axis values for the series
|
|
1729
1729
|
*/
|
|
1730
1730
|
value?: string;
|
|
1731
1731
|
/**
|
|
@@ -1791,12 +1791,12 @@ export type PlotConfig = {
|
|
|
1791
1791
|
/**
|
|
1792
1792
|
* Type and source of data for values plotted on the x-axis:
|
|
1793
1793
|
* - Timestamp: x-values for time series data
|
|
1794
|
-
* -
|
|
1794
|
+
* - Expression: numeric message fields for XY plots
|
|
1795
1795
|
* - Array index: integer indices of an array in the latest message
|
|
1796
1796
|
*/
|
|
1797
1797
|
xAxisVal?: "timestamp" | "index" | "custom" | "currentCustom";
|
|
1798
1798
|
/**
|
|
1799
|
-
* For
|
|
1799
|
+
* For Expression plots:
|
|
1800
1800
|
* - All shows data from the full time range
|
|
1801
1801
|
* - Latest shows data from the most recent message.
|
|
1802
1802
|
*/
|
|
@@ -1830,7 +1830,7 @@ export type PlotConfig = {
|
|
|
1830
1830
|
*/
|
|
1831
1831
|
sidebarDimension?: number;
|
|
1832
1832
|
/**
|
|
1833
|
-
* For
|
|
1833
|
+
* For Expression plots:
|
|
1834
1834
|
* - Independent (the default) lets you configure min and max values for the scales independently.
|
|
1835
1835
|
* - 1:1 is useful for when axes have the same units, and will keep the scales locked together. It hides the min/max axis settings and always zooms both axes simultaneously.
|
|
1836
1836
|
*/
|
|
@@ -2394,7 +2394,7 @@ export type IndicatorRule = {
|
|
|
2394
2394
|
*/
|
|
2395
2395
|
export type IndicatorConfig = {
|
|
2396
2396
|
/**
|
|
2397
|
-
*
|
|
2397
|
+
* FoxQL expression for the data
|
|
2398
2398
|
*/
|
|
2399
2399
|
path?: string;
|
|
2400
2400
|
/**
|
|
@@ -2426,7 +2426,7 @@ export type IndicatorConfig = {
|
|
|
2426
2426
|
*/
|
|
2427
2427
|
export type GaugeConfig = {
|
|
2428
2428
|
/**
|
|
2429
|
-
*
|
|
2429
|
+
* FoxQL expression containing a numeric value (or string value that can be coerced to a numeric value)
|
|
2430
2430
|
*/
|
|
2431
2431
|
path?: string;
|
|
2432
2432
|
/**
|
|
@@ -2730,7 +2730,7 @@ export type RawMessagesConfig = {
|
|
|
2730
2730
|
*/
|
|
2731
2731
|
diffMethod?: "custom" | "previous message";
|
|
2732
2732
|
/**
|
|
2733
|
-
*
|
|
2733
|
+
* FoxQL expression to diff against
|
|
2734
2734
|
*/
|
|
2735
2735
|
diffTopicPath?: string;
|
|
2736
2736
|
/**
|
|
@@ -2748,7 +2748,7 @@ export type RawMessagesConfig = {
|
|
|
2748
2748
|
*/
|
|
2749
2749
|
showFullMessageForDiff?: boolean;
|
|
2750
2750
|
/**
|
|
2751
|
-
*
|
|
2751
|
+
* FoxQL expression to display
|
|
2752
2752
|
*/
|
|
2753
2753
|
topicPath?: string;
|
|
2754
2754
|
/**
|
|
@@ -2832,7 +2832,7 @@ export type LogConfig = {
|
|
|
2832
2832
|
*/
|
|
2833
2833
|
export type TableConfig = {
|
|
2834
2834
|
/**
|
|
2835
|
-
*
|
|
2835
|
+
* FoxQL expression to display
|
|
2836
2836
|
*/
|
|
2837
2837
|
topicPath?: string;
|
|
2838
2838
|
};
|
package/dist/types.d.ts
CHANGED
|
@@ -26,6 +26,15 @@ export type RecordingSource = {
|
|
|
26
26
|
projectId: string;
|
|
27
27
|
recordingId: string;
|
|
28
28
|
} & PlaybackDataSourceOptions;
|
|
29
|
+
export type SessionSource = ({
|
|
30
|
+
type: "session";
|
|
31
|
+
projectId: string;
|
|
32
|
+
sessionId: string;
|
|
33
|
+
} & PlaybackDataSourceOptions) | ({
|
|
34
|
+
type: "session";
|
|
35
|
+
projectId: string;
|
|
36
|
+
sessionKey: string;
|
|
37
|
+
} & PlaybackDataSourceOptions);
|
|
29
38
|
export type DeviceSource = ({
|
|
30
39
|
type: "device";
|
|
31
40
|
/** The ID of the device to connect to */
|
|
@@ -62,7 +71,7 @@ export type FileSource = {
|
|
|
62
71
|
type: "file";
|
|
63
72
|
file: File | File[];
|
|
64
73
|
} & PlaybackDataSourceOptions;
|
|
65
|
-
export type DataSource = RecordingSource | DeviceSource | LiveSource | FileSource | RemoteFileSource | RemoteAccessSource;
|
|
74
|
+
export type DataSource = RecordingSource | SessionSource | DeviceSource | LiveSource | FileSource | RemoteFileSource | RemoteAccessSource;
|
|
66
75
|
export type FoxgloveViewerEventMap = {
|
|
67
76
|
ready: Event;
|
|
68
77
|
error: CustomEvent<string>;
|
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAEpD,cAAc,uBAAuB,CAAC;AAEtC;;;;;GAKG;AACH,MAAM,MAAM,IAAI,GAAG;IACjB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,gBAAgB,GAAG,OAAO,CAAC;AAEvC,KAAK,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GAC5B,yBAAyB,GACzB,6BAA6B,GAC7B,0BAA0B,GAC1B,yBAAyB,GACzB,2BAA2B,GAC3B,2BAA2B,GAC3B,4BAA4B,GAC5B,+BAA+B,GAC/B,gCAAgC,CAAC;AAErC;;;;;;;;GAQG;AACH,MAAM,MAAM,WAAW,GAAG,aAAa,GAAG,cAAc,CAAC;AAEzD;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,MAAM,WAAW,cAAc;IAC7B,6CAA6C;IAC7C,GAAG,EAAE,WAAW,CAAC;IACjB,6FAA6F;IAC7F,SAAS,CAAC,EAAE,gBAAgB,EAAE,CAAC;CAChC;AAED,MAAM,WAAW,iBAAkB,SAAQ,cAAc;IACvD,2FAA2F;IAC3F,OAAO,EAAE,iBAAiB,GAAG,MAAM,CAAC;CACrC;AAED,MAAM,WAAW,iBAAkB,SAAQ,cAAc;IACvD,8DAA8D;IAC9D,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED;;;GAGG;AACH,MAAM,MAAM,UAAU,GAAG,iBAAiB,GAAG,iBAAiB,CAAC;AAE/D,MAAM,MAAM,uBAAuB,GAAG,MAAM,sBAAsB,CAAC;AAEnE,MAAM,MAAM,kBAAkB,GAC1B;IACE;;;SAGK;IACL,UAAU,EAAE,MAAM,CAAC;IACnB;;;;SAIK;IACL,YAAY,CAAC,EAAE,gBAAgB,CAAC;IAChC,4FAA4F;IAC5F,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB,GACD;IACE;;;SAGK;IACL,UAAU,EAAE,MAAM,CAAC;IACnB;;;SAGK;IACL,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,sFAAsF;IACtF,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB,CAAC"}
|
package/package.json
CHANGED
package/src/layout.generated.ts
CHANGED
|
@@ -126,7 +126,7 @@ export type StateTransitionsPanel = BasePanel & {
|
|
|
126
126
|
*/
|
|
127
127
|
export type PlotSeries = PlotSeriesBase & {
|
|
128
128
|
/**
|
|
129
|
-
*
|
|
129
|
+
* FoxQL expression containing y-axis values for the series
|
|
130
130
|
*/
|
|
131
131
|
value?: string;
|
|
132
132
|
/**
|
|
@@ -136,21 +136,21 @@ export type PlotSeries = PlotSeriesBase & {
|
|
|
136
136
|
/**
|
|
137
137
|
* For Timestamp plots, set which source of time information is used for message ordering:
|
|
138
138
|
* - receiveTime is the standard timestamp used for playback message ordering across the app. For live connections, this is when the message was received; for recorded files, this is when the message was originally recorded
|
|
139
|
-
* - customField is a
|
|
139
|
+
* - customField is a FoxQL expression which can point to any field within the message data containing sec and nsec integers
|
|
140
140
|
* - headerStamp is a header.stamp ROS 1 or ROS 2 field containing sec and nsec integers (and special case of 'custom field', above). This typically represents when sensor data was captured
|
|
141
141
|
* - publishTime is an optional MCAP-specific field representing when the event occurred
|
|
142
142
|
*/
|
|
143
143
|
timestampMethod?: "receiveTime" | "publishTime" | "headerStamp" | "customField";
|
|
144
144
|
/**
|
|
145
|
-
*
|
|
145
|
+
* FoxQL expression containing a timestamp field on the same topic as the y-value expression
|
|
146
146
|
*/
|
|
147
147
|
timestampPath?: string;
|
|
148
148
|
/**
|
|
149
|
-
* For
|
|
149
|
+
* For Expression plots: FoxQL expression containing x-axis values for the series. Overrides default x-axis values if set.
|
|
150
150
|
*/
|
|
151
151
|
xValuePath?: string;
|
|
152
152
|
/**
|
|
153
|
-
* For
|
|
153
|
+
* For Expression plots: controls whether this series shows all data or only latest data. When omitted, the panel time range is used.
|
|
154
154
|
*/
|
|
155
155
|
timeRange?: "all" | "latest";
|
|
156
156
|
/**
|
|
@@ -183,7 +183,7 @@ export type PlotSeries = PlotSeriesBase & {
|
|
|
183
183
|
[k: string]: PlotDynamicSeriesOverride;
|
|
184
184
|
};
|
|
185
185
|
/**
|
|
186
|
-
* For Timestamp plots where the y-value
|
|
186
|
+
* For Timestamp plots where the y-value expression resolves to an array of numbers: how to expand the array into series. "none" (the default) preserves the expression's existing behavior: a [:] slice stays in one series, while a bare array expression remains unplottable. "byIndex" plots one sub-series per array index, using the index as the sub-series label.
|
|
187
187
|
*/
|
|
188
188
|
arrayExpansion?: "none" | "byIndex";
|
|
189
189
|
};
|
|
@@ -1324,7 +1324,7 @@ export type Layout = {
|
|
|
1324
1324
|
content: Content;
|
|
1325
1325
|
}
|
|
1326
1326
|
/**
|
|
1327
|
-
* A dictionary of variable values available in panels,
|
|
1327
|
+
* A dictionary of variable values available in panels, FoxQL expressions, user scripts, and extensions.
|
|
1328
1328
|
*
|
|
1329
1329
|
* This interface was referenced by `Layout`'s JSON-Schema
|
|
1330
1330
|
* via the `definition` "Variables".
|
|
@@ -1493,7 +1493,7 @@ export type MarkdownConfig = {
|
|
|
1493
1493
|
*/
|
|
1494
1494
|
renderMode?: "static" | "message";
|
|
1495
1495
|
/**
|
|
1496
|
-
*
|
|
1496
|
+
* FoxQL expression for a field containing Markdown text as a string.
|
|
1497
1497
|
*/
|
|
1498
1498
|
messagePath?: string;
|
|
1499
1499
|
/**
|
|
@@ -1546,7 +1546,7 @@ export type StateTransitionsDiscreteCustomStates = {
|
|
|
1546
1546
|
*/
|
|
1547
1547
|
export type StateTransitionsSeries = {
|
|
1548
1548
|
/**
|
|
1549
|
-
*
|
|
1549
|
+
* FoxQL expression containing values for the series
|
|
1550
1550
|
*/
|
|
1551
1551
|
value?: string;
|
|
1552
1552
|
/**
|
|
@@ -1566,7 +1566,7 @@ export type StateTransitionsSeries = {
|
|
|
1566
1566
|
*/
|
|
1567
1567
|
timestampMethod?: "receiveTime" | "publishTime" | "headerStamp" | "customField";
|
|
1568
1568
|
/**
|
|
1569
|
-
*
|
|
1569
|
+
* FoxQL expression containing a timestamp field on the same topic as the value expression
|
|
1570
1570
|
*/
|
|
1571
1571
|
timestampPath?: string;
|
|
1572
1572
|
customStates?: StateTransitionsCustomStates;
|
|
@@ -1745,14 +1745,14 @@ export type PlotComparisonSlotOverride = {
|
|
|
1745
1745
|
enabled?: boolean;
|
|
1746
1746
|
}
|
|
1747
1747
|
/**
|
|
1748
|
-
* For
|
|
1748
|
+
* For Expression plots: the FoxQL expression containing default x-axis values for the series. You can also set these individually for each series.
|
|
1749
1749
|
*
|
|
1750
1750
|
* This interface was referenced by `Layout`'s JSON-Schema
|
|
1751
1751
|
* via the `definition` "PlotXAxisPath".
|
|
1752
1752
|
*/
|
|
1753
1753
|
export type PlotXAxisPath = {
|
|
1754
1754
|
/**
|
|
1755
|
-
*
|
|
1755
|
+
* FoxQL expression containing x-axis values for the series
|
|
1756
1756
|
*/
|
|
1757
1757
|
value?: string;
|
|
1758
1758
|
/**
|
|
@@ -1818,12 +1818,12 @@ export type PlotConfig = {
|
|
|
1818
1818
|
/**
|
|
1819
1819
|
* Type and source of data for values plotted on the x-axis:
|
|
1820
1820
|
* - Timestamp: x-values for time series data
|
|
1821
|
-
* -
|
|
1821
|
+
* - Expression: numeric message fields for XY plots
|
|
1822
1822
|
* - Array index: integer indices of an array in the latest message
|
|
1823
1823
|
*/
|
|
1824
1824
|
xAxisVal?: "timestamp" | "index" | "custom" | "currentCustom";
|
|
1825
1825
|
/**
|
|
1826
|
-
* For
|
|
1826
|
+
* For Expression plots:
|
|
1827
1827
|
* - All shows data from the full time range
|
|
1828
1828
|
* - Latest shows data from the most recent message.
|
|
1829
1829
|
*/
|
|
@@ -1857,7 +1857,7 @@ export type PlotConfig = {
|
|
|
1857
1857
|
*/
|
|
1858
1858
|
sidebarDimension?: number;
|
|
1859
1859
|
/**
|
|
1860
|
-
* For
|
|
1860
|
+
* For Expression plots:
|
|
1861
1861
|
* - Independent (the default) lets you configure min and max values for the scales independently.
|
|
1862
1862
|
* - 1:1 is useful for when axes have the same units, and will keep the scales locked together. It hides the min/max axis settings and always zooms both axes simultaneously.
|
|
1863
1863
|
*/
|
|
@@ -2421,7 +2421,7 @@ export type IndicatorRule = {
|
|
|
2421
2421
|
*/
|
|
2422
2422
|
export type IndicatorConfig = {
|
|
2423
2423
|
/**
|
|
2424
|
-
*
|
|
2424
|
+
* FoxQL expression for the data
|
|
2425
2425
|
*/
|
|
2426
2426
|
path?: string;
|
|
2427
2427
|
/**
|
|
@@ -2453,7 +2453,7 @@ export type IndicatorConfig = {
|
|
|
2453
2453
|
*/
|
|
2454
2454
|
export type GaugeConfig = {
|
|
2455
2455
|
/**
|
|
2456
|
-
*
|
|
2456
|
+
* FoxQL expression containing a numeric value (or string value that can be coerced to a numeric value)
|
|
2457
2457
|
*/
|
|
2458
2458
|
path?: string;
|
|
2459
2459
|
/**
|
|
@@ -2757,7 +2757,7 @@ export type RawMessagesConfig = {
|
|
|
2757
2757
|
*/
|
|
2758
2758
|
diffMethod?: "custom" | "previous message";
|
|
2759
2759
|
/**
|
|
2760
|
-
*
|
|
2760
|
+
* FoxQL expression to diff against
|
|
2761
2761
|
*/
|
|
2762
2762
|
diffTopicPath?: string;
|
|
2763
2763
|
/**
|
|
@@ -2777,7 +2777,7 @@ export type RawMessagesConfig = {
|
|
|
2777
2777
|
*/
|
|
2778
2778
|
showFullMessageForDiff?: boolean;
|
|
2779
2779
|
/**
|
|
2780
|
-
*
|
|
2780
|
+
* FoxQL expression to display
|
|
2781
2781
|
*/
|
|
2782
2782
|
topicPath?: string;
|
|
2783
2783
|
/**
|
|
@@ -2861,7 +2861,7 @@ export type LogConfig = {
|
|
|
2861
2861
|
*/
|
|
2862
2862
|
export type TableConfig = {
|
|
2863
2863
|
/**
|
|
2864
|
-
*
|
|
2864
|
+
* FoxQL expression to display
|
|
2865
2865
|
*/
|
|
2866
2866
|
topicPath?: string;
|
|
2867
2867
|
}
|
package/src/types.ts
CHANGED
|
@@ -32,6 +32,18 @@ export type RecordingSource = {
|
|
|
32
32
|
recordingId: string;
|
|
33
33
|
} & PlaybackDataSourceOptions;
|
|
34
34
|
|
|
35
|
+
export type SessionSource =
|
|
36
|
+
| ({
|
|
37
|
+
type: "session";
|
|
38
|
+
projectId: string;
|
|
39
|
+
sessionId: string;
|
|
40
|
+
} & PlaybackDataSourceOptions)
|
|
41
|
+
| ({
|
|
42
|
+
type: "session";
|
|
43
|
+
projectId: string;
|
|
44
|
+
sessionKey: string;
|
|
45
|
+
} & PlaybackDataSourceOptions);
|
|
46
|
+
|
|
35
47
|
export type DeviceSource =
|
|
36
48
|
| ({
|
|
37
49
|
type: "device";
|
|
@@ -78,6 +90,7 @@ export type FileSource = {
|
|
|
78
90
|
|
|
79
91
|
export type DataSource =
|
|
80
92
|
| RecordingSource
|
|
93
|
+
| SessionSource
|
|
81
94
|
| DeviceSource
|
|
82
95
|
| LiveSource
|
|
83
96
|
| FileSource
|