librechat-data-provider 0.8.501 → 0.8.503
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/index.es.js +1 -1
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/react-query/index.es.js +1 -1
- package/dist/react-query/index.es.js.map +1 -1
- package/dist/types/accessPermissions.d.ts +6 -2
- package/dist/types/api-endpoints.d.ts +20 -1
- package/dist/types/balance.d.ts +3 -0
- package/dist/types/balance.spec.d.ts +1 -0
- package/dist/types/bedrock.d.ts +9 -1
- package/dist/types/cloudfront-config.spec.d.ts +1 -0
- package/dist/types/codeEnvRef.d.ts +62 -0
- package/dist/types/codeEnvRef.spec.d.ts +1 -0
- package/dist/types/config.d.ts +2278 -131
- package/dist/types/data-service.d.ts +69 -2
- package/dist/types/file-config.d.ts +16 -0
- package/dist/types/generate.d.ts +2 -0
- package/dist/types/headers-helpers.d.ts +1 -0
- package/dist/types/index.d.ts +3 -0
- package/dist/types/keys.d.ts +16 -2
- package/dist/types/mcp.d.ts +1304 -58
- package/dist/types/models.d.ts +50 -8
- package/dist/types/parameterSettings.d.ts +6 -0
- package/dist/types/parameterSettings.spec.d.ts +1 -0
- package/dist/types/parsers.d.ts +2 -1
- package/dist/types/permissions.d.ts +50 -1
- package/dist/types/roles.d.ts +52 -0
- package/dist/types/schemas.d.ts +477 -14
- package/dist/types/types/assistants.d.ts +25 -3
- package/dist/types/types/files.d.ts +71 -0
- package/dist/types/types/mutations.d.ts +46 -0
- package/dist/types/types/queries.d.ts +2 -0
- package/dist/types/types/runs.d.ts +20 -1
- package/dist/types/types/skills.d.ts +275 -0
- package/dist/types/types/web.d.ts +14 -1
- package/dist/types/types.d.ts +65 -5
- package/package.json +2 -2
package/dist/types/models.d.ts
CHANGED
|
@@ -25,6 +25,8 @@ export type TModelSpec = {
|
|
|
25
25
|
showIconInHeader?: boolean;
|
|
26
26
|
iconURL?: string | EModelEndpoint;
|
|
27
27
|
authType?: AuthType;
|
|
28
|
+
/** Hide the chat input tool badge row while this model spec is active. */
|
|
29
|
+
hideBadgeRow?: boolean;
|
|
28
30
|
webSearch?: boolean;
|
|
29
31
|
fileSearch?: boolean;
|
|
30
32
|
executeCode?: boolean;
|
|
@@ -221,6 +223,7 @@ export declare const tModelSpecSchema: z.ZodObject<{
|
|
|
221
223
|
spec: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
222
224
|
iconURL: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
223
225
|
expiredAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
226
|
+
isTemporary: z.ZodOptional<z.ZodBoolean>;
|
|
224
227
|
fileTokenLimit: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
|
|
225
228
|
resendImages: z.ZodOptional<z.ZodBoolean>;
|
|
226
229
|
chatGptLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -231,7 +234,7 @@ export declare const tModelSpecSchema: z.ZodObject<{
|
|
|
231
234
|
defaultPreset: z.ZodOptional<z.ZodBoolean>;
|
|
232
235
|
order: z.ZodOptional<z.ZodNumber>;
|
|
233
236
|
endpoint: z.ZodNullable<z.ZodUnion<[z.ZodNativeEnum<typeof EModelEndpoint>, z.ZodString]>>;
|
|
234
|
-
}, "conversationId" | "isArchived" | "title" | "user" | "messages" | "parentMessageId" | "tags" | "file_ids" | "presetOverride" | "
|
|
237
|
+
}, "conversationId" | "isArchived" | "title" | "user" | "messages" | "parentMessageId" | "tags" | "file_ids" | "presetOverride" | "spec" | "expiredAt" | "resendImages" | "chatGptLabel" | "presetId" | "defaultPreset" | "order">, "strip", z.ZodTypeAny, {
|
|
235
238
|
endpoint: string | null;
|
|
236
239
|
endpointType?: EModelEndpoint | null | undefined;
|
|
237
240
|
tools?: string[] | {
|
|
@@ -322,6 +325,9 @@ export declare const tModelSpecSchema: z.ZodObject<{
|
|
|
322
325
|
additional_instructions?: string | undefined;
|
|
323
326
|
append_current_datetime?: boolean | undefined;
|
|
324
327
|
stop?: string[] | undefined;
|
|
328
|
+
greeting?: string | undefined;
|
|
329
|
+
iconURL?: string | null | undefined;
|
|
330
|
+
isTemporary?: boolean | undefined;
|
|
325
331
|
fileTokenLimit?: number | undefined;
|
|
326
332
|
}, {
|
|
327
333
|
endpoint: string | null;
|
|
@@ -414,6 +420,9 @@ export declare const tModelSpecSchema: z.ZodObject<{
|
|
|
414
420
|
additional_instructions?: string | undefined;
|
|
415
421
|
append_current_datetime?: boolean | undefined;
|
|
416
422
|
stop?: string[] | undefined;
|
|
423
|
+
greeting?: string | undefined;
|
|
424
|
+
iconURL?: string | null | undefined;
|
|
425
|
+
isTemporary?: boolean | undefined;
|
|
417
426
|
fileTokenLimit?: string | number | undefined;
|
|
418
427
|
}>;
|
|
419
428
|
order: z.ZodOptional<z.ZodNumber>;
|
|
@@ -425,6 +434,7 @@ export declare const tModelSpecSchema: z.ZodObject<{
|
|
|
425
434
|
showIconInHeader: z.ZodOptional<z.ZodBoolean>;
|
|
426
435
|
iconURL: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNativeEnum<typeof EModelEndpoint>]>>;
|
|
427
436
|
authType: z.ZodOptional<z.ZodNativeEnum<typeof AuthType>>;
|
|
437
|
+
hideBadgeRow: z.ZodOptional<z.ZodBoolean>;
|
|
428
438
|
webSearch: z.ZodOptional<z.ZodBoolean>;
|
|
429
439
|
fileSearch: z.ZodOptional<z.ZodBoolean>;
|
|
430
440
|
executeCode: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -524,6 +534,9 @@ export declare const tModelSpecSchema: z.ZodObject<{
|
|
|
524
534
|
additional_instructions?: string | undefined;
|
|
525
535
|
append_current_datetime?: boolean | undefined;
|
|
526
536
|
stop?: string[] | undefined;
|
|
537
|
+
greeting?: string | undefined;
|
|
538
|
+
iconURL?: string | null | undefined;
|
|
539
|
+
isTemporary?: boolean | undefined;
|
|
527
540
|
fileTokenLimit?: number | undefined;
|
|
528
541
|
};
|
|
529
542
|
description?: string | undefined;
|
|
@@ -536,6 +549,7 @@ export declare const tModelSpecSchema: z.ZodObject<{
|
|
|
536
549
|
showIconInMenu?: boolean | undefined;
|
|
537
550
|
showIconInHeader?: boolean | undefined;
|
|
538
551
|
authType?: AuthType | undefined;
|
|
552
|
+
hideBadgeRow?: boolean | undefined;
|
|
539
553
|
webSearch?: boolean | undefined;
|
|
540
554
|
fileSearch?: boolean | undefined;
|
|
541
555
|
executeCode?: boolean | undefined;
|
|
@@ -634,6 +648,9 @@ export declare const tModelSpecSchema: z.ZodObject<{
|
|
|
634
648
|
additional_instructions?: string | undefined;
|
|
635
649
|
append_current_datetime?: boolean | undefined;
|
|
636
650
|
stop?: string[] | undefined;
|
|
651
|
+
greeting?: string | undefined;
|
|
652
|
+
iconURL?: string | null | undefined;
|
|
653
|
+
isTemporary?: boolean | undefined;
|
|
637
654
|
fileTokenLimit?: string | number | undefined;
|
|
638
655
|
};
|
|
639
656
|
description?: string | undefined;
|
|
@@ -646,6 +663,7 @@ export declare const tModelSpecSchema: z.ZodObject<{
|
|
|
646
663
|
showIconInMenu?: boolean | undefined;
|
|
647
664
|
showIconInHeader?: boolean | undefined;
|
|
648
665
|
authType?: AuthType | undefined;
|
|
666
|
+
hideBadgeRow?: boolean | undefined;
|
|
649
667
|
webSearch?: boolean | undefined;
|
|
650
668
|
fileSearch?: boolean | undefined;
|
|
651
669
|
executeCode?: boolean | undefined;
|
|
@@ -654,7 +672,7 @@ export declare const tModelSpecSchema: z.ZodObject<{
|
|
|
654
672
|
export declare const specsConfigSchema: z.ZodObject<{
|
|
655
673
|
enforce: z.ZodDefault<z.ZodBoolean>;
|
|
656
674
|
prioritize: z.ZodDefault<z.ZodBoolean>;
|
|
657
|
-
list: z.ZodArray<z.ZodObject<{
|
|
675
|
+
list: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
658
676
|
name: z.ZodString;
|
|
659
677
|
label: z.ZodString;
|
|
660
678
|
preset: z.ZodObject<Omit<{
|
|
@@ -844,6 +862,7 @@ export declare const specsConfigSchema: z.ZodObject<{
|
|
|
844
862
|
spec: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
845
863
|
iconURL: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
846
864
|
expiredAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
865
|
+
isTemporary: z.ZodOptional<z.ZodBoolean>;
|
|
847
866
|
fileTokenLimit: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
|
|
848
867
|
resendImages: z.ZodOptional<z.ZodBoolean>;
|
|
849
868
|
chatGptLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -854,7 +873,7 @@ export declare const specsConfigSchema: z.ZodObject<{
|
|
|
854
873
|
defaultPreset: z.ZodOptional<z.ZodBoolean>;
|
|
855
874
|
order: z.ZodOptional<z.ZodNumber>;
|
|
856
875
|
endpoint: z.ZodNullable<z.ZodUnion<[z.ZodNativeEnum<typeof EModelEndpoint>, z.ZodString]>>;
|
|
857
|
-
}, "conversationId" | "isArchived" | "title" | "user" | "messages" | "parentMessageId" | "tags" | "file_ids" | "presetOverride" | "
|
|
876
|
+
}, "conversationId" | "isArchived" | "title" | "user" | "messages" | "parentMessageId" | "tags" | "file_ids" | "presetOverride" | "spec" | "expiredAt" | "resendImages" | "chatGptLabel" | "presetId" | "defaultPreset" | "order">, "strip", z.ZodTypeAny, {
|
|
858
877
|
endpoint: string | null;
|
|
859
878
|
endpointType?: EModelEndpoint | null | undefined;
|
|
860
879
|
tools?: string[] | {
|
|
@@ -945,6 +964,9 @@ export declare const specsConfigSchema: z.ZodObject<{
|
|
|
945
964
|
additional_instructions?: string | undefined;
|
|
946
965
|
append_current_datetime?: boolean | undefined;
|
|
947
966
|
stop?: string[] | undefined;
|
|
967
|
+
greeting?: string | undefined;
|
|
968
|
+
iconURL?: string | null | undefined;
|
|
969
|
+
isTemporary?: boolean | undefined;
|
|
948
970
|
fileTokenLimit?: number | undefined;
|
|
949
971
|
}, {
|
|
950
972
|
endpoint: string | null;
|
|
@@ -1037,6 +1059,9 @@ export declare const specsConfigSchema: z.ZodObject<{
|
|
|
1037
1059
|
additional_instructions?: string | undefined;
|
|
1038
1060
|
append_current_datetime?: boolean | undefined;
|
|
1039
1061
|
stop?: string[] | undefined;
|
|
1062
|
+
greeting?: string | undefined;
|
|
1063
|
+
iconURL?: string | null | undefined;
|
|
1064
|
+
isTemporary?: boolean | undefined;
|
|
1040
1065
|
fileTokenLimit?: string | number | undefined;
|
|
1041
1066
|
}>;
|
|
1042
1067
|
order: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1048,6 +1073,7 @@ export declare const specsConfigSchema: z.ZodObject<{
|
|
|
1048
1073
|
showIconInHeader: z.ZodOptional<z.ZodBoolean>;
|
|
1049
1074
|
iconURL: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNativeEnum<typeof EModelEndpoint>]>>;
|
|
1050
1075
|
authType: z.ZodOptional<z.ZodNativeEnum<typeof AuthType>>;
|
|
1076
|
+
hideBadgeRow: z.ZodOptional<z.ZodBoolean>;
|
|
1051
1077
|
webSearch: z.ZodOptional<z.ZodBoolean>;
|
|
1052
1078
|
fileSearch: z.ZodOptional<z.ZodBoolean>;
|
|
1053
1079
|
executeCode: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1147,6 +1173,9 @@ export declare const specsConfigSchema: z.ZodObject<{
|
|
|
1147
1173
|
additional_instructions?: string | undefined;
|
|
1148
1174
|
append_current_datetime?: boolean | undefined;
|
|
1149
1175
|
stop?: string[] | undefined;
|
|
1176
|
+
greeting?: string | undefined;
|
|
1177
|
+
iconURL?: string | null | undefined;
|
|
1178
|
+
isTemporary?: boolean | undefined;
|
|
1150
1179
|
fileTokenLimit?: number | undefined;
|
|
1151
1180
|
};
|
|
1152
1181
|
description?: string | undefined;
|
|
@@ -1159,6 +1188,7 @@ export declare const specsConfigSchema: z.ZodObject<{
|
|
|
1159
1188
|
showIconInMenu?: boolean | undefined;
|
|
1160
1189
|
showIconInHeader?: boolean | undefined;
|
|
1161
1190
|
authType?: AuthType | undefined;
|
|
1191
|
+
hideBadgeRow?: boolean | undefined;
|
|
1162
1192
|
webSearch?: boolean | undefined;
|
|
1163
1193
|
fileSearch?: boolean | undefined;
|
|
1164
1194
|
executeCode?: boolean | undefined;
|
|
@@ -1257,6 +1287,9 @@ export declare const specsConfigSchema: z.ZodObject<{
|
|
|
1257
1287
|
additional_instructions?: string | undefined;
|
|
1258
1288
|
append_current_datetime?: boolean | undefined;
|
|
1259
1289
|
stop?: string[] | undefined;
|
|
1290
|
+
greeting?: string | undefined;
|
|
1291
|
+
iconURL?: string | null | undefined;
|
|
1292
|
+
isTemporary?: boolean | undefined;
|
|
1260
1293
|
fileTokenLimit?: string | number | undefined;
|
|
1261
1294
|
};
|
|
1262
1295
|
description?: string | undefined;
|
|
@@ -1269,11 +1302,12 @@ export declare const specsConfigSchema: z.ZodObject<{
|
|
|
1269
1302
|
showIconInMenu?: boolean | undefined;
|
|
1270
1303
|
showIconInHeader?: boolean | undefined;
|
|
1271
1304
|
authType?: AuthType | undefined;
|
|
1305
|
+
hideBadgeRow?: boolean | undefined;
|
|
1272
1306
|
webSearch?: boolean | undefined;
|
|
1273
1307
|
fileSearch?: boolean | undefined;
|
|
1274
1308
|
executeCode?: boolean | undefined;
|
|
1275
1309
|
mcpServers?: string[] | undefined;
|
|
1276
|
-
}>, "many"
|
|
1310
|
+
}>, "many">>;
|
|
1277
1311
|
addedEndpoints: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNativeEnum<typeof EModelEndpoint>]>, "many">>;
|
|
1278
1312
|
}, "strip", z.ZodTypeAny, {
|
|
1279
1313
|
enforce: boolean;
|
|
@@ -1372,6 +1406,9 @@ export declare const specsConfigSchema: z.ZodObject<{
|
|
|
1372
1406
|
additional_instructions?: string | undefined;
|
|
1373
1407
|
append_current_datetime?: boolean | undefined;
|
|
1374
1408
|
stop?: string[] | undefined;
|
|
1409
|
+
greeting?: string | undefined;
|
|
1410
|
+
iconURL?: string | null | undefined;
|
|
1411
|
+
isTemporary?: boolean | undefined;
|
|
1375
1412
|
fileTokenLimit?: number | undefined;
|
|
1376
1413
|
};
|
|
1377
1414
|
description?: string | undefined;
|
|
@@ -1384,6 +1421,7 @@ export declare const specsConfigSchema: z.ZodObject<{
|
|
|
1384
1421
|
showIconInMenu?: boolean | undefined;
|
|
1385
1422
|
showIconInHeader?: boolean | undefined;
|
|
1386
1423
|
authType?: AuthType | undefined;
|
|
1424
|
+
hideBadgeRow?: boolean | undefined;
|
|
1387
1425
|
webSearch?: boolean | undefined;
|
|
1388
1426
|
fileSearch?: boolean | undefined;
|
|
1389
1427
|
executeCode?: boolean | undefined;
|
|
@@ -1391,7 +1429,9 @@ export declare const specsConfigSchema: z.ZodObject<{
|
|
|
1391
1429
|
}[];
|
|
1392
1430
|
addedEndpoints?: string[] | undefined;
|
|
1393
1431
|
}, {
|
|
1394
|
-
|
|
1432
|
+
enforce?: boolean | undefined;
|
|
1433
|
+
prioritize?: boolean | undefined;
|
|
1434
|
+
list?: {
|
|
1395
1435
|
name: string;
|
|
1396
1436
|
label: string;
|
|
1397
1437
|
preset: {
|
|
@@ -1485,6 +1525,9 @@ export declare const specsConfigSchema: z.ZodObject<{
|
|
|
1485
1525
|
additional_instructions?: string | undefined;
|
|
1486
1526
|
append_current_datetime?: boolean | undefined;
|
|
1487
1527
|
stop?: string[] | undefined;
|
|
1528
|
+
greeting?: string | undefined;
|
|
1529
|
+
iconURL?: string | null | undefined;
|
|
1530
|
+
isTemporary?: boolean | undefined;
|
|
1488
1531
|
fileTokenLimit?: string | number | undefined;
|
|
1489
1532
|
};
|
|
1490
1533
|
description?: string | undefined;
|
|
@@ -1497,13 +1540,12 @@ export declare const specsConfigSchema: z.ZodObject<{
|
|
|
1497
1540
|
showIconInMenu?: boolean | undefined;
|
|
1498
1541
|
showIconInHeader?: boolean | undefined;
|
|
1499
1542
|
authType?: AuthType | undefined;
|
|
1543
|
+
hideBadgeRow?: boolean | undefined;
|
|
1500
1544
|
webSearch?: boolean | undefined;
|
|
1501
1545
|
fileSearch?: boolean | undefined;
|
|
1502
1546
|
executeCode?: boolean | undefined;
|
|
1503
1547
|
mcpServers?: string[] | undefined;
|
|
1504
|
-
}[];
|
|
1505
|
-
enforce?: boolean | undefined;
|
|
1506
|
-
prioritize?: boolean | undefined;
|
|
1548
|
+
}[] | undefined;
|
|
1507
1549
|
addedEndpoints?: string[] | undefined;
|
|
1508
1550
|
}>;
|
|
1509
1551
|
export type TSpecsConfig = z.infer<typeof specsConfigSchema>;
|
|
@@ -67,3 +67,9 @@ export declare const presetSettings: Record<string, {
|
|
|
67
67
|
col2: SettingsConfiguration;
|
|
68
68
|
} | undefined>;
|
|
69
69
|
export declare const agentParamSettings: Record<string, SettingsConfiguration | undefined>;
|
|
70
|
+
/**
|
|
71
|
+
* Resolves model-aware defaults for a settings configuration before rendering.
|
|
72
|
+
* Google's `maxOutputTokens` default depends on the selected Gemini model so that
|
|
73
|
+
* current models (2.5 and 3+) surface their 64K output limit instead of the legacy 8K value.
|
|
74
|
+
*/
|
|
75
|
+
export declare function applyModelAwareDefaults(settings: SettingsConfiguration, endpoint: string, model?: string): SettingsConfiguration;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/types/parsers.d.ts
CHANGED
|
@@ -33,9 +33,10 @@ export declare const parseCompactConvo: ({ endpoint, endpointType, conversation,
|
|
|
33
33
|
export declare function parseTextParts(contentParts: Array<a.TMessageContentParts | undefined>, skipReasoning?: boolean): string;
|
|
34
34
|
export declare const SEPARATORS: string[];
|
|
35
35
|
export declare function findLastSeparatorIndex(text: string, separators?: string[]): number;
|
|
36
|
-
export declare function replaceSpecialVars({ text, user }: {
|
|
36
|
+
export declare function replaceSpecialVars({ text, user, now: inputNow, }: {
|
|
37
37
|
text: string;
|
|
38
38
|
user?: t.TUser | null;
|
|
39
|
+
now?: string | number | Date;
|
|
39
40
|
}): string;
|
|
40
41
|
/**
|
|
41
42
|
* Parsed ephemeral agent ID result
|
|
@@ -58,7 +58,11 @@ export declare enum PermissionTypes {
|
|
|
58
58
|
/**
|
|
59
59
|
* Type for Remote Agent (API) Permissions
|
|
60
60
|
*/
|
|
61
|
-
REMOTE_AGENTS = "REMOTE_AGENTS"
|
|
61
|
+
REMOTE_AGENTS = "REMOTE_AGENTS",
|
|
62
|
+
/**
|
|
63
|
+
* Type for Skill Permissions
|
|
64
|
+
*/
|
|
65
|
+
SKILLS = "SKILLS"
|
|
62
66
|
}
|
|
63
67
|
/**
|
|
64
68
|
* Maps PermissionTypes to their corresponding `interface` config field names.
|
|
@@ -267,6 +271,23 @@ export declare const remoteAgentsPermissionsSchema: z.ZodObject<{
|
|
|
267
271
|
SHARE_PUBLIC?: boolean | undefined;
|
|
268
272
|
}>;
|
|
269
273
|
export type TRemoteAgentsPermissions = z.infer<typeof remoteAgentsPermissionsSchema>;
|
|
274
|
+
export declare const skillPermissionsSchema: z.ZodObject<{
|
|
275
|
+
USE: z.ZodDefault<z.ZodBoolean>;
|
|
276
|
+
CREATE: z.ZodDefault<z.ZodBoolean>;
|
|
277
|
+
SHARE: z.ZodDefault<z.ZodBoolean>;
|
|
278
|
+
SHARE_PUBLIC: z.ZodDefault<z.ZodBoolean>;
|
|
279
|
+
}, "strip", z.ZodTypeAny, {
|
|
280
|
+
USE: boolean;
|
|
281
|
+
CREATE: boolean;
|
|
282
|
+
SHARE: boolean;
|
|
283
|
+
SHARE_PUBLIC: boolean;
|
|
284
|
+
}, {
|
|
285
|
+
USE?: boolean | undefined;
|
|
286
|
+
CREATE?: boolean | undefined;
|
|
287
|
+
SHARE?: boolean | undefined;
|
|
288
|
+
SHARE_PUBLIC?: boolean | undefined;
|
|
289
|
+
}>;
|
|
290
|
+
export type TSkillPermissions = z.infer<typeof skillPermissionsSchema>;
|
|
270
291
|
export declare const permissionsSchema: z.ZodObject<{
|
|
271
292
|
PROMPTS: z.ZodObject<{
|
|
272
293
|
USE: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -420,6 +441,22 @@ export declare const permissionsSchema: z.ZodObject<{
|
|
|
420
441
|
SHARE?: boolean | undefined;
|
|
421
442
|
SHARE_PUBLIC?: boolean | undefined;
|
|
422
443
|
}>;
|
|
444
|
+
SKILLS: z.ZodObject<{
|
|
445
|
+
USE: z.ZodDefault<z.ZodBoolean>;
|
|
446
|
+
CREATE: z.ZodDefault<z.ZodBoolean>;
|
|
447
|
+
SHARE: z.ZodDefault<z.ZodBoolean>;
|
|
448
|
+
SHARE_PUBLIC: z.ZodDefault<z.ZodBoolean>;
|
|
449
|
+
}, "strip", z.ZodTypeAny, {
|
|
450
|
+
USE: boolean;
|
|
451
|
+
CREATE: boolean;
|
|
452
|
+
SHARE: boolean;
|
|
453
|
+
SHARE_PUBLIC: boolean;
|
|
454
|
+
}, {
|
|
455
|
+
USE?: boolean | undefined;
|
|
456
|
+
CREATE?: boolean | undefined;
|
|
457
|
+
SHARE?: boolean | undefined;
|
|
458
|
+
SHARE_PUBLIC?: boolean | undefined;
|
|
459
|
+
}>;
|
|
423
460
|
}, "strip", z.ZodTypeAny, {
|
|
424
461
|
PROMPTS: {
|
|
425
462
|
USE: boolean;
|
|
@@ -481,6 +518,12 @@ export declare const permissionsSchema: z.ZodObject<{
|
|
|
481
518
|
SHARE: boolean;
|
|
482
519
|
SHARE_PUBLIC: boolean;
|
|
483
520
|
};
|
|
521
|
+
SKILLS: {
|
|
522
|
+
USE: boolean;
|
|
523
|
+
CREATE: boolean;
|
|
524
|
+
SHARE: boolean;
|
|
525
|
+
SHARE_PUBLIC: boolean;
|
|
526
|
+
};
|
|
484
527
|
}, {
|
|
485
528
|
PROMPTS: {
|
|
486
529
|
USE?: boolean | undefined;
|
|
@@ -542,4 +585,10 @@ export declare const permissionsSchema: z.ZodObject<{
|
|
|
542
585
|
SHARE?: boolean | undefined;
|
|
543
586
|
SHARE_PUBLIC?: boolean | undefined;
|
|
544
587
|
};
|
|
588
|
+
SKILLS: {
|
|
589
|
+
USE?: boolean | undefined;
|
|
590
|
+
CREATE?: boolean | undefined;
|
|
591
|
+
SHARE?: boolean | undefined;
|
|
592
|
+
SHARE_PUBLIC?: boolean | undefined;
|
|
593
|
+
};
|
|
545
594
|
}>;
|
package/dist/types/roles.d.ts
CHANGED
|
@@ -167,6 +167,22 @@ export declare const roleSchema: z.ZodObject<{
|
|
|
167
167
|
SHARE?: boolean | undefined;
|
|
168
168
|
SHARE_PUBLIC?: boolean | undefined;
|
|
169
169
|
}>;
|
|
170
|
+
SKILLS: z.ZodObject<{
|
|
171
|
+
USE: z.ZodDefault<z.ZodBoolean>;
|
|
172
|
+
CREATE: z.ZodDefault<z.ZodBoolean>;
|
|
173
|
+
SHARE: z.ZodDefault<z.ZodBoolean>;
|
|
174
|
+
SHARE_PUBLIC: z.ZodDefault<z.ZodBoolean>;
|
|
175
|
+
}, "strip", z.ZodTypeAny, {
|
|
176
|
+
USE: boolean;
|
|
177
|
+
CREATE: boolean;
|
|
178
|
+
SHARE: boolean;
|
|
179
|
+
SHARE_PUBLIC: boolean;
|
|
180
|
+
}, {
|
|
181
|
+
USE?: boolean | undefined;
|
|
182
|
+
CREATE?: boolean | undefined;
|
|
183
|
+
SHARE?: boolean | undefined;
|
|
184
|
+
SHARE_PUBLIC?: boolean | undefined;
|
|
185
|
+
}>;
|
|
170
186
|
}, "strip", z.ZodTypeAny, {
|
|
171
187
|
PROMPTS: {
|
|
172
188
|
USE: boolean;
|
|
@@ -228,6 +244,12 @@ export declare const roleSchema: z.ZodObject<{
|
|
|
228
244
|
SHARE: boolean;
|
|
229
245
|
SHARE_PUBLIC: boolean;
|
|
230
246
|
};
|
|
247
|
+
SKILLS: {
|
|
248
|
+
USE: boolean;
|
|
249
|
+
CREATE: boolean;
|
|
250
|
+
SHARE: boolean;
|
|
251
|
+
SHARE_PUBLIC: boolean;
|
|
252
|
+
};
|
|
231
253
|
}, {
|
|
232
254
|
PROMPTS: {
|
|
233
255
|
USE?: boolean | undefined;
|
|
@@ -289,6 +311,12 @@ export declare const roleSchema: z.ZodObject<{
|
|
|
289
311
|
SHARE?: boolean | undefined;
|
|
290
312
|
SHARE_PUBLIC?: boolean | undefined;
|
|
291
313
|
};
|
|
314
|
+
SKILLS: {
|
|
315
|
+
USE?: boolean | undefined;
|
|
316
|
+
CREATE?: boolean | undefined;
|
|
317
|
+
SHARE?: boolean | undefined;
|
|
318
|
+
SHARE_PUBLIC?: boolean | undefined;
|
|
319
|
+
};
|
|
292
320
|
}>;
|
|
293
321
|
}, "strip", z.ZodTypeAny, {
|
|
294
322
|
name: string;
|
|
@@ -353,6 +381,12 @@ export declare const roleSchema: z.ZodObject<{
|
|
|
353
381
|
SHARE: boolean;
|
|
354
382
|
SHARE_PUBLIC: boolean;
|
|
355
383
|
};
|
|
384
|
+
SKILLS: {
|
|
385
|
+
USE: boolean;
|
|
386
|
+
CREATE: boolean;
|
|
387
|
+
SHARE: boolean;
|
|
388
|
+
SHARE_PUBLIC: boolean;
|
|
389
|
+
};
|
|
356
390
|
};
|
|
357
391
|
}, {
|
|
358
392
|
name: string;
|
|
@@ -417,6 +451,12 @@ export declare const roleSchema: z.ZodObject<{
|
|
|
417
451
|
SHARE?: boolean | undefined;
|
|
418
452
|
SHARE_PUBLIC?: boolean | undefined;
|
|
419
453
|
};
|
|
454
|
+
SKILLS: {
|
|
455
|
+
USE?: boolean | undefined;
|
|
456
|
+
CREATE?: boolean | undefined;
|
|
457
|
+
SHARE?: boolean | undefined;
|
|
458
|
+
SHARE_PUBLIC?: boolean | undefined;
|
|
459
|
+
};
|
|
420
460
|
};
|
|
421
461
|
}>;
|
|
422
462
|
export type TRole = z.infer<typeof roleSchema>;
|
|
@@ -486,6 +526,12 @@ export declare const roleDefaults: {
|
|
|
486
526
|
SHARE: boolean;
|
|
487
527
|
SHARE_PUBLIC: boolean;
|
|
488
528
|
};
|
|
529
|
+
SKILLS: {
|
|
530
|
+
USE: boolean;
|
|
531
|
+
CREATE: boolean;
|
|
532
|
+
SHARE: boolean;
|
|
533
|
+
SHARE_PUBLIC: boolean;
|
|
534
|
+
};
|
|
489
535
|
};
|
|
490
536
|
};
|
|
491
537
|
USER: {
|
|
@@ -551,6 +597,12 @@ export declare const roleDefaults: {
|
|
|
551
597
|
SHARE: boolean;
|
|
552
598
|
SHARE_PUBLIC: boolean;
|
|
553
599
|
};
|
|
600
|
+
SKILLS: {
|
|
601
|
+
USE: boolean;
|
|
602
|
+
CREATE: boolean;
|
|
603
|
+
SHARE: boolean;
|
|
604
|
+
SHARE_PUBLIC: boolean;
|
|
605
|
+
};
|
|
554
606
|
};
|
|
555
607
|
};
|
|
556
608
|
};
|