@worktango/ai-assistant 0.0.95 → 0.0.96

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/sharedTypes.ts +45 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@worktango/ai-assistant",
3
- "version": "0.0.95",
3
+ "version": "0.0.96",
4
4
  "files": [
5
5
  "constants.js",
6
6
  "dist",
package/sharedTypes.ts CHANGED
@@ -1,6 +1,50 @@
1
+ // Don't import from the generated folder, as it is removed when we build and publish the package.
2
+
1
3
  import type { Static, TSchema, Type } from "@sinclair/typebox";
2
4
 
3
- import { Message } from "./generated/apiHooks";
5
+ export type Maybe<T> = T | undefined;
6
+ export interface Scalars {
7
+ ID: string;
8
+ String: string;
9
+ Boolean: boolean;
10
+ Int: number;
11
+ Float: number;
12
+ Upload: any;
13
+ /** All dates within this schema are ISO-8601 strings without time or timezone. */
14
+ Date: any;
15
+ /** All date-times are supposed to be are ISO-8601 strings, but we do accept input in other formats. That behavior will change and we will replace Date and DateTime's behavior with that of StrictDate. */
16
+ DateTime: any;
17
+ /** A datetime input and output type only accepts ISO-8601 dates. */
18
+ StrictDateTimeInput: string;
19
+ /** General-use Upload input scalar */
20
+ FileToUpload: any;
21
+ /** General-use scalar to use for fields of JSON data. See https://www.npmjs.com/package/graphql-type-json for more information. */
22
+ JSONObject: any;
23
+ /** Represents a rich text document in its native ProseMirror document format. This is a JSON object with a specific schema. Use a TipTap editor instance from the @kazoohr/richtext-components package to interact with this format. */
24
+ RichTextDocument: any;
25
+ }
26
+
27
+ export type AiAssistantConversationMessageRole =
28
+ /** A message that was sent by the LLM */
29
+ | "MODEL"
30
+ /** A message comes from tool calling. */
31
+ | "TOOL"
32
+ /** A message that was sent by the user. */
33
+ | "USER";
34
+
35
+ export interface Message {
36
+ __typename?: "Message";
37
+ /** The unique identifier of the message. */
38
+ id: Scalars["ID"];
39
+ /** The role of the message. */
40
+ role: AiAssistantConversationMessageRole;
41
+ /** The text content of the message. */
42
+ messageText: Scalars["String"];
43
+ /** The conversation that the message belongs to. */
44
+ conversationId: Scalars["String"];
45
+ /** Optional metadata for the message to store such as toolNames etc */
46
+ metadata?: Maybe<Scalars["JSONObject"]>;
47
+ }
4
48
 
5
49
  export type AiAssistantSuggestedPromptsProps = {
6
50
  suggestedPrompts: Record<string, AiAssistantSuggestedPrompt[]>;