@seamapi/types 1.196.1 → 1.197.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 +1718 -1501
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +1859 -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 +263 -26
  43. package/lib/seam/connect/openapi.js +209 -23
  44. package/lib/seam/connect/openapi.js.map +1 -1
  45. package/lib/seam/connect/route-types.d.ts +247 -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 +209 -23
  55. package/src/lib/seam/connect/route-types.ts +377 -92
@@ -41,6 +41,45 @@ export default {
41
41
  errors: {
42
42
  description:
43
43
  '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.',
44
+ items: {
45
+ oneOf: [
46
+ {
47
+ properties: {
48
+ error_code: { type: 'string' },
49
+ is_access_code_error: { enum: [true], type: 'boolean' },
50
+ message: { type: 'string' },
51
+ },
52
+ required: ['message', 'is_access_code_error', 'error_code'],
53
+ type: 'object',
54
+ },
55
+ {
56
+ properties: {
57
+ error_code: { type: 'string' },
58
+ is_device_error: { enum: [true], type: 'boolean' },
59
+ message: { type: 'string' },
60
+ },
61
+ required: ['message', 'is_device_error', 'error_code'],
62
+ type: 'object',
63
+ },
64
+ {
65
+ properties: {
66
+ error_code: { type: 'string' },
67
+ is_connected_account_error: {
68
+ enum: [true],
69
+ type: 'boolean',
70
+ },
71
+ message: { type: 'string' },
72
+ },
73
+ required: [
74
+ 'message',
75
+ 'is_connected_account_error',
76
+ 'error_code',
77
+ ],
78
+ type: 'object',
79
+ },
80
+ ],
81
+ },
82
+ type: 'array',
44
83
  },
45
84
  is_backup: {
46
85
  description: 'Indicates whether the access code is a backup code.',
@@ -116,6 +155,15 @@ export default {
116
155
  warnings: {
117
156
  description:
118
157
  '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.',
158
+ items: {
159
+ properties: {
160
+ message: { type: 'string' },
161
+ warning_code: { type: 'string' },
162
+ },
163
+ required: ['message', 'warning_code'],
164
+ type: 'object',
165
+ },
166
+ type: 'array',
119
167
  },
120
168
  },
121
169
  required: [
@@ -126,6 +174,8 @@ export default {
126
174
  'name',
127
175
  'code',
128
176
  'created_at',
177
+ 'errors',
178
+ 'warnings',
129
179
  'is_managed',
130
180
  'status',
131
181
  'is_backup_access_code_available',
@@ -1869,7 +1919,18 @@ export default {
1869
1919
  },
1870
1920
  type: 'object',
1871
1921
  },
1872
- errors: {},
1922
+ errors: {
1923
+ items: {
1924
+ properties: {
1925
+ error_code: { type: 'string' },
1926
+ is_connected_account_error: { enum: [true], type: 'boolean' },
1927
+ message: { type: 'string' },
1928
+ },
1929
+ required: ['message', 'is_connected_account_error', 'error_code'],
1930
+ type: 'object',
1931
+ },
1932
+ type: 'array',
1933
+ },
1873
1934
  user_identifier: {
1874
1935
  properties: {
1875
1936
  api_url: { type: 'string' },
@@ -1880,10 +1941,22 @@ export default {
1880
1941
  },
1881
1942
  type: 'object',
1882
1943
  },
1883
- warnings: {},
1944
+ warnings: {
1945
+ items: {
1946
+ properties: {
1947
+ message: { type: 'string' },
1948
+ warning_code: { type: 'string' },
1949
+ },
1950
+ required: ['message', 'warning_code'],
1951
+ type: 'object',
1952
+ },
1953
+ type: 'array',
1954
+ },
1884
1955
  },
1885
1956
  required: [
1886
1957
  'account_type_display_name',
1958
+ 'errors',
1959
+ 'warnings',
1887
1960
  'custom_metadata',
1888
1961
  'automatically_manage_new_devices',
1889
1962
  ],
@@ -1995,12 +2068,33 @@ export default {
1995
2068
  description:
1996
2069
  '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.',
1997
2070
  items: {
1998
- properties: {
1999
- error_code: { type: 'string' },
2000
- message: { type: 'string' },
2001
- },
2002
- required: ['error_code', 'message'],
2003
- type: 'object',
2071
+ oneOf: [
2072
+ {
2073
+ properties: {
2074
+ error_code: { type: 'string' },
2075
+ is_device_error: { enum: [true], type: 'boolean' },
2076
+ message: { type: 'string' },
2077
+ },
2078
+ required: ['message', 'is_device_error', 'error_code'],
2079
+ type: 'object',
2080
+ },
2081
+ {
2082
+ properties: {
2083
+ error_code: { type: 'string' },
2084
+ is_connected_account_error: {
2085
+ enum: [true],
2086
+ type: 'boolean',
2087
+ },
2088
+ message: { type: 'string' },
2089
+ },
2090
+ required: [
2091
+ 'message',
2092
+ 'is_connected_account_error',
2093
+ 'error_code',
2094
+ ],
2095
+ type: 'object',
2096
+ },
2097
+ ],
2004
2098
  },
2005
2099
  type: 'array',
2006
2100
  },
@@ -3356,7 +3450,7 @@ export default {
3356
3450
  message: { type: 'string' },
3357
3451
  warning_code: { type: 'string' },
3358
3452
  },
3359
- required: ['warning_code', 'message'],
3453
+ required: ['message', 'warning_code'],
3360
3454
  type: 'object',
3361
3455
  },
3362
3456
  type: 'array',
@@ -3576,12 +3670,33 @@ export default {
3576
3670
  description:
3577
3671
  '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.',
3578
3672
  items: {
3579
- properties: {
3580
- error_code: { type: 'string' },
3581
- message: { type: 'string' },
3582
- },
3583
- required: ['error_code', 'message'],
3584
- type: 'object',
3673
+ oneOf: [
3674
+ {
3675
+ properties: {
3676
+ error_code: { type: 'string' },
3677
+ is_device_error: { enum: [true], type: 'boolean' },
3678
+ message: { type: 'string' },
3679
+ },
3680
+ required: ['message', 'is_device_error', 'error_code'],
3681
+ type: 'object',
3682
+ },
3683
+ {
3684
+ properties: {
3685
+ error_code: { type: 'string' },
3686
+ is_connected_account_error: {
3687
+ enum: [true],
3688
+ type: 'boolean',
3689
+ },
3690
+ message: { type: 'string' },
3691
+ },
3692
+ required: [
3693
+ 'message',
3694
+ 'is_connected_account_error',
3695
+ 'error_code',
3696
+ ],
3697
+ type: 'object',
3698
+ },
3699
+ ],
3585
3700
  },
3586
3701
  type: 'array',
3587
3702
  },
@@ -3641,7 +3756,7 @@ export default {
3641
3756
  message: { type: 'string' },
3642
3757
  warning_code: { type: 'string' },
3643
3758
  },
3644
- required: ['warning_code', 'message'],
3759
+ required: ['message', 'warning_code'],
3645
3760
  type: 'object',
3646
3761
  },
3647
3762
  type: 'array',
@@ -3712,6 +3827,45 @@ export default {
3712
3827
  errors: {
3713
3828
  description:
3714
3829
  '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.',
3830
+ items: {
3831
+ oneOf: [
3832
+ {
3833
+ properties: {
3834
+ error_code: { type: 'string' },
3835
+ is_access_code_error: { enum: [true], type: 'boolean' },
3836
+ message: { type: 'string' },
3837
+ },
3838
+ required: ['message', 'is_access_code_error', 'error_code'],
3839
+ type: 'object',
3840
+ },
3841
+ {
3842
+ properties: {
3843
+ error_code: { type: 'string' },
3844
+ is_device_error: { enum: [true], type: 'boolean' },
3845
+ message: { type: 'string' },
3846
+ },
3847
+ required: ['message', 'is_device_error', 'error_code'],
3848
+ type: 'object',
3849
+ },
3850
+ {
3851
+ properties: {
3852
+ error_code: { type: 'string' },
3853
+ is_connected_account_error: {
3854
+ enum: [true],
3855
+ type: 'boolean',
3856
+ },
3857
+ message: { type: 'string' },
3858
+ },
3859
+ required: [
3860
+ 'message',
3861
+ 'is_connected_account_error',
3862
+ 'error_code',
3863
+ ],
3864
+ type: 'object',
3865
+ },
3866
+ ],
3867
+ },
3868
+ type: 'array',
3715
3869
  },
3716
3870
  is_managed: { enum: [false], type: 'boolean' },
3717
3871
  name: {
@@ -3737,6 +3891,15 @@ export default {
3737
3891
  warnings: {
3738
3892
  description:
3739
3893
  '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.',
3894
+ items: {
3895
+ properties: {
3896
+ message: { type: 'string' },
3897
+ warning_code: { type: 'string' },
3898
+ },
3899
+ required: ['message', 'warning_code'],
3900
+ type: 'object',
3901
+ },
3902
+ type: 'array',
3740
3903
  },
3741
3904
  },
3742
3905
  required: [
@@ -3746,6 +3909,8 @@ export default {
3746
3909
  'name',
3747
3910
  'code',
3748
3911
  'created_at',
3912
+ 'errors',
3913
+ 'warnings',
3749
3914
  'is_managed',
3750
3915
  'status',
3751
3916
  ],
@@ -3846,12 +4011,33 @@ export default {
3846
4011
  description:
3847
4012
  '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.',
3848
4013
  items: {
3849
- properties: {
3850
- error_code: { type: 'string' },
3851
- message: { type: 'string' },
3852
- },
3853
- required: ['error_code', 'message'],
3854
- type: 'object',
4014
+ oneOf: [
4015
+ {
4016
+ properties: {
4017
+ error_code: { type: 'string' },
4018
+ is_device_error: { enum: [true], type: 'boolean' },
4019
+ message: { type: 'string' },
4020
+ },
4021
+ required: ['message', 'is_device_error', 'error_code'],
4022
+ type: 'object',
4023
+ },
4024
+ {
4025
+ properties: {
4026
+ error_code: { type: 'string' },
4027
+ is_connected_account_error: {
4028
+ enum: [true],
4029
+ type: 'boolean',
4030
+ },
4031
+ message: { type: 'string' },
4032
+ },
4033
+ required: [
4034
+ 'message',
4035
+ 'is_connected_account_error',
4036
+ 'error_code',
4037
+ ],
4038
+ type: 'object',
4039
+ },
4040
+ ],
3855
4041
  },
3856
4042
  type: 'array',
3857
4043
  },
@@ -3995,7 +4181,7 @@ export default {
3995
4181
  message: { type: 'string' },
3996
4182
  warning_code: { type: 'string' },
3997
4183
  },
3998
- required: ['warning_code', 'message'],
4184
+ required: ['message', 'warning_code'],
3999
4185
  type: 'object',
4000
4186
  },
4001
4187
  type: 'array',