mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-12-03 14:34:40 +00:00
feat(dashboard): add agent sessions view for team owners
This commit is contained in:
+10
@@ -832,4 +832,14 @@ export * from "./members_view.js";
|
||||
export * from "./access_denied.js";
|
||||
export * from "./only_owner_dashboard.js";
|
||||
export * from "./role.js";
|
||||
export * from "./sessions.js";
|
||||
export * from "./sessions_description.js";
|
||||
export * from "./session_name.js";
|
||||
export * from "./create_time.js";
|
||||
export * from "./session_type.js";
|
||||
export * from "./no_sessions_found.js";
|
||||
export * from "./session_type_comment.js";
|
||||
export * from "./session_type_chat.js";
|
||||
export * from "./session_type_naming.js";
|
||||
export * from "./untitled_session.js";
|
||||
export type LocalizedString = import("../runtime.js").LocalizedString;
|
||||
|
||||
+11
-1
@@ -833,4 +833,14 @@ export * from './team_view.js'
|
||||
export * from './members_view.js'
|
||||
export * from './access_denied.js'
|
||||
export * from './only_owner_dashboard.js'
|
||||
export * from './role.js'
|
||||
export * from './role.js'
|
||||
export * from './sessions.js'
|
||||
export * from './sessions_description.js'
|
||||
export * from './session_name.js'
|
||||
export * from './create_time.js'
|
||||
export * from './session_type.js'
|
||||
export * from './no_sessions_found.js'
|
||||
export * from './session_type_comment.js'
|
||||
export * from './session_type_chat.js'
|
||||
export * from './session_type_naming.js'
|
||||
export * from './untitled_session.js'
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
/**
|
||||
* | output |
|
||||
* | --- |
|
||||
* | "Create Time" |
|
||||
*
|
||||
* @param {Create_TimeInputs} inputs
|
||||
* @param {{ locale?: "en" | "zh" }} options
|
||||
* @returns {LocalizedString}
|
||||
*/
|
||||
export const create_time: ((inputs?: Create_TimeInputs, options?: {
|
||||
locale?: "en" | "zh";
|
||||
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Create_TimeInputs, {
|
||||
locale?: "en" | "zh";
|
||||
}, {}>;
|
||||
export type LocalizedString = import("../runtime.js").LocalizedString;
|
||||
export type Create_TimeInputs = {};
|
||||
+29
@@ -0,0 +1,29 @@
|
||||
/* eslint-disable */
|
||||
import { getLocale, experimentalStaticLocale } from '../runtime.js';
|
||||
|
||||
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
|
||||
|
||||
/** @typedef {{}} Create_TimeInputs */
|
||||
|
||||
const en_create_time = /** @type {(inputs: Create_TimeInputs) => LocalizedString} */ () => {
|
||||
return /** @type {LocalizedString} */ (`Create Time`)
|
||||
};
|
||||
|
||||
const zh_create_time = /** @type {(inputs: Create_TimeInputs) => LocalizedString} */ () => {
|
||||
return /** @type {LocalizedString} */ (`创建时间`)
|
||||
};
|
||||
|
||||
/**
|
||||
* | output |
|
||||
* | --- |
|
||||
* | "Create Time" |
|
||||
*
|
||||
* @param {Create_TimeInputs} inputs
|
||||
* @param {{ locale?: "en" | "zh" }} options
|
||||
* @returns {LocalizedString}
|
||||
*/
|
||||
export const create_time = /** @type {((inputs?: Create_TimeInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Create_TimeInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
|
||||
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
|
||||
if (locale === "en") return en_create_time(inputs)
|
||||
return zh_create_time(inputs)
|
||||
});
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
/**
|
||||
* | output |
|
||||
* | --- |
|
||||
* | "No sessions found" |
|
||||
*
|
||||
* @param {No_Sessions_FoundInputs} inputs
|
||||
* @param {{ locale?: "en" | "zh" }} options
|
||||
* @returns {LocalizedString}
|
||||
*/
|
||||
export const no_sessions_found: ((inputs?: No_Sessions_FoundInputs, options?: {
|
||||
locale?: "en" | "zh";
|
||||
}) => LocalizedString) & import("../runtime.js").MessageMetadata<No_Sessions_FoundInputs, {
|
||||
locale?: "en" | "zh";
|
||||
}, {}>;
|
||||
export type LocalizedString = import("../runtime.js").LocalizedString;
|
||||
export type No_Sessions_FoundInputs = {};
|
||||
@@ -0,0 +1,29 @@
|
||||
/* eslint-disable */
|
||||
import { getLocale, experimentalStaticLocale } from '../runtime.js';
|
||||
|
||||
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
|
||||
|
||||
/** @typedef {{}} No_Sessions_FoundInputs */
|
||||
|
||||
const en_no_sessions_found = /** @type {(inputs: No_Sessions_FoundInputs) => LocalizedString} */ () => {
|
||||
return /** @type {LocalizedString} */ (`No sessions found`)
|
||||
};
|
||||
|
||||
const zh_no_sessions_found = /** @type {(inputs: No_Sessions_FoundInputs) => LocalizedString} */ () => {
|
||||
return /** @type {LocalizedString} */ (`未找到会话`)
|
||||
};
|
||||
|
||||
/**
|
||||
* | output |
|
||||
* | --- |
|
||||
* | "No sessions found" |
|
||||
*
|
||||
* @param {No_Sessions_FoundInputs} inputs
|
||||
* @param {{ locale?: "en" | "zh" }} options
|
||||
* @returns {LocalizedString}
|
||||
*/
|
||||
export const no_sessions_found = /** @type {((inputs?: No_Sessions_FoundInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<No_Sessions_FoundInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
|
||||
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
|
||||
if (locale === "en") return en_no_sessions_found(inputs)
|
||||
return zh_no_sessions_found(inputs)
|
||||
});
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
/**
|
||||
* | output |
|
||||
* | --- |
|
||||
* | "Session Name" |
|
||||
*
|
||||
* @param {Session_NameInputs} inputs
|
||||
* @param {{ locale?: "en" | "zh" }} options
|
||||
* @returns {LocalizedString}
|
||||
*/
|
||||
export const session_name: ((inputs?: Session_NameInputs, options?: {
|
||||
locale?: "en" | "zh";
|
||||
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Session_NameInputs, {
|
||||
locale?: "en" | "zh";
|
||||
}, {}>;
|
||||
export type LocalizedString = import("../runtime.js").LocalizedString;
|
||||
export type Session_NameInputs = {};
|
||||
+29
@@ -0,0 +1,29 @@
|
||||
/* eslint-disable */
|
||||
import { getLocale, experimentalStaticLocale } from '../runtime.js';
|
||||
|
||||
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
|
||||
|
||||
/** @typedef {{}} Session_NameInputs */
|
||||
|
||||
const en_session_name = /** @type {(inputs: Session_NameInputs) => LocalizedString} */ () => {
|
||||
return /** @type {LocalizedString} */ (`Session Name`)
|
||||
};
|
||||
|
||||
const zh_session_name = /** @type {(inputs: Session_NameInputs) => LocalizedString} */ () => {
|
||||
return /** @type {LocalizedString} */ (`会话名称`)
|
||||
};
|
||||
|
||||
/**
|
||||
* | output |
|
||||
* | --- |
|
||||
* | "Session Name" |
|
||||
*
|
||||
* @param {Session_NameInputs} inputs
|
||||
* @param {{ locale?: "en" | "zh" }} options
|
||||
* @returns {LocalizedString}
|
||||
*/
|
||||
export const session_name = /** @type {((inputs?: Session_NameInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Session_NameInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
|
||||
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
|
||||
if (locale === "en") return en_session_name(inputs)
|
||||
return zh_session_name(inputs)
|
||||
});
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
/**
|
||||
* | output |
|
||||
* | --- |
|
||||
* | "Session Type" |
|
||||
*
|
||||
* @param {Session_TypeInputs} inputs
|
||||
* @param {{ locale?: "en" | "zh" }} options
|
||||
* @returns {LocalizedString}
|
||||
*/
|
||||
export const session_type: ((inputs?: Session_TypeInputs, options?: {
|
||||
locale?: "en" | "zh";
|
||||
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Session_TypeInputs, {
|
||||
locale?: "en" | "zh";
|
||||
}, {}>;
|
||||
export type LocalizedString = import("../runtime.js").LocalizedString;
|
||||
export type Session_TypeInputs = {};
|
||||
+29
@@ -0,0 +1,29 @@
|
||||
/* eslint-disable */
|
||||
import { getLocale, experimentalStaticLocale } from '../runtime.js';
|
||||
|
||||
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
|
||||
|
||||
/** @typedef {{}} Session_TypeInputs */
|
||||
|
||||
const en_session_type = /** @type {(inputs: Session_TypeInputs) => LocalizedString} */ () => {
|
||||
return /** @type {LocalizedString} */ (`Session Type`)
|
||||
};
|
||||
|
||||
const zh_session_type = /** @type {(inputs: Session_TypeInputs) => LocalizedString} */ () => {
|
||||
return /** @type {LocalizedString} */ (`会话类型`)
|
||||
};
|
||||
|
||||
/**
|
||||
* | output |
|
||||
* | --- |
|
||||
* | "Session Type" |
|
||||
*
|
||||
* @param {Session_TypeInputs} inputs
|
||||
* @param {{ locale?: "en" | "zh" }} options
|
||||
* @returns {LocalizedString}
|
||||
*/
|
||||
export const session_type = /** @type {((inputs?: Session_TypeInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Session_TypeInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
|
||||
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
|
||||
if (locale === "en") return en_session_type(inputs)
|
||||
return zh_session_type(inputs)
|
||||
});
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
/**
|
||||
* | output |
|
||||
* | --- |
|
||||
* | "Chat" |
|
||||
*
|
||||
* @param {Session_Type_ChatInputs} inputs
|
||||
* @param {{ locale?: "en" | "zh" }} options
|
||||
* @returns {LocalizedString}
|
||||
*/
|
||||
export const session_type_chat: ((inputs?: Session_Type_ChatInputs, options?: {
|
||||
locale?: "en" | "zh";
|
||||
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Session_Type_ChatInputs, {
|
||||
locale?: "en" | "zh";
|
||||
}, {}>;
|
||||
export type LocalizedString = import("../runtime.js").LocalizedString;
|
||||
export type Session_Type_ChatInputs = {};
|
||||
@@ -0,0 +1,29 @@
|
||||
/* eslint-disable */
|
||||
import { getLocale, experimentalStaticLocale } from '../runtime.js';
|
||||
|
||||
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
|
||||
|
||||
/** @typedef {{}} Session_Type_ChatInputs */
|
||||
|
||||
const en_session_type_chat = /** @type {(inputs: Session_Type_ChatInputs) => LocalizedString} */ () => {
|
||||
return /** @type {LocalizedString} */ (`Chat`)
|
||||
};
|
||||
|
||||
const zh_session_type_chat = /** @type {(inputs: Session_Type_ChatInputs) => LocalizedString} */ () => {
|
||||
return /** @type {LocalizedString} */ (`对话`)
|
||||
};
|
||||
|
||||
/**
|
||||
* | output |
|
||||
* | --- |
|
||||
* | "Chat" |
|
||||
*
|
||||
* @param {Session_Type_ChatInputs} inputs
|
||||
* @param {{ locale?: "en" | "zh" }} options
|
||||
* @returns {LocalizedString}
|
||||
*/
|
||||
export const session_type_chat = /** @type {((inputs?: Session_Type_ChatInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Session_Type_ChatInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
|
||||
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
|
||||
if (locale === "en") return en_session_type_chat(inputs)
|
||||
return zh_session_type_chat(inputs)
|
||||
});
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
/**
|
||||
* | output |
|
||||
* | --- |
|
||||
* | "Comment" |
|
||||
*
|
||||
* @param {Session_Type_CommentInputs} inputs
|
||||
* @param {{ locale?: "en" | "zh" }} options
|
||||
* @returns {LocalizedString}
|
||||
*/
|
||||
export const session_type_comment: ((inputs?: Session_Type_CommentInputs, options?: {
|
||||
locale?: "en" | "zh";
|
||||
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Session_Type_CommentInputs, {
|
||||
locale?: "en" | "zh";
|
||||
}, {}>;
|
||||
export type LocalizedString = import("../runtime.js").LocalizedString;
|
||||
export type Session_Type_CommentInputs = {};
|
||||
@@ -0,0 +1,29 @@
|
||||
/* eslint-disable */
|
||||
import { getLocale, experimentalStaticLocale } from '../runtime.js';
|
||||
|
||||
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
|
||||
|
||||
/** @typedef {{}} Session_Type_CommentInputs */
|
||||
|
||||
const en_session_type_comment = /** @type {(inputs: Session_Type_CommentInputs) => LocalizedString} */ () => {
|
||||
return /** @type {LocalizedString} */ (`Comment`)
|
||||
};
|
||||
|
||||
const zh_session_type_comment = /** @type {(inputs: Session_Type_CommentInputs) => LocalizedString} */ () => {
|
||||
return /** @type {LocalizedString} */ (`评论`)
|
||||
};
|
||||
|
||||
/**
|
||||
* | output |
|
||||
* | --- |
|
||||
* | "Comment" |
|
||||
*
|
||||
* @param {Session_Type_CommentInputs} inputs
|
||||
* @param {{ locale?: "en" | "zh" }} options
|
||||
* @returns {LocalizedString}
|
||||
*/
|
||||
export const session_type_comment = /** @type {((inputs?: Session_Type_CommentInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Session_Type_CommentInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
|
||||
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
|
||||
if (locale === "en") return en_session_type_comment(inputs)
|
||||
return zh_session_type_comment(inputs)
|
||||
});
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
/**
|
||||
* | output |
|
||||
* | --- |
|
||||
* | "Naming" |
|
||||
*
|
||||
* @param {Session_Type_NamingInputs} inputs
|
||||
* @param {{ locale?: "en" | "zh" }} options
|
||||
* @returns {LocalizedString}
|
||||
*/
|
||||
export const session_type_naming: ((inputs?: Session_Type_NamingInputs, options?: {
|
||||
locale?: "en" | "zh";
|
||||
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Session_Type_NamingInputs, {
|
||||
locale?: "en" | "zh";
|
||||
}, {}>;
|
||||
export type LocalizedString = import("../runtime.js").LocalizedString;
|
||||
export type Session_Type_NamingInputs = {};
|
||||
@@ -0,0 +1,29 @@
|
||||
/* eslint-disable */
|
||||
import { getLocale, experimentalStaticLocale } from '../runtime.js';
|
||||
|
||||
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
|
||||
|
||||
/** @typedef {{}} Session_Type_NamingInputs */
|
||||
|
||||
const en_session_type_naming = /** @type {(inputs: Session_Type_NamingInputs) => LocalizedString} */ () => {
|
||||
return /** @type {LocalizedString} */ (`Naming`)
|
||||
};
|
||||
|
||||
const zh_session_type_naming = /** @type {(inputs: Session_Type_NamingInputs) => LocalizedString} */ () => {
|
||||
return /** @type {LocalizedString} */ (`命名`)
|
||||
};
|
||||
|
||||
/**
|
||||
* | output |
|
||||
* | --- |
|
||||
* | "Naming" |
|
||||
*
|
||||
* @param {Session_Type_NamingInputs} inputs
|
||||
* @param {{ locale?: "en" | "zh" }} options
|
||||
* @returns {LocalizedString}
|
||||
*/
|
||||
export const session_type_naming = /** @type {((inputs?: Session_Type_NamingInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Session_Type_NamingInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
|
||||
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
|
||||
if (locale === "en") return en_session_type_naming(inputs)
|
||||
return zh_session_type_naming(inputs)
|
||||
});
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
/**
|
||||
* | output |
|
||||
* | --- |
|
||||
* | "Sessions" |
|
||||
*
|
||||
* @param {SessionsInputs} inputs
|
||||
* @param {{ locale?: "en" | "zh" }} options
|
||||
* @returns {LocalizedString}
|
||||
*/
|
||||
export const sessions: ((inputs?: SessionsInputs, options?: {
|
||||
locale?: "en" | "zh";
|
||||
}) => LocalizedString) & import("../runtime.js").MessageMetadata<SessionsInputs, {
|
||||
locale?: "en" | "zh";
|
||||
}, {}>;
|
||||
export type LocalizedString = import("../runtime.js").LocalizedString;
|
||||
export type SessionsInputs = {};
|
||||
+29
@@ -0,0 +1,29 @@
|
||||
/* eslint-disable */
|
||||
import { getLocale, experimentalStaticLocale } from '../runtime.js';
|
||||
|
||||
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
|
||||
|
||||
/** @typedef {{}} SessionsInputs */
|
||||
|
||||
const en_sessions = /** @type {(inputs: SessionsInputs) => LocalizedString} */ () => {
|
||||
return /** @type {LocalizedString} */ (`Sessions`)
|
||||
};
|
||||
|
||||
const zh_sessions = /** @type {(inputs: SessionsInputs) => LocalizedString} */ () => {
|
||||
return /** @type {LocalizedString} */ (`会话列表`)
|
||||
};
|
||||
|
||||
/**
|
||||
* | output |
|
||||
* | --- |
|
||||
* | "Sessions" |
|
||||
*
|
||||
* @param {SessionsInputs} inputs
|
||||
* @param {{ locale?: "en" | "zh" }} options
|
||||
* @returns {LocalizedString}
|
||||
*/
|
||||
export const sessions = /** @type {((inputs?: SessionsInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<SessionsInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
|
||||
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
|
||||
if (locale === "en") return en_sessions(inputs)
|
||||
return zh_sessions(inputs)
|
||||
});
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
/**
|
||||
* | output |
|
||||
* | --- |
|
||||
* | "View and inspect all agent sessions created within the team." |
|
||||
*
|
||||
* @param {Sessions_DescriptionInputs} inputs
|
||||
* @param {{ locale?: "en" | "zh" }} options
|
||||
* @returns {LocalizedString}
|
||||
*/
|
||||
export const sessions_description: ((inputs?: Sessions_DescriptionInputs, options?: {
|
||||
locale?: "en" | "zh";
|
||||
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Sessions_DescriptionInputs, {
|
||||
locale?: "en" | "zh";
|
||||
}, {}>;
|
||||
export type LocalizedString = import("../runtime.js").LocalizedString;
|
||||
export type Sessions_DescriptionInputs = {};
|
||||
@@ -0,0 +1,29 @@
|
||||
/* eslint-disable */
|
||||
import { getLocale, experimentalStaticLocale } from '../runtime.js';
|
||||
|
||||
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
|
||||
|
||||
/** @typedef {{}} Sessions_DescriptionInputs */
|
||||
|
||||
const en_sessions_description = /** @type {(inputs: Sessions_DescriptionInputs) => LocalizedString} */ () => {
|
||||
return /** @type {LocalizedString} */ (`View and inspect all agent sessions created within the team.`)
|
||||
};
|
||||
|
||||
const zh_sessions_description = /** @type {(inputs: Sessions_DescriptionInputs) => LocalizedString} */ () => {
|
||||
return /** @type {LocalizedString} */ (`查看并检查团队内创建的所有 Agent 会话。`)
|
||||
};
|
||||
|
||||
/**
|
||||
* | output |
|
||||
* | --- |
|
||||
* | "View and inspect all agent sessions created within the team." |
|
||||
*
|
||||
* @param {Sessions_DescriptionInputs} inputs
|
||||
* @param {{ locale?: "en" | "zh" }} options
|
||||
* @returns {LocalizedString}
|
||||
*/
|
||||
export const sessions_description = /** @type {((inputs?: Sessions_DescriptionInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Sessions_DescriptionInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
|
||||
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
|
||||
if (locale === "en") return en_sessions_description(inputs)
|
||||
return zh_sessions_description(inputs)
|
||||
});
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
/**
|
||||
* | output |
|
||||
* | --- |
|
||||
* | "Untitled Session" |
|
||||
*
|
||||
* @param {Untitled_SessionInputs} inputs
|
||||
* @param {{ locale?: "en" | "zh" }} options
|
||||
* @returns {LocalizedString}
|
||||
*/
|
||||
export const untitled_session: ((inputs?: Untitled_SessionInputs, options?: {
|
||||
locale?: "en" | "zh";
|
||||
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Untitled_SessionInputs, {
|
||||
locale?: "en" | "zh";
|
||||
}, {}>;
|
||||
export type LocalizedString = import("../runtime.js").LocalizedString;
|
||||
export type Untitled_SessionInputs = {};
|
||||
@@ -0,0 +1,29 @@
|
||||
/* eslint-disable */
|
||||
import { getLocale, experimentalStaticLocale } from '../runtime.js';
|
||||
|
||||
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
|
||||
|
||||
/** @typedef {{}} Untitled_SessionInputs */
|
||||
|
||||
const en_untitled_session = /** @type {(inputs: Untitled_SessionInputs) => LocalizedString} */ () => {
|
||||
return /** @type {LocalizedString} */ (`Untitled Session`)
|
||||
};
|
||||
|
||||
const zh_untitled_session = /** @type {(inputs: Untitled_SessionInputs) => LocalizedString} */ () => {
|
||||
return /** @type {LocalizedString} */ (`未命名会话`)
|
||||
};
|
||||
|
||||
/**
|
||||
* | output |
|
||||
* | --- |
|
||||
* | "Untitled Session" |
|
||||
*
|
||||
* @param {Untitled_SessionInputs} inputs
|
||||
* @param {{ locale?: "en" | "zh" }} options
|
||||
* @returns {LocalizedString}
|
||||
*/
|
||||
export const untitled_session = /** @type {((inputs?: Untitled_SessionInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Untitled_SessionInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
|
||||
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
|
||||
if (locale === "en") return en_untitled_session(inputs)
|
||||
return zh_untitled_session(inputs)
|
||||
});
|
||||
Reference in New Issue
Block a user