[WIP] Workflows

This commit is contained in:
2026-02-27 16:34:17 -06:00
parent 570c52e623
commit daeff10f18
96 changed files with 5889 additions and 2098 deletions

View File

@@ -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`,
},
});
}
}

View File

@@ -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`,
},
});
}
}

View File

@@ -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`,
},
});
}
}

View File

@@ -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>;
/**

View File

@@ -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;
/**