@seamapi/types 1.344.2 → 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 +157 -30
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +242 -1
- package/lib/seam/connect/models/access-codes/managed-access-code.d.ts +26 -0
- package/lib/seam/connect/models/access-codes/managed-access-code.js +8 -0
- package/lib/seam/connect/models/access-codes/managed-access-code.js.map +1 -1
- package/lib/seam/connect/models/access-codes/unmanaged-access-code.d.ts +16 -0
- 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 +139 -20
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +161 -1
- package/package.json +1 -1
- package/src/lib/seam/connect/models/access-codes/managed-access-code.ts +9 -0
- 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 +174 -20
- package/src/lib/seam/connect/route-types.ts +170 -1
package/dist/connect.cjs
CHANGED
|
@@ -807,17 +807,21 @@ var any_device_type = zod.z.union([
|
|
|
807
807
|
]);
|
|
808
808
|
var phone_specific_properties = zod.z.object({
|
|
809
809
|
assa_abloy_credential_service_metadata: zod.z.object({
|
|
810
|
-
has_active_endpoint: zod.z.boolean()
|
|
810
|
+
has_active_endpoint: zod.z.boolean().describe(
|
|
811
|
+
"Indicates whether the credential service has active endpoints associated with the phone."
|
|
812
|
+
),
|
|
811
813
|
endpoints: zod.z.array(
|
|
812
814
|
zod.z.object({
|
|
813
|
-
endpoint_id: zod.z.string(),
|
|
814
|
-
is_active: zod.z.boolean()
|
|
815
|
+
endpoint_id: zod.z.string().describe("ID of the associated endpoint."),
|
|
816
|
+
is_active: zod.z.boolean().describe("Indicated whether the endpoint is active.")
|
|
815
817
|
})
|
|
816
|
-
)
|
|
817
|
-
}).optional(),
|
|
818
|
+
).describe("Endpoints associated with the phone.")
|
|
819
|
+
}).optional().describe("ASSA ABLOY Credential Service metadata for the phone."),
|
|
818
820
|
salto_space_credential_service_metadata: zod.z.object({
|
|
819
|
-
has_active_phone: zod.z.boolean()
|
|
820
|
-
|
|
821
|
+
has_active_phone: zod.z.boolean().describe(
|
|
822
|
+
"Indicates whether the credential service has an active associated phone."
|
|
823
|
+
)
|
|
824
|
+
}).optional().describe("Salto Space credential service metadata for the phone.")
|
|
821
825
|
});
|
|
822
826
|
|
|
823
827
|
// src/lib/seam/connect/models/devices/device.ts
|
|
@@ -1333,6 +1337,9 @@ var schlage_detected_duplicate = common_access_code_warning.extend({
|
|
|
1333
1337
|
var schlage_creation_outage = common_access_code_warning.extend({
|
|
1334
1338
|
warning_code: zod.z.literal("schlage_creation_outage").describe(warning_code_description3)
|
|
1335
1339
|
}).describe("Received an error when attempting to create this code.");
|
|
1340
|
+
var salto_office_mode2 = common_access_code_warning.extend({
|
|
1341
|
+
warning_code: zod.z.literal("salto_office_mode").describe(warning_code_description3)
|
|
1342
|
+
}).describe("Lock is in Office Mode. Access Codes will not unlock doors.");
|
|
1336
1343
|
var delay_in_setting_on_device = common_access_code_warning.extend({
|
|
1337
1344
|
warning_code: zod.z.literal("delay_in_setting_on_device").describe(warning_code_description3)
|
|
1338
1345
|
}).describe("Delay in setting code on device.");
|
|
@@ -1354,6 +1361,7 @@ var access_code_warning = zod.z.discriminatedUnion("warning_code", [
|
|
|
1354
1361
|
smartthings_failed_to_set_access_code_warning,
|
|
1355
1362
|
schlage_detected_duplicate,
|
|
1356
1363
|
schlage_creation_outage,
|
|
1364
|
+
salto_office_mode2,
|
|
1357
1365
|
code_modified_external_to_seam_warning,
|
|
1358
1366
|
delay_in_setting_on_device,
|
|
1359
1367
|
delay_in_removing_from_device,
|
|
@@ -4210,6 +4218,19 @@ var openapi_default = {
|
|
|
4210
4218
|
required: ["message", "warning_code"],
|
|
4211
4219
|
type: "object"
|
|
4212
4220
|
},
|
|
4221
|
+
{
|
|
4222
|
+
description: "Lock is in Office Mode. Access Codes will not unlock doors.",
|
|
4223
|
+
properties: {
|
|
4224
|
+
message: { type: "string" },
|
|
4225
|
+
warning_code: {
|
|
4226
|
+
description: "Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.",
|
|
4227
|
+
enum: ["salto_office_mode"],
|
|
4228
|
+
type: "string"
|
|
4229
|
+
}
|
|
4230
|
+
},
|
|
4231
|
+
required: ["message", "warning_code"],
|
|
4232
|
+
type: "object"
|
|
4233
|
+
},
|
|
4213
4234
|
{
|
|
4214
4235
|
description: "Code was modified or removed externally after Seam successfully set it on the device.",
|
|
4215
4236
|
properties: {
|
|
@@ -9038,26 +9059,41 @@ var openapi_default = {
|
|
|
9038
9059
|
{
|
|
9039
9060
|
properties: {
|
|
9040
9061
|
assa_abloy_credential_service_metadata: {
|
|
9062
|
+
description: "ASSA ABLOY Credential Service metadata for the phone.",
|
|
9041
9063
|
properties: {
|
|
9042
9064
|
endpoints: {
|
|
9065
|
+
description: "Endpoints associated with the phone.",
|
|
9043
9066
|
items: {
|
|
9044
9067
|
properties: {
|
|
9045
|
-
endpoint_id: {
|
|
9046
|
-
|
|
9068
|
+
endpoint_id: {
|
|
9069
|
+
description: "ID of the associated endpoint.",
|
|
9070
|
+
type: "string"
|
|
9071
|
+
},
|
|
9072
|
+
is_active: {
|
|
9073
|
+
description: "Indicated whether the endpoint is active.",
|
|
9074
|
+
type: "boolean"
|
|
9075
|
+
}
|
|
9047
9076
|
},
|
|
9048
9077
|
required: ["endpoint_id", "is_active"],
|
|
9049
9078
|
type: "object"
|
|
9050
9079
|
},
|
|
9051
9080
|
type: "array"
|
|
9052
9081
|
},
|
|
9053
|
-
has_active_endpoint: {
|
|
9082
|
+
has_active_endpoint: {
|
|
9083
|
+
description: "Indicates whether the credential service has active endpoints associated with the phone.",
|
|
9084
|
+
type: "boolean"
|
|
9085
|
+
}
|
|
9054
9086
|
},
|
|
9055
9087
|
required: ["has_active_endpoint", "endpoints"],
|
|
9056
9088
|
type: "object"
|
|
9057
9089
|
},
|
|
9058
9090
|
salto_space_credential_service_metadata: {
|
|
9091
|
+
description: "Salto Space credential service metadata for the phone.",
|
|
9059
9092
|
properties: {
|
|
9060
|
-
has_active_phone: {
|
|
9093
|
+
has_active_phone: {
|
|
9094
|
+
description: "Indicates whether the credential service has an active associated phone.",
|
|
9095
|
+
type: "boolean"
|
|
9096
|
+
}
|
|
9061
9097
|
},
|
|
9062
9098
|
required: ["has_active_phone"],
|
|
9063
9099
|
type: "object"
|
|
@@ -14509,6 +14545,7 @@ var openapi_default = {
|
|
|
14509
14545
|
"x-route-path": "/noise_sensors/noise_thresholds"
|
|
14510
14546
|
},
|
|
14511
14547
|
phone: {
|
|
14548
|
+
description: "Properties of the phone.",
|
|
14512
14549
|
properties: {
|
|
14513
14550
|
can_hvac_cool: { type: "boolean" },
|
|
14514
14551
|
can_hvac_heat: { type: "boolean" },
|
|
@@ -14552,7 +14589,11 @@ var openapi_default = {
|
|
|
14552
14589
|
format: "uuid",
|
|
14553
14590
|
type: "string"
|
|
14554
14591
|
},
|
|
14555
|
-
device_type: {
|
|
14592
|
+
device_type: {
|
|
14593
|
+
description: "Type of phone.",
|
|
14594
|
+
enum: ["android_phone", "ios_phone"],
|
|
14595
|
+
type: "string"
|
|
14596
|
+
},
|
|
14556
14597
|
display_name: {
|
|
14557
14598
|
description: "Display name of the device, defaults to nickname (if it is set) or properties.appearance.name otherwise. Enables administrators and users to identify the device easily, especially when there are numerous devices.",
|
|
14558
14599
|
type: "string"
|
|
@@ -14803,25 +14844,42 @@ var openapi_default = {
|
|
|
14803
14844
|
properties: {
|
|
14804
14845
|
properties: {
|
|
14805
14846
|
assa_abloy_credential_service_metadata: {
|
|
14847
|
+
description: "ASSA ABLOY Credential Service metadata for the phone.",
|
|
14806
14848
|
properties: {
|
|
14807
14849
|
endpoints: {
|
|
14850
|
+
description: "Endpoints associated with the phone.",
|
|
14808
14851
|
items: {
|
|
14809
14852
|
properties: {
|
|
14810
|
-
endpoint_id: {
|
|
14811
|
-
|
|
14853
|
+
endpoint_id: {
|
|
14854
|
+
description: "ID of the associated endpoint.",
|
|
14855
|
+
type: "string"
|
|
14856
|
+
},
|
|
14857
|
+
is_active: {
|
|
14858
|
+
description: "Indicated whether the endpoint is active.",
|
|
14859
|
+
type: "boolean"
|
|
14860
|
+
}
|
|
14812
14861
|
},
|
|
14813
14862
|
required: ["endpoint_id", "is_active"],
|
|
14814
14863
|
type: "object"
|
|
14815
14864
|
},
|
|
14816
14865
|
type: "array"
|
|
14817
14866
|
},
|
|
14818
|
-
has_active_endpoint: {
|
|
14867
|
+
has_active_endpoint: {
|
|
14868
|
+
description: "Indicates whether the credential service has active endpoints associated with the phone.",
|
|
14869
|
+
type: "boolean"
|
|
14870
|
+
}
|
|
14819
14871
|
},
|
|
14820
14872
|
required: ["has_active_endpoint", "endpoints"],
|
|
14821
14873
|
type: "object"
|
|
14822
14874
|
},
|
|
14823
14875
|
salto_space_credential_service_metadata: {
|
|
14824
|
-
|
|
14876
|
+
description: "Salto Space credential service metadata for the phone.",
|
|
14877
|
+
properties: {
|
|
14878
|
+
has_active_phone: {
|
|
14879
|
+
description: "Indicates whether the credential service has an active associated phone.",
|
|
14880
|
+
type: "boolean"
|
|
14881
|
+
}
|
|
14882
|
+
},
|
|
14825
14883
|
required: ["has_active_phone"],
|
|
14826
14884
|
type: "object"
|
|
14827
14885
|
}
|
|
@@ -15729,6 +15787,19 @@ var openapi_default = {
|
|
|
15729
15787
|
required: ["message", "warning_code"],
|
|
15730
15788
|
type: "object"
|
|
15731
15789
|
},
|
|
15790
|
+
{
|
|
15791
|
+
description: "Lock is in Office Mode. Access Codes will not unlock doors.",
|
|
15792
|
+
properties: {
|
|
15793
|
+
message: { type: "string" },
|
|
15794
|
+
warning_code: {
|
|
15795
|
+
description: "Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.",
|
|
15796
|
+
enum: ["salto_office_mode"],
|
|
15797
|
+
type: "string"
|
|
15798
|
+
}
|
|
15799
|
+
},
|
|
15800
|
+
required: ["message", "warning_code"],
|
|
15801
|
+
type: "object"
|
|
15802
|
+
},
|
|
15732
15803
|
{
|
|
15733
15804
|
description: "Code was modified or removed externally after Seam successfully set it on the device.",
|
|
15734
15805
|
properties: {
|
|
@@ -25848,12 +25919,18 @@ var openapi_default = {
|
|
|
25848
25919
|
},
|
|
25849
25920
|
"/phones/deactivate": {
|
|
25850
25921
|
post: {
|
|
25922
|
+
description: "Deactivates a phone, which is useful, for example, if a user has lost their phone. For more information, see [App User Lost Phone Process](https://docs.seam.co/latest/capability-guides/mobile-access/managing-phones-for-a-user-identity#app-user-lost-phone-process).",
|
|
25851
25923
|
operationId: "phonesDeactivatePost",
|
|
25852
25924
|
requestBody: {
|
|
25853
25925
|
content: {
|
|
25854
25926
|
"application/json": {
|
|
25855
25927
|
schema: {
|
|
25856
|
-
properties: {
|
|
25928
|
+
properties: {
|
|
25929
|
+
device_id: {
|
|
25930
|
+
description: "Device ID of the desired phone.",
|
|
25931
|
+
type: "string"
|
|
25932
|
+
}
|
|
25933
|
+
},
|
|
25857
25934
|
required: ["device_id"],
|
|
25858
25935
|
type: "object"
|
|
25859
25936
|
}
|
|
@@ -25886,19 +25963,29 @@ var openapi_default = {
|
|
|
25886
25963
|
tags: ["/phones"],
|
|
25887
25964
|
"x-fern-sdk-group-name": ["phones"],
|
|
25888
25965
|
"x-fern-sdk-method-name": "deactivate",
|
|
25889
|
-
"x-response-key": null
|
|
25966
|
+
"x-response-key": null,
|
|
25967
|
+
"x-title": "Deactivate a Phone"
|
|
25890
25968
|
}
|
|
25891
25969
|
},
|
|
25892
25970
|
"/phones/list": {
|
|
25893
25971
|
post: {
|
|
25972
|
+
description: "Returns a list of all phones. To filter the list of returned phones by a specific owner user identity or credential, include the `owner_user_identity_id` or `acs_credential_id`, respectively, in the request body.",
|
|
25894
25973
|
operationId: "phonesListPost",
|
|
25895
25974
|
requestBody: {
|
|
25896
25975
|
content: {
|
|
25897
25976
|
"application/json": {
|
|
25898
25977
|
schema: {
|
|
25899
25978
|
properties: {
|
|
25900
|
-
acs_credential_id: {
|
|
25901
|
-
|
|
25979
|
+
acs_credential_id: {
|
|
25980
|
+
description: "ID of the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) by which to filter the list of returned phones.",
|
|
25981
|
+
format: "uuid",
|
|
25982
|
+
type: "string"
|
|
25983
|
+
},
|
|
25984
|
+
owner_user_identity_id: {
|
|
25985
|
+
description: "ID of the user identity that represents the owner by which to filter the list of returned phones.",
|
|
25986
|
+
format: "uuid",
|
|
25987
|
+
type: "string"
|
|
25988
|
+
}
|
|
25902
25989
|
},
|
|
25903
25990
|
type: "object"
|
|
25904
25991
|
}
|
|
@@ -25937,11 +26024,13 @@ var openapi_default = {
|
|
|
25937
26024
|
"x-fern-sdk-group-name": ["phones"],
|
|
25938
26025
|
"x-fern-sdk-method-name": "list",
|
|
25939
26026
|
"x-fern-sdk-return-value": "phones",
|
|
25940
|
-
"x-response-key": "phones"
|
|
26027
|
+
"x-response-key": "phones",
|
|
26028
|
+
"x-title": "List Phones"
|
|
25941
26029
|
}
|
|
25942
26030
|
},
|
|
25943
26031
|
"/phones/simulate/create_sandbox_phone": {
|
|
25944
26032
|
post: {
|
|
26033
|
+
description: "Creates a new simulated phone in a [sandbox workspace](https://docs.seam.co/latest/core-concepts/workspaces#sandbox-workspaces). For more information, see [Creating a Simulated Phone for a User Identity](https://docs.seam.co/latest/capability-guides/mobile-access/developing-in-a-sandbox-workspace#creating-a-simulated-phone-for-a-user-identity).",
|
|
25945
26034
|
operationId: "phonesSimulateCreateSandboxPhonePost",
|
|
25946
26035
|
requestBody: {
|
|
25947
26036
|
content: {
|
|
@@ -25950,42 +26039,79 @@ var openapi_default = {
|
|
|
25950
26039
|
properties: {
|
|
25951
26040
|
assa_abloy_metadata: {
|
|
25952
26041
|
default: {},
|
|
26042
|
+
description: "ASSA ABLOY metadata to associate with the simulated phone.",
|
|
25953
26043
|
properties: {
|
|
25954
|
-
application_version: {
|
|
25955
|
-
|
|
25956
|
-
|
|
25957
|
-
|
|
25958
|
-
|
|
26044
|
+
application_version: {
|
|
26045
|
+
default: "1.0.0",
|
|
26046
|
+
description: "Application version that you want to use for the simulated phone.",
|
|
26047
|
+
type: "string"
|
|
26048
|
+
},
|
|
26049
|
+
ble_capability: {
|
|
26050
|
+
default: true,
|
|
26051
|
+
description: "Indicates whether the simulated phone should have Bluetooth low energy (BLE) capability.",
|
|
26052
|
+
type: "boolean"
|
|
26053
|
+
},
|
|
26054
|
+
hce_capability: {
|
|
26055
|
+
default: false,
|
|
26056
|
+
description: "Indicates whether the simulated phone should have host card emulation (HCE) capability.",
|
|
26057
|
+
type: "boolean"
|
|
26058
|
+
},
|
|
26059
|
+
nfc_capability: {
|
|
26060
|
+
default: false,
|
|
26061
|
+
description: "Indicates whether the simulated phone should have near-field communication (NFC) capability.",
|
|
26062
|
+
type: "boolean"
|
|
26063
|
+
},
|
|
26064
|
+
seos_applet_version: {
|
|
26065
|
+
default: "1.0.0",
|
|
26066
|
+
description: "SEOS applet version that you want to use for the simulated phone.",
|
|
26067
|
+
type: "string"
|
|
26068
|
+
},
|
|
25959
26069
|
seos_tsm_endpoint_id: {
|
|
25960
26070
|
default: 1,
|
|
26071
|
+
description: "ID of the SEOS trusted service manager (TSM) endpoint that you want to use for the simulated phone.",
|
|
25961
26072
|
format: "float",
|
|
25962
26073
|
type: "number"
|
|
25963
26074
|
}
|
|
25964
26075
|
},
|
|
25965
26076
|
type: "object"
|
|
25966
26077
|
},
|
|
25967
|
-
custom_sdk_installation_id: {
|
|
26078
|
+
custom_sdk_installation_id: {
|
|
26079
|
+
description: "ID of the custom SDK installation to use for the simulated phone.",
|
|
26080
|
+
type: "string"
|
|
26081
|
+
},
|
|
25968
26082
|
phone_metadata: {
|
|
25969
26083
|
default: {},
|
|
26084
|
+
description: "Metadata to associate with the simulated phone.",
|
|
25970
26085
|
properties: {
|
|
25971
26086
|
device_manufacturer: {
|
|
25972
26087
|
default: "Samsung",
|
|
26088
|
+
description: "Manufacturer that you want to use for the simulated phone.",
|
|
25973
26089
|
type: "string"
|
|
25974
26090
|
},
|
|
25975
26091
|
device_model: {
|
|
25976
26092
|
default: "Samsung Galaxy S10",
|
|
26093
|
+
description: "Device model that you want to use for the simulated phone.",
|
|
25977
26094
|
type: "string"
|
|
25978
26095
|
},
|
|
25979
26096
|
operating_system: {
|
|
25980
26097
|
default: "android",
|
|
26098
|
+
description: "Mobile operating system that you want to use for the simulated phone.",
|
|
25981
26099
|
enum: ["android", "ios"],
|
|
25982
26100
|
type: "string"
|
|
25983
26101
|
},
|
|
25984
|
-
os_version: {
|
|
26102
|
+
os_version: {
|
|
26103
|
+
default: "10",
|
|
26104
|
+
description: "Mobile operating system version that you want to use for the simulated phone.",
|
|
26105
|
+
type: "string"
|
|
26106
|
+
}
|
|
25985
26107
|
},
|
|
25986
26108
|
type: "object"
|
|
25987
26109
|
},
|
|
25988
|
-
user_identity_id: {
|
|
26110
|
+
user_identity_id: {
|
|
26111
|
+
description: "ID of the user identity to associate with the simulated phone.",
|
|
26112
|
+
format: "uuid",
|
|
26113
|
+
type: "string"
|
|
26114
|
+
}
|
|
25989
26115
|
},
|
|
25990
26116
|
required: ["user_identity_id"],
|
|
25991
26117
|
type: "object"
|
|
@@ -26022,7 +26148,8 @@ var openapi_default = {
|
|
|
26022
26148
|
"x-fern-sdk-group-name": ["phones", "simulate"],
|
|
26023
26149
|
"x-fern-sdk-method-name": "create_sandbox_phone",
|
|
26024
26150
|
"x-fern-sdk-return-value": "phone",
|
|
26025
|
-
"x-response-key": "phone"
|
|
26151
|
+
"x-response-key": "phone",
|
|
26152
|
+
"x-title": "Create a Sandbox Phone"
|
|
26026
26153
|
}
|
|
26027
26154
|
},
|
|
26028
26155
|
"/thermostats/activate_climate_preset": {
|