package api import ( "net/http" "atlas9.dev/c/core" "atlas9.dev/c/core/iam" ) func TenantInvitationsApi(mux *http.ServeMux, impl *TenantInvitationsImpl) { mux.HandleFunc("GET /accept-invitation", impl.AcceptPage) mux.HandleFunc("POST /TenantInvitations.Create", impl.Create) mux.HandleFunc("POST /TenantInvitations.Accept", impl.Accept) mux.HandleFunc("POST /TenantInvitations.Decline", impl.Decline) mux.HandleFunc("POST /TenantInvitations.List", impl.List) mux.HandleFunc("POST /TenantInvitations.ListByEmail", impl.ListByEmail) mux.HandleFunc("POST /TenantInvitations.Delete", impl.Delete) } type TenantInvitations_CreateReq struct { Tenant core.ID Email string } type TenantInvitations_CreateRes struct { Token string } type TenantInvitations_AcceptReq struct { Token string } type TenantInvitations_AcceptRes struct{} type TenantInvitations_DeclineReq struct { Token string } type TenantInvitations_DeclineRes struct{} type TenantInvitations_ListReq struct { Tenant core.ID Page core.PageReq } type TenantInvitations_ListRes struct { Page core.Page[iam.TenantInvitation] } type TenantInvitations_ListByEmailReq struct { Email string Page core.PageReq } type TenantInvitations_ListByEmailRes struct { Page core.Page[iam.TenantInvitation] } type TenantInvitations_DeleteReq struct { Tenant core.ID Email string } type TenantInvitations_DeleteRes struct{} func (r *TenantInvitations_CreateReq) Prepare() error { return nil } func (r *TenantInvitations_AcceptReq) Prepare() error { return nil } func (r *TenantInvitations_DeclineReq) Prepare() error { return nil } func (r *TenantInvitations_ListReq) Prepare() error { return nil } func (r *TenantInvitations_ListByEmailReq) Prepare() error { return nil } func (r *TenantInvitations_DeleteReq) Prepare() error { return nil }