@izak0s/spacebring-api 16.0.0 → 16.2.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.d.cts CHANGED
@@ -905,7 +905,11 @@ interface paths {
905
905
  delete?: never;
906
906
  options?: never;
907
907
  head?: never;
908
- patch?: never;
908
+ /**
909
+ * Update a check-in
910
+ * @description Change when a customer arrived, or when they left on a check-in that is checked out. Fields left out keep their values. The booking, event ticket, or visit behind the check-in gets the new dates too. The customer and administrators are not notified. With bearer token authentication, the user must be an administrator of the check-in's location. <h3>OAuth</h3>Required scopes: <code>checkIns</code>
911
+ */
912
+ patch: operations["patchCheckIn"];
909
913
  trace?: never;
910
914
  };
911
915
  "/check_ins/v1/checkin": {
@@ -2129,6 +2133,26 @@ interface paths {
2129
2133
  patch?: never;
2130
2134
  trace?: never;
2131
2135
  };
2136
+ "/plans/v1/media": {
2137
+ parameters: {
2138
+ query?: never;
2139
+ header?: never;
2140
+ path?: never;
2141
+ cookie?: never;
2142
+ };
2143
+ get?: never;
2144
+ put?: never;
2145
+ /**
2146
+ * Create a media upload
2147
+ * @description Create a media upload for a plan cover image. The response carries a presigned URL: send the raw file bytes with a PUT request within a minute, using exactly the headers returned. Once the file is stored, pass the returned key as <code>media[0].key</code> when creating or updating a plan within an hour; an image that is not attached by then is discarded. <h3>OAuth</h3>Required scopes: <code>plans</code>
2148
+ */
2149
+ post: operations["createPlanMedia"];
2150
+ delete?: never;
2151
+ options?: never;
2152
+ head?: never;
2153
+ patch?: never;
2154
+ trace?: never;
2155
+ };
2132
2156
  "/plans/v1/{planId}": {
2133
2157
  parameters: {
2134
2158
  query?: never;
@@ -4196,7 +4220,13 @@ interface components {
4196
4220
  /** @description Payment method used. */
4197
4221
  method: {
4198
4222
  /** @description Present when type is external. */
4199
- external?: Record<string, never>;
4223
+ external?: {
4224
+ /**
4225
+ * @description How the money was collected outside Spacebring: `bankTransfer`, `card` for a card charged on the location's own terminal, `cash`, `check`, or `paymentLink`. Absent when the administrator did not record it.
4226
+ * @enum {string}
4227
+ */
4228
+ paidBy?: "bankTransfer" | "card" | "cash" | "check" | "paymentLink";
4229
+ };
4200
4230
  /** @description Present when type is paymentGateway. */
4201
4231
  paymentGateway?: {
4202
4232
  /** @description Payment gateway identifier. */
@@ -4598,7 +4628,13 @@ interface components {
4598
4628
  /** @description Payment method used. */
4599
4629
  method: {
4600
4630
  /** @description Present when type is external. */
4601
- external?: Record<string, never>;
4631
+ external?: {
4632
+ /**
4633
+ * @description How the money was collected outside Spacebring: `bankTransfer`, `card` for a card charged on the location's own terminal, `cash`, `check`, or `paymentLink`. Absent when the administrator did not record it.
4634
+ * @enum {string}
4635
+ */
4636
+ paidBy?: "bankTransfer" | "card" | "cash" | "check" | "paymentLink";
4637
+ };
4602
4638
  /** @description Present when type is paymentGateway. */
4603
4639
  paymentGateway?: {
4604
4640
  /** @description Payment gateway identifier. */
@@ -4997,7 +5033,13 @@ interface components {
4997
5033
  /** @description Payment method used. */
4998
5034
  method: {
4999
5035
  /** @description Present when type is external. */
5000
- external?: Record<string, never>;
5036
+ external?: {
5037
+ /**
5038
+ * @description How the money was collected outside Spacebring: `bankTransfer`, `card` for a card charged on the location's own terminal, `cash`, `check`, or `paymentLink`. Absent when the administrator did not record it.
5039
+ * @enum {string}
5040
+ */
5041
+ paidBy?: "bankTransfer" | "card" | "cash" | "check" | "paymentLink";
5042
+ };
5001
5043
  /** @description Present when type is paymentGateway. */
5002
5044
  paymentGateway?: {
5003
5045
  /** @description Payment gateway identifier. */
@@ -5508,7 +5550,13 @@ interface components {
5508
5550
  /** @description Payment method used. */
5509
5551
  method: {
5510
5552
  /** @description Present when type is external. */
5511
- external?: Record<string, never>;
5553
+ external?: {
5554
+ /**
5555
+ * @description How the money was collected outside Spacebring: `bankTransfer`, `card` for a card charged on the location's own terminal, `cash`, `check`, or `paymentLink`. Absent when the administrator did not record it.
5556
+ * @enum {string}
5557
+ */
5558
+ paidBy?: "bankTransfer" | "card" | "cash" | "check" | "paymentLink";
5559
+ };
5512
5560
  /** @description Present when type is paymentGateway. */
5513
5561
  paymentGateway?: {
5514
5562
  /** @description Payment gateway identifier. */
@@ -6590,6 +6638,11 @@ interface components {
6590
6638
  * @description ISO timestamp of when the user checked in.
6591
6639
  */
6592
6640
  checkInDate?: string;
6641
+ /**
6642
+ * @description How the customer was checked in: 'reception' with their code on the Reception app, 'manual' by an administrator, 'agent' by the AI agent, and 'api' through the API. Absent on check-ins made before methods were recorded.
6643
+ * @enum {string}
6644
+ */
6645
+ checkInMethod?: "agent" | "api" | "manual" | "reception";
6593
6646
  /**
6594
6647
  * Format: uuid
6595
6648
  * @description ID of the schedule this check-in was opened under. Absent on check-ins created before schedules were introduced.
@@ -6600,6 +6653,11 @@ interface components {
6600
6653
  * @description ISO timestamp of when the user checked out.
6601
6654
  */
6602
6655
  checkOutDate?: string;
6656
+ /**
6657
+ * @description How the customer was checked out: 'reception' with their code on the Reception app, 'manual' by an administrator, 'automatic' by the automatic check-out, 'agent' by the AI agent, and 'api' through the API. Absent while the customer is checked in, and on check-ins made before methods were recorded.
6658
+ * @enum {string}
6659
+ */
6660
+ checkOutMethod?: "agent" | "api" | "manual" | "reception" | "automatic";
6603
6661
  /** @description Confirmation code of the check-in. */
6604
6662
  code?: string;
6605
6663
  /**
@@ -6720,6 +6778,11 @@ interface components {
6720
6778
  * @description ISO timestamp of when the user checked in.
6721
6779
  */
6722
6780
  checkInDate?: string;
6781
+ /**
6782
+ * @description How the customer was checked in: 'reception' with their code on the Reception app, 'manual' by an administrator, 'agent' by the AI agent, and 'api' through the API. Absent on check-ins made before methods were recorded.
6783
+ * @enum {string}
6784
+ */
6785
+ checkInMethod?: "agent" | "api" | "manual" | "reception";
6723
6786
  /**
6724
6787
  * Format: uuid
6725
6788
  * @description ID of the schedule this check-in was opened under. Absent on check-ins created before schedules were introduced.
@@ -6730,6 +6793,11 @@ interface components {
6730
6793
  * @description ISO timestamp of when the user checked out.
6731
6794
  */
6732
6795
  checkOutDate?: string;
6796
+ /**
6797
+ * @description How the customer was checked out: 'reception' with their code on the Reception app, 'manual' by an administrator, 'automatic' by the automatic check-out, 'agent' by the AI agent, and 'api' through the API. Absent while the customer is checked in, and on check-ins made before methods were recorded.
6798
+ * @enum {string}
6799
+ */
6800
+ checkOutMethod?: "agent" | "api" | "manual" | "reception" | "automatic";
6733
6801
  /** @description Confirmation code of the check-in. */
6734
6802
  code?: string;
6735
6803
  /**
@@ -7162,6 +7230,11 @@ interface components {
7162
7230
  * @enum {string}
7163
7231
  */
7164
7232
  status: "draft" | "issued" | "signed" | "declined" | "terminated";
7233
+ /**
7234
+ * Format: uuid
7235
+ * @description ID of the subscription created when the contract was issued, present when the action is subscription.
7236
+ */
7237
+ subscriptionRef?: string;
7165
7238
  /**
7166
7239
  * Format: uuid
7167
7240
  * @description ID of the template used to generate this contract.
@@ -7379,6 +7452,11 @@ interface components {
7379
7452
  * @enum {string}
7380
7453
  */
7381
7454
  status: "draft" | "issued" | "signed" | "declined" | "terminated";
7455
+ /**
7456
+ * Format: uuid
7457
+ * @description ID of the subscription created when the contract was issued, present when the action is subscription.
7458
+ */
7459
+ subscriptionRef?: string;
7382
7460
  /**
7383
7461
  * Format: uuid
7384
7462
  * @description ID of the template used to generate this contract.
@@ -7599,6 +7677,8 @@ interface components {
7599
7677
  percentOff?: number | null;
7600
7678
  /** @description Product types the coupon applies to. */
7601
7679
  productTypes: ("roomBookings" | "eventSpaceBookings" | "conferenceRoomBookings" | "meetingRoomBookings" | "phoneBoothBookings" | "stationBookings" | "studioBookings" | "hotDeskBookings" | "dedicatedDeskBookings" | "officeBookings" | "parkingBookings" | "equipmentBookings" | "eventTickets" | "shopProducts" | "packages" | "subscriptionItems")[];
7680
+ /** @description Name of the coupon. Absent when the coupon has none and is named after its discount and the products it applies to. */
7681
+ title?: string;
7602
7682
  /**
7603
7683
  * @description Deprecated coupon category.
7604
7684
  * @enum {string}
@@ -9370,6 +9450,13 @@ interface components {
9370
9450
  * @description ID of the location this plan belongs to.
9371
9451
  */
9372
9452
  locationRef: string;
9453
+ /** @description Media files attached to this plan. The first is its cover image. */
9454
+ media: {
9455
+ /** @description Storage key of the media file. */
9456
+ key: string;
9457
+ /** @description Public URL of the media file. */
9458
+ url: string;
9459
+ }[];
9373
9460
  /**
9374
9461
  * @description Billing period of the plan.
9375
9462
  * @enum {string}
@@ -9543,6 +9630,13 @@ interface components {
9543
9630
  * @description ID of the location this plan belongs to.
9544
9631
  */
9545
9632
  locationRef: string;
9633
+ /** @description Media files attached to this plan. The first is its cover image. */
9634
+ media: {
9635
+ /** @description Storage key of the media file. */
9636
+ key: string;
9637
+ /** @description Public URL of the media file. */
9638
+ url: string;
9639
+ }[];
9546
9640
  /**
9547
9641
  * @description Billing period of the plan.
9548
9642
  * @enum {string}
@@ -9573,6 +9667,47 @@ interface components {
9573
9667
  /** @description Display name of the plan. */
9574
9668
  title: string;
9575
9669
  };
9670
+ createPlanMedia: {
9671
+ /** @description The created media upload. */
9672
+ media: {
9673
+ /** @description Storage key of the media file. Pass it as media[0].key when creating or updating a plan. */
9674
+ key: string;
9675
+ /**
9676
+ * @description MIME type of the image file.
9677
+ * @enum {string}
9678
+ */
9679
+ mimeType: "image/gif" | "image/jpeg" | "image/png" | "image/webp";
9680
+ /** @description Size of the image file in bytes. */
9681
+ size: number;
9682
+ /**
9683
+ * @description Upload status. pending: the file has not been received yet. uploaded: the file is stored and can be attached to a plan. attached: a plan references the file.
9684
+ * @enum {string}
9685
+ */
9686
+ status: "pending" | "uploaded" | "attached";
9687
+ /** @description How to upload the file. Send the raw bytes as the request body, not a multipart form. */
9688
+ upload: {
9689
+ /**
9690
+ * Format: date-time
9691
+ * @description ISO timestamp after which the upload URL is rejected.
9692
+ */
9693
+ expirationDate: string;
9694
+ /** @description Headers the PUT request must send exactly as given; the signature covers them. */
9695
+ headers: {
9696
+ /** @description Must equal the size declared when the upload was created. */
9697
+ "Content-Length": string;
9698
+ /** @description Must equal the mimeType declared when the upload was created. */
9699
+ "Content-Type": string;
9700
+ };
9701
+ /**
9702
+ * @description HTTP method of the upload request.
9703
+ * @enum {string}
9704
+ */
9705
+ method: "PUT";
9706
+ /** @description Presigned URL to send the raw file bytes to. */
9707
+ url: string;
9708
+ };
9709
+ };
9710
+ };
9576
9711
  getPlan: {
9577
9712
  /** @description The plan. */
9578
9713
  plan: {
@@ -9715,6 +9850,13 @@ interface components {
9715
9850
  * @description ID of the location this plan belongs to.
9716
9851
  */
9717
9852
  locationRef: string;
9853
+ /** @description Media files attached to this plan. The first is its cover image. */
9854
+ media: {
9855
+ /** @description Storage key of the media file. */
9856
+ key: string;
9857
+ /** @description Public URL of the media file. */
9858
+ url: string;
9859
+ }[];
9718
9860
  /**
9719
9861
  * @description Billing period of the plan.
9720
9862
  * @enum {string}
@@ -10025,7 +10167,7 @@ interface components {
10025
10167
  /** @description Brivo access group reference. */
10026
10168
  brivoGroupRef?: number | null;
10027
10169
  /**
10028
- * @description Buffer time blocked before each booking.
10170
+ * @description Time kept free before and after each booking of a room or desk. Other resource types ignore it.
10029
10171
  * @enum {string}
10030
10172
  */
10031
10173
  bufferTime: "zeroMinutes" | "fiveMinutes" | "tenMinutes" | "fifteenMinutes" | "thirtyMinutes" | "sixtyMinutes";
@@ -10748,7 +10890,7 @@ interface components {
10748
10890
  /** @description Brivo access group reference. */
10749
10891
  brivoGroupRef?: number | null;
10750
10892
  /**
10751
- * @description Buffer time blocked before each booking.
10893
+ * @description Time kept free before and after each booking of a room or desk. Other resource types ignore it.
10752
10894
  * @enum {string}
10753
10895
  */
10754
10896
  bufferTime: "zeroMinutes" | "fiveMinutes" | "tenMinutes" | "fifteenMinutes" | "thirtyMinutes" | "sixtyMinutes";
@@ -20619,7 +20761,13 @@ interface components {
20619
20761
  /** @description Payment method used. */
20620
20762
  method: {
20621
20763
  /** @description Present when type is external. */
20622
- external?: Record<string, never>;
20764
+ external?: {
20765
+ /**
20766
+ * @description How the money was collected outside Spacebring: `bankTransfer`, `card` for a card charged on the location's own terminal, `cash`, `check`, or `paymentLink`. Absent when the administrator did not record it.
20767
+ * @enum {string}
20768
+ */
20769
+ paidBy?: "bankTransfer" | "card" | "cash" | "check" | "paymentLink";
20770
+ };
20623
20771
  /** @description Present when type is paymentGateway. */
20624
20772
  paymentGateway?: {
20625
20773
  /** @description Payment gateway identifier. */
@@ -21333,7 +21481,13 @@ interface components {
21333
21481
  /** @description Payment method used. */
21334
21482
  method: {
21335
21483
  /** @description Present when type is external. */
21336
- external?: Record<string, never>;
21484
+ external?: {
21485
+ /**
21486
+ * @description How the money was collected outside Spacebring: `bankTransfer`, `card` for a card charged on the location's own terminal, `cash`, `check`, or `paymentLink`. Absent when the administrator did not record it.
21487
+ * @enum {string}
21488
+ */
21489
+ paidBy?: "bankTransfer" | "card" | "cash" | "check" | "paymentLink";
21490
+ };
21337
21491
  /** @description Present when type is paymentGateway. */
21338
21492
  paymentGateway?: {
21339
21493
  /** @description Payment gateway identifier. */
@@ -22047,7 +22201,13 @@ interface components {
22047
22201
  /** @description Payment method used. */
22048
22202
  method: {
22049
22203
  /** @description Present when type is external. */
22050
- external?: Record<string, never>;
22204
+ external?: {
22205
+ /**
22206
+ * @description How the money was collected outside Spacebring: `bankTransfer`, `card` for a card charged on the location's own terminal, `cash`, `check`, or `paymentLink`. Absent when the administrator did not record it.
22207
+ * @enum {string}
22208
+ */
22209
+ paidBy?: "bankTransfer" | "card" | "cash" | "check" | "paymentLink";
22210
+ };
22051
22211
  /** @description Present when type is paymentGateway. */
22052
22212
  paymentGateway?: {
22053
22213
  /** @description Payment gateway identifier. */
@@ -23143,6 +23303,11 @@ interface components {
23143
23303
  * @description ISO timestamp of when the money was received. Defaults to now. Must not be in the future.
23144
23304
  */
23145
23305
  paymentDate?: string;
23306
+ /**
23307
+ * @description How the money was collected outside Spacebring: `bankTransfer`, `card` for a card charged on the location's own terminal, `cash`, `check`, or `paymentLink`. Omit it when unknown.
23308
+ * @enum {string}
23309
+ */
23310
+ paidBy?: "bankTransfer" | "card" | "cash" | "check" | "paymentLink";
23146
23311
  };
23147
23312
  /** @description Payment gateway (card) payment method. */
23148
23313
  paymentGateway?: {
@@ -23390,6 +23555,25 @@ interface components {
23390
23555
  };
23391
23556
  };
23392
23557
  };
23558
+ patchCheckIn: {
23559
+ content: {
23560
+ "application/json": {
23561
+ /** @description Check-in dates to change. Fields left out keep their values. */
23562
+ checkIn: {
23563
+ /**
23564
+ * Format: date-time
23565
+ * @description ISO timestamp of when the customer arrived. Must be in the past.
23566
+ */
23567
+ checkInDate?: string;
23568
+ /**
23569
+ * Format: date-time
23570
+ * @description ISO timestamp of when the customer left. Must be in the past and after the check-in date. Accepted only for a check-in that is checked out.
23571
+ */
23572
+ checkOutDate?: string;
23573
+ };
23574
+ };
23575
+ };
23576
+ };
23393
23577
  checkIn: {
23394
23578
  content: {
23395
23579
  "application/json": {
@@ -23868,6 +24052,8 @@ interface components {
23868
24052
  percentOff?: number;
23869
24053
  /** @description Product types the coupon applies to. */
23870
24054
  productTypes: ("roomBookings" | "eventSpaceBookings" | "conferenceRoomBookings" | "meetingRoomBookings" | "phoneBoothBookings" | "stationBookings" | "studioBookings" | "hotDeskBookings" | "dedicatedDeskBookings" | "officeBookings" | "parkingBookings" | "equipmentBookings" | "eventTickets" | "shopProducts" | "packages" | "subscriptionItems")[];
24055
+ /** @description Name of the coupon. An empty title leaves the coupon named after its discount and the products it applies to. */
24056
+ title?: string;
23871
24057
  };
23872
24058
  };
23873
24059
  };
@@ -23875,10 +24061,10 @@ interface components {
23875
24061
  updateCoupon: {
23876
24062
  content: {
23877
24063
  "application/json": {
23878
- /** @description Coupon fields to update. */
24064
+ /** @description Coupon fields to update. Fields left out keep their current value. */
23879
24065
  coupon: {
23880
- /** @description Limited items to set on the coupon. */
23881
- limitedItems: {
24066
+ /** @description Limited items to set on the coupon. Only a coupon created with limited items enabled accepts them. */
24067
+ limitedItems?: {
23882
24068
  /** @description Replacement list of limited items for the coupon. */
23883
24069
  values: {
23884
24070
  /**
@@ -23893,6 +24079,8 @@ interface components {
23893
24079
  type: "roomBookings" | "eventSpaceBookings" | "conferenceRoomBookings" | "meetingRoomBookings" | "phoneBoothBookings" | "stationBookings" | "studioBookings" | "hotDeskBookings" | "dedicatedDeskBookings" | "officeBookings" | "parkingBookings" | "equipmentBookings" | "eventTickets" | "shopProducts" | "packages" | "subscriptionItems";
23894
24080
  }[];
23895
24081
  };
24082
+ /** @description Name of the coupon. An empty title leaves the coupon named after its discount and the products it applies to. */
24083
+ title?: string;
23896
24084
  };
23897
24085
  };
23898
24086
  };
@@ -24666,6 +24854,14 @@ interface components {
24666
24854
  * @description ID of the location this plan belongs to.
24667
24855
  */
24668
24856
  locationRef: string;
24857
+ /**
24858
+ * @description Media files to attach. The url is generated server-side.
24859
+ * @default []
24860
+ */
24861
+ media?: {
24862
+ /** @description Storage key of the media file, as returned by the media upload endpoint. */
24863
+ key: string;
24864
+ }[];
24669
24865
  /**
24670
24866
  * @description Billing period of the plan.
24671
24867
  * @enum {string}
@@ -24712,6 +24908,22 @@ interface components {
24712
24908
  };
24713
24909
  };
24714
24910
  };
24911
+ createPlanMedia: {
24912
+ content: {
24913
+ "application/json": {
24914
+ /** @description File to upload. */
24915
+ media: {
24916
+ /**
24917
+ * @description MIME type of the file to upload.
24918
+ * @enum {string}
24919
+ */
24920
+ mimeType: "image/gif" | "image/jpeg" | "image/png" | "image/webp";
24921
+ /** @description Size of the file in bytes. The upload is rejected when the body length differs. */
24922
+ size: number;
24923
+ };
24924
+ };
24925
+ };
24926
+ };
24715
24927
  updatePlan: {
24716
24928
  content: {
24717
24929
  "application/json": {
@@ -24802,6 +25014,11 @@ interface components {
24802
25014
  productTypes?: ("roomBookings" | "eventSpaceBookings" | "conferenceRoomBookings" | "meetingRoomBookings" | "phoneBoothBookings" | "stationBookings" | "studioBookings" | "hotDeskBookings" | "dedicatedDeskBookings" | "officeBookings" | "parkingBookings" | "equipmentBookings" | "eventTickets" | "shopProducts" | "packages" | "subscriptionItems")[];
24803
25015
  };
24804
25016
  }[];
25017
+ /** @description Media files to attach, replacing the current ones. Pass an empty array to remove them. The url is generated server-side. */
25018
+ media?: {
25019
+ /** @description Storage key of the media file, as returned by the media upload endpoint. */
25020
+ key: string;
25021
+ }[];
24805
25022
  /** @description Price of the plan. */
24806
25023
  price?: number;
24807
25024
  /** @description Printing integration settings. */
@@ -24874,7 +25091,7 @@ interface components {
24874
25091
  /** @description Brivo access group reference. */
24875
25092
  brivoGroupRef?: number | null;
24876
25093
  /**
24877
- * @description Buffer time blocked before each booking.
25094
+ * @description Time kept free before and after each booking of a room or desk. Other resource types ignore it.
24878
25095
  * @enum {string}
24879
25096
  */
24880
25097
  bufferTime?: "zeroMinutes" | "fiveMinutes" | "tenMinutes" | "fifteenMinutes" | "thirtyMinutes" | "sixtyMinutes";
@@ -25381,7 +25598,7 @@ interface components {
25381
25598
  /** @description Brivo access group reference. */
25382
25599
  brivoGroupRef?: number | null;
25383
25600
  /**
25384
- * @description Buffer time blocked before each booking.
25601
+ * @description Time kept free before and after each booking of a room or desk. Other resource types ignore it.
25385
25602
  * @enum {string}
25386
25603
  */
25387
25604
  bufferTime?: "zeroMinutes" | "fiveMinutes" | "tenMinutes" | "fifteenMinutes" | "thirtyMinutes" | "sixtyMinutes";
@@ -27340,6 +27557,11 @@ interface components {
27340
27557
  * @description ISO timestamp of when the money was received. Defaults to now. Must not be in the future.
27341
27558
  */
27342
27559
  paymentDate?: string;
27560
+ /**
27561
+ * @description How the money was collected outside Spacebring: `bankTransfer`, `card` for a card charged on the location's own terminal, `cash`, `check`, or `paymentLink`. Omit it when unknown.
27562
+ * @enum {string}
27563
+ */
27564
+ paidBy?: "bankTransfer" | "card" | "cash" | "check" | "paymentLink";
27343
27565
  };
27344
27566
  /** @description Payment gateway (card) payment method. */
27345
27567
  paymentGateway?: {
@@ -29372,6 +29594,66 @@ interface operations {
29372
29594
  };
29373
29595
  };
29374
29596
  };
29597
+ patchCheckIn: {
29598
+ parameters: {
29599
+ query?: never;
29600
+ header?: {
29601
+ /** @description The id of the network. Required when using bearer token authentication */
29602
+ "spacebring-network-id"?: string;
29603
+ };
29604
+ path: {
29605
+ /** @description The ID of the check-in. */
29606
+ checkInId: string;
29607
+ };
29608
+ cookie?: never;
29609
+ };
29610
+ requestBody: components["requestBodies"]["patchCheckIn"];
29611
+ responses: {
29612
+ /** @description No Content */
29613
+ 204: {
29614
+ headers: {
29615
+ [name: string]: unknown;
29616
+ };
29617
+ content?: never;
29618
+ };
29619
+ /** @description Bad Request */
29620
+ 400: {
29621
+ headers: {
29622
+ [name: string]: unknown;
29623
+ };
29624
+ content: {
29625
+ "application/json": components["schemas"]["responseError"];
29626
+ };
29627
+ };
29628
+ /** @description Forbidden */
29629
+ 403: {
29630
+ headers: {
29631
+ [name: string]: unknown;
29632
+ };
29633
+ content: {
29634
+ "application/json": components["schemas"]["responseError"];
29635
+ };
29636
+ };
29637
+ /** @description Not Found */
29638
+ 404: {
29639
+ headers: {
29640
+ [name: string]: unknown;
29641
+ };
29642
+ content: {
29643
+ "application/json": components["schemas"]["responseError"];
29644
+ };
29645
+ };
29646
+ /** @description Conflict */
29647
+ 409: {
29648
+ headers: {
29649
+ [name: string]: unknown;
29650
+ };
29651
+ content: {
29652
+ "application/json": components["schemas"]["responseError"];
29653
+ };
29654
+ };
29655
+ };
29656
+ };
29375
29657
  checkIn: {
29376
29658
  parameters: {
29377
29659
  query?: never;
@@ -32863,6 +33145,38 @@ interface operations {
32863
33145
  };
32864
33146
  };
32865
33147
  };
33148
+ createPlanMedia: {
33149
+ parameters: {
33150
+ query?: never;
33151
+ header?: {
33152
+ /** @description The id of the network. Required when using bearer token authentication */
33153
+ "spacebring-network-id"?: string;
33154
+ };
33155
+ path?: never;
33156
+ cookie?: never;
33157
+ };
33158
+ requestBody: components["requestBodies"]["createPlanMedia"];
33159
+ responses: {
33160
+ /** @description Created */
33161
+ 201: {
33162
+ headers: {
33163
+ [name: string]: unknown;
33164
+ };
33165
+ content: {
33166
+ "application/json": components["schemas"]["createPlanMedia"];
33167
+ };
33168
+ };
33169
+ /** @description Bad Request */
33170
+ 400: {
33171
+ headers: {
33172
+ [name: string]: unknown;
33173
+ };
33174
+ content: {
33175
+ "application/json": components["schemas"]["responseError"];
33176
+ };
33177
+ };
33178
+ };
33179
+ };
32866
33180
  getPlan: {
32867
33181
  parameters: {
32868
33182
  query?: never;
@@ -36583,6 +36897,8 @@ interface GetRegistrationsQuery {
36583
36897
 
36584
36898
  /** A Plan entity as returned by the Spacebring API. */
36585
36899
  type Plan = NonNullable<components["schemas"]["plan"]>;
36900
+ /** A PlanMedia entity as returned by the Spacebring API. */
36901
+ type PlanMedia = NonNullable<operations["createPlanMedia"]["responses"][201]["content"]["application/json"]["media"]>;
36586
36902
  /** Query parameters for `sb.plans.list()`. */
36587
36903
  interface GetPlansQuery {
36588
36904
  /** @deprecated Only applies together with resourceRef. Filter the plans.tiers of `GET /resources/v1/{resourceId}` by their entire field instead. When listing plans for a resource, filter by entire resource vs partial tiers. Pass true or false. */
@@ -36598,6 +36914,8 @@ interface GetPlansQuery {
36598
36914
  }
36599
36915
  /** Request body for `sb.plans.create()`. */
36600
36916
  type CreatePlanBody = NonNullable<NonNullable<operations["createPlan"]["requestBody"]>["content"]["application/json"]["plan"]>;
36917
+ /** Request body for `sb.plans.createMedia()`. */
36918
+ type CreatePlanMediaBody = NonNullable<NonNullable<operations["createPlanMedia"]["requestBody"]>["content"]["application/json"]["media"]>;
36601
36919
  /** Request body for `sb.plans.update()`. */
36602
36920
  type UpdatePlanBody = NonNullable<NonNullable<operations["updatePlan"]["requestBody"]>["content"]["application/json"]["plan"]>;
36603
36921
 
@@ -36930,6 +37248,8 @@ interface GetCheckInsQuery {
36930
37248
  type CheckInBody = NonNullable<operations["checkIn"]["requestBody"]>["content"]["application/json"];
36931
37249
  /** Request body for `sb.checkIns.checkOut()`. */
36932
37250
  type CheckOutBody = NonNullable<operations["checkOut"]["requestBody"]>["content"]["application/json"];
37251
+ /** Request body for `sb.checkIns.update()`. */
37252
+ type PatchCheckInBody = NonNullable<NonNullable<operations["patchCheckIn"]["requestBody"]>["content"]["application/json"]["checkIn"]>;
36933
37253
 
36934
37254
  /** A CreditNote entity as returned by the Spacebring API. */
36935
37255
  type CreditNote = NonNullable<components["schemas"]["creditNote"]>;
@@ -37232,6 +37552,7 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
37232
37552
  }>;
37233
37553
  iterate(query?: Omit<GetCheckInsQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<CheckIn, void, undefined>;
37234
37554
  get(checkInId: string, options?: SpacebringRequestOptions): Promise<CheckIn>;
37555
+ update(checkInId: string, checkIn: PatchCheckInBody, options?: SpacebringRequestOptions): Promise<undefined>;
37235
37556
  checkIn(body: CheckInBody, options?: SpacebringRequestOptions): Promise<CheckIn>;
37236
37557
  checkOut(body: CheckOutBody, options?: SpacebringRequestOptions): Promise<CheckIn>;
37237
37558
  };
@@ -37420,6 +37741,7 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
37420
37741
  create(plan: CreatePlanBody, options?: SpacebringRequestOptions): Promise<Plan>;
37421
37742
  update(planId: string, plan: UpdatePlanBody, options?: SpacebringRequestOptions): Promise<undefined>;
37422
37743
  delete(planId: string, options?: SpacebringRequestOptions): Promise<undefined>;
37744
+ createMedia(media: CreatePlanMediaBody, options?: SpacebringRequestOptions): Promise<PlanMedia>;
37423
37745
  };
37424
37746
  registrations: {
37425
37747
  list(query?: GetRegistrationsQuery, options?: SpacebringRequestOptions): Promise<{
@@ -37700,4 +38022,4 @@ declare class SpacebringError extends Error {
37700
38022
  }
37701
38023
 
37702
38024
  export { Spacebring, SpacebringError };
37703
- export type { Activity, AddEventHostsBody, AltCurrency, Application, ApplyBenefitBody, Assignment, Attachment, Balance, Benefit, BenefitCategory, BenefitMedia, Booking, CheckIn, CheckInBody, CheckInVisitBody, CheckOutBody, CheckOutVisitBody, Comment, Company, CompanyMedia, Contact, Contract, Coupon, CreateAltCurrencyBody, CreateAssignmentBody, CreateBenefitBody, CreateBenefitCategoryBody, CreateBenefitMediaBody, CreateBookingBody, CreateCompanyBody, CreateCompanyMediaBody, CreateContactBody, CreateContractBody, CreateCouponBody, CreateCreditNoteBody, CreateCreditsTransactionBody, CreateDayPassesTransactionBody, CreateEventBody, CreateEventMediaBody, CreateFeedPostBody, CreateFeedPostCommentBody, CreateFeedPostMediaBody, CreateGuideAttachmentBody, CreateGuideBody, CreateGuideMediaBody, CreateInvoiceBody, CreateInvoiceItemBody, CreateMembershipBody, CreateMoneyTransactionBody, CreatePackageBody, CreatePlanBody, CreateProductBody, CreateProductMediaBody, CreatePromocodeBody, CreateRequestBody, CreateResourceBody, CreateResourceMediaBody, CreateShopCategoryBody, CreateSubscriptionBody, CreateSubscriptionItemBody, CreateSupportTicketBody, CreateSupportTicketCommentBody, CreateSupportTicketMediaBody, CreateTemplateBody, CreateTemplateMediaBody, CreateVisitBody, CreditNote, CreditScheduledTransaction, CreditTransaction, DayPassScheduledTransaction, DayPassTransaction, Event, EventMedia, EventTicket, FeedMedia, GetAltCurrenciesQuery, GetAssignmentsQuery, GetBenefitApplicationsQuery, GetBenefitCategoriesQuery, GetBenefitsQuery, GetBookingsQuery, GetCheckInsQuery, GetCompaniesQuery, GetContactsQuery, GetContractsQuery, GetCouponsQuery, GetCreditNotesQuery, GetCreditsTransactionsQuery, GetDayPassesTransactionsQuery, GetDiscountRedemptionsQuery, GetEventTicketsQuery, GetEventsByOrganizationQuery, GetFeedPostsQuery, GetFloorsQuery, GetGuidesQuery, GetInvoicesQuery, GetMembershipsDeletedQuery, GetMembershipsQuery, GetMoneyTransactionsQuery, GetOrdersQuery, GetPackagesQuery, GetPlansQuery, GetProductsQuery, GetPromocodesQuery, GetRegistrationsQuery, GetRequestsQuery, GetResourceAvailability, GetResourceAvailabilityBody, GetResourcesQuery, GetScheduledCreditsTransactionsQuery, GetScheduledDayPassesTransactionsQuery, GetShopCategoriesQuery, GetSubscriptionsQuery, GetSupportTicketsQuery, GetTemplatesQuery, GetUpcomingInvoiceItemsQuery, GetUpcomingInvoiceQuery, GetVisitsQuery, Guide, GuideMedia, Invoice, InvoiceItem, IssueContractBody, IssueInvoiceBody, Like, ListInvoiceItemsQuery, Location, Membership, MoneyTransaction, Network, Order, Package, PatchAssignmentBody, PatchBenefitBody, PatchBookingBody, PatchEventBody, PatchFeedPostBody, PatchGuideBody, PatchMoneyTransactionBody, PatchPackageBody, PatchProductBody, PatchResourceBody, PayInvoiceBody, Payment, Plan, Post, PreviewCreditNoteBody, Product, ProductMedia, Promocode, Redemption, Refund, RefundMoneyTransactionBody, Registration, Request$1 as Request, Resource, ResourceMedia, ShopCategory, SpacebringConfig, SpacebringErrorBody, SpacebringRequestOptions, SpacebringResources, Subscription, SupportTicket, Template, TemplateMedia, TerminateContractBody, TicketMedia, UpcomingItem, UpdateAltCurrencyBody, UpdateBenefitBody, UpdateBenefitCategoryBody, UpdateCompanyBody, UpdateContractBody, UpdateCouponBody, UpdateCreditNoteBody, UpdateEventBody, UpdateEventTicketBody, UpdateFeedPostBody, UpdateInvoiceBody, UpdateInvoiceItemBody, UpdateMembershipBody, UpdatePlanBody, UpdateProductBody, UpdateShopCategoryBody, UpdateSubscriptionBody, UpdateSubscriptionItemBody, UpdateSupportTicketAssigneeBody, UpdateSupportTicketCommentBody, UpdateSupportTicketStatusBody, UpdateSupportTicketTypeBody, UpdateTemplateBody, UpdateVisitBody, Visit, components, operations, paths };
38025
+ export type { Activity, AddEventHostsBody, AltCurrency, Application, ApplyBenefitBody, Assignment, Attachment, Balance, Benefit, BenefitCategory, BenefitMedia, Booking, CheckIn, CheckInBody, CheckInVisitBody, CheckOutBody, CheckOutVisitBody, Comment, Company, CompanyMedia, Contact, Contract, Coupon, CreateAltCurrencyBody, CreateAssignmentBody, CreateBenefitBody, CreateBenefitCategoryBody, CreateBenefitMediaBody, CreateBookingBody, CreateCompanyBody, CreateCompanyMediaBody, CreateContactBody, CreateContractBody, CreateCouponBody, CreateCreditNoteBody, CreateCreditsTransactionBody, CreateDayPassesTransactionBody, CreateEventBody, CreateEventMediaBody, CreateFeedPostBody, CreateFeedPostCommentBody, CreateFeedPostMediaBody, CreateGuideAttachmentBody, CreateGuideBody, CreateGuideMediaBody, CreateInvoiceBody, CreateInvoiceItemBody, CreateMembershipBody, CreateMoneyTransactionBody, CreatePackageBody, CreatePlanBody, CreatePlanMediaBody, CreateProductBody, CreateProductMediaBody, CreatePromocodeBody, CreateRequestBody, CreateResourceBody, CreateResourceMediaBody, CreateShopCategoryBody, CreateSubscriptionBody, CreateSubscriptionItemBody, CreateSupportTicketBody, CreateSupportTicketCommentBody, CreateSupportTicketMediaBody, CreateTemplateBody, CreateTemplateMediaBody, CreateVisitBody, CreditNote, CreditScheduledTransaction, CreditTransaction, DayPassScheduledTransaction, DayPassTransaction, Event, EventMedia, EventTicket, FeedMedia, GetAltCurrenciesQuery, GetAssignmentsQuery, GetBenefitApplicationsQuery, GetBenefitCategoriesQuery, GetBenefitsQuery, GetBookingsQuery, GetCheckInsQuery, GetCompaniesQuery, GetContactsQuery, GetContractsQuery, GetCouponsQuery, GetCreditNotesQuery, GetCreditsTransactionsQuery, GetDayPassesTransactionsQuery, GetDiscountRedemptionsQuery, GetEventTicketsQuery, GetEventsByOrganizationQuery, GetFeedPostsQuery, GetFloorsQuery, GetGuidesQuery, GetInvoicesQuery, GetMembershipsDeletedQuery, GetMembershipsQuery, GetMoneyTransactionsQuery, GetOrdersQuery, GetPackagesQuery, GetPlansQuery, GetProductsQuery, GetPromocodesQuery, GetRegistrationsQuery, GetRequestsQuery, GetResourceAvailability, GetResourceAvailabilityBody, GetResourcesQuery, GetScheduledCreditsTransactionsQuery, GetScheduledDayPassesTransactionsQuery, GetShopCategoriesQuery, GetSubscriptionsQuery, GetSupportTicketsQuery, GetTemplatesQuery, GetUpcomingInvoiceItemsQuery, GetUpcomingInvoiceQuery, GetVisitsQuery, Guide, GuideMedia, Invoice, InvoiceItem, IssueContractBody, IssueInvoiceBody, Like, ListInvoiceItemsQuery, Location, Membership, MoneyTransaction, Network, Order, Package, PatchAssignmentBody, PatchBenefitBody, PatchBookingBody, PatchCheckInBody, PatchEventBody, PatchFeedPostBody, PatchGuideBody, PatchMoneyTransactionBody, PatchPackageBody, PatchProductBody, PatchResourceBody, PayInvoiceBody, Payment, Plan, PlanMedia, Post, PreviewCreditNoteBody, Product, ProductMedia, Promocode, Redemption, Refund, RefundMoneyTransactionBody, Registration, Request$1 as Request, Resource, ResourceMedia, ShopCategory, SpacebringConfig, SpacebringErrorBody, SpacebringRequestOptions, SpacebringResources, Subscription, SupportTicket, Template, TemplateMedia, TerminateContractBody, TicketMedia, UpcomingItem, UpdateAltCurrencyBody, UpdateBenefitBody, UpdateBenefitCategoryBody, UpdateCompanyBody, UpdateContractBody, UpdateCouponBody, UpdateCreditNoteBody, UpdateEventBody, UpdateEventTicketBody, UpdateFeedPostBody, UpdateInvoiceBody, UpdateInvoiceItemBody, UpdateMembershipBody, UpdatePlanBody, UpdateProductBody, UpdateShopCategoryBody, UpdateSubscriptionBody, UpdateSubscriptionItemBody, UpdateSupportTicketAssigneeBody, UpdateSupportTicketCommentBody, UpdateSupportTicketStatusBody, UpdateSupportTicketTypeBody, UpdateTemplateBody, UpdateVisitBody, Visit, components, operations, paths };