@realtimex/sdk 1.5.1 → 1.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,651 @@
1
+ // src/v1/errors.ts
2
+ var DeveloperApiError = class extends Error {
3
+ constructor(status, code, message) {
4
+ super(message);
5
+ this.status = status;
6
+ this.code = code;
7
+ this.name = "DeveloperApiError";
8
+ }
9
+ };
10
+ var AuthenticationError = class extends DeveloperApiError {
11
+ constructor(message = "Invalid or missing API key") {
12
+ super(403, "AUTHENTICATION_ERROR", message);
13
+ this.name = "AuthenticationError";
14
+ }
15
+ };
16
+ var NotFoundError = class extends DeveloperApiError {
17
+ constructor(message = "Resource not found") {
18
+ super(404, "NOT_FOUND", message);
19
+ this.name = "NotFoundError";
20
+ }
21
+ };
22
+ var ValidationError = class extends DeveloperApiError {
23
+ constructor(message) {
24
+ super(400, "VALIDATION_ERROR", message);
25
+ this.name = "ValidationError";
26
+ }
27
+ };
28
+ var ServerError = class extends DeveloperApiError {
29
+ constructor(message = "Internal server error") {
30
+ super(500, "SERVER_ERROR", message);
31
+ this.name = "ServerError";
32
+ }
33
+ };
34
+
35
+ // src/v1/client.ts
36
+ var DeveloperApiClient = class {
37
+ constructor(baseUrl, apiKey, appId) {
38
+ this.baseUrl = baseUrl.replace(/\/$/, "");
39
+ this.apiKey = apiKey;
40
+ this.appId = appId;
41
+ }
42
+ getHeaders(extra) {
43
+ const headers = {
44
+ "Content-Type": "application/json",
45
+ "Authorization": `Bearer ${this.apiKey}`
46
+ };
47
+ if (this.appId) headers["x-app-id"] = this.appId;
48
+ return { ...headers, ...extra };
49
+ }
50
+ async handleResponse(response) {
51
+ let data;
52
+ try {
53
+ data = await response.json();
54
+ } catch {
55
+ data = {};
56
+ }
57
+ if (response.ok) return data;
58
+ const message = data?.message || data?.error || response.statusText || "Request failed";
59
+ switch (response.status) {
60
+ case 400:
61
+ throw new ValidationError(message);
62
+ case 401:
63
+ case 403:
64
+ throw new AuthenticationError(message);
65
+ case 404:
66
+ throw new NotFoundError(message);
67
+ case 500:
68
+ case 502:
69
+ case 503:
70
+ throw new ServerError(message);
71
+ default:
72
+ throw new DeveloperApiError(response.status, "API_ERROR", message);
73
+ }
74
+ }
75
+ /**
76
+ * Make a JSON request to the v1 API.
77
+ */
78
+ async request(method, path, body) {
79
+ const url = `${this.baseUrl}/api${path}`;
80
+ const response = await fetch(url, {
81
+ method,
82
+ headers: this.getHeaders(),
83
+ body: body !== void 0 ? JSON.stringify(body) : void 0
84
+ });
85
+ return this.handleResponse(response);
86
+ }
87
+ /**
88
+ * Make a multipart/form-data request (e.g. file uploads).
89
+ * Do NOT set Content-Type — browser/fetch will set it with the boundary.
90
+ */
91
+ async requestMultipart(method, path, form) {
92
+ const url = `${this.baseUrl}/api${path}`;
93
+ const authHeaders = { "Authorization": `Bearer ${this.apiKey}` };
94
+ if (this.appId) authHeaders["x-app-id"] = this.appId;
95
+ const response = await fetch(url, {
96
+ method,
97
+ headers: authHeaders,
98
+ body: form
99
+ });
100
+ return this.handleResponse(response);
101
+ }
102
+ /**
103
+ * Make a raw request and return the Response object directly.
104
+ * Used for streaming (SSE) endpoints.
105
+ */
106
+ async requestRaw(method, path, body) {
107
+ const url = `${this.baseUrl}/api${path}`;
108
+ return fetch(url, {
109
+ method,
110
+ headers: this.getHeaders(),
111
+ body: body !== void 0 ? JSON.stringify(body) : void 0
112
+ });
113
+ }
114
+ };
115
+
116
+ // src/v1/modules/v1Auth.ts
117
+ var V1AuthModule = class {
118
+ constructor(client) {
119
+ this.client = client;
120
+ }
121
+ /**
122
+ * Verify the attached Authentication header contains a valid API token.
123
+ * @see GET /v1/auth
124
+ */
125
+ async getAuth() {
126
+ return this.client.request("GET", `/v1/auth`);
127
+ }
128
+ };
129
+
130
+ // src/v1/modules/v1Admin.ts
131
+ var V1AdminModule = class {
132
+ constructor(client) {
133
+ this.client = client;
134
+ }
135
+ /**
136
+ * Check to see if the instance is in multi-user-mode first. Methods are disabled until multi user mode is enabled via the UI.
137
+ * @see GET /v1/admin/is-multi-user-mode
138
+ */
139
+ async getIsMultiUserMode() {
140
+ return this.client.request("GET", `/v1/admin/is-multi-user-mode`);
141
+ }
142
+ /**
143
+ * Check to see if the instance is in multi-user-mode first. Methods are disabled until multi user mode is enabled via the UI.
144
+ * @see GET /v1/admin/users
145
+ */
146
+ async listUsers() {
147
+ return this.client.request("GET", `/v1/admin/users`);
148
+ }
149
+ /**
150
+ * Create a new user with username and password. Methods are disabled until multi user mode is enabled via the UI.
151
+ * @see POST /v1/admin/users/new
152
+ */
153
+ async createUser(body) {
154
+ return this.client.request("POST", `/v1/admin/users/new`, body);
155
+ }
156
+ /**
157
+ * Update existing user settings. Methods are disabled until multi user mode is enabled via the UI.
158
+ * @see POST /v1/admin/users/{id}
159
+ */
160
+ async updateUser(id, body) {
161
+ return this.client.request("POST", `/v1/admin/users/${id}`, body);
162
+ }
163
+ /**
164
+ * Delete existing user by id. Methods are disabled until multi user mode is enabled via the UI.
165
+ * @see DELETE /v1/admin/users/{id}
166
+ */
167
+ async deleteUser(id) {
168
+ return this.client.request("DELETE", `/v1/admin/users/${id}`);
169
+ }
170
+ /**
171
+ * List all existing invitations to instance regardless of status. Methods are disabled until multi user mode is enabled via the UI.
172
+ * @see GET /v1/admin/invites
173
+ */
174
+ async listInvites() {
175
+ return this.client.request("GET", `/v1/admin/invites`);
176
+ }
177
+ /**
178
+ * Create a new invite code for someone to use to register with instance. Methods are disabled until multi user mode is enabled via the UI.
179
+ * @see POST /v1/admin/invite/new
180
+ */
181
+ async createInvite(body) {
182
+ return this.client.request("POST", `/v1/admin/invite/new`, body);
183
+ }
184
+ /**
185
+ * Deactivates (soft-delete) invite by id. Methods are disabled until multi user mode is enabled via the UI.
186
+ * @see DELETE /v1/admin/invite/{id}
187
+ */
188
+ async deleteInvite(id) {
189
+ return this.client.request("DELETE", `/v1/admin/invite/${id}`);
190
+ }
191
+ /**
192
+ * Retrieve a list of users with permissions to access the specified workspace.
193
+ * @see GET /v1/admin/workspaces/{workspaceId}/users
194
+ */
195
+ async listWorkspaceUsers(workspaceId) {
196
+ return this.client.request("GET", `/v1/admin/workspaces/${workspaceId}/users`);
197
+ }
198
+ /**
199
+ * Overwrite workspace permissions to only be accessible by the given user ids and admins. Methods are disabled until multi user mode is enabled via the UI.
200
+ * @see POST /v1/admin/workspaces/{workspaceId}/update-users
201
+ */
202
+ async updateUsers(workspaceId, body) {
203
+ return this.client.request("POST", `/v1/admin/workspaces/${workspaceId}/update-users`, body);
204
+ }
205
+ /**
206
+ * Set workspace permissions to be accessible by the given user ids and admins. Methods are disabled until multi user mode is enabled via the UI.
207
+ * @see POST /v1/admin/workspaces/{workspaceSlug}/manage-users
208
+ */
209
+ async workspacesManageUsers(workspaceSlug, body) {
210
+ return this.client.request("POST", `/v1/admin/workspaces/${workspaceSlug}/manage-users`, body);
211
+ }
212
+ /**
213
+ * All chats in the system ordered by most recent. Methods are disabled until multi user mode is enabled via the UI.
214
+ * @see POST /v1/admin/workspace-chats
215
+ */
216
+ async workspaceChats(body) {
217
+ return this.client.request("POST", `/v1/admin/workspace-chats`, body);
218
+ }
219
+ /**
220
+ * Update multi-user preferences for instance. Methods are disabled until multi user mode is enabled via the UI.
221
+ * @see POST /v1/admin/preferences
222
+ */
223
+ async createPreference(body) {
224
+ return this.client.request("POST", `/v1/admin/preferences`, body);
225
+ }
226
+ };
227
+
228
+ // src/v1/modules/v1Document.ts
229
+ var V1DocumentModule = class {
230
+ constructor(client) {
231
+ this.client = client;
232
+ }
233
+ /**
234
+ * Upload a new file to RealTimeX to be parsed and prepared for embedding.
235
+ * @see POST /v1/document/upload
236
+ */
237
+ // @upload-stub — multipart upload; wire form manually or use helper
238
+ async upload(form) {
239
+ return this.client.requestMultipart("POST", `/v1/document/upload`, form);
240
+ }
241
+ /**
242
+ * Upload a new file to a specific folder in RealTimeX to be parsed and prepared for embedding. If the folder does not exist, it will be created.
243
+ * @see POST /v1/document/upload/{folderName}
244
+ */
245
+ // @upload-stub — multipart upload; wire form manually or use helper
246
+ async uploadFolder(folderName, form) {
247
+ return this.client.requestMultipart("POST", `/v1/document/upload/${folderName}`, form);
248
+ }
249
+ /**
250
+ * Upload a valid URL for RealTimeX to scrape and prepare for embedding. Optionally, specify a comma-separated list of workspace slugs to embed the document into post-upload.
251
+ * @see POST /v1/document/upload-link
252
+ */
253
+ async uploadLink(body) {
254
+ return this.client.request("POST", `/v1/document/upload-link`, body);
255
+ }
256
+ /**
257
+ * Upload a file by specifying its raw text content and metadata values without having to upload a file.
258
+ * @see POST /v1/document/raw-text
259
+ */
260
+ async rawText(body) {
261
+ return this.client.request("POST", `/v1/document/raw-text`, body);
262
+ }
263
+ /**
264
+ * List of all locally-stored documents in instance
265
+ * @see GET /v1/documents
266
+ */
267
+ async listDocuments() {
268
+ return this.client.request("GET", `/v1/documents`);
269
+ }
270
+ /**
271
+ * Get all documents stored in a specific folder.
272
+ * @see GET /v1/documents/folder/{folderName}
273
+ */
274
+ async getFolder(folderName) {
275
+ return this.client.request("GET", `/v1/documents/folder/${folderName}`);
276
+ }
277
+ /**
278
+ * Check available filetypes and MIMEs that can be uploaded.
279
+ * @see GET /v1/document/accepted-file-types
280
+ */
281
+ async listAcceptedFileTypes() {
282
+ return this.client.request("GET", `/v1/document/accepted-file-types`);
283
+ }
284
+ /**
285
+ * Get the known available metadata schema for when doing a raw-text upload and the acceptable type of value for each key.
286
+ * @see GET /v1/document/metadata-schema
287
+ */
288
+ async getMetadataSchema() {
289
+ return this.client.request("GET", `/v1/document/metadata-schema`);
290
+ }
291
+ /**
292
+ * Get a single document by its unique RealTimeX document name
293
+ * @see GET /v1/document/{docName}
294
+ */
295
+ async getDocument(docName) {
296
+ return this.client.request("GET", `/v1/document/${docName}`);
297
+ }
298
+ /**
299
+ * Create a new folder inside the documents storage directory.
300
+ * @see POST /v1/document/create-folder
301
+ */
302
+ async createFolder(body) {
303
+ return this.client.request("POST", `/v1/document/create-folder`, body);
304
+ }
305
+ /**
306
+ * Remove a folder and all its contents from the documents storage directory.
307
+ * @see DELETE /v1/document/remove-folder
308
+ */
309
+ async deleteRemoveFolder() {
310
+ return this.client.request("DELETE", `/v1/document/remove-folder`);
311
+ }
312
+ /**
313
+ * Move files within the documents storage directory.
314
+ * @see POST /v1/document/move-files
315
+ */
316
+ async moveFiles(body) {
317
+ return this.client.request("POST", `/v1/document/move-files`, body);
318
+ }
319
+ };
320
+
321
+ // src/v1/modules/v1Workspace.ts
322
+ var V1WorkspaceModule = class {
323
+ constructor(client) {
324
+ this.client = client;
325
+ }
326
+ /**
327
+ * Create a new workspace
328
+ * @see POST /v1/workspace/new
329
+ */
330
+ async createWorkspace(body) {
331
+ return this.client.request("POST", `/v1/workspace/new`, body);
332
+ }
333
+ /**
334
+ * List all current workspaces
335
+ * @see GET /v1/workspaces
336
+ */
337
+ async listWorkspaces() {
338
+ return this.client.request("GET", `/v1/workspaces`);
339
+ }
340
+ /**
341
+ * Get a workspace by its unique slug.
342
+ * @see GET /v1/workspace/{slug}
343
+ */
344
+ async getWorkspace(slug) {
345
+ return this.client.request("GET", `/v1/workspace/${slug}`);
346
+ }
347
+ /**
348
+ * Deletes a workspace by its slug.
349
+ * @see DELETE /v1/workspace/{slug}
350
+ */
351
+ async deleteWorkspace(slug) {
352
+ return this.client.request("DELETE", `/v1/workspace/${slug}`);
353
+ }
354
+ /**
355
+ * Update workspace settings by its unique slug.
356
+ * @see POST /v1/workspace/{slug}/update
357
+ */
358
+ async updateWorkspace(slug, body) {
359
+ return this.client.request("POST", `/v1/workspace/${slug}/update`, body);
360
+ }
361
+ /**
362
+ * Get a workspaces chats regardless of user by its unique slug.
363
+ * @see GET /v1/workspace/{slug}/chats
364
+ */
365
+ async listChats(slug) {
366
+ return this.client.request("GET", `/v1/workspace/${slug}/chats`);
367
+ }
368
+ /**
369
+ * Add or remove documents from a workspace by its unique slug.
370
+ * @see POST /v1/workspace/{slug}/update-embeddings
371
+ */
372
+ async updateEmbeddings(slug, body) {
373
+ return this.client.request("POST", `/v1/workspace/${slug}/update-embeddings`, body);
374
+ }
375
+ /**
376
+ * Add or remove pin from a document in a workspace by its unique slug.
377
+ * @see POST /v1/workspace/{slug}/update-pin
378
+ */
379
+ async updatePin(slug, body) {
380
+ return this.client.request("POST", `/v1/workspace/${slug}/update-pin`, body);
381
+ }
382
+ /**
383
+ * Execute a chat with a workspace
384
+ * @see POST /v1/workspace/{slug}/chat
385
+ */
386
+ async chat(slug, body) {
387
+ return this.client.request("POST", `/v1/workspace/${slug}/chat`, body);
388
+ }
389
+ /**
390
+ * Execute a streamable chat with a workspace
391
+ * @see POST /v1/workspace/{slug}/stream-chat
392
+ */
393
+ // @streaming-stub — implement SSE parsing in overrides/v1WorkspaceStreaming.ts
394
+ async streamChat(slug, body) {
395
+ return this.client.requestRaw("POST", `/v1/workspace/${slug}/stream-chat`, body);
396
+ }
397
+ /**
398
+ * Perform a vector similarity search in a workspace
399
+ * @see POST /v1/workspace/{slug}/vector-search
400
+ */
401
+ async vectorSearch(slug, body) {
402
+ return this.client.request("POST", `/v1/workspace/${slug}/vector-search`, body);
403
+ }
404
+ };
405
+
406
+ // src/v1/modules/v1System.ts
407
+ var V1SystemModule = class {
408
+ constructor(client) {
409
+ this.client = client;
410
+ }
411
+ /**
412
+ * Dump all settings to file storage
413
+ * @see GET /v1/system/env-dump
414
+ */
415
+ async getEnvDump() {
416
+ return this.client.request("GET", `/v1/system/env-dump`);
417
+ }
418
+ /**
419
+ * Get all current system settings that are defined.
420
+ * @see GET /v1/system
421
+ */
422
+ async getSystem() {
423
+ return this.client.request("GET", `/v1/system`);
424
+ }
425
+ /**
426
+ * Number of all vectors in connected vector database
427
+ * @see GET /v1/system/vector-count
428
+ */
429
+ async getVectorCount() {
430
+ return this.client.request("GET", `/v1/system/vector-count`);
431
+ }
432
+ /**
433
+ * Update a system setting or preference.
434
+ * @see POST /v1/system/update-env
435
+ */
436
+ async updateEnv(body) {
437
+ return this.client.request("POST", `/v1/system/update-env`, body);
438
+ }
439
+ /**
440
+ * Export all of the chats from the system in a known format. Output depends on the type sent. Will be send with the correct header for the output.
441
+ * @see GET /v1/system/export-chats
442
+ */
443
+ async listExportChats() {
444
+ return this.client.request("GET", `/v1/system/export-chats`);
445
+ }
446
+ /**
447
+ * Permanently remove documents from the system.
448
+ * @see DELETE /v1/system/remove-documents
449
+ */
450
+ async deleteRemoveDocument() {
451
+ return this.client.request("DELETE", `/v1/system/remove-documents`);
452
+ }
453
+ /**
454
+ * Returns a health check object with server uptime and version.
455
+ * @see GET /v1/system/health
456
+ */
457
+ async getHealth() {
458
+ return this.client.request("GET", `/v1/system/health`);
459
+ }
460
+ };
461
+
462
+ // src/v1/modules/v1Thread.ts
463
+ var V1ThreadModule = class {
464
+ constructor(client) {
465
+ this.client = client;
466
+ }
467
+ /**
468
+ * Create a new workspace thread
469
+ * @see POST /v1/workspace/{slug}/thread/new
470
+ */
471
+ async createThread(slug, body) {
472
+ return this.client.request("POST", `/v1/workspace/${slug}/thread/new`, body);
473
+ }
474
+ /**
475
+ * Update thread settings by its unique slug.
476
+ * @see POST /v1/workspace/{slug}/thread/{threadSlug}/update
477
+ */
478
+ async updateThread(slug, threadSlug, body) {
479
+ return this.client.request("POST", `/v1/workspace/${slug}/thread/${threadSlug}/update`, body);
480
+ }
481
+ /**
482
+ * Delete a workspace thread
483
+ * @see DELETE /v1/workspace/{slug}/thread/{threadSlug}
484
+ */
485
+ async deleteThread(slug, threadSlug) {
486
+ return this.client.request("DELETE", `/v1/workspace/${slug}/thread/${threadSlug}`);
487
+ }
488
+ /**
489
+ * Get chats for a workspace thread
490
+ * @see GET /v1/workspace/{slug}/thread/{threadSlug}/chats
491
+ */
492
+ async listChats(slug, threadSlug) {
493
+ return this.client.request("GET", `/v1/workspace/${slug}/thread/${threadSlug}/chats`);
494
+ }
495
+ /**
496
+ * Chat with a workspace thread
497
+ * @see POST /v1/workspace/{slug}/thread/{threadSlug}/chat
498
+ */
499
+ async chat(slug, threadSlug, body) {
500
+ return this.client.request("POST", `/v1/workspace/${slug}/thread/${threadSlug}/chat`, body);
501
+ }
502
+ /**
503
+ * Stream chat with a workspace thread
504
+ * @see POST /v1/workspace/{slug}/thread/{threadSlug}/stream-chat
505
+ */
506
+ // @streaming-stub — implement SSE parsing in overrides/v1ThreadStreaming.ts
507
+ async streamChat(slug, threadSlug, body) {
508
+ return this.client.requestRaw("POST", `/v1/workspace/${slug}/thread/${threadSlug}/stream-chat`, body);
509
+ }
510
+ };
511
+
512
+ // src/v1/modules/v1Users.ts
513
+ var V1UsersModule = class {
514
+ constructor(client) {
515
+ this.client = client;
516
+ }
517
+ /**
518
+ * List all users
519
+ * @see GET /v1/users
520
+ */
521
+ async listUsers() {
522
+ return this.client.request("GET", `/v1/users`);
523
+ }
524
+ /**
525
+ * Issue a temporary auth token for a user
526
+ * @see GET /v1/users/{id}/issue-auth-token
527
+ */
528
+ async getIssueAuthToken(id) {
529
+ return this.client.request("GET", `/v1/users/${id}/issue-auth-token`);
530
+ }
531
+ };
532
+
533
+ // src/v1/modules/v1OpenAI.ts
534
+ var V1OpenAIModule = class {
535
+ constructor(client) {
536
+ this.client = client;
537
+ }
538
+ /**
539
+ * Get all available "models" which are workspaces you can use for chatting.
540
+ * @see GET /v1/openai/models
541
+ */
542
+ async listModels() {
543
+ return this.client.request("GET", `/v1/openai/models`);
544
+ }
545
+ /**
546
+ * Execute a chat with a workspace with OpenAI compatibility. Supports streaming as well. Model must be a workspace slug from /models.
547
+ * @see POST /v1/openai/chat/completions
548
+ */
549
+ async chatCompletions(body) {
550
+ return this.client.request("POST", `/v1/openai/chat/completions`, body);
551
+ }
552
+ /**
553
+ * Get the embeddings of any arbitrary text string. This will use the embedder provider set in the system. Please ensure the token length of each string fits within the context of your embedder model.
554
+ * @see POST /v1/openai/embeddings
555
+ */
556
+ async createEmbedding(body) {
557
+ return this.client.request("POST", `/v1/openai/embeddings`, body);
558
+ }
559
+ /**
560
+ * List all the vector database collections connected to RealTimeX. These are essentially workspaces but return their unique vector db identifier - this is the same as the workspace slug.
561
+ * @see GET /v1/openai/vector_stores
562
+ */
563
+ async listVectorStores() {
564
+ return this.client.request("GET", `/v1/openai/vector_stores`);
565
+ }
566
+ };
567
+
568
+ // src/v1/modules/v1Embed.ts
569
+ var V1EmbedModule = class {
570
+ constructor(client) {
571
+ this.client = client;
572
+ }
573
+ /**
574
+ * List all active embeds
575
+ * @see GET /v1/embed
576
+ */
577
+ async getEmbed() {
578
+ return this.client.request("GET", `/v1/embed`);
579
+ }
580
+ /**
581
+ * Get all chats for a specific embed
582
+ * @see GET /v1/embed/{embedUuid}/chats
583
+ */
584
+ async listChats(embedUuid) {
585
+ return this.client.request("GET", `/v1/embed/${embedUuid}/chats`);
586
+ }
587
+ /**
588
+ * Get chats for a specific embed and session
589
+ * @see GET /v1/embed/{embedUuid}/chats/{sessionUuid}
590
+ */
591
+ async getChat(embedUuid, sessionUuid) {
592
+ return this.client.request("GET", `/v1/embed/${embedUuid}/chats/${sessionUuid}`);
593
+ }
594
+ /**
595
+ * Create a new embed configuration
596
+ * @see POST /v1/embed/new
597
+ */
598
+ async createEmbed(body) {
599
+ return this.client.request("POST", `/v1/embed/new`, body);
600
+ }
601
+ /**
602
+ * Update an existing embed configuration
603
+ * @see POST /v1/embed/{embedUuid}
604
+ */
605
+ async updateEmbed(embedUuid, body) {
606
+ return this.client.request("POST", `/v1/embed/${embedUuid}`, body);
607
+ }
608
+ /**
609
+ * Delete an existing embed configuration
610
+ * @see DELETE /v1/embed/{embedUuid}
611
+ */
612
+ async deleteEmbed(embedUuid) {
613
+ return this.client.request("DELETE", `/v1/embed/${embedUuid}`);
614
+ }
615
+ };
616
+
617
+ // src/v1/namespace.ts
618
+ var V1ApiNamespace = class {
619
+ // [GENERATED-PROPS-END]
620
+ constructor(baseUrl, apiKey, appId) {
621
+ this._client = new DeveloperApiClient(baseUrl, apiKey, appId);
622
+ this.auth = new V1AuthModule(this._client);
623
+ this.admin = new V1AdminModule(this._client);
624
+ this.document = new V1DocumentModule(this._client);
625
+ this.workspace = new V1WorkspaceModule(this._client);
626
+ this.system = new V1SystemModule(this._client);
627
+ this.thread = new V1ThreadModule(this._client);
628
+ this.users = new V1UsersModule(this._client);
629
+ this.openai = new V1OpenAIModule(this._client);
630
+ this.embed = new V1EmbedModule(this._client);
631
+ }
632
+ };
633
+
634
+ export {
635
+ DeveloperApiError,
636
+ AuthenticationError,
637
+ NotFoundError,
638
+ ValidationError,
639
+ ServerError,
640
+ DeveloperApiClient,
641
+ V1AuthModule,
642
+ V1AdminModule,
643
+ V1DocumentModule,
644
+ V1WorkspaceModule,
645
+ V1SystemModule,
646
+ V1ThreadModule,
647
+ V1UsersModule,
648
+ V1OpenAIModule,
649
+ V1EmbedModule,
650
+ V1ApiNamespace
651
+ };