@deepnote/database-integrations
Advanced tools
+3
-6
@@ -46,3 +46,3 @@ //#region rolldown:runtime | ||
| Password: "password", | ||
| Oauth: "oauth" | ||
| Oauth: "trino-oauth" | ||
| }; | ||
@@ -233,2 +233,3 @@ const DatabaseAuthMethods = { | ||
| const trinoUsernamePasswordMetadataSchema = trinoBaseMetadataSchema.extend({ | ||
| authMethod: zod.z.literal(TrinoAuthMethods.Password).nullish(), | ||
| user: zod.z.string(), | ||
@@ -244,7 +245,3 @@ password: zod.z.string() | ||
| }); | ||
| const trinoMetadataSchema = zod.z.discriminatedUnion("authMethod", [ | ||
| trinoUsernamePasswordMetadataSchema.extend({ authMethod: zod.z.literal(null) }), | ||
| trinoUsernamePasswordMetadataSchema.extend({ authMethod: zod.z.literal(TrinoAuthMethods.Password) }), | ||
| trinoOAuthMetadataSchema | ||
| ]); | ||
| const trinoMetadataSchema = zod.z.discriminatedUnion("authMethod", [trinoUsernamePasswordMetadataSchema, trinoOAuthMetadataSchema]); | ||
| const commonDatabaseSchema = zod.z.object({ | ||
@@ -251,0 +248,0 @@ host: zod.z.string(), |
+3
-6
@@ -22,3 +22,3 @@ import z$1, { z } from "zod"; | ||
| Password: "password", | ||
| Oauth: "oauth" | ||
| Oauth: "trino-oauth" | ||
| }; | ||
@@ -209,2 +209,3 @@ const DatabaseAuthMethods = { | ||
| const trinoUsernamePasswordMetadataSchema = trinoBaseMetadataSchema.extend({ | ||
| authMethod: z.literal(TrinoAuthMethods.Password).nullish(), | ||
| user: z.string(), | ||
@@ -220,7 +221,3 @@ password: z.string() | ||
| }); | ||
| const trinoMetadataSchema = z.discriminatedUnion("authMethod", [ | ||
| trinoUsernamePasswordMetadataSchema.extend({ authMethod: z.literal(null) }), | ||
| trinoUsernamePasswordMetadataSchema.extend({ authMethod: z.literal(TrinoAuthMethods.Password) }), | ||
| trinoOAuthMetadataSchema | ||
| ]); | ||
| const trinoMetadataSchema = z.discriminatedUnion("authMethod", [trinoUsernamePasswordMetadataSchema, trinoOAuthMetadataSchema]); | ||
| const commonDatabaseSchema = z.object({ | ||
@@ -227,0 +224,0 @@ host: z.string(), |
+1
-1
| { | ||
| "name": "@deepnote/database-integrations", | ||
| "version": "1.3.4", | ||
| "version": "1.3.5", | ||
| "description": "Deepnote database integration definitions", | ||
@@ -5,0 +5,0 @@ "keywords": [], |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
262736
-2.54%4590
-2.63%