[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;
|
||||
/**
|
||||
|
||||
@@ -2,432 +2,456 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
import type { CreateActionRequest } from '../models/CreateActionRequest';
|
||||
import type { PaginatedResponse_ActionSummary } from '../models/PaginatedResponse_ActionSummary';
|
||||
import type { SuccessResponse } from '../models/SuccessResponse';
|
||||
import type { UpdateActionRequest } from '../models/UpdateActionRequest';
|
||||
import type { CancelablePromise } from '../core/CancelablePromise';
|
||||
import { OpenAPI } from '../core/OpenAPI';
|
||||
import { request as __request } from '../core/request';
|
||||
import type { CreateActionRequest } from "../models/CreateActionRequest";
|
||||
import type { PaginatedResponse_ActionSummary } from "../models/PaginatedResponse_ActionSummary";
|
||||
import type { SuccessResponse } from "../models/SuccessResponse";
|
||||
import type { UpdateActionRequest } from "../models/UpdateActionRequest";
|
||||
import type { CancelablePromise } from "../core/CancelablePromise";
|
||||
import { OpenAPI } from "../core/OpenAPI";
|
||||
import { request as __request } from "../core/request";
|
||||
export class ActionsService {
|
||||
/**
|
||||
* List all actions with pagination
|
||||
* @returns PaginatedResponse_ActionSummary List of actions
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static listActions({
|
||||
page,
|
||||
pageSize,
|
||||
}: {
|
||||
/**
|
||||
* List all actions with pagination
|
||||
* @returns PaginatedResponse_ActionSummary List of actions
|
||||
* @throws ApiError
|
||||
* Page number (1-based)
|
||||
*/
|
||||
public static listActions({
|
||||
page,
|
||||
pageSize,
|
||||
}: {
|
||||
/**
|
||||
* Page number (1-based)
|
||||
*/
|
||||
page?: number,
|
||||
/**
|
||||
* Number of items per page
|
||||
*/
|
||||
pageSize?: number,
|
||||
}): CancelablePromise<PaginatedResponse_ActionSummary> {
|
||||
return __request(OpenAPI, {
|
||||
method: 'GET',
|
||||
url: '/api/v1/actions',
|
||||
query: {
|
||||
'page': page,
|
||||
'page_size': pageSize,
|
||||
},
|
||||
});
|
||||
}
|
||||
page?: number;
|
||||
/**
|
||||
* Create a new action
|
||||
* @returns any Action created successfully
|
||||
* @throws ApiError
|
||||
* Number of items per page
|
||||
*/
|
||||
public static createAction({
|
||||
requestBody,
|
||||
}: {
|
||||
requestBody: CreateActionRequest,
|
||||
}): CancelablePromise<{
|
||||
/**
|
||||
* Response DTO for action information
|
||||
*/
|
||||
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;
|
||||
};
|
||||
/**
|
||||
* Optional message
|
||||
*/
|
||||
message?: string | null;
|
||||
}> {
|
||||
return __request(OpenAPI, {
|
||||
method: 'POST',
|
||||
url: '/api/v1/actions',
|
||||
body: requestBody,
|
||||
mediaType: 'application/json',
|
||||
errors: {
|
||||
400: `Validation error`,
|
||||
404: `Pack not found`,
|
||||
409: `Action with same ref already exists`,
|
||||
},
|
||||
});
|
||||
}
|
||||
pageSize?: number;
|
||||
}): CancelablePromise<PaginatedResponse_ActionSummary> {
|
||||
return __request(OpenAPI, {
|
||||
method: "GET",
|
||||
url: "/api/v1/actions",
|
||||
query: {
|
||||
page: page,
|
||||
page_size: pageSize,
|
||||
},
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Create a new action
|
||||
* @returns any Action created successfully
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static createAction({
|
||||
requestBody,
|
||||
}: {
|
||||
requestBody: CreateActionRequest;
|
||||
}): CancelablePromise<{
|
||||
/**
|
||||
* Get a single action by reference
|
||||
* @returns any Action details
|
||||
* @throws ApiError
|
||||
* Response DTO for action information
|
||||
*/
|
||||
public static getAction({
|
||||
ref,
|
||||
}: {
|
||||
/**
|
||||
* Action reference identifier
|
||||
*/
|
||||
ref: string,
|
||||
}): CancelablePromise<{
|
||||
/**
|
||||
* Response DTO for action information
|
||||
*/
|
||||
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;
|
||||
};
|
||||
/**
|
||||
* Optional message
|
||||
*/
|
||||
message?: string | null;
|
||||
}> {
|
||||
return __request(OpenAPI, {
|
||||
method: 'GET',
|
||||
url: '/api/v1/actions/{ref}',
|
||||
path: {
|
||||
'ref': ref,
|
||||
},
|
||||
errors: {
|
||||
404: `Action not found`,
|
||||
},
|
||||
});
|
||||
}
|
||||
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 (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;
|
||||
};
|
||||
/**
|
||||
* Update an existing action
|
||||
* @returns any Action updated successfully
|
||||
* @throws ApiError
|
||||
* Optional message
|
||||
*/
|
||||
public static updateAction({
|
||||
ref,
|
||||
requestBody,
|
||||
}: {
|
||||
/**
|
||||
* Action reference identifier
|
||||
*/
|
||||
ref: string,
|
||||
requestBody: UpdateActionRequest,
|
||||
}): CancelablePromise<{
|
||||
/**
|
||||
* Response DTO for action information
|
||||
*/
|
||||
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;
|
||||
};
|
||||
/**
|
||||
* Optional message
|
||||
*/
|
||||
message?: string | null;
|
||||
}> {
|
||||
return __request(OpenAPI, {
|
||||
method: 'PUT',
|
||||
url: '/api/v1/actions/{ref}',
|
||||
path: {
|
||||
'ref': ref,
|
||||
},
|
||||
body: requestBody,
|
||||
mediaType: 'application/json',
|
||||
errors: {
|
||||
400: `Validation error`,
|
||||
404: `Action not found`,
|
||||
},
|
||||
});
|
||||
}
|
||||
message?: string | null;
|
||||
}> {
|
||||
return __request(OpenAPI, {
|
||||
method: "POST",
|
||||
url: "/api/v1/actions",
|
||||
body: requestBody,
|
||||
mediaType: "application/json",
|
||||
errors: {
|
||||
400: `Validation error`,
|
||||
404: `Pack not found`,
|
||||
409: `Action with same ref already exists`,
|
||||
},
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Get a single action by reference
|
||||
* @returns any Action details
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static getAction({
|
||||
ref,
|
||||
}: {
|
||||
/**
|
||||
* Delete an action
|
||||
* @returns SuccessResponse Action deleted successfully
|
||||
* @throws ApiError
|
||||
* Action reference identifier
|
||||
*/
|
||||
public static deleteAction({
|
||||
ref,
|
||||
}: {
|
||||
/**
|
||||
* Action reference identifier
|
||||
*/
|
||||
ref: string,
|
||||
}): CancelablePromise<SuccessResponse> {
|
||||
return __request(OpenAPI, {
|
||||
method: 'DELETE',
|
||||
url: '/api/v1/actions/{ref}',
|
||||
path: {
|
||||
'ref': ref,
|
||||
},
|
||||
errors: {
|
||||
404: `Action not found`,
|
||||
},
|
||||
});
|
||||
}
|
||||
ref: string;
|
||||
}): CancelablePromise<{
|
||||
/**
|
||||
* Get queue statistics for an action
|
||||
* @returns any Queue statistics
|
||||
* @throws ApiError
|
||||
* Response DTO for action information
|
||||
*/
|
||||
public static getQueueStats({
|
||||
ref,
|
||||
}: {
|
||||
/**
|
||||
* Action reference identifier
|
||||
*/
|
||||
ref: string,
|
||||
}): CancelablePromise<{
|
||||
/**
|
||||
* Response DTO for queue statistics
|
||||
*/
|
||||
data: {
|
||||
/**
|
||||
* Action ID
|
||||
*/
|
||||
action_id: number;
|
||||
/**
|
||||
* Action reference
|
||||
*/
|
||||
action_ref: string;
|
||||
/**
|
||||
* Number of currently running executions
|
||||
*/
|
||||
active_count: number;
|
||||
/**
|
||||
* Timestamp of last statistics update
|
||||
*/
|
||||
last_updated: string;
|
||||
/**
|
||||
* Maximum concurrent executions allowed
|
||||
*/
|
||||
max_concurrent: number;
|
||||
/**
|
||||
* Timestamp of oldest queued execution (if any)
|
||||
*/
|
||||
oldest_enqueued_at?: string | null;
|
||||
/**
|
||||
* Number of executions waiting in queue
|
||||
*/
|
||||
queue_length: number;
|
||||
/**
|
||||
* Total executions completed since queue creation
|
||||
*/
|
||||
total_completed: number;
|
||||
/**
|
||||
* Total executions enqueued since queue creation
|
||||
*/
|
||||
total_enqueued: number;
|
||||
};
|
||||
/**
|
||||
* Optional message
|
||||
*/
|
||||
message?: string | null;
|
||||
}> {
|
||||
return __request(OpenAPI, {
|
||||
method: 'GET',
|
||||
url: '/api/v1/actions/{ref}/queue-stats',
|
||||
path: {
|
||||
'ref': ref,
|
||||
},
|
||||
errors: {
|
||||
404: `Action not found or no queue statistics available`,
|
||||
},
|
||||
});
|
||||
}
|
||||
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 (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;
|
||||
};
|
||||
/**
|
||||
* List actions by pack reference
|
||||
* @returns PaginatedResponse_ActionSummary List of actions for pack
|
||||
* @throws ApiError
|
||||
* Optional message
|
||||
*/
|
||||
public static listActionsByPack({
|
||||
packRef,
|
||||
page,
|
||||
pageSize,
|
||||
}: {
|
||||
/**
|
||||
* Pack reference identifier
|
||||
*/
|
||||
packRef: string,
|
||||
/**
|
||||
* Page number (1-based)
|
||||
*/
|
||||
page?: number,
|
||||
/**
|
||||
* Number of items per page
|
||||
*/
|
||||
pageSize?: number,
|
||||
}): CancelablePromise<PaginatedResponse_ActionSummary> {
|
||||
return __request(OpenAPI, {
|
||||
method: 'GET',
|
||||
url: '/api/v1/packs/{pack_ref}/actions',
|
||||
path: {
|
||||
'pack_ref': packRef,
|
||||
},
|
||||
query: {
|
||||
'page': page,
|
||||
'page_size': pageSize,
|
||||
},
|
||||
errors: {
|
||||
404: `Pack not found`,
|
||||
},
|
||||
});
|
||||
}
|
||||
message?: string | null;
|
||||
}> {
|
||||
return __request(OpenAPI, {
|
||||
method: "GET",
|
||||
url: "/api/v1/actions/{ref}",
|
||||
path: {
|
||||
ref: ref,
|
||||
},
|
||||
errors: {
|
||||
404: `Action not found`,
|
||||
},
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Update an existing action
|
||||
* @returns any Action updated successfully
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static updateAction({
|
||||
ref,
|
||||
requestBody,
|
||||
}: {
|
||||
/**
|
||||
* Action reference identifier
|
||||
*/
|
||||
ref: string;
|
||||
requestBody: UpdateActionRequest;
|
||||
}): CancelablePromise<{
|
||||
/**
|
||||
* Response DTO for action information
|
||||
*/
|
||||
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 (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;
|
||||
}> {
|
||||
return __request(OpenAPI, {
|
||||
method: "PUT",
|
||||
url: "/api/v1/actions/{ref}",
|
||||
path: {
|
||||
ref: ref,
|
||||
},
|
||||
body: requestBody,
|
||||
mediaType: "application/json",
|
||||
errors: {
|
||||
400: `Validation error`,
|
||||
404: `Action not found`,
|
||||
},
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Delete an action
|
||||
* @returns SuccessResponse Action deleted successfully
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static deleteAction({
|
||||
ref,
|
||||
}: {
|
||||
/**
|
||||
* Action reference identifier
|
||||
*/
|
||||
ref: string;
|
||||
}): CancelablePromise<SuccessResponse> {
|
||||
return __request(OpenAPI, {
|
||||
method: "DELETE",
|
||||
url: "/api/v1/actions/{ref}",
|
||||
path: {
|
||||
ref: ref,
|
||||
},
|
||||
errors: {
|
||||
404: `Action not found`,
|
||||
},
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Get queue statistics for an action
|
||||
* @returns any Queue statistics
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static getQueueStats({
|
||||
ref,
|
||||
}: {
|
||||
/**
|
||||
* Action reference identifier
|
||||
*/
|
||||
ref: string;
|
||||
}): CancelablePromise<{
|
||||
/**
|
||||
* Response DTO for queue statistics
|
||||
*/
|
||||
data: {
|
||||
/**
|
||||
* Action ID
|
||||
*/
|
||||
action_id: number;
|
||||
/**
|
||||
* Action reference
|
||||
*/
|
||||
action_ref: string;
|
||||
/**
|
||||
* Number of currently running executions
|
||||
*/
|
||||
active_count: number;
|
||||
/**
|
||||
* Timestamp of last statistics update
|
||||
*/
|
||||
last_updated: string;
|
||||
/**
|
||||
* Maximum concurrent executions allowed
|
||||
*/
|
||||
max_concurrent: number;
|
||||
/**
|
||||
* Timestamp of oldest queued execution (if any)
|
||||
*/
|
||||
oldest_enqueued_at?: string | null;
|
||||
/**
|
||||
* Number of executions waiting in queue
|
||||
*/
|
||||
queue_length: number;
|
||||
/**
|
||||
* Total executions completed since queue creation
|
||||
*/
|
||||
total_completed: number;
|
||||
/**
|
||||
* Total executions enqueued since queue creation
|
||||
*/
|
||||
total_enqueued: number;
|
||||
};
|
||||
/**
|
||||
* Optional message
|
||||
*/
|
||||
message?: string | null;
|
||||
}> {
|
||||
return __request(OpenAPI, {
|
||||
method: "GET",
|
||||
url: "/api/v1/actions/{ref}/queue-stats",
|
||||
path: {
|
||||
ref: ref,
|
||||
},
|
||||
errors: {
|
||||
404: `Action not found or no queue statistics available`,
|
||||
},
|
||||
});
|
||||
}
|
||||
/**
|
||||
* List actions by pack reference
|
||||
* @returns PaginatedResponse_ActionSummary List of actions for pack
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static listActionsByPack({
|
||||
packRef,
|
||||
page,
|
||||
pageSize,
|
||||
}: {
|
||||
/**
|
||||
* Pack reference identifier
|
||||
*/
|
||||
packRef: string;
|
||||
/**
|
||||
* Page number (1-based)
|
||||
*/
|
||||
page?: number;
|
||||
/**
|
||||
* Number of items per page
|
||||
*/
|
||||
pageSize?: number;
|
||||
}): CancelablePromise<PaginatedResponse_ActionSummary> {
|
||||
return __request(OpenAPI, {
|
||||
method: "GET",
|
||||
url: "/api/v1/packs/{pack_ref}/actions",
|
||||
path: {
|
||||
pack_ref: packRef,
|
||||
},
|
||||
query: {
|
||||
page: page,
|
||||
page_size: pageSize,
|
||||
},
|
||||
errors: {
|
||||
404: `Pack not found`,
|
||||
},
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,92 +2,92 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
import type { ApiResponse_EventResponse } from "../models/ApiResponse_EventResponse";
|
||||
import type { i64 } from "../models/i64";
|
||||
import type { PaginatedResponse_EventSummary } from "../models/PaginatedResponse_EventSummary";
|
||||
import type { CancelablePromise } from "../core/CancelablePromise";
|
||||
import { OpenAPI } from "../core/OpenAPI";
|
||||
import { request as __request } from "../core/request";
|
||||
import type { ApiResponse_EventResponse } from '../models/ApiResponse_EventResponse';
|
||||
import type { i64 } from '../models/i64';
|
||||
import type { PaginatedResponse_EventSummary } from '../models/PaginatedResponse_EventSummary';
|
||||
import type { CancelablePromise } from '../core/CancelablePromise';
|
||||
import { OpenAPI } from '../core/OpenAPI';
|
||||
import { request as __request } from '../core/request';
|
||||
export class EventsService {
|
||||
/**
|
||||
* List all events with pagination and optional filters
|
||||
* @returns PaginatedResponse_EventSummary List of events
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static listEvents({
|
||||
trigger,
|
||||
triggerRef,
|
||||
ruleRef,
|
||||
source,
|
||||
page,
|
||||
perPage,
|
||||
}: {
|
||||
/**
|
||||
* Filter by trigger ID
|
||||
* List all events with pagination and optional filters
|
||||
* @returns PaginatedResponse_EventSummary List of events
|
||||
* @throws ApiError
|
||||
*/
|
||||
trigger?: null | i64;
|
||||
public static listEvents({
|
||||
trigger,
|
||||
triggerRef,
|
||||
ruleRef,
|
||||
source,
|
||||
page,
|
||||
perPage,
|
||||
}: {
|
||||
/**
|
||||
* Filter by trigger ID
|
||||
*/
|
||||
trigger?: (null | i64),
|
||||
/**
|
||||
* Filter by trigger reference
|
||||
*/
|
||||
triggerRef?: string | null,
|
||||
/**
|
||||
* Filter by rule reference
|
||||
*/
|
||||
ruleRef?: string | null,
|
||||
/**
|
||||
* Filter by source ID
|
||||
*/
|
||||
source?: (null | i64),
|
||||
/**
|
||||
* Page number (1-indexed)
|
||||
*/
|
||||
page?: number,
|
||||
/**
|
||||
* Items per page
|
||||
*/
|
||||
perPage?: number,
|
||||
}): CancelablePromise<PaginatedResponse_EventSummary> {
|
||||
return __request(OpenAPI, {
|
||||
method: 'GET',
|
||||
url: '/api/v1/events',
|
||||
query: {
|
||||
'trigger': trigger,
|
||||
'trigger_ref': triggerRef,
|
||||
'rule_ref': ruleRef,
|
||||
'source': source,
|
||||
'page': page,
|
||||
'per_page': perPage,
|
||||
},
|
||||
errors: {
|
||||
401: `Unauthorized`,
|
||||
500: `Internal server error`,
|
||||
},
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Filter by trigger reference
|
||||
* Get a single event by ID
|
||||
* @returns ApiResponse_EventResponse Event details
|
||||
* @throws ApiError
|
||||
*/
|
||||
triggerRef?: string | null;
|
||||
/**
|
||||
* Filter by rule reference
|
||||
*/
|
||||
ruleRef?: string | null;
|
||||
/**
|
||||
* Filter by source ID
|
||||
*/
|
||||
source?: null | i64;
|
||||
/**
|
||||
* Page number (1-indexed)
|
||||
*/
|
||||
page?: number;
|
||||
/**
|
||||
* Items per page
|
||||
*/
|
||||
perPage?: number;
|
||||
}): CancelablePromise<PaginatedResponse_EventSummary> {
|
||||
return __request(OpenAPI, {
|
||||
method: "GET",
|
||||
url: "/api/v1/events",
|
||||
query: {
|
||||
trigger: trigger,
|
||||
trigger_ref: triggerRef,
|
||||
rule_ref: ruleRef,
|
||||
source: source,
|
||||
page: page,
|
||||
per_page: perPage,
|
||||
},
|
||||
errors: {
|
||||
401: `Unauthorized`,
|
||||
500: `Internal server error`,
|
||||
},
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Get a single event by ID
|
||||
* @returns ApiResponse_EventResponse Event details
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static getEvent({
|
||||
id,
|
||||
}: {
|
||||
/**
|
||||
* Event ID
|
||||
*/
|
||||
id: number;
|
||||
}): CancelablePromise<ApiResponse_EventResponse> {
|
||||
return __request(OpenAPI, {
|
||||
method: "GET",
|
||||
url: "/api/v1/events/{id}",
|
||||
path: {
|
||||
id: id,
|
||||
},
|
||||
errors: {
|
||||
401: `Unauthorized`,
|
||||
404: `Event not found`,
|
||||
500: `Internal server error`,
|
||||
},
|
||||
});
|
||||
}
|
||||
public static getEvent({
|
||||
id,
|
||||
}: {
|
||||
/**
|
||||
* Event ID
|
||||
*/
|
||||
id: number,
|
||||
}): CancelablePromise<ApiResponse_EventResponse> {
|
||||
return __request(OpenAPI, {
|
||||
method: 'GET',
|
||||
url: '/api/v1/events/{id}',
|
||||
path: {
|
||||
'id': id,
|
||||
},
|
||||
errors: {
|
||||
401: `Unauthorized`,
|
||||
404: `Event not found`,
|
||||
500: `Internal server error`,
|
||||
},
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,260 +2,283 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
import type { ExecutionStatus } from '../models/ExecutionStatus';
|
||||
import type { PaginatedResponse_ExecutionSummary } from '../models/PaginatedResponse_ExecutionSummary';
|
||||
import type { CancelablePromise } from '../core/CancelablePromise';
|
||||
import { OpenAPI } from '../core/OpenAPI';
|
||||
import { request as __request } from '../core/request';
|
||||
import type { ExecutionStatus } from "../models/ExecutionStatus";
|
||||
import type { PaginatedResponse_ExecutionSummary } from "../models/PaginatedResponse_ExecutionSummary";
|
||||
import type { CancelablePromise } from "../core/CancelablePromise";
|
||||
import { OpenAPI } from "../core/OpenAPI";
|
||||
import { request as __request } from "../core/request";
|
||||
export class ExecutionsService {
|
||||
/**
|
||||
* List all executions with pagination and optional filters
|
||||
* @returns PaginatedResponse_ExecutionSummary List of executions
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static listExecutions({
|
||||
status,
|
||||
actionRef,
|
||||
packName,
|
||||
ruleRef,
|
||||
triggerRef,
|
||||
executor,
|
||||
resultContains,
|
||||
enforcement,
|
||||
parent,
|
||||
topLevelOnly,
|
||||
page,
|
||||
perPage,
|
||||
}: {
|
||||
/**
|
||||
* List all executions with pagination and optional filters
|
||||
* @returns PaginatedResponse_ExecutionSummary List of executions
|
||||
* @throws ApiError
|
||||
* Filter by execution status
|
||||
*/
|
||||
public static listExecutions({
|
||||
status,
|
||||
actionRef,
|
||||
packName,
|
||||
ruleRef,
|
||||
triggerRef,
|
||||
executor,
|
||||
resultContains,
|
||||
enforcement,
|
||||
parent,
|
||||
page,
|
||||
perPage,
|
||||
}: {
|
||||
/**
|
||||
* Filter by execution status
|
||||
*/
|
||||
status?: (null | ExecutionStatus),
|
||||
/**
|
||||
* Filter by action reference
|
||||
*/
|
||||
actionRef?: string | null,
|
||||
/**
|
||||
* Filter by pack name
|
||||
*/
|
||||
packName?: string | null,
|
||||
/**
|
||||
* Filter by rule reference
|
||||
*/
|
||||
ruleRef?: string | null,
|
||||
/**
|
||||
* Filter by trigger reference
|
||||
*/
|
||||
triggerRef?: string | null,
|
||||
/**
|
||||
* Filter by executor ID
|
||||
*/
|
||||
executor?: number | null,
|
||||
/**
|
||||
* Search in result JSON (case-insensitive substring match)
|
||||
*/
|
||||
resultContains?: string | null,
|
||||
/**
|
||||
* Filter by enforcement ID
|
||||
*/
|
||||
enforcement?: number | null,
|
||||
/**
|
||||
* Filter by parent execution ID
|
||||
*/
|
||||
parent?: number | null,
|
||||
/**
|
||||
* Page number (for pagination)
|
||||
*/
|
||||
page?: number,
|
||||
/**
|
||||
* Items per page (for pagination)
|
||||
*/
|
||||
perPage?: number,
|
||||
}): CancelablePromise<PaginatedResponse_ExecutionSummary> {
|
||||
return __request(OpenAPI, {
|
||||
method: 'GET',
|
||||
url: '/api/v1/executions',
|
||||
query: {
|
||||
'status': status,
|
||||
'action_ref': actionRef,
|
||||
'pack_name': packName,
|
||||
'rule_ref': ruleRef,
|
||||
'trigger_ref': triggerRef,
|
||||
'executor': executor,
|
||||
'result_contains': resultContains,
|
||||
'enforcement': enforcement,
|
||||
'parent': parent,
|
||||
'page': page,
|
||||
'per_page': perPage,
|
||||
},
|
||||
});
|
||||
}
|
||||
status?: null | ExecutionStatus;
|
||||
/**
|
||||
* List executions by enforcement ID
|
||||
* @returns PaginatedResponse_ExecutionSummary List of executions for enforcement
|
||||
* @throws ApiError
|
||||
* Filter by action reference
|
||||
*/
|
||||
public static listExecutionsByEnforcement({
|
||||
enforcementId,
|
||||
page,
|
||||
pageSize,
|
||||
}: {
|
||||
/**
|
||||
* Enforcement ID
|
||||
*/
|
||||
enforcementId: number,
|
||||
/**
|
||||
* Page number (1-based)
|
||||
*/
|
||||
page?: number,
|
||||
/**
|
||||
* Number of items per page
|
||||
*/
|
||||
pageSize?: number,
|
||||
}): CancelablePromise<PaginatedResponse_ExecutionSummary> {
|
||||
return __request(OpenAPI, {
|
||||
method: 'GET',
|
||||
url: '/api/v1/executions/enforcement/{enforcement_id}',
|
||||
path: {
|
||||
'enforcement_id': enforcementId,
|
||||
},
|
||||
query: {
|
||||
'page': page,
|
||||
'page_size': pageSize,
|
||||
},
|
||||
errors: {
|
||||
500: `Internal server error`,
|
||||
},
|
||||
});
|
||||
}
|
||||
actionRef?: string | null;
|
||||
/**
|
||||
* Get execution statistics
|
||||
* @returns any Execution statistics
|
||||
* @throws ApiError
|
||||
* Filter by pack name
|
||||
*/
|
||||
public static getExecutionStats(): CancelablePromise<Record<string, any>> {
|
||||
return __request(OpenAPI, {
|
||||
method: 'GET',
|
||||
url: '/api/v1/executions/stats',
|
||||
errors: {
|
||||
500: `Internal server error`,
|
||||
},
|
||||
});
|
||||
}
|
||||
packName?: string | null;
|
||||
/**
|
||||
* List executions by status
|
||||
* @returns PaginatedResponse_ExecutionSummary List of executions with specified status
|
||||
* @throws ApiError
|
||||
* Filter by rule reference
|
||||
*/
|
||||
public static listExecutionsByStatus({
|
||||
status,
|
||||
page,
|
||||
pageSize,
|
||||
}: {
|
||||
/**
|
||||
* Execution status (requested, scheduling, scheduled, running, completed, failed, canceling, cancelled, timeout, abandoned)
|
||||
*/
|
||||
status: string,
|
||||
/**
|
||||
* Page number (1-based)
|
||||
*/
|
||||
page?: number,
|
||||
/**
|
||||
* Number of items per page
|
||||
*/
|
||||
pageSize?: number,
|
||||
}): CancelablePromise<PaginatedResponse_ExecutionSummary> {
|
||||
return __request(OpenAPI, {
|
||||
method: 'GET',
|
||||
url: '/api/v1/executions/status/{status}',
|
||||
path: {
|
||||
'status': status,
|
||||
},
|
||||
query: {
|
||||
'page': page,
|
||||
'page_size': pageSize,
|
||||
},
|
||||
errors: {
|
||||
400: `Invalid status`,
|
||||
500: `Internal server error`,
|
||||
},
|
||||
});
|
||||
}
|
||||
ruleRef?: string | null;
|
||||
/**
|
||||
* Get a single execution by ID
|
||||
* @returns any Execution details
|
||||
* @throws ApiError
|
||||
* Filter by trigger reference
|
||||
*/
|
||||
public static getExecution({
|
||||
id,
|
||||
}: {
|
||||
/**
|
||||
* Execution ID
|
||||
*/
|
||||
id: number,
|
||||
}): CancelablePromise<{
|
||||
/**
|
||||
* Response DTO for execution information
|
||||
*/
|
||||
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;
|
||||
};
|
||||
/**
|
||||
* Optional message
|
||||
*/
|
||||
message?: string | null;
|
||||
}> {
|
||||
return __request(OpenAPI, {
|
||||
method: 'GET',
|
||||
url: '/api/v1/executions/{id}',
|
||||
path: {
|
||||
'id': id,
|
||||
},
|
||||
errors: {
|
||||
404: `Execution not found`,
|
||||
},
|
||||
});
|
||||
}
|
||||
triggerRef?: string | null;
|
||||
/**
|
||||
* Filter by executor ID
|
||||
*/
|
||||
executor?: number | null;
|
||||
/**
|
||||
* Search in result JSON (case-insensitive substring match)
|
||||
*/
|
||||
resultContains?: string | null;
|
||||
/**
|
||||
* Filter by enforcement ID
|
||||
*/
|
||||
enforcement?: number | null;
|
||||
/**
|
||||
* Filter by parent execution ID
|
||||
*/
|
||||
parent?: number | null;
|
||||
/**
|
||||
* If true, only return top-level executions (those without a parent)
|
||||
*/
|
||||
topLevelOnly?: boolean | null;
|
||||
/**
|
||||
* Page number (for pagination)
|
||||
*/
|
||||
page?: number;
|
||||
/**
|
||||
* Items per page (for pagination)
|
||||
*/
|
||||
perPage?: number;
|
||||
}): CancelablePromise<PaginatedResponse_ExecutionSummary> {
|
||||
return __request(OpenAPI, {
|
||||
method: "GET",
|
||||
url: "/api/v1/executions",
|
||||
query: {
|
||||
status: status,
|
||||
action_ref: actionRef,
|
||||
pack_name: packName,
|
||||
rule_ref: ruleRef,
|
||||
trigger_ref: triggerRef,
|
||||
executor: executor,
|
||||
result_contains: resultContains,
|
||||
enforcement: enforcement,
|
||||
parent: parent,
|
||||
top_level_only: topLevelOnly,
|
||||
page: page,
|
||||
per_page: perPage,
|
||||
},
|
||||
});
|
||||
}
|
||||
/**
|
||||
* List executions by enforcement ID
|
||||
* @returns PaginatedResponse_ExecutionSummary List of executions for enforcement
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static listExecutionsByEnforcement({
|
||||
enforcementId,
|
||||
page,
|
||||
pageSize,
|
||||
}: {
|
||||
/**
|
||||
* Enforcement ID
|
||||
*/
|
||||
enforcementId: number;
|
||||
/**
|
||||
* Page number (1-based)
|
||||
*/
|
||||
page?: number;
|
||||
/**
|
||||
* Number of items per page
|
||||
*/
|
||||
pageSize?: number;
|
||||
}): CancelablePromise<PaginatedResponse_ExecutionSummary> {
|
||||
return __request(OpenAPI, {
|
||||
method: "GET",
|
||||
url: "/api/v1/executions/enforcement/{enforcement_id}",
|
||||
path: {
|
||||
enforcement_id: enforcementId,
|
||||
},
|
||||
query: {
|
||||
page: page,
|
||||
page_size: pageSize,
|
||||
},
|
||||
errors: {
|
||||
500: `Internal server error`,
|
||||
},
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Get execution statistics
|
||||
* @returns any Execution statistics
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static getExecutionStats(): CancelablePromise<Record<string, any>> {
|
||||
return __request(OpenAPI, {
|
||||
method: "GET",
|
||||
url: "/api/v1/executions/stats",
|
||||
errors: {
|
||||
500: `Internal server error`,
|
||||
},
|
||||
});
|
||||
}
|
||||
/**
|
||||
* List executions by status
|
||||
* @returns PaginatedResponse_ExecutionSummary List of executions with specified status
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static listExecutionsByStatus({
|
||||
status,
|
||||
page,
|
||||
pageSize,
|
||||
}: {
|
||||
/**
|
||||
* Execution status (requested, scheduling, scheduled, running, completed, failed, canceling, cancelled, timeout, abandoned)
|
||||
*/
|
||||
status: string;
|
||||
/**
|
||||
* Page number (1-based)
|
||||
*/
|
||||
page?: number;
|
||||
/**
|
||||
* Number of items per page
|
||||
*/
|
||||
pageSize?: number;
|
||||
}): CancelablePromise<PaginatedResponse_ExecutionSummary> {
|
||||
return __request(OpenAPI, {
|
||||
method: "GET",
|
||||
url: "/api/v1/executions/status/{status}",
|
||||
path: {
|
||||
status: status,
|
||||
},
|
||||
query: {
|
||||
page: page,
|
||||
page_size: pageSize,
|
||||
},
|
||||
errors: {
|
||||
400: `Invalid status`,
|
||||
500: `Internal server error`,
|
||||
},
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Get a single execution by ID
|
||||
* @returns any Execution details
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static getExecution({
|
||||
id,
|
||||
}: {
|
||||
/**
|
||||
* Execution ID
|
||||
*/
|
||||
id: number;
|
||||
}): CancelablePromise<{
|
||||
/**
|
||||
* Response DTO for execution information
|
||||
*/
|
||||
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;
|
||||
/**
|
||||
* 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;
|
||||
}> {
|
||||
return __request(OpenAPI, {
|
||||
method: "GET",
|
||||
url: "/api/v1/executions/{id}",
|
||||
path: {
|
||||
id: id,
|
||||
},
|
||||
errors: {
|
||||
404: `Execution not found`,
|
||||
},
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@@ -71,6 +71,10 @@ export class PacksService {
|
||||
* Creation timestamp
|
||||
*/
|
||||
created: string;
|
||||
/**
|
||||
* Pack dependencies (refs of required packs)
|
||||
*/
|
||||
dependencies: Array<string>;
|
||||
/**
|
||||
* Pack description
|
||||
*/
|
||||
@@ -96,7 +100,7 @@ export class PacksService {
|
||||
*/
|
||||
ref: string;
|
||||
/**
|
||||
* Runtime dependencies
|
||||
* Runtime dependencies (e.g., shell, python, nodejs)
|
||||
*/
|
||||
runtime_deps: Array<string>;
|
||||
/**
|
||||
@@ -145,7 +149,6 @@ export class PacksService {
|
||||
mediaType: 'application/json',
|
||||
errors: {
|
||||
400: `Invalid request or tests failed`,
|
||||
409: `Pack already exists`,
|
||||
501: `Not implemented yet`,
|
||||
},
|
||||
});
|
||||
@@ -200,6 +203,10 @@ export class PacksService {
|
||||
* Creation timestamp
|
||||
*/
|
||||
created: string;
|
||||
/**
|
||||
* Pack dependencies (refs of required packs)
|
||||
*/
|
||||
dependencies: Array<string>;
|
||||
/**
|
||||
* Pack description
|
||||
*/
|
||||
@@ -225,7 +232,7 @@ export class PacksService {
|
||||
*/
|
||||
ref: string;
|
||||
/**
|
||||
* Runtime dependencies
|
||||
* Runtime dependencies (e.g., shell, python, nodejs)
|
||||
*/
|
||||
runtime_deps: Array<string>;
|
||||
/**
|
||||
@@ -288,6 +295,10 @@ export class PacksService {
|
||||
* Creation timestamp
|
||||
*/
|
||||
created: string;
|
||||
/**
|
||||
* Pack dependencies (refs of required packs)
|
||||
*/
|
||||
dependencies: Array<string>;
|
||||
/**
|
||||
* Pack description
|
||||
*/
|
||||
@@ -313,7 +324,7 @@ export class PacksService {
|
||||
*/
|
||||
ref: string;
|
||||
/**
|
||||
* Runtime dependencies
|
||||
* Runtime dependencies (e.g., shell, python, nodejs)
|
||||
*/
|
||||
runtime_deps: Array<string>;
|
||||
/**
|
||||
|
||||
@@ -150,7 +150,7 @@ export class WorkflowsService {
|
||||
*/
|
||||
pack_ref: string;
|
||||
/**
|
||||
* Parameter schema
|
||||
* Parameter schema (StackStorm-style with inline required/secret)
|
||||
*/
|
||||
param_schema: any | null;
|
||||
/**
|
||||
@@ -241,7 +241,7 @@ export class WorkflowsService {
|
||||
*/
|
||||
pack_ref: string;
|
||||
/**
|
||||
* Parameter schema
|
||||
* Parameter schema (StackStorm-style with inline required/secret)
|
||||
*/
|
||||
param_schema: any | null;
|
||||
/**
|
||||
@@ -333,7 +333,7 @@ export class WorkflowsService {
|
||||
*/
|
||||
pack_ref: string;
|
||||
/**
|
||||
* Parameter schema
|
||||
* Parameter schema (StackStorm-style with inline required/secret)
|
||||
*/
|
||||
param_schema: any | null;
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user