@seamapi/types 1.442.0 → 1.444.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 (89) hide show
  1. package/dist/connect.cjs +131 -2
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +1935 -1913
  4. package/dist/devicedb.cjs.map +1 -1
  5. package/dist/devicedb.d.cts +27 -27
  6. package/dist/index.cjs +131 -2
  7. package/dist/index.cjs.map +1 -1
  8. package/lib/seam/connect/models/access-codes/managed-access-code.d.ts +387 -389
  9. package/lib/seam/connect/models/access-codes/unmanaged-access-code.d.ts +173 -186
  10. package/lib/seam/connect/models/acs/acs-access-group.d.ts +18 -18
  11. package/lib/seam/connect/models/acs/acs-credential.d.ts +63 -63
  12. package/lib/seam/connect/models/acs/acs-encoder.d.ts +6 -6
  13. package/lib/seam/connect/models/acs/acs-entrance.d.ts +3 -3
  14. package/lib/seam/connect/models/acs/acs-system.d.ts +56 -56
  15. package/lib/seam/connect/models/acs/acs-users/acs-user.d.ts +152 -152
  16. package/lib/seam/connect/models/acs/acs-users/pending-mutations.d.ts +45 -45
  17. package/lib/seam/connect/models/action-attempts/action-attempt.d.ts +300 -354
  18. package/lib/seam/connect/models/action-attempts/activate-climate-preset.d.ts +12 -15
  19. package/lib/seam/connect/models/action-attempts/common.d.ts +9 -12
  20. package/lib/seam/connect/models/action-attempts/deprecated.d.ts +84 -105
  21. package/lib/seam/connect/models/action-attempts/encode-credential.d.ts +54 -57
  22. package/lib/seam/connect/models/action-attempts/lock-door.d.ts +12 -15
  23. package/lib/seam/connect/models/action-attempts/push-thermostat-programs.d.ts +12 -15
  24. package/lib/seam/connect/models/action-attempts/reset-sandbox-workspace.d.ts +12 -15
  25. package/lib/seam/connect/models/action-attempts/scan-credential.d.ts +54 -57
  26. package/lib/seam/connect/models/action-attempts/set-fan-mode.d.ts +12 -15
  27. package/lib/seam/connect/models/action-attempts/set-hvac-mode.d.ts +12 -15
  28. package/lib/seam/connect/models/action-attempts/simulate-keypad-code-entry.d.ts +12 -15
  29. package/lib/seam/connect/models/action-attempts/simulate-manual-lock-via-keypad.d.ts +12 -15
  30. package/lib/seam/connect/models/action-attempts/unlock-door.d.ts +12 -15
  31. package/lib/seam/connect/models/batches/batch.d.ts +128 -120
  32. package/lib/seam/connect/models/batches/spaces.d.ts +128 -120
  33. package/lib/seam/connect/models/bridges/bridge-client-session.d.ts +24 -24
  34. package/lib/seam/connect/models/client-sessions/client-session.d.ts +2 -2
  35. package/lib/seam/connect/models/connected-accounts/connected-account.d.ts +78 -78
  36. package/lib/seam/connect/models/customer/access-grant-resources.d.ts +30 -30
  37. package/lib/seam/connect/models/customer/customer-data.d.ts +57 -57
  38. package/lib/seam/connect/models/customer/location-resources.d.ts +54 -54
  39. package/lib/seam/connect/models/customer/user-identity-resources.d.ts +30 -30
  40. package/lib/seam/connect/models/devices/capability-properties/index.d.ts +3 -3
  41. package/lib/seam/connect/models/devices/device-provider.d.ts +4 -4
  42. package/lib/seam/connect/models/devices/device.d.ts +368 -376
  43. package/lib/seam/connect/models/devices/unmanaged-device.d.ts +118 -120
  44. package/lib/seam/connect/models/events/access-codes.d.ts +136 -136
  45. package/lib/seam/connect/models/events/access-grants.d.ts +40 -40
  46. package/lib/seam/connect/models/events/access-methods.d.ts +40 -40
  47. package/lib/seam/connect/models/events/acs/access-groups.d.ts +10 -10
  48. package/lib/seam/connect/models/events/acs/common.d.ts +3 -3
  49. package/lib/seam/connect/models/events/acs/credentials.d.ts +40 -40
  50. package/lib/seam/connect/models/events/acs/encoders.d.ts +20 -20
  51. package/lib/seam/connect/models/events/acs/entrances.d.ts +20 -20
  52. package/lib/seam/connect/models/events/acs/index.d.ts +67 -67
  53. package/lib/seam/connect/models/events/acs/systems.d.ts +24 -24
  54. package/lib/seam/connect/models/events/acs/users.d.ts +20 -20
  55. package/lib/seam/connect/models/events/action-attempts.d.ts +32 -32
  56. package/lib/seam/connect/models/events/client-sessions.d.ts +8 -8
  57. package/lib/seam/connect/models/events/connect-webviews.d.ts +16 -16
  58. package/lib/seam/connect/models/events/connected-accounts.d.ts +56 -56
  59. package/lib/seam/connect/models/events/devices.d.ts +266 -266
  60. package/lib/seam/connect/models/events/enrollment-automations.d.ts +8 -8
  61. package/lib/seam/connect/models/events/phones.d.ts +8 -8
  62. package/lib/seam/connect/models/events/seam-event.d.ts +372 -372
  63. package/lib/seam/connect/models/phones/phone-session.d.ts +50 -50
  64. package/lib/seam/connect/models/spaces/space.d.ts +6 -0
  65. package/lib/seam/connect/models/spaces/space.js +2 -0
  66. package/lib/seam/connect/models/spaces/space.js.map +1 -1
  67. package/lib/seam/connect/models/user-identities/user-identity.d.ts +18 -18
  68. package/lib/seam/connect/openapi.d.ts +50 -0
  69. package/lib/seam/connect/openapi.js +127 -0
  70. package/lib/seam/connect/openapi.js.map +1 -1
  71. package/lib/seam/connect/route-types.d.ts +36 -0
  72. package/lib/seam/devicedb/models/device-model.d.ts +15 -15
  73. package/lib/seam/devicedb/route-specs.d.ts +12 -12
  74. package/package.json +8 -7
  75. package/src/lib/seam/connect/models/spaces/space.ts +2 -0
  76. package/src/lib/seam/connect/openapi.ts +143 -0
  77. package/src/lib/seam/connect/route-types.ts +36 -0
  78. package/lib/seam/connect/internal/enums.d.ts +0 -1
  79. package/lib/seam/connect/internal/enums.js +0 -2
  80. package/lib/seam/connect/internal/enums.js.map +0 -1
  81. package/lib/seam/connect/internal/index.d.ts +0 -4
  82. package/lib/seam/connect/internal/index.js +0 -5
  83. package/lib/seam/connect/internal/index.js.map +0 -1
  84. package/lib/seam/connect/internal/model-types.d.ts +0 -2
  85. package/lib/seam/connect/internal/model-types.js +0 -2
  86. package/lib/seam/connect/internal/model-types.js.map +0 -1
  87. package/lib/seam/connect/internal/schemas.d.ts +0 -2
  88. package/lib/seam/connect/internal/schemas.js +0 -3
  89. package/lib/seam/connect/internal/schemas.js.map +0 -1
@@ -11453,6 +11453,12 @@ export interface Routes {
11453
11453
  commonParams: {
11454
11454
  /** ID of access grant to list access methods for. */
11455
11455
  access_grant_id: string;
11456
+ /** ID of the device for which you want to retrieve all access methods. */
11457
+ device_id?: string | undefined;
11458
+ /** ID of the entrance for which you want to retrieve all access methods. */
11459
+ acs_entrance_id?: string | undefined;
11460
+ /** ID of the space for which you want to retrieve all access methods. */
11461
+ space_id?: string | undefined;
11456
11462
  };
11457
11463
  formData: {};
11458
11464
  jsonResponse: {
@@ -23866,6 +23872,8 @@ export interface Routes {
23866
23872
  space_id?: string | undefined;
23867
23873
  /** String for which to search. Filters returned devices to include all records that satisfy a partial match using `device_id`, `display_name`, `custom_metadata` or `location.location_name`. */
23868
23874
  search?: string | undefined;
23875
+ /** ID of the access method for which you want to retrieve all devices. */
23876
+ access_method_id?: string | undefined;
23869
23877
  };
23870
23878
  formData: {};
23871
23879
  jsonResponse: {
@@ -25577,6 +25585,8 @@ export interface Routes {
25577
25585
  space_id?: string | undefined;
25578
25586
  /** String for which to search. Filters returned devices to include all records that satisfy a partial match using `device_id`, `display_name`, `custom_metadata` or `location.location_name`. */
25579
25587
  search?: string | undefined;
25588
+ /** ID of the access method for which you want to retrieve all devices. */
25589
+ access_method_id?: string | undefined;
25580
25590
  };
25581
25591
  formData: {};
25582
25592
  jsonResponse: {
@@ -31665,6 +31675,8 @@ export interface Routes {
31665
31675
  space_id?: string | undefined;
31666
31676
  /** String for which to search. Filters returned devices to include all records that satisfy a partial match using `device_id`, `display_name`, `custom_metadata` or `location.location_name`. */
31667
31677
  search?: string | undefined;
31678
+ /** ID of the access method for which you want to retrieve all devices. */
31679
+ access_method_id?: string | undefined;
31668
31680
  };
31669
31681
  formData: {};
31670
31682
  jsonResponse: {
@@ -39105,6 +39117,8 @@ export interface Routes {
39105
39117
  space_id?: string | undefined;
39106
39118
  /** String for which to search. Filters returned devices to include all records that satisfy a partial match using `device_id`, `display_name`, `custom_metadata` or `location.location_name`. */
39107
39119
  search?: string | undefined;
39120
+ /** ID of the access method for which you want to retrieve all devices. */
39121
+ access_method_id?: string | undefined;
39108
39122
  };
39109
39123
  formData: {};
39110
39124
  jsonResponse: {
@@ -46574,6 +46588,10 @@ export interface Routes {
46574
46588
  display_name: string;
46575
46589
  /** Date and time at which the space was created. */
46576
46590
  created_at: string;
46591
+ /** Number of devices in the space. */
46592
+ device_count: number;
46593
+ /** Number of entrances in the space. */
46594
+ acs_entrance_count: number;
46577
46595
  };
46578
46596
  };
46579
46597
  };
@@ -46612,6 +46630,10 @@ export interface Routes {
46612
46630
  display_name: string;
46613
46631
  /** Date and time at which the space was created. */
46614
46632
  created_at: string;
46633
+ /** Number of devices in the space. */
46634
+ device_count: number;
46635
+ /** Number of entrances in the space. */
46636
+ acs_entrance_count: number;
46615
46637
  };
46616
46638
  };
46617
46639
  };
@@ -46642,6 +46664,10 @@ export interface Routes {
46642
46664
  display_name: string;
46643
46665
  /** Date and time at which the space was created. */
46644
46666
  created_at: string;
46667
+ /** Number of devices in the space. */
46668
+ device_count: number;
46669
+ /** Number of entrances in the space. */
46670
+ acs_entrance_count: number;
46645
46671
  }> | undefined;
46646
46672
  devices?: Array<{
46647
46673
  /** ID of the device. */
@@ -47924,6 +47950,10 @@ export interface Routes {
47924
47950
  display_name: string;
47925
47951
  /** Date and time at which the space was created. */
47926
47952
  created_at: string;
47953
+ /** Number of devices in the space. */
47954
+ device_count: number;
47955
+ /** Number of entrances in the space. */
47956
+ acs_entrance_count: number;
47927
47957
  }>;
47928
47958
  };
47929
47959
  };
@@ -47980,6 +48010,10 @@ export interface Routes {
47980
48010
  display_name: string;
47981
48011
  /** Date and time at which the space was created. */
47982
48012
  created_at: string;
48013
+ /** Number of devices in the space. */
48014
+ device_count: number;
48015
+ /** Number of entrances in the space. */
48016
+ acs_entrance_count: number;
47983
48017
  };
47984
48018
  };
47985
48019
  };
@@ -55638,6 +55672,8 @@ export interface Routes {
55638
55672
  space_id?: string | undefined;
55639
55673
  /** String for which to search. Filters returned devices to include all records that satisfy a partial match using `device_id`, `display_name`, `custom_metadata` or `location.location_name`. */
55640
55674
  search?: string | undefined;
55675
+ /** ID of the access method for which you want to retrieve all devices. */
55676
+ access_method_id?: string | undefined;
55641
55677
  };
55642
55678
  formData: {};
55643
55679
  jsonResponse: {
@@ -3,7 +3,7 @@ export declare const device_category: z.ZodEnum<["smartlock", "sensor", "thermos
3
3
  export type DeviceCategory = z.infer<typeof device_category>;
4
4
  export declare const device_connection_type: z.ZodEnum<["wifi", "zwave", "zigbee", "unknown"]>;
5
5
  export type DeviceConnectionType = z.infer<typeof device_connection_type>;
6
- export declare const thermostat: z.ZodObject<z.objectUtil.extendShape<{
6
+ export declare const thermostat: z.ZodObject<{
7
7
  main_category: z.ZodLiteral<"thermostat">;
8
8
  physical_properties: z.ZodObject<{
9
9
  available_modes: z.ZodArray<z.ZodEnum<["heat", "cool", "fan", "eco"]>, "many">;
@@ -37,7 +37,7 @@ export declare const thermostat: z.ZodObject<z.objectUtil.extendShape<{
37
37
  }, {
38
38
  can_program_climate_schedules: boolean;
39
39
  }>;
40
- }, Pick<{
40
+ } & Pick<{
41
41
  can_remotely_unlock: z.ZodOptional<z.ZodLiteral<true>>;
42
42
  can_remotely_lock: z.ZodOptional<z.ZodLiteral<true>>;
43
43
  can_program_offline_access_codes: z.ZodOptional<z.ZodLiteral<true>>;
@@ -46,7 +46,7 @@ export declare const thermostat: z.ZodObject<z.objectUtil.extendShape<{
46
46
  can_hvac_cool: z.ZodOptional<z.ZodLiteral<true>>;
47
47
  can_hvac_heat_cool: z.ZodOptional<z.ZodLiteral<true>>;
48
48
  can_turn_off_hvac: z.ZodOptional<z.ZodLiteral<true>>;
49
- }, "can_hvac_heat" | "can_hvac_cool" | "can_hvac_heat_cool" | "can_turn_off_hvac">>, "strip", z.ZodTypeAny, {
49
+ }, "can_hvac_heat" | "can_hvac_cool" | "can_hvac_heat_cool" | "can_turn_off_hvac">, "strip", z.ZodTypeAny, {
50
50
  main_category: "thermostat";
51
51
  physical_properties: {
52
52
  has_humidity_sensor: boolean;
@@ -84,7 +84,7 @@ export declare const thermostat: z.ZodObject<z.objectUtil.extendShape<{
84
84
  can_turn_off_hvac?: true | undefined;
85
85
  }>;
86
86
  export type ThermostatProperties = z.infer<typeof thermostat>;
87
- export declare const device_model_category_specific_properties: z.ZodDiscriminatedUnion<"main_category", [z.ZodObject<z.objectUtil.extendShape<{
87
+ export declare const device_model_category_specific_properties: z.ZodDiscriminatedUnion<"main_category", [z.ZodObject<{
88
88
  main_category: z.ZodLiteral<"smartlock">;
89
89
  physical_properties: z.ZodObject<{
90
90
  lock_type: z.ZodEnum<["deadbolt", "lever", "mortise", "lockbox", "cylinder", "padlock", "locker", "unknown"]>;
@@ -115,7 +115,7 @@ export declare const device_model_category_specific_properties: z.ZodDiscriminat
115
115
  can_program_access_schedules: boolean;
116
116
  can_program_access_codes_offline: boolean;
117
117
  }>;
118
- }, Pick<{
118
+ } & Pick<{
119
119
  can_remotely_unlock: z.ZodOptional<z.ZodLiteral<true>>;
120
120
  can_remotely_lock: z.ZodOptional<z.ZodLiteral<true>>;
121
121
  can_program_offline_access_codes: z.ZodOptional<z.ZodLiteral<true>>;
@@ -124,7 +124,7 @@ export declare const device_model_category_specific_properties: z.ZodDiscriminat
124
124
  can_hvac_cool: z.ZodOptional<z.ZodLiteral<true>>;
125
125
  can_hvac_heat_cool: z.ZodOptional<z.ZodLiteral<true>>;
126
126
  can_turn_off_hvac: z.ZodOptional<z.ZodLiteral<true>>;
127
- }, "can_remotely_unlock" | "can_remotely_lock" | "can_program_offline_access_codes" | "can_program_online_access_codes">>, "strip", z.ZodTypeAny, {
127
+ }, "can_remotely_unlock" | "can_remotely_lock" | "can_program_offline_access_codes" | "can_program_online_access_codes">, "strip", z.ZodTypeAny, {
128
128
  main_category: "smartlock";
129
129
  physical_properties: {
130
130
  has_physical_key: boolean;
@@ -192,7 +192,7 @@ export declare const device_model_category_specific_properties: z.ZodDiscriminat
192
192
  has_temperature_sensor: boolean;
193
193
  has_occupancy_detection: boolean;
194
194
  };
195
- }>, z.ZodObject<z.objectUtil.extendShape<{
195
+ }>, z.ZodObject<{
196
196
  main_category: z.ZodLiteral<"thermostat">;
197
197
  physical_properties: z.ZodObject<{
198
198
  available_modes: z.ZodArray<z.ZodEnum<["heat", "cool", "fan", "eco"]>, "many">;
@@ -226,7 +226,7 @@ export declare const device_model_category_specific_properties: z.ZodDiscriminat
226
226
  }, {
227
227
  can_program_climate_schedules: boolean;
228
228
  }>;
229
- }, Pick<{
229
+ } & Pick<{
230
230
  can_remotely_unlock: z.ZodOptional<z.ZodLiteral<true>>;
231
231
  can_remotely_lock: z.ZodOptional<z.ZodLiteral<true>>;
232
232
  can_program_offline_access_codes: z.ZodOptional<z.ZodLiteral<true>>;
@@ -235,7 +235,7 @@ export declare const device_model_category_specific_properties: z.ZodDiscriminat
235
235
  can_hvac_cool: z.ZodOptional<z.ZodLiteral<true>>;
236
236
  can_hvac_heat_cool: z.ZodOptional<z.ZodLiteral<true>>;
237
237
  can_turn_off_hvac: z.ZodOptional<z.ZodLiteral<true>>;
238
- }, "can_hvac_heat" | "can_hvac_cool" | "can_hvac_heat_cool" | "can_turn_off_hvac">>, "strip", z.ZodTypeAny, {
238
+ }, "can_hvac_heat" | "can_hvac_cool" | "can_hvac_heat_cool" | "can_turn_off_hvac">, "strip", z.ZodTypeAny, {
239
239
  main_category: "thermostat";
240
240
  physical_properties: {
241
241
  has_humidity_sensor: boolean;
@@ -982,7 +982,7 @@ export declare const device_model_v1: z.ZodIntersection<z.ZodObject<{
982
982
  }[];
983
983
  power_sources: ("battery" | "hardwired" | "mechanical_harvesting" | "wireless" | "ethernet")[];
984
984
  product_url?: string | undefined;
985
- }>, z.ZodDiscriminatedUnion<"main_category", [z.ZodObject<z.objectUtil.extendShape<{
985
+ }>, z.ZodDiscriminatedUnion<"main_category", [z.ZodObject<{
986
986
  main_category: z.ZodLiteral<"smartlock">;
987
987
  physical_properties: z.ZodObject<{
988
988
  lock_type: z.ZodEnum<["deadbolt", "lever", "mortise", "lockbox", "cylinder", "padlock", "locker", "unknown"]>;
@@ -1013,7 +1013,7 @@ export declare const device_model_v1: z.ZodIntersection<z.ZodObject<{
1013
1013
  can_program_access_schedules: boolean;
1014
1014
  can_program_access_codes_offline: boolean;
1015
1015
  }>;
1016
- }, Pick<{
1016
+ } & Pick<{
1017
1017
  can_remotely_unlock: z.ZodOptional<z.ZodLiteral<true>>;
1018
1018
  can_remotely_lock: z.ZodOptional<z.ZodLiteral<true>>;
1019
1019
  can_program_offline_access_codes: z.ZodOptional<z.ZodLiteral<true>>;
@@ -1022,7 +1022,7 @@ export declare const device_model_v1: z.ZodIntersection<z.ZodObject<{
1022
1022
  can_hvac_cool: z.ZodOptional<z.ZodLiteral<true>>;
1023
1023
  can_hvac_heat_cool: z.ZodOptional<z.ZodLiteral<true>>;
1024
1024
  can_turn_off_hvac: z.ZodOptional<z.ZodLiteral<true>>;
1025
- }, "can_remotely_unlock" | "can_remotely_lock" | "can_program_offline_access_codes" | "can_program_online_access_codes">>, "strip", z.ZodTypeAny, {
1025
+ }, "can_remotely_unlock" | "can_remotely_lock" | "can_program_offline_access_codes" | "can_program_online_access_codes">, "strip", z.ZodTypeAny, {
1026
1026
  main_category: "smartlock";
1027
1027
  physical_properties: {
1028
1028
  has_physical_key: boolean;
@@ -1090,7 +1090,7 @@ export declare const device_model_v1: z.ZodIntersection<z.ZodObject<{
1090
1090
  has_temperature_sensor: boolean;
1091
1091
  has_occupancy_detection: boolean;
1092
1092
  };
1093
- }>, z.ZodObject<z.objectUtil.extendShape<{
1093
+ }>, z.ZodObject<{
1094
1094
  main_category: z.ZodLiteral<"thermostat">;
1095
1095
  physical_properties: z.ZodObject<{
1096
1096
  available_modes: z.ZodArray<z.ZodEnum<["heat", "cool", "fan", "eco"]>, "many">;
@@ -1124,7 +1124,7 @@ export declare const device_model_v1: z.ZodIntersection<z.ZodObject<{
1124
1124
  }, {
1125
1125
  can_program_climate_schedules: boolean;
1126
1126
  }>;
1127
- }, Pick<{
1127
+ } & Pick<{
1128
1128
  can_remotely_unlock: z.ZodOptional<z.ZodLiteral<true>>;
1129
1129
  can_remotely_lock: z.ZodOptional<z.ZodLiteral<true>>;
1130
1130
  can_program_offline_access_codes: z.ZodOptional<z.ZodLiteral<true>>;
@@ -1133,7 +1133,7 @@ export declare const device_model_v1: z.ZodIntersection<z.ZodObject<{
1133
1133
  can_hvac_cool: z.ZodOptional<z.ZodLiteral<true>>;
1134
1134
  can_hvac_heat_cool: z.ZodOptional<z.ZodLiteral<true>>;
1135
1135
  can_turn_off_hvac: z.ZodOptional<z.ZodLiteral<true>>;
1136
- }, "can_hvac_heat" | "can_hvac_cool" | "can_hvac_heat_cool" | "can_turn_off_hvac">>, "strip", z.ZodTypeAny, {
1136
+ }, "can_hvac_heat" | "can_hvac_cool" | "can_hvac_heat_cool" | "can_turn_off_hvac">, "strip", z.ZodTypeAny, {
1137
1137
  main_category: "thermostat";
1138
1138
  physical_properties: {
1139
1139
  has_humidity_sensor: boolean;
@@ -329,7 +329,7 @@ export declare const routes: {
329
329
  }[];
330
330
  power_sources: ("battery" | "hardwired" | "mechanical_harvesting" | "wireless" | "ethernet")[];
331
331
  product_url?: string | undefined;
332
- }>, z.ZodDiscriminatedUnion<"main_category", [z.ZodObject<z.objectUtil.extendShape<{
332
+ }>, z.ZodDiscriminatedUnion<"main_category", [z.ZodObject<{
333
333
  main_category: z.ZodLiteral<"smartlock">;
334
334
  physical_properties: z.ZodObject<{
335
335
  lock_type: z.ZodEnum<["deadbolt", "lever", "mortise", "lockbox", "cylinder", "padlock", "locker", "unknown"]>;
@@ -360,7 +360,7 @@ export declare const routes: {
360
360
  can_program_access_schedules: boolean;
361
361
  can_program_access_codes_offline: boolean;
362
362
  }>;
363
- }, Pick<{
363
+ } & Pick<{
364
364
  can_remotely_unlock: z.ZodOptional<z.ZodLiteral<true>>;
365
365
  can_remotely_lock: z.ZodOptional<z.ZodLiteral<true>>;
366
366
  can_program_offline_access_codes: z.ZodOptional<z.ZodLiteral<true>>;
@@ -369,7 +369,7 @@ export declare const routes: {
369
369
  can_hvac_cool: z.ZodOptional<z.ZodLiteral<true>>;
370
370
  can_hvac_heat_cool: z.ZodOptional<z.ZodLiteral<true>>;
371
371
  can_turn_off_hvac: z.ZodOptional<z.ZodLiteral<true>>;
372
- }, "can_remotely_unlock" | "can_remotely_lock" | "can_program_offline_access_codes" | "can_program_online_access_codes">>, "strip", z.ZodTypeAny, {
372
+ }, "can_remotely_unlock" | "can_remotely_lock" | "can_program_offline_access_codes" | "can_program_online_access_codes">, "strip", z.ZodTypeAny, {
373
373
  main_category: "smartlock";
374
374
  physical_properties: {
375
375
  has_physical_key: boolean;
@@ -437,7 +437,7 @@ export declare const routes: {
437
437
  has_temperature_sensor: boolean;
438
438
  has_occupancy_detection: boolean;
439
439
  };
440
- }>, z.ZodObject<z.objectUtil.extendShape<{
440
+ }>, z.ZodObject<{
441
441
  main_category: z.ZodLiteral<"thermostat">;
442
442
  physical_properties: z.ZodObject<{
443
443
  available_modes: z.ZodArray<z.ZodEnum<["heat", "cool", "fan", "eco"]>, "many">;
@@ -471,7 +471,7 @@ export declare const routes: {
471
471
  }, {
472
472
  can_program_climate_schedules: boolean;
473
473
  }>;
474
- }, Pick<{
474
+ } & Pick<{
475
475
  can_remotely_unlock: z.ZodOptional<z.ZodLiteral<true>>;
476
476
  can_remotely_lock: z.ZodOptional<z.ZodLiteral<true>>;
477
477
  can_program_offline_access_codes: z.ZodOptional<z.ZodLiteral<true>>;
@@ -480,7 +480,7 @@ export declare const routes: {
480
480
  can_hvac_cool: z.ZodOptional<z.ZodLiteral<true>>;
481
481
  can_hvac_heat_cool: z.ZodOptional<z.ZodLiteral<true>>;
482
482
  can_turn_off_hvac: z.ZodOptional<z.ZodLiteral<true>>;
483
- }, "can_hvac_heat" | "can_hvac_cool" | "can_hvac_heat_cool" | "can_turn_off_hvac">>, "strip", z.ZodTypeAny, {
483
+ }, "can_hvac_heat" | "can_hvac_cool" | "can_hvac_heat_cool" | "can_turn_off_hvac">, "strip", z.ZodTypeAny, {
484
484
  main_category: "thermostat";
485
485
  physical_properties: {
486
486
  has_humidity_sensor: boolean;
@@ -1190,7 +1190,7 @@ export declare const routes: {
1190
1190
  }[];
1191
1191
  power_sources: ("battery" | "hardwired" | "mechanical_harvesting" | "wireless" | "ethernet")[];
1192
1192
  product_url?: string | undefined;
1193
- }>, z.ZodDiscriminatedUnion<"main_category", [z.ZodObject<z.objectUtil.extendShape<{
1193
+ }>, z.ZodDiscriminatedUnion<"main_category", [z.ZodObject<{
1194
1194
  main_category: z.ZodLiteral<"smartlock">;
1195
1195
  physical_properties: z.ZodObject<{
1196
1196
  lock_type: z.ZodEnum<["deadbolt", "lever", "mortise", "lockbox", "cylinder", "padlock", "locker", "unknown"]>;
@@ -1221,7 +1221,7 @@ export declare const routes: {
1221
1221
  can_program_access_schedules: boolean;
1222
1222
  can_program_access_codes_offline: boolean;
1223
1223
  }>;
1224
- }, Pick<{
1224
+ } & Pick<{
1225
1225
  can_remotely_unlock: z.ZodOptional<z.ZodLiteral<true>>;
1226
1226
  can_remotely_lock: z.ZodOptional<z.ZodLiteral<true>>;
1227
1227
  can_program_offline_access_codes: z.ZodOptional<z.ZodLiteral<true>>;
@@ -1230,7 +1230,7 @@ export declare const routes: {
1230
1230
  can_hvac_cool: z.ZodOptional<z.ZodLiteral<true>>;
1231
1231
  can_hvac_heat_cool: z.ZodOptional<z.ZodLiteral<true>>;
1232
1232
  can_turn_off_hvac: z.ZodOptional<z.ZodLiteral<true>>;
1233
- }, "can_remotely_unlock" | "can_remotely_lock" | "can_program_offline_access_codes" | "can_program_online_access_codes">>, "strip", z.ZodTypeAny, {
1233
+ }, "can_remotely_unlock" | "can_remotely_lock" | "can_program_offline_access_codes" | "can_program_online_access_codes">, "strip", z.ZodTypeAny, {
1234
1234
  main_category: "smartlock";
1235
1235
  physical_properties: {
1236
1236
  has_physical_key: boolean;
@@ -1298,7 +1298,7 @@ export declare const routes: {
1298
1298
  has_temperature_sensor: boolean;
1299
1299
  has_occupancy_detection: boolean;
1300
1300
  };
1301
- }>, z.ZodObject<z.objectUtil.extendShape<{
1301
+ }>, z.ZodObject<{
1302
1302
  main_category: z.ZodLiteral<"thermostat">;
1303
1303
  physical_properties: z.ZodObject<{
1304
1304
  available_modes: z.ZodArray<z.ZodEnum<["heat", "cool", "fan", "eco"]>, "many">;
@@ -1332,7 +1332,7 @@ export declare const routes: {
1332
1332
  }, {
1333
1333
  can_program_climate_schedules: boolean;
1334
1334
  }>;
1335
- }, Pick<{
1335
+ } & Pick<{
1336
1336
  can_remotely_unlock: z.ZodOptional<z.ZodLiteral<true>>;
1337
1337
  can_remotely_lock: z.ZodOptional<z.ZodLiteral<true>>;
1338
1338
  can_program_offline_access_codes: z.ZodOptional<z.ZodLiteral<true>>;
@@ -1341,7 +1341,7 @@ export declare const routes: {
1341
1341
  can_hvac_cool: z.ZodOptional<z.ZodLiteral<true>>;
1342
1342
  can_hvac_heat_cool: z.ZodOptional<z.ZodLiteral<true>>;
1343
1343
  can_turn_off_hvac: z.ZodOptional<z.ZodLiteral<true>>;
1344
- }, "can_hvac_heat" | "can_hvac_cool" | "can_hvac_heat_cool" | "can_turn_off_hvac">>, "strip", z.ZodTypeAny, {
1344
+ }, "can_hvac_heat" | "can_hvac_cool" | "can_hvac_heat_cool" | "can_turn_off_hvac">, "strip", z.ZodTypeAny, {
1345
1345
  main_category: "thermostat";
1346
1346
  physical_properties: {
1347
1347
  has_humidity_sensor: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/types",
3
- "version": "1.442.0",
3
+ "version": "1.444.0",
4
4
  "description": "TypeScript types for the Seam API.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -85,17 +85,18 @@
85
85
  "postformat": "eslint --ignore-path .gitignore --fix ."
86
86
  },
87
87
  "engines": {
88
- "node": ">=18.12.0",
89
- "npm": ">= 9.0.0"
88
+ "node": ">=20.9.0",
89
+ "npm": ">=10.1.0"
90
90
  },
91
91
  "peerDependencies": {
92
92
  "zod": "^3.24.0"
93
93
  },
94
94
  "devDependencies": {
95
95
  "@seamapi/blueprint": "^0.51.1",
96
- "@types/node": "^20.8.10",
97
- "concurrently": "^8.2.0",
98
- "del-cli": "^5.0.0",
96
+ "@swc/core": "^1.11.29",
97
+ "@types/node": "^22.15.21",
98
+ "concurrently": "^9.2.0",
99
+ "del-cli": "^6.0.0",
99
100
  "eslint": "^8.9.0",
100
101
  "eslint-config-prettier": "^9.0.0",
101
102
  "eslint-config-standard": "^17.1.0",
@@ -109,7 +110,7 @@
109
110
  "tsc-alias": "^1.8.2",
110
111
  "tsup": "^8.0.1",
111
112
  "tsx": "^4.6.2",
112
- "typedoc": "^0.25.2",
113
+ "typedoc": "^0.28.7",
113
114
  "typescript": "~5.3.3",
114
115
  "zod": "^3.24.0"
115
116
  }
@@ -14,6 +14,8 @@ export const space = z.object({
14
14
  .string()
15
15
  .datetime()
16
16
  .describe('Date and time at which the space was created.'),
17
+ device_count: z.number().describe('Number of devices in the space.'),
18
+ acs_entrance_count: z.number().describe('Number of entrances in the space.'),
17
19
  }).describe(`
18
20
  ---
19
21
  draft: Early access.
@@ -20029,11 +20029,21 @@ export default {
20029
20029
  description:
20030
20030
  'Represents a space that is a logical grouping of devices and entrances. You can assign access to an entire space, thereby making granting access more efficient.',
20031
20031
  properties: {
20032
+ acs_entrance_count: {
20033
+ description: 'Number of entrances in the space.',
20034
+ format: 'float',
20035
+ type: 'number',
20036
+ },
20032
20037
  created_at: {
20033
20038
  description: 'Date and time at which the space was created.',
20034
20039
  format: 'date-time',
20035
20040
  type: 'string',
20036
20041
  },
20042
+ device_count: {
20043
+ description: 'Number of devices in the space.',
20044
+ format: 'float',
20045
+ type: 'number',
20046
+ },
20037
20047
  display_name: {
20038
20048
  description: 'Display name for the space.',
20039
20049
  type: 'string',
@@ -20057,6 +20067,8 @@ export default {
20057
20067
  'name',
20058
20068
  'display_name',
20059
20069
  'created_at',
20070
+ 'device_count',
20071
+ 'acs_entrance_count',
20060
20072
  ],
20061
20073
  type: 'object',
20062
20074
  'x-draft': 'Early access.',
@@ -28451,6 +28463,39 @@ export default {
28451
28463
  type: 'string',
28452
28464
  },
28453
28465
  },
28466
+ {
28467
+ in: 'query',
28468
+ name: 'device_id',
28469
+ required: false,
28470
+ schema: {
28471
+ description:
28472
+ 'ID of the device for which you want to retrieve all access methods.',
28473
+ format: 'uuid',
28474
+ type: 'string',
28475
+ },
28476
+ },
28477
+ {
28478
+ in: 'query',
28479
+ name: 'acs_entrance_id',
28480
+ required: false,
28481
+ schema: {
28482
+ description:
28483
+ 'ID of the entrance for which you want to retrieve all access methods.',
28484
+ format: 'uuid',
28485
+ type: 'string',
28486
+ },
28487
+ },
28488
+ {
28489
+ in: 'query',
28490
+ name: 'space_id',
28491
+ required: false,
28492
+ schema: {
28493
+ description:
28494
+ 'ID of the space for which you want to retrieve all access methods.',
28495
+ format: 'uuid',
28496
+ type: 'string',
28497
+ },
28498
+ },
28454
28499
  ],
28455
28500
  responses: {
28456
28501
  200: {
@@ -28503,6 +28548,24 @@ export default {
28503
28548
  format: 'uuid',
28504
28549
  type: 'string',
28505
28550
  },
28551
+ acs_entrance_id: {
28552
+ description:
28553
+ 'ID of the entrance for which you want to retrieve all access methods.',
28554
+ format: 'uuid',
28555
+ type: 'string',
28556
+ },
28557
+ device_id: {
28558
+ description:
28559
+ 'ID of the device for which you want to retrieve all access methods.',
28560
+ format: 'uuid',
28561
+ type: 'string',
28562
+ },
28563
+ space_id: {
28564
+ description:
28565
+ 'ID of the space for which you want to retrieve all access methods.',
28566
+ format: 'uuid',
28567
+ type: 'string',
28568
+ },
28506
28569
  },
28507
28570
  required: ['access_grant_id'],
28508
28571
  type: 'object',
@@ -38984,6 +39047,16 @@ export default {
38984
39047
  type: 'string',
38985
39048
  },
38986
39049
  },
39050
+ {
39051
+ in: 'query',
39052
+ name: 'access_method_id',
39053
+ schema: {
39054
+ description:
39055
+ 'ID of the access method for which you want to retrieve all devices.',
39056
+ format: 'uuid',
39057
+ type: 'string',
39058
+ },
39059
+ },
38987
39060
  ],
38988
39061
  responses: {
38989
39062
  200: {
@@ -39032,6 +39105,12 @@ export default {
39032
39105
  'application/json': {
39033
39106
  schema: {
39034
39107
  properties: {
39108
+ access_method_id: {
39109
+ description:
39110
+ 'ID of the access method for which you want to retrieve all devices.',
39111
+ format: 'uuid',
39112
+ type: 'string',
39113
+ },
39035
39114
  connect_webview_id: {
39036
39115
  description:
39037
39116
  'ID of the Connect Webview for which you want to list devices.',
@@ -40245,6 +40324,16 @@ export default {
40245
40324
  type: 'string',
40246
40325
  },
40247
40326
  },
40327
+ {
40328
+ in: 'query',
40329
+ name: 'access_method_id',
40330
+ schema: {
40331
+ description:
40332
+ 'ID of the access method for which you want to retrieve all devices.',
40333
+ format: 'uuid',
40334
+ type: 'string',
40335
+ },
40336
+ },
40248
40337
  ],
40249
40338
  responses: {
40250
40339
  200: {
@@ -40290,6 +40379,12 @@ export default {
40290
40379
  'application/json': {
40291
40380
  schema: {
40292
40381
  properties: {
40382
+ access_method_id: {
40383
+ description:
40384
+ 'ID of the access method for which you want to retrieve all devices.',
40385
+ format: 'uuid',
40386
+ type: 'string',
40387
+ },
40293
40388
  connect_webview_id: {
40294
40389
  description:
40295
40390
  'ID of the Connect Webview for which you want to list devices.',
@@ -42199,6 +42294,16 @@ export default {
42199
42294
  type: 'string',
42200
42295
  },
42201
42296
  },
42297
+ {
42298
+ in: 'query',
42299
+ name: 'access_method_id',
42300
+ schema: {
42301
+ description:
42302
+ 'ID of the access method for which you want to retrieve all devices.',
42303
+ format: 'uuid',
42304
+ type: 'string',
42305
+ },
42306
+ },
42202
42307
  ],
42203
42308
  responses: {
42204
42309
  200: {
@@ -42249,6 +42354,12 @@ export default {
42249
42354
  'application/json': {
42250
42355
  schema: {
42251
42356
  properties: {
42357
+ access_method_id: {
42358
+ description:
42359
+ 'ID of the access method for which you want to retrieve all devices.',
42360
+ format: 'uuid',
42361
+ type: 'string',
42362
+ },
42252
42363
  connect_webview_id: {
42253
42364
  description:
42254
42365
  'ID of the Connect Webview for which you want to list devices.',
@@ -43233,6 +43344,16 @@ export default {
43233
43344
  type: 'string',
43234
43345
  },
43235
43346
  },
43347
+ {
43348
+ in: 'query',
43349
+ name: 'access_method_id',
43350
+ schema: {
43351
+ description:
43352
+ 'ID of the access method for which you want to retrieve all devices.',
43353
+ format: 'uuid',
43354
+ type: 'string',
43355
+ },
43356
+ },
43236
43357
  ],
43237
43358
  responses: {
43238
43359
  200: {
@@ -43283,6 +43404,12 @@ export default {
43283
43404
  'application/json': {
43284
43405
  schema: {
43285
43406
  properties: {
43407
+ access_method_id: {
43408
+ description:
43409
+ 'ID of the access method for which you want to retrieve all devices.',
43410
+ format: 'uuid',
43411
+ type: 'string',
43412
+ },
43286
43413
  connect_webview_id: {
43287
43414
  description:
43288
43415
  'ID of the Connect Webview for which you want to list devices.',
@@ -49061,6 +49188,16 @@ export default {
49061
49188
  type: 'string',
49062
49189
  },
49063
49190
  },
49191
+ {
49192
+ in: 'query',
49193
+ name: 'access_method_id',
49194
+ schema: {
49195
+ description:
49196
+ 'ID of the access method for which you want to retrieve all devices.',
49197
+ format: 'uuid',
49198
+ type: 'string',
49199
+ },
49200
+ },
49064
49201
  ],
49065
49202
  responses: {
49066
49203
  200: {
@@ -49111,6 +49248,12 @@ export default {
49111
49248
  'application/json': {
49112
49249
  schema: {
49113
49250
  properties: {
49251
+ access_method_id: {
49252
+ description:
49253
+ 'ID of the access method for which you want to retrieve all devices.',
49254
+ format: 'uuid',
49255
+ type: 'string',
49256
+ },
49114
49257
  connect_webview_id: {
49115
49258
  description:
49116
49259
  'ID of the Connect Webview for which you want to list devices.',