@fusebase/fusebase-gate-sdk 1.0.2-sdk.4 → 2.0.7
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/README.md +8 -10
- package/dist/apis/OrgUsersApi.d.ts +12 -1
- package/dist/apis/OrgUsersApi.js +15 -0
- package/dist/apis/SystemApi.d.ts +20 -0
- package/dist/apis/SystemApi.js +29 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +3 -1
- package/dist/types/index.d.ts +2 -20
- package/dist/types/index.js +1 -6
- package/dist/types/org-user/org-user.d.ts +33 -8
- package/dist/types/org-user/org-user.js +0 -4
- package/dist/types/shared/common.d.ts +0 -69
- package/dist/types/shared/common.js +0 -6
- package/dist/types/shared/enums.d.ts +1 -22
- package/dist/types/shared/enums.js +1 -7
- package/dist/types/shared/health.d.ts +0 -6
- package/dist/types/shared/health.js +0 -6
- package/dist/types/shared/parameters.d.ts +0 -54
- package/dist/types/system/system.d.ts +26 -0
- package/dist/types/system/system.js +7 -0
- package/dist/types/token/token.d.ts +0 -127
- package/dist/types/token/token.js +0 -6
- package/package.json +2 -2
- package/dist/apis/CustomDashboardRowsApi.d.ts +0 -113
- package/dist/apis/CustomDashboardRowsApi.js +0 -122
- package/dist/apis/DashboardDataApi.d.ts +0 -98
- package/dist/apis/DashboardDataApi.js +0 -91
- package/dist/apis/DashboardRelationsApi.d.ts +0 -92
- package/dist/apis/DashboardRelationsApi.js +0 -117
- package/dist/apis/DashboardsApi.d.ts +0 -405
- package/dist/apis/DashboardsApi.js +0 -507
- package/dist/apis/DatabasesApi.d.ts +0 -134
- package/dist/apis/DatabasesApi.js +0 -162
- package/dist/apis/ResolveApi.d.ts +0 -20
- package/dist/apis/ResolveApi.js +0 -29
- package/dist/apis/TemplatesApi.d.ts +0 -100
- package/dist/apis/TemplatesApi.js +0 -124
- package/dist/extras/messaging.d.ts +0 -81
- package/dist/extras/messaging.js +0 -16
- package/dist/types/common/portal-form.d.ts +0 -14
- package/dist/types/common/portal-form.js +0 -8
- package/dist/types/dashboard/custom-item.d.ts +0 -53
- package/dist/types/dashboard/custom-item.js +0 -22
- package/dist/types/dashboard/dashboard.d.ts +0 -421
- package/dist/types/dashboard/dashboard.js +0 -8
- package/dist/types/dashboard/dashboards.d.ts +0 -19
- package/dist/types/dashboard/dashboards.js +0 -8
- package/dist/types/dashboard/data.d.ts +0 -10
- package/dist/types/dashboard/data.js +0 -8
- package/dist/types/dashboard/export.d.ts +0 -11
- package/dist/types/dashboard/export.js +0 -8
- package/dist/types/dashboard/index.d.ts +0 -215
- package/dist/types/dashboard/index.js +0 -34
- package/dist/types/dashboard/intent.d.ts +0 -243
- package/dist/types/dashboard/intent.js +0 -8
- package/dist/types/dashboard/items.d.ts +0 -14
- package/dist/types/dashboard/items.js +0 -8
- package/dist/types/dashboard/metadata.d.ts +0 -12
- package/dist/types/dashboard/metadata.js +0 -8
- package/dist/types/dashboard/render.d.ts +0 -188
- package/dist/types/dashboard/render.js +0 -51
- package/dist/types/dashboard/rows.d.ts +0 -77
- package/dist/types/dashboard/rows.js +0 -14
- package/dist/types/dashboard/schema.d.ts +0 -172
- package/dist/types/dashboard/schema.js +0 -17
- package/dist/types/dashboard/values.d.ts +0 -187
- package/dist/types/dashboard/values.js +0 -8
- package/dist/types/dashboard/view.d.ts +0 -249
- package/dist/types/dashboard/view.js +0 -8
- package/dist/types/database/database.d.ts +0 -203
- package/dist/types/database/database.js +0 -8
- package/dist/types/database/export.d.ts +0 -11
- package/dist/types/database/export.js +0 -8
- package/dist/types/relations/relations.d.ts +0 -138
- package/dist/types/relations/relations.js +0 -14
- package/dist/types/resolve/resolve.d.ts +0 -86
- package/dist/types/resolve/resolve.js +0 -20
- package/dist/types/template/template.d.ts +0 -74
- package/dist/types/template/template.js +0 -8
|
@@ -1,215 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Index Schemas
|
|
3
|
-
*
|
|
4
|
-
* Generated from OpenAPI specification
|
|
5
|
-
* Source: schemas/dashboard/index.yaml
|
|
6
|
-
*/
|
|
7
|
-
/**
|
|
8
|
-
* A set of filter conditions with logic
|
|
9
|
-
*/
|
|
10
|
-
export interface DashboardViewFilterContract {
|
|
11
|
-
logic: DashboardViewFilterLogicContract;
|
|
12
|
-
/**
|
|
13
|
-
* List of filter conditions
|
|
14
|
-
*/
|
|
15
|
-
conditions: DashboardViewFilterConditionContract[];
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* A single filter condition
|
|
19
|
-
*/
|
|
20
|
-
export interface DashboardViewFilterConditionContract {
|
|
21
|
-
/**
|
|
22
|
-
* Field key (alias)
|
|
23
|
-
*/
|
|
24
|
-
key: string;
|
|
25
|
-
operator: DashboardViewFilterOperatorContract;
|
|
26
|
-
/**
|
|
27
|
-
* Value or list of values to compare to (not needed for empty/not_empty)
|
|
28
|
-
*
|
|
29
|
-
* @openapi-union-type anyOf
|
|
30
|
-
*/
|
|
31
|
-
value?: string | number | boolean | string[];
|
|
32
|
-
payload?: DashboardViewFilterConditionPayloadContract;
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* Additional data for the condition (for future use)
|
|
36
|
-
*/
|
|
37
|
-
export interface DashboardViewFilterConditionPayloadContract {
|
|
38
|
-
/**
|
|
39
|
-
* Start value (for "custom" date range)
|
|
40
|
-
*/
|
|
41
|
-
start?: number;
|
|
42
|
-
/**
|
|
43
|
-
* End value (for "custom" date range)
|
|
44
|
-
*/
|
|
45
|
-
end?: number;
|
|
46
|
-
/**
|
|
47
|
-
* Time zone (for date conditions)
|
|
48
|
-
*/
|
|
49
|
-
timeZone?: string;
|
|
50
|
-
}
|
|
51
|
-
/**
|
|
52
|
-
* Logic operator for combining filter conditions
|
|
53
|
-
*
|
|
54
|
-
* @enum "AND", "OR"
|
|
55
|
-
*/
|
|
56
|
-
export type DashboardViewFilterLogicContract = "AND" | "OR";
|
|
57
|
-
/**
|
|
58
|
-
* Operator to apply in filter conditions
|
|
59
|
-
*
|
|
60
|
-
* @enum "is", "is_not", "contains", "contains_not", "starts_with", "ends_with", "empty", "not_empty", "has_any_of", "has_none_of", "greater_than", "less_than", "greater_than_or_equal", "less_than_or_equal"
|
|
61
|
-
*/
|
|
62
|
-
export type DashboardViewFilterOperatorContract = "is" | "is_not" | "contains" | "contains_not" | "starts_with" | "ends_with" | "empty" | "not_empty" | "has_any_of" | "has_none_of" | "greater_than" | "less_than" | "greater_than_or_equal" | "less_than_or_equal";
|
|
63
|
-
/**
|
|
64
|
-
* Filters and sorting for dashboard views
|
|
65
|
-
*/
|
|
66
|
-
export interface DashboardViewFiltersConfigContract {
|
|
67
|
-
sort?: DashboardViewSortContract;
|
|
68
|
-
filters?: DashboardViewFilterContract;
|
|
69
|
-
}
|
|
70
|
-
/**
|
|
71
|
-
* Sorting configuration
|
|
72
|
-
*/
|
|
73
|
-
export interface DashboardViewSortContract {
|
|
74
|
-
/**
|
|
75
|
-
* Field key (alias) to sort by
|
|
76
|
-
*/
|
|
77
|
-
by?: string;
|
|
78
|
-
/**
|
|
79
|
-
* Sort order
|
|
80
|
-
*
|
|
81
|
-
* @enum "ASC", "DESC"
|
|
82
|
-
*/
|
|
83
|
-
order?: "ASC" | "DESC";
|
|
84
|
-
}
|
|
85
|
-
/**
|
|
86
|
-
* Indexing configuration for a single SchemaItem
|
|
87
|
-
*/
|
|
88
|
-
export interface IndexConfigContract {
|
|
89
|
-
/**
|
|
90
|
-
* Include this item in index? Default is false.
|
|
91
|
-
*/
|
|
92
|
-
enabled?: boolean;
|
|
93
|
-
/**
|
|
94
|
-
* Conditions type to apply for the item
|
|
95
|
-
*
|
|
96
|
-
* @enum "text", "label", "list", "number", "checkbox", "date", "file"
|
|
97
|
-
*/
|
|
98
|
-
conditions?: "text" | "label" | "list" | "number" | "checkbox" | "date" | "file";
|
|
99
|
-
/**
|
|
100
|
-
* Set of fields to add to SCHEMA
|
|
101
|
-
*/
|
|
102
|
-
fields?: IndexFieldContract[];
|
|
103
|
-
textWithExactTag?: TextWithExactTagContract;
|
|
104
|
-
}
|
|
105
|
-
/**
|
|
106
|
-
* Description of a single index field
|
|
107
|
-
*/
|
|
108
|
-
export interface IndexFieldContract {
|
|
109
|
-
/**
|
|
110
|
-
* JSONPath (from document object root)
|
|
111
|
-
*/
|
|
112
|
-
path: string;
|
|
113
|
-
/**
|
|
114
|
-
* Alias (how referenced in FT.SEARCH)
|
|
115
|
-
*/
|
|
116
|
-
alias: string;
|
|
117
|
-
source?: IndexFieldSourceContract;
|
|
118
|
-
type: IndexTypeContract;
|
|
119
|
-
options?: IndexFieldOptionsContract;
|
|
120
|
-
}
|
|
121
|
-
/**
|
|
122
|
-
* Index field options
|
|
123
|
-
*/
|
|
124
|
-
export interface IndexFieldOptionsContract {
|
|
125
|
-
/**
|
|
126
|
-
* Allows sorting by this field (FT.SEARCH SORTBY)
|
|
127
|
-
*/
|
|
128
|
-
sortable?: boolean;
|
|
129
|
-
/**
|
|
130
|
-
* List of operators allowed for this field in filters (FT.SEARCH FILTER)
|
|
131
|
-
*/
|
|
132
|
-
allow_operator?: DashboardViewFilterOperatorContract[];
|
|
133
|
-
/**
|
|
134
|
-
* Use this field as default sort for the dashboard
|
|
135
|
-
*/
|
|
136
|
-
isDefaultSort?: boolean;
|
|
137
|
-
/**
|
|
138
|
-
* Disables stemming (used for names, codes, exact words)
|
|
139
|
-
*/
|
|
140
|
-
noStem?: boolean;
|
|
141
|
-
/**
|
|
142
|
-
* For TAG fields case-sensitive search
|
|
143
|
-
*/
|
|
144
|
-
caseSensitive?: boolean;
|
|
145
|
-
/**
|
|
146
|
-
* Sets field importance for result ranking (TEXT only). Default is 1.
|
|
147
|
-
*/
|
|
148
|
-
weight?: number;
|
|
149
|
-
/**
|
|
150
|
-
* Enables phonetic search (Double Metaphone, TEXT only)
|
|
151
|
-
*
|
|
152
|
-
* @enum "dm:en", "dm:fr", "dm:pt", "dm:es"
|
|
153
|
-
*/
|
|
154
|
-
phonetic?: "dm:en" | "dm:fr" | "dm:pt" | "dm:es";
|
|
155
|
-
}
|
|
156
|
-
/**
|
|
157
|
-
* Source transformation for the field value
|
|
158
|
-
*/
|
|
159
|
-
export interface IndexFieldSourceContract {
|
|
160
|
-
/**
|
|
161
|
-
* JSONPath (from document object root)
|
|
162
|
-
*/
|
|
163
|
-
path?: string;
|
|
164
|
-
/**
|
|
165
|
-
* Transformation function name
|
|
166
|
-
*
|
|
167
|
-
* @enum "ISOtoUnixTimestamp", "toLowerCase"
|
|
168
|
-
*/
|
|
169
|
-
transform_func?: "ISOtoUnixTimestamp" | "toLowerCase";
|
|
170
|
-
}
|
|
171
|
-
/**
|
|
172
|
-
* RediSearch field type
|
|
173
|
-
*
|
|
174
|
-
* @enum "TEXT", "TAG", "NUMERIC"
|
|
175
|
-
*/
|
|
176
|
-
export type IndexTypeContract = "TEXT" | "TAG" | "NUMERIC";
|
|
177
|
-
/**
|
|
178
|
-
* Helper to create both TEXT and TAG fields from one string
|
|
179
|
-
*/
|
|
180
|
-
export interface TextWithExactTagContract {
|
|
181
|
-
/**
|
|
182
|
-
* JSONPath (from document object root)
|
|
183
|
-
*/
|
|
184
|
-
path: string;
|
|
185
|
-
/**
|
|
186
|
-
* Base alias for generated fields
|
|
187
|
-
*/
|
|
188
|
-
baseAlias: string;
|
|
189
|
-
options?: IndexFieldOptionsContract;
|
|
190
|
-
}
|
|
191
|
-
export declare const DashboardViewFilterLogicContract: {
|
|
192
|
-
readonly And: "AND";
|
|
193
|
-
readonly Or: "OR";
|
|
194
|
-
};
|
|
195
|
-
export declare const DashboardViewFilterOperatorContract: {
|
|
196
|
-
readonly Is: "is";
|
|
197
|
-
readonly IsNot: "is_not";
|
|
198
|
-
readonly Contains: "contains";
|
|
199
|
-
readonly ContainsNot: "contains_not";
|
|
200
|
-
readonly StartsWith: "starts_with";
|
|
201
|
-
readonly EndsWith: "ends_with";
|
|
202
|
-
readonly Empty: "empty";
|
|
203
|
-
readonly NotEmpty: "not_empty";
|
|
204
|
-
readonly HasAnyOf: "has_any_of";
|
|
205
|
-
readonly HasNoneOf: "has_none_of";
|
|
206
|
-
readonly GreaterThan: "greater_than";
|
|
207
|
-
readonly LessThan: "less_than";
|
|
208
|
-
readonly GreaterThanOrEqual: "greater_than_or_equal";
|
|
209
|
-
readonly LessThanOrEqual: "less_than_or_equal";
|
|
210
|
-
};
|
|
211
|
-
export declare const IndexTypeContract: {
|
|
212
|
-
readonly Text: "TEXT";
|
|
213
|
-
readonly Tag: "TAG";
|
|
214
|
-
readonly Numeric: "NUMERIC";
|
|
215
|
-
};
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* Index Schemas
|
|
4
|
-
*
|
|
5
|
-
* Generated from OpenAPI specification
|
|
6
|
-
* Source: schemas/dashboard/index.yaml
|
|
7
|
-
*/
|
|
8
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.IndexTypeContract = exports.DashboardViewFilterOperatorContract = exports.DashboardViewFilterLogicContract = void 0;
|
|
10
|
-
exports.DashboardViewFilterLogicContract = {
|
|
11
|
-
And: "AND",
|
|
12
|
-
Or: "OR"
|
|
13
|
-
};
|
|
14
|
-
exports.DashboardViewFilterOperatorContract = {
|
|
15
|
-
Is: "is",
|
|
16
|
-
IsNot: "is_not",
|
|
17
|
-
Contains: "contains",
|
|
18
|
-
ContainsNot: "contains_not",
|
|
19
|
-
StartsWith: "starts_with",
|
|
20
|
-
EndsWith: "ends_with",
|
|
21
|
-
Empty: "empty",
|
|
22
|
-
NotEmpty: "not_empty",
|
|
23
|
-
HasAnyOf: "has_any_of",
|
|
24
|
-
HasNoneOf: "has_none_of",
|
|
25
|
-
GreaterThan: "greater_than",
|
|
26
|
-
LessThan: "less_than",
|
|
27
|
-
GreaterThanOrEqual: "greater_than_or_equal",
|
|
28
|
-
LessThanOrEqual: "less_than_or_equal"
|
|
29
|
-
};
|
|
30
|
-
exports.IndexTypeContract = {
|
|
31
|
-
Text: "TEXT",
|
|
32
|
-
Tag: "TAG",
|
|
33
|
-
Numeric: "NUMERIC"
|
|
34
|
-
};
|
|
@@ -1,243 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Intent Schemas
|
|
3
|
-
*
|
|
4
|
-
* Generated from OpenAPI specification
|
|
5
|
-
* Source: schemas/dashboard/intent.yaml
|
|
6
|
-
*/
|
|
7
|
-
import type { AliasContract, ScopeContract } from "../shared/common";
|
|
8
|
-
import type { RootEntityContract } from "../shared/enums";
|
|
9
|
-
import type { DashboardMetadataContract } from "./metadata";
|
|
10
|
-
import type { SchemaItemRender, SchemaItemRenderIntentContract, SchemaItemRenderTypeContract } from "./render";
|
|
11
|
-
import type { SchemaItemSource, SchemaItemSourceIntentContract } from "./schema";
|
|
12
|
-
export interface CreateDashboardIntentRequestContract {
|
|
13
|
-
/**
|
|
14
|
-
* Database ID. If provided, dashboard will be associated with this database.
|
|
15
|
-
* If null, dashboard is standalone.
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
* @format uuid
|
|
19
|
-
* @nullable true
|
|
20
|
-
*/
|
|
21
|
-
database_id: string | null;
|
|
22
|
-
/**
|
|
23
|
-
* Dashboard name
|
|
24
|
-
*
|
|
25
|
-
* @minLength 1
|
|
26
|
-
* @maxLength 255
|
|
27
|
-
*/
|
|
28
|
-
name: string;
|
|
29
|
-
/**
|
|
30
|
-
* Optional dashboard alias. If not provided, will be auto-generated.
|
|
31
|
-
*/
|
|
32
|
-
alias?: AliasContract;
|
|
33
|
-
/**
|
|
34
|
-
* Optional dashboard title (alternative to name)
|
|
35
|
-
*/
|
|
36
|
-
title?: string;
|
|
37
|
-
/**
|
|
38
|
-
* Optional dashboard description
|
|
39
|
-
*/
|
|
40
|
-
description?: string;
|
|
41
|
-
/**
|
|
42
|
-
* Root entity type. If not provided, will be inferred from database or defaulted to "custom".
|
|
43
|
-
* Used to determine which allowed-items templates to use for enrichment.
|
|
44
|
-
*
|
|
45
|
-
*/
|
|
46
|
-
root_entity?: RootEntityContract;
|
|
47
|
-
schema: {
|
|
48
|
-
items_intent: DashboardItemIntentContract[];
|
|
49
|
-
};
|
|
50
|
-
/**
|
|
51
|
-
* Required scopes for the dashboard.
|
|
52
|
-
* Must include at least one org scope.
|
|
53
|
-
*
|
|
54
|
-
*/
|
|
55
|
-
scopes: ScopeContract[];
|
|
56
|
-
/**
|
|
57
|
-
* Whether the dashboard is public
|
|
58
|
-
*
|
|
59
|
-
* @default false
|
|
60
|
-
*/
|
|
61
|
-
is_public?: boolean;
|
|
62
|
-
metadata?: DashboardMetadataContract;
|
|
63
|
-
}
|
|
64
|
-
/**
|
|
65
|
-
* Request body schema for createDashboardIntent (MCP describe). Narrower than CreateDashboardIntentRequestContract:
|
|
66
|
-
* items_intent use DashboardItemIntentNarrowContract (render: label | auto; source: lookup only) so tools_describe stays small.
|
|
67
|
-
* Controller still accepts CreateDashboardIntentRequestContract at runtime.
|
|
68
|
-
*/
|
|
69
|
-
export interface CreateDashboardIntentRequestNarrowContract {
|
|
70
|
-
database_id: string | null;
|
|
71
|
-
name: string;
|
|
72
|
-
alias?: AliasContract;
|
|
73
|
-
title?: string;
|
|
74
|
-
description?: string;
|
|
75
|
-
root_entity?: RootEntityContract;
|
|
76
|
-
schema: {
|
|
77
|
-
items_intent: DashboardItemIntentNarrowContract[];
|
|
78
|
-
};
|
|
79
|
-
scopes: ScopeContract[];
|
|
80
|
-
is_public?: boolean;
|
|
81
|
-
metadata?: DashboardMetadataContract;
|
|
82
|
-
}
|
|
83
|
-
export interface CreateViewIntentRequestContract {
|
|
84
|
-
/**
|
|
85
|
-
* View name
|
|
86
|
-
*
|
|
87
|
-
* @minLength 1
|
|
88
|
-
* @maxLength 255
|
|
89
|
-
*/
|
|
90
|
-
name: string;
|
|
91
|
-
/**
|
|
92
|
-
* Optional view alias. If not provided, will be auto-generated.
|
|
93
|
-
*/
|
|
94
|
-
alias?: AliasContract;
|
|
95
|
-
/**
|
|
96
|
-
* List of schema item keys from the dashboard to include in this view.
|
|
97
|
-
* Items must already exist in the dashboard schema.
|
|
98
|
-
* If empty, view will include all dashboard columns.
|
|
99
|
-
*
|
|
100
|
-
*/
|
|
101
|
-
column_keys: string[];
|
|
102
|
-
/**
|
|
103
|
-
* Whether this should be the default view for the dashboard
|
|
104
|
-
*
|
|
105
|
-
* @default false
|
|
106
|
-
*/
|
|
107
|
-
default_view?: boolean;
|
|
108
|
-
/**
|
|
109
|
-
* Optional view metadata
|
|
110
|
-
*/
|
|
111
|
-
metadata?: DashboardMetadataContract;
|
|
112
|
-
}
|
|
113
|
-
export interface DashboardItemIntentContract {
|
|
114
|
-
/**
|
|
115
|
-
* Type of the item. Must match a valid render type from allowed-items templates.
|
|
116
|
-
*
|
|
117
|
-
*/
|
|
118
|
-
type: SchemaItemRenderTypeContract;
|
|
119
|
-
/**
|
|
120
|
-
* Display name for the item
|
|
121
|
-
*
|
|
122
|
-
* @minLength 1
|
|
123
|
-
* @maxLength 255
|
|
124
|
-
*/
|
|
125
|
-
name: string;
|
|
126
|
-
/**
|
|
127
|
-
* Optional item key. If not provided, will be auto-generated using nanoid.
|
|
128
|
-
* Must be unique within the dashboard schema.
|
|
129
|
-
*
|
|
130
|
-
*/
|
|
131
|
-
key?: string;
|
|
132
|
-
/**
|
|
133
|
-
* Optional alias. If not provided, will be auto-generated from name using slugify.
|
|
134
|
-
* Must meet minLength=5 and pattern requirements.
|
|
135
|
-
*
|
|
136
|
-
*/
|
|
137
|
-
alias?: AliasContract;
|
|
138
|
-
/**
|
|
139
|
-
* Optional description for the item
|
|
140
|
-
*/
|
|
141
|
-
description?: string;
|
|
142
|
-
/**
|
|
143
|
-
* Whether this field is required
|
|
144
|
-
*
|
|
145
|
-
* @default false
|
|
146
|
-
*/
|
|
147
|
-
required?: boolean;
|
|
148
|
-
/**
|
|
149
|
-
* Whether this field value must be unique
|
|
150
|
-
*
|
|
151
|
-
* @default false
|
|
152
|
-
*/
|
|
153
|
-
unique?: boolean;
|
|
154
|
-
/**
|
|
155
|
-
* Whether this field is read-only
|
|
156
|
-
*
|
|
157
|
-
* @default false
|
|
158
|
-
*/
|
|
159
|
-
readonly?: boolean;
|
|
160
|
-
/**
|
|
161
|
-
* Whether this field is hidden by default
|
|
162
|
-
*
|
|
163
|
-
* @default false
|
|
164
|
-
*/
|
|
165
|
-
hidden?: boolean;
|
|
166
|
-
/**
|
|
167
|
-
* Optional overrides for specific item properties.
|
|
168
|
-
* Only known keys are allowed; unknown keys will be rejected with validation errors.
|
|
169
|
-
*
|
|
170
|
-
*/
|
|
171
|
-
overrides?: {
|
|
172
|
-
render?: SchemaItemRender;
|
|
173
|
-
source?: SchemaItemSource;
|
|
174
|
-
metadata?: {
|
|
175
|
-
width?: number;
|
|
176
|
-
};
|
|
177
|
-
show_mode?: {
|
|
178
|
-
dashboard?: boolean;
|
|
179
|
-
detailed?: boolean;
|
|
180
|
-
};
|
|
181
|
-
};
|
|
182
|
-
}
|
|
183
|
-
/**
|
|
184
|
-
* Item intent for createDashboardIntent / updateViewIntent (MCP describe). Narrower overrides (render: label | auto; source: lookup only)
|
|
185
|
-
* so tools_describe stays small; API still accepts full DashboardItemIntentContract / UpdateSchemaIntentRequest at runtime.
|
|
186
|
-
*/
|
|
187
|
-
export interface DashboardItemIntentNarrowContract {
|
|
188
|
-
type: SchemaItemRenderTypeContract;
|
|
189
|
-
name: string;
|
|
190
|
-
key?: string;
|
|
191
|
-
alias?: AliasContract;
|
|
192
|
-
description?: string;
|
|
193
|
-
required?: boolean;
|
|
194
|
-
unique?: boolean;
|
|
195
|
-
readonly?: boolean;
|
|
196
|
-
hidden?: boolean;
|
|
197
|
-
overrides?: {
|
|
198
|
-
render?: SchemaItemRenderIntentContract;
|
|
199
|
-
source?: SchemaItemSourceIntentContract;
|
|
200
|
-
metadata?: {
|
|
201
|
-
width?: number;
|
|
202
|
-
};
|
|
203
|
-
show_mode?: {
|
|
204
|
-
dashboard?: boolean;
|
|
205
|
-
detailed?: boolean;
|
|
206
|
-
};
|
|
207
|
-
};
|
|
208
|
-
}
|
|
209
|
-
/**
|
|
210
|
-
* Request body schema for updateViewIntent. Narrower than UpdateSchemaIntentRequest
|
|
211
|
-
* (only label + auto render in overrides) so MCP describe payload is smaller.
|
|
212
|
-
* Controller still accepts UpdateSchemaIntentRequestContract at runtime.
|
|
213
|
-
*/
|
|
214
|
-
export interface UpdateViewIntentRequestContract {
|
|
215
|
-
schema_patch: {
|
|
216
|
-
add?: DashboardItemIntentNarrowContract[];
|
|
217
|
-
update?: {
|
|
218
|
-
key: string;
|
|
219
|
-
patch: DashboardItemIntentNarrowContract;
|
|
220
|
-
}[];
|
|
221
|
-
remove?: {
|
|
222
|
-
key: string;
|
|
223
|
-
}[];
|
|
224
|
-
};
|
|
225
|
-
}
|
|
226
|
-
export interface UpdateSchemaIntentRequestContract {
|
|
227
|
-
/**
|
|
228
|
-
* Patch operations for schema items (dashboard schema or view projection).
|
|
229
|
-
* Only items specified will be modified; others remain unchanged.
|
|
230
|
-
* At least one patch operation (add, update, or remove) must be specified.
|
|
231
|
-
*
|
|
232
|
-
*/
|
|
233
|
-
schema_patch: {
|
|
234
|
-
add?: DashboardItemIntentContract[];
|
|
235
|
-
update?: {
|
|
236
|
-
key: string;
|
|
237
|
-
patch: DashboardItemIntentContract;
|
|
238
|
-
}[];
|
|
239
|
-
remove?: {
|
|
240
|
-
key: string;
|
|
241
|
-
}[];
|
|
242
|
-
};
|
|
243
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Items Schemas
|
|
3
|
-
*
|
|
4
|
-
* Generated from OpenAPI specification
|
|
5
|
-
* Source: schemas/dashboard/items.yaml
|
|
6
|
-
*/
|
|
7
|
-
import type { SchemaItemContract, SchemaItemGroupContract } from "./schema";
|
|
8
|
-
export interface DashboardAllowedSchemaItemsResponseContract {
|
|
9
|
-
items: SchemaItemContract[];
|
|
10
|
-
/**
|
|
11
|
-
* List of groups for items grouping (optional)
|
|
12
|
-
*/
|
|
13
|
-
groups: SchemaItemGroupContract[];
|
|
14
|
-
}
|