@seamapi/types 1.437.1 → 1.438.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 +913 -3
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +1333 -0
- package/lib/seam/connect/models/events/access-codes.d.ts +204 -0
- package/lib/seam/connect/models/events/access-codes.js +7 -0
- package/lib/seam/connect/models/events/access-codes.js.map +1 -1
- package/lib/seam/connect/models/events/connect-webviews.d.ts +6 -0
- package/lib/seam/connect/models/events/connect-webviews.js +5 -0
- package/lib/seam/connect/models/events/connect-webviews.js.map +1 -1
- package/lib/seam/connect/models/events/connected-accounts.d.ts +42 -0
- package/lib/seam/connect/models/events/connected-accounts.js +4 -0
- package/lib/seam/connect/models/events/connected-accounts.js.map +1 -1
- package/lib/seam/connect/models/events/devices.d.ts +396 -0
- package/lib/seam/connect/models/events/devices.js +7 -0
- package/lib/seam/connect/models/events/devices.js.map +1 -1
- package/lib/seam/connect/models/events/phones.d.ts +6 -0
- package/lib/seam/connect/models/events/phones.js +4 -0
- package/lib/seam/connect/models/events/phones.js.map +1 -1
- package/lib/seam/connect/models/events/seam-event.d.ts +327 -0
- package/lib/seam/connect/models/user-identities/user-identity.d.ts +3 -0
- package/lib/seam/connect/models/user-identities/user-identity.js +3 -0
- package/lib/seam/connect/models/user-identities/user-identity.js.map +1 -1
- package/lib/seam/connect/openapi.d.ts +535 -0
- package/lib/seam/connect/openapi.js +885 -0
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +468 -0
- package/package.json +1 -1
- package/src/lib/seam/connect/models/events/access-codes.ts +11 -0
- package/src/lib/seam/connect/models/events/connect-webviews.ts +8 -0
- package/src/lib/seam/connect/models/events/connected-accounts.ts +6 -0
- package/src/lib/seam/connect/models/events/devices.ts +11 -0
- package/src/lib/seam/connect/models/events/phones.ts +6 -0
- package/src/lib/seam/connect/models/user-identities/user-identity.ts +5 -0
- package/src/lib/seam/connect/openapi.ts +1001 -0
- package/src/lib/seam/connect/route-types.ts +904 -0
package/package.json
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod'
|
|
2
2
|
|
|
3
|
+
import { custom_metadata } from '../custom-metadata.js'
|
|
3
4
|
import { common_event } from './common.js'
|
|
4
5
|
|
|
5
6
|
const access_code_event = common_event.extend({
|
|
@@ -14,6 +15,16 @@ const access_code_event = common_event.extend({
|
|
|
14
15
|
.describe(
|
|
15
16
|
'ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the affected access code.',
|
|
16
17
|
),
|
|
18
|
+
device_custom_metadata: custom_metadata
|
|
19
|
+
.optional()
|
|
20
|
+
.describe(
|
|
21
|
+
'Custom metadata of the device, present when device_id is provided.',
|
|
22
|
+
),
|
|
23
|
+
connected_account_custom_metadata: custom_metadata
|
|
24
|
+
.optional()
|
|
25
|
+
.describe(
|
|
26
|
+
'Custom metadata of the connected account, present when connected_account_id is provided.',
|
|
27
|
+
),
|
|
17
28
|
})
|
|
18
29
|
|
|
19
30
|
const code = z.string().describe('Code for the affected access code.')
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod'
|
|
2
2
|
|
|
3
|
+
import { custom_metadata } from '../custom-metadata.js'
|
|
3
4
|
import { common_event } from './common.js'
|
|
4
5
|
|
|
5
6
|
const connect_webview_event = common_event.extend({
|
|
@@ -18,10 +19,17 @@ const connected_account_id = z
|
|
|
18
19
|
'ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the event.',
|
|
19
20
|
)
|
|
20
21
|
|
|
22
|
+
const connected_account_custom_metadata = custom_metadata
|
|
23
|
+
.optional()
|
|
24
|
+
.describe(
|
|
25
|
+
'Custom metadata of the connected account; present when connected_account_id is provided.',
|
|
26
|
+
)
|
|
27
|
+
|
|
21
28
|
export const connect_webview_login_succeeded_event =
|
|
22
29
|
connect_webview_event.extend({
|
|
23
30
|
event_type: z.literal('connect_webview.login_succeeded'),
|
|
24
31
|
connected_account_id,
|
|
32
|
+
connected_account_custom_metadata,
|
|
25
33
|
}).describe(`
|
|
26
34
|
---
|
|
27
35
|
route_path: /connect_webviews
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod'
|
|
2
2
|
|
|
3
|
+
import { custom_metadata } from '../custom-metadata.js'
|
|
3
4
|
import { common_event } from './common.js'
|
|
4
5
|
|
|
5
6
|
const connected_account_event = common_event.extend({
|
|
@@ -9,6 +10,11 @@ const connected_account_event = common_event.extend({
|
|
|
9
10
|
.describe(
|
|
10
11
|
'ID of the affected [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts).',
|
|
11
12
|
),
|
|
13
|
+
connected_account_custom_metadata: custom_metadata
|
|
14
|
+
.optional()
|
|
15
|
+
.describe(
|
|
16
|
+
'Custom metadata of the connected account, present when connected_account_id is provided.',
|
|
17
|
+
),
|
|
12
18
|
})
|
|
13
19
|
|
|
14
20
|
const connect_webview_id = z
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod'
|
|
2
2
|
|
|
3
|
+
import { custom_metadata } from '../custom-metadata.js'
|
|
3
4
|
import { climate_setting } from '../thermostats/climate-preset.js'
|
|
4
5
|
import { common_event } from './common.js'
|
|
5
6
|
|
|
@@ -11,6 +12,16 @@ const device_event = common_event.extend({
|
|
|
11
12
|
.describe(
|
|
12
13
|
'ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the event.',
|
|
13
14
|
),
|
|
15
|
+
device_custom_metadata: custom_metadata
|
|
16
|
+
.optional()
|
|
17
|
+
.describe(
|
|
18
|
+
'Custom metadata of the device, present when device_id is provided.',
|
|
19
|
+
),
|
|
20
|
+
connected_account_custom_metadata: custom_metadata
|
|
21
|
+
.optional()
|
|
22
|
+
.describe(
|
|
23
|
+
'Custom metadata of the connected account, present when connected_account_id is provided.',
|
|
24
|
+
),
|
|
14
25
|
})
|
|
15
26
|
|
|
16
27
|
const battery_level = z
|
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
import { z } from 'zod'
|
|
2
2
|
|
|
3
|
+
import { custom_metadata } from '../custom-metadata.js'
|
|
3
4
|
import { common_event } from './common.js'
|
|
4
5
|
|
|
5
6
|
const phone_event = common_event.extend({
|
|
6
7
|
device_id: z.string().uuid().describe('ID of the affected phone device.'),
|
|
8
|
+
device_custom_metadata: custom_metadata
|
|
9
|
+
.optional()
|
|
10
|
+
.describe(
|
|
11
|
+
'Custom metadata of the device; present when device_id is provided.',
|
|
12
|
+
),
|
|
7
13
|
})
|
|
8
14
|
|
|
9
15
|
export const phone_deactivated_event = phone_event.extend({
|
|
@@ -143,6 +143,11 @@ export const user_identity = z.object({
|
|
|
143
143
|
.describe(
|
|
144
144
|
'Array of warnings associated with the user identity. Each warning object within the array contains two fields: "warning_code" and "message." "warning_code" is a string that uniquely identifies the type of warning, enabling quick recognition and categorization of the issue. "message" provides a more detailed description of the warning, offering insights into the issue and potentially how to rectify it.',
|
|
145
145
|
),
|
|
146
|
+
acs_user_ids: z
|
|
147
|
+
.array(z.string().uuid())
|
|
148
|
+
.describe(
|
|
149
|
+
'Array of access system user IDs associated with the user identity.',
|
|
150
|
+
),
|
|
146
151
|
}).describe(`
|
|
147
152
|
---
|
|
148
153
|
route_path: /user_identities
|