@seamapi/types 1.893.0 → 1.895.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 +46 -3
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +73 -2
- package/dist/index.cjs +46 -3
- package/dist/index.cjs.map +1 -1
- package/lib/seam/connect/models/devices/device-provider.d.ts +3 -2
- package/lib/seam/connect/models/devices/device-provider.js +3 -0
- package/lib/seam/connect/models/devices/device-provider.js.map +1 -1
- package/lib/seam/connect/models/events/access-codes.d.ts +52 -0
- package/lib/seam/connect/models/events/access-codes.js +20 -0
- package/lib/seam/connect/models/events/access-codes.js.map +1 -1
- package/lib/seam/connect/models/events/seam-event.d.ts +26 -0
- package/lib/seam/connect/openapi.js +30 -0
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +46 -2
- package/package.json +1 -1
- package/src/lib/seam/connect/models/devices/device-provider.ts +3 -0
- package/src/lib/seam/connect/models/events/access-codes.ts +24 -0
- package/src/lib/seam/connect/openapi.ts +35 -0
- package/src/lib/seam/connect/route-types.ts +54 -0
package/dist/connect.cjs
CHANGED
|
@@ -2086,6 +2086,7 @@ var DEVICE_PROVIDERS = {
|
|
|
2086
2086
|
ULTRALOQ: "ultraloq",
|
|
2087
2087
|
DUSAW: "dusaw",
|
|
2088
2088
|
SIFELY: "sifely",
|
|
2089
|
+
THIRTY_THREE_LOCK: "thirty_three_lock",
|
|
2089
2090
|
RING: "ring",
|
|
2090
2091
|
ICAL: "ical",
|
|
2091
2092
|
LODGIFY: "lodgify",
|
|
@@ -2135,7 +2136,8 @@ var PROVIDER_CATEGORY_MAP = {
|
|
|
2135
2136
|
"keyincode",
|
|
2136
2137
|
"sifely",
|
|
2137
2138
|
"omnitec",
|
|
2138
|
-
"dusaw"
|
|
2139
|
+
"dusaw",
|
|
2140
|
+
"thirty_three_lock"
|
|
2139
2141
|
],
|
|
2140
2142
|
consumer_smartlocks: [
|
|
2141
2143
|
"akiles",
|
|
@@ -2155,7 +2157,8 @@ var PROVIDER_CATEGORY_MAP = {
|
|
|
2155
2157
|
"korelock",
|
|
2156
2158
|
"dusaw",
|
|
2157
2159
|
"keyincode",
|
|
2158
|
-
"sifely"
|
|
2160
|
+
"sifely",
|
|
2161
|
+
"thirty_three_lock"
|
|
2159
2162
|
],
|
|
2160
2163
|
beta: [],
|
|
2161
2164
|
thermostats: ["ecobee", "nest", "sensi", "honeywell_resideo", "first_alert"],
|
|
@@ -5537,7 +5540,17 @@ var access_code_created_event = access_code_event.extend({
|
|
|
5537
5540
|
An [access code](https://docs.seam.co/low-level-apis/smart-locks/access-codes) was created.
|
|
5538
5541
|
`);
|
|
5539
5542
|
var access_code_changed_event = access_code_event.extend({
|
|
5540
|
-
event_type: zod.z.literal("access_code.changed")
|
|
5543
|
+
event_type: zod.z.literal("access_code.changed"),
|
|
5544
|
+
changed_properties: zod.z.array(
|
|
5545
|
+
zod.z.object({
|
|
5546
|
+
property: zod.z.string().describe("Name of the property that changed (e.g. `code`)."),
|
|
5547
|
+
previous_value: zod.z.string().nullable().describe("Previous value of the property, or null if not set."),
|
|
5548
|
+
new_value: zod.z.string().nullable().describe("New value of the property, or null if cleared.")
|
|
5549
|
+
})
|
|
5550
|
+
).optional().describe("List of properties that changed on the access code."),
|
|
5551
|
+
change_reason: zod.z.string().optional().describe(
|
|
5552
|
+
"Human-readable reason for the change (e.g. `ongoing code auto-renewed`)."
|
|
5553
|
+
)
|
|
5541
5554
|
}).describe(`
|
|
5542
5555
|
---
|
|
5543
5556
|
route_path: /access_codes
|
|
@@ -22894,6 +22907,7 @@ var openapi = {
|
|
|
22894
22907
|
"ultraloq",
|
|
22895
22908
|
"dusaw",
|
|
22896
22909
|
"sifely",
|
|
22910
|
+
"thirty_three_lock",
|
|
22897
22911
|
"ring",
|
|
22898
22912
|
"ical",
|
|
22899
22913
|
"lodgify",
|
|
@@ -23051,6 +23065,34 @@ var openapi = {
|
|
|
23051
23065
|
format: "uuid",
|
|
23052
23066
|
type: "string"
|
|
23053
23067
|
},
|
|
23068
|
+
change_reason: {
|
|
23069
|
+
description: "Human-readable reason for the change (e.g. `ongoing code auto-renewed`).",
|
|
23070
|
+
type: "string"
|
|
23071
|
+
},
|
|
23072
|
+
changed_properties: {
|
|
23073
|
+
description: "List of properties that changed on the access code.",
|
|
23074
|
+
items: {
|
|
23075
|
+
properties: {
|
|
23076
|
+
new_value: {
|
|
23077
|
+
description: "New value of the property, or null if cleared.",
|
|
23078
|
+
nullable: true,
|
|
23079
|
+
type: "string"
|
|
23080
|
+
},
|
|
23081
|
+
previous_value: {
|
|
23082
|
+
description: "Previous value of the property, or null if not set.",
|
|
23083
|
+
nullable: true,
|
|
23084
|
+
type: "string"
|
|
23085
|
+
},
|
|
23086
|
+
property: {
|
|
23087
|
+
description: "Name of the property that changed (e.g. `code`).",
|
|
23088
|
+
type: "string"
|
|
23089
|
+
}
|
|
23090
|
+
},
|
|
23091
|
+
required: ["property", "previous_value", "new_value"],
|
|
23092
|
+
type: "object"
|
|
23093
|
+
},
|
|
23094
|
+
type: "array"
|
|
23095
|
+
},
|
|
23054
23096
|
connected_account_custom_metadata: {
|
|
23055
23097
|
additionalProperties: {
|
|
23056
23098
|
oneOf: [{ type: "string" }, { type: "boolean" }]
|
|
@@ -54621,6 +54663,7 @@ var openapi = {
|
|
|
54621
54663
|
"ultraloq",
|
|
54622
54664
|
"dusaw",
|
|
54623
54665
|
"sifely",
|
|
54666
|
+
"thirty_three_lock",
|
|
54624
54667
|
"ring",
|
|
54625
54668
|
"ical",
|
|
54626
54669
|
"lodgify",
|