@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
package/dist/connect.cjs CHANGED
@@ -275,6 +275,7 @@ var openapi_default = {
275
275
  type: "string"
276
276
  },
277
277
  email_address: { format: "email", type: "string" },
278
+ ends_at: { format: "date-time", type: "string" },
278
279
  external_type: {
279
280
  enum: ["pti_user", "brivo_user", "hid_cm_user", "salto_site_user"],
280
281
  type: "string"
@@ -283,7 +284,9 @@ var openapi_default = {
283
284
  full_name: { type: "string" },
284
285
  hid_acs_system_id: { format: "uuid", type: "string" },
285
286
  is_suspended: { type: "boolean" },
287
+ is_virtual: { type: "boolean" },
286
288
  phone_number: { nullable: true, type: "string" },
289
+ starts_at: { format: "date-time", type: "string" },
287
290
  workspace_id: { format: "uuid", type: "string" }
288
291
  },
289
292
  required: [
@@ -292,9 +295,8 @@ var openapi_default = {
292
295
  "workspace_id",
293
296
  "created_at",
294
297
  "display_name",
295
- "external_type",
296
- "external_type_display_name",
297
- "is_suspended"
298
+ "is_suspended",
299
+ "is_virtual"
298
300
  ],
299
301
  type: "object"
300
302
  },
@@ -542,7 +544,8 @@ var openapi_default = {
542
544
  "lock",
543
545
  "noise_detection",
544
546
  "thermostat",
545
- "battery"
547
+ "battery",
548
+ "phone"
546
549
  ],
547
550
  type: "string"
548
551
  },
@@ -603,7 +606,8 @@ var openapi_default = {
603
606
  {
604
607
  enum: ["ecobee_thermostat", "nest_thermostat"],
605
608
  type: "string"
606
- }
609
+ },
610
+ { enum: ["ios_phone", "android_phone"], type: "string" }
607
611
  ]
608
612
  },
609
613
  errors: {
@@ -1768,7 +1772,8 @@ var openapi_default = {
1768
1772
  "lock",
1769
1773
  "noise_detection",
1770
1774
  "thermostat",
1771
- "battery"
1775
+ "battery",
1776
+ "phone"
1772
1777
  ],
1773
1778
  type: "string"
1774
1779
  },
@@ -1829,7 +1834,8 @@ var openapi_default = {
1829
1834
  {
1830
1835
  enum: ["ecobee_thermostat", "nest_thermostat"],
1831
1836
  type: "string"
1832
- }
1837
+ },
1838
+ { enum: ["ios_phone", "android_phone"], type: "string" }
1833
1839
  ]
1834
1840
  },
1835
1841
  errors: {
@@ -2061,6 +2067,7 @@ var openapi_default = {
2061
2067
  is_offline_access_code: { type: "boolean" },
2062
2068
  is_one_time_use: { type: "boolean" },
2063
2069
  max_time_rounding: {
2070
+ default: "1hour",
2064
2071
  enum: ["1hour", "1day", "1h", "1d"],
2065
2072
  type: "string"
2066
2073
  },
@@ -2145,6 +2152,7 @@ var openapi_default = {
2145
2152
  is_offline_access_code: { type: "boolean" },
2146
2153
  is_one_time_use: { type: "boolean" },
2147
2154
  max_time_rounding: {
2155
+ default: "1hour",
2148
2156
  enum: ["1hour", "1day", "1h", "1d"],
2149
2157
  type: "string"
2150
2158
  },
@@ -2226,6 +2234,7 @@ var openapi_default = {
2226
2234
  is_offline_access_code: { type: "boolean" },
2227
2235
  is_one_time_use: { type: "boolean" },
2228
2236
  max_time_rounding: {
2237
+ default: "1hour",
2229
2238
  enum: ["1hour", "1day", "1h", "1d"],
2230
2239
  type: "string"
2231
2240
  },
@@ -2954,6 +2963,7 @@ var openapi_default = {
2954
2963
  is_offline_access_code: { type: "boolean" },
2955
2964
  is_one_time_use: { type: "boolean" },
2956
2965
  max_time_rounding: {
2966
+ default: "1hour",
2957
2967
  enum: ["1hour", "1day", "1h", "1d"],
2958
2968
  type: "string"
2959
2969
  },
@@ -3028,6 +3038,7 @@ var openapi_default = {
3028
3038
  is_offline_access_code: { type: "boolean" },
3029
3039
  is_one_time_use: { type: "boolean" },
3030
3040
  max_time_rounding: {
3041
+ default: "1hour",
3031
3042
  enum: ["1hour", "1day", "1h", "1d"],
3032
3043
  type: "string"
3033
3044
  },
@@ -3104,6 +3115,7 @@ var openapi_default = {
3104
3115
  is_offline_access_code: { type: "boolean" },
3105
3116
  is_one_time_use: { type: "boolean" },
3106
3117
  max_time_rounding: {
3118
+ default: "1hour",
3107
3119
  enum: ["1hour", "1day", "1h", "1d"],
3108
3120
  type: "string"
3109
3121
  },
@@ -3328,9 +3340,9 @@ var openapi_default = {
3328
3340
  401: { description: "Unauthorized" }
3329
3341
  },
3330
3342
  security: [
3331
- { access_token: [], seam_workspace: [] },
3332
- { seam_client_session_token: [] },
3333
- { client_session_token: [] }
3343
+ { pat_with_workspace: [] },
3344
+ { console_session: [] },
3345
+ { api_key: [] }
3334
3346
  ],
3335
3347
  summary: "/acs/access_groups/list",
3336
3348
  tags: [],
@@ -3422,9 +3434,9 @@ var openapi_default = {
3422
3434
  401: { description: "Unauthorized" }
3423
3435
  },
3424
3436
  security: [
3425
- { access_token: [], seam_workspace: [] },
3426
- { seam_client_session_token: [] },
3427
- { client_session_token: [] }
3437
+ { pat_with_workspace: [] },
3438
+ { console_session: [] },
3439
+ { api_key: [] }
3428
3440
  ],
3429
3441
  summary: "/acs/access_groups/remove_user",
3430
3442
  tags: [],
@@ -3497,9 +3509,9 @@ var openapi_default = {
3497
3509
  401: { description: "Unauthorized" }
3498
3510
  },
3499
3511
  security: [
3500
- { access_token: [], seam_workspace: [] },
3501
- { seam_client_session_token: [] },
3502
- { client_session_token: [] }
3512
+ { pat_with_workspace: [] },
3513
+ { console_session: [] },
3514
+ { api_key: [] }
3503
3515
  ],
3504
3516
  summary: "/acs/credential_pools/list",
3505
3517
  tags: [],
@@ -3578,9 +3590,9 @@ var openapi_default = {
3578
3590
  401: { description: "Unauthorized" }
3579
3591
  },
3580
3592
  security: [
3581
- { access_token: [], seam_workspace: [] },
3582
- { seam_client_session_token: [] },
3583
- { client_session_token: [] }
3593
+ { pat_with_workspace: [] },
3594
+ { console_session: [] },
3595
+ { api_key: [] }
3584
3596
  ],
3585
3597
  summary: "/acs/credential_provisioning_automations/launch",
3586
3598
  tags: [],
@@ -3663,9 +3675,9 @@ var openapi_default = {
3663
3675
  401: { description: "Unauthorized" }
3664
3676
  },
3665
3677
  security: [
3666
- { access_token: [], seam_workspace: [] },
3667
- { seam_client_session_token: [] },
3668
- { client_session_token: [] }
3678
+ { pat_with_workspace: [] },
3679
+ { console_session: [] },
3680
+ { api_key: [] }
3669
3681
  ],
3670
3682
  summary: "/acs/credentials/assign",
3671
3683
  tags: [],
@@ -3745,9 +3757,9 @@ var openapi_default = {
3745
3757
  401: { description: "Unauthorized" }
3746
3758
  },
3747
3759
  security: [
3748
- { access_token: [], seam_workspace: [] },
3749
- { seam_client_session_token: [] },
3750
- { client_session_token: [] }
3760
+ { pat_with_workspace: [] },
3761
+ { console_session: [] },
3762
+ { api_key: [] }
3751
3763
  ],
3752
3764
  summary: "/acs/credentials/assign",
3753
3765
  tags: [],
@@ -3834,9 +3846,9 @@ var openapi_default = {
3834
3846
  401: { description: "Unauthorized" }
3835
3847
  },
3836
3848
  security: [
3837
- { access_token: [], seam_workspace: [] },
3838
- { seam_client_session_token: [] },
3839
- { client_session_token: [] }
3849
+ { pat_with_workspace: [] },
3850
+ { console_session: [] },
3851
+ { api_key: [] }
3840
3852
  ],
3841
3853
  summary: "/acs/credentials/create",
3842
3854
  tags: [],
@@ -3877,9 +3889,9 @@ var openapi_default = {
3877
3889
  401: { description: "Unauthorized" }
3878
3890
  },
3879
3891
  security: [
3880
- { access_token: [], seam_workspace: [] },
3881
- { seam_client_session_token: [] },
3882
- { client_session_token: [] }
3892
+ { pat_with_workspace: [] },
3893
+ { console_session: [] },
3894
+ { api_key: [] }
3883
3895
  ],
3884
3896
  summary: "/acs/credentials/delete",
3885
3897
  tags: [],
@@ -3961,9 +3973,9 @@ var openapi_default = {
3961
3973
  401: { description: "Unauthorized" }
3962
3974
  },
3963
3975
  security: [
3964
- { access_token: [], seam_workspace: [] },
3965
- { seam_client_session_token: [] },
3966
- { client_session_token: [] }
3976
+ { pat_with_workspace: [] },
3977
+ { console_session: [] },
3978
+ { api_key: [] }
3967
3979
  ],
3968
3980
  summary: "/acs/credentials/get",
3969
3981
  tags: [],
@@ -4153,9 +4165,9 @@ var openapi_default = {
4153
4165
  401: { description: "Unauthorized" }
4154
4166
  },
4155
4167
  security: [
4156
- { access_token: [], seam_workspace: [] },
4157
- { seam_client_session_token: [] },
4158
- { client_session_token: [] }
4168
+ { pat_with_workspace: [] },
4169
+ { console_session: [] },
4170
+ { api_key: [] }
4159
4171
  ],
4160
4172
  summary: "/acs/credentials/unassign",
4161
4173
  tags: [],
@@ -4235,9 +4247,9 @@ var openapi_default = {
4235
4247
  401: { description: "Unauthorized" }
4236
4248
  },
4237
4249
  security: [
4238
- { access_token: [], seam_workspace: [] },
4239
- { seam_client_session_token: [] },
4240
- { client_session_token: [] }
4250
+ { pat_with_workspace: [] },
4251
+ { console_session: [] },
4252
+ { api_key: [] }
4241
4253
  ],
4242
4254
  summary: "/acs/credentials/unassign",
4243
4255
  tags: [],
@@ -4320,9 +4332,9 @@ var openapi_default = {
4320
4332
  401: { description: "Unauthorized" }
4321
4333
  },
4322
4334
  security: [
4323
- { access_token: [], seam_workspace: [] },
4324
- { seam_client_session_token: [] },
4325
- { client_session_token: [] }
4335
+ { pat_with_workspace: [] },
4336
+ { console_session: [] },
4337
+ { api_key: [] }
4326
4338
  ],
4327
4339
  summary: "/acs/credentials/update",
4328
4340
  tags: [],
@@ -4402,9 +4414,9 @@ var openapi_default = {
4402
4414
  401: { description: "Unauthorized" }
4403
4415
  },
4404
4416
  security: [
4405
- { access_token: [], seam_workspace: [] },
4406
- { seam_client_session_token: [] },
4407
- { client_session_token: [] }
4417
+ { pat_with_workspace: [] },
4418
+ { console_session: [] },
4419
+ { api_key: [] }
4408
4420
  ],
4409
4421
  summary: "/acs/credentials/update",
4410
4422
  tags: [],
@@ -4617,9 +4629,9 @@ var openapi_default = {
4617
4629
  401: { description: "Unauthorized" }
4618
4630
  },
4619
4631
  security: [
4620
- { access_token: [], seam_workspace: [] },
4621
- { seam_client_session_token: [] },
4622
- { client_session_token: [] }
4632
+ { pat_with_workspace: [] },
4633
+ { console_session: [] },
4634
+ { api_key: [] }
4623
4635
  ],
4624
4636
  summary: "/acs/systems/get",
4625
4637
  tags: [],
@@ -4665,9 +4677,10 @@ var openapi_default = {
4665
4677
  401: { description: "Unauthorized" }
4666
4678
  },
4667
4679
  security: [
4668
- { access_token: [], seam_workspace: [] },
4669
- { seam_client_session_token: [] },
4670
- { client_session_token: [] }
4680
+ { client_session: [] },
4681
+ { pat_with_workspace: [] },
4682
+ { console_session: [] },
4683
+ { api_key: [] }
4671
4684
  ],
4672
4685
  summary: "/acs/systems/list",
4673
4686
  tags: [],
@@ -4698,9 +4711,9 @@ var openapi_default = {
4698
4711
  401: { description: "Unauthorized" }
4699
4712
  },
4700
4713
  security: [
4701
- { access_token: [], seam_workspace: [] },
4702
- { seam_client_session_token: [] },
4703
- { client_session_token: [] }
4714
+ { pat_with_workspace: [] },
4715
+ { console_session: [] },
4716
+ { api_key: [] }
4704
4717
  ],
4705
4718
  summary: "/acs/users/add_to_access_group",
4706
4719
  tags: [],
@@ -4729,9 +4742,9 @@ var openapi_default = {
4729
4742
  401: { description: "Unauthorized" }
4730
4743
  },
4731
4744
  security: [
4732
- { access_token: [], seam_workspace: [] },
4733
- { seam_client_session_token: [] },
4734
- { client_session_token: [] }
4745
+ { pat_with_workspace: [] },
4746
+ { console_session: [] },
4747
+ { api_key: [] }
4735
4748
  ],
4736
4749
  summary: "/acs/users/add_to_access_group",
4737
4750
  tags: [],
@@ -4746,6 +4759,14 @@ var openapi_default = {
4746
4759
  "application/json": {
4747
4760
  schema: {
4748
4761
  properties: {
4762
+ access_schedule: {
4763
+ properties: {
4764
+ ends_at: { format: "date-time", type: "string" },
4765
+ starts_at: { format: "date-time", type: "string" }
4766
+ },
4767
+ required: ["starts_at", "ends_at"],
4768
+ type: "object"
4769
+ },
4749
4770
  acs_access_group_ids: {
4750
4771
  default: [],
4751
4772
  items: { format: "uuid", type: "string" },
@@ -4787,9 +4808,9 @@ var openapi_default = {
4787
4808
  401: { description: "Unauthorized" }
4788
4809
  },
4789
4810
  security: [
4790
- { access_token: [], seam_workspace: [] },
4791
- { seam_client_session_token: [] },
4792
- { client_session_token: [] }
4811
+ { pat_with_workspace: [] },
4812
+ { console_session: [] },
4813
+ { api_key: [] }
4793
4814
  ],
4794
4815
  summary: "/acs/users/create",
4795
4816
  tags: [],
@@ -4828,9 +4849,9 @@ var openapi_default = {
4828
4849
  401: { description: "Unauthorized" }
4829
4850
  },
4830
4851
  security: [
4831
- { access_token: [], seam_workspace: [] },
4832
- { seam_client_session_token: [] },
4833
- { client_session_token: [] }
4852
+ { pat_with_workspace: [] },
4853
+ { console_session: [] },
4854
+ { api_key: [] }
4834
4855
  ],
4835
4856
  summary: "/acs/users/delete",
4836
4857
  tags: [],
@@ -4872,9 +4893,9 @@ var openapi_default = {
4872
4893
  401: { description: "Unauthorized" }
4873
4894
  },
4874
4895
  security: [
4875
- { access_token: [], seam_workspace: [] },
4876
- { seam_client_session_token: [] },
4877
- { client_session_token: [] }
4896
+ { pat_with_workspace: [] },
4897
+ { console_session: [] },
4898
+ { api_key: [] }
4878
4899
  ],
4879
4900
  summary: "/acs/users/get",
4880
4901
  tags: [],
@@ -4921,9 +4942,10 @@ var openapi_default = {
4921
4942
  401: { description: "Unauthorized" }
4922
4943
  },
4923
4944
  security: [
4924
- { access_token: [], seam_workspace: [] },
4925
- { seam_client_session_token: [] },
4926
- { client_session_token: [] }
4945
+ { client_session: [] },
4946
+ { pat_with_workspace: [] },
4947
+ { console_session: [] },
4948
+ { api_key: [] }
4927
4949
  ],
4928
4950
  summary: "/acs/users/list",
4929
4951
  tags: [],
@@ -4954,9 +4976,9 @@ var openapi_default = {
4954
4976
  401: { description: "Unauthorized" }
4955
4977
  },
4956
4978
  security: [
4957
- { access_token: [], seam_workspace: [] },
4958
- { seam_client_session_token: [] },
4959
- { client_session_token: [] }
4979
+ { pat_with_workspace: [] },
4980
+ { console_session: [] },
4981
+ { api_key: [] }
4960
4982
  ],
4961
4983
  summary: "/acs/users/remove_from_access_group",
4962
4984
  tags: [],
@@ -4995,9 +5017,9 @@ var openapi_default = {
4995
5017
  401: { description: "Unauthorized" }
4996
5018
  },
4997
5019
  security: [
4998
- { access_token: [], seam_workspace: [] },
4999
- { seam_client_session_token: [] },
5000
- { client_session_token: [] }
5020
+ { pat_with_workspace: [] },
5021
+ { console_session: [] },
5022
+ { api_key: [] }
5001
5023
  ],
5002
5024
  summary: "/acs/users/suspend",
5003
5025
  tags: [],
@@ -6443,7 +6465,8 @@ var openapi_default = {
6443
6465
  {
6444
6466
  enum: ["ecobee_thermostat", "nest_thermostat"],
6445
6467
  type: "string"
6446
- }
6468
+ },
6469
+ { enum: ["ios_phone", "android_phone"], type: "string" }
6447
6470
  ]
6448
6471
  },
6449
6472
  device_types: {
@@ -6486,6 +6509,10 @@ var openapi_default = {
6486
6509
  {
6487
6510
  enum: ["ecobee_thermostat", "nest_thermostat"],
6488
6511
  type: "string"
6512
+ },
6513
+ {
6514
+ enum: ["ios_phone", "android_phone"],
6515
+ type: "string"
6489
6516
  }
6490
6517
  ]
6491
6518
  },
@@ -6735,7 +6762,8 @@ var openapi_default = {
6735
6762
  {
6736
6763
  enum: ["ecobee_thermostat", "nest_thermostat"],
6737
6764
  type: "string"
6738
- }
6765
+ },
6766
+ { enum: ["ios_phone", "android_phone"], type: "string" }
6739
6767
  ]
6740
6768
  },
6741
6769
  device_types: {
@@ -6778,6 +6806,10 @@ var openapi_default = {
6778
6806
  {
6779
6807
  enum: ["ecobee_thermostat", "nest_thermostat"],
6780
6808
  type: "string"
6809
+ },
6810
+ {
6811
+ enum: ["ios_phone", "android_phone"],
6812
+ type: "string"
6781
6813
  }
6782
6814
  ]
6783
6815
  },
@@ -7543,7 +7575,8 @@ var openapi_default = {
7543
7575
  {
7544
7576
  enum: ["ecobee_thermostat", "nest_thermostat"],
7545
7577
  type: "string"
7546
- }
7578
+ },
7579
+ { enum: ["ios_phone", "android_phone"], type: "string" }
7547
7580
  ]
7548
7581
  },
7549
7582
  device_types: {
@@ -7586,6 +7619,10 @@ var openapi_default = {
7586
7619
  {
7587
7620
  enum: ["ecobee_thermostat", "nest_thermostat"],
7588
7621
  type: "string"
7622
+ },
7623
+ {
7624
+ enum: ["ios_phone", "android_phone"],
7625
+ type: "string"
7589
7626
  }
7590
7627
  ]
7591
7628
  },
@@ -8908,7 +8945,8 @@ var openapi_default = {
8908
8945
  {
8909
8946
  enum: ["ecobee_thermostat", "nest_thermostat"],
8910
8947
  type: "string"
8911
- }
8948
+ },
8949
+ { enum: ["ios_phone", "android_phone"], type: "string" }
8912
8950
  ]
8913
8951
  },
8914
8952
  device_types: {
@@ -8951,6 +8989,10 @@ var openapi_default = {
8951
8989
  {
8952
8990
  enum: ["ecobee_thermostat", "nest_thermostat"],
8953
8991
  type: "string"
8992
+ },
8993
+ {
8994
+ enum: ["ios_phone", "android_phone"],
8995
+ type: "string"
8954
8996
  }
8955
8997
  ]
8956
8998
  },