@@ -566,56 +566,11 @@ export const GitLabNamespaceSchema = z.object({
566566 kind : z . enum ( [ "user" , "group" ] ) ,
567567 full_path : z . string ( ) ,
568568 parent_id : z . coerce . string ( ) . nullable ( ) ,
569- avatar_url : z . string ( ) . nullable ( ) ,
569+ avatar_url : z . string ( ) . nullable ( ) . optional ( ) ,
570570 web_url : z . string ( ) ,
571- members_count_with_descendants : z . coerce . number ( ) . optional ( ) ,
572- billable_members_count : z . coerce . number ( ) . optional ( ) ,
573- max_seats_used : z . coerce . number ( ) . optional ( ) ,
574- seats_in_use : z . coerce . number ( ) . optional ( ) ,
575- plan : z . string ( ) . optional ( ) ,
576- end_date : z . string ( ) . nullable ( ) . optional ( ) ,
577- trial_ends_on : z . string ( ) . nullable ( ) . optional ( ) ,
578- trial : z . coerce . boolean ( ) . optional ( ) ,
579- root_repository_size : z . coerce . number ( ) . optional ( ) ,
580- projects_count : z . coerce . number ( ) . optional ( ) ,
581- } ) ;
582-
583- export const GitLabNamespaceExistsResponseSchema = z . object ( {
584- exists : z . coerce . boolean ( ) ,
585- suggests : z . array ( z . string ( ) ) . optional ( ) ,
586- } ) ;
587-
588- // Repository related schemas
589- export const GitLabOwnerSchema = z . object ( {
590- username : z . string ( ) , // Changed from login to match GitLab API
591- id : z . coerce . string ( ) ,
592- avatar_url : z . string ( ) . nullable ( ) ,
593- web_url : z . string ( ) , // Changed from html_url to match GitLab API
594- name : z . string ( ) , // Added as GitLab includes full name
595- state : z . string ( ) , // Added as GitLab includes user state
596- } ) ;
597-
598- export const GitLabRepositorySchema = z . object ( {
599- id : z . coerce . string ( ) ,
600- name : z . string ( ) ,
601- path_with_namespace : z . string ( ) ,
602- visibility : z . string ( ) . optional ( ) ,
603- owner : GitLabOwnerSchema . optional ( ) ,
604- web_url : z . string ( ) . optional ( ) ,
605- description : z . string ( ) . nullable ( ) ,
606- fork : z . coerce . boolean ( ) . optional ( ) ,
607- ssh_url_to_repo : z . string ( ) . optional ( ) ,
608- http_url_to_repo : z . string ( ) . optional ( ) ,
609- created_at : z . string ( ) . optional ( ) ,
610- last_activity_at : z . string ( ) . optional ( ) ,
611- default_branch : z . string ( ) . nullable ( ) . optional ( ) ,
612- namespace : z
613- . object ( {
614- id : z . coerce . string ( ) ,
615- name : z . string ( ) ,
616- path : z . string ( ) ,
617- kind : z . string ( ) ,
618- full_path : z . string ( ) ,
571+ request_access_enabled : z . boolean ( ) . optional ( ) ,
572+ full_name : z . string ( ) ,
573+ full_path : z . string ( ) ,
619574 avatar_url : z . string ( ) . nullable ( ) . optional ( ) ,
620575 web_url : z . string ( ) . optional ( ) ,
621576 } )
0 commit comments