@seamapi/types 1.553.0 → 1.554.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
@@ -4315,12 +4315,24 @@ var access_grant_access_to_door_lost_event = access_grant_event.extend(
4315
4315
  ---
4316
4316
  Access to a particular door that was requested as part of an Access Grant was lost.
4317
4317
  `);
4318
+ var access_grant_access_times_changed_event = access_grant_event.extend({
4319
+ event_type: zod.z.literal("access_grant.access_times_changed"),
4320
+ access_grant_key: zod.z.string().optional().describe("Key of the affected Access Grant (if present)."),
4321
+ starts_at: zod.z.string().optional().describe("The new start time for the access grant."),
4322
+ ends_at: zod.z.string().optional().describe("The new end time for the access grant.")
4323
+ }).describe(`
4324
+ ---
4325
+ route_path: /access_grants
4326
+ ---
4327
+ An Access Grant's start or end time was changed.
4328
+ `);
4318
4329
  var access_grant_events = [
4319
4330
  access_grant_created_event,
4320
4331
  access_grant_deleted_event,
4321
4332
  access_grant_access_granted_to_all_doors_event,
4322
4333
  access_grant_access_granted_to_door_event,
4323
- access_grant_access_to_door_lost_event
4334
+ access_grant_access_to_door_lost_event,
4335
+ access_grant_access_times_changed_event
4324
4336
  ];
4325
4337
  var access_method_event = common_event.extend({
4326
4338
  access_method_id: zod.z.string().uuid().describe("ID of the affected access method."),
@@ -4381,12 +4393,24 @@ var access_method_reissued_event = access_method_event.extend({
4381
4393
  ---
4382
4394
  An access method was reissued due to an Access Grant update.
4383
4395
  `);
4396
+ var access_method_code_changed_event = access_method_event.extend({
4397
+ event_type: zod.z.literal("access_method.code_changed"),
4398
+ code: zod.z.string().describe(
4399
+ "The new PIN code for code access methods (only present when mode is 'code')."
4400
+ )
4401
+ }).describe(`
4402
+ ---
4403
+ route_path: /access_methods
4404
+ ---
4405
+ An access method's PIN code was changed.
4406
+ `);
4384
4407
  var access_method_events = [
4385
4408
  access_method_issued_event,
4386
4409
  access_method_revoked_event,
4387
4410
  access_method_card_encoding_required_event,
4388
4411
  access_method_deleted_event,
4389
- access_method_reissued_event
4412
+ access_method_reissued_event,
4413
+ access_method_code_changed_event
4390
4414
  ];
4391
4415
  var common_acs_event = common_event.extend({
4392
4416
  connected_account_id: zod.z.string().uuid().optional().describe("ID of the connected account."),
@@ -18738,6 +18762,62 @@ var openapi_default = {
18738
18762
  type: "object",
18739
18763
  "x-route-path": "/access_grants"
18740
18764
  },
18765
+ {
18766
+ description: "An Access Grant's start or end time was changed.",
18767
+ properties: {
18768
+ access_grant_id: {
18769
+ description: "ID of the affected Access Grant.",
18770
+ format: "uuid",
18771
+ type: "string"
18772
+ },
18773
+ access_grant_key: {
18774
+ description: "Key of the affected Access Grant (if present).",
18775
+ type: "string"
18776
+ },
18777
+ created_at: {
18778
+ description: "Date and time at which the event was created.",
18779
+ format: "date-time",
18780
+ type: "string"
18781
+ },
18782
+ ends_at: {
18783
+ description: "The new end time for the access grant.",
18784
+ type: "string"
18785
+ },
18786
+ event_id: {
18787
+ description: "ID of the event.",
18788
+ format: "uuid",
18789
+ type: "string"
18790
+ },
18791
+ event_type: {
18792
+ enum: ["access_grant.access_times_changed"],
18793
+ type: "string"
18794
+ },
18795
+ occurred_at: {
18796
+ description: "Date and time at which the event occurred.",
18797
+ format: "date-time",
18798
+ type: "string"
18799
+ },
18800
+ starts_at: {
18801
+ description: "The new start time for the access grant.",
18802
+ type: "string"
18803
+ },
18804
+ workspace_id: {
18805
+ description: "ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event.",
18806
+ format: "uuid",
18807
+ type: "string"
18808
+ }
18809
+ },
18810
+ required: [
18811
+ "event_id",
18812
+ "workspace_id",
18813
+ "created_at",
18814
+ "occurred_at",
18815
+ "access_grant_id",
18816
+ "event_type"
18817
+ ],
18818
+ type: "object",
18819
+ "x-route-path": "/access_grants"
18820
+ },
18741
18821
  {
18742
18822
  description: "An access method was issued.",
18743
18823
  properties: {
@@ -19017,6 +19097,66 @@ var openapi_default = {
19017
19097
  type: "object",
19018
19098
  "x-route-path": "/access_methods"
19019
19099
  },
19100
+ {
19101
+ description: "An access method's PIN code was changed.",
19102
+ properties: {
19103
+ access_grant_ids: {
19104
+ description: "IDs of the access grants associated with this access method.",
19105
+ items: { format: "uuid", type: "string" },
19106
+ type: "array"
19107
+ },
19108
+ access_grant_keys: {
19109
+ description: "Keys of the access grants associated with this access method (if present).",
19110
+ items: { type: "string" },
19111
+ type: "array"
19112
+ },
19113
+ access_method_id: {
19114
+ description: "ID of the affected access method.",
19115
+ format: "uuid",
19116
+ type: "string"
19117
+ },
19118
+ code: {
19119
+ description: "The new PIN code for code access methods (only present when mode is 'code').",
19120
+ type: "string"
19121
+ },
19122
+ created_at: {
19123
+ description: "Date and time at which the event was created.",
19124
+ format: "date-time",
19125
+ type: "string"
19126
+ },
19127
+ event_id: {
19128
+ description: "ID of the event.",
19129
+ format: "uuid",
19130
+ type: "string"
19131
+ },
19132
+ event_type: {
19133
+ enum: ["access_method.code_changed"],
19134
+ type: "string"
19135
+ },
19136
+ occurred_at: {
19137
+ description: "Date and time at which the event occurred.",
19138
+ format: "date-time",
19139
+ type: "string"
19140
+ },
19141
+ workspace_id: {
19142
+ description: "ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event.",
19143
+ format: "uuid",
19144
+ type: "string"
19145
+ }
19146
+ },
19147
+ required: [
19148
+ "event_id",
19149
+ "workspace_id",
19150
+ "created_at",
19151
+ "occurred_at",
19152
+ "access_method_id",
19153
+ "access_grant_ids",
19154
+ "event_type",
19155
+ "code"
19156
+ ],
19157
+ type: "object",
19158
+ "x-route-path": "/access_methods"
19159
+ },
19020
19160
  {
19021
19161
  description: "An [access system](https://docs.seam.co/latest/capability-guides/access-systems) was connected.",
19022
19162
  properties: {
@@ -45318,11 +45458,13 @@ var openapi_default = {
45318
45458
  "access_grant.access_granted_to_all_doors",
45319
45459
  "access_grant.access_granted_to_door",
45320
45460
  "access_grant.access_to_door_lost",
45461
+ "access_grant.access_times_changed",
45321
45462
  "access_method.issued",
45322
45463
  "access_method.revoked",
45323
45464
  "access_method.card_encoding_required",
45324
45465
  "access_method.deleted",
45325
45466
  "access_method.reissued",
45467
+ "access_method.code_changed",
45326
45468
  "acs_system.connected",
45327
45469
  "acs_system.added",
45328
45470
  "acs_system.disconnected",
@@ -45419,11 +45561,13 @@ var openapi_default = {
45419
45561
  "access_grant.access_granted_to_all_doors",
45420
45562
  "access_grant.access_granted_to_door",
45421
45563
  "access_grant.access_to_door_lost",
45564
+ "access_grant.access_times_changed",
45422
45565
  "access_method.issued",
45423
45566
  "access_method.revoked",
45424
45567
  "access_method.card_encoding_required",
45425
45568
  "access_method.deleted",
45426
45569
  "access_method.reissued",
45570
+ "access_method.code_changed",
45427
45571
  "acs_system.connected",
45428
45572
  "acs_system.added",
45429
45573
  "acs_system.disconnected",
@@ -45662,11 +45806,13 @@ var openapi_default = {
45662
45806
  "access_grant.access_granted_to_all_doors",
45663
45807
  "access_grant.access_granted_to_door",
45664
45808
  "access_grant.access_to_door_lost",
45809
+ "access_grant.access_times_changed",
45665
45810
  "access_method.issued",
45666
45811
  "access_method.revoked",
45667
45812
  "access_method.card_encoding_required",
45668
45813
  "access_method.deleted",
45669
45814
  "access_method.reissued",
45815
+ "access_method.code_changed",
45670
45816
  "acs_system.connected",
45671
45817
  "acs_system.added",
45672
45818
  "acs_system.disconnected",
@@ -45759,11 +45905,13 @@ var openapi_default = {
45759
45905
  "access_grant.access_granted_to_all_doors",
45760
45906
  "access_grant.access_granted_to_door",
45761
45907
  "access_grant.access_to_door_lost",
45908
+ "access_grant.access_times_changed",
45762
45909
  "access_method.issued",
45763
45910
  "access_method.revoked",
45764
45911
  "access_method.card_encoding_required",
45765
45912
  "access_method.deleted",
45766
45913
  "access_method.reissued",
45914
+ "access_method.code_changed",
45767
45915
  "acs_system.connected",
45768
45916
  "acs_system.added",
45769
45917
  "acs_system.disconnected",
@@ -50730,11 +50878,13 @@ var openapi_default = {
50730
50878
  "access_grant.access_granted_to_all_doors",
50731
50879
  "access_grant.access_granted_to_door",
50732
50880
  "access_grant.access_to_door_lost",
50881
+ "access_grant.access_times_changed",
50733
50882
  "access_method.issued",
50734
50883
  "access_method.revoked",
50735
50884
  "access_method.card_encoding_required",
50736
50885
  "access_method.deleted",
50737
50886
  "access_method.reissued",
50887
+ "access_method.code_changed",
50738
50888
  "acs_system.connected",
50739
50889
  "acs_system.added",
50740
50890
  "acs_system.disconnected",
@@ -50832,11 +50982,13 @@ var openapi_default = {
50832
50982
  "access_grant.access_granted_to_all_doors",
50833
50983
  "access_grant.access_granted_to_door",
50834
50984
  "access_grant.access_to_door_lost",
50985
+ "access_grant.access_times_changed",
50835
50986
  "access_method.issued",
50836
50987
  "access_method.revoked",
50837
50988
  "access_method.card_encoding_required",
50838
50989
  "access_method.deleted",
50839
50990
  "access_method.reissued",
50991
+ "access_method.code_changed",
50840
50992
  "acs_system.connected",
50841
50993
  "acs_system.added",
50842
50994
  "acs_system.disconnected",
@@ -50995,11 +51147,13 @@ var openapi_default = {
50995
51147
  "access_grant.access_granted_to_all_doors",
50996
51148
  "access_grant.access_granted_to_door",
50997
51149
  "access_grant.access_to_door_lost",
51150
+ "access_grant.access_times_changed",
50998
51151
  "access_method.issued",
50999
51152
  "access_method.revoked",
51000
51153
  "access_method.card_encoding_required",
51001
51154
  "access_method.deleted",
51002
51155
  "access_method.reissued",
51156
+ "access_method.code_changed",
51003
51157
  "acs_system.connected",
51004
51158
  "acs_system.added",
51005
51159
  "acs_system.disconnected",
@@ -51092,11 +51246,13 @@ var openapi_default = {
51092
51246
  "access_grant.access_granted_to_all_doors",
51093
51247
  "access_grant.access_granted_to_door",
51094
51248
  "access_grant.access_to_door_lost",
51249
+ "access_grant.access_times_changed",
51095
51250
  "access_method.issued",
51096
51251
  "access_method.revoked",
51097
51252
  "access_method.card_encoding_required",
51098
51253
  "access_method.deleted",
51099
51254
  "access_method.reissued",
51255
+ "access_method.code_changed",
51100
51256
  "acs_system.connected",
51101
51257
  "acs_system.added",
51102
51258
  "acs_system.disconnected",