Skip to content

Commit fe8ec47

Browse files
authored
Adding new URL params to Connector API endpoints + new type to Connector types (#3549)
* Adding new URL params to Connector API endpoints + new type to Connector types * Fixed formatting issue * Added @server_default flags, changed hard flag to required, and some typo fixes
1 parent ed872aa commit fe8ec47

File tree

9 files changed

+95
-5
lines changed

9 files changed

+95
-5
lines changed

output/schema/schema.json

Lines changed: 56 additions & 5 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: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

specification/_json_spec/connector.delete.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@
2828
"type": "boolean",
2929
"default": false,
3030
"description": "Determines whether associated sync jobs are also deleted."
31+
},
32+
"hard": {
33+
"type": "boolean",
34+
"default": false,
35+
"description": "A flag indicating if this should be a hard delete. Defaults to false."
3136
}
3237
}
3338
}

specification/_json_spec/connector.get.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,13 @@
2222
}
2323
}
2424
]
25+
},
26+
"params": {
27+
"include_deleted": {
28+
"type": "boolean",
29+
"default": false,
30+
"description": "A flag to indicate if the desired connector should be fetched even if it was soft-deleted"
31+
}
2532
}
2633
}
2734
}

specification/_json_spec/connector.list.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,11 @@
4343
"query": {
4444
"type": "string",
4545
"description": "A search string for querying connectors, filtering results by matching against connector names, descriptions, and index names"
46+
},
47+
"include_deleted": {
48+
"type": "boolean",
49+
"default": false,
50+
"description": "A flag that indicates whether a soft-deleted connectors will be fetched"
4651
}
4752
}
4853
}

specification/connector/_types/Connector.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,7 @@ export interface Connector {
254254
api_key_secret_id?: string
255255
configuration: ConnectorConfiguration
256256
custom_scheduling: ConnectorCustomScheduling
257+
deleted: boolean
257258
description?: string
258259
error?: string | null
259260
features?: ConnectorFeatures

specification/connector/delete/ConnectorDeleteRequest.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,5 +49,10 @@ export interface Request extends RequestBase {
4949
* A flag indicating if associated sync jobs should be also removed. Defaults to false.
5050
*/
5151
delete_sync_jobs?: boolean
52+
/**
53+
* A flag indicating if the connector should be hard deleted.
54+
* @server_default false
55+
*/
56+
hard?: boolean
5257
}
5358
}

specification/connector/get/ConnectorGetRequest.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,11 @@ export interface Request extends RequestBase {
4141
*/
4242
connector_id: Id
4343
}
44+
query_parameters: {
45+
/**
46+
* A flag to indicate if the desired connector should be fetched, even if it was soft-deleted.
47+
* @server_default false
48+
*/
49+
include_deleted?: boolean
50+
}
4451
}

specification/connector/list/ConnectorListRequest.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,11 @@ export interface Request extends RequestBase {
5757
* A comma-separated list of connector service types to fetch connector documents for
5858
*/
5959
service_type?: Names
60+
/**
61+
* A flag to indicate if the desired connector should be fetched, even if it was soft-deleted.
62+
* @server_default false
63+
*/
64+
include_deleted?: boolean
6065
/**
6166
* A wildcard query string that filters connectors with matching name, description or index name
6267
*/

0 commit comments

Comments
 (0)