@izak0s/spacebring-api 16.4.0 → 16.6.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
@@ -6639,10 +6639,10 @@ interface components {
6639
6639
  */
6640
6640
  checkInDate?: string;
6641
6641
  /**
6642
- * @description How the customer was checked in: 'reception' with their code on the Reception app, 'manual' by an administrator, 'backdated' by an administrator adding a past check-in from the admin app, 'agent' by the AI agent, and 'api' through the API. Absent on check-ins made before methods were recorded.
6642
+ * @description How the customer was checked in: 'reception' with their code on the Reception app, 'manual' by an administrator, 'backdated' by an administrator adding a past check-in from the admin app, 'accessControl' by unlocking a door through an access control integration, 'agent' by the AI agent, and 'api' through the API. Absent on check-ins made before methods were recorded.
6643
6643
  * @enum {string}
6644
6644
  */
6645
- checkInMethod?: "agent" | "api" | "backdated" | "manual" | "reception";
6645
+ checkInMethod?: "accessControl" | "agent" | "api" | "backdated" | "manual" | "reception";
6646
6646
  /**
6647
6647
  * Format: uuid
6648
6648
  * @description ID of the schedule this check-in was opened under. Absent on check-ins created before schedules were introduced.
@@ -6657,7 +6657,7 @@ interface components {
6657
6657
  * @description How the customer was checked out: 'reception' with their code on the Reception app, 'manual' by an administrator, 'backdated' by an administrator adding a past check-in with its check-out date from the admin app, '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
6658
  * @enum {string}
6659
6659
  */
6660
- checkOutMethod?: "agent" | "api" | "backdated" | "manual" | "reception" | "automatic";
6660
+ checkOutMethod?: "accessControl" | "agent" | "api" | "backdated" | "manual" | "reception" | "automatic";
6661
6661
  /** @description Confirmation code of the check-in. */
6662
6662
  code?: string;
6663
6663
  /**
@@ -6667,7 +6667,7 @@ interface components {
6667
6667
  createDate: string;
6668
6668
  /**
6669
6669
  * Format: date-time
6670
- * @description ISO timestamp of when the check-in expires. Absent when it was opened under a schedule without an end date, or with a personal code.
6670
+ * @description ISO timestamp of when the check-in expires. Absent when it was opened under a schedule without an end date, or for a subscription.
6671
6671
  */
6672
6672
  endDate?: string;
6673
6673
  /** @description Event ticket this check-in was created for, if any. */
@@ -6738,6 +6738,16 @@ interface components {
6738
6738
  };
6739
6739
  /** @description Visit this check-in was created for, if any. */
6740
6740
  visit?: {
6741
+ /** @description The company the host belongs to, read from the customers service so the name is current. */
6742
+ companyHost?: {
6743
+ /**
6744
+ * Format: uuid
6745
+ * @description Unique identifier of the host's company.
6746
+ */
6747
+ id: string;
6748
+ /** @description Name of the host's company. */
6749
+ title: string;
6750
+ };
6741
6751
  /**
6742
6752
  * Format: uuid
6743
6753
  * @description ID of the visit.
@@ -6745,6 +6755,8 @@ interface components {
6745
6755
  id: string;
6746
6756
  /** @description The host the visit is with, read from the users service so the details are current. */
6747
6757
  userHost?: {
6758
+ /** @description Email address of the host. */
6759
+ email?: string | null;
6748
6760
  /**
6749
6761
  * Format: uuid
6750
6762
  * @description Unique identifier of the host.
@@ -6779,10 +6791,10 @@ interface components {
6779
6791
  */
6780
6792
  checkInDate?: string;
6781
6793
  /**
6782
- * @description How the customer was checked in: 'reception' with their code on the Reception app, 'manual' by an administrator, 'backdated' by an administrator adding a past check-in from the admin app, 'agent' by the AI agent, and 'api' through the API. Absent on check-ins made before methods were recorded.
6794
+ * @description How the customer was checked in: 'reception' with their code on the Reception app, 'manual' by an administrator, 'backdated' by an administrator adding a past check-in from the admin app, 'accessControl' by unlocking a door through an access control integration, 'agent' by the AI agent, and 'api' through the API. Absent on check-ins made before methods were recorded.
6783
6795
  * @enum {string}
6784
6796
  */
6785
- checkInMethod?: "agent" | "api" | "backdated" | "manual" | "reception";
6797
+ checkInMethod?: "accessControl" | "agent" | "api" | "backdated" | "manual" | "reception";
6786
6798
  /**
6787
6799
  * Format: uuid
6788
6800
  * @description ID of the schedule this check-in was opened under. Absent on check-ins created before schedules were introduced.
@@ -6797,7 +6809,7 @@ interface components {
6797
6809
  * @description How the customer was checked out: 'reception' with their code on the Reception app, 'manual' by an administrator, 'backdated' by an administrator adding a past check-in with its check-out date from the admin app, '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
6810
  * @enum {string}
6799
6811
  */
6800
- checkOutMethod?: "agent" | "api" | "backdated" | "manual" | "reception" | "automatic";
6812
+ checkOutMethod?: "accessControl" | "agent" | "api" | "backdated" | "manual" | "reception" | "automatic";
6801
6813
  /** @description Confirmation code of the check-in. */
6802
6814
  code?: string;
6803
6815
  /**
@@ -6807,7 +6819,7 @@ interface components {
6807
6819
  createDate: string;
6808
6820
  /**
6809
6821
  * Format: date-time
6810
- * @description ISO timestamp of when the check-in expires. Absent when it was opened under a schedule without an end date, or with a personal code.
6822
+ * @description ISO timestamp of when the check-in expires. Absent when it was opened under a schedule without an end date, or for a subscription.
6811
6823
  */
6812
6824
  endDate?: string;
6813
6825
  /** @description Event ticket this check-in was created for, if any. */
@@ -6878,6 +6890,16 @@ interface components {
6878
6890
  };
6879
6891
  /** @description Visit this check-in was created for, if any. */
6880
6892
  visit?: {
6893
+ /** @description The company the host belongs to, read from the customers service so the name is current. */
6894
+ companyHost?: {
6895
+ /**
6896
+ * Format: uuid
6897
+ * @description Unique identifier of the host's company.
6898
+ */
6899
+ id: string;
6900
+ /** @description Name of the host's company. */
6901
+ title: string;
6902
+ };
6881
6903
  /**
6882
6904
  * Format: uuid
6883
6905
  * @description ID of the visit.
@@ -6885,6 +6907,8 @@ interface components {
6885
6907
  id: string;
6886
6908
  /** @description The host the visit is with, read from the users service so the details are current. */
6887
6909
  userHost?: {
6910
+ /** @description Email address of the host. */
6911
+ email?: string | null;
6888
6912
  /**
6889
6913
  * Format: uuid
6890
6914
  * @description Unique identifier of the host.
@@ -9939,6 +9963,8 @@ interface components {
9939
9963
  * @description Deprecated. Use resources instead.
9940
9964
  */
9941
9965
  bookings?: boolean;
9966
+ /** @description Whether the admin can manage campaigns. */
9967
+ campaigns?: boolean;
9942
9968
  /** @description Whether the admin can manage customers. */
9943
9969
  customers: boolean;
9944
9970
  /** @description Whether the admin can manage events. */
@@ -10163,6 +10189,18 @@ interface components {
10163
10189
  enabled: boolean;
10164
10190
  /** @description How many minutes before it starts a booking of the resource has to be made. */
10165
10191
  minNotice?: number;
10192
+ /** @description Booking window for nonmembers. A booking of a nonmember follows it instead of the booking window above while it is enabled, even when that one is off. */
10193
+ public: {
10194
+ /**
10195
+ * @description How far ahead nonmembers can book the resource.
10196
+ * @enum {string}
10197
+ */
10198
+ bookAhead?: "oneDay" | "twoDays" | "oneWeek" | "twoWeeks" | "oneMonth" | "threeMonths" | "sixMonths" | "oneYear" | "unlimited";
10199
+ /** @description Whether bookings of nonmembers follow a separate booking window. */
10200
+ enabled: boolean;
10201
+ /** @description How many minutes before it starts a booking of a nonmember has to be made. */
10202
+ minNotice?: number;
10203
+ };
10166
10204
  };
10167
10205
  /** @description Brivo access group reference. */
10168
10206
  brivoGroupRef?: number | null;
@@ -10886,6 +10924,18 @@ interface components {
10886
10924
  enabled: boolean;
10887
10925
  /** @description How many minutes before it starts a booking of the resource has to be made. */
10888
10926
  minNotice?: number;
10927
+ /** @description Booking window for nonmembers. A booking of a nonmember follows it instead of the booking window above while it is enabled, even when that one is off. */
10928
+ public: {
10929
+ /**
10930
+ * @description How far ahead nonmembers can book the resource.
10931
+ * @enum {string}
10932
+ */
10933
+ bookAhead?: "oneDay" | "twoDays" | "oneWeek" | "twoWeeks" | "oneMonth" | "threeMonths" | "sixMonths" | "oneYear" | "unlimited";
10934
+ /** @description Whether bookings of nonmembers follow a separate booking window. */
10935
+ enabled: boolean;
10936
+ /** @description How many minutes before it starts a booking of a nonmember has to be made. */
10937
+ minNotice?: number;
10938
+ };
10889
10939
  };
10890
10940
  /** @description Brivo access group reference. */
10891
10941
  brivoGroupRef?: number | null;
@@ -20916,7 +20966,7 @@ interface components {
20916
20966
  */
20917
20967
  type: "booking" | "custom" | "creditPackage" | "eventTicket" | "invoice" | "order" | "subscription";
20918
20968
  };
20919
- /** @description URL to download the receipt PDF. The URL carries a receipt token, so it can be opened without authentication. */
20969
+ /** @description URL to download the receipt PDF. The URL carries a receipt token, so it can be opened without authentication. The link stops working 190 days after it was issued, whether or not the transaction is fetched again. Fetching the transaction 180 days or more after the link was issued returns a new one, so fetch the transaction again for the current link rather than storing it. */
20920
20970
  receiptPdfUrl?: string;
20921
20971
  /**
20922
20972
  * @deprecated
@@ -21636,7 +21686,7 @@ interface components {
21636
21686
  */
21637
21687
  type: "booking" | "custom" | "creditPackage" | "eventTicket" | "invoice" | "order" | "subscription";
21638
21688
  };
21639
- /** @description URL to download the receipt PDF. The URL carries a receipt token, so it can be opened without authentication. */
21689
+ /** @description URL to download the receipt PDF. The URL carries a receipt token, so it can be opened without authentication. The link stops working 190 days after it was issued, whether or not the transaction is fetched again. Fetching the transaction 180 days or more after the link was issued returns a new one, so fetch the transaction again for the current link rather than storing it. */
21640
21690
  receiptPdfUrl?: string;
21641
21691
  /**
21642
21692
  * @deprecated
@@ -22356,7 +22406,7 @@ interface components {
22356
22406
  */
22357
22407
  type: "booking" | "custom" | "creditPackage" | "eventTicket" | "invoice" | "order" | "subscription";
22358
22408
  };
22359
- /** @description URL to download the receipt PDF. The URL carries a receipt token, so it can be opened without authentication. */
22409
+ /** @description URL to download the receipt PDF. The URL carries a receipt token, so it can be opened without authentication. The link stops working 190 days after it was issued, whether or not the transaction is fetched again. Fetching the transaction 180 days or more after the link was issued returns a new one, so fetch the transaction again for the current link rather than storing it. */
22360
22410
  receiptPdfUrl?: string;
22361
22411
  /**
22362
22412
  * @deprecated
@@ -25097,6 +25147,18 @@ interface components {
25097
25147
  enabled: boolean;
25098
25148
  /** @description How many minutes before it starts a booking of the resource has to be made, up to 30 days. 0 accepts bookings up to the start time. Required while enabled is true. */
25099
25149
  minNotice?: number;
25150
+ /** @description Booking window for nonmembers. A booking of a nonmember follows it instead of the booking window above while it is enabled, even when that one is off. */
25151
+ public?: {
25152
+ /**
25153
+ * @description How far ahead nonmembers can book the resource. Required while enabled is true.
25154
+ * @enum {string}
25155
+ */
25156
+ bookAhead?: "oneDay" | "twoDays" | "oneWeek" | "twoWeeks" | "oneMonth" | "threeMonths" | "sixMonths" | "oneYear" | "unlimited";
25157
+ /** @description Whether bookings of nonmembers follow a separate booking window. While it is false, they follow the booking window above. */
25158
+ enabled: boolean;
25159
+ /** @description How many minutes before it starts a booking of a nonmember has to be made, up to 30 days. 0 accepts bookings up to the start time. Required while enabled is true. */
25160
+ minNotice?: number;
25161
+ };
25100
25162
  };
25101
25163
  /** @description Brivo access group reference. */
25102
25164
  brivoGroupRef?: number | null;
@@ -25604,6 +25666,18 @@ interface components {
25604
25666
  enabled: boolean;
25605
25667
  /** @description How many minutes before it starts a booking of the resource has to be made, up to 30 days. 0 accepts bookings up to the start time. Required while enabled is true. */
25606
25668
  minNotice?: number;
25669
+ /** @description Booking window for nonmembers. A booking of a nonmember follows it instead of the booking window above while it is enabled, even when that one is off. */
25670
+ public?: {
25671
+ /**
25672
+ * @description How far ahead nonmembers can book the resource. Required while enabled is true.
25673
+ * @enum {string}
25674
+ */
25675
+ bookAhead?: "oneDay" | "twoDays" | "oneWeek" | "twoWeeks" | "oneMonth" | "threeMonths" | "sixMonths" | "oneYear" | "unlimited";
25676
+ /** @description Whether bookings of nonmembers follow a separate booking window. While it is false, they follow the booking window above. */
25677
+ enabled: boolean;
25678
+ /** @description How many minutes before it starts a booking of a nonmember has to be made, up to 30 days. 0 accepts bookings up to the start time. Required while enabled is true. */
25679
+ minNotice?: number;
25680
+ };
25607
25681
  };
25608
25682
  /** @description Brivo access group reference. */
25609
25683
  brivoGroupRef?: number | null;
@@ -26017,7 +26091,7 @@ interface components {
26017
26091
  content: {
26018
26092
  "application/json": {
26019
26093
  booking: {
26020
- /** @description Attendees to invite to the booking, each an existing user by id or a person by email. Supported for room resources. A person invited by email joins the network without a membership in the location. The owner is left out, and so are all attendees when the owner is not a member of the location. */
26094
+ /** @description Attendees to invite to the booking, each an existing user by id or a person by email. Supported for room resources. A person invited by email joins the network without a membership in the location. The owner is left out, and so are all attendees when the owner is not a member of the location, unless an API key or an administrator makes the booking. */
26021
26095
  attendees?: {
26022
26096
  user: {
26023
26097
  /**
@@ -29499,7 +29573,7 @@ interface operations {
29499
29573
  nextPageToken?: string;
29500
29574
  /** @description Filter by status: 'scheduled' nobody has arrived yet, 'checkedIn' the person is on site, 'checkedOut' they left, 'expired' the window closed with nobody arriving. Defaults to every status. Comma-separated, one or more of: checkedIn, checkedOut, scheduled, expired. */
29501
29575
  status?: string;
29502
- /** @description Filter by what the check-in is for: 'deskBooking' and 'roomBooking' a booking, 'eventTicket' an event ticket, 'visit' a visit, 'subscription' a member arriving with their personal code. Defaults to every type. Comma-separated, one or more of: deskBooking, roomBooking, eventTicket, visit, subscription. */
29576
+ /** @description Filter by what the check-in is for: 'deskBooking' and 'roomBooking' a booking, 'eventTicket' an event ticket, 'visit' a visit, 'subscription' a member arriving on their subscription, with their personal code or by unlocking a door. Defaults to every type. Comma-separated, one or more of: deskBooking, roomBooking, eventTicket, visit, subscription. */
29503
29577
  type?: string;
29504
29578
  /** @description UUID of the user to filter check-ins by. Defaults to check-ins of every user. */
29505
29579
  userRef?: string;
@@ -33891,6 +33965,14 @@ interface operations {
33891
33965
  getBookings: {
33892
33966
  parameters: {
33893
33967
  query?: {
33968
+ /** @description Matches bookings with createDate strictly after this date (ISO 8601). */
33969
+ "createDate[gt]"?: string;
33970
+ /** @description Matches bookings with createDate on or after this date (ISO 8601). */
33971
+ "createDate[gte]"?: string;
33972
+ /** @description Matches bookings with createDate strictly before this date (ISO 8601). */
33973
+ "createDate[lt]"?: string;
33974
+ /** @description Matches bookings with createDate on or before this date (ISO 8601). */
33975
+ "createDate[lte]"?: string;
33894
33976
  /** @description Matches bookings with endDate strictly after this date (ISO 8601). */
33895
33977
  "endDate[gt]"?: string;
33896
33978
  /** @description Matches bookings with endDate on or after this date (ISO 8601). */
@@ -36814,6 +36896,14 @@ interface GetAssignmentsQuery {
36814
36896
  }
36815
36897
  /** Query parameters for `sb.resources.bookings.list()`. */
36816
36898
  interface GetBookingsQuery {
36899
+ /** Matches bookings with createDate strictly after this date (ISO 8601). */
36900
+ "createDate[gt]"?: string;
36901
+ /** Matches bookings with createDate on or after this date (ISO 8601). */
36902
+ "createDate[gte]"?: string;
36903
+ /** Matches bookings with createDate strictly before this date (ISO 8601). */
36904
+ "createDate[lt]"?: string;
36905
+ /** Matches bookings with createDate on or before this date (ISO 8601). */
36906
+ "createDate[lte]"?: string;
36817
36907
  /** Matches bookings with endDate strictly after this date (ISO 8601). */
36818
36908
  "endDate[gt]"?: string;
36819
36909
  /** Matches bookings with endDate on or after this date (ISO 8601). */
@@ -37249,7 +37339,7 @@ interface GetCheckInsQuery {
37249
37339
  nextPageToken?: string;
37250
37340
  /** Filter by status: 'scheduled' nobody has arrived yet, 'checkedIn' the person is on site, 'checkedOut' they left, 'expired' the window closed with nobody arriving. Defaults to every status. Comma-separated, one or more of: checkedIn, checkedOut, scheduled, expired. */
37251
37341
  status?: string;
37252
- /** Filter by what the check-in is for: 'deskBooking' and 'roomBooking' a booking, 'eventTicket' an event ticket, 'visit' a visit, 'subscription' a member arriving with their personal code. Defaults to every type. Comma-separated, one or more of: deskBooking, roomBooking, eventTicket, visit, subscription. */
37342
+ /** Filter by what the check-in is for: 'deskBooking' and 'roomBooking' a booking, 'eventTicket' an event ticket, 'visit' a visit, 'subscription' a member arriving on their subscription, with their personal code or by unlocking a door. Defaults to every type. Comma-separated, one or more of: deskBooking, roomBooking, eventTicket, visit, subscription. */
37253
37343
  type?: string;
37254
37344
  /** UUID of the user to filter check-ins by. Defaults to check-ins of every user. */
37255
37345
  userRef?: string;
package/dist/index.d.ts CHANGED
@@ -6639,10 +6639,10 @@ interface components {
6639
6639
  */
6640
6640
  checkInDate?: string;
6641
6641
  /**
6642
- * @description How the customer was checked in: 'reception' with their code on the Reception app, 'manual' by an administrator, 'backdated' by an administrator adding a past check-in from the admin app, 'agent' by the AI agent, and 'api' through the API. Absent on check-ins made before methods were recorded.
6642
+ * @description How the customer was checked in: 'reception' with their code on the Reception app, 'manual' by an administrator, 'backdated' by an administrator adding a past check-in from the admin app, 'accessControl' by unlocking a door through an access control integration, 'agent' by the AI agent, and 'api' through the API. Absent on check-ins made before methods were recorded.
6643
6643
  * @enum {string}
6644
6644
  */
6645
- checkInMethod?: "agent" | "api" | "backdated" | "manual" | "reception";
6645
+ checkInMethod?: "accessControl" | "agent" | "api" | "backdated" | "manual" | "reception";
6646
6646
  /**
6647
6647
  * Format: uuid
6648
6648
  * @description ID of the schedule this check-in was opened under. Absent on check-ins created before schedules were introduced.
@@ -6657,7 +6657,7 @@ interface components {
6657
6657
  * @description How the customer was checked out: 'reception' with their code on the Reception app, 'manual' by an administrator, 'backdated' by an administrator adding a past check-in with its check-out date from the admin app, '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
6658
  * @enum {string}
6659
6659
  */
6660
- checkOutMethod?: "agent" | "api" | "backdated" | "manual" | "reception" | "automatic";
6660
+ checkOutMethod?: "accessControl" | "agent" | "api" | "backdated" | "manual" | "reception" | "automatic";
6661
6661
  /** @description Confirmation code of the check-in. */
6662
6662
  code?: string;
6663
6663
  /**
@@ -6667,7 +6667,7 @@ interface components {
6667
6667
  createDate: string;
6668
6668
  /**
6669
6669
  * Format: date-time
6670
- * @description ISO timestamp of when the check-in expires. Absent when it was opened under a schedule without an end date, or with a personal code.
6670
+ * @description ISO timestamp of when the check-in expires. Absent when it was opened under a schedule without an end date, or for a subscription.
6671
6671
  */
6672
6672
  endDate?: string;
6673
6673
  /** @description Event ticket this check-in was created for, if any. */
@@ -6738,6 +6738,16 @@ interface components {
6738
6738
  };
6739
6739
  /** @description Visit this check-in was created for, if any. */
6740
6740
  visit?: {
6741
+ /** @description The company the host belongs to, read from the customers service so the name is current. */
6742
+ companyHost?: {
6743
+ /**
6744
+ * Format: uuid
6745
+ * @description Unique identifier of the host's company.
6746
+ */
6747
+ id: string;
6748
+ /** @description Name of the host's company. */
6749
+ title: string;
6750
+ };
6741
6751
  /**
6742
6752
  * Format: uuid
6743
6753
  * @description ID of the visit.
@@ -6745,6 +6755,8 @@ interface components {
6745
6755
  id: string;
6746
6756
  /** @description The host the visit is with, read from the users service so the details are current. */
6747
6757
  userHost?: {
6758
+ /** @description Email address of the host. */
6759
+ email?: string | null;
6748
6760
  /**
6749
6761
  * Format: uuid
6750
6762
  * @description Unique identifier of the host.
@@ -6779,10 +6791,10 @@ interface components {
6779
6791
  */
6780
6792
  checkInDate?: string;
6781
6793
  /**
6782
- * @description How the customer was checked in: 'reception' with their code on the Reception app, 'manual' by an administrator, 'backdated' by an administrator adding a past check-in from the admin app, 'agent' by the AI agent, and 'api' through the API. Absent on check-ins made before methods were recorded.
6794
+ * @description How the customer was checked in: 'reception' with their code on the Reception app, 'manual' by an administrator, 'backdated' by an administrator adding a past check-in from the admin app, 'accessControl' by unlocking a door through an access control integration, 'agent' by the AI agent, and 'api' through the API. Absent on check-ins made before methods were recorded.
6783
6795
  * @enum {string}
6784
6796
  */
6785
- checkInMethod?: "agent" | "api" | "backdated" | "manual" | "reception";
6797
+ checkInMethod?: "accessControl" | "agent" | "api" | "backdated" | "manual" | "reception";
6786
6798
  /**
6787
6799
  * Format: uuid
6788
6800
  * @description ID of the schedule this check-in was opened under. Absent on check-ins created before schedules were introduced.
@@ -6797,7 +6809,7 @@ interface components {
6797
6809
  * @description How the customer was checked out: 'reception' with their code on the Reception app, 'manual' by an administrator, 'backdated' by an administrator adding a past check-in with its check-out date from the admin app, '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
6810
  * @enum {string}
6799
6811
  */
6800
- checkOutMethod?: "agent" | "api" | "backdated" | "manual" | "reception" | "automatic";
6812
+ checkOutMethod?: "accessControl" | "agent" | "api" | "backdated" | "manual" | "reception" | "automatic";
6801
6813
  /** @description Confirmation code of the check-in. */
6802
6814
  code?: string;
6803
6815
  /**
@@ -6807,7 +6819,7 @@ interface components {
6807
6819
  createDate: string;
6808
6820
  /**
6809
6821
  * Format: date-time
6810
- * @description ISO timestamp of when the check-in expires. Absent when it was opened under a schedule without an end date, or with a personal code.
6822
+ * @description ISO timestamp of when the check-in expires. Absent when it was opened under a schedule without an end date, or for a subscription.
6811
6823
  */
6812
6824
  endDate?: string;
6813
6825
  /** @description Event ticket this check-in was created for, if any. */
@@ -6878,6 +6890,16 @@ interface components {
6878
6890
  };
6879
6891
  /** @description Visit this check-in was created for, if any. */
6880
6892
  visit?: {
6893
+ /** @description The company the host belongs to, read from the customers service so the name is current. */
6894
+ companyHost?: {
6895
+ /**
6896
+ * Format: uuid
6897
+ * @description Unique identifier of the host's company.
6898
+ */
6899
+ id: string;
6900
+ /** @description Name of the host's company. */
6901
+ title: string;
6902
+ };
6881
6903
  /**
6882
6904
  * Format: uuid
6883
6905
  * @description ID of the visit.
@@ -6885,6 +6907,8 @@ interface components {
6885
6907
  id: string;
6886
6908
  /** @description The host the visit is with, read from the users service so the details are current. */
6887
6909
  userHost?: {
6910
+ /** @description Email address of the host. */
6911
+ email?: string | null;
6888
6912
  /**
6889
6913
  * Format: uuid
6890
6914
  * @description Unique identifier of the host.
@@ -9939,6 +9963,8 @@ interface components {
9939
9963
  * @description Deprecated. Use resources instead.
9940
9964
  */
9941
9965
  bookings?: boolean;
9966
+ /** @description Whether the admin can manage campaigns. */
9967
+ campaigns?: boolean;
9942
9968
  /** @description Whether the admin can manage customers. */
9943
9969
  customers: boolean;
9944
9970
  /** @description Whether the admin can manage events. */
@@ -10163,6 +10189,18 @@ interface components {
10163
10189
  enabled: boolean;
10164
10190
  /** @description How many minutes before it starts a booking of the resource has to be made. */
10165
10191
  minNotice?: number;
10192
+ /** @description Booking window for nonmembers. A booking of a nonmember follows it instead of the booking window above while it is enabled, even when that one is off. */
10193
+ public: {
10194
+ /**
10195
+ * @description How far ahead nonmembers can book the resource.
10196
+ * @enum {string}
10197
+ */
10198
+ bookAhead?: "oneDay" | "twoDays" | "oneWeek" | "twoWeeks" | "oneMonth" | "threeMonths" | "sixMonths" | "oneYear" | "unlimited";
10199
+ /** @description Whether bookings of nonmembers follow a separate booking window. */
10200
+ enabled: boolean;
10201
+ /** @description How many minutes before it starts a booking of a nonmember has to be made. */
10202
+ minNotice?: number;
10203
+ };
10166
10204
  };
10167
10205
  /** @description Brivo access group reference. */
10168
10206
  brivoGroupRef?: number | null;
@@ -10886,6 +10924,18 @@ interface components {
10886
10924
  enabled: boolean;
10887
10925
  /** @description How many minutes before it starts a booking of the resource has to be made. */
10888
10926
  minNotice?: number;
10927
+ /** @description Booking window for nonmembers. A booking of a nonmember follows it instead of the booking window above while it is enabled, even when that one is off. */
10928
+ public: {
10929
+ /**
10930
+ * @description How far ahead nonmembers can book the resource.
10931
+ * @enum {string}
10932
+ */
10933
+ bookAhead?: "oneDay" | "twoDays" | "oneWeek" | "twoWeeks" | "oneMonth" | "threeMonths" | "sixMonths" | "oneYear" | "unlimited";
10934
+ /** @description Whether bookings of nonmembers follow a separate booking window. */
10935
+ enabled: boolean;
10936
+ /** @description How many minutes before it starts a booking of a nonmember has to be made. */
10937
+ minNotice?: number;
10938
+ };
10889
10939
  };
10890
10940
  /** @description Brivo access group reference. */
10891
10941
  brivoGroupRef?: number | null;
@@ -20916,7 +20966,7 @@ interface components {
20916
20966
  */
20917
20967
  type: "booking" | "custom" | "creditPackage" | "eventTicket" | "invoice" | "order" | "subscription";
20918
20968
  };
20919
- /** @description URL to download the receipt PDF. The URL carries a receipt token, so it can be opened without authentication. */
20969
+ /** @description URL to download the receipt PDF. The URL carries a receipt token, so it can be opened without authentication. The link stops working 190 days after it was issued, whether or not the transaction is fetched again. Fetching the transaction 180 days or more after the link was issued returns a new one, so fetch the transaction again for the current link rather than storing it. */
20920
20970
  receiptPdfUrl?: string;
20921
20971
  /**
20922
20972
  * @deprecated
@@ -21636,7 +21686,7 @@ interface components {
21636
21686
  */
21637
21687
  type: "booking" | "custom" | "creditPackage" | "eventTicket" | "invoice" | "order" | "subscription";
21638
21688
  };
21639
- /** @description URL to download the receipt PDF. The URL carries a receipt token, so it can be opened without authentication. */
21689
+ /** @description URL to download the receipt PDF. The URL carries a receipt token, so it can be opened without authentication. The link stops working 190 days after it was issued, whether or not the transaction is fetched again. Fetching the transaction 180 days or more after the link was issued returns a new one, so fetch the transaction again for the current link rather than storing it. */
21640
21690
  receiptPdfUrl?: string;
21641
21691
  /**
21642
21692
  * @deprecated
@@ -22356,7 +22406,7 @@ interface components {
22356
22406
  */
22357
22407
  type: "booking" | "custom" | "creditPackage" | "eventTicket" | "invoice" | "order" | "subscription";
22358
22408
  };
22359
- /** @description URL to download the receipt PDF. The URL carries a receipt token, so it can be opened without authentication. */
22409
+ /** @description URL to download the receipt PDF. The URL carries a receipt token, so it can be opened without authentication. The link stops working 190 days after it was issued, whether or not the transaction is fetched again. Fetching the transaction 180 days or more after the link was issued returns a new one, so fetch the transaction again for the current link rather than storing it. */
22360
22410
  receiptPdfUrl?: string;
22361
22411
  /**
22362
22412
  * @deprecated
@@ -25097,6 +25147,18 @@ interface components {
25097
25147
  enabled: boolean;
25098
25148
  /** @description How many minutes before it starts a booking of the resource has to be made, up to 30 days. 0 accepts bookings up to the start time. Required while enabled is true. */
25099
25149
  minNotice?: number;
25150
+ /** @description Booking window for nonmembers. A booking of a nonmember follows it instead of the booking window above while it is enabled, even when that one is off. */
25151
+ public?: {
25152
+ /**
25153
+ * @description How far ahead nonmembers can book the resource. Required while enabled is true.
25154
+ * @enum {string}
25155
+ */
25156
+ bookAhead?: "oneDay" | "twoDays" | "oneWeek" | "twoWeeks" | "oneMonth" | "threeMonths" | "sixMonths" | "oneYear" | "unlimited";
25157
+ /** @description Whether bookings of nonmembers follow a separate booking window. While it is false, they follow the booking window above. */
25158
+ enabled: boolean;
25159
+ /** @description How many minutes before it starts a booking of a nonmember has to be made, up to 30 days. 0 accepts bookings up to the start time. Required while enabled is true. */
25160
+ minNotice?: number;
25161
+ };
25100
25162
  };
25101
25163
  /** @description Brivo access group reference. */
25102
25164
  brivoGroupRef?: number | null;
@@ -25604,6 +25666,18 @@ interface components {
25604
25666
  enabled: boolean;
25605
25667
  /** @description How many minutes before it starts a booking of the resource has to be made, up to 30 days. 0 accepts bookings up to the start time. Required while enabled is true. */
25606
25668
  minNotice?: number;
25669
+ /** @description Booking window for nonmembers. A booking of a nonmember follows it instead of the booking window above while it is enabled, even when that one is off. */
25670
+ public?: {
25671
+ /**
25672
+ * @description How far ahead nonmembers can book the resource. Required while enabled is true.
25673
+ * @enum {string}
25674
+ */
25675
+ bookAhead?: "oneDay" | "twoDays" | "oneWeek" | "twoWeeks" | "oneMonth" | "threeMonths" | "sixMonths" | "oneYear" | "unlimited";
25676
+ /** @description Whether bookings of nonmembers follow a separate booking window. While it is false, they follow the booking window above. */
25677
+ enabled: boolean;
25678
+ /** @description How many minutes before it starts a booking of a nonmember has to be made, up to 30 days. 0 accepts bookings up to the start time. Required while enabled is true. */
25679
+ minNotice?: number;
25680
+ };
25607
25681
  };
25608
25682
  /** @description Brivo access group reference. */
25609
25683
  brivoGroupRef?: number | null;
@@ -26017,7 +26091,7 @@ interface components {
26017
26091
  content: {
26018
26092
  "application/json": {
26019
26093
  booking: {
26020
- /** @description Attendees to invite to the booking, each an existing user by id or a person by email. Supported for room resources. A person invited by email joins the network without a membership in the location. The owner is left out, and so are all attendees when the owner is not a member of the location. */
26094
+ /** @description Attendees to invite to the booking, each an existing user by id or a person by email. Supported for room resources. A person invited by email joins the network without a membership in the location. The owner is left out, and so are all attendees when the owner is not a member of the location, unless an API key or an administrator makes the booking. */
26021
26095
  attendees?: {
26022
26096
  user: {
26023
26097
  /**
@@ -29499,7 +29573,7 @@ interface operations {
29499
29573
  nextPageToken?: string;
29500
29574
  /** @description Filter by status: 'scheduled' nobody has arrived yet, 'checkedIn' the person is on site, 'checkedOut' they left, 'expired' the window closed with nobody arriving. Defaults to every status. Comma-separated, one or more of: checkedIn, checkedOut, scheduled, expired. */
29501
29575
  status?: string;
29502
- /** @description Filter by what the check-in is for: 'deskBooking' and 'roomBooking' a booking, 'eventTicket' an event ticket, 'visit' a visit, 'subscription' a member arriving with their personal code. Defaults to every type. Comma-separated, one or more of: deskBooking, roomBooking, eventTicket, visit, subscription. */
29576
+ /** @description Filter by what the check-in is for: 'deskBooking' and 'roomBooking' a booking, 'eventTicket' an event ticket, 'visit' a visit, 'subscription' a member arriving on their subscription, with their personal code or by unlocking a door. Defaults to every type. Comma-separated, one or more of: deskBooking, roomBooking, eventTicket, visit, subscription. */
29503
29577
  type?: string;
29504
29578
  /** @description UUID of the user to filter check-ins by. Defaults to check-ins of every user. */
29505
29579
  userRef?: string;
@@ -33891,6 +33965,14 @@ interface operations {
33891
33965
  getBookings: {
33892
33966
  parameters: {
33893
33967
  query?: {
33968
+ /** @description Matches bookings with createDate strictly after this date (ISO 8601). */
33969
+ "createDate[gt]"?: string;
33970
+ /** @description Matches bookings with createDate on or after this date (ISO 8601). */
33971
+ "createDate[gte]"?: string;
33972
+ /** @description Matches bookings with createDate strictly before this date (ISO 8601). */
33973
+ "createDate[lt]"?: string;
33974
+ /** @description Matches bookings with createDate on or before this date (ISO 8601). */
33975
+ "createDate[lte]"?: string;
33894
33976
  /** @description Matches bookings with endDate strictly after this date (ISO 8601). */
33895
33977
  "endDate[gt]"?: string;
33896
33978
  /** @description Matches bookings with endDate on or after this date (ISO 8601). */
@@ -36814,6 +36896,14 @@ interface GetAssignmentsQuery {
36814
36896
  }
36815
36897
  /** Query parameters for `sb.resources.bookings.list()`. */
36816
36898
  interface GetBookingsQuery {
36899
+ /** Matches bookings with createDate strictly after this date (ISO 8601). */
36900
+ "createDate[gt]"?: string;
36901
+ /** Matches bookings with createDate on or after this date (ISO 8601). */
36902
+ "createDate[gte]"?: string;
36903
+ /** Matches bookings with createDate strictly before this date (ISO 8601). */
36904
+ "createDate[lt]"?: string;
36905
+ /** Matches bookings with createDate on or before this date (ISO 8601). */
36906
+ "createDate[lte]"?: string;
36817
36907
  /** Matches bookings with endDate strictly after this date (ISO 8601). */
36818
36908
  "endDate[gt]"?: string;
36819
36909
  /** Matches bookings with endDate on or after this date (ISO 8601). */
@@ -37249,7 +37339,7 @@ interface GetCheckInsQuery {
37249
37339
  nextPageToken?: string;
37250
37340
  /** Filter by status: 'scheduled' nobody has arrived yet, 'checkedIn' the person is on site, 'checkedOut' they left, 'expired' the window closed with nobody arriving. Defaults to every status. Comma-separated, one or more of: checkedIn, checkedOut, scheduled, expired. */
37251
37341
  status?: string;
37252
- /** Filter by what the check-in is for: 'deskBooking' and 'roomBooking' a booking, 'eventTicket' an event ticket, 'visit' a visit, 'subscription' a member arriving with their personal code. Defaults to every type. Comma-separated, one or more of: deskBooking, roomBooking, eventTicket, visit, subscription. */
37342
+ /** Filter by what the check-in is for: 'deskBooking' and 'roomBooking' a booking, 'eventTicket' an event ticket, 'visit' a visit, 'subscription' a member arriving on their subscription, with their personal code or by unlocking a door. Defaults to every type. Comma-separated, one or more of: deskBooking, roomBooking, eventTicket, visit, subscription. */
37253
37343
  type?: string;
37254
37344
  /** UUID of the user to filter check-ins by. Defaults to check-ins of every user. */
37255
37345
  userRef?: string;