@narrative.io/data-collaboration-sdk-ts 2.26.0 → 2.28.0
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/build/access-rules/types.d.ts +1 -5
- package/build/index.d.ts +3 -2
- package/build/index.js +3 -1
- package/build/model-training/index.d.ts +31 -0
- package/build/model-training/index.js +42 -0
- package/build/model-training/types.d.ts +56 -0
- package/build/model-training/types.js +1 -0
- package/package.json +1 -1
|
@@ -4,7 +4,7 @@ export interface AccessRule {
|
|
|
4
4
|
id: number;
|
|
5
5
|
dataset_id?: AccessRuleDatasetId;
|
|
6
6
|
policy?: AccessRulePolicy;
|
|
7
|
-
|
|
7
|
+
collaborators?: CollaboratorsConfig;
|
|
8
8
|
constraints?: AccessRuleConstraints;
|
|
9
9
|
created_at: string;
|
|
10
10
|
description?: AccessRuleDescription;
|
|
@@ -25,10 +25,6 @@ interface AccessRulePolicy {
|
|
|
25
25
|
query: string;
|
|
26
26
|
datasets: AccessRulePolicyDataset;
|
|
27
27
|
}
|
|
28
|
-
interface AccessRuleCompanyConstraint {
|
|
29
|
-
type: "inclusion" | "exclusion";
|
|
30
|
-
company_ids: number[];
|
|
31
|
-
}
|
|
32
28
|
type AccessRuleConstraints = string[];
|
|
33
29
|
type AccessRuleDescription = string;
|
|
34
30
|
type AccessRulePricing = number;
|
package/build/index.d.ts
CHANGED
|
@@ -23,6 +23,7 @@ import { type ExplainInput, type ExplainOutput, type GetJobsParameters, type Job
|
|
|
23
23
|
import JsonBigNumber from "./json-big-number";
|
|
24
24
|
import { type Mapping, type MappingTestResult, MappingsApi } from "./mappings";
|
|
25
25
|
import type { CreateMapping, ObjectMapping, ValueMapping } from "./mappings/types";
|
|
26
|
+
import { type CreateModelRequest, type Model, ModelTrainingApi, type ModelTrainingCollaborators, type ModelTrainingConfig, type OutputModel, type TrainModelRequest, type TrainModelResponse, type UpdateModelRequest } from "./model-training";
|
|
26
27
|
import { type CompiledNql, type CreateMaterializedView, type Deduplication, type Explain, type Expression, type Nql, NqlApi, type NqlAst, type NqlBooleanExpression, type NqlCompileResult, type NqlExpression, type NqlField, type NqlFilterBinaryExpression, type NqlFilterExpression, type NqlFilterUnaryExpression, type NqlQueryInput, type NqlResult, type NqlWhere, type Raw, type Select, type Statement, type Table, compileStatement, parseStatement } from "./nql";
|
|
27
28
|
import { convertNqlObjectToForecastBody } from "./nql/DataRulesConverter";
|
|
28
29
|
import { buildNql, getNqlObject } from "./nql/NQLParser";
|
|
@@ -44,6 +45,6 @@ import { WhoAmIApi } from "./whoami";
|
|
|
44
45
|
import type { User } from "./whoami/types";
|
|
45
46
|
declare class NarrativeApi extends BaseApi {
|
|
46
47
|
}
|
|
47
|
-
interface NarrativeApi extends BaseApi, HealthCheckApi, AccessTokensApi, DataPlaneApi, DatasetApi, RosettaStoneApi, AttributeApi, AttributeApiV2, PingApi, CompanyInfoApi, InstallationsApi, ConnectionsApi, UploadsApi, ResourceApi, NqlApi, DataStreamsApi, ForecastApi, ContractsApi, AuthenticationApi, MappingsApi, AccessRulesApi, AppsApi, SubscriptionsApi, JobsApi, QueriesApi, ViewsApi, WhoAmIApi {
|
|
48
|
+
interface NarrativeApi extends BaseApi, HealthCheckApi, AccessTokensApi, DataPlaneApi, DatasetApi, RosettaStoneApi, AttributeApi, AttributeApiV2, PingApi, CompanyInfoApi, InstallationsApi, ConnectionsApi, UploadsApi, ResourceApi, NqlApi, DataStreamsApi, ForecastApi, ContractsApi, AuthenticationApi, MappingsApi, AccessRulesApi, AppsApi, SubscriptionsApi, JobsApi, QueriesApi, ViewsApi, ModelTrainingApi, WhoAmIApi {
|
|
48
49
|
}
|
|
49
|
-
export { NarrativeApi, AttributeApi, AttributeApiV2, AccessTokensApi, DataPlaneApi, HealthCheckApi, DatasetApi, PingApi, ProductsApi, CompanyInfoApi, InstallationsApi, ConnectionsApi, UploadsApi, ResourceApi, NqlApi, DataStreamsApi, ForecastApi, ContractsApi, AuthenticationApi, AppsApi, MappingsApi, AccessRulesApi, SubscriptionsApi, JobsApi, QueriesApi, ViewsApi, WhoAmIApi, getNqlObject, buildNql, convertNqlObjectToForecastBody, isConversationAssistantMessage, isConversationFunctionMessage, isConversationInputMessage, isConversationMessage, isConversationMessageName, isConversationMessageRole, isConversationMessages, isConversationSystemMessage, isConversationUserMessage, isType, isConversationMessageFunctionCall, isConversationAssistantMessageWithFunctionCall, isRosettaRequestMessage, isConversationAssistantMessageWithoutFunctionCall, resources, type DataPlane, type AccessTokenMetadata, type CreateSystemAccessTokenRequest, type CreateSystemAccessTokenResponse, type UpdateSystemAccessTokenRequest, type App, type Resource, type AccessRuleV2, type GetAccessRulesParameters, type CreateAccessRuleV2Request, type UpdateAccessRuleV2Request, type UploadsResponse, type PingStatus, type Attribute, type ShallowAttribute, type Connection, type RefAttribute, type SubAttribute, type PrimitiveAttribute, type ArrayAttribute, type ObjectAttribute, type Environment, type Config, type ApiRecords, type ApiRecordsV2, type GeneralCollaboratorType, type SpecificCollaboratorType, type NonAuthenticatedCollaborator, type CollaboratorList, type GeneralCollaborator, type QueryCollaborator, type ViewCollaborator, type QueryAccess, type ViewAccess, type CollaboratorsConfig, type Dataset, type HealthCheckResult, type SampleRecords, type Permission, type DatasetTableSummary, type DatasetTableSummaryAPIResponse, type UpdateDatasetRequest, type SchemaFileConfigType, type SchemaPropertiesType, type DatasetStatus, type DatasetWriteMode, type SchemaFileConfig, type SchemaProperties, type SchemaProperty, type SchemaPrimitiveProperty, type SchemaObjectProperty, type SchemaArrayProperty, type SchemaArrayItems, type SchemaArrayItemsPrimitive, type SchemaArrayItemsObject, type SchemaArrayItemsArray, type Schema, type AdvancedStatisticsMetadata, type SnapshotRange, type Configuration, type Columns, type ColumnSummary, type ColumnStatistics, type BasicStatistics, type AdvancedStatistics, type Histogram, type Value, type CreateDatasetRequest, type IngestDatasetFileRequest, type Product, type MonetaryAmount, type CompanyInfo, type Installation, type Profile, type FilePerSnapshotResponse, type BucketCreationRequest, type UpdateAccessTypeRequest, type CompiledNql, type CreateMaterializedView, type GetJobsParameters, type Deduplication, type Explain, type Expression, type Raw, type Select, type Statement, type Table, type Nql, type NqlAst, type NqlField, type NqlResult, type NqlQueryInput, type NqlCompileResult, type NqlExpression, type NqlWhere, type NqlFilterExpression, type NqlBooleanExpression, type NqlFilterBinaryExpression, type NqlFilterUnaryExpression, type DataStream, type DataRules, type ColumnSet, type ColumnWithFilterAndExport, type AttributeSet, type ForecastRequest, type ForecastResponse, type CostForecastRequest, type CostForecastResponse, type ForecastResult, type CostForecastResult, type ForecastResultFailure, type JobState, type ContractDetails, type CustomerContract, type PaymentMethod, type ContractRateView, type LoginRequest, type LoginResponse, type RegisterRequest, type RegisterResponse, type LoggedInUser, type StytchToken, type ApiToken, type UserRole, type RegistrationStatus, type RegistrationStatusRequest, type RegistrationStatusResponse, type ForecastBody, type AstNodeType, type AstNodeMetadata, type SharedAccessRule, type OwnedAccessRule, type ConversationAssistantMessage, type ConversationFunctionMessage, type ConversationIOMessage, type ConversationMessage, type ConversationMessageName, type ConversationMessageRole, type AccessRuleSchema, type ConversationMessages, type ConversationSystemMessage, type ConversationUserMessage, type RosettaRequestMessage, type ConversationMessageFunctionCall, type ConversationAssistantMessageWithFunctionCall, type RosettaResponseMessage, type ConversationAssistantMessageWithoutFunctionCall, type RetentionPolicy, type AccessRule, type Subscription, type SubscriptionDetails, type DataStreamSubscriptionDetails, type MarketplaceSubscriptionDetails, type SubscriptionOutput, type SubscriptionType, type SubscriptionStatus, type SubscriptionBudget, type Job, type ExplainInput, type MaterializedViewInput, type ExplainOutput, type MaterializedViewOutput, type User, type Mapping, type MappingTestResult, type ValueMapping, type ObjectMapping, type CreateMapping, type CreateNqlQueryRequest, type UpdateNqlQueryRequest, type NqlQueryResponse, type NqlSharedQueryResponse, type NqlOwnedQueryResponse, type NqlQueryCollaborators, type NqlQueryOwner, type NqlQueryMetadata, type View, type OwnedView, type SharedView, type ViewOwner, type CreateViewRequest, type UpdateViewRequest, compileStatement, parseStatement, JsonBigNumber, };
|
|
50
|
+
export { NarrativeApi, AttributeApi, AttributeApiV2, AccessTokensApi, DataPlaneApi, HealthCheckApi, DatasetApi, PingApi, ProductsApi, CompanyInfoApi, InstallationsApi, ConnectionsApi, UploadsApi, ResourceApi, NqlApi, DataStreamsApi, ForecastApi, ContractsApi, AuthenticationApi, AppsApi, MappingsApi, AccessRulesApi, SubscriptionsApi, JobsApi, QueriesApi, ViewsApi, ModelTrainingApi, WhoAmIApi, getNqlObject, buildNql, convertNqlObjectToForecastBody, isConversationAssistantMessage, isConversationFunctionMessage, isConversationInputMessage, isConversationMessage, isConversationMessageName, isConversationMessageRole, isConversationMessages, isConversationSystemMessage, isConversationUserMessage, isType, isConversationMessageFunctionCall, isConversationAssistantMessageWithFunctionCall, isRosettaRequestMessage, isConversationAssistantMessageWithoutFunctionCall, resources, type DataPlane, type AccessTokenMetadata, type CreateSystemAccessTokenRequest, type CreateSystemAccessTokenResponse, type UpdateSystemAccessTokenRequest, type App, type Resource, type AccessRuleV2, type GetAccessRulesParameters, type CreateAccessRuleV2Request, type UpdateAccessRuleV2Request, type UploadsResponse, type PingStatus, type Attribute, type ShallowAttribute, type Connection, type RefAttribute, type SubAttribute, type PrimitiveAttribute, type ArrayAttribute, type ObjectAttribute, type Environment, type Config, type ApiRecords, type ApiRecordsV2, type GeneralCollaboratorType, type SpecificCollaboratorType, type NonAuthenticatedCollaborator, type CollaboratorList, type GeneralCollaborator, type QueryCollaborator, type ViewCollaborator, type QueryAccess, type ViewAccess, type CollaboratorsConfig, type Dataset, type HealthCheckResult, type SampleRecords, type Permission, type DatasetTableSummary, type DatasetTableSummaryAPIResponse, type UpdateDatasetRequest, type SchemaFileConfigType, type SchemaPropertiesType, type DatasetStatus, type DatasetWriteMode, type SchemaFileConfig, type SchemaProperties, type SchemaProperty, type SchemaPrimitiveProperty, type SchemaObjectProperty, type SchemaArrayProperty, type SchemaArrayItems, type SchemaArrayItemsPrimitive, type SchemaArrayItemsObject, type SchemaArrayItemsArray, type Schema, type AdvancedStatisticsMetadata, type SnapshotRange, type Configuration, type Columns, type ColumnSummary, type ColumnStatistics, type BasicStatistics, type AdvancedStatistics, type Histogram, type Value, type CreateDatasetRequest, type IngestDatasetFileRequest, type Product, type MonetaryAmount, type CompanyInfo, type Installation, type Profile, type FilePerSnapshotResponse, type BucketCreationRequest, type UpdateAccessTypeRequest, type CompiledNql, type CreateMaterializedView, type GetJobsParameters, type Deduplication, type Explain, type Expression, type Raw, type Select, type Statement, type Table, type Nql, type NqlAst, type NqlField, type NqlResult, type NqlQueryInput, type NqlCompileResult, type NqlExpression, type NqlWhere, type NqlFilterExpression, type NqlBooleanExpression, type NqlFilterBinaryExpression, type NqlFilterUnaryExpression, type DataStream, type DataRules, type ColumnSet, type ColumnWithFilterAndExport, type AttributeSet, type ForecastRequest, type ForecastResponse, type CostForecastRequest, type CostForecastResponse, type ForecastResult, type CostForecastResult, type ForecastResultFailure, type JobState, type ContractDetails, type CustomerContract, type PaymentMethod, type ContractRateView, type LoginRequest, type LoginResponse, type RegisterRequest, type RegisterResponse, type LoggedInUser, type StytchToken, type ApiToken, type UserRole, type RegistrationStatus, type RegistrationStatusRequest, type RegistrationStatusResponse, type ForecastBody, type AstNodeType, type AstNodeMetadata, type SharedAccessRule, type OwnedAccessRule, type ConversationAssistantMessage, type ConversationFunctionMessage, type ConversationIOMessage, type ConversationMessage, type ConversationMessageName, type ConversationMessageRole, type AccessRuleSchema, type ConversationMessages, type ConversationSystemMessage, type ConversationUserMessage, type RosettaRequestMessage, type ConversationMessageFunctionCall, type ConversationAssistantMessageWithFunctionCall, type RosettaResponseMessage, type ConversationAssistantMessageWithoutFunctionCall, type RetentionPolicy, type AccessRule, type Subscription, type SubscriptionDetails, type DataStreamSubscriptionDetails, type MarketplaceSubscriptionDetails, type SubscriptionOutput, type SubscriptionType, type SubscriptionStatus, type SubscriptionBudget, type Job, type ExplainInput, type MaterializedViewInput, type ExplainOutput, type MaterializedViewOutput, type User, type Mapping, type MappingTestResult, type ValueMapping, type ObjectMapping, type CreateMapping, type CreateNqlQueryRequest, type UpdateNqlQueryRequest, type NqlQueryResponse, type NqlSharedQueryResponse, type NqlOwnedQueryResponse, type NqlQueryCollaborators, type NqlQueryOwner, type NqlQueryMetadata, type View, type OwnedView, type SharedView, type ViewOwner, type CreateViewRequest, type UpdateViewRequest, type ModelTrainingCollaborators, type Model, type OutputModel, type CreateModelRequest, type UpdateModelRequest, type TrainModelRequest, type TrainModelResponse, type ModelTrainingConfig, compileStatement, parseStatement, JsonBigNumber, };
|
package/build/index.js
CHANGED
|
@@ -17,6 +17,7 @@ import { InstallationsApi, } from "./installations";
|
|
|
17
17
|
import { JobsApi, } from "./jobs";
|
|
18
18
|
import JsonBigNumber from "./json-big-number";
|
|
19
19
|
import { MappingsApi } from "./mappings";
|
|
20
|
+
import { ModelTrainingApi, } from "./model-training";
|
|
20
21
|
import { NqlApi, compileStatement, parseStatement, } from "./nql";
|
|
21
22
|
import { convertNqlObjectToForecastBody } from "./nql/DataRulesConverter";
|
|
22
23
|
import { buildNql, getNqlObject } from "./nql/NQLParser";
|
|
@@ -60,8 +61,9 @@ applyMixins(NarrativeApi, [
|
|
|
60
61
|
JobsApi,
|
|
61
62
|
QueriesApi,
|
|
62
63
|
ViewsApi,
|
|
64
|
+
ModelTrainingApi,
|
|
63
65
|
WhoAmIApi,
|
|
64
66
|
]);
|
|
65
67
|
export {
|
|
66
68
|
// biome-ignore lint/style/useExportType: We need to export the class
|
|
67
|
-
NarrativeApi, AttributeApi, AttributeApiV2, AccessTokensApi, DataPlaneApi, HealthCheckApi, DatasetApi, PingApi, ProductsApi, CompanyInfoApi, InstallationsApi, ConnectionsApi, UploadsApi, ResourceApi, NqlApi, DataStreamsApi, ForecastApi, ContractsApi, AuthenticationApi, AppsApi, MappingsApi, AccessRulesApi, SubscriptionsApi, JobsApi, QueriesApi, ViewsApi, WhoAmIApi, getNqlObject, buildNql, convertNqlObjectToForecastBody, isConversationAssistantMessage, isConversationFunctionMessage, isConversationInputMessage, isConversationMessage, isConversationMessageName, isConversationMessageRole, isConversationMessages, isConversationSystemMessage, isConversationUserMessage, isType, isConversationMessageFunctionCall, isConversationAssistantMessageWithFunctionCall, isRosettaRequestMessage, isConversationAssistantMessageWithoutFunctionCall, resources, compileStatement, parseStatement, JsonBigNumber, };
|
|
69
|
+
NarrativeApi, AttributeApi, AttributeApiV2, AccessTokensApi, DataPlaneApi, HealthCheckApi, DatasetApi, PingApi, ProductsApi, CompanyInfoApi, InstallationsApi, ConnectionsApi, UploadsApi, ResourceApi, NqlApi, DataStreamsApi, ForecastApi, ContractsApi, AuthenticationApi, AppsApi, MappingsApi, AccessRulesApi, SubscriptionsApi, JobsApi, QueriesApi, ViewsApi, ModelTrainingApi, WhoAmIApi, getNqlObject, buildNql, convertNqlObjectToForecastBody, isConversationAssistantMessage, isConversationFunctionMessage, isConversationInputMessage, isConversationMessage, isConversationMessageName, isConversationMessageRole, isConversationMessages, isConversationSystemMessage, isConversationUserMessage, isType, isConversationMessageFunctionCall, isConversationAssistantMessageWithFunctionCall, isRosettaRequestMessage, isConversationAssistantMessageWithoutFunctionCall, resources, compileStatement, parseStatement, JsonBigNumber, };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { BaseApi } from "../base-api";
|
|
2
|
+
import type { ApiRecords } from "../types";
|
|
3
|
+
import type { CreateModelRequest, Model, ModelTrainingCollaborators, ModelTrainingConfig, OutputModel, TrainModelRequest, TrainModelResponse, UpdateModelRequest } from "./types";
|
|
4
|
+
/**
|
|
5
|
+
* A class for accessing the Model Training API.
|
|
6
|
+
* @extends BaseApi
|
|
7
|
+
*/
|
|
8
|
+
declare class ModelTrainingApi extends BaseApi {
|
|
9
|
+
/**
|
|
10
|
+
* Gets a list of accessable models from the API.
|
|
11
|
+
*
|
|
12
|
+
* @returns {Promise<ApiRecords<Model>>} A promise that resolves with the list of models.
|
|
13
|
+
*/
|
|
14
|
+
getModels(): Promise<ApiRecords<Model>>;
|
|
15
|
+
/**
|
|
16
|
+
* Updates an existing model on the API.
|
|
17
|
+
*
|
|
18
|
+
* @param {string} modelId - The ID of the model to update.
|
|
19
|
+
* @param {UpdateNqlModelRequest} data - The updated data for the model.
|
|
20
|
+
* @returns {Promise<Model>} A promise that resolves with the updated model.
|
|
21
|
+
*/
|
|
22
|
+
updateModel(modelId: string, data: UpdateModelRequest): Promise<Model>;
|
|
23
|
+
/**
|
|
24
|
+
* Trains a model.
|
|
25
|
+
*
|
|
26
|
+
* @param {CreateNqlQueryRequest} data - The data for the model training.
|
|
27
|
+
* @returns {Promise<NqlQueryResponse>} A promise that resolves with the model training response.
|
|
28
|
+
*/
|
|
29
|
+
trainModel(data: TrainModelRequest): Promise<TrainModelResponse>;
|
|
30
|
+
}
|
|
31
|
+
export { ModelTrainingApi, type ModelTrainingCollaborators, type Model, type OutputModel, type CreateModelRequest, type UpdateModelRequest, type TrainModelRequest, type TrainModelResponse, type ModelTrainingConfig, };
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { BaseApi } from "../base-api";
|
|
2
|
+
/**
|
|
3
|
+
* The name of the resource to be used in API requests.
|
|
4
|
+
* @constant
|
|
5
|
+
* @private
|
|
6
|
+
* @type {string}
|
|
7
|
+
*/
|
|
8
|
+
const resourceName = "model-training";
|
|
9
|
+
/**
|
|
10
|
+
* A class for accessing the Model Training API.
|
|
11
|
+
* @extends BaseApi
|
|
12
|
+
*/
|
|
13
|
+
class ModelTrainingApi extends BaseApi {
|
|
14
|
+
/**
|
|
15
|
+
* Gets a list of accessable models from the API.
|
|
16
|
+
*
|
|
17
|
+
* @returns {Promise<ApiRecords<Model>>} A promise that resolves with the list of models.
|
|
18
|
+
*/
|
|
19
|
+
async getModels() {
|
|
20
|
+
return await this.get(`${resourceName}/models`);
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Updates an existing model on the API.
|
|
24
|
+
*
|
|
25
|
+
* @param {string} modelId - The ID of the model to update.
|
|
26
|
+
* @param {UpdateNqlModelRequest} data - The updated data for the model.
|
|
27
|
+
* @returns {Promise<Model>} A promise that resolves with the updated model.
|
|
28
|
+
*/
|
|
29
|
+
async updateModel(modelId, data) {
|
|
30
|
+
return await this.put(`${resourceName}/${modelId}`, data);
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Trains a model.
|
|
34
|
+
*
|
|
35
|
+
* @param {CreateNqlQueryRequest} data - The data for the model training.
|
|
36
|
+
* @returns {Promise<NqlQueryResponse>} A promise that resolves with the model training response.
|
|
37
|
+
*/
|
|
38
|
+
async trainModel(data) {
|
|
39
|
+
return await this.post(`${resourceName}/run`, data);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
export { ModelTrainingApi, };
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import type { CollaboratorList, GeneralCollaborator } from "src/types";
|
|
2
|
+
export interface ModelTrainingCollaborators {
|
|
3
|
+
view: CollaboratorList | GeneralCollaborator;
|
|
4
|
+
train: CollaboratorList | GeneralCollaborator;
|
|
5
|
+
deploy: CollaboratorList | GeneralCollaborator;
|
|
6
|
+
}
|
|
7
|
+
export interface Model {
|
|
8
|
+
id: string;
|
|
9
|
+
company_id: number;
|
|
10
|
+
name: string;
|
|
11
|
+
license_id: string;
|
|
12
|
+
repository: string;
|
|
13
|
+
collaborators: ModelTrainingCollaborators;
|
|
14
|
+
description?: string;
|
|
15
|
+
tags: string[];
|
|
16
|
+
base_model_id: string;
|
|
17
|
+
created_at: string;
|
|
18
|
+
updated_at?: string;
|
|
19
|
+
archived_at?: string;
|
|
20
|
+
version: string;
|
|
21
|
+
status: string;
|
|
22
|
+
}
|
|
23
|
+
export interface OutputModel {
|
|
24
|
+
name: string;
|
|
25
|
+
collaborators: ModelTrainingCollaborators;
|
|
26
|
+
description?: string;
|
|
27
|
+
tags?: string[];
|
|
28
|
+
license_id?: string;
|
|
29
|
+
}
|
|
30
|
+
export interface CreateModelRequest {
|
|
31
|
+
name: string;
|
|
32
|
+
license_id: string;
|
|
33
|
+
repository: string;
|
|
34
|
+
collaborators: ModelTrainingCollaborators;
|
|
35
|
+
description?: string;
|
|
36
|
+
tags?: string[];
|
|
37
|
+
base_model_id?: string;
|
|
38
|
+
}
|
|
39
|
+
export interface UpdateModelRequest {
|
|
40
|
+
description?: string;
|
|
41
|
+
tags?: string[];
|
|
42
|
+
license_id?: string;
|
|
43
|
+
}
|
|
44
|
+
export interface TrainModelRequest {
|
|
45
|
+
base_model_id: string;
|
|
46
|
+
dataset_id: number;
|
|
47
|
+
training_config: ModelTrainingConfig;
|
|
48
|
+
output_model: OutputModel;
|
|
49
|
+
}
|
|
50
|
+
export interface TrainModelResponse {
|
|
51
|
+
job_id: string;
|
|
52
|
+
}
|
|
53
|
+
export interface ModelTrainingConfig {
|
|
54
|
+
instance_type: string;
|
|
55
|
+
custom_axolotl_config_override?: string;
|
|
56
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|