@seamapi/types 1.64.0 → 1.66.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 (32) hide show
  1. package/dist/connect.cjs +122 -80
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +318 -324
  4. package/dist/devicedb.d.cts +2 -22
  5. package/lib/seam/connect/openapi.d.ts +254 -276
  6. package/lib/seam/connect/openapi.js +113 -71
  7. package/lib/seam/connect/openapi.js.map +1 -1
  8. package/lib/seam/connect/route-types.d.ts +61 -42
  9. package/lib/seam/connect/unstable/models/acs/access_group.js +1 -1
  10. package/lib/seam/connect/unstable/models/acs/access_group.js.map +1 -1
  11. package/lib/seam/connect/unstable/models/acs/user.d.ts +15 -6
  12. package/lib/seam/connect/unstable/models/acs/user.js +5 -2
  13. package/lib/seam/connect/unstable/models/acs/user.js.map +1 -1
  14. package/lib/seam/connect/unstable/models/capability-properties/access-code.js +6 -6
  15. package/lib/seam/connect/unstable/models/capability-properties/access-code.js.map +1 -1
  16. package/lib/seam/connect/unstable/models/devices/capabilities-supported.d.ts +1 -1
  17. package/lib/seam/connect/unstable/models/devices/capabilities-supported.js +1 -0
  18. package/lib/seam/connect/unstable/models/devices/capabilities-supported.js.map +1 -1
  19. package/lib/seam/connect/unstable/models/devices/device-metadata.js +1 -1
  20. package/lib/seam/connect/unstable/models/devices/device-metadata.js.map +1 -1
  21. package/lib/seam/connect/unstable/models/devices/device-type.d.ts +10 -1
  22. package/lib/seam/connect/unstable/models/devices/device-type.js +8 -0
  23. package/lib/seam/connect/unstable/models/devices/device-type.js.map +1 -1
  24. package/lib/seam/connect/unstable/models/devices/managed-device.d.ts +6 -6
  25. package/lib/seam/connect/unstable/models/devices/unmanaged-device.d.ts +6 -6
  26. package/package.json +8 -8
  27. package/src/lib/seam/connect/openapi.ts +113 -71
  28. package/src/lib/seam/connect/route-types.ts +128 -43
  29. package/src/lib/seam/connect/unstable/models/acs/access_group.ts +1 -1
  30. package/src/lib/seam/connect/unstable/models/acs/user.ts +5 -2
  31. package/src/lib/seam/connect/unstable/models/devices/capabilities-supported.ts +1 -0
  32. package/src/lib/seam/connect/unstable/models/devices/device-type.ts +20 -0
@@ -228,6 +228,7 @@ export default {
228
228
  type: 'string',
229
229
  },
230
230
  email_address: { format: 'email', type: 'string' },
231
+ ends_at: { format: 'date-time', type: 'string' },
231
232
  external_type: {
232
233
  enum: ['pti_user', 'brivo_user', 'hid_cm_user', 'salto_site_user'],
233
234
  type: 'string',
@@ -236,7 +237,9 @@ export default {
236
237
  full_name: { type: 'string' },
237
238
  hid_acs_system_id: { format: 'uuid', type: 'string' },
238
239
  is_suspended: { type: 'boolean' },
240
+ is_virtual: { type: 'boolean' },
239
241
  phone_number: { nullable: true, type: 'string' },
242
+ starts_at: { format: 'date-time', type: 'string' },
240
243
  workspace_id: { format: 'uuid', type: 'string' },
241
244
  },
242
245
  required: [
@@ -245,9 +248,8 @@ export default {
245
248
  'workspace_id',
246
249
  'created_at',
247
250
  'display_name',
248
- 'external_type',
249
- 'external_type_display_name',
250
251
  'is_suspended',
252
+ 'is_virtual',
251
253
  ],
252
254
  type: 'object',
253
255
  },
@@ -496,6 +498,7 @@ export default {
496
498
  'noise_detection',
497
499
  'thermostat',
498
500
  'battery',
501
+ 'phone',
499
502
  ],
500
503
  type: 'string',
501
504
  },
@@ -557,6 +560,7 @@ export default {
557
560
  enum: ['ecobee_thermostat', 'nest_thermostat'],
558
561
  type: 'string',
559
562
  },
563
+ { enum: ['ios_phone', 'android_phone'], type: 'string' },
560
564
  ],
561
565
  },
562
566
  errors: {
@@ -1722,6 +1726,7 @@ export default {
1722
1726
  'noise_detection',
1723
1727
  'thermostat',
1724
1728
  'battery',
1729
+ 'phone',
1725
1730
  ],
1726
1731
  type: 'string',
1727
1732
  },
@@ -1783,6 +1788,7 @@ export default {
1783
1788
  enum: ['ecobee_thermostat', 'nest_thermostat'],
1784
1789
  type: 'string',
1785
1790
  },
1791
+ { enum: ['ios_phone', 'android_phone'], type: 'string' },
1786
1792
  ],
1787
1793
  },
1788
1794
  errors: {
@@ -2014,6 +2020,7 @@ export default {
2014
2020
  is_offline_access_code: { type: 'boolean' },
2015
2021
  is_one_time_use: { type: 'boolean' },
2016
2022
  max_time_rounding: {
2023
+ default: '1hour',
2017
2024
  enum: ['1hour', '1day', '1h', '1d'],
2018
2025
  type: 'string',
2019
2026
  },
@@ -2098,6 +2105,7 @@ export default {
2098
2105
  is_offline_access_code: { type: 'boolean' },
2099
2106
  is_one_time_use: { type: 'boolean' },
2100
2107
  max_time_rounding: {
2108
+ default: '1hour',
2101
2109
  enum: ['1hour', '1day', '1h', '1d'],
2102
2110
  type: 'string',
2103
2111
  },
@@ -2179,6 +2187,7 @@ export default {
2179
2187
  is_offline_access_code: { type: 'boolean' },
2180
2188
  is_one_time_use: { type: 'boolean' },
2181
2189
  max_time_rounding: {
2190
+ default: '1hour',
2182
2191
  enum: ['1hour', '1day', '1h', '1d'],
2183
2192
  type: 'string',
2184
2193
  },
@@ -2907,6 +2916,7 @@ export default {
2907
2916
  is_offline_access_code: { type: 'boolean' },
2908
2917
  is_one_time_use: { type: 'boolean' },
2909
2918
  max_time_rounding: {
2919
+ default: '1hour',
2910
2920
  enum: ['1hour', '1day', '1h', '1d'],
2911
2921
  type: 'string',
2912
2922
  },
@@ -2981,6 +2991,7 @@ export default {
2981
2991
  is_offline_access_code: { type: 'boolean' },
2982
2992
  is_one_time_use: { type: 'boolean' },
2983
2993
  max_time_rounding: {
2994
+ default: '1hour',
2984
2995
  enum: ['1hour', '1day', '1h', '1d'],
2985
2996
  type: 'string',
2986
2997
  },
@@ -3057,6 +3068,7 @@ export default {
3057
3068
  is_offline_access_code: { type: 'boolean' },
3058
3069
  is_one_time_use: { type: 'boolean' },
3059
3070
  max_time_rounding: {
3071
+ default: '1hour',
3060
3072
  enum: ['1hour', '1day', '1h', '1d'],
3061
3073
  type: 'string',
3062
3074
  },
@@ -3281,9 +3293,9 @@ export default {
3281
3293
  401: { description: 'Unauthorized' },
3282
3294
  },
3283
3295
  security: [
3284
- { access_token: [], seam_workspace: [] },
3285
- { seam_client_session_token: [] },
3286
- { client_session_token: [] },
3296
+ { pat_with_workspace: [] },
3297
+ { console_session: [] },
3298
+ { api_key: [] },
3287
3299
  ],
3288
3300
  summary: '/acs/access_groups/list',
3289
3301
  tags: [],
@@ -3375,9 +3387,9 @@ export default {
3375
3387
  401: { description: 'Unauthorized' },
3376
3388
  },
3377
3389
  security: [
3378
- { access_token: [], seam_workspace: [] },
3379
- { seam_client_session_token: [] },
3380
- { client_session_token: [] },
3390
+ { pat_with_workspace: [] },
3391
+ { console_session: [] },
3392
+ { api_key: [] },
3381
3393
  ],
3382
3394
  summary: '/acs/access_groups/remove_user',
3383
3395
  tags: [],
@@ -3450,9 +3462,9 @@ export default {
3450
3462
  401: { description: 'Unauthorized' },
3451
3463
  },
3452
3464
  security: [
3453
- { access_token: [], seam_workspace: [] },
3454
- { seam_client_session_token: [] },
3455
- { client_session_token: [] },
3465
+ { pat_with_workspace: [] },
3466
+ { console_session: [] },
3467
+ { api_key: [] },
3456
3468
  ],
3457
3469
  summary: '/acs/credential_pools/list',
3458
3470
  tags: [],
@@ -3531,9 +3543,9 @@ export default {
3531
3543
  401: { description: 'Unauthorized' },
3532
3544
  },
3533
3545
  security: [
3534
- { access_token: [], seam_workspace: [] },
3535
- { seam_client_session_token: [] },
3536
- { client_session_token: [] },
3546
+ { pat_with_workspace: [] },
3547
+ { console_session: [] },
3548
+ { api_key: [] },
3537
3549
  ],
3538
3550
  summary: '/acs/credential_provisioning_automations/launch',
3539
3551
  tags: [],
@@ -3616,9 +3628,9 @@ export default {
3616
3628
  401: { description: 'Unauthorized' },
3617
3629
  },
3618
3630
  security: [
3619
- { access_token: [], seam_workspace: [] },
3620
- { seam_client_session_token: [] },
3621
- { client_session_token: [] },
3631
+ { pat_with_workspace: [] },
3632
+ { console_session: [] },
3633
+ { api_key: [] },
3622
3634
  ],
3623
3635
  summary: '/acs/credentials/assign',
3624
3636
  tags: [],
@@ -3698,9 +3710,9 @@ export default {
3698
3710
  401: { description: 'Unauthorized' },
3699
3711
  },
3700
3712
  security: [
3701
- { access_token: [], seam_workspace: [] },
3702
- { seam_client_session_token: [] },
3703
- { client_session_token: [] },
3713
+ { pat_with_workspace: [] },
3714
+ { console_session: [] },
3715
+ { api_key: [] },
3704
3716
  ],
3705
3717
  summary: '/acs/credentials/assign',
3706
3718
  tags: [],
@@ -3787,9 +3799,9 @@ export default {
3787
3799
  401: { description: 'Unauthorized' },
3788
3800
  },
3789
3801
  security: [
3790
- { access_token: [], seam_workspace: [] },
3791
- { seam_client_session_token: [] },
3792
- { client_session_token: [] },
3802
+ { pat_with_workspace: [] },
3803
+ { console_session: [] },
3804
+ { api_key: [] },
3793
3805
  ],
3794
3806
  summary: '/acs/credentials/create',
3795
3807
  tags: [],
@@ -3830,9 +3842,9 @@ export default {
3830
3842
  401: { description: 'Unauthorized' },
3831
3843
  },
3832
3844
  security: [
3833
- { access_token: [], seam_workspace: [] },
3834
- { seam_client_session_token: [] },
3835
- { client_session_token: [] },
3845
+ { pat_with_workspace: [] },
3846
+ { console_session: [] },
3847
+ { api_key: [] },
3836
3848
  ],
3837
3849
  summary: '/acs/credentials/delete',
3838
3850
  tags: [],
@@ -3914,9 +3926,9 @@ export default {
3914
3926
  401: { description: 'Unauthorized' },
3915
3927
  },
3916
3928
  security: [
3917
- { access_token: [], seam_workspace: [] },
3918
- { seam_client_session_token: [] },
3919
- { client_session_token: [] },
3929
+ { pat_with_workspace: [] },
3930
+ { console_session: [] },
3931
+ { api_key: [] },
3920
3932
  ],
3921
3933
  summary: '/acs/credentials/get',
3922
3934
  tags: [],
@@ -4106,9 +4118,9 @@ export default {
4106
4118
  401: { description: 'Unauthorized' },
4107
4119
  },
4108
4120
  security: [
4109
- { access_token: [], seam_workspace: [] },
4110
- { seam_client_session_token: [] },
4111
- { client_session_token: [] },
4121
+ { pat_with_workspace: [] },
4122
+ { console_session: [] },
4123
+ { api_key: [] },
4112
4124
  ],
4113
4125
  summary: '/acs/credentials/unassign',
4114
4126
  tags: [],
@@ -4188,9 +4200,9 @@ export default {
4188
4200
  401: { description: 'Unauthorized' },
4189
4201
  },
4190
4202
  security: [
4191
- { access_token: [], seam_workspace: [] },
4192
- { seam_client_session_token: [] },
4193
- { client_session_token: [] },
4203
+ { pat_with_workspace: [] },
4204
+ { console_session: [] },
4205
+ { api_key: [] },
4194
4206
  ],
4195
4207
  summary: '/acs/credentials/unassign',
4196
4208
  tags: [],
@@ -4273,9 +4285,9 @@ export default {
4273
4285
  401: { description: 'Unauthorized' },
4274
4286
  },
4275
4287
  security: [
4276
- { access_token: [], seam_workspace: [] },
4277
- { seam_client_session_token: [] },
4278
- { client_session_token: [] },
4288
+ { pat_with_workspace: [] },
4289
+ { console_session: [] },
4290
+ { api_key: [] },
4279
4291
  ],
4280
4292
  summary: '/acs/credentials/update',
4281
4293
  tags: [],
@@ -4355,9 +4367,9 @@ export default {
4355
4367
  401: { description: 'Unauthorized' },
4356
4368
  },
4357
4369
  security: [
4358
- { access_token: [], seam_workspace: [] },
4359
- { seam_client_session_token: [] },
4360
- { client_session_token: [] },
4370
+ { pat_with_workspace: [] },
4371
+ { console_session: [] },
4372
+ { api_key: [] },
4361
4373
  ],
4362
4374
  summary: '/acs/credentials/update',
4363
4375
  tags: [],
@@ -4570,9 +4582,9 @@ export default {
4570
4582
  401: { description: 'Unauthorized' },
4571
4583
  },
4572
4584
  security: [
4573
- { access_token: [], seam_workspace: [] },
4574
- { seam_client_session_token: [] },
4575
- { client_session_token: [] },
4585
+ { pat_with_workspace: [] },
4586
+ { console_session: [] },
4587
+ { api_key: [] },
4576
4588
  ],
4577
4589
  summary: '/acs/systems/get',
4578
4590
  tags: [],
@@ -4618,9 +4630,10 @@ export default {
4618
4630
  401: { description: 'Unauthorized' },
4619
4631
  },
4620
4632
  security: [
4621
- { access_token: [], seam_workspace: [] },
4622
- { seam_client_session_token: [] },
4623
- { client_session_token: [] },
4633
+ { client_session: [] },
4634
+ { pat_with_workspace: [] },
4635
+ { console_session: [] },
4636
+ { api_key: [] },
4624
4637
  ],
4625
4638
  summary: '/acs/systems/list',
4626
4639
  tags: [],
@@ -4651,9 +4664,9 @@ export default {
4651
4664
  401: { description: 'Unauthorized' },
4652
4665
  },
4653
4666
  security: [
4654
- { access_token: [], seam_workspace: [] },
4655
- { seam_client_session_token: [] },
4656
- { client_session_token: [] },
4667
+ { pat_with_workspace: [] },
4668
+ { console_session: [] },
4669
+ { api_key: [] },
4657
4670
  ],
4658
4671
  summary: '/acs/users/add_to_access_group',
4659
4672
  tags: [],
@@ -4682,9 +4695,9 @@ export default {
4682
4695
  401: { description: 'Unauthorized' },
4683
4696
  },
4684
4697
  security: [
4685
- { access_token: [], seam_workspace: [] },
4686
- { seam_client_session_token: [] },
4687
- { client_session_token: [] },
4698
+ { pat_with_workspace: [] },
4699
+ { console_session: [] },
4700
+ { api_key: [] },
4688
4701
  ],
4689
4702
  summary: '/acs/users/add_to_access_group',
4690
4703
  tags: [],
@@ -4699,6 +4712,14 @@ export default {
4699
4712
  'application/json': {
4700
4713
  schema: {
4701
4714
  properties: {
4715
+ access_schedule: {
4716
+ properties: {
4717
+ ends_at: { format: 'date-time', type: 'string' },
4718
+ starts_at: { format: 'date-time', type: 'string' },
4719
+ },
4720
+ required: ['starts_at', 'ends_at'],
4721
+ type: 'object',
4722
+ },
4702
4723
  acs_access_group_ids: {
4703
4724
  default: [],
4704
4725
  items: { format: 'uuid', type: 'string' },
@@ -4740,9 +4761,9 @@ export default {
4740
4761
  401: { description: 'Unauthorized' },
4741
4762
  },
4742
4763
  security: [
4743
- { access_token: [], seam_workspace: [] },
4744
- { seam_client_session_token: [] },
4745
- { client_session_token: [] },
4764
+ { pat_with_workspace: [] },
4765
+ { console_session: [] },
4766
+ { api_key: [] },
4746
4767
  ],
4747
4768
  summary: '/acs/users/create',
4748
4769
  tags: [],
@@ -4781,9 +4802,9 @@ export default {
4781
4802
  401: { description: 'Unauthorized' },
4782
4803
  },
4783
4804
  security: [
4784
- { access_token: [], seam_workspace: [] },
4785
- { seam_client_session_token: [] },
4786
- { client_session_token: [] },
4805
+ { pat_with_workspace: [] },
4806
+ { console_session: [] },
4807
+ { api_key: [] },
4787
4808
  ],
4788
4809
  summary: '/acs/users/delete',
4789
4810
  tags: [],
@@ -4825,9 +4846,9 @@ export default {
4825
4846
  401: { description: 'Unauthorized' },
4826
4847
  },
4827
4848
  security: [
4828
- { access_token: [], seam_workspace: [] },
4829
- { seam_client_session_token: [] },
4830
- { client_session_token: [] },
4849
+ { pat_with_workspace: [] },
4850
+ { console_session: [] },
4851
+ { api_key: [] },
4831
4852
  ],
4832
4853
  summary: '/acs/users/get',
4833
4854
  tags: [],
@@ -4874,9 +4895,10 @@ export default {
4874
4895
  401: { description: 'Unauthorized' },
4875
4896
  },
4876
4897
  security: [
4877
- { access_token: [], seam_workspace: [] },
4878
- { seam_client_session_token: [] },
4879
- { client_session_token: [] },
4898
+ { client_session: [] },
4899
+ { pat_with_workspace: [] },
4900
+ { console_session: [] },
4901
+ { api_key: [] },
4880
4902
  ],
4881
4903
  summary: '/acs/users/list',
4882
4904
  tags: [],
@@ -4907,9 +4929,9 @@ export default {
4907
4929
  401: { description: 'Unauthorized' },
4908
4930
  },
4909
4931
  security: [
4910
- { access_token: [], seam_workspace: [] },
4911
- { seam_client_session_token: [] },
4912
- { client_session_token: [] },
4932
+ { pat_with_workspace: [] },
4933
+ { console_session: [] },
4934
+ { api_key: [] },
4913
4935
  ],
4914
4936
  summary: '/acs/users/remove_from_access_group',
4915
4937
  tags: [],
@@ -4948,9 +4970,9 @@ export default {
4948
4970
  401: { description: 'Unauthorized' },
4949
4971
  },
4950
4972
  security: [
4951
- { access_token: [], seam_workspace: [] },
4952
- { seam_client_session_token: [] },
4953
- { client_session_token: [] },
4973
+ { pat_with_workspace: [] },
4974
+ { console_session: [] },
4975
+ { api_key: [] },
4954
4976
  ],
4955
4977
  summary: '/acs/users/suspend',
4956
4978
  tags: [],
@@ -6397,6 +6419,7 @@ export default {
6397
6419
  enum: ['ecobee_thermostat', 'nest_thermostat'],
6398
6420
  type: 'string',
6399
6421
  },
6422
+ { enum: ['ios_phone', 'android_phone'], type: 'string' },
6400
6423
  ],
6401
6424
  },
6402
6425
  device_types: {
@@ -6440,6 +6463,10 @@ export default {
6440
6463
  enum: ['ecobee_thermostat', 'nest_thermostat'],
6441
6464
  type: 'string',
6442
6465
  },
6466
+ {
6467
+ enum: ['ios_phone', 'android_phone'],
6468
+ type: 'string',
6469
+ },
6443
6470
  ],
6444
6471
  },
6445
6472
  type: 'array',
@@ -6689,6 +6716,7 @@ export default {
6689
6716
  enum: ['ecobee_thermostat', 'nest_thermostat'],
6690
6717
  type: 'string',
6691
6718
  },
6719
+ { enum: ['ios_phone', 'android_phone'], type: 'string' },
6692
6720
  ],
6693
6721
  },
6694
6722
  device_types: {
@@ -6732,6 +6760,10 @@ export default {
6732
6760
  enum: ['ecobee_thermostat', 'nest_thermostat'],
6733
6761
  type: 'string',
6734
6762
  },
6763
+ {
6764
+ enum: ['ios_phone', 'android_phone'],
6765
+ type: 'string',
6766
+ },
6735
6767
  ],
6736
6768
  },
6737
6769
  type: 'array',
@@ -7497,6 +7529,7 @@ export default {
7497
7529
  enum: ['ecobee_thermostat', 'nest_thermostat'],
7498
7530
  type: 'string',
7499
7531
  },
7532
+ { enum: ['ios_phone', 'android_phone'], type: 'string' },
7500
7533
  ],
7501
7534
  },
7502
7535
  device_types: {
@@ -7540,6 +7573,10 @@ export default {
7540
7573
  enum: ['ecobee_thermostat', 'nest_thermostat'],
7541
7574
  type: 'string',
7542
7575
  },
7576
+ {
7577
+ enum: ['ios_phone', 'android_phone'],
7578
+ type: 'string',
7579
+ },
7543
7580
  ],
7544
7581
  },
7545
7582
  type: 'array',
@@ -8862,6 +8899,7 @@ export default {
8862
8899
  enum: ['ecobee_thermostat', 'nest_thermostat'],
8863
8900
  type: 'string',
8864
8901
  },
8902
+ { enum: ['ios_phone', 'android_phone'], type: 'string' },
8865
8903
  ],
8866
8904
  },
8867
8905
  device_types: {
@@ -8905,6 +8943,10 @@ export default {
8905
8943
  enum: ['ecobee_thermostat', 'nest_thermostat'],
8906
8944
  type: 'string',
8907
8945
  },
8946
+ {
8947
+ enum: ['ios_phone', 'android_phone'],
8948
+ type: 'string',
8949
+ },
8908
8950
  ],
8909
8951
  },
8910
8952
  type: 'array',