seamapi-types
Advanced tools
Comparing version 1.12.4 to 1.13.0
@@ -130,2 +130,4 @@ import { Except } from 'type-fest'; | ||
pre_redirect_acknowledgement?: boolean; | ||
context?: "smartthings_auth"; | ||
provider?: ProviderMetadata; | ||
}, { | ||
@@ -144,4 +146,5 @@ callback_args: Record<string, string>; | ||
selection_mode?: "none" | "single" | "multiple"; | ||
context?: "device"; | ||
context?: "device" | "smartthings_auth"; | ||
manufacturer_name?: string; | ||
provider?: ProviderMetadata; | ||
}, { | ||
@@ -152,6 +155,8 @@ value: string | string[]; | ||
accepted_user_identifiers: Array<"email" | "phone" | "username">; | ||
context?: "smartthings_pre_auth"; | ||
default_user_identifier?: string; | ||
provider: ProviderMetadata; | ||
}, { | ||
user_identifier: string; | ||
password: string; | ||
password?: string; | ||
}>; | ||
@@ -178,3 +183,14 @@ declare type InitiateTwoFactorPane = Pane<"initiate_two_factor_pane", { | ||
}, Record<string, AnyField["input"]>>; | ||
declare type FinishedPane = Pane<"finished_pane", {}, {}>; | ||
interface SmartThingsLocation { | ||
id: string; | ||
name: string; | ||
} | ||
declare type FinishedPane = Pane<"finished_pane", { | ||
context?: { | ||
smartthings_auth?: { | ||
locations: SmartThingsLocation[]; | ||
oauth_redirect?: string; | ||
}; | ||
}; | ||
}, {}>; | ||
declare type AnyPane = LoadingPane | RedirectPane | SearchAndSelectPane | LoginPane | InitiateTwoFactorPane | TwoFactorPane | FieldsPane | FinishedPane; | ||
@@ -191,2 +207,2 @@ declare type AnyPaneWithoutSubmitProps = Except<AnyPane, "submit_props">; | ||
export { AnyField, AnyPane, AnyPaneWithoutSubmitProps, ChangeAccessCodeEvent, CommonAccessCodeEvent, CommonConnectedAccountEvent, CommonDeviceEvent, ConnectedAccountConnected, ConnectedAccountCreated, ConnectedAccountDisconnected, CreateAccessCodeEvent, DelayInRemovingFromDeviceAccessCodeEvent, DelayInSettingOnDeviceAccessCodeEvent, DeviceCodeLimitReachedEvent, DeviceConnectedEvent, DeviceDisconnectEvent, DeviceLowBatteryEvent, DeviceTamperEvent, FailedToRemoveFromDeviceAccessCodeEvent, FailedToSetOnDeviceAccessCodeEvent, Field, FieldsPane, FinishedPane, InitiateTwoFactorPane, LoadingPane, LockLockedEvent, LockMethod, LockUnlockedEvent, LoginPane, LoginWebviewFlowErrorCode, NoiseDetectedEvent, ProviderMetadata, RedirectPane, RemovedFromDeviceAccessCodeEvent, SeamEvent, SearchAndSelectPane, SelectionField, SetOnDeviceAccessCodeEvent, TextField, TwoFactorOption, TwoFactorOptionWithId, TwoFactorPane, UnexpectedWebviewFlowErrorCode, UserInputWebviewFlowErrorCode, WebviewFlowErrorCode, Workspace }; | ||
export { AnyField, AnyPane, AnyPaneWithoutSubmitProps, ChangeAccessCodeEvent, CommonAccessCodeEvent, CommonConnectedAccountEvent, CommonDeviceEvent, ConnectedAccountConnected, ConnectedAccountCreated, ConnectedAccountDisconnected, CreateAccessCodeEvent, DelayInRemovingFromDeviceAccessCodeEvent, DelayInSettingOnDeviceAccessCodeEvent, DeviceCodeLimitReachedEvent, DeviceConnectedEvent, DeviceDisconnectEvent, DeviceLowBatteryEvent, DeviceTamperEvent, FailedToRemoveFromDeviceAccessCodeEvent, FailedToSetOnDeviceAccessCodeEvent, Field, FieldsPane, FinishedPane, InitiateTwoFactorPane, LoadingPane, LockLockedEvent, LockMethod, LockUnlockedEvent, LoginPane, LoginWebviewFlowErrorCode, NoiseDetectedEvent, ProviderMetadata, RedirectPane, RemovedFromDeviceAccessCodeEvent, SeamEvent, SearchAndSelectPane, SelectionField, SetOnDeviceAccessCodeEvent, SmartThingsLocation, TextField, TwoFactorOption, TwoFactorOptionWithId, TwoFactorPane, UnexpectedWebviewFlowErrorCode, UserInputWebviewFlowErrorCode, WebviewFlowErrorCode, Workspace }; |
@@ -6,3 +6,3 @@ { | ||
}, | ||
"version": "1.12.4", | ||
"version": "1.13.0", | ||
"main": "dist/index.js", | ||
@@ -9,0 +9,0 @@ "types": "dist/index.d.ts", |
@@ -57,2 +57,4 @@ import { Except } from "type-fest" | ||
pre_redirect_acknowledgement?: boolean | ||
context?: "smartthings_auth" | ||
provider?: ProviderMetadata | ||
}, | ||
@@ -76,4 +78,5 @@ { | ||
selection_mode?: "none" | "single" | "multiple" | ||
context?: "device" | ||
context?: "device" | "smartthings_auth" | ||
manufacturer_name?: string | ||
provider?: ProviderMetadata | ||
}, | ||
@@ -87,5 +90,7 @@ { value: string | string[] } | ||
accepted_user_identifiers: Array<"email" | "phone" | "username"> | ||
context?: "smartthings_pre_auth" | ||
default_user_identifier?: string | ||
provider: ProviderMetadata | ||
}, | ||
{ user_identifier: string; password: string } | ||
{ user_identifier: string; password?: string } | ||
> | ||
@@ -126,4 +131,20 @@ | ||
export type FinishedPane = Pane<"finished_pane", {}, {}> | ||
export interface SmartThingsLocation { | ||
id: string | ||
name: string | ||
} | ||
export type FinishedPane = Pane< | ||
"finished_pane", | ||
{ | ||
context?: { | ||
smartthings_auth?: { | ||
locations: SmartThingsLocation[] | ||
oauth_redirect?: string | ||
} | ||
} | ||
}, | ||
{} | ||
> | ||
export type AnyPane = | ||
@@ -130,0 +151,0 @@ | LoadingPane |
20746
560