librechat-data-provider 0.8.402 → 0.8.404

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 (109) hide show
  1. package/dist/index.es.js +1 -1
  2. package/dist/index.es.js.map +1 -1
  3. package/dist/index.js +1 -1
  4. package/dist/index.js.map +1 -1
  5. package/dist/react-query/index.es.js +1 -1
  6. package/dist/react-query/index.es.js.map +1 -1
  7. package/dist/types/accessPermissions.d.ts +744 -0
  8. package/dist/types/actions.d.ts +118 -0
  9. package/dist/types/api-endpoints.d.ts +150 -0
  10. package/dist/types/artifacts.d.ts +97 -0
  11. package/dist/types/azure.d.ts +22 -0
  12. package/dist/types/bedrock.d.ts +1220 -0
  13. package/dist/types/config.d.ts +14849 -0
  14. package/dist/types/config.spec.d.ts +1 -0
  15. package/dist/types/createPayload.d.ts +5 -0
  16. package/dist/types/data-service.d.ts +287 -0
  17. package/dist/types/feedback.d.ts +36 -0
  18. package/dist/types/file-config.d.ts +263 -0
  19. package/dist/types/file-config.spec.d.ts +1 -0
  20. package/dist/types/generate.d.ts +597 -0
  21. package/dist/types/headers-helpers.d.ts +2 -0
  22. package/{src/index.ts → dist/types/index.d.ts} +0 -15
  23. package/dist/types/keys.d.ts +92 -0
  24. package/dist/types/mcp.d.ts +2760 -0
  25. package/dist/types/messages.d.ts +10 -0
  26. package/dist/types/models.d.ts +1547 -0
  27. package/dist/types/parameterSettings.d.ts +69 -0
  28. package/dist/types/parsers.d.ts +110 -0
  29. package/dist/types/permissions.d.ts +522 -0
  30. package/dist/types/react-query/react-query-service.d.ts +85 -0
  31. package/dist/types/request.d.ts +25 -0
  32. package/dist/types/roles.d.ts +554 -0
  33. package/dist/types/roles.spec.d.ts +1 -0
  34. package/dist/types/schemas.d.ts +5110 -0
  35. package/dist/types/schemas.spec.d.ts +1 -0
  36. package/dist/types/types/agents.d.ts +433 -0
  37. package/dist/types/types/assistants.d.ts +547 -0
  38. package/dist/types/types/files.d.ts +172 -0
  39. package/dist/types/types/graph.d.ts +135 -0
  40. package/{src/types/mcpServers.ts → dist/types/types/mcpServers.d.ts} +12 -18
  41. package/dist/types/types/mutations.d.ts +209 -0
  42. package/dist/types/types/queries.d.ts +169 -0
  43. package/dist/types/types/runs.d.ts +36 -0
  44. package/dist/types/types/web.d.ts +520 -0
  45. package/dist/types/types.d.ts +503 -0
  46. package/dist/types/utils.d.ts +12 -0
  47. package/package.json +5 -1
  48. package/babel.config.js +0 -4
  49. package/check_updates.sh +0 -52
  50. package/jest.config.js +0 -19
  51. package/react-query/package-lock.json +0 -292
  52. package/react-query/package.json +0 -10
  53. package/rollup.config.js +0 -74
  54. package/server-rollup.config.js +0 -40
  55. package/specs/actions.spec.ts +0 -2533
  56. package/specs/api-endpoints-subdir.spec.ts +0 -140
  57. package/specs/api-endpoints.spec.ts +0 -74
  58. package/specs/azure.spec.ts +0 -844
  59. package/specs/bedrock.spec.ts +0 -862
  60. package/specs/filetypes.spec.ts +0 -175
  61. package/specs/generate.spec.ts +0 -770
  62. package/specs/headers-helpers.spec.ts +0 -24
  63. package/specs/mcp.spec.ts +0 -147
  64. package/specs/openapiSpecs.ts +0 -524
  65. package/specs/parsers.spec.ts +0 -601
  66. package/specs/request-interceptor.spec.ts +0 -304
  67. package/specs/utils.spec.ts +0 -196
  68. package/src/accessPermissions.ts +0 -346
  69. package/src/actions.ts +0 -813
  70. package/src/api-endpoints.ts +0 -440
  71. package/src/artifacts.ts +0 -3104
  72. package/src/azure.ts +0 -328
  73. package/src/bedrock.ts +0 -425
  74. package/src/config.spec.ts +0 -315
  75. package/src/config.ts +0 -2006
  76. package/src/createPayload.ts +0 -46
  77. package/src/data-service.ts +0 -1087
  78. package/src/feedback.ts +0 -141
  79. package/src/file-config.spec.ts +0 -1248
  80. package/src/file-config.ts +0 -764
  81. package/src/generate.ts +0 -634
  82. package/src/headers-helpers.ts +0 -13
  83. package/src/keys.ts +0 -99
  84. package/src/mcp.ts +0 -271
  85. package/src/messages.ts +0 -50
  86. package/src/models.ts +0 -69
  87. package/src/parameterSettings.ts +0 -1111
  88. package/src/parsers.ts +0 -563
  89. package/src/permissions.ts +0 -188
  90. package/src/react-query/react-query-service.ts +0 -566
  91. package/src/request.ts +0 -171
  92. package/src/roles.spec.ts +0 -132
  93. package/src/roles.ts +0 -225
  94. package/src/schemas.spec.ts +0 -355
  95. package/src/schemas.ts +0 -1234
  96. package/src/types/agents.ts +0 -470
  97. package/src/types/assistants.ts +0 -654
  98. package/src/types/files.ts +0 -191
  99. package/src/types/graph.ts +0 -145
  100. package/src/types/mutations.ts +0 -422
  101. package/src/types/queries.ts +0 -208
  102. package/src/types/runs.ts +0 -40
  103. package/src/types/web.ts +0 -588
  104. package/src/types.ts +0 -676
  105. package/src/utils.ts +0 -85
  106. package/tsconfig.json +0 -28
  107. package/tsconfig.spec.json +0 -10
  108. /package/{src/react-query/index.ts → dist/types/react-query/index.d.ts} +0 -0
  109. /package/{src/types/index.ts → dist/types/types/index.d.ts} +0 -0
@@ -0,0 +1,69 @@
1
+ import { SettingsConfiguration } from './generate';
2
+ export declare const librechat: {
3
+ modelLabel: {
4
+ readonly key: "modelLabel";
5
+ readonly label: "com_endpoint_custom_name";
6
+ readonly labelCode: true;
7
+ readonly type: "string";
8
+ readonly default: "";
9
+ readonly component: "input";
10
+ readonly placeholder: "com_endpoint_openai_custom_name_placeholder";
11
+ readonly placeholderCode: true;
12
+ readonly optionType: "conversation";
13
+ };
14
+ maxContextTokens: {
15
+ readonly key: "maxContextTokens";
16
+ readonly label: "com_endpoint_context_tokens";
17
+ readonly labelCode: true;
18
+ readonly type: "number";
19
+ readonly component: "input";
20
+ readonly placeholder: "com_nav_theme_system";
21
+ readonly placeholderCode: true;
22
+ readonly description: "com_endpoint_context_info";
23
+ readonly descriptionCode: true;
24
+ readonly optionType: "model";
25
+ readonly columnSpan: 2;
26
+ };
27
+ resendFiles: {
28
+ readonly key: "resendFiles";
29
+ readonly label: "com_endpoint_plug_resend_files";
30
+ readonly labelCode: true;
31
+ readonly description: "com_endpoint_openai_resend_files";
32
+ readonly descriptionCode: true;
33
+ readonly type: "boolean";
34
+ readonly default: true;
35
+ readonly component: "switch";
36
+ readonly optionType: "conversation";
37
+ readonly showDefault: false;
38
+ readonly columnSpan: 2;
39
+ };
40
+ promptPrefix: {
41
+ readonly key: "promptPrefix";
42
+ readonly label: "com_endpoint_prompt_prefix";
43
+ readonly labelCode: true;
44
+ readonly type: "string";
45
+ readonly default: "";
46
+ readonly component: "textarea";
47
+ readonly placeholder: "com_endpoint_openai_prompt_prefix_placeholder";
48
+ readonly placeholderCode: true;
49
+ readonly optionType: "model";
50
+ };
51
+ fileTokenLimit: {
52
+ readonly key: "fileTokenLimit";
53
+ readonly label: "com_ui_file_token_limit";
54
+ readonly labelCode: true;
55
+ readonly description: "com_ui_file_token_limit_desc";
56
+ readonly descriptionCode: true;
57
+ readonly placeholder: "com_nav_theme_system";
58
+ readonly placeholderCode: true;
59
+ readonly type: "number";
60
+ readonly component: "input";
61
+ readonly columnSpan: 2;
62
+ };
63
+ };
64
+ export declare const paramSettings: Record<string, SettingsConfiguration | undefined>;
65
+ export declare const presetSettings: Record<string, {
66
+ col1: SettingsConfiguration;
67
+ col2: SettingsConfiguration;
68
+ } | undefined>;
69
+ export declare const agentParamSettings: Record<string, SettingsConfiguration | undefined>;
@@ -0,0 +1,110 @@
1
+ import type { ZodIssue } from 'zod';
2
+ import type * as a from './types/assistants';
3
+ import type * as s from './schemas';
4
+ import type * as t from './types';
5
+ import { EModelEndpoint } from './schemas';
6
+ export type EndpointSchemaKey = EModelEndpoint;
7
+ /** Get the enabled endpoints from the `ENDPOINTS` environment variable */
8
+ export declare function getEnabledEndpoints(): string[];
9
+ /** Orders an existing EndpointsConfig object based on enabled endpoint/custom ordering */
10
+ export declare function orderEndpointsConfig(endpointsConfig: t.TEndpointsConfig): Record<string, t.TConfig | null | undefined>;
11
+ /** Converts an array of Zod issues into a string. */
12
+ export declare function errorsToString(errors: ZodIssue[]): string;
13
+ export declare function getFirstDefinedValue(possibleValues: string[]): string | undefined;
14
+ export declare function getNonEmptyValue(possibleValues: string[]): string | undefined;
15
+ export type TPossibleValues = {
16
+ models: string[];
17
+ };
18
+ export declare const parseConvo: ({ endpoint, endpointType, conversation, possibleValues, defaultParamsEndpoint, }: {
19
+ endpoint: EndpointSchemaKey;
20
+ endpointType?: s.EModelEndpoint | null | undefined;
21
+ conversation: Partial<s.TConversation | s.TPreset> | null;
22
+ possibleValues?: TPossibleValues | undefined;
23
+ defaultParamsEndpoint?: string | null | undefined;
24
+ }) => s.TConversation | undefined;
25
+ export declare const getResponseSender: (endpointOption: Partial<t.TEndpointOption>) => string;
26
+ export declare const parseCompactConvo: ({ endpoint, endpointType, conversation, possibleValues, defaultParamsEndpoint, }: {
27
+ endpoint?: s.EModelEndpoint | undefined;
28
+ endpointType?: s.EModelEndpoint | null | undefined;
29
+ conversation: Partial<s.TConversation | s.TPreset>;
30
+ possibleValues?: TPossibleValues | undefined;
31
+ defaultParamsEndpoint?: string | null | undefined;
32
+ }) => Omit<s.TConversation, 'iconURL'> | null;
33
+ export declare function parseTextParts(contentParts: Array<a.TMessageContentParts | undefined>, skipReasoning?: boolean): string;
34
+ export declare const SEPARATORS: string[];
35
+ export declare function findLastSeparatorIndex(text: string, separators?: string[]): number;
36
+ export declare function replaceSpecialVars({ text, user }: {
37
+ text: string;
38
+ user?: t.TUser | null;
39
+ }): string;
40
+ /**
41
+ * Parsed ephemeral agent ID result
42
+ */
43
+ export type ParsedEphemeralAgentId = {
44
+ endpoint: string;
45
+ model: string;
46
+ sender?: string;
47
+ index?: number;
48
+ };
49
+ /**
50
+ * Encodes an ephemeral agent ID from endpoint, model, optional sender, and optional index.
51
+ * Uses __ to replace : (reserved in graph node names) and ___ to separate sender.
52
+ *
53
+ * Format: endpoint__model___sender or endpoint__model___sender____index (if index provided)
54
+ *
55
+ * @example
56
+ * encodeEphemeralAgentId({ endpoint: 'openAI', model: 'gpt-4o', sender: 'GPT-4o' })
57
+ * // => 'openAI__gpt-4o___GPT-4o'
58
+ *
59
+ * @example
60
+ * encodeEphemeralAgentId({ endpoint: 'openAI', model: 'gpt-4o', sender: 'GPT-4o', index: 1 })
61
+ * // => 'openAI__gpt-4o___GPT-4o____1'
62
+ */
63
+ export declare function encodeEphemeralAgentId({ endpoint, model, sender, index, }: {
64
+ endpoint: string;
65
+ model: string;
66
+ sender?: string;
67
+ index?: number;
68
+ }): string;
69
+ /**
70
+ * Parses an ephemeral agent ID back into its components.
71
+ * Returns undefined if the ID doesn't match the expected format.
72
+ *
73
+ * Format: endpoint__model___sender or endpoint__model___sender____index
74
+ * - ____ (4 underscores) separates optional index suffix
75
+ * - ___ (triple underscore) separates model from optional sender
76
+ * - __ (double underscore) replaces : in endpoint/model names
77
+ *
78
+ * @example
79
+ * parseEphemeralAgentId('openAI__gpt-4o___GPT-4o')
80
+ * // => { endpoint: 'openAI', model: 'gpt-4o', sender: 'GPT-4o' }
81
+ *
82
+ * @example
83
+ * parseEphemeralAgentId('openAI__gpt-4o___GPT-4o____1')
84
+ * // => { endpoint: 'openAI', model: 'gpt-4o', sender: 'GPT-4o', index: 1 }
85
+ */
86
+ export declare function parseEphemeralAgentId(agentId: string): ParsedEphemeralAgentId | undefined;
87
+ /**
88
+ * Checks if an agent ID represents an ephemeral (non-saved) agent.
89
+ * Real agent IDs always start with "agent_", so anything else is ephemeral.
90
+ */
91
+ export declare function isEphemeralAgentId(agentId: string | null | undefined): boolean;
92
+ /**
93
+ * Strips the index suffix (____N) from an agent ID if present.
94
+ * Works with both ephemeral and real agent IDs.
95
+ *
96
+ * @example
97
+ * stripAgentIdSuffix('agent_abc123____1') // => 'agent_abc123'
98
+ * stripAgentIdSuffix('openAI__gpt-4o___GPT-4o____1') // => 'openAI__gpt-4o___GPT-4o'
99
+ * stripAgentIdSuffix('agent_abc123') // => 'agent_abc123' (unchanged)
100
+ */
101
+ export declare function stripAgentIdSuffix(agentId: string): string;
102
+ /**
103
+ * Appends an index suffix (____N) to an agent ID.
104
+ * Used to distinguish parallel agents with the same base ID.
105
+ *
106
+ * @example
107
+ * appendAgentIdSuffix('agent_abc123', 1) // => 'agent_abc123____1'
108
+ * appendAgentIdSuffix('openAI__gpt-4o___GPT-4o', 1) // => 'openAI__gpt-4o___GPT-4o____1'
109
+ */
110
+ export declare function appendAgentIdSuffix(agentId: string, index: number): string;
@@ -0,0 +1,522 @@
1
+ import { z } from 'zod';
2
+ /**
3
+ * Enum for Permission Types
4
+ */
5
+ export declare enum PermissionTypes {
6
+ /**
7
+ * Type for Prompt Permissions
8
+ */
9
+ PROMPTS = "PROMPTS",
10
+ /**
11
+ * Type for Bookmark Permissions
12
+ */
13
+ BOOKMARKS = "BOOKMARKS",
14
+ /**
15
+ * Type for Agent Permissions
16
+ */
17
+ AGENTS = "AGENTS",
18
+ /**
19
+ * Type for Memory Permissions
20
+ */
21
+ MEMORIES = "MEMORIES",
22
+ /**
23
+ * Type for Multi-Conversation Permissions
24
+ */
25
+ MULTI_CONVO = "MULTI_CONVO",
26
+ /**
27
+ * Type for Temporary Chat
28
+ */
29
+ TEMPORARY_CHAT = "TEMPORARY_CHAT",
30
+ /**
31
+ * Type for using the "Run Code" LC Code Interpreter API feature
32
+ */
33
+ RUN_CODE = "RUN_CODE",
34
+ /**
35
+ * Type for using the "Web Search" feature
36
+ */
37
+ WEB_SEARCH = "WEB_SEARCH",
38
+ /**
39
+ * Type for People Picker Permissions
40
+ */
41
+ PEOPLE_PICKER = "PEOPLE_PICKER",
42
+ /**
43
+ * Type for Marketplace Permissions
44
+ */
45
+ MARKETPLACE = "MARKETPLACE",
46
+ /**
47
+ * Type for using the "File Search" feature
48
+ */
49
+ FILE_SEARCH = "FILE_SEARCH",
50
+ /**
51
+ * Type for using the "File Citations" feature in agents
52
+ */
53
+ FILE_CITATIONS = "FILE_CITATIONS",
54
+ /**
55
+ * Type for MCP Server Permissions
56
+ */
57
+ MCP_SERVERS = "MCP_SERVERS",
58
+ /**
59
+ * Type for Remote Agent (API) Permissions
60
+ */
61
+ REMOTE_AGENTS = "REMOTE_AGENTS"
62
+ }
63
+ /**
64
+ * Enum for Role-Based Access Control Constants
65
+ */
66
+ export declare enum Permissions {
67
+ USE = "USE",
68
+ CREATE = "CREATE",
69
+ UPDATE = "UPDATE",
70
+ READ = "READ",
71
+ READ_AUTHOR = "READ_AUTHOR",
72
+ SHARE = "SHARE",
73
+ /** Can disable if desired */
74
+ OPT_OUT = "OPT_OUT",
75
+ VIEW_USERS = "VIEW_USERS",
76
+ VIEW_GROUPS = "VIEW_GROUPS",
77
+ VIEW_ROLES = "VIEW_ROLES",
78
+ /** Can share resources publicly (with everyone) */
79
+ SHARE_PUBLIC = "SHARE_PUBLIC"
80
+ }
81
+ export declare const promptPermissionsSchema: z.ZodObject<{
82
+ USE: z.ZodDefault<z.ZodBoolean>;
83
+ CREATE: z.ZodDefault<z.ZodBoolean>;
84
+ SHARE: z.ZodDefault<z.ZodBoolean>;
85
+ SHARE_PUBLIC: z.ZodDefault<z.ZodBoolean>;
86
+ }, "strip", z.ZodTypeAny, {
87
+ USE: boolean;
88
+ CREATE: boolean;
89
+ SHARE: boolean;
90
+ SHARE_PUBLIC: boolean;
91
+ }, {
92
+ USE?: boolean | undefined;
93
+ CREATE?: boolean | undefined;
94
+ SHARE?: boolean | undefined;
95
+ SHARE_PUBLIC?: boolean | undefined;
96
+ }>;
97
+ export type TPromptPermissions = z.infer<typeof promptPermissionsSchema>;
98
+ export declare const bookmarkPermissionsSchema: z.ZodObject<{
99
+ USE: z.ZodDefault<z.ZodBoolean>;
100
+ }, "strip", z.ZodTypeAny, {
101
+ USE: boolean;
102
+ }, {
103
+ USE?: boolean | undefined;
104
+ }>;
105
+ export type TBookmarkPermissions = z.infer<typeof bookmarkPermissionsSchema>;
106
+ export declare const memoryPermissionsSchema: z.ZodObject<{
107
+ USE: z.ZodDefault<z.ZodBoolean>;
108
+ CREATE: z.ZodDefault<z.ZodBoolean>;
109
+ UPDATE: z.ZodDefault<z.ZodBoolean>;
110
+ READ: z.ZodDefault<z.ZodBoolean>;
111
+ OPT_OUT: z.ZodDefault<z.ZodBoolean>;
112
+ }, "strip", z.ZodTypeAny, {
113
+ USE: boolean;
114
+ CREATE: boolean;
115
+ UPDATE: boolean;
116
+ READ: boolean;
117
+ OPT_OUT: boolean;
118
+ }, {
119
+ USE?: boolean | undefined;
120
+ CREATE?: boolean | undefined;
121
+ UPDATE?: boolean | undefined;
122
+ READ?: boolean | undefined;
123
+ OPT_OUT?: boolean | undefined;
124
+ }>;
125
+ export type TMemoryPermissions = z.infer<typeof memoryPermissionsSchema>;
126
+ export declare const agentPermissionsSchema: z.ZodObject<{
127
+ USE: z.ZodDefault<z.ZodBoolean>;
128
+ CREATE: z.ZodDefault<z.ZodBoolean>;
129
+ SHARE: z.ZodDefault<z.ZodBoolean>;
130
+ SHARE_PUBLIC: z.ZodDefault<z.ZodBoolean>;
131
+ }, "strip", z.ZodTypeAny, {
132
+ USE: boolean;
133
+ CREATE: boolean;
134
+ SHARE: boolean;
135
+ SHARE_PUBLIC: boolean;
136
+ }, {
137
+ USE?: boolean | undefined;
138
+ CREATE?: boolean | undefined;
139
+ SHARE?: boolean | undefined;
140
+ SHARE_PUBLIC?: boolean | undefined;
141
+ }>;
142
+ export type TAgentPermissions = z.infer<typeof agentPermissionsSchema>;
143
+ export declare const multiConvoPermissionsSchema: z.ZodObject<{
144
+ USE: z.ZodDefault<z.ZodBoolean>;
145
+ }, "strip", z.ZodTypeAny, {
146
+ USE: boolean;
147
+ }, {
148
+ USE?: boolean | undefined;
149
+ }>;
150
+ export type TMultiConvoPermissions = z.infer<typeof multiConvoPermissionsSchema>;
151
+ export declare const temporaryChatPermissionsSchema: z.ZodObject<{
152
+ USE: z.ZodDefault<z.ZodBoolean>;
153
+ }, "strip", z.ZodTypeAny, {
154
+ USE: boolean;
155
+ }, {
156
+ USE?: boolean | undefined;
157
+ }>;
158
+ export type TTemporaryChatPermissions = z.infer<typeof temporaryChatPermissionsSchema>;
159
+ export declare const runCodePermissionsSchema: z.ZodObject<{
160
+ USE: z.ZodDefault<z.ZodBoolean>;
161
+ }, "strip", z.ZodTypeAny, {
162
+ USE: boolean;
163
+ }, {
164
+ USE?: boolean | undefined;
165
+ }>;
166
+ export type TRunCodePermissions = z.infer<typeof runCodePermissionsSchema>;
167
+ export declare const webSearchPermissionsSchema: z.ZodObject<{
168
+ USE: z.ZodDefault<z.ZodBoolean>;
169
+ }, "strip", z.ZodTypeAny, {
170
+ USE: boolean;
171
+ }, {
172
+ USE?: boolean | undefined;
173
+ }>;
174
+ export type TWebSearchPermissions = z.infer<typeof webSearchPermissionsSchema>;
175
+ export declare const peoplePickerPermissionsSchema: z.ZodObject<{
176
+ VIEW_USERS: z.ZodDefault<z.ZodBoolean>;
177
+ VIEW_GROUPS: z.ZodDefault<z.ZodBoolean>;
178
+ VIEW_ROLES: z.ZodDefault<z.ZodBoolean>;
179
+ }, "strip", z.ZodTypeAny, {
180
+ VIEW_USERS: boolean;
181
+ VIEW_GROUPS: boolean;
182
+ VIEW_ROLES: boolean;
183
+ }, {
184
+ VIEW_USERS?: boolean | undefined;
185
+ VIEW_GROUPS?: boolean | undefined;
186
+ VIEW_ROLES?: boolean | undefined;
187
+ }>;
188
+ export type TPeoplePickerPermissions = z.infer<typeof peoplePickerPermissionsSchema>;
189
+ export declare const marketplacePermissionsSchema: z.ZodObject<{
190
+ USE: z.ZodDefault<z.ZodBoolean>;
191
+ }, "strip", z.ZodTypeAny, {
192
+ USE: boolean;
193
+ }, {
194
+ USE?: boolean | undefined;
195
+ }>;
196
+ export type TMarketplacePermissions = z.infer<typeof marketplacePermissionsSchema>;
197
+ export declare const fileSearchPermissionsSchema: z.ZodObject<{
198
+ USE: z.ZodDefault<z.ZodBoolean>;
199
+ }, "strip", z.ZodTypeAny, {
200
+ USE: boolean;
201
+ }, {
202
+ USE?: boolean | undefined;
203
+ }>;
204
+ export type TFileSearchPermissions = z.infer<typeof fileSearchPermissionsSchema>;
205
+ export declare const fileCitationsPermissionsSchema: z.ZodObject<{
206
+ USE: z.ZodDefault<z.ZodBoolean>;
207
+ }, "strip", z.ZodTypeAny, {
208
+ USE: boolean;
209
+ }, {
210
+ USE?: boolean | undefined;
211
+ }>;
212
+ export type TFileCitationsPermissions = z.infer<typeof fileCitationsPermissionsSchema>;
213
+ export declare const mcpServersPermissionsSchema: z.ZodObject<{
214
+ USE: z.ZodDefault<z.ZodBoolean>;
215
+ CREATE: z.ZodDefault<z.ZodBoolean>;
216
+ SHARE: z.ZodDefault<z.ZodBoolean>;
217
+ SHARE_PUBLIC: z.ZodDefault<z.ZodBoolean>;
218
+ }, "strip", z.ZodTypeAny, {
219
+ USE: boolean;
220
+ CREATE: boolean;
221
+ SHARE: boolean;
222
+ SHARE_PUBLIC: boolean;
223
+ }, {
224
+ USE?: boolean | undefined;
225
+ CREATE?: boolean | undefined;
226
+ SHARE?: boolean | undefined;
227
+ SHARE_PUBLIC?: boolean | undefined;
228
+ }>;
229
+ export type TMcpServersPermissions = z.infer<typeof mcpServersPermissionsSchema>;
230
+ export declare const remoteAgentsPermissionsSchema: z.ZodObject<{
231
+ USE: z.ZodDefault<z.ZodBoolean>;
232
+ CREATE: z.ZodDefault<z.ZodBoolean>;
233
+ SHARE: z.ZodDefault<z.ZodBoolean>;
234
+ SHARE_PUBLIC: z.ZodDefault<z.ZodBoolean>;
235
+ }, "strip", z.ZodTypeAny, {
236
+ USE: boolean;
237
+ CREATE: boolean;
238
+ SHARE: boolean;
239
+ SHARE_PUBLIC: boolean;
240
+ }, {
241
+ USE?: boolean | undefined;
242
+ CREATE?: boolean | undefined;
243
+ SHARE?: boolean | undefined;
244
+ SHARE_PUBLIC?: boolean | undefined;
245
+ }>;
246
+ export type TRemoteAgentsPermissions = z.infer<typeof remoteAgentsPermissionsSchema>;
247
+ export declare const permissionsSchema: z.ZodObject<{
248
+ PROMPTS: z.ZodObject<{
249
+ USE: z.ZodDefault<z.ZodBoolean>;
250
+ CREATE: z.ZodDefault<z.ZodBoolean>;
251
+ SHARE: z.ZodDefault<z.ZodBoolean>;
252
+ SHARE_PUBLIC: z.ZodDefault<z.ZodBoolean>;
253
+ }, "strip", z.ZodTypeAny, {
254
+ USE: boolean;
255
+ CREATE: boolean;
256
+ SHARE: boolean;
257
+ SHARE_PUBLIC: boolean;
258
+ }, {
259
+ USE?: boolean | undefined;
260
+ CREATE?: boolean | undefined;
261
+ SHARE?: boolean | undefined;
262
+ SHARE_PUBLIC?: boolean | undefined;
263
+ }>;
264
+ BOOKMARKS: z.ZodObject<{
265
+ USE: z.ZodDefault<z.ZodBoolean>;
266
+ }, "strip", z.ZodTypeAny, {
267
+ USE: boolean;
268
+ }, {
269
+ USE?: boolean | undefined;
270
+ }>;
271
+ MEMORIES: z.ZodObject<{
272
+ USE: z.ZodDefault<z.ZodBoolean>;
273
+ CREATE: z.ZodDefault<z.ZodBoolean>;
274
+ UPDATE: z.ZodDefault<z.ZodBoolean>;
275
+ READ: z.ZodDefault<z.ZodBoolean>;
276
+ OPT_OUT: z.ZodDefault<z.ZodBoolean>;
277
+ }, "strip", z.ZodTypeAny, {
278
+ USE: boolean;
279
+ CREATE: boolean;
280
+ UPDATE: boolean;
281
+ READ: boolean;
282
+ OPT_OUT: boolean;
283
+ }, {
284
+ USE?: boolean | undefined;
285
+ CREATE?: boolean | undefined;
286
+ UPDATE?: boolean | undefined;
287
+ READ?: boolean | undefined;
288
+ OPT_OUT?: boolean | undefined;
289
+ }>;
290
+ AGENTS: z.ZodObject<{
291
+ USE: z.ZodDefault<z.ZodBoolean>;
292
+ CREATE: z.ZodDefault<z.ZodBoolean>;
293
+ SHARE: z.ZodDefault<z.ZodBoolean>;
294
+ SHARE_PUBLIC: z.ZodDefault<z.ZodBoolean>;
295
+ }, "strip", z.ZodTypeAny, {
296
+ USE: boolean;
297
+ CREATE: boolean;
298
+ SHARE: boolean;
299
+ SHARE_PUBLIC: boolean;
300
+ }, {
301
+ USE?: boolean | undefined;
302
+ CREATE?: boolean | undefined;
303
+ SHARE?: boolean | undefined;
304
+ SHARE_PUBLIC?: boolean | undefined;
305
+ }>;
306
+ MULTI_CONVO: z.ZodObject<{
307
+ USE: z.ZodDefault<z.ZodBoolean>;
308
+ }, "strip", z.ZodTypeAny, {
309
+ USE: boolean;
310
+ }, {
311
+ USE?: boolean | undefined;
312
+ }>;
313
+ TEMPORARY_CHAT: z.ZodObject<{
314
+ USE: z.ZodDefault<z.ZodBoolean>;
315
+ }, "strip", z.ZodTypeAny, {
316
+ USE: boolean;
317
+ }, {
318
+ USE?: boolean | undefined;
319
+ }>;
320
+ RUN_CODE: z.ZodObject<{
321
+ USE: z.ZodDefault<z.ZodBoolean>;
322
+ }, "strip", z.ZodTypeAny, {
323
+ USE: boolean;
324
+ }, {
325
+ USE?: boolean | undefined;
326
+ }>;
327
+ WEB_SEARCH: z.ZodObject<{
328
+ USE: z.ZodDefault<z.ZodBoolean>;
329
+ }, "strip", z.ZodTypeAny, {
330
+ USE: boolean;
331
+ }, {
332
+ USE?: boolean | undefined;
333
+ }>;
334
+ PEOPLE_PICKER: z.ZodObject<{
335
+ VIEW_USERS: z.ZodDefault<z.ZodBoolean>;
336
+ VIEW_GROUPS: z.ZodDefault<z.ZodBoolean>;
337
+ VIEW_ROLES: z.ZodDefault<z.ZodBoolean>;
338
+ }, "strip", z.ZodTypeAny, {
339
+ VIEW_USERS: boolean;
340
+ VIEW_GROUPS: boolean;
341
+ VIEW_ROLES: boolean;
342
+ }, {
343
+ VIEW_USERS?: boolean | undefined;
344
+ VIEW_GROUPS?: boolean | undefined;
345
+ VIEW_ROLES?: boolean | undefined;
346
+ }>;
347
+ MARKETPLACE: z.ZodObject<{
348
+ USE: z.ZodDefault<z.ZodBoolean>;
349
+ }, "strip", z.ZodTypeAny, {
350
+ USE: boolean;
351
+ }, {
352
+ USE?: boolean | undefined;
353
+ }>;
354
+ FILE_SEARCH: z.ZodObject<{
355
+ USE: z.ZodDefault<z.ZodBoolean>;
356
+ }, "strip", z.ZodTypeAny, {
357
+ USE: boolean;
358
+ }, {
359
+ USE?: boolean | undefined;
360
+ }>;
361
+ FILE_CITATIONS: z.ZodObject<{
362
+ USE: z.ZodDefault<z.ZodBoolean>;
363
+ }, "strip", z.ZodTypeAny, {
364
+ USE: boolean;
365
+ }, {
366
+ USE?: boolean | undefined;
367
+ }>;
368
+ MCP_SERVERS: z.ZodObject<{
369
+ USE: z.ZodDefault<z.ZodBoolean>;
370
+ CREATE: z.ZodDefault<z.ZodBoolean>;
371
+ SHARE: z.ZodDefault<z.ZodBoolean>;
372
+ SHARE_PUBLIC: z.ZodDefault<z.ZodBoolean>;
373
+ }, "strip", z.ZodTypeAny, {
374
+ USE: boolean;
375
+ CREATE: boolean;
376
+ SHARE: boolean;
377
+ SHARE_PUBLIC: boolean;
378
+ }, {
379
+ USE?: boolean | undefined;
380
+ CREATE?: boolean | undefined;
381
+ SHARE?: boolean | undefined;
382
+ SHARE_PUBLIC?: boolean | undefined;
383
+ }>;
384
+ REMOTE_AGENTS: z.ZodObject<{
385
+ USE: z.ZodDefault<z.ZodBoolean>;
386
+ CREATE: z.ZodDefault<z.ZodBoolean>;
387
+ SHARE: z.ZodDefault<z.ZodBoolean>;
388
+ SHARE_PUBLIC: z.ZodDefault<z.ZodBoolean>;
389
+ }, "strip", z.ZodTypeAny, {
390
+ USE: boolean;
391
+ CREATE: boolean;
392
+ SHARE: boolean;
393
+ SHARE_PUBLIC: boolean;
394
+ }, {
395
+ USE?: boolean | undefined;
396
+ CREATE?: boolean | undefined;
397
+ SHARE?: boolean | undefined;
398
+ SHARE_PUBLIC?: boolean | undefined;
399
+ }>;
400
+ }, "strip", z.ZodTypeAny, {
401
+ PROMPTS: {
402
+ USE: boolean;
403
+ CREATE: boolean;
404
+ SHARE: boolean;
405
+ SHARE_PUBLIC: boolean;
406
+ };
407
+ BOOKMARKS: {
408
+ USE: boolean;
409
+ };
410
+ AGENTS: {
411
+ USE: boolean;
412
+ CREATE: boolean;
413
+ SHARE: boolean;
414
+ SHARE_PUBLIC: boolean;
415
+ };
416
+ MEMORIES: {
417
+ USE: boolean;
418
+ CREATE: boolean;
419
+ UPDATE: boolean;
420
+ READ: boolean;
421
+ OPT_OUT: boolean;
422
+ };
423
+ MULTI_CONVO: {
424
+ USE: boolean;
425
+ };
426
+ TEMPORARY_CHAT: {
427
+ USE: boolean;
428
+ };
429
+ RUN_CODE: {
430
+ USE: boolean;
431
+ };
432
+ WEB_SEARCH: {
433
+ USE: boolean;
434
+ };
435
+ PEOPLE_PICKER: {
436
+ VIEW_USERS: boolean;
437
+ VIEW_GROUPS: boolean;
438
+ VIEW_ROLES: boolean;
439
+ };
440
+ MARKETPLACE: {
441
+ USE: boolean;
442
+ };
443
+ FILE_SEARCH: {
444
+ USE: boolean;
445
+ };
446
+ FILE_CITATIONS: {
447
+ USE: boolean;
448
+ };
449
+ MCP_SERVERS: {
450
+ USE: boolean;
451
+ CREATE: boolean;
452
+ SHARE: boolean;
453
+ SHARE_PUBLIC: boolean;
454
+ };
455
+ REMOTE_AGENTS: {
456
+ USE: boolean;
457
+ CREATE: boolean;
458
+ SHARE: boolean;
459
+ SHARE_PUBLIC: boolean;
460
+ };
461
+ }, {
462
+ PROMPTS: {
463
+ USE?: boolean | undefined;
464
+ CREATE?: boolean | undefined;
465
+ SHARE?: boolean | undefined;
466
+ SHARE_PUBLIC?: boolean | undefined;
467
+ };
468
+ BOOKMARKS: {
469
+ USE?: boolean | undefined;
470
+ };
471
+ AGENTS: {
472
+ USE?: boolean | undefined;
473
+ CREATE?: boolean | undefined;
474
+ SHARE?: boolean | undefined;
475
+ SHARE_PUBLIC?: boolean | undefined;
476
+ };
477
+ MEMORIES: {
478
+ USE?: boolean | undefined;
479
+ CREATE?: boolean | undefined;
480
+ UPDATE?: boolean | undefined;
481
+ READ?: boolean | undefined;
482
+ OPT_OUT?: boolean | undefined;
483
+ };
484
+ MULTI_CONVO: {
485
+ USE?: boolean | undefined;
486
+ };
487
+ TEMPORARY_CHAT: {
488
+ USE?: boolean | undefined;
489
+ };
490
+ RUN_CODE: {
491
+ USE?: boolean | undefined;
492
+ };
493
+ WEB_SEARCH: {
494
+ USE?: boolean | undefined;
495
+ };
496
+ PEOPLE_PICKER: {
497
+ VIEW_USERS?: boolean | undefined;
498
+ VIEW_GROUPS?: boolean | undefined;
499
+ VIEW_ROLES?: boolean | undefined;
500
+ };
501
+ MARKETPLACE: {
502
+ USE?: boolean | undefined;
503
+ };
504
+ FILE_SEARCH: {
505
+ USE?: boolean | undefined;
506
+ };
507
+ FILE_CITATIONS: {
508
+ USE?: boolean | undefined;
509
+ };
510
+ MCP_SERVERS: {
511
+ USE?: boolean | undefined;
512
+ CREATE?: boolean | undefined;
513
+ SHARE?: boolean | undefined;
514
+ SHARE_PUBLIC?: boolean | undefined;
515
+ };
516
+ REMOTE_AGENTS: {
517
+ USE?: boolean | undefined;
518
+ CREATE?: boolean | undefined;
519
+ SHARE?: boolean | undefined;
520
+ SHARE_PUBLIC?: boolean | undefined;
521
+ };
522
+ }>;