@seamapi/types 1.913.0 → 1.914.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
@@ -5394,6 +5394,53 @@ var access_code_changed_event = access_code_event.extend({
5394
5394
  ---
5395
5395
  An [access code](https://docs.seam.co/low-level-apis/smart-locks/access-codes) was changed.
5396
5396
  `);
5397
+ var access_code_name_changed_event = access_code_event.extend({
5398
+ event_type: zod.z.literal("access_code.name_changed"),
5399
+ from: zod.z.object({
5400
+ name: zod.z.string().nullable().describe("Previous name of the access code.")
5401
+ }),
5402
+ to: zod.z.object({
5403
+ name: zod.z.string().nullable().describe("New name of the access code.")
5404
+ }),
5405
+ description: zod.z.string().describe("Human-readable description of the change and its source.")
5406
+ }).describe(`
5407
+ ---
5408
+ route_path: /access_codes
5409
+ ---
5410
+ The name of an [access code](https://docs.seam.co/low-level-apis/smart-locks/access-codes) was changed on the device.
5411
+ `);
5412
+ var access_code_code_changed_event = access_code_event.extend({
5413
+ event_type: zod.z.literal("access_code.code_changed"),
5414
+ from: zod.z.object({
5415
+ code: zod.z.string().nullable().describe("Previous pin code.")
5416
+ }),
5417
+ to: zod.z.object({
5418
+ code: zod.z.string().nullable().describe("New pin code.")
5419
+ }),
5420
+ description: zod.z.string().describe("Human-readable description of the change and its source.")
5421
+ }).describe(`
5422
+ ---
5423
+ route_path: /access_codes
5424
+ ---
5425
+ The pin code of an [access code](https://docs.seam.co/low-level-apis/smart-locks/access-codes) was changed on the device.
5426
+ `);
5427
+ var access_code_time_frame_changed_event = access_code_event.extend({
5428
+ event_type: zod.z.literal("access_code.time_frame_changed"),
5429
+ from: zod.z.object({
5430
+ starts_at: zod.z.string().nullable().describe("Previous start time."),
5431
+ ends_at: zod.z.string().nullable().describe("Previous end time.")
5432
+ }),
5433
+ to: zod.z.object({
5434
+ starts_at: zod.z.string().nullable().describe("New start time."),
5435
+ ends_at: zod.z.string().nullable().describe("New end time.")
5436
+ }),
5437
+ description: zod.z.string().describe("Human-readable description of the change and its source.")
5438
+ }).describe(`
5439
+ ---
5440
+ route_path: /access_codes
5441
+ ---
5442
+ The time frame of an [access code](https://docs.seam.co/low-level-apis/smart-locks/access-codes) was changed on the device.
5443
+ `);
5397
5444
  var access_code_scheduled_on_device_event = access_code_event.extend({
5398
5445
  event_type: zod.z.literal("access_code.scheduled_on_device"),
5399
5446
  code
@@ -5523,6 +5570,9 @@ var unmanaged_access_code_removed_event = access_code_event.extend({
5523
5570
  var access_code_events = [
5524
5571
  access_code_created_event,
5525
5572
  access_code_changed_event,
5573
+ access_code_name_changed_event,
5574
+ access_code_code_changed_event,
5575
+ access_code_time_frame_changed_event,
5526
5576
  access_code_scheduled_on_device_event,
5527
5577
  access_code_set_on_device_event,
5528
5578
  access_code_removed_from_device_event,
@@ -22591,6 +22641,313 @@ var openapi = {
22591
22641
  type: "object",
22592
22642
  "x-route-path": "/access_codes"
22593
22643
  },
22644
+ {
22645
+ description: "The name of an [access code](https://docs.seam.co/low-level-apis/smart-locks/access-codes) was changed on the device.",
22646
+ properties: {
22647
+ access_code_id: {
22648
+ description: "ID of the affected access code.",
22649
+ format: "uuid",
22650
+ type: "string"
22651
+ },
22652
+ connected_account_custom_metadata: {
22653
+ additionalProperties: {
22654
+ oneOf: [{ type: "string" }, { type: "boolean" }]
22655
+ },
22656
+ description: "Custom metadata of the connected account, present when connected_account_id is provided.",
22657
+ type: "object"
22658
+ },
22659
+ connected_account_id: {
22660
+ description: "ID of the [connected account](https://docs.seam.co/core-concepts/connected-accounts) associated with the affected access code.",
22661
+ format: "uuid",
22662
+ type: "string"
22663
+ },
22664
+ created_at: {
22665
+ description: "Date and time at which the event was created.",
22666
+ format: "date-time",
22667
+ type: "string"
22668
+ },
22669
+ description: {
22670
+ description: "Human-readable description of the change and its source.",
22671
+ type: "string"
22672
+ },
22673
+ device_custom_metadata: {
22674
+ additionalProperties: {
22675
+ oneOf: [{ type: "string" }, { type: "boolean" }]
22676
+ },
22677
+ description: "Custom metadata of the device, present when device_id is provided.",
22678
+ type: "object"
22679
+ },
22680
+ device_id: {
22681
+ description: "ID of the device associated with the affected access code.",
22682
+ format: "uuid",
22683
+ type: "string"
22684
+ },
22685
+ event_id: {
22686
+ description: "ID of the event.",
22687
+ format: "uuid",
22688
+ type: "string"
22689
+ },
22690
+ event_type: {
22691
+ enum: ["access_code.name_changed"],
22692
+ type: "string"
22693
+ },
22694
+ from: {
22695
+ properties: {
22696
+ name: {
22697
+ description: "Previous name of the access code.",
22698
+ nullable: true,
22699
+ type: "string"
22700
+ }
22701
+ },
22702
+ required: ["name"],
22703
+ type: "object"
22704
+ },
22705
+ occurred_at: {
22706
+ description: "Date and time at which the event occurred.",
22707
+ format: "date-time",
22708
+ type: "string"
22709
+ },
22710
+ to: {
22711
+ properties: {
22712
+ name: {
22713
+ description: "New name of the access code.",
22714
+ nullable: true,
22715
+ type: "string"
22716
+ }
22717
+ },
22718
+ required: ["name"],
22719
+ type: "object"
22720
+ },
22721
+ workspace_id: {
22722
+ description: "ID of the [workspace](https://docs.seam.co/core-concepts/workspaces) associated with the event.",
22723
+ format: "uuid",
22724
+ type: "string"
22725
+ }
22726
+ },
22727
+ required: [
22728
+ "event_id",
22729
+ "workspace_id",
22730
+ "created_at",
22731
+ "occurred_at",
22732
+ "access_code_id",
22733
+ "device_id",
22734
+ "connected_account_id",
22735
+ "event_type",
22736
+ "from",
22737
+ "to",
22738
+ "description"
22739
+ ],
22740
+ type: "object",
22741
+ "x-route-path": "/access_codes"
22742
+ },
22743
+ {
22744
+ description: "The pin code of an [access code](https://docs.seam.co/low-level-apis/smart-locks/access-codes) was changed on the device.",
22745
+ properties: {
22746
+ access_code_id: {
22747
+ description: "ID of the affected access code.",
22748
+ format: "uuid",
22749
+ type: "string"
22750
+ },
22751
+ connected_account_custom_metadata: {
22752
+ additionalProperties: {
22753
+ oneOf: [{ type: "string" }, { type: "boolean" }]
22754
+ },
22755
+ description: "Custom metadata of the connected account, present when connected_account_id is provided.",
22756
+ type: "object"
22757
+ },
22758
+ connected_account_id: {
22759
+ description: "ID of the [connected account](https://docs.seam.co/core-concepts/connected-accounts) associated with the affected access code.",
22760
+ format: "uuid",
22761
+ type: "string"
22762
+ },
22763
+ created_at: {
22764
+ description: "Date and time at which the event was created.",
22765
+ format: "date-time",
22766
+ type: "string"
22767
+ },
22768
+ description: {
22769
+ description: "Human-readable description of the change and its source.",
22770
+ type: "string"
22771
+ },
22772
+ device_custom_metadata: {
22773
+ additionalProperties: {
22774
+ oneOf: [{ type: "string" }, { type: "boolean" }]
22775
+ },
22776
+ description: "Custom metadata of the device, present when device_id is provided.",
22777
+ type: "object"
22778
+ },
22779
+ device_id: {
22780
+ description: "ID of the device associated with the affected access code.",
22781
+ format: "uuid",
22782
+ type: "string"
22783
+ },
22784
+ event_id: {
22785
+ description: "ID of the event.",
22786
+ format: "uuid",
22787
+ type: "string"
22788
+ },
22789
+ event_type: {
22790
+ enum: ["access_code.code_changed"],
22791
+ type: "string"
22792
+ },
22793
+ from: {
22794
+ properties: {
22795
+ code: {
22796
+ description: "Previous pin code.",
22797
+ nullable: true,
22798
+ type: "string"
22799
+ }
22800
+ },
22801
+ required: ["code"],
22802
+ type: "object"
22803
+ },
22804
+ occurred_at: {
22805
+ description: "Date and time at which the event occurred.",
22806
+ format: "date-time",
22807
+ type: "string"
22808
+ },
22809
+ to: {
22810
+ properties: {
22811
+ code: {
22812
+ description: "New pin code.",
22813
+ nullable: true,
22814
+ type: "string"
22815
+ }
22816
+ },
22817
+ required: ["code"],
22818
+ type: "object"
22819
+ },
22820
+ workspace_id: {
22821
+ description: "ID of the [workspace](https://docs.seam.co/core-concepts/workspaces) associated with the event.",
22822
+ format: "uuid",
22823
+ type: "string"
22824
+ }
22825
+ },
22826
+ required: [
22827
+ "event_id",
22828
+ "workspace_id",
22829
+ "created_at",
22830
+ "occurred_at",
22831
+ "access_code_id",
22832
+ "device_id",
22833
+ "connected_account_id",
22834
+ "event_type",
22835
+ "from",
22836
+ "to",
22837
+ "description"
22838
+ ],
22839
+ type: "object",
22840
+ "x-route-path": "/access_codes"
22841
+ },
22842
+ {
22843
+ description: "The time frame of an [access code](https://docs.seam.co/low-level-apis/smart-locks/access-codes) was changed on the device.",
22844
+ properties: {
22845
+ access_code_id: {
22846
+ description: "ID of the affected access code.",
22847
+ format: "uuid",
22848
+ type: "string"
22849
+ },
22850
+ connected_account_custom_metadata: {
22851
+ additionalProperties: {
22852
+ oneOf: [{ type: "string" }, { type: "boolean" }]
22853
+ },
22854
+ description: "Custom metadata of the connected account, present when connected_account_id is provided.",
22855
+ type: "object"
22856
+ },
22857
+ connected_account_id: {
22858
+ description: "ID of the [connected account](https://docs.seam.co/core-concepts/connected-accounts) associated with the affected access code.",
22859
+ format: "uuid",
22860
+ type: "string"
22861
+ },
22862
+ created_at: {
22863
+ description: "Date and time at which the event was created.",
22864
+ format: "date-time",
22865
+ type: "string"
22866
+ },
22867
+ description: {
22868
+ description: "Human-readable description of the change and its source.",
22869
+ type: "string"
22870
+ },
22871
+ device_custom_metadata: {
22872
+ additionalProperties: {
22873
+ oneOf: [{ type: "string" }, { type: "boolean" }]
22874
+ },
22875
+ description: "Custom metadata of the device, present when device_id is provided.",
22876
+ type: "object"
22877
+ },
22878
+ device_id: {
22879
+ description: "ID of the device associated with the affected access code.",
22880
+ format: "uuid",
22881
+ type: "string"
22882
+ },
22883
+ event_id: {
22884
+ description: "ID of the event.",
22885
+ format: "uuid",
22886
+ type: "string"
22887
+ },
22888
+ event_type: {
22889
+ enum: ["access_code.time_frame_changed"],
22890
+ type: "string"
22891
+ },
22892
+ from: {
22893
+ properties: {
22894
+ ends_at: {
22895
+ description: "Previous end time.",
22896
+ nullable: true,
22897
+ type: "string"
22898
+ },
22899
+ starts_at: {
22900
+ description: "Previous start time.",
22901
+ nullable: true,
22902
+ type: "string"
22903
+ }
22904
+ },
22905
+ required: ["starts_at", "ends_at"],
22906
+ type: "object"
22907
+ },
22908
+ occurred_at: {
22909
+ description: "Date and time at which the event occurred.",
22910
+ format: "date-time",
22911
+ type: "string"
22912
+ },
22913
+ to: {
22914
+ properties: {
22915
+ ends_at: {
22916
+ description: "New end time.",
22917
+ nullable: true,
22918
+ type: "string"
22919
+ },
22920
+ starts_at: {
22921
+ description: "New start time.",
22922
+ nullable: true,
22923
+ type: "string"
22924
+ }
22925
+ },
22926
+ required: ["starts_at", "ends_at"],
22927
+ type: "object"
22928
+ },
22929
+ workspace_id: {
22930
+ description: "ID of the [workspace](https://docs.seam.co/core-concepts/workspaces) associated with the event.",
22931
+ format: "uuid",
22932
+ type: "string"
22933
+ }
22934
+ },
22935
+ required: [
22936
+ "event_id",
22937
+ "workspace_id",
22938
+ "created_at",
22939
+ "occurred_at",
22940
+ "access_code_id",
22941
+ "device_id",
22942
+ "connected_account_id",
22943
+ "event_type",
22944
+ "from",
22945
+ "to",
22946
+ "description"
22947
+ ],
22948
+ type: "object",
22949
+ "x-route-path": "/access_codes"
22950
+ },
22594
22951
  {
22595
22952
  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.",
22596
22953
  properties: {
@@ -61714,6 +62071,9 @@ var openapi = {
61714
62071
  enum: [
61715
62072
  "access_code.created",
61716
62073
  "access_code.changed",
62074
+ "access_code.name_changed",
62075
+ "access_code.code_changed",
62076
+ "access_code.time_frame_changed",
61717
62077
  "access_code.scheduled_on_device",
61718
62078
  "access_code.set_on_device",
61719
62079
  "access_code.removed_from_device",
@@ -61828,6 +62188,9 @@ var openapi = {
61828
62188
  enum: [
61829
62189
  "access_code.created",
61830
62190
  "access_code.changed",
62191
+ "access_code.name_changed",
62192
+ "access_code.code_changed",
62193
+ "access_code.time_frame_changed",
61831
62194
  "access_code.scheduled_on_device",
61832
62195
  "access_code.set_on_device",
61833
62196
  "access_code.removed_from_device",
@@ -62242,6 +62605,9 @@ var openapi = {
62242
62605
  enum: [
62243
62606
  "access_code.created",
62244
62607
  "access_code.changed",
62608
+ "access_code.name_changed",
62609
+ "access_code.code_changed",
62610
+ "access_code.time_frame_changed",
62245
62611
  "access_code.scheduled_on_device",
62246
62612
  "access_code.set_on_device",
62247
62613
  "access_code.removed_from_device",
@@ -62352,6 +62718,9 @@ var openapi = {
62352
62718
  enum: [
62353
62719
  "access_code.created",
62354
62720
  "access_code.changed",
62721
+ "access_code.name_changed",
62722
+ "access_code.code_changed",
62723
+ "access_code.time_frame_changed",
62355
62724
  "access_code.scheduled_on_device",
62356
62725
  "access_code.set_on_device",
62357
62726
  "access_code.removed_from_device",
@@ -72303,6 +72672,9 @@ var openapi = {
72303
72672
  enum: [
72304
72673
  "access_code.created",
72305
72674
  "access_code.changed",
72675
+ "access_code.name_changed",
72676
+ "access_code.code_changed",
72677
+ "access_code.time_frame_changed",
72306
72678
  "access_code.scheduled_on_device",
72307
72679
  "access_code.set_on_device",
72308
72680
  "access_code.removed_from_device",
@@ -72418,6 +72790,9 @@ var openapi = {
72418
72790
  enum: [
72419
72791
  "access_code.created",
72420
72792
  "access_code.changed",
72793
+ "access_code.name_changed",
72794
+ "access_code.code_changed",
72795
+ "access_code.time_frame_changed",
72421
72796
  "access_code.scheduled_on_device",
72422
72797
  "access_code.set_on_device",
72423
72798
  "access_code.removed_from_device",
@@ -72594,6 +72969,9 @@ var openapi = {
72594
72969
  enum: [
72595
72970
  "access_code.created",
72596
72971
  "access_code.changed",
72972
+ "access_code.name_changed",
72973
+ "access_code.code_changed",
72974
+ "access_code.time_frame_changed",
72597
72975
  "access_code.scheduled_on_device",
72598
72976
  "access_code.set_on_device",
72599
72977
  "access_code.removed_from_device",
@@ -72704,6 +73082,9 @@ var openapi = {
72704
73082
  enum: [
72705
73083
  "access_code.created",
72706
73084
  "access_code.changed",
73085
+ "access_code.name_changed",
73086
+ "access_code.code_changed",
73087
+ "access_code.time_frame_changed",
72707
73088
  "access_code.scheduled_on_device",
72708
73089
  "access_code.set_on_device",
72709
73090
  "access_code.removed_from_device",