Initial project import
This commit is contained in:
@@ -54,6 +54,140 @@ paths:
|
||||
schema:
|
||||
type: object
|
||||
additionalProperties: true
|
||||
/configuration/activation/status:
|
||||
post:
|
||||
operationId: getConfigurationActivationStatus
|
||||
summary: Read the live saved-state to active boundary
|
||||
description: Compares saved-state and active configuration layers without cache, vector search, Designer execution, or configuration mutation.
|
||||
requestBody:
|
||||
required: true
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/ConfigurationActivationRequest"
|
||||
responses:
|
||||
"200":
|
||||
$ref: "#/components/responses/AdapterMethodResponse"
|
||||
/configuration/activation/plan:
|
||||
post:
|
||||
operationId: planConfigurationActivation
|
||||
summary: Build a read-only activation handoff plan
|
||||
description: Returns review and verification calls plus a manual Designer action when activation is required. It never starts Designer.
|
||||
requestBody:
|
||||
required: true
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/ConfigurationActivationRequest"
|
||||
responses:
|
||||
"200":
|
||||
$ref: "#/components/responses/AdapterMethodResponse"
|
||||
/configuration/activation/request:
|
||||
post:
|
||||
operationId: createConfigurationActivationRequest
|
||||
summary: Create a fingerprinted activation request
|
||||
description: Persists an expiring adapter-local request bound to the exact live-SQL saved-state fingerprint. It does not start Designer.
|
||||
requestBody:
|
||||
required: true
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/ConfigurationActivationRequestCreate"
|
||||
responses:
|
||||
"200":
|
||||
$ref: "#/components/responses/AdapterMethodResponse"
|
||||
/configuration/activation/request/status:
|
||||
post:
|
||||
operationId: getConfigurationActivationRequest
|
||||
summary: Read activation request state
|
||||
requestBody:
|
||||
required: true
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/ConfigurationActivationRequestStatus"
|
||||
responses:
|
||||
"200":
|
||||
$ref: "#/components/responses/AdapterMethodResponse"
|
||||
/configuration/activation/request/cancel:
|
||||
post:
|
||||
operationId: cancelConfigurationActivationRequest
|
||||
summary: Cancel one activation request
|
||||
requestBody:
|
||||
required: true
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/ConfigurationActivationRequestCancel"
|
||||
responses:
|
||||
"200":
|
||||
$ref: "#/components/responses/AdapterMethodResponse"
|
||||
/configuration/activation/audit:
|
||||
post:
|
||||
operationId: auditConfigurationActivationRequests
|
||||
summary: List activation request lifecycle events for one base
|
||||
requestBody:
|
||||
required: true
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/ConfigurationActivationAudit"
|
||||
responses:
|
||||
"200":
|
||||
$ref: "#/components/responses/AdapterMethodResponse"
|
||||
/configuration/activation/capabilities:
|
||||
post:
|
||||
operationId: getConfigurationActivationCapabilities
|
||||
summary: Read safe Designer bridge readiness
|
||||
requestBody:
|
||||
required: true
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/ConfigurationActivationCapabilities"
|
||||
responses:
|
||||
"200":
|
||||
$ref: "#/components/responses/AdapterMethodResponse"
|
||||
/configuration/activation/bridge/probe:
|
||||
post:
|
||||
operationId: probeConfigurationActivationBridge
|
||||
summary: Probe local or HTTP Designer runner readiness without execution
|
||||
requestBody:
|
||||
required: true
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/ConfigurationActivationBridgeProbe"
|
||||
responses:
|
||||
"200":
|
||||
$ref: "#/components/responses/AdapterMethodResponse"
|
||||
/configuration/activation/execute:
|
||||
post:
|
||||
operationId: debugConfigurationActivation
|
||||
summary: Accept a fingerprinted activation request in debug mode
|
||||
description: Revalidates the exact live-SQL fingerprint and records debug acceptance. Real Designer execution is unavailable.
|
||||
requestBody:
|
||||
required: true
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/ConfigurationActivationExecute"
|
||||
responses:
|
||||
"200":
|
||||
$ref: "#/components/responses/AdapterMethodResponse"
|
||||
/configuration/activation/verify:
|
||||
post:
|
||||
operationId: verifyConfigurationActivation
|
||||
summary: Verify saved/active alignment for one activation request
|
||||
requestBody:
|
||||
required: true
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/ConfigurationActivationVerify"
|
||||
responses:
|
||||
"200":
|
||||
$ref: "#/components/responses/AdapterMethodResponse"
|
||||
/extensions:
|
||||
get:
|
||||
operationId: listExtensions
|
||||
@@ -258,7 +392,7 @@ paths:
|
||||
type: string
|
||||
enum: [Params, Config, ConfigSave, ConfigCAS, ConfigCASSave]
|
||||
default: Config
|
||||
description: Storage table to read from. Use Config for active config, ConfigSave for saved config.
|
||||
description: Storage table to read from. Exact public extension selectors resolve to ConfigCAS internally; physical routes remain hidden unless include_storage=true.
|
||||
guid:
|
||||
type: string
|
||||
description: Config object GUID. If omitted, kind and name are used.
|
||||
@@ -451,7 +585,7 @@ paths:
|
||||
type: string
|
||||
enum: [Params, Config, ConfigSave, ConfigCAS, ConfigCASSave]
|
||||
default: Config
|
||||
description: Storage table to read from. Use Config for active config, ConfigSave for saved config.
|
||||
description: Storage table to read from. Exact public extension selectors resolve to ConfigCAS internally; physical routes remain hidden unless include_storage=true.
|
||||
guid:
|
||||
type: string
|
||||
description: Config object GUID. If omitted, kind and name are used.
|
||||
@@ -461,7 +595,7 @@ paths:
|
||||
type: string
|
||||
responses:
|
||||
"200":
|
||||
description: Live BSL module stream ids for a metadata object.
|
||||
description: Public BSL modules owned by the selected object, including owned form modules. Exact extension objects are resolved from public kind/name or ref.
|
||||
/metadata/object/related:
|
||||
post:
|
||||
operationId: listMetadataObjectRelated
|
||||
@@ -958,6 +1092,11 @@ paths:
|
||||
ref:
|
||||
type: string
|
||||
description: Public object reference such as Справочник.Номенклатура.
|
||||
state:
|
||||
type: string
|
||||
enum: [working, active, save, both]
|
||||
default: working
|
||||
description: Working is saved-first with active fallback, including form modules owned by extension objects resolved from the public selector.
|
||||
responses:
|
||||
"200":
|
||||
description: Read-only routine override/action chain across base and extension modules.
|
||||
@@ -983,6 +1122,9 @@ paths:
|
||||
source:
|
||||
type: string
|
||||
enum: [configuration, extension]
|
||||
activation_state:
|
||||
type: string
|
||||
enum: [active, saved_state]
|
||||
method:
|
||||
type: string
|
||||
line_start:
|
||||
@@ -998,7 +1140,7 @@ paths:
|
||||
enum: [ok, unknown]
|
||||
operation_class:
|
||||
type: string
|
||||
description: base_definition, insert_before, insert_after, replace, replace_with_control, or unknown_extension_action.
|
||||
description: base_definition, extension_definition, insert_before, insert_after, replace, replace_with_control, or unknown_extension_action.
|
||||
requires_control_fragment:
|
||||
type: boolean
|
||||
extension_actions:
|
||||
@@ -1208,6 +1350,20 @@ paths:
|
||||
module_ref:
|
||||
type: string
|
||||
description: Opaque module_ref from code.search/modules.search read_selector when already known.
|
||||
expected_sha1:
|
||||
type: string
|
||||
description: Optional container SHA1 precondition, normally forwarded from metadata.write.preflight write_context.
|
||||
expected_text_sha1:
|
||||
type: string
|
||||
description: Optional BSL text SHA1 precondition, normally forwarded from metadata.write.preflight write_context.
|
||||
repository_lock:
|
||||
type: object
|
||||
additionalProperties: true
|
||||
description: Forwardable repository.lock.confirm write_context.
|
||||
write_context:
|
||||
type: object
|
||||
additionalProperties: true
|
||||
description: Forwardable context returned by metadata.write.preflight.
|
||||
routine_name:
|
||||
type: string
|
||||
routine_text:
|
||||
@@ -1483,6 +1639,26 @@ paths:
|
||||
required: true
|
||||
schema:
|
||||
type: string
|
||||
- name: routine_name
|
||||
in: query
|
||||
required: false
|
||||
schema:
|
||||
type: string
|
||||
description: Select one BSL procedure/function. Its text is compact by default.
|
||||
- name: include_routines
|
||||
in: query
|
||||
required: false
|
||||
schema:
|
||||
type: boolean
|
||||
default: false
|
||||
description: Include the routine catalogue when a routine is selected.
|
||||
- name: include_summary
|
||||
in: query
|
||||
required: false
|
||||
schema:
|
||||
type: boolean
|
||||
default: false
|
||||
description: Include the module summary when a routine is selected.
|
||||
responses:
|
||||
"200":
|
||||
description: BSL module content.
|
||||
@@ -1725,6 +1901,51 @@ paths:
|
||||
responses:
|
||||
"200":
|
||||
description: Saved-state apply backups list with source metadata and sha1/byte counts. Payload hex is not returned.
|
||||
/storage/saved-state/backups/prune:
|
||||
post:
|
||||
operationId: pruneSavedStateBackups
|
||||
requestBody:
|
||||
required: true
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
type: object
|
||||
required: [base_id]
|
||||
properties:
|
||||
base_id:
|
||||
type: string
|
||||
table:
|
||||
type: string
|
||||
enum: [ConfigSave, ConfigCASSave]
|
||||
file_name:
|
||||
type: string
|
||||
older_than_days:
|
||||
type: integer
|
||||
minimum: 1
|
||||
maximum: 3650
|
||||
default: 30
|
||||
keep_latest:
|
||||
type: integer
|
||||
minimum: 0
|
||||
maximum: 10000
|
||||
default: 20
|
||||
limit:
|
||||
type: integer
|
||||
minimum: 1
|
||||
maximum: 10000
|
||||
default: 500
|
||||
dry_run:
|
||||
type: boolean
|
||||
default: true
|
||||
confirm_delete:
|
||||
type: boolean
|
||||
default: false
|
||||
diagnostic:
|
||||
type: boolean
|
||||
description: Required when called through the generic MCP diagnostic policy.
|
||||
responses:
|
||||
"200":
|
||||
description: Dry-run selection or confirmed deletion of adapter-local saved-state backup files. Backups referenced by write history are always protected, with fail-closed protection when history cannot be verified.
|
||||
/access/graph:
|
||||
post:
|
||||
operationId: buildAccessGraph
|
||||
@@ -2246,6 +2467,156 @@ components:
|
||||
type: http
|
||||
scheme: bearer
|
||||
schemas:
|
||||
ConfigurationActivationRequest:
|
||||
type: object
|
||||
required: [base_id]
|
||||
additionalProperties: false
|
||||
properties:
|
||||
base_id:
|
||||
type: string
|
||||
layer:
|
||||
type: string
|
||||
enum: [all, base_saved_state, extension_saved_state]
|
||||
default: all
|
||||
limit:
|
||||
type: integer
|
||||
minimum: 1
|
||||
maximum: 5000
|
||||
default: 5000
|
||||
timeout_seconds:
|
||||
type: integer
|
||||
minimum: 1
|
||||
default: 30
|
||||
include_files:
|
||||
type: boolean
|
||||
default: false
|
||||
include_storage:
|
||||
type: boolean
|
||||
default: false
|
||||
ConfigurationActivationRequestCreate:
|
||||
type: object
|
||||
required: [base_id]
|
||||
additionalProperties: false
|
||||
properties:
|
||||
base_id:
|
||||
type: string
|
||||
layer:
|
||||
type: string
|
||||
enum: [all, base_saved_state, extension_saved_state]
|
||||
default: all
|
||||
limit:
|
||||
type: integer
|
||||
minimum: 1
|
||||
maximum: 5000
|
||||
default: 5000
|
||||
timeout_seconds:
|
||||
type: integer
|
||||
minimum: 1
|
||||
default: 30
|
||||
ttl_seconds:
|
||||
type: integer
|
||||
minimum: 60
|
||||
maximum: 86400
|
||||
default: 1800
|
||||
ConfigurationActivationRequestStatus:
|
||||
type: object
|
||||
required: [request_id]
|
||||
additionalProperties: false
|
||||
properties:
|
||||
base_id:
|
||||
type: string
|
||||
request_id:
|
||||
type: string
|
||||
ConfigurationActivationRequestCancel:
|
||||
type: object
|
||||
required: [request_id, confirm_cancel]
|
||||
additionalProperties: false
|
||||
properties:
|
||||
base_id:
|
||||
type: string
|
||||
request_id:
|
||||
type: string
|
||||
confirm_cancel:
|
||||
type: boolean
|
||||
const: true
|
||||
ConfigurationActivationAudit:
|
||||
type: object
|
||||
required: [base_id]
|
||||
additionalProperties: false
|
||||
properties:
|
||||
base_id:
|
||||
type: string
|
||||
limit:
|
||||
type: integer
|
||||
minimum: 1
|
||||
maximum: 1000
|
||||
default: 100
|
||||
status:
|
||||
type: string
|
||||
ConfigurationActivationCapabilities:
|
||||
type: object
|
||||
required: [base_id]
|
||||
additionalProperties: false
|
||||
properties:
|
||||
base_id:
|
||||
type: string
|
||||
layer:
|
||||
type: string
|
||||
enum: [all, base_saved_state, extension_saved_state]
|
||||
default: all
|
||||
ConfigurationActivationBridgeProbe:
|
||||
type: object
|
||||
required: [base_id]
|
||||
additionalProperties: false
|
||||
properties:
|
||||
base_id:
|
||||
type: string
|
||||
layer:
|
||||
type: string
|
||||
enum: [all, base_saved_state, extension_saved_state]
|
||||
default: all
|
||||
timeout_seconds:
|
||||
type: integer
|
||||
minimum: 1
|
||||
maximum: 60
|
||||
default: 10
|
||||
ConfigurationActivationExecute:
|
||||
type: object
|
||||
required: [base_id, request_id, confirm_activation]
|
||||
additionalProperties: false
|
||||
properties:
|
||||
base_id:
|
||||
type: string
|
||||
request_id:
|
||||
type: string
|
||||
mode:
|
||||
type: string
|
||||
const: debug
|
||||
default: debug
|
||||
confirm_activation:
|
||||
type: boolean
|
||||
const: true
|
||||
bridge_debug:
|
||||
type: boolean
|
||||
default: false
|
||||
description: Require an end-to-end local/HTTP runner debug receipt without starting Designer.
|
||||
timeout_seconds:
|
||||
type: integer
|
||||
minimum: 1
|
||||
default: 30
|
||||
ConfigurationActivationVerify:
|
||||
type: object
|
||||
required: [base_id, request_id]
|
||||
additionalProperties: false
|
||||
properties:
|
||||
base_id:
|
||||
type: string
|
||||
request_id:
|
||||
type: string
|
||||
timeout_seconds:
|
||||
type: integer
|
||||
minimum: 1
|
||||
default: 30
|
||||
AdapterRpcRequest:
|
||||
type: object
|
||||
required: [method]
|
||||
|
||||
Reference in New Issue
Block a user