@seamapi/types 1.894.0 → 1.896.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 +39 -1
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +70 -0
- package/dist/index.cjs +39 -1
- package/dist/index.cjs.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 +28 -0
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +44 -0
- package/package.json +1 -1
- package/src/lib/seam/connect/models/events/access-codes.ts +24 -0
- package/src/lib/seam/connect/openapi.ts +33 -0
- package/src/lib/seam/connect/route-types.ts +52 -0
package/dist/connect.cjs
CHANGED
|
@@ -5540,7 +5540,17 @@ var access_code_created_event = access_code_event.extend({
|
|
|
5540
5540
|
An [access code](https://docs.seam.co/low-level-apis/smart-locks/access-codes) was created.
|
|
5541
5541
|
`);
|
|
5542
5542
|
var access_code_changed_event = access_code_event.extend({
|
|
5543
|
-
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
|
+
from: zod.z.string().nullable().describe("Previous value of the property, or null if not set."),
|
|
5548
|
+
to: 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
|
+
)
|
|
5544
5554
|
}).describe(`
|
|
5545
5555
|
---
|
|
5546
5556
|
route_path: /access_codes
|
|
@@ -23055,6 +23065,34 @@ var openapi = {
|
|
|
23055
23065
|
format: "uuid",
|
|
23056
23066
|
type: "string"
|
|
23057
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
|
+
from: {
|
|
23077
|
+
description: "Previous value of the property, or null if not set.",
|
|
23078
|
+
nullable: true,
|
|
23079
|
+
type: "string"
|
|
23080
|
+
},
|
|
23081
|
+
property: {
|
|
23082
|
+
description: "Name of the property that changed (e.g. `code`).",
|
|
23083
|
+
type: "string"
|
|
23084
|
+
},
|
|
23085
|
+
to: {
|
|
23086
|
+
description: "New value of the property, or null if cleared.",
|
|
23087
|
+
nullable: true,
|
|
23088
|
+
type: "string"
|
|
23089
|
+
}
|
|
23090
|
+
},
|
|
23091
|
+
required: ["property", "from", "to"],
|
|
23092
|
+
type: "object"
|
|
23093
|
+
},
|
|
23094
|
+
type: "array"
|
|
23095
|
+
},
|
|
23058
23096
|
connected_account_custom_metadata: {
|
|
23059
23097
|
additionalProperties: {
|
|
23060
23098
|
oneOf: [{ type: "string" }, { type: "boolean" }]
|