@seamapi/types 1.931.0 → 1.933.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 +53 -39
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +470 -432
- package/dist/index.cjs +53 -39
- package/dist/index.cjs.map +1 -1
- package/lib/seam/connect/models/devices/capability-properties/access-code.d.ts +38 -38
- package/lib/seam/connect/models/devices/capability-properties/access-code.js +11 -13
- 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 +28 -28
- package/lib/seam/connect/models/devices/device-metadata.d.ts +16 -16
- package/lib/seam/connect/models/devices/device.d.ts +52 -52
- package/lib/seam/connect/models/devices/unmanaged-device.d.ts +40 -40
- package/lib/seam/connect/models/events/devices.d.ts +12 -0
- package/lib/seam/connect/models/events/devices.js +6 -0
- package/lib/seam/connect/models/events/devices.js.map +1 -1
- package/lib/seam/connect/models/events/seam-event.d.ts +6 -0
- package/lib/seam/connect/openapi.js +36 -28
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +372 -340
- package/package.json +1 -1
- package/src/lib/seam/connect/models/devices/capability-properties/access-code.ts +11 -13
- package/src/lib/seam/connect/models/events/devices.ts +6 -0
- package/src/lib/seam/connect/openapi.ts +38 -28
- package/src/lib/seam/connect/route-types.ts +372 -340
package/package.json
CHANGED
|
@@ -43,22 +43,20 @@ export type AccessCodeConstraint = z.infer<typeof access_code_constraint>
|
|
|
43
43
|
|
|
44
44
|
const time_frame_option_time_pair = z
|
|
45
45
|
.object({
|
|
46
|
-
display_name: z
|
|
47
|
-
|
|
48
|
-
.describe('Label for the check-in/check-out time pairing.'),
|
|
49
|
-
check_in_time: z
|
|
46
|
+
display_name: z.string().describe('Label for the start/end time pairing.'),
|
|
47
|
+
start_time: z
|
|
50
48
|
.string()
|
|
51
49
|
.describe(
|
|
52
|
-
"
|
|
50
|
+
"Start time of day as a 24-hour `HH:MM` value, interpreted in the option's `time_zone`.",
|
|
53
51
|
),
|
|
54
|
-
|
|
52
|
+
end_time: z
|
|
55
53
|
.string()
|
|
56
54
|
.describe(
|
|
57
|
-
"
|
|
55
|
+
"End time of day as a 24-hour `HH:MM` value, interpreted in the option's `time_zone`. An `end_time` earlier on the clock than `start_time` means the end falls on a later date.",
|
|
58
56
|
),
|
|
59
57
|
})
|
|
60
58
|
.describe(
|
|
61
|
-
'Fixed
|
|
59
|
+
'Fixed start/end time pairing. The caller picks one whole pairing; the two times cannot be mixed across pairs.',
|
|
62
60
|
)
|
|
63
61
|
|
|
64
62
|
export const time_frame_option = z
|
|
@@ -66,7 +64,7 @@ export const time_frame_option = z
|
|
|
66
64
|
display_name: z
|
|
67
65
|
.string()
|
|
68
66
|
.describe(
|
|
69
|
-
'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
|
|
67
|
+
'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 start times`).',
|
|
70
68
|
),
|
|
71
69
|
min_duration: z
|
|
72
70
|
.string()
|
|
@@ -84,25 +82,25 @@ export const time_frame_option = z
|
|
|
84
82
|
.literal(true)
|
|
85
83
|
.optional()
|
|
86
84
|
.describe(
|
|
87
|
-
'When `true`, the
|
|
85
|
+
'When `true`, the start and end must fall at the same time of day (the caller picks which). Mutually exclusive with `time_pairs`.',
|
|
88
86
|
),
|
|
89
87
|
time_pairs: z
|
|
90
88
|
.array(time_frame_option_time_pair)
|
|
91
89
|
.optional()
|
|
92
90
|
.describe(
|
|
93
|
-
'Fixed
|
|
91
|
+
'Fixed start/end time pairings the caller chooses from. Mutually exclusive with `matching_start_end_time`.',
|
|
94
92
|
),
|
|
95
93
|
start_date_recurrence_rule: z
|
|
96
94
|
.string()
|
|
97
95
|
.optional()
|
|
98
96
|
.describe(
|
|
99
|
-
'iCalendar recurrence rule (RRULE) that the
|
|
97
|
+
'iCalendar recurrence rule (RRULE) that the start date must fall on (for example, `FREQ=MONTHLY;BYDAY=1MO,3MO`). Constrains which calendar dates are selectable, independent of the time-of-day rules.',
|
|
100
98
|
),
|
|
101
99
|
end_date_recurrence_rule: z
|
|
102
100
|
.string()
|
|
103
101
|
.optional()
|
|
104
102
|
.describe(
|
|
105
|
-
'iCalendar recurrence rule (RRULE) that the
|
|
103
|
+
'iCalendar recurrence rule (RRULE) that the end date must fall on. Constrains which calendar dates are selectable, independent of the time-of-day rules.',
|
|
106
104
|
),
|
|
107
105
|
time_zone: z
|
|
108
106
|
.string()
|
|
@@ -415,6 +415,9 @@ export const lock_locked_event = device_event.extend({
|
|
|
415
415
|
.uuid()
|
|
416
416
|
.optional()
|
|
417
417
|
.describe('ID of the access code that was used to lock the device.'),
|
|
418
|
+
code: z.string().optional().describe(`
|
|
419
|
+
Code (PIN) that was used to lock the device, if known. Taken from the matched managed or unmanaged access code, or from the code reported by the provider when no access code matched.
|
|
420
|
+
`),
|
|
418
421
|
access_code_is_managed: z
|
|
419
422
|
.boolean()
|
|
420
423
|
.optional()
|
|
@@ -455,6 +458,9 @@ export const lock_unlocked_event = device_event.extend({
|
|
|
455
458
|
.describe(
|
|
456
459
|
'ID of the access code that was used to unlock the affected device.',
|
|
457
460
|
),
|
|
461
|
+
code: z.string().optional().describe(`
|
|
462
|
+
Code (PIN) that was used to unlock the affected device, if known. Taken from the matched managed or unmanaged access code, or from the code reported by the provider when no access code matched.
|
|
463
|
+
`),
|
|
458
464
|
access_code_is_managed: z
|
|
459
465
|
.boolean()
|
|
460
466
|
.optional()
|
|
@@ -15516,17 +15516,17 @@ const openapi: OpenAPISpec = {
|
|
|
15516
15516
|
properties: {
|
|
15517
15517
|
display_name: {
|
|
15518
15518
|
description:
|
|
15519
|
-
'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
|
|
15519
|
+
'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 start times`).',
|
|
15520
15520
|
type: 'string',
|
|
15521
15521
|
},
|
|
15522
15522
|
end_date_recurrence_rule: {
|
|
15523
15523
|
description:
|
|
15524
|
-
'iCalendar recurrence rule (RRULE) that the
|
|
15524
|
+
'iCalendar recurrence rule (RRULE) that the end date must fall on. Constrains which calendar dates are selectable, independent of the time-of-day rules.',
|
|
15525
15525
|
type: 'string',
|
|
15526
15526
|
},
|
|
15527
15527
|
matching_start_end_time: {
|
|
15528
15528
|
description:
|
|
15529
|
-
'When `true`, the
|
|
15529
|
+
'When `true`, the start and end must fall at the same time of day (the caller picks which). Mutually exclusive with `time_pairs`.',
|
|
15530
15530
|
enum: [true],
|
|
15531
15531
|
type: 'boolean',
|
|
15532
15532
|
},
|
|
@@ -15542,36 +15542,36 @@ const openapi: OpenAPISpec = {
|
|
|
15542
15542
|
},
|
|
15543
15543
|
start_date_recurrence_rule: {
|
|
15544
15544
|
description:
|
|
15545
|
-
'iCalendar recurrence rule (RRULE) that the
|
|
15545
|
+
'iCalendar recurrence rule (RRULE) that the start date must fall on (for example, `FREQ=MONTHLY;BYDAY=1MO,3MO`). Constrains which calendar dates are selectable, independent of the time-of-day rules.',
|
|
15546
15546
|
type: 'string',
|
|
15547
15547
|
},
|
|
15548
15548
|
time_pairs: {
|
|
15549
15549
|
description:
|
|
15550
|
-
'Fixed
|
|
15550
|
+
'Fixed start/end time pairings the caller chooses from. Mutually exclusive with `matching_start_end_time`.',
|
|
15551
15551
|
items: {
|
|
15552
15552
|
description:
|
|
15553
|
-
'Fixed
|
|
15553
|
+
'Fixed start/end time pairing. The caller picks one whole pairing; the two times cannot be mixed across pairs.',
|
|
15554
15554
|
properties: {
|
|
15555
|
-
|
|
15555
|
+
display_name: {
|
|
15556
15556
|
description:
|
|
15557
|
-
|
|
15557
|
+
'Label for the start/end time pairing.',
|
|
15558
15558
|
type: 'string',
|
|
15559
15559
|
},
|
|
15560
|
-
|
|
15560
|
+
end_time: {
|
|
15561
15561
|
description:
|
|
15562
|
-
"
|
|
15562
|
+
"End time of day as a 24-hour `HH:MM` value, interpreted in the option's `time_zone`. An `end_time` earlier on the clock than `start_time` means the end falls on a later date.",
|
|
15563
15563
|
type: 'string',
|
|
15564
15564
|
},
|
|
15565
|
-
|
|
15565
|
+
start_time: {
|
|
15566
15566
|
description:
|
|
15567
|
-
|
|
15567
|
+
"Start time of day as a 24-hour `HH:MM` value, interpreted in the option's `time_zone`.",
|
|
15568
15568
|
type: 'string',
|
|
15569
15569
|
},
|
|
15570
15570
|
},
|
|
15571
15571
|
required: [
|
|
15572
15572
|
'display_name',
|
|
15573
|
-
'
|
|
15574
|
-
'
|
|
15573
|
+
'start_time',
|
|
15574
|
+
'end_time',
|
|
15575
15575
|
],
|
|
15576
15576
|
type: 'object',
|
|
15577
15577
|
},
|
|
@@ -15598,17 +15598,17 @@ const openapi: OpenAPISpec = {
|
|
|
15598
15598
|
properties: {
|
|
15599
15599
|
display_name: {
|
|
15600
15600
|
description:
|
|
15601
|
-
'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
|
|
15601
|
+
'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 start times`).',
|
|
15602
15602
|
type: 'string',
|
|
15603
15603
|
},
|
|
15604
15604
|
end_date_recurrence_rule: {
|
|
15605
15605
|
description:
|
|
15606
|
-
'iCalendar recurrence rule (RRULE) that the
|
|
15606
|
+
'iCalendar recurrence rule (RRULE) that the end date must fall on. Constrains which calendar dates are selectable, independent of the time-of-day rules.',
|
|
15607
15607
|
type: 'string',
|
|
15608
15608
|
},
|
|
15609
15609
|
matching_start_end_time: {
|
|
15610
15610
|
description:
|
|
15611
|
-
'When `true`, the
|
|
15611
|
+
'When `true`, the start and end must fall at the same time of day (the caller picks which). Mutually exclusive with `time_pairs`.',
|
|
15612
15612
|
enum: [true],
|
|
15613
15613
|
type: 'boolean',
|
|
15614
15614
|
},
|
|
@@ -15624,36 +15624,36 @@ const openapi: OpenAPISpec = {
|
|
|
15624
15624
|
},
|
|
15625
15625
|
start_date_recurrence_rule: {
|
|
15626
15626
|
description:
|
|
15627
|
-
'iCalendar recurrence rule (RRULE) that the
|
|
15627
|
+
'iCalendar recurrence rule (RRULE) that the start date must fall on (for example, `FREQ=MONTHLY;BYDAY=1MO,3MO`). Constrains which calendar dates are selectable, independent of the time-of-day rules.',
|
|
15628
15628
|
type: 'string',
|
|
15629
15629
|
},
|
|
15630
15630
|
time_pairs: {
|
|
15631
15631
|
description:
|
|
15632
|
-
'Fixed
|
|
15632
|
+
'Fixed start/end time pairings the caller chooses from. Mutually exclusive with `matching_start_end_time`.',
|
|
15633
15633
|
items: {
|
|
15634
15634
|
description:
|
|
15635
|
-
'Fixed
|
|
15635
|
+
'Fixed start/end time pairing. The caller picks one whole pairing; the two times cannot be mixed across pairs.',
|
|
15636
15636
|
properties: {
|
|
15637
|
-
|
|
15637
|
+
display_name: {
|
|
15638
15638
|
description:
|
|
15639
|
-
|
|
15639
|
+
'Label for the start/end time pairing.',
|
|
15640
15640
|
type: 'string',
|
|
15641
15641
|
},
|
|
15642
|
-
|
|
15642
|
+
end_time: {
|
|
15643
15643
|
description:
|
|
15644
|
-
"
|
|
15644
|
+
"End time of day as a 24-hour `HH:MM` value, interpreted in the option's `time_zone`. An `end_time` earlier on the clock than `start_time` means the end falls on a later date.",
|
|
15645
15645
|
type: 'string',
|
|
15646
15646
|
},
|
|
15647
|
-
|
|
15647
|
+
start_time: {
|
|
15648
15648
|
description:
|
|
15649
|
-
|
|
15649
|
+
"Start time of day as a 24-hour `HH:MM` value, interpreted in the option's `time_zone`.",
|
|
15650
15650
|
type: 'string',
|
|
15651
15651
|
},
|
|
15652
15652
|
},
|
|
15653
15653
|
required: [
|
|
15654
15654
|
'display_name',
|
|
15655
|
-
'
|
|
15656
|
-
'
|
|
15655
|
+
'start_time',
|
|
15656
|
+
'end_time',
|
|
15657
15657
|
],
|
|
15658
15658
|
type: 'object',
|
|
15659
15659
|
},
|
|
@@ -25336,6 +25336,11 @@ const openapi: OpenAPISpec = {
|
|
|
25336
25336
|
format: 'uuid',
|
|
25337
25337
|
type: 'string',
|
|
25338
25338
|
},
|
|
25339
|
+
code: {
|
|
25340
|
+
description:
|
|
25341
|
+
'\n Code (PIN) that was used to lock the device, if known. Taken from the matched managed or unmanaged access code, or from the code reported by the provider when no access code matched.\n ',
|
|
25342
|
+
type: 'string',
|
|
25343
|
+
},
|
|
25339
25344
|
connected_account_custom_metadata: {
|
|
25340
25345
|
additionalProperties: {
|
|
25341
25346
|
oneOf: [{ type: 'string' }, { type: 'boolean' }],
|
|
@@ -25458,6 +25463,11 @@ const openapi: OpenAPISpec = {
|
|
|
25458
25463
|
format: 'uuid',
|
|
25459
25464
|
type: 'string',
|
|
25460
25465
|
},
|
|
25466
|
+
code: {
|
|
25467
|
+
description:
|
|
25468
|
+
'\n Code (PIN) that was used to unlock the affected device, if known. Taken from the matched managed or unmanaged access code, or from the code reported by the provider when no access code matched.\n ',
|
|
25469
|
+
type: 'string',
|
|
25470
|
+
},
|
|
25461
25471
|
connected_account_custom_metadata: {
|
|
25462
25472
|
additionalProperties: {
|
|
25463
25473
|
oneOf: [{ type: 'string' }, { type: 'boolean' }],
|