@seamapi/types 1.913.0 → 1.915.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/index.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
+ }).describe("Previous access code name configuration."),
5402
+ to: zod.z.object({
5403
+ name: zod.z.string().nullable().describe("New name of the access code.")
5404
+ }).describe("New access code name configuration."),
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
+ }).describe("Previous pin code configuration."),
5417
+ to: zod.z.object({
5418
+ code: zod.z.string().nullable().describe("New pin code.")
5419
+ }).describe("New pin code configuration."),
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
+ }).describe("Previous time frame configuration."),
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
+ }).describe("New time frame configuration."),
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,319 @@ 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
+ description: "Previous access code name configuration.",
22696
+ properties: {
22697
+ name: {
22698
+ description: "Previous name of the access code.",
22699
+ nullable: true,
22700
+ type: "string"
22701
+ }
22702
+ },
22703
+ required: ["name"],
22704
+ type: "object"
22705
+ },
22706
+ occurred_at: {
22707
+ description: "Date and time at which the event occurred.",
22708
+ format: "date-time",
22709
+ type: "string"
22710
+ },
22711
+ to: {
22712
+ description: "New access code name configuration.",
22713
+ properties: {
22714
+ name: {
22715
+ description: "New name of the access code.",
22716
+ nullable: true,
22717
+ type: "string"
22718
+ }
22719
+ },
22720
+ required: ["name"],
22721
+ type: "object"
22722
+ },
22723
+ workspace_id: {
22724
+ description: "ID of the [workspace](https://docs.seam.co/core-concepts/workspaces) associated with the event.",
22725
+ format: "uuid",
22726
+ type: "string"
22727
+ }
22728
+ },
22729
+ required: [
22730
+ "event_id",
22731
+ "workspace_id",
22732
+ "created_at",
22733
+ "occurred_at",
22734
+ "access_code_id",
22735
+ "device_id",
22736
+ "connected_account_id",
22737
+ "event_type",
22738
+ "from",
22739
+ "to",
22740
+ "description"
22741
+ ],
22742
+ type: "object",
22743
+ "x-route-path": "/access_codes"
22744
+ },
22745
+ {
22746
+ description: "The pin code of an [access code](https://docs.seam.co/low-level-apis/smart-locks/access-codes) was changed on the device.",
22747
+ properties: {
22748
+ access_code_id: {
22749
+ description: "ID of the affected access code.",
22750
+ format: "uuid",
22751
+ type: "string"
22752
+ },
22753
+ connected_account_custom_metadata: {
22754
+ additionalProperties: {
22755
+ oneOf: [{ type: "string" }, { type: "boolean" }]
22756
+ },
22757
+ description: "Custom metadata of the connected account, present when connected_account_id is provided.",
22758
+ type: "object"
22759
+ },
22760
+ connected_account_id: {
22761
+ description: "ID of the [connected account](https://docs.seam.co/core-concepts/connected-accounts) associated with the affected access code.",
22762
+ format: "uuid",
22763
+ type: "string"
22764
+ },
22765
+ created_at: {
22766
+ description: "Date and time at which the event was created.",
22767
+ format: "date-time",
22768
+ type: "string"
22769
+ },
22770
+ description: {
22771
+ description: "Human-readable description of the change and its source.",
22772
+ type: "string"
22773
+ },
22774
+ device_custom_metadata: {
22775
+ additionalProperties: {
22776
+ oneOf: [{ type: "string" }, { type: "boolean" }]
22777
+ },
22778
+ description: "Custom metadata of the device, present when device_id is provided.",
22779
+ type: "object"
22780
+ },
22781
+ device_id: {
22782
+ description: "ID of the device associated with the affected access code.",
22783
+ format: "uuid",
22784
+ type: "string"
22785
+ },
22786
+ event_id: {
22787
+ description: "ID of the event.",
22788
+ format: "uuid",
22789
+ type: "string"
22790
+ },
22791
+ event_type: {
22792
+ enum: ["access_code.code_changed"],
22793
+ type: "string"
22794
+ },
22795
+ from: {
22796
+ description: "Previous pin code configuration.",
22797
+ properties: {
22798
+ code: {
22799
+ description: "Previous pin code.",
22800
+ nullable: true,
22801
+ type: "string"
22802
+ }
22803
+ },
22804
+ required: ["code"],
22805
+ type: "object"
22806
+ },
22807
+ occurred_at: {
22808
+ description: "Date and time at which the event occurred.",
22809
+ format: "date-time",
22810
+ type: "string"
22811
+ },
22812
+ to: {
22813
+ description: "New pin code configuration.",
22814
+ properties: {
22815
+ code: {
22816
+ description: "New pin code.",
22817
+ nullable: true,
22818
+ type: "string"
22819
+ }
22820
+ },
22821
+ required: ["code"],
22822
+ type: "object"
22823
+ },
22824
+ workspace_id: {
22825
+ description: "ID of the [workspace](https://docs.seam.co/core-concepts/workspaces) associated with the event.",
22826
+ format: "uuid",
22827
+ type: "string"
22828
+ }
22829
+ },
22830
+ required: [
22831
+ "event_id",
22832
+ "workspace_id",
22833
+ "created_at",
22834
+ "occurred_at",
22835
+ "access_code_id",
22836
+ "device_id",
22837
+ "connected_account_id",
22838
+ "event_type",
22839
+ "from",
22840
+ "to",
22841
+ "description"
22842
+ ],
22843
+ type: "object",
22844
+ "x-route-path": "/access_codes"
22845
+ },
22846
+ {
22847
+ description: "The time frame of an [access code](https://docs.seam.co/low-level-apis/smart-locks/access-codes) was changed on the device.",
22848
+ properties: {
22849
+ access_code_id: {
22850
+ description: "ID of the affected access code.",
22851
+ format: "uuid",
22852
+ type: "string"
22853
+ },
22854
+ connected_account_custom_metadata: {
22855
+ additionalProperties: {
22856
+ oneOf: [{ type: "string" }, { type: "boolean" }]
22857
+ },
22858
+ description: "Custom metadata of the connected account, present when connected_account_id is provided.",
22859
+ type: "object"
22860
+ },
22861
+ connected_account_id: {
22862
+ description: "ID of the [connected account](https://docs.seam.co/core-concepts/connected-accounts) associated with the affected access code.",
22863
+ format: "uuid",
22864
+ type: "string"
22865
+ },
22866
+ created_at: {
22867
+ description: "Date and time at which the event was created.",
22868
+ format: "date-time",
22869
+ type: "string"
22870
+ },
22871
+ description: {
22872
+ description: "Human-readable description of the change and its source.",
22873
+ type: "string"
22874
+ },
22875
+ device_custom_metadata: {
22876
+ additionalProperties: {
22877
+ oneOf: [{ type: "string" }, { type: "boolean" }]
22878
+ },
22879
+ description: "Custom metadata of the device, present when device_id is provided.",
22880
+ type: "object"
22881
+ },
22882
+ device_id: {
22883
+ description: "ID of the device associated with the affected access code.",
22884
+ format: "uuid",
22885
+ type: "string"
22886
+ },
22887
+ event_id: {
22888
+ description: "ID of the event.",
22889
+ format: "uuid",
22890
+ type: "string"
22891
+ },
22892
+ event_type: {
22893
+ enum: ["access_code.time_frame_changed"],
22894
+ type: "string"
22895
+ },
22896
+ from: {
22897
+ description: "Previous time frame configuration.",
22898
+ properties: {
22899
+ ends_at: {
22900
+ description: "Previous end time.",
22901
+ nullable: true,
22902
+ type: "string"
22903
+ },
22904
+ starts_at: {
22905
+ description: "Previous start time.",
22906
+ nullable: true,
22907
+ type: "string"
22908
+ }
22909
+ },
22910
+ required: ["starts_at", "ends_at"],
22911
+ type: "object"
22912
+ },
22913
+ occurred_at: {
22914
+ description: "Date and time at which the event occurred.",
22915
+ format: "date-time",
22916
+ type: "string"
22917
+ },
22918
+ to: {
22919
+ description: "New time frame configuration.",
22920
+ properties: {
22921
+ ends_at: {
22922
+ description: "New end time.",
22923
+ nullable: true,
22924
+ type: "string"
22925
+ },
22926
+ starts_at: {
22927
+ description: "New start time.",
22928
+ nullable: true,
22929
+ type: "string"
22930
+ }
22931
+ },
22932
+ required: ["starts_at", "ends_at"],
22933
+ type: "object"
22934
+ },
22935
+ workspace_id: {
22936
+ description: "ID of the [workspace](https://docs.seam.co/core-concepts/workspaces) associated with the event.",
22937
+ format: "uuid",
22938
+ type: "string"
22939
+ }
22940
+ },
22941
+ required: [
22942
+ "event_id",
22943
+ "workspace_id",
22944
+ "created_at",
22945
+ "occurred_at",
22946
+ "access_code_id",
22947
+ "device_id",
22948
+ "connected_account_id",
22949
+ "event_type",
22950
+ "from",
22951
+ "to",
22952
+ "description"
22953
+ ],
22954
+ type: "object",
22955
+ "x-route-path": "/access_codes"
22956
+ },
22594
22957
  {
22595
22958
  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
22959
  properties: {
@@ -61714,6 +62077,9 @@ var openapi = {
61714
62077
  enum: [
61715
62078
  "access_code.created",
61716
62079
  "access_code.changed",
62080
+ "access_code.name_changed",
62081
+ "access_code.code_changed",
62082
+ "access_code.time_frame_changed",
61717
62083
  "access_code.scheduled_on_device",
61718
62084
  "access_code.set_on_device",
61719
62085
  "access_code.removed_from_device",
@@ -61828,6 +62194,9 @@ var openapi = {
61828
62194
  enum: [
61829
62195
  "access_code.created",
61830
62196
  "access_code.changed",
62197
+ "access_code.name_changed",
62198
+ "access_code.code_changed",
62199
+ "access_code.time_frame_changed",
61831
62200
  "access_code.scheduled_on_device",
61832
62201
  "access_code.set_on_device",
61833
62202
  "access_code.removed_from_device",
@@ -62242,6 +62611,9 @@ var openapi = {
62242
62611
  enum: [
62243
62612
  "access_code.created",
62244
62613
  "access_code.changed",
62614
+ "access_code.name_changed",
62615
+ "access_code.code_changed",
62616
+ "access_code.time_frame_changed",
62245
62617
  "access_code.scheduled_on_device",
62246
62618
  "access_code.set_on_device",
62247
62619
  "access_code.removed_from_device",
@@ -62352,6 +62724,9 @@ var openapi = {
62352
62724
  enum: [
62353
62725
  "access_code.created",
62354
62726
  "access_code.changed",
62727
+ "access_code.name_changed",
62728
+ "access_code.code_changed",
62729
+ "access_code.time_frame_changed",
62355
62730
  "access_code.scheduled_on_device",
62356
62731
  "access_code.set_on_device",
62357
62732
  "access_code.removed_from_device",
@@ -72303,6 +72678,9 @@ var openapi = {
72303
72678
  enum: [
72304
72679
  "access_code.created",
72305
72680
  "access_code.changed",
72681
+ "access_code.name_changed",
72682
+ "access_code.code_changed",
72683
+ "access_code.time_frame_changed",
72306
72684
  "access_code.scheduled_on_device",
72307
72685
  "access_code.set_on_device",
72308
72686
  "access_code.removed_from_device",
@@ -72418,6 +72796,9 @@ var openapi = {
72418
72796
  enum: [
72419
72797
  "access_code.created",
72420
72798
  "access_code.changed",
72799
+ "access_code.name_changed",
72800
+ "access_code.code_changed",
72801
+ "access_code.time_frame_changed",
72421
72802
  "access_code.scheduled_on_device",
72422
72803
  "access_code.set_on_device",
72423
72804
  "access_code.removed_from_device",
@@ -72594,6 +72975,9 @@ var openapi = {
72594
72975
  enum: [
72595
72976
  "access_code.created",
72596
72977
  "access_code.changed",
72978
+ "access_code.name_changed",
72979
+ "access_code.code_changed",
72980
+ "access_code.time_frame_changed",
72597
72981
  "access_code.scheduled_on_device",
72598
72982
  "access_code.set_on_device",
72599
72983
  "access_code.removed_from_device",
@@ -72704,6 +73088,9 @@ var openapi = {
72704
73088
  enum: [
72705
73089
  "access_code.created",
72706
73090
  "access_code.changed",
73091
+ "access_code.name_changed",
73092
+ "access_code.code_changed",
73093
+ "access_code.time_frame_changed",
72707
73094
  "access_code.scheduled_on_device",
72708
73095
  "access_code.set_on_device",
72709
73096
  "access_code.removed_from_device",