@seamapi/types 1.919.0 → 1.920.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 +142 -0
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +210 -4
- package/dist/index.cjs +142 -0
- package/dist/index.cjs.map +1 -1
- package/lib/seam/connect/models/events/access-codes.d.ts +118 -0
- package/lib/seam/connect/models/events/access-codes.js +34 -0
- package/lib/seam/connect/models/events/access-codes.js.map +1 -1
- package/lib/seam/connect/models/events/seam-event.d.ts +59 -1
- package/lib/seam/connect/openapi.js +112 -0
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +152 -4
- package/package.json +1 -1
- package/src/lib/seam/connect/models/events/access-codes.ts +48 -0
- package/src/lib/seam/connect/openapi.ts +121 -0
- package/src/lib/seam/connect/route-types.ts +212 -0
package/dist/connect.cjs
CHANGED
|
@@ -5623,6 +5623,35 @@ var access_code_time_frame_changed_event = access_code_event.extend({
|
|
|
5623
5623
|
---
|
|
5624
5624
|
The time frame of an [access code](https://docs.seam.co/low-level-apis/smart-locks/access-codes) was changed on the device.
|
|
5625
5625
|
`);
|
|
5626
|
+
var requested_mutation = zod.z.object({
|
|
5627
|
+
mutation_code: zod.z.enum([
|
|
5628
|
+
"updating_name",
|
|
5629
|
+
"updating_code",
|
|
5630
|
+
"updating_time_frame",
|
|
5631
|
+
"deleting",
|
|
5632
|
+
"creating",
|
|
5633
|
+
"deferring_creation"
|
|
5634
|
+
]).describe(
|
|
5635
|
+
"Code identifying the type of mutation requested, such as `updating_name`, `updating_code`, `updating_time_frame`, or `deleting`."
|
|
5636
|
+
),
|
|
5637
|
+
from: zod.z.record(zod.z.string(), zod.z.unknown()).optional().describe(
|
|
5638
|
+
"Previous property values before the requested change. Keys depend on the mutation type. Absent for non-property mutations like `deleting`."
|
|
5639
|
+
),
|
|
5640
|
+
to: zod.z.record(zod.z.string(), zod.z.unknown()).optional().describe(
|
|
5641
|
+
"New property values after the requested change. Keys depend on the mutation type. Absent for non-property mutations like `deleting`."
|
|
5642
|
+
)
|
|
5643
|
+
}).describe("Record describing a single requested mutation.");
|
|
5644
|
+
var access_code_mutations_requested_event = access_code_event.extend({
|
|
5645
|
+
event_type: zod.z.literal("access_code.mutations_requested"),
|
|
5646
|
+
requested_mutations: zod.z.array(requested_mutation).describe(
|
|
5647
|
+
"Array of mutations requested on the access code, each containing the mutation type and from/to values."
|
|
5648
|
+
)
|
|
5649
|
+
}).describe(`
|
|
5650
|
+
---
|
|
5651
|
+
route_path: /access_codes
|
|
5652
|
+
---
|
|
5653
|
+
Mutations were requested on an [access code](https://docs.seam.co/low-level-apis/smart-locks/access-codes). This event fires at request time, before the change is confirmed on the device.
|
|
5654
|
+
`);
|
|
5626
5655
|
var access_code_scheduled_on_device_event = access_code_event.extend({
|
|
5627
5656
|
event_type: zod.z.literal("access_code.scheduled_on_device"),
|
|
5628
5657
|
code
|
|
@@ -5755,6 +5784,7 @@ var access_code_events = [
|
|
|
5755
5784
|
access_code_name_changed_event,
|
|
5756
5785
|
access_code_code_changed_event,
|
|
5757
5786
|
access_code_time_frame_changed_event,
|
|
5787
|
+
access_code_mutations_requested_event,
|
|
5758
5788
|
access_code_scheduled_on_device_event,
|
|
5759
5789
|
access_code_set_on_device_event,
|
|
5760
5790
|
access_code_removed_from_device_event,
|
|
@@ -23378,6 +23408,110 @@ var openapi = {
|
|
|
23378
23408
|
type: "object",
|
|
23379
23409
|
"x-route-path": "/access_codes"
|
|
23380
23410
|
},
|
|
23411
|
+
{
|
|
23412
|
+
description: "Mutations were requested on an [access code](https://docs.seam.co/low-level-apis/smart-locks/access-codes). This event fires at request time, before the change is confirmed on the device.",
|
|
23413
|
+
properties: {
|
|
23414
|
+
access_code_id: {
|
|
23415
|
+
description: "ID of the affected access code.",
|
|
23416
|
+
format: "uuid",
|
|
23417
|
+
type: "string"
|
|
23418
|
+
},
|
|
23419
|
+
connected_account_custom_metadata: {
|
|
23420
|
+
additionalProperties: {
|
|
23421
|
+
oneOf: [{ type: "string" }, { type: "boolean" }]
|
|
23422
|
+
},
|
|
23423
|
+
description: "Custom metadata of the connected account, present when connected_account_id is provided.",
|
|
23424
|
+
type: "object"
|
|
23425
|
+
},
|
|
23426
|
+
connected_account_id: {
|
|
23427
|
+
description: "ID of the connected account associated with the affected access code.",
|
|
23428
|
+
format: "uuid",
|
|
23429
|
+
type: "string"
|
|
23430
|
+
},
|
|
23431
|
+
created_at: {
|
|
23432
|
+
description: "Date and time at which the event was created.",
|
|
23433
|
+
format: "date-time",
|
|
23434
|
+
type: "string"
|
|
23435
|
+
},
|
|
23436
|
+
device_custom_metadata: {
|
|
23437
|
+
additionalProperties: {
|
|
23438
|
+
oneOf: [{ type: "string" }, { type: "boolean" }]
|
|
23439
|
+
},
|
|
23440
|
+
description: "Custom metadata of the device, present when device_id is provided.",
|
|
23441
|
+
type: "object"
|
|
23442
|
+
},
|
|
23443
|
+
device_id: {
|
|
23444
|
+
description: "ID of the device associated with the affected access code.",
|
|
23445
|
+
format: "uuid",
|
|
23446
|
+
type: "string"
|
|
23447
|
+
},
|
|
23448
|
+
event_id: {
|
|
23449
|
+
description: "ID of the event.",
|
|
23450
|
+
format: "uuid",
|
|
23451
|
+
type: "string"
|
|
23452
|
+
},
|
|
23453
|
+
event_type: {
|
|
23454
|
+
enum: ["access_code.mutations_requested"],
|
|
23455
|
+
type: "string"
|
|
23456
|
+
},
|
|
23457
|
+
occurred_at: {
|
|
23458
|
+
description: "Date and time at which the event occurred.",
|
|
23459
|
+
format: "date-time",
|
|
23460
|
+
type: "string"
|
|
23461
|
+
},
|
|
23462
|
+
requested_mutations: {
|
|
23463
|
+
description: "Array of mutations requested on the access code, each containing the mutation type and from/to values.",
|
|
23464
|
+
items: {
|
|
23465
|
+
description: "Record describing a single requested mutation.",
|
|
23466
|
+
properties: {
|
|
23467
|
+
from: {
|
|
23468
|
+
additionalProperties: {},
|
|
23469
|
+
description: "Previous property values before the requested change. Keys depend on the mutation type. Absent for non-property mutations like `deleting`.",
|
|
23470
|
+
type: "object"
|
|
23471
|
+
},
|
|
23472
|
+
mutation_code: {
|
|
23473
|
+
description: "Code identifying the type of mutation requested, such as `updating_name`, `updating_code`, `updating_time_frame`, or `deleting`.",
|
|
23474
|
+
enum: [
|
|
23475
|
+
"updating_name",
|
|
23476
|
+
"updating_code",
|
|
23477
|
+
"updating_time_frame",
|
|
23478
|
+
"deleting",
|
|
23479
|
+
"creating",
|
|
23480
|
+
"deferring_creation"
|
|
23481
|
+
],
|
|
23482
|
+
type: "string"
|
|
23483
|
+
},
|
|
23484
|
+
to: {
|
|
23485
|
+
additionalProperties: {},
|
|
23486
|
+
description: "New property values after the requested change. Keys depend on the mutation type. Absent for non-property mutations like `deleting`.",
|
|
23487
|
+
type: "object"
|
|
23488
|
+
}
|
|
23489
|
+
},
|
|
23490
|
+
required: ["mutation_code"],
|
|
23491
|
+
type: "object"
|
|
23492
|
+
},
|
|
23493
|
+
type: "array"
|
|
23494
|
+
},
|
|
23495
|
+
workspace_id: {
|
|
23496
|
+
description: "ID of the workspace associated with the event.",
|
|
23497
|
+
format: "uuid",
|
|
23498
|
+
type: "string"
|
|
23499
|
+
}
|
|
23500
|
+
},
|
|
23501
|
+
required: [
|
|
23502
|
+
"event_id",
|
|
23503
|
+
"workspace_id",
|
|
23504
|
+
"created_at",
|
|
23505
|
+
"occurred_at",
|
|
23506
|
+
"access_code_id",
|
|
23507
|
+
"device_id",
|
|
23508
|
+
"connected_account_id",
|
|
23509
|
+
"event_type",
|
|
23510
|
+
"requested_mutations"
|
|
23511
|
+
],
|
|
23512
|
+
type: "object",
|
|
23513
|
+
"x-route-path": "/access_codes"
|
|
23514
|
+
},
|
|
23381
23515
|
{
|
|
23382
23516
|
description: "An [access code](https://docs.seam.co/low-level-apis/smart-locks/access-codes) was [scheduled natively](https://docs.seam.co/low-level-apis/smart-locks/access-codes#native-scheduling) on a device.",
|
|
23383
23517
|
properties: {
|
|
@@ -62763,6 +62897,7 @@ var openapi = {
|
|
|
62763
62897
|
"access_code.name_changed",
|
|
62764
62898
|
"access_code.code_changed",
|
|
62765
62899
|
"access_code.time_frame_changed",
|
|
62900
|
+
"access_code.mutations_requested",
|
|
62766
62901
|
"access_code.scheduled_on_device",
|
|
62767
62902
|
"access_code.set_on_device",
|
|
62768
62903
|
"access_code.removed_from_device",
|
|
@@ -62880,6 +63015,7 @@ var openapi = {
|
|
|
62880
63015
|
"access_code.name_changed",
|
|
62881
63016
|
"access_code.code_changed",
|
|
62882
63017
|
"access_code.time_frame_changed",
|
|
63018
|
+
"access_code.mutations_requested",
|
|
62883
63019
|
"access_code.scheduled_on_device",
|
|
62884
63020
|
"access_code.set_on_device",
|
|
62885
63021
|
"access_code.removed_from_device",
|
|
@@ -63297,6 +63433,7 @@ var openapi = {
|
|
|
63297
63433
|
"access_code.name_changed",
|
|
63298
63434
|
"access_code.code_changed",
|
|
63299
63435
|
"access_code.time_frame_changed",
|
|
63436
|
+
"access_code.mutations_requested",
|
|
63300
63437
|
"access_code.scheduled_on_device",
|
|
63301
63438
|
"access_code.set_on_device",
|
|
63302
63439
|
"access_code.removed_from_device",
|
|
@@ -63410,6 +63547,7 @@ var openapi = {
|
|
|
63410
63547
|
"access_code.name_changed",
|
|
63411
63548
|
"access_code.code_changed",
|
|
63412
63549
|
"access_code.time_frame_changed",
|
|
63550
|
+
"access_code.mutations_requested",
|
|
63413
63551
|
"access_code.scheduled_on_device",
|
|
63414
63552
|
"access_code.set_on_device",
|
|
63415
63553
|
"access_code.removed_from_device",
|
|
@@ -73364,6 +73502,7 @@ var openapi = {
|
|
|
73364
73502
|
"access_code.name_changed",
|
|
73365
73503
|
"access_code.code_changed",
|
|
73366
73504
|
"access_code.time_frame_changed",
|
|
73505
|
+
"access_code.mutations_requested",
|
|
73367
73506
|
"access_code.scheduled_on_device",
|
|
73368
73507
|
"access_code.set_on_device",
|
|
73369
73508
|
"access_code.removed_from_device",
|
|
@@ -73482,6 +73621,7 @@ var openapi = {
|
|
|
73482
73621
|
"access_code.name_changed",
|
|
73483
73622
|
"access_code.code_changed",
|
|
73484
73623
|
"access_code.time_frame_changed",
|
|
73624
|
+
"access_code.mutations_requested",
|
|
73485
73625
|
"access_code.scheduled_on_device",
|
|
73486
73626
|
"access_code.set_on_device",
|
|
73487
73627
|
"access_code.removed_from_device",
|
|
@@ -73661,6 +73801,7 @@ var openapi = {
|
|
|
73661
73801
|
"access_code.name_changed",
|
|
73662
73802
|
"access_code.code_changed",
|
|
73663
73803
|
"access_code.time_frame_changed",
|
|
73804
|
+
"access_code.mutations_requested",
|
|
73664
73805
|
"access_code.scheduled_on_device",
|
|
73665
73806
|
"access_code.set_on_device",
|
|
73666
73807
|
"access_code.removed_from_device",
|
|
@@ -73774,6 +73915,7 @@ var openapi = {
|
|
|
73774
73915
|
"access_code.name_changed",
|
|
73775
73916
|
"access_code.code_changed",
|
|
73776
73917
|
"access_code.time_frame_changed",
|
|
73918
|
+
"access_code.mutations_requested",
|
|
73777
73919
|
"access_code.scheduled_on_device",
|
|
73778
73920
|
"access_code.set_on_device",
|
|
73779
73921
|
"access_code.removed_from_device",
|