@seamapi/types 1.441.2 → 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 +127 -2
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +1966 -1914
  4. package/dist/devicedb.cjs.map +1 -1
  5. package/dist/devicedb.d.cts +27 -27
  6. package/dist/index.cjs +127 -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 +81 -0
  69. package/lib/seam/connect/openapi.js +123 -0
  70. package/lib/seam/connect/openapi.js.map +1 -1
  71. package/lib/seam/connect/route-types.d.ts +36 -1
  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 +137 -0
  77. package/src/lib/seam/connect/route-types.ts +36 -1
  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
@@ -16487,6 +16487,8 @@ export interface Routes {
16487
16487
  connected_account_id?: string | undefined;
16488
16488
  /** IDs of the entrances for which you want to retrieve all entrances. */
16489
16489
  acs_entrance_ids?: string[] | undefined;
16490
+ /** String for which to search. Filters returned entrances to include all records that satisfy a partial match using `display_name`. */
16491
+ search?: string | undefined;
16490
16492
  };
16491
16493
  formData: {};
16492
16494
  jsonResponse: {
@@ -23864,6 +23866,8 @@ export interface Routes {
23864
23866
  space_id?: string | undefined;
23865
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`. */
23866
23868
  search?: string | undefined;
23869
+ /** ID of the access method for which you want to retrieve all devices. */
23870
+ access_method_id?: string | undefined;
23867
23871
  };
23868
23872
  formData: {};
23869
23873
  jsonResponse: {
@@ -25575,6 +25579,8 @@ export interface Routes {
25575
25579
  space_id?: string | undefined;
25576
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`. */
25577
25581
  search?: string | undefined;
25582
+ /** ID of the access method for which you want to retrieve all devices. */
25583
+ access_method_id?: string | undefined;
25578
25584
  };
25579
25585
  formData: {};
25580
25586
  jsonResponse: {
@@ -31663,6 +31669,8 @@ export interface Routes {
31663
31669
  space_id?: string | undefined;
31664
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`. */
31665
31671
  search?: string | undefined;
31672
+ /** ID of the access method for which you want to retrieve all devices. */
31673
+ access_method_id?: string | undefined;
31666
31674
  };
31667
31675
  formData: {};
31668
31676
  jsonResponse: {
@@ -39103,6 +39111,8 @@ export interface Routes {
39103
39111
  space_id?: string | undefined;
39104
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`. */
39105
39113
  search?: string | undefined;
39114
+ /** ID of the access method for which you want to retrieve all devices. */
39115
+ access_method_id?: string | undefined;
39106
39116
  };
39107
39117
  formData: {};
39108
39118
  jsonResponse: {
@@ -46572,6 +46582,10 @@ export interface Routes {
46572
46582
  display_name: string;
46573
46583
  /** Date and time at which the space was created. */
46574
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;
46575
46589
  };
46576
46590
  };
46577
46591
  };
@@ -46610,6 +46624,10 @@ export interface Routes {
46610
46624
  display_name: string;
46611
46625
  /** Date and time at which the space was created. */
46612
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;
46613
46631
  };
46614
46632
  };
46615
46633
  };
@@ -46640,6 +46658,10 @@ export interface Routes {
46640
46658
  display_name: string;
46641
46659
  /** Date and time at which the space was created. */
46642
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;
46643
46665
  }> | undefined;
46644
46666
  devices?: Array<{
46645
46667
  /** ID of the device. */
@@ -47905,7 +47927,10 @@ export interface Routes {
47905
47927
  method: 'GET' | 'POST';
47906
47928
  queryParams: {};
47907
47929
  jsonBody: {};
47908
- commonParams: {};
47930
+ commonParams: {
47931
+ /** String for which to search. Filters returned spaces to include all records that satisfy a partial match using `name`. */
47932
+ search?: string | undefined;
47933
+ };
47909
47934
  formData: {};
47910
47935
  jsonResponse: {
47911
47936
  spaces: Array<{
@@ -47919,6 +47944,10 @@ export interface Routes {
47919
47944
  display_name: string;
47920
47945
  /** Date and time at which the space was created. */
47921
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;
47922
47951
  }>;
47923
47952
  };
47924
47953
  };
@@ -47975,6 +48004,10 @@ export interface Routes {
47975
48004
  display_name: string;
47976
48005
  /** Date and time at which the space was created. */
47977
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;
47978
48011
  };
47979
48012
  };
47980
48013
  };
@@ -55633,6 +55666,8 @@ export interface Routes {
55633
55666
  space_id?: string | undefined;
55634
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`. */
55635
55668
  search?: string | undefined;
55669
+ /** ID of the access method for which you want to retrieve all devices. */
55670
+ access_method_id?: string | undefined;
55636
55671
  };
55637
55672
  formData: {};
55638
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.441.2",
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.',
@@ -32121,6 +32133,16 @@ export default {
32121
32133
  type: 'array',
32122
32134
  },
32123
32135
  },
32136
+ {
32137
+ in: 'query',
32138
+ name: 'search',
32139
+ schema: {
32140
+ description:
32141
+ 'String for which to search. Filters returned entrances to include all records that satisfy a partial match using `display_name`.',
32142
+ minLength: 1,
32143
+ type: 'string',
32144
+ },
32145
+ },
32124
32146
  ],
32125
32147
  responses: {
32126
32148
  200: {
@@ -32210,6 +32232,12 @@ export default {
32210
32232
  type: 'string',
32211
32233
  'x-deprecated': 'Use `space_id`.',
32212
32234
  },
32235
+ search: {
32236
+ description:
32237
+ 'String for which to search. Filters returned entrances to include all records that satisfy a partial match using `display_name`.',
32238
+ minLength: 1,
32239
+ type: 'string',
32240
+ },
32213
32241
  space_id: {
32214
32242
  description:
32215
32243
  'ID of the space for which you want to list entrances.',
@@ -38968,6 +38996,16 @@ export default {
38968
38996
  type: 'string',
38969
38997
  },
38970
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
+ },
38971
39009
  ],
38972
39010
  responses: {
38973
39011
  200: {
@@ -39016,6 +39054,12 @@ export default {
39016
39054
  'application/json': {
39017
39055
  schema: {
39018
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
+ },
39019
39063
  connect_webview_id: {
39020
39064
  description:
39021
39065
  'ID of the Connect Webview for which you want to list devices.',
@@ -40229,6 +40273,16 @@ export default {
40229
40273
  type: 'string',
40230
40274
  },
40231
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
+ },
40232
40286
  ],
40233
40287
  responses: {
40234
40288
  200: {
@@ -40274,6 +40328,12 @@ export default {
40274
40328
  'application/json': {
40275
40329
  schema: {
40276
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
+ },
40277
40337
  connect_webview_id: {
40278
40338
  description:
40279
40339
  'ID of the Connect Webview for which you want to list devices.',
@@ -42183,6 +42243,16 @@ export default {
42183
42243
  type: 'string',
42184
42244
  },
42185
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
+ },
42186
42256
  ],
42187
42257
  responses: {
42188
42258
  200: {
@@ -42233,6 +42303,12 @@ export default {
42233
42303
  'application/json': {
42234
42304
  schema: {
42235
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
+ },
42236
42312
  connect_webview_id: {
42237
42313
  description:
42238
42314
  'ID of the Connect Webview for which you want to list devices.',
@@ -43217,6 +43293,16 @@ export default {
43217
43293
  type: 'string',
43218
43294
  },
43219
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
+ },
43220
43306
  ],
43221
43307
  responses: {
43222
43308
  200: {
@@ -43267,6 +43353,12 @@ export default {
43267
43353
  'application/json': {
43268
43354
  schema: {
43269
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
+ },
43270
43362
  connect_webview_id: {
43271
43363
  description:
43272
43364
  'ID of the Connect Webview for which you want to list devices.',
@@ -47309,6 +47401,18 @@ export default {
47309
47401
  get: {
47310
47402
  description: 'Returns a list of all spaces.',
47311
47403
  operationId: 'spacesListGet',
47404
+ parameters: [
47405
+ {
47406
+ in: 'query',
47407
+ name: 'search',
47408
+ schema: {
47409
+ description:
47410
+ 'String for which to search. Filters returned spaces to include all records that satisfy a partial match using `name`.',
47411
+ minLength: 1,
47412
+ type: 'string',
47413
+ },
47414
+ },
47415
+ ],
47312
47416
  responses: {
47313
47417
  200: {
47314
47418
  content: {
@@ -47348,6 +47452,23 @@ export default {
47348
47452
  post: {
47349
47453
  description: 'Returns a list of all spaces.',
47350
47454
  operationId: 'spacesListPost',
47455
+ requestBody: {
47456
+ content: {
47457
+ 'application/json': {
47458
+ schema: {
47459
+ properties: {
47460
+ search: {
47461
+ description:
47462
+ 'String for which to search. Filters returned spaces to include all records that satisfy a partial match using `name`.',
47463
+ minLength: 1,
47464
+ type: 'string',
47465
+ },
47466
+ },
47467
+ type: 'object',
47468
+ },
47469
+ },
47470
+ },
47471
+ },
47351
47472
  responses: {
47352
47473
  200: {
47353
47474
  content: {
@@ -49016,6 +49137,16 @@ export default {
49016
49137
  type: 'string',
49017
49138
  },
49018
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
+ },
49019
49150
  ],
49020
49151
  responses: {
49021
49152
  200: {
@@ -49066,6 +49197,12 @@ export default {
49066
49197
  'application/json': {
49067
49198
  schema: {
49068
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
+ },
49069
49206
  connect_webview_id: {
49070
49207
  description:
49071
49208
  'ID of the Connect Webview for which you want to list devices.',