seamapi-types
Advanced tools
Comparing version 1.3.14 to 1.3.15
@@ -22,3 +22,11 @@ import { Except } from 'type-fest'; | ||
declare type NoiseDetectedEvent = CommonDeviceEvent<"noise_detection.detected_noise">; | ||
declare type SeamEvent = DeviceConnectedEvent | DeviceDisconnectEvent | DeviceTamperEvent | DeviceLowBatteryEvent | CreateAccessCodeEvent | NoiseDetectedEvent; | ||
interface CommonConnectedAccountEvent<EventType extends string, Payload extends Record<string, unknown> | {} = {}> { | ||
event_type: EventType; | ||
payload: Payload & { | ||
workspace_id: string; | ||
connected_account_id: string; | ||
}; | ||
} | ||
declare type ConnectedAccountDisconnected = CommonConnectedAccountEvent<"connected_account.disconnected", {}>; | ||
declare type SeamEvent = DeviceConnectedEvent | DeviceDisconnectEvent | DeviceTamperEvent | DeviceLowBatteryEvent | CreateAccessCodeEvent | NoiseDetectedEvent | ConnectedAccountDisconnected; | ||
@@ -127,2 +135,2 @@ declare type Field<Type extends string, Props, Input> = { | ||
export { AnyField, AnyPane, AnyPaneWithoutSubmitProps, CommonDeviceEvent, CreateAccessCodeEvent, DeviceConnectedEvent, DeviceDisconnectEvent, DeviceLowBatteryEvent, DeviceTamperEvent, Field, FieldsPane, FinishedPane, InitiateTwoFactorPane, LoadingPane, LoginPane, NoiseDetectedEvent, ProviderMetadata, RedirectPane, SeamEvent, SearchAndSelectPane, SelectionField, TextField, TwoFactorOption, TwoFactorOptionWithId, TwoFactorPane }; | ||
export { AnyField, AnyPane, AnyPaneWithoutSubmitProps, CommonConnectedAccountEvent, CommonDeviceEvent, ConnectedAccountDisconnected, CreateAccessCodeEvent, DeviceConnectedEvent, DeviceDisconnectEvent, DeviceLowBatteryEvent, DeviceTamperEvent, Field, FieldsPane, FinishedPane, InitiateTwoFactorPane, LoadingPane, LoginPane, NoiseDetectedEvent, ProviderMetadata, RedirectPane, SeamEvent, SearchAndSelectPane, SelectionField, TextField, TwoFactorOption, TwoFactorOptionWithId, TwoFactorPane }; |
@@ -6,3 +6,3 @@ { | ||
}, | ||
"version": "1.3.14", | ||
"version": "1.3.15", | ||
"main": "dist/index.js", | ||
@@ -9,0 +9,0 @@ "types": "dist/index.d.ts", |
@@ -40,2 +40,18 @@ export interface CommonDeviceEvent< | ||
export interface CommonConnectedAccountEvent< | ||
EventType extends string, | ||
Payload extends Record<string, unknown> | {} = {} | ||
> { | ||
event_type: EventType | ||
payload: Payload & { | ||
workspace_id: string | ||
connected_account_id: string | ||
} | ||
} | ||
export type ConnectedAccountDisconnected = CommonConnectedAccountEvent< | ||
"connected_account.disconnected", | ||
{} | ||
> | ||
export type SeamEvent = | ||
@@ -48,1 +64,2 @@ | DeviceConnectedEvent | ||
| NoiseDetectedEvent | ||
| ConnectedAccountDisconnected |
13316
372