@seamapi/types 1.307.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 (29) hide show
  1. package/dist/connect.cjs +69 -39
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +137 -113
  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/devices/device-metadata.d.ts +5 -10
  11. package/lib/seam/connect/models/devices/device-metadata.js +1 -2
  12. package/lib/seam/connect/models/devices/device-metadata.js.map +1 -1
  13. package/lib/seam/connect/models/devices/device-provider.d.ts +2 -1
  14. package/lib/seam/connect/models/devices/device-provider.js +2 -0
  15. package/lib/seam/connect/models/devices/device-provider.js.map +1 -1
  16. package/lib/seam/connect/models/devices/device.d.ts +7 -14
  17. package/lib/seam/connect/models/devices/phone.d.ts +5 -10
  18. package/lib/seam/connect/models/devices/unmanaged-device.d.ts +5 -10
  19. package/lib/seam/connect/openapi.d.ts +20 -21
  20. package/lib/seam/connect/openapi.js +52 -29
  21. package/lib/seam/connect/openapi.js.map +1 -1
  22. package/lib/seam/connect/route-types.d.ts +59 -44
  23. package/package.json +1 -1
  24. package/src/lib/seam/connect/models/acs/acs-access-group.ts +1 -1
  25. package/src/lib/seam/connect/models/acs/acs-system.ts +15 -5
  26. package/src/lib/seam/connect/models/devices/device-metadata.ts +1 -2
  27. package/src/lib/seam/connect/models/devices/device-provider.ts +2 -0
  28. package/src/lib/seam/connect/openapi.ts +58 -32
  29. package/src/lib/seam/connect/route-types.ts +103 -66
package/dist/connect.cjs CHANGED
@@ -707,8 +707,7 @@ var device_metadata = zod.z.object({
707
707
  encoder_name: zod.z.string()
708
708
  }),
709
709
  tado_metadata: zod.z.object({
710
- serial_number: zod.z.string(),
711
- device_name: zod.z.string(),
710
+ serial_no: zod.z.string(),
712
711
  device_type: zod.z.string()
713
712
  })
714
713
  }).partial();
@@ -966,7 +965,8 @@ var DEVICE_PROVIDERS = {
966
965
  AKILES: "akiles",
967
966
  VOSTIO: "assa_abloy_vostio",
968
967
  ASSA_ABLOY_VOSTIO_CREDENTIAL_SERVICE: "assa_abloy_vostio_credential_service",
969
- TADO: "tado"
968
+ TADO: "tado",
969
+ SALTO_SPACE: "salto_space"
970
970
  };
971
971
  var ALL_DEVICE_PROVIDERS = Object.values(DEVICE_PROVIDERS);
972
972
  var PROVIDER_CATEGORY_MAP = {
@@ -1020,7 +1020,8 @@ var PROVIDER_CATEGORY_MAP = {
1020
1020
  "latch",
1021
1021
  "salto_ks",
1022
1022
  "assa_abloy_vostio",
1023
- "assa_abloy_vostio_credential_service"
1023
+ "assa_abloy_vostio_credential_service",
1024
+ "salto_space"
1024
1025
  ],
1025
1026
  internal_beta: ALL_DEVICE_PROVIDERS
1026
1027
  };
@@ -1149,7 +1150,7 @@ var unmanaged_access_code = access_code.pick({
1149
1150
  var acs_access_group_external_type = zod.z.enum([
1150
1151
  "pti_unit",
1151
1152
  "pti_access_level",
1152
- "salto_access_group",
1153
+ "salto_ks_access_group",
1153
1154
  "brivo_group"
1154
1155
  ]);
1155
1156
  var common_acs_access_group = zod.z.object({
@@ -1449,6 +1450,7 @@ var acs_system_external_type = zod.z.enum([
1449
1450
  "pti_site",
1450
1451
  "alta_org",
1451
1452
  "salto_ks_site",
1453
+ "salto_space_system",
1452
1454
  "brivo_account",
1453
1455
  "hid_credential_manager_organization",
1454
1456
  "visionline_system",
@@ -1523,10 +1525,15 @@ var salto_ks_subscription_limit_almost_reached = common_acs_system_warning.exten
1523
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."
1524
1526
  )
1525
1527
  });
1526
- var acs_system_warning = (
1527
- // z.union([
1528
- salto_ks_subscription_limit_almost_reached.describe("Warning associated with the `acs_system`.")
1529
- );
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`.");
1530
1537
  zod.z.object({
1531
1538
  salto_ks_subscription_limit_almost_reached: salto_ks_subscription_limit_almost_reached.optional().nullable()
1532
1539
  });
@@ -3051,7 +3058,7 @@ var openapi_default = {
3051
3058
  enum: [
3052
3059
  "pti_unit",
3053
3060
  "pti_access_level",
3054
- "salto_access_group",
3061
+ "salto_ks_access_group",
3055
3062
  "brivo_group"
3056
3063
  ],
3057
3064
  type: "string",
@@ -3083,7 +3090,7 @@ var openapi_default = {
3083
3090
  enum: [
3084
3091
  "pti_unit",
3085
3092
  "pti_access_level",
3086
- "salto_access_group",
3093
+ "salto_ks_access_group",
3087
3094
  "brivo_group"
3088
3095
  ],
3089
3096
  type: "string"
@@ -3703,6 +3710,7 @@ var openapi_default = {
3703
3710
  "pti_site",
3704
3711
  "alta_org",
3705
3712
  "salto_ks_site",
3713
+ "salto_space_system",
3706
3714
  "brivo_account",
3707
3715
  "hid_credential_manager_organization",
3708
3716
  "visionline_system",
@@ -3749,6 +3757,7 @@ var openapi_default = {
3749
3757
  "pti_site",
3750
3758
  "alta_org",
3751
3759
  "salto_ks_site",
3760
+ "salto_space_system",
3752
3761
  "brivo_account",
3753
3762
  "hid_credential_manager_organization",
3754
3763
  "visionline_system",
@@ -3789,24 +3798,48 @@ var openapi_default = {
3789
3798
  description: "Warnings associated with the `acs_system`.",
3790
3799
  items: {
3791
3800
  description: "Warning associated with the `acs_system`.",
3792
- properties: {
3793
- created_at: {
3794
- description: "Date and time at which Seam created the warning.",
3795
- format: "date-time",
3796
- type: "string"
3797
- },
3798
- message: {
3799
- description: "Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.",
3800
- 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"
3801
3821
  },
3802
- warning_code: {
3803
- 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.",
3804
- enum: ["salto_ks_subscription_limit_almost_reached"],
3805
- 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"
3806
3841
  }
3807
- },
3808
- required: ["created_at", "message", "warning_code"],
3809
- type: "object"
3842
+ ]
3810
3843
  },
3811
3844
  type: "array"
3812
3845
  },
@@ -7703,15 +7736,10 @@ var openapi_default = {
7703
7736
  },
7704
7737
  tado_metadata: {
7705
7738
  properties: {
7706
- device_name: { type: "string" },
7707
7739
  device_type: { type: "string" },
7708
- serial_number: { type: "string" }
7740
+ serial_no: { type: "string" }
7709
7741
  },
7710
- required: [
7711
- "serial_number",
7712
- "device_name",
7713
- "device_type"
7714
- ],
7742
+ required: ["serial_no", "device_type"],
7715
7743
  type: "object"
7716
7744
  },
7717
7745
  tedee_metadata: {
@@ -8374,7 +8402,8 @@ var openapi_default = {
8374
8402
  "akiles",
8375
8403
  "assa_abloy_vostio",
8376
8404
  "assa_abloy_vostio_credential_service",
8377
- "tado"
8405
+ "tado",
8406
+ "salto_space"
8378
8407
  ],
8379
8408
  type: "string"
8380
8409
  },
@@ -10958,7 +10987,7 @@ var openapi_default = {
10958
10987
  enum: [
10959
10988
  "pti_unit",
10960
10989
  "pti_access_level",
10961
- "salto_access_group",
10990
+ "salto_ks_access_group",
10962
10991
  "brivo_group"
10963
10992
  ],
10964
10993
  type: "string",
@@ -10990,7 +11019,7 @@ var openapi_default = {
10990
11019
  enum: [
10991
11020
  "pti_unit",
10992
11021
  "pti_access_level",
10993
- "salto_access_group",
11022
+ "salto_ks_access_group",
10994
11023
  "brivo_group"
10995
11024
  ],
10996
11025
  type: "string"
@@ -11090,7 +11119,7 @@ var openapi_default = {
11090
11119
  enum: [
11091
11120
  "pti_unit",
11092
11121
  "pti_access_level",
11093
- "salto_access_group",
11122
+ "salto_ks_access_group",
11094
11123
  "brivo_group"
11095
11124
  ],
11096
11125
  type: "string",
@@ -11122,7 +11151,7 @@ var openapi_default = {
11122
11151
  enum: [
11123
11152
  "pti_unit",
11124
11153
  "pti_access_level",
11125
- "salto_access_group",
11154
+ "salto_ks_access_group",
11126
11155
  "brivo_group"
11127
11156
  ],
11128
11157
  type: "string"
@@ -15700,6 +15729,7 @@ var openapi_default = {
15700
15729
  "assa_abloy_vostio",
15701
15730
  "assa_abloy_vostio_credential_service",
15702
15731
  "tado",
15732
+ "salto_space",
15703
15733
  "yale_access",
15704
15734
  "hid_cm",
15705
15735
  "google_nest"