@seamapi/types 1.701.0 → 1.702.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
@@ -4541,13 +4541,25 @@ var access_grant_access_times_changed_event = access_grant_event.extend({
4541
4541
  ---
4542
4542
  An Access Grant's start or end time was changed.
4543
4543
  `);
4544
+ var access_grant_could_not_create_requested_access_methods_event = access_grant_event.extend({
4545
+ event_type: zod.z.literal(
4546
+ "access_grant.could_not_create_requested_access_methods"
4547
+ ),
4548
+ error_message: zod.z.string().describe("Description of why the access methods could not be created.")
4549
+ }).describe(`
4550
+ ---
4551
+ route_path: /access_grants
4552
+ ---
4553
+ One or more requested access methods could not be created for an Access Grant.
4554
+ `);
4544
4555
  var access_grant_events = [
4545
4556
  access_grant_created_event,
4546
4557
  access_grant_deleted_event,
4547
4558
  access_grant_access_granted_to_all_doors_event,
4548
4559
  access_grant_access_granted_to_door_event,
4549
4560
  access_grant_access_to_door_lost_event,
4550
- access_grant_access_times_changed_event
4561
+ access_grant_access_times_changed_event,
4562
+ access_grant_could_not_create_requested_access_methods_event
4551
4563
  ];
4552
4564
  var access_method_event = common_event.extend({
4553
4565
  access_method_id: zod.z.string().uuid().describe("ID of the affected access method."),
@@ -19565,6 +19577,57 @@ var openapi_default = {
19565
19577
  type: "object",
19566
19578
  "x-route-path": "/access_grants"
19567
19579
  },
19580
+ {
19581
+ description: "One or more requested access methods could not be created for an Access Grant.",
19582
+ properties: {
19583
+ access_grant_id: {
19584
+ description: "ID of the affected Access Grant.",
19585
+ format: "uuid",
19586
+ type: "string"
19587
+ },
19588
+ created_at: {
19589
+ description: "Date and time at which the event was created.",
19590
+ format: "date-time",
19591
+ type: "string"
19592
+ },
19593
+ error_message: {
19594
+ description: "Description of why the access methods could not be created.",
19595
+ type: "string"
19596
+ },
19597
+ event_id: {
19598
+ description: "ID of the event.",
19599
+ format: "uuid",
19600
+ type: "string"
19601
+ },
19602
+ event_type: {
19603
+ enum: [
19604
+ "access_grant.could_not_create_requested_access_methods"
19605
+ ],
19606
+ type: "string"
19607
+ },
19608
+ occurred_at: {
19609
+ description: "Date and time at which the event occurred.",
19610
+ format: "date-time",
19611
+ type: "string"
19612
+ },
19613
+ workspace_id: {
19614
+ description: "ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event.",
19615
+ format: "uuid",
19616
+ type: "string"
19617
+ }
19618
+ },
19619
+ required: [
19620
+ "event_id",
19621
+ "workspace_id",
19622
+ "created_at",
19623
+ "occurred_at",
19624
+ "access_grant_id",
19625
+ "event_type",
19626
+ "error_message"
19627
+ ],
19628
+ type: "object",
19629
+ "x-route-path": "/access_grants"
19630
+ },
19568
19631
  {
19569
19632
  description: "An access method was issued.",
19570
19633
  properties: {
@@ -49684,6 +49747,7 @@ var openapi_default = {
49684
49747
  "access_grant.access_granted_to_door",
49685
49748
  "access_grant.access_to_door_lost",
49686
49749
  "access_grant.access_times_changed",
49750
+ "access_grant.could_not_create_requested_access_methods",
49687
49751
  "access_method.issued",
49688
49752
  "access_method.revoked",
49689
49753
  "access_method.card_encoding_required",
@@ -49790,6 +49854,7 @@ var openapi_default = {
49790
49854
  "access_grant.access_granted_to_door",
49791
49855
  "access_grant.access_to_door_lost",
49792
49856
  "access_grant.access_times_changed",
49857
+ "access_grant.could_not_create_requested_access_methods",
49793
49858
  "access_method.issued",
49794
49859
  "access_method.revoked",
49795
49860
  "access_method.card_encoding_required",
@@ -50075,6 +50140,7 @@ var openapi_default = {
50075
50140
  "access_grant.access_granted_to_door",
50076
50141
  "access_grant.access_to_door_lost",
50077
50142
  "access_grant.access_times_changed",
50143
+ "access_grant.could_not_create_requested_access_methods",
50078
50144
  "access_method.issued",
50079
50145
  "access_method.revoked",
50080
50146
  "access_method.card_encoding_required",
@@ -50177,6 +50243,7 @@ var openapi_default = {
50177
50243
  "access_grant.access_granted_to_door",
50178
50244
  "access_grant.access_to_door_lost",
50179
50245
  "access_grant.access_times_changed",
50246
+ "access_grant.could_not_create_requested_access_methods",
50180
50247
  "access_method.issued",
50181
50248
  "access_method.revoked",
50182
50249
  "access_method.card_encoding_required",
@@ -56990,6 +57057,7 @@ var openapi_default = {
56990
57057
  "access_grant.access_granted_to_door",
56991
57058
  "access_grant.access_to_door_lost",
56992
57059
  "access_grant.access_times_changed",
57060
+ "access_grant.could_not_create_requested_access_methods",
56993
57061
  "access_method.issued",
56994
57062
  "access_method.revoked",
56995
57063
  "access_method.card_encoding_required",
@@ -57097,6 +57165,7 @@ var openapi_default = {
57097
57165
  "access_grant.access_granted_to_door",
57098
57166
  "access_grant.access_to_door_lost",
57099
57167
  "access_grant.access_times_changed",
57168
+ "access_grant.could_not_create_requested_access_methods",
57100
57169
  "access_method.issued",
57101
57170
  "access_method.revoked",
57102
57171
  "access_method.card_encoding_required",
@@ -57265,6 +57334,7 @@ var openapi_default = {
57265
57334
  "access_grant.access_granted_to_door",
57266
57335
  "access_grant.access_to_door_lost",
57267
57336
  "access_grant.access_times_changed",
57337
+ "access_grant.could_not_create_requested_access_methods",
57268
57338
  "access_method.issued",
57269
57339
  "access_method.revoked",
57270
57340
  "access_method.card_encoding_required",
@@ -57367,6 +57437,7 @@ var openapi_default = {
57367
57437
  "access_grant.access_granted_to_door",
57368
57438
  "access_grant.access_to_door_lost",
57369
57439
  "access_grant.access_times_changed",
57440
+ "access_grant.could_not_create_requested_access_methods",
57370
57441
  "access_method.issued",
57371
57442
  "access_method.revoked",
57372
57443
  "access_method.card_encoding_required",