Add execute event block API and rollforward mechanics models#120
Merged
Conversation
- Introduced `ExecuteEventBlockResponse` and `ExecuteEventBlockResponseQbErrorType0` models to handle the response structure of the execute event block API. - Added `JournalEntryLineItemInputMetadataType0` and `LineItemMetadataPredicate` models for enhanced metadata handling in journal entries. - Created `OperationEnvelopeExecuteEventBlockResponse` and `OperationEnvelopeExecuteEventBlockResponseStatus` to manage operation envelope responses. - Implemented `RollforwardMechanics` and `RollforwardMechanicsValidationMode` for rollforward attribution mechanics. - Added `UpdateRollforwardArm` and `UpdateRollforwardRequest` models to facilitate updates to rollforward blocks, including validation modes. - Introduced `UpdateRollforwardRequestValidationModeType0` for validation mode handling in rollforward requests.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Introduces support for the execute event block API operation and a comprehensive set of rollforward mechanics models to the
robosystems_clientSDK. This feature enables clients to execute event blocks against the RoboLedger extension and express rollforward logic (create, update, delete) for information blocks.Key Accomplishments
New API Operation
op_execute_event_block: New endpoint for executing event blocks within the RoboLedger extensions API, including full request/response lifecycle support.Rollforward Mechanics Models
RollforwardMechanics: Core model defining how rollforward operations are structured, including validation mode configuration.CreateRollforwardArm/CreateRollforwardRequest: Models for creating new information blocks via rollforward, with validation mode support.UpdateRollforwardArm/UpdateRollforwardRequest: Models for updating existing information blocks via rollforward, with optional validation mode.DeleteRollforwardArm/DeleteRollforwardRequest: Models for deleting information blocks via rollforward.Event Block Request/Response Models
ExecuteEventBlockRequestandExecuteEventBlockResponse: Full request/response models including error handling (qb_errorunion type).OperationEnvelopeExecuteEventBlockResponse: Envelope wrapper with status enum for standardized API responses.Supporting Models
AttributionFilter: New model for filtering by attribution criteria.LineItemMetadataPredicate: Model for expressing predicates over line item metadata.JournalEntryLineItemInputMetadataType0: Typed metadata support for journal entry line item inputs.Modifications to Existing Code
op_create_information_block,op_delete_information_block,op_update_information_block: Updated to align with new API patterns (likely signature or import changes).ArtifactResponse: Extended with additional fields or updated serialization.JournalEntryLineItemInput: Enhanced with optional metadata support.models/__init__.py: All new models properly exported (48 new lines of imports/exports).Breaking Changes
create,update,delete) and theArtifactResponse/JournalEntryLineItemInputmodels may introduce breaking changes for consumers relying on the previous API signatures or serialization shapes. Review the diff for these 4 modified files carefully.Testing Notes
op_execute_event_blockoperation correctly serializes requests and deserializes responses, including the union-typedqb_errorfield.OperationEnvelopewrapper to confirm status enum mapping works as expected.Infrastructure Considerations
🤖 Generated with Claude Code
Branch Info:
feature/rollforward-ibmainCo-Authored-By: Claude noreply@anthropic.com