@seamapi/types 1.1037.0 → 1.1039.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 +73 -0
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +23 -0
- 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 +74 -0
- package/src/lib/seam/connect/route-types.ts +23 -0
|
@@ -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()
|
|
@@ -80355,6 +80355,80 @@ const openapi: OpenAPISpec = {
|
|
|
80355
80355
|
'x-undocumented': 'Internal endpoint for inbound provider webhooks',
|
|
80356
80356
|
},
|
|
80357
80357
|
},
|
|
80358
|
+
'/seam/wizard/v1/session': {
|
|
80359
|
+
post: {
|
|
80360
|
+
description:
|
|
80361
|
+
"Exchanges a Seam API key for a short-lived wizard inference token. The Seam\nWizard CLI calls this once, then sends the returned token as the bearer to the\ninference proxy. The session also carries the workspace org's Console-collected\nonboarding answers (or null) so the CLI can pre-fill its integration plan.",
|
|
80362
|
+
operationId: 'seamWizardV1SessionPost',
|
|
80363
|
+
requestBody: {
|
|
80364
|
+
content: {
|
|
80365
|
+
'application/json': { schema: { properties: {}, type: 'object' } },
|
|
80366
|
+
},
|
|
80367
|
+
},
|
|
80368
|
+
responses: {
|
|
80369
|
+
'200': {
|
|
80370
|
+
content: {
|
|
80371
|
+
'application/json': {
|
|
80372
|
+
schema: {
|
|
80373
|
+
properties: {
|
|
80374
|
+
ok: { type: 'boolean' },
|
|
80375
|
+
wizard_session: {
|
|
80376
|
+
properties: {
|
|
80377
|
+
expires_at: { type: 'string' },
|
|
80378
|
+
onboarding: {
|
|
80379
|
+
nullable: true,
|
|
80380
|
+
properties: {
|
|
80381
|
+
build_target: { nullable: true, type: 'string' },
|
|
80382
|
+
device_categories: {
|
|
80383
|
+
items: { type: 'string' },
|
|
80384
|
+
nullable: true,
|
|
80385
|
+
type: 'array',
|
|
80386
|
+
},
|
|
80387
|
+
embed_customer_portal: {
|
|
80388
|
+
nullable: true,
|
|
80389
|
+
type: 'boolean',
|
|
80390
|
+
},
|
|
80391
|
+
org_type: { nullable: true, type: 'string' },
|
|
80392
|
+
primary_goal: { nullable: true, type: 'string' },
|
|
80393
|
+
use_case: { nullable: true, type: 'string' },
|
|
80394
|
+
},
|
|
80395
|
+
required: [
|
|
80396
|
+
'org_type',
|
|
80397
|
+
'primary_goal',
|
|
80398
|
+
'use_case',
|
|
80399
|
+
'build_target',
|
|
80400
|
+
'embed_customer_portal',
|
|
80401
|
+
'device_categories',
|
|
80402
|
+
],
|
|
80403
|
+
type: 'object',
|
|
80404
|
+
},
|
|
80405
|
+
token: { type: 'string' },
|
|
80406
|
+
},
|
|
80407
|
+
required: ['token', 'expires_at', 'onboarding'],
|
|
80408
|
+
type: 'object',
|
|
80409
|
+
},
|
|
80410
|
+
},
|
|
80411
|
+
required: ['wizard_session', 'ok'],
|
|
80412
|
+
type: 'object',
|
|
80413
|
+
},
|
|
80414
|
+
},
|
|
80415
|
+
},
|
|
80416
|
+
description: 'OK',
|
|
80417
|
+
},
|
|
80418
|
+
'400': { description: 'Bad Request' },
|
|
80419
|
+
'401': { description: 'Unauthorized' },
|
|
80420
|
+
},
|
|
80421
|
+
security: [{ api_key: [] }, { pat_with_workspace: [] }],
|
|
80422
|
+
summary: '/seam/wizard/v1/session',
|
|
80423
|
+
tags: [],
|
|
80424
|
+
'x-fern-sdk-group-name': ['seam', 'wizard', 'v1'],
|
|
80425
|
+
'x-fern-sdk-method-name': 'session',
|
|
80426
|
+
'x-fern-sdk-return-value': 'wizard_session',
|
|
80427
|
+
'x-response-key': 'wizard_session',
|
|
80428
|
+
'x-title': 'Create a Wizard Session',
|
|
80429
|
+
'x-undocumented': 'Seam Wizard CLI only.',
|
|
80430
|
+
},
|
|
80431
|
+
},
|
|
80358
80432
|
'/spaces/add_acs_entrances': {
|
|
80359
80433
|
post: {
|
|
80360
80434
|
description:
|
|
@@ -106071,6 +106071,29 @@ export type Routes = {
|
|
|
106071
106071
|
jsonResponse: {}
|
|
106072
106072
|
maxDuration: undefined
|
|
106073
106073
|
}
|
|
106074
|
+
'/seam/wizard/v1/session': {
|
|
106075
|
+
route: '/seam/wizard/v1/session'
|
|
106076
|
+
method: 'POST'
|
|
106077
|
+
queryParams: {}
|
|
106078
|
+
jsonBody: {}
|
|
106079
|
+
commonParams: {}
|
|
106080
|
+
formData: {}
|
|
106081
|
+
jsonResponse: {
|
|
106082
|
+
wizard_session: {
|
|
106083
|
+
token: string
|
|
106084
|
+
expires_at: string
|
|
106085
|
+
onboarding: {
|
|
106086
|
+
org_type: string | null
|
|
106087
|
+
primary_goal: string | null
|
|
106088
|
+
use_case: string | null
|
|
106089
|
+
build_target: string | null
|
|
106090
|
+
embed_customer_portal: boolean | null
|
|
106091
|
+
device_categories: string[] | null
|
|
106092
|
+
} | null
|
|
106093
|
+
}
|
|
106094
|
+
}
|
|
106095
|
+
maxDuration: undefined
|
|
106096
|
+
}
|
|
106074
106097
|
'/spaces/add_acs_entrances': {
|
|
106075
106098
|
route: '/spaces/add_acs_entrances'
|
|
106076
106099
|
method: 'POST' | 'PUT'
|