@seamapi/types 1.307.0 → 1.309.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 (33) hide show
  1. package/dist/connect.cjs +72 -39
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +149 -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/client-sessions/client-session.d.ts +3 -0
  11. package/lib/seam/connect/models/client-sessions/client-session.js +1 -0
  12. package/lib/seam/connect/models/client-sessions/client-session.js.map +1 -1
  13. package/lib/seam/connect/models/devices/device-metadata.d.ts +5 -10
  14. package/lib/seam/connect/models/devices/device-metadata.js +1 -2
  15. package/lib/seam/connect/models/devices/device-metadata.js.map +1 -1
  16. package/lib/seam/connect/models/devices/device-provider.d.ts +2 -1
  17. package/lib/seam/connect/models/devices/device-provider.js +2 -0
  18. package/lib/seam/connect/models/devices/device-provider.js.map +1 -1
  19. package/lib/seam/connect/models/devices/device.d.ts +7 -14
  20. package/lib/seam/connect/models/devices/phone.d.ts +5 -10
  21. package/lib/seam/connect/models/devices/unmanaged-device.d.ts +5 -10
  22. package/lib/seam/connect/openapi.d.ts +24 -21
  23. package/lib/seam/connect/openapi.js +54 -29
  24. package/lib/seam/connect/openapi.js.map +1 -1
  25. package/lib/seam/connect/route-types.d.ts +64 -44
  26. package/package.json +1 -1
  27. package/src/lib/seam/connect/models/acs/acs-access-group.ts +1 -1
  28. package/src/lib/seam/connect/models/acs/acs-system.ts +15 -5
  29. package/src/lib/seam/connect/models/client-sessions/client-session.ts +1 -0
  30. package/src/lib/seam/connect/models/devices/device-metadata.ts +1 -2
  31. package/src/lib/seam/connect/models/devices/device-provider.ts +2 -0
  32. package/src/lib/seam/connect/openapi.ts +60 -32
  33. package/src/lib/seam/connect/route-types.ts +108 -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
  });
@@ -2142,6 +2149,7 @@ var client_session = zod.z.object({
2142
2149
  client_session_id: zod.z.string().uuid(),
2143
2150
  workspace_id: zod.z.string().uuid(),
2144
2151
  created_at: zod.z.string().datetime(),
2152
+ expires_at: zod.z.string().datetime(),
2145
2153
  token: zod.z.string(),
2146
2154
  user_identifier_key: zod.z.string().nullable(),
2147
2155
  device_count: zod.z.number(),
@@ -3051,7 +3059,7 @@ var openapi_default = {
3051
3059
  enum: [
3052
3060
  "pti_unit",
3053
3061
  "pti_access_level",
3054
- "salto_access_group",
3062
+ "salto_ks_access_group",
3055
3063
  "brivo_group"
3056
3064
  ],
3057
3065
  type: "string",
@@ -3083,7 +3091,7 @@ var openapi_default = {
3083
3091
  enum: [
3084
3092
  "pti_unit",
3085
3093
  "pti_access_level",
3086
- "salto_access_group",
3094
+ "salto_ks_access_group",
3087
3095
  "brivo_group"
3088
3096
  ],
3089
3097
  type: "string"
@@ -3703,6 +3711,7 @@ var openapi_default = {
3703
3711
  "pti_site",
3704
3712
  "alta_org",
3705
3713
  "salto_ks_site",
3714
+ "salto_space_system",
3706
3715
  "brivo_account",
3707
3716
  "hid_credential_manager_organization",
3708
3717
  "visionline_system",
@@ -3749,6 +3758,7 @@ var openapi_default = {
3749
3758
  "pti_site",
3750
3759
  "alta_org",
3751
3760
  "salto_ks_site",
3761
+ "salto_space_system",
3752
3762
  "brivo_account",
3753
3763
  "hid_credential_manager_organization",
3754
3764
  "visionline_system",
@@ -3789,24 +3799,48 @@ var openapi_default = {
3789
3799
  description: "Warnings associated with the `acs_system`.",
3790
3800
  items: {
3791
3801
  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"
3802
+ oneOf: [
3803
+ {
3804
+ properties: {
3805
+ created_at: {
3806
+ description: "Date and time at which Seam created the warning.",
3807
+ format: "date-time",
3808
+ type: "string"
3809
+ },
3810
+ message: {
3811
+ description: "Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.",
3812
+ type: "string"
3813
+ },
3814
+ warning_code: {
3815
+ 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.",
3816
+ enum: ["salto_ks_subscription_limit_almost_reached"],
3817
+ type: "string"
3818
+ }
3819
+ },
3820
+ required: ["created_at", "message", "warning_code"],
3821
+ type: "object"
3801
3822
  },
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"
3823
+ {
3824
+ properties: {
3825
+ created_at: {
3826
+ description: "Date and time at which Seam created the warning.",
3827
+ format: "date-time",
3828
+ type: "string"
3829
+ },
3830
+ message: {
3831
+ description: "Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.",
3832
+ type: "string"
3833
+ },
3834
+ warning_code: {
3835
+ 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.",
3836
+ enum: ["time_zone_does_not_match_location"],
3837
+ type: "string"
3838
+ }
3839
+ },
3840
+ required: ["created_at", "message", "warning_code"],
3841
+ type: "object"
3806
3842
  }
3807
- },
3808
- required: ["created_at", "message", "warning_code"],
3809
- type: "object"
3843
+ ]
3810
3844
  },
3811
3845
  type: "array"
3812
3846
  },
@@ -6777,6 +6811,7 @@ var openapi_default = {
6777
6811
  },
6778
6812
  created_at: { format: "date-time", type: "string" },
6779
6813
  device_count: { format: "float", type: "number" },
6814
+ expires_at: { format: "date-time", type: "string" },
6780
6815
  token: { type: "string" },
6781
6816
  user_identifier_key: { nullable: true, type: "string" },
6782
6817
  user_identity_ids: {
@@ -6789,6 +6824,7 @@ var openapi_default = {
6789
6824
  "client_session_id",
6790
6825
  "workspace_id",
6791
6826
  "created_at",
6827
+ "expires_at",
6792
6828
  "token",
6793
6829
  "user_identifier_key",
6794
6830
  "device_count",
@@ -7703,15 +7739,10 @@ var openapi_default = {
7703
7739
  },
7704
7740
  tado_metadata: {
7705
7741
  properties: {
7706
- device_name: { type: "string" },
7707
7742
  device_type: { type: "string" },
7708
- serial_number: { type: "string" }
7743
+ serial_no: { type: "string" }
7709
7744
  },
7710
- required: [
7711
- "serial_number",
7712
- "device_name",
7713
- "device_type"
7714
- ],
7745
+ required: ["serial_no", "device_type"],
7715
7746
  type: "object"
7716
7747
  },
7717
7748
  tedee_metadata: {
@@ -8374,7 +8405,8 @@ var openapi_default = {
8374
8405
  "akiles",
8375
8406
  "assa_abloy_vostio",
8376
8407
  "assa_abloy_vostio_credential_service",
8377
- "tado"
8408
+ "tado",
8409
+ "salto_space"
8378
8410
  ],
8379
8411
  type: "string"
8380
8412
  },
@@ -10958,7 +10990,7 @@ var openapi_default = {
10958
10990
  enum: [
10959
10991
  "pti_unit",
10960
10992
  "pti_access_level",
10961
- "salto_access_group",
10993
+ "salto_ks_access_group",
10962
10994
  "brivo_group"
10963
10995
  ],
10964
10996
  type: "string",
@@ -10990,7 +11022,7 @@ var openapi_default = {
10990
11022
  enum: [
10991
11023
  "pti_unit",
10992
11024
  "pti_access_level",
10993
- "salto_access_group",
11025
+ "salto_ks_access_group",
10994
11026
  "brivo_group"
10995
11027
  ],
10996
11028
  type: "string"
@@ -11090,7 +11122,7 @@ var openapi_default = {
11090
11122
  enum: [
11091
11123
  "pti_unit",
11092
11124
  "pti_access_level",
11093
- "salto_access_group",
11125
+ "salto_ks_access_group",
11094
11126
  "brivo_group"
11095
11127
  ],
11096
11128
  type: "string",
@@ -11122,7 +11154,7 @@ var openapi_default = {
11122
11154
  enum: [
11123
11155
  "pti_unit",
11124
11156
  "pti_access_level",
11125
- "salto_access_group",
11157
+ "salto_ks_access_group",
11126
11158
  "brivo_group"
11127
11159
  ],
11128
11160
  type: "string"
@@ -15700,6 +15732,7 @@ var openapi_default = {
15700
15732
  "assa_abloy_vostio",
15701
15733
  "assa_abloy_vostio_credential_service",
15702
15734
  "tado",
15735
+ "salto_space",
15703
15736
  "yale_access",
15704
15737
  "hid_cm",
15705
15738
  "google_nest"