@gooddata/api-client-tiger 10.11.0-alpha.2 → 10.11.0-alpha.21
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.
- package/esm/__version.d.ts +1 -1
- package/esm/__version.d.ts.map +1 -1
- package/esm/__version.js +1 -1
- package/esm/__version.js.map +1 -1
- package/esm/api-client-tiger.d.ts +3310 -794
- package/esm/client.d.ts +2 -1
- package/esm/client.d.ts.map +1 -1
- package/esm/client.js.map +1 -1
- package/esm/entitiesObjects.d.ts +2 -1
- package/esm/entitiesObjects.d.ts.map +1 -1
- package/esm/entitiesObjects.js +1 -1
- package/esm/entitiesObjects.js.map +1 -1
- package/esm/export.d.ts +2 -1
- package/esm/export.d.ts.map +1 -1
- package/esm/export.js +1 -1
- package/esm/export.js.map +1 -1
- package/esm/generated/afm-rest-api/api.d.ts +482 -186
- package/esm/generated/afm-rest-api/api.d.ts.map +1 -1
- package/esm/generated/afm-rest-api/api.js +170 -138
- package/esm/generated/afm-rest-api/api.js.map +1 -1
- package/esm/generated/afm-rest-api/openapi-spec.json +367 -187
- package/esm/generated/metadata-json-api/api.d.ts +2862 -646
- package/esm/generated/metadata-json-api/api.d.ts.map +1 -1
- package/esm/generated/metadata-json-api/api.js +2361 -358
- package/esm/generated/metadata-json-api/api.js.map +1 -1
- package/esm/generated/metadata-json-api/openapi-spec.json +9337 -8391
- package/esm/index.d.ts +15 -8
- package/esm/index.d.ts.map +1 -1
- package/esm/index.js +4 -4
- package/esm/index.js.map +1 -1
- package/esm/labelElements.d.ts +2 -1
- package/esm/labelElements.d.ts.map +1 -1
- package/esm/labelElements.js +1 -1
- package/esm/labelElements.js.map +1 -1
- package/esm/result.d.ts +1 -1
- package/esm/result.d.ts.map +1 -1
- package/esm/scanModel.d.ts +2 -1
- package/esm/scanModel.d.ts.map +1 -1
- package/esm/scanModel.js +2 -2
- package/esm/scanModel.js.map +1 -1
- package/package.json +3 -3
|
@@ -567,12 +567,12 @@
|
|
|
567
567
|
}
|
|
568
568
|
}
|
|
569
569
|
},
|
|
570
|
-
"/api/v1/actions/workspaces/{workspaceId}/ai/
|
|
570
|
+
"/api/v1/actions/workspaces/{workspaceId}/ai/search": {
|
|
571
571
|
"post": {
|
|
572
572
|
"tags": ["Smart Functions", "actions"],
|
|
573
|
-
"summary": "(BETA) Semantic Search in Metadata
|
|
573
|
+
"summary": "(BETA) Semantic Search in Metadata",
|
|
574
574
|
"description": "(BETA) Uses similarity (e.g. cosine distance) search to find top X most similar metadata objects.",
|
|
575
|
-
"operationId": "
|
|
575
|
+
"operationId": "aiSearch",
|
|
576
576
|
"parameters": [
|
|
577
577
|
{
|
|
578
578
|
"name": "workspaceId",
|
|
@@ -589,7 +589,7 @@
|
|
|
589
589
|
"content": {
|
|
590
590
|
"application/json": {
|
|
591
591
|
"schema": {
|
|
592
|
-
"$ref": "#/components/schemas/
|
|
592
|
+
"$ref": "#/components/schemas/SearchRequest"
|
|
593
593
|
}
|
|
594
594
|
}
|
|
595
595
|
},
|
|
@@ -601,7 +601,7 @@
|
|
|
601
601
|
"content": {
|
|
602
602
|
"application/json": {
|
|
603
603
|
"schema": {
|
|
604
|
-
"$ref": "#/components/schemas/
|
|
604
|
+
"$ref": "#/components/schemas/SearchResult"
|
|
605
605
|
}
|
|
606
606
|
}
|
|
607
607
|
}
|
|
@@ -609,12 +609,12 @@
|
|
|
609
609
|
}
|
|
610
610
|
}
|
|
611
611
|
},
|
|
612
|
-
"/api/v1/actions/workspaces/{workspaceId}/ai/
|
|
612
|
+
"/api/v1/actions/workspaces/{workspaceId}/ai/route": {
|
|
613
613
|
"post": {
|
|
614
614
|
"tags": ["Smart Functions", "actions"],
|
|
615
|
-
"summary": "(BETA)
|
|
616
|
-
"description": "(BETA) Uses similarity (e.g. cosine distance)
|
|
617
|
-
"operationId": "
|
|
615
|
+
"summary": "(BETA) Route to supported use cases based on this input query.",
|
|
616
|
+
"description": "(BETA) Uses similarity (e.g. cosine distance) to find most similar use cases.",
|
|
617
|
+
"operationId": "aiRoute",
|
|
618
618
|
"parameters": [
|
|
619
619
|
{
|
|
620
620
|
"name": "workspaceId",
|
|
@@ -631,7 +631,7 @@
|
|
|
631
631
|
"content": {
|
|
632
632
|
"application/json": {
|
|
633
633
|
"schema": {
|
|
634
|
-
"$ref": "#/components/schemas/
|
|
634
|
+
"$ref": "#/components/schemas/RouteRequest"
|
|
635
635
|
}
|
|
636
636
|
}
|
|
637
637
|
},
|
|
@@ -643,7 +643,7 @@
|
|
|
643
643
|
"content": {
|
|
644
644
|
"application/json": {
|
|
645
645
|
"schema": {
|
|
646
|
-
"$ref": "#/components/schemas/
|
|
646
|
+
"$ref": "#/components/schemas/RouteResult"
|
|
647
647
|
}
|
|
648
648
|
}
|
|
649
649
|
}
|
|
@@ -651,12 +651,12 @@
|
|
|
651
651
|
}
|
|
652
652
|
}
|
|
653
653
|
},
|
|
654
|
-
"/api/v1/actions/workspaces/{workspaceId}/ai/
|
|
654
|
+
"/api/v1/actions/workspaces/{workspaceId}/ai/chat": {
|
|
655
655
|
"post": {
|
|
656
656
|
"tags": ["Smart Functions", "actions"],
|
|
657
|
-
"summary": "(BETA)
|
|
658
|
-
"description": "(BETA)
|
|
659
|
-
"operationId": "
|
|
657
|
+
"summary": "(BETA) Chat with AI",
|
|
658
|
+
"description": "(BETA) Combines multiple use cases such as search, create visualizations, ...",
|
|
659
|
+
"operationId": "aiChat",
|
|
660
660
|
"parameters": [
|
|
661
661
|
{
|
|
662
662
|
"name": "workspaceId",
|
|
@@ -673,7 +673,7 @@
|
|
|
673
673
|
"content": {
|
|
674
674
|
"application/json": {
|
|
675
675
|
"schema": {
|
|
676
|
-
"$ref": "#/components/schemas/
|
|
676
|
+
"$ref": "#/components/schemas/ChatRequest"
|
|
677
677
|
}
|
|
678
678
|
}
|
|
679
679
|
},
|
|
@@ -685,7 +685,7 @@
|
|
|
685
685
|
"content": {
|
|
686
686
|
"application/json": {
|
|
687
687
|
"schema": {
|
|
688
|
-
"$ref": "#/components/schemas/
|
|
688
|
+
"$ref": "#/components/schemas/ChatResult"
|
|
689
689
|
}
|
|
690
690
|
}
|
|
691
691
|
}
|
|
@@ -2738,134 +2738,120 @@
|
|
|
2738
2738
|
},
|
|
2739
2739
|
"description": "Entity describing the valid descendants response."
|
|
2740
2740
|
},
|
|
2741
|
-
"
|
|
2741
|
+
"SearchRequest": {
|
|
2742
2742
|
"required": ["question"],
|
|
2743
2743
|
"type": "object",
|
|
2744
2744
|
"properties": {
|
|
2745
2745
|
"question": {
|
|
2746
2746
|
"maxLength": 1000,
|
|
2747
2747
|
"type": "string",
|
|
2748
|
-
"description": "
|
|
2749
|
-
"example": "Do you have anything about revenue?"
|
|
2748
|
+
"description": "Keyword/sentence is input for search."
|
|
2750
2749
|
},
|
|
2751
|
-
"
|
|
2752
|
-
"type": "
|
|
2753
|
-
"description": "
|
|
2754
|
-
"
|
|
2755
|
-
|
|
2750
|
+
"objectTypes": {
|
|
2751
|
+
"type": "array",
|
|
2752
|
+
"description": "List of object types to search for.",
|
|
2753
|
+
"items": {
|
|
2754
|
+
"type": "string",
|
|
2755
|
+
"description": "Object type to search for.",
|
|
2756
|
+
"enum": [
|
|
2757
|
+
"attribute",
|
|
2758
|
+
"metric",
|
|
2759
|
+
"fact",
|
|
2760
|
+
"label",
|
|
2761
|
+
"date",
|
|
2762
|
+
"dataset",
|
|
2763
|
+
"visualization",
|
|
2764
|
+
"dashboard"
|
|
2765
|
+
]
|
|
2766
|
+
}
|
|
2756
2767
|
},
|
|
2757
|
-
"
|
|
2768
|
+
"deepSearch": {
|
|
2769
|
+
"type": "boolean",
|
|
2770
|
+
"description": "Turn on deep search. If true, content of complex objects will be searched as well, e.g. metrics in visualizations.",
|
|
2771
|
+
"default": false
|
|
2772
|
+
},
|
|
2773
|
+
"limit": {
|
|
2758
2774
|
"type": "integer",
|
|
2759
|
-
"description": "Maximum number of
|
|
2775
|
+
"description": "Maximum number of results to return. There is a hard limit and the actual number of returned results may be lower than what is requested.",
|
|
2760
2776
|
"format": "int32",
|
|
2761
|
-
"default":
|
|
2777
|
+
"default": 10
|
|
2762
2778
|
},
|
|
2763
2779
|
"titleToDescriptorRatio": {
|
|
2764
2780
|
"type": "number",
|
|
2765
|
-
"description": "Ratio of title to descriptor.",
|
|
2781
|
+
"description": "Temporary for experiments. Ratio of title score to descriptor score.",
|
|
2782
|
+
"format": "double",
|
|
2783
|
+
"default": 0.7
|
|
2784
|
+
},
|
|
2785
|
+
"relevantScoreThreshold": {
|
|
2786
|
+
"type": "number",
|
|
2787
|
+
"description": "Score, above which we return found objects. Below this score objects are not relevant.",
|
|
2766
2788
|
"format": "double",
|
|
2767
|
-
"default": 0.
|
|
2789
|
+
"default": 0.3
|
|
2768
2790
|
}
|
|
2769
2791
|
}
|
|
2770
2792
|
},
|
|
2771
|
-
"
|
|
2772
|
-
"required": [
|
|
2793
|
+
"SearchRelationshipObject": {
|
|
2794
|
+
"required": [
|
|
2795
|
+
"sourceObjectId",
|
|
2796
|
+
"sourceObjectTitle",
|
|
2797
|
+
"sourceObjectType",
|
|
2798
|
+
"sourceWorkspaceId",
|
|
2799
|
+
"targetObjectId",
|
|
2800
|
+
"targetObjectTitle",
|
|
2801
|
+
"targetObjectType",
|
|
2802
|
+
"targetWorkspaceId"
|
|
2803
|
+
],
|
|
2773
2804
|
"type": "object",
|
|
2774
2805
|
"properties": {
|
|
2775
|
-
"
|
|
2806
|
+
"sourceWorkspaceId": {
|
|
2776
2807
|
"type": "string",
|
|
2777
|
-
"description": "
|
|
2778
|
-
"example": "revenue_by_country"
|
|
2808
|
+
"description": "Source workspace ID. If relationship is dashboard->visualization, this is the workspace where the dashboard is located."
|
|
2779
2809
|
},
|
|
2780
|
-
"
|
|
2810
|
+
"sourceObjectId": {
|
|
2781
2811
|
"type": "string",
|
|
2782
|
-
"description": "
|
|
2783
|
-
"example": "Revenue by Country"
|
|
2812
|
+
"description": "Source object ID."
|
|
2784
2813
|
},
|
|
2785
|
-
"
|
|
2814
|
+
"sourceObjectType": {
|
|
2786
2815
|
"type": "string",
|
|
2787
|
-
"description": "
|
|
2788
|
-
"example": "TABLE",
|
|
2789
|
-
"enum": ["TABLE", "HEADLINE", "BAR", "LINE", "PIE"]
|
|
2790
|
-
},
|
|
2791
|
-
"metrics": {
|
|
2792
|
-
"type": "array",
|
|
2793
|
-
"description": "List of metrics to be used in the new visualization",
|
|
2794
|
-
"items": {
|
|
2795
|
-
"$ref": "#/components/schemas/Metric"
|
|
2796
|
-
}
|
|
2816
|
+
"description": "Source object type, e.g. dashboard."
|
|
2797
2817
|
},
|
|
2798
|
-
"
|
|
2799
|
-
"type": "array",
|
|
2800
|
-
"description": "List of attributes representing the dimensionality of the new visualization",
|
|
2801
|
-
"items": {
|
|
2802
|
-
"$ref": "#/components/schemas/DimAttribute"
|
|
2803
|
-
}
|
|
2804
|
-
}
|
|
2805
|
-
},
|
|
2806
|
-
"description": "List of created visualizations"
|
|
2807
|
-
},
|
|
2808
|
-
"DimAttribute": {
|
|
2809
|
-
"required": ["id", "type"],
|
|
2810
|
-
"type": "object",
|
|
2811
|
-
"properties": {
|
|
2812
|
-
"id": {
|
|
2818
|
+
"sourceObjectTitle": {
|
|
2813
2819
|
"type": "string",
|
|
2814
|
-
"description": "
|
|
2815
|
-
"example": "obj-123"
|
|
2820
|
+
"description": "Source object title."
|
|
2816
2821
|
},
|
|
2817
|
-
"
|
|
2822
|
+
"targetWorkspaceId": {
|
|
2818
2823
|
"type": "string",
|
|
2819
|
-
"description": "
|
|
2820
|
-
|
|
2821
|
-
|
|
2822
|
-
},
|
|
2823
|
-
"description": "List of attributes representing the dimensionality of the new visualization"
|
|
2824
|
-
},
|
|
2825
|
-
"Metric": {
|
|
2826
|
-
"required": ["id", "type"],
|
|
2827
|
-
"type": "object",
|
|
2828
|
-
"properties": {
|
|
2829
|
-
"id": {
|
|
2824
|
+
"description": "Target workspace ID. If relationship is dashboard->visualization, this is the workspace where the visualization is located."
|
|
2825
|
+
},
|
|
2826
|
+
"targetObjectId": {
|
|
2830
2827
|
"type": "string",
|
|
2831
|
-
"description": "
|
|
2832
|
-
"example": "obj-123"
|
|
2828
|
+
"description": "Target object ID."
|
|
2833
2829
|
},
|
|
2834
|
-
"
|
|
2830
|
+
"targetObjectType": {
|
|
2835
2831
|
"type": "string",
|
|
2836
|
-
"description": "
|
|
2837
|
-
"example": "metric"
|
|
2832
|
+
"description": "Target object type, e.g. visualization."
|
|
2838
2833
|
},
|
|
2839
|
-
"
|
|
2834
|
+
"targetObjectTitle": {
|
|
2840
2835
|
"type": "string",
|
|
2841
|
-
"description": "
|
|
2842
|
-
"example": "COUNT, SUM, MIN, MAX, AVG, MEDIAN",
|
|
2843
|
-
"enum": ["COUNT", "SUM", "MIN", "MAX", "AVG", "MEDIAN"]
|
|
2836
|
+
"description": "Target object title."
|
|
2844
2837
|
}
|
|
2845
|
-
}
|
|
2846
|
-
"description": "List of metrics to be used in the new visualization"
|
|
2838
|
+
}
|
|
2847
2839
|
},
|
|
2848
|
-
"
|
|
2849
|
-
"required": ["
|
|
2840
|
+
"SearchResult": {
|
|
2841
|
+
"required": ["relationships", "results"],
|
|
2850
2842
|
"type": "object",
|
|
2851
2843
|
"properties": {
|
|
2852
|
-
"
|
|
2844
|
+
"results": {
|
|
2853
2845
|
"type": "array",
|
|
2854
|
-
"description": "List of search result objects",
|
|
2855
2846
|
"items": {
|
|
2856
2847
|
"$ref": "#/components/schemas/SearchResultObject"
|
|
2857
2848
|
}
|
|
2858
2849
|
},
|
|
2859
|
-
"
|
|
2850
|
+
"relationships": {
|
|
2860
2851
|
"type": "array",
|
|
2861
|
-
"description": "List of created visualizations",
|
|
2862
2852
|
"items": {
|
|
2863
|
-
"$ref": "#/components/schemas/
|
|
2853
|
+
"$ref": "#/components/schemas/SearchRelationshipObject"
|
|
2864
2854
|
}
|
|
2865
|
-
},
|
|
2866
|
-
"textResponse": {
|
|
2867
|
-
"type": "string",
|
|
2868
|
-
"description": "Text answer. Contains reasoning from AI. Can contain an equivalent of \"I don't know\"."
|
|
2869
2855
|
}
|
|
2870
2856
|
}
|
|
2871
2857
|
},
|
|
@@ -2945,157 +2931,351 @@
|
|
|
2945
2931
|
"description": "Result score for exact match(id/title). 1/1000. Other scores are multiplied by this.",
|
|
2946
2932
|
"format": "int32"
|
|
2947
2933
|
}
|
|
2948
|
-
}
|
|
2949
|
-
"description": "List of search result objects"
|
|
2934
|
+
}
|
|
2950
2935
|
},
|
|
2951
|
-
"
|
|
2936
|
+
"RouteRequest": {
|
|
2952
2937
|
"required": ["question"],
|
|
2953
2938
|
"type": "object",
|
|
2954
2939
|
"properties": {
|
|
2955
2940
|
"question": {
|
|
2956
2941
|
"maxLength": 1000,
|
|
2957
2942
|
"type": "string",
|
|
2958
|
-
"description": "
|
|
2959
|
-
}
|
|
2960
|
-
|
|
2943
|
+
"description": "Route to supported use cases based on this input query."
|
|
2944
|
+
}
|
|
2945
|
+
}
|
|
2946
|
+
},
|
|
2947
|
+
"RouteResult": {
|
|
2948
|
+
"required": ["results"],
|
|
2949
|
+
"type": "object",
|
|
2950
|
+
"properties": {
|
|
2951
|
+
"results": {
|
|
2961
2952
|
"type": "array",
|
|
2962
|
-
"description": "List of object types to search for.",
|
|
2963
2953
|
"items": {
|
|
2964
|
-
"
|
|
2965
|
-
"description": "Object type to search for.",
|
|
2966
|
-
"enum": [
|
|
2967
|
-
"attribute",
|
|
2968
|
-
"metric",
|
|
2969
|
-
"fact",
|
|
2970
|
-
"label",
|
|
2971
|
-
"date",
|
|
2972
|
-
"dataset",
|
|
2973
|
-
"visualization",
|
|
2974
|
-
"dashboard"
|
|
2975
|
-
]
|
|
2954
|
+
"$ref": "#/components/schemas/RouteResultObject"
|
|
2976
2955
|
}
|
|
2956
|
+
}
|
|
2957
|
+
}
|
|
2958
|
+
},
|
|
2959
|
+
"RouteResultObject": {
|
|
2960
|
+
"required": ["exampleDescription", "score", "useCase"],
|
|
2961
|
+
"type": "object",
|
|
2962
|
+
"properties": {
|
|
2963
|
+
"useCase": {
|
|
2964
|
+
"type": "string",
|
|
2965
|
+
"description": "Use case where to route, e.g. 'list dashboards' or 'create visualization'."
|
|
2977
2966
|
},
|
|
2978
|
-
"
|
|
2979
|
-
"type": "
|
|
2980
|
-
"description": "
|
|
2981
|
-
"default": false
|
|
2967
|
+
"exampleDescription": {
|
|
2968
|
+
"type": "string",
|
|
2969
|
+
"description": "Use case description, which was hit by the similarity search."
|
|
2982
2970
|
},
|
|
2983
|
-
"
|
|
2971
|
+
"score": {
|
|
2972
|
+
"type": "number",
|
|
2973
|
+
"description": "Similarity score between input query and the use case description.",
|
|
2974
|
+
"format": "float"
|
|
2975
|
+
}
|
|
2976
|
+
}
|
|
2977
|
+
},
|
|
2978
|
+
"ActiveObjectIdentification": {
|
|
2979
|
+
"required": ["id", "type", "workspaceId"],
|
|
2980
|
+
"type": "object",
|
|
2981
|
+
"properties": {
|
|
2982
|
+
"id": {
|
|
2983
|
+
"type": "string",
|
|
2984
|
+
"description": "Object ID."
|
|
2985
|
+
},
|
|
2986
|
+
"type": {
|
|
2987
|
+
"type": "string",
|
|
2988
|
+
"description": "Object type, e.g. dashboard."
|
|
2989
|
+
},
|
|
2990
|
+
"workspaceId": {
|
|
2991
|
+
"type": "string",
|
|
2992
|
+
"description": "Workspace ID."
|
|
2993
|
+
}
|
|
2994
|
+
},
|
|
2995
|
+
"description": "Object, with which the user is actively working."
|
|
2996
|
+
},
|
|
2997
|
+
"ChatRequest": {
|
|
2998
|
+
"required": ["question"],
|
|
2999
|
+
"type": "object",
|
|
3000
|
+
"properties": {
|
|
3001
|
+
"question": {
|
|
3002
|
+
"maxLength": 2000,
|
|
3003
|
+
"type": "string",
|
|
3004
|
+
"description": "User question"
|
|
3005
|
+
},
|
|
3006
|
+
"limitSearch": {
|
|
2984
3007
|
"type": "integer",
|
|
2985
|
-
"description": "Maximum number of
|
|
3008
|
+
"description": "Maximum number of search results.",
|
|
2986
3009
|
"format": "int32",
|
|
2987
|
-
"default":
|
|
3010
|
+
"default": 5
|
|
3011
|
+
},
|
|
3012
|
+
"limitCreate": {
|
|
3013
|
+
"type": "integer",
|
|
3014
|
+
"description": "Maximum number of created results.",
|
|
3015
|
+
"format": "int32",
|
|
3016
|
+
"default": 5
|
|
3017
|
+
},
|
|
3018
|
+
"conversationHistory": {
|
|
3019
|
+
"type": "array",
|
|
3020
|
+
"description": "List of conversation interactions",
|
|
3021
|
+
"items": {
|
|
3022
|
+
"$ref": "#/components/schemas/ConversationInteraction"
|
|
3023
|
+
}
|
|
3024
|
+
},
|
|
3025
|
+
"userContext": {
|
|
3026
|
+
"$ref": "#/components/schemas/UserContext"
|
|
2988
3027
|
},
|
|
2989
3028
|
"titleToDescriptorRatio": {
|
|
2990
3029
|
"type": "number",
|
|
2991
3030
|
"description": "Temporary for experiments. Ratio of title score to descriptor score.",
|
|
2992
3031
|
"format": "double",
|
|
2993
3032
|
"default": 0.7
|
|
3033
|
+
},
|
|
3034
|
+
"routeScoreThreshold": {
|
|
3035
|
+
"type": "number",
|
|
3036
|
+
"description": "Score, below which we set invalidQuestion to true. The question does not match to any use case",
|
|
3037
|
+
"format": "double",
|
|
3038
|
+
"default": 0.2
|
|
3039
|
+
},
|
|
3040
|
+
"searchScoreThreshold": {
|
|
3041
|
+
"type": "number",
|
|
3042
|
+
"description": "Score, above which we return found object(s) and don't call LLM to create new objects.",
|
|
3043
|
+
"format": "double",
|
|
3044
|
+
"default": 0.9
|
|
3045
|
+
},
|
|
3046
|
+
"relevantScoreThreshold": {
|
|
3047
|
+
"type": "number",
|
|
3048
|
+
"description": "Score, above which we return found objects. Below this score objects are not relevant.",
|
|
3049
|
+
"format": "double",
|
|
3050
|
+
"default": 0.3
|
|
2994
3051
|
}
|
|
2995
3052
|
}
|
|
2996
3053
|
},
|
|
2997
|
-
"
|
|
2998
|
-
"required": [
|
|
2999
|
-
"sourceObjectId",
|
|
3000
|
-
"sourceObjectTitle",
|
|
3001
|
-
"sourceObjectType",
|
|
3002
|
-
"sourceWorkspaceId",
|
|
3003
|
-
"targetObjectId",
|
|
3004
|
-
"targetObjectTitle",
|
|
3005
|
-
"targetObjectType",
|
|
3006
|
-
"targetWorkspaceId"
|
|
3007
|
-
],
|
|
3054
|
+
"ConversationInteraction": {
|
|
3055
|
+
"required": ["content", "role"],
|
|
3008
3056
|
"type": "object",
|
|
3009
3057
|
"properties": {
|
|
3010
|
-
"
|
|
3058
|
+
"content": {
|
|
3059
|
+
"oneOf": [
|
|
3060
|
+
{
|
|
3061
|
+
"$ref": "#/components/schemas/CreatedVisualizationInteractionWithContext"
|
|
3062
|
+
},
|
|
3063
|
+
{
|
|
3064
|
+
"$ref": "#/components/schemas/FoundObjectInteractionWithContext"
|
|
3065
|
+
},
|
|
3066
|
+
{
|
|
3067
|
+
"$ref": "#/components/schemas/TextInteractionWithContext"
|
|
3068
|
+
}
|
|
3069
|
+
]
|
|
3070
|
+
},
|
|
3071
|
+
"role": {
|
|
3011
3072
|
"type": "string",
|
|
3012
|
-
"description": "
|
|
3073
|
+
"description": "Role of actor.",
|
|
3074
|
+
"enum": ["USER", "AI"]
|
|
3075
|
+
}
|
|
3076
|
+
},
|
|
3077
|
+
"description": "List of conversation interactions"
|
|
3078
|
+
},
|
|
3079
|
+
"CreatedVisualization": {
|
|
3080
|
+
"required": ["dimensionality", "id", "metrics", "title", "visualizationType"],
|
|
3081
|
+
"type": "object",
|
|
3082
|
+
"properties": {
|
|
3083
|
+
"id": {
|
|
3084
|
+
"type": "string",
|
|
3085
|
+
"description": "Proposed ID of the new visualization",
|
|
3086
|
+
"example": "revenue_by_country"
|
|
3013
3087
|
},
|
|
3014
|
-
"
|
|
3088
|
+
"title": {
|
|
3015
3089
|
"type": "string",
|
|
3016
|
-
"description": "
|
|
3090
|
+
"description": "Proposed title of the new visualization",
|
|
3091
|
+
"example": "Revenue by Country"
|
|
3017
3092
|
},
|
|
3018
|
-
"
|
|
3093
|
+
"visualizationType": {
|
|
3019
3094
|
"type": "string",
|
|
3020
|
-
"description": "
|
|
3095
|
+
"description": "Visualization type requested in question",
|
|
3096
|
+
"example": "TABLE",
|
|
3097
|
+
"enum": ["TABLE", "HEADLINE", "BAR", "LINE", "PIE"]
|
|
3021
3098
|
},
|
|
3022
|
-
"
|
|
3099
|
+
"metrics": {
|
|
3100
|
+
"type": "array",
|
|
3101
|
+
"description": "List of metrics to be used in the new visualization",
|
|
3102
|
+
"items": {
|
|
3103
|
+
"$ref": "#/components/schemas/Metric"
|
|
3104
|
+
}
|
|
3105
|
+
},
|
|
3106
|
+
"dimensionality": {
|
|
3107
|
+
"type": "array",
|
|
3108
|
+
"description": "List of attributes representing the dimensionality of the new visualization",
|
|
3109
|
+
"items": {
|
|
3110
|
+
"$ref": "#/components/schemas/DimAttribute"
|
|
3111
|
+
}
|
|
3112
|
+
}
|
|
3113
|
+
},
|
|
3114
|
+
"description": "Visualization created by AI."
|
|
3115
|
+
},
|
|
3116
|
+
"CreatedVisualizationInteractionWithContext": {
|
|
3117
|
+
"required": ["createdVisualization", "includeToChatContext", "userFeedback"],
|
|
3118
|
+
"type": "object",
|
|
3119
|
+
"allOf": [
|
|
3120
|
+
{
|
|
3121
|
+
"$ref": "#/components/schemas/InteractionWithContext"
|
|
3122
|
+
},
|
|
3123
|
+
{
|
|
3124
|
+
"type": "object",
|
|
3125
|
+
"properties": {
|
|
3126
|
+
"createdVisualization": {
|
|
3127
|
+
"$ref": "#/components/schemas/CreatedVisualization"
|
|
3128
|
+
}
|
|
3129
|
+
}
|
|
3130
|
+
}
|
|
3131
|
+
]
|
|
3132
|
+
},
|
|
3133
|
+
"DimAttribute": {
|
|
3134
|
+
"required": ["id", "type"],
|
|
3135
|
+
"type": "object",
|
|
3136
|
+
"properties": {
|
|
3137
|
+
"id": {
|
|
3023
3138
|
"type": "string",
|
|
3024
|
-
"description": "
|
|
3139
|
+
"description": "ID of the object",
|
|
3140
|
+
"example": "country"
|
|
3025
3141
|
},
|
|
3026
|
-
"
|
|
3142
|
+
"type": {
|
|
3027
3143
|
"type": "string",
|
|
3028
|
-
"description": "
|
|
3144
|
+
"description": "Object type",
|
|
3145
|
+
"example": "attribute",
|
|
3146
|
+
"enum": ["attribute"]
|
|
3147
|
+
}
|
|
3148
|
+
},
|
|
3149
|
+
"description": "List of attributes representing the dimensionality of the new visualization"
|
|
3150
|
+
},
|
|
3151
|
+
"FoundObjectInteractionWithContext": {
|
|
3152
|
+
"required": ["foundObject", "includeToChatContext", "userFeedback"],
|
|
3153
|
+
"type": "object",
|
|
3154
|
+
"allOf": [
|
|
3155
|
+
{
|
|
3156
|
+
"$ref": "#/components/schemas/InteractionWithContext"
|
|
3029
3157
|
},
|
|
3030
|
-
|
|
3158
|
+
{
|
|
3159
|
+
"type": "object",
|
|
3160
|
+
"properties": {
|
|
3161
|
+
"foundObject": {
|
|
3162
|
+
"$ref": "#/components/schemas/SearchResultObject"
|
|
3163
|
+
}
|
|
3164
|
+
}
|
|
3165
|
+
}
|
|
3166
|
+
]
|
|
3167
|
+
},
|
|
3168
|
+
"InteractionWithContext": {
|
|
3169
|
+
"required": ["includeToChatContext", "userFeedback"],
|
|
3170
|
+
"type": "object",
|
|
3171
|
+
"properties": {
|
|
3172
|
+
"includeToChatContext": {
|
|
3173
|
+
"type": "boolean",
|
|
3174
|
+
"description": "Include all in the chat context. Used for further questions. Use if it's not clear which objects relate to the question."
|
|
3175
|
+
},
|
|
3176
|
+
"userFeedback": {
|
|
3031
3177
|
"type": "string",
|
|
3032
|
-
"description": "
|
|
3178
|
+
"description": "User feedback",
|
|
3179
|
+
"enum": ["POSITIVE", "NEGATIVE", "NONE"]
|
|
3180
|
+
}
|
|
3181
|
+
},
|
|
3182
|
+
"description": "Interaction content."
|
|
3183
|
+
},
|
|
3184
|
+
"Metric": {
|
|
3185
|
+
"required": ["id", "type"],
|
|
3186
|
+
"type": "object",
|
|
3187
|
+
"properties": {
|
|
3188
|
+
"id": {
|
|
3189
|
+
"type": "string",
|
|
3190
|
+
"description": "ID of the object",
|
|
3191
|
+
"example": "revenue"
|
|
3033
3192
|
},
|
|
3034
|
-
"
|
|
3193
|
+
"type": {
|
|
3035
3194
|
"type": "string",
|
|
3036
|
-
"description": "
|
|
3195
|
+
"description": "Object type",
|
|
3196
|
+
"example": "metric",
|
|
3197
|
+
"enum": ["metric", "fact", "attribute"]
|
|
3037
3198
|
},
|
|
3038
|
-
"
|
|
3199
|
+
"aggFunction": {
|
|
3039
3200
|
"type": "string",
|
|
3040
|
-
"description": "
|
|
3201
|
+
"description": "Agg function. Empty if a stored metric is used.",
|
|
3202
|
+
"enum": ["COUNT", "SUM", "MIN", "MAX", "AVG", "MEDIAN"]
|
|
3041
3203
|
}
|
|
3042
|
-
}
|
|
3204
|
+
},
|
|
3205
|
+
"description": "List of metrics to be used in the new visualization"
|
|
3043
3206
|
},
|
|
3044
|
-
"
|
|
3045
|
-
"required": ["
|
|
3207
|
+
"TextInteractionWithContext": {
|
|
3208
|
+
"required": ["includeToChatContext", "text", "userFeedback"],
|
|
3046
3209
|
"type": "object",
|
|
3047
|
-
"
|
|
3048
|
-
|
|
3049
|
-
"
|
|
3050
|
-
"items": {
|
|
3051
|
-
"$ref": "#/components/schemas/SearchResultObject"
|
|
3052
|
-
}
|
|
3210
|
+
"allOf": [
|
|
3211
|
+
{
|
|
3212
|
+
"$ref": "#/components/schemas/InteractionWithContext"
|
|
3053
3213
|
},
|
|
3054
|
-
|
|
3055
|
-
"type": "
|
|
3056
|
-
"
|
|
3057
|
-
"
|
|
3214
|
+
{
|
|
3215
|
+
"type": "object",
|
|
3216
|
+
"properties": {
|
|
3217
|
+
"text": {
|
|
3218
|
+
"type": "string",
|
|
3219
|
+
"description": "Object found by similarity search."
|
|
3220
|
+
}
|
|
3058
3221
|
}
|
|
3059
3222
|
}
|
|
3060
|
-
|
|
3223
|
+
]
|
|
3061
3224
|
},
|
|
3062
|
-
"
|
|
3063
|
-
"required": ["
|
|
3225
|
+
"UserContext": {
|
|
3226
|
+
"required": ["activeObject"],
|
|
3064
3227
|
"type": "object",
|
|
3065
3228
|
"properties": {
|
|
3066
|
-
"
|
|
3067
|
-
"
|
|
3068
|
-
"type": "string",
|
|
3069
|
-
"description": "Route to supported use cases based on this input query."
|
|
3229
|
+
"activeObject": {
|
|
3230
|
+
"$ref": "#/components/schemas/ActiveObjectIdentification"
|
|
3070
3231
|
}
|
|
3071
|
-
}
|
|
3232
|
+
},
|
|
3233
|
+
"description": "User context, which can affect the behavior of the underlying AI features."
|
|
3072
3234
|
},
|
|
3073
|
-
"
|
|
3074
|
-
"required": ["
|
|
3235
|
+
"ChatResult": {
|
|
3236
|
+
"required": ["invalidQuestion", "useCases"],
|
|
3075
3237
|
"type": "object",
|
|
3076
3238
|
"properties": {
|
|
3077
|
-
"
|
|
3239
|
+
"useCases": {
|
|
3078
3240
|
"type": "array",
|
|
3241
|
+
"description": "Use cases with scores. The question was routed to the use case with highest score.",
|
|
3079
3242
|
"items": {
|
|
3080
3243
|
"$ref": "#/components/schemas/RouteResultObject"
|
|
3081
3244
|
}
|
|
3245
|
+
},
|
|
3246
|
+
"invalidQuestion": {
|
|
3247
|
+
"type": "boolean",
|
|
3248
|
+
"description": "Flag detecting invalid/irrelevant user question. No user case was found."
|
|
3249
|
+
},
|
|
3250
|
+
"foundObjects": {
|
|
3251
|
+
"type": "array",
|
|
3252
|
+
"description": "List of objects found by similarity search.",
|
|
3253
|
+
"items": {
|
|
3254
|
+
"$ref": "#/components/schemas/SearchResultObject"
|
|
3255
|
+
}
|
|
3256
|
+
},
|
|
3257
|
+
"createdVisualizations": {
|
|
3258
|
+
"$ref": "#/components/schemas/CreatedVisualizations"
|
|
3082
3259
|
}
|
|
3083
3260
|
}
|
|
3084
3261
|
},
|
|
3085
|
-
"
|
|
3086
|
-
"required": ["
|
|
3262
|
+
"CreatedVisualizations": {
|
|
3263
|
+
"required": ["objects", "reasoning"],
|
|
3087
3264
|
"type": "object",
|
|
3088
3265
|
"properties": {
|
|
3089
|
-
"
|
|
3090
|
-
"type": "
|
|
3091
|
-
"description": "
|
|
3266
|
+
"objects": {
|
|
3267
|
+
"type": "array",
|
|
3268
|
+
"description": "List of created visualization objects",
|
|
3269
|
+
"items": {
|
|
3270
|
+
"$ref": "#/components/schemas/CreatedVisualization"
|
|
3271
|
+
}
|
|
3092
3272
|
},
|
|
3093
|
-
"
|
|
3094
|
-
"type": "
|
|
3095
|
-
"description": "
|
|
3096
|
-
"format": "float"
|
|
3273
|
+
"reasoning": {
|
|
3274
|
+
"type": "string",
|
|
3275
|
+
"description": "Reasoning from LLM. Description of how the answer was generated."
|
|
3097
3276
|
}
|
|
3098
|
-
}
|
|
3277
|
+
},
|
|
3278
|
+
"description": "Visualization definitions created by AI."
|
|
3099
3279
|
},
|
|
3100
3280
|
"ForecastResult": {
|
|
3101
3281
|
"required": ["attribute", "lowerBound", "origin", "prediction", "upperBound"],
|