@izak0s/spacebring-api 11.4.0 → 13.0.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
@@ -322,7 +322,11 @@ interface paths {
322
322
  path?: never;
323
323
  cookie?: never;
324
324
  };
325
- get?: never;
325
+ /**
326
+ * Retrieve an alternative currency
327
+ * @description Retrieve an alternative currency. <h3>OAuth</h3>Required scopes: <code>invoices.readonly</code> or <code>invoices</code>
328
+ */
329
+ get: operations["getAltCurrency"];
326
330
  put?: never;
327
331
  post?: never;
328
332
  /**
@@ -1313,7 +1317,7 @@ interface paths {
1313
1317
  };
1314
1318
  /**
1315
1319
  * Retrieve coupons
1316
- * @description Retrieve all coupons in the location. <h3>OAuth</h3>Required scopes: <code>invoices.readonly</code> or <code>invoices</code>
1320
+ * @description Retrieve the coupons of a location, or of every location in the network. <h3>OAuth</h3>Required scopes: <code>invoices.readonly</code> or <code>invoices</code>
1317
1321
  */
1318
1322
  get: operations["getCoupons"];
1319
1323
  put?: never;
@@ -2083,18 +2087,10 @@ interface paths {
2083
2087
  * @description Create a plan. <h3>OAuth</h3>Required scopes: <code>plans</code>
2084
2088
  */
2085
2089
  post: operations["createPlan"];
2086
- /**
2087
- * Delete plans
2088
- * @description Delete up to 100 plans at once. Plans that are already deleted are skipped. <h3>OAuth</h3>Required scopes: <code>plans</code>
2089
- */
2090
- delete: operations["deletePlans"];
2090
+ delete?: never;
2091
2091
  options?: never;
2092
2092
  head?: never;
2093
- /**
2094
- * Update plans
2095
- * @description Turn sign-up on with a type, or off, for up to 100 plans at once. Plans that already have this sign-up are left unchanged. A free plan can't use immediate sign-up. <h3>OAuth</h3>Required scopes: <code>plans</code>
2096
- */
2097
- patch: operations["patchPlans"];
2093
+ patch?: never;
2098
2094
  trace?: never;
2099
2095
  };
2100
2096
  "/plans/v1/{planId}": {
@@ -3250,6 +3246,35 @@ interface components {
3250
3246
  message?: string;
3251
3247
  type?: string;
3252
3248
  };
3249
+ getAltCurrency: {
3250
+ /** @description The alt currency. */
3251
+ altCurrency: {
3252
+ /**
3253
+ * Format: date-time
3254
+ * @description ISO timestamp of when the alt currency was created.
3255
+ */
3256
+ createDate: string;
3257
+ /** @description ISO 4217 currency code. */
3258
+ currencyCode: string;
3259
+ /** @description Exchange rate relative to the location main currency. */
3260
+ exchangeRate: number;
3261
+ /**
3262
+ * Format: uuid
3263
+ * @description Unique identifier of the alt currency.
3264
+ */
3265
+ id: string;
3266
+ /**
3267
+ * Format: uuid
3268
+ * @description ID of the location this alt currency belongs to.
3269
+ */
3270
+ locationRef: string;
3271
+ /**
3272
+ * @description Exchange rate provider when auto-update is enabled.
3273
+ * @enum {string}
3274
+ */
3275
+ provider?: "nbu" | "bcra" | "nbg" | "bcch" | "ecb";
3276
+ };
3277
+ };
3253
3278
  getBenefitCategories: {
3254
3279
  /** @description List of benefit categories. */
3255
3280
  categories: {
@@ -3343,6 +3368,7 @@ interface components {
3343
3368
  * @enum {string}
3344
3369
  */
3345
3370
  buttonLabel: "apply" | "buy" | "contact" | "get" | "learnMore";
3371
+ /** @description Confirmation email settings for applications. */
3346
3372
  confirmationEmail: {
3347
3373
  /** @description Whether a confirmation email is sent after applying. */
3348
3374
  enabled: boolean;
@@ -3371,7 +3397,7 @@ interface components {
3371
3397
  * @description Unique identifier of the benefit.
3372
3398
  */
3373
3399
  id: string;
3374
- /** @description Auto-detected language of the description. */
3400
+ /** @description Auto-detected language of the description. Empty when there is no description. */
3375
3401
  locale: string;
3376
3402
  /**
3377
3403
  * Format: uuid
@@ -3423,6 +3449,7 @@ interface components {
3423
3449
  * @enum {string}
3424
3450
  */
3425
3451
  buttonLabel: "apply" | "buy" | "contact" | "get" | "learnMore";
3452
+ /** @description Confirmation email settings for applications. */
3426
3453
  confirmationEmail: {
3427
3454
  /** @description Whether a confirmation email is sent after applying. */
3428
3455
  enabled: boolean;
@@ -3451,7 +3478,7 @@ interface components {
3451
3478
  * @description Unique identifier of the benefit.
3452
3479
  */
3453
3480
  id: string;
3454
- /** @description Auto-detected language of the description. */
3481
+ /** @description Auto-detected language of the description. Empty when there is no description. */
3455
3482
  locale: string;
3456
3483
  /**
3457
3484
  * Format: uuid
@@ -3500,6 +3527,7 @@ interface components {
3500
3527
  * @enum {string}
3501
3528
  */
3502
3529
  buttonLabel: "apply" | "buy" | "contact" | "get" | "learnMore";
3530
+ /** @description Confirmation email settings for applications. */
3503
3531
  confirmationEmail: {
3504
3532
  /** @description Whether a confirmation email is sent after applying. */
3505
3533
  enabled: boolean;
@@ -3528,7 +3556,7 @@ interface components {
3528
3556
  * @description Unique identifier of the benefit.
3529
3557
  */
3530
3558
  id: string;
3531
- /** @description Auto-detected language of the description. */
3559
+ /** @description Auto-detected language of the description. Empty when there is no description. */
3532
3560
  locale: string;
3533
3561
  /**
3534
3562
  * Format: uuid
@@ -5232,11 +5260,16 @@ interface components {
5232
5260
  promocode?: {
5233
5261
  /** @description Promocode string. */
5234
5262
  code: string;
5235
- /**
5236
- * Format: date-time
5237
- * @description Promocode expiration date.
5238
- */
5239
- expiration?: string;
5263
+ /** @description Promocode expiration settings, as the promocode had them when it was applied. */
5264
+ expiration?: {
5265
+ /**
5266
+ * Format: date-time
5267
+ * @description ISO timestamp when the promocode expires.
5268
+ */
5269
+ date?: string;
5270
+ /** @description Whether the promocode has an expiration date. */
5271
+ enabled: boolean;
5272
+ };
5240
5273
  /**
5241
5274
  * Format: uuid
5242
5275
  * @description Promocode ID.
@@ -5633,11 +5666,16 @@ interface components {
5633
5666
  promocode?: {
5634
5667
  /** @description Promocode string. */
5635
5668
  code: string;
5636
- /**
5637
- * Format: date-time
5638
- * @description Promocode expiration date.
5639
- */
5640
- expiration?: string;
5669
+ /** @description Promocode expiration settings, as the promocode had them when it was applied. */
5670
+ expiration?: {
5671
+ /**
5672
+ * Format: date-time
5673
+ * @description ISO timestamp when the promocode expires.
5674
+ */
5675
+ date?: string;
5676
+ /** @description Whether the promocode has an expiration date. */
5677
+ enabled: boolean;
5678
+ };
5641
5679
  /**
5642
5680
  * Format: uuid
5643
5681
  * @description Promocode ID.
@@ -5973,8 +6011,16 @@ interface components {
5973
6011
  /** @description Promocode applied. */
5974
6012
  promocode?: {
5975
6013
  code: string;
5976
- /** Format: date-time */
5977
- expiration?: string;
6014
+ /** @description Promocode expiration settings, as the promocode had them when it was applied. */
6015
+ expiration?: {
6016
+ /**
6017
+ * Format: date-time
6018
+ * @description ISO timestamp when the promocode expires.
6019
+ */
6020
+ date?: string;
6021
+ /** @description Whether the promocode has an expiration date. */
6022
+ enabled: boolean;
6023
+ };
5978
6024
  /** Format: uuid */
5979
6025
  id: string;
5980
6026
  limitByFirstPurchase?: boolean;
@@ -6300,8 +6346,16 @@ interface components {
6300
6346
  /** @description Promocode applied. */
6301
6347
  promocode?: {
6302
6348
  code: string;
6303
- /** Format: date-time */
6304
- expiration?: string;
6349
+ /** @description Promocode expiration settings, as the promocode had them when it was applied. */
6350
+ expiration?: {
6351
+ /**
6352
+ * Format: date-time
6353
+ * @description ISO timestamp when the promocode expires.
6354
+ */
6355
+ date?: string;
6356
+ /** @description Whether the promocode has an expiration date. */
6357
+ enabled: boolean;
6358
+ };
6305
6359
  /** Format: uuid */
6306
6360
  id: string;
6307
6361
  limitByFirstPurchase?: boolean;
@@ -7611,11 +7665,11 @@ interface components {
7611
7665
  */
7612
7666
  id: string;
7613
7667
  /** @description First name of the user. */
7614
- name: string;
7668
+ name?: string;
7615
7669
  /** @description Profile photo URL. */
7616
7670
  photoUrl: string | null;
7617
7671
  /** @description Surname of the user. */
7618
- surname: string;
7672
+ surname?: string;
7619
7673
  };
7620
7674
  };
7621
7675
  /**
@@ -7838,6 +7892,8 @@ interface components {
7838
7892
  * @enum {string}
7839
7893
  */
7840
7894
  ticketAvailability: "soldOut" | "limited" | "available";
7895
+ /** @description Maximum number of tickets one attendee can get for the event. Omitted when unlimited. */
7896
+ ticketsPerAttendee?: number;
7841
7897
  /** @description Display name of the event. */
7842
7898
  title: string;
7843
7899
  /** @description Venue name or address within the location. */
@@ -8062,15 +8118,6 @@ interface components {
8062
8118
  */
8063
8119
  type?: "company" | "user";
8064
8120
  };
8065
- location: {
8066
- /**
8067
- * Format: uuid
8068
- * @description ID of the location.
8069
- */
8070
- id: string;
8071
- /** @description Display name of the location. */
8072
- title: string;
8073
- };
8074
8121
  };
8075
8122
  /** @description Invoice method details. */
8076
8123
  invoice?: {
@@ -8135,15 +8182,6 @@ interface components {
8135
8182
  };
8136
8183
  /** @description Human-readable label of the payment method (e.g. 'Visa 4242'). */
8137
8184
  label?: string;
8138
- location: {
8139
- /**
8140
- * Format: uuid
8141
- * @description ID of the location.
8142
- */
8143
- id: string;
8144
- /** @description Display name of the location. */
8145
- title: string;
8146
- };
8147
8185
  /** @description Masked payment method identifier. */
8148
8186
  mask?: string;
8149
8187
  /** @description Payment gateway title. */
@@ -8253,7 +8291,7 @@ interface components {
8253
8291
  * @description Payment type.
8254
8292
  * @enum {string}
8255
8293
  */
8256
- type: "authorizenet" | "credits" | "external" | "flow" | "fondy" | "freedompay" | "hyperpay" | "invoice" | "kakaopay" | "maya" | "mercadopago" | "mollie" | "paypal" | "paystack" | "payway" | "plata" | "stripe" | "tap" | "wayforpay" | "xendit";
8294
+ type: "authorizenet" | "credits" | "external" | "flow" | "fondy" | "freedompay" | "hyperpay" | "invoice" | "kakaopay" | "maya" | "mercadopago" | "mollie" | "paypal" | "paystack" | "paytabs" | "payway" | "plata" | "stripe" | "tap" | "wayforpay" | "xendit";
8257
8295
  };
8258
8296
  /** @description Number of tickets included in this purchase. */
8259
8297
  quantity: number;
@@ -8326,7 +8364,7 @@ interface components {
8326
8364
  };
8327
8365
  post: {
8328
8366
  /** @description Number of comments on the post. */
8329
- comments: number;
8367
+ comments?: number | null;
8330
8368
  /**
8331
8369
  * Format: date-time
8332
8370
  * @description ISO timestamp of when the post was created.
@@ -8345,7 +8383,7 @@ interface components {
8345
8383
  /** @description Whether the current user has liked the post. */
8346
8384
  liked?: boolean;
8347
8385
  /** @description Number of likes on the post. */
8348
- likes: number;
8386
+ likes?: number | null;
8349
8387
  /** @description Detected language locale of the post text. */
8350
8388
  locale?: string;
8351
8389
  /**
@@ -8356,20 +8394,20 @@ interface components {
8356
8394
  /** @description Media files attached to the post. */
8357
8395
  media: {
8358
8396
  /** @description Image height in pixels. */
8359
- height: number;
8397
+ height?: number | null;
8360
8398
  /**
8361
8399
  * Format: uuid
8362
8400
  * @description Unique identifier of the media item.
8363
8401
  */
8364
- id: string;
8402
+ id?: string | null;
8365
8403
  /** @description Storage key of the media file. */
8366
8404
  key: string;
8367
8405
  /** @description MIME type of the media file. */
8368
- mime: string;
8406
+ mime?: string | null;
8369
8407
  /** @description Public URL of the media file. */
8370
- url: string;
8408
+ url?: string | null;
8371
8409
  /** @description Image width in pixels. */
8372
- width: number;
8410
+ width?: number | null;
8373
8411
  }[];
8374
8412
  /** @description Membership of the post author. */
8375
8413
  membership: {
@@ -8377,7 +8415,7 @@ interface components {
8377
8415
  * Format: uuid
8378
8416
  * @description Unique identifier of the membership.
8379
8417
  */
8380
- id: string;
8418
+ id?: string | null;
8381
8419
  /** @description User associated with the membership. */
8382
8420
  user?: {
8383
8421
  /** @description User bio. */
@@ -8408,7 +8446,7 @@ interface components {
8408
8446
  * Format: uuid
8409
8447
  * @description ID of the membership that created the post.
8410
8448
  */
8411
- membershipRef: string;
8449
+ membershipRef?: string | null;
8412
8450
  /** @description Open Graph metadata for link previews. */
8413
8451
  og?: {
8414
8452
  /** @description Open Graph description. */
@@ -8420,12 +8458,12 @@ interface components {
8420
8458
  /** @description Open Graph type. */
8421
8459
  type?: string | null;
8422
8460
  /** @description Open Graph URL. */
8423
- url: string;
8461
+ url?: string | null;
8424
8462
  /** @description Open Graph video URL. */
8425
8463
  videoUrl?: string | null;
8426
8464
  };
8427
8465
  /** @description Whether the post is pinned. */
8428
- pinned: boolean;
8466
+ pinned?: boolean | null;
8429
8467
  /** @description Post text content. */
8430
8468
  text?: string;
8431
8469
  /** @description User who created the post. */
@@ -8468,14 +8506,14 @@ interface components {
8468
8506
  /** @description Whether the current user has liked the comment. */
8469
8507
  liked?: boolean;
8470
8508
  /** @description Number of likes on the comment. */
8471
- likes: number;
8509
+ likes?: number | null;
8472
8510
  /** @description Membership of the comment author. */
8473
8511
  membership: {
8474
8512
  /**
8475
8513
  * Format: uuid
8476
8514
  * @description Unique identifier of the membership.
8477
8515
  */
8478
- id: string;
8516
+ id?: string | null;
8479
8517
  /** @description User associated with the membership. */
8480
8518
  user?: {
8481
8519
  /**
@@ -8503,8 +8541,8 @@ interface components {
8503
8541
  * @description Unique identifier of the mention.
8504
8542
  */
8505
8543
  id: string;
8506
- /** @description Mention value. */
8507
- value: string;
8544
+ /** @description Full name of the mentioned user. Absent when the users service no longer knows the user. */
8545
+ value?: string;
8508
8546
  }[];
8509
8547
  /**
8510
8548
  * Format: uuid
@@ -8534,14 +8572,14 @@ interface components {
8534
8572
  * Format: uuid
8535
8573
  * @description Unique identifier of the like.
8536
8574
  */
8537
- id: string;
8575
+ id?: string | null;
8538
8576
  /** @description Membership of the user who liked. */
8539
8577
  membership: {
8540
8578
  /**
8541
8579
  * Format: uuid
8542
8580
  * @description Unique identifier of the membership.
8543
8581
  */
8544
- id: string;
8582
+ id?: string | null;
8545
8583
  /** @description User associated with the membership. */
8546
8584
  user?: {
8547
8585
  /**
@@ -9015,9 +9053,9 @@ interface components {
9015
9053
  duration?: number;
9016
9054
  /**
9017
9055
  * Format: uuid
9018
- * @description Unique identifier of the grant.
9056
+ * @description Unique identifier of the grant. Absent on grants of packages created before grants had IDs.
9019
9057
  */
9020
- id: string;
9058
+ id?: string;
9021
9059
  /**
9022
9060
  * @description Type of balance this grant provides.
9023
9061
  * @enum {string}
@@ -9077,9 +9115,9 @@ interface components {
9077
9115
  duration?: number;
9078
9116
  /**
9079
9117
  * Format: uuid
9080
- * @description Unique identifier of the grant.
9118
+ * @description Unique identifier of the grant. Absent on grants of packages created before grants had IDs.
9081
9119
  */
9082
- id: string;
9120
+ id?: string;
9083
9121
  /**
9084
9122
  * @description Type of balance this grant provides.
9085
9123
  * @enum {string}
@@ -9672,7 +9710,7 @@ interface components {
9672
9710
  * @description ISO timestamp of when the user was last seen in the network.
9673
9711
  */
9674
9712
  lastSeenDate?: string;
9675
- /** @description Location-scoped admin permissions. Included only for owners or when viewing the current user's registration. */
9713
+ /** @description Location-scoped admin permissions. Included only for owners and super admins or when viewing the current user's registration. */
9676
9714
  locationPermissions?: {
9677
9715
  /** @description Whether the admin can manage other admins. */
9678
9716
  admins: boolean;
@@ -9707,7 +9745,7 @@ interface components {
9707
9745
  * @description Role of the user in the network.
9708
9746
  * @enum {string}
9709
9747
  */
9710
- role?: "owner" | "admin" | "member";
9748
+ role?: "owner" | "superAdmin" | "admin" | "member";
9711
9749
  /** @description ISO timestamp or date when terms consent was given. */
9712
9750
  termsConsentDate?: string;
9713
9751
  /**
@@ -9899,14 +9937,14 @@ interface components {
9899
9937
  * @enum {string}
9900
9938
  */
9901
9939
  bookingUnit: "hour" | "day";
9902
- /** @description How soon and how far ahead users can book this resource. While enabled is false, the resource follows the booking window its location sets for the resource type. */
9940
+ /** @description How soon and how far ahead users can book this resource. While enabled is false, users can book it up to its start and any time ahead. */
9903
9941
  bookingWindow: {
9904
9942
  /**
9905
9943
  * @description How far ahead users can book the resource.
9906
9944
  * @enum {string}
9907
9945
  */
9908
9946
  bookAhead?: "oneDay" | "twoDays" | "oneWeek" | "twoWeeks" | "oneMonth" | "threeMonths" | "sixMonths" | "oneYear" | "unlimited";
9909
- /** @description Whether the resource uses this booking window instead of the one its location sets for the resource type. */
9947
+ /** @description Whether bookings of the resource are limited by this booking window. While it is false, users can book it up to its start and any time ahead. */
9910
9948
  enabled: boolean;
9911
9949
  /** @description How many minutes before it starts a booking of the resource has to be made. */
9912
9950
  minNotice?: number;
@@ -10603,14 +10641,14 @@ interface components {
10603
10641
  * @enum {string}
10604
10642
  */
10605
10643
  bookingUnit: "hour" | "day";
10606
- /** @description How soon and how far ahead users can book this resource. While enabled is false, the resource follows the booking window its location sets for the resource type. */
10644
+ /** @description How soon and how far ahead users can book this resource. While enabled is false, users can book it up to its start and any time ahead. */
10607
10645
  bookingWindow: {
10608
10646
  /**
10609
10647
  * @description How far ahead users can book the resource.
10610
10648
  * @enum {string}
10611
10649
  */
10612
10650
  bookAhead?: "oneDay" | "twoDays" | "oneWeek" | "twoWeeks" | "oneMonth" | "threeMonths" | "sixMonths" | "oneYear" | "unlimited";
10613
- /** @description Whether the resource uses this booking window instead of the one its location sets for the resource type. */
10651
+ /** @description Whether bookings of the resource are limited by this booking window. While it is false, users can book it up to its start and any time ahead. */
10614
10652
  enabled: boolean;
10615
10653
  /** @description How many minutes before it starts a booking of the resource has to be made. */
10616
10654
  minNotice?: number;
@@ -11814,7 +11852,7 @@ interface components {
11814
11852
  * @description Payment gateway that processed the charge.
11815
11853
  * @enum {string}
11816
11854
  */
11817
- gateway?: "authorizenet" | "flow" | "fondy" | "freedompay" | "hyperpay" | "kakaopay" | "maya" | "mercadopago" | "mollie" | "paypal" | "paystack" | "payway" | "plata" | "stripe" | "tap" | "wayforpay" | "xendit";
11855
+ gateway?: "authorizenet" | "flow" | "fondy" | "freedompay" | "hyperpay" | "kakaopay" | "maya" | "mercadopago" | "mollie" | "paypal" | "paystack" | "paytabs" | "payway" | "plata" | "stripe" | "tap" | "wayforpay" | "xendit";
11818
11856
  /** @description Saved payment method label, e.g. `Visa •••• 4242`. */
11819
11857
  label?: string;
11820
11858
  /** @description Masked payment method identifier. */
@@ -12249,7 +12287,7 @@ interface components {
12249
12287
  * @description Payment gateway that processed the charge.
12250
12288
  * @enum {string}
12251
12289
  */
12252
- gateway?: "authorizenet" | "flow" | "fondy" | "freedompay" | "hyperpay" | "kakaopay" | "maya" | "mercadopago" | "mollie" | "paypal" | "paystack" | "payway" | "plata" | "stripe" | "tap" | "wayforpay" | "xendit";
12290
+ gateway?: "authorizenet" | "flow" | "fondy" | "freedompay" | "hyperpay" | "kakaopay" | "maya" | "mercadopago" | "mollie" | "paypal" | "paystack" | "paytabs" | "payway" | "plata" | "stripe" | "tap" | "wayforpay" | "xendit";
12253
12291
  /** @description Saved payment method label, e.g. `Visa •••• 4242`. */
12254
12292
  label?: string;
12255
12293
  /** @description Masked payment method identifier. */
@@ -12896,7 +12934,7 @@ interface components {
12896
12934
  * @description Payment gateway that processed the charge.
12897
12935
  * @enum {string}
12898
12936
  */
12899
- gateway?: "authorizenet" | "flow" | "fondy" | "freedompay" | "hyperpay" | "kakaopay" | "maya" | "mercadopago" | "mollie" | "paypal" | "paystack" | "payway" | "plata" | "stripe" | "tap" | "wayforpay" | "xendit";
12937
+ gateway?: "authorizenet" | "flow" | "fondy" | "freedompay" | "hyperpay" | "kakaopay" | "maya" | "mercadopago" | "mollie" | "paypal" | "paystack" | "paytabs" | "payway" | "plata" | "stripe" | "tap" | "wayforpay" | "xendit";
12900
12938
  /** @description Saved payment method label, e.g. `Visa •••• 4242`. */
12901
12939
  label?: string;
12902
12940
  /** @description Masked payment method identifier. */
@@ -13331,7 +13369,7 @@ interface components {
13331
13369
  * @description Payment gateway that processed the charge.
13332
13370
  * @enum {string}
13333
13371
  */
13334
- gateway?: "authorizenet" | "flow" | "fondy" | "freedompay" | "hyperpay" | "kakaopay" | "maya" | "mercadopago" | "mollie" | "paypal" | "paystack" | "payway" | "plata" | "stripe" | "tap" | "wayforpay" | "xendit";
13372
+ gateway?: "authorizenet" | "flow" | "fondy" | "freedompay" | "hyperpay" | "kakaopay" | "maya" | "mercadopago" | "mollie" | "paypal" | "paystack" | "paytabs" | "payway" | "plata" | "stripe" | "tap" | "wayforpay" | "xendit";
13335
13373
  /** @description Saved payment method label, e.g. `Visa •••• 4242`. */
13336
13374
  label?: string;
13337
13375
  /** @description Masked payment method identifier. */
@@ -14505,7 +14543,7 @@ interface components {
14505
14543
  * @description Payment gateway type.
14506
14544
  * @enum {string}
14507
14545
  */
14508
- type?: "authorizenet" | "flow" | "fondy" | "freedompay" | "hyperpay" | "kakaopay" | "maya" | "mercadopago" | "paypal" | "paystack" | "payway" | "plata" | "stripe" | "tap" | "wayforpay" | "mollie" | "xendit";
14546
+ type?: "authorizenet" | "flow" | "fondy" | "freedompay" | "hyperpay" | "kakaopay" | "maya" | "mercadopago" | "paypal" | "paystack" | "paytabs" | "payway" | "plata" | "stripe" | "tap" | "wayforpay" | "mollie" | "xendit";
14509
14547
  };
14510
14548
  /**
14511
14549
  * @description Payment method type.
@@ -15054,7 +15092,7 @@ interface components {
15054
15092
  * @description Payment gateway type.
15055
15093
  * @enum {string}
15056
15094
  */
15057
- type?: "authorizenet" | "flow" | "fondy" | "freedompay" | "hyperpay" | "kakaopay" | "maya" | "mercadopago" | "paypal" | "paystack" | "payway" | "plata" | "stripe" | "tap" | "wayforpay" | "mollie" | "xendit";
15095
+ type?: "authorizenet" | "flow" | "fondy" | "freedompay" | "hyperpay" | "kakaopay" | "maya" | "mercadopago" | "paypal" | "paystack" | "paytabs" | "payway" | "plata" | "stripe" | "tap" | "wayforpay" | "mollie" | "xendit";
15058
15096
  };
15059
15097
  /**
15060
15098
  * @description Payment method type.
@@ -17318,7 +17356,7 @@ interface components {
17318
17356
  /** @description Profile image URL of the Lem AI assistant. */
17319
17357
  photoUrl: string;
17320
17358
  };
17321
- /** @description Membership of the user who performed the action. */
17359
+ /** @description Membership of the user who performed the action. Holds only an empty user when no membership performed it, such as a Lem AI reply. */
17322
17360
  membership?: {
17323
17361
  /**
17324
17362
  * Format: uuid
@@ -17349,6 +17387,9 @@ interface components {
17349
17387
  /** @description Surname of the user. */
17350
17388
  surname?: string | null;
17351
17389
  };
17390
+ } | {
17391
+ /** @description Empty user. */
17392
+ user: Record<string, never>;
17352
17393
  };
17353
17394
  /**
17354
17395
  * Format: uuid
@@ -22306,7 +22347,7 @@ interface components {
22306
22347
  /** @description Location where the visit takes place. */
22307
22348
  location: {
22308
22349
  /** @description Street address of the location. */
22309
- address?: string;
22350
+ address?: string | null;
22310
22351
  /**
22311
22352
  * Format: uuid
22312
22353
  * @description Unique identifier of the location.
@@ -22811,7 +22852,7 @@ interface components {
22811
22852
  * @description Payment gateway provider.
22812
22853
  * @enum {string}
22813
22854
  */
22814
- gateway: "authorizenet" | "freedompay" | "hyperpay" | "kakaopay" | "maya" | "mercadopago" | "mollie" | "paypal" | "paystack" | "payway" | "plata" | "stripe" | "tap" | "wayforpay" | "xendit";
22855
+ gateway: "authorizenet" | "freedompay" | "hyperpay" | "kakaopay" | "maya" | "mercadopago" | "mollie" | "paypal" | "paystack" | "paytabs" | "payway" | "plata" | "stripe" | "tap" | "wayforpay" | "xendit";
22815
22856
  /**
22816
22857
  * Format: uuid
22817
22858
  * @description ID of the saved payment method.
@@ -22839,7 +22880,7 @@ interface components {
22839
22880
  * @description Payment gateway type.
22840
22881
  * @enum {string}
22841
22882
  */
22842
- type: "authorizenet" | "external" | "freedompay" | "hyperpay" | "kakaopay" | "maya" | "mercadopago" | "mollie" | "paypal" | "paystack" | "payway" | "plata" | "stripe" | "tap" | "wayforpay" | "xendit";
22883
+ type: "authorizenet" | "external" | "freedompay" | "hyperpay" | "kakaopay" | "maya" | "mercadopago" | "mollie" | "paypal" | "paystack" | "paytabs" | "payway" | "plata" | "stripe" | "tap" | "wayforpay" | "xendit";
22843
22884
  };
22844
22885
  /** @description Whether the user has accepted the payment terms. */
22845
22886
  termsConsent?: boolean;
@@ -23672,6 +23713,8 @@ interface components {
23672
23713
  * @description ISO timestamp of when the event starts.
23673
23714
  */
23674
23715
  startDate: string;
23716
+ /** @description Maximum number of tickets one attendee can get for the event. Omit it for unlimited. */
23717
+ ticketsPerAttendee?: number;
23675
23718
  /** @description Display name of the event. */
23676
23719
  title: string;
23677
23720
  /** @description Venue name or address within the location. */
@@ -23764,6 +23807,8 @@ interface components {
23764
23807
  * @description ISO timestamp of when the event starts.
23765
23808
  */
23766
23809
  startDate: string;
23810
+ /** @description Maximum number of tickets one attendee can get for the event. Omit it for unlimited. */
23811
+ ticketsPerAttendee?: number;
23767
23812
  /** @description Display name of the event. */
23768
23813
  title: string;
23769
23814
  /** @description Venue name or address within the location. */
@@ -24246,48 +24291,10 @@ interface components {
24246
24291
  };
24247
24292
  };
24248
24293
  };
24249
- deletePlans: {
24250
- content: {
24251
- "application/json": {
24252
- /** @description Array of IDs of plans to delete. Up to 100 per request. */
24253
- planIds: string[];
24254
- };
24255
- };
24256
- };
24257
- patchPlans: {
24258
- content: {
24259
- "application/json": {
24260
- /** @description Plans to update and the fields to set on each of them. */
24261
- plans: {
24262
- /** @description IDs of the plans to update. Up to 100 per request. */
24263
- ids: string[];
24264
- /** @description Self sign-up settings to set on every plan. */
24265
- selfSignup: {
24266
- /**
24267
- * @description Turn self sign-up on.
24268
- * @enum {boolean}
24269
- */
24270
- enabled: true;
24271
- /**
24272
- * @description Self sign-up flow type. immediate: customers subscribe at once. request: customers apply and an admin approves.
24273
- * @enum {string}
24274
- */
24275
- type: "immediate" | "request";
24276
- } | {
24277
- /**
24278
- * @description Turn self sign-up off. Each plan keeps its sign-up type.
24279
- * @enum {boolean}
24280
- */
24281
- enabled: false;
24282
- };
24283
- };
24284
- };
24285
- };
24286
- };
24287
24294
  updatePlan: {
24288
24295
  content: {
24289
24296
  "application/json": {
24290
- /** @description Plan fields to update. */
24297
+ /** @description Plan fields to change. Omitted fields keep their current values. */
24291
24298
  plan: {
24292
24299
  /** @description Third-party access integrations. */
24293
24300
  access?: {
@@ -24315,15 +24322,9 @@ interface components {
24315
24322
  /** Format: uuid */
24316
24323
  id: string;
24317
24324
  }[];
24318
- /**
24319
- * @description Number of billing cycles the member is committed to.
24320
- * @default 0
24321
- */
24325
+ /** @description Number of billing cycles the member is committed to. */
24322
24326
  commitmentCycles?: number;
24323
- /**
24324
- * @description Credits included in the plan.
24325
- * @default 0
24326
- */
24327
+ /** @description Credits included in the plan. */
24327
24328
  credits?: number;
24328
24329
  /** @description Custom tax settings. */
24329
24330
  customTax?: {
@@ -24332,15 +24333,9 @@ interface components {
24332
24333
  /** @description Custom tax rate percentage. */
24333
24334
  rate: number;
24334
24335
  };
24335
- /**
24336
- * @description Number of day passes included in the plan.
24337
- * @default 0
24338
- */
24336
+ /** @description Number of day passes included in the plan. */
24339
24337
  dayPasses?: number;
24340
- /**
24341
- * @description Description of the plan.
24342
- * @default
24343
- */
24338
+ /** @description Description of the plan. */
24344
24339
  description?: string;
24345
24340
  /**
24346
24341
  * @deprecated
@@ -24360,12 +24355,7 @@ interface components {
24360
24355
  /** @description Discount percentage for shop products. */
24361
24356
  shop: number;
24362
24357
  };
24363
- /**
24364
- * @description Resources and benefits exclusively available to members on this plan.
24365
- * @default {
24366
- * "resourceRefs": []
24367
- * }
24368
- */
24358
+ /** @description Resources and benefits exclusively available to members on this plan. */
24369
24359
  exclusiveAccess?: {
24370
24360
  /** @description Benefit IDs with exclusive access for this plan. */
24371
24361
  benefitRefs?: string[];
@@ -24411,10 +24401,7 @@ interface components {
24411
24401
  */
24412
24402
  type: "immediate" | "request";
24413
24403
  };
24414
- /**
24415
- * @description One-time setup fee.
24416
- * @default 0
24417
- */
24404
+ /** @description One-time setup fee. */
24418
24405
  setupFee?: number;
24419
24406
  /** @description Display name of the plan. */
24420
24407
  title?: string;
@@ -24451,14 +24438,14 @@ interface components {
24451
24438
  * @enum {string}
24452
24439
  */
24453
24440
  bookingUnit?: "hour" | "day";
24454
- /** @description How soon and how far ahead users can book this resource. While enabled is false, the resource follows the booking window its location sets for the resource type and keeps its own values for when it is enabled again. Administrators are not limited by either. */
24441
+ /** @description How soon and how far ahead users can book this resource. While enabled is false, users can book it up to its start and any time ahead, and the resource keeps its own values for when it is enabled again. Administrators are not limited by it. */
24455
24442
  bookingWindow?: {
24456
24443
  /**
24457
- * @description How far ahead users can book the resource, the same values the location takes. Required while enabled is true.
24444
+ * @description How far ahead users can book the resource. Required while enabled is true.
24458
24445
  * @enum {string}
24459
24446
  */
24460
24447
  bookAhead?: "oneDay" | "twoDays" | "oneWeek" | "twoWeeks" | "oneMonth" | "threeMonths" | "sixMonths" | "oneYear" | "unlimited";
24461
- /** @description Whether the resource uses this booking window instead of the one its location sets for the resource type. */
24448
+ /** @description Whether bookings of the resource are limited by this booking window. While it is false, users can book it up to its start and any time ahead. */
24462
24449
  enabled: boolean;
24463
24450
  /** @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. */
24464
24451
  minNotice?: number;
@@ -24851,7 +24838,7 @@ interface components {
24851
24838
  customerRef?: string;
24852
24839
  /**
24853
24840
  * Format: date-time
24854
- * @description ISO timestamp when the assignment ends. Omit for an open-ended assignment.
24841
+ * @description ISO timestamp of the day the assignment ends. The assignment lasts through that day and ends at 23:59 in the time zone of the location. Omit for an open-ended assignment.
24855
24842
  */
24856
24843
  endDate?: string;
24857
24844
  /** @description Whether the assignment grants access to the entire resource. */
@@ -24878,7 +24865,7 @@ interface components {
24878
24865
  assignment: {
24879
24866
  /**
24880
24867
  * Format: date-time
24881
- * @description ISO timestamp when the assignment ends. Send null to make the assignment open-ended.
24868
+ * @description ISO timestamp of the day the assignment ends. The assignment lasts through that day and ends at 23:59 in the time zone of the location. Send null to make the assignment open-ended.
24882
24869
  */
24883
24870
  endDate?: string | null;
24884
24871
  /** @description Whether the assignment grants access to the entire resource. */
@@ -24944,14 +24931,14 @@ interface components {
24944
24931
  * @enum {string}
24945
24932
  */
24946
24933
  bookingUnit?: "hour" | "day";
24947
- /** @description How soon and how far ahead users can book this resource. While enabled is false, the resource follows the booking window its location sets for the resource type and keeps its own values for when it is enabled again. Administrators are not limited by either. */
24934
+ /** @description How soon and how far ahead users can book this resource. While enabled is false, users can book it up to its start and any time ahead, and the resource keeps its own values for when it is enabled again. Administrators are not limited by it. */
24948
24935
  bookingWindow?: {
24949
24936
  /**
24950
- * @description How far ahead users can book the resource, the same values the location takes. Required while enabled is true.
24937
+ * @description How far ahead users can book the resource. Required while enabled is true.
24951
24938
  * @enum {string}
24952
24939
  */
24953
24940
  bookAhead?: "oneDay" | "twoDays" | "oneWeek" | "twoWeeks" | "oneMonth" | "threeMonths" | "sixMonths" | "oneYear" | "unlimited";
24954
- /** @description Whether the resource uses this booking window instead of the one its location sets for the resource type. */
24941
+ /** @description Whether bookings of the resource are limited by this booking window. While it is false, users can book it up to its start and any time ahead. */
24955
24942
  enabled: boolean;
24956
24943
  /** @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. */
24957
24944
  minNotice?: number;
@@ -26570,7 +26557,7 @@ interface components {
26570
26557
  type?: "access" | "accountAndBilling" | "bookings" | "cleaning" | "discriminationAndHarassment" | "internet" | "mailAndPackages" | "noiseAndAcoustics" | "offensiveOrObjectionableContent" | "other" | "printing" | "repairAndMaintenance" | "temperatureAndVentilation" | "websiteAndApp";
26571
26558
  /**
26572
26559
  * Format: uuid
26573
- * @description ID of the user requesting the ticket. Defaults to the authenticated user when omitted.
26560
+ * @description ID of the user requesting the ticket. Defaults to the authenticated user when omitted, and is required with Basic authentication.
26574
26561
  */
26575
26562
  userRefRequester?: string;
26576
26563
  };
@@ -26821,7 +26808,7 @@ interface components {
26821
26808
  * @description Payment gateway provider. Only gateways that support saved payment methods can be charged.
26822
26809
  * @enum {string}
26823
26810
  */
26824
- gateway: "hyperpay" | "mollie" | "paypal" | "plata" | "stripe" | "tap" | "wayforpay";
26811
+ gateway: "hyperpay" | "mollie" | "paypal" | "paytabs" | "plata" | "stripe" | "tap" | "wayforpay";
26825
26812
  /**
26826
26813
  * Format: uuid
26827
26814
  * @description ID of the saved payment method to charge.
@@ -27063,6 +27050,41 @@ interface operations {
27063
27050
  };
27064
27051
  };
27065
27052
  };
27053
+ getAltCurrency: {
27054
+ parameters: {
27055
+ query?: never;
27056
+ header?: {
27057
+ /** @description The id of the network. Required when using bearer token authentication */
27058
+ "spacebring-network-id"?: string;
27059
+ };
27060
+ path: {
27061
+ /** @description The id of the alternative currency */
27062
+ id: string;
27063
+ };
27064
+ cookie?: never;
27065
+ };
27066
+ requestBody?: never;
27067
+ responses: {
27068
+ /** @description OK */
27069
+ 200: {
27070
+ headers: {
27071
+ [name: string]: unknown;
27072
+ };
27073
+ content: {
27074
+ "application/json": components["schemas"]["getAltCurrency"];
27075
+ };
27076
+ };
27077
+ /** @description Bad Request */
27078
+ 400: {
27079
+ headers: {
27080
+ [name: string]: unknown;
27081
+ };
27082
+ content: {
27083
+ "application/json": components["schemas"]["responseError"];
27084
+ };
27085
+ };
27086
+ };
27087
+ };
27066
27088
  deleteAltCurrency: {
27067
27089
  parameters: {
27068
27090
  query?: never;
@@ -27131,9 +27153,9 @@ interface operations {
27131
27153
  };
27132
27154
  getBenefitCategories: {
27133
27155
  parameters: {
27134
- query: {
27135
- /** @description UUID of the location whose benefit categories to list. */
27136
- locationRef: string;
27156
+ query?: {
27157
+ /** @description UUID of the location whose benefit categories to list, in member-facing order. Omit to list the categories of every location of the network. */
27158
+ locationRef?: string;
27137
27159
  };
27138
27160
  header?: {
27139
27161
  /** @description The id of the network. Required when using bearer token authentication */
@@ -27312,7 +27334,7 @@ interface operations {
27312
27334
  featured?: boolean;
27313
27335
  /** @description Maximum number of benefits per page. Defaults to 25 when omitted or invalid; values above 100 are capped at 100. */
27314
27336
  limit?: number;
27315
- /** @description UUID of the location. */
27337
+ /** @description UUID of the location. Omit both locationRef and categoryRef to list benefits across every location of the network. */
27316
27338
  locationRef?: string;
27317
27339
  /** @description Pagination token from nextPageToken in a previous response. Keep the same filters when fetching the next page. */
27318
27340
  nextPageToken?: string;
@@ -27529,7 +27551,7 @@ interface operations {
27529
27551
  query?: {
27530
27552
  /** @description UUID of the benefit. */
27531
27553
  benefitRef?: string;
27532
- /** @description Comma-separated benefit category UUIDs, e.g. `uuid1,uuid2`. */
27554
+ /** @description Filter by the category of the benefit applied for: the IDs of benefit categories. Comma-separated, one or more UUIDs. */
27533
27555
  categoryRef?: string;
27534
27556
  /** @description Filter applications submitted on or after this date (ISO 8601). Use with createDate[lte] for a range. */
27535
27557
  "createDate[gte]"?: string;
@@ -27539,7 +27561,7 @@ interface operations {
27539
27561
  customerRef?: string;
27540
27562
  /** @description Maximum number of applications per page. Defaults to 25 when omitted or invalid; values above 100 are capped at 100. */
27541
27563
  limit?: number;
27542
- /** @description UUID of the location. */
27564
+ /** @description UUID of the location. Omit locationRef, benefitRef, customerRef and userRef to list applications across every location of the network. */
27543
27565
  locationRef?: string;
27544
27566
  /** @description Pagination token from nextPageToken in a previous response. Keep the same filters when fetching the next page. */
27545
27567
  nextPageToken?: string;
@@ -27669,15 +27691,7 @@ interface operations {
27669
27691
  nextPageToken?: string;
27670
27692
  /** @description Case-insensitive search by invoice code or number. Requires customerRef or locationRef. */
27671
27693
  q?: string;
27672
- /**
27673
- * @description Filter by invoice status. Comma-separated values, e.g. `draft,issued`.
27674
- *
27675
- * Supported values:
27676
- * - **draft** — created but not sent
27677
- * - **issued** — sent to the customer but unpaid
27678
- * - **paid** — fully paid
27679
- * - **voided** — cancelled and no longer valid
27680
- */
27694
+ /** @description Filter by invoice status: draft (created but not sent), issued (sent to the customer but unpaid), paid (fully paid) or voided (cancelled and no longer valid). Comma-separated, one or more of: draft, issued, paid, voided. */
27681
27695
  status?: string;
27682
27696
  };
27683
27697
  header?: {
@@ -28075,21 +28089,13 @@ interface operations {
28075
28089
  locationRef?: string;
28076
28090
  /** @description Pagination token from nextPageToken in a previous response. Keep the same filters when fetching the next page. */
28077
28091
  nextPageToken?: string;
28078
- /**
28079
- * @description Filter by the status of the invoice the item is on. Items not on an invoice are excluded. Comma-separated values, e.g. `draft,issued`.
28080
- *
28081
- * Supported values:
28082
- * - **draft** — created but not sent
28083
- * - **issued** — sent to the customer but unpaid
28084
- * - **paid** — fully paid
28085
- * - **voided** — cancelled and no longer valid
28086
- */
28092
+ /** @description Filter by the status of the invoice the item is on: draft (created but not sent), issued (sent to the customer but unpaid), paid (fully paid) or voided (cancelled and no longer valid). Items not on an invoice are excluded. Comma-separated, one or more of: draft, issued, paid, voided. */
28087
28093
  status?: string;
28088
28094
  /** @description UUID of the invoice whose items to list, in place of customerRef or locationRef or with them. Pages and sorts like the rest of the list, and the other filters still apply. */
28089
28095
  invoiceRef?: string;
28090
28096
  /** @description Filter by whether the item is pending: not on an invoice and not part of a subscription. Pass true or false. */
28091
28097
  pending?: "true" | "false";
28092
- /** @description Filter by invoice item type. Comma-separated values, e.g. `custom,order`. */
28098
+ /** @description Filter by invoice item type. Comma-separated, one or more of: creditPackage, custom, booking, eventTicket, subscription, order. */
28093
28099
  type?: string;
28094
28100
  };
28095
28101
  header?: {
@@ -28353,13 +28359,7 @@ interface operations {
28353
28359
  locationRef?: string;
28354
28360
  /** @description Pagination token from nextPageToken in a previous response. Keep the same filters when fetching the next page. */
28355
28361
  nextPageToken?: string;
28356
- /**
28357
- * @description Filter by credit note status. Comma-separated values, e.g. `issued,voided`.
28358
- *
28359
- * Supported values:
28360
- * - **issued** — active credit note
28361
- * - **voided** — cancelled and no longer valid
28362
- */
28362
+ /** @description Filter by credit note status: issued (in effect) or voided (cancelled and no longer valid). Comma-separated, one or more of: issued, voided. */
28363
28363
  status?: string;
28364
28364
  };
28365
28365
  header?: {
@@ -29323,26 +29323,17 @@ interface operations {
29323
29323
  "createDate[gte]"?: string;
29324
29324
  /** @description Filter contracts created on or before this date (ISO 8601). Use with createDate[gte] for a range. */
29325
29325
  "createDate[lte]"?: string;
29326
- /** @description UUID of the customer (membership or company). Provide customerRef or locationRef; when set, returns only that customer's contracts. */
29326
+ /** @description UUID of the customer (membership or company). When set, returns only that customer's contracts. */
29327
29327
  customerRef?: string;
29328
29328
  /** @description Maximum number of contracts per page. Defaults to 25 when omitted or invalid; values above 100 are capped at 100. */
29329
29329
  limit?: number;
29330
- /** @description UUID of the location. Provide customerRef or locationRef; when set, returns contracts in that location. */
29330
+ /** @description UUID of the location. When set, returns contracts in that location. Omit both locationRef and customerRef to list contracts across every location of the network. */
29331
29331
  locationRef?: string;
29332
29332
  /** @description Pagination token from nextPageToken in a previous response. Keep the same filters when fetching the next page. */
29333
29333
  nextPageToken?: string;
29334
- /** @description Case-insensitive search by contract title. Requires customerRef or locationRef to scope the search. */
29334
+ /** @description Case-insensitive search by contract title, within customerRef or locationRef when given and across the network otherwise. */
29335
29335
  q?: string;
29336
- /**
29337
- * @description Filter by contract status. Comma-separated values, e.g. `draft,issued`.
29338
- *
29339
- * Supported values:
29340
- * - **draft** — created but not sent
29341
- * - **issued** — sent, awaiting signature
29342
- * - **signed** — active
29343
- * - **declined** — rejected
29344
- * - **terminated** — cancelled after signing
29345
- */
29336
+ /** @description Filter by status: 'draft' created and not sent yet, 'issued' sent and waiting for signatures, 'signed' signed by everyone and active, 'declined' a signer declined it or it expired unsigned, 'terminated' ended by an admin after it was signed. Defaults to every status. Comma-separated, one or more of: draft, issued, signed, declined, terminated. */
29346
29337
  status?: string;
29347
29338
  };
29348
29339
  header?: {
@@ -29680,11 +29671,11 @@ interface operations {
29680
29671
  };
29681
29672
  getTemplates: {
29682
29673
  parameters: {
29683
- query: {
29674
+ query?: {
29684
29675
  /** @description Maximum number of templates per page. Defaults to 25 when omitted or invalid; values above 100 are capped at 100. */
29685
29676
  limit?: number;
29686
- /** @description UUID of the location. */
29687
- locationRef: string;
29677
+ /** @description UUID of the location whose templates to list. Omit to list templates across every location of the network. */
29678
+ locationRef?: string;
29688
29679
  /** @description Pagination token from nextPageToken in a previous response. Keep the same filters when fetching the next page. */
29689
29680
  nextPageToken?: string;
29690
29681
  };
@@ -29937,15 +29928,15 @@ interface operations {
29937
29928
  };
29938
29929
  getCoupons: {
29939
29930
  parameters: {
29940
- query: {
29941
- /** @description The id of the location */
29942
- locationRef: string;
29943
- /** @description Comma-separated list of coupon types to filter by */
29944
- type?: "creditPackages" | "desks" | "equipment" | "events" | "products" | "rooms" | "subscriptionItems";
29945
- /** @description The number of coupons to retrieve. Default: 25 */
29931
+ query?: {
29932
+ /** @description Maximum number of coupons per page. Defaults to 25 when omitted or invalid; values above 100 are capped at 100. */
29946
29933
  limit?: number;
29947
- /** @description Token to retrieve the next page of results. */
29948
- nextPageToken?: components["schemas"]["nextPageToken"];
29934
+ /** @description UUID of the location whose coupons to list. Omit to list coupons across every location of the network. */
29935
+ locationRef?: string;
29936
+ /** @description Pagination token from nextPageToken in a previous response. Keep the same filters when fetching the next page. */
29937
+ nextPageToken?: string;
29938
+ /** @description Filter by the product types a coupon applies to; a coupon matches when it applies to any of them. Comma-separated, one or more of: roomBookings, eventSpaceBookings, conferenceRoomBookings, meetingRoomBookings, phoneBoothBookings, stationBookings, studioBookings, hotDeskBookings, dedicatedDeskBookings, officeBookings, parkingBookings, equipmentBookings, eventTickets, shopProducts, packages, subscriptionItems. */
29939
+ type?: string;
29949
29940
  };
29950
29941
  header?: {
29951
29942
  /** @description The id of the network. Required when using bearer token authentication */
@@ -30120,10 +30111,10 @@ interface operations {
30120
30111
  getPromocodes: {
30121
30112
  parameters: {
30122
30113
  query?: {
30123
- /** @description The id of the location. At least one of locationRef or couponRef is required */
30124
- locationRef?: string;
30125
- /** @description The id of the coupon. At least one of locationRef or couponRef is required */
30114
+ /** @description UUID of the coupon whose promocodes to list. */
30126
30115
  couponRef?: string;
30116
+ /** @description UUID of the location whose promocodes to list. Omit with couponRef to list promocodes across every location of the network. */
30117
+ locationRef?: string;
30127
30118
  };
30128
30119
  header?: {
30129
30120
  /** @description The id of the network. Required when using bearer token authentication */
@@ -30267,14 +30258,14 @@ interface operations {
30267
30258
  getDiscountRedemptions: {
30268
30259
  parameters: {
30269
30260
  query?: {
30270
- /** @description The id of the coupon. Either couponRef or promocodeRef is required */
30261
+ /** @description UUID of the coupon whose redemptions to list. */
30271
30262
  couponRef?: string;
30272
- /** @description The id of the promocode. Either couponRef or promocodeRef is required */
30273
- promocodeRef?: string;
30274
- /** @description The number of items to return */
30263
+ /** @description Maximum number of discount redemptions per page. Defaults to 25 when omitted or invalid; values above 100 are capped at 100. */
30275
30264
  limit?: number;
30276
- /** @description Token to retrieve the next page of results. */
30277
- nextPageToken?: components["schemas"]["nextPageToken"];
30265
+ /** @description Pagination token from nextPageToken in a previous response. Keep the same filters when fetching the next page. */
30266
+ nextPageToken?: string;
30267
+ /** @description UUID of the promocode whose redemptions to list. */
30268
+ promocodeRef?: string;
30278
30269
  };
30279
30270
  header?: {
30280
30271
  /** @description The id of the network. Required when using bearer token authentication */
@@ -30312,16 +30303,39 @@ interface operations {
30312
30303
  getEventsByOrganization: {
30313
30304
  parameters: {
30314
30305
  query: {
30315
- /** @description The id of the location. */
30316
- locationRef: string;
30317
- /** @description The number of events to retrieve. Default: 25 */
30306
+ /** @description Filter events whose create date is on or after this date (ISO 8601). */
30307
+ "createDate[gte]"?: string;
30308
+ /** @description Filter events whose create date is on or before this date (ISO 8601). */
30309
+ "createDate[lte]"?: string;
30310
+ /** @description Filter events whose end date is after this date (ISO 8601). */
30311
+ "endDate[gt]"?: string;
30312
+ /** @description Filter events whose end date is on or after this date (ISO 8601). */
30313
+ "endDate[gte]"?: string;
30314
+ /** @description Filter events whose end date is before this date (ISO 8601). */
30315
+ "endDate[lt]"?: string;
30316
+ /** @description Filter events whose end date is on or before this date (ISO 8601). */
30317
+ "endDate[lte]"?: string;
30318
+ /** @description Maximum number of events per page. Defaults to 25 when omitted or invalid; values above 100 are capped at 100. */
30318
30319
  limit?: number;
30319
- /** @description Token to retrieve the next page of results. */
30320
- nextPageToken?: components["schemas"]["nextPageToken"];
30321
- /** @description The order of the events. createDate:asc, createDate:desc, startDate:asc, startDate:desc, endDate:asc, endDate:desc or relevance */
30320
+ /** @description UUID of the location whose events to list. */
30321
+ locationRef: string;
30322
+ /** @description Pagination token from nextPageToken in a previous response. Keep the same filters when fetching the next page. */
30323
+ nextPageToken?: string;
30324
+ /** @description Sort order of events. One of relevance, createDate:asc, createDate:desc, startDate:asc, startDate:desc, endDate:asc, endDate:desc. */
30322
30325
  order?: string;
30326
+ /** @description Filter events whose start date is after this date (ISO 8601). */
30327
+ "startDate[gt]"?: string;
30328
+ /** @description Filter events whose start date is on or after this date (ISO 8601). */
30329
+ "startDate[gte]"?: string;
30330
+ /** @description Filter events whose start date is before this date (ISO 8601). */
30331
+ "startDate[lt]"?: string;
30332
+ /** @description Filter events whose start date is on or before this date (ISO 8601). */
30333
+ "startDate[lte]"?: string;
30334
+ };
30335
+ header?: {
30336
+ /** @description The id of the network. Required when using bearer token authentication */
30337
+ "spacebring-network-id"?: string;
30323
30338
  };
30324
- header?: never;
30325
30339
  path?: never;
30326
30340
  cookie?: never;
30327
30341
  };
@@ -30666,13 +30680,7 @@ interface operations {
30666
30680
  locationRef?: string;
30667
30681
  /** @description Pagination token from nextPageToken in a previous response. Keep the same filters when fetching the next page. */
30668
30682
  nextPageToken?: string;
30669
- /**
30670
- * @description Filter by event ticket status. Comma-separated values, e.g. `active,canceled`. Defaults to `active` when omitted.
30671
- *
30672
- * Supported values:
30673
- * - **active** — the ticket is valid
30674
- * - **canceled** — the ticket was deleted
30675
- */
30683
+ /** @description Filter by event ticket status: 'active' the ticket is valid, 'canceled' the ticket was deleted. Defaults to active. Comma-separated, one or more of: active, canceled. */
30676
30684
  status?: string;
30677
30685
  /** @description UUID of the user whose event tickets to list. */
30678
30686
  userRef?: string;
@@ -31451,11 +31459,11 @@ interface operations {
31451
31459
  };
31452
31460
  getGuides: {
31453
31461
  parameters: {
31454
- query: {
31462
+ query?: {
31455
31463
  /** @description Maximum number of guides per page. Defaults to 25 when omitted or invalid; values above 100 are capped at 100. */
31456
31464
  limit?: number;
31457
- /** @description UUID of the location whose guides to list. */
31458
- locationRef: string;
31465
+ /** @description UUID of the location whose guides to list. Omit to list guides across every location of the network. */
31466
+ locationRef?: string;
31459
31467
  /** @description Pagination token from nextPageToken in a previous response. Keep the same filters when fetching the next page. */
31460
31468
  nextPageToken?: string;
31461
31469
  };
@@ -31885,11 +31893,11 @@ interface operations {
31885
31893
  };
31886
31894
  getPackages: {
31887
31895
  parameters: {
31888
- query: {
31896
+ query?: {
31889
31897
  /** @description Maximum number of packages per page. Defaults to 25 when omitted or invalid; values above 100 are capped at 100. */
31890
31898
  limit?: number;
31891
- /** @description UUID of the location. */
31892
- locationRef: string;
31899
+ /** @description UUID of the location whose packages to list. Omit to list packages across every location of the network. */
31900
+ locationRef?: string;
31893
31901
  /** @description Pagination token from nextPageToken in a previous response. Keep the same filters when fetching the next page. */
31894
31902
  nextPageToken?: string;
31895
31903
  };
@@ -32027,7 +32035,7 @@ interface operations {
32027
32035
  entire?: string;
32028
32036
  /** @description Maximum number of plans per page. Defaults to 25 when omitted or invalid; values above 100 are capped at 100. */
32029
32037
  limit?: number;
32030
- /** @description UUID of the location whose plans to list. */
32038
+ /** @description UUID of the location whose plans to list. Omit to list plans across every location of the network. */
32031
32039
  locationRef?: string;
32032
32040
  /** @description Pagination token from nextPageToken in a previous response. Keep the same filters when fetching the next page. */
32033
32041
  nextPageToken?: string;
@@ -32094,66 +32102,6 @@ interface operations {
32094
32102
  };
32095
32103
  };
32096
32104
  };
32097
- deletePlans: {
32098
- parameters: {
32099
- query?: never;
32100
- header?: {
32101
- /** @description The id of the network. Required when using bearer token authentication */
32102
- "spacebring-network-id"?: string;
32103
- };
32104
- path?: never;
32105
- cookie?: never;
32106
- };
32107
- requestBody: components["requestBodies"]["deletePlans"];
32108
- responses: {
32109
- /** @description No Content */
32110
- 204: {
32111
- headers: {
32112
- [name: string]: unknown;
32113
- };
32114
- content?: never;
32115
- };
32116
- /** @description Bad Request */
32117
- 400: {
32118
- headers: {
32119
- [name: string]: unknown;
32120
- };
32121
- content: {
32122
- "application/json": components["schemas"]["responseError"];
32123
- };
32124
- };
32125
- };
32126
- };
32127
- patchPlans: {
32128
- parameters: {
32129
- query?: never;
32130
- header?: {
32131
- /** @description The id of the network. Required when using bearer token authentication */
32132
- "spacebring-network-id"?: string;
32133
- };
32134
- path?: never;
32135
- cookie?: never;
32136
- };
32137
- requestBody: components["requestBodies"]["patchPlans"];
32138
- responses: {
32139
- /** @description No Content */
32140
- 204: {
32141
- headers: {
32142
- [name: string]: unknown;
32143
- };
32144
- content?: never;
32145
- };
32146
- /** @description Bad Request */
32147
- 400: {
32148
- headers: {
32149
- [name: string]: unknown;
32150
- };
32151
- content: {
32152
- "application/json": components["schemas"]["responseError"];
32153
- };
32154
- };
32155
- };
32156
- };
32157
32105
  getPlan: {
32158
32106
  parameters: {
32159
32107
  query?: never;
@@ -32298,14 +32246,14 @@ interface operations {
32298
32246
  };
32299
32247
  getResources: {
32300
32248
  parameters: {
32301
- query: {
32249
+ query?: {
32302
32250
  /** @description Maximum number of resources per page. Defaults to 25 when omitted or invalid; values above 100 are capped at 100. */
32303
32251
  limit?: number;
32304
- /** @description UUID of the location whose resources to list. */
32305
- locationRef: string;
32252
+ /** @description UUID of the location whose resources to list. Omit to list resources across every location of the network. */
32253
+ locationRef?: string;
32306
32254
  /** @description Pagination token from nextPageToken in a previous response. Keep the same filters when fetching the next page. */
32307
32255
  nextPageToken?: string;
32308
- /** @description Comma-separated list of resource types to filter by, e.g. `room,hotDesk`. Valid values: dedicatedDesk, equipment, hotDesk, office, parkingLot, room, station, conferenceRoom, eventSpace, meetingRoom, phoneBooth, studio. Defaults to all bookable types. */
32256
+ /** @description Resource types to filter by, e.g. `room,hotDesk`. Defaults to all bookable types. Comma-separated, one or more of: dedicatedDesk, equipment, hotDesk, office, parkingLot, room, station, conferenceRoom, eventSpace, meetingRoom, phoneBooth, studio. */
32309
32257
  type?: string;
32310
32258
  /** @description Deprecated. Use type instead. */
32311
32259
  types?: string;
@@ -32729,7 +32677,7 @@ interface operations {
32729
32677
  includeDeleted?: string;
32730
32678
  /** @description Maximum number of bookings per page. Defaults to 25 when omitted or invalid; values above 100 are capped at 100. */
32731
32679
  limit?: number;
32732
- /** @description UUID of the location whose bookings to list. Required when both resourceRef and userRef are omitted. */
32680
+ /** @description UUID of the location whose bookings to list. Omit to list bookings across every location of the network. */
32733
32681
  locationRef?: string;
32734
32682
  /** @description Deprecated. Use customerRef instead. UUID of the customer whose bookings to list. */
32735
32683
  membershipRefOwner?: string;
@@ -32737,19 +32685,19 @@ interface operations {
32737
32685
  nextPageToken?: string;
32738
32686
  /** @description Sort order as `<field>:<direction>`, where field is startDate, endDate, createDate or deleteDate and direction is asc or desc. deleteDate lists only cancelled bookings, by when they were cancelled, and cannot be combined with singleBookings. Defaults to startDate:asc when a startDate filter is given, endDate:asc when only an endDate filter is given, and createDate:desc otherwise. */
32739
32687
  order?: string;
32740
- /** @description UUID of the resource whose bookings to list. Required when both locationRef and userRef are omitted. */
32688
+ /** @description UUID of the resource whose bookings to list. */
32741
32689
  resourceRef?: string;
32742
32690
  /** @description Set to "true" to expand repeating bookings into single occurrences. */
32743
32691
  singleBookings?: string;
32744
32692
  /** @description Deprecated. Use bracket-notation fields startDate[gt], startDate[gte], startDate[lt], startDate[lte] instead. */
32745
32693
  startDate?: string;
32746
- /** @description Comma-separated list of booking statuses to filter by, e.g. `confirmed,canceled`. Valid values: tentative, confirmed, canceled. Defaults to tentative, confirmed, or to canceled when ordering by deleteDate. */
32694
+ /** @description Booking statuses to filter by, e.g. `confirmed,canceled`. Defaults to tentative and confirmed, or to canceled when ordering by deleteDate. Comma-separated, one or more of: tentative, confirmed, canceled. */
32747
32695
  status?: string;
32748
- /** @description Comma-separated list of resource types to filter by, e.g. `room,hotDesk`. Valid values: hotDesk, dedicatedDesk, office, parkingLot, room, conferenceRoom, eventSpace, meetingRoom, phoneBooth, studio, equipment, station. Defaults to all bookable types. */
32696
+ /** @description Resource types of the booked resources to filter by, e.g. `room,hotDesk`. Defaults to all bookable types. Comma-separated, one or more of: hotDesk, dedicatedDesk, office, parkingLot, room, conferenceRoom, eventSpace, meetingRoom, phoneBooth, studio, equipment, station. */
32749
32697
  type?: string;
32750
- /** @description UUID of the user whose bookings to list, both made and attended. Can be given on its own, without locationRef or resourceRef, to list the user's bookings across every location of the network. Cannot be combined with customerRef, companyRefOwner, or userRefOwner. */
32698
+ /** @description UUID of the user whose bookings to list, both made and attended. Without locationRef or resourceRef, lists the user's bookings across every location of the network. Cannot be combined with customerRef, companyRefOwner, or userRefOwner. */
32751
32699
  userRef?: string;
32752
- /** @description UUID of the user whose own bookings to list: bookings the user made, not ones they were added to as an attendee. Cannot be combined with customerRef, companyRefOwner, or userRef. */
32700
+ /** @description UUID of the user whose own bookings to list: bookings the user made, not ones they were added to as an attendee. Without locationRef or resourceRef, lists the user's own bookings across every location of the network. Cannot be combined with customerRef, companyRefOwner, or userRef. */
32753
32701
  userRefOwner?: string;
32754
32702
  /** @description Deprecated. Use type instead. */
32755
32703
  types?: string;
@@ -33097,7 +33045,7 @@ interface operations {
33097
33045
  query?: {
33098
33046
  /** @description UUID of the shop category. */
33099
33047
  categoryRef?: string;
33100
- /** @description Comma-separated product UUIDs, e.g. `uuid1,uuid2`. Up to 25 ids per request. */
33048
+ /** @description Product UUIDs to get, up to 25 per request. Comma-separated, one or more UUIDs. */
33101
33049
  id?: string;
33102
33050
  /** @description Maximum number of products per page. Defaults to 25 when omitted or invalid; values above 100 are capped at 100. */
33103
33051
  limit?: number;
@@ -33321,7 +33269,7 @@ interface operations {
33321
33269
  getOrders: {
33322
33270
  parameters: {
33323
33271
  query?: {
33324
- /** @description Comma-separated shop category UUIDs used to filter orders, e.g. `uuid1,uuid2`. */
33272
+ /** @description Filter by the shop categories of the products in the order. Comma-separated, one or more UUIDs. */
33325
33273
  categoryRef?: string;
33326
33274
  /** @description Filter orders created on or after this date (ISO 8601). Use with createDate[lte] for a range. */
33327
33275
  "createDate[gte]"?: string;
@@ -33335,17 +33283,9 @@ interface operations {
33335
33283
  locationRef?: string;
33336
33284
  /** @description Pagination token from nextPageToken in a previous response. Keep the same filters when fetching the next page. */
33337
33285
  nextPageToken?: string;
33338
- /** @description Comma-separated product UUIDs used to filter orders, e.g. `uuid1,uuid2`. */
33286
+ /** @description Filter by the products in the order. Comma-separated, one or more UUIDs. */
33339
33287
  productRef?: string;
33340
- /**
33341
- * @description Filter by order status. Comma-separated values, e.g. `new,inProgress`. Defaults to `new`, `inProgress`, and `completed` when omitted.
33342
- *
33343
- * Supported values:
33344
- * - **new** — placed, awaiting fulfillment
33345
- * - **inProgress** — being fulfilled
33346
- * - **completed** — fulfilled
33347
- * - **canceled** — canceled
33348
- */
33288
+ /** @description Filter by order status: 'pending' placed, payment still processing; 'new' placed and paid, awaiting fulfillment; 'inProgress' being fulfilled; 'completed' fulfilled; 'canceled' canceled by the customer or an admin. Defaults to new, inProgress and completed. Comma-separated, one or more of: canceled, completed, inProgress, new, pending. */
33349
33289
  status?: string;
33350
33290
  /** @description UUID of the user whose orders to list. */
33351
33291
  userRef?: string;
@@ -33425,24 +33365,15 @@ interface operations {
33425
33365
  customerRef?: string;
33426
33366
  /** @description Maximum number of subscriptions per page. Defaults to 25 when omitted or invalid; values above 100 are capped at 100. */
33427
33367
  limit?: number;
33428
- /** @description UUID of the location whose subscriptions to list. */
33368
+ /** @description UUID of the location whose subscriptions to list. Omit locationRef and customerRef to list subscriptions across every location of the network, grouped by location. */
33429
33369
  locationRef?: string;
33430
33370
  /** @description Pagination token from nextPageToken in a previous response. Keep the same filters when fetching the next page. */
33431
33371
  nextPageToken?: string;
33432
- /** @description Sort order for results. */
33372
+ /** @description Sort order as field:direction, where field is startDate, endDate, createDate or renewDate and direction is asc or desc, such as startDate:asc. Applies to a location's subscriptions and needs locationRef. Defaults to createDate:desc. */
33433
33373
  order?: string;
33434
- /** @description UUID of the plan to filter subscriptions by. */
33374
+ /** @description UUID of the plan to filter subscriptions by. Applies to a location's or the network's subscriptions. */
33435
33375
  planRef?: string;
33436
- /**
33437
- * @description Filter by subscription status. Comma-separated values, e.g. `active,scheduled`. Defaults to `active`, `scheduled`, and `incomplete` when omitted.
33438
- *
33439
- * Supported values:
33440
- * - **active** — currently active
33441
- * - **scheduled** — scheduled to start
33442
- * - **incomplete** — pending setup or payment
33443
- * - **incompleteExpired** — incomplete and expired
33444
- * - **canceled** — canceled
33445
- */
33376
+ /** @description Filter by status: 'active' started and not ended or canceled, 'scheduled' starts in the future, 'incomplete' setup not finished (such as an unsigned contract or an unpaid purchase), 'incompleteExpired' setup was never finished (the contract was declined or the payment canceled), 'canceled' canceled or ended. Defaults to active, scheduled and incomplete. Comma-separated, one or more of: active, scheduled, incomplete, incompleteExpired, canceled. */
33446
33377
  status?: string;
33447
33378
  };
33448
33379
  header?: {
@@ -35498,22 +35429,15 @@ interface GetSubscriptionsQuery {
35498
35429
  customerRef?: string;
35499
35430
  /** Maximum number of subscriptions per page. Defaults to 25 when omitted or invalid; values above 100 are capped at 100. */
35500
35431
  limit?: number;
35501
- /** UUID of the location whose subscriptions to list. */
35432
+ /** UUID of the location whose subscriptions to list. Omit locationRef and customerRef to list subscriptions across every location of the network, grouped by location. */
35502
35433
  locationRef?: string;
35503
35434
  /** Pagination token from nextPageToken in a previous response. Keep the same filters when fetching the next page. */
35504
35435
  nextPageToken?: string;
35505
- /** Sort order for results. */
35436
+ /** Sort order as field:direction, where field is startDate, endDate, createDate or renewDate and direction is asc or desc, such as startDate:asc. Applies to a location's subscriptions and needs locationRef. Defaults to createDate:desc. */
35506
35437
  order?: string;
35507
- /** UUID of the plan to filter subscriptions by. */
35438
+ /** UUID of the plan to filter subscriptions by. Applies to a location's or the network's subscriptions. */
35508
35439
  planRef?: string;
35509
- /** Filter by subscription status. Comma-separated values, e.g. `active,scheduled`. Defaults to `active`, `scheduled`, and `incomplete` when omitted.
35510
-
35511
- Supported values:
35512
- - **active** — currently active
35513
- - **scheduled** — scheduled to start
35514
- - **incomplete** — pending setup or payment
35515
- - **incompleteExpired** — incomplete and expired
35516
- - **canceled** — canceled */
35440
+ /** Filter by status: 'active' started and not ended or canceled, 'scheduled' starts in the future, 'incomplete' setup not finished (such as an unsigned contract or an unpaid purchase), 'incompleteExpired' setup was never finished (the contract was declined or the payment canceled), 'canceled' canceled or ended. Defaults to active, scheduled and incomplete. Comma-separated, one or more of: active, scheduled, incomplete, incompleteExpired, canceled. */
35517
35441
  status?: string;
35518
35442
  }
35519
35443
  /** Request body for `sb.subscriptions.create()`. */
@@ -35535,7 +35459,7 @@ type ProductMedia = NonNullable<operations["createProductMedia"]["responses"][20
35535
35459
  type ShopCategory = NonNullable<components["schemas"]["shopCategory"]>;
35536
35460
  /** Query parameters for `sb.shop.orders.list()`. */
35537
35461
  interface GetOrdersQuery {
35538
- /** Comma-separated shop category UUIDs used to filter orders, e.g. `uuid1,uuid2`. */
35462
+ /** Filter by the shop categories of the products in the order. Comma-separated, one or more UUIDs. */
35539
35463
  categoryRef?: string;
35540
35464
  /** Filter orders created on or after this date (ISO 8601). Use with createDate[lte] for a range. */
35541
35465
  "createDate[gte]"?: string;
@@ -35549,15 +35473,9 @@ interface GetOrdersQuery {
35549
35473
  locationRef?: string;
35550
35474
  /** Pagination token from nextPageToken in a previous response. Keep the same filters when fetching the next page. */
35551
35475
  nextPageToken?: string;
35552
- /** Comma-separated product UUIDs used to filter orders, e.g. `uuid1,uuid2`. */
35476
+ /** Filter by the products in the order. Comma-separated, one or more UUIDs. */
35553
35477
  productRef?: string;
35554
- /** Filter by order status. Comma-separated values, e.g. `new,inProgress`. Defaults to `new`, `inProgress`, and `completed` when omitted.
35555
-
35556
- Supported values:
35557
- - **new** — placed, awaiting fulfillment
35558
- - **inProgress** — being fulfilled
35559
- - **completed** — fulfilled
35560
- - **canceled** — canceled */
35478
+ /** Filter by order status: 'pending' placed, payment still processing; 'new' placed and paid, awaiting fulfillment; 'inProgress' being fulfilled; 'completed' fulfilled; 'canceled' canceled by the customer or an admin. Defaults to new, inProgress and completed. Comma-separated, one or more of: canceled, completed, inProgress, new, pending. */
35561
35479
  status?: string;
35562
35480
  /** UUID of the user whose orders to list. */
35563
35481
  userRef?: string;
@@ -35566,7 +35484,7 @@ interface GetOrdersQuery {
35566
35484
  interface GetProductsQuery {
35567
35485
  /** UUID of the shop category. */
35568
35486
  categoryRef?: string;
35569
- /** Comma-separated product UUIDs, e.g. `uuid1,uuid2`. Up to 25 ids per request. */
35487
+ /** Product UUIDs to get, up to 25 per request. Comma-separated, one or more UUIDs. */
35570
35488
  id?: string;
35571
35489
  /** Maximum number of products per page. Defaults to 25 when omitted or invalid; values above 100 are capped at 100. */
35572
35490
  limit?: number;
@@ -35638,7 +35556,7 @@ interface GetBookingsQuery {
35638
35556
  includeDeleted?: string;
35639
35557
  /** Maximum number of bookings per page. Defaults to 25 when omitted or invalid; values above 100 are capped at 100. */
35640
35558
  limit?: number;
35641
- /** UUID of the location whose bookings to list. Required when both resourceRef and userRef are omitted. */
35559
+ /** UUID of the location whose bookings to list. Omit to list bookings across every location of the network. */
35642
35560
  locationRef?: string;
35643
35561
  /** @deprecated Use customerRef instead. UUID of the customer whose bookings to list. */
35644
35562
  membershipRefOwner?: string;
@@ -35646,19 +35564,19 @@ interface GetBookingsQuery {
35646
35564
  nextPageToken?: string;
35647
35565
  /** Sort order as `:`, where field is startDate, endDate, createDate or deleteDate and direction is asc or desc. deleteDate lists only cancelled bookings, by when they were cancelled, and cannot be combined with singleBookings. Defaults to startDate:asc when a startDate filter is given, endDate:asc when only an endDate filter is given, and createDate:desc otherwise. */
35648
35566
  order?: string;
35649
- /** UUID of the resource whose bookings to list. Required when both locationRef and userRef are omitted. */
35567
+ /** UUID of the resource whose bookings to list. */
35650
35568
  resourceRef?: string;
35651
35569
  /** Set to "true" to expand repeating bookings into single occurrences. */
35652
35570
  singleBookings?: string;
35653
35571
  /** @deprecated Use bracket-notation fields startDate[gt], startDate[gte], startDate[lt], startDate[lte] instead. */
35654
35572
  startDate?: string;
35655
- /** Comma-separated list of booking statuses to filter by, e.g. `confirmed,canceled`. Valid values: tentative, confirmed, canceled. Defaults to tentative, confirmed, or to canceled when ordering by deleteDate. */
35573
+ /** Booking statuses to filter by, e.g. `confirmed,canceled`. Defaults to tentative and confirmed, or to canceled when ordering by deleteDate. Comma-separated, one or more of: tentative, confirmed, canceled. */
35656
35574
  status?: string;
35657
- /** Comma-separated list of resource types to filter by, e.g. `room,hotDesk`. Valid values: hotDesk, dedicatedDesk, office, parkingLot, room, conferenceRoom, eventSpace, meetingRoom, phoneBooth, studio, equipment, station. Defaults to all bookable types. */
35575
+ /** Resource types of the booked resources to filter by, e.g. `room,hotDesk`. Defaults to all bookable types. Comma-separated, one or more of: hotDesk, dedicatedDesk, office, parkingLot, room, conferenceRoom, eventSpace, meetingRoom, phoneBooth, studio, equipment, station. */
35658
35576
  type?: string;
35659
- /** UUID of the user whose bookings to list, both made and attended. Can be given on its own, without locationRef or resourceRef, to list the user's bookings across every location of the network. Cannot be combined with customerRef, companyRefOwner, or userRefOwner. */
35577
+ /** UUID of the user whose bookings to list, both made and attended. Without locationRef or resourceRef, lists the user's bookings across every location of the network. Cannot be combined with customerRef, companyRefOwner, or userRefOwner. */
35660
35578
  userRef?: string;
35661
- /** UUID of the user whose own bookings to list: bookings the user made, not ones they were added to as an attendee. Cannot be combined with customerRef, companyRefOwner, or userRef. */
35579
+ /** UUID of the user whose own bookings to list: bookings the user made, not ones they were added to as an attendee. Without locationRef or resourceRef, lists the user's own bookings across every location of the network. Cannot be combined with customerRef, companyRefOwner, or userRef. */
35662
35580
  userRefOwner?: string;
35663
35581
  /** @deprecated Use type instead. */
35664
35582
  types?: string;
@@ -35667,11 +35585,11 @@ interface GetBookingsQuery {
35667
35585
  interface GetResourcesQuery {
35668
35586
  /** Maximum number of resources per page. Defaults to 25 when omitted or invalid; values above 100 are capped at 100. */
35669
35587
  limit?: number;
35670
- /** UUID of the location whose resources to list. */
35671
- locationRef: string;
35588
+ /** UUID of the location whose resources to list. Omit to list resources across every location of the network. */
35589
+ locationRef?: string;
35672
35590
  /** Pagination token from nextPageToken in a previous response. Keep the same filters when fetching the next page. */
35673
35591
  nextPageToken?: string;
35674
- /** Comma-separated list of resource types to filter by, e.g. `room,hotDesk`. Valid values: dedicatedDesk, equipment, hotDesk, office, parkingLot, room, station, conferenceRoom, eventSpace, meetingRoom, phoneBooth, studio. Defaults to all bookable types. */
35592
+ /** Resource types to filter by, e.g. `room,hotDesk`. Defaults to all bookable types. Comma-separated, one or more of: dedicatedDesk, equipment, hotDesk, office, parkingLot, room, station, conferenceRoom, eventSpace, meetingRoom, phoneBooth, studio. */
35675
35593
  type?: string;
35676
35594
  /** @deprecated Use type instead. */
35677
35595
  types?: string;
@@ -35711,7 +35629,7 @@ interface GetPlansQuery {
35711
35629
  entire?: string;
35712
35630
  /** Maximum number of plans per page. Defaults to 25 when omitted or invalid; values above 100 are capped at 100. */
35713
35631
  limit?: number;
35714
- /** UUID of the location whose plans to list. */
35632
+ /** UUID of the location whose plans to list. Omit to list plans across every location of the network. */
35715
35633
  locationRef?: string;
35716
35634
  /** Pagination token from nextPageToken in a previous response. Keep the same filters when fetching the next page. */
35717
35635
  nextPageToken?: string;
@@ -35720,10 +35638,6 @@ interface GetPlansQuery {
35720
35638
  }
35721
35639
  /** Request body for `sb.plans.create()`. */
35722
35640
  type CreatePlanBody = NonNullable<NonNullable<operations["createPlan"]["requestBody"]>["content"]["application/json"]["plan"]>;
35723
- /** Request body for `sb.plans.deletePlans()`. */
35724
- type DeletePlansBody = NonNullable<NonNullable<operations["deletePlans"]["requestBody"]>["content"]["application/json"]["planIds"]>;
35725
- /** Request body for `sb.plans.patchPlans()`. */
35726
- type PatchPlansBody = NonNullable<NonNullable<operations["patchPlans"]["requestBody"]>["content"]["application/json"]["plans"]>;
35727
35641
  /** Request body for `sb.plans.update()`. */
35728
35642
  type UpdatePlanBody = NonNullable<NonNullable<operations["updatePlan"]["requestBody"]>["content"]["application/json"]["plan"]>;
35729
35643
 
@@ -35733,8 +35647,8 @@ type Package = NonNullable<operations["getPackages"]["responses"][200]["content"
35733
35647
  interface GetPackagesQuery {
35734
35648
  /** Maximum number of packages per page. Defaults to 25 when omitted or invalid; values above 100 are capped at 100. */
35735
35649
  limit?: number;
35736
- /** UUID of the location. */
35737
- locationRef: string;
35650
+ /** UUID of the location whose packages to list. Omit to list packages across every location of the network. */
35651
+ locationRef?: string;
35738
35652
  /** Pagination token from nextPageToken in a previous response. Keep the same filters when fetching the next page. */
35739
35653
  nextPageToken?: string;
35740
35654
  }
@@ -35759,8 +35673,8 @@ type GuideMedia = NonNullable<operations["createGuideMedia"]["responses"][201]["
35759
35673
  interface GetGuidesQuery {
35760
35674
  /** Maximum number of guides per page. Defaults to 25 when omitted or invalid; values above 100 are capped at 100. */
35761
35675
  limit?: number;
35762
- /** UUID of the location whose guides to list. */
35763
- locationRef: string;
35676
+ /** UUID of the location whose guides to list. Omit to list guides across every location of the network. */
35677
+ locationRef?: string;
35764
35678
  /** Pagination token from nextPageToken in a previous response. Keep the same filters when fetching the next page. */
35765
35679
  nextPageToken?: string;
35766
35680
  }
@@ -35817,14 +35731,34 @@ type EventMedia = NonNullable<operations["createEventMedia"]["responses"][201]["
35817
35731
  type EventTicket = NonNullable<components["schemas"]["eventTicket"]>;
35818
35732
  /** Query parameters for `sb.events.list()`. */
35819
35733
  interface GetEventsByOrganizationQuery {
35820
- /** The id of the location. */
35821
- locationRef: string;
35822
- /** The number of events to retrieve. Default: 25 */
35734
+ /** Filter events whose create date is on or after this date (ISO 8601). */
35735
+ "createDate[gte]"?: string;
35736
+ /** Filter events whose create date is on or before this date (ISO 8601). */
35737
+ "createDate[lte]"?: string;
35738
+ /** Filter events whose end date is after this date (ISO 8601). */
35739
+ "endDate[gt]"?: string;
35740
+ /** Filter events whose end date is on or after this date (ISO 8601). */
35741
+ "endDate[gte]"?: string;
35742
+ /** Filter events whose end date is before this date (ISO 8601). */
35743
+ "endDate[lt]"?: string;
35744
+ /** Filter events whose end date is on or before this date (ISO 8601). */
35745
+ "endDate[lte]"?: string;
35746
+ /** Maximum number of events per page. Defaults to 25 when omitted or invalid; values above 100 are capped at 100. */
35823
35747
  limit?: number;
35824
- /** Token to retrieve the next page of results. */
35748
+ /** UUID of the location whose events to list. */
35749
+ locationRef: string;
35750
+ /** Pagination token from nextPageToken in a previous response. Keep the same filters when fetching the next page. */
35825
35751
  nextPageToken?: string;
35826
- /** The order of the events. createDate:asc, createDate:desc, startDate:asc, startDate:desc, endDate:asc, endDate:desc or relevance */
35752
+ /** Sort order of events. One of relevance, createDate:asc, createDate:desc, startDate:asc, startDate:desc, endDate:asc, endDate:desc. */
35827
35753
  order?: string;
35754
+ /** Filter events whose start date is after this date (ISO 8601). */
35755
+ "startDate[gt]"?: string;
35756
+ /** Filter events whose start date is on or after this date (ISO 8601). */
35757
+ "startDate[gte]"?: string;
35758
+ /** Filter events whose start date is before this date (ISO 8601). */
35759
+ "startDate[lt]"?: string;
35760
+ /** Filter events whose start date is on or before this date (ISO 8601). */
35761
+ "startDate[lte]"?: string;
35828
35762
  }
35829
35763
  /** Query parameters for `sb.events.tickets.list()`. */
35830
35764
  interface GetEventTicketsQuery {
@@ -35840,11 +35774,7 @@ interface GetEventTicketsQuery {
35840
35774
  locationRef?: string;
35841
35775
  /** Pagination token from nextPageToken in a previous response. Keep the same filters when fetching the next page. */
35842
35776
  nextPageToken?: string;
35843
- /** Filter by event ticket status. Comma-separated values, e.g. `active,canceled`. Defaults to `active` when omitted.
35844
-
35845
- Supported values:
35846
- - **active** — the ticket is valid
35847
- - **canceled** — the ticket was deleted */
35777
+ /** Filter by event ticket status: 'active' the ticket is valid, 'canceled' the ticket was deleted. Defaults to active. Comma-separated, one or more of: active, canceled. */
35848
35778
  status?: string;
35849
35779
  /** UUID of the user whose event tickets to list. */
35850
35780
  userRef?: string;
@@ -35868,32 +35798,32 @@ type Promocode = NonNullable<components["schemas"]["promocode"]>;
35868
35798
  type Redemption = NonNullable<components["schemas"]["discountRedemption"]>;
35869
35799
  /** Query parameters for `sb.discounts.coupons.list()`. */
35870
35800
  interface GetCouponsQuery {
35871
- /** The id of the location */
35872
- locationRef: string;
35873
- /** Comma-separated list of coupon types to filter by */
35874
- type?: "creditPackages" | "desks" | "equipment" | "events" | "products" | "rooms" | "subscriptionItems";
35875
- /** The number of coupons to retrieve. Default: 25 */
35801
+ /** Maximum number of coupons per page. Defaults to 25 when omitted or invalid; values above 100 are capped at 100. */
35876
35802
  limit?: number;
35877
- /** Token to retrieve the next page of results. */
35803
+ /** UUID of the location whose coupons to list. Omit to list coupons across every location of the network. */
35804
+ locationRef?: string;
35805
+ /** Pagination token from nextPageToken in a previous response. Keep the same filters when fetching the next page. */
35878
35806
  nextPageToken?: string;
35807
+ /** Filter by the product types a coupon applies to; a coupon matches when it applies to any of them. Comma-separated, one or more of: roomBookings, eventSpaceBookings, conferenceRoomBookings, meetingRoomBookings, phoneBoothBookings, stationBookings, studioBookings, hotDeskBookings, dedicatedDeskBookings, officeBookings, parkingBookings, equipmentBookings, eventTickets, shopProducts, packages, subscriptionItems. */
35808
+ type?: string;
35879
35809
  }
35880
35810
  /** Query parameters for `sb.discounts.listRedemptions()`. */
35881
35811
  interface GetDiscountRedemptionsQuery {
35882
- /** The id of the coupon. Either couponRef or promocodeRef is required */
35812
+ /** UUID of the coupon whose redemptions to list. */
35883
35813
  couponRef?: string;
35884
- /** The id of the promocode. Either couponRef or promocodeRef is required */
35885
- promocodeRef?: string;
35886
- /** The number of items to return */
35814
+ /** Maximum number of discount redemptions per page. Defaults to 25 when omitted or invalid; values above 100 are capped at 100. */
35887
35815
  limit?: number;
35888
- /** Token to retrieve the next page of results. */
35816
+ /** Pagination token from nextPageToken in a previous response. Keep the same filters when fetching the next page. */
35889
35817
  nextPageToken?: string;
35818
+ /** UUID of the promocode whose redemptions to list. */
35819
+ promocodeRef?: string;
35890
35820
  }
35891
35821
  /** Query parameters for `sb.discounts.promocodes.list()`. */
35892
35822
  interface GetPromocodesQuery {
35893
- /** The id of the location. At least one of locationRef or couponRef is required */
35894
- locationRef?: string;
35895
- /** The id of the coupon. At least one of locationRef or couponRef is required */
35823
+ /** UUID of the coupon whose promocodes to list. */
35896
35824
  couponRef?: string;
35825
+ /** UUID of the location whose promocodes to list. Omit with couponRef to list promocodes across every location of the network. */
35826
+ locationRef?: string;
35897
35827
  }
35898
35828
  /** Request body for `sb.discounts.coupons.create()`. */
35899
35829
  type CreateCouponBody = NonNullable<NonNullable<operations["createCoupon"]["requestBody"]>["content"]["application/json"]["coupon"]>;
@@ -35914,32 +35844,25 @@ interface GetContractsQuery {
35914
35844
  "createDate[gte]"?: string;
35915
35845
  /** Filter contracts created on or before this date (ISO 8601). Use with createDate[gte] for a range. */
35916
35846
  "createDate[lte]"?: string;
35917
- /** UUID of the customer (membership or company). Provide customerRef or locationRef; when set, returns only that customer's contracts. */
35847
+ /** UUID of the customer (membership or company). When set, returns only that customer's contracts. */
35918
35848
  customerRef?: string;
35919
35849
  /** Maximum number of contracts per page. Defaults to 25 when omitted or invalid; values above 100 are capped at 100. */
35920
35850
  limit?: number;
35921
- /** UUID of the location. Provide customerRef or locationRef; when set, returns contracts in that location. */
35851
+ /** UUID of the location. When set, returns contracts in that location. Omit both locationRef and customerRef to list contracts across every location of the network. */
35922
35852
  locationRef?: string;
35923
35853
  /** Pagination token from nextPageToken in a previous response. Keep the same filters when fetching the next page. */
35924
35854
  nextPageToken?: string;
35925
- /** Case-insensitive search by contract title. Requires customerRef or locationRef to scope the search. */
35855
+ /** Case-insensitive search by contract title, within customerRef or locationRef when given and across the network otherwise. */
35926
35856
  q?: string;
35927
- /** Filter by contract status. Comma-separated values, e.g. `draft,issued`.
35928
-
35929
- Supported values:
35930
- - **draft** — created but not sent
35931
- - **issued** — sent, awaiting signature
35932
- - **signed** — active
35933
- - **declined** — rejected
35934
- - **terminated** — cancelled after signing */
35857
+ /** Filter by status: 'draft' created and not sent yet, 'issued' sent and waiting for signatures, 'signed' signed by everyone and active, 'declined' a signer declined it or it expired unsigned, 'terminated' ended by an admin after it was signed. Defaults to every status. Comma-separated, one or more of: draft, issued, signed, declined, terminated. */
35935
35858
  status?: string;
35936
35859
  }
35937
35860
  /** Query parameters for `sb.contracts.templates.list()`. */
35938
35861
  interface GetTemplatesQuery {
35939
35862
  /** Maximum number of templates per page. Defaults to 25 when omitted or invalid; values above 100 are capped at 100. */
35940
35863
  limit?: number;
35941
- /** UUID of the location. */
35942
- locationRef: string;
35864
+ /** UUID of the location whose templates to list. Omit to list templates across every location of the network. */
35865
+ locationRef?: string;
35943
35866
  /** Pagination token from nextPageToken in a previous response. Keep the same filters when fetching the next page. */
35944
35867
  nextPageToken?: string;
35945
35868
  }
@@ -36068,11 +35991,7 @@ interface GetCreditNotesQuery {
36068
35991
  locationRef?: string;
36069
35992
  /** Pagination token from nextPageToken in a previous response. Keep the same filters when fetching the next page. */
36070
35993
  nextPageToken?: string;
36071
- /** Filter by credit note status. Comma-separated values, e.g. `issued,voided`.
36072
-
36073
- Supported values:
36074
- - **issued** — active credit note
36075
- - **voided** — cancelled and no longer valid */
35994
+ /** Filter by credit note status: issued (in effect) or voided (cancelled and no longer valid). Comma-separated, one or more of: issued, voided. */
36076
35995
  status?: string;
36077
35996
  }
36078
35997
  /** Query parameters for `sb.billing.invoices.list()`. */
@@ -36099,13 +36018,7 @@ interface GetInvoicesQuery {
36099
36018
  nextPageToken?: string;
36100
36019
  /** Case-insensitive search by invoice code or number. Requires customerRef or locationRef. */
36101
36020
  q?: string;
36102
- /** Filter by invoice status. Comma-separated values, e.g. `draft,issued`.
36103
-
36104
- Supported values:
36105
- - **draft** — created but not sent
36106
- - **issued** — sent to the customer but unpaid
36107
- - **paid** — fully paid
36108
- - **voided** — cancelled and no longer valid */
36021
+ /** Filter by invoice status: draft (created but not sent), issued (sent to the customer but unpaid), paid (fully paid) or voided (cancelled and no longer valid). Comma-separated, one or more of: draft, issued, paid, voided. */
36109
36022
  status?: string;
36110
36023
  }
36111
36024
  /** Query parameters for `sb.billing.invoices.items.getUpcoming()`. */
@@ -36140,19 +36053,13 @@ interface ListInvoiceItemsQuery {
36140
36053
  locationRef?: string;
36141
36054
  /** Pagination token from nextPageToken in a previous response. Keep the same filters when fetching the next page. */
36142
36055
  nextPageToken?: string;
36143
- /** Filter by the status of the invoice the item is on. Items not on an invoice are excluded. Comma-separated values, e.g. `draft,issued`.
36144
-
36145
- Supported values:
36146
- - **draft** — created but not sent
36147
- - **issued** — sent to the customer but unpaid
36148
- - **paid** — fully paid
36149
- - **voided** — cancelled and no longer valid */
36056
+ /** Filter by the status of the invoice the item is on: draft (created but not sent), issued (sent to the customer but unpaid), paid (fully paid) or voided (cancelled and no longer valid). Items not on an invoice are excluded. Comma-separated, one or more of: draft, issued, paid, voided. */
36150
36057
  status?: string;
36151
36058
  /** UUID of the invoice whose items to list, in place of customerRef or locationRef or with them. Pages and sorts like the rest of the list, and the other filters still apply. */
36152
36059
  invoiceRef?: string;
36153
36060
  /** Filter by whether the item is pending: not on an invoice and not part of a subscription. Pass true or false. */
36154
36061
  pending?: "true" | "false";
36155
- /** Filter by invoice item type. Comma-separated values, e.g. `custom,order`. */
36062
+ /** Filter by invoice item type. Comma-separated, one or more of: creditPackage, custom, booking, eventTicket, subscription, order. */
36156
36063
  type?: string;
36157
36064
  }
36158
36065
  /** Request body for `sb.billing.creditNotes.create()`. */
@@ -36186,7 +36093,7 @@ type BenefitMedia = NonNullable<operations["createBenefitMedia"]["responses"][20
36186
36093
  interface GetBenefitApplicationsQuery {
36187
36094
  /** UUID of the benefit. */
36188
36095
  benefitRef?: string;
36189
- /** Comma-separated benefit category UUIDs, e.g. `uuid1,uuid2`. */
36096
+ /** Filter by the category of the benefit applied for: the IDs of benefit categories. Comma-separated, one or more UUIDs. */
36190
36097
  categoryRef?: string;
36191
36098
  /** Filter applications submitted on or after this date (ISO 8601). Use with createDate[lte] for a range. */
36192
36099
  "createDate[gte]"?: string;
@@ -36196,7 +36103,7 @@ interface GetBenefitApplicationsQuery {
36196
36103
  customerRef?: string;
36197
36104
  /** Maximum number of applications per page. Defaults to 25 when omitted or invalid; values above 100 are capped at 100. */
36198
36105
  limit?: number;
36199
- /** UUID of the location. */
36106
+ /** UUID of the location. Omit locationRef, benefitRef, customerRef and userRef to list applications across every location of the network. */
36200
36107
  locationRef?: string;
36201
36108
  /** Pagination token from nextPageToken in a previous response. Keep the same filters when fetching the next page. */
36202
36109
  nextPageToken?: string;
@@ -36205,8 +36112,8 @@ interface GetBenefitApplicationsQuery {
36205
36112
  }
36206
36113
  /** Query parameters for `sb.benefits.categories.list()`. */
36207
36114
  interface GetBenefitCategoriesQuery {
36208
- /** UUID of the location whose benefit categories to list. */
36209
- locationRef: string;
36115
+ /** UUID of the location whose benefit categories to list, in member-facing order. Omit to list the categories of every location of the network. */
36116
+ locationRef?: string;
36210
36117
  }
36211
36118
  /** Query parameters for `sb.benefits.list()`. */
36212
36119
  interface GetBenefitsQuery {
@@ -36216,7 +36123,7 @@ interface GetBenefitsQuery {
36216
36123
  featured?: boolean;
36217
36124
  /** Maximum number of benefits per page. Defaults to 25 when omitted or invalid; values above 100 are capped at 100. */
36218
36125
  limit?: number;
36219
- /** UUID of the location. */
36126
+ /** UUID of the location. Omit both locationRef and categoryRef to list benefits across every location of the network. */
36220
36127
  locationRef?: string;
36221
36128
  /** Pagination token from nextPageToken in a previous response. Keep the same filters when fetching the next page. */
36222
36129
  nextPageToken?: string;
@@ -36258,6 +36165,7 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
36258
36165
  searchQueryNext?: string;
36259
36166
  }>;
36260
36167
  iterate(query: Omit<GetAltCurrenciesQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<AltCurrency, void, undefined>;
36168
+ get(id: string, options?: SpacebringRequestOptions): Promise<AltCurrency>;
36261
36169
  create(altCurrency: CreateAltCurrencyBody, options?: SpacebringRequestOptions): Promise<AltCurrency>;
36262
36170
  update(id: string, altCurrency: UpdateAltCurrencyBody, options?: SpacebringRequestOptions): Promise<undefined>;
36263
36171
  delete(id: string, options?: SpacebringRequestOptions): Promise<undefined>;
@@ -36285,7 +36193,7 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
36285
36193
  create(application: ApplyBenefitBody, options?: SpacebringRequestOptions): Promise<Application>;
36286
36194
  };
36287
36195
  categories: {
36288
- list(query: GetBenefitCategoriesQuery, options?: SpacebringRequestOptions): Promise<BenefitCategory[]>;
36196
+ list(query?: GetBenefitCategoriesQuery, options?: SpacebringRequestOptions): Promise<BenefitCategory[]>;
36289
36197
  get(categoryId: string, options?: SpacebringRequestOptions): Promise<BenefitCategory>;
36290
36198
  create(category: CreateBenefitCategoryBody, options?: SpacebringRequestOptions): Promise<BenefitCategory>;
36291
36199
  update(categoryId: string, category: UpdateBenefitCategoryBody, options?: SpacebringRequestOptions): Promise<BenefitCategory>;
@@ -36406,12 +36314,12 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
36406
36314
  signContract(contractId: string, signerId: string, options?: SpacebringRequestOptions): Promise<undefined>;
36407
36315
  terminate(contractId: string, reason: TerminateContractBody, options?: SpacebringRequestOptions): Promise<undefined>;
36408
36316
  templates: {
36409
- list(query: GetTemplatesQuery, options?: SpacebringRequestOptions): Promise<{
36317
+ list(query?: GetTemplatesQuery, options?: SpacebringRequestOptions): Promise<{
36410
36318
  nextPageToken?: string;
36411
36319
  searchQueryNext?: string;
36412
36320
  templates: Template[];
36413
36321
  }>;
36414
- iterate(query: Omit<GetTemplatesQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<Template, void, undefined>;
36322
+ iterate(query?: Omit<GetTemplatesQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<Template, void, undefined>;
36415
36323
  get(templateId: string, options?: SpacebringRequestOptions): Promise<Template>;
36416
36324
  create(template: CreateTemplateBody, options?: SpacebringRequestOptions): Promise<Template>;
36417
36325
  update(templateId: string, template: UpdateTemplateBody, options?: SpacebringRequestOptions): Promise<undefined>;
@@ -36428,12 +36336,12 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
36428
36336
  searchQueryNext?: string;
36429
36337
  }>;
36430
36338
  coupons: {
36431
- list(query: GetCouponsQuery, options?: SpacebringRequestOptions): Promise<{
36339
+ list(query?: GetCouponsQuery, options?: SpacebringRequestOptions): Promise<{
36432
36340
  coupons?: Coupon[];
36433
36341
  nextPageToken?: string;
36434
36342
  searchQueryNext?: string;
36435
36343
  }>;
36436
- iterate(query: Omit<GetCouponsQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<Coupon, void, undefined>;
36344
+ iterate(query?: Omit<GetCouponsQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<Coupon, void, undefined>;
36437
36345
  get(id: string, options?: SpacebringRequestOptions): Promise<Coupon>;
36438
36346
  create(coupon: CreateCouponBody, options?: SpacebringRequestOptions): Promise<Coupon>;
36439
36347
  update(id: string, coupon: UpdateCouponBody, options?: SpacebringRequestOptions): Promise<undefined>;
@@ -36499,12 +36407,12 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
36499
36407
  delete(id: string, options?: SpacebringRequestOptions): Promise<undefined>;
36500
36408
  };
36501
36409
  guides: {
36502
- list(query: GetGuidesQuery, options?: SpacebringRequestOptions): Promise<{
36410
+ list(query?: GetGuidesQuery, options?: SpacebringRequestOptions): Promise<{
36503
36411
  guides: Guide[];
36504
36412
  nextPageToken?: string;
36505
36413
  searchQueryNext?: string;
36506
36414
  }>;
36507
- iterate(query: Omit<GetGuidesQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<Guide, void, undefined>;
36415
+ iterate(query?: Omit<GetGuidesQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<Guide, void, undefined>;
36508
36416
  get(guideId: string, options?: SpacebringRequestOptions): Promise<Guide>;
36509
36417
  create(guide: CreateGuideBody, options?: SpacebringRequestOptions): Promise<Guide>;
36510
36418
  update(guideId: string, guide: PatchGuideBody, options?: SpacebringRequestOptions): Promise<Guide>;
@@ -36520,12 +36428,12 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
36520
36428
  list(options?: SpacebringRequestOptions): Promise<Network[]>;
36521
36429
  };
36522
36430
  packages: {
36523
- list(query: GetPackagesQuery, options?: SpacebringRequestOptions): Promise<{
36431
+ list(query?: GetPackagesQuery, options?: SpacebringRequestOptions): Promise<{
36524
36432
  nextPageToken?: string;
36525
36433
  packages: Package[];
36526
36434
  searchQueryNext?: string;
36527
36435
  }>;
36528
- iterate(query: Omit<GetPackagesQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<Package, void, undefined>;
36436
+ iterate(query?: Omit<GetPackagesQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<Package, void, undefined>;
36529
36437
  create(packageBody: CreatePackageBody, options?: SpacebringRequestOptions): Promise<Package>;
36530
36438
  update(packageId: string, packageBody: PatchPackageBody, options?: SpacebringRequestOptions): Promise<undefined>;
36531
36439
  delete(packageId: string, options?: SpacebringRequestOptions): Promise<undefined>;
@@ -36541,8 +36449,6 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
36541
36449
  create(plan: CreatePlanBody, options?: SpacebringRequestOptions): Promise<Plan>;
36542
36450
  update(planId: string, plan: UpdatePlanBody, options?: SpacebringRequestOptions): Promise<undefined>;
36543
36451
  delete(planId: string, options?: SpacebringRequestOptions): Promise<undefined>;
36544
- deletePlans(planIds: DeletePlansBody, options?: SpacebringRequestOptions): Promise<undefined>;
36545
- patchPlans(plans: PatchPlansBody, options?: SpacebringRequestOptions): Promise<undefined>;
36546
36452
  };
36547
36453
  registrations: {
36548
36454
  list(query?: GetRegistrationsQuery, options?: SpacebringRequestOptions): Promise<{
@@ -36553,12 +36459,12 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
36553
36459
  iterate(query?: Omit<GetRegistrationsQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<Registration, void, undefined>;
36554
36460
  };
36555
36461
  resources: {
36556
- list(query: GetResourcesQuery, options?: SpacebringRequestOptions): Promise<{
36462
+ list(query?: GetResourcesQuery, options?: SpacebringRequestOptions): Promise<{
36557
36463
  nextPageToken?: string;
36558
36464
  resources: Resource[];
36559
36465
  searchQueryNext?: string;
36560
36466
  }>;
36561
- iterate(query: Omit<GetResourcesQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<Resource, void, undefined>;
36467
+ iterate(query?: Omit<GetResourcesQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<Resource, void, undefined>;
36562
36468
  get(resourceId: string, options?: SpacebringRequestOptions): Promise<Resource>;
36563
36469
  create(resource: CreateResourceBody, options?: SpacebringRequestOptions): Promise<Resource>;
36564
36470
  update(resourceId: string, resource: PatchResourceBody, options?: SpacebringRequestOptions): Promise<undefined>;
@@ -36818,4 +36724,4 @@ declare class SpacebringError extends Error {
36818
36724
  });
36819
36725
  }
36820
36726
 
36821
- export { type Activity, type AddEventHostsBody, type AltCurrency, type Application, type ApplyBenefitBody, type Assignment, type Attachment, type Balance, type Benefit, type BenefitCategory, type BenefitMedia, type Booking, type CheckIn, type CheckInBody, type CheckInVisitBody, type CheckOutBody, type CheckOutVisitBody, type Comment, type Company, type CompanyMedia, type Contact, type Contract, type Coupon, type CreateAltCurrencyBody, type CreateAssignmentBody, type CreateBenefitBody, type CreateBenefitCategoryBody, type CreateBenefitMediaBody, type CreateBookingBody, type CreateCompanyBody, type CreateCompanyMediaBody, type CreateContactBody, type CreateContractBody, type CreateCouponBody, type CreateCreditNoteBody, type CreateCreditsTransactionBody, type CreateDayPassesTransactionBody, type CreateEventBody, type CreateEventMediaBody, type CreateFeedPostBody, type CreateFeedPostCommentBody, type CreateFeedPostMediaBody, type CreateGuideAttachmentBody, type CreateGuideBody, type CreateGuideMediaBody, type CreateInvoiceBody, type CreateInvoiceItemBody, type CreateMembershipBody, type CreateMoneyTransactionBody, type CreatePackageBody, type CreatePlanBody, type CreateProductBody, type CreateProductMediaBody, type CreatePromocodeBody, type CreateRequestBody, type CreateResourceBody, type CreateResourceMediaBody, type CreateShopCategoryBody, type CreateSubscriptionBody, type CreateSubscriptionItemBody, type CreateSupportTicketBody, type CreateSupportTicketCommentBody, type CreateSupportTicketMediaBody, type CreateTemplateBody, type CreateTemplateMediaBody, type CreateVisitBody, type CreditNote, type CreditScheduledTransaction, type CreditTransaction, type DayPassScheduledTransaction, type DayPassTransaction, type DeletePlansBody, type Event, type EventMedia, type EventTicket, type FeedMedia, type GetAltCurrenciesQuery, type GetAssignmentsQuery, type GetBenefitApplicationsQuery, type GetBenefitCategoriesQuery, type GetBenefitsQuery, type GetBookingsQuery, type GetCheckInsQuery, type GetCompaniesQuery, type GetContactsQuery, type GetContractsQuery, type GetCouponsQuery, type GetCreditNotesQuery, type GetCreditsTransactionsQuery, type GetDayPassesTransactionsQuery, type GetDiscountRedemptionsQuery, type GetEventTicketsQuery, type GetEventsByOrganizationQuery, type GetFeedPostsQuery, type GetFloorsQuery, type GetGuidesQuery, type GetInvoicesQuery, type GetMembershipsDeletedQuery, type GetMembershipsQuery, type GetMoneyTransactionsQuery, type GetOrdersQuery, type GetPackagesQuery, type GetPlansQuery, type GetProductsQuery, type GetPromocodesQuery, type GetRegistrationsQuery, type GetRequestsQuery, type GetResourceAvailability, type GetResourceAvailabilityBody, type GetResourcesQuery, type GetScheduledCreditsTransactionsQuery, type GetScheduledDayPassesTransactionsQuery, type GetShopCategoriesQuery, type GetSubscriptionsQuery, type GetSupportTicketsQuery, type GetTemplatesQuery, type GetUpcomingInvoiceItemsQuery, type GetUpcomingInvoiceQuery, type GetVisitsQuery, type Guide, type GuideMedia, type Invoice, type InvoiceItem, type IssueContractBody, type IssueInvoiceBody, type Like, type ListInvoiceItemsQuery, type Location, type Membership, type MoneyTransaction, type Network, type Order, type Package, type PatchAssignmentBody, type PatchBookingBody, type PatchGuideBody, type PatchMoneyTransactionBody, type PatchPackageBody, type PatchPlansBody, type PatchResourceBody, type PayInvoiceBody, type Payment, type Plan, type Post, type PreviewCreditNoteBody, type Product, type ProductMedia, type Promocode, type Redemption, type Refund, type RefundMoneyTransactionBody, type Registration, type Request$1 as Request, type Resource, type ResourceMedia, type ShopCategory, Spacebring, type SpacebringConfig, SpacebringError, type SpacebringErrorBody, type SpacebringRequestOptions, type SpacebringResources, type Subscription, type SupportTicket, type Template, type TemplateMedia, type TerminateContractBody, type TicketMedia, type UpcomingItem, type UpdateAltCurrencyBody, type UpdateBenefitBody, type UpdateBenefitCategoryBody, type UpdateCompanyBody, type UpdateContractBody, type UpdateCouponBody, type UpdateCreditNoteBody, type UpdateEventBody, type UpdateEventTicketBody, type UpdateFeedPostBody, type UpdateInvoiceBody, type UpdateInvoiceItemBody, type UpdateMembershipBody, type UpdatePlanBody, type UpdateProductBody, type UpdateShopCategoryBody, type UpdateSubscriptionBody, type UpdateSubscriptionItemBody, type UpdateSupportTicketAssigneeBody, type UpdateSupportTicketCommentBody, type UpdateSupportTicketStatusBody, type UpdateSupportTicketTypeBody, type UpdateTemplateBody, type UpdateVisitBody, type Visit, type components, type operations, type paths };
36727
+ export { type Activity, type AddEventHostsBody, type AltCurrency, type Application, type ApplyBenefitBody, type Assignment, type Attachment, type Balance, type Benefit, type BenefitCategory, type BenefitMedia, type Booking, type CheckIn, type CheckInBody, type CheckInVisitBody, type CheckOutBody, type CheckOutVisitBody, type Comment, type Company, type CompanyMedia, type Contact, type Contract, type Coupon, type CreateAltCurrencyBody, type CreateAssignmentBody, type CreateBenefitBody, type CreateBenefitCategoryBody, type CreateBenefitMediaBody, type CreateBookingBody, type CreateCompanyBody, type CreateCompanyMediaBody, type CreateContactBody, type CreateContractBody, type CreateCouponBody, type CreateCreditNoteBody, type CreateCreditsTransactionBody, type CreateDayPassesTransactionBody, type CreateEventBody, type CreateEventMediaBody, type CreateFeedPostBody, type CreateFeedPostCommentBody, type CreateFeedPostMediaBody, type CreateGuideAttachmentBody, type CreateGuideBody, type CreateGuideMediaBody, type CreateInvoiceBody, type CreateInvoiceItemBody, type CreateMembershipBody, type CreateMoneyTransactionBody, type CreatePackageBody, type CreatePlanBody, type CreateProductBody, type CreateProductMediaBody, type CreatePromocodeBody, type CreateRequestBody, type CreateResourceBody, type CreateResourceMediaBody, type CreateShopCategoryBody, type CreateSubscriptionBody, type CreateSubscriptionItemBody, type CreateSupportTicketBody, type CreateSupportTicketCommentBody, type CreateSupportTicketMediaBody, type CreateTemplateBody, type CreateTemplateMediaBody, type CreateVisitBody, type CreditNote, type CreditScheduledTransaction, type CreditTransaction, type DayPassScheduledTransaction, type DayPassTransaction, type Event, type EventMedia, type EventTicket, type FeedMedia, type GetAltCurrenciesQuery, type GetAssignmentsQuery, type GetBenefitApplicationsQuery, type GetBenefitCategoriesQuery, type GetBenefitsQuery, type GetBookingsQuery, type GetCheckInsQuery, type GetCompaniesQuery, type GetContactsQuery, type GetContractsQuery, type GetCouponsQuery, type GetCreditNotesQuery, type GetCreditsTransactionsQuery, type GetDayPassesTransactionsQuery, type GetDiscountRedemptionsQuery, type GetEventTicketsQuery, type GetEventsByOrganizationQuery, type GetFeedPostsQuery, type GetFloorsQuery, type GetGuidesQuery, type GetInvoicesQuery, type GetMembershipsDeletedQuery, type GetMembershipsQuery, type GetMoneyTransactionsQuery, type GetOrdersQuery, type GetPackagesQuery, type GetPlansQuery, type GetProductsQuery, type GetPromocodesQuery, type GetRegistrationsQuery, type GetRequestsQuery, type GetResourceAvailability, type GetResourceAvailabilityBody, type GetResourcesQuery, type GetScheduledCreditsTransactionsQuery, type GetScheduledDayPassesTransactionsQuery, type GetShopCategoriesQuery, type GetSubscriptionsQuery, type GetSupportTicketsQuery, type GetTemplatesQuery, type GetUpcomingInvoiceItemsQuery, type GetUpcomingInvoiceQuery, type GetVisitsQuery, type Guide, type GuideMedia, type Invoice, type InvoiceItem, type IssueContractBody, type IssueInvoiceBody, type Like, type ListInvoiceItemsQuery, type Location, type Membership, type MoneyTransaction, type Network, type Order, type Package, type PatchAssignmentBody, type PatchBookingBody, type PatchGuideBody, type PatchMoneyTransactionBody, type PatchPackageBody, type PatchResourceBody, type PayInvoiceBody, type Payment, type Plan, type Post, type PreviewCreditNoteBody, type Product, type ProductMedia, type Promocode, type Redemption, type Refund, type RefundMoneyTransactionBody, type Registration, type Request$1 as Request, type Resource, type ResourceMedia, type ShopCategory, Spacebring, type SpacebringConfig, SpacebringError, type SpacebringErrorBody, type SpacebringRequestOptions, type SpacebringResources, type Subscription, type SupportTicket, type Template, type TemplateMedia, type TerminateContractBody, type TicketMedia, type UpcomingItem, type UpdateAltCurrencyBody, type UpdateBenefitBody, type UpdateBenefitCategoryBody, type UpdateCompanyBody, type UpdateContractBody, type UpdateCouponBody, type UpdateCreditNoteBody, type UpdateEventBody, type UpdateEventTicketBody, type UpdateFeedPostBody, type UpdateInvoiceBody, type UpdateInvoiceItemBody, type UpdateMembershipBody, type UpdatePlanBody, type UpdateProductBody, type UpdateShopCategoryBody, type UpdateSubscriptionBody, type UpdateSubscriptionItemBody, type UpdateSupportTicketAssigneeBody, type UpdateSupportTicketCommentBody, type UpdateSupportTicketStatusBody, type UpdateSupportTicketTypeBody, type UpdateTemplateBody, type UpdateVisitBody, type Visit, type components, type operations, type paths };