@camstack/addon-provider-rtsp 0.1.13 → 0.1.14

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/assets/icon.svg CHANGED
@@ -1,6 +1,12 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="64" height="64" viewBox="0 0 24 24" fill="none" stroke="#78716c" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
2
- <path d="M5 12.55a11 11 0 0 1 14.08 0"/>
3
- <path d="M1.42 9a16 16 0 0 1 21.16 0"/>
4
- <path d="M8.53 16.11a6 6 0 0 1 6.95 0"/>
5
- <line x1="12" y1="20" x2="12.01" y2="20"/>
1
+ <!-- RTSP addon icon Lucide `Radio` symbol (broadcast waves around a
2
+ center point). Communicates "real-time streaming protocol" without
3
+ leaning on the WiFi metaphor (which suggested wireless rather than
4
+ IP-stream). Stroke color is the brand orange used for "live
5
+ stream" affordances elsewhere in the UI. -->
6
+ <svg xmlns="http://www.w3.org/2000/svg" width="64" height="64" viewBox="0 0 24 24" fill="none" stroke="#f97316" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
7
+ <path d="M16.247 7.761a6 6 0 0 1 0 8.478"/>
8
+ <path d="M19.075 4.933a10 10 0 0 1 0 14.134"/>
9
+ <path d="M4.925 19.067a10 10 0 0 1 0-14.134"/>
10
+ <path d="M7.753 16.239a6 6 0 0 1 0-8.478"/>
11
+ <circle cx="12" cy="12" r="2" fill="#f97316"/>
6
12
  </svg>
package/dist/addon.d.mts CHANGED
@@ -1,14 +1,19 @@
1
- import { ICamstackAddon, IConfigurable, AddonManifest, AddonContext, CapabilityProviderMap, ConfigUISchema } from '@camstack/types';
1
+ import { BaseDeviceProvider, DeviceType, DeviceConstructor, IDevice, ProviderRegistration, ConfigUISchema, CreateDeviceSpec, FieldProbeResult } from '@camstack/types';
2
2
 
3
- declare class RtspProviderAddon implements ICamstackAddon, IConfigurable {
4
- readonly manifest: AddonManifest;
5
- private provider;
6
- initialize(context: AddonContext): Promise<void>;
7
- shutdown(): Promise<void>;
8
- getCapabilityProvider<K extends keyof CapabilityProviderMap>(name: K): CapabilityProviderMap[K] | null;
9
- getConfigSchema(): ConfigUISchema;
10
- getConfig(): Record<string, unknown>;
11
- onConfigChange(_config: Record<string, unknown>): Promise<void>;
3
+ declare class RtspProviderAddon extends BaseDeviceProvider {
4
+ protected readonly addonId = "provider-rtsp";
5
+ protected readonly providerName = "RTSP";
6
+ protected readonly deviceClasses: Partial<Record<DeviceType, DeviceConstructor<IDevice>>>;
7
+ constructor();
8
+ protected onInitialize(): Promise<ProviderRegistration[]>;
9
+ protected onGetCreationSchema(type: DeviceType): Promise<ConfigUISchema | null>;
10
+ protected onCreateDevice(type: DeviceType, config: Record<string, unknown>): Promise<CreateDeviceSpec>;
11
+ testCreationField(input: {
12
+ type: DeviceType;
13
+ key: string;
14
+ value: unknown;
15
+ }): Promise<FieldProbeResult>;
16
+ private republishAll;
12
17
  }
13
18
 
14
19
  export { RtspProviderAddon };
package/dist/addon.d.ts CHANGED
@@ -1,14 +1,19 @@
1
- import { ICamstackAddon, IConfigurable, AddonManifest, AddonContext, CapabilityProviderMap, ConfigUISchema } from '@camstack/types';
1
+ import { BaseDeviceProvider, DeviceType, DeviceConstructor, IDevice, ProviderRegistration, ConfigUISchema, CreateDeviceSpec, FieldProbeResult } from '@camstack/types';
2
2
 
3
- declare class RtspProviderAddon implements ICamstackAddon, IConfigurable {
4
- readonly manifest: AddonManifest;
5
- private provider;
6
- initialize(context: AddonContext): Promise<void>;
7
- shutdown(): Promise<void>;
8
- getCapabilityProvider<K extends keyof CapabilityProviderMap>(name: K): CapabilityProviderMap[K] | null;
9
- getConfigSchema(): ConfigUISchema;
10
- getConfig(): Record<string, unknown>;
11
- onConfigChange(_config: Record<string, unknown>): Promise<void>;
3
+ declare class RtspProviderAddon extends BaseDeviceProvider {
4
+ protected readonly addonId = "provider-rtsp";
5
+ protected readonly providerName = "RTSP";
6
+ protected readonly deviceClasses: Partial<Record<DeviceType, DeviceConstructor<IDevice>>>;
7
+ constructor();
8
+ protected onInitialize(): Promise<ProviderRegistration[]>;
9
+ protected onGetCreationSchema(type: DeviceType): Promise<ConfigUISchema | null>;
10
+ protected onCreateDevice(type: DeviceType, config: Record<string, unknown>): Promise<CreateDeviceSpec>;
11
+ testCreationField(input: {
12
+ type: DeviceType;
13
+ key: string;
14
+ value: unknown;
15
+ }): Promise<FieldProbeResult>;
16
+ private republishAll;
12
17
  }
13
18
 
14
19
  export { RtspProviderAddon };