@seamapi/types 1.1036.0 → 1.1038.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/lib/seam/connect/models/access-codes/managed-access-code.js +6 -16
- package/lib/seam/connect/models/access-codes/managed-access-code.js.map +1 -1
- package/lib/seam/connect/models/access-codes/pending-mutations.js +7 -20
- package/lib/seam/connect/models/access-codes/pending-mutations.js.map +1 -1
- package/lib/seam/connect/models/access-grants/access-grant.js +6 -19
- package/lib/seam/connect/models/access-grants/access-grant.js.map +1 -1
- package/lib/seam/connect/models/access-grants/access-method.js +10 -37
- package/lib/seam/connect/models/access-grants/access-method.js.map +1 -1
- package/lib/seam/connect/models/access-grants/pending-mutations.js +6 -22
- package/lib/seam/connect/models/access-grants/pending-mutations.js.map +1 -1
- package/lib/seam/connect/models/access-grants/requested-access-method.js +2 -4
- package/lib/seam/connect/models/access-grants/requested-access-method.js.map +1 -1
- package/lib/seam/connect/models/acs/acs-access-group.js +4 -12
- package/lib/seam/connect/models/acs/acs-access-group.js.map +1 -1
- package/lib/seam/connect/models/acs/acs-access-groups/pending-mutations.js +4 -10
- package/lib/seam/connect/models/acs/acs-access-groups/pending-mutations.js.map +1 -1
- package/lib/seam/connect/models/acs/acs-credential-pool.js +2 -1
- package/lib/seam/connect/models/acs/acs-credential-pool.js.map +1 -1
- package/lib/seam/connect/models/acs/acs-credential-provisioning-automation.js +3 -5
- package/lib/seam/connect/models/acs/acs-credential-provisioning-automation.js.map +1 -1
- package/lib/seam/connect/models/acs/acs-credential.js +9 -27
- package/lib/seam/connect/models/acs/acs-credential.js.map +1 -1
- package/lib/seam/connect/models/acs/acs-credentials/pending-mutations.js +2 -4
- package/lib/seam/connect/models/acs/acs-credentials/pending-mutations.js.map +1 -1
- package/lib/seam/connect/models/acs/acs-encoder.js +3 -8
- package/lib/seam/connect/models/acs/acs-encoder.js.map +1 -1
- package/lib/seam/connect/models/acs/acs-entrance.js +4 -12
- package/lib/seam/connect/models/acs/acs-entrance.js.map +1 -1
- package/lib/seam/connect/models/acs/acs-system.js +4 -12
- package/lib/seam/connect/models/acs/acs-system.js.map +1 -1
- package/lib/seam/connect/models/acs/acs-users/acs-user.js +5 -13
- package/lib/seam/connect/models/acs/acs-users/acs-user.js.map +1 -1
- package/lib/seam/connect/models/acs/acs-users/pending-mutations.js +5 -13
- package/lib/seam/connect/models/acs/acs-users/pending-mutations.js.map +1 -1
- package/lib/seam/connect/models/bridges/bridge-client-session.js +5 -15
- package/lib/seam/connect/models/bridges/bridge-client-session.js.map +1 -1
- package/lib/seam/connect/models/bridges/bridge-connected-system.js +3 -8
- package/lib/seam/connect/models/bridges/bridge-connected-system.js.map +1 -1
- package/lib/seam/connect/models/bridges/bridge.js +2 -4
- package/lib/seam/connect/models/bridges/bridge.js.map +1 -1
- package/lib/seam/connect/models/client-sessions/client-session.js +3 -8
- package/lib/seam/connect/models/client-sessions/client-session.js.map +1 -1
- package/lib/seam/connect/models/connect-webviews/connect-webview.js +3 -7
- package/lib/seam/connect/models/connect-webviews/connect-webview.js.map +1 -1
- package/lib/seam/connect/models/connected-accounts/connected-account.js +4 -11
- package/lib/seam/connect/models/connected-accounts/connected-account.js.map +1 -1
- package/lib/seam/connect/models/customer/access-grant-resources.js +3 -6
- package/lib/seam/connect/models/customer/access-grant-resources.js.map +1 -1
- package/lib/seam/connect/models/customer/customer.js +2 -4
- package/lib/seam/connect/models/customer/customer.js.map +1 -1
- package/lib/seam/connect/models/customization-profiles/customization-profile.js +2 -1
- package/lib/seam/connect/models/customization-profiles/customization-profile.js.map +1 -1
- package/lib/seam/connect/models/datetime.d.ts +2 -0
- package/lib/seam/connect/models/datetime.js +3 -0
- package/lib/seam/connect/models/datetime.js.map +1 -0
- package/lib/seam/connect/models/devices/device.js +4 -12
- package/lib/seam/connect/models/devices/device.js.map +1 -1
- package/lib/seam/connect/models/devices/phone.js +3 -8
- package/lib/seam/connect/models/devices/phone.js.map +1 -1
- package/lib/seam/connect/models/events/common.js +5 -16
- package/lib/seam/connect/models/events/common.js.map +1 -1
- package/lib/seam/connect/models/index.d.ts +1 -0
- package/lib/seam/connect/models/index.js +1 -0
- package/lib/seam/connect/models/index.js.map +1 -1
- package/lib/seam/connect/models/instant-keys/instant-key.js +3 -8
- package/lib/seam/connect/models/instant-keys/instant-key.js.map +1 -1
- package/lib/seam/connect/models/partner/customer-portal.js +3 -8
- package/lib/seam/connect/models/partner/customer-portal.js.map +1 -1
- package/lib/seam/connect/models/partner/magic-link.js +3 -8
- package/lib/seam/connect/models/partner/magic-link.js.map +1 -1
- package/lib/seam/connect/models/schedule.js +3 -7
- package/lib/seam/connect/models/schedule.js.map +1 -1
- package/lib/seam/connect/models/spaces/space.js +2 -4
- package/lib/seam/connect/models/spaces/space.js.map +1 -1
- package/lib/seam/connect/models/thermostats/thermostat-program.js +3 -8
- package/lib/seam/connect/models/thermostats/thermostat-program.js.map +1 -1
- package/lib/seam/connect/models/thermostats/thermostat-schedule.js +5 -16
- package/lib/seam/connect/models/thermostats/thermostat-schedule.js.map +1 -1
- package/lib/seam/connect/models/user-identities/user-identity.js +4 -12
- package/lib/seam/connect/models/user-identities/user-identity.js.map +1 -1
- package/lib/seam/connect/openapi.js +6 -6
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +3 -3
- package/package.json +1 -1
- package/src/lib/seam/connect/internal/schemas.ts +1 -0
- package/src/lib/seam/connect/models/access-codes/managed-access-code.ts +8 -16
- package/src/lib/seam/connect/models/access-codes/pending-mutations.ts +12 -22
- package/src/lib/seam/connect/models/access-grants/access-grant.ts +14 -19
- package/src/lib/seam/connect/models/access-grants/access-method.ts +19 -37
- package/src/lib/seam/connect/models/access-grants/pending-mutations.ts +9 -22
- package/src/lib/seam/connect/models/access-grants/requested-access-method.ts +5 -6
- package/src/lib/seam/connect/models/acs/acs-access-group.ts +10 -12
- package/src/lib/seam/connect/models/acs/acs-access-groups/pending-mutations.ts +7 -10
- package/src/lib/seam/connect/models/acs/acs-credential-pool.ts +3 -1
- package/src/lib/seam/connect/models/acs/acs-credential-provisioning-automation.ts +6 -5
- package/src/lib/seam/connect/models/acs/acs-credential.ts +15 -29
- package/src/lib/seam/connect/models/acs/acs-credentials/pending-mutations.ts +5 -4
- package/src/lib/seam/connect/models/acs/acs-encoder.ts +8 -10
- package/src/lib/seam/connect/models/acs/acs-entrance.ts +10 -14
- package/src/lib/seam/connect/models/acs/acs-system.ts +11 -14
- package/src/lib/seam/connect/models/acs/acs-users/acs-user.ts +11 -15
- package/src/lib/seam/connect/models/acs/acs-users/pending-mutations.ts +7 -13
- package/src/lib/seam/connect/models/bridges/bridge-client-session.ts +12 -17
- package/src/lib/seam/connect/models/bridges/bridge-connected-system.ts +8 -10
- package/src/lib/seam/connect/models/bridges/bridge.ts +5 -4
- package/src/lib/seam/connect/models/client-sessions/client-session.ts +8 -12
- package/src/lib/seam/connect/models/connect-webviews/connect-webview.ts +5 -7
- package/src/lib/seam/connect/models/connected-accounts/connected-account.ts +8 -11
- package/src/lib/seam/connect/models/customer/access-grant-resources.ts +3 -6
- package/src/lib/seam/connect/models/customer/customer.ts +5 -4
- package/src/lib/seam/connect/models/customization-profiles/customization-profile.ts +2 -1
- package/src/lib/seam/connect/models/datetime.ts +3 -0
- package/src/lib/seam/connect/models/devices/device.ts +10 -12
- package/src/lib/seam/connect/models/devices/phone.ts +7 -8
- package/src/lib/seam/connect/models/events/common.ts +12 -16
- package/src/lib/seam/connect/models/index.ts +1 -0
- package/src/lib/seam/connect/models/instant-keys/instant-key.ts +8 -8
- package/src/lib/seam/connect/models/partner/customer-portal.ts +8 -8
- package/src/lib/seam/connect/models/partner/magic-link.ts +8 -8
- package/src/lib/seam/connect/models/schedule.ts +6 -9
- package/src/lib/seam/connect/models/spaces/space.ts +5 -4
- package/src/lib/seam/connect/models/thermostats/thermostat-program.ts +8 -12
- package/src/lib/seam/connect/models/thermostats/thermostat-schedule.ts +14 -22
- package/src/lib/seam/connect/models/user-identities/user-identity.ts +10 -12
- package/src/lib/seam/connect/openapi.ts +6 -6
- package/src/lib/seam/connect/route-types.ts +3 -3
|
@@ -1,19 +1,17 @@
|
|
|
1
1
|
import { z } from 'zod'
|
|
2
2
|
|
|
3
|
+
import { datetime } from '../datetime.js'
|
|
4
|
+
|
|
3
5
|
export const common_event = z.object({
|
|
4
6
|
event_id: z.string().uuid().describe('ID of the event.'),
|
|
5
7
|
workspace_id: z
|
|
6
8
|
.string()
|
|
7
9
|
.uuid()
|
|
8
10
|
.describe('ID of the workspace associated with the event.'),
|
|
9
|
-
created_at:
|
|
10
|
-
.
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
occurred_at: z
|
|
14
|
-
.string()
|
|
15
|
-
.datetime()
|
|
16
|
-
.describe('Date and time at which the event occurred.'),
|
|
11
|
+
created_at: datetime.describe(
|
|
12
|
+
'Date and time at which the event was created.',
|
|
13
|
+
),
|
|
14
|
+
occurred_at: datetime.describe('Date and time at which the event occurred.'),
|
|
17
15
|
event_description: z
|
|
18
16
|
.string()
|
|
19
17
|
.optional()
|
|
@@ -29,10 +27,9 @@ const warning_code_description =
|
|
|
29
27
|
|
|
30
28
|
export const common_event_error = z
|
|
31
29
|
.object({
|
|
32
|
-
created_at:
|
|
33
|
-
.
|
|
34
|
-
|
|
35
|
-
.describe('Date and time at which Seam created the error.'),
|
|
30
|
+
created_at: datetime.describe(
|
|
31
|
+
'Date and time at which Seam created the error.',
|
|
32
|
+
),
|
|
36
33
|
message: z
|
|
37
34
|
.string()
|
|
38
35
|
.describe(
|
|
@@ -46,10 +43,9 @@ export const common_event_error = z
|
|
|
46
43
|
|
|
47
44
|
export const common_event_warning = z
|
|
48
45
|
.object({
|
|
49
|
-
created_at:
|
|
50
|
-
.
|
|
51
|
-
|
|
52
|
-
.describe('Date and time at which Seam created the warning.'),
|
|
46
|
+
created_at: datetime.describe(
|
|
47
|
+
'Date and time at which Seam created the warning.',
|
|
48
|
+
),
|
|
53
49
|
message: z
|
|
54
50
|
.string()
|
|
55
51
|
.describe(
|
|
@@ -15,6 +15,7 @@ export * from './customer/index.js'
|
|
|
15
15
|
export * from './customer/location-resources.js'
|
|
16
16
|
export * from './customer/user-identity-resources.js'
|
|
17
17
|
export * from './customization-profiles/index.js'
|
|
18
|
+
export * from './datetime.js'
|
|
18
19
|
export * from './devices/index.js'
|
|
19
20
|
export * from './events/index.js'
|
|
20
21
|
export * from './instant-keys/index.js'
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import { z } from 'zod'
|
|
2
2
|
|
|
3
|
+
import { datetime } from '../datetime.js'
|
|
4
|
+
|
|
3
5
|
export const instant_key = z.object({
|
|
4
6
|
instant_key_id: z.string().uuid().describe('ID of the Instant Key.'),
|
|
5
7
|
workspace_id: z
|
|
6
8
|
.string()
|
|
7
9
|
.uuid()
|
|
8
10
|
.describe('ID of the workspace that contains the Instant Key.'),
|
|
9
|
-
created_at:
|
|
10
|
-
.
|
|
11
|
-
|
|
12
|
-
.describe('Date and time at which the Instant Key was created.'),
|
|
11
|
+
created_at: datetime.describe(
|
|
12
|
+
'Date and time at which the Instant Key was created.',
|
|
13
|
+
),
|
|
13
14
|
instant_key_url: z
|
|
14
15
|
.string()
|
|
15
16
|
.url()
|
|
@@ -24,10 +25,9 @@ export const instant_key = z.object({
|
|
|
24
25
|
.string()
|
|
25
26
|
.uuid()
|
|
26
27
|
.describe('ID of the user identity associated with the Instant Key.'),
|
|
27
|
-
expires_at:
|
|
28
|
-
.
|
|
29
|
-
|
|
30
|
-
.describe('Date and time at which the Instant Key expires.'),
|
|
28
|
+
expires_at: datetime.describe(
|
|
29
|
+
'Date and time at which the Instant Key expires.',
|
|
30
|
+
),
|
|
31
31
|
customization_profile_id: z
|
|
32
32
|
.string()
|
|
33
33
|
.uuid()
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { z } from 'zod'
|
|
2
2
|
|
|
3
|
+
import { datetime } from '../datetime.js'
|
|
4
|
+
|
|
3
5
|
export const customer_portal = z
|
|
4
6
|
.object({
|
|
5
7
|
url: z.string().url().describe('URL for the customer portal.'),
|
|
6
8
|
customer_key: z.string().describe('Customer key for the customer portal.'),
|
|
7
|
-
expires_at:
|
|
8
|
-
.
|
|
9
|
-
|
|
10
|
-
.describe('Date and time at which the customer portal link expires.'),
|
|
9
|
+
expires_at: datetime.describe(
|
|
10
|
+
'Date and time at which the customer portal link expires.',
|
|
11
|
+
),
|
|
11
12
|
workspace_id: z
|
|
12
13
|
.string()
|
|
13
14
|
.uuid()
|
|
14
15
|
.describe('ID of the workspace associated with the customer portal.'),
|
|
15
|
-
created_at:
|
|
16
|
-
.
|
|
17
|
-
|
|
18
|
-
.describe('Date and time at which the customer portal link was created.'),
|
|
16
|
+
created_at: datetime.describe(
|
|
17
|
+
'Date and time at which the customer portal link was created.',
|
|
18
|
+
),
|
|
19
19
|
})
|
|
20
20
|
.describe(
|
|
21
21
|
`
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { z } from 'zod'
|
|
2
2
|
|
|
3
|
+
import { datetime } from '../datetime.js'
|
|
4
|
+
|
|
3
5
|
export const magic_link = z.object({
|
|
4
6
|
url: z.string().url().describe('URL for the magic link.'),
|
|
5
7
|
customer_key: z.string().describe('Customer key for the magic link.'),
|
|
6
|
-
expires_at:
|
|
7
|
-
.
|
|
8
|
-
|
|
9
|
-
.describe('Date and time at which the magic link expires.'),
|
|
8
|
+
expires_at: datetime.describe(
|
|
9
|
+
'Date and time at which the magic link expires.',
|
|
10
|
+
),
|
|
10
11
|
workspace_id: z
|
|
11
12
|
.string()
|
|
12
13
|
.uuid()
|
|
13
14
|
.describe('ID of the workspace associated with the magic link.'),
|
|
14
|
-
created_at:
|
|
15
|
-
.
|
|
16
|
-
|
|
17
|
-
.describe('Date and time at which the magic link was created.'),
|
|
15
|
+
created_at: datetime.describe(
|
|
16
|
+
'Date and time at which the magic link was created.',
|
|
17
|
+
),
|
|
18
18
|
}).describe(`
|
|
19
19
|
---
|
|
20
20
|
undocumented: Unreleased.
|
|
@@ -1,16 +1,13 @@
|
|
|
1
1
|
import { z } from 'zod'
|
|
2
2
|
|
|
3
|
+
import { datetime } from './datetime.js'
|
|
4
|
+
|
|
3
5
|
export const start_end_schedule = z
|
|
4
6
|
.object({
|
|
5
|
-
starts_at:
|
|
6
|
-
.
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
"Date and time at which the user's access starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.",
|
|
10
|
-
),
|
|
11
|
-
ends_at: z
|
|
12
|
-
.string()
|
|
13
|
-
.datetime()
|
|
7
|
+
starts_at: datetime.describe(
|
|
8
|
+
"Date and time at which the user's access starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.",
|
|
9
|
+
),
|
|
10
|
+
ends_at: datetime
|
|
14
11
|
.describe(
|
|
15
12
|
"Date and time at which the user's access ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.",
|
|
16
13
|
)
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod'
|
|
2
2
|
|
|
3
|
+
import { datetime } from '../datetime.js'
|
|
4
|
+
|
|
3
5
|
const time_of_day_re = /^([01]\d|2[0-3]):[0-5]\d(:[0-5]\d)?$/
|
|
4
6
|
|
|
5
7
|
export const space_customer_data = z
|
|
@@ -47,10 +49,9 @@ export const space = z.object({
|
|
|
47
49
|
.describe('Unique key for the space within the workspace.'),
|
|
48
50
|
name: z.string().describe('Name of the space.'),
|
|
49
51
|
display_name: z.string().describe('Display name for the space.'),
|
|
50
|
-
created_at:
|
|
51
|
-
.
|
|
52
|
-
|
|
53
|
-
.describe('Date and time at which the space was created.'),
|
|
52
|
+
created_at: datetime.describe(
|
|
53
|
+
'Date and time at which the space was created.',
|
|
54
|
+
),
|
|
54
55
|
device_count: z.number().describe('Number of devices in the space.'),
|
|
55
56
|
acs_entrance_count: z.number().describe('Number of entrances in the space.'),
|
|
56
57
|
customer_key: z
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod'
|
|
2
2
|
|
|
3
|
+
import { datetime } from '../datetime.js'
|
|
4
|
+
|
|
3
5
|
export const thermostat_daily_program_period = z
|
|
4
6
|
.object({
|
|
5
7
|
starts_at_time: z
|
|
@@ -42,12 +44,9 @@ export const thermostat_daily_program = z.object({
|
|
|
42
44
|
.describe(
|
|
43
45
|
'ID of the workspace that contains the thermostat daily program.',
|
|
44
46
|
),
|
|
45
|
-
created_at:
|
|
46
|
-
.
|
|
47
|
-
|
|
48
|
-
.describe(
|
|
49
|
-
'Date and time at which the thermostat daily program was created.',
|
|
50
|
-
),
|
|
47
|
+
created_at: datetime.describe(
|
|
48
|
+
'Date and time at which the thermostat daily program was created.',
|
|
49
|
+
),
|
|
51
50
|
}).describe(`
|
|
52
51
|
---
|
|
53
52
|
route_path: /thermostats/daily_programs
|
|
@@ -91,12 +90,9 @@ export const thermostat_weekly_program = z.object({
|
|
|
91
90
|
.uuid()
|
|
92
91
|
.nullable()
|
|
93
92
|
.describe('ID of the thermostat daily program to run on Sundays.'),
|
|
94
|
-
created_at:
|
|
95
|
-
.
|
|
96
|
-
|
|
97
|
-
.describe(
|
|
98
|
-
'Date and time at which the thermostat weekly program was created.',
|
|
99
|
-
),
|
|
93
|
+
created_at: datetime.describe(
|
|
94
|
+
'Date and time at which the thermostat weekly program was created.',
|
|
95
|
+
),
|
|
100
96
|
})
|
|
101
97
|
|
|
102
98
|
export type ThermostatDailyProgram = z.infer<typeof thermostat_daily_program>
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod'
|
|
2
2
|
|
|
3
|
+
import { datetime } from '../datetime.js'
|
|
4
|
+
|
|
3
5
|
export const thermostat_schedule = z.object({
|
|
4
6
|
thermostat_schedule_id: z
|
|
5
7
|
.string()
|
|
@@ -33,34 +35,25 @@ export const thermostat_schedule = z.object({
|
|
|
33
35
|
.describe(
|
|
34
36
|
"Number of minutes for which a person at the thermostat can change the thermostat's settings after the activation of the scheduled [climate preset](https://docs.seam.co/capability-guides/thermostats/creating-and-managing-climate-presets). See also [Specifying Manual Override Permissions](https://docs.seam.co/capability-guides/thermostats/creating-and-managing-thermostat-schedules#specifying-manual-override-permissions).",
|
|
35
37
|
),
|
|
36
|
-
starts_at:
|
|
37
|
-
.
|
|
38
|
-
|
|
39
|
-
.describe(
|
|
40
|
-
'Date and time at which the [thermostat schedule](https://docs.seam.co/capability-guides/thermostats/creating-and-managing-thermostat-schedules) starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.',
|
|
41
|
-
),
|
|
38
|
+
starts_at: datetime.describe(
|
|
39
|
+
'Date and time at which the [thermostat schedule](https://docs.seam.co/capability-guides/thermostats/creating-and-managing-thermostat-schedules) starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.',
|
|
40
|
+
),
|
|
42
41
|
is_override_allowed: z
|
|
43
42
|
.boolean()
|
|
44
43
|
.optional()
|
|
45
44
|
.describe(
|
|
46
45
|
"Indicates whether a person at the thermostat can change the thermostat's settings after the [thermostat schedule](https://docs.seam.co/capability-guides/thermostats/creating-and-managing-thermostat-schedules) starts.",
|
|
47
46
|
),
|
|
48
|
-
ends_at:
|
|
49
|
-
.
|
|
50
|
-
|
|
51
|
-
.describe(
|
|
52
|
-
'Date and time at which the [thermostat schedule](https://docs.seam.co/capability-guides/thermostats/creating-and-managing-thermostat-schedules) ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.',
|
|
53
|
-
),
|
|
47
|
+
ends_at: datetime.describe(
|
|
48
|
+
'Date and time at which the [thermostat schedule](https://docs.seam.co/capability-guides/thermostats/creating-and-managing-thermostat-schedules) ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.',
|
|
49
|
+
),
|
|
54
50
|
workspace_id: z
|
|
55
51
|
.string()
|
|
56
52
|
.uuid()
|
|
57
53
|
.describe('ID of the workspace that contains the thermostat schedule.'),
|
|
58
|
-
created_at:
|
|
59
|
-
.
|
|
60
|
-
|
|
61
|
-
.describe(
|
|
62
|
-
'Date and time at which the [thermostat schedule](https://docs.seam.co/capability-guides/thermostats/creating-and-managing-thermostat-schedules) was created.',
|
|
63
|
-
),
|
|
54
|
+
created_at: datetime.describe(
|
|
55
|
+
'Date and time at which the [thermostat schedule](https://docs.seam.co/capability-guides/thermostats/creating-and-managing-thermostat-schedules) was created.',
|
|
56
|
+
),
|
|
64
57
|
errors: z
|
|
65
58
|
.array(
|
|
66
59
|
z.object({
|
|
@@ -74,10 +67,9 @@ export const thermostat_schedule = z.object({
|
|
|
74
67
|
.describe(
|
|
75
68
|
'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.',
|
|
76
69
|
),
|
|
77
|
-
created_at:
|
|
78
|
-
.
|
|
79
|
-
|
|
80
|
-
.describe('Date and time at which Seam created the error.'),
|
|
70
|
+
created_at: datetime.describe(
|
|
71
|
+
'Date and time at which Seam created the error.',
|
|
72
|
+
),
|
|
81
73
|
}),
|
|
82
74
|
)
|
|
83
75
|
.describe(
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { z } from 'zod'
|
|
2
2
|
|
|
3
|
+
import { datetime } from '../datetime.js'
|
|
3
4
|
import { loose_phone_number } from '../phone-number.js'
|
|
4
5
|
|
|
5
6
|
const common_user_identity_error = z.object({
|
|
6
|
-
created_at:
|
|
7
|
-
.
|
|
8
|
-
|
|
9
|
-
.describe('Date and time at which Seam created the error.'),
|
|
7
|
+
created_at: datetime.describe(
|
|
8
|
+
'Date and time at which Seam created the error.',
|
|
9
|
+
),
|
|
10
10
|
message: z
|
|
11
11
|
.string()
|
|
12
12
|
.describe(
|
|
@@ -15,10 +15,9 @@ const common_user_identity_error = z.object({
|
|
|
15
15
|
})
|
|
16
16
|
|
|
17
17
|
const common_user_identity_warning = z.object({
|
|
18
|
-
created_at:
|
|
19
|
-
.
|
|
20
|
-
|
|
21
|
-
.describe('Date and time at which Seam created the warning.'),
|
|
18
|
+
created_at: datetime.describe(
|
|
19
|
+
'Date and time at which Seam created the warning.',
|
|
20
|
+
),
|
|
22
21
|
message: z
|
|
23
22
|
.string()
|
|
24
23
|
.describe(
|
|
@@ -139,10 +138,9 @@ export const user_identity = z.object({
|
|
|
139
138
|
.describe(
|
|
140
139
|
'Keys that other user identities used to have before they were merged into this user identity. Looking up any of them returns this user identity.',
|
|
141
140
|
),
|
|
142
|
-
created_at:
|
|
143
|
-
.
|
|
144
|
-
|
|
145
|
-
.describe('Date and time at which the user identity was created.'),
|
|
141
|
+
created_at: datetime.describe(
|
|
142
|
+
'Date and time at which the user identity was created.',
|
|
143
|
+
),
|
|
146
144
|
workspace_id: z
|
|
147
145
|
.string()
|
|
148
146
|
.uuid()
|
|
@@ -56826,7 +56826,6 @@ const openapi: OpenAPISpec = {
|
|
|
56826
56826
|
'keywe',
|
|
56827
56827
|
'kwikset',
|
|
56828
56828
|
'linear',
|
|
56829
|
-
'lockly',
|
|
56830
56829
|
'nuki',
|
|
56831
56830
|
'philia',
|
|
56832
56831
|
'salto',
|
|
@@ -56849,6 +56848,7 @@ const openapi: OpenAPISpec = {
|
|
|
56849
56848
|
'honeywell_resideo',
|
|
56850
56849
|
'keynest',
|
|
56851
56850
|
'korelock',
|
|
56851
|
+
'lockly',
|
|
56852
56852
|
'minut',
|
|
56853
56853
|
'nest',
|
|
56854
56854
|
'noiseaware',
|
|
@@ -57364,7 +57364,6 @@ const openapi: OpenAPISpec = {
|
|
|
57364
57364
|
'keywe',
|
|
57365
57365
|
'kwikset',
|
|
57366
57366
|
'linear',
|
|
57367
|
-
'lockly',
|
|
57368
57367
|
'nuki',
|
|
57369
57368
|
'philia',
|
|
57370
57369
|
'salto',
|
|
@@ -57387,6 +57386,7 @@ const openapi: OpenAPISpec = {
|
|
|
57387
57386
|
'honeywell_resideo',
|
|
57388
57387
|
'keynest',
|
|
57389
57388
|
'korelock',
|
|
57389
|
+
'lockly',
|
|
57390
57390
|
'minut',
|
|
57391
57391
|
'nest',
|
|
57392
57392
|
'noiseaware',
|
|
@@ -59666,7 +59666,6 @@ const openapi: OpenAPISpec = {
|
|
|
59666
59666
|
'keywe',
|
|
59667
59667
|
'kwikset',
|
|
59668
59668
|
'linear',
|
|
59669
|
-
'lockly',
|
|
59670
59669
|
'nuki',
|
|
59671
59670
|
'philia',
|
|
59672
59671
|
'salto',
|
|
@@ -59689,6 +59688,7 @@ const openapi: OpenAPISpec = {
|
|
|
59689
59688
|
'honeywell_resideo',
|
|
59690
59689
|
'keynest',
|
|
59691
59690
|
'korelock',
|
|
59691
|
+
'lockly',
|
|
59692
59692
|
'minut',
|
|
59693
59693
|
'nest',
|
|
59694
59694
|
'noiseaware',
|
|
@@ -60150,7 +60150,6 @@ const openapi: OpenAPISpec = {
|
|
|
60150
60150
|
'keywe',
|
|
60151
60151
|
'kwikset',
|
|
60152
60152
|
'linear',
|
|
60153
|
-
'lockly',
|
|
60154
60153
|
'nuki',
|
|
60155
60154
|
'philia',
|
|
60156
60155
|
'salto',
|
|
@@ -60173,6 +60172,7 @@ const openapi: OpenAPISpec = {
|
|
|
60173
60172
|
'honeywell_resideo',
|
|
60174
60173
|
'keynest',
|
|
60175
60174
|
'korelock',
|
|
60175
|
+
'lockly',
|
|
60176
60176
|
'minut',
|
|
60177
60177
|
'nest',
|
|
60178
60178
|
'noiseaware',
|
|
@@ -62389,7 +62389,6 @@ const openapi: OpenAPISpec = {
|
|
|
62389
62389
|
'genie',
|
|
62390
62390
|
'igloo',
|
|
62391
62391
|
'linear',
|
|
62392
|
-
'lockly',
|
|
62393
62392
|
'kwikset',
|
|
62394
62393
|
'nuki',
|
|
62395
62394
|
'salto',
|
|
@@ -62408,6 +62407,7 @@ const openapi: OpenAPISpec = {
|
|
|
62408
62407
|
'akiles',
|
|
62409
62408
|
'aqara',
|
|
62410
62409
|
'korelock',
|
|
62410
|
+
'lockly',
|
|
62411
62411
|
'smartthings',
|
|
62412
62412
|
'ultraloq',
|
|
62413
62413
|
'omnitec',
|
|
@@ -62579,7 +62579,6 @@ const openapi: OpenAPISpec = {
|
|
|
62579
62579
|
'genie',
|
|
62580
62580
|
'igloo',
|
|
62581
62581
|
'linear',
|
|
62582
|
-
'lockly',
|
|
62583
62582
|
'kwikset',
|
|
62584
62583
|
'nuki',
|
|
62585
62584
|
'salto',
|
|
@@ -62598,6 +62597,7 @@ const openapi: OpenAPISpec = {
|
|
|
62598
62597
|
'akiles',
|
|
62599
62598
|
'aqara',
|
|
62600
62599
|
'korelock',
|
|
62600
|
+
'lockly',
|
|
62601
62601
|
'smartthings',
|
|
62602
62602
|
'ultraloq',
|
|
62603
62603
|
'omnitec',
|
|
@@ -52652,7 +52652,6 @@ export type Routes = {
|
|
|
52652
52652
|
| 'keywe'
|
|
52653
52653
|
| 'kwikset'
|
|
52654
52654
|
| 'linear'
|
|
52655
|
-
| 'lockly'
|
|
52656
52655
|
| 'nuki'
|
|
52657
52656
|
| 'philia'
|
|
52658
52657
|
| 'salto'
|
|
@@ -52675,6 +52674,7 @@ export type Routes = {
|
|
|
52675
52674
|
| 'honeywell_resideo'
|
|
52676
52675
|
| 'keynest'
|
|
52677
52676
|
| 'korelock'
|
|
52677
|
+
| 'lockly'
|
|
52678
52678
|
| 'minut'
|
|
52679
52679
|
| 'nest'
|
|
52680
52680
|
| 'noiseaware'
|
|
@@ -56939,7 +56939,6 @@ export type Routes = {
|
|
|
56939
56939
|
| 'keywe'
|
|
56940
56940
|
| 'kwikset'
|
|
56941
56941
|
| 'linear'
|
|
56942
|
-
| 'lockly'
|
|
56943
56942
|
| 'nuki'
|
|
56944
56943
|
| 'philia'
|
|
56945
56944
|
| 'salto'
|
|
@@ -56962,6 +56961,7 @@ export type Routes = {
|
|
|
56962
56961
|
| 'honeywell_resideo'
|
|
56963
56962
|
| 'keynest'
|
|
56964
56963
|
| 'korelock'
|
|
56964
|
+
| 'lockly'
|
|
56965
56965
|
| 'minut'
|
|
56966
56966
|
| 'nest'
|
|
56967
56967
|
| 'noiseaware'
|
|
@@ -72043,7 +72043,6 @@ export type Routes = {
|
|
|
72043
72043
|
| 'genie'
|
|
72044
72044
|
| 'igloo'
|
|
72045
72045
|
| 'linear'
|
|
72046
|
-
| 'lockly'
|
|
72047
72046
|
| 'kwikset'
|
|
72048
72047
|
| 'nuki'
|
|
72049
72048
|
| 'salto'
|
|
@@ -72062,6 +72061,7 @@ export type Routes = {
|
|
|
72062
72061
|
| 'akiles'
|
|
72063
72062
|
| 'aqara'
|
|
72064
72063
|
| 'korelock'
|
|
72064
|
+
| 'lockly'
|
|
72065
72065
|
| 'smartthings'
|
|
72066
72066
|
| 'ultraloq'
|
|
72067
72067
|
| 'omnitec'
|