@yuntijs/arcadia-bff-sdk 1.2.59 → 1.2.60

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/sdk.d.ts CHANGED
@@ -587,6 +587,21 @@ export type CreateRagInput = {
587
587
  storage?: InputMaybe<PersistentVolumeClaimSpecInput>;
588
588
  suspend?: InputMaybe<Scalars['Boolean']['input']>;
589
589
  };
590
+ export type CreateSftInput = {
591
+ annotations?: InputMaybe<Scalars['Map']['input']>;
592
+ baseModel: TypedObjectReferenceInput;
593
+ datasets: Array<Scalars['String']['input']>;
594
+ description?: InputMaybe<Scalars['String']['input']>;
595
+ displayName?: InputMaybe<Scalars['String']['input']>;
596
+ labels?: InputMaybe<Scalars['Map']['input']>;
597
+ metrics: Array<SftMetricInput>;
598
+ name: Scalars['String']['input'];
599
+ namespace: Scalars['String']['input'];
600
+ params?: InputMaybe<Scalars['String']['input']>;
601
+ serviceAccountName?: InputMaybe<Scalars['String']['input']>;
602
+ storage?: InputMaybe<PersistentVolumeClaimSpecInput>;
603
+ suspend?: InputMaybe<Scalars['Boolean']['input']>;
604
+ };
590
605
  export type CreateTuningDataSetInput = {
591
606
  /** 训练数据集的名字 */
592
607
  name: Scalars['String']['input'];
@@ -1922,6 +1937,7 @@ export type Mutation = {
1922
1937
  ModelService?: Maybe<ModelServiceMutation>;
1923
1938
  Plugin?: Maybe<PluginMutation>;
1924
1939
  RAG?: Maybe<RagMutation>;
1940
+ SFT?: Maybe<SftMutation>;
1925
1941
  TuningDataSet?: Maybe<TuningDataSetMutation>;
1926
1942
  VersionedDataset?: Maybe<VersionedDatasetMutation>;
1927
1943
  Worker?: Maybe<WorkerMutation>;
@@ -1968,7 +1984,7 @@ export type OssInput = {
1968
1984
  bucket: Scalars['String']['input'];
1969
1985
  object?: InputMaybe<Scalars['String']['input']>;
1970
1986
  };
1971
- export type PageNode = AgentMetadata | AgentPrompt | AgentRelease | AgentReleaseHistory | Dataset | Datasource | Embedder | F | KnowledgeBase | KnowledgeBaseFile | KnowledgeBaseFileChunk | Llm | Model | ModelService | Node | Plugin | Rag | RayCluster | Reranker | TuningDataSet | TuningVersionedDataset | TuningVersionedDatasetContent | TuningVersionedDatasetFiles | VersionedDataset | Worker | Workflow;
1987
+ export type PageNode = AgentMetadata | AgentPrompt | AgentRelease | AgentReleaseHistory | Dataset | Datasource | Embedder | F | KnowledgeBase | KnowledgeBaseFile | KnowledgeBaseFileChunk | Llm | Model | ModelService | Node | Plugin | Rag | RayCluster | Reranker | Sft | TuningDataSet | TuningVersionedDataset | TuningVersionedDatasetContent | TuningVersionedDatasetFiles | VersionedDataset | Worker | Workflow;
1972
1988
  export type PaginatedDataProcessItem = {
1973
1989
  __typename?: 'PaginatedDataProcessItem';
1974
1990
  data?: Maybe<Array<DataProcessItem>>;
@@ -2162,6 +2178,7 @@ export type Query = {
2162
2178
  RAG?: Maybe<RagQuery>;
2163
2179
  RayCluster?: Maybe<RayClusterQuery>;
2164
2180
  Reranker?: Maybe<RerankerQuery>;
2181
+ SFT?: Maybe<SftQuery>;
2165
2182
  TuningDataSet?: Maybe<TuningDataSetQuery>;
2166
2183
  VersionedDataset?: Maybe<VersionedDatasetQuery>;
2167
2184
  Worker?: Maybe<WorkerQuery>;
@@ -2427,6 +2444,130 @@ export type ResourcesInput = {
2427
2444
  /** gpu配置 */
2428
2445
  nvidiaGPU?: InputMaybe<Scalars['String']['input']>;
2429
2446
  };
2447
+ export type Sft = {
2448
+ __typename?: 'SFT';
2449
+ ID: Scalars['ID']['output'];
2450
+ /** 添加一些辅助性记录信息 */
2451
+ annotations?: Maybe<Scalars['Map']['output']>;
2452
+ /**
2453
+ * SFT 微调任务所使用的基座模型
2454
+ * 规则:必填
2455
+ */
2456
+ baseModel: TypedObjectReference;
2457
+ /** 微调完成时间, 记录微调任务完成的时间(不包括合并导出,未完成则该字段为空) */
2458
+ completeTimestamp?: Maybe<Scalars['Time']['output']>;
2459
+ /** 创建时间 */
2460
+ creationTimestamp?: Maybe<Scalars['Time']['output']>;
2461
+ /**
2462
+ * 创建者,为当前用户的用户名
2463
+ * 规则: webhook启用后自动添加,默认为空
2464
+ */
2465
+ creator?: Maybe<Scalars['String']['output']>;
2466
+ /**
2467
+ * SFT 微调任务所使用的数据集
2468
+ * 规则:必填,可为复数,内容为版本数据集内容的 id
2469
+ */
2470
+ datasets: Array<Scalars['String']['output']>;
2471
+ /** 描述信息 */
2472
+ description?: Maybe<Scalars['String']['output']>;
2473
+ /** 展示名 */
2474
+ displayName?: Maybe<Scalars['String']['output']>;
2475
+ /** 一些用于标记,选择的的标签 */
2476
+ labels?: Maybe<Scalars['Map']['output']>;
2477
+ /**
2478
+ * SFT 微调任务指定的参数列表
2479
+ * 规则:必填
2480
+ */
2481
+ metrics: Array<SftMetric>;
2482
+ /**
2483
+ * SFT 微调任务名
2484
+ * 规则:必填
2485
+ */
2486
+ name: Scalars['String']['output'];
2487
+ /**
2488
+ * SFT 微调任务所在的 namespace
2489
+ * 规则:必填
2490
+ */
2491
+ namespace: Scalars['String']['output'];
2492
+ /**
2493
+ * SFT 微调任务的附加参数
2494
+ * 规则:非必填,预留
2495
+ */
2496
+ params?: Maybe<Scalars['String']['output']>;
2497
+ /**
2498
+ * SFT 微调任务运行阶段
2499
+ * 规则:阶段分为以下几种:
2500
+ * - "init": 创建 pvc 及初始化
2501
+ * - "download":下载基座模型文件
2502
+ * - "prepare":对数据集(及模型,如有需要)作预处理
2503
+ * - "tuning":微调运行中
2504
+ * - "standby":微调完成,可供测试
2505
+ * - "export":将生成的适配器与基座模型合并(全量微调跳过该阶段)
2506
+ * - "upload":上传合并模型至模型仓库
2507
+ * - "closed":微调任务结束
2508
+ */
2509
+ phase?: Maybe<Scalars['String']['output']>;
2510
+ /** 当前阶段产生的辅助信息 */
2511
+ phaseMessage?: Maybe<Scalars['String']['output']>;
2512
+ /** SFT 微调过程中用到的serviceAccount, 默认是default */
2513
+ serviceAccountName: Scalars['String']['output'];
2514
+ /** SFT 微调状态 */
2515
+ status: Scalars['String']['output'];
2516
+ /** SFT 微调阶段之间需要通过pvc传递数据 */
2517
+ storage: PersistentVolumeClaimSpec;
2518
+ /** SFT 微调过程是否暂停,true 表示已经暂停,false 表示没有暂停 */
2519
+ suspend: Scalars['Boolean']['output'];
2520
+ /** 更新时间 */
2521
+ updateTimestamp?: Maybe<Scalars['Time']['output']>;
2522
+ };
2523
+ export type SftDataset = {
2524
+ __typename?: 'SFTDataset';
2525
+ source?: Maybe<Scalars['String']['output']>;
2526
+ version?: Maybe<Scalars['String']['output']>;
2527
+ };
2528
+ export type SftMetric = {
2529
+ __typename?: 'SFTMetric';
2530
+ metricKind?: Maybe<Scalars['String']['output']>;
2531
+ metricName?: Maybe<Scalars['String']['output']>;
2532
+ metricValue?: Maybe<Scalars['String']['output']>;
2533
+ };
2534
+ export type SftMetricInput = {
2535
+ metricKind?: InputMaybe<Scalars['String']['input']>;
2536
+ metricName?: InputMaybe<Scalars['String']['input']>;
2537
+ metricValue?: InputMaybe<Scalars['String']['input']>;
2538
+ };
2539
+ export type SftMutation = {
2540
+ __typename?: 'SFTMutation';
2541
+ createSFT: Sft;
2542
+ deleteSFT?: Maybe<Scalars['Void']['output']>;
2543
+ exportSFT?: Maybe<Scalars['Void']['output']>;
2544
+ updateSFT: Sft;
2545
+ };
2546
+ export type SftMutationCreateSftArgs = {
2547
+ input: CreateSftInput;
2548
+ };
2549
+ export type SftMutationDeleteSftArgs = {
2550
+ input: DeleteCommonInput;
2551
+ };
2552
+ export type SftMutationExportSftArgs = {
2553
+ name: Scalars['String']['input'];
2554
+ namespace: Scalars['String']['input'];
2555
+ };
2556
+ export type SftMutationUpdateSftArgs = {
2557
+ input: UpdateSftInput;
2558
+ };
2559
+ export type SftQuery = {
2560
+ __typename?: 'SFTQuery';
2561
+ getSFT: Sft;
2562
+ listSFT: PaginatedResult;
2563
+ };
2564
+ export type SftQueryGetSftArgs = {
2565
+ name: Scalars['String']['input'];
2566
+ namespace: Scalars['String']['input'];
2567
+ };
2568
+ export type SftQueryListSftArgs = {
2569
+ input: ListCommonInput;
2570
+ };
2430
2571
  export declare enum SelectCond {
2431
2572
  /** 提供包括该 ns 及官方资源在内的所有资源 */
2432
2573
  All = "ALL",
@@ -2870,6 +3011,21 @@ export type UpdateRagInput = {
2870
3011
  storage?: InputMaybe<PersistentVolumeClaimSpecInput>;
2871
3012
  suspend?: InputMaybe<Scalars['Boolean']['input']>;
2872
3013
  };
3014
+ export type UpdateSftInput = {
3015
+ annotations?: InputMaybe<Scalars['Map']['input']>;
3016
+ baseModel?: InputMaybe<TypedObjectReferenceInput>;
3017
+ datasets: Array<Scalars['String']['input']>;
3018
+ description?: InputMaybe<Scalars['String']['input']>;
3019
+ displayName?: InputMaybe<Scalars['String']['input']>;
3020
+ labels?: InputMaybe<Scalars['Map']['input']>;
3021
+ metrics: Array<SftMetricInput>;
3022
+ name: Scalars['String']['input'];
3023
+ namespace: Scalars['String']['input'];
3024
+ params?: InputMaybe<Array<Scalars['String']['input']>>;
3025
+ serviceAccountName?: InputMaybe<Scalars['String']['input']>;
3026
+ storage?: InputMaybe<PersistentVolumeClaimSpecInput>;
3027
+ suspend?: InputMaybe<Scalars['Boolean']['input']>;
3028
+ };
2873
3029
  export type UpdateVersionedDatasetInput = {
2874
3030
  /** 传递方式同label */
2875
3031
  annotations?: InputMaybe<Scalars['Map']['input']>;
@@ -3567,6 +3723,8 @@ export type GetAgentLatestReleaseInEachPlatformQuery = {
3567
3723
  __typename?: 'RayCluster';
3568
3724
  } | {
3569
3725
  __typename?: 'Reranker';
3726
+ } | {
3727
+ __typename?: 'SFT';
3570
3728
  } | {
3571
3729
  __typename?: 'TuningDataSet';
3572
3730
  } | {
@@ -3651,6 +3809,8 @@ export type GetAgentReleaseHistoryQuery = {
3651
3809
  __typename?: 'RayCluster';
3652
3810
  } | {
3653
3811
  __typename?: 'Reranker';
3812
+ } | {
3813
+ __typename?: 'SFT';
3654
3814
  } | {
3655
3815
  __typename?: 'TuningDataSet';
3656
3816
  } | {
@@ -3737,6 +3897,8 @@ export type ListAgentsQuery = {
3737
3897
  __typename?: 'RayCluster';
3738
3898
  } | {
3739
3899
  __typename?: 'Reranker';
3900
+ } | {
3901
+ __typename?: 'SFT';
3740
3902
  } | {
3741
3903
  __typename?: 'TuningDataSet';
3742
3904
  } | {
@@ -3812,6 +3974,8 @@ export type ListAgentPromptQuery = {
3812
3974
  __typename?: 'RayCluster';
3813
3975
  } | {
3814
3976
  __typename?: 'Reranker';
3977
+ } | {
3978
+ __typename?: 'SFT';
3815
3979
  } | {
3816
3980
  __typename?: 'TuningDataSet';
3817
3981
  } | {
@@ -4196,6 +4360,8 @@ export type ListDatasetsQuery = {
4196
4360
  __typename?: 'RayCluster';
4197
4361
  } | {
4198
4362
  __typename?: 'Reranker';
4363
+ } | {
4364
+ __typename?: 'SFT';
4199
4365
  } | {
4200
4366
  __typename?: 'TuningDataSet';
4201
4367
  } | {
@@ -4253,6 +4419,8 @@ export type ListDatasetsQuery = {
4253
4419
  __typename?: 'RayCluster';
4254
4420
  } | {
4255
4421
  __typename?: 'Reranker';
4422
+ } | {
4423
+ __typename?: 'SFT';
4256
4424
  } | {
4257
4425
  __typename?: 'TuningDataSet';
4258
4426
  } | {
@@ -4333,6 +4501,8 @@ export type GetDatasetQuery = {
4333
4501
  __typename?: 'RayCluster';
4334
4502
  } | {
4335
4503
  __typename?: 'Reranker';
4504
+ } | {
4505
+ __typename?: 'SFT';
4336
4506
  } | {
4337
4507
  __typename?: 'TuningDataSet';
4338
4508
  } | {
@@ -4590,6 +4760,8 @@ export type ListDatasourcesQuery = {
4590
4760
  __typename: 'RayCluster';
4591
4761
  } | {
4592
4762
  __typename: 'Reranker';
4763
+ } | {
4764
+ __typename: 'SFT';
4593
4765
  } | {
4594
4766
  __typename: 'TuningDataSet';
4595
4767
  } | {
@@ -4733,6 +4905,8 @@ export type ListEmbeddersQuery = {
4733
4905
  __typename?: 'RayCluster';
4734
4906
  } | {
4735
4907
  __typename?: 'Reranker';
4908
+ } | {
4909
+ __typename?: 'SFT';
4736
4910
  } | {
4737
4911
  __typename?: 'TuningDataSet';
4738
4912
  } | {
@@ -4854,6 +5028,8 @@ export type ListKnowledgeBasesQuery = {
4854
5028
  __typename?: 'RayCluster';
4855
5029
  } | {
4856
5030
  __typename?: 'Reranker';
5031
+ } | {
5032
+ __typename?: 'SFT';
4857
5033
  } | {
4858
5034
  __typename?: 'TuningDataSet';
4859
5035
  } | {
@@ -5087,6 +5263,8 @@ export type ListKnowledgeBaseFilesQuery = {
5087
5263
  __typename?: 'RayCluster';
5088
5264
  } | {
5089
5265
  __typename?: 'Reranker';
5266
+ } | {
5267
+ __typename?: 'SFT';
5090
5268
  } | {
5091
5269
  __typename?: 'TuningDataSet';
5092
5270
  } | {
@@ -5190,6 +5368,8 @@ export type ListKnowledgeBaseFileChunksQuery = {
5190
5368
  __typename?: 'RayCluster';
5191
5369
  } | {
5192
5370
  __typename?: 'Reranker';
5371
+ } | {
5372
+ __typename?: 'SFT';
5193
5373
  } | {
5194
5374
  __typename?: 'TuningDataSet';
5195
5375
  } | {
@@ -5270,6 +5450,8 @@ export type ListLlMsQuery = {
5270
5450
  __typename?: 'RayCluster';
5271
5451
  } | {
5272
5452
  __typename?: 'Reranker';
5453
+ } | {
5454
+ __typename?: 'SFT';
5273
5455
  } | {
5274
5456
  __typename?: 'TuningDataSet';
5275
5457
  } | {
@@ -5418,6 +5600,8 @@ export type ListModelsQuery = {
5418
5600
  __typename?: 'RayCluster';
5419
5601
  } | {
5420
5602
  __typename?: 'Reranker';
5603
+ } | {
5604
+ __typename?: 'SFT';
5421
5605
  } | {
5422
5606
  __typename?: 'TuningDataSet';
5423
5607
  } | {
@@ -5446,6 +5630,8 @@ export type ListModelsQuery = {
5446
5630
  __typename: 'RayCluster';
5447
5631
  } | {
5448
5632
  __typename: 'Reranker';
5633
+ } | {
5634
+ __typename: 'SFT';
5449
5635
  } | {
5450
5636
  __typename: 'TuningDataSet';
5451
5637
  } | {
@@ -5541,6 +5727,8 @@ export type GetModelQuery = {
5541
5727
  __typename?: 'RayCluster';
5542
5728
  } | {
5543
5729
  __typename?: 'Reranker';
5730
+ } | {
5731
+ __typename?: 'SFT';
5544
5732
  } | {
5545
5733
  __typename?: 'TuningDataSet';
5546
5734
  } | {
@@ -5806,6 +5994,8 @@ export type ListModelServicesQuery = {
5806
5994
  __typename: 'RayCluster';
5807
5995
  } | {
5808
5996
  __typename: 'Reranker';
5997
+ } | {
5998
+ __typename: 'SFT';
5809
5999
  } | {
5810
6000
  __typename: 'TuningDataSet';
5811
6001
  } | {
@@ -5911,6 +6101,8 @@ export type ListNodesQuery = {
5911
6101
  __typename: 'RayCluster';
5912
6102
  } | {
5913
6103
  __typename: 'Reranker';
6104
+ } | {
6105
+ __typename: 'SFT';
5914
6106
  } | {
5915
6107
  __typename: 'TuningDataSet';
5916
6108
  } | {
@@ -6001,6 +6193,8 @@ export type ListPluginsQuery = {
6001
6193
  __typename: 'RayCluster';
6002
6194
  } | {
6003
6195
  __typename: 'Reranker';
6196
+ } | {
6197
+ __typename: 'SFT';
6004
6198
  } | {
6005
6199
  __typename: 'TuningDataSet';
6006
6200
  } | {
@@ -6272,6 +6466,8 @@ export type ListRagQuery = {
6272
6466
  __typename?: 'RayCluster';
6273
6467
  } | {
6274
6468
  __typename?: 'Reranker';
6469
+ } | {
6470
+ __typename?: 'SFT';
6275
6471
  } | {
6276
6472
  __typename?: 'TuningDataSet';
6277
6473
  } | {
@@ -6626,6 +6822,8 @@ export type ListRayClustersQuery = {
6626
6822
  pythonVersion?: string | null;
6627
6823
  } | {
6628
6824
  __typename: 'Reranker';
6825
+ } | {
6826
+ __typename: 'SFT';
6629
6827
  } | {
6630
6828
  __typename: 'TuningDataSet';
6631
6829
  } | {
@@ -6706,6 +6904,8 @@ export type ListRerankersQuery = {
6706
6904
  updateTimestamp?: any | null;
6707
6905
  status?: string | null;
6708
6906
  message?: string | null;
6907
+ } | {
6908
+ __typename?: 'SFT';
6709
6909
  } | {
6710
6910
  __typename?: 'TuningDataSet';
6711
6911
  } | {
@@ -6797,6 +6997,8 @@ export type ListTuningDataSetQuery = {
6797
6997
  __typename?: 'RayCluster';
6798
6998
  } | {
6799
6999
  __typename?: 'Reranker';
7000
+ } | {
7001
+ __typename?: 'SFT';
6800
7002
  } | {
6801
7003
  __typename?: 'TuningDataSet';
6802
7004
  ID: string;
@@ -6847,6 +7049,8 @@ export type ListTuningDataSetQuery = {
6847
7049
  __typename?: 'RayCluster';
6848
7050
  } | {
6849
7051
  __typename?: 'Reranker';
7052
+ } | {
7053
+ __typename?: 'SFT';
6850
7054
  } | {
6851
7055
  __typename?: 'TuningDataSet';
6852
7056
  } | {
@@ -6943,6 +7147,8 @@ export type GetTuningDataSetQuery = {
6943
7147
  __typename?: 'RayCluster';
6944
7148
  } | {
6945
7149
  __typename?: 'Reranker';
7150
+ } | {
7151
+ __typename?: 'SFT';
6946
7152
  } | {
6947
7153
  __typename?: 'TuningDataSet';
6948
7154
  } | {
@@ -7026,6 +7232,8 @@ export type GetVersionQuery = {
7026
7232
  __typename?: 'RayCluster';
7027
7233
  } | {
7028
7234
  __typename?: 'Reranker';
7235
+ } | {
7236
+ __typename?: 'SFT';
7029
7237
  } | {
7030
7238
  __typename?: 'TuningDataSet';
7031
7239
  } | {
@@ -7101,6 +7309,8 @@ export type GetVersionContentQuery = {
7101
7309
  __typename?: 'RayCluster';
7102
7310
  } | {
7103
7311
  __typename?: 'Reranker';
7312
+ } | {
7313
+ __typename?: 'SFT';
7104
7314
  } | {
7105
7315
  __typename?: 'TuningDataSet';
7106
7316
  } | {
@@ -7230,6 +7440,368 @@ export type LoadVersionFilesMutation = {
7230
7440
  loadVersionFiles?: any | null;
7231
7441
  } | null;
7232
7442
  };
7443
+ export type ListSftQueryVariables = Exact<{
7444
+ input: ListCommonInput;
7445
+ }>;
7446
+ export type ListSftQuery = {
7447
+ __typename?: 'Query';
7448
+ SFT?: {
7449
+ __typename?: 'SFTQuery';
7450
+ listSFT: {
7451
+ __typename?: 'PaginatedResult';
7452
+ totalCount: number;
7453
+ hasNextPage: boolean;
7454
+ nodes?: Array<{
7455
+ __typename?: 'AgentMetadata';
7456
+ } | {
7457
+ __typename?: 'AgentPrompt';
7458
+ } | {
7459
+ __typename?: 'AgentRelease';
7460
+ } | {
7461
+ __typename?: 'AgentReleaseHistory';
7462
+ } | {
7463
+ __typename?: 'Dataset';
7464
+ } | {
7465
+ __typename?: 'Datasource';
7466
+ } | {
7467
+ __typename?: 'Embedder';
7468
+ } | {
7469
+ __typename?: 'F';
7470
+ } | {
7471
+ __typename?: 'KnowledgeBase';
7472
+ } | {
7473
+ __typename?: 'KnowledgeBaseFile';
7474
+ } | {
7475
+ __typename?: 'KnowledgeBaseFileChunk';
7476
+ } | {
7477
+ __typename?: 'LLM';
7478
+ } | {
7479
+ __typename?: 'Model';
7480
+ } | {
7481
+ __typename?: 'ModelService';
7482
+ } | {
7483
+ __typename?: 'Node';
7484
+ } | {
7485
+ __typename?: 'Plugin';
7486
+ } | {
7487
+ __typename?: 'RAG';
7488
+ } | {
7489
+ __typename?: 'RayCluster';
7490
+ } | {
7491
+ __typename?: 'Reranker';
7492
+ } | {
7493
+ __typename?: 'SFT';
7494
+ name: string;
7495
+ namespace: string;
7496
+ creator?: string | null;
7497
+ displayName?: string | null;
7498
+ description?: string | null;
7499
+ creationTimestamp?: any | null;
7500
+ updateTimestamp?: any | null;
7501
+ completeTimestamp?: any | null;
7502
+ datasets: Array<string>;
7503
+ serviceAccountName: string;
7504
+ suspend: boolean;
7505
+ status: string;
7506
+ phase?: string | null;
7507
+ phaseMessage?: string | null;
7508
+ storage: {
7509
+ __typename?: 'PersistentVolumeClaimSpec';
7510
+ accessModes: Array<string>;
7511
+ volumeName?: string | null;
7512
+ storageClassName?: string | null;
7513
+ volumeMode?: string | null;
7514
+ selector?: {
7515
+ __typename?: 'Selector';
7516
+ matchLabels?: any | null;
7517
+ matchExpressions?: Array<{
7518
+ __typename?: 'LabelSelectorRequirement';
7519
+ key?: string | null;
7520
+ values?: Array<string | null> | null;
7521
+ operator?: string | null;
7522
+ } | null> | null;
7523
+ } | null;
7524
+ resources?: {
7525
+ __typename?: 'Resource';
7526
+ limits?: any | null;
7527
+ requests?: any | null;
7528
+ } | null;
7529
+ datasource?: {
7530
+ __typename?: 'TypedObjectReference';
7531
+ apiGroup?: string | null;
7532
+ kind: string;
7533
+ name: string;
7534
+ namespace?: string | null;
7535
+ displayName?: string | null;
7536
+ } | null;
7537
+ dataSourceRef?: {
7538
+ __typename?: 'TypedObjectReference';
7539
+ apiGroup?: string | null;
7540
+ kind: string;
7541
+ name: string;
7542
+ namespace?: string | null;
7543
+ displayName?: string | null;
7544
+ } | null;
7545
+ };
7546
+ baseModel: {
7547
+ __typename?: 'TypedObjectReference';
7548
+ kind: string;
7549
+ name: string;
7550
+ namespace?: string | null;
7551
+ displayName?: string | null;
7552
+ };
7553
+ } | {
7554
+ __typename?: 'TuningDataSet';
7555
+ } | {
7556
+ __typename?: 'TuningVersionedDataset';
7557
+ } | {
7558
+ __typename?: 'TuningVersionedDatasetContent';
7559
+ } | {
7560
+ __typename?: 'TuningVersionedDatasetFiles';
7561
+ } | {
7562
+ __typename?: 'VersionedDataset';
7563
+ } | {
7564
+ __typename?: 'Worker';
7565
+ } | {
7566
+ __typename?: 'Workflow';
7567
+ }> | null;
7568
+ };
7569
+ } | null;
7570
+ };
7571
+ export type GetSftQueryVariables = Exact<{
7572
+ name: Scalars['String']['input'];
7573
+ namespace: Scalars['String']['input'];
7574
+ }>;
7575
+ export type GetSftQuery = {
7576
+ __typename?: 'Query';
7577
+ SFT?: {
7578
+ __typename?: 'SFTQuery';
7579
+ getSFT: {
7580
+ __typename?: 'SFT';
7581
+ name: string;
7582
+ namespace: string;
7583
+ creator?: string | null;
7584
+ displayName?: string | null;
7585
+ description?: string | null;
7586
+ creationTimestamp?: any | null;
7587
+ updateTimestamp?: any | null;
7588
+ completeTimestamp?: any | null;
7589
+ datasets: Array<string>;
7590
+ serviceAccountName: string;
7591
+ suspend: boolean;
7592
+ status: string;
7593
+ phase?: string | null;
7594
+ phaseMessage?: string | null;
7595
+ storage: {
7596
+ __typename?: 'PersistentVolumeClaimSpec';
7597
+ accessModes: Array<string>;
7598
+ volumeName?: string | null;
7599
+ storageClassName?: string | null;
7600
+ volumeMode?: string | null;
7601
+ selector?: {
7602
+ __typename?: 'Selector';
7603
+ matchLabels?: any | null;
7604
+ matchExpressions?: Array<{
7605
+ __typename?: 'LabelSelectorRequirement';
7606
+ key?: string | null;
7607
+ values?: Array<string | null> | null;
7608
+ operator?: string | null;
7609
+ } | null> | null;
7610
+ } | null;
7611
+ resources?: {
7612
+ __typename?: 'Resource';
7613
+ limits?: any | null;
7614
+ requests?: any | null;
7615
+ } | null;
7616
+ datasource?: {
7617
+ __typename?: 'TypedObjectReference';
7618
+ apiGroup?: string | null;
7619
+ kind: string;
7620
+ name: string;
7621
+ namespace?: string | null;
7622
+ displayName?: string | null;
7623
+ } | null;
7624
+ dataSourceRef?: {
7625
+ __typename?: 'TypedObjectReference';
7626
+ apiGroup?: string | null;
7627
+ kind: string;
7628
+ name: string;
7629
+ namespace?: string | null;
7630
+ displayName?: string | null;
7631
+ } | null;
7632
+ };
7633
+ baseModel: {
7634
+ __typename?: 'TypedObjectReference';
7635
+ kind: string;
7636
+ name: string;
7637
+ namespace?: string | null;
7638
+ displayName?: string | null;
7639
+ };
7640
+ };
7641
+ } | null;
7642
+ };
7643
+ export type CreateSftMutationVariables = Exact<{
7644
+ input: CreateSftInput;
7645
+ }>;
7646
+ export type CreateSftMutation = {
7647
+ __typename?: 'Mutation';
7648
+ SFT?: {
7649
+ __typename?: 'SFTMutation';
7650
+ createSFT: {
7651
+ __typename?: 'SFT';
7652
+ name: string;
7653
+ namespace: string;
7654
+ creator?: string | null;
7655
+ displayName?: string | null;
7656
+ description?: string | null;
7657
+ creationTimestamp?: any | null;
7658
+ completeTimestamp?: any | null;
7659
+ datasets: Array<string>;
7660
+ serviceAccountName: string;
7661
+ suspend: boolean;
7662
+ status: string;
7663
+ phase?: string | null;
7664
+ phaseMessage?: string | null;
7665
+ storage: {
7666
+ __typename?: 'PersistentVolumeClaimSpec';
7667
+ accessModes: Array<string>;
7668
+ volumeName?: string | null;
7669
+ storageClassName?: string | null;
7670
+ volumeMode?: string | null;
7671
+ selector?: {
7672
+ __typename?: 'Selector';
7673
+ matchLabels?: any | null;
7674
+ matchExpressions?: Array<{
7675
+ __typename?: 'LabelSelectorRequirement';
7676
+ key?: string | null;
7677
+ values?: Array<string | null> | null;
7678
+ operator?: string | null;
7679
+ } | null> | null;
7680
+ } | null;
7681
+ resources?: {
7682
+ __typename?: 'Resource';
7683
+ limits?: any | null;
7684
+ requests?: any | null;
7685
+ } | null;
7686
+ datasource?: {
7687
+ __typename?: 'TypedObjectReference';
7688
+ apiGroup?: string | null;
7689
+ kind: string;
7690
+ name: string;
7691
+ namespace?: string | null;
7692
+ displayName?: string | null;
7693
+ } | null;
7694
+ dataSourceRef?: {
7695
+ __typename?: 'TypedObjectReference';
7696
+ apiGroup?: string | null;
7697
+ kind: string;
7698
+ name: string;
7699
+ namespace?: string | null;
7700
+ displayName?: string | null;
7701
+ } | null;
7702
+ };
7703
+ baseModel: {
7704
+ __typename?: 'TypedObjectReference';
7705
+ kind: string;
7706
+ name: string;
7707
+ namespace?: string | null;
7708
+ displayName?: string | null;
7709
+ };
7710
+ };
7711
+ } | null;
7712
+ };
7713
+ export type UpdateSftMutationVariables = Exact<{
7714
+ input: UpdateSftInput;
7715
+ }>;
7716
+ export type UpdateSftMutation = {
7717
+ __typename?: 'Mutation';
7718
+ SFT?: {
7719
+ __typename?: 'SFTMutation';
7720
+ updateSFT: {
7721
+ __typename?: 'SFT';
7722
+ name: string;
7723
+ namespace: string;
7724
+ creator?: string | null;
7725
+ displayName?: string | null;
7726
+ description?: string | null;
7727
+ creationTimestamp?: any | null;
7728
+ updateTimestamp?: any | null;
7729
+ completeTimestamp?: any | null;
7730
+ datasets: Array<string>;
7731
+ serviceAccountName: string;
7732
+ suspend: boolean;
7733
+ status: string;
7734
+ phase?: string | null;
7735
+ phaseMessage?: string | null;
7736
+ storage: {
7737
+ __typename?: 'PersistentVolumeClaimSpec';
7738
+ accessModes: Array<string>;
7739
+ volumeName?: string | null;
7740
+ storageClassName?: string | null;
7741
+ volumeMode?: string | null;
7742
+ selector?: {
7743
+ __typename?: 'Selector';
7744
+ matchLabels?: any | null;
7745
+ matchExpressions?: Array<{
7746
+ __typename?: 'LabelSelectorRequirement';
7747
+ key?: string | null;
7748
+ values?: Array<string | null> | null;
7749
+ operator?: string | null;
7750
+ } | null> | null;
7751
+ } | null;
7752
+ resources?: {
7753
+ __typename?: 'Resource';
7754
+ limits?: any | null;
7755
+ requests?: any | null;
7756
+ } | null;
7757
+ datasource?: {
7758
+ __typename?: 'TypedObjectReference';
7759
+ apiGroup?: string | null;
7760
+ kind: string;
7761
+ name: string;
7762
+ namespace?: string | null;
7763
+ displayName?: string | null;
7764
+ } | null;
7765
+ dataSourceRef?: {
7766
+ __typename?: 'TypedObjectReference';
7767
+ apiGroup?: string | null;
7768
+ kind: string;
7769
+ name: string;
7770
+ namespace?: string | null;
7771
+ displayName?: string | null;
7772
+ } | null;
7773
+ };
7774
+ baseModel: {
7775
+ __typename?: 'TypedObjectReference';
7776
+ kind: string;
7777
+ name: string;
7778
+ namespace?: string | null;
7779
+ displayName?: string | null;
7780
+ };
7781
+ };
7782
+ } | null;
7783
+ };
7784
+ export type DeleteSftMutationVariables = Exact<{
7785
+ input: DeleteCommonInput;
7786
+ }>;
7787
+ export type DeleteSftMutation = {
7788
+ __typename?: 'Mutation';
7789
+ SFT?: {
7790
+ __typename?: 'SFTMutation';
7791
+ deleteSFT?: any | null;
7792
+ } | null;
7793
+ };
7794
+ export type ExportSftMutationVariables = Exact<{
7795
+ name: Scalars['String']['input'];
7796
+ namespace: Scalars['String']['input'];
7797
+ }>;
7798
+ export type ExportSftMutation = {
7799
+ __typename?: 'Mutation';
7800
+ SFT?: {
7801
+ __typename?: 'SFTMutation';
7802
+ exportSFT?: any | null;
7803
+ } | null;
7804
+ };
7233
7805
  export type CreateVersionedDatasetMutationVariables = Exact<{
7234
7806
  input: CreateVersionedDatasetInput;
7235
7807
  }>;
@@ -7351,6 +7923,8 @@ export type GetVersionedDatasetQuery = {
7351
7923
  __typename?: 'RayCluster';
7352
7924
  } | {
7353
7925
  __typename?: 'Reranker';
7926
+ } | {
7927
+ __typename?: 'SFT';
7354
7928
  } | {
7355
7929
  __typename?: 'TuningDataSet';
7356
7930
  } | {
@@ -7420,6 +7994,8 @@ export type ListVersionedDatasetsQuery = {
7420
7994
  __typename?: 'RayCluster';
7421
7995
  } | {
7422
7996
  __typename?: 'Reranker';
7997
+ } | {
7998
+ __typename?: 'SFT';
7423
7999
  } | {
7424
8000
  __typename?: 'TuningDataSet';
7425
8001
  } | {
@@ -7494,6 +8070,8 @@ export type ListVersionedDatasetsQuery = {
7494
8070
  __typename?: 'RayCluster';
7495
8071
  } | {
7496
8072
  __typename?: 'Reranker';
8073
+ } | {
8074
+ __typename?: 'SFT';
7497
8075
  } | {
7498
8076
  __typename?: 'TuningDataSet';
7499
8077
  } | {
@@ -7567,6 +8145,8 @@ export type ListWorkersQuery = {
7567
8145
  __typename: 'RayCluster';
7568
8146
  } | {
7569
8147
  __typename: 'Reranker';
8148
+ } | {
8149
+ __typename: 'SFT';
7570
8150
  } | {
7571
8151
  __typename: 'TuningDataSet';
7572
8152
  } | {
@@ -7854,6 +8434,8 @@ export type ListWorkflowsQuery = {
7854
8434
  __typename: 'RayCluster';
7855
8435
  } | {
7856
8436
  __typename: 'Reranker';
8437
+ } | {
8438
+ __typename: 'SFT';
7857
8439
  } | {
7858
8440
  __typename: 'TuningDataSet';
7859
8441
  } | {
@@ -8088,6 +8670,12 @@ export declare const UpdateContentDocument: import("../node_modules/.pnpm/graphq
8088
8670
  export declare const DeleteContentDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
8089
8671
  export declare const DeleteVersionAllContentDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
8090
8672
  export declare const LoadVersionFilesDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
8673
+ export declare const ListSftDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
8674
+ export declare const GetSftDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
8675
+ export declare const CreateSftDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
8676
+ export declare const UpdateSftDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
8677
+ export declare const DeleteSftDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
8678
+ export declare const ExportSftDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
8091
8679
  export declare const CreateVersionedDatasetDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
8092
8680
  export declare const UpdateVersionedDatasetDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
8093
8681
  export declare const DeleteVersionedDatasetsDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
@@ -8203,6 +8791,12 @@ export declare function getSdk(client: GraphQLClient, withWrapper?: SdkFunctionW
8203
8791
  deleteContent(variables?: DeleteContentMutationVariables, requestHeaders?: RequestConfig['headers']): Promise<DeleteContentMutation>;
8204
8792
  deleteVersionAllContent(variables: DeleteVersionAllContentMutationVariables, requestHeaders?: RequestConfig['headers']): Promise<DeleteVersionAllContentMutation>;
8205
8793
  loadVersionFiles(variables: LoadVersionFilesMutationVariables, requestHeaders?: RequestConfig['headers']): Promise<LoadVersionFilesMutation>;
8794
+ listSFT(variables: ListSftQueryVariables, requestHeaders?: RequestConfig['headers']): Promise<ListSftQuery>;
8795
+ getSFT(variables: GetSftQueryVariables, requestHeaders?: RequestConfig['headers']): Promise<GetSftQuery>;
8796
+ createSFT(variables: CreateSftMutationVariables, requestHeaders?: RequestConfig['headers']): Promise<CreateSftMutation>;
8797
+ updateSFT(variables: UpdateSftMutationVariables, requestHeaders?: RequestConfig['headers']): Promise<UpdateSftMutation>;
8798
+ deleteSFT(variables: DeleteSftMutationVariables, requestHeaders?: RequestConfig['headers']): Promise<DeleteSftMutation>;
8799
+ exportSFT(variables: ExportSftMutationVariables, requestHeaders?: RequestConfig['headers']): Promise<ExportSftMutation>;
8206
8800
  createVersionedDataset(variables: CreateVersionedDatasetMutationVariables, requestHeaders?: RequestConfig['headers']): Promise<CreateVersionedDatasetMutation>;
8207
8801
  updateVersionedDataset(variables: UpdateVersionedDatasetMutationVariables, requestHeaders?: RequestConfig['headers']): Promise<UpdateVersionedDatasetMutation>;
8208
8802
  deleteVersionedDatasets(variables: DeleteVersionedDatasetsMutationVariables, requestHeaders?: RequestConfig['headers']): Promise<DeleteVersionedDatasetsMutation>;
@@ -8270,6 +8864,8 @@ export declare function getSdkWithHooks(client: GraphQLClient, withWrapper?: Sdk
8270
8864
  useGetTuningDataSet(variables: GetTuningDataSetQueryVariables, config?: SWRConfigInterface<GetTuningDataSetQuery, ClientError>): import("./useSWR").SWRResponsePro<GetTuningDataSetQuery, ClientError>;
8271
8865
  useGetVersion(variables: GetVersionQueryVariables, config?: SWRConfigInterface<GetVersionQuery, ClientError>): import("./useSWR").SWRResponsePro<GetVersionQuery, ClientError>;
8272
8866
  useGetVersionContent(variables: GetVersionContentQueryVariables, config?: SWRConfigInterface<GetVersionContentQuery, ClientError>): import("./useSWR").SWRResponsePro<GetVersionContentQuery, ClientError>;
8867
+ useListSft(variables: ListSftQueryVariables, config?: SWRConfigInterface<ListSftQuery, ClientError>): import("./useSWR").SWRResponsePro<ListSftQuery, ClientError>;
8868
+ useGetSft(variables: GetSftQueryVariables, config?: SWRConfigInterface<GetSftQuery, ClientError>): import("./useSWR").SWRResponsePro<GetSftQuery, ClientError>;
8273
8869
  useGetVersionedDataset(variables: GetVersionedDatasetQueryVariables, config?: SWRConfigInterface<GetVersionedDatasetQuery, ClientError>): import("./useSWR").SWRResponsePro<GetVersionedDatasetQuery, ClientError>;
8274
8870
  useListVersionedDatasets(variables: ListVersionedDatasetsQueryVariables, config?: SWRConfigInterface<ListVersionedDatasetsQuery, ClientError>): import("./useSWR").SWRResponsePro<ListVersionedDatasetsQuery, ClientError>;
8275
8871
  useListWorkers(variables: ListWorkersQueryVariables, config?: SWRConfigInterface<ListWorkersQuery, ClientError>): import("./useSWR").SWRResponsePro<ListWorkersQuery, ClientError>;
@@ -8599,6 +9195,26 @@ export declare function getSdkWithHooks(client: GraphQLClient, withWrapper?: Sdk
8599
9195
  id: string;
8600
9196
  files?: InputMaybe<string | string[]> | undefined;
8601
9197
  }>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<LoadVersionFilesMutation>;
9198
+ listSFT(variables: Exact<{
9199
+ input: ListCommonInput;
9200
+ }>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<ListSftQuery>;
9201
+ getSFT(variables: Exact<{
9202
+ name: string;
9203
+ namespace: string;
9204
+ }>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<GetSftQuery>;
9205
+ createSFT(variables: Exact<{
9206
+ input: CreateSftInput;
9207
+ }>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<CreateSftMutation>;
9208
+ updateSFT(variables: Exact<{
9209
+ input: UpdateSftInput;
9210
+ }>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<UpdateSftMutation>;
9211
+ deleteSFT(variables: Exact<{
9212
+ input: DeleteCommonInput;
9213
+ }>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<DeleteSftMutation>;
9214
+ exportSFT(variables: Exact<{
9215
+ name: string;
9216
+ namespace: string;
9217
+ }>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<ExportSftMutation>;
8602
9218
  createVersionedDataset(variables: Exact<{
8603
9219
  input: CreateVersionedDatasetInput;
8604
9220
  }>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<CreateVersionedDatasetMutation>;