@seamapi/types 1.344.3 → 1.345.1
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 -40
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +164 -18
- 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 -17
- package/lib/seam/connect/openapi.js +113 -30
- 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 -30
- package/src/lib/seam/connect/route-types.ts +125 -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
|
|
@@ -9055,26 +9059,41 @@ var openapi_default = {
|
|
|
9055
9059
|
{
|
|
9056
9060
|
properties: {
|
|
9057
9061
|
assa_abloy_credential_service_metadata: {
|
|
9062
|
+
description: "ASSA ABLOY Credential Service metadata for the phone.",
|
|
9058
9063
|
properties: {
|
|
9059
9064
|
endpoints: {
|
|
9065
|
+
description: "Endpoints associated with the phone.",
|
|
9060
9066
|
items: {
|
|
9061
9067
|
properties: {
|
|
9062
|
-
endpoint_id: {
|
|
9063
|
-
|
|
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
|
+
}
|
|
9064
9076
|
},
|
|
9065
9077
|
required: ["endpoint_id", "is_active"],
|
|
9066
9078
|
type: "object"
|
|
9067
9079
|
},
|
|
9068
9080
|
type: "array"
|
|
9069
9081
|
},
|
|
9070
|
-
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
|
+
}
|
|
9071
9086
|
},
|
|
9072
9087
|
required: ["has_active_endpoint", "endpoints"],
|
|
9073
9088
|
type: "object"
|
|
9074
9089
|
},
|
|
9075
9090
|
salto_space_credential_service_metadata: {
|
|
9091
|
+
description: "Salto Space credential service metadata for the phone.",
|
|
9076
9092
|
properties: {
|
|
9077
|
-
has_active_phone: {
|
|
9093
|
+
has_active_phone: {
|
|
9094
|
+
description: "Indicates whether the credential service has an active associated phone.",
|
|
9095
|
+
type: "boolean"
|
|
9096
|
+
}
|
|
9078
9097
|
},
|
|
9079
9098
|
required: ["has_active_phone"],
|
|
9080
9099
|
type: "object"
|
|
@@ -14526,6 +14545,7 @@ var openapi_default = {
|
|
|
14526
14545
|
"x-route-path": "/noise_sensors/noise_thresholds"
|
|
14527
14546
|
},
|
|
14528
14547
|
phone: {
|
|
14548
|
+
description: "Properties of the phone.",
|
|
14529
14549
|
properties: {
|
|
14530
14550
|
can_hvac_cool: { type: "boolean" },
|
|
14531
14551
|
can_hvac_heat: { type: "boolean" },
|
|
@@ -14569,7 +14589,11 @@ var openapi_default = {
|
|
|
14569
14589
|
format: "uuid",
|
|
14570
14590
|
type: "string"
|
|
14571
14591
|
},
|
|
14572
|
-
device_type: {
|
|
14592
|
+
device_type: {
|
|
14593
|
+
description: "Type of phone.",
|
|
14594
|
+
enum: ["android_phone", "ios_phone"],
|
|
14595
|
+
type: "string"
|
|
14596
|
+
},
|
|
14573
14597
|
display_name: {
|
|
14574
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.",
|
|
14575
14599
|
type: "string"
|
|
@@ -14820,25 +14844,42 @@ var openapi_default = {
|
|
|
14820
14844
|
properties: {
|
|
14821
14845
|
properties: {
|
|
14822
14846
|
assa_abloy_credential_service_metadata: {
|
|
14847
|
+
description: "ASSA ABLOY Credential Service metadata for the phone.",
|
|
14823
14848
|
properties: {
|
|
14824
14849
|
endpoints: {
|
|
14850
|
+
description: "Endpoints associated with the phone.",
|
|
14825
14851
|
items: {
|
|
14826
14852
|
properties: {
|
|
14827
|
-
endpoint_id: {
|
|
14828
|
-
|
|
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
|
+
}
|
|
14829
14861
|
},
|
|
14830
14862
|
required: ["endpoint_id", "is_active"],
|
|
14831
14863
|
type: "object"
|
|
14832
14864
|
},
|
|
14833
14865
|
type: "array"
|
|
14834
14866
|
},
|
|
14835
|
-
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
|
+
}
|
|
14836
14871
|
},
|
|
14837
14872
|
required: ["has_active_endpoint", "endpoints"],
|
|
14838
14873
|
type: "object"
|
|
14839
14874
|
},
|
|
14840
14875
|
salto_space_credential_service_metadata: {
|
|
14841
|
-
|
|
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
|
+
},
|
|
14842
14883
|
required: ["has_active_phone"],
|
|
14843
14884
|
type: "object"
|
|
14844
14885
|
}
|
|
@@ -15085,16 +15126,6 @@ var openapi_default = {
|
|
|
15085
15126
|
type: "object",
|
|
15086
15127
|
"x-route-path": "/phones"
|
|
15087
15128
|
},
|
|
15088
|
-
service_health: {
|
|
15089
|
-
properties: {
|
|
15090
|
-
description: { type: "string" },
|
|
15091
|
-
service: { type: "string" },
|
|
15092
|
-
status: { enum: ["healthy", "degraded", "down"], type: "string" }
|
|
15093
|
-
},
|
|
15094
|
-
required: ["service", "status", "description"],
|
|
15095
|
-
type: "object",
|
|
15096
|
-
"x-route-path": "/health"
|
|
15097
|
-
},
|
|
15098
15129
|
thermostat_schedule: {
|
|
15099
15130
|
description: "Represents a [thermostat schedule](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-thermostat-schedules) that activates a configured [climate preset](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-climate-presets) on a [thermostat](https://docs.seam.co/latest/capability-guides/thermostats) at a specified starting time and deactivates the climate preset at a specified ending time.",
|
|
15100
15131
|
properties: {
|
|
@@ -25878,12 +25909,18 @@ var openapi_default = {
|
|
|
25878
25909
|
},
|
|
25879
25910
|
"/phones/deactivate": {
|
|
25880
25911
|
post: {
|
|
25912
|
+
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).",
|
|
25881
25913
|
operationId: "phonesDeactivatePost",
|
|
25882
25914
|
requestBody: {
|
|
25883
25915
|
content: {
|
|
25884
25916
|
"application/json": {
|
|
25885
25917
|
schema: {
|
|
25886
|
-
properties: {
|
|
25918
|
+
properties: {
|
|
25919
|
+
device_id: {
|
|
25920
|
+
description: "Device ID of the desired phone.",
|
|
25921
|
+
type: "string"
|
|
25922
|
+
}
|
|
25923
|
+
},
|
|
25887
25924
|
required: ["device_id"],
|
|
25888
25925
|
type: "object"
|
|
25889
25926
|
}
|
|
@@ -25916,19 +25953,29 @@ var openapi_default = {
|
|
|
25916
25953
|
tags: ["/phones"],
|
|
25917
25954
|
"x-fern-sdk-group-name": ["phones"],
|
|
25918
25955
|
"x-fern-sdk-method-name": "deactivate",
|
|
25919
|
-
"x-response-key": null
|
|
25956
|
+
"x-response-key": null,
|
|
25957
|
+
"x-title": "Deactivate a Phone"
|
|
25920
25958
|
}
|
|
25921
25959
|
},
|
|
25922
25960
|
"/phones/list": {
|
|
25923
25961
|
post: {
|
|
25962
|
+
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.",
|
|
25924
25963
|
operationId: "phonesListPost",
|
|
25925
25964
|
requestBody: {
|
|
25926
25965
|
content: {
|
|
25927
25966
|
"application/json": {
|
|
25928
25967
|
schema: {
|
|
25929
25968
|
properties: {
|
|
25930
|
-
acs_credential_id: {
|
|
25931
|
-
|
|
25969
|
+
acs_credential_id: {
|
|
25970
|
+
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.",
|
|
25971
|
+
format: "uuid",
|
|
25972
|
+
type: "string"
|
|
25973
|
+
},
|
|
25974
|
+
owner_user_identity_id: {
|
|
25975
|
+
description: "ID of the user identity that represents the owner by which to filter the list of returned phones.",
|
|
25976
|
+
format: "uuid",
|
|
25977
|
+
type: "string"
|
|
25978
|
+
}
|
|
25932
25979
|
},
|
|
25933
25980
|
type: "object"
|
|
25934
25981
|
}
|
|
@@ -25967,11 +26014,13 @@ var openapi_default = {
|
|
|
25967
26014
|
"x-fern-sdk-group-name": ["phones"],
|
|
25968
26015
|
"x-fern-sdk-method-name": "list",
|
|
25969
26016
|
"x-fern-sdk-return-value": "phones",
|
|
25970
|
-
"x-response-key": "phones"
|
|
26017
|
+
"x-response-key": "phones",
|
|
26018
|
+
"x-title": "List Phones"
|
|
25971
26019
|
}
|
|
25972
26020
|
},
|
|
25973
26021
|
"/phones/simulate/create_sandbox_phone": {
|
|
25974
26022
|
post: {
|
|
26023
|
+
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).",
|
|
25975
26024
|
operationId: "phonesSimulateCreateSandboxPhonePost",
|
|
25976
26025
|
requestBody: {
|
|
25977
26026
|
content: {
|
|
@@ -25980,42 +26029,79 @@ var openapi_default = {
|
|
|
25980
26029
|
properties: {
|
|
25981
26030
|
assa_abloy_metadata: {
|
|
25982
26031
|
default: {},
|
|
26032
|
+
description: "ASSA ABLOY metadata to associate with the simulated phone.",
|
|
25983
26033
|
properties: {
|
|
25984
|
-
application_version: {
|
|
25985
|
-
|
|
25986
|
-
|
|
25987
|
-
|
|
25988
|
-
|
|
26034
|
+
application_version: {
|
|
26035
|
+
default: "1.0.0",
|
|
26036
|
+
description: "Application version that you want to use for the simulated phone.",
|
|
26037
|
+
type: "string"
|
|
26038
|
+
},
|
|
26039
|
+
ble_capability: {
|
|
26040
|
+
default: true,
|
|
26041
|
+
description: "Indicates whether the simulated phone should have Bluetooth low energy (BLE) capability.",
|
|
26042
|
+
type: "boolean"
|
|
26043
|
+
},
|
|
26044
|
+
hce_capability: {
|
|
26045
|
+
default: false,
|
|
26046
|
+
description: "Indicates whether the simulated phone should have host card emulation (HCE) capability.",
|
|
26047
|
+
type: "boolean"
|
|
26048
|
+
},
|
|
26049
|
+
nfc_capability: {
|
|
26050
|
+
default: false,
|
|
26051
|
+
description: "Indicates whether the simulated phone should have near-field communication (NFC) capability.",
|
|
26052
|
+
type: "boolean"
|
|
26053
|
+
},
|
|
26054
|
+
seos_applet_version: {
|
|
26055
|
+
default: "1.0.0",
|
|
26056
|
+
description: "SEOS applet version that you want to use for the simulated phone.",
|
|
26057
|
+
type: "string"
|
|
26058
|
+
},
|
|
25989
26059
|
seos_tsm_endpoint_id: {
|
|
25990
26060
|
default: 1,
|
|
26061
|
+
description: "ID of the SEOS trusted service manager (TSM) endpoint that you want to use for the simulated phone.",
|
|
25991
26062
|
format: "float",
|
|
25992
26063
|
type: "number"
|
|
25993
26064
|
}
|
|
25994
26065
|
},
|
|
25995
26066
|
type: "object"
|
|
25996
26067
|
},
|
|
25997
|
-
custom_sdk_installation_id: {
|
|
26068
|
+
custom_sdk_installation_id: {
|
|
26069
|
+
description: "ID of the custom SDK installation to use for the simulated phone.",
|
|
26070
|
+
type: "string"
|
|
26071
|
+
},
|
|
25998
26072
|
phone_metadata: {
|
|
25999
26073
|
default: {},
|
|
26074
|
+
description: "Metadata to associate with the simulated phone.",
|
|
26000
26075
|
properties: {
|
|
26001
26076
|
device_manufacturer: {
|
|
26002
26077
|
default: "Samsung",
|
|
26078
|
+
description: "Manufacturer that you want to use for the simulated phone.",
|
|
26003
26079
|
type: "string"
|
|
26004
26080
|
},
|
|
26005
26081
|
device_model: {
|
|
26006
26082
|
default: "Samsung Galaxy S10",
|
|
26083
|
+
description: "Device model that you want to use for the simulated phone.",
|
|
26007
26084
|
type: "string"
|
|
26008
26085
|
},
|
|
26009
26086
|
operating_system: {
|
|
26010
26087
|
default: "android",
|
|
26088
|
+
description: "Mobile operating system that you want to use for the simulated phone.",
|
|
26011
26089
|
enum: ["android", "ios"],
|
|
26012
26090
|
type: "string"
|
|
26013
26091
|
},
|
|
26014
|
-
os_version: {
|
|
26092
|
+
os_version: {
|
|
26093
|
+
default: "10",
|
|
26094
|
+
description: "Mobile operating system version that you want to use for the simulated phone.",
|
|
26095
|
+
type: "string"
|
|
26096
|
+
}
|
|
26015
26097
|
},
|
|
26016
26098
|
type: "object"
|
|
26017
26099
|
},
|
|
26018
|
-
user_identity_id: {
|
|
26100
|
+
user_identity_id: {
|
|
26101
|
+
description: "ID of the user identity to associate with the simulated phone.",
|
|
26102
|
+
format: "uuid",
|
|
26103
|
+
type: "string"
|
|
26104
|
+
}
|
|
26019
26105
|
},
|
|
26020
26106
|
required: ["user_identity_id"],
|
|
26021
26107
|
type: "object"
|
|
@@ -26052,7 +26138,8 @@ var openapi_default = {
|
|
|
26052
26138
|
"x-fern-sdk-group-name": ["phones", "simulate"],
|
|
26053
26139
|
"x-fern-sdk-method-name": "create_sandbox_phone",
|
|
26054
26140
|
"x-fern-sdk-return-value": "phone",
|
|
26055
|
-
"x-response-key": "phone"
|
|
26141
|
+
"x-response-key": "phone",
|
|
26142
|
+
"x-title": "Create a Sandbox Phone"
|
|
26056
26143
|
}
|
|
26057
26144
|
},
|
|
26058
26145
|
"/thermostats/activate_climate_preset": {
|