UNPKG

@softr/sdk

Version:

The SDK for building Softr apps on TanStack Start. It lets an app interact with Softr: auth, datasources, workflows and integrations.

45 lines (43 loc) • 1.31 kB
import "./context.js"; import { z } from "zod"; //#region src/auth/platform.d.ts declare const authSettingsSchema: z.ZodObject<{ loginEnabled: z.ZodBoolean; authenticationMethods: z.ZodArray<z.ZodEnum<{ EMAIL: "EMAIL"; SSO: "SSO"; GOOGLE: "GOOGLE"; MAGIC_LINK: "MAGIC_LINK"; }>>; signUpPolicy: z.ZodNullable<z.ZodEnum<{ DISABLED: "DISABLED"; OPEN_TO_PUBLIC: "OPEN_TO_PUBLIC"; DOMAIN_RESTRICTED: "DOMAIN_RESTRICTED"; }>>; sessionExpirationDays: z.ZodNullable<z.ZodNumber>; inactivityTimeoutMinutes: z.ZodNullable<z.ZodNumber>; emailAuth: z.ZodNullable<z.ZodObject<{ loginMethods: z.ZodArray<z.ZodEnum<{ PASSWORD: "PASSWORD"; EMAIL_CODE: "EMAIL_CODE"; }>>; strongPasswords: z.ZodBoolean; emailCodeExpirationMinutes: z.ZodNullable<z.ZodNumber>; }, z.core.$strip>>; googleAuth: z.ZodNullable<z.ZodObject<{ clientId: z.ZodNullable<z.ZodString>; userType: z.ZodNullable<z.ZodEnum<{ INTERNAL: "INTERNAL"; EXTERNAL: "EXTERNAL"; }>>; }, z.core.$strip>>; sso: z.ZodNullable<z.ZodObject<{ type: z.ZodNullable<z.ZodEnum<{ SAML: "SAML"; OPEN_ID: "OPEN_ID"; }>>; }, z.core.$strip>>; }, z.core.$strip>; type AuthSettings = z.infer<typeof authSettingsSchema>; //#endregion export { AuthSettings };