mirror of
https://github.com/Kaelio/ktx.git
synced 2026-07-04 10:52:13 +02:00
Add gdrive context source adapter (#209)
* Add gdrive context source adapter * feat(gdrive): normalize internal doc links, tabs, and header/footer structure * fix(gdrive): reject generic source credential flags * test(gdrive): include local adapter in expected list * fix(gdrive): remove dead exports and silence false positive secret checks * fix(setup): restore notion source auth flow
This commit is contained in:
parent
967a413a06
commit
5645dc4d28
39 changed files with 2546 additions and 74 deletions
|
|
@ -168,6 +168,18 @@ const notionConnectionSchema = z
|
|||
})
|
||||
.describe('Notion context-source connection.');
|
||||
|
||||
const gdriveConnectionSchema = z
|
||||
.looseObject({
|
||||
driver: z.literal('gdrive'),
|
||||
service_account_key_ref: z
|
||||
.string()
|
||||
.min(1)
|
||||
.describe('Reference to a Google service-account JSON key file. Must use file:/absolute/path/to/key.json.'),
|
||||
folder_id: z.string().min(1).describe('Google Drive folder ID to ingest.'),
|
||||
recursive: z.boolean().optional().describe('When true, recursively traverse subfolders beneath folder_id.'),
|
||||
})
|
||||
.describe('Google Drive Google Docs context-source connection.');
|
||||
|
||||
const dbtConnectionSchema = z
|
||||
.looseObject({
|
||||
driver: z.literal('dbt'),
|
||||
|
|
@ -202,6 +214,7 @@ export const connectionConfigSchema = z.discriminatedUnion('driver', [
|
|||
lookerConnectionSchema,
|
||||
lookmlConnectionSchema,
|
||||
notionConnectionSchema,
|
||||
gdriveConnectionSchema,
|
||||
dbtConnectionSchema,
|
||||
metricflowConnectionSchema,
|
||||
]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue