@seamapi/types 1.374.0 → 1.375.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.
package/dist/connect.cjs CHANGED
@@ -482,7 +482,8 @@ var custom_metadata = zod.z.record(
482
482
  var common_connected_account_error = zod.z.object({
483
483
  created_at: zod.z.string().datetime().describe("Date and time at which Seam created the error."),
484
484
  message: zod.z.string(),
485
- is_connected_account_error: zod.z.literal(true)
485
+ is_connected_account_error: zod.z.boolean().optional(),
486
+ is_bridge_error: zod.z.boolean().optional()
486
487
  });
487
488
  var error_code_description = "Unique identifier of the type of error. Enables quick recognition and categorization of the issue.";
488
489
  var warning_code_description = "Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.";
@@ -496,6 +497,10 @@ var account_disconnected = common_connected_account_error.extend({
496
497
  var invalid_credentials = common_connected_account_error.extend({
497
498
  error_code: zod.z.literal("invalid_credentials").describe(error_code_description)
498
499
  }).describe("Credentials provided were invalid.");
500
+ var bridge_disconnected = common_connected_account_error.extend({
501
+ error_code: zod.z.literal("bridge_disconnected").describe(error_code_description)
502
+ }).describe(`Indicates that the Seam API cannot communicate with [Seam Bridge](https://docs.seam.co/latest/capability-guides/seam-bridge), for example, if Seam Bridge executable has stopped or if the computer running the Seam Bridge executable is offline.
503
+ See also [Troubleshooting Your Access Control System](https://docs.seam.co/latest/capability-guides/access-systems/troubleshooting-your-access-control-system#acs_system.errors.seam_bridge_disconnected).`);
499
504
  var salto_ks_subscription_limit_exceeded = common_connected_account_error.extend({
500
505
  error_code: zod.z.literal("salto_ks_subscription_limit_exceeded").describe(error_code_description),
501
506
  salto_ks_metadata: zod.z.object({
@@ -514,11 +519,13 @@ var salto_ks_subscription_limit_exceeded = common_connected_account_error.extend
514
519
  var connected_account_error = zod.z.discriminatedUnion("error_code", [
515
520
  account_disconnected,
516
521
  invalid_credentials,
522
+ bridge_disconnected,
517
523
  salto_ks_subscription_limit_exceeded
518
524
  ]);
519
525
  zod.z.object({
520
526
  account_disconnected: account_disconnected.nullable().optional(),
521
527
  invalid_credentials: invalid_credentials.nullable().optional(),
528
+ bridge_disconnected: bridge_disconnected.nullable().optional(),
522
529
  salto_ks_subscription_limit_exceeded: salto_ks_subscription_limit_exceeded.nullable().optional()
523
530
  });
524
531
  var unknown_issue_with_connected_account = common_connected_account_warning.extend({
@@ -2190,7 +2197,12 @@ var seam_bridge_disconnected = common_acs_system_error.extend({
2190
2197
  error_code: zod.z.literal("seam_bridge_disconnected").describe(error_code_description5)
2191
2198
  }).describe(`Indicates that the Seam API cannot communicate with [Seam Bridge](https://docs.seam.co/latest/capability-guides/seam-bridge), for example, if Seam Bridge executable has stopped or if the computer running the Seam Bridge executable is offline.
2192
2199
  This error might also occur if Seam Bridge is connected to the wrong [workspace](https://docs.seam.co/latest/core-concepts/workspaces).
2193
- 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).`);
2200
+ See also [Troubleshooting Your Access Control System](https://docs.seam.co/latest/capability-guides/access-systems/troubleshooting-your-access-control-system#acs_system.errors.seam_bridge_disconnected).`);
2201
+ var bridge_disconnected2 = common_acs_system_error.extend({
2202
+ error_code: zod.z.literal("bridge_disconnected").describe(error_code_description5),
2203
+ is_bridge_error: zod.z.boolean().optional()
2204
+ }).describe(`Indicates that the Seam API cannot communicate with [Seam Bridge](https://docs.seam.co/latest/capability-guides/seam-bridge), for example, if Seam Bridge executable has stopped or if the computer running the Seam Bridge executable is offline.
2205
+ See also [Troubleshooting Your Access Control System](https://docs.seam.co/latest/capability-guides/access-systems/troubleshooting-your-access-control-system#acs_system.errors.seam_bridge_disconnected).`);
2194
2206
  var visionline_instance_unreachable = common_acs_system_error.extend({
2195
2207
  error_code: zod.z.literal("visionline_instance_unreachable").describe(error_code_description5)
2196
2208
  }).describe(`Indicates that [Seam Bridge](https://docs.seam.co/latest/capability-guides/seam-bridge) is functioning correctly and the Seam API can communicate with 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).
@@ -2218,6 +2230,7 @@ var salto_ks_certification_expired = common_acs_system_error.extend({
2218
2230
  );
2219
2231
  var acs_system_error = zod.z.discriminatedUnion("error_code", [
2220
2232
  seam_bridge_disconnected,
2233
+ bridge_disconnected2,
2221
2234
  visionline_instance_unreachable,
2222
2235
  salto_ks_subscription_limit_exceeded3,
2223
2236
  acs_system_disconnected,
@@ -2228,6 +2241,7 @@ var acs_system_error = zod.z.discriminatedUnion("error_code", [
2228
2241
  );
2229
2242
  zod.z.object({
2230
2243
  seam_bridge_disconnected: seam_bridge_disconnected.optional().nullable(),
2244
+ bridge_disconnected: bridge_disconnected2.optional().nullable(),
2231
2245
  visionline_instance_unreachable: visionline_instance_unreachable.optional().nullable(),
2232
2246
  salto_ks_subscription_limit_exceeded: salto_ks_subscription_limit_exceeded3.optional().nullable(),
2233
2247
  acs_system_disconnected: acs_system_disconnected.optional().nullable(),
@@ -4868,18 +4882,31 @@ var openapi_default = {
4868
4882
  enum: ["invalid_credentials"],
4869
4883
  type: "string"
4870
4884
  },
4871
- is_connected_account_error: {
4872
- enum: [true],
4873
- type: "boolean"
4885
+ is_bridge_error: { type: "boolean" },
4886
+ is_connected_account_error: { type: "boolean" },
4887
+ message: { type: "string" }
4888
+ },
4889
+ required: ["created_at", "message", "error_code"],
4890
+ type: "object"
4891
+ },
4892
+ {
4893
+ description: "Indicates that the Seam API cannot communicate with [Seam Bridge](https://docs.seam.co/latest/capability-guides/seam-bridge), for example, if Seam Bridge executable has stopped or if the computer running the Seam Bridge executable is offline.\n See also [Troubleshooting Your Access Control System](https://docs.seam.co/latest/capability-guides/access-systems/troubleshooting-your-access-control-system#acs_system.errors.seam_bridge_disconnected).",
4894
+ properties: {
4895
+ created_at: {
4896
+ description: "Date and time at which Seam created the error.",
4897
+ format: "date-time",
4898
+ type: "string"
4899
+ },
4900
+ error_code: {
4901
+ description: "Unique identifier of the type of error. Enables quick recognition and categorization of the issue.",
4902
+ enum: ["bridge_disconnected"],
4903
+ type: "string"
4874
4904
  },
4905
+ is_bridge_error: { type: "boolean" },
4906
+ is_connected_account_error: { type: "boolean" },
4875
4907
  message: { type: "string" }
4876
4908
  },
4877
- required: [
4878
- "created_at",
4879
- "message",
4880
- "is_connected_account_error",
4881
- "error_code"
4882
- ],
4909
+ required: ["created_at", "message", "error_code"],
4883
4910
  type: "object"
4884
4911
  }
4885
4912
  ]
@@ -5873,7 +5900,7 @@ var openapi_default = {
5873
5900
  discriminator: { propertyName: "error_code" },
5874
5901
  oneOf: [
5875
5902
  {
5876
- description: "Indicates that the Seam API cannot communicate with [Seam Bridge](https://docs.seam.co/latest/capability-guides/seam-bridge), for example, if Seam Bridge executable has stopped or if the computer running the Seam Bridge executable is offline.\n This error might also occur if Seam Bridge is connected to the wrong [workspace](https://docs.seam.co/latest/core-concepts/workspaces).\n 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).",
5903
+ description: "Indicates that the Seam API cannot communicate with [Seam Bridge](https://docs.seam.co/latest/capability-guides/seam-bridge), for example, if Seam Bridge executable has stopped or if the computer running the Seam Bridge executable is offline.\n This error might also occur if Seam Bridge is connected to the wrong [workspace](https://docs.seam.co/latest/core-concepts/workspaces).\n See also [Troubleshooting Your Access Control System](https://docs.seam.co/latest/capability-guides/access-systems/troubleshooting-your-access-control-system#acs_system.errors.seam_bridge_disconnected).",
5877
5904
  properties: {
5878
5905
  created_at: {
5879
5906
  description: "Date and time at which Seam created the error.",
@@ -5893,6 +5920,28 @@ var openapi_default = {
5893
5920
  required: ["created_at", "message", "error_code"],
5894
5921
  type: "object"
5895
5922
  },
5923
+ {
5924
+ description: "Indicates that the Seam API cannot communicate with [Seam Bridge](https://docs.seam.co/latest/capability-guides/seam-bridge), for example, if Seam Bridge executable has stopped or if the computer running the Seam Bridge executable is offline.\n See also [Troubleshooting Your Access Control System](https://docs.seam.co/latest/capability-guides/access-systems/troubleshooting-your-access-control-system#acs_system.errors.seam_bridge_disconnected).",
5925
+ properties: {
5926
+ created_at: {
5927
+ description: "Date and time at which Seam created the error.",
5928
+ format: "date-time",
5929
+ type: "string"
5930
+ },
5931
+ error_code: {
5932
+ description: "Unique identifier of the type of error. Enables quick recognition and categorization of the issue.",
5933
+ enum: ["bridge_disconnected"],
5934
+ type: "string"
5935
+ },
5936
+ is_bridge_error: { type: "boolean" },
5937
+ message: {
5938
+ description: "Detailed description of the error. Provides insights into the issue and potentially how to rectify it.",
5939
+ type: "string"
5940
+ }
5941
+ },
5942
+ required: ["created_at", "message", "error_code"],
5943
+ type: "object"
5944
+ },
5896
5945
  {
5897
5946
  description: "Indicates that [Seam Bridge](https://docs.seam.co/latest/capability-guides/seam-bridge) is functioning correctly and the Seam API can communicate with 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).\n 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).\n 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).",
5898
5947
  properties: {
@@ -9707,18 +9756,11 @@ var openapi_default = {
9707
9756
  enum: ["account_disconnected"],
9708
9757
  type: "string"
9709
9758
  },
9710
- is_connected_account_error: {
9711
- enum: [true],
9712
- type: "boolean"
9713
- },
9759
+ is_bridge_error: { type: "boolean" },
9760
+ is_connected_account_error: { type: "boolean" },
9714
9761
  message: { type: "string" }
9715
9762
  },
9716
- required: [
9717
- "created_at",
9718
- "message",
9719
- "is_connected_account_error",
9720
- "error_code"
9721
- ],
9763
+ required: ["created_at", "message", "error_code"],
9722
9764
  type: "object"
9723
9765
  },
9724
9766
  {
@@ -9734,18 +9776,31 @@ var openapi_default = {
9734
9776
  enum: ["invalid_credentials"],
9735
9777
  type: "string"
9736
9778
  },
9737
- is_connected_account_error: {
9738
- enum: [true],
9739
- type: "boolean"
9779
+ is_bridge_error: { type: "boolean" },
9780
+ is_connected_account_error: { type: "boolean" },
9781
+ message: { type: "string" }
9782
+ },
9783
+ required: ["created_at", "message", "error_code"],
9784
+ type: "object"
9785
+ },
9786
+ {
9787
+ description: "Indicates that the Seam API cannot communicate with [Seam Bridge](https://docs.seam.co/latest/capability-guides/seam-bridge), for example, if Seam Bridge executable has stopped or if the computer running the Seam Bridge executable is offline.\n See also [Troubleshooting Your Access Control System](https://docs.seam.co/latest/capability-guides/access-systems/troubleshooting-your-access-control-system#acs_system.errors.seam_bridge_disconnected).",
9788
+ properties: {
9789
+ created_at: {
9790
+ description: "Date and time at which Seam created the error.",
9791
+ format: "date-time",
9792
+ type: "string"
9740
9793
  },
9794
+ error_code: {
9795
+ description: "Unique identifier of the type of error. Enables quick recognition and categorization of the issue.",
9796
+ enum: ["bridge_disconnected"],
9797
+ type: "string"
9798
+ },
9799
+ is_bridge_error: { type: "boolean" },
9800
+ is_connected_account_error: { type: "boolean" },
9741
9801
  message: { type: "string" }
9742
9802
  },
9743
- required: [
9744
- "created_at",
9745
- "message",
9746
- "is_connected_account_error",
9747
- "error_code"
9748
- ],
9803
+ required: ["created_at", "message", "error_code"],
9749
9804
  type: "object"
9750
9805
  },
9751
9806
  {
@@ -9761,10 +9816,8 @@ var openapi_default = {
9761
9816
  enum: ["salto_ks_subscription_limit_exceeded"],
9762
9817
  type: "string"
9763
9818
  },
9764
- is_connected_account_error: {
9765
- enum: [true],
9766
- type: "boolean"
9767
- },
9819
+ is_bridge_error: { type: "boolean" },
9820
+ is_connected_account_error: { type: "boolean" },
9768
9821
  message: { type: "string" },
9769
9822
  salto_ks_metadata: {
9770
9823
  properties: {
@@ -9800,7 +9853,6 @@ var openapi_default = {
9800
9853
  required: [
9801
9854
  "created_at",
9802
9855
  "message",
9803
- "is_connected_account_error",
9804
9856
  "error_code",
9805
9857
  "salto_ks_metadata"
9806
9858
  ],
@@ -10326,18 +10378,31 @@ var openapi_default = {
10326
10378
  enum: ["invalid_credentials"],
10327
10379
  type: "string"
10328
10380
  },
10329
- is_connected_account_error: {
10330
- enum: [true],
10331
- type: "boolean"
10381
+ is_bridge_error: { type: "boolean" },
10382
+ is_connected_account_error: { type: "boolean" },
10383
+ message: { type: "string" }
10384
+ },
10385
+ required: ["created_at", "message", "error_code"],
10386
+ type: "object"
10387
+ },
10388
+ {
10389
+ description: "Indicates that the Seam API cannot communicate with [Seam Bridge](https://docs.seam.co/latest/capability-guides/seam-bridge), for example, if Seam Bridge executable has stopped or if the computer running the Seam Bridge executable is offline.\n See also [Troubleshooting Your Access Control System](https://docs.seam.co/latest/capability-guides/access-systems/troubleshooting-your-access-control-system#acs_system.errors.seam_bridge_disconnected).",
10390
+ properties: {
10391
+ created_at: {
10392
+ description: "Date and time at which Seam created the error.",
10393
+ format: "date-time",
10394
+ type: "string"
10332
10395
  },
10396
+ error_code: {
10397
+ description: "Unique identifier of the type of error. Enables quick recognition and categorization of the issue.",
10398
+ enum: ["bridge_disconnected"],
10399
+ type: "string"
10400
+ },
10401
+ is_bridge_error: { type: "boolean" },
10402
+ is_connected_account_error: { type: "boolean" },
10333
10403
  message: { type: "string" }
10334
10404
  },
10335
- required: [
10336
- "created_at",
10337
- "message",
10338
- "is_connected_account_error",
10339
- "error_code"
10340
- ],
10405
+ required: ["created_at", "message", "error_code"],
10341
10406
  type: "object"
10342
10407
  }
10343
10408
  ]
@@ -17160,18 +17225,31 @@ var openapi_default = {
17160
17225
  enum: ["invalid_credentials"],
17161
17226
  type: "string"
17162
17227
  },
17163
- is_connected_account_error: {
17164
- enum: [true],
17165
- type: "boolean"
17228
+ is_bridge_error: { type: "boolean" },
17229
+ is_connected_account_error: { type: "boolean" },
17230
+ message: { type: "string" }
17231
+ },
17232
+ required: ["created_at", "message", "error_code"],
17233
+ type: "object"
17234
+ },
17235
+ {
17236
+ description: "Indicates that the Seam API cannot communicate with [Seam Bridge](https://docs.seam.co/latest/capability-guides/seam-bridge), for example, if Seam Bridge executable has stopped or if the computer running the Seam Bridge executable is offline.\n See also [Troubleshooting Your Access Control System](https://docs.seam.co/latest/capability-guides/access-systems/troubleshooting-your-access-control-system#acs_system.errors.seam_bridge_disconnected).",
17237
+ properties: {
17238
+ created_at: {
17239
+ description: "Date and time at which Seam created the error.",
17240
+ format: "date-time",
17241
+ type: "string"
17242
+ },
17243
+ error_code: {
17244
+ description: "Unique identifier of the type of error. Enables quick recognition and categorization of the issue.",
17245
+ enum: ["bridge_disconnected"],
17246
+ type: "string"
17166
17247
  },
17248
+ is_bridge_error: { type: "boolean" },
17249
+ is_connected_account_error: { type: "boolean" },
17167
17250
  message: { type: "string" }
17168
17251
  },
17169
- required: [
17170
- "created_at",
17171
- "message",
17172
- "is_connected_account_error",
17173
- "error_code"
17174
- ],
17252
+ required: ["created_at", "message", "error_code"],
17175
17253
  type: "object"
17176
17254
  }
17177
17255
  ]
@@ -18665,18 +18743,31 @@ var openapi_default = {
18665
18743
  enum: ["invalid_credentials"],
18666
18744
  type: "string"
18667
18745
  },
18668
- is_connected_account_error: {
18669
- enum: [true],
18670
- type: "boolean"
18746
+ is_bridge_error: { type: "boolean" },
18747
+ is_connected_account_error: { type: "boolean" },
18748
+ message: { type: "string" }
18749
+ },
18750
+ required: ["created_at", "message", "error_code"],
18751
+ type: "object"
18752
+ },
18753
+ {
18754
+ description: "Indicates that the Seam API cannot communicate with [Seam Bridge](https://docs.seam.co/latest/capability-guides/seam-bridge), for example, if Seam Bridge executable has stopped or if the computer running the Seam Bridge executable is offline.\n See also [Troubleshooting Your Access Control System](https://docs.seam.co/latest/capability-guides/access-systems/troubleshooting-your-access-control-system#acs_system.errors.seam_bridge_disconnected).",
18755
+ properties: {
18756
+ created_at: {
18757
+ description: "Date and time at which Seam created the error.",
18758
+ format: "date-time",
18759
+ type: "string"
18671
18760
  },
18761
+ error_code: {
18762
+ description: "Unique identifier of the type of error. Enables quick recognition and categorization of the issue.",
18763
+ enum: ["bridge_disconnected"],
18764
+ type: "string"
18765
+ },
18766
+ is_bridge_error: { type: "boolean" },
18767
+ is_connected_account_error: { type: "boolean" },
18672
18768
  message: { type: "string" }
18673
18769
  },
18674
- required: [
18675
- "created_at",
18676
- "message",
18677
- "is_connected_account_error",
18678
- "error_code"
18679
- ],
18770
+ required: ["created_at", "message", "error_code"],
18680
18771
  type: "object"
18681
18772
  }
18682
18773
  ]