All files / src/sdk/types app.ts

100% Statements 6/6
100% Branches 0/0
100% Functions 0/0
100% Lines 6/6

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 2612x   12x       12x       12x         12x           12x        
import { z } from "zod";
 
export const ZGetAppParams = z.object({
  appKey: z.string(),
});
 
export const ZGetRequiredParams = z.object({
  appId: z.string(),
});
 
export const ZGetRequiredParamsForAuthScheme = z.object({
  appId: z.string(),
  authScheme: z.string(),
});
 
export const ZRequiredParamsResponse = z.object({
  required_fields: z.array(z.string()),
  expected_from_user: z.array(z.string()),
  optional_fields: z.array(z.string()),
});
 
export const ZRequiredParamsFullResponse = z.object({
  availableAuthSchemes: z.array(z.string()),
  authSchemes: z.record(z.string(), ZRequiredParamsResponse),
});