[WIP] Workflows
This commit is contained in:
@@ -6,57 +6,64 @@
|
||||
* Response DTO for action information
|
||||
*/
|
||||
export type ActionResponse = {
|
||||
/**
|
||||
* Creation timestamp
|
||||
*/
|
||||
created: string;
|
||||
/**
|
||||
* Action description
|
||||
*/
|
||||
description: string;
|
||||
/**
|
||||
* Entry point
|
||||
*/
|
||||
entrypoint: string;
|
||||
/**
|
||||
* Action ID
|
||||
*/
|
||||
id: number;
|
||||
/**
|
||||
* Whether this is an ad-hoc action (not from pack installation)
|
||||
*/
|
||||
is_adhoc: boolean;
|
||||
/**
|
||||
* Human-readable label
|
||||
*/
|
||||
label: string;
|
||||
/**
|
||||
* Output schema
|
||||
*/
|
||||
out_schema: any | null;
|
||||
/**
|
||||
* Pack ID
|
||||
*/
|
||||
pack: number;
|
||||
/**
|
||||
* Pack reference
|
||||
*/
|
||||
pack_ref: string;
|
||||
/**
|
||||
* Parameter schema
|
||||
*/
|
||||
param_schema: any | null;
|
||||
/**
|
||||
* Unique reference identifier
|
||||
*/
|
||||
ref: string;
|
||||
/**
|
||||
* Runtime ID
|
||||
*/
|
||||
runtime?: number | null;
|
||||
/**
|
||||
* Last update timestamp
|
||||
*/
|
||||
updated: string;
|
||||
/**
|
||||
* Creation timestamp
|
||||
*/
|
||||
created: string;
|
||||
/**
|
||||
* Action description
|
||||
*/
|
||||
description: string;
|
||||
/**
|
||||
* Entry point
|
||||
*/
|
||||
entrypoint: string;
|
||||
/**
|
||||
* Action ID
|
||||
*/
|
||||
id: number;
|
||||
/**
|
||||
* Whether this is an ad-hoc action (not from pack installation)
|
||||
*/
|
||||
is_adhoc: boolean;
|
||||
/**
|
||||
* Human-readable label
|
||||
*/
|
||||
label: string;
|
||||
/**
|
||||
* Output schema
|
||||
*/
|
||||
out_schema: any | null;
|
||||
/**
|
||||
* Pack ID
|
||||
*/
|
||||
pack: number;
|
||||
/**
|
||||
* Pack reference
|
||||
*/
|
||||
pack_ref: string;
|
||||
/**
|
||||
* Parameter schema (StackStorm-style with inline required/secret)
|
||||
*/
|
||||
param_schema: any | null;
|
||||
/**
|
||||
* Unique reference identifier
|
||||
*/
|
||||
ref: string;
|
||||
/**
|
||||
* Runtime ID
|
||||
*/
|
||||
runtime?: number | null;
|
||||
/**
|
||||
* Semver version constraint for the runtime (e.g., ">=3.12", ">=3.12,<4.0", "~18.0")
|
||||
*/
|
||||
runtime_version_constraint?: string | null;
|
||||
/**
|
||||
* Last update timestamp
|
||||
*/
|
||||
updated: string;
|
||||
/**
|
||||
* Workflow definition ID (non-null if this action is a workflow)
|
||||
*/
|
||||
workflow_def?: number | null;
|
||||
};
|
||||
|
||||
|
||||
@@ -6,41 +6,48 @@
|
||||
* Simplified action response (for list endpoints)
|
||||
*/
|
||||
export type ActionSummary = {
|
||||
/**
|
||||
* Creation timestamp
|
||||
*/
|
||||
created: string;
|
||||
/**
|
||||
* Action description
|
||||
*/
|
||||
description: string;
|
||||
/**
|
||||
* Entry point
|
||||
*/
|
||||
entrypoint: string;
|
||||
/**
|
||||
* Action ID
|
||||
*/
|
||||
id: number;
|
||||
/**
|
||||
* Human-readable label
|
||||
*/
|
||||
label: string;
|
||||
/**
|
||||
* Pack reference
|
||||
*/
|
||||
pack_ref: string;
|
||||
/**
|
||||
* Unique reference identifier
|
||||
*/
|
||||
ref: string;
|
||||
/**
|
||||
* Runtime ID
|
||||
*/
|
||||
runtime?: number | null;
|
||||
/**
|
||||
* Last update timestamp
|
||||
*/
|
||||
updated: string;
|
||||
/**
|
||||
* Creation timestamp
|
||||
*/
|
||||
created: string;
|
||||
/**
|
||||
* Action description
|
||||
*/
|
||||
description: string;
|
||||
/**
|
||||
* Entry point
|
||||
*/
|
||||
entrypoint: string;
|
||||
/**
|
||||
* Action ID
|
||||
*/
|
||||
id: number;
|
||||
/**
|
||||
* Human-readable label
|
||||
*/
|
||||
label: string;
|
||||
/**
|
||||
* Pack reference
|
||||
*/
|
||||
pack_ref: string;
|
||||
/**
|
||||
* Unique reference identifier
|
||||
*/
|
||||
ref: string;
|
||||
/**
|
||||
* Runtime ID
|
||||
*/
|
||||
runtime?: number | null;
|
||||
/**
|
||||
* Semver version constraint for the runtime
|
||||
*/
|
||||
runtime_version_constraint?: string | null;
|
||||
/**
|
||||
* Last update timestamp
|
||||
*/
|
||||
updated: string;
|
||||
/**
|
||||
* Workflow definition ID (non-null if this action is a workflow)
|
||||
*/
|
||||
workflow_def?: number | null;
|
||||
};
|
||||
|
||||
|
||||
@@ -6,66 +6,73 @@
|
||||
* Standard API response wrapper
|
||||
*/
|
||||
export type ApiResponse_ActionResponse = {
|
||||
/**
|
||||
* Response DTO for action information
|
||||
*/
|
||||
data: {
|
||||
/**
|
||||
* Response DTO for action information
|
||||
* Creation timestamp
|
||||
*/
|
||||
data: {
|
||||
/**
|
||||
* Creation timestamp
|
||||
*/
|
||||
created: string;
|
||||
/**
|
||||
* Action description
|
||||
*/
|
||||
description: string;
|
||||
/**
|
||||
* Entry point
|
||||
*/
|
||||
entrypoint: string;
|
||||
/**
|
||||
* Action ID
|
||||
*/
|
||||
id: number;
|
||||
/**
|
||||
* Whether this is an ad-hoc action (not from pack installation)
|
||||
*/
|
||||
is_adhoc: boolean;
|
||||
/**
|
||||
* Human-readable label
|
||||
*/
|
||||
label: string;
|
||||
/**
|
||||
* Output schema
|
||||
*/
|
||||
out_schema: any | null;
|
||||
/**
|
||||
* Pack ID
|
||||
*/
|
||||
pack: number;
|
||||
/**
|
||||
* Pack reference
|
||||
*/
|
||||
pack_ref: string;
|
||||
/**
|
||||
* Parameter schema
|
||||
*/
|
||||
param_schema: any | null;
|
||||
/**
|
||||
* Unique reference identifier
|
||||
*/
|
||||
ref: string;
|
||||
/**
|
||||
* Runtime ID
|
||||
*/
|
||||
runtime?: number | null;
|
||||
/**
|
||||
* Last update timestamp
|
||||
*/
|
||||
updated: string;
|
||||
};
|
||||
created: string;
|
||||
/**
|
||||
* Optional message
|
||||
* Action description
|
||||
*/
|
||||
message?: string | null;
|
||||
description: string;
|
||||
/**
|
||||
* Entry point
|
||||
*/
|
||||
entrypoint: string;
|
||||
/**
|
||||
* Action ID
|
||||
*/
|
||||
id: number;
|
||||
/**
|
||||
* Whether this is an ad-hoc action (not from pack installation)
|
||||
*/
|
||||
is_adhoc: boolean;
|
||||
/**
|
||||
* Human-readable label
|
||||
*/
|
||||
label: string;
|
||||
/**
|
||||
* Output schema
|
||||
*/
|
||||
out_schema: any | null;
|
||||
/**
|
||||
* Pack ID
|
||||
*/
|
||||
pack: number;
|
||||
/**
|
||||
* Pack reference
|
||||
*/
|
||||
pack_ref: string;
|
||||
/**
|
||||
* Parameter schema (StackStorm-style with inline required/secret)
|
||||
*/
|
||||
param_schema: any | null;
|
||||
/**
|
||||
* Unique reference identifier
|
||||
*/
|
||||
ref: string;
|
||||
/**
|
||||
* Runtime ID
|
||||
*/
|
||||
runtime?: number | null;
|
||||
/**
|
||||
* Semver version constraint for the runtime (e.g., ">=3.12", ">=3.12,<4.0", "~18.0")
|
||||
*/
|
||||
runtime_version_constraint?: string | null;
|
||||
/**
|
||||
* Last update timestamp
|
||||
*/
|
||||
updated: string;
|
||||
/**
|
||||
* Workflow definition ID (non-null if this action is a workflow)
|
||||
*/
|
||||
workflow_def?: number | null;
|
||||
};
|
||||
/**
|
||||
* Optional message
|
||||
*/
|
||||
message?: string | null;
|
||||
};
|
||||
|
||||
|
||||
@@ -38,6 +38,10 @@ export type ApiResponse_EnforcementResponse = {
|
||||
* Enforcement payload
|
||||
*/
|
||||
payload: Record<string, any>;
|
||||
/**
|
||||
* Timestamp when the enforcement was resolved (status changed from created to processed/disabled)
|
||||
*/
|
||||
resolved_at?: string | null;
|
||||
rule?: (null | i64);
|
||||
/**
|
||||
* Rule reference
|
||||
@@ -51,10 +55,6 @@ export type ApiResponse_EnforcementResponse = {
|
||||
* Trigger reference
|
||||
*/
|
||||
trigger_ref: string;
|
||||
/**
|
||||
* Last update timestamp
|
||||
*/
|
||||
updated: string;
|
||||
};
|
||||
/**
|
||||
* Optional message
|
||||
|
||||
@@ -42,10 +42,6 @@ export type ApiResponse_EventResponse = {
|
||||
* Trigger reference
|
||||
*/
|
||||
trigger_ref: string;
|
||||
/**
|
||||
* Last update timestamp
|
||||
*/
|
||||
updated: string;
|
||||
};
|
||||
/**
|
||||
* Optional message
|
||||
|
||||
@@ -2,63 +2,79 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
import type { ExecutionStatus } from './ExecutionStatus';
|
||||
import type { ExecutionStatus } from "./ExecutionStatus";
|
||||
/**
|
||||
* Standard API response wrapper
|
||||
*/
|
||||
export type ApiResponse_ExecutionResponse = {
|
||||
/**
|
||||
* Response DTO for execution information
|
||||
*/
|
||||
data: {
|
||||
/**
|
||||
* Response DTO for execution information
|
||||
* Action ID (optional, may be null for ad-hoc executions)
|
||||
*/
|
||||
data: {
|
||||
/**
|
||||
* Action ID (optional, may be null for ad-hoc executions)
|
||||
*/
|
||||
action?: number | null;
|
||||
/**
|
||||
* Action reference
|
||||
*/
|
||||
action_ref: string;
|
||||
/**
|
||||
* Execution configuration/parameters
|
||||
*/
|
||||
config: Record<string, any>;
|
||||
/**
|
||||
* Creation timestamp
|
||||
*/
|
||||
created: string;
|
||||
/**
|
||||
* Enforcement ID (rule enforcement that triggered this)
|
||||
*/
|
||||
enforcement?: number | null;
|
||||
/**
|
||||
* Executor ID (worker/executor that ran this)
|
||||
*/
|
||||
executor?: number | null;
|
||||
/**
|
||||
* Execution ID
|
||||
*/
|
||||
id: number;
|
||||
/**
|
||||
* Parent execution ID (for nested/child executions)
|
||||
*/
|
||||
parent?: number | null;
|
||||
/**
|
||||
* Execution result/output
|
||||
*/
|
||||
result: Record<string, any>;
|
||||
/**
|
||||
* Execution status
|
||||
*/
|
||||
status: ExecutionStatus;
|
||||
/**
|
||||
* Last update timestamp
|
||||
*/
|
||||
updated: string;
|
||||
};
|
||||
action?: number | null;
|
||||
/**
|
||||
* Optional message
|
||||
* Action reference
|
||||
*/
|
||||
message?: string | null;
|
||||
action_ref: string;
|
||||
/**
|
||||
* Execution configuration/parameters
|
||||
*/
|
||||
config: Record<string, any>;
|
||||
/**
|
||||
* Creation timestamp
|
||||
*/
|
||||
created: string;
|
||||
/**
|
||||
* Enforcement ID (rule enforcement that triggered this)
|
||||
*/
|
||||
enforcement?: number | null;
|
||||
/**
|
||||
* Executor ID (worker/executor that ran this)
|
||||
*/
|
||||
executor?: number | null;
|
||||
/**
|
||||
* Execution ID
|
||||
*/
|
||||
id: number;
|
||||
/**
|
||||
* Parent execution ID (for nested/child executions)
|
||||
*/
|
||||
parent?: number | null;
|
||||
/**
|
||||
* Execution result/output
|
||||
*/
|
||||
result: Record<string, any>;
|
||||
/**
|
||||
* Execution status
|
||||
*/
|
||||
status: ExecutionStatus;
|
||||
/**
|
||||
* Last update timestamp
|
||||
*/
|
||||
updated: string;
|
||||
/**
|
||||
* Workflow task metadata (only populated for workflow task executions)
|
||||
*/
|
||||
workflow_task?: {
|
||||
workflow_execution: number;
|
||||
task_name: string;
|
||||
task_index?: number | null;
|
||||
task_batch?: number | null;
|
||||
retry_count: number;
|
||||
max_retries: number;
|
||||
next_retry_at?: string | null;
|
||||
timeout_seconds?: number | null;
|
||||
timed_out: boolean;
|
||||
duration_ms?: number | null;
|
||||
started_at?: string | null;
|
||||
completed_at?: string | null;
|
||||
} | null;
|
||||
};
|
||||
/**
|
||||
* Optional message
|
||||
*/
|
||||
message?: string | null;
|
||||
};
|
||||
|
||||
|
||||
@@ -22,6 +22,10 @@ export type ApiResponse_PackResponse = {
|
||||
* Creation timestamp
|
||||
*/
|
||||
created: string;
|
||||
/**
|
||||
* Pack dependencies (refs of required packs)
|
||||
*/
|
||||
dependencies: Array<string>;
|
||||
/**
|
||||
* Pack description
|
||||
*/
|
||||
@@ -47,7 +51,7 @@ export type ApiResponse_PackResponse = {
|
||||
*/
|
||||
ref: string;
|
||||
/**
|
||||
* Runtime dependencies
|
||||
* Runtime dependencies (e.g., shell, python, nodejs)
|
||||
*/
|
||||
runtime_deps: Array<string>;
|
||||
/**
|
||||
|
||||
@@ -11,9 +11,9 @@ export type ApiResponse_RuleResponse = {
|
||||
*/
|
||||
data: {
|
||||
/**
|
||||
* Action ID
|
||||
* Action ID (null if the referenced action has been deleted)
|
||||
*/
|
||||
action: number;
|
||||
action?: number | null;
|
||||
/**
|
||||
* Parameters to pass to the action when rule is triggered
|
||||
*/
|
||||
@@ -63,9 +63,9 @@ export type ApiResponse_RuleResponse = {
|
||||
*/
|
||||
ref: string;
|
||||
/**
|
||||
* Trigger ID
|
||||
* Trigger ID (null if the referenced trigger has been deleted)
|
||||
*/
|
||||
trigger: number;
|
||||
trigger?: number | null;
|
||||
/**
|
||||
* Parameters for trigger configuration and event filtering
|
||||
*/
|
||||
|
||||
@@ -43,7 +43,7 @@ export type ApiResponse_SensorResponse = {
|
||||
*/
|
||||
pack_ref?: string | null;
|
||||
/**
|
||||
* Parameter schema
|
||||
* Parameter schema (StackStorm-style with inline required/secret)
|
||||
*/
|
||||
param_schema: any | null;
|
||||
/**
|
||||
|
||||
@@ -47,7 +47,7 @@ export type ApiResponse_TriggerResponse = {
|
||||
*/
|
||||
pack_ref?: string | null;
|
||||
/**
|
||||
* Parameter schema
|
||||
* Parameter schema (StackStorm-style with inline required/secret)
|
||||
*/
|
||||
param_schema: any | null;
|
||||
/**
|
||||
|
||||
@@ -47,7 +47,7 @@ export type ApiResponse_WorkflowResponse = {
|
||||
*/
|
||||
pack_ref: string;
|
||||
/**
|
||||
* Parameter schema
|
||||
* Parameter schema (StackStorm-style with inline required/secret)
|
||||
*/
|
||||
param_schema: any | null;
|
||||
/**
|
||||
|
||||
@@ -19,7 +19,7 @@ export type CreateActionRequest = {
|
||||
*/
|
||||
label: string;
|
||||
/**
|
||||
* Output schema (JSON Schema) defining expected outputs
|
||||
* Output schema (flat format) defining expected outputs with inline required/secret
|
||||
*/
|
||||
out_schema?: any | null;
|
||||
/**
|
||||
@@ -27,7 +27,7 @@ export type CreateActionRequest = {
|
||||
*/
|
||||
pack_ref: string;
|
||||
/**
|
||||
* Parameter schema (JSON Schema) defining expected inputs
|
||||
* Parameter schema (StackStorm-style) defining expected inputs with inline required/secret
|
||||
*/
|
||||
param_schema?: any | null;
|
||||
/**
|
||||
@@ -38,5 +38,9 @@ export type CreateActionRequest = {
|
||||
* Optional runtime ID for this action
|
||||
*/
|
||||
runtime?: number | null;
|
||||
/**
|
||||
* Optional semver version constraint for the runtime (e.g., ">=3.12", ">=3.12,<4.0", "~18.0")
|
||||
*/
|
||||
runtime_version_constraint?: string | null;
|
||||
};
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@ export type CreateInquiryRequest = {
|
||||
*/
|
||||
prompt: string;
|
||||
/**
|
||||
* Optional JSON schema for the expected response format
|
||||
* Optional schema for the expected response format (flat format with inline required/secret)
|
||||
*/
|
||||
response_schema: Record<string, any>;
|
||||
/**
|
||||
|
||||
@@ -7,13 +7,17 @@
|
||||
*/
|
||||
export type CreatePackRequest = {
|
||||
/**
|
||||
* Configuration schema (JSON Schema)
|
||||
* Configuration schema (flat format with inline required/secret per parameter)
|
||||
*/
|
||||
conf_schema?: Record<string, any>;
|
||||
/**
|
||||
* Pack configuration values
|
||||
*/
|
||||
config?: Record<string, any>;
|
||||
/**
|
||||
* Pack dependencies (refs of required packs)
|
||||
*/
|
||||
dependencies?: Array<string>;
|
||||
/**
|
||||
* Pack description
|
||||
*/
|
||||
@@ -35,7 +39,7 @@ export type CreatePackRequest = {
|
||||
*/
|
||||
ref: string;
|
||||
/**
|
||||
* Runtime dependencies (refs of required packs)
|
||||
* Runtime dependencies (e.g., shell, python, nodejs)
|
||||
*/
|
||||
runtime_deps?: Array<string>;
|
||||
/**
|
||||
|
||||
@@ -31,7 +31,7 @@ export type CreateSensorRequest = {
|
||||
*/
|
||||
pack_ref: string;
|
||||
/**
|
||||
* Parameter schema (JSON Schema) for sensor configuration
|
||||
* Parameter schema (flat format) for sensor configuration
|
||||
*/
|
||||
param_schema?: any | null;
|
||||
/**
|
||||
|
||||
@@ -19,7 +19,7 @@ export type CreateTriggerRequest = {
|
||||
*/
|
||||
label: string;
|
||||
/**
|
||||
* Output schema (JSON Schema) defining event data structure
|
||||
* Output schema (flat format) defining event data structure with inline required/secret
|
||||
*/
|
||||
out_schema?: any | null;
|
||||
/**
|
||||
@@ -27,7 +27,7 @@ export type CreateTriggerRequest = {
|
||||
*/
|
||||
pack_ref?: string | null;
|
||||
/**
|
||||
* Parameter schema (JSON Schema) defining event payload structure
|
||||
* Parameter schema (StackStorm-style) defining trigger configuration with inline required/secret
|
||||
*/
|
||||
param_schema?: any | null;
|
||||
/**
|
||||
|
||||
@@ -23,7 +23,7 @@ export type CreateWorkflowRequest = {
|
||||
*/
|
||||
label: string;
|
||||
/**
|
||||
* Output schema (JSON Schema) defining expected outputs
|
||||
* Output schema (flat format) defining expected outputs with inline required/secret
|
||||
*/
|
||||
out_schema: Record<string, any>;
|
||||
/**
|
||||
@@ -31,7 +31,7 @@ export type CreateWorkflowRequest = {
|
||||
*/
|
||||
pack_ref: string;
|
||||
/**
|
||||
* Parameter schema (JSON Schema) defining expected inputs
|
||||
* Parameter schema (StackStorm-style) defining expected inputs with inline required/secret
|
||||
*/
|
||||
param_schema: Record<string, any>;
|
||||
/**
|
||||
|
||||
@@ -34,6 +34,10 @@ export type EnforcementResponse = {
|
||||
* Enforcement payload
|
||||
*/
|
||||
payload: Record<string, any>;
|
||||
/**
|
||||
* Timestamp when the enforcement was resolved (status changed from created to processed/disabled)
|
||||
*/
|
||||
resolved_at?: string | null;
|
||||
rule?: (null | i64);
|
||||
/**
|
||||
* Rule reference
|
||||
@@ -47,9 +51,5 @@ export type EnforcementResponse = {
|
||||
* Trigger reference
|
||||
*/
|
||||
trigger_ref: string;
|
||||
/**
|
||||
* Last update timestamp
|
||||
*/
|
||||
updated: string;
|
||||
};
|
||||
|
||||
|
||||
@@ -38,9 +38,5 @@ export type EventResponse = {
|
||||
* Trigger reference
|
||||
*/
|
||||
trigger_ref: string;
|
||||
/**
|
||||
* Last update timestamp
|
||||
*/
|
||||
updated: string;
|
||||
};
|
||||
|
||||
|
||||
@@ -2,54 +2,70 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
import type { ExecutionStatus } from './ExecutionStatus';
|
||||
import type { ExecutionStatus } from "./ExecutionStatus";
|
||||
/**
|
||||
* Response DTO for execution information
|
||||
*/
|
||||
export type ExecutionResponse = {
|
||||
/**
|
||||
* Action ID (optional, may be null for ad-hoc executions)
|
||||
*/
|
||||
action?: number | null;
|
||||
/**
|
||||
* Action reference
|
||||
*/
|
||||
action_ref: string;
|
||||
/**
|
||||
* Execution configuration/parameters
|
||||
*/
|
||||
config: Record<string, any>;
|
||||
/**
|
||||
* Creation timestamp
|
||||
*/
|
||||
created: string;
|
||||
/**
|
||||
* Enforcement ID (rule enforcement that triggered this)
|
||||
*/
|
||||
enforcement?: number | null;
|
||||
/**
|
||||
* Executor ID (worker/executor that ran this)
|
||||
*/
|
||||
executor?: number | null;
|
||||
/**
|
||||
* Execution ID
|
||||
*/
|
||||
id: number;
|
||||
/**
|
||||
* Parent execution ID (for nested/child executions)
|
||||
*/
|
||||
parent?: number | null;
|
||||
/**
|
||||
* Execution result/output
|
||||
*/
|
||||
result: Record<string, any>;
|
||||
/**
|
||||
* Execution status
|
||||
*/
|
||||
status: ExecutionStatus;
|
||||
/**
|
||||
* Last update timestamp
|
||||
*/
|
||||
updated: string;
|
||||
/**
|
||||
* Action ID (optional, may be null for ad-hoc executions)
|
||||
*/
|
||||
action?: number | null;
|
||||
/**
|
||||
* Action reference
|
||||
*/
|
||||
action_ref: string;
|
||||
/**
|
||||
* Execution configuration/parameters
|
||||
*/
|
||||
config: Record<string, any>;
|
||||
/**
|
||||
* Creation timestamp
|
||||
*/
|
||||
created: string;
|
||||
/**
|
||||
* Enforcement ID (rule enforcement that triggered this)
|
||||
*/
|
||||
enforcement?: number | null;
|
||||
/**
|
||||
* Executor ID (worker/executor that ran this)
|
||||
*/
|
||||
executor?: number | null;
|
||||
/**
|
||||
* Execution ID
|
||||
*/
|
||||
id: number;
|
||||
/**
|
||||
* Parent execution ID (for nested/child executions)
|
||||
*/
|
||||
parent?: number | null;
|
||||
/**
|
||||
* Execution result/output
|
||||
*/
|
||||
result: Record<string, any>;
|
||||
/**
|
||||
* Execution status
|
||||
*/
|
||||
status: ExecutionStatus;
|
||||
/**
|
||||
* Last update timestamp
|
||||
*/
|
||||
updated: string;
|
||||
/**
|
||||
* Workflow task metadata (only populated for workflow task executions)
|
||||
*/
|
||||
workflow_task?: {
|
||||
workflow_execution: number;
|
||||
task_name: string;
|
||||
task_index?: number | null;
|
||||
task_batch?: number | null;
|
||||
retry_count: number;
|
||||
max_retries: number;
|
||||
next_retry_at?: string | null;
|
||||
timeout_seconds?: number | null;
|
||||
timed_out: boolean;
|
||||
duration_ms?: number | null;
|
||||
started_at?: string | null;
|
||||
completed_at?: string | null;
|
||||
} | null;
|
||||
};
|
||||
|
||||
|
||||
@@ -2,46 +2,62 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
import type { ExecutionStatus } from './ExecutionStatus';
|
||||
import type { ExecutionStatus } from "./ExecutionStatus";
|
||||
/**
|
||||
* Simplified execution response (for list endpoints)
|
||||
*/
|
||||
export type ExecutionSummary = {
|
||||
/**
|
||||
* Action reference
|
||||
*/
|
||||
action_ref: string;
|
||||
/**
|
||||
* Creation timestamp
|
||||
*/
|
||||
created: string;
|
||||
/**
|
||||
* Enforcement ID
|
||||
*/
|
||||
enforcement?: number | null;
|
||||
/**
|
||||
* Execution ID
|
||||
*/
|
||||
id: number;
|
||||
/**
|
||||
* Parent execution ID
|
||||
*/
|
||||
parent?: number | null;
|
||||
/**
|
||||
* Rule reference (if triggered by a rule)
|
||||
*/
|
||||
rule_ref?: string | null;
|
||||
/**
|
||||
* Execution status
|
||||
*/
|
||||
status: ExecutionStatus;
|
||||
/**
|
||||
* Trigger reference (if triggered by a trigger)
|
||||
*/
|
||||
trigger_ref?: string | null;
|
||||
/**
|
||||
* Last update timestamp
|
||||
*/
|
||||
updated: string;
|
||||
/**
|
||||
* Action reference
|
||||
*/
|
||||
action_ref: string;
|
||||
/**
|
||||
* Creation timestamp
|
||||
*/
|
||||
created: string;
|
||||
/**
|
||||
* Enforcement ID
|
||||
*/
|
||||
enforcement?: number | null;
|
||||
/**
|
||||
* Execution ID
|
||||
*/
|
||||
id: number;
|
||||
/**
|
||||
* Parent execution ID
|
||||
*/
|
||||
parent?: number | null;
|
||||
/**
|
||||
* Rule reference (if triggered by a rule)
|
||||
*/
|
||||
rule_ref?: string | null;
|
||||
/**
|
||||
* Execution status
|
||||
*/
|
||||
status: ExecutionStatus;
|
||||
/**
|
||||
* Trigger reference (if triggered by a trigger)
|
||||
*/
|
||||
trigger_ref?: string | null;
|
||||
/**
|
||||
* Last update timestamp
|
||||
*/
|
||||
updated: string;
|
||||
/**
|
||||
* Workflow task metadata (only populated for workflow task executions)
|
||||
*/
|
||||
workflow_task?: {
|
||||
workflow_execution: number;
|
||||
task_name: string;
|
||||
task_index?: number | null;
|
||||
task_batch?: number | null;
|
||||
retry_count: number;
|
||||
max_retries: number;
|
||||
next_retry_at?: string | null;
|
||||
timeout_seconds?: number | null;
|
||||
timed_out: boolean;
|
||||
duration_ms?: number | null;
|
||||
started_at?: string | null;
|
||||
completed_at?: string | null;
|
||||
} | null;
|
||||
};
|
||||
|
||||
|
||||
@@ -6,20 +6,21 @@
|
||||
* Request DTO for installing a pack from remote source
|
||||
*/
|
||||
export type InstallPackRequest = {
|
||||
/**
|
||||
* Git branch, tag, or commit reference
|
||||
*/
|
||||
ref_spec?: string | null;
|
||||
/**
|
||||
* Skip dependency validation (not recommended)
|
||||
*/
|
||||
skip_deps?: boolean;
|
||||
/**
|
||||
* Skip running pack tests during installation
|
||||
*/
|
||||
skip_tests?: boolean;
|
||||
/**
|
||||
* Repository URL or source location
|
||||
*/
|
||||
source: string;
|
||||
/**
|
||||
* Git branch, tag, or commit reference
|
||||
*/
|
||||
ref_spec?: string | null;
|
||||
/**
|
||||
* Skip dependency validation (not recommended)
|
||||
*/
|
||||
skip_deps?: boolean;
|
||||
/**
|
||||
* Skip running pack tests during installation
|
||||
*/
|
||||
skip_tests?: boolean;
|
||||
/**
|
||||
* Repository URL or source location
|
||||
*/
|
||||
source: string;
|
||||
};
|
||||
|
||||
|
||||
@@ -18,6 +18,10 @@ export type PackResponse = {
|
||||
* Creation timestamp
|
||||
*/
|
||||
created: string;
|
||||
/**
|
||||
* Pack dependencies (refs of required packs)
|
||||
*/
|
||||
dependencies: Array<string>;
|
||||
/**
|
||||
* Pack description
|
||||
*/
|
||||
@@ -43,7 +47,7 @@ export type PackResponse = {
|
||||
*/
|
||||
ref: string;
|
||||
/**
|
||||
* Runtime dependencies
|
||||
* Runtime dependencies (e.g., shell, python, nodejs)
|
||||
*/
|
||||
runtime_deps: Array<string>;
|
||||
/**
|
||||
|
||||
@@ -2,55 +2,62 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
import type { PaginationMeta } from './PaginationMeta';
|
||||
import type { PaginationMeta } from "./PaginationMeta";
|
||||
/**
|
||||
* Paginated response wrapper
|
||||
*/
|
||||
export type PaginatedResponse_ActionSummary = {
|
||||
/**
|
||||
* The data items
|
||||
*/
|
||||
data: Array<{
|
||||
/**
|
||||
* The data items
|
||||
* Creation timestamp
|
||||
*/
|
||||
data: Array<{
|
||||
/**
|
||||
* Creation timestamp
|
||||
*/
|
||||
created: string;
|
||||
/**
|
||||
* Action description
|
||||
*/
|
||||
description: string;
|
||||
/**
|
||||
* Entry point
|
||||
*/
|
||||
entrypoint: string;
|
||||
/**
|
||||
* Action ID
|
||||
*/
|
||||
id: number;
|
||||
/**
|
||||
* Human-readable label
|
||||
*/
|
||||
label: string;
|
||||
/**
|
||||
* Pack reference
|
||||
*/
|
||||
pack_ref: string;
|
||||
/**
|
||||
* Unique reference identifier
|
||||
*/
|
||||
ref: string;
|
||||
/**
|
||||
* Runtime ID
|
||||
*/
|
||||
runtime?: number | null;
|
||||
/**
|
||||
* Last update timestamp
|
||||
*/
|
||||
updated: string;
|
||||
}>;
|
||||
created: string;
|
||||
/**
|
||||
* Pagination metadata
|
||||
* Action description
|
||||
*/
|
||||
pagination: PaginationMeta;
|
||||
description: string;
|
||||
/**
|
||||
* Entry point
|
||||
*/
|
||||
entrypoint: string;
|
||||
/**
|
||||
* Action ID
|
||||
*/
|
||||
id: number;
|
||||
/**
|
||||
* Human-readable label
|
||||
*/
|
||||
label: string;
|
||||
/**
|
||||
* Pack reference
|
||||
*/
|
||||
pack_ref: string;
|
||||
/**
|
||||
* Unique reference identifier
|
||||
*/
|
||||
ref: string;
|
||||
/**
|
||||
* Runtime ID
|
||||
*/
|
||||
runtime?: number | null;
|
||||
/**
|
||||
* Semver version constraint for the runtime
|
||||
*/
|
||||
runtime_version_constraint?: string | null;
|
||||
/**
|
||||
* Last update timestamp
|
||||
*/
|
||||
updated: string;
|
||||
/**
|
||||
* Workflow definition ID (non-null if this action is a workflow)
|
||||
*/
|
||||
workflow_def?: number | null;
|
||||
}>;
|
||||
/**
|
||||
* Pagination metadata
|
||||
*/
|
||||
pagination: PaginationMeta;
|
||||
};
|
||||
|
||||
|
||||
@@ -2,56 +2,72 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
import type { ExecutionStatus } from './ExecutionStatus';
|
||||
import type { PaginationMeta } from './PaginationMeta';
|
||||
import type { ExecutionStatus } from "./ExecutionStatus";
|
||||
import type { PaginationMeta } from "./PaginationMeta";
|
||||
/**
|
||||
* Paginated response wrapper
|
||||
*/
|
||||
export type PaginatedResponse_ExecutionSummary = {
|
||||
/**
|
||||
* The data items
|
||||
*/
|
||||
data: Array<{
|
||||
/**
|
||||
* The data items
|
||||
* Action reference
|
||||
*/
|
||||
data: Array<{
|
||||
/**
|
||||
* Action reference
|
||||
*/
|
||||
action_ref: string;
|
||||
/**
|
||||
* Creation timestamp
|
||||
*/
|
||||
created: string;
|
||||
/**
|
||||
* Enforcement ID
|
||||
*/
|
||||
enforcement?: number | null;
|
||||
/**
|
||||
* Execution ID
|
||||
*/
|
||||
id: number;
|
||||
/**
|
||||
* Parent execution ID
|
||||
*/
|
||||
parent?: number | null;
|
||||
/**
|
||||
* Rule reference (if triggered by a rule)
|
||||
*/
|
||||
rule_ref?: string | null;
|
||||
/**
|
||||
* Execution status
|
||||
*/
|
||||
status: ExecutionStatus;
|
||||
/**
|
||||
* Trigger reference (if triggered by a trigger)
|
||||
*/
|
||||
trigger_ref?: string | null;
|
||||
/**
|
||||
* Last update timestamp
|
||||
*/
|
||||
updated: string;
|
||||
}>;
|
||||
action_ref: string;
|
||||
/**
|
||||
* Pagination metadata
|
||||
* Creation timestamp
|
||||
*/
|
||||
pagination: PaginationMeta;
|
||||
created: string;
|
||||
/**
|
||||
* Enforcement ID
|
||||
*/
|
||||
enforcement?: number | null;
|
||||
/**
|
||||
* Execution ID
|
||||
*/
|
||||
id: number;
|
||||
/**
|
||||
* Parent execution ID
|
||||
*/
|
||||
parent?: number | null;
|
||||
/**
|
||||
* Rule reference (if triggered by a rule)
|
||||
*/
|
||||
rule_ref?: string | null;
|
||||
/**
|
||||
* Execution status
|
||||
*/
|
||||
status: ExecutionStatus;
|
||||
/**
|
||||
* Trigger reference (if triggered by a trigger)
|
||||
*/
|
||||
trigger_ref?: string | null;
|
||||
/**
|
||||
* Last update timestamp
|
||||
*/
|
||||
updated: string;
|
||||
/**
|
||||
* Workflow task metadata (only populated for workflow task executions)
|
||||
*/
|
||||
workflow_task?: {
|
||||
workflow_execution: number;
|
||||
task_name: string;
|
||||
task_index?: number | null;
|
||||
task_batch?: number | null;
|
||||
retry_count: number;
|
||||
max_retries: number;
|
||||
next_retry_at?: string | null;
|
||||
timeout_seconds?: number | null;
|
||||
timed_out: boolean;
|
||||
duration_ms?: number | null;
|
||||
started_at?: string | null;
|
||||
completed_at?: string | null;
|
||||
} | null;
|
||||
}>;
|
||||
/**
|
||||
* Pagination metadata
|
||||
*/
|
||||
pagination: PaginationMeta;
|
||||
};
|
||||
|
||||
|
||||
@@ -7,9 +7,9 @@
|
||||
*/
|
||||
export type RuleResponse = {
|
||||
/**
|
||||
* Action ID
|
||||
* Action ID (null if the referenced action has been deleted)
|
||||
*/
|
||||
action: number;
|
||||
action?: number | null;
|
||||
/**
|
||||
* Parameters to pass to the action when rule is triggered
|
||||
*/
|
||||
@@ -59,9 +59,9 @@ export type RuleResponse = {
|
||||
*/
|
||||
ref: string;
|
||||
/**
|
||||
* Trigger ID
|
||||
* Trigger ID (null if the referenced trigger has been deleted)
|
||||
*/
|
||||
trigger: number;
|
||||
trigger?: number | null;
|
||||
/**
|
||||
* Parameters for trigger configuration and event filtering
|
||||
*/
|
||||
|
||||
@@ -39,7 +39,7 @@ export type SensorResponse = {
|
||||
*/
|
||||
pack_ref?: string | null;
|
||||
/**
|
||||
* Parameter schema
|
||||
* Parameter schema (StackStorm-style with inline required/secret)
|
||||
*/
|
||||
param_schema: any | null;
|
||||
/**
|
||||
|
||||
@@ -43,7 +43,7 @@ export type TriggerResponse = {
|
||||
*/
|
||||
pack_ref?: string | null;
|
||||
/**
|
||||
* Parameter schema
|
||||
* Parameter schema (StackStorm-style with inline required/secret)
|
||||
*/
|
||||
param_schema: any | null;
|
||||
/**
|
||||
|
||||
@@ -23,12 +23,16 @@ export type UpdateActionRequest = {
|
||||
*/
|
||||
out_schema: any | null;
|
||||
/**
|
||||
* Parameter schema
|
||||
* Parameter schema (StackStorm-style with inline required/secret)
|
||||
*/
|
||||
param_schema: any | null;
|
||||
/**
|
||||
* Runtime ID
|
||||
*/
|
||||
runtime?: number | null;
|
||||
/**
|
||||
* Optional semver version constraint for the runtime (e.g., ">=3.12", ">=3.12,<4.0", "~18.0")
|
||||
*/
|
||||
runtime_version_constraint?: string | null;
|
||||
};
|
||||
|
||||
|
||||
@@ -14,6 +14,10 @@ export type UpdatePackRequest = {
|
||||
* Pack configuration values
|
||||
*/
|
||||
config: any | null;
|
||||
/**
|
||||
* Pack dependencies (refs of required packs)
|
||||
*/
|
||||
dependencies?: any[] | null;
|
||||
/**
|
||||
* Pack description
|
||||
*/
|
||||
@@ -31,7 +35,7 @@ export type UpdatePackRequest = {
|
||||
*/
|
||||
meta: any | null;
|
||||
/**
|
||||
* Runtime dependencies
|
||||
* Runtime dependencies (e.g., shell, python, nodejs)
|
||||
*/
|
||||
runtime_deps?: any[] | null;
|
||||
/**
|
||||
|
||||
@@ -23,7 +23,7 @@ export type UpdateSensorRequest = {
|
||||
*/
|
||||
label?: string | null;
|
||||
/**
|
||||
* Parameter schema
|
||||
* Parameter schema (StackStorm-style with inline required/secret)
|
||||
*/
|
||||
param_schema: any | null;
|
||||
};
|
||||
|
||||
@@ -23,7 +23,7 @@ export type UpdateTriggerRequest = {
|
||||
*/
|
||||
out_schema: any | null;
|
||||
/**
|
||||
* Parameter schema
|
||||
* Parameter schema (StackStorm-style with inline required/secret)
|
||||
*/
|
||||
param_schema: any | null;
|
||||
};
|
||||
|
||||
@@ -27,7 +27,7 @@ export type UpdateWorkflowRequest = {
|
||||
*/
|
||||
out_schema: any | null;
|
||||
/**
|
||||
* Parameter schema
|
||||
* Parameter schema (StackStorm-style with inline required/secret)
|
||||
*/
|
||||
param_schema: any | null;
|
||||
/**
|
||||
|
||||
@@ -43,7 +43,7 @@ export type WorkflowResponse = {
|
||||
*/
|
||||
pack_ref: string;
|
||||
/**
|
||||
* Parameter schema
|
||||
* Parameter schema (StackStorm-style with inline required/secret)
|
||||
*/
|
||||
param_schema: any | null;
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user