@seamapi/types 1.919.0 → 1.921.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 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: {
@@ -38087,7 +38221,6 @@ var openapi = {
38087
38221
  type: "boolean"
38088
38222
  },
38089
38223
  max_time_rounding: {
38090
- default: "1hour",
38091
38224
  description: "Maximum rounding adjustment. To create a daily-bound [offline access code](https://docs.seam.co/low-level-apis/smart-locks/access-codes/offline-access-codes) for devices that support this feature, set this parameter to `1d`.",
38092
38225
  enum: ["1hour", "1day", "1h", "1d"],
38093
38226
  type: "string"
@@ -40369,7 +40502,6 @@ var openapi = {
40369
40502
  type: "boolean"
40370
40503
  },
40371
40504
  max_time_rounding: {
40372
- default: "1hour",
40373
40505
  description: "Maximum rounding adjustment. To create a daily-bound [offline access code](https://docs.seam.co/low-level-apis/smart-locks/access-codes/offline-access-codes) for devices that support this feature, set this parameter to `1d`.",
40374
40506
  enum: ["1hour", "1day", "1h", "1d"],
40375
40507
  type: "string"
@@ -40507,7 +40639,6 @@ var openapi = {
40507
40639
  type: "boolean"
40508
40640
  },
40509
40641
  max_time_rounding: {
40510
- default: "1hour",
40511
40642
  description: "Maximum rounding adjustment. To create a daily-bound [offline access code](https://docs.seam.co/low-level-apis/smart-locks/access-codes/offline-access-codes) for devices that support this feature, set this parameter to `1d`.",
40512
40643
  enum: ["1hour", "1day", "1h", "1d"],
40513
40644
  type: "string"
@@ -40645,7 +40776,6 @@ var openapi = {
40645
40776
  type: "boolean"
40646
40777
  },
40647
40778
  max_time_rounding: {
40648
- default: "1hour",
40649
40779
  description: "Maximum rounding adjustment. To create a daily-bound [offline access code](https://docs.seam.co/low-level-apis/smart-locks/access-codes/offline-access-codes) for devices that support this feature, set this parameter to `1d`.",
40650
40780
  enum: ["1hour", "1day", "1h", "1d"],
40651
40781
  type: "string"
@@ -62763,6 +62893,7 @@ var openapi = {
62763
62893
  "access_code.name_changed",
62764
62894
  "access_code.code_changed",
62765
62895
  "access_code.time_frame_changed",
62896
+ "access_code.mutations_requested",
62766
62897
  "access_code.scheduled_on_device",
62767
62898
  "access_code.set_on_device",
62768
62899
  "access_code.removed_from_device",
@@ -62880,6 +63011,7 @@ var openapi = {
62880
63011
  "access_code.name_changed",
62881
63012
  "access_code.code_changed",
62882
63013
  "access_code.time_frame_changed",
63014
+ "access_code.mutations_requested",
62883
63015
  "access_code.scheduled_on_device",
62884
63016
  "access_code.set_on_device",
62885
63017
  "access_code.removed_from_device",
@@ -63297,6 +63429,7 @@ var openapi = {
63297
63429
  "access_code.name_changed",
63298
63430
  "access_code.code_changed",
63299
63431
  "access_code.time_frame_changed",
63432
+ "access_code.mutations_requested",
63300
63433
  "access_code.scheduled_on_device",
63301
63434
  "access_code.set_on_device",
63302
63435
  "access_code.removed_from_device",
@@ -63410,6 +63543,7 @@ var openapi = {
63410
63543
  "access_code.name_changed",
63411
63544
  "access_code.code_changed",
63412
63545
  "access_code.time_frame_changed",
63546
+ "access_code.mutations_requested",
63413
63547
  "access_code.scheduled_on_device",
63414
63548
  "access_code.set_on_device",
63415
63549
  "access_code.removed_from_device",
@@ -73364,6 +73498,7 @@ var openapi = {
73364
73498
  "access_code.name_changed",
73365
73499
  "access_code.code_changed",
73366
73500
  "access_code.time_frame_changed",
73501
+ "access_code.mutations_requested",
73367
73502
  "access_code.scheduled_on_device",
73368
73503
  "access_code.set_on_device",
73369
73504
  "access_code.removed_from_device",
@@ -73482,6 +73617,7 @@ var openapi = {
73482
73617
  "access_code.name_changed",
73483
73618
  "access_code.code_changed",
73484
73619
  "access_code.time_frame_changed",
73620
+ "access_code.mutations_requested",
73485
73621
  "access_code.scheduled_on_device",
73486
73622
  "access_code.set_on_device",
73487
73623
  "access_code.removed_from_device",
@@ -73661,6 +73797,7 @@ var openapi = {
73661
73797
  "access_code.name_changed",
73662
73798
  "access_code.code_changed",
73663
73799
  "access_code.time_frame_changed",
73800
+ "access_code.mutations_requested",
73664
73801
  "access_code.scheduled_on_device",
73665
73802
  "access_code.set_on_device",
73666
73803
  "access_code.removed_from_device",
@@ -73774,6 +73911,7 @@ var openapi = {
73774
73911
  "access_code.name_changed",
73775
73912
  "access_code.code_changed",
73776
73913
  "access_code.time_frame_changed",
73914
+ "access_code.mutations_requested",
73777
73915
  "access_code.scheduled_on_device",
73778
73916
  "access_code.set_on_device",
73779
73917
  "access_code.removed_from_device",