@lightdash/common 0.1656.0 → 0.1658.0

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.
@@ -19,7 +19,7 @@ export declare const baseAgentSchema: z.ZodObject<{
19
19
  }>, "many">;
20
20
  createdAt: z.ZodDate;
21
21
  updatedAt: z.ZodDate;
22
- instructions: z.ZodNullable<z.ZodString>;
22
+ instruction: z.ZodNullable<z.ZodString>;
23
23
  provider: z.ZodString;
24
24
  model: z.ZodString;
25
25
  }, "strip", z.ZodTypeAny, {
@@ -37,7 +37,7 @@ export declare const baseAgentSchema: z.ZodObject<{
37
37
  type: "slack";
38
38
  channelId: string;
39
39
  }[];
40
- instructions: string | null;
40
+ instruction: string | null;
41
41
  provider: string;
42
42
  }, {
43
43
  projectUuid: string;
@@ -54,12 +54,12 @@ export declare const baseAgentSchema: z.ZodObject<{
54
54
  type: "slack";
55
55
  channelId: string;
56
56
  }[];
57
- instructions: string | null;
57
+ instruction: string | null;
58
58
  provider: string;
59
59
  }>;
60
60
  export type BaseAiAgent = z.infer<typeof baseAgentSchema>;
61
- export type AiAgent = Pick<BaseAiAgent, 'uuid' | 'projectUuid' | 'organizationUuid' | 'integrations' | 'tags' | 'name' | 'createdAt' | 'updatedAt'>;
62
- export type AiAgentSummary = Pick<AiAgent, 'uuid' | 'name' | 'integrations' | 'tags' | 'projectUuid' | 'organizationUuid' | 'createdAt' | 'updatedAt'>;
61
+ export type AiAgent = Pick<BaseAiAgent, 'uuid' | 'projectUuid' | 'organizationUuid' | 'integrations' | 'tags' | 'name' | 'createdAt' | 'updatedAt' | 'instruction'>;
62
+ export type AiAgentSummary = Pick<AiAgent, 'uuid' | 'name' | 'integrations' | 'tags' | 'projectUuid' | 'organizationUuid' | 'createdAt' | 'updatedAt' | 'instruction'>;
63
63
  export type AiAgentMessageUser = {
64
64
  role: 'user';
65
65
  uuid: string;
@@ -105,13 +105,9 @@ export type ApiAiAgentSummaryResponse = {
105
105
  status: 'ok';
106
106
  results: AiAgentSummary[];
107
107
  };
108
- export type ApiCreateAiAgent = Pick<AiAgent, 'projectUuid' | 'integrations' | 'tags' | 'name'>;
109
- export type ApiUpdateAiAgent = {
110
- uuid: AiAgent['uuid'];
111
- projectUuid?: AiAgent['projectUuid'];
112
- name?: AiAgent['name'];
113
- tags?: AiAgent['tags'];
114
- integrations?: AiAgent['integrations'];
108
+ export type ApiCreateAiAgent = Pick<AiAgent, 'projectUuid' | 'integrations' | 'tags' | 'name' | 'instruction'>;
109
+ export type ApiUpdateAiAgent = Partial<Pick<AiAgent, 'projectUuid' | 'integrations' | 'tags' | 'name' | 'instruction'>> & {
110
+ uuid: string;
115
111
  };
116
112
  export type ApiCreateAiAgentResponse = {
117
113
  status: 'ok';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/ee/AiAgent/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2B1B,CAAC;AAEH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAE1D,MAAM,MAAM,OAAO,GAAG,IAAI,CACtB,WAAW,EACT,MAAM,GACN,aAAa,GACb,kBAAkB,GAClB,cAAc,GACd,MAAM,GACN,MAAM,GACN,WAAW,GACX,WAAW,CAChB,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG,IAAI,CAC7B,OAAO,EACL,MAAM,GACN,MAAM,GACN,cAAc,GACd,MAAM,GACN,aAAa,GACb,kBAAkB,GAClB,WAAW,GACX,WAAW,CAChB,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,OA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,MAAM,yBAAyB,GAAG;IACpC,MAAM,EAAE,IAAI,CAAC;IACb,OAAO,EAAE,cAAc,EAAE,CAAC;CAC7B,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG,IAAI,CAC/B,OAAO,EACP,aAAa,GAAG,cAAc,GAAG,MAAM,GAAG,MAAM,GAAG,aAAa,CACnE,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG,OAAO,CAClC,IAAI,CACA,OAAO,EACP,aAAa,GAAG,cAAc,GAAG,MAAM,GAAG,MAAM,GAAG,aAAa,CACnE,CACJ,GAAG;IACA,IAAI,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG;IACnC,MAAM,EAAE,IAAI,CAAC;IACb,OAAO,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,mCAAmC,GAAG;IAC9C,MAAM,EAAE,IAAI,CAAC;IACb,OAAO,EAAE,oBAAoB,EAAE,CAAC;CACnC,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG;IACnC,MAAM,EAAE,IAAI,CAAC;IACb,OAAO,EAAE,aAAa,CAAC;CAC1B,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lightdash/common",
3
- "version": "0.1656.0",
3
+ "version": "0.1658.0",
4
4
  "main": "dist/cjs/index.js",
5
5
  "module": "dist/esm/index.js",
6
6
  "types": "dist/types/index.d.ts",