@seamapi/types 1.320.0 → 1.321.1

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 (26) hide show
  1. package/dist/connect.cjs +140 -33
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +315 -188
  4. package/lib/seam/connect/models/acs/acs-access-group.d.ts +105 -13
  5. package/lib/seam/connect/models/acs/acs-access-group.js +28 -0
  6. package/lib/seam/connect/models/acs/acs-access-group.js.map +1 -1
  7. package/lib/seam/connect/models/acs/acs-credential.d.ts +22 -22
  8. package/lib/seam/connect/models/acs/acs-credential.js +4 -4
  9. package/lib/seam/connect/models/acs/acs-credential.js.map +1 -1
  10. package/lib/seam/connect/models/acs/acs-entrance.d.ts +0 -10
  11. package/lib/seam/connect/models/acs/metadata/dormakaba-community.d.ts +0 -6
  12. package/lib/seam/connect/models/acs/metadata/dormakaba-community.js +0 -2
  13. package/lib/seam/connect/models/acs/metadata/dormakaba-community.js.map +1 -1
  14. package/lib/seam/connect/models/action-attempts/action-attempt.d.ts +32 -32
  15. package/lib/seam/connect/models/action-attempts/encode-credential.d.ts +14 -14
  16. package/lib/seam/connect/models/action-attempts/scan-credential.d.ts +18 -18
  17. package/lib/seam/connect/openapi.d.ts +75 -12
  18. package/lib/seam/connect/openapi.js +101 -12
  19. package/lib/seam/connect/openapi.js.map +1 -1
  20. package/lib/seam/connect/route-types.d.ts +138 -112
  21. package/package.json +2 -2
  22. package/src/lib/seam/connect/models/acs/acs-access-group.ts +45 -0
  23. package/src/lib/seam/connect/models/acs/acs-credential.ts +4 -4
  24. package/src/lib/seam/connect/models/acs/metadata/dormakaba-community.ts +0 -2
  25. package/src/lib/seam/connect/openapi.ts +114 -12
  26. package/src/lib/seam/connect/route-types.ts +138 -104
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/types",
3
- "version": "1.320.0",
3
+ "version": "1.321.1",
4
4
  "description": "TypeScript types for the Seam API.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -92,7 +92,7 @@
92
92
  "zod": "^3.21.4"
93
93
  },
94
94
  "devDependencies": {
95
- "@seamapi/blueprint": "^0.30.0",
95
+ "@seamapi/blueprint": "^0.32.0",
96
96
  "@types/node": "^20.8.10",
97
97
  "concurrently": "^8.2.0",
98
98
  "del-cli": "^5.0.0",
@@ -7,12 +7,54 @@ export const acs_access_group_external_type = z.enum([
7
7
  'salto_ks_access_group',
8
8
  'brivo_group',
9
9
  'salto_space_group',
10
+ 'dormakaba_community_access_group',
10
11
  ])
11
12
 
12
13
  export type AcsAccessGroupExternalType = z.infer<
13
14
  typeof acs_access_group_external_type
14
15
  >
15
16
 
17
+ const common_acs_access_group_warning = z.object({
18
+ created_at: z
19
+ .string()
20
+ .datetime()
21
+ .describe('Date and time at which Seam created the warning.'),
22
+ message: z
23
+ .string()
24
+ .describe(
25
+ 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.',
26
+ ),
27
+ })
28
+
29
+ const warning_code_description =
30
+ 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.'
31
+
32
+ export const unknown_issue_with_acs_access_group =
33
+ common_acs_access_group_warning
34
+ .extend({
35
+ warning_code: z
36
+ .literal('unknown_issue_with_acs_access_group')
37
+ .describe(warning_code_description),
38
+ })
39
+ .describe(
40
+ 'An unknown issue occurred while syncing the state of this access group with the provider. ' +
41
+ 'This issue may affect the proper functioning of this access group.',
42
+ )
43
+
44
+ const acs_access_group_warning = unknown_issue_with_acs_access_group.describe(
45
+ 'Warning associated with the `acs_access_group`.',
46
+ )
47
+
48
+ const acs_access_group_warning_map = z.object({
49
+ unknown_issue_with_acs_access_group: unknown_issue_with_acs_access_group
50
+ .optional()
51
+ .nullable(),
52
+ })
53
+
54
+ export type AcsAccessGroupWarningMap = z.infer<
55
+ typeof acs_access_group_warning_map
56
+ >
57
+
16
58
  const common_acs_access_group = z.object({
17
59
  acs_access_group_id: z.string().uuid().describe('ID of the access group.'),
18
60
  acs_system_id: z
@@ -51,6 +93,9 @@ const common_acs_access_group = z.object({
51
93
  .string()
52
94
  .datetime()
53
95
  .describe('Date and time at which the access group was created.'),
96
+ warnings: z
97
+ .array(acs_access_group_warning)
98
+ .describe('Warnings associated with the `acs_access_group`.'),
54
99
  })
55
100
 
56
101
  export const acs_access_group = common_acs_access_group.extend({
@@ -70,10 +70,10 @@ const being_deleted = common_acs_credential_warning
70
70
  })
71
71
  .describe('Indicates that this credential is being deleted.')
72
72
 
73
- export const unknown_issue_with_credential = common_acs_credential_warning
73
+ export const unknown_issue_with_acs_credential = common_acs_credential_warning
74
74
  .extend({
75
75
  warning_code: z
76
- .literal('unknown_issue_with_credential')
76
+ .literal('unknown_issue_with_acs_credential')
77
77
  .describe(warning_code_description),
78
78
  })
79
79
  .describe(
@@ -87,7 +87,7 @@ const acs_credential_warning = z
87
87
  schedule_externally_modified,
88
88
  schedule_modified,
89
89
  being_deleted,
90
- unknown_issue_with_credential,
90
+ unknown_issue_with_acs_credential,
91
91
  ])
92
92
  .describe('Warning associated with the `acs_credential`.')
93
93
 
@@ -98,7 +98,7 @@ const acs_credential_warning_map = z.object({
98
98
  .nullable(),
99
99
  schedule_modified: schedule_modified.optional().nullable(),
100
100
  being_deleted: being_deleted.optional().nullable(),
101
- unknown_issue_with_credential: unknown_issue_with_credential
101
+ unknown_issue_with_acs_credential: unknown_issue_with_acs_credential
102
102
  .optional()
103
103
  .nullable(),
104
104
  })
@@ -3,8 +3,6 @@ import { z } from 'zod'
3
3
  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
- inner_access_points_names: z.array(z.string()).optional(),
7
- lease_ids: z.array(z.string()).optional(),
8
6
  })
9
7
 
10
8
  export type AcsEntranceDormakabaCommunityMetadata = z.infer<
@@ -197,6 +197,7 @@ export default {
197
197
  'salto_ks_access_group',
198
198
  'brivo_group',
199
199
  'salto_space_group',
200
+ 'dormakaba_community_access_group',
200
201
  ],
201
202
  type: 'string',
202
203
  'x-deprecated': 'Use `external_type`.',
@@ -232,6 +233,7 @@ export default {
232
233
  'salto_ks_access_group',
233
234
  'brivo_group',
234
235
  'salto_space_group',
236
+ 'dormakaba_community_access_group',
235
237
  ],
236
238
  type: 'string',
237
239
  },
@@ -242,6 +244,34 @@ export default {
242
244
  },
243
245
  is_managed: { enum: [true], type: 'boolean' },
244
246
  name: { description: 'Name of the access group.', type: 'string' },
247
+ warnings: {
248
+ description: 'Warnings associated with the `acs_access_group`.',
249
+ items: {
250
+ description: 'Warning associated with the `acs_access_group`.',
251
+ properties: {
252
+ created_at: {
253
+ description:
254
+ 'Date and time at which Seam created the warning.',
255
+ format: 'date-time',
256
+ type: 'string',
257
+ },
258
+ message: {
259
+ description:
260
+ 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.',
261
+ type: 'string',
262
+ },
263
+ warning_code: {
264
+ description:
265
+ 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
266
+ enum: ['unknown_issue_with_acs_access_group'],
267
+ type: 'string',
268
+ },
269
+ },
270
+ required: ['created_at', 'message', 'warning_code'],
271
+ type: 'object',
272
+ },
273
+ type: 'array',
274
+ },
245
275
  workspace_id: {
246
276
  description:
247
277
  'ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) that contains the access group.',
@@ -260,6 +290,7 @@ export default {
260
290
  'external_type',
261
291
  'external_type_display_name',
262
292
  'created_at',
293
+ 'warnings',
263
294
  'is_managed',
264
295
  ],
265
296
  type: 'object',
@@ -523,7 +554,7 @@ export default {
523
554
  warning_code: {
524
555
  description:
525
556
  'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
526
- enum: ['unknown_issue_with_credential'],
557
+ enum: ['unknown_issue_with_acs_credential'],
527
558
  type: 'string',
528
559
  },
529
560
  },
@@ -637,11 +668,6 @@ export default {
637
668
  properties: {
638
669
  access_point_name: { type: 'string' },
639
670
  common_area_number: { format: 'float', type: 'number' },
640
- inner_access_points_names: {
641
- items: { type: 'string' },
642
- type: 'array',
643
- },
644
- lease_ids: { items: { type: 'string' }, type: 'array' },
645
671
  },
646
672
  required: ['access_point_name'],
647
673
  type: 'object',
@@ -2005,7 +2031,9 @@ export default {
2005
2031
  warning_code: {
2006
2032
  description:
2007
2033
  'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
2008
- enum: ['unknown_issue_with_credential'],
2034
+ enum: [
2035
+ 'unknown_issue_with_acs_credential',
2036
+ ],
2009
2037
  type: 'string',
2010
2038
  },
2011
2039
  },
@@ -2332,7 +2360,9 @@ export default {
2332
2360
  warning_code: {
2333
2361
  description:
2334
2362
  'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
2335
- enum: ['unknown_issue_with_credential'],
2363
+ enum: [
2364
+ 'unknown_issue_with_acs_credential',
2365
+ ],
2336
2366
  type: 'string',
2337
2367
  },
2338
2368
  },
@@ -2792,7 +2822,7 @@ export default {
2792
2822
  warning_code: {
2793
2823
  description:
2794
2824
  'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
2795
- enum: ['unknown_issue_with_credential'],
2825
+ enum: ['unknown_issue_with_acs_credential'],
2796
2826
  type: 'string',
2797
2827
  },
2798
2828
  },
@@ -3118,7 +3148,7 @@ export default {
3118
3148
  warning_code: {
3119
3149
  description:
3120
3150
  'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
3121
- enum: ['unknown_issue_with_credential'],
3151
+ enum: ['unknown_issue_with_acs_credential'],
3122
3152
  type: 'string',
3123
3153
  },
3124
3154
  },
@@ -12420,6 +12450,7 @@ export default {
12420
12450
  'salto_ks_access_group',
12421
12451
  'brivo_group',
12422
12452
  'salto_space_group',
12453
+ 'dormakaba_community_access_group',
12423
12454
  ],
12424
12455
  type: 'string',
12425
12456
  'x-deprecated': 'Use `external_type`.',
@@ -12456,6 +12487,7 @@ export default {
12456
12487
  'salto_ks_access_group',
12457
12488
  'brivo_group',
12458
12489
  'salto_space_group',
12490
+ 'dormakaba_community_access_group',
12459
12491
  ],
12460
12492
  type: 'string',
12461
12493
  },
@@ -12469,6 +12501,36 @@ export default {
12469
12501
  description: 'Name of the access group.',
12470
12502
  type: 'string',
12471
12503
  },
12504
+ warnings: {
12505
+ description:
12506
+ 'Warnings associated with the `acs_access_group`.',
12507
+ items: {
12508
+ description:
12509
+ 'Warning associated with the `acs_access_group`.',
12510
+ properties: {
12511
+ created_at: {
12512
+ description:
12513
+ 'Date and time at which Seam created the warning.',
12514
+ format: 'date-time',
12515
+ type: 'string',
12516
+ },
12517
+ message: {
12518
+ description:
12519
+ 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.',
12520
+ type: 'string',
12521
+ },
12522
+ warning_code: {
12523
+ description:
12524
+ 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
12525
+ enum: ['unknown_issue_with_acs_access_group'],
12526
+ type: 'string',
12527
+ },
12528
+ },
12529
+ required: ['created_at', 'message', 'warning_code'],
12530
+ type: 'object',
12531
+ },
12532
+ type: 'array',
12533
+ },
12472
12534
  workspace_id: {
12473
12535
  description:
12474
12536
  'ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) that contains the access group.',
@@ -12487,6 +12549,7 @@ export default {
12487
12549
  'external_type',
12488
12550
  'external_type_display_name',
12489
12551
  'created_at',
12552
+ 'warnings',
12490
12553
  'is_managed',
12491
12554
  ],
12492
12555
  type: 'object',
@@ -12563,6 +12626,7 @@ export default {
12563
12626
  'salto_ks_access_group',
12564
12627
  'brivo_group',
12565
12628
  'salto_space_group',
12629
+ 'dormakaba_community_access_group',
12566
12630
  ],
12567
12631
  type: 'string',
12568
12632
  'x-deprecated': 'Use `external_type`.',
@@ -12599,6 +12663,7 @@ export default {
12599
12663
  'salto_ks_access_group',
12600
12664
  'brivo_group',
12601
12665
  'salto_space_group',
12666
+ 'dormakaba_community_access_group',
12602
12667
  ],
12603
12668
  type: 'string',
12604
12669
  },
@@ -12612,6 +12677,40 @@ export default {
12612
12677
  description: 'Name of the access group.',
12613
12678
  type: 'string',
12614
12679
  },
12680
+ warnings: {
12681
+ description:
12682
+ 'Warnings associated with the `acs_access_group`.',
12683
+ items: {
12684
+ description:
12685
+ 'Warning associated with the `acs_access_group`.',
12686
+ properties: {
12687
+ created_at: {
12688
+ description:
12689
+ 'Date and time at which Seam created the warning.',
12690
+ format: 'date-time',
12691
+ type: 'string',
12692
+ },
12693
+ message: {
12694
+ description:
12695
+ 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.',
12696
+ type: 'string',
12697
+ },
12698
+ warning_code: {
12699
+ description:
12700
+ 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
12701
+ enum: ['unknown_issue_with_acs_access_group'],
12702
+ type: 'string',
12703
+ },
12704
+ },
12705
+ required: [
12706
+ 'created_at',
12707
+ 'message',
12708
+ 'warning_code',
12709
+ ],
12710
+ type: 'object',
12711
+ },
12712
+ type: 'array',
12713
+ },
12615
12714
  workspace_id: {
12616
12715
  description:
12617
12716
  'ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) that contains the access group.',
@@ -12630,6 +12729,7 @@ export default {
12630
12729
  'external_type',
12631
12730
  'external_type_display_name',
12632
12731
  'created_at',
12732
+ 'warnings',
12633
12733
  'is_managed',
12634
12734
  ],
12635
12735
  type: 'object',
@@ -13875,7 +13975,7 @@ export default {
13875
13975
  warning_code: {
13876
13976
  description:
13877
13977
  'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
13878
- enum: ['unknown_issue_with_credential'],
13978
+ enum: ['unknown_issue_with_acs_credential'],
13879
13979
  type: 'string',
13880
13980
  },
13881
13981
  },
@@ -14305,7 +14405,9 @@ export default {
14305
14405
  warning_code: {
14306
14406
  description:
14307
14407
  'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
14308
- enum: ['unknown_issue_with_credential'],
14408
+ enum: [
14409
+ 'unknown_issue_with_acs_credential',
14410
+ ],
14309
14411
  type: 'string',
14310
14412
  },
14311
14413
  },