@algolia/ingestion 1.18.0 → 1.19.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/dist/fetch.d.ts CHANGED
@@ -607,7 +607,7 @@ type SourceCommercetools = {
607
607
  /**
608
608
  * Image type.
609
609
  */
610
- type DockerImageType = 'singer' | 'custom' | 'airbyte';
610
+ type DockerImageType = 'custom' | 'airbyte';
611
611
 
612
612
  /**
613
613
  * Container registry name from where to pull the image.
@@ -712,6 +712,30 @@ type ListSourcesResponse = {
712
712
  */
713
713
  type ActionType = 'replace' | 'save' | 'partial' | 'append';
714
714
 
715
+ type EmailNotifications = {
716
+ /**
717
+ * Whether to send email notifications, note that this doesn\'t prevent the task from being blocked.
718
+ */
719
+ enabled?: boolean;
720
+ };
721
+
722
+ /**
723
+ * Notifications settings for a task.
724
+ */
725
+ type Notifications = {
726
+ email: EmailNotifications;
727
+ };
728
+
729
+ /**
730
+ * Set of rules for a task.
731
+ */
732
+ type Policies = {
733
+ /**
734
+ * The number of critical failures in a row before blocking the task and sending a notification.
735
+ */
736
+ criticalThreshold?: number;
737
+ };
738
+
715
739
  /**
716
740
  * The strategy to use to fetch the data.
717
741
  */
@@ -730,7 +754,7 @@ type DockerStreams = {
730
754
  };
731
755
 
732
756
  /**
733
- * The selected streams of a singer or airbyte connector.
757
+ * The selected streams of an airbyte connector.
734
758
  */
735
759
  type DockerStreamsInput = {
736
760
  streams: Array<DockerStreams>;
@@ -861,6 +885,8 @@ type Task = {
861
885
  * Date of the last cursor in RFC 3339 format.
862
886
  */
863
887
  cursor?: string;
888
+ notifications?: Notifications;
889
+ policies?: Policies;
864
890
  /**
865
891
  * Date of creation in RFC 3339 format.
866
892
  */
@@ -979,6 +1005,8 @@ type TaskV1 = {
979
1005
  * Date of the last cursor in RFC 3339 format.
980
1006
  */
981
1007
  cursor?: string;
1008
+ notifications?: Notifications;
1009
+ policies?: Policies;
982
1010
  /**
983
1011
  * Date of creation in RFC 3339 format.
984
1012
  */
@@ -1208,6 +1236,8 @@ type TaskCreate = {
1208
1236
  * Date of the last cursor in RFC 3339 format.
1209
1237
  */
1210
1238
  cursor?: string;
1239
+ notifications?: Notifications;
1240
+ policies?: Policies;
1211
1241
  };
1212
1242
 
1213
1243
  /**
@@ -1573,6 +1603,8 @@ type TaskUpdate = {
1573
1603
  * Maximum accepted percentage of failures for a task run to finish successfully.
1574
1604
  */
1575
1605
  failureThreshold?: number;
1606
+ notifications?: Notifications;
1607
+ policies?: Policies;
1576
1608
  };
1577
1609
 
1578
1610
  /**
@@ -2058,6 +2090,10 @@ type ListTasksProps = {
2058
2090
  * Type of task trigger for filtering the list of tasks.
2059
2091
  */
2060
2092
  triggerType?: Array<TriggerType>;
2093
+ /**
2094
+ * If specified, the response only includes tasks with notifications.email.enabled set to this value.
2095
+ */
2096
+ withEmailNotifications?: boolean;
2061
2097
  /**
2062
2098
  * Property by which to sort the list of tasks.
2063
2099
  */
@@ -2267,7 +2303,7 @@ type ValidateSourceBeforeUpdateProps = {
2267
2303
  sourceUpdate: SourceUpdate;
2268
2304
  };
2269
2305
 
2270
- declare const apiClientVersion = "1.18.0";
2306
+ declare const apiClientVersion = "1.19.0";
2271
2307
  declare const REGIONS: readonly ["eu", "us"];
2272
2308
  type Region = (typeof REGIONS)[number];
2273
2309
  type RegionOptions = {
@@ -2300,6 +2336,10 @@ declare function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOptio
2300
2336
  * The `appId` currently in use.
2301
2337
  */
2302
2338
  appId: string;
2339
+ /**
2340
+ * The `apiKey` currently in use.
2341
+ */
2342
+ apiKey: string;
2303
2343
  /**
2304
2344
  * Clears the cache of the transporter for the `requestsCache` and `responsesCache` properties.
2305
2345
  */
@@ -2719,11 +2759,12 @@ declare function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOptio
2719
2759
  * @param listTasks.sourceType - Filters the tasks with the specified source type.
2720
2760
  * @param listTasks.destinationID - Destination IDs for filtering the list of tasks.
2721
2761
  * @param listTasks.triggerType - Type of task trigger for filtering the list of tasks.
2762
+ * @param listTasks.withEmailNotifications - If specified, the response only includes tasks with notifications.email.enabled set to this value.
2722
2763
  * @param listTasks.sort - Property by which to sort the list of tasks.
2723
2764
  * @param listTasks.order - Sort order of the response, ascending or descending.
2724
2765
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
2725
2766
  */
2726
- listTasks({ itemsPerPage, page, action, enabled, sourceID, sourceType, destinationID, triggerType, sort, order, }?: ListTasksProps, requestOptions?: RequestOptions | undefined): Promise<ListTasksResponse>;
2767
+ listTasks({ itemsPerPage, page, action, enabled, sourceID, sourceType, destinationID, triggerType, withEmailNotifications, sort, order, }?: ListTasksProps, requestOptions?: RequestOptions | undefined): Promise<ListTasksResponse>;
2727
2768
  /**
2728
2769
  * Retrieves a list of tasks using the v1 endpoint, please use `getTasks` instead.
2729
2770
  *
@@ -2877,7 +2918,7 @@ declare function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOptio
2877
2918
  */
2878
2919
  searchTransformations(transformationSearch: TransformationSearch, requestOptions?: RequestOptions): Promise<Array<Transformation>>;
2879
2920
  /**
2880
- * Triggers a stream-listing request for a source. Triggering stream-listing requests only works with sources with `type: docker` and `imageType: singer`.
2921
+ * Triggers a stream-listing request for a source. Triggering stream-listing requests only works with sources with `type: docker` and `imageType: airbyte`.
2881
2922
  *
2882
2923
  * Required API Key ACLs:
2883
2924
  * - addObject
@@ -3012,4 +3053,4 @@ type IngestionClient = ReturnType<typeof createIngestionClient>;
3012
3053
 
3013
3054
  declare function ingestionClient(appId: string, apiKey: string, region: Region, options?: ClientOptions): IngestionClient;
3014
3055
 
3015
- 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 RegionOptions, 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 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 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 TransformationSortKeys, 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 WatchResponse, type Window, apiClientVersion, ingestionClient, isOnDemandTrigger, isScheduleTrigger, isSubscriptionTrigger };
3056
+ 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 EmailNotifications, 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 Notifications, type OnDemandTrigger, type OnDemandTriggerInput, type OnDemandTriggerType, type OrderKeys, type Pagination, type Platform, type PlatformNone, type PlatformWithNone, type Policies, type PushTaskPayload, type PushTaskProps, type PushTaskRecords, type RecordType, type Region, type RegionOptions, 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 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 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 TransformationSortKeys, 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 WatchResponse, type Window, apiClientVersion, ingestionClient, isOnDemandTrigger, isScheduleTrigger, isSubscriptionTrigger };
package/dist/node.d.cts CHANGED
@@ -607,7 +607,7 @@ type SourceCommercetools = {
607
607
  /**
608
608
  * Image type.
609
609
  */
610
- type DockerImageType = 'singer' | 'custom' | 'airbyte';
610
+ type DockerImageType = 'custom' | 'airbyte';
611
611
 
612
612
  /**
613
613
  * Container registry name from where to pull the image.
@@ -712,6 +712,30 @@ type ListSourcesResponse = {
712
712
  */
713
713
  type ActionType = 'replace' | 'save' | 'partial' | 'append';
714
714
 
715
+ type EmailNotifications = {
716
+ /**
717
+ * Whether to send email notifications, note that this doesn\'t prevent the task from being blocked.
718
+ */
719
+ enabled?: boolean;
720
+ };
721
+
722
+ /**
723
+ * Notifications settings for a task.
724
+ */
725
+ type Notifications = {
726
+ email: EmailNotifications;
727
+ };
728
+
729
+ /**
730
+ * Set of rules for a task.
731
+ */
732
+ type Policies = {
733
+ /**
734
+ * The number of critical failures in a row before blocking the task and sending a notification.
735
+ */
736
+ criticalThreshold?: number;
737
+ };
738
+
715
739
  /**
716
740
  * The strategy to use to fetch the data.
717
741
  */
@@ -730,7 +754,7 @@ type DockerStreams = {
730
754
  };
731
755
 
732
756
  /**
733
- * The selected streams of a singer or airbyte connector.
757
+ * The selected streams of an airbyte connector.
734
758
  */
735
759
  type DockerStreamsInput = {
736
760
  streams: Array<DockerStreams>;
@@ -861,6 +885,8 @@ type Task = {
861
885
  * Date of the last cursor in RFC 3339 format.
862
886
  */
863
887
  cursor?: string;
888
+ notifications?: Notifications;
889
+ policies?: Policies;
864
890
  /**
865
891
  * Date of creation in RFC 3339 format.
866
892
  */
@@ -979,6 +1005,8 @@ type TaskV1 = {
979
1005
  * Date of the last cursor in RFC 3339 format.
980
1006
  */
981
1007
  cursor?: string;
1008
+ notifications?: Notifications;
1009
+ policies?: Policies;
982
1010
  /**
983
1011
  * Date of creation in RFC 3339 format.
984
1012
  */
@@ -1208,6 +1236,8 @@ type TaskCreate = {
1208
1236
  * Date of the last cursor in RFC 3339 format.
1209
1237
  */
1210
1238
  cursor?: string;
1239
+ notifications?: Notifications;
1240
+ policies?: Policies;
1211
1241
  };
1212
1242
 
1213
1243
  /**
@@ -1573,6 +1603,8 @@ type TaskUpdate = {
1573
1603
  * Maximum accepted percentage of failures for a task run to finish successfully.
1574
1604
  */
1575
1605
  failureThreshold?: number;
1606
+ notifications?: Notifications;
1607
+ policies?: Policies;
1576
1608
  };
1577
1609
 
1578
1610
  /**
@@ -2058,6 +2090,10 @@ type ListTasksProps = {
2058
2090
  * Type of task trigger for filtering the list of tasks.
2059
2091
  */
2060
2092
  triggerType?: Array<TriggerType>;
2093
+ /**
2094
+ * If specified, the response only includes tasks with notifications.email.enabled set to this value.
2095
+ */
2096
+ withEmailNotifications?: boolean;
2061
2097
  /**
2062
2098
  * Property by which to sort the list of tasks.
2063
2099
  */
@@ -2267,7 +2303,7 @@ type ValidateSourceBeforeUpdateProps = {
2267
2303
  sourceUpdate: SourceUpdate;
2268
2304
  };
2269
2305
 
2270
- declare const apiClientVersion = "1.18.0";
2306
+ declare const apiClientVersion = "1.19.0";
2271
2307
  declare const REGIONS: readonly ["eu", "us"];
2272
2308
  type Region = (typeof REGIONS)[number];
2273
2309
  type RegionOptions = {
@@ -2300,6 +2336,10 @@ declare function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOptio
2300
2336
  * The `appId` currently in use.
2301
2337
  */
2302
2338
  appId: string;
2339
+ /**
2340
+ * The `apiKey` currently in use.
2341
+ */
2342
+ apiKey: string;
2303
2343
  /**
2304
2344
  * Clears the cache of the transporter for the `requestsCache` and `responsesCache` properties.
2305
2345
  */
@@ -2719,11 +2759,12 @@ declare function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOptio
2719
2759
  * @param listTasks.sourceType - Filters the tasks with the specified source type.
2720
2760
  * @param listTasks.destinationID - Destination IDs for filtering the list of tasks.
2721
2761
  * @param listTasks.triggerType - Type of task trigger for filtering the list of tasks.
2762
+ * @param listTasks.withEmailNotifications - If specified, the response only includes tasks with notifications.email.enabled set to this value.
2722
2763
  * @param listTasks.sort - Property by which to sort the list of tasks.
2723
2764
  * @param listTasks.order - Sort order of the response, ascending or descending.
2724
2765
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
2725
2766
  */
2726
- listTasks({ itemsPerPage, page, action, enabled, sourceID, sourceType, destinationID, triggerType, sort, order, }?: ListTasksProps, requestOptions?: RequestOptions | undefined): Promise<ListTasksResponse>;
2767
+ listTasks({ itemsPerPage, page, action, enabled, sourceID, sourceType, destinationID, triggerType, withEmailNotifications, sort, order, }?: ListTasksProps, requestOptions?: RequestOptions | undefined): Promise<ListTasksResponse>;
2727
2768
  /**
2728
2769
  * Retrieves a list of tasks using the v1 endpoint, please use `getTasks` instead.
2729
2770
  *
@@ -2877,7 +2918,7 @@ declare function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOptio
2877
2918
  */
2878
2919
  searchTransformations(transformationSearch: TransformationSearch, requestOptions?: RequestOptions): Promise<Array<Transformation>>;
2879
2920
  /**
2880
- * Triggers a stream-listing request for a source. Triggering stream-listing requests only works with sources with `type: docker` and `imageType: singer`.
2921
+ * Triggers a stream-listing request for a source. Triggering stream-listing requests only works with sources with `type: docker` and `imageType: airbyte`.
2881
2922
  *
2882
2923
  * Required API Key ACLs:
2883
2924
  * - addObject
@@ -3012,4 +3053,4 @@ type IngestionClient = ReturnType<typeof createIngestionClient>;
3012
3053
 
3013
3054
  declare function ingestionClient(appId: string, apiKey: string, region: Region, options?: ClientOptions): IngestionClient;
3014
3055
 
3015
- 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 RegionOptions, 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 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 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 TransformationSortKeys, 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 WatchResponse, type Window, apiClientVersion, ingestionClient, isOnDemandTrigger, isScheduleTrigger, isSubscriptionTrigger };
3056
+ 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 EmailNotifications, 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 Notifications, type OnDemandTrigger, type OnDemandTriggerInput, type OnDemandTriggerType, type OrderKeys, type Pagination, type Platform, type PlatformNone, type PlatformWithNone, type Policies, type PushTaskPayload, type PushTaskProps, type PushTaskRecords, type RecordType, type Region, type RegionOptions, 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 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 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 TransformationSortKeys, 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 WatchResponse, type Window, apiClientVersion, ingestionClient, isOnDemandTrigger, isScheduleTrigger, isSubscriptionTrigger };
package/dist/node.d.ts CHANGED
@@ -607,7 +607,7 @@ type SourceCommercetools = {
607
607
  /**
608
608
  * Image type.
609
609
  */
610
- type DockerImageType = 'singer' | 'custom' | 'airbyte';
610
+ type DockerImageType = 'custom' | 'airbyte';
611
611
 
612
612
  /**
613
613
  * Container registry name from where to pull the image.
@@ -712,6 +712,30 @@ type ListSourcesResponse = {
712
712
  */
713
713
  type ActionType = 'replace' | 'save' | 'partial' | 'append';
714
714
 
715
+ type EmailNotifications = {
716
+ /**
717
+ * Whether to send email notifications, note that this doesn\'t prevent the task from being blocked.
718
+ */
719
+ enabled?: boolean;
720
+ };
721
+
722
+ /**
723
+ * Notifications settings for a task.
724
+ */
725
+ type Notifications = {
726
+ email: EmailNotifications;
727
+ };
728
+
729
+ /**
730
+ * Set of rules for a task.
731
+ */
732
+ type Policies = {
733
+ /**
734
+ * The number of critical failures in a row before blocking the task and sending a notification.
735
+ */
736
+ criticalThreshold?: number;
737
+ };
738
+
715
739
  /**
716
740
  * The strategy to use to fetch the data.
717
741
  */
@@ -730,7 +754,7 @@ type DockerStreams = {
730
754
  };
731
755
 
732
756
  /**
733
- * The selected streams of a singer or airbyte connector.
757
+ * The selected streams of an airbyte connector.
734
758
  */
735
759
  type DockerStreamsInput = {
736
760
  streams: Array<DockerStreams>;
@@ -861,6 +885,8 @@ type Task = {
861
885
  * Date of the last cursor in RFC 3339 format.
862
886
  */
863
887
  cursor?: string;
888
+ notifications?: Notifications;
889
+ policies?: Policies;
864
890
  /**
865
891
  * Date of creation in RFC 3339 format.
866
892
  */
@@ -979,6 +1005,8 @@ type TaskV1 = {
979
1005
  * Date of the last cursor in RFC 3339 format.
980
1006
  */
981
1007
  cursor?: string;
1008
+ notifications?: Notifications;
1009
+ policies?: Policies;
982
1010
  /**
983
1011
  * Date of creation in RFC 3339 format.
984
1012
  */
@@ -1208,6 +1236,8 @@ type TaskCreate = {
1208
1236
  * Date of the last cursor in RFC 3339 format.
1209
1237
  */
1210
1238
  cursor?: string;
1239
+ notifications?: Notifications;
1240
+ policies?: Policies;
1211
1241
  };
1212
1242
 
1213
1243
  /**
@@ -1573,6 +1603,8 @@ type TaskUpdate = {
1573
1603
  * Maximum accepted percentage of failures for a task run to finish successfully.
1574
1604
  */
1575
1605
  failureThreshold?: number;
1606
+ notifications?: Notifications;
1607
+ policies?: Policies;
1576
1608
  };
1577
1609
 
1578
1610
  /**
@@ -2058,6 +2090,10 @@ type ListTasksProps = {
2058
2090
  * Type of task trigger for filtering the list of tasks.
2059
2091
  */
2060
2092
  triggerType?: Array<TriggerType>;
2093
+ /**
2094
+ * If specified, the response only includes tasks with notifications.email.enabled set to this value.
2095
+ */
2096
+ withEmailNotifications?: boolean;
2061
2097
  /**
2062
2098
  * Property by which to sort the list of tasks.
2063
2099
  */
@@ -2267,7 +2303,7 @@ type ValidateSourceBeforeUpdateProps = {
2267
2303
  sourceUpdate: SourceUpdate;
2268
2304
  };
2269
2305
 
2270
- declare const apiClientVersion = "1.18.0";
2306
+ declare const apiClientVersion = "1.19.0";
2271
2307
  declare const REGIONS: readonly ["eu", "us"];
2272
2308
  type Region = (typeof REGIONS)[number];
2273
2309
  type RegionOptions = {
@@ -2300,6 +2336,10 @@ declare function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOptio
2300
2336
  * The `appId` currently in use.
2301
2337
  */
2302
2338
  appId: string;
2339
+ /**
2340
+ * The `apiKey` currently in use.
2341
+ */
2342
+ apiKey: string;
2303
2343
  /**
2304
2344
  * Clears the cache of the transporter for the `requestsCache` and `responsesCache` properties.
2305
2345
  */
@@ -2719,11 +2759,12 @@ declare function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOptio
2719
2759
  * @param listTasks.sourceType - Filters the tasks with the specified source type.
2720
2760
  * @param listTasks.destinationID - Destination IDs for filtering the list of tasks.
2721
2761
  * @param listTasks.triggerType - Type of task trigger for filtering the list of tasks.
2762
+ * @param listTasks.withEmailNotifications - If specified, the response only includes tasks with notifications.email.enabled set to this value.
2722
2763
  * @param listTasks.sort - Property by which to sort the list of tasks.
2723
2764
  * @param listTasks.order - Sort order of the response, ascending or descending.
2724
2765
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
2725
2766
  */
2726
- listTasks({ itemsPerPage, page, action, enabled, sourceID, sourceType, destinationID, triggerType, sort, order, }?: ListTasksProps, requestOptions?: RequestOptions | undefined): Promise<ListTasksResponse>;
2767
+ listTasks({ itemsPerPage, page, action, enabled, sourceID, sourceType, destinationID, triggerType, withEmailNotifications, sort, order, }?: ListTasksProps, requestOptions?: RequestOptions | undefined): Promise<ListTasksResponse>;
2727
2768
  /**
2728
2769
  * Retrieves a list of tasks using the v1 endpoint, please use `getTasks` instead.
2729
2770
  *
@@ -2877,7 +2918,7 @@ declare function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOptio
2877
2918
  */
2878
2919
  searchTransformations(transformationSearch: TransformationSearch, requestOptions?: RequestOptions): Promise<Array<Transformation>>;
2879
2920
  /**
2880
- * Triggers a stream-listing request for a source. Triggering stream-listing requests only works with sources with `type: docker` and `imageType: singer`.
2921
+ * Triggers a stream-listing request for a source. Triggering stream-listing requests only works with sources with `type: docker` and `imageType: airbyte`.
2881
2922
  *
2882
2923
  * Required API Key ACLs:
2883
2924
  * - addObject
@@ -3012,4 +3053,4 @@ type IngestionClient = ReturnType<typeof createIngestionClient>;
3012
3053
 
3013
3054
  declare function ingestionClient(appId: string, apiKey: string, region: Region, options?: ClientOptions): IngestionClient;
3014
3055
 
3015
- 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 RegionOptions, 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 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 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 TransformationSortKeys, 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 WatchResponse, type Window, apiClientVersion, ingestionClient, isOnDemandTrigger, isScheduleTrigger, isSubscriptionTrigger };
3056
+ 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 EmailNotifications, 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 Notifications, type OnDemandTrigger, type OnDemandTriggerInput, type OnDemandTriggerType, type OrderKeys, type Pagination, type Platform, type PlatformNone, type PlatformWithNone, type Policies, type PushTaskPayload, type PushTaskProps, type PushTaskRecords, type RecordType, type Region, type RegionOptions, 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 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 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 TransformationSortKeys, 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 WatchResponse, type Window, apiClientVersion, ingestionClient, isOnDemandTrigger, isScheduleTrigger, isSubscriptionTrigger };
@@ -29,7 +29,7 @@ __export(ingestionClient_exports, {
29
29
  });
30
30
  module.exports = __toCommonJS(ingestionClient_exports);
31
31
  var import_client_common = require("@algolia/client-common");
32
- var apiClientVersion = "1.18.0";
32
+ var apiClientVersion = "1.19.0";
33
33
  var REGIONS = ["eu", "us"];
34
34
  function getDefaultHosts(region) {
35
35
  const url = "data.{region}.algolia.com".replace("{region}", region);
@@ -77,6 +77,10 @@ function createIngestionClient({
77
77
  * The `appId` currently in use.
78
78
  */
79
79
  appId: appIdOption,
80
+ /**
81
+ * The `apiKey` currently in use.
82
+ */
83
+ apiKey: apiKeyOption,
80
84
  /**
81
85
  * Clears the cache of the transporter for the `requestsCache` and `responsesCache` properties.
82
86
  */
@@ -1144,6 +1148,7 @@ function createIngestionClient({
1144
1148
  * @param listTasks.sourceType - Filters the tasks with the specified source type.
1145
1149
  * @param listTasks.destinationID - Destination IDs for filtering the list of tasks.
1146
1150
  * @param listTasks.triggerType - Type of task trigger for filtering the list of tasks.
1151
+ * @param listTasks.withEmailNotifications - If specified, the response only includes tasks with notifications.email.enabled set to this value.
1147
1152
  * @param listTasks.sort - Property by which to sort the list of tasks.
1148
1153
  * @param listTasks.order - Sort order of the response, ascending or descending.
1149
1154
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
@@ -1157,6 +1162,7 @@ function createIngestionClient({
1157
1162
  sourceType,
1158
1163
  destinationID,
1159
1164
  triggerType,
1165
+ withEmailNotifications,
1160
1166
  sort,
1161
1167
  order
1162
1168
  } = {}, requestOptions = void 0) {
@@ -1187,6 +1193,9 @@ function createIngestionClient({
1187
1193
  if (triggerType !== void 0) {
1188
1194
  queryParameters["triggerType"] = triggerType.toString();
1189
1195
  }
1196
+ if (withEmailNotifications !== void 0) {
1197
+ queryParameters["withEmailNotifications"] = withEmailNotifications.toString();
1198
+ }
1190
1199
  if (sort !== void 0) {
1191
1200
  queryParameters["sort"] = sort.toString();
1192
1201
  }
@@ -1605,7 +1614,7 @@ function createIngestionClient({
1605
1614
  return transporter.request(request, requestOptions);
1606
1615
  },
1607
1616
  /**
1608
- * Triggers a stream-listing request for a source. Triggering stream-listing requests only works with sources with `type: docker` and `imageType: singer`.
1617
+ * Triggers a stream-listing request for a source. Triggering stream-listing requests only works with sources with `type: docker` and `imageType: airbyte`.
1609
1618
  *
1610
1619
  * Required API Key ACLs:
1611
1620
  * - addObject