@seamapi/types 1.316.0 → 1.318.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.
Files changed (38) hide show
  1. package/dist/connect.cjs +202 -30
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +1090 -216
  4. package/lib/seam/connect/models/acs/acs-credential.d.ts +66 -0
  5. package/lib/seam/connect/models/acs/acs-credential.js +12 -0
  6. package/lib/seam/connect/models/acs/acs-credential.js.map +1 -1
  7. package/lib/seam/connect/models/acs/acs-encoder.d.ts +0 -10
  8. package/lib/seam/connect/models/acs/acs-encoder.js +0 -4
  9. package/lib/seam/connect/models/acs/acs-encoder.js.map +1 -1
  10. package/lib/seam/connect/models/acs/acs-entrance.d.ts +5 -0
  11. package/lib/seam/connect/models/acs/acs-system.d.ts +34 -0
  12. package/lib/seam/connect/models/acs/acs-system.js +4 -0
  13. package/lib/seam/connect/models/acs/acs-system.js.map +1 -1
  14. package/lib/seam/connect/models/acs/acs-user.d.ts +6 -6
  15. package/lib/seam/connect/models/acs/acs-user.js +1 -0
  16. package/lib/seam/connect/models/acs/acs-user.js.map +1 -1
  17. package/lib/seam/connect/models/acs/metadata/dormakaba-community.d.ts +3 -0
  18. package/lib/seam/connect/models/acs/metadata/dormakaba-community.js +1 -0
  19. package/lib/seam/connect/models/acs/metadata/dormakaba-community.js.map +1 -1
  20. package/lib/seam/connect/models/action-attempts/action-attempt.d.ts +132 -0
  21. package/lib/seam/connect/models/action-attempts/encode-credential.d.ts +58 -0
  22. package/lib/seam/connect/models/action-attempts/scan-credential.d.ts +74 -0
  23. package/lib/seam/connect/models/devices/device-provider.d.ts +2 -2
  24. package/lib/seam/connect/models/devices/device-provider.js +1 -1
  25. package/lib/seam/connect/models/devices/device-provider.js.map +1 -1
  26. package/lib/seam/connect/openapi.d.ts +37 -7
  27. package/lib/seam/connect/openapi.js +179 -14
  28. package/lib/seam/connect/openapi.js.map +1 -1
  29. package/lib/seam/connect/route-types.d.ts +678 -13
  30. package/package.json +1 -1
  31. package/src/lib/seam/connect/models/acs/acs-credential.ts +15 -0
  32. package/src/lib/seam/connect/models/acs/acs-encoder.ts +0 -6
  33. package/src/lib/seam/connect/models/acs/acs-system.ts +4 -0
  34. package/src/lib/seam/connect/models/acs/acs-user.ts +1 -0
  35. package/src/lib/seam/connect/models/acs/metadata/dormakaba-community.ts +1 -0
  36. package/src/lib/seam/connect/models/devices/device-provider.ts +1 -1
  37. package/src/lib/seam/connect/openapi.ts +207 -15
  38. package/src/lib/seam/connect/route-types.ts +768 -9
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/types",
3
- "version": "1.316.0",
3
+ "version": "1.318.0",
4
4
  "description": "TypeScript types for the Seam API.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -70,12 +70,24 @@ const being_deleted = common_acs_credential_warning
70
70
  })
71
71
  .describe('Indicates that this credential is being deleted.')
72
72
 
73
+ const unknown_issue_with_credential = common_acs_credential_warning
74
+ .extend({
75
+ warning_code: z
76
+ .literal('unknown_issue_with_credential')
77
+ .describe(warning_code_description),
78
+ })
79
+ .describe(
80
+ 'An unknown issue occurred while syncing the state of this credential with the provider. ' +
81
+ 'This issue may affect the proper functioning of this credential.',
82
+ )
83
+
73
84
  const acs_credential_warning = z
74
85
  .union([
75
86
  waiting_to_be_issued,
76
87
  schedule_externally_modified,
77
88
  schedule_modified,
78
89
  being_deleted,
90
+ unknown_issue_with_credential,
79
91
  ])
80
92
  .describe('Warning associated with the `acs_credential`.')
81
93
 
@@ -86,6 +98,9 @@ const acs_credential_warning_map = z.object({
86
98
  .nullable(),
87
99
  schedule_modified: schedule_modified.optional().nullable(),
88
100
  being_deleted: being_deleted.optional().nullable(),
101
+ unknown_issue_with_credential: unknown_issue_with_credential
102
+ .optional()
103
+ .nullable(),
89
104
  })
90
105
 
91
106
  export type AcsCredentialWarningMap = z.infer<typeof acs_credential_warning_map>
@@ -17,12 +17,6 @@ const error_code_description =
17
17
 
18
18
  const acs_encoder_removed = common_acs_encoder_error.extend({
19
19
  error_code: z.literal('acs_encoder_removed').describe(error_code_description),
20
- _event_id: z
21
- .string()
22
- .uuid()
23
- .describe(
24
- 'ID of the event that was created when the `acs_encoder` was removed.',
25
- ),
26
20
  })
27
21
 
28
22
  const acs_encoder_error =
@@ -178,6 +178,7 @@ const time_zone_does_not_match_location = common_acs_system_warning.extend({
178
178
  .describe(
179
179
  'Indicates the ACS system time zone could not be determined because the reported physical location does not match the time zone configured on the physical ACS entrances.',
180
180
  ),
181
+ misconfigured_acs_entrance_ids: z.array(z.string().uuid()).optional(),
181
182
  })
182
183
 
183
184
  const acs_system_warning = z
@@ -190,6 +191,9 @@ const acs_system_warning = z
190
191
  export const acs_system_warning_map = z.object({
191
192
  salto_ks_subscription_limit_almost_reached:
192
193
  salto_ks_subscription_limit_almost_reached.optional().nullable(),
194
+ time_zone_does_not_match_location: time_zone_does_not_match_location
195
+ .optional()
196
+ .nullable(),
193
197
  })
194
198
 
195
199
  export type AcsSystemWarningMap = z.infer<typeof acs_system_warning_map>
@@ -178,6 +178,7 @@ const common_acs_user = z
178
178
  ),
179
179
  is_suspended: z
180
180
  .boolean()
181
+ .optional()
181
182
  .describe(
182
183
  'Indicates whether the `acs_user` is currently [suspended](https://docs.seam.co/latest/capability-guides/access-systems/user-management/suspending-and-unsuspending-users).',
183
184
  ),
@@ -4,6 +4,7 @@ export const acs_entrance_dormakaba_community_metadata = z.object({
4
4
  access_point_name: z.string(),
5
5
  common_area_number: z.number().optional(),
6
6
  inner_access_points_names: z.array(z.string()).optional(),
7
+ lease_ids: z.array(z.string()).optional(),
7
8
  })
8
9
 
9
10
  export type AcsEntranceDormakabaCommunityMetadata = z.infer<
@@ -88,7 +88,6 @@ export const PROVIDER_CATEGORY_MAP = {
88
88
  'visionline',
89
89
  'assa_abloy_credential_service',
90
90
  'latch',
91
- 'assa_abloy_vostio',
92
91
  ],
93
92
 
94
93
  consumer_smartlocks: [
@@ -116,6 +115,7 @@ export const PROVIDER_CATEGORY_MAP = {
116
115
  'assa_abloy_vostio',
117
116
  'assa_abloy_vostio_credential_service',
118
117
  'salto_space',
118
+ 'assa_abloy_vostio',
119
119
  ],
120
120
 
121
121
  internal_beta: ALL_DEVICE_PROVIDERS,
@@ -505,6 +505,31 @@ export default {
505
505
  required: ['created_at', 'message', 'warning_code'],
506
506
  type: 'object',
507
507
  },
508
+ {
509
+ description:
510
+ 'An unknown issue occurred while syncing the state of this credential with the provider. This issue may affect the proper functioning of this credential.',
511
+ properties: {
512
+ created_at: {
513
+ description:
514
+ 'Date and time at which Seam created the warning.',
515
+ format: 'date-time',
516
+ type: 'string',
517
+ },
518
+ message: {
519
+ description:
520
+ 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.',
521
+ type: 'string',
522
+ },
523
+ warning_code: {
524
+ description:
525
+ 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
526
+ enum: ['unknown_issue_with_credential'],
527
+ type: 'string',
528
+ },
529
+ },
530
+ required: ['created_at', 'message', 'warning_code'],
531
+ type: 'object',
532
+ },
508
533
  ],
509
534
  },
510
535
  type: 'array',
@@ -616,6 +641,7 @@ export default {
616
641
  items: { type: 'string' },
617
642
  type: 'array',
618
643
  },
644
+ lease_ids: { items: { type: 'string' }, type: 'array' },
619
645
  },
620
646
  required: ['access_point_name'],
621
647
  type: 'object',
@@ -1066,6 +1092,10 @@ export default {
1066
1092
  'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.',
1067
1093
  type: 'string',
1068
1094
  },
1095
+ misconfigured_acs_entrance_ids: {
1096
+ items: { format: 'uuid', type: 'string' },
1097
+ type: 'array',
1098
+ },
1069
1099
  warning_code: {
1070
1100
  description:
1071
1101
  'Indicates the ACS system time zone could not be determined because the reported physical location does not match the time zone configured on the physical ACS entrances.',
@@ -1395,7 +1425,6 @@ export default {
1395
1425
  'workspace_id',
1396
1426
  'created_at',
1397
1427
  'display_name',
1398
- 'is_suspended',
1399
1428
  'warnings',
1400
1429
  'errors',
1401
1430
  'is_managed',
@@ -1956,6 +1985,35 @@ export default {
1956
1985
  ],
1957
1986
  type: 'object',
1958
1987
  },
1988
+ {
1989
+ description:
1990
+ 'An unknown issue occurred while syncing the state of this credential with the provider. This issue may affect the proper functioning of this credential.',
1991
+ properties: {
1992
+ created_at: {
1993
+ description:
1994
+ 'Date and time at which Seam created the warning.',
1995
+ format: 'date-time',
1996
+ type: 'string',
1997
+ },
1998
+ message: {
1999
+ description:
2000
+ 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.',
2001
+ type: 'string',
2002
+ },
2003
+ warning_code: {
2004
+ description:
2005
+ 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
2006
+ enum: ['unknown_issue_with_credential'],
2007
+ type: 'string',
2008
+ },
2009
+ },
2010
+ required: [
2011
+ 'created_at',
2012
+ 'message',
2013
+ 'warning_code',
2014
+ ],
2015
+ type: 'object',
2016
+ },
1959
2017
  ],
1960
2018
  },
1961
2019
  type: 'array',
@@ -2254,6 +2312,35 @@ export default {
2254
2312
  ],
2255
2313
  type: 'object',
2256
2314
  },
2315
+ {
2316
+ description:
2317
+ 'An unknown issue occurred while syncing the state of this credential with the provider. This issue may affect the proper functioning of this credential.',
2318
+ properties: {
2319
+ created_at: {
2320
+ description:
2321
+ 'Date and time at which Seam created the warning.',
2322
+ format: 'date-time',
2323
+ type: 'string',
2324
+ },
2325
+ message: {
2326
+ description:
2327
+ 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.',
2328
+ type: 'string',
2329
+ },
2330
+ warning_code: {
2331
+ description:
2332
+ 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
2333
+ enum: ['unknown_issue_with_credential'],
2334
+ type: 'string',
2335
+ },
2336
+ },
2337
+ required: [
2338
+ 'created_at',
2339
+ 'message',
2340
+ 'warning_code',
2341
+ ],
2342
+ type: 'object',
2343
+ },
2257
2344
  ],
2258
2345
  },
2259
2346
  type: 'array',
@@ -2685,6 +2772,35 @@ export default {
2685
2772
  ],
2686
2773
  type: 'object',
2687
2774
  },
2775
+ {
2776
+ description:
2777
+ 'An unknown issue occurred while syncing the state of this credential with the provider. This issue may affect the proper functioning of this credential.',
2778
+ properties: {
2779
+ created_at: {
2780
+ description:
2781
+ 'Date and time at which Seam created the warning.',
2782
+ format: 'date-time',
2783
+ type: 'string',
2784
+ },
2785
+ message: {
2786
+ description:
2787
+ 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.',
2788
+ type: 'string',
2789
+ },
2790
+ warning_code: {
2791
+ description:
2792
+ 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
2793
+ enum: ['unknown_issue_with_credential'],
2794
+ type: 'string',
2795
+ },
2796
+ },
2797
+ required: [
2798
+ 'created_at',
2799
+ 'message',
2800
+ 'warning_code',
2801
+ ],
2802
+ type: 'object',
2803
+ },
2688
2804
  ],
2689
2805
  },
2690
2806
  type: 'array',
@@ -2982,6 +3098,35 @@ export default {
2982
3098
  ],
2983
3099
  type: 'object',
2984
3100
  },
3101
+ {
3102
+ description:
3103
+ 'An unknown issue occurred while syncing the state of this credential with the provider. This issue may affect the proper functioning of this credential.',
3104
+ properties: {
3105
+ created_at: {
3106
+ description:
3107
+ 'Date and time at which Seam created the warning.',
3108
+ format: 'date-time',
3109
+ type: 'string',
3110
+ },
3111
+ message: {
3112
+ description:
3113
+ 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.',
3114
+ type: 'string',
3115
+ },
3116
+ warning_code: {
3117
+ description:
3118
+ 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
3119
+ enum: ['unknown_issue_with_credential'],
3120
+ type: 'string',
3121
+ },
3122
+ },
3123
+ required: [
3124
+ 'created_at',
3125
+ 'message',
3126
+ 'warning_code',
3127
+ ],
3128
+ type: 'object',
3129
+ },
2985
3130
  ],
2986
3131
  },
2987
3132
  type: 'array',
@@ -13685,6 +13830,35 @@ export default {
13685
13830
  ],
13686
13831
  type: 'object',
13687
13832
  },
13833
+ {
13834
+ description:
13835
+ 'An unknown issue occurred while syncing the state of this credential with the provider. This issue may affect the proper functioning of this credential.',
13836
+ properties: {
13837
+ created_at: {
13838
+ description:
13839
+ 'Date and time at which Seam created the warning.',
13840
+ format: 'date-time',
13841
+ type: 'string',
13842
+ },
13843
+ message: {
13844
+ description:
13845
+ 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.',
13846
+ type: 'string',
13847
+ },
13848
+ warning_code: {
13849
+ description:
13850
+ 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
13851
+ enum: ['unknown_issue_with_credential'],
13852
+ type: 'string',
13853
+ },
13854
+ },
13855
+ required: [
13856
+ 'created_at',
13857
+ 'message',
13858
+ 'warning_code',
13859
+ ],
13860
+ type: 'object',
13861
+ },
13688
13862
  ],
13689
13863
  },
13690
13864
  type: 'array',
@@ -14086,6 +14260,35 @@ export default {
14086
14260
  ],
14087
14261
  type: 'object',
14088
14262
  },
14263
+ {
14264
+ description:
14265
+ 'An unknown issue occurred while syncing the state of this credential with the provider. This issue may affect the proper functioning of this credential.',
14266
+ properties: {
14267
+ created_at: {
14268
+ description:
14269
+ 'Date and time at which Seam created the warning.',
14270
+ format: 'date-time',
14271
+ type: 'string',
14272
+ },
14273
+ message: {
14274
+ description:
14275
+ 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.',
14276
+ type: 'string',
14277
+ },
14278
+ warning_code: {
14279
+ description:
14280
+ 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
14281
+ enum: ['unknown_issue_with_credential'],
14282
+ type: 'string',
14283
+ },
14284
+ },
14285
+ required: [
14286
+ 'created_at',
14287
+ 'message',
14288
+ 'warning_code',
14289
+ ],
14290
+ type: 'object',
14291
+ },
14089
14292
  ],
14090
14293
  },
14091
14294
  type: 'array',
@@ -14412,12 +14615,6 @@ export default {
14412
14615
  description:
14413
14616
  'Error associated with the `acs_encoder`.',
14414
14617
  properties: {
14415
- _event_id: {
14416
- description:
14417
- 'ID of the event that was created when the `acs_encoder` was removed.',
14418
- format: 'uuid',
14419
- type: 'string',
14420
- },
14421
14618
  created_at: {
14422
14619
  description:
14423
14620
  'Date and time at which Seam created the error.',
@@ -14436,12 +14633,7 @@ export default {
14436
14633
  type: 'string',
14437
14634
  },
14438
14635
  },
14439
- required: [
14440
- 'created_at',
14441
- 'message',
14442
- 'error_code',
14443
- '_event_id',
14444
- ],
14636
+ required: ['created_at', 'message', 'error_code'],
14445
14637
  type: 'object',
14446
14638
  },
14447
14639
  type: 'array',
@@ -16178,7 +16370,6 @@ export default {
16178
16370
  'workspace_id',
16179
16371
  'created_at',
16180
16372
  'display_name',
16181
- 'is_suspended',
16182
16373
  'warnings',
16183
16374
  'errors',
16184
16375
  'is_managed',
@@ -16574,7 +16765,6 @@ export default {
16574
16765
  'workspace_id',
16575
16766
  'created_at',
16576
16767
  'display_name',
16577
- 'is_suspended',
16578
16768
  'warnings',
16579
16769
  'errors',
16580
16770
  'is_managed',
@@ -23902,6 +24092,7 @@ export default {
23902
24092
  tags: ['/user_identities'],
23903
24093
  'x-fern-ignore': true,
23904
24094
  'x-response-key': null,
24095
+ 'x-title': 'Update a User Identity',
23905
24096
  },
23906
24097
  post: {
23907
24098
  operationId: 'userIdentitiesUpdatePost',
@@ -23967,6 +24158,7 @@ export default {
23967
24158
  'x-fern-sdk-group-name': ['user_identities'],
23968
24159
  'x-fern-sdk-method-name': 'update',
23969
24160
  'x-response-key': null,
24161
+ 'x-title': 'Update a User Identity',
23970
24162
  },
23971
24163
  },
23972
24164
  '/webhooks/create': {