Circle V2 API Docs
Preparing search index...
@repo/trpc
routers/superadmin/index
superadminRouter
Variable superadminRouter
Const
superadminRouter
:
BuiltRouter
<
{
ctx
:
TRPCContext
;
errorShape
:
DefaultErrorShape
;
meta
:
object
;
transformer
:
false
;
}
,
DecorateCreateRouterOptions
<
{
aiFeedback
:
BuiltRouter
<
{
ctx
:
TRPCContext
;
errorShape
:
DefaultErrorShape
;
meta
:
object
;
transformer
:
false
;
}
,
DecorateCreateRouterOptions
<
{
addComment
:
MutationProcedure
<
{
input
:
{
aiFeedbackId
:
string
;
body
:
string
}
;
meta
:
object
;
output
:
AddAiFeedbackCommentOutput
;
}
,
>
;
createLinearIssue
:
MutationProcedure
<
{
input
:
{
ids
:
string
[]
;
note
?:
string
}
;
meta
:
object
;
output
:
CreateAiFeedbackLinearIssueOutput
;
}
,
>
;
deleteComment
:
MutationProcedure
<
{
input
:
{
id
:
string
}
;
meta
:
object
;
output
:
DeleteAiFeedbackCommentOutput
;
}
,
>
;
list
:
QueryProcedure
<
{
input
:
{
cursor
?:
number
;
dateFrom
?:
string
;
dateTo
?:
string
;
entityId
?:
number
;
flow
?:
|
"case_chat"
|
"chart_review"
|
"note_generation"
|
"note_validation"
;
limit
?:
number
;
offset
?:
number
;
rating
?:
"thumbs_up"
|
"thumbs_down"
;
search
?:
string
;
severity
?:
"low"
|
"medium"
|
"high"
|
"critical"
;
statuses
?:
(...)
[]
;
}
;
meta
:
object
;
output
:
PaginatedResponse
<
SuperadminAiFeedbackRow
>
;
}
,
>
;
listComments
:
QueryProcedure
<
{
input
:
{
aiFeedbackId
:
string
}
;
meta
:
object
;
output
:
{
comments
:
{
ai_feedback_id
:
...
;
author_email
:
...
;
author_first_name
:
...
;
author_last_name
:
...
;
body
:
...
;
created_at
:
...
;
created_by
:
...
;
edited_at
:
...
;
id
:
...
;
}
[]
;
}
;
}
,
>
;
setSeverity
:
MutationProcedure
<
{
input
:
{
id
:
string
;
severity
:
"low"
|
"medium"
|
"high"
|
"critical"
;
}
;
meta
:
object
;
output
:
SetAiFeedbackSeverityOutput
;
}
,
>
;
setStatus
:
MutationProcedure
<
{
input
:
{
id
:
string
;
resolutionNote
?:
string
;
status
:
|
"open"
|
"acknowledged"
|
"in_progress"
|
"addressed"
|
"reopened"
|
"dismissed"
;
}
;
meta
:
object
;
output
:
SetAiFeedbackStatusOutput
;
}
,
>
;
updateComment
:
MutationProcedure
<
{
input
:
{
body
:
string
;
id
:
string
}
;
meta
:
object
;
output
:
UpdateAiFeedbackCommentOutput
;
}
,
>
;
}
,
>
,
>
;
auditRuns
:
BuiltRouter
<
{
ctx
:
TRPCContext
;
errorShape
:
DefaultErrorShape
;
meta
:
object
;
transformer
:
false
;
}
,
DecorateCreateRouterOptions
<
{
compareQuestion
:
MutationProcedure
<
{
input
:
|
{
arms
?:
(...)
|
(...)
;
auditQuestionId
:
string
;
patientId
:
string
;
treatmentEpisodeId
?:
(...)
|
(...)
;
}
|
{
arms
?:
(...)
|
(...)
;
patientId
:
string
;
question
:
string
;
questionType
:
(...)
|
(...)
;
reviewCriteriaInstructions
?:
(...)
|
(...)
;
treatmentEpisodeId
?:
(...)
|
(...)
;
}
;
meta
:
object
;
output
:
CompareQuestionResult
;
}
,
>
;
getQuestionById
:
QueryProcedure
<
{
input
:
{
id
:
string
}
;
meta
:
object
;
output
:
{
id
:
AuditQuestionId
;
question
:
string
|
null
;
question_type
:
"summary"
|
"pass_fail"
;
reviewCriteriaInstructions
:
string
|
null
;
summaryInstructions
:
string
|
null
;
template_id
:
(...)
&
(...)
|
null
;
}
;
}
,
>
;
list
:
QueryProcedure
<
{
input
:
{
cursor
?:
number
;
dateFrom
?:
string
;
dateTo
?:
string
;
entityId
?:
number
;
hasPendingResponses
?:
boolean
;
limit
?:
number
;
offset
?:
number
;
}
;
meta
:
object
;
output
:
PaginatedResponse
<
SuperadminAuditRunItem
>
;
}
,
>
;
requeue
:
MutationProcedure
<
{
input
:
{
auditQuestionIds
?:
(...)
[]
;
auditRunId
:
string
}
;
meta
:
object
;
output
:
{
success
:
boolean
}
;
}
,
>
;
rerunQuestionV3
:
MutationProcedure
<
{
input
:
{
auditQuestionId
:
string
;
auditRunId
:
string
}
;
meta
:
object
;
output
:
{
durationMs
:
number
;
patientId
:
string
&
{
__brand
:
...
}
;
result
:
AgentQuestionResult
;
traceUrl
:
string
|
null
;
}
;
}
,
>
;
}
,
>
,
>
;
automationRuns
:
BuiltRouter
<
{
ctx
:
TRPCContext
;
errorShape
:
DefaultErrorShape
;
meta
:
object
;
transformer
:
false
;
}
,
DecorateCreateRouterOptions
<
{
filterOptions
:
QueryProcedure
<
{
input
:
{
type
:
"extend"
|
"rpa"
}
;
meta
:
object
;
output
:
{
sources
:
string
[]
;
syncTypes
:
string
[]
}
;
}
,
>
;
get
:
QueryProcedure
<
{
input
:
|
{
id
:
string
;
type
:
"rpa"
}
|
{
id
:
string
;
type
:
"extend"
}
;
meta
:
object
;
output
:
|
{
run
:
{
completed_at
:
...
;
created_at
:
...
;
current_step
:
...
;
document_count
:
...
;
dry_run
:
...
;
entity_id
:
...
;
external_run_id
:
...
;
facility_id
:
...
;
failure_reason
:
...
;
id
:
...
;
integration_id
:
...
;
last_step_at
:
...
;
live_view_url
:
...
;
patient_id
:
...
;
raw_payload
:
...
;
started_at
:
...
;
status
:
...
;
step_history
:
...
;
sync_type
:
...
;
treatment_episode_id
:
...
;
triggered_by
:
...
;
}
;
type
:
"rpa"
;
}
|
{
run
:
{
completed_at
:
...
;
created_at
:
...
;
entity_id
:
...
;
external_run_id
:
...
;
facility_id
:
...
;
failure_reason
:
...
;
file_name
:
...
;
id
:
...
;
integration_id
:
...
;
patient_chart_id
:
...
;
patient_id
:
...
;
raw_payload
:
...
;
rpa_run_id
:
...
;
source
:
...
;
status
:
...
;
treatment_episode_id
:
...
;
workflow_id
:
...
;
}
;
type
:
"extend"
;
}
;
}
,
>
;
getRecording
:
QueryProcedure
<
{
input
:
{
id
:
string
}
;
meta
:
object
;
output
:
{
url
:
string
|
null
}
;
}
,
>
;
list
:
QueryProcedure
<
{
input
:
{
createdAtDateRange
?:
{
from
:
...
;
to
:
...
}
;
cursor
?:
number
;
entityIds
?:
(...)
[]
;
limit
?:
number
;
offset
?:
number
;
patientIds
?:
(...)
[]
;
search
?:
string
;
sources
?:
(...)
[]
;
statuses
?:
(...)
[]
;
syncTypes
?:
(...)
[]
;
type
:
"extend"
|
"rpa"
;
}
;
meta
:
object
;
output
:
|
PaginatedResponse
<
{
completed_at
:
...
;
created_at
:
...
;
current_step
:
...
;
document_count
:
...
;
dry_run
:
...
;
entity_id
:
...
;
external_run_id
:
...
;
facility_id
:
...
;
failure_reason
:
...
;
id
:
...
;
integration_id
:
...
;
last_step_at
:
...
;
live_view_url
:
...
;
patient_first_name
:
...
;
patient_id
:
...
;
patient_last_name
:
...
;
raw_payload
:
...
;
started_at
:
...
;
status
:
...
;
step_history
:
...
;
sync_type
:
...
;
treatment_episode_id
:
...
;
triggered_by
:
...
;
}
,
>
|
PaginatedResponse
<
{
completed_at
:
...
;
created_at
:
...
;
entity_id
:
...
;
external_run_id
:
...
;
facility_id
:
...
;
failure_reason
:
...
;
file_name
:
...
;
id
:
...
;
integration_id
:
...
;
patient_chart_id
:
...
;
patient_first_name
:
...
;
patient_id
:
...
;
patient_last_name
:
...
;
raw_payload
:
...
;
rpa_run_id
:
...
;
source
:
...
;
status
:
...
;
treatment_episode_id
:
...
;
workflow_id
:
...
;
}
,
>
;
}
,
>
;
listGroupedByPatient
:
QueryProcedure
<
{
input
:
{
createdAtDateRange
?:
{
from
:
...
;
to
:
...
}
;
cursor
?:
number
;
entityIds
?:
(...)
[]
;
limit
?:
number
;
offset
?:
number
;
patientIds
?:
(...)
[]
;
search
?:
string
;
sources
?:
(...)
[]
;
statuses
?:
(...)
[]
;
syncTypes
?:
(...)
[]
;
type
:
"extend"
|
"rpa"
;
}
;
meta
:
object
;
output
:
|
PaginatedResponse
<
{
completed_at
:
...
;
created_at
:
...
;
current_step
:
...
;
document_count
:
...
;
dry_run
:
...
;
entity_id
:
...
;
external_run_id
:
...
;
facility_id
:
...
;
failure_reason
:
...
;
id
:
...
;
integration_id
:
...
;
last_step_at
:
...
;
live_view_url
:
...
;
patient_first_name
:
...
;
patient_id
:
...
;
patient_last_name
:
...
;
raw_payload
:
...
;
started_at
:
...
;
status
:
...
;
step_history
:
...
;
sync_type
:
...
;
treatment_episode_id
:
...
;
triggered_by
:
...
;
}
,
>
|
PaginatedResponse
<
{
completed_at
:
...
;
created_at
:
...
;
entity_id
:
...
;
external_run_id
:
...
;
facility_id
:
...
;
failure_reason
:
...
;
file_name
:
...
;
id
:
...
;
integration_id
:
...
;
patient_chart_id
:
...
;
patient_first_name
:
...
;
patient_id
:
...
;
patient_last_name
:
...
;
raw_payload
:
...
;
rpa_run_id
:
...
;
source
:
...
;
status
:
...
;
treatment_episode_id
:
...
;
workflow_id
:
...
;
}
,
>
;
}
,
>
;
retry
:
MutationProcedure
<
{
input
:
|
{
id
:
string
;
type
:
"rpa"
}
|
{
id
:
string
;
type
:
"extend"
}
;
meta
:
object
;
output
:
{
success
:
true
}
;
}
,
>
;
}
,
>
,
>
;
evalClones
:
BuiltRouter
<
{
ctx
:
TRPCContext
;
errorShape
:
DefaultErrorShape
;
meta
:
object
;
transformer
:
false
;
}
,
DecorateCreateRouterOptions
<
{
delete
:
MutationProcedure
<
{
input
:
{
patientId
:
string
}
;
meta
:
object
;
output
:
DeletePatientFromEvalBranchResult
;
}
,
>
;
list
:
QueryProcedure
<
{
input
:
{
cursor
?:
number
;
limit
?:
number
;
offset
?:
number
}
;
meta
:
object
;
output
:
PaginatedResponse
<
EvalBranchPatient
>
;
}
,
>
;
}
,
>
,
>
;
evals
:
BuiltRouter
<
{
ctx
:
TRPCContext
;
errorShape
:
DefaultErrorShape
;
meta
:
object
;
transformer
:
false
;
}
,
DecorateCreateRouterOptions
<
{
createDatasetExamples
:
MutationProcedure
<
{
input
:
{
auditQuestionId
?:
string
;
auditRunId
:
string
}
;
meta
:
object
;
output
:
PushAuditRunToEvalDatasetResult
;
}
,
>
;
runDateResolutionExperiment
:
MutationProcedure
<
{
input
:
{
datasetName
?:
string
;
experimentPrefix
?:
string
}
;
meta
:
object
;
output
:
{
datasetName
:
string
}
;
}
,
>
;
runExpandQuestionExperiment
:
MutationProcedure
<
{
input
:
{
datasetName
?:
string
;
experimentPrefix
?:
string
;
injectIntent
?:
boolean
;
}
;
meta
:
object
;
output
:
{
datasetName
:
string
;
injectIntent
:
boolean
}
;
}
,
>
;
runExperiment
:
MutationProcedure
<
{
input
:
{
datasetName
?:
string
;
experimentPrefix
?:
string
;
patientId
?:
string
;
splits
?:
(...)
[]
;
}
;
meta
:
object
;
output
:
EnqueueEvalExperimentResult
;
}
,
>
;
}
,
>
,
>
;
impersonation
:
BuiltRouter
<
{
ctx
:
TRPCContext
;
errorShape
:
DefaultErrorShape
;
meta
:
object
;
transformer
:
false
;
}
,
DecorateCreateRouterOptions
<
{
endImpersonation
:
MutationProcedure
<
{
input
:
void
;
meta
:
object
;
output
:
{
ended
:
boolean
}
}
,
>
;
getCurrentImpersonation
:
QueryProcedure
<
{
input
:
void
;
meta
:
object
;
output
:
GetCurrentImpersonationServiceResult
|
null
;
}
,
>
;
startImpersonation
:
MutationProcedure
<
{
input
:
{
entityId
:
number
}
;
meta
:
object
;
output
:
StartImpersonationServiceResult
;
}
,
>
;
startUserImpersonation
:
MutationProcedure
<
{
input
:
{
profileId
:
string
}
;
meta
:
object
;
output
:
StartUserImpersonationServiceResult
;
}
,
>
;
}
,
>
,
>
;
orgs
:
BuiltRouter
<
{
ctx
:
TRPCContext
;
errorShape
:
DefaultErrorShape
;
meta
:
object
;
transformer
:
false
;
}
,
DecorateCreateRouterOptions
<
{
create
:
MutationProcedure
<
{
input
:
{
companyName
:
string
}
;
meta
:
object
;
output
:
{
entityId
:
EntityId
}
;
}
,
>
;
get
:
QueryProcedure
<
{
input
:
{
entityId
:
number
}
;
meta
:
object
;
output
:
{
companyName
:
string
;
entityId
:
EntityId
}
;
}
,
>
;
list
:
QueryProcedure
<
{
input
:
{
cursor
?:
number
;
includeArchived
?:
boolean
;
limit
?:
number
;
offset
?:
number
;
search
?:
string
;
}
;
meta
:
object
;
output
:
PaginatedResponse
<
{
archivedAt
:
(...)
|
(...)
;
companyName
:
string
;
createdAt
:
(...)
|
(...)
;
entityId
:
EntityId
;
memberCount
:
number
;
}
,
>
;
}
,
>
;
setArchived
:
MutationProcedure
<
{
input
:
{
archived
:
boolean
;
entityId
:
number
}
;
meta
:
object
;
output
:
{
success
:
boolean
}
;
}
,
>
;
}
,
>
,
>
;
orgUsers
:
BuiltRouter
<
{
ctx
:
TRPCContext
;
errorShape
:
DefaultErrorShape
;
meta
:
object
;
transformer
:
false
;
}
,
DecorateCreateRouterOptions
<
{
list
:
QueryProcedure
<
{
input
:
{
cursor
?:
number
;
entityId
:
number
;
limit
?:
number
;
offset
?:
number
;
search
?:
string
;
sortBy
?:
"name"
|
"email"
;
sortOrder
?:
"asc"
|
"desc"
;
}
;
meta
:
object
;
output
:
PaginatedResponse
<
{
email
:
(...)
|
(...)
;
first_name
:
(...)
|
(...)
;
id
:
ProfileId
;
is_superadmin
:
boolean
;
last_name
:
(...)
|
(...)
;
role
:
UserRole
;
role_id
:
(...)
&
(...)
;
role_name
:
string
;
teams
:
(...)
[]
;
title
:
(...)
|
(...)
;
user_id
:
(...)
|
(...)
;
}
,
>
;
}
,
>
;
listClients
:
QueryProcedure
<
{
input
:
{
entityId
:
number
;
profileId
:
string
}
;
meta
:
object
;
output
:
{
items
:
{
dob
:
...
;
first_name
:
...
;
last_name
:
...
;
patient_id
:
...
;
session_count
:
...
;
}
[]
;
}
;
}
,
>
;
listRoles
:
QueryProcedure
<
{
input
:
DefaultValue
<
TInputIn
,
void
>
;
meta
:
object
;
output
:
{
role_id
:
RoleId
;
role_name
:
string
}
[]
;
}
,
>
;
transferClients
:
MutationProcedure
<
{
input
:
{
entityId
:
number
;
fromProfileId
:
string
;
patientIds
:
string
[]
;
toProfileId
:
string
;
}
;
meta
:
object
;
output
:
TransferClientsServiceResult
;
}
,
>
;
updateRole
:
MutationProcedure
<
{
input
:
{
entityId
:
number
;
profileId
:
string
;
roleId
:
number
}
;
meta
:
object
;
output
:
{
success
:
boolean
}
;
}
,
>
;
}
,
>
,
>
;
templates
:
BuiltRouter
<
{
ctx
:
TRPCContext
;
errorShape
:
DefaultErrorShape
;
meta
:
object
;
transformer
:
false
;
}
,
DecorateCreateRouterOptions
<
{
list
:
QueryProcedure
<
{
input
:
{
createdAtDateRange
?:
{
from
:
...
;
to
:
...
}
;
createdByIds
?:
(...)
[]
;
cursor
?:
number
;
limit
?:
number
;
offset
?:
number
;
orgIds
?:
(...)
[]
;
search
?:
string
;
sortOrder
?:
"asc"
|
"desc"
;
}
;
meta
:
object
;
output
:
PaginatedResponse
<
{
created_at
:
DbDate
;
first_name
:
(...)
|
(...)
;
id
:
AuditTemplateId
;
last_name
:
(...)
|
(...)
;
name
:
(...)
|
(...)
;
org_name
:
(...)
|
(...)
;
question_count
:
(...)
|
(...)
;
}
,
>
;
}
,
>
;
listCreators
:
QueryProcedure
<
{
input
:
{
cursor
?:
number
;
limit
?:
number
;
offset
?:
number
;
search
?:
string
;
}
;
meta
:
object
;
output
:
PaginatedResponse
<
{
first_name
:
(...)
|
(...)
;
last_name
:
(...)
|
(...)
;
user_id
:
UserId
;
}
,
>
;
}
,
>
;
listForExport
:
QueryProcedure
<
{
input
:
{
createdAtDateRange
?:
{
from
:
...
;
to
:
...
}
;
createdByIds
?:
(...)
[]
;
orgIds
?:
(...)
[]
;
search
?:
string
;
}
;
meta
:
object
;
output
:
{
created_at
:
DbDate
;
custom_review_criteria_prompt
:
(...)
|
(...)
;
custom_summary_prompt
:
(...)
|
(...)
;
description
:
(...)
|
(...)
;
id
:
AuditTemplateId
;
name
:
(...)
|
(...)
;
questions
:
(...)
[]
;
}
[]
;
}
,
>
;
}
,
>
,
>
;
usage
:
BuiltRouter
<
{
ctx
:
TRPCContext
;
errorShape
:
DefaultErrorShape
;
meta
:
object
;
transformer
:
false
;
}
,
DecorateCreateRouterOptions
<
{
get
:
QueryProcedure
<
{
input
:
{
dateRange
?:
{
from
:
...
;
to
:
...
}
;
entityId
:
number
;
facilityIds
?:
unknown
;
}
;
meta
:
object
;
output
:
UsageResult
;
}
,
>
;
listFacilities
:
QueryProcedure
<
{
input
:
{
entityId
:
number
}
;
meta
:
object
;
output
:
FacilityWithLevelsOfCare
[]
;
}
,
>
;
}
,
>
,
>
;
}
,
>
,
>
= ...
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Circle V2 API Docs
Loading...