@seamapi/types 1.928.0 → 1.929.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 (28) hide show
  1. package/dist/connect.cjs +185 -0
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +1453 -209
  4. package/dist/index.cjs +185 -0
  5. package/dist/index.cjs.map +1 -1
  6. package/lib/seam/connect/models/access-grants/access-grant.d.ts +4 -4
  7. package/lib/seam/connect/models/acs/acs-access-group.d.ts +4 -4
  8. package/lib/seam/connect/models/connected-accounts/connected-account.d.ts +2 -2
  9. package/lib/seam/connect/models/customer/customer-data.d.ts +12 -12
  10. package/lib/seam/connect/models/customer/location-resources.d.ts +8 -8
  11. package/lib/seam/connect/models/devices/capability-properties/access-code.d.ts +201 -0
  12. package/lib/seam/connect/models/devices/capability-properties/access-code.js +58 -0
  13. package/lib/seam/connect/models/devices/capability-properties/access-code.js.map +1 -1
  14. package/lib/seam/connect/models/devices/capability-properties/index.d.ts +165 -13
  15. package/lib/seam/connect/models/devices/capability-properties/thermostat.d.ts +12 -12
  16. package/lib/seam/connect/models/devices/device-metadata.d.ts +20 -20
  17. package/lib/seam/connect/models/devices/device.d.ts +248 -40
  18. package/lib/seam/connect/models/devices/unmanaged-device.d.ts +180 -28
  19. package/lib/seam/connect/models/spaces/space.d.ts +4 -4
  20. package/lib/seam/connect/models/thermostats/climate-preset.d.ts +4 -4
  21. package/lib/seam/connect/openapi.js +136 -0
  22. package/lib/seam/connect/openapi.js.map +1 -1
  23. package/lib/seam/connect/route-types.d.ts +884 -0
  24. package/package.json +1 -1
  25. package/src/lib/seam/connect/models/devices/capability-properties/access-code.ts +86 -0
  26. package/src/lib/seam/connect/models/devices/capability-properties/index.ts +1 -1
  27. package/src/lib/seam/connect/openapi.ts +164 -0
  28. package/src/lib/seam/connect/route-types.ts +1122 -0
@@ -582,8 +582,8 @@ export declare const access_grant: z.ZodObject<{
582
582
  access_method_ids: string[];
583
583
  }>]>, "many">;
584
584
  }, "strip", z.ZodTypeAny, {
585
- name: string | null;
586
585
  display_name: string;
586
+ name: string | null;
587
587
  workspace_id: string;
588
588
  created_at: string;
589
589
  starts_at: string;
@@ -679,8 +679,8 @@ export declare const access_grant: z.ZodObject<{
679
679
  instant_key_url?: string | undefined;
680
680
  customization_profile_id?: string | undefined;
681
681
  }, {
682
- name: string | null;
683
682
  display_name: string;
683
+ name: string | null;
684
684
  workspace_id: string;
685
685
  created_at: string;
686
686
  starts_at: string;
@@ -1069,8 +1069,8 @@ export declare const unmanaged_access_grant: z.ZodObject<Omit<{
1069
1069
  }, "access_grant_key" | "user_identity_id" | "client_session_token" | "instant_key_url" | "customization_profile_id"> & {
1070
1070
  user_identity_id: z.ZodOptional<z.ZodString>;
1071
1071
  }, "strip", z.ZodTypeAny, {
1072
- name: string | null;
1073
1072
  display_name: string;
1073
+ name: string | null;
1074
1074
  workspace_id: string;
1075
1075
  created_at: string;
1076
1076
  starts_at: string;
@@ -1162,8 +1162,8 @@ export declare const unmanaged_access_grant: z.ZodObject<Omit<{
1162
1162
  reservation_key?: string | undefined;
1163
1163
  user_identity_id?: string | undefined;
1164
1164
  }, {
1165
- name: string | null;
1166
1165
  display_name: string;
1166
+ name: string | null;
1167
1167
  workspace_id: string;
1168
1168
  created_at: string;
1169
1169
  starts_at: string;
@@ -388,8 +388,8 @@ export declare const acs_access_group: z.ZodObject<{
388
388
  } & {
389
389
  is_managed: z.ZodLiteral<true>;
390
390
  }, "strip", z.ZodTypeAny, {
391
- name: string;
392
391
  display_name: string;
392
+ name: string;
393
393
  workspace_id: string;
394
394
  created_at: string;
395
395
  errors: {
@@ -480,8 +480,8 @@ export declare const acs_access_group: z.ZodObject<{
480
480
  ends_at: string | null;
481
481
  } | undefined;
482
482
  }, {
483
- name: string;
484
483
  display_name: string;
484
+ name: string;
485
485
  workspace_id: string;
486
486
  created_at: string;
487
487
  errors: {
@@ -863,8 +863,8 @@ export declare const unmanaged_acs_access_group: z.ZodObject<{
863
863
  } & {
864
864
  is_managed: z.ZodLiteral<false>;
865
865
  }, "strip", z.ZodTypeAny, {
866
- name: string;
867
866
  display_name: string;
867
+ name: string;
868
868
  workspace_id: string;
869
869
  created_at: string;
870
870
  errors: {
@@ -955,8 +955,8 @@ export declare const unmanaged_acs_access_group: z.ZodObject<{
955
955
  ends_at: string | null;
956
956
  } | undefined;
957
957
  }, {
958
- name: string;
959
958
  display_name: string;
959
+ name: string;
960
960
  workspace_id: string;
961
961
  created_at: string;
962
962
  errors: {
@@ -1281,6 +1281,7 @@ export declare const connected_account: z.ZodObject<{
1281
1281
  custom_metadata: Record<string, string | boolean>;
1282
1282
  automatically_manage_new_devices: boolean;
1283
1283
  accepted_capabilities: ("lock" | "thermostat" | "noise_sensor" | "access_control" | "camera")[];
1284
+ time_zone?: string | undefined;
1284
1285
  created_at?: string | undefined;
1285
1286
  user_identifier?: {
1286
1287
  phone?: string | undefined;
@@ -1294,7 +1295,6 @@ export declare const connected_account: z.ZodObject<{
1294
1295
  customer_key?: string | undefined;
1295
1296
  default_checkin_time?: string | undefined;
1296
1297
  default_checkout_time?: string | undefined;
1297
- time_zone?: string | undefined;
1298
1298
  ical_feed_origin?: string | undefined;
1299
1299
  ical_url?: string | undefined;
1300
1300
  }, {
@@ -1378,6 +1378,7 @@ export declare const connected_account: z.ZodObject<{
1378
1378
  custom_metadata: Record<string, string | boolean>;
1379
1379
  automatically_manage_new_devices: boolean;
1380
1380
  accepted_capabilities: ("lock" | "thermostat" | "noise_sensor" | "access_control" | "camera")[];
1381
+ time_zone?: string | undefined;
1381
1382
  created_at?: string | undefined;
1382
1383
  user_identifier?: {
1383
1384
  phone?: string | undefined;
@@ -1391,7 +1392,6 @@ export declare const connected_account: z.ZodObject<{
1391
1392
  customer_key?: string | undefined;
1392
1393
  default_checkin_time?: string | undefined;
1393
1394
  default_checkout_time?: string | undefined;
1394
- time_zone?: string | undefined;
1395
1395
  ical_feed_origin?: string | undefined;
1396
1396
  ical_url?: string | undefined;
1397
1397
  }>;
@@ -12,14 +12,14 @@ export declare const external_resources: z.ZodObject<{
12
12
  default_checkout_time: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13
13
  address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
14
  }, "strip", z.ZodTypeAny, {
15
+ time_zone?: string | null | undefined;
15
16
  default_checkin_time?: string | null | undefined;
16
17
  default_checkout_time?: string | null | undefined;
17
- time_zone?: string | null | undefined;
18
18
  address?: string | null | undefined;
19
19
  }, {
20
+ time_zone?: string | null | undefined;
20
21
  default_checkin_time?: string | null | undefined;
21
22
  default_checkout_time?: string | null | undefined;
22
- time_zone?: string | null | undefined;
23
23
  address?: string | null | undefined;
24
24
  }>>;
25
25
  geolocation: z.ZodOptional<z.ZodObject<{
@@ -36,9 +36,9 @@ export declare const external_resources: z.ZodObject<{
36
36
  name: string;
37
37
  space_key: string;
38
38
  customer_data?: {
39
+ time_zone?: string | null | undefined;
39
40
  default_checkin_time?: string | null | undefined;
40
41
  default_checkout_time?: string | null | undefined;
41
- time_zone?: string | null | undefined;
42
42
  address?: string | null | undefined;
43
43
  } | undefined;
44
44
  geolocation?: {
@@ -51,9 +51,9 @@ export declare const external_resources: z.ZodObject<{
51
51
  name: string;
52
52
  space_key: string;
53
53
  customer_data?: {
54
+ time_zone?: string | null | undefined;
54
55
  default_checkin_time?: string | null | undefined;
55
56
  default_checkout_time?: string | null | undefined;
56
- time_zone?: string | null | undefined;
57
57
  address?: string | null | undefined;
58
58
  } | undefined;
59
59
  geolocation?: {
@@ -511,9 +511,9 @@ export declare const external_resources: z.ZodObject<{
511
511
  name: string;
512
512
  space_key: string;
513
513
  customer_data?: {
514
+ time_zone?: string | null | undefined;
514
515
  default_checkin_time?: string | null | undefined;
515
516
  default_checkout_time?: string | null | undefined;
516
- time_zone?: string | null | undefined;
517
517
  address?: string | null | undefined;
518
518
  } | undefined;
519
519
  geolocation?: {
@@ -675,9 +675,9 @@ export declare const external_resources: z.ZodObject<{
675
675
  name: string;
676
676
  space_key: string;
677
677
  customer_data?: {
678
+ time_zone?: string | null | undefined;
678
679
  default_checkin_time?: string | null | undefined;
679
680
  default_checkout_time?: string | null | undefined;
680
- time_zone?: string | null | undefined;
681
681
  address?: string | null | undefined;
682
682
  } | undefined;
683
683
  geolocation?: {
@@ -837,14 +837,14 @@ export declare const customer_data: z.ZodObject<{
837
837
  default_checkout_time: z.ZodOptional<z.ZodNullable<z.ZodString>>;
838
838
  address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
839
839
  }, "strip", z.ZodTypeAny, {
840
+ time_zone?: string | null | undefined;
840
841
  default_checkin_time?: string | null | undefined;
841
842
  default_checkout_time?: string | null | undefined;
842
- time_zone?: string | null | undefined;
843
843
  address?: string | null | undefined;
844
844
  }, {
845
+ time_zone?: string | null | undefined;
845
846
  default_checkin_time?: string | null | undefined;
846
847
  default_checkout_time?: string | null | undefined;
847
- time_zone?: string | null | undefined;
848
848
  address?: string | null | undefined;
849
849
  }>>;
850
850
  geolocation: z.ZodOptional<z.ZodObject<{
@@ -861,9 +861,9 @@ export declare const customer_data: z.ZodObject<{
861
861
  name: string;
862
862
  space_key: string;
863
863
  customer_data?: {
864
+ time_zone?: string | null | undefined;
864
865
  default_checkin_time?: string | null | undefined;
865
866
  default_checkout_time?: string | null | undefined;
866
- time_zone?: string | null | undefined;
867
867
  address?: string | null | undefined;
868
868
  } | undefined;
869
869
  geolocation?: {
@@ -876,9 +876,9 @@ export declare const customer_data: z.ZodObject<{
876
876
  name: string;
877
877
  space_key: string;
878
878
  customer_data?: {
879
+ time_zone?: string | null | undefined;
879
880
  default_checkin_time?: string | null | undefined;
880
881
  default_checkout_time?: string | null | undefined;
881
- time_zone?: string | null | undefined;
882
882
  address?: string | null | undefined;
883
883
  } | undefined;
884
884
  geolocation?: {
@@ -1337,9 +1337,9 @@ export declare const customer_data: z.ZodObject<{
1337
1337
  name: string;
1338
1338
  space_key: string;
1339
1339
  customer_data?: {
1340
+ time_zone?: string | null | undefined;
1340
1341
  default_checkin_time?: string | null | undefined;
1341
1342
  default_checkout_time?: string | null | undefined;
1342
- time_zone?: string | null | undefined;
1343
1343
  address?: string | null | undefined;
1344
1344
  } | undefined;
1345
1345
  geolocation?: {
@@ -1502,9 +1502,9 @@ export declare const customer_data: z.ZodObject<{
1502
1502
  name: string;
1503
1503
  space_key: string;
1504
1504
  customer_data?: {
1505
+ time_zone?: string | null | undefined;
1505
1506
  default_checkin_time?: string | null | undefined;
1506
1507
  default_checkout_time?: string | null | undefined;
1507
- time_zone?: string | null | undefined;
1508
1508
  address?: string | null | undefined;
1509
1509
  } | undefined;
1510
1510
  geolocation?: {
@@ -11,14 +11,14 @@ export declare const neutral_resource: z.ZodObject<{
11
11
  default_checkout_time: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12
12
  address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13
13
  }, "strip", z.ZodTypeAny, {
14
+ time_zone?: string | null | undefined;
14
15
  default_checkin_time?: string | null | undefined;
15
16
  default_checkout_time?: string | null | undefined;
16
- time_zone?: string | null | undefined;
17
17
  address?: string | null | undefined;
18
18
  }, {
19
+ time_zone?: string | null | undefined;
19
20
  default_checkin_time?: string | null | undefined;
20
21
  default_checkout_time?: string | null | undefined;
21
- time_zone?: string | null | undefined;
22
22
  address?: string | null | undefined;
23
23
  }>>;
24
24
  geolocation: z.ZodOptional<z.ZodObject<{
@@ -35,9 +35,9 @@ export declare const neutral_resource: z.ZodObject<{
35
35
  name: string;
36
36
  space_key: string;
37
37
  customer_data?: {
38
+ time_zone?: string | null | undefined;
38
39
  default_checkin_time?: string | null | undefined;
39
40
  default_checkout_time?: string | null | undefined;
40
- time_zone?: string | null | undefined;
41
41
  address?: string | null | undefined;
42
42
  } | undefined;
43
43
  geolocation?: {
@@ -50,9 +50,9 @@ export declare const neutral_resource: z.ZodObject<{
50
50
  name: string;
51
51
  space_key: string;
52
52
  customer_data?: {
53
+ time_zone?: string | null | undefined;
53
54
  default_checkin_time?: string | null | undefined;
54
55
  default_checkout_time?: string | null | undefined;
55
- time_zone?: string | null | undefined;
56
56
  address?: string | null | undefined;
57
57
  } | undefined;
58
58
  geolocation?: {
@@ -185,14 +185,14 @@ export declare const location_resource: z.ZodUnion<[z.ZodObject<{
185
185
  default_checkout_time: z.ZodOptional<z.ZodNullable<z.ZodString>>;
186
186
  address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
187
187
  }, "strip", z.ZodTypeAny, {
188
+ time_zone?: string | null | undefined;
188
189
  default_checkin_time?: string | null | undefined;
189
190
  default_checkout_time?: string | null | undefined;
190
- time_zone?: string | null | undefined;
191
191
  address?: string | null | undefined;
192
192
  }, {
193
+ time_zone?: string | null | undefined;
193
194
  default_checkin_time?: string | null | undefined;
194
195
  default_checkout_time?: string | null | undefined;
195
- time_zone?: string | null | undefined;
196
196
  address?: string | null | undefined;
197
197
  }>>;
198
198
  geolocation: z.ZodOptional<z.ZodObject<{
@@ -209,9 +209,9 @@ export declare const location_resource: z.ZodUnion<[z.ZodObject<{
209
209
  name: string;
210
210
  space_key: string;
211
211
  customer_data?: {
212
+ time_zone?: string | null | undefined;
212
213
  default_checkin_time?: string | null | undefined;
213
214
  default_checkout_time?: string | null | undefined;
214
- time_zone?: string | null | undefined;
215
215
  address?: string | null | undefined;
216
216
  } | undefined;
217
217
  geolocation?: {
@@ -224,9 +224,9 @@ export declare const location_resource: z.ZodUnion<[z.ZodObject<{
224
224
  name: string;
225
225
  space_key: string;
226
226
  customer_data?: {
227
+ time_zone?: string | null | undefined;
227
228
  default_checkin_time?: string | null | undefined;
228
229
  default_checkout_time?: string | null | undefined;
229
- time_zone?: string | null | undefined;
230
230
  address?: string | null | undefined;
231
231
  } | undefined;
232
232
  geolocation?: {
@@ -39,6 +39,55 @@ export declare const access_code_constraint: z.ZodUnion<[z.ZodObject<{
39
39
  max_length?: number | undefined;
40
40
  }>]>;
41
41
  export type AccessCodeConstraint = z.infer<typeof access_code_constraint>;
42
+ export declare const time_frame_option: z.ZodObject<{
43
+ display_name: z.ZodString;
44
+ min_duration: z.ZodOptional<z.ZodString>;
45
+ max_duration: z.ZodOptional<z.ZodString>;
46
+ matching_start_end_time: z.ZodOptional<z.ZodLiteral<true>>;
47
+ time_pairs: z.ZodOptional<z.ZodArray<z.ZodObject<{
48
+ display_name: z.ZodString;
49
+ check_in_time: z.ZodString;
50
+ check_out_time: z.ZodString;
51
+ }, "strip", z.ZodTypeAny, {
52
+ display_name: string;
53
+ check_in_time: string;
54
+ check_out_time: string;
55
+ }, {
56
+ display_name: string;
57
+ check_in_time: string;
58
+ check_out_time: string;
59
+ }>, "many">>;
60
+ start_date_recurrence_rule: z.ZodOptional<z.ZodString>;
61
+ end_date_recurrence_rule: z.ZodOptional<z.ZodString>;
62
+ time_zone: z.ZodOptional<z.ZodString>;
63
+ }, "strip", z.ZodTypeAny, {
64
+ display_name: string;
65
+ min_duration?: string | undefined;
66
+ max_duration?: string | undefined;
67
+ matching_start_end_time?: true | undefined;
68
+ time_pairs?: {
69
+ display_name: string;
70
+ check_in_time: string;
71
+ check_out_time: string;
72
+ }[] | undefined;
73
+ start_date_recurrence_rule?: string | undefined;
74
+ end_date_recurrence_rule?: string | undefined;
75
+ time_zone?: string | undefined;
76
+ }, {
77
+ display_name: string;
78
+ min_duration?: string | undefined;
79
+ max_duration?: string | undefined;
80
+ matching_start_end_time?: true | undefined;
81
+ time_pairs?: {
82
+ display_name: string;
83
+ check_in_time: string;
84
+ check_out_time: string;
85
+ }[] | undefined;
86
+ start_date_recurrence_rule?: string | undefined;
87
+ end_date_recurrence_rule?: string | undefined;
88
+ time_zone?: string | undefined;
89
+ }>;
90
+ export type TimeFrameOption = z.infer<typeof time_frame_option>;
42
91
  export declare const access_code_capability_properties: z.ZodObject<{
43
92
  _experimental_supported_code_from_access_codes_lengths: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
44
93
  code_constraints: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
@@ -61,6 +110,102 @@ export declare const access_code_capability_properties: z.ZodObject<{
61
110
  max_length?: number | undefined;
62
111
  }>]>, "many">>;
63
112
  supported_code_lengths: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
113
+ offline_time_frame_options: z.ZodOptional<z.ZodArray<z.ZodObject<{
114
+ display_name: z.ZodString;
115
+ min_duration: z.ZodOptional<z.ZodString>;
116
+ max_duration: z.ZodOptional<z.ZodString>;
117
+ matching_start_end_time: z.ZodOptional<z.ZodLiteral<true>>;
118
+ time_pairs: z.ZodOptional<z.ZodArray<z.ZodObject<{
119
+ display_name: z.ZodString;
120
+ check_in_time: z.ZodString;
121
+ check_out_time: z.ZodString;
122
+ }, "strip", z.ZodTypeAny, {
123
+ display_name: string;
124
+ check_in_time: string;
125
+ check_out_time: string;
126
+ }, {
127
+ display_name: string;
128
+ check_in_time: string;
129
+ check_out_time: string;
130
+ }>, "many">>;
131
+ start_date_recurrence_rule: z.ZodOptional<z.ZodString>;
132
+ end_date_recurrence_rule: z.ZodOptional<z.ZodString>;
133
+ time_zone: z.ZodOptional<z.ZodString>;
134
+ }, "strip", z.ZodTypeAny, {
135
+ display_name: string;
136
+ min_duration?: string | undefined;
137
+ max_duration?: string | undefined;
138
+ matching_start_end_time?: true | undefined;
139
+ time_pairs?: {
140
+ display_name: string;
141
+ check_in_time: string;
142
+ check_out_time: string;
143
+ }[] | undefined;
144
+ start_date_recurrence_rule?: string | undefined;
145
+ end_date_recurrence_rule?: string | undefined;
146
+ time_zone?: string | undefined;
147
+ }, {
148
+ display_name: string;
149
+ min_duration?: string | undefined;
150
+ max_duration?: string | undefined;
151
+ matching_start_end_time?: true | undefined;
152
+ time_pairs?: {
153
+ display_name: string;
154
+ check_in_time: string;
155
+ check_out_time: string;
156
+ }[] | undefined;
157
+ start_date_recurrence_rule?: string | undefined;
158
+ end_date_recurrence_rule?: string | undefined;
159
+ time_zone?: string | undefined;
160
+ }>, "many">>;
161
+ online_time_frame_options: z.ZodOptional<z.ZodArray<z.ZodObject<{
162
+ display_name: z.ZodString;
163
+ min_duration: z.ZodOptional<z.ZodString>;
164
+ max_duration: z.ZodOptional<z.ZodString>;
165
+ matching_start_end_time: z.ZodOptional<z.ZodLiteral<true>>;
166
+ time_pairs: z.ZodOptional<z.ZodArray<z.ZodObject<{
167
+ display_name: z.ZodString;
168
+ check_in_time: z.ZodString;
169
+ check_out_time: z.ZodString;
170
+ }, "strip", z.ZodTypeAny, {
171
+ display_name: string;
172
+ check_in_time: string;
173
+ check_out_time: string;
174
+ }, {
175
+ display_name: string;
176
+ check_in_time: string;
177
+ check_out_time: string;
178
+ }>, "many">>;
179
+ start_date_recurrence_rule: z.ZodOptional<z.ZodString>;
180
+ end_date_recurrence_rule: z.ZodOptional<z.ZodString>;
181
+ time_zone: z.ZodOptional<z.ZodString>;
182
+ }, "strip", z.ZodTypeAny, {
183
+ display_name: string;
184
+ min_duration?: string | undefined;
185
+ max_duration?: string | undefined;
186
+ matching_start_end_time?: true | undefined;
187
+ time_pairs?: {
188
+ display_name: string;
189
+ check_in_time: string;
190
+ check_out_time: string;
191
+ }[] | undefined;
192
+ start_date_recurrence_rule?: string | undefined;
193
+ end_date_recurrence_rule?: string | undefined;
194
+ time_zone?: string | undefined;
195
+ }, {
196
+ display_name: string;
197
+ min_duration?: string | undefined;
198
+ max_duration?: string | undefined;
199
+ matching_start_end_time?: true | undefined;
200
+ time_pairs?: {
201
+ display_name: string;
202
+ check_in_time: string;
203
+ check_out_time: string;
204
+ }[] | undefined;
205
+ start_date_recurrence_rule?: string | undefined;
206
+ end_date_recurrence_rule?: string | undefined;
207
+ time_zone?: string | undefined;
208
+ }>, "many">>;
64
209
  max_active_codes_supported: z.ZodOptional<z.ZodNumber>;
65
210
  supports_backup_access_code_pool: z.ZodOptional<z.ZodBoolean>;
66
211
  has_native_entry_events: z.ZodOptional<z.ZodBoolean>;
@@ -74,6 +219,34 @@ export declare const access_code_capability_properties: z.ZodObject<{
74
219
  max_length?: number | undefined;
75
220
  })[] | undefined;
76
221
  supported_code_lengths?: number[] | undefined;
222
+ offline_time_frame_options?: {
223
+ display_name: string;
224
+ min_duration?: string | undefined;
225
+ max_duration?: string | undefined;
226
+ matching_start_end_time?: true | undefined;
227
+ time_pairs?: {
228
+ display_name: string;
229
+ check_in_time: string;
230
+ check_out_time: string;
231
+ }[] | undefined;
232
+ start_date_recurrence_rule?: string | undefined;
233
+ end_date_recurrence_rule?: string | undefined;
234
+ time_zone?: string | undefined;
235
+ }[] | undefined;
236
+ online_time_frame_options?: {
237
+ display_name: string;
238
+ min_duration?: string | undefined;
239
+ max_duration?: string | undefined;
240
+ matching_start_end_time?: true | undefined;
241
+ time_pairs?: {
242
+ display_name: string;
243
+ check_in_time: string;
244
+ check_out_time: string;
245
+ }[] | undefined;
246
+ start_date_recurrence_rule?: string | undefined;
247
+ end_date_recurrence_rule?: string | undefined;
248
+ time_zone?: string | undefined;
249
+ }[] | undefined;
77
250
  max_active_codes_supported?: number | undefined;
78
251
  supports_backup_access_code_pool?: boolean | undefined;
79
252
  has_native_entry_events?: boolean | undefined;
@@ -87,6 +260,34 @@ export declare const access_code_capability_properties: z.ZodObject<{
87
260
  max_length?: number | undefined;
88
261
  })[] | undefined;
89
262
  supported_code_lengths?: number[] | undefined;
263
+ offline_time_frame_options?: {
264
+ display_name: string;
265
+ min_duration?: string | undefined;
266
+ max_duration?: string | undefined;
267
+ matching_start_end_time?: true | undefined;
268
+ time_pairs?: {
269
+ display_name: string;
270
+ check_in_time: string;
271
+ check_out_time: string;
272
+ }[] | undefined;
273
+ start_date_recurrence_rule?: string | undefined;
274
+ end_date_recurrence_rule?: string | undefined;
275
+ time_zone?: string | undefined;
276
+ }[] | undefined;
277
+ online_time_frame_options?: {
278
+ display_name: string;
279
+ min_duration?: string | undefined;
280
+ max_duration?: string | undefined;
281
+ matching_start_end_time?: true | undefined;
282
+ time_pairs?: {
283
+ display_name: string;
284
+ check_in_time: string;
285
+ check_out_time: string;
286
+ }[] | undefined;
287
+ start_date_recurrence_rule?: string | undefined;
288
+ end_date_recurrence_rule?: string | undefined;
289
+ time_zone?: string | undefined;
290
+ }[] | undefined;
90
291
  max_active_codes_supported?: number | undefined;
91
292
  supports_backup_access_code_pool?: boolean | undefined;
92
293
  has_native_entry_events?: boolean | undefined;
@@ -35,6 +35,54 @@ export const access_code_name_constraint = z
35
35
  export const access_code_constraint = z
36
36
  .union([access_code_code_constraint, access_code_name_constraint])
37
37
  .describe(`Access code constraint.`);
38
+ const time_frame_option_time_pair = z
39
+ .object({
40
+ display_name: z
41
+ .string()
42
+ .describe('Label for the check-in/check-out time pairing.'),
43
+ check_in_time: z
44
+ .string()
45
+ .describe("Check-in time of day as a 24-hour `HH:MM` value, interpreted in the option's `time_zone`."),
46
+ check_out_time: z
47
+ .string()
48
+ .describe("Check-out time of day as a 24-hour `HH:MM` value, interpreted in the option's `time_zone`. A `check_out_time` earlier on the clock than `check_in_time` means check-out falls on a later date."),
49
+ })
50
+ .describe('Fixed check-in/check-out time pairing. The caller picks one whole pairing; the two times cannot be mixed across pairs.');
51
+ export const time_frame_option = z
52
+ .object({
53
+ display_name: z
54
+ .string()
55
+ .describe('Label for this option. For a single-option device, the product name (for example, `algoPIN` or `SmartPIN`); for a multi-option device, a label that distinguishes it (for example, `Hourly` or `Fixed check-in times`).'),
56
+ min_duration: z
57
+ .string()
58
+ .optional()
59
+ .describe('Minimum duration this option covers, as an ISO 8601 duration (for example, `PT1H` or `P29D`). Omitted when there is no minimum.'),
60
+ max_duration: z
61
+ .string()
62
+ .optional()
63
+ .describe('Maximum duration this option covers, as an ISO 8601 duration (for example, `PT672H` or `P367D`). Omitted when there is no maximum.'),
64
+ matching_start_end_time: z
65
+ .literal(true)
66
+ .optional()
67
+ .describe('When `true`, the check-in and check-out must fall at the same time of day (the caller picks which). Mutually exclusive with `time_pairs`.'),
68
+ time_pairs: z
69
+ .array(time_frame_option_time_pair)
70
+ .optional()
71
+ .describe('Fixed check-in/check-out time pairings the caller chooses from. Mutually exclusive with `matching_start_end_time`.'),
72
+ start_date_recurrence_rule: z
73
+ .string()
74
+ .optional()
75
+ .describe('iCalendar recurrence rule (RRULE) that the check-in date must fall on (for example, `FREQ=MONTHLY;BYDAY=1MO,3MO`). Constrains which calendar dates are selectable, independent of the time-of-day rules.'),
76
+ end_date_recurrence_rule: z
77
+ .string()
78
+ .optional()
79
+ .describe('iCalendar recurrence rule (RRULE) that the check-out date must fall on. Constrains which calendar dates are selectable, independent of the time-of-day rules.'),
80
+ time_zone: z
81
+ .string()
82
+ .optional()
83
+ .describe('IANA time zone for interpreting `time_pairs` and the date recurrence rules. Present only when the option fixes times or dates.'),
84
+ })
85
+ .describe('One way to make a code: a duration band plus the time-of-day and date rules that apply within it. Absence of a rule means unrestricted on that axis.');
38
86
  export const access_code_capability_properties = z.object({
39
87
  _experimental_supported_code_from_access_codes_lengths: z
40
88
  .array(z.number())
@@ -53,6 +101,16 @@ export const access_code_capability_properties = z.object({
53
101
  property_group_key: access_codes
54
102
  ---
55
103
  Supported code lengths for access codes.`),
104
+ offline_time_frame_options: z.array(time_frame_option).optional().describe(`
105
+ ---
106
+ property_group_key: access_codes
107
+ ---
108
+ Time frames that may be requested when creating an offline access code, expressed as a list of options. The caller picks one option (by matching the requested duration when the options' duration ranges do not overlap, or by \`display_name\` when they do) and satisfies that one option's rules. When \`undefined\`, any time frame works.`),
109
+ online_time_frame_options: z.array(time_frame_option).optional().describe(`
110
+ ---
111
+ property_group_key: access_codes
112
+ ---
113
+ Time frames that may be requested when creating an online access code, expressed as a list of options. The caller picks one option (by matching the requested duration when the options' duration ranges do not overlap, or by \`display_name\` when they do) and satisfies that one option's rules. When \`undefined\`, any time frame works.`),
56
114
  max_active_codes_supported: z.number().optional().describe(`
57
115
  ---
58
116
  property_group_key: access_codes
@@ -1 +1 @@
1
- {"version":3,"file":"access-code.js","sourceRoot":"","sources":["../../../../../../src/lib/seam/connect/models/devices/capability-properties/access-code.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,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Q,EAAE,CAAC,QAAQ,CAAC;;;;WAId,CAAC;IACV,gBAAgB,EAAE,CAAC,CAAC,KAAK,CAAC,sBAAsB,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC;;;;oRAI4M,CAAC;IACnR,sBAAsB,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC;;;;mDAIf,CAAC;IAClD,0BAA0B,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC;;;;0EAIa,CAAC;IACzE,gCAAgC,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC;;;;+JAI2F,CAAC;IAC9J,uBAAuB,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC;;;;qEAIU,CAAC;CACrE,CAAC,CAAA"}
1
+ {"version":3,"file":"access-code.js","sourceRoot":"","sources":["../../../../../../src/lib/seam/connect/models/devices/capability-properties/access-code.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC;KACzC,MAAM,CAAC;IACN,eAAe,EAAE,CAAC;SACf,IAAI,CAAC;QACJ,UAAU,EAAE,OAAO;QACnB,sBAAsB,EAAE,OAAO;QAC/B,4BAA4B,EAAE,QAAQ;QACtC,yBAAyB,EAAE,aAAa;QACxC,+BAA+B,EAAE,QAAQ;QACzC,sBAAsB,EAAE,UAAU;QAClC,qCAAqC,EAAE,kBAAkB;QACzD,8BAA8B,EAAE,QAAQ;QACxC,oBAAoB,EAAE,SAAS;QAC/B,qBAAqB,EAAE,0CAA0C;QACjE,0BAA0B,EAAE,UAAU;QACtC,oBAAoB,EAAE,WAAW;KAClC,CAAC;SACD,QAAQ,CAAC,wCAAwC,CAAC;CACt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