@seamapi/types 1.329.1 → 1.331.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.329.1",
3
+ "version": "1.331.0",
4
4
  "description": "TypeScript types for the Seam API.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -9,6 +9,8 @@ export const acs_credential_external_type = z.enum([
9
9
  'hid_credential',
10
10
  'visionline_card',
11
11
  'salto_ks_credential',
12
+ 'assa_abloy_vostio_card',
13
+ 'assa_abloy_vostio_mobile_key',
12
14
  ])
13
15
 
14
16
  export const acs_credential_access_method_type = z.enum([
@@ -114,15 +114,31 @@ const acs_users_salto_ks_user_not_subscribed = common_acs_user_warning
114
114
  `Indicates that the user is not subscribed on the Salto KS, so they cannot unlock doors or perform any actions. This occur when the their access schedule hasn’t started yet, or if their access schedule has ended, or if the site has reached its limit for active users (subscription slots), or if they have been manually unsubscribed.`,
115
115
  )
116
116
 
117
+ export const unknown_issue_with_acs_user = common_acs_user_warning
118
+ .extend({
119
+ warning_code: z.literal('unknown_issue_with_acs_user'),
120
+ })
121
+ .describe(
122
+ 'An unknown issue occurred while syncing the state of this user with the provider. ' +
123
+ 'This issue may affect the proper functioning of this user.',
124
+ )
125
+
117
126
  export const acs_users_warning_map = z.object({
118
127
  being_deleted: acs_users_being_deleted.optional().nullable(),
119
128
  salto_ks_user_not_subscribed: acs_users_salto_ks_user_not_subscribed
120
129
  .optional()
121
130
  .nullable(),
131
+ unknown_issue_with_acs_user: unknown_issue_with_acs_user
132
+ .optional()
133
+ .nullable(),
122
134
  })
123
135
 
124
136
  export const acs_users_warnings = z
125
- .union([acs_users_being_deleted, acs_users_salto_ks_user_not_subscribed])
137
+ .union([
138
+ acs_users_being_deleted,
139
+ acs_users_salto_ks_user_not_subscribed,
140
+ unknown_issue_with_acs_user,
141
+ ])
126
142
  .describe('Warning associated with the `acs_user`.')
127
143
 
128
144
  export type AcsUsersWarningMap = z.infer<typeof acs_users_warning_map>
@@ -559,6 +559,8 @@ export default {
559
559
  'hid_credential',
560
560
  'visionline_card',
561
561
  'salto_ks_credential',
562
+ 'assa_abloy_vostio_card',
563
+ 'assa_abloy_vostio_mobile_key',
562
564
  ],
563
565
  type: 'string',
564
566
  },
@@ -1660,6 +1662,20 @@ export default {
1660
1662
  required: ['created_at', 'message', 'warning_code'],
1661
1663
  type: 'object',
1662
1664
  },
1665
+ {
1666
+ description:
1667
+ 'An unknown issue occurred while syncing the state of this user with the provider. This issue may affect the proper functioning of this user.',
1668
+ properties: {
1669
+ created_at: { format: 'date-time', type: 'string' },
1670
+ message: { type: 'string' },
1671
+ warning_code: {
1672
+ enum: ['unknown_issue_with_acs_user'],
1673
+ type: 'string',
1674
+ },
1675
+ },
1676
+ required: ['created_at', 'message', 'warning_code'],
1677
+ type: 'object',
1678
+ },
1663
1679
  ],
1664
1680
  },
1665
1681
  type: 'array',
@@ -2041,6 +2057,8 @@ export default {
2041
2057
  'hid_credential',
2042
2058
  'visionline_card',
2043
2059
  'salto_ks_credential',
2060
+ 'assa_abloy_vostio_card',
2061
+ 'assa_abloy_vostio_mobile_key',
2044
2062
  ],
2045
2063
  type: 'string',
2046
2064
  },
@@ -2401,6 +2419,8 @@ export default {
2401
2419
  'hid_credential',
2402
2420
  'visionline_card',
2403
2421
  'salto_ks_credential',
2422
+ 'assa_abloy_vostio_card',
2423
+ 'assa_abloy_vostio_mobile_key',
2404
2424
  ],
2405
2425
  type: 'string',
2406
2426
  },
@@ -2894,6 +2914,8 @@ export default {
2894
2914
  'hid_credential',
2895
2915
  'visionline_card',
2896
2916
  'salto_ks_credential',
2917
+ 'assa_abloy_vostio_card',
2918
+ 'assa_abloy_vostio_mobile_key',
2897
2919
  ],
2898
2920
  type: 'string',
2899
2921
  },
@@ -3251,6 +3273,8 @@ export default {
3251
3273
  'hid_credential',
3252
3274
  'visionline_card',
3253
3275
  'salto_ks_credential',
3276
+ 'assa_abloy_vostio_card',
3277
+ 'assa_abloy_vostio_mobile_key',
3254
3278
  ],
3255
3279
  type: 'string',
3256
3280
  },
@@ -15178,6 +15202,8 @@ export default {
15178
15202
  'hid_credential',
15179
15203
  'visionline_card',
15180
15204
  'salto_ks_credential',
15205
+ 'assa_abloy_vostio_card',
15206
+ 'assa_abloy_vostio_mobile_key',
15181
15207
  ],
15182
15208
  type: 'string',
15183
15209
  },
@@ -15639,6 +15665,8 @@ export default {
15639
15665
  'hid_credential',
15640
15666
  'visionline_card',
15641
15667
  'salto_ks_credential',
15668
+ 'assa_abloy_vostio_card',
15669
+ 'assa_abloy_vostio_mobile_key',
15642
15670
  ],
15643
15671
  type: 'string',
15644
15672
  },
@@ -18055,6 +18083,27 @@ export default {
18055
18083
  ],
18056
18084
  type: 'object',
18057
18085
  },
18086
+ {
18087
+ description:
18088
+ 'An unknown issue occurred while syncing the state of this user with the provider. This issue may affect the proper functioning of this user.',
18089
+ properties: {
18090
+ created_at: {
18091
+ format: 'date-time',
18092
+ type: 'string',
18093
+ },
18094
+ message: { type: 'string' },
18095
+ warning_code: {
18096
+ enum: ['unknown_issue_with_acs_user'],
18097
+ type: 'string',
18098
+ },
18099
+ },
18100
+ required: [
18101
+ 'created_at',
18102
+ 'message',
18103
+ 'warning_code',
18104
+ ],
18105
+ type: 'object',
18106
+ },
18058
18107
  ],
18059
18108
  },
18060
18109
  type: 'array',
@@ -18452,6 +18501,27 @@ export default {
18452
18501
  ],
18453
18502
  type: 'object',
18454
18503
  },
18504
+ {
18505
+ description:
18506
+ 'An unknown issue occurred while syncing the state of this user with the provider. This issue may affect the proper functioning of this user.',
18507
+ properties: {
18508
+ created_at: {
18509
+ format: 'date-time',
18510
+ type: 'string',
18511
+ },
18512
+ message: { type: 'string' },
18513
+ warning_code: {
18514
+ enum: ['unknown_issue_with_acs_user'],
18515
+ type: 'string',
18516
+ },
18517
+ },
18518
+ required: [
18519
+ 'created_at',
18520
+ 'message',
18521
+ 'warning_code',
18522
+ ],
18523
+ type: 'object',
18524
+ },
18455
18525
  ],
18456
18526
  },
18457
18527
  type: 'array',