@seamapi/types 1.196.1 → 1.198.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 (55) hide show
  1. package/dist/connect.cjs +1721 -1502
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +1870 -1101
  4. package/dist/devicedb.d.cts +40 -40
  5. package/lib/seam/connect/model-types.d.ts +1 -1
  6. package/lib/seam/connect/models/access-codes/managed-access-code.d.ts +113 -12
  7. package/lib/seam/connect/models/access-codes/managed-access-code.js +17 -2
  8. package/lib/seam/connect/models/access-codes/managed-access-code.js.map +1 -1
  9. package/lib/seam/connect/models/access-codes/unmanaged-access-code.d.ts +87 -12
  10. package/lib/seam/connect/models/acs/acs-access-group.d.ts +4 -4
  11. package/lib/seam/connect/models/acs/acs-credential-pool.d.ts +4 -4
  12. package/lib/seam/connect/models/acs/acs-credential.d.ts +4 -4
  13. package/lib/seam/connect/models/acs/acs-entrance.d.ts +10 -10
  14. package/lib/seam/connect/models/acs/acs-system.d.ts +29 -29
  15. package/lib/seam/connect/models/acs/acs-user.d.ts +6 -6
  16. package/lib/seam/connect/models/acs/metadata/latch.d.ts +4 -4
  17. package/lib/seam/connect/models/connect-webviews/connect-webview.d.ts +6 -6
  18. package/lib/seam/connect/models/connected-accounts/connected-account.d.ts +69 -8
  19. package/lib/seam/connect/models/connected-accounts/connected-account.js +15 -2
  20. package/lib/seam/connect/models/connected-accounts/connected-account.js.map +1 -1
  21. package/lib/seam/connect/models/devices/capability-properties/index.d.ts +15 -15
  22. package/lib/seam/connect/models/devices/capability-properties/thermostat.d.ts +30 -30
  23. package/lib/seam/connect/models/devices/device-metadata.d.ts +8 -8
  24. package/lib/seam/connect/models/devices/device-provider.d.ts +2 -2
  25. package/lib/seam/connect/models/devices/device.d.ts +116 -65
  26. package/lib/seam/connect/models/devices/device.js +16 -8
  27. package/lib/seam/connect/models/devices/device.js.map +1 -1
  28. package/lib/seam/connect/models/devices/phone.d.ts +44 -19
  29. package/lib/seam/connect/models/devices/unmanaged-device.d.ts +53 -28
  30. package/lib/seam/connect/models/events/access-codes.d.ts +306 -306
  31. package/lib/seam/connect/models/events/acs/common.d.ts +4 -4
  32. package/lib/seam/connect/models/events/acs/credentials.d.ts +12 -12
  33. package/lib/seam/connect/models/events/acs/index.d.ts +18 -18
  34. package/lib/seam/connect/models/events/acs/systems.d.ts +12 -12
  35. package/lib/seam/connect/models/events/acs/users.d.ts +12 -12
  36. package/lib/seam/connect/models/events/connected-accounts.d.ts +42 -42
  37. package/lib/seam/connect/models/events/devices.d.ts +316 -316
  38. package/lib/seam/connect/models/events/phones.d.ts +6 -6
  39. package/lib/seam/connect/models/events/seam-event.d.ts +353 -353
  40. package/lib/seam/connect/models/thermostats/climate-setting-schedule.d.ts +3 -3
  41. package/lib/seam/connect/models/user-identities/user-identity.d.ts +2 -2
  42. package/lib/seam/connect/openapi.d.ts +272 -26
  43. package/lib/seam/connect/openapi.js +211 -23
  44. package/lib/seam/connect/openapi.js.map +1 -1
  45. package/lib/seam/connect/route-types.d.ts +249 -36
  46. package/lib/seam/devicedb/models/device-model.d.ts +8 -8
  47. package/lib/seam/devicedb/models/manufacturer.d.ts +2 -2
  48. package/lib/seam/devicedb/route-specs.d.ts +30 -30
  49. package/package.json +1 -1
  50. package/src/lib/seam/connect/model-types.ts +6 -0
  51. package/src/lib/seam/connect/models/access-codes/managed-access-code.ts +26 -2
  52. package/src/lib/seam/connect/models/connected-accounts/connected-account.ts +23 -2
  53. package/src/lib/seam/connect/models/devices/device.ts +24 -12
  54. package/src/lib/seam/connect/openapi.ts +211 -23
  55. package/src/lib/seam/connect/route-types.ts +379 -92
@@ -36,6 +36,45 @@ export default {
36
36
  },
37
37
  errors: {
38
38
  description: 'Collection of errors associated with the access code, structured in a dictionary format. A unique "error_code" keys each error. Each error entry is an object containing two fields: "message" and "created_at." "message" is a string that describes the error. "created_at" is a date that indicates when the error was generated. This structure enables detailed tracking and timely response to critical issues.',
39
+ items: {
40
+ oneOf: [
41
+ {
42
+ properties: {
43
+ error_code: { type: 'string' },
44
+ is_access_code_error: { enum: [true], type: 'boolean' },
45
+ message: { type: 'string' },
46
+ },
47
+ required: ['message', 'is_access_code_error', 'error_code'],
48
+ type: 'object',
49
+ },
50
+ {
51
+ properties: {
52
+ error_code: { type: 'string' },
53
+ is_device_error: { enum: [true], type: 'boolean' },
54
+ message: { type: 'string' },
55
+ },
56
+ required: ['message', 'is_device_error', 'error_code'],
57
+ type: 'object',
58
+ },
59
+ {
60
+ properties: {
61
+ error_code: { type: 'string' },
62
+ is_connected_account_error: {
63
+ enum: [true],
64
+ type: 'boolean',
65
+ },
66
+ message: { type: 'string' },
67
+ },
68
+ required: [
69
+ 'message',
70
+ 'is_connected_account_error',
71
+ 'error_code',
72
+ ],
73
+ type: 'object',
74
+ },
75
+ ],
76
+ },
77
+ type: 'array',
39
78
  },
40
79
  is_backup: {
41
80
  description: 'Indicates whether the access code is a backup code.',
@@ -99,6 +138,15 @@ export default {
99
138
  },
100
139
  warnings: {
101
140
  description: 'Collection of warnings associated with the access code, structured in a dictionary format. A unique "warning_code" keys each warning. Each warning entry is an object containing two fields: "message" and "created_at." "message" is a string that describes the warning. "created_at" is a date that indicates when the warning was generated. This structure enables detailed tracking and timely response to potential issues that are not critical but that may require attention.',
141
+ items: {
142
+ properties: {
143
+ message: { type: 'string' },
144
+ warning_code: { type: 'string' },
145
+ },
146
+ required: ['message', 'warning_code'],
147
+ type: 'object',
148
+ },
149
+ type: 'array',
102
150
  },
103
151
  },
104
152
  required: [
@@ -109,6 +157,8 @@ export default {
109
157
  'name',
110
158
  'code',
111
159
  'created_at',
160
+ 'errors',
161
+ 'warnings',
112
162
  'is_managed',
113
163
  'status',
114
164
  'is_backup_access_code_available',
@@ -1832,7 +1882,18 @@ export default {
1832
1882
  },
1833
1883
  type: 'object',
1834
1884
  },
1835
- errors: {},
1885
+ errors: {
1886
+ items: {
1887
+ properties: {
1888
+ error_code: { type: 'string' },
1889
+ is_connected_account_error: { enum: [true], type: 'boolean' },
1890
+ message: { type: 'string' },
1891
+ },
1892
+ required: ['message', 'is_connected_account_error', 'error_code'],
1893
+ type: 'object',
1894
+ },
1895
+ type: 'array',
1896
+ },
1836
1897
  user_identifier: {
1837
1898
  properties: {
1838
1899
  api_url: { type: 'string' },
@@ -1843,10 +1904,22 @@ export default {
1843
1904
  },
1844
1905
  type: 'object',
1845
1906
  },
1846
- warnings: {},
1907
+ warnings: {
1908
+ items: {
1909
+ properties: {
1910
+ message: { type: 'string' },
1911
+ warning_code: { type: 'string' },
1912
+ },
1913
+ required: ['message', 'warning_code'],
1914
+ type: 'object',
1915
+ },
1916
+ type: 'array',
1917
+ },
1847
1918
  },
1848
1919
  required: [
1849
1920
  'account_type_display_name',
1921
+ 'errors',
1922
+ 'warnings',
1850
1923
  'custom_metadata',
1851
1924
  'automatically_manage_new_devices',
1852
1925
  ],
@@ -1953,12 +2026,33 @@ export default {
1953
2026
  errors: {
1954
2027
  description: 'Array of errors associated with the device. Each error object within the array contains two fields: "error_code" and "message." "error_code" is a string that uniquely identifies the type of error, enabling quick recognition and categorization of the issue. "message" provides a more detailed description of the error, offering insights into the issue and potentially how to rectify it.',
1955
2028
  items: {
1956
- properties: {
1957
- error_code: { type: 'string' },
1958
- message: { type: 'string' },
1959
- },
1960
- required: ['error_code', 'message'],
1961
- type: 'object',
2029
+ oneOf: [
2030
+ {
2031
+ properties: {
2032
+ error_code: { type: 'string' },
2033
+ is_device_error: { enum: [true], type: 'boolean' },
2034
+ message: { type: 'string' },
2035
+ },
2036
+ required: ['message', 'is_device_error', 'error_code'],
2037
+ type: 'object',
2038
+ },
2039
+ {
2040
+ properties: {
2041
+ error_code: { type: 'string' },
2042
+ is_connected_account_error: {
2043
+ enum: [true],
2044
+ type: 'boolean',
2045
+ },
2046
+ message: { type: 'string' },
2047
+ },
2048
+ required: [
2049
+ 'message',
2050
+ 'is_connected_account_error',
2051
+ 'error_code',
2052
+ ],
2053
+ type: 'object',
2054
+ },
2055
+ ],
1962
2056
  },
1963
2057
  type: 'array',
1964
2058
  },
@@ -3289,7 +3383,7 @@ export default {
3289
3383
  message: { type: 'string' },
3290
3384
  warning_code: { type: 'string' },
3291
3385
  },
3292
- required: ['warning_code', 'message'],
3386
+ required: ['message', 'warning_code'],
3293
3387
  type: 'object',
3294
3388
  },
3295
3389
  type: 'array',
@@ -3504,12 +3598,33 @@ export default {
3504
3598
  errors: {
3505
3599
  description: 'Array of errors associated with the device. Each error object within the array contains two fields: "error_code" and "message." "error_code" is a string that uniquely identifies the type of error, enabling quick recognition and categorization of the issue. "message" provides a more detailed description of the error, offering insights into the issue and potentially how to rectify it.',
3506
3600
  items: {
3507
- properties: {
3508
- error_code: { type: 'string' },
3509
- message: { type: 'string' },
3510
- },
3511
- required: ['error_code', 'message'],
3512
- type: 'object',
3601
+ oneOf: [
3602
+ {
3603
+ properties: {
3604
+ error_code: { type: 'string' },
3605
+ is_device_error: { enum: [true], type: 'boolean' },
3606
+ message: { type: 'string' },
3607
+ },
3608
+ required: ['message', 'is_device_error', 'error_code'],
3609
+ type: 'object',
3610
+ },
3611
+ {
3612
+ properties: {
3613
+ error_code: { type: 'string' },
3614
+ is_connected_account_error: {
3615
+ enum: [true],
3616
+ type: 'boolean',
3617
+ },
3618
+ message: { type: 'string' },
3619
+ },
3620
+ required: [
3621
+ 'message',
3622
+ 'is_connected_account_error',
3623
+ 'error_code',
3624
+ ],
3625
+ type: 'object',
3626
+ },
3627
+ ],
3513
3628
  },
3514
3629
  type: 'array',
3515
3630
  },
@@ -3567,7 +3682,7 @@ export default {
3567
3682
  message: { type: 'string' },
3568
3683
  warning_code: { type: 'string' },
3569
3684
  },
3570
- required: ['warning_code', 'message'],
3685
+ required: ['message', 'warning_code'],
3571
3686
  type: 'object',
3572
3687
  },
3573
3688
  type: 'array',
@@ -3633,6 +3748,45 @@ export default {
3633
3748
  },
3634
3749
  errors: {
3635
3750
  description: 'Collection of errors associated with the access code, structured in a dictionary format. A unique "error_code" keys each error. Each error entry is an object containing two fields: "message" and "created_at." "message" is a string that describes the error. "created_at" is a date that indicates when the error was generated. This structure enables detailed tracking and timely response to critical issues.',
3751
+ items: {
3752
+ oneOf: [
3753
+ {
3754
+ properties: {
3755
+ error_code: { type: 'string' },
3756
+ is_access_code_error: { enum: [true], type: 'boolean' },
3757
+ message: { type: 'string' },
3758
+ },
3759
+ required: ['message', 'is_access_code_error', 'error_code'],
3760
+ type: 'object',
3761
+ },
3762
+ {
3763
+ properties: {
3764
+ error_code: { type: 'string' },
3765
+ is_device_error: { enum: [true], type: 'boolean' },
3766
+ message: { type: 'string' },
3767
+ },
3768
+ required: ['message', 'is_device_error', 'error_code'],
3769
+ type: 'object',
3770
+ },
3771
+ {
3772
+ properties: {
3773
+ error_code: { type: 'string' },
3774
+ is_connected_account_error: {
3775
+ enum: [true],
3776
+ type: 'boolean',
3777
+ },
3778
+ message: { type: 'string' },
3779
+ },
3780
+ required: [
3781
+ 'message',
3782
+ 'is_connected_account_error',
3783
+ 'error_code',
3784
+ ],
3785
+ type: 'object',
3786
+ },
3787
+ ],
3788
+ },
3789
+ type: 'array',
3636
3790
  },
3637
3791
  is_managed: { enum: [false], type: 'boolean' },
3638
3792
  name: {
@@ -3654,6 +3808,15 @@ export default {
3654
3808
  },
3655
3809
  warnings: {
3656
3810
  description: 'Collection of warnings associated with the access code, structured in a dictionary format. A unique "warning_code" keys each warning. Each warning entry is an object containing two fields: "message" and "created_at." "message" is a string that describes the warning. "created_at" is a date that indicates when the warning was generated. This structure enables detailed tracking and timely response to potential issues that are not critical but that may require attention.',
3811
+ items: {
3812
+ properties: {
3813
+ message: { type: 'string' },
3814
+ warning_code: { type: 'string' },
3815
+ },
3816
+ required: ['message', 'warning_code'],
3817
+ type: 'object',
3818
+ },
3819
+ type: 'array',
3657
3820
  },
3658
3821
  },
3659
3822
  required: [
@@ -3663,6 +3826,8 @@ export default {
3663
3826
  'name',
3664
3827
  'code',
3665
3828
  'created_at',
3829
+ 'errors',
3830
+ 'warnings',
3666
3831
  'is_managed',
3667
3832
  'status',
3668
3833
  ],
@@ -3759,12 +3924,33 @@ export default {
3759
3924
  errors: {
3760
3925
  description: 'Array of errors associated with the device. Each error object within the array contains two fields: "error_code" and "message." "error_code" is a string that uniquely identifies the type of error, enabling quick recognition and categorization of the issue. "message" provides a more detailed description of the error, offering insights into the issue and potentially how to rectify it.',
3761
3926
  items: {
3762
- properties: {
3763
- error_code: { type: 'string' },
3764
- message: { type: 'string' },
3765
- },
3766
- required: ['error_code', 'message'],
3767
- type: 'object',
3927
+ oneOf: [
3928
+ {
3929
+ properties: {
3930
+ error_code: { type: 'string' },
3931
+ is_device_error: { enum: [true], type: 'boolean' },
3932
+ message: { type: 'string' },
3933
+ },
3934
+ required: ['message', 'is_device_error', 'error_code'],
3935
+ type: 'object',
3936
+ },
3937
+ {
3938
+ properties: {
3939
+ error_code: { type: 'string' },
3940
+ is_connected_account_error: {
3941
+ enum: [true],
3942
+ type: 'boolean',
3943
+ },
3944
+ message: { type: 'string' },
3945
+ },
3946
+ required: [
3947
+ 'message',
3948
+ 'is_connected_account_error',
3949
+ 'error_code',
3950
+ ],
3951
+ type: 'object',
3952
+ },
3953
+ ],
3768
3954
  },
3769
3955
  type: 'array',
3770
3956
  },
@@ -3896,7 +4082,7 @@ export default {
3896
4082
  message: { type: 'string' },
3897
4083
  warning_code: { type: 'string' },
3898
4084
  },
3899
- required: ['warning_code', 'message'],
4085
+ required: ['message', 'warning_code'],
3900
4086
  type: 'object',
3901
4087
  },
3902
4088
  type: 'array',
@@ -5872,7 +6058,9 @@ export default {
5872
6058
  },
5873
6059
  {
5874
6060
  properties: {
6061
+ created_before: { format: 'date-time', type: 'string' },
5875
6062
  is_multi_phone_sync_credential: { type: 'boolean' },
6063
+ limit: { default: 500, format: 'float', type: 'number' },
5876
6064
  },
5877
6065
  type: 'object',
5878
6066
  },