thread-relation.ts 423 B

123456789101112131415161718
  1. import type { IUser, Ref, HasObjectId } from '@growi/core';
  2. import type { AiAssistant } from './ai-assistant';
  3. export interface IThreadRelation {
  4. userId: Ref<IUser>
  5. aiAssistant: Ref<AiAssistant>
  6. threadId: string;
  7. title?: string;
  8. expiredAt: Date;
  9. }
  10. export type IThreadRelationHasId = IThreadRelation & HasObjectId;
  11. export type IApiv3DeleteThreadParams = {
  12. aiAssistantId: string
  13. threadRelationId: string;
  14. }