@seamapi/types 1.271.1 → 1.273.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 +183 -40
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +119 -0
- package/lib/seam/connect/models/acs/acs-access-group.js +23 -8
- package/lib/seam/connect/models/acs/acs-access-group.js.map +1 -1
- package/lib/seam/connect/models/devices/device-metadata.d.ts +5 -0
- package/lib/seam/connect/models/devices/device-metadata.js +1 -0
- package/lib/seam/connect/models/devices/device-metadata.js.map +1 -1
- package/lib/seam/connect/models/devices/device.d.ts +7 -0
- package/lib/seam/connect/models/devices/phone.d.ts +5 -0
- package/lib/seam/connect/models/devices/unmanaged-device.d.ts +5 -0
- package/lib/seam/connect/openapi.d.ts +48 -0
- package/lib/seam/connect/openapi.js +161 -31
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +59 -0
- package/package.json +1 -1
- package/src/lib/seam/connect/models/acs/acs-access-group.ts +31 -8
- package/src/lib/seam/connect/models/devices/device-metadata.ts +1 -0
- package/src/lib/seam/connect/openapi.ts +191 -31
- package/src/lib/seam/connect/route-types.ts +59 -0
|
@@ -3204,7 +3204,9 @@ export interface Routes {
|
|
|
3204
3204
|
queryParams: {};
|
|
3205
3205
|
jsonBody: {};
|
|
3206
3206
|
commonParams: {
|
|
3207
|
+
/** ID of the desired access group. */
|
|
3207
3208
|
acs_access_group_id: string;
|
|
3209
|
+
/** ID of the desired user. */
|
|
3208
3210
|
acs_user_id: string;
|
|
3209
3211
|
};
|
|
3210
3212
|
formData: {};
|
|
@@ -3216,14 +3218,24 @@ export interface Routes {
|
|
|
3216
3218
|
queryParams: {};
|
|
3217
3219
|
jsonBody: {};
|
|
3218
3220
|
commonParams: {
|
|
3221
|
+
/** ID of the desired access group. */
|
|
3219
3222
|
acs_access_group_id: string;
|
|
3220
3223
|
};
|
|
3221
3224
|
formData: {};
|
|
3222
3225
|
jsonResponse: {
|
|
3226
|
+
/**
|
|
3227
|
+
Group that defines the entrances to which a set of users has access and, in some cases, the access schedule for these entrances and users.
|
|
3228
|
+
|
|
3229
|
+
The `acs_access_group` object represents an [access group](https://docs.seam.co/latest/capability-guides/access-systems/assigning-users-to-access-groups) within an [access control system](https://docs.seam.co/latest/capability-guides/access-systems).
|
|
3230
|
+
*/
|
|
3223
3231
|
acs_access_group: {
|
|
3232
|
+
/** ID of the access group. */
|
|
3224
3233
|
acs_access_group_id: string;
|
|
3234
|
+
/** ID of the access control system that contains the access group. */
|
|
3225
3235
|
acs_system_id: string;
|
|
3236
|
+
/** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) that contains the access group. */
|
|
3226
3237
|
workspace_id: string;
|
|
3238
|
+
/** Name of the access group. */
|
|
3227
3239
|
name: string;
|
|
3228
3240
|
/**
|
|
3229
3241
|
* @deprecated use external_type */
|
|
@@ -3232,8 +3244,11 @@ export interface Routes {
|
|
|
3232
3244
|
* @deprecated use external_type_display_name */
|
|
3233
3245
|
access_group_type_display_name: string;
|
|
3234
3246
|
display_name: string;
|
|
3247
|
+
/** Brand-specific terminology for the access group type. */
|
|
3235
3248
|
external_type: 'pti_unit' | 'pti_access_level' | 'salto_access_group' | 'brivo_group';
|
|
3249
|
+
/** Display name that corresponds to the brand-specific terminology for the access group type. */
|
|
3236
3250
|
external_type_display_name: string;
|
|
3251
|
+
/** Date and time at which the access group was created. */
|
|
3237
3252
|
created_at: string;
|
|
3238
3253
|
is_managed: true;
|
|
3239
3254
|
};
|
|
@@ -3245,15 +3260,21 @@ export interface Routes {
|
|
|
3245
3260
|
queryParams: {};
|
|
3246
3261
|
jsonBody: {};
|
|
3247
3262
|
commonParams: {
|
|
3263
|
+
/** ID of the access control system for which you want to retrieve all access groups. */
|
|
3248
3264
|
acs_system_id?: string | undefined;
|
|
3265
|
+
/** ID of the user for which you want to retrieve all access groups. */
|
|
3249
3266
|
acs_user_id?: string | undefined;
|
|
3250
3267
|
};
|
|
3251
3268
|
formData: {};
|
|
3252
3269
|
jsonResponse: {
|
|
3253
3270
|
acs_access_groups: Array<{
|
|
3271
|
+
/** ID of the access group. */
|
|
3254
3272
|
acs_access_group_id: string;
|
|
3273
|
+
/** ID of the access control system that contains the access group. */
|
|
3255
3274
|
acs_system_id: string;
|
|
3275
|
+
/** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) that contains the access group. */
|
|
3256
3276
|
workspace_id: string;
|
|
3277
|
+
/** Name of the access group. */
|
|
3257
3278
|
name: string;
|
|
3258
3279
|
/**
|
|
3259
3280
|
* @deprecated use external_type */
|
|
@@ -3262,8 +3283,11 @@ export interface Routes {
|
|
|
3262
3283
|
* @deprecated use external_type_display_name */
|
|
3263
3284
|
access_group_type_display_name: string;
|
|
3264
3285
|
display_name: string;
|
|
3286
|
+
/** Brand-specific terminology for the access group type. */
|
|
3265
3287
|
external_type: 'pti_unit' | 'pti_access_level' | 'salto_access_group' | 'brivo_group';
|
|
3288
|
+
/** Display name that corresponds to the brand-specific terminology for the access group type. */
|
|
3266
3289
|
external_type_display_name: string;
|
|
3290
|
+
/** Date and time at which the access group was created. */
|
|
3267
3291
|
created_at: string;
|
|
3268
3292
|
is_managed: true;
|
|
3269
3293
|
}>;
|
|
@@ -3275,6 +3299,7 @@ export interface Routes {
|
|
|
3275
3299
|
queryParams: {};
|
|
3276
3300
|
jsonBody: {};
|
|
3277
3301
|
commonParams: {
|
|
3302
|
+
/** ID of the access group for which you want to retrieve all accessible entrances. */
|
|
3278
3303
|
acs_access_group_id: string;
|
|
3279
3304
|
};
|
|
3280
3305
|
formData: {};
|
|
@@ -3325,6 +3350,7 @@ export interface Routes {
|
|
|
3325
3350
|
queryParams: {};
|
|
3326
3351
|
jsonBody: {};
|
|
3327
3352
|
commonParams: {
|
|
3353
|
+
/** ID of the access group for which you want to retrieve all users. */
|
|
3328
3354
|
acs_access_group_id: string;
|
|
3329
3355
|
};
|
|
3330
3356
|
formData: {};
|
|
@@ -3425,7 +3451,9 @@ export interface Routes {
|
|
|
3425
3451
|
queryParams: {};
|
|
3426
3452
|
jsonBody: {};
|
|
3427
3453
|
commonParams: {
|
|
3454
|
+
/** ID of the desired access group. */
|
|
3428
3455
|
acs_access_group_id: string;
|
|
3456
|
+
/** ID of the desired user. */
|
|
3429
3457
|
acs_user_id: string;
|
|
3430
3458
|
};
|
|
3431
3459
|
formData: {};
|
|
@@ -3437,14 +3465,19 @@ export interface Routes {
|
|
|
3437
3465
|
queryParams: {};
|
|
3438
3466
|
jsonBody: {};
|
|
3439
3467
|
commonParams: {
|
|
3468
|
+
/** ID of the desired unmanaged access group. */
|
|
3440
3469
|
acs_access_group_id: string;
|
|
3441
3470
|
};
|
|
3442
3471
|
formData: {};
|
|
3443
3472
|
jsonResponse: {
|
|
3444
3473
|
acs_access_group: {
|
|
3474
|
+
/** ID of the access group. */
|
|
3445
3475
|
acs_access_group_id: string;
|
|
3476
|
+
/** ID of the access control system that contains the access group. */
|
|
3446
3477
|
acs_system_id: string;
|
|
3478
|
+
/** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) that contains the access group. */
|
|
3447
3479
|
workspace_id: string;
|
|
3480
|
+
/** Name of the access group. */
|
|
3448
3481
|
name: string;
|
|
3449
3482
|
/**
|
|
3450
3483
|
* @deprecated use external_type */
|
|
@@ -3453,8 +3486,11 @@ export interface Routes {
|
|
|
3453
3486
|
* @deprecated use external_type_display_name */
|
|
3454
3487
|
access_group_type_display_name: string;
|
|
3455
3488
|
display_name: string;
|
|
3489
|
+
/** Brand-specific terminology for the access group type. */
|
|
3456
3490
|
external_type: 'pti_unit' | 'pti_access_level' | 'salto_access_group' | 'brivo_group';
|
|
3491
|
+
/** Display name that corresponds to the brand-specific terminology for the access group type. */
|
|
3457
3492
|
external_type_display_name: string;
|
|
3493
|
+
/** Date and time at which the access group was created. */
|
|
3458
3494
|
created_at: string;
|
|
3459
3495
|
is_managed: false;
|
|
3460
3496
|
};
|
|
@@ -3466,15 +3502,21 @@ export interface Routes {
|
|
|
3466
3502
|
queryParams: {};
|
|
3467
3503
|
jsonBody: {};
|
|
3468
3504
|
commonParams: {
|
|
3505
|
+
/** ID of the access control system for which you want to retrieve all unmanaged access groups. */
|
|
3469
3506
|
acs_system_id?: string | undefined;
|
|
3507
|
+
/** ID of the user for which you want to retrieve all unmanaged access groups. */
|
|
3470
3508
|
acs_user_id?: string | undefined;
|
|
3471
3509
|
};
|
|
3472
3510
|
formData: {};
|
|
3473
3511
|
jsonResponse: {
|
|
3474
3512
|
acs_access_groups: Array<{
|
|
3513
|
+
/** ID of the access group. */
|
|
3475
3514
|
acs_access_group_id: string;
|
|
3515
|
+
/** ID of the access control system that contains the access group. */
|
|
3476
3516
|
acs_system_id: string;
|
|
3517
|
+
/** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) that contains the access group. */
|
|
3477
3518
|
workspace_id: string;
|
|
3519
|
+
/** Name of the access group. */
|
|
3478
3520
|
name: string;
|
|
3479
3521
|
/**
|
|
3480
3522
|
* @deprecated use external_type */
|
|
@@ -3483,8 +3525,11 @@ export interface Routes {
|
|
|
3483
3525
|
* @deprecated use external_type_display_name */
|
|
3484
3526
|
access_group_type_display_name: string;
|
|
3485
3527
|
display_name: string;
|
|
3528
|
+
/** Brand-specific terminology for the access group type. */
|
|
3486
3529
|
external_type: 'pti_unit' | 'pti_access_level' | 'salto_access_group' | 'brivo_group';
|
|
3530
|
+
/** Display name that corresponds to the brand-specific terminology for the access group type. */
|
|
3487
3531
|
external_type_display_name: string;
|
|
3532
|
+
/** Date and time at which the access group was created. */
|
|
3488
3533
|
created_at: string;
|
|
3489
3534
|
is_managed: false;
|
|
3490
3535
|
}>;
|
|
@@ -4955,6 +5000,7 @@ export interface Routes {
|
|
|
4955
5000
|
nest_device_id: string;
|
|
4956
5001
|
device_name: string;
|
|
4957
5002
|
custom_name: string;
|
|
5003
|
+
display_name?: string | undefined;
|
|
4958
5004
|
} | undefined;
|
|
4959
5005
|
ecobee_metadata?: {
|
|
4960
5006
|
ecobee_device_id: string;
|
|
@@ -8930,6 +8976,7 @@ export interface Routes {
|
|
|
8930
8976
|
nest_device_id: string;
|
|
8931
8977
|
device_name: string;
|
|
8932
8978
|
custom_name: string;
|
|
8979
|
+
display_name?: string | undefined;
|
|
8933
8980
|
} | undefined;
|
|
8934
8981
|
ecobee_metadata?: {
|
|
8935
8982
|
ecobee_device_id: string;
|
|
@@ -9395,6 +9442,7 @@ export interface Routes {
|
|
|
9395
9442
|
nest_device_id: string;
|
|
9396
9443
|
device_name: string;
|
|
9397
9444
|
custom_name: string;
|
|
9445
|
+
display_name?: string | undefined;
|
|
9398
9446
|
} | undefined;
|
|
9399
9447
|
ecobee_metadata?: {
|
|
9400
9448
|
ecobee_device_id: string;
|
|
@@ -10260,6 +10308,7 @@ export interface Routes {
|
|
|
10260
10308
|
nest_device_id: string;
|
|
10261
10309
|
device_name: string;
|
|
10262
10310
|
custom_name: string;
|
|
10311
|
+
display_name?: string | undefined;
|
|
10263
10312
|
} | undefined;
|
|
10264
10313
|
ecobee_metadata?: {
|
|
10265
10314
|
ecobee_device_id: string;
|
|
@@ -10700,6 +10749,7 @@ export interface Routes {
|
|
|
10700
10749
|
nest_device_id: string;
|
|
10701
10750
|
device_name: string;
|
|
10702
10751
|
custom_name: string;
|
|
10752
|
+
display_name?: string | undefined;
|
|
10703
10753
|
} | undefined;
|
|
10704
10754
|
ecobee_metadata?: {
|
|
10705
10755
|
ecobee_device_id: string;
|
|
@@ -11165,6 +11215,7 @@ export interface Routes {
|
|
|
11165
11215
|
nest_device_id: string;
|
|
11166
11216
|
device_name: string;
|
|
11167
11217
|
custom_name: string;
|
|
11218
|
+
display_name?: string | undefined;
|
|
11168
11219
|
} | undefined;
|
|
11169
11220
|
ecobee_metadata?: {
|
|
11170
11221
|
ecobee_device_id: string;
|
|
@@ -11605,6 +11656,7 @@ export interface Routes {
|
|
|
11605
11656
|
nest_device_id: string;
|
|
11606
11657
|
device_name: string;
|
|
11607
11658
|
custom_name: string;
|
|
11659
|
+
display_name?: string | undefined;
|
|
11608
11660
|
} | undefined;
|
|
11609
11661
|
ecobee_metadata?: {
|
|
11610
11662
|
ecobee_device_id: string;
|
|
@@ -13390,6 +13442,7 @@ export interface Routes {
|
|
|
13390
13442
|
nest_device_id: string;
|
|
13391
13443
|
device_name: string;
|
|
13392
13444
|
custom_name: string;
|
|
13445
|
+
display_name?: string | undefined;
|
|
13393
13446
|
} | undefined;
|
|
13394
13447
|
ecobee_metadata?: {
|
|
13395
13448
|
ecobee_device_id: string;
|
|
@@ -13830,6 +13883,7 @@ export interface Routes {
|
|
|
13830
13883
|
nest_device_id: string;
|
|
13831
13884
|
device_name: string;
|
|
13832
13885
|
custom_name: string;
|
|
13886
|
+
display_name?: string | undefined;
|
|
13833
13887
|
} | undefined;
|
|
13834
13888
|
ecobee_metadata?: {
|
|
13835
13889
|
ecobee_device_id: string;
|
|
@@ -17778,6 +17832,7 @@ export interface Routes {
|
|
|
17778
17832
|
nest_device_id: string;
|
|
17779
17833
|
device_name: string;
|
|
17780
17834
|
custom_name: string;
|
|
17835
|
+
display_name?: string | undefined;
|
|
17781
17836
|
} | undefined;
|
|
17782
17837
|
ecobee_metadata?: {
|
|
17783
17838
|
ecobee_device_id: string;
|
|
@@ -19535,6 +19590,7 @@ export interface Routes {
|
|
|
19535
19590
|
nest_device_id: string;
|
|
19536
19591
|
device_name: string;
|
|
19537
19592
|
custom_name: string;
|
|
19593
|
+
display_name?: string | undefined;
|
|
19538
19594
|
} | undefined;
|
|
19539
19595
|
ecobee_metadata?: {
|
|
19540
19596
|
ecobee_device_id: string;
|
|
@@ -19975,6 +20031,7 @@ export interface Routes {
|
|
|
19975
20031
|
nest_device_id: string;
|
|
19976
20032
|
device_name: string;
|
|
19977
20033
|
custom_name: string;
|
|
20034
|
+
display_name?: string | undefined;
|
|
19978
20035
|
} | undefined;
|
|
19979
20036
|
ecobee_metadata?: {
|
|
19980
20037
|
ecobee_device_id: string;
|
|
@@ -22033,6 +22090,7 @@ export interface Routes {
|
|
|
22033
22090
|
nest_device_id: string;
|
|
22034
22091
|
device_name: string;
|
|
22035
22092
|
custom_name: string;
|
|
22093
|
+
display_name?: string | undefined;
|
|
22036
22094
|
} | undefined;
|
|
22037
22095
|
ecobee_metadata?: {
|
|
22038
22096
|
ecobee_device_id: string;
|
|
@@ -22475,6 +22533,7 @@ export interface Routes {
|
|
|
22475
22533
|
nest_device_id: string;
|
|
22476
22534
|
device_name: string;
|
|
22477
22535
|
custom_name: string;
|
|
22536
|
+
display_name?: string | undefined;
|
|
22478
22537
|
} | undefined;
|
|
22479
22538
|
ecobee_metadata?: {
|
|
22480
22539
|
ecobee_device_id: string;
|
package/package.json
CHANGED
|
@@ -13,10 +13,20 @@ export type AcsAccessGroupExternalType = z.infer<
|
|
|
13
13
|
>
|
|
14
14
|
|
|
15
15
|
const common_acs_access_group = z.object({
|
|
16
|
-
acs_access_group_id: z.string().uuid(),
|
|
17
|
-
acs_system_id: z
|
|
18
|
-
|
|
19
|
-
|
|
16
|
+
acs_access_group_id: z.string().uuid().describe('ID of the access group.'),
|
|
17
|
+
acs_system_id: z
|
|
18
|
+
.string()
|
|
19
|
+
.uuid()
|
|
20
|
+
.describe(
|
|
21
|
+
'ID of the access control system that contains the access group.',
|
|
22
|
+
),
|
|
23
|
+
workspace_id: z
|
|
24
|
+
.string()
|
|
25
|
+
.uuid()
|
|
26
|
+
.describe(
|
|
27
|
+
'ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) that contains the access group.',
|
|
28
|
+
),
|
|
29
|
+
name: z.string().describe('Name of the access group.'),
|
|
20
30
|
access_group_type: acs_access_group_external_type.describe(`
|
|
21
31
|
---
|
|
22
32
|
deprecated: use external_type
|
|
@@ -28,14 +38,27 @@ const common_acs_access_group = z.object({
|
|
|
28
38
|
---
|
|
29
39
|
`),
|
|
30
40
|
display_name: z.string(),
|
|
31
|
-
external_type: acs_access_group_external_type
|
|
32
|
-
|
|
33
|
-
|
|
41
|
+
external_type: acs_access_group_external_type.describe(
|
|
42
|
+
'Brand-specific terminology for the access group type.',
|
|
43
|
+
),
|
|
44
|
+
external_type_display_name: z
|
|
45
|
+
.string()
|
|
46
|
+
.describe(
|
|
47
|
+
'Display name that corresponds to the brand-specific terminology for the access group type.',
|
|
48
|
+
),
|
|
49
|
+
created_at: z
|
|
50
|
+
.string()
|
|
51
|
+
.datetime()
|
|
52
|
+
.describe('Date and time at which the access group was created.'),
|
|
34
53
|
})
|
|
35
54
|
|
|
36
55
|
export const acs_access_group = common_acs_access_group.extend({
|
|
37
56
|
is_managed: z.literal(true),
|
|
38
|
-
})
|
|
57
|
+
}).describe(`
|
|
58
|
+
Group that defines the entrances to which a set of users has access and, in some cases, the access schedule for these entrances and users.
|
|
59
|
+
|
|
60
|
+
The \`acs_access_group\` object represents an [access group](https://docs.seam.co/latest/capability-guides/access-systems/assigning-users-to-access-groups) within an [access control system](https://docs.seam.co/latest/capability-guides/access-systems).
|
|
61
|
+
`)
|
|
39
62
|
export const unmanaged_acs_access_group = common_acs_access_group.extend({
|
|
40
63
|
is_managed: z.literal(false),
|
|
41
64
|
})
|