RegistryDashboard

Translation

Definition translation and upgrade operations. Retranslate with latest engine or upgrade legacy definitions.

3 methods

client.translation.getVersion()

Get the current translator engine version and schema information.

translatorVersionrequiredstring

Current translator engine version.

releaseDateoptionalstring

Translator release date.

schemaoptionalstring

Schema version supported.

getVersion(): Promise<TranslatorVersion>
typescript
import { RegistryClient } from '@uluops/registry-sdk';

const client = new RegistryClient({
  apiKey: 'ulr_your-api-key',
});

const result = await client.translation.getVersion();

console.log(result.translatorVersion);
Response Type
// Promise<TranslatorVersion>
{
  translatorVersion: string;
  releaseDate?: string;
  schema?: string;
}

client.translation.retranslate()

Retranslate a definition using the latest translator engine. Can update in-place or create a new patch version.

Requires authentication
typerequiredstring

Definition type.

agentcommandworkflowpipeline
namerequiredstring

Definition name.

versionrequiredstring

Definition version.

createNewVersionoptionalboolean

Create a new patch version instead of updating in-place.

retranslate(type: DefinitionType, name: string, version: string, options?: RetranslateOptions): Promise<Definition>
typescript
import { RegistryClient } from '@uluops/registry-sdk';

const client = new RegistryClient({
  apiKey: 'ulr_your-api-key',
});

const result = await client.translation.retranslate('agent', 'my-project', '1.0.0');
Response Type
Promise<Definition>

client.translation.upgradeDefinition()

Upgrade a legacy definition to the dual-storage format (YAML + schema).

Requires authentication
typerequiredstring

Definition type.

agentcommandworkflowpipeline
namerequiredstring

Definition name.

yamlrequiredstring

Legacy YAML content (max 100KB).

definitionrequiredDefinition

Upgraded definition.

versionrequiredstring

New version created.

changesrequiredobject

Details of changes applied during upgrade.

upgradeDefinition(type: DefinitionType, name: string, body: UpgradeDefinitionBody): Promise<UpgradeResult>
typescript
import { RegistryClient } from '@uluops/registry-sdk';

const client = new RegistryClient({
  apiKey: 'ulr_your-api-key',
});

const result = await client.translation.upgradeDefinition(
  'agent',
  'my-project',
  'name: example-agent\nversion: 1.0.0'
);

console.log(result.definition);
Response Type
// Promise<UpgradeResult>
{
  definition: Definition;
  version: string;
  changes: object;
}