@seamapi/types 1.115.0 → 1.117.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 +17 -68
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +23 -91
- package/lib/seam/connect/openapi.d.ts +16 -90
- package/lib/seam/connect/openapi.js +13 -64
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +7 -1
- package/lib/seam/connect/unstable/models/devices/unmanaged-device.d.ts +28 -22
- package/lib/seam/connect/unstable/models/devices/unmanaged-device.js +3 -1
- package/lib/seam/connect/unstable/models/devices/unmanaged-device.js.map +1 -1
- package/package.json +1 -1
- package/src/lib/seam/connect/openapi.ts +13 -64
- package/src/lib/seam/connect/route-types.ts +7 -1
- package/src/lib/seam/connect/unstable/models/devices/unmanaged-device.ts +3 -0
|
@@ -2973,6 +2973,8 @@ export interface Routes {
|
|
|
2973
2973
|
accessory_keypad_supported?: boolean | undefined;
|
|
2974
2974
|
};
|
|
2975
2975
|
};
|
|
2976
|
+
can_remotely_unlock?: boolean | undefined;
|
|
2977
|
+
can_program_online_access_codes?: boolean | undefined;
|
|
2976
2978
|
};
|
|
2977
2979
|
};
|
|
2978
2980
|
};
|
|
@@ -3056,6 +3058,8 @@ export interface Routes {
|
|
|
3056
3058
|
accessory_keypad_supported?: boolean | undefined;
|
|
3057
3059
|
};
|
|
3058
3060
|
};
|
|
3061
|
+
can_remotely_unlock?: boolean | undefined;
|
|
3062
|
+
can_program_online_access_codes?: boolean | undefined;
|
|
3059
3063
|
}>;
|
|
3060
3064
|
};
|
|
3061
3065
|
};
|
|
@@ -6921,7 +6925,9 @@ export interface Routes {
|
|
|
6921
6925
|
method: 'GET' | 'POST';
|
|
6922
6926
|
queryParams: {};
|
|
6923
6927
|
jsonBody: {};
|
|
6924
|
-
commonParams: {
|
|
6928
|
+
commonParams: {
|
|
6929
|
+
credential_manager_acs_system_id?: string | undefined;
|
|
6930
|
+
};
|
|
6925
6931
|
formData: {};
|
|
6926
6932
|
jsonResponse: {
|
|
6927
6933
|
user_identities: Array<{
|
|
@@ -4,28 +4,6 @@ export declare const unmanaged_device: z.ZodObject<{
|
|
|
4
4
|
workspace_id: z.ZodString;
|
|
5
5
|
created_at: z.ZodString;
|
|
6
6
|
device_id: z.ZodString;
|
|
7
|
-
device_type: z.ZodUnion<[z.ZodEnum<["akuvox_lock" | "august_lock" | "brivo_access_point" | "butterflymx_panel" | "avigilon_alta_entry" | "doorking_lock" | "genie_door" | "igloo_lock" | "linear_lock" | "lockly_lock" | "kwikset_lock" | "nuki_lock" | "salto_lock" | "schlage_lock" | "seam_relay" | "smartthings_lock" | "wyze_lock" | "yale_lock" | "two_n_intercom" | "controlbyweb_device" | "ttlock_lock" | "igloohome_lock" | "hubitat_lock" | "four_suites_door" | "dormakaba_oracode_door" | "tedee_lock"]>, z.ZodEnum<["noiseaware_activity_zone" | "minut_sensor"]>, z.ZodEnum<["ecobee_thermostat" | "nest_thermostat" | "honeywell_thermostat"]>, z.ZodEnum<["ios_phone" | "android_phone"]>]>;
|
|
8
|
-
capabilities_supported: z.ZodArray<z.ZodEnum<["access_code", "lock", "noise_detection", "thermostat", "battery", "phone"]>, "many">;
|
|
9
|
-
errors: z.ZodArray<z.ZodObject<{
|
|
10
|
-
error_code: z.ZodString;
|
|
11
|
-
message: z.ZodString;
|
|
12
|
-
}, "strip", z.ZodTypeAny, {
|
|
13
|
-
message: string;
|
|
14
|
-
error_code: string;
|
|
15
|
-
}, {
|
|
16
|
-
message: string;
|
|
17
|
-
error_code: string;
|
|
18
|
-
}>, "many">;
|
|
19
|
-
warnings: z.ZodArray<z.ZodObject<{
|
|
20
|
-
warning_code: z.ZodString;
|
|
21
|
-
message: z.ZodString;
|
|
22
|
-
}, "strip", z.ZodTypeAny, {
|
|
23
|
-
message: string;
|
|
24
|
-
warning_code: string;
|
|
25
|
-
}, {
|
|
26
|
-
message: string;
|
|
27
|
-
warning_code: string;
|
|
28
|
-
}>, "many">;
|
|
29
7
|
is_managed: z.ZodLiteral<false>;
|
|
30
8
|
properties: z.ZodObject<Pick<{
|
|
31
9
|
online: z.ZodBoolean;
|
|
@@ -110,6 +88,30 @@ export declare const unmanaged_device: z.ZodObject<{
|
|
|
110
88
|
online_access_codes_enabled?: boolean | undefined;
|
|
111
89
|
offline_access_codes_enabled?: boolean | undefined;
|
|
112
90
|
}>;
|
|
91
|
+
device_type: z.ZodUnion<[z.ZodEnum<["akuvox_lock" | "august_lock" | "brivo_access_point" | "butterflymx_panel" | "avigilon_alta_entry" | "doorking_lock" | "genie_door" | "igloo_lock" | "linear_lock" | "lockly_lock" | "kwikset_lock" | "nuki_lock" | "salto_lock" | "schlage_lock" | "seam_relay" | "smartthings_lock" | "wyze_lock" | "yale_lock" | "two_n_intercom" | "controlbyweb_device" | "ttlock_lock" | "igloohome_lock" | "hubitat_lock" | "four_suites_door" | "dormakaba_oracode_door" | "tedee_lock"]>, z.ZodEnum<["noiseaware_activity_zone" | "minut_sensor"]>, z.ZodEnum<["ecobee_thermostat" | "nest_thermostat" | "honeywell_thermostat"]>, z.ZodEnum<["ios_phone" | "android_phone"]>]>;
|
|
92
|
+
capabilities_supported: z.ZodArray<z.ZodEnum<["access_code", "lock", "noise_detection", "thermostat", "battery", "phone"]>, "many">;
|
|
93
|
+
errors: z.ZodArray<z.ZodObject<{
|
|
94
|
+
error_code: z.ZodString;
|
|
95
|
+
message: z.ZodString;
|
|
96
|
+
}, "strip", z.ZodTypeAny, {
|
|
97
|
+
message: string;
|
|
98
|
+
error_code: string;
|
|
99
|
+
}, {
|
|
100
|
+
message: string;
|
|
101
|
+
error_code: string;
|
|
102
|
+
}>, "many">;
|
|
103
|
+
warnings: z.ZodArray<z.ZodObject<{
|
|
104
|
+
warning_code: z.ZodString;
|
|
105
|
+
message: z.ZodString;
|
|
106
|
+
}, "strip", z.ZodTypeAny, {
|
|
107
|
+
message: string;
|
|
108
|
+
warning_code: string;
|
|
109
|
+
}, {
|
|
110
|
+
message: string;
|
|
111
|
+
warning_code: string;
|
|
112
|
+
}>, "many">;
|
|
113
|
+
can_remotely_unlock: z.ZodOptional<z.ZodBoolean>;
|
|
114
|
+
can_program_online_access_codes: z.ZodOptional<z.ZodBoolean>;
|
|
113
115
|
}, "strip", z.ZodTypeAny, {
|
|
114
116
|
connected_account_id: string;
|
|
115
117
|
workspace_id: string;
|
|
@@ -147,6 +149,8 @@ export declare const unmanaged_device: z.ZodObject<{
|
|
|
147
149
|
message: string;
|
|
148
150
|
warning_code: string;
|
|
149
151
|
}[];
|
|
152
|
+
can_remotely_unlock?: boolean | undefined;
|
|
153
|
+
can_program_online_access_codes?: boolean | undefined;
|
|
150
154
|
}, {
|
|
151
155
|
connected_account_id: string;
|
|
152
156
|
workspace_id: string;
|
|
@@ -184,5 +188,7 @@ export declare const unmanaged_device: z.ZodObject<{
|
|
|
184
188
|
message: string;
|
|
185
189
|
warning_code: string;
|
|
186
190
|
}[];
|
|
191
|
+
can_remotely_unlock?: boolean | undefined;
|
|
192
|
+
can_program_online_access_codes?: boolean | undefined;
|
|
187
193
|
}>;
|
|
188
194
|
export type UnmanagedDevice = z.infer<typeof unmanaged_device>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import { schemas as devicedb_schemas } from '../../../../../../devicedb.js';
|
|
2
3
|
import { common_device_properties, managed_device } from './managed-device.js';
|
|
3
4
|
export const unmanaged_device = managed_device
|
|
4
5
|
.pick({
|
|
@@ -25,5 +26,6 @@ export const unmanaged_device = managed_device
|
|
|
25
26
|
offline_access_codes_enabled: true,
|
|
26
27
|
model: true,
|
|
27
28
|
}),
|
|
28
|
-
})
|
|
29
|
+
})
|
|
30
|
+
.merge(devicedb_schemas.device_capability_flags);
|
|
29
31
|
//# sourceMappingURL=unmanaged-device.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"unmanaged-device.js","sourceRoot":"","sources":["../../../../../../src/lib/seam/connect/unstable/models/devices/unmanaged-device.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,wBAAwB,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAA;AAE9E,MAAM,CAAC,MAAM,gBAAgB,GAAG,cAAc;KAC3C,IAAI,CAAC;IACJ,SAAS,EAAE,IAAI;IACf,WAAW,EAAE,IAAI;IACjB,oBAAoB,EAAE,IAAI;IAC1B,sBAAsB,EAAE,IAAI;IAC5B,YAAY,EAAE,IAAI;IAClB,MAAM,EAAE,IAAI;IACZ,QAAQ,EAAE,IAAI;IACd,UAAU,EAAE,IAAI;CACjB,CAAC;KACD,MAAM,CAAC;IACN,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC;IAC5B,UAAU,EAAE,wBAAwB,CAAC,IAAI,CAAC;QACxC,IAAI,EAAE,IAAI;QACV,MAAM,EAAE,IAAI;QACZ,YAAY,EAAE,IAAI;QAClB,SAAS,EAAE,IAAI;QACf,cAAc,EAAE,IAAI;QACpB,aAAa,EAAE,IAAI;QACnB,OAAO,EAAE,IAAI;QACb,2BAA2B,EAAE,IAAI;QACjC,4BAA4B,EAAE,IAAI;QAClC,KAAK,EAAE,IAAI;KACZ,CAAC;CACH,CAAC,CAAA"}
|
|
1
|
+
{"version":3,"file":"unmanaged-device.js","sourceRoot":"","sources":["../../../../../../src/lib/seam/connect/unstable/models/devices/unmanaged-device.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,yBAAyB,CAAA;AAErE,OAAO,EAAE,wBAAwB,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAA;AAE9E,MAAM,CAAC,MAAM,gBAAgB,GAAG,cAAc;KAC3C,IAAI,CAAC;IACJ,SAAS,EAAE,IAAI;IACf,WAAW,EAAE,IAAI;IACjB,oBAAoB,EAAE,IAAI;IAC1B,sBAAsB,EAAE,IAAI;IAC5B,YAAY,EAAE,IAAI;IAClB,MAAM,EAAE,IAAI;IACZ,QAAQ,EAAE,IAAI;IACd,UAAU,EAAE,IAAI;CACjB,CAAC;KACD,MAAM,CAAC;IACN,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC;IAC5B,UAAU,EAAE,wBAAwB,CAAC,IAAI,CAAC;QACxC,IAAI,EAAE,IAAI;QACV,MAAM,EAAE,IAAI;QACZ,YAAY,EAAE,IAAI;QAClB,SAAS,EAAE,IAAI;QACf,cAAc,EAAE,IAAI;QACpB,aAAa,EAAE,IAAI;QACnB,OAAO,EAAE,IAAI;QACb,2BAA2B,EAAE,IAAI;QACjC,4BAA4B,EAAE,IAAI;QAClC,KAAK,EAAE,IAAI;KACZ,CAAC;CACH,CAAC;KACD,KAAK,CAAC,gBAAgB,CAAC,uBAAuB,CAAC,CAAA"}
|
package/package.json
CHANGED
|
@@ -2010,6 +2010,8 @@ export default {
|
|
|
2010
2010
|
},
|
|
2011
2011
|
unmanaged_device: {
|
|
2012
2012
|
properties: {
|
|
2013
|
+
can_program_online_access_codes: { type: 'boolean' },
|
|
2014
|
+
can_remotely_unlock: { type: 'boolean' },
|
|
2013
2015
|
capabilities_supported: {
|
|
2014
2016
|
description:
|
|
2015
2017
|
'Collection of capabilities that the device supports when connected to Seam. Values are "access_code," which indicates that the device can manage and utilize digital PIN codes for secure access; "lock," which indicates that the device controls a door locking mechanism, enabling the remote opening and closing of doors and other entry points; "noise_detection," which indicates that the device supports monitoring and responding to ambient noise levels; "thermostat," which indicates that the device can regulate and adjust indoor temperatures; and "battery," which indicates that the device can manage battery life and health.',
|
|
@@ -11540,76 +11542,23 @@ export default {
|
|
|
11540
11542
|
},
|
|
11541
11543
|
},
|
|
11542
11544
|
'/user_identities/list': {
|
|
11543
|
-
|
|
11544
|
-
operationId: '
|
|
11545
|
-
|
|
11546
|
-
|
|
11547
|
-
|
|
11548
|
-
|
|
11549
|
-
|
|
11550
|
-
|
|
11551
|
-
|
|
11552
|
-
|
|
11553
|
-
items: {
|
|
11554
|
-
properties: {
|
|
11555
|
-
created_at: { format: 'date-time', type: 'string' },
|
|
11556
|
-
display_name: { minLength: 1, type: 'string' },
|
|
11557
|
-
email_address: {
|
|
11558
|
-
format: 'email',
|
|
11559
|
-
nullable: true,
|
|
11560
|
-
type: 'string',
|
|
11561
|
-
},
|
|
11562
|
-
full_name: {
|
|
11563
|
-
minLength: 1,
|
|
11564
|
-
nullable: true,
|
|
11565
|
-
type: 'string',
|
|
11566
|
-
},
|
|
11567
|
-
phone_number: { nullable: true, type: 'string' },
|
|
11568
|
-
user_identity_id: { format: 'uuid', type: 'string' },
|
|
11569
|
-
user_identity_key: {
|
|
11570
|
-
minLength: 1,
|
|
11571
|
-
nullable: true,
|
|
11572
|
-
type: 'string',
|
|
11573
|
-
},
|
|
11574
|
-
workspace_id: { format: 'uuid', type: 'string' },
|
|
11575
|
-
},
|
|
11576
|
-
required: [
|
|
11577
|
-
'user_identity_id',
|
|
11578
|
-
'user_identity_key',
|
|
11579
|
-
'email_address',
|
|
11580
|
-
'phone_number',
|
|
11581
|
-
'display_name',
|
|
11582
|
-
'full_name',
|
|
11583
|
-
'created_at',
|
|
11584
|
-
'workspace_id',
|
|
11585
|
-
],
|
|
11586
|
-
type: 'object',
|
|
11587
|
-
},
|
|
11588
|
-
type: 'array',
|
|
11589
|
-
},
|
|
11545
|
+
post: {
|
|
11546
|
+
operationId: 'userIdentitiesListPost',
|
|
11547
|
+
requestBody: {
|
|
11548
|
+
content: {
|
|
11549
|
+
'application/json': {
|
|
11550
|
+
schema: {
|
|
11551
|
+
properties: {
|
|
11552
|
+
credential_manager_acs_system_id: {
|
|
11553
|
+
format: 'uuid',
|
|
11554
|
+
type: 'string',
|
|
11590
11555
|
},
|
|
11591
|
-
required: ['user_identities', 'ok'],
|
|
11592
|
-
type: 'object',
|
|
11593
11556
|
},
|
|
11557
|
+
type: 'object',
|
|
11594
11558
|
},
|
|
11595
11559
|
},
|
|
11596
|
-
description: 'OK',
|
|
11597
11560
|
},
|
|
11598
|
-
400: { description: 'Bad Request' },
|
|
11599
|
-
401: { description: 'Unauthorized' },
|
|
11600
11561
|
},
|
|
11601
|
-
security: [
|
|
11602
|
-
{ api_key: [] },
|
|
11603
|
-
{ client_session: [] },
|
|
11604
|
-
{ pat_with_workspace: [] },
|
|
11605
|
-
{ console_session: [] },
|
|
11606
|
-
],
|
|
11607
|
-
summary: '/user_identities/list',
|
|
11608
|
-
tags: ['/user_identities'],
|
|
11609
|
-
'x-fern-ignore': true,
|
|
11610
|
-
},
|
|
11611
|
-
post: {
|
|
11612
|
-
operationId: 'userIdentitiesListPost',
|
|
11613
11562
|
responses: {
|
|
11614
11563
|
200: {
|
|
11615
11564
|
content: {
|
|
@@ -3787,6 +3787,8 @@ export interface Routes {
|
|
|
3787
3787
|
accessory_keypad_supported?: boolean | undefined
|
|
3788
3788
|
}
|
|
3789
3789
|
}
|
|
3790
|
+
can_remotely_unlock?: boolean | undefined
|
|
3791
|
+
can_program_online_access_codes?: boolean | undefined
|
|
3790
3792
|
}
|
|
3791
3793
|
}
|
|
3792
3794
|
}
|
|
@@ -4015,6 +4017,8 @@ export interface Routes {
|
|
|
4015
4017
|
accessory_keypad_supported?: boolean | undefined
|
|
4016
4018
|
}
|
|
4017
4019
|
}
|
|
4020
|
+
can_remotely_unlock?: boolean | undefined
|
|
4021
|
+
can_program_online_access_codes?: boolean | undefined
|
|
4018
4022
|
}>
|
|
4019
4023
|
}
|
|
4020
4024
|
}
|
|
@@ -9495,7 +9499,9 @@ export interface Routes {
|
|
|
9495
9499
|
method: 'GET' | 'POST'
|
|
9496
9500
|
queryParams: {}
|
|
9497
9501
|
jsonBody: {}
|
|
9498
|
-
commonParams: {
|
|
9502
|
+
commonParams: {
|
|
9503
|
+
credential_manager_acs_system_id?: string | undefined
|
|
9504
|
+
}
|
|
9499
9505
|
formData: {}
|
|
9500
9506
|
jsonResponse: {
|
|
9501
9507
|
user_identities: Array<{
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod'
|
|
2
2
|
|
|
3
|
+
import { schemas as devicedb_schemas } from '@seamapi/types/devicedb'
|
|
4
|
+
|
|
3
5
|
import { common_device_properties, managed_device } from './managed-device.js'
|
|
4
6
|
|
|
5
7
|
export const unmanaged_device = managed_device
|
|
@@ -28,5 +30,6 @@ export const unmanaged_device = managed_device
|
|
|
28
30
|
model: true,
|
|
29
31
|
}),
|
|
30
32
|
})
|
|
33
|
+
.merge(devicedb_schemas.device_capability_flags)
|
|
31
34
|
|
|
32
35
|
export type UnmanagedDevice = z.infer<typeof unmanaged_device>
|