@yuntijs/arcadia-bff-sdk 1.2.28 → 1.2.30
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/cjs/index.d.ts +21 -0
- package/dist/cjs/sdk.d.ts +76 -19
- package/dist/cjs/sdk.js +39 -4
- package/dist/cjs/taro.d.ts +15 -0
- package/dist/esm/index.d.ts +21 -0
- package/dist/esm/sdk.d.ts +76 -19
- package/dist/esm/sdk.js +33 -22
- package/dist/esm/taro.d.ts +15 -0
- package/dist/umd/index.min.js +1 -1
- package/dist/umd/index.min.js.map +1 -1
- package/package.json +1 -1
package/dist/esm/sdk.d.ts
CHANGED
|
@@ -151,7 +151,7 @@ export type ApplicationMetadata = {
|
|
|
151
151
|
__typename?: 'ApplicationMetadata';
|
|
152
152
|
/** 添加一些辅助性记录信息 */
|
|
153
153
|
annotations?: Maybe<Scalars['Map']['output']>;
|
|
154
|
-
/** Background,
|
|
154
|
+
/** Background, 智能体对话背景图片,存放于 minio 的路径地址 */
|
|
155
155
|
background?: Maybe<Scalars['String']['output']>;
|
|
156
156
|
/** category:所属分类 */
|
|
157
157
|
category?: Maybe<Array<Maybe<Scalars['String']['output']>>>;
|
|
@@ -305,7 +305,7 @@ export type CountDataProcessItem = {
|
|
|
305
305
|
export type CreateApplicationMetadataInput = {
|
|
306
306
|
/** 添加一些辅助性记录信息 */
|
|
307
307
|
annotations?: InputMaybe<Scalars['Map']['input']>;
|
|
308
|
-
/** Background,
|
|
308
|
+
/** Background, 智能体对话背景图片,存放于 minio 的路径地址 */
|
|
309
309
|
background?: InputMaybe<Scalars['String']['input']>;
|
|
310
310
|
/** category:所属分类 */
|
|
311
311
|
category?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
|
|
@@ -538,7 +538,7 @@ export type CreatePluginInput = {
|
|
|
538
538
|
* 目前只有BasicAuth和Bearer Token支持。
|
|
539
539
|
* auth的格式Basic xxxx, Bearer xxxx。
|
|
540
540
|
*/
|
|
541
|
-
|
|
541
|
+
auth?: InputMaybe<PluginAuthInput>;
|
|
542
542
|
/** 插件所属的分类 */
|
|
543
543
|
category: Scalars['String']['input'];
|
|
544
544
|
/** 描述信息 */
|
|
@@ -1874,12 +1874,8 @@ export type Plugin = {
|
|
|
1874
1874
|
annotations?: Maybe<Scalars['Map']['output']>;
|
|
1875
1875
|
/** 用户提供openapi格式的API文档 */
|
|
1876
1876
|
apiDoc: Scalars['String']['output'];
|
|
1877
|
-
/**
|
|
1878
|
-
|
|
1879
|
-
* 目前只有BasicAuth和Bearer Token支持。
|
|
1880
|
-
* auth的格式Basic xxxx, Bearer xxxx。
|
|
1881
|
-
*/
|
|
1882
|
-
authSecret?: Maybe<Scalars['String']['output']>;
|
|
1877
|
+
/** 如果需要认证,这个字段必须要填写。目前只有BasicAuth和Bearer Token支持。 */
|
|
1878
|
+
auth?: Maybe<PluginAuth>;
|
|
1883
1879
|
/** 插件所属的分类 */
|
|
1884
1880
|
category: Scalars['String']['output'];
|
|
1885
1881
|
/** 创建时间 */
|
|
@@ -1920,6 +1916,29 @@ export type Plugin = {
|
|
|
1920
1916
|
/** 更新时间 */
|
|
1921
1917
|
updateTimestamp?: Maybe<Scalars['Time']['output']>;
|
|
1922
1918
|
};
|
|
1919
|
+
export type PluginAuth = {
|
|
1920
|
+
__typename?: 'PluginAuth';
|
|
1921
|
+
/** header or query. Use `header` by default */
|
|
1922
|
+
in: Scalars['String']['output'];
|
|
1923
|
+
/** auth's parameter name. Use Authorization by default */
|
|
1924
|
+
name: Scalars['String']['output'];
|
|
1925
|
+
/** auth's token */
|
|
1926
|
+
token: Scalars['String']['output'];
|
|
1927
|
+
};
|
|
1928
|
+
export type PluginAuthInput = {
|
|
1929
|
+
/** header or query. Use `header` by default */
|
|
1930
|
+
in: Scalars['String']['input'];
|
|
1931
|
+
/** auth's parameter name. Use Authorization by default */
|
|
1932
|
+
name: Scalars['String']['input'];
|
|
1933
|
+
/** auth's token */
|
|
1934
|
+
token: Scalars['String']['input'];
|
|
1935
|
+
};
|
|
1936
|
+
export type PluginCategory = {
|
|
1937
|
+
__typename?: 'PluginCategory';
|
|
1938
|
+
id: Scalars['String']['output'];
|
|
1939
|
+
name: Scalars['String']['output'];
|
|
1940
|
+
nameEn: Scalars['String']['output'];
|
|
1941
|
+
};
|
|
1923
1942
|
export type PluginMutation = {
|
|
1924
1943
|
__typename?: 'PluginMutation';
|
|
1925
1944
|
createPlugin: Plugin;
|
|
@@ -1938,6 +1957,7 @@ export type PluginMutationUpdatePluginArgs = {
|
|
|
1938
1957
|
export type PluginQuery = {
|
|
1939
1958
|
__typename?: 'PluginQuery';
|
|
1940
1959
|
getPlugin: Plugin;
|
|
1960
|
+
listPluginCategory: Array<Maybe<PluginCategory>>;
|
|
1941
1961
|
listPlugins: PaginatedResult;
|
|
1942
1962
|
};
|
|
1943
1963
|
export type PluginQueryGetPluginArgs = {
|
|
@@ -2588,12 +2608,8 @@ export type UpdatePluginInput = {
|
|
|
2588
2608
|
annotations?: InputMaybe<Scalars['Map']['input']>;
|
|
2589
2609
|
/** 用户提供openapi格式的API文档 */
|
|
2590
2610
|
apiDoc?: InputMaybe<Scalars['String']['input']>;
|
|
2591
|
-
/**
|
|
2592
|
-
|
|
2593
|
-
* 目前只有BasicAuth和Bearer Token支持。
|
|
2594
|
-
* auth的格式Basic xxxx, Bearer xxxx。
|
|
2595
|
-
*/
|
|
2596
|
-
authSecret?: InputMaybe<Scalars['String']['input']>;
|
|
2611
|
+
/** 如果需要认证,这个字段必须要填写.目前只有BasicAuth和Bearer Token支持。 */
|
|
2612
|
+
auth?: InputMaybe<PluginAuthInput>;
|
|
2597
2613
|
/** 插件所属的分类 */
|
|
2598
2614
|
category?: InputMaybe<Scalars['String']['input']>;
|
|
2599
2615
|
/** 描述信息 */
|
|
@@ -5181,8 +5197,13 @@ export type ListPluginsQuery = {
|
|
|
5181
5197
|
updateTimestamp?: any | null;
|
|
5182
5198
|
category: string;
|
|
5183
5199
|
apiDoc: string;
|
|
5184
|
-
authSecret?: string | null;
|
|
5185
5200
|
enabled: boolean;
|
|
5201
|
+
auth?: {
|
|
5202
|
+
__typename?: 'PluginAuth';
|
|
5203
|
+
in: string;
|
|
5204
|
+
name: string;
|
|
5205
|
+
token: string;
|
|
5206
|
+
} | null;
|
|
5186
5207
|
} | {
|
|
5187
5208
|
__typename: 'RAG';
|
|
5188
5209
|
} | {
|
|
@@ -5195,6 +5216,21 @@ export type ListPluginsQuery = {
|
|
|
5195
5216
|
};
|
|
5196
5217
|
} | null;
|
|
5197
5218
|
};
|
|
5219
|
+
export type ListPluginCategoryQueryVariables = Exact<{
|
|
5220
|
+
[key: string]: never;
|
|
5221
|
+
}>;
|
|
5222
|
+
export type ListPluginCategoryQuery = {
|
|
5223
|
+
__typename?: 'Query';
|
|
5224
|
+
Plugin?: {
|
|
5225
|
+
__typename?: 'PluginQuery';
|
|
5226
|
+
listPluginCategory: Array<{
|
|
5227
|
+
__typename?: 'PluginCategory';
|
|
5228
|
+
id: string;
|
|
5229
|
+
name: string;
|
|
5230
|
+
nameEn: string;
|
|
5231
|
+
} | null>;
|
|
5232
|
+
} | null;
|
|
5233
|
+
};
|
|
5198
5234
|
export type GetPluginQueryVariables = Exact<{
|
|
5199
5235
|
name: Scalars['String']['input'];
|
|
5200
5236
|
namespace: Scalars['String']['input'];
|
|
@@ -5221,8 +5257,13 @@ export type GetPluginQuery = {
|
|
|
5221
5257
|
updateTimestamp?: any | null;
|
|
5222
5258
|
category: string;
|
|
5223
5259
|
apiDoc: string;
|
|
5224
|
-
authSecret?: string | null;
|
|
5225
5260
|
enabled: boolean;
|
|
5261
|
+
auth?: {
|
|
5262
|
+
__typename?: 'PluginAuth';
|
|
5263
|
+
in: string;
|
|
5264
|
+
name: string;
|
|
5265
|
+
token: string;
|
|
5266
|
+
} | null;
|
|
5226
5267
|
};
|
|
5227
5268
|
} | null;
|
|
5228
5269
|
};
|
|
@@ -5251,8 +5292,13 @@ export type CreatePluginMutation = {
|
|
|
5251
5292
|
updateTimestamp?: any | null;
|
|
5252
5293
|
category: string;
|
|
5253
5294
|
apiDoc: string;
|
|
5254
|
-
authSecret?: string | null;
|
|
5255
5295
|
enabled: boolean;
|
|
5296
|
+
auth?: {
|
|
5297
|
+
__typename?: 'PluginAuth';
|
|
5298
|
+
in: string;
|
|
5299
|
+
name: string;
|
|
5300
|
+
token: string;
|
|
5301
|
+
} | null;
|
|
5256
5302
|
};
|
|
5257
5303
|
} | null;
|
|
5258
5304
|
};
|
|
@@ -5281,8 +5327,13 @@ export type UpdatePluginMutation = {
|
|
|
5281
5327
|
updateTimestamp?: any | null;
|
|
5282
5328
|
category: string;
|
|
5283
5329
|
apiDoc: string;
|
|
5284
|
-
authSecret?: string | null;
|
|
5285
5330
|
enabled: boolean;
|
|
5331
|
+
auth?: {
|
|
5332
|
+
__typename?: 'PluginAuth';
|
|
5333
|
+
in: string;
|
|
5334
|
+
name: string;
|
|
5335
|
+
token: string;
|
|
5336
|
+
} | null;
|
|
5286
5337
|
};
|
|
5287
5338
|
} | null;
|
|
5288
5339
|
};
|
|
@@ -6290,6 +6341,7 @@ export declare const ListModelServicesDocument: import("../node_modules/.pnpm/gr
|
|
|
6290
6341
|
export declare const CheckModelServiceDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
|
|
6291
6342
|
export declare const ListNodesDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
|
|
6292
6343
|
export declare const ListPluginsDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
|
|
6344
|
+
export declare const ListPluginCategoryDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
|
|
6293
6345
|
export declare const GetPluginDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
|
|
6294
6346
|
export declare const CreatePluginDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
|
|
6295
6347
|
export declare const UpdatePluginDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
|
|
@@ -6375,6 +6427,7 @@ export declare function getSdk(client: GraphQLClient, withWrapper?: SdkFunctionW
|
|
|
6375
6427
|
checkModelService(variables: CheckModelServiceQueryVariables, requestHeaders?: RequestConfig['headers']): Promise<CheckModelServiceQuery>;
|
|
6376
6428
|
listNodes(variables?: ListNodesQueryVariables, requestHeaders?: RequestConfig['headers']): Promise<ListNodesQuery>;
|
|
6377
6429
|
listPlugins(variables: ListPluginsQueryVariables, requestHeaders?: RequestConfig['headers']): Promise<ListPluginsQuery>;
|
|
6430
|
+
listPluginCategory(variables?: ListPluginCategoryQueryVariables, requestHeaders?: RequestConfig['headers']): Promise<ListPluginCategoryQuery>;
|
|
6378
6431
|
getPlugin(variables: GetPluginQueryVariables, requestHeaders?: RequestConfig['headers']): Promise<GetPluginQuery>;
|
|
6379
6432
|
createPlugin(variables: CreatePluginMutationVariables, requestHeaders?: RequestConfig['headers']): Promise<CreatePluginMutation>;
|
|
6380
6433
|
updatePlugin(variables: UpdatePluginMutationVariables, requestHeaders?: RequestConfig['headers']): Promise<UpdatePluginMutation>;
|
|
@@ -6429,6 +6482,7 @@ export declare function getSdkWithHooks(client: GraphQLClient, withWrapper?: Sdk
|
|
|
6429
6482
|
useCheckModelService(variables: CheckModelServiceQueryVariables, config?: SWRConfigInterface<CheckModelServiceQuery, ClientError>): import("./useSWR").SWRResponsePro<CheckModelServiceQuery, ClientError>;
|
|
6430
6483
|
useListNodes(variables?: ListNodesQueryVariables, config?: SWRConfigInterface<ListNodesQuery, ClientError>): import("./useSWR").SWRResponsePro<ListNodesQuery, ClientError>;
|
|
6431
6484
|
useListPlugins(variables: ListPluginsQueryVariables, config?: SWRConfigInterface<ListPluginsQuery, ClientError>): import("./useSWR").SWRResponsePro<ListPluginsQuery, ClientError>;
|
|
6485
|
+
useListPluginCategory(variables?: ListPluginCategoryQueryVariables, config?: SWRConfigInterface<ListPluginCategoryQuery, ClientError>): import("./useSWR").SWRResponsePro<ListPluginCategoryQuery, ClientError>;
|
|
6432
6486
|
useGetPlugin(variables: GetPluginQueryVariables, config?: SWRConfigInterface<GetPluginQuery, ClientError>): import("./useSWR").SWRResponsePro<GetPluginQuery, ClientError>;
|
|
6433
6487
|
useListRag(variables: ListRagQueryVariables, config?: SWRConfigInterface<ListRagQuery, ClientError>): import("./useSWR").SWRResponsePro<ListRagQuery, ClientError>;
|
|
6434
6488
|
useGetRag(variables: GetRagQueryVariables, config?: SWRConfigInterface<GetRagQuery, ClientError>): import("./useSWR").SWRResponsePro<GetRagQuery, ClientError>;
|
|
@@ -6646,6 +6700,9 @@ export declare function getSdkWithHooks(client: GraphQLClient, withWrapper?: Sdk
|
|
|
6646
6700
|
listPlugins(variables: Exact<{
|
|
6647
6701
|
input: ListPluginInput;
|
|
6648
6702
|
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<ListPluginsQuery>;
|
|
6703
|
+
listPluginCategory(variables?: Exact<{
|
|
6704
|
+
[key: string]: never;
|
|
6705
|
+
}> | undefined, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<ListPluginCategoryQuery>;
|
|
6649
6706
|
getPlugin(variables: Exact<{
|
|
6650
6707
|
name: string;
|
|
6651
6708
|
namespace: string;
|
package/dist/esm/sdk.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19, _templateObject20, _templateObject21, _templateObject22, _templateObject23, _templateObject24, _templateObject25, _templateObject26, _templateObject27, _templateObject28, _templateObject29, _templateObject30, _templateObject31, _templateObject32, _templateObject33, _templateObject34, _templateObject35, _templateObject36, _templateObject37, _templateObject38, _templateObject39, _templateObject40, _templateObject41, _templateObject42, _templateObject43, _templateObject44, _templateObject45, _templateObject46, _templateObject47, _templateObject48, _templateObject49, _templateObject50, _templateObject51, _templateObject52, _templateObject53, _templateObject54, _templateObject55, _templateObject56, _templateObject57, _templateObject58, _templateObject59, _templateObject60, _templateObject61, _templateObject62, _templateObject63, _templateObject64, _templateObject65, _templateObject66, _templateObject67, _templateObject68, _templateObject69, _templateObject70, _templateObject71, _templateObject72, _templateObject73, _templateObject74, _templateObject75, _templateObject76, _templateObject77, _templateObject78, _templateObject79, _templateObject80, _templateObject81, _templateObject82, _templateObject83;
|
|
2
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19, _templateObject20, _templateObject21, _templateObject22, _templateObject23, _templateObject24, _templateObject25, _templateObject26, _templateObject27, _templateObject28, _templateObject29, _templateObject30, _templateObject31, _templateObject32, _templateObject33, _templateObject34, _templateObject35, _templateObject36, _templateObject37, _templateObject38, _templateObject39, _templateObject40, _templateObject41, _templateObject42, _templateObject43, _templateObject44, _templateObject45, _templateObject46, _templateObject47, _templateObject48, _templateObject49, _templateObject50, _templateObject51, _templateObject52, _templateObject53, _templateObject54, _templateObject55, _templateObject56, _templateObject57, _templateObject58, _templateObject59, _templateObject60, _templateObject61, _templateObject62, _templateObject63, _templateObject64, _templateObject65, _templateObject66, _templateObject67, _templateObject68, _templateObject69, _templateObject70, _templateObject71, _templateObject72, _templateObject73, _templateObject74, _templateObject75, _templateObject76, _templateObject77, _templateObject78, _templateObject79, _templateObject80, _templateObject81, _templateObject82, _templateObject83, _templateObject84;
|
|
3
3
|
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
4
4
|
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
5
5
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
@@ -226,27 +226,28 @@ export var GetModelServiceDocument = gql(_templateObject59 || (_templateObject59
|
|
|
226
226
|
export var ListModelServicesDocument = gql(_templateObject60 || (_templateObject60 = _taggedTemplateLiteral(["\n query listModelServices($input: ListModelServiceInput) {\n ModelService {\n listModelServices(input: $input) {\n totalCount\n hasNextPage\n nodes {\n __typename\n ... on ModelService {\n id\n name\n namespace\n labels\n annotations\n creator\n displayName\n description\n providerType\n types\n apiType\n llmModels\n embeddingModels\n creationTimestamp\n updateTimestamp\n status\n message\n baseUrl\n }\n }\n }\n }\n}\n "])));
|
|
227
227
|
export var CheckModelServiceDocument = gql(_templateObject61 || (_templateObject61 = _taggedTemplateLiteral(["\n query checkModelService($input: CreateModelServiceInput!) {\n ModelService {\n checkModelService(input: $input) {\n name\n namespace\n apiType\n description\n }\n }\n}\n "])));
|
|
228
228
|
export var ListNodesDocument = gql(_templateObject62 || (_templateObject62 = _taggedTemplateLiteral(["\n query listNodes($input: ListNodeInput) {\n Node {\n listNodes(input: $input) {\n totalCount\n hasNextPage\n nodes {\n __typename\n ... on Node {\n name\n labels\n }\n }\n }\n }\n}\n "])));
|
|
229
|
-
export var ListPluginsDocument = gql(_templateObject63 || (_templateObject63 = _taggedTemplateLiteral(["\n query listPlugins($input: ListPluginInput!) {\n Plugin {\n listPlugins(input: $input) {\n totalCount\n hasNextPage\n nodes {\n __typename\n ... on Plugin {\n id\n creationTimestamp\n name\n namespace\n systemPlugin\n labels\n annotations\n creator\n displayName\n description\n type\n icon\n status\n updateTimestamp\n category\n apiDoc\n
|
|
230
|
-
export var
|
|
231
|
-
export var
|
|
232
|
-
export var
|
|
233
|
-
export var
|
|
234
|
-
export var
|
|
235
|
-
export var
|
|
236
|
-
export var
|
|
237
|
-
export var
|
|
238
|
-
export var
|
|
239
|
-
export var
|
|
240
|
-
export var
|
|
241
|
-
export var
|
|
242
|
-
export var
|
|
243
|
-
export var
|
|
244
|
-
export var
|
|
245
|
-
export var
|
|
246
|
-
export var
|
|
247
|
-
export var
|
|
248
|
-
export var
|
|
249
|
-
export var
|
|
229
|
+
export var ListPluginsDocument = gql(_templateObject63 || (_templateObject63 = _taggedTemplateLiteral(["\n query listPlugins($input: ListPluginInput!) {\n Plugin {\n listPlugins(input: $input) {\n totalCount\n hasNextPage\n nodes {\n __typename\n ... on Plugin {\n id\n creationTimestamp\n name\n namespace\n systemPlugin\n labels\n annotations\n creator\n displayName\n description\n type\n icon\n status\n updateTimestamp\n category\n apiDoc\n auth {\n in\n name\n token\n }\n enabled\n }\n }\n }\n }\n}\n "])));
|
|
230
|
+
export var ListPluginCategoryDocument = gql(_templateObject64 || (_templateObject64 = _taggedTemplateLiteral(["\n query listPluginCategory {\n Plugin {\n listPluginCategory {\n id\n name\n nameEn\n }\n }\n}\n "])));
|
|
231
|
+
export var GetPluginDocument = gql(_templateObject65 || (_templateObject65 = _taggedTemplateLiteral(["\n query getPlugin($name: String!, $namespace: String!) {\n Plugin {\n getPlugin(name: $name, namespace: $namespace) {\n id\n creationTimestamp\n name\n namespace\n systemPlugin\n labels\n annotations\n creator\n displayName\n description\n type\n icon\n status\n updateTimestamp\n category\n apiDoc\n auth {\n in\n name\n token\n }\n enabled\n }\n }\n}\n "])));
|
|
232
|
+
export var CreatePluginDocument = gql(_templateObject66 || (_templateObject66 = _taggedTemplateLiteral(["\n mutation createPlugin($input: CreatePluginInput!) {\n Plugin {\n createPlugin(input: $input) {\n id\n creationTimestamp\n name\n namespace\n systemPlugin\n labels\n annotations\n creator\n displayName\n description\n type\n icon\n status\n updateTimestamp\n category\n apiDoc\n auth {\n in\n name\n token\n }\n enabled\n }\n }\n}\n "])));
|
|
233
|
+
export var UpdatePluginDocument = gql(_templateObject67 || (_templateObject67 = _taggedTemplateLiteral(["\n mutation updatePlugin($input: UpdatePluginInput!) {\n Plugin {\n updatePlugin(input: $input) {\n id\n creationTimestamp\n name\n namespace\n systemPlugin\n labels\n annotations\n creator\n displayName\n description\n type\n icon\n status\n updateTimestamp\n category\n apiDoc\n auth {\n in\n name\n token\n }\n enabled\n }\n }\n}\n "])));
|
|
234
|
+
export var DeletePluginDocument = gql(_templateObject68 || (_templateObject68 = _taggedTemplateLiteral(["\n mutation deletePlugin($input: DeleteCommonInput!) {\n Plugin {\n deletePlugin(input: $input)\n }\n}\n "])));
|
|
235
|
+
export var ListRagDocument = gql(_templateObject69 || (_templateObject69 = _taggedTemplateLiteral(["\n query listRAG($input: ListRAGInput!) {\n RAG {\n listRAG(input: $input) {\n totalCount\n hasNextPage\n nodes {\n ... on RAG {\n name\n namespace\n creator\n displayName\n description\n creationTimestamp\n completeTimestamp\n storage {\n accessModes\n selector {\n matchLabels\n matchExpressions {\n key\n values\n operator\n }\n }\n resources {\n limits\n requests\n }\n volumeName\n storageClassName\n volumeMode\n datasource {\n apiGroup\n kind\n name\n namespace\n displayName\n }\n dataSourceRef {\n apiGroup\n kind\n name\n namespace\n displayName\n }\n }\n datasets {\n source {\n apiGroup\n kind\n name\n namespace\n displayName\n }\n }\n judgeLLM {\n name\n namespace\n baseUrl\n models\n provider\n type\n status\n message\n displayName\n }\n serviceAccountName\n suspend\n status\n phase\n phaseMessage\n }\n }\n }\n }\n}\n "])));
|
|
236
|
+
export var GetRagDocument = gql(_templateObject70 || (_templateObject70 = _taggedTemplateLiteral(["\n query getRAG($name: String!, $namespace: String!) {\n RAG {\n getRAG(name: $name, namespace: $namespace) {\n name\n namespace\n creator\n displayName\n description\n creationTimestamp\n completeTimestamp\n storage {\n accessModes\n selector {\n matchLabels\n matchExpressions {\n key\n values\n operator\n }\n }\n volumeName\n storageClassName\n volumeMode\n resources {\n limits\n requests\n }\n datasource {\n apiGroup\n kind\n name\n namespace\n displayName\n }\n dataSourceRef {\n apiGroup\n kind\n name\n namespace\n displayName\n }\n }\n serviceAccountName\n suspend\n status\n phase\n phaseMessage\n application {\n metadata {\n name\n namespace\n id\n labels\n annotations\n displayName\n description\n icon\n creator\n creationTimestamp\n updateTimestamp\n isPublic\n status\n }\n prologue\n model\n llm\n temperature\n maxLength\n maxTokens\n conversionWindowSize\n knowledgebase\n scoreThreshold\n numDocuments\n docNullReturn\n userPrompt\n showRespInfo\n showRetrievalInfo\n showNextGuide\n }\n datasets {\n source {\n apiGroup\n kind\n name\n namespace\n displayName\n }\n files {\n path\n fileType\n }\n }\n judgeLLM {\n name\n namespace\n labels\n annotations\n displayName\n description\n baseUrl\n models\n provider\n type\n updateTimestamp\n status\n message\n }\n metrics {\n metricKind\n parameters {\n key\n value\n }\n toleranceThreshbold\n }\n }\n }\n}\n "])));
|
|
237
|
+
export var CreateRagDocument = gql(_templateObject71 || (_templateObject71 = _taggedTemplateLiteral(["\n mutation createRAG($input: CreateRAGInput!) {\n RAG {\n createRAG(input: $input) {\n name\n namespace\n creator\n displayName\n description\n creationTimestamp\n completeTimestamp\n storage {\n accessModes\n selector {\n matchLabels\n matchExpressions {\n key\n values\n operator\n }\n }\n volumeName\n storageClassName\n volumeMode\n resources {\n limits\n requests\n }\n datasource {\n apiGroup\n kind\n name\n namespace\n displayName\n }\n dataSourceRef {\n apiGroup\n kind\n name\n namespace\n displayName\n }\n }\n serviceAccountName\n suspend\n status\n phase\n phaseMessage\n }\n }\n}\n "])));
|
|
238
|
+
export var UpdateRagDocument = gql(_templateObject72 || (_templateObject72 = _taggedTemplateLiteral(["\n mutation updateRAG($input: UpdateRAGInput!) {\n RAG {\n updateRAG(input: $input) {\n name\n namespace\n creator\n displayName\n description\n creationTimestamp\n completeTimestamp\n storage {\n accessModes\n selector {\n matchLabels\n matchExpressions {\n key\n values\n operator\n }\n }\n volumeName\n storageClassName\n volumeMode\n resources {\n limits\n requests\n }\n datasource {\n apiGroup\n kind\n name\n namespace\n displayName\n }\n dataSourceRef {\n apiGroup\n kind\n name\n namespace\n displayName\n }\n }\n serviceAccountName\n suspend\n status\n phase\n phaseMessage\n }\n }\n}\n "])));
|
|
239
|
+
export var DeleteRagDocument = gql(_templateObject73 || (_templateObject73 = _taggedTemplateLiteral(["\n mutation deleteRAG($input: DeleteRAGInput!) {\n RAG {\n deleteRAG(input: $input)\n }\n}\n "])));
|
|
240
|
+
export var ListRayClustersDocument = gql(_templateObject74 || (_templateObject74 = _taggedTemplateLiteral(["\n query listRayClusters($input: ListCommonInput!) {\n RayCluster {\n listRayClusters(input: $input) {\n totalCount\n hasNextPage\n nodes {\n __typename\n ... on RayCluster {\n index\n name\n headAddress\n dashboardHost\n pythonVersion\n }\n }\n }\n }\n}\n "])));
|
|
241
|
+
export var CreateVersionedDatasetDocument = gql(_templateObject75 || (_templateObject75 = _taggedTemplateLiteral(["\n mutation createVersionedDataset($input: CreateVersionedDatasetInput!) {\n VersionedDataset {\n createVersionedDataset(input: $input) {\n name\n displayName\n creator\n namespace\n version\n updateTimestamp\n creationTimestamp\n released\n syncStatus\n dataProcessStatus\n }\n }\n}\n "])));
|
|
242
|
+
export var UpdateVersionedDatasetDocument = gql(_templateObject76 || (_templateObject76 = _taggedTemplateLiteral(["\n mutation updateVersionedDataset($input: UpdateVersionedDatasetInput!) {\n VersionedDataset {\n updateVersionedDataset(input: $input) {\n name\n displayName\n }\n }\n}\n "])));
|
|
243
|
+
export var DeleteVersionedDatasetsDocument = gql(_templateObject77 || (_templateObject77 = _taggedTemplateLiteral(["\n mutation deleteVersionedDatasets($input: DeleteVersionedDatasetInput!) {\n VersionedDataset {\n deleteVersionedDatasets(input: $input)\n }\n}\n "])));
|
|
244
|
+
export var GetVersionedDatasetDocument = gql(_templateObject78 || (_templateObject78 = _taggedTemplateLiteral(["\n query getVersionedDataset($name: String!, $namespace: String!, $fileInput: FileFilter) {\n VersionedDataset {\n getVersionedDataset(name: $name, namespace: $namespace) {\n id\n name\n displayName\n description\n creator\n namespace\n version\n updateTimestamp\n creationTimestamp\n released\n syncStatus\n syncMsg\n dataProcessStatus\n dataProcessMsg\n files(input: $fileInput) {\n totalCount\n hasNextPage\n nodes {\n ... on F {\n path\n time\n fileType\n count\n size\n versions\n latestVersion\n creationTimestamp\n }\n }\n }\n }\n }\n}\n "])));
|
|
245
|
+
export var ListVersionedDatasetsDocument = gql(_templateObject79 || (_templateObject79 = _taggedTemplateLiteral(["\n query listVersionedDatasets($input: ListVersionedDatasetInput!, $fileInput: FileFilter) {\n VersionedDataset {\n listVersionedDatasets(input: $input) {\n totalCount\n hasNextPage\n nodes {\n ... on VersionedDataset {\n id\n name\n displayName\n description\n creator\n namespace\n version\n updateTimestamp\n creationTimestamp\n released\n syncStatus\n syncMsg\n dataProcessStatus\n dataProcessMsg\n files(input: $fileInput) {\n totalCount\n hasNextPage\n nodes {\n ... on F {\n path\n time\n fileType\n count\n size\n versions\n latestVersion\n creationTimestamp\n }\n }\n }\n }\n }\n }\n }\n}\n "])));
|
|
246
|
+
export var ListWorkersDocument = gql(_templateObject80 || (_templateObject80 = _taggedTemplateLiteral(["\n query listWorkers($input: ListWorkerInput!) {\n Worker {\n listWorkers(input: $input) {\n totalCount\n hasNextPage\n nodes {\n __typename\n ... on Worker {\n id\n creationTimestamp\n name\n namespace\n labels\n annotations\n creator\n displayName\n description\n status\n message\n updateTimestamp\n type\n model {\n name\n namespace\n kind\n apiGroup\n }\n api\n modelTypes\n replicas\n resources {\n cpu\n memory\n nvidiaGPU\n }\n matchExpressions {\n key\n operator\n values\n }\n additionalEnvs\n }\n }\n }\n }\n}\n "])));
|
|
247
|
+
export var GetWorkerDocument = gql(_templateObject81 || (_templateObject81 = _taggedTemplateLiteral(["\n query getWorker($name: String!, $namespace: String!) {\n Worker {\n getWorker(name: $name, namespace: $namespace) {\n id\n creationTimestamp\n name\n namespace\n labels\n annotations\n creator\n displayName\n description\n type\n status\n message\n updateTimestamp\n model {\n name\n namespace\n kind\n apiGroup\n }\n api\n modelTypes\n replicas\n resources {\n cpu\n memory\n nvidiaGPU\n }\n matchExpressions {\n key\n operator\n values\n }\n additionalEnvs\n storage {\n accessModes\n resources {\n limits\n requests\n }\n storageClassName\n }\n }\n }\n}\n "])));
|
|
248
|
+
export var CreateWorkerDocument = gql(_templateObject82 || (_templateObject82 = _taggedTemplateLiteral(["\n mutation createWorker($input: CreateWorkerInput!) {\n Worker {\n createWorker(input: $input) {\n id\n creationTimestamp\n name\n namespace\n labels\n annotations\n creator\n displayName\n description\n type\n status\n message\n updateTimestamp\n model {\n name\n namespace\n kind\n apiGroup\n }\n api\n modelTypes\n replicas\n resources {\n cpu\n memory\n nvidiaGPU\n }\n matchExpressions {\n key\n operator\n values\n }\n additionalEnvs\n storage {\n accessModes\n resources {\n limits\n requests\n }\n storageClassName\n }\n }\n }\n}\n "])));
|
|
249
|
+
export var UpdateWorkerDocument = gql(_templateObject83 || (_templateObject83 = _taggedTemplateLiteral(["\n mutation updateWorker($input: UpdateWorkerInput) {\n Worker {\n updateWorker(input: $input) {\n id\n creationTimestamp\n name\n namespace\n labels\n annotations\n creator\n displayName\n description\n type\n status\n message\n updateTimestamp\n replicas\n resources {\n cpu\n memory\n nvidiaGPU\n }\n api\n model {\n name\n namespace\n kind\n apiGroup\n }\n modelTypes\n matchExpressions {\n key\n operator\n values\n }\n additionalEnvs\n }\n }\n}\n "])));
|
|
250
|
+
export var DeleteWorkersDocument = gql(_templateObject84 || (_templateObject84 = _taggedTemplateLiteral(["\n mutation deleteWorkers($input: DeleteCommonInput) {\n Worker {\n deleteWorkers(input: $input)\n }\n}\n "])));
|
|
250
251
|
var defaultWrapper = function defaultWrapper(action, _operationName, _operationType, variables) {
|
|
251
252
|
return action();
|
|
252
253
|
};
|
|
@@ -568,6 +569,11 @@ export function getSdk(client) {
|
|
|
568
569
|
return client.request(ListPluginsDocument, variables, _objectSpread(_objectSpread({}, requestHeaders), wrappedRequestHeaders));
|
|
569
570
|
}, 'listPlugins', 'query', variables);
|
|
570
571
|
},
|
|
572
|
+
listPluginCategory: function listPluginCategory(variables, requestHeaders) {
|
|
573
|
+
return withWrapper(function (wrappedRequestHeaders) {
|
|
574
|
+
return client.request(ListPluginCategoryDocument, variables, _objectSpread(_objectSpread({}, requestHeaders), wrappedRequestHeaders));
|
|
575
|
+
}, 'listPluginCategory', 'query', variables);
|
|
576
|
+
},
|
|
571
577
|
getPlugin: function getPlugin(variables, requestHeaders) {
|
|
572
578
|
return withWrapper(function (wrappedRequestHeaders) {
|
|
573
579
|
return client.request(GetPluginDocument, variables, _objectSpread(_objectSpread({}, requestHeaders), wrappedRequestHeaders));
|
|
@@ -835,6 +841,11 @@ export function getSdkWithHooks(client) {
|
|
|
835
841
|
return sdk.listPlugins(variables);
|
|
836
842
|
}, config);
|
|
837
843
|
},
|
|
844
|
+
useListPluginCategory: function useListPluginCategory(variables, config) {
|
|
845
|
+
return useSWR(genKey('ListPluginCategory', variables), function () {
|
|
846
|
+
return sdk.listPluginCategory(variables);
|
|
847
|
+
}, config);
|
|
848
|
+
},
|
|
838
849
|
useGetPlugin: function useGetPlugin(variables, config) {
|
|
839
850
|
return useSWR(genKey('GetPlugin', variables), function () {
|
|
840
851
|
return sdk.getPlugin(variables);
|
package/dist/esm/taro.d.ts
CHANGED
|
@@ -241,6 +241,9 @@ export declare const initSdk: (options?: SdkOptions) => {
|
|
|
241
241
|
listPlugins(variables: import("./sdk").Exact<{
|
|
242
242
|
input: import("./sdk").ListPluginInput;
|
|
243
243
|
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").ListPluginsQuery>;
|
|
244
|
+
listPluginCategory(variables?: import("./sdk").Exact<{
|
|
245
|
+
[key: string]: never;
|
|
246
|
+
}> | undefined, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").ListPluginCategoryQuery>;
|
|
244
247
|
getPlugin(variables: import("./sdk").Exact<{
|
|
245
248
|
name: string;
|
|
246
249
|
namespace: string;
|
|
@@ -423,6 +426,9 @@ export declare const initSdkWithHooks: (options?: SdkOptions) => {
|
|
|
423
426
|
useListPlugins(variables: import("./sdk").Exact<{
|
|
424
427
|
input: import("./sdk").ListPluginInput;
|
|
425
428
|
}>, config?: Partial<import("swr/_internal").PublicConfiguration<import("./sdk").ListPluginsQuery, import("graphql-request/src/types").ClientError, import("swr/_internal").BareFetcher<any>>> | undefined): import("./useSWR").SWRResponsePro<import("./sdk").ListPluginsQuery, import("graphql-request/src/types").ClientError>;
|
|
429
|
+
useListPluginCategory(variables?: import("./sdk").Exact<{
|
|
430
|
+
[key: string]: never;
|
|
431
|
+
}> | undefined, config?: Partial<import("swr/_internal").PublicConfiguration<import("./sdk").ListPluginCategoryQuery, import("graphql-request/src/types").ClientError, import("swr/_internal").BareFetcher<any>>> | undefined): import("./useSWR").SWRResponsePro<import("./sdk").ListPluginCategoryQuery, import("graphql-request/src/types").ClientError>;
|
|
426
432
|
useGetPlugin(variables: import("./sdk").Exact<{
|
|
427
433
|
name: string;
|
|
428
434
|
namespace: string;
|
|
@@ -662,6 +668,9 @@ export declare const initSdkWithHooks: (options?: SdkOptions) => {
|
|
|
662
668
|
listPlugins(variables: import("./sdk").Exact<{
|
|
663
669
|
input: import("./sdk").ListPluginInput;
|
|
664
670
|
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").ListPluginsQuery>;
|
|
671
|
+
listPluginCategory(variables?: import("./sdk").Exact<{
|
|
672
|
+
[key: string]: never;
|
|
673
|
+
}> | undefined, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").ListPluginCategoryQuery>;
|
|
665
674
|
getPlugin(variables: import("./sdk").Exact<{
|
|
666
675
|
name: string;
|
|
667
676
|
namespace: string;
|
|
@@ -844,6 +853,9 @@ export declare const useSdk: (options?: SdkOptions) => {
|
|
|
844
853
|
useListPlugins(variables: import("./sdk").Exact<{
|
|
845
854
|
input: import("./sdk").ListPluginInput;
|
|
846
855
|
}>, config?: Partial<import("swr/_internal").PublicConfiguration<import("./sdk").ListPluginsQuery, import("graphql-request/src/types").ClientError, import("swr/_internal").BareFetcher<any>>> | undefined): import("./useSWR").SWRResponsePro<import("./sdk").ListPluginsQuery, import("graphql-request/src/types").ClientError>;
|
|
856
|
+
useListPluginCategory(variables?: import("./sdk").Exact<{
|
|
857
|
+
[key: string]: never;
|
|
858
|
+
}> | undefined, config?: Partial<import("swr/_internal").PublicConfiguration<import("./sdk").ListPluginCategoryQuery, import("graphql-request/src/types").ClientError, import("swr/_internal").BareFetcher<any>>> | undefined): import("./useSWR").SWRResponsePro<import("./sdk").ListPluginCategoryQuery, import("graphql-request/src/types").ClientError>;
|
|
847
859
|
useGetPlugin(variables: import("./sdk").Exact<{
|
|
848
860
|
name: string;
|
|
849
861
|
namespace: string;
|
|
@@ -1083,6 +1095,9 @@ export declare const useSdk: (options?: SdkOptions) => {
|
|
|
1083
1095
|
listPlugins(variables: import("./sdk").Exact<{
|
|
1084
1096
|
input: import("./sdk").ListPluginInput;
|
|
1085
1097
|
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").ListPluginsQuery>;
|
|
1098
|
+
listPluginCategory(variables?: import("./sdk").Exact<{
|
|
1099
|
+
[key: string]: never;
|
|
1100
|
+
}> | undefined, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").ListPluginCategoryQuery>;
|
|
1086
1101
|
getPlugin(variables: import("./sdk").Exact<{
|
|
1087
1102
|
name: string;
|
|
1088
1103
|
namespace: string;
|