diff --git a/app/api/app/api/endpoints/auth/auth.ts b/app/api/app/api/endpoints/auth/auth.ts index 63c2fce3..e46bb436 100644 --- a/app/api/app/api/endpoints/auth/auth.ts +++ b/app/api/app/api/endpoints/auth/auth.ts @@ -15,12 +15,7 @@ import type { import type { BaseResponse, - CreateCompanyDto, ErrorResponse, - LoginEntityDto, - LoginSchoolDto, - SelfEntityResponse, - SelfSchoolResponse, SignatoryRequestOtpDto, SignatoryRequestOtpResponse, SignatoryVerifyOtpDto, @@ -28,488 +23,6 @@ import type { import { preconfiguredAxiosFunction } from "../../../../preconfig.axios"; -export const authControllerEntitySelf = (signal?: AbortSignal) => { - return preconfiguredAxiosFunction({ - url: `/api/auth/self`, - method: "POST", - signal, - }); -}; - -export const getAuthControllerEntitySelfMutationOptions = < - TError = ErrorResponse, - TContext = unknown, ->(options?: { - mutation?: UseMutationOptions< - Awaited>, - TError, - void, - TContext - >; -}): UseMutationOptions< - Awaited>, - TError, - void, - TContext -> => { - const mutationKey = ["authControllerEntitySelf"]; - const { mutation: mutationOptions } = options - ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey - ? options - : { ...options, mutation: { ...options.mutation, mutationKey } } - : { mutation: { mutationKey } }; - - const mutationFn: MutationFunction< - Awaited>, - void - > = () => { - return authControllerEntitySelf(); - }; - - return { mutationFn, ...mutationOptions }; -}; - -export type AuthControllerEntitySelfMutationResult = NonNullable< - Awaited> ->; - -export type AuthControllerEntitySelfMutationError = ErrorResponse; - -export const useAuthControllerEntitySelf = ( - options?: { - mutation?: UseMutationOptions< - Awaited>, - TError, - void, - TContext - >; - }, - queryClient?: QueryClient -): UseMutationResult< - Awaited>, - TError, - void, - TContext -> => { - const mutationOptions = getAuthControllerEntitySelfMutationOptions(options); - - return useMutation(mutationOptions, queryClient); -}; -export const authPublicRegisterCompany = ( - createCompanyDto: CreateCompanyDto, - signal?: AbortSignal -) => { - return preconfiguredAxiosFunction({ - url: `/api/auth/public/register-company`, - method: "POST", - headers: { "Content-Type": "application/json" }, - data: createCompanyDto, - signal, - }); -}; - -export const getAuthPublicRegisterCompanyMutationOptions = < - TError = ErrorResponse, - TContext = unknown, ->(options?: { - mutation?: UseMutationOptions< - Awaited>, - TError, - { data: CreateCompanyDto }, - TContext - >; -}): UseMutationOptions< - Awaited>, - TError, - { data: CreateCompanyDto }, - TContext -> => { - const mutationKey = ["authPublicRegisterCompany"]; - const { mutation: mutationOptions } = options - ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey - ? options - : { ...options, mutation: { ...options.mutation, mutationKey } } - : { mutation: { mutationKey } }; - - const mutationFn: MutationFunction< - Awaited>, - { data: CreateCompanyDto } - > = (props) => { - const { data } = props ?? {}; - - return authPublicRegisterCompany(data); - }; - - return { mutationFn, ...mutationOptions }; -}; - -export type AuthPublicRegisterCompanyMutationResult = NonNullable< - Awaited> ->; -export type AuthPublicRegisterCompanyMutationBody = CreateCompanyDto; -export type AuthPublicRegisterCompanyMutationError = ErrorResponse; - -export const useAuthPublicRegisterCompany = ( - options?: { - mutation?: UseMutationOptions< - Awaited>, - TError, - { data: CreateCompanyDto }, - TContext - >; - }, - queryClient?: QueryClient -): UseMutationResult< - Awaited>, - TError, - { data: CreateCompanyDto }, - TContext -> => { - const mutationOptions = getAuthPublicRegisterCompanyMutationOptions(options); - - return useMutation(mutationOptions, queryClient); -}; -export const authControllerSignIn = (loginEntityDto: LoginEntityDto, signal?: AbortSignal) => { - return preconfiguredAxiosFunction({ - url: `/api/auth/login`, - method: "POST", - headers: { "Content-Type": "application/json" }, - data: loginEntityDto, - signal, - }); -}; - -export const getAuthControllerSignInMutationOptions = < - TError = ErrorResponse, - TContext = unknown, ->(options?: { - mutation?: UseMutationOptions< - Awaited>, - TError, - { data: LoginEntityDto }, - TContext - >; -}): UseMutationOptions< - Awaited>, - TError, - { data: LoginEntityDto }, - TContext -> => { - const mutationKey = ["authControllerSignIn"]; - const { mutation: mutationOptions } = options - ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey - ? options - : { ...options, mutation: { ...options.mutation, mutationKey } } - : { mutation: { mutationKey } }; - - const mutationFn: MutationFunction< - Awaited>, - { data: LoginEntityDto } - > = (props) => { - const { data } = props ?? {}; - - return authControllerSignIn(data); - }; - - return { mutationFn, ...mutationOptions }; -}; - -export type AuthControllerSignInMutationResult = NonNullable< - Awaited> ->; -export type AuthControllerSignInMutationBody = LoginEntityDto; -export type AuthControllerSignInMutationError = ErrorResponse; - -export const useAuthControllerSignIn = ( - options?: { - mutation?: UseMutationOptions< - Awaited>, - TError, - { data: LoginEntityDto }, - TContext - >; - }, - queryClient?: QueryClient -): UseMutationResult< - Awaited>, - TError, - { data: LoginEntityDto }, - TContext -> => { - const mutationOptions = getAuthControllerSignInMutationOptions(options); - - return useMutation(mutationOptions, queryClient); -}; -export const authControllerSignOut = (signal?: AbortSignal) => { - return preconfiguredAxiosFunction({ - url: `/api/auth/logout`, - method: "POST", - signal, - }); -}; - -export const getAuthControllerSignOutMutationOptions = < - TError = ErrorResponse, - TContext = unknown, ->(options?: { - mutation?: UseMutationOptions< - Awaited>, - TError, - void, - TContext - >; -}): UseMutationOptions< - Awaited>, - TError, - void, - TContext -> => { - const mutationKey = ["authControllerSignOut"]; - const { mutation: mutationOptions } = options - ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey - ? options - : { ...options, mutation: { ...options.mutation, mutationKey } } - : { mutation: { mutationKey } }; - - const mutationFn: MutationFunction< - Awaited>, - void - > = () => { - return authControllerSignOut(); - }; - - return { mutationFn, ...mutationOptions }; -}; - -export type AuthControllerSignOutMutationResult = NonNullable< - Awaited> ->; - -export type AuthControllerSignOutMutationError = ErrorResponse; - -export const useAuthControllerSignOut = ( - options?: { - mutation?: UseMutationOptions< - Awaited>, - TError, - void, - TContext - >; - }, - queryClient?: QueryClient -): UseMutationResult>, TError, void, TContext> => { - const mutationOptions = getAuthControllerSignOutMutationOptions(options); - - return useMutation(mutationOptions, queryClient); -}; -export const authControllerSchoolSignIn = ( - loginSchoolDto: LoginSchoolDto, - signal?: AbortSignal -) => { - return preconfiguredAxiosFunction({ - url: `/api/auth/school/login`, - method: "POST", - headers: { "Content-Type": "application/json" }, - data: loginSchoolDto, - signal, - }); -}; - -export const getAuthControllerSchoolSignInMutationOptions = < - TError = ErrorResponse, - TContext = unknown, ->(options?: { - mutation?: UseMutationOptions< - Awaited>, - TError, - { data: LoginSchoolDto }, - TContext - >; -}): UseMutationOptions< - Awaited>, - TError, - { data: LoginSchoolDto }, - TContext -> => { - const mutationKey = ["authControllerSchoolSignIn"]; - const { mutation: mutationOptions } = options - ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey - ? options - : { ...options, mutation: { ...options.mutation, mutationKey } } - : { mutation: { mutationKey } }; - - const mutationFn: MutationFunction< - Awaited>, - { data: LoginSchoolDto } - > = (props) => { - const { data } = props ?? {}; - - return authControllerSchoolSignIn(data); - }; - - return { mutationFn, ...mutationOptions }; -}; - -export type AuthControllerSchoolSignInMutationResult = NonNullable< - Awaited> ->; -export type AuthControllerSchoolSignInMutationBody = LoginSchoolDto; -export type AuthControllerSchoolSignInMutationError = ErrorResponse; - -export const useAuthControllerSchoolSignIn = ( - options?: { - mutation?: UseMutationOptions< - Awaited>, - TError, - { data: LoginSchoolDto }, - TContext - >; - }, - queryClient?: QueryClient -): UseMutationResult< - Awaited>, - TError, - { data: LoginSchoolDto }, - TContext -> => { - const mutationOptions = getAuthControllerSchoolSignInMutationOptions(options); - - return useMutation(mutationOptions, queryClient); -}; -export const authControllerSchoolSelf = (signal?: AbortSignal) => { - return preconfiguredAxiosFunction({ - url: `/api/auth/school/self`, - method: "POST", - signal, - }); -}; - -export const getAuthControllerSchoolSelfMutationOptions = < - TError = ErrorResponse, - TContext = unknown, ->(options?: { - mutation?: UseMutationOptions< - Awaited>, - TError, - void, - TContext - >; -}): UseMutationOptions< - Awaited>, - TError, - void, - TContext -> => { - const mutationKey = ["authControllerSchoolSelf"]; - const { mutation: mutationOptions } = options - ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey - ? options - : { ...options, mutation: { ...options.mutation, mutationKey } } - : { mutation: { mutationKey } }; - - const mutationFn: MutationFunction< - Awaited>, - void - > = () => { - return authControllerSchoolSelf(); - }; - - return { mutationFn, ...mutationOptions }; -}; - -export type AuthControllerSchoolSelfMutationResult = NonNullable< - Awaited> ->; - -export type AuthControllerSchoolSelfMutationError = ErrorResponse; - -export const useAuthControllerSchoolSelf = ( - options?: { - mutation?: UseMutationOptions< - Awaited>, - TError, - void, - TContext - >; - }, - queryClient?: QueryClient -): UseMutationResult< - Awaited>, - TError, - void, - TContext -> => { - const mutationOptions = getAuthControllerSchoolSelfMutationOptions(options); - - return useMutation(mutationOptions, queryClient); -}; -export const authControllerSchoolSignOut = (signal?: AbortSignal) => { - return preconfiguredAxiosFunction({ - url: `/api/auth/school/logout`, - method: "POST", - signal, - }); -}; - -export const getAuthControllerSchoolSignOutMutationOptions = < - TError = ErrorResponse, - TContext = unknown, ->(options?: { - mutation?: UseMutationOptions< - Awaited>, - TError, - void, - TContext - >; -}): UseMutationOptions< - Awaited>, - TError, - void, - TContext -> => { - const mutationKey = ["authControllerSchoolSignOut"]; - const { mutation: mutationOptions } = options - ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey - ? options - : { ...options, mutation: { ...options.mutation, mutationKey } } - : { mutation: { mutationKey } }; - - const mutationFn: MutationFunction< - Awaited>, - void - > = () => { - return authControllerSchoolSignOut(); - }; - - return { mutationFn, ...mutationOptions }; -}; - -export type AuthControllerSchoolSignOutMutationResult = NonNullable< - Awaited> ->; - -export type AuthControllerSchoolSignOutMutationError = ErrorResponse; - -export const useAuthControllerSchoolSignOut = ( - options?: { - mutation?: UseMutationOptions< - Awaited>, - TError, - void, - TContext - >; - }, - queryClient?: QueryClient -): UseMutationResult< - Awaited>, - TError, - void, - TContext -> => { - const mutationOptions = getAuthControllerSchoolSignOutMutationOptions(options); - - return useMutation(mutationOptions, queryClient); -}; export const authControllerSignatoryLoginRequest = ( signatoryRequestOtpDto: SignatoryRequestOtpDto, signal?: AbortSignal diff --git a/app/api/app/api/endpoints/docs/docs.ts b/app/api/app/api/endpoints/docs/docs.ts index a4d43624..d1bcc091 100644 --- a/app/api/app/api/endpoints/docs/docs.ts +++ b/app/api/app/api/endpoints/docs/docs.ts @@ -23,12 +23,7 @@ import type { UseSuspenseQueryResult, } from "@tanstack/react-query"; -import type { - ErrorResponse, - QueryDocResponse, - QueryMoaResponse, - SignatoryFormtemplatesResponse, -} from "../../models"; +import type { ErrorResponse, QueryDocResponse, SignatoryFormtemplatesResponse } from "../../models"; import { preconfiguredAxiosFunction } from "../../../../preconfig.axios"; @@ -288,261 +283,31 @@ export function useDocsControllerGetByVerificationCodeSuspense< return query; } -export const docsControllerGetMoaSignedDocument = ( - id: string | undefined | null, - signal?: AbortSignal -) => { - return preconfiguredAxiosFunction({ - url: `/api/docs/moa/${id}`, - method: "GET", +export const docsControllerResolveUrl = (signal?: AbortSignal) => { + return preconfiguredAxiosFunction({ + url: `/api/docs/resolve-url`, + method: "POST", signal, }); }; -export const getDocsControllerGetMoaSignedDocumentQueryKey = (id?: string | undefined | null) => { - return [`/api/docs/moa/${id}`] as const; -}; - -export const getDocsControllerGetMoaSignedDocumentQueryOptions = < - TData = Awaited>, - TError = ErrorResponse, ->( - id: string | undefined | null, - options?: { - query?: Partial< - UseQueryOptions>, TError, TData> - >; - } -) => { - const { query: queryOptions } = options ?? {}; - - const queryKey = queryOptions?.queryKey ?? getDocsControllerGetMoaSignedDocumentQueryKey(id); - - const queryFn: QueryFunction>> = ({ - signal, - }) => docsControllerGetMoaSignedDocument(id, signal); - - return { queryKey, queryFn, enabled: !!id, ...queryOptions } as UseQueryOptions< - Awaited>, - TError, - TData - > & { queryKey: DataTag }; -}; - -export type DocsControllerGetMoaSignedDocumentQueryResult = NonNullable< - Awaited> ->; -export type DocsControllerGetMoaSignedDocumentQueryError = ErrorResponse; - -export function useDocsControllerGetMoaSignedDocument< - TData = Awaited>, - TError = ErrorResponse, ->( - id: string | undefined | null, - options: { - query: Partial< - UseQueryOptions>, TError, TData> - > & - Pick< - DefinedInitialDataOptions< - Awaited>, - TError, - Awaited> - >, - "initialData" - >; - }, - queryClient?: QueryClient -): DefinedUseQueryResult & { queryKey: DataTag }; -export function useDocsControllerGetMoaSignedDocument< - TData = Awaited>, - TError = ErrorResponse, ->( - id: string | undefined | null, - options?: { - query?: Partial< - UseQueryOptions>, TError, TData> - > & - Pick< - UndefinedInitialDataOptions< - Awaited>, - TError, - Awaited> - >, - "initialData" - >; - }, - queryClient?: QueryClient -): UseQueryResult & { queryKey: DataTag }; -export function useDocsControllerGetMoaSignedDocument< - TData = Awaited>, - TError = ErrorResponse, ->( - id: string | undefined | null, - options?: { - query?: Partial< - UseQueryOptions>, TError, TData> - >; - }, - queryClient?: QueryClient -): UseQueryResult & { queryKey: DataTag }; - -export function useDocsControllerGetMoaSignedDocument< - TData = Awaited>, - TError = ErrorResponse, ->( - id: string | undefined | null, - options?: { - query?: Partial< - UseQueryOptions>, TError, TData> - >; - }, - queryClient?: QueryClient -): UseQueryResult & { queryKey: DataTag } { - const queryOptions = getDocsControllerGetMoaSignedDocumentQueryOptions(id, options); - - const query = useQuery(queryOptions, queryClient) as UseQueryResult & { - queryKey: DataTag; - }; - - query.queryKey = queryOptions.queryKey; - - return query; -} - -export const getDocsControllerGetMoaSignedDocumentSuspenseQueryOptions = < - TData = Awaited>, - TError = ErrorResponse, ->( - id: string | undefined | null, - options?: { - query?: Partial< - UseSuspenseQueryOptions< - Awaited>, - TError, - TData - > - >; - } -) => { - const { query: queryOptions } = options ?? {}; - - const queryKey = queryOptions?.queryKey ?? getDocsControllerGetMoaSignedDocumentQueryKey(id); - - const queryFn: QueryFunction>> = ({ - signal, - }) => docsControllerGetMoaSignedDocument(id, signal); - - return { queryKey, queryFn, ...queryOptions } as UseSuspenseQueryOptions< - Awaited>, - TError, - TData - > & { queryKey: DataTag }; -}; - -export type DocsControllerGetMoaSignedDocumentSuspenseQueryResult = NonNullable< - Awaited> ->; -export type DocsControllerGetMoaSignedDocumentSuspenseQueryError = ErrorResponse; - -export function useDocsControllerGetMoaSignedDocumentSuspense< - TData = Awaited>, - TError = ErrorResponse, ->( - id: string | undefined | null, - options: { - query: Partial< - UseSuspenseQueryOptions< - Awaited>, - TError, - TData - > - >; - }, - queryClient?: QueryClient -): UseSuspenseQueryResult & { queryKey: DataTag }; -export function useDocsControllerGetMoaSignedDocumentSuspense< - TData = Awaited>, - TError = ErrorResponse, ->( - id: string | undefined | null, - options?: { - query?: Partial< - UseSuspenseQueryOptions< - Awaited>, - TError, - TData - > - >; - }, - queryClient?: QueryClient -): UseSuspenseQueryResult & { queryKey: DataTag }; -export function useDocsControllerGetMoaSignedDocumentSuspense< - TData = Awaited>, - TError = ErrorResponse, ->( - id: string | undefined | null, - options?: { - query?: Partial< - UseSuspenseQueryOptions< - Awaited>, - TError, - TData - > - >; - }, - queryClient?: QueryClient -): UseSuspenseQueryResult & { queryKey: DataTag }; - -export function useDocsControllerGetMoaSignedDocumentSuspense< - TData = Awaited>, +export const getDocsControllerResolveUrlMutationOptions = < TError = ErrorResponse, ->( - id: string | undefined | null, - options?: { - query?: Partial< - UseSuspenseQueryOptions< - Awaited>, - TError, - TData - > - >; - }, - queryClient?: QueryClient -): UseSuspenseQueryResult & { queryKey: DataTag } { - const queryOptions = getDocsControllerGetMoaSignedDocumentSuspenseQueryOptions(id, options); - - const query = useSuspenseQuery(queryOptions, queryClient) as UseSuspenseQueryResult< - TData, - TError - > & { queryKey: DataTag }; - - query.queryKey = queryOptions.queryKey; - - return query; -} - -export const docsControllerPushStudentMoa = (signal?: AbortSignal) => { - return preconfiguredAxiosFunction({ url: `/api/docs/student-moa`, method: "POST", signal }); -}; - -export const getDocsControllerPushStudentMoaMutationOptions = < - TError = unknown, TContext = unknown, >(options?: { mutation?: UseMutationOptions< - Awaited>, + Awaited>, TError, void, TContext >; }): UseMutationOptions< - Awaited>, + Awaited>, TError, void, TContext > => { - const mutationKey = ["docsControllerPushStudentMoa"]; + const mutationKey = ["docsControllerResolveUrl"]; const { mutation: mutationOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options @@ -550,25 +315,25 @@ export const getDocsControllerPushStudentMoaMutationOptions = < : { mutation: { mutationKey } }; const mutationFn: MutationFunction< - Awaited>, + Awaited>, void > = () => { - return docsControllerPushStudentMoa(); + return docsControllerResolveUrl(); }; return { mutationFn, ...mutationOptions }; }; -export type DocsControllerPushStudentMoaMutationResult = NonNullable< - Awaited> +export type DocsControllerResolveUrlMutationResult = NonNullable< + Awaited> >; -export type DocsControllerPushStudentMoaMutationError = unknown; +export type DocsControllerResolveUrlMutationError = ErrorResponse; -export const useDocsControllerPushStudentMoa = ( +export const useDocsControllerResolveUrl = ( options?: { mutation?: UseMutationOptions< - Awaited>, + Awaited>, TError, void, TContext @@ -576,249 +341,82 @@ export const useDocsControllerPushStudentMoa = >, + Awaited>, TError, void, TContext > => { - const mutationOptions = getDocsControllerPushStudentMoaMutationOptions(options); + const mutationOptions = getDocsControllerResolveUrlMutationOptions(options); return useMutation(mutationOptions, queryClient); }; -export const docsControllerGetStudentMoa = ( - id: string | undefined | null, - signal?: AbortSignal -) => { - return preconfiguredAxiosFunction({ - url: `/api/docs/student-moa/${id}`, - method: "GET", +export const docsControllerResolveUrlInternal = (signal?: AbortSignal) => { + return preconfiguredAxiosFunction({ + url: `/api/docs/resolve-url/__internal`, + method: "POST", signal, }); }; -export const getDocsControllerGetStudentMoaQueryKey = (id?: string | undefined | null) => { - return [`/api/docs/student-moa/${id}`] as const; -}; - -export const getDocsControllerGetStudentMoaQueryOptions = < - TData = Awaited>, - TError = unknown, ->( - id: string | undefined | null, - options?: { - query?: Partial< - UseQueryOptions>, TError, TData> - >; - } -) => { - const { query: queryOptions } = options ?? {}; - - const queryKey = queryOptions?.queryKey ?? getDocsControllerGetStudentMoaQueryKey(id); - - const queryFn: QueryFunction>> = ({ - signal, - }) => docsControllerGetStudentMoa(id, signal); - - return { queryKey, queryFn, enabled: !!id, ...queryOptions } as UseQueryOptions< - Awaited>, +export const getDocsControllerResolveUrlInternalMutationOptions = < + TError = ErrorResponse, + TContext = unknown, +>(options?: { + mutation?: UseMutationOptions< + Awaited>, TError, - TData - > & { queryKey: DataTag }; -}; - -export type DocsControllerGetStudentMoaQueryResult = NonNullable< - Awaited> ->; -export type DocsControllerGetStudentMoaQueryError = unknown; - -export function useDocsControllerGetStudentMoa< - TData = Awaited>, - TError = unknown, ->( - id: string | undefined | null, - options: { - query: Partial< - UseQueryOptions>, TError, TData> - > & - Pick< - DefinedInitialDataOptions< - Awaited>, - TError, - Awaited> - >, - "initialData" - >; - }, - queryClient?: QueryClient -): DefinedUseQueryResult & { queryKey: DataTag }; -export function useDocsControllerGetStudentMoa< - TData = Awaited>, - TError = unknown, ->( - id: string | undefined | null, - options?: { - query?: Partial< - UseQueryOptions>, TError, TData> - > & - Pick< - UndefinedInitialDataOptions< - Awaited>, - TError, - Awaited> - >, - "initialData" - >; - }, - queryClient?: QueryClient -): UseQueryResult & { queryKey: DataTag }; -export function useDocsControllerGetStudentMoa< - TData = Awaited>, - TError = unknown, ->( - id: string | undefined | null, - options?: { - query?: Partial< - UseQueryOptions>, TError, TData> - >; - }, - queryClient?: QueryClient -): UseQueryResult & { queryKey: DataTag }; - -export function useDocsControllerGetStudentMoa< - TData = Awaited>, - TError = unknown, ->( - id: string | undefined | null, - options?: { - query?: Partial< - UseQueryOptions>, TError, TData> - >; - }, - queryClient?: QueryClient -): UseQueryResult & { queryKey: DataTag } { - const queryOptions = getDocsControllerGetStudentMoaQueryOptions(id, options); + void, + TContext + >; +}): UseMutationOptions< + Awaited>, + TError, + void, + TContext +> => { + const mutationKey = ["docsControllerResolveUrlInternal"]; + const { mutation: mutationOptions } = options + ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey + ? options + : { ...options, mutation: { ...options.mutation, mutationKey } } + : { mutation: { mutationKey } }; - const query = useQuery(queryOptions, queryClient) as UseQueryResult & { - queryKey: DataTag; + const mutationFn: MutationFunction< + Awaited>, + void + > = () => { + return docsControllerResolveUrlInternal(); }; - query.queryKey = queryOptions.queryKey; - - return query; -} - -export const getDocsControllerGetStudentMoaSuspenseQueryOptions = < - TData = Awaited>, - TError = unknown, ->( - id: string | undefined | null, - options?: { - query?: Partial< - UseSuspenseQueryOptions< - Awaited>, - TError, - TData - > - >; - } -) => { - const { query: queryOptions } = options ?? {}; - - const queryKey = queryOptions?.queryKey ?? getDocsControllerGetStudentMoaQueryKey(id); - - const queryFn: QueryFunction>> = ({ - signal, - }) => docsControllerGetStudentMoa(id, signal); - - return { queryKey, queryFn, ...queryOptions } as UseSuspenseQueryOptions< - Awaited>, - TError, - TData - > & { queryKey: DataTag }; + return { mutationFn, ...mutationOptions }; }; -export type DocsControllerGetStudentMoaSuspenseQueryResult = NonNullable< - Awaited> +export type DocsControllerResolveUrlInternalMutationResult = NonNullable< + Awaited> >; -export type DocsControllerGetStudentMoaSuspenseQueryError = unknown; -export function useDocsControllerGetStudentMoaSuspense< - TData = Awaited>, - TError = unknown, ->( - id: string | undefined | null, - options: { - query: Partial< - UseSuspenseQueryOptions< - Awaited>, - TError, - TData - > - >; - }, - queryClient?: QueryClient -): UseSuspenseQueryResult & { queryKey: DataTag }; -export function useDocsControllerGetStudentMoaSuspense< - TData = Awaited>, - TError = unknown, ->( - id: string | undefined | null, - options?: { - query?: Partial< - UseSuspenseQueryOptions< - Awaited>, - TError, - TData - > - >; - }, - queryClient?: QueryClient -): UseSuspenseQueryResult & { queryKey: DataTag }; -export function useDocsControllerGetStudentMoaSuspense< - TData = Awaited>, - TError = unknown, ->( - id: string | undefined | null, - options?: { - query?: Partial< - UseSuspenseQueryOptions< - Awaited>, - TError, - TData - > - >; - }, - queryClient?: QueryClient -): UseSuspenseQueryResult & { queryKey: DataTag }; +export type DocsControllerResolveUrlInternalMutationError = ErrorResponse; -export function useDocsControllerGetStudentMoaSuspense< - TData = Awaited>, - TError = unknown, ->( - id: string | undefined | null, +export const useDocsControllerResolveUrlInternal = ( options?: { - query?: Partial< - UseSuspenseQueryOptions< - Awaited>, - TError, - TData - > + mutation?: UseMutationOptions< + Awaited>, + TError, + void, + TContext >; }, queryClient?: QueryClient -): UseSuspenseQueryResult & { queryKey: DataTag } { - const queryOptions = getDocsControllerGetStudentMoaSuspenseQueryOptions(id, options); - - const query = useSuspenseQuery(queryOptions, queryClient) as UseSuspenseQueryResult< - TData, - TError - > & { queryKey: DataTag }; - - query.queryKey = queryOptions.queryKey; - - return query; -} +): UseMutationResult< + Awaited>, + TError, + void, + TContext +> => { + const mutationOptions = getDocsControllerResolveUrlInternalMutationOptions(options); + return useMutation(mutationOptions, queryClient); +}; export const docsControllerGetEntityForms = (signal?: AbortSignal) => { return preconfiguredAxiosFunction({ url: `/api/docs/entity-forms`, diff --git a/app/api/app/api/endpoints/forms/forms.ts b/app/api/app/api/endpoints/forms/forms.ts index 497766b6..d2fc232d 100644 --- a/app/api/app/api/endpoints/forms/forms.ts +++ b/app/api/app/api/endpoints/forms/forms.ts @@ -38,6 +38,7 @@ import type { FormProcessResponse, FormRegistryResponse, FormTemplatesResponse, + FormsControllerGetAlterRecipientContextInternallyParams, FormsControllerGetFieldFromRegistryParams, FormsControllerGetFormGroupTemplatesParams, FormsControllerGetFormProcessParams, @@ -3581,3 +3582,338 @@ export const useFormsControllerAlterRecipient = { + return preconfiguredAxiosFunction({ + url: `/api/forms/edit-recipient/__internal`, + method: "GET", + params, + signal, + }); +}; + +export const getFormsControllerGetAlterRecipientContextInternallyQueryKey = ( + params?: FormsControllerGetAlterRecipientContextInternallyParams +) => { + return [`/api/forms/edit-recipient/__internal`, ...(params ? [params] : [])] as const; +}; + +export const getFormsControllerGetAlterRecipientContextInternallyQueryOptions = < + TData = Awaited>, + TError = ErrorResponse, +>( + params?: FormsControllerGetAlterRecipientContextInternallyParams, + options?: { + query?: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + >; + } +) => { + const { query: queryOptions } = options ?? {}; + + const queryKey = + queryOptions?.queryKey ?? getFormsControllerGetAlterRecipientContextInternallyQueryKey(params); + + const queryFn: QueryFunction< + Awaited> + > = ({ signal }) => formsControllerGetAlterRecipientContextInternally(params, signal); + + return { queryKey, queryFn, ...queryOptions } as UseQueryOptions< + Awaited>, + TError, + TData + > & { queryKey: DataTag }; +}; + +export type FormsControllerGetAlterRecipientContextInternallyQueryResult = NonNullable< + Awaited> +>; +export type FormsControllerGetAlterRecipientContextInternallyQueryError = ErrorResponse; + +export function useFormsControllerGetAlterRecipientContextInternally< + TData = Awaited>, + TError = ErrorResponse, +>( + params: undefined | FormsControllerGetAlterRecipientContextInternallyParams, + options: { + query: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + > & + Pick< + DefinedInitialDataOptions< + Awaited>, + TError, + Awaited> + >, + "initialData" + >; + }, + queryClient?: QueryClient +): DefinedUseQueryResult & { queryKey: DataTag }; +export function useFormsControllerGetAlterRecipientContextInternally< + TData = Awaited>, + TError = ErrorResponse, +>( + params?: FormsControllerGetAlterRecipientContextInternallyParams, + options?: { + query?: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + > & + Pick< + UndefinedInitialDataOptions< + Awaited>, + TError, + Awaited> + >, + "initialData" + >; + }, + queryClient?: QueryClient +): UseQueryResult & { queryKey: DataTag }; +export function useFormsControllerGetAlterRecipientContextInternally< + TData = Awaited>, + TError = ErrorResponse, +>( + params?: FormsControllerGetAlterRecipientContextInternallyParams, + options?: { + query?: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + >; + }, + queryClient?: QueryClient +): UseQueryResult & { queryKey: DataTag }; + +export function useFormsControllerGetAlterRecipientContextInternally< + TData = Awaited>, + TError = ErrorResponse, +>( + params?: FormsControllerGetAlterRecipientContextInternallyParams, + options?: { + query?: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + >; + }, + queryClient?: QueryClient +): UseQueryResult & { queryKey: DataTag } { + const queryOptions = getFormsControllerGetAlterRecipientContextInternallyQueryOptions( + params, + options + ); + + const query = useQuery(queryOptions, queryClient) as UseQueryResult & { + queryKey: DataTag; + }; + + query.queryKey = queryOptions.queryKey; + + return query; +} + +export const getFormsControllerGetAlterRecipientContextInternallySuspenseQueryOptions = < + TData = Awaited>, + TError = ErrorResponse, +>( + params?: FormsControllerGetAlterRecipientContextInternallyParams, + options?: { + query?: Partial< + UseSuspenseQueryOptions< + Awaited>, + TError, + TData + > + >; + } +) => { + const { query: queryOptions } = options ?? {}; + + const queryKey = + queryOptions?.queryKey ?? getFormsControllerGetAlterRecipientContextInternallyQueryKey(params); + + const queryFn: QueryFunction< + Awaited> + > = ({ signal }) => formsControllerGetAlterRecipientContextInternally(params, signal); + + return { queryKey, queryFn, ...queryOptions } as UseSuspenseQueryOptions< + Awaited>, + TError, + TData + > & { queryKey: DataTag }; +}; + +export type FormsControllerGetAlterRecipientContextInternallySuspenseQueryResult = NonNullable< + Awaited> +>; +export type FormsControllerGetAlterRecipientContextInternallySuspenseQueryError = ErrorResponse; + +export function useFormsControllerGetAlterRecipientContextInternallySuspense< + TData = Awaited>, + TError = ErrorResponse, +>( + params: undefined | FormsControllerGetAlterRecipientContextInternallyParams, + options: { + query: Partial< + UseSuspenseQueryOptions< + Awaited>, + TError, + TData + > + >; + }, + queryClient?: QueryClient +): UseSuspenseQueryResult & { queryKey: DataTag }; +export function useFormsControllerGetAlterRecipientContextInternallySuspense< + TData = Awaited>, + TError = ErrorResponse, +>( + params?: FormsControllerGetAlterRecipientContextInternallyParams, + options?: { + query?: Partial< + UseSuspenseQueryOptions< + Awaited>, + TError, + TData + > + >; + }, + queryClient?: QueryClient +): UseSuspenseQueryResult & { queryKey: DataTag }; +export function useFormsControllerGetAlterRecipientContextInternallySuspense< + TData = Awaited>, + TError = ErrorResponse, +>( + params?: FormsControllerGetAlterRecipientContextInternallyParams, + options?: { + query?: Partial< + UseSuspenseQueryOptions< + Awaited>, + TError, + TData + > + >; + }, + queryClient?: QueryClient +): UseSuspenseQueryResult & { queryKey: DataTag }; + +export function useFormsControllerGetAlterRecipientContextInternallySuspense< + TData = Awaited>, + TError = ErrorResponse, +>( + params?: FormsControllerGetAlterRecipientContextInternallyParams, + options?: { + query?: Partial< + UseSuspenseQueryOptions< + Awaited>, + TError, + TData + > + >; + }, + queryClient?: QueryClient +): UseSuspenseQueryResult & { queryKey: DataTag } { + const queryOptions = getFormsControllerGetAlterRecipientContextInternallySuspenseQueryOptions( + params, + options + ); + + const query = useSuspenseQuery(queryOptions, queryClient) as UseSuspenseQueryResult< + TData, + TError + > & { queryKey: DataTag }; + + query.queryKey = queryOptions.queryKey; + + return query; +} + +export const formsControllerAlterRecipientInternally = (signal?: AbortSignal) => { + return preconfiguredAxiosFunction({ + url: `/api/forms/edit-recipient/__internal`, + method: "POST", + signal, + }); +}; + +export const getFormsControllerAlterRecipientInternallyMutationOptions = < + TError = ErrorResponse, + TContext = unknown, +>(options?: { + mutation?: UseMutationOptions< + Awaited>, + TError, + void, + TContext + >; +}): UseMutationOptions< + Awaited>, + TError, + void, + TContext +> => { + const mutationKey = ["formsControllerAlterRecipientInternally"]; + const { mutation: mutationOptions } = options + ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey + ? options + : { ...options, mutation: { ...options.mutation, mutationKey } } + : { mutation: { mutationKey } }; + + const mutationFn: MutationFunction< + Awaited>, + void + > = () => { + return formsControllerAlterRecipientInternally(); + }; + + return { mutationFn, ...mutationOptions }; +}; + +export type FormsControllerAlterRecipientInternallyMutationResult = NonNullable< + Awaited> +>; + +export type FormsControllerAlterRecipientInternallyMutationError = ErrorResponse; + +export const useFormsControllerAlterRecipientInternally = < + TError = ErrorResponse, + TContext = unknown, +>( + options?: { + mutation?: UseMutationOptions< + Awaited>, + TError, + void, + TContext + >; + }, + queryClient?: QueryClient +): UseMutationResult< + Awaited>, + TError, + void, + TContext +> => { + const mutationOptions = getFormsControllerAlterRecipientInternallyMutationOptions(options); + + return useMutation(mutationOptions, queryClient); +}; diff --git a/app/api/app/api/endpoints/ses-bounce-webhook/ses-bounce-webhook.ts b/app/api/app/api/endpoints/ses-bounce-webhook/ses-bounce-webhook.ts new file mode 100644 index 00000000..781b5f86 --- /dev/null +++ b/app/api/app/api/endpoints/ses-bounce-webhook/ses-bounce-webhook.ts @@ -0,0 +1,87 @@ +/** + * Generated by orval v7.11.2 🍺 + * Do not edit manually. + * BetterInternship MOA API + * The official API of the BetterInternship MOA platform. + * OpenAPI spec version: 1.0 + */ +import { useMutation } from "@tanstack/react-query"; +import type { + MutationFunction, + QueryClient, + UseMutationOptions, + UseMutationResult, +} from "@tanstack/react-query"; + +import { preconfiguredAxiosFunction } from "../../../../preconfig.axios"; + +export const sesBounceWebhookControllerReceiveBounceEvent = (signal?: AbortSignal) => { + return preconfiguredAxiosFunction({ + url: `/api/webhooks/ses/bounce`, + method: "POST", + signal, + }); +}; + +export const getSesBounceWebhookControllerReceiveBounceEventMutationOptions = < + TError = unknown, + TContext = unknown, +>(options?: { + mutation?: UseMutationOptions< + Awaited>, + TError, + void, + TContext + >; +}): UseMutationOptions< + Awaited>, + TError, + void, + TContext +> => { + const mutationKey = ["sesBounceWebhookControllerReceiveBounceEvent"]; + const { mutation: mutationOptions } = options + ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey + ? options + : { ...options, mutation: { ...options.mutation, mutationKey } } + : { mutation: { mutationKey } }; + + const mutationFn: MutationFunction< + Awaited>, + void + > = () => { + return sesBounceWebhookControllerReceiveBounceEvent(); + }; + + return { mutationFn, ...mutationOptions }; +}; + +export type SesBounceWebhookControllerReceiveBounceEventMutationResult = NonNullable< + Awaited> +>; + +export type SesBounceWebhookControllerReceiveBounceEventMutationError = unknown; + +export const useSesBounceWebhookControllerReceiveBounceEvent = < + TError = unknown, + TContext = unknown, +>( + options?: { + mutation?: UseMutationOptions< + Awaited>, + TError, + void, + TContext + >; + }, + queryClient?: QueryClient +): UseMutationResult< + Awaited>, + TError, + void, + TContext +> => { + const mutationOptions = getSesBounceWebhookControllerReceiveBounceEventMutationOptions(options); + + return useMutation(mutationOptions, queryClient); +}; diff --git a/app/api/app/api/models/_signatoryForm.ts b/app/api/app/api/models/_signatoryForm.ts index 4736a37f..a839c592 100644 --- a/app/api/app/api/models/_signatoryForm.ts +++ b/app/api/app/api/models/_signatoryForm.ts @@ -21,4 +21,6 @@ export interface _SignatoryForm { first_viewed: string | null; /** @nullable */ signing_party_id: string | null; + /** @nullable */ + signing_keyring_id: string | null; } diff --git a/app/api/app/api/models/formField.ts b/app/api/app/api/models/formField.ts index a4124764..1551bd90 100644 --- a/app/api/app/api/models/formField.ts +++ b/app/api/app/api/models/formField.ts @@ -6,6 +6,7 @@ * OpenAPI spec version: 1.0 */ import type { FormFieldType } from "./formFieldType"; +import type { FormFieldRepeat } from "./formFieldRepeat"; import type { FormFieldSource } from "./formFieldSource"; import type { FormFieldValidatorIr } from "./formFieldValidatorIr"; @@ -17,6 +18,7 @@ export interface FormField { w: number; h: number; page: number; + repeat?: FormFieldRepeat; label: string; tooltip_label: string; shared: boolean; diff --git a/app/api/app/api/models/formFieldRepeat.ts b/app/api/app/api/models/formFieldRepeat.ts new file mode 100644 index 00000000..00fadd02 --- /dev/null +++ b/app/api/app/api/models/formFieldRepeat.ts @@ -0,0 +1,9 @@ +/** + * Generated by orval v7.11.2 🍺 + * Do not edit manually. + * BetterInternship MOA API + * The official API of the BetterInternship MOA platform. + * OpenAPI spec version: 1.0 + */ + +export type FormFieldRepeat = { [key: string]: unknown }; diff --git a/app/api/app/api/models/formProcessDto.ts b/app/api/app/api/models/formProcessDto.ts index fb4c4b9c..a2691ef8 100644 --- a/app/api/app/api/models/formProcessDto.ts +++ b/app/api/app/api/models/formProcessDto.ts @@ -6,10 +6,12 @@ * OpenAPI spec version: 1.0 */ import type { FormProcessDtoDisplayInformation } from "./formProcessDtoDisplayInformation"; +import type { FormProcessDtoFormInputs } from "./formProcessDtoFormInputs"; export interface FormProcessDto { my_signing_party_id: string; display_information: FormProcessDtoDisplayInformation; + form_inputs: FormProcessDtoFormInputs; form_label: string; form_name: string; form_version: number; diff --git a/app/api/app/api/models/formProcessDtoFormInputs.ts b/app/api/app/api/models/formProcessDtoFormInputs.ts new file mode 100644 index 00000000..cbf4279d --- /dev/null +++ b/app/api/app/api/models/formProcessDtoFormInputs.ts @@ -0,0 +1,9 @@ +/** + * Generated by orval v7.11.2 🍺 + * Do not edit manually. + * BetterInternship MOA API + * The official API of the BetterInternship MOA platform. + * OpenAPI spec version: 1.0 + */ + +export type FormProcessDtoFormInputs = { [key: string]: unknown }; diff --git a/app/api/app/api/models/formsControllerGetAlterRecipientContextInternallyParams.ts b/app/api/app/api/models/formsControllerGetAlterRecipientContextInternallyParams.ts new file mode 100644 index 00000000..05b0b657 --- /dev/null +++ b/app/api/app/api/models/formsControllerGetAlterRecipientContextInternallyParams.ts @@ -0,0 +1,12 @@ +/** + * Generated by orval v7.11.2 🍺 + * Do not edit manually. + * BetterInternship MOA API + * The official API of the BetterInternship MOA platform. + * OpenAPI spec version: 1.0 + */ + +export type FormsControllerGetAlterRecipientContextInternallyParams = { + apiKey: string; + eventId: string; +}; diff --git a/app/api/app/api/models/getExportForSignatoryDto.ts b/app/api/app/api/models/getExportForSignatoryDto.ts index ed3d8c68..1244aa2c 100644 --- a/app/api/app/api/models/getExportForSignatoryDto.ts +++ b/app/api/app/api/models/getExportForSignatoryDto.ts @@ -7,6 +7,5 @@ */ export interface GetExportForSignatoryDto { - signatoryId: string; formName: string; } diff --git a/app/api/app/api/models/index.ts b/app/api/app/api/models/index.ts index 66d6186f..5d14180c 100644 --- a/app/api/app/api/models/index.ts +++ b/app/api/app/api/models/index.ts @@ -72,6 +72,7 @@ export * from "./formBlockTextContent"; export * from "./formDocument"; export * from "./formDocumentResponse"; export * from "./formField"; +export * from "./formFieldRepeat"; export * from "./formFieldSource"; export * from "./formFieldType"; export * from "./formFieldValidatorIr"; @@ -130,6 +131,7 @@ export * from "./formProcess"; export * from "./formProcessDisplayInformation"; export * from "./formProcessDto"; export * from "./formProcessDtoDisplayInformation"; +export * from "./formProcessDtoFormInputs"; export * from "./formProcessDtoFormLabel"; export * from "./formProcessDtoLatestDocumentUrl"; export * from "./formProcessDtoPrefilledDocumentId"; @@ -146,6 +148,7 @@ export * from "./formSubscriber"; export * from "./formTemplate"; export * from "./formTemplatePreview"; export * from "./formTemplatesResponse"; +export * from "./formsControllerGetAlterRecipientContextInternallyParams"; export * from "./formsControllerGetFieldFromRegistryParams"; export * from "./formsControllerGetFormGroupTemplatesParams"; export * from "./formsControllerGetFormProcessParams"; diff --git a/app/api/index.ts b/app/api/index.ts index cf5bcfc0..fa074060 100644 --- a/app/api/index.ts +++ b/app/api/index.ts @@ -14,3 +14,4 @@ export * from "./app/api/endpoints/signatory-magic-link/signatory-magic-link"; export * from "./app/api/endpoints/form-groups/form-groups"; export * from "./app/api/endpoints/form-sync/form-sync"; export * from "./app/api/endpoints/process-callback/process-callback"; +export * from "./app/api/endpoints/ses-bounce-webhook/ses-bounce-webhook"; diff --git a/app/api/spec.json b/app/api/spec.json index 2af66d65..1b831622 100644 --- a/app/api/spec.json +++ b/app/api/spec.json @@ -1 +1 @@ -{"openapi":"3.0.0","paths":{"/api":{"get":{"operationId":"AppController_getApi","parameters":[],"responses":{"200":{"description":""}},"tags":["App"]}},"/api/email-test":{"post":{"operationId":"AppController_testEmail","parameters":[],"responses":{"201":{"description":""}},"tags":["App"]}},"/api/health":{"get":{"operationId":"AppController_getHealth","parameters":[],"responses":{"200":{"description":""}},"tags":["App"]}},"/api/callback":{"post":{"operationId":"ProcessCallbackController_processCallback","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProcessCallbackDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormFilloutProcessResult"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["ProcessCallback"]}},"/api/callback/__internal":{"post":{"operationId":"ProcessCallbackController_internalProcessCallback","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormFilloutProcessResult"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["ProcessCallback"]}},"/api/auth/self":{"post":{"operationId":"AuthController_entitySelf","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SelfEntityResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["Auth"]}},"/api/auth/public/register-company":{"post":{"operationId":"AuthPublicRegisterCompany","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateCompanyDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BaseResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"summary":"","tags":["Auth","Auth"]}},"/api/auth/login":{"post":{"operationId":"AuthController_signIn","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginEntityDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BaseResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["Auth"]}},"/api/auth/logout":{"post":{"operationId":"AuthController_signOut","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BaseResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["Auth"]}},"/api/auth/school/login":{"post":{"operationId":"AuthController_schoolSignIn","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginSchoolDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BaseResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["Auth"]}},"/api/auth/school/self":{"post":{"operationId":"AuthController_schoolSelf","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SelfSchoolResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["Auth"]}},"/api/auth/school/logout":{"post":{"operationId":"AuthController_schoolSignOut","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BaseResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["Auth"]}},"/api/auth/docs/login/request":{"post":{"operationId":"AuthController_signatoryLoginRequest","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignatoryRequestOtpDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignatoryRequestOtpResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["Auth"]}},"/api/auth/docs/login/verify":{"post":{"operationId":"AuthController_signatoryLoginVerify","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignatoryVerifyOtpDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BaseResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["Auth"]}},"/api/auth/docs/logout":{"post":{"operationId":"AuthController_signatorySignOut","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BaseResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["Auth"]}},"/api/docs/auth/magic-link":{"get":{"operationId":"SignatoryMagicLinkController_magicLinkLogin","parameters":[{"name":"id","required":true,"in":"query","schema":{"type":"string"}},{"name":"hash","required":true,"in":"query","schema":{"type":"string"}},{"name":"redirect","required":true,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MagicLinkResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["SignatoryMagicLink"]}},"/api/entities/list":{"get":{"operationId":"EntitiesController_getList","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntitiesResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["Entities"]}},"/api/entities/me":{"get":{"operationId":"EntitiesController_getSelf","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["Entities"]}},"/api/entities/reconsider":{"post":{"operationId":"EntitiesController_reconsider","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReconsiderEntityDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BaseResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["Entities"]}},"/api/school/entities/my-partners":{"get":{"operationId":"SchoolEntitiesController_getMyPartners","parameters":[{"name":"offset","required":true,"in":"query","schema":{"type":"number"}},{"name":"limit","required":true,"in":"query","schema":{"type":"number"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntitiesResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["SchoolEntities"]}},"/api/school/entities/requests":{"get":{"operationId":"SchoolEntitiesController_getMyRequests","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RequestsResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["SchoolEntities"]}},"/api/school/entities/requests/{id}":{"get":{"operationId":"SchoolEntitiesController_getRequest","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RequestsResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["SchoolEntities"]}},"/api/school/entities/requests/{id}/approve":{"post":{"operationId":"SchoolEntitiesController_approveRequest","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewEntityRequestReplyDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BaseResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["SchoolEntities"]}},"/api/school/entities/requests/{id}/deny":{"post":{"operationId":"SchoolEntitiesController_denyRequest","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewEntityRequestReplyDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BaseResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["SchoolEntities"]}},"/api/school/entities/blacklist/{entityId}":{"post":{"operationId":"SchoolEntitiesController_blacklistEntity","parameters":[{"name":"entityId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BaseResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["SchoolEntities"]}},"/api/school/entities/{id}":{"get":{"operationId":"SchoolEntitiesController_getAPartner","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["SchoolEntities"]}},"/api/school/entities":{"post":{"operationId":"SchoolEntitiesController_createCompany","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateCompanyDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["SchoolEntities"]}},"/api/school/moa/mine":{"get":{"operationId":"SchoolMoaController_getMine","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MoaRequestsResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["SchoolMoa"]}},"/api/school/moa/thread/{id}":{"get":{"operationId":"SchoolMoaController_getOneThread","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MoaThreadResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["SchoolMoa"]}},"/api/school/moa/history/{id}":{"get":{"operationId":"SchoolMoaController_getOneHistory","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MoaHistoryResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["SchoolMoa"]}},"/api/school/moa/{id}":{"get":{"operationId":"SchoolMoaController_getOne","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MoaRequestResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["SchoolMoa"]}},"/api/school/moa/{id}/deny":{"post":{"operationId":"SchoolMoaController_deny","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MoaDenyDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BaseResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["SchoolMoa"]}},"/api/school/moa/{id}/respond":{"post":{"operationId":"SchoolMoaController_respond","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MoaRespondDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BaseResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["SchoolMoa"]}},"/api/school/moa/sign-custom":{"post":{"operationId":"SchoolMoaController_signApprovedCustom","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignCustomMoaRequestDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewCustomMoaRequestResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["SchoolMoa"]}},"/api/entity/moa/mine":{"get":{"operationId":"EntityMoaController_getMine","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MoaRequestsResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["EntityMoa"]}},"/api/entity/moa/me/latest":{"get":{"operationId":"EntityMoaController_getLatestMoaRequest","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MoaRequestResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["EntityMoa"]}},"/api/entity/moa/request":{"post":{"operationId":"EntityMoaController_requestNewStandard","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewStandardMoaRequestDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewStandardMoaRequestResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["EntityMoa"]}},"/api/entity/moa/thread/{id}":{"get":{"operationId":"EntityMoaController_getOneThread","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MoaThreadResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["EntityMoa"]}},"/api/entity/moa/thread/{id}/document":{"get":{"operationId":"EntityMoaController_getOneThreadLatestDocument","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MoaDocumentThreadResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["EntityMoa"]}},"/api/entity/moa/request-custom":{"post":{"operationId":"EntityMoaController_requestNewCustom","parameters":[],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/NewCustomMoaRequestDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewCustomMoaRequestResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["EntityMoa"]}},"/api/entity/moa/{id}/respond":{"post":{"operationId":"EntityMoaController_respond","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/MoaRespondDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BaseResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["EntityMoa"]}},"/api/docs/query/{code}":{"get":{"operationId":"DocsController_getByVerificationCode","parameters":[{"name":"code","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QueryDocResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["Docs"]}},"/api/docs/moa/{id}":{"get":{"operationId":"DocsController_getMoaSignedDocument","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QueryMoaResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["Docs"]}},"/api/docs/student-moa":{"post":{"operationId":"DocsController_pushStudentMoa","parameters":[],"responses":{"201":{"description":""}},"tags":["Docs"]}},"/api/docs/student-moa/{id}":{"get":{"operationId":"DocsController_getStudentMoa","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""}},"tags":["Docs"]}},"/api/docs/entity-forms":{"get":{"operationId":"DocsController_getEntityForms","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignatoryFormtemplatesResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["Docs"]}},"/api/schools/me":{"get":{"operationId":"SchoolsController_getSelfAccount","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SchoolAccountResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["Schools"]}},"/api/schools/own":{"get":{"operationId":"SchoolsController_getSelfSchool","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SchoolResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["Schools"]}},"/api/schools/company-requests":{"get":{"operationId":"SchoolsController_listCompanyRequests","parameters":[{"name":"offset","required":true,"in":"query","schema":{"type":"number"}},{"name":"limit","required":true,"in":"query","schema":{"type":"number"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RequestsResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["Schools"]}},"/api/schools/company-requests/{entityId}":{"get":{"operationId":"SchoolsController_getCompanyRequestForEntity","parameters":[{"name":"entityId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RequestsResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["Schools"]}},"/api/schools/active-moas":{"get":{"operationId":"SchoolsController_listActiveMoas","parameters":[{"name":"offset","required":true,"in":"query","schema":{"type":"number"}},{"name":"limit","required":true,"in":"query","schema":{"type":"number"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntitiesResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["Schools"]}},"/api/schools/stats/active-moas":{"get":{"operationId":"SchoolsController_countActiveMoas","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CountResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["Schools"]}},"/api/schools/stats/pending-moas":{"get":{"operationId":"SchoolsController_countPendingMoas","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CountResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["Schools"]}},"/api/schools/stats/active-entities":{"get":{"operationId":"SchoolsController_countActiveEntities","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CountResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["Schools"]}},"/api/schools/stats/registered-entities":{"get":{"operationId":"SchoolsController_countRegisteredEntities","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CountResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["Schools"]}},"/api/entity/schools/my-partners":{"get":{"operationId":"EntitySchoolsController_getMyPartners","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SchoolsResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["EntitySchools"]}},"/api/forms/registry":{"get":{"operationId":"FormsController_getRegistry","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormRegistryResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["Forms"]}},"/api/forms/form-templates":{"get":{"operationId":"FormsController_getFormGroupTemplates","parameters":[{"name":"formGroupId","required":true,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormTemplatesResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["Forms"]}},"/api/forms/last-updated/__internal":{"get":{"operationId":"FormsController_getFormTemplatesLastUpdated","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BaseResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["Forms"]}},"/api/forms/form-metadata":{"get":{"operationId":"FormsController_getRegistryFormMetadata","parameters":[{"name":"name","required":true,"in":"query","schema":{"type":"string"}},{"name":"version","required":true,"in":"query","schema":{"type":"number"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormMetadataResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["Forms"]}},"/api/forms/form-document":{"get":{"operationId":"FormsController_getRegistryFormDocument","parameters":[{"name":"name","required":true,"in":"query","schema":{"type":"string"}},{"name":"version","required":true,"in":"query","schema":{"type":"number"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormDocumentResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["Forms"]}},"/api/forms/form-latest":{"get":{"operationId":"FormsController_getLatestFormDocumentAndMetadata","parameters":[{"name":"name","required":true,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormLatestResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["Forms"]}},"/api/forms/register-form":{"post":{"operationId":"FormsController_registerForm","parameters":[],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/RegisterFormSchemaDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BaseResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["Forms"]}},"/api/forms/fields":{"get":{"operationId":"FormsController_getFieldRegistry","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FieldRegistryResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["Forms"]}},"/api/forms/add-field":{"post":{"operationId":"FormsController_registerField","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegisterFieldDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BaseResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["Forms"]}},"/api/forms/edit-field":{"post":{"operationId":"FormsController_updateField","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateFieldDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BaseResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["Forms"]}},"/api/forms/field":{"get":{"operationId":"FormsController_getFieldFromRegistry","parameters":[{"name":"id","required":true,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FieldRequestResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["Forms"]}},"/api/forms/process":{"get":{"operationId":"FormsController_getFormProcess","parameters":[{"name":"formProcessId","required":true,"in":"query","schema":{"type":"string"}},{"name":"signingPartyId","required":true,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormProcessResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["Forms"]}},"/api/forms/continue":{"post":{"operationId":"FormsController_continueFormProcess","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContinueFormDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BaseResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["Forms"]}},"/api/forms/signature-image":{"post":{"operationId":"FormsController_uploadSignatureImage","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadSignatureImageDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadSignatureImageResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["Forms"]}},"/api/forms/signature-image/__internal":{"post":{"operationId":"FormsController_uploadSignatureImageInternally","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadSignatureImageResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["Forms"]}},"/api/forms/reject":{"post":{"operationId":"FormsController_rejectFormProcess","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RejectFormDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BaseResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["Forms"]}},"/api/forms/cancel":{"post":{"operationId":"FormsController_cancelFormProcess","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CancelFormDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BaseResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["Forms"]}},"/api/forms/cancel/__internal":{"post":{"operationId":"FormsController_cancelFormProcessInternally","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BaseResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["Forms"]}},"/api/forms/resend/__internal":{"post":{"operationId":"FormsController_resendFormProcessInternally","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BaseResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["Forms"]}},"/api/forms/initiate":{"post":{"operationId":"FormsController_initiateFormProcess","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InitiateFormDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BaseResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["Forms"]}},"/api/forms/initiate/__internal":{"post":{"operationId":"FormsController_initiateFormProcessInternally","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BaseResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["Forms"]}},"/api/forms/fillout":{"post":{"operationId":"FormsController_filloutFormProcess","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InitiateFormDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProcessResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["Forms"]}},"/api/forms/fillout/__internal":{"post":{"operationId":"FormsController_filloutFormProcessInternally","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BaseResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["Forms"]}},"/api/forms/test-generate":{"post":{"operationId":"FormsController_generateTestForm","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InitiateFormDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BaseResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["Forms"]}},"/api/forms/bulk-processes":{"post":{"operationId":"FormsController_getBulkFormProcesses","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetExportForSignatoryDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExportableFormsResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["Forms"]}},"/api/forms/mark-first-viewed":{"post":{"operationId":"FormsController_markFormAsFirstViewed","parameters":[{"name":"formProcessId","required":true,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BaseResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["Forms"]}},"/api/forms/alter-recipient":{"post":{"operationId":"FormsController_alterRecipient","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlterRecipientEmailDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BaseResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["Forms"]}},"/api/form-groups":{"get":{"operationId":"FormGroupsController_getAllFormGroups","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BaseResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["FormGroups"]},"post":{"operationId":"FormGroupsController_createFormGroup","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateFormGroupDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BaseResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["FormGroups"]}},"/api/form-groups/{id}":{"get":{"operationId":"FormGroupsController_getFormGroupById","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BaseResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["FormGroups"]}},"/api/form-groups/assign-coordinator":{"post":{"operationId":"FormGroupsController_assignCoordinatorToFormGroup","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssignCoordinatorToFormGroupDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BaseResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["FormGroups"]}},"/api/form-groups/me/reset-code":{"post":{"operationId":"FormGroupsController_resetOwnFormGroupCode","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormGroupIdDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BaseResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["FormGroups"]}},"/api/form-groups/reset-code":{"post":{"operationId":"FormGroupsController_resetFormGroupCode","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormGroupIdDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BaseResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["FormGroups"]}},"/api/form-groups/add-form":{"post":{"operationId":"FormGroupsController_addFormToGroup","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddFormToGroupDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BaseResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["FormGroups"]}},"/api/form-groups/remove-form":{"post":{"operationId":"FormGroupsController_removeFormFromGroup","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RemoveFormFromGroupDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BaseResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["FormGroups"]}},"/api/form-sync/compare":{"get":{"operationId":"FormSyncController_compareFormVersions","parameters":[],"responses":{"200":{"description":""}},"tags":["FormSync"]}},"/api/form-sync/sync":{"post":{"operationId":"FormSyncController_syncAllForms","parameters":[],"responses":{"201":{"description":""}},"tags":["FormSync"]}},"/api/form-sync/sync-single":{"post":{"operationId":"FormSyncController_syncSingleForm","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SyncSingleFormDto"}}}},"responses":{"201":{"description":""}},"tags":["FormSync"]}},"/api/signatory/me/form-group/__internal":{"post":{"operationId":"SignatoryController_getSignatoryFormGroup","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BaseResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["Signatory"]}},"/api/signatory/create/__internal":{"post":{"operationId":"SignatoryController_createAccountInternally","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateSignatoryResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["Signatory"]}},"/api/signatory/me":{"get":{"operationId":"SignatoryController_getSelf","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignatorySelfResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["Signatory"]},"put":{"operationId":"SignatoryController_updateSelf","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateSignatoryDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BaseResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["Signatory"]}},"/api/signatory/me/signature/__internal":{"post":{"operationId":"SignatoryController_getSignatureInternally","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BaseResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["Signatory"]}},"/api/signatory/me/forms":{"get":{"operationId":"SignatoryController_getSignedDocumentsBySignatory","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignatorySignedFormsResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["Signatory"]}},"/api/signatory/me/forms/__internal":{"post":{"operationId":"SignatoryController_getSignedDocumentsBySignatoryInternally","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignatorySignedFormsResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["Signatory"]}},"/api/signatory/me/form-groups":{"get":{"operationId":"SignatoryController_getSignatoryFormGroups","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignatoryFormGroupsResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["Signatory"]}},"/api/signatory/me/form-group/clear":{"post":{"operationId":"SignatoryController_clearFormGroupMembers","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormGroupIdDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BaseResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["Signatory"]}},"/api/signatory/me/form-group/remove":{"post":{"operationId":"SignatoryController_removeFormGroupMember","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormGroupRemoveMemberDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BaseResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["Signatory"]}},"/api/signatory/me/form-group/{id}":{"get":{"operationId":"SignatoryController_getSignatoryFormGroupMembers","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignatoryFormGroupMembersResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["Signatory"]}},"/api/signatory/me/form-settings":{"post":{"operationId":"SignatoryController_getSignatoryFormSettings","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetSignatoryFormSettingsRequest"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetSignatoryFormSettingsResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["Signatory"]},"put":{"operationId":"SignatoryController_setSignatoryFormSettings","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetSignatoryFormSettingsRequest"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BaseResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["Signatory"]}}},"info":{"title":"BetterInternship MOA API","description":"The official API of the BetterInternship MOA platform.","version":"1.0","contact":{}},"tags":[],"servers":[],"components":{"schemas":{"ProcessCallbackDto":{"type":"object","properties":{}},"FormFilloutProcessResult":{"type":"object","properties":{}},"ErrorResponse":{"type":"object","properties":{"success":{"type":"boolean"},"status":{"type":"number"},"message":{"type":"string"}},"required":["success","status","message"]},"SelfEntityResponse":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"entity":{"type":"object"}},"required":["success","message","entity"]},"ContactDto":{"type":"object","properties":{"name":{"type":"string"},"phone":{"type":"string"},"email":{"type":"string"}},"required":["name","phone","email"]},"ProfileDto":{"type":"object","properties":{"acceptsNonUniversityInterns":{"type":"boolean"},"ongoingMoaWithDlsu":{"type":"boolean"}}},"CreateCompanyDto":{"type":"object","properties":{"display_name":{"type":"string"},"legal_name":{"type":"string"},"office_location":{"type":"string"},"industry":{"type":"string"},"contact":{"$ref":"#/components/schemas/ContactDto"},"profile":{"$ref":"#/components/schemas/ProfileDto"},"password":{"type":"string"},"type":{"type":"string"}},"required":["display_name","legal_name","office_location","industry","contact","password"]},"BaseResponse":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}},"required":["success","message"]},"LoginEntityDto":{"type":"object","properties":{"legal_entity_name":{"type":"string"},"password":{"type":"string"}},"required":["legal_entity_name","password"]},"LoginSchoolDto":{"type":"object","properties":{"email":{"type":"string"},"password":{"type":"string"}},"required":["email","password"]},"SelfSchoolResponse":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"school":{"type":"object"},"schoolAccount":{"type":"object"}},"required":["success","message","school","schoolAccount"]},"SignatoryRequestOtpDto":{"type":"object","properties":{"email":{"type":"string"}},"required":["email"]},"SignatoryRequestOtpResponse":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"resendIn":{"type":"number"},"ttl":{"type":"number"}},"required":["success","message","resendIn","ttl"]},"SignatoryVerifyOtpDto":{"type":"object","properties":{"email":{"type":"string"},"code":{"type":"string"}},"required":["email","code"]},"MagicLinkResponse":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"redirect":{"type":"string"}},"required":["success","message","redirect"]},"PublicEntityDto":{"type":"object","properties":{"id":{"type":"string"},"display_name":{"type":"object","nullable":true},"legal_identifier":{"type":"string"},"type":{"type":"object"},"contact_name":{"type":"object"},"contact_email":{"type":"object"},"contact_phone":{"type":"object"},"address":{"type":"object"}},"required":["id","display_name","legal_identifier","type"]},"EntitiesResponse":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"entities":{"type":"array","items":{"$ref":"#/components/schemas/PublicEntityDto"}}},"required":["success","message","entities"]},"EntityResponse":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"entity":{"$ref":"#/components/schemas/PublicEntityDto"}},"required":["success","message","entity"]},"ReconsiderEntityDto":{"type":"object","properties":{"school_id":{"type":"string"}},"required":["school_id"]},"RequestsResponse":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"requests":{"type":"array","items":{"type":"string"}}},"required":["success","message","requests"]},"NewEntityRequestReplyDto":{"type":"object","properties":{"reason":{"type":"string"}},"required":["reason"]},"MoaRequestsResponse":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"requests":{"type":"array","items":{"type":"string"}}},"required":["success","message","requests"]},"MoaThreadResponse":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"messages":{"type":"array","items":{"type":"string"}}},"required":["success","message","messages"]},"MoaHistoryResponse":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"history":{"type":"object"}},"required":["success","message","history"]},"MoaRequestResponse":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"request":{"type":"object"}},"required":["success","message","request"]},"MoaDenyDto":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"]},"MoaRespondDto":{"type":"object","properties":{"message":{"type":"string"},"revised_moa":{"type":"string","format":"binary"}},"required":["message"]},"SignCustomMoaRequestDto":{"type":"object","properties":{"entity_id":{"type":"string"},"request_id":{"type":"string"},"additional_form_schema":{"type":"array","items":{"type":"string"}}},"required":["entity_id","request_id","additional_form_schema"]},"NewCustomMoaRequestResponse":{"type":"object","properties":{"requestId":{"type":"string"}},"required":["requestId"]},"NewStandardMoaRequestDto":{"type":"object","properties":{"school_id":{"type":"string"},"entity_signatory_name":{"type":"string"},"entity_signatory_title":{"type":"string"}},"required":["school_id","entity_signatory_name","entity_signatory_title"]},"NewStandardMoaRequestResponse":{"type":"object","properties":{"moaRequestId":{"type":"string"},"signedDocumentId":{"type":"string"},"verificationCode":{"type":"string"}},"required":["moaRequestId","signedDocumentId","verificationCode"]},"MoaDocumentThreadResponse":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"document_url":{"type":"string"}},"required":["success","message","document_url"]},"NewCustomMoaRequestDto":{"type":"object","properties":{"school_id":{"type":"string"},"reason":{"type":"string"},"proposed_moa":{"type":"string","format":"binary"}},"required":["school_id","reason","proposed_moa"]},"SignatoryInfo":{"type":"object","properties":{"name":{"type":"string"},"title":{"type":"string"},"email":{"type":"string"},"signedDate":{"type":"number"}},"required":["name","title","email","signedDate"]},"SignedOrExternalDocumentInfo":{"type":"object","properties":{"url":{"type":"string"},"signatories":{"type":"array","items":{"$ref":"#/components/schemas/SignatoryInfo"}},"date_made":{"type":"string"},"form_label":{"type":"string"},"uploaded_at":{"type":"string"},"verification_code":{"type":"string"},"code":{"type":"string"}},"required":["url","signatories","date_made","form_label","uploaded_at","verification_code","code"]},"QueryDocResponse":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"signedDocument":{"$ref":"#/components/schemas/SignedOrExternalDocumentInfo"}},"required":["success","message","signedDocument"]},"QueryMoaResponse":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"signedDocument":{"type":"object"}},"required":["success","message","signedDocument"]},"SignatoryFormtemplatesResponse":{"type":"object","properties":{"forms":{"type":"array","items":{"type":"string"}}},"required":["forms"]},"SchoolAccountResponse":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"school_account":{"type":"object"}},"required":["success","message","school_account"]},"SchoolResponse":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"school":{"type":"object"}},"required":["success","message","school"]},"CountResponse":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"count":{"type":"number"}},"required":["success","message","count"]},"SchoolsResponse":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"schools":{"type":"array","items":{"type":"string"}}},"required":["success","message","schools"]},"FormRegistryEntry":{"type":"object","properties":{"name":{"type":"string"},"label":{"type":"string"},"version":{"type":"number"},"time_generated":{"format":"date-time","type":"string"}},"required":["name","label","version","time_generated"]},"FormRegistryResponse":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"registry":{"type":"array","items":{"$ref":"#/components/schemas/FormRegistryEntry"}}},"required":["success","message","registry"]},"FormTemplatePreview":{"type":"object","properties":{"formDocument":{"type":"string"},"formVersion":{"type":"number"},"formName":{"type":"string"},"formLabel":{"type":"string"},"time_generated":{"format":"date-time","type":"string"}},"required":["formDocument","formVersion","formName","formLabel","time_generated"]},"FormTemplatesResponse":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"formTemplates":{"type":"array","items":{"$ref":"#/components/schemas/FormTemplatePreview"}}},"required":["success","message","formTemplates"]},"FormField":{"type":"object","properties":{"field":{"type":"string"},"type":{"type":"string","enum":["text","signature"]},"x":{"type":"number"},"y":{"type":"number"},"w":{"type":"number"},"h":{"type":"number"},"page":{"type":"number"},"label":{"type":"string"},"tooltip_label":{"type":"string"},"shared":{"type":"boolean"},"signing_party_id":{"type":"string"},"source":{"type":"string","enum":["auto","prefill","derived","manual"]},"prefiller":{"type":"string"},"validator":{"type":"string"},"validator_ir":{"type":"object","nullable":true,"additionalProperties":false,"required":["version","baseType","rules"],"properties":{"version":{"type":"number","enum":[0]},"baseType":{"type":"string","enum":["text","number","date","enum","array","checkbox","textarea","time","email","phone","url","signature","image"]},"rules":{"type":"array","items":{"oneOf":[{"type":"object","additionalProperties":false,"required":["kind"],"properties":{"kind":{"type":"string","enum":["required","email","url","plainText","titleCase","trim","dateOnOrAfterToday","dateOnOrBeforeToday"]},"message":{"type":"string"}}},{"type":"object","additionalProperties":false,"required":["kind","value"],"properties":{"kind":{"type":"string","enum":["minLength","maxLength","min","max","minTime","maxTime"]},"value":{"oneOf":[{"type":"number"},{"type":"string"}]},"message":{"type":"string"}}},{"type":"object","additionalProperties":false,"required":["kind","pattern"],"properties":{"kind":{"type":"string","enum":["regex"]},"pattern":{"type":"string"},"flags":{"type":"string"},"message":{"type":"string"}}},{"type":"object","additionalProperties":false,"required":["kind","options"],"properties":{"kind":{"type":"string","enum":["enum"]},"options":{"type":"array","items":{"type":"string"}},"message":{"type":"string"}}},{"type":"object","additionalProperties":false,"required":["kind","options"],"properties":{"kind":{"type":"string","enum":["array"]},"options":{"type":"array","items":{"type":"string"}},"minItems":{"type":"number"},"maxItems":{"type":"number"},"minMessage":{"type":"string"},"maxMessage":{"type":"string"}}},{"type":"object","additionalProperties":false,"required":["kind","isoDate"],"properties":{"kind":{"type":"string","enum":["minDate","maxDate"]},"isoDate":{"type":"string"},"message":{"type":"string"}}},{"type":"object","additionalProperties":false,"required":["kind","field"],"properties":{"kind":{"type":"string","enum":["dateOnOrAfterField","dateOnOrBeforeField"]},"field":{"type":"string"},"message":{"type":"string"}}}]}},"mode":{"type":"string","enum":["builder","imported"]},"importStatus":{"type":"string","enum":["exact","partial","custom"]},"unmapped":{"type":"array","items":{"type":"string"}}}}},"required":["field","type","x","y","w","h","page","label","tooltip_label","shared","signing_party_id","source","prefiller","validator"]},"FormPhantomField":{"type":"object","properties":{"field":{"type":"string"},"type":{"type":"string","enum":["text","signature"]},"label":{"type":"string"},"tooltip_label":{"type":"string"},"shared":{"type":"boolean"},"signing_party_id":{"type":"string"},"source":{"type":"string","enum":["auto","prefill","derived","manual"]},"prefiller":{"type":"string"},"validator":{"type":"string"},"validator_ir":{"type":"object","nullable":true,"additionalProperties":false,"required":["version","baseType","rules"],"properties":{"version":{"type":"number","enum":[0]},"baseType":{"type":"string","enum":["text","number","date","enum","array","checkbox","textarea","time","email","phone","url","signature","image"]},"rules":{"type":"array","items":{"oneOf":[{"type":"object","additionalProperties":false,"required":["kind"],"properties":{"kind":{"type":"string","enum":["required","email","url","plainText","titleCase","trim","dateOnOrAfterToday","dateOnOrBeforeToday"]},"message":{"type":"string"}}},{"type":"object","additionalProperties":false,"required":["kind","value"],"properties":{"kind":{"type":"string","enum":["minLength","maxLength","min","max","minTime","maxTime"]},"value":{"oneOf":[{"type":"number"},{"type":"string"}]},"message":{"type":"string"}}},{"type":"object","additionalProperties":false,"required":["kind","pattern"],"properties":{"kind":{"type":"string","enum":["regex"]},"pattern":{"type":"string"},"flags":{"type":"string"},"message":{"type":"string"}}},{"type":"object","additionalProperties":false,"required":["kind","options"],"properties":{"kind":{"type":"string","enum":["enum"]},"options":{"type":"array","items":{"type":"string"}},"message":{"type":"string"}}},{"type":"object","additionalProperties":false,"required":["kind","options"],"properties":{"kind":{"type":"string","enum":["array"]},"options":{"type":"array","items":{"type":"string"}},"minItems":{"type":"number"},"maxItems":{"type":"number"},"minMessage":{"type":"string"},"maxMessage":{"type":"string"}}},{"type":"object","additionalProperties":false,"required":["kind","isoDate"],"properties":{"kind":{"type":"string","enum":["minDate","maxDate"]},"isoDate":{"type":"string"},"message":{"type":"string"}}},{"type":"object","additionalProperties":false,"required":["kind","field"],"properties":{"kind":{"type":"string","enum":["dateOnOrAfterField","dateOnOrBeforeField"]},"field":{"type":"string"},"message":{"type":"string"}}}]}},"mode":{"type":"string","enum":["builder","imported"]},"importStatus":{"type":"string","enum":["exact","partial","custom"]},"unmapped":{"type":"array","items":{"type":"string"}}}}},"required":["field","type","label","tooltip_label","shared","signing_party_id","source","prefiller","validator"]},"FormBlock":{"type":"object","properties":{"_id":{"type":"string"},"block_type":{"type":"string","enum":["header","paragraph","form_field","form_phantom_field","divider","image"]},"order":{"type":"number"},"signing_party_id":{"type":"string"},"text_content":{"type":"string"},"field_schema":{"$ref":"#/components/schemas/FormField"},"phantom_field_schema":{"$ref":"#/components/schemas/FormPhantomField"}},"required":["_id","block_type","order","signing_party_id","field_schema","phantom_field_schema"]},"Form":{"type":"object","properties":{"blocks":{"type":"array","items":{"$ref":"#/components/schemas/FormBlock"}}},"required":["blocks"]},"FormSignatory":{"type":"object","properties":{"name":{"type":"string"},"email":{"type":"string"},"title":{"type":"string"},"honorific":{"type":"string"}},"required":["email"]},"SignatorySource":{"type":"object","properties":{"_id":{"type":"string"},"label":{"type":"string"},"tooltip_label":{"type":"string"}},"required":["_id","label","tooltip_label"]},"FormSigningParty":{"type":"object","properties":{"_id":{"type":"string"},"order":{"type":"number"},"signatory_title":{"type":"string"},"signatory_account":{"$ref":"#/components/schemas/FormSignatory"},"signatory_source":{"$ref":"#/components/schemas/SignatorySource"},"signed":{"type":"boolean"}},"required":["_id","order","signatory_title","signatory_account","signatory_source"]},"FormSubscriber":{"type":"object","properties":{"name":{"type":"string"},"email":{"type":"string"}},"required":["name","email"]},"FormMetadata":{"type":"object","properties":{"schema_version":{"type":"number"},"name":{"type":"string"},"label":{"type":"string"},"version":{"type":"number"},"schema":{"$ref":"#/components/schemas/Form"},"signing_parties":{"type":"array","items":{"$ref":"#/components/schemas/FormSigningParty"}},"subscribers":{"type":"array","items":{"$ref":"#/components/schemas/FormSubscriber"}}},"required":["schema_version","name","label","version","schema","signing_parties"]},"FormMetadataResponse":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"formMetadata":{"$ref":"#/components/schemas/FormMetadata"}},"required":["success","message","formMetadata"]},"FormDocumentResponse":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"formDocument":{"type":"string"}},"required":["success","message","formDocument"]},"FormTemplate":{"type":"object","properties":{"name":{"type":"string"},"label":{"type":"string"},"version":{"type":"number"},"base_document_id":{"type":"string"},"time_generated":{"type":"string"}},"required":["name","label","version","base_document_id","time_generated"]},"FormLatestResponse":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"formMetadata":{"$ref":"#/components/schemas/FormMetadata"},"formTemplate":{"$ref":"#/components/schemas/FormTemplate"},"formVersion":{"type":"number"},"documentUrl":{"type":"string"}},"required":["success","message","formMetadata","formTemplate","formVersion","documentUrl"]},"RegisterFormSchemaDto":{"type":"object","properties":{"name":{"type":"string"},"label":{"type":"string"},"schema_version":{"type":"number"},"schema":{"$ref":"#/components/schemas/Form"},"signing_parties":{"type":"array","items":{"$ref":"#/components/schemas/FormSigningParty"}},"subscribers":{"type":"array","items":{"$ref":"#/components/schemas/FormSubscriber"}},"base_document":{"type":"string","format":"binary"}},"required":["name","label","schema_version","schema","signing_parties"]},"FieldRegistryEntryDetails":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["text","signature"]},"party":{"type":"string"},"source":{"type":"string","enum":["auto","prefill","derived","manual"]},"tag":{"type":"string"},"shared":{"type":"boolean"},"preset":{"type":"string"},"prefiller":{"type":"string","nullable":true},"tooltip_label":{"type":"string","nullable":true},"validator":{"type":"string","nullable":true},"validator_ir":{"type":"object","nullable":true,"additionalProperties":false,"required":["version","baseType","rules"],"properties":{"version":{"type":"number","enum":[0]},"baseType":{"type":"string","enum":["text","number","date","enum","array","checkbox","textarea","time","email","phone","url","signature","image"]},"rules":{"type":"array","items":{"oneOf":[{"type":"object","additionalProperties":false,"required":["kind"],"properties":{"kind":{"type":"string","enum":["required","email","url","plainText","titleCase","trim","dateOnOrAfterToday","dateOnOrBeforeToday"]},"message":{"type":"string"}}},{"type":"object","additionalProperties":false,"required":["kind","value"],"properties":{"kind":{"type":"string","enum":["minLength","maxLength","min","max","minTime","maxTime"]},"value":{"oneOf":[{"type":"number"},{"type":"string"}]},"message":{"type":"string"}}},{"type":"object","additionalProperties":false,"required":["kind","pattern"],"properties":{"kind":{"type":"string","enum":["regex"]},"pattern":{"type":"string"},"flags":{"type":"string"},"message":{"type":"string"}}},{"type":"object","additionalProperties":false,"required":["kind","options"],"properties":{"kind":{"type":"string","enum":["enum"]},"options":{"type":"array","items":{"type":"string"}},"message":{"type":"string"}}},{"type":"object","additionalProperties":false,"required":["kind","options"],"properties":{"kind":{"type":"string","enum":["array"]},"options":{"type":"array","items":{"type":"string"}},"minItems":{"type":"number"},"maxItems":{"type":"number"},"minMessage":{"type":"string"},"maxMessage":{"type":"string"}}},{"type":"object","additionalProperties":false,"required":["kind","isoDate"],"properties":{"kind":{"type":"string","enum":["minDate","maxDate"]},"isoDate":{"type":"string"},"message":{"type":"string"}}},{"type":"object","additionalProperties":false,"required":["kind","field"],"properties":{"kind":{"type":"string","enum":["dateOnOrAfterField","dateOnOrBeforeField"]},"field":{"type":"string"},"message":{"type":"string"}}}]}},"mode":{"type":"string","enum":["builder","imported"]},"importStatus":{"type":"string","enum":["exact","partial","custom"]},"unmapped":{"type":"array","items":{"type":"string"}}}},"field_schema_defaults":{"type":"object","nullable":true,"additionalProperties":false,"properties":{"w":{"type":"number"},"h":{"type":"number"},"wrap":{"type":"boolean"},"size":{"type":"number"},"align_h":{"type":"string","enum":["left","center","right"]},"align_v":{"type":"string","enum":["top","middle","bottom"]},"font":{"type":"string"}}},"is_phantom":{"type":"boolean"}},"required":["id","name","label","type","party","source","tag","shared","preset","prefiller","tooltip_label","validator","field_schema_defaults","is_phantom"]},"FieldRegistryResponse":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"fields":{"type":"array","items":{"$ref":"#/components/schemas/FieldRegistryEntryDetails"}}},"required":["success","message","fields"]},"RegisterFieldDto":{"type":"object","properties":{"name":{"type":"string"},"label":{"type":"string"},"type":{"type":"string"},"party":{"type":"string"},"shared":{"type":"boolean"},"source":{"type":"string","enum":["auto","prefill","derived","manual"]},"tag":{"type":"string"},"prefiller":{"type":"string","nullable":true},"preset":{"type":"string"},"tooltip_label":{"type":"string","nullable":true},"validator":{"type":"string","nullable":true},"validator_ir":{"type":"object","nullable":true,"additionalProperties":false,"required":["version","baseType","rules"],"properties":{"version":{"type":"number","enum":[0]},"baseType":{"type":"string","enum":["text","number","date","enum","array","checkbox","textarea","time","email","phone","url","signature","image"]},"rules":{"type":"array","items":{"oneOf":[{"type":"object","additionalProperties":false,"required":["kind"],"properties":{"kind":{"type":"string","enum":["required","email","url","plainText","titleCase","trim","dateOnOrAfterToday","dateOnOrBeforeToday"]},"message":{"type":"string"}}},{"type":"object","additionalProperties":false,"required":["kind","value"],"properties":{"kind":{"type":"string","enum":["minLength","maxLength","min","max","minTime","maxTime"]},"value":{"oneOf":[{"type":"number"},{"type":"string"}]},"message":{"type":"string"}}},{"type":"object","additionalProperties":false,"required":["kind","pattern"],"properties":{"kind":{"type":"string","enum":["regex"]},"pattern":{"type":"string"},"flags":{"type":"string"},"message":{"type":"string"}}},{"type":"object","additionalProperties":false,"required":["kind","options"],"properties":{"kind":{"type":"string","enum":["enum"]},"options":{"type":"array","items":{"type":"string"}},"message":{"type":"string"}}},{"type":"object","additionalProperties":false,"required":["kind","options"],"properties":{"kind":{"type":"string","enum":["array"]},"options":{"type":"array","items":{"type":"string"}},"minItems":{"type":"number"},"maxItems":{"type":"number"},"minMessage":{"type":"string"},"maxMessage":{"type":"string"}}},{"type":"object","additionalProperties":false,"required":["kind","isoDate"],"properties":{"kind":{"type":"string","enum":["minDate","maxDate"]},"isoDate":{"type":"string"},"message":{"type":"string"}}},{"type":"object","additionalProperties":false,"required":["kind","field"],"properties":{"kind":{"type":"string","enum":["dateOnOrAfterField","dateOnOrBeforeField"]},"field":{"type":"string"},"message":{"type":"string"}}}]}},"mode":{"type":"string","enum":["builder","imported"]},"importStatus":{"type":"string","enum":["exact","partial","custom"]},"unmapped":{"type":"array","items":{"type":"string"}}}},"field_schema_defaults":{"type":"object","nullable":true,"additionalProperties":false,"properties":{"w":{"type":"number"},"h":{"type":"number"},"wrap":{"type":"boolean"},"size":{"type":"number"},"align_h":{"type":"string","enum":["left","center","right"]},"align_v":{"type":"string","enum":["top","middle","bottom"]},"font":{"type":"string"}}},"is_phantom":{"type":"boolean"}},"required":["name","label","type","party","shared","source","tag","prefiller","preset","tooltip_label","validator","field_schema_defaults","is_phantom"]},"UpdateFieldDto":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"label":{"type":"string"},"type":{"type":"string"},"shared":{"type":"boolean"},"party":{"type":"string"},"source":{"type":"string","enum":["auto","prefill","derived","manual"]},"tag":{"type":"string"},"prefiller":{"type":"string","nullable":true},"preset":{"type":"string"},"tooltip_label":{"type":"string","nullable":true},"validator":{"type":"string","nullable":true},"validator_ir":{"type":"object","nullable":true,"additionalProperties":false,"required":["version","baseType","rules"],"properties":{"version":{"type":"number","enum":[0]},"baseType":{"type":"string","enum":["text","number","date","enum","array","checkbox","textarea","time","email","phone","url","signature","image"]},"rules":{"type":"array","items":{"oneOf":[{"type":"object","additionalProperties":false,"required":["kind"],"properties":{"kind":{"type":"string","enum":["required","email","url","plainText","titleCase","trim","dateOnOrAfterToday","dateOnOrBeforeToday"]},"message":{"type":"string"}}},{"type":"object","additionalProperties":false,"required":["kind","value"],"properties":{"kind":{"type":"string","enum":["minLength","maxLength","min","max","minTime","maxTime"]},"value":{"oneOf":[{"type":"number"},{"type":"string"}]},"message":{"type":"string"}}},{"type":"object","additionalProperties":false,"required":["kind","pattern"],"properties":{"kind":{"type":"string","enum":["regex"]},"pattern":{"type":"string"},"flags":{"type":"string"},"message":{"type":"string"}}},{"type":"object","additionalProperties":false,"required":["kind","options"],"properties":{"kind":{"type":"string","enum":["enum"]},"options":{"type":"array","items":{"type":"string"}},"message":{"type":"string"}}},{"type":"object","additionalProperties":false,"required":["kind","options"],"properties":{"kind":{"type":"string","enum":["array"]},"options":{"type":"array","items":{"type":"string"}},"minItems":{"type":"number"},"maxItems":{"type":"number"},"minMessage":{"type":"string"},"maxMessage":{"type":"string"}}},{"type":"object","additionalProperties":false,"required":["kind","isoDate"],"properties":{"kind":{"type":"string","enum":["minDate","maxDate"]},"isoDate":{"type":"string"},"message":{"type":"string"}}},{"type":"object","additionalProperties":false,"required":["kind","field"],"properties":{"kind":{"type":"string","enum":["dateOnOrAfterField","dateOnOrBeforeField"]},"field":{"type":"string"},"message":{"type":"string"}}}]}},"mode":{"type":"string","enum":["builder","imported"]},"importStatus":{"type":"string","enum":["exact","partial","custom"]},"unmapped":{"type":"array","items":{"type":"string"}}}},"field_schema_defaults":{"type":"object","nullable":true,"additionalProperties":false,"properties":{"w":{"type":"number"},"h":{"type":"number"},"wrap":{"type":"boolean"},"size":{"type":"number"},"align_h":{"type":"string","enum":["left","center","right"]},"align_v":{"type":"string","enum":["top","middle","bottom"]},"font":{"type":"string"}}},"is_phantom":{"type":"boolean"}},"required":["id","name","label","type","shared","party","source","tag","prefiller","preset","tooltip_label","validator","field_schema_defaults","is_phantom"]},"FieldRequestResponse":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"field":{"$ref":"#/components/schemas/FieldRegistryEntryDetails"}},"required":["success","message","field"]},"FormProcessDto":{"type":"object","properties":{"my_signing_party_id":{"type":"string"},"display_information":{"type":"object"},"form_label":{"type":"string"},"form_name":{"type":"string"},"form_version":{"type":"number"},"schema_version":{"type":"number"},"latest_document_url":{"type":"string"},"prefilled_document_id":{"type":"string"},"signed_document_id":{"type":"string"},"timestamp":{"type":"string"}},"required":["my_signing_party_id","display_information","form_label","form_name","form_version","schema_version","latest_document_url","prefilled_document_id","signed_document_id","timestamp"]},"FormProcessResponse":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"formProcess":{"$ref":"#/components/schemas/FormProcessDto"}},"required":["success","message","formProcess"]},"ContinueFormDto":{"type":"object","properties":{"formProcessId":{"type":"string"},"supposedSigningPartyId":{"type":"string"},"values":{"type":"object"},"audit":{"type":"object"}},"required":["formProcessId","supposedSigningPartyId","values","audit"]},"UploadSignatureImageDto":{"type":"object","properties":{"source":{"type":"string","enum":["draw","upload"]},"dataUrl":{"type":"string"}},"required":["source","dataUrl"]},"SignatureImageAssetDto":{"type":"object","properties":{"filename":{"type":"string"},"url":{"type":"string"},"mimeType":{"type":"string"},"sizeBytes":{"type":"number"}},"required":["filename","url","mimeType","sizeBytes"]},"UploadSignatureImageResponse":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"value":{"type":"string"},"asset":{"$ref":"#/components/schemas/SignatureImageAssetDto"}},"required":["success","message","value","asset"]},"RejectFormDto":{"type":"object","properties":{"formProcessId":{"type":"string"},"reason":{"type":"string"}},"required":["formProcessId","reason"]},"CancelFormDto":{"type":"object","properties":{"formProcessId":{"type":"string"}},"required":["formProcessId"]},"InitiateFormDto":{"type":"object","properties":{"formName":{"type":"string"},"formVersion":{"type":"number"},"values":{"type":"object"},"audit":{"type":"object"}},"required":["formName","formVersion","values","audit"]},"ProcessResponse":{"type":"object","properties":{"processId":{"type":"string"},"processName":{"type":"string"},"processCallbackUrl":{"type":"string"},"success":{"type":"boolean"},"message":{"type":"string"}},"required":["processId","processName","processCallbackUrl","success","message"]},"GetExportForSignatoryDto":{"type":"object","properties":{"signatoryId":{"type":"string"},"formName":{"type":"string"}},"required":["signatoryId","formName"]},"ExportableFormDto":{"type":"object","properties":{"id":{"type":"string"},"status":{"type":"string"},"inputs":{"type":"object"},"signingParties":{"type":"array","items":{"type":"object"}},"formLabel":{"type":"string"},"formName":{"type":"string"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"documentUrl":{"type":"string","nullable":true}},"required":["id","status","inputs","signingParties","formLabel","formName","createdAt","updatedAt","documentUrl"]},"ExportableFormsResponse":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"processes":{"type":"array","items":{"$ref":"#/components/schemas/ExportableFormDto"}}},"required":["success","message","processes"]},"AlterRecipientEmailDto":{"type":"object","properties":{"formProcessId":{"type":"string"},"supposedSigningPartyId":{"type":"string"},"recipientEmail":{"type":"string"}},"required":["formProcessId","supposedSigningPartyId","recipientEmail"]},"CreateFormGroupDto":{"type":"object","properties":{"name":{"type":"string"}}},"AssignCoordinatorToFormGroupDto":{"type":"object","properties":{"formGroupId":{"type":"string"},"email":{"type":"string"}},"required":["formGroupId","email"]},"FormGroupIdDto":{"type":"object","properties":{"formGroupId":{"type":"string"}},"required":["formGroupId"]},"AddFormToGroupDto":{"type":"object","properties":{"formNames":{"type":"array","items":{"type":"string"}},"groupId":{"type":"string"}},"required":["formNames","groupId"]},"RemoveFormFromGroupDto":{"type":"object","properties":{"formNames":{"type":"array","items":{"type":"string"}},"groupId":{"type":"string"}},"required":["formNames","groupId"]},"SyncSingleFormDto":{"type":"object","properties":{"formName":{"type":"string","description":"The name of the form to sync","example":"internship-agreement"}},"required":["formName"]},"CreateSignatoryResponse":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}},"required":["success","message"]},"SignatoryProfile":{"type":"object","properties":{"id":{"type":"string"},"email":{"type":"string"},"name":{"type":"string"},"title":{"type":"object"},"honorific":{"type":"object"},"autofill":{"type":"object"},"signatureImage":{"type":"object"},"autoFormPermissions":{"type":"object"},"coordinatorId":{"type":"string"},"god":{"type":"boolean"}},"required":["id","email","name","title","honorific","autofill","signatureImage","autoFormPermissions"]},"SignatorySelfResponse":{"type":"object","properties":{"profile":{"$ref":"#/components/schemas/SignatoryProfile"}},"required":["profile"]},"SigningParty":{"type":"object","properties":{"_id":{"type":"string"},"order":{"type":"number"},"signatory_account":{"$ref":"#/components/schemas/FormSignatory"},"signed":{"type":"boolean"}},"required":["_id","order","signatory_account","signed"]},"FormProcess":{"type":"object","properties":{"prefilled_document_id":{"type":"string"},"pending_document_id":{"type":"string"},"signed_document_id":{"type":"string"},"latest_document_url":{"type":"string"},"rejection_reason":{"type":"string"},"display_information":{"type":"object","additionalProperties":{"type":"string"}},"signing_parties":{"type":"array","items":{"$ref":"#/components/schemas/SigningParty"}}},"required":["prefilled_document_id","pending_document_id","signed_document_id","latest_document_url","rejection_reason","display_information","signing_parties"]},"_SignatoryForm":{"type":"object","properties":{"id":{"type":"string"},"form_label":{"type":"string"},"form_name":{"type":"string"},"form_process_id":{"type":"string"},"form_process_status":{"type":"string"},"signatory_id":{"type":"string"},"rejection_response":{"type":"string"},"timestamp":{"type":"string"},"form_processes":{"$ref":"#/components/schemas/FormProcess"},"first_viewed":{"type":"string","format":"date-time","nullable":true},"signing_party_id":{"type":"string","nullable":true}},"required":["id","form_label","form_name","form_process_id","form_process_status","signatory_id","rejection_response","timestamp","form_processes","first_viewed","signing_party_id"]},"SignatorySignedFormsResponse":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"forms":{"type":"array","items":{"$ref":"#/components/schemas/_SignatoryForm"}}},"required":["success","message","forms"]},"_FormGroup":{"type":"object","properties":{"id":{"type":"string"},"description":{"type":"string"},"code":{"type":"string","nullable":true},"coordinator_id":{"type":"string","nullable":true},"forms":{"type":"array","items":{"type":"string"}}},"required":["id","description","code","coordinator_id","forms"]},"SignatoryFormGroupsResponse":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"formGroups":{"type":"array","items":{"$ref":"#/components/schemas/_FormGroup"}}},"required":["success","message","formGroups"]},"FormGroupRemoveMemberDto":{"type":"object","properties":{"formGroupId":{"type":"string"},"userId":{"type":"string"}},"required":["formGroupId","userId"]},"_FormGroupMember":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"email":{"type":"string"},"joinedAt":{"type":"string"}},"required":["id","name","email","joinedAt"]},"SignatoryFormGroupMembersResponse":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"formGroupMembers":{"type":"array","items":{"$ref":"#/components/schemas/_FormGroupMember"}}},"required":["success","message","formGroupMembers"]},"GetSignatoryFormSettingsRequest":{"type":"object","properties":{"formName":{"type":"string"}},"required":["formName"]},"GetSignatoryFormSettingsResponse":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"settings":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/FormSettings"}}},"required":["success","message","settings"]},"SetSignatoryFormSettingsRequest":{"type":"object","properties":{"formName":{"type":"string"},"settings":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/FormSettings"}},"audit":{"type":"object"}},"required":["formName","settings","audit"]},"UpdateSignatoryDto":{"type":"object","properties":{}}}}} \ No newline at end of file +{"openapi":"3.0.0","paths":{"/api":{"get":{"operationId":"AppController_getApi","parameters":[],"responses":{"200":{"description":""}},"tags":["App"]}},"/api/email-test":{"post":{"operationId":"AppController_testEmail","parameters":[],"responses":{"201":{"description":""}},"tags":["App"]}},"/api/health":{"get":{"operationId":"AppController_getHealth","parameters":[],"responses":{"200":{"description":""}},"tags":["App"]}},"/api/callback":{"post":{"operationId":"ProcessCallbackController_processCallback","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProcessCallbackDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormFilloutProcessResult"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["ProcessCallback"]}},"/api/callback/__internal":{"post":{"operationId":"ProcessCallbackController_internalProcessCallback","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormFilloutProcessResult"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["ProcessCallback"]}},"/api/auth/docs/login/request":{"post":{"operationId":"AuthController_signatoryLoginRequest","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignatoryRequestOtpDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignatoryRequestOtpResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["Auth"]}},"/api/auth/docs/login/verify":{"post":{"operationId":"AuthController_signatoryLoginVerify","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignatoryVerifyOtpDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BaseResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["Auth"]}},"/api/auth/docs/logout":{"post":{"operationId":"AuthController_signatorySignOut","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BaseResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["Auth"]}},"/api/docs/auth/magic-link":{"get":{"operationId":"SignatoryMagicLinkController_magicLinkLogin","parameters":[{"name":"id","required":true,"in":"query","schema":{"type":"string"}},{"name":"hash","required":true,"in":"query","schema":{"type":"string"}},{"name":"redirect","required":true,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MagicLinkResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["SignatoryMagicLink"]}},"/api/docs/query/{code}":{"get":{"operationId":"DocsController_getByVerificationCode","parameters":[{"name":"code","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QueryDocResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["Docs"]}},"/api/docs/resolve-url":{"post":{"operationId":"DocsController_resolveUrl","parameters":[],"responses":{"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["Docs"]}},"/api/docs/resolve-url/__internal":{"post":{"operationId":"DocsController_resolveUrlInternal","parameters":[],"responses":{"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["Docs"]}},"/api/docs/entity-forms":{"get":{"operationId":"DocsController_getEntityForms","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignatoryFormtemplatesResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["Docs"]}},"/api/forms/registry":{"get":{"operationId":"FormsController_getRegistry","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormRegistryResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["Forms"]}},"/api/forms/form-templates":{"get":{"operationId":"FormsController_getFormGroupTemplates","parameters":[{"name":"formGroupId","required":true,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormTemplatesResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["Forms"]}},"/api/forms/last-updated/__internal":{"get":{"operationId":"FormsController_getFormTemplatesLastUpdated","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BaseResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["Forms"]}},"/api/forms/form-metadata":{"get":{"operationId":"FormsController_getRegistryFormMetadata","parameters":[{"name":"name","required":true,"in":"query","schema":{"type":"string"}},{"name":"version","required":true,"in":"query","schema":{"type":"number"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormMetadataResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["Forms"]}},"/api/forms/form-document":{"get":{"operationId":"FormsController_getRegistryFormDocument","parameters":[{"name":"name","required":true,"in":"query","schema":{"type":"string"}},{"name":"version","required":true,"in":"query","schema":{"type":"number"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormDocumentResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["Forms"]}},"/api/forms/form-latest":{"get":{"operationId":"FormsController_getLatestFormDocumentAndMetadata","parameters":[{"name":"name","required":true,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormLatestResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["Forms"]}},"/api/forms/register-form":{"post":{"operationId":"FormsController_registerForm","parameters":[],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/RegisterFormSchemaDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BaseResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["Forms"]}},"/api/forms/fields":{"get":{"operationId":"FormsController_getFieldRegistry","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FieldRegistryResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["Forms"]}},"/api/forms/add-field":{"post":{"operationId":"FormsController_registerField","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegisterFieldDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BaseResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["Forms"]}},"/api/forms/edit-field":{"post":{"operationId":"FormsController_updateField","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateFieldDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BaseResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["Forms"]}},"/api/forms/field":{"get":{"operationId":"FormsController_getFieldFromRegistry","parameters":[{"name":"id","required":true,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FieldRequestResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["Forms"]}},"/api/forms/process":{"get":{"operationId":"FormsController_getFormProcess","parameters":[{"name":"formProcessId","required":true,"in":"query","schema":{"type":"string"}},{"name":"signingPartyId","required":true,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormProcessResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["Forms"]}},"/api/forms/continue":{"post":{"operationId":"FormsController_continueFormProcess","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContinueFormDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BaseResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["Forms"]}},"/api/forms/signature-image":{"post":{"operationId":"FormsController_uploadSignatureImage","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadSignatureImageDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadSignatureImageResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["Forms"]}},"/api/forms/signature-image/__internal":{"post":{"operationId":"FormsController_uploadSignatureImageInternally","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadSignatureImageResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["Forms"]}},"/api/forms/reject":{"post":{"operationId":"FormsController_rejectFormProcess","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RejectFormDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BaseResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["Forms"]}},"/api/forms/cancel":{"post":{"operationId":"FormsController_cancelFormProcess","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CancelFormDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BaseResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["Forms"]}},"/api/forms/cancel/__internal":{"post":{"operationId":"FormsController_cancelFormProcessInternally","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BaseResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["Forms"]}},"/api/forms/resend/__internal":{"post":{"operationId":"FormsController_resendFormProcessInternally","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BaseResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["Forms"]}},"/api/forms/initiate":{"post":{"operationId":"FormsController_initiateFormProcess","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InitiateFormDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BaseResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["Forms"]}},"/api/forms/initiate/__internal":{"post":{"operationId":"FormsController_initiateFormProcessInternally","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BaseResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["Forms"]}},"/api/forms/fillout":{"post":{"operationId":"FormsController_filloutFormProcess","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InitiateFormDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProcessResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["Forms"]}},"/api/forms/fillout/__internal":{"post":{"operationId":"FormsController_filloutFormProcessInternally","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BaseResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["Forms"]}},"/api/forms/test-generate":{"post":{"operationId":"FormsController_generateTestForm","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InitiateFormDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BaseResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["Forms"]}},"/api/forms/bulk-processes":{"post":{"operationId":"FormsController_getBulkFormProcesses","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetExportForSignatoryDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExportableFormsResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["Forms"]}},"/api/forms/mark-first-viewed":{"post":{"operationId":"FormsController_markFormAsFirstViewed","parameters":[{"name":"formProcessId","required":true,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BaseResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["Forms"]}},"/api/forms/alter-recipient":{"post":{"operationId":"FormsController_alterRecipient","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlterRecipientEmailDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BaseResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["Forms"]}},"/api/forms/edit-recipient/__internal":{"get":{"operationId":"FormsController_getAlterRecipientContextInternally","parameters":[{"name":"apiKey","required":true,"in":"query","schema":{"type":"string"}},{"name":"eventId","required":true,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BaseResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["Forms"]},"post":{"operationId":"FormsController_alterRecipientInternally","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BaseResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["Forms"]}},"/api/form-groups":{"get":{"operationId":"FormGroupsController_getAllFormGroups","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BaseResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["FormGroups"]},"post":{"operationId":"FormGroupsController_createFormGroup","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateFormGroupDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BaseResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["FormGroups"]}},"/api/form-groups/{id}":{"get":{"operationId":"FormGroupsController_getFormGroupById","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BaseResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["FormGroups"]}},"/api/form-groups/assign-coordinator":{"post":{"operationId":"FormGroupsController_assignCoordinatorToFormGroup","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssignCoordinatorToFormGroupDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BaseResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["FormGroups"]}},"/api/form-groups/me/reset-code":{"post":{"operationId":"FormGroupsController_resetOwnFormGroupCode","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormGroupIdDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BaseResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["FormGroups"]}},"/api/form-groups/reset-code":{"post":{"operationId":"FormGroupsController_resetFormGroupCode","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormGroupIdDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BaseResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["FormGroups"]}},"/api/form-groups/add-form":{"post":{"operationId":"FormGroupsController_addFormToGroup","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddFormToGroupDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BaseResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["FormGroups"]}},"/api/form-groups/remove-form":{"post":{"operationId":"FormGroupsController_removeFormFromGroup","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RemoveFormFromGroupDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BaseResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["FormGroups"]}},"/api/form-sync/compare":{"get":{"operationId":"FormSyncController_compareFormVersions","parameters":[],"responses":{"200":{"description":""}},"tags":["FormSync"]}},"/api/form-sync/sync":{"post":{"operationId":"FormSyncController_syncAllForms","parameters":[],"responses":{"201":{"description":""}},"tags":["FormSync"]}},"/api/form-sync/sync-single":{"post":{"operationId":"FormSyncController_syncSingleForm","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SyncSingleFormDto"}}}},"responses":{"201":{"description":""}},"tags":["FormSync"]}},"/api/webhooks/ses/bounce":{"post":{"operationId":"SesBounceWebhookController_receiveBounceEvent","parameters":[],"responses":{"201":{"description":""}},"tags":["SesBounceWebhook"]}},"/api/signatory/me/form-group/__internal":{"post":{"operationId":"SignatoryController_getSignatoryFormGroup","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BaseResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["Signatory"]}},"/api/signatory/create/__internal":{"post":{"operationId":"SignatoryController_createAccountInternally","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateSignatoryResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["Signatory"]}},"/api/signatory/me":{"get":{"operationId":"SignatoryController_getSelf","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignatorySelfResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["Signatory"]},"put":{"operationId":"SignatoryController_updateSelf","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateSignatoryDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BaseResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["Signatory"]}},"/api/signatory/me/signature/__internal":{"post":{"operationId":"SignatoryController_getSignatureInternally","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BaseResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["Signatory"]}},"/api/signatory/me/forms":{"get":{"operationId":"SignatoryController_getSignedDocumentsBySignatory","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignatorySignedFormsResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["Signatory"]}},"/api/signatory/me/forms/__internal":{"post":{"operationId":"SignatoryController_getSignedDocumentsBySignatoryInternally","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignatorySignedFormsResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["Signatory"]}},"/api/signatory/me/form-groups":{"get":{"operationId":"SignatoryController_getSignatoryFormGroups","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignatoryFormGroupsResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["Signatory"]}},"/api/signatory/me/form-group/clear":{"post":{"operationId":"SignatoryController_clearFormGroupMembers","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormGroupIdDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BaseResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["Signatory"]}},"/api/signatory/me/form-group/remove":{"post":{"operationId":"SignatoryController_removeFormGroupMember","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormGroupRemoveMemberDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BaseResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["Signatory"]}},"/api/signatory/me/form-group/{id}":{"get":{"operationId":"SignatoryController_getSignatoryFormGroupMembers","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignatoryFormGroupMembersResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["Signatory"]}},"/api/signatory/me/form-settings":{"post":{"operationId":"SignatoryController_getSignatoryFormSettings","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetSignatoryFormSettingsRequest"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetSignatoryFormSettingsResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["Signatory"]},"put":{"operationId":"SignatoryController_setSignatoryFormSettings","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetSignatoryFormSettingsRequest"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BaseResponse"}}}},"400":{"description":"Error Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["Signatory"]}}},"info":{"title":"BetterInternship MOA API","description":"The official API of the BetterInternship MOA platform.","version":"1.0","contact":{}},"tags":[],"servers":[],"components":{"schemas":{"ProcessCallbackDto":{"type":"object","properties":{}},"FormFilloutProcessResult":{"type":"object","properties":{}},"ErrorResponse":{"type":"object","properties":{"success":{"type":"boolean"},"status":{"type":"number"},"message":{"type":"string"}},"required":["success","status","message"]},"SignatoryRequestOtpDto":{"type":"object","properties":{"email":{"type":"string"}},"required":["email"]},"SignatoryRequestOtpResponse":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"resendIn":{"type":"number"},"ttl":{"type":"number"}},"required":["success","message","resendIn","ttl"]},"SignatoryVerifyOtpDto":{"type":"object","properties":{"email":{"type":"string"},"code":{"type":"string"}},"required":["email","code"]},"BaseResponse":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}},"required":["success","message"]},"MagicLinkResponse":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"redirect":{"type":"string"}},"required":["success","message","redirect"]},"SignatoryInfo":{"type":"object","properties":{"name":{"type":"string"},"title":{"type":"string"},"email":{"type":"string"},"signedDate":{"type":"number"}},"required":["name","title","email","signedDate"]},"SignedOrExternalDocumentInfo":{"type":"object","properties":{"url":{"type":"string"},"signatories":{"type":"array","items":{"$ref":"#/components/schemas/SignatoryInfo"}},"date_made":{"type":"string"},"form_label":{"type":"string"},"uploaded_at":{"type":"string"},"verification_code":{"type":"string"},"code":{"type":"string"}},"required":["url","signatories","date_made","form_label","uploaded_at","verification_code","code"]},"QueryDocResponse":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"signedDocument":{"$ref":"#/components/schemas/SignedOrExternalDocumentInfo"}},"required":["success","message","signedDocument"]},"SignatoryFormtemplatesResponse":{"type":"object","properties":{"forms":{"type":"array","items":{"type":"string"}}},"required":["forms"]},"FormRegistryEntry":{"type":"object","properties":{"name":{"type":"string"},"label":{"type":"string"},"version":{"type":"number"},"time_generated":{"format":"date-time","type":"string"}},"required":["name","label","version","time_generated"]},"FormRegistryResponse":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"registry":{"type":"array","items":{"$ref":"#/components/schemas/FormRegistryEntry"}}},"required":["success","message","registry"]},"FormTemplatePreview":{"type":"object","properties":{"formDocument":{"type":"string"},"formVersion":{"type":"number"},"formName":{"type":"string"},"formLabel":{"type":"string"},"time_generated":{"format":"date-time","type":"string"}},"required":["formDocument","formVersion","formName","formLabel","time_generated"]},"FormTemplatesResponse":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"formTemplates":{"type":"array","items":{"$ref":"#/components/schemas/FormTemplatePreview"}}},"required":["success","message","formTemplates"]},"FormField":{"type":"object","properties":{"field":{"type":"string"},"type":{"type":"string","enum":["text","signature"]},"x":{"type":"number"},"y":{"type":"number"},"w":{"type":"number"},"h":{"type":"number"},"page":{"type":"number"},"repeat":{"type":"object"},"label":{"type":"string"},"tooltip_label":{"type":"string"},"shared":{"type":"boolean"},"signing_party_id":{"type":"string"},"source":{"type":"string","enum":["auto","prefill","derived","manual"]},"prefiller":{"type":"string"},"validator":{"type":"string"},"validator_ir":{"type":"object","nullable":true,"additionalProperties":false,"required":["version","baseType","rules"],"properties":{"version":{"type":"number","enum":[0]},"baseType":{"type":"string","enum":["text","number","date","enum","array","checkbox","textarea","time","email","phone","url","signature","image"]},"rules":{"type":"array","items":{"oneOf":[{"type":"object","additionalProperties":false,"required":["kind"],"properties":{"kind":{"type":"string","enum":["required","email","url","plainText","titleCase","trim","dateOnOrAfterToday","dateOnOrBeforeToday"]},"message":{"type":"string"}}},{"type":"object","additionalProperties":false,"required":["kind","value"],"properties":{"kind":{"type":"string","enum":["minLength","maxLength","min","max","minTime","maxTime"]},"value":{"oneOf":[{"type":"number"},{"type":"string"}]},"message":{"type":"string"}}},{"type":"object","additionalProperties":false,"required":["kind","pattern"],"properties":{"kind":{"type":"string","enum":["regex"]},"pattern":{"type":"string"},"flags":{"type":"string"},"message":{"type":"string"}}},{"type":"object","additionalProperties":false,"required":["kind","options"],"properties":{"kind":{"type":"string","enum":["enum"]},"options":{"type":"array","items":{"type":"string"}},"message":{"type":"string"}}},{"type":"object","additionalProperties":false,"required":["kind","options"],"properties":{"kind":{"type":"string","enum":["array"]},"options":{"type":"array","items":{"type":"string"}},"minItems":{"type":"number"},"maxItems":{"type":"number"},"minMessage":{"type":"string"},"maxMessage":{"type":"string"}}},{"type":"object","additionalProperties":false,"required":["kind","isoDate"],"properties":{"kind":{"type":"string","enum":["minDate","maxDate"]},"isoDate":{"type":"string"},"message":{"type":"string"}}},{"type":"object","additionalProperties":false,"required":["kind","field"],"properties":{"kind":{"type":"string","enum":["dateOnOrAfterField","dateOnOrBeforeField"]},"field":{"type":"string"},"message":{"type":"string"}}}]}},"mode":{"type":"string","enum":["builder","imported"]},"importStatus":{"type":"string","enum":["exact","partial","custom"]},"unmapped":{"type":"array","items":{"type":"string"}}}}},"required":["field","type","x","y","w","h","page","label","tooltip_label","shared","signing_party_id","source","prefiller","validator"]},"FormPhantomField":{"type":"object","properties":{"field":{"type":"string"},"type":{"type":"string","enum":["text","signature"]},"label":{"type":"string"},"tooltip_label":{"type":"string"},"shared":{"type":"boolean"},"signing_party_id":{"type":"string"},"source":{"type":"string","enum":["auto","prefill","derived","manual"]},"prefiller":{"type":"string"},"validator":{"type":"string"},"validator_ir":{"type":"object","nullable":true,"additionalProperties":false,"required":["version","baseType","rules"],"properties":{"version":{"type":"number","enum":[0]},"baseType":{"type":"string","enum":["text","number","date","enum","array","checkbox","textarea","time","email","phone","url","signature","image"]},"rules":{"type":"array","items":{"oneOf":[{"type":"object","additionalProperties":false,"required":["kind"],"properties":{"kind":{"type":"string","enum":["required","email","url","plainText","titleCase","trim","dateOnOrAfterToday","dateOnOrBeforeToday"]},"message":{"type":"string"}}},{"type":"object","additionalProperties":false,"required":["kind","value"],"properties":{"kind":{"type":"string","enum":["minLength","maxLength","min","max","minTime","maxTime"]},"value":{"oneOf":[{"type":"number"},{"type":"string"}]},"message":{"type":"string"}}},{"type":"object","additionalProperties":false,"required":["kind","pattern"],"properties":{"kind":{"type":"string","enum":["regex"]},"pattern":{"type":"string"},"flags":{"type":"string"},"message":{"type":"string"}}},{"type":"object","additionalProperties":false,"required":["kind","options"],"properties":{"kind":{"type":"string","enum":["enum"]},"options":{"type":"array","items":{"type":"string"}},"message":{"type":"string"}}},{"type":"object","additionalProperties":false,"required":["kind","options"],"properties":{"kind":{"type":"string","enum":["array"]},"options":{"type":"array","items":{"type":"string"}},"minItems":{"type":"number"},"maxItems":{"type":"number"},"minMessage":{"type":"string"},"maxMessage":{"type":"string"}}},{"type":"object","additionalProperties":false,"required":["kind","isoDate"],"properties":{"kind":{"type":"string","enum":["minDate","maxDate"]},"isoDate":{"type":"string"},"message":{"type":"string"}}},{"type":"object","additionalProperties":false,"required":["kind","field"],"properties":{"kind":{"type":"string","enum":["dateOnOrAfterField","dateOnOrBeforeField"]},"field":{"type":"string"},"message":{"type":"string"}}}]}},"mode":{"type":"string","enum":["builder","imported"]},"importStatus":{"type":"string","enum":["exact","partial","custom"]},"unmapped":{"type":"array","items":{"type":"string"}}}}},"required":["field","type","label","tooltip_label","shared","signing_party_id","source","prefiller","validator"]},"FormBlock":{"type":"object","properties":{"_id":{"type":"string"},"block_type":{"type":"string","enum":["header","paragraph","form_field","form_phantom_field","divider","image"]},"order":{"type":"number"},"signing_party_id":{"type":"string"},"text_content":{"type":"string"},"field_schema":{"$ref":"#/components/schemas/FormField"},"phantom_field_schema":{"$ref":"#/components/schemas/FormPhantomField"}},"required":["_id","block_type","order","signing_party_id","field_schema","phantom_field_schema"]},"Form":{"type":"object","properties":{"blocks":{"type":"array","items":{"$ref":"#/components/schemas/FormBlock"}}},"required":["blocks"]},"FormSignatory":{"type":"object","properties":{"name":{"type":"string"},"email":{"type":"string"},"title":{"type":"string"},"honorific":{"type":"string"}},"required":["email"]},"SignatorySource":{"type":"object","properties":{"_id":{"type":"string"},"label":{"type":"string"},"tooltip_label":{"type":"string"}},"required":["_id","label","tooltip_label"]},"FormSigningParty":{"type":"object","properties":{"_id":{"type":"string"},"order":{"type":"number"},"signatory_title":{"type":"string"},"signatory_account":{"$ref":"#/components/schemas/FormSignatory"},"signatory_source":{"$ref":"#/components/schemas/SignatorySource"},"signed":{"type":"boolean"}},"required":["_id","order","signatory_title","signatory_account","signatory_source"]},"FormSubscriber":{"type":"object","properties":{"name":{"type":"string"},"email":{"type":"string"}},"required":["name","email"]},"FormMetadata":{"type":"object","properties":{"schema_version":{"type":"number"},"name":{"type":"string"},"label":{"type":"string"},"version":{"type":"number"},"schema":{"$ref":"#/components/schemas/Form"},"signing_parties":{"type":"array","items":{"$ref":"#/components/schemas/FormSigningParty"}},"subscribers":{"type":"array","items":{"$ref":"#/components/schemas/FormSubscriber"}}},"required":["schema_version","name","label","version","schema","signing_parties"]},"FormMetadataResponse":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"formMetadata":{"$ref":"#/components/schemas/FormMetadata"}},"required":["success","message","formMetadata"]},"FormDocumentResponse":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"formDocument":{"type":"string"}},"required":["success","message","formDocument"]},"FormTemplate":{"type":"object","properties":{"name":{"type":"string"},"label":{"type":"string"},"version":{"type":"number"},"base_document_id":{"type":"string"},"time_generated":{"type":"string"}},"required":["name","label","version","base_document_id","time_generated"]},"FormLatestResponse":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"formMetadata":{"$ref":"#/components/schemas/FormMetadata"},"formTemplate":{"$ref":"#/components/schemas/FormTemplate"},"formVersion":{"type":"number"},"documentUrl":{"type":"string"}},"required":["success","message","formMetadata","formTemplate","formVersion","documentUrl"]},"RegisterFormSchemaDto":{"type":"object","properties":{"name":{"type":"string"},"label":{"type":"string"},"schema_version":{"type":"number"},"schema":{"$ref":"#/components/schemas/Form"},"signing_parties":{"type":"array","items":{"$ref":"#/components/schemas/FormSigningParty"}},"subscribers":{"type":"array","items":{"$ref":"#/components/schemas/FormSubscriber"}},"base_document":{"type":"string","format":"binary"}},"required":["name","label","schema_version","schema","signing_parties"]},"FieldRegistryEntryDetails":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["text","signature"]},"party":{"type":"string"},"source":{"type":"string","enum":["auto","prefill","derived","manual"]},"tag":{"type":"string"},"shared":{"type":"boolean"},"preset":{"type":"string"},"prefiller":{"type":"string","nullable":true},"tooltip_label":{"type":"string","nullable":true},"validator":{"type":"string","nullable":true},"validator_ir":{"type":"object","nullable":true,"additionalProperties":false,"required":["version","baseType","rules"],"properties":{"version":{"type":"number","enum":[0]},"baseType":{"type":"string","enum":["text","number","date","enum","array","checkbox","textarea","time","email","phone","url","signature","image"]},"rules":{"type":"array","items":{"oneOf":[{"type":"object","additionalProperties":false,"required":["kind"],"properties":{"kind":{"type":"string","enum":["required","email","url","plainText","titleCase","trim","dateOnOrAfterToday","dateOnOrBeforeToday"]},"message":{"type":"string"}}},{"type":"object","additionalProperties":false,"required":["kind","value"],"properties":{"kind":{"type":"string","enum":["minLength","maxLength","min","max","minTime","maxTime"]},"value":{"oneOf":[{"type":"number"},{"type":"string"}]},"message":{"type":"string"}}},{"type":"object","additionalProperties":false,"required":["kind","pattern"],"properties":{"kind":{"type":"string","enum":["regex"]},"pattern":{"type":"string"},"flags":{"type":"string"},"message":{"type":"string"}}},{"type":"object","additionalProperties":false,"required":["kind","options"],"properties":{"kind":{"type":"string","enum":["enum"]},"options":{"type":"array","items":{"type":"string"}},"message":{"type":"string"}}},{"type":"object","additionalProperties":false,"required":["kind","options"],"properties":{"kind":{"type":"string","enum":["array"]},"options":{"type":"array","items":{"type":"string"}},"minItems":{"type":"number"},"maxItems":{"type":"number"},"minMessage":{"type":"string"},"maxMessage":{"type":"string"}}},{"type":"object","additionalProperties":false,"required":["kind","isoDate"],"properties":{"kind":{"type":"string","enum":["minDate","maxDate"]},"isoDate":{"type":"string"},"message":{"type":"string"}}},{"type":"object","additionalProperties":false,"required":["kind","field"],"properties":{"kind":{"type":"string","enum":["dateOnOrAfterField","dateOnOrBeforeField"]},"field":{"type":"string"},"message":{"type":"string"}}}]}},"mode":{"type":"string","enum":["builder","imported"]},"importStatus":{"type":"string","enum":["exact","partial","custom"]},"unmapped":{"type":"array","items":{"type":"string"}}}},"field_schema_defaults":{"type":"object","nullable":true,"additionalProperties":false,"properties":{"w":{"type":"number"},"h":{"type":"number"},"wrap":{"type":"boolean"},"size":{"type":"number"},"align_h":{"type":"string","enum":["left","center","right"]},"align_v":{"type":"string","enum":["top","middle","bottom"]},"font":{"type":"string"}}},"is_phantom":{"type":"boolean"}},"required":["id","name","label","type","party","source","tag","shared","preset","prefiller","tooltip_label","validator","field_schema_defaults","is_phantom"]},"FieldRegistryResponse":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"fields":{"type":"array","items":{"$ref":"#/components/schemas/FieldRegistryEntryDetails"}}},"required":["success","message","fields"]},"RegisterFieldDto":{"type":"object","properties":{"name":{"type":"string"},"label":{"type":"string"},"type":{"type":"string"},"party":{"type":"string"},"shared":{"type":"boolean"},"source":{"type":"string","enum":["auto","prefill","derived","manual"]},"tag":{"type":"string"},"prefiller":{"type":"string","nullable":true},"preset":{"type":"string"},"tooltip_label":{"type":"string","nullable":true},"validator":{"type":"string","nullable":true},"validator_ir":{"type":"object","nullable":true,"additionalProperties":false,"required":["version","baseType","rules"],"properties":{"version":{"type":"number","enum":[0]},"baseType":{"type":"string","enum":["text","number","date","enum","array","checkbox","textarea","time","email","phone","url","signature","image"]},"rules":{"type":"array","items":{"oneOf":[{"type":"object","additionalProperties":false,"required":["kind"],"properties":{"kind":{"type":"string","enum":["required","email","url","plainText","titleCase","trim","dateOnOrAfterToday","dateOnOrBeforeToday"]},"message":{"type":"string"}}},{"type":"object","additionalProperties":false,"required":["kind","value"],"properties":{"kind":{"type":"string","enum":["minLength","maxLength","min","max","minTime","maxTime"]},"value":{"oneOf":[{"type":"number"},{"type":"string"}]},"message":{"type":"string"}}},{"type":"object","additionalProperties":false,"required":["kind","pattern"],"properties":{"kind":{"type":"string","enum":["regex"]},"pattern":{"type":"string"},"flags":{"type":"string"},"message":{"type":"string"}}},{"type":"object","additionalProperties":false,"required":["kind","options"],"properties":{"kind":{"type":"string","enum":["enum"]},"options":{"type":"array","items":{"type":"string"}},"message":{"type":"string"}}},{"type":"object","additionalProperties":false,"required":["kind","options"],"properties":{"kind":{"type":"string","enum":["array"]},"options":{"type":"array","items":{"type":"string"}},"minItems":{"type":"number"},"maxItems":{"type":"number"},"minMessage":{"type":"string"},"maxMessage":{"type":"string"}}},{"type":"object","additionalProperties":false,"required":["kind","isoDate"],"properties":{"kind":{"type":"string","enum":["minDate","maxDate"]},"isoDate":{"type":"string"},"message":{"type":"string"}}},{"type":"object","additionalProperties":false,"required":["kind","field"],"properties":{"kind":{"type":"string","enum":["dateOnOrAfterField","dateOnOrBeforeField"]},"field":{"type":"string"},"message":{"type":"string"}}}]}},"mode":{"type":"string","enum":["builder","imported"]},"importStatus":{"type":"string","enum":["exact","partial","custom"]},"unmapped":{"type":"array","items":{"type":"string"}}}},"field_schema_defaults":{"type":"object","nullable":true,"additionalProperties":false,"properties":{"w":{"type":"number"},"h":{"type":"number"},"wrap":{"type":"boolean"},"size":{"type":"number"},"align_h":{"type":"string","enum":["left","center","right"]},"align_v":{"type":"string","enum":["top","middle","bottom"]},"font":{"type":"string"}}},"is_phantom":{"type":"boolean"}},"required":["name","label","type","party","shared","source","tag","prefiller","preset","tooltip_label","validator","field_schema_defaults","is_phantom"]},"UpdateFieldDto":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"label":{"type":"string"},"type":{"type":"string"},"shared":{"type":"boolean"},"party":{"type":"string"},"source":{"type":"string","enum":["auto","prefill","derived","manual"]},"tag":{"type":"string"},"prefiller":{"type":"string","nullable":true},"preset":{"type":"string"},"tooltip_label":{"type":"string","nullable":true},"validator":{"type":"string","nullable":true},"validator_ir":{"type":"object","nullable":true,"additionalProperties":false,"required":["version","baseType","rules"],"properties":{"version":{"type":"number","enum":[0]},"baseType":{"type":"string","enum":["text","number","date","enum","array","checkbox","textarea","time","email","phone","url","signature","image"]},"rules":{"type":"array","items":{"oneOf":[{"type":"object","additionalProperties":false,"required":["kind"],"properties":{"kind":{"type":"string","enum":["required","email","url","plainText","titleCase","trim","dateOnOrAfterToday","dateOnOrBeforeToday"]},"message":{"type":"string"}}},{"type":"object","additionalProperties":false,"required":["kind","value"],"properties":{"kind":{"type":"string","enum":["minLength","maxLength","min","max","minTime","maxTime"]},"value":{"oneOf":[{"type":"number"},{"type":"string"}]},"message":{"type":"string"}}},{"type":"object","additionalProperties":false,"required":["kind","pattern"],"properties":{"kind":{"type":"string","enum":["regex"]},"pattern":{"type":"string"},"flags":{"type":"string"},"message":{"type":"string"}}},{"type":"object","additionalProperties":false,"required":["kind","options"],"properties":{"kind":{"type":"string","enum":["enum"]},"options":{"type":"array","items":{"type":"string"}},"message":{"type":"string"}}},{"type":"object","additionalProperties":false,"required":["kind","options"],"properties":{"kind":{"type":"string","enum":["array"]},"options":{"type":"array","items":{"type":"string"}},"minItems":{"type":"number"},"maxItems":{"type":"number"},"minMessage":{"type":"string"},"maxMessage":{"type":"string"}}},{"type":"object","additionalProperties":false,"required":["kind","isoDate"],"properties":{"kind":{"type":"string","enum":["minDate","maxDate"]},"isoDate":{"type":"string"},"message":{"type":"string"}}},{"type":"object","additionalProperties":false,"required":["kind","field"],"properties":{"kind":{"type":"string","enum":["dateOnOrAfterField","dateOnOrBeforeField"]},"field":{"type":"string"},"message":{"type":"string"}}}]}},"mode":{"type":"string","enum":["builder","imported"]},"importStatus":{"type":"string","enum":["exact","partial","custom"]},"unmapped":{"type":"array","items":{"type":"string"}}}},"field_schema_defaults":{"type":"object","nullable":true,"additionalProperties":false,"properties":{"w":{"type":"number"},"h":{"type":"number"},"wrap":{"type":"boolean"},"size":{"type":"number"},"align_h":{"type":"string","enum":["left","center","right"]},"align_v":{"type":"string","enum":["top","middle","bottom"]},"font":{"type":"string"}}},"is_phantom":{"type":"boolean"}},"required":["id","name","label","type","shared","party","source","tag","prefiller","preset","tooltip_label","validator","field_schema_defaults","is_phantom"]},"FieldRequestResponse":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"field":{"$ref":"#/components/schemas/FieldRegistryEntryDetails"}},"required":["success","message","field"]},"FormProcessDto":{"type":"object","properties":{"my_signing_party_id":{"type":"string"},"display_information":{"type":"object"},"form_inputs":{"type":"object"},"form_label":{"type":"string"},"form_name":{"type":"string"},"form_version":{"type":"number"},"schema_version":{"type":"number"},"latest_document_url":{"type":"string"},"prefilled_document_id":{"type":"string"},"signed_document_id":{"type":"string"},"timestamp":{"type":"string"}},"required":["my_signing_party_id","display_information","form_inputs","form_label","form_name","form_version","schema_version","latest_document_url","prefilled_document_id","signed_document_id","timestamp"]},"FormProcessResponse":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"formProcess":{"$ref":"#/components/schemas/FormProcessDto"}},"required":["success","message","formProcess"]},"ContinueFormDto":{"type":"object","properties":{"formProcessId":{"type":"string"},"supposedSigningPartyId":{"type":"string"},"values":{"type":"object"},"audit":{"type":"object"}},"required":["formProcessId","supposedSigningPartyId","values","audit"]},"UploadSignatureImageDto":{"type":"object","properties":{"source":{"type":"string","enum":["draw","upload"]},"dataUrl":{"type":"string"}},"required":["source","dataUrl"]},"SignatureImageAssetDto":{"type":"object","properties":{"filename":{"type":"string"},"url":{"type":"string"},"mimeType":{"type":"string"},"sizeBytes":{"type":"number"}},"required":["filename","url","mimeType","sizeBytes"]},"UploadSignatureImageResponse":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"value":{"type":"string"},"asset":{"$ref":"#/components/schemas/SignatureImageAssetDto"}},"required":["success","message","value","asset"]},"RejectFormDto":{"type":"object","properties":{"formProcessId":{"type":"string"},"reason":{"type":"string"}},"required":["formProcessId","reason"]},"CancelFormDto":{"type":"object","properties":{"formProcessId":{"type":"string"}},"required":["formProcessId"]},"InitiateFormDto":{"type":"object","properties":{"formName":{"type":"string"},"formVersion":{"type":"number"},"values":{"type":"object"},"audit":{"type":"object"}},"required":["formName","formVersion","values","audit"]},"ProcessResponse":{"type":"object","properties":{"processId":{"type":"string"},"processName":{"type":"string"},"processCallbackUrl":{"type":"string"},"success":{"type":"boolean"},"message":{"type":"string"}},"required":["processId","processName","processCallbackUrl","success","message"]},"GetExportForSignatoryDto":{"type":"object","properties":{"formName":{"type":"string"}},"required":["formName"]},"ExportableFormDto":{"type":"object","properties":{"id":{"type":"string"},"status":{"type":"string"},"inputs":{"type":"object"},"signingParties":{"type":"array","items":{"type":"object"}},"formLabel":{"type":"string"},"formName":{"type":"string"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"documentUrl":{"type":"string","nullable":true}},"required":["id","status","inputs","signingParties","formLabel","formName","createdAt","updatedAt","documentUrl"]},"ExportableFormsResponse":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"processes":{"type":"array","items":{"$ref":"#/components/schemas/ExportableFormDto"}}},"required":["success","message","processes"]},"AlterRecipientEmailDto":{"type":"object","properties":{"formProcessId":{"type":"string"},"supposedSigningPartyId":{"type":"string"},"recipientEmail":{"type":"string"}},"required":["formProcessId","supposedSigningPartyId","recipientEmail"]},"CreateFormGroupDto":{"type":"object","properties":{"name":{"type":"string"}}},"AssignCoordinatorToFormGroupDto":{"type":"object","properties":{"formGroupId":{"type":"string"},"email":{"type":"string"}},"required":["formGroupId","email"]},"FormGroupIdDto":{"type":"object","properties":{"formGroupId":{"type":"string"}},"required":["formGroupId"]},"AddFormToGroupDto":{"type":"object","properties":{"formNames":{"type":"array","items":{"type":"string"}},"groupId":{"type":"string"}},"required":["formNames","groupId"]},"RemoveFormFromGroupDto":{"type":"object","properties":{"formNames":{"type":"array","items":{"type":"string"}},"groupId":{"type":"string"}},"required":["formNames","groupId"]},"SyncSingleFormDto":{"type":"object","properties":{"formName":{"type":"string","description":"The name of the form to sync","example":"internship-agreement"}},"required":["formName"]},"CreateSignatoryResponse":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}},"required":["success","message"]},"SignatoryProfile":{"type":"object","properties":{"id":{"type":"string"},"email":{"type":"string"},"name":{"type":"string"},"title":{"type":"object"},"honorific":{"type":"object"},"autofill":{"type":"object"},"signatureImage":{"type":"object"},"autoFormPermissions":{"type":"object"},"coordinatorId":{"type":"string"},"god":{"type":"boolean"}},"required":["id","email","name","title","honorific","autofill","signatureImage","autoFormPermissions"]},"SignatorySelfResponse":{"type":"object","properties":{"profile":{"$ref":"#/components/schemas/SignatoryProfile"}},"required":["profile"]},"SigningParty":{"type":"object","properties":{"_id":{"type":"string"},"order":{"type":"number"},"signatory_account":{"$ref":"#/components/schemas/FormSignatory"},"signed":{"type":"boolean"}},"required":["_id","order","signatory_account","signed"]},"FormProcess":{"type":"object","properties":{"prefilled_document_id":{"type":"string"},"pending_document_id":{"type":"string"},"signed_document_id":{"type":"string"},"latest_document_url":{"type":"string"},"rejection_reason":{"type":"string"},"display_information":{"type":"object","additionalProperties":{"type":"string"}},"signing_parties":{"type":"array","items":{"$ref":"#/components/schemas/SigningParty"}}},"required":["prefilled_document_id","pending_document_id","signed_document_id","latest_document_url","rejection_reason","display_information","signing_parties"]},"_SignatoryForm":{"type":"object","properties":{"id":{"type":"string"},"form_label":{"type":"string"},"form_name":{"type":"string"},"form_process_id":{"type":"string"},"form_process_status":{"type":"string"},"signatory_id":{"type":"string"},"rejection_response":{"type":"string"},"timestamp":{"type":"string"},"form_processes":{"$ref":"#/components/schemas/FormProcess"},"first_viewed":{"type":"string","format":"date-time","nullable":true},"signing_party_id":{"type":"string","nullable":true},"signing_keyring_id":{"type":"string","nullable":true}},"required":["id","form_label","form_name","form_process_id","form_process_status","signatory_id","rejection_response","timestamp","form_processes","first_viewed","signing_party_id","signing_keyring_id"]},"SignatorySignedFormsResponse":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"forms":{"type":"array","items":{"$ref":"#/components/schemas/_SignatoryForm"}}},"required":["success","message","forms"]},"_FormGroup":{"type":"object","properties":{"id":{"type":"string"},"description":{"type":"string"},"code":{"type":"string","nullable":true},"coordinator_id":{"type":"string","nullable":true},"forms":{"type":"array","items":{"type":"string"}}},"required":["id","description","code","coordinator_id","forms"]},"SignatoryFormGroupsResponse":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"formGroups":{"type":"array","items":{"$ref":"#/components/schemas/_FormGroup"}}},"required":["success","message","formGroups"]},"FormGroupRemoveMemberDto":{"type":"object","properties":{"formGroupId":{"type":"string"},"userId":{"type":"string"}},"required":["formGroupId","userId"]},"_FormGroupMember":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"email":{"type":"string"},"joinedAt":{"type":"string"}},"required":["id","name","email","joinedAt"]},"SignatoryFormGroupMembersResponse":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"formGroupMembers":{"type":"array","items":{"$ref":"#/components/schemas/_FormGroupMember"}}},"required":["success","message","formGroupMembers"]},"GetSignatoryFormSettingsRequest":{"type":"object","properties":{"formName":{"type":"string"}},"required":["formName"]},"GetSignatoryFormSettingsResponse":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"settings":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/FormSettings"}}},"required":["success","message","settings"]},"SetSignatoryFormSettingsRequest":{"type":"object","properties":{"formName":{"type":"string"},"settings":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/FormSettings"}},"audit":{"type":"object"}},"required":["formName","settings","audit"]},"UpdateSignatoryDto":{"type":"object","properties":{}}}}} \ No newline at end of file diff --git a/components/docs/form-editor/form-pdf-editor/FieldBox.tsx b/components/docs/form-editor/form-pdf-editor/FieldBox.tsx index 58af9a6a..ec070178 100644 --- a/components/docs/form-editor/form-pdf-editor/FieldBox.tsx +++ b/components/docs/form-editor/form-pdf-editor/FieldBox.tsx @@ -594,12 +594,12 @@ export const FieldBox = ({