@seamapi/types 1.442.0 → 1.443.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 +86 -2
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +1914 -1913
  4. package/dist/devicedb.cjs.map +1 -1
  5. package/dist/devicedb.d.cts +27 -27
  6. package/dist/index.cjs +86 -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 +35 -0
  69. package/lib/seam/connect/openapi.js +82 -0
  70. package/lib/seam/connect/openapi.js.map +1 -1
  71. package/lib/seam/connect/route-types.d.ts +30 -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 +92 -0
  77. package/src/lib/seam/connect/route-types.ts +30 -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
@@ -23866,6 +23866,8 @@ export interface Routes {
23866
23866
  space_id?: string | undefined;
23867
23867
  /** 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
23868
  search?: string | undefined;
23869
+ /** ID of the access method for which you want to retrieve all devices. */
23870
+ access_method_id?: string | undefined;
23869
23871
  };
23870
23872
  formData: {};
23871
23873
  jsonResponse: {
@@ -25577,6 +25579,8 @@ export interface Routes {
25577
25579
  space_id?: string | undefined;
25578
25580
  /** 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
25581
  search?: string | undefined;
25582
+ /** ID of the access method for which you want to retrieve all devices. */
25583
+ access_method_id?: string | undefined;
25580
25584
  };
25581
25585
  formData: {};
25582
25586
  jsonResponse: {
@@ -31665,6 +31669,8 @@ export interface Routes {
31665
31669
  space_id?: string | undefined;
31666
31670
  /** 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
31671
  search?: string | undefined;
31672
+ /** ID of the access method for which you want to retrieve all devices. */
31673
+ access_method_id?: string | undefined;
31668
31674
  };
31669
31675
  formData: {};
31670
31676
  jsonResponse: {
@@ -39105,6 +39111,8 @@ export interface Routes {
39105
39111
  space_id?: string | undefined;
39106
39112
  /** 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
39113
  search?: string | undefined;
39114
+ /** ID of the access method for which you want to retrieve all devices. */
39115
+ access_method_id?: string | undefined;
39108
39116
  };
39109
39117
  formData: {};
39110
39118
  jsonResponse: {
@@ -46574,6 +46582,10 @@ export interface Routes {
46574
46582
  display_name: string;
46575
46583
  /** Date and time at which the space was created. */
46576
46584
  created_at: string;
46585
+ /** Number of devices in the space. */
46586
+ device_count: number;
46587
+ /** Number of entrances in the space. */
46588
+ acs_entrance_count: number;
46577
46589
  };
46578
46590
  };
46579
46591
  };
@@ -46612,6 +46624,10 @@ export interface Routes {
46612
46624
  display_name: string;
46613
46625
  /** Date and time at which the space was created. */
46614
46626
  created_at: string;
46627
+ /** Number of devices in the space. */
46628
+ device_count: number;
46629
+ /** Number of entrances in the space. */
46630
+ acs_entrance_count: number;
46615
46631
  };
46616
46632
  };
46617
46633
  };
@@ -46642,6 +46658,10 @@ export interface Routes {
46642
46658
  display_name: string;
46643
46659
  /** Date and time at which the space was created. */
46644
46660
  created_at: string;
46661
+ /** Number of devices in the space. */
46662
+ device_count: number;
46663
+ /** Number of entrances in the space. */
46664
+ acs_entrance_count: number;
46645
46665
  }> | undefined;
46646
46666
  devices?: Array<{
46647
46667
  /** ID of the device. */
@@ -47924,6 +47944,10 @@ export interface Routes {
47924
47944
  display_name: string;
47925
47945
  /** Date and time at which the space was created. */
47926
47946
  created_at: string;
47947
+ /** Number of devices in the space. */
47948
+ device_count: number;
47949
+ /** Number of entrances in the space. */
47950
+ acs_entrance_count: number;
47927
47951
  }>;
47928
47952
  };
47929
47953
  };
@@ -47980,6 +48004,10 @@ export interface Routes {
47980
48004
  display_name: string;
47981
48005
  /** Date and time at which the space was created. */
47982
48006
  created_at: string;
48007
+ /** Number of devices in the space. */
48008
+ device_count: number;
48009
+ /** Number of entrances in the space. */
48010
+ acs_entrance_count: number;
47983
48011
  };
47984
48012
  };
47985
48013
  };
@@ -55638,6 +55666,8 @@ export interface Routes {
55638
55666
  space_id?: string | undefined;
55639
55667
  /** 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
55668
  search?: string | undefined;
55669
+ /** ID of the access method for which you want to retrieve all devices. */
55670
+ access_method_id?: string | undefined;
55641
55671
  };
55642
55672
  formData: {};
55643
55673
  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.443.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.',
@@ -38984,6 +38996,16 @@ export default {
38984
38996
  type: 'string',
38985
38997
  },
38986
38998
  },
38999
+ {
39000
+ in: 'query',
39001
+ name: 'access_method_id',
39002
+ schema: {
39003
+ description:
39004
+ 'ID of the access method for which you want to retrieve all devices.',
39005
+ format: 'uuid',
39006
+ type: 'string',
39007
+ },
39008
+ },
38987
39009
  ],
38988
39010
  responses: {
38989
39011
  200: {
@@ -39032,6 +39054,12 @@ export default {
39032
39054
  'application/json': {
39033
39055
  schema: {
39034
39056
  properties: {
39057
+ access_method_id: {
39058
+ description:
39059
+ 'ID of the access method for which you want to retrieve all devices.',
39060
+ format: 'uuid',
39061
+ type: 'string',
39062
+ },
39035
39063
  connect_webview_id: {
39036
39064
  description:
39037
39065
  'ID of the Connect Webview for which you want to list devices.',
@@ -40245,6 +40273,16 @@ export default {
40245
40273
  type: 'string',
40246
40274
  },
40247
40275
  },
40276
+ {
40277
+ in: 'query',
40278
+ name: 'access_method_id',
40279
+ schema: {
40280
+ description:
40281
+ 'ID of the access method for which you want to retrieve all devices.',
40282
+ format: 'uuid',
40283
+ type: 'string',
40284
+ },
40285
+ },
40248
40286
  ],
40249
40287
  responses: {
40250
40288
  200: {
@@ -40290,6 +40328,12 @@ export default {
40290
40328
  'application/json': {
40291
40329
  schema: {
40292
40330
  properties: {
40331
+ access_method_id: {
40332
+ description:
40333
+ 'ID of the access method for which you want to retrieve all devices.',
40334
+ format: 'uuid',
40335
+ type: 'string',
40336
+ },
40293
40337
  connect_webview_id: {
40294
40338
  description:
40295
40339
  'ID of the Connect Webview for which you want to list devices.',
@@ -42199,6 +42243,16 @@ export default {
42199
42243
  type: 'string',
42200
42244
  },
42201
42245
  },
42246
+ {
42247
+ in: 'query',
42248
+ name: 'access_method_id',
42249
+ schema: {
42250
+ description:
42251
+ 'ID of the access method for which you want to retrieve all devices.',
42252
+ format: 'uuid',
42253
+ type: 'string',
42254
+ },
42255
+ },
42202
42256
  ],
42203
42257
  responses: {
42204
42258
  200: {
@@ -42249,6 +42303,12 @@ export default {
42249
42303
  'application/json': {
42250
42304
  schema: {
42251
42305
  properties: {
42306
+ access_method_id: {
42307
+ description:
42308
+ 'ID of the access method for which you want to retrieve all devices.',
42309
+ format: 'uuid',
42310
+ type: 'string',
42311
+ },
42252
42312
  connect_webview_id: {
42253
42313
  description:
42254
42314
  'ID of the Connect Webview for which you want to list devices.',
@@ -43233,6 +43293,16 @@ export default {
43233
43293
  type: 'string',
43234
43294
  },
43235
43295
  },
43296
+ {
43297
+ in: 'query',
43298
+ name: 'access_method_id',
43299
+ schema: {
43300
+ description:
43301
+ 'ID of the access method for which you want to retrieve all devices.',
43302
+ format: 'uuid',
43303
+ type: 'string',
43304
+ },
43305
+ },
43236
43306
  ],
43237
43307
  responses: {
43238
43308
  200: {
@@ -43283,6 +43353,12 @@ export default {
43283
43353
  'application/json': {
43284
43354
  schema: {
43285
43355
  properties: {
43356
+ access_method_id: {
43357
+ description:
43358
+ 'ID of the access method for which you want to retrieve all devices.',
43359
+ format: 'uuid',
43360
+ type: 'string',
43361
+ },
43286
43362
  connect_webview_id: {
43287
43363
  description:
43288
43364
  'ID of the Connect Webview for which you want to list devices.',
@@ -49061,6 +49137,16 @@ export default {
49061
49137
  type: 'string',
49062
49138
  },
49063
49139
  },
49140
+ {
49141
+ in: 'query',
49142
+ name: 'access_method_id',
49143
+ schema: {
49144
+ description:
49145
+ 'ID of the access method for which you want to retrieve all devices.',
49146
+ format: 'uuid',
49147
+ type: 'string',
49148
+ },
49149
+ },
49064
49150
  ],
49065
49151
  responses: {
49066
49152
  200: {
@@ -49111,6 +49197,12 @@ export default {
49111
49197
  'application/json': {
49112
49198
  schema: {
49113
49199
  properties: {
49200
+ access_method_id: {
49201
+ description:
49202
+ 'ID of the access method for which you want to retrieve all devices.',
49203
+ format: 'uuid',
49204
+ type: 'string',
49205
+ },
49114
49206
  connect_webview_id: {
49115
49207
  description:
49116
49208
  'ID of the Connect Webview for which you want to list devices.',
@@ -27409,6 +27409,8 @@ export interface Routes {
27409
27409
  space_id?: string | undefined
27410
27410
  /** 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`. */
27411
27411
  search?: string | undefined
27412
+ /** ID of the access method for which you want to retrieve all devices. */
27413
+ access_method_id?: string | undefined
27412
27414
  }
27413
27415
  formData: {}
27414
27416
  jsonResponse: {
@@ -29711,6 +29713,8 @@ export interface Routes {
29711
29713
  space_id?: string | undefined
29712
29714
  /** 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`. */
29713
29715
  search?: string | undefined
29716
+ /** ID of the access method for which you want to retrieve all devices. */
29717
+ access_method_id?: string | undefined
29714
29718
  }
29715
29719
  formData: {}
29716
29720
  jsonResponse: {
@@ -37418,6 +37422,8 @@ export interface Routes {
37418
37422
  space_id?: string | undefined
37419
37423
  /** 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`. */
37420
37424
  search?: string | undefined
37425
+ /** ID of the access method for which you want to retrieve all devices. */
37426
+ access_method_id?: string | undefined
37421
37427
  }
37422
37428
  formData: {}
37423
37429
  jsonResponse: {
@@ -46186,6 +46192,8 @@ export interface Routes {
46186
46192
  space_id?: string | undefined
46187
46193
  /** 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`. */
46188
46194
  search?: string | undefined
46195
+ /** ID of the access method for which you want to retrieve all devices. */
46196
+ access_method_id?: string | undefined
46189
46197
  }
46190
46198
  formData: {}
46191
46199
  jsonResponse: {
@@ -54931,6 +54939,10 @@ export interface Routes {
54931
54939
  display_name: string
54932
54940
  /** Date and time at which the space was created. */
54933
54941
  created_at: string
54942
+ /** Number of devices in the space. */
54943
+ device_count: number
54944
+ /** Number of entrances in the space. */
54945
+ acs_entrance_count: number
54934
54946
  }
54935
54947
  }
54936
54948
  }
@@ -54969,6 +54981,10 @@ export interface Routes {
54969
54981
  display_name: string
54970
54982
  /** Date and time at which the space was created. */
54971
54983
  created_at: string
54984
+ /** Number of devices in the space. */
54985
+ device_count: number
54986
+ /** Number of entrances in the space. */
54987
+ acs_entrance_count: number
54972
54988
  }
54973
54989
  }
54974
54990
  }
@@ -55000,6 +55016,10 @@ export interface Routes {
55000
55016
  display_name: string
55001
55017
  /** Date and time at which the space was created. */
55002
55018
  created_at: string
55019
+ /** Number of devices in the space. */
55020
+ device_count: number
55021
+ /** Number of entrances in the space. */
55022
+ acs_entrance_count: number
55003
55023
  }>
55004
55024
  | undefined
55005
55025
  devices?:
@@ -56626,6 +56646,10 @@ export interface Routes {
56626
56646
  display_name: string
56627
56647
  /** Date and time at which the space was created. */
56628
56648
  created_at: string
56649
+ /** Number of devices in the space. */
56650
+ device_count: number
56651
+ /** Number of entrances in the space. */
56652
+ acs_entrance_count: number
56629
56653
  }>
56630
56654
  }
56631
56655
  }
@@ -56682,6 +56706,10 @@ export interface Routes {
56682
56706
  display_name: string
56683
56707
  /** Date and time at which the space was created. */
56684
56708
  created_at: string
56709
+ /** Number of devices in the space. */
56710
+ device_count: number
56711
+ /** Number of entrances in the space. */
56712
+ acs_entrance_count: number
56685
56713
  }
56686
56714
  }
56687
56715
  }
@@ -65592,6 +65620,8 @@ export interface Routes {
65592
65620
  space_id?: string | undefined
65593
65621
  /** 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`. */
65594
65622
  search?: string | undefined
65623
+ /** ID of the access method for which you want to retrieve all devices. */
65624
+ access_method_id?: string | undefined
65595
65625
  }
65596
65626
  formData: {}
65597
65627
  jsonResponse: {
@@ -1 +0,0 @@
1
- export { ALL_DEVICE_PROVIDERS, LOCK_DEVICE_TYPE, LOCK_DEVICE_TYPE_LIST, NOISE_SENSOR_DEVICE_TYPE, NOISE_SENSOR_DEVICE_TYPE_LIST, PHONE_DEVICE_TYPE, PROVIDER_CATEGORIES, PUBLIC_PROVIDER_CATEGORIES, THERMOSTAT_DEVICE_TYPE, THERMOSTAT_DEVICE_TYPE_LIST, } from '../models/index.js';