import { queryParams, type RouteQueryOptions, type RouteDefinition, type RouteFormDefinition, applyUrlDefaults } from './../../../../wayfinder'
/**
* @see \App\Http\Controllers\RegisteredUsersController::index
* @see app/Http/Controllers/RegisteredUsersController.php:18
* @route '/registered-users'
*/
export const index = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: index.url(options),
    method: 'get',
})

index.definition = {
    methods: ["get","head"],
    url: '/registered-users',
} satisfies RouteDefinition<["get","head"]>

/**
* @see \App\Http\Controllers\RegisteredUsersController::index
* @see app/Http/Controllers/RegisteredUsersController.php:18
* @route '/registered-users'
*/
index.url = (options?: RouteQueryOptions) => {
    return index.definition.url + queryParams(options)
}

/**
* @see \App\Http\Controllers\RegisteredUsersController::index
* @see app/Http/Controllers/RegisteredUsersController.php:18
* @route '/registered-users'
*/
index.get = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: index.url(options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\RegisteredUsersController::index
* @see app/Http/Controllers/RegisteredUsersController.php:18
* @route '/registered-users'
*/
index.head = (options?: RouteQueryOptions): RouteDefinition<'head'> => ({
    url: index.url(options),
    method: 'head',
})

/**
* @see \App\Http\Controllers\RegisteredUsersController::index
* @see app/Http/Controllers/RegisteredUsersController.php:18
* @route '/registered-users'
*/
const indexForm = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
    action: index.url(options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\RegisteredUsersController::index
* @see app/Http/Controllers/RegisteredUsersController.php:18
* @route '/registered-users'
*/
indexForm.get = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
    action: index.url(options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\RegisteredUsersController::index
* @see app/Http/Controllers/RegisteredUsersController.php:18
* @route '/registered-users'
*/
indexForm.head = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
    action: index.url({
        [options?.mergeQuery ? 'mergeQuery' : 'query']: {
            _method: 'HEAD',
            ...(options?.query ?? options?.mergeQuery ?? {}),
        }
    }),
    method: 'get',
})

index.form = indexForm

/**
* @see \App\Http\Controllers\RegisteredUsersController::registeredIndex
* @see app/Http/Controllers/RegisteredUsersController.php:60
* @route '/registered-users/registered'
*/
export const registeredIndex = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: registeredIndex.url(options),
    method: 'get',
})

registeredIndex.definition = {
    methods: ["get","head"],
    url: '/registered-users/registered',
} satisfies RouteDefinition<["get","head"]>

/**
* @see \App\Http\Controllers\RegisteredUsersController::registeredIndex
* @see app/Http/Controllers/RegisteredUsersController.php:60
* @route '/registered-users/registered'
*/
registeredIndex.url = (options?: RouteQueryOptions) => {
    return registeredIndex.definition.url + queryParams(options)
}

/**
* @see \App\Http\Controllers\RegisteredUsersController::registeredIndex
* @see app/Http/Controllers/RegisteredUsersController.php:60
* @route '/registered-users/registered'
*/
registeredIndex.get = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: registeredIndex.url(options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\RegisteredUsersController::registeredIndex
* @see app/Http/Controllers/RegisteredUsersController.php:60
* @route '/registered-users/registered'
*/
registeredIndex.head = (options?: RouteQueryOptions): RouteDefinition<'head'> => ({
    url: registeredIndex.url(options),
    method: 'head',
})

/**
* @see \App\Http\Controllers\RegisteredUsersController::registeredIndex
* @see app/Http/Controllers/RegisteredUsersController.php:60
* @route '/registered-users/registered'
*/
const registeredIndexForm = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
    action: registeredIndex.url(options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\RegisteredUsersController::registeredIndex
* @see app/Http/Controllers/RegisteredUsersController.php:60
* @route '/registered-users/registered'
*/
registeredIndexForm.get = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
    action: registeredIndex.url(options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\RegisteredUsersController::registeredIndex
* @see app/Http/Controllers/RegisteredUsersController.php:60
* @route '/registered-users/registered'
*/
registeredIndexForm.head = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
    action: registeredIndex.url({
        [options?.mergeQuery ? 'mergeQuery' : 'query']: {
            _method: 'HEAD',
            ...(options?.query ?? options?.mergeQuery ?? {}),
        }
    }),
    method: 'get',
})

registeredIndex.form = registeredIndexForm

/**
* @see \App\Http\Controllers\RegisteredUsersController::pendingIndex
* @see app/Http/Controllers/RegisteredUsersController.php:129
* @route '/registered-users/pending'
*/
export const pendingIndex = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: pendingIndex.url(options),
    method: 'get',
})

pendingIndex.definition = {
    methods: ["get","head"],
    url: '/registered-users/pending',
} satisfies RouteDefinition<["get","head"]>

/**
* @see \App\Http\Controllers\RegisteredUsersController::pendingIndex
* @see app/Http/Controllers/RegisteredUsersController.php:129
* @route '/registered-users/pending'
*/
pendingIndex.url = (options?: RouteQueryOptions) => {
    return pendingIndex.definition.url + queryParams(options)
}

/**
* @see \App\Http\Controllers\RegisteredUsersController::pendingIndex
* @see app/Http/Controllers/RegisteredUsersController.php:129
* @route '/registered-users/pending'
*/
pendingIndex.get = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: pendingIndex.url(options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\RegisteredUsersController::pendingIndex
* @see app/Http/Controllers/RegisteredUsersController.php:129
* @route '/registered-users/pending'
*/
pendingIndex.head = (options?: RouteQueryOptions): RouteDefinition<'head'> => ({
    url: pendingIndex.url(options),
    method: 'head',
})

/**
* @see \App\Http\Controllers\RegisteredUsersController::pendingIndex
* @see app/Http/Controllers/RegisteredUsersController.php:129
* @route '/registered-users/pending'
*/
const pendingIndexForm = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
    action: pendingIndex.url(options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\RegisteredUsersController::pendingIndex
* @see app/Http/Controllers/RegisteredUsersController.php:129
* @route '/registered-users/pending'
*/
pendingIndexForm.get = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
    action: pendingIndex.url(options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\RegisteredUsersController::pendingIndex
* @see app/Http/Controllers/RegisteredUsersController.php:129
* @route '/registered-users/pending'
*/
pendingIndexForm.head = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
    action: pendingIndex.url({
        [options?.mergeQuery ? 'mergeQuery' : 'query']: {
            _method: 'HEAD',
            ...(options?.query ?? options?.mergeQuery ?? {}),
        }
    }),
    method: 'get',
})

pendingIndex.form = pendingIndexForm

/**
* @see \App\Http\Controllers\RegisteredUsersController::registeredShow
* @see app/Http/Controllers/RegisteredUsersController.php:115
* @route '/registered-users/registered/{user}'
*/
export const registeredShow = (args: { user: string | number | { id: string | number } } | [user: string | number | { id: string | number } ] | string | number | { id: string | number }, options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: registeredShow.url(args, options),
    method: 'get',
})

registeredShow.definition = {
    methods: ["get","head"],
    url: '/registered-users/registered/{user}',
} satisfies RouteDefinition<["get","head"]>

/**
* @see \App\Http\Controllers\RegisteredUsersController::registeredShow
* @see app/Http/Controllers/RegisteredUsersController.php:115
* @route '/registered-users/registered/{user}'
*/
registeredShow.url = (args: { user: string | number | { id: string | number } } | [user: string | number | { id: string | number } ] | string | number | { id: string | number }, options?: RouteQueryOptions) => {
    if (typeof args === 'string' || typeof args === 'number') {
        args = { user: args }
    }

    if (typeof args === 'object' && !Array.isArray(args) && 'id' in args) {
        args = { user: args.id }
    }

    if (Array.isArray(args)) {
        args = {
            user: args[0],
        }
    }

    args = applyUrlDefaults(args)

    const parsedArgs = {
        user: typeof args.user === 'object'
        ? args.user.id
        : args.user,
    }

    return registeredShow.definition.url
            .replace('{user}', parsedArgs.user.toString())
            .replace(/\/+$/, '') + queryParams(options)
}

/**
* @see \App\Http\Controllers\RegisteredUsersController::registeredShow
* @see app/Http/Controllers/RegisteredUsersController.php:115
* @route '/registered-users/registered/{user}'
*/
registeredShow.get = (args: { user: string | number | { id: string | number } } | [user: string | number | { id: string | number } ] | string | number | { id: string | number }, options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: registeredShow.url(args, options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\RegisteredUsersController::registeredShow
* @see app/Http/Controllers/RegisteredUsersController.php:115
* @route '/registered-users/registered/{user}'
*/
registeredShow.head = (args: { user: string | number | { id: string | number } } | [user: string | number | { id: string | number } ] | string | number | { id: string | number }, options?: RouteQueryOptions): RouteDefinition<'head'> => ({
    url: registeredShow.url(args, options),
    method: 'head',
})

/**
* @see \App\Http\Controllers\RegisteredUsersController::registeredShow
* @see app/Http/Controllers/RegisteredUsersController.php:115
* @route '/registered-users/registered/{user}'
*/
const registeredShowForm = (args: { user: string | number | { id: string | number } } | [user: string | number | { id: string | number } ] | string | number | { id: string | number }, options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
    action: registeredShow.url(args, options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\RegisteredUsersController::registeredShow
* @see app/Http/Controllers/RegisteredUsersController.php:115
* @route '/registered-users/registered/{user}'
*/
registeredShowForm.get = (args: { user: string | number | { id: string | number } } | [user: string | number | { id: string | number } ] | string | number | { id: string | number }, options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
    action: registeredShow.url(args, options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\RegisteredUsersController::registeredShow
* @see app/Http/Controllers/RegisteredUsersController.php:115
* @route '/registered-users/registered/{user}'
*/
registeredShowForm.head = (args: { user: string | number | { id: string | number } } | [user: string | number | { id: string | number } ] | string | number | { id: string | number }, options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
    action: registeredShow.url(args, {
        [options?.mergeQuery ? 'mergeQuery' : 'query']: {
            _method: 'HEAD',
            ...(options?.query ?? options?.mergeQuery ?? {}),
        }
    }),
    method: 'get',
})

registeredShow.form = registeredShowForm

/**
* @see \App\Http\Controllers\RegisteredUsersController::pendingShow
* @see app/Http/Controllers/RegisteredUsersController.php:166
* @route '/registered-users/pending/{user}'
*/
export const pendingShow = (args: { user: string | number | { id: string | number } } | [user: string | number | { id: string | number } ] | string | number | { id: string | number }, options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: pendingShow.url(args, options),
    method: 'get',
})

pendingShow.definition = {
    methods: ["get","head"],
    url: '/registered-users/pending/{user}',
} satisfies RouteDefinition<["get","head"]>

/**
* @see \App\Http\Controllers\RegisteredUsersController::pendingShow
* @see app/Http/Controllers/RegisteredUsersController.php:166
* @route '/registered-users/pending/{user}'
*/
pendingShow.url = (args: { user: string | number | { id: string | number } } | [user: string | number | { id: string | number } ] | string | number | { id: string | number }, options?: RouteQueryOptions) => {
    if (typeof args === 'string' || typeof args === 'number') {
        args = { user: args }
    }

    if (typeof args === 'object' && !Array.isArray(args) && 'id' in args) {
        args = { user: args.id }
    }

    if (Array.isArray(args)) {
        args = {
            user: args[0],
        }
    }

    args = applyUrlDefaults(args)

    const parsedArgs = {
        user: typeof args.user === 'object'
        ? args.user.id
        : args.user,
    }

    return pendingShow.definition.url
            .replace('{user}', parsedArgs.user.toString())
            .replace(/\/+$/, '') + queryParams(options)
}

/**
* @see \App\Http\Controllers\RegisteredUsersController::pendingShow
* @see app/Http/Controllers/RegisteredUsersController.php:166
* @route '/registered-users/pending/{user}'
*/
pendingShow.get = (args: { user: string | number | { id: string | number } } | [user: string | number | { id: string | number } ] | string | number | { id: string | number }, options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: pendingShow.url(args, options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\RegisteredUsersController::pendingShow
* @see app/Http/Controllers/RegisteredUsersController.php:166
* @route '/registered-users/pending/{user}'
*/
pendingShow.head = (args: { user: string | number | { id: string | number } } | [user: string | number | { id: string | number } ] | string | number | { id: string | number }, options?: RouteQueryOptions): RouteDefinition<'head'> => ({
    url: pendingShow.url(args, options),
    method: 'head',
})

/**
* @see \App\Http\Controllers\RegisteredUsersController::pendingShow
* @see app/Http/Controllers/RegisteredUsersController.php:166
* @route '/registered-users/pending/{user}'
*/
const pendingShowForm = (args: { user: string | number | { id: string | number } } | [user: string | number | { id: string | number } ] | string | number | { id: string | number }, options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
    action: pendingShow.url(args, options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\RegisteredUsersController::pendingShow
* @see app/Http/Controllers/RegisteredUsersController.php:166
* @route '/registered-users/pending/{user}'
*/
pendingShowForm.get = (args: { user: string | number | { id: string | number } } | [user: string | number | { id: string | number } ] | string | number | { id: string | number }, options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
    action: pendingShow.url(args, options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\RegisteredUsersController::pendingShow
* @see app/Http/Controllers/RegisteredUsersController.php:166
* @route '/registered-users/pending/{user}'
*/
pendingShowForm.head = (args: { user: string | number | { id: string | number } } | [user: string | number | { id: string | number } ] | string | number | { id: string | number }, options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
    action: pendingShow.url(args, {
        [options?.mergeQuery ? 'mergeQuery' : 'query']: {
            _method: 'HEAD',
            ...(options?.query ?? options?.mergeQuery ?? {}),
        }
    }),
    method: 'get',
})

pendingShow.form = pendingShowForm

/**
* @see \App\Http\Controllers\RegisteredUsersController::approve
* @see app/Http/Controllers/RegisteredUsersController.php:229
* @route '/registered-users/{user}/approve'
*/
export const approve = (args: { user: string | number | { id: string | number } } | [user: string | number | { id: string | number } ] | string | number | { id: string | number }, options?: RouteQueryOptions): RouteDefinition<'post'> => ({
    url: approve.url(args, options),
    method: 'post',
})

approve.definition = {
    methods: ["post"],
    url: '/registered-users/{user}/approve',
} satisfies RouteDefinition<["post"]>

/**
* @see \App\Http\Controllers\RegisteredUsersController::approve
* @see app/Http/Controllers/RegisteredUsersController.php:229
* @route '/registered-users/{user}/approve'
*/
approve.url = (args: { user: string | number | { id: string | number } } | [user: string | number | { id: string | number } ] | string | number | { id: string | number }, options?: RouteQueryOptions) => {
    if (typeof args === 'string' || typeof args === 'number') {
        args = { user: args }
    }

    if (typeof args === 'object' && !Array.isArray(args) && 'id' in args) {
        args = { user: args.id }
    }

    if (Array.isArray(args)) {
        args = {
            user: args[0],
        }
    }

    args = applyUrlDefaults(args)

    const parsedArgs = {
        user: typeof args.user === 'object'
        ? args.user.id
        : args.user,
    }

    return approve.definition.url
            .replace('{user}', parsedArgs.user.toString())
            .replace(/\/+$/, '') + queryParams(options)
}

/**
* @see \App\Http\Controllers\RegisteredUsersController::approve
* @see app/Http/Controllers/RegisteredUsersController.php:229
* @route '/registered-users/{user}/approve'
*/
approve.post = (args: { user: string | number | { id: string | number } } | [user: string | number | { id: string | number } ] | string | number | { id: string | number }, options?: RouteQueryOptions): RouteDefinition<'post'> => ({
    url: approve.url(args, options),
    method: 'post',
})

/**
* @see \App\Http\Controllers\RegisteredUsersController::approve
* @see app/Http/Controllers/RegisteredUsersController.php:229
* @route '/registered-users/{user}/approve'
*/
const approveForm = (args: { user: string | number | { id: string | number } } | [user: string | number | { id: string | number } ] | string | number | { id: string | number }, options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
    action: approve.url(args, options),
    method: 'post',
})

/**
* @see \App\Http\Controllers\RegisteredUsersController::approve
* @see app/Http/Controllers/RegisteredUsersController.php:229
* @route '/registered-users/{user}/approve'
*/
approveForm.post = (args: { user: string | number | { id: string | number } } | [user: string | number | { id: string | number } ] | string | number | { id: string | number }, options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
    action: approve.url(args, options),
    method: 'post',
})

approve.form = approveForm

/**
* @see \App\Http\Controllers\RegisteredUsersController::reject
* @see app/Http/Controllers/RegisteredUsersController.php:244
* @route '/registered-users/{user}/reject'
*/
export const reject = (args: { user: string | number | { id: string | number } } | [user: string | number | { id: string | number } ] | string | number | { id: string | number }, options?: RouteQueryOptions): RouteDefinition<'post'> => ({
    url: reject.url(args, options),
    method: 'post',
})

reject.definition = {
    methods: ["post"],
    url: '/registered-users/{user}/reject',
} satisfies RouteDefinition<["post"]>

/**
* @see \App\Http\Controllers\RegisteredUsersController::reject
* @see app/Http/Controllers/RegisteredUsersController.php:244
* @route '/registered-users/{user}/reject'
*/
reject.url = (args: { user: string | number | { id: string | number } } | [user: string | number | { id: string | number } ] | string | number | { id: string | number }, options?: RouteQueryOptions) => {
    if (typeof args === 'string' || typeof args === 'number') {
        args = { user: args }
    }

    if (typeof args === 'object' && !Array.isArray(args) && 'id' in args) {
        args = { user: args.id }
    }

    if (Array.isArray(args)) {
        args = {
            user: args[0],
        }
    }

    args = applyUrlDefaults(args)

    const parsedArgs = {
        user: typeof args.user === 'object'
        ? args.user.id
        : args.user,
    }

    return reject.definition.url
            .replace('{user}', parsedArgs.user.toString())
            .replace(/\/+$/, '') + queryParams(options)
}

/**
* @see \App\Http\Controllers\RegisteredUsersController::reject
* @see app/Http/Controllers/RegisteredUsersController.php:244
* @route '/registered-users/{user}/reject'
*/
reject.post = (args: { user: string | number | { id: string | number } } | [user: string | number | { id: string | number } ] | string | number | { id: string | number }, options?: RouteQueryOptions): RouteDefinition<'post'> => ({
    url: reject.url(args, options),
    method: 'post',
})

/**
* @see \App\Http\Controllers\RegisteredUsersController::reject
* @see app/Http/Controllers/RegisteredUsersController.php:244
* @route '/registered-users/{user}/reject'
*/
const rejectForm = (args: { user: string | number | { id: string | number } } | [user: string | number | { id: string | number } ] | string | number | { id: string | number }, options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
    action: reject.url(args, options),
    method: 'post',
})

/**
* @see \App\Http\Controllers\RegisteredUsersController::reject
* @see app/Http/Controllers/RegisteredUsersController.php:244
* @route '/registered-users/{user}/reject'
*/
rejectForm.post = (args: { user: string | number | { id: string | number } } | [user: string | number | { id: string | number } ] | string | number | { id: string | number }, options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
    action: reject.url(args, options),
    method: 'post',
})

reject.form = rejectForm

/**
* @see \App\Http\Controllers\RegisteredUsersController::deactivate
* @see app/Http/Controllers/RegisteredUsersController.php:263
* @route '/registered-users/{user}/deactivate'
*/
export const deactivate = (args: { user: string | number | { id: string | number } } | [user: string | number | { id: string | number } ] | string | number | { id: string | number }, options?: RouteQueryOptions): RouteDefinition<'post'> => ({
    url: deactivate.url(args, options),
    method: 'post',
})

deactivate.definition = {
    methods: ["post"],
    url: '/registered-users/{user}/deactivate',
} satisfies RouteDefinition<["post"]>

/**
* @see \App\Http\Controllers\RegisteredUsersController::deactivate
* @see app/Http/Controllers/RegisteredUsersController.php:263
* @route '/registered-users/{user}/deactivate'
*/
deactivate.url = (args: { user: string | number | { id: string | number } } | [user: string | number | { id: string | number } ] | string | number | { id: string | number }, options?: RouteQueryOptions) => {
    if (typeof args === 'string' || typeof args === 'number') {
        args = { user: args }
    }

    if (typeof args === 'object' && !Array.isArray(args) && 'id' in args) {
        args = { user: args.id }
    }

    if (Array.isArray(args)) {
        args = {
            user: args[0],
        }
    }

    args = applyUrlDefaults(args)

    const parsedArgs = {
        user: typeof args.user === 'object'
        ? args.user.id
        : args.user,
    }

    return deactivate.definition.url
            .replace('{user}', parsedArgs.user.toString())
            .replace(/\/+$/, '') + queryParams(options)
}

/**
* @see \App\Http\Controllers\RegisteredUsersController::deactivate
* @see app/Http/Controllers/RegisteredUsersController.php:263
* @route '/registered-users/{user}/deactivate'
*/
deactivate.post = (args: { user: string | number | { id: string | number } } | [user: string | number | { id: string | number } ] | string | number | { id: string | number }, options?: RouteQueryOptions): RouteDefinition<'post'> => ({
    url: deactivate.url(args, options),
    method: 'post',
})

/**
* @see \App\Http\Controllers\RegisteredUsersController::deactivate
* @see app/Http/Controllers/RegisteredUsersController.php:263
* @route '/registered-users/{user}/deactivate'
*/
const deactivateForm = (args: { user: string | number | { id: string | number } } | [user: string | number | { id: string | number } ] | string | number | { id: string | number }, options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
    action: deactivate.url(args, options),
    method: 'post',
})

/**
* @see \App\Http\Controllers\RegisteredUsersController::deactivate
* @see app/Http/Controllers/RegisteredUsersController.php:263
* @route '/registered-users/{user}/deactivate'
*/
deactivateForm.post = (args: { user: string | number | { id: string | number } } | [user: string | number | { id: string | number } ] | string | number | { id: string | number }, options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
    action: deactivate.url(args, options),
    method: 'post',
})

deactivate.form = deactivateForm

/**
* @see \App\Http\Controllers\RegisteredUsersController::reactivate
* @see app/Http/Controllers/RegisteredUsersController.php:276
* @route '/registered-users/{user}/reactivate'
*/
export const reactivate = (args: { user: string | number | { id: string | number } } | [user: string | number | { id: string | number } ] | string | number | { id: string | number }, options?: RouteQueryOptions): RouteDefinition<'post'> => ({
    url: reactivate.url(args, options),
    method: 'post',
})

reactivate.definition = {
    methods: ["post"],
    url: '/registered-users/{user}/reactivate',
} satisfies RouteDefinition<["post"]>

/**
* @see \App\Http\Controllers\RegisteredUsersController::reactivate
* @see app/Http/Controllers/RegisteredUsersController.php:276
* @route '/registered-users/{user}/reactivate'
*/
reactivate.url = (args: { user: string | number | { id: string | number } } | [user: string | number | { id: string | number } ] | string | number | { id: string | number }, options?: RouteQueryOptions) => {
    if (typeof args === 'string' || typeof args === 'number') {
        args = { user: args }
    }

    if (typeof args === 'object' && !Array.isArray(args) && 'id' in args) {
        args = { user: args.id }
    }

    if (Array.isArray(args)) {
        args = {
            user: args[0],
        }
    }

    args = applyUrlDefaults(args)

    const parsedArgs = {
        user: typeof args.user === 'object'
        ? args.user.id
        : args.user,
    }

    return reactivate.definition.url
            .replace('{user}', parsedArgs.user.toString())
            .replace(/\/+$/, '') + queryParams(options)
}

/**
* @see \App\Http\Controllers\RegisteredUsersController::reactivate
* @see app/Http/Controllers/RegisteredUsersController.php:276
* @route '/registered-users/{user}/reactivate'
*/
reactivate.post = (args: { user: string | number | { id: string | number } } | [user: string | number | { id: string | number } ] | string | number | { id: string | number }, options?: RouteQueryOptions): RouteDefinition<'post'> => ({
    url: reactivate.url(args, options),
    method: 'post',
})

/**
* @see \App\Http\Controllers\RegisteredUsersController::reactivate
* @see app/Http/Controllers/RegisteredUsersController.php:276
* @route '/registered-users/{user}/reactivate'
*/
const reactivateForm = (args: { user: string | number | { id: string | number } } | [user: string | number | { id: string | number } ] | string | number | { id: string | number }, options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
    action: reactivate.url(args, options),
    method: 'post',
})

/**
* @see \App\Http\Controllers\RegisteredUsersController::reactivate
* @see app/Http/Controllers/RegisteredUsersController.php:276
* @route '/registered-users/{user}/reactivate'
*/
reactivateForm.post = (args: { user: string | number | { id: string | number } } | [user: string | number | { id: string | number } ] | string | number | { id: string | number }, options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
    action: reactivate.url(args, options),
    method: 'post',
})

reactivate.form = reactivateForm

/**
* @see \App\Http\Controllers\RegisteredUsersController::updateRequestsIndex
* @see app/Http/Controllers/RegisteredUsersController.php:177
* @route '/registered-users/update-requests'
*/
export const updateRequestsIndex = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: updateRequestsIndex.url(options),
    method: 'get',
})

updateRequestsIndex.definition = {
    methods: ["get","head"],
    url: '/registered-users/update-requests',
} satisfies RouteDefinition<["get","head"]>

/**
* @see \App\Http\Controllers\RegisteredUsersController::updateRequestsIndex
* @see app/Http/Controllers/RegisteredUsersController.php:177
* @route '/registered-users/update-requests'
*/
updateRequestsIndex.url = (options?: RouteQueryOptions) => {
    return updateRequestsIndex.definition.url + queryParams(options)
}

/**
* @see \App\Http\Controllers\RegisteredUsersController::updateRequestsIndex
* @see app/Http/Controllers/RegisteredUsersController.php:177
* @route '/registered-users/update-requests'
*/
updateRequestsIndex.get = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: updateRequestsIndex.url(options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\RegisteredUsersController::updateRequestsIndex
* @see app/Http/Controllers/RegisteredUsersController.php:177
* @route '/registered-users/update-requests'
*/
updateRequestsIndex.head = (options?: RouteQueryOptions): RouteDefinition<'head'> => ({
    url: updateRequestsIndex.url(options),
    method: 'head',
})

/**
* @see \App\Http\Controllers\RegisteredUsersController::updateRequestsIndex
* @see app/Http/Controllers/RegisteredUsersController.php:177
* @route '/registered-users/update-requests'
*/
const updateRequestsIndexForm = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
    action: updateRequestsIndex.url(options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\RegisteredUsersController::updateRequestsIndex
* @see app/Http/Controllers/RegisteredUsersController.php:177
* @route '/registered-users/update-requests'
*/
updateRequestsIndexForm.get = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
    action: updateRequestsIndex.url(options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\RegisteredUsersController::updateRequestsIndex
* @see app/Http/Controllers/RegisteredUsersController.php:177
* @route '/registered-users/update-requests'
*/
updateRequestsIndexForm.head = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
    action: updateRequestsIndex.url({
        [options?.mergeQuery ? 'mergeQuery' : 'query']: {
            _method: 'HEAD',
            ...(options?.query ?? options?.mergeQuery ?? {}),
        }
    }),
    method: 'get',
})

updateRequestsIndex.form = updateRequestsIndexForm

/**
* @see \App\Http\Controllers\RegisteredUsersController::updateRequestShow
* @see app/Http/Controllers/RegisteredUsersController.php:220
* @route '/registered-users/update-requests/{updateRequest}'
*/
export const updateRequestShow = (args: { updateRequest: string | number | { id: string | number } } | [updateRequest: string | number | { id: string | number } ] | string | number | { id: string | number }, options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: updateRequestShow.url(args, options),
    method: 'get',
})

updateRequestShow.definition = {
    methods: ["get","head"],
    url: '/registered-users/update-requests/{updateRequest}',
} satisfies RouteDefinition<["get","head"]>

/**
* @see \App\Http\Controllers\RegisteredUsersController::updateRequestShow
* @see app/Http/Controllers/RegisteredUsersController.php:220
* @route '/registered-users/update-requests/{updateRequest}'
*/
updateRequestShow.url = (args: { updateRequest: string | number | { id: string | number } } | [updateRequest: string | number | { id: string | number } ] | string | number | { id: string | number }, options?: RouteQueryOptions) => {
    if (typeof args === 'string' || typeof args === 'number') {
        args = { updateRequest: args }
    }

    if (typeof args === 'object' && !Array.isArray(args) && 'id' in args) {
        args = { updateRequest: args.id }
    }

    if (Array.isArray(args)) {
        args = {
            updateRequest: args[0],
        }
    }

    args = applyUrlDefaults(args)

    const parsedArgs = {
        updateRequest: typeof args.updateRequest === 'object'
        ? args.updateRequest.id
        : args.updateRequest,
    }

    return updateRequestShow.definition.url
            .replace('{updateRequest}', parsedArgs.updateRequest.toString())
            .replace(/\/+$/, '') + queryParams(options)
}

/**
* @see \App\Http\Controllers\RegisteredUsersController::updateRequestShow
* @see app/Http/Controllers/RegisteredUsersController.php:220
* @route '/registered-users/update-requests/{updateRequest}'
*/
updateRequestShow.get = (args: { updateRequest: string | number | { id: string | number } } | [updateRequest: string | number | { id: string | number } ] | string | number | { id: string | number }, options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: updateRequestShow.url(args, options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\RegisteredUsersController::updateRequestShow
* @see app/Http/Controllers/RegisteredUsersController.php:220
* @route '/registered-users/update-requests/{updateRequest}'
*/
updateRequestShow.head = (args: { updateRequest: string | number | { id: string | number } } | [updateRequest: string | number | { id: string | number } ] | string | number | { id: string | number }, options?: RouteQueryOptions): RouteDefinition<'head'> => ({
    url: updateRequestShow.url(args, options),
    method: 'head',
})

/**
* @see \App\Http\Controllers\RegisteredUsersController::updateRequestShow
* @see app/Http/Controllers/RegisteredUsersController.php:220
* @route '/registered-users/update-requests/{updateRequest}'
*/
const updateRequestShowForm = (args: { updateRequest: string | number | { id: string | number } } | [updateRequest: string | number | { id: string | number } ] | string | number | { id: string | number }, options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
    action: updateRequestShow.url(args, options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\RegisteredUsersController::updateRequestShow
* @see app/Http/Controllers/RegisteredUsersController.php:220
* @route '/registered-users/update-requests/{updateRequest}'
*/
updateRequestShowForm.get = (args: { updateRequest: string | number | { id: string | number } } | [updateRequest: string | number | { id: string | number } ] | string | number | { id: string | number }, options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
    action: updateRequestShow.url(args, options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\RegisteredUsersController::updateRequestShow
* @see app/Http/Controllers/RegisteredUsersController.php:220
* @route '/registered-users/update-requests/{updateRequest}'
*/
updateRequestShowForm.head = (args: { updateRequest: string | number | { id: string | number } } | [updateRequest: string | number | { id: string | number } ] | string | number | { id: string | number }, options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
    action: updateRequestShow.url(args, {
        [options?.mergeQuery ? 'mergeQuery' : 'query']: {
            _method: 'HEAD',
            ...(options?.query ?? options?.mergeQuery ?? {}),
        }
    }),
    method: 'get',
})

updateRequestShow.form = updateRequestShowForm

/**
* @see \App\Http\Controllers\RegisteredUsersController::approveUpdate
* @see app/Http/Controllers/RegisteredUsersController.php:291
* @route '/registered-users/update-requests/{updateRequest}/approve'
*/
export const approveUpdate = (args: { updateRequest: string | number | { id: string | number } } | [updateRequest: string | number | { id: string | number } ] | string | number | { id: string | number }, options?: RouteQueryOptions): RouteDefinition<'post'> => ({
    url: approveUpdate.url(args, options),
    method: 'post',
})

approveUpdate.definition = {
    methods: ["post"],
    url: '/registered-users/update-requests/{updateRequest}/approve',
} satisfies RouteDefinition<["post"]>

/**
* @see \App\Http\Controllers\RegisteredUsersController::approveUpdate
* @see app/Http/Controllers/RegisteredUsersController.php:291
* @route '/registered-users/update-requests/{updateRequest}/approve'
*/
approveUpdate.url = (args: { updateRequest: string | number | { id: string | number } } | [updateRequest: string | number | { id: string | number } ] | string | number | { id: string | number }, options?: RouteQueryOptions) => {
    if (typeof args === 'string' || typeof args === 'number') {
        args = { updateRequest: args }
    }

    if (typeof args === 'object' && !Array.isArray(args) && 'id' in args) {
        args = { updateRequest: args.id }
    }

    if (Array.isArray(args)) {
        args = {
            updateRequest: args[0],
        }
    }

    args = applyUrlDefaults(args)

    const parsedArgs = {
        updateRequest: typeof args.updateRequest === 'object'
        ? args.updateRequest.id
        : args.updateRequest,
    }

    return approveUpdate.definition.url
            .replace('{updateRequest}', parsedArgs.updateRequest.toString())
            .replace(/\/+$/, '') + queryParams(options)
}

/**
* @see \App\Http\Controllers\RegisteredUsersController::approveUpdate
* @see app/Http/Controllers/RegisteredUsersController.php:291
* @route '/registered-users/update-requests/{updateRequest}/approve'
*/
approveUpdate.post = (args: { updateRequest: string | number | { id: string | number } } | [updateRequest: string | number | { id: string | number } ] | string | number | { id: string | number }, options?: RouteQueryOptions): RouteDefinition<'post'> => ({
    url: approveUpdate.url(args, options),
    method: 'post',
})

/**
* @see \App\Http\Controllers\RegisteredUsersController::approveUpdate
* @see app/Http/Controllers/RegisteredUsersController.php:291
* @route '/registered-users/update-requests/{updateRequest}/approve'
*/
const approveUpdateForm = (args: { updateRequest: string | number | { id: string | number } } | [updateRequest: string | number | { id: string | number } ] | string | number | { id: string | number }, options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
    action: approveUpdate.url(args, options),
    method: 'post',
})

/**
* @see \App\Http\Controllers\RegisteredUsersController::approveUpdate
* @see app/Http/Controllers/RegisteredUsersController.php:291
* @route '/registered-users/update-requests/{updateRequest}/approve'
*/
approveUpdateForm.post = (args: { updateRequest: string | number | { id: string | number } } | [updateRequest: string | number | { id: string | number } ] | string | number | { id: string | number }, options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
    action: approveUpdate.url(args, options),
    method: 'post',
})

approveUpdate.form = approveUpdateForm

/**
* @see \App\Http\Controllers\RegisteredUsersController::rejectUpdate
* @see app/Http/Controllers/RegisteredUsersController.php:347
* @route '/registered-users/update-requests/{updateRequest}/reject'
*/
export const rejectUpdate = (args: { updateRequest: string | number | { id: string | number } } | [updateRequest: string | number | { id: string | number } ] | string | number | { id: string | number }, options?: RouteQueryOptions): RouteDefinition<'post'> => ({
    url: rejectUpdate.url(args, options),
    method: 'post',
})

rejectUpdate.definition = {
    methods: ["post"],
    url: '/registered-users/update-requests/{updateRequest}/reject',
} satisfies RouteDefinition<["post"]>

/**
* @see \App\Http\Controllers\RegisteredUsersController::rejectUpdate
* @see app/Http/Controllers/RegisteredUsersController.php:347
* @route '/registered-users/update-requests/{updateRequest}/reject'
*/
rejectUpdate.url = (args: { updateRequest: string | number | { id: string | number } } | [updateRequest: string | number | { id: string | number } ] | string | number | { id: string | number }, options?: RouteQueryOptions) => {
    if (typeof args === 'string' || typeof args === 'number') {
        args = { updateRequest: args }
    }

    if (typeof args === 'object' && !Array.isArray(args) && 'id' in args) {
        args = { updateRequest: args.id }
    }

    if (Array.isArray(args)) {
        args = {
            updateRequest: args[0],
        }
    }

    args = applyUrlDefaults(args)

    const parsedArgs = {
        updateRequest: typeof args.updateRequest === 'object'
        ? args.updateRequest.id
        : args.updateRequest,
    }

    return rejectUpdate.definition.url
            .replace('{updateRequest}', parsedArgs.updateRequest.toString())
            .replace(/\/+$/, '') + queryParams(options)
}

/**
* @see \App\Http\Controllers\RegisteredUsersController::rejectUpdate
* @see app/Http/Controllers/RegisteredUsersController.php:347
* @route '/registered-users/update-requests/{updateRequest}/reject'
*/
rejectUpdate.post = (args: { updateRequest: string | number | { id: string | number } } | [updateRequest: string | number | { id: string | number } ] | string | number | { id: string | number }, options?: RouteQueryOptions): RouteDefinition<'post'> => ({
    url: rejectUpdate.url(args, options),
    method: 'post',
})

/**
* @see \App\Http\Controllers\RegisteredUsersController::rejectUpdate
* @see app/Http/Controllers/RegisteredUsersController.php:347
* @route '/registered-users/update-requests/{updateRequest}/reject'
*/
const rejectUpdateForm = (args: { updateRequest: string | number | { id: string | number } } | [updateRequest: string | number | { id: string | number } ] | string | number | { id: string | number }, options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
    action: rejectUpdate.url(args, options),
    method: 'post',
})

/**
* @see \App\Http\Controllers\RegisteredUsersController::rejectUpdate
* @see app/Http/Controllers/RegisteredUsersController.php:347
* @route '/registered-users/update-requests/{updateRequest}/reject'
*/
rejectUpdateForm.post = (args: { updateRequest: string | number | { id: string | number } } | [updateRequest: string | number | { id: string | number } ] | string | number | { id: string | number }, options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
    action: rejectUpdate.url(args, options),
    method: 'post',
})

rejectUpdate.form = rejectUpdateForm

const RegisteredUsersController = { index, registeredIndex, pendingIndex, registeredShow, pendingShow, approve, reject, deactivate, reactivate, updateRequestsIndex, updateRequestShow, approveUpdate, rejectUpdate }

export default RegisteredUsersController