@seamapi/types 1.210.0 → 1.211.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.
Files changed (46) hide show
  1. package/dist/connect.d.cts +2793 -1343
  2. package/dist/devicedb.d.cts +199 -795
  3. package/lib/seam/connect/models/access-codes/managed-access-code.d.ts +18 -12
  4. package/lib/seam/connect/models/access-codes/unmanaged-access-code.d.ts +29 -13
  5. package/lib/seam/connect/models/acs/acs-credential-provisioning-automation.d.ts +6 -4
  6. package/lib/seam/connect/models/acs/acs-credential.d.ts +10 -10
  7. package/lib/seam/connect/models/acs/acs-entrance.d.ts +12 -12
  8. package/lib/seam/connect/models/acs/acs-system.d.ts +45 -40
  9. package/lib/seam/connect/models/acs/acs-user.d.ts +40 -36
  10. package/lib/seam/connect/models/action-attempts/action-attempt.d.ts +300 -165
  11. package/lib/seam/connect/models/action-attempts/common.d.ts +12 -6
  12. package/lib/seam/connect/models/action-attempts/deprecated.d.ts +140 -77
  13. package/lib/seam/connect/models/action-attempts/lock-door.d.ts +20 -11
  14. package/lib/seam/connect/models/action-attempts/reset-sandbox-workspace.d.ts +20 -11
  15. package/lib/seam/connect/models/action-attempts/set-cool.d.ts +20 -11
  16. package/lib/seam/connect/models/action-attempts/set-fan-mode.d.ts +20 -11
  17. package/lib/seam/connect/models/action-attempts/set-heat-cool.d.ts +20 -11
  18. package/lib/seam/connect/models/action-attempts/set-heat.d.ts +20 -11
  19. package/lib/seam/connect/models/action-attempts/set-thermostat-off.d.ts +20 -11
  20. package/lib/seam/connect/models/action-attempts/unlock-door.d.ts +20 -11
  21. package/lib/seam/connect/models/connected-accounts/connected-account.d.ts +20 -16
  22. package/lib/seam/connect/models/devices/capability-properties/index.d.ts +33 -29
  23. package/lib/seam/connect/models/devices/capability-properties/thermostat.d.ts +213 -48
  24. package/lib/seam/connect/models/devices/device-provider.d.ts +7 -5
  25. package/lib/seam/connect/models/devices/device.d.ts +188 -1036
  26. package/lib/seam/connect/models/devices/phone.d.ts +2023 -15
  27. package/lib/seam/connect/models/devices/unmanaged-device.d.ts +2034 -16
  28. package/lib/seam/connect/models/events/access-codes.d.ts +306 -238
  29. package/lib/seam/connect/models/events/acs/common.d.ts +5 -4
  30. package/lib/seam/connect/models/events/acs/credentials.d.ts +18 -12
  31. package/lib/seam/connect/models/events/acs/index.d.ts +26 -18
  32. package/lib/seam/connect/models/events/acs/systems.d.ts +16 -12
  33. package/lib/seam/connect/models/events/acs/users.d.ts +18 -12
  34. package/lib/seam/connect/models/events/action-attempts.d.ts +16 -12
  35. package/lib/seam/connect/models/events/client-sessions.d.ts +14 -10
  36. package/lib/seam/connect/models/events/connected-accounts.d.ts +98 -70
  37. package/lib/seam/connect/models/events/devices.d.ts +412 -312
  38. package/lib/seam/connect/models/events/enrollment-automations.d.ts +14 -10
  39. package/lib/seam/connect/models/events/phones.d.ts +14 -10
  40. package/lib/seam/connect/models/events/seam-event.d.ts +456 -344
  41. package/lib/seam/connect/models/thermostats/climate-setting-schedule.d.ts +6 -5
  42. package/lib/seam/connect/models/webhooks/webhook.d.ts +2 -2
  43. package/lib/seam/devicedb/models/device-model.d.ts +6 -4
  44. package/lib/seam/devicedb/models/manufacturer.d.ts +2 -2
  45. package/lib/seam/devicedb/route-specs.d.ts +132 -730
  46. package/package.json +5 -1
@@ -1,13 +1,14 @@
1
1
  import { z } from 'zod';
2
- export declare const climate_setting_schedule: z.ZodObject<{
3
- name: z.ZodOptional<z.ZodString>;
4
- created_at: z.ZodString;
5
- errors: z.ZodAny;
2
+ export declare const climate_setting_schedule: z.ZodObject<z.objectUtil.extendShape<{
6
3
  climate_setting_schedule_id: z.ZodString;
7
4
  schedule_type: z.ZodLiteral<"time_bound">;
8
5
  device_id: z.ZodString;
6
+ name: z.ZodOptional<z.ZodString>;
9
7
  schedule_starts_at: z.ZodString;
10
8
  schedule_ends_at: z.ZodString;
9
+ created_at: z.ZodString;
10
+ errors: z.ZodAny;
11
+ }, {
11
12
  automatic_heating_enabled: z.ZodOptional<z.ZodBoolean>;
12
13
  automatic_cooling_enabled: z.ZodOptional<z.ZodBoolean>;
13
14
  hvac_mode_setting: z.ZodOptional<z.ZodEnum<["off", "heat", "cool", "heat_cool"]>>;
@@ -16,7 +17,7 @@ export declare const climate_setting_schedule: z.ZodObject<{
16
17
  cooling_set_point_fahrenheit: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
17
18
  heating_set_point_fahrenheit: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
18
19
  manual_override_allowed: z.ZodOptional<z.ZodBoolean>;
19
- }, "strip", z.ZodTypeAny, {
20
+ }>, "strip", z.ZodTypeAny, {
20
21
  created_at: string;
21
22
  climate_setting_schedule_id: string;
22
23
  schedule_type: "time_bound";
@@ -7,12 +7,12 @@ export declare const webhook: z.ZodObject<{
7
7
  }, "strip", z.ZodTypeAny, {
8
8
  url: string;
9
9
  webhook_id: string;
10
- event_types?: string[] | undefined;
11
10
  secret?: string | undefined;
11
+ event_types?: string[] | undefined;
12
12
  }, {
13
13
  url: string;
14
14
  webhook_id: string;
15
- event_types?: string[] | undefined;
16
15
  secret?: string | undefined;
16
+ event_types?: string[] | undefined;
17
17
  }>;
18
18
  export type Webhook = z.infer<typeof webhook>;
@@ -67,7 +67,7 @@ export declare const thermostat: z.ZodObject<{
67
67
  };
68
68
  }>;
69
69
  export type ThermostatProperties = z.infer<typeof thermostat>;
70
- export declare const device_model_category_specific_properties: z.ZodDiscriminatedUnion<"main_category", [z.ZodObject<{
70
+ export declare const device_model_category_specific_properties: z.ZodDiscriminatedUnion<"main_category", [z.ZodObject<z.objectUtil.extendShape<{
71
71
  main_category: z.ZodLiteral<"smartlock">;
72
72
  physical_properties: z.ZodObject<{
73
73
  lock_type: z.ZodEnum<["deadbolt", "lever", "mortise", "lockbox", "cylinder", "padlock", "locker", "unknown"]>;
@@ -98,11 +98,12 @@ export declare const device_model_category_specific_properties: z.ZodDiscriminat
98
98
  can_program_access_schedules: boolean;
99
99
  can_program_access_codes_offline: boolean;
100
100
  }>;
101
+ }, Pick<{
101
102
  can_remotely_unlock: z.ZodOptional<z.ZodLiteral<true>>;
102
103
  can_remotely_lock: z.ZodOptional<z.ZodLiteral<true>>;
103
104
  can_program_offline_access_codes: z.ZodOptional<z.ZodLiteral<true>>;
104
105
  can_program_online_access_codes: z.ZodOptional<z.ZodLiteral<true>>;
105
- }, "strip", z.ZodTypeAny, {
106
+ }, "can_remotely_unlock" | "can_remotely_lock" | "can_program_offline_access_codes" | "can_program_online_access_codes">>, "strip", z.ZodTypeAny, {
106
107
  main_category: "smartlock";
107
108
  physical_properties: {
108
109
  has_physical_key: boolean;
@@ -943,7 +944,7 @@ export declare const device_model_v1: z.ZodIntersection<z.ZodObject<{
943
944
  }[];
944
945
  power_sources: ("battery" | "hardwired" | "mechanical_harvesting" | "wireless" | "ethernet")[];
945
946
  product_url?: string | undefined;
946
- }>, z.ZodDiscriminatedUnion<"main_category", [z.ZodObject<{
947
+ }>, z.ZodDiscriminatedUnion<"main_category", [z.ZodObject<z.objectUtil.extendShape<{
947
948
  main_category: z.ZodLiteral<"smartlock">;
948
949
  physical_properties: z.ZodObject<{
949
950
  lock_type: z.ZodEnum<["deadbolt", "lever", "mortise", "lockbox", "cylinder", "padlock", "locker", "unknown"]>;
@@ -974,11 +975,12 @@ export declare const device_model_v1: z.ZodIntersection<z.ZodObject<{
974
975
  can_program_access_schedules: boolean;
975
976
  can_program_access_codes_offline: boolean;
976
977
  }>;
978
+ }, Pick<{
977
979
  can_remotely_unlock: z.ZodOptional<z.ZodLiteral<true>>;
978
980
  can_remotely_lock: z.ZodOptional<z.ZodLiteral<true>>;
979
981
  can_program_offline_access_codes: z.ZodOptional<z.ZodLiteral<true>>;
980
982
  can_program_online_access_codes: z.ZodOptional<z.ZodLiteral<true>>;
981
- }, "strip", z.ZodTypeAny, {
983
+ }, "can_remotely_unlock" | "can_remotely_lock" | "can_program_offline_access_codes" | "can_program_online_access_codes">>, "strip", z.ZodTypeAny, {
982
984
  main_category: "smartlock";
983
985
  physical_properties: {
984
986
  has_physical_key: boolean;
@@ -69,6 +69,7 @@ export declare const manufacturer: z.ZodObject<{
69
69
  message: string;
70
70
  annotation_code: "subscription_required";
71
71
  }[];
72
+ description?: string | undefined;
72
73
  logo?: {
73
74
  height: number;
74
75
  width: number;
@@ -84,7 +85,6 @@ export declare const manufacturer: z.ZodObject<{
84
85
  us_customer_support_email?: string | undefined;
85
86
  us_customer_support_contact_url?: string | undefined;
86
87
  seam_api_guide?: string | undefined;
87
- description?: string | undefined;
88
88
  }, {
89
89
  manufacturer_id: string;
90
90
  display_name: string;
@@ -97,6 +97,7 @@ export declare const manufacturer: z.ZodObject<{
97
97
  message: string;
98
98
  annotation_code: "subscription_required";
99
99
  }[];
100
+ description?: string | undefined;
100
101
  logo?: {
101
102
  height: number;
102
103
  width: number;
@@ -112,6 +113,5 @@ export declare const manufacturer: z.ZodObject<{
112
113
  us_customer_support_email?: string | undefined;
113
114
  us_customer_support_contact_url?: string | undefined;
114
115
  seam_api_guide?: string | undefined;
115
- description?: string | undefined;
116
116
  }>;
117
117
  export type Manufacturer = z.infer<typeof manufacturer>;