@seamapi/types 1.344.3 → 1.345.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 +127 -30
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +164 -1
- package/lib/seam/connect/models/devices/phone-properties.js +18 -8
- package/lib/seam/connect/models/devices/phone-properties.js.map +1 -1
- package/lib/seam/connect/models/devices/phone.js +4 -1
- package/lib/seam/connect/models/devices/phone.js.map +1 -1
- package/lib/seam/connect/openapi.d.ts +39 -0
- package/lib/seam/connect/openapi.js +113 -20
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +125 -1
- package/package.json +1 -1
- package/src/lib/seam/connect/models/devices/phone-properties.ts +24 -10
- package/src/lib/seam/connect/models/devices/phone.ts +4 -1
- package/src/lib/seam/connect/openapi.ts +144 -20
- package/src/lib/seam/connect/route-types.ts +125 -1
|
@@ -13153,14 +13153,21 @@ export interface Routes {
|
|
|
13153
13153
|
/** Array of noise threshold IDs that are currently triggering. */
|
|
13154
13154
|
currently_triggering_noise_threshold_ids?: string[] | undefined;
|
|
13155
13155
|
} & {
|
|
13156
|
+
/** ASSA ABLOY Credential Service metadata for the phone. */
|
|
13156
13157
|
assa_abloy_credential_service_metadata?: ({
|
|
13158
|
+
/** Indicates whether the credential service has active endpoints associated with the phone. */
|
|
13157
13159
|
has_active_endpoint: boolean;
|
|
13160
|
+
/** Endpoints associated with the phone. */
|
|
13158
13161
|
endpoints: Array<{
|
|
13162
|
+
/** ID of the associated endpoint. */
|
|
13159
13163
|
endpoint_id: string;
|
|
13164
|
+
/** Indicated whether the endpoint is active. */
|
|
13160
13165
|
is_active: boolean;
|
|
13161
13166
|
}>;
|
|
13162
13167
|
} | undefined) | undefined;
|
|
13168
|
+
/** Salto Space credential service metadata for the phone. */
|
|
13163
13169
|
salto_space_credential_service_metadata?: ({
|
|
13170
|
+
/** Indicates whether the credential service has an active associated phone. */
|
|
13164
13171
|
has_active_phone: boolean;
|
|
13165
13172
|
} | undefined) | undefined;
|
|
13166
13173
|
}) & {
|
|
@@ -13836,14 +13843,21 @@ export interface Routes {
|
|
|
13836
13843
|
/** Array of noise threshold IDs that are currently triggering. */
|
|
13837
13844
|
currently_triggering_noise_threshold_ids?: string[] | undefined;
|
|
13838
13845
|
} & {
|
|
13846
|
+
/** ASSA ABLOY Credential Service metadata for the phone. */
|
|
13839
13847
|
assa_abloy_credential_service_metadata?: ({
|
|
13848
|
+
/** Indicates whether the credential service has active endpoints associated with the phone. */
|
|
13840
13849
|
has_active_endpoint: boolean;
|
|
13850
|
+
/** Endpoints associated with the phone. */
|
|
13841
13851
|
endpoints: Array<{
|
|
13852
|
+
/** ID of the associated endpoint. */
|
|
13842
13853
|
endpoint_id: string;
|
|
13854
|
+
/** Indicated whether the endpoint is active. */
|
|
13843
13855
|
is_active: boolean;
|
|
13844
13856
|
}>;
|
|
13845
13857
|
} | undefined) | undefined;
|
|
13858
|
+
/** Salto Space credential service metadata for the phone. */
|
|
13846
13859
|
salto_space_credential_service_metadata?: ({
|
|
13860
|
+
/** Indicates whether the credential service has an active associated phone. */
|
|
13847
13861
|
has_active_phone: boolean;
|
|
13848
13862
|
} | undefined) | undefined;
|
|
13849
13863
|
}) & {
|
|
@@ -17491,14 +17505,21 @@ export interface Routes {
|
|
|
17491
17505
|
/** Array of noise threshold IDs that are currently triggering. */
|
|
17492
17506
|
currently_triggering_noise_threshold_ids?: string[] | undefined;
|
|
17493
17507
|
} & {
|
|
17508
|
+
/** ASSA ABLOY Credential Service metadata for the phone. */
|
|
17494
17509
|
assa_abloy_credential_service_metadata?: ({
|
|
17510
|
+
/** Indicates whether the credential service has active endpoints associated with the phone. */
|
|
17495
17511
|
has_active_endpoint: boolean;
|
|
17512
|
+
/** Endpoints associated with the phone. */
|
|
17496
17513
|
endpoints: Array<{
|
|
17514
|
+
/** ID of the associated endpoint. */
|
|
17497
17515
|
endpoint_id: string;
|
|
17516
|
+
/** Indicated whether the endpoint is active. */
|
|
17498
17517
|
is_active: boolean;
|
|
17499
17518
|
}>;
|
|
17500
17519
|
} | undefined) | undefined;
|
|
17520
|
+
/** Salto Space credential service metadata for the phone. */
|
|
17501
17521
|
salto_space_credential_service_metadata?: ({
|
|
17522
|
+
/** Indicates whether the credential service has an active associated phone. */
|
|
17502
17523
|
has_active_phone: boolean;
|
|
17503
17524
|
} | undefined) | undefined;
|
|
17504
17525
|
}) & {
|
|
@@ -18138,14 +18159,21 @@ export interface Routes {
|
|
|
18138
18159
|
/** Array of noise threshold IDs that are currently triggering. */
|
|
18139
18160
|
currently_triggering_noise_threshold_ids?: string[] | undefined;
|
|
18140
18161
|
} & {
|
|
18162
|
+
/** ASSA ABLOY Credential Service metadata for the phone. */
|
|
18141
18163
|
assa_abloy_credential_service_metadata?: ({
|
|
18164
|
+
/** Indicates whether the credential service has active endpoints associated with the phone. */
|
|
18142
18165
|
has_active_endpoint: boolean;
|
|
18166
|
+
/** Endpoints associated with the phone. */
|
|
18143
18167
|
endpoints: Array<{
|
|
18168
|
+
/** ID of the associated endpoint. */
|
|
18144
18169
|
endpoint_id: string;
|
|
18170
|
+
/** Indicated whether the endpoint is active. */
|
|
18145
18171
|
is_active: boolean;
|
|
18146
18172
|
}>;
|
|
18147
18173
|
} | undefined) | undefined;
|
|
18174
|
+
/** Salto Space credential service metadata for the phone. */
|
|
18148
18175
|
salto_space_credential_service_metadata?: ({
|
|
18176
|
+
/** Indicates whether the credential service has an active associated phone. */
|
|
18149
18177
|
has_active_phone: boolean;
|
|
18150
18178
|
} | undefined) | undefined;
|
|
18151
18179
|
}) & {
|
|
@@ -18821,14 +18849,21 @@ export interface Routes {
|
|
|
18821
18849
|
/** Array of noise threshold IDs that are currently triggering. */
|
|
18822
18850
|
currently_triggering_noise_threshold_ids?: string[] | undefined;
|
|
18823
18851
|
} & {
|
|
18852
|
+
/** ASSA ABLOY Credential Service metadata for the phone. */
|
|
18824
18853
|
assa_abloy_credential_service_metadata?: ({
|
|
18854
|
+
/** Indicates whether the credential service has active endpoints associated with the phone. */
|
|
18825
18855
|
has_active_endpoint: boolean;
|
|
18856
|
+
/** Endpoints associated with the phone. */
|
|
18826
18857
|
endpoints: Array<{
|
|
18858
|
+
/** ID of the associated endpoint. */
|
|
18827
18859
|
endpoint_id: string;
|
|
18860
|
+
/** Indicated whether the endpoint is active. */
|
|
18828
18861
|
is_active: boolean;
|
|
18829
18862
|
}>;
|
|
18830
18863
|
} | undefined) | undefined;
|
|
18864
|
+
/** Salto Space credential service metadata for the phone. */
|
|
18831
18865
|
salto_space_credential_service_metadata?: ({
|
|
18866
|
+
/** Indicates whether the credential service has an active associated phone. */
|
|
18832
18867
|
has_active_phone: boolean;
|
|
18833
18868
|
} | undefined) | undefined;
|
|
18834
18869
|
}) & {
|
|
@@ -19467,14 +19502,21 @@ export interface Routes {
|
|
|
19467
19502
|
/** Array of noise threshold IDs that are currently triggering. */
|
|
19468
19503
|
currently_triggering_noise_threshold_ids?: string[] | undefined;
|
|
19469
19504
|
} & {
|
|
19505
|
+
/** ASSA ABLOY Credential Service metadata for the phone. */
|
|
19470
19506
|
assa_abloy_credential_service_metadata?: ({
|
|
19507
|
+
/** Indicates whether the credential service has active endpoints associated with the phone. */
|
|
19471
19508
|
has_active_endpoint: boolean;
|
|
19509
|
+
/** Endpoints associated with the phone. */
|
|
19472
19510
|
endpoints: Array<{
|
|
19511
|
+
/** ID of the associated endpoint. */
|
|
19473
19512
|
endpoint_id: string;
|
|
19513
|
+
/** Indicated whether the endpoint is active. */
|
|
19474
19514
|
is_active: boolean;
|
|
19475
19515
|
}>;
|
|
19476
19516
|
} | undefined) | undefined;
|
|
19517
|
+
/** Salto Space credential service metadata for the phone. */
|
|
19477
19518
|
salto_space_credential_service_metadata?: ({
|
|
19519
|
+
/** Indicates whether the credential service has an active associated phone. */
|
|
19478
19520
|
has_active_phone: boolean;
|
|
19479
19521
|
} | undefined) | undefined;
|
|
19480
19522
|
}) & {
|
|
@@ -21921,14 +21963,21 @@ export interface Routes {
|
|
|
21921
21963
|
/** Array of noise threshold IDs that are currently triggering. */
|
|
21922
21964
|
currently_triggering_noise_threshold_ids?: string[] | undefined;
|
|
21923
21965
|
} & {
|
|
21966
|
+
/** ASSA ABLOY Credential Service metadata for the phone. */
|
|
21924
21967
|
assa_abloy_credential_service_metadata?: ({
|
|
21968
|
+
/** Indicates whether the credential service has active endpoints associated with the phone. */
|
|
21925
21969
|
has_active_endpoint: boolean;
|
|
21970
|
+
/** Endpoints associated with the phone. */
|
|
21926
21971
|
endpoints: Array<{
|
|
21972
|
+
/** ID of the associated endpoint. */
|
|
21927
21973
|
endpoint_id: string;
|
|
21974
|
+
/** Indicated whether the endpoint is active. */
|
|
21928
21975
|
is_active: boolean;
|
|
21929
21976
|
}>;
|
|
21930
21977
|
} | undefined) | undefined;
|
|
21978
|
+
/** Salto Space credential service metadata for the phone. */
|
|
21931
21979
|
salto_space_credential_service_metadata?: ({
|
|
21980
|
+
/** Indicates whether the credential service has an active associated phone. */
|
|
21932
21981
|
has_active_phone: boolean;
|
|
21933
21982
|
} | undefined) | undefined;
|
|
21934
21983
|
}) & {
|
|
@@ -22567,14 +22616,21 @@ export interface Routes {
|
|
|
22567
22616
|
/** Array of noise threshold IDs that are currently triggering. */
|
|
22568
22617
|
currently_triggering_noise_threshold_ids?: string[] | undefined;
|
|
22569
22618
|
} & {
|
|
22619
|
+
/** ASSA ABLOY Credential Service metadata for the phone. */
|
|
22570
22620
|
assa_abloy_credential_service_metadata?: ({
|
|
22621
|
+
/** Indicates whether the credential service has active endpoints associated with the phone. */
|
|
22571
22622
|
has_active_endpoint: boolean;
|
|
22623
|
+
/** Endpoints associated with the phone. */
|
|
22572
22624
|
endpoints: Array<{
|
|
22625
|
+
/** ID of the associated endpoint. */
|
|
22573
22626
|
endpoint_id: string;
|
|
22627
|
+
/** Indicated whether the endpoint is active. */
|
|
22574
22628
|
is_active: boolean;
|
|
22575
22629
|
}>;
|
|
22576
22630
|
} | undefined) | undefined;
|
|
22631
|
+
/** Salto Space credential service metadata for the phone. */
|
|
22577
22632
|
salto_space_credential_service_metadata?: ({
|
|
22633
|
+
/** Indicates whether the credential service has an active associated phone. */
|
|
22578
22634
|
has_active_phone: boolean;
|
|
22579
22635
|
} | undefined) | undefined;
|
|
22580
22636
|
}) & {
|
|
@@ -25821,6 +25877,7 @@ export interface Routes {
|
|
|
25821
25877
|
method: 'DELETE' | 'POST';
|
|
25822
25878
|
queryParams: {};
|
|
25823
25879
|
jsonBody: {
|
|
25880
|
+
/** Device ID of the desired phone. */
|
|
25824
25881
|
device_id: string;
|
|
25825
25882
|
};
|
|
25826
25883
|
commonParams: {};
|
|
@@ -25833,7 +25890,9 @@ export interface Routes {
|
|
|
25833
25890
|
queryParams: {};
|
|
25834
25891
|
jsonBody: {};
|
|
25835
25892
|
commonParams: {
|
|
25893
|
+
/** ID of the user identity that represents the owner by which to filter the list of returned phones. */
|
|
25836
25894
|
owner_user_identity_id?: string | undefined;
|
|
25895
|
+
/** ID of the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) by which to filter the list of returned phones. */
|
|
25837
25896
|
acs_credential_id?: string | undefined;
|
|
25838
25897
|
};
|
|
25839
25898
|
formData: {};
|
|
@@ -25841,6 +25900,7 @@ export interface Routes {
|
|
|
25841
25900
|
phones: Array<{
|
|
25842
25901
|
/** Unique identifier for the device. */
|
|
25843
25902
|
device_id: string;
|
|
25903
|
+
/** Type of phone. */
|
|
25844
25904
|
device_type: 'android_phone' | 'ios_phone';
|
|
25845
25905
|
/** Optional nickname to describe the device, settable through Seam */
|
|
25846
25906
|
nickname?: string | undefined;
|
|
@@ -25849,14 +25909,21 @@ export interface Routes {
|
|
|
25849
25909
|
/** 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. */
|
|
25850
25910
|
capabilities_supported: Array<'access_code' | 'lock' | 'noise_detection' | 'thermostat' | 'battery' | 'phone'>;
|
|
25851
25911
|
properties: {
|
|
25912
|
+
/** ASSA ABLOY Credential Service metadata for the phone. */
|
|
25852
25913
|
assa_abloy_credential_service_metadata?: {
|
|
25914
|
+
/** Indicates whether the credential service has active endpoints associated with the phone. */
|
|
25853
25915
|
has_active_endpoint: boolean;
|
|
25916
|
+
/** Endpoints associated with the phone. */
|
|
25854
25917
|
endpoints: Array<{
|
|
25918
|
+
/** ID of the associated endpoint. */
|
|
25855
25919
|
endpoint_id: string;
|
|
25920
|
+
/** Indicated whether the endpoint is active. */
|
|
25856
25921
|
is_active: boolean;
|
|
25857
25922
|
}>;
|
|
25858
25923
|
} | undefined;
|
|
25924
|
+
/** Salto Space credential service metadata for the phone. */
|
|
25859
25925
|
salto_space_credential_service_metadata?: {
|
|
25926
|
+
/** Indicates whether the credential service has an active associated phone. */
|
|
25860
25927
|
has_active_phone: boolean;
|
|
25861
25928
|
} | undefined;
|
|
25862
25929
|
};
|
|
@@ -26031,30 +26098,45 @@ export interface Routes {
|
|
|
26031
26098
|
method: 'GET' | 'POST';
|
|
26032
26099
|
queryParams: {};
|
|
26033
26100
|
jsonBody: {
|
|
26101
|
+
/** ID of the custom SDK installation to use for the simulated phone. */
|
|
26034
26102
|
custom_sdk_installation_id?: string | undefined;
|
|
26103
|
+
/** ID of the user identity to associate with the simulated phone. */
|
|
26035
26104
|
user_identity_id: string;
|
|
26105
|
+
/** Metadata to associate with the simulated phone. */
|
|
26036
26106
|
phone_metadata?: {
|
|
26107
|
+
/** Mobile operating system that you want to use for the simulated phone. */
|
|
26037
26108
|
operating_system?: 'android' | 'ios';
|
|
26109
|
+
/** Mobile operating system version that you want to use for the simulated phone. */
|
|
26038
26110
|
os_version?: string;
|
|
26111
|
+
/** Manufacturer that you want to use for the simulated phone. */
|
|
26039
26112
|
device_manufacturer?: string;
|
|
26113
|
+
/** Device model that you want to use for the simulated phone. */
|
|
26040
26114
|
device_model?: string;
|
|
26041
26115
|
};
|
|
26116
|
+
/** ASSA ABLOY metadata to associate with the simulated phone. */
|
|
26042
26117
|
assa_abloy_metadata?: {
|
|
26118
|
+
/** Indicates whether the simulated phone should have Bluetooth low energy (BLE) capability. */
|
|
26043
26119
|
ble_capability?: boolean;
|
|
26120
|
+
/** Indicates whether the simulated phone should have host card emulation (HCE) capability. */
|
|
26044
26121
|
hce_capability?: boolean;
|
|
26122
|
+
/** Indicates whether the simulated phone should have near-field communication (NFC) capability. */
|
|
26045
26123
|
nfc_capability?: boolean;
|
|
26124
|
+
/** Application version that you want to use for the simulated phone. */
|
|
26046
26125
|
application_version?: string;
|
|
26126
|
+
/** SEOS applet version that you want to use for the simulated phone. */
|
|
26047
26127
|
seos_applet_version?: string;
|
|
26128
|
+
/** ID of the SEOS trusted service manager (TSM) endpoint that you want to use for the simulated phone. */
|
|
26048
26129
|
seos_tsm_endpoint_id?: number;
|
|
26049
26130
|
};
|
|
26050
26131
|
};
|
|
26051
26132
|
commonParams: {};
|
|
26052
26133
|
formData: {};
|
|
26053
26134
|
jsonResponse: {
|
|
26054
|
-
/**
|
|
26135
|
+
/** Properties of the phone. */
|
|
26055
26136
|
phone: {
|
|
26056
26137
|
/** Unique identifier for the device. */
|
|
26057
26138
|
device_id: string;
|
|
26139
|
+
/** Type of phone. */
|
|
26058
26140
|
device_type: 'android_phone' | 'ios_phone';
|
|
26059
26141
|
/** Optional nickname to describe the device, settable through Seam */
|
|
26060
26142
|
nickname?: string | undefined;
|
|
@@ -26063,14 +26145,21 @@ export interface Routes {
|
|
|
26063
26145
|
/** 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. */
|
|
26064
26146
|
capabilities_supported: Array<'access_code' | 'lock' | 'noise_detection' | 'thermostat' | 'battery' | 'phone'>;
|
|
26065
26147
|
properties: {
|
|
26148
|
+
/** ASSA ABLOY Credential Service metadata for the phone. */
|
|
26066
26149
|
assa_abloy_credential_service_metadata?: {
|
|
26150
|
+
/** Indicates whether the credential service has active endpoints associated with the phone. */
|
|
26067
26151
|
has_active_endpoint: boolean;
|
|
26152
|
+
/** Endpoints associated with the phone. */
|
|
26068
26153
|
endpoints: Array<{
|
|
26154
|
+
/** ID of the associated endpoint. */
|
|
26069
26155
|
endpoint_id: string;
|
|
26156
|
+
/** Indicated whether the endpoint is active. */
|
|
26070
26157
|
is_active: boolean;
|
|
26071
26158
|
}>;
|
|
26072
26159
|
} | undefined;
|
|
26160
|
+
/** Salto Space credential service metadata for the phone. */
|
|
26073
26161
|
salto_space_credential_service_metadata?: {
|
|
26162
|
+
/** Indicates whether the credential service has an active associated phone. */
|
|
26074
26163
|
has_active_phone: boolean;
|
|
26075
26164
|
} | undefined;
|
|
26076
26165
|
};
|
|
@@ -28123,14 +28212,21 @@ export interface Routes {
|
|
|
28123
28212
|
/** Array of noise threshold IDs that are currently triggering. */
|
|
28124
28213
|
currently_triggering_noise_threshold_ids?: string[] | undefined;
|
|
28125
28214
|
} & {
|
|
28215
|
+
/** ASSA ABLOY Credential Service metadata for the phone. */
|
|
28126
28216
|
assa_abloy_credential_service_metadata?: ({
|
|
28217
|
+
/** Indicates whether the credential service has active endpoints associated with the phone. */
|
|
28127
28218
|
has_active_endpoint: boolean;
|
|
28219
|
+
/** Endpoints associated with the phone. */
|
|
28128
28220
|
endpoints: Array<{
|
|
28221
|
+
/** ID of the associated endpoint. */
|
|
28129
28222
|
endpoint_id: string;
|
|
28223
|
+
/** Indicated whether the endpoint is active. */
|
|
28130
28224
|
is_active: boolean;
|
|
28131
28225
|
}>;
|
|
28132
28226
|
} | undefined) | undefined;
|
|
28227
|
+
/** Salto Space credential service metadata for the phone. */
|
|
28133
28228
|
salto_space_credential_service_metadata?: ({
|
|
28229
|
+
/** Indicates whether the credential service has an active associated phone. */
|
|
28134
28230
|
has_active_phone: boolean;
|
|
28135
28231
|
} | undefined) | undefined;
|
|
28136
28232
|
}) & {
|
|
@@ -30558,14 +30654,21 @@ export interface Routes {
|
|
|
30558
30654
|
/** Array of noise threshold IDs that are currently triggering. */
|
|
30559
30655
|
currently_triggering_noise_threshold_ids?: string[] | undefined;
|
|
30560
30656
|
} & {
|
|
30657
|
+
/** ASSA ABLOY Credential Service metadata for the phone. */
|
|
30561
30658
|
assa_abloy_credential_service_metadata?: ({
|
|
30659
|
+
/** Indicates whether the credential service has active endpoints associated with the phone. */
|
|
30562
30660
|
has_active_endpoint: boolean;
|
|
30661
|
+
/** Endpoints associated with the phone. */
|
|
30563
30662
|
endpoints: Array<{
|
|
30663
|
+
/** ID of the associated endpoint. */
|
|
30564
30664
|
endpoint_id: string;
|
|
30665
|
+
/** Indicated whether the endpoint is active. */
|
|
30565
30666
|
is_active: boolean;
|
|
30566
30667
|
}>;
|
|
30567
30668
|
} | undefined) | undefined;
|
|
30669
|
+
/** Salto Space credential service metadata for the phone. */
|
|
30568
30670
|
salto_space_credential_service_metadata?: ({
|
|
30671
|
+
/** Indicates whether the credential service has an active associated phone. */
|
|
30569
30672
|
has_active_phone: boolean;
|
|
30570
30673
|
} | undefined) | undefined;
|
|
30571
30674
|
}) & {
|
|
@@ -31204,14 +31307,21 @@ export interface Routes {
|
|
|
31204
31307
|
/** Array of noise threshold IDs that are currently triggering. */
|
|
31205
31308
|
currently_triggering_noise_threshold_ids?: string[] | undefined;
|
|
31206
31309
|
} & {
|
|
31310
|
+
/** ASSA ABLOY Credential Service metadata for the phone. */
|
|
31207
31311
|
assa_abloy_credential_service_metadata?: ({
|
|
31312
|
+
/** Indicates whether the credential service has active endpoints associated with the phone. */
|
|
31208
31313
|
has_active_endpoint: boolean;
|
|
31314
|
+
/** Endpoints associated with the phone. */
|
|
31209
31315
|
endpoints: Array<{
|
|
31316
|
+
/** ID of the associated endpoint. */
|
|
31210
31317
|
endpoint_id: string;
|
|
31318
|
+
/** Indicated whether the endpoint is active. */
|
|
31211
31319
|
is_active: boolean;
|
|
31212
31320
|
}>;
|
|
31213
31321
|
} | undefined) | undefined;
|
|
31322
|
+
/** Salto Space credential service metadata for the phone. */
|
|
31214
31323
|
salto_space_credential_service_metadata?: ({
|
|
31324
|
+
/** Indicates whether the credential service has an active associated phone. */
|
|
31215
31325
|
has_active_phone: boolean;
|
|
31216
31326
|
} | undefined) | undefined;
|
|
31217
31327
|
}) & {
|
|
@@ -35024,14 +35134,21 @@ export interface Routes {
|
|
|
35024
35134
|
/** Array of noise threshold IDs that are currently triggering. */
|
|
35025
35135
|
currently_triggering_noise_threshold_ids?: string[] | undefined;
|
|
35026
35136
|
} & {
|
|
35137
|
+
/** ASSA ABLOY Credential Service metadata for the phone. */
|
|
35027
35138
|
assa_abloy_credential_service_metadata?: ({
|
|
35139
|
+
/** Indicates whether the credential service has active endpoints associated with the phone. */
|
|
35028
35140
|
has_active_endpoint: boolean;
|
|
35141
|
+
/** Endpoints associated with the phone. */
|
|
35029
35142
|
endpoints: Array<{
|
|
35143
|
+
/** ID of the associated endpoint. */
|
|
35030
35144
|
endpoint_id: string;
|
|
35145
|
+
/** Indicated whether the endpoint is active. */
|
|
35031
35146
|
is_active: boolean;
|
|
35032
35147
|
}>;
|
|
35033
35148
|
} | undefined) | undefined;
|
|
35149
|
+
/** Salto Space credential service metadata for the phone. */
|
|
35034
35150
|
salto_space_credential_service_metadata?: ({
|
|
35151
|
+
/** Indicates whether the credential service has an active associated phone. */
|
|
35035
35152
|
has_active_phone: boolean;
|
|
35036
35153
|
} | undefined) | undefined;
|
|
35037
35154
|
}) & {
|
|
@@ -35672,14 +35789,21 @@ export interface Routes {
|
|
|
35672
35789
|
/** Array of noise threshold IDs that are currently triggering. */
|
|
35673
35790
|
currently_triggering_noise_threshold_ids?: string[] | undefined;
|
|
35674
35791
|
} & {
|
|
35792
|
+
/** ASSA ABLOY Credential Service metadata for the phone. */
|
|
35675
35793
|
assa_abloy_credential_service_metadata?: ({
|
|
35794
|
+
/** Indicates whether the credential service has active endpoints associated with the phone. */
|
|
35676
35795
|
has_active_endpoint: boolean;
|
|
35796
|
+
/** Endpoints associated with the phone. */
|
|
35677
35797
|
endpoints: Array<{
|
|
35798
|
+
/** ID of the associated endpoint. */
|
|
35678
35799
|
endpoint_id: string;
|
|
35800
|
+
/** Indicated whether the endpoint is active. */
|
|
35679
35801
|
is_active: boolean;
|
|
35680
35802
|
}>;
|
|
35681
35803
|
} | undefined) | undefined;
|
|
35804
|
+
/** Salto Space credential service metadata for the phone. */
|
|
35682
35805
|
salto_space_credential_service_metadata?: ({
|
|
35806
|
+
/** Indicates whether the credential service has an active associated phone. */
|
|
35683
35807
|
has_active_phone: boolean;
|
|
35684
35808
|
} | undefined) | undefined;
|
|
35685
35809
|
}) & {
|
package/package.json
CHANGED
|
@@ -3,19 +3,33 @@ import { z } from 'zod'
|
|
|
3
3
|
export const phone_specific_properties = z.object({
|
|
4
4
|
assa_abloy_credential_service_metadata: z
|
|
5
5
|
.object({
|
|
6
|
-
has_active_endpoint: z
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
6
|
+
has_active_endpoint: z
|
|
7
|
+
.boolean()
|
|
8
|
+
.describe(
|
|
9
|
+
'Indicates whether the credential service has active endpoints associated with the phone.',
|
|
10
|
+
),
|
|
11
|
+
endpoints: z
|
|
12
|
+
.array(
|
|
13
|
+
z.object({
|
|
14
|
+
endpoint_id: z.string().describe('ID of the associated endpoint.'),
|
|
15
|
+
is_active: z
|
|
16
|
+
.boolean()
|
|
17
|
+
.describe('Indicated whether the endpoint is active.'),
|
|
18
|
+
}),
|
|
19
|
+
)
|
|
20
|
+
.describe('Endpoints associated with the phone.'),
|
|
13
21
|
})
|
|
14
|
-
.optional()
|
|
22
|
+
.optional()
|
|
23
|
+
.describe('ASSA ABLOY Credential Service metadata for the phone.'),
|
|
15
24
|
|
|
16
25
|
salto_space_credential_service_metadata: z
|
|
17
26
|
.object({
|
|
18
|
-
has_active_phone: z
|
|
27
|
+
has_active_phone: z
|
|
28
|
+
.boolean()
|
|
29
|
+
.describe(
|
|
30
|
+
'Indicates whether the credential service has an active associated phone.',
|
|
31
|
+
),
|
|
19
32
|
})
|
|
20
|
-
.optional()
|
|
33
|
+
.optional()
|
|
34
|
+
.describe('Salto Space credential service metadata for the phone.'),
|
|
21
35
|
})
|
|
@@ -10,10 +10,13 @@ export const phone = device
|
|
|
10
10
|
connected_account_id: true,
|
|
11
11
|
})
|
|
12
12
|
.extend({
|
|
13
|
-
device_type: z
|
|
13
|
+
device_type: z
|
|
14
|
+
.enum(['android_phone', 'ios_phone'])
|
|
15
|
+
.describe('Type of phone.'),
|
|
14
16
|
})
|
|
15
17
|
.merge(z.object({ properties: phone_specific_properties })).describe(`
|
|
16
18
|
---
|
|
17
19
|
route_path: /phones
|
|
18
20
|
---
|
|
21
|
+
Properties of the phone.
|
|
19
22
|
`)
|