@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/types",
3
- "version": "1.374.0",
3
+ "version": "1.375.0",
4
4
  "description": "TypeScript types for the Seam API.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -79,7 +79,14 @@ const seam_bridge_disconnected = common_acs_system_error.extend({
79
79
  })
80
80
  .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.
81
81
  This error might also occur if Seam Bridge is connected to the wrong [workspace](https://docs.seam.co/latest/core-concepts/workspaces).
82
- 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).`)
82
+ 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).`)
83
+
84
+ const bridge_disconnected = common_acs_system_error.extend({
85
+ error_code: z.literal('bridge_disconnected').describe(error_code_description),
86
+ is_bridge_error: z.boolean().optional(),
87
+ })
88
+ .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.
89
+ 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).`)
83
90
 
84
91
  const visionline_instance_unreachable = common_acs_system_error.extend({
85
92
  error_code: z
@@ -132,6 +139,7 @@ const salto_ks_certification_expired = common_acs_system_error
132
139
  const acs_system_error = z
133
140
  .discriminatedUnion('error_code', [
134
141
  seam_bridge_disconnected,
142
+ bridge_disconnected,
135
143
  visionline_instance_unreachable,
136
144
  salto_ks_subscription_limit_exceeded,
137
145
  acs_system_disconnected,
@@ -144,6 +152,7 @@ const acs_system_error = z
144
152
 
145
153
  export const acs_system_error_map = z.object({
146
154
  seam_bridge_disconnected: seam_bridge_disconnected.optional().nullable(),
155
+ bridge_disconnected: bridge_disconnected.optional().nullable(),
147
156
  visionline_instance_unreachable: visionline_instance_unreachable
148
157
  .optional()
149
158
  .nullable(),
@@ -8,7 +8,8 @@ const common_connected_account_error = z.object({
8
8
  .datetime()
9
9
  .describe('Date and time at which Seam created the error.'),
10
10
  message: z.string(),
11
- is_connected_account_error: z.literal(true),
11
+ is_connected_account_error: z.boolean().optional(),
12
+ is_bridge_error: z.boolean().optional(),
12
13
  })
13
14
 
14
15
  const error_code_description =
@@ -41,6 +42,12 @@ export const invalid_credentials = common_connected_account_error
41
42
  })
42
43
  .describe('Credentials provided were invalid.')
43
44
 
45
+ export const bridge_disconnected = common_connected_account_error.extend({
46
+ error_code: z.literal('bridge_disconnected').describe(error_code_description),
47
+ })
48
+ .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.
49
+ 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).`)
50
+
44
51
  export const salto_ks_subscription_limit_exceeded =
45
52
  common_connected_account_error
46
53
  .extend({
@@ -65,12 +72,14 @@ export const salto_ks_subscription_limit_exceeded =
65
72
  export const connected_account_error = z.discriminatedUnion('error_code', [
66
73
  account_disconnected,
67
74
  invalid_credentials,
75
+ bridge_disconnected,
68
76
  salto_ks_subscription_limit_exceeded,
69
77
  ])
70
78
 
71
79
  const connected_account_error_map = z.object({
72
80
  account_disconnected: account_disconnected.nullable().optional(),
73
81
  invalid_credentials: invalid_credentials.nullable().optional(),
82
+ bridge_disconnected: bridge_disconnected.nullable().optional(),
74
83
  salto_ks_subscription_limit_exceeded: salto_ks_subscription_limit_exceeded
75
84
  .nullable()
76
85
  .optional(),
@@ -737,18 +737,34 @@ export default {
737
737
  enum: ['invalid_credentials'],
738
738
  type: 'string',
739
739
  },
740
- is_connected_account_error: {
741
- enum: [true],
742
- type: 'boolean',
740
+ is_bridge_error: { type: 'boolean' },
741
+ is_connected_account_error: { type: 'boolean' },
742
+ message: { type: 'string' },
743
+ },
744
+ required: ['created_at', 'message', 'error_code'],
745
+ type: 'object',
746
+ },
747
+ {
748
+ description:
749
+ '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).',
750
+ properties: {
751
+ created_at: {
752
+ description:
753
+ 'Date and time at which Seam created the error.',
754
+ format: 'date-time',
755
+ type: 'string',
743
756
  },
757
+ error_code: {
758
+ description:
759
+ 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
760
+ enum: ['bridge_disconnected'],
761
+ type: 'string',
762
+ },
763
+ is_bridge_error: { type: 'boolean' },
764
+ is_connected_account_error: { type: 'boolean' },
744
765
  message: { type: 'string' },
745
766
  },
746
- required: [
747
- 'created_at',
748
- 'message',
749
- 'is_connected_account_error',
750
- 'error_code',
751
- ],
767
+ required: ['created_at', 'message', 'error_code'],
752
768
  type: 'object',
753
769
  },
754
770
  ],
@@ -1867,7 +1883,7 @@ export default {
1867
1883
  oneOf: [
1868
1884
  {
1869
1885
  description:
1870
- '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).',
1886
+ '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).',
1871
1887
  properties: {
1872
1888
  created_at: {
1873
1889
  description:
@@ -1890,6 +1906,32 @@ export default {
1890
1906
  required: ['created_at', 'message', 'error_code'],
1891
1907
  type: 'object',
1892
1908
  },
1909
+ {
1910
+ description:
1911
+ '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).',
1912
+ properties: {
1913
+ created_at: {
1914
+ description:
1915
+ 'Date and time at which Seam created the error.',
1916
+ format: 'date-time',
1917
+ type: 'string',
1918
+ },
1919
+ error_code: {
1920
+ description:
1921
+ 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
1922
+ enum: ['bridge_disconnected'],
1923
+ type: 'string',
1924
+ },
1925
+ is_bridge_error: { type: 'boolean' },
1926
+ message: {
1927
+ description:
1928
+ 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.',
1929
+ type: 'string',
1930
+ },
1931
+ },
1932
+ required: ['created_at', 'message', 'error_code'],
1933
+ type: 'object',
1934
+ },
1893
1935
  {
1894
1936
  description:
1895
1937
  '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).',
@@ -6093,18 +6135,11 @@ export default {
6093
6135
  enum: ['account_disconnected'],
6094
6136
  type: 'string',
6095
6137
  },
6096
- is_connected_account_error: {
6097
- enum: [true],
6098
- type: 'boolean',
6099
- },
6138
+ is_bridge_error: { type: 'boolean' },
6139
+ is_connected_account_error: { type: 'boolean' },
6100
6140
  message: { type: 'string' },
6101
6141
  },
6102
- required: [
6103
- 'created_at',
6104
- 'message',
6105
- 'is_connected_account_error',
6106
- 'error_code',
6107
- ],
6142
+ required: ['created_at', 'message', 'error_code'],
6108
6143
  type: 'object',
6109
6144
  },
6110
6145
  {
@@ -6122,18 +6157,34 @@ export default {
6122
6157
  enum: ['invalid_credentials'],
6123
6158
  type: 'string',
6124
6159
  },
6125
- is_connected_account_error: {
6126
- enum: [true],
6127
- type: 'boolean',
6160
+ is_bridge_error: { type: 'boolean' },
6161
+ is_connected_account_error: { type: 'boolean' },
6162
+ message: { type: 'string' },
6163
+ },
6164
+ required: ['created_at', 'message', 'error_code'],
6165
+ type: 'object',
6166
+ },
6167
+ {
6168
+ description:
6169
+ '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).',
6170
+ properties: {
6171
+ created_at: {
6172
+ description:
6173
+ 'Date and time at which Seam created the error.',
6174
+ format: 'date-time',
6175
+ type: 'string',
6176
+ },
6177
+ error_code: {
6178
+ description:
6179
+ 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
6180
+ enum: ['bridge_disconnected'],
6181
+ type: 'string',
6128
6182
  },
6183
+ is_bridge_error: { type: 'boolean' },
6184
+ is_connected_account_error: { type: 'boolean' },
6129
6185
  message: { type: 'string' },
6130
6186
  },
6131
- required: [
6132
- 'created_at',
6133
- 'message',
6134
- 'is_connected_account_error',
6135
- 'error_code',
6136
- ],
6187
+ required: ['created_at', 'message', 'error_code'],
6137
6188
  type: 'object',
6138
6189
  },
6139
6190
  {
@@ -6152,10 +6203,8 @@ export default {
6152
6203
  enum: ['salto_ks_subscription_limit_exceeded'],
6153
6204
  type: 'string',
6154
6205
  },
6155
- is_connected_account_error: {
6156
- enum: [true],
6157
- type: 'boolean',
6158
- },
6206
+ is_bridge_error: { type: 'boolean' },
6207
+ is_connected_account_error: { type: 'boolean' },
6159
6208
  message: { type: 'string' },
6160
6209
  salto_ks_metadata: {
6161
6210
  properties: {
@@ -6191,7 +6240,6 @@ export default {
6191
6240
  required: [
6192
6241
  'created_at',
6193
6242
  'message',
6194
- 'is_connected_account_error',
6195
6243
  'error_code',
6196
6244
  'salto_ks_metadata',
6197
6245
  ],
@@ -6745,18 +6793,34 @@ export default {
6745
6793
  enum: ['invalid_credentials'],
6746
6794
  type: 'string',
6747
6795
  },
6748
- is_connected_account_error: {
6749
- enum: [true],
6750
- type: 'boolean',
6796
+ is_bridge_error: { type: 'boolean' },
6797
+ is_connected_account_error: { type: 'boolean' },
6798
+ message: { type: 'string' },
6799
+ },
6800
+ required: ['created_at', 'message', 'error_code'],
6801
+ type: 'object',
6802
+ },
6803
+ {
6804
+ description:
6805
+ '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).',
6806
+ properties: {
6807
+ created_at: {
6808
+ description:
6809
+ 'Date and time at which Seam created the error.',
6810
+ format: 'date-time',
6811
+ type: 'string',
6751
6812
  },
6813
+ error_code: {
6814
+ description:
6815
+ 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
6816
+ enum: ['bridge_disconnected'],
6817
+ type: 'string',
6818
+ },
6819
+ is_bridge_error: { type: 'boolean' },
6820
+ is_connected_account_error: { type: 'boolean' },
6752
6821
  message: { type: 'string' },
6753
6822
  },
6754
- required: [
6755
- 'created_at',
6756
- 'message',
6757
- 'is_connected_account_error',
6758
- 'error_code',
6759
- ],
6823
+ required: ['created_at', 'message', 'error_code'],
6760
6824
  type: 'object',
6761
6825
  },
6762
6826
  ],
@@ -14098,18 +14162,34 @@ export default {
14098
14162
  enum: ['invalid_credentials'],
14099
14163
  type: 'string',
14100
14164
  },
14101
- is_connected_account_error: {
14102
- enum: [true],
14103
- type: 'boolean',
14165
+ is_bridge_error: { type: 'boolean' },
14166
+ is_connected_account_error: { type: 'boolean' },
14167
+ message: { type: 'string' },
14168
+ },
14169
+ required: ['created_at', 'message', 'error_code'],
14170
+ type: 'object',
14171
+ },
14172
+ {
14173
+ description:
14174
+ '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).',
14175
+ properties: {
14176
+ created_at: {
14177
+ description:
14178
+ 'Date and time at which Seam created the error.',
14179
+ format: 'date-time',
14180
+ type: 'string',
14104
14181
  },
14182
+ error_code: {
14183
+ description:
14184
+ 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
14185
+ enum: ['bridge_disconnected'],
14186
+ type: 'string',
14187
+ },
14188
+ is_bridge_error: { type: 'boolean' },
14189
+ is_connected_account_error: { type: 'boolean' },
14105
14190
  message: { type: 'string' },
14106
14191
  },
14107
- required: [
14108
- 'created_at',
14109
- 'message',
14110
- 'is_connected_account_error',
14111
- 'error_code',
14112
- ],
14192
+ required: ['created_at', 'message', 'error_code'],
14113
14193
  type: 'object',
14114
14194
  },
14115
14195
  ],
@@ -15752,18 +15832,34 @@ export default {
15752
15832
  enum: ['invalid_credentials'],
15753
15833
  type: 'string',
15754
15834
  },
15755
- is_connected_account_error: {
15756
- enum: [true],
15757
- type: 'boolean',
15835
+ is_bridge_error: { type: 'boolean' },
15836
+ is_connected_account_error: { type: 'boolean' },
15837
+ message: { type: 'string' },
15838
+ },
15839
+ required: ['created_at', 'message', 'error_code'],
15840
+ type: 'object',
15841
+ },
15842
+ {
15843
+ description:
15844
+ '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).',
15845
+ properties: {
15846
+ created_at: {
15847
+ description:
15848
+ 'Date and time at which Seam created the error.',
15849
+ format: 'date-time',
15850
+ type: 'string',
15851
+ },
15852
+ error_code: {
15853
+ description:
15854
+ 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
15855
+ enum: ['bridge_disconnected'],
15856
+ type: 'string',
15758
15857
  },
15858
+ is_bridge_error: { type: 'boolean' },
15859
+ is_connected_account_error: { type: 'boolean' },
15759
15860
  message: { type: 'string' },
15760
15861
  },
15761
- required: [
15762
- 'created_at',
15763
- 'message',
15764
- 'is_connected_account_error',
15765
- 'error_code',
15766
- ],
15862
+ required: ['created_at', 'message', 'error_code'],
15767
15863
  type: 'object',
15768
15864
  },
15769
15865
  ],