import Triglit from 'triglit';
const client = new Triglit({
apiKey: 'My API Key',
});
const response = await client.customNodes.retrieveRegistry();
console.log(response.nodes);{
"nodes": [
{
"type": "input",
"name": "User Input",
"description": "Waits for user input and pauses workflow execution",
"version": "1.0.0",
"isBuiltIn": true,
"inputSchema": {
"data": {
"type": "any",
"description": "Input data to process",
"required": true
}
},
"outputSchema": {
"result": {
"type": "object",
"description": "Processing result",
"properties": {
"success": {
"type": "boolean"
},
"data": {
"type": "any"
}
}
}
},
"configSchema": {
"timeout": {
"type": "number",
"description": "Timeout in milliseconds",
"min": 1000,
"max": 300000,
"default": 30000
},
"options": {
"type": "object",
"description": "Additional options",
"properties": {
"retryOnError": {
"type": "boolean",
"default": false
},
"maxRetries": {
"type": "number",
"min": 0,
"max": 5
}
}
}
},
"canPause": false
}
],
"total": 7
}Retrieves a complete registry of all available nodes (built-in + custom) for the tenant.
import Triglit from 'triglit';
const client = new Triglit({
apiKey: 'My API Key',
});
const response = await client.customNodes.retrieveRegistry();
console.log(response.nodes);{
"nodes": [
{
"type": "input",
"name": "User Input",
"description": "Waits for user input and pauses workflow execution",
"version": "1.0.0",
"isBuiltIn": true,
"inputSchema": {
"data": {
"type": "any",
"description": "Input data to process",
"required": true
}
},
"outputSchema": {
"result": {
"type": "object",
"description": "Processing result",
"properties": {
"success": {
"type": "boolean"
},
"data": {
"type": "any"
}
}
}
},
"configSchema": {
"timeout": {
"type": "number",
"description": "Timeout in milliseconds",
"min": 1000,
"max": 300000,
"default": 30000
},
"options": {
"type": "object",
"description": "Additional options",
"properties": {
"retryOnError": {
"type": "boolean",
"default": false
},
"maxRetries": {
"type": "number",
"min": 0,
"max": 5
}
}
}
},
"canPause": false
}
],
"total": 7
}Was this page helpful?