@sentio/api 1.0.3-rc.15 → 1.0.3-rc.16

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.
@@ -35,6 +35,16 @@ export declare namespace ai_service {
35
35
  code?: string;
36
36
  message?: string;
37
37
  };
38
+ type InsightQueryContent = {
39
+ explanation?: string;
40
+ chartType?: ChartType;
41
+ queries?: Array<common.Query>;
42
+ formulas?: Array<common.Formula>;
43
+ samplesLimit?: number;
44
+ timeRange?: common.TimeRangeLite;
45
+ result?: common.Matrix;
46
+ error?: string;
47
+ };
38
48
  /**
39
49
  * Message represents a single message in an AI conversation with either text or structured content. Messages are generated as part of a 'run' (identified by run_id), and the is_final flag indicates when all messages for a run have been generated.
40
50
  */
@@ -72,6 +82,7 @@ export declare namespace ai_service {
72
82
  type StructuredContent = {
73
83
  type?: StructuredContentContentType;
74
84
  sql?: SqlContent;
85
+ insightQuery?: InsightQueryContent;
75
86
  error?: ErrorContent;
76
87
  };
77
88
  type StructuredContentContentType = 'CONTENT_TYPE_UNSPECIFIED' | 'CONTENT_TYPE_SQL' | 'CONTENT_TYPE_ERROR';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentio/api",
3
- "version": "1.0.3-rc.15",
3
+ "version": "1.0.3-rc.16",
4
4
  "license": "Apache-2.0",
5
5
  "repository": {
6
6
  "type": "git",
package/src/types.gen.ts CHANGED
@@ -37,6 +37,16 @@ export namespace ai_service {
37
37
  code?: string;
38
38
  message?: string;
39
39
  };
40
+ export type InsightQueryContent = {
41
+ explanation?: string;
42
+ chartType?: ChartType;
43
+ queries?: Array<common.Query>;
44
+ formulas?: Array<common.Formula>;
45
+ samplesLimit?: number;
46
+ timeRange?: common.TimeRangeLite;
47
+ result?: common.Matrix;
48
+ error?: string;
49
+ };
40
50
  /**
41
51
  * Message represents a single message in an AI conversation with either text or structured content. Messages are generated as part of a 'run' (identified by run_id), and the is_final flag indicates when all messages for a run have been generated.
42
52
  */
@@ -74,6 +84,7 @@ export namespace ai_service {
74
84
  export type StructuredContent = {
75
85
  type?: StructuredContentContentType;
76
86
  sql?: SqlContent;
87
+ insightQuery?: InsightQueryContent;
77
88
  error?: ErrorContent;
78
89
  };
79
90
  export type StructuredContentContentType = 'CONTENT_TYPE_UNSPECIFIED' | 'CONTENT_TYPE_SQL' | 'CONTENT_TYPE_ERROR';