@superatomai/sdk-web 0.0.23 → 0.0.25
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/dist/index.cjs +277 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +298 -5
- package/dist/index.d.ts +298 -5
- package/dist/index.js +277 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -945,6 +945,21 @@ declare const BookmarkQueryFiltersSchema: z.ZodObject<{
|
|
|
945
945
|
name: z.ZodOptional<z.ZodString>;
|
|
946
946
|
}, z.core.$strip>;
|
|
947
947
|
type BookmarkQueryFilters = z.infer<typeof BookmarkQueryFiltersSchema>;
|
|
948
|
+
/**
|
|
949
|
+
* Artifact data schema
|
|
950
|
+
* Synced with sdk-nodejs/project-setup: artifacts.ts
|
|
951
|
+
*/
|
|
952
|
+
declare const ArtifactDataSchema: z.ZodObject<{
|
|
953
|
+
id: z.ZodOptional<z.ZodNumber>;
|
|
954
|
+
name: z.ZodString;
|
|
955
|
+
createdBy: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
956
|
+
dsl: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
957
|
+
status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
958
|
+
deleted: z.ZodOptional<z.ZodBoolean>;
|
|
959
|
+
createdAt: z.ZodOptional<z.ZodString>;
|
|
960
|
+
updatedAt: z.ZodOptional<z.ZodString>;
|
|
961
|
+
}, z.core.$strip>;
|
|
962
|
+
type ArtifactData = z.infer<typeof ArtifactDataSchema>;
|
|
948
963
|
/**
|
|
949
964
|
* KB Node data schema
|
|
950
965
|
* Synced with sdk-nodejs/project-setup: kb-nodes.ts
|
|
@@ -955,6 +970,11 @@ declare const KbNodeDataSchema: z.ZodObject<{
|
|
|
955
970
|
content: z.ZodString;
|
|
956
971
|
category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
957
972
|
tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
973
|
+
type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
974
|
+
query: "query";
|
|
975
|
+
user: "user";
|
|
976
|
+
global: "global";
|
|
977
|
+
}>>>;
|
|
958
978
|
createdBy: z.ZodNumber;
|
|
959
979
|
updatedBy: z.ZodOptional<z.ZodNumber>;
|
|
960
980
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
@@ -969,6 +989,11 @@ declare const KbNodesQueryFiltersSchema: z.ZodObject<{
|
|
|
969
989
|
query: z.ZodOptional<z.ZodString>;
|
|
970
990
|
category: z.ZodOptional<z.ZodString>;
|
|
971
991
|
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
992
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
993
|
+
query: "query";
|
|
994
|
+
user: "user";
|
|
995
|
+
global: "global";
|
|
996
|
+
}>>;
|
|
972
997
|
createdBy: z.ZodOptional<z.ZodNumber>;
|
|
973
998
|
}, z.core.$strip>;
|
|
974
999
|
type KbNodesQueryFilters = z.infer<typeof KbNodesQueryFiltersSchema>;
|
|
@@ -995,6 +1020,11 @@ declare const KbNodesRequestPayloadSchema: z.ZodObject<{
|
|
|
995
1020
|
content: z.ZodOptional<z.ZodString>;
|
|
996
1021
|
category: z.ZodOptional<z.ZodString>;
|
|
997
1022
|
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1023
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
1024
|
+
query: "query";
|
|
1025
|
+
user: "user";
|
|
1026
|
+
global: "global";
|
|
1027
|
+
}>>;
|
|
998
1028
|
createdBy: z.ZodOptional<z.ZodNumber>;
|
|
999
1029
|
updatedBy: z.ZodOptional<z.ZodNumber>;
|
|
1000
1030
|
userId: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1003,6 +1033,11 @@ declare const KbNodesRequestPayloadSchema: z.ZodObject<{
|
|
|
1003
1033
|
query: z.ZodOptional<z.ZodString>;
|
|
1004
1034
|
category: z.ZodOptional<z.ZodString>;
|
|
1005
1035
|
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1036
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
1037
|
+
query: "query";
|
|
1038
|
+
user: "user";
|
|
1039
|
+
global: "global";
|
|
1040
|
+
}>>;
|
|
1006
1041
|
createdBy: z.ZodOptional<z.ZodNumber>;
|
|
1007
1042
|
}, z.core.$strip>>;
|
|
1008
1043
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1044,6 +1079,11 @@ declare const KbNodesRequestMessageSchema: z.ZodObject<{
|
|
|
1044
1079
|
content: z.ZodOptional<z.ZodString>;
|
|
1045
1080
|
category: z.ZodOptional<z.ZodString>;
|
|
1046
1081
|
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1082
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
1083
|
+
query: "query";
|
|
1084
|
+
user: "user";
|
|
1085
|
+
global: "global";
|
|
1086
|
+
}>>;
|
|
1047
1087
|
createdBy: z.ZodOptional<z.ZodNumber>;
|
|
1048
1088
|
updatedBy: z.ZodOptional<z.ZodNumber>;
|
|
1049
1089
|
userId: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1052,6 +1092,11 @@ declare const KbNodesRequestMessageSchema: z.ZodObject<{
|
|
|
1052
1092
|
query: z.ZodOptional<z.ZodString>;
|
|
1053
1093
|
category: z.ZodOptional<z.ZodString>;
|
|
1054
1094
|
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1095
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
1096
|
+
query: "query";
|
|
1097
|
+
user: "user";
|
|
1098
|
+
global: "global";
|
|
1099
|
+
}>>;
|
|
1055
1100
|
createdBy: z.ZodOptional<z.ZodNumber>;
|
|
1056
1101
|
}, z.core.$strip>>;
|
|
1057
1102
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1073,6 +1118,11 @@ declare const KbNodesResponsePayloadSchema: z.ZodObject<{
|
|
|
1073
1118
|
content: z.ZodOptional<z.ZodString>;
|
|
1074
1119
|
category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1075
1120
|
tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
1121
|
+
type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
1122
|
+
query: "query";
|
|
1123
|
+
user: "user";
|
|
1124
|
+
global: "global";
|
|
1125
|
+
}>>>;
|
|
1076
1126
|
createdBy: z.ZodOptional<z.ZodNumber>;
|
|
1077
1127
|
updatedBy: z.ZodOptional<z.ZodNumber>;
|
|
1078
1128
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
@@ -1084,6 +1134,11 @@ declare const KbNodesResponsePayloadSchema: z.ZodObject<{
|
|
|
1084
1134
|
content: z.ZodString;
|
|
1085
1135
|
category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1086
1136
|
tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
1137
|
+
type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
1138
|
+
query: "query";
|
|
1139
|
+
user: "user";
|
|
1140
|
+
global: "global";
|
|
1141
|
+
}>>>;
|
|
1087
1142
|
createdBy: z.ZodNumber;
|
|
1088
1143
|
updatedBy: z.ZodOptional<z.ZodNumber>;
|
|
1089
1144
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
@@ -1095,6 +1150,11 @@ declare const KbNodesResponsePayloadSchema: z.ZodObject<{
|
|
|
1095
1150
|
content: z.ZodString;
|
|
1096
1151
|
category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1097
1152
|
tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
1153
|
+
type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
1154
|
+
query: "query";
|
|
1155
|
+
user: "user";
|
|
1156
|
+
global: "global";
|
|
1157
|
+
}>>>;
|
|
1098
1158
|
createdBy: z.ZodNumber;
|
|
1099
1159
|
updatedBy: z.ZodOptional<z.ZodNumber>;
|
|
1100
1160
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
@@ -1129,6 +1189,11 @@ declare const KbNodesResponseMessageSchema: z.ZodObject<{
|
|
|
1129
1189
|
content: z.ZodOptional<z.ZodString>;
|
|
1130
1190
|
category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1131
1191
|
tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
1192
|
+
type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
1193
|
+
query: "query";
|
|
1194
|
+
user: "user";
|
|
1195
|
+
global: "global";
|
|
1196
|
+
}>>>;
|
|
1132
1197
|
createdBy: z.ZodOptional<z.ZodNumber>;
|
|
1133
1198
|
updatedBy: z.ZodOptional<z.ZodNumber>;
|
|
1134
1199
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
@@ -1140,6 +1205,11 @@ declare const KbNodesResponseMessageSchema: z.ZodObject<{
|
|
|
1140
1205
|
content: z.ZodString;
|
|
1141
1206
|
category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1142
1207
|
tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
1208
|
+
type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
1209
|
+
query: "query";
|
|
1210
|
+
user: "user";
|
|
1211
|
+
global: "global";
|
|
1212
|
+
}>>>;
|
|
1143
1213
|
createdBy: z.ZodNumber;
|
|
1144
1214
|
updatedBy: z.ZodOptional<z.ZodNumber>;
|
|
1145
1215
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
@@ -1151,6 +1221,11 @@ declare const KbNodesResponseMessageSchema: z.ZodObject<{
|
|
|
1151
1221
|
content: z.ZodString;
|
|
1152
1222
|
category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1153
1223
|
tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
1224
|
+
type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
1225
|
+
query: "query";
|
|
1226
|
+
user: "user";
|
|
1227
|
+
global: "global";
|
|
1228
|
+
}>>>;
|
|
1154
1229
|
createdBy: z.ZodNumber;
|
|
1155
1230
|
updatedBy: z.ZodOptional<z.ZodNumber>;
|
|
1156
1231
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
@@ -1997,6 +2072,141 @@ declare function queryBookmarks(client: SuperatomClient, options?: QueryBookmark
|
|
|
1997
2072
|
message?: string;
|
|
1998
2073
|
}>;
|
|
1999
2074
|
|
|
2075
|
+
/**
|
|
2076
|
+
* Artifacts Service
|
|
2077
|
+
* Handles ARTIFACTS message for artifact CRUD operations
|
|
2078
|
+
*/
|
|
2079
|
+
|
|
2080
|
+
/**
|
|
2081
|
+
* Artifact interface for response data
|
|
2082
|
+
*/
|
|
2083
|
+
interface Artifact {
|
|
2084
|
+
id?: number;
|
|
2085
|
+
name: string;
|
|
2086
|
+
createdBy?: number | null;
|
|
2087
|
+
dsl?: Record<string, any> | null;
|
|
2088
|
+
status?: string | null;
|
|
2089
|
+
deleted?: boolean;
|
|
2090
|
+
createdAt?: string;
|
|
2091
|
+
updatedAt?: string;
|
|
2092
|
+
}
|
|
2093
|
+
/**
|
|
2094
|
+
* Create artifact options
|
|
2095
|
+
*/
|
|
2096
|
+
interface CreateArtifactOptions {
|
|
2097
|
+
name: string;
|
|
2098
|
+
createdBy?: number;
|
|
2099
|
+
dsl?: Record<string, any>;
|
|
2100
|
+
status?: string;
|
|
2101
|
+
}
|
|
2102
|
+
/**
|
|
2103
|
+
* Create a new artifact
|
|
2104
|
+
* @param client - SuperatomClient instance
|
|
2105
|
+
* @param options - Artifact creation options
|
|
2106
|
+
* @param timeout - Request timeout in milliseconds
|
|
2107
|
+
* @returns Server response with success status
|
|
2108
|
+
*/
|
|
2109
|
+
declare function createArtifact(client: SuperatomClient, options: CreateArtifactOptions, timeout?: number): Promise<{
|
|
2110
|
+
success: boolean;
|
|
2111
|
+
error?: string;
|
|
2112
|
+
message?: string;
|
|
2113
|
+
data?: ArtifactData;
|
|
2114
|
+
}>;
|
|
2115
|
+
/**
|
|
2116
|
+
* Update artifact options
|
|
2117
|
+
*/
|
|
2118
|
+
interface UpdateArtifactOptions {
|
|
2119
|
+
id: number;
|
|
2120
|
+
name?: string;
|
|
2121
|
+
dsl?: Record<string, any>;
|
|
2122
|
+
status?: string;
|
|
2123
|
+
deleted?: boolean;
|
|
2124
|
+
}
|
|
2125
|
+
/**
|
|
2126
|
+
* Update an existing artifact
|
|
2127
|
+
* @param client - SuperatomClient instance
|
|
2128
|
+
* @param options - Artifact update options
|
|
2129
|
+
* @param timeout - Request timeout in milliseconds
|
|
2130
|
+
* @returns Server response with success status
|
|
2131
|
+
*/
|
|
2132
|
+
declare function updateArtifact(client: SuperatomClient, options: UpdateArtifactOptions, timeout?: number): Promise<{
|
|
2133
|
+
success: boolean;
|
|
2134
|
+
error?: string;
|
|
2135
|
+
message?: string;
|
|
2136
|
+
data?: ArtifactData;
|
|
2137
|
+
}>;
|
|
2138
|
+
/**
|
|
2139
|
+
* Delete an artifact (soft delete)
|
|
2140
|
+
* @param client - SuperatomClient instance
|
|
2141
|
+
* @param id - Artifact ID to delete
|
|
2142
|
+
* @param timeout - Request timeout in milliseconds
|
|
2143
|
+
* @returns Server response with success status
|
|
2144
|
+
*/
|
|
2145
|
+
declare function deleteArtifact(client: SuperatomClient, id: number, timeout?: number): Promise<{
|
|
2146
|
+
success: boolean;
|
|
2147
|
+
error?: string;
|
|
2148
|
+
message?: string;
|
|
2149
|
+
data?: ArtifactData;
|
|
2150
|
+
}>;
|
|
2151
|
+
/**
|
|
2152
|
+
* Get all artifacts
|
|
2153
|
+
* @param client - SuperatomClient instance
|
|
2154
|
+
* @param limit - Optional limit for number of results
|
|
2155
|
+
* @param timeout - Request timeout in milliseconds
|
|
2156
|
+
* @returns Server response with list of artifacts
|
|
2157
|
+
*/
|
|
2158
|
+
declare function getAllArtifacts(client: SuperatomClient, limit?: number, timeout?: number): Promise<{
|
|
2159
|
+
success: boolean;
|
|
2160
|
+
error?: string;
|
|
2161
|
+
data?: ArtifactData[];
|
|
2162
|
+
count?: number;
|
|
2163
|
+
message?: string;
|
|
2164
|
+
}>;
|
|
2165
|
+
/**
|
|
2166
|
+
* Get a specific artifact by ID
|
|
2167
|
+
* @param client - SuperatomClient instance
|
|
2168
|
+
* @param id - Artifact ID to retrieve
|
|
2169
|
+
* @param timeout - Request timeout in milliseconds
|
|
2170
|
+
* @returns Server response with artifact data
|
|
2171
|
+
*/
|
|
2172
|
+
declare function getArtifact(client: SuperatomClient, id: number, timeout?: number): Promise<{
|
|
2173
|
+
success: boolean;
|
|
2174
|
+
error?: string;
|
|
2175
|
+
data?: ArtifactData;
|
|
2176
|
+
message?: string;
|
|
2177
|
+
}>;
|
|
2178
|
+
/**
|
|
2179
|
+
* Query artifacts filters
|
|
2180
|
+
*/
|
|
2181
|
+
interface QueryArtifactsFilters {
|
|
2182
|
+
createdBy?: number;
|
|
2183
|
+
status?: string;
|
|
2184
|
+
name?: string;
|
|
2185
|
+
deleted?: boolean;
|
|
2186
|
+
}
|
|
2187
|
+
/**
|
|
2188
|
+
* Query artifacts options
|
|
2189
|
+
*/
|
|
2190
|
+
interface QueryArtifactsOptions {
|
|
2191
|
+
filters?: QueryArtifactsFilters;
|
|
2192
|
+
limit?: number;
|
|
2193
|
+
sort?: 'ASC' | 'DESC';
|
|
2194
|
+
}
|
|
2195
|
+
/**
|
|
2196
|
+
* Query artifacts with filters
|
|
2197
|
+
* @param client - SuperatomClient instance
|
|
2198
|
+
* @param options - Query options with filters, limit, and sort
|
|
2199
|
+
* @param timeout - Request timeout in milliseconds
|
|
2200
|
+
* @returns Server response with list of matching artifacts
|
|
2201
|
+
*/
|
|
2202
|
+
declare function queryArtifacts(client: SuperatomClient, options?: QueryArtifactsOptions, timeout?: number): Promise<{
|
|
2203
|
+
success: boolean;
|
|
2204
|
+
error?: string;
|
|
2205
|
+
data?: ArtifactData[];
|
|
2206
|
+
count?: number;
|
|
2207
|
+
message?: string;
|
|
2208
|
+
}>;
|
|
2209
|
+
|
|
2000
2210
|
declare function getActions(client: SuperatomClient, options: {
|
|
2001
2211
|
userId?: string;
|
|
2002
2212
|
SA_RUNTIME?: Record<string, unknown>;
|
|
@@ -2183,6 +2393,10 @@ declare function queryUIs(client: SuperatomClient, options?: QueryUIsOptions, ti
|
|
|
2183
2393
|
* Handles KB_NODES message for knowledge base CRUD operations
|
|
2184
2394
|
*/
|
|
2185
2395
|
|
|
2396
|
+
/**
|
|
2397
|
+
* KB Node type
|
|
2398
|
+
*/
|
|
2399
|
+
type KbNodeType = 'global' | 'user' | 'query';
|
|
2186
2400
|
/**
|
|
2187
2401
|
* KB Node interface for response data
|
|
2188
2402
|
*/
|
|
@@ -2192,6 +2406,7 @@ interface KbNode {
|
|
|
2192
2406
|
content: string;
|
|
2193
2407
|
category?: string | null;
|
|
2194
2408
|
tags?: string[] | null;
|
|
2409
|
+
type?: KbNodeType | null;
|
|
2195
2410
|
createdBy: number;
|
|
2196
2411
|
updatedBy?: number;
|
|
2197
2412
|
createdAt?: string;
|
|
@@ -2205,10 +2420,11 @@ interface KbNode {
|
|
|
2205
2420
|
* @param createdBy - User ID of the creator
|
|
2206
2421
|
* @param category - Category for the KB node (optional)
|
|
2207
2422
|
* @param tags - Tags for the KB node (optional)
|
|
2423
|
+
* @param type - Type of the KB node: 'global', 'user', or 'query' (optional, default 'query')
|
|
2208
2424
|
* @param timeout - Request timeout in milliseconds
|
|
2209
2425
|
* @returns Server response with success status and created node data
|
|
2210
2426
|
*/
|
|
2211
|
-
declare function createKbNode(client: SuperatomClient, title: string, content: string, createdBy: number, category?: string, tags?: string[], timeout?: number): Promise<{
|
|
2427
|
+
declare function createKbNode(client: SuperatomClient, title: string, content: string, createdBy: number, category?: string, tags?: string[], type?: KbNodeType, timeout?: number): Promise<{
|
|
2212
2428
|
success: boolean;
|
|
2213
2429
|
error?: string;
|
|
2214
2430
|
message?: string;
|
|
@@ -2219,7 +2435,7 @@ declare function createKbNode(client: SuperatomClient, title: string, content: s
|
|
|
2219
2435
|
* @param client - SuperatomClient instance
|
|
2220
2436
|
* @param id - ID of the KB node to update
|
|
2221
2437
|
* @param updatedBy - User ID of the updater
|
|
2222
|
-
* @param updates - Object containing fields to update (title, content, category, tags)
|
|
2438
|
+
* @param updates - Object containing fields to update (title, content, category, tags, type)
|
|
2223
2439
|
* @param timeout - Request timeout in milliseconds
|
|
2224
2440
|
* @returns Server response with success status and updated node data
|
|
2225
2441
|
*/
|
|
@@ -2228,6 +2444,7 @@ declare function updateKbNode(client: SuperatomClient, id: number, updatedBy: nu
|
|
|
2228
2444
|
content?: string;
|
|
2229
2445
|
category?: string;
|
|
2230
2446
|
tags?: string[];
|
|
2447
|
+
type?: KbNodeType;
|
|
2231
2448
|
}, timeout?: number): Promise<{
|
|
2232
2449
|
success: boolean;
|
|
2233
2450
|
error?: string;
|
|
@@ -2281,6 +2498,7 @@ interface SearchKbNodesOptions {
|
|
|
2281
2498
|
query?: string;
|
|
2282
2499
|
category?: string;
|
|
2283
2500
|
tags?: string[];
|
|
2501
|
+
type?: KbNodeType;
|
|
2284
2502
|
createdBy?: number;
|
|
2285
2503
|
limit?: number;
|
|
2286
2504
|
offset?: number;
|
|
@@ -2288,7 +2506,7 @@ interface SearchKbNodesOptions {
|
|
|
2288
2506
|
/**
|
|
2289
2507
|
* Search knowledge base nodes with full-text search and filters
|
|
2290
2508
|
* @param client - SuperatomClient instance
|
|
2291
|
-
* @param options - Search options with query, category, tags, createdBy, limit, offset
|
|
2509
|
+
* @param options - Search options with query, category, tags, type, createdBy, limit, offset
|
|
2292
2510
|
* @param timeout - Request timeout in milliseconds
|
|
2293
2511
|
* @returns Server response with list of matching KB nodes
|
|
2294
2512
|
*/
|
|
@@ -2631,9 +2849,11 @@ declare function reorderMenus(client: SuperatomClient, items: ReorderMenuItem[],
|
|
|
2631
2849
|
* Re-exports all service functions for easy importing
|
|
2632
2850
|
*/
|
|
2633
2851
|
|
|
2852
|
+
type index_Artifact = Artifact;
|
|
2634
2853
|
type index_Binding = Binding;
|
|
2635
2854
|
declare const index_BindingSchema: typeof BindingSchema;
|
|
2636
2855
|
type index_Bookmark = Bookmark;
|
|
2856
|
+
type index_CreateArtifactOptions = CreateArtifactOptions;
|
|
2637
2857
|
type index_CreateBookmarkOptions = CreateBookmarkOptions;
|
|
2638
2858
|
type index_CreateDashboardOptions = CreateDashboardOptions;
|
|
2639
2859
|
type index_CreateMenuOptions = CreateMenuOptions;
|
|
@@ -2648,9 +2868,12 @@ declare const index_ExpressionSchema: typeof ExpressionSchema;
|
|
|
2648
2868
|
type index_ForDirective = ForDirective;
|
|
2649
2869
|
declare const index_ForDirectiveSchema: typeof ForDirectiveSchema;
|
|
2650
2870
|
type index_KbNode = KbNode;
|
|
2871
|
+
type index_KbNodeType = KbNodeType;
|
|
2651
2872
|
type index_Menu = Menu;
|
|
2652
2873
|
type index_Page = Page;
|
|
2653
2874
|
declare const index_PageSchema: typeof PageSchema;
|
|
2875
|
+
type index_QueryArtifactsFilters = QueryArtifactsFilters;
|
|
2876
|
+
type index_QueryArtifactsOptions = QueryArtifactsOptions;
|
|
2654
2877
|
type index_QueryBookmarksOptions = QueryBookmarksOptions;
|
|
2655
2878
|
type index_QueryDashboardsOptions = QueryDashboardsOptions;
|
|
2656
2879
|
type index_QueryMenusOptions = QueryMenusOptions;
|
|
@@ -2667,12 +2890,14 @@ type index_UIComponent = UIComponent;
|
|
|
2667
2890
|
declare const index_UIComponentSchema: typeof UIComponentSchema;
|
|
2668
2891
|
type index_UIElement = UIElement;
|
|
2669
2892
|
declare const index_UIElementSchema: typeof UIElementSchema;
|
|
2893
|
+
type index_UpdateArtifactOptions = UpdateArtifactOptions;
|
|
2670
2894
|
type index_UpdateBookmarkOptions = UpdateBookmarkOptions;
|
|
2671
2895
|
type index_UpdateDashboardOptions = UpdateDashboardOptions;
|
|
2672
2896
|
type index_UpdateMenuOptions = UpdateMenuOptions;
|
|
2673
2897
|
type index_UpdateReportOptions = UpdateReportOptions;
|
|
2674
2898
|
type index_UpdateUIOptions = UpdateUIOptions;
|
|
2675
2899
|
type index_User = User;
|
|
2900
|
+
declare const index_createArtifact: typeof createArtifact;
|
|
2676
2901
|
declare const index_createBookmark: typeof createBookmark;
|
|
2677
2902
|
declare const index_createDashboard: typeof createDashboard;
|
|
2678
2903
|
declare const index_createKbNode: typeof createKbNode;
|
|
@@ -2680,6 +2905,7 @@ declare const index_createMenu: typeof createMenu;
|
|
|
2680
2905
|
declare const index_createReport: typeof createReport;
|
|
2681
2906
|
declare const index_createUI: typeof createUI;
|
|
2682
2907
|
declare const index_createUser: typeof createUser;
|
|
2908
|
+
declare const index_deleteArtifact: typeof deleteArtifact;
|
|
2683
2909
|
declare const index_deleteBookmark: typeof deleteBookmark;
|
|
2684
2910
|
declare const index_deleteDashboard: typeof deleteDashboard;
|
|
2685
2911
|
declare const index_deleteKbNode: typeof deleteKbNode;
|
|
@@ -2688,6 +2914,7 @@ declare const index_deleteReport: typeof deleteReport;
|
|
|
2688
2914
|
declare const index_deleteUI: typeof deleteUI;
|
|
2689
2915
|
declare const index_deleteUser: typeof deleteUser;
|
|
2690
2916
|
declare const index_getActions: typeof getActions;
|
|
2917
|
+
declare const index_getAllArtifacts: typeof getAllArtifacts;
|
|
2691
2918
|
declare const index_getAllBookmarks: typeof getAllBookmarks;
|
|
2692
2919
|
declare const index_getAllDashboards: typeof getAllDashboards;
|
|
2693
2920
|
declare const index_getAllKbNodes: typeof getAllKbNodes;
|
|
@@ -2695,6 +2922,7 @@ declare const index_getAllMenus: typeof getAllMenus;
|
|
|
2695
2922
|
declare const index_getAllReports: typeof getAllReports;
|
|
2696
2923
|
declare const index_getAllUIs: typeof getAllUIs;
|
|
2697
2924
|
declare const index_getAllUsers: typeof getAllUsers;
|
|
2925
|
+
declare const index_getArtifact: typeof getArtifact;
|
|
2698
2926
|
declare const index_getBookmark: typeof getBookmark;
|
|
2699
2927
|
declare const index_getChildMenus: typeof getChildMenus;
|
|
2700
2928
|
declare const index_getComponentSuggestions: typeof getComponentSuggestions;
|
|
@@ -2710,6 +2938,7 @@ declare const index_getReport: typeof getReport;
|
|
|
2710
2938
|
declare const index_getRootMenus: typeof getRootMenus;
|
|
2711
2939
|
declare const index_getUI: typeof getUI;
|
|
2712
2940
|
declare const index_getUser: typeof getUser;
|
|
2941
|
+
declare const index_queryArtifacts: typeof queryArtifacts;
|
|
2713
2942
|
declare const index_queryBookmarks: typeof queryBookmarks;
|
|
2714
2943
|
declare const index_queryDashboards: typeof queryDashboards;
|
|
2715
2944
|
declare const index_queryMenus: typeof queryMenus;
|
|
@@ -2726,6 +2955,7 @@ declare const index_sendComponents: typeof sendComponents;
|
|
|
2726
2955
|
declare const index_sendDashCompRequest: typeof sendDashCompRequest;
|
|
2727
2956
|
declare const index_sendUserPromptRequest: typeof sendUserPromptRequest;
|
|
2728
2957
|
declare const index_sendUserPromptSuggestionsRequest: typeof sendUserPromptSuggestionsRequest;
|
|
2958
|
+
declare const index_updateArtifact: typeof updateArtifact;
|
|
2729
2959
|
declare const index_updateBookmark: typeof updateBookmark;
|
|
2730
2960
|
declare const index_updateDashboard: typeof updateDashboard;
|
|
2731
2961
|
declare const index_updateKbNode: typeof updateKbNode;
|
|
@@ -2734,7 +2964,7 @@ declare const index_updateReport: typeof updateReport;
|
|
|
2734
2964
|
declare const index_updateUI: typeof updateUI;
|
|
2735
2965
|
declare const index_updateUser: typeof updateUser;
|
|
2736
2966
|
declare namespace index {
|
|
2737
|
-
export { type index_Binding as Binding, index_BindingSchema as BindingSchema, type index_Bookmark as Bookmark, type index_CreateBookmarkOptions as CreateBookmarkOptions, type index_CreateDashboardOptions as CreateDashboardOptions, type index_CreateMenuOptions as CreateMenuOptions, type index_CreateReportOptions as CreateReportOptions, type index_CreateUIOptions as CreateUIOptions, type DSLRendererProps$2 as DSLRendererProps, DSLRendererPropsSchema$2 as DSLRendererPropsSchema, type index_DashCompReqType as DashCompReqType, type index_DashCompRequestOptions as DashCompRequestOptions, type index_DashCompResponse as DashCompResponse, type index_Dashboard as Dashboard, type index_Expression as Expression, index_ExpressionSchema as ExpressionSchema, type index_ForDirective as ForDirective, index_ForDirectiveSchema as ForDirectiveSchema, type index_KbNode as KbNode, type index_Menu as Menu, type index_Page as Page, index_PageSchema as PageSchema, type index_QueryBookmarksOptions as QueryBookmarksOptions, type index_QueryDashboardsOptions as QueryDashboardsOptions, type index_QueryMenusOptions as QueryMenusOptions, type index_QueryReportsOptions as QueryReportsOptions, type index_QuerySpec as QuerySpec, index_QuerySpecSchema as QuerySpecSchema, type index_QueryUIsOptions as QueryUIsOptions, type index_QueryUsersOptions as QueryUsersOptions, type index_ReorderMenuItem as ReorderMenuItem, type index_Report as Report, type DSLRendererProps$1 as ReportDSLRendererProps, type index_SearchKbNodesOptions as SearchKbNodesOptions, type index_UI as UI, type index_UIComponent as UIComponent, index_UIComponentSchema as UIComponentSchema, type DSLRendererProps as UIDSLRendererProps, type index_UIElement as UIElement, index_UIElementSchema as UIElementSchema, type index_UpdateBookmarkOptions as UpdateBookmarkOptions, type index_UpdateDashboardOptions as UpdateDashboardOptions, type index_UpdateMenuOptions as UpdateMenuOptions, type index_UpdateReportOptions as UpdateReportOptions, type index_UpdateUIOptions as UpdateUIOptions, type index_User as User, index_createBookmark as createBookmark, index_createDashboard as createDashboard, index_createKbNode as createKbNode, index_createMenu as createMenu, index_createReport as createReport, index_createUI as createUI, index_createUser as createUser, index_deleteBookmark as deleteBookmark, index_deleteDashboard as deleteDashboard, index_deleteKbNode as deleteKbNode, index_deleteMenu as deleteMenu, index_deleteReport as deleteReport, index_deleteUI as deleteUI, index_deleteUser as deleteUser, index_getActions as getActions, index_getAllBookmarks as getAllBookmarks, index_getAllDashboards as getAllDashboards, index_getAllKbNodes as getAllKbNodes, index_getAllMenus as getAllMenus, index_getAllReports as getAllReports, index_getAllUIs as getAllUIs, index_getAllUsers as getAllUsers, index_getBookmark as getBookmark, index_getChildMenus as getChildMenus, index_getComponentSuggestions as getComponentSuggestions, index_getDashboard as getDashboard, index_getKbNode as getKbNode, index_getKbNodeCategories as getKbNodeCategories, index_getKbNodeTags as getKbNodeTags, index_getKbNodesByCategory as getKbNodesByCategory, index_getKbNodesByUser as getKbNodesByUser, index_getMenu as getMenu, index_getMenusHierarchy as getMenusHierarchy, index_getReport as getReport, index_getRootMenus as getRootMenus, index_getUI as getUI, index_getUser as getUser, index_queryBookmarks as queryBookmarks, index_queryDashboards as queryDashboards, index_queryMenus as queryMenus, index_queryReports as queryReports, index_queryUIs as queryUIs, index_queryUsers as queryUsers, index_reorderMenus as reorderMenus, index_requestBundle as requestBundle, index_requestData as requestData, index_searchKbNodes as searchKbNodes, index_sendAuthLoginRequest as sendAuthLoginRequest, index_sendAuthVerifyRequest as sendAuthVerifyRequest, index_sendComponents as sendComponents, index_sendDashCompRequest as sendDashCompRequest, index_sendUserPromptRequest as sendUserPromptRequest, index_sendUserPromptSuggestionsRequest as sendUserPromptSuggestionsRequest, index_updateBookmark as updateBookmark, index_updateDashboard as updateDashboard, index_updateKbNode as updateKbNode, index_updateMenu as updateMenu, index_updateReport as updateReport, index_updateUI as updateUI, index_updateUser as updateUser };
|
|
2967
|
+
export { type index_Artifact as Artifact, type index_Binding as Binding, index_BindingSchema as BindingSchema, type index_Bookmark as Bookmark, type index_CreateArtifactOptions as CreateArtifactOptions, type index_CreateBookmarkOptions as CreateBookmarkOptions, type index_CreateDashboardOptions as CreateDashboardOptions, type index_CreateMenuOptions as CreateMenuOptions, type index_CreateReportOptions as CreateReportOptions, type index_CreateUIOptions as CreateUIOptions, type DSLRendererProps$2 as DSLRendererProps, DSLRendererPropsSchema$2 as DSLRendererPropsSchema, type index_DashCompReqType as DashCompReqType, type index_DashCompRequestOptions as DashCompRequestOptions, type index_DashCompResponse as DashCompResponse, type index_Dashboard as Dashboard, type index_Expression as Expression, index_ExpressionSchema as ExpressionSchema, type index_ForDirective as ForDirective, index_ForDirectiveSchema as ForDirectiveSchema, type index_KbNode as KbNode, type index_KbNodeType as KbNodeType, type index_Menu as Menu, type index_Page as Page, index_PageSchema as PageSchema, type index_QueryArtifactsFilters as QueryArtifactsFilters, type index_QueryArtifactsOptions as QueryArtifactsOptions, type index_QueryBookmarksOptions as QueryBookmarksOptions, type index_QueryDashboardsOptions as QueryDashboardsOptions, type index_QueryMenusOptions as QueryMenusOptions, type index_QueryReportsOptions as QueryReportsOptions, type index_QuerySpec as QuerySpec, index_QuerySpecSchema as QuerySpecSchema, type index_QueryUIsOptions as QueryUIsOptions, type index_QueryUsersOptions as QueryUsersOptions, type index_ReorderMenuItem as ReorderMenuItem, type index_Report as Report, type DSLRendererProps$1 as ReportDSLRendererProps, type index_SearchKbNodesOptions as SearchKbNodesOptions, type index_UI as UI, type index_UIComponent as UIComponent, index_UIComponentSchema as UIComponentSchema, type DSLRendererProps as UIDSLRendererProps, type index_UIElement as UIElement, index_UIElementSchema as UIElementSchema, type index_UpdateArtifactOptions as UpdateArtifactOptions, type index_UpdateBookmarkOptions as UpdateBookmarkOptions, type index_UpdateDashboardOptions as UpdateDashboardOptions, type index_UpdateMenuOptions as UpdateMenuOptions, type index_UpdateReportOptions as UpdateReportOptions, type index_UpdateUIOptions as UpdateUIOptions, type index_User as User, index_createArtifact as createArtifact, index_createBookmark as createBookmark, index_createDashboard as createDashboard, index_createKbNode as createKbNode, index_createMenu as createMenu, index_createReport as createReport, index_createUI as createUI, index_createUser as createUser, index_deleteArtifact as deleteArtifact, index_deleteBookmark as deleteBookmark, index_deleteDashboard as deleteDashboard, index_deleteKbNode as deleteKbNode, index_deleteMenu as deleteMenu, index_deleteReport as deleteReport, index_deleteUI as deleteUI, index_deleteUser as deleteUser, index_getActions as getActions, index_getAllArtifacts as getAllArtifacts, index_getAllBookmarks as getAllBookmarks, index_getAllDashboards as getAllDashboards, index_getAllKbNodes as getAllKbNodes, index_getAllMenus as getAllMenus, index_getAllReports as getAllReports, index_getAllUIs as getAllUIs, index_getAllUsers as getAllUsers, index_getArtifact as getArtifact, index_getBookmark as getBookmark, index_getChildMenus as getChildMenus, index_getComponentSuggestions as getComponentSuggestions, index_getDashboard as getDashboard, index_getKbNode as getKbNode, index_getKbNodeCategories as getKbNodeCategories, index_getKbNodeTags as getKbNodeTags, index_getKbNodesByCategory as getKbNodesByCategory, index_getKbNodesByUser as getKbNodesByUser, index_getMenu as getMenu, index_getMenusHierarchy as getMenusHierarchy, index_getReport as getReport, index_getRootMenus as getRootMenus, index_getUI as getUI, index_getUser as getUser, index_queryArtifacts as queryArtifacts, index_queryBookmarks as queryBookmarks, index_queryDashboards as queryDashboards, index_queryMenus as queryMenus, index_queryReports as queryReports, index_queryUIs as queryUIs, index_queryUsers as queryUsers, index_reorderMenus as reorderMenus, index_requestBundle as requestBundle, index_requestData as requestData, index_searchKbNodes as searchKbNodes, index_sendAuthLoginRequest as sendAuthLoginRequest, index_sendAuthVerifyRequest as sendAuthVerifyRequest, index_sendComponents as sendComponents, index_sendDashCompRequest as sendDashCompRequest, index_sendUserPromptRequest as sendUserPromptRequest, index_sendUserPromptSuggestionsRequest as sendUserPromptSuggestionsRequest, index_updateArtifact as updateArtifact, index_updateBookmark as updateBookmark, index_updateDashboard as updateDashboard, index_updateKbNode as updateKbNode, index_updateMenu as updateMenu, index_updateReport as updateReport, index_updateUI as updateUI, index_updateUser as updateUser };
|
|
2738
2968
|
}
|
|
2739
2969
|
|
|
2740
2970
|
type MessageHandler = (message: Message) => void;
|
|
@@ -3134,6 +3364,68 @@ declare class SuperatomClient {
|
|
|
3134
3364
|
count?: number;
|
|
3135
3365
|
message?: string;
|
|
3136
3366
|
}>;
|
|
3367
|
+
/**
|
|
3368
|
+
* Create a new artifact
|
|
3369
|
+
* Delegates to artifacts service
|
|
3370
|
+
*/
|
|
3371
|
+
createArtifact(options: CreateArtifactOptions, timeout?: number): Promise<{
|
|
3372
|
+
success: boolean;
|
|
3373
|
+
error?: string;
|
|
3374
|
+
message?: string;
|
|
3375
|
+
data?: Artifact;
|
|
3376
|
+
}>;
|
|
3377
|
+
/**
|
|
3378
|
+
* Update an existing artifact
|
|
3379
|
+
* Delegates to artifacts service
|
|
3380
|
+
*/
|
|
3381
|
+
updateArtifact(options: UpdateArtifactOptions, timeout?: number): Promise<{
|
|
3382
|
+
success: boolean;
|
|
3383
|
+
error?: string;
|
|
3384
|
+
message?: string;
|
|
3385
|
+
data?: Artifact;
|
|
3386
|
+
}>;
|
|
3387
|
+
/**
|
|
3388
|
+
* Delete an artifact (soft delete)
|
|
3389
|
+
* Delegates to artifacts service
|
|
3390
|
+
*/
|
|
3391
|
+
deleteArtifact(id: number, timeout?: number): Promise<{
|
|
3392
|
+
success: boolean;
|
|
3393
|
+
error?: string;
|
|
3394
|
+
message?: string;
|
|
3395
|
+
data?: Artifact;
|
|
3396
|
+
}>;
|
|
3397
|
+
/**
|
|
3398
|
+
* Get all artifacts
|
|
3399
|
+
* Delegates to artifacts service
|
|
3400
|
+
*/
|
|
3401
|
+
getAllArtifacts(limit?: number, timeout?: number): Promise<{
|
|
3402
|
+
success: boolean;
|
|
3403
|
+
error?: string;
|
|
3404
|
+
data?: Artifact[];
|
|
3405
|
+
count?: number;
|
|
3406
|
+
message?: string;
|
|
3407
|
+
}>;
|
|
3408
|
+
/**
|
|
3409
|
+
* Get a specific artifact by ID
|
|
3410
|
+
* Delegates to artifacts service
|
|
3411
|
+
*/
|
|
3412
|
+
getArtifact(id: number, timeout?: number): Promise<{
|
|
3413
|
+
success: boolean;
|
|
3414
|
+
error?: string;
|
|
3415
|
+
data?: Artifact;
|
|
3416
|
+
message?: string;
|
|
3417
|
+
}>;
|
|
3418
|
+
/**
|
|
3419
|
+
* Query artifacts with filters
|
|
3420
|
+
* Delegates to artifacts service
|
|
3421
|
+
*/
|
|
3422
|
+
queryArtifacts(options?: QueryArtifactsOptions, timeout?: number): Promise<{
|
|
3423
|
+
success: boolean;
|
|
3424
|
+
error?: string;
|
|
3425
|
+
data?: Artifact[];
|
|
3426
|
+
count?: number;
|
|
3427
|
+
message?: string;
|
|
3428
|
+
}>;
|
|
3137
3429
|
/**
|
|
3138
3430
|
* Create a new report
|
|
3139
3431
|
* Delegates to reports service
|
|
@@ -3273,7 +3565,7 @@ declare class SuperatomClient {
|
|
|
3273
3565
|
* Create a new knowledge base node
|
|
3274
3566
|
* Delegates to kb-nodes service
|
|
3275
3567
|
*/
|
|
3276
|
-
createKbNode(title: string, content: string, createdBy: number, category?: string, tags?: string[], timeout?: number): Promise<{
|
|
3568
|
+
createKbNode(title: string, content: string, createdBy: number, category?: string, tags?: string[], type?: KbNodeType, timeout?: number): Promise<{
|
|
3277
3569
|
success: boolean;
|
|
3278
3570
|
error?: string;
|
|
3279
3571
|
message?: string;
|
|
@@ -3288,6 +3580,7 @@ declare class SuperatomClient {
|
|
|
3288
3580
|
content?: string;
|
|
3289
3581
|
category?: string;
|
|
3290
3582
|
tags?: string[];
|
|
3583
|
+
type?: KbNodeType;
|
|
3291
3584
|
}, timeout?: number): Promise<{
|
|
3292
3585
|
success: boolean;
|
|
3293
3586
|
error?: string;
|