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
@@ -0,0 +1,85 @@
1
+ import type { UseQueryOptions, UseMutationResult, QueryObserverResult } from '@tanstack/react-query';
2
+ import { MCPServerConnectionStatusResponse } from '../types/queries';
3
+ import * as m from '../types/mutations';
4
+ import * as q from '../types/queries';
5
+ import * as s from '../schemas';
6
+ import * as t from '../types';
7
+ import * as permissions from '../accessPermissions';
8
+ import { ResourceType } from '../accessPermissions';
9
+ export { hasPermissions } from '../accessPermissions';
10
+ export declare const useGetSharedMessages: (shareId: string, config?: UseQueryOptions<t.TSharedMessagesResponse>) => QueryObserverResult<t.TSharedMessagesResponse>;
11
+ export declare const useGetSharedLinkQuery: (conversationId: string, config?: UseQueryOptions<t.TSharedLinkGetResponse>) => QueryObserverResult<t.TSharedLinkGetResponse>;
12
+ export declare const useGetConversationByIdQuery: (id: string, config?: UseQueryOptions<s.TConversation>) => QueryObserverResult<s.TConversation>;
13
+ export declare const useGetConversationByIdMutation: (id: string) => UseMutationResult<s.TConversation>;
14
+ export declare const useUpdateMessageMutation: (id: string) => UseMutationResult<unknown, unknown, t.TUpdateMessageRequest, unknown>;
15
+ export declare const useUpdateMessageContentMutation: (conversationId: string) => UseMutationResult<unknown, unknown, t.TUpdateMessageContent, unknown>;
16
+ export declare const useUpdateUserKeysMutation: () => UseMutationResult<t.TUser, unknown, t.TUpdateUserKeyRequest, unknown>;
17
+ export declare const useClearConversationsMutation: () => UseMutationResult<unknown>;
18
+ export declare const useRevokeUserKeyMutation: (name: string) => UseMutationResult<unknown>;
19
+ export declare const useRevokeAllUserKeysMutation: () => UseMutationResult<unknown>;
20
+ export declare const useGetModelsQuery: (config?: UseQueryOptions<t.TModelsConfig>) => QueryObserverResult<t.TModelsConfig>;
21
+ export declare const useCreatePresetMutation: () => UseMutationResult<s.TPreset, unknown, s.TPreset, unknown>;
22
+ export declare const useDeletePresetMutation: () => UseMutationResult<m.PresetDeleteResponse, unknown, s.TPreset | undefined, unknown>;
23
+ export declare const useUpdateTokenCountMutation: () => UseMutationResult<t.TUpdateTokenCountResponse, unknown, {
24
+ text: string;
25
+ }, unknown>;
26
+ export declare const useRegisterUserMutation: (options?: m.RegistrationOptions) => UseMutationResult<t.TError, unknown, t.TRegisterUser, unknown>;
27
+ export declare const useUserKeyQuery: (name: string, config?: UseQueryOptions<t.TCheckUserKeyResponse>) => QueryObserverResult<t.TCheckUserKeyResponse>;
28
+ export declare const useRequestPasswordResetMutation: () => UseMutationResult<t.TRequestPasswordResetResponse, unknown, t.TRequestPasswordReset, unknown>;
29
+ export declare const useResetPasswordMutation: () => UseMutationResult<unknown, unknown, t.TResetPassword, unknown>;
30
+ export declare const useAvailablePluginsQuery: <TData = {
31
+ name: string;
32
+ pluginKey: string;
33
+ description?: string | undefined;
34
+ icon?: string | undefined;
35
+ authConfig?: {
36
+ description: string;
37
+ authField: string;
38
+ label: string;
39
+ optional?: boolean | undefined;
40
+ }[] | undefined;
41
+ authenticated?: boolean | undefined;
42
+ chatMenu?: boolean | undefined;
43
+ isButton?: boolean | undefined;
44
+ toolkit?: boolean | undefined;
45
+ }[]>(config?: UseQueryOptions<{
46
+ name: string;
47
+ pluginKey: string;
48
+ description?: string | undefined;
49
+ icon?: string | undefined;
50
+ authConfig?: {
51
+ description: string;
52
+ authField: string;
53
+ label: string;
54
+ optional?: boolean | undefined;
55
+ }[] | undefined;
56
+ authenticated?: boolean | undefined;
57
+ chatMenu?: boolean | undefined;
58
+ isButton?: boolean | undefined;
59
+ toolkit?: boolean | undefined;
60
+ }[], unknown, TData, import("@tanstack/react-query").QueryKey> | undefined) => QueryObserverResult<TData>;
61
+ export declare const useUpdateUserPluginsMutation: (_options?: m.UpdatePluginAuthOptions) => UseMutationResult<t.TUser, unknown, t.TUpdateUserPlugins, unknown>;
62
+ export declare const useReinitializeMCPServerMutation: () => UseMutationResult<{
63
+ success: boolean;
64
+ message: string;
65
+ serverName: string;
66
+ oauthRequired?: boolean;
67
+ oauthUrl?: string;
68
+ }, unknown, string, unknown>;
69
+ export declare const useCancelMCPOAuthMutation: () => UseMutationResult<m.CancelMCPOAuthResponse, unknown, string, unknown>;
70
+ export declare const useGetCustomConfigSpeechQuery: (config?: UseQueryOptions<t.TCustomConfigSpeechResponse>) => QueryObserverResult<t.TCustomConfigSpeechResponse>;
71
+ export declare const useUpdateFeedbackMutation: (conversationId: string, messageId: string) => UseMutationResult<t.TUpdateFeedbackResponse, Error, t.TUpdateFeedbackRequest>;
72
+ export declare const useSearchPrincipalsQuery: (params: q.PrincipalSearchParams, config?: UseQueryOptions<q.PrincipalSearchResponse>) => QueryObserverResult<q.PrincipalSearchResponse>;
73
+ export declare const useGetAccessRolesQuery: (resourceType: ResourceType, config?: UseQueryOptions<q.AccessRolesResponse>) => QueryObserverResult<q.AccessRolesResponse>;
74
+ export declare const useGetResourcePermissionsQuery: (resourceType: ResourceType, resourceId: string, config?: UseQueryOptions<permissions.TGetResourcePermissionsResponse>) => QueryObserverResult<permissions.TGetResourcePermissionsResponse>;
75
+ export declare const useUpdateResourcePermissionsMutation: () => UseMutationResult<permissions.TUpdateResourcePermissionsResponse, Error, {
76
+ resourceType: ResourceType;
77
+ resourceId: string;
78
+ data: permissions.TUpdateResourcePermissionsRequest;
79
+ }>;
80
+ export declare const useGetEffectivePermissionsQuery: (resourceType: ResourceType, resourceId: string, config?: UseQueryOptions<permissions.TEffectivePermissionsResponse>) => QueryObserverResult<permissions.TEffectivePermissionsResponse>;
81
+ export declare const useGetAllEffectivePermissionsQuery: (resourceType: ResourceType, config?: UseQueryOptions<permissions.TAllEffectivePermissionsResponse>) => QueryObserverResult<permissions.TAllEffectivePermissionsResponse>;
82
+ export declare const useMCPServerConnectionStatusQuery: (serverName: string, config?: UseQueryOptions<MCPServerConnectionStatusResponse>) => QueryObserverResult<MCPServerConnectionStatusResponse>;
83
+ export declare const useGetAgentApiKeysQuery: (config?: UseQueryOptions<t.TAgentApiKeyListResponse>) => QueryObserverResult<t.TAgentApiKeyListResponse>;
84
+ export declare const useCreateAgentApiKeyMutation: () => UseMutationResult<t.TAgentApiKeyCreateResponse, unknown, t.TAgentApiKeyCreateRequest>;
85
+ export declare const useDeleteAgentApiKeyMutation: () => UseMutationResult<void, unknown, string>;
@@ -0,0 +1,25 @@
1
+ import { AxiosRequestConfig } from 'axios';
2
+ import type * as t from './types';
3
+ declare function _get<T>(url: string, options?: AxiosRequestConfig): Promise<T>;
4
+ declare function _getResponse<T>(url: string, options?: AxiosRequestConfig): Promise<T>;
5
+ declare function _post(url: string, data?: any): Promise<any>;
6
+ declare function _postMultiPart(url: string, formData: FormData, options?: AxiosRequestConfig): Promise<any>;
7
+ declare function _postTTS(url: string, formData: FormData, options?: AxiosRequestConfig): Promise<any>;
8
+ declare function _put(url: string, data?: any): Promise<any>;
9
+ declare function _delete<T>(url: string): Promise<T>;
10
+ declare function _deleteWithOptions<T>(url: string, options?: AxiosRequestConfig): Promise<T>;
11
+ declare function _patch(url: string, data?: any): Promise<any>;
12
+ declare const _default: {
13
+ get: typeof _get;
14
+ getResponse: typeof _getResponse;
15
+ post: typeof _post;
16
+ postMultiPart: typeof _postMultiPart;
17
+ postTTS: typeof _postTTS;
18
+ put: typeof _put;
19
+ delete: typeof _delete;
20
+ deleteWithOptions: typeof _deleteWithOptions;
21
+ patch: typeof _patch;
22
+ refreshToken: (retry?: boolean | undefined) => Promise<t.TRefreshTokenResponse | undefined>;
23
+ dispatchTokenUpdatedEvent: (token: string) => void;
24
+ };
25
+ export default _default;
@@ -0,0 +1,554 @@
1
+ import { z } from 'zod';
2
+ /**
3
+ * Enum for System Defined Roles
4
+ */
5
+ export declare enum SystemRoles {
6
+ /**
7
+ * The Admin role
8
+ */
9
+ ADMIN = "ADMIN",
10
+ /**
11
+ * The default user role
12
+ */
13
+ USER = "USER"
14
+ }
15
+ export declare const roleSchema: z.ZodObject<{
16
+ name: z.ZodString;
17
+ permissions: z.ZodObject<{
18
+ PROMPTS: z.ZodObject<{
19
+ USE: z.ZodDefault<z.ZodBoolean>;
20
+ CREATE: z.ZodDefault<z.ZodBoolean>;
21
+ SHARE: z.ZodDefault<z.ZodBoolean>;
22
+ SHARE_PUBLIC: z.ZodDefault<z.ZodBoolean>;
23
+ }, "strip", z.ZodTypeAny, {
24
+ USE: boolean;
25
+ CREATE: boolean;
26
+ SHARE: boolean;
27
+ SHARE_PUBLIC: boolean;
28
+ }, {
29
+ USE?: boolean | undefined;
30
+ CREATE?: boolean | undefined;
31
+ SHARE?: boolean | undefined;
32
+ SHARE_PUBLIC?: boolean | undefined;
33
+ }>;
34
+ BOOKMARKS: z.ZodObject<{
35
+ USE: z.ZodDefault<z.ZodBoolean>;
36
+ }, "strip", z.ZodTypeAny, {
37
+ USE: boolean;
38
+ }, {
39
+ USE?: boolean | undefined;
40
+ }>;
41
+ MEMORIES: z.ZodObject<{
42
+ USE: z.ZodDefault<z.ZodBoolean>;
43
+ CREATE: z.ZodDefault<z.ZodBoolean>;
44
+ UPDATE: z.ZodDefault<z.ZodBoolean>;
45
+ READ: z.ZodDefault<z.ZodBoolean>;
46
+ OPT_OUT: z.ZodDefault<z.ZodBoolean>;
47
+ }, "strip", z.ZodTypeAny, {
48
+ USE: boolean;
49
+ CREATE: boolean;
50
+ UPDATE: boolean;
51
+ READ: boolean;
52
+ OPT_OUT: boolean;
53
+ }, {
54
+ USE?: boolean | undefined;
55
+ CREATE?: boolean | undefined;
56
+ UPDATE?: boolean | undefined;
57
+ READ?: boolean | undefined;
58
+ OPT_OUT?: boolean | undefined;
59
+ }>;
60
+ AGENTS: z.ZodObject<{
61
+ USE: z.ZodDefault<z.ZodBoolean>;
62
+ CREATE: z.ZodDefault<z.ZodBoolean>;
63
+ SHARE: z.ZodDefault<z.ZodBoolean>;
64
+ SHARE_PUBLIC: z.ZodDefault<z.ZodBoolean>;
65
+ }, "strip", z.ZodTypeAny, {
66
+ USE: boolean;
67
+ CREATE: boolean;
68
+ SHARE: boolean;
69
+ SHARE_PUBLIC: boolean;
70
+ }, {
71
+ USE?: boolean | undefined;
72
+ CREATE?: boolean | undefined;
73
+ SHARE?: boolean | undefined;
74
+ SHARE_PUBLIC?: boolean | undefined;
75
+ }>;
76
+ MULTI_CONVO: z.ZodObject<{
77
+ USE: z.ZodDefault<z.ZodBoolean>;
78
+ }, "strip", z.ZodTypeAny, {
79
+ USE: boolean;
80
+ }, {
81
+ USE?: boolean | undefined;
82
+ }>;
83
+ TEMPORARY_CHAT: z.ZodObject<{
84
+ USE: z.ZodDefault<z.ZodBoolean>;
85
+ }, "strip", z.ZodTypeAny, {
86
+ USE: boolean;
87
+ }, {
88
+ USE?: boolean | undefined;
89
+ }>;
90
+ RUN_CODE: z.ZodObject<{
91
+ USE: z.ZodDefault<z.ZodBoolean>;
92
+ }, "strip", z.ZodTypeAny, {
93
+ USE: boolean;
94
+ }, {
95
+ USE?: boolean | undefined;
96
+ }>;
97
+ WEB_SEARCH: z.ZodObject<{
98
+ USE: z.ZodDefault<z.ZodBoolean>;
99
+ }, "strip", z.ZodTypeAny, {
100
+ USE: boolean;
101
+ }, {
102
+ USE?: boolean | undefined;
103
+ }>;
104
+ PEOPLE_PICKER: z.ZodObject<{
105
+ VIEW_USERS: z.ZodDefault<z.ZodBoolean>;
106
+ VIEW_GROUPS: z.ZodDefault<z.ZodBoolean>;
107
+ VIEW_ROLES: z.ZodDefault<z.ZodBoolean>;
108
+ }, "strip", z.ZodTypeAny, {
109
+ VIEW_USERS: boolean;
110
+ VIEW_GROUPS: boolean;
111
+ VIEW_ROLES: boolean;
112
+ }, {
113
+ VIEW_USERS?: boolean | undefined;
114
+ VIEW_GROUPS?: boolean | undefined;
115
+ VIEW_ROLES?: boolean | undefined;
116
+ }>;
117
+ MARKETPLACE: z.ZodObject<{
118
+ USE: z.ZodDefault<z.ZodBoolean>;
119
+ }, "strip", z.ZodTypeAny, {
120
+ USE: boolean;
121
+ }, {
122
+ USE?: boolean | undefined;
123
+ }>;
124
+ FILE_SEARCH: z.ZodObject<{
125
+ USE: z.ZodDefault<z.ZodBoolean>;
126
+ }, "strip", z.ZodTypeAny, {
127
+ USE: boolean;
128
+ }, {
129
+ USE?: boolean | undefined;
130
+ }>;
131
+ FILE_CITATIONS: z.ZodObject<{
132
+ USE: z.ZodDefault<z.ZodBoolean>;
133
+ }, "strip", z.ZodTypeAny, {
134
+ USE: boolean;
135
+ }, {
136
+ USE?: boolean | undefined;
137
+ }>;
138
+ MCP_SERVERS: z.ZodObject<{
139
+ USE: z.ZodDefault<z.ZodBoolean>;
140
+ CREATE: z.ZodDefault<z.ZodBoolean>;
141
+ SHARE: z.ZodDefault<z.ZodBoolean>;
142
+ SHARE_PUBLIC: z.ZodDefault<z.ZodBoolean>;
143
+ }, "strip", z.ZodTypeAny, {
144
+ USE: boolean;
145
+ CREATE: boolean;
146
+ SHARE: boolean;
147
+ SHARE_PUBLIC: boolean;
148
+ }, {
149
+ USE?: boolean | undefined;
150
+ CREATE?: boolean | undefined;
151
+ SHARE?: boolean | undefined;
152
+ SHARE_PUBLIC?: boolean | undefined;
153
+ }>;
154
+ REMOTE_AGENTS: z.ZodObject<{
155
+ USE: z.ZodDefault<z.ZodBoolean>;
156
+ CREATE: z.ZodDefault<z.ZodBoolean>;
157
+ SHARE: z.ZodDefault<z.ZodBoolean>;
158
+ SHARE_PUBLIC: z.ZodDefault<z.ZodBoolean>;
159
+ }, "strip", z.ZodTypeAny, {
160
+ USE: boolean;
161
+ CREATE: boolean;
162
+ SHARE: boolean;
163
+ SHARE_PUBLIC: boolean;
164
+ }, {
165
+ USE?: boolean | undefined;
166
+ CREATE?: boolean | undefined;
167
+ SHARE?: boolean | undefined;
168
+ SHARE_PUBLIC?: boolean | undefined;
169
+ }>;
170
+ }, "strip", z.ZodTypeAny, {
171
+ PROMPTS: {
172
+ USE: boolean;
173
+ CREATE: boolean;
174
+ SHARE: boolean;
175
+ SHARE_PUBLIC: boolean;
176
+ };
177
+ BOOKMARKS: {
178
+ USE: boolean;
179
+ };
180
+ AGENTS: {
181
+ USE: boolean;
182
+ CREATE: boolean;
183
+ SHARE: boolean;
184
+ SHARE_PUBLIC: boolean;
185
+ };
186
+ MEMORIES: {
187
+ USE: boolean;
188
+ CREATE: boolean;
189
+ UPDATE: boolean;
190
+ READ: boolean;
191
+ OPT_OUT: boolean;
192
+ };
193
+ MULTI_CONVO: {
194
+ USE: boolean;
195
+ };
196
+ TEMPORARY_CHAT: {
197
+ USE: boolean;
198
+ };
199
+ RUN_CODE: {
200
+ USE: boolean;
201
+ };
202
+ WEB_SEARCH: {
203
+ USE: boolean;
204
+ };
205
+ PEOPLE_PICKER: {
206
+ VIEW_USERS: boolean;
207
+ VIEW_GROUPS: boolean;
208
+ VIEW_ROLES: boolean;
209
+ };
210
+ MARKETPLACE: {
211
+ USE: boolean;
212
+ };
213
+ FILE_SEARCH: {
214
+ USE: boolean;
215
+ };
216
+ FILE_CITATIONS: {
217
+ USE: boolean;
218
+ };
219
+ MCP_SERVERS: {
220
+ USE: boolean;
221
+ CREATE: boolean;
222
+ SHARE: boolean;
223
+ SHARE_PUBLIC: boolean;
224
+ };
225
+ REMOTE_AGENTS: {
226
+ USE: boolean;
227
+ CREATE: boolean;
228
+ SHARE: boolean;
229
+ SHARE_PUBLIC: boolean;
230
+ };
231
+ }, {
232
+ PROMPTS: {
233
+ USE?: boolean | undefined;
234
+ CREATE?: boolean | undefined;
235
+ SHARE?: boolean | undefined;
236
+ SHARE_PUBLIC?: boolean | undefined;
237
+ };
238
+ BOOKMARKS: {
239
+ USE?: boolean | undefined;
240
+ };
241
+ AGENTS: {
242
+ USE?: boolean | undefined;
243
+ CREATE?: boolean | undefined;
244
+ SHARE?: boolean | undefined;
245
+ SHARE_PUBLIC?: boolean | undefined;
246
+ };
247
+ MEMORIES: {
248
+ USE?: boolean | undefined;
249
+ CREATE?: boolean | undefined;
250
+ UPDATE?: boolean | undefined;
251
+ READ?: boolean | undefined;
252
+ OPT_OUT?: boolean | undefined;
253
+ };
254
+ MULTI_CONVO: {
255
+ USE?: boolean | undefined;
256
+ };
257
+ TEMPORARY_CHAT: {
258
+ USE?: boolean | undefined;
259
+ };
260
+ RUN_CODE: {
261
+ USE?: boolean | undefined;
262
+ };
263
+ WEB_SEARCH: {
264
+ USE?: boolean | undefined;
265
+ };
266
+ PEOPLE_PICKER: {
267
+ VIEW_USERS?: boolean | undefined;
268
+ VIEW_GROUPS?: boolean | undefined;
269
+ VIEW_ROLES?: boolean | undefined;
270
+ };
271
+ MARKETPLACE: {
272
+ USE?: boolean | undefined;
273
+ };
274
+ FILE_SEARCH: {
275
+ USE?: boolean | undefined;
276
+ };
277
+ FILE_CITATIONS: {
278
+ USE?: boolean | undefined;
279
+ };
280
+ MCP_SERVERS: {
281
+ USE?: boolean | undefined;
282
+ CREATE?: boolean | undefined;
283
+ SHARE?: boolean | undefined;
284
+ SHARE_PUBLIC?: boolean | undefined;
285
+ };
286
+ REMOTE_AGENTS: {
287
+ USE?: boolean | undefined;
288
+ CREATE?: boolean | undefined;
289
+ SHARE?: boolean | undefined;
290
+ SHARE_PUBLIC?: boolean | undefined;
291
+ };
292
+ }>;
293
+ }, "strip", z.ZodTypeAny, {
294
+ name: string;
295
+ permissions: {
296
+ PROMPTS: {
297
+ USE: boolean;
298
+ CREATE: boolean;
299
+ SHARE: boolean;
300
+ SHARE_PUBLIC: boolean;
301
+ };
302
+ BOOKMARKS: {
303
+ USE: boolean;
304
+ };
305
+ AGENTS: {
306
+ USE: boolean;
307
+ CREATE: boolean;
308
+ SHARE: boolean;
309
+ SHARE_PUBLIC: boolean;
310
+ };
311
+ MEMORIES: {
312
+ USE: boolean;
313
+ CREATE: boolean;
314
+ UPDATE: boolean;
315
+ READ: boolean;
316
+ OPT_OUT: boolean;
317
+ };
318
+ MULTI_CONVO: {
319
+ USE: boolean;
320
+ };
321
+ TEMPORARY_CHAT: {
322
+ USE: boolean;
323
+ };
324
+ RUN_CODE: {
325
+ USE: boolean;
326
+ };
327
+ WEB_SEARCH: {
328
+ USE: boolean;
329
+ };
330
+ PEOPLE_PICKER: {
331
+ VIEW_USERS: boolean;
332
+ VIEW_GROUPS: boolean;
333
+ VIEW_ROLES: boolean;
334
+ };
335
+ MARKETPLACE: {
336
+ USE: boolean;
337
+ };
338
+ FILE_SEARCH: {
339
+ USE: boolean;
340
+ };
341
+ FILE_CITATIONS: {
342
+ USE: boolean;
343
+ };
344
+ MCP_SERVERS: {
345
+ USE: boolean;
346
+ CREATE: boolean;
347
+ SHARE: boolean;
348
+ SHARE_PUBLIC: boolean;
349
+ };
350
+ REMOTE_AGENTS: {
351
+ USE: boolean;
352
+ CREATE: boolean;
353
+ SHARE: boolean;
354
+ SHARE_PUBLIC: boolean;
355
+ };
356
+ };
357
+ }, {
358
+ name: string;
359
+ permissions: {
360
+ PROMPTS: {
361
+ USE?: boolean | undefined;
362
+ CREATE?: boolean | undefined;
363
+ SHARE?: boolean | undefined;
364
+ SHARE_PUBLIC?: boolean | undefined;
365
+ };
366
+ BOOKMARKS: {
367
+ USE?: boolean | undefined;
368
+ };
369
+ AGENTS: {
370
+ USE?: boolean | undefined;
371
+ CREATE?: boolean | undefined;
372
+ SHARE?: boolean | undefined;
373
+ SHARE_PUBLIC?: boolean | undefined;
374
+ };
375
+ MEMORIES: {
376
+ USE?: boolean | undefined;
377
+ CREATE?: boolean | undefined;
378
+ UPDATE?: boolean | undefined;
379
+ READ?: boolean | undefined;
380
+ OPT_OUT?: boolean | undefined;
381
+ };
382
+ MULTI_CONVO: {
383
+ USE?: boolean | undefined;
384
+ };
385
+ TEMPORARY_CHAT: {
386
+ USE?: boolean | undefined;
387
+ };
388
+ RUN_CODE: {
389
+ USE?: boolean | undefined;
390
+ };
391
+ WEB_SEARCH: {
392
+ USE?: boolean | undefined;
393
+ };
394
+ PEOPLE_PICKER: {
395
+ VIEW_USERS?: boolean | undefined;
396
+ VIEW_GROUPS?: boolean | undefined;
397
+ VIEW_ROLES?: boolean | undefined;
398
+ };
399
+ MARKETPLACE: {
400
+ USE?: boolean | undefined;
401
+ };
402
+ FILE_SEARCH: {
403
+ USE?: boolean | undefined;
404
+ };
405
+ FILE_CITATIONS: {
406
+ USE?: boolean | undefined;
407
+ };
408
+ MCP_SERVERS: {
409
+ USE?: boolean | undefined;
410
+ CREATE?: boolean | undefined;
411
+ SHARE?: boolean | undefined;
412
+ SHARE_PUBLIC?: boolean | undefined;
413
+ };
414
+ REMOTE_AGENTS: {
415
+ USE?: boolean | undefined;
416
+ CREATE?: boolean | undefined;
417
+ SHARE?: boolean | undefined;
418
+ SHARE_PUBLIC?: boolean | undefined;
419
+ };
420
+ };
421
+ }>;
422
+ export type TRole = z.infer<typeof roleSchema>;
423
+ export declare const roleDefaults: {
424
+ ADMIN: {
425
+ name: SystemRoles.ADMIN;
426
+ permissions: {
427
+ PROMPTS: {
428
+ USE: boolean;
429
+ CREATE: boolean;
430
+ SHARE: boolean;
431
+ SHARE_PUBLIC: boolean;
432
+ };
433
+ BOOKMARKS: {
434
+ USE: boolean;
435
+ };
436
+ AGENTS: {
437
+ USE: boolean;
438
+ CREATE: boolean;
439
+ SHARE: boolean;
440
+ SHARE_PUBLIC: boolean;
441
+ };
442
+ MEMORIES: {
443
+ USE: boolean;
444
+ CREATE: boolean;
445
+ UPDATE: boolean;
446
+ READ: boolean;
447
+ OPT_OUT: boolean;
448
+ };
449
+ MULTI_CONVO: {
450
+ USE: boolean;
451
+ };
452
+ TEMPORARY_CHAT: {
453
+ USE: boolean;
454
+ };
455
+ RUN_CODE: {
456
+ USE: boolean;
457
+ };
458
+ WEB_SEARCH: {
459
+ USE: boolean;
460
+ };
461
+ PEOPLE_PICKER: {
462
+ VIEW_USERS: boolean;
463
+ VIEW_GROUPS: boolean;
464
+ VIEW_ROLES: boolean;
465
+ };
466
+ MARKETPLACE: {
467
+ USE: boolean;
468
+ };
469
+ FILE_SEARCH: {
470
+ USE: boolean;
471
+ };
472
+ FILE_CITATIONS: {
473
+ USE: boolean;
474
+ };
475
+ MCP_SERVERS: {
476
+ USE: boolean;
477
+ CREATE: boolean;
478
+ SHARE: boolean;
479
+ SHARE_PUBLIC: boolean;
480
+ };
481
+ REMOTE_AGENTS: {
482
+ USE: boolean;
483
+ CREATE: boolean;
484
+ SHARE: boolean;
485
+ SHARE_PUBLIC: boolean;
486
+ };
487
+ };
488
+ };
489
+ USER: {
490
+ name: SystemRoles.USER;
491
+ permissions: {
492
+ PROMPTS: {
493
+ USE: boolean;
494
+ CREATE: boolean;
495
+ SHARE: boolean;
496
+ SHARE_PUBLIC: boolean;
497
+ };
498
+ BOOKMARKS: {
499
+ USE: boolean;
500
+ };
501
+ AGENTS: {
502
+ USE: boolean;
503
+ CREATE: boolean;
504
+ SHARE: boolean;
505
+ SHARE_PUBLIC: boolean;
506
+ };
507
+ MEMORIES: {
508
+ USE: boolean;
509
+ CREATE: boolean;
510
+ UPDATE: boolean;
511
+ READ: boolean;
512
+ OPT_OUT: boolean;
513
+ };
514
+ MULTI_CONVO: {
515
+ USE: boolean;
516
+ };
517
+ TEMPORARY_CHAT: {
518
+ USE: boolean;
519
+ };
520
+ RUN_CODE: {
521
+ USE: boolean;
522
+ };
523
+ WEB_SEARCH: {
524
+ USE: boolean;
525
+ };
526
+ PEOPLE_PICKER: {
527
+ VIEW_USERS: boolean;
528
+ VIEW_GROUPS: boolean;
529
+ VIEW_ROLES: boolean;
530
+ };
531
+ MARKETPLACE: {
532
+ USE: boolean;
533
+ };
534
+ FILE_SEARCH: {
535
+ USE: boolean;
536
+ };
537
+ FILE_CITATIONS: {
538
+ USE: boolean;
539
+ };
540
+ MCP_SERVERS: {
541
+ USE: boolean;
542
+ CREATE: boolean;
543
+ SHARE: boolean;
544
+ SHARE_PUBLIC: boolean;
545
+ };
546
+ REMOTE_AGENTS: {
547
+ USE: boolean;
548
+ CREATE: boolean;
549
+ SHARE: boolean;
550
+ SHARE_PUBLIC: boolean;
551
+ };
552
+ };
553
+ };
554
+ };
@@ -0,0 +1 @@
1
+ export {};