@@ -8,6 +8,7 @@ import { MultipleQueriesResponse } from '../model/multipleQueriesResponse';
8
8
import { SaveObjectResponse } from '../model/saveObjectResponse' ;
9
9
10
10
import { ObjectSerializer , Authentication , VoidAuth , Interceptor } from '../model/models' ;
11
+ import { HttpBasicAuth , HttpBearerAuth , ApiKeyAuth , OAuth } from '../model/models' ;
11
12
12
13
import { HttpError , RequestFile } from './apis' ;
13
14
@@ -17,7 +18,10 @@ let defaultBasePath = 'https://test-1.algolianet.com';
17
18
// This file is autogenerated - Please do not edit
18
19
// ===============================================
19
20
20
- export enum SearchApiApiKeys { }
21
+ export enum SearchApiApiKeys {
22
+ apiKey ,
23
+ appId ,
24
+ }
21
25
22
26
export class SearchApi {
23
27
protected _basePath = defaultBasePath ;
@@ -26,6 +30,8 @@ export class SearchApi {
26
30
27
31
protected authentications = {
28
32
default : < Authentication > new VoidAuth ( ) ,
33
+ apiKey : new ApiKeyAuth ( 'header' , 'X-Algolia-API-Key' ) ,
34
+ appId : new ApiKeyAuth ( 'header' , 'X-Algolia-Application-Id' ) ,
29
35
} ;
30
36
31
37
protected interceptors : Interceptor [ ] = [ ] ;
@@ -128,6 +134,16 @@ export class SearchApi {
128
134
} ;
129
135
130
136
let authenticationPromise = Promise . resolve ( ) ;
137
+ if ( this . authentications . apiKey . apiKey ) {
138
+ authenticationPromise = authenticationPromise . then ( ( ) =>
139
+ this . authentications . apiKey . applyToRequest ( localVarRequestOptions )
140
+ ) ;
141
+ }
142
+ if ( this . authentications . appId . apiKey ) {
143
+ authenticationPromise = authenticationPromise . then ( ( ) =>
144
+ this . authentications . appId . applyToRequest ( localVarRequestOptions )
145
+ ) ;
146
+ }
131
147
authenticationPromise = authenticationPromise . then ( ( ) =>
132
148
this . authentications . default . applyToRequest ( localVarRequestOptions )
133
149
) ;
@@ -206,6 +222,16 @@ export class SearchApi {
206
222
} ;
207
223
208
224
let authenticationPromise = Promise . resolve ( ) ;
225
+ if ( this . authentications . apiKey . apiKey ) {
226
+ authenticationPromise = authenticationPromise . then ( ( ) =>
227
+ this . authentications . apiKey . applyToRequest ( localVarRequestOptions )
228
+ ) ;
229
+ }
230
+ if ( this . authentications . appId . apiKey ) {
231
+ authenticationPromise = authenticationPromise . then ( ( ) =>
232
+ this . authentications . appId . applyToRequest ( localVarRequestOptions )
233
+ ) ;
234
+ }
209
235
authenticationPromise = authenticationPromise . then ( ( ) =>
210
236
this . authentications . default . applyToRequest ( localVarRequestOptions )
211
237
) ;
@@ -298,6 +324,16 @@ export class SearchApi {
298
324
} ;
299
325
300
326
let authenticationPromise = Promise . resolve ( ) ;
327
+ if ( this . authentications . apiKey . apiKey ) {
328
+ authenticationPromise = authenticationPromise . then ( ( ) =>
329
+ this . authentications . apiKey . applyToRequest ( localVarRequestOptions )
330
+ ) ;
331
+ }
332
+ if ( this . authentications . appId . apiKey ) {
333
+ authenticationPromise = authenticationPromise . then ( ( ) =>
334
+ this . authentications . appId . applyToRequest ( localVarRequestOptions )
335
+ ) ;
336
+ }
301
337
authenticationPromise = authenticationPromise . then ( ( ) =>
302
338
this . authentications . default . applyToRequest ( localVarRequestOptions )
303
339
) ;
0 commit comments