@seamapi/types 1.306.0 → 1.308.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/dist/connect.cjs +124 -53
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +311 -150
  4. package/lib/seam/connect/models/acs/acs-access-group.d.ts +13 -13
  5. package/lib/seam/connect/models/acs/acs-access-group.js +1 -1
  6. package/lib/seam/connect/models/acs/acs-access-group.js.map +1 -1
  7. package/lib/seam/connect/models/acs/acs-system.d.ts +34 -13
  8. package/lib/seam/connect/models/acs/acs-system.js +11 -4
  9. package/lib/seam/connect/models/acs/acs-system.js.map +1 -1
  10. package/lib/seam/connect/models/action-attempts/action-attempt.d.ts +13 -13
  11. package/lib/seam/connect/models/action-attempts/scan-credential.d.ts +13 -13
  12. package/lib/seam/connect/models/action-attempts/scan-credential.js +7 -2
  13. package/lib/seam/connect/models/action-attempts/scan-credential.js.map +1 -1
  14. package/lib/seam/connect/models/devices/device-metadata.d.ts +18 -0
  15. package/lib/seam/connect/models/devices/device-metadata.js +4 -0
  16. package/lib/seam/connect/models/devices/device-metadata.js.map +1 -1
  17. package/lib/seam/connect/models/devices/device-provider.d.ts +2 -1
  18. package/lib/seam/connect/models/devices/device-provider.js +2 -0
  19. package/lib/seam/connect/models/devices/device-provider.js.map +1 -1
  20. package/lib/seam/connect/models/devices/device-type.d.ts +1 -0
  21. package/lib/seam/connect/models/devices/device-type.js +1 -0
  22. package/lib/seam/connect/models/devices/device-type.js.map +1 -1
  23. package/lib/seam/connect/models/devices/device.d.ts +29 -3
  24. package/lib/seam/connect/models/devices/phone.d.ts +19 -1
  25. package/lib/seam/connect/models/devices/unmanaged-device.d.ts +21 -3
  26. package/lib/seam/connect/openapi.d.ts +32 -17
  27. package/lib/seam/connect/openapi.js +80 -23
  28. package/lib/seam/connect/openapi.js.map +1 -1
  29. package/lib/seam/connect/route-types.d.ts +170 -90
  30. package/package.json +1 -1
  31. package/src/lib/seam/connect/models/acs/acs-access-group.ts +1 -1
  32. package/src/lib/seam/connect/models/acs/acs-system.ts +15 -5
  33. package/src/lib/seam/connect/models/action-attempts/scan-credential.ts +7 -4
  34. package/src/lib/seam/connect/models/devices/device-metadata.ts +5 -0
  35. package/src/lib/seam/connect/models/devices/device-provider.ts +2 -0
  36. package/src/lib/seam/connect/models/devices/device-type.ts +1 -0
  37. package/src/lib/seam/connect/openapi.ts +86 -26
  38. package/src/lib/seam/connect/route-types.ts +282 -82
package/dist/connect.cjs CHANGED
@@ -705,6 +705,10 @@ var device_metadata = zod.z.object({
705
705
  }),
706
706
  assa_abloy_vostio_metadata: zod.z.object({
707
707
  encoder_name: zod.z.string()
708
+ }),
709
+ tado_metadata: zod.z.object({
710
+ serial_no: zod.z.string(),
711
+ device_type: zod.z.string()
708
712
  })
709
713
  }).partial();
710
714
  var LOCK_DEVICE_TYPE = {
@@ -749,7 +753,8 @@ var noise_sensor_device_type = zod.z.enum(
749
753
  var THERMOSTAT_DEVICE_TYPE = {
750
754
  ECOBEE_THERMOSTAT: "ecobee_thermostat",
751
755
  NEST_THERMOSTAT: "nest_thermostat",
752
- HONEYWELL_RESIDEO_THERMOSTAT: "honeywell_resideo_thermostat"
756
+ HONEYWELL_RESIDEO_THERMOSTAT: "honeywell_resideo_thermostat",
757
+ TADO_THERMOSTAT: "tado_thermostat"
753
758
  };
754
759
  var thermostat_device_type = zod.z.enum(
755
760
  Object.values(THERMOSTAT_DEVICE_TYPE)
@@ -960,7 +965,8 @@ var DEVICE_PROVIDERS = {
960
965
  AKILES: "akiles",
961
966
  VOSTIO: "assa_abloy_vostio",
962
967
  ASSA_ABLOY_VOSTIO_CREDENTIAL_SERVICE: "assa_abloy_vostio_credential_service",
963
- TADO: "tado"
968
+ TADO: "tado",
969
+ SALTO_SPACE: "salto_space"
964
970
  };
965
971
  var ALL_DEVICE_PROVIDERS = Object.values(DEVICE_PROVIDERS);
966
972
  var PROVIDER_CATEGORY_MAP = {
@@ -1014,7 +1020,8 @@ var PROVIDER_CATEGORY_MAP = {
1014
1020
  "latch",
1015
1021
  "salto_ks",
1016
1022
  "assa_abloy_vostio",
1017
- "assa_abloy_vostio_credential_service"
1023
+ "assa_abloy_vostio_credential_service",
1024
+ "salto_space"
1018
1025
  ],
1019
1026
  internal_beta: ALL_DEVICE_PROVIDERS
1020
1027
  };
@@ -1143,7 +1150,7 @@ var unmanaged_access_code = access_code.pick({
1143
1150
  var acs_access_group_external_type = zod.z.enum([
1144
1151
  "pti_unit",
1145
1152
  "pti_access_level",
1146
- "salto_access_group",
1153
+ "salto_ks_access_group",
1147
1154
  "brivo_group"
1148
1155
  ]);
1149
1156
  var common_acs_access_group = zod.z.object({
@@ -1443,6 +1450,7 @@ var acs_system_external_type = zod.z.enum([
1443
1450
  "pti_site",
1444
1451
  "alta_org",
1445
1452
  "salto_ks_site",
1453
+ "salto_space_system",
1446
1454
  "brivo_account",
1447
1455
  "hid_credential_manager_organization",
1448
1456
  "visionline_system",
@@ -1517,10 +1525,15 @@ var salto_ks_subscription_limit_almost_reached = common_acs_system_warning.exten
1517
1525
  "Indicates that the Salto KS site has exceeded 80% of the maximum number of allowed users. Please increase your subscription limit, or delete some users from your site to rectify this."
1518
1526
  )
1519
1527
  });
1520
- var acs_system_warning = (
1521
- // z.union([
1522
- salto_ks_subscription_limit_almost_reached.describe("Warning associated with the `acs_system`.")
1523
- );
1528
+ var time_zone_does_not_match_location = common_acs_system_warning.extend({
1529
+ warning_code: zod.z.literal("time_zone_does_not_match_location").describe(
1530
+ "Indicates the ACS system time zone could not be determined because the reported physical location does not match the time zone configured on the physical ACS entrances."
1531
+ )
1532
+ });
1533
+ var acs_system_warning = zod.z.union([
1534
+ salto_ks_subscription_limit_almost_reached,
1535
+ time_zone_does_not_match_location
1536
+ ]).describe("Warning associated with the `acs_system`.");
1524
1537
  zod.z.object({
1525
1538
  salto_ks_subscription_limit_almost_reached: salto_ks_subscription_limit_almost_reached.optional().nullable()
1526
1539
  });
@@ -1978,14 +1991,15 @@ var error6 = zod.z.union([
1978
1991
  no_card_on_encoder_error2
1979
1992
  ]);
1980
1993
  var warning = zod.z.object({
1981
- warning_code: zod.z.literal("acs_credential_on_encoder_out_of_sync"),
1994
+ warning_code: zod.z.union([
1995
+ zod.z.literal("acs_credential_on_encoder_out_of_sync"),
1996
+ zod.z.literal("acs_credential_on_seam_not_found")
1997
+ ]),
1982
1998
  warning_message: zod.z.string()
1983
1999
  });
1984
2000
  var acs_credential_on_seam = acs_credential.or(unmanaged_acs_credential);
1985
2001
  var result6 = zod.z.object({
1986
- acs_credential_on_encoder: acs_credential_on_encoder.describe(
1987
- "Snapshot of credential data read from physical encoder."
1988
- ),
2002
+ acs_credential_on_encoder: acs_credential_on_encoder.nullable().describe("Snapshot of credential data read from physical encoder."),
1989
2003
  acs_credential_on_seam: acs_credential_on_seam.nullable().describe("Matching acs_credential currently encoded on this card."),
1990
2004
  warnings: zod.z.array(warning)
1991
2005
  });
@@ -3044,7 +3058,7 @@ var openapi_default = {
3044
3058
  enum: [
3045
3059
  "pti_unit",
3046
3060
  "pti_access_level",
3047
- "salto_access_group",
3061
+ "salto_ks_access_group",
3048
3062
  "brivo_group"
3049
3063
  ],
3050
3064
  type: "string",
@@ -3076,7 +3090,7 @@ var openapi_default = {
3076
3090
  enum: [
3077
3091
  "pti_unit",
3078
3092
  "pti_access_level",
3079
- "salto_access_group",
3093
+ "salto_ks_access_group",
3080
3094
  "brivo_group"
3081
3095
  ],
3082
3096
  type: "string"
@@ -3696,6 +3710,7 @@ var openapi_default = {
3696
3710
  "pti_site",
3697
3711
  "alta_org",
3698
3712
  "salto_ks_site",
3713
+ "salto_space_system",
3699
3714
  "brivo_account",
3700
3715
  "hid_credential_manager_organization",
3701
3716
  "visionline_system",
@@ -3742,6 +3757,7 @@ var openapi_default = {
3742
3757
  "pti_site",
3743
3758
  "alta_org",
3744
3759
  "salto_ks_site",
3760
+ "salto_space_system",
3745
3761
  "brivo_account",
3746
3762
  "hid_credential_manager_organization",
3747
3763
  "visionline_system",
@@ -3782,24 +3798,48 @@ var openapi_default = {
3782
3798
  description: "Warnings associated with the `acs_system`.",
3783
3799
  items: {
3784
3800
  description: "Warning associated with the `acs_system`.",
3785
- properties: {
3786
- created_at: {
3787
- description: "Date and time at which Seam created the warning.",
3788
- format: "date-time",
3789
- type: "string"
3790
- },
3791
- message: {
3792
- description: "Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.",
3793
- type: "string"
3801
+ oneOf: [
3802
+ {
3803
+ properties: {
3804
+ created_at: {
3805
+ description: "Date and time at which Seam created the warning.",
3806
+ format: "date-time",
3807
+ type: "string"
3808
+ },
3809
+ message: {
3810
+ description: "Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.",
3811
+ type: "string"
3812
+ },
3813
+ warning_code: {
3814
+ description: "Indicates that the Salto KS site has exceeded 80% of the maximum number of allowed users. Please increase your subscription limit, or delete some users from your site to rectify this.",
3815
+ enum: ["salto_ks_subscription_limit_almost_reached"],
3816
+ type: "string"
3817
+ }
3818
+ },
3819
+ required: ["created_at", "message", "warning_code"],
3820
+ type: "object"
3794
3821
  },
3795
- warning_code: {
3796
- description: "Indicates that the Salto KS site has exceeded 80% of the maximum number of allowed users. Please increase your subscription limit, or delete some users from your site to rectify this.",
3797
- enum: ["salto_ks_subscription_limit_almost_reached"],
3798
- type: "string"
3822
+ {
3823
+ properties: {
3824
+ created_at: {
3825
+ description: "Date and time at which Seam created the warning.",
3826
+ format: "date-time",
3827
+ type: "string"
3828
+ },
3829
+ message: {
3830
+ description: "Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.",
3831
+ type: "string"
3832
+ },
3833
+ warning_code: {
3834
+ description: "Indicates the ACS system time zone could not be determined because the reported physical location does not match the time zone configured on the physical ACS entrances.",
3835
+ enum: ["time_zone_does_not_match_location"],
3836
+ type: "string"
3837
+ }
3838
+ },
3839
+ required: ["created_at", "message", "warning_code"],
3840
+ type: "object"
3799
3841
  }
3800
- },
3801
- required: ["created_at", "message", "warning_code"],
3802
- type: "object"
3842
+ ]
3803
3843
  },
3804
3844
  type: "array"
3805
3845
  },
@@ -4285,6 +4325,7 @@ var openapi_default = {
4285
4325
  properties: {
4286
4326
  acs_credential_on_encoder: {
4287
4327
  description: "Snapshot of credential data read from physical encoder.",
4328
+ nullable: true,
4288
4329
  properties: {
4289
4330
  card_number: {
4290
4331
  description: "A number or string that physically identifies this card.",
@@ -4894,7 +4935,10 @@ var openapi_default = {
4894
4935
  items: {
4895
4936
  properties: {
4896
4937
  warning_code: {
4897
- enum: ["acs_credential_on_encoder_out_of_sync"],
4938
+ enum: [
4939
+ "acs_credential_on_encoder_out_of_sync",
4940
+ "acs_credential_on_seam_not_found"
4941
+ ],
4898
4942
  type: "string"
4899
4943
  },
4900
4944
  warning_message: { type: "string" }
@@ -7013,7 +7057,8 @@ var openapi_default = {
7013
7057
  enum: [
7014
7058
  "ecobee_thermostat",
7015
7059
  "nest_thermostat",
7016
- "honeywell_resideo_thermostat"
7060
+ "honeywell_resideo_thermostat",
7061
+ "tado_thermostat"
7017
7062
  ],
7018
7063
  type: "string"
7019
7064
  },
@@ -7689,6 +7734,14 @@ var openapi_default = {
7689
7734
  required: ["device_id", "device_name"],
7690
7735
  type: "object"
7691
7736
  },
7737
+ tado_metadata: {
7738
+ properties: {
7739
+ device_type: { type: "string" },
7740
+ serial_no: { type: "string" }
7741
+ },
7742
+ required: ["serial_no", "device_type"],
7743
+ type: "object"
7744
+ },
7692
7745
  tedee_metadata: {
7693
7746
  properties: {
7694
7747
  bridge_id: { format: "float", type: "number" },
@@ -8349,7 +8402,8 @@ var openapi_default = {
8349
8402
  "akiles",
8350
8403
  "assa_abloy_vostio",
8351
8404
  "assa_abloy_vostio_credential_service",
8352
- "tado"
8405
+ "tado",
8406
+ "salto_space"
8353
8407
  ],
8354
8408
  type: "string"
8355
8409
  },
@@ -8919,7 +8973,8 @@ var openapi_default = {
8919
8973
  enum: [
8920
8974
  "ecobee_thermostat",
8921
8975
  "nest_thermostat",
8922
- "honeywell_resideo_thermostat"
8976
+ "honeywell_resideo_thermostat",
8977
+ "tado_thermostat"
8923
8978
  ],
8924
8979
  type: "string"
8925
8980
  },
@@ -10932,7 +10987,7 @@ var openapi_default = {
10932
10987
  enum: [
10933
10988
  "pti_unit",
10934
10989
  "pti_access_level",
10935
- "salto_access_group",
10990
+ "salto_ks_access_group",
10936
10991
  "brivo_group"
10937
10992
  ],
10938
10993
  type: "string",
@@ -10964,7 +11019,7 @@ var openapi_default = {
10964
11019
  enum: [
10965
11020
  "pti_unit",
10966
11021
  "pti_access_level",
10967
- "salto_access_group",
11022
+ "salto_ks_access_group",
10968
11023
  "brivo_group"
10969
11024
  ],
10970
11025
  type: "string"
@@ -11064,7 +11119,7 @@ var openapi_default = {
11064
11119
  enum: [
11065
11120
  "pti_unit",
11066
11121
  "pti_access_level",
11067
- "salto_access_group",
11122
+ "salto_ks_access_group",
11068
11123
  "brivo_group"
11069
11124
  ],
11070
11125
  type: "string",
@@ -11096,7 +11151,7 @@ var openapi_default = {
11096
11151
  enum: [
11097
11152
  "pti_unit",
11098
11153
  "pti_access_level",
11099
- "salto_access_group",
11154
+ "salto_ks_access_group",
11100
11155
  "brivo_group"
11101
11156
  ],
11102
11157
  type: "string"
@@ -15674,6 +15729,7 @@ var openapi_default = {
15674
15729
  "assa_abloy_vostio",
15675
15730
  "assa_abloy_vostio_credential_service",
15676
15731
  "tado",
15732
+ "salto_space",
15677
15733
  "yale_access",
15678
15734
  "hid_cm",
15679
15735
  "google_nest"
@@ -16314,7 +16370,8 @@ var openapi_default = {
16314
16370
  enum: [
16315
16371
  "ecobee_thermostat",
16316
16372
  "nest_thermostat",
16317
- "honeywell_resideo_thermostat"
16373
+ "honeywell_resideo_thermostat",
16374
+ "tado_thermostat"
16318
16375
  ],
16319
16376
  type: "string"
16320
16377
  },
@@ -16365,7 +16422,8 @@ var openapi_default = {
16365
16422
  enum: [
16366
16423
  "ecobee_thermostat",
16367
16424
  "nest_thermostat",
16368
- "honeywell_resideo_thermostat"
16425
+ "honeywell_resideo_thermostat",
16426
+ "tado_thermostat"
16369
16427
  ],
16370
16428
  type: "string"
16371
16429
  },
@@ -16460,7 +16518,8 @@ var openapi_default = {
16460
16518
  "dormakaba_oracode",
16461
16519
  "tedee",
16462
16520
  "honeywell_resideo",
16463
- "akiles"
16521
+ "akiles",
16522
+ "tado"
16464
16523
  ],
16465
16524
  type: "string"
16466
16525
  },
@@ -16829,7 +16888,8 @@ var openapi_default = {
16829
16888
  enum: [
16830
16889
  "ecobee_thermostat",
16831
16890
  "nest_thermostat",
16832
- "honeywell_resideo_thermostat"
16891
+ "honeywell_resideo_thermostat",
16892
+ "tado_thermostat"
16833
16893
  ],
16834
16894
  type: "string"
16835
16895
  },
@@ -16880,7 +16940,8 @@ var openapi_default = {
16880
16940
  enum: [
16881
16941
  "ecobee_thermostat",
16882
16942
  "nest_thermostat",
16883
- "honeywell_resideo_thermostat"
16943
+ "honeywell_resideo_thermostat",
16944
+ "tado_thermostat"
16884
16945
  ],
16885
16946
  type: "string"
16886
16947
  },
@@ -16975,7 +17036,8 @@ var openapi_default = {
16975
17036
  "dormakaba_oracode",
16976
17037
  "tedee",
16977
17038
  "honeywell_resideo",
16978
- "akiles"
17039
+ "akiles",
17040
+ "tado"
16979
17041
  ],
16980
17042
  type: "string"
16981
17043
  },
@@ -17649,7 +17711,8 @@ var openapi_default = {
17649
17711
  enum: [
17650
17712
  "ecobee_thermostat",
17651
17713
  "nest_thermostat",
17652
- "honeywell_resideo_thermostat"
17714
+ "honeywell_resideo_thermostat",
17715
+ "tado_thermostat"
17653
17716
  ],
17654
17717
  type: "string"
17655
17718
  },
@@ -17700,7 +17763,8 @@ var openapi_default = {
17700
17763
  enum: [
17701
17764
  "ecobee_thermostat",
17702
17765
  "nest_thermostat",
17703
- "honeywell_resideo_thermostat"
17766
+ "honeywell_resideo_thermostat",
17767
+ "tado_thermostat"
17704
17768
  ],
17705
17769
  type: "string"
17706
17770
  },
@@ -17795,7 +17859,8 @@ var openapi_default = {
17795
17859
  "dormakaba_oracode",
17796
17860
  "tedee",
17797
17861
  "honeywell_resideo",
17798
- "akiles"
17862
+ "akiles",
17863
+ "tado"
17799
17864
  ],
17800
17865
  type: "string"
17801
17866
  },
@@ -18125,7 +18190,8 @@ var openapi_default = {
18125
18190
  enum: [
18126
18191
  "ecobee_thermostat",
18127
18192
  "nest_thermostat",
18128
- "honeywell_resideo_thermostat"
18193
+ "honeywell_resideo_thermostat",
18194
+ "tado_thermostat"
18129
18195
  ],
18130
18196
  type: "string"
18131
18197
  },
@@ -18176,7 +18242,8 @@ var openapi_default = {
18176
18242
  enum: [
18177
18243
  "ecobee_thermostat",
18178
18244
  "nest_thermostat",
18179
- "honeywell_resideo_thermostat"
18245
+ "honeywell_resideo_thermostat",
18246
+ "tado_thermostat"
18180
18247
  ],
18181
18248
  type: "string"
18182
18249
  },
@@ -18271,7 +18338,8 @@ var openapi_default = {
18271
18338
  "dormakaba_oracode",
18272
18339
  "tedee",
18273
18340
  "honeywell_resideo",
18274
- "akiles"
18341
+ "akiles",
18342
+ "tado"
18275
18343
  ],
18276
18344
  type: "string"
18277
18345
  },
@@ -19496,7 +19564,8 @@ var openapi_default = {
19496
19564
  enum: [
19497
19565
  "ecobee_thermostat",
19498
19566
  "nest_thermostat",
19499
- "honeywell_resideo_thermostat"
19567
+ "honeywell_resideo_thermostat",
19568
+ "tado_thermostat"
19500
19569
  ],
19501
19570
  type: "string"
19502
19571
  },
@@ -19547,7 +19616,8 @@ var openapi_default = {
19547
19616
  enum: [
19548
19617
  "ecobee_thermostat",
19549
19618
  "nest_thermostat",
19550
- "honeywell_resideo_thermostat"
19619
+ "honeywell_resideo_thermostat",
19620
+ "tado_thermostat"
19551
19621
  ],
19552
19622
  type: "string"
19553
19623
  },
@@ -19642,7 +19712,8 @@ var openapi_default = {
19642
19712
  "dormakaba_oracode",
19643
19713
  "tedee",
19644
19714
  "honeywell_resideo",
19645
- "akiles"
19715
+ "akiles",
19716
+ "tado"
19646
19717
  ],
19647
19718
  type: "string"
19648
19719
  },