basePath: /api/v1/transfer definitions: authorizationfacts.Binding: properties: boundary_hash: type: string file_composition: $ref: '#/definitions/authorizationfacts.FileCompositionBoundary' item_fingerprint: type: string metadata_target: $ref: '#/definitions/authorizationfacts.MetadataBoundary' native_target: $ref: '#/definitions/plugin.EngineCatalogPath' scope: $ref: '#/definitions/authorizationfacts.ScopeBoundary' type: object authorizationfacts.FileCompositionBoundary: properties: format: type: string refs: items: $ref: '#/definitions/authorizationfacts.FileCompositionRef' type: array source_layout: description: TIFF layout as observed by Meta, independent of its physical file count. type: string type: object authorizationfacts.FileCompositionRef: properties: primary: type: boolean required: type: boolean role: type: string target: $ref: '#/definitions/plugin.EngineCatalogPath' type: object authorizationfacts.MetadataBoundary: properties: composition_digest: type: string data_type: type: string format: type: string layout: type: string target: $ref: '#/definitions/plugin.EngineCatalogPath' type: object authorizationfacts.ScopeBoundary: properties: format: type: string root: $ref: '#/definitions/plugin.EngineCatalogPath' rule_version: type: integer type: object cleanup.Result: properties: action: type: string attempt: type: integer cleanup_mode: type: string execution_id: type: string module: type: string reason: type: string request_id: type: string schema: type: string statistics: additionalProperties: format: int64 type: integer type: object status: type: string summary: $ref: '#/definitions/events.CleanupResultSummary' type: object client.CDCBufferSample: properties: committed_offset: type: string expires_at: type: string lag_offsets: type: string sampled_at: type: string type: object client.CDCCaptureObservation: properties: expires_at: type: string failed_since: type: string reason: type: string sampled_at: type: string state: type: string type: object client.CDCDelaySample: properties: delay_seconds: type: number event_count: type: string expires_at: type: string last_event_age_seconds: type: number sampled_at: type: string type: object client.CDCRiskObservation: properties: expires_at: type: string reason: type: string sampled_at: type: string state: type: string type: object client.ExecutionEngineAccessScope: properties: effects: items: type: string type: array engine_id: type: string type: object client.FileGDBExportActor: properties: authorization_version: type: integer principal_id: type: integer tenant_membership_id: type: integer type: object client.IssuedExecutionAuthorization: properties: accesses: items: $ref: '#/definitions/client.ExecutionEngineAccessScope' type: array actor_principal_id: type: string audience: type: string execution_id: type: string expires_at: type: string id: type: string internal_task: $ref: '#/definitions/execution.InternalTaskScope' issued_authorization_version: type: string source_definition_id: type: string source_definition_version: type: string source_type: type: string tenant_id: type: string tenant_membership_id: type: string type: object client.IssuedFileGDBExportAuthorization: properties: audience: type: string execution_id: type: string expires_at: type: string id: type: string source_read_scope: $ref: '#/definitions/execution.FileGDBExportReadScope' tenant_id: type: string type: object client.TransferCDCRiskItem: properties: buffer: $ref: '#/definitions/client.CDCRiskObservation' buffer_sample: $ref: '#/definitions/client.CDCBufferSample' capture: $ref: '#/definitions/client.CDCCaptureObservation' consumption_state: type: string delay_sample: $ref: '#/definitions/client.CDCDelaySample' execution_id: type: string generation: example: "" type: string initial_snapshot_completed: type: boolean source: $ref: '#/definitions/client.CDCRiskObservation' source_type: type: string state: type: string task_id: type: integer task_name: type: string tenant_id: type: integer type: object client.TransferCDCRisks: properties: has_more: type: boolean items: items: $ref: '#/definitions/client.TransferCDCRiskItem' type: array next_after_id: type: integer observed_at: type: string schema_version: type: string type: object client.TransferExecutionConfig: properties: batch_size: type: integer filegdb_source: $ref: '#/definitions/execution.FileGDBExportSource' load: $ref: '#/definitions/client.TransferExecutionLoad' runtime: $ref: '#/definitions/client.TransferExecutionRuntime' source: $ref: '#/definitions/client.TransferExecutionEndpoint' target: $ref: '#/definitions/client.TransferExecutionEndpoint' transforms: items: $ref: '#/definitions/client.TransferExecutionTransform' type: array workflow_result: $ref: '#/definitions/client.WorkflowResultExportSource' type: object client.TransferExecutionEndpoint: properties: data_type: type: string format: type: string locator: type: string name: type: string options: additionalProperties: true type: object parent_locator: type: string policy: additionalProperties: true type: object protection_choices: items: $ref: '#/definitions/dataprotection.FieldRoleChoice' type: array query: $ref: '#/definitions/client.TransferExecutionQuery' representation: type: string type: object client.TransferExecutionFieldMapping: properties: nullable: type: boolean source: type: string target: type: string target_type: type: string type: object client.TransferExecutionLoad: properties: mode: type: string type: object client.TransferExecutionQuery: properties: inputs: items: $ref: '#/definitions/client.TransferExecutionQueryInput' type: array language: type: string parameters: additionalProperties: true type: object statement: type: string type: object client.TransferExecutionQueryInput: properties: locator: type: string name: type: string type: object client.TransferExecutionRuntime: properties: boundary: type: string type: object client.TransferExecutionTransform: properties: fields: items: $ref: '#/definitions/client.TransferExecutionFieldMapping' type: array mode: type: string type: type: string version: type: string type: object client.TransferExportSessionReference: properties: execution_id: type: string session_id: type: integer required: - execution_id - session_id type: object client.TransferProductionUserOrigin: properties: authorization_version: example: "" type: string principal_id: example: "" type: string tenant_membership_id: example: "" type: string type: object client.TransferProtectionOptions: properties: fields: items: $ref: '#/definitions/dataprotection.FieldRoleOptions' type: array type: object client.TransferSourceProtectionSelection: properties: protection_choices: items: $ref: '#/definitions/dataprotection.FieldRoleChoice' type: array source_locator: type: string type: object client.WorkflowResultExportSource: properties: attempt: type: integer columns: items: type: string type: array execution_id: type: string expires_at: type: string row_count: type: integer sha256: type: string targets: items: $ref: '#/definitions/dataprotection.ResourceReference' type: array type: object dataprotection.FieldRoleChoice: properties: component_key: type: string selection: $ref: '#/definitions/dataprotection.RoleOptionSelection' target: $ref: '#/definitions/dataprotection.ResourceReference' type: object dataprotection.FieldRoleOptions: properties: assessment_revision: type: integer component_key: type: string options: items: $ref: '#/definitions/dataprotection.RoleOptionCandidate' type: array policy_id: type: string policy_revision: type: integer target: $ref: '#/definitions/dataprotection.ResourceReference' type: object dataprotection.ResourceReference: properties: component_key: type: string owner_module: type: string resource_identity: type: string resource_type: type: string type: object dataprotection.RoleOptionCandidate: properties: id: type: string name: type: string type: object dataprotection.RoleOptionSelection: properties: assessment_revision: type: integer option_id: type: string policy_id: type: string policy_revision: type: integer type: object datatype.FieldType: enum: - unknown - string - bool - bytes - mixed - int - bigint - float - double - decimal - date - time - timestamp - json - array - uuid - geometry type: string x-enum-varnames: - FieldTypeUnknown - FieldTypeString - FieldTypeBool - FieldTypeBytes - FieldTypeMixed - FieldTypeInt - FieldTypeBigInt - FieldTypeFloat - FieldTypeDouble - FieldTypeDecimal - FieldTypeDate - FieldTypeTime - FieldTypeTimestamp - FieldTypeJSON - FieldTypeArray - FieldTypeUUID - FieldTypeGeometry events.CleanupResultSummary: properties: affected_records: type: integer deleted_physical_artifacts: type: integer deleted_task_definitions: type: integer disabled_task_definitions: type: integer error_count: type: integer freed_bytes: type: integer marked_missing_source: type: integer marked_outdated: type: integer risk_level: type: string scanned_items: type: integer skipped_items: type: integer type: object execution.DiagnosticStep: properties: duration: type: integer ended_at: type: string error_code: type: string id: type: string phase: type: string started_at: type: string status: type: string type: object execution.Event: properties: attempt: type: integer counters: $ref: '#/definitions/github_com_addp_common_models.JSONMap' execution_id: type: string id: type: integer kind: type: string occurred_at: type: string step_id: type: string type: object execution.FileGDBExportReadScope: properties: config_digest: type: string filegdb_source: $ref: '#/definitions/execution.FileGDBExportSource' type: object execution.FileGDBExportSource: properties: binding: $ref: '#/definitions/authorizationfacts.Binding' engine_version: type: string type: object execution.InternalTaskScope: properties: digest: type: string generation: type: string resource_id: type: string revision: type: string task_type: type: string type: object execution.ReadGrant: properties: own_ad_hoc: type: boolean task_history: type: boolean task_type: type: string type: object execution.ReadScope: properties: grants: items: $ref: '#/definitions/execution.ReadGrant' type: array module: type: string principal_id: type: integer tenant_id: type: integer type: object github_com_addp_common_models.JSONMap: additionalProperties: true type: object github_com_addp_transfer_internal_models.ApproveSchemaChangeRequest: properties: fields: items: $ref: '#/definitions/github_com_addp_transfer_internal_models.SchemaChangeField' minItems: 1 type: array required: - fields type: object github_com_addp_transfer_internal_models.CaptureBufferObservation: properties: committed_offset: type: string earliest_offset: type: string expires_at: type: string initial_snapshot_completed: type: boolean lag_offsets: type: string latest_offset: type: string recovery_state: type: string sampled_at: type: string status: type: string type: object github_com_addp_transfer_internal_models.CaptureDelayObservation: properties: connected: type: boolean delay_seconds: type: number event_count: type: string expires_at: type: string last_event_age_seconds: type: number sampled_at: type: string status: type: string type: object github_com_addp_transfer_internal_models.CaptureHealthObservation: properties: expires_at: type: string failed_since: type: string reason: type: string sampled_at: type: string state: type: string type: object github_com_addp_transfer_internal_models.CaptureMetricHistoryResponse: properties: end: type: string generation: type: integer points: items: $ref: '#/definitions/github_com_addp_transfer_internal_models.CaptureMetricPoint' type: array queried_at: type: string start: type: string step_seconds: type: integer task_id: type: integer type: object github_com_addp_transfer_internal_models.CaptureMetricPoint: properties: buffer_observation: $ref: '#/definitions/github_com_addp_transfer_internal_models.CaptureBufferObservation' consumption_state: type: string delay_observation: $ref: '#/definitions/github_com_addp_transfer_internal_models.CaptureDelayObservation' postgresql_observation: $ref: '#/definitions/github_com_addp_transfer_internal_models.CapturePostgreSQLObservation' recorded_at: type: string timestamp: type: string type: object github_com_addp_transfer_internal_models.CapturePostgreSQLObservation: properties: expires_at: type: string retained_wal_bytes: type: string risk_state: type: string safe_wal_size_bytes: type: string sampled_at: type: string slot_active: type: boolean status: type: string unacknowledged_wal_bytes: type: string wal_keep_unlimited: type: boolean wal_status: type: string type: object github_com_addp_transfer_internal_models.CaptureSourceRecovery: properties: capture_position: type: string current_position: type: string earliest_available_at: type: string earliest_available_position: type: string fra_reclaimable_percent: type: number fra_used_percent: type: number health: type: string position_headroom: type: string provider: type: string sampled_at: type: string schema_version: type: string window_seconds: type: integer type: object github_com_addp_transfer_internal_models.CaptureSourceTransactions: properties: active_count: type: integer oldest_duration_seconds: type: integer oldest_start_position: type: string provider: type: string sampled_at: type: string schema_version: type: string status: type: string used_undo_blocks: type: string used_undo_records: type: string type: object github_com_addp_transfer_internal_models.CaptureSourceType: enum: - postgresql - mysql - oracle type: string x-enum-varnames: - CaptureSourcePostgreSQL - CaptureSourceMySQL - CaptureSourceOracle github_com_addp_transfer_internal_models.CaptureStatus: enum: - provisioning - running - failed - cleaning - cleanup_failed - stopped type: string x-enum-varnames: - CaptureStatusProvisioning - CaptureStatusRunning - CaptureStatusFailed - CaptureStatusCleaning - CaptureStatusCleanupFailed - CaptureStatusStopped github_com_addp_transfer_internal_models.CaptureSummary: properties: buffer_observation: $ref: '#/definitions/github_com_addp_transfer_internal_models.CaptureBufferObservation' connector_status: type: string delay_observation: $ref: '#/definitions/github_com_addp_transfer_internal_models.CaptureDelayObservation' generation: type: integer health_observation: $ref: '#/definitions/github_com_addp_transfer_internal_models.CaptureHealthObservation' last_observed_at: type: string postgresql_observation: $ref: '#/definitions/github_com_addp_transfer_internal_models.CapturePostgreSQLObservation' source_recovery: $ref: '#/definitions/github_com_addp_transfer_internal_models.CaptureSourceRecovery' source_status: type: string source_transactions: $ref: '#/definitions/github_com_addp_transfer_internal_models.CaptureSourceTransactions' source_type: $ref: '#/definitions/github_com_addp_transfer_internal_models.CaptureSourceType' status: $ref: '#/definitions/github_com_addp_transfer_internal_models.CaptureStatus' stopped_at: type: string type: object github_com_addp_transfer_internal_models.CreateAdHocExecutionRequest: properties: auto_scan_metadata: type: boolean batch_size: type: integer config: $ref: '#/definitions/client.TransferExecutionConfig' execution_authorization: $ref: '#/definitions/client.IssuedExecutionAuthorization' export_session: $ref: '#/definitions/client.TransferExportSessionReference' filegdb_actor: $ref: '#/definitions/client.FileGDBExportActor' name: type: string required: - config - name type: object github_com_addp_transfer_internal_models.CreateAdHocExecutionResponse: properties: execution_id: type: string status: type: string type: object github_com_addp_transfer_internal_models.CreateTaskRequestDoc: properties: auto_scan_metadata: example: true type: boolean batch_size: example: 1000 type: integer config: $ref: '#/definitions/github_com_addp_transfer_internal_models.TableTransferTaskConfigDoc' description: type: string enabled: type: boolean name: example: 导入道路 Shapefile type: string schedule: type: string task_type: example: sync type: string type: object github_com_addp_transfer_internal_models.DeadLetterListResponse: properties: data: items: $ref: '#/definitions/github_com_addp_transfer_internal_models.DeadLetterView' type: array page: type: integer page_size: type: integer total: type: integer total_pages: type: integer type: object github_com_addp_transfer_internal_models.DeadLetterView: properties: error_category: type: string error_code: type: string error_message: type: string first_execution_id: type: string first_observed_at: type: string identity: type: string last_execution_id: type: string last_observed_at: type: string occurrence_count: type: integer payload_available: type: boolean source_offset: type: integer source_partition: type: string source_timestamp: type: string source_topic: type: string type: object github_com_addp_transfer_internal_models.ExecutionStatus: enum: - pending - running - success - failed - cancelled type: string x-enum-comments: ExecutionStatusCancelled: 已取消 ExecutionStatusFailed: 失败 ExecutionStatusPending: 待执行 ExecutionStatusRunning: 运行中 ExecutionStatusSuccess: 成功 x-enum-descriptions: - 待执行 - 运行中 - 成功 - 失败 - 已取消 x-enum-varnames: - ExecutionStatusPending - ExecutionStatusRunning - ExecutionStatusSuccess - ExecutionStatusFailed - ExecutionStatusCancelled github_com_addp_transfer_internal_models.FieldMappingSpecDoc: properties: default: {} format: type: string nullable: example: true type: boolean precision: example: 18 type: integer scale: example: 4 type: integer source: example: geom type: string target: example: geometry type: string target_type: example: geometry type: string type: object github_com_addp_transfer_internal_models.JSONMap: additionalProperties: true type: object github_com_addp_transfer_internal_models.ListProviderTasksResponse: properties: items: items: $ref: '#/definitions/github_com_addp_transfer_internal_models.TransferTask' type: array page: type: integer page_size: type: integer total: type: integer type: object github_com_addp_transfer_internal_models.LocalTime: properties: time.Time: type: string type: object github_com_addp_transfer_internal_models.ReplayOffsetRangeRequest: properties: end_offset: example: 20 type: integer partition: example: "0" type: string start_offset: example: 10 type: integer type: object github_com_addp_transfer_internal_models.ReplayTargetRequest: properties: name: example: orders_replay type: string parent_locator: example: addp://engine/8/path/replay_schema?type=schema&node_id=12 type: string type: object github_com_addp_transfer_internal_models.ReplayTaskRequest: properties: ranges: items: $ref: '#/definitions/github_com_addp_transfer_internal_models.ReplayOffsetRangeRequest' type: array target: $ref: '#/definitions/github_com_addp_transfer_internal_models.ReplayTargetRequest' type: object github_com_addp_transfer_internal_models.RunApproval: properties: consumed_at: type: string decided_at: type: string execution_id: type: string expires_at: type: string id: type: string request_fingerprint: type: string request_summary: $ref: '#/definitions/github_com_addp_transfer_internal_models.JSONMap' requested_at: type: string status: type: string type: object github_com_addp_transfer_internal_models.RunApprovalDecision: properties: decision: enum: - approved - rejected type: string request_fingerprint: type: string required: - decision - request_fingerprint type: object github_com_addp_transfer_internal_models.RunApprovalRequired: properties: expires_at: type: string interaction_id: type: string request_fingerprint: type: string request_summary: $ref: '#/definitions/github_com_addp_transfer_internal_models.JSONMap' status: type: string type: object github_com_addp_transfer_internal_models.SchemaChangeField: properties: nullable: type: boolean source: type: string target: type: string target_type: type: string required: - source - target - target_type type: object github_com_addp_transfer_internal_models.SchemaChangeMetadataScanStatus: enum: - pending - running - success - failed type: string x-enum-varnames: - SchemaChangeMetadataScanPending - SchemaChangeMetadataScanRunning - SchemaChangeMetadataScanSuccess - SchemaChangeMetadataScanFailed github_com_addp_transfer_internal_models.SchemaChangeRequestStatus: enum: - pending - applied type: string x-enum-varnames: - SchemaChangeRequestPending - SchemaChangeRequestApplied github_com_addp_transfer_internal_models.SchemaChangeRequestView: properties: applied_at: type: string approvable: type: boolean approval_blocked_reason: type: string approved_mappings: items: $ref: '#/definitions/github_com_addp_transfer_internal_models.SchemaChangeField' type: array detected_at: type: string diff: $ref: '#/definitions/github_com_addp_transfer_internal_models.JSONMap' execution_id: type: string from_revision: type: integer generation: type: integer id: type: integer metadata_scan_attempt: type: integer metadata_scan_execution_id: type: string metadata_scan_lease_until: type: string metadata_scan_status: $ref: '#/definitions/github_com_addp_transfer_internal_models.SchemaChangeMetadataScanStatus' scope: type: string source_offset: type: integer source_partition: type: string status: $ref: '#/definitions/github_com_addp_transfer_internal_models.SchemaChangeRequestStatus' suggested_fields: items: $ref: '#/definitions/github_com_addp_transfer_internal_models.SchemaChangeField' type: array task_id: type: integer to_revision: type: integer type: object github_com_addp_transfer_internal_models.StartTaskRequest: properties: approval_id: type: string request_fingerprint: type: string type: object github_com_addp_transfer_internal_models.StopTaskRequest: properties: confirmation_text: type: string confirmed: type: boolean type: object github_com_addp_transfer_internal_models.TableTransferTaskConfigDoc: properties: batch_size: example: 1000 type: integer load: $ref: '#/definitions/github_com_addp_transfer_internal_models.TransferLoadDoc' runtime: $ref: '#/definitions/github_com_addp_transfer_internal_models.TransferRuntimeDoc' source: $ref: '#/definitions/github_com_addp_transfer_internal_models.TransferSourceEndpointDoc' target: $ref: '#/definitions/github_com_addp_transfer_internal_models.TransferTargetEndpointDoc' transforms: items: $ref: '#/definitions/github_com_addp_transfer_internal_models.TransferTransformDoc' type: array type: object github_com_addp_transfer_internal_models.TaskDesiredState: enum: - running - paused - stopped type: string x-enum-varnames: - TaskDesiredStateRunning - TaskDesiredStatePaused - TaskDesiredStateStopped github_com_addp_transfer_internal_models.TaskStatistics: properties: failed_tasks: type: integer last_failed_tasks: type: integer last_running_tasks: type: integer last_success_tasks: type: integer not_executed_tasks: type: integer pending_tasks: type: integer running_tasks: type: integer success_tasks: type: integer total_bytes: type: integer total_executions: type: integer total_records: type: integer total_tasks: type: integer type: object github_com_addp_transfer_internal_models.TaskStatus: enum: - idle - running - blocked type: string x-enum-comments: TaskStatusBlocked: 运行被 schema change 阻塞,禁止直接启动或恢复 TaskStatusIdle: 空闲(未执行或执行完成) TaskStatusRunning: 执行中 x-enum-descriptions: - 空闲(未执行或执行完成) - 执行中 - 运行被 schema change 阻塞,禁止直接启动或恢复 x-enum-varnames: - TaskStatusIdle - TaskStatusRunning - TaskStatusBlocked github_com_addp_transfer_internal_models.TransferChangeDetectionDoc: properties: bootstrap: enum: - initial_snapshot example: initial_snapshot type: string end: enum: - execution_upper_bound example: execution_upper_bound type: string field: description: Field 是水位字段;tie_breaker 为空时必须自身是非空、可靠递增且不可变的主键或唯一键,仅同步新增。| Field is the watermark; with an empty tie_breaker it must itself be a non-null, reliably increasing, immutable primary or unique key and synchronizes inserts only. example: updated_at type: string start: enum: - committed example: committed type: string tie_breaker: description: TieBreaker 为空表示 field 单字段仅新增;非空时必须精确匹配非空主键或唯一约束,用于同步新增和更新。| An empty tie_breaker means insert-only single-field mode; otherwise it must exactly match a non-null primary or unique key for insert-and-update synchronization. example: - id items: type: string type: array type: enum: - watermark - kafka - cdc example: watermark type: string type: object github_com_addp_transfer_internal_models.TransferChangeStreamDoc: properties: encoding: enum: - json example: json type: string envelope: enum: - record example: record type: string key: $ref: '#/definitions/github_com_addp_transfer_internal_models.TransferChangeStreamKeyDoc' poll_batch_size: example: 1000 type: integer start: $ref: '#/definitions/github_com_addp_transfer_internal_models.TransferChangeStreamStartDoc' type: object github_com_addp_transfer_internal_models.TransferChangeStreamKeyDoc: properties: fields: example: - id items: type: string type: array source: enum: - value example: value type: string type: object github_com_addp_transfer_internal_models.TransferChangeStreamStartDoc: properties: initial: enum: - earliest - latest example: earliest type: string mode: enum: - committed example: committed type: string type: object github_com_addp_transfer_internal_models.TransferLoadDoc: properties: change_detection: $ref: '#/definitions/github_com_addp_transfer_internal_models.TransferChangeDetectionDoc' mode: enum: - snapshot - incremental example: snapshot type: string type: object github_com_addp_transfer_internal_models.TransferQueryInputDoc: properties: locator: example: addp://engine/9/path/public/orders?type=table&item_id=42 type: string name: example: orders type: string type: object github_com_addp_transfer_internal_models.TransferQuerySourceDoc: properties: inputs: items: $ref: '#/definitions/github_com_addp_transfer_internal_models.TransferQueryInputDoc' type: array language: example: mql type: string parameters: additionalProperties: true type: object statement: example: '{"aggregate":"orders","pipeline":[{"$project":{"customer_id":"$customer.id","_id":0}}]}' type: string type: object github_com_addp_transfer_internal_models.TransferRecordFailureDoc: properties: mode: enum: - block - dead_letter example: block type: string type: object github_com_addp_transfer_internal_models.TransferRuntimeDoc: properties: boundary: enum: - bounded - continuous example: bounded type: string record_failure: $ref: '#/definitions/github_com_addp_transfer_internal_models.TransferRecordFailureDoc' type: object github_com_addp_transfer_internal_models.TransferSourceEndpointDoc: properties: change_stream: $ref: '#/definitions/github_com_addp_transfer_internal_models.TransferChangeStreamDoc' data_type: example: table type: string format: example: shapefile type: string locator: example: addp://engine/9/path/manager/a3.shp?type=object type: string options: additionalProperties: true type: object policy: additionalProperties: true type: object protection_choices: items: $ref: '#/definitions/dataprotection.FieldRoleChoice' type: array query: $ref: '#/definitions/github_com_addp_transfer_internal_models.TransferQuerySourceDoc' representation: enum: - native - encoded example: encoded type: string type: object github_com_addp_transfer_internal_models.TransferTargetEndpointDoc: properties: data_type: example: table type: string format: example: csv type: string name: example: roads_imported type: string options: additionalProperties: true type: object override_policy: example: existing_table_append type: string parent_locator: example: addp://engine/10/path/public?type=schema type: string policy: $ref: '#/definitions/github_com_addp_transfer_internal_models.TransferTargetPolicyDoc' representation: enum: - native - encoded example: native type: string type: object github_com_addp_transfer_internal_models.TransferTargetPolicyDoc: properties: apply_mode: enum: - replace - append - upsert - upsert_delete example: replace type: string keys: example: - id items: type: string type: array type: object github_com_addp_transfer_internal_models.TransferTask: properties: auto_scan_metadata: type: boolean batch_size: type: integer capture: $ref: '#/definitions/github_com_addp_transfer_internal_models.CaptureSummary' config: allOf: - $ref: '#/definitions/github_com_addp_transfer_internal_models.JSONMap' description: Reader-Transform-Writer 管道配置 created_at: type: string created_by: type: integer deleted_at: $ref: '#/definitions/gorm.DeletedAt' description: type: string desired_state: $ref: '#/definitions/github_com_addp_transfer_internal_models.TaskDesiredState' enabled: type: boolean execution_contract: $ref: '#/definitions/taskprovider.ExecutionContract' id: type: integer last_execution_id: description: BaseTask 基类字段 type: string last_execution_status: type: string last_run_at: type: string name: type: string next_run_at: type: string progress: type: number schedule: description: Cron 表达式 type: string status: $ref: '#/definitions/github_com_addp_transfer_internal_models.TaskStatus' task_type: description: Transfer 当前统一任务类型,固定为 sync type: string tenant_id: type: integer updated_at: type: string type: object github_com_addp_transfer_internal_models.TransferTransformDoc: properties: config: additionalProperties: true type: object fields: items: $ref: '#/definitions/github_com_addp_transfer_internal_models.FieldMappingSpecDoc' type: array mode: example: project type: string type: example: field_mapping type: string version: example: v1 type: string type: object github_com_addp_transfer_internal_models.UpdateTaskRequestDoc: properties: auto_scan_metadata: type: boolean batch_size: type: integer config: $ref: '#/definitions/github_com_addp_transfer_internal_models.TableTransferTaskConfigDoc' description: type: string enabled: type: boolean name: type: string schedule: type: string task_type: type: string type: object github_com_addp_transfer_internal_service.ContinuousPolicyResponse: properties: checkpoint_stale_after_seconds: type: integer diagnostics_interval_seconds: type: integer pending_restart: type: boolean recovery_circuit_open_seconds: type: integer recovery_initial_backoff_seconds: type: integer recovery_max_backoff_seconds: type: integer recovery_max_consecutive_failures: type: integer recovery_stability_window_seconds: type: integer retention_critical_horizon_seconds: type: integer retention_degraded_horizon_seconds: type: integer version: type: integer type: object github_com_addp_transfer_internal_service.DecimalFieldRecommendation: properties: fits_target: type: boolean non_null_count: type: integer precision: type: integer scale: type: integer source_field: type: string type: object github_com_addp_transfer_internal_service.FieldDefinitionRecommendationRequest: properties: source_fields: items: type: string type: array source_locator: type: string target_engine_id: type: integer required: - source_fields - source_locator - target_engine_id type: object github_com_addp_transfer_internal_service.FieldDefinitionRecommendationResult: properties: basis: type: string fields: items: $ref: '#/definitions/github_com_addp_transfer_internal_service.DecimalFieldRecommendation' type: array rows_scanned: type: integer target_engine_type: type: string type: object github_com_addp_transfer_internal_service.TaskConfigCheckDiagnostic: properties: check: type: string code: type: string config_path: type: string physical_type: type: string source_field: type: string status: $ref: '#/definitions/plugin.DefinitionCheckStatus' target_field: type: string type: object github_com_addp_transfer_internal_service.TaskConfigCheckFact: properties: engine_facts_hash: type: string engine_id: type: integer engine_type: type: string engine_version: type: integer meta_item_id: type: integer native_access: $ref: '#/definitions/plugin.DefinitionCheckStatus' role: type: string scanned_at: type: string schema_coverage: type: string snapshot_hash: type: string type: object github_com_addp_transfer_internal_service.TaskConfigCheckReport: properties: binding_hash: type: string checked: items: type: string type: array config_hash: type: string diagnostics: items: $ref: '#/definitions/github_com_addp_transfer_internal_service.TaskConfigCheckDiagnostic' type: array facts: items: $ref: '#/definitions/github_com_addp_transfer_internal_service.TaskConfigCheckFact' type: array not_checked: items: type: string type: array observed_at: type: string principal_id: type: string runtime_checks_required: items: type: string type: array schema_version: type: string status: $ref: '#/definitions/plugin.DefinitionCheckStatus' tenant_id: type: integer type: object github_com_addp_transfer_internal_service.TaskConfigDraftField: properties: nullable: type: boolean path: items: type: string type: array precision: type: integer scale: type: integer target: type: string target_type: $ref: '#/definitions/datatype.FieldType' type: object github_com_addp_transfer_internal_service.TaskConfigDraftRequest: properties: batch_size: type: integer description: type: string fields: items: $ref: '#/definitions/github_com_addp_transfer_internal_service.TaskConfigDraftField' type: array name: type: string row_grain: $ref: '#/definitions/github_com_addp_transfer_internal_service.TaskConfigDraftRowGrain' source_locator: type: string target: $ref: '#/definitions/github_com_addp_transfer_internal_service.TaskConfigDraftTarget' type: object github_com_addp_transfer_internal_service.TaskConfigDraftResponse: properties: arguments: additionalProperties: true type: object type: object github_com_addp_transfer_internal_service.TaskConfigDraftRowGrain: properties: mode: type: string path: items: type: string type: array type: object github_com_addp_transfer_internal_service.TaskConfigDraftTarget: properties: apply_mode: type: string name: type: string parent_locator: type: string type: object github_com_addp_transfer_internal_service.UpdateContinuousPolicyInput: properties: checkpoint_stale_after_seconds: type: integer diagnostics_interval_seconds: type: integer recovery_circuit_open_seconds: type: integer recovery_initial_backoff_seconds: type: integer recovery_max_backoff_seconds: type: integer recovery_max_consecutive_failures: type: integer recovery_stability_window_seconds: type: integer retention_critical_horizon_seconds: type: integer retention_degraded_horizon_seconds: type: integer version: type: integer required: - checkpoint_stale_after_seconds - diagnostics_interval_seconds - recovery_circuit_open_seconds - recovery_initial_backoff_seconds - recovery_max_backoff_seconds - recovery_max_consecutive_failures - recovery_stability_window_seconds - retention_critical_horizon_seconds - retention_degraded_horizon_seconds type: object gorm.DeletedAt: properties: time: type: string valid: description: Valid is true if Time is not NULL type: boolean type: object internal_api.ExecutionCapture: properties: generation: type: integer source_recovery: $ref: '#/definitions/internal_api.ExecutionCaptureRecovery' source_transactions: $ref: '#/definitions/internal_api.ExecutionCaptureTransactions' type: object internal_api.ExecutionCaptureRecovery: properties: capture_position: type: string current_position: type: string earliest_available_at: type: string earliest_available_position: type: string fra_reclaimable_percent: type: number fra_used_percent: type: number health: type: string position_headroom: type: string provider: type: string sampled_at: type: string schema_version: type: string window_seconds: type: integer type: object internal_api.ExecutionCaptureTransactions: properties: active_count: type: integer oldest_duration_seconds: type: integer oldest_start_position: type: string provider: type: string sampled_at: type: string schema_version: type: string status: type: string used_undo_blocks: type: string used_undo_records: type: string type: object internal_api.ExecutionContinuous: properties: capture: $ref: '#/definitions/internal_api.ExecutionCapture' diagnostics: $ref: '#/definitions/internal_api.ExecutionDiagnostics' last_committed_at: type: string last_event_at: type: string partitions: additionalProperties: $ref: '#/definitions/internal_api.ExecutionPartition' type: object schema_change: $ref: '#/definitions/internal_api.ExecutionSchemaChange' type: object internal_api.ExecutionDiagnostics: properties: checkpoint_health: type: string checkpoint_stale_after_seconds: type: number critical_horizon_seconds: type: number degraded_horizon_seconds: type: number error: description: Replaced with a fixed localized message before serializing. type: string health: type: string partitions: additionalProperties: $ref: '#/definitions/internal_api.ExecutionPartitionDiagnostics' type: object sampled_at: type: string type: object internal_api.ExecutionEventPage: properties: has_more: type: boolean items: items: $ref: '#/definitions/execution.Event' type: array next_cursor: type: integer retained_after: type: string type: object internal_api.ExecutionFieldMapping: properties: input_port: type: string output_port: type: string source_field: type: string target_field: type: string transformation: type: string type: object internal_api.ExecutionInitialAuthorization: properties: code: type: string status: type: string type: object internal_api.ExecutionLineageFacts: properties: inputs: items: $ref: '#/definitions/internal_api.ExecutionLineageResource' type: array meta_scan_refs: items: type: string type: array operations: items: $ref: '#/definitions/internal_api.ExecutionLineageOperation' type: array outputs: items: $ref: '#/definitions/internal_api.ExecutionLineageResource' type: array runtime_execution_id: type: string schema_version: type: string type: object internal_api.ExecutionLineageOperation: properties: field_lineage_status: type: string field_mappings: items: $ref: '#/definitions/internal_api.ExecutionFieldMapping' type: array input_ports: items: type: string type: array kind: type: string operator: type: string output_ports: items: type: string type: array type: object internal_api.ExecutionLineageResource: properties: item_fingerprint: type: string item_id: type: integer locator: type: string port: type: string schema_snapshot: $ref: '#/definitions/internal_api.ExecutionSchemaSnapshot' write_mode: type: string type: object internal_api.ExecutionListResponse: properties: data: items: $ref: '#/definitions/internal_api.ExecutionResponse' type: array page: type: integer page_size: type: integer total: type: integer total_pages: type: integer type: object internal_api.ExecutionMetadata: properties: continuous: $ref: '#/definitions/internal_api.ExecutionContinuous' initial_authorization: $ref: '#/definitions/internal_api.ExecutionInitialAuthorization' lineage_facts: $ref: '#/definitions/internal_api.ExecutionLineageFacts' metadata_scan: $ref: '#/definitions/internal_api.ExecutionMetadataScan' recovered_from_execution_id: type: string recovery_attempt: type: integer recovery_backoff_seconds: type: number recovery_circuit_state: type: string recovery_consecutive_failures: type: integer recovery_not_before: type: string recovery_reason: type: string stop_reason: type: string type: object internal_api.ExecutionMetadataScan: properties: attempt: type: integer basic_execution_id: type: string error_code: type: string execution_id: type: string status: type: string type: object internal_api.ExecutionPartition: properties: type: type: string values: $ref: '#/definitions/internal_api.ExecutionPartitionValue' version: type: string type: object internal_api.ExecutionPartitionDiagnostics: properties: checkpoint_age_seconds: type: number checkpoint_health: type: string earliest_offset: type: integer health: type: string lag_records: type: integer latest_offset: type: integer next_offset: type: integer partition: type: string recovery_headroom_records: type: integer retention_horizon_seconds: type: number source_rate_records_per_second: type: number type: object internal_api.ExecutionPartitionValue: properties: next_offset: description: ChangeStreamPosition.Values stores decimal strings, including Kafka offsets. example: "42" type: string type: object internal_api.ExecutionProgressResponse: properties: bytes_read: type: integer bytes_written: type: integer duration: type: number end_time: $ref: '#/definitions/github_com_addp_transfer_internal_models.LocalTime' error_details: allOf: - $ref: '#/definitions/github_com_addp_transfer_internal_models.JSONMap' description: Safe diagnostics; code=query_output_lineage_unresolved identifies unprovable query lineage without private text. | 安全诊断;血缘不可证明使用稳定 code,不返回私有文本。 execution_id: type: string qps: type: number records_read: type: integer records_written: type: integer start_time: $ref: '#/definitions/github_com_addp_transfer_internal_models.LocalTime' status: $ref: '#/definitions/github_com_addp_transfer_internal_models.ExecutionStatus' task_id: type: integer type: object internal_api.ExecutionResponse: properties: bytes_read: type: integer bytes_written: type: integer end_time: $ref: '#/definitions/github_com_addp_transfer_internal_models.LocalTime' error_details: allOf: - $ref: '#/definitions/github_com_addp_transfer_internal_models.JSONMap' description: Safe diagnostics; code=query_output_lineage_unresolved identifies unprovable query lineage without private text. | 安全诊断;血缘不可证明使用稳定 code,不返回私有文本。 execution_id: type: string id: type: integer metadata: $ref: '#/definitions/internal_api.ExecutionMetadata' records_read: type: integer records_written: type: integer start_time: $ref: '#/definitions/github_com_addp_transfer_internal_models.LocalTime' status: $ref: '#/definitions/github_com_addp_transfer_internal_models.ExecutionStatus' task_id: type: integer trigger_by: type: integer trigger_type: type: string type: object internal_api.ExecutionSchemaChange: properties: detected_at: type: string from_revision: type: integer generation: type: integer incompatible_fields: items: type: string type: array metadata_scan: $ref: '#/definitions/internal_api.ExecutionMetadataScan' missing_fields: items: type: string type: array request_id: type: integer scope: type: string source_offset: type: integer source_partition: type: string status: type: string stopped_at: type: string to_revision: type: integer unexpected_fields: items: type: string type: array type: object internal_api.ExecutionSchemaField: properties: element_type: type: string generated: type: boolean name: type: string native_type: type: string nullable: type: boolean ordinal_position: type: integer path: items: type: string type: array precision: type: integer primary_key: type: boolean scale: type: integer size: type: integer type: type: string type: object internal_api.ExecutionSchemaSnapshot: properties: fields: items: $ref: '#/definitions/internal_api.ExecutionSchemaField' type: array hash: type: string type: object internal_api.ExecutionTargetRef: properties: entry: type: string extension: type: string path: type: string primary: type: boolean required: type: boolean role: type: string type: object internal_api.ModuleExecutionMetadata: properties: target_refs: items: $ref: '#/definitions/internal_api.ExecutionTargetRef' type: array type: object internal_api.ModuleExecutionResult: properties: error_msg: type: string execution_id: type: string export_protection_current: type: boolean metadata: $ref: '#/definitions/internal_api.ModuleExecutionMetadata' status: $ref: '#/definitions/github_com_addp_transfer_internal_models.ExecutionStatus' task_id: type: integer type: object internal_api.ProductionReceipt: properties: attempt: type: integer committed_at: type: string created_and_committed: type: boolean execution_id: type: string manager_import: $ref: '#/definitions/production.PrivateUploadProof' preparation: $ref: '#/definitions/plugin.TableTargetDisposition' retry_of_execution_id: type: string schema_version: type: string source_engine_versions: items: $ref: '#/definitions/production.EngineVersion' type: array source_read_set: $ref: '#/definitions/plugin.QueryReadSet' target: $ref: '#/definitions/plugin.EngineCatalogPath' target_engine_version: example: "" type: string tenant_id: example: "" type: string user_origin: $ref: '#/definitions/client.TransferProductionUserOrigin' type: object internal_api.ProviderExecuteRequest: properties: parameters: additionalProperties: true type: object parent_execution_id: type: string source: type: string trigger_type: type: string type: object internal_api.ProviderExecuteResponse: properties: execution_id: type: string status: type: string type: object internal_api.TransferBusinessKafkaCapabilities: properties: bounded_replay: $ref: '#/definitions/internal_api.TransferReplayCapability' dead_letters: $ref: '#/definitions/internal_api.TransferDeadLetterCapability' record_failure_modes: items: type: string type: array type: object internal_api.TransferCapabilitiesResponse: properties: continuous: $ref: '#/definitions/internal_api.TransferContinuousCapabilities' raw_copy_formats: items: $ref: '#/definitions/internal_api.TransferRawCopyFormatSupport' type: array table_formats: items: $ref: '#/definitions/internal_api.TransferTableFormatSupport' type: array type: object internal_api.TransferColumnarCompressionCapability: properties: codecs: description: Codecs 是 writer 当前支持的 canonical Parquet column/page compression codec。 items: type: string type: array default: description: Default 是未指定 target.options.compression 时使用的唯一默认 codec。 type: string type: object internal_api.TransferContinuousCapabilities: properties: business_kafka: $ref: '#/definitions/internal_api.TransferBusinessKafkaCapabilities' database_cdc: $ref: '#/definitions/internal_api.TransferDatabaseCDCCapability' type: object internal_api.TransferDatabaseCDCCapability: properties: apply_mode: type: string bootstrap: items: type: string type: array sources: items: type: string type: array targets: items: type: string type: array type: object internal_api.TransferDeadLetterCapability: properties: detail_endpoint: type: string exposes_payload: type: boolean filters: items: type: string type: array list_endpoint: type: string supported: type: boolean type: object internal_api.TransferRawCopyFormatSupport: properties: data_type: type: string extension: type: string label: type: string layouts: items: type: string type: array value: type: string type: object internal_api.TransferReplayCapability: properties: endpoint: type: string owner_record_failure_modes: items: type: string type: array supported: type: boolean type: object internal_api.TransferTableFormatSupport: properties: backend_type: type: string columnar_compression: $ref: '#/definitions/internal_api.TransferColumnarCompressionCapability' extension: type: string group: type: string label: type: string layouts: items: type: string type: array multi_file: type: boolean options: additionalProperties: {} type: object provider_kind: type: string read: type: boolean spatial: type: boolean value: type: string write: type: boolean type: object plugin.DefinitionCheckStatus: enum: - supported - unsupported - unknown type: string x-enum-varnames: - DefinitionSupported - DefinitionUnsupported - DefinitionUnknown plugin.EngineCatalogPath: properties: engine_id: type: integer segments: items: $ref: '#/definitions/plugin.EngineCatalogSegment' type: array version: type: string type: object plugin.EngineCatalogSegment: properties: kind: type: string name: type: string term: type: string type: object plugin.QueryReadSet: properties: paths: items: $ref: '#/definitions/plugin.EngineCatalogPath' type: array type: object plugin.TableTargetDisposition: enum: - created - recreated - reused type: string x-enum-varnames: - TableTargetCreated - TableTargetRecreated - TableTargetReused production.EngineVersion: properties: engine_id: example: "" type: string version: example: "" type: string type: object production.PrivateUploadProof: properties: manifest_sha256: type: string task_id: example: "" type: string upload_id: type: string uploader_id: example: "" type: string type: object taskprovider.ExecutionContract: properties: input_defaults: additionalProperties: true type: object input_schema: additionalProperties: true type: object input_ui_schema: additionalProperties: true type: object output_schema: additionalProperties: true type: object type: object taskprovider.ExecutionStatusResponse: properties: attempt: type: integer bytes_read: type: integer bytes_written: type: integer completed_at: type: string created_at: type: string current_step: type: string diagnostics_truncated: type: boolean error_details: $ref: '#/definitions/github_com_addp_common_models.JSONMap' execution_boundary: type: string execution_id: type: string execution_time_ms: type: integer id: type: integer max_attempts: type: integer metadata: $ref: '#/definitions/github_com_addp_common_models.JSONMap' module: type: string outputs: $ref: '#/definitions/github_com_addp_common_models.JSONMap' parent_execution_id: type: string progress: type: integer records_read: type: integer records_written: type: integer retry_of_execution_id: type: string rows_affected: type: integer source: type: string source_task_id: type: string source_task_name: type: string started_at: type: string status: type: string steps: items: $ref: '#/definitions/execution.DiagnosticStep' type: array steps_attempt_unverified: type: boolean steps_truncated: type: boolean task_type: type: string trigger_type: type: string triggered_by: type: integer updated_at: type: string required: - outputs type: object host: localhost:8083 info: contact: {} title: ADDP Transfer API version: "1.0" paths: /capabilities: get: description: 返回 Transfer 当前可用的格式读写、列式压缩、业务 Kafka continuous 能力和数据库 CDC 支持矩阵。| Returns available Transfer format read/write and columnar compression capabilities, business Kafka continuous features, and the database CDC support matrix. produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/internal_api.TransferCapabilitiesResponse' security: - BearerAuth: [] summary: 获取传输能力 | Get transfer capabilities tags: - 传输能力 | Capabilities x-addp-auth-mode: authenticated /cleanup-executions/{execution_id}/result: get: description: 仅第一方 unrestricted 租户用户;同时要求本模块专业结果权限、Cleanup公共读取权限及本人子执行归属。不返回SQL、凭据、对象路径或原始错误。 | First-party unrestricted tenant Users only; requires both professional and public Cleanup read permissions and ownership of the child execution. No SQL, credentials, object paths or raw errors. parameters: - description: 子执行UUID | Child execution UUID in: path name: execution_id required: true type: string produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/cleanup.Result' "400": description: Bad Request schema: additionalProperties: type: string type: object "401": description: Unauthorized schema: additionalProperties: type: string type: object "403": description: Forbidden schema: additionalProperties: type: string type: object "404": description: Not Found schema: additionalProperties: type: string type: object "409": description: Conflict schema: additionalProperties: type: string type: object "503": description: Service Unavailable schema: additionalProperties: type: string type: object security: - BearerAuth: [] summary: 获取本模块资源回收专业结果 | Get module cleanup professional result tags: - Cleanup x-addp-auth-mode: permission x-addp-required-permissions: - transfer.cleanup_result.read - system.cleanup.read /execution-read-scope: get: description: 仅第一方租户用户;范围由 Owner 的现有读取 Permission 裁决,任务历史与本人一次性执行使用不同条件。| First-party tenant users only; Owner permissions decide task history and own ad-hoc visibility. produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/execution.ReadScope' "403": description: Forbidden schema: additionalProperties: type: string type: object security: - BearerAuth: [] summary: 获取任务执行读取范围 | Get execution read scope tags: - Execution diagnostics x-addp-auth-mode: authenticated /executions: get: parameters: - description: 任务ID | Task ID in: query name: task_id type: integer - description: 执行状态 | Status in: query name: status type: string - default: 1 description: 页码 | Page in: query name: page type: integer - default: 20 description: 每页数量 | Page size in: query name: page_size type: integer produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/internal_api.ExecutionListResponse' "400": description: Bad Request schema: additionalProperties: type: string type: object "403": description: Forbidden schema: additionalProperties: type: string type: object "500": description: Internal Server Error schema: additionalProperties: type: string type: object security: - BearerAuth: [] summary: 获取执行列表 | List executions tags: - 执行管理 | Execution Management x-addp-auth-mode: permission x-addp-required-permissions: - transfer.task.read post: consumes: - application/json description: 模块服务创建无任务定义的 bounded sync execution;来源由认证 Client ID 推导。导出会话必须核验 owner 保存的 UUID、请求摘要及用户事实;无会话的机器执行不声明人类发起用户。| A module service creates a bounded sync execution without a task definition; its source is derived from the authenticated Client ID. An export session must verify the owner's UUID, request digest and initiator facts; a machine execution without a session has no human initiator. parameters: - description: 一次性同步执行 | One-off sync execution in: body name: request required: true schema: $ref: '#/definitions/github_com_addp_transfer_internal_models.CreateAdHocExecutionRequest' produces: - application/json responses: "202": description: Accepted schema: $ref: '#/definitions/github_com_addp_transfer_internal_models.CreateAdHocExecutionResponse' "400": description: Bad Request schema: additionalProperties: type: string type: object "403": description: Forbidden schema: additionalProperties: type: string type: object "503": description: Service Unavailable schema: additionalProperties: type: string type: object security: - BearerAuth: [] summary: 创建一次性同步执行 | Create one-off sync execution tags: - 执行管理 | Execution Management x-addp-auth-mode: permission x-addp-required-permissions: - transfer.execution.create /executions/{execution_id}: get: description: |- 写入失败沿 error_details.diagnostic v3 返回受控原因;可确定时含 write.column_index(本次写入列的 1 起始序号)和 declared_type。target_change_possible=true 提示目标数据或表结构可能已改变;缺失该字段不证明无副作用。不返回原始错误或业务值。| Write failures use controlled diagnostic v3 reasons, with write.column_index (1-based actual write column) and declared_type when proven. target_change_possible=true warns that target data or structure may have changed; omission is not proof of no effects. Raw errors and business values are excluded. 第一方、普通 OAuth User 或精确 transfer.execution.get 委托;当前租户 transfer/sync 的任务历史(含已删除定义),无定义执行仅发起人可读。返回声明的专业诊断事实,不包含原始配置、checkpoint 或任意 metadata。| First-party or ordinary OAuth Users and exact transfer.execution.get delegation may read tenant transfer/sync task history, including deleted definitions, and their own ad-hoc executions. Only declared professional diagnostic facts are returned; raw configuration, checkpoints and arbitrary metadata are excluded. parameters: - description: 执行ID | Execution ID in: path name: execution_id required: true type: string produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/internal_api.ExecutionResponse' "403": description: Forbidden schema: additionalProperties: type: string type: object "404": description: Not Found schema: additionalProperties: type: string type: object "500": description: Internal Server Error schema: additionalProperties: type: string type: object security: - BearerAuth: [] summary: 获取执行详情 | Get execution detail tags: - 执行管理 | Execution Management x-addp-auth-mode: permission x-addp-required-permissions: - transfer.task.read /executions/{execution_id}/events: get: description: 按 ID 游标读取最近 30 天结构化事件,每页最多 100 条。| Read safe structured events retained for 30 days with an ID cursor, up to 100 per page. parameters: - description: 执行ID | Execution ID in: path name: execution_id required: true type: string - description: 上一页末尾事件 ID | Last event ID in: query minimum: 0 name: after type: integer - default: 100 description: 每页事件数 | Page size in: query maximum: 100 minimum: 1 name: limit type: integer produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/internal_api.ExecutionEventPage' "400": description: Bad Request schema: additionalProperties: type: string type: object "404": description: Not Found schema: additionalProperties: type: string type: object "500": description: Internal Server Error schema: additionalProperties: type: string type: object security: - BearerAuth: [] summary: 获取执行过程事件 | Get execution process events tags: - 执行管理 | Execution Management x-addp-auth-mode: permission x-addp-required-permissions: - transfer.task.read /executions/{execution_id}/filegdb-source-authorization: put: consumes: - application/json description: 仅 Manager 租户服务可以绑定自己的待执行导出。Transfer 核对冻结配置与授权范围,执行时由 System 按实际租约重新验证。| Only the Manager tenant service may bind its pending export. Transfer checks the frozen config and scope. System checks the actual lease at execution time. parameters: - description: 执行 UUID | Execution UUID in: path name: execution_id required: true type: string - description: System 签发的源表授权 | System-issued source authorization in: body name: request required: true schema: $ref: '#/definitions/client.IssuedFileGDBExportAuthorization' responses: "204": description: No Content "400": description: Bad Request schema: additionalProperties: type: string type: object "403": description: Forbidden schema: additionalProperties: type: string type: object "404": description: Not Found schema: additionalProperties: type: string type: object "409": description: Conflict schema: additionalProperties: type: string type: object "500": description: Internal Server Error schema: additionalProperties: type: string type: object security: - BearerAuth: [] summary: 绑定 FileGDB 导出源表授权 | Bind FileGDB export source authorization tags: - 执行管理 | Execution Management x-addp-auth-mode: permission x-addp-required-permissions: - transfer.execution.create /executions/{execution_id}/progress: get: parameters: - description: 执行ID | Execution ID in: path name: execution_id required: true type: string produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/internal_api.ExecutionProgressResponse' "403": description: Forbidden schema: additionalProperties: type: string type: object "404": description: Not Found schema: additionalProperties: type: string type: object "500": description: Internal Server Error schema: additionalProperties: type: string type: object security: - BearerAuth: [] summary: 获取执行进度 | Get execution progress tags: - 执行管理 | Execution Management x-addp-auth-mode: permission x-addp-required-permissions: - transfer.task.read /executions/{execution_id}/result: get: description: |- 导出成功后返回 export_protection_current;按当前 Transfer 本地投影和私有执行记录核验,不返回保护记录。缺失或 false 不能交付文件。| Successful exports include export_protection_current, checked against current local Transfer protection and the private receipt. Missing or false forbids artifact delivery. 仅返回 source 与当前模块 Service Client 一致、且没有 Transfer 任务定义的一次性 execution。| Returns only a one-off execution whose source matches the authenticated module Service Client and which has no Transfer task definition. parameters: - description: 执行ID | Execution ID in: path name: execution_id required: true type: string produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/internal_api.ModuleExecutionResult' "403": description: Forbidden schema: additionalProperties: type: string type: object "404": description: Not Found schema: additionalProperties: type: string type: object "500": description: Internal Server Error schema: additionalProperties: type: string type: object "503": description: Service Unavailable schema: additionalProperties: type: string type: object security: - BearerAuth: [] summary: 获取模块一次性执行结果 | Get module-owned one-off execution result tags: - 执行管理 | Execution Management x-addp-auth-mode: permission x-addp-required-permissions: - transfer.execution.read /executions/{execution_id}/retry: post: description: 为允许重试的失败 bounded execution 创建 restartable retry;continuous execution 和 schema drift blocked CDC 不支持 retry。| Create a restartable retry for an eligible failed bounded execution. Continuous executions and schema-drift-blocked CDC do not support retry. parameters: - description: 执行ID | Execution ID in: path name: execution_id required: true type: string produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/internal_api.ExecutionResponse' "409": description: CDC 被结构变化阻塞 | CDC blocked by schema change schema: additionalProperties: type: string type: object "500": description: Internal Server Error schema: additionalProperties: type: string type: object security: - BearerAuth: [] summary: 重试执行 | Retry execution tags: - 执行管理 | Execution Management x-addp-auth-mode: permission x-addp-required-permissions: - transfer.task.execute /executions/statistics: get: parameters: - description: 任务ID | Task ID in: query name: task_id type: integer - description: 开始时间 | Start time in: query name: start_time type: string - description: 结束时间 | End time in: query name: end_time type: string produces: - application/json responses: "200": description: OK schema: additionalProperties: true type: object "400": description: Bad Request schema: additionalProperties: type: string type: object "403": description: Forbidden schema: additionalProperties: type: string type: object "500": description: Internal Server Error schema: additionalProperties: type: string type: object security: - BearerAuth: [] summary: 获取执行统计 | Get execution statistics tags: - 执行管理 | Execution Management x-addp-auth-mode: permission x-addp-required-permissions: - transfer.task.read /field-definition-recommendations: post: consumes: - application/json description: 全量扫描指定源 DECIMAL 字段的实际值,并按目标引擎声明的 decimal 表写入限制返回不会截断当前源数据的最小 precision 和 scale。| Fully scans the selected source DECIMAL fields and uses the target engine's declared decimal table-write limits to return the minimum precision and scale that preserve all current source values. parameters: - description: 推荐请求 | Recommendation request in: body name: request required: true schema: $ref: '#/definitions/github_com_addp_transfer_internal_service.FieldDefinitionRecommendationRequest' produces: - application/json responses: "200": description: 推荐结果 | Recommendation result schema: $ref: '#/definitions/github_com_addp_transfer_internal_service.FieldDefinitionRecommendationResult' "400": description: 请求无效 | Invalid request schema: additionalProperties: type: string type: object "401": description: 当前身份或源表读取授权不满足 | Current user or source read authorization rejected schema: additionalProperties: type: string type: object "403": description: 当前身份或源表读取授权不满足 | Current user or source read authorization rejected schema: additionalProperties: type: string type: object "422": description: 源或目标不支持分析 | Source or target does not support analysis schema: additionalProperties: type: string type: object "503": description: 分析服务不可用 | Analysis unavailable schema: additionalProperties: type: string type: object security: - BearerAuth: [] summary: 推荐目标字段定义 | Recommend target field definitions tags: - 字段定义 | Field Definitions x-addp-auth-mode: permission x-addp-required-permissions: - transfer.task.create /ping: get: produces: - application/json responses: "200": description: OK schema: additionalProperties: type: string type: object summary: Ping tags: - Transfer x-addp-auth-mode: public /run-approvals/{id}: get: description: 仅原租户用户本人可读;委托令牌、Service 和不同成员关系不可读取。| Only the original tenant user may read; delegated tokens, services and other memberships are denied. parameters: - description: 审批 ID | Approval ID in: path name: id required: true type: string produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/github_com_addp_transfer_internal_models.RunApproval' "403": description: Forbidden schema: additionalProperties: type: string type: object "404": description: Not Found schema: additionalProperties: type: string type: object "500": description: Internal Server Error schema: additionalProperties: type: string type: object security: - BearerAuth: [] summary: 查询运行审批 | Get run approval tags: - Task Approval x-addp-auth-mode: permission x-addp-required-permissions: - transfer.task.read /run-approvals/{id}/decision: post: consumes: - application/json description: 用户本人显式提交当前指纹的批准或拒绝;仅保存决定,不启动任务。委托令牌不能批准。| The user explicitly approves or rejects the displayed fingerprint. Records the decision only, without starting execution; delegated tokens cannot approve. parameters: - description: 审批 ID | Approval ID in: path name: id required: true type: string - description: 运行决定 | Run decision in: body name: request required: true schema: $ref: '#/definitions/github_com_addp_transfer_internal_models.RunApprovalDecision' produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/github_com_addp_transfer_internal_models.RunApproval' "400": description: Bad Request schema: additionalProperties: type: string type: object "403": description: Forbidden schema: additionalProperties: type: string type: object "404": description: Not Found schema: additionalProperties: type: string type: object "409": description: Conflict schema: additionalProperties: type: string type: object "410": description: Gone schema: additionalProperties: type: string type: object "500": description: Internal Server Error schema: additionalProperties: type: string type: object security: - BearerAuth: [] summary: 确认或拒绝任务运行 | Approve or reject task run tags: - Task Approval x-addp-auth-mode: permission x-addp-required-permissions: - transfer.task.execute /runtime/cdc-risk-observations: get: description: 仅 addp-monitor 平台服务身份读取当前 CDC 任务风险、捕获健康与性能事实 v3 清单,包含连续失败起点、位点及事件活动,不含业务数据或私有捕获资源。| Only the addp-monitor platform Service reads the v3 CDC risk, capture health and performance inventory, including the failure start, buffer positions and event activity, without business data or private capture resources. parameters: - description: 上一页最后一个任务 ID,首批为0,每批最多100项 | Last task ID from the previous page, initially zero; at most 100 items per page in: query name: after_id type: integer produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/client.TransferCDCRisks' "400": description: Bad Request schema: additionalProperties: type: string type: object "403": description: Forbidden schema: additionalProperties: type: string type: object "503": description: Service Unavailable schema: additionalProperties: type: string type: object security: - BearerAuth: [] summary: 读取 CDC 任务风险观测 | Read CDC task risk observations tags: - 运行时 | Runtime x-addp-auth-mode: permission x-addp-required-permissions: - transfer.cdc_risk_observation.read /runtime/executions/{execution_id}/production-receipt: get: description: 仅供当前 Tenant 的 addp-system 和 addp-meta 读取 PG Transfer 已提交的 v3 产出证据(不依赖父任务终态)、实际会话来源集合或私有导入读取证明,以及创建提交事实;false 或 null 不得补造为已证明或长期许可。不代表首次新建资格、Meta 边界或数据权限,不返回私有配置或凭据 | Only the current Tenant addp-system and addp-meta Services may read committed v3 PG production evidence independently of parent task status, actual session sources or verified private import input, and the created-and-committed fact. False or null cannot imply proven creation or unbounded permission. Not initial-Grant eligibility, a Meta boundary or data permission; no private configuration or credentials parameters: - description: 原执行 UUID | Original execution UUID in: path name: execution_id required: true type: string produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/internal_api.ProductionReceipt' "400": description: Bad Request schema: additionalProperties: true type: object "401": description: Unauthorized schema: additionalProperties: true type: object "403": description: Forbidden schema: additionalProperties: true type: object "404": description: Not Found schema: additionalProperties: true type: object "409": description: Conflict schema: additionalProperties: true type: object "500": description: Internal Server Error schema: additionalProperties: true type: object security: - BearerAuth: [] summary: 读取精确产出回执 | Read an exact production receipt tags: - Runtime x-addp-auth-mode: permission x-addp-required-permissions: - transfer.production_receipt.read /settings/continuous-policy: get: produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/github_com_addp_transfer_internal_service.ContinuousPolicyResponse' security: - BearerAuth: [] summary: 获取持续同步策略 | Get continuous transfer policy tags: - 配置管理 | Configuration Management x-addp-auth-mode: permission x-addp-required-permissions: - transfer.configuration.read put: consumes: - application/json parameters: - description: 持续同步策略 | Continuous transfer policy in: body name: request required: true schema: $ref: '#/definitions/github_com_addp_transfer_internal_service.UpdateContinuousPolicyInput' produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/github_com_addp_transfer_internal_service.ContinuousPolicyResponse' "409": description: Conflict schema: additionalProperties: type: string type: object security: - BearerAuth: [] summary: 更新持续同步策略 | Update continuous transfer policy tags: - 配置管理 | Configuration Management x-addp-auth-mode: permission x-addp-required-permissions: - transfer.configuration.update /source-protection-checks: post: consumes: - application/json parameters: - description: 源与字段选项引用 | Source and field option references in: body name: request required: true schema: $ref: '#/definitions/client.TransferSourceProtectionSelection' produces: - application/json responses: "200": description: OK schema: additionalProperties: type: boolean type: object "400": description: Bad Request schema: additionalProperties: type: string type: object "401": description: Unauthorized schema: additionalProperties: type: string type: object "403": description: Forbidden schema: additionalProperties: type: string type: object "409": description: Conflict schema: additionalProperties: type: string type: object "503": description: Service Unavailable schema: additionalProperties: type: string type: object security: - BearerAuth: [] summary: 核验本人导出脱敏选择 | Check my export masking selection tags: - 数据保护 | Data protection x-addp-auth-mode: permission x-addp-required-permissions: - transfer.task.execute /source-protection-options: get: parameters: - description: 精确源数据项 | Exact source data item in: query name: source_locator required: true type: string produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/client.TransferProtectionOptions' "400": description: Bad Request schema: additionalProperties: type: string type: object "401": description: Unauthorized schema: additionalProperties: type: string type: object "403": description: Forbidden schema: additionalProperties: type: string type: object "409": description: Conflict schema: additionalProperties: type: string type: object "503": description: Service Unavailable schema: additionalProperties: type: string type: object security: - BearerAuth: [] summary: 本人导出脱敏候选 | My export masking options tags: - 数据保护 | Data protection x-addp-auth-mode: permission x-addp-required-permissions: - transfer.task.execute /task-config-checks: post: consumes: - application/json description: 检查 bounded/snapshot 原生表任务及无调度的 RustFS 单个 Parquet 对象导入 PostgreSQL 原生表的 replace/append 定义;replace 必须同时具备已登记的删除能力和当前插件的删除声明及 Provider,已知缺失返回 unsupported。要求当前租户三项权限交集;委托必须使用 transfer audience 和唯一 transfer.task.config.check Scope。报告 supported 仅表示已检查的定义,不能证明逐值转换、实时结构或运行授权成功。仅可用已保存快照进行 Provider 纯查询定义分析;源未知时仍检查显式目标约束。不会创建任务、读业务行、执行源查询或 DDL。binding_hash 是内容摘要,不是授权凭据。| Checks bounded snapshot replace/append definitions for native table tasks and unscheduled imports of one RustFS Parquet object into a native PostgreSQL table using persisted facts. Replace also requires registered delete capability and the current plugin delete declaration and Provider; known missing support is unsupported. Requires all three current-tenant permissions; delegation requires the transfer audience and only transfer.task.config.check. Supported applies only to checked definitions, not every value, live schema or runtime authorization. Optional pure Provider query analysis uses saved snapshots only; explicit target constraints are checked even when the source is unknown. Does not create tasks, read business rows, execute source queries or DDL. binding_hash is a content digest, not an authorization credential. parameters: - description: 完整任务创建请求 | Complete task creation request in: body name: request required: true schema: $ref: '#/definitions/github_com_addp_transfer_internal_models.CreateTaskRequestDoc' produces: - application/json responses: "200": description: 定义检查报告 | Definition check report schema: $ref: '#/definitions/github_com_addp_transfer_internal_service.TaskConfigCheckReport' "400": description: 请求无效 | Invalid request schema: additionalProperties: type: string type: object "401": description: 未认证 | Authentication required schema: additionalProperties: type: string type: object "403": description: 无权限 | Access denied schema: additionalProperties: type: string type: object "502": description: 结构事实服务不可用 | Structure fact dependency unavailable schema: additionalProperties: type: string type: object security: - BearerAuth: [] summary: 只读检查传输任务配置 | Check transfer task configuration read-only tags: - 任务管理 | Task Management x-addp-auth-mode: delegated_tool x-addp-required-permissions: - transfer.task.create - meta.catalog.read - system.engine.read /task-config-drafts: post: consumes: - application/json description: 基于当前租户可见的已登记源结构和目标父节点构建 MongoDB 到 PostgreSQL 的 bounded snapshot。需要四项权限交集。仅返回可交给正式预检的完整候选参数,不读取业务行、不保存任务或启动执行。| Build a MongoDB to PostgreSQL bounded snapshot from tenant-visible persisted structure and target parent facts. Requires all four permissions. Returns complete candidate arguments for formal preflight without business reads, task persistence or execution. parameters: - description: 资源引用与业务选择 | Resource references and business choices in: body name: request required: true schema: $ref: '#/definitions/github_com_addp_transfer_internal_service.TaskConfigDraftRequest' produces: - application/json responses: "200": description: 候选创建参数 | Candidate creation arguments schema: $ref: '#/definitions/github_com_addp_transfer_internal_service.TaskConfigDraftResponse' "400": description: 请求无效 | Invalid request schema: additionalProperties: type: string type: object "401": description: 未认证 | Authentication required schema: additionalProperties: type: string type: object "403": description: 无权限 | Access denied schema: additionalProperties: type: string type: object "422": description: 选择无法构建 | Choices cannot be compiled schema: additionalProperties: type: string type: object "502": description: 事实服务不可用 | Fact dependency unavailable schema: additionalProperties: type: string type: object security: - BearerAuth: [] summary: 只读构建传输任务草稿 | Build transfer configuration read-only tags: - 任务管理 | Task Management x-addp-auth-mode: delegated_tool x-addp-required-permissions: - transfer.task.create - meta.catalog.read - system.engine.read - manager.data_item.read /task-definitions: get: consumes: - application/json description: 分页获取当前租户的全部 Transfer 任务定义,支持按状态和执行边界过滤。| Get all Transfer task definitions in the current tenant with status and runtime-boundary filters. parameters: - default: 1 description: 页码 | Page number in: query name: page type: integer - default: 20 description: 每页大小 | Page size in: query name: page_size type: integer - description: 任务类型,当前固定为 sync | Task type, currently fixed to sync in: query name: task_type type: string - description: '任务定义状态: idle, running, blocked | Task definition status: idle, running, blocked' in: query name: status type: string - description: '执行边界: bounded, continuous | Runtime boundary: bounded, continuous' in: query name: runtime_boundary type: string - description: '变更检测筛选,仅支持 cdc;不与 bounded 组合 | Change detection filter: cdc only; cannot be combined with bounded' in: query name: change_detection type: string produces: - application/json responses: "200": description: 获取成功 | Retrieved successfully schema: $ref: '#/definitions/github_com_addp_transfer_internal_models.ListProviderTasksResponse' "400": description: 不支持的任务类型 | Unsupported task type schema: additionalProperties: type: string type: object "500": description: 服务器错误 | Server error schema: additionalProperties: type: string type: object security: - BearerAuth: [] summary: 获取任务列表 | List tasks tags: - 任务管理 | Task Management x-addp-auth-mode: permission x-addp-required-permissions: - transfer.task.read post: consumes: - application/json description: |- 创建 bounded、业务 Kafka continuous 或数据库 CDC 任务。业务 Kafka continuous 必须显式使用 runtime.record_failure.mode=block|dead_letter;dead_letter 只处理确定性记录级数据错误。数据库 CDC 支持 PostgreSQL/MySQL/Oracle 单表 initial_snapshot、block 和 PostgreSQL/MySQL/Oracle 新目标表 upsert_delete;Oracle Spatial 由 generation-owned WKB 镜像捕获,Oracle 目标首期支持 XY geometry,普通 Oracle LOB/RAC 与 ArcGIS SDE 不支持。旧 mode/write_mode 字段会被拒绝。| Create a bounded, business Kafka continuous, or database CDC task. Business Kafka continuous tasks must explicitly use runtime.record_failure.mode=block|dead_letter; dead_letter only handles deterministic record-level data errors. Database CDC supports a single PostgreSQL, MySQL, or Oracle source table with initial_snapshot, block policy, and a new PostgreSQL, MySQL, or Oracle upsert_delete target; Oracle Spatial uses a generation-owned WKB mirror, Oracle targets initially support XY geometry, while regular Oracle LOB/RAC and ArcGIS SDE remain unsupported. Legacy mode/write_mode fields are rejected. 带 Cron 的定义另需 system.execution_authorization.create 和 transfer.task.execute;只在同步请求内授权当前 User,不保存凭据。| Definitions with a Cron schedule also require system.execution_authorization.create and transfer.task.execute; authorize only the current User synchronously without retaining credentials. 委托 transfer.task.create 仅允许租户范围内创建 bounded/snapshot/native table 任务,必须显式禁用任务及自动扫描且不设调度;不创建 execution | Delegated transfer.task.create only creates tenant-scoped bounded/snapshot/native table tasks with explicit disabled task and auto-scan, no schedule and no execution parameters: - description: 任务创建请求 | Task creation request in: body name: request required: true schema: $ref: '#/definitions/github_com_addp_transfer_internal_models.CreateTaskRequestDoc' produces: - application/json responses: "201": description: 任务创建成功 | Task created successfully schema: $ref: '#/definitions/github_com_addp_transfer_internal_models.TransferTask' "400": description: 请求参数错误 | Bad request schema: additionalProperties: type: string type: object "401": description: 未授权 | Unauthorized schema: additionalProperties: type: string type: object "403": description: 无权访问 | Access denied schema: additionalProperties: type: string type: object "500": description: 服务器内部错误 | Internal server error schema: additionalProperties: type: string type: object "503": description: 任务授权服务不可用 | Task authorization service unavailable schema: additionalProperties: type: string type: object security: - BearerAuth: [] summary: 创建数据传输任务 | Create data transfer task tags: - 任务管理 | Task Management x-addp-auth-mode: delegated_tool x-addp-required-permissions: - transfer.task.create /task-definitions/{id}: delete: consumes: - application/json description: 删除指定任务。运行中的任务必须先停止;删除前会清理 task-owned capture/DLQ 资源,但保留统一 execution 历史和目标业务数据。| Delete a task. Running tasks must be stopped first; task-owned capture/DLQ resources are cleaned before deletion, while unified execution history and target business data are retained. parameters: - description: 任务ID | Task ID in: path name: id required: true type: integer produces: - application/json responses: "200": description: 删除成功 | Deleted successfully schema: additionalProperties: type: string type: object "400": description: 参数错误 | Bad request schema: additionalProperties: type: string type: object "409": description: 任务仍在运行 | Task is still running schema: additionalProperties: type: string type: object "500": description: 服务器错误 | Server error schema: additionalProperties: type: string type: object "503": description: 任务资源清理不可用或失败 | Task resource cleanup unavailable or failed schema: additionalProperties: type: string type: object security: - BearerAuth: [] summary: 删除任务 | Delete task tags: - 任务管理 | Task Management x-addp-auth-mode: permission x-addp-required-permissions: - transfer.task.delete get: consumes: - application/json description: 根据任务ID获取任务的详细信息 | Get detailed task information by task ID parameters: - description: 任务ID | Task ID in: path name: id required: true type: integer produces: - application/json responses: "200": description: 获取成功 | Retrieved successfully schema: $ref: '#/definitions/github_com_addp_transfer_internal_models.TransferTask' "400": description: 参数错误 | Bad request schema: additionalProperties: type: string type: object "404": description: 任务不存在 | Task not found schema: additionalProperties: type: string type: object "500": description: 服务器错误 | Server error schema: additionalProperties: type: string type: object security: - BearerAuth: [] summary: 获取任务详情 | Get task detail tags: - 任务管理 | Task Management x-addp-auth-mode: permission x-addp-required-permissions: - transfer.task.read put: consumes: - application/json description: 更新任务的配置信息。source 指向已入库 Meta item 时使用 config.source.locator 的 item_id;target 使用 parent_locator + name;不支持在任务配置中直接传递 endpoint attributes。| Update task configuration. Use config.source.locator item_id for persisted Meta items; target uses parent_locator + name; endpoint attributes are not accepted in task config. parameters: - description: 任务ID | Task ID in: path name: id required: true type: integer - description: 任务更新请求 | Task update request in: body name: request required: true schema: $ref: '#/definitions/github_com_addp_transfer_internal_models.UpdateTaskRequestDoc' produces: - application/json responses: "200": description: 更新成功 | Updated successfully schema: $ref: '#/definitions/github_com_addp_transfer_internal_models.TransferTask' "400": description: 参数错误 | Bad request schema: additionalProperties: type: string type: object "401": description: 当前用户凭据失效 | Current User credential is no longer valid schema: additionalProperties: type: string type: object "500": description: 服务器错误 | Server error schema: additionalProperties: type: string type: object "503": description: 任务授权服务不可用 | Task authorization service unavailable schema: additionalProperties: type: string type: object security: - BearerAuth: [] summary: 更新任务 | Update task tags: - TaskProvider x-addp-auth-mode: permission x-addp-conditional-permissions: - system.execution_authorization.create - transfer.task.execute x-addp-required-permissions: - transfer.task.update /task-definitions/{id}/cdc-metric-history: get: description: 当前租户按任务及明确代次读取最近七天的安全指标。窗口按整分钟归一,每区间最后一次历史采样,最多1000点;缺样为空,不用于告警重算。| Read safe metrics for a task generation in the current tenant over the last seven days. Minute-aligned intervals contain their last retained sample, at most 1000 points; gaps are null and do not re-evaluate alerts. parameters: - description: 任务 ID | Task ID in: path name: id required: true type: integer - description: 捕获代次 | Capture generation in: query minimum: 1 name: generation required: true type: integer - description: RFC3339 开始时间 | RFC3339 start time in: query name: start required: true type: string - description: RFC3339 结束时间 | RFC3339 end time in: query name: end required: true type: string produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/github_com_addp_transfer_internal_models.CaptureMetricHistoryResponse' "400": description: Bad Request schema: additionalProperties: type: string type: object "401": description: Unauthorized schema: additionalProperties: type: string type: object "403": description: Forbidden schema: additionalProperties: type: string type: object "404": description: Not Found schema: additionalProperties: type: string type: object "503": description: Service Unavailable schema: additionalProperties: type: string type: object security: - BearerAuth: [] summary: 读取 CDC 任务指标历史 | Read CDC task metric history tags: - 任务管理 | Task Management x-addp-auth-mode: permission x-addp-required-permissions: - transfer.task.read /task-definitions/{id}/dead-letters: get: description: 分页查询当前租户 owner task 的安全 DLQ 控制索引。只返回源位置、稳定错误、execution 与观测审计事实,不返回 Infra Kafka payload reference 或原始 key/value/headers。| List safe DLQ control-index records for the current tenant's owner task. Only source position, stable error, execution, and observation audit facts are returned; Infra Kafka payload references and raw key/value/headers are never exposed. parameters: - description: 任务ID | Task ID in: path name: id required: true type: integer - default: 1 description: 页码 | Page number in: query name: page type: integer - default: 20 description: 每页大小,最大100 | Page size, max 100 in: query name: page_size type: integer - description: 源分区精确过滤 | Exact source partition filter in: query name: source_partition type: string - description: 错误分类精确过滤 | Exact error category filter in: query name: error_category type: string - description: 错误码精确过滤 | Exact error code filter in: query name: error_code type: string - description: payload 可用状态精确过滤 | Exact payload availability filter in: query name: payload_available type: boolean produces: - application/json responses: "200": description: 死信记录分页结果 | Paginated dead-letter records schema: $ref: '#/definitions/github_com_addp_transfer_internal_models.DeadLetterListResponse' "400": description: 查询参数无效 | Invalid query parameters schema: additionalProperties: type: string type: object "404": description: 任务不存在 | Task not found schema: additionalProperties: type: string type: object "500": description: 服务器内部错误 | Internal server error schema: additionalProperties: type: string type: object security: - BearerAuth: [] summary: 获取任务死信记录 | List task dead-letter records tags: - 死信管理 | Dead-letter Management x-addp-auth-mode: permission x-addp-required-permissions: - transfer.task.read /task-definitions/{id}/dead-letters/{identity}: get: description: 按 identity 获取当前租户 owner task 下的安全 DLQ 控制索引详情。DLQ 不是 replay source,本接口不读取原始 payload。| Get a safe DLQ control-index detail by identity under the current tenant's owner task. DLQ is not a replay source and this endpoint does not read raw payload. parameters: - description: 任务ID | Task ID in: path name: id required: true type: integer - description: 死信记录 UUID | Dead-letter record UUID in: path name: identity required: true type: string produces: - application/json responses: "200": description: 死信记录详情 | Dead-letter record detail schema: $ref: '#/definitions/github_com_addp_transfer_internal_models.DeadLetterView' "400": description: 标识无效 | Invalid identity schema: additionalProperties: type: string type: object "404": description: 任务或死信记录不存在 | Task or dead-letter record not found schema: additionalProperties: type: string type: object "500": description: 服务器内部错误 | Internal server error schema: additionalProperties: type: string type: object security: - BearerAuth: [] summary: 获取死信记录详情 | Get dead-letter record detail tags: - 死信管理 | Dead-letter Management x-addp-auth-mode: permission x-addp-required-permissions: - transfer.task.read /task-definitions/{id}/executions: get: parameters: - description: 任务ID | Task ID in: path name: id required: true type: integer - default: 1 description: 页码 | Page in: query name: page type: integer - default: 20 description: 每页数量 | Page size in: query name: page_size type: integer produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/internal_api.ExecutionListResponse' "400": description: Bad Request schema: additionalProperties: type: string type: object "403": description: Forbidden schema: additionalProperties: type: string type: object "500": description: Internal Server Error schema: additionalProperties: type: string type: object security: - BearerAuth: [] summary: 获取任务执行列表 | List task executions tags: - 执行管理 | Execution Management x-addp-auth-mode: permission x-addp-required-permissions: - transfer.task.read /task-definitions/{id}/pause: post: description: bounded 任务关闭自身定时调度;continuous 任务将 desired_state 置为 paused 并通知 runtime 取消当前 execution;schema drift blocked CDC 需先检查专用结构变更请求。| Disable a bounded task schedule, or set a continuous task desired_state to paused and request runtime cancellation. A schema-drift-blocked CDC task must use the dedicated schema change request first. parameters: - description: 任务ID | Task ID in: path name: id required: true type: integer produces: - application/json responses: "200": description: OK schema: additionalProperties: type: string type: object "409": description: CDC 已永久停止或被结构变化阻塞 | CDC permanently stopped or blocked by schema change schema: additionalProperties: type: string type: object "500": description: Internal Server Error schema: additionalProperties: type: string type: object "503": description: 捕获控制面或任务授权服务不可用 | Capture control or task authorization service unavailable schema: additionalProperties: type: string type: object security: - BearerAuth: [] summary: 暂停任务 | Pause task tags: - 任务管理 | Task Management x-addp-auth-mode: permission x-addp-required-permissions: - transfer.task.update /task-definitions/{id}/replay: post: consumes: - application/json description: 从 owner task 的原业务 Kafka topic 按显式半开 partition/offset 范围读取,创建独立 bounded execution,并只写入不存在的新 PostgreSQL 隔离表。请求不能覆盖 source、mapping、key、policy 或原目标;replay 不修改主任务状态、主水位或主目标。| Read explicit half-open partition/offset ranges from the owner task's original business Kafka topic, create an independent bounded execution, and write only to a new non-existing isolated PostgreSQL table. The request cannot override source, mapping, key, policy, or the owner target; replay does not change the owner task state, committed position, or target. parameters: - description: 任务ID | Task ID in: path name: id required: true type: integer - description: 回放范围与新目标 | Replay ranges and new target in: body name: request required: true schema: $ref: '#/definitions/github_com_addp_transfer_internal_models.ReplayTaskRequest' produces: - application/json responses: "202": description: 已创建独立回放执行 | Independent replay execution created schema: $ref: '#/definitions/internal_api.ExecutionResponse' "400": description: 请求不符合 bounded replay v1 契约 | Request violates the bounded replay v1 contract schema: additionalProperties: type: string type: object "403": description: 需要当前租户用户身份 | Current tenant User identity required schema: additionalProperties: type: string type: object "404": description: 任务不存在 | Task not found schema: additionalProperties: type: string type: object "409": description: 范围超出保留边界或目标已存在 | Range is outside retention or target already exists schema: additionalProperties: type: string type: object "500": description: 服务器内部错误 | Internal server error schema: additionalProperties: type: string type: object "503": description: 回放运行时不可用 | Replay runtime unavailable schema: additionalProperties: type: string type: object security: - BearerAuth: [] summary: 创建 Kafka bounded replay | Create Kafka bounded replay tags: - 任务管理 | Task Management x-addp-auth-mode: permission x-addp-required-permissions: - transfer.task.execute /task-definitions/{id}/resume: post: description: bounded 任务恢复自身定时调度;continuous 任务创建新的 pending execution 并从 committed position 恢复;schema drift blocked CDC 必须先完成可用的 additive 审批,其他变化只能 Stop 后新建任务和目标表。| Re-enable a bounded task schedule, or create a new pending continuous execution that resumes from committed position. A schema-drift-blocked CDC task must first complete an eligible additive approval; other changes require stopping and recreating the task with a new target table. parameters: - description: 任务ID | Task ID in: path name: id required: true type: integer produces: - application/json responses: "200": description: OK schema: additionalProperties: type: string type: object "401": description: 当前用户凭据失效 | Current User credential is no longer valid schema: additionalProperties: type: string type: object "403": description: 需要当前租户用户身份 | Current tenant User identity required schema: additionalProperties: type: string type: object "409": description: CDC 已永久停止、被结构变化阻塞或存在未核清的外部清理操作(error_code=transfer_cleanup_unresolved) | CDC permanently stopped, blocked by schema change, or fenced by an unresolved external cleanup operation (error_code=transfer_cleanup_unresolved) schema: additionalProperties: type: string type: object "500": description: Internal Server Error schema: additionalProperties: type: string type: object "503": description: 捕获控制面不可用 | Capture control unavailable schema: additionalProperties: type: string type: object security: - BearerAuth: [] summary: 恢复任务 | Resume task tags: - 任务管理 | Task Management x-addp-auth-mode: permission x-addp-conditional-permissions: - system.execution_authorization.create - transfer.task.execute x-addp-required-permissions: - transfer.task.update /task-definitions/{id}/schema-change: get: description: 只读返回当前 task/generation 最新的 schema change request。只有当前阻塞消息实际包含的新增 nullable 非 geometry 字段可审批;Meta scan claim 状态只观测、不在 GET 中触发。| Read the latest schema change request for the current task/generation without side effects. Only nullable non-geometry fields present in the blocked record are approvable. Meta scan claim state is observed but never triggered by GET. parameters: - description: 任务ID | Task ID in: path name: id required: true type: integer produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/github_com_addp_transfer_internal_models.SchemaChangeRequestView' "404": description: 任务或结构变更请求不存在 | Task or schema change request not found schema: additionalProperties: type: string type: object "500": description: 服务器内部错误 | Internal server error schema: additionalProperties: type: string type: object security: - BearerAuth: [] summary: 获取 CDC 结构变更请求 | Get CDC schema change request tags: - 任务管理 | Task Management x-addp-auth-mode: permission x-addp-required-permissions: - transfer.task.read /task-definitions/{id}/schema-change/approve: post: consumes: - application/json description: 显式确认全部新增源字段的目标映射,幂等新增 PostgreSQL nullable 列并提交新的 mapping revision。成功后任务进入 paused,必须使用既有 Resume API 从原 committed offset 恢复;响应同时返回 Meta scan 的 pending/running/success/failed 状态和 attempt。| Explicitly approve target mappings for every added source field, idempotently add nullable PostgreSQL columns, and commit a new mapping revision. The task becomes paused and must be resumed through the existing Resume API from the original committed offset. The response also includes the pending/running/success/failed Meta scan status and attempt. parameters: - description: 任务ID | Task ID in: path name: id required: true type: integer - description: 新增字段映射 | Added field mappings in: body name: request required: true schema: $ref: '#/definitions/github_com_addp_transfer_internal_models.ApproveSchemaChangeRequest' produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/github_com_addp_transfer_internal_models.SchemaChangeRequestView' "400": description: 请求格式无效 | Invalid request schema: additionalProperties: type: string type: object "404": description: 任务或结构变更请求不存在 | Task or schema change request not found schema: additionalProperties: type: string type: object "409": description: 变化不可 additive 或审批与当前事实冲突 | Change is not additive or approval conflicts with current facts schema: additionalProperties: type: string type: object "500": description: 服务器内部错误 | Internal server error schema: additionalProperties: type: string type: object "503": description: 结构变更控制面不可用 | Schema change control unavailable schema: additionalProperties: type: string type: object security: - BearerAuth: [] summary: 审批 CDC additive 结构变更 | Approve CDC additive schema change tags: - 任务管理 | Task Management x-addp-auth-mode: permission x-addp-required-permissions: - transfer.task.update /task-definitions/{id}/start: post: consumes: - application/json description: |- 委托 transfer.task.start 首次仅申请运行审批;用户在 Agent 界面手动批准后,以原审批引用和指纹一次性消费,配置变化拒绝;只允许无调度的 bounded/snapshot/native table,replace/append,不接受特殊角色保护选择。| Delegated transfer.task.start first requests owner approval. After the user manually approves in Agent, consume the original reference and fingerprint once; changed configuration is rejected. Only unscheduled bounded/snapshot/native tables with replace/append and no special role protection choices are allowed. 启动任务执行并创建执行记录;数据库 CDC 首次启动会先创建并确认 capture generation,普通中断恢复时复用同一 generation;schema drift blocked 任务必须先完成可用的 additive 审批,否则只能 Stop。| Start task execution and create an execution record. Database CDC provisions and verifies its capture generation before the first runtime session and reuses that generation for normal interruption recovery. A schema-drift-blocked task must first complete an eligible additive approval or be stopped. parameters: - description: 任务ID | Task ID in: path name: id required: true type: integer - description: 委托首次为空;恢复仅提交原审批引用和指纹 | Empty for initial delegation; resume contains only original approval reference and fingerprint in: body name: request schema: $ref: '#/definitions/github_com_addp_transfer_internal_models.StartTaskRequest' produces: - application/json responses: "200": description: 启动成功,返回执行记录 | Started successfully, returns execution record schema: $ref: '#/definitions/internal_api.ExecutionResponse' "202": description: 需要用户手动批准运行 | Explicit user run approval required schema: $ref: '#/definitions/github_com_addp_transfer_internal_models.RunApprovalRequired' "400": description: 参数错误或任务已在运行 | Bad request or task already running schema: additionalProperties: type: string type: object "403": description: 需要当前租户用户身份 | Current tenant User identity required schema: additionalProperties: type: string type: object "409": description: CDC 已永久停止、被结构变化阻塞或存在未核清的外部清理操作(error_code=transfer_cleanup_unresolved) | CDC permanently stopped, blocked by schema change, or fenced by an unresolved external cleanup operation (error_code=transfer_cleanup_unresolved) schema: additionalProperties: type: string type: object "500": description: 服务器错误 | Server error schema: additionalProperties: type: string type: object security: - BearerAuth: [] summary: 启动任务 | Start task tags: - 任务管理 | Task Management x-addp-auth-mode: permission x-addp-conditional-permissions: - transfer.task.read - system.execution_authorization.create - develop.data_read.execute - develop.data_write.execute x-addp-required-permissions: - transfer.task.execute /task-definitions/{id}/stop: post: consumes: - application/json description: 普通业务 Kafka continuous stop 保留 committed position;数据库 CDC stop 是不可逆终态,必须提交 confirmed=true 且 confirmation_text 与任务名称完全一致,并删除 ADDP-owned connector、provider 专属捕获资源、内部 topic、group 和 ACL。| Business Kafka continuous stop keeps committed positions. Database CDC stop is irreversible and requires confirmed=true plus confirmation_text exactly matching the task name; ADDP-owned connector, provider-specific capture resources, internal topics, group, and ACLs are deleted. parameters: - description: 任务ID | Task ID in: path name: id required: true type: integer - description: CDC 不可逆停止确认;普通 Kafka continuous 可省略 | Irreversible CDC stop confirmation; optional for business Kafka continuous in: body name: request schema: $ref: '#/definitions/github_com_addp_transfer_internal_models.StopTaskRequest' produces: - application/json responses: "200": description: OK schema: additionalProperties: type: string type: object "400": description: Bad Request schema: additionalProperties: type: string type: object "409": description: CDC 已永久停止 | CDC permanently stopped schema: additionalProperties: type: string type: object "500": description: Internal Server Error schema: additionalProperties: type: string type: object "503": description: 捕获控制面不可用 | Capture control unavailable schema: additionalProperties: type: string type: object security: - BearerAuth: [] summary: 停止连续任务 | Stop continuous task tags: - 任务管理 | Task Management x-addp-auth-mode: permission x-addp-required-permissions: - transfer.task.update /task-definitions/statistics: get: consumes: - application/json description: 获取当前租户的任务统计数据(各状态任务数量等)| Get task statistics for the current tenant (task counts by status, etc.) produces: - application/json responses: "200": description: 统计信息 | Statistics schema: $ref: '#/definitions/github_com_addp_transfer_internal_models.TaskStatistics' "500": description: 服务器错误 | Server error schema: additionalProperties: type: string type: object security: - BearerAuth: [] summary: 获取任务统计信息 | Get task statistics tags: - 任务管理 | Task Management x-addp-auth-mode: permission x-addp-required-permissions: - transfer.task.read /task-provider/executions/{execution_id}: get: parameters: - description: 执行ID | Execution ID in: path name: execution_id required: true type: string produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/taskprovider.ExecutionStatusResponse' "404": description: Not Found schema: additionalProperties: type: string type: object security: - BearerAuth: [] summary: 获取 TaskProvider 执行状态 | Get TaskProvider execution status tags: - TaskProvider x-addp-auth-mode: permission x-addp-required-permissions: - transfer.task_provider.read /task-provider/tasks: get: description: 仅向 Orchestrator Runtime 返回可编排的 bounded sync 任务。| Return only orchestratable bounded sync tasks to the Orchestrator Runtime. parameters: - default: 1 description: 页码 | Page number in: query name: page type: integer - default: 20 description: 每页大小 | Page size in: query name: page_size type: integer - description: 任务类型,固定为 sync | Task type, fixed to sync in: query name: task_type type: string produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/github_com_addp_transfer_internal_models.ListProviderTasksResponse' "400": description: Bad Request schema: additionalProperties: type: string type: object "500": description: Internal Server Error schema: additionalProperties: type: string type: object security: - BearerAuth: [] summary: 获取 TaskProvider 任务列表 | List TaskProvider tasks tags: - TaskProvider x-addp-auth-mode: permission x-addp-required-permissions: - transfer.task_provider.read /task-provider/tasks/{task_type}/{id}: get: description: 按标准 TaskProvider 路径获取 Transfer 任务详情;task_type 仅支持 sync。| Get Transfer task detail through the standard TaskProvider path; task_type only supports sync. parameters: - description: 任务类型,固定为 sync | Task type, fixed to sync in: path name: task_type required: true type: string - description: 任务ID | Task ID in: path name: id required: true type: integer produces: - application/json responses: "200": description: 任务详情 | Task detail schema: $ref: '#/definitions/github_com_addp_transfer_internal_models.TransferTask' "400": description: 参数错误 | Bad request schema: additionalProperties: type: string type: object "404": description: 任务不存在 | Task not found schema: additionalProperties: type: string type: object security: - BearerAuth: [] summary: 获取 TaskProvider 任务详情 | Get TaskProvider task detail tags: - TaskProvider x-addp-auth-mode: permission x-addp-required-permissions: - transfer.task_provider.read /task-provider/tasks/{task_type}/{id}/execute: post: consumes: - application/json description: 仅接受 addp-orchestrator 以父 execution 血缘触发;请求必须提供 source=orchestrator 和 parent_execution_id。允许目标覆盖的任务可通过可选 target_locator 覆盖本次执行目标。| Only accepts addp-orchestrator execution-lineage invocation; source=orchestrator and parent_execution_id are required. Target-overridable tasks may receive an optional target_locator for this execution. parameters: - description: 任务类型,固定为 sync | Task type, fixed to sync in: path name: task_type required: true type: string - description: 任务ID | Task ID in: path name: id required: true type: integer - description: TaskProvider 执行请求 | TaskProvider execution request in: body name: request required: true schema: $ref: '#/definitions/internal_api.ProviderExecuteRequest' produces: - application/json responses: "202": description: 执行记录 | Execution schema: $ref: '#/definitions/internal_api.ProviderExecuteResponse' "400": description: 参数错误 | Bad request schema: additionalProperties: type: string type: object "500": description: 服务器错误 | Server error schema: additionalProperties: type: string type: object security: - BearerAuth: [] summary: 执行 TaskProvider Transfer 任务 | Execute TaskProvider Transfer task tags: - TaskProvider x-addp-auth-mode: permission x-addp-required-permissions: - transfer.task_provider.execute securityDefinitions: BearerAuth: in: header name: Authorization type: apiKey swagger: "2.0"