@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
@@ -7,20 +7,26 @@ export declare const spaces_batch: z.ZodObject<{
7
7
  name: z.ZodString;
8
8
  display_name: z.ZodString;
9
9
  created_at: z.ZodString;
10
+ device_count: z.ZodNumber;
11
+ acs_entrance_count: z.ZodNumber;
10
12
  }, "strip", z.ZodTypeAny, {
11
13
  name: string;
12
14
  display_name: string;
13
15
  workspace_id: string;
14
16
  created_at: string;
15
17
  space_id: string;
18
+ device_count: number;
19
+ acs_entrance_count: number;
16
20
  }, {
17
21
  name: string;
18
22
  display_name: string;
19
23
  workspace_id: string;
20
24
  created_at: string;
21
25
  space_id: string;
26
+ device_count: number;
27
+ acs_entrance_count: number;
22
28
  }>, "many">>;
23
- devices: z.ZodOptional<z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
29
+ devices: z.ZodOptional<z.ZodArray<z.ZodObject<{
24
30
  device_id: z.ZodString;
25
31
  device_type: z.ZodUnion<[z.ZodEnum<["akuvox_lock" | "august_lock" | "brivo_access_point" | "butterflymx_panel" | "avigilon_alta_entry" | "doorking_lock" | "genie_door" | "igloo_lock" | "linear_lock" | "lockly_lock" | "kwikset_lock" | "nuki_lock" | "salto_lock" | "schlage_lock" | "seam_relay" | "smartthings_lock" | "wyze_lock" | "yale_lock" | "two_n_intercom" | "controlbyweb_device" | "ttlock_lock" | "igloohome_lock" | "hubitat_lock" | "four_suites_door" | "dormakaba_oracode_door" | "tedee_lock" | "akiles_lock"]>, z.ZodEnum<["noiseaware_activity_zone" | "minut_sensor"]>, z.ZodEnum<["ecobee_thermostat" | "nest_thermostat" | "honeywell_resideo_thermostat" | "tado_thermostat" | "sensi_thermostat" | "smartthings_thermostat"]>, z.ZodEnum<["ios_phone" | "android_phone"]>]>;
26
32
  nickname: z.ZodOptional<z.ZodString>;
@@ -1445,7 +1451,7 @@ export declare const spaces_batch: z.ZodObject<{
1445
1451
  device_name: string;
1446
1452
  product_type: string;
1447
1453
  } | undefined;
1448
- }>>, z.ZodIntersection<z.ZodObject<z.objectUtil.extendShape<{
1454
+ }>>, z.ZodIntersection<z.ZodObject<{
1449
1455
  _experimental_supported_code_from_access_codes_lengths: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
1450
1456
  code_constraints: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
1451
1457
  constraint_type: z.ZodEnum<["no_zeros", "cannot_start_with_12", "no_triple_consecutive_ints", "cannot_specify_pin_code", "pin_code_matches_existing_set", "start_date_in_future", "no_ascending_or_descending_sequence", "at_least_three_unique_digits", "cannot_contain_089", "cannot_contain_0789"]>;
@@ -1470,7 +1476,7 @@ export declare const spaces_batch: z.ZodObject<{
1470
1476
  max_active_codes_supported: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
1471
1477
  supports_backup_access_code_pool: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
1472
1478
  has_native_entry_events: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
1473
- }, {
1479
+ } & {
1474
1480
  locked: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
1475
1481
  keypad_battery: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1476
1482
  level: z.ZodNumber;
@@ -1480,7 +1486,7 @@ export declare const spaces_batch: z.ZodObject<{
1480
1486
  level: number;
1481
1487
  }>>>;
1482
1488
  door_open: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
1483
- }>, "strip", z.ZodTypeAny, {
1489
+ }, "strip", z.ZodTypeAny, {
1484
1490
  _experimental_supported_code_from_access_codes_lengths?: number[] | undefined;
1485
1491
  code_constraints?: ({
1486
1492
  constraint_type: "no_zeros" | "cannot_start_with_12" | "no_triple_consecutive_ints" | "cannot_specify_pin_code" | "pin_code_matches_existing_set" | "start_date_in_future" | "no_ascending_or_descending_sequence" | "at_least_three_unique_digits" | "cannot_contain_089" | "cannot_contain_0789";
@@ -2153,15 +2159,14 @@ export declare const spaces_batch: z.ZodObject<{
2153
2159
  }>>;
2154
2160
  connected_account_id: z.ZodString;
2155
2161
  workspace_id: z.ZodString;
2156
- errors: z.ZodArray<z.ZodDiscriminatedUnion<"error_code", [z.ZodObject<z.objectUtil.extendShape<{
2162
+ errors: z.ZodArray<z.ZodDiscriminatedUnion<"error_code", [z.ZodObject<{
2157
2163
  message: z.ZodString;
2158
- is_device_error: z.ZodLiteral<true>;
2159
2164
  created_at: z.ZodString;
2160
- }, {
2165
+ } & {
2161
2166
  error_code: z.ZodLiteral<"account_disconnected">;
2162
2167
  is_connected_account_error: z.ZodLiteral<true>;
2163
2168
  is_device_error: z.ZodLiteral<false>;
2164
- }>, "strip", z.ZodTypeAny, {
2169
+ }, "strip", z.ZodTypeAny, {
2165
2170
  message: string;
2166
2171
  created_at: string;
2167
2172
  error_code: "account_disconnected";
@@ -2173,15 +2178,14 @@ export declare const spaces_batch: z.ZodObject<{
2173
2178
  error_code: "account_disconnected";
2174
2179
  is_connected_account_error: true;
2175
2180
  is_device_error: false;
2176
- }>, z.ZodObject<z.objectUtil.extendShape<{
2181
+ }>, z.ZodObject<{
2177
2182
  message: z.ZodString;
2178
- is_device_error: z.ZodLiteral<true>;
2179
2183
  created_at: z.ZodString;
2180
- }, {
2184
+ } & {
2181
2185
  error_code: z.ZodLiteral<"salto_ks_subscription_limit_exceeded">;
2182
2186
  is_connected_account_error: z.ZodLiteral<true>;
2183
2187
  is_device_error: z.ZodLiteral<false>;
2184
- }>, "strip", z.ZodTypeAny, {
2188
+ }, "strip", z.ZodTypeAny, {
2185
2189
  message: string;
2186
2190
  created_at: string;
2187
2191
  error_code: "salto_ks_subscription_limit_exceeded";
@@ -2193,13 +2197,13 @@ export declare const spaces_batch: z.ZodObject<{
2193
2197
  error_code: "salto_ks_subscription_limit_exceeded";
2194
2198
  is_connected_account_error: true;
2195
2199
  is_device_error: false;
2196
- }>, z.ZodObject<z.objectUtil.extendShape<{
2200
+ }>, z.ZodObject<{
2197
2201
  message: z.ZodString;
2198
2202
  is_device_error: z.ZodLiteral<true>;
2199
2203
  created_at: z.ZodString;
2200
- }, {
2204
+ } & {
2201
2205
  error_code: z.ZodLiteral<"device_offline">;
2202
- }>, "strip", z.ZodTypeAny, {
2206
+ }, "strip", z.ZodTypeAny, {
2203
2207
  message: string;
2204
2208
  created_at: string;
2205
2209
  error_code: "device_offline";
@@ -2209,13 +2213,13 @@ export declare const spaces_batch: z.ZodObject<{
2209
2213
  created_at: string;
2210
2214
  error_code: "device_offline";
2211
2215
  is_device_error: true;
2212
- }>, z.ZodObject<z.objectUtil.extendShape<{
2216
+ }>, z.ZodObject<{
2213
2217
  message: z.ZodString;
2214
2218
  is_device_error: z.ZodLiteral<true>;
2215
2219
  created_at: z.ZodString;
2216
- }, {
2220
+ } & {
2217
2221
  error_code: z.ZodLiteral<"device_removed">;
2218
- }>, "strip", z.ZodTypeAny, {
2222
+ }, "strip", z.ZodTypeAny, {
2219
2223
  message: string;
2220
2224
  created_at: string;
2221
2225
  error_code: "device_removed";
@@ -2225,13 +2229,13 @@ export declare const spaces_batch: z.ZodObject<{
2225
2229
  created_at: string;
2226
2230
  error_code: "device_removed";
2227
2231
  is_device_error: true;
2228
- }>, z.ZodObject<z.objectUtil.extendShape<{
2232
+ }>, z.ZodObject<{
2229
2233
  message: z.ZodString;
2230
2234
  is_device_error: z.ZodLiteral<true>;
2231
2235
  created_at: z.ZodString;
2232
- }, {
2236
+ } & {
2233
2237
  error_code: z.ZodLiteral<"hub_disconnected">;
2234
- }>, "strip", z.ZodTypeAny, {
2238
+ }, "strip", z.ZodTypeAny, {
2235
2239
  message: string;
2236
2240
  created_at: string;
2237
2241
  error_code: "hub_disconnected";
@@ -2241,13 +2245,13 @@ export declare const spaces_batch: z.ZodObject<{
2241
2245
  created_at: string;
2242
2246
  error_code: "hub_disconnected";
2243
2247
  is_device_error: true;
2244
- }>, z.ZodObject<z.objectUtil.extendShape<{
2248
+ }>, z.ZodObject<{
2245
2249
  message: z.ZodString;
2246
2250
  is_device_error: z.ZodLiteral<true>;
2247
2251
  created_at: z.ZodString;
2248
- }, {
2252
+ } & {
2249
2253
  error_code: z.ZodLiteral<"device_disconnected">;
2250
- }>, "strip", z.ZodTypeAny, {
2254
+ }, "strip", z.ZodTypeAny, {
2251
2255
  message: string;
2252
2256
  created_at: string;
2253
2257
  error_code: "device_disconnected";
@@ -2257,13 +2261,13 @@ export declare const spaces_batch: z.ZodObject<{
2257
2261
  created_at: string;
2258
2262
  error_code: "device_disconnected";
2259
2263
  is_device_error: true;
2260
- }>, z.ZodObject<z.objectUtil.extendShape<{
2264
+ }>, z.ZodObject<{
2261
2265
  message: z.ZodString;
2262
2266
  is_device_error: z.ZodLiteral<true>;
2263
2267
  created_at: z.ZodString;
2264
- }, {
2268
+ } & {
2265
2269
  error_code: z.ZodLiteral<"empty_backup_access_code_pool">;
2266
- }>, "strip", z.ZodTypeAny, {
2270
+ }, "strip", z.ZodTypeAny, {
2267
2271
  message: string;
2268
2272
  created_at: string;
2269
2273
  error_code: "empty_backup_access_code_pool";
@@ -2273,13 +2277,13 @@ export declare const spaces_batch: z.ZodObject<{
2273
2277
  created_at: string;
2274
2278
  error_code: "empty_backup_access_code_pool";
2275
2279
  is_device_error: true;
2276
- }>, z.ZodObject<z.objectUtil.extendShape<{
2280
+ }>, z.ZodObject<{
2277
2281
  message: z.ZodString;
2278
2282
  is_device_error: z.ZodLiteral<true>;
2279
2283
  created_at: z.ZodString;
2280
- }, {
2284
+ } & {
2281
2285
  error_code: z.ZodLiteral<"august_lock_not_authorized">;
2282
- }>, "strip", z.ZodTypeAny, {
2286
+ }, "strip", z.ZodTypeAny, {
2283
2287
  message: string;
2284
2288
  created_at: string;
2285
2289
  error_code: "august_lock_not_authorized";
@@ -2289,13 +2293,13 @@ export declare const spaces_batch: z.ZodObject<{
2289
2293
  created_at: string;
2290
2294
  error_code: "august_lock_not_authorized";
2291
2295
  is_device_error: true;
2292
- }>, z.ZodObject<z.objectUtil.extendShape<{
2296
+ }>, z.ZodObject<{
2293
2297
  message: z.ZodString;
2294
2298
  is_device_error: z.ZodLiteral<true>;
2295
2299
  created_at: z.ZodString;
2296
- }, {
2300
+ } & {
2297
2301
  error_code: z.ZodLiteral<"august_lock_missing_bridge">;
2298
- }>, "strip", z.ZodTypeAny, {
2302
+ }, "strip", z.ZodTypeAny, {
2299
2303
  message: string;
2300
2304
  created_at: string;
2301
2305
  error_code: "august_lock_missing_bridge";
@@ -2305,13 +2309,13 @@ export declare const spaces_batch: z.ZodObject<{
2305
2309
  created_at: string;
2306
2310
  error_code: "august_lock_missing_bridge";
2307
2311
  is_device_error: true;
2308
- }>, z.ZodObject<z.objectUtil.extendShape<{
2312
+ }>, z.ZodObject<{
2309
2313
  message: z.ZodString;
2310
2314
  is_device_error: z.ZodLiteral<true>;
2311
2315
  created_at: z.ZodString;
2312
- }, {
2316
+ } & {
2313
2317
  error_code: z.ZodLiteral<"ttlock_lock_not_paired_to_gateway">;
2314
- }>, "strip", z.ZodTypeAny, {
2318
+ }, "strip", z.ZodTypeAny, {
2315
2319
  message: string;
2316
2320
  created_at: string;
2317
2321
  error_code: "ttlock_lock_not_paired_to_gateway";
@@ -2321,13 +2325,13 @@ export declare const spaces_batch: z.ZodObject<{
2321
2325
  created_at: string;
2322
2326
  error_code: "ttlock_lock_not_paired_to_gateway";
2323
2327
  is_device_error: true;
2324
- }>, z.ZodObject<z.objectUtil.extendShape<{
2328
+ }>, z.ZodObject<{
2325
2329
  message: z.ZodString;
2326
2330
  is_device_error: z.ZodLiteral<true>;
2327
2331
  created_at: z.ZodString;
2328
- }, {
2332
+ } & {
2329
2333
  error_code: z.ZodLiteral<"missing_device_credentials">;
2330
- }>, "strip", z.ZodTypeAny, {
2334
+ }, "strip", z.ZodTypeAny, {
2331
2335
  message: string;
2332
2336
  created_at: string;
2333
2337
  error_code: "missing_device_credentials";
@@ -2337,13 +2341,13 @@ export declare const spaces_batch: z.ZodObject<{
2337
2341
  created_at: string;
2338
2342
  error_code: "missing_device_credentials";
2339
2343
  is_device_error: true;
2340
- }>, z.ZodObject<z.objectUtil.extendShape<{
2344
+ }>, z.ZodObject<{
2341
2345
  message: z.ZodString;
2342
2346
  is_device_error: z.ZodLiteral<true>;
2343
2347
  created_at: z.ZodString;
2344
- }, {
2348
+ } & {
2345
2349
  error_code: z.ZodLiteral<"auxiliary_heat_running">;
2346
- }>, "strip", z.ZodTypeAny, {
2350
+ }, "strip", z.ZodTypeAny, {
2347
2351
  message: string;
2348
2352
  created_at: string;
2349
2353
  error_code: "auxiliary_heat_running";
@@ -2353,13 +2357,13 @@ export declare const spaces_batch: z.ZodObject<{
2353
2357
  created_at: string;
2354
2358
  error_code: "auxiliary_heat_running";
2355
2359
  is_device_error: true;
2356
- }>, z.ZodObject<z.objectUtil.extendShape<{
2360
+ }>, z.ZodObject<{
2357
2361
  message: z.ZodString;
2358
2362
  is_device_error: z.ZodLiteral<true>;
2359
2363
  created_at: z.ZodString;
2360
- }, {
2364
+ } & {
2361
2365
  error_code: z.ZodLiteral<"subscription_required">;
2362
- }>, "strip", z.ZodTypeAny, {
2366
+ }, "strip", z.ZodTypeAny, {
2363
2367
  message: string;
2364
2368
  created_at: string;
2365
2369
  error_code: "subscription_required";
@@ -2369,13 +2373,13 @@ export declare const spaces_batch: z.ZodObject<{
2369
2373
  created_at: string;
2370
2374
  error_code: "subscription_required";
2371
2375
  is_device_error: true;
2372
- }>, z.ZodObject<z.objectUtil.extendShape<{
2376
+ }>, z.ZodObject<{
2373
2377
  message: z.ZodString;
2374
2378
  is_device_error: z.ZodLiteral<true>;
2375
2379
  created_at: z.ZodString;
2376
- }, {
2380
+ } & {
2377
2381
  error_code: z.ZodLiteral<"lockly_missing_wifi_bridge">;
2378
- }>, "strip", z.ZodTypeAny, {
2382
+ }, "strip", z.ZodTypeAny, {
2379
2383
  message: string;
2380
2384
  created_at: string;
2381
2385
  error_code: "lockly_missing_wifi_bridge";
@@ -2385,14 +2389,14 @@ export declare const spaces_batch: z.ZodObject<{
2385
2389
  created_at: string;
2386
2390
  error_code: "lockly_missing_wifi_bridge";
2387
2391
  is_device_error: true;
2388
- }>, ...(z.ZodObject<z.objectUtil.extendShape<{
2392
+ }>, ...(z.ZodObject<{
2389
2393
  created_at: z.ZodString;
2390
2394
  message: z.ZodString;
2391
2395
  is_connected_account_error: z.ZodOptional<z.ZodBoolean>;
2392
2396
  is_bridge_error: z.ZodOptional<z.ZodBoolean>;
2393
- }, {
2397
+ } & {
2394
2398
  error_code: z.ZodLiteral<"account_disconnected">;
2395
- }>, "strip", z.ZodTypeAny, {
2399
+ }, "strip", z.ZodTypeAny, {
2396
2400
  message: string;
2397
2401
  created_at: string;
2398
2402
  error_code: "account_disconnected";
@@ -2404,14 +2408,14 @@ export declare const spaces_batch: z.ZodObject<{
2404
2408
  error_code: "account_disconnected";
2405
2409
  is_connected_account_error?: boolean | undefined;
2406
2410
  is_bridge_error?: boolean | undefined;
2407
- }> | z.ZodObject<z.objectUtil.extendShape<{
2411
+ }> | z.ZodObject<{
2408
2412
  created_at: z.ZodString;
2409
2413
  message: z.ZodString;
2410
2414
  is_connected_account_error: z.ZodOptional<z.ZodBoolean>;
2411
2415
  is_bridge_error: z.ZodOptional<z.ZodBoolean>;
2412
- }, {
2416
+ } & {
2413
2417
  error_code: z.ZodLiteral<"invalid_credentials">;
2414
- }>, "strip", z.ZodTypeAny, {
2418
+ }, "strip", z.ZodTypeAny, {
2415
2419
  message: string;
2416
2420
  created_at: string;
2417
2421
  error_code: "invalid_credentials";
@@ -2423,14 +2427,14 @@ export declare const spaces_batch: z.ZodObject<{
2423
2427
  error_code: "invalid_credentials";
2424
2428
  is_connected_account_error?: boolean | undefined;
2425
2429
  is_bridge_error?: boolean | undefined;
2426
- }> | z.ZodObject<z.objectUtil.extendShape<{
2430
+ }> | z.ZodObject<{
2427
2431
  created_at: z.ZodString;
2428
2432
  message: z.ZodString;
2429
2433
  is_connected_account_error: z.ZodOptional<z.ZodBoolean>;
2430
2434
  is_bridge_error: z.ZodOptional<z.ZodBoolean>;
2431
- }, {
2435
+ } & {
2432
2436
  error_code: z.ZodLiteral<"bridge_disconnected">;
2433
- }>, "strip", z.ZodTypeAny, {
2437
+ }, "strip", z.ZodTypeAny, {
2434
2438
  message: string;
2435
2439
  created_at: string;
2436
2440
  error_code: "bridge_disconnected";
@@ -2442,12 +2446,12 @@ export declare const spaces_batch: z.ZodObject<{
2442
2446
  error_code: "bridge_disconnected";
2443
2447
  is_connected_account_error?: boolean | undefined;
2444
2448
  is_bridge_error?: boolean | undefined;
2445
- }> | z.ZodObject<z.objectUtil.extendShape<{
2449
+ }> | z.ZodObject<{
2446
2450
  created_at: z.ZodString;
2447
2451
  message: z.ZodString;
2448
2452
  is_connected_account_error: z.ZodOptional<z.ZodBoolean>;
2449
2453
  is_bridge_error: z.ZodOptional<z.ZodBoolean>;
2450
- }, {
2454
+ } & {
2451
2455
  error_code: z.ZodLiteral<"salto_ks_subscription_limit_exceeded">;
2452
2456
  salto_ks_metadata: z.ZodObject<{
2453
2457
  sites: z.ZodArray<z.ZodObject<{
@@ -2481,7 +2485,7 @@ export declare const spaces_batch: z.ZodObject<{
2481
2485
  site_user_subscription_limit: number;
2482
2486
  }[];
2483
2487
  }>;
2484
- }>, "strip", z.ZodTypeAny, {
2488
+ }, "strip", z.ZodTypeAny, {
2485
2489
  message: string;
2486
2490
  created_at: string;
2487
2491
  error_code: "salto_ks_subscription_limit_exceeded";
@@ -2510,12 +2514,12 @@ export declare const spaces_batch: z.ZodObject<{
2510
2514
  is_connected_account_error?: boolean | undefined;
2511
2515
  is_bridge_error?: boolean | undefined;
2512
2516
  }>)[]]>, "many">;
2513
- warnings: z.ZodArray<z.ZodDiscriminatedUnion<"warning_code", [z.ZodObject<z.objectUtil.extendShape<{
2517
+ warnings: z.ZodArray<z.ZodDiscriminatedUnion<"warning_code", [z.ZodObject<{
2514
2518
  message: z.ZodString;
2515
2519
  created_at: z.ZodString;
2516
- }, {
2520
+ } & {
2517
2521
  warning_code: z.ZodLiteral<"partial_backup_access_code_pool">;
2518
- }>, "strip", z.ZodTypeAny, {
2522
+ }, "strip", z.ZodTypeAny, {
2519
2523
  message: string;
2520
2524
  created_at: string;
2521
2525
  warning_code: "partial_backup_access_code_pool";
@@ -2523,12 +2527,12 @@ export declare const spaces_batch: z.ZodObject<{
2523
2527
  message: string;
2524
2528
  created_at: string;
2525
2529
  warning_code: "partial_backup_access_code_pool";
2526
- }>, z.ZodObject<z.objectUtil.extendShape<{
2530
+ }>, z.ZodObject<{
2527
2531
  message: z.ZodString;
2528
2532
  created_at: z.ZodString;
2529
- }, {
2533
+ } & {
2530
2534
  warning_code: z.ZodLiteral<"many_active_backup_codes">;
2531
- }>, "strip", z.ZodTypeAny, {
2535
+ }, "strip", z.ZodTypeAny, {
2532
2536
  message: string;
2533
2537
  created_at: string;
2534
2538
  warning_code: "many_active_backup_codes";
@@ -2536,12 +2540,12 @@ export declare const spaces_batch: z.ZodObject<{
2536
2540
  message: string;
2537
2541
  created_at: string;
2538
2542
  warning_code: "many_active_backup_codes";
2539
- }>, z.ZodObject<z.objectUtil.extendShape<{
2543
+ }>, z.ZodObject<{
2540
2544
  message: z.ZodString;
2541
2545
  created_at: z.ZodString;
2542
- }, {
2546
+ } & {
2543
2547
  warning_code: z.ZodLiteral<"wyze_device_missing_gateway">;
2544
- }>, "strip", z.ZodTypeAny, {
2548
+ }, "strip", z.ZodTypeAny, {
2545
2549
  message: string;
2546
2550
  created_at: string;
2547
2551
  warning_code: "wyze_device_missing_gateway";
@@ -2549,12 +2553,12 @@ export declare const spaces_batch: z.ZodObject<{
2549
2553
  message: string;
2550
2554
  created_at: string;
2551
2555
  warning_code: "wyze_device_missing_gateway";
2552
- }>, z.ZodObject<z.objectUtil.extendShape<{
2556
+ }>, z.ZodObject<{
2553
2557
  message: z.ZodString;
2554
2558
  created_at: z.ZodString;
2555
- }, {
2559
+ } & {
2556
2560
  warning_code: z.ZodLiteral<"functional_offline_device">;
2557
- }>, "strip", z.ZodTypeAny, {
2561
+ }, "strip", z.ZodTypeAny, {
2558
2562
  message: string;
2559
2563
  created_at: string;
2560
2564
  warning_code: "functional_offline_device";
@@ -2562,12 +2566,12 @@ export declare const spaces_batch: z.ZodObject<{
2562
2566
  message: string;
2563
2567
  created_at: string;
2564
2568
  warning_code: "functional_offline_device";
2565
- }>, z.ZodObject<z.objectUtil.extendShape<{
2569
+ }>, z.ZodObject<{
2566
2570
  message: z.ZodString;
2567
2571
  created_at: z.ZodString;
2568
- }, {
2572
+ } & {
2569
2573
  warning_code: z.ZodLiteral<"third_party_integration_detected">;
2570
- }>, "strip", z.ZodTypeAny, {
2574
+ }, "strip", z.ZodTypeAny, {
2571
2575
  message: string;
2572
2576
  created_at: string;
2573
2577
  warning_code: "third_party_integration_detected";
@@ -2575,12 +2579,12 @@ export declare const spaces_batch: z.ZodObject<{
2575
2579
  message: string;
2576
2580
  created_at: string;
2577
2581
  warning_code: "third_party_integration_detected";
2578
- }>, z.ZodObject<z.objectUtil.extendShape<{
2582
+ }>, z.ZodObject<{
2579
2583
  message: z.ZodString;
2580
2584
  created_at: z.ZodString;
2581
- }, {
2585
+ } & {
2582
2586
  warning_code: z.ZodLiteral<"nest_thermostat_in_manual_eco_mode">;
2583
- }>, "strip", z.ZodTypeAny, {
2587
+ }, "strip", z.ZodTypeAny, {
2584
2588
  message: string;
2585
2589
  created_at: string;
2586
2590
  warning_code: "nest_thermostat_in_manual_eco_mode";
@@ -2588,12 +2592,12 @@ export declare const spaces_batch: z.ZodObject<{
2588
2592
  message: string;
2589
2593
  created_at: string;
2590
2594
  warning_code: "nest_thermostat_in_manual_eco_mode";
2591
- }>, z.ZodObject<z.objectUtil.extendShape<{
2595
+ }>, z.ZodObject<{
2592
2596
  message: z.ZodString;
2593
2597
  created_at: z.ZodString;
2594
- }, {
2598
+ } & {
2595
2599
  warning_code: z.ZodLiteral<"ttlock_lock_gateway_unlocking_not_enabled">;
2596
- }>, "strip", z.ZodTypeAny, {
2600
+ }, "strip", z.ZodTypeAny, {
2597
2601
  message: string;
2598
2602
  created_at: string;
2599
2603
  warning_code: "ttlock_lock_gateway_unlocking_not_enabled";
@@ -2601,12 +2605,12 @@ export declare const spaces_batch: z.ZodObject<{
2601
2605
  message: string;
2602
2606
  created_at: string;
2603
2607
  warning_code: "ttlock_lock_gateway_unlocking_not_enabled";
2604
- }>, z.ZodObject<z.objectUtil.extendShape<{
2608
+ }>, z.ZodObject<{
2605
2609
  message: z.ZodString;
2606
2610
  created_at: z.ZodString;
2607
- }, {
2611
+ } & {
2608
2612
  warning_code: z.ZodLiteral<"ttlock_weak_gateway_signal">;
2609
- }>, "strip", z.ZodTypeAny, {
2613
+ }, "strip", z.ZodTypeAny, {
2610
2614
  message: string;
2611
2615
  created_at: string;
2612
2616
  warning_code: "ttlock_weak_gateway_signal";
@@ -2614,12 +2618,12 @@ export declare const spaces_batch: z.ZodObject<{
2614
2618
  message: string;
2615
2619
  created_at: string;
2616
2620
  warning_code: "ttlock_weak_gateway_signal";
2617
- }>, z.ZodObject<z.objectUtil.extendShape<{
2621
+ }>, z.ZodObject<{
2618
2622
  message: z.ZodString;
2619
2623
  created_at: z.ZodString;
2620
- }, {
2624
+ } & {
2621
2625
  warning_code: z.ZodLiteral<"power_saving_mode">;
2622
- }>, "strip", z.ZodTypeAny, {
2626
+ }, "strip", z.ZodTypeAny, {
2623
2627
  message: string;
2624
2628
  created_at: string;
2625
2629
  warning_code: "power_saving_mode";
@@ -2627,12 +2631,12 @@ export declare const spaces_batch: z.ZodObject<{
2627
2631
  message: string;
2628
2632
  created_at: string;
2629
2633
  warning_code: "power_saving_mode";
2630
- }>, z.ZodObject<z.objectUtil.extendShape<{
2634
+ }>, z.ZodObject<{
2631
2635
  message: z.ZodString;
2632
2636
  created_at: z.ZodString;
2633
- }, {
2637
+ } & {
2634
2638
  warning_code: z.ZodLiteral<"temperature_threshold_exceeded">;
2635
- }>, "strip", z.ZodTypeAny, {
2639
+ }, "strip", z.ZodTypeAny, {
2636
2640
  message: string;
2637
2641
  created_at: string;
2638
2642
  warning_code: "temperature_threshold_exceeded";
@@ -2640,12 +2644,12 @@ export declare const spaces_batch: z.ZodObject<{
2640
2644
  message: string;
2641
2645
  created_at: string;
2642
2646
  warning_code: "temperature_threshold_exceeded";
2643
- }>, z.ZodObject<z.objectUtil.extendShape<{
2647
+ }>, z.ZodObject<{
2644
2648
  message: z.ZodString;
2645
2649
  created_at: z.ZodString;
2646
- }, {
2650
+ } & {
2647
2651
  warning_code: z.ZodLiteral<"device_communication_degraded">;
2648
- }>, "strip", z.ZodTypeAny, {
2652
+ }, "strip", z.ZodTypeAny, {
2649
2653
  message: string;
2650
2654
  created_at: string;
2651
2655
  warning_code: "device_communication_degraded";
@@ -2653,12 +2657,12 @@ export declare const spaces_batch: z.ZodObject<{
2653
2657
  message: string;
2654
2658
  created_at: string;
2655
2659
  warning_code: "device_communication_degraded";
2656
- }>, z.ZodObject<z.objectUtil.extendShape<{
2660
+ }>, z.ZodObject<{
2657
2661
  message: z.ZodString;
2658
2662
  created_at: z.ZodString;
2659
- }, {
2663
+ } & {
2660
2664
  warning_code: z.ZodLiteral<"scheduled_maintenance_window">;
2661
- }>, "strip", z.ZodTypeAny, {
2665
+ }, "strip", z.ZodTypeAny, {
2662
2666
  message: string;
2663
2667
  created_at: string;
2664
2668
  warning_code: "scheduled_maintenance_window";
@@ -2666,12 +2670,12 @@ export declare const spaces_batch: z.ZodObject<{
2666
2670
  message: string;
2667
2671
  created_at: string;
2668
2672
  warning_code: "scheduled_maintenance_window";
2669
- }>, z.ZodObject<z.objectUtil.extendShape<{
2673
+ }>, z.ZodObject<{
2670
2674
  message: z.ZodString;
2671
2675
  created_at: z.ZodString;
2672
- }, {
2676
+ } & {
2673
2677
  warning_code: z.ZodLiteral<"device_has_flaky_connection">;
2674
- }>, "strip", z.ZodTypeAny, {
2678
+ }, "strip", z.ZodTypeAny, {
2675
2679
  message: string;
2676
2680
  created_at: string;
2677
2681
  warning_code: "device_has_flaky_connection";
@@ -2679,12 +2683,12 @@ export declare const spaces_batch: z.ZodObject<{
2679
2683
  message: string;
2680
2684
  created_at: string;
2681
2685
  warning_code: "device_has_flaky_connection";
2682
- }>, z.ZodObject<z.objectUtil.extendShape<{
2686
+ }>, z.ZodObject<{
2683
2687
  message: z.ZodString;
2684
2688
  created_at: z.ZodString;
2685
- }, {
2689
+ } & {
2686
2690
  warning_code: z.ZodLiteral<"salto_ks_office_mode">;
2687
- }>, "strip", z.ZodTypeAny, {
2691
+ }, "strip", z.ZodTypeAny, {
2688
2692
  message: string;
2689
2693
  created_at: string;
2690
2694
  warning_code: "salto_ks_office_mode";
@@ -2692,12 +2696,12 @@ export declare const spaces_batch: z.ZodObject<{
2692
2696
  message: string;
2693
2697
  created_at: string;
2694
2698
  warning_code: "salto_ks_office_mode";
2695
- }>, z.ZodObject<z.objectUtil.extendShape<{
2699
+ }>, z.ZodObject<{
2696
2700
  message: z.ZodString;
2697
2701
  created_at: z.ZodString;
2698
- }, {
2702
+ } & {
2699
2703
  warning_code: z.ZodLiteral<"salto_ks_privacy_mode">;
2700
- }>, "strip", z.ZodTypeAny, {
2704
+ }, "strip", z.ZodTypeAny, {
2701
2705
  message: string;
2702
2706
  created_at: string;
2703
2707
  warning_code: "salto_ks_privacy_mode";
@@ -2705,12 +2709,12 @@ export declare const spaces_batch: z.ZodObject<{
2705
2709
  message: string;
2706
2710
  created_at: string;
2707
2711
  warning_code: "salto_ks_privacy_mode";
2708
- }>, z.ZodObject<z.objectUtil.extendShape<{
2712
+ }>, z.ZodObject<{
2709
2713
  message: z.ZodString;
2710
2714
  created_at: z.ZodString;
2711
- }, {
2715
+ } & {
2712
2716
  warning_code: z.ZodLiteral<"salto_ks_subscription_limit_almost_reached">;
2713
- }>, "strip", z.ZodTypeAny, {
2717
+ }, "strip", z.ZodTypeAny, {
2714
2718
  message: string;
2715
2719
  created_at: string;
2716
2720
  warning_code: "salto_ks_subscription_limit_almost_reached";
@@ -2718,12 +2722,12 @@ export declare const spaces_batch: z.ZodObject<{
2718
2722
  message: string;
2719
2723
  created_at: string;
2720
2724
  warning_code: "salto_ks_subscription_limit_almost_reached";
2721
- }>, z.ZodObject<z.objectUtil.extendShape<{
2725
+ }>, z.ZodObject<{
2722
2726
  message: z.ZodString;
2723
2727
  created_at: z.ZodString;
2724
- }, {
2728
+ } & {
2725
2729
  warning_code: z.ZodLiteral<"unknown_issue_with_phone">;
2726
- }>, "strip", z.ZodTypeAny, {
2730
+ }, "strip", z.ZodTypeAny, {
2727
2731
  message: string;
2728
2732
  created_at: string;
2729
2733
  warning_code: "unknown_issue_with_phone";
@@ -2731,12 +2735,12 @@ export declare const spaces_batch: z.ZodObject<{
2731
2735
  message: string;
2732
2736
  created_at: string;
2733
2737
  warning_code: "unknown_issue_with_phone";
2734
- }>, z.ZodObject<z.objectUtil.extendShape<{
2738
+ }>, z.ZodObject<{
2735
2739
  message: z.ZodString;
2736
2740
  created_at: z.ZodString;
2737
- }, {
2741
+ } & {
2738
2742
  warning_code: z.ZodLiteral<"lockly_time_zone_not_configured">;
2739
- }>, "strip", z.ZodTypeAny, {
2743
+ }, "strip", z.ZodTypeAny, {
2740
2744
  message: string;
2741
2745
  created_at: string;
2742
2746
  warning_code: "lockly_time_zone_not_configured";
@@ -2748,7 +2752,7 @@ export declare const spaces_batch: z.ZodObject<{
2748
2752
  created_at: z.ZodString;
2749
2753
  is_managed: z.ZodLiteral<true>;
2750
2754
  custom_metadata: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodBoolean]>>;
2751
- }, z.objectUtil.extendShape<{
2755
+ } & {
2752
2756
  can_remotely_unlock: z.ZodOptional<z.ZodBoolean>;
2753
2757
  can_remotely_lock: z.ZodOptional<z.ZodBoolean>;
2754
2758
  can_program_offline_access_codes: z.ZodOptional<z.ZodBoolean>;
@@ -2757,12 +2761,12 @@ export declare const spaces_batch: z.ZodObject<{
2757
2761
  can_hvac_cool: z.ZodOptional<z.ZodBoolean>;
2758
2762
  can_hvac_heat_cool: z.ZodOptional<z.ZodBoolean>;
2759
2763
  can_turn_off_hvac: z.ZodOptional<z.ZodBoolean>;
2760
- }, {
2764
+ } & {
2761
2765
  can_simulate_removal: z.ZodOptional<z.ZodBoolean>;
2762
2766
  can_simulate_connection: z.ZodOptional<z.ZodBoolean>;
2763
2767
  can_simulate_disconnection: z.ZodOptional<z.ZodBoolean>;
2764
2768
  can_unlock_with_code: z.ZodOptional<z.ZodBoolean>;
2765
- }>>, "strip", z.ZodTypeAny, {
2769
+ }, "strip", z.ZodTypeAny, {
2766
2770
  location: {
2767
2771
  location_name?: string | undefined;
2768
2772
  timezone?: string | undefined;
@@ -4033,7 +4037,7 @@ export declare const spaces_batch: z.ZodObject<{
4033
4037
  can_unlock_with_code?: boolean | undefined;
4034
4038
  nickname?: string | undefined;
4035
4039
  }>, "many">>;
4036
- acs_entrances: z.ZodOptional<z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
4040
+ acs_entrances: z.ZodOptional<z.ZodArray<z.ZodObject<{
4037
4041
  acs_system_id: z.ZodString;
4038
4042
  acs_entrance_id: z.ZodString;
4039
4043
  created_at: z.ZodString;
@@ -4160,11 +4164,11 @@ export declare const spaces_batch: z.ZodObject<{
4160
4164
  ext_door_id: string;
4161
4165
  door_description?: string | undefined;
4162
4166
  }>>;
4163
- }, {
4167
+ } & {
4164
4168
  can_unlock_with_mobile_key: z.ZodOptional<z.ZodBoolean>;
4165
4169
  can_unlock_with_card: z.ZodOptional<z.ZodBoolean>;
4166
4170
  can_unlock_with_code: z.ZodOptional<z.ZodBoolean>;
4167
- }>, "strip", z.ZodTypeAny, {
4171
+ }, "strip", z.ZodTypeAny, {
4168
4172
  display_name: string;
4169
4173
  created_at: string;
4170
4174
  errors: {
@@ -4277,6 +4281,8 @@ export declare const spaces_batch: z.ZodObject<{
4277
4281
  workspace_id: string;
4278
4282
  created_at: string;
4279
4283
  space_id: string;
4284
+ device_count: number;
4285
+ acs_entrance_count: number;
4280
4286
  }[] | undefined;
4281
4287
  devices?: {
4282
4288
  location: {
@@ -4975,6 +4981,8 @@ export declare const spaces_batch: z.ZodObject<{
4975
4981
  workspace_id: string;
4976
4982
  created_at: string;
4977
4983
  space_id: string;
4984
+ device_count: number;
4985
+ acs_entrance_count: number;
4978
4986
  }[] | undefined;
4979
4987
  devices?: {
4980
4988
  location: {