/** * Workflow Variables Resource * * Resource manager for workflow variables (thresholds, config values). * Variables store configurable values for workflows and use $VARIABLE_NAME syntax. */ import type { CreateWorkflowVariableInput, ListOptions, PaginatedResponse, SystemVariableFilter, SystemVariableSort, UpdateWorkflowVariableInput, WorkflowVariableFilter, WorkflowVariableHistoryFilter, WorkflowVariableSort } from "@artu-ai/shared"; import { SystemVariable, WorkflowVariable } from "../models/WorkflowVariable"; import { BaseResource } from "./base"; /** * Resource manager for workflow variables. * * Variables store configurable threshold and configuration values for workflows. * They use $VARIABLE_NAME syntax and can be referenced in workflow conditions. * * @example * ```typescript * // List all variables * const { data: variables } = await sdk.workflows.variables.list(); * * // Create a new variable * const variable = await sdk.workflows.variables.create({ * name: "$MEX_AVI_THRESHOLD", * value: 16000, * description: "Threshold for AVI reporting", * effectiveDate: "2025-01-01", * }); * * // Update a variable * await sdk.workflows.variables.update(variable.id, { value: 20000 }); * ``` */ export declare class WorkflowVariablesResource extends BaseResource { /** * Create a new workflow variable. */ create(data: CreateWorkflowVariableInput): Promise; /** * Retrieve a workflow variable by ID. */ retrieve(id: string): Promise; /** * Update a workflow variable. */ update(id: string, data: UpdateWorkflowVariableInput): Promise; /** * Delete a workflow variable. */ delete(id: string): Promise; /** * List workflow variables with optional filtering and pagination. */ list(options?: ListOptions): Promise>; /** * Count workflow variables matching the given filter. */ count(filter?: WorkflowVariableFilter): Promise; /** * List system-defined workflow variables with optional filtering and pagination. * These are application-level variables available to all organizations. */ listSystem(options?: ListOptions): Promise>; /** * List all entries for a workflow variable name (history). * Returns all effectiveDate entries, sorted by effectiveDate DESC. */ listHistory(name: string, options?: ListOptions): Promise>; /** * List all entries for a system variable name (history). * Returns all effectiveDate entries, sorted by effectiveDate DESC. */ listSystemHistory(name: string, options?: { limit?: number; offset?: number; }): Promise>; }