@rodrigobeber/patoai-dtos 1.0.2 → 1.0.4

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.
@@ -0,0 +1,5 @@
1
+ export interface BotDto {
2
+ botId: string;
3
+ apiUrl: string;
4
+ apiKey: string;
5
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -7,5 +7,6 @@ export * from './create-transcription.dto';
7
7
  export * from './get-active-run.dto';
8
8
  export * from './get-last-message.dto';
9
9
  export * from './get-run.dto';
10
+ export * from './sync-assistant.dto';
10
11
  export * from './submit-tool-outputs.dto';
11
12
  export * from './ai-message.dto';
@@ -19,6 +19,7 @@ __exportStar(require("./create-transcription.dto"), exports);
19
19
  __exportStar(require("./get-active-run.dto"), exports);
20
20
  __exportStar(require("./get-last-message.dto"), exports);
21
21
  __exportStar(require("./get-run.dto"), exports);
22
+ __exportStar(require("./sync-assistant.dto"), exports);
22
23
  __exportStar(require("./submit-tool-outputs.dto"), exports);
23
24
  // return intarfaces
24
25
  __exportStar(require("./ai-message.dto"), exports);
@@ -0,0 +1,11 @@
1
+ import { AssistantTool } from "openai/resources/beta/assistants";
2
+ export interface SyncAssistantDto {
3
+ assistantId?: string;
4
+ aiKey: string;
5
+ model: string;
6
+ name: string;
7
+ description: string;
8
+ instructions: string;
9
+ temperature: number;
10
+ tools: AssistantTool[];
11
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,4 +1,5 @@
1
+ import { BotDto } from "../assistant/bot.dto";
1
2
  export interface GetAudioFileDto {
2
3
  id: string;
3
- botKey: string;
4
+ bot: BotDto;
4
5
  }
@@ -1,6 +1,7 @@
1
+ import { BotDto } from "../assistant/bot.dto";
1
2
  export interface SendMessageDto {
2
3
  userId: string;
3
- botKey: string;
4
+ bot: BotDto;
4
5
  text: string;
5
6
  isQuoted: boolean;
6
7
  replyMessageId?: string;
@@ -1,4 +1,5 @@
1
+ import { BotDto } from "../assistant/bot.dto";
1
2
  export interface SendTypingDto {
2
3
  userId: string;
3
- botKey: string;
4
+ bot: BotDto;
4
5
  }
@@ -1,3 +1,4 @@
1
+ import { BotDto } from "../assistant/bot.dto";
1
2
  export interface RunDto {
2
3
  idThread: number;
3
4
  threadId: string;
@@ -5,5 +6,5 @@ export interface RunDto {
5
6
  assistantId: string;
6
7
  method: string;
7
8
  aiKey: string;
8
- botKey: string;
9
+ bot: BotDto;
9
10
  }
@@ -0,0 +1,3 @@
1
+ export interface GetAssistantToolsDto {
2
+ idAssistant: number;
3
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1 +1,2 @@
1
1
  export * from './handle-tool-request.dto';
2
+ export * from './get-assistant-tools.dto';
@@ -11,3 +11,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
11
11
  };
12
12
  Object.defineProperty(exports, "__esModule", { value: true });
13
13
  __exportStar(require("./handle-tool-request.dto"), exports);
14
+ __exportStar(require("./get-assistant-tools.dto"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rodrigobeber/patoai-dtos",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "description": "Data Transfer Objects for the PatoAI system",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",