first pass at access control setup
This commit is contained in:
@@ -6,65 +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 (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;
|
||||
/**
|
||||
* Creation timestamp
|
||||
*/
|
||||
created: string;
|
||||
/**
|
||||
* Action description
|
||||
*/
|
||||
description: string | null;
|
||||
/**
|
||||
* 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,49 +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;
|
||||
/**
|
||||
* 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;
|
||||
/**
|
||||
* Creation timestamp
|
||||
*/
|
||||
created: string;
|
||||
/**
|
||||
* Action description
|
||||
*/
|
||||
description: string | null;
|
||||
/**
|
||||
* 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;
|
||||
};
|
||||
|
||||
|
||||
22
web/src/api/models/AgentArchInfo.ts
Normal file
22
web/src/api/models/AgentArchInfo.ts
Normal file
@@ -0,0 +1,22 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
/**
|
||||
* Per-architecture binary info
|
||||
*/
|
||||
export type AgentArchInfo = {
|
||||
/**
|
||||
* Architecture name
|
||||
*/
|
||||
arch: string;
|
||||
/**
|
||||
* Whether this binary is available
|
||||
*/
|
||||
available: boolean;
|
||||
/**
|
||||
* Binary size in bytes
|
||||
*/
|
||||
size_bytes: number;
|
||||
};
|
||||
|
||||
19
web/src/api/models/AgentBinaryInfo.ts
Normal file
19
web/src/api/models/AgentBinaryInfo.ts
Normal file
@@ -0,0 +1,19 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
import type { AgentArchInfo } from './AgentArchInfo';
|
||||
/**
|
||||
* Agent binary metadata
|
||||
*/
|
||||
export type AgentBinaryInfo = {
|
||||
/**
|
||||
* Available architectures
|
||||
*/
|
||||
architectures: Array<AgentArchInfo>;
|
||||
/**
|
||||
* Agent version (from build)
|
||||
*/
|
||||
version: string;
|
||||
};
|
||||
|
||||
@@ -6,74 +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 (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;
|
||||
};
|
||||
created: string;
|
||||
/**
|
||||
* Optional message
|
||||
* Action description
|
||||
*/
|
||||
message?: string | null;
|
||||
description: string | null;
|
||||
/**
|
||||
* 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;
|
||||
};
|
||||
|
||||
|
||||
75
web/src/api/models/ApiResponse_AuthSettingsResponse.ts
Normal file
75
web/src/api/models/ApiResponse_AuthSettingsResponse.ts
Normal file
@@ -0,0 +1,75 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
/**
|
||||
* Standard API response wrapper
|
||||
*/
|
||||
export type ApiResponse_AuthSettingsResponse = {
|
||||
/**
|
||||
* Public authentication settings for the login page.
|
||||
*/
|
||||
data: {
|
||||
/**
|
||||
* Whether authentication is enabled for the server.
|
||||
*/
|
||||
authentication_enabled: boolean;
|
||||
/**
|
||||
* Whether LDAP login is configured and enabled.
|
||||
*/
|
||||
ldap_enabled: boolean;
|
||||
/**
|
||||
* Optional icon URL shown beside the provider label.
|
||||
*/
|
||||
ldap_provider_icon_url?: string | null;
|
||||
/**
|
||||
* User-facing provider label for the login button.
|
||||
*/
|
||||
ldap_provider_label?: string | null;
|
||||
/**
|
||||
* Provider name for `?auth=<provider>`.
|
||||
*/
|
||||
ldap_provider_name?: string | null;
|
||||
/**
|
||||
* Whether LDAP login should be shown by default.
|
||||
*/
|
||||
ldap_visible_by_default: boolean;
|
||||
/**
|
||||
* Whether local username/password login is configured.
|
||||
*/
|
||||
local_password_enabled: boolean;
|
||||
/**
|
||||
* Whether local username/password login should be shown by default.
|
||||
*/
|
||||
local_password_visible_by_default: boolean;
|
||||
/**
|
||||
* Whether OIDC login is configured and enabled.
|
||||
*/
|
||||
oidc_enabled: boolean;
|
||||
/**
|
||||
* Optional icon URL shown beside the provider label.
|
||||
*/
|
||||
oidc_provider_icon_url?: string | null;
|
||||
/**
|
||||
* User-facing provider label for the login button.
|
||||
*/
|
||||
oidc_provider_label?: string | null;
|
||||
/**
|
||||
* Provider name for `?auth=<provider>`.
|
||||
*/
|
||||
oidc_provider_name?: string | null;
|
||||
/**
|
||||
* Whether OIDC login should be shown by default.
|
||||
*/
|
||||
oidc_visible_by_default: boolean;
|
||||
/**
|
||||
* Whether unauthenticated self-service registration is allowed.
|
||||
*/
|
||||
self_registration_enabled: boolean;
|
||||
};
|
||||
/**
|
||||
* Optional message
|
||||
*/
|
||||
message?: string | null;
|
||||
};
|
||||
|
||||
@@ -2,16 +2,21 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
import type { IdentityRoleAssignmentResponse } from './IdentityRoleAssignmentResponse';
|
||||
import type { PermissionAssignmentResponse } from './PermissionAssignmentResponse';
|
||||
import type { Value } from './Value';
|
||||
/**
|
||||
* Standard API response wrapper
|
||||
*/
|
||||
export type ApiResponse_IdentitySummary = {
|
||||
export type ApiResponse_IdentityResponse = {
|
||||
data: {
|
||||
attributes: Value;
|
||||
direct_permissions: Array<PermissionAssignmentResponse>;
|
||||
display_name?: string | null;
|
||||
frozen: boolean;
|
||||
id: number;
|
||||
login: string;
|
||||
roles: Array<IdentityRoleAssignmentResponse>;
|
||||
};
|
||||
/**
|
||||
* Optional message
|
||||
@@ -6,82 +6,81 @@
|
||||
* Standard API response wrapper
|
||||
*/
|
||||
export type ApiResponse_RuleResponse = {
|
||||
/**
|
||||
* Response DTO for rule information
|
||||
*/
|
||||
data: {
|
||||
/**
|
||||
* Response DTO for rule information
|
||||
* Action ID (null if the referenced action has been deleted)
|
||||
*/
|
||||
data: {
|
||||
/**
|
||||
* Action ID (null if the referenced action has been deleted)
|
||||
*/
|
||||
action?: number | null;
|
||||
/**
|
||||
* Parameters to pass to the action when rule is triggered
|
||||
*/
|
||||
action_params: Record<string, any>;
|
||||
/**
|
||||
* Action reference
|
||||
*/
|
||||
action_ref: string;
|
||||
/**
|
||||
* Conditions for rule evaluation
|
||||
*/
|
||||
conditions: Record<string, any>;
|
||||
/**
|
||||
* Creation timestamp
|
||||
*/
|
||||
created: string;
|
||||
/**
|
||||
* Rule description
|
||||
*/
|
||||
description: string;
|
||||
/**
|
||||
* Whether the rule is enabled
|
||||
*/
|
||||
enabled: boolean;
|
||||
/**
|
||||
* Rule ID
|
||||
*/
|
||||
id: number;
|
||||
/**
|
||||
* Whether this is an ad-hoc rule (not from pack installation)
|
||||
*/
|
||||
is_adhoc: boolean;
|
||||
/**
|
||||
* Human-readable label
|
||||
*/
|
||||
label: string;
|
||||
/**
|
||||
* Pack ID
|
||||
*/
|
||||
pack: number;
|
||||
/**
|
||||
* Pack reference
|
||||
*/
|
||||
pack_ref: string;
|
||||
/**
|
||||
* Unique reference identifier
|
||||
*/
|
||||
ref: string;
|
||||
/**
|
||||
* Trigger ID (null if the referenced trigger has been deleted)
|
||||
*/
|
||||
trigger?: number | null;
|
||||
/**
|
||||
* Parameters for trigger configuration and event filtering
|
||||
*/
|
||||
trigger_params: Record<string, any>;
|
||||
/**
|
||||
* Trigger reference
|
||||
*/
|
||||
trigger_ref: string;
|
||||
/**
|
||||
* Last update timestamp
|
||||
*/
|
||||
updated: string;
|
||||
};
|
||||
action?: number | null;
|
||||
/**
|
||||
* Optional message
|
||||
* Parameters to pass to the action when rule is triggered
|
||||
*/
|
||||
message?: string | null;
|
||||
action_params: Record<string, any>;
|
||||
/**
|
||||
* Action reference
|
||||
*/
|
||||
action_ref: string;
|
||||
/**
|
||||
* Conditions for rule evaluation
|
||||
*/
|
||||
conditions: Record<string, any>;
|
||||
/**
|
||||
* Creation timestamp
|
||||
*/
|
||||
created: string;
|
||||
/**
|
||||
* Rule description
|
||||
*/
|
||||
description: string | null;
|
||||
/**
|
||||
* Whether the rule is enabled
|
||||
*/
|
||||
enabled: boolean;
|
||||
/**
|
||||
* Rule ID
|
||||
*/
|
||||
id: number;
|
||||
/**
|
||||
* Whether this is an ad-hoc rule (not from pack installation)
|
||||
*/
|
||||
is_adhoc: boolean;
|
||||
/**
|
||||
* Human-readable label
|
||||
*/
|
||||
label: string;
|
||||
/**
|
||||
* Pack ID
|
||||
*/
|
||||
pack: number;
|
||||
/**
|
||||
* Pack reference
|
||||
*/
|
||||
pack_ref: string;
|
||||
/**
|
||||
* Unique reference identifier
|
||||
*/
|
||||
ref: string;
|
||||
/**
|
||||
* Trigger ID (null if the referenced trigger has been deleted)
|
||||
*/
|
||||
trigger?: number | null;
|
||||
/**
|
||||
* Parameters for trigger configuration and event filtering
|
||||
*/
|
||||
trigger_params: Record<string, any>;
|
||||
/**
|
||||
* Trigger reference
|
||||
*/
|
||||
trigger_ref: string;
|
||||
/**
|
||||
* Last update timestamp
|
||||
*/
|
||||
updated: string;
|
||||
};
|
||||
/**
|
||||
* Optional message
|
||||
*/
|
||||
message?: string | null;
|
||||
};
|
||||
|
||||
|
||||
@@ -6,74 +6,73 @@
|
||||
* Standard API response wrapper
|
||||
*/
|
||||
export type ApiResponse_SensorResponse = {
|
||||
/**
|
||||
* Response DTO for sensor information
|
||||
*/
|
||||
data: {
|
||||
/**
|
||||
* Response DTO for sensor information
|
||||
* Creation timestamp
|
||||
*/
|
||||
data: {
|
||||
/**
|
||||
* Creation timestamp
|
||||
*/
|
||||
created: string;
|
||||
/**
|
||||
* Sensor description
|
||||
*/
|
||||
description: string;
|
||||
/**
|
||||
* Whether the sensor is enabled
|
||||
*/
|
||||
enabled: boolean;
|
||||
/**
|
||||
* Entry point
|
||||
*/
|
||||
entrypoint: string;
|
||||
/**
|
||||
* Sensor ID
|
||||
*/
|
||||
id: number;
|
||||
/**
|
||||
* Human-readable label
|
||||
*/
|
||||
label: string;
|
||||
/**
|
||||
* Pack ID (optional)
|
||||
*/
|
||||
pack?: number | null;
|
||||
/**
|
||||
* Pack reference (optional)
|
||||
*/
|
||||
pack_ref?: string | null;
|
||||
/**
|
||||
* Parameter schema (StackStorm-style with inline required/secret)
|
||||
*/
|
||||
param_schema: any | null;
|
||||
/**
|
||||
* Unique reference identifier
|
||||
*/
|
||||
ref: string;
|
||||
/**
|
||||
* Runtime ID
|
||||
*/
|
||||
runtime: number;
|
||||
/**
|
||||
* Runtime reference
|
||||
*/
|
||||
runtime_ref: string;
|
||||
/**
|
||||
* Trigger ID
|
||||
*/
|
||||
trigger: number;
|
||||
/**
|
||||
* Trigger reference
|
||||
*/
|
||||
trigger_ref: string;
|
||||
/**
|
||||
* Last update timestamp
|
||||
*/
|
||||
updated: string;
|
||||
};
|
||||
created: string;
|
||||
/**
|
||||
* Optional message
|
||||
* Sensor description
|
||||
*/
|
||||
message?: string | null;
|
||||
description: string | null;
|
||||
/**
|
||||
* Whether the sensor is enabled
|
||||
*/
|
||||
enabled: boolean;
|
||||
/**
|
||||
* Entry point
|
||||
*/
|
||||
entrypoint: string;
|
||||
/**
|
||||
* Sensor ID
|
||||
*/
|
||||
id: number;
|
||||
/**
|
||||
* Human-readable label
|
||||
*/
|
||||
label: string;
|
||||
/**
|
||||
* Pack ID (optional)
|
||||
*/
|
||||
pack?: number | null;
|
||||
/**
|
||||
* Pack reference (optional)
|
||||
*/
|
||||
pack_ref?: string | null;
|
||||
/**
|
||||
* Parameter schema (StackStorm-style with inline required/secret)
|
||||
*/
|
||||
param_schema: any | null;
|
||||
/**
|
||||
* Unique reference identifier
|
||||
*/
|
||||
ref: string;
|
||||
/**
|
||||
* Runtime ID
|
||||
*/
|
||||
runtime: number;
|
||||
/**
|
||||
* Runtime reference
|
||||
*/
|
||||
runtime_ref: string;
|
||||
/**
|
||||
* Trigger ID
|
||||
*/
|
||||
trigger: number;
|
||||
/**
|
||||
* Trigger reference
|
||||
*/
|
||||
trigger_ref: string;
|
||||
/**
|
||||
* Last update timestamp
|
||||
*/
|
||||
updated: string;
|
||||
};
|
||||
/**
|
||||
* Optional message
|
||||
*/
|
||||
message?: string | null;
|
||||
};
|
||||
|
||||
|
||||
@@ -6,41 +6,40 @@
|
||||
* Request DTO for creating a new action
|
||||
*/
|
||||
export type CreateActionRequest = {
|
||||
/**
|
||||
* Action description
|
||||
*/
|
||||
description: string;
|
||||
/**
|
||||
* Entry point for action execution (e.g., path to script, function name)
|
||||
*/
|
||||
entrypoint: string;
|
||||
/**
|
||||
* Human-readable label
|
||||
*/
|
||||
label: string;
|
||||
/**
|
||||
* Output schema (flat format) defining expected outputs with inline required/secret
|
||||
*/
|
||||
out_schema?: any | null;
|
||||
/**
|
||||
* Pack reference this action belongs to
|
||||
*/
|
||||
pack_ref: string;
|
||||
/**
|
||||
* Parameter schema (StackStorm-style) defining expected inputs with inline required/secret
|
||||
*/
|
||||
param_schema?: any | null;
|
||||
/**
|
||||
* Unique reference identifier (e.g., "core.http", "aws.ec2.start_instance")
|
||||
*/
|
||||
ref: string;
|
||||
/**
|
||||
* 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;
|
||||
/**
|
||||
* Action description
|
||||
*/
|
||||
description?: string | null;
|
||||
/**
|
||||
* Entry point for action execution (e.g., path to script, function name)
|
||||
*/
|
||||
entrypoint: string;
|
||||
/**
|
||||
* Human-readable label
|
||||
*/
|
||||
label: string;
|
||||
/**
|
||||
* Output schema (flat format) defining expected outputs with inline required/secret
|
||||
*/
|
||||
out_schema?: any | null;
|
||||
/**
|
||||
* Pack reference this action belongs to
|
||||
*/
|
||||
pack_ref: string;
|
||||
/**
|
||||
* Parameter schema (StackStorm-style) defining expected inputs with inline required/secret
|
||||
*/
|
||||
param_schema?: any | null;
|
||||
/**
|
||||
* Unique reference identifier (e.g., "core.http", "aws.ec2.start_instance")
|
||||
*/
|
||||
ref: string;
|
||||
/**
|
||||
* 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;
|
||||
};
|
||||
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
export type CreateIdentityRoleAssignmentRequest = {
|
||||
role: string;
|
||||
};
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
export type CreatePermissionSetRoleAssignmentRequest = {
|
||||
role: string;
|
||||
};
|
||||
|
||||
@@ -6,45 +6,44 @@
|
||||
* Request DTO for creating a new rule
|
||||
*/
|
||||
export type CreateRuleRequest = {
|
||||
/**
|
||||
* Parameters to pass to the action when rule is triggered
|
||||
*/
|
||||
action_params?: Record<string, any>;
|
||||
/**
|
||||
* Action reference to execute when rule matches
|
||||
*/
|
||||
action_ref: string;
|
||||
/**
|
||||
* Conditions for rule evaluation (JSON Logic or custom format)
|
||||
*/
|
||||
conditions?: Record<string, any>;
|
||||
/**
|
||||
* Rule description
|
||||
*/
|
||||
description: string;
|
||||
/**
|
||||
* Whether the rule is enabled
|
||||
*/
|
||||
enabled?: boolean;
|
||||
/**
|
||||
* Human-readable label
|
||||
*/
|
||||
label: string;
|
||||
/**
|
||||
* Pack reference this rule belongs to
|
||||
*/
|
||||
pack_ref: string;
|
||||
/**
|
||||
* Unique reference identifier (e.g., "mypack.notify_on_error")
|
||||
*/
|
||||
ref: string;
|
||||
/**
|
||||
* Parameters for trigger configuration and event filtering
|
||||
*/
|
||||
trigger_params?: Record<string, any>;
|
||||
/**
|
||||
* Trigger reference that activates this rule
|
||||
*/
|
||||
trigger_ref: string;
|
||||
/**
|
||||
* Parameters to pass to the action when rule is triggered
|
||||
*/
|
||||
action_params?: Record<string, any>;
|
||||
/**
|
||||
* Action reference to execute when rule matches
|
||||
*/
|
||||
action_ref: string;
|
||||
/**
|
||||
* Conditions for rule evaluation (JSON Logic or custom format)
|
||||
*/
|
||||
conditions?: Record<string, any>;
|
||||
/**
|
||||
* Rule description
|
||||
*/
|
||||
description?: string | null;
|
||||
/**
|
||||
* Whether the rule is enabled
|
||||
*/
|
||||
enabled?: boolean;
|
||||
/**
|
||||
* Human-readable label
|
||||
*/
|
||||
label: string;
|
||||
/**
|
||||
* Pack reference this rule belongs to
|
||||
*/
|
||||
pack_ref: string;
|
||||
/**
|
||||
* Unique reference identifier (e.g., "mypack.notify_on_error")
|
||||
*/
|
||||
ref: string;
|
||||
/**
|
||||
* Parameters for trigger configuration and event filtering
|
||||
*/
|
||||
trigger_params?: Record<string, any>;
|
||||
/**
|
||||
* Trigger reference that activates this rule
|
||||
*/
|
||||
trigger_ref: string;
|
||||
};
|
||||
|
||||
|
||||
@@ -6,45 +6,44 @@
|
||||
* Request DTO for creating a new sensor
|
||||
*/
|
||||
export type CreateSensorRequest = {
|
||||
/**
|
||||
* Configuration values for this sensor instance (conforms to param_schema)
|
||||
*/
|
||||
config?: any | null;
|
||||
/**
|
||||
* Sensor description
|
||||
*/
|
||||
description: string;
|
||||
/**
|
||||
* Whether the sensor is enabled
|
||||
*/
|
||||
enabled?: boolean;
|
||||
/**
|
||||
* Entry point for sensor execution (e.g., path to script, function name)
|
||||
*/
|
||||
entrypoint: string;
|
||||
/**
|
||||
* Human-readable label
|
||||
*/
|
||||
label: string;
|
||||
/**
|
||||
* Pack reference this sensor belongs to
|
||||
*/
|
||||
pack_ref: string;
|
||||
/**
|
||||
* Parameter schema (flat format) for sensor configuration
|
||||
*/
|
||||
param_schema?: any | null;
|
||||
/**
|
||||
* Unique reference identifier (e.g., "mypack.cpu_monitor")
|
||||
*/
|
||||
ref: string;
|
||||
/**
|
||||
* Runtime reference for this sensor
|
||||
*/
|
||||
runtime_ref: string;
|
||||
/**
|
||||
* Trigger reference this sensor monitors for
|
||||
*/
|
||||
trigger_ref: string;
|
||||
/**
|
||||
* Configuration values for this sensor instance (conforms to param_schema)
|
||||
*/
|
||||
config?: any | null;
|
||||
/**
|
||||
* Sensor description
|
||||
*/
|
||||
description?: string | null;
|
||||
/**
|
||||
* Whether the sensor is enabled
|
||||
*/
|
||||
enabled?: boolean;
|
||||
/**
|
||||
* Entry point for sensor execution (e.g., path to script, function name)
|
||||
*/
|
||||
entrypoint: string;
|
||||
/**
|
||||
* Human-readable label
|
||||
*/
|
||||
label: string;
|
||||
/**
|
||||
* Pack reference this sensor belongs to
|
||||
*/
|
||||
pack_ref: string;
|
||||
/**
|
||||
* Parameter schema (flat format) for sensor configuration
|
||||
*/
|
||||
param_schema?: any | null;
|
||||
/**
|
||||
* Unique reference identifier (e.g., "mypack.cpu_monitor")
|
||||
*/
|
||||
ref: string;
|
||||
/**
|
||||
* Runtime reference for this sensor
|
||||
*/
|
||||
runtime_ref: string;
|
||||
/**
|
||||
* Trigger reference this sensor monitors for
|
||||
*/
|
||||
trigger_ref: string;
|
||||
};
|
||||
|
||||
|
||||
17
web/src/api/models/IdentityResponse.ts
Normal file
17
web/src/api/models/IdentityResponse.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
import type { IdentityRoleAssignmentResponse } from './IdentityRoleAssignmentResponse';
|
||||
import type { PermissionAssignmentResponse } from './PermissionAssignmentResponse';
|
||||
import type { Value } from './Value';
|
||||
export type IdentityResponse = {
|
||||
attributes: Value;
|
||||
direct_permissions: Array<PermissionAssignmentResponse>;
|
||||
display_name?: string | null;
|
||||
frozen: boolean;
|
||||
id: number;
|
||||
login: string;
|
||||
roles: Array<IdentityRoleAssignmentResponse>;
|
||||
};
|
||||
|
||||
14
web/src/api/models/IdentityRoleAssignmentResponse.ts
Normal file
14
web/src/api/models/IdentityRoleAssignmentResponse.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
export type IdentityRoleAssignmentResponse = {
|
||||
created: string;
|
||||
id: number;
|
||||
identity_id: number;
|
||||
managed: boolean;
|
||||
role: string;
|
||||
source: string;
|
||||
updated: string;
|
||||
};
|
||||
|
||||
@@ -6,7 +6,9 @@ import type { Value } from './Value';
|
||||
export type IdentitySummary = {
|
||||
attributes: Value;
|
||||
display_name?: string | null;
|
||||
frozen: boolean;
|
||||
id: number;
|
||||
login: string;
|
||||
roles: Array<string>;
|
||||
};
|
||||
|
||||
|
||||
18
web/src/api/models/LdapLoginRequest.ts
Normal file
18
web/src/api/models/LdapLoginRequest.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
/**
|
||||
* Request body for LDAP login.
|
||||
*/
|
||||
export type LdapLoginRequest = {
|
||||
/**
|
||||
* User login name (uid, sAMAccountName, etc.)
|
||||
*/
|
||||
login: string;
|
||||
/**
|
||||
* User password
|
||||
*/
|
||||
password: string;
|
||||
};
|
||||
|
||||
18
web/src/api/models/PackDescriptionPatch.ts
Normal file
18
web/src/api/models/PackDescriptionPatch.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
export type PackDescriptionPatch =
|
||||
| {
|
||||
op: PackDescriptionPatch.op;
|
||||
value: string;
|
||||
}
|
||||
| {
|
||||
op: PackDescriptionPatch.op;
|
||||
};
|
||||
export namespace PackDescriptionPatch {
|
||||
export enum op {
|
||||
SET = "set",
|
||||
CLEAR = "clear",
|
||||
}
|
||||
}
|
||||
@@ -2,63 +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;
|
||||
/**
|
||||
* 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;
|
||||
}>;
|
||||
created: string;
|
||||
/**
|
||||
* Pagination metadata
|
||||
* Action description
|
||||
*/
|
||||
pagination: PaginationMeta;
|
||||
description: string | null;
|
||||
/**
|
||||
* 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;
|
||||
};
|
||||
|
||||
|
||||
@@ -14,8 +14,10 @@ export type PaginatedResponse_IdentitySummary = {
|
||||
data: Array<{
|
||||
attributes: Value;
|
||||
display_name?: string | null;
|
||||
frozen: boolean;
|
||||
id: number;
|
||||
login: string;
|
||||
roles: Array<string>;
|
||||
}>;
|
||||
/**
|
||||
* Pagination metadata
|
||||
|
||||
@@ -2,67 +2,66 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
import type { PaginationMeta } from './PaginationMeta';
|
||||
import type { PaginationMeta } from "./PaginationMeta";
|
||||
/**
|
||||
* Paginated response wrapper
|
||||
*/
|
||||
export type PaginatedResponse_RuleSummary = {
|
||||
/**
|
||||
* The data items
|
||||
*/
|
||||
data: Array<{
|
||||
/**
|
||||
* The data items
|
||||
* Parameters to pass to the action when rule is triggered
|
||||
*/
|
||||
data: Array<{
|
||||
/**
|
||||
* Parameters to pass to the action when rule is triggered
|
||||
*/
|
||||
action_params: Record<string, any>;
|
||||
/**
|
||||
* Action reference
|
||||
*/
|
||||
action_ref: string;
|
||||
/**
|
||||
* Creation timestamp
|
||||
*/
|
||||
created: string;
|
||||
/**
|
||||
* Rule description
|
||||
*/
|
||||
description: string;
|
||||
/**
|
||||
* Whether the rule is enabled
|
||||
*/
|
||||
enabled: boolean;
|
||||
/**
|
||||
* Rule ID
|
||||
*/
|
||||
id: number;
|
||||
/**
|
||||
* Human-readable label
|
||||
*/
|
||||
label: string;
|
||||
/**
|
||||
* Pack reference
|
||||
*/
|
||||
pack_ref: string;
|
||||
/**
|
||||
* Unique reference identifier
|
||||
*/
|
||||
ref: string;
|
||||
/**
|
||||
* Parameters for trigger configuration and event filtering
|
||||
*/
|
||||
trigger_params: Record<string, any>;
|
||||
/**
|
||||
* Trigger reference
|
||||
*/
|
||||
trigger_ref: string;
|
||||
/**
|
||||
* Last update timestamp
|
||||
*/
|
||||
updated: string;
|
||||
}>;
|
||||
action_params: Record<string, any>;
|
||||
/**
|
||||
* Pagination metadata
|
||||
* Action reference
|
||||
*/
|
||||
pagination: PaginationMeta;
|
||||
action_ref: string;
|
||||
/**
|
||||
* Creation timestamp
|
||||
*/
|
||||
created: string;
|
||||
/**
|
||||
* Rule description
|
||||
*/
|
||||
description: string | null;
|
||||
/**
|
||||
* Whether the rule is enabled
|
||||
*/
|
||||
enabled: boolean;
|
||||
/**
|
||||
* Rule ID
|
||||
*/
|
||||
id: number;
|
||||
/**
|
||||
* Human-readable label
|
||||
*/
|
||||
label: string;
|
||||
/**
|
||||
* Pack reference
|
||||
*/
|
||||
pack_ref: string;
|
||||
/**
|
||||
* Unique reference identifier
|
||||
*/
|
||||
ref: string;
|
||||
/**
|
||||
* Parameters for trigger configuration and event filtering
|
||||
*/
|
||||
trigger_params: Record<string, any>;
|
||||
/**
|
||||
* Trigger reference
|
||||
*/
|
||||
trigger_ref: string;
|
||||
/**
|
||||
* Last update timestamp
|
||||
*/
|
||||
updated: string;
|
||||
}>;
|
||||
/**
|
||||
* Pagination metadata
|
||||
*/
|
||||
pagination: PaginationMeta;
|
||||
};
|
||||
|
||||
|
||||
@@ -2,55 +2,54 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
import type { PaginationMeta } from './PaginationMeta';
|
||||
import type { PaginationMeta } from "./PaginationMeta";
|
||||
/**
|
||||
* Paginated response wrapper
|
||||
*/
|
||||
export type PaginatedResponse_SensorSummary = {
|
||||
/**
|
||||
* The data items
|
||||
*/
|
||||
data: Array<{
|
||||
/**
|
||||
* The data items
|
||||
* Creation timestamp
|
||||
*/
|
||||
data: Array<{
|
||||
/**
|
||||
* Creation timestamp
|
||||
*/
|
||||
created: string;
|
||||
/**
|
||||
* Sensor description
|
||||
*/
|
||||
description: string;
|
||||
/**
|
||||
* Whether the sensor is enabled
|
||||
*/
|
||||
enabled: boolean;
|
||||
/**
|
||||
* Sensor ID
|
||||
*/
|
||||
id: number;
|
||||
/**
|
||||
* Human-readable label
|
||||
*/
|
||||
label: string;
|
||||
/**
|
||||
* Pack reference (optional)
|
||||
*/
|
||||
pack_ref?: string | null;
|
||||
/**
|
||||
* Unique reference identifier
|
||||
*/
|
||||
ref: string;
|
||||
/**
|
||||
* Trigger reference
|
||||
*/
|
||||
trigger_ref: string;
|
||||
/**
|
||||
* Last update timestamp
|
||||
*/
|
||||
updated: string;
|
||||
}>;
|
||||
created: string;
|
||||
/**
|
||||
* Pagination metadata
|
||||
* Sensor description
|
||||
*/
|
||||
pagination: PaginationMeta;
|
||||
description: string | null;
|
||||
/**
|
||||
* Whether the sensor is enabled
|
||||
*/
|
||||
enabled: boolean;
|
||||
/**
|
||||
* Sensor ID
|
||||
*/
|
||||
id: number;
|
||||
/**
|
||||
* Human-readable label
|
||||
*/
|
||||
label: string;
|
||||
/**
|
||||
* Pack reference (optional)
|
||||
*/
|
||||
pack_ref?: string | null;
|
||||
/**
|
||||
* Unique reference identifier
|
||||
*/
|
||||
ref: string;
|
||||
/**
|
||||
* Trigger reference
|
||||
*/
|
||||
trigger_ref: string;
|
||||
/**
|
||||
* Last update timestamp
|
||||
*/
|
||||
updated: string;
|
||||
}>;
|
||||
/**
|
||||
* Pagination metadata
|
||||
*/
|
||||
pagination: PaginationMeta;
|
||||
};
|
||||
|
||||
|
||||
12
web/src/api/models/PermissionSetRoleAssignmentResponse.ts
Normal file
12
web/src/api/models/PermissionSetRoleAssignmentResponse.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
export type PermissionSetRoleAssignmentResponse = {
|
||||
created: string;
|
||||
id: number;
|
||||
permission_set_id: number;
|
||||
permission_set_ref?: string | null;
|
||||
role: string;
|
||||
};
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
import type { PermissionSetRoleAssignmentResponse } from './PermissionSetRoleAssignmentResponse';
|
||||
import type { Value } from './Value';
|
||||
export type PermissionSetSummary = {
|
||||
description?: string | null;
|
||||
@@ -10,5 +11,6 @@ export type PermissionSetSummary = {
|
||||
label?: string | null;
|
||||
pack_ref?: string | null;
|
||||
ref: string;
|
||||
roles: Array<PermissionSetRoleAssignmentResponse>;
|
||||
};
|
||||
|
||||
|
||||
@@ -6,73 +6,72 @@
|
||||
* Response DTO for rule information
|
||||
*/
|
||||
export type RuleResponse = {
|
||||
/**
|
||||
* Action ID (null if the referenced action has been deleted)
|
||||
*/
|
||||
action?: number | null;
|
||||
/**
|
||||
* Parameters to pass to the action when rule is triggered
|
||||
*/
|
||||
action_params: Record<string, any>;
|
||||
/**
|
||||
* Action reference
|
||||
*/
|
||||
action_ref: string;
|
||||
/**
|
||||
* Conditions for rule evaluation
|
||||
*/
|
||||
conditions: Record<string, any>;
|
||||
/**
|
||||
* Creation timestamp
|
||||
*/
|
||||
created: string;
|
||||
/**
|
||||
* Rule description
|
||||
*/
|
||||
description: string;
|
||||
/**
|
||||
* Whether the rule is enabled
|
||||
*/
|
||||
enabled: boolean;
|
||||
/**
|
||||
* Rule ID
|
||||
*/
|
||||
id: number;
|
||||
/**
|
||||
* Whether this is an ad-hoc rule (not from pack installation)
|
||||
*/
|
||||
is_adhoc: boolean;
|
||||
/**
|
||||
* Human-readable label
|
||||
*/
|
||||
label: string;
|
||||
/**
|
||||
* Pack ID
|
||||
*/
|
||||
pack: number;
|
||||
/**
|
||||
* Pack reference
|
||||
*/
|
||||
pack_ref: string;
|
||||
/**
|
||||
* Unique reference identifier
|
||||
*/
|
||||
ref: string;
|
||||
/**
|
||||
* Trigger ID (null if the referenced trigger has been deleted)
|
||||
*/
|
||||
trigger?: number | null;
|
||||
/**
|
||||
* Parameters for trigger configuration and event filtering
|
||||
*/
|
||||
trigger_params: Record<string, any>;
|
||||
/**
|
||||
* Trigger reference
|
||||
*/
|
||||
trigger_ref: string;
|
||||
/**
|
||||
* Last update timestamp
|
||||
*/
|
||||
updated: string;
|
||||
/**
|
||||
* Action ID (null if the referenced action has been deleted)
|
||||
*/
|
||||
action?: number | null;
|
||||
/**
|
||||
* Parameters to pass to the action when rule is triggered
|
||||
*/
|
||||
action_params: Record<string, any>;
|
||||
/**
|
||||
* Action reference
|
||||
*/
|
||||
action_ref: string;
|
||||
/**
|
||||
* Conditions for rule evaluation
|
||||
*/
|
||||
conditions: Record<string, any>;
|
||||
/**
|
||||
* Creation timestamp
|
||||
*/
|
||||
created: string;
|
||||
/**
|
||||
* Rule description
|
||||
*/
|
||||
description: string | null;
|
||||
/**
|
||||
* Whether the rule is enabled
|
||||
*/
|
||||
enabled: boolean;
|
||||
/**
|
||||
* Rule ID
|
||||
*/
|
||||
id: number;
|
||||
/**
|
||||
* Whether this is an ad-hoc rule (not from pack installation)
|
||||
*/
|
||||
is_adhoc: boolean;
|
||||
/**
|
||||
* Human-readable label
|
||||
*/
|
||||
label: string;
|
||||
/**
|
||||
* Pack ID
|
||||
*/
|
||||
pack: number;
|
||||
/**
|
||||
* Pack reference
|
||||
*/
|
||||
pack_ref: string;
|
||||
/**
|
||||
* Unique reference identifier
|
||||
*/
|
||||
ref: string;
|
||||
/**
|
||||
* Trigger ID (null if the referenced trigger has been deleted)
|
||||
*/
|
||||
trigger?: number | null;
|
||||
/**
|
||||
* Parameters for trigger configuration and event filtering
|
||||
*/
|
||||
trigger_params: Record<string, any>;
|
||||
/**
|
||||
* Trigger reference
|
||||
*/
|
||||
trigger_ref: string;
|
||||
/**
|
||||
* Last update timestamp
|
||||
*/
|
||||
updated: string;
|
||||
};
|
||||
|
||||
|
||||
@@ -6,53 +6,52 @@
|
||||
* Simplified rule response (for list endpoints)
|
||||
*/
|
||||
export type RuleSummary = {
|
||||
/**
|
||||
* Parameters to pass to the action when rule is triggered
|
||||
*/
|
||||
action_params: Record<string, any>;
|
||||
/**
|
||||
* Action reference
|
||||
*/
|
||||
action_ref: string;
|
||||
/**
|
||||
* Creation timestamp
|
||||
*/
|
||||
created: string;
|
||||
/**
|
||||
* Rule description
|
||||
*/
|
||||
description: string;
|
||||
/**
|
||||
* Whether the rule is enabled
|
||||
*/
|
||||
enabled: boolean;
|
||||
/**
|
||||
* Rule ID
|
||||
*/
|
||||
id: number;
|
||||
/**
|
||||
* Human-readable label
|
||||
*/
|
||||
label: string;
|
||||
/**
|
||||
* Pack reference
|
||||
*/
|
||||
pack_ref: string;
|
||||
/**
|
||||
* Unique reference identifier
|
||||
*/
|
||||
ref: string;
|
||||
/**
|
||||
* Parameters for trigger configuration and event filtering
|
||||
*/
|
||||
trigger_params: Record<string, any>;
|
||||
/**
|
||||
* Trigger reference
|
||||
*/
|
||||
trigger_ref: string;
|
||||
/**
|
||||
* Last update timestamp
|
||||
*/
|
||||
updated: string;
|
||||
/**
|
||||
* Parameters to pass to the action when rule is triggered
|
||||
*/
|
||||
action_params: Record<string, any>;
|
||||
/**
|
||||
* Action reference
|
||||
*/
|
||||
action_ref: string;
|
||||
/**
|
||||
* Creation timestamp
|
||||
*/
|
||||
created: string;
|
||||
/**
|
||||
* Rule description
|
||||
*/
|
||||
description: string | null;
|
||||
/**
|
||||
* Whether the rule is enabled
|
||||
*/
|
||||
enabled: boolean;
|
||||
/**
|
||||
* Rule ID
|
||||
*/
|
||||
id: number;
|
||||
/**
|
||||
* Human-readable label
|
||||
*/
|
||||
label: string;
|
||||
/**
|
||||
* Pack reference
|
||||
*/
|
||||
pack_ref: string;
|
||||
/**
|
||||
* Unique reference identifier
|
||||
*/
|
||||
ref: string;
|
||||
/**
|
||||
* Parameters for trigger configuration and event filtering
|
||||
*/
|
||||
trigger_params: Record<string, any>;
|
||||
/**
|
||||
* Trigger reference
|
||||
*/
|
||||
trigger_ref: string;
|
||||
/**
|
||||
* Last update timestamp
|
||||
*/
|
||||
updated: string;
|
||||
};
|
||||
|
||||
|
||||
19
web/src/api/models/RuntimeVersionConstraintPatch.ts
Normal file
19
web/src/api/models/RuntimeVersionConstraintPatch.ts
Normal file
@@ -0,0 +1,19 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
/**
|
||||
* Explicit patch operation for a nullable runtime version constraint.
|
||||
*/
|
||||
export type RuntimeVersionConstraintPatch = ({
|
||||
op: RuntimeVersionConstraintPatch.op;
|
||||
value: string;
|
||||
} | {
|
||||
op: RuntimeVersionConstraintPatch.op;
|
||||
});
|
||||
export namespace RuntimeVersionConstraintPatch {
|
||||
export enum op {
|
||||
SET = 'set',
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,65 +6,64 @@
|
||||
* Response DTO for sensor information
|
||||
*/
|
||||
export type SensorResponse = {
|
||||
/**
|
||||
* Creation timestamp
|
||||
*/
|
||||
created: string;
|
||||
/**
|
||||
* Sensor description
|
||||
*/
|
||||
description: string;
|
||||
/**
|
||||
* Whether the sensor is enabled
|
||||
*/
|
||||
enabled: boolean;
|
||||
/**
|
||||
* Entry point
|
||||
*/
|
||||
entrypoint: string;
|
||||
/**
|
||||
* Sensor ID
|
||||
*/
|
||||
id: number;
|
||||
/**
|
||||
* Human-readable label
|
||||
*/
|
||||
label: string;
|
||||
/**
|
||||
* Pack ID (optional)
|
||||
*/
|
||||
pack?: number | null;
|
||||
/**
|
||||
* Pack reference (optional)
|
||||
*/
|
||||
pack_ref?: string | null;
|
||||
/**
|
||||
* Parameter schema (StackStorm-style with inline required/secret)
|
||||
*/
|
||||
param_schema: any | null;
|
||||
/**
|
||||
* Unique reference identifier
|
||||
*/
|
||||
ref: string;
|
||||
/**
|
||||
* Runtime ID
|
||||
*/
|
||||
runtime: number;
|
||||
/**
|
||||
* Runtime reference
|
||||
*/
|
||||
runtime_ref: string;
|
||||
/**
|
||||
* Trigger ID
|
||||
*/
|
||||
trigger: number;
|
||||
/**
|
||||
* Trigger reference
|
||||
*/
|
||||
trigger_ref: string;
|
||||
/**
|
||||
* Last update timestamp
|
||||
*/
|
||||
updated: string;
|
||||
/**
|
||||
* Creation timestamp
|
||||
*/
|
||||
created: string;
|
||||
/**
|
||||
* Sensor description
|
||||
*/
|
||||
description: string | null;
|
||||
/**
|
||||
* Whether the sensor is enabled
|
||||
*/
|
||||
enabled: boolean;
|
||||
/**
|
||||
* Entry point
|
||||
*/
|
||||
entrypoint: string;
|
||||
/**
|
||||
* Sensor ID
|
||||
*/
|
||||
id: number;
|
||||
/**
|
||||
* Human-readable label
|
||||
*/
|
||||
label: string;
|
||||
/**
|
||||
* Pack ID (optional)
|
||||
*/
|
||||
pack?: number | null;
|
||||
/**
|
||||
* Pack reference (optional)
|
||||
*/
|
||||
pack_ref?: string | null;
|
||||
/**
|
||||
* Parameter schema (StackStorm-style with inline required/secret)
|
||||
*/
|
||||
param_schema: any | null;
|
||||
/**
|
||||
* Unique reference identifier
|
||||
*/
|
||||
ref: string;
|
||||
/**
|
||||
* Runtime ID
|
||||
*/
|
||||
runtime: number;
|
||||
/**
|
||||
* Runtime reference
|
||||
*/
|
||||
runtime_ref: string;
|
||||
/**
|
||||
* Trigger ID
|
||||
*/
|
||||
trigger: number;
|
||||
/**
|
||||
* Trigger reference
|
||||
*/
|
||||
trigger_ref: string;
|
||||
/**
|
||||
* Last update timestamp
|
||||
*/
|
||||
updated: string;
|
||||
};
|
||||
|
||||
|
||||
@@ -6,41 +6,40 @@
|
||||
* Simplified sensor response (for list endpoints)
|
||||
*/
|
||||
export type SensorSummary = {
|
||||
/**
|
||||
* Creation timestamp
|
||||
*/
|
||||
created: string;
|
||||
/**
|
||||
* Sensor description
|
||||
*/
|
||||
description: string;
|
||||
/**
|
||||
* Whether the sensor is enabled
|
||||
*/
|
||||
enabled: boolean;
|
||||
/**
|
||||
* Sensor ID
|
||||
*/
|
||||
id: number;
|
||||
/**
|
||||
* Human-readable label
|
||||
*/
|
||||
label: string;
|
||||
/**
|
||||
* Pack reference (optional)
|
||||
*/
|
||||
pack_ref?: string | null;
|
||||
/**
|
||||
* Unique reference identifier
|
||||
*/
|
||||
ref: string;
|
||||
/**
|
||||
* Trigger reference
|
||||
*/
|
||||
trigger_ref: string;
|
||||
/**
|
||||
* Last update timestamp
|
||||
*/
|
||||
updated: string;
|
||||
/**
|
||||
* Creation timestamp
|
||||
*/
|
||||
created: string;
|
||||
/**
|
||||
* Sensor description
|
||||
*/
|
||||
description: string | null;
|
||||
/**
|
||||
* Whether the sensor is enabled
|
||||
*/
|
||||
enabled: boolean;
|
||||
/**
|
||||
* Sensor ID
|
||||
*/
|
||||
id: number;
|
||||
/**
|
||||
* Human-readable label
|
||||
*/
|
||||
label: string;
|
||||
/**
|
||||
* Pack reference (optional)
|
||||
*/
|
||||
pack_ref?: string | null;
|
||||
/**
|
||||
* Unique reference identifier
|
||||
*/
|
||||
ref: string;
|
||||
/**
|
||||
* Trigger reference
|
||||
*/
|
||||
trigger_ref: string;
|
||||
/**
|
||||
* Last update timestamp
|
||||
*/
|
||||
updated: string;
|
||||
};
|
||||
|
||||
|
||||
18
web/src/api/models/TriggerStringPatch.ts
Normal file
18
web/src/api/models/TriggerStringPatch.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
export type TriggerStringPatch =
|
||||
| {
|
||||
op: TriggerStringPatch.op;
|
||||
value: string;
|
||||
}
|
||||
| {
|
||||
op: TriggerStringPatch.op;
|
||||
};
|
||||
export namespace TriggerStringPatch {
|
||||
export enum op {
|
||||
SET = "set",
|
||||
CLEAR = "clear",
|
||||
}
|
||||
}
|
||||
@@ -2,6 +2,7 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
import type { RuntimeVersionConstraintPatch } from './RuntimeVersionConstraintPatch';
|
||||
/**
|
||||
* Request DTO for updating an action
|
||||
*/
|
||||
@@ -30,9 +31,6 @@ export type UpdateActionRequest = {
|
||||
* 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;
|
||||
runtime_version_constraint?: (null | RuntimeVersionConstraintPatch);
|
||||
};
|
||||
|
||||
|
||||
@@ -6,6 +6,7 @@ import type { Value } from './Value';
|
||||
export type UpdateIdentityRequest = {
|
||||
attributes?: (null | Value);
|
||||
display_name?: string | null;
|
||||
frozen?: boolean | null;
|
||||
password?: string | null;
|
||||
};
|
||||
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
import type { PackDescriptionPatch } from './PackDescriptionPatch';
|
||||
/**
|
||||
* Request DTO for updating a pack
|
||||
*/
|
||||
@@ -18,10 +19,7 @@ export type UpdatePackRequest = {
|
||||
* Pack dependencies (refs of required packs)
|
||||
*/
|
||||
dependencies?: any[] | null;
|
||||
/**
|
||||
* Pack description
|
||||
*/
|
||||
description?: string | null;
|
||||
description?: (null | PackDescriptionPatch);
|
||||
/**
|
||||
* Whether this is a standard pack
|
||||
*/
|
||||
|
||||
@@ -2,14 +2,12 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
import type { TriggerStringPatch } from './TriggerStringPatch';
|
||||
/**
|
||||
* Request DTO for updating a trigger
|
||||
*/
|
||||
export type UpdateTriggerRequest = {
|
||||
/**
|
||||
* Trigger description
|
||||
*/
|
||||
description?: string | null;
|
||||
description?: (null | TriggerStringPatch);
|
||||
/**
|
||||
* Whether the trigger is enabled
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user