@realtimex/sdk 2.0.1 → 2.0.2

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/v1/index.js CHANGED
@@ -26,6 +26,7 @@ __export(v1_exports, {
26
26
  NotFoundError: () => NotFoundError,
27
27
  ServerError: () => ServerError,
28
28
  V1ApiNamespace: () => V1ApiNamespace,
29
+ V1ChatModule: () => V1ChatModule,
29
30
  V1ThreadModule: () => V1ThreadModule,
30
31
  V1WorkspaceModule: () => V1WorkspaceModule,
31
32
  ValidationError: () => ValidationError,
@@ -149,88 +150,309 @@ var DeveloperApiClient = class {
149
150
  }
150
151
  };
151
152
 
153
+ // src/v1/modules/v1Chat.ts
154
+ var V1ChatModule = class {
155
+ constructor(client) {
156
+ this.client = client;
157
+ }
158
+ /**
159
+ * Stream a chat response for a workspace default thread.
160
+ * @see POST /v1/workspace/{slug}/stream-chat
161
+ */
162
+ // @streaming-stub — implement SSE parsing in overrides/v1ChatStreaming.ts
163
+ async streamWorkspaceChat(slug, body) {
164
+ return this.client.requestRaw("POST", `/v1/workspace/${slug}/stream-chat`, body);
165
+ }
166
+ /**
167
+ * Stream a chat response for a workspace thread.
168
+ * @see POST /v1/workspace/{slug}/thread/{threadSlug}/stream-chat
169
+ */
170
+ // @streaming-stub — implement SSE parsing in overrides/v1ChatStreaming.ts
171
+ async streamThreadChat(slug, threadSlug, body) {
172
+ return this.client.requestRaw("POST", `/v1/workspace/${slug}/thread/${threadSlug}/stream-chat`, body);
173
+ }
174
+ };
175
+
152
176
  // src/v1/modules/v1Workspace.ts
153
177
  var V1WorkspaceModule = class {
154
178
  constructor(client) {
155
179
  this.client = client;
156
180
  }
157
181
  /**
158
- * Create a new workspace
182
+ * List workspaces using the app workspace list behavior.
183
+ * @see GET /v1/workspaces
184
+ */
185
+ async listWorkspaces() {
186
+ return this.client.request("GET", `/v1/workspaces`);
187
+ }
188
+ /**
189
+ * Create a workspace using the app workspace creation behavior.
159
190
  * @see POST /v1/workspace/new
160
191
  */
161
192
  async createWorkspace(body) {
162
193
  return this.client.request("POST", `/v1/workspace/new`, body);
163
194
  }
164
195
  /**
165
- * List all current workspaces
166
- * @see GET /v1/workspaces
196
+ * Search workspaces and threads.
197
+ * @see POST /v1/workspace/search
167
198
  */
168
- async listWorkspaces() {
169
- return this.client.request("GET", `/v1/workspaces`);
199
+ async searchWorkspaces(body) {
200
+ return this.client.request("POST", `/v1/workspace/search`, body);
170
201
  }
171
202
  /**
172
- * Get a workspace by its unique slug.
203
+ * Get a workspace by slug.
173
204
  * @see GET /v1/workspace/{slug}
174
205
  */
175
206
  async getWorkspace(slug) {
176
207
  return this.client.request("GET", `/v1/workspace/${slug}`);
177
208
  }
178
209
  /**
179
- * Deletes a workspace by its slug.
210
+ * Delete a workspace.
180
211
  * @see DELETE /v1/workspace/{slug}
181
212
  */
182
213
  async deleteWorkspace(slug) {
183
214
  return this.client.request("DELETE", `/v1/workspace/${slug}`);
184
215
  }
185
216
  /**
186
- * Update workspace settings by its unique slug.
217
+ * Get document content for a workspace document.
218
+ * @see GET /v1/workspace/{slug}/document/{docPath}
219
+ */
220
+ async getWorkspaceDocument(slug, docPath) {
221
+ return this.client.request("GET", `/v1/workspace/${slug}/document/${docPath}`);
222
+ }
223
+ /**
224
+ * Get or create workspace config.
225
+ * @see GET /v1/workspace/{slug}/config
226
+ */
227
+ async getWorkspaceConfig(slug) {
228
+ return this.client.request("GET", `/v1/workspace/${slug}/config`);
229
+ }
230
+ /**
231
+ * Update workspace config.
232
+ * @see POST /v1/workspace/{slug}/config
233
+ */
234
+ async updateWorkspaceConfig(slug, body) {
235
+ return this.client.request("POST", `/v1/workspace/${slug}/config`, body);
236
+ }
237
+ /**
238
+ * Update workspace settings by slug.
187
239
  * @see POST /v1/workspace/{slug}/update
188
240
  */
189
241
  async updateWorkspace(slug, body) {
190
242
  return this.client.request("POST", `/v1/workspace/${slug}/update`, body);
191
243
  }
192
244
  /**
193
- * Get a workspaces chats regardless of user by its unique slug.
194
- * @see GET /v1/workspace/{slug}/chats
245
+ * Generate a local LLM tuning suggestion.
246
+ * @see POST /v1/workspace/{slug}/local-llm-tuning-suggestion
195
247
  */
196
- async listChats(slug) {
197
- return this.client.request("GET", `/v1/workspace/${slug}/chats`);
248
+ async suggestWorkspaceLocalLlmTuning(slug, body) {
249
+ return this.client.request("POST", `/v1/workspace/${slug}/local-llm-tuning-suggestion`, body);
250
+ }
251
+ /**
252
+ * Upload a document to workspace documents.
253
+ * @see POST /v1/workspace/{slug}/upload
254
+ */
255
+ // @upload-stub — multipart upload; wire form manually or use helper
256
+ async uploadWorkspaceDocument(slug, form) {
257
+ return this.client.requestMultipart("POST", `/v1/workspace/${slug}/upload`, form);
258
+ }
259
+ /**
260
+ * Upload a link to workspace documents.
261
+ * @see POST /v1/workspace/{slug}/upload-link
262
+ */
263
+ async uploadWorkspaceLink(slug, body) {
264
+ return this.client.request("POST", `/v1/workspace/${slug}/upload-link`, body);
198
265
  }
199
266
  /**
200
- * Add or remove documents from a workspace by its unique slug.
267
+ * Update workspace document embeddings.
201
268
  * @see POST /v1/workspace/{slug}/update-embeddings
202
269
  */
203
- async updateEmbeddings(slug, body) {
270
+ async updateWorkspaceEmbeddings(slug, body) {
204
271
  return this.client.request("POST", `/v1/workspace/${slug}/update-embeddings`, body);
205
272
  }
206
273
  /**
207
- * Add or remove pin from a document in a workspace by its unique slug.
274
+ * Reset workspace vector database records.
275
+ * @see DELETE /v1/workspace/{slug}/reset-vector-db
276
+ */
277
+ async resetWorkspaceVectorDb(slug) {
278
+ return this.client.request("DELETE", `/v1/workspace/${slug}/reset-vector-db`);
279
+ }
280
+ /**
281
+ * Get workspace LLM provider metadata.
282
+ * @see GET /v1/workspace/{slug}/llm-provider
283
+ */
284
+ async getWorkspaceLlmProvider(slug) {
285
+ return this.client.request("GET", `/v1/workspace/${slug}/llm-provider`);
286
+ }
287
+ /**
288
+ * Get workspace vision availability.
289
+ * @see GET /v1/workspace/{slug}/vision-availability
290
+ */
291
+ async getWorkspaceVisionAvailability(slug) {
292
+ return this.client.request("GET", `/v1/workspace/${slug}/vision-availability`);
293
+ }
294
+ /**
295
+ * Get workspace chats.
296
+ * @see GET /v1/workspace/{slug}/chats
297
+ */
298
+ async getWorkspaceChats(slug) {
299
+ return this.client.request("GET", `/v1/workspace/${slug}/chats`);
300
+ }
301
+ /**
302
+ * Get workspace terminal session details.
303
+ * @see GET /v1/workspace/{slug}/terminal-session-details
304
+ */
305
+ async getWorkspaceTerminalSessionDetails(slug) {
306
+ return this.client.request("GET", `/v1/workspace/${slug}/terminal-session-details`);
307
+ }
308
+ /**
309
+ * Persist terminal UI events.
310
+ * @see POST /v1/workspace/{slug}/terminal-ui-events
311
+ */
312
+ async persistWorkspaceTerminalUiEvents(slug, body) {
313
+ return this.client.request("POST", `/v1/workspace/${slug}/terminal-ui-events`, body);
314
+ }
315
+ /**
316
+ * Persist a linked terminal message.
317
+ * @see POST /v1/workspace/{slug}/linked-terminal-message
318
+ */
319
+ async createWorkspaceLinkedTerminalMessage(slug, body) {
320
+ return this.client.request("POST", `/v1/workspace/${slug}/linked-terminal-message`, body);
321
+ }
322
+ /**
323
+ * Delete selected workspace chats.
324
+ * @see DELETE /v1/workspace/{slug}/delete-chats
325
+ */
326
+ async deleteWorkspaceChats(slug, body) {
327
+ return this.client.request("DELETE", `/v1/workspace/${slug}/delete-chats`, body);
328
+ }
329
+ /**
330
+ * Delete edited workspace chats from a starting id.
331
+ * @see DELETE /v1/workspace/{slug}/delete-edited-chats
332
+ */
333
+ async deleteEditedWorkspaceChats(slug, body) {
334
+ return this.client.request("DELETE", `/v1/workspace/${slug}/delete-edited-chats`, body);
335
+ }
336
+ /**
337
+ * Update a workspace chat response.
338
+ * @see POST /v1/workspace/{slug}/update-chat
339
+ */
340
+ async updateWorkspaceChat(slug, body) {
341
+ return this.client.request("POST", `/v1/workspace/${slug}/update-chat`, body);
342
+ }
343
+ /**
344
+ * Update workspace chat feedback.
345
+ * @see POST /v1/workspace/{slug}/chat-feedback/{chatId}
346
+ */
347
+ async updateWorkspaceChatFeedback(slug, chatId, body) {
348
+ return this.client.request("POST", `/v1/workspace/${slug}/chat-feedback/${chatId}`, body);
349
+ }
350
+ /**
351
+ * Get suggested messages for a workspace.
352
+ * @see GET /v1/workspace/{slug}/suggested-messages
353
+ */
354
+ async getWorkspaceSuggestedMessages(slug) {
355
+ return this.client.request("GET", `/v1/workspace/${slug}/suggested-messages`);
356
+ }
357
+ /**
358
+ * Save suggested messages for a workspace.
359
+ * @see POST /v1/workspace/{slug}/suggested-messages
360
+ */
361
+ async saveWorkspaceSuggestedMessages(slug, body) {
362
+ return this.client.request("POST", `/v1/workspace/${slug}/suggested-messages`, body);
363
+ }
364
+ /**
365
+ * Update workspace document pin status.
208
366
  * @see POST /v1/workspace/{slug}/update-pin
209
367
  */
210
- async updatePin(slug, body) {
368
+ async updateWorkspaceDocumentPin(slug, body) {
211
369
  return this.client.request("POST", `/v1/workspace/${slug}/update-pin`, body);
212
370
  }
213
371
  /**
214
- * Execute a chat with a workspace
215
- * @see POST /v1/workspace/{slug}/chat
372
+ * Generate text-to-speech audio for a workspace chat.
373
+ * @see GET /v1/workspace/{slug}/tts/{chatId}
216
374
  */
217
- async chat(slug, body) {
218
- return this.client.request("POST", `/v1/workspace/${slug}/chat`, body);
375
+ async getWorkspaceChatTts(slug, chatId) {
376
+ return this.client.request("GET", `/v1/workspace/${slug}/tts/${chatId}`);
219
377
  }
220
378
  /**
221
- * Execute a streamable chat with a workspace
222
- * @see POST /v1/workspace/{slug}/stream-chat
379
+ * Get a workspace profile picture.
380
+ * @see GET /v1/workspace/{slug}/pfp
223
381
  */
224
- // @streaming-stub — implement SSE parsing in overrides/v1WorkspaceStreaming.ts
225
- async streamChat(slug, body) {
226
- return this.client.requestRaw("POST", `/v1/workspace/${slug}/stream-chat`, body);
382
+ async getWorkspaceProfilePicture(slug) {
383
+ return this.client.request("GET", `/v1/workspace/${slug}/pfp`);
384
+ }
385
+ /**
386
+ * Upload a workspace profile picture.
387
+ * @see POST /v1/workspace/{slug}/upload-pfp
388
+ */
389
+ // @upload-stub — multipart upload; wire form manually or use helper
390
+ async uploadWorkspaceProfilePicture(slug, form) {
391
+ return this.client.requestMultipart("POST", `/v1/workspace/${slug}/upload-pfp`, form);
392
+ }
393
+ /**
394
+ * Remove a workspace profile picture.
395
+ * @see DELETE /v1/workspace/{slug}/remove-pfp
396
+ */
397
+ async removeWorkspaceProfilePicture(slug) {
398
+ return this.client.request("DELETE", `/v1/workspace/${slug}/remove-pfp`);
399
+ }
400
+ /**
401
+ * Fork the workspace default thread.
402
+ * @see POST /v1/workspace/{slug}/thread/fork
403
+ */
404
+ async forkThread(slug, body) {
405
+ return this.client.request("POST", `/v1/workspace/${slug}/thread/fork`, body);
227
406
  }
228
407
  /**
229
- * Perform a vector similarity search in a workspace
230
- * @see POST /v1/workspace/{slug}/vector-search
408
+ * Hide a workspace chat.
409
+ * @see PUT /v1/workspace/workspace-chats/{id}
231
410
  */
232
- async vectorSearch(slug, body) {
233
- return this.client.request("POST", `/v1/workspace/${slug}/vector-search`, body);
411
+ async hideWorkspaceChat(id) {
412
+ return this.client.request("PUT", `/v1/workspace/workspace-chats/${id}`);
413
+ }
414
+ /**
415
+ * Upload and embed a document.
416
+ * @see POST /v1/workspace/{slug}/upload-and-embed
417
+ */
418
+ // @upload-stub — multipart upload; wire form manually or use helper
419
+ async uploadAndEmbedWorkspaceDocument(slug, form) {
420
+ return this.client.requestMultipart("POST", `/v1/workspace/${slug}/upload-and-embed`, form);
421
+ }
422
+ /**
423
+ * Remove and unembed a document.
424
+ * @see DELETE /v1/workspace/{slug}/remove-and-unembed
425
+ */
426
+ async removeAndUnembedWorkspaceDocument(slug, body) {
427
+ return this.client.request("DELETE", `/v1/workspace/${slug}/remove-and-unembed`, body);
428
+ }
429
+ /**
430
+ * Get workspace prompt history.
431
+ * @see GET /v1/workspace/{slug}/prompt-history
432
+ */
433
+ async getWorkspacePromptHistory(slug) {
434
+ return this.client.request("GET", `/v1/workspace/${slug}/prompt-history`);
435
+ }
436
+ /**
437
+ * Clear workspace prompt history.
438
+ * @see DELETE /v1/workspace/{slug}/prompt-history
439
+ */
440
+ async deleteWorkspacePromptHistory(slug) {
441
+ return this.client.request("DELETE", `/v1/workspace/${slug}/prompt-history`);
442
+ }
443
+ /**
444
+ * Delete a workspace prompt history entry.
445
+ * @see DELETE /v1/workspace/{slug}/prompt-history/{id}
446
+ */
447
+ async deleteWorkspacePromptHistoryEntry(slug, id) {
448
+ return this.client.request("DELETE", `/v1/workspace/${slug}/prompt-history/${id}`);
449
+ }
450
+ /**
451
+ * Validate search provider configuration.
452
+ * @see POST /v1/workspace/{slug}/search/validate
453
+ */
454
+ async validateWorkspaceSearchProvider(slug, body) {
455
+ return this.client.request("POST", `/v1/workspace/${slug}/search/validate`, body);
234
456
  }
235
457
  };
236
458
 
@@ -240,47 +462,151 @@ var V1ThreadModule = class {
240
462
  this.client = client;
241
463
  }
242
464
  /**
243
- * Create a new workspace thread
465
+ * Create a workspace thread.
244
466
  * @see POST /v1/workspace/{slug}/thread/new
245
467
  */
246
- async createThread(slug, body) {
247
- return this.client.request("POST", `/v1/workspace/${slug}/thread/new`, body);
468
+ async createThread(slug) {
469
+ return this.client.request("POST", `/v1/workspace/${slug}/thread/new`);
248
470
  }
249
471
  /**
250
- * Update thread settings by its unique slug.
251
- * @see POST /v1/workspace/{slug}/thread/{threadSlug}/update
472
+ * List workspace threads.
473
+ * @see GET /v1/workspace/{slug}/threads
252
474
  */
253
- async updateThread(slug, threadSlug, body) {
254
- return this.client.request("POST", `/v1/workspace/${slug}/thread/${threadSlug}/update`, body);
475
+ async listThreads(slug) {
476
+ return this.client.request("GET", `/v1/workspace/${slug}/threads`);
477
+ }
478
+ /**
479
+ * Open an SSE stream for workspace thread events.
480
+ * @see GET /v1/workspace/{slug}/thread-events
481
+ */
482
+ async openThreadEventsStream(slug) {
483
+ return this.client.request("GET", `/v1/workspace/${slug}/thread-events`);
484
+ }
485
+ /**
486
+ * Get a workspace thread.
487
+ * @see GET /v1/workspace/{slug}/thread/{threadSlug}
488
+ */
489
+ async getThread(slug, threadSlug) {
490
+ return this.client.request("GET", `/v1/workspace/${slug}/thread/${threadSlug}`);
255
491
  }
256
492
  /**
257
- * Delete a workspace thread
493
+ * Delete a workspace thread.
258
494
  * @see DELETE /v1/workspace/{slug}/thread/{threadSlug}
259
495
  */
260
496
  async deleteThread(slug, threadSlug) {
261
497
  return this.client.request("DELETE", `/v1/workspace/${slug}/thread/${threadSlug}`);
262
498
  }
263
499
  /**
264
- * Get chats for a workspace thread
500
+ * Get thread vision availability.
501
+ * @see GET /v1/workspace/{slug}/thread/{threadSlug}/vision-availability
502
+ */
503
+ async getThreadVisionAvailability(slug, threadSlug) {
504
+ return this.client.request("GET", `/v1/workspace/${slug}/thread/${threadSlug}/vision-availability`);
505
+ }
506
+ /**
507
+ * Promote a thread into a tracked goal.
508
+ * @see POST /v1/workspace/{slug}/thread/{threadSlug}/goal
509
+ */
510
+ async createThreadGoal(slug, threadSlug, body) {
511
+ return this.client.request("POST", `/v1/workspace/${slug}/thread/${threadSlug}/goal`, body);
512
+ }
513
+ /**
514
+ * Draft a terminal goal for a workspace.
515
+ * @see POST /v1/workspace/{slug}/terminal-goal-draft
516
+ */
517
+ async draftWorkspaceTerminalGoal(slug, body) {
518
+ return this.client.request("POST", `/v1/workspace/${slug}/terminal-goal-draft`, body);
519
+ }
520
+ /**
521
+ * Create a terminal goal for a workspace.
522
+ * @see POST /v1/workspace/{slug}/terminal-goal
523
+ */
524
+ async createWorkspaceTerminalGoal(slug, body) {
525
+ return this.client.request("POST", `/v1/workspace/${slug}/terminal-goal`, body);
526
+ }
527
+ /**
528
+ * Draft a terminal goal for a workspace thread.
529
+ * @see POST /v1/workspace/{slug}/thread/{threadSlug}/terminal-goal-draft
530
+ */
531
+ async draftThreadTerminalGoal(slug, threadSlug, body) {
532
+ return this.client.request("POST", `/v1/workspace/${slug}/thread/${threadSlug}/terminal-goal-draft`, body);
533
+ }
534
+ /**
535
+ * Create a terminal goal for a workspace thread.
536
+ * @see POST /v1/workspace/{slug}/thread/{threadSlug}/terminal-goal
537
+ */
538
+ async createThreadTerminalGoal(slug, threadSlug, body) {
539
+ return this.client.request("POST", `/v1/workspace/${slug}/thread/${threadSlug}/terminal-goal`, body);
540
+ }
541
+ /**
542
+ * Bulk delete workspace threads.
543
+ * @see DELETE /v1/workspace/{slug}/thread-bulk-delete
544
+ */
545
+ async bulkDeleteThreads(slug, body) {
546
+ return this.client.request("DELETE", `/v1/workspace/${slug}/thread-bulk-delete`, body);
547
+ }
548
+ /**
549
+ * Get workspace thread chats.
265
550
  * @see GET /v1/workspace/{slug}/thread/{threadSlug}/chats
266
551
  */
267
- async listChats(slug, threadSlug) {
552
+ async getThreadChats(slug, threadSlug) {
268
553
  return this.client.request("GET", `/v1/workspace/${slug}/thread/${threadSlug}/chats`);
269
554
  }
270
555
  /**
271
- * Chat with a workspace thread
272
- * @see POST /v1/workspace/{slug}/thread/{threadSlug}/chat
556
+ * Get thread terminal session details.
557
+ * @see GET /v1/workspace/{slug}/thread/{threadSlug}/terminal-session-details
273
558
  */
274
- async chat(slug, threadSlug, body) {
275
- return this.client.request("POST", `/v1/workspace/${slug}/thread/${threadSlug}/chat`, body);
559
+ async getThreadTerminalSessionDetails(slug, threadSlug) {
560
+ return this.client.request("GET", `/v1/workspace/${slug}/thread/${threadSlug}/terminal-session-details`);
276
561
  }
277
562
  /**
278
- * Stream chat with a workspace thread
279
- * @see POST /v1/workspace/{slug}/thread/{threadSlug}/stream-chat
563
+ * Update a workspace thread.
564
+ * @see POST /v1/workspace/{slug}/thread/{threadSlug}/update
280
565
  */
281
- // @streaming-stub implement SSE parsing in overrides/v1ThreadStreaming.ts
282
- async streamChat(slug, threadSlug, body) {
283
- return this.client.requestRaw("POST", `/v1/workspace/${slug}/thread/${threadSlug}/stream-chat`, body);
566
+ async updateThread(slug, threadSlug, body) {
567
+ return this.client.request("POST", `/v1/workspace/${slug}/thread/${threadSlug}/update`, body);
568
+ }
569
+ /**
570
+ * Delete edited chats from a thread.
571
+ * @see DELETE /v1/workspace/{slug}/thread/{threadSlug}/delete-edited-chats
572
+ */
573
+ async deleteEditedThreadChats(slug, threadSlug, body) {
574
+ return this.client.request("DELETE", `/v1/workspace/${slug}/thread/${threadSlug}/delete-edited-chats`, body);
575
+ }
576
+ /**
577
+ * Update a thread chat response.
578
+ * @see POST /v1/workspace/{slug}/thread/{threadSlug}/update-chat
579
+ */
580
+ async updateThreadChat(slug, threadSlug, body) {
581
+ return this.client.request("POST", `/v1/workspace/${slug}/thread/${threadSlug}/update-chat`, body);
582
+ }
583
+ /**
584
+ * Persist terminal UI events for a workspace thread.
585
+ * @see POST /v1/workspace/{slug}/thread/{threadSlug}/terminal-ui-events
586
+ */
587
+ async persistThreadTerminalUiEvents(slug, threadSlug, body) {
588
+ return this.client.request("POST", `/v1/workspace/${slug}/thread/${threadSlug}/terminal-ui-events`, body);
589
+ }
590
+ /**
591
+ * Persist a linked terminal message for a workspace thread.
592
+ * @see POST /v1/workspace/{slug}/thread/{threadSlug}/linked-terminal-message
593
+ */
594
+ async createThreadLinkedTerminalMessage(slug, threadSlug, body) {
595
+ return this.client.request("POST", `/v1/workspace/${slug}/thread/${threadSlug}/linked-terminal-message`, body);
596
+ }
597
+ /**
598
+ * Coordinate a task into a workspace thread.
599
+ * @see POST /v1/workspace/{slug}/thread/coordinate-task
600
+ */
601
+ async coordinateThreadTask(slug, body) {
602
+ return this.client.request("POST", `/v1/workspace/${slug}/thread/coordinate-task`, body);
603
+ }
604
+ /**
605
+ * Open an SSE stream for external workspace thread chat events.
606
+ * @see GET /v1/workspace/{slug}/thread/{threadSlug}/chat-stream
607
+ */
608
+ async openThreadChatStream(slug, threadSlug) {
609
+ return this.client.request("GET", `/v1/workspace/${slug}/thread/${threadSlug}/chat-stream`);
284
610
  }
285
611
  };
286
612
 
@@ -289,6 +615,7 @@ var V1ApiNamespace = class {
289
615
  // [GENERATED-PROPS-END]
290
616
  constructor(baseUrl, apiKey, appId) {
291
617
  this._client = new DeveloperApiClient(baseUrl, apiKey, appId);
618
+ this.chat = new V1ChatModule(this._client);
292
619
  this.workspace = new V1WorkspaceModule(this._client);
293
620
  this.thread = new V1ThreadModule(this._client);
294
621
  }
@@ -397,6 +724,7 @@ async function* streamThreadChat(client, slug, threadSlug, body) {
397
724
  NotFoundError,
398
725
  ServerError,
399
726
  V1ApiNamespace,
727
+ V1ChatModule,
400
728
  V1ThreadModule,
401
729
  V1WorkspaceModule,
402
730
  ValidationError,
package/dist/v1/index.mjs CHANGED
@@ -5,10 +5,11 @@ import {
5
5
  NotFoundError,
6
6
  ServerError,
7
7
  V1ApiNamespace,
8
+ V1ChatModule,
8
9
  V1ThreadModule,
9
10
  V1WorkspaceModule,
10
11
  ValidationError
11
- } from "../chunk-ORAAYW4C.mjs";
12
+ } from "../chunk-DZUAP6FW.mjs";
12
13
 
13
14
  // src/v1/overrides/v1WorkspaceStreaming.ts
14
15
  async function* streamWorkspaceChat(client, slug, body) {
@@ -112,6 +113,7 @@ export {
112
113
  NotFoundError,
113
114
  ServerError,
114
115
  V1ApiNamespace,
116
+ V1ChatModule,
115
117
  V1ThreadModule,
116
118
  V1WorkspaceModule,
117
119
  ValidationError,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@realtimex/sdk",
3
- "version": "2.0.1",
3
+ "version": "2.0.2",
4
4
  "description": "SDK for building Local Apps that integrate with RealtimeX",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",