@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/chunk-DZUAP6FW.mjs +598 -0
- package/dist/errors-DwEt8WYf.d.mts +399 -0
- package/dist/errors-DwEt8WYf.d.ts +399 -0
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +374 -48
- package/dist/index.mjs +1 -1
- package/dist/v1/index.d.mts +2 -2
- package/dist/v1/index.d.ts +2 -2
- package/dist/v1/index.js +376 -48
- package/dist/v1/index.mjs +3 -1
- package/package.json +1 -1
- package/dist/chunk-ORAAYW4C.mjs +0 -271
- package/dist/errors-C98IGxYU.d.mts +0 -168
- package/dist/errors-C98IGxYU.d.ts +0 -168
|
@@ -0,0 +1,399 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DeveloperApiClient - HTTP client for the RealtimeX v1 Developer API.
|
|
3
|
+
*
|
|
4
|
+
* Supports two authentication modes:
|
|
5
|
+
* - API Key: Authorization: Bearer <apiKey>
|
|
6
|
+
* - App ID: x-app-id header (for LocalApp / SDK agent authentication)
|
|
7
|
+
*
|
|
8
|
+
* When both are provided, x-app-id takes priority on the server side.
|
|
9
|
+
*/
|
|
10
|
+
declare class DeveloperApiClient {
|
|
11
|
+
private readonly baseUrl;
|
|
12
|
+
private readonly apiKey;
|
|
13
|
+
private readonly appId?;
|
|
14
|
+
constructor(baseUrl: string, apiKey: string, appId?: string);
|
|
15
|
+
private getHeaders;
|
|
16
|
+
private handleResponse;
|
|
17
|
+
/**
|
|
18
|
+
* Make a JSON request to the v1 API.
|
|
19
|
+
*/
|
|
20
|
+
request<T = unknown>(method: string, path: string, body?: unknown): Promise<T>;
|
|
21
|
+
/**
|
|
22
|
+
* Make a multipart/form-data request (e.g. file uploads).
|
|
23
|
+
* Do NOT set Content-Type — browser/fetch will set it with the boundary.
|
|
24
|
+
*/
|
|
25
|
+
requestMultipart<T = unknown>(method: string, path: string, form: FormData): Promise<T>;
|
|
26
|
+
/**
|
|
27
|
+
* Make a raw request and return the Response object directly.
|
|
28
|
+
* Used for streaming (SSE) endpoints.
|
|
29
|
+
*/
|
|
30
|
+
requestRaw(method: string, path: string, body?: unknown): Promise<Response>;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
declare class V1ChatModule {
|
|
34
|
+
private readonly client;
|
|
35
|
+
constructor(client: DeveloperApiClient);
|
|
36
|
+
/**
|
|
37
|
+
* Stream a chat response for a workspace default thread.
|
|
38
|
+
* @see POST /v1/workspace/{slug}/stream-chat
|
|
39
|
+
*/
|
|
40
|
+
streamWorkspaceChat(slug: string, body?: Record<string, unknown>): Promise<Response>;
|
|
41
|
+
/**
|
|
42
|
+
* Stream a chat response for a workspace thread.
|
|
43
|
+
* @see POST /v1/workspace/{slug}/thread/{threadSlug}/stream-chat
|
|
44
|
+
*/
|
|
45
|
+
streamThreadChat(slug: string, threadSlug: string, body?: Record<string, unknown>): Promise<Response>;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
declare class V1WorkspaceModule {
|
|
49
|
+
private readonly client;
|
|
50
|
+
constructor(client: DeveloperApiClient);
|
|
51
|
+
/**
|
|
52
|
+
* List workspaces using the app workspace list behavior.
|
|
53
|
+
* @see GET /v1/workspaces
|
|
54
|
+
*/
|
|
55
|
+
listWorkspaces(): Promise<unknown>;
|
|
56
|
+
/**
|
|
57
|
+
* Create a workspace using the app workspace creation behavior.
|
|
58
|
+
* @see POST /v1/workspace/new
|
|
59
|
+
*/
|
|
60
|
+
createWorkspace(body?: Record<string, unknown>): Promise<unknown>;
|
|
61
|
+
/**
|
|
62
|
+
* Search workspaces and threads.
|
|
63
|
+
* @see POST /v1/workspace/search
|
|
64
|
+
*/
|
|
65
|
+
searchWorkspaces(body?: Record<string, unknown>): Promise<unknown>;
|
|
66
|
+
/**
|
|
67
|
+
* Get a workspace by slug.
|
|
68
|
+
* @see GET /v1/workspace/{slug}
|
|
69
|
+
*/
|
|
70
|
+
getWorkspace(slug: string): Promise<unknown>;
|
|
71
|
+
/**
|
|
72
|
+
* Delete a workspace.
|
|
73
|
+
* @see DELETE /v1/workspace/{slug}
|
|
74
|
+
*/
|
|
75
|
+
deleteWorkspace(slug: string): Promise<unknown>;
|
|
76
|
+
/**
|
|
77
|
+
* Get document content for a workspace document.
|
|
78
|
+
* @see GET /v1/workspace/{slug}/document/{docPath}
|
|
79
|
+
*/
|
|
80
|
+
getWorkspaceDocument(slug: string, docPath: string): Promise<unknown>;
|
|
81
|
+
/**
|
|
82
|
+
* Get or create workspace config.
|
|
83
|
+
* @see GET /v1/workspace/{slug}/config
|
|
84
|
+
*/
|
|
85
|
+
getWorkspaceConfig(slug: string): Promise<unknown>;
|
|
86
|
+
/**
|
|
87
|
+
* Update workspace config.
|
|
88
|
+
* @see POST /v1/workspace/{slug}/config
|
|
89
|
+
*/
|
|
90
|
+
updateWorkspaceConfig(slug: string, body?: Record<string, unknown>): Promise<unknown>;
|
|
91
|
+
/**
|
|
92
|
+
* Update workspace settings by slug.
|
|
93
|
+
* @see POST /v1/workspace/{slug}/update
|
|
94
|
+
*/
|
|
95
|
+
updateWorkspace(slug: string, body?: Record<string, unknown>): Promise<unknown>;
|
|
96
|
+
/**
|
|
97
|
+
* Generate a local LLM tuning suggestion.
|
|
98
|
+
* @see POST /v1/workspace/{slug}/local-llm-tuning-suggestion
|
|
99
|
+
*/
|
|
100
|
+
suggestWorkspaceLocalLlmTuning(slug: string, body?: Record<string, unknown>): Promise<unknown>;
|
|
101
|
+
/**
|
|
102
|
+
* Upload a document to workspace documents.
|
|
103
|
+
* @see POST /v1/workspace/{slug}/upload
|
|
104
|
+
*/
|
|
105
|
+
uploadWorkspaceDocument(slug: string, form: FormData): Promise<unknown>;
|
|
106
|
+
/**
|
|
107
|
+
* Upload a link to workspace documents.
|
|
108
|
+
* @see POST /v1/workspace/{slug}/upload-link
|
|
109
|
+
*/
|
|
110
|
+
uploadWorkspaceLink(slug: string, body?: Record<string, unknown>): Promise<unknown>;
|
|
111
|
+
/**
|
|
112
|
+
* Update workspace document embeddings.
|
|
113
|
+
* @see POST /v1/workspace/{slug}/update-embeddings
|
|
114
|
+
*/
|
|
115
|
+
updateWorkspaceEmbeddings(slug: string, body?: Record<string, unknown>): Promise<unknown>;
|
|
116
|
+
/**
|
|
117
|
+
* Reset workspace vector database records.
|
|
118
|
+
* @see DELETE /v1/workspace/{slug}/reset-vector-db
|
|
119
|
+
*/
|
|
120
|
+
resetWorkspaceVectorDb(slug: string): Promise<unknown>;
|
|
121
|
+
/**
|
|
122
|
+
* Get workspace LLM provider metadata.
|
|
123
|
+
* @see GET /v1/workspace/{slug}/llm-provider
|
|
124
|
+
*/
|
|
125
|
+
getWorkspaceLlmProvider(slug: string): Promise<unknown>;
|
|
126
|
+
/**
|
|
127
|
+
* Get workspace vision availability.
|
|
128
|
+
* @see GET /v1/workspace/{slug}/vision-availability
|
|
129
|
+
*/
|
|
130
|
+
getWorkspaceVisionAvailability(slug: string): Promise<unknown>;
|
|
131
|
+
/**
|
|
132
|
+
* Get workspace chats.
|
|
133
|
+
* @see GET /v1/workspace/{slug}/chats
|
|
134
|
+
*/
|
|
135
|
+
getWorkspaceChats(slug: string): Promise<unknown>;
|
|
136
|
+
/**
|
|
137
|
+
* Get workspace terminal session details.
|
|
138
|
+
* @see GET /v1/workspace/{slug}/terminal-session-details
|
|
139
|
+
*/
|
|
140
|
+
getWorkspaceTerminalSessionDetails(slug: string): Promise<unknown>;
|
|
141
|
+
/**
|
|
142
|
+
* Persist terminal UI events.
|
|
143
|
+
* @see POST /v1/workspace/{slug}/terminal-ui-events
|
|
144
|
+
*/
|
|
145
|
+
persistWorkspaceTerminalUiEvents(slug: string, body?: Record<string, unknown>): Promise<unknown>;
|
|
146
|
+
/**
|
|
147
|
+
* Persist a linked terminal message.
|
|
148
|
+
* @see POST /v1/workspace/{slug}/linked-terminal-message
|
|
149
|
+
*/
|
|
150
|
+
createWorkspaceLinkedTerminalMessage(slug: string, body?: Record<string, unknown>): Promise<unknown>;
|
|
151
|
+
/**
|
|
152
|
+
* Delete selected workspace chats.
|
|
153
|
+
* @see DELETE /v1/workspace/{slug}/delete-chats
|
|
154
|
+
*/
|
|
155
|
+
deleteWorkspaceChats(slug: string, body?: Record<string, unknown>): Promise<unknown>;
|
|
156
|
+
/**
|
|
157
|
+
* Delete edited workspace chats from a starting id.
|
|
158
|
+
* @see DELETE /v1/workspace/{slug}/delete-edited-chats
|
|
159
|
+
*/
|
|
160
|
+
deleteEditedWorkspaceChats(slug: string, body?: Record<string, unknown>): Promise<unknown>;
|
|
161
|
+
/**
|
|
162
|
+
* Update a workspace chat response.
|
|
163
|
+
* @see POST /v1/workspace/{slug}/update-chat
|
|
164
|
+
*/
|
|
165
|
+
updateWorkspaceChat(slug: string, body?: Record<string, unknown>): Promise<unknown>;
|
|
166
|
+
/**
|
|
167
|
+
* Update workspace chat feedback.
|
|
168
|
+
* @see POST /v1/workspace/{slug}/chat-feedback/{chatId}
|
|
169
|
+
*/
|
|
170
|
+
updateWorkspaceChatFeedback(slug: string, chatId: string, body?: Record<string, unknown>): Promise<unknown>;
|
|
171
|
+
/**
|
|
172
|
+
* Get suggested messages for a workspace.
|
|
173
|
+
* @see GET /v1/workspace/{slug}/suggested-messages
|
|
174
|
+
*/
|
|
175
|
+
getWorkspaceSuggestedMessages(slug: string): Promise<unknown>;
|
|
176
|
+
/**
|
|
177
|
+
* Save suggested messages for a workspace.
|
|
178
|
+
* @see POST /v1/workspace/{slug}/suggested-messages
|
|
179
|
+
*/
|
|
180
|
+
saveWorkspaceSuggestedMessages(slug: string, body?: Record<string, unknown>): Promise<unknown>;
|
|
181
|
+
/**
|
|
182
|
+
* Update workspace document pin status.
|
|
183
|
+
* @see POST /v1/workspace/{slug}/update-pin
|
|
184
|
+
*/
|
|
185
|
+
updateWorkspaceDocumentPin(slug: string, body?: Record<string, unknown>): Promise<unknown>;
|
|
186
|
+
/**
|
|
187
|
+
* Generate text-to-speech audio for a workspace chat.
|
|
188
|
+
* @see GET /v1/workspace/{slug}/tts/{chatId}
|
|
189
|
+
*/
|
|
190
|
+
getWorkspaceChatTts(slug: string, chatId: string): Promise<unknown>;
|
|
191
|
+
/**
|
|
192
|
+
* Get a workspace profile picture.
|
|
193
|
+
* @see GET /v1/workspace/{slug}/pfp
|
|
194
|
+
*/
|
|
195
|
+
getWorkspaceProfilePicture(slug: string): Promise<unknown>;
|
|
196
|
+
/**
|
|
197
|
+
* Upload a workspace profile picture.
|
|
198
|
+
* @see POST /v1/workspace/{slug}/upload-pfp
|
|
199
|
+
*/
|
|
200
|
+
uploadWorkspaceProfilePicture(slug: string, form: FormData): Promise<unknown>;
|
|
201
|
+
/**
|
|
202
|
+
* Remove a workspace profile picture.
|
|
203
|
+
* @see DELETE /v1/workspace/{slug}/remove-pfp
|
|
204
|
+
*/
|
|
205
|
+
removeWorkspaceProfilePicture(slug: string): Promise<unknown>;
|
|
206
|
+
/**
|
|
207
|
+
* Fork the workspace default thread.
|
|
208
|
+
* @see POST /v1/workspace/{slug}/thread/fork
|
|
209
|
+
*/
|
|
210
|
+
forkThread(slug: string, body?: Record<string, unknown>): Promise<unknown>;
|
|
211
|
+
/**
|
|
212
|
+
* Hide a workspace chat.
|
|
213
|
+
* @see PUT /v1/workspace/workspace-chats/{id}
|
|
214
|
+
*/
|
|
215
|
+
hideWorkspaceChat(id: string): Promise<unknown>;
|
|
216
|
+
/**
|
|
217
|
+
* Upload and embed a document.
|
|
218
|
+
* @see POST /v1/workspace/{slug}/upload-and-embed
|
|
219
|
+
*/
|
|
220
|
+
uploadAndEmbedWorkspaceDocument(slug: string, form: FormData): Promise<unknown>;
|
|
221
|
+
/**
|
|
222
|
+
* Remove and unembed a document.
|
|
223
|
+
* @see DELETE /v1/workspace/{slug}/remove-and-unembed
|
|
224
|
+
*/
|
|
225
|
+
removeAndUnembedWorkspaceDocument(slug: string, body?: Record<string, unknown>): Promise<unknown>;
|
|
226
|
+
/**
|
|
227
|
+
* Get workspace prompt history.
|
|
228
|
+
* @see GET /v1/workspace/{slug}/prompt-history
|
|
229
|
+
*/
|
|
230
|
+
getWorkspacePromptHistory(slug: string): Promise<unknown>;
|
|
231
|
+
/**
|
|
232
|
+
* Clear workspace prompt history.
|
|
233
|
+
* @see DELETE /v1/workspace/{slug}/prompt-history
|
|
234
|
+
*/
|
|
235
|
+
deleteWorkspacePromptHistory(slug: string): Promise<unknown>;
|
|
236
|
+
/**
|
|
237
|
+
* Delete a workspace prompt history entry.
|
|
238
|
+
* @see DELETE /v1/workspace/{slug}/prompt-history/{id}
|
|
239
|
+
*/
|
|
240
|
+
deleteWorkspacePromptHistoryEntry(slug: string, id: string): Promise<unknown>;
|
|
241
|
+
/**
|
|
242
|
+
* Validate search provider configuration.
|
|
243
|
+
* @see POST /v1/workspace/{slug}/search/validate
|
|
244
|
+
*/
|
|
245
|
+
validateWorkspaceSearchProvider(slug: string, body?: Record<string, unknown>): Promise<unknown>;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
declare class V1ThreadModule {
|
|
249
|
+
private readonly client;
|
|
250
|
+
constructor(client: DeveloperApiClient);
|
|
251
|
+
/**
|
|
252
|
+
* Create a workspace thread.
|
|
253
|
+
* @see POST /v1/workspace/{slug}/thread/new
|
|
254
|
+
*/
|
|
255
|
+
createThread(slug: string): Promise<unknown>;
|
|
256
|
+
/**
|
|
257
|
+
* List workspace threads.
|
|
258
|
+
* @see GET /v1/workspace/{slug}/threads
|
|
259
|
+
*/
|
|
260
|
+
listThreads(slug: string): Promise<unknown>;
|
|
261
|
+
/**
|
|
262
|
+
* Open an SSE stream for workspace thread events.
|
|
263
|
+
* @see GET /v1/workspace/{slug}/thread-events
|
|
264
|
+
*/
|
|
265
|
+
openThreadEventsStream(slug: string): Promise<unknown>;
|
|
266
|
+
/**
|
|
267
|
+
* Get a workspace thread.
|
|
268
|
+
* @see GET /v1/workspace/{slug}/thread/{threadSlug}
|
|
269
|
+
*/
|
|
270
|
+
getThread(slug: string, threadSlug: string): Promise<unknown>;
|
|
271
|
+
/**
|
|
272
|
+
* Delete a workspace thread.
|
|
273
|
+
* @see DELETE /v1/workspace/{slug}/thread/{threadSlug}
|
|
274
|
+
*/
|
|
275
|
+
deleteThread(slug: string, threadSlug: string): Promise<unknown>;
|
|
276
|
+
/**
|
|
277
|
+
* Get thread vision availability.
|
|
278
|
+
* @see GET /v1/workspace/{slug}/thread/{threadSlug}/vision-availability
|
|
279
|
+
*/
|
|
280
|
+
getThreadVisionAvailability(slug: string, threadSlug: string): Promise<unknown>;
|
|
281
|
+
/**
|
|
282
|
+
* Promote a thread into a tracked goal.
|
|
283
|
+
* @see POST /v1/workspace/{slug}/thread/{threadSlug}/goal
|
|
284
|
+
*/
|
|
285
|
+
createThreadGoal(slug: string, threadSlug: string, body?: Record<string, unknown>): Promise<unknown>;
|
|
286
|
+
/**
|
|
287
|
+
* Draft a terminal goal for a workspace.
|
|
288
|
+
* @see POST /v1/workspace/{slug}/terminal-goal-draft
|
|
289
|
+
*/
|
|
290
|
+
draftWorkspaceTerminalGoal(slug: string, body?: Record<string, unknown>): Promise<unknown>;
|
|
291
|
+
/**
|
|
292
|
+
* Create a terminal goal for a workspace.
|
|
293
|
+
* @see POST /v1/workspace/{slug}/terminal-goal
|
|
294
|
+
*/
|
|
295
|
+
createWorkspaceTerminalGoal(slug: string, body?: Record<string, unknown>): Promise<unknown>;
|
|
296
|
+
/**
|
|
297
|
+
* Draft a terminal goal for a workspace thread.
|
|
298
|
+
* @see POST /v1/workspace/{slug}/thread/{threadSlug}/terminal-goal-draft
|
|
299
|
+
*/
|
|
300
|
+
draftThreadTerminalGoal(slug: string, threadSlug: string, body?: Record<string, unknown>): Promise<unknown>;
|
|
301
|
+
/**
|
|
302
|
+
* Create a terminal goal for a workspace thread.
|
|
303
|
+
* @see POST /v1/workspace/{slug}/thread/{threadSlug}/terminal-goal
|
|
304
|
+
*/
|
|
305
|
+
createThreadTerminalGoal(slug: string, threadSlug: string, body?: Record<string, unknown>): Promise<unknown>;
|
|
306
|
+
/**
|
|
307
|
+
* Bulk delete workspace threads.
|
|
308
|
+
* @see DELETE /v1/workspace/{slug}/thread-bulk-delete
|
|
309
|
+
*/
|
|
310
|
+
bulkDeleteThreads(slug: string, body?: Record<string, unknown>): Promise<unknown>;
|
|
311
|
+
/**
|
|
312
|
+
* Get workspace thread chats.
|
|
313
|
+
* @see GET /v1/workspace/{slug}/thread/{threadSlug}/chats
|
|
314
|
+
*/
|
|
315
|
+
getThreadChats(slug: string, threadSlug: string): Promise<unknown>;
|
|
316
|
+
/**
|
|
317
|
+
* Get thread terminal session details.
|
|
318
|
+
* @see GET /v1/workspace/{slug}/thread/{threadSlug}/terminal-session-details
|
|
319
|
+
*/
|
|
320
|
+
getThreadTerminalSessionDetails(slug: string, threadSlug: string): Promise<unknown>;
|
|
321
|
+
/**
|
|
322
|
+
* Update a workspace thread.
|
|
323
|
+
* @see POST /v1/workspace/{slug}/thread/{threadSlug}/update
|
|
324
|
+
*/
|
|
325
|
+
updateThread(slug: string, threadSlug: string, body?: Record<string, unknown>): Promise<unknown>;
|
|
326
|
+
/**
|
|
327
|
+
* Delete edited chats from a thread.
|
|
328
|
+
* @see DELETE /v1/workspace/{slug}/thread/{threadSlug}/delete-edited-chats
|
|
329
|
+
*/
|
|
330
|
+
deleteEditedThreadChats(slug: string, threadSlug: string, body?: Record<string, unknown>): Promise<unknown>;
|
|
331
|
+
/**
|
|
332
|
+
* Update a thread chat response.
|
|
333
|
+
* @see POST /v1/workspace/{slug}/thread/{threadSlug}/update-chat
|
|
334
|
+
*/
|
|
335
|
+
updateThreadChat(slug: string, threadSlug: string, body?: Record<string, unknown>): Promise<unknown>;
|
|
336
|
+
/**
|
|
337
|
+
* Persist terminal UI events for a workspace thread.
|
|
338
|
+
* @see POST /v1/workspace/{slug}/thread/{threadSlug}/terminal-ui-events
|
|
339
|
+
*/
|
|
340
|
+
persistThreadTerminalUiEvents(slug: string, threadSlug: string, body?: Record<string, unknown>): Promise<unknown>;
|
|
341
|
+
/**
|
|
342
|
+
* Persist a linked terminal message for a workspace thread.
|
|
343
|
+
* @see POST /v1/workspace/{slug}/thread/{threadSlug}/linked-terminal-message
|
|
344
|
+
*/
|
|
345
|
+
createThreadLinkedTerminalMessage(slug: string, threadSlug: string, body?: Record<string, unknown>): Promise<unknown>;
|
|
346
|
+
/**
|
|
347
|
+
* Coordinate a task into a workspace thread.
|
|
348
|
+
* @see POST /v1/workspace/{slug}/thread/coordinate-task
|
|
349
|
+
*/
|
|
350
|
+
coordinateThreadTask(slug: string, body?: Record<string, unknown>): Promise<unknown>;
|
|
351
|
+
/**
|
|
352
|
+
* Open an SSE stream for external workspace thread chat events.
|
|
353
|
+
* @see GET /v1/workspace/{slug}/thread/{threadSlug}/chat-stream
|
|
354
|
+
*/
|
|
355
|
+
openThreadChatStream(slug: string, threadSlug: string): Promise<unknown>;
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
/**
|
|
359
|
+
* V1ApiNamespace - Container for all RealtimeX Developer API (v1) modules.
|
|
360
|
+
*
|
|
361
|
+
* Usage:
|
|
362
|
+
* const sdk = new RealtimeXSDK({ realtimex: { apiKey: 'sk-...' } });
|
|
363
|
+
* await sdk.v1?.workspace.listWorkspaces();
|
|
364
|
+
* await sdk.v1?.thread.createThread('workspace-slug');
|
|
365
|
+
*
|
|
366
|
+
* Regenerate modules: node scripts/generate-v1-sdk.mjs --force
|
|
367
|
+
*/
|
|
368
|
+
|
|
369
|
+
declare class V1ApiNamespace {
|
|
370
|
+
/** @internal Shared HTTP client used by all v1 modules */
|
|
371
|
+
readonly _client: DeveloperApiClient;
|
|
372
|
+
chat: V1ChatModule;
|
|
373
|
+
workspace: V1WorkspaceModule;
|
|
374
|
+
thread: V1ThreadModule;
|
|
375
|
+
constructor(baseUrl: string, apiKey: string, appId?: string);
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
/**
|
|
379
|
+
* RealtimeX SDK - Developer API (v1) Error Classes
|
|
380
|
+
*/
|
|
381
|
+
declare class DeveloperApiError extends Error {
|
|
382
|
+
readonly status: number;
|
|
383
|
+
readonly code: string;
|
|
384
|
+
constructor(status: number, code: string, message: string);
|
|
385
|
+
}
|
|
386
|
+
declare class AuthenticationError extends DeveloperApiError {
|
|
387
|
+
constructor(message?: string);
|
|
388
|
+
}
|
|
389
|
+
declare class NotFoundError extends DeveloperApiError {
|
|
390
|
+
constructor(message?: string);
|
|
391
|
+
}
|
|
392
|
+
declare class ValidationError extends DeveloperApiError {
|
|
393
|
+
constructor(message: string);
|
|
394
|
+
}
|
|
395
|
+
declare class ServerError extends DeveloperApiError {
|
|
396
|
+
constructor(message?: string);
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
export { AuthenticationError as A, DeveloperApiClient as D, NotFoundError as N, ServerError as S, V1ApiNamespace as V, DeveloperApiError as a, ValidationError as b, V1ChatModule as c, V1WorkspaceModule as d, V1ThreadModule as e };
|