@algolia/ingestion 1.5.1 → 1.5.3
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/browser.d.ts +2 -50
- package/dist/builds/browser.js +1 -62
- package/dist/builds/browser.js.map +1 -1
- package/dist/builds/browser.min.js +1 -1
- package/dist/builds/browser.min.js.map +1 -1
- package/dist/builds/browser.umd.js +2 -2
- package/dist/builds/fetch.js +1 -62
- package/dist/builds/fetch.js.map +1 -1
- package/dist/builds/node.cjs +1 -62
- package/dist/builds/node.cjs.map +1 -1
- package/dist/builds/node.js +1 -62
- package/dist/builds/node.js.map +1 -1
- package/dist/fetch.d.ts +2 -50
- package/dist/node.d.cts +2 -50
- package/dist/node.d.ts +2 -50
- package/dist/src/ingestionClient.cjs +1 -62
- package/dist/src/ingestionClient.cjs.map +1 -1
- package/dist/src/ingestionClient.js +1 -62
- package/dist/src/ingestionClient.js.map +1 -1
- package/model/index.ts +0 -4
- package/package.json +5 -5
- package/model/generateTransformationCodePayload.ts +0 -9
- package/model/generateTransformationCodeResponse.ts +0 -5
- package/model/model.ts +0 -13
- package/model/transformationModels.ts +0 -10
package/dist/browser.d.ts
CHANGED
|
@@ -1547,16 +1547,6 @@ type Event = {
|
|
|
1547
1547
|
publishedAt: string;
|
|
1548
1548
|
};
|
|
1549
1549
|
|
|
1550
|
-
type GenerateTransformationCodePayload = {
|
|
1551
|
-
id: string;
|
|
1552
|
-
systemPrompt?: string;
|
|
1553
|
-
userPrompt: string;
|
|
1554
|
-
};
|
|
1555
|
-
|
|
1556
|
-
type GenerateTransformationCodeResponse = {
|
|
1557
|
-
generatedCode?: string;
|
|
1558
|
-
};
|
|
1559
|
-
|
|
1560
1550
|
/**
|
|
1561
1551
|
* Paginated API response.
|
|
1562
1552
|
*/
|
|
@@ -2207,21 +2197,6 @@ type TransformationCreateResponse = {
|
|
|
2207
2197
|
createdAt: string;
|
|
2208
2198
|
};
|
|
2209
2199
|
|
|
2210
|
-
type Model = {
|
|
2211
|
-
fullname: string;
|
|
2212
|
-
modelName: string;
|
|
2213
|
-
systemPrompt: string;
|
|
2214
|
-
id: string;
|
|
2215
|
-
provider: string;
|
|
2216
|
-
};
|
|
2217
|
-
|
|
2218
|
-
/**
|
|
2219
|
-
* List of available AI models for transformation purposes.
|
|
2220
|
-
*/
|
|
2221
|
-
type TransformationModels = {
|
|
2222
|
-
llms: Model[];
|
|
2223
|
-
};
|
|
2224
|
-
|
|
2225
2200
|
type TransformationSearch = {
|
|
2226
2201
|
transformationIDs: string[];
|
|
2227
2202
|
};
|
|
@@ -2262,7 +2237,7 @@ type TransformationUpdateResponse = {
|
|
|
2262
2237
|
updatedAt: string;
|
|
2263
2238
|
};
|
|
2264
2239
|
|
|
2265
|
-
declare const apiClientVersion = "1.5.
|
|
2240
|
+
declare const apiClientVersion = "1.5.3";
|
|
2266
2241
|
declare const REGIONS: readonly ["eu", "us"];
|
|
2267
2242
|
type Region = (typeof REGIONS)[number];
|
|
2268
2243
|
/**
|
|
@@ -2528,18 +2503,6 @@ declare function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOptio
|
|
|
2528
2503
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
2529
2504
|
*/
|
|
2530
2505
|
enableTaskV1({ taskID }: EnableTaskV1Props, requestOptions?: RequestOptions): Promise<TaskUpdateResponse>;
|
|
2531
|
-
/**
|
|
2532
|
-
* Generates code for the selected model based on the given prompt.
|
|
2533
|
-
*
|
|
2534
|
-
* Required API Key ACLs:
|
|
2535
|
-
* - addObject
|
|
2536
|
-
* - deleteIndex
|
|
2537
|
-
* - editSettings.
|
|
2538
|
-
*
|
|
2539
|
-
* @param generateTransformationCodePayload - The generateTransformationCodePayload object.
|
|
2540
|
-
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
2541
|
-
*/
|
|
2542
|
-
generateTransformationCode(generateTransformationCodePayload: GenerateTransformationCodePayload, requestOptions?: RequestOptions): Promise<GenerateTransformationCodeResponse>;
|
|
2543
2506
|
/**
|
|
2544
2507
|
* Retrieves an authentication resource by its ID.
|
|
2545
2508
|
*
|
|
@@ -2783,17 +2746,6 @@ declare function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOptio
|
|
|
2783
2746
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
2784
2747
|
*/
|
|
2785
2748
|
listTasksV1({ itemsPerPage, page, action, enabled, sourceID, destinationID, triggerType, sort, order }?: ListTasksV1Props, requestOptions?: RequestOptions | undefined): Promise<ListTasksResponseV1>;
|
|
2786
|
-
/**
|
|
2787
|
-
* Retrieves a list of existing LLM transformation helpers.
|
|
2788
|
-
*
|
|
2789
|
-
* Required API Key ACLs:
|
|
2790
|
-
* - addObject
|
|
2791
|
-
* - deleteIndex
|
|
2792
|
-
* - editSettings.
|
|
2793
|
-
*
|
|
2794
|
-
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
2795
|
-
*/
|
|
2796
|
-
listTransformationModels(requestOptions?: RequestOptions): Promise<TransformationModels>;
|
|
2797
2749
|
/**
|
|
2798
2750
|
* Retrieves a list of transformations.
|
|
2799
2751
|
*
|
|
@@ -3083,4 +3035,4 @@ type IngestionClient = ReturnType<typeof createIngestionClient>;
|
|
|
3083
3035
|
|
|
3084
3036
|
declare function ingestionClient(appId: string, apiKey: string, region: Region, options?: ClientOptions): IngestionClient;
|
|
3085
3037
|
|
|
3086
|
-
export { type Action, type ActionType, type AuthAPIKey, type AuthAPIKeyPartial, type AuthAlgolia, type AuthAlgoliaInsights, type AuthAlgoliaInsightsPartial, type AuthAlgoliaPartial, type AuthBasic, type AuthBasicPartial, type AuthGoogleServiceAccount, type AuthGoogleServiceAccountPartial, type AuthInput, type AuthInputPartial, type AuthOAuth, type AuthOAuthPartial, type Authentication, type AuthenticationCreate, type AuthenticationCreateResponse, type AuthenticationSearch, type AuthenticationSortKeys, type AuthenticationType, type AuthenticationUpdate, type AuthenticationUpdateResponse, type BigCommerceChannel, type BigCommerceMetafield, type BigQueryDataType, type CommercetoolsCustomFields, type CustomDeleteProps, type CustomGetProps, type CustomPostProps, type CustomPutProps, type DeleteAuthenticationProps, type DeleteDestinationProps, type DeleteResponse, type DeleteSourceProps, type DeleteTaskProps, type DeleteTaskV1Props, type DeleteTransformationProps, type Destination, type DestinationCreate, type DestinationCreateResponse, type DestinationIndexName, type DestinationInput, type DestinationSearch, type DestinationSortKeys, type DestinationType, type DestinationUpdate, type DestinationUpdateResponse, type DisableTaskProps, type DisableTaskV1Props, type DockerImageType, type DockerRegistry, type DockerStreams, type DockerStreamsInput, type DockerStreamsSyncMode, type EnableTaskProps, type EnableTaskV1Props, type EntityType, type ErrorBase, type Event, type EventSortKeys, type EventStatus, type EventType, type
|
|
3038
|
+
export { type Action, type ActionType, type AuthAPIKey, type AuthAPIKeyPartial, type AuthAlgolia, type AuthAlgoliaInsights, type AuthAlgoliaInsightsPartial, type AuthAlgoliaPartial, type AuthBasic, type AuthBasicPartial, type AuthGoogleServiceAccount, type AuthGoogleServiceAccountPartial, type AuthInput, type AuthInputPartial, type AuthOAuth, type AuthOAuthPartial, type Authentication, type AuthenticationCreate, type AuthenticationCreateResponse, type AuthenticationSearch, type AuthenticationSortKeys, type AuthenticationType, type AuthenticationUpdate, type AuthenticationUpdateResponse, type BigCommerceChannel, type BigCommerceMetafield, type BigQueryDataType, type CommercetoolsCustomFields, type CustomDeleteProps, type CustomGetProps, type CustomPostProps, type CustomPutProps, type DeleteAuthenticationProps, type DeleteDestinationProps, type DeleteResponse, type DeleteSourceProps, type DeleteTaskProps, type DeleteTaskV1Props, type DeleteTransformationProps, type Destination, type DestinationCreate, type DestinationCreateResponse, type DestinationIndexName, type DestinationInput, type DestinationSearch, type DestinationSortKeys, type DestinationType, type DestinationUpdate, type DestinationUpdateResponse, type DisableTaskProps, type DisableTaskV1Props, type DockerImageType, type DockerRegistry, type DockerStreams, type DockerStreamsInput, type DockerStreamsSyncMode, type EnableTaskProps, type EnableTaskV1Props, type EntityType, type ErrorBase, type Event, type EventSortKeys, type EventStatus, type EventType, type GetAuthenticationProps, type GetDestinationProps, type GetEventProps, type GetRunProps, type GetSourceProps, type GetTaskProps, type GetTaskV1Props, type GetTransformationProps, type IngestionClient, type ListAuthenticationsProps, type ListAuthenticationsResponse, type ListDestinationsProps, type ListDestinationsResponse, type ListEventsProps, type ListEventsResponse, type ListRunsProps, type ListSourcesProps, type ListSourcesResponse, type ListTasksProps, type ListTasksResponse, type ListTasksResponseV1, type ListTasksV1Props, type ListTransformationsProps, type ListTransformationsResponse, type MappingFieldDirective, type MappingFormatSchema, type MappingInput, type MappingKitAction, type MappingTypeCSV, type MethodType, type OnDemandTrigger, type OnDemandTriggerInput, type OnDemandTriggerType, type OrderKeys, type Pagination, type Platform, type PlatformNone, type PlatformWithNone, type PushTaskPayload, type PushTaskProps, type PushTaskRecords, type RecordType, type Region, type Run, type RunListResponse, type RunOutcome, type RunProgress, type RunReasonCode, type RunResponse, type RunSortKeys, type RunSourcePayload, type RunSourceProps, type RunSourceResponse, type RunStatus, type RunTaskProps, type RunTaskV1Props, type RunType, type ScheduleTrigger, type ScheduleTriggerInput, type ScheduleTriggerType, type ShopifyInput, type ShopifyMarket, type ShopifyMetafield, type SortKeys, type Source, type SourceBigCommerce, type SourceBigQuery, type SourceCSV, type SourceCommercetools, type SourceCreate, type SourceCreateResponse, type SourceDocker, type SourceGA4BigQueryExport, type SourceInput, type SourceJSON, type SourceSearch, type SourceShopify, type SourceShopifyBase, type SourceSortKeys, type SourceType, type SourceUpdate, type SourceUpdateCommercetools, type SourceUpdateDocker, type SourceUpdateInput, type SourceUpdateResponse, type SourceUpdateShopify, type SourceWatchResponse, type StreamingInput, type StreamingTrigger, type StreamingTriggerType, type SubscriptionTrigger, type SubscriptionTriggerType, type Task, type TaskCreate, type TaskCreateResponse, type TaskCreateTrigger, type TaskCreateV1, type TaskInput, type TaskSearch, type TaskSortKeys, type TaskUpdate, type TaskUpdateResponse, type TaskUpdateV1, type TaskV1, type Transformation, type TransformationCreate, type TransformationCreateResponse, type TransformationError, type TransformationSearch, type TransformationTry, type TransformationTryResponse, type TransformationUpdateResponse, type Trigger, type TriggerDockerSourceDiscoverProps, type TriggerType, type TriggerUpdateInput, type TryTransformationBeforeUpdateProps, type UpdateAuthenticationProps, type UpdateDestinationProps, type UpdateSourceProps, type UpdateTaskProps, type UpdateTaskV1Props, type UpdateTransformationProps, type ValidateSourceBeforeUpdateProps, type Window, apiClientVersion, ingestionClient, isOnDemandTrigger, isScheduleTrigger, isSubscriptionTrigger };
|
package/dist/builds/browser.js
CHANGED
|
@@ -11,7 +11,7 @@ import { createXhrRequester } from "@algolia/requester-browser-xhr";
|
|
|
11
11
|
|
|
12
12
|
// src/ingestionClient.ts
|
|
13
13
|
import { createAuth, createTransporter, getAlgoliaAgent } from "@algolia/client-common";
|
|
14
|
-
var apiClientVersion = "1.5.
|
|
14
|
+
var apiClientVersion = "1.5.3";
|
|
15
15
|
var REGIONS = ["eu", "us"];
|
|
16
16
|
function getDefaultHosts(region) {
|
|
17
17
|
const url = "data.{region}.algolia.com".replace("{region}", region);
|
|
@@ -651,45 +651,6 @@ function createIngestionClient({
|
|
|
651
651
|
};
|
|
652
652
|
return transporter.request(request, requestOptions);
|
|
653
653
|
},
|
|
654
|
-
/**
|
|
655
|
-
* Generates code for the selected model based on the given prompt.
|
|
656
|
-
*
|
|
657
|
-
* Required API Key ACLs:
|
|
658
|
-
* - addObject
|
|
659
|
-
* - deleteIndex
|
|
660
|
-
* - editSettings.
|
|
661
|
-
*
|
|
662
|
-
* @param generateTransformationCodePayload - The generateTransformationCodePayload object.
|
|
663
|
-
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
664
|
-
*/
|
|
665
|
-
generateTransformationCode(generateTransformationCodePayload, requestOptions) {
|
|
666
|
-
if (!generateTransformationCodePayload) {
|
|
667
|
-
throw new Error(
|
|
668
|
-
"Parameter `generateTransformationCodePayload` is required when calling `generateTransformationCode`."
|
|
669
|
-
);
|
|
670
|
-
}
|
|
671
|
-
if (!generateTransformationCodePayload.id) {
|
|
672
|
-
throw new Error(
|
|
673
|
-
"Parameter `generateTransformationCodePayload.id` is required when calling `generateTransformationCode`."
|
|
674
|
-
);
|
|
675
|
-
}
|
|
676
|
-
if (!generateTransformationCodePayload.userPrompt) {
|
|
677
|
-
throw new Error(
|
|
678
|
-
"Parameter `generateTransformationCodePayload.userPrompt` is required when calling `generateTransformationCode`."
|
|
679
|
-
);
|
|
680
|
-
}
|
|
681
|
-
const requestPath = "/1/transformations/models";
|
|
682
|
-
const headers = {};
|
|
683
|
-
const queryParameters = {};
|
|
684
|
-
const request = {
|
|
685
|
-
method: "POST",
|
|
686
|
-
path: requestPath,
|
|
687
|
-
queryParameters,
|
|
688
|
-
headers,
|
|
689
|
-
data: generateTransformationCodePayload
|
|
690
|
-
};
|
|
691
|
-
return transporter.request(request, requestOptions);
|
|
692
|
-
},
|
|
693
654
|
/**
|
|
694
655
|
* Retrieves an authentication resource by its ID.
|
|
695
656
|
*
|
|
@@ -1296,28 +1257,6 @@ function createIngestionClient({
|
|
|
1296
1257
|
};
|
|
1297
1258
|
return transporter.request(request, requestOptions);
|
|
1298
1259
|
},
|
|
1299
|
-
/**
|
|
1300
|
-
* Retrieves a list of existing LLM transformation helpers.
|
|
1301
|
-
*
|
|
1302
|
-
* Required API Key ACLs:
|
|
1303
|
-
* - addObject
|
|
1304
|
-
* - deleteIndex
|
|
1305
|
-
* - editSettings.
|
|
1306
|
-
*
|
|
1307
|
-
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
1308
|
-
*/
|
|
1309
|
-
listTransformationModels(requestOptions) {
|
|
1310
|
-
const requestPath = "/1/transformations/models";
|
|
1311
|
-
const headers = {};
|
|
1312
|
-
const queryParameters = {};
|
|
1313
|
-
const request = {
|
|
1314
|
-
method: "GET",
|
|
1315
|
-
path: requestPath,
|
|
1316
|
-
queryParameters,
|
|
1317
|
-
headers
|
|
1318
|
-
};
|
|
1319
|
-
return transporter.request(request, requestOptions);
|
|
1320
|
-
},
|
|
1321
1260
|
/**
|
|
1322
1261
|
* Retrieves a list of transformations.
|
|
1323
1262
|
*
|