// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. package org_tangled // schema: org.tangled.ci.listWorkflowDefinitions import ( "context" "github.com/bluesky-social/indigo/lex/util" ) const ( CiListWorkflowDefinitionsNSID = "org.tangled.ci.listWorkflowDefinitions" ) // CiListWorkflowDefinitions_Output is the output of a org.tangled.ci.listWorkflowDefinitions call. type CiListWorkflowDefinitions_Output struct { Workflows []*CiDefs_Workflow `json:"workflows" cborgen:"workflows"` } // CiListWorkflowDefinitions calls the XRPC method "org.tangled.ci.listWorkflowDefinitions". func CiListWorkflowDefinitions(ctx context.Context, c util.LexClient, ref string, repo string) (*CiListWorkflowDefinitions_Output, error) { var out CiListWorkflowDefinitions_Output params := map[string]interface{}{} if ref != "" { params["ref"] = ref } params["repo"] = repo if err := c.LexDo(ctx, util.Query, "", "org.tangled.ci.listWorkflowDefinitions", params, nil, &out); err != nil { return nil, err } return &out, nil }