@seamapi/types 1.557.0 → 1.559.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.557.0",
3
+ "version": "1.559.0",
4
4
  "description": "TypeScript types for the Seam API.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -53,14 +53,6 @@ export const account_disconnected = common_connected_account_error
53
53
  })
54
54
  .describe('Indicates that the account is disconnected.')
55
55
 
56
- export const invalid_credentials = common_connected_account_error
57
- .extend({
58
- error_code: z
59
- .literal('invalid_credentials')
60
- .describe(error_code_description),
61
- })
62
- .describe('Indicates that the credentials provided were invalid.')
63
-
64
56
  export const bridge_disconnected = common_connected_account_error
65
57
  .extend({
66
58
  error_code: z
@@ -126,7 +118,6 @@ export const salto_ks_subscription_limit_exceeded =
126
118
 
127
119
  export const connected_account_error = z.discriminatedUnion('error_code', [
128
120
  account_disconnected,
129
- invalid_credentials,
130
121
  bridge_disconnected,
131
122
  salto_ks_subscription_limit_exceeded,
132
123
  ])
@@ -137,7 +128,6 @@ export type ConnectedAccountWarning = z.infer<typeof connected_account_warning>
137
128
 
138
129
  const _connected_account_error_map = z.object({
139
130
  account_disconnected: account_disconnected.nullable().optional(),
140
- invalid_credentials: invalid_credentials.nullable().optional(),
141
131
  bridge_disconnected: bridge_disconnected.nullable().optional(),
142
132
  salto_ks_subscription_limit_exceeded: salto_ks_subscription_limit_exceeded
143
133
  .nullable()
@@ -27,7 +27,7 @@ const connect_webview_id = z
27
27
  export const connected_account_connected_event = connected_account_event.extend(
28
28
  {
29
29
  event_type: z.literal('connected_account.connected'),
30
- connect_webview_id,
30
+ connect_webview_id: connect_webview_id.optional(),
31
31
  customer_key: z
32
32
  .string()
33
33
  .optional()
@@ -1323,41 +1323,6 @@ export default {
1323
1323
  ],
1324
1324
  type: 'object',
1325
1325
  },
1326
- {
1327
- description:
1328
- 'Indicates that the credentials provided were invalid.',
1329
- properties: {
1330
- created_at: {
1331
- description:
1332
- 'Date and time at which Seam created the error.',
1333
- format: 'date-time',
1334
- type: 'string',
1335
- },
1336
- error_code: {
1337
- description:
1338
- 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
1339
- enum: ['invalid_credentials'],
1340
- type: 'string',
1341
- },
1342
- is_bridge_error: {
1343
- description:
1344
- 'Indicates whether the error is related to [Seam Bridge](https://docs.seam.co/latest/capability-guides/seam-bridge).',
1345
- type: 'boolean',
1346
- },
1347
- is_connected_account_error: {
1348
- description:
1349
- 'Indicates whether the error is related specifically to the connected account.',
1350
- type: 'boolean',
1351
- },
1352
- message: {
1353
- description:
1354
- 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.',
1355
- type: 'string',
1356
- },
1357
- },
1358
- required: ['created_at', 'message', 'error_code'],
1359
- type: 'object',
1360
- },
1361
1326
  {
1362
1327
  description:
1363
1328
  'Indicates that the Seam API cannot communicate with [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. 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).',
@@ -8996,41 +8961,6 @@ export default {
8996
8961
  required: ['created_at', 'message', 'error_code'],
8997
8962
  type: 'object',
8998
8963
  },
8999
- {
9000
- description:
9001
- 'Indicates that the credentials provided were invalid.',
9002
- properties: {
9003
- created_at: {
9004
- description:
9005
- 'Date and time at which Seam created the error.',
9006
- format: 'date-time',
9007
- type: 'string',
9008
- },
9009
- error_code: {
9010
- description:
9011
- 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
9012
- enum: ['invalid_credentials'],
9013
- type: 'string',
9014
- },
9015
- is_bridge_error: {
9016
- description:
9017
- 'Indicates whether the error is related to [Seam Bridge](https://docs.seam.co/latest/capability-guides/seam-bridge).',
9018
- type: 'boolean',
9019
- },
9020
- is_connected_account_error: {
9021
- description:
9022
- 'Indicates whether the error is related specifically to the connected account.',
9023
- type: 'boolean',
9024
- },
9025
- message: {
9026
- description:
9027
- 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.',
9028
- type: 'string',
9029
- },
9030
- },
9031
- required: ['created_at', 'message', 'error_code'],
9032
- type: 'object',
9033
- },
9034
8964
  {
9035
8965
  description:
9036
8966
  'Indicates that the Seam API cannot communicate with [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. 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).',
@@ -10018,41 +9948,6 @@ export default {
10018
9948
  ],
10019
9949
  type: 'object',
10020
9950
  },
10021
- {
10022
- description:
10023
- 'Indicates that the credentials provided were invalid.',
10024
- properties: {
10025
- created_at: {
10026
- description:
10027
- 'Date and time at which Seam created the error.',
10028
- format: 'date-time',
10029
- type: 'string',
10030
- },
10031
- error_code: {
10032
- description:
10033
- 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
10034
- enum: ['invalid_credentials'],
10035
- type: 'string',
10036
- },
10037
- is_bridge_error: {
10038
- description:
10039
- 'Indicates whether the error is related to [Seam Bridge](https://docs.seam.co/latest/capability-guides/seam-bridge).',
10040
- type: 'boolean',
10041
- },
10042
- is_connected_account_error: {
10043
- description:
10044
- 'Indicates whether the error is related specifically to the connected account.',
10045
- type: 'boolean',
10046
- },
10047
- message: {
10048
- description:
10049
- 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.',
10050
- type: 'string',
10051
- },
10052
- },
10053
- required: ['created_at', 'message', 'error_code'],
10054
- type: 'object',
10055
- },
10056
9951
  {
10057
9952
  description:
10058
9953
  'Indicates that the Seam API cannot communicate with [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. 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).',
@@ -16000,7 +15895,6 @@ export default {
16000
15895
  'occurred_at',
16001
15896
  'connected_account_id',
16002
15897
  'event_type',
16003
- 'connect_webview_id',
16004
15898
  ],
16005
15899
  type: 'object',
16006
15900
  'x-route-path': '/connected_accounts',
@@ -22285,41 +22179,6 @@ export default {
22285
22179
  ],
22286
22180
  type: 'object',
22287
22181
  },
22288
- {
22289
- description:
22290
- 'Indicates that the credentials provided were invalid.',
22291
- properties: {
22292
- created_at: {
22293
- description:
22294
- 'Date and time at which Seam created the error.',
22295
- format: 'date-time',
22296
- type: 'string',
22297
- },
22298
- error_code: {
22299
- description:
22300
- 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
22301
- enum: ['invalid_credentials'],
22302
- type: 'string',
22303
- },
22304
- is_bridge_error: {
22305
- description:
22306
- 'Indicates whether the error is related to [Seam Bridge](https://docs.seam.co/latest/capability-guides/seam-bridge).',
22307
- type: 'boolean',
22308
- },
22309
- is_connected_account_error: {
22310
- description:
22311
- 'Indicates whether the error is related specifically to the connected account.',
22312
- type: 'boolean',
22313
- },
22314
- message: {
22315
- description:
22316
- 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.',
22317
- type: 'string',
22318
- },
22319
- },
22320
- required: ['created_at', 'message', 'error_code'],
22321
- type: 'object',
22322
- },
22323
22182
  {
22324
22183
  description:
22325
22184
  'Indicates that the Seam API cannot communicate with [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. 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).',
@@ -24637,41 +24496,6 @@ export default {
24637
24496
  ],
24638
24497
  type: 'object',
24639
24498
  },
24640
- {
24641
- description:
24642
- 'Indicates that the credentials provided were invalid.',
24643
- properties: {
24644
- created_at: {
24645
- description:
24646
- 'Date and time at which Seam created the error.',
24647
- format: 'date-time',
24648
- type: 'string',
24649
- },
24650
- error_code: {
24651
- description:
24652
- 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
24653
- enum: ['invalid_credentials'],
24654
- type: 'string',
24655
- },
24656
- is_bridge_error: {
24657
- description:
24658
- 'Indicates whether the error is related to [Seam Bridge](https://docs.seam.co/latest/capability-guides/seam-bridge).',
24659
- type: 'boolean',
24660
- },
24661
- is_connected_account_error: {
24662
- description:
24663
- 'Indicates whether the error is related specifically to the connected account.',
24664
- type: 'boolean',
24665
- },
24666
- message: {
24667
- description:
24668
- 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.',
24669
- type: 'string',
24670
- },
24671
- },
24672
- required: ['created_at', 'message', 'error_code'],
24673
- type: 'object',
24674
- },
24675
24499
  {
24676
24500
  description:
24677
24501
  'Indicates that the Seam API cannot communicate with [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. 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).',