@seamapi/types 1.700.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: {
@@ -32832,6 +32895,25 @@ var openapi_default = {
32832
32895
  type: "string"
32833
32896
  }
32834
32897
  },
32898
+ {
32899
+ in: "query",
32900
+ name: "limit",
32901
+ schema: {
32902
+ default: 500,
32903
+ description: "Numerical limit on the number of access grants to return.",
32904
+ format: "float",
32905
+ type: "number"
32906
+ }
32907
+ },
32908
+ {
32909
+ in: "query",
32910
+ name: "page_cursor",
32911
+ schema: {
32912
+ description: "Identifies the specific page of results to return, obtained from the previous page's `next_page_cursor`.",
32913
+ nullable: true,
32914
+ type: "string"
32915
+ }
32916
+ },
32835
32917
  {
32836
32918
  in: "query",
32837
32919
  name: "user_identity_id",
@@ -32905,9 +32987,10 @@ var openapi_default = {
32905
32987
  items: { $ref: "#/components/schemas/access_grant" },
32906
32988
  type: "array"
32907
32989
  },
32908
- ok: { type: "boolean" }
32990
+ ok: { type: "boolean" },
32991
+ pagination: { $ref: "#/components/schemas/pagination" }
32909
32992
  },
32910
- required: ["access_grants", "ok"],
32993
+ required: ["access_grants", "pagination", "ok"],
32911
32994
  type: "object"
32912
32995
  }
32913
32996
  }
@@ -32958,12 +33041,23 @@ var openapi_default = {
32958
33041
  description: "Customer key for which you want to list access grants.",
32959
33042
  type: "string"
32960
33043
  },
33044
+ limit: {
33045
+ default: 500,
33046
+ description: "Numerical limit on the number of access grants to return.",
33047
+ format: "float",
33048
+ type: "number"
33049
+ },
32961
33050
  location_id: {
32962
33051
  deprecated: true,
32963
33052
  format: "uuid",
32964
33053
  type: "string",
32965
33054
  "x-deprecated": "Use `space_id`."
32966
33055
  },
33056
+ page_cursor: {
33057
+ description: "Identifies the specific page of results to return, obtained from the previous page's `next_page_cursor`.",
33058
+ nullable: true,
33059
+ type: "string"
33060
+ },
32967
33061
  reservation_key: {
32968
33062
  description: "Filter Access Grants by reservation_key.",
32969
33063
  type: "string"
@@ -32994,9 +33088,10 @@ var openapi_default = {
32994
33088
  items: { $ref: "#/components/schemas/access_grant" },
32995
33089
  type: "array"
32996
33090
  },
32997
- ok: { type: "boolean" }
33091
+ ok: { type: "boolean" },
33092
+ pagination: { $ref: "#/components/schemas/pagination" }
32998
33093
  },
32999
- required: ["access_grants", "ok"],
33094
+ required: ["access_grants", "pagination", "ok"],
33000
33095
  type: "object"
33001
33096
  }
33002
33097
  }
@@ -49652,6 +49747,7 @@ var openapi_default = {
49652
49747
  "access_grant.access_granted_to_door",
49653
49748
  "access_grant.access_to_door_lost",
49654
49749
  "access_grant.access_times_changed",
49750
+ "access_grant.could_not_create_requested_access_methods",
49655
49751
  "access_method.issued",
49656
49752
  "access_method.revoked",
49657
49753
  "access_method.card_encoding_required",
@@ -49758,6 +49854,7 @@ var openapi_default = {
49758
49854
  "access_grant.access_granted_to_door",
49759
49855
  "access_grant.access_to_door_lost",
49760
49856
  "access_grant.access_times_changed",
49857
+ "access_grant.could_not_create_requested_access_methods",
49761
49858
  "access_method.issued",
49762
49859
  "access_method.revoked",
49763
49860
  "access_method.card_encoding_required",
@@ -50043,6 +50140,7 @@ var openapi_default = {
50043
50140
  "access_grant.access_granted_to_door",
50044
50141
  "access_grant.access_to_door_lost",
50045
50142
  "access_grant.access_times_changed",
50143
+ "access_grant.could_not_create_requested_access_methods",
50046
50144
  "access_method.issued",
50047
50145
  "access_method.revoked",
50048
50146
  "access_method.card_encoding_required",
@@ -50145,6 +50243,7 @@ var openapi_default = {
50145
50243
  "access_grant.access_granted_to_door",
50146
50244
  "access_grant.access_to_door_lost",
50147
50245
  "access_grant.access_times_changed",
50246
+ "access_grant.could_not_create_requested_access_methods",
50148
50247
  "access_method.issued",
50149
50248
  "access_method.revoked",
50150
50249
  "access_method.card_encoding_required",
@@ -56958,6 +57057,7 @@ var openapi_default = {
56958
57057
  "access_grant.access_granted_to_door",
56959
57058
  "access_grant.access_to_door_lost",
56960
57059
  "access_grant.access_times_changed",
57060
+ "access_grant.could_not_create_requested_access_methods",
56961
57061
  "access_method.issued",
56962
57062
  "access_method.revoked",
56963
57063
  "access_method.card_encoding_required",
@@ -57065,6 +57165,7 @@ var openapi_default = {
57065
57165
  "access_grant.access_granted_to_door",
57066
57166
  "access_grant.access_to_door_lost",
57067
57167
  "access_grant.access_times_changed",
57168
+ "access_grant.could_not_create_requested_access_methods",
57068
57169
  "access_method.issued",
57069
57170
  "access_method.revoked",
57070
57171
  "access_method.card_encoding_required",
@@ -57233,6 +57334,7 @@ var openapi_default = {
57233
57334
  "access_grant.access_granted_to_door",
57234
57335
  "access_grant.access_to_door_lost",
57235
57336
  "access_grant.access_times_changed",
57337
+ "access_grant.could_not_create_requested_access_methods",
57236
57338
  "access_method.issued",
57237
57339
  "access_method.revoked",
57238
57340
  "access_method.card_encoding_required",
@@ -57335,6 +57437,7 @@ var openapi_default = {
57335
57437
  "access_grant.access_granted_to_door",
57336
57438
  "access_grant.access_to_door_lost",
57337
57439
  "access_grant.access_times_changed",
57440
+ "access_grant.could_not_create_requested_access_methods",
57338
57441
  "access_method.issued",
57339
57442
  "access_method.revoked",
57340
57443
  "access_method.card_encoding_required",