@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.
- package/dist/connect.cjs +185 -0
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +1453 -209
- package/dist/index.cjs +185 -0
- package/dist/index.cjs.map +1 -1
- package/lib/seam/connect/models/access-grants/access-grant.d.ts +4 -4
- package/lib/seam/connect/models/acs/acs-access-group.d.ts +4 -4
- package/lib/seam/connect/models/connected-accounts/connected-account.d.ts +2 -2
- package/lib/seam/connect/models/customer/customer-data.d.ts +12 -12
- package/lib/seam/connect/models/customer/location-resources.d.ts +8 -8
- package/lib/seam/connect/models/devices/capability-properties/access-code.d.ts +201 -0
- package/lib/seam/connect/models/devices/capability-properties/access-code.js +58 -0
- package/lib/seam/connect/models/devices/capability-properties/access-code.js.map +1 -1
- package/lib/seam/connect/models/devices/capability-properties/index.d.ts +165 -13
- package/lib/seam/connect/models/devices/capability-properties/thermostat.d.ts +12 -12
- package/lib/seam/connect/models/devices/device-metadata.d.ts +20 -20
- package/lib/seam/connect/models/devices/device.d.ts +248 -40
- package/lib/seam/connect/models/devices/unmanaged-device.d.ts +180 -28
- package/lib/seam/connect/models/spaces/space.d.ts +4 -4
- package/lib/seam/connect/models/thermostats/climate-preset.d.ts +4 -4
- package/lib/seam/connect/openapi.js +136 -0
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +884 -0
- package/package.json +1 -1
- package/src/lib/seam/connect/models/devices/capability-properties/access-code.ts +86 -0
- package/src/lib/seam/connect/models/devices/capability-properties/index.ts +1 -1
- package/src/lib/seam/connect/openapi.ts +164 -0
- package/src/lib/seam/connect/route-types.ts +1122 -0
package/dist/connect.cjs
CHANGED
|
@@ -96,6 +96,45 @@ var access_code_name_constraint = zod.z.object({
|
|
|
96
96
|
max_length: zod.z.number().optional().describe(`Maximum name length constraint for access codes.`)
|
|
97
97
|
}).describe(`Name constraint for access codes.`);
|
|
98
98
|
var access_code_constraint = zod.z.union([access_code_code_constraint, access_code_name_constraint]).describe(`Access code constraint.`);
|
|
99
|
+
var time_frame_option_time_pair = zod.z.object({
|
|
100
|
+
display_name: zod.z.string().describe("Label for the check-in/check-out time pairing."),
|
|
101
|
+
check_in_time: zod.z.string().describe(
|
|
102
|
+
"Check-in time of day as a 24-hour `HH:MM` value, interpreted in the option's `time_zone`."
|
|
103
|
+
),
|
|
104
|
+
check_out_time: zod.z.string().describe(
|
|
105
|
+
"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."
|
|
106
|
+
)
|
|
107
|
+
}).describe(
|
|
108
|
+
"Fixed check-in/check-out time pairing. The caller picks one whole pairing; the two times cannot be mixed across pairs."
|
|
109
|
+
);
|
|
110
|
+
var time_frame_option = zod.z.object({
|
|
111
|
+
display_name: zod.z.string().describe(
|
|
112
|
+
"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`)."
|
|
113
|
+
),
|
|
114
|
+
min_duration: zod.z.string().optional().describe(
|
|
115
|
+
"Minimum duration this option covers, as an ISO 8601 duration (for example, `PT1H` or `P29D`). Omitted when there is no minimum."
|
|
116
|
+
),
|
|
117
|
+
max_duration: zod.z.string().optional().describe(
|
|
118
|
+
"Maximum duration this option covers, as an ISO 8601 duration (for example, `PT672H` or `P367D`). Omitted when there is no maximum."
|
|
119
|
+
),
|
|
120
|
+
matching_start_end_time: zod.z.literal(true).optional().describe(
|
|
121
|
+
"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`."
|
|
122
|
+
),
|
|
123
|
+
time_pairs: zod.z.array(time_frame_option_time_pair).optional().describe(
|
|
124
|
+
"Fixed check-in/check-out time pairings the caller chooses from. Mutually exclusive with `matching_start_end_time`."
|
|
125
|
+
),
|
|
126
|
+
start_date_recurrence_rule: zod.z.string().optional().describe(
|
|
127
|
+
"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."
|
|
128
|
+
),
|
|
129
|
+
end_date_recurrence_rule: zod.z.string().optional().describe(
|
|
130
|
+
"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."
|
|
131
|
+
),
|
|
132
|
+
time_zone: zod.z.string().optional().describe(
|
|
133
|
+
"IANA time zone for interpreting `time_pairs` and the date recurrence rules. Present only when the option fixes times or dates."
|
|
134
|
+
)
|
|
135
|
+
}).describe(
|
|
136
|
+
"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."
|
|
137
|
+
);
|
|
99
138
|
var access_code_capability_properties = zod.z.object({
|
|
100
139
|
_experimental_supported_code_from_access_codes_lengths: zod.z.array(zod.z.number()).optional().describe(`
|
|
101
140
|
---
|
|
@@ -112,6 +151,16 @@ var access_code_capability_properties = zod.z.object({
|
|
|
112
151
|
property_group_key: access_codes
|
|
113
152
|
---
|
|
114
153
|
Supported code lengths for access codes.`),
|
|
154
|
+
offline_time_frame_options: zod.z.array(time_frame_option).optional().describe(`
|
|
155
|
+
---
|
|
156
|
+
property_group_key: access_codes
|
|
157
|
+
---
|
|
158
|
+
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.`),
|
|
159
|
+
online_time_frame_options: zod.z.array(time_frame_option).optional().describe(`
|
|
160
|
+
---
|
|
161
|
+
property_group_key: access_codes
|
|
162
|
+
---
|
|
163
|
+
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.`),
|
|
115
164
|
max_active_codes_supported: zod.z.number().optional().describe(`
|
|
116
165
|
---
|
|
117
166
|
property_group_key: access_codes
|
|
@@ -21265,6 +21314,142 @@ var openapi = {
|
|
|
21265
21314
|
type: "number",
|
|
21266
21315
|
"x-property-group-key": "access_codes"
|
|
21267
21316
|
},
|
|
21317
|
+
offline_time_frame_options: {
|
|
21318
|
+
description: "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.",
|
|
21319
|
+
items: {
|
|
21320
|
+
description: "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.",
|
|
21321
|
+
properties: {
|
|
21322
|
+
display_name: {
|
|
21323
|
+
description: "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`).",
|
|
21324
|
+
type: "string"
|
|
21325
|
+
},
|
|
21326
|
+
end_date_recurrence_rule: {
|
|
21327
|
+
description: "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.",
|
|
21328
|
+
type: "string"
|
|
21329
|
+
},
|
|
21330
|
+
matching_start_end_time: {
|
|
21331
|
+
description: "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`.",
|
|
21332
|
+
enum: [true],
|
|
21333
|
+
type: "boolean"
|
|
21334
|
+
},
|
|
21335
|
+
max_duration: {
|
|
21336
|
+
description: "Maximum duration this option covers, as an ISO 8601 duration (for example, `PT672H` or `P367D`). Omitted when there is no maximum.",
|
|
21337
|
+
type: "string"
|
|
21338
|
+
},
|
|
21339
|
+
min_duration: {
|
|
21340
|
+
description: "Minimum duration this option covers, as an ISO 8601 duration (for example, `PT1H` or `P29D`). Omitted when there is no minimum.",
|
|
21341
|
+
type: "string"
|
|
21342
|
+
},
|
|
21343
|
+
start_date_recurrence_rule: {
|
|
21344
|
+
description: "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.",
|
|
21345
|
+
type: "string"
|
|
21346
|
+
},
|
|
21347
|
+
time_pairs: {
|
|
21348
|
+
description: "Fixed check-in/check-out time pairings the caller chooses from. Mutually exclusive with `matching_start_end_time`.",
|
|
21349
|
+
items: {
|
|
21350
|
+
description: "Fixed check-in/check-out time pairing. The caller picks one whole pairing; the two times cannot be mixed across pairs.",
|
|
21351
|
+
properties: {
|
|
21352
|
+
check_in_time: {
|
|
21353
|
+
description: "Check-in time of day as a 24-hour `HH:MM` value, interpreted in the option's `time_zone`.",
|
|
21354
|
+
type: "string"
|
|
21355
|
+
},
|
|
21356
|
+
check_out_time: {
|
|
21357
|
+
description: "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.",
|
|
21358
|
+
type: "string"
|
|
21359
|
+
},
|
|
21360
|
+
display_name: {
|
|
21361
|
+
description: "Label for the check-in/check-out time pairing.",
|
|
21362
|
+
type: "string"
|
|
21363
|
+
}
|
|
21364
|
+
},
|
|
21365
|
+
required: [
|
|
21366
|
+
"display_name",
|
|
21367
|
+
"check_in_time",
|
|
21368
|
+
"check_out_time"
|
|
21369
|
+
],
|
|
21370
|
+
type: "object"
|
|
21371
|
+
},
|
|
21372
|
+
type: "array"
|
|
21373
|
+
},
|
|
21374
|
+
time_zone: {
|
|
21375
|
+
description: "IANA time zone for interpreting `time_pairs` and the date recurrence rules. Present only when the option fixes times or dates.",
|
|
21376
|
+
type: "string"
|
|
21377
|
+
}
|
|
21378
|
+
},
|
|
21379
|
+
required: ["display_name"],
|
|
21380
|
+
type: "object"
|
|
21381
|
+
},
|
|
21382
|
+
type: "array",
|
|
21383
|
+
"x-property-group-key": "access_codes"
|
|
21384
|
+
},
|
|
21385
|
+
online_time_frame_options: {
|
|
21386
|
+
description: "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.",
|
|
21387
|
+
items: {
|
|
21388
|
+
description: "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.",
|
|
21389
|
+
properties: {
|
|
21390
|
+
display_name: {
|
|
21391
|
+
description: "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`).",
|
|
21392
|
+
type: "string"
|
|
21393
|
+
},
|
|
21394
|
+
end_date_recurrence_rule: {
|
|
21395
|
+
description: "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.",
|
|
21396
|
+
type: "string"
|
|
21397
|
+
},
|
|
21398
|
+
matching_start_end_time: {
|
|
21399
|
+
description: "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`.",
|
|
21400
|
+
enum: [true],
|
|
21401
|
+
type: "boolean"
|
|
21402
|
+
},
|
|
21403
|
+
max_duration: {
|
|
21404
|
+
description: "Maximum duration this option covers, as an ISO 8601 duration (for example, `PT672H` or `P367D`). Omitted when there is no maximum.",
|
|
21405
|
+
type: "string"
|
|
21406
|
+
},
|
|
21407
|
+
min_duration: {
|
|
21408
|
+
description: "Minimum duration this option covers, as an ISO 8601 duration (for example, `PT1H` or `P29D`). Omitted when there is no minimum.",
|
|
21409
|
+
type: "string"
|
|
21410
|
+
},
|
|
21411
|
+
start_date_recurrence_rule: {
|
|
21412
|
+
description: "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.",
|
|
21413
|
+
type: "string"
|
|
21414
|
+
},
|
|
21415
|
+
time_pairs: {
|
|
21416
|
+
description: "Fixed check-in/check-out time pairings the caller chooses from. Mutually exclusive with `matching_start_end_time`.",
|
|
21417
|
+
items: {
|
|
21418
|
+
description: "Fixed check-in/check-out time pairing. The caller picks one whole pairing; the two times cannot be mixed across pairs.",
|
|
21419
|
+
properties: {
|
|
21420
|
+
check_in_time: {
|
|
21421
|
+
description: "Check-in time of day as a 24-hour `HH:MM` value, interpreted in the option's `time_zone`.",
|
|
21422
|
+
type: "string"
|
|
21423
|
+
},
|
|
21424
|
+
check_out_time: {
|
|
21425
|
+
description: "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.",
|
|
21426
|
+
type: "string"
|
|
21427
|
+
},
|
|
21428
|
+
display_name: {
|
|
21429
|
+
description: "Label for the check-in/check-out time pairing.",
|
|
21430
|
+
type: "string"
|
|
21431
|
+
}
|
|
21432
|
+
},
|
|
21433
|
+
required: [
|
|
21434
|
+
"display_name",
|
|
21435
|
+
"check_in_time",
|
|
21436
|
+
"check_out_time"
|
|
21437
|
+
],
|
|
21438
|
+
type: "object"
|
|
21439
|
+
},
|
|
21440
|
+
type: "array"
|
|
21441
|
+
},
|
|
21442
|
+
time_zone: {
|
|
21443
|
+
description: "IANA time zone for interpreting `time_pairs` and the date recurrence rules. Present only when the option fixes times or dates.",
|
|
21444
|
+
type: "string"
|
|
21445
|
+
}
|
|
21446
|
+
},
|
|
21447
|
+
required: ["display_name"],
|
|
21448
|
+
type: "object"
|
|
21449
|
+
},
|
|
21450
|
+
type: "array",
|
|
21451
|
+
"x-property-group-key": "access_codes"
|
|
21452
|
+
},
|
|
21268
21453
|
supported_code_lengths: {
|
|
21269
21454
|
description: "Supported code lengths for access codes.",
|
|
21270
21455
|
items: { format: "float", type: "number" },
|