Swap gateway to outer layer

This commit is contained in:
x032205
2025-07-17 20:25:10 -04:00
parent e6bfb6ce2b
commit a8b448be0f
24 changed files with 241 additions and 168 deletions
@@ -30,7 +30,8 @@ export const GenericCreateAppConnectionFieldsSchema = (
.describe(AppConnections.CREATE(app).description),
isPlatformManagedCredentials: supportsPlatformManagedCredentials
? z.boolean().optional().default(false).describe(AppConnections.CREATE(app).isPlatformManagedCredentials)
: z.literal(false).optional().describe(`Not supported for ${APP_CONNECTION_NAME_MAP[app]} Connections.`)
: z.literal(false).optional().describe(`Not supported for ${APP_CONNECTION_NAME_MAP[app]} Connections.`),
gatewayId: z.string().uuid().nullish().describe("The Gateway ID to use for this connection.")
});
export const GenericUpdateAppConnectionFieldsSchema = (
@@ -47,5 +48,6 @@ export const GenericUpdateAppConnectionFieldsSchema = (
.describe(AppConnections.UPDATE(app).description),
isPlatformManagedCredentials: supportsPlatformManagedCredentials
? z.boolean().optional().describe(AppConnections.UPDATE(app).isPlatformManagedCredentials)
: z.literal(false).optional().describe(`Not supported for ${APP_CONNECTION_NAME_MAP[app]} Connections.`)
: z.literal(false).optional().describe(`Not supported for ${APP_CONNECTION_NAME_MAP[app]} Connections.`),
gatewayId: z.string().uuid().nullish().describe("The Gateway ID to use for this connection.")
});