@@ -1347,10 +1347,14 @@ open class IngestionClient {
13471347
13481348 /// - parameter runID: (path) Unique identifier of a task run.
13491349 /// - parameter eventID: (path) Unique identifier of an event.
1350- /// - returns: Event
1350+ /// - returns: IngestionEvent
13511351 @available ( macOS 10 . 15 , iOS 13 . 0 , tvOS 13 . 0 , watchOS 6 . 0 , * )
1352- open func getEvent( runID: String , eventID: String , requestOptions: RequestOptions ? = nil ) async throws -> Event {
1353- let response : Response < Event > = try await getEventWithHTTPInfo (
1352+ open func getEvent(
1353+ runID: String ,
1354+ eventID: String ,
1355+ requestOptions: RequestOptions ? = nil
1356+ ) async throws -> IngestionEvent {
1357+ let response : Response < IngestionEvent > = try await getEventWithHTTPInfo (
13541358 runID: runID,
13551359 eventID: eventID,
13561360 requestOptions: requestOptions
@@ -1372,13 +1376,13 @@ open class IngestionClient {
13721376 // - parameter runID: (path) Unique identifier of a task run.
13731377 //
13741378 // - parameter eventID: (path) Unique identifier of an event.
1375- // - returns: RequestBuilder<Event >
1379+ // - returns: RequestBuilder<IngestionEvent >
13761380
13771381 open func getEventWithHTTPInfo(
13781382 runID: String ,
13791383 eventID: String ,
13801384 requestOptions userRequestOptions: RequestOptions ? = nil
1381- ) async throws -> Response < Event > {
1385+ ) async throws -> Response < IngestionEvent > {
13821386 guard !runID. isEmpty else {
13831387 throw AlgoliaError . invalidArgument ( " runID " , " getEvent " )
13841388 }
@@ -1926,7 +1930,7 @@ open class IngestionClient {
19261930 runID: String ,
19271931 itemsPerPage: Int ? = nil ,
19281932 page: Int ? = nil ,
1929- status: [ EventStatus ] ? = nil ,
1933+ status: [ IngestionEventStatus ] ? = nil ,
19301934 type: [ IngestionEventType ] ? = nil ,
19311935 sort: EventSortKeys ? = nil ,
19321936 order: OrderKeys ? = nil ,
@@ -1985,7 +1989,7 @@ open class IngestionClient {
19851989 runID: String ,
19861990 itemsPerPage: Int ? = nil ,
19871991 page: Int ? = nil ,
1988- status: [ EventStatus ] ? = nil ,
1992+ status: [ IngestionEventStatus ] ? = nil ,
19891993 type: [ IngestionEventType ] ? = nil ,
19901994 sort: EventSortKeys ? = nil ,
19911995 order: OrderKeys ? = nil ,
@@ -2550,15 +2554,15 @@ open class IngestionClient {
25502554 /// - parameter pushTaskPayload: (body)
25512555 /// - parameter watch: (query) When provided, the push operation will be synchronous and the API will wait for the
25522556 /// ingestion to be finished before responding. (optional)
2553- /// - returns: WatchResponse
2557+ /// - returns: IngestionWatchResponse
25542558 @available ( macOS 10 . 15 , iOS 13 . 0 , tvOS 13 . 0 , watchOS 6 . 0 , * )
25552559 open func push(
25562560 indexName: String ,
25572561 pushTaskPayload: PushTaskPayload ,
25582562 watch: Bool ? = nil ,
25592563 requestOptions: RequestOptions ? = nil
2560- ) async throws -> WatchResponse {
2561- let response : Response < WatchResponse > = try await pushWithHTTPInfo (
2564+ ) async throws -> IngestionWatchResponse {
2565+ let response : Response < IngestionWatchResponse > = try await pushWithHTTPInfo (
25622566 indexName: indexName,
25632567 pushTaskPayload: pushTaskPayload,
25642568 watch: watch,
@@ -2588,14 +2592,14 @@ open class IngestionClient {
25882592 //
25892593 // - parameter watch: (query) When provided, the push operation will be synchronous and the API will wait for the
25902594 // ingestion to be finished before responding. (optional)
2591- // - returns: RequestBuilder<WatchResponse >
2595+ // - returns: RequestBuilder<IngestionWatchResponse >
25922596
25932597 open func pushWithHTTPInfo(
25942598 indexName: String ,
25952599 pushTaskPayload: PushTaskPayload ,
25962600 watch: Bool ? = nil ,
25972601 requestOptions userRequestOptions: RequestOptions ? = nil
2598- ) async throws -> Response < WatchResponse > {
2602+ ) async throws -> Response < IngestionWatchResponse > {
25992603 guard !indexName. isEmpty else {
26002604 throw AlgoliaError . invalidArgument ( " indexName " , " push " )
26012605 }
@@ -2636,15 +2640,15 @@ open class IngestionClient {
26362640 /// - parameter pushTaskPayload: (body)
26372641 /// - parameter watch: (query) When provided, the push operation will be synchronous and the API will wait for the
26382642 /// ingestion to be finished before responding. (optional)
2639- /// - returns: WatchResponse
2643+ /// - returns: IngestionWatchResponse
26402644 @available ( macOS 10 . 15 , iOS 13 . 0 , tvOS 13 . 0 , watchOS 6 . 0 , * )
26412645 open func pushTask(
26422646 taskID: String ,
26432647 pushTaskPayload: PushTaskPayload ,
26442648 watch: Bool ? = nil ,
26452649 requestOptions: RequestOptions ? = nil
2646- ) async throws -> WatchResponse {
2647- let response : Response < WatchResponse > = try await pushTaskWithHTTPInfo (
2650+ ) async throws -> IngestionWatchResponse {
2651+ let response : Response < IngestionWatchResponse > = try await pushTaskWithHTTPInfo (
26482652 taskID: taskID,
26492653 pushTaskPayload: pushTaskPayload,
26502654 watch: watch,
@@ -2674,14 +2678,14 @@ open class IngestionClient {
26742678 //
26752679 // - parameter watch: (query) When provided, the push operation will be synchronous and the API will wait for the
26762680 // ingestion to be finished before responding. (optional)
2677- // - returns: RequestBuilder<WatchResponse >
2681+ // - returns: RequestBuilder<IngestionWatchResponse >
26782682
26792683 open func pushTaskWithHTTPInfo(
26802684 taskID: String ,
26812685 pushTaskPayload: PushTaskPayload ,
26822686 watch: Bool ? = nil ,
26832687 requestOptions userRequestOptions: RequestOptions ? = nil
2684- ) async throws -> Response < WatchResponse > {
2688+ ) async throws -> Response < IngestionWatchResponse > {
26852689 guard !taskID. isEmpty else {
26862690 throw AlgoliaError . invalidArgument ( " taskID " , " pushTask " )
26872691 }
@@ -3219,13 +3223,13 @@ open class IngestionClient {
32193223 }
32203224
32213225 /// - parameter sourceID: (path) Unique identifier of a source.
3222- /// - returns: WatchResponse
3226+ /// - returns: IngestionWatchResponse
32233227 @available ( macOS 10 . 15 , iOS 13 . 0 , tvOS 13 . 0 , watchOS 6 . 0 , * )
32243228 open func triggerDockerSourceDiscover(
32253229 sourceID: String ,
32263230 requestOptions: RequestOptions ? = nil
3227- ) async throws -> WatchResponse {
3228- let response : Response < WatchResponse > = try await triggerDockerSourceDiscoverWithHTTPInfo (
3231+ ) async throws -> IngestionWatchResponse {
3232+ let response : Response < IngestionWatchResponse > = try await triggerDockerSourceDiscoverWithHTTPInfo (
32293233 sourceID: sourceID,
32303234 requestOptions: requestOptions
32313235 )
@@ -3245,12 +3249,12 @@ open class IngestionClient {
32453249 // - editSettings
32463250 //
32473251 // - parameter sourceID: (path) Unique identifier of a source.
3248- // - returns: RequestBuilder<WatchResponse >
3252+ // - returns: RequestBuilder<IngestionWatchResponse >
32493253
32503254 open func triggerDockerSourceDiscoverWithHTTPInfo(
32513255 sourceID: String ,
32523256 requestOptions userRequestOptions: RequestOptions ? = nil
3253- ) async throws -> Response < WatchResponse > {
3257+ ) async throws -> Response < IngestionWatchResponse > {
32543258 guard !sourceID. isEmpty else {
32553259 throw AlgoliaError . invalidArgument ( " sourceID " , " triggerDockerSourceDiscover " )
32563260 }
@@ -3820,13 +3824,13 @@ open class IngestionClient {
38203824 }
38213825
38223826 /// - parameter sourceCreate: (body) (optional)
3823- /// - returns: WatchResponse
3827+ /// - returns: IngestionWatchResponse
38243828 @available ( macOS 10 . 15 , iOS 13 . 0 , tvOS 13 . 0 , watchOS 6 . 0 , * )
38253829 open func validateSource(
38263830 sourceCreate: SourceCreate ? = nil ,
38273831 requestOptions: RequestOptions ? = nil
3828- ) async throws -> WatchResponse {
3829- let response : Response < WatchResponse > = try await validateSourceWithHTTPInfo (
3832+ ) async throws -> IngestionWatchResponse {
3833+ let response : Response < IngestionWatchResponse > = try await validateSourceWithHTTPInfo (
38303834 sourceCreate: sourceCreate,
38313835 requestOptions: requestOptions
38323836 )
@@ -3845,12 +3849,12 @@ open class IngestionClient {
38453849 // - editSettings
38463850 //
38473851 // - parameter sourceCreate: (body) (optional)
3848- // - returns: RequestBuilder<WatchResponse >
3852+ // - returns: RequestBuilder<IngestionWatchResponse >
38493853
38503854 open func validateSourceWithHTTPInfo(
38513855 sourceCreate: SourceCreate ? = nil ,
38523856 requestOptions userRequestOptions: RequestOptions ? = nil
3853- ) async throws -> Response < WatchResponse > {
3857+ ) async throws -> Response < IngestionWatchResponse > {
38543858 let resourcePath = " /1/sources/validate "
38553859 let body = sourceCreate
38563860 let queryParameters : [ String : Any ? ] ? = nil
@@ -3874,14 +3878,14 @@ open class IngestionClient {
38743878
38753879 /// - parameter sourceID: (path) Unique identifier of a source.
38763880 /// - parameter sourceUpdate: (body)
3877- /// - returns: WatchResponse
3881+ /// - returns: IngestionWatchResponse
38783882 @available ( macOS 10 . 15 , iOS 13 . 0 , tvOS 13 . 0 , watchOS 6 . 0 , * )
38793883 open func validateSourceBeforeUpdate(
38803884 sourceID: String ,
38813885 sourceUpdate: SourceUpdate ,
38823886 requestOptions: RequestOptions ? = nil
3883- ) async throws -> WatchResponse {
3884- let response : Response < WatchResponse > = try await validateSourceBeforeUpdateWithHTTPInfo (
3887+ ) async throws -> IngestionWatchResponse {
3888+ let response : Response < IngestionWatchResponse > = try await validateSourceBeforeUpdateWithHTTPInfo (
38853889 sourceID: sourceID,
38863890 sourceUpdate: sourceUpdate,
38873891 requestOptions: requestOptions
@@ -3904,13 +3908,13 @@ open class IngestionClient {
39043908 // - parameter sourceID: (path) Unique identifier of a source.
39053909 //
39063910 // - parameter sourceUpdate: (body)
3907- // - returns: RequestBuilder<WatchResponse >
3911+ // - returns: RequestBuilder<IngestionWatchResponse >
39083912
39093913 open func validateSourceBeforeUpdateWithHTTPInfo(
39103914 sourceID: String ,
39113915 sourceUpdate: SourceUpdate ,
39123916 requestOptions userRequestOptions: RequestOptions ? = nil
3913- ) async throws -> Response < WatchResponse > {
3917+ ) async throws -> Response < IngestionWatchResponse > {
39143918 guard !sourceID. isEmpty else {
39153919 throw AlgoliaError . invalidArgument ( " sourceID " , " validateSourceBeforeUpdate " )
39163920 }
0 commit comments