Variable connected_accountConst
connected_account: ZodObject<
{
accepted_capabilities: ZodArray<
ZodEnum<["lock", "thermostat", "noise_sensor", "access_control"]>,
"many",
>;
account_type: ZodOptional<ZodString>;
account_type_display_name: ZodString;
automatically_manage_new_devices: ZodBoolean;
connected_account_id: ZodOptional<ZodString>;
created_at: ZodOptional<ZodString>;
custom_metadata: ZodRecord<ZodString, ZodUnion<[ZodString, ZodBoolean]>>;
customer_key: ZodOptional<ZodString>;
errors: ZodArray<
ZodDiscriminatedUnion<
"error_code",
[
ZodObject<
{
created_at: ZodString;
is_bridge_error: ZodOptional<ZodBoolean>;
is_connected_account_error: ZodOptional<ZodBoolean>;
message: ZodString;
} & { error_code: ZodLiteral<"account_disconnected"> },
"strip",
ZodTypeAny,
{
created_at: string;
error_code: "account_disconnected";
is_bridge_error?: boolean;
is_connected_account_error?: boolean;
message: string;
},
{
created_at: string;
error_code: "account_disconnected";
is_bridge_error?: boolean;
is_connected_account_error?: boolean;
message: string;
},
>,
ZodObject<
{
created_at: ZodString;
is_bridge_error: ZodOptional<ZodBoolean>;
is_connected_account_error: ZodOptional<ZodBoolean>;
message: ZodString;
} & { error_code: ZodLiteral<"invalid_credentials"> },
"strip",
ZodTypeAny,
{
created_at: string;
error_code: "invalid_credentials";
is_bridge_error?: boolean;
is_connected_account_error?: boolean;
message: string;
},
{
created_at: string;
error_code: "invalid_credentials";
is_bridge_error?: boolean;
is_connected_account_error?: boolean;
message: string;
},
>,
ZodObject<
{
created_at: ZodString;
is_bridge_error: ZodOptional<ZodBoolean>;
is_connected_account_error: ZodOptional<ZodBoolean>;
message: ZodString;
} & { error_code: ZodLiteral<"bridge_disconnected"> },
"strip",
ZodTypeAny,
{
created_at: string;
error_code: "bridge_disconnected";
is_bridge_error?: boolean;
is_connected_account_error?: boolean;
message: string;
},
{
created_at: string;
error_code: "bridge_disconnected";
is_bridge_error?: boolean;
is_connected_account_error?: boolean;
message: string;
},
>,
ZodObject<
{
created_at: ZodString;
is_bridge_error: ZodOptional<ZodBoolean>;
is_connected_account_error: ZodOptional<ZodBoolean>;
message: ZodString;
} & {
error_code: ZodLiteral<"salto_ks_subscription_limit_exceeded">;
salto_ks_metadata: ZodObject<
{ sites: ZodArray<(...), (...)> },
"strip",
ZodTypeAny,
{ sites: (...)[] },
{ sites: (...)[] },
>;
},
"strip",
ZodTypeAny,
{
created_at: string;
error_code: "salto_ks_subscription_limit_exceeded";
is_bridge_error?: boolean;
is_connected_account_error?: boolean;
message: string;
salto_ks_metadata: {
sites: {
site_id: string;
site_name: string;
site_user_subscription_limit: number;
subscribed_site_user_count: number;
}[];
};
},
{
created_at: string;
error_code: "salto_ks_subscription_limit_exceeded";
is_bridge_error?: boolean;
is_connected_account_error?: boolean;
message: string;
salto_ks_metadata: {
sites: {
site_id: string;
site_name: string;
site_user_subscription_limit: number;
subscribed_site_user_count: number;
}[];
};
},
>,
],
>,
"many",
>;
user_identifier: ZodOptional<
ZodObject<
{
api_url: ZodOptional<ZodString>;
email: ZodOptional<ZodString>;
exclusive: ZodOptional<ZodBoolean>;
phone: ZodOptional<ZodString>;
username: ZodOptional<ZodString>;
},
"strip",
ZodTypeAny,
{
api_url?: string;
email?: string;
exclusive?: boolean;
phone?: string;
username?: string;
},
{
api_url?: string;
email?: string;
exclusive?: boolean;
phone?: string;
username?: string;
},
>,
>;
warnings: ZodArray<
ZodDiscriminatedUnion<
"warning_code",
[
ZodObject<
{ created_at: ZodString; message: ZodString } & {
warning_code: ZodLiteral<"scheduled_maintenance_window">;
},
"strip",
ZodTypeAny,
{
created_at: string;
message: string;
warning_code: "scheduled_maintenance_window";
},
{
created_at: string;
message: string;
warning_code: "scheduled_maintenance_window";
},
>,
ZodObject<
{ created_at: ZodString; message: ZodString } & {
warning_code: ZodLiteral<"unknown_issue_with_connected_account">;
},
"strip",
ZodTypeAny,
{
created_at: string;
message: string;
warning_code: "unknown_issue_with_connected_account";
},
{
created_at: string;
message: string;
warning_code: "unknown_issue_with_connected_account";
},
>,
ZodObject<
{ created_at: ZodString; message: ZodString } & {
salto_ks_metadata: ZodObject<
{ sites: ZodArray<(...), (...)> },
"strip",
ZodTypeAny,
{ sites: (...)[] },
{ sites: (...)[] },
>;
warning_code: ZodLiteral<
"salto_ks_subscription_limit_almost_reached",
>;
},
"strip",
ZodTypeAny,
{
created_at: string;
message: string;
salto_ks_metadata: {
sites: {
site_id: string;
site_name: string;
site_user_subscription_limit: number;
subscribed_site_user_count: number;
}[];
};
warning_code: "salto_ks_subscription_limit_almost_reached";
},
{
created_at: string;
message: string;
salto_ks_metadata: {
sites: {
site_id: string;
site_name: string;
site_user_subscription_limit: number;
subscribed_site_user_count: number;
}[];
};
warning_code: "salto_ks_subscription_limit_almost_reached";
},
>,
],
>,
"many",
>;
},
"strip",
ZodTypeAny,
{
accepted_capabilities: (
"lock"
| "thermostat"
| "noise_sensor"
| "access_control"
)[];
account_type?: string;
account_type_display_name: string;
automatically_manage_new_devices: boolean;
connected_account_id?: string;
created_at?: string;
custom_metadata: Record<string, string | boolean>;
customer_key?: string;
errors: (
| {
created_at: string;
error_code: "account_disconnected";
is_bridge_error?: boolean;
is_connected_account_error?: boolean;
message: string;
}
| {
created_at: string;
error_code: "invalid_credentials";
is_bridge_error?: boolean;
is_connected_account_error?: boolean;
message: string;
}
| {
created_at: string;
error_code: "bridge_disconnected";
is_bridge_error?: boolean;
is_connected_account_error?: boolean;
message: string;
}
| {
created_at: string;
error_code: "salto_ks_subscription_limit_exceeded";
is_bridge_error?: boolean;
is_connected_account_error?: boolean;
message: string;
salto_ks_metadata: {
sites: {
site_id: string;
site_name: string;
site_user_subscription_limit: number;
subscribed_site_user_count: number;
}[];
};
}
)[];
user_identifier?: {
api_url?: string;
email?: string;
exclusive?: boolean;
phone?: string;
username?: string;
};
warnings: (
| {
created_at: string;
message: string;
warning_code: "scheduled_maintenance_window";
}
| {
created_at: string;
message: string;
warning_code: "unknown_issue_with_connected_account";
}
| {
created_at: string;
message: string;
salto_ks_metadata: {
sites: {
site_id: string;
site_name: string;
site_user_subscription_limit: number;
subscribed_site_user_count: number;
}[];
};
warning_code: "salto_ks_subscription_limit_almost_reached";
}
)[];
},
{
accepted_capabilities: (
"lock"
| "thermostat"
| "noise_sensor"
| "access_control"
)[];
account_type?: string;
account_type_display_name: string;
automatically_manage_new_devices: boolean;
connected_account_id?: string;
created_at?: string;
custom_metadata: Record<string, string | boolean>;
customer_key?: string;
errors: (
| {
created_at: string;
error_code: "account_disconnected";
is_bridge_error?: boolean;
is_connected_account_error?: boolean;
message: string;
}
| {
created_at: string;
error_code: "invalid_credentials";
is_bridge_error?: boolean;
is_connected_account_error?: boolean;
message: string;
}
| {
created_at: string;
error_code: "bridge_disconnected";
is_bridge_error?: boolean;
is_connected_account_error?: boolean;
message: string;
}
| {
created_at: string;
error_code: "salto_ks_subscription_limit_exceeded";
is_bridge_error?: boolean;
is_connected_account_error?: boolean;
message: string;
salto_ks_metadata: {
sites: {
site_id: string;
site_name: string;
site_user_subscription_limit: number;
subscribed_site_user_count: number;
}[];
};
}
)[];
user_identifier?: {
api_url?: string;
email?: string;
exclusive?: boolean;
phone?: string;
username?: string;
};
warnings: (
| {
created_at: string;
message: string;
warning_code: "scheduled_maintenance_window";
}
| {
created_at: string;
message: string;
warning_code: "unknown_issue_with_connected_account";
}
| {
created_at: string;
message: string;
salto_ks_metadata: {
sites: {
site_id: string;
site_name: string;
site_user_subscription_limit: number;
subscribed_site_user_count: number;
}[];
};
warning_code: "salto_ks_subscription_limit_almost_reached";
}
)[];
},
> = ...