@alien_intelligence/data-api-client 1.2.5
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 +70 -0
- package/dist/apis/AdminApi.d.ts +84 -0
- package/dist/apis/AdminApi.js +106 -0
- package/dist/apis/DatasetsApi.d.ts +221 -0
- package/dist/apis/DatasetsApi.js +250 -0
- package/dist/apis/DefaultApi.d.ts +48 -0
- package/dist/apis/DefaultApi.js +84 -0
- package/dist/apis/EmbeddingsApi.d.ts +111 -0
- package/dist/apis/EmbeddingsApi.js +134 -0
- package/dist/apis/EntriesApi.d.ts +458 -0
- package/dist/apis/EntriesApi.js +500 -0
- package/dist/apis/HealthApi.d.ts +118 -0
- package/dist/apis/HealthApi.js +125 -0
- package/dist/apis/PipelinesApi.d.ts +229 -0
- package/dist/apis/PipelinesApi.js +242 -0
- package/dist/apis/SearchApi.d.ts +109 -0
- package/dist/apis/SearchApi.js +144 -0
- package/dist/apis/SyncApi.d.ts +80 -0
- package/dist/apis/SyncApi.js +103 -0
- package/dist/apis/WebhooksApi.d.ts +94 -0
- package/dist/apis/WebhooksApi.js +127 -0
- package/dist/apis/WeightsApi.d.ts +276 -0
- package/dist/apis/WeightsApi.js +328 -0
- package/dist/apis/index.d.ts +11 -0
- package/dist/apis/index.js +29 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +21 -0
- package/dist/models/ArtifactInputConfig.d.ts +46 -0
- package/dist/models/ArtifactInputConfig.js +58 -0
- package/dist/models/BatchContentRequest.d.ts +32 -0
- package/dist/models/BatchContentRequest.js +50 -0
- package/dist/models/BatchContentResponse.d.ts +33 -0
- package/dist/models/BatchContentResponse.js +51 -0
- package/dist/models/BatchGetEntriesRequest.d.ts +56 -0
- package/dist/models/BatchGetEntriesRequest.js +58 -0
- package/dist/models/BatchGetEntriesResponse.d.ts +39 -0
- package/dist/models/BatchGetEntriesResponse.js +55 -0
- package/dist/models/ChunkSearchResponse.d.ts +47 -0
- package/dist/models/ChunkSearchResponse.js +57 -0
- package/dist/models/ChunkSearchResult.d.ts +52 -0
- package/dist/models/ChunkSearchResult.js +58 -0
- package/dist/models/CollectionInfo.d.ts +50 -0
- package/dist/models/CollectionInfo.js +62 -0
- package/dist/models/ComponentArtifact.d.ts +46 -0
- package/dist/models/ComponentArtifact.js +54 -0
- package/dist/models/ComponentListResponse.d.ts +47 -0
- package/dist/models/ComponentListResponse.js +57 -0
- package/dist/models/ComponentMetadata.d.ts +95 -0
- package/dist/models/ComponentMetadata.js +74 -0
- package/dist/models/ComponentParameter.d.ts +48 -0
- package/dist/models/ComponentParameter.js +55 -0
- package/dist/models/CreateCollectionRequest.d.ts +44 -0
- package/dist/models/CreateCollectionRequest.js +54 -0
- package/dist/models/Dataset.d.ts +117 -0
- package/dist/models/Dataset.js +94 -0
- package/dist/models/DatasetCreateRequest.d.ts +58 -0
- package/dist/models/DatasetCreateRequest.js +68 -0
- package/dist/models/DatasetListResponse.d.ts +51 -0
- package/dist/models/DatasetListResponse.js +59 -0
- package/dist/models/DatasetPipelineConfigInput.d.ts +62 -0
- package/dist/models/DatasetPipelineConfigInput.js +65 -0
- package/dist/models/DatasetPipelineConfigOutput.d.ts +62 -0
- package/dist/models/DatasetPipelineConfigOutput.js +65 -0
- package/dist/models/DatasetResponse.d.ts +124 -0
- package/dist/models/DatasetResponse.js +100 -0
- package/dist/models/DatasetSchemaDefinition.d.ts +65 -0
- package/dist/models/DatasetSchemaDefinition.js +71 -0
- package/dist/models/DatasetSchemaOriginal.d.ts +46 -0
- package/dist/models/DatasetSchemaOriginal.js +52 -0
- package/dist/models/DatasetSchemaProcessed.d.ts +46 -0
- package/dist/models/DatasetSchemaProcessed.js +52 -0
- package/dist/models/DatasetSchemaProcessing.d.ts +38 -0
- package/dist/models/DatasetSchemaProcessing.js +50 -0
- package/dist/models/DatasetType.d.ts +27 -0
- package/dist/models/DatasetType.js +53 -0
- package/dist/models/DatasetUpdateSchemaRequest.d.ts +39 -0
- package/dist/models/DatasetUpdateSchemaRequest.js +55 -0
- package/dist/models/Default.d.ts +26 -0
- package/dist/models/Default.js +38 -0
- package/dist/models/EmbeddingProvider.d.ts +27 -0
- package/dist/models/EmbeddingProvider.js +53 -0
- package/dist/models/EmbeddingResponse.d.ts +57 -0
- package/dist/models/EmbeddingResponse.js +67 -0
- package/dist/models/Entry.d.ts +130 -0
- package/dist/models/Entry.js +100 -0
- package/dist/models/EntryContentResponse.d.ts +40 -0
- package/dist/models/EntryContentResponse.js +54 -0
- package/dist/models/EntryCreateRequest.d.ts +58 -0
- package/dist/models/EntryCreateRequest.js +62 -0
- package/dist/models/EntryCreateResponse.d.ts +39 -0
- package/dist/models/EntryCreateResponse.js +53 -0
- package/dist/models/EntryManifest.d.ts +71 -0
- package/dist/models/EntryManifest.js +65 -0
- package/dist/models/EntryPreview.d.ts +56 -0
- package/dist/models/EntryPreview.js +54 -0
- package/dist/models/EntrySearchResponse.d.ts +47 -0
- package/dist/models/EntrySearchResponse.js +57 -0
- package/dist/models/EntrySearchResult.d.ts +65 -0
- package/dist/models/EntrySearchResult.js +69 -0
- package/dist/models/EntryStatus.d.ts +29 -0
- package/dist/models/EntryStatus.js +55 -0
- package/dist/models/EntryUpdateRequest.d.ts +53 -0
- package/dist/models/EntryUpdateRequest.js +55 -0
- package/dist/models/EntryWithContent.d.ts +132 -0
- package/dist/models/EntryWithContent.js +102 -0
- package/dist/models/FileMetadata.d.ts +62 -0
- package/dist/models/FileMetadata.js +64 -0
- package/dist/models/GenerateEmbeddingsRequest.d.ts +44 -0
- package/dist/models/GenerateEmbeddingsRequest.js +54 -0
- package/dist/models/HTTPValidationError.d.ts +33 -0
- package/dist/models/HTTPValidationError.js +49 -0
- package/dist/models/HealthResponse.d.ts +50 -0
- package/dist/models/HealthResponse.js +62 -0
- package/dist/models/KeywordSearchHit.d.ts +96 -0
- package/dist/models/KeywordSearchHit.js +82 -0
- package/dist/models/KeywordSearchRequest.d.ts +102 -0
- package/dist/models/KeywordSearchRequest.js +80 -0
- package/dist/models/KeywordSearchResponse.d.ts +47 -0
- package/dist/models/KeywordSearchResponse.js +57 -0
- package/dist/models/ModelInfo.d.ts +51 -0
- package/dist/models/ModelInfo.js +63 -0
- package/dist/models/OriginalManifest.d.ts +41 -0
- package/dist/models/OriginalManifest.js +51 -0
- package/dist/models/PipelineStepConfig.d.ts +80 -0
- package/dist/models/PipelineStepConfig.js +69 -0
- package/dist/models/PresetListResponse.d.ts +42 -0
- package/dist/models/PresetListResponse.js +54 -0
- package/dist/models/ProcessedManifest.d.ts +59 -0
- package/dist/models/ProcessedManifest.js +57 -0
- package/dist/models/ProcessingManifest.d.ts +39 -0
- package/dist/models/ProcessingManifest.js +51 -0
- package/dist/models/RetryFailedWebhooksResponse.d.ts +44 -0
- package/dist/models/RetryFailedWebhooksResponse.js +58 -0
- package/dist/models/SaveProcessedContentRequest.d.ts +42 -0
- package/dist/models/SaveProcessedContentRequest.js +52 -0
- package/dist/models/SaveProcessedContentResponse.d.ts +45 -0
- package/dist/models/SaveProcessedContentResponse.js +57 -0
- package/dist/models/SearchSnippet.d.ts +57 -0
- package/dist/models/SearchSnippet.js +65 -0
- package/dist/models/SnippetContext.d.ts +68 -0
- package/dist/models/SnippetContext.js +75 -0
- package/dist/models/UploadFileResponse.d.ts +63 -0
- package/dist/models/UploadFileResponse.js +69 -0
- package/dist/models/ValidationError.d.ts +45 -0
- package/dist/models/ValidationError.js +59 -0
- package/dist/models/ValidationErrorLocInner.d.ts +26 -0
- package/dist/models/ValidationErrorLocInner.js +38 -0
- package/dist/models/VectorSearchRequest.d.ts +71 -0
- package/dist/models/VectorSearchRequest.js +60 -0
- package/dist/models/WebhookEndpointCreate.d.ts +32 -0
- package/dist/models/WebhookEndpointCreate.js +50 -0
- package/dist/models/WebhookEndpointResponse.d.ts +50 -0
- package/dist/models/WebhookEndpointResponse.js +62 -0
- package/dist/models/Weight.d.ts +101 -0
- package/dist/models/Weight.js +85 -0
- package/dist/models/WeightListResponse.d.ts +51 -0
- package/dist/models/WeightListResponse.js +59 -0
- package/dist/models/WeightResponse.d.ts +107 -0
- package/dist/models/WeightResponse.js +87 -0
- package/dist/models/WeightType.d.ts +26 -0
- package/dist/models/WeightType.js +52 -0
- package/dist/models/index.d.ts +66 -0
- package/dist/models/index.js +84 -0
- package/dist/runtime.d.ts +182 -0
- package/dist/runtime.js +334 -0
- package/package.json +38 -0
- package/src/apis/AdminApi.ts +140 -0
- package/src/apis/DatasetsApi.ts +461 -0
- package/src/apis/DefaultApi.ts +79 -0
- package/src/apis/EmbeddingsApi.ts +204 -0
- package/src/apis/EntriesApi.ts +969 -0
- package/src/apis/HealthApi.ts +161 -0
- package/src/apis/PipelinesApi.ts +432 -0
- package/src/apis/SearchApi.ts +234 -0
- package/src/apis/SyncApi.ts +125 -0
- package/src/apis/WebhooksApi.ts +191 -0
- package/src/apis/WeightsApi.ts +600 -0
- package/src/apis/index.ts +13 -0
- package/src/index.ts +5 -0
- package/src/models/ArtifactInputConfig.ts +86 -0
- package/src/models/BatchContentRequest.ts +66 -0
- package/src/models/BatchContentResponse.ts +74 -0
- package/src/models/BatchGetEntriesRequest.ts +98 -0
- package/src/models/BatchGetEntriesResponse.ts +83 -0
- package/src/models/ChunkSearchResponse.ts +91 -0
- package/src/models/ChunkSearchResult.ts +91 -0
- package/src/models/CollectionInfo.ts +93 -0
- package/src/models/ComponentArtifact.ts +84 -0
- package/src/models/ComponentListResponse.ts +93 -0
- package/src/models/ComponentMetadata.ts +158 -0
- package/src/models/ComponentParameter.ts +93 -0
- package/src/models/CreateCollectionRequest.ts +82 -0
- package/src/models/Dataset.ts +200 -0
- package/src/models/DatasetCreateRequest.ts +119 -0
- package/src/models/DatasetListResponse.ts +99 -0
- package/src/models/DatasetPipelineConfigInput.ts +112 -0
- package/src/models/DatasetPipelineConfigOutput.ts +112 -0
- package/src/models/DatasetResponse.ts +212 -0
- package/src/models/DatasetSchemaDefinition.ts +132 -0
- package/src/models/DatasetSchemaOriginal.ts +81 -0
- package/src/models/DatasetSchemaProcessed.ts +81 -0
- package/src/models/DatasetSchemaProcessing.ts +73 -0
- package/src/models/DatasetType.ts +55 -0
- package/src/models/DatasetUpdateSchemaRequest.ts +83 -0
- package/src/models/Default.ts +46 -0
- package/src/models/EmbeddingProvider.ts +55 -0
- package/src/models/EmbeddingResponse.ts +112 -0
- package/src/models/Entry.ts +218 -0
- package/src/models/EntryContentResponse.ts +75 -0
- package/src/models/EntryCreateRequest.ts +100 -0
- package/src/models/EntryCreateResponse.ts +82 -0
- package/src/models/EntryManifest.ts +135 -0
- package/src/models/EntryPreview.ts +89 -0
- package/src/models/EntrySearchResponse.ts +91 -0
- package/src/models/EntrySearchResult.ts +118 -0
- package/src/models/EntryStatus.ts +57 -0
- package/src/models/EntryUpdateRequest.ts +99 -0
- package/src/models/EntryWithContent.ts +220 -0
- package/src/models/FileMetadata.ts +108 -0
- package/src/models/GenerateEmbeddingsRequest.ts +82 -0
- package/src/models/HTTPValidationError.ts +73 -0
- package/src/models/HealthResponse.ts +93 -0
- package/src/models/KeywordSearchHit.ts +166 -0
- package/src/models/KeywordSearchRequest.ts +159 -0
- package/src/models/KeywordSearchResponse.ts +91 -0
- package/src/models/ModelInfo.ts +103 -0
- package/src/models/OriginalManifest.ts +81 -0
- package/src/models/PipelineStepConfig.ts +135 -0
- package/src/models/PresetListResponse.ts +77 -0
- package/src/models/ProcessedManifest.ts +105 -0
- package/src/models/ProcessingManifest.ts +81 -0
- package/src/models/RetryFailedWebhooksResponse.ts +84 -0
- package/src/models/SaveProcessedContentRequest.ts +74 -0
- package/src/models/SaveProcessedContentResponse.ts +91 -0
- package/src/models/SearchSnippet.ts +109 -0
- package/src/models/SnippetContext.ts +113 -0
- package/src/models/UploadFileResponse.ts +118 -0
- package/src/models/ValidationError.ts +92 -0
- package/src/models/ValidationErrorLocInner.ts +46 -0
- package/src/models/VectorSearchRequest.ts +116 -0
- package/src/models/WebhookEndpointCreate.ts +66 -0
- package/src/models/WebhookEndpointResponse.ts +93 -0
- package/src/models/Weight.ts +170 -0
- package/src/models/WeightListResponse.ts +99 -0
- package/src/models/WeightResponse.ts +178 -0
- package/src/models/WeightType.ts +54 -0
- package/src/models/index.ts +68 -0
- package/src/runtime.ts +431 -0
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Client Data API
|
|
6
|
+
* Client Cluster Data API - Manifest-based storage service
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
16
|
+
if (k2 === undefined) k2 = k;
|
|
17
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
18
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
19
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
20
|
+
}
|
|
21
|
+
Object.defineProperty(o, k2, desc);
|
|
22
|
+
}) : (function(o, m, k, k2) {
|
|
23
|
+
if (k2 === undefined) k2 = k;
|
|
24
|
+
o[k2] = m[k];
|
|
25
|
+
}));
|
|
26
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
27
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
28
|
+
}) : function(o, v) {
|
|
29
|
+
o["default"] = v;
|
|
30
|
+
});
|
|
31
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
32
|
+
var ownKeys = function(o) {
|
|
33
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
34
|
+
var ar = [];
|
|
35
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
36
|
+
return ar;
|
|
37
|
+
};
|
|
38
|
+
return ownKeys(o);
|
|
39
|
+
};
|
|
40
|
+
return function (mod) {
|
|
41
|
+
if (mod && mod.__esModule) return mod;
|
|
42
|
+
var result = {};
|
|
43
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
44
|
+
__setModuleDefault(result, mod);
|
|
45
|
+
return result;
|
|
46
|
+
};
|
|
47
|
+
})();
|
|
48
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
49
|
+
exports.WebhooksApi = void 0;
|
|
50
|
+
const runtime = __importStar(require("../runtime"));
|
|
51
|
+
const index_1 = require("../models/index");
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
*/
|
|
55
|
+
class WebhooksApi extends runtime.BaseAPI {
|
|
56
|
+
/**
|
|
57
|
+
* Create Webhook
|
|
58
|
+
*/
|
|
59
|
+
async createWebhookApiV1WebhooksPostRaw(requestParameters, initOverrides) {
|
|
60
|
+
if (requestParameters['webhookEndpointCreate'] == null) {
|
|
61
|
+
throw new runtime.RequiredError('webhookEndpointCreate', 'Required parameter "webhookEndpointCreate" was null or undefined when calling createWebhookApiV1WebhooksPost().');
|
|
62
|
+
}
|
|
63
|
+
const queryParameters = {};
|
|
64
|
+
const headerParameters = {};
|
|
65
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
66
|
+
const response = await this.request({
|
|
67
|
+
path: `/api/v1/webhooks`,
|
|
68
|
+
method: 'POST',
|
|
69
|
+
headers: headerParameters,
|
|
70
|
+
query: queryParameters,
|
|
71
|
+
body: (0, index_1.WebhookEndpointCreateToJSON)(requestParameters['webhookEndpointCreate']),
|
|
72
|
+
}, initOverrides);
|
|
73
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.WebhookEndpointResponseFromJSON)(jsonValue));
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Create Webhook
|
|
77
|
+
*/
|
|
78
|
+
async createWebhookApiV1WebhooksPost(requestParameters, initOverrides) {
|
|
79
|
+
const response = await this.createWebhookApiV1WebhooksPostRaw(requestParameters, initOverrides);
|
|
80
|
+
return await response.value();
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Delete Webhook
|
|
84
|
+
*/
|
|
85
|
+
async deleteWebhookApiV1WebhooksWebhookIdDeleteRaw(requestParameters, initOverrides) {
|
|
86
|
+
if (requestParameters['webhookId'] == null) {
|
|
87
|
+
throw new runtime.RequiredError('webhookId', 'Required parameter "webhookId" was null or undefined when calling deleteWebhookApiV1WebhooksWebhookIdDelete().');
|
|
88
|
+
}
|
|
89
|
+
const queryParameters = {};
|
|
90
|
+
const headerParameters = {};
|
|
91
|
+
const response = await this.request({
|
|
92
|
+
path: `/api/v1/webhooks/{webhook_id}`.replace(`{${"webhook_id"}}`, encodeURIComponent(String(requestParameters['webhookId']))),
|
|
93
|
+
method: 'DELETE',
|
|
94
|
+
headers: headerParameters,
|
|
95
|
+
query: queryParameters,
|
|
96
|
+
}, initOverrides);
|
|
97
|
+
return new runtime.VoidApiResponse(response);
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* Delete Webhook
|
|
101
|
+
*/
|
|
102
|
+
async deleteWebhookApiV1WebhooksWebhookIdDelete(requestParameters, initOverrides) {
|
|
103
|
+
await this.deleteWebhookApiV1WebhooksWebhookIdDeleteRaw(requestParameters, initOverrides);
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* List Webhooks
|
|
107
|
+
*/
|
|
108
|
+
async listWebhooksApiV1WebhooksGetRaw(initOverrides) {
|
|
109
|
+
const queryParameters = {};
|
|
110
|
+
const headerParameters = {};
|
|
111
|
+
const response = await this.request({
|
|
112
|
+
path: `/api/v1/webhooks`,
|
|
113
|
+
method: 'GET',
|
|
114
|
+
headers: headerParameters,
|
|
115
|
+
query: queryParameters,
|
|
116
|
+
}, initOverrides);
|
|
117
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.WebhookEndpointResponseFromJSON));
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* List Webhooks
|
|
121
|
+
*/
|
|
122
|
+
async listWebhooksApiV1WebhooksGet(initOverrides) {
|
|
123
|
+
const response = await this.listWebhooksApiV1WebhooksGetRaw(initOverrides);
|
|
124
|
+
return await response.value();
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
exports.WebhooksApi = WebhooksApi;
|
|
@@ -0,0 +1,276 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Client Data API
|
|
3
|
+
* Client Cluster Data API - Manifest-based storage service
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import * as runtime from '../runtime';
|
|
13
|
+
import type { Weight, WeightListResponse, WeightResponse, WeightType } from '../models/index';
|
|
14
|
+
export interface CreateWeightApiV1WeightsPostRequest {
|
|
15
|
+
file: Blob;
|
|
16
|
+
weightType: WeightType;
|
|
17
|
+
aiModelId: number;
|
|
18
|
+
datasetId?: number | null;
|
|
19
|
+
externalId?: string | null;
|
|
20
|
+
metadata?: string | null;
|
|
21
|
+
}
|
|
22
|
+
export interface DeleteWeightApiV1WeightsWeightIdDeleteRequest {
|
|
23
|
+
weightId: number;
|
|
24
|
+
deleteFile?: boolean;
|
|
25
|
+
}
|
|
26
|
+
export interface GetWeightApiV1WeightsWeightIdGetRequest {
|
|
27
|
+
weightId: number;
|
|
28
|
+
includeDownloadUrl?: boolean;
|
|
29
|
+
}
|
|
30
|
+
export interface GetWeightByExternalIdApiV1WeightsExternalExternalIdGetRequest {
|
|
31
|
+
externalId: string;
|
|
32
|
+
includeDownloadUrl?: boolean;
|
|
33
|
+
}
|
|
34
|
+
export interface GetWeightDownloadUrlApiV1WeightsWeightIdDownloadUrlGetRequest {
|
|
35
|
+
weightId: number;
|
|
36
|
+
expirySeconds?: number;
|
|
37
|
+
}
|
|
38
|
+
export interface ListWeightsApiV1WeightsGetRequest {
|
|
39
|
+
limit?: number;
|
|
40
|
+
offset?: number;
|
|
41
|
+
weightType?: WeightType | null;
|
|
42
|
+
aiModelId?: number | null;
|
|
43
|
+
datasetId?: number | null;
|
|
44
|
+
}
|
|
45
|
+
export interface ListWeightsByAiModelApiV1WeightsAiModelAiModelIdGetRequest {
|
|
46
|
+
aiModelId: number;
|
|
47
|
+
}
|
|
48
|
+
export interface ListWeightsByDatasetApiV1WeightsDatasetDatasetIdGetRequest {
|
|
49
|
+
datasetId: number;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* WeightsApi - interface
|
|
53
|
+
*
|
|
54
|
+
* @export
|
|
55
|
+
* @interface WeightsApiInterface
|
|
56
|
+
*/
|
|
57
|
+
export interface WeightsApiInterface {
|
|
58
|
+
/**
|
|
59
|
+
* Upload a new weight file. This endpoint accepts multipart/form-data for file uploads. For LoRA files, typical metadata includes: rank, alpha, target_modules. For voice_id, use external_id for the provider\'s ID.
|
|
60
|
+
* @summary Create Weight
|
|
61
|
+
* @param {Blob} file Weight file (LoRA, safetensors, etc.)
|
|
62
|
+
* @param {WeightType} weightType Type of weight
|
|
63
|
+
* @param {number} aiModelId AI model ID from backend
|
|
64
|
+
* @param {number} [datasetId]
|
|
65
|
+
* @param {string} [externalId]
|
|
66
|
+
* @param {string} [metadata]
|
|
67
|
+
* @param {*} [options] Override http request option.
|
|
68
|
+
* @throws {RequiredError}
|
|
69
|
+
* @memberof WeightsApiInterface
|
|
70
|
+
*/
|
|
71
|
+
createWeightApiV1WeightsPostRaw(requestParameters: CreateWeightApiV1WeightsPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<WeightResponse>>;
|
|
72
|
+
/**
|
|
73
|
+
* Upload a new weight file. This endpoint accepts multipart/form-data for file uploads. For LoRA files, typical metadata includes: rank, alpha, target_modules. For voice_id, use external_id for the provider\'s ID.
|
|
74
|
+
* Create Weight
|
|
75
|
+
*/
|
|
76
|
+
createWeightApiV1WeightsPost(requestParameters: CreateWeightApiV1WeightsPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WeightResponse>;
|
|
77
|
+
/**
|
|
78
|
+
* Delete weight. By default, also deletes the file from S3 storage. Set delete_file=false to only remove the database record.
|
|
79
|
+
* @summary Delete Weight
|
|
80
|
+
* @param {number} weightId
|
|
81
|
+
* @param {boolean} [deleteFile] Also delete file from S3
|
|
82
|
+
* @param {*} [options] Override http request option.
|
|
83
|
+
* @throws {RequiredError}
|
|
84
|
+
* @memberof WeightsApiInterface
|
|
85
|
+
*/
|
|
86
|
+
deleteWeightApiV1WeightsWeightIdDeleteRaw(requestParameters: DeleteWeightApiV1WeightsWeightIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
87
|
+
/**
|
|
88
|
+
* Delete weight. By default, also deletes the file from S3 storage. Set delete_file=false to only remove the database record.
|
|
89
|
+
* Delete Weight
|
|
90
|
+
*/
|
|
91
|
+
deleteWeightApiV1WeightsWeightIdDelete(requestParameters: DeleteWeightApiV1WeightsWeightIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
92
|
+
/**
|
|
93
|
+
* Get weight by ID with optional download URL
|
|
94
|
+
* @summary Get Weight
|
|
95
|
+
* @param {number} weightId
|
|
96
|
+
* @param {boolean} [includeDownloadUrl] Include pre-signed download URL
|
|
97
|
+
* @param {*} [options] Override http request option.
|
|
98
|
+
* @throws {RequiredError}
|
|
99
|
+
* @memberof WeightsApiInterface
|
|
100
|
+
*/
|
|
101
|
+
getWeightApiV1WeightsWeightIdGetRaw(requestParameters: GetWeightApiV1WeightsWeightIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<WeightResponse>>;
|
|
102
|
+
/**
|
|
103
|
+
* Get weight by ID with optional download URL
|
|
104
|
+
* Get Weight
|
|
105
|
+
*/
|
|
106
|
+
getWeightApiV1WeightsWeightIdGet(requestParameters: GetWeightApiV1WeightsWeightIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WeightResponse>;
|
|
107
|
+
/**
|
|
108
|
+
* Get weight by external provider ID. Useful for third-party services like ElevenLabs voice IDs.
|
|
109
|
+
* @summary Get Weight By External Id
|
|
110
|
+
* @param {string} externalId
|
|
111
|
+
* @param {boolean} [includeDownloadUrl]
|
|
112
|
+
* @param {*} [options] Override http request option.
|
|
113
|
+
* @throws {RequiredError}
|
|
114
|
+
* @memberof WeightsApiInterface
|
|
115
|
+
*/
|
|
116
|
+
getWeightByExternalIdApiV1WeightsExternalExternalIdGetRaw(requestParameters: GetWeightByExternalIdApiV1WeightsExternalExternalIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<WeightResponse>>;
|
|
117
|
+
/**
|
|
118
|
+
* Get weight by external provider ID. Useful for third-party services like ElevenLabs voice IDs.
|
|
119
|
+
* Get Weight By External Id
|
|
120
|
+
*/
|
|
121
|
+
getWeightByExternalIdApiV1WeightsExternalExternalIdGet(requestParameters: GetWeightByExternalIdApiV1WeightsExternalExternalIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WeightResponse>;
|
|
122
|
+
/**
|
|
123
|
+
* Get pre-signed download URL for weight file. Returns a temporary URL that expires after the specified time.
|
|
124
|
+
* @summary Get Weight Download Url
|
|
125
|
+
* @param {number} weightId
|
|
126
|
+
* @param {number} [expirySeconds] URL expiry in seconds (1 min - 24 hours)
|
|
127
|
+
* @param {*} [options] Override http request option.
|
|
128
|
+
* @throws {RequiredError}
|
|
129
|
+
* @memberof WeightsApiInterface
|
|
130
|
+
*/
|
|
131
|
+
getWeightDownloadUrlApiV1WeightsWeightIdDownloadUrlGetRaw(requestParameters: GetWeightDownloadUrlApiV1WeightsWeightIdDownloadUrlGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<{
|
|
132
|
+
[key: string]: any;
|
|
133
|
+
}>>;
|
|
134
|
+
/**
|
|
135
|
+
* Get pre-signed download URL for weight file. Returns a temporary URL that expires after the specified time.
|
|
136
|
+
* Get Weight Download Url
|
|
137
|
+
*/
|
|
138
|
+
getWeightDownloadUrlApiV1WeightsWeightIdDownloadUrlGet(requestParameters: GetWeightDownloadUrlApiV1WeightsWeightIdDownloadUrlGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{
|
|
139
|
+
[key: string]: any;
|
|
140
|
+
}>;
|
|
141
|
+
/**
|
|
142
|
+
* List weights with pagination and filters
|
|
143
|
+
* @summary List Weights
|
|
144
|
+
* @param {number} [limit]
|
|
145
|
+
* @param {number} [offset]
|
|
146
|
+
* @param {WeightType} [weightType] Filter by weight type
|
|
147
|
+
* @param {number} [aiModelId] Filter by AI model ID
|
|
148
|
+
* @param {number} [datasetId] Filter by dataset ID
|
|
149
|
+
* @param {*} [options] Override http request option.
|
|
150
|
+
* @throws {RequiredError}
|
|
151
|
+
* @memberof WeightsApiInterface
|
|
152
|
+
*/
|
|
153
|
+
listWeightsApiV1WeightsGetRaw(requestParameters: ListWeightsApiV1WeightsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<WeightListResponse>>;
|
|
154
|
+
/**
|
|
155
|
+
* List weights with pagination and filters
|
|
156
|
+
* List Weights
|
|
157
|
+
*/
|
|
158
|
+
listWeightsApiV1WeightsGet(requestParameters: ListWeightsApiV1WeightsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WeightListResponse>;
|
|
159
|
+
/**
|
|
160
|
+
* Get all weights for a specific AI model
|
|
161
|
+
* @summary List Weights By Ai Model
|
|
162
|
+
* @param {number} aiModelId
|
|
163
|
+
* @param {*} [options] Override http request option.
|
|
164
|
+
* @throws {RequiredError}
|
|
165
|
+
* @memberof WeightsApiInterface
|
|
166
|
+
*/
|
|
167
|
+
listWeightsByAiModelApiV1WeightsAiModelAiModelIdGetRaw(requestParameters: ListWeightsByAiModelApiV1WeightsAiModelAiModelIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<Weight>>>;
|
|
168
|
+
/**
|
|
169
|
+
* Get all weights for a specific AI model
|
|
170
|
+
* List Weights By Ai Model
|
|
171
|
+
*/
|
|
172
|
+
listWeightsByAiModelApiV1WeightsAiModelAiModelIdGet(requestParameters: ListWeightsByAiModelApiV1WeightsAiModelAiModelIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Weight>>;
|
|
173
|
+
/**
|
|
174
|
+
* Get all weights trained on a specific dataset
|
|
175
|
+
* @summary List Weights By Dataset
|
|
176
|
+
* @param {number} datasetId
|
|
177
|
+
* @param {*} [options] Override http request option.
|
|
178
|
+
* @throws {RequiredError}
|
|
179
|
+
* @memberof WeightsApiInterface
|
|
180
|
+
*/
|
|
181
|
+
listWeightsByDatasetApiV1WeightsDatasetDatasetIdGetRaw(requestParameters: ListWeightsByDatasetApiV1WeightsDatasetDatasetIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<Weight>>>;
|
|
182
|
+
/**
|
|
183
|
+
* Get all weights trained on a specific dataset
|
|
184
|
+
* List Weights By Dataset
|
|
185
|
+
*/
|
|
186
|
+
listWeightsByDatasetApiV1WeightsDatasetDatasetIdGet(requestParameters: ListWeightsByDatasetApiV1WeightsDatasetDatasetIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Weight>>;
|
|
187
|
+
}
|
|
188
|
+
/**
|
|
189
|
+
*
|
|
190
|
+
*/
|
|
191
|
+
export declare class WeightsApi extends runtime.BaseAPI implements WeightsApiInterface {
|
|
192
|
+
/**
|
|
193
|
+
* Upload a new weight file. This endpoint accepts multipart/form-data for file uploads. For LoRA files, typical metadata includes: rank, alpha, target_modules. For voice_id, use external_id for the provider\'s ID.
|
|
194
|
+
* Create Weight
|
|
195
|
+
*/
|
|
196
|
+
createWeightApiV1WeightsPostRaw(requestParameters: CreateWeightApiV1WeightsPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<WeightResponse>>;
|
|
197
|
+
/**
|
|
198
|
+
* Upload a new weight file. This endpoint accepts multipart/form-data for file uploads. For LoRA files, typical metadata includes: rank, alpha, target_modules. For voice_id, use external_id for the provider\'s ID.
|
|
199
|
+
* Create Weight
|
|
200
|
+
*/
|
|
201
|
+
createWeightApiV1WeightsPost(requestParameters: CreateWeightApiV1WeightsPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WeightResponse>;
|
|
202
|
+
/**
|
|
203
|
+
* Delete weight. By default, also deletes the file from S3 storage. Set delete_file=false to only remove the database record.
|
|
204
|
+
* Delete Weight
|
|
205
|
+
*/
|
|
206
|
+
deleteWeightApiV1WeightsWeightIdDeleteRaw(requestParameters: DeleteWeightApiV1WeightsWeightIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
207
|
+
/**
|
|
208
|
+
* Delete weight. By default, also deletes the file from S3 storage. Set delete_file=false to only remove the database record.
|
|
209
|
+
* Delete Weight
|
|
210
|
+
*/
|
|
211
|
+
deleteWeightApiV1WeightsWeightIdDelete(requestParameters: DeleteWeightApiV1WeightsWeightIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
212
|
+
/**
|
|
213
|
+
* Get weight by ID with optional download URL
|
|
214
|
+
* Get Weight
|
|
215
|
+
*/
|
|
216
|
+
getWeightApiV1WeightsWeightIdGetRaw(requestParameters: GetWeightApiV1WeightsWeightIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<WeightResponse>>;
|
|
217
|
+
/**
|
|
218
|
+
* Get weight by ID with optional download URL
|
|
219
|
+
* Get Weight
|
|
220
|
+
*/
|
|
221
|
+
getWeightApiV1WeightsWeightIdGet(requestParameters: GetWeightApiV1WeightsWeightIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WeightResponse>;
|
|
222
|
+
/**
|
|
223
|
+
* Get weight by external provider ID. Useful for third-party services like ElevenLabs voice IDs.
|
|
224
|
+
* Get Weight By External Id
|
|
225
|
+
*/
|
|
226
|
+
getWeightByExternalIdApiV1WeightsExternalExternalIdGetRaw(requestParameters: GetWeightByExternalIdApiV1WeightsExternalExternalIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<WeightResponse>>;
|
|
227
|
+
/**
|
|
228
|
+
* Get weight by external provider ID. Useful for third-party services like ElevenLabs voice IDs.
|
|
229
|
+
* Get Weight By External Id
|
|
230
|
+
*/
|
|
231
|
+
getWeightByExternalIdApiV1WeightsExternalExternalIdGet(requestParameters: GetWeightByExternalIdApiV1WeightsExternalExternalIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WeightResponse>;
|
|
232
|
+
/**
|
|
233
|
+
* Get pre-signed download URL for weight file. Returns a temporary URL that expires after the specified time.
|
|
234
|
+
* Get Weight Download Url
|
|
235
|
+
*/
|
|
236
|
+
getWeightDownloadUrlApiV1WeightsWeightIdDownloadUrlGetRaw(requestParameters: GetWeightDownloadUrlApiV1WeightsWeightIdDownloadUrlGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<{
|
|
237
|
+
[key: string]: any;
|
|
238
|
+
}>>;
|
|
239
|
+
/**
|
|
240
|
+
* Get pre-signed download URL for weight file. Returns a temporary URL that expires after the specified time.
|
|
241
|
+
* Get Weight Download Url
|
|
242
|
+
*/
|
|
243
|
+
getWeightDownloadUrlApiV1WeightsWeightIdDownloadUrlGet(requestParameters: GetWeightDownloadUrlApiV1WeightsWeightIdDownloadUrlGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{
|
|
244
|
+
[key: string]: any;
|
|
245
|
+
}>;
|
|
246
|
+
/**
|
|
247
|
+
* List weights with pagination and filters
|
|
248
|
+
* List Weights
|
|
249
|
+
*/
|
|
250
|
+
listWeightsApiV1WeightsGetRaw(requestParameters: ListWeightsApiV1WeightsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<WeightListResponse>>;
|
|
251
|
+
/**
|
|
252
|
+
* List weights with pagination and filters
|
|
253
|
+
* List Weights
|
|
254
|
+
*/
|
|
255
|
+
listWeightsApiV1WeightsGet(requestParameters?: ListWeightsApiV1WeightsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WeightListResponse>;
|
|
256
|
+
/**
|
|
257
|
+
* Get all weights for a specific AI model
|
|
258
|
+
* List Weights By Ai Model
|
|
259
|
+
*/
|
|
260
|
+
listWeightsByAiModelApiV1WeightsAiModelAiModelIdGetRaw(requestParameters: ListWeightsByAiModelApiV1WeightsAiModelAiModelIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<Weight>>>;
|
|
261
|
+
/**
|
|
262
|
+
* Get all weights for a specific AI model
|
|
263
|
+
* List Weights By Ai Model
|
|
264
|
+
*/
|
|
265
|
+
listWeightsByAiModelApiV1WeightsAiModelAiModelIdGet(requestParameters: ListWeightsByAiModelApiV1WeightsAiModelAiModelIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Weight>>;
|
|
266
|
+
/**
|
|
267
|
+
* Get all weights trained on a specific dataset
|
|
268
|
+
* List Weights By Dataset
|
|
269
|
+
*/
|
|
270
|
+
listWeightsByDatasetApiV1WeightsDatasetDatasetIdGetRaw(requestParameters: ListWeightsByDatasetApiV1WeightsDatasetDatasetIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<Weight>>>;
|
|
271
|
+
/**
|
|
272
|
+
* Get all weights trained on a specific dataset
|
|
273
|
+
* List Weights By Dataset
|
|
274
|
+
*/
|
|
275
|
+
listWeightsByDatasetApiV1WeightsDatasetDatasetIdGet(requestParameters: ListWeightsByDatasetApiV1WeightsDatasetDatasetIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Weight>>;
|
|
276
|
+
}
|