librechat-data-provider 0.8.402 → 0.8.403

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.
Files changed (103) hide show
  1. package/dist/types/accessPermissions.d.ts +744 -0
  2. package/dist/types/actions.d.ts +118 -0
  3. package/dist/types/api-endpoints.d.ts +149 -0
  4. package/dist/types/artifacts.d.ts +97 -0
  5. package/dist/types/azure.d.ts +22 -0
  6. package/dist/types/bedrock.d.ts +1220 -0
  7. package/dist/types/config.d.ts +13916 -0
  8. package/dist/types/config.spec.d.ts +1 -0
  9. package/dist/types/createPayload.d.ts +5 -0
  10. package/dist/types/data-service.d.ts +284 -0
  11. package/dist/types/feedback.d.ts +36 -0
  12. package/dist/types/file-config.d.ts +263 -0
  13. package/dist/types/file-config.spec.d.ts +1 -0
  14. package/dist/types/generate.d.ts +597 -0
  15. package/dist/types/headers-helpers.d.ts +2 -0
  16. package/{src/index.ts → dist/types/index.d.ts} +0 -15
  17. package/dist/types/keys.d.ts +92 -0
  18. package/dist/types/mcp.d.ts +2760 -0
  19. package/dist/types/messages.d.ts +10 -0
  20. package/dist/types/models.d.ts +1677 -0
  21. package/dist/types/parameterSettings.d.ts +69 -0
  22. package/dist/types/parsers.d.ts +110 -0
  23. package/dist/types/permissions.d.ts +522 -0
  24. package/dist/types/react-query/react-query-service.d.ts +85 -0
  25. package/dist/types/request.d.ts +25 -0
  26. package/dist/types/roles.d.ts +554 -0
  27. package/dist/types/roles.spec.d.ts +1 -0
  28. package/dist/types/schemas.d.ts +4815 -0
  29. package/dist/types/schemas.spec.d.ts +1 -0
  30. package/dist/types/types/agents.d.ts +433 -0
  31. package/dist/types/types/assistants.d.ts +547 -0
  32. package/dist/types/types/files.d.ts +172 -0
  33. package/dist/types/types/graph.d.ts +135 -0
  34. package/{src/types/mcpServers.ts → dist/types/types/mcpServers.d.ts} +12 -18
  35. package/dist/types/types/mutations.d.ts +209 -0
  36. package/dist/types/types/queries.d.ts +169 -0
  37. package/dist/types/types/runs.d.ts +36 -0
  38. package/dist/types/types/web.d.ts +520 -0
  39. package/dist/types/types.d.ts +503 -0
  40. package/dist/types/utils.d.ts +12 -0
  41. package/package.json +4 -1
  42. package/babel.config.js +0 -4
  43. package/check_updates.sh +0 -52
  44. package/jest.config.js +0 -19
  45. package/react-query/package-lock.json +0 -292
  46. package/react-query/package.json +0 -10
  47. package/rollup.config.js +0 -74
  48. package/server-rollup.config.js +0 -40
  49. package/specs/actions.spec.ts +0 -2533
  50. package/specs/api-endpoints-subdir.spec.ts +0 -140
  51. package/specs/api-endpoints.spec.ts +0 -74
  52. package/specs/azure.spec.ts +0 -844
  53. package/specs/bedrock.spec.ts +0 -862
  54. package/specs/filetypes.spec.ts +0 -175
  55. package/specs/generate.spec.ts +0 -770
  56. package/specs/headers-helpers.spec.ts +0 -24
  57. package/specs/mcp.spec.ts +0 -147
  58. package/specs/openapiSpecs.ts +0 -524
  59. package/specs/parsers.spec.ts +0 -601
  60. package/specs/request-interceptor.spec.ts +0 -304
  61. package/specs/utils.spec.ts +0 -196
  62. package/src/accessPermissions.ts +0 -346
  63. package/src/actions.ts +0 -813
  64. package/src/api-endpoints.ts +0 -440
  65. package/src/artifacts.ts +0 -3104
  66. package/src/azure.ts +0 -328
  67. package/src/bedrock.ts +0 -425
  68. package/src/config.spec.ts +0 -315
  69. package/src/config.ts +0 -2006
  70. package/src/createPayload.ts +0 -46
  71. package/src/data-service.ts +0 -1087
  72. package/src/feedback.ts +0 -141
  73. package/src/file-config.spec.ts +0 -1248
  74. package/src/file-config.ts +0 -764
  75. package/src/generate.ts +0 -634
  76. package/src/headers-helpers.ts +0 -13
  77. package/src/keys.ts +0 -99
  78. package/src/mcp.ts +0 -271
  79. package/src/messages.ts +0 -50
  80. package/src/models.ts +0 -69
  81. package/src/parameterSettings.ts +0 -1111
  82. package/src/parsers.ts +0 -563
  83. package/src/permissions.ts +0 -188
  84. package/src/react-query/react-query-service.ts +0 -566
  85. package/src/request.ts +0 -171
  86. package/src/roles.spec.ts +0 -132
  87. package/src/roles.ts +0 -225
  88. package/src/schemas.spec.ts +0 -355
  89. package/src/schemas.ts +0 -1234
  90. package/src/types/agents.ts +0 -470
  91. package/src/types/assistants.ts +0 -654
  92. package/src/types/files.ts +0 -191
  93. package/src/types/graph.ts +0 -145
  94. package/src/types/mutations.ts +0 -422
  95. package/src/types/queries.ts +0 -208
  96. package/src/types/runs.ts +0 -40
  97. package/src/types/web.ts +0 -588
  98. package/src/types.ts +0 -676
  99. package/src/utils.ts +0 -85
  100. package/tsconfig.json +0 -28
  101. package/tsconfig.spec.json +0 -10
  102. /package/{src/react-query/index.ts → dist/types/react-query/index.d.ts} +0 -0
  103. /package/{src/types/index.ts → dist/types/types/index.d.ts} +0 -0
package/src/types.ts DELETED
@@ -1,676 +0,0 @@
1
- import type { InfiniteData } from '@tanstack/react-query';
2
- import type {
3
- TConversationTag,
4
- EModelEndpoint,
5
- TConversation,
6
- TSharedLink,
7
- TAttachment,
8
- TMessage,
9
- TBanner,
10
- } from './schemas';
11
- import type { SettingDefinition } from './generate';
12
- import type { TMinimalFeedback } from './feedback';
13
- import type { ContentTypes } from './types/runs';
14
- import type { Agent } from './types/assistants';
15
-
16
- export * from './schemas';
17
-
18
- export type TMessages = TMessage[];
19
-
20
- /* TODO: Cleanup EndpointOption types */
21
- export type TEndpointOption = Pick<
22
- TConversation,
23
- // Core conversation fields
24
- | 'endpoint'
25
- | 'endpointType'
26
- | 'model'
27
- | 'modelLabel'
28
- | 'chatGptLabel'
29
- | 'promptPrefix'
30
- | 'temperature'
31
- | 'topP'
32
- | 'topK'
33
- | 'top_p'
34
- | 'frequency_penalty'
35
- | 'presence_penalty'
36
- | 'maxOutputTokens'
37
- | 'maxContextTokens'
38
- | 'max_tokens'
39
- | 'maxTokens'
40
- | 'resendFiles'
41
- | 'imageDetail'
42
- | 'reasoning_effort'
43
- | 'verbosity'
44
- | 'instructions'
45
- | 'additional_instructions'
46
- | 'append_current_datetime'
47
- | 'tools'
48
- | 'stop'
49
- | 'region'
50
- | 'additionalModelRequestFields'
51
- // Anthropic-specific
52
- | 'promptCache'
53
- | 'thinking'
54
- | 'thinkingBudget'
55
- | 'thinkingLevel'
56
- | 'effort'
57
- // Assistant/Agent fields
58
- | 'assistant_id'
59
- | 'agent_id'
60
- // UI/Display fields
61
- | 'iconURL'
62
- | 'greeting'
63
- | 'spec'
64
- // Artifacts
65
- | 'artifacts'
66
- // Files
67
- | 'file_ids'
68
- // System field
69
- | 'system'
70
- // Google examples
71
- | 'examples'
72
- // Context
73
- | 'context'
74
- > & {
75
- // Fields specific to endpoint options that don't exist on TConversation
76
- modelDisplayLabel?: string;
77
- key?: string | null;
78
- /** @deprecated Assistants API */
79
- thread_id?: string;
80
- // Conversation identifiers for multi-response streams
81
- overrideConvoId?: string;
82
- overrideUserMessageId?: string;
83
- // Model parameters (used by different endpoints)
84
- modelOptions?: Record<string, unknown>;
85
- model_parameters?: Record<string, unknown>;
86
- // Configuration data (added by middleware)
87
- modelsConfig?: TModelsConfig;
88
- // File attachments (processed by middleware)
89
- attachments?: TAttachment[];
90
- // Generated prompts
91
- artifactsPrompt?: string;
92
- // Agent-specific fields
93
- agent?: Promise<Agent>;
94
- // Client-specific options
95
- clientOptions?: Record<string, unknown>;
96
- };
97
-
98
- export type TEphemeralAgent = {
99
- mcp?: string[];
100
- web_search?: boolean;
101
- file_search?: boolean;
102
- execute_code?: boolean;
103
- artifacts?: string;
104
- };
105
-
106
- export type TPayload = Partial<TMessage> &
107
- Partial<TEndpointOption> & {
108
- isContinued: boolean;
109
- isRegenerate?: boolean;
110
- conversationId: string | null;
111
- messages?: TMessages;
112
- isTemporary: boolean;
113
- ephemeralAgent?: TEphemeralAgent | null;
114
- editedContent?: TEditedContent | null;
115
- /** Added conversation for multi-convo feature */
116
- addedConvo?: TConversation;
117
- };
118
-
119
- export type TEditedContent =
120
- | {
121
- index: number;
122
- type: ContentTypes.THINK;
123
- [ContentTypes.THINK]: string;
124
- }
125
- | {
126
- index: number;
127
- type: ContentTypes.TEXT;
128
- [ContentTypes.TEXT]: string;
129
- };
130
-
131
- export type TSubmission = {
132
- userMessage: TMessage;
133
- isEdited?: boolean;
134
- isContinued?: boolean;
135
- isTemporary: boolean;
136
- messages: TMessage[];
137
- isRegenerate?: boolean;
138
- initialResponse?: TMessage;
139
- conversation: Partial<TConversation>;
140
- endpointOption: TEndpointOption;
141
- clientTimestamp?: string;
142
- ephemeralAgent?: TEphemeralAgent | null;
143
- editedContent?: TEditedContent | null;
144
- /** Added conversation for multi-convo feature */
145
- addedConvo?: TConversation;
146
- };
147
-
148
- export type EventSubmission = Omit<TSubmission, 'initialResponse'> & { initialResponse: TMessage };
149
-
150
- export type TPluginAction = {
151
- pluginKey: string;
152
- action: 'install' | 'uninstall';
153
- auth?: Partial<Record<string, string>> | null;
154
- isEntityTool?: boolean;
155
- };
156
-
157
- export type GroupedConversations = [key: string, TConversation[]][];
158
-
159
- export type TUpdateUserPlugins = {
160
- isEntityTool?: boolean;
161
- pluginKey: string;
162
- action: string;
163
- auth?: Partial<Record<string, string | null>> | null;
164
- };
165
-
166
- // TODO `label` needs to be changed to the proper `TranslationKeys`
167
- export type TCategory = {
168
- id?: string;
169
- value: string;
170
- label: string;
171
- description?: string;
172
- custom?: boolean;
173
- };
174
-
175
- export type TMarketplaceCategory = TCategory & {
176
- count: number;
177
- };
178
-
179
- export type TError = {
180
- message: string;
181
- code?: number | string;
182
- response?: {
183
- data?: {
184
- message?: string;
185
- };
186
- status?: number;
187
- };
188
- };
189
-
190
- export type TBackupCode = {
191
- codeHash: string;
192
- used: boolean;
193
- usedAt: Date | null;
194
- };
195
-
196
- export type TUser = {
197
- id: string;
198
- username: string;
199
- email: string;
200
- name: string;
201
- avatar: string;
202
- role: string;
203
- provider: string;
204
- plugins?: string[];
205
- twoFactorEnabled?: boolean;
206
- backupCodes?: TBackupCode[];
207
- personalization?: {
208
- memories?: boolean;
209
- };
210
- createdAt: string;
211
- updatedAt: string;
212
- };
213
-
214
- export type TGetConversationsResponse = {
215
- conversations: TConversation[];
216
- pageNumber: string;
217
- pageSize: string | number;
218
- pages: string | number;
219
- };
220
-
221
- export type TUpdateMessageRequest = {
222
- conversationId: string;
223
- messageId: string;
224
- model: string;
225
- text: string;
226
- };
227
-
228
- export type TUpdateMessageContent = {
229
- conversationId: string;
230
- messageId: string;
231
- index: number;
232
- text: string;
233
- };
234
-
235
- export type TUpdateUserKeyRequest = {
236
- name: string;
237
- value: string;
238
- expiresAt: string;
239
- };
240
-
241
- export type TAgentApiKeyCreateRequest = {
242
- name: string;
243
- expiresAt?: string | null;
244
- };
245
-
246
- export type TAgentApiKeyCreateResponse = {
247
- id: string;
248
- name: string;
249
- key: string;
250
- keyPrefix: string;
251
- createdAt: string;
252
- expiresAt?: string;
253
- };
254
-
255
- export type TAgentApiKeyListItem = {
256
- id: string;
257
- name: string;
258
- keyPrefix: string;
259
- lastUsedAt?: string;
260
- expiresAt?: string;
261
- createdAt: string;
262
- };
263
-
264
- export type TAgentApiKeyListResponse = {
265
- keys: TAgentApiKeyListItem[];
266
- };
267
-
268
- export type TUpdateConversationRequest = {
269
- conversationId: string;
270
- title: string;
271
- };
272
-
273
- export type TUpdateConversationResponse = TConversation;
274
-
275
- export type TDeleteConversationRequest = {
276
- conversationId?: string;
277
- thread_id?: string;
278
- endpoint?: string;
279
- source?: string;
280
- };
281
-
282
- export type TDeleteConversationResponse = {
283
- acknowledged: boolean;
284
- deletedCount: number;
285
- messages: {
286
- acknowledged: boolean;
287
- deletedCount: number;
288
- };
289
- };
290
-
291
- export type TArchiveConversationRequest = {
292
- conversationId: string;
293
- isArchived: boolean;
294
- };
295
-
296
- export type TArchiveConversationResponse = TConversation;
297
-
298
- export type TSharedMessagesResponse = Omit<TSharedLink, 'messages'> & {
299
- messages: TMessage[];
300
- };
301
-
302
- export type TCreateShareLinkRequest = Pick<TConversation, 'conversationId'>;
303
-
304
- export type TUpdateShareLinkRequest = Pick<TSharedLink, 'shareId'>;
305
-
306
- export type TSharedLinkResponse = Pick<TSharedLink, 'shareId'> &
307
- Pick<TConversation, 'conversationId'>;
308
-
309
- export type TSharedLinkGetResponse = TSharedLinkResponse & {
310
- success: boolean;
311
- };
312
-
313
- // type for getting conversation tags
314
- export type TConversationTagsResponse = TConversationTag[];
315
- // type for creating conversation tag
316
- export type TConversationTagRequest = Partial<
317
- Omit<TConversationTag, 'createdAt' | 'updatedAt' | 'count' | 'user'>
318
- > & {
319
- conversationId?: string;
320
- addToConversation?: boolean;
321
- };
322
-
323
- export type TConversationTagResponse = TConversationTag;
324
-
325
- export type TTagConversationRequest = {
326
- tags: string[];
327
- tag: string;
328
- };
329
-
330
- export type TTagConversationResponse = string[];
331
-
332
- export type TDuplicateConvoRequest = {
333
- conversationId?: string;
334
- };
335
-
336
- export type TDuplicateConvoResponse = {
337
- conversation: TConversation;
338
- messages: TMessage[];
339
- };
340
-
341
- export type TForkConvoRequest = {
342
- messageId: string;
343
- conversationId: string;
344
- option?: string;
345
- splitAtTarget?: boolean;
346
- latestMessageId?: string;
347
- };
348
-
349
- export type TForkConvoResponse = {
350
- conversation: TConversation;
351
- messages: TMessage[];
352
- };
353
-
354
- export type TSearchResults = {
355
- conversations: TConversation[];
356
- messages: TMessage[];
357
- pageNumber: string;
358
- pageSize: string | number;
359
- pages: string | number;
360
- filter: object;
361
- };
362
-
363
- export type TConfig = {
364
- order: number;
365
- type?: EModelEndpoint;
366
- azure?: boolean;
367
- availableTools?: [];
368
- availableRegions?: string[];
369
- plugins?: Record<string, string>;
370
- name?: string;
371
- iconURL?: string;
372
- version?: string;
373
- modelDisplayLabel?: string;
374
- userProvide?: boolean | null;
375
- userProvideURL?: boolean | null;
376
- disableBuilder?: boolean;
377
- retrievalModels?: string[];
378
- capabilities?: string[];
379
- customParams?: {
380
- defaultParamsEndpoint?: string;
381
- paramDefinitions?: Partial<SettingDefinition>[];
382
- };
383
- };
384
-
385
- export type TEndpointsConfig =
386
- | Record<EModelEndpoint | string, TConfig | null | undefined>
387
- | undefined;
388
-
389
- export type TModelsConfig = Record<string, string[]>;
390
-
391
- export type TUpdateTokenCountResponse = {
392
- count: number;
393
- };
394
-
395
- export type TMessageTreeNode = object;
396
-
397
- export type TSearchMessage = object;
398
-
399
- export type TSearchMessageTreeNode = object;
400
-
401
- export type TRegisterUserResponse = {
402
- message: string;
403
- };
404
-
405
- export type TRegisterUser = {
406
- name: string;
407
- email: string;
408
- username: string;
409
- password: string;
410
- confirm_password?: string;
411
- token?: string;
412
- };
413
-
414
- export type TLoginUser = {
415
- email: string;
416
- password: string;
417
- token?: string;
418
- backupCode?: string;
419
- };
420
-
421
- export type TLoginResponse = {
422
- token?: string;
423
- user?: TUser;
424
- twoFAPending?: boolean;
425
- tempToken?: string;
426
- };
427
-
428
- /** Shared payload for any operation that requires OTP or backup-code verification. */
429
- export type TOTPVerificationPayload = {
430
- token?: string;
431
- backupCode?: string;
432
- };
433
-
434
- export type TEnable2FARequest = TOTPVerificationPayload;
435
-
436
- export type TEnable2FAResponse = {
437
- otpauthUrl: string;
438
- backupCodes: string[];
439
- message?: string;
440
- };
441
-
442
- export type TVerify2FARequest = TOTPVerificationPayload;
443
-
444
- export type TVerify2FAResponse = {
445
- message: string;
446
- };
447
-
448
- /** For verifying 2FA during login with a temporary token. */
449
- export type TVerify2FATempRequest = TOTPVerificationPayload & {
450
- tempToken: string;
451
- };
452
-
453
- export type TVerify2FATempResponse = {
454
- token?: string;
455
- user?: TUser;
456
- message?: string;
457
- };
458
-
459
- export type TDisable2FARequest = TOTPVerificationPayload;
460
-
461
- export type TDisable2FAResponse = {
462
- message: string;
463
- };
464
-
465
- export type TRegenerateBackupCodesRequest = TOTPVerificationPayload;
466
-
467
- export type TRegenerateBackupCodesResponse = {
468
- message?: string;
469
- backupCodes: string[];
470
- backupCodesHash: TBackupCode[];
471
- };
472
-
473
- export type TDeleteUserRequest = TOTPVerificationPayload;
474
-
475
- export type TRequestPasswordReset = {
476
- email: string;
477
- };
478
-
479
- export type TResetPassword = {
480
- userId: string;
481
- token: string;
482
- password: string;
483
- confirm_password?: string;
484
- };
485
-
486
- export type VerifyEmailResponse = { message: string };
487
-
488
- export type TVerifyEmail = {
489
- email: string;
490
- token: string;
491
- };
492
-
493
- export type TResendVerificationEmail = Omit<TVerifyEmail, 'token'>;
494
-
495
- export type TRefreshTokenResponse = {
496
- token: string;
497
- user: TUser;
498
- };
499
-
500
- export type TCheckUserKeyResponse = {
501
- expiresAt: string;
502
- };
503
-
504
- export type TRequestPasswordResetResponse = {
505
- link?: string;
506
- message?: string;
507
- };
508
-
509
- /**
510
- * Represents the response from the import endpoint.
511
- */
512
- export type TImportResponse = {
513
- /**
514
- * The message associated with the response.
515
- */
516
- message: string;
517
- };
518
-
519
- /** Prompts */
520
-
521
- export type TPrompt = {
522
- groupId: string;
523
- author: string;
524
- prompt: string;
525
- type: 'text' | 'chat';
526
- createdAt: string;
527
- updatedAt: string;
528
- _id?: string;
529
- };
530
-
531
- export type TPromptGroup = {
532
- name: string;
533
- numberOfGenerations?: number;
534
- command?: string;
535
- oneliner?: string;
536
- category?: string;
537
- productionId?: string | null;
538
- productionPrompt?: Pick<TPrompt, 'prompt'> | null;
539
- author: string;
540
- authorName: string;
541
- createdAt?: Date;
542
- updatedAt?: Date;
543
- _id?: string;
544
- };
545
-
546
- export type TCreatePrompt = {
547
- prompt: Pick<TPrompt, 'prompt' | 'type'> & { groupId?: string };
548
- group?: { name: string; category?: string; oneliner?: string; command?: string };
549
- };
550
-
551
- export type TCreatePromptRecord = TCreatePrompt & Pick<TPromptGroup, 'author' | 'authorName'>;
552
-
553
- export type TPromptsWithFilterRequest = {
554
- groupId: string;
555
- tags?: string[];
556
- projectId?: string;
557
- version?: number;
558
- };
559
-
560
- export type TPromptGroupsWithFilterRequest = {
561
- category: string;
562
- pageNumber?: string; // Made optional for cursor-based pagination
563
- pageSize?: string | number;
564
- limit?: string | number; // For cursor-based pagination
565
- cursor?: string; // For cursor-based pagination
566
- before?: string | null;
567
- after?: string | null;
568
- order?: 'asc' | 'desc';
569
- name?: string;
570
- author?: string;
571
- };
572
-
573
- export type PromptGroupListResponse = {
574
- promptGroups: TPromptGroup[];
575
- pageNumber: string;
576
- pageSize: string | number;
577
- pages: string | number;
578
- has_more: boolean; // Added for cursor-based pagination
579
- after: string | null; // Added for cursor-based pagination
580
- };
581
-
582
- export type PromptGroupListData = InfiniteData<PromptGroupListResponse>;
583
-
584
- export type TCreatePromptResponse = {
585
- prompt: TPrompt;
586
- group?: TPromptGroup;
587
- };
588
-
589
- export type TUpdatePromptGroupPayload = Partial<TPromptGroup>;
590
-
591
- export type TUpdatePromptGroupVariables = {
592
- id: string;
593
- payload: TUpdatePromptGroupPayload;
594
- };
595
-
596
- export type TUpdatePromptGroupResponse = TPromptGroup;
597
-
598
- export type TDeletePromptResponse = {
599
- prompt: string;
600
- promptGroup?: { message: string; id: string };
601
- };
602
-
603
- export type TDeletePromptVariables = {
604
- _id: string;
605
- groupId: string;
606
- };
607
-
608
- export type TMakePromptProductionResponse = {
609
- message: string;
610
- };
611
-
612
- export type TMakePromptProductionRequest = {
613
- id: string;
614
- groupId: string;
615
- productionPrompt: Pick<TPrompt, 'prompt'>;
616
- };
617
-
618
- export type TUpdatePromptLabelsRequest = {
619
- id: string;
620
- payload: {
621
- labels: string[];
622
- };
623
- };
624
-
625
- export type TUpdatePromptLabelsResponse = {
626
- message: string;
627
- };
628
-
629
- export type TDeletePromptGroupResponse = TUpdatePromptLabelsResponse;
630
-
631
- export type TDeletePromptGroupRequest = {
632
- id: string;
633
- };
634
-
635
- export type TGetCategoriesResponse = TCategory[];
636
-
637
- export type TGetRandomPromptsResponse = {
638
- prompts: TPromptGroup[];
639
- };
640
-
641
- export type TGetRandomPromptsRequest = {
642
- limit: number;
643
- skip: number;
644
- };
645
-
646
- export type TCustomConfigSpeechResponse = { [key: string]: string };
647
-
648
- export type TUserTermsResponse = {
649
- termsAccepted: boolean;
650
- };
651
-
652
- export type TAcceptTermsResponse = {
653
- success: boolean;
654
- };
655
-
656
- export type TBannerResponse = TBanner | null;
657
-
658
- export type TUpdateFeedbackRequest = {
659
- feedback?: TMinimalFeedback;
660
- };
661
-
662
- export type TUpdateFeedbackResponse = {
663
- messageId: string;
664
- conversationId: string;
665
- feedback?: TMinimalFeedback;
666
- };
667
-
668
- export type TBalanceResponse = {
669
- tokenCredits: number;
670
- // Automatic refill settings
671
- autoRefillEnabled: boolean;
672
- refillIntervalValue?: number;
673
- refillIntervalUnit?: 'seconds' | 'minutes' | 'hours' | 'days' | 'weeks' | 'months';
674
- lastRefill?: Date;
675
- refillAmount?: number;
676
- };