Skip to content

Commit 4b67d9a

Browse files
authored
[Connector APIs] Update existing endpoints for 8.15 (#2675)
1 parent 8711e52 commit 4b67d9a

17 files changed

+582
-879
lines changed

output/openapi/elasticsearch-openapi.json

Lines changed: 86 additions & 99 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/openapi/elasticsearch-serverless-openapi.json

Lines changed: 80 additions & 188 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/schema/schema-serverless.json

Lines changed: 165 additions & 370 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/schema/schema.json

Lines changed: 180 additions & 156 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/schema/validation-errors.json

Lines changed: 6 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/typescript/types.ts

Lines changed: 27 additions & 22 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

specification/connector/_types/Connector.ts

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import { UserDefinedValue } from '@spec_utils/UserDefinedValue'
2424

2525
interface SelectOption {
2626
label: string
27-
value: string
27+
value: ScalarValue
2828
}
2929

3030
interface Dependency {
@@ -67,12 +67,12 @@ export interface GreaterThanValidation {
6767

6868
export interface ListTypeValidation {
6969
type: 'list_type'
70-
constraint: ScalarValue[]
70+
constraint: string
7171
}
7272

7373
export interface IncludedInValidation {
7474
type: 'included_in'
75-
constraint: string
75+
constraint: ScalarValue[]
7676
}
7777

7878
export interface RegexValidation {
@@ -91,11 +91,11 @@ export interface ConnectorConfigProperties {
9191
placeholder?: string
9292
required: boolean
9393
sensitive: boolean
94-
tooltip?: string
94+
tooltip?: string | null
9595
type: ConnectorFieldType
9696
ui_restrictions: string[]
9797
validations: Validation[]
98-
value: ScalarValue
98+
value: UserDefinedValue
9999
}
100100

101101
export type ConnectorConfiguration = Dictionary<
@@ -208,7 +208,7 @@ export interface FilteringRules {
208208

209209
export interface FilteringConfig {
210210
active: FilteringRules
211-
domain: string
211+
domain?: string
212212
draft: FilteringRules
213213
}
214214

@@ -223,9 +223,8 @@ interface SyncRulesFeature {
223223

224224
export interface ConnectorFeatures {
225225
document_level_security?: FeatureEnabled
226-
filtering_advanced_config?: boolean
227-
filtering_rules?: boolean
228226
incremental_sync?: FeatureEnabled
227+
native_connector_api_keys?: FeatureEnabled
229228
sync_rules?: SyncRulesFeature
230229
}
231230

@@ -237,14 +236,15 @@ export interface SchedulingConfiguration {
237236

238237
export interface Connector {
239238
api_key_id?: string
239+
api_key_secret_id?: string
240240
configuration: ConnectorConfiguration
241241
custom_scheduling: ConnectorCustomScheduling
242242
description?: string
243-
error?: string
243+
error?: string | null
244244
features?: ConnectorFeatures
245245
filtering: FilteringConfig[]
246246
id?: Id
247-
index_name?: IndexName
247+
index_name?: IndexName | null
248248
is_native: boolean
249249
language?: string
250250
last_access_control_sync_error?: string
@@ -261,7 +261,8 @@ export interface Connector {
261261
name?: string
262262
pipeline?: IngestPipelineParams
263263
scheduling: SchedulingConfiguration
264-
service_type: string
264+
service_type?: string
265265
status: ConnectorStatus
266+
sync_cursor?: UserDefinedValue
266267
sync_now: boolean
267268
}

specification/connector/_types/SyncJob.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ interface SyncJobConnectorReference {
3636
language?: string
3737
pipeline?: IngestPipelineParams
3838
service_type: string
39+
sync_cursor?: UserDefinedValue
3940
}
4041

4142
export enum SyncJobType {

specification/connector/delete/ConnectorDeleteRequest.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ export interface Request extends RequestBase {
3434
connector_id: Id
3535
}
3636
query_parameters: {
37-
delete_sync_jobs: boolean
37+
/**
38+
* A flag indicating if associated sync jobs should be also removed. Defaults to false.
39+
*/
40+
delete_sync_jobs?: boolean
3841
}
3942
}

specification/connector/last_sync/ConnectorUpdateLastSyncRequest.ts

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,16 @@
1818
*/
1919
import { RequestBase } from '@_types/Base'
2020
import { Id } from '@_types/common'
21-
import { SyncStatus } from '../_types/Connector'
2221
import { long } from '@_types/Numeric'
23-
import { WithNullValue } from '@spec_utils/utils'
2422
import { DateTime } from '@_types/Time'
23+
import { UserDefinedValue } from '@spec_utils/UserDefinedValue'
24+
import { SyncStatus } from '../_types/Connector'
2525

2626
/**
2727
* Updates last sync stats in the connector document
2828
* @rest_spec_name connector.last_sync
2929
* @availability stack since=8.12.0 stability=experimental
30-
* @availability serverless stability=experimental visibility=public
30+
* @availability serverless stability=experimental visibility=private
3131
* @doc_id connector-last-sync
3232
*/
3333
export interface Request extends RequestBase {
@@ -41,16 +41,17 @@ export interface Request extends RequestBase {
4141
* Connector last sync stats
4242
*/
4343
body: {
44-
last_access_control_sync_error?: WithNullValue<string>
44+
last_access_control_sync_error?: string
4545
last_access_control_sync_scheduled_at?: DateTime
4646
last_access_control_sync_status?: SyncStatus
4747
last_deleted_document_count?: long
4848
last_incremental_sync_scheduled_at?: DateTime
4949
last_indexed_document_count?: long
50-
last_seen?: WithNullValue<DateTime>
51-
last_sync_error?: WithNullValue<string>
50+
last_seen?: DateTime
51+
last_sync_error?: string
5252
last_sync_scheduled_at?: DateTime
5353
last_sync_status?: SyncStatus
5454
last_synced?: DateTime
55+
sync_cursor?: UserDefinedValue
5556
}
5657
}

0 commit comments

Comments
 (0)