@yuntijs/arcadia-bff-sdk 1.0.71 → 1.0.72

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 CHANGED
@@ -1,6 +1,6 @@
1
- # bff-sdk-template
1
+ # bff-sdk-generator
2
2
 
3
- template for bff sdk
3
+ generator for bff sdk
4
4
 
5
5
  ```bash
6
6
  # you should npm login first or run `npm set` command first, like: npm set //dev-npm.tenxcloud.net/:_authToken=xxxxx
@@ -10,4 +10,4 @@ docker build -t kubebb/gql-sdk-generator:latest -f Dockerfile --secret id=npmrc,
10
10
  ```bash
11
11
  # you should npm login first or run `npm set` command first, like: npm set //registry.npmjs.org/:_authToken=xxxxx
12
12
  docker run --rm --net=host --env GRAPH_API_ENDPOINT=http://0.0.0.0:8888/bff --env SDK_PACKAGE_NAME=@yuntijs/arcadia-bff-sdk --env SDK_YUNTI_NAME=ArcadiaBffSDK --env GRAPH_CLIENT_ENDPOINT=/kubeagi-apis/bff -v /graphql/to/path/schema:/schema -v ~/.npmrc:/root/.npmrc yuntijs/gql-sdk-generator:latest
13
- ```
13
+ ```
package/dist/esm/sdk.d.ts CHANGED
@@ -284,6 +284,8 @@ export type CreateDatasourceInput = {
284
284
  namespace: Scalars['String']['input'];
285
285
  /** 数据源为对象存储类型时的输入 */
286
286
  ossinput?: InputMaybe<OssInput>;
287
+ /** 数据源为Web数据时的输入 */
288
+ webinput?: InputMaybe<WebInput>;
287
289
  };
288
290
  export type CreateEmbedderInput = {
289
291
  /** 模型服务资源注释 */
@@ -296,6 +298,8 @@ export type CreateEmbedderInput = {
296
298
  endpointinput: EndpointInput;
297
299
  /** 模型服务资源标签 */
298
300
  labels?: InputMaybe<Scalars['Map']['input']>;
301
+ /** 此Embedder支持调用的模型列表 */
302
+ models?: InputMaybe<Array<Scalars['String']['input']>>;
299
303
  /** 模型服务资源名称(不可同名) */
300
304
  name: Scalars['String']['input'];
301
305
  /** 模型服务创建命名空间 */
@@ -338,6 +342,8 @@ export type CreateLlmInput = {
338
342
  endpointinput: EndpointInput;
339
343
  /** 模型服务资源标签 */
340
344
  labels?: InputMaybe<Scalars['Map']['input']>;
345
+ /** 此LLM支持调用的模型列表 */
346
+ models?: InputMaybe<Array<Scalars['String']['input']>>;
341
347
  /** 模型服务资源名称(不可同名) */
342
348
  name: Scalars['String']['input'];
343
349
  /** 模型服务创建命名空间 */
@@ -786,8 +792,15 @@ export type Datasource = {
786
792
  oss?: Maybe<Oss>;
787
793
  /** 数据源连接状态 */
788
794
  status?: Maybe<Scalars['String']['output']>;
795
+ /** 数据源类型 */
796
+ type: Scalars['String']['output'];
789
797
  /** 更新时间, 这里更新指文件同步,或者数据处理完成后,做的更新操作的时间 */
790
798
  updateTimestamp?: Maybe<Scalars['Time']['output']>;
799
+ /**
800
+ * Web数据访问信息
801
+ * 规则: 非空代表当前数据源为web在线数据
802
+ */
803
+ web?: Maybe<Web>;
791
804
  };
792
805
  export type DatasourceMutation = {
793
806
  __typename?: 'DatasourceMutation';
@@ -849,7 +862,7 @@ export type Embedder = {
849
862
  id?: Maybe<Scalars['String']['output']>;
850
863
  labels?: Maybe<Scalars['Map']['output']>;
851
864
  message?: Maybe<Scalars['String']['output']>;
852
- /** 此LLM支持调用的模型列表 */
865
+ /** 此Embedder支持调用的模型列表 */
853
866
  models?: Maybe<Array<Scalars['String']['output']>>;
854
867
  name: Scalars['String']['output'];
855
868
  namespace: Scalars['String']['output'];
@@ -1669,6 +1682,8 @@ export type UpdateDatasourceInput = {
1669
1682
  namespace: Scalars['String']['input'];
1670
1683
  /** 数据源为对象存储类型时的输入 */
1671
1684
  ossinput?: InputMaybe<OssInput>;
1685
+ /** 数据源为Web数据时的输入 */
1686
+ webinput?: InputMaybe<WebInput>;
1672
1687
  };
1673
1688
  export type UpdateEmbedderInput = {
1674
1689
  /** 模型服务资源注释 */
@@ -1681,6 +1696,8 @@ export type UpdateEmbedderInput = {
1681
1696
  endpointinput?: InputMaybe<EndpointInput>;
1682
1697
  /** 模型服务资源标签 */
1683
1698
  labels?: InputMaybe<Scalars['Map']['input']>;
1699
+ /** 此Embedder支持调用的模型列表 */
1700
+ models?: InputMaybe<Array<Scalars['String']['input']>>;
1684
1701
  /** 待修改模型服务资源名称(必填) */
1685
1702
  name: Scalars['String']['input'];
1686
1703
  /** 待修改模型服务创建命名空间(必填) */
@@ -1719,6 +1736,8 @@ export type UpdateLlmInput = {
1719
1736
  endpointinput?: InputMaybe<EndpointInput>;
1720
1737
  /** 模型服务资源标签 */
1721
1738
  labels?: InputMaybe<Scalars['Map']['input']>;
1739
+ /** 此LLM支持调用的模型列表 */
1740
+ models?: InputMaybe<Array<Scalars['String']['input']>>;
1722
1741
  /** 待修改模型服务资源名称(必填) */
1723
1742
  name: Scalars['String']['input'];
1724
1743
  /** 待修改模型服务创建命名空间(必填) */
@@ -1919,6 +1938,13 @@ export type VersionedDatasetQueryGetVersionedDatasetArgs = {
1919
1938
  export type VersionedDatasetQueryListVersionedDatasetsArgs = {
1920
1939
  input: ListVersionedDatasetInput;
1921
1940
  };
1941
+ export type Web = {
1942
+ __typename?: 'Web';
1943
+ recommendIntervalTime?: Maybe<Scalars['Int']['output']>;
1944
+ };
1945
+ export type WebInput = {
1946
+ recommendIntervalTime: Scalars['Int']['input'];
1947
+ };
1922
1948
  /** 本地模型服务节点 */
1923
1949
  export type Worker = {
1924
1950
  __typename?: 'Worker';
@@ -2717,6 +2743,7 @@ export type CreateDatasourceMutation = {
2717
2743
  creator?: string | null;
2718
2744
  displayName?: string | null;
2719
2745
  description?: string | null;
2746
+ type: string;
2720
2747
  creationTimestamp?: any | null;
2721
2748
  updateTimestamp?: any | null;
2722
2749
  status?: string | null;
@@ -2736,6 +2763,10 @@ export type CreateDatasourceMutation = {
2736
2763
  bucket?: string | null;
2737
2764
  object?: string | null;
2738
2765
  } | null;
2766
+ web?: {
2767
+ __typename?: 'Web';
2768
+ recommendIntervalTime?: number | null;
2769
+ } | null;
2739
2770
  };
2740
2771
  } | null;
2741
2772
  };
@@ -2754,6 +2785,7 @@ export type UpdateDatasourceMutation = {
2754
2785
  creator?: string | null;
2755
2786
  displayName?: string | null;
2756
2787
  description?: string | null;
2788
+ type: string;
2757
2789
  creationTimestamp?: any | null;
2758
2790
  updateTimestamp?: any | null;
2759
2791
  status?: string | null;
@@ -2773,6 +2805,10 @@ export type UpdateDatasourceMutation = {
2773
2805
  bucket?: string | null;
2774
2806
  object?: string | null;
2775
2807
  } | null;
2808
+ web?: {
2809
+ __typename?: 'Web';
2810
+ recommendIntervalTime?: number | null;
2811
+ } | null;
2776
2812
  };
2777
2813
  } | null;
2778
2814
  };
@@ -2809,6 +2845,7 @@ export type ListDatasourcesQuery = {
2809
2845
  creator?: string | null;
2810
2846
  displayName?: string | null;
2811
2847
  description?: string | null;
2848
+ type: string;
2812
2849
  creationTimestamp?: any | null;
2813
2850
  updateTimestamp?: any | null;
2814
2851
  status?: string | null;
@@ -2828,6 +2865,10 @@ export type ListDatasourcesQuery = {
2828
2865
  bucket?: string | null;
2829
2866
  object?: string | null;
2830
2867
  } | null;
2868
+ web?: {
2869
+ __typename?: 'Web';
2870
+ recommendIntervalTime?: number | null;
2871
+ } | null;
2831
2872
  } | {
2832
2873
  __typename: 'Embedder';
2833
2874
  } | {
@@ -2866,6 +2907,7 @@ export type GetDatasourceQuery = {
2866
2907
  creator?: string | null;
2867
2908
  displayName?: string | null;
2868
2909
  description?: string | null;
2910
+ type: string;
2869
2911
  creationTimestamp?: any | null;
2870
2912
  updateTimestamp?: any | null;
2871
2913
  status?: string | null;
@@ -2885,6 +2927,10 @@ export type GetDatasourceQuery = {
2885
2927
  bucket?: string | null;
2886
2928
  object?: string | null;
2887
2929
  } | null;
2930
+ web?: {
2931
+ __typename?: 'Web';
2932
+ recommendIntervalTime?: number | null;
2933
+ } | null;
2888
2934
  };
2889
2935
  } | null;
2890
2936
  };
package/dist/esm/sdk.js CHANGED
@@ -179,11 +179,11 @@ export var GetDatasetDocument = gql(_templateObject18 || (_templateObject18 = _t
179
179
  export var CreateDatasetDocument = gql(_templateObject19 || (_templateObject19 = _taggedTemplateLiteral(["\n mutation createDataset($input: CreateDatasetInput) {\n Dataset {\n createDataset(input: $input) {\n name\n displayName\n labels\n }\n }\n}\n "])));
180
180
  export var UpdateDatasetDocument = gql(_templateObject20 || (_templateObject20 = _taggedTemplateLiteral(["\n mutation updateDataset($input: UpdateDatasetInput) {\n Dataset {\n updateDataset(input: $input) {\n name\n displayName\n labels\n }\n }\n}\n "])));
181
181
  export var DeleteDatasetsDocument = gql(_templateObject21 || (_templateObject21 = _taggedTemplateLiteral(["\n mutation deleteDatasets($input: DeleteCommonInput) {\n Dataset {\n deleteDatasets(input: $input)\n }\n}\n "])));
182
- export var CreateDatasourceDocument = gql(_templateObject22 || (_templateObject22 = _taggedTemplateLiteral(["\n mutation createDatasource($input: CreateDatasourceInput!) {\n Datasource {\n createDatasource(input: $input) {\n id\n name\n namespace\n creator\n displayName\n description\n endpoint {\n url\n authSecret {\n kind\n name\n }\n insecure\n }\n oss {\n bucket\n object\n }\n creationTimestamp\n updateTimestamp\n status\n message\n }\n }\n}\n "])));
183
- export var UpdateDatasourceDocument = gql(_templateObject23 || (_templateObject23 = _taggedTemplateLiteral(["\n mutation updateDatasource($input: UpdateDatasourceInput) {\n Datasource {\n updateDatasource(input: $input) {\n id\n name\n namespace\n creator\n displayName\n description\n endpoint {\n url\n authSecret {\n kind\n name\n }\n insecure\n }\n oss {\n bucket\n object\n }\n creationTimestamp\n updateTimestamp\n status\n message\n }\n }\n}\n "])));
182
+ export var CreateDatasourceDocument = gql(_templateObject22 || (_templateObject22 = _taggedTemplateLiteral(["\n mutation createDatasource($input: CreateDatasourceInput!) {\n Datasource {\n createDatasource(input: $input) {\n id\n name\n namespace\n creator\n displayName\n description\n endpoint {\n url\n authSecret {\n kind\n name\n }\n insecure\n }\n type\n oss {\n bucket\n object\n }\n web {\n recommendIntervalTime\n }\n creationTimestamp\n updateTimestamp\n status\n message\n }\n }\n}\n "])));
183
+ export var UpdateDatasourceDocument = gql(_templateObject23 || (_templateObject23 = _taggedTemplateLiteral(["\n mutation updateDatasource($input: UpdateDatasourceInput) {\n Datasource {\n updateDatasource(input: $input) {\n id\n name\n namespace\n creator\n displayName\n description\n endpoint {\n url\n authSecret {\n kind\n name\n }\n insecure\n }\n type\n oss {\n bucket\n object\n }\n web {\n recommendIntervalTime\n }\n creationTimestamp\n updateTimestamp\n status\n message\n }\n }\n}\n "])));
184
184
  export var DeleteDatasourcesDocument = gql(_templateObject24 || (_templateObject24 = _taggedTemplateLiteral(["\n mutation deleteDatasources($input: DeleteCommonInput!) {\n Datasource {\n deleteDatasources(input: $input)\n }\n}\n "])));
185
- export var ListDatasourcesDocument = gql(_templateObject25 || (_templateObject25 = _taggedTemplateLiteral(["\n query listDatasources($input: ListCommonInput!) {\n Datasource {\n listDatasources(input: $input) {\n totalCount\n hasNextPage\n nodes {\n __typename\n ... on Datasource {\n id\n name\n namespace\n creator\n displayName\n description\n endpoint {\n url\n authSecret {\n kind\n name\n }\n insecure\n }\n oss {\n bucket\n object\n }\n creationTimestamp\n updateTimestamp\n status\n message\n }\n }\n }\n }\n}\n "])));
186
- export var GetDatasourceDocument = gql(_templateObject26 || (_templateObject26 = _taggedTemplateLiteral(["\n query getDatasource($name: String!, $namespace: String!) {\n Datasource {\n getDatasource(name: $name, namespace: $namespace) {\n id\n name\n namespace\n creator\n displayName\n description\n endpoint {\n url\n authSecret {\n kind\n name\n }\n insecure\n }\n oss {\n bucket\n object\n }\n creationTimestamp\n updateTimestamp\n status\n message\n }\n }\n}\n "])));
185
+ export var ListDatasourcesDocument = gql(_templateObject25 || (_templateObject25 = _taggedTemplateLiteral(["\n query listDatasources($input: ListCommonInput!) {\n Datasource {\n listDatasources(input: $input) {\n totalCount\n hasNextPage\n nodes {\n __typename\n ... on Datasource {\n id\n name\n namespace\n creator\n displayName\n description\n endpoint {\n url\n authSecret {\n kind\n name\n }\n insecure\n }\n type\n oss {\n bucket\n object\n }\n web {\n recommendIntervalTime\n }\n creationTimestamp\n updateTimestamp\n status\n message\n }\n }\n }\n }\n}\n "])));
186
+ export var GetDatasourceDocument = gql(_templateObject26 || (_templateObject26 = _taggedTemplateLiteral(["\n query getDatasource($name: String!, $namespace: String!) {\n Datasource {\n getDatasource(name: $name, namespace: $namespace) {\n id\n name\n namespace\n creator\n displayName\n description\n endpoint {\n url\n authSecret {\n kind\n name\n }\n insecure\n }\n type\n oss {\n bucket\n object\n }\n web {\n recommendIntervalTime\n }\n creationTimestamp\n updateTimestamp\n status\n message\n }\n }\n}\n "])));
187
187
  export var CheckDatasourceDocument = gql(_templateObject27 || (_templateObject27 = _taggedTemplateLiteral(["\n query checkDatasource($input: CreateDatasourceInput!) {\n Datasource {\n checkDatasource(input: $input) {\n name\n namespace\n status\n message\n }\n }\n}\n "])));
188
188
  export var CreateEmbedderDocument = gql(_templateObject28 || (_templateObject28 = _taggedTemplateLiteral(["\n mutation createEmbedder($input: CreateEmbedderInput!) {\n Embedder {\n createEmbedder(input: $input) {\n name\n namespace\n labels\n annotations\n displayName\n description\n type\n baseUrl\n models\n provider\n updateTimestamp\n status\n message\n }\n }\n}\n "])));
189
189
  export var UpdateEmbedderDocument = gql(_templateObject29 || (_templateObject29 = _taggedTemplateLiteral(["\n mutation updateEmbedder($input: UpdateEmbedderInput) {\n Embedder {\n updateEmbedder(input: $input) {\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 }\n}\n "])));