@codika-io/helper-sdk
v1.7.0
Published
Codika helper SDK - types, utilities, and CLI for use case configuration, validation, and deployment
Maintainers
Readme
@codika-io/helper-sdk
Codika helper SDK - types and utilities for use case configuration.
Publishing to NPM
npm login
npm version patch # or minor / major
npm publish --access=public
$HOME/.codika/.claude/scripts/update-helper-sdk-version.sh x.y.zInstallation
npm install @codika-io/helper-sdkUsage
import {
loadAndEncodeWorkflow,
type FormInputSchema,
type FormOutputSchema,
type HttpTrigger,
type ProcessDeploymentConfigurationInput,
} from '@codika-io/helper-sdk';
// Load and encode a workflow JSON file
const workflowBase64 = loadAndEncodeWorkflow('/path/to/workflow.json');
// Use types for configuration
const config: ProcessDeploymentConfigurationInput = {
title: 'My Use Case',
subtitle: 'Description',
description: 'Full description',
workflows: [...],
tags: [],
integrationUids: [],
};Exports
Types
FormInputSchema,FormOutputSchema- Form field definitionsHttpTrigger,ScheduleTrigger,ServiceEventTrigger,SubworkflowTrigger- Workflow trigger typesProcessDeploymentConfigurationInput- Main configuration typeDeploymentInputSchema,DeploymentParameterValues- Deployment-time parametersAgentConfig- AI agent configurationProcessDataIngestionConfigInput- Data ingestion configuration- And more...
Functions
loadAndEncodeWorkflow(path)- Load a workflow JSON file and encode it to base64loadWorkflowJson(path)- Load a workflow JSON fileencodeWorkflowToBase64(workflow)- Encode a workflow object to base64decodeWorkflowFromBase64(base64)- Decode a base64 string to workflow objectencodeWorkflowFromString(json)- Encode a JSON string to base64
License
MIT
