@seamapi/types 1.501.0 → 1.503.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 +18 -133
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +179 -1358
- package/dist/index.cjs +18 -133
- package/dist/index.cjs.map +1 -1
- package/lib/seam/connect/models/access-codes/managed-access-code.d.ts +3 -0
- package/lib/seam/connect/models/access-codes/managed-access-code.js +4 -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 +3 -0
- package/lib/seam/connect/models/access-codes/unmanaged-access-code.js +1 -0
- package/lib/seam/connect/models/access-codes/unmanaged-access-code.js.map +1 -1
- package/lib/seam/connect/models/acs/acs-credential.d.ts +8 -8
- package/lib/seam/connect/models/acs/metadata/assa-abloy-vostio.d.ts +2 -2
- package/lib/seam/connect/models/action-attempts/action-attempt.d.ts +28 -28
- package/lib/seam/connect/models/action-attempts/encode-credential.d.ts +12 -12
- package/lib/seam/connect/models/action-attempts/scan-credential.d.ts +16 -16
- package/lib/seam/connect/models/batch.d.ts +171 -1196
- package/lib/seam/connect/models/devices/device-metadata.d.ts +5 -100
- package/lib/seam/connect/models/devices/device-metadata.js +1 -62
- package/lib/seam/connect/models/devices/device-metadata.js.map +1 -1
- package/lib/seam/connect/models/devices/device.d.ts +7 -140
- package/lib/seam/connect/models/devices/unmanaged-device.d.ts +5 -100
- package/lib/seam/connect/models/phones/phone-session.d.ts +14 -14
- package/lib/seam/connect/openapi.d.ts +10 -91
- package/lib/seam/connect/openapi.js +12 -112
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +43 -663
- package/package.json +1 -1
- package/src/lib/seam/connect/models/access-codes/managed-access-code.ts +6 -0
- package/src/lib/seam/connect/models/access-codes/unmanaged-access-code.ts +1 -0
- package/src/lib/seam/connect/models/devices/device-metadata.ts +1 -62
- package/src/lib/seam/connect/openapi.ts +14 -124
- package/src/lib/seam/connect/route-types.ts +43 -663
package/dist/connect.cjs
CHANGED
|
@@ -1028,27 +1028,8 @@ var device_metadata = zod.z.object({
|
|
|
1028
1028
|
product_type: zod.z.string().describe(`Product type for a Sensi device.`)
|
|
1029
1029
|
}).describe(`Metadata for a Sensi device.`),
|
|
1030
1030
|
keynest_metadata: zod.z.object({
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
property_id: zod.z.string().nullable().describe(`Property ID for a KeyNest device.`),
|
|
1034
|
-
property_postcode: zod.z.string().nullable().describe(`Property postcode for a KeyNest device.`),
|
|
1035
|
-
key_notes: zod.z.string().nullable().describe(`Key notes for a KeyNest device.`),
|
|
1036
|
-
subscription_plan: zod.z.string().describe(`Subscription plan for a KeyNest device.`),
|
|
1037
|
-
status_type: zod.z.string().describe(`Status type for a KeyNest device.`),
|
|
1038
|
-
current_or_last_store_id: zod.z.number().describe(`Current or last store ID for a KeyNest device.`),
|
|
1039
|
-
last_movement: zod.z.string().describe(`Last movement timestamp for a KeyNest device.`),
|
|
1040
|
-
address: zod.z.string().nullable().describe(`Address for a KeyNest device.`),
|
|
1041
|
-
current_status: zod.z.string().nullable().describe(`Current status for a KeyNest device.`),
|
|
1042
|
-
current_user_name: zod.z.string().nullable().describe(`Current user name for a KeyNest device.`),
|
|
1043
|
-
current_user_email: zod.z.string().nullable().describe(`Current user email for a KeyNest device.`),
|
|
1044
|
-
current_user_phone_number: zod.z.string().nullable().describe(`Current user phone number for a KeyNest device.`),
|
|
1045
|
-
current_user_company: zod.z.string().nullable().describe(`Current user company for a KeyNest device.`),
|
|
1046
|
-
handover_method: zod.z.string().nullable().describe(`Handover method for a KeyNest device.`),
|
|
1047
|
-
keynest_app_user: zod.z.string().nullable().describe(`KeyNest app user for a KeyNest device.`),
|
|
1048
|
-
default_office_id: zod.z.number().describe(`Default office ID for a KeyNest device.`),
|
|
1049
|
-
fob_id: zod.z.number().describe(`Fob ID for a KeyNest device.`),
|
|
1050
|
-
has_photo: zod.z.boolean().describe(`Whether the KeyNest device has a photo.`)
|
|
1051
|
-
}).describe(`Metadata for a KeyNest device.`)
|
|
1031
|
+
device_name: zod.z.string().describe(`Device name for a KeyNest device.`)
|
|
1032
|
+
}).partial().describe(`Metadata for a KeyNest device.`)
|
|
1052
1033
|
}).partial().describe(`
|
|
1053
1034
|
---
|
|
1054
1035
|
property_group_key: provider_metadata
|
|
@@ -2131,6 +2112,9 @@ zod.z.object({
|
|
|
2131
2112
|
kwikset_unable_to_confirm_code_warning: kwikset_unable_to_confirm_code_warning.optional().nullable()
|
|
2132
2113
|
});
|
|
2133
2114
|
var access_code = zod.z.object({
|
|
2115
|
+
workspace_id: zod.z.string().uuid().describe(
|
|
2116
|
+
"Unique identifier for the Seam workspace associated with the access code."
|
|
2117
|
+
),
|
|
2134
2118
|
common_code_key: zod.z.string().nullable().describe(
|
|
2135
2119
|
"Unique identifier for a group of access codes that share the same code."
|
|
2136
2120
|
),
|
|
@@ -2238,6 +2222,7 @@ var access_code = zod.z.object({
|
|
|
2238
2222
|
In addition, for certain devices, Seam also supports [offline access codes](https://docs.seam.co/latest/capability-guides/smart-locks/access-codes#offline-access-codes). Offline access (PIN) codes are designed for door locks that might not always maintain an internet connection. For this type of access code, the device manufacturer uses encryption keys (tokens) to create server-based registries of algorithmically-generated offline PIN codes. Because the tokens remain synchronized with the managed devices, the locks do not require an active internet connection\u2014and you do not need to be near the locks\u2014to create an offline access code. Then, owners or managers can share these offline codes with users through a variety of mechanisms, such as messaging applications. That is, lock users do not need to install a smartphone application to receive an offline access code.
|
|
2239
2223
|
`);
|
|
2240
2224
|
var unmanaged_access_code = access_code.pick({
|
|
2225
|
+
workspace_id: true,
|
|
2241
2226
|
type: true,
|
|
2242
2227
|
access_code_id: true,
|
|
2243
2228
|
device_id: true,
|
|
@@ -7094,9 +7079,15 @@ var openapi_default = {
|
|
|
7094
7079
|
provider_metadata: { name: "Provider Metadata" },
|
|
7095
7080
|
thermostats: { name: "Thermostats" }
|
|
7096
7081
|
}
|
|
7082
|
+
},
|
|
7083
|
+
workspace_id: {
|
|
7084
|
+
description: "Unique identifier for the Seam workspace associated with the access code.",
|
|
7085
|
+
format: "uuid",
|
|
7086
|
+
type: "string"
|
|
7097
7087
|
}
|
|
7098
7088
|
},
|
|
7099
7089
|
required: [
|
|
7090
|
+
"workspace_id",
|
|
7100
7091
|
"common_code_key",
|
|
7101
7092
|
"type",
|
|
7102
7093
|
"access_code_id",
|
|
@@ -15014,123 +15005,11 @@ var openapi_default = {
|
|
|
15014
15005
|
keynest_metadata: {
|
|
15015
15006
|
description: "Metadata for a KeyNest device.",
|
|
15016
15007
|
properties: {
|
|
15017
|
-
address: {
|
|
15018
|
-
description: "Address for a KeyNest device.",
|
|
15019
|
-
nullable: true,
|
|
15020
|
-
type: "string"
|
|
15021
|
-
},
|
|
15022
|
-
current_or_last_store_id: {
|
|
15023
|
-
description: "Current or last store ID for a KeyNest device.",
|
|
15024
|
-
format: "float",
|
|
15025
|
-
type: "number"
|
|
15026
|
-
},
|
|
15027
|
-
current_status: {
|
|
15028
|
-
description: "Current status for a KeyNest device.",
|
|
15029
|
-
nullable: true,
|
|
15030
|
-
type: "string"
|
|
15031
|
-
},
|
|
15032
|
-
current_user_company: {
|
|
15033
|
-
description: "Current user company for a KeyNest device.",
|
|
15034
|
-
nullable: true,
|
|
15035
|
-
type: "string"
|
|
15036
|
-
},
|
|
15037
|
-
current_user_email: {
|
|
15038
|
-
description: "Current user email for a KeyNest device.",
|
|
15039
|
-
nullable: true,
|
|
15040
|
-
type: "string"
|
|
15041
|
-
},
|
|
15042
|
-
current_user_name: {
|
|
15043
|
-
description: "Current user name for a KeyNest device.",
|
|
15044
|
-
nullable: true,
|
|
15045
|
-
type: "string"
|
|
15046
|
-
},
|
|
15047
|
-
current_user_phone_number: {
|
|
15048
|
-
description: "Current user phone number for a KeyNest device.",
|
|
15049
|
-
nullable: true,
|
|
15050
|
-
type: "string"
|
|
15051
|
-
},
|
|
15052
|
-
default_office_id: {
|
|
15053
|
-
description: "Default office ID for a KeyNest device.",
|
|
15054
|
-
format: "float",
|
|
15055
|
-
type: "number"
|
|
15056
|
-
},
|
|
15057
15008
|
device_name: {
|
|
15058
15009
|
description: "Device name for a KeyNest device.",
|
|
15059
15010
|
type: "string"
|
|
15060
|
-
},
|
|
15061
|
-
fob_id: {
|
|
15062
|
-
description: "Fob ID for a KeyNest device.",
|
|
15063
|
-
format: "float",
|
|
15064
|
-
type: "number"
|
|
15065
|
-
},
|
|
15066
|
-
handover_method: {
|
|
15067
|
-
description: "Handover method for a KeyNest device.",
|
|
15068
|
-
nullable: true,
|
|
15069
|
-
type: "string"
|
|
15070
|
-
},
|
|
15071
|
-
has_photo: {
|
|
15072
|
-
description: "Whether the KeyNest device has a photo.",
|
|
15073
|
-
type: "boolean"
|
|
15074
|
-
},
|
|
15075
|
-
key_id: {
|
|
15076
|
-
description: "Key ID for a KeyNest device.",
|
|
15077
|
-
type: "string"
|
|
15078
|
-
},
|
|
15079
|
-
key_notes: {
|
|
15080
|
-
description: "Key notes for a KeyNest device.",
|
|
15081
|
-
nullable: true,
|
|
15082
|
-
type: "string"
|
|
15083
|
-
},
|
|
15084
|
-
keynest_app_user: {
|
|
15085
|
-
description: "KeyNest app user for a KeyNest device.",
|
|
15086
|
-
nullable: true,
|
|
15087
|
-
type: "string"
|
|
15088
|
-
},
|
|
15089
|
-
last_movement: {
|
|
15090
|
-
description: "Last movement timestamp for a KeyNest device.",
|
|
15091
|
-
type: "string"
|
|
15092
|
-
},
|
|
15093
|
-
property_id: {
|
|
15094
|
-
description: "Property ID for a KeyNest device.",
|
|
15095
|
-
nullable: true,
|
|
15096
|
-
type: "string"
|
|
15097
|
-
},
|
|
15098
|
-
property_postcode: {
|
|
15099
|
-
description: "Property postcode for a KeyNest device.",
|
|
15100
|
-
nullable: true,
|
|
15101
|
-
type: "string"
|
|
15102
|
-
},
|
|
15103
|
-
status_type: {
|
|
15104
|
-
description: "Status type for a KeyNest device.",
|
|
15105
|
-
type: "string"
|
|
15106
|
-
},
|
|
15107
|
-
subscription_plan: {
|
|
15108
|
-
description: "Subscription plan for a KeyNest device.",
|
|
15109
|
-
type: "string"
|
|
15110
15011
|
}
|
|
15111
15012
|
},
|
|
15112
|
-
required: [
|
|
15113
|
-
"key_id",
|
|
15114
|
-
"device_name",
|
|
15115
|
-
"property_id",
|
|
15116
|
-
"property_postcode",
|
|
15117
|
-
"key_notes",
|
|
15118
|
-
"subscription_plan",
|
|
15119
|
-
"status_type",
|
|
15120
|
-
"current_or_last_store_id",
|
|
15121
|
-
"last_movement",
|
|
15122
|
-
"address",
|
|
15123
|
-
"current_status",
|
|
15124
|
-
"current_user_name",
|
|
15125
|
-
"current_user_email",
|
|
15126
|
-
"current_user_phone_number",
|
|
15127
|
-
"current_user_company",
|
|
15128
|
-
"handover_method",
|
|
15129
|
-
"keynest_app_user",
|
|
15130
|
-
"default_office_id",
|
|
15131
|
-
"fob_id",
|
|
15132
|
-
"has_photo"
|
|
15133
|
-
],
|
|
15134
15013
|
type: "object"
|
|
15135
15014
|
},
|
|
15136
15015
|
kwikset_metadata: {
|
|
@@ -25621,9 +25500,15 @@ var openapi_default = {
|
|
|
25621
25500
|
provider_metadata: { name: "Provider Metadata" },
|
|
25622
25501
|
thermostats: { name: "Thermostats" }
|
|
25623
25502
|
}
|
|
25503
|
+
},
|
|
25504
|
+
workspace_id: {
|
|
25505
|
+
description: "Unique identifier for the Seam workspace associated with the access code.",
|
|
25506
|
+
format: "uuid",
|
|
25507
|
+
type: "string"
|
|
25624
25508
|
}
|
|
25625
25509
|
},
|
|
25626
25510
|
required: [
|
|
25511
|
+
"workspace_id",
|
|
25627
25512
|
"type",
|
|
25628
25513
|
"access_code_id",
|
|
25629
25514
|
"device_id",
|