@seamapi/types 1.459.0 → 1.460.1

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 (41) hide show
  1. package/dist/connect.cjs +489 -127
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +2612 -713
  4. package/dist/index.cjs +489 -127
  5. package/dist/index.cjs.map +1 -1
  6. package/lib/seam/connect/models/acs/acs-credential.d.ts +8 -8
  7. package/lib/seam/connect/models/acs/metadata/assa-abloy-vostio.d.ts +2 -2
  8. package/lib/seam/connect/models/action-attempts/action-attempt.d.ts +28 -28
  9. package/lib/seam/connect/models/action-attempts/encode-credential.d.ts +12 -12
  10. package/lib/seam/connect/models/action-attempts/scan-credential.d.ts +16 -16
  11. package/lib/seam/connect/models/batch.d.ts +3279 -237
  12. package/lib/seam/connect/models/batch.js +7 -0
  13. package/lib/seam/connect/models/batch.js.map +1 -1
  14. package/lib/seam/connect/models/customer/access-grant-resources.d.ts +18 -18
  15. package/lib/seam/connect/models/customer/access-grant-resources.js +2 -1
  16. package/lib/seam/connect/models/customer/access-grant-resources.js.map +1 -1
  17. package/lib/seam/connect/models/customer/customer-data.d.ts +15 -15
  18. package/lib/seam/connect/models/devices/device-metadata.d.ts +108 -0
  19. package/lib/seam/connect/models/devices/device-metadata.js +67 -0
  20. package/lib/seam/connect/models/devices/device-metadata.js.map +1 -1
  21. package/lib/seam/connect/models/devices/device-provider.d.ts +1 -0
  22. package/lib/seam/connect/models/devices/device-provider.js +1 -0
  23. package/lib/seam/connect/models/devices/device-provider.js.map +1 -1
  24. package/lib/seam/connect/models/devices/device.d.ts +152 -0
  25. package/lib/seam/connect/models/devices/unmanaged-device.d.ts +108 -0
  26. package/lib/seam/connect/models/phones/phone-session.d.ts +181 -14
  27. package/lib/seam/connect/models/phones/phone-session.js +3 -0
  28. package/lib/seam/connect/models/phones/phone-session.js.map +1 -1
  29. package/lib/seam/connect/openapi.d.ts +300 -33
  30. package/lib/seam/connect/openapi.js +447 -113
  31. package/lib/seam/connect/openapi.js.map +1 -1
  32. package/lib/seam/connect/route-types.d.ts +1354 -179
  33. package/package.json +1 -1
  34. package/src/lib/seam/connect/internal/schemas.ts +1 -0
  35. package/src/lib/seam/connect/models/batch.ts +7 -0
  36. package/src/lib/seam/connect/models/customer/access-grant-resources.ts +2 -1
  37. package/src/lib/seam/connect/models/devices/device-metadata.ts +68 -0
  38. package/src/lib/seam/connect/models/devices/device-provider.ts +1 -0
  39. package/src/lib/seam/connect/models/phones/phone-session.ts +5 -0
  40. package/src/lib/seam/connect/openapi.ts +481 -113
  41. package/src/lib/seam/connect/route-types.ts +1558 -189
@@ -988,6 +988,70 @@ export declare const spaces_batch: z.ZodObject<{
988
988
  device_name: string;
989
989
  product_type: string;
990
990
  }>>;
991
+ keynest_metadata: z.ZodOptional<z.ZodObject<{
992
+ key_id: z.ZodString;
993
+ device_name: z.ZodString;
994
+ property_id: z.ZodNullable<z.ZodString>;
995
+ property_postcode: z.ZodNullable<z.ZodString>;
996
+ key_notes: z.ZodNullable<z.ZodString>;
997
+ subscription_plan: z.ZodString;
998
+ status_type: z.ZodString;
999
+ current_or_last_store_id: z.ZodNumber;
1000
+ last_movement: z.ZodString;
1001
+ address: z.ZodNullable<z.ZodString>;
1002
+ current_status: z.ZodNullable<z.ZodString>;
1003
+ current_user_name: z.ZodNullable<z.ZodString>;
1004
+ current_user_email: z.ZodNullable<z.ZodString>;
1005
+ current_user_phone_number: z.ZodNullable<z.ZodString>;
1006
+ current_user_company: z.ZodNullable<z.ZodString>;
1007
+ handover_method: z.ZodNullable<z.ZodString>;
1008
+ keynest_app_user: z.ZodNullable<z.ZodString>;
1009
+ default_office_id: z.ZodNumber;
1010
+ fob_id: z.ZodNumber;
1011
+ has_photo: z.ZodBoolean;
1012
+ }, "strip", z.ZodTypeAny, {
1013
+ address: string | null;
1014
+ device_name: string;
1015
+ key_id: string;
1016
+ property_id: string | null;
1017
+ property_postcode: string | null;
1018
+ key_notes: string | null;
1019
+ subscription_plan: string;
1020
+ status_type: string;
1021
+ current_or_last_store_id: number;
1022
+ last_movement: string;
1023
+ current_status: string | null;
1024
+ current_user_name: string | null;
1025
+ current_user_email: string | null;
1026
+ current_user_phone_number: string | null;
1027
+ current_user_company: string | null;
1028
+ handover_method: string | null;
1029
+ keynest_app_user: string | null;
1030
+ default_office_id: number;
1031
+ fob_id: number;
1032
+ has_photo: boolean;
1033
+ }, {
1034
+ address: string | null;
1035
+ device_name: string;
1036
+ key_id: string;
1037
+ property_id: string | null;
1038
+ property_postcode: string | null;
1039
+ key_notes: string | null;
1040
+ subscription_plan: string;
1041
+ status_type: string;
1042
+ current_or_last_store_id: number;
1043
+ last_movement: string;
1044
+ current_status: string | null;
1045
+ current_user_name: string | null;
1046
+ current_user_email: string | null;
1047
+ current_user_phone_number: string | null;
1048
+ current_user_company: string | null;
1049
+ handover_method: string | null;
1050
+ keynest_app_user: string | null;
1051
+ default_office_id: number;
1052
+ fob_id: number;
1053
+ has_photo: boolean;
1054
+ }>>;
991
1055
  }, "strip", z.ZodTypeAny, {
992
1056
  ecobee_metadata?: {
993
1057
  device_name: string;
@@ -1221,6 +1285,28 @@ export declare const spaces_batch: z.ZodObject<{
1221
1285
  device_name: string;
1222
1286
  product_type: string;
1223
1287
  } | undefined;
1288
+ keynest_metadata?: {
1289
+ address: string | null;
1290
+ device_name: string;
1291
+ key_id: string;
1292
+ property_id: string | null;
1293
+ property_postcode: string | null;
1294
+ key_notes: string | null;
1295
+ subscription_plan: string;
1296
+ status_type: string;
1297
+ current_or_last_store_id: number;
1298
+ last_movement: string;
1299
+ current_status: string | null;
1300
+ current_user_name: string | null;
1301
+ current_user_email: string | null;
1302
+ current_user_phone_number: string | null;
1303
+ current_user_company: string | null;
1304
+ handover_method: string | null;
1305
+ keynest_app_user: string | null;
1306
+ default_office_id: number;
1307
+ fob_id: number;
1308
+ has_photo: boolean;
1309
+ } | undefined;
1224
1310
  }, {
1225
1311
  ecobee_metadata?: {
1226
1312
  device_name: string;
@@ -1454,6 +1540,28 @@ export declare const spaces_batch: z.ZodObject<{
1454
1540
  device_name: string;
1455
1541
  product_type: string;
1456
1542
  } | undefined;
1543
+ keynest_metadata?: {
1544
+ address: string | null;
1545
+ device_name: string;
1546
+ key_id: string;
1547
+ property_id: string | null;
1548
+ property_postcode: string | null;
1549
+ key_notes: string | null;
1550
+ subscription_plan: string;
1551
+ status_type: string;
1552
+ current_or_last_store_id: number;
1553
+ last_movement: string;
1554
+ current_status: string | null;
1555
+ current_user_name: string | null;
1556
+ current_user_email: string | null;
1557
+ current_user_phone_number: string | null;
1558
+ current_user_company: string | null;
1559
+ handover_method: string | null;
1560
+ keynest_app_user: string | null;
1561
+ default_office_id: number;
1562
+ fob_id: number;
1563
+ has_photo: boolean;
1564
+ } | undefined;
1457
1565
  }>>, z.ZodIntersection<z.ZodObject<{
1458
1566
  _experimental_supported_code_from_access_codes_lengths: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
1459
1567
  code_constraints: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
@@ -3240,6 +3348,28 @@ export declare const spaces_batch: z.ZodObject<{
3240
3348
  device_name: string;
3241
3349
  product_type: string;
3242
3350
  } | undefined;
3351
+ keynest_metadata?: {
3352
+ address: string | null;
3353
+ device_name: string;
3354
+ key_id: string;
3355
+ property_id: string | null;
3356
+ property_postcode: string | null;
3357
+ key_notes: string | null;
3358
+ subscription_plan: string;
3359
+ status_type: string;
3360
+ current_or_last_store_id: number;
3361
+ last_movement: string;
3362
+ current_status: string | null;
3363
+ current_user_name: string | null;
3364
+ current_user_email: string | null;
3365
+ current_user_phone_number: string | null;
3366
+ current_user_company: string | null;
3367
+ handover_method: string | null;
3368
+ keynest_app_user: string | null;
3369
+ default_office_id: number;
3370
+ fob_id: number;
3371
+ has_photo: boolean;
3372
+ } | undefined;
3243
3373
  } & {
3244
3374
  _experimental_supported_code_from_access_codes_lengths?: number[] | undefined;
3245
3375
  code_constraints?: ({
@@ -3875,6 +4005,28 @@ export declare const spaces_batch: z.ZodObject<{
3875
4005
  device_name: string;
3876
4006
  product_type: string;
3877
4007
  } | undefined;
4008
+ keynest_metadata?: {
4009
+ address: string | null;
4010
+ device_name: string;
4011
+ key_id: string;
4012
+ property_id: string | null;
4013
+ property_postcode: string | null;
4014
+ key_notes: string | null;
4015
+ subscription_plan: string;
4016
+ status_type: string;
4017
+ current_or_last_store_id: number;
4018
+ last_movement: string;
4019
+ current_status: string | null;
4020
+ current_user_name: string | null;
4021
+ current_user_email: string | null;
4022
+ current_user_phone_number: string | null;
4023
+ current_user_company: string | null;
4024
+ handover_method: string | null;
4025
+ keynest_app_user: string | null;
4026
+ default_office_id: number;
4027
+ fob_id: number;
4028
+ has_photo: boolean;
4029
+ } | undefined;
3878
4030
  } & {
3879
4031
  _experimental_supported_code_from_access_codes_lengths?: number[] | undefined;
3880
4032
  code_constraints?: ({
@@ -4290,46 +4442,127 @@ export declare const spaces_batch: z.ZodObject<{
4290
4442
  room_description?: string | undefined;
4291
4443
  } | undefined;
4292
4444
  }>, "many">>;
4293
- }, "strip", z.ZodTypeAny, {
4294
- batch_type: "spaces";
4295
- spaces?: {
4296
- name: string;
4297
- display_name: string;
4298
- workspace_id: string;
4299
- created_at: string;
4300
- space_id: string;
4301
- device_count: number;
4302
- acs_entrance_count: number;
4303
- space_key?: string | undefined;
4304
- }[] | undefined;
4305
- devices?: {
4306
- location: {
4307
- location_name?: string | undefined;
4308
- timezone?: string | undefined;
4309
- } | null;
4310
- display_name: string;
4311
- device_id: string;
4312
- workspace_id: string;
4313
- created_at: string;
4314
- errors: ({
4445
+ connected_accounts: z.ZodOptional<z.ZodArray<z.ZodObject<{
4446
+ connected_account_id: z.ZodOptional<z.ZodString>;
4447
+ created_at: z.ZodOptional<z.ZodString>;
4448
+ user_identifier: z.ZodOptional<z.ZodObject<{
4449
+ username: z.ZodOptional<z.ZodString>;
4450
+ api_url: z.ZodOptional<z.ZodString>;
4451
+ email: z.ZodOptional<z.ZodString>;
4452
+ phone: z.ZodOptional<z.ZodString>;
4453
+ exclusive: z.ZodOptional<z.ZodBoolean>;
4454
+ }, "strip", z.ZodTypeAny, {
4455
+ exclusive?: boolean | undefined;
4456
+ username?: string | undefined;
4457
+ email?: string | undefined;
4458
+ phone?: string | undefined;
4459
+ api_url?: string | undefined;
4460
+ }, {
4461
+ exclusive?: boolean | undefined;
4462
+ username?: string | undefined;
4463
+ email?: string | undefined;
4464
+ phone?: string | undefined;
4465
+ api_url?: string | undefined;
4466
+ }>>;
4467
+ account_type: z.ZodOptional<z.ZodString>;
4468
+ account_type_display_name: z.ZodString;
4469
+ errors: z.ZodArray<z.ZodDiscriminatedUnion<"error_code", [z.ZodObject<{
4470
+ created_at: z.ZodString;
4471
+ message: z.ZodString;
4472
+ is_connected_account_error: z.ZodOptional<z.ZodBoolean>;
4473
+ is_bridge_error: z.ZodOptional<z.ZodBoolean>;
4474
+ } & {
4475
+ error_code: z.ZodLiteral<"account_disconnected">;
4476
+ }, "strip", z.ZodTypeAny, {
4315
4477
  message: string;
4316
4478
  created_at: string;
4317
4479
  error_code: "account_disconnected";
4318
4480
  is_connected_account_error?: boolean | undefined;
4319
4481
  is_bridge_error?: boolean | undefined;
4320
- } | {
4482
+ }, {
4483
+ message: string;
4484
+ created_at: string;
4485
+ error_code: "account_disconnected";
4486
+ is_connected_account_error?: boolean | undefined;
4487
+ is_bridge_error?: boolean | undefined;
4488
+ }>, z.ZodObject<{
4489
+ created_at: z.ZodString;
4490
+ message: z.ZodString;
4491
+ is_connected_account_error: z.ZodOptional<z.ZodBoolean>;
4492
+ is_bridge_error: z.ZodOptional<z.ZodBoolean>;
4493
+ } & {
4494
+ error_code: z.ZodLiteral<"invalid_credentials">;
4495
+ }, "strip", z.ZodTypeAny, {
4321
4496
  message: string;
4322
4497
  created_at: string;
4323
4498
  error_code: "invalid_credentials";
4324
4499
  is_connected_account_error?: boolean | undefined;
4325
4500
  is_bridge_error?: boolean | undefined;
4326
- } | {
4501
+ }, {
4502
+ message: string;
4503
+ created_at: string;
4504
+ error_code: "invalid_credentials";
4505
+ is_connected_account_error?: boolean | undefined;
4506
+ is_bridge_error?: boolean | undefined;
4507
+ }>, z.ZodObject<{
4508
+ created_at: z.ZodString;
4509
+ message: z.ZodString;
4510
+ is_connected_account_error: z.ZodOptional<z.ZodBoolean>;
4511
+ is_bridge_error: z.ZodOptional<z.ZodBoolean>;
4512
+ } & {
4513
+ error_code: z.ZodLiteral<"bridge_disconnected">;
4514
+ }, "strip", z.ZodTypeAny, {
4327
4515
  message: string;
4328
4516
  created_at: string;
4329
4517
  error_code: "bridge_disconnected";
4330
4518
  is_connected_account_error?: boolean | undefined;
4331
4519
  is_bridge_error?: boolean | undefined;
4332
- } | {
4520
+ }, {
4521
+ message: string;
4522
+ created_at: string;
4523
+ error_code: "bridge_disconnected";
4524
+ is_connected_account_error?: boolean | undefined;
4525
+ is_bridge_error?: boolean | undefined;
4526
+ }>, z.ZodObject<{
4527
+ created_at: z.ZodString;
4528
+ message: z.ZodString;
4529
+ is_connected_account_error: z.ZodOptional<z.ZodBoolean>;
4530
+ is_bridge_error: z.ZodOptional<z.ZodBoolean>;
4531
+ } & {
4532
+ error_code: z.ZodLiteral<"salto_ks_subscription_limit_exceeded">;
4533
+ salto_ks_metadata: z.ZodObject<{
4534
+ sites: z.ZodArray<z.ZodObject<{
4535
+ site_id: z.ZodString;
4536
+ site_name: z.ZodString;
4537
+ subscribed_site_user_count: z.ZodNumber;
4538
+ site_user_subscription_limit: z.ZodNumber;
4539
+ }, "strip", z.ZodTypeAny, {
4540
+ site_id: string;
4541
+ site_name: string;
4542
+ subscribed_site_user_count: number;
4543
+ site_user_subscription_limit: number;
4544
+ }, {
4545
+ site_id: string;
4546
+ site_name: string;
4547
+ subscribed_site_user_count: number;
4548
+ site_user_subscription_limit: number;
4549
+ }>, "many">;
4550
+ }, "strip", z.ZodTypeAny, {
4551
+ sites: {
4552
+ site_id: string;
4553
+ site_name: string;
4554
+ subscribed_site_user_count: number;
4555
+ site_user_subscription_limit: number;
4556
+ }[];
4557
+ }, {
4558
+ sites: {
4559
+ site_id: string;
4560
+ site_name: string;
4561
+ subscribed_site_user_count: number;
4562
+ site_user_subscription_limit: number;
4563
+ }[];
4564
+ }>;
4565
+ }, "strip", z.ZodTypeAny, {
4333
4566
  message: string;
4334
4567
  created_at: string;
4335
4568
  error_code: "salto_ks_subscription_limit_exceeded";
@@ -4343,159 +4576,753 @@ export declare const spaces_batch: z.ZodObject<{
4343
4576
  };
4344
4577
  is_connected_account_error?: boolean | undefined;
4345
4578
  is_bridge_error?: boolean | undefined;
4346
- } | {
4347
- message: string;
4348
- created_at: string;
4349
- error_code: "device_offline";
4350
- is_device_error: true;
4351
- } | {
4352
- message: string;
4353
- created_at: string;
4354
- error_code: "device_removed";
4355
- is_device_error: true;
4356
- } | {
4579
+ }, {
4357
4580
  message: string;
4358
4581
  created_at: string;
4359
- error_code: "hub_disconnected";
4360
- is_device_error: true;
4361
- } | {
4582
+ error_code: "salto_ks_subscription_limit_exceeded";
4583
+ salto_ks_metadata: {
4584
+ sites: {
4585
+ site_id: string;
4586
+ site_name: string;
4587
+ subscribed_site_user_count: number;
4588
+ site_user_subscription_limit: number;
4589
+ }[];
4590
+ };
4591
+ is_connected_account_error?: boolean | undefined;
4592
+ is_bridge_error?: boolean | undefined;
4593
+ }>]>, "many">;
4594
+ warnings: z.ZodArray<z.ZodDiscriminatedUnion<"warning_code", [z.ZodObject<{
4595
+ created_at: z.ZodString;
4596
+ message: z.ZodString;
4597
+ } & {
4598
+ warning_code: z.ZodLiteral<"scheduled_maintenance_window">;
4599
+ }, "strip", z.ZodTypeAny, {
4362
4600
  message: string;
4363
4601
  created_at: string;
4364
- error_code: "device_disconnected";
4365
- is_device_error: true;
4366
- } | {
4602
+ warning_code: "scheduled_maintenance_window";
4603
+ }, {
4367
4604
  message: string;
4368
4605
  created_at: string;
4369
- error_code: "account_disconnected";
4370
- is_connected_account_error: true;
4371
- is_device_error: false;
4372
- } | {
4606
+ warning_code: "scheduled_maintenance_window";
4607
+ }>, z.ZodObject<{
4608
+ created_at: z.ZodString;
4609
+ message: z.ZodString;
4610
+ } & {
4611
+ warning_code: z.ZodLiteral<"unknown_issue_with_connected_account">;
4612
+ }, "strip", z.ZodTypeAny, {
4373
4613
  message: string;
4374
4614
  created_at: string;
4375
- error_code: "empty_backup_access_code_pool";
4376
- is_device_error: true;
4377
- } | {
4615
+ warning_code: "unknown_issue_with_connected_account";
4616
+ }, {
4378
4617
  message: string;
4379
4618
  created_at: string;
4380
- error_code: "august_lock_not_authorized";
4381
- is_device_error: true;
4382
- } | {
4619
+ warning_code: "unknown_issue_with_connected_account";
4620
+ }>, z.ZodObject<{
4621
+ created_at: z.ZodString;
4622
+ message: z.ZodString;
4623
+ } & {
4624
+ warning_code: z.ZodLiteral<"salto_ks_subscription_limit_almost_reached">;
4625
+ salto_ks_metadata: z.ZodObject<{
4626
+ sites: z.ZodArray<z.ZodObject<{
4627
+ site_id: z.ZodString;
4628
+ site_name: z.ZodString;
4629
+ site_user_subscription_limit: z.ZodNumber;
4630
+ subscribed_site_user_count: z.ZodNumber;
4631
+ }, "strip", z.ZodTypeAny, {
4632
+ site_id: string;
4633
+ site_name: string;
4634
+ subscribed_site_user_count: number;
4635
+ site_user_subscription_limit: number;
4636
+ }, {
4637
+ site_id: string;
4638
+ site_name: string;
4639
+ subscribed_site_user_count: number;
4640
+ site_user_subscription_limit: number;
4641
+ }>, "many">;
4642
+ }, "strip", z.ZodTypeAny, {
4643
+ sites: {
4644
+ site_id: string;
4645
+ site_name: string;
4646
+ subscribed_site_user_count: number;
4647
+ site_user_subscription_limit: number;
4648
+ }[];
4649
+ }, {
4650
+ sites: {
4651
+ site_id: string;
4652
+ site_name: string;
4653
+ subscribed_site_user_count: number;
4654
+ site_user_subscription_limit: number;
4655
+ }[];
4656
+ }>;
4657
+ }, "strip", z.ZodTypeAny, {
4383
4658
  message: string;
4384
4659
  created_at: string;
4385
- error_code: "august_lock_missing_bridge";
4386
- is_device_error: true;
4387
- } | {
4660
+ salto_ks_metadata: {
4661
+ sites: {
4662
+ site_id: string;
4663
+ site_name: string;
4664
+ subscribed_site_user_count: number;
4665
+ site_user_subscription_limit: number;
4666
+ }[];
4667
+ };
4668
+ warning_code: "salto_ks_subscription_limit_almost_reached";
4669
+ }, {
4388
4670
  message: string;
4389
4671
  created_at: string;
4390
- error_code: "salto_ks_subscription_limit_exceeded";
4391
- is_connected_account_error: true;
4392
- is_device_error: false;
4393
- } | {
4672
+ salto_ks_metadata: {
4673
+ sites: {
4674
+ site_id: string;
4675
+ site_name: string;
4676
+ subscribed_site_user_count: number;
4677
+ site_user_subscription_limit: number;
4678
+ }[];
4679
+ };
4680
+ warning_code: "salto_ks_subscription_limit_almost_reached";
4681
+ }>]>, "many">;
4682
+ custom_metadata: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodBoolean]>>;
4683
+ automatically_manage_new_devices: z.ZodBoolean;
4684
+ customer_key: z.ZodOptional<z.ZodString>;
4685
+ accepted_capabilities: z.ZodArray<z.ZodEnum<["lock", "thermostat", "noise_sensor", "access_control"]>, "many">;
4686
+ }, "strip", z.ZodTypeAny, {
4687
+ errors: ({
4394
4688
  message: string;
4395
4689
  created_at: string;
4396
- error_code: "ttlock_lock_not_paired_to_gateway";
4397
- is_device_error: true;
4690
+ error_code: "account_disconnected";
4691
+ is_connected_account_error?: boolean | undefined;
4692
+ is_bridge_error?: boolean | undefined;
4398
4693
  } | {
4399
4694
  message: string;
4400
4695
  created_at: string;
4401
- error_code: "missing_device_credentials";
4402
- is_device_error: true;
4696
+ error_code: "invalid_credentials";
4697
+ is_connected_account_error?: boolean | undefined;
4698
+ is_bridge_error?: boolean | undefined;
4403
4699
  } | {
4404
4700
  message: string;
4405
4701
  created_at: string;
4406
- error_code: "auxiliary_heat_running";
4407
- is_device_error: true;
4702
+ error_code: "bridge_disconnected";
4703
+ is_connected_account_error?: boolean | undefined;
4704
+ is_bridge_error?: boolean | undefined;
4408
4705
  } | {
4409
4706
  message: string;
4410
4707
  created_at: string;
4411
- error_code: "subscription_required";
4412
- is_device_error: true;
4708
+ error_code: "salto_ks_subscription_limit_exceeded";
4709
+ salto_ks_metadata: {
4710
+ sites: {
4711
+ site_id: string;
4712
+ site_name: string;
4713
+ subscribed_site_user_count: number;
4714
+ site_user_subscription_limit: number;
4715
+ }[];
4716
+ };
4717
+ is_connected_account_error?: boolean | undefined;
4718
+ is_bridge_error?: boolean | undefined;
4719
+ })[];
4720
+ account_type_display_name: string;
4721
+ warnings: ({
4722
+ message: string;
4723
+ created_at: string;
4724
+ warning_code: "scheduled_maintenance_window";
4413
4725
  } | {
4414
4726
  message: string;
4415
4727
  created_at: string;
4416
- error_code: "lockly_missing_wifi_bridge";
4417
- is_device_error: true;
4728
+ warning_code: "unknown_issue_with_connected_account";
4729
+ } | {
4730
+ message: string;
4731
+ created_at: string;
4732
+ salto_ks_metadata: {
4733
+ sites: {
4734
+ site_id: string;
4735
+ site_name: string;
4736
+ subscribed_site_user_count: number;
4737
+ site_user_subscription_limit: number;
4738
+ }[];
4739
+ };
4740
+ warning_code: "salto_ks_subscription_limit_almost_reached";
4418
4741
  })[];
4419
- connected_account_id: string;
4420
- warnings: ({
4742
+ custom_metadata: Record<string, string | boolean>;
4743
+ automatically_manage_new_devices: boolean;
4744
+ accepted_capabilities: ("lock" | "thermostat" | "noise_sensor" | "access_control")[];
4745
+ created_at?: string | undefined;
4746
+ connected_account_id?: string | undefined;
4747
+ user_identifier?: {
4748
+ exclusive?: boolean | undefined;
4749
+ username?: string | undefined;
4750
+ email?: string | undefined;
4751
+ phone?: string | undefined;
4752
+ api_url?: string | undefined;
4753
+ } | undefined;
4754
+ account_type?: string | undefined;
4755
+ customer_key?: string | undefined;
4756
+ }, {
4757
+ errors: ({
4421
4758
  message: string;
4422
4759
  created_at: string;
4423
- warning_code: "partial_backup_access_code_pool";
4760
+ error_code: "account_disconnected";
4761
+ is_connected_account_error?: boolean | undefined;
4762
+ is_bridge_error?: boolean | undefined;
4424
4763
  } | {
4425
4764
  message: string;
4426
4765
  created_at: string;
4427
- warning_code: "many_active_backup_codes";
4766
+ error_code: "invalid_credentials";
4767
+ is_connected_account_error?: boolean | undefined;
4768
+ is_bridge_error?: boolean | undefined;
4428
4769
  } | {
4429
4770
  message: string;
4430
4771
  created_at: string;
4431
- warning_code: "salto_ks_office_mode";
4772
+ error_code: "bridge_disconnected";
4773
+ is_connected_account_error?: boolean | undefined;
4774
+ is_bridge_error?: boolean | undefined;
4432
4775
  } | {
4433
4776
  message: string;
4434
4777
  created_at: string;
4435
- warning_code: "salto_ks_privacy_mode";
4778
+ error_code: "salto_ks_subscription_limit_exceeded";
4779
+ salto_ks_metadata: {
4780
+ sites: {
4781
+ site_id: string;
4782
+ site_name: string;
4783
+ subscribed_site_user_count: number;
4784
+ site_user_subscription_limit: number;
4785
+ }[];
4786
+ };
4787
+ is_connected_account_error?: boolean | undefined;
4788
+ is_bridge_error?: boolean | undefined;
4789
+ })[];
4790
+ account_type_display_name: string;
4791
+ warnings: ({
4792
+ message: string;
4793
+ created_at: string;
4794
+ warning_code: "scheduled_maintenance_window";
4795
+ } | {
4796
+ message: string;
4797
+ created_at: string;
4798
+ warning_code: "unknown_issue_with_connected_account";
4436
4799
  } | {
4800
+ message: string;
4801
+ created_at: string;
4802
+ salto_ks_metadata: {
4803
+ sites: {
4804
+ site_id: string;
4805
+ site_name: string;
4806
+ subscribed_site_user_count: number;
4807
+ site_user_subscription_limit: number;
4808
+ }[];
4809
+ };
4810
+ warning_code: "salto_ks_subscription_limit_almost_reached";
4811
+ })[];
4812
+ custom_metadata: Record<string, string | boolean>;
4813
+ automatically_manage_new_devices: boolean;
4814
+ accepted_capabilities: ("lock" | "thermostat" | "noise_sensor" | "access_control")[];
4815
+ created_at?: string | undefined;
4816
+ connected_account_id?: string | undefined;
4817
+ user_identifier?: {
4818
+ exclusive?: boolean | undefined;
4819
+ username?: string | undefined;
4820
+ email?: string | undefined;
4821
+ phone?: string | undefined;
4822
+ api_url?: string | undefined;
4823
+ } | undefined;
4824
+ account_type?: string | undefined;
4825
+ customer_key?: string | undefined;
4826
+ }>, "many">>;
4827
+ acs_systems: z.ZodOptional<z.ZodArray<z.ZodObject<{
4828
+ default_credential_manager_acs_system_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4829
+ acs_system_id: z.ZodString;
4830
+ acs_user_count: z.ZodOptional<z.ZodNumber>;
4831
+ acs_access_group_count: z.ZodOptional<z.ZodNumber>;
4832
+ external_type: z.ZodOptional<z.ZodEnum<["pti_site", "alta_org", "salto_ks_site", "salto_space_system", "brivo_account", "hid_credential_manager_organization", "visionline_system", "assa_abloy_credential_service", "latch_building", "dormakaba_community_site", "legic_connect_credential_service", "assa_abloy_vostio", "assa_abloy_vostio_credential_service"]>>;
4833
+ external_type_display_name: z.ZodOptional<z.ZodString>;
4834
+ is_credential_manager: z.ZodBoolean;
4835
+ visionline_metadata: z.ZodOptional<z.ZodObject<{
4836
+ mobile_access_uuid: z.ZodString;
4837
+ system_id: z.ZodString;
4838
+ lan_address: z.ZodString;
4839
+ }, "strip", z.ZodTypeAny, {
4840
+ mobile_access_uuid: string;
4841
+ system_id: string;
4842
+ lan_address: string;
4843
+ }, {
4844
+ mobile_access_uuid: string;
4845
+ system_id: string;
4846
+ lan_address: string;
4847
+ }>>;
4848
+ system_type: z.ZodOptional<z.ZodEnum<["pti_site", "alta_org", "salto_ks_site", "salto_space_system", "brivo_account", "hid_credential_manager_organization", "visionline_system", "assa_abloy_credential_service", "latch_building", "dormakaba_community_site", "legic_connect_credential_service", "assa_abloy_vostio", "assa_abloy_vostio_credential_service"]>>;
4849
+ system_type_display_name: z.ZodOptional<z.ZodString>;
4850
+ location: z.ZodObject<{
4851
+ time_zone: z.ZodNullable<z.ZodString>;
4852
+ }, "strip", z.ZodTypeAny, {
4853
+ time_zone: string | null;
4854
+ }, {
4855
+ time_zone: string | null;
4856
+ }>;
4857
+ name: z.ZodString;
4858
+ created_at: z.ZodString;
4859
+ workspace_id: z.ZodString;
4860
+ connected_account_ids: z.ZodArray<z.ZodString, "many">;
4861
+ connected_account_id: z.ZodString;
4862
+ image_url: z.ZodString;
4863
+ image_alt_text: z.ZodString;
4864
+ errors: z.ZodArray<z.ZodDiscriminatedUnion<"error_code", [z.ZodObject<{
4865
+ created_at: z.ZodString;
4866
+ message: z.ZodString;
4867
+ } & {
4868
+ error_code: z.ZodLiteral<"seam_bridge_disconnected">;
4869
+ }, "strip", z.ZodTypeAny, {
4870
+ message: string;
4871
+ created_at: string;
4872
+ error_code: "seam_bridge_disconnected";
4873
+ }, {
4874
+ message: string;
4875
+ created_at: string;
4876
+ error_code: "seam_bridge_disconnected";
4877
+ }>, z.ZodObject<{
4878
+ created_at: z.ZodString;
4879
+ message: z.ZodString;
4880
+ } & {
4881
+ error_code: z.ZodLiteral<"bridge_disconnected">;
4882
+ is_bridge_error: z.ZodOptional<z.ZodBoolean>;
4883
+ }, "strip", z.ZodTypeAny, {
4884
+ message: string;
4885
+ created_at: string;
4886
+ error_code: "bridge_disconnected";
4887
+ is_bridge_error?: boolean | undefined;
4888
+ }, {
4889
+ message: string;
4890
+ created_at: string;
4891
+ error_code: "bridge_disconnected";
4892
+ is_bridge_error?: boolean | undefined;
4893
+ }>, z.ZodObject<{
4894
+ created_at: z.ZodString;
4895
+ message: z.ZodString;
4896
+ } & {
4897
+ error_code: z.ZodLiteral<"visionline_instance_unreachable">;
4898
+ }, "strip", z.ZodTypeAny, {
4899
+ message: string;
4900
+ created_at: string;
4901
+ error_code: "visionline_instance_unreachable";
4902
+ }, {
4903
+ message: string;
4904
+ created_at: string;
4905
+ error_code: "visionline_instance_unreachable";
4906
+ }>, z.ZodObject<{
4907
+ created_at: z.ZodString;
4908
+ message: z.ZodString;
4909
+ } & {
4910
+ error_code: z.ZodLiteral<"salto_ks_subscription_limit_exceeded">;
4911
+ }, "strip", z.ZodTypeAny, {
4912
+ message: string;
4913
+ created_at: string;
4914
+ error_code: "salto_ks_subscription_limit_exceeded";
4915
+ }, {
4916
+ message: string;
4917
+ created_at: string;
4918
+ error_code: "salto_ks_subscription_limit_exceeded";
4919
+ }>, z.ZodObject<{
4920
+ created_at: z.ZodString;
4921
+ message: z.ZodString;
4922
+ } & {
4923
+ error_code: z.ZodLiteral<"acs_system_disconnected">;
4924
+ }, "strip", z.ZodTypeAny, {
4925
+ message: string;
4926
+ created_at: string;
4927
+ error_code: "acs_system_disconnected";
4928
+ }, {
4929
+ message: string;
4930
+ created_at: string;
4931
+ error_code: "acs_system_disconnected";
4932
+ }>, z.ZodObject<{
4933
+ created_at: z.ZodString;
4934
+ message: z.ZodString;
4935
+ } & {
4936
+ error_code: z.ZodLiteral<"account_disconnected">;
4937
+ }, "strip", z.ZodTypeAny, {
4938
+ message: string;
4939
+ created_at: string;
4940
+ error_code: "account_disconnected";
4941
+ }, {
4942
+ message: string;
4943
+ created_at: string;
4944
+ error_code: "account_disconnected";
4945
+ }>, z.ZodObject<{
4946
+ created_at: z.ZodString;
4947
+ message: z.ZodString;
4948
+ } & {
4949
+ error_code: z.ZodLiteral<"salto_ks_certification_expired">;
4950
+ }, "strip", z.ZodTypeAny, {
4951
+ message: string;
4952
+ created_at: string;
4953
+ error_code: "salto_ks_certification_expired";
4954
+ }, {
4955
+ message: string;
4956
+ created_at: string;
4957
+ error_code: "salto_ks_certification_expired";
4958
+ }>]>, "many">;
4959
+ warnings: z.ZodArray<z.ZodDiscriminatedUnion<"warning_code", [z.ZodObject<{
4960
+ created_at: z.ZodString;
4961
+ message: z.ZodString;
4962
+ } & {
4963
+ warning_code: z.ZodLiteral<"salto_ks_subscription_limit_almost_reached">;
4964
+ }, "strip", z.ZodTypeAny, {
4965
+ message: string;
4966
+ created_at: string;
4967
+ warning_code: "salto_ks_subscription_limit_almost_reached";
4968
+ }, {
4437
4969
  message: string;
4438
4970
  created_at: string;
4439
4971
  warning_code: "salto_ks_subscription_limit_almost_reached";
4972
+ }>, z.ZodObject<{
4973
+ created_at: z.ZodString;
4974
+ message: z.ZodString;
4975
+ } & {
4976
+ warning_code: z.ZodLiteral<"time_zone_does_not_match_location">;
4977
+ misconfigured_acs_entrance_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4978
+ }, "strip", z.ZodTypeAny, {
4979
+ message: string;
4980
+ created_at: string;
4981
+ warning_code: "time_zone_does_not_match_location";
4982
+ misconfigured_acs_entrance_ids?: string[] | undefined;
4983
+ }, {
4984
+ message: string;
4985
+ created_at: string;
4986
+ warning_code: "time_zone_does_not_match_location";
4987
+ misconfigured_acs_entrance_ids?: string[] | undefined;
4988
+ }>]>, "many">;
4989
+ }, "strip", z.ZodTypeAny, {
4990
+ location: {
4991
+ time_zone: string | null;
4992
+ };
4993
+ name: string;
4994
+ workspace_id: string;
4995
+ created_at: string;
4996
+ errors: ({
4997
+ message: string;
4998
+ created_at: string;
4999
+ error_code: "seam_bridge_disconnected";
4440
5000
  } | {
4441
5001
  message: string;
4442
5002
  created_at: string;
4443
- warning_code: "wyze_device_missing_gateway";
5003
+ error_code: "bridge_disconnected";
5004
+ is_bridge_error?: boolean | undefined;
4444
5005
  } | {
4445
5006
  message: string;
4446
5007
  created_at: string;
4447
- warning_code: "functional_offline_device";
5008
+ error_code: "visionline_instance_unreachable";
4448
5009
  } | {
4449
5010
  message: string;
4450
5011
  created_at: string;
4451
- warning_code: "third_party_integration_detected";
5012
+ error_code: "salto_ks_subscription_limit_exceeded";
4452
5013
  } | {
4453
5014
  message: string;
4454
5015
  created_at: string;
4455
- warning_code: "nest_thermostat_in_manual_eco_mode";
5016
+ error_code: "acs_system_disconnected";
4456
5017
  } | {
4457
5018
  message: string;
4458
5019
  created_at: string;
4459
- warning_code: "ttlock_lock_gateway_unlocking_not_enabled";
5020
+ error_code: "account_disconnected";
4460
5021
  } | {
4461
5022
  message: string;
4462
5023
  created_at: string;
4463
- warning_code: "ttlock_weak_gateway_signal";
5024
+ error_code: "salto_ks_certification_expired";
5025
+ })[];
5026
+ connected_account_id: string;
5027
+ warnings: ({
5028
+ message: string;
5029
+ created_at: string;
5030
+ warning_code: "salto_ks_subscription_limit_almost_reached";
4464
5031
  } | {
4465
5032
  message: string;
4466
5033
  created_at: string;
4467
- warning_code: "power_saving_mode";
5034
+ warning_code: "time_zone_does_not_match_location";
5035
+ misconfigured_acs_entrance_ids?: string[] | undefined;
5036
+ })[];
5037
+ image_url: string;
5038
+ image_alt_text: string;
5039
+ acs_system_id: string;
5040
+ is_credential_manager: boolean;
5041
+ connected_account_ids: string[];
5042
+ visionline_metadata?: {
5043
+ mobile_access_uuid: string;
5044
+ system_id: string;
5045
+ lan_address: string;
5046
+ } | undefined;
5047
+ external_type?: "assa_abloy_credential_service" | "assa_abloy_vostio" | "assa_abloy_vostio_credential_service" | "pti_site" | "alta_org" | "salto_ks_site" | "salto_space_system" | "brivo_account" | "hid_credential_manager_organization" | "visionline_system" | "latch_building" | "dormakaba_community_site" | "legic_connect_credential_service" | undefined;
5048
+ external_type_display_name?: string | undefined;
5049
+ default_credential_manager_acs_system_id?: string | null | undefined;
5050
+ acs_user_count?: number | undefined;
5051
+ acs_access_group_count?: number | undefined;
5052
+ system_type?: "assa_abloy_credential_service" | "assa_abloy_vostio" | "assa_abloy_vostio_credential_service" | "pti_site" | "alta_org" | "salto_ks_site" | "salto_space_system" | "brivo_account" | "hid_credential_manager_organization" | "visionline_system" | "latch_building" | "dormakaba_community_site" | "legic_connect_credential_service" | undefined;
5053
+ system_type_display_name?: string | undefined;
5054
+ }, {
5055
+ location: {
5056
+ time_zone: string | null;
5057
+ };
5058
+ name: string;
5059
+ workspace_id: string;
5060
+ created_at: string;
5061
+ errors: ({
5062
+ message: string;
5063
+ created_at: string;
5064
+ error_code: "seam_bridge_disconnected";
4468
5065
  } | {
4469
5066
  message: string;
4470
5067
  created_at: string;
4471
- warning_code: "temperature_threshold_exceeded";
5068
+ error_code: "bridge_disconnected";
5069
+ is_bridge_error?: boolean | undefined;
4472
5070
  } | {
4473
5071
  message: string;
4474
5072
  created_at: string;
4475
- warning_code: "device_communication_degraded";
5073
+ error_code: "visionline_instance_unreachable";
4476
5074
  } | {
4477
5075
  message: string;
4478
5076
  created_at: string;
4479
- warning_code: "scheduled_maintenance_window";
5077
+ error_code: "salto_ks_subscription_limit_exceeded";
4480
5078
  } | {
4481
5079
  message: string;
4482
5080
  created_at: string;
4483
- warning_code: "device_has_flaky_connection";
5081
+ error_code: "acs_system_disconnected";
4484
5082
  } | {
4485
5083
  message: string;
4486
5084
  created_at: string;
4487
- warning_code: "lockly_time_zone_not_configured";
5085
+ error_code: "account_disconnected";
4488
5086
  } | {
4489
5087
  message: string;
4490
5088
  created_at: string;
4491
- warning_code: "unknown_issue_with_phone";
5089
+ error_code: "salto_ks_certification_expired";
4492
5090
  })[];
4493
- custom_metadata: Record<string, string | boolean>;
4494
- device_type: ("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") | ("noiseaware_activity_zone" | "minut_sensor") | ("ecobee_thermostat" | "nest_thermostat" | "honeywell_resideo_thermostat" | "tado_thermostat" | "sensi_thermostat" | "smartthings_thermostat") | ("ios_phone" | "android_phone");
4495
- capabilities_supported: ("access_code" | "lock" | "noise_detection" | "thermostat" | "battery" | "phone")[];
4496
- properties: {
4497
- name: string;
4498
- appearance: {
5091
+ connected_account_id: string;
5092
+ warnings: ({
5093
+ message: string;
5094
+ created_at: string;
5095
+ warning_code: "salto_ks_subscription_limit_almost_reached";
5096
+ } | {
5097
+ message: string;
5098
+ created_at: string;
5099
+ warning_code: "time_zone_does_not_match_location";
5100
+ misconfigured_acs_entrance_ids?: string[] | undefined;
5101
+ })[];
5102
+ image_url: string;
5103
+ image_alt_text: string;
5104
+ acs_system_id: string;
5105
+ is_credential_manager: boolean;
5106
+ connected_account_ids: string[];
5107
+ visionline_metadata?: {
5108
+ mobile_access_uuid: string;
5109
+ system_id: string;
5110
+ lan_address: string;
5111
+ } | undefined;
5112
+ external_type?: "assa_abloy_credential_service" | "assa_abloy_vostio" | "assa_abloy_vostio_credential_service" | "pti_site" | "alta_org" | "salto_ks_site" | "salto_space_system" | "brivo_account" | "hid_credential_manager_organization" | "visionline_system" | "latch_building" | "dormakaba_community_site" | "legic_connect_credential_service" | undefined;
5113
+ external_type_display_name?: string | undefined;
5114
+ default_credential_manager_acs_system_id?: string | null | undefined;
5115
+ acs_user_count?: number | undefined;
5116
+ acs_access_group_count?: number | undefined;
5117
+ system_type?: "assa_abloy_credential_service" | "assa_abloy_vostio" | "assa_abloy_vostio_credential_service" | "pti_site" | "alta_org" | "salto_ks_site" | "salto_space_system" | "brivo_account" | "hid_credential_manager_organization" | "visionline_system" | "latch_building" | "dormakaba_community_site" | "legic_connect_credential_service" | undefined;
5118
+ system_type_display_name?: string | undefined;
5119
+ }>, "many">>;
5120
+ }, "strip", z.ZodTypeAny, {
5121
+ batch_type: "spaces";
5122
+ spaces?: {
5123
+ name: string;
5124
+ display_name: string;
5125
+ workspace_id: string;
5126
+ created_at: string;
5127
+ space_id: string;
5128
+ device_count: number;
5129
+ acs_entrance_count: number;
5130
+ space_key?: string | undefined;
5131
+ }[] | undefined;
5132
+ devices?: {
5133
+ location: {
5134
+ location_name?: string | undefined;
5135
+ timezone?: string | undefined;
5136
+ } | null;
5137
+ display_name: string;
5138
+ device_id: string;
5139
+ workspace_id: string;
5140
+ created_at: string;
5141
+ errors: ({
5142
+ message: string;
5143
+ created_at: string;
5144
+ error_code: "account_disconnected";
5145
+ is_connected_account_error?: boolean | undefined;
5146
+ is_bridge_error?: boolean | undefined;
5147
+ } | {
5148
+ message: string;
5149
+ created_at: string;
5150
+ error_code: "invalid_credentials";
5151
+ is_connected_account_error?: boolean | undefined;
5152
+ is_bridge_error?: boolean | undefined;
5153
+ } | {
5154
+ message: string;
5155
+ created_at: string;
5156
+ error_code: "bridge_disconnected";
5157
+ is_connected_account_error?: boolean | undefined;
5158
+ is_bridge_error?: boolean | undefined;
5159
+ } | {
5160
+ message: string;
5161
+ created_at: string;
5162
+ error_code: "salto_ks_subscription_limit_exceeded";
5163
+ salto_ks_metadata: {
5164
+ sites: {
5165
+ site_id: string;
5166
+ site_name: string;
5167
+ subscribed_site_user_count: number;
5168
+ site_user_subscription_limit: number;
5169
+ }[];
5170
+ };
5171
+ is_connected_account_error?: boolean | undefined;
5172
+ is_bridge_error?: boolean | undefined;
5173
+ } | {
5174
+ message: string;
5175
+ created_at: string;
5176
+ error_code: "device_offline";
5177
+ is_device_error: true;
5178
+ } | {
5179
+ message: string;
5180
+ created_at: string;
5181
+ error_code: "device_removed";
5182
+ is_device_error: true;
5183
+ } | {
5184
+ message: string;
5185
+ created_at: string;
5186
+ error_code: "hub_disconnected";
5187
+ is_device_error: true;
5188
+ } | {
5189
+ message: string;
5190
+ created_at: string;
5191
+ error_code: "device_disconnected";
5192
+ is_device_error: true;
5193
+ } | {
5194
+ message: string;
5195
+ created_at: string;
5196
+ error_code: "account_disconnected";
5197
+ is_connected_account_error: true;
5198
+ is_device_error: false;
5199
+ } | {
5200
+ message: string;
5201
+ created_at: string;
5202
+ error_code: "empty_backup_access_code_pool";
5203
+ is_device_error: true;
5204
+ } | {
5205
+ message: string;
5206
+ created_at: string;
5207
+ error_code: "august_lock_not_authorized";
5208
+ is_device_error: true;
5209
+ } | {
5210
+ message: string;
5211
+ created_at: string;
5212
+ error_code: "august_lock_missing_bridge";
5213
+ is_device_error: true;
5214
+ } | {
5215
+ message: string;
5216
+ created_at: string;
5217
+ error_code: "salto_ks_subscription_limit_exceeded";
5218
+ is_connected_account_error: true;
5219
+ is_device_error: false;
5220
+ } | {
5221
+ message: string;
5222
+ created_at: string;
5223
+ error_code: "ttlock_lock_not_paired_to_gateway";
5224
+ is_device_error: true;
5225
+ } | {
5226
+ message: string;
5227
+ created_at: string;
5228
+ error_code: "missing_device_credentials";
5229
+ is_device_error: true;
5230
+ } | {
5231
+ message: string;
5232
+ created_at: string;
5233
+ error_code: "auxiliary_heat_running";
5234
+ is_device_error: true;
5235
+ } | {
5236
+ message: string;
5237
+ created_at: string;
5238
+ error_code: "subscription_required";
5239
+ is_device_error: true;
5240
+ } | {
5241
+ message: string;
5242
+ created_at: string;
5243
+ error_code: "lockly_missing_wifi_bridge";
5244
+ is_device_error: true;
5245
+ })[];
5246
+ connected_account_id: string;
5247
+ warnings: ({
5248
+ message: string;
5249
+ created_at: string;
5250
+ warning_code: "partial_backup_access_code_pool";
5251
+ } | {
5252
+ message: string;
5253
+ created_at: string;
5254
+ warning_code: "many_active_backup_codes";
5255
+ } | {
5256
+ message: string;
5257
+ created_at: string;
5258
+ warning_code: "salto_ks_office_mode";
5259
+ } | {
5260
+ message: string;
5261
+ created_at: string;
5262
+ warning_code: "salto_ks_privacy_mode";
5263
+ } | {
5264
+ message: string;
5265
+ created_at: string;
5266
+ warning_code: "salto_ks_subscription_limit_almost_reached";
5267
+ } | {
5268
+ message: string;
5269
+ created_at: string;
5270
+ warning_code: "wyze_device_missing_gateway";
5271
+ } | {
5272
+ message: string;
5273
+ created_at: string;
5274
+ warning_code: "functional_offline_device";
5275
+ } | {
5276
+ message: string;
5277
+ created_at: string;
5278
+ warning_code: "third_party_integration_detected";
5279
+ } | {
5280
+ message: string;
5281
+ created_at: string;
5282
+ warning_code: "nest_thermostat_in_manual_eco_mode";
5283
+ } | {
5284
+ message: string;
5285
+ created_at: string;
5286
+ warning_code: "ttlock_lock_gateway_unlocking_not_enabled";
5287
+ } | {
5288
+ message: string;
5289
+ created_at: string;
5290
+ warning_code: "ttlock_weak_gateway_signal";
5291
+ } | {
5292
+ message: string;
5293
+ created_at: string;
5294
+ warning_code: "power_saving_mode";
5295
+ } | {
5296
+ message: string;
5297
+ created_at: string;
5298
+ warning_code: "temperature_threshold_exceeded";
5299
+ } | {
5300
+ message: string;
5301
+ created_at: string;
5302
+ warning_code: "device_communication_degraded";
5303
+ } | {
5304
+ message: string;
5305
+ created_at: string;
5306
+ warning_code: "scheduled_maintenance_window";
5307
+ } | {
5308
+ message: string;
5309
+ created_at: string;
5310
+ warning_code: "device_has_flaky_connection";
5311
+ } | {
5312
+ message: string;
5313
+ created_at: string;
5314
+ warning_code: "lockly_time_zone_not_configured";
5315
+ } | {
5316
+ message: string;
5317
+ created_at: string;
5318
+ warning_code: "unknown_issue_with_phone";
5319
+ })[];
5320
+ custom_metadata: Record<string, string | boolean>;
5321
+ device_type: ("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") | ("noiseaware_activity_zone" | "minut_sensor") | ("ecobee_thermostat" | "nest_thermostat" | "honeywell_resideo_thermostat" | "tado_thermostat" | "sensi_thermostat" | "smartthings_thermostat") | ("ios_phone" | "android_phone");
5322
+ capabilities_supported: ("access_code" | "lock" | "noise_detection" | "thermostat" | "battery" | "phone")[];
5323
+ properties: {
5324
+ name: string;
5325
+ appearance: {
4499
5326
  name: string;
4500
5327
  };
4501
5328
  online: boolean;
@@ -4774,6 +5601,28 @@ export declare const spaces_batch: z.ZodObject<{
4774
5601
  device_name: string;
4775
5602
  product_type: string;
4776
5603
  } | undefined;
5604
+ keynest_metadata?: {
5605
+ address: string | null;
5606
+ device_name: string;
5607
+ key_id: string;
5608
+ property_id: string | null;
5609
+ property_postcode: string | null;
5610
+ key_notes: string | null;
5611
+ subscription_plan: string;
5612
+ status_type: string;
5613
+ current_or_last_store_id: number;
5614
+ last_movement: string;
5615
+ current_status: string | null;
5616
+ current_user_name: string | null;
5617
+ current_user_email: string | null;
5618
+ current_user_phone_number: string | null;
5619
+ current_user_company: string | null;
5620
+ handover_method: string | null;
5621
+ keynest_app_user: string | null;
5622
+ default_office_id: number;
5623
+ fob_id: number;
5624
+ has_photo: boolean;
5625
+ } | undefined;
4777
5626
  } & {
4778
5627
  _experimental_supported_code_from_access_codes_lengths?: number[] | undefined;
4779
5628
  code_constraints?: ({
@@ -4994,27 +5843,7 @@ export declare const spaces_batch: z.ZodObject<{
4994
5843
  room_description?: string | undefined;
4995
5844
  } | undefined;
4996
5845
  }[] | undefined;
4997
- }, {
4998
- batch_type: "spaces";
4999
- spaces?: {
5000
- name: string;
5001
- display_name: string;
5002
- workspace_id: string;
5003
- created_at: string;
5004
- space_id: string;
5005
- device_count: number;
5006
- acs_entrance_count: number;
5007
- space_key?: string | undefined;
5008
- }[] | undefined;
5009
- devices?: {
5010
- location: {
5011
- location_name?: string | undefined;
5012
- timezone?: string | undefined;
5013
- } | null;
5014
- display_name: string;
5015
- device_id: string;
5016
- workspace_id: string;
5017
- created_at: string;
5846
+ connected_accounts?: {
5018
5847
  errors: ({
5019
5848
  message: string;
5020
5849
  created_at: string;
@@ -5047,26 +5876,183 @@ export declare const spaces_batch: z.ZodObject<{
5047
5876
  };
5048
5877
  is_connected_account_error?: boolean | undefined;
5049
5878
  is_bridge_error?: boolean | undefined;
5050
- } | {
5051
- message: string;
5052
- created_at: string;
5053
- error_code: "device_offline";
5054
- is_device_error: true;
5055
- } | {
5879
+ })[];
5880
+ account_type_display_name: string;
5881
+ warnings: ({
5056
5882
  message: string;
5057
5883
  created_at: string;
5058
- error_code: "device_removed";
5059
- is_device_error: true;
5884
+ warning_code: "scheduled_maintenance_window";
5060
5885
  } | {
5061
5886
  message: string;
5062
5887
  created_at: string;
5063
- error_code: "hub_disconnected";
5064
- is_device_error: true;
5888
+ warning_code: "unknown_issue_with_connected_account";
5065
5889
  } | {
5066
5890
  message: string;
5067
5891
  created_at: string;
5068
- error_code: "device_disconnected";
5069
- is_device_error: true;
5892
+ salto_ks_metadata: {
5893
+ sites: {
5894
+ site_id: string;
5895
+ site_name: string;
5896
+ subscribed_site_user_count: number;
5897
+ site_user_subscription_limit: number;
5898
+ }[];
5899
+ };
5900
+ warning_code: "salto_ks_subscription_limit_almost_reached";
5901
+ })[];
5902
+ custom_metadata: Record<string, string | boolean>;
5903
+ automatically_manage_new_devices: boolean;
5904
+ accepted_capabilities: ("lock" | "thermostat" | "noise_sensor" | "access_control")[];
5905
+ created_at?: string | undefined;
5906
+ connected_account_id?: string | undefined;
5907
+ user_identifier?: {
5908
+ exclusive?: boolean | undefined;
5909
+ username?: string | undefined;
5910
+ email?: string | undefined;
5911
+ phone?: string | undefined;
5912
+ api_url?: string | undefined;
5913
+ } | undefined;
5914
+ account_type?: string | undefined;
5915
+ customer_key?: string | undefined;
5916
+ }[] | undefined;
5917
+ acs_systems?: {
5918
+ location: {
5919
+ time_zone: string | null;
5920
+ };
5921
+ name: string;
5922
+ workspace_id: string;
5923
+ created_at: string;
5924
+ errors: ({
5925
+ message: string;
5926
+ created_at: string;
5927
+ error_code: "seam_bridge_disconnected";
5928
+ } | {
5929
+ message: string;
5930
+ created_at: string;
5931
+ error_code: "bridge_disconnected";
5932
+ is_bridge_error?: boolean | undefined;
5933
+ } | {
5934
+ message: string;
5935
+ created_at: string;
5936
+ error_code: "visionline_instance_unreachable";
5937
+ } | {
5938
+ message: string;
5939
+ created_at: string;
5940
+ error_code: "salto_ks_subscription_limit_exceeded";
5941
+ } | {
5942
+ message: string;
5943
+ created_at: string;
5944
+ error_code: "acs_system_disconnected";
5945
+ } | {
5946
+ message: string;
5947
+ created_at: string;
5948
+ error_code: "account_disconnected";
5949
+ } | {
5950
+ message: string;
5951
+ created_at: string;
5952
+ error_code: "salto_ks_certification_expired";
5953
+ })[];
5954
+ connected_account_id: string;
5955
+ warnings: ({
5956
+ message: string;
5957
+ created_at: string;
5958
+ warning_code: "salto_ks_subscription_limit_almost_reached";
5959
+ } | {
5960
+ message: string;
5961
+ created_at: string;
5962
+ warning_code: "time_zone_does_not_match_location";
5963
+ misconfigured_acs_entrance_ids?: string[] | undefined;
5964
+ })[];
5965
+ image_url: string;
5966
+ image_alt_text: string;
5967
+ acs_system_id: string;
5968
+ is_credential_manager: boolean;
5969
+ connected_account_ids: string[];
5970
+ visionline_metadata?: {
5971
+ mobile_access_uuid: string;
5972
+ system_id: string;
5973
+ lan_address: string;
5974
+ } | undefined;
5975
+ external_type?: "assa_abloy_credential_service" | "assa_abloy_vostio" | "assa_abloy_vostio_credential_service" | "pti_site" | "alta_org" | "salto_ks_site" | "salto_space_system" | "brivo_account" | "hid_credential_manager_organization" | "visionline_system" | "latch_building" | "dormakaba_community_site" | "legic_connect_credential_service" | undefined;
5976
+ external_type_display_name?: string | undefined;
5977
+ default_credential_manager_acs_system_id?: string | null | undefined;
5978
+ acs_user_count?: number | undefined;
5979
+ acs_access_group_count?: number | undefined;
5980
+ system_type?: "assa_abloy_credential_service" | "assa_abloy_vostio" | "assa_abloy_vostio_credential_service" | "pti_site" | "alta_org" | "salto_ks_site" | "salto_space_system" | "brivo_account" | "hid_credential_manager_organization" | "visionline_system" | "latch_building" | "dormakaba_community_site" | "legic_connect_credential_service" | undefined;
5981
+ system_type_display_name?: string | undefined;
5982
+ }[] | undefined;
5983
+ }, {
5984
+ batch_type: "spaces";
5985
+ spaces?: {
5986
+ name: string;
5987
+ display_name: string;
5988
+ workspace_id: string;
5989
+ created_at: string;
5990
+ space_id: string;
5991
+ device_count: number;
5992
+ acs_entrance_count: number;
5993
+ space_key?: string | undefined;
5994
+ }[] | undefined;
5995
+ devices?: {
5996
+ location: {
5997
+ location_name?: string | undefined;
5998
+ timezone?: string | undefined;
5999
+ } | null;
6000
+ display_name: string;
6001
+ device_id: string;
6002
+ workspace_id: string;
6003
+ created_at: string;
6004
+ errors: ({
6005
+ message: string;
6006
+ created_at: string;
6007
+ error_code: "account_disconnected";
6008
+ is_connected_account_error?: boolean | undefined;
6009
+ is_bridge_error?: boolean | undefined;
6010
+ } | {
6011
+ message: string;
6012
+ created_at: string;
6013
+ error_code: "invalid_credentials";
6014
+ is_connected_account_error?: boolean | undefined;
6015
+ is_bridge_error?: boolean | undefined;
6016
+ } | {
6017
+ message: string;
6018
+ created_at: string;
6019
+ error_code: "bridge_disconnected";
6020
+ is_connected_account_error?: boolean | undefined;
6021
+ is_bridge_error?: boolean | undefined;
6022
+ } | {
6023
+ message: string;
6024
+ created_at: string;
6025
+ error_code: "salto_ks_subscription_limit_exceeded";
6026
+ salto_ks_metadata: {
6027
+ sites: {
6028
+ site_id: string;
6029
+ site_name: string;
6030
+ subscribed_site_user_count: number;
6031
+ site_user_subscription_limit: number;
6032
+ }[];
6033
+ };
6034
+ is_connected_account_error?: boolean | undefined;
6035
+ is_bridge_error?: boolean | undefined;
6036
+ } | {
6037
+ message: string;
6038
+ created_at: string;
6039
+ error_code: "device_offline";
6040
+ is_device_error: true;
6041
+ } | {
6042
+ message: string;
6043
+ created_at: string;
6044
+ error_code: "device_removed";
6045
+ is_device_error: true;
6046
+ } | {
6047
+ message: string;
6048
+ created_at: string;
6049
+ error_code: "hub_disconnected";
6050
+ is_device_error: true;
6051
+ } | {
6052
+ message: string;
6053
+ created_at: string;
6054
+ error_code: "device_disconnected";
6055
+ is_device_error: true;
5070
6056
  } | {
5071
6057
  message: string;
5072
6058
  created_at: string;
@@ -5478,6 +6464,28 @@ export declare const spaces_batch: z.ZodObject<{
5478
6464
  device_name: string;
5479
6465
  product_type: string;
5480
6466
  } | undefined;
6467
+ keynest_metadata?: {
6468
+ address: string | null;
6469
+ device_name: string;
6470
+ key_id: string;
6471
+ property_id: string | null;
6472
+ property_postcode: string | null;
6473
+ key_notes: string | null;
6474
+ subscription_plan: string;
6475
+ status_type: string;
6476
+ current_or_last_store_id: number;
6477
+ last_movement: string;
6478
+ current_status: string | null;
6479
+ current_user_name: string | null;
6480
+ current_user_email: string | null;
6481
+ current_user_phone_number: string | null;
6482
+ current_user_company: string | null;
6483
+ handover_method: string | null;
6484
+ keynest_app_user: string | null;
6485
+ default_office_id: number;
6486
+ fob_id: number;
6487
+ has_photo: boolean;
6488
+ } | undefined;
5481
6489
  } & {
5482
6490
  _experimental_supported_code_from_access_codes_lengths?: number[] | undefined;
5483
6491
  code_constraints?: ({
@@ -5698,6 +6706,143 @@ export declare const spaces_batch: z.ZodObject<{
5698
6706
  room_description?: string | undefined;
5699
6707
  } | undefined;
5700
6708
  }[] | undefined;
6709
+ connected_accounts?: {
6710
+ errors: ({
6711
+ message: string;
6712
+ created_at: string;
6713
+ error_code: "account_disconnected";
6714
+ is_connected_account_error?: boolean | undefined;
6715
+ is_bridge_error?: boolean | undefined;
6716
+ } | {
6717
+ message: string;
6718
+ created_at: string;
6719
+ error_code: "invalid_credentials";
6720
+ is_connected_account_error?: boolean | undefined;
6721
+ is_bridge_error?: boolean | undefined;
6722
+ } | {
6723
+ message: string;
6724
+ created_at: string;
6725
+ error_code: "bridge_disconnected";
6726
+ is_connected_account_error?: boolean | undefined;
6727
+ is_bridge_error?: boolean | undefined;
6728
+ } | {
6729
+ message: string;
6730
+ created_at: string;
6731
+ error_code: "salto_ks_subscription_limit_exceeded";
6732
+ salto_ks_metadata: {
6733
+ sites: {
6734
+ site_id: string;
6735
+ site_name: string;
6736
+ subscribed_site_user_count: number;
6737
+ site_user_subscription_limit: number;
6738
+ }[];
6739
+ };
6740
+ is_connected_account_error?: boolean | undefined;
6741
+ is_bridge_error?: boolean | undefined;
6742
+ })[];
6743
+ account_type_display_name: string;
6744
+ warnings: ({
6745
+ message: string;
6746
+ created_at: string;
6747
+ warning_code: "scheduled_maintenance_window";
6748
+ } | {
6749
+ message: string;
6750
+ created_at: string;
6751
+ warning_code: "unknown_issue_with_connected_account";
6752
+ } | {
6753
+ message: string;
6754
+ created_at: string;
6755
+ salto_ks_metadata: {
6756
+ sites: {
6757
+ site_id: string;
6758
+ site_name: string;
6759
+ subscribed_site_user_count: number;
6760
+ site_user_subscription_limit: number;
6761
+ }[];
6762
+ };
6763
+ warning_code: "salto_ks_subscription_limit_almost_reached";
6764
+ })[];
6765
+ custom_metadata: Record<string, string | boolean>;
6766
+ automatically_manage_new_devices: boolean;
6767
+ accepted_capabilities: ("lock" | "thermostat" | "noise_sensor" | "access_control")[];
6768
+ created_at?: string | undefined;
6769
+ connected_account_id?: string | undefined;
6770
+ user_identifier?: {
6771
+ exclusive?: boolean | undefined;
6772
+ username?: string | undefined;
6773
+ email?: string | undefined;
6774
+ phone?: string | undefined;
6775
+ api_url?: string | undefined;
6776
+ } | undefined;
6777
+ account_type?: string | undefined;
6778
+ customer_key?: string | undefined;
6779
+ }[] | undefined;
6780
+ acs_systems?: {
6781
+ location: {
6782
+ time_zone: string | null;
6783
+ };
6784
+ name: string;
6785
+ workspace_id: string;
6786
+ created_at: string;
6787
+ errors: ({
6788
+ message: string;
6789
+ created_at: string;
6790
+ error_code: "seam_bridge_disconnected";
6791
+ } | {
6792
+ message: string;
6793
+ created_at: string;
6794
+ error_code: "bridge_disconnected";
6795
+ is_bridge_error?: boolean | undefined;
6796
+ } | {
6797
+ message: string;
6798
+ created_at: string;
6799
+ error_code: "visionline_instance_unreachable";
6800
+ } | {
6801
+ message: string;
6802
+ created_at: string;
6803
+ error_code: "salto_ks_subscription_limit_exceeded";
6804
+ } | {
6805
+ message: string;
6806
+ created_at: string;
6807
+ error_code: "acs_system_disconnected";
6808
+ } | {
6809
+ message: string;
6810
+ created_at: string;
6811
+ error_code: "account_disconnected";
6812
+ } | {
6813
+ message: string;
6814
+ created_at: string;
6815
+ error_code: "salto_ks_certification_expired";
6816
+ })[];
6817
+ connected_account_id: string;
6818
+ warnings: ({
6819
+ message: string;
6820
+ created_at: string;
6821
+ warning_code: "salto_ks_subscription_limit_almost_reached";
6822
+ } | {
6823
+ message: string;
6824
+ created_at: string;
6825
+ warning_code: "time_zone_does_not_match_location";
6826
+ misconfigured_acs_entrance_ids?: string[] | undefined;
6827
+ })[];
6828
+ image_url: string;
6829
+ image_alt_text: string;
6830
+ acs_system_id: string;
6831
+ is_credential_manager: boolean;
6832
+ connected_account_ids: string[];
6833
+ visionline_metadata?: {
6834
+ mobile_access_uuid: string;
6835
+ system_id: string;
6836
+ lan_address: string;
6837
+ } | undefined;
6838
+ external_type?: "assa_abloy_credential_service" | "assa_abloy_vostio" | "assa_abloy_vostio_credential_service" | "pti_site" | "alta_org" | "salto_ks_site" | "salto_space_system" | "brivo_account" | "hid_credential_manager_organization" | "visionline_system" | "latch_building" | "dormakaba_community_site" | "legic_connect_credential_service" | undefined;
6839
+ external_type_display_name?: string | undefined;
6840
+ default_credential_manager_acs_system_id?: string | null | undefined;
6841
+ acs_user_count?: number | undefined;
6842
+ acs_access_group_count?: number | undefined;
6843
+ system_type?: "assa_abloy_credential_service" | "assa_abloy_vostio" | "assa_abloy_vostio_credential_service" | "pti_site" | "alta_org" | "salto_ks_site" | "salto_space_system" | "brivo_account" | "hid_credential_manager_organization" | "visionline_system" | "latch_building" | "dormakaba_community_site" | "legic_connect_credential_service" | undefined;
6844
+ system_type_display_name?: string | undefined;
6845
+ }[] | undefined;
5701
6846
  }>;
5702
6847
  export declare const access_grants_batch: z.ZodObject<{
5703
6848
  batch_type: z.ZodLiteral<"access_grants">;
@@ -6688,6 +7833,70 @@ export declare const access_grants_batch: z.ZodObject<{
6688
7833
  device_name: string;
6689
7834
  product_type: string;
6690
7835
  }>>;
7836
+ keynest_metadata: z.ZodOptional<z.ZodObject<{
7837
+ key_id: z.ZodString;
7838
+ device_name: z.ZodString;
7839
+ property_id: z.ZodNullable<z.ZodString>;
7840
+ property_postcode: z.ZodNullable<z.ZodString>;
7841
+ key_notes: z.ZodNullable<z.ZodString>;
7842
+ subscription_plan: z.ZodString;
7843
+ status_type: z.ZodString;
7844
+ current_or_last_store_id: z.ZodNumber;
7845
+ last_movement: z.ZodString;
7846
+ address: z.ZodNullable<z.ZodString>;
7847
+ current_status: z.ZodNullable<z.ZodString>;
7848
+ current_user_name: z.ZodNullable<z.ZodString>;
7849
+ current_user_email: z.ZodNullable<z.ZodString>;
7850
+ current_user_phone_number: z.ZodNullable<z.ZodString>;
7851
+ current_user_company: z.ZodNullable<z.ZodString>;
7852
+ handover_method: z.ZodNullable<z.ZodString>;
7853
+ keynest_app_user: z.ZodNullable<z.ZodString>;
7854
+ default_office_id: z.ZodNumber;
7855
+ fob_id: z.ZodNumber;
7856
+ has_photo: z.ZodBoolean;
7857
+ }, "strip", z.ZodTypeAny, {
7858
+ address: string | null;
7859
+ device_name: string;
7860
+ key_id: string;
7861
+ property_id: string | null;
7862
+ property_postcode: string | null;
7863
+ key_notes: string | null;
7864
+ subscription_plan: string;
7865
+ status_type: string;
7866
+ current_or_last_store_id: number;
7867
+ last_movement: string;
7868
+ current_status: string | null;
7869
+ current_user_name: string | null;
7870
+ current_user_email: string | null;
7871
+ current_user_phone_number: string | null;
7872
+ current_user_company: string | null;
7873
+ handover_method: string | null;
7874
+ keynest_app_user: string | null;
7875
+ default_office_id: number;
7876
+ fob_id: number;
7877
+ has_photo: boolean;
7878
+ }, {
7879
+ address: string | null;
7880
+ device_name: string;
7881
+ key_id: string;
7882
+ property_id: string | null;
7883
+ property_postcode: string | null;
7884
+ key_notes: string | null;
7885
+ subscription_plan: string;
7886
+ status_type: string;
7887
+ current_or_last_store_id: number;
7888
+ last_movement: string;
7889
+ current_status: string | null;
7890
+ current_user_name: string | null;
7891
+ current_user_email: string | null;
7892
+ current_user_phone_number: string | null;
7893
+ current_user_company: string | null;
7894
+ handover_method: string | null;
7895
+ keynest_app_user: string | null;
7896
+ default_office_id: number;
7897
+ fob_id: number;
7898
+ has_photo: boolean;
7899
+ }>>;
6691
7900
  }, "strip", z.ZodTypeAny, {
6692
7901
  ecobee_metadata?: {
6693
7902
  device_name: string;
@@ -6921,6 +8130,28 @@ export declare const access_grants_batch: z.ZodObject<{
6921
8130
  device_name: string;
6922
8131
  product_type: string;
6923
8132
  } | undefined;
8133
+ keynest_metadata?: {
8134
+ address: string | null;
8135
+ device_name: string;
8136
+ key_id: string;
8137
+ property_id: string | null;
8138
+ property_postcode: string | null;
8139
+ key_notes: string | null;
8140
+ subscription_plan: string;
8141
+ status_type: string;
8142
+ current_or_last_store_id: number;
8143
+ last_movement: string;
8144
+ current_status: string | null;
8145
+ current_user_name: string | null;
8146
+ current_user_email: string | null;
8147
+ current_user_phone_number: string | null;
8148
+ current_user_company: string | null;
8149
+ handover_method: string | null;
8150
+ keynest_app_user: string | null;
8151
+ default_office_id: number;
8152
+ fob_id: number;
8153
+ has_photo: boolean;
8154
+ } | undefined;
6924
8155
  }, {
6925
8156
  ecobee_metadata?: {
6926
8157
  device_name: string;
@@ -7154,6 +8385,28 @@ export declare const access_grants_batch: z.ZodObject<{
7154
8385
  device_name: string;
7155
8386
  product_type: string;
7156
8387
  } | undefined;
8388
+ keynest_metadata?: {
8389
+ address: string | null;
8390
+ device_name: string;
8391
+ key_id: string;
8392
+ property_id: string | null;
8393
+ property_postcode: string | null;
8394
+ key_notes: string | null;
8395
+ subscription_plan: string;
8396
+ status_type: string;
8397
+ current_or_last_store_id: number;
8398
+ last_movement: string;
8399
+ current_status: string | null;
8400
+ current_user_name: string | null;
8401
+ current_user_email: string | null;
8402
+ current_user_phone_number: string | null;
8403
+ current_user_company: string | null;
8404
+ handover_method: string | null;
8405
+ keynest_app_user: string | null;
8406
+ default_office_id: number;
8407
+ fob_id: number;
8408
+ has_photo: boolean;
8409
+ } | undefined;
7157
8410
  }>>, z.ZodIntersection<z.ZodObject<{
7158
8411
  _experimental_supported_code_from_access_codes_lengths: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
7159
8412
  code_constraints: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
@@ -8940,6 +10193,28 @@ export declare const access_grants_batch: z.ZodObject<{
8940
10193
  device_name: string;
8941
10194
  product_type: string;
8942
10195
  } | undefined;
10196
+ keynest_metadata?: {
10197
+ address: string | null;
10198
+ device_name: string;
10199
+ key_id: string;
10200
+ property_id: string | null;
10201
+ property_postcode: string | null;
10202
+ key_notes: string | null;
10203
+ subscription_plan: string;
10204
+ status_type: string;
10205
+ current_or_last_store_id: number;
10206
+ last_movement: string;
10207
+ current_status: string | null;
10208
+ current_user_name: string | null;
10209
+ current_user_email: string | null;
10210
+ current_user_phone_number: string | null;
10211
+ current_user_company: string | null;
10212
+ handover_method: string | null;
10213
+ keynest_app_user: string | null;
10214
+ default_office_id: number;
10215
+ fob_id: number;
10216
+ has_photo: boolean;
10217
+ } | undefined;
8943
10218
  } & {
8944
10219
  _experimental_supported_code_from_access_codes_lengths?: number[] | undefined;
8945
10220
  code_constraints?: ({
@@ -9575,6 +10850,28 @@ export declare const access_grants_batch: z.ZodObject<{
9575
10850
  device_name: string;
9576
10851
  product_type: string;
9577
10852
  } | undefined;
10853
+ keynest_metadata?: {
10854
+ address: string | null;
10855
+ device_name: string;
10856
+ key_id: string;
10857
+ property_id: string | null;
10858
+ property_postcode: string | null;
10859
+ key_notes: string | null;
10860
+ subscription_plan: string;
10861
+ status_type: string;
10862
+ current_or_last_store_id: number;
10863
+ last_movement: string;
10864
+ current_status: string | null;
10865
+ current_user_name: string | null;
10866
+ current_user_email: string | null;
10867
+ current_user_phone_number: string | null;
10868
+ current_user_company: string | null;
10869
+ handover_method: string | null;
10870
+ keynest_app_user: string | null;
10871
+ default_office_id: number;
10872
+ fob_id: number;
10873
+ has_photo: boolean;
10874
+ } | undefined;
9578
10875
  } & {
9579
10876
  _experimental_supported_code_from_access_codes_lengths?: number[] | undefined;
9580
10877
  code_constraints?: ({
@@ -9990,6 +11287,791 @@ export declare const access_grants_batch: z.ZodObject<{
9990
11287
  room_description?: string | undefined;
9991
11288
  } | undefined;
9992
11289
  }>, "many">>;
11290
+ user_identities: z.ZodOptional<z.ZodArray<z.ZodObject<{
11291
+ user_identity_id: z.ZodString;
11292
+ user_identity_key: z.ZodNullable<z.ZodString>;
11293
+ email_address: z.ZodNullable<z.ZodString>;
11294
+ phone_number: z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>;
11295
+ display_name: z.ZodString;
11296
+ full_name: z.ZodNullable<z.ZodString>;
11297
+ created_at: z.ZodString;
11298
+ workspace_id: z.ZodString;
11299
+ errors: z.ZodArray<z.ZodDiscriminatedUnion<"error_code", [z.ZodObject<{
11300
+ created_at: z.ZodString;
11301
+ message: z.ZodString;
11302
+ } & {
11303
+ error_code: z.ZodLiteral<"issue_with_acs_user">;
11304
+ acs_user_id: z.ZodString;
11305
+ acs_system_id: z.ZodString;
11306
+ }, "strip", z.ZodTypeAny, {
11307
+ message: string;
11308
+ created_at: string;
11309
+ error_code: "issue_with_acs_user";
11310
+ acs_system_id: string;
11311
+ acs_user_id: string;
11312
+ }, {
11313
+ message: string;
11314
+ created_at: string;
11315
+ error_code: "issue_with_acs_user";
11316
+ acs_system_id: string;
11317
+ acs_user_id: string;
11318
+ }>]>, "many">;
11319
+ warnings: z.ZodArray<z.ZodDiscriminatedUnion<"warning_code", [z.ZodObject<{
11320
+ created_at: z.ZodString;
11321
+ message: z.ZodString;
11322
+ } & {
11323
+ warning_code: z.ZodLiteral<"being_deleted">;
11324
+ }, "strip", z.ZodTypeAny, {
11325
+ message: string;
11326
+ created_at: string;
11327
+ warning_code: "being_deleted";
11328
+ }, {
11329
+ message: string;
11330
+ created_at: string;
11331
+ warning_code: "being_deleted";
11332
+ }>, z.ZodObject<{
11333
+ created_at: z.ZodString;
11334
+ message: z.ZodString;
11335
+ } & {
11336
+ warning_code: z.ZodLiteral<"acs_user_profile_does_not_match_user_identity">;
11337
+ }, "strip", z.ZodTypeAny, {
11338
+ message: string;
11339
+ created_at: string;
11340
+ warning_code: "acs_user_profile_does_not_match_user_identity";
11341
+ }, {
11342
+ message: string;
11343
+ created_at: string;
11344
+ warning_code: "acs_user_profile_does_not_match_user_identity";
11345
+ }>]>, "many">;
11346
+ acs_user_ids: z.ZodArray<z.ZodString, "many">;
11347
+ }, "strip", z.ZodTypeAny, {
11348
+ display_name: string;
11349
+ workspace_id: string;
11350
+ created_at: string;
11351
+ errors: {
11352
+ message: string;
11353
+ created_at: string;
11354
+ error_code: "issue_with_acs_user";
11355
+ acs_system_id: string;
11356
+ acs_user_id: string;
11357
+ }[];
11358
+ warnings: ({
11359
+ message: string;
11360
+ created_at: string;
11361
+ warning_code: "being_deleted";
11362
+ } | {
11363
+ message: string;
11364
+ created_at: string;
11365
+ warning_code: "acs_user_profile_does_not_match_user_identity";
11366
+ })[];
11367
+ user_identity_id: string;
11368
+ email_address: string | null;
11369
+ full_name: string | null;
11370
+ phone_number: string | null;
11371
+ user_identity_key: string | null;
11372
+ acs_user_ids: string[];
11373
+ }, {
11374
+ display_name: string;
11375
+ workspace_id: string;
11376
+ created_at: string;
11377
+ errors: {
11378
+ message: string;
11379
+ created_at: string;
11380
+ error_code: "issue_with_acs_user";
11381
+ acs_system_id: string;
11382
+ acs_user_id: string;
11383
+ }[];
11384
+ warnings: ({
11385
+ message: string;
11386
+ created_at: string;
11387
+ warning_code: "being_deleted";
11388
+ } | {
11389
+ message: string;
11390
+ created_at: string;
11391
+ warning_code: "acs_user_profile_does_not_match_user_identity";
11392
+ })[];
11393
+ user_identity_id: string;
11394
+ email_address: string | null;
11395
+ full_name: string | null;
11396
+ phone_number: string | null;
11397
+ user_identity_key: string | null;
11398
+ acs_user_ids: string[];
11399
+ }>, "many">>;
11400
+ connected_accounts: z.ZodOptional<z.ZodArray<z.ZodObject<{
11401
+ connected_account_id: z.ZodOptional<z.ZodString>;
11402
+ created_at: z.ZodOptional<z.ZodString>;
11403
+ user_identifier: z.ZodOptional<z.ZodObject<{
11404
+ username: z.ZodOptional<z.ZodString>;
11405
+ api_url: z.ZodOptional<z.ZodString>;
11406
+ email: z.ZodOptional<z.ZodString>;
11407
+ phone: z.ZodOptional<z.ZodString>;
11408
+ exclusive: z.ZodOptional<z.ZodBoolean>;
11409
+ }, "strip", z.ZodTypeAny, {
11410
+ exclusive?: boolean | undefined;
11411
+ username?: string | undefined;
11412
+ email?: string | undefined;
11413
+ phone?: string | undefined;
11414
+ api_url?: string | undefined;
11415
+ }, {
11416
+ exclusive?: boolean | undefined;
11417
+ username?: string | undefined;
11418
+ email?: string | undefined;
11419
+ phone?: string | undefined;
11420
+ api_url?: string | undefined;
11421
+ }>>;
11422
+ account_type: z.ZodOptional<z.ZodString>;
11423
+ account_type_display_name: z.ZodString;
11424
+ errors: z.ZodArray<z.ZodDiscriminatedUnion<"error_code", [z.ZodObject<{
11425
+ created_at: z.ZodString;
11426
+ message: z.ZodString;
11427
+ is_connected_account_error: z.ZodOptional<z.ZodBoolean>;
11428
+ is_bridge_error: z.ZodOptional<z.ZodBoolean>;
11429
+ } & {
11430
+ error_code: z.ZodLiteral<"account_disconnected">;
11431
+ }, "strip", z.ZodTypeAny, {
11432
+ message: string;
11433
+ created_at: string;
11434
+ error_code: "account_disconnected";
11435
+ is_connected_account_error?: boolean | undefined;
11436
+ is_bridge_error?: boolean | undefined;
11437
+ }, {
11438
+ message: string;
11439
+ created_at: string;
11440
+ error_code: "account_disconnected";
11441
+ is_connected_account_error?: boolean | undefined;
11442
+ is_bridge_error?: boolean | undefined;
11443
+ }>, z.ZodObject<{
11444
+ created_at: z.ZodString;
11445
+ message: z.ZodString;
11446
+ is_connected_account_error: z.ZodOptional<z.ZodBoolean>;
11447
+ is_bridge_error: z.ZodOptional<z.ZodBoolean>;
11448
+ } & {
11449
+ error_code: z.ZodLiteral<"invalid_credentials">;
11450
+ }, "strip", z.ZodTypeAny, {
11451
+ message: string;
11452
+ created_at: string;
11453
+ error_code: "invalid_credentials";
11454
+ is_connected_account_error?: boolean | undefined;
11455
+ is_bridge_error?: boolean | undefined;
11456
+ }, {
11457
+ message: string;
11458
+ created_at: string;
11459
+ error_code: "invalid_credentials";
11460
+ is_connected_account_error?: boolean | undefined;
11461
+ is_bridge_error?: boolean | undefined;
11462
+ }>, z.ZodObject<{
11463
+ created_at: z.ZodString;
11464
+ message: z.ZodString;
11465
+ is_connected_account_error: z.ZodOptional<z.ZodBoolean>;
11466
+ is_bridge_error: z.ZodOptional<z.ZodBoolean>;
11467
+ } & {
11468
+ error_code: z.ZodLiteral<"bridge_disconnected">;
11469
+ }, "strip", z.ZodTypeAny, {
11470
+ message: string;
11471
+ created_at: string;
11472
+ error_code: "bridge_disconnected";
11473
+ is_connected_account_error?: boolean | undefined;
11474
+ is_bridge_error?: boolean | undefined;
11475
+ }, {
11476
+ message: string;
11477
+ created_at: string;
11478
+ error_code: "bridge_disconnected";
11479
+ is_connected_account_error?: boolean | undefined;
11480
+ is_bridge_error?: boolean | undefined;
11481
+ }>, z.ZodObject<{
11482
+ created_at: z.ZodString;
11483
+ message: z.ZodString;
11484
+ is_connected_account_error: z.ZodOptional<z.ZodBoolean>;
11485
+ is_bridge_error: z.ZodOptional<z.ZodBoolean>;
11486
+ } & {
11487
+ error_code: z.ZodLiteral<"salto_ks_subscription_limit_exceeded">;
11488
+ salto_ks_metadata: z.ZodObject<{
11489
+ sites: z.ZodArray<z.ZodObject<{
11490
+ site_id: z.ZodString;
11491
+ site_name: z.ZodString;
11492
+ subscribed_site_user_count: z.ZodNumber;
11493
+ site_user_subscription_limit: z.ZodNumber;
11494
+ }, "strip", z.ZodTypeAny, {
11495
+ site_id: string;
11496
+ site_name: string;
11497
+ subscribed_site_user_count: number;
11498
+ site_user_subscription_limit: number;
11499
+ }, {
11500
+ site_id: string;
11501
+ site_name: string;
11502
+ subscribed_site_user_count: number;
11503
+ site_user_subscription_limit: number;
11504
+ }>, "many">;
11505
+ }, "strip", z.ZodTypeAny, {
11506
+ sites: {
11507
+ site_id: string;
11508
+ site_name: string;
11509
+ subscribed_site_user_count: number;
11510
+ site_user_subscription_limit: number;
11511
+ }[];
11512
+ }, {
11513
+ sites: {
11514
+ site_id: string;
11515
+ site_name: string;
11516
+ subscribed_site_user_count: number;
11517
+ site_user_subscription_limit: number;
11518
+ }[];
11519
+ }>;
11520
+ }, "strip", z.ZodTypeAny, {
11521
+ message: string;
11522
+ created_at: string;
11523
+ error_code: "salto_ks_subscription_limit_exceeded";
11524
+ salto_ks_metadata: {
11525
+ sites: {
11526
+ site_id: string;
11527
+ site_name: string;
11528
+ subscribed_site_user_count: number;
11529
+ site_user_subscription_limit: number;
11530
+ }[];
11531
+ };
11532
+ is_connected_account_error?: boolean | undefined;
11533
+ is_bridge_error?: boolean | undefined;
11534
+ }, {
11535
+ message: string;
11536
+ created_at: string;
11537
+ error_code: "salto_ks_subscription_limit_exceeded";
11538
+ salto_ks_metadata: {
11539
+ sites: {
11540
+ site_id: string;
11541
+ site_name: string;
11542
+ subscribed_site_user_count: number;
11543
+ site_user_subscription_limit: number;
11544
+ }[];
11545
+ };
11546
+ is_connected_account_error?: boolean | undefined;
11547
+ is_bridge_error?: boolean | undefined;
11548
+ }>]>, "many">;
11549
+ warnings: z.ZodArray<z.ZodDiscriminatedUnion<"warning_code", [z.ZodObject<{
11550
+ created_at: z.ZodString;
11551
+ message: z.ZodString;
11552
+ } & {
11553
+ warning_code: z.ZodLiteral<"scheduled_maintenance_window">;
11554
+ }, "strip", z.ZodTypeAny, {
11555
+ message: string;
11556
+ created_at: string;
11557
+ warning_code: "scheduled_maintenance_window";
11558
+ }, {
11559
+ message: string;
11560
+ created_at: string;
11561
+ warning_code: "scheduled_maintenance_window";
11562
+ }>, z.ZodObject<{
11563
+ created_at: z.ZodString;
11564
+ message: z.ZodString;
11565
+ } & {
11566
+ warning_code: z.ZodLiteral<"unknown_issue_with_connected_account">;
11567
+ }, "strip", z.ZodTypeAny, {
11568
+ message: string;
11569
+ created_at: string;
11570
+ warning_code: "unknown_issue_with_connected_account";
11571
+ }, {
11572
+ message: string;
11573
+ created_at: string;
11574
+ warning_code: "unknown_issue_with_connected_account";
11575
+ }>, z.ZodObject<{
11576
+ created_at: z.ZodString;
11577
+ message: z.ZodString;
11578
+ } & {
11579
+ warning_code: z.ZodLiteral<"salto_ks_subscription_limit_almost_reached">;
11580
+ salto_ks_metadata: z.ZodObject<{
11581
+ sites: z.ZodArray<z.ZodObject<{
11582
+ site_id: z.ZodString;
11583
+ site_name: z.ZodString;
11584
+ site_user_subscription_limit: z.ZodNumber;
11585
+ subscribed_site_user_count: z.ZodNumber;
11586
+ }, "strip", z.ZodTypeAny, {
11587
+ site_id: string;
11588
+ site_name: string;
11589
+ subscribed_site_user_count: number;
11590
+ site_user_subscription_limit: number;
11591
+ }, {
11592
+ site_id: string;
11593
+ site_name: string;
11594
+ subscribed_site_user_count: number;
11595
+ site_user_subscription_limit: number;
11596
+ }>, "many">;
11597
+ }, "strip", z.ZodTypeAny, {
11598
+ sites: {
11599
+ site_id: string;
11600
+ site_name: string;
11601
+ subscribed_site_user_count: number;
11602
+ site_user_subscription_limit: number;
11603
+ }[];
11604
+ }, {
11605
+ sites: {
11606
+ site_id: string;
11607
+ site_name: string;
11608
+ subscribed_site_user_count: number;
11609
+ site_user_subscription_limit: number;
11610
+ }[];
11611
+ }>;
11612
+ }, "strip", z.ZodTypeAny, {
11613
+ message: string;
11614
+ created_at: string;
11615
+ salto_ks_metadata: {
11616
+ sites: {
11617
+ site_id: string;
11618
+ site_name: string;
11619
+ subscribed_site_user_count: number;
11620
+ site_user_subscription_limit: number;
11621
+ }[];
11622
+ };
11623
+ warning_code: "salto_ks_subscription_limit_almost_reached";
11624
+ }, {
11625
+ message: string;
11626
+ created_at: string;
11627
+ salto_ks_metadata: {
11628
+ sites: {
11629
+ site_id: string;
11630
+ site_name: string;
11631
+ subscribed_site_user_count: number;
11632
+ site_user_subscription_limit: number;
11633
+ }[];
11634
+ };
11635
+ warning_code: "salto_ks_subscription_limit_almost_reached";
11636
+ }>]>, "many">;
11637
+ custom_metadata: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodBoolean]>>;
11638
+ automatically_manage_new_devices: z.ZodBoolean;
11639
+ customer_key: z.ZodOptional<z.ZodString>;
11640
+ accepted_capabilities: z.ZodArray<z.ZodEnum<["lock", "thermostat", "noise_sensor", "access_control"]>, "many">;
11641
+ }, "strip", z.ZodTypeAny, {
11642
+ errors: ({
11643
+ message: string;
11644
+ created_at: string;
11645
+ error_code: "account_disconnected";
11646
+ is_connected_account_error?: boolean | undefined;
11647
+ is_bridge_error?: boolean | undefined;
11648
+ } | {
11649
+ message: string;
11650
+ created_at: string;
11651
+ error_code: "invalid_credentials";
11652
+ is_connected_account_error?: boolean | undefined;
11653
+ is_bridge_error?: boolean | undefined;
11654
+ } | {
11655
+ message: string;
11656
+ created_at: string;
11657
+ error_code: "bridge_disconnected";
11658
+ is_connected_account_error?: boolean | undefined;
11659
+ is_bridge_error?: boolean | undefined;
11660
+ } | {
11661
+ message: string;
11662
+ created_at: string;
11663
+ error_code: "salto_ks_subscription_limit_exceeded";
11664
+ salto_ks_metadata: {
11665
+ sites: {
11666
+ site_id: string;
11667
+ site_name: string;
11668
+ subscribed_site_user_count: number;
11669
+ site_user_subscription_limit: number;
11670
+ }[];
11671
+ };
11672
+ is_connected_account_error?: boolean | undefined;
11673
+ is_bridge_error?: boolean | undefined;
11674
+ })[];
11675
+ account_type_display_name: string;
11676
+ warnings: ({
11677
+ message: string;
11678
+ created_at: string;
11679
+ warning_code: "scheduled_maintenance_window";
11680
+ } | {
11681
+ message: string;
11682
+ created_at: string;
11683
+ warning_code: "unknown_issue_with_connected_account";
11684
+ } | {
11685
+ message: string;
11686
+ created_at: string;
11687
+ salto_ks_metadata: {
11688
+ sites: {
11689
+ site_id: string;
11690
+ site_name: string;
11691
+ subscribed_site_user_count: number;
11692
+ site_user_subscription_limit: number;
11693
+ }[];
11694
+ };
11695
+ warning_code: "salto_ks_subscription_limit_almost_reached";
11696
+ })[];
11697
+ custom_metadata: Record<string, string | boolean>;
11698
+ automatically_manage_new_devices: boolean;
11699
+ accepted_capabilities: ("lock" | "thermostat" | "noise_sensor" | "access_control")[];
11700
+ created_at?: string | undefined;
11701
+ connected_account_id?: string | undefined;
11702
+ user_identifier?: {
11703
+ exclusive?: boolean | undefined;
11704
+ username?: string | undefined;
11705
+ email?: string | undefined;
11706
+ phone?: string | undefined;
11707
+ api_url?: string | undefined;
11708
+ } | undefined;
11709
+ account_type?: string | undefined;
11710
+ customer_key?: string | undefined;
11711
+ }, {
11712
+ errors: ({
11713
+ message: string;
11714
+ created_at: string;
11715
+ error_code: "account_disconnected";
11716
+ is_connected_account_error?: boolean | undefined;
11717
+ is_bridge_error?: boolean | undefined;
11718
+ } | {
11719
+ message: string;
11720
+ created_at: string;
11721
+ error_code: "invalid_credentials";
11722
+ is_connected_account_error?: boolean | undefined;
11723
+ is_bridge_error?: boolean | undefined;
11724
+ } | {
11725
+ message: string;
11726
+ created_at: string;
11727
+ error_code: "bridge_disconnected";
11728
+ is_connected_account_error?: boolean | undefined;
11729
+ is_bridge_error?: boolean | undefined;
11730
+ } | {
11731
+ message: string;
11732
+ created_at: string;
11733
+ error_code: "salto_ks_subscription_limit_exceeded";
11734
+ salto_ks_metadata: {
11735
+ sites: {
11736
+ site_id: string;
11737
+ site_name: string;
11738
+ subscribed_site_user_count: number;
11739
+ site_user_subscription_limit: number;
11740
+ }[];
11741
+ };
11742
+ is_connected_account_error?: boolean | undefined;
11743
+ is_bridge_error?: boolean | undefined;
11744
+ })[];
11745
+ account_type_display_name: string;
11746
+ warnings: ({
11747
+ message: string;
11748
+ created_at: string;
11749
+ warning_code: "scheduled_maintenance_window";
11750
+ } | {
11751
+ message: string;
11752
+ created_at: string;
11753
+ warning_code: "unknown_issue_with_connected_account";
11754
+ } | {
11755
+ message: string;
11756
+ created_at: string;
11757
+ salto_ks_metadata: {
11758
+ sites: {
11759
+ site_id: string;
11760
+ site_name: string;
11761
+ subscribed_site_user_count: number;
11762
+ site_user_subscription_limit: number;
11763
+ }[];
11764
+ };
11765
+ warning_code: "salto_ks_subscription_limit_almost_reached";
11766
+ })[];
11767
+ custom_metadata: Record<string, string | boolean>;
11768
+ automatically_manage_new_devices: boolean;
11769
+ accepted_capabilities: ("lock" | "thermostat" | "noise_sensor" | "access_control")[];
11770
+ created_at?: string | undefined;
11771
+ connected_account_id?: string | undefined;
11772
+ user_identifier?: {
11773
+ exclusive?: boolean | undefined;
11774
+ username?: string | undefined;
11775
+ email?: string | undefined;
11776
+ phone?: string | undefined;
11777
+ api_url?: string | undefined;
11778
+ } | undefined;
11779
+ account_type?: string | undefined;
11780
+ customer_key?: string | undefined;
11781
+ }>, "many">>;
11782
+ acs_systems: z.ZodOptional<z.ZodArray<z.ZodObject<{
11783
+ default_credential_manager_acs_system_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11784
+ acs_system_id: z.ZodString;
11785
+ acs_user_count: z.ZodOptional<z.ZodNumber>;
11786
+ acs_access_group_count: z.ZodOptional<z.ZodNumber>;
11787
+ external_type: z.ZodOptional<z.ZodEnum<["pti_site", "alta_org", "salto_ks_site", "salto_space_system", "brivo_account", "hid_credential_manager_organization", "visionline_system", "assa_abloy_credential_service", "latch_building", "dormakaba_community_site", "legic_connect_credential_service", "assa_abloy_vostio", "assa_abloy_vostio_credential_service"]>>;
11788
+ external_type_display_name: z.ZodOptional<z.ZodString>;
11789
+ is_credential_manager: z.ZodBoolean;
11790
+ visionline_metadata: z.ZodOptional<z.ZodObject<{
11791
+ mobile_access_uuid: z.ZodString;
11792
+ system_id: z.ZodString;
11793
+ lan_address: z.ZodString;
11794
+ }, "strip", z.ZodTypeAny, {
11795
+ mobile_access_uuid: string;
11796
+ system_id: string;
11797
+ lan_address: string;
11798
+ }, {
11799
+ mobile_access_uuid: string;
11800
+ system_id: string;
11801
+ lan_address: string;
11802
+ }>>;
11803
+ system_type: z.ZodOptional<z.ZodEnum<["pti_site", "alta_org", "salto_ks_site", "salto_space_system", "brivo_account", "hid_credential_manager_organization", "visionline_system", "assa_abloy_credential_service", "latch_building", "dormakaba_community_site", "legic_connect_credential_service", "assa_abloy_vostio", "assa_abloy_vostio_credential_service"]>>;
11804
+ system_type_display_name: z.ZodOptional<z.ZodString>;
11805
+ location: z.ZodObject<{
11806
+ time_zone: z.ZodNullable<z.ZodString>;
11807
+ }, "strip", z.ZodTypeAny, {
11808
+ time_zone: string | null;
11809
+ }, {
11810
+ time_zone: string | null;
11811
+ }>;
11812
+ name: z.ZodString;
11813
+ created_at: z.ZodString;
11814
+ workspace_id: z.ZodString;
11815
+ connected_account_ids: z.ZodArray<z.ZodString, "many">;
11816
+ connected_account_id: z.ZodString;
11817
+ image_url: z.ZodString;
11818
+ image_alt_text: z.ZodString;
11819
+ errors: z.ZodArray<z.ZodDiscriminatedUnion<"error_code", [z.ZodObject<{
11820
+ created_at: z.ZodString;
11821
+ message: z.ZodString;
11822
+ } & {
11823
+ error_code: z.ZodLiteral<"seam_bridge_disconnected">;
11824
+ }, "strip", z.ZodTypeAny, {
11825
+ message: string;
11826
+ created_at: string;
11827
+ error_code: "seam_bridge_disconnected";
11828
+ }, {
11829
+ message: string;
11830
+ created_at: string;
11831
+ error_code: "seam_bridge_disconnected";
11832
+ }>, z.ZodObject<{
11833
+ created_at: z.ZodString;
11834
+ message: z.ZodString;
11835
+ } & {
11836
+ error_code: z.ZodLiteral<"bridge_disconnected">;
11837
+ is_bridge_error: z.ZodOptional<z.ZodBoolean>;
11838
+ }, "strip", z.ZodTypeAny, {
11839
+ message: string;
11840
+ created_at: string;
11841
+ error_code: "bridge_disconnected";
11842
+ is_bridge_error?: boolean | undefined;
11843
+ }, {
11844
+ message: string;
11845
+ created_at: string;
11846
+ error_code: "bridge_disconnected";
11847
+ is_bridge_error?: boolean | undefined;
11848
+ }>, z.ZodObject<{
11849
+ created_at: z.ZodString;
11850
+ message: z.ZodString;
11851
+ } & {
11852
+ error_code: z.ZodLiteral<"visionline_instance_unreachable">;
11853
+ }, "strip", z.ZodTypeAny, {
11854
+ message: string;
11855
+ created_at: string;
11856
+ error_code: "visionline_instance_unreachable";
11857
+ }, {
11858
+ message: string;
11859
+ created_at: string;
11860
+ error_code: "visionline_instance_unreachable";
11861
+ }>, z.ZodObject<{
11862
+ created_at: z.ZodString;
11863
+ message: z.ZodString;
11864
+ } & {
11865
+ error_code: z.ZodLiteral<"salto_ks_subscription_limit_exceeded">;
11866
+ }, "strip", z.ZodTypeAny, {
11867
+ message: string;
11868
+ created_at: string;
11869
+ error_code: "salto_ks_subscription_limit_exceeded";
11870
+ }, {
11871
+ message: string;
11872
+ created_at: string;
11873
+ error_code: "salto_ks_subscription_limit_exceeded";
11874
+ }>, z.ZodObject<{
11875
+ created_at: z.ZodString;
11876
+ message: z.ZodString;
11877
+ } & {
11878
+ error_code: z.ZodLiteral<"acs_system_disconnected">;
11879
+ }, "strip", z.ZodTypeAny, {
11880
+ message: string;
11881
+ created_at: string;
11882
+ error_code: "acs_system_disconnected";
11883
+ }, {
11884
+ message: string;
11885
+ created_at: string;
11886
+ error_code: "acs_system_disconnected";
11887
+ }>, z.ZodObject<{
11888
+ created_at: z.ZodString;
11889
+ message: z.ZodString;
11890
+ } & {
11891
+ error_code: z.ZodLiteral<"account_disconnected">;
11892
+ }, "strip", z.ZodTypeAny, {
11893
+ message: string;
11894
+ created_at: string;
11895
+ error_code: "account_disconnected";
11896
+ }, {
11897
+ message: string;
11898
+ created_at: string;
11899
+ error_code: "account_disconnected";
11900
+ }>, z.ZodObject<{
11901
+ created_at: z.ZodString;
11902
+ message: z.ZodString;
11903
+ } & {
11904
+ error_code: z.ZodLiteral<"salto_ks_certification_expired">;
11905
+ }, "strip", z.ZodTypeAny, {
11906
+ message: string;
11907
+ created_at: string;
11908
+ error_code: "salto_ks_certification_expired";
11909
+ }, {
11910
+ message: string;
11911
+ created_at: string;
11912
+ error_code: "salto_ks_certification_expired";
11913
+ }>]>, "many">;
11914
+ warnings: z.ZodArray<z.ZodDiscriminatedUnion<"warning_code", [z.ZodObject<{
11915
+ created_at: z.ZodString;
11916
+ message: z.ZodString;
11917
+ } & {
11918
+ warning_code: z.ZodLiteral<"salto_ks_subscription_limit_almost_reached">;
11919
+ }, "strip", z.ZodTypeAny, {
11920
+ message: string;
11921
+ created_at: string;
11922
+ warning_code: "salto_ks_subscription_limit_almost_reached";
11923
+ }, {
11924
+ message: string;
11925
+ created_at: string;
11926
+ warning_code: "salto_ks_subscription_limit_almost_reached";
11927
+ }>, z.ZodObject<{
11928
+ created_at: z.ZodString;
11929
+ message: z.ZodString;
11930
+ } & {
11931
+ warning_code: z.ZodLiteral<"time_zone_does_not_match_location">;
11932
+ misconfigured_acs_entrance_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
11933
+ }, "strip", z.ZodTypeAny, {
11934
+ message: string;
11935
+ created_at: string;
11936
+ warning_code: "time_zone_does_not_match_location";
11937
+ misconfigured_acs_entrance_ids?: string[] | undefined;
11938
+ }, {
11939
+ message: string;
11940
+ created_at: string;
11941
+ warning_code: "time_zone_does_not_match_location";
11942
+ misconfigured_acs_entrance_ids?: string[] | undefined;
11943
+ }>]>, "many">;
11944
+ }, "strip", z.ZodTypeAny, {
11945
+ location: {
11946
+ time_zone: string | null;
11947
+ };
11948
+ name: string;
11949
+ workspace_id: string;
11950
+ created_at: string;
11951
+ errors: ({
11952
+ message: string;
11953
+ created_at: string;
11954
+ error_code: "seam_bridge_disconnected";
11955
+ } | {
11956
+ message: string;
11957
+ created_at: string;
11958
+ error_code: "bridge_disconnected";
11959
+ is_bridge_error?: boolean | undefined;
11960
+ } | {
11961
+ message: string;
11962
+ created_at: string;
11963
+ error_code: "visionline_instance_unreachable";
11964
+ } | {
11965
+ message: string;
11966
+ created_at: string;
11967
+ error_code: "salto_ks_subscription_limit_exceeded";
11968
+ } | {
11969
+ message: string;
11970
+ created_at: string;
11971
+ error_code: "acs_system_disconnected";
11972
+ } | {
11973
+ message: string;
11974
+ created_at: string;
11975
+ error_code: "account_disconnected";
11976
+ } | {
11977
+ message: string;
11978
+ created_at: string;
11979
+ error_code: "salto_ks_certification_expired";
11980
+ })[];
11981
+ connected_account_id: string;
11982
+ warnings: ({
11983
+ message: string;
11984
+ created_at: string;
11985
+ warning_code: "salto_ks_subscription_limit_almost_reached";
11986
+ } | {
11987
+ message: string;
11988
+ created_at: string;
11989
+ warning_code: "time_zone_does_not_match_location";
11990
+ misconfigured_acs_entrance_ids?: string[] | undefined;
11991
+ })[];
11992
+ image_url: string;
11993
+ image_alt_text: string;
11994
+ acs_system_id: string;
11995
+ is_credential_manager: boolean;
11996
+ connected_account_ids: string[];
11997
+ visionline_metadata?: {
11998
+ mobile_access_uuid: string;
11999
+ system_id: string;
12000
+ lan_address: string;
12001
+ } | undefined;
12002
+ external_type?: "assa_abloy_credential_service" | "assa_abloy_vostio" | "assa_abloy_vostio_credential_service" | "pti_site" | "alta_org" | "salto_ks_site" | "salto_space_system" | "brivo_account" | "hid_credential_manager_organization" | "visionline_system" | "latch_building" | "dormakaba_community_site" | "legic_connect_credential_service" | undefined;
12003
+ external_type_display_name?: string | undefined;
12004
+ default_credential_manager_acs_system_id?: string | null | undefined;
12005
+ acs_user_count?: number | undefined;
12006
+ acs_access_group_count?: number | undefined;
12007
+ system_type?: "assa_abloy_credential_service" | "assa_abloy_vostio" | "assa_abloy_vostio_credential_service" | "pti_site" | "alta_org" | "salto_ks_site" | "salto_space_system" | "brivo_account" | "hid_credential_manager_organization" | "visionline_system" | "latch_building" | "dormakaba_community_site" | "legic_connect_credential_service" | undefined;
12008
+ system_type_display_name?: string | undefined;
12009
+ }, {
12010
+ location: {
12011
+ time_zone: string | null;
12012
+ };
12013
+ name: string;
12014
+ workspace_id: string;
12015
+ created_at: string;
12016
+ errors: ({
12017
+ message: string;
12018
+ created_at: string;
12019
+ error_code: "seam_bridge_disconnected";
12020
+ } | {
12021
+ message: string;
12022
+ created_at: string;
12023
+ error_code: "bridge_disconnected";
12024
+ is_bridge_error?: boolean | undefined;
12025
+ } | {
12026
+ message: string;
12027
+ created_at: string;
12028
+ error_code: "visionline_instance_unreachable";
12029
+ } | {
12030
+ message: string;
12031
+ created_at: string;
12032
+ error_code: "salto_ks_subscription_limit_exceeded";
12033
+ } | {
12034
+ message: string;
12035
+ created_at: string;
12036
+ error_code: "acs_system_disconnected";
12037
+ } | {
12038
+ message: string;
12039
+ created_at: string;
12040
+ error_code: "account_disconnected";
12041
+ } | {
12042
+ message: string;
12043
+ created_at: string;
12044
+ error_code: "salto_ks_certification_expired";
12045
+ })[];
12046
+ connected_account_id: string;
12047
+ warnings: ({
12048
+ message: string;
12049
+ created_at: string;
12050
+ warning_code: "salto_ks_subscription_limit_almost_reached";
12051
+ } | {
12052
+ message: string;
12053
+ created_at: string;
12054
+ warning_code: "time_zone_does_not_match_location";
12055
+ misconfigured_acs_entrance_ids?: string[] | undefined;
12056
+ })[];
12057
+ image_url: string;
12058
+ image_alt_text: string;
12059
+ acs_system_id: string;
12060
+ is_credential_manager: boolean;
12061
+ connected_account_ids: string[];
12062
+ visionline_metadata?: {
12063
+ mobile_access_uuid: string;
12064
+ system_id: string;
12065
+ lan_address: string;
12066
+ } | undefined;
12067
+ external_type?: "assa_abloy_credential_service" | "assa_abloy_vostio" | "assa_abloy_vostio_credential_service" | "pti_site" | "alta_org" | "salto_ks_site" | "salto_space_system" | "brivo_account" | "hid_credential_manager_organization" | "visionline_system" | "latch_building" | "dormakaba_community_site" | "legic_connect_credential_service" | undefined;
12068
+ external_type_display_name?: string | undefined;
12069
+ default_credential_manager_acs_system_id?: string | null | undefined;
12070
+ acs_user_count?: number | undefined;
12071
+ acs_access_group_count?: number | undefined;
12072
+ system_type?: "assa_abloy_credential_service" | "assa_abloy_vostio" | "assa_abloy_vostio_credential_service" | "pti_site" | "alta_org" | "salto_ks_site" | "salto_space_system" | "brivo_account" | "hid_credential_manager_organization" | "visionline_system" | "latch_building" | "dormakaba_community_site" | "legic_connect_credential_service" | undefined;
12073
+ system_type_display_name?: string | undefined;
12074
+ }>, "many">>;
9993
12075
  }, "strip", z.ZodTypeAny, {
9994
12076
  batch_type: "access_grants";
9995
12077
  spaces?: {
@@ -10474,6 +12556,28 @@ export declare const access_grants_batch: z.ZodObject<{
10474
12556
  device_name: string;
10475
12557
  product_type: string;
10476
12558
  } | undefined;
12559
+ keynest_metadata?: {
12560
+ address: string | null;
12561
+ device_name: string;
12562
+ key_id: string;
12563
+ property_id: string | null;
12564
+ property_postcode: string | null;
12565
+ key_notes: string | null;
12566
+ subscription_plan: string;
12567
+ status_type: string;
12568
+ current_or_last_store_id: number;
12569
+ last_movement: string;
12570
+ current_status: string | null;
12571
+ current_user_name: string | null;
12572
+ current_user_email: string | null;
12573
+ current_user_phone_number: string | null;
12574
+ current_user_company: string | null;
12575
+ handover_method: string | null;
12576
+ keynest_app_user: string | null;
12577
+ default_office_id: number;
12578
+ fob_id: number;
12579
+ has_photo: boolean;
12580
+ } | undefined;
10477
12581
  } & {
10478
12582
  _experimental_supported_code_from_access_codes_lengths?: number[] | undefined;
10479
12583
  code_constraints?: ({
@@ -10694,6 +12798,170 @@ export declare const access_grants_batch: z.ZodObject<{
10694
12798
  room_description?: string | undefined;
10695
12799
  } | undefined;
10696
12800
  }[] | undefined;
12801
+ connected_accounts?: {
12802
+ errors: ({
12803
+ message: string;
12804
+ created_at: string;
12805
+ error_code: "account_disconnected";
12806
+ is_connected_account_error?: boolean | undefined;
12807
+ is_bridge_error?: boolean | undefined;
12808
+ } | {
12809
+ message: string;
12810
+ created_at: string;
12811
+ error_code: "invalid_credentials";
12812
+ is_connected_account_error?: boolean | undefined;
12813
+ is_bridge_error?: boolean | undefined;
12814
+ } | {
12815
+ message: string;
12816
+ created_at: string;
12817
+ error_code: "bridge_disconnected";
12818
+ is_connected_account_error?: boolean | undefined;
12819
+ is_bridge_error?: boolean | undefined;
12820
+ } | {
12821
+ message: string;
12822
+ created_at: string;
12823
+ error_code: "salto_ks_subscription_limit_exceeded";
12824
+ salto_ks_metadata: {
12825
+ sites: {
12826
+ site_id: string;
12827
+ site_name: string;
12828
+ subscribed_site_user_count: number;
12829
+ site_user_subscription_limit: number;
12830
+ }[];
12831
+ };
12832
+ is_connected_account_error?: boolean | undefined;
12833
+ is_bridge_error?: boolean | undefined;
12834
+ })[];
12835
+ account_type_display_name: string;
12836
+ warnings: ({
12837
+ message: string;
12838
+ created_at: string;
12839
+ warning_code: "scheduled_maintenance_window";
12840
+ } | {
12841
+ message: string;
12842
+ created_at: string;
12843
+ warning_code: "unknown_issue_with_connected_account";
12844
+ } | {
12845
+ message: string;
12846
+ created_at: string;
12847
+ salto_ks_metadata: {
12848
+ sites: {
12849
+ site_id: string;
12850
+ site_name: string;
12851
+ subscribed_site_user_count: number;
12852
+ site_user_subscription_limit: number;
12853
+ }[];
12854
+ };
12855
+ warning_code: "salto_ks_subscription_limit_almost_reached";
12856
+ })[];
12857
+ custom_metadata: Record<string, string | boolean>;
12858
+ automatically_manage_new_devices: boolean;
12859
+ accepted_capabilities: ("lock" | "thermostat" | "noise_sensor" | "access_control")[];
12860
+ created_at?: string | undefined;
12861
+ connected_account_id?: string | undefined;
12862
+ user_identifier?: {
12863
+ exclusive?: boolean | undefined;
12864
+ username?: string | undefined;
12865
+ email?: string | undefined;
12866
+ phone?: string | undefined;
12867
+ api_url?: string | undefined;
12868
+ } | undefined;
12869
+ account_type?: string | undefined;
12870
+ customer_key?: string | undefined;
12871
+ }[] | undefined;
12872
+ acs_systems?: {
12873
+ location: {
12874
+ time_zone: string | null;
12875
+ };
12876
+ name: string;
12877
+ workspace_id: string;
12878
+ created_at: string;
12879
+ errors: ({
12880
+ message: string;
12881
+ created_at: string;
12882
+ error_code: "seam_bridge_disconnected";
12883
+ } | {
12884
+ message: string;
12885
+ created_at: string;
12886
+ error_code: "bridge_disconnected";
12887
+ is_bridge_error?: boolean | undefined;
12888
+ } | {
12889
+ message: string;
12890
+ created_at: string;
12891
+ error_code: "visionline_instance_unreachable";
12892
+ } | {
12893
+ message: string;
12894
+ created_at: string;
12895
+ error_code: "salto_ks_subscription_limit_exceeded";
12896
+ } | {
12897
+ message: string;
12898
+ created_at: string;
12899
+ error_code: "acs_system_disconnected";
12900
+ } | {
12901
+ message: string;
12902
+ created_at: string;
12903
+ error_code: "account_disconnected";
12904
+ } | {
12905
+ message: string;
12906
+ created_at: string;
12907
+ error_code: "salto_ks_certification_expired";
12908
+ })[];
12909
+ connected_account_id: string;
12910
+ warnings: ({
12911
+ message: string;
12912
+ created_at: string;
12913
+ warning_code: "salto_ks_subscription_limit_almost_reached";
12914
+ } | {
12915
+ message: string;
12916
+ created_at: string;
12917
+ warning_code: "time_zone_does_not_match_location";
12918
+ misconfigured_acs_entrance_ids?: string[] | undefined;
12919
+ })[];
12920
+ image_url: string;
12921
+ image_alt_text: string;
12922
+ acs_system_id: string;
12923
+ is_credential_manager: boolean;
12924
+ connected_account_ids: string[];
12925
+ visionline_metadata?: {
12926
+ mobile_access_uuid: string;
12927
+ system_id: string;
12928
+ lan_address: string;
12929
+ } | undefined;
12930
+ external_type?: "assa_abloy_credential_service" | "assa_abloy_vostio" | "assa_abloy_vostio_credential_service" | "pti_site" | "alta_org" | "salto_ks_site" | "salto_space_system" | "brivo_account" | "hid_credential_manager_organization" | "visionline_system" | "latch_building" | "dormakaba_community_site" | "legic_connect_credential_service" | undefined;
12931
+ external_type_display_name?: string | undefined;
12932
+ default_credential_manager_acs_system_id?: string | null | undefined;
12933
+ acs_user_count?: number | undefined;
12934
+ acs_access_group_count?: number | undefined;
12935
+ system_type?: "assa_abloy_credential_service" | "assa_abloy_vostio" | "assa_abloy_vostio_credential_service" | "pti_site" | "alta_org" | "salto_ks_site" | "salto_space_system" | "brivo_account" | "hid_credential_manager_organization" | "visionline_system" | "latch_building" | "dormakaba_community_site" | "legic_connect_credential_service" | undefined;
12936
+ system_type_display_name?: string | undefined;
12937
+ }[] | undefined;
12938
+ user_identities?: {
12939
+ display_name: string;
12940
+ workspace_id: string;
12941
+ created_at: string;
12942
+ errors: {
12943
+ message: string;
12944
+ created_at: string;
12945
+ error_code: "issue_with_acs_user";
12946
+ acs_system_id: string;
12947
+ acs_user_id: string;
12948
+ }[];
12949
+ warnings: ({
12950
+ message: string;
12951
+ created_at: string;
12952
+ warning_code: "being_deleted";
12953
+ } | {
12954
+ message: string;
12955
+ created_at: string;
12956
+ warning_code: "acs_user_profile_does_not_match_user_identity";
12957
+ })[];
12958
+ user_identity_id: string;
12959
+ email_address: string | null;
12960
+ full_name: string | null;
12961
+ phone_number: string | null;
12962
+ user_identity_key: string | null;
12963
+ acs_user_ids: string[];
12964
+ }[] | undefined;
10697
12965
  }, {
10698
12966
  batch_type: "access_grants";
10699
12967
  spaces?: {
@@ -11178,6 +13446,28 @@ export declare const access_grants_batch: z.ZodObject<{
11178
13446
  device_name: string;
11179
13447
  product_type: string;
11180
13448
  } | undefined;
13449
+ keynest_metadata?: {
13450
+ address: string | null;
13451
+ device_name: string;
13452
+ key_id: string;
13453
+ property_id: string | null;
13454
+ property_postcode: string | null;
13455
+ key_notes: string | null;
13456
+ subscription_plan: string;
13457
+ status_type: string;
13458
+ current_or_last_store_id: number;
13459
+ last_movement: string;
13460
+ current_status: string | null;
13461
+ current_user_name: string | null;
13462
+ current_user_email: string | null;
13463
+ current_user_phone_number: string | null;
13464
+ current_user_company: string | null;
13465
+ handover_method: string | null;
13466
+ keynest_app_user: string | null;
13467
+ default_office_id: number;
13468
+ fob_id: number;
13469
+ has_photo: boolean;
13470
+ } | undefined;
11181
13471
  } & {
11182
13472
  _experimental_supported_code_from_access_codes_lengths?: number[] | undefined;
11183
13473
  code_constraints?: ({
@@ -11342,61 +13632,225 @@ export declare const access_grants_batch: z.ZodObject<{
11342
13632
  can_unlock_with_code?: boolean | undefined;
11343
13633
  nickname?: string | undefined;
11344
13634
  }[] | undefined;
11345
- acs_entrances?: {
13635
+ acs_entrances?: {
13636
+ display_name: string;
13637
+ created_at: string;
13638
+ errors: {
13639
+ message: string;
13640
+ error_code: string;
13641
+ }[];
13642
+ connected_account_id: string;
13643
+ acs_system_id: string;
13644
+ acs_entrance_id: string;
13645
+ salto_ks_metadata?: {
13646
+ lock_type: string;
13647
+ battery_level: string;
13648
+ locked_state: string;
13649
+ door_name: string;
13650
+ online?: boolean | undefined;
13651
+ left_open_alarm?: boolean | undefined;
13652
+ intrusion_alarm?: boolean | undefined;
13653
+ privacy_mode?: boolean | undefined;
13654
+ } | undefined;
13655
+ visionline_metadata?: {
13656
+ door_name: string;
13657
+ door_category: "entrance" | "guest" | "elevator reader" | "common" | "common (PMS)";
13658
+ profiles?: {
13659
+ visionline_door_profile_id: string;
13660
+ visionline_door_profile_type: "BLE" | "commonDoor" | "touch";
13661
+ }[] | undefined;
13662
+ } | undefined;
13663
+ assa_abloy_vostio_metadata?: {
13664
+ door_name: string;
13665
+ door_type: "CommonDoor" | "EntranceDoor" | "GuestDoor" | "Elevator";
13666
+ door_number?: number | undefined;
13667
+ stand_open?: boolean | undefined;
13668
+ pms_id?: string | undefined;
13669
+ } | undefined;
13670
+ can_unlock_with_code?: boolean | undefined;
13671
+ can_unlock_with_mobile_key?: boolean | undefined;
13672
+ can_unlock_with_card?: boolean | undefined;
13673
+ latch_metadata?: {
13674
+ door_name: string;
13675
+ is_connected: boolean;
13676
+ door_type: string;
13677
+ accessibility_type: string;
13678
+ } | undefined;
13679
+ dormakaba_community_metadata?: {
13680
+ access_point_name: string;
13681
+ } | undefined;
13682
+ salto_space_metadata?: {
13683
+ door_name?: string | undefined;
13684
+ door_id?: string | undefined;
13685
+ ext_door_id?: string | undefined;
13686
+ door_description?: string | undefined;
13687
+ room_name?: string | undefined;
13688
+ room_description?: string | undefined;
13689
+ } | undefined;
13690
+ }[] | undefined;
13691
+ connected_accounts?: {
13692
+ errors: ({
13693
+ message: string;
13694
+ created_at: string;
13695
+ error_code: "account_disconnected";
13696
+ is_connected_account_error?: boolean | undefined;
13697
+ is_bridge_error?: boolean | undefined;
13698
+ } | {
13699
+ message: string;
13700
+ created_at: string;
13701
+ error_code: "invalid_credentials";
13702
+ is_connected_account_error?: boolean | undefined;
13703
+ is_bridge_error?: boolean | undefined;
13704
+ } | {
13705
+ message: string;
13706
+ created_at: string;
13707
+ error_code: "bridge_disconnected";
13708
+ is_connected_account_error?: boolean | undefined;
13709
+ is_bridge_error?: boolean | undefined;
13710
+ } | {
13711
+ message: string;
13712
+ created_at: string;
13713
+ error_code: "salto_ks_subscription_limit_exceeded";
13714
+ salto_ks_metadata: {
13715
+ sites: {
13716
+ site_id: string;
13717
+ site_name: string;
13718
+ subscribed_site_user_count: number;
13719
+ site_user_subscription_limit: number;
13720
+ }[];
13721
+ };
13722
+ is_connected_account_error?: boolean | undefined;
13723
+ is_bridge_error?: boolean | undefined;
13724
+ })[];
13725
+ account_type_display_name: string;
13726
+ warnings: ({
13727
+ message: string;
13728
+ created_at: string;
13729
+ warning_code: "scheduled_maintenance_window";
13730
+ } | {
13731
+ message: string;
13732
+ created_at: string;
13733
+ warning_code: "unknown_issue_with_connected_account";
13734
+ } | {
13735
+ message: string;
13736
+ created_at: string;
13737
+ salto_ks_metadata: {
13738
+ sites: {
13739
+ site_id: string;
13740
+ site_name: string;
13741
+ subscribed_site_user_count: number;
13742
+ site_user_subscription_limit: number;
13743
+ }[];
13744
+ };
13745
+ warning_code: "salto_ks_subscription_limit_almost_reached";
13746
+ })[];
13747
+ custom_metadata: Record<string, string | boolean>;
13748
+ automatically_manage_new_devices: boolean;
13749
+ accepted_capabilities: ("lock" | "thermostat" | "noise_sensor" | "access_control")[];
13750
+ created_at?: string | undefined;
13751
+ connected_account_id?: string | undefined;
13752
+ user_identifier?: {
13753
+ exclusive?: boolean | undefined;
13754
+ username?: string | undefined;
13755
+ email?: string | undefined;
13756
+ phone?: string | undefined;
13757
+ api_url?: string | undefined;
13758
+ } | undefined;
13759
+ account_type?: string | undefined;
13760
+ customer_key?: string | undefined;
13761
+ }[] | undefined;
13762
+ acs_systems?: {
13763
+ location: {
13764
+ time_zone: string | null;
13765
+ };
13766
+ name: string;
13767
+ workspace_id: string;
13768
+ created_at: string;
13769
+ errors: ({
13770
+ message: string;
13771
+ created_at: string;
13772
+ error_code: "seam_bridge_disconnected";
13773
+ } | {
13774
+ message: string;
13775
+ created_at: string;
13776
+ error_code: "bridge_disconnected";
13777
+ is_bridge_error?: boolean | undefined;
13778
+ } | {
13779
+ message: string;
13780
+ created_at: string;
13781
+ error_code: "visionline_instance_unreachable";
13782
+ } | {
13783
+ message: string;
13784
+ created_at: string;
13785
+ error_code: "salto_ks_subscription_limit_exceeded";
13786
+ } | {
13787
+ message: string;
13788
+ created_at: string;
13789
+ error_code: "acs_system_disconnected";
13790
+ } | {
13791
+ message: string;
13792
+ created_at: string;
13793
+ error_code: "account_disconnected";
13794
+ } | {
13795
+ message: string;
13796
+ created_at: string;
13797
+ error_code: "salto_ks_certification_expired";
13798
+ })[];
13799
+ connected_account_id: string;
13800
+ warnings: ({
13801
+ message: string;
13802
+ created_at: string;
13803
+ warning_code: "salto_ks_subscription_limit_almost_reached";
13804
+ } | {
13805
+ message: string;
13806
+ created_at: string;
13807
+ warning_code: "time_zone_does_not_match_location";
13808
+ misconfigured_acs_entrance_ids?: string[] | undefined;
13809
+ })[];
13810
+ image_url: string;
13811
+ image_alt_text: string;
13812
+ acs_system_id: string;
13813
+ is_credential_manager: boolean;
13814
+ connected_account_ids: string[];
13815
+ visionline_metadata?: {
13816
+ mobile_access_uuid: string;
13817
+ system_id: string;
13818
+ lan_address: string;
13819
+ } | undefined;
13820
+ external_type?: "assa_abloy_credential_service" | "assa_abloy_vostio" | "assa_abloy_vostio_credential_service" | "pti_site" | "alta_org" | "salto_ks_site" | "salto_space_system" | "brivo_account" | "hid_credential_manager_organization" | "visionline_system" | "latch_building" | "dormakaba_community_site" | "legic_connect_credential_service" | undefined;
13821
+ external_type_display_name?: string | undefined;
13822
+ default_credential_manager_acs_system_id?: string | null | undefined;
13823
+ acs_user_count?: number | undefined;
13824
+ acs_access_group_count?: number | undefined;
13825
+ system_type?: "assa_abloy_credential_service" | "assa_abloy_vostio" | "assa_abloy_vostio_credential_service" | "pti_site" | "alta_org" | "salto_ks_site" | "salto_space_system" | "brivo_account" | "hid_credential_manager_organization" | "visionline_system" | "latch_building" | "dormakaba_community_site" | "legic_connect_credential_service" | undefined;
13826
+ system_type_display_name?: string | undefined;
13827
+ }[] | undefined;
13828
+ user_identities?: {
11346
13829
  display_name: string;
13830
+ workspace_id: string;
11347
13831
  created_at: string;
11348
13832
  errors: {
11349
13833
  message: string;
11350
- error_code: string;
13834
+ created_at: string;
13835
+ error_code: "issue_with_acs_user";
13836
+ acs_system_id: string;
13837
+ acs_user_id: string;
11351
13838
  }[];
11352
- connected_account_id: string;
11353
- acs_system_id: string;
11354
- acs_entrance_id: string;
11355
- salto_ks_metadata?: {
11356
- lock_type: string;
11357
- battery_level: string;
11358
- locked_state: string;
11359
- door_name: string;
11360
- online?: boolean | undefined;
11361
- left_open_alarm?: boolean | undefined;
11362
- intrusion_alarm?: boolean | undefined;
11363
- privacy_mode?: boolean | undefined;
11364
- } | undefined;
11365
- visionline_metadata?: {
11366
- door_name: string;
11367
- door_category: "entrance" | "guest" | "elevator reader" | "common" | "common (PMS)";
11368
- profiles?: {
11369
- visionline_door_profile_id: string;
11370
- visionline_door_profile_type: "BLE" | "commonDoor" | "touch";
11371
- }[] | undefined;
11372
- } | undefined;
11373
- assa_abloy_vostio_metadata?: {
11374
- door_name: string;
11375
- door_type: "CommonDoor" | "EntranceDoor" | "GuestDoor" | "Elevator";
11376
- door_number?: number | undefined;
11377
- stand_open?: boolean | undefined;
11378
- pms_id?: string | undefined;
11379
- } | undefined;
11380
- can_unlock_with_code?: boolean | undefined;
11381
- can_unlock_with_mobile_key?: boolean | undefined;
11382
- can_unlock_with_card?: boolean | undefined;
11383
- latch_metadata?: {
11384
- door_name: string;
11385
- is_connected: boolean;
11386
- door_type: string;
11387
- accessibility_type: string;
11388
- } | undefined;
11389
- dormakaba_community_metadata?: {
11390
- access_point_name: string;
11391
- } | undefined;
11392
- salto_space_metadata?: {
11393
- door_name?: string | undefined;
11394
- door_id?: string | undefined;
11395
- ext_door_id?: string | undefined;
11396
- door_description?: string | undefined;
11397
- room_name?: string | undefined;
11398
- room_description?: string | undefined;
11399
- } | undefined;
13839
+ warnings: ({
13840
+ message: string;
13841
+ created_at: string;
13842
+ warning_code: "being_deleted";
13843
+ } | {
13844
+ message: string;
13845
+ created_at: string;
13846
+ warning_code: "acs_user_profile_does_not_match_user_identity";
13847
+ })[];
13848
+ user_identity_id: string;
13849
+ email_address: string | null;
13850
+ full_name: string | null;
13851
+ phone_number: string | null;
13852
+ user_identity_key: string | null;
13853
+ acs_user_ids: string[];
11400
13854
  }[] | undefined;
11401
13855
  }>;
11402
13856
  export declare const access_methods_batch: z.ZodObject<{
@@ -12388,6 +14842,70 @@ export declare const access_methods_batch: z.ZodObject<{
12388
14842
  device_name: string;
12389
14843
  product_type: string;
12390
14844
  }>>;
14845
+ keynest_metadata: z.ZodOptional<z.ZodObject<{
14846
+ key_id: z.ZodString;
14847
+ device_name: z.ZodString;
14848
+ property_id: z.ZodNullable<z.ZodString>;
14849
+ property_postcode: z.ZodNullable<z.ZodString>;
14850
+ key_notes: z.ZodNullable<z.ZodString>;
14851
+ subscription_plan: z.ZodString;
14852
+ status_type: z.ZodString;
14853
+ current_or_last_store_id: z.ZodNumber;
14854
+ last_movement: z.ZodString;
14855
+ address: z.ZodNullable<z.ZodString>;
14856
+ current_status: z.ZodNullable<z.ZodString>;
14857
+ current_user_name: z.ZodNullable<z.ZodString>;
14858
+ current_user_email: z.ZodNullable<z.ZodString>;
14859
+ current_user_phone_number: z.ZodNullable<z.ZodString>;
14860
+ current_user_company: z.ZodNullable<z.ZodString>;
14861
+ handover_method: z.ZodNullable<z.ZodString>;
14862
+ keynest_app_user: z.ZodNullable<z.ZodString>;
14863
+ default_office_id: z.ZodNumber;
14864
+ fob_id: z.ZodNumber;
14865
+ has_photo: z.ZodBoolean;
14866
+ }, "strip", z.ZodTypeAny, {
14867
+ address: string | null;
14868
+ device_name: string;
14869
+ key_id: string;
14870
+ property_id: string | null;
14871
+ property_postcode: string | null;
14872
+ key_notes: string | null;
14873
+ subscription_plan: string;
14874
+ status_type: string;
14875
+ current_or_last_store_id: number;
14876
+ last_movement: string;
14877
+ current_status: string | null;
14878
+ current_user_name: string | null;
14879
+ current_user_email: string | null;
14880
+ current_user_phone_number: string | null;
14881
+ current_user_company: string | null;
14882
+ handover_method: string | null;
14883
+ keynest_app_user: string | null;
14884
+ default_office_id: number;
14885
+ fob_id: number;
14886
+ has_photo: boolean;
14887
+ }, {
14888
+ address: string | null;
14889
+ device_name: string;
14890
+ key_id: string;
14891
+ property_id: string | null;
14892
+ property_postcode: string | null;
14893
+ key_notes: string | null;
14894
+ subscription_plan: string;
14895
+ status_type: string;
14896
+ current_or_last_store_id: number;
14897
+ last_movement: string;
14898
+ current_status: string | null;
14899
+ current_user_name: string | null;
14900
+ current_user_email: string | null;
14901
+ current_user_phone_number: string | null;
14902
+ current_user_company: string | null;
14903
+ handover_method: string | null;
14904
+ keynest_app_user: string | null;
14905
+ default_office_id: number;
14906
+ fob_id: number;
14907
+ has_photo: boolean;
14908
+ }>>;
12391
14909
  }, "strip", z.ZodTypeAny, {
12392
14910
  ecobee_metadata?: {
12393
14911
  device_name: string;
@@ -12621,6 +15139,28 @@ export declare const access_methods_batch: z.ZodObject<{
12621
15139
  device_name: string;
12622
15140
  product_type: string;
12623
15141
  } | undefined;
15142
+ keynest_metadata?: {
15143
+ address: string | null;
15144
+ device_name: string;
15145
+ key_id: string;
15146
+ property_id: string | null;
15147
+ property_postcode: string | null;
15148
+ key_notes: string | null;
15149
+ subscription_plan: string;
15150
+ status_type: string;
15151
+ current_or_last_store_id: number;
15152
+ last_movement: string;
15153
+ current_status: string | null;
15154
+ current_user_name: string | null;
15155
+ current_user_email: string | null;
15156
+ current_user_phone_number: string | null;
15157
+ current_user_company: string | null;
15158
+ handover_method: string | null;
15159
+ keynest_app_user: string | null;
15160
+ default_office_id: number;
15161
+ fob_id: number;
15162
+ has_photo: boolean;
15163
+ } | undefined;
12624
15164
  }, {
12625
15165
  ecobee_metadata?: {
12626
15166
  device_name: string;
@@ -12854,6 +15394,28 @@ export declare const access_methods_batch: z.ZodObject<{
12854
15394
  device_name: string;
12855
15395
  product_type: string;
12856
15396
  } | undefined;
15397
+ keynest_metadata?: {
15398
+ address: string | null;
15399
+ device_name: string;
15400
+ key_id: string;
15401
+ property_id: string | null;
15402
+ property_postcode: string | null;
15403
+ key_notes: string | null;
15404
+ subscription_plan: string;
15405
+ status_type: string;
15406
+ current_or_last_store_id: number;
15407
+ last_movement: string;
15408
+ current_status: string | null;
15409
+ current_user_name: string | null;
15410
+ current_user_email: string | null;
15411
+ current_user_phone_number: string | null;
15412
+ current_user_company: string | null;
15413
+ handover_method: string | null;
15414
+ keynest_app_user: string | null;
15415
+ default_office_id: number;
15416
+ fob_id: number;
15417
+ has_photo: boolean;
15418
+ } | undefined;
12857
15419
  }>>, z.ZodIntersection<z.ZodObject<{
12858
15420
  _experimental_supported_code_from_access_codes_lengths: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
12859
15421
  code_constraints: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
@@ -14640,6 +17202,28 @@ export declare const access_methods_batch: z.ZodObject<{
14640
17202
  device_name: string;
14641
17203
  product_type: string;
14642
17204
  } | undefined;
17205
+ keynest_metadata?: {
17206
+ address: string | null;
17207
+ device_name: string;
17208
+ key_id: string;
17209
+ property_id: string | null;
17210
+ property_postcode: string | null;
17211
+ key_notes: string | null;
17212
+ subscription_plan: string;
17213
+ status_type: string;
17214
+ current_or_last_store_id: number;
17215
+ last_movement: string;
17216
+ current_status: string | null;
17217
+ current_user_name: string | null;
17218
+ current_user_email: string | null;
17219
+ current_user_phone_number: string | null;
17220
+ current_user_company: string | null;
17221
+ handover_method: string | null;
17222
+ keynest_app_user: string | null;
17223
+ default_office_id: number;
17224
+ fob_id: number;
17225
+ has_photo: boolean;
17226
+ } | undefined;
14643
17227
  } & {
14644
17228
  _experimental_supported_code_from_access_codes_lengths?: number[] | undefined;
14645
17229
  code_constraints?: ({
@@ -15275,6 +17859,28 @@ export declare const access_methods_batch: z.ZodObject<{
15275
17859
  device_name: string;
15276
17860
  product_type: string;
15277
17861
  } | undefined;
17862
+ keynest_metadata?: {
17863
+ address: string | null;
17864
+ device_name: string;
17865
+ key_id: string;
17866
+ property_id: string | null;
17867
+ property_postcode: string | null;
17868
+ key_notes: string | null;
17869
+ subscription_plan: string;
17870
+ status_type: string;
17871
+ current_or_last_store_id: number;
17872
+ last_movement: string;
17873
+ current_status: string | null;
17874
+ current_user_name: string | null;
17875
+ current_user_email: string | null;
17876
+ current_user_phone_number: string | null;
17877
+ current_user_company: string | null;
17878
+ handover_method: string | null;
17879
+ keynest_app_user: string | null;
17880
+ default_office_id: number;
17881
+ fob_id: number;
17882
+ has_photo: boolean;
17883
+ } | undefined;
15278
17884
  } & {
15279
17885
  _experimental_supported_code_from_access_codes_lengths?: number[] | undefined;
15280
17886
  code_constraints?: ({
@@ -16174,6 +18780,28 @@ export declare const access_methods_batch: z.ZodObject<{
16174
18780
  device_name: string;
16175
18781
  product_type: string;
16176
18782
  } | undefined;
18783
+ keynest_metadata?: {
18784
+ address: string | null;
18785
+ device_name: string;
18786
+ key_id: string;
18787
+ property_id: string | null;
18788
+ property_postcode: string | null;
18789
+ key_notes: string | null;
18790
+ subscription_plan: string;
18791
+ status_type: string;
18792
+ current_or_last_store_id: number;
18793
+ last_movement: string;
18794
+ current_status: string | null;
18795
+ current_user_name: string | null;
18796
+ current_user_email: string | null;
18797
+ current_user_phone_number: string | null;
18798
+ current_user_company: string | null;
18799
+ handover_method: string | null;
18800
+ keynest_app_user: string | null;
18801
+ default_office_id: number;
18802
+ fob_id: number;
18803
+ has_photo: boolean;
18804
+ } | undefined;
16177
18805
  } & {
16178
18806
  _experimental_supported_code_from_access_codes_lengths?: number[] | undefined;
16179
18807
  code_constraints?: ({
@@ -16878,6 +19506,28 @@ export declare const access_methods_batch: z.ZodObject<{
16878
19506
  device_name: string;
16879
19507
  product_type: string;
16880
19508
  } | undefined;
19509
+ keynest_metadata?: {
19510
+ address: string | null;
19511
+ device_name: string;
19512
+ key_id: string;
19513
+ property_id: string | null;
19514
+ property_postcode: string | null;
19515
+ key_notes: string | null;
19516
+ subscription_plan: string;
19517
+ status_type: string;
19518
+ current_or_last_store_id: number;
19519
+ last_movement: string;
19520
+ current_status: string | null;
19521
+ current_user_name: string | null;
19522
+ current_user_email: string | null;
19523
+ current_user_phone_number: string | null;
19524
+ current_user_company: string | null;
19525
+ handover_method: string | null;
19526
+ keynest_app_user: string | null;
19527
+ default_office_id: number;
19528
+ fob_id: number;
19529
+ has_photo: boolean;
19530
+ } | undefined;
16881
19531
  } & {
16882
19532
  _experimental_supported_code_from_access_codes_lengths?: number[] | undefined;
16883
19533
  code_constraints?: ({
@@ -18253,6 +20903,70 @@ export declare const workspaces_batch: z.ZodObject<{
18253
20903
  device_name: string;
18254
20904
  product_type: string;
18255
20905
  }>>;
20906
+ keynest_metadata: z.ZodOptional<z.ZodObject<{
20907
+ key_id: z.ZodString;
20908
+ device_name: z.ZodString;
20909
+ property_id: z.ZodNullable<z.ZodString>;
20910
+ property_postcode: z.ZodNullable<z.ZodString>;
20911
+ key_notes: z.ZodNullable<z.ZodString>;
20912
+ subscription_plan: z.ZodString;
20913
+ status_type: z.ZodString;
20914
+ current_or_last_store_id: z.ZodNumber;
20915
+ last_movement: z.ZodString;
20916
+ address: z.ZodNullable<z.ZodString>;
20917
+ current_status: z.ZodNullable<z.ZodString>;
20918
+ current_user_name: z.ZodNullable<z.ZodString>;
20919
+ current_user_email: z.ZodNullable<z.ZodString>;
20920
+ current_user_phone_number: z.ZodNullable<z.ZodString>;
20921
+ current_user_company: z.ZodNullable<z.ZodString>;
20922
+ handover_method: z.ZodNullable<z.ZodString>;
20923
+ keynest_app_user: z.ZodNullable<z.ZodString>;
20924
+ default_office_id: z.ZodNumber;
20925
+ fob_id: z.ZodNumber;
20926
+ has_photo: z.ZodBoolean;
20927
+ }, "strip", z.ZodTypeAny, {
20928
+ address: string | null;
20929
+ device_name: string;
20930
+ key_id: string;
20931
+ property_id: string | null;
20932
+ property_postcode: string | null;
20933
+ key_notes: string | null;
20934
+ subscription_plan: string;
20935
+ status_type: string;
20936
+ current_or_last_store_id: number;
20937
+ last_movement: string;
20938
+ current_status: string | null;
20939
+ current_user_name: string | null;
20940
+ current_user_email: string | null;
20941
+ current_user_phone_number: string | null;
20942
+ current_user_company: string | null;
20943
+ handover_method: string | null;
20944
+ keynest_app_user: string | null;
20945
+ default_office_id: number;
20946
+ fob_id: number;
20947
+ has_photo: boolean;
20948
+ }, {
20949
+ address: string | null;
20950
+ device_name: string;
20951
+ key_id: string;
20952
+ property_id: string | null;
20953
+ property_postcode: string | null;
20954
+ key_notes: string | null;
20955
+ subscription_plan: string;
20956
+ status_type: string;
20957
+ current_or_last_store_id: number;
20958
+ last_movement: string;
20959
+ current_status: string | null;
20960
+ current_user_name: string | null;
20961
+ current_user_email: string | null;
20962
+ current_user_phone_number: string | null;
20963
+ current_user_company: string | null;
20964
+ handover_method: string | null;
20965
+ keynest_app_user: string | null;
20966
+ default_office_id: number;
20967
+ fob_id: number;
20968
+ has_photo: boolean;
20969
+ }>>;
18256
20970
  }, "strip", z.ZodTypeAny, {
18257
20971
  ecobee_metadata?: {
18258
20972
  device_name: string;
@@ -18486,6 +21200,28 @@ export declare const workspaces_batch: z.ZodObject<{
18486
21200
  device_name: string;
18487
21201
  product_type: string;
18488
21202
  } | undefined;
21203
+ keynest_metadata?: {
21204
+ address: string | null;
21205
+ device_name: string;
21206
+ key_id: string;
21207
+ property_id: string | null;
21208
+ property_postcode: string | null;
21209
+ key_notes: string | null;
21210
+ subscription_plan: string;
21211
+ status_type: string;
21212
+ current_or_last_store_id: number;
21213
+ last_movement: string;
21214
+ current_status: string | null;
21215
+ current_user_name: string | null;
21216
+ current_user_email: string | null;
21217
+ current_user_phone_number: string | null;
21218
+ current_user_company: string | null;
21219
+ handover_method: string | null;
21220
+ keynest_app_user: string | null;
21221
+ default_office_id: number;
21222
+ fob_id: number;
21223
+ has_photo: boolean;
21224
+ } | undefined;
18489
21225
  }, {
18490
21226
  ecobee_metadata?: {
18491
21227
  device_name: string;
@@ -18719,6 +21455,28 @@ export declare const workspaces_batch: z.ZodObject<{
18719
21455
  device_name: string;
18720
21456
  product_type: string;
18721
21457
  } | undefined;
21458
+ keynest_metadata?: {
21459
+ address: string | null;
21460
+ device_name: string;
21461
+ key_id: string;
21462
+ property_id: string | null;
21463
+ property_postcode: string | null;
21464
+ key_notes: string | null;
21465
+ subscription_plan: string;
21466
+ status_type: string;
21467
+ current_or_last_store_id: number;
21468
+ last_movement: string;
21469
+ current_status: string | null;
21470
+ current_user_name: string | null;
21471
+ current_user_email: string | null;
21472
+ current_user_phone_number: string | null;
21473
+ current_user_company: string | null;
21474
+ handover_method: string | null;
21475
+ keynest_app_user: string | null;
21476
+ default_office_id: number;
21477
+ fob_id: number;
21478
+ has_photo: boolean;
21479
+ } | undefined;
18722
21480
  }>>, z.ZodIntersection<z.ZodObject<{
18723
21481
  _experimental_supported_code_from_access_codes_lengths: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
18724
21482
  code_constraints: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
@@ -20505,6 +23263,28 @@ export declare const workspaces_batch: z.ZodObject<{
20505
23263
  device_name: string;
20506
23264
  product_type: string;
20507
23265
  } | undefined;
23266
+ keynest_metadata?: {
23267
+ address: string | null;
23268
+ device_name: string;
23269
+ key_id: string;
23270
+ property_id: string | null;
23271
+ property_postcode: string | null;
23272
+ key_notes: string | null;
23273
+ subscription_plan: string;
23274
+ status_type: string;
23275
+ current_or_last_store_id: number;
23276
+ last_movement: string;
23277
+ current_status: string | null;
23278
+ current_user_name: string | null;
23279
+ current_user_email: string | null;
23280
+ current_user_phone_number: string | null;
23281
+ current_user_company: string | null;
23282
+ handover_method: string | null;
23283
+ keynest_app_user: string | null;
23284
+ default_office_id: number;
23285
+ fob_id: number;
23286
+ has_photo: boolean;
23287
+ } | undefined;
20508
23288
  } & {
20509
23289
  _experimental_supported_code_from_access_codes_lengths?: number[] | undefined;
20510
23290
  code_constraints?: ({
@@ -21140,6 +23920,28 @@ export declare const workspaces_batch: z.ZodObject<{
21140
23920
  device_name: string;
21141
23921
  product_type: string;
21142
23922
  } | undefined;
23923
+ keynest_metadata?: {
23924
+ address: string | null;
23925
+ device_name: string;
23926
+ key_id: string;
23927
+ property_id: string | null;
23928
+ property_postcode: string | null;
23929
+ key_notes: string | null;
23930
+ subscription_plan: string;
23931
+ status_type: string;
23932
+ current_or_last_store_id: number;
23933
+ last_movement: string;
23934
+ current_status: string | null;
23935
+ current_user_name: string | null;
23936
+ current_user_email: string | null;
23937
+ current_user_phone_number: string | null;
23938
+ current_user_company: string | null;
23939
+ handover_method: string | null;
23940
+ keynest_app_user: string | null;
23941
+ default_office_id: number;
23942
+ fob_id: number;
23943
+ has_photo: boolean;
23944
+ } | undefined;
21143
23945
  } & {
21144
23946
  _experimental_supported_code_from_access_codes_lengths?: number[] | undefined;
21145
23947
  code_constraints?: ({
@@ -22039,6 +24841,28 @@ export declare const workspaces_batch: z.ZodObject<{
22039
24841
  device_name: string;
22040
24842
  product_type: string;
22041
24843
  } | undefined;
24844
+ keynest_metadata?: {
24845
+ address: string | null;
24846
+ device_name: string;
24847
+ key_id: string;
24848
+ property_id: string | null;
24849
+ property_postcode: string | null;
24850
+ key_notes: string | null;
24851
+ subscription_plan: string;
24852
+ status_type: string;
24853
+ current_or_last_store_id: number;
24854
+ last_movement: string;
24855
+ current_status: string | null;
24856
+ current_user_name: string | null;
24857
+ current_user_email: string | null;
24858
+ current_user_phone_number: string | null;
24859
+ current_user_company: string | null;
24860
+ handover_method: string | null;
24861
+ keynest_app_user: string | null;
24862
+ default_office_id: number;
24863
+ fob_id: number;
24864
+ has_photo: boolean;
24865
+ } | undefined;
22042
24866
  } & {
22043
24867
  _experimental_supported_code_from_access_codes_lengths?: number[] | undefined;
22044
24868
  code_constraints?: ({
@@ -22259,21 +25083,6 @@ export declare const workspaces_batch: z.ZodObject<{
22259
25083
  room_description?: string | undefined;
22260
25084
  } | undefined;
22261
25085
  }[] | undefined;
22262
- workspaces?: {
22263
- name: string;
22264
- workspace_id: string;
22265
- is_suspended: boolean;
22266
- company_name: string;
22267
- is_sandbox: boolean;
22268
- connect_webview_customization: {
22269
- primary_button_color?: string | undefined;
22270
- primary_button_text_color?: string | undefined;
22271
- success_message?: string | undefined;
22272
- logo_shape?: "square" | "circle" | undefined;
22273
- inviter_logo_url?: string | undefined;
22274
- };
22275
- connect_partner_name: string | null;
22276
- }[] | undefined;
22277
25086
  user_identities?: {
22278
25087
  display_name: string;
22279
25088
  workspace_id: string;
@@ -22301,6 +25110,21 @@ export declare const workspaces_batch: z.ZodObject<{
22301
25110
  user_identity_key: string | null;
22302
25111
  acs_user_ids: string[];
22303
25112
  }[] | undefined;
25113
+ workspaces?: {
25114
+ name: string;
25115
+ workspace_id: string;
25116
+ is_suspended: boolean;
25117
+ company_name: string;
25118
+ is_sandbox: boolean;
25119
+ connect_webview_customization: {
25120
+ primary_button_color?: string | undefined;
25121
+ primary_button_text_color?: string | undefined;
25122
+ success_message?: string | undefined;
25123
+ logo_shape?: "square" | "circle" | undefined;
25124
+ inviter_logo_url?: string | undefined;
25125
+ };
25126
+ connect_partner_name: string | null;
25127
+ }[] | undefined;
22304
25128
  }, {
22305
25129
  batch_type: "workspaces";
22306
25130
  spaces?: {
@@ -22785,6 +25609,28 @@ export declare const workspaces_batch: z.ZodObject<{
22785
25609
  device_name: string;
22786
25610
  product_type: string;
22787
25611
  } | undefined;
25612
+ keynest_metadata?: {
25613
+ address: string | null;
25614
+ device_name: string;
25615
+ key_id: string;
25616
+ property_id: string | null;
25617
+ property_postcode: string | null;
25618
+ key_notes: string | null;
25619
+ subscription_plan: string;
25620
+ status_type: string;
25621
+ current_or_last_store_id: number;
25622
+ last_movement: string;
25623
+ current_status: string | null;
25624
+ current_user_name: string | null;
25625
+ current_user_email: string | null;
25626
+ current_user_phone_number: string | null;
25627
+ current_user_company: string | null;
25628
+ handover_method: string | null;
25629
+ keynest_app_user: string | null;
25630
+ default_office_id: number;
25631
+ fob_id: number;
25632
+ has_photo: boolean;
25633
+ } | undefined;
22788
25634
  } & {
22789
25635
  _experimental_supported_code_from_access_codes_lengths?: number[] | undefined;
22790
25636
  code_constraints?: ({
@@ -23005,21 +25851,6 @@ export declare const workspaces_batch: z.ZodObject<{
23005
25851
  room_description?: string | undefined;
23006
25852
  } | undefined;
23007
25853
  }[] | undefined;
23008
- workspaces?: {
23009
- name: string;
23010
- workspace_id: string;
23011
- is_suspended: boolean;
23012
- company_name: string;
23013
- is_sandbox: boolean;
23014
- connect_webview_customization: {
23015
- primary_button_color?: string | undefined;
23016
- primary_button_text_color?: string | undefined;
23017
- success_message?: string | undefined;
23018
- logo_shape?: "square" | "circle" | undefined;
23019
- inviter_logo_url?: string | undefined;
23020
- };
23021
- connect_partner_name: string | null;
23022
- }[] | undefined;
23023
25854
  user_identities?: {
23024
25855
  display_name: string;
23025
25856
  workspace_id: string;
@@ -23047,6 +25878,21 @@ export declare const workspaces_batch: z.ZodObject<{
23047
25878
  user_identity_key: string | null;
23048
25879
  acs_user_ids: string[];
23049
25880
  }[] | undefined;
25881
+ workspaces?: {
25882
+ name: string;
25883
+ workspace_id: string;
25884
+ is_suspended: boolean;
25885
+ company_name: string;
25886
+ is_sandbox: boolean;
25887
+ connect_webview_customization: {
25888
+ primary_button_color?: string | undefined;
25889
+ primary_button_text_color?: string | undefined;
25890
+ success_message?: string | undefined;
25891
+ logo_shape?: "square" | "circle" | undefined;
25892
+ inviter_logo_url?: string | undefined;
25893
+ };
25894
+ connect_partner_name: string | null;
25895
+ }[] | undefined;
23050
25896
  }>;
23051
25897
  export declare const batch: z.ZodObject<{
23052
25898
  batch_type: z.ZodEnum<["workspaces", "access_grants", "access_methods", "spaces"]>;
@@ -24202,6 +27048,70 @@ export declare const batch: z.ZodObject<{
24202
27048
  device_name: string;
24203
27049
  product_type: string;
24204
27050
  }>>;
27051
+ keynest_metadata: z.ZodOptional<z.ZodObject<{
27052
+ key_id: z.ZodString;
27053
+ device_name: z.ZodString;
27054
+ property_id: z.ZodNullable<z.ZodString>;
27055
+ property_postcode: z.ZodNullable<z.ZodString>;
27056
+ key_notes: z.ZodNullable<z.ZodString>;
27057
+ subscription_plan: z.ZodString;
27058
+ status_type: z.ZodString;
27059
+ current_or_last_store_id: z.ZodNumber;
27060
+ last_movement: z.ZodString;
27061
+ address: z.ZodNullable<z.ZodString>;
27062
+ current_status: z.ZodNullable<z.ZodString>;
27063
+ current_user_name: z.ZodNullable<z.ZodString>;
27064
+ current_user_email: z.ZodNullable<z.ZodString>;
27065
+ current_user_phone_number: z.ZodNullable<z.ZodString>;
27066
+ current_user_company: z.ZodNullable<z.ZodString>;
27067
+ handover_method: z.ZodNullable<z.ZodString>;
27068
+ keynest_app_user: z.ZodNullable<z.ZodString>;
27069
+ default_office_id: z.ZodNumber;
27070
+ fob_id: z.ZodNumber;
27071
+ has_photo: z.ZodBoolean;
27072
+ }, "strip", z.ZodTypeAny, {
27073
+ address: string | null;
27074
+ device_name: string;
27075
+ key_id: string;
27076
+ property_id: string | null;
27077
+ property_postcode: string | null;
27078
+ key_notes: string | null;
27079
+ subscription_plan: string;
27080
+ status_type: string;
27081
+ current_or_last_store_id: number;
27082
+ last_movement: string;
27083
+ current_status: string | null;
27084
+ current_user_name: string | null;
27085
+ current_user_email: string | null;
27086
+ current_user_phone_number: string | null;
27087
+ current_user_company: string | null;
27088
+ handover_method: string | null;
27089
+ keynest_app_user: string | null;
27090
+ default_office_id: number;
27091
+ fob_id: number;
27092
+ has_photo: boolean;
27093
+ }, {
27094
+ address: string | null;
27095
+ device_name: string;
27096
+ key_id: string;
27097
+ property_id: string | null;
27098
+ property_postcode: string | null;
27099
+ key_notes: string | null;
27100
+ subscription_plan: string;
27101
+ status_type: string;
27102
+ current_or_last_store_id: number;
27103
+ last_movement: string;
27104
+ current_status: string | null;
27105
+ current_user_name: string | null;
27106
+ current_user_email: string | null;
27107
+ current_user_phone_number: string | null;
27108
+ current_user_company: string | null;
27109
+ handover_method: string | null;
27110
+ keynest_app_user: string | null;
27111
+ default_office_id: number;
27112
+ fob_id: number;
27113
+ has_photo: boolean;
27114
+ }>>;
24205
27115
  }, "strip", z.ZodTypeAny, {
24206
27116
  ecobee_metadata?: {
24207
27117
  device_name: string;
@@ -24435,6 +27345,28 @@ export declare const batch: z.ZodObject<{
24435
27345
  device_name: string;
24436
27346
  product_type: string;
24437
27347
  } | undefined;
27348
+ keynest_metadata?: {
27349
+ address: string | null;
27350
+ device_name: string;
27351
+ key_id: string;
27352
+ property_id: string | null;
27353
+ property_postcode: string | null;
27354
+ key_notes: string | null;
27355
+ subscription_plan: string;
27356
+ status_type: string;
27357
+ current_or_last_store_id: number;
27358
+ last_movement: string;
27359
+ current_status: string | null;
27360
+ current_user_name: string | null;
27361
+ current_user_email: string | null;
27362
+ current_user_phone_number: string | null;
27363
+ current_user_company: string | null;
27364
+ handover_method: string | null;
27365
+ keynest_app_user: string | null;
27366
+ default_office_id: number;
27367
+ fob_id: number;
27368
+ has_photo: boolean;
27369
+ } | undefined;
24438
27370
  }, {
24439
27371
  ecobee_metadata?: {
24440
27372
  device_name: string;
@@ -24668,6 +27600,28 @@ export declare const batch: z.ZodObject<{
24668
27600
  device_name: string;
24669
27601
  product_type: string;
24670
27602
  } | undefined;
27603
+ keynest_metadata?: {
27604
+ address: string | null;
27605
+ device_name: string;
27606
+ key_id: string;
27607
+ property_id: string | null;
27608
+ property_postcode: string | null;
27609
+ key_notes: string | null;
27610
+ subscription_plan: string;
27611
+ status_type: string;
27612
+ current_or_last_store_id: number;
27613
+ last_movement: string;
27614
+ current_status: string | null;
27615
+ current_user_name: string | null;
27616
+ current_user_email: string | null;
27617
+ current_user_phone_number: string | null;
27618
+ current_user_company: string | null;
27619
+ handover_method: string | null;
27620
+ keynest_app_user: string | null;
27621
+ default_office_id: number;
27622
+ fob_id: number;
27623
+ has_photo: boolean;
27624
+ } | undefined;
24671
27625
  }>>, z.ZodIntersection<z.ZodObject<{
24672
27626
  _experimental_supported_code_from_access_codes_lengths: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
24673
27627
  code_constraints: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
@@ -26454,6 +29408,28 @@ export declare const batch: z.ZodObject<{
26454
29408
  device_name: string;
26455
29409
  product_type: string;
26456
29410
  } | undefined;
29411
+ keynest_metadata?: {
29412
+ address: string | null;
29413
+ device_name: string;
29414
+ key_id: string;
29415
+ property_id: string | null;
29416
+ property_postcode: string | null;
29417
+ key_notes: string | null;
29418
+ subscription_plan: string;
29419
+ status_type: string;
29420
+ current_or_last_store_id: number;
29421
+ last_movement: string;
29422
+ current_status: string | null;
29423
+ current_user_name: string | null;
29424
+ current_user_email: string | null;
29425
+ current_user_phone_number: string | null;
29426
+ current_user_company: string | null;
29427
+ handover_method: string | null;
29428
+ keynest_app_user: string | null;
29429
+ default_office_id: number;
29430
+ fob_id: number;
29431
+ has_photo: boolean;
29432
+ } | undefined;
26457
29433
  } & {
26458
29434
  _experimental_supported_code_from_access_codes_lengths?: number[] | undefined;
26459
29435
  code_constraints?: ({
@@ -27089,6 +30065,28 @@ export declare const batch: z.ZodObject<{
27089
30065
  device_name: string;
27090
30066
  product_type: string;
27091
30067
  } | undefined;
30068
+ keynest_metadata?: {
30069
+ address: string | null;
30070
+ device_name: string;
30071
+ key_id: string;
30072
+ property_id: string | null;
30073
+ property_postcode: string | null;
30074
+ key_notes: string | null;
30075
+ subscription_plan: string;
30076
+ status_type: string;
30077
+ current_or_last_store_id: number;
30078
+ last_movement: string;
30079
+ current_status: string | null;
30080
+ current_user_name: string | null;
30081
+ current_user_email: string | null;
30082
+ current_user_phone_number: string | null;
30083
+ current_user_company: string | null;
30084
+ handover_method: string | null;
30085
+ keynest_app_user: string | null;
30086
+ default_office_id: number;
30087
+ fob_id: number;
30088
+ has_photo: boolean;
30089
+ } | undefined;
27092
30090
  } & {
27093
30091
  _experimental_supported_code_from_access_codes_lengths?: number[] | undefined;
27094
30092
  code_constraints?: ({
@@ -27988,6 +30986,28 @@ export declare const batch: z.ZodObject<{
27988
30986
  device_name: string;
27989
30987
  product_type: string;
27990
30988
  } | undefined;
30989
+ keynest_metadata?: {
30990
+ address: string | null;
30991
+ device_name: string;
30992
+ key_id: string;
30993
+ property_id: string | null;
30994
+ property_postcode: string | null;
30995
+ key_notes: string | null;
30996
+ subscription_plan: string;
30997
+ status_type: string;
30998
+ current_or_last_store_id: number;
30999
+ last_movement: string;
31000
+ current_status: string | null;
31001
+ current_user_name: string | null;
31002
+ current_user_email: string | null;
31003
+ current_user_phone_number: string | null;
31004
+ current_user_company: string | null;
31005
+ handover_method: string | null;
31006
+ keynest_app_user: string | null;
31007
+ default_office_id: number;
31008
+ fob_id: number;
31009
+ has_photo: boolean;
31010
+ } | undefined;
27991
31011
  } & {
27992
31012
  _experimental_supported_code_from_access_codes_lengths?: number[] | undefined;
27993
31013
  code_constraints?: ({
@@ -28208,21 +31228,6 @@ export declare const batch: z.ZodObject<{
28208
31228
  room_description?: string | undefined;
28209
31229
  } | undefined;
28210
31230
  }[] | undefined;
28211
- workspaces?: {
28212
- name: string;
28213
- workspace_id: string;
28214
- is_suspended: boolean;
28215
- company_name: string;
28216
- is_sandbox: boolean;
28217
- connect_webview_customization: {
28218
- primary_button_color?: string | undefined;
28219
- primary_button_text_color?: string | undefined;
28220
- success_message?: string | undefined;
28221
- logo_shape?: "square" | "circle" | undefined;
28222
- inviter_logo_url?: string | undefined;
28223
- };
28224
- connect_partner_name: string | null;
28225
- }[] | undefined;
28226
31231
  user_identities?: {
28227
31232
  display_name: string;
28228
31233
  workspace_id: string;
@@ -28250,6 +31255,21 @@ export declare const batch: z.ZodObject<{
28250
31255
  user_identity_key: string | null;
28251
31256
  acs_user_ids: string[];
28252
31257
  }[] | undefined;
31258
+ workspaces?: {
31259
+ name: string;
31260
+ workspace_id: string;
31261
+ is_suspended: boolean;
31262
+ company_name: string;
31263
+ is_sandbox: boolean;
31264
+ connect_webview_customization: {
31265
+ primary_button_color?: string | undefined;
31266
+ primary_button_text_color?: string | undefined;
31267
+ success_message?: string | undefined;
31268
+ logo_shape?: "square" | "circle" | undefined;
31269
+ inviter_logo_url?: string | undefined;
31270
+ };
31271
+ connect_partner_name: string | null;
31272
+ }[] | undefined;
28253
31273
  }, {
28254
31274
  batch_type: "spaces" | "access_grants" | "access_methods" | "workspaces";
28255
31275
  spaces?: {
@@ -28734,6 +31754,28 @@ export declare const batch: z.ZodObject<{
28734
31754
  device_name: string;
28735
31755
  product_type: string;
28736
31756
  } | undefined;
31757
+ keynest_metadata?: {
31758
+ address: string | null;
31759
+ device_name: string;
31760
+ key_id: string;
31761
+ property_id: string | null;
31762
+ property_postcode: string | null;
31763
+ key_notes: string | null;
31764
+ subscription_plan: string;
31765
+ status_type: string;
31766
+ current_or_last_store_id: number;
31767
+ last_movement: string;
31768
+ current_status: string | null;
31769
+ current_user_name: string | null;
31770
+ current_user_email: string | null;
31771
+ current_user_phone_number: string | null;
31772
+ current_user_company: string | null;
31773
+ handover_method: string | null;
31774
+ keynest_app_user: string | null;
31775
+ default_office_id: number;
31776
+ fob_id: number;
31777
+ has_photo: boolean;
31778
+ } | undefined;
28737
31779
  } & {
28738
31780
  _experimental_supported_code_from_access_codes_lengths?: number[] | undefined;
28739
31781
  code_constraints?: ({
@@ -28954,21 +31996,6 @@ export declare const batch: z.ZodObject<{
28954
31996
  room_description?: string | undefined;
28955
31997
  } | undefined;
28956
31998
  }[] | undefined;
28957
- workspaces?: {
28958
- name: string;
28959
- workspace_id: string;
28960
- is_suspended: boolean;
28961
- company_name: string;
28962
- is_sandbox: boolean;
28963
- connect_webview_customization: {
28964
- primary_button_color?: string | undefined;
28965
- primary_button_text_color?: string | undefined;
28966
- success_message?: string | undefined;
28967
- logo_shape?: "square" | "circle" | undefined;
28968
- inviter_logo_url?: string | undefined;
28969
- };
28970
- connect_partner_name: string | null;
28971
- }[] | undefined;
28972
31999
  user_identities?: {
28973
32000
  display_name: string;
28974
32001
  workspace_id: string;
@@ -28996,6 +32023,21 @@ export declare const batch: z.ZodObject<{
28996
32023
  user_identity_key: string | null;
28997
32024
  acs_user_ids: string[];
28998
32025
  }[] | undefined;
32026
+ workspaces?: {
32027
+ name: string;
32028
+ workspace_id: string;
32029
+ is_suspended: boolean;
32030
+ company_name: string;
32031
+ is_sandbox: boolean;
32032
+ connect_webview_customization: {
32033
+ primary_button_color?: string | undefined;
32034
+ primary_button_text_color?: string | undefined;
32035
+ success_message?: string | undefined;
32036
+ logo_shape?: "square" | "circle" | undefined;
32037
+ inviter_logo_url?: string | undefined;
32038
+ };
32039
+ connect_partner_name: string | null;
32040
+ }[] | undefined;
28999
32041
  }>;
29000
32042
  export type WorkspacesBatch = z.infer<typeof workspaces_batch>;
29001
32043
  export type Batch = z.infer<typeof batch>;