@seamapi/types 1.552.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: {
@@ -29512,6 +29652,7 @@ var openapi_default = {
29512
29652
  },
29513
29653
  security: [
29514
29654
  { client_session: [] },
29655
+ { client_session_with_customer: [] },
29515
29656
  { pat_with_workspace: [] },
29516
29657
  { console_session_with_workspace: [] },
29517
29658
  { api_key: [] }
@@ -45317,11 +45458,13 @@ var openapi_default = {
45317
45458
  "access_grant.access_granted_to_all_doors",
45318
45459
  "access_grant.access_granted_to_door",
45319
45460
  "access_grant.access_to_door_lost",
45461
+ "access_grant.access_times_changed",
45320
45462
  "access_method.issued",
45321
45463
  "access_method.revoked",
45322
45464
  "access_method.card_encoding_required",
45323
45465
  "access_method.deleted",
45324
45466
  "access_method.reissued",
45467
+ "access_method.code_changed",
45325
45468
  "acs_system.connected",
45326
45469
  "acs_system.added",
45327
45470
  "acs_system.disconnected",
@@ -45418,11 +45561,13 @@ var openapi_default = {
45418
45561
  "access_grant.access_granted_to_all_doors",
45419
45562
  "access_grant.access_granted_to_door",
45420
45563
  "access_grant.access_to_door_lost",
45564
+ "access_grant.access_times_changed",
45421
45565
  "access_method.issued",
45422
45566
  "access_method.revoked",
45423
45567
  "access_method.card_encoding_required",
45424
45568
  "access_method.deleted",
45425
45569
  "access_method.reissued",
45570
+ "access_method.code_changed",
45426
45571
  "acs_system.connected",
45427
45572
  "acs_system.added",
45428
45573
  "acs_system.disconnected",
@@ -45661,11 +45806,13 @@ var openapi_default = {
45661
45806
  "access_grant.access_granted_to_all_doors",
45662
45807
  "access_grant.access_granted_to_door",
45663
45808
  "access_grant.access_to_door_lost",
45809
+ "access_grant.access_times_changed",
45664
45810
  "access_method.issued",
45665
45811
  "access_method.revoked",
45666
45812
  "access_method.card_encoding_required",
45667
45813
  "access_method.deleted",
45668
45814
  "access_method.reissued",
45815
+ "access_method.code_changed",
45669
45816
  "acs_system.connected",
45670
45817
  "acs_system.added",
45671
45818
  "acs_system.disconnected",
@@ -45758,11 +45905,13 @@ var openapi_default = {
45758
45905
  "access_grant.access_granted_to_all_doors",
45759
45906
  "access_grant.access_granted_to_door",
45760
45907
  "access_grant.access_to_door_lost",
45908
+ "access_grant.access_times_changed",
45761
45909
  "access_method.issued",
45762
45910
  "access_method.revoked",
45763
45911
  "access_method.card_encoding_required",
45764
45912
  "access_method.deleted",
45765
45913
  "access_method.reissued",
45914
+ "access_method.code_changed",
45766
45915
  "acs_system.connected",
45767
45916
  "acs_system.added",
45768
45917
  "acs_system.disconnected",
@@ -50729,11 +50878,13 @@ var openapi_default = {
50729
50878
  "access_grant.access_granted_to_all_doors",
50730
50879
  "access_grant.access_granted_to_door",
50731
50880
  "access_grant.access_to_door_lost",
50881
+ "access_grant.access_times_changed",
50732
50882
  "access_method.issued",
50733
50883
  "access_method.revoked",
50734
50884
  "access_method.card_encoding_required",
50735
50885
  "access_method.deleted",
50736
50886
  "access_method.reissued",
50887
+ "access_method.code_changed",
50737
50888
  "acs_system.connected",
50738
50889
  "acs_system.added",
50739
50890
  "acs_system.disconnected",
@@ -50831,11 +50982,13 @@ var openapi_default = {
50831
50982
  "access_grant.access_granted_to_all_doors",
50832
50983
  "access_grant.access_granted_to_door",
50833
50984
  "access_grant.access_to_door_lost",
50985
+ "access_grant.access_times_changed",
50834
50986
  "access_method.issued",
50835
50987
  "access_method.revoked",
50836
50988
  "access_method.card_encoding_required",
50837
50989
  "access_method.deleted",
50838
50990
  "access_method.reissued",
50991
+ "access_method.code_changed",
50839
50992
  "acs_system.connected",
50840
50993
  "acs_system.added",
50841
50994
  "acs_system.disconnected",
@@ -50994,11 +51147,13 @@ var openapi_default = {
50994
51147
  "access_grant.access_granted_to_all_doors",
50995
51148
  "access_grant.access_granted_to_door",
50996
51149
  "access_grant.access_to_door_lost",
51150
+ "access_grant.access_times_changed",
50997
51151
  "access_method.issued",
50998
51152
  "access_method.revoked",
50999
51153
  "access_method.card_encoding_required",
51000
51154
  "access_method.deleted",
51001
51155
  "access_method.reissued",
51156
+ "access_method.code_changed",
51002
51157
  "acs_system.connected",
51003
51158
  "acs_system.added",
51004
51159
  "acs_system.disconnected",
@@ -51091,11 +51246,13 @@ var openapi_default = {
51091
51246
  "access_grant.access_granted_to_all_doors",
51092
51247
  "access_grant.access_granted_to_door",
51093
51248
  "access_grant.access_to_door_lost",
51249
+ "access_grant.access_times_changed",
51094
51250
  "access_method.issued",
51095
51251
  "access_method.revoked",
51096
51252
  "access_method.card_encoding_required",
51097
51253
  "access_method.deleted",
51098
51254
  "access_method.reissued",
51255
+ "access_method.code_changed",
51099
51256
  "acs_system.connected",
51100
51257
  "acs_system.added",
51101
51258
  "acs_system.disconnected",