@seamapi/types 1.292.1 → 1.292.2

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.
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,
@@ -1331,6 +1332,38 @@ var acs_credential_on_encoder = zod.z.object({
1331
1332
  common_acs_entrance_ids: zod.z.array(zod.z.string().uuid()).optional()
1332
1333
  }).optional().describe("Visionline-specific metadata for the credential.")
1333
1334
  });
1335
+ var common_acs_encoder_error = zod.z.object({
1336
+ created_at: zod.z.string().datetime().describe("Date and time at which Seam created the error."),
1337
+ message: zod.z.string().describe(
1338
+ "Detailed description of the error. Provides insights into the issue and potentially how to rectify it."
1339
+ )
1340
+ });
1341
+ var error_code_description = "Unique identifier of the type of error. Enables quick recognition and categorization of the issue.";
1342
+ var acs_encoder_removed = common_acs_encoder_error.extend({
1343
+ error_code: zod.z.literal("acs_encoder_removed").describe(error_code_description),
1344
+ _event_id: zod.z.string().uuid().describe(
1345
+ "ID of the event that was created when the `acs_encoder` was removed."
1346
+ )
1347
+ });
1348
+ var acs_encoder_error = (
1349
+ // z.union([
1350
+ acs_encoder_removed.describe("Error associated with the `acs_encoder`.")
1351
+ );
1352
+ zod.z.object({
1353
+ acs_encoder_removed: acs_encoder_removed.optional().nullable()
1354
+ });
1355
+ var acs_encoder = zod.z.object({
1356
+ acs_encoder_id: zod.z.string().uuid().describe("ID of the `acs_encoder`."),
1357
+ acs_system_id: zod.z.string().uuid().describe(
1358
+ "ID of the access control system that contains the `acs_encoder`."
1359
+ ),
1360
+ workspace_id: zod.z.string().uuid().describe(
1361
+ "ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) that contains the `acs_system`."
1362
+ ),
1363
+ errors: zod.z.array(acs_encoder_error).describe("Errors associated with the `acs_encoder`."),
1364
+ created_at: zod.z.string().datetime().describe("Date and time at which the `acs_encoder` was created."),
1365
+ display_name: zod.z.string().describe("Display name for the `acs_encoder`.")
1366
+ });
1334
1367
  var acs_entrance = zod.z.object({
1335
1368
  acs_system_id: zod.z.string().uuid().describe("ID of the access control system that contains the entrance."),
1336
1369
  acs_entrance_id: zod.z.string().uuid().describe("ID of the entrance."),
@@ -1387,29 +1420,29 @@ var common_acs_system_error = zod.z.object({
1387
1420
  "Detailed description of the error. Provides insights into the issue and potentially how to rectify it."
1388
1421
  )
1389
1422
  });
1390
- var error_code_description = "Unique identifier of the type of error. Enables quick recognition and categorization of the issue.";
1423
+ var error_code_description2 = "Unique identifier of the type of error. Enables quick recognition and categorization of the issue.";
1391
1424
  var seam_bridge_disconnected = common_acs_system_error.extend({
1392
- error_code: zod.z.literal("seam_bridge_disconnected").describe(error_code_description)
1425
+ error_code: zod.z.literal("seam_bridge_disconnected").describe(error_code_description2)
1393
1426
  }).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
1427
  This error might also occur if the Seam Bridge is connected to the wrong [workspace](https://docs.seam.co/latest/core-concepts/workspaces).
1395
1428
  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
1429
  var visionline_instance_unreachable = common_acs_system_error.extend({
1397
- error_code: zod.z.literal("visionline_instance_unreachable").describe(error_code_description)
1430
+ error_code: zod.z.literal("visionline_instance_unreachable").describe(error_code_description2)
1398
1431
  }).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
1432
  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
1433
  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
1434
  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)
1435
+ error_code: zod.z.literal("salto_ks_subscription_limit_exceeded").describe(error_code_description2)
1403
1436
  }).describe(
1404
1437
  "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
1438
  );
1406
1439
  var acs_system_disconnected = common_acs_system_error.extend({
1407
- error_code: zod.z.literal("acs_system_disconnected").describe(error_code_description)
1440
+ error_code: zod.z.literal("acs_system_disconnected").describe(error_code_description2)
1408
1441
  }).describe(
1409
1442
  "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
1443
  );
1411
1444
  var account_disconnected = common_acs_system_error.extend({
1412
- error_code: zod.z.literal("account_disconnected").describe(error_code_description)
1445
+ error_code: zod.z.literal("account_disconnected").describe(error_code_description2)
1413
1446
  }).describe(
1414
1447
  "Indicates that the login credentials are invalid. Reconnect the account using the Connect Webview to restore access."
1415
1448
  );
@@ -11779,13 +11812,13 @@ var openapi_default = {
11779
11812
  format: "uuid",
11780
11813
  type: "string"
11781
11814
  },
11782
- device_id: {
11783
- description: "ID of the encoder to use for the encoding.",
11815
+ acs_encoder_id: {
11816
+ description: "ID of the acs_encoder to use for the encoding.",
11784
11817
  format: "uuid",
11785
11818
  type: "string"
11786
11819
  }
11787
11820
  },
11788
- required: ["device_id", "acs_credential_id"],
11821
+ required: ["acs_encoder_id", "acs_credential_id"],
11789
11822
  type: "object"
11790
11823
  }
11791
11824
  }
@@ -11836,28 +11869,28 @@ var openapi_default = {
11836
11869
  oneOf: [
11837
11870
  {
11838
11871
  properties: {
11839
- acs_system_ids: {
11872
+ acs_encoder_ids: {
11840
11873
  items: { format: "uuid", type: "string" },
11841
11874
  type: "array"
11842
11875
  },
11843
- device_ids: {
11876
+ acs_system_ids: {
11844
11877
  items: { format: "uuid", type: "string" },
11845
11878
  type: "array"
11846
11879
  },
11847
11880
  limit: { default: 500, format: "float", type: "number" }
11848
11881
  },
11849
- required: ["acs_system_ids", "device_ids"],
11882
+ required: ["acs_system_ids", "acs_encoder_ids"],
11850
11883
  type: "object"
11851
11884
  },
11852
11885
  {
11853
11886
  properties: {
11854
- device_ids: {
11887
+ acs_encoder_ids: {
11855
11888
  items: { format: "uuid", type: "string" },
11856
11889
  type: "array"
11857
11890
  },
11858
11891
  limit: { default: 500, format: "float", type: "number" }
11859
11892
  },
11860
- required: ["device_ids"],
11893
+ required: ["acs_encoder_ids"],
11861
11894
  type: "object"
11862
11895
  },
11863
11896
  {
@@ -11882,13 +11915,84 @@ var openapi_default = {
11882
11915
  "application/json": {
11883
11916
  schema: {
11884
11917
  properties: {
11885
- devices: {
11886
- items: { $ref: "#/components/schemas/device" },
11918
+ acs_encoders: {
11919
+ items: {
11920
+ properties: {
11921
+ acs_encoder_id: {
11922
+ description: "ID of the `acs_encoder`.",
11923
+ format: "uuid",
11924
+ type: "string"
11925
+ },
11926
+ acs_system_id: {
11927
+ description: "ID of the access control system that contains the `acs_encoder`.",
11928
+ format: "uuid",
11929
+ type: "string"
11930
+ },
11931
+ created_at: {
11932
+ description: "Date and time at which the `acs_encoder` was created.",
11933
+ format: "date-time",
11934
+ type: "string"
11935
+ },
11936
+ display_name: {
11937
+ description: "Display name for the `acs_encoder`.",
11938
+ type: "string"
11939
+ },
11940
+ errors: {
11941
+ description: "Errors associated with the `acs_encoder`.",
11942
+ items: {
11943
+ description: "Error associated with the `acs_encoder`.",
11944
+ properties: {
11945
+ _event_id: {
11946
+ description: "ID of the event that was created when the `acs_encoder` was removed.",
11947
+ format: "uuid",
11948
+ type: "string"
11949
+ },
11950
+ created_at: {
11951
+ description: "Date and time at which Seam created the error.",
11952
+ format: "date-time",
11953
+ type: "string"
11954
+ },
11955
+ error_code: {
11956
+ description: "Unique identifier of the type of error. Enables quick recognition and categorization of the issue.",
11957
+ enum: ["acs_encoder_removed"],
11958
+ type: "string"
11959
+ },
11960
+ message: {
11961
+ description: "Detailed description of the error. Provides insights into the issue and potentially how to rectify it.",
11962
+ type: "string"
11963
+ }
11964
+ },
11965
+ required: [
11966
+ "created_at",
11967
+ "message",
11968
+ "error_code",
11969
+ "_event_id"
11970
+ ],
11971
+ type: "object"
11972
+ },
11973
+ type: "array"
11974
+ },
11975
+ workspace_id: {
11976
+ description: "ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) that contains the `acs_system`.",
11977
+ format: "uuid",
11978
+ type: "string"
11979
+ }
11980
+ },
11981
+ required: [
11982
+ "acs_encoder_id",
11983
+ "acs_system_id",
11984
+ "workspace_id",
11985
+ "errors",
11986
+ "created_at",
11987
+ "display_name"
11988
+ ],
11989
+ type: "object"
11990
+ },
11887
11991
  type: "array"
11888
11992
  },
11889
11993
  ok: { type: "boolean" }
11890
11994
  },
11891
- required: ["devices", "ok"],
11995
+ required: ["acs_encoders", "ok"],
11892
11996
  type: "object"
11893
11997
  }
11894
11998
  }
@@ -11907,8 +12011,8 @@ var openapi_default = {
11907
12011
  tags: ["/acs"],
11908
12012
  "x-fern-sdk-group-name": ["acs", "encoders"],
11909
12013
  "x-fern-sdk-method-name": "list",
11910
- "x-fern-sdk-return-value": "devices",
11911
- "x-response-key": "devices",
12014
+ "x-fern-sdk-return-value": "acs_encoders",
12015
+ "x-response-key": "acs_encoders",
11912
12016
  "x-undocumented": "Encoders are in alpha."
11913
12017
  }
11914
12018
  },
@@ -11920,18 +12024,18 @@ var openapi_default = {
11920
12024
  "application/json": {
11921
12025
  schema: {
11922
12026
  properties: {
11923
- acs_system_id: {
11924
- description: "ID of the acs_system the encoder belongs to.",
12027
+ acs_encoder_id: {
12028
+ description: "ID of the acs_encoder to use for the scan.",
11925
12029
  format: "uuid",
11926
12030
  type: "string"
11927
12031
  },
11928
- device_id: {
11929
- description: "ID of the encoder to use for the scan.",
12032
+ acs_system_id: {
12033
+ description: "ID of the acs_system the encoder belongs to.",
11930
12034
  format: "uuid",
11931
12035
  type: "string"
11932
12036
  }
11933
12037
  },
11934
- required: ["acs_system_id", "device_id"],
12038
+ required: ["acs_system_id", "acs_encoder_id"],
11935
12039
  type: "object"
11936
12040
  }
11937
12041
  }