@seamapi/types 1.42.1 → 1.43.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.
@@ -1340,6 +1340,9 @@ export interface Routes {
1340
1340
  model: {
1341
1341
  display_name: string;
1342
1342
  manufacturer_display_name: string;
1343
+ offline_access_codes_supported?: boolean | undefined;
1344
+ access_codes_supported?: boolean | undefined;
1345
+ accessory_keypad_supported?: boolean | undefined;
1343
1346
  };
1344
1347
  has_direct_power?: boolean | undefined;
1345
1348
  battery_level?: number | undefined;
@@ -1351,7 +1354,13 @@ export interface Routes {
1351
1354
  image_url?: string | undefined;
1352
1355
  image_alt_text?: string | undefined;
1353
1356
  serial_number?: string | undefined;
1357
+ /** Currently possible to use online access codes */
1358
+ online_access_codes_enabled?: boolean | undefined;
1359
+ /** Currently possible to use offline access codes */
1360
+ offline_access_codes_enabled?: boolean | undefined;
1361
+ /** Deprecated: use model.offline_access_codes_enabled. */
1354
1362
  supports_accessory_keypad?: boolean | undefined;
1363
+ /** Deprecated: use model.accessory_keypad_supported. */
1355
1364
  supports_offline_access_codes?: boolean | undefined;
1356
1365
  } & {
1357
1366
  august_metadata?: {
@@ -1750,6 +1759,9 @@ export interface Routes {
1750
1759
  model: {
1751
1760
  display_name: string;
1752
1761
  manufacturer_display_name: string;
1762
+ offline_access_codes_supported?: boolean | undefined;
1763
+ access_codes_supported?: boolean | undefined;
1764
+ accessory_keypad_supported?: boolean | undefined;
1753
1765
  };
1754
1766
  has_direct_power?: boolean | undefined;
1755
1767
  battery_level?: number | undefined;
@@ -1761,7 +1773,13 @@ export interface Routes {
1761
1773
  image_url?: string | undefined;
1762
1774
  image_alt_text?: string | undefined;
1763
1775
  serial_number?: string | undefined;
1776
+ /** Currently possible to use online access codes */
1777
+ online_access_codes_enabled?: boolean | undefined;
1778
+ /** Currently possible to use offline access codes */
1779
+ offline_access_codes_enabled?: boolean | undefined;
1780
+ /** Deprecated: use model.offline_access_codes_enabled. */
1764
1781
  supports_accessory_keypad?: boolean | undefined;
1782
+ /** Deprecated: use model.accessory_keypad_supported. */
1765
1783
  supports_offline_access_codes?: boolean | undefined;
1766
1784
  } & {
1767
1785
  august_metadata?: {
@@ -4409,6 +4427,9 @@ export interface Routes {
4409
4427
  model: {
4410
4428
  display_name: string;
4411
4429
  manufacturer_display_name: string;
4430
+ offline_access_codes_supported?: boolean | undefined;
4431
+ access_codes_supported?: boolean | undefined;
4432
+ accessory_keypad_supported?: boolean | undefined;
4412
4433
  };
4413
4434
  has_direct_power?: boolean | undefined;
4414
4435
  battery_level?: number | undefined;
@@ -4420,7 +4441,13 @@ export interface Routes {
4420
4441
  image_url?: string | undefined;
4421
4442
  image_alt_text?: string | undefined;
4422
4443
  serial_number?: string | undefined;
4444
+ /** Currently possible to use online access codes */
4445
+ online_access_codes_enabled?: boolean | undefined;
4446
+ /** Currently possible to use offline access codes */
4447
+ offline_access_codes_enabled?: boolean | undefined;
4448
+ /** Deprecated: use model.offline_access_codes_enabled. */
4423
4449
  supports_accessory_keypad?: boolean | undefined;
4450
+ /** Deprecated: use model.accessory_keypad_supported. */
4424
4451
  supports_offline_access_codes?: boolean | undefined;
4425
4452
  } & {
4426
4453
  august_metadata?: {
@@ -4849,6 +4876,9 @@ export interface Routes {
4849
4876
  model: {
4850
4877
  display_name: string;
4851
4878
  manufacturer_display_name: string;
4879
+ offline_access_codes_supported?: boolean | undefined;
4880
+ access_codes_supported?: boolean | undefined;
4881
+ accessory_keypad_supported?: boolean | undefined;
4852
4882
  };
4853
4883
  has_direct_power?: boolean | undefined;
4854
4884
  battery_level?: number | undefined;
@@ -4860,7 +4890,13 @@ export interface Routes {
4860
4890
  image_url?: string | undefined;
4861
4891
  image_alt_text?: string | undefined;
4862
4892
  serial_number?: string | undefined;
4893
+ /** Currently possible to use online access codes */
4894
+ online_access_codes_enabled?: boolean | undefined;
4895
+ /** Currently possible to use offline access codes */
4896
+ offline_access_codes_enabled?: boolean | undefined;
4897
+ /** Deprecated: use model.offline_access_codes_enabled. */
4863
4898
  supports_accessory_keypad?: boolean | undefined;
4899
+ /** Deprecated: use model.accessory_keypad_supported. */
4864
4900
  supports_offline_access_codes?: boolean | undefined;
4865
4901
  } & {
4866
4902
  august_metadata?: {
@@ -5361,6 +5397,9 @@ export interface Routes {
5361
5397
  model: {
5362
5398
  display_name: string;
5363
5399
  manufacturer_display_name: string;
5400
+ offline_access_codes_supported?: boolean | undefined;
5401
+ access_codes_supported?: boolean | undefined;
5402
+ accessory_keypad_supported?: boolean | undefined;
5364
5403
  };
5365
5404
  has_direct_power?: boolean | undefined;
5366
5405
  battery_level?: number | undefined;
@@ -5372,7 +5411,13 @@ export interface Routes {
5372
5411
  image_url?: string | undefined;
5373
5412
  image_alt_text?: string | undefined;
5374
5413
  serial_number?: string | undefined;
5414
+ /** Currently possible to use online access codes */
5415
+ online_access_codes_enabled?: boolean | undefined;
5416
+ /** Currently possible to use offline access codes */
5417
+ offline_access_codes_enabled?: boolean | undefined;
5418
+ /** Deprecated: use model.offline_access_codes_enabled. */
5375
5419
  supports_accessory_keypad?: boolean | undefined;
5420
+ /** Deprecated: use model.accessory_keypad_supported. */
5376
5421
  supports_offline_access_codes?: boolean | undefined;
5377
5422
  } & {
5378
5423
  august_metadata?: {
@@ -9,12 +9,21 @@ export declare const common_device_properties: z.ZodObject<{
9
9
  model: z.ZodObject<{
10
10
  display_name: z.ZodString;
11
11
  manufacturer_display_name: z.ZodString;
12
+ offline_access_codes_supported: z.ZodOptional<z.ZodBoolean>;
13
+ access_codes_supported: z.ZodOptional<z.ZodBoolean>;
14
+ accessory_keypad_supported: z.ZodOptional<z.ZodBoolean>;
12
15
  }, "strip", z.ZodTypeAny, {
13
16
  display_name: string;
14
17
  manufacturer_display_name: string;
18
+ offline_access_codes_supported?: boolean | undefined;
19
+ access_codes_supported?: boolean | undefined;
20
+ accessory_keypad_supported?: boolean | undefined;
15
21
  }, {
16
22
  display_name: string;
17
23
  manufacturer_display_name: string;
24
+ offline_access_codes_supported?: boolean | undefined;
25
+ access_codes_supported?: boolean | undefined;
26
+ accessory_keypad_supported?: boolean | undefined;
18
27
  }>;
19
28
  has_direct_power: z.ZodOptional<z.ZodBoolean>;
20
29
  battery_level: z.ZodOptional<z.ZodNumber>;
@@ -32,6 +41,8 @@ export declare const common_device_properties: z.ZodObject<{
32
41
  image_url: z.ZodOptional<z.ZodString>;
33
42
  image_alt_text: z.ZodOptional<z.ZodString>;
34
43
  serial_number: z.ZodOptional<z.ZodString>;
44
+ online_access_codes_enabled: z.ZodOptional<z.ZodBoolean>;
45
+ offline_access_codes_enabled: z.ZodOptional<z.ZodBoolean>;
35
46
  supports_accessory_keypad: z.ZodOptional<z.ZodBoolean>;
36
47
  supports_offline_access_codes: z.ZodOptional<z.ZodBoolean>;
37
48
  }, "strip", z.ZodTypeAny, {
@@ -40,6 +51,9 @@ export declare const common_device_properties: z.ZodObject<{
40
51
  model: {
41
52
  display_name: string;
42
53
  manufacturer_display_name: string;
54
+ offline_access_codes_supported?: boolean | undefined;
55
+ access_codes_supported?: boolean | undefined;
56
+ accessory_keypad_supported?: boolean | undefined;
43
57
  };
44
58
  has_direct_power?: boolean | undefined;
45
59
  battery_level?: number | undefined;
@@ -51,6 +65,8 @@ export declare const common_device_properties: z.ZodObject<{
51
65
  image_url?: string | undefined;
52
66
  image_alt_text?: string | undefined;
53
67
  serial_number?: string | undefined;
68
+ online_access_codes_enabled?: boolean | undefined;
69
+ offline_access_codes_enabled?: boolean | undefined;
54
70
  supports_accessory_keypad?: boolean | undefined;
55
71
  supports_offline_access_codes?: boolean | undefined;
56
72
  }, {
@@ -59,6 +75,9 @@ export declare const common_device_properties: z.ZodObject<{
59
75
  model: {
60
76
  display_name: string;
61
77
  manufacturer_display_name: string;
78
+ offline_access_codes_supported?: boolean | undefined;
79
+ access_codes_supported?: boolean | undefined;
80
+ accessory_keypad_supported?: boolean | undefined;
62
81
  };
63
82
  has_direct_power?: boolean | undefined;
64
83
  battery_level?: number | undefined;
@@ -70,6 +89,8 @@ export declare const common_device_properties: z.ZodObject<{
70
89
  image_url?: string | undefined;
71
90
  image_alt_text?: string | undefined;
72
91
  serial_number?: string | undefined;
92
+ online_access_codes_enabled?: boolean | undefined;
93
+ offline_access_codes_enabled?: boolean | undefined;
73
94
  supports_accessory_keypad?: boolean | undefined;
74
95
  supports_offline_access_codes?: boolean | undefined;
75
96
  }>;
@@ -83,12 +104,21 @@ export declare const managed_device: z.ZodObject<{
83
104
  model: z.ZodObject<{
84
105
  display_name: z.ZodString;
85
106
  manufacturer_display_name: z.ZodString;
107
+ offline_access_codes_supported: z.ZodOptional<z.ZodBoolean>;
108
+ access_codes_supported: z.ZodOptional<z.ZodBoolean>;
109
+ accessory_keypad_supported: z.ZodOptional<z.ZodBoolean>;
86
110
  }, "strip", z.ZodTypeAny, {
87
111
  display_name: string;
88
112
  manufacturer_display_name: string;
113
+ offline_access_codes_supported?: boolean | undefined;
114
+ access_codes_supported?: boolean | undefined;
115
+ accessory_keypad_supported?: boolean | undefined;
89
116
  }, {
90
117
  display_name: string;
91
118
  manufacturer_display_name: string;
119
+ offline_access_codes_supported?: boolean | undefined;
120
+ access_codes_supported?: boolean | undefined;
121
+ accessory_keypad_supported?: boolean | undefined;
92
122
  }>;
93
123
  has_direct_power: z.ZodOptional<z.ZodBoolean>;
94
124
  battery_level: z.ZodOptional<z.ZodNumber>;
@@ -106,6 +136,8 @@ export declare const managed_device: z.ZodObject<{
106
136
  image_url: z.ZodOptional<z.ZodString>;
107
137
  image_alt_text: z.ZodOptional<z.ZodString>;
108
138
  serial_number: z.ZodOptional<z.ZodString>;
139
+ online_access_codes_enabled: z.ZodOptional<z.ZodBoolean>;
140
+ offline_access_codes_enabled: z.ZodOptional<z.ZodBoolean>;
109
141
  supports_accessory_keypad: z.ZodOptional<z.ZodBoolean>;
110
142
  supports_offline_access_codes: z.ZodOptional<z.ZodBoolean>;
111
143
  }, "strip", z.ZodTypeAny, {
@@ -114,6 +146,9 @@ export declare const managed_device: z.ZodObject<{
114
146
  model: {
115
147
  display_name: string;
116
148
  manufacturer_display_name: string;
149
+ offline_access_codes_supported?: boolean | undefined;
150
+ access_codes_supported?: boolean | undefined;
151
+ accessory_keypad_supported?: boolean | undefined;
117
152
  };
118
153
  has_direct_power?: boolean | undefined;
119
154
  battery_level?: number | undefined;
@@ -125,6 +160,8 @@ export declare const managed_device: z.ZodObject<{
125
160
  image_url?: string | undefined;
126
161
  image_alt_text?: string | undefined;
127
162
  serial_number?: string | undefined;
163
+ online_access_codes_enabled?: boolean | undefined;
164
+ offline_access_codes_enabled?: boolean | undefined;
128
165
  supports_accessory_keypad?: boolean | undefined;
129
166
  supports_offline_access_codes?: boolean | undefined;
130
167
  }, {
@@ -133,6 +170,9 @@ export declare const managed_device: z.ZodObject<{
133
170
  model: {
134
171
  display_name: string;
135
172
  manufacturer_display_name: string;
173
+ offline_access_codes_supported?: boolean | undefined;
174
+ access_codes_supported?: boolean | undefined;
175
+ accessory_keypad_supported?: boolean | undefined;
136
176
  };
137
177
  has_direct_power?: boolean | undefined;
138
178
  battery_level?: number | undefined;
@@ -144,6 +184,8 @@ export declare const managed_device: z.ZodObject<{
144
184
  image_url?: string | undefined;
145
185
  image_alt_text?: string | undefined;
146
186
  serial_number?: string | undefined;
187
+ online_access_codes_enabled?: boolean | undefined;
188
+ offline_access_codes_enabled?: boolean | undefined;
147
189
  supports_accessory_keypad?: boolean | undefined;
148
190
  supports_offline_access_codes?: boolean | undefined;
149
191
  }>, z.ZodObject<{
@@ -1792,6 +1834,9 @@ export declare const managed_device: z.ZodObject<{
1792
1834
  model: {
1793
1835
  display_name: string;
1794
1836
  manufacturer_display_name: string;
1837
+ offline_access_codes_supported?: boolean | undefined;
1838
+ access_codes_supported?: boolean | undefined;
1839
+ accessory_keypad_supported?: boolean | undefined;
1795
1840
  };
1796
1841
  has_direct_power?: boolean | undefined;
1797
1842
  battery_level?: number | undefined;
@@ -1803,6 +1848,8 @@ export declare const managed_device: z.ZodObject<{
1803
1848
  image_url?: string | undefined;
1804
1849
  image_alt_text?: string | undefined;
1805
1850
  serial_number?: string | undefined;
1851
+ online_access_codes_enabled?: boolean | undefined;
1852
+ offline_access_codes_enabled?: boolean | undefined;
1806
1853
  supports_accessory_keypad?: boolean | undefined;
1807
1854
  supports_offline_access_codes?: boolean | undefined;
1808
1855
  } & {
@@ -2158,6 +2205,9 @@ export declare const managed_device: z.ZodObject<{
2158
2205
  model: {
2159
2206
  display_name: string;
2160
2207
  manufacturer_display_name: string;
2208
+ offline_access_codes_supported?: boolean | undefined;
2209
+ access_codes_supported?: boolean | undefined;
2210
+ accessory_keypad_supported?: boolean | undefined;
2161
2211
  };
2162
2212
  has_direct_power?: boolean | undefined;
2163
2213
  battery_level?: number | undefined;
@@ -2169,6 +2219,8 @@ export declare const managed_device: z.ZodObject<{
2169
2219
  image_url?: string | undefined;
2170
2220
  image_alt_text?: string | undefined;
2171
2221
  serial_number?: string | undefined;
2222
+ online_access_codes_enabled?: boolean | undefined;
2223
+ offline_access_codes_enabled?: boolean | undefined;
2172
2224
  supports_accessory_keypad?: boolean | undefined;
2173
2225
  supports_offline_access_codes?: boolean | undefined;
2174
2226
  } & {
@@ -2545,6 +2597,9 @@ export declare const managed_device: z.ZodObject<{
2545
2597
  model: {
2546
2598
  display_name: string;
2547
2599
  manufacturer_display_name: string;
2600
+ offline_access_codes_supported?: boolean | undefined;
2601
+ access_codes_supported?: boolean | undefined;
2602
+ accessory_keypad_supported?: boolean | undefined;
2548
2603
  };
2549
2604
  has_direct_power?: boolean | undefined;
2550
2605
  battery_level?: number | undefined;
@@ -2556,6 +2611,8 @@ export declare const managed_device: z.ZodObject<{
2556
2611
  image_url?: string | undefined;
2557
2612
  image_alt_text?: string | undefined;
2558
2613
  serial_number?: string | undefined;
2614
+ online_access_codes_enabled?: boolean | undefined;
2615
+ offline_access_codes_enabled?: boolean | undefined;
2559
2616
  supports_accessory_keypad?: boolean | undefined;
2560
2617
  supports_offline_access_codes?: boolean | undefined;
2561
2618
  } & {
@@ -2911,6 +2968,9 @@ export declare const managed_device: z.ZodObject<{
2911
2968
  model: {
2912
2969
  display_name: string;
2913
2970
  manufacturer_display_name: string;
2971
+ offline_access_codes_supported?: boolean | undefined;
2972
+ access_codes_supported?: boolean | undefined;
2973
+ accessory_keypad_supported?: boolean | undefined;
2914
2974
  };
2915
2975
  has_direct_power?: boolean | undefined;
2916
2976
  battery_level?: number | undefined;
@@ -2922,6 +2982,8 @@ export declare const managed_device: z.ZodObject<{
2922
2982
  image_url?: string | undefined;
2923
2983
  image_alt_text?: string | undefined;
2924
2984
  serial_number?: string | undefined;
2985
+ online_access_codes_enabled?: boolean | undefined;
2986
+ offline_access_codes_enabled?: boolean | undefined;
2925
2987
  supports_accessory_keypad?: boolean | undefined;
2926
2988
  supports_offline_access_codes?: boolean | undefined;
2927
2989
  } & {
@@ -10,6 +10,9 @@ export const common_device_properties = z.object({
10
10
  model: z.object({
11
11
  display_name: z.string(),
12
12
  manufacturer_display_name: z.string(),
13
+ offline_access_codes_supported: z.boolean().optional(),
14
+ access_codes_supported: z.boolean().optional(),
15
+ accessory_keypad_supported: z.boolean().optional(),
13
16
  }),
14
17
  has_direct_power: z.boolean().optional(),
15
18
  battery_level: z.number().min(0).max(1).optional(),
@@ -24,8 +27,23 @@ export const common_device_properties = z.object({
24
27
  image_url: z.string().url().optional(),
25
28
  image_alt_text: z.string().optional(),
26
29
  serial_number: z.string().optional(),
27
- supports_accessory_keypad: z.boolean().optional(),
28
- supports_offline_access_codes: z.boolean().optional(),
30
+ online_access_codes_enabled: z
31
+ .boolean()
32
+ .describe('Currently possible to use online access codes')
33
+ .optional(),
34
+ offline_access_codes_enabled: z
35
+ .boolean()
36
+ .describe('Currently possible to use offline access codes')
37
+ .optional(),
38
+ // Deprecated legacy capability support props
39
+ supports_accessory_keypad: z
40
+ .boolean()
41
+ .describe('Deprecated: use model.offline_access_codes_enabled.')
42
+ .optional(),
43
+ supports_offline_access_codes: z
44
+ .boolean()
45
+ .describe('Deprecated: use model.accessory_keypad_supported.')
46
+ .optional(),
29
47
  });
30
48
  export const managed_device = z.object({
31
49
  device_id: z.string().uuid(),
@@ -1 +1 @@
1
- {"version":3,"file":"managed-device.js","sourceRoot":"","sources":["../../../../../../src/lib/seam/connect/unstable/models/devices/managed-device.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAA;AACzE,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAA;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AACtD,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAA;AAElD,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC,CAAA;AAIzE,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC/C,MAAM,EAAE,CAAC,CAAC,OAAO,EAAE;IACnB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC;QACd,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE;QACxB,yBAAyB,EAAE,CAAC,CAAC,MAAM,EAAE;KACtC,CAAC;IACF,gBAAgB,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IACxC,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IAClD,OAAO,EAAE,CAAC;SACP,MAAM,CAAC;QACN,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;QAC/B,MAAM,EAAE,cAAc;KACvB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C,CACH;IACD,QAAQ,EAAE,CAAC,CAAC,KAAK,CACf,CAAC,CAAC,MAAM,CAAC;QACP,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE;QACxB,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;KACpB,CAAC,CACH;IACD,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC;CAC5B,CAAC,CAAA"}
1
+ {"version":3,"file":"managed-device.js","sourceRoot":"","sources":["../../../../../../src/lib/seam/connect/unstable/models/devices/managed-device.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAA;AACzE,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAA;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AACtD,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAA;AAElD,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC,CAAA;AAIzE,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC/C,MAAM,EAAE,CAAC,CAAC,OAAO,EAAE;IACnB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC;QACd,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE;QACxB,yBAAyB,EAAE,CAAC,CAAC,MAAM,EAAE;QAErC,8BAA8B,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;QACtD,sBAAsB,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;QAC9C,0BAA0B,EAAE,CAAC,CAAC,OAAO,EAA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AE;IAC5B,WAAW,EAAE,eAAe;IAC5B,sBAAsB,EAAE,CAAC,CAAC,KAAK,CAAC,YAAY,CAAC;IAC7C,UAAU,EAAE,wBAAwB;SACjC,GAAG,CAAC,eAAe,CAAC;SACpB,GAAG,CAAC,qBAAqB,CAAC;IAC7B,QAAQ,EAAE,CAAC;QACT,qCAAqC;SACpC,MAAM,CAAC;QACN,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QACpC,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;KAChC,CAAC;SACD,QAAQ,EAAE;IACb,oBAAoB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IACvC,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IAC/B,MAAM,EAAE,CAAC,CAAC,KAAK,CACb,CAAC,CAAC,MAAM,CAAC;QACP,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;QACtB,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;KACpB,CAAC,CACH;IACD,QAAQ,EAAE,CAAC,CAAC,KAAK,CACf,CAAC,CAAC,MAAM,CAAC;QACP,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE;QACxB,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;KACpB,CAAC,CACH;IACD,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC;CAC5B,CAAC,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/types",
3
- "version": "1.42.1",
3
+ "version": "1.43.0",
4
4
  "description": "TypeScript types for the Seam API.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -451,17 +451,38 @@ export default {
451
451
  manufacturer: { type: 'string' },
452
452
  model: {
453
453
  properties: {
454
+ access_codes_supported: { type: 'boolean' },
455
+ accessory_keypad_supported: { type: 'boolean' },
454
456
  display_name: { type: 'string' },
455
457
  manufacturer_display_name: { type: 'string' },
458
+ offline_access_codes_supported: { type: 'boolean' },
456
459
  },
457
460
  required: ['display_name', 'manufacturer_display_name'],
458
461
  type: 'object',
459
462
  },
460
463
  name: { type: 'string' },
464
+ offline_access_codes_enabled: {
465
+ description:
466
+ 'Currently possible to use offline access codes',
467
+ type: 'boolean',
468
+ },
461
469
  online: { type: 'boolean' },
470
+ online_access_codes_enabled: {
471
+ description:
472
+ 'Currently possible to use online access codes',
473
+ type: 'boolean',
474
+ },
462
475
  serial_number: { type: 'string' },
463
- supports_accessory_keypad: { type: 'boolean' },
464
- supports_offline_access_codes: { type: 'boolean' },
476
+ supports_accessory_keypad: {
477
+ description:
478
+ 'Deprecated: use model.offline_access_codes_enabled.',
479
+ type: 'boolean',
480
+ },
481
+ supports_offline_access_codes: {
482
+ description:
483
+ 'Deprecated: use model.accessory_keypad_supported.',
484
+ type: 'boolean',
485
+ },
465
486
  },
466
487
  required: ['online', 'name', 'model'],
467
488
  type: 'object',
@@ -1466,6 +1466,9 @@ export interface Routes {
1466
1466
  model: {
1467
1467
  display_name: string
1468
1468
  manufacturer_display_name: string
1469
+ offline_access_codes_supported?: boolean | undefined
1470
+ access_codes_supported?: boolean | undefined
1471
+ accessory_keypad_supported?: boolean | undefined
1469
1472
  }
1470
1473
  has_direct_power?: boolean | undefined
1471
1474
  battery_level?: number | undefined
@@ -1479,7 +1482,13 @@ export interface Routes {
1479
1482
  image_url?: string | undefined
1480
1483
  image_alt_text?: string | undefined
1481
1484
  serial_number?: string | undefined
1485
+ /** Currently possible to use online access codes */
1486
+ online_access_codes_enabled?: boolean | undefined
1487
+ /** Currently possible to use offline access codes */
1488
+ offline_access_codes_enabled?: boolean | undefined
1489
+ /** Deprecated: use model.offline_access_codes_enabled. */
1482
1490
  supports_accessory_keypad?: boolean | undefined
1491
+ /** Deprecated: use model.accessory_keypad_supported. */
1483
1492
  supports_offline_access_codes?: boolean | undefined
1484
1493
  } & {
1485
1494
  august_metadata?:
@@ -2164,6 +2173,9 @@ export interface Routes {
2164
2173
  model: {
2165
2174
  display_name: string
2166
2175
  manufacturer_display_name: string
2176
+ offline_access_codes_supported?: boolean | undefined
2177
+ access_codes_supported?: boolean | undefined
2178
+ accessory_keypad_supported?: boolean | undefined
2167
2179
  }
2168
2180
  has_direct_power?: boolean | undefined
2169
2181
  battery_level?: number | undefined
@@ -2177,7 +2189,13 @@ export interface Routes {
2177
2189
  image_url?: string | undefined
2178
2190
  image_alt_text?: string | undefined
2179
2191
  serial_number?: string | undefined
2192
+ /** Currently possible to use online access codes */
2193
+ online_access_codes_enabled?: boolean | undefined
2194
+ /** Currently possible to use offline access codes */
2195
+ offline_access_codes_enabled?: boolean | undefined
2196
+ /** Deprecated: use model.offline_access_codes_enabled. */
2180
2197
  supports_accessory_keypad?: boolean | undefined
2198
+ /** Deprecated: use model.accessory_keypad_supported. */
2181
2199
  supports_offline_access_codes?: boolean | undefined
2182
2200
  } & {
2183
2201
  august_metadata?:
@@ -6143,6 +6161,9 @@ export interface Routes {
6143
6161
  model: {
6144
6162
  display_name: string
6145
6163
  manufacturer_display_name: string
6164
+ offline_access_codes_supported?: boolean | undefined
6165
+ access_codes_supported?: boolean | undefined
6166
+ accessory_keypad_supported?: boolean | undefined
6146
6167
  }
6147
6168
  has_direct_power?: boolean | undefined
6148
6169
  battery_level?: number | undefined
@@ -6156,7 +6177,13 @@ export interface Routes {
6156
6177
  image_url?: string | undefined
6157
6178
  image_alt_text?: string | undefined
6158
6179
  serial_number?: string | undefined
6180
+ /** Currently possible to use online access codes */
6181
+ online_access_codes_enabled?: boolean | undefined
6182
+ /** Currently possible to use offline access codes */
6183
+ offline_access_codes_enabled?: boolean | undefined
6184
+ /** Deprecated: use model.offline_access_codes_enabled. */
6159
6185
  supports_accessory_keypad?: boolean | undefined
6186
+ /** Deprecated: use model.accessory_keypad_supported. */
6160
6187
  supports_offline_access_codes?: boolean | undefined
6161
6188
  } & {
6162
6189
  august_metadata?:
@@ -6871,6 +6898,9 @@ export interface Routes {
6871
6898
  model: {
6872
6899
  display_name: string
6873
6900
  manufacturer_display_name: string
6901
+ offline_access_codes_supported?: boolean | undefined
6902
+ access_codes_supported?: boolean | undefined
6903
+ accessory_keypad_supported?: boolean | undefined
6874
6904
  }
6875
6905
  has_direct_power?: boolean | undefined
6876
6906
  battery_level?: number | undefined
@@ -6884,7 +6914,13 @@ export interface Routes {
6884
6914
  image_url?: string | undefined
6885
6915
  image_alt_text?: string | undefined
6886
6916
  serial_number?: string | undefined
6917
+ /** Currently possible to use online access codes */
6918
+ online_access_codes_enabled?: boolean | undefined
6919
+ /** Currently possible to use offline access codes */
6920
+ offline_access_codes_enabled?: boolean | undefined
6921
+ /** Deprecated: use model.offline_access_codes_enabled. */
6887
6922
  supports_accessory_keypad?: boolean | undefined
6923
+ /** Deprecated: use model.accessory_keypad_supported. */
6888
6924
  supports_offline_access_codes?: boolean | undefined
6889
6925
  } & {
6890
6926
  august_metadata?:
@@ -7574,6 +7610,9 @@ export interface Routes {
7574
7610
  model: {
7575
7611
  display_name: string
7576
7612
  manufacturer_display_name: string
7613
+ offline_access_codes_supported?: boolean | undefined
7614
+ access_codes_supported?: boolean | undefined
7615
+ accessory_keypad_supported?: boolean | undefined
7577
7616
  }
7578
7617
  has_direct_power?: boolean | undefined
7579
7618
  battery_level?: number | undefined
@@ -7587,7 +7626,13 @@ export interface Routes {
7587
7626
  image_url?: string | undefined
7588
7627
  image_alt_text?: string | undefined
7589
7628
  serial_number?: string | undefined
7629
+ /** Currently possible to use online access codes */
7630
+ online_access_codes_enabled?: boolean | undefined
7631
+ /** Currently possible to use offline access codes */
7632
+ offline_access_codes_enabled?: boolean | undefined
7633
+ /** Deprecated: use model.offline_access_codes_enabled. */
7590
7634
  supports_accessory_keypad?: boolean | undefined
7635
+ /** Deprecated: use model.accessory_keypad_supported. */
7591
7636
  supports_offline_access_codes?: boolean | undefined
7592
7637
  } & {
7593
7638
  august_metadata?:
@@ -16,6 +16,10 @@ export const common_device_properties = z.object({
16
16
  model: z.object({
17
17
  display_name: z.string(),
18
18
  manufacturer_display_name: z.string(),
19
+
20
+ offline_access_codes_supported: z.boolean().optional(),
21
+ access_codes_supported: z.boolean().optional(),
22
+ accessory_keypad_supported: z.boolean().optional(),
19
23
  }),
20
24
  has_direct_power: z.boolean().optional(),
21
25
  battery_level: z.number().min(0).max(1).optional(),
@@ -30,8 +34,25 @@ export const common_device_properties = z.object({
30
34
  image_url: z.string().url().optional(),
31
35
  image_alt_text: z.string().optional(),
32
36
  serial_number: z.string().optional(),
33
- supports_accessory_keypad: z.boolean().optional(),
34
- supports_offline_access_codes: z.boolean().optional(),
37
+
38
+ online_access_codes_enabled: z
39
+ .boolean()
40
+ .describe('Currently possible to use online access codes')
41
+ .optional(),
42
+ offline_access_codes_enabled: z
43
+ .boolean()
44
+ .describe('Currently possible to use offline access codes')
45
+ .optional(),
46
+
47
+ // Deprecated legacy capability support props
48
+ supports_accessory_keypad: z
49
+ .boolean()
50
+ .describe('Deprecated: use model.offline_access_codes_enabled.')
51
+ .optional(),
52
+ supports_offline_access_codes: z
53
+ .boolean()
54
+ .describe('Deprecated: use model.accessory_keypad_supported.')
55
+ .optional(),
35
56
  })
36
57
 
37
58
  export const managed_device = z.object({