@izak0s/spacebring-api 1.13.0 → 2.1.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.ts CHANGED
@@ -1004,7 +1004,11 @@ interface paths {
1004
1004
  delete: operations["deleteContract"];
1005
1005
  options?: never;
1006
1006
  head?: never;
1007
- patch?: never;
1007
+ /**
1008
+ * Update a contract
1009
+ * @description Update a contract. <h3>OAuth</h3>Required scopes: <code>invoices</code>
1010
+ */
1011
+ patch: operations["updateContract"];
1008
1012
  trace?: never;
1009
1013
  };
1010
1014
  "/contracts/v1/{contractId}/issue": {
@@ -1027,6 +1031,66 @@ interface paths {
1027
1031
  patch?: never;
1028
1032
  trace?: never;
1029
1033
  };
1034
+ "/contracts/v1/{contractId}/resend": {
1035
+ parameters: {
1036
+ query?: never;
1037
+ header?: never;
1038
+ path?: never;
1039
+ cookie?: never;
1040
+ };
1041
+ get?: never;
1042
+ put?: never;
1043
+ /**
1044
+ * Resend a contract
1045
+ * @description Resend the signature request email to the next pending signer of an issued eSignature contract. <h3>OAuth</h3>Required scopes: <code>invoices</code>
1046
+ */
1047
+ post: operations["resendContract"];
1048
+ delete?: never;
1049
+ options?: never;
1050
+ head?: never;
1051
+ patch?: never;
1052
+ trace?: never;
1053
+ };
1054
+ "/contracts/v1/{contractId}/signers/{signerId}/decline": {
1055
+ parameters: {
1056
+ query?: never;
1057
+ header?: never;
1058
+ path?: never;
1059
+ cookie?: never;
1060
+ };
1061
+ get?: never;
1062
+ /**
1063
+ * Decline a contract
1064
+ * @description Mark a contract signer as declined. Declining also declines the contract. <h3>OAuth</h3>Required scopes: <code>invoices</code>
1065
+ */
1066
+ put: operations["declineContract"];
1067
+ post?: never;
1068
+ delete?: never;
1069
+ options?: never;
1070
+ head?: never;
1071
+ patch?: never;
1072
+ trace?: never;
1073
+ };
1074
+ "/contracts/v1/{contractId}/signers/{signerId}/sign": {
1075
+ parameters: {
1076
+ query?: never;
1077
+ header?: never;
1078
+ path?: never;
1079
+ cookie?: never;
1080
+ };
1081
+ get?: never;
1082
+ /**
1083
+ * Sign a contract
1084
+ * @description Mark a contract signer as signed. When all signers have signed, the contract becomes signed. <h3>OAuth</h3>Required scopes: <code>invoices</code>
1085
+ */
1086
+ put: operations["signContract"];
1087
+ post?: never;
1088
+ delete?: never;
1089
+ options?: never;
1090
+ head?: never;
1091
+ patch?: never;
1092
+ trace?: never;
1093
+ };
1030
1094
  "/contracts/v1/{contractId}/terminate": {
1031
1095
  parameters: {
1032
1096
  query?: never;
@@ -1047,7 +1111,79 @@ interface paths {
1047
1111
  patch: operations["terminateContract"];
1048
1112
  trace?: never;
1049
1113
  };
1050
- "/discounts/coupons/v1": {
1114
+ "/contracts/templates/v1": {
1115
+ parameters: {
1116
+ query?: never;
1117
+ header?: never;
1118
+ path?: never;
1119
+ cookie?: never;
1120
+ };
1121
+ /**
1122
+ * Retrieve templates
1123
+ * @description Retrieve all contract templates in the location. <h3>OAuth</h3>Required scopes: <code>invoices.readonly</code> or <code>invoices</code>
1124
+ */
1125
+ get: operations["getTemplates"];
1126
+ put?: never;
1127
+ /**
1128
+ * Create a template
1129
+ * @description Create a contract template from an uploaded file. <h3>OAuth</h3>Required scopes: <code>invoices</code>
1130
+ */
1131
+ post: operations["createTemplate"];
1132
+ delete?: never;
1133
+ options?: never;
1134
+ head?: never;
1135
+ patch?: never;
1136
+ trace?: never;
1137
+ };
1138
+ "/contracts/templates/v1/{templateId}": {
1139
+ parameters: {
1140
+ query?: never;
1141
+ header?: never;
1142
+ path?: never;
1143
+ cookie?: never;
1144
+ };
1145
+ /**
1146
+ * Retrieve a template
1147
+ * @description Retrieve a contract template. <h3>OAuth</h3>Required scopes: <code>invoices.readonly</code> or <code>invoices</code>
1148
+ */
1149
+ get: operations["getTemplate"];
1150
+ put?: never;
1151
+ post?: never;
1152
+ /**
1153
+ * Delete a template
1154
+ * @description Delete a contract template. <h3>OAuth</h3>Required scopes: <code>invoices</code>
1155
+ */
1156
+ delete: operations["deleteTemplate"];
1157
+ options?: never;
1158
+ head?: never;
1159
+ /**
1160
+ * Update a template
1161
+ * @description Update a contract template. <h3>OAuth</h3>Required scopes: <code>invoices</code>
1162
+ */
1163
+ patch: operations["updateTemplate"];
1164
+ trace?: never;
1165
+ };
1166
+ "/contracts/templates/v1/{templateId}/duplicate": {
1167
+ parameters: {
1168
+ query?: never;
1169
+ header?: never;
1170
+ path?: never;
1171
+ cookie?: never;
1172
+ };
1173
+ get?: never;
1174
+ put?: never;
1175
+ /**
1176
+ * Duplicate a template
1177
+ * @description Duplicate a contract template, creating a copy with the same title and file. <h3>OAuth</h3>Required scopes: <code>invoices</code>
1178
+ */
1179
+ post: operations["duplicateTemplate"];
1180
+ delete?: never;
1181
+ options?: never;
1182
+ head?: never;
1183
+ patch?: never;
1184
+ trace?: never;
1185
+ };
1186
+ "/discounts/v1/coupons": {
1051
1187
  parameters: {
1052
1188
  query?: never;
1053
1189
  header?: never;
@@ -1071,7 +1207,7 @@ interface paths {
1071
1207
  patch?: never;
1072
1208
  trace?: never;
1073
1209
  };
1074
- "/discounts/coupons/v1/{id}": {
1210
+ "/discounts/v1/coupons/{id}": {
1075
1211
  parameters: {
1076
1212
  query?: never;
1077
1213
  header?: never;
@@ -1099,7 +1235,7 @@ interface paths {
1099
1235
  patch: operations["updateCoupon"];
1100
1236
  trace?: never;
1101
1237
  };
1102
- "/discounts/promocodes/v1": {
1238
+ "/discounts/v1/promocodes": {
1103
1239
  parameters: {
1104
1240
  query?: never;
1105
1241
  header?: never;
@@ -1123,7 +1259,7 @@ interface paths {
1123
1259
  patch?: never;
1124
1260
  trace?: never;
1125
1261
  };
1126
- "/discounts/promocodes/v1/{id}": {
1262
+ "/discounts/v1/promocodes/{id}": {
1127
1263
  parameters: {
1128
1264
  query?: never;
1129
1265
  header?: never;
@@ -1143,7 +1279,7 @@ interface paths {
1143
1279
  patch?: never;
1144
1280
  trace?: never;
1145
1281
  };
1146
- "/discounts/promocodes/v1/{id}/archive": {
1282
+ "/discounts/v1/promocodes/{id}/archive": {
1147
1283
  parameters: {
1148
1284
  query?: never;
1149
1285
  header?: never;
@@ -1163,7 +1299,7 @@ interface paths {
1163
1299
  patch?: never;
1164
1300
  trace?: never;
1165
1301
  };
1166
- "/discounts/redemptions/v1": {
1302
+ "/discounts/v1/redemptions": {
1167
1303
  parameters: {
1168
1304
  query?: never;
1169
1305
  header?: never;
@@ -1219,7 +1355,11 @@ interface paths {
1219
1355
  * @description Retrieve an event. <h3>OAuth</h3>Required scopes: <code>events</code>
1220
1356
  */
1221
1357
  get: operations["getEvent"];
1222
- put?: never;
1358
+ /**
1359
+ * Update an event
1360
+ * @description Update an event. <h3>OAuth</h3>Required scopes: <code>events</code>
1361
+ */
1362
+ put: operations["updateEvent"];
1223
1363
  post?: never;
1224
1364
  /**
1225
1365
  * Delete an event
@@ -1271,6 +1411,26 @@ interface paths {
1271
1411
  patch?: never;
1272
1412
  trace?: never;
1273
1413
  };
1414
+ "/events/v1/{id}/hosts": {
1415
+ parameters: {
1416
+ query?: never;
1417
+ header?: never;
1418
+ path?: never;
1419
+ cookie?: never;
1420
+ };
1421
+ get?: never;
1422
+ /**
1423
+ * Add event hosts
1424
+ * @description Add hosts to an event. Creates a free host ticket for each membership without one; existing attendee tickets are switched to the host role. Returns all tickets of the event. <h3>OAuth</h3>Required scopes: <code>events</code>
1425
+ */
1426
+ put: operations["addEventHosts"];
1427
+ post?: never;
1428
+ delete?: never;
1429
+ options?: never;
1430
+ head?: never;
1431
+ patch?: never;
1432
+ trace?: never;
1433
+ };
1274
1434
  "/events/tickets/v1": {
1275
1435
  parameters: {
1276
1436
  query?: never;
@@ -1303,8 +1463,36 @@ interface paths {
1303
1463
  * @description Retrieve an event ticket. <h3>OAuth</h3>Required scopes: <code>events.readonly</code> or <code>events</code>
1304
1464
  */
1305
1465
  get: operations["getEventTicket"];
1306
- put?: never;
1466
+ /**
1467
+ * Update a ticket
1468
+ * @description Update an event ticket. Only the ticket role can be changed. <h3>OAuth</h3>Required scopes: <code>events</code>
1469
+ */
1470
+ put: operations["updateEventTicket"];
1307
1471
  post?: never;
1472
+ /**
1473
+ * Delete a ticket
1474
+ * @description Delete an event ticket. Returns the deleted ticket. <h3>OAuth</h3>Required scopes: <code>events</code>
1475
+ */
1476
+ delete: operations["deleteEventTicket"];
1477
+ options?: never;
1478
+ head?: never;
1479
+ patch?: never;
1480
+ trace?: never;
1481
+ };
1482
+ "/events/tickets/v1/{id}/checkin": {
1483
+ parameters: {
1484
+ query?: never;
1485
+ header?: never;
1486
+ path?: never;
1487
+ cookie?: never;
1488
+ };
1489
+ get?: never;
1490
+ put?: never;
1491
+ /**
1492
+ * Check in a ticket
1493
+ * @description Check in an event ticket. Fails if the ticket is already checked in. <h3>OAuth</h3>Required scopes: <code>events</code>
1494
+ */
1495
+ post: operations["checkInEventTicket"];
1308
1496
  delete?: never;
1309
1497
  options?: never;
1310
1498
  head?: never;
@@ -1627,6 +1815,54 @@ interface paths {
1627
1815
  patch?: never;
1628
1816
  trace?: never;
1629
1817
  };
1818
+ "/packages/v1": {
1819
+ parameters: {
1820
+ query?: never;
1821
+ header?: never;
1822
+ path?: never;
1823
+ cookie?: never;
1824
+ };
1825
+ /**
1826
+ * Retrieve packages
1827
+ * @description Retrieve all packages in the location. <h3>OAuth</h3>Required scopes: <code>invoices.readonly</code> or <code>invoices</code>
1828
+ */
1829
+ get: operations["getPackages"];
1830
+ put?: never;
1831
+ /**
1832
+ * Create a package
1833
+ * @description Create a package. <h3>OAuth</h3>Required scopes: <code>invoices</code>
1834
+ */
1835
+ post: operations["createPackage"];
1836
+ delete?: never;
1837
+ options?: never;
1838
+ head?: never;
1839
+ patch?: never;
1840
+ trace?: never;
1841
+ };
1842
+ "/packages/v1/{packageId}": {
1843
+ parameters: {
1844
+ query?: never;
1845
+ header?: never;
1846
+ path?: never;
1847
+ cookie?: never;
1848
+ };
1849
+ get?: never;
1850
+ put?: never;
1851
+ post?: never;
1852
+ /**
1853
+ * Delete a package
1854
+ * @description Delete a package. <h3>OAuth</h3>Required scopes: <code>invoices</code>
1855
+ */
1856
+ delete: operations["deletePackage"];
1857
+ options?: never;
1858
+ head?: never;
1859
+ /**
1860
+ * Update a package
1861
+ * @description Update a package. <h3>OAuth</h3>Required scopes: <code>invoices</code>
1862
+ */
1863
+ patch: operations["patchPackage"];
1864
+ trace?: never;
1865
+ };
1630
1866
  "/plans/v1": {
1631
1867
  parameters: {
1632
1868
  query?: never;
@@ -5988,6 +6224,88 @@ interface components {
5988
6224
  };
5989
6225
  };
5990
6226
  };
6227
+ getTemplates: {
6228
+ /** @description Pagination token to fetch the next page of results. */
6229
+ nextPageToken?: string;
6230
+ /** @description Search query parameters for the next page of results. Includes all filters used to fetch the current page. */
6231
+ searchQueryNext?: string;
6232
+ /** @description List of templates. */
6233
+ templates: {
6234
+ /**
6235
+ * Format: date-time
6236
+ * @description ISO timestamp of when the template was created.
6237
+ */
6238
+ createDate: string;
6239
+ /** @description Template file reference. */
6240
+ file: {
6241
+ /** @description Storage key of the template file. */
6242
+ key: string;
6243
+ /** @description Download URL of the template file. */
6244
+ url: string;
6245
+ };
6246
+ /**
6247
+ * Format: uuid
6248
+ * @description Unique identifier of the template.
6249
+ */
6250
+ id: string;
6251
+ /**
6252
+ * Format: uuid
6253
+ * @description ID of the location this template belongs to.
6254
+ */
6255
+ locationRef: string;
6256
+ /** @description Media files associated with the template. */
6257
+ media: {
6258
+ key: string;
6259
+ url: string;
6260
+ }[];
6261
+ /** @description Template title. */
6262
+ title: string;
6263
+ /**
6264
+ * Format: date-time
6265
+ * @description ISO timestamp of when the template was last updated.
6266
+ */
6267
+ updateDate: string;
6268
+ }[];
6269
+ };
6270
+ getTemplate: {
6271
+ /** @description The template. */
6272
+ template: {
6273
+ /**
6274
+ * Format: date-time
6275
+ * @description ISO timestamp of when the template was created.
6276
+ */
6277
+ createDate: string;
6278
+ /** @description Template file reference. */
6279
+ file: {
6280
+ /** @description Storage key of the template file. */
6281
+ key: string;
6282
+ /** @description Download URL of the template file. */
6283
+ url: string;
6284
+ };
6285
+ /**
6286
+ * Format: uuid
6287
+ * @description Unique identifier of the template.
6288
+ */
6289
+ id: string;
6290
+ /**
6291
+ * Format: uuid
6292
+ * @description ID of the location this template belongs to.
6293
+ */
6294
+ locationRef: string;
6295
+ /** @description Media files associated with the template. */
6296
+ media: {
6297
+ key: string;
6298
+ url: string;
6299
+ }[];
6300
+ /** @description Template title. */
6301
+ title: string;
6302
+ /**
6303
+ * Format: date-time
6304
+ * @description ISO timestamp of when the template was last updated.
6305
+ */
6306
+ updateDate: string;
6307
+ };
6308
+ };
5991
6309
  coupon: {
5992
6310
  /** @description Fixed discount amount. */
5993
6311
  amountOff?: number | null;
@@ -7277,27 +7595,151 @@ interface components {
7277
7595
  id?: string;
7278
7596
  title?: string;
7279
7597
  };
7280
- getPlans: {
7598
+ getPackages: {
7281
7599
  /** @description Pagination token to fetch the next page of results. */
7282
7600
  nextPageToken?: string;
7283
- /** @description List of plans. */
7284
- plans: {
7285
- /** @description Third-party access integrations configured for the plan. */
7286
- access?: {
7287
- /** @description Avigilon Alta access group reference. */
7288
- avigilonAltaGroupRef?: number;
7289
- /** @description Brivo access group reference. */
7290
- brivoGroupRef?: number;
7291
- /** @description Kisi access group reference. */
7292
- kisiGroupRef?: number;
7601
+ /** @description List of packages. */
7602
+ packages: {
7603
+ /**
7604
+ * @deprecated
7605
+ * @description Total credits amount derived from grants. Deprecated: use grants instead.
7606
+ */
7607
+ amount: number;
7608
+ /**
7609
+ * @deprecated
7610
+ * @description Maximum credit grant duration in days. Deprecated: use grants instead.
7611
+ */
7612
+ duration?: 30 | 90 | 180 | 365;
7613
+ /** @description Grants included in the package. */
7614
+ grants: {
7615
+ /** @description Grant amount in major units for credits, or whole units for day passes. */
7616
+ amount: number;
7617
+ /** @description Expiration duration in days for credit grants. */
7618
+ duration?: 30 | 90 | 180 | 365;
7293
7619
  /**
7294
7620
  * Format: uuid
7295
- * @description Salto KS access group reference.
7621
+ * @description Unique identifier of the grant.
7296
7622
  */
7297
- saltoksAccessGroupRef?: string;
7623
+ id: string;
7298
7624
  /**
7299
- * Format: uuid
7300
- * @description Tapkey access group reference.
7625
+ * @description Type of balance this grant provides.
7626
+ * @enum {string}
7627
+ */
7628
+ type: "credits" | "dayPasses";
7629
+ }[];
7630
+ /**
7631
+ * Format: uuid
7632
+ * @description Unique identifier of the package.
7633
+ */
7634
+ id: string;
7635
+ /**
7636
+ * Format: uuid
7637
+ * @description ID of the location this package belongs to.
7638
+ */
7639
+ locationRef: string;
7640
+ /**
7641
+ * Format: uuid
7642
+ * @description ID of the network this package belongs to.
7643
+ */
7644
+ networkRef: string;
7645
+ /**
7646
+ * Format: uuid
7647
+ * @deprecated
7648
+ * @description ID of the location this package belongs to. Deprecated: use locationRef instead.
7649
+ */
7650
+ organizationRef: string;
7651
+ /** @description Package list price in major units. */
7652
+ price: number;
7653
+ /**
7654
+ * @deprecated
7655
+ * @description Discounted price visible to members. Deprecated: equals price since 4.8.15.
7656
+ */
7657
+ priceDiscounted: number;
7658
+ }[];
7659
+ /** @description Search query parameters for the next page of results. Includes all filters used to fetch the current page. */
7660
+ searchQueryNext?: string;
7661
+ };
7662
+ getPackage: {
7663
+ /** @description The package. */
7664
+ package: {
7665
+ /**
7666
+ * @deprecated
7667
+ * @description Total credits amount derived from grants. Deprecated: use grants instead.
7668
+ */
7669
+ amount: number;
7670
+ /**
7671
+ * @deprecated
7672
+ * @description Maximum credit grant duration in days. Deprecated: use grants instead.
7673
+ */
7674
+ duration?: 30 | 90 | 180 | 365;
7675
+ /** @description Grants included in the package. */
7676
+ grants: {
7677
+ /** @description Grant amount in major units for credits, or whole units for day passes. */
7678
+ amount: number;
7679
+ /** @description Expiration duration in days for credit grants. */
7680
+ duration?: 30 | 90 | 180 | 365;
7681
+ /**
7682
+ * Format: uuid
7683
+ * @description Unique identifier of the grant.
7684
+ */
7685
+ id: string;
7686
+ /**
7687
+ * @description Type of balance this grant provides.
7688
+ * @enum {string}
7689
+ */
7690
+ type: "credits" | "dayPasses";
7691
+ }[];
7692
+ /**
7693
+ * Format: uuid
7694
+ * @description Unique identifier of the package.
7695
+ */
7696
+ id: string;
7697
+ /**
7698
+ * Format: uuid
7699
+ * @description ID of the location this package belongs to.
7700
+ */
7701
+ locationRef: string;
7702
+ /**
7703
+ * Format: uuid
7704
+ * @description ID of the network this package belongs to.
7705
+ */
7706
+ networkRef: string;
7707
+ /**
7708
+ * Format: uuid
7709
+ * @deprecated
7710
+ * @description ID of the location this package belongs to. Deprecated: use locationRef instead.
7711
+ */
7712
+ organizationRef: string;
7713
+ /** @description Package list price in major units. */
7714
+ price: number;
7715
+ /**
7716
+ * @deprecated
7717
+ * @description Discounted price visible to members. Deprecated: equals price since 4.8.15.
7718
+ */
7719
+ priceDiscounted: number;
7720
+ };
7721
+ };
7722
+ getPlans: {
7723
+ /** @description Pagination token to fetch the next page of results. */
7724
+ nextPageToken?: string;
7725
+ /** @description List of plans. */
7726
+ plans: {
7727
+ /** @description Third-party access integrations configured for the plan. */
7728
+ access?: {
7729
+ /** @description Avigilon Alta access group reference. */
7730
+ avigilonAltaGroupRef?: number;
7731
+ /** @description Brivo access group reference. */
7732
+ brivoGroupRef?: number;
7733
+ /** @description Kisi access group reference. */
7734
+ kisiGroupRef?: number;
7735
+ /**
7736
+ * Format: uuid
7737
+ * @description Salto KS access group reference.
7738
+ */
7739
+ saltoksAccessGroupRef?: string;
7740
+ /**
7741
+ * Format: uuid
7742
+ * @description Tapkey access group reference.
7301
7743
  */
7302
7744
  tapkeyGroupRef?: string;
7303
7745
  };
@@ -7850,8 +8292,6 @@ interface components {
7850
8292
  /** @description Whether the admin can access support tools. */
7851
8293
  support: boolean;
7852
8294
  };
7853
- /** @description ISO timestamp or date when privacy consent was given. */
7854
- privacyConsentDate?: string;
7855
8295
  /**
7856
8296
  * @description Role of the user in the network.
7857
8297
  * @enum {string}
@@ -13179,7 +13619,7 @@ interface components {
13179
13619
  invoiceRef: string;
13180
13620
  /** @description Line items to credit. */
13181
13621
  lines: {
13182
- /** @description Amount to credit in major units. */
13622
+ /** @description Share of the invoice item pre-discount total to credit in major units; discounts are prorated and exclusive tax is added on top. */
13183
13623
  amount?: number;
13184
13624
  /**
13185
13625
  * Format: uuid
@@ -13247,7 +13687,7 @@ interface components {
13247
13687
  invoiceRef: string;
13248
13688
  /** @description Line items to credit. */
13249
13689
  lines: {
13250
- /** @description Amount to credit in major units. */
13690
+ /** @description Share of the invoice item pre-discount total to credit in major units; discounts are prorated and exclusive tax is added on top. */
13251
13691
  amount?: number;
13252
13692
  /**
13253
13693
  * Format: uuid
@@ -13455,6 +13895,104 @@ interface components {
13455
13895
  };
13456
13896
  };
13457
13897
  };
13898
+ updateContract: {
13899
+ content: {
13900
+ "application/json": {
13901
+ /** @description Contract fields to update. */
13902
+ contract: {
13903
+ /** @description Whether the contract triggers a billing action when signed. */
13904
+ actionable?: boolean;
13905
+ /**
13906
+ * Format: date-time
13907
+ * @description Date after which the contract can no longer be signed.
13908
+ */
13909
+ expirationDate?: string;
13910
+ /** @description Line items included in this contract. */
13911
+ items?: {
13912
+ /**
13913
+ * Format: uuid
13914
+ * @description Applied coupon ID.
13915
+ */
13916
+ couponRef?: string;
13917
+ /** @description Whether this is a one-off item. */
13918
+ oneOff?: boolean;
13919
+ /**
13920
+ * Format: uuid
13921
+ * @description Shop product option ID.
13922
+ */
13923
+ optionRef?: string;
13924
+ /**
13925
+ * Format: uuid
13926
+ * @description Membership plan ID.
13927
+ */
13928
+ planRef?: string;
13929
+ /** @description Item price override. */
13930
+ price?: number;
13931
+ /**
13932
+ * Format: uuid
13933
+ * @description Shop product ID.
13934
+ */
13935
+ productRef?: string;
13936
+ /** @description Number of units. */
13937
+ quantity: number;
13938
+ /**
13939
+ * Format: uuid
13940
+ * @description Resource ID.
13941
+ */
13942
+ resourceRef?: string;
13943
+ /**
13944
+ * Format: uuid
13945
+ * @description Plan tier ID.
13946
+ */
13947
+ tierRef?: string;
13948
+ /** @description Display name of the item. */
13949
+ title: string;
13950
+ /**
13951
+ * @description Item type.
13952
+ * @enum {string}
13953
+ */
13954
+ type: "plan" | "resource" | "oneOff";
13955
+ }[];
13956
+ /**
13957
+ * Format: uuid
13958
+ * @description ID of the template to use for this contract.
13959
+ */
13960
+ templateRef?: string;
13961
+ /**
13962
+ * Format: date-time
13963
+ * @description Contract end date.
13964
+ */
13965
+ endDate?: string | null;
13966
+ /** @description Updated signers list. */
13967
+ signers?: {
13968
+ /** @description Signer email address. */
13969
+ email?: string;
13970
+ /**
13971
+ * Format: uuid
13972
+ * @description Signer ID (to identify existing signers).
13973
+ */
13974
+ id?: string;
13975
+ /** @description Signer first name. */
13976
+ name?: string;
13977
+ /** @description Phone number. */
13978
+ phoneNumber?: string;
13979
+ /** @description Signer last name. */
13980
+ surname?: string;
13981
+ /**
13982
+ * @description Whether this is a location or customer signer.
13983
+ * @enum {string}
13984
+ */
13985
+ type?: "location" | "customer";
13986
+ }[];
13987
+ /**
13988
+ * Format: date-time
13989
+ * @description Contract start date.
13990
+ */
13991
+ startDate?: string | null;
13992
+ };
13993
+ };
13994
+ };
13995
+ };
13458
13996
  issueContract: {
13459
13997
  content: {
13460
13998
  "application/json": {
@@ -13477,6 +14015,43 @@ interface components {
13477
14015
  };
13478
14016
  };
13479
14017
  };
14018
+ createTemplate: {
14019
+ content: {
14020
+ "application/json": {
14021
+ /** @description Template to create. */
14022
+ template: {
14023
+ /** @description Template file reference. */
14024
+ file: {
14025
+ /** @description Storage key of the template file. */
14026
+ key: string;
14027
+ };
14028
+ /**
14029
+ * Format: uuid
14030
+ * @description ID of the location this template belongs to.
14031
+ */
14032
+ locationRef: string;
14033
+ /** @description Template title. */
14034
+ title: string;
14035
+ };
14036
+ };
14037
+ };
14038
+ };
14039
+ updateTemplate: {
14040
+ content: {
14041
+ "application/json": {
14042
+ /** @description Template fields to update. */
14043
+ template: {
14044
+ /** @description Template file reference. */
14045
+ file?: {
14046
+ /** @description Storage key of the template file. */
14047
+ key: string;
14048
+ };
14049
+ /** @description Template title. */
14050
+ title?: string;
14051
+ };
14052
+ };
14053
+ };
14054
+ };
13480
14055
  createCoupon: {
13481
14056
  content: {
13482
14057
  "application/json": {
@@ -13683,34 +14258,126 @@ interface components {
13683
14258
  };
13684
14259
  };
13685
14260
  };
13686
- createFeedPost: {
14261
+ updateEvent: {
13687
14262
  content: {
13688
14263
  "application/json": {
13689
- /** @description Feed post to create. */
13690
- post: {
14264
+ /** @description Event to update. */
14265
+ event: {
14266
+ /**
14267
+ * @description Event application type. purchase: paid signup (requires price). none: free/RSVP-style.
14268
+ * @enum {string}
14269
+ */
14270
+ applicationType?: "purchase" | "none";
14271
+ /** @description Confirmation email settings. */
14272
+ confirmationEmail?: {
14273
+ /** @description Whether a confirmation email is sent after registration. */
14274
+ enabled: boolean;
14275
+ /** @description HTML template for the confirmation email. */
14276
+ template?: string;
14277
+ };
14278
+ /** @description Custom tax settings. */
14279
+ customTax?: {
14280
+ /** @description Whether custom tax is enabled. */
14281
+ enabled: boolean;
14282
+ /** @description Custom tax rate as a decimal. */
14283
+ rate: number;
14284
+ };
14285
+ /** @description Full description of the event. */
14286
+ description?: string;
14287
+ /**
14288
+ * Format: date-time
14289
+ * @description ISO timestamp of when the event ends.
14290
+ */
14291
+ endDate: string;
14292
+ /** @description Limited attendees settings. */
14293
+ limitedAttendees?: {
14294
+ /** @description Whether attendee capacity is limited. */
14295
+ enabled: boolean;
14296
+ /** @description Maximum number of attendees when limited. */
14297
+ limit?: number;
14298
+ };
13691
14299
  /**
13692
14300
  * Format: uuid
13693
- * @description ID of the location where the post is created.
14301
+ * @description ID of the location where the event is hosted.
13694
14302
  */
13695
14303
  locationRef: string;
13696
- /** @description Media files to attach to the post. */
14304
+ /** @description Media files attached to the event. */
13697
14305
  media?: {
13698
14306
  /** @description Storage key of the media file. */
13699
- key: string;
14307
+ key?: string;
14308
+ /** @description Public URL of the media file. */
14309
+ url?: string;
13700
14310
  }[];
13701
- /** @description Open Graph metadata for link previews. */
13702
- og?: {
13703
- /** @description Open Graph description. */
13704
- description?: string | null;
13705
- /** @description Open Graph image URL. */
13706
- image?: string | null;
13707
- /** @description Open Graph title. */
13708
- title?: string | null;
13709
- /** @description Open Graph type. */
13710
- type?: string | null;
13711
- /**
13712
- * Format: uri
13713
- * @description Open Graph URL.
14311
+ /** @description Pricing options for the event. Can enable credits, money, or both. */
14312
+ price?: {
14313
+ /** @description Credits pricing. */
14314
+ credits?: {
14315
+ /** @description Ticket price in credits. */
14316
+ amount: number;
14317
+ /** @description Whether credits payment is enabled. */
14318
+ enabled: boolean;
14319
+ };
14320
+ /** @description Money pricing. */
14321
+ money?: {
14322
+ /** @description Ticket price in money. */
14323
+ amount: number;
14324
+ /** @description Whether money payment is enabled. */
14325
+ enabled: boolean;
14326
+ };
14327
+ };
14328
+ /**
14329
+ * @description How far in advance a refund can be requested.
14330
+ * @enum {string}
14331
+ */
14332
+ refundThreshold?: "noRefund" | "zeroMinutes" | "fifteenMinutes" | "thirtyMinutes" | "oneHour" | "twoHours" | "fourHours" | "sixHours" | "twelveHours" | "oneDay" | "twoDays" | "oneWeek" | "twoWeeks" | "fourWeeks";
14333
+ /** @description Whether the attendees list is publicly visible. */
14334
+ showAttendees?: boolean;
14335
+ /**
14336
+ * Format: date-time
14337
+ * @description ISO timestamp of when the event starts.
14338
+ */
14339
+ startDate: string;
14340
+ /** @description Display name of the event. */
14341
+ title: string;
14342
+ /** @description Venue name or address within the location. */
14343
+ venue?: string;
14344
+ /**
14345
+ * @description Who can see this event. public: all. admins: admins only. networkMembers: network members. members: location members.
14346
+ * @enum {string}
14347
+ */
14348
+ visibility?: "public" | "admins" | "networkMembers" | "members";
14349
+ };
14350
+ };
14351
+ };
14352
+ };
14353
+ createFeedPost: {
14354
+ content: {
14355
+ "application/json": {
14356
+ /** @description Feed post to create. */
14357
+ post: {
14358
+ /**
14359
+ * Format: uuid
14360
+ * @description ID of the location where the post is created.
14361
+ */
14362
+ locationRef: string;
14363
+ /** @description Media files to attach to the post. */
14364
+ media?: {
14365
+ /** @description Storage key of the media file. */
14366
+ key: string;
14367
+ }[];
14368
+ /** @description Open Graph metadata for link previews. */
14369
+ og?: {
14370
+ /** @description Open Graph description. */
14371
+ description?: string | null;
14372
+ /** @description Open Graph image URL. */
14373
+ image?: string | null;
14374
+ /** @description Open Graph title. */
14375
+ title?: string | null;
14376
+ /** @description Open Graph type. */
14377
+ type?: string | null;
14378
+ /**
14379
+ * Format: uri
14380
+ * @description Open Graph URL.
13714
14381
  */
13715
14382
  url: string;
13716
14383
  /** @description Open Graph video URL. */
@@ -13823,6 +14490,57 @@ interface components {
13823
14490
  };
13824
14491
  };
13825
14492
  };
14493
+ createPackage: {
14494
+ content: {
14495
+ "application/json": {
14496
+ /** @description Package to create. */
14497
+ package: {
14498
+ /** @description Grants included in the package. */
14499
+ grants: {
14500
+ /** @description Grant amount in major units for credits, or whole units for day passes. */
14501
+ amount: number;
14502
+ /** @description Expiration duration in days for credit grants. */
14503
+ duration?: 30 | 90 | 180 | 365;
14504
+ /**
14505
+ * @description Type of balance this grant provides.
14506
+ * @enum {string}
14507
+ */
14508
+ type: "credits" | "dayPasses";
14509
+ }[];
14510
+ /**
14511
+ * Format: uuid
14512
+ * @description ID of the location where to create this package.
14513
+ */
14514
+ locationRef: string;
14515
+ /** @description Package price in major units. */
14516
+ price: number;
14517
+ };
14518
+ };
14519
+ };
14520
+ };
14521
+ patchPackage: {
14522
+ content: {
14523
+ "application/json": {
14524
+ /** @description Package fields to update. */
14525
+ package: {
14526
+ /** @description Grants included in the package. */
14527
+ grants?: {
14528
+ /** @description Grant amount in major units for credits, or whole units for day passes. */
14529
+ amount: number;
14530
+ /** @description Expiration duration in days for credit grants. */
14531
+ duration?: 30 | 90 | 180 | 365;
14532
+ /**
14533
+ * @description Type of balance this grant provides.
14534
+ * @enum {string}
14535
+ */
14536
+ type: "credits" | "dayPasses";
14537
+ }[];
14538
+ /** @description Package price in major units. */
14539
+ price?: number;
14540
+ };
14541
+ };
14542
+ };
14543
+ };
13826
14544
  createPlan: {
13827
14545
  content: {
13828
14546
  "application/json": {
@@ -18155,6 +18873,10 @@ interface operations {
18155
18873
  getContracts: {
18156
18874
  parameters: {
18157
18875
  query?: {
18876
+ /** @description Filter contracts created on or after this date (ISO 8601). Use with createDate[lte] for a range. */
18877
+ "createDate[gte]"?: string;
18878
+ /** @description Filter contracts created on or before this date (ISO 8601). Use with createDate[gte] for a range. */
18879
+ "createDate[lte]"?: string;
18158
18880
  /** @description UUID of the customer (membership or company). Provide customerRef or locationRef; when set, returns only that customer's contracts. */
18159
18881
  customerRef?: string;
18160
18882
  /** @description Maximum number of contracts per page. Defaults to 25 when omitted or invalid; values above 100 are capped at 100. */
@@ -18306,7 +19028,7 @@ interface operations {
18306
19028
  };
18307
19029
  };
18308
19030
  };
18309
- issueContract: {
19031
+ updateContract: {
18310
19032
  parameters: {
18311
19033
  query?: never;
18312
19034
  header?: {
@@ -18319,16 +19041,14 @@ interface operations {
18319
19041
  };
18320
19042
  cookie?: never;
18321
19043
  };
18322
- requestBody: components["requestBodies"]["issueContract"];
19044
+ requestBody: components["requestBodies"]["updateContract"];
18323
19045
  responses: {
18324
- /** @description OK */
18325
- 200: {
19046
+ /** @description No Content */
19047
+ 204: {
18326
19048
  headers: {
18327
19049
  [name: string]: unknown;
18328
19050
  };
18329
- content: {
18330
- "application/json": components["schemas"]["getContract"];
18331
- };
19051
+ content?: never;
18332
19052
  };
18333
19053
  /** @description Bad Request */
18334
19054
  400: {
@@ -18341,7 +19061,7 @@ interface operations {
18341
19061
  };
18342
19062
  };
18343
19063
  };
18344
- terminateContract: {
19064
+ issueContract: {
18345
19065
  parameters: {
18346
19066
  query?: never;
18347
19067
  header?: {
@@ -18354,58 +19074,15 @@ interface operations {
18354
19074
  };
18355
19075
  cookie?: never;
18356
19076
  };
18357
- requestBody: components["requestBodies"]["terminateContract"];
18358
- responses: {
18359
- /** @description No Content */
18360
- 204: {
18361
- headers: {
18362
- [name: string]: unknown;
18363
- };
18364
- content?: never;
18365
- };
18366
- /** @description Bad Request */
18367
- 400: {
18368
- headers: {
18369
- [name: string]: unknown;
18370
- };
18371
- content: {
18372
- "application/json": components["schemas"]["responseError"];
18373
- };
18374
- };
18375
- };
18376
- };
18377
- getCoupons: {
18378
- parameters: {
18379
- query: {
18380
- /** @description The id of the location */
18381
- locationRef: string;
18382
- /** @description Comma-separated list of coupon types to filter by */
18383
- type?: "creditPackages" | "desks" | "equipment" | "events" | "products" | "rooms" | "subscriptionItems";
18384
- /** @description The number of coupons to retrieve. Default: 25 */
18385
- limit?: number;
18386
- /** @description Token to retrieve the next page of results. */
18387
- nextPageToken?: components["schemas"]["nextPageToken"];
18388
- };
18389
- header?: {
18390
- /** @description The id of the network. Required when using bearer token authentication */
18391
- "spacebring-network-id"?: string;
18392
- };
18393
- path?: never;
18394
- cookie?: never;
18395
- };
18396
- requestBody?: never;
19077
+ requestBody: components["requestBodies"]["issueContract"];
18397
19078
  responses: {
18398
- /** @description Success */
19079
+ /** @description OK */
18399
19080
  200: {
18400
19081
  headers: {
18401
19082
  [name: string]: unknown;
18402
19083
  };
18403
19084
  content: {
18404
- "application/json": {
18405
- coupons?: components["schemas"]["coupon"][];
18406
- nextPageToken?: components["schemas"]["nextPageToken"];
18407
- searchQueryNext?: components["schemas"]["searchQueryNext"];
18408
- };
19085
+ "application/json": components["schemas"]["getContract"];
18409
19086
  };
18410
19087
  };
18411
19088
  /** @description Bad Request */
@@ -18419,28 +19096,27 @@ interface operations {
18419
19096
  };
18420
19097
  };
18421
19098
  };
18422
- createCoupon: {
19099
+ resendContract: {
18423
19100
  parameters: {
18424
19101
  query?: never;
18425
19102
  header?: {
18426
19103
  /** @description The id of the network. Required when using bearer token authentication */
18427
19104
  "spacebring-network-id"?: string;
18428
19105
  };
18429
- path?: never;
19106
+ path: {
19107
+ /** @description The id of the contract. */
19108
+ contractId: string;
19109
+ };
18430
19110
  cookie?: never;
18431
19111
  };
18432
- requestBody: components["requestBodies"]["createCoupon"];
19112
+ requestBody?: never;
18433
19113
  responses: {
18434
- /** @description Created */
18435
- 201: {
19114
+ /** @description No Content */
19115
+ 204: {
18436
19116
  headers: {
18437
19117
  [name: string]: unknown;
18438
19118
  };
18439
- content: {
18440
- "application/json": {
18441
- coupon?: components["schemas"]["coupon"];
18442
- };
18443
- };
19119
+ content?: never;
18444
19120
  };
18445
19121
  /** @description Bad Request */
18446
19122
  400: {
@@ -18453,7 +19129,7 @@ interface operations {
18453
19129
  };
18454
19130
  };
18455
19131
  };
18456
- getCoupon: {
19132
+ declineContract: {
18457
19133
  parameters: {
18458
19134
  query?: never;
18459
19135
  header?: {
@@ -18461,23 +19137,21 @@ interface operations {
18461
19137
  "spacebring-network-id"?: string;
18462
19138
  };
18463
19139
  path: {
18464
- /** @description The id of the coupon */
18465
- id: string;
19140
+ /** @description The id of the contract. */
19141
+ contractId: string;
19142
+ /** @description The id of the contract signer. */
19143
+ signerId: string;
18466
19144
  };
18467
19145
  cookie?: never;
18468
19146
  };
18469
19147
  requestBody?: never;
18470
19148
  responses: {
18471
- /** @description OK */
18472
- 200: {
19149
+ /** @description No Content */
19150
+ 204: {
18473
19151
  headers: {
18474
19152
  [name: string]: unknown;
18475
19153
  };
18476
- content: {
18477
- "application/json": {
18478
- coupon?: components["schemas"]["coupon"];
18479
- };
18480
- };
19154
+ content?: never;
18481
19155
  };
18482
19156
  /** @description Bad Request */
18483
19157
  400: {
@@ -18490,7 +19164,7 @@ interface operations {
18490
19164
  };
18491
19165
  };
18492
19166
  };
18493
- deleteCoupon: {
19167
+ signContract: {
18494
19168
  parameters: {
18495
19169
  query?: never;
18496
19170
  header?: {
@@ -18498,8 +19172,10 @@ interface operations {
18498
19172
  "spacebring-network-id"?: string;
18499
19173
  };
18500
19174
  path: {
18501
- /** @description The id of the coupon */
18502
- id: string;
19175
+ /** @description The id of the contract. */
19176
+ contractId: string;
19177
+ /** @description The id of the contract signer. */
19178
+ signerId: string;
18503
19179
  };
18504
19180
  cookie?: never;
18505
19181
  };
@@ -18523,7 +19199,7 @@ interface operations {
18523
19199
  };
18524
19200
  };
18525
19201
  };
18526
- updateCoupon: {
19202
+ terminateContract: {
18527
19203
  parameters: {
18528
19204
  query?: never;
18529
19205
  header?: {
@@ -18531,12 +19207,12 @@ interface operations {
18531
19207
  "spacebring-network-id"?: string;
18532
19208
  };
18533
19209
  path: {
18534
- /** @description The id of the coupon */
18535
- id: string;
19210
+ /** @description The id of the contract. */
19211
+ contractId: string;
18536
19212
  };
18537
19213
  cookie?: never;
18538
19214
  };
18539
- requestBody: components["requestBodies"]["updateCoupon"];
19215
+ requestBody: components["requestBodies"]["terminateContract"];
18540
19216
  responses: {
18541
19217
  /** @description No Content */
18542
19218
  204: {
@@ -18556,13 +19232,15 @@ interface operations {
18556
19232
  };
18557
19233
  };
18558
19234
  };
18559
- getPromocodes: {
19235
+ getTemplates: {
18560
19236
  parameters: {
18561
- query?: {
18562
- /** @description The id of the location. At least one of locationRef or couponRef is required */
18563
- locationRef?: string;
18564
- /** @description The id of the coupon. At least one of locationRef or couponRef is required */
18565
- couponRef?: string;
19237
+ query: {
19238
+ /** @description Maximum number of templates per page. Defaults to 25 when omitted or invalid; values above 100 are capped at 100. */
19239
+ limit?: number;
19240
+ /** @description UUID of the location. */
19241
+ locationRef: string;
19242
+ /** @description Pagination token from nextPageToken in a previous response. Keep the same filters when fetching the next page. */
19243
+ nextPageToken?: string;
18566
19244
  };
18567
19245
  header?: {
18568
19246
  /** @description The id of the network. Required when using bearer token authentication */
@@ -18573,15 +19251,13 @@ interface operations {
18573
19251
  };
18574
19252
  requestBody?: never;
18575
19253
  responses: {
18576
- /** @description Success */
19254
+ /** @description OK */
18577
19255
  200: {
18578
19256
  headers: {
18579
19257
  [name: string]: unknown;
18580
19258
  };
18581
19259
  content: {
18582
- "application/json": {
18583
- promocodes?: components["schemas"]["promocode"][];
18584
- };
19260
+ "application/json": components["schemas"]["getTemplates"];
18585
19261
  };
18586
19262
  };
18587
19263
  /** @description Bad Request */
@@ -18595,7 +19271,7 @@ interface operations {
18595
19271
  };
18596
19272
  };
18597
19273
  };
18598
- createPromocode: {
19274
+ createTemplate: {
18599
19275
  parameters: {
18600
19276
  query?: never;
18601
19277
  header?: {
@@ -18605,7 +19281,7 @@ interface operations {
18605
19281
  path?: never;
18606
19282
  cookie?: never;
18607
19283
  };
18608
- requestBody: components["requestBodies"]["createPromocode"];
19284
+ requestBody: components["requestBodies"]["createTemplate"];
18609
19285
  responses: {
18610
19286
  /** @description Created */
18611
19287
  201: {
@@ -18613,9 +19289,7 @@ interface operations {
18613
19289
  [name: string]: unknown;
18614
19290
  };
18615
19291
  content: {
18616
- "application/json": {
18617
- promocode?: components["schemas"]["promocode"];
18618
- };
19292
+ "application/json": components["schemas"]["getTemplate"];
18619
19293
  };
18620
19294
  };
18621
19295
  /** @description Bad Request */
@@ -18629,7 +19303,7 @@ interface operations {
18629
19303
  };
18630
19304
  };
18631
19305
  };
18632
- getPromocode: {
19306
+ getTemplate: {
18633
19307
  parameters: {
18634
19308
  query?: never;
18635
19309
  header?: {
@@ -18637,8 +19311,8 @@ interface operations {
18637
19311
  "spacebring-network-id"?: string;
18638
19312
  };
18639
19313
  path: {
18640
- /** @description The id of the promocode */
18641
- id: string;
19314
+ /** @description The id of the template. */
19315
+ templateId: string;
18642
19316
  };
18643
19317
  cookie?: never;
18644
19318
  };
@@ -18650,9 +19324,7 @@ interface operations {
18650
19324
  [name: string]: unknown;
18651
19325
  };
18652
19326
  content: {
18653
- "application/json": {
18654
- promocode?: components["schemas"]["promocode"];
18655
- };
19327
+ "application/json": components["schemas"]["getTemplate"];
18656
19328
  };
18657
19329
  };
18658
19330
  /** @description Bad Request */
@@ -18666,7 +19338,7 @@ interface operations {
18666
19338
  };
18667
19339
  };
18668
19340
  };
18669
- archivePromocode: {
19341
+ deleteTemplate: {
18670
19342
  parameters: {
18671
19343
  query?: never;
18672
19344
  header?: {
@@ -18674,23 +19346,19 @@ interface operations {
18674
19346
  "spacebring-network-id"?: string;
18675
19347
  };
18676
19348
  path: {
18677
- /** @description The id of the promocode */
18678
- id: string;
19349
+ /** @description The id of the template. */
19350
+ templateId: string;
18679
19351
  };
18680
19352
  cookie?: never;
18681
19353
  };
18682
19354
  requestBody?: never;
18683
19355
  responses: {
18684
- /** @description OK */
18685
- 200: {
19356
+ /** @description No Content */
19357
+ 204: {
18686
19358
  headers: {
18687
19359
  [name: string]: unknown;
18688
19360
  };
18689
- content: {
18690
- "application/json": {
18691
- promocode?: components["schemas"]["promocode"];
18692
- };
18693
- };
19361
+ content?: never;
18694
19362
  };
18695
19363
  /** @description Bad Request */
18696
19364
  400: {
@@ -18703,16 +19371,413 @@ interface operations {
18703
19371
  };
18704
19372
  };
18705
19373
  };
18706
- getDiscountRedemptions: {
19374
+ updateTemplate: {
18707
19375
  parameters: {
18708
- query?: {
18709
- /** @description The id of the coupon. Either couponRef or promocodeRef is required */
18710
- couponRef?: string;
18711
- /** @description The id of the promocode. Either couponRef or promocodeRef is required */
18712
- promocodeRef?: string;
18713
- /** @description The number of items to return */
18714
- limit?: number;
18715
- /** @description Token to retrieve the next page of results. */
19376
+ query?: never;
19377
+ header?: {
19378
+ /** @description The id of the network. Required when using bearer token authentication */
19379
+ "spacebring-network-id"?: string;
19380
+ };
19381
+ path: {
19382
+ /** @description The id of the template. */
19383
+ templateId: string;
19384
+ };
19385
+ cookie?: never;
19386
+ };
19387
+ requestBody: components["requestBodies"]["updateTemplate"];
19388
+ responses: {
19389
+ /** @description No Content */
19390
+ 204: {
19391
+ headers: {
19392
+ [name: string]: unknown;
19393
+ };
19394
+ content?: never;
19395
+ };
19396
+ /** @description Bad Request */
19397
+ 400: {
19398
+ headers: {
19399
+ [name: string]: unknown;
19400
+ };
19401
+ content: {
19402
+ "application/json": components["schemas"]["responseError"];
19403
+ };
19404
+ };
19405
+ };
19406
+ };
19407
+ duplicateTemplate: {
19408
+ parameters: {
19409
+ query?: never;
19410
+ header?: {
19411
+ /** @description The id of the network. Required when using bearer token authentication */
19412
+ "spacebring-network-id"?: string;
19413
+ };
19414
+ path: {
19415
+ /** @description The id of the template. */
19416
+ templateId: string;
19417
+ };
19418
+ cookie?: never;
19419
+ };
19420
+ requestBody?: never;
19421
+ responses: {
19422
+ /** @description Created */
19423
+ 201: {
19424
+ headers: {
19425
+ [name: string]: unknown;
19426
+ };
19427
+ content: {
19428
+ "application/json": components["schemas"]["getTemplate"];
19429
+ };
19430
+ };
19431
+ /** @description Bad Request */
19432
+ 400: {
19433
+ headers: {
19434
+ [name: string]: unknown;
19435
+ };
19436
+ content: {
19437
+ "application/json": components["schemas"]["responseError"];
19438
+ };
19439
+ };
19440
+ };
19441
+ };
19442
+ getCoupons: {
19443
+ parameters: {
19444
+ query: {
19445
+ /** @description The id of the location */
19446
+ locationRef: string;
19447
+ /** @description Comma-separated list of coupon types to filter by */
19448
+ type?: "creditPackages" | "desks" | "equipment" | "events" | "products" | "rooms" | "subscriptionItems";
19449
+ /** @description The number of coupons to retrieve. Default: 25 */
19450
+ limit?: number;
19451
+ /** @description Token to retrieve the next page of results. */
19452
+ nextPageToken?: components["schemas"]["nextPageToken"];
19453
+ };
19454
+ header?: {
19455
+ /** @description The id of the network. Required when using bearer token authentication */
19456
+ "spacebring-network-id"?: string;
19457
+ };
19458
+ path?: never;
19459
+ cookie?: never;
19460
+ };
19461
+ requestBody?: never;
19462
+ responses: {
19463
+ /** @description Success */
19464
+ 200: {
19465
+ headers: {
19466
+ [name: string]: unknown;
19467
+ };
19468
+ content: {
19469
+ "application/json": {
19470
+ coupons?: components["schemas"]["coupon"][];
19471
+ nextPageToken?: components["schemas"]["nextPageToken"];
19472
+ searchQueryNext?: components["schemas"]["searchQueryNext"];
19473
+ };
19474
+ };
19475
+ };
19476
+ /** @description Bad Request */
19477
+ 400: {
19478
+ headers: {
19479
+ [name: string]: unknown;
19480
+ };
19481
+ content: {
19482
+ "application/json": components["schemas"]["responseError"];
19483
+ };
19484
+ };
19485
+ };
19486
+ };
19487
+ createCoupon: {
19488
+ parameters: {
19489
+ query?: never;
19490
+ header?: {
19491
+ /** @description The id of the network. Required when using bearer token authentication */
19492
+ "spacebring-network-id"?: string;
19493
+ };
19494
+ path?: never;
19495
+ cookie?: never;
19496
+ };
19497
+ requestBody: components["requestBodies"]["createCoupon"];
19498
+ responses: {
19499
+ /** @description Created */
19500
+ 201: {
19501
+ headers: {
19502
+ [name: string]: unknown;
19503
+ };
19504
+ content: {
19505
+ "application/json": {
19506
+ coupon?: components["schemas"]["coupon"];
19507
+ };
19508
+ };
19509
+ };
19510
+ /** @description Bad Request */
19511
+ 400: {
19512
+ headers: {
19513
+ [name: string]: unknown;
19514
+ };
19515
+ content: {
19516
+ "application/json": components["schemas"]["responseError"];
19517
+ };
19518
+ };
19519
+ };
19520
+ };
19521
+ getCoupon: {
19522
+ parameters: {
19523
+ query?: never;
19524
+ header?: {
19525
+ /** @description The id of the network. Required when using bearer token authentication */
19526
+ "spacebring-network-id"?: string;
19527
+ };
19528
+ path: {
19529
+ /** @description The id of the coupon */
19530
+ id: string;
19531
+ };
19532
+ cookie?: never;
19533
+ };
19534
+ requestBody?: never;
19535
+ responses: {
19536
+ /** @description OK */
19537
+ 200: {
19538
+ headers: {
19539
+ [name: string]: unknown;
19540
+ };
19541
+ content: {
19542
+ "application/json": {
19543
+ coupon?: components["schemas"]["coupon"];
19544
+ };
19545
+ };
19546
+ };
19547
+ /** @description Bad Request */
19548
+ 400: {
19549
+ headers: {
19550
+ [name: string]: unknown;
19551
+ };
19552
+ content: {
19553
+ "application/json": components["schemas"]["responseError"];
19554
+ };
19555
+ };
19556
+ };
19557
+ };
19558
+ deleteCoupon: {
19559
+ parameters: {
19560
+ query?: never;
19561
+ header?: {
19562
+ /** @description The id of the network. Required when using bearer token authentication */
19563
+ "spacebring-network-id"?: string;
19564
+ };
19565
+ path: {
19566
+ /** @description The id of the coupon */
19567
+ id: string;
19568
+ };
19569
+ cookie?: never;
19570
+ };
19571
+ requestBody?: never;
19572
+ responses: {
19573
+ /** @description No Content */
19574
+ 204: {
19575
+ headers: {
19576
+ [name: string]: unknown;
19577
+ };
19578
+ content?: never;
19579
+ };
19580
+ /** @description Bad Request */
19581
+ 400: {
19582
+ headers: {
19583
+ [name: string]: unknown;
19584
+ };
19585
+ content: {
19586
+ "application/json": components["schemas"]["responseError"];
19587
+ };
19588
+ };
19589
+ };
19590
+ };
19591
+ updateCoupon: {
19592
+ parameters: {
19593
+ query?: never;
19594
+ header?: {
19595
+ /** @description The id of the network. Required when using bearer token authentication */
19596
+ "spacebring-network-id"?: string;
19597
+ };
19598
+ path: {
19599
+ /** @description The id of the coupon */
19600
+ id: string;
19601
+ };
19602
+ cookie?: never;
19603
+ };
19604
+ requestBody: components["requestBodies"]["updateCoupon"];
19605
+ responses: {
19606
+ /** @description No Content */
19607
+ 204: {
19608
+ headers: {
19609
+ [name: string]: unknown;
19610
+ };
19611
+ content?: never;
19612
+ };
19613
+ /** @description Bad Request */
19614
+ 400: {
19615
+ headers: {
19616
+ [name: string]: unknown;
19617
+ };
19618
+ content: {
19619
+ "application/json": components["schemas"]["responseError"];
19620
+ };
19621
+ };
19622
+ };
19623
+ };
19624
+ getPromocodes: {
19625
+ parameters: {
19626
+ query?: {
19627
+ /** @description The id of the location. At least one of locationRef or couponRef is required */
19628
+ locationRef?: string;
19629
+ /** @description The id of the coupon. At least one of locationRef or couponRef is required */
19630
+ couponRef?: string;
19631
+ };
19632
+ header?: {
19633
+ /** @description The id of the network. Required when using bearer token authentication */
19634
+ "spacebring-network-id"?: string;
19635
+ };
19636
+ path?: never;
19637
+ cookie?: never;
19638
+ };
19639
+ requestBody?: never;
19640
+ responses: {
19641
+ /** @description Success */
19642
+ 200: {
19643
+ headers: {
19644
+ [name: string]: unknown;
19645
+ };
19646
+ content: {
19647
+ "application/json": {
19648
+ promocodes?: components["schemas"]["promocode"][];
19649
+ };
19650
+ };
19651
+ };
19652
+ /** @description Bad Request */
19653
+ 400: {
19654
+ headers: {
19655
+ [name: string]: unknown;
19656
+ };
19657
+ content: {
19658
+ "application/json": components["schemas"]["responseError"];
19659
+ };
19660
+ };
19661
+ };
19662
+ };
19663
+ createPromocode: {
19664
+ parameters: {
19665
+ query?: never;
19666
+ header?: {
19667
+ /** @description The id of the network. Required when using bearer token authentication */
19668
+ "spacebring-network-id"?: string;
19669
+ };
19670
+ path?: never;
19671
+ cookie?: never;
19672
+ };
19673
+ requestBody: components["requestBodies"]["createPromocode"];
19674
+ responses: {
19675
+ /** @description Created */
19676
+ 201: {
19677
+ headers: {
19678
+ [name: string]: unknown;
19679
+ };
19680
+ content: {
19681
+ "application/json": {
19682
+ promocode?: components["schemas"]["promocode"];
19683
+ };
19684
+ };
19685
+ };
19686
+ /** @description Bad Request */
19687
+ 400: {
19688
+ headers: {
19689
+ [name: string]: unknown;
19690
+ };
19691
+ content: {
19692
+ "application/json": components["schemas"]["responseError"];
19693
+ };
19694
+ };
19695
+ };
19696
+ };
19697
+ getPromocode: {
19698
+ parameters: {
19699
+ query?: never;
19700
+ header?: {
19701
+ /** @description The id of the network. Required when using bearer token authentication */
19702
+ "spacebring-network-id"?: string;
19703
+ };
19704
+ path: {
19705
+ /** @description The id of the promocode */
19706
+ id: string;
19707
+ };
19708
+ cookie?: never;
19709
+ };
19710
+ requestBody?: never;
19711
+ responses: {
19712
+ /** @description OK */
19713
+ 200: {
19714
+ headers: {
19715
+ [name: string]: unknown;
19716
+ };
19717
+ content: {
19718
+ "application/json": {
19719
+ promocode?: components["schemas"]["promocode"];
19720
+ };
19721
+ };
19722
+ };
19723
+ /** @description Bad Request */
19724
+ 400: {
19725
+ headers: {
19726
+ [name: string]: unknown;
19727
+ };
19728
+ content: {
19729
+ "application/json": components["schemas"]["responseError"];
19730
+ };
19731
+ };
19732
+ };
19733
+ };
19734
+ archivePromocode: {
19735
+ parameters: {
19736
+ query?: never;
19737
+ header?: {
19738
+ /** @description The id of the network. Required when using bearer token authentication */
19739
+ "spacebring-network-id"?: string;
19740
+ };
19741
+ path: {
19742
+ /** @description The id of the promocode */
19743
+ id: string;
19744
+ };
19745
+ cookie?: never;
19746
+ };
19747
+ requestBody?: never;
19748
+ responses: {
19749
+ /** @description OK */
19750
+ 200: {
19751
+ headers: {
19752
+ [name: string]: unknown;
19753
+ };
19754
+ content: {
19755
+ "application/json": {
19756
+ promocode?: components["schemas"]["promocode"];
19757
+ };
19758
+ };
19759
+ };
19760
+ /** @description Bad Request */
19761
+ 400: {
19762
+ headers: {
19763
+ [name: string]: unknown;
19764
+ };
19765
+ content: {
19766
+ "application/json": components["schemas"]["responseError"];
19767
+ };
19768
+ };
19769
+ };
19770
+ };
19771
+ getDiscountRedemptions: {
19772
+ parameters: {
19773
+ query?: {
19774
+ /** @description The id of the coupon. Either couponRef or promocodeRef is required */
19775
+ couponRef?: string;
19776
+ /** @description The id of the promocode. Either couponRef or promocodeRef is required */
19777
+ promocodeRef?: string;
19778
+ /** @description The number of items to return */
19779
+ limit?: number;
19780
+ /** @description Token to retrieve the next page of results. */
18716
19781
  nextPageToken?: components["schemas"]["nextPageToken"];
18717
19782
  };
18718
19783
  header?: {
@@ -18835,7 +19900,188 @@ interface operations {
18835
19900
  };
18836
19901
  cookie?: never;
18837
19902
  };
18838
- requestBody?: never;
19903
+ requestBody?: never;
19904
+ responses: {
19905
+ /** @description OK */
19906
+ 200: {
19907
+ headers: {
19908
+ [name: string]: unknown;
19909
+ };
19910
+ content: {
19911
+ "application/json": {
19912
+ event?: components["schemas"]["event"];
19913
+ };
19914
+ };
19915
+ };
19916
+ /** @description Bad Request */
19917
+ 400: {
19918
+ headers: {
19919
+ [name: string]: unknown;
19920
+ };
19921
+ content: {
19922
+ "application/json": components["schemas"]["responseError"];
19923
+ };
19924
+ };
19925
+ };
19926
+ };
19927
+ updateEvent: {
19928
+ parameters: {
19929
+ query?: never;
19930
+ header?: {
19931
+ /** @description The id of the network. Required when using bearer token authentication */
19932
+ "spacebring-network-id"?: string;
19933
+ };
19934
+ path: {
19935
+ id: string;
19936
+ };
19937
+ cookie?: never;
19938
+ };
19939
+ requestBody: components["requestBodies"]["updateEvent"];
19940
+ responses: {
19941
+ /** @description OK */
19942
+ 200: {
19943
+ headers: {
19944
+ [name: string]: unknown;
19945
+ };
19946
+ content: {
19947
+ "application/json": {
19948
+ event?: components["schemas"]["event"];
19949
+ };
19950
+ };
19951
+ };
19952
+ /** @description Bad Request */
19953
+ 400: {
19954
+ headers: {
19955
+ [name: string]: unknown;
19956
+ };
19957
+ content: {
19958
+ "application/json": components["schemas"]["responseError"];
19959
+ };
19960
+ };
19961
+ };
19962
+ };
19963
+ deleteEvent: {
19964
+ parameters: {
19965
+ query?: never;
19966
+ header?: never;
19967
+ path: {
19968
+ id: string;
19969
+ };
19970
+ cookie?: never;
19971
+ };
19972
+ requestBody?: never;
19973
+ responses: {
19974
+ /** @description No Content */
19975
+ 204: {
19976
+ headers: {
19977
+ [name: string]: unknown;
19978
+ };
19979
+ content?: never;
19980
+ };
19981
+ /** @description Bad Request */
19982
+ 400: {
19983
+ headers: {
19984
+ [name: string]: unknown;
19985
+ };
19986
+ content: {
19987
+ "application/json": components["schemas"]["responseError"];
19988
+ };
19989
+ };
19990
+ };
19991
+ };
19992
+ cancelEvent: {
19993
+ parameters: {
19994
+ query?: never;
19995
+ header?: never;
19996
+ path: {
19997
+ id: string;
19998
+ };
19999
+ cookie?: never;
20000
+ };
20001
+ requestBody?: never;
20002
+ responses: {
20003
+ /** @description OK */
20004
+ 200: {
20005
+ headers: {
20006
+ [name: string]: unknown;
20007
+ };
20008
+ content: {
20009
+ "application/json": {
20010
+ event?: components["schemas"]["event"];
20011
+ };
20012
+ };
20013
+ };
20014
+ /** @description Bad Request */
20015
+ 400: {
20016
+ headers: {
20017
+ [name: string]: unknown;
20018
+ };
20019
+ content: {
20020
+ "application/json": components["schemas"]["responseError"];
20021
+ };
20022
+ };
20023
+ };
20024
+ };
20025
+ copyEvent: {
20026
+ parameters: {
20027
+ query?: never;
20028
+ header?: never;
20029
+ path: {
20030
+ id: string;
20031
+ };
20032
+ cookie?: never;
20033
+ };
20034
+ requestBody?: never;
20035
+ responses: {
20036
+ /** @description Created */
20037
+ 201: {
20038
+ headers: {
20039
+ [name: string]: unknown;
20040
+ };
20041
+ content: {
20042
+ "application/json": {
20043
+ event?: components["schemas"]["event"];
20044
+ };
20045
+ };
20046
+ };
20047
+ /** @description Bad Request */
20048
+ 400: {
20049
+ headers: {
20050
+ [name: string]: unknown;
20051
+ };
20052
+ content: {
20053
+ "application/json": components["schemas"]["responseError"];
20054
+ };
20055
+ };
20056
+ };
20057
+ };
20058
+ addEventHosts: {
20059
+ parameters: {
20060
+ query?: never;
20061
+ header?: {
20062
+ /** @description The id of the network. Required when using bearer token authentication */
20063
+ "spacebring-network-id"?: string;
20064
+ };
20065
+ path: {
20066
+ /** @description The id of the event. */
20067
+ id: string;
20068
+ };
20069
+ cookie?: never;
20070
+ };
20071
+ requestBody: {
20072
+ content: {
20073
+ "application/json": {
20074
+ /** @description Hosts to add to the event. */
20075
+ tickets: {
20076
+ /**
20077
+ * Format: uuid
20078
+ * @description The id of the membership to add as a host.
20079
+ */
20080
+ membershipRef: string;
20081
+ }[];
20082
+ };
20083
+ };
20084
+ };
18839
20085
  responses: {
18840
20086
  /** @description OK */
18841
20087
  200: {
@@ -18844,7 +20090,7 @@ interface operations {
18844
20090
  };
18845
20091
  content: {
18846
20092
  "application/json": {
18847
- event?: components["schemas"]["event"];
20093
+ tickets?: components["schemas"]["eventTicket"][];
18848
20094
  };
18849
20095
  };
18850
20096
  };
@@ -18859,23 +20105,37 @@ interface operations {
18859
20105
  };
18860
20106
  };
18861
20107
  };
18862
- deleteEvent: {
20108
+ getEventTickets: {
18863
20109
  parameters: {
18864
- query?: never;
18865
- header?: never;
18866
- path: {
18867
- id: string;
20110
+ query: {
20111
+ /** @description The id of the location. */
20112
+ locationRef: string;
20113
+ /** @description The number of items to return */
20114
+ limit?: number;
20115
+ /** @description Token to retrieve the next page of results. */
20116
+ nextPageToken?: components["schemas"]["nextPageToken"];
20117
+ };
20118
+ header?: {
20119
+ /** @description The id of the network. Required when using bearer token authentication */
20120
+ "spacebring-network-id"?: string;
18868
20121
  };
20122
+ path?: never;
18869
20123
  cookie?: never;
18870
20124
  };
18871
20125
  requestBody?: never;
18872
20126
  responses: {
18873
- /** @description No Content */
18874
- 204: {
20127
+ /** @description OK */
20128
+ 200: {
18875
20129
  headers: {
18876
20130
  [name: string]: unknown;
18877
20131
  };
18878
- content?: never;
20132
+ content: {
20133
+ "application/json": {
20134
+ tickets?: components["schemas"]["eventTicket"][];
20135
+ nextPageToken?: components["schemas"]["nextPageToken"];
20136
+ searchQueryNext?: components["schemas"]["searchQueryNext"];
20137
+ };
20138
+ };
18879
20139
  };
18880
20140
  /** @description Bad Request */
18881
20141
  400: {
@@ -18888,11 +20148,12 @@ interface operations {
18888
20148
  };
18889
20149
  };
18890
20150
  };
18891
- cancelEvent: {
20151
+ getEventTicket: {
18892
20152
  parameters: {
18893
20153
  query?: never;
18894
20154
  header?: never;
18895
20155
  path: {
20156
+ /** @description The id of the event ticket. */
18896
20157
  id: string;
18897
20158
  };
18898
20159
  cookie?: never;
@@ -18906,7 +20167,7 @@ interface operations {
18906
20167
  };
18907
20168
  content: {
18908
20169
  "application/json": {
18909
- event?: components["schemas"]["event"];
20170
+ ticket?: components["schemas"]["eventTicket"];
18910
20171
  };
18911
20172
  };
18912
20173
  };
@@ -18921,25 +20182,41 @@ interface operations {
18921
20182
  };
18922
20183
  };
18923
20184
  };
18924
- copyEvent: {
20185
+ updateEventTicket: {
18925
20186
  parameters: {
18926
20187
  query?: never;
18927
- header?: never;
20188
+ header?: {
20189
+ /** @description The id of the network. Required when using bearer token authentication */
20190
+ "spacebring-network-id"?: string;
20191
+ };
18928
20192
  path: {
20193
+ /** @description The id of the event ticket. */
18929
20194
  id: string;
18930
20195
  };
18931
20196
  cookie?: never;
18932
20197
  };
18933
- requestBody?: never;
20198
+ requestBody: {
20199
+ content: {
20200
+ "application/json": {
20201
+ ticket: {
20202
+ /**
20203
+ * @description Role of the ticket holder.
20204
+ * @enum {string}
20205
+ */
20206
+ role: "attendee" | "host";
20207
+ };
20208
+ };
20209
+ };
20210
+ };
18934
20211
  responses: {
18935
- /** @description Created */
18936
- 201: {
20212
+ /** @description OK */
20213
+ 200: {
18937
20214
  headers: {
18938
20215
  [name: string]: unknown;
18939
20216
  };
18940
20217
  content: {
18941
20218
  "application/json": {
18942
- event?: components["schemas"]["event"];
20219
+ ticket?: components["schemas"]["eventTicket"];
18943
20220
  };
18944
20221
  };
18945
20222
  };
@@ -18954,21 +20231,17 @@ interface operations {
18954
20231
  };
18955
20232
  };
18956
20233
  };
18957
- getEventTickets: {
20234
+ deleteEventTicket: {
18958
20235
  parameters: {
18959
- query: {
18960
- /** @description The id of the location. */
18961
- locationRef: string;
18962
- /** @description The number of items to return */
18963
- limit?: number;
18964
- /** @description Token to retrieve the next page of results. */
18965
- nextPageToken?: components["schemas"]["nextPageToken"];
18966
- };
20236
+ query?: never;
18967
20237
  header?: {
18968
20238
  /** @description The id of the network. Required when using bearer token authentication */
18969
20239
  "spacebring-network-id"?: string;
18970
20240
  };
18971
- path?: never;
20241
+ path: {
20242
+ /** @description The id of the event ticket. */
20243
+ id: string;
20244
+ };
18972
20245
  cookie?: never;
18973
20246
  };
18974
20247
  requestBody?: never;
@@ -18980,9 +20253,7 @@ interface operations {
18980
20253
  };
18981
20254
  content: {
18982
20255
  "application/json": {
18983
- tickets?: components["schemas"]["eventTicket"][];
18984
- nextPageToken?: components["schemas"]["nextPageToken"];
18985
- searchQueryNext?: components["schemas"]["searchQueryNext"];
20256
+ ticket?: components["schemas"]["eventTicket"];
18986
20257
  };
18987
20258
  };
18988
20259
  };
@@ -18997,10 +20268,13 @@ interface operations {
18997
20268
  };
18998
20269
  };
18999
20270
  };
19000
- getEventTicket: {
20271
+ checkInEventTicket: {
19001
20272
  parameters: {
19002
20273
  query?: never;
19003
- header?: never;
20274
+ header?: {
20275
+ /** @description The id of the network. Required when using bearer token authentication */
20276
+ "spacebring-network-id"?: string;
20277
+ };
19004
20278
  path: {
19005
20279
  /** @description The id of the event ticket. */
19006
20280
  id: string;
@@ -19915,6 +21189,143 @@ interface operations {
19915
21189
  };
19916
21190
  };
19917
21191
  };
21192
+ getPackages: {
21193
+ parameters: {
21194
+ query: {
21195
+ /** @description Maximum number of packages per page. Defaults to 25 when omitted or invalid; values above 100 are capped at 100. */
21196
+ limit?: number;
21197
+ /** @description UUID of the location. */
21198
+ locationRef: string;
21199
+ /** @description Pagination token from nextPageToken in a previous response. Keep the same filters when fetching the next page. */
21200
+ nextPageToken?: string;
21201
+ };
21202
+ header?: {
21203
+ /** @description The id of the network. Required when using bearer token authentication */
21204
+ "spacebring-network-id"?: string;
21205
+ };
21206
+ path?: never;
21207
+ cookie?: never;
21208
+ };
21209
+ requestBody?: never;
21210
+ responses: {
21211
+ /** @description OK */
21212
+ 200: {
21213
+ headers: {
21214
+ [name: string]: unknown;
21215
+ };
21216
+ content: {
21217
+ "application/json": components["schemas"]["getPackages"];
21218
+ };
21219
+ };
21220
+ /** @description Bad Request */
21221
+ 400: {
21222
+ headers: {
21223
+ [name: string]: unknown;
21224
+ };
21225
+ content: {
21226
+ "application/json": components["schemas"]["responseError"];
21227
+ };
21228
+ };
21229
+ };
21230
+ };
21231
+ createPackage: {
21232
+ parameters: {
21233
+ query?: never;
21234
+ header?: {
21235
+ /** @description The id of the network. Required when using bearer token authentication */
21236
+ "spacebring-network-id"?: string;
21237
+ };
21238
+ path?: never;
21239
+ cookie?: never;
21240
+ };
21241
+ requestBody: components["requestBodies"]["createPackage"];
21242
+ responses: {
21243
+ /** @description Created */
21244
+ 201: {
21245
+ headers: {
21246
+ [name: string]: unknown;
21247
+ };
21248
+ content: {
21249
+ "application/json": components["schemas"]["getPackage"];
21250
+ };
21251
+ };
21252
+ /** @description Bad Request */
21253
+ 400: {
21254
+ headers: {
21255
+ [name: string]: unknown;
21256
+ };
21257
+ content: {
21258
+ "application/json": components["schemas"]["responseError"];
21259
+ };
21260
+ };
21261
+ };
21262
+ };
21263
+ deletePackage: {
21264
+ parameters: {
21265
+ query?: never;
21266
+ header?: {
21267
+ /** @description The id of the network. Required when using bearer token authentication */
21268
+ "spacebring-network-id"?: string;
21269
+ };
21270
+ path: {
21271
+ /** @description The id of the package. */
21272
+ packageId: string;
21273
+ };
21274
+ cookie?: never;
21275
+ };
21276
+ requestBody?: never;
21277
+ responses: {
21278
+ /** @description No Content */
21279
+ 204: {
21280
+ headers: {
21281
+ [name: string]: unknown;
21282
+ };
21283
+ content?: never;
21284
+ };
21285
+ /** @description Bad Request */
21286
+ 400: {
21287
+ headers: {
21288
+ [name: string]: unknown;
21289
+ };
21290
+ content: {
21291
+ "application/json": components["schemas"]["responseError"];
21292
+ };
21293
+ };
21294
+ };
21295
+ };
21296
+ patchPackage: {
21297
+ parameters: {
21298
+ query?: never;
21299
+ header?: {
21300
+ /** @description The id of the network. Required when using bearer token authentication */
21301
+ "spacebring-network-id"?: string;
21302
+ };
21303
+ path: {
21304
+ /** @description The id of the package. */
21305
+ packageId: string;
21306
+ };
21307
+ cookie?: never;
21308
+ };
21309
+ requestBody: components["requestBodies"]["patchPackage"];
21310
+ responses: {
21311
+ /** @description No Content */
21312
+ 204: {
21313
+ headers: {
21314
+ [name: string]: unknown;
21315
+ };
21316
+ content?: never;
21317
+ };
21318
+ /** @description Bad Request */
21319
+ 400: {
21320
+ headers: {
21321
+ [name: string]: unknown;
21322
+ };
21323
+ content: {
21324
+ "application/json": components["schemas"]["responseError"];
21325
+ };
21326
+ };
21327
+ };
21328
+ };
19918
21329
  getPlans: {
19919
21330
  parameters: {
19920
21331
  query?: {
@@ -21244,6 +22655,8 @@ interface operations {
21244
22655
  limit?: number;
21245
22656
  /** @description Token to retrieve the next page of results. */
21246
22657
  nextPageToken?: components["schemas"]["nextPageToken"];
22658
+ /** @description The order of the tickets. createDate:asc, createDate:desc, updateDate:asc or updateDate:desc. Default: createDate:desc */
22659
+ order?: string;
21247
22660
  };
21248
22661
  header?: {
21249
22662
  /** @description The id of the network. Required when using bearer token authentication */
@@ -22623,6 +24036,8 @@ interface GetSupportTicketsQuery {
22623
24036
  limit?: number;
22624
24037
  /** Token to retrieve the next page of results. */
22625
24038
  nextPageToken?: string;
24039
+ /** The order of the tickets. createDate:asc, createDate:desc, updateDate:asc or updateDate:desc. Default: createDate:desc */
24040
+ order?: string;
22626
24041
  }
22627
24042
  /** Request body for `sb.support.tickets.create()`. */
22628
24043
  type CreateSupportTicketBody = NonNullable<NonNullable<operations["createSupportTicket"]["requestBody"]>["content"]["application/json"]["ticket"]>;
@@ -22819,6 +24234,22 @@ type CreatePlanBody = NonNullable<NonNullable<operations["createPlan"]["requestB
22819
24234
  /** Request body for `sb.plans.update()`. */
22820
24235
  type UpdatePlanBody = NonNullable<NonNullable<operations["updatePlan"]["requestBody"]>["content"]["application/json"]["plan"]>;
22821
24236
 
24237
+ /** A Package entity as returned by the Spacebring API. */
24238
+ type Package = NonNullable<operations["getPackages"]["responses"][200]["content"]["application/json"]["packages"]>[number];
24239
+ /** Query parameters for `sb.packages.list()`. */
24240
+ interface GetPackagesQuery {
24241
+ /** Maximum number of packages per page. Defaults to 25 when omitted or invalid; values above 100 are capped at 100. */
24242
+ limit?: number;
24243
+ /** UUID of the location. */
24244
+ locationRef: string;
24245
+ /** Pagination token from nextPageToken in a previous response. Keep the same filters when fetching the next page. */
24246
+ nextPageToken?: string;
24247
+ }
24248
+ /** Request body for `sb.packages.create()`. */
24249
+ type CreatePackageBody = NonNullable<NonNullable<operations["createPackage"]["requestBody"]>["content"]["application/json"]["package"]>;
24250
+ /** Request body for `sb.packages.update()`. */
24251
+ type PatchPackageBody = NonNullable<NonNullable<operations["patchPackage"]["requestBody"]>["content"]["application/json"]["package"]>;
24252
+
22822
24253
  /** A Network entity as returned by the Spacebring API. */
22823
24254
  type Network = NonNullable<components["schemas"]["network"]>;
22824
24255
 
@@ -22897,8 +24328,14 @@ interface GetEventTicketsQuery {
22897
24328
  /** Token to retrieve the next page of results. */
22898
24329
  nextPageToken?: string;
22899
24330
  }
24331
+ /** Request body for `sb.events.addEventHosts()`. */
24332
+ type AddEventHostsBody = NonNullable<NonNullable<operations["addEventHosts"]["requestBody"]>["content"]["application/json"]["tickets"]>;
22900
24333
  /** Request body for `sb.events.create()`. */
22901
24334
  type CreateEventBody = NonNullable<NonNullable<operations["createEvent"]["requestBody"]>["content"]["application/json"]["event"]>;
24335
+ /** Request body for `sb.events.update()`. */
24336
+ type UpdateEventBody = NonNullable<NonNullable<operations["updateEvent"]["requestBody"]>["content"]["application/json"]["event"]>;
24337
+ /** Request body for `sb.events.tickets.update()`. */
24338
+ type UpdateEventTicketBody = NonNullable<NonNullable<operations["updateEventTicket"]["requestBody"]>["content"]["application/json"]["ticket"]>;
22902
24339
 
22903
24340
  /** A Coupon entity as returned by the Spacebring API. */
22904
24341
  type Coupon = NonNullable<components["schemas"]["coupon"]>;
@@ -22917,7 +24354,7 @@ interface GetCouponsQuery {
22917
24354
  /** Token to retrieve the next page of results. */
22918
24355
  nextPageToken?: string;
22919
24356
  }
22920
- /** Query parameters for `sb.discounts.redemptions.list()`. */
24357
+ /** Query parameters for `sb.discounts.listRedemptions()`. */
22921
24358
  interface GetDiscountRedemptionsQuery {
22922
24359
  /** The id of the coupon. Either couponRef or promocodeRef is required */
22923
24360
  couponRef?: string;
@@ -22944,8 +24381,14 @@ type UpdateCouponBody = NonNullable<NonNullable<operations["updateCoupon"]["requ
22944
24381
 
22945
24382
  /** A Contract entity as returned by the Spacebring API. */
22946
24383
  type Contract = NonNullable<operations["getContract"]["responses"][200]["content"]["application/json"]["contract"]>;
24384
+ /** A Template entity as returned by the Spacebring API. */
24385
+ type Template = NonNullable<operations["getTemplate"]["responses"][200]["content"]["application/json"]["template"]>;
22947
24386
  /** Query parameters for `sb.contracts.list()`. */
22948
24387
  interface GetContractsQuery {
24388
+ /** Filter contracts created on or after this date (ISO 8601). Use with createDate[lte] for a range. */
24389
+ "createDate[gte]"?: string;
24390
+ /** Filter contracts created on or before this date (ISO 8601). Use with createDate[gte] for a range. */
24391
+ "createDate[lte]"?: string;
22949
24392
  /** UUID of the customer (membership or company). Provide customerRef or locationRef; when set, returns only that customer's contracts. */
22950
24393
  customerRef?: string;
22951
24394
  /** Maximum number of contracts per page. Defaults to 25 when omitted or invalid; values above 100 are capped at 100. */
@@ -22966,12 +24409,27 @@ interface GetContractsQuery {
22966
24409
  - **terminated** — cancelled after signing */
22967
24410
  status?: string;
22968
24411
  }
24412
+ /** Query parameters for `sb.contracts.templates.list()`. */
24413
+ interface GetTemplatesQuery {
24414
+ /** Maximum number of templates per page. Defaults to 25 when omitted or invalid; values above 100 are capped at 100. */
24415
+ limit?: number;
24416
+ /** UUID of the location. */
24417
+ locationRef: string;
24418
+ /** Pagination token from nextPageToken in a previous response. Keep the same filters when fetching the next page. */
24419
+ nextPageToken?: string;
24420
+ }
22969
24421
  /** Request body for `sb.contracts.create()`. */
22970
24422
  type CreateContractBody = NonNullable<NonNullable<operations["createContract"]["requestBody"]>["content"]["application/json"]["contract"]>;
24423
+ /** Request body for `sb.contracts.templates.create()`. */
24424
+ type CreateTemplateBody = NonNullable<NonNullable<operations["createTemplate"]["requestBody"]>["content"]["application/json"]["template"]>;
22971
24425
  /** Request body for `sb.contracts.issue()`. */
22972
24426
  type IssueContractBody = NonNullable<NonNullable<operations["issueContract"]["requestBody"]>["content"]["application/json"]["signatureMethod"]>;
22973
24427
  /** Request body for `sb.contracts.terminate()`. */
22974
24428
  type TerminateContractBody = NonNullable<NonNullable<operations["terminateContract"]["requestBody"]>["content"]["application/json"]["reason"]>;
24429
+ /** Request body for `sb.contracts.update()`. */
24430
+ type UpdateContractBody = NonNullable<NonNullable<operations["updateContract"]["requestBody"]>["content"]["application/json"]["contract"]>;
24431
+ /** Request body for `sb.contracts.templates.update()`. */
24432
+ type UpdateTemplateBody = NonNullable<NonNullable<operations["updateTemplate"]["requestBody"]>["content"]["application/json"]["template"]>;
22975
24433
 
22976
24434
  /** A Company entity as returned by the Spacebring API. */
22977
24435
  type Company = NonNullable<components["schemas"]["company"]>;
@@ -23364,11 +24822,34 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
23364
24822
  iterate(query?: Omit<GetContractsQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<Contract, void, undefined>;
23365
24823
  get(contractId: string, options?: SpacebringRequestOptions): Promise<Contract>;
23366
24824
  create(contract: CreateContractBody, options?: SpacebringRequestOptions): Promise<Contract>;
24825
+ update(contractId: string, contract: UpdateContractBody, options?: SpacebringRequestOptions): Promise<undefined>;
23367
24826
  delete(contractId: string, options?: SpacebringRequestOptions): Promise<undefined>;
24827
+ declineContract(contractId: string, signerId: string, options?: SpacebringRequestOptions): Promise<undefined>;
23368
24828
  issue(contractId: string, signatureMethod: IssueContractBody, options?: SpacebringRequestOptions): Promise<Contract>;
24829
+ resend(contractId: string, options?: SpacebringRequestOptions): Promise<undefined>;
24830
+ signContract(contractId: string, signerId: string, options?: SpacebringRequestOptions): Promise<undefined>;
23369
24831
  terminate(contractId: string, reason: TerminateContractBody, options?: SpacebringRequestOptions): Promise<undefined>;
24832
+ templates: {
24833
+ list(query: GetTemplatesQuery, options?: SpacebringRequestOptions): Promise<{
24834
+ nextPageToken?: string;
24835
+ searchQueryNext?: string;
24836
+ templates: Template[];
24837
+ }>;
24838
+ iterate(query: Omit<GetTemplatesQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<Template, void, undefined>;
24839
+ get(templateId: string, options?: SpacebringRequestOptions): Promise<Template>;
24840
+ create(template: CreateTemplateBody, options?: SpacebringRequestOptions): Promise<Template>;
24841
+ update(templateId: string, template: UpdateTemplateBody, options?: SpacebringRequestOptions): Promise<undefined>;
24842
+ delete(templateId: string, options?: SpacebringRequestOptions): Promise<undefined>;
24843
+ duplicate(templateId: string, options?: SpacebringRequestOptions): Promise<Template>;
24844
+ };
23370
24845
  };
23371
24846
  discounts: {
24847
+ iterateRedemptions(query?: Omit<GetDiscountRedemptionsQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<Redemption, void, undefined>;
24848
+ listRedemptions(query?: GetDiscountRedemptionsQuery, options?: SpacebringRequestOptions): Promise<{
24849
+ redemptions?: Redemption[];
24850
+ nextPageToken?: string;
24851
+ searchQueryNext?: string;
24852
+ }>;
23372
24853
  coupons: {
23373
24854
  list(query: GetCouponsQuery, options?: SpacebringRequestOptions): Promise<{
23374
24855
  coupons?: Coupon[];
@@ -23387,20 +24868,14 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
23387
24868
  create(promocode: CreatePromocodeBody, options?: SpacebringRequestOptions): Promise<Promocode>;
23388
24869
  archive(id: string, options?: SpacebringRequestOptions): Promise<Promocode>;
23389
24870
  };
23390
- redemptions: {
23391
- list(query?: GetDiscountRedemptionsQuery, options?: SpacebringRequestOptions): Promise<{
23392
- redemptions?: Redemption[];
23393
- nextPageToken?: string;
23394
- searchQueryNext?: string;
23395
- }>;
23396
- iterate(query?: Omit<GetDiscountRedemptionsQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<Redemption, void, undefined>;
23397
- };
23398
24871
  };
23399
24872
  events: {
23400
24873
  list(query: GetEventsByOrganizationQuery, options?: SpacebringRequestOptions): Promise<operations["getEventsByOrganization"]["responses"][200]["content"]["application/json"]>;
23401
24874
  get(id: string, options?: SpacebringRequestOptions): Promise<Event>;
23402
24875
  create(event: CreateEventBody, options?: SpacebringRequestOptions): Promise<Event>;
24876
+ update(id: string, event: UpdateEventBody, options?: SpacebringRequestOptions): Promise<Event>;
23403
24877
  delete(id: string, options?: SpacebringRequestOptions): Promise<undefined>;
24878
+ addEventHosts(id: string, tickets: AddEventHostsBody, options?: SpacebringRequestOptions): Promise<EventTicket[]>;
23404
24879
  cancel(id: string, options?: SpacebringRequestOptions): Promise<Event>;
23405
24880
  copy(id: string, options?: SpacebringRequestOptions): Promise<Event>;
23406
24881
  tickets: {
@@ -23411,6 +24886,9 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
23411
24886
  }>;
23412
24887
  iterate(query: Omit<GetEventTicketsQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<EventTicket, void, undefined>;
23413
24888
  get(id: string, options?: SpacebringRequestOptions): Promise<EventTicket>;
24889
+ update(id: string, ticket: UpdateEventTicketBody, options?: SpacebringRequestOptions): Promise<EventTicket>;
24890
+ delete(id: string, options?: SpacebringRequestOptions): Promise<EventTicket>;
24891
+ checkIn(id: string, options?: SpacebringRequestOptions): Promise<EventTicket>;
23414
24892
  };
23415
24893
  };
23416
24894
  feed: {
@@ -23460,6 +24938,17 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
23460
24938
  networks: {
23461
24939
  list(options?: SpacebringRequestOptions): Promise<Network[]>;
23462
24940
  };
24941
+ packages: {
24942
+ list(query: GetPackagesQuery, options?: SpacebringRequestOptions): Promise<{
24943
+ nextPageToken?: string;
24944
+ packages: Package[];
24945
+ searchQueryNext?: string;
24946
+ }>;
24947
+ iterate(query: Omit<GetPackagesQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<Package, void, undefined>;
24948
+ create(packageBody: CreatePackageBody, options?: SpacebringRequestOptions): Promise<Package>;
24949
+ update(packageId: string, packageBody: PatchPackageBody, options?: SpacebringRequestOptions): Promise<undefined>;
24950
+ delete(packageId: string, options?: SpacebringRequestOptions): Promise<undefined>;
24951
+ };
23463
24952
  plans: {
23464
24953
  list(query?: GetPlansQuery, options?: SpacebringRequestOptions): Promise<{
23465
24954
  nextPageToken?: string;
@@ -23706,4 +25195,4 @@ declare class SpacebringError extends Error {
23706
25195
  });
23707
25196
  }
23708
25197
 
23709
- export { type Activity, type AltCurrency, type Application, type ApplyBenefitBody, type Balance, type Benefit, type BenefitCategory, type Booking, type CheckInVisitBody, type CheckOutVisitBody, type Comment, type Company, type Contact, type Contract, type Coupon, type CreateAltCurrencyBody, type CreateBenefitBody, type CreateBenefitCategoryBody, type CreateBookingBody, type CreateCompanyBody, type CreateContactBody, type CreateContractBody, type CreateCouponBody, type CreateCreditNoteBody, type CreateCreditsTransactionBody, type CreateDayPassesTransactionBody, type CreateEventBody, type CreateFeedPostBody, type CreateFeedPostCommentBody, type CreateGuideBody, type CreateInvoiceBody, type CreateInvoiceItemBody, type CreateMembershipBody, type CreatePlanBody, type CreateProductBody, type CreatePromocodeBody, type CreateRequestBody, type CreateResourceBody, type CreateShopCategoryBody, type CreateSubscriptionBody, type CreateSubscriptionItemBody, type CreateSupportTicketBody, type CreateSupportTicketCommentBody, type CreateVisitBody, type CreditNote, type CreditTransaction, type DayPassTransaction, type Event, type EventTicket, type GetAltCurrenciesQuery, type GetBenefitApplicationsQuery, type GetBenefitCategoriesQuery, type GetBenefitsQuery, type GetBookingsQuery, 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 GetPlansQuery, type GetProductsQuery, type GetPromocodesQuery, type GetRegistrationsQuery, type GetRequestsQuery, type GetResourcesQuery, type GetShopCategoriesQuery, type GetSubscriptionsQuery, type GetSupportTicketsQuery, type GetUpcomingInvoiceItemsQuery, type GetUpcomingInvoiceQuery, type GetVisitsQuery, type Guide, type Invoice, type InvoiceItem, type IssueContractBody, type IssueInvoiceBody, type Like, type ListInvoiceItemsQuery, type Location, type Membership, type MoneyTransaction, type Network, type Order, type PatchGuideBody, type PatchResourceBody, type PayInvoiceBody, type Payment, type Plan, type Post, type PreviewCreditNoteBody, type Product, type Promocode, type Redemption, type Registration, type Request$1 as Request, type Resource, type ShopCategory, Spacebring, type SpacebringConfig, SpacebringError, type SpacebringErrorBody, type SpacebringRequestOptions, type SpacebringResources, type Subscription, type SupportTicket, type TerminateContractBody, type UpcomingItem, type UpdateAltCurrencyBody, type UpdateBenefitBody, type UpdateBenefitCategoryBody, type UpdateCompanyBody, type UpdateCouponBody, type UpdateCreditNoteBody, type UpdateFeedPostBody, type UpdateInvoiceBody, type UpdateInvoiceItemBody, type UpdateMembershipBody, type UpdatePlanBody, type UpdateProductBody, type UpdateShopCategoryBody, type UpdateSubscriptionBody, type UpdateSubscriptionItemBody, type UpdateSupportTicketAssigneeBody, type UpdateSupportTicketStatusBody, type UpdateSupportTicketTypeBody, type UpdateVisitBody, type Visit, type components, type operations, type paths };
25198
+ export { type Activity, type AddEventHostsBody, type AltCurrency, type Application, type ApplyBenefitBody, type Balance, type Benefit, type BenefitCategory, type Booking, type CheckInVisitBody, type CheckOutVisitBody, type Comment, type Company, type Contact, type Contract, type Coupon, type CreateAltCurrencyBody, type CreateBenefitBody, type CreateBenefitCategoryBody, type CreateBookingBody, type CreateCompanyBody, type CreateContactBody, type CreateContractBody, type CreateCouponBody, type CreateCreditNoteBody, type CreateCreditsTransactionBody, type CreateDayPassesTransactionBody, type CreateEventBody, type CreateFeedPostBody, type CreateFeedPostCommentBody, type CreateGuideBody, type CreateInvoiceBody, type CreateInvoiceItemBody, type CreateMembershipBody, type CreatePackageBody, type CreatePlanBody, type CreateProductBody, type CreatePromocodeBody, type CreateRequestBody, type CreateResourceBody, type CreateShopCategoryBody, type CreateSubscriptionBody, type CreateSubscriptionItemBody, type CreateSupportTicketBody, type CreateSupportTicketCommentBody, type CreateTemplateBody, type CreateVisitBody, type CreditNote, type CreditTransaction, type DayPassTransaction, type Event, type EventTicket, type GetAltCurrenciesQuery, type GetBenefitApplicationsQuery, type GetBenefitCategoriesQuery, type GetBenefitsQuery, type GetBookingsQuery, 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 GetResourcesQuery, type GetShopCategoriesQuery, type GetSubscriptionsQuery, type GetSupportTicketsQuery, type GetTemplatesQuery, type GetUpcomingInvoiceItemsQuery, type GetUpcomingInvoiceQuery, type GetVisitsQuery, type Guide, 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 PatchGuideBody, type PatchPackageBody, type PatchResourceBody, type PayInvoiceBody, type Payment, type Plan, type Post, type PreviewCreditNoteBody, type Product, type Promocode, type Redemption, type Registration, type Request$1 as Request, type Resource, type ShopCategory, Spacebring, type SpacebringConfig, SpacebringError, type SpacebringErrorBody, type SpacebringRequestOptions, type SpacebringResources, type Subscription, type SupportTicket, type Template, type TerminateContractBody, 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 UpdateSupportTicketStatusBody, type UpdateSupportTicketTypeBody, type UpdateTemplateBody, type UpdateVisitBody, type Visit, type components, type operations, type paths };