@seamapi/types 1.207.0 → 1.209.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 +278 -2
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +1699 -432
- package/lib/seam/connect/models/acs/acs-user.d.ts +64 -0
- package/lib/seam/connect/models/acs/acs-user.js +15 -0
- package/lib/seam/connect/models/acs/acs-user.js.map +1 -1
- package/lib/seam/connect/openapi.d.ts +174 -0
- package/lib/seam/connect/openapi.js +260 -0
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +1293 -223
- package/package.json +1 -1
- package/src/lib/seam/connect/models/acs/acs-user.ts +22 -0
- package/src/lib/seam/connect/openapi.ts +261 -0
- package/src/lib/seam/connect/route-types.ts +1737 -94
|
@@ -1,8 +1,62 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const acs_user_external_type: z.ZodEnum<["pti_user", "brivo_user", "hid_credential_manager_user", "salto_site_user", "latch_user"]>;
|
|
3
3
|
export type AcsUserExternalType = z.infer<typeof acs_user_external_type>;
|
|
4
|
+
export declare const acs_users_warning_map: z.ZodObject<{
|
|
5
|
+
being_deleted: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
6
|
+
message: z.ZodString;
|
|
7
|
+
created_at: z.ZodString;
|
|
8
|
+
warning_code: z.ZodLiteral<"being_deleted">;
|
|
9
|
+
}, "strip", z.ZodTypeAny, {
|
|
10
|
+
message: string;
|
|
11
|
+
warning_code: "being_deleted";
|
|
12
|
+
created_at: string;
|
|
13
|
+
}, {
|
|
14
|
+
message: string;
|
|
15
|
+
warning_code: "being_deleted";
|
|
16
|
+
created_at: string;
|
|
17
|
+
}>>>;
|
|
18
|
+
}, "strip", z.ZodTypeAny, {
|
|
19
|
+
being_deleted?: {
|
|
20
|
+
message: string;
|
|
21
|
+
warning_code: "being_deleted";
|
|
22
|
+
created_at: string;
|
|
23
|
+
} | null | undefined;
|
|
24
|
+
}, {
|
|
25
|
+
being_deleted?: {
|
|
26
|
+
message: string;
|
|
27
|
+
warning_code: "being_deleted";
|
|
28
|
+
created_at: string;
|
|
29
|
+
} | null | undefined;
|
|
30
|
+
}>;
|
|
31
|
+
export declare const acs_users_warning: z.ZodObject<{
|
|
32
|
+
message: z.ZodString;
|
|
33
|
+
created_at: z.ZodString;
|
|
34
|
+
warning_code: z.ZodLiteral<"being_deleted">;
|
|
35
|
+
}, "strip", z.ZodTypeAny, {
|
|
36
|
+
message: string;
|
|
37
|
+
warning_code: "being_deleted";
|
|
38
|
+
created_at: string;
|
|
39
|
+
}, {
|
|
40
|
+
message: string;
|
|
41
|
+
warning_code: "being_deleted";
|
|
42
|
+
created_at: string;
|
|
43
|
+
}>;
|
|
44
|
+
export type AcsUsersWarningMap = z.infer<typeof acs_users_warning_map>;
|
|
4
45
|
export declare const acs_user: z.ZodObject<{
|
|
5
46
|
created_at: z.ZodString;
|
|
47
|
+
warnings: z.ZodArray<z.ZodObject<{
|
|
48
|
+
message: z.ZodString;
|
|
49
|
+
created_at: z.ZodString;
|
|
50
|
+
warning_code: z.ZodLiteral<"being_deleted">;
|
|
51
|
+
}, "strip", z.ZodTypeAny, {
|
|
52
|
+
message: string;
|
|
53
|
+
warning_code: "being_deleted";
|
|
54
|
+
created_at: string;
|
|
55
|
+
}, {
|
|
56
|
+
message: string;
|
|
57
|
+
warning_code: "being_deleted";
|
|
58
|
+
created_at: string;
|
|
59
|
+
}>, "many">;
|
|
6
60
|
display_name: z.ZodString;
|
|
7
61
|
workspace_id: z.ZodString;
|
|
8
62
|
acs_system_id: z.ZodString;
|
|
@@ -33,6 +87,11 @@ export declare const acs_user: z.ZodObject<{
|
|
|
33
87
|
phone_number: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
34
88
|
}, "strip", z.ZodTypeAny, {
|
|
35
89
|
created_at: string;
|
|
90
|
+
warnings: {
|
|
91
|
+
message: string;
|
|
92
|
+
warning_code: "being_deleted";
|
|
93
|
+
created_at: string;
|
|
94
|
+
}[];
|
|
36
95
|
display_name: string;
|
|
37
96
|
workspace_id: string;
|
|
38
97
|
acs_system_id: string;
|
|
@@ -57,6 +116,11 @@ export declare const acs_user: z.ZodObject<{
|
|
|
57
116
|
phone_number?: string | undefined;
|
|
58
117
|
}, {
|
|
59
118
|
created_at: string;
|
|
119
|
+
warnings: {
|
|
120
|
+
message: string;
|
|
121
|
+
warning_code: "being_deleted";
|
|
122
|
+
created_at: string;
|
|
123
|
+
}[];
|
|
60
124
|
display_name: string;
|
|
61
125
|
workspace_id: string;
|
|
62
126
|
acs_system_id: string;
|
|
@@ -8,6 +8,20 @@ export const acs_user_external_type = z.enum([
|
|
|
8
8
|
'salto_site_user',
|
|
9
9
|
'latch_user',
|
|
10
10
|
]);
|
|
11
|
+
const common_acs_users_warning = z.object({
|
|
12
|
+
created_at: z.string().datetime(),
|
|
13
|
+
message: z.string(),
|
|
14
|
+
});
|
|
15
|
+
const acs_users_being_deleted = common_acs_users_warning.extend({
|
|
16
|
+
warning_code: z.literal('being_deleted'),
|
|
17
|
+
});
|
|
18
|
+
export const acs_users_warning_map = z.object({
|
|
19
|
+
being_deleted: acs_users_being_deleted.optional().nullable(),
|
|
20
|
+
});
|
|
21
|
+
export const acs_users_warning =
|
|
22
|
+
// TODO: once we have more than one warning we should use z.union
|
|
23
|
+
// z.union([
|
|
24
|
+
acs_users_being_deleted;
|
|
11
25
|
const user_fields = z.object({
|
|
12
26
|
full_name: z.string().optional(),
|
|
13
27
|
email: z.string().email().optional().describe(`
|
|
@@ -39,6 +53,7 @@ export const acs_user = z
|
|
|
39
53
|
.datetime()
|
|
40
54
|
.optional(),
|
|
41
55
|
is_latest_desired_state_synced_with_provider: z.boolean().optional(),
|
|
56
|
+
warnings: z.array(acs_users_warning),
|
|
42
57
|
})
|
|
43
58
|
.merge(user_fields);
|
|
44
59
|
//# sourceMappingURL=acs-user.js.map
|
|
@@ -1 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,YAAY,EAAE,CAAC,CAAC,OAAO,EAAE;IACzB,eAAe,EAAE,QAAQ,CAAC,QAAQ,EAAE;IACpC,gBAAgB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACvC,uBAAuB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IACzD,2BAA2B,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAC7D,0BAA0B,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAC5D,4CAA4C,EAAE,CAAC;SAC5C,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,EAAE;IACb,4CAA4C,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IACpE,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,iBAAiB,CAAC;CACrC,CAAC;KACD,KAAK,CAAC,WAAW,CAAC,CAAA"}
|
|
@@ -687,6 +687,26 @@ declare const _default: {
|
|
|
687
687
|
nullable: boolean;
|
|
688
688
|
type: string;
|
|
689
689
|
};
|
|
690
|
+
warnings: {
|
|
691
|
+
items: {
|
|
692
|
+
properties: {
|
|
693
|
+
created_at: {
|
|
694
|
+
format: string;
|
|
695
|
+
type: string;
|
|
696
|
+
};
|
|
697
|
+
message: {
|
|
698
|
+
type: string;
|
|
699
|
+
};
|
|
700
|
+
warning_code: {
|
|
701
|
+
enum: string[];
|
|
702
|
+
type: string;
|
|
703
|
+
};
|
|
704
|
+
};
|
|
705
|
+
required: string[];
|
|
706
|
+
type: string;
|
|
707
|
+
};
|
|
708
|
+
type: string;
|
|
709
|
+
};
|
|
690
710
|
workspace_id: {
|
|
691
711
|
format: string;
|
|
692
712
|
type: string;
|
|
@@ -11891,6 +11911,160 @@ declare const _default: {
|
|
|
11891
11911
|
'x-fern-sdk-return-value': string;
|
|
11892
11912
|
};
|
|
11893
11913
|
};
|
|
11914
|
+
'/noise_sensors/list': {
|
|
11915
|
+
post: {
|
|
11916
|
+
operationId: string;
|
|
11917
|
+
requestBody: {
|
|
11918
|
+
content: {
|
|
11919
|
+
'application/json': {
|
|
11920
|
+
schema: {
|
|
11921
|
+
properties: {
|
|
11922
|
+
connect_webview_id: {
|
|
11923
|
+
format: string;
|
|
11924
|
+
type: string;
|
|
11925
|
+
};
|
|
11926
|
+
connected_account_id: {
|
|
11927
|
+
description: string;
|
|
11928
|
+
format: string;
|
|
11929
|
+
type: string;
|
|
11930
|
+
};
|
|
11931
|
+
connected_account_ids: {
|
|
11932
|
+
items: {
|
|
11933
|
+
format: string;
|
|
11934
|
+
type: string;
|
|
11935
|
+
};
|
|
11936
|
+
type: string;
|
|
11937
|
+
};
|
|
11938
|
+
created_before: {
|
|
11939
|
+
format: string;
|
|
11940
|
+
type: string;
|
|
11941
|
+
};
|
|
11942
|
+
custom_metadata_has: {
|
|
11943
|
+
additionalProperties: {
|
|
11944
|
+
oneOf: {
|
|
11945
|
+
type: string;
|
|
11946
|
+
}[];
|
|
11947
|
+
};
|
|
11948
|
+
type: string;
|
|
11949
|
+
};
|
|
11950
|
+
device_ids: {
|
|
11951
|
+
items: {
|
|
11952
|
+
format: string;
|
|
11953
|
+
type: string;
|
|
11954
|
+
};
|
|
11955
|
+
type: string;
|
|
11956
|
+
};
|
|
11957
|
+
device_type: {
|
|
11958
|
+
oneOf: {
|
|
11959
|
+
enum: string[];
|
|
11960
|
+
type: string;
|
|
11961
|
+
}[];
|
|
11962
|
+
};
|
|
11963
|
+
device_types: {
|
|
11964
|
+
items: {
|
|
11965
|
+
oneOf: {
|
|
11966
|
+
enum: string[];
|
|
11967
|
+
type: string;
|
|
11968
|
+
}[];
|
|
11969
|
+
};
|
|
11970
|
+
type: string;
|
|
11971
|
+
};
|
|
11972
|
+
exclude_if: {
|
|
11973
|
+
items: {
|
|
11974
|
+
enum: string[];
|
|
11975
|
+
type: string;
|
|
11976
|
+
};
|
|
11977
|
+
type: string;
|
|
11978
|
+
};
|
|
11979
|
+
include_if: {
|
|
11980
|
+
items: {
|
|
11981
|
+
enum: string[];
|
|
11982
|
+
type: string;
|
|
11983
|
+
};
|
|
11984
|
+
type: string;
|
|
11985
|
+
};
|
|
11986
|
+
limit: {
|
|
11987
|
+
default: number;
|
|
11988
|
+
format: string;
|
|
11989
|
+
type: string;
|
|
11990
|
+
};
|
|
11991
|
+
manufacturer: {
|
|
11992
|
+
enum: string[];
|
|
11993
|
+
type: string;
|
|
11994
|
+
};
|
|
11995
|
+
user_identifier_key: {
|
|
11996
|
+
type: string;
|
|
11997
|
+
};
|
|
11998
|
+
};
|
|
11999
|
+
type: string;
|
|
12000
|
+
};
|
|
12001
|
+
};
|
|
12002
|
+
};
|
|
12003
|
+
};
|
|
12004
|
+
responses: {
|
|
12005
|
+
200: {
|
|
12006
|
+
content: {
|
|
12007
|
+
'application/json': {
|
|
12008
|
+
schema: {
|
|
12009
|
+
properties: {
|
|
12010
|
+
devices: {
|
|
12011
|
+
items: {
|
|
12012
|
+
$ref: string;
|
|
12013
|
+
};
|
|
12014
|
+
type: string;
|
|
12015
|
+
};
|
|
12016
|
+
noise_sensors: {
|
|
12017
|
+
items: {
|
|
12018
|
+
$ref: string;
|
|
12019
|
+
};
|
|
12020
|
+
type: string;
|
|
12021
|
+
};
|
|
12022
|
+
ok: {
|
|
12023
|
+
type: string;
|
|
12024
|
+
};
|
|
12025
|
+
};
|
|
12026
|
+
required: string[];
|
|
12027
|
+
type: string;
|
|
12028
|
+
};
|
|
12029
|
+
};
|
|
12030
|
+
};
|
|
12031
|
+
description: string;
|
|
12032
|
+
};
|
|
12033
|
+
400: {
|
|
12034
|
+
description: string;
|
|
12035
|
+
};
|
|
12036
|
+
401: {
|
|
12037
|
+
description: string;
|
|
12038
|
+
};
|
|
12039
|
+
};
|
|
12040
|
+
security: ({
|
|
12041
|
+
client_session: never[];
|
|
12042
|
+
pat_with_workspace?: never;
|
|
12043
|
+
console_session?: never;
|
|
12044
|
+
api_key?: never;
|
|
12045
|
+
} | {
|
|
12046
|
+
pat_with_workspace: never[];
|
|
12047
|
+
client_session?: never;
|
|
12048
|
+
console_session?: never;
|
|
12049
|
+
api_key?: never;
|
|
12050
|
+
} | {
|
|
12051
|
+
console_session: never[];
|
|
12052
|
+
client_session?: never;
|
|
12053
|
+
pat_with_workspace?: never;
|
|
12054
|
+
api_key?: never;
|
|
12055
|
+
} | {
|
|
12056
|
+
api_key: never[];
|
|
12057
|
+
client_session?: never;
|
|
12058
|
+
pat_with_workspace?: never;
|
|
12059
|
+
console_session?: never;
|
|
12060
|
+
})[];
|
|
12061
|
+
summary: string;
|
|
12062
|
+
tags: string[];
|
|
12063
|
+
'x-fern-sdk-group-name': string[];
|
|
12064
|
+
'x-fern-sdk-method-name': string;
|
|
12065
|
+
'x-fern-sdk-return-value': string;
|
|
12066
|
+
};
|
|
12067
|
+
};
|
|
11894
12068
|
'/noise_sensors/noise_thresholds/create': {
|
|
11895
12069
|
post: {
|
|
11896
12070
|
operationId: string;
|
|
@@ -622,6 +622,18 @@ export default {
|
|
|
622
622
|
user_identity_full_name: { nullable: true, type: 'string' },
|
|
623
623
|
user_identity_id: { type: 'string' },
|
|
624
624
|
user_identity_phone_number: { nullable: true, type: 'string' },
|
|
625
|
+
warnings: {
|
|
626
|
+
items: {
|
|
627
|
+
properties: {
|
|
628
|
+
created_at: { format: 'date-time', type: 'string' },
|
|
629
|
+
message: { type: 'string' },
|
|
630
|
+
warning_code: { enum: ['being_deleted'], type: 'string' },
|
|
631
|
+
},
|
|
632
|
+
required: ['created_at', 'message', 'warning_code'],
|
|
633
|
+
type: 'object',
|
|
634
|
+
},
|
|
635
|
+
type: 'array',
|
|
636
|
+
},
|
|
625
637
|
workspace_id: { format: 'uuid', type: 'string' },
|
|
626
638
|
},
|
|
627
639
|
required: [
|
|
@@ -631,6 +643,7 @@ export default {
|
|
|
631
643
|
'created_at',
|
|
632
644
|
'display_name',
|
|
633
645
|
'is_suspended',
|
|
646
|
+
'warnings',
|
|
634
647
|
],
|
|
635
648
|
type: 'object',
|
|
636
649
|
},
|
|
@@ -10228,6 +10241,253 @@ export default {
|
|
|
10228
10241
|
'x-fern-sdk-return-value': 'networks',
|
|
10229
10242
|
},
|
|
10230
10243
|
},
|
|
10244
|
+
'/noise_sensors/list': {
|
|
10245
|
+
post: {
|
|
10246
|
+
operationId: 'noiseSensorsListPost',
|
|
10247
|
+
requestBody: {
|
|
10248
|
+
content: {
|
|
10249
|
+
'application/json': {
|
|
10250
|
+
schema: {
|
|
10251
|
+
properties: {
|
|
10252
|
+
connect_webview_id: { format: 'uuid', type: 'string' },
|
|
10253
|
+
connected_account_id: {
|
|
10254
|
+
description: 'List all devices owned by this connected account',
|
|
10255
|
+
format: 'uuid',
|
|
10256
|
+
type: 'string',
|
|
10257
|
+
},
|
|
10258
|
+
connected_account_ids: {
|
|
10259
|
+
items: { format: 'uuid', type: 'string' },
|
|
10260
|
+
type: 'array',
|
|
10261
|
+
},
|
|
10262
|
+
created_before: { format: 'date-time', type: 'string' },
|
|
10263
|
+
custom_metadata_has: {
|
|
10264
|
+
additionalProperties: {
|
|
10265
|
+
oneOf: [{ type: 'string' }, { type: 'boolean' }],
|
|
10266
|
+
},
|
|
10267
|
+
type: 'object',
|
|
10268
|
+
},
|
|
10269
|
+
device_ids: {
|
|
10270
|
+
items: { format: 'uuid', type: 'string' },
|
|
10271
|
+
type: 'array',
|
|
10272
|
+
},
|
|
10273
|
+
device_type: {
|
|
10274
|
+
oneOf: [
|
|
10275
|
+
{
|
|
10276
|
+
enum: [
|
|
10277
|
+
'akuvox_lock',
|
|
10278
|
+
'august_lock',
|
|
10279
|
+
'brivo_access_point',
|
|
10280
|
+
'butterflymx_panel',
|
|
10281
|
+
'avigilon_alta_entry',
|
|
10282
|
+
'doorking_lock',
|
|
10283
|
+
'genie_door',
|
|
10284
|
+
'igloo_lock',
|
|
10285
|
+
'linear_lock',
|
|
10286
|
+
'lockly_lock',
|
|
10287
|
+
'kwikset_lock',
|
|
10288
|
+
'nuki_lock',
|
|
10289
|
+
'salto_lock',
|
|
10290
|
+
'schlage_lock',
|
|
10291
|
+
'seam_relay',
|
|
10292
|
+
'smartthings_lock',
|
|
10293
|
+
'wyze_lock',
|
|
10294
|
+
'yale_lock',
|
|
10295
|
+
'two_n_intercom',
|
|
10296
|
+
'controlbyweb_device',
|
|
10297
|
+
'ttlock_lock',
|
|
10298
|
+
'igloohome_lock',
|
|
10299
|
+
'hubitat_lock',
|
|
10300
|
+
'four_suites_door',
|
|
10301
|
+
'dormakaba_oracode_door',
|
|
10302
|
+
'tedee_lock',
|
|
10303
|
+
],
|
|
10304
|
+
type: 'string',
|
|
10305
|
+
},
|
|
10306
|
+
{
|
|
10307
|
+
enum: ['noiseaware_activity_zone', 'minut_sensor'],
|
|
10308
|
+
type: 'string',
|
|
10309
|
+
},
|
|
10310
|
+
{
|
|
10311
|
+
enum: [
|
|
10312
|
+
'ecobee_thermostat',
|
|
10313
|
+
'nest_thermostat',
|
|
10314
|
+
'honeywell_resideo_thermostat',
|
|
10315
|
+
],
|
|
10316
|
+
type: 'string',
|
|
10317
|
+
},
|
|
10318
|
+
{ enum: ['ios_phone', 'android_phone'], type: 'string' },
|
|
10319
|
+
],
|
|
10320
|
+
},
|
|
10321
|
+
device_types: {
|
|
10322
|
+
items: {
|
|
10323
|
+
oneOf: [
|
|
10324
|
+
{
|
|
10325
|
+
enum: [
|
|
10326
|
+
'akuvox_lock',
|
|
10327
|
+
'august_lock',
|
|
10328
|
+
'brivo_access_point',
|
|
10329
|
+
'butterflymx_panel',
|
|
10330
|
+
'avigilon_alta_entry',
|
|
10331
|
+
'doorking_lock',
|
|
10332
|
+
'genie_door',
|
|
10333
|
+
'igloo_lock',
|
|
10334
|
+
'linear_lock',
|
|
10335
|
+
'lockly_lock',
|
|
10336
|
+
'kwikset_lock',
|
|
10337
|
+
'nuki_lock',
|
|
10338
|
+
'salto_lock',
|
|
10339
|
+
'schlage_lock',
|
|
10340
|
+
'seam_relay',
|
|
10341
|
+
'smartthings_lock',
|
|
10342
|
+
'wyze_lock',
|
|
10343
|
+
'yale_lock',
|
|
10344
|
+
'two_n_intercom',
|
|
10345
|
+
'controlbyweb_device',
|
|
10346
|
+
'ttlock_lock',
|
|
10347
|
+
'igloohome_lock',
|
|
10348
|
+
'hubitat_lock',
|
|
10349
|
+
'four_suites_door',
|
|
10350
|
+
'dormakaba_oracode_door',
|
|
10351
|
+
'tedee_lock',
|
|
10352
|
+
],
|
|
10353
|
+
type: 'string',
|
|
10354
|
+
},
|
|
10355
|
+
{
|
|
10356
|
+
enum: ['noiseaware_activity_zone', 'minut_sensor'],
|
|
10357
|
+
type: 'string',
|
|
10358
|
+
},
|
|
10359
|
+
{
|
|
10360
|
+
enum: [
|
|
10361
|
+
'ecobee_thermostat',
|
|
10362
|
+
'nest_thermostat',
|
|
10363
|
+
'honeywell_resideo_thermostat',
|
|
10364
|
+
],
|
|
10365
|
+
type: 'string',
|
|
10366
|
+
},
|
|
10367
|
+
{
|
|
10368
|
+
enum: ['ios_phone', 'android_phone'],
|
|
10369
|
+
type: 'string',
|
|
10370
|
+
},
|
|
10371
|
+
],
|
|
10372
|
+
},
|
|
10373
|
+
type: 'array',
|
|
10374
|
+
},
|
|
10375
|
+
exclude_if: {
|
|
10376
|
+
items: {
|
|
10377
|
+
enum: [
|
|
10378
|
+
'can_remotely_unlock',
|
|
10379
|
+
'can_remotely_lock',
|
|
10380
|
+
'can_program_offline_access_codes',
|
|
10381
|
+
'can_program_online_access_codes',
|
|
10382
|
+
'can_simulate_removal',
|
|
10383
|
+
'can_simulate_connection',
|
|
10384
|
+
'can_simulate_disconnection',
|
|
10385
|
+
],
|
|
10386
|
+
type: 'string',
|
|
10387
|
+
},
|
|
10388
|
+
type: 'array',
|
|
10389
|
+
},
|
|
10390
|
+
include_if: {
|
|
10391
|
+
items: {
|
|
10392
|
+
enum: [
|
|
10393
|
+
'can_remotely_unlock',
|
|
10394
|
+
'can_remotely_lock',
|
|
10395
|
+
'can_program_offline_access_codes',
|
|
10396
|
+
'can_program_online_access_codes',
|
|
10397
|
+
'can_simulate_removal',
|
|
10398
|
+
'can_simulate_connection',
|
|
10399
|
+
'can_simulate_disconnection',
|
|
10400
|
+
],
|
|
10401
|
+
type: 'string',
|
|
10402
|
+
},
|
|
10403
|
+
type: 'array',
|
|
10404
|
+
},
|
|
10405
|
+
limit: { default: 500, format: 'float', type: 'number' },
|
|
10406
|
+
manufacturer: {
|
|
10407
|
+
enum: [
|
|
10408
|
+
'akuvox',
|
|
10409
|
+
'august',
|
|
10410
|
+
'avigilon_alta',
|
|
10411
|
+
'brivo',
|
|
10412
|
+
'butterflymx',
|
|
10413
|
+
'doorking',
|
|
10414
|
+
'four_suites',
|
|
10415
|
+
'genie',
|
|
10416
|
+
'igloo',
|
|
10417
|
+
'keywe',
|
|
10418
|
+
'kwikset',
|
|
10419
|
+
'linear',
|
|
10420
|
+
'lockly',
|
|
10421
|
+
'nuki',
|
|
10422
|
+
'philia',
|
|
10423
|
+
'salto',
|
|
10424
|
+
'samsung',
|
|
10425
|
+
'schlage',
|
|
10426
|
+
'seam',
|
|
10427
|
+
'unknown',
|
|
10428
|
+
'wyze',
|
|
10429
|
+
'yale',
|
|
10430
|
+
'minut',
|
|
10431
|
+
'two_n',
|
|
10432
|
+
'ttlock',
|
|
10433
|
+
'nest',
|
|
10434
|
+
'igloohome',
|
|
10435
|
+
'ecobee',
|
|
10436
|
+
'hubitat',
|
|
10437
|
+
'controlbyweb',
|
|
10438
|
+
'smartthings',
|
|
10439
|
+
'dormakaba_oracode',
|
|
10440
|
+
'tedee',
|
|
10441
|
+
'honeywell_resideo',
|
|
10442
|
+
],
|
|
10443
|
+
type: 'string',
|
|
10444
|
+
},
|
|
10445
|
+
user_identifier_key: { type: 'string' },
|
|
10446
|
+
},
|
|
10447
|
+
type: 'object',
|
|
10448
|
+
},
|
|
10449
|
+
},
|
|
10450
|
+
},
|
|
10451
|
+
},
|
|
10452
|
+
responses: {
|
|
10453
|
+
200: {
|
|
10454
|
+
content: {
|
|
10455
|
+
'application/json': {
|
|
10456
|
+
schema: {
|
|
10457
|
+
properties: {
|
|
10458
|
+
devices: {
|
|
10459
|
+
items: { $ref: '#/components/schemas/device' },
|
|
10460
|
+
type: 'array',
|
|
10461
|
+
},
|
|
10462
|
+
noise_sensors: {
|
|
10463
|
+
items: { $ref: '#/components/schemas/device' },
|
|
10464
|
+
type: 'array',
|
|
10465
|
+
},
|
|
10466
|
+
ok: { type: 'boolean' },
|
|
10467
|
+
},
|
|
10468
|
+
required: ['noise_sensors', 'devices', 'ok'],
|
|
10469
|
+
type: 'object',
|
|
10470
|
+
},
|
|
10471
|
+
},
|
|
10472
|
+
},
|
|
10473
|
+
description: 'OK',
|
|
10474
|
+
},
|
|
10475
|
+
400: { description: 'Bad Request' },
|
|
10476
|
+
401: { description: 'Unauthorized' },
|
|
10477
|
+
},
|
|
10478
|
+
security: [
|
|
10479
|
+
{ client_session: [] },
|
|
10480
|
+
{ pat_with_workspace: [] },
|
|
10481
|
+
{ console_session: [] },
|
|
10482
|
+
{ api_key: [] },
|
|
10483
|
+
],
|
|
10484
|
+
summary: '/noise_sensors/list',
|
|
10485
|
+
tags: ['/noise_sensors'],
|
|
10486
|
+
'x-fern-sdk-group-name': ['noise_sensors'],
|
|
10487
|
+
'x-fern-sdk-method-name': 'list',
|
|
10488
|
+
'x-fern-sdk-return-value': 'devices',
|
|
10489
|
+
},
|
|
10490
|
+
},
|
|
10231
10491
|
'/noise_sensors/noise_thresholds/create': {
|
|
10232
10492
|
post: {
|
|
10233
10493
|
operationId: 'noiseSensorsNoiseThresholdsCreatePost',
|