gentiq 0.7.28 → 0.7.30
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/README.md +6 -1
- package/dist/{checkbox-DIJ7BlxY.js → checkbox-DllHCh8Z.js} +540 -506
- package/dist/gentiq-admin.es.js +880 -832
- package/dist/gentiq-index.es.js +762 -746
- package/dist/gentiq.css +1 -1
- package/dist/src/lib/errors.d.ts +2 -1
- package/dist/src/locales/en.json.d.ts +11 -1
- package/dist/src/locales/fa.json.d.ts +11 -1
- package/dist/src/types.d.ts +9 -0
- package/package.json +1 -1
package/dist/src/lib/errors.d.ts
CHANGED
|
@@ -20,6 +20,7 @@ export declare const GentiqErrorCode: {
|
|
|
20
20
|
readonly THREAD_DELETE_FAILED: "thread_delete_failed";
|
|
21
21
|
readonly ATTACHMENT_NOT_FOUND: "attachment_not_found";
|
|
22
22
|
readonly THREAD_SHARE_FAILED: "thread_share_failed";
|
|
23
|
+
readonly MODEL_QUOTA_REACHED_ERROR: "model_quota_reached_error";
|
|
23
24
|
readonly ADMIN_ALREADY_EXISTS: "admin_already_exists";
|
|
24
25
|
readonly ADMIN_NOT_FOUND: "admin_not_found";
|
|
25
26
|
readonly CANNOT_DELETE_SELF: "cannot_delete_self";
|
|
@@ -49,4 +50,4 @@ export declare function isGentiqError(error: any): error is GentiqError;
|
|
|
49
50
|
/**
|
|
50
51
|
* Returns a localized error message for a given error or code.
|
|
51
52
|
*/
|
|
52
|
-
export declare function getLocalizedErrorMessage(error:
|
|
53
|
+
export declare function getLocalizedErrorMessage(error: Error | GentiqErrorCode | string, t: (key: string, options?: any) => string): string;
|
|
@@ -77,6 +77,8 @@ declare const _default: {
|
|
|
77
77
|
"loading": "Loading...",
|
|
78
78
|
"logging_in": "Logging in...",
|
|
79
79
|
"signing_up": "Signing up...",
|
|
80
|
+
"auth_page_disabled_title": "The sign-in page is currently disabled.",
|
|
81
|
+
"auth_page_disabled_description": "Please contact the administrator for access.",
|
|
80
82
|
"select_placeholder": "Select an option",
|
|
81
83
|
"login_button": "Login",
|
|
82
84
|
"signup_button": "Sign Up"
|
|
@@ -135,6 +137,12 @@ declare const _default: {
|
|
|
135
137
|
"show_tool_details_help": "Enable this to show professional technical details of AI tools to users.",
|
|
136
138
|
"show_settings": "Show settings icon for users",
|
|
137
139
|
"show_settings_help": "Show a settings gear icon in the chat interface for user customization.",
|
|
140
|
+
"show_version_in_settings": "Show app version in user settings",
|
|
141
|
+
"show_version_in_settings_help": "Show the app version at the bottom of the user settings dialog. This does not affect the admin settings page.",
|
|
142
|
+
"disable_signup": "Disable signup",
|
|
143
|
+
"disable_signup_help": "Hide the signup tab so users can only log in.",
|
|
144
|
+
"disable_auth_page": "Disable login/signup page",
|
|
145
|
+
"disable_auth_page_help": "Hide the entire auth page and prevent users from reaching login or signup forms.",
|
|
138
146
|
"composer_attachments": "Enable File Attachments",
|
|
139
147
|
"composer_attachments_help": "Allow users to upload and attach files to their messages.",
|
|
140
148
|
"thread_actions_feedback": "Enable Feedback Buttons",
|
|
@@ -379,6 +387,7 @@ declare const _default: {
|
|
|
379
387
|
"thread_delete_failed": "Failed to delete conversation.",
|
|
380
388
|
"attachment_not_found": "Attachment not found.",
|
|
381
389
|
"thread_share_failed": "Failed to share conversation.",
|
|
390
|
+
"model_quota_reached_error": "The system cannot respond at this time. Please try again later.",
|
|
382
391
|
"admin_already_exists": "Admin with this username already exists.",
|
|
383
392
|
"admin_not_found": "Admin not found.",
|
|
384
393
|
"cannot_delete_self": "You cannot delete your own admin account.",
|
|
@@ -387,6 +396,7 @@ declare const _default: {
|
|
|
387
396
|
"validation_error": "Invalid data provided. Please check your input.",
|
|
388
397
|
"not_found": "The requested resource was not found."
|
|
389
398
|
}
|
|
390
|
-
}
|
|
399
|
+
}
|
|
400
|
+
;
|
|
391
401
|
|
|
392
402
|
export default _default;
|
|
@@ -76,6 +76,8 @@ declare const _default: {
|
|
|
76
76
|
"surname_placeholder": "نام خانوادگی",
|
|
77
77
|
"logging_in": "در حال ورود...",
|
|
78
78
|
"signing_up": "در حال ثبت نام...",
|
|
79
|
+
"auth_page_disabled_title": "صفحه ورود غیرفعال شده است.",
|
|
80
|
+
"auth_page_disabled_description": "برای دسترسی با مدیر سامانه تماس بگیرید.",
|
|
79
81
|
"select_placeholder": "انتخاب کنید",
|
|
80
82
|
"login_button": "ورود",
|
|
81
83
|
"signup_button": "ثبت نام"
|
|
@@ -134,6 +136,12 @@ declare const _default: {
|
|
|
134
136
|
"show_tool_details_help": "برای نمایش جزئیات فنی و نحوه عملکرد ابزارهای هوش مصنوعی به کاربران، این گزینه را فعال کنید.",
|
|
135
137
|
"show_settings": "نمایش آیکون تنظیمات برای کاربران",
|
|
136
138
|
"show_settings_help": "نمایش چرخدنده تنظیمات در محیط چت برای شخصیسازی توسط کاربر.",
|
|
139
|
+
"show_version_in_settings": "نمایش نسخه برنامه در تنظیمات کاربر",
|
|
140
|
+
"show_version_in_settings_help": "نسخه برنامه را در پایین پنجره تنظیمات کاربر نمایش میدهد. این گزینه روی صفحه تنظیمات ادمین اثری ندارد.",
|
|
141
|
+
"disable_signup": "غیرفعالسازی ثبتنام",
|
|
142
|
+
"disable_signup_help": "تب ثبتنام را مخفی میکند تا کاربران فقط بتوانند وارد شوند.",
|
|
143
|
+
"disable_auth_page": "غیرفعالسازی صفحه ورود/ثبتنام",
|
|
144
|
+
"disable_auth_page_help": "کل صفحه احراز هویت را مخفی میکند و دسترسی به فرمهای ورود و ثبتنام را میبندد.",
|
|
137
145
|
"composer_attachments": "فعالسازی پیوست فایل",
|
|
138
146
|
"composer_attachments_help": "اجازه به کاربران برای آپلود و پیوست فایل به پیامها.",
|
|
139
147
|
"thread_actions_feedback": "فعالسازی دکمههای بازخورد",
|
|
@@ -378,6 +386,7 @@ declare const _default: {
|
|
|
378
386
|
"thread_delete_failed": "خطا در حذف گفتگو.",
|
|
379
387
|
"attachment_not_found": "فایل پیوست یافت نشد.",
|
|
380
388
|
"thread_share_failed": "خطا در اشتراکگذاری گفتگو.",
|
|
389
|
+
"model_quota_reached_error": "سامانه در حال حاضر قادر به پاسخگویی نیست. لطفاً بعداً دوباره تلاش کنید.",
|
|
381
390
|
"admin_already_exists": "ادمین با این نام کاربری قبلاً ایجاد شده است.",
|
|
382
391
|
"admin_not_found": "ادمین یافت نشد.",
|
|
383
392
|
"cannot_delete_self": "شما نمیتوانید حساب مدیریت خود را حذف کنید.",
|
|
@@ -386,6 +395,7 @@ declare const _default: {
|
|
|
386
395
|
"validation_error": "دادههای ارسالی معتبر نیستند. لطفاً ورودیهای خود را بررسی کنید.",
|
|
387
396
|
"not_found": "منبع مورد نظر یافت نشد."
|
|
388
397
|
}
|
|
389
|
-
}
|
|
398
|
+
}
|
|
399
|
+
;
|
|
390
400
|
|
|
391
401
|
export default _default;
|
package/dist/src/types.d.ts
CHANGED
|
@@ -230,6 +230,7 @@ export interface GeneralSettingsFields {
|
|
|
230
230
|
accent?: SettingsFieldMode;
|
|
231
231
|
radius?: SettingsFieldMode;
|
|
232
232
|
language?: SettingsFieldMode;
|
|
233
|
+
version?: SettingsFieldMode;
|
|
233
234
|
[key: string]: SettingsFieldMode | undefined;
|
|
234
235
|
}
|
|
235
236
|
/** Fields available in the Profile section. */
|
|
@@ -309,6 +310,10 @@ export interface AppConfig {
|
|
|
309
310
|
favicon?: string;
|
|
310
311
|
/** Default language for the application. */
|
|
311
312
|
language?: string;
|
|
313
|
+
/** Developer-defined application version shown in Gentiq surfaces. */
|
|
314
|
+
version?: string;
|
|
315
|
+
/** Whether to show the app version in the user settings dialog. */
|
|
316
|
+
showVersionInSettings?: boolean;
|
|
312
317
|
/** Whether to show technical details for tool calls. */
|
|
313
318
|
showToolDetails?: boolean;
|
|
314
319
|
/** Base path for the application routing. */
|
|
@@ -319,6 +324,10 @@ export interface AppConfig {
|
|
|
319
324
|
userMetadataFields?: UserMetadataField[];
|
|
320
325
|
/** Whether to show the settings icon in the UI. */
|
|
321
326
|
showSettings?: boolean;
|
|
327
|
+
/** Whether to hide the signup tab and keep login only. */
|
|
328
|
+
disableSignup?: boolean;
|
|
329
|
+
/** Whether to disable the entire login/signup page. */
|
|
330
|
+
disableAuthPage?: boolean;
|
|
322
331
|
/** Display mode for the General settings tab. */
|
|
323
332
|
settingsGeneralMode?: SettingsFieldMode;
|
|
324
333
|
/** Display mode for the Profile settings tab. */
|