mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-27 03:14:11 +00:00
feat(cli): add shumai-cli and token authentication
This commit is contained in:
@@ -80,6 +80,7 @@ export const ModelName = {
|
||||
Model: 'Model',
|
||||
Provider: 'Provider',
|
||||
Collection: 'Collection',
|
||||
ApiToken: 'ApiToken',
|
||||
} as const
|
||||
|
||||
export type ModelName = (typeof ModelName)[keyof typeof ModelName]
|
||||
@@ -548,6 +549,18 @@ export const CollectionScalarFieldEnum = {
|
||||
export type CollectionScalarFieldEnum =
|
||||
(typeof CollectionScalarFieldEnum)[keyof typeof CollectionScalarFieldEnum]
|
||||
|
||||
export const ApiTokenScalarFieldEnum = {
|
||||
id: 'id',
|
||||
token: 'token',
|
||||
name: 'name',
|
||||
userId: 'userId',
|
||||
createdAt: 'createdAt',
|
||||
updatedAt: 'updatedAt',
|
||||
} as const
|
||||
|
||||
export type ApiTokenScalarFieldEnum =
|
||||
(typeof ApiTokenScalarFieldEnum)[keyof typeof ApiTokenScalarFieldEnum]
|
||||
|
||||
export const SortOrder = {
|
||||
asc: 'asc',
|
||||
desc: 'desc',
|
||||
|
||||
Reference in New Issue
Block a user