@izak0s/spacebring-api 1.6.1 → 1.8.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
@@ -1,4 +1,290 @@
1
- import { Client } from 'openapi-fetch';
1
+ type HttpMethod = "get" | "put" | "post" | "delete" | "options" | "head" | "patch" | "trace";
2
+ type OkStatus = 200 | 201 | 202 | 203 | 204 | 206 | 207 | "2XX";
3
+ type ErrorStatus = 500 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 | '5XX' | 400 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 420 | 421 | 422 | 423 | 424 | 425 | 426 | 427 | 428 | 429 | 430 | 431 | 444 | 450 | 451 | 497 | 498 | 499 | '4XX' | "default";
4
+ type PathsWithMethod<Paths extends {}, PathnameMethod extends HttpMethod> = {
5
+ [Pathname in keyof Paths]: Paths[Pathname] extends {
6
+ [K in PathnameMethod]: any;
7
+ } ? Pathname : never;
8
+ }[keyof Paths];
9
+ type ResponseObjectMap<T> = T extends {
10
+ responses: any;
11
+ } ? T["responses"] : unknown;
12
+ type ResponseContent<T> = T extends {
13
+ content: any;
14
+ } ? T["content"] : unknown;
15
+ type OperationRequestBody<T> = "requestBody" extends keyof T ? T["requestBody"] : never;
16
+ type PickRequestBody<T> = "requestBody" extends keyof T ? Pick<T, "requestBody"> : never;
17
+ type IsOperationRequestBodyOptional<T> = RequiredKeysOf<PickRequestBody<T>> extends never ? true : false;
18
+ type OperationRequestBodyMediaContent<T> = IsOperationRequestBodyOptional<T> extends true ? ResponseContent<NonNullable<OperationRequestBody<T>>> | undefined : ResponseContent<OperationRequestBody<T>>;
19
+ type OperationRequestBodyContent<T> = FilterKeys<OperationRequestBodyMediaContent<T>, MediaType> extends never ? FilterKeys<NonNullable<OperationRequestBodyMediaContent<T>>, MediaType> | undefined : FilterKeys<OperationRequestBodyMediaContent<T>, MediaType>;
20
+ type SuccessResponse<T extends Record<string | number, any>, Media extends MediaType = MediaType> = GetResponseContent<T, Media, OkStatus>;
21
+ type GetResponseContent<T extends Record<string | number, any>, Media extends MediaType = MediaType, ResponseCode extends keyof T = keyof T> = ResponseCode extends keyof T ? {
22
+ [K in ResponseCode]: T[K]["content"] extends Record<string, any> ? FilterKeys<T[K]["content"], Media> extends never ? T[K]["content"] : FilterKeys<T[K]["content"], Media> : K extends keyof T ? T[K]["content"] : never;
23
+ }[ResponseCode] : never;
24
+ type ErrorResponse<T extends Record<string | number, any>, Media extends MediaType = MediaType> = GetResponseContent<T, Media, ErrorStatus>;
25
+ type FilterKeys<Obj, Matchers> = Obj[keyof Obj & Matchers];
26
+ type MediaType = `${string}/${string}`;
27
+ type RequiredKeysOfHelper<T> = {
28
+ [K in keyof T]: {} extends Pick<T, K> ? never : K;
29
+ }[keyof T];
30
+ type RequiredKeysOf<T> = RequiredKeysOfHelper<T> extends undefined ? never : RequiredKeysOfHelper<T>;
31
+ type $Read<T> = {
32
+ readonly $read: T;
33
+ };
34
+ type $Write<T> = {
35
+ readonly $write: T;
36
+ };
37
+ type Readable<T> = T extends $Write<any> ? never : T extends $Read<infer U> ? Readable<U> : T extends (infer E)[] ? Readable<E>[] : T extends object ? {
38
+ [K in keyof T as NonNullable<T[K]> extends $Write<any> ? never : K]: Readable<T[K]>;
39
+ } : T;
40
+ type Writable<T> = T extends $Read<any> ? never : T extends $Write<infer U> ? Writable<U> : T extends (infer E)[] ? Writable<E>[] : T extends object ? {
41
+ [K in keyof T as NonNullable<T[K]> extends $Read<any> ? never : K]: Writable<T[K]>;
42
+ } & {
43
+ [K in keyof T as NonNullable<T[K]> extends $Read<any> ? K : never]?: never;
44
+ } : T;
45
+
46
+ /** Options for each client instance */
47
+ interface ClientOptions extends Omit<RequestInit, "headers"> {
48
+ /** set the common root URL for all API requests */
49
+ baseUrl?: string;
50
+ /** custom fetch (defaults to globalThis.fetch) */
51
+ fetch?: (input: Request) => Promise<Response>;
52
+ /** custom Request (defaults to globalThis.Request) */
53
+ Request?: typeof Request;
54
+ /** global querySerializer */
55
+ querySerializer?: QuerySerializer<unknown> | QuerySerializerOptions;
56
+ /** global bodySerializer */
57
+ bodySerializer?: BodySerializer<unknown>;
58
+ /** global pathSerializer */
59
+ pathSerializer?: PathSerializer;
60
+ headers?: HeadersOptions;
61
+ /** RequestInit extension object to pass as 2nd argument to fetch when supported (defaults to undefined) */
62
+ requestInitExt?: Record<string, unknown>;
63
+ }
64
+
65
+ type HeadersOptions =
66
+ | Required<RequestInit>["headers"]
67
+ | Record<string, string | number | boolean | (string | number | boolean)[] | null | undefined>;
68
+
69
+ type QuerySerializer<T> = (
70
+ query: T extends { parameters: any } ? NonNullable<T["parameters"]["query"]> : Record<string, unknown>,
71
+ ) => string;
72
+
73
+ /** @see https://swagger.io/docs/specification/serialization/#query */
74
+ type QuerySerializerOptions = {
75
+ /** Set serialization for arrays. @see https://swagger.io/docs/specification/serialization/#query */
76
+ array?: {
77
+ /** default: "form" */
78
+ style: "form" | "spaceDelimited" | "pipeDelimited";
79
+ /** default: true */
80
+ explode: boolean;
81
+ };
82
+ /** Set serialization for objects. @see https://swagger.io/docs/specification/serialization/#query */
83
+ object?: {
84
+ /** default: "deepObject" */
85
+ style: "form" | "deepObject";
86
+ /** default: true */
87
+ explode: boolean;
88
+ };
89
+ /**
90
+ * The `allowReserved` keyword specifies whether the reserved characters
91
+ * `:/?#[]@!$&'()*+,;=` in parameter values are allowed to be sent as they
92
+ * are, or should be percent-encoded. By default, allowReserved is `false`,
93
+ * and reserved characters are percent-encoded.
94
+ * @see https://swagger.io/docs/specification/serialization/#query
95
+ */
96
+ allowReserved?: boolean;
97
+ };
98
+
99
+ type BodySerializer<T> = (body: OperationRequestBodyContent<T>) => any;
100
+
101
+ type PathSerializer = (pathname: string, pathParams: Record<string, unknown>) => string;
102
+
103
+ type BodyType<T = unknown> = {
104
+ json: T;
105
+ text: Awaited<ReturnType<Response["text"]>>;
106
+ blob: Awaited<ReturnType<Response["blob"]>>;
107
+ arrayBuffer: Awaited<ReturnType<Response["arrayBuffer"]>>;
108
+ stream: Response["body"];
109
+ };
110
+ type ParseAs = keyof BodyType;
111
+ type ParseAsResponse<T, Options> = Options extends {
112
+ parseAs: ParseAs;
113
+ }
114
+ ? BodyType<T>[Options["parseAs"]]
115
+ : T;
116
+
117
+ interface DefaultParamsOption {
118
+ params?: {
119
+ query?: Record<string, unknown>;
120
+ };
121
+ }
122
+
123
+ type ParamsOption<T> = T extends {
124
+ parameters: any;
125
+ }
126
+ ? RequiredKeysOf<T["parameters"]> extends never
127
+ ? { params?: T["parameters"] }
128
+ : { params: T["parameters"] }
129
+ : DefaultParamsOption;
130
+
131
+ // Writable<T> strips $Read markers (readOnly properties excluded from request body)
132
+ type RequestBodyOption<T> =
133
+ Writable<OperationRequestBodyContent<T>> extends never
134
+ ? { body?: never }
135
+ : IsOperationRequestBodyOptional<T> extends true
136
+ ? { body?: Writable<OperationRequestBodyContent<T>> }
137
+ : { body: Writable<OperationRequestBodyContent<T>> };
138
+
139
+ type FetchOptions<T> = RequestOptions<T> & Omit<RequestInit, "body" | "headers">;
140
+
141
+ // Readable<T> strips $Write markers (writeOnly properties excluded from response)
142
+ type FetchResponse<T extends Record<string | number, any>, Options, Media extends MediaType> =
143
+ | {
144
+ data: ParseAsResponse<Readable<SuccessResponse<ResponseObjectMap<T>, Media>>, Options>;
145
+ error?: never;
146
+ response: Response;
147
+ }
148
+ | {
149
+ data?: never;
150
+ error: Readable<ErrorResponse<ResponseObjectMap<T>, Media>>;
151
+ response: Response;
152
+ };
153
+
154
+ type RequestOptions<T> = ParamsOption<T> &
155
+ RequestBodyOption<T> & {
156
+ baseUrl?: string;
157
+ querySerializer?: QuerySerializer<T> | QuerySerializerOptions;
158
+ bodySerializer?: BodySerializer<T>;
159
+ pathSerializer?: PathSerializer;
160
+ parseAs?: ParseAs;
161
+ fetch?: ClientOptions["fetch"];
162
+ headers?: HeadersOptions;
163
+ middleware?: Middleware[];
164
+ };
165
+
166
+ type MergedOptions<T = unknown> = {
167
+ baseUrl: string;
168
+ parseAs: ParseAs;
169
+ querySerializer: QuerySerializer<T>;
170
+ bodySerializer: BodySerializer<T>;
171
+ pathSerializer: PathSerializer;
172
+ fetch: typeof globalThis.fetch;
173
+ };
174
+
175
+ interface MiddlewareRequestParams {
176
+ query?: Record<string, unknown>;
177
+ header?: Record<string, unknown>;
178
+ path?: Record<string, unknown>;
179
+ cookie?: Record<string, unknown>;
180
+ }
181
+
182
+ interface MiddlewareCallbackParams {
183
+ /** Current Request object */
184
+ request: Request;
185
+ /** The original OpenAPI schema path (including curly braces) */
186
+ readonly schemaPath: string;
187
+ /** OpenAPI parameters as provided from openapi-fetch */
188
+ readonly params: MiddlewareRequestParams;
189
+ /** Unique ID for this request */
190
+ readonly id: string;
191
+ /** createClient options (read-only) */
192
+ readonly options: MergedOptions;
193
+ }
194
+
195
+ type MiddlewareOnRequest = (
196
+ options: MiddlewareCallbackParams,
197
+ ) => void | Request | Response | undefined | Promise<Request | Response | undefined | void>;
198
+ type MiddlewareOnResponse = (
199
+ options: MiddlewareCallbackParams & { response: Response },
200
+ ) => void | Response | undefined | Promise<Response | undefined | void>;
201
+ type MiddlewareOnError = (
202
+ options: MiddlewareCallbackParams & { error: unknown },
203
+ ) => void | Response | Error | Promise<void | Response | Error>;
204
+
205
+ type Middleware =
206
+ | {
207
+ onRequest: MiddlewareOnRequest;
208
+ onResponse?: MiddlewareOnResponse;
209
+ onError?: MiddlewareOnError;
210
+ }
211
+ | {
212
+ onRequest?: MiddlewareOnRequest;
213
+ onResponse: MiddlewareOnResponse;
214
+ onError?: MiddlewareOnError;
215
+ }
216
+ | {
217
+ onRequest?: MiddlewareOnRequest;
218
+ onResponse?: MiddlewareOnResponse;
219
+ onError: MiddlewareOnError;
220
+ };
221
+
222
+ /** This type helper makes the 2nd function param required if params/requestBody are required; otherwise, optional */
223
+ type MaybeOptionalInit<Params, Location extends keyof Params> =
224
+ RequiredKeysOf<FetchOptions<FilterKeys<Params, Location>>> extends never
225
+ ? FetchOptions<FilterKeys<Params, Location>> | undefined
226
+ : FetchOptions<FilterKeys<Params, Location>>;
227
+
228
+ // The final init param to accept.
229
+ // - Determines if the param is optional or not.
230
+ // - Performs arbitrary [key: string] addition.
231
+ // Note: the addition MUST happen after all the inference happens (otherwise TS can’t infer if init is required or not).
232
+ type InitParam<Init> =
233
+ RequiredKeysOf<Init> extends never ? [(Init & { [key: string]: unknown })?] : [Init & { [key: string]: unknown }];
234
+
235
+ type ClientMethod<
236
+ Paths extends Record<string, Record<HttpMethod, {}>>,
237
+ Method extends HttpMethod,
238
+ Media extends MediaType,
239
+ > = <Path extends PathsWithMethod<Paths, Method>, Init extends MaybeOptionalInit<Paths[Path], Method>>(
240
+ url: Path,
241
+ ...init: InitParam<Init>
242
+ ) => Promise<FetchResponse<Paths[Path][Method], Init, Media>>;
243
+
244
+ type ClientRequestMethod<Paths extends Record<string, Record<HttpMethod, {}>>, Media extends MediaType> = <
245
+ Method extends HttpMethod,
246
+ Path extends PathsWithMethod<Paths, Method>,
247
+ Init extends MaybeOptionalInit<Paths[Path], Method>,
248
+ >(
249
+ method: Method,
250
+ url: Path,
251
+ ...init: InitParam<Init>
252
+ ) => Promise<FetchResponse<Paths[Path][Method], Init, Media>>;
253
+
254
+ interface Client<Paths extends {}, Media extends MediaType = MediaType> {
255
+ request: ClientRequestMethod<Paths, Media>;
256
+ /** Call a GET endpoint */
257
+ GET: ClientMethod<Paths, "get", Media>;
258
+ /** Call a PUT endpoint */
259
+ PUT: ClientMethod<Paths, "put", Media>;
260
+ /** Call a POST endpoint */
261
+ POST: ClientMethod<Paths, "post", Media>;
262
+ /** Call a DELETE endpoint */
263
+ DELETE: ClientMethod<Paths, "delete", Media>;
264
+ /** Call a OPTIONS endpoint */
265
+ OPTIONS: ClientMethod<Paths, "options", Media>;
266
+ /** Call a HEAD endpoint */
267
+ HEAD: ClientMethod<Paths, "head", Media>;
268
+ /** Call a PATCH endpoint */
269
+ PATCH: ClientMethod<Paths, "patch", Media>;
270
+ /** Call a TRACE endpoint */
271
+ TRACE: ClientMethod<Paths, "trace", Media>;
272
+ /** Register middleware */
273
+ use(...middleware: Middleware[]): void;
274
+ /** Unregister middleware */
275
+ eject(...middleware: Middleware[]): void;
276
+ }
277
+
278
+ /** Client-level defaults threaded into the generated facade. */
279
+ interface SpacebringDefaults {
280
+ /** Sent as the `spacebring-network-id` header where the API requires it. */
281
+ networkId?: string;
282
+ }
283
+ /** Per-request options accepted by every generated facade method. */
284
+ interface SpacebringRequestOptions {
285
+ /** Aborts the request — including any pending retry wait — when triggered. */
286
+ signal?: AbortSignal;
287
+ }
2
288
 
3
289
  /**
4
290
  * This file was auto-generated by openapi-typescript.
@@ -2266,7 +2552,7 @@ interface components {
2266
2552
  * @description Exchange rate provider when auto-update is enabled.
2267
2553
  * @enum {string}
2268
2554
  */
2269
- provider?: "fastForex" | "nbu" | "bcra" | "nbg" | "bcch";
2555
+ provider?: "fastForex" | "nbu" | "bcra" | "nbg" | "bcch" | "ecb";
2270
2556
  };
2271
2557
  /** @description Pre-built query string for the next page of results. Contains all active filter parameters combined with the next page token, ready to append to the endpoint URL. */
2272
2558
  searchQueryNext: string;
@@ -12047,7 +12333,7 @@ interface components {
12047
12333
  * @description Exchange rate provider when auto-update is enabled.
12048
12334
  * @enum {string}
12049
12335
  */
12050
- provider: "fastForex" | "nbu" | "bcra" | "nbg" | "bcch";
12336
+ provider: "fastForex" | "nbu" | "bcra" | "nbg" | "bcch" | "ecb";
12051
12337
  } | {
12052
12338
  /** @description Exchange rate relative to the location main currency. */
12053
12339
  exchangeRate: number;
@@ -12064,7 +12350,7 @@ interface components {
12064
12350
  * @description Exchange rate provider when auto-update is enabled.
12065
12351
  * @enum {string}
12066
12352
  */
12067
- provider: "fastForex" | "nbu" | "bcra" | "nbg" | "bcch";
12353
+ provider: "fastForex" | "nbu" | "bcra" | "nbg" | "bcch" | "ecb";
12068
12354
  } | {
12069
12355
  /** @description Exchange rate relative to the location main currency. */
12070
12356
  exchangeRate: number;
@@ -20252,6 +20538,10 @@ interface operations {
20252
20538
  getSubscriptions: {
20253
20539
  parameters: {
20254
20540
  query?: {
20541
+ /** @description Filter subscriptions created on or after this date (ISO 8601). Use with createDate[lte] for a range. */
20542
+ "createDate[gte]"?: string;
20543
+ /** @description Filter subscriptions created on or before this date (ISO 8601). Use with createDate[gte] for a range. */
20544
+ "createDate[lte]"?: string;
20255
20545
  /** @description UUID of the customer whose subscriptions to list. */
20256
20546
  customerRef?: string;
20257
20547
  /** @description Maximum number of subscriptions per page. Defaults to 25 when omitted or invalid; values above 100 are capped at 100. */
@@ -20262,6 +20552,8 @@ interface operations {
20262
20552
  nextPageToken?: string;
20263
20553
  /** @description Sort order for results. */
20264
20554
  order?: string;
20555
+ /** @description UUID of the plan to filter subscriptions by. */
20556
+ planRef?: string;
20265
20557
  /**
20266
20558
  * @description Filter by subscription status. Comma-separated values, e.g. `active,scheduled`. Defaults to `active`, `scheduled`, and `incomplete` when omitted.
20267
20559
  *
@@ -21186,6 +21478,19 @@ interface operations {
21186
21478
  nextPageToken?: components["schemas"]["nextPageToken"];
21187
21479
  /** @description The id of the location. */
21188
21480
  locationRef: string;
21481
+ /** @description The create date filter of items. */
21482
+ createDate?: {
21483
+ /**
21484
+ * Format: date-time
21485
+ * @description Get contacts with less or equal create date. Example: createDate[lte]=2021-05-21T10:00:00Z
21486
+ */
21487
+ lte?: string;
21488
+ /**
21489
+ * Format: date-time
21490
+ * @description Get contacts with greater or equal create date. Example: createDate[gte]=2021-05-21T10:00:00Z
21491
+ */
21492
+ gte?: string;
21493
+ };
21189
21494
  };
21190
21495
  header?: {
21191
21496
  /** @description The id of the network. Required when using bearer token authentication */
@@ -21300,6 +21605,19 @@ interface operations {
21300
21605
  nextPageToken?: components["schemas"]["nextPageToken"];
21301
21606
  /** @description The number of items to return. */
21302
21607
  limit?: number;
21608
+ /** @description The create date filter of items. */
21609
+ createDate?: {
21610
+ /**
21611
+ * Format: date-time
21612
+ * @description Get requests with less or equal create date. Example: createDate[lte]=2021-05-21T10:00:00Z
21613
+ */
21614
+ lte?: string;
21615
+ /**
21616
+ * Format: date-time
21617
+ * @description Get requests with greater or equal create date. Example: createDate[gte]=2021-05-21T10:00:00Z
21618
+ */
21619
+ gte?: string;
21620
+ };
21303
21621
  };
21304
21622
  header?: {
21305
21623
  /** @description The id of the network. Required when using bearer token authentication */
@@ -21495,6 +21813,19 @@ interface operations {
21495
21813
  */
21496
21814
  gte?: string;
21497
21815
  };
21816
+ /** @description The visit date filter of items. */
21817
+ date?: {
21818
+ /**
21819
+ * Format: date-time
21820
+ * @description Get visits with less or equal visit date. Example: date[lte]=2021-05-21T10:00:00Z
21821
+ */
21822
+ lte?: string;
21823
+ /**
21824
+ * Format: date-time
21825
+ * @description Get visits with greater or equal visit date. Example: date[gte]=2021-05-21T10:00:00Z
21826
+ */
21827
+ gte?: string;
21828
+ };
21498
21829
  /** @description The number of items to return */
21499
21830
  limit?: number;
21500
21831
  /** @description Token to retrieve the next page of results. */
@@ -21738,25 +22069,63 @@ interface operations {
21738
22069
  };
21739
22070
  }
21740
22071
 
21741
- /** Client-level defaults threaded into the generated facade. */
21742
- interface SpacebringDefaults {
21743
- /** Sent as the `spacebring-network-id` header where the API requires it. */
21744
- networkId?: string;
21745
- }
21746
- /** Per-request options accepted by every generated facade method. */
21747
- interface SpacebringRequestOptions {
21748
- /** Aborts the request — including any pending retry wait — when triggered. */
21749
- signal?: AbortSignal;
21750
- }
21751
-
21752
22072
  /** A Contact entity as returned by the Spacebring API. */
21753
22073
  type Contact = NonNullable<operations["getContact"]["responses"][200]["content"]["application/json"]["contact"]>;
21754
22074
  /** A Request entity as returned by the Spacebring API. */
21755
- type Request = NonNullable<operations["getRequest"]["responses"][200]["content"]["application/json"]["request"]>;
22075
+ type Request$1 = NonNullable<operations["getRequest"]["responses"][200]["content"]["application/json"]["request"]>;
21756
22076
  /** A RequestVisit entity as returned by the Spacebring API. */
21757
22077
  type RequestVisit = NonNullable<operations["approveRequest"]["responses"][201]["content"]["application/json"]["visit"]>;
21758
22078
  /** A VisitorVisit entity as returned by the Spacebring API. */
21759
22079
  type VisitorVisit = NonNullable<operations["getVisit"]["responses"][200]["content"]["application/json"]["visit"]>;
22080
+ /** Query parameters for `sb.visitors.contacts.list()`. */
22081
+ interface GetContactsQuery {
22082
+ /** The maximum number of contacts to return. Default is 25. */
22083
+ limit?: number;
22084
+ /** Token to retrieve the next page of results. */
22085
+ nextPageToken?: string;
22086
+ /** The id of the location. */
22087
+ locationRef: string;
22088
+ /** The create date filter of items. */
22089
+ createDate?: {
22090
+ lte?: string;
22091
+ gte?: string;
22092
+ };
22093
+ }
22094
+ /** Query parameters for `sb.visitors.requests.list()`. */
22095
+ interface GetRequestsQuery {
22096
+ /** The id of the location. */
22097
+ locationRef: string;
22098
+ /** Token to retrieve the next page of results. */
22099
+ nextPageToken?: string;
22100
+ /** The number of items to return. */
22101
+ limit?: number;
22102
+ /** The create date filter of items. */
22103
+ createDate?: {
22104
+ lte?: string;
22105
+ gte?: string;
22106
+ };
22107
+ }
22108
+ /** Query parameters for `sb.visitors.visits.list()`. */
22109
+ interface GetVisitsQuery {
22110
+ /** The id of the location. */
22111
+ locationRef: string;
22112
+ /** The id of the user, host of the visit. */
22113
+ userRefHost?: string;
22114
+ /** The date filter of items. */
22115
+ createDate?: {
22116
+ lte?: string;
22117
+ gte?: string;
22118
+ };
22119
+ /** The visit date filter of items. */
22120
+ date?: {
22121
+ lte?: string;
22122
+ gte?: string;
22123
+ };
22124
+ /** The number of items to return */
22125
+ limit?: number;
22126
+ /** Token to retrieve the next page of results. */
22127
+ nextPageToken?: string;
22128
+ }
21760
22129
 
21761
22130
  /** A Balance entity as returned by the Spacebring API. */
21762
22131
  type Balance = NonNullable<operations["getCreditsBalance"]["responses"][200]["content"]["application/json"]["balances"]>[number];
@@ -21766,14 +22135,108 @@ type CreditTransaction = NonNullable<operations["getCreditsTransactions"]["respo
21766
22135
  type DayPassTransaction = NonNullable<operations["getDayPassesTransactions"]["responses"][200]["content"]["application/json"]["transactions"]>[number];
21767
22136
  /** A MoneyTransaction entity as returned by the Spacebring API. */
21768
22137
  type MoneyTransaction = NonNullable<operations["getMoneyTransaction"]["responses"][200]["content"]["application/json"]["transaction"]>;
22138
+ /** Query parameters for `sb.transactions.credits.list()`. */
22139
+ interface GetCreditsTransactionsQuery {
22140
+ /** The number of items to return */
22141
+ limit?: number;
22142
+ /** Token to retrieve the next page of results. */
22143
+ nextPageToken?: string;
22144
+ /** The date filter of items. */
22145
+ createDate?: {
22146
+ lte?: string;
22147
+ gte?: string;
22148
+ };
22149
+ /** The id of the location to get transactions for */
22150
+ locationRef?: string;
22151
+ /** The id of the membership to get transactions for */
22152
+ membershipRef?: string;
22153
+ /** The id of the company to get transactions for */
22154
+ companyRef?: string;
22155
+ }
22156
+ /** Query parameters for `sb.transactions.dayPasses.list()`. */
22157
+ interface GetDayPassesTransactionsQuery {
22158
+ /** @deprecated Use customerRef instead. The id of the company to get transactions for. */
22159
+ companyRef?: string;
22160
+ /** Get transactions with greater or equal createDate. Example: createDate[gte]=2021-05-21T10:00:00Z */
22161
+ "createDate[gte]"?: string;
22162
+ /** Get transactions with less or equal createDate. Example: createDate[lte]=2021-05-21T10:00:00Z */
22163
+ "createDate[lte]"?: string;
22164
+ /** UUID of the company or membership whose day pass transactions to list. */
22165
+ customerRef?: string;
22166
+ /** Maximum number of transactions per page. Defaults to 25 when omitted or invalid; values above 100 are capped at 100. */
22167
+ limit?: number;
22168
+ /** UUID of the location whose day pass transactions to list. */
22169
+ locationRef?: string;
22170
+ /** @deprecated Use customerRef instead. The id of the membership to get transactions for. */
22171
+ membershipRef?: string;
22172
+ /** Token to retrieve the next page of results. */
22173
+ nextPageToken?: string;
22174
+ /** Filter by transaction type. Comma-separated storage type values, e.g. `type=refund,booking`. Matches analytics report type filters. */
22175
+ type?: string;
22176
+ }
22177
+ /** Query parameters for `sb.transactions.money.list()`. */
22178
+ interface GetMoneyTransactionsQuery {
22179
+ /** The id of the location */
22180
+ locationRef: string;
22181
+ /** The number of items to return */
22182
+ limit?: number;
22183
+ /** The payment status of transactions */
22184
+ status?: "canceled" | "failed" | "pending" | "processing" | "succeeded";
22185
+ /** The type of transactions */
22186
+ type?: "booking" | "creditPackage" | "eventTicket" | "invoice" | "order" | "subscription";
22187
+ /** The date filter of items. */
22188
+ createDate?: {
22189
+ lte?: string;
22190
+ gte?: string;
22191
+ };
22192
+ /** Token to retrieve the next page of results. */
22193
+ nextPageToken?: string;
22194
+ }
21769
22195
 
21770
22196
  /** A Activity entity as returned by the Spacebring API. */
21771
22197
  type Activity = NonNullable<operations["createSupportTicketComment"]["responses"][201]["content"]["application/json"]["activity"]>;
21772
22198
  /** A SupportTicket entity as returned by the Spacebring API. */
21773
22199
  type SupportTicket = NonNullable<operations["getSupportTickets"]["responses"][200]["content"]["application/json"]["tickets"]>[number];
22200
+ /** Query parameters for `sb.support.tickets.list()`. */
22201
+ interface GetSupportTicketsQuery {
22202
+ /** The id of the location. */
22203
+ locationRef: string;
22204
+ /** The number of items to return */
22205
+ limit?: number;
22206
+ /** Token to retrieve the next page of results. */
22207
+ nextPageToken?: string;
22208
+ }
21774
22209
 
21775
22210
  /** A Subscription entity as returned by the Spacebring API. */
21776
22211
  type Subscription = NonNullable<operations["getSubscription"]["responses"][200]["content"]["application/json"]["subscription"]>;
22212
+ /** Query parameters for `sb.subscriptions.list()`. */
22213
+ interface GetSubscriptionsQuery {
22214
+ /** Filter subscriptions created on or after this date (ISO 8601). Use with createDate[lte] for a range. */
22215
+ "createDate[gte]"?: string;
22216
+ /** Filter subscriptions created on or before this date (ISO 8601). Use with createDate[gte] for a range. */
22217
+ "createDate[lte]"?: string;
22218
+ /** UUID of the customer whose subscriptions to list. */
22219
+ customerRef?: string;
22220
+ /** Maximum number of subscriptions per page. Defaults to 25 when omitted or invalid; values above 100 are capped at 100. */
22221
+ limit?: number;
22222
+ /** UUID of the location whose subscriptions to list. */
22223
+ locationRef?: string;
22224
+ /** Pagination token from nextPageToken in a previous response. Keep the same filters when fetching the next page. */
22225
+ nextPageToken?: string;
22226
+ /** Sort order for results. */
22227
+ order?: string;
22228
+ /** UUID of the plan to filter subscriptions by. */
22229
+ planRef?: string;
22230
+ /** Filter by subscription status. Comma-separated values, e.g. `active,scheduled`. Defaults to `active`, `scheduled`, and `incomplete` when omitted.
22231
+
22232
+ Supported values:
22233
+ - **active** — currently active
22234
+ - **scheduled** — scheduled to start
22235
+ - **incomplete** — pending setup or payment
22236
+ - **incompleteExpired** — incomplete and expired
22237
+ - **canceled** — canceled */
22238
+ status?: string;
22239
+ }
21777
22240
 
21778
22241
  /** A Order entity as returned by the Spacebring API. */
21779
22242
  type Order = NonNullable<operations["getOrder"]["responses"][200]["content"]["application/json"]["order"]>;
@@ -21781,17 +22244,126 @@ type Order = NonNullable<operations["getOrder"]["responses"][200]["content"]["ap
21781
22244
  type Product = NonNullable<operations["getProduct"]["responses"][200]["content"]["application/json"]["product"]>;
21782
22245
  /** A ShopCategory entity as returned by the Spacebring API. */
21783
22246
  type ShopCategory = NonNullable<operations["getShopCategory"]["responses"][200]["content"]["application/json"]["category"]>;
22247
+ /** Query parameters for `sb.shop.orders.list()`. */
22248
+ interface GetOrdersQuery {
22249
+ /** Comma-separated shop category UUIDs used to filter orders, e.g. `uuid1,uuid2`. */
22250
+ categoryRef?: string;
22251
+ /** Filter orders created on or after this date (ISO 8601). Use with createDate[lte] for a range. */
22252
+ "createDate[gte]"?: string;
22253
+ /** Filter orders created on or before this date (ISO 8601). Use with createDate[gte] for a range. */
22254
+ "createDate[lte]"?: string;
22255
+ /** UUID of the customer whose orders to list. */
22256
+ customerRef?: string;
22257
+ /** Maximum number of orders per page. Defaults to 25 when omitted or invalid; values above 100 are capped at 100. */
22258
+ limit?: number;
22259
+ /** UUID of the location whose orders to list. */
22260
+ locationRef?: string;
22261
+ /** Pagination token from nextPageToken in a previous response. Keep the same filters when fetching the next page. */
22262
+ nextPageToken?: string;
22263
+ /** Comma-separated product UUIDs used to filter orders, e.g. `uuid1,uuid2`. */
22264
+ productRef?: string;
22265
+ /** Filter by order status. Comma-separated values, e.g. `new,inProgress`. Defaults to `new`, `inProgress`, and `completed` when omitted.
22266
+
22267
+ Supported values:
22268
+ - **new** — placed, awaiting fulfillment
22269
+ - **inProgress** — being fulfilled
22270
+ - **completed** — fulfilled
22271
+ - **canceled** — canceled */
22272
+ status?: string;
22273
+ /** UUID of the user whose orders to list. */
22274
+ userRef?: string;
22275
+ }
22276
+ /** Query parameters for `sb.shop.products.list()`. */
22277
+ interface GetProductsQuery {
22278
+ /** UUID of the shop category. */
22279
+ categoryRef?: string;
22280
+ /** Comma-separated product UUIDs, e.g. `uuid1,uuid2`. Up to 25 ids per request. */
22281
+ id?: string;
22282
+ /** Maximum number of products per page. Defaults to 25 when omitted or invalid; values above 100 are capped at 100. */
22283
+ limit?: number;
22284
+ /** UUID of the location. */
22285
+ locationRef?: string;
22286
+ /** Pagination token from nextPageToken in a previous response. Keep the same filters when fetching the next page. */
22287
+ nextPageToken?: string;
22288
+ }
22289
+ /** Query parameters for `sb.shop.categories.list()`. */
22290
+ interface GetShopCategoriesQuery {
22291
+ /** UUID of the location whose shop categories to list. */
22292
+ locationRef: string;
22293
+ }
21784
22294
 
21785
22295
  /** A Booking entity as returned by the Spacebring API. */
21786
22296
  type Booking = NonNullable<operations["getBooking"]["responses"][200]["content"]["application/json"]["booking"]>;
21787
22297
  /** A Resource entity as returned by the Spacebring API. */
21788
22298
  type Resource = NonNullable<operations["getResource"]["responses"][200]["content"]["application/json"]["resource"]>;
22299
+ /** Query parameters for `sb.resources.bookings.list()`. */
22300
+ interface GetBookingsQuery {
22301
+ /** The id of the resource. Required if `locationRef` is not passed. */
22302
+ resourceRef?: string;
22303
+ /** The id of the location. Required if `resourceRef` is not passed. */
22304
+ locationRef?: string;
22305
+ /** The id of the membership owner. */
22306
+ membershipRefOwner?: string;
22307
+ /** The date filter of items. */
22308
+ endDate?: {
22309
+ lte?: string;
22310
+ gte?: string;
22311
+ lt?: string;
22312
+ gt?: string;
22313
+ };
22314
+ /** The date filter of items. */
22315
+ startDate?: {
22316
+ lte?: string;
22317
+ gte?: string;
22318
+ lt?: string;
22319
+ gt?: string;
22320
+ };
22321
+ /** The number of items to return */
22322
+ limit?: number;
22323
+ /** The order of filtered items. Format - `field:order`. Possible field values are `createDate`, `endDate`, `startDate`, `id`. Order values - `asc`, `desc`. */
22324
+ order?: string;
22325
+ /** Token to retrieve the next page of results. */
22326
+ nextPageToken?: string;
22327
+ /** The types of resources to retrieve bookings for. Pass them as comma separated values. */
22328
+ types?: "hotDesk" | "dedicatedDesk" | "office" | "parkingLot" | "room";
22329
+ }
22330
+ /** Query parameters for `sb.resources.list()`. */
22331
+ interface GetResourcesQuery {
22332
+ /** The id of the location. */
22333
+ locationRef: string;
22334
+ /** The types of resources to retrieve. Pass them as comma separated values. */
22335
+ types?: "hotDesk" | "dedicatedDesk" | "office" | "parkingLot" | "room";
22336
+ /** Token to retrieve the next page of results. */
22337
+ nextPageToken?: string;
22338
+ /** The number of items to return. */
22339
+ limit?: number;
22340
+ }
21789
22341
 
21790
22342
  /** A Registration entity as returned by the Spacebring API. */
21791
22343
  type Registration = NonNullable<operations["getRegistrations"]["responses"][200]["content"]["application/json"]["registrations"]>[number];
22344
+ /** Query parameters for `sb.registrations.list()`. */
22345
+ interface GetRegistrationsQuery {
22346
+ /** The number of items to return */
22347
+ limit?: number;
22348
+ /** Token to retrieve the next page of results. */
22349
+ nextPageToken?: string;
22350
+ }
21792
22351
 
21793
22352
  /** A Plan entity as returned by the Spacebring API. */
21794
22353
  type Plan = NonNullable<operations["getPlan"]["responses"][200]["content"]["application/json"]["plan"]>;
22354
+ /** Query parameters for `sb.plans.list()`. */
22355
+ interface GetPlansQuery {
22356
+ /** When listing plans for a resource, filter by entire resource vs partial tiers. Pass true or false. */
22357
+ entire?: string;
22358
+ /** Maximum number of plans per page. Defaults to 25 when omitted or invalid; values above 100 are capped at 100. */
22359
+ limit?: number;
22360
+ /** UUID of the location whose plans to list. */
22361
+ locationRef?: string;
22362
+ /** Pagination token from nextPageToken in a previous response. Keep the same filters when fetching the next page. */
22363
+ nextPageToken?: string;
22364
+ /** UUID of the resource whose tier plans to list. */
22365
+ resourceRef?: string;
22366
+ }
21795
22367
 
21796
22368
  /** A Network entity as returned by the Spacebring API. */
21797
22369
  type Network = NonNullable<operations["getNetworks"]["responses"][200]["content"]["application/json"]["networks"]>[number];
@@ -21801,6 +22373,25 @@ type Location = NonNullable<operations["getLocation"]["responses"][200]["content
21801
22373
 
21802
22374
  /** A Guide entity as returned by the Spacebring API. */
21803
22375
  type Guide = NonNullable<operations["getGuide"]["responses"][200]["content"]["application/json"]["guide"]>;
22376
+ /** Query parameters for `sb.guides.list()`. */
22377
+ interface GetGuidesQuery {
22378
+ /** Maximum number of guides per page. Defaults to 25 when omitted or invalid; values above 100 are capped at 100. */
22379
+ limit?: number;
22380
+ /** UUID of the location whose guides to list. */
22381
+ locationRef: string;
22382
+ /** Pagination token from nextPageToken in a previous response. Keep the same filters when fetching the next page. */
22383
+ nextPageToken?: string;
22384
+ }
22385
+
22386
+ /** Query parameters for `sb.floors.list()`. */
22387
+ interface GetFloorsQuery {
22388
+ /** The limit of the floors. */
22389
+ limit?: number;
22390
+ /** The id of the location. */
22391
+ locationRef: string;
22392
+ /** Token to retrieve the next page of results. */
22393
+ nextPageToken?: string;
22394
+ }
21804
22395
 
21805
22396
  /** A CommentLike entity as returned by the Spacebring API. */
21806
22397
  type CommentLike = NonNullable<operations["createLikeForPostComment"]["responses"][201]["content"]["application/json"]["like"]>;
@@ -21812,11 +22403,40 @@ type Post = NonNullable<operations["getFeedPost"]["responses"][200]["content"]["
21812
22403
  type PostComment = NonNullable<operations["getPostComments"]["responses"][200]["content"]["application/json"]["comments"]>[number];
21813
22404
  /** A PostLike entity as returned by the Spacebring API. */
21814
22405
  type PostLike = NonNullable<operations["getLikesForPost"]["responses"][200]["content"]["application/json"]["likes"]>[number];
22406
+ /** Query parameters for `sb.feed.posts.list()`. */
22407
+ interface GetFeedPostsQuery {
22408
+ /** The id of the location. */
22409
+ locationRef: string;
22410
+ /** Token to retrieve the next page of results. */
22411
+ nextPageToken?: string;
22412
+ /** The number of items to return. */
22413
+ limit?: number;
22414
+ }
21815
22415
 
21816
22416
  /** A Event entity as returned by the Spacebring API. */
21817
22417
  type Event = NonNullable<operations["getEvent"]["responses"][200]["content"]["application/json"]["event"]>;
21818
22418
  /** A EventTicket entity as returned by the Spacebring API. */
21819
22419
  type EventTicket = NonNullable<operations["getEventTicket"]["responses"][200]["content"]["application/json"]["ticket"]>;
22420
+ /** Query parameters for `sb.events.list()`. */
22421
+ interface GetEventsByOrganizationQuery {
22422
+ /** The id of the location. */
22423
+ locationRef: string;
22424
+ /** The number of events to retrieve. Default: 25 */
22425
+ limit?: number;
22426
+ /** Token to retrieve the next page of results. */
22427
+ nextPageToken?: string;
22428
+ /** The order of the events. createDate:asc, createDate:desc, startDate:asc, startDate:desc, endDate:asc, endDate:desc or relevance */
22429
+ order?: string;
22430
+ }
22431
+ /** Query parameters for `sb.events.tickets.list()`. */
22432
+ interface GetEventTicketsQuery {
22433
+ /** The id of the location. */
22434
+ locationRef: string;
22435
+ /** The number of items to return */
22436
+ limit?: number;
22437
+ /** Token to retrieve the next page of results. */
22438
+ nextPageToken?: string;
22439
+ }
21820
22440
 
21821
22441
  /** A Coupon entity as returned by the Spacebring API. */
21822
22442
  type Coupon = NonNullable<operations["getCoupon"]["responses"][200]["content"]["application/json"]["coupon"]>;
@@ -21824,14 +22444,108 @@ type Coupon = NonNullable<operations["getCoupon"]["responses"][200]["content"]["
21824
22444
  type Promocode = NonNullable<operations["getPromocode"]["responses"][200]["content"]["application/json"]["promocode"]>;
21825
22445
  /** A Redemption entity as returned by the Spacebring API. */
21826
22446
  type Redemption = NonNullable<operations["getDiscountRedemptions"]["responses"][200]["content"]["application/json"]["redemptions"]>[number];
22447
+ /** Query parameters for `sb.discounts.coupons.list()`. */
22448
+ interface GetCouponsQuery {
22449
+ /** The id of the location */
22450
+ locationRef: string;
22451
+ /** Comma-separated list of coupon types to filter by */
22452
+ type?: "creditPackages" | "desks" | "equipment" | "events" | "products" | "rooms" | "subscriptionItems";
22453
+ /** The number of coupons to retrieve. Default: 25 */
22454
+ limit?: number;
22455
+ /** Token to retrieve the next page of results. */
22456
+ nextPageToken?: string;
22457
+ }
22458
+ /** Query parameters for `sb.discounts.redemptions.list()`. */
22459
+ interface GetDiscountRedemptionsQuery {
22460
+ /** The id of the coupon. Either couponRef or promocodeRef is required */
22461
+ couponRef?: string;
22462
+ /** The id of the promocode. Either couponRef or promocodeRef is required */
22463
+ promocodeRef?: string;
22464
+ /** The number of items to return */
22465
+ limit?: number;
22466
+ /** Token to retrieve the next page of results. */
22467
+ nextPageToken?: string;
22468
+ }
22469
+ /** Query parameters for `sb.discounts.promocodes.list()`. */
22470
+ interface GetPromocodesQuery {
22471
+ /** The id of the location. At least one of locationRef or couponRef is required */
22472
+ locationRef?: string;
22473
+ /** The id of the coupon. At least one of locationRef or couponRef is required */
22474
+ couponRef?: string;
22475
+ }
21827
22476
 
21828
22477
  /** A Contract entity as returned by the Spacebring API. */
21829
22478
  type Contract = NonNullable<operations["getContract"]["responses"][200]["content"]["application/json"]["contract"]>;
22479
+ /** Query parameters for `sb.contracts.list()`. */
22480
+ interface GetContractsQuery {
22481
+ /** UUID of the customer (membership or company). Provide customerRef or locationRef; when set, returns only that customer's contracts. */
22482
+ customerRef?: string;
22483
+ /** Maximum number of contracts per page. Defaults to 25 when omitted or invalid; values above 100 are capped at 100. */
22484
+ limit?: number;
22485
+ /** UUID of the location. Provide customerRef or locationRef; when set, returns contracts in that location. */
22486
+ locationRef?: string;
22487
+ /** Pagination token from nextPageToken in a previous response. Keep the same filters when fetching the next page. */
22488
+ nextPageToken?: string;
22489
+ /** Case-insensitive search by contract title. Requires customerRef or locationRef to scope the search. */
22490
+ q?: string;
22491
+ /** Filter by contract status. Comma-separated values, e.g. `draft,issued`.
22492
+
22493
+ Supported values:
22494
+ - **draft** — created but not sent
22495
+ - **issued** — sent, awaiting signature
22496
+ - **signed** — active
22497
+ - **declined** — rejected
22498
+ - **terminated** — cancelled after signing */
22499
+ status?: string;
22500
+ }
21830
22501
 
21831
22502
  /** A Company entity as returned by the Spacebring API. */
21832
22503
  type Company = NonNullable<operations["getCompany"]["responses"][200]["content"]["application/json"]["company"]>;
21833
22504
  /** A Membership entity as returned by the Spacebring API. */
21834
22505
  type Membership = NonNullable<operations["getMembership"]["responses"][200]["content"]["application/json"]["membership"]>;
22506
+ /** Query parameters for `sb.community.companies.list()`. */
22507
+ interface GetCompaniesQuery {
22508
+ /** The id of the location. */
22509
+ locationRef: string;
22510
+ /** The number of items to return */
22511
+ limit?: number;
22512
+ /** Token to retrieve the next page of results. */
22513
+ nextPageToken?: string;
22514
+ /** Filter by company's title */
22515
+ title?: string;
22516
+ /** Filter by types. Pass them as comma separated values. */
22517
+ types?: "member" | "nonmember";
22518
+ }
22519
+ /** Query parameters for `sb.community.memberships.listDeleted()`. */
22520
+ interface GetMembershipsDeletedQuery {
22521
+ /** The id of the location. */
22522
+ locationRef: string;
22523
+ /** The number of items to return */
22524
+ limit?: number;
22525
+ /** Filter by user's email */
22526
+ userEmail?: string;
22527
+ /** Token to retrieve the next page of results. */
22528
+ nextPageToken?: string;
22529
+ }
22530
+ /** Query parameters for `sb.community.memberships.list()`. */
22531
+ interface GetMembershipsQuery {
22532
+ /** Filter by company reference */
22533
+ companyRef?: string;
22534
+ /** The id of the location. */
22535
+ locationRef: string;
22536
+ /** The number of items to return */
22537
+ limit?: number;
22538
+ /** Token to retrieve the next page of results. */
22539
+ nextPageToken?: string;
22540
+ /** Filter by user's email */
22541
+ userEmail?: string;
22542
+ /** The id of the user */
22543
+ userRef?: string;
22544
+ /** use requested to get all membership requests */
22545
+ status?: "requested";
22546
+ /** Filter by types. Pass them as comma separated values. */
22547
+ types?: "member" | "nonmember";
22548
+ }
21835
22549
 
21836
22550
  /** A CreditNote entity as returned by the Spacebring API. */
21837
22551
  type CreditNote = NonNullable<operations["getCreditNote"]["responses"][200]["content"]["application/json"]["creditNote"]>;
@@ -21839,6 +22553,72 @@ type CreditNote = NonNullable<operations["getCreditNote"]["responses"][200]["con
21839
22553
  type Invoice = NonNullable<operations["getInvoice"]["responses"][200]["content"]["application/json"]["invoice"]>;
21840
22554
  /** A InvoiceItem entity as returned by the Spacebring API. */
21841
22555
  type InvoiceItem = NonNullable<operations["getInvoiceItem"]["responses"][200]["content"]["application/json"]["invoiceItem"]>;
22556
+ /** Query parameters for `sb.billing.creditNotes.list()`. */
22557
+ interface GetCreditNotesQuery {
22558
+ /** Filter credit notes created on or after this date (ISO 8601). Use with createDate[lte] for a range. */
22559
+ "createDate[gte]"?: string;
22560
+ /** Filter credit notes created on or before this date (ISO 8601). Use with createDate[gte] for a range. */
22561
+ "createDate[lte]"?: string;
22562
+ /** UUID of the invoice whose credit notes to list. */
22563
+ invoiceRef?: string;
22564
+ /** Maximum number of credit notes per page. Defaults to 25 when omitted or invalid; values above 100 are capped at 100. */
22565
+ limit?: number;
22566
+ /** UUID of the location whose credit notes to list. */
22567
+ locationRef?: string;
22568
+ /** Pagination token from nextPageToken in a previous response. Keep the same filters when fetching the next page. */
22569
+ nextPageToken?: string;
22570
+ /** Filter by credit note status. Comma-separated values, e.g. `issued,voided`.
22571
+
22572
+ Supported values:
22573
+ - **issued** — active credit note
22574
+ - **voided** — cancelled and no longer valid */
22575
+ status?: string;
22576
+ }
22577
+ /** Query parameters for `sb.billing.invoices.list()`. */
22578
+ interface GetInvoicesQuery {
22579
+ /** @deprecated Use customerRef instead. UUID of the company whose invoices to list. */
22580
+ companyRef?: string;
22581
+ /** Filter invoices created on or after this date (ISO 8601). Use with createDate[lte] for a range. */
22582
+ "createDate[gte]"?: string;
22583
+ /** Filter invoices created on or before this date (ISO 8601). Use with createDate[gte] for a range. */
22584
+ "createDate[lte]"?: string;
22585
+ /** UUID of the customer whose invoices to list. */
22586
+ customerRef?: string;
22587
+ /** Filter invoices issued on or after this date (ISO 8601). Use with issueDate[lte] for a range. */
22588
+ "issueDate[gte]"?: string;
22589
+ /** Filter invoices issued on or before this date (ISO 8601). Use with issueDate[gte] for a range. */
22590
+ "issueDate[lte]"?: string;
22591
+ /** Maximum number of invoices per page. Defaults to 25 when omitted or invalid; values above 100 are capped at 100. */
22592
+ limit?: number;
22593
+ /** UUID of the location whose invoices to list. */
22594
+ locationRef?: string;
22595
+ /** @deprecated Use customerRef instead. UUID of the membership whose invoices to list. */
22596
+ membershipRef?: string;
22597
+ /** Pagination token from nextPageToken in a previous response. Keep the same filters when fetching the next page. */
22598
+ nextPageToken?: string;
22599
+ /** Case-insensitive search by invoice code or number. Requires customerRef or locationRef. */
22600
+ q?: string;
22601
+ /** Filter by invoice status. Comma-separated values, e.g. `draft,issued`.
22602
+
22603
+ Supported values:
22604
+ - **draft** — created but not sent
22605
+ - **issued** — sent to the customer but unpaid
22606
+ - **paid** — fully paid
22607
+ - **voided** — cancelled and no longer valid */
22608
+ status?: string;
22609
+ }
22610
+ /** Query parameters for `sb.billing.invoices.items.getUpcoming()`. */
22611
+ interface GetUpcomingInvoiceItemsQuery {
22612
+ /** The id of the company. */
22613
+ companyRef?: string;
22614
+ /** The id of the membership. */
22615
+ membershipRef?: string;
22616
+ }
22617
+ /** Query parameters for `sb.billing.invoices.getUpcoming()`. */
22618
+ interface GetUpcomingInvoiceQuery {
22619
+ /** The id of the subscription. */
22620
+ subscriptionRef?: string;
22621
+ }
21842
22622
 
21843
22623
  /** A Application entity as returned by the Spacebring API. */
21844
22624
  type Application = NonNullable<operations["getBenefitApplication"]["responses"][200]["content"]["application/json"]["application"]>;
@@ -21846,33 +22626,93 @@ type Application = NonNullable<operations["getBenefitApplication"]["responses"][
21846
22626
  type Benefit = NonNullable<operations["getBenefit"]["responses"][200]["content"]["application/json"]["benefit"]>;
21847
22627
  /** A BenefitCategory entity as returned by the Spacebring API. */
21848
22628
  type BenefitCategory = NonNullable<operations["getBenefitCategory"]["responses"][200]["content"]["application/json"]["category"]>;
22629
+ /** Query parameters for `sb.benefits.applications.list()`. */
22630
+ interface GetBenefitApplicationsQuery {
22631
+ /** UUID of the benefit. */
22632
+ benefitRef?: string;
22633
+ /** Comma-separated benefit category UUIDs, e.g. `uuid1,uuid2`. */
22634
+ categoryRef?: string;
22635
+ /** Filter applications submitted on or after this date (ISO 8601). Use with createDate[lte] for a range. */
22636
+ "createDate[gte]"?: string;
22637
+ /** Filter applications submitted on or before this date (ISO 8601). Use with createDate[gte] for a range. */
22638
+ "createDate[lte]"?: string;
22639
+ /** UUID of the customer whose applications to list. */
22640
+ customerRef?: string;
22641
+ /** Maximum number of applications per page. Defaults to 25 when omitted or invalid; values above 100 are capped at 100. */
22642
+ limit?: number;
22643
+ /** UUID of the location. */
22644
+ locationRef?: string;
22645
+ /** Pagination token from nextPageToken in a previous response. Keep the same filters when fetching the next page. */
22646
+ nextPageToken?: string;
22647
+ /** UUID of the user whose applications to list. */
22648
+ userRef?: string;
22649
+ }
22650
+ /** Query parameters for `sb.benefits.categories.list()`. */
22651
+ interface GetBenefitCategoriesQuery {
22652
+ /** UUID of the location whose benefit categories to list. */
22653
+ locationRef: string;
22654
+ }
22655
+ /** Query parameters for `sb.benefits.list()`. */
22656
+ interface GetBenefitsQuery {
22657
+ /** UUID of the benefit category. */
22658
+ categoryRef?: string;
22659
+ /** Filter by featured status. Pass true or false. */
22660
+ featured?: boolean;
22661
+ /** Maximum number of benefits per page. Defaults to 25 when omitted or invalid; values above 100 are capped at 100. */
22662
+ limit?: number;
22663
+ /** UUID of the location. */
22664
+ locationRef?: string;
22665
+ /** Pagination token from nextPageToken in a previous response. Keep the same filters when fetching the next page. */
22666
+ nextPageToken?: string;
22667
+ }
21849
22668
 
21850
22669
  /** A AltCurrency entity as returned by the Spacebring API. */
21851
22670
  type AltCurrency = NonNullable<operations["getAltCurrencies"]["responses"][200]["content"]["application/json"]["altCurrencies"]>[number];
22671
+ /** Query parameters for `sb.altCurrencies.list()`. */
22672
+ interface GetAltCurrenciesQuery {
22673
+ /** The id of the location */
22674
+ locationRef: string;
22675
+ /** Token to retrieve the next page of results. */
22676
+ nextPageToken?: string;
22677
+ /** The number of items to return. */
22678
+ limit?: number;
22679
+ }
21852
22680
 
21853
22681
  declare function createResources(client: Client<paths>, defaults: SpacebringDefaults): {
21854
22682
  altCurrencies: {
21855
- list(query: operations["getAltCurrencies"]["parameters"]["query"], options?: SpacebringRequestOptions): Promise<operations["getAltCurrencies"]["responses"][200]["content"]["application/json"]>;
21856
- iterate(query: Omit<NonNullable<operations["getAltCurrencies"]["parameters"]["query"]>, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<AltCurrency, void, undefined>;
22683
+ list(query: GetAltCurrenciesQuery, options?: SpacebringRequestOptions): Promise<{
22684
+ altCurrencies?: AltCurrency[];
22685
+ nextPageToken?: string;
22686
+ searchQueryNext?: string;
22687
+ }>;
22688
+ iterate(query: Omit<GetAltCurrenciesQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<AltCurrency, void, undefined>;
21857
22689
  create(body: NonNullable<operations["createAltCurrency"]["requestBody"]>["content"]["application/json"], options?: SpacebringRequestOptions): Promise<AltCurrency>;
21858
22690
  update(id: string, body: NonNullable<operations["updateAltCurrency"]["requestBody"]>["content"]["application/json"], options?: SpacebringRequestOptions): Promise<undefined>;
21859
22691
  delete(id: string, options?: SpacebringRequestOptions): Promise<undefined>;
21860
22692
  };
21861
22693
  benefits: {
21862
- list(query?: operations["getBenefits"]["parameters"]["query"], options?: SpacebringRequestOptions): Promise<operations["getBenefits"]["responses"][200]["content"]["application/json"]>;
21863
- iterate(query?: Omit<NonNullable<operations["getBenefits"]["parameters"]["query"]>, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<Benefit, void, undefined>;
22694
+ list(query?: GetBenefitsQuery, options?: SpacebringRequestOptions): Promise<{
22695
+ benefits: Benefit[];
22696
+ nextPageToken?: string;
22697
+ searchQueryNext?: string;
22698
+ }>;
22699
+ iterate(query?: Omit<GetBenefitsQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<Benefit, void, undefined>;
21864
22700
  get(benefitId: string, options?: SpacebringRequestOptions): Promise<Benefit>;
21865
22701
  create(body: NonNullable<operations["createBenefit"]["requestBody"]>["content"]["application/json"], options?: SpacebringRequestOptions): Promise<operations["createBenefit"]["responses"][201]["content"]["application/json"]>;
21866
22702
  update(benefitId: string, body: NonNullable<operations["updateBenefit"]["requestBody"]>["content"]["application/json"], options?: SpacebringRequestOptions): Promise<Benefit>;
21867
22703
  delete(benefitId: string, options?: SpacebringRequestOptions): Promise<undefined>;
21868
22704
  applications: {
21869
- list(query?: operations["getBenefitApplications"]["parameters"]["query"], options?: SpacebringRequestOptions): Promise<operations["getBenefitApplications"]["responses"][200]["content"]["application/json"]>;
21870
- iterate(query?: Omit<NonNullable<operations["getBenefitApplications"]["parameters"]["query"]>, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<Application, void, undefined>;
22705
+ list(query?: GetBenefitApplicationsQuery, options?: SpacebringRequestOptions): Promise<{
22706
+ applications: Application[];
22707
+ nextPageToken?: string;
22708
+ searchQueryNext?: string;
22709
+ }>;
22710
+ iterate(query?: Omit<GetBenefitApplicationsQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<Application, void, undefined>;
21871
22711
  get(benefitApplicationId: string, options?: SpacebringRequestOptions): Promise<Application>;
21872
22712
  create(body: NonNullable<operations["applyBenefit"]["requestBody"]>["content"]["application/json"], options?: SpacebringRequestOptions): Promise<Application>;
21873
22713
  };
21874
22714
  categories: {
21875
- list(query: operations["getBenefitCategories"]["parameters"]["query"], options?: SpacebringRequestOptions): Promise<BenefitCategory[]>;
22715
+ list(query: GetBenefitCategoriesQuery, options?: SpacebringRequestOptions): Promise<BenefitCategory[]>;
21876
22716
  get(categoryId: string, options?: SpacebringRequestOptions): Promise<BenefitCategory>;
21877
22717
  create(body: NonNullable<operations["createBenefitCategory"]["requestBody"]>["content"]["application/json"], options?: SpacebringRequestOptions): Promise<BenefitCategory>;
21878
22718
  update(categoryId: string, body: NonNullable<operations["updateBenefitCategory"]["requestBody"]>["content"]["application/json"], options?: SpacebringRequestOptions): Promise<BenefitCategory>;
@@ -21881,16 +22721,24 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
21881
22721
  };
21882
22722
  billing: {
21883
22723
  creditNotes: {
21884
- list(query?: operations["getCreditNotes"]["parameters"]["query"], options?: SpacebringRequestOptions): Promise<operations["getCreditNotes"]["responses"][200]["content"]["application/json"]>;
21885
- iterate(query?: Omit<NonNullable<operations["getCreditNotes"]["parameters"]["query"]>, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<CreditNote, void, undefined>;
22724
+ list(query?: GetCreditNotesQuery, options?: SpacebringRequestOptions): Promise<{
22725
+ creditNotes: CreditNote[];
22726
+ nextPageToken?: string;
22727
+ searchQueryNext?: string;
22728
+ }>;
22729
+ iterate(query?: Omit<GetCreditNotesQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<CreditNote, void, undefined>;
21886
22730
  get(id: string, options?: SpacebringRequestOptions): Promise<CreditNote>;
21887
22731
  create(body: NonNullable<operations["createCreditNote"]["requestBody"]>["content"]["application/json"], options?: SpacebringRequestOptions): Promise<CreditNote>;
21888
22732
  update(id: string, body: NonNullable<operations["updateCreditNote"]["requestBody"]>["content"]["application/json"], options?: SpacebringRequestOptions): Promise<undefined>;
21889
22733
  preview(body: NonNullable<operations["previewCreditNote"]["requestBody"]>["content"]["application/json"], options?: SpacebringRequestOptions): Promise<CreditNote>;
21890
22734
  };
21891
22735
  invoices: {
21892
- list(query?: operations["getInvoices"]["parameters"]["query"], options?: SpacebringRequestOptions): Promise<operations["getInvoices"]["responses"][200]["content"]["application/json"]>;
21893
- iterate(query?: Omit<NonNullable<operations["getInvoices"]["parameters"]["query"]>, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<Invoice, void, undefined>;
22736
+ list(query?: GetInvoicesQuery, options?: SpacebringRequestOptions): Promise<{
22737
+ invoices: Invoice[];
22738
+ nextPageToken?: string;
22739
+ searchQueryNext?: string;
22740
+ }>;
22741
+ iterate(query?: Omit<GetInvoicesQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<Invoice, void, undefined>;
21894
22742
  get(invoiceId: string, options?: SpacebringRequestOptions): Promise<Invoice>;
21895
22743
  create(body: NonNullable<operations["createInvoice"]["requestBody"]>["content"]["application/json"], options?: SpacebringRequestOptions): Promise<Invoice>;
21896
22744
  update(invoiceId: string, body: NonNullable<operations["updateInvoice"]["requestBody"]>["content"]["application/json"], options?: SpacebringRequestOptions): Promise<undefined>;
@@ -21898,7 +22746,7 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
21898
22746
  cancelPayment(invoiceId: string, options?: SpacebringRequestOptions): Promise<undefined>;
21899
22747
  duplicate(invoiceId: string, options?: SpacebringRequestOptions): Promise<Invoice>;
21900
22748
  getItems(invoiceId: string, options?: SpacebringRequestOptions): Promise<operations["getInvoiceItems"]["responses"][200]["content"]["application/json"]>;
21901
- getUpcoming(query?: operations["getUpcomingInvoice"]["parameters"]["query"], options?: SpacebringRequestOptions): Promise<operations["getUpcomingInvoice"]["responses"][200]["content"]["application/json"]>;
22749
+ getUpcoming(query?: GetUpcomingInvoiceQuery, options?: SpacebringRequestOptions): Promise<operations["getUpcomingInvoice"]["responses"][200]["content"]["application/json"]>;
21902
22750
  issue(invoiceId: string, body?: NonNullable<operations["issueInvoice"]["requestBody"]>["content"]["application/json"], options?: SpacebringRequestOptions): Promise<operations["issueInvoice"]["responses"][200]["content"]["application/json"]>;
21903
22751
  pay(invoiceId: string, body: NonNullable<operations["payInvoice"]["requestBody"]>["content"]["application/json"], options?: SpacebringRequestOptions): Promise<operations["payInvoice"]["responses"][200]["content"]["application/json"]>;
21904
22752
  resend(invoiceId: string, options?: SpacebringRequestOptions): Promise<undefined>;
@@ -21908,32 +22756,46 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
21908
22756
  create(body: NonNullable<operations["createInvoiceItem"]["requestBody"]>["content"]["application/json"], options?: SpacebringRequestOptions): Promise<InvoiceItem>;
21909
22757
  update(id: string, body: NonNullable<operations["updateInvoiceItem"]["requestBody"]>["content"]["application/json"], options?: SpacebringRequestOptions): Promise<undefined>;
21910
22758
  delete(id: string, options?: SpacebringRequestOptions): Promise<undefined>;
21911
- getUpcoming(query?: operations["getUpcomingInvoiceItems"]["parameters"]["query"], options?: SpacebringRequestOptions): Promise<InvoiceItem[]>;
22759
+ getUpcoming(query?: GetUpcomingInvoiceItemsQuery, options?: SpacebringRequestOptions): Promise<InvoiceItem[]>;
21912
22760
  };
21913
22761
  };
21914
22762
  };
21915
22763
  community: {
21916
22764
  companies: {
21917
- list(query: operations["getCompanies"]["parameters"]["query"], options?: SpacebringRequestOptions): Promise<operations["getCompanies"]["responses"][200]["content"]["application/json"]>;
21918
- iterate(query: Omit<NonNullable<operations["getCompanies"]["parameters"]["query"]>, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<Company, void, undefined>;
22765
+ list(query: GetCompaniesQuery, options?: SpacebringRequestOptions): Promise<{
22766
+ companies?: Company[];
22767
+ nextPageToken?: string;
22768
+ }>;
22769
+ iterate(query: Omit<GetCompaniesQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<Company, void, undefined>;
21919
22770
  get(id: string, options?: SpacebringRequestOptions): Promise<Company>;
21920
22771
  create(body: NonNullable<operations["createCompany"]["requestBody"]>["content"]["application/json"], options?: SpacebringRequestOptions): Promise<Company>;
21921
22772
  update(id: string, body: NonNullable<operations["updateCompany"]["requestBody"]>["content"]["application/json"], options?: SpacebringRequestOptions): Promise<Company>;
21922
22773
  };
21923
22774
  memberships: {
21924
- list(query: operations["getMemberships"]["parameters"]["query"], options?: SpacebringRequestOptions): Promise<operations["getMemberships"]["responses"][200]["content"]["application/json"]>;
21925
- iterate(query: Omit<NonNullable<operations["getMemberships"]["parameters"]["query"]>, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<Membership, void, undefined>;
22775
+ list(query: GetMembershipsQuery, options?: SpacebringRequestOptions): Promise<{
22776
+ memberships?: Membership[];
22777
+ nextPageToken?: string;
22778
+ searchQueryNext?: string;
22779
+ }>;
22780
+ iterate(query: Omit<GetMembershipsQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<Membership, void, undefined>;
21926
22781
  get(id: string, options?: SpacebringRequestOptions): Promise<Membership>;
21927
22782
  create(body: NonNullable<operations["createMembership"]["requestBody"]>["content"]["application/json"], options?: SpacebringRequestOptions): Promise<Membership>;
21928
22783
  update(id: number, body: NonNullable<operations["updateMembership"]["requestBody"]>["content"]["application/json"], options?: SpacebringRequestOptions): Promise<Membership>;
21929
22784
  delete(id: string, options?: SpacebringRequestOptions): Promise<undefined>;
21930
- iterateDeleted(query: Omit<NonNullable<operations["getMembershipsDeleted"]["parameters"]["query"]>, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<Membership, void, undefined>;
21931
- listDeleted(query: operations["getMembershipsDeleted"]["parameters"]["query"], options?: SpacebringRequestOptions): Promise<operations["getMembershipsDeleted"]["responses"][200]["content"]["application/json"]>;
22785
+ iterateDeleted(query: Omit<GetMembershipsDeletedQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<Membership, void, undefined>;
22786
+ listDeleted(query: GetMembershipsDeletedQuery, options?: SpacebringRequestOptions): Promise<{
22787
+ memberships?: Membership[];
22788
+ nextPageToken?: string;
22789
+ }>;
21932
22790
  };
21933
22791
  };
21934
22792
  contracts: {
21935
- list(query?: operations["getContracts"]["parameters"]["query"], options?: SpacebringRequestOptions): Promise<operations["getContracts"]["responses"][200]["content"]["application/json"]>;
21936
- iterate(query?: Omit<NonNullable<operations["getContracts"]["parameters"]["query"]>, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<Contract, void, undefined>;
22793
+ list(query?: GetContractsQuery, options?: SpacebringRequestOptions): Promise<{
22794
+ contracts: Contract[];
22795
+ nextPageToken?: string;
22796
+ searchQueryNext?: string;
22797
+ }>;
22798
+ iterate(query?: Omit<GetContractsQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<Contract, void, undefined>;
21937
22799
  get(contractId: string, options?: SpacebringRequestOptions): Promise<Contract>;
21938
22800
  create(body: NonNullable<operations["createContract"]["requestBody"]>["content"]["application/json"], options?: SpacebringRequestOptions): Promise<Contract>;
21939
22801
  delete(contractId: string, options?: SpacebringRequestOptions): Promise<undefined>;
@@ -21942,34 +22804,46 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
21942
22804
  };
21943
22805
  discounts: {
21944
22806
  coupons: {
21945
- list(query: operations["getCoupons"]["parameters"]["query"], options?: SpacebringRequestOptions): Promise<operations["getCoupons"]["responses"][200]["content"]["application/json"]>;
21946
- iterate(query: Omit<NonNullable<operations["getCoupons"]["parameters"]["query"]>, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<Coupon, void, undefined>;
22807
+ list(query: GetCouponsQuery, options?: SpacebringRequestOptions): Promise<{
22808
+ coupons?: Coupon[];
22809
+ nextPageToken?: string;
22810
+ searchQueryNext?: string;
22811
+ }>;
22812
+ iterate(query: Omit<GetCouponsQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<Coupon, void, undefined>;
21947
22813
  get(id: string, options?: SpacebringRequestOptions): Promise<Coupon>;
21948
22814
  create(body: NonNullable<operations["createCoupon"]["requestBody"]>["content"]["application/json"], options?: SpacebringRequestOptions): Promise<Coupon>;
21949
22815
  update(id: string, body: NonNullable<operations["updateCoupon"]["requestBody"]>["content"]["application/json"], options?: SpacebringRequestOptions): Promise<undefined>;
21950
22816
  delete(id: string, options?: SpacebringRequestOptions): Promise<undefined>;
21951
22817
  };
21952
22818
  promocodes: {
21953
- list(query?: operations["getPromocodes"]["parameters"]["query"], options?: SpacebringRequestOptions): Promise<Promocode[]>;
22819
+ list(query?: GetPromocodesQuery, options?: SpacebringRequestOptions): Promise<Promocode[]>;
21954
22820
  get(id: string, options?: SpacebringRequestOptions): Promise<Promocode>;
21955
22821
  create(body: NonNullable<operations["createPromocode"]["requestBody"]>["content"]["application/json"], options?: SpacebringRequestOptions): Promise<Promocode>;
21956
22822
  archive(id: string, options?: SpacebringRequestOptions): Promise<Promocode>;
21957
22823
  };
21958
22824
  redemptions: {
21959
- list(query?: operations["getDiscountRedemptions"]["parameters"]["query"], options?: SpacebringRequestOptions): Promise<operations["getDiscountRedemptions"]["responses"][200]["content"]["application/json"]>;
21960
- iterate(query?: Omit<NonNullable<operations["getDiscountRedemptions"]["parameters"]["query"]>, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<Redemption, void, undefined>;
22825
+ list(query?: GetDiscountRedemptionsQuery, options?: SpacebringRequestOptions): Promise<{
22826
+ redemptions?: Redemption[];
22827
+ nextPageToken?: string;
22828
+ searchQueryNext?: string;
22829
+ }>;
22830
+ iterate(query?: Omit<GetDiscountRedemptionsQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<Redemption, void, undefined>;
21961
22831
  };
21962
22832
  };
21963
22833
  events: {
21964
- list(query: operations["getEventsByOrganization"]["parameters"]["query"], options?: SpacebringRequestOptions): Promise<operations["getEventsByOrganization"]["responses"][200]["content"]["application/json"]>;
22834
+ list(query: GetEventsByOrganizationQuery, options?: SpacebringRequestOptions): Promise<operations["getEventsByOrganization"]["responses"][200]["content"]["application/json"]>;
21965
22835
  get(id: string, options?: SpacebringRequestOptions): Promise<Event>;
21966
22836
  create(body: NonNullable<operations["createEvent"]["requestBody"]>["content"]["application/json"], options?: SpacebringRequestOptions): Promise<Event>;
21967
22837
  delete(id: string, options?: SpacebringRequestOptions): Promise<undefined>;
21968
22838
  cancel(id: string, options?: SpacebringRequestOptions): Promise<Event>;
21969
22839
  copy(id: string, options?: SpacebringRequestOptions): Promise<Event>;
21970
22840
  tickets: {
21971
- list(query: operations["getEventTickets"]["parameters"]["query"], options?: SpacebringRequestOptions): Promise<operations["getEventTickets"]["responses"][200]["content"]["application/json"]>;
21972
- iterate(query: Omit<NonNullable<operations["getEventTickets"]["parameters"]["query"]>, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<EventTicket, void, undefined>;
22841
+ list(query: GetEventTicketsQuery, options?: SpacebringRequestOptions): Promise<{
22842
+ tickets?: EventTicket[];
22843
+ nextPageToken?: string;
22844
+ searchQueryNext?: string;
22845
+ }>;
22846
+ iterate(query: Omit<GetEventTicketsQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<EventTicket, void, undefined>;
21973
22847
  get(id: string, options?: SpacebringRequestOptions): Promise<EventTicket>;
21974
22848
  };
21975
22849
  };
@@ -21981,8 +22855,12 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
21981
22855
  deleteLike(id: string, options?: SpacebringRequestOptions): Promise<undefined>;
21982
22856
  };
21983
22857
  posts: {
21984
- list(query: operations["getFeedPosts"]["parameters"]["query"], options?: SpacebringRequestOptions): Promise<operations["getFeedPosts"]["responses"][200]["content"]["application/json"]>;
21985
- iterate(query: Omit<NonNullable<operations["getFeedPosts"]["parameters"]["query"]>, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<Post, void, undefined>;
22858
+ list(query: GetFeedPostsQuery, options?: SpacebringRequestOptions): Promise<{
22859
+ nextPageToken?: string;
22860
+ posts?: Post[];
22861
+ searchQueryNext?: string;
22862
+ }>;
22863
+ iterate(query: Omit<GetFeedPostsQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<Post, void, undefined>;
21986
22864
  get(id: string, options?: SpacebringRequestOptions): Promise<Post>;
21987
22865
  create(body: NonNullable<operations["createFeedPost"]["requestBody"]>["content"]["application/json"], options?: SpacebringRequestOptions): Promise<Post>;
21988
22866
  update(id: string, body: NonNullable<operations["updateFeedPost"]["requestBody"]>["content"]["application/json"], options?: SpacebringRequestOptions): Promise<Post>;
@@ -21994,12 +22872,16 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
21994
22872
  };
21995
22873
  };
21996
22874
  floors: {
21997
- list(query: operations["getFloors"]["parameters"]["query"], options?: SpacebringRequestOptions): Promise<operations["getFloors"]["responses"][200]["content"]["application/json"]>;
22875
+ list(query: GetFloorsQuery, options?: SpacebringRequestOptions): Promise<operations["getFloors"]["responses"][200]["content"]["application/json"]>;
21998
22876
  delete(id: string, options?: SpacebringRequestOptions): Promise<undefined>;
21999
22877
  };
22000
22878
  guides: {
22001
- list(query: operations["getGuides"]["parameters"]["query"], options?: SpacebringRequestOptions): Promise<operations["getGuides"]["responses"][200]["content"]["application/json"]>;
22002
- iterate(query: Omit<NonNullable<operations["getGuides"]["parameters"]["query"]>, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<Guide, void, undefined>;
22879
+ list(query: GetGuidesQuery, options?: SpacebringRequestOptions): Promise<{
22880
+ guides: Guide[];
22881
+ nextPageToken?: string;
22882
+ searchQueryNext?: string;
22883
+ }>;
22884
+ iterate(query: Omit<GetGuidesQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<Guide, void, undefined>;
22003
22885
  get(guideId: string, options?: SpacebringRequestOptions): Promise<Guide>;
22004
22886
  create(body: NonNullable<operations["createGuide"]["requestBody"]>["content"]["application/json"], options?: SpacebringRequestOptions): Promise<Guide>;
22005
22887
  update(guideId: string, body: NonNullable<operations["patchGuide"]["requestBody"]>["content"]["application/json"], options?: SpacebringRequestOptions): Promise<Guide>;
@@ -22013,26 +22895,42 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
22013
22895
  list(options?: SpacebringRequestOptions): Promise<Network[]>;
22014
22896
  };
22015
22897
  plans: {
22016
- list(query?: operations["getPlans"]["parameters"]["query"], options?: SpacebringRequestOptions): Promise<operations["getPlans"]["responses"][200]["content"]["application/json"]>;
22017
- iterate(query?: Omit<NonNullable<operations["getPlans"]["parameters"]["query"]>, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<Plan, void, undefined>;
22898
+ list(query?: GetPlansQuery, options?: SpacebringRequestOptions): Promise<{
22899
+ nextPageToken?: string;
22900
+ plans: Plan[];
22901
+ searchQueryNext?: string;
22902
+ }>;
22903
+ iterate(query?: Omit<GetPlansQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<Plan, void, undefined>;
22018
22904
  get(planId: string, options?: SpacebringRequestOptions): Promise<Plan>;
22019
22905
  create(body: NonNullable<operations["createPlan"]["requestBody"]>["content"]["application/json"], options?: SpacebringRequestOptions): Promise<Plan>;
22020
22906
  update(planId: string, body: NonNullable<operations["updatePlan"]["requestBody"]>["content"]["application/json"], options?: SpacebringRequestOptions): Promise<undefined>;
22021
22907
  delete(planId: string, options?: SpacebringRequestOptions): Promise<undefined>;
22022
22908
  };
22023
22909
  registrations: {
22024
- list(query?: operations["getRegistrations"]["parameters"]["query"], options?: SpacebringRequestOptions): Promise<operations["getRegistrations"]["responses"][200]["content"]["application/json"]>;
22025
- iterate(query?: Omit<NonNullable<operations["getRegistrations"]["parameters"]["query"]>, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<Registration, void, undefined>;
22910
+ list(query?: GetRegistrationsQuery, options?: SpacebringRequestOptions): Promise<{
22911
+ registrations?: Registration[];
22912
+ nextPageToken?: string;
22913
+ searchQueryNext?: string;
22914
+ }>;
22915
+ iterate(query?: Omit<GetRegistrationsQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<Registration, void, undefined>;
22026
22916
  };
22027
22917
  resources: {
22028
- list(query: operations["getResources"]["parameters"]["query"], options?: SpacebringRequestOptions): Promise<operations["getResources"]["responses"][200]["content"]["application/json"]>;
22029
- iterate(query: Omit<NonNullable<operations["getResources"]["parameters"]["query"]>, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<Resource, void, undefined>;
22918
+ list(query: GetResourcesQuery, options?: SpacebringRequestOptions): Promise<{
22919
+ nextPageToken?: string;
22920
+ resources?: Resource[];
22921
+ searchQueryNext?: string;
22922
+ }>;
22923
+ iterate(query: Omit<GetResourcesQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<Resource, void, undefined>;
22030
22924
  get(id: string, options?: SpacebringRequestOptions): Promise<Resource>;
22031
22925
  create(body: NonNullable<operations["createResource"]["requestBody"]>["content"]["application/json"], options?: SpacebringRequestOptions): Promise<Resource>;
22032
22926
  update(id: string, body: NonNullable<operations["patchResource"]["requestBody"]>["content"]["application/json"], options?: SpacebringRequestOptions): Promise<undefined>;
22033
22927
  bookings: {
22034
- list(query?: operations["getBookings"]["parameters"]["query"], options?: SpacebringRequestOptions): Promise<operations["getBookings"]["responses"][200]["content"]["application/json"]>;
22035
- iterate(query?: Omit<NonNullable<operations["getBookings"]["parameters"]["query"]>, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<Booking, void, undefined>;
22928
+ list(query?: GetBookingsQuery, options?: SpacebringRequestOptions): Promise<{
22929
+ bookings?: Booking[];
22930
+ nextPageToken?: string;
22931
+ searchQueryNext?: string;
22932
+ }>;
22933
+ iterate(query?: Omit<GetBookingsQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<Booking, void, undefined>;
22036
22934
  get(id: string, options?: SpacebringRequestOptions): Promise<Booking>;
22037
22935
  create(body: NonNullable<operations["createBooking"]["requestBody"]>["content"]["application/json"], options?: SpacebringRequestOptions): Promise<Booking>;
22038
22936
  delete(id: string, options?: SpacebringRequestOptions): Promise<undefined>;
@@ -22040,20 +22938,28 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
22040
22938
  };
22041
22939
  shop: {
22042
22940
  categories: {
22043
- list(query: operations["getShopCategories"]["parameters"]["query"], options?: SpacebringRequestOptions): Promise<ShopCategory[]>;
22941
+ list(query: GetShopCategoriesQuery, options?: SpacebringRequestOptions): Promise<ShopCategory[]>;
22044
22942
  get(categoryId: string, options?: SpacebringRequestOptions): Promise<ShopCategory>;
22045
22943
  create(body: NonNullable<operations["createShopCategory"]["requestBody"]>["content"]["application/json"], options?: SpacebringRequestOptions): Promise<ShopCategory>;
22046
22944
  update(categoryId: string, body: NonNullable<operations["updateShopCategory"]["requestBody"]>["content"]["application/json"], options?: SpacebringRequestOptions): Promise<ShopCategory>;
22047
22945
  delete(categoryId: string, options?: SpacebringRequestOptions): Promise<undefined>;
22048
22946
  };
22049
22947
  orders: {
22050
- list(query?: operations["getOrders"]["parameters"]["query"], options?: SpacebringRequestOptions): Promise<operations["getOrders"]["responses"][200]["content"]["application/json"]>;
22051
- iterate(query?: Omit<NonNullable<operations["getOrders"]["parameters"]["query"]>, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<Order, void, undefined>;
22948
+ list(query?: GetOrdersQuery, options?: SpacebringRequestOptions): Promise<{
22949
+ nextPageToken?: string;
22950
+ orders: Order[];
22951
+ searchQueryNext?: string;
22952
+ }>;
22953
+ iterate(query?: Omit<GetOrdersQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<Order, void, undefined>;
22052
22954
  get(orderId: string, options?: SpacebringRequestOptions): Promise<Order>;
22053
22955
  };
22054
22956
  products: {
22055
- list(query?: operations["getProducts"]["parameters"]["query"], options?: SpacebringRequestOptions): Promise<operations["getProducts"]["responses"][200]["content"]["application/json"]>;
22056
- iterate(query?: Omit<NonNullable<operations["getProducts"]["parameters"]["query"]>, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<Product, void, undefined>;
22957
+ list(query?: GetProductsQuery, options?: SpacebringRequestOptions): Promise<{
22958
+ nextPageToken?: string;
22959
+ products: Product[];
22960
+ searchQueryNext?: string;
22961
+ }>;
22962
+ iterate(query?: Omit<GetProductsQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<Product, void, undefined>;
22057
22963
  get(productId: string, options?: SpacebringRequestOptions): Promise<Product>;
22058
22964
  create(body: NonNullable<operations["createProduct"]["requestBody"]>["content"]["application/json"], options?: SpacebringRequestOptions): Promise<Product>;
22059
22965
  update(productId: string, body: NonNullable<operations["updateProduct"]["requestBody"]>["content"]["application/json"], options?: SpacebringRequestOptions): Promise<Product>;
@@ -22061,8 +22967,12 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
22061
22967
  };
22062
22968
  };
22063
22969
  subscriptions: {
22064
- list(query?: operations["getSubscriptions"]["parameters"]["query"], options?: SpacebringRequestOptions): Promise<operations["getSubscriptions"]["responses"][200]["content"]["application/json"]>;
22065
- iterate(query?: Omit<NonNullable<operations["getSubscriptions"]["parameters"]["query"]>, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<Subscription, void, undefined>;
22970
+ list(query?: GetSubscriptionsQuery, options?: SpacebringRequestOptions): Promise<{
22971
+ nextPageToken?: string;
22972
+ searchQueryNext?: string;
22973
+ subscriptions: Subscription[];
22974
+ }>;
22975
+ iterate(query?: Omit<GetSubscriptionsQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<Subscription, void, undefined>;
22066
22976
  get(subscriptionId: string, options?: SpacebringRequestOptions): Promise<Subscription>;
22067
22977
  create(body: NonNullable<operations["createSubscription"]["requestBody"]>["content"]["application/json"], options?: SpacebringRequestOptions): Promise<Subscription>;
22068
22978
  update(subscriptionId: string, body: NonNullable<operations["updateSubscription"]["requestBody"]>["content"]["application/json"], options?: SpacebringRequestOptions): Promise<undefined>;
@@ -22073,8 +22983,12 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
22073
22983
  };
22074
22984
  support: {
22075
22985
  tickets: {
22076
- list(query: operations["getSupportTickets"]["parameters"]["query"], options?: SpacebringRequestOptions): Promise<operations["getSupportTickets"]["responses"][200]["content"]["application/json"]>;
22077
- iterate(query: Omit<NonNullable<operations["getSupportTickets"]["parameters"]["query"]>, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<SupportTicket, void, undefined>;
22986
+ list(query: GetSupportTicketsQuery, options?: SpacebringRequestOptions): Promise<{
22987
+ nextPageToken?: string;
22988
+ searchQueryNext?: string;
22989
+ tickets?: SupportTicket[];
22990
+ }>;
22991
+ iterate(query: Omit<GetSupportTicketsQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<SupportTicket, void, undefined>;
22078
22992
  get(id: string, options?: SpacebringRequestOptions): Promise<operations["getSupportTicket"]["responses"][200]["content"]["application/json"]>;
22079
22993
  create(body: NonNullable<operations["createSupportTicket"]["requestBody"]>["content"]["application/json"], options?: SpacebringRequestOptions): Promise<operations["createSupportTicket"]["responses"][201]["content"]["application/json"]>;
22080
22994
  updateAssignee(id: string, body: NonNullable<operations["updateSupportTicketAssignee"]["requestBody"]>["content"]["application/json"], options?: SpacebringRequestOptions): Promise<operations["updateSupportTicketAssignee"]["responses"][200]["content"]["application/json"]>;
@@ -22092,39 +23006,60 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
22092
23006
  getDayPasses(id: string, options?: SpacebringRequestOptions): Promise<Balance[]>;
22093
23007
  };
22094
23008
  credits: {
22095
- list(query?: operations["getCreditsTransactions"]["parameters"]["query"], options?: SpacebringRequestOptions): Promise<operations["getCreditsTransactions"]["responses"][200]["content"]["application/json"]>;
22096
- iterate(query?: Omit<NonNullable<operations["getCreditsTransactions"]["parameters"]["query"]>, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<CreditTransaction, void, undefined>;
23009
+ list(query?: GetCreditsTransactionsQuery, options?: SpacebringRequestOptions): Promise<{
23010
+ transactions?: CreditTransaction[];
23011
+ nextPageToken?: string;
23012
+ }>;
23013
+ iterate(query?: Omit<GetCreditsTransactionsQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<CreditTransaction, void, undefined>;
22097
23014
  create(body: NonNullable<operations["createCreditsTransaction"]["requestBody"]>["content"]["application/json"], options?: SpacebringRequestOptions): Promise<CreditTransaction>;
22098
23015
  };
22099
23016
  dayPasses: {
22100
- list(query?: operations["getDayPassesTransactions"]["parameters"]["query"], options?: SpacebringRequestOptions): Promise<operations["getDayPassesTransactions"]["responses"][200]["content"]["application/json"]>;
22101
- iterate(query?: Omit<NonNullable<operations["getDayPassesTransactions"]["parameters"]["query"]>, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<DayPassTransaction, void, undefined>;
23017
+ list(query?: GetDayPassesTransactionsQuery, options?: SpacebringRequestOptions): Promise<{
23018
+ nextPageToken?: string;
23019
+ transactions: DayPassTransaction[];
23020
+ }>;
23021
+ iterate(query?: Omit<GetDayPassesTransactionsQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<DayPassTransaction, void, undefined>;
22102
23022
  create(body: NonNullable<operations["createDayPassesTransaction"]["requestBody"]>["content"]["application/json"], options?: SpacebringRequestOptions): Promise<DayPassTransaction>;
22103
23023
  };
22104
23024
  money: {
22105
- list(query: operations["getMoneyTransactions"]["parameters"]["query"], options?: SpacebringRequestOptions): Promise<operations["getMoneyTransactions"]["responses"][200]["content"]["application/json"]>;
22106
- iterate(query: Omit<NonNullable<operations["getMoneyTransactions"]["parameters"]["query"]>, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<MoneyTransaction, void, undefined>;
23025
+ list(query: GetMoneyTransactionsQuery, options?: SpacebringRequestOptions): Promise<{
23026
+ transactions?: MoneyTransaction[];
23027
+ nextPageToken?: string;
23028
+ }>;
23029
+ iterate(query: Omit<GetMoneyTransactionsQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<MoneyTransaction, void, undefined>;
22107
23030
  get(id: string, options?: SpacebringRequestOptions): Promise<MoneyTransaction>;
22108
23031
  };
22109
23032
  };
22110
23033
  visitors: {
22111
23034
  contacts: {
22112
- list(query: operations["getContacts"]["parameters"]["query"], options?: SpacebringRequestOptions): Promise<operations["getContacts"]["responses"][200]["content"]["application/json"]>;
22113
- iterate(query: Omit<NonNullable<operations["getContacts"]["parameters"]["query"]>, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<Contact, void, undefined>;
23035
+ list(query: GetContactsQuery, options?: SpacebringRequestOptions): Promise<{
23036
+ contacts?: Contact[];
23037
+ nextPageToken?: string;
23038
+ searchQueryNext?: string;
23039
+ }>;
23040
+ iterate(query: Omit<GetContactsQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<Contact, void, undefined>;
22114
23041
  get(contactId: string, options?: SpacebringRequestOptions): Promise<Contact>;
22115
23042
  create(body: NonNullable<operations["createContact"]["requestBody"]>["content"]["application/json"], options?: SpacebringRequestOptions): Promise<Contact>;
22116
23043
  };
22117
23044
  requests: {
22118
- list(query: operations["getRequests"]["parameters"]["query"], options?: SpacebringRequestOptions): Promise<operations["getRequests"]["responses"][200]["content"]["application/json"]>;
22119
- iterate(query: Omit<NonNullable<operations["getRequests"]["parameters"]["query"]>, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<Request, void, undefined>;
22120
- get(id: string, options?: SpacebringRequestOptions): Promise<Request>;
22121
- create(body: NonNullable<operations["createRequest"]["requestBody"]>["content"]["application/json"], options?: SpacebringRequestOptions): Promise<Request>;
23045
+ list(query: GetRequestsQuery, options?: SpacebringRequestOptions): Promise<{
23046
+ nextPageToken?: string;
23047
+ requests?: Request$1[];
23048
+ searchQueryNext?: string;
23049
+ }>;
23050
+ iterate(query: Omit<GetRequestsQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<Request$1, void, undefined>;
23051
+ get(id: string, options?: SpacebringRequestOptions): Promise<Request$1>;
23052
+ create(body: NonNullable<operations["createRequest"]["requestBody"]>["content"]["application/json"], options?: SpacebringRequestOptions): Promise<Request$1>;
22122
23053
  approve(id: string, options?: SpacebringRequestOptions): Promise<RequestVisit>;
22123
23054
  reject(id: string, options?: SpacebringRequestOptions): Promise<undefined>;
22124
23055
  };
22125
23056
  visits: {
22126
- list(query: operations["getVisits"]["parameters"]["query"], options?: SpacebringRequestOptions): Promise<operations["getVisits"]["responses"][200]["content"]["application/json"]>;
22127
- iterate(query: Omit<NonNullable<operations["getVisits"]["parameters"]["query"]>, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<VisitorVisit, void, undefined>;
23057
+ list(query: GetVisitsQuery, options?: SpacebringRequestOptions): Promise<{
23058
+ nextPageToken?: string;
23059
+ searchQueryNext?: string;
23060
+ visits?: VisitorVisit[];
23061
+ }>;
23062
+ iterate(query: Omit<GetVisitsQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<VisitorVisit, void, undefined>;
22128
23063
  get(id: string, options?: SpacebringRequestOptions): Promise<VisitorVisit>;
22129
23064
  create(body: NonNullable<operations["createVisit"]["requestBody"]>["content"]["application/json"], options?: SpacebringRequestOptions): Promise<VisitorVisit>;
22130
23065
  update(id: string, body: NonNullable<operations["updateVisit"]["requestBody"]>["content"]["application/json"], options?: SpacebringRequestOptions): Promise<VisitorVisit>;
@@ -22193,4 +23128,4 @@ declare class SpacebringError extends Error {
22193
23128
  });
22194
23129
  }
22195
23130
 
22196
- export { type Activity, type AltCurrency, type Application, type Balance, type Benefit, type BenefitCategory, type Booking, type CommentLike, type Company, type Contact, type Contract, type Coupon, type CreditNote, type CreditTransaction, type DayPassTransaction, type Event, type EventTicket, type FeedComment, type Guide, type Invoice, type InvoiceItem, type Location, type Membership, type MoneyTransaction, type Network, type Order, type Plan, type Post, type PostComment, type PostLike, type Product, type Promocode, type Redemption, type Registration, type Request, type RequestVisit, type Resource, type ShopCategory, Spacebring, type SpacebringConfig, SpacebringError, type SpacebringErrorBody, type SpacebringRequestOptions, type SpacebringResources, type Subscription, type SupportTicket, type VisitorVisit, type components, type operations, type paths };
23131
+ export { type Activity, type AltCurrency, type Application, type Balance, type Benefit, type BenefitCategory, type Booking, type CommentLike, type Company, type Contact, type Contract, type Coupon, type CreditNote, type CreditTransaction, type DayPassTransaction, type Event, type EventTicket, type FeedComment, 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 Location, type Membership, type MoneyTransaction, type Network, type Order, type Plan, type Post, type PostComment, type PostLike, type Product, type Promocode, type Redemption, type Registration, type Request$1 as Request, type RequestVisit, type Resource, type ShopCategory, Spacebring, type SpacebringConfig, SpacebringError, type SpacebringErrorBody, type SpacebringRequestOptions, type SpacebringResources, type Subscription, type SupportTicket, type VisitorVisit, type components, type operations, type paths };