@seamapi/types 1.292.1 → 1.293.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 (34) hide show
  1. package/dist/connect.cjs +148 -24
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +160 -518
  4. package/lib/seam/connect/models/acs/metadata/{assa_abloy_vostio.js → assa-abloy-vostio.js} +1 -1
  5. package/lib/seam/connect/models/acs/metadata/{assa_abloy_vostio.js.map → assa-abloy-vostio.js.map} +1 -1
  6. package/lib/seam/connect/models/acs/metadata/{dormakaba_community.js → dormakaba-community.js} +1 -1
  7. package/lib/seam/connect/models/acs/metadata/{dormakaba_community.js.map → dormakaba-community.js.map} +1 -1
  8. package/lib/seam/connect/models/acs/metadata/index.d.ts +2 -2
  9. package/lib/seam/connect/models/acs/metadata/index.js +2 -2
  10. package/lib/seam/connect/models/devices/capability-properties/index.d.ts +5 -0
  11. package/lib/seam/connect/models/devices/capability-properties/thermostat.d.ts +5 -0
  12. package/lib/seam/connect/models/devices/device.d.ts +7 -0
  13. package/lib/seam/connect/models/devices/phone.d.ts +5 -0
  14. package/lib/seam/connect/models/devices/unmanaged-device.d.ts +5 -0
  15. package/lib/seam/connect/models/thermostats/thermostat-schedule.d.ts +3 -0
  16. package/lib/seam/connect/models/thermostats/thermostat-schedule.js +8 -0
  17. package/lib/seam/connect/models/thermostats/thermostat-schedule.js.map +1 -1
  18. package/lib/seam/connect/openapi.d.ts +86 -9
  19. package/lib/seam/connect/openapi.js +102 -18
  20. package/lib/seam/connect/openapi.js.map +1 -1
  21. package/lib/seam/connect/route-types.d.ts +268 -719
  22. package/lib/seam/connect/schemas.d.ts +1 -1
  23. package/lib/seam/connect/schemas.js +1 -1
  24. package/lib/seam/connect/schemas.js.map +1 -1
  25. package/package.json +1 -1
  26. package/src/lib/seam/connect/models/acs/metadata/index.ts +2 -2
  27. package/src/lib/seam/connect/models/thermostats/thermostat-schedule.ts +10 -0
  28. package/src/lib/seam/connect/openapi.ts +114 -18
  29. package/src/lib/seam/connect/route-types.ts +271 -905
  30. package/src/lib/seam/connect/schemas.ts +1 -0
  31. /package/lib/seam/connect/models/acs/metadata/{assa_abloy_vostio.d.ts → assa-abloy-vostio.d.ts} +0 -0
  32. /package/lib/seam/connect/models/acs/metadata/{dormakaba_community.d.ts → dormakaba-community.d.ts} +0 -0
  33. /package/src/lib/seam/connect/models/acs/metadata/{assa_abloy_vostio.ts → assa-abloy-vostio.ts} +0 -0
  34. /package/src/lib/seam/connect/models/acs/metadata/{dormakaba_community.ts → dormakaba-community.ts} +0 -0
package/dist/connect.cjs CHANGED
@@ -14,6 +14,7 @@ __export(schemas_exports, {
14
14
  access_code: () => access_code,
15
15
  acs_access_group: () => acs_access_group,
16
16
  acs_credential: () => acs_credential,
17
+ acs_encoder: () => acs_encoder,
17
18
  acs_entrance: () => acs_entrance,
18
19
  acs_system: () => acs_system,
19
20
  acs_user: () => acs_user,
@@ -179,6 +180,13 @@ var thermostat_schedule = zod.z.object({
179
180
  starts_at: zod.z.string().datetime().describe(
180
181
  "Date and time at which the thermostat schedule starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format."
181
182
  ),
183
+ unstable_is_override_allowed: zod.z.boolean().optional().describe(
184
+ `
185
+ ---
186
+ undocumented: Unstable
187
+ ---
188
+ Indicates whether a person at the thermostat can change the thermostat's settings.`
189
+ ),
182
190
  ends_at: zod.z.string().datetime().describe(
183
191
  "Date and time at which the thermostat schedule ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format."
184
192
  ),
@@ -1331,6 +1339,38 @@ var acs_credential_on_encoder = zod.z.object({
1331
1339
  common_acs_entrance_ids: zod.z.array(zod.z.string().uuid()).optional()
1332
1340
  }).optional().describe("Visionline-specific metadata for the credential.")
1333
1341
  });
1342
+ var common_acs_encoder_error = zod.z.object({
1343
+ created_at: zod.z.string().datetime().describe("Date and time at which Seam created the error."),
1344
+ message: zod.z.string().describe(
1345
+ "Detailed description of the error. Provides insights into the issue and potentially how to rectify it."
1346
+ )
1347
+ });
1348
+ var error_code_description = "Unique identifier of the type of error. Enables quick recognition and categorization of the issue.";
1349
+ var acs_encoder_removed = common_acs_encoder_error.extend({
1350
+ error_code: zod.z.literal("acs_encoder_removed").describe(error_code_description),
1351
+ _event_id: zod.z.string().uuid().describe(
1352
+ "ID of the event that was created when the `acs_encoder` was removed."
1353
+ )
1354
+ });
1355
+ var acs_encoder_error = (
1356
+ // z.union([
1357
+ acs_encoder_removed.describe("Error associated with the `acs_encoder`.")
1358
+ );
1359
+ zod.z.object({
1360
+ acs_encoder_removed: acs_encoder_removed.optional().nullable()
1361
+ });
1362
+ var acs_encoder = zod.z.object({
1363
+ acs_encoder_id: zod.z.string().uuid().describe("ID of the `acs_encoder`."),
1364
+ acs_system_id: zod.z.string().uuid().describe(
1365
+ "ID of the access control system that contains the `acs_encoder`."
1366
+ ),
1367
+ workspace_id: zod.z.string().uuid().describe(
1368
+ "ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) that contains the `acs_system`."
1369
+ ),
1370
+ errors: zod.z.array(acs_encoder_error).describe("Errors associated with the `acs_encoder`."),
1371
+ created_at: zod.z.string().datetime().describe("Date and time at which the `acs_encoder` was created."),
1372
+ display_name: zod.z.string().describe("Display name for the `acs_encoder`.")
1373
+ });
1334
1374
  var acs_entrance = zod.z.object({
1335
1375
  acs_system_id: zod.z.string().uuid().describe("ID of the access control system that contains the entrance."),
1336
1376
  acs_entrance_id: zod.z.string().uuid().describe("ID of the entrance."),
@@ -1387,29 +1427,29 @@ var common_acs_system_error = zod.z.object({
1387
1427
  "Detailed description of the error. Provides insights into the issue and potentially how to rectify it."
1388
1428
  )
1389
1429
  });
1390
- var error_code_description = "Unique identifier of the type of error. Enables quick recognition and categorization of the issue.";
1430
+ var error_code_description2 = "Unique identifier of the type of error. Enables quick recognition and categorization of the issue.";
1391
1431
  var seam_bridge_disconnected = common_acs_system_error.extend({
1392
- error_code: zod.z.literal("seam_bridge_disconnected").describe(error_code_description)
1432
+ error_code: zod.z.literal("seam_bridge_disconnected").describe(error_code_description2)
1393
1433
  }).describe(`Indicates that the Seam API cannot communicate with the [Seam Bridge](https://docs.seam.co/latest/capability-guides/seam-bridge), for example, if the Seam Bridge executable has stopped or if the computer running the Seam Bridge executable is offline.
1394
1434
  This error might also occur if the Seam Bridge is connected to the wrong [workspace](https://docs.seam.co/latest/core-concepts/workspaces).
1395
1435
  See also [Troubleshooting Your Access Control System](https://docs.seam.co/latest/capability-guides/capability-guides/access-systems/troubleshooting-your-access-control-system#acs_system.errors.seam_bridge_disconnected).`);
1396
1436
  var visionline_instance_unreachable = common_acs_system_error.extend({
1397
- error_code: zod.z.literal("visionline_instance_unreachable").describe(error_code_description)
1437
+ error_code: zod.z.literal("visionline_instance_unreachable").describe(error_code_description2)
1398
1438
  }).describe(`Indicates that the Seam Bridge is functioning correctly and the Seam API can communicate with the Seam Bridge, but the Seam API cannot connect to the on-premises [Visionline access control system](https://docs.seam.co/latest/device-and-system-integration-guides/assa-abloy-visionline-access-control-system).
1399
1439
  For example, the IP address of the on-premises access control system may be set incorrectly within the Seam [workspace](https://docs.seam.co/latest/core-concepts/workspaces).
1400
1440
  See also [Troubleshooting Your Access Control System](https://docs.seam.co/latest/capability-guides/capability-guides/access-systems/troubleshooting-your-access-control-system#acs_system.errors.visionline_instance_unreachable).`);
1401
1441
  var salto_ks_subscription_limit_exceeded = common_acs_system_error.extend({
1402
- error_code: zod.z.literal("salto_ks_subscription_limit_exceeded").describe(error_code_description)
1442
+ error_code: zod.z.literal("salto_ks_subscription_limit_exceeded").describe(error_code_description2)
1403
1443
  }).describe(
1404
1444
  "Indicates that the maximum number of users allowed for the site has been reached. This means that new access codes cannot be created. Contact Salto support to increase the user limit."
1405
1445
  );
1406
1446
  var acs_system_disconnected = common_acs_system_error.extend({
1407
- error_code: zod.z.literal("acs_system_disconnected").describe(error_code_description)
1447
+ error_code: zod.z.literal("acs_system_disconnected").describe(error_code_description2)
1408
1448
  }).describe(
1409
1449
  "Indicates that the access system has been disconnected. See [this guide](https://docs.seam.co/latest/capability-guides/access-systems/troubleshooting-your-access-control-system guide) to resolve the issue."
1410
1450
  );
1411
1451
  var account_disconnected = common_acs_system_error.extend({
1412
- error_code: zod.z.literal("account_disconnected").describe(error_code_description)
1452
+ error_code: zod.z.literal("account_disconnected").describe(error_code_description2)
1413
1453
  }).describe(
1414
1454
  "Indicates that the login credentials are invalid. Reconnect the account using the Connect Webview to restore access."
1415
1455
  );
@@ -7218,6 +7258,11 @@ var openapi_default = {
7218
7258
  description: "ID of the thermostat schedule.",
7219
7259
  format: "uuid",
7220
7260
  type: "string"
7261
+ },
7262
+ unstable_is_override_allowed: {
7263
+ description: "Indicates whether a person at the thermostat can change the thermostat's settings.",
7264
+ type: "boolean",
7265
+ "x-undocumented": "Unstable"
7221
7266
  }
7222
7267
  },
7223
7268
  required: [
@@ -7967,6 +8012,11 @@ var openapi_default = {
7967
8012
  description: "ID of the thermostat schedule.",
7968
8013
  format: "uuid",
7969
8014
  type: "string"
8015
+ },
8016
+ unstable_is_override_allowed: {
8017
+ description: "Indicates whether a person at the thermostat can change the thermostat's settings.",
8018
+ type: "boolean",
8019
+ "x-undocumented": "Unstable"
7970
8020
  }
7971
8021
  },
7972
8022
  required: [
@@ -11779,13 +11829,13 @@ var openapi_default = {
11779
11829
  format: "uuid",
11780
11830
  type: "string"
11781
11831
  },
11782
- device_id: {
11783
- description: "ID of the encoder to use for the encoding.",
11832
+ acs_encoder_id: {
11833
+ description: "ID of the acs_encoder to use for the encoding.",
11784
11834
  format: "uuid",
11785
11835
  type: "string"
11786
11836
  }
11787
11837
  },
11788
- required: ["device_id", "acs_credential_id"],
11838
+ required: ["acs_encoder_id", "acs_credential_id"],
11789
11839
  type: "object"
11790
11840
  }
11791
11841
  }
@@ -11836,28 +11886,28 @@ var openapi_default = {
11836
11886
  oneOf: [
11837
11887
  {
11838
11888
  properties: {
11839
- acs_system_ids: {
11889
+ acs_encoder_ids: {
11840
11890
  items: { format: "uuid", type: "string" },
11841
11891
  type: "array"
11842
11892
  },
11843
- device_ids: {
11893
+ acs_system_ids: {
11844
11894
  items: { format: "uuid", type: "string" },
11845
11895
  type: "array"
11846
11896
  },
11847
11897
  limit: { default: 500, format: "float", type: "number" }
11848
11898
  },
11849
- required: ["acs_system_ids", "device_ids"],
11899
+ required: ["acs_system_ids", "acs_encoder_ids"],
11850
11900
  type: "object"
11851
11901
  },
11852
11902
  {
11853
11903
  properties: {
11854
- device_ids: {
11904
+ acs_encoder_ids: {
11855
11905
  items: { format: "uuid", type: "string" },
11856
11906
  type: "array"
11857
11907
  },
11858
11908
  limit: { default: 500, format: "float", type: "number" }
11859
11909
  },
11860
- required: ["device_ids"],
11910
+ required: ["acs_encoder_ids"],
11861
11911
  type: "object"
11862
11912
  },
11863
11913
  {
@@ -11882,13 +11932,84 @@ var openapi_default = {
11882
11932
  "application/json": {
11883
11933
  schema: {
11884
11934
  properties: {
11885
- devices: {
11886
- items: { $ref: "#/components/schemas/device" },
11935
+ acs_encoders: {
11936
+ items: {
11937
+ properties: {
11938
+ acs_encoder_id: {
11939
+ description: "ID of the `acs_encoder`.",
11940
+ format: "uuid",
11941
+ type: "string"
11942
+ },
11943
+ acs_system_id: {
11944
+ description: "ID of the access control system that contains the `acs_encoder`.",
11945
+ format: "uuid",
11946
+ type: "string"
11947
+ },
11948
+ created_at: {
11949
+ description: "Date and time at which the `acs_encoder` was created.",
11950
+ format: "date-time",
11951
+ type: "string"
11952
+ },
11953
+ display_name: {
11954
+ description: "Display name for the `acs_encoder`.",
11955
+ type: "string"
11956
+ },
11957
+ errors: {
11958
+ description: "Errors associated with the `acs_encoder`.",
11959
+ items: {
11960
+ description: "Error associated with the `acs_encoder`.",
11961
+ properties: {
11962
+ _event_id: {
11963
+ description: "ID of the event that was created when the `acs_encoder` was removed.",
11964
+ format: "uuid",
11965
+ type: "string"
11966
+ },
11967
+ created_at: {
11968
+ description: "Date and time at which Seam created the error.",
11969
+ format: "date-time",
11970
+ type: "string"
11971
+ },
11972
+ error_code: {
11973
+ description: "Unique identifier of the type of error. Enables quick recognition and categorization of the issue.",
11974
+ enum: ["acs_encoder_removed"],
11975
+ type: "string"
11976
+ },
11977
+ message: {
11978
+ description: "Detailed description of the error. Provides insights into the issue and potentially how to rectify it.",
11979
+ type: "string"
11980
+ }
11981
+ },
11982
+ required: [
11983
+ "created_at",
11984
+ "message",
11985
+ "error_code",
11986
+ "_event_id"
11987
+ ],
11988
+ type: "object"
11989
+ },
11990
+ type: "array"
11991
+ },
11992
+ workspace_id: {
11993
+ description: "ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) that contains the `acs_system`.",
11994
+ format: "uuid",
11995
+ type: "string"
11996
+ }
11997
+ },
11998
+ required: [
11999
+ "acs_encoder_id",
12000
+ "acs_system_id",
12001
+ "workspace_id",
12002
+ "errors",
12003
+ "created_at",
12004
+ "display_name"
12005
+ ],
12006
+ type: "object"
12007
+ },
11887
12008
  type: "array"
11888
12009
  },
11889
12010
  ok: { type: "boolean" }
11890
12011
  },
11891
- required: ["devices", "ok"],
12012
+ required: ["acs_encoders", "ok"],
11892
12013
  type: "object"
11893
12014
  }
11894
12015
  }
@@ -11907,8 +12028,8 @@ var openapi_default = {
11907
12028
  tags: ["/acs"],
11908
12029
  "x-fern-sdk-group-name": ["acs", "encoders"],
11909
12030
  "x-fern-sdk-method-name": "list",
11910
- "x-fern-sdk-return-value": "devices",
11911
- "x-response-key": "devices",
12031
+ "x-fern-sdk-return-value": "acs_encoders",
12032
+ "x-response-key": "acs_encoders",
11912
12033
  "x-undocumented": "Encoders are in alpha."
11913
12034
  }
11914
12035
  },
@@ -11920,18 +12041,18 @@ var openapi_default = {
11920
12041
  "application/json": {
11921
12042
  schema: {
11922
12043
  properties: {
11923
- acs_system_id: {
11924
- description: "ID of the acs_system the encoder belongs to.",
12044
+ acs_encoder_id: {
12045
+ description: "ID of the acs_encoder to use for the scan.",
11925
12046
  format: "uuid",
11926
12047
  type: "string"
11927
12048
  },
11928
- device_id: {
11929
- description: "ID of the encoder to use for the scan.",
12049
+ acs_system_id: {
12050
+ description: "ID of the acs_system the encoder belongs to.",
11930
12051
  format: "uuid",
11931
12052
  type: "string"
11932
12053
  }
11933
12054
  },
11934
- required: ["acs_system_id", "device_id"],
12055
+ required: ["acs_system_id", "acs_encoder_id"],
11935
12056
  type: "object"
11936
12057
  }
11937
12058
  }
@@ -18729,6 +18850,7 @@ var openapi_default = {
18729
18850
  description: "Date and time at which the thermostat schedule ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.",
18730
18851
  type: "string"
18731
18852
  },
18853
+ is_override_allowed: { default: false, type: "boolean" },
18732
18854
  max_override_period_minutes: {
18733
18855
  default: 0,
18734
18856
  description: "Number of minutes for which a person at the thermostat can change the thermostat's settings after the activation of the scheduled climate preset. See also [Specifying Manual Override Permissions](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-thermostat-schedules#specifying-manual-override-permissions).",
@@ -18980,6 +19102,7 @@ var openapi_default = {
18980
19102
  description: "Date and time at which the thermostat schedule ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.",
18981
19103
  type: "string"
18982
19104
  },
19105
+ is_override_allowed: { type: "boolean" },
18983
19106
  max_override_period_minutes: {
18984
19107
  description: "Number of minutes for which a person at the thermostat can change the thermostat's settings after the activation of the scheduled climate preset. See also [Specifying Manual Override Permissions](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-thermostat-schedules#specifying-manual-override-permissions).",
18985
19108
  minimum: 0,
@@ -19049,6 +19172,7 @@ var openapi_default = {
19049
19172
  description: "Date and time at which the thermostat schedule ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.",
19050
19173
  type: "string"
19051
19174
  },
19175
+ is_override_allowed: { type: "boolean" },
19052
19176
  max_override_period_minutes: {
19053
19177
  description: "Number of minutes for which a person at the thermostat can change the thermostat's settings after the activation of the scheduled climate preset. See also [Specifying Manual Override Permissions](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-thermostat-schedules#specifying-manual-override-permissions).",
19054
19178
  minimum: 0,