API Documentation

Auto-generated from public static methods in /libraries. Only allowlisted classes are exposed via API.

Data

Data::connectFromConfig($db)
Connects using provided $db configuration.
This library is not exposed by the API allowlist.
Data::applyStrictModes($pdo)
This library is not exposed by the API allowlist.
Data::pdoRead()
Internal accessor (read)
This library is not exposed by the API allowlist.
Data::pdoWrite()
Internal accessor (write)
This library is not exposed by the API allowlist.
Data::fetchRow($sql, $params)
Fetch one row or null
This library is not exposed by the API allowlist.
Data::fetchRowWrite($sql, $params)
Fetch one row or null using the write connection
This library is not exposed by the API allowlist.
Data::fetchAll($sql, $params)
Fetch all rows
This library is not exposed by the API allowlist.
Data::fetchAllWrite($sql, $params)
Fetch all rows using the write connection
This library is not exposed by the API allowlist.
Data::execute($sql, $params)
Execute a statement (write) -> affected row count
This library is not exposed by the API allowlist.
Data::begin()
Begin transaction on write connection
This library is not exposed by the API allowlist.
Data::commit()
Commit transaction
This library is not exposed by the API allowlist.
Data::rollBack()
Roll back transaction
This library is not exposed by the API allowlist.
Data::lastInsertId()
Last insert id
This library is not exposed by the API allowlist.
Data::executeWrite($sql, $params, $autoCommit)
Execute a write statement and return a transaction id that can be
tracked via the configured socket signal and logs.
If $autoCommit is true, the statement runs in its own tx.
/
This library is not exposed by the API allowlist.
Data::lastTransactionId()
Return last generated transaction id (if any)
This library is not exposed by the API allowlist.
Data::isWriteCompleted($transactionId)
Trivial tracker — returns true once notified (always true immediately after)
This library is not exposed by the API allowlist.
Data::shutdown()
Close connections
This library is not exposed by the API allowlist.
Data::setSqlErrorHandler($handler)
This library is not exposed by the API allowlist.
Data::generateTransactionId()
This library is not exposed by the API allowlist.
Data::notifyWriteCompleted($txId, $extra)
This library is not exposed by the API allowlist.
Data::handlePdoException($exception, $sql, $params)
This library is not exposed by the API allowlist.

I18n

I18n::loadResources($basePath, $supportedLocales, $defaultLocale)
Load all locale resources once.
Invocation specification
GET: /modules/api/call_endpoint.php?function=I18n.loadResources&parameters=%7B%22basePath%22%3A%22...%22%2C%22supportedLocales%22%3A%22...%22%2C%22defaultLocale%22%3A%22...%22%7D
POST JSON:
{
  "function": "I18n.loadResources",
  "parameters": ["...", "...", "..."]
}
I18n::setLocale($locale)
Invocation specification
GET: /modules/api/call_endpoint.php?function=I18n.setLocale&parameters=%7B%22locale%22%3A%22...%22%7D
POST JSON:
{
  "function": "I18n.setLocale",
  "parameters": ["..."]
}
I18n::getLocale()
Invocation specification
GET: /modules/api/call_endpoint.php?function=I18n.getLocale&parameters=%5B%5D
POST JSON:
{
  "function": "I18n.getLocale",
  "parameters": []
}
I18n::isRtl()
Invocation specification
GET: /modules/api/call_endpoint.php?function=I18n.isRtl&parameters=%5B%5D
POST JSON:
{
  "function": "I18n.isRtl",
  "parameters": []
}
I18n::translate($key, $dataMap)
Simple translate with interpolation and fallback.
Invocation specification
GET: /modules/api/call_endpoint.php?function=I18n.translate&parameters=%7B%22key%22%3A%22...%22%2C%22dataMap%22%3A%22...%22%7D
POST JSON:
{
  "function": "I18n.translate",
  "parameters": ["...", "..."]
}
I18n::lookup($locale, $key)
Invocation specification
GET: /modules/api/call_endpoint.php?function=I18n.lookup&parameters=%7B%22locale%22%3A%22...%22%2C%22key%22%3A%22...%22%7D
POST JSON:
{
  "function": "I18n.lookup",
  "parameters": ["...", "..."]
}
I18n::bestMatchFromAcceptLanguage($header, $supported, $default)
Naive Accept-Language best match
Invocation specification
GET: /modules/api/call_endpoint.php?function=I18n.bestMatchFromAcceptLanguage&parameters=%7B%22header%22%3A%22...%22%2C%22supported%22%3A%22...%22%2C%22default%22%3A%22...%22%7D
POST JSON:
{
  "function": "I18n.bestMatchFromAcceptLanguage",
  "parameters": ["...", "...", "..."]
}

Migrations

Migrations::applyPending($logger)
Apply all pending migrations. Returns an array with migration names that
were applied. A logger callback can be provided to mirror CLI output.
@param callable|null $logger Receives a single message string.
@return array{applied: string[]}
/
This library is not exposed by the API allowlist.
Migrations::hasPending()
Determine if any migrations are pending.
/
This library is not exposed by the API allowlist.
Migrations::pendingMigrations()
Return structured data about pending migrations.
@return array<int, array{name: string, path: string, checksum: string}>
/
This library is not exposed by the API allowlist.
Migrations::ensureSchemaMigrationsTable()
This library is not exposed by the API allowlist.
Migrations::fetchAppliedChecksums()
@return array<string, string> filename => checksum
/
This library is not exposed by the API allowlist.
Migrations::splitSqlStatements($sql)
Split SQL file contents into individual statements.
@return string[]
/
This library is not exposed by the API allowlist.

OpenAIProjectScoper

OpenAIProjectScoper::__construct($apiKey, $model, $timeout, $apiBase)
This library is not exposed by the API allowlist.
OpenAIProjectScoper::analyzeBrief($brief)
This library is not exposed by the API allowlist.
OpenAIProjectScoper::fallbackInsights($brief)
This library is not exposed by the API allowlist.
OpenAIProjectScoper::countWords($text)
This library is not exposed by the API allowlist.
OpenAIProjectScoper::fallbackSummary($text)
This library is not exposed by the API allowlist.
OpenAIProjectScoper::fallbackHighlights($text)
This library is not exposed by the API allowlist.
OpenAIProjectScoper::fallbackComments($percent)
This library is not exposed by the API allowlist.
OpenAIProjectScoper::fallbackQuestions($percent)
This library is not exposed by the API allowlist.
OpenAIProjectScoper::ensureCoreTopics($questions, $brief)
This library is not exposed by the API allowlist.
OpenAIProjectScoper::analyzeBriefCoverage($brief)
This library is not exposed by the API allowlist.
OpenAIProjectScoper::fallbackManualCostEstimate($wordCount)
This library is not exposed by the API allowlist.
OpenAIProjectScoper::stageLabelFromPercent($percent)
This library is not exposed by the API allowlist.

SimpleMail

SimpleMail::sendPlainText($toEmail, $subject, $body, $config)
Send a plain-text email. Returns true on success.
@param string $toEmail
@param string $subject
@param string $body
@param array $config
@return bool
/
Invocation specification
GET: /modules/api/call_endpoint.php?function=SimpleMail.sendPlainText&parameters=%7B%22toEmail%22%3A%22...%22%2C%22subject%22%3A%22...%22%2C%22body%22%3A%22...%22%2C%22config%22%3A%22...%22%7D
POST JSON:
{
  "function": "SimpleMail.sendPlainText",
  "parameters": ["...", "...", "...", "..."]
}
SimpleMail::formatAddress($email, $name)
Invocation specification
GET: /modules/api/call_endpoint.php?function=SimpleMail.formatAddress&parameters=%7B%22email%22%3A%22...%22%2C%22name%22%3A%22...%22%7D
POST JSON:
{
  "function": "SimpleMail.formatAddress",
  "parameters": ["...", "..."]
}
SimpleMail::encodeHeader($text)
Invocation specification
GET: /modules/api/call_endpoint.php?function=SimpleMail.encodeHeader&parameters=%7B%22text%22%3A%22...%22%7D
POST JSON:
{
  "function": "SimpleMail.encodeHeader",
  "parameters": ["..."]
}

TaxIntake

TaxIntake::submit($data, $files, $userId)
This library is not exposed by the API allowlist.
TaxIntake::getLeaderboard()
This library is not exposed by the API allowlist.
TaxIntake::getProfileForUser($userId)
This library is not exposed by the API allowlist.
TaxIntake::parseYear($value)
This library is not exposed by the API allowlist.
TaxIntake::parseAmount($value)
This library is not exposed by the API allowlist.
TaxIntake::parseCoordinate($value)
This library is not exposed by the API allowlist.
TaxIntake::sanitizeString($value, $maxLength)
This library is not exposed by the API allowlist.
TaxIntake::sanitizeEmail($value)
This library is not exposed by the API allowlist.
TaxIntake::sanitizeEmoji($value)
This library is not exposed by the API allowlist.
TaxIntake::collectSocialLinks($raw)
This library is not exposed by the API allowlist.
TaxIntake::storeAvatarUpload($file)
This library is not exposed by the API allowlist.
TaxIntake::ensureUploadDir()
This library is not exposed by the API allowlist.
TaxIntake::replaceSocialLinks($taxpayerId, $links)
This library is not exposed by the API allowlist.
TaxIntake::loadSocialLinks($taxpayerIds)
This library is not exposed by the API allowlist.
TaxIntake::generateHandle($preferred, $anonymous)
This library is not exposed by the API allowlist.
TaxIntake::handleExists($handle)
This library is not exposed by the API allowlist.
TaxIntake::slugify($value)
This library is not exposed by the API allowlist.