@gpt-core/client 0.3.6 → 0.3.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -1,313 +1,6 @@
1
1
  import { z } from 'zod';
2
2
 
3
- type AuthToken = string | undefined;
4
- interface Auth {
5
- /**
6
- * Which part of the request do we use to send the auth?
7
- *
8
- * @default 'header'
9
- */
10
- in?: "header" | "query" | "cookie";
11
- /**
12
- * Header or query parameter name.
13
- *
14
- * @default 'Authorization'
15
- */
16
- name?: string;
17
- scheme?: "basic" | "bearer";
18
- type: "apiKey" | "http";
19
- }
20
-
21
- interface SerializerOptions<T> {
22
- /**
23
- * @default true
24
- */
25
- explode: boolean;
26
- style: T;
27
- }
28
- type ArrayStyle = "form" | "spaceDelimited" | "pipeDelimited";
29
- type ObjectStyle = "form" | "deepObject";
30
-
31
- type QuerySerializer = (query: Record<string, unknown>) => string;
32
- type BodySerializer = (body: any) => any;
33
- type QuerySerializerOptionsObject = {
34
- allowReserved?: boolean;
35
- array?: Partial<SerializerOptions<ArrayStyle>>;
36
- object?: Partial<SerializerOptions<ObjectStyle>>;
37
- };
38
- type QuerySerializerOptions = QuerySerializerOptionsObject & {
39
- /**
40
- * Per-parameter serialization overrides. When provided, these settings
41
- * override the global array/object settings for specific parameter names.
42
- */
43
- parameters?: Record<string, QuerySerializerOptionsObject>;
44
- };
45
-
46
- type HttpMethod = "connect" | "delete" | "get" | "head" | "options" | "patch" | "post" | "put" | "trace";
47
- type Client$1<RequestFn = never, Config = unknown, MethodFn = never, BuildUrlFn = never, SseFn = never> = {
48
- /**
49
- * Returns the final request URL.
50
- */
51
- buildUrl: BuildUrlFn;
52
- getConfig: () => Config;
53
- request: RequestFn;
54
- setConfig: (config: Config) => Config;
55
- } & {
56
- [K in HttpMethod]: MethodFn;
57
- } & ([SseFn] extends [never] ? {
58
- sse?: never;
59
- } : {
60
- sse: {
61
- [K in HttpMethod]: SseFn;
62
- };
63
- });
64
- interface Config$2 {
65
- /**
66
- * Auth token or a function returning auth token. The resolved value will be
67
- * added to the request payload as defined by its `security` array.
68
- */
69
- auth?: ((auth: Auth) => Promise<AuthToken> | AuthToken) | AuthToken;
70
- /**
71
- * A function for serializing request body parameter. By default,
72
- * {@link JSON.stringify()} will be used.
73
- */
74
- bodySerializer?: BodySerializer | null;
75
- /**
76
- * An object containing any HTTP headers that you want to pre-populate your
77
- * `Headers` object with.
78
- *
79
- * {@link https://developer.mozilla.org/docs/Web/API/Headers/Headers#init See more}
80
- */
81
- headers?: RequestInit["headers"] | Record<string, string | number | boolean | (string | number | boolean)[] | null | undefined | unknown>;
82
- /**
83
- * The request method.
84
- *
85
- * {@link https://developer.mozilla.org/docs/Web/API/fetch#method See more}
86
- */
87
- method?: Uppercase<HttpMethod>;
88
- /**
89
- * A function for serializing request query parameters. By default, arrays
90
- * will be exploded in form style, objects will be exploded in deepObject
91
- * style, and reserved characters are percent-encoded.
92
- *
93
- * This method will have no effect if the native `paramsSerializer()` Axios
94
- * API function is used.
95
- *
96
- * {@link https://swagger.io/docs/specification/serialization/#query View examples}
97
- */
98
- querySerializer?: QuerySerializer | QuerySerializerOptions;
99
- /**
100
- * A function validating request data. This is useful if you want to ensure
101
- * the request conforms to the desired shape, so it can be safely sent to
102
- * the server.
103
- */
104
- requestValidator?: (data: unknown) => Promise<unknown>;
105
- /**
106
- * A function transforming response data before it's returned. This is useful
107
- * for post-processing data, e.g. converting ISO strings into Date objects.
108
- */
109
- responseTransformer?: (data: unknown) => Promise<unknown>;
110
- /**
111
- * A function validating response data. This is useful if you want to ensure
112
- * the response conforms to the desired shape, so it can be safely passed to
113
- * the transformers and returned to the user.
114
- */
115
- responseValidator?: (data: unknown) => Promise<unknown>;
116
- }
117
-
118
- type ServerSentEventsOptions<TData = unknown> = Omit<RequestInit, "method"> & Pick<Config$2, "method" | "responseTransformer" | "responseValidator"> & {
119
- /**
120
- * Fetch API implementation. You can use this option to provide a custom
121
- * fetch instance.
122
- *
123
- * @default globalThis.fetch
124
- */
125
- fetch?: typeof fetch;
126
- /**
127
- * Implementing clients can call request interceptors inside this hook.
128
- */
129
- onRequest?: (url: string, init: RequestInit) => Promise<Request>;
130
- /**
131
- * Callback invoked when a network or parsing error occurs during streaming.
132
- *
133
- * This option applies only if the endpoint returns a stream of events.
134
- *
135
- * @param error The error that occurred.
136
- */
137
- onSseError?: (error: unknown) => void;
138
- /**
139
- * Callback invoked when an event is streamed from the server.
140
- *
141
- * This option applies only if the endpoint returns a stream of events.
142
- *
143
- * @param event Event streamed from the server.
144
- * @returns Nothing (void).
145
- */
146
- onSseEvent?: (event: StreamEvent<TData>) => void;
147
- serializedBody?: RequestInit["body"];
148
- /**
149
- * Default retry delay in milliseconds.
150
- *
151
- * This option applies only if the endpoint returns a stream of events.
152
- *
153
- * @default 3000
154
- */
155
- sseDefaultRetryDelay?: number;
156
- /**
157
- * Maximum number of retry attempts before giving up.
158
- */
159
- sseMaxRetryAttempts?: number;
160
- /**
161
- * Maximum retry delay in milliseconds.
162
- *
163
- * Applies only when exponential backoff is used.
164
- *
165
- * This option applies only if the endpoint returns a stream of events.
166
- *
167
- * @default 30000
168
- */
169
- sseMaxRetryDelay?: number;
170
- /**
171
- * Optional sleep function for retry backoff.
172
- *
173
- * Defaults to using `setTimeout`.
174
- */
175
- sseSleepFn?: (ms: number) => Promise<void>;
176
- url: string;
177
- };
178
- interface StreamEvent<TData = unknown> {
179
- data: TData;
180
- event?: string;
181
- id?: string;
182
- retry?: number;
183
- }
184
- type ServerSentEventsResult<TData = unknown, TReturn = void, TNext = unknown> = {
185
- stream: AsyncGenerator<TData extends Record<string, unknown> ? TData[keyof TData] : TData, TReturn, TNext>;
186
- };
187
-
188
- type ErrInterceptor<Err, Res, Req, Options> = (error: Err, response: Res, request: Req, options: Options) => Err | Promise<Err>;
189
- type ReqInterceptor<Req, Options> = (request: Req, options: Options) => Req | Promise<Req>;
190
- type ResInterceptor<Res, Req, Options> = (response: Res, request: Req, options: Options) => Res | Promise<Res>;
191
- declare class Interceptors<Interceptor> {
192
- fns: Array<Interceptor | null>;
193
- clear(): void;
194
- eject(id: number | Interceptor): void;
195
- exists(id: number | Interceptor): boolean;
196
- getInterceptorIndex(id: number | Interceptor): number;
197
- update(id: number | Interceptor, fn: Interceptor): number | Interceptor | false;
198
- use(fn: Interceptor): number;
199
- }
200
- interface Middleware<Req, Res, Err, Options> {
201
- error: Interceptors<ErrInterceptor<Err, Res, Req, Options>>;
202
- request: Interceptors<ReqInterceptor<Req, Options>>;
203
- response: Interceptors<ResInterceptor<Res, Req, Options>>;
204
- }
205
-
206
- type ResponseStyle = "data" | "fields";
207
- interface Config$1<T extends ClientOptions$1 = ClientOptions$1> extends Omit<RequestInit, "body" | "headers" | "method">, Config$2 {
208
- /**
209
- * Base URL for all requests made by this client.
210
- */
211
- baseUrl?: T["baseUrl"];
212
- /**
213
- * Fetch API implementation. You can use this option to provide a custom
214
- * fetch instance.
215
- *
216
- * @default globalThis.fetch
217
- */
218
- fetch?: typeof fetch;
219
- /**
220
- * Please don't use the Fetch client for Next.js applications. The `next`
221
- * options won't have any effect.
222
- *
223
- * Install {@link https://www.npmjs.com/package/@hey-api/client-next `@hey-api/client-next`} instead.
224
- */
225
- next?: never;
226
- /**
227
- * Return the response data parsed in a specified format. By default, `auto`
228
- * will infer the appropriate method from the `Content-Type` response header.
229
- * You can override this behavior with any of the {@link Body} methods.
230
- * Select `stream` if you don't want to parse response data at all.
231
- *
232
- * @default 'auto'
233
- */
234
- parseAs?: "arrayBuffer" | "auto" | "blob" | "formData" | "json" | "stream" | "text";
235
- /**
236
- * Should we return only data or multiple fields (data, error, response, etc.)?
237
- *
238
- * @default 'fields'
239
- */
240
- responseStyle?: ResponseStyle;
241
- /**
242
- * Throw an error instead of returning it in the response?
243
- *
244
- * @default false
245
- */
246
- throwOnError?: T["throwOnError"];
247
- }
248
- interface RequestOptions<TData = unknown, TResponseStyle extends ResponseStyle = "fields", ThrowOnError extends boolean = boolean, Url extends string = string> extends Config$1<{
249
- responseStyle: TResponseStyle;
250
- throwOnError: ThrowOnError;
251
- }>, Pick<ServerSentEventsOptions<TData>, "onSseError" | "onSseEvent" | "sseDefaultRetryDelay" | "sseMaxRetryAttempts" | "sseMaxRetryDelay"> {
252
- /**
253
- * Any body that you want to add to your request.
254
- *
255
- * {@link https://developer.mozilla.org/docs/Web/API/fetch#body}
256
- */
257
- body?: unknown;
258
- path?: Record<string, unknown>;
259
- query?: Record<string, unknown>;
260
- /**
261
- * Security mechanism(s) to use for the request.
262
- */
263
- security?: ReadonlyArray<Auth>;
264
- url: Url;
265
- }
266
- interface ResolvedRequestOptions<TResponseStyle extends ResponseStyle = "fields", ThrowOnError extends boolean = boolean, Url extends string = string> extends RequestOptions<unknown, TResponseStyle, ThrowOnError, Url> {
267
- serializedBody?: string;
268
- }
269
- type RequestResult<TData = unknown, TError = unknown, ThrowOnError extends boolean = boolean, TResponseStyle extends ResponseStyle = "fields"> = ThrowOnError extends true ? Promise<TResponseStyle extends "data" ? TData extends Record<string, unknown> ? TData[keyof TData] : TData : {
270
- data: TData extends Record<string, unknown> ? TData[keyof TData] : TData;
271
- request: Request;
272
- response: Response;
273
- }> : Promise<TResponseStyle extends "data" ? (TData extends Record<string, unknown> ? TData[keyof TData] : TData) | undefined : ({
274
- data: TData extends Record<string, unknown> ? TData[keyof TData] : TData;
275
- error: undefined;
276
- } | {
277
- data: undefined;
278
- error: TError extends Record<string, unknown> ? TError[keyof TError] : TError;
279
- }) & {
280
- request: Request;
281
- response: Response;
282
- }>;
283
- interface ClientOptions$1 {
284
- baseUrl?: string;
285
- responseStyle?: ResponseStyle;
286
- throwOnError?: boolean;
287
- }
288
- type MethodFn = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle = "fields">(options: Omit<RequestOptions<TData, TResponseStyle, ThrowOnError>, "method">) => RequestResult<TData, TError, ThrowOnError, TResponseStyle>;
289
- type SseFn = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle = "fields">(options: Omit<RequestOptions<TData, TResponseStyle, ThrowOnError>, "method">) => Promise<ServerSentEventsResult<TData, TError>>;
290
- type RequestFn = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle = "fields">(options: Omit<RequestOptions<TData, TResponseStyle, ThrowOnError>, "method"> & Pick<Required<RequestOptions<TData, TResponseStyle, ThrowOnError>>, "method">) => RequestResult<TData, TError, ThrowOnError, TResponseStyle>;
291
- type BuildUrlFn = <TData extends {
292
- body?: unknown;
293
- path?: Record<string, unknown>;
294
- query?: Record<string, unknown>;
295
- url: string;
296
- }>(options: TData & Options$1<TData>) => string;
297
- type Client = Client$1<RequestFn, Config$1, MethodFn, BuildUrlFn, SseFn> & {
298
- interceptors: Middleware<Request, Response, unknown, ResolvedRequestOptions>;
299
- };
300
- interface TDataShape {
301
- body?: unknown;
302
- headers?: unknown;
303
- path?: unknown;
304
- query?: unknown;
305
- url: string;
306
- }
307
- type OmitKeys<T, K> = Pick<T, Exclude<keyof T, K>>;
308
- type Options$1<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown, TResponseStyle extends ResponseStyle = "fields"> = OmitKeys<RequestOptions<TResponse, TResponseStyle, ThrowOnError>, "body" | "path" | "query" | "url"> & ([TData] extends [never] ? unknown : Omit<TData, "url">);
309
-
310
- type ClientOptions = {
3
+ type ClientOptions$1 = {
311
4
  baseUrl: "http://localhost:22222" | "https://api.yourdomain.com" | (string & {});
312
5
  };
313
6
  type WorkspaceSettingsInputCreateType = {
@@ -333,6 +26,11 @@ type WorkspaceSettingsInputCreateType = {
333
26
  */
334
27
  extraction_mode?: "base" | "custom" | "hybrid" | unknown;
335
28
  } | unknown;
29
+ billing?: {
30
+ allow_overdraft?: boolean | unknown;
31
+ overdraft_limit?: number | unknown;
32
+ overdraft_period?: "daily" | "weekly" | "monthly" | unknown;
33
+ } | unknown;
336
34
  scheduling?: {
337
35
  enabled?: boolean | unknown;
338
36
  interval_minutes?: number | unknown;
@@ -875,6 +573,16 @@ type TokenFilterToken = {
875
573
  less_than_or_equal?: string;
876
574
  not_eq?: string;
877
575
  };
576
+ type WorkspaceFilterTenantId = {
577
+ eq?: string;
578
+ greater_than?: string;
579
+ greater_than_or_equal?: string;
580
+ in?: Array<string>;
581
+ is_nil?: boolean;
582
+ less_than?: string;
583
+ less_than_or_equal?: string;
584
+ not_eq?: string;
585
+ };
878
586
  /**
879
587
  * A "Resource object" representing a user_profile
880
588
  */
@@ -2308,6 +2016,11 @@ type WorkspaceSettingsInputUpdateType = {
2308
2016
  */
2309
2017
  extraction_mode?: "base" | "custom" | "hybrid" | unknown;
2310
2018
  } | unknown;
2019
+ billing?: {
2020
+ allow_overdraft?: boolean | unknown;
2021
+ overdraft_limit?: number | unknown;
2022
+ overdraft_period?: "daily" | "weekly" | "monthly" | unknown;
2023
+ } | unknown;
2311
2024
  scheduling?: {
2312
2025
  enabled?: boolean | unknown;
2313
2026
  interval_minutes?: number | unknown;
@@ -3183,7 +2896,7 @@ type LlmAnalytics = {
3183
2896
  };
3184
2897
  type: string;
3185
2898
  };
3186
- type Error$1 = {
2899
+ type _Error = {
3187
2900
  /**
3188
2901
  * An application-specific error code, expressed as a string value.
3189
2902
  */
@@ -3360,7 +3073,7 @@ type NotificationPreferenceFilter = unknown;
3360
3073
  /**
3361
3074
  * A "Resource object" representing a object
3362
3075
  */
3363
- type Object$1 = {
3076
+ type _Object = {
3364
3077
  /**
3365
3078
  * An attributes object for a object
3366
3079
  */
@@ -3387,7 +3100,7 @@ type Object$1 = {
3387
3100
  };
3388
3101
  type: string;
3389
3102
  };
3390
- type Errors = Array<Error$1>;
3103
+ type Errors = Array<_Error>;
3391
3104
  type CreditPackageFilterUpdatedAt = {
3392
3105
  eq?: unknown;
3393
3106
  greater_than?: unknown;
@@ -4101,6 +3814,19 @@ type ExtractionBatch = {
4101
3814
  };
4102
3815
  type: string;
4103
3816
  };
3817
+ type ExtractionDocumentFilterPresignedViewUrl = {
3818
+ contains?: string;
3819
+ eq?: string;
3820
+ greater_than?: string;
3821
+ greater_than_or_equal?: string;
3822
+ ilike?: string;
3823
+ in?: Array<string>;
3824
+ is_nil?: boolean;
3825
+ less_than?: string;
3826
+ less_than_or_equal?: string;
3827
+ like?: string;
3828
+ not_eq?: string;
3829
+ };
4104
3830
  type DocumentChunkFilterContent = {
4105
3831
  contains?: string;
4106
3832
  eq?: string;
@@ -4292,7 +4018,7 @@ type DocumentStatsFilterFailed = {
4292
4018
  /**
4293
4019
  * A "Resource object" representing a config
4294
4020
  */
4295
- type Config = {
4021
+ type Config$2 = {
4296
4022
  /**
4297
4023
  * An attributes object for a config
4298
4024
  */
@@ -5094,6 +4820,23 @@ type Workspace = {
5094
4820
  */
5095
4821
  extraction_mode: "base" | "custom" | "hybrid";
5096
4822
  };
4823
+ /**
4824
+ * Field included by default.
4825
+ */
4826
+ billing: {
4827
+ /**
4828
+ * Field included by default.
4829
+ */
4830
+ allow_overdraft: boolean;
4831
+ /**
4832
+ * Field included by default.
4833
+ */
4834
+ overdraft_limit?: number | null | unknown;
4835
+ /**
4836
+ * Field included by default.
4837
+ */
4838
+ overdraft_period?: "daily" | "weekly" | "monthly" | unknown;
4839
+ };
5097
4840
  /**
5098
4841
  * Field included by default.
5099
4842
  */
@@ -5176,6 +4919,10 @@ type Workspace = {
5176
4919
  * ID of the Specialty Agent assigned to this workspace. Field included by default.
5177
4920
  */
5178
4921
  specialty_agent_id?: string | null | unknown;
4922
+ /**
4923
+ * Field included by default.
4924
+ */
4925
+ tenant_id: string;
5179
4926
  /**
5180
4927
  * Field included by default.
5181
4928
  */
@@ -5186,7 +4933,18 @@ type Workspace = {
5186
4933
  * A relationships object for a workspace
5187
4934
  */
5188
4935
  relationships?: {
5189
- [key: string]: never;
4936
+ tenant?: {
4937
+ /**
4938
+ * An identifier for tenant
4939
+ */
4940
+ data?: {
4941
+ id: string;
4942
+ meta?: {
4943
+ [key: string]: unknown;
4944
+ };
4945
+ type: string;
4946
+ } | null;
4947
+ };
5190
4948
  };
5191
4949
  type: string;
5192
4950
  };
@@ -5364,6 +5122,7 @@ type ExtractionDocument = {
5364
5122
  * Field included by default.
5365
5123
  */
5366
5124
  pages?: number | null | unknown;
5125
+ presigned_view_url?: string | null | unknown;
5367
5126
  /**
5368
5127
  * Field included by default.
5369
5128
  */
@@ -5376,9 +5135,6 @@ type ExtractionDocument = {
5376
5135
  * Field included by default.
5377
5136
  */
5378
5137
  storage_path: string;
5379
- /**
5380
- * Field included by default.
5381
- */
5382
5138
  upload_url?: string | null | unknown;
5383
5139
  };
5384
5140
  id: string;
@@ -5386,7 +5142,18 @@ type ExtractionDocument = {
5386
5142
  * A relationships object for a extraction_document
5387
5143
  */
5388
5144
  relationships?: {
5389
- [key: string]: never;
5145
+ extraction_result?: {
5146
+ /**
5147
+ * An identifier for extraction_result
5148
+ */
5149
+ data?: {
5150
+ id: string;
5151
+ meta?: {
5152
+ [key: string]: unknown;
5153
+ };
5154
+ type: string;
5155
+ } | null;
5156
+ };
5390
5157
  };
5391
5158
  type: string;
5392
5159
  };
@@ -5615,7 +5382,7 @@ type GetExtractionDocumentsByIdResponses = {
5615
5382
  */
5616
5383
  200: {
5617
5384
  data?: ExtractionDocument;
5618
- included?: Array<unknown>;
5385
+ included?: Array<ExtractionResult>;
5619
5386
  meta?: {
5620
5387
  [key: string]: unknown;
5621
5388
  };
@@ -6096,7 +5863,7 @@ type GetWorkspacesResponses = {
6096
5863
  * An array of resource objects representing a workspace
6097
5864
  */
6098
5865
  data?: Array<Workspace>;
6099
- included?: Array<unknown>;
5866
+ included?: Array<Tenant>;
6100
5867
  meta?: {
6101
5868
  [key: string]: unknown;
6102
5869
  };
@@ -6196,7 +5963,7 @@ type PostWorkspacesResponses = {
6196
5963
  */
6197
5964
  201: {
6198
5965
  data?: Workspace;
6199
- included?: Array<unknown>;
5966
+ included?: Array<Tenant>;
6200
5967
  meta?: {
6201
5968
  [key: string]: unknown;
6202
5969
  };
@@ -6353,7 +6120,7 @@ type PostObjectsRegisterResponses = {
6353
6120
  * Success
6354
6121
  */
6355
6122
  201: {
6356
- data?: Object$1;
6123
+ data?: _Object;
6357
6124
  included?: Array<unknown>;
6358
6125
  meta?: {
6359
6126
  [key: string]: unknown;
@@ -7143,7 +6910,7 @@ type GetExtractionDocumentsByIdStatusResponses = {
7143
6910
  */
7144
6911
  200: {
7145
6912
  data?: ExtractionDocument;
7146
- included?: Array<unknown>;
6913
+ included?: Array<ExtractionResult>;
7147
6914
  meta?: {
7148
6915
  [key: string]: unknown;
7149
6916
  };
@@ -7237,7 +7004,7 @@ type PatchExtractionDocumentsByIdStatusResponses = {
7237
7004
  */
7238
7005
  200: {
7239
7006
  data?: ExtractionDocument;
7240
- included?: Array<unknown>;
7007
+ included?: Array<ExtractionResult>;
7241
7008
  meta?: {
7242
7009
  [key: string]: unknown;
7243
7010
  };
@@ -7324,7 +7091,7 @@ type PatchExtractionDocumentsByIdFinishUploadResponses = {
7324
7091
  */
7325
7092
  200: {
7326
7093
  data?: ExtractionDocument;
7327
- included?: Array<unknown>;
7094
+ included?: Array<ExtractionResult>;
7328
7095
  meta?: {
7329
7096
  [key: string]: unknown;
7330
7097
  };
@@ -7411,7 +7178,7 @@ type PatchWorkspacesByIdAllocateResponses = {
7411
7178
  */
7412
7179
  200: {
7413
7180
  data?: Workspace;
7414
- included?: Array<unknown>;
7181
+ included?: Array<Tenant>;
7415
7182
  meta?: {
7416
7183
  [key: string]: unknown;
7417
7184
  };
@@ -7673,7 +7440,7 @@ type GetConfigsResponses = {
7673
7440
  /**
7674
7441
  * An array of resource objects representing a config
7675
7442
  */
7676
- data?: Array<Config>;
7443
+ data?: Array<Config$2>;
7677
7444
  included?: Array<unknown>;
7678
7445
  meta?: {
7679
7446
  [key: string]: unknown;
@@ -7759,7 +7526,7 @@ type PostConfigsResponses = {
7759
7526
  * Success
7760
7527
  */
7761
7528
  201: {
7762
- data?: Config;
7529
+ data?: Config$2;
7763
7530
  included?: Array<unknown>;
7764
7531
  meta?: {
7765
7532
  [key: string]: unknown;
@@ -8374,7 +8141,7 @@ type GetBucketsByIdObjectsResponses = {
8374
8141
  * Success
8375
8142
  */
8376
8143
  200: {
8377
- data?: Object$1;
8144
+ data?: _Object;
8378
8145
  included?: Array<unknown>;
8379
8146
  meta?: {
8380
8147
  [key: string]: unknown;
@@ -12490,7 +12257,7 @@ type PostExtractionDocumentsUploadResponses = {
12490
12257
  */
12491
12258
  201: {
12492
12259
  data?: ExtractionDocument;
12493
- included?: Array<unknown>;
12260
+ included?: Array<ExtractionResult>;
12494
12261
  meta?: {
12495
12262
  [key: string]: unknown;
12496
12263
  };
@@ -12792,7 +12559,7 @@ type GetWorkspacesByIdResponses = {
12792
12559
  */
12793
12560
  200: {
12794
12561
  data?: Workspace;
12795
- included?: Array<unknown>;
12562
+ included?: Array<Tenant>;
12796
12563
  meta?: {
12797
12564
  [key: string]: unknown;
12798
12565
  };
@@ -12887,7 +12654,7 @@ type PatchWorkspacesByIdResponses = {
12887
12654
  */
12888
12655
  200: {
12889
12656
  data?: Workspace;
12890
- included?: Array<unknown>;
12657
+ included?: Array<Tenant>;
12891
12658
  meta?: {
12892
12659
  [key: string]: unknown;
12893
12660
  };
@@ -13235,8 +13002,21 @@ type GetNotificationLogsByIdResponses = {
13235
13002
  };
13236
13003
  };
13237
13004
  type GetNotificationLogsByIdResponse = GetNotificationLogsByIdResponses[keyof GetNotificationLogsByIdResponses];
13238
- type GetExtractionDocumentsByIdViewData = {
13239
- body?: never;
13005
+ type PostExtractionDocumentsByIdViewData = {
13006
+ /**
13007
+ * Request body for the /extraction/documents/:id/view operation on extraction_document resource
13008
+ */
13009
+ body?: {
13010
+ data: {
13011
+ attributes?: {
13012
+ [key: string]: never;
13013
+ };
13014
+ relationships?: {
13015
+ [key: string]: never;
13016
+ };
13017
+ type?: "extraction_document";
13018
+ };
13019
+ };
13240
13020
  headers: {
13241
13021
  /**
13242
13022
  * Application ID for authentication and routing
@@ -13264,7 +13044,7 @@ type GetExtractionDocumentsByIdViewData = {
13264
13044
  };
13265
13045
  url: "/extraction/documents/{id}/view";
13266
13046
  };
13267
- type GetExtractionDocumentsByIdViewErrors = {
13047
+ type PostExtractionDocumentsByIdViewErrors = {
13268
13048
  /**
13269
13049
  * Bad Request - Invalid input data or malformed request
13270
13050
  */
@@ -13294,20 +13074,20 @@ type GetExtractionDocumentsByIdViewErrors = {
13294
13074
  */
13295
13075
  default: Errors;
13296
13076
  };
13297
- type GetExtractionDocumentsByIdViewError = GetExtractionDocumentsByIdViewErrors[keyof GetExtractionDocumentsByIdViewErrors];
13298
- type GetExtractionDocumentsByIdViewResponses = {
13077
+ type PostExtractionDocumentsByIdViewError = PostExtractionDocumentsByIdViewErrors[keyof PostExtractionDocumentsByIdViewErrors];
13078
+ type PostExtractionDocumentsByIdViewResponses = {
13299
13079
  /**
13300
13080
  * Success
13301
13081
  */
13302
- 200: {
13082
+ 201: {
13303
13083
  data?: ExtractionDocument;
13304
- included?: Array<unknown>;
13084
+ included?: Array<ExtractionResult>;
13305
13085
  meta?: {
13306
13086
  [key: string]: unknown;
13307
13087
  };
13308
13088
  };
13309
13089
  };
13310
- type GetExtractionDocumentsByIdViewResponse = GetExtractionDocumentsByIdViewResponses[keyof GetExtractionDocumentsByIdViewResponses];
13090
+ type PostExtractionDocumentsByIdViewResponse = PostExtractionDocumentsByIdViewResponses[keyof PostExtractionDocumentsByIdViewResponses];
13311
13091
  type GetWebhookDeliveriesByIdData = {
13312
13092
  body?: never;
13313
13093
  headers: {
@@ -16738,7 +16518,7 @@ type GetWorkspacesMineResponses = {
16738
16518
  * An array of resource objects representing a workspace
16739
16519
  */
16740
16520
  data?: Array<Workspace>;
16741
- included?: Array<unknown>;
16521
+ included?: Array<Tenant>;
16742
16522
  meta?: {
16743
16523
  [key: string]: unknown;
16744
16524
  };
@@ -17971,7 +17751,7 @@ type GetExtractionDocumentsWorkspaceByWorkspaceIdResponses = {
17971
17751
  * An array of resource objects representing a extraction_document
17972
17752
  */
17973
17753
  data?: Array<ExtractionDocument>;
17974
- included?: Array<unknown>;
17754
+ included?: Array<ExtractionResult>;
17975
17755
  meta?: {
17976
17756
  [key: string]: unknown;
17977
17757
  };
@@ -18061,7 +17841,7 @@ type PostExtractionDocumentsBeginUploadResponses = {
18061
17841
  */
18062
17842
  201: {
18063
17843
  data?: ExtractionDocument;
18064
- included?: Array<unknown>;
17844
+ included?: Array<ExtractionResult>;
18065
17845
  meta?: {
18066
17846
  [key: string]: unknown;
18067
17847
  };
@@ -18788,7 +18568,7 @@ type GetExtractionDocumentsResponses = {
18788
18568
  * An array of resource objects representing a extraction_document
18789
18569
  */
18790
18570
  data?: Array<ExtractionDocument>;
18791
- included?: Array<unknown>;
18571
+ included?: Array<ExtractionResult>;
18792
18572
  meta?: {
18793
18573
  [key: string]: unknown;
18794
18574
  };
@@ -19468,7 +19248,7 @@ type PatchConfigsByKeyResponses = {
19468
19248
  * Success
19469
19249
  */
19470
19250
  200: {
19471
- data?: Config;
19251
+ data?: Config$2;
19472
19252
  included?: Array<unknown>;
19473
19253
  meta?: {
19474
19254
  [key: string]: unknown;
@@ -20248,7 +20028,7 @@ type GetObjectsByIdResponses = {
20248
20028
  * Success
20249
20029
  */
20250
20030
  200: {
20251
- data?: Object$1;
20031
+ data?: _Object;
20252
20032
  included?: Array<unknown>;
20253
20033
  meta?: {
20254
20034
  [key: string]: unknown;
@@ -20513,7 +20293,7 @@ type PostObjectsBulkDestroyResponses = {
20513
20293
  * Success
20514
20294
  */
20515
20295
  201: {
20516
- data?: Object$1;
20296
+ data?: _Object;
20517
20297
  included?: Array<unknown>;
20518
20298
  meta?: {
20519
20299
  [key: string]: unknown;
@@ -22075,143 +21855,450 @@ type GetUsersData = {
22075
21855
  };
22076
21856
  type GetUsersErrors = {
22077
21857
  /**
22078
- * Bad Request - Invalid input data or malformed request
21858
+ * Bad Request - Invalid input data or malformed request
21859
+ */
21860
+ 400: ErrorResponse;
21861
+ /**
21862
+ * Unauthorized - Missing or invalid authentication token
21863
+ */
21864
+ 401: ErrorResponse;
21865
+ /**
21866
+ * Forbidden - Authenticated but not authorized for this resource
21867
+ */
21868
+ 403: ErrorResponse;
21869
+ /**
21870
+ * Not Found - Resource does not exist
21871
+ */
21872
+ 404: ErrorResponse;
21873
+ /**
21874
+ * Too Many Requests - Rate limit exceeded
21875
+ */
21876
+ 429: ErrorResponse;
21877
+ /**
21878
+ * Internal Server Error - Unexpected server error
21879
+ */
21880
+ 500: ErrorResponse;
21881
+ /**
21882
+ * General Error
21883
+ */
21884
+ default: Errors;
21885
+ };
21886
+ type GetUsersError = GetUsersErrors[keyof GetUsersErrors];
21887
+ type GetUsersResponses = {
21888
+ /**
21889
+ * Success
21890
+ */
21891
+ 200: {
21892
+ /**
21893
+ * An array of resource objects representing a user
21894
+ */
21895
+ data?: Array<User>;
21896
+ included?: Array<unknown>;
21897
+ meta?: {
21898
+ [key: string]: unknown;
21899
+ };
21900
+ };
21901
+ };
21902
+ type GetUsersResponse = GetUsersResponses[keyof GetUsersResponses];
21903
+ type GetObjectsData = {
21904
+ body?: never;
21905
+ headers: {
21906
+ /**
21907
+ * Application ID for authentication and routing
21908
+ */
21909
+ "x-application-key": string;
21910
+ };
21911
+ path?: never;
21912
+ query?: {
21913
+ /**
21914
+ * Filter results using JSON:API filter syntax. Use field comparisons like `field[eq]=value`, `field[in][]=val1&field[in][]=val2`, etc.
21915
+ */
21916
+ filter?: ObjectFilter;
21917
+ /**
21918
+ * Sort results by one or more fields. Prefix with '-' for descending order. Separate multiple fields with commas.
21919
+ */
21920
+ sort?: string;
21921
+ /**
21922
+ * Pagination parameters using JSON:API page-based strategy. Use `page[limit]` and `page[offset]` for pagination.
21923
+ */
21924
+ page?: {
21925
+ after?: string;
21926
+ before?: string;
21927
+ count?: boolean;
21928
+ limit?: number;
21929
+ offset?: number;
21930
+ };
21931
+ /**
21932
+ * Include related resources in the response. Comma-separated list of relationship names to eager-load.
21933
+ */
21934
+ include?: string;
21935
+ /**
21936
+ * Sparse fieldsets - return only specified fields for each resource type. Use `fields[type]=field1,field2` format.
21937
+ */
21938
+ fields?: {
21939
+ /**
21940
+ * Comma separated field names for object
21941
+ */
21942
+ object?: string;
21943
+ [key: string]: unknown | string | undefined;
21944
+ };
21945
+ };
21946
+ url: "/objects";
21947
+ };
21948
+ type GetObjectsErrors = {
21949
+ /**
21950
+ * Bad Request - Invalid input data or malformed request
21951
+ */
21952
+ 400: ErrorResponse;
21953
+ /**
21954
+ * Unauthorized - Missing or invalid authentication token
21955
+ */
21956
+ 401: ErrorResponse;
21957
+ /**
21958
+ * Forbidden - Authenticated but not authorized for this resource
21959
+ */
21960
+ 403: ErrorResponse;
21961
+ /**
21962
+ * Not Found - Resource does not exist
21963
+ */
21964
+ 404: ErrorResponse;
21965
+ /**
21966
+ * Too Many Requests - Rate limit exceeded
21967
+ */
21968
+ 429: ErrorResponse;
21969
+ /**
21970
+ * Internal Server Error - Unexpected server error
21971
+ */
21972
+ 500: ErrorResponse;
21973
+ /**
21974
+ * General Error
21975
+ */
21976
+ default: Errors;
21977
+ };
21978
+ type GetObjectsError = GetObjectsErrors[keyof GetObjectsErrors];
21979
+ type GetObjectsResponses = {
21980
+ /**
21981
+ * Success
21982
+ */
21983
+ 200: {
21984
+ /**
21985
+ * An array of resource objects representing a object
21986
+ */
21987
+ data?: Array<_Object>;
21988
+ included?: Array<unknown>;
21989
+ meta?: {
21990
+ [key: string]: unknown;
21991
+ };
21992
+ };
21993
+ };
21994
+ type GetObjectsResponse = GetObjectsResponses[keyof GetObjectsResponses];
21995
+
21996
+ type AuthToken = string | undefined;
21997
+ interface Auth {
21998
+ /**
21999
+ * Which part of the request do we use to send the auth?
22000
+ *
22001
+ * @default 'header'
22002
+ */
22003
+ in?: "header" | "query" | "cookie";
22004
+ /**
22005
+ * Header or query parameter name.
22006
+ *
22007
+ * @default 'Authorization'
22008
+ */
22009
+ name?: string;
22010
+ scheme?: "basic" | "bearer";
22011
+ type: "apiKey" | "http";
22012
+ }
22013
+
22014
+ interface SerializerOptions<T> {
22015
+ /**
22016
+ * @default true
22017
+ */
22018
+ explode: boolean;
22019
+ style: T;
22020
+ }
22021
+ type ArrayStyle = "form" | "spaceDelimited" | "pipeDelimited";
22022
+ type ObjectStyle = "form" | "deepObject";
22023
+
22024
+ type QuerySerializer = (query: Record<string, unknown>) => string;
22025
+ type BodySerializer = (body: any) => any;
22026
+ type QuerySerializerOptionsObject = {
22027
+ allowReserved?: boolean;
22028
+ array?: Partial<SerializerOptions<ArrayStyle>>;
22029
+ object?: Partial<SerializerOptions<ObjectStyle>>;
22030
+ };
22031
+ type QuerySerializerOptions = QuerySerializerOptionsObject & {
22032
+ /**
22033
+ * Per-parameter serialization overrides. When provided, these settings
22034
+ * override the global array/object settings for specific parameter names.
22035
+ */
22036
+ parameters?: Record<string, QuerySerializerOptionsObject>;
22037
+ };
22038
+
22039
+ type HttpMethod = "connect" | "delete" | "get" | "head" | "options" | "patch" | "post" | "put" | "trace";
22040
+ type Client$1<RequestFn = never, Config = unknown, MethodFn = never, BuildUrlFn = never, SseFn = never> = {
22041
+ /**
22042
+ * Returns the final request URL.
22043
+ */
22044
+ buildUrl: BuildUrlFn;
22045
+ getConfig: () => Config;
22046
+ request: RequestFn;
22047
+ setConfig: (config: Config) => Config;
22048
+ } & {
22049
+ [K in HttpMethod]: MethodFn;
22050
+ } & ([SseFn] extends [never] ? {
22051
+ sse?: never;
22052
+ } : {
22053
+ sse: {
22054
+ [K in HttpMethod]: SseFn;
22055
+ };
22056
+ });
22057
+ interface Config$1 {
22058
+ /**
22059
+ * Auth token or a function returning auth token. The resolved value will be
22060
+ * added to the request payload as defined by its `security` array.
22061
+ */
22062
+ auth?: ((auth: Auth) => Promise<AuthToken> | AuthToken) | AuthToken;
22063
+ /**
22064
+ * A function for serializing request body parameter. By default,
22065
+ * {@link JSON.stringify()} will be used.
22066
+ */
22067
+ bodySerializer?: BodySerializer | null;
22068
+ /**
22069
+ * An object containing any HTTP headers that you want to pre-populate your
22070
+ * `Headers` object with.
22071
+ *
22072
+ * {@link https://developer.mozilla.org/docs/Web/API/Headers/Headers#init See more}
22073
+ */
22074
+ headers?: RequestInit["headers"] | Record<string, string | number | boolean | (string | number | boolean)[] | null | undefined | unknown>;
22075
+ /**
22076
+ * The request method.
22077
+ *
22078
+ * {@link https://developer.mozilla.org/docs/Web/API/fetch#method See more}
22079
+ */
22080
+ method?: Uppercase<HttpMethod>;
22081
+ /**
22082
+ * A function for serializing request query parameters. By default, arrays
22083
+ * will be exploded in form style, objects will be exploded in deepObject
22084
+ * style, and reserved characters are percent-encoded.
22085
+ *
22086
+ * This method will have no effect if the native `paramsSerializer()` Axios
22087
+ * API function is used.
22088
+ *
22089
+ * {@link https://swagger.io/docs/specification/serialization/#query View examples}
22090
+ */
22091
+ querySerializer?: QuerySerializer | QuerySerializerOptions;
22092
+ /**
22093
+ * A function validating request data. This is useful if you want to ensure
22094
+ * the request conforms to the desired shape, so it can be safely sent to
22095
+ * the server.
22096
+ */
22097
+ requestValidator?: (data: unknown) => Promise<unknown>;
22098
+ /**
22099
+ * A function transforming response data before it's returned. This is useful
22100
+ * for post-processing data, e.g. converting ISO strings into Date objects.
22101
+ */
22102
+ responseTransformer?: (data: unknown) => Promise<unknown>;
22103
+ /**
22104
+ * A function validating response data. This is useful if you want to ensure
22105
+ * the response conforms to the desired shape, so it can be safely passed to
22106
+ * the transformers and returned to the user.
22107
+ */
22108
+ responseValidator?: (data: unknown) => Promise<unknown>;
22109
+ }
22110
+
22111
+ type ServerSentEventsOptions<TData = unknown> = Omit<RequestInit, "method"> & Pick<Config$1, "method" | "responseTransformer" | "responseValidator"> & {
22112
+ /**
22113
+ * Fetch API implementation. You can use this option to provide a custom
22114
+ * fetch instance.
22115
+ *
22116
+ * @default globalThis.fetch
22079
22117
  */
22080
- 400: ErrorResponse;
22118
+ fetch?: typeof fetch;
22081
22119
  /**
22082
- * Unauthorized - Missing or invalid authentication token
22120
+ * Implementing clients can call request interceptors inside this hook.
22083
22121
  */
22084
- 401: ErrorResponse;
22122
+ onRequest?: (url: string, init: RequestInit) => Promise<Request>;
22085
22123
  /**
22086
- * Forbidden - Authenticated but not authorized for this resource
22124
+ * Callback invoked when a network or parsing error occurs during streaming.
22125
+ *
22126
+ * This option applies only if the endpoint returns a stream of events.
22127
+ *
22128
+ * @param error The error that occurred.
22087
22129
  */
22088
- 403: ErrorResponse;
22130
+ onSseError?: (error: unknown) => void;
22089
22131
  /**
22090
- * Not Found - Resource does not exist
22132
+ * Callback invoked when an event is streamed from the server.
22133
+ *
22134
+ * This option applies only if the endpoint returns a stream of events.
22135
+ *
22136
+ * @param event Event streamed from the server.
22137
+ * @returns Nothing (void).
22091
22138
  */
22092
- 404: ErrorResponse;
22139
+ onSseEvent?: (event: StreamEvent<TData>) => void;
22140
+ serializedBody?: RequestInit["body"];
22093
22141
  /**
22094
- * Too Many Requests - Rate limit exceeded
22142
+ * Default retry delay in milliseconds.
22143
+ *
22144
+ * This option applies only if the endpoint returns a stream of events.
22145
+ *
22146
+ * @default 3000
22095
22147
  */
22096
- 429: ErrorResponse;
22148
+ sseDefaultRetryDelay?: number;
22097
22149
  /**
22098
- * Internal Server Error - Unexpected server error
22150
+ * Maximum number of retry attempts before giving up.
22099
22151
  */
22100
- 500: ErrorResponse;
22152
+ sseMaxRetryAttempts?: number;
22101
22153
  /**
22102
- * General Error
22154
+ * Maximum retry delay in milliseconds.
22155
+ *
22156
+ * Applies only when exponential backoff is used.
22157
+ *
22158
+ * This option applies only if the endpoint returns a stream of events.
22159
+ *
22160
+ * @default 30000
22103
22161
  */
22104
- default: Errors;
22105
- };
22106
- type GetUsersError = GetUsersErrors[keyof GetUsersErrors];
22107
- type GetUsersResponses = {
22162
+ sseMaxRetryDelay?: number;
22108
22163
  /**
22109
- * Success
22164
+ * Optional sleep function for retry backoff.
22165
+ *
22166
+ * Defaults to using `setTimeout`.
22110
22167
  */
22111
- 200: {
22112
- /**
22113
- * An array of resource objects representing a user
22114
- */
22115
- data?: Array<User>;
22116
- included?: Array<unknown>;
22117
- meta?: {
22118
- [key: string]: unknown;
22119
- };
22120
- };
22168
+ sseSleepFn?: (ms: number) => Promise<void>;
22169
+ url: string;
22121
22170
  };
22122
- type GetUsersResponse = GetUsersResponses[keyof GetUsersResponses];
22123
- type GetObjectsData = {
22124
- body?: never;
22125
- headers: {
22126
- /**
22127
- * Application ID for authentication and routing
22128
- */
22129
- "x-application-key": string;
22130
- };
22131
- path?: never;
22132
- query?: {
22133
- /**
22134
- * Filter results using JSON:API filter syntax. Use field comparisons like `field[eq]=value`, `field[in][]=val1&field[in][]=val2`, etc.
22135
- */
22136
- filter?: ObjectFilter;
22137
- /**
22138
- * Sort results by one or more fields. Prefix with '-' for descending order. Separate multiple fields with commas.
22139
- */
22140
- sort?: string;
22141
- /**
22142
- * Pagination parameters using JSON:API page-based strategy. Use `page[limit]` and `page[offset]` for pagination.
22143
- */
22144
- page?: {
22145
- after?: string;
22146
- before?: string;
22147
- count?: boolean;
22148
- limit?: number;
22149
- offset?: number;
22150
- };
22151
- /**
22152
- * Include related resources in the response. Comma-separated list of relationship names to eager-load.
22153
- */
22154
- include?: string;
22155
- /**
22156
- * Sparse fieldsets - return only specified fields for each resource type. Use `fields[type]=field1,field2` format.
22157
- */
22158
- fields?: {
22159
- /**
22160
- * Comma separated field names for object
22161
- */
22162
- object?: string;
22163
- [key: string]: unknown | string | undefined;
22164
- };
22165
- };
22166
- url: "/objects";
22171
+ interface StreamEvent<TData = unknown> {
22172
+ data: TData;
22173
+ event?: string;
22174
+ id?: string;
22175
+ retry?: number;
22176
+ }
22177
+ type ServerSentEventsResult<TData = unknown, TReturn = void, TNext = unknown> = {
22178
+ stream: AsyncGenerator<TData extends Record<string, unknown> ? TData[keyof TData] : TData, TReturn, TNext>;
22167
22179
  };
22168
- type GetObjectsErrors = {
22180
+
22181
+ type ErrInterceptor<Err, Res, Req, Options> = (error: Err, response: Res, request: Req, options: Options) => Err | Promise<Err>;
22182
+ type ReqInterceptor<Req, Options> = (request: Req, options: Options) => Req | Promise<Req>;
22183
+ type ResInterceptor<Res, Req, Options> = (response: Res, request: Req, options: Options) => Res | Promise<Res>;
22184
+ declare class Interceptors<Interceptor> {
22185
+ fns: Array<Interceptor | null>;
22186
+ clear(): void;
22187
+ eject(id: number | Interceptor): void;
22188
+ exists(id: number | Interceptor): boolean;
22189
+ getInterceptorIndex(id: number | Interceptor): number;
22190
+ update(id: number | Interceptor, fn: Interceptor): number | Interceptor | false;
22191
+ use(fn: Interceptor): number;
22192
+ }
22193
+ interface Middleware<Req, Res, Err, Options> {
22194
+ error: Interceptors<ErrInterceptor<Err, Res, Req, Options>>;
22195
+ request: Interceptors<ReqInterceptor<Req, Options>>;
22196
+ response: Interceptors<ResInterceptor<Res, Req, Options>>;
22197
+ }
22198
+
22199
+ type ResponseStyle = "data" | "fields";
22200
+ interface Config<T extends ClientOptions = ClientOptions> extends Omit<RequestInit, "body" | "headers" | "method">, Config$1 {
22169
22201
  /**
22170
- * Bad Request - Invalid input data or malformed request
22202
+ * Base URL for all requests made by this client.
22171
22203
  */
22172
- 400: ErrorResponse;
22204
+ baseUrl?: T["baseUrl"];
22173
22205
  /**
22174
- * Unauthorized - Missing or invalid authentication token
22206
+ * Fetch API implementation. You can use this option to provide a custom
22207
+ * fetch instance.
22208
+ *
22209
+ * @default globalThis.fetch
22175
22210
  */
22176
- 401: ErrorResponse;
22211
+ fetch?: typeof fetch;
22177
22212
  /**
22178
- * Forbidden - Authenticated but not authorized for this resource
22213
+ * Please don't use the Fetch client for Next.js applications. The `next`
22214
+ * options won't have any effect.
22215
+ *
22216
+ * Install {@link https://www.npmjs.com/package/@hey-api/client-next `@hey-api/client-next`} instead.
22179
22217
  */
22180
- 403: ErrorResponse;
22218
+ next?: never;
22181
22219
  /**
22182
- * Not Found - Resource does not exist
22220
+ * Return the response data parsed in a specified format. By default, `auto`
22221
+ * will infer the appropriate method from the `Content-Type` response header.
22222
+ * You can override this behavior with any of the {@link Body} methods.
22223
+ * Select `stream` if you don't want to parse response data at all.
22224
+ *
22225
+ * @default 'auto'
22183
22226
  */
22184
- 404: ErrorResponse;
22227
+ parseAs?: "arrayBuffer" | "auto" | "blob" | "formData" | "json" | "stream" | "text";
22185
22228
  /**
22186
- * Too Many Requests - Rate limit exceeded
22229
+ * Should we return only data or multiple fields (data, error, response, etc.)?
22230
+ *
22231
+ * @default 'fields'
22187
22232
  */
22188
- 429: ErrorResponse;
22233
+ responseStyle?: ResponseStyle;
22189
22234
  /**
22190
- * Internal Server Error - Unexpected server error
22235
+ * Throw an error instead of returning it in the response?
22236
+ *
22237
+ * @default false
22191
22238
  */
22192
- 500: ErrorResponse;
22239
+ throwOnError?: T["throwOnError"];
22240
+ }
22241
+ interface RequestOptions<TData = unknown, TResponseStyle extends ResponseStyle = "fields", ThrowOnError extends boolean = boolean, Url extends string = string> extends Config<{
22242
+ responseStyle: TResponseStyle;
22243
+ throwOnError: ThrowOnError;
22244
+ }>, Pick<ServerSentEventsOptions<TData>, "onSseError" | "onSseEvent" | "sseDefaultRetryDelay" | "sseMaxRetryAttempts" | "sseMaxRetryDelay"> {
22193
22245
  /**
22194
- * General Error
22246
+ * Any body that you want to add to your request.
22247
+ *
22248
+ * {@link https://developer.mozilla.org/docs/Web/API/fetch#body}
22195
22249
  */
22196
- default: Errors;
22197
- };
22198
- type GetObjectsError = GetObjectsErrors[keyof GetObjectsErrors];
22199
- type GetObjectsResponses = {
22250
+ body?: unknown;
22251
+ path?: Record<string, unknown>;
22252
+ query?: Record<string, unknown>;
22200
22253
  /**
22201
- * Success
22254
+ * Security mechanism(s) to use for the request.
22202
22255
  */
22203
- 200: {
22204
- /**
22205
- * An array of resource objects representing a object
22206
- */
22207
- data?: Array<Object$1>;
22208
- included?: Array<unknown>;
22209
- meta?: {
22210
- [key: string]: unknown;
22211
- };
22212
- };
22256
+ security?: ReadonlyArray<Auth>;
22257
+ url: Url;
22258
+ }
22259
+ interface ResolvedRequestOptions<TResponseStyle extends ResponseStyle = "fields", ThrowOnError extends boolean = boolean, Url extends string = string> extends RequestOptions<unknown, TResponseStyle, ThrowOnError, Url> {
22260
+ serializedBody?: string;
22261
+ }
22262
+ type RequestResult<TData = unknown, TError = unknown, ThrowOnError extends boolean = boolean, TResponseStyle extends ResponseStyle = "fields"> = ThrowOnError extends true ? Promise<TResponseStyle extends "data" ? TData extends Record<string, unknown> ? TData[keyof TData] : TData : {
22263
+ data: TData extends Record<string, unknown> ? TData[keyof TData] : TData;
22264
+ request: Request;
22265
+ response: Response;
22266
+ }> : Promise<TResponseStyle extends "data" ? (TData extends Record<string, unknown> ? TData[keyof TData] : TData) | undefined : ({
22267
+ data: TData extends Record<string, unknown> ? TData[keyof TData] : TData;
22268
+ error: undefined;
22269
+ } | {
22270
+ data: undefined;
22271
+ error: TError extends Record<string, unknown> ? TError[keyof TError] : TError;
22272
+ }) & {
22273
+ request: Request;
22274
+ response: Response;
22275
+ }>;
22276
+ interface ClientOptions {
22277
+ baseUrl?: string;
22278
+ responseStyle?: ResponseStyle;
22279
+ throwOnError?: boolean;
22280
+ }
22281
+ type MethodFn = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle = "fields">(options: Omit<RequestOptions<TData, TResponseStyle, ThrowOnError>, "method">) => RequestResult<TData, TError, ThrowOnError, TResponseStyle>;
22282
+ type SseFn = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle = "fields">(options: Omit<RequestOptions<TData, TResponseStyle, ThrowOnError>, "method">) => Promise<ServerSentEventsResult<TData, TError>>;
22283
+ type RequestFn = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle = "fields">(options: Omit<RequestOptions<TData, TResponseStyle, ThrowOnError>, "method"> & Pick<Required<RequestOptions<TData, TResponseStyle, ThrowOnError>>, "method">) => RequestResult<TData, TError, ThrowOnError, TResponseStyle>;
22284
+ type BuildUrlFn = <TData extends {
22285
+ body?: unknown;
22286
+ path?: Record<string, unknown>;
22287
+ query?: Record<string, unknown>;
22288
+ url: string;
22289
+ }>(options: TData & Options$1<TData>) => string;
22290
+ type Client = Client$1<RequestFn, Config, MethodFn, BuildUrlFn, SseFn> & {
22291
+ interceptors: Middleware<Request, Response, unknown, ResolvedRequestOptions>;
22213
22292
  };
22214
- type GetObjectsResponse = GetObjectsResponses[keyof GetObjectsResponses];
22293
+ interface TDataShape {
22294
+ body?: unknown;
22295
+ headers?: unknown;
22296
+ path?: unknown;
22297
+ query?: unknown;
22298
+ url: string;
22299
+ }
22300
+ type OmitKeys<T, K> = Pick<T, Exclude<keyof T, K>>;
22301
+ type Options$1<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown, TResponseStyle extends ResponseStyle = "fields"> = OmitKeys<RequestOptions<TResponse, TResponseStyle, ThrowOnError>, "body" | "path" | "query" | "url"> & ([TData] extends [never] ? unknown : Omit<TData, "url">);
22215
22302
 
22216
22303
  type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = Options$1<TData, ThrowOnError> & {
22217
22304
  /**
@@ -23139,15 +23226,15 @@ declare const postTenantsByIdRemoveStorage: <ThrowOnError extends boolean = fals
23139
23226
  */
23140
23227
  declare const getNotificationLogsById: <ThrowOnError extends boolean = false>(options: Options<GetNotificationLogsByIdData, ThrowOnError>) => RequestResult<GetNotificationLogsByIdResponses, GetNotificationLogsByIdErrors, ThrowOnError, "fields">;
23141
23228
  /**
23142
- * Get view
23229
+ * Create view
23143
23230
  *
23144
- * Retrieves a single resource by ID.
23231
+ * Creates a new resource. Returns the created resource with generated ID.
23145
23232
  *
23146
23233
  * **Authentication:** Required - Bearer token or API key
23147
23234
  * **Rate Limit:** 100 requests per minute
23148
23235
  *
23149
23236
  */
23150
- declare const getExtractionDocumentsByIdView: <ThrowOnError extends boolean = false>(options: Options<GetExtractionDocumentsByIdViewData, ThrowOnError>) => RequestResult<GetExtractionDocumentsByIdViewResponses, GetExtractionDocumentsByIdViewErrors, ThrowOnError, "fields">;
23237
+ declare const postExtractionDocumentsByIdView: <ThrowOnError extends boolean = false>(options: Options<PostExtractionDocumentsByIdViewData, ThrowOnError>) => RequestResult<PostExtractionDocumentsByIdViewResponses, PostExtractionDocumentsByIdViewErrors, ThrowOnError, "fields">;
23151
23238
  /**
23152
23239
  * Get webhook deliveries
23153
23240
  *
@@ -24561,4 +24648,4 @@ declare function streamMessage(response: Response, options?: StreamOptions): Asy
24561
24648
  */
24562
24649
  declare function collectStreamedMessage(stream: AsyncIterableIterator<StreamMessageChunk>): Promise<string>;
24563
24650
 
24564
- export { type Account, type AccountFilter, type AccountFilterId, type Agent, type AgentCreateRequest, AgentCreateSchema, type AgentFilter, type AgentFilterCapabilities, type AgentFilterDescription, type AgentFilterId, type AgentFilterIsSystem, type AgentFilterName, type AgentFilterSlug, type AgentFilterVersion, type AiConfig, type AiConfigFilter, type ApiKey, type ApiKeyAllocateRequest, ApiKeyAllocateSchema, type ApiKeyCreateRequest, ApiKeyCreateSchema, type ApiKeyFilter, type ApiKeyFilterApplicationId, type ApiKeyFilterExpiresAt, type ApiKeyFilterId, type ApiKeyFilterStatus, type ApiKeyFilterTenantId, type ApiKeyFilterUserId, type ApiKeyFilterWorkspaceId, type Application, type ApplicationCreateRequest, ApplicationCreateSchema, type ApplicationFilter, type ApplicationFilterDefaultFreeCredits, type ApplicationFilterDescription, type ApplicationFilterId, type ApplicationFilterName, type ApplicationFilterSlug, type AuditLog, type AuditLogFilter, type AuditLogFilterAction, type AuditLogFilterActorId, type AuditLogFilterChanges, type AuditLogFilterId, type AuditLogFilterResourceId, type AuditLogFilterResourceType, type AuditLogFilterTenantId, type AuditLogFilterWorkspaceId, AuthenticationError, AuthorizationError, type Bucket, type BucketCreateRequest, BucketCreateSchema, type BucketFilter, type BucketFilterId, type BucketFilterName, type BucketFilterRegion, type BucketFilterStorageUsed, type BucketFilterType, type ClientOptions, type Config, type ConfigFilter, type ConfigFilterDescription, type ConfigFilterKey, type ConfigFilterValue, type Conversation, type ConversationFilter, type ConversationFilterContextData, type ConversationFilterId, type ConversationFilterTenantId, type ConversationFilterTitle, type CreditPackage, type CreditPackageFilter, type CreditPackageFilterCreatedAt, type CreditPackageFilterCredits, type CreditPackageFilterId, type CreditPackageFilterName, type CreditPackageFilterPrice, type CreditPackageFilterSlug, type CreditPackageFilterUpdatedAt, type Customer, type CustomerFilter, type CustomerFilterId, DEFAULT_RETRY_CONFIG, type DeleteAiConversationsByIdData, type DeleteAiConversationsByIdError, type DeleteAiConversationsByIdErrors, type DeleteAiConversationsByIdResponses, type DeleteAiGraphEdgesByIdData, type DeleteAiGraphEdgesByIdError, type DeleteAiGraphEdgesByIdErrors, type DeleteAiGraphEdgesByIdResponses, type DeleteAiGraphNodesByIdData, type DeleteAiGraphNodesByIdError, type DeleteAiGraphNodesByIdErrors, type DeleteAiGraphNodesByIdResponses, type DeleteApiKeysByIdData, type DeleteApiKeysByIdError, type DeleteApiKeysByIdErrors, type DeleteApiKeysByIdResponses, type DeleteApplicationsByIdData, type DeleteApplicationsByIdError, type DeleteApplicationsByIdErrors, type DeleteApplicationsByIdResponses, type DeleteBucketsByIdData, type DeleteBucketsByIdError, type DeleteBucketsByIdErrors, type DeleteBucketsByIdResponses, type DeleteExtractionDocumentsByIdData, type DeleteExtractionDocumentsByIdError, type DeleteExtractionDocumentsByIdErrors, type DeleteExtractionDocumentsByIdResponses, type DeleteExtractionSchemaFieldsByIdData, type DeleteExtractionSchemaFieldsByIdError, type DeleteExtractionSchemaFieldsByIdErrors, type DeleteExtractionSchemaFieldsByIdResponses, type DeleteMessagesByIdData, type DeleteMessagesByIdError, type DeleteMessagesByIdErrors, type DeleteMessagesByIdResponses, type DeleteNotificationPreferencesByIdData, type DeleteNotificationPreferencesByIdError, type DeleteNotificationPreferencesByIdErrors, type DeleteNotificationPreferencesByIdResponses, type DeleteObjectsByIdData, type DeleteObjectsByIdError, type DeleteObjectsByIdErrors, type DeleteObjectsByIdResponses, type DeleteSearchSavedByIdData, type DeleteSearchSavedByIdError, type DeleteSearchSavedByIdErrors, type DeleteSearchSavedByIdResponses, type DeleteTenantMembershipsByTenantIdByUserIdData, type DeleteTenantMembershipsByTenantIdByUserIdError, type DeleteTenantMembershipsByTenantIdByUserIdErrors, type DeleteTenantMembershipsByTenantIdByUserIdResponses, type DeleteTenantsByIdData, type DeleteTenantsByIdError, type DeleteTenantsByIdErrors, type DeleteTenantsByIdResponses, type DeleteThreadsByIdData, type DeleteThreadsByIdError, type DeleteThreadsByIdErrors, type DeleteThreadsByIdResponses, type DeleteTrainingExamplesByIdData, type DeleteTrainingExamplesByIdError, type DeleteTrainingExamplesByIdErrors, type DeleteTrainingExamplesByIdResponses, type DeleteUserProfilesByIdData, type DeleteUserProfilesByIdError, type DeleteUserProfilesByIdErrors, type DeleteUserProfilesByIdResponses, type DeleteWebhookConfigsByIdData, type DeleteWebhookConfigsByIdError, type DeleteWebhookConfigsByIdErrors, type DeleteWebhookConfigsByIdResponses, type DeleteWorkspaceMembershipsByWorkspaceIdByUserIdData, type DeleteWorkspaceMembershipsByWorkspaceIdByUserIdError, type DeleteWorkspaceMembershipsByWorkspaceIdByUserIdErrors, type DeleteWorkspaceMembershipsByWorkspaceIdByUserIdResponses, type DeleteWorkspacesByIdData, type DeleteWorkspacesByIdError, type DeleteWorkspacesByIdErrors, type DeleteWorkspacesByIdResponses, type DocumentChunk, type DocumentChunkFilter, type DocumentChunkFilterChunkIndex, type DocumentChunkFilterContent, type DocumentChunkFilterDocumentId, type DocumentChunkFilterEmbedding, type DocumentChunkFilterId, type DocumentStats, type DocumentStatsFilter, type DocumentStatsFilterCompleted, type DocumentStatsFilterFailed, type DocumentStatsFilterId, type DocumentStatsFilterPending, type DocumentStatsFilterProcessing, type DocumentStatsFilterTotal, type DocumentUploadBase64Request, DocumentUploadBase64Schema, type EmbedRequest, EmbedRequestSchema, type Embedding, type EmbeddingFilter, type EmbeddingFilterBilledCredits, type EmbeddingFilterEmbedding, type EmbeddingFilterId, type EmbeddingFilterModel, type EmbeddingFilterText, type EmbeddingFilterUsage, type Error$1 as Error, type ErrorResponse, type Errors, type ExtractionBatch, type ExtractionBatchFilter, type ExtractionBatchFilterId, type ExtractionBatchFilterName, type ExtractionBatchFilterStatus, type ExtractionBatchFilterUserLabel, type ExtractionDocument, type ExtractionDocumentFilter, type ExtractionDocumentFilterBilledCredits, type ExtractionDocumentFilterContent, type ExtractionDocumentFilterErrorMessage, type ExtractionDocumentFilterFileSizeBytes, type ExtractionDocumentFilterFileType, type ExtractionDocumentFilterFilename, type ExtractionDocumentFilterId, type ExtractionDocumentFilterPages, type ExtractionDocumentFilterProgress, type ExtractionDocumentFilterStatus, type ExtractionDocumentFilterStoragePath, type ExtractionDocumentFilterUploadUrl, type ExtractionResult, type ExtractionResultFilter, type ExtractionResultFilterCreditsUsed, type ExtractionResultFilterExtractedFields, type ExtractionResultFilterExtractionMode, type ExtractionResultFilterId, type ExtractionResultFilterProcessingTimeMs, type ExtractionResultFilterStatus, type ExtractionResultFilterSummary, type ExtractionSchema, type ExtractionSchemaField, type ExtractionSchemaFieldFilter, type ExtractionSchemaFieldFilterExtractionHint, type ExtractionSchemaFieldFilterGroup, type ExtractionSchemaFieldFilterId, type ExtractionSchemaFieldFilterLabel, type ExtractionSchemaFieldFilterName, type ExtractionSchemaFieldFilterOrder, type ExtractionSchemaFieldFilterRequired, type ExtractionSchemaFieldFilterType, type ExtractionSchemaFilter, type ExtractionSchemaFilterId, type ExtractionSchemaFilterIsActive, type ExtractionSchemaFilterVersion, type GetAgentsByIdData, type GetAgentsByIdError, type GetAgentsByIdErrors, type GetAgentsByIdResponse, type GetAgentsByIdResponses, type GetAgentsData, type GetAgentsError, type GetAgentsErrors, type GetAgentsResponse, type GetAgentsResponses, type GetAiChunksDocumentByDocumentIdData, type GetAiChunksDocumentByDocumentIdError, type GetAiChunksDocumentByDocumentIdErrors, type GetAiChunksDocumentByDocumentIdResponse, type GetAiChunksDocumentByDocumentIdResponses, type GetAiConversationsByIdData, type GetAiConversationsByIdError, type GetAiConversationsByIdErrors, type GetAiConversationsByIdResponse, type GetAiConversationsByIdResponses, type GetAiConversationsData, type GetAiConversationsError, type GetAiConversationsErrors, type GetAiConversationsResponse, type GetAiConversationsResponses, type GetAiGraphEdgesData, type GetAiGraphEdgesError, type GetAiGraphEdgesErrors, type GetAiGraphEdgesResponse, type GetAiGraphEdgesResponses, type GetAiGraphNodesData, type GetAiGraphNodesError, type GetAiGraphNodesErrors, type GetAiGraphNodesResponse, type GetAiGraphNodesResponses, type GetAiMessagesData, type GetAiMessagesError, type GetAiMessagesErrors, type GetAiMessagesResponse, type GetAiMessagesResponses, type GetApiKeysByIdData, type GetApiKeysByIdError, type GetApiKeysByIdErrors, type GetApiKeysByIdResponse, type GetApiKeysByIdResponses, type GetApiKeysData, type GetApiKeysError, type GetApiKeysErrors, type GetApiKeysResponse, type GetApiKeysResponses, type GetApplicationsByIdData, type GetApplicationsByIdError, type GetApplicationsByIdErrors, type GetApplicationsByIdResponse, type GetApplicationsByIdResponses, type GetApplicationsBySlugBySlugData, type GetApplicationsBySlugBySlugError, type GetApplicationsBySlugBySlugErrors, type GetApplicationsBySlugBySlugResponse, type GetApplicationsBySlugBySlugResponses, type GetApplicationsData, type GetApplicationsError, type GetApplicationsErrors, type GetApplicationsResponse, type GetApplicationsResponses, type GetAuditLogsData, type GetAuditLogsError, type GetAuditLogsErrors, type GetAuditLogsResponse, type GetAuditLogsResponses, type GetBucketsByIdData, type GetBucketsByIdError, type GetBucketsByIdErrors, type GetBucketsByIdObjectsData, type GetBucketsByIdObjectsError, type GetBucketsByIdObjectsErrors, type GetBucketsByIdObjectsResponse, type GetBucketsByIdObjectsResponses, type GetBucketsByIdResponse, type GetBucketsByIdResponses, type GetBucketsByIdStatsData, type GetBucketsByIdStatsError, type GetBucketsByIdStatsErrors, type GetBucketsByIdStatsResponse, type GetBucketsByIdStatsResponses, type GetBucketsData, type GetBucketsError, type GetBucketsErrors, type GetBucketsResponse, type GetBucketsResponses, type GetConfigsData, type GetConfigsError, type GetConfigsErrors, type GetConfigsResponse, type GetConfigsResponses, type GetCreditPackagesByIdData, type GetCreditPackagesByIdError, type GetCreditPackagesByIdErrors, type GetCreditPackagesByIdResponse, type GetCreditPackagesByIdResponses, type GetCreditPackagesData, type GetCreditPackagesError, type GetCreditPackagesErrors, type GetCreditPackagesResponse, type GetCreditPackagesResponses, type GetCreditPackagesSlugBySlugData, type GetCreditPackagesSlugBySlugError, type GetCreditPackagesSlugBySlugErrors, type GetCreditPackagesSlugBySlugResponse, type GetCreditPackagesSlugBySlugResponses, type GetDocumentsStatsData, type GetDocumentsStatsError, type GetDocumentsStatsErrors, type GetDocumentsStatsResponse, type GetDocumentsStatsResponses, type GetExtractionBatchesByIdData, type GetExtractionBatchesByIdError, type GetExtractionBatchesByIdErrors, type GetExtractionBatchesByIdResponse, type GetExtractionBatchesByIdResponses, type GetExtractionBatchesWorkspaceByWorkspaceIdData, type GetExtractionBatchesWorkspaceByWorkspaceIdError, type GetExtractionBatchesWorkspaceByWorkspaceIdErrors, type GetExtractionBatchesWorkspaceByWorkspaceIdResponse, type GetExtractionBatchesWorkspaceByWorkspaceIdResponses, type GetExtractionDocumentsByIdData, type GetExtractionDocumentsByIdError, type GetExtractionDocumentsByIdErrors, type GetExtractionDocumentsByIdResponse, type GetExtractionDocumentsByIdResponses, type GetExtractionDocumentsByIdStatusData, type GetExtractionDocumentsByIdStatusError, type GetExtractionDocumentsByIdStatusErrors, type GetExtractionDocumentsByIdStatusResponse, type GetExtractionDocumentsByIdStatusResponses, type GetExtractionDocumentsByIdViewData, type GetExtractionDocumentsByIdViewError, type GetExtractionDocumentsByIdViewErrors, type GetExtractionDocumentsByIdViewResponse, type GetExtractionDocumentsByIdViewResponses, type GetExtractionDocumentsData, type GetExtractionDocumentsError, type GetExtractionDocumentsErrors, type GetExtractionDocumentsResponse, type GetExtractionDocumentsResponses, type GetExtractionDocumentsWorkspaceByWorkspaceIdData, type GetExtractionDocumentsWorkspaceByWorkspaceIdError, type GetExtractionDocumentsWorkspaceByWorkspaceIdErrors, type GetExtractionDocumentsWorkspaceByWorkspaceIdResponse, type GetExtractionDocumentsWorkspaceByWorkspaceIdResponses, type GetExtractionResultsByIdData, type GetExtractionResultsByIdError, type GetExtractionResultsByIdErrors, type GetExtractionResultsByIdResponse, type GetExtractionResultsByIdResponses, type GetExtractionResultsDocumentByDocumentIdData, type GetExtractionResultsDocumentByDocumentIdError, type GetExtractionResultsDocumentByDocumentIdErrors, type GetExtractionResultsDocumentByDocumentIdResponse, type GetExtractionResultsDocumentByDocumentIdResponses, type GetExtractionSchemaFieldsByIdData, type GetExtractionSchemaFieldsByIdError, type GetExtractionSchemaFieldsByIdErrors, type GetExtractionSchemaFieldsByIdResponse, type GetExtractionSchemaFieldsByIdResponses, type GetExtractionSchemaFieldsData, type GetExtractionSchemaFieldsError, type GetExtractionSchemaFieldsErrors, type GetExtractionSchemaFieldsResponse, type GetExtractionSchemaFieldsResponses, type GetExtractionSchemasByIdData, type GetExtractionSchemasByIdError, type GetExtractionSchemasByIdErrors, type GetExtractionSchemasByIdResponse, type GetExtractionSchemasByIdResponses, type GetExtractionSchemasWorkspaceByWorkspaceIdData, type GetExtractionSchemasWorkspaceByWorkspaceIdError, type GetExtractionSchemasWorkspaceByWorkspaceIdErrors, type GetExtractionSchemasWorkspaceByWorkspaceIdResponse, type GetExtractionSchemasWorkspaceByWorkspaceIdResponses, type GetInvitationsConsumeByTokenData, type GetInvitationsConsumeByTokenError, type GetInvitationsConsumeByTokenErrors, type GetInvitationsConsumeByTokenResponse, type GetInvitationsConsumeByTokenResponses, type GetInvitationsData, type GetInvitationsError, type GetInvitationsErrors, type GetInvitationsResponse, type GetInvitationsResponses, type GetLlmAnalyticsByIdData, type GetLlmAnalyticsByIdError, type GetLlmAnalyticsByIdErrors, type GetLlmAnalyticsByIdResponse, type GetLlmAnalyticsByIdResponses, type GetLlmAnalyticsCostsData, type GetLlmAnalyticsCostsError, type GetLlmAnalyticsCostsErrors, type GetLlmAnalyticsCostsResponse, type GetLlmAnalyticsCostsResponses, type GetLlmAnalyticsData, type GetLlmAnalyticsError, type GetLlmAnalyticsErrors, type GetLlmAnalyticsPlatformData, type GetLlmAnalyticsPlatformError, type GetLlmAnalyticsPlatformErrors, type GetLlmAnalyticsPlatformResponse, type GetLlmAnalyticsPlatformResponses, type GetLlmAnalyticsResponse, type GetLlmAnalyticsResponses, type GetLlmAnalyticsSummaryData, type GetLlmAnalyticsSummaryError, type GetLlmAnalyticsSummaryErrors, type GetLlmAnalyticsSummaryResponse, type GetLlmAnalyticsSummaryResponses, type GetLlmAnalyticsUsageData, type GetLlmAnalyticsUsageError, type GetLlmAnalyticsUsageErrors, type GetLlmAnalyticsUsageResponse, type GetLlmAnalyticsUsageResponses, type GetLlmAnalyticsWorkspaceData, type GetLlmAnalyticsWorkspaceError, type GetLlmAnalyticsWorkspaceErrors, type GetLlmAnalyticsWorkspaceResponse, type GetLlmAnalyticsWorkspaceResponses, type GetMessagesByIdData, type GetMessagesByIdError, type GetMessagesByIdErrors, type GetMessagesByIdResponse, type GetMessagesByIdResponses, type GetMessagesData, type GetMessagesError, type GetMessagesErrors, type GetMessagesResponse, type GetMessagesResponses, type GetMessagesSearchData, type GetMessagesSearchError, type GetMessagesSearchErrors, type GetMessagesSearchResponse, type GetMessagesSearchResponses, type GetNotificationLogsByIdData, type GetNotificationLogsByIdError, type GetNotificationLogsByIdErrors, type GetNotificationLogsByIdResponse, type GetNotificationLogsByIdResponses, type GetNotificationLogsData, type GetNotificationLogsError, type GetNotificationLogsErrors, type GetNotificationLogsResponse, type GetNotificationLogsResponses, type GetNotificationPreferencesByIdData, type GetNotificationPreferencesByIdError, type GetNotificationPreferencesByIdErrors, type GetNotificationPreferencesByIdResponse, type GetNotificationPreferencesByIdResponses, type GetNotificationPreferencesData, type GetNotificationPreferencesError, type GetNotificationPreferencesErrors, type GetNotificationPreferencesResponse, type GetNotificationPreferencesResponses, type GetObjectsByIdData, type GetObjectsByIdError, type GetObjectsByIdErrors, type GetObjectsByIdResponse, type GetObjectsByIdResponses, type GetObjectsData, type GetObjectsError, type GetObjectsErrors, type GetObjectsResponse, type GetObjectsResponses, type GetPlansByIdData, type GetPlansByIdError, type GetPlansByIdErrors, type GetPlansByIdResponse, type GetPlansByIdResponses, type GetPlansData, type GetPlansError, type GetPlansErrors, type GetPlansResponse, type GetPlansResponses, type GetPlansSlugBySlugData, type GetPlansSlugBySlugError, type GetPlansSlugBySlugErrors, type GetPlansSlugBySlugResponse, type GetPlansSlugBySlugResponses, type GetSearchData, type GetSearchError, type GetSearchErrors, type GetSearchHealthData, type GetSearchHealthError, type GetSearchHealthErrors, type GetSearchHealthResponse, type GetSearchHealthResponses, type GetSearchIndexesData, type GetSearchIndexesError, type GetSearchIndexesErrors, type GetSearchIndexesResponse, type GetSearchIndexesResponses, type GetSearchResponse, type GetSearchResponses, type GetSearchSavedData, type GetSearchSavedError, type GetSearchSavedErrors, type GetSearchSavedResponse, type GetSearchSavedResponses, type GetSearchSemanticData, type GetSearchSemanticError, type GetSearchSemanticErrors, type GetSearchSemanticResponse, type GetSearchSemanticResponses, type GetSearchStatsData, type GetSearchStatsError, type GetSearchStatsErrors, type GetSearchStatsResponse, type GetSearchStatsResponses, type GetSearchStatusData, type GetSearchStatusError, type GetSearchStatusErrors, type GetSearchStatusResponse, type GetSearchStatusResponses, type GetStorageStatsData, type GetStorageStatsError, type GetStorageStatsErrors, type GetStorageStatsResponse, type GetStorageStatsResponses, type GetTenantMembershipsData, type GetTenantMembershipsError, type GetTenantMembershipsErrors, type GetTenantMembershipsResponse, type GetTenantMembershipsResponses, type GetTenantsByIdData, type GetTenantsByIdError, type GetTenantsByIdErrors, type GetTenantsByIdResponse, type GetTenantsByIdResponses, type GetTenantsData, type GetTenantsError, type GetTenantsErrors, type GetTenantsResponse, type GetTenantsResponses, type GetThreadsByIdData, type GetThreadsByIdError, type GetThreadsByIdErrors, type GetThreadsByIdResponse, type GetThreadsByIdResponses, type GetThreadsData, type GetThreadsError, type GetThreadsErrors, type GetThreadsResponse, type GetThreadsResponses, type GetThreadsSearchData, type GetThreadsSearchError, type GetThreadsSearchErrors, type GetThreadsSearchResponse, type GetThreadsSearchResponses, type GetTrainingExamplesByIdData, type GetTrainingExamplesByIdError, type GetTrainingExamplesByIdErrors, type GetTrainingExamplesByIdResponse, type GetTrainingExamplesByIdResponses, type GetTrainingExamplesData, type GetTrainingExamplesError, type GetTrainingExamplesErrors, type GetTrainingExamplesResponse, type GetTrainingExamplesResponses, type GetTransactionsByIdData, type GetTransactionsByIdError, type GetTransactionsByIdErrors, type GetTransactionsByIdResponse, type GetTransactionsByIdResponses, type GetTransactionsData, type GetTransactionsError, type GetTransactionsErrors, type GetTransactionsResponse, type GetTransactionsResponses, type GetUserProfilesByIdData, type GetUserProfilesByIdError, type GetUserProfilesByIdErrors, type GetUserProfilesByIdResponse, type GetUserProfilesByIdResponses, type GetUserProfilesData, type GetUserProfilesError, type GetUserProfilesErrors, type GetUserProfilesMeData, type GetUserProfilesMeError, type GetUserProfilesMeErrors, type GetUserProfilesMeResponse, type GetUserProfilesMeResponses, type GetUserProfilesResponse, type GetUserProfilesResponses, type GetUsersByIdData, type GetUsersByIdError, type GetUsersByIdErrors, type GetUsersByIdResponse, type GetUsersByIdResponses, type GetUsersData, type GetUsersError, type GetUsersErrors, type GetUsersMeData, type GetUsersMeError, type GetUsersMeErrors, type GetUsersMeResponse, type GetUsersMeResponses, type GetUsersResponse, type GetUsersResponses, type GetWalletData, type GetWalletError, type GetWalletErrors, type GetWalletResponse, type GetWalletResponses, type GetWebhookConfigsByIdData, type GetWebhookConfigsByIdError, type GetWebhookConfigsByIdErrors, type GetWebhookConfigsByIdResponse, type GetWebhookConfigsByIdResponses, type GetWebhookConfigsData, type GetWebhookConfigsError, type GetWebhookConfigsErrors, type GetWebhookConfigsResponse, type GetWebhookConfigsResponses, type GetWebhookDeliveriesByIdData, type GetWebhookDeliveriesByIdError, type GetWebhookDeliveriesByIdErrors, type GetWebhookDeliveriesByIdResponse, type GetWebhookDeliveriesByIdResponses, type GetWebhookDeliveriesData, type GetWebhookDeliveriesError, type GetWebhookDeliveriesErrors, type GetWebhookDeliveriesResponse, type GetWebhookDeliveriesResponses, type GetWorkspaceMembershipsData, type GetWorkspaceMembershipsError, type GetWorkspaceMembershipsErrors, type GetWorkspaceMembershipsResponse, type GetWorkspaceMembershipsResponses, type GetWorkspacesByIdData, type GetWorkspacesByIdError, type GetWorkspacesByIdErrors, type GetWorkspacesByIdResponse, type GetWorkspacesByIdResponses, type GetWorkspacesData, type GetWorkspacesError, type GetWorkspacesErrors, type GetWorkspacesMineData, type GetWorkspacesMineError, type GetWorkspacesMineErrors, type GetWorkspacesMineResponse, type GetWorkspacesMineResponses, type GetWorkspacesResponse, type GetWorkspacesResponses, GptCoreError, type GraphEdge, type GraphEdgeFilter, type GraphEdgeFilterId, type GraphEdgeFilterProperties, type GraphEdgeFilterRelationship, type GraphEdgeFilterSourceId, type GraphEdgeFilterTargetId, type GraphNode, type GraphNodeFilter, type GraphNodeFilterId, type GraphNodeFilterLabel, type GraphNodeFilterProperties, type GraphNodeFilterTenantId, type Invitation, type InvitationCreateRequest, InvitationCreateSchema, type InvitationFilter, type InvitationFilterId, type Ledger, type LedgerFilter, type LedgerFilterId, type Link, type Links, type LlmAnalytics, type LlmAnalyticsFilter, type LlmAnalyticsFilterId, type LoginRequest, LoginRequestSchema, type Message, type MessageFilter, type MessageFilterContent, type MessageFilterId, type MessageFilterRole, type MessageSendRequest, MessageSendSchema, NetworkError, NotFoundError, type NotificationLog, type NotificationLogFilter, type NotificationLogFilterId, type NotificationPreference, type NotificationPreferenceFilter, type NotificationPreferenceFilterId, type Object$1 as Object, type ObjectFilter, type ObjectFilterContentType, type ObjectFilterId, type ObjectFilterKey, type ObjectFilterSizeBytes, type OperationSuccess, type OperationSuccessFilter, type OperationSuccessFilterId, type OperationSuccessFilterMessage, type OperationSuccessFilterSuccess, type Options, type PaginatedResponse, type PaginationLinks, type PaginationOptions, type PatchApiKeysByIdAllocateData, type PatchApiKeysByIdAllocateError, type PatchApiKeysByIdAllocateErrors, type PatchApiKeysByIdAllocateResponse, type PatchApiKeysByIdAllocateResponses, type PatchApiKeysByIdData, type PatchApiKeysByIdError, type PatchApiKeysByIdErrors, type PatchApiKeysByIdResponse, type PatchApiKeysByIdResponses, type PatchApiKeysByIdRevokeData, type PatchApiKeysByIdRevokeError, type PatchApiKeysByIdRevokeErrors, type PatchApiKeysByIdRevokeResponse, type PatchApiKeysByIdRevokeResponses, type PatchApiKeysByIdRotateData, type PatchApiKeysByIdRotateError, type PatchApiKeysByIdRotateErrors, type PatchApiKeysByIdRotateResponse, type PatchApiKeysByIdRotateResponses, type PatchApplicationsByIdData, type PatchApplicationsByIdError, type PatchApplicationsByIdErrors, type PatchApplicationsByIdResponse, type PatchApplicationsByIdResponses, type PatchBucketsByIdData, type PatchBucketsByIdError, type PatchBucketsByIdErrors, type PatchBucketsByIdResponse, type PatchBucketsByIdResponses, type PatchConfigsByKeyData, type PatchConfigsByKeyError, type PatchConfigsByKeyErrors, type PatchConfigsByKeyResponse, type PatchConfigsByKeyResponses, type PatchExtractionDocumentsByIdFinishUploadData, type PatchExtractionDocumentsByIdFinishUploadError, type PatchExtractionDocumentsByIdFinishUploadErrors, type PatchExtractionDocumentsByIdFinishUploadResponse, type PatchExtractionDocumentsByIdFinishUploadResponses, type PatchExtractionDocumentsByIdStatusData, type PatchExtractionDocumentsByIdStatusError, type PatchExtractionDocumentsByIdStatusErrors, type PatchExtractionDocumentsByIdStatusResponse, type PatchExtractionDocumentsByIdStatusResponses, type PatchExtractionResultsByIdCorrectionsData, type PatchExtractionResultsByIdCorrectionsError, type PatchExtractionResultsByIdCorrectionsErrors, type PatchExtractionResultsByIdCorrectionsResponse, type PatchExtractionResultsByIdCorrectionsResponses, type PatchExtractionResultsByIdRegenerateData, type PatchExtractionResultsByIdRegenerateError, type PatchExtractionResultsByIdRegenerateErrors, type PatchExtractionResultsByIdRegenerateResponse, type PatchExtractionResultsByIdRegenerateResponses, type PatchExtractionSchemaFieldsByIdData, type PatchExtractionSchemaFieldsByIdError, type PatchExtractionSchemaFieldsByIdErrors, type PatchExtractionSchemaFieldsByIdResponse, type PatchExtractionSchemaFieldsByIdResponses, type PatchExtractionSchemasByIdData, type PatchExtractionSchemasByIdError, type PatchExtractionSchemasByIdErrors, type PatchExtractionSchemasByIdResponse, type PatchExtractionSchemasByIdResponses, type PatchInvitationsByIdAcceptData, type PatchInvitationsByIdAcceptError, type PatchInvitationsByIdAcceptErrors, type PatchInvitationsByIdAcceptResponse, type PatchInvitationsByIdAcceptResponses, type PatchInvitationsByIdResendData, type PatchInvitationsByIdResendError, type PatchInvitationsByIdResendErrors, type PatchInvitationsByIdResendResponse, type PatchInvitationsByIdResendResponses, type PatchInvitationsByIdRevokeData, type PatchInvitationsByIdRevokeError, type PatchInvitationsByIdRevokeErrors, type PatchInvitationsByIdRevokeResponse, type PatchInvitationsByIdRevokeResponses, type PatchMessagesByIdData, type PatchMessagesByIdError, type PatchMessagesByIdErrors, type PatchMessagesByIdResponse, type PatchMessagesByIdResponses, type PatchNotificationPreferencesByIdData, type PatchNotificationPreferencesByIdError, type PatchNotificationPreferencesByIdErrors, type PatchNotificationPreferencesByIdResponse, type PatchNotificationPreferencesByIdResponses, type PatchTenantMembershipsByTenantIdByUserIdData, type PatchTenantMembershipsByTenantIdByUserIdError, type PatchTenantMembershipsByTenantIdByUserIdErrors, type PatchTenantMembershipsByTenantIdByUserIdResponse, type PatchTenantMembershipsByTenantIdByUserIdResponses, type PatchTenantsByIdData, type PatchTenantsByIdError, type PatchTenantsByIdErrors, type PatchTenantsByIdResponse, type PatchTenantsByIdResponses, type PatchThreadsByIdData, type PatchThreadsByIdError, type PatchThreadsByIdErrors, type PatchThreadsByIdResponse, type PatchThreadsByIdResponses, type PatchTrainingExamplesByIdData, type PatchTrainingExamplesByIdError, type PatchTrainingExamplesByIdErrors, type PatchTrainingExamplesByIdResponse, type PatchTrainingExamplesByIdResponses, type PatchUserProfilesByIdData, type PatchUserProfilesByIdError, type PatchUserProfilesByIdErrors, type PatchUserProfilesByIdResponse, type PatchUserProfilesByIdResponses, type PatchUsersAuthResetPasswordData, type PatchUsersAuthResetPasswordError, type PatchUsersAuthResetPasswordErrors, type PatchUsersAuthResetPasswordResponse, type PatchUsersAuthResetPasswordResponses, type PatchUsersByIdConfirmEmailData, type PatchUsersByIdConfirmEmailError, type PatchUsersByIdConfirmEmailErrors, type PatchUsersByIdConfirmEmailResponse, type PatchUsersByIdConfirmEmailResponses, type PatchUsersByIdData, type PatchUsersByIdError, type PatchUsersByIdErrors, type PatchUsersByIdResetPasswordData, type PatchUsersByIdResetPasswordError, type PatchUsersByIdResetPasswordErrors, type PatchUsersByIdResetPasswordResponse, type PatchUsersByIdResetPasswordResponses, type PatchUsersByIdResponse, type PatchUsersByIdResponses, type PatchWalletAddonsByAddonSlugCancelData, type PatchWalletAddonsByAddonSlugCancelError, type PatchWalletAddonsByAddonSlugCancelErrors, type PatchWalletAddonsByAddonSlugCancelResponse, type PatchWalletAddonsByAddonSlugCancelResponses, type PatchWalletAddonsData, type PatchWalletAddonsError, type PatchWalletAddonsErrors, type PatchWalletAddonsResponse, type PatchWalletAddonsResponses, type PatchWalletPlanData, type PatchWalletPlanError, type PatchWalletPlanErrors, type PatchWalletPlanResponse, type PatchWalletPlanResponses, type PatchWebhookConfigsByIdData, type PatchWebhookConfigsByIdError, type PatchWebhookConfigsByIdErrors, type PatchWebhookConfigsByIdResponse, type PatchWebhookConfigsByIdResponses, type PatchWorkspaceMembershipsByWorkspaceIdByUserIdData, type PatchWorkspaceMembershipsByWorkspaceIdByUserIdError, type PatchWorkspaceMembershipsByWorkspaceIdByUserIdErrors, type PatchWorkspaceMembershipsByWorkspaceIdByUserIdResponse, type PatchWorkspaceMembershipsByWorkspaceIdByUserIdResponses, type PatchWorkspacesByIdAllocateData, type PatchWorkspacesByIdAllocateError, type PatchWorkspacesByIdAllocateErrors, type PatchWorkspacesByIdAllocateResponse, type PatchWorkspacesByIdAllocateResponses, type PatchWorkspacesByIdData, type PatchWorkspacesByIdError, type PatchWorkspacesByIdErrors, type PatchWorkspacesByIdResponse, type PatchWorkspacesByIdResponses, type Payment, type PaymentFilter, type PaymentFilterAmount, type PaymentFilterCreatedAt, type PaymentFilterCurrency, type PaymentFilterErrorMessage, type PaymentFilterId, type PaymentFilterProviderReference, type PaymentFilterStatus, type PaymentMethod, type PaymentMethodFilter, type PaymentMethodFilterId, type Plan, type PlanFilter, type PlanFilterCreatedAt, type PlanFilterId, type PlanFilterMonthlyCredits, type PlanFilterMonthlyPrice, type PlanFilterName, type PlanFilterSlug, type PlanFilterStorageDays, type PlanFilterType, type PlanFilterUpdatedAt, type PostAgentsByIdCloneData, type PostAgentsByIdCloneError, type PostAgentsByIdCloneErrors, type PostAgentsByIdCloneResponse, type PostAgentsByIdCloneResponses, type PostAgentsByIdTestData, type PostAgentsByIdTestError, type PostAgentsByIdTestErrors, type PostAgentsByIdTestResponse, type PostAgentsByIdTestResponses, type PostAgentsByIdValidateData, type PostAgentsByIdValidateError, type PostAgentsByIdValidateErrors, type PostAgentsByIdValidateResponse, type PostAgentsByIdValidateResponses, type PostAgentsPredictData, type PostAgentsPredictError, type PostAgentsPredictErrors, type PostAgentsPredictResponse, type PostAgentsPredictResponses, type PostAiChunksSearchData, type PostAiChunksSearchError, type PostAiChunksSearchErrors, type PostAiChunksSearchResponse, type PostAiChunksSearchResponses, type PostAiConversationsData, type PostAiConversationsError, type PostAiConversationsErrors, type PostAiConversationsResponse, type PostAiConversationsResponses, type PostAiEmbedData, type PostAiEmbedError, type PostAiEmbedErrors, type PostAiEmbedResponse, type PostAiEmbedResponses, type PostAiGraphEdgesData, type PostAiGraphEdgesError, type PostAiGraphEdgesErrors, type PostAiGraphEdgesResponse, type PostAiGraphEdgesResponses, type PostAiGraphNodesData, type PostAiGraphNodesError, type PostAiGraphNodesErrors, type PostAiGraphNodesResponse, type PostAiGraphNodesResponses, type PostAiMessagesData, type PostAiMessagesError, type PostAiMessagesErrors, type PostAiMessagesResponse, type PostAiMessagesResponses, type PostAiSearchAdvancedData, type PostAiSearchAdvancedError, type PostAiSearchAdvancedErrors, type PostAiSearchAdvancedResponse, type PostAiSearchAdvancedResponses, type PostAiSearchData, type PostAiSearchError, type PostAiSearchErrors, type PostAiSearchResponse, type PostAiSearchResponses, type PostApiKeysData, type PostApiKeysError, type PostApiKeysErrors, type PostApiKeysResponse, type PostApiKeysResponses, type PostApplicationsData, type PostApplicationsError, type PostApplicationsErrors, type PostApplicationsResponse, type PostApplicationsResponses, type PostBucketsData, type PostBucketsError, type PostBucketsErrors, type PostBucketsResponse, type PostBucketsResponses, type PostConfigsData, type PostConfigsError, type PostConfigsErrors, type PostConfigsResponse, type PostConfigsResponses, type PostDocumentsBulkDeleteData, type PostDocumentsBulkDeleteError, type PostDocumentsBulkDeleteErrors, type PostDocumentsBulkDeleteResponse, type PostDocumentsBulkDeleteResponses, type PostDocumentsPresignedUploadData, type PostDocumentsPresignedUploadError, type PostDocumentsPresignedUploadErrors, type PostDocumentsPresignedUploadResponse, type PostDocumentsPresignedUploadResponses, type PostExtractionBatchesData, type PostExtractionBatchesError, type PostExtractionBatchesErrors, type PostExtractionBatchesResponse, type PostExtractionBatchesResponses, type PostExtractionDocumentsBeginUploadData, type PostExtractionDocumentsBeginUploadError, type PostExtractionDocumentsBeginUploadErrors, type PostExtractionDocumentsBeginUploadResponse, type PostExtractionDocumentsBeginUploadResponses, type PostExtractionDocumentsUploadData, type PostExtractionDocumentsUploadError, type PostExtractionDocumentsUploadErrors, type PostExtractionDocumentsUploadResponse, type PostExtractionDocumentsUploadResponses, type PostExtractionResultsData, type PostExtractionResultsError, type PostExtractionResultsErrors, type PostExtractionResultsResponse, type PostExtractionResultsResponses, type PostExtractionSchemaFieldsData, type PostExtractionSchemaFieldsError, type PostExtractionSchemaFieldsErrors, type PostExtractionSchemaFieldsResponse, type PostExtractionSchemaFieldsResponses, type PostExtractionSchemasData, type PostExtractionSchemasError, type PostExtractionSchemasErrors, type PostExtractionSchemasResponse, type PostExtractionSchemasResponses, type PostInvitationsAcceptByTokenData, type PostInvitationsAcceptByTokenError, type PostInvitationsAcceptByTokenErrors, type PostInvitationsAcceptByTokenResponse, type PostInvitationsAcceptByTokenResponses, type PostInvitationsInviteData, type PostInvitationsInviteError, type PostInvitationsInviteErrors, type PostInvitationsInviteResponse, type PostInvitationsInviteResponses, type PostLlmAnalyticsData, type PostLlmAnalyticsError, type PostLlmAnalyticsErrors, type PostLlmAnalyticsResponse, type PostLlmAnalyticsResponses, type PostMessagesData, type PostMessagesError, type PostMessagesErrors, type PostMessagesResponse, type PostMessagesResponses, type PostNotificationPreferencesData, type PostNotificationPreferencesError, type PostNotificationPreferencesErrors, type PostNotificationPreferencesResponse, type PostNotificationPreferencesResponses, type PostObjectsBulkDestroyData, type PostObjectsBulkDestroyError, type PostObjectsBulkDestroyErrors, type PostObjectsBulkDestroyResponse, type PostObjectsBulkDestroyResponses, type PostObjectsRegisterData, type PostObjectsRegisterError, type PostObjectsRegisterErrors, type PostObjectsRegisterResponse, type PostObjectsRegisterResponses, type PostPaymentsData, type PostPaymentsError, type PostPaymentsErrors, type PostPaymentsResponse, type PostPaymentsResponses, type PostSearchReindexData, type PostSearchReindexError, type PostSearchReindexErrors, type PostSearchReindexResponse, type PostSearchReindexResponses, type PostSearchSavedData, type PostSearchSavedError, type PostSearchSavedErrors, type PostSearchSavedResponse, type PostSearchSavedResponses, type PostStorageSignDownloadData, type PostStorageSignDownloadError, type PostStorageSignDownloadErrors, type PostStorageSignDownloadResponse, type PostStorageSignDownloadResponses, type PostStorageSignUploadData, type PostStorageSignUploadError, type PostStorageSignUploadErrors, type PostStorageSignUploadResponse, type PostStorageSignUploadResponses, type PostTenantMembershipsData, type PostTenantMembershipsError, type PostTenantMembershipsErrors, type PostTenantMembershipsResponse, type PostTenantMembershipsResponses, type PostTenantsByIdBuyStorageData, type PostTenantsByIdBuyStorageError, type PostTenantsByIdBuyStorageErrors, type PostTenantsByIdBuyStorageResponse, type PostTenantsByIdBuyStorageResponses, type PostTenantsByIdRemoveStorageData, type PostTenantsByIdRemoveStorageError, type PostTenantsByIdRemoveStorageErrors, type PostTenantsByIdRemoveStorageResponse, type PostTenantsByIdRemoveStorageResponses, type PostTenantsData, type PostTenantsError, type PostTenantsErrors, type PostTenantsResponse, type PostTenantsResponses, type PostThreadsActiveData, type PostThreadsActiveError, type PostThreadsActiveErrors, type PostThreadsActiveResponse, type PostThreadsActiveResponses, type PostThreadsByIdMessagesData, type PostThreadsByIdMessagesError, type PostThreadsByIdMessagesErrors, type PostThreadsByIdMessagesResponse, type PostThreadsByIdMessagesResponses, type PostThreadsByIdSummarizeData, type PostThreadsByIdSummarizeError, type PostThreadsByIdSummarizeErrors, type PostThreadsByIdSummarizeResponse, type PostThreadsByIdSummarizeResponses, type PostThreadsData, type PostThreadsError, type PostThreadsErrors, type PostThreadsResponse, type PostThreadsResponses, type PostTokensData, type PostTokensError, type PostTokensErrors, type PostTokensResponse, type PostTokensResponses, type PostTrainingExamplesBulkData, type PostTrainingExamplesBulkDeleteData, type PostTrainingExamplesBulkDeleteError, type PostTrainingExamplesBulkDeleteErrors, type PostTrainingExamplesBulkDeleteResponse, type PostTrainingExamplesBulkDeleteResponses, type PostTrainingExamplesBulkError, type PostTrainingExamplesBulkErrors, type PostTrainingExamplesBulkResponse, type PostTrainingExamplesBulkResponses, type PostTrainingExamplesData, type PostTrainingExamplesError, type PostTrainingExamplesErrors, type PostTrainingExamplesResponse, type PostTrainingExamplesResponses, type PostUserProfilesData, type PostUserProfilesError, type PostUserProfilesErrors, type PostUserProfilesResponse, type PostUserProfilesResponses, type PostUsersAuthConfirmData, type PostUsersAuthConfirmError, type PostUsersAuthConfirmErrors, type PostUsersAuthConfirmResponse, type PostUsersAuthConfirmResponses, type PostUsersAuthLoginData, type PostUsersAuthLoginError, type PostUsersAuthLoginErrors, type PostUsersAuthLoginResponse, type PostUsersAuthLoginResponses, type PostUsersAuthMagicLinkLoginData, type PostUsersAuthMagicLinkLoginError, type PostUsersAuthMagicLinkLoginErrors, type PostUsersAuthMagicLinkLoginResponse, type PostUsersAuthMagicLinkLoginResponses, type PostUsersAuthMagicLinkRequestData, type PostUsersAuthMagicLinkRequestError, type PostUsersAuthMagicLinkRequestErrors, type PostUsersAuthMagicLinkRequestResponse, type PostUsersAuthMagicLinkRequestResponses, type PostUsersAuthRegisterData, type PostUsersAuthRegisterError, type PostUsersAuthRegisterErrors, type PostUsersAuthRegisterResponse, type PostUsersAuthRegisterResponses, type PostUsersAuthRegisterWithOidcData, type PostUsersAuthRegisterWithOidcError, type PostUsersAuthRegisterWithOidcErrors, type PostUsersAuthRegisterWithOidcResponse, type PostUsersAuthRegisterWithOidcResponses, type PostUsersRegisterIsvData, type PostUsersRegisterIsvError, type PostUsersRegisterIsvErrors, type PostUsersRegisterIsvResponse, type PostUsersRegisterIsvResponses, type PostWebhookConfigsByIdTestData, type PostWebhookConfigsByIdTestError, type PostWebhookConfigsByIdTestErrors, type PostWebhookConfigsByIdTestResponse, type PostWebhookConfigsByIdTestResponses, type PostWebhookConfigsData, type PostWebhookConfigsError, type PostWebhookConfigsErrors, type PostWebhookConfigsResponse, type PostWebhookConfigsResponses, type PostWebhookDeliveriesByIdRetryData, type PostWebhookDeliveriesByIdRetryError, type PostWebhookDeliveriesByIdRetryErrors, type PostWebhookDeliveriesByIdRetryResponse, type PostWebhookDeliveriesByIdRetryResponses, type PostWorkspaceMembershipsData, type PostWorkspaceMembershipsError, type PostWorkspaceMembershipsErrors, type PostWorkspaceMembershipsResponse, type PostWorkspaceMembershipsResponses, type PostWorkspacesData, type PostWorkspacesError, type PostWorkspacesErrors, type PostWorkspacesResponse, type PostWorkspacesResponses, type PresignedDownloadRequest, PresignedDownloadSchema, type PresignedUploadRequest, PresignedUploadSchema, type PresignedUrl, type PresignedUrlFilter, type PresignedUrlFilterExpiresIn, type PresignedUrlFilterHeaders, type PresignedUrlFilterId, type PresignedUrlFilterMethod, type PresignedUrlFilterStoragePath, type PresignedUrlFilterUploadUrl, type PresignedUrlFilterUrl, type PricingRule, type PricingRuleFilter, type PricingRuleFilterId, type PricingStrategy, type PricingStrategyFilter, type PricingStrategyFilterId, RateLimitError, type RegisterRequest, RegisterRequestSchema, type RetryConfig, type SavedSearch, type SavedSearchFilter, type SavedSearchFilterFilters, type SavedSearchFilterId, type SavedSearchFilterIsShared, type SavedSearchFilterName, type SavedSearchFilterQuery, type SavedSearchFilterSearchType, type Search, type SearchFilter, type SearchFilterId, type SearchRequest, SearchRequestSchema, type SemanticCacheEntry, type SemanticCacheEntryFilter, type SemanticCacheEntryFilterId, ServerError, type StorageStats, type StorageStatsFilter, type StorageStatsFilterId, type StorageStatsFilterTotalBuckets, type StorageStatsFilterTotalObjects, type StorageStatsFilterTotalStorageBytes, type StreamMessageChunk, type StreamOptions, type Subscription, type SubscriptionFilter, type SubscriptionFilterId, type Tenant, type TenantFilter, type TenantFilterBadgeUrl, type TenantFilterId, type TenantFilterKind, type TenantFilterLogoUrl, type TenantFilterName, type TenantFilterSlug, type TenantMembership, type TenantMembershipFilter, type TenantMembershipFilterRole, type TenantMembershipFilterTenantId, type TenantMembershipFilterUserId, type Thread, type ThreadCreateRequest, ThreadCreateSchema, type ThreadFilter, type ThreadFilterContextSummary, type ThreadFilterId, type ThreadFilterTitle, TimeoutError, type Token, type TokenFilter, type TokenFilterBrand, type TokenFilterExpMonth, type TokenFilterExpYear, type TokenFilterId, type TokenFilterLast4, type TokenFilterToken, type TrainingExample, type TrainingExampleFilter, type TrainingExampleFilterEmbedding, type TrainingExampleFilterId, type TrainingExampleFilterInputText, type TrainingExampleFilterOutputJson, type Transaction, type TransactionFilter, type TransactionFilterAmount, type TransactionFilterCreatedAt, type TransactionFilterCurrency, type TransactionFilterDescription, type TransactionFilterErrorMessage, type TransactionFilterId, type TransactionFilterProviderReference, type TransactionFilterServiceId, type TransactionFilterStatus, type TransactionFilterType, type TransactionFilterUpdatedAt, type User, type UserFilter, type UserFilterCurrentWorkspaceId, type UserFilterEmail, type UserFilterId, type UserFilterIsAppAdmin, type UserFilterIsPlatformAdmin, type UserProfile, type UserProfileFilter, type UserProfileFilterAvatarUrl, type UserProfileFilterBio, type UserProfileFilterFirstName, type UserProfileFilterId, type UserProfileFilterLastName, type UserProfileFilterPreferences, type UserProfileFilterSocialLinks, type UserProfileFilterUserId, ValidationError, type Wallet, type WalletFilter, type WalletFilterApplicationId, type WalletFilterCredits, type WalletFilterCreditsFree, type WalletFilterCreditsPaid, type WalletFilterCreditsSubscription, type WalletFilterId, type WalletFilterPlan, type WalletFilterStorageBlocksPurchased, type WalletFilterStorageQuotaBytes, type WalletFilterStorageUsedBytes, type WebhookConfig, type WebhookConfigFilter, type WebhookConfigFilterId, type WebhookDelivery, type WebhookDeliveryFilter, type WebhookDeliveryFilterId, type Workspace, type WorkspaceCreateRequest, WorkspaceCreateSchema, type WorkspaceFilter, type WorkspaceFilterApplicationId, type WorkspaceFilterArchivedAt, type WorkspaceFilterCreatedAt, type WorkspaceFilterDescription, type WorkspaceFilterExpiresAt, type WorkspaceFilterId, type WorkspaceFilterIsDefault, type WorkspaceFilterLowBalanceThreshold, type WorkspaceFilterName, type WorkspaceFilterRenewalParams, type WorkspaceFilterSlug, type WorkspaceFilterSpecialtyAgentId, type WorkspaceFilterUpdatedAt, type WorkspaceMembership, type WorkspaceMembershipFilter, type WorkspaceSettingsInputCreateType, type WorkspaceSettingsInputUpdateType, type XApplicationKey, calculateBackoff, client, collectStreamedMessage, deleteAiConversationsById, deleteAiGraphEdgesById, deleteAiGraphNodesById, deleteApiKeysById, deleteApplicationsById, deleteBucketsById, deleteExtractionDocumentsById, deleteExtractionSchemaFieldsById, deleteMessagesById, deleteNotificationPreferencesById, deleteObjectsById, deleteSearchSavedById, deleteTenantMembershipsByTenantIdByUserId, deleteTenantsById, deleteThreadsById, deleteTrainingExamplesById, deleteUserProfilesById, deleteWebhookConfigsById, deleteWorkspaceMembershipsByWorkspaceIdByUserId, deleteWorkspacesById, getAgents, getAgentsById, getAiChunksDocumentByDocumentId, getAiConversations, getAiConversationsById, getAiGraphEdges, getAiGraphNodes, getAiMessages, getApiKeys, getApiKeysById, getApplications, getApplicationsById, getApplicationsBySlugBySlug, getAuditLogs, getBuckets, getBucketsById, getBucketsByIdObjects, getBucketsByIdStats, getConfigs, getCreditPackages, getCreditPackagesById, getCreditPackagesSlugBySlug, getDocumentsStats, getExtractionBatchesById, getExtractionBatchesWorkspaceByWorkspaceId, getExtractionDocuments, getExtractionDocumentsById, getExtractionDocumentsByIdStatus, getExtractionDocumentsByIdView, getExtractionDocumentsWorkspaceByWorkspaceId, getExtractionResultsById, getExtractionResultsDocumentByDocumentId, getExtractionSchemaFields, getExtractionSchemaFieldsById, getExtractionSchemasById, getExtractionSchemasWorkspaceByWorkspaceId, getInvitations, getInvitationsConsumeByToken, getLlmAnalytics, getLlmAnalyticsById, getLlmAnalyticsCosts, getLlmAnalyticsPlatform, getLlmAnalyticsSummary, getLlmAnalyticsUsage, getLlmAnalyticsWorkspace, getMessages, getMessagesById, getMessagesSearch, getNotificationLogs, getNotificationLogsById, getNotificationPreferences, getNotificationPreferencesById, getObjects, getObjectsById, getPlans, getPlansById, getPlansSlugBySlug, getSearch, getSearchHealth, getSearchIndexes, getSearchSaved, getSearchSemantic, getSearchStats, getSearchStatus, getStorageStats, getTenantMemberships, getTenants, getTenantsById, getThreads, getThreadsById, getThreadsSearch, getTrainingExamples, getTrainingExamplesById, getTransactions, getTransactionsById, getUserProfiles, getUserProfilesById, getUserProfilesMe, getUsers, getUsersById, getUsersMe, getWallet, getWebhookConfigs, getWebhookConfigsById, getWebhookDeliveries, getWebhookDeliveriesById, getWorkspaceMemberships, getWorkspaces, getWorkspacesById, getWorkspacesMine, handleApiError, isRetryableError, paginateAll, paginateToArray, patchApiKeysById, patchApiKeysByIdAllocate, patchApiKeysByIdRevoke, patchApiKeysByIdRotate, patchApplicationsById, patchBucketsById, patchConfigsByKey, patchExtractionDocumentsByIdFinishUpload, patchExtractionDocumentsByIdStatus, patchExtractionResultsByIdCorrections, patchExtractionResultsByIdRegenerate, patchExtractionSchemaFieldsById, patchExtractionSchemasById, patchInvitationsByIdAccept, patchInvitationsByIdResend, patchInvitationsByIdRevoke, patchMessagesById, patchNotificationPreferencesById, patchTenantMembershipsByTenantIdByUserId, patchTenantsById, patchThreadsById, patchTrainingExamplesById, patchUserProfilesById, patchUsersAuthResetPassword, patchUsersById, patchUsersByIdConfirmEmail, patchUsersByIdResetPassword, patchWalletAddons, patchWalletAddonsByAddonSlugCancel, patchWalletPlan, patchWebhookConfigsById, patchWorkspaceMembershipsByWorkspaceIdByUserId, patchWorkspacesById, patchWorkspacesByIdAllocate, postAgentsByIdClone, postAgentsByIdTest, postAgentsByIdValidate, postAgentsPredict, postAiChunksSearch, postAiConversations, postAiEmbed, postAiGraphEdges, postAiGraphNodes, postAiMessages, postAiSearch, postAiSearchAdvanced, postApiKeys, postApplications, postBuckets, postConfigs, postDocumentsBulkDelete, postDocumentsPresignedUpload, postExtractionBatches, postExtractionDocumentsBeginUpload, postExtractionDocumentsUpload, postExtractionResults, postExtractionSchemaFields, postExtractionSchemas, postInvitationsAcceptByToken, postInvitationsInvite, postLlmAnalytics, postMessages, postNotificationPreferences, postObjectsBulkDestroy, postObjectsRegister, postPayments, postSearchReindex, postSearchSaved, postStorageSignDownload, postStorageSignUpload, postTenantMemberships, postTenants, postTenantsByIdBuyStorage, postTenantsByIdRemoveStorage, postThreads, postThreadsActive, postThreadsByIdMessages, postThreadsByIdSummarize, postTokens, postTrainingExamples, postTrainingExamplesBulk, postTrainingExamplesBulkDelete, postUserProfiles, postUsersAuthConfirm, postUsersAuthLogin, postUsersAuthMagicLinkLogin, postUsersAuthMagicLinkRequest, postUsersAuthRegister, postUsersAuthRegisterWithOidc, postUsersRegisterIsv, postWebhookConfigs, postWebhookConfigsByIdTest, postWebhookDeliveriesByIdRetry, postWorkspaceMemberships, postWorkspaces, retryWithBackoff, sleep, streamMessage, streamSSE, withRetry };
24651
+ export { type Account, type AccountFilter, type AccountFilterId, type Agent, type AgentCreateRequest, AgentCreateSchema, type AgentFilter, type AgentFilterCapabilities, type AgentFilterDescription, type AgentFilterId, type AgentFilterIsSystem, type AgentFilterName, type AgentFilterSlug, type AgentFilterVersion, type AiConfig, type AiConfigFilter, type ApiKey, type ApiKeyAllocateRequest, ApiKeyAllocateSchema, type ApiKeyCreateRequest, ApiKeyCreateSchema, type ApiKeyFilter, type ApiKeyFilterApplicationId, type ApiKeyFilterExpiresAt, type ApiKeyFilterId, type ApiKeyFilterStatus, type ApiKeyFilterTenantId, type ApiKeyFilterUserId, type ApiKeyFilterWorkspaceId, type Application, type ApplicationCreateRequest, ApplicationCreateSchema, type ApplicationFilter, type ApplicationFilterDefaultFreeCredits, type ApplicationFilterDescription, type ApplicationFilterId, type ApplicationFilterName, type ApplicationFilterSlug, type AuditLog, type AuditLogFilter, type AuditLogFilterAction, type AuditLogFilterActorId, type AuditLogFilterChanges, type AuditLogFilterId, type AuditLogFilterResourceId, type AuditLogFilterResourceType, type AuditLogFilterTenantId, type AuditLogFilterWorkspaceId, AuthenticationError, AuthorizationError, type Bucket, type BucketCreateRequest, BucketCreateSchema, type BucketFilter, type BucketFilterId, type BucketFilterName, type BucketFilterRegion, type BucketFilterStorageUsed, type BucketFilterType, type ClientOptions$1 as ClientOptions, type Config$2 as Config, type ConfigFilter, type ConfigFilterDescription, type ConfigFilterKey, type ConfigFilterValue, type Conversation, type ConversationFilter, type ConversationFilterContextData, type ConversationFilterId, type ConversationFilterTenantId, type ConversationFilterTitle, type CreditPackage, type CreditPackageFilter, type CreditPackageFilterCreatedAt, type CreditPackageFilterCredits, type CreditPackageFilterId, type CreditPackageFilterName, type CreditPackageFilterPrice, type CreditPackageFilterSlug, type CreditPackageFilterUpdatedAt, type Customer, type CustomerFilter, type CustomerFilterId, DEFAULT_RETRY_CONFIG, type DeleteAiConversationsByIdData, type DeleteAiConversationsByIdError, type DeleteAiConversationsByIdErrors, type DeleteAiConversationsByIdResponses, type DeleteAiGraphEdgesByIdData, type DeleteAiGraphEdgesByIdError, type DeleteAiGraphEdgesByIdErrors, type DeleteAiGraphEdgesByIdResponses, type DeleteAiGraphNodesByIdData, type DeleteAiGraphNodesByIdError, type DeleteAiGraphNodesByIdErrors, type DeleteAiGraphNodesByIdResponses, type DeleteApiKeysByIdData, type DeleteApiKeysByIdError, type DeleteApiKeysByIdErrors, type DeleteApiKeysByIdResponses, type DeleteApplicationsByIdData, type DeleteApplicationsByIdError, type DeleteApplicationsByIdErrors, type DeleteApplicationsByIdResponses, type DeleteBucketsByIdData, type DeleteBucketsByIdError, type DeleteBucketsByIdErrors, type DeleteBucketsByIdResponses, type DeleteExtractionDocumentsByIdData, type DeleteExtractionDocumentsByIdError, type DeleteExtractionDocumentsByIdErrors, type DeleteExtractionDocumentsByIdResponses, type DeleteExtractionSchemaFieldsByIdData, type DeleteExtractionSchemaFieldsByIdError, type DeleteExtractionSchemaFieldsByIdErrors, type DeleteExtractionSchemaFieldsByIdResponses, type DeleteMessagesByIdData, type DeleteMessagesByIdError, type DeleteMessagesByIdErrors, type DeleteMessagesByIdResponses, type DeleteNotificationPreferencesByIdData, type DeleteNotificationPreferencesByIdError, type DeleteNotificationPreferencesByIdErrors, type DeleteNotificationPreferencesByIdResponses, type DeleteObjectsByIdData, type DeleteObjectsByIdError, type DeleteObjectsByIdErrors, type DeleteObjectsByIdResponses, type DeleteSearchSavedByIdData, type DeleteSearchSavedByIdError, type DeleteSearchSavedByIdErrors, type DeleteSearchSavedByIdResponses, type DeleteTenantMembershipsByTenantIdByUserIdData, type DeleteTenantMembershipsByTenantIdByUserIdError, type DeleteTenantMembershipsByTenantIdByUserIdErrors, type DeleteTenantMembershipsByTenantIdByUserIdResponses, type DeleteTenantsByIdData, type DeleteTenantsByIdError, type DeleteTenantsByIdErrors, type DeleteTenantsByIdResponses, type DeleteThreadsByIdData, type DeleteThreadsByIdError, type DeleteThreadsByIdErrors, type DeleteThreadsByIdResponses, type DeleteTrainingExamplesByIdData, type DeleteTrainingExamplesByIdError, type DeleteTrainingExamplesByIdErrors, type DeleteTrainingExamplesByIdResponses, type DeleteUserProfilesByIdData, type DeleteUserProfilesByIdError, type DeleteUserProfilesByIdErrors, type DeleteUserProfilesByIdResponses, type DeleteWebhookConfigsByIdData, type DeleteWebhookConfigsByIdError, type DeleteWebhookConfigsByIdErrors, type DeleteWebhookConfigsByIdResponses, type DeleteWorkspaceMembershipsByWorkspaceIdByUserIdData, type DeleteWorkspaceMembershipsByWorkspaceIdByUserIdError, type DeleteWorkspaceMembershipsByWorkspaceIdByUserIdErrors, type DeleteWorkspaceMembershipsByWorkspaceIdByUserIdResponses, type DeleteWorkspacesByIdData, type DeleteWorkspacesByIdError, type DeleteWorkspacesByIdErrors, type DeleteWorkspacesByIdResponses, type DocumentChunk, type DocumentChunkFilter, type DocumentChunkFilterChunkIndex, type DocumentChunkFilterContent, type DocumentChunkFilterDocumentId, type DocumentChunkFilterEmbedding, type DocumentChunkFilterId, type DocumentStats, type DocumentStatsFilter, type DocumentStatsFilterCompleted, type DocumentStatsFilterFailed, type DocumentStatsFilterId, type DocumentStatsFilterPending, type DocumentStatsFilterProcessing, type DocumentStatsFilterTotal, type DocumentUploadBase64Request, DocumentUploadBase64Schema, type EmbedRequest, EmbedRequestSchema, type Embedding, type EmbeddingFilter, type EmbeddingFilterBilledCredits, type EmbeddingFilterEmbedding, type EmbeddingFilterId, type EmbeddingFilterModel, type EmbeddingFilterText, type EmbeddingFilterUsage, type ErrorResponse, type Errors, type ExtractionBatch, type ExtractionBatchFilter, type ExtractionBatchFilterId, type ExtractionBatchFilterName, type ExtractionBatchFilterStatus, type ExtractionBatchFilterUserLabel, type ExtractionDocument, type ExtractionDocumentFilter, type ExtractionDocumentFilterBilledCredits, type ExtractionDocumentFilterContent, type ExtractionDocumentFilterErrorMessage, type ExtractionDocumentFilterFileSizeBytes, type ExtractionDocumentFilterFileType, type ExtractionDocumentFilterFilename, type ExtractionDocumentFilterId, type ExtractionDocumentFilterPages, type ExtractionDocumentFilterPresignedViewUrl, type ExtractionDocumentFilterProgress, type ExtractionDocumentFilterStatus, type ExtractionDocumentFilterStoragePath, type ExtractionDocumentFilterUploadUrl, type ExtractionResult, type ExtractionResultFilter, type ExtractionResultFilterCreditsUsed, type ExtractionResultFilterExtractedFields, type ExtractionResultFilterExtractionMode, type ExtractionResultFilterId, type ExtractionResultFilterProcessingTimeMs, type ExtractionResultFilterStatus, type ExtractionResultFilterSummary, type ExtractionSchema, type ExtractionSchemaField, type ExtractionSchemaFieldFilter, type ExtractionSchemaFieldFilterExtractionHint, type ExtractionSchemaFieldFilterGroup, type ExtractionSchemaFieldFilterId, type ExtractionSchemaFieldFilterLabel, type ExtractionSchemaFieldFilterName, type ExtractionSchemaFieldFilterOrder, type ExtractionSchemaFieldFilterRequired, type ExtractionSchemaFieldFilterType, type ExtractionSchemaFilter, type ExtractionSchemaFilterId, type ExtractionSchemaFilterIsActive, type ExtractionSchemaFilterVersion, type GetAgentsByIdData, type GetAgentsByIdError, type GetAgentsByIdErrors, type GetAgentsByIdResponse, type GetAgentsByIdResponses, type GetAgentsData, type GetAgentsError, type GetAgentsErrors, type GetAgentsResponse, type GetAgentsResponses, type GetAiChunksDocumentByDocumentIdData, type GetAiChunksDocumentByDocumentIdError, type GetAiChunksDocumentByDocumentIdErrors, type GetAiChunksDocumentByDocumentIdResponse, type GetAiChunksDocumentByDocumentIdResponses, type GetAiConversationsByIdData, type GetAiConversationsByIdError, type GetAiConversationsByIdErrors, type GetAiConversationsByIdResponse, type GetAiConversationsByIdResponses, type GetAiConversationsData, type GetAiConversationsError, type GetAiConversationsErrors, type GetAiConversationsResponse, type GetAiConversationsResponses, type GetAiGraphEdgesData, type GetAiGraphEdgesError, type GetAiGraphEdgesErrors, type GetAiGraphEdgesResponse, type GetAiGraphEdgesResponses, type GetAiGraphNodesData, type GetAiGraphNodesError, type GetAiGraphNodesErrors, type GetAiGraphNodesResponse, type GetAiGraphNodesResponses, type GetAiMessagesData, type GetAiMessagesError, type GetAiMessagesErrors, type GetAiMessagesResponse, type GetAiMessagesResponses, type GetApiKeysByIdData, type GetApiKeysByIdError, type GetApiKeysByIdErrors, type GetApiKeysByIdResponse, type GetApiKeysByIdResponses, type GetApiKeysData, type GetApiKeysError, type GetApiKeysErrors, type GetApiKeysResponse, type GetApiKeysResponses, type GetApplicationsByIdData, type GetApplicationsByIdError, type GetApplicationsByIdErrors, type GetApplicationsByIdResponse, type GetApplicationsByIdResponses, type GetApplicationsBySlugBySlugData, type GetApplicationsBySlugBySlugError, type GetApplicationsBySlugBySlugErrors, type GetApplicationsBySlugBySlugResponse, type GetApplicationsBySlugBySlugResponses, type GetApplicationsData, type GetApplicationsError, type GetApplicationsErrors, type GetApplicationsResponse, type GetApplicationsResponses, type GetAuditLogsData, type GetAuditLogsError, type GetAuditLogsErrors, type GetAuditLogsResponse, type GetAuditLogsResponses, type GetBucketsByIdData, type GetBucketsByIdError, type GetBucketsByIdErrors, type GetBucketsByIdObjectsData, type GetBucketsByIdObjectsError, type GetBucketsByIdObjectsErrors, type GetBucketsByIdObjectsResponse, type GetBucketsByIdObjectsResponses, type GetBucketsByIdResponse, type GetBucketsByIdResponses, type GetBucketsByIdStatsData, type GetBucketsByIdStatsError, type GetBucketsByIdStatsErrors, type GetBucketsByIdStatsResponse, type GetBucketsByIdStatsResponses, type GetBucketsData, type GetBucketsError, type GetBucketsErrors, type GetBucketsResponse, type GetBucketsResponses, type GetConfigsData, type GetConfigsError, type GetConfigsErrors, type GetConfigsResponse, type GetConfigsResponses, type GetCreditPackagesByIdData, type GetCreditPackagesByIdError, type GetCreditPackagesByIdErrors, type GetCreditPackagesByIdResponse, type GetCreditPackagesByIdResponses, type GetCreditPackagesData, type GetCreditPackagesError, type GetCreditPackagesErrors, type GetCreditPackagesResponse, type GetCreditPackagesResponses, type GetCreditPackagesSlugBySlugData, type GetCreditPackagesSlugBySlugError, type GetCreditPackagesSlugBySlugErrors, type GetCreditPackagesSlugBySlugResponse, type GetCreditPackagesSlugBySlugResponses, type GetDocumentsStatsData, type GetDocumentsStatsError, type GetDocumentsStatsErrors, type GetDocumentsStatsResponse, type GetDocumentsStatsResponses, type GetExtractionBatchesByIdData, type GetExtractionBatchesByIdError, type GetExtractionBatchesByIdErrors, type GetExtractionBatchesByIdResponse, type GetExtractionBatchesByIdResponses, type GetExtractionBatchesWorkspaceByWorkspaceIdData, type GetExtractionBatchesWorkspaceByWorkspaceIdError, type GetExtractionBatchesWorkspaceByWorkspaceIdErrors, type GetExtractionBatchesWorkspaceByWorkspaceIdResponse, type GetExtractionBatchesWorkspaceByWorkspaceIdResponses, type GetExtractionDocumentsByIdData, type GetExtractionDocumentsByIdError, type GetExtractionDocumentsByIdErrors, type GetExtractionDocumentsByIdResponse, type GetExtractionDocumentsByIdResponses, type GetExtractionDocumentsByIdStatusData, type GetExtractionDocumentsByIdStatusError, type GetExtractionDocumentsByIdStatusErrors, type GetExtractionDocumentsByIdStatusResponse, type GetExtractionDocumentsByIdStatusResponses, type GetExtractionDocumentsData, type GetExtractionDocumentsError, type GetExtractionDocumentsErrors, type GetExtractionDocumentsResponse, type GetExtractionDocumentsResponses, type GetExtractionDocumentsWorkspaceByWorkspaceIdData, type GetExtractionDocumentsWorkspaceByWorkspaceIdError, type GetExtractionDocumentsWorkspaceByWorkspaceIdErrors, type GetExtractionDocumentsWorkspaceByWorkspaceIdResponse, type GetExtractionDocumentsWorkspaceByWorkspaceIdResponses, type GetExtractionResultsByIdData, type GetExtractionResultsByIdError, type GetExtractionResultsByIdErrors, type GetExtractionResultsByIdResponse, type GetExtractionResultsByIdResponses, type GetExtractionResultsDocumentByDocumentIdData, type GetExtractionResultsDocumentByDocumentIdError, type GetExtractionResultsDocumentByDocumentIdErrors, type GetExtractionResultsDocumentByDocumentIdResponse, type GetExtractionResultsDocumentByDocumentIdResponses, type GetExtractionSchemaFieldsByIdData, type GetExtractionSchemaFieldsByIdError, type GetExtractionSchemaFieldsByIdErrors, type GetExtractionSchemaFieldsByIdResponse, type GetExtractionSchemaFieldsByIdResponses, type GetExtractionSchemaFieldsData, type GetExtractionSchemaFieldsError, type GetExtractionSchemaFieldsErrors, type GetExtractionSchemaFieldsResponse, type GetExtractionSchemaFieldsResponses, type GetExtractionSchemasByIdData, type GetExtractionSchemasByIdError, type GetExtractionSchemasByIdErrors, type GetExtractionSchemasByIdResponse, type GetExtractionSchemasByIdResponses, type GetExtractionSchemasWorkspaceByWorkspaceIdData, type GetExtractionSchemasWorkspaceByWorkspaceIdError, type GetExtractionSchemasWorkspaceByWorkspaceIdErrors, type GetExtractionSchemasWorkspaceByWorkspaceIdResponse, type GetExtractionSchemasWorkspaceByWorkspaceIdResponses, type GetInvitationsConsumeByTokenData, type GetInvitationsConsumeByTokenError, type GetInvitationsConsumeByTokenErrors, type GetInvitationsConsumeByTokenResponse, type GetInvitationsConsumeByTokenResponses, type GetInvitationsData, type GetInvitationsError, type GetInvitationsErrors, type GetInvitationsResponse, type GetInvitationsResponses, type GetLlmAnalyticsByIdData, type GetLlmAnalyticsByIdError, type GetLlmAnalyticsByIdErrors, type GetLlmAnalyticsByIdResponse, type GetLlmAnalyticsByIdResponses, type GetLlmAnalyticsCostsData, type GetLlmAnalyticsCostsError, type GetLlmAnalyticsCostsErrors, type GetLlmAnalyticsCostsResponse, type GetLlmAnalyticsCostsResponses, type GetLlmAnalyticsData, type GetLlmAnalyticsError, type GetLlmAnalyticsErrors, type GetLlmAnalyticsPlatformData, type GetLlmAnalyticsPlatformError, type GetLlmAnalyticsPlatformErrors, type GetLlmAnalyticsPlatformResponse, type GetLlmAnalyticsPlatformResponses, type GetLlmAnalyticsResponse, type GetLlmAnalyticsResponses, type GetLlmAnalyticsSummaryData, type GetLlmAnalyticsSummaryError, type GetLlmAnalyticsSummaryErrors, type GetLlmAnalyticsSummaryResponse, type GetLlmAnalyticsSummaryResponses, type GetLlmAnalyticsUsageData, type GetLlmAnalyticsUsageError, type GetLlmAnalyticsUsageErrors, type GetLlmAnalyticsUsageResponse, type GetLlmAnalyticsUsageResponses, type GetLlmAnalyticsWorkspaceData, type GetLlmAnalyticsWorkspaceError, type GetLlmAnalyticsWorkspaceErrors, type GetLlmAnalyticsWorkspaceResponse, type GetLlmAnalyticsWorkspaceResponses, type GetMessagesByIdData, type GetMessagesByIdError, type GetMessagesByIdErrors, type GetMessagesByIdResponse, type GetMessagesByIdResponses, type GetMessagesData, type GetMessagesError, type GetMessagesErrors, type GetMessagesResponse, type GetMessagesResponses, type GetMessagesSearchData, type GetMessagesSearchError, type GetMessagesSearchErrors, type GetMessagesSearchResponse, type GetMessagesSearchResponses, type GetNotificationLogsByIdData, type GetNotificationLogsByIdError, type GetNotificationLogsByIdErrors, type GetNotificationLogsByIdResponse, type GetNotificationLogsByIdResponses, type GetNotificationLogsData, type GetNotificationLogsError, type GetNotificationLogsErrors, type GetNotificationLogsResponse, type GetNotificationLogsResponses, type GetNotificationPreferencesByIdData, type GetNotificationPreferencesByIdError, type GetNotificationPreferencesByIdErrors, type GetNotificationPreferencesByIdResponse, type GetNotificationPreferencesByIdResponses, type GetNotificationPreferencesData, type GetNotificationPreferencesError, type GetNotificationPreferencesErrors, type GetNotificationPreferencesResponse, type GetNotificationPreferencesResponses, type GetObjectsByIdData, type GetObjectsByIdError, type GetObjectsByIdErrors, type GetObjectsByIdResponse, type GetObjectsByIdResponses, type GetObjectsData, type GetObjectsError, type GetObjectsErrors, type GetObjectsResponse, type GetObjectsResponses, type GetPlansByIdData, type GetPlansByIdError, type GetPlansByIdErrors, type GetPlansByIdResponse, type GetPlansByIdResponses, type GetPlansData, type GetPlansError, type GetPlansErrors, type GetPlansResponse, type GetPlansResponses, type GetPlansSlugBySlugData, type GetPlansSlugBySlugError, type GetPlansSlugBySlugErrors, type GetPlansSlugBySlugResponse, type GetPlansSlugBySlugResponses, type GetSearchData, type GetSearchError, type GetSearchErrors, type GetSearchHealthData, type GetSearchHealthError, type GetSearchHealthErrors, type GetSearchHealthResponse, type GetSearchHealthResponses, type GetSearchIndexesData, type GetSearchIndexesError, type GetSearchIndexesErrors, type GetSearchIndexesResponse, type GetSearchIndexesResponses, type GetSearchResponse, type GetSearchResponses, type GetSearchSavedData, type GetSearchSavedError, type GetSearchSavedErrors, type GetSearchSavedResponse, type GetSearchSavedResponses, type GetSearchSemanticData, type GetSearchSemanticError, type GetSearchSemanticErrors, type GetSearchSemanticResponse, type GetSearchSemanticResponses, type GetSearchStatsData, type GetSearchStatsError, type GetSearchStatsErrors, type GetSearchStatsResponse, type GetSearchStatsResponses, type GetSearchStatusData, type GetSearchStatusError, type GetSearchStatusErrors, type GetSearchStatusResponse, type GetSearchStatusResponses, type GetStorageStatsData, type GetStorageStatsError, type GetStorageStatsErrors, type GetStorageStatsResponse, type GetStorageStatsResponses, type GetTenantMembershipsData, type GetTenantMembershipsError, type GetTenantMembershipsErrors, type GetTenantMembershipsResponse, type GetTenantMembershipsResponses, type GetTenantsByIdData, type GetTenantsByIdError, type GetTenantsByIdErrors, type GetTenantsByIdResponse, type GetTenantsByIdResponses, type GetTenantsData, type GetTenantsError, type GetTenantsErrors, type GetTenantsResponse, type GetTenantsResponses, type GetThreadsByIdData, type GetThreadsByIdError, type GetThreadsByIdErrors, type GetThreadsByIdResponse, type GetThreadsByIdResponses, type GetThreadsData, type GetThreadsError, type GetThreadsErrors, type GetThreadsResponse, type GetThreadsResponses, type GetThreadsSearchData, type GetThreadsSearchError, type GetThreadsSearchErrors, type GetThreadsSearchResponse, type GetThreadsSearchResponses, type GetTrainingExamplesByIdData, type GetTrainingExamplesByIdError, type GetTrainingExamplesByIdErrors, type GetTrainingExamplesByIdResponse, type GetTrainingExamplesByIdResponses, type GetTrainingExamplesData, type GetTrainingExamplesError, type GetTrainingExamplesErrors, type GetTrainingExamplesResponse, type GetTrainingExamplesResponses, type GetTransactionsByIdData, type GetTransactionsByIdError, type GetTransactionsByIdErrors, type GetTransactionsByIdResponse, type GetTransactionsByIdResponses, type GetTransactionsData, type GetTransactionsError, type GetTransactionsErrors, type GetTransactionsResponse, type GetTransactionsResponses, type GetUserProfilesByIdData, type GetUserProfilesByIdError, type GetUserProfilesByIdErrors, type GetUserProfilesByIdResponse, type GetUserProfilesByIdResponses, type GetUserProfilesData, type GetUserProfilesError, type GetUserProfilesErrors, type GetUserProfilesMeData, type GetUserProfilesMeError, type GetUserProfilesMeErrors, type GetUserProfilesMeResponse, type GetUserProfilesMeResponses, type GetUserProfilesResponse, type GetUserProfilesResponses, type GetUsersByIdData, type GetUsersByIdError, type GetUsersByIdErrors, type GetUsersByIdResponse, type GetUsersByIdResponses, type GetUsersData, type GetUsersError, type GetUsersErrors, type GetUsersMeData, type GetUsersMeError, type GetUsersMeErrors, type GetUsersMeResponse, type GetUsersMeResponses, type GetUsersResponse, type GetUsersResponses, type GetWalletData, type GetWalletError, type GetWalletErrors, type GetWalletResponse, type GetWalletResponses, type GetWebhookConfigsByIdData, type GetWebhookConfigsByIdError, type GetWebhookConfigsByIdErrors, type GetWebhookConfigsByIdResponse, type GetWebhookConfigsByIdResponses, type GetWebhookConfigsData, type GetWebhookConfigsError, type GetWebhookConfigsErrors, type GetWebhookConfigsResponse, type GetWebhookConfigsResponses, type GetWebhookDeliveriesByIdData, type GetWebhookDeliveriesByIdError, type GetWebhookDeliveriesByIdErrors, type GetWebhookDeliveriesByIdResponse, type GetWebhookDeliveriesByIdResponses, type GetWebhookDeliveriesData, type GetWebhookDeliveriesError, type GetWebhookDeliveriesErrors, type GetWebhookDeliveriesResponse, type GetWebhookDeliveriesResponses, type GetWorkspaceMembershipsData, type GetWorkspaceMembershipsError, type GetWorkspaceMembershipsErrors, type GetWorkspaceMembershipsResponse, type GetWorkspaceMembershipsResponses, type GetWorkspacesByIdData, type GetWorkspacesByIdError, type GetWorkspacesByIdErrors, type GetWorkspacesByIdResponse, type GetWorkspacesByIdResponses, type GetWorkspacesData, type GetWorkspacesError, type GetWorkspacesErrors, type GetWorkspacesMineData, type GetWorkspacesMineError, type GetWorkspacesMineErrors, type GetWorkspacesMineResponse, type GetWorkspacesMineResponses, type GetWorkspacesResponse, type GetWorkspacesResponses, GptCoreError, type GraphEdge, type GraphEdgeFilter, type GraphEdgeFilterId, type GraphEdgeFilterProperties, type GraphEdgeFilterRelationship, type GraphEdgeFilterSourceId, type GraphEdgeFilterTargetId, type GraphNode, type GraphNodeFilter, type GraphNodeFilterId, type GraphNodeFilterLabel, type GraphNodeFilterProperties, type GraphNodeFilterTenantId, type Invitation, type InvitationCreateRequest, InvitationCreateSchema, type InvitationFilter, type InvitationFilterId, type Ledger, type LedgerFilter, type LedgerFilterId, type Link, type Links, type LlmAnalytics, type LlmAnalyticsFilter, type LlmAnalyticsFilterId, type LoginRequest, LoginRequestSchema, type Message, type MessageFilter, type MessageFilterContent, type MessageFilterId, type MessageFilterRole, type MessageSendRequest, MessageSendSchema, NetworkError, NotFoundError, type NotificationLog, type NotificationLogFilter, type NotificationLogFilterId, type NotificationPreference, type NotificationPreferenceFilter, type NotificationPreferenceFilterId, type ObjectFilter, type ObjectFilterContentType, type ObjectFilterId, type ObjectFilterKey, type ObjectFilterSizeBytes, type OperationSuccess, type OperationSuccessFilter, type OperationSuccessFilterId, type OperationSuccessFilterMessage, type OperationSuccessFilterSuccess, type Options, type PaginatedResponse, type PaginationLinks, type PaginationOptions, type PatchApiKeysByIdAllocateData, type PatchApiKeysByIdAllocateError, type PatchApiKeysByIdAllocateErrors, type PatchApiKeysByIdAllocateResponse, type PatchApiKeysByIdAllocateResponses, type PatchApiKeysByIdData, type PatchApiKeysByIdError, type PatchApiKeysByIdErrors, type PatchApiKeysByIdResponse, type PatchApiKeysByIdResponses, type PatchApiKeysByIdRevokeData, type PatchApiKeysByIdRevokeError, type PatchApiKeysByIdRevokeErrors, type PatchApiKeysByIdRevokeResponse, type PatchApiKeysByIdRevokeResponses, type PatchApiKeysByIdRotateData, type PatchApiKeysByIdRotateError, type PatchApiKeysByIdRotateErrors, type PatchApiKeysByIdRotateResponse, type PatchApiKeysByIdRotateResponses, type PatchApplicationsByIdData, type PatchApplicationsByIdError, type PatchApplicationsByIdErrors, type PatchApplicationsByIdResponse, type PatchApplicationsByIdResponses, type PatchBucketsByIdData, type PatchBucketsByIdError, type PatchBucketsByIdErrors, type PatchBucketsByIdResponse, type PatchBucketsByIdResponses, type PatchConfigsByKeyData, type PatchConfigsByKeyError, type PatchConfigsByKeyErrors, type PatchConfigsByKeyResponse, type PatchConfigsByKeyResponses, type PatchExtractionDocumentsByIdFinishUploadData, type PatchExtractionDocumentsByIdFinishUploadError, type PatchExtractionDocumentsByIdFinishUploadErrors, type PatchExtractionDocumentsByIdFinishUploadResponse, type PatchExtractionDocumentsByIdFinishUploadResponses, type PatchExtractionDocumentsByIdStatusData, type PatchExtractionDocumentsByIdStatusError, type PatchExtractionDocumentsByIdStatusErrors, type PatchExtractionDocumentsByIdStatusResponse, type PatchExtractionDocumentsByIdStatusResponses, type PatchExtractionResultsByIdCorrectionsData, type PatchExtractionResultsByIdCorrectionsError, type PatchExtractionResultsByIdCorrectionsErrors, type PatchExtractionResultsByIdCorrectionsResponse, type PatchExtractionResultsByIdCorrectionsResponses, type PatchExtractionResultsByIdRegenerateData, type PatchExtractionResultsByIdRegenerateError, type PatchExtractionResultsByIdRegenerateErrors, type PatchExtractionResultsByIdRegenerateResponse, type PatchExtractionResultsByIdRegenerateResponses, type PatchExtractionSchemaFieldsByIdData, type PatchExtractionSchemaFieldsByIdError, type PatchExtractionSchemaFieldsByIdErrors, type PatchExtractionSchemaFieldsByIdResponse, type PatchExtractionSchemaFieldsByIdResponses, type PatchExtractionSchemasByIdData, type PatchExtractionSchemasByIdError, type PatchExtractionSchemasByIdErrors, type PatchExtractionSchemasByIdResponse, type PatchExtractionSchemasByIdResponses, type PatchInvitationsByIdAcceptData, type PatchInvitationsByIdAcceptError, type PatchInvitationsByIdAcceptErrors, type PatchInvitationsByIdAcceptResponse, type PatchInvitationsByIdAcceptResponses, type PatchInvitationsByIdResendData, type PatchInvitationsByIdResendError, type PatchInvitationsByIdResendErrors, type PatchInvitationsByIdResendResponse, type PatchInvitationsByIdResendResponses, type PatchInvitationsByIdRevokeData, type PatchInvitationsByIdRevokeError, type PatchInvitationsByIdRevokeErrors, type PatchInvitationsByIdRevokeResponse, type PatchInvitationsByIdRevokeResponses, type PatchMessagesByIdData, type PatchMessagesByIdError, type PatchMessagesByIdErrors, type PatchMessagesByIdResponse, type PatchMessagesByIdResponses, type PatchNotificationPreferencesByIdData, type PatchNotificationPreferencesByIdError, type PatchNotificationPreferencesByIdErrors, type PatchNotificationPreferencesByIdResponse, type PatchNotificationPreferencesByIdResponses, type PatchTenantMembershipsByTenantIdByUserIdData, type PatchTenantMembershipsByTenantIdByUserIdError, type PatchTenantMembershipsByTenantIdByUserIdErrors, type PatchTenantMembershipsByTenantIdByUserIdResponse, type PatchTenantMembershipsByTenantIdByUserIdResponses, type PatchTenantsByIdData, type PatchTenantsByIdError, type PatchTenantsByIdErrors, type PatchTenantsByIdResponse, type PatchTenantsByIdResponses, type PatchThreadsByIdData, type PatchThreadsByIdError, type PatchThreadsByIdErrors, type PatchThreadsByIdResponse, type PatchThreadsByIdResponses, type PatchTrainingExamplesByIdData, type PatchTrainingExamplesByIdError, type PatchTrainingExamplesByIdErrors, type PatchTrainingExamplesByIdResponse, type PatchTrainingExamplesByIdResponses, type PatchUserProfilesByIdData, type PatchUserProfilesByIdError, type PatchUserProfilesByIdErrors, type PatchUserProfilesByIdResponse, type PatchUserProfilesByIdResponses, type PatchUsersAuthResetPasswordData, type PatchUsersAuthResetPasswordError, type PatchUsersAuthResetPasswordErrors, type PatchUsersAuthResetPasswordResponse, type PatchUsersAuthResetPasswordResponses, type PatchUsersByIdConfirmEmailData, type PatchUsersByIdConfirmEmailError, type PatchUsersByIdConfirmEmailErrors, type PatchUsersByIdConfirmEmailResponse, type PatchUsersByIdConfirmEmailResponses, type PatchUsersByIdData, type PatchUsersByIdError, type PatchUsersByIdErrors, type PatchUsersByIdResetPasswordData, type PatchUsersByIdResetPasswordError, type PatchUsersByIdResetPasswordErrors, type PatchUsersByIdResetPasswordResponse, type PatchUsersByIdResetPasswordResponses, type PatchUsersByIdResponse, type PatchUsersByIdResponses, type PatchWalletAddonsByAddonSlugCancelData, type PatchWalletAddonsByAddonSlugCancelError, type PatchWalletAddonsByAddonSlugCancelErrors, type PatchWalletAddonsByAddonSlugCancelResponse, type PatchWalletAddonsByAddonSlugCancelResponses, type PatchWalletAddonsData, type PatchWalletAddonsError, type PatchWalletAddonsErrors, type PatchWalletAddonsResponse, type PatchWalletAddonsResponses, type PatchWalletPlanData, type PatchWalletPlanError, type PatchWalletPlanErrors, type PatchWalletPlanResponse, type PatchWalletPlanResponses, type PatchWebhookConfigsByIdData, type PatchWebhookConfigsByIdError, type PatchWebhookConfigsByIdErrors, type PatchWebhookConfigsByIdResponse, type PatchWebhookConfigsByIdResponses, type PatchWorkspaceMembershipsByWorkspaceIdByUserIdData, type PatchWorkspaceMembershipsByWorkspaceIdByUserIdError, type PatchWorkspaceMembershipsByWorkspaceIdByUserIdErrors, type PatchWorkspaceMembershipsByWorkspaceIdByUserIdResponse, type PatchWorkspaceMembershipsByWorkspaceIdByUserIdResponses, type PatchWorkspacesByIdAllocateData, type PatchWorkspacesByIdAllocateError, type PatchWorkspacesByIdAllocateErrors, type PatchWorkspacesByIdAllocateResponse, type PatchWorkspacesByIdAllocateResponses, type PatchWorkspacesByIdData, type PatchWorkspacesByIdError, type PatchWorkspacesByIdErrors, type PatchWorkspacesByIdResponse, type PatchWorkspacesByIdResponses, type Payment, type PaymentFilter, type PaymentFilterAmount, type PaymentFilterCreatedAt, type PaymentFilterCurrency, type PaymentFilterErrorMessage, type PaymentFilterId, type PaymentFilterProviderReference, type PaymentFilterStatus, type PaymentMethod, type PaymentMethodFilter, type PaymentMethodFilterId, type Plan, type PlanFilter, type PlanFilterCreatedAt, type PlanFilterId, type PlanFilterMonthlyCredits, type PlanFilterMonthlyPrice, type PlanFilterName, type PlanFilterSlug, type PlanFilterStorageDays, type PlanFilterType, type PlanFilterUpdatedAt, type PostAgentsByIdCloneData, type PostAgentsByIdCloneError, type PostAgentsByIdCloneErrors, type PostAgentsByIdCloneResponse, type PostAgentsByIdCloneResponses, type PostAgentsByIdTestData, type PostAgentsByIdTestError, type PostAgentsByIdTestErrors, type PostAgentsByIdTestResponse, type PostAgentsByIdTestResponses, type PostAgentsByIdValidateData, type PostAgentsByIdValidateError, type PostAgentsByIdValidateErrors, type PostAgentsByIdValidateResponse, type PostAgentsByIdValidateResponses, type PostAgentsPredictData, type PostAgentsPredictError, type PostAgentsPredictErrors, type PostAgentsPredictResponse, type PostAgentsPredictResponses, type PostAiChunksSearchData, type PostAiChunksSearchError, type PostAiChunksSearchErrors, type PostAiChunksSearchResponse, type PostAiChunksSearchResponses, type PostAiConversationsData, type PostAiConversationsError, type PostAiConversationsErrors, type PostAiConversationsResponse, type PostAiConversationsResponses, type PostAiEmbedData, type PostAiEmbedError, type PostAiEmbedErrors, type PostAiEmbedResponse, type PostAiEmbedResponses, type PostAiGraphEdgesData, type PostAiGraphEdgesError, type PostAiGraphEdgesErrors, type PostAiGraphEdgesResponse, type PostAiGraphEdgesResponses, type PostAiGraphNodesData, type PostAiGraphNodesError, type PostAiGraphNodesErrors, type PostAiGraphNodesResponse, type PostAiGraphNodesResponses, type PostAiMessagesData, type PostAiMessagesError, type PostAiMessagesErrors, type PostAiMessagesResponse, type PostAiMessagesResponses, type PostAiSearchAdvancedData, type PostAiSearchAdvancedError, type PostAiSearchAdvancedErrors, type PostAiSearchAdvancedResponse, type PostAiSearchAdvancedResponses, type PostAiSearchData, type PostAiSearchError, type PostAiSearchErrors, type PostAiSearchResponse, type PostAiSearchResponses, type PostApiKeysData, type PostApiKeysError, type PostApiKeysErrors, type PostApiKeysResponse, type PostApiKeysResponses, type PostApplicationsData, type PostApplicationsError, type PostApplicationsErrors, type PostApplicationsResponse, type PostApplicationsResponses, type PostBucketsData, type PostBucketsError, type PostBucketsErrors, type PostBucketsResponse, type PostBucketsResponses, type PostConfigsData, type PostConfigsError, type PostConfigsErrors, type PostConfigsResponse, type PostConfigsResponses, type PostDocumentsBulkDeleteData, type PostDocumentsBulkDeleteError, type PostDocumentsBulkDeleteErrors, type PostDocumentsBulkDeleteResponse, type PostDocumentsBulkDeleteResponses, type PostDocumentsPresignedUploadData, type PostDocumentsPresignedUploadError, type PostDocumentsPresignedUploadErrors, type PostDocumentsPresignedUploadResponse, type PostDocumentsPresignedUploadResponses, type PostExtractionBatchesData, type PostExtractionBatchesError, type PostExtractionBatchesErrors, type PostExtractionBatchesResponse, type PostExtractionBatchesResponses, type PostExtractionDocumentsBeginUploadData, type PostExtractionDocumentsBeginUploadError, type PostExtractionDocumentsBeginUploadErrors, type PostExtractionDocumentsBeginUploadResponse, type PostExtractionDocumentsBeginUploadResponses, type PostExtractionDocumentsByIdViewData, type PostExtractionDocumentsByIdViewError, type PostExtractionDocumentsByIdViewErrors, type PostExtractionDocumentsByIdViewResponse, type PostExtractionDocumentsByIdViewResponses, type PostExtractionDocumentsUploadData, type PostExtractionDocumentsUploadError, type PostExtractionDocumentsUploadErrors, type PostExtractionDocumentsUploadResponse, type PostExtractionDocumentsUploadResponses, type PostExtractionResultsData, type PostExtractionResultsError, type PostExtractionResultsErrors, type PostExtractionResultsResponse, type PostExtractionResultsResponses, type PostExtractionSchemaFieldsData, type PostExtractionSchemaFieldsError, type PostExtractionSchemaFieldsErrors, type PostExtractionSchemaFieldsResponse, type PostExtractionSchemaFieldsResponses, type PostExtractionSchemasData, type PostExtractionSchemasError, type PostExtractionSchemasErrors, type PostExtractionSchemasResponse, type PostExtractionSchemasResponses, type PostInvitationsAcceptByTokenData, type PostInvitationsAcceptByTokenError, type PostInvitationsAcceptByTokenErrors, type PostInvitationsAcceptByTokenResponse, type PostInvitationsAcceptByTokenResponses, type PostInvitationsInviteData, type PostInvitationsInviteError, type PostInvitationsInviteErrors, type PostInvitationsInviteResponse, type PostInvitationsInviteResponses, type PostLlmAnalyticsData, type PostLlmAnalyticsError, type PostLlmAnalyticsErrors, type PostLlmAnalyticsResponse, type PostLlmAnalyticsResponses, type PostMessagesData, type PostMessagesError, type PostMessagesErrors, type PostMessagesResponse, type PostMessagesResponses, type PostNotificationPreferencesData, type PostNotificationPreferencesError, type PostNotificationPreferencesErrors, type PostNotificationPreferencesResponse, type PostNotificationPreferencesResponses, type PostObjectsBulkDestroyData, type PostObjectsBulkDestroyError, type PostObjectsBulkDestroyErrors, type PostObjectsBulkDestroyResponse, type PostObjectsBulkDestroyResponses, type PostObjectsRegisterData, type PostObjectsRegisterError, type PostObjectsRegisterErrors, type PostObjectsRegisterResponse, type PostObjectsRegisterResponses, type PostPaymentsData, type PostPaymentsError, type PostPaymentsErrors, type PostPaymentsResponse, type PostPaymentsResponses, type PostSearchReindexData, type PostSearchReindexError, type PostSearchReindexErrors, type PostSearchReindexResponse, type PostSearchReindexResponses, type PostSearchSavedData, type PostSearchSavedError, type PostSearchSavedErrors, type PostSearchSavedResponse, type PostSearchSavedResponses, type PostStorageSignDownloadData, type PostStorageSignDownloadError, type PostStorageSignDownloadErrors, type PostStorageSignDownloadResponse, type PostStorageSignDownloadResponses, type PostStorageSignUploadData, type PostStorageSignUploadError, type PostStorageSignUploadErrors, type PostStorageSignUploadResponse, type PostStorageSignUploadResponses, type PostTenantMembershipsData, type PostTenantMembershipsError, type PostTenantMembershipsErrors, type PostTenantMembershipsResponse, type PostTenantMembershipsResponses, type PostTenantsByIdBuyStorageData, type PostTenantsByIdBuyStorageError, type PostTenantsByIdBuyStorageErrors, type PostTenantsByIdBuyStorageResponse, type PostTenantsByIdBuyStorageResponses, type PostTenantsByIdRemoveStorageData, type PostTenantsByIdRemoveStorageError, type PostTenantsByIdRemoveStorageErrors, type PostTenantsByIdRemoveStorageResponse, type PostTenantsByIdRemoveStorageResponses, type PostTenantsData, type PostTenantsError, type PostTenantsErrors, type PostTenantsResponse, type PostTenantsResponses, type PostThreadsActiveData, type PostThreadsActiveError, type PostThreadsActiveErrors, type PostThreadsActiveResponse, type PostThreadsActiveResponses, type PostThreadsByIdMessagesData, type PostThreadsByIdMessagesError, type PostThreadsByIdMessagesErrors, type PostThreadsByIdMessagesResponse, type PostThreadsByIdMessagesResponses, type PostThreadsByIdSummarizeData, type PostThreadsByIdSummarizeError, type PostThreadsByIdSummarizeErrors, type PostThreadsByIdSummarizeResponse, type PostThreadsByIdSummarizeResponses, type PostThreadsData, type PostThreadsError, type PostThreadsErrors, type PostThreadsResponse, type PostThreadsResponses, type PostTokensData, type PostTokensError, type PostTokensErrors, type PostTokensResponse, type PostTokensResponses, type PostTrainingExamplesBulkData, type PostTrainingExamplesBulkDeleteData, type PostTrainingExamplesBulkDeleteError, type PostTrainingExamplesBulkDeleteErrors, type PostTrainingExamplesBulkDeleteResponse, type PostTrainingExamplesBulkDeleteResponses, type PostTrainingExamplesBulkError, type PostTrainingExamplesBulkErrors, type PostTrainingExamplesBulkResponse, type PostTrainingExamplesBulkResponses, type PostTrainingExamplesData, type PostTrainingExamplesError, type PostTrainingExamplesErrors, type PostTrainingExamplesResponse, type PostTrainingExamplesResponses, type PostUserProfilesData, type PostUserProfilesError, type PostUserProfilesErrors, type PostUserProfilesResponse, type PostUserProfilesResponses, type PostUsersAuthConfirmData, type PostUsersAuthConfirmError, type PostUsersAuthConfirmErrors, type PostUsersAuthConfirmResponse, type PostUsersAuthConfirmResponses, type PostUsersAuthLoginData, type PostUsersAuthLoginError, type PostUsersAuthLoginErrors, type PostUsersAuthLoginResponse, type PostUsersAuthLoginResponses, type PostUsersAuthMagicLinkLoginData, type PostUsersAuthMagicLinkLoginError, type PostUsersAuthMagicLinkLoginErrors, type PostUsersAuthMagicLinkLoginResponse, type PostUsersAuthMagicLinkLoginResponses, type PostUsersAuthMagicLinkRequestData, type PostUsersAuthMagicLinkRequestError, type PostUsersAuthMagicLinkRequestErrors, type PostUsersAuthMagicLinkRequestResponse, type PostUsersAuthMagicLinkRequestResponses, type PostUsersAuthRegisterData, type PostUsersAuthRegisterError, type PostUsersAuthRegisterErrors, type PostUsersAuthRegisterResponse, type PostUsersAuthRegisterResponses, type PostUsersAuthRegisterWithOidcData, type PostUsersAuthRegisterWithOidcError, type PostUsersAuthRegisterWithOidcErrors, type PostUsersAuthRegisterWithOidcResponse, type PostUsersAuthRegisterWithOidcResponses, type PostUsersRegisterIsvData, type PostUsersRegisterIsvError, type PostUsersRegisterIsvErrors, type PostUsersRegisterIsvResponse, type PostUsersRegisterIsvResponses, type PostWebhookConfigsByIdTestData, type PostWebhookConfigsByIdTestError, type PostWebhookConfigsByIdTestErrors, type PostWebhookConfigsByIdTestResponse, type PostWebhookConfigsByIdTestResponses, type PostWebhookConfigsData, type PostWebhookConfigsError, type PostWebhookConfigsErrors, type PostWebhookConfigsResponse, type PostWebhookConfigsResponses, type PostWebhookDeliveriesByIdRetryData, type PostWebhookDeliveriesByIdRetryError, type PostWebhookDeliveriesByIdRetryErrors, type PostWebhookDeliveriesByIdRetryResponse, type PostWebhookDeliveriesByIdRetryResponses, type PostWorkspaceMembershipsData, type PostWorkspaceMembershipsError, type PostWorkspaceMembershipsErrors, type PostWorkspaceMembershipsResponse, type PostWorkspaceMembershipsResponses, type PostWorkspacesData, type PostWorkspacesError, type PostWorkspacesErrors, type PostWorkspacesResponse, type PostWorkspacesResponses, type PresignedDownloadRequest, PresignedDownloadSchema, type PresignedUploadRequest, PresignedUploadSchema, type PresignedUrl, type PresignedUrlFilter, type PresignedUrlFilterExpiresIn, type PresignedUrlFilterHeaders, type PresignedUrlFilterId, type PresignedUrlFilterMethod, type PresignedUrlFilterStoragePath, type PresignedUrlFilterUploadUrl, type PresignedUrlFilterUrl, type PricingRule, type PricingRuleFilter, type PricingRuleFilterId, type PricingStrategy, type PricingStrategyFilter, type PricingStrategyFilterId, RateLimitError, type RegisterRequest, RegisterRequestSchema, type RetryConfig, type SavedSearch, type SavedSearchFilter, type SavedSearchFilterFilters, type SavedSearchFilterId, type SavedSearchFilterIsShared, type SavedSearchFilterName, type SavedSearchFilterQuery, type SavedSearchFilterSearchType, type Search, type SearchFilter, type SearchFilterId, type SearchRequest, SearchRequestSchema, type SemanticCacheEntry, type SemanticCacheEntryFilter, type SemanticCacheEntryFilterId, ServerError, type StorageStats, type StorageStatsFilter, type StorageStatsFilterId, type StorageStatsFilterTotalBuckets, type StorageStatsFilterTotalObjects, type StorageStatsFilterTotalStorageBytes, type StreamMessageChunk, type StreamOptions, type Subscription, type SubscriptionFilter, type SubscriptionFilterId, type Tenant, type TenantFilter, type TenantFilterBadgeUrl, type TenantFilterId, type TenantFilterKind, type TenantFilterLogoUrl, type TenantFilterName, type TenantFilterSlug, type TenantMembership, type TenantMembershipFilter, type TenantMembershipFilterRole, type TenantMembershipFilterTenantId, type TenantMembershipFilterUserId, type Thread, type ThreadCreateRequest, ThreadCreateSchema, type ThreadFilter, type ThreadFilterContextSummary, type ThreadFilterId, type ThreadFilterTitle, TimeoutError, type Token, type TokenFilter, type TokenFilterBrand, type TokenFilterExpMonth, type TokenFilterExpYear, type TokenFilterId, type TokenFilterLast4, type TokenFilterToken, type TrainingExample, type TrainingExampleFilter, type TrainingExampleFilterEmbedding, type TrainingExampleFilterId, type TrainingExampleFilterInputText, type TrainingExampleFilterOutputJson, type Transaction, type TransactionFilter, type TransactionFilterAmount, type TransactionFilterCreatedAt, type TransactionFilterCurrency, type TransactionFilterDescription, type TransactionFilterErrorMessage, type TransactionFilterId, type TransactionFilterProviderReference, type TransactionFilterServiceId, type TransactionFilterStatus, type TransactionFilterType, type TransactionFilterUpdatedAt, type User, type UserFilter, type UserFilterCurrentWorkspaceId, type UserFilterEmail, type UserFilterId, type UserFilterIsAppAdmin, type UserFilterIsPlatformAdmin, type UserProfile, type UserProfileFilter, type UserProfileFilterAvatarUrl, type UserProfileFilterBio, type UserProfileFilterFirstName, type UserProfileFilterId, type UserProfileFilterLastName, type UserProfileFilterPreferences, type UserProfileFilterSocialLinks, type UserProfileFilterUserId, ValidationError, type Wallet, type WalletFilter, type WalletFilterApplicationId, type WalletFilterCredits, type WalletFilterCreditsFree, type WalletFilterCreditsPaid, type WalletFilterCreditsSubscription, type WalletFilterId, type WalletFilterPlan, type WalletFilterStorageBlocksPurchased, type WalletFilterStorageQuotaBytes, type WalletFilterStorageUsedBytes, type WebhookConfig, type WebhookConfigFilter, type WebhookConfigFilterId, type WebhookDelivery, type WebhookDeliveryFilter, type WebhookDeliveryFilterId, type Workspace, type WorkspaceCreateRequest, WorkspaceCreateSchema, type WorkspaceFilter, type WorkspaceFilterApplicationId, type WorkspaceFilterArchivedAt, type WorkspaceFilterCreatedAt, type WorkspaceFilterDescription, type WorkspaceFilterExpiresAt, type WorkspaceFilterId, type WorkspaceFilterIsDefault, type WorkspaceFilterLowBalanceThreshold, type WorkspaceFilterName, type WorkspaceFilterRenewalParams, type WorkspaceFilterSlug, type WorkspaceFilterSpecialtyAgentId, type WorkspaceFilterTenantId, type WorkspaceFilterUpdatedAt, type WorkspaceMembership, type WorkspaceMembershipFilter, type WorkspaceSettingsInputCreateType, type WorkspaceSettingsInputUpdateType, type XApplicationKey, type _Error, type _Object, calculateBackoff, client, collectStreamedMessage, deleteAiConversationsById, deleteAiGraphEdgesById, deleteAiGraphNodesById, deleteApiKeysById, deleteApplicationsById, deleteBucketsById, deleteExtractionDocumentsById, deleteExtractionSchemaFieldsById, deleteMessagesById, deleteNotificationPreferencesById, deleteObjectsById, deleteSearchSavedById, deleteTenantMembershipsByTenantIdByUserId, deleteTenantsById, deleteThreadsById, deleteTrainingExamplesById, deleteUserProfilesById, deleteWebhookConfigsById, deleteWorkspaceMembershipsByWorkspaceIdByUserId, deleteWorkspacesById, getAgents, getAgentsById, getAiChunksDocumentByDocumentId, getAiConversations, getAiConversationsById, getAiGraphEdges, getAiGraphNodes, getAiMessages, getApiKeys, getApiKeysById, getApplications, getApplicationsById, getApplicationsBySlugBySlug, getAuditLogs, getBuckets, getBucketsById, getBucketsByIdObjects, getBucketsByIdStats, getConfigs, getCreditPackages, getCreditPackagesById, getCreditPackagesSlugBySlug, getDocumentsStats, getExtractionBatchesById, getExtractionBatchesWorkspaceByWorkspaceId, getExtractionDocuments, getExtractionDocumentsById, getExtractionDocumentsByIdStatus, getExtractionDocumentsWorkspaceByWorkspaceId, getExtractionResultsById, getExtractionResultsDocumentByDocumentId, getExtractionSchemaFields, getExtractionSchemaFieldsById, getExtractionSchemasById, getExtractionSchemasWorkspaceByWorkspaceId, getInvitations, getInvitationsConsumeByToken, getLlmAnalytics, getLlmAnalyticsById, getLlmAnalyticsCosts, getLlmAnalyticsPlatform, getLlmAnalyticsSummary, getLlmAnalyticsUsage, getLlmAnalyticsWorkspace, getMessages, getMessagesById, getMessagesSearch, getNotificationLogs, getNotificationLogsById, getNotificationPreferences, getNotificationPreferencesById, getObjects, getObjectsById, getPlans, getPlansById, getPlansSlugBySlug, getSearch, getSearchHealth, getSearchIndexes, getSearchSaved, getSearchSemantic, getSearchStats, getSearchStatus, getStorageStats, getTenantMemberships, getTenants, getTenantsById, getThreads, getThreadsById, getThreadsSearch, getTrainingExamples, getTrainingExamplesById, getTransactions, getTransactionsById, getUserProfiles, getUserProfilesById, getUserProfilesMe, getUsers, getUsersById, getUsersMe, getWallet, getWebhookConfigs, getWebhookConfigsById, getWebhookDeliveries, getWebhookDeliveriesById, getWorkspaceMemberships, getWorkspaces, getWorkspacesById, getWorkspacesMine, handleApiError, isRetryableError, paginateAll, paginateToArray, patchApiKeysById, patchApiKeysByIdAllocate, patchApiKeysByIdRevoke, patchApiKeysByIdRotate, patchApplicationsById, patchBucketsById, patchConfigsByKey, patchExtractionDocumentsByIdFinishUpload, patchExtractionDocumentsByIdStatus, patchExtractionResultsByIdCorrections, patchExtractionResultsByIdRegenerate, patchExtractionSchemaFieldsById, patchExtractionSchemasById, patchInvitationsByIdAccept, patchInvitationsByIdResend, patchInvitationsByIdRevoke, patchMessagesById, patchNotificationPreferencesById, patchTenantMembershipsByTenantIdByUserId, patchTenantsById, patchThreadsById, patchTrainingExamplesById, patchUserProfilesById, patchUsersAuthResetPassword, patchUsersById, patchUsersByIdConfirmEmail, patchUsersByIdResetPassword, patchWalletAddons, patchWalletAddonsByAddonSlugCancel, patchWalletPlan, patchWebhookConfigsById, patchWorkspaceMembershipsByWorkspaceIdByUserId, patchWorkspacesById, patchWorkspacesByIdAllocate, postAgentsByIdClone, postAgentsByIdTest, postAgentsByIdValidate, postAgentsPredict, postAiChunksSearch, postAiConversations, postAiEmbed, postAiGraphEdges, postAiGraphNodes, postAiMessages, postAiSearch, postAiSearchAdvanced, postApiKeys, postApplications, postBuckets, postConfigs, postDocumentsBulkDelete, postDocumentsPresignedUpload, postExtractionBatches, postExtractionDocumentsBeginUpload, postExtractionDocumentsByIdView, postExtractionDocumentsUpload, postExtractionResults, postExtractionSchemaFields, postExtractionSchemas, postInvitationsAcceptByToken, postInvitationsInvite, postLlmAnalytics, postMessages, postNotificationPreferences, postObjectsBulkDestroy, postObjectsRegister, postPayments, postSearchReindex, postSearchSaved, postStorageSignDownload, postStorageSignUpload, postTenantMemberships, postTenants, postTenantsByIdBuyStorage, postTenantsByIdRemoveStorage, postThreads, postThreadsActive, postThreadsByIdMessages, postThreadsByIdSummarize, postTokens, postTrainingExamples, postTrainingExamplesBulk, postTrainingExamplesBulkDelete, postUserProfiles, postUsersAuthConfirm, postUsersAuthLogin, postUsersAuthMagicLinkLogin, postUsersAuthMagicLinkRequest, postUsersAuthRegister, postUsersAuthRegisterWithOidc, postUsersRegisterIsv, postWebhookConfigs, postWebhookConfigsByIdTest, postWebhookDeliveriesByIdRetry, postWorkspaceMemberships, postWorkspaces, retryWithBackoff, sleep, streamMessage, streamSSE, withRetry };