modernedi-sdk 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- modernedi_sdk-0.1.0/.gitignore +8 -0
- modernedi_sdk-0.1.0/LICENSE +201 -0
- modernedi_sdk-0.1.0/PKG-INFO +172 -0
- modernedi_sdk-0.1.0/README.md +153 -0
- modernedi_sdk-0.1.0/examples/configuration_plan.py +17 -0
- modernedi_sdk-0.1.0/pyproject.toml +25 -0
- modernedi_sdk-0.1.0/src/modernedi/__init__.py +10 -0
- modernedi_sdk-0.1.0/src/modernedi/_transport.py +292 -0
- modernedi_sdk-0.1.0/src/modernedi/_wire.py +9 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/__init__.py +1 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/contract.json +724 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/__init__.py +403 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/adapter_target.py +107 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/any_quantifier.py +93 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/as2_connection_configuration.py +115 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/as2_connection_list_response.py +100 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/as2_connection_resolved_environments.py +91 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/as2_connection_response.py +96 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/as2_environment_profile.py +110 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/as2_environment_profile_x12_sender.py +109 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/as2_functional_acknowledgment_settings.py +87 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/as2_mdn_settings.py +79 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/as2_network_capability.py +99 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/as2_network_profile.py +113 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/as2_outbound_transport_settings.py +135 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/as2_partner_environment.py +91 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/as2_partner_environment_resolved.py +104 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/as2_profile.py +113 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/as2_profile_certificates.py +109 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/as2_profile_environments.py +99 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/as2_profile_response.py +96 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/as2_public_certificate.py +162 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/as2_resolved_functional_acknowledgment_settings.py +97 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/as2_resolved_mdn_settings.py +92 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/as2_resolved_outbound_settings.py +133 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/assure_stage.py +94 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/business_effective_timestamp.py +90 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/checkpoint_stage.py +103 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/configuration_applied_verification_response.py +88 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/configuration_apply_operation.py +166 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/configuration_apply_operation_history_entry.py +156 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/configuration_apply_operation_history_response.py +95 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/configuration_apply_operation_response.py +83 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/configuration_apply_operation_status.py +28 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/configuration_apply_request.py +110 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/configuration_as2_connection_resource_document.py +99 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/configuration_as2_connection_spec.py +110 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/configuration_as2_environment.py +129 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/configuration_as2_environments.py +91 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/configuration_as2_file_environment.py +107 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/configuration_bundle_manifest.py +107 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/configuration_changed_by.py +87 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/configuration_context_response.py +89 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/configuration_context_response_api_key.py +90 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/configuration_context_response_workspace.py +78 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/configuration_desired_file.py +127 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/configuration_desired_file_content.py +146 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/configuration_document_api_version.py +27 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/configuration_export_file.py +127 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/configuration_export_file_content.py +160 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/configuration_export_response.py +115 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/configuration_external_repository.py +167 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/configuration_external_repository_import_verification.py +94 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/configuration_external_repository_last_error.py +79 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/configuration_external_repository_response.py +85 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/configuration_import_verification_response.py +88 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/configuration_manifest_file.py +87 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/configuration_manifest_resource.py +93 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/configuration_mapping_output.py +97 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/configuration_mapping_resource_document.py +99 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/configuration_mapping_runtime.py +79 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/configuration_mapping_spec.py +134 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/configuration_mapping_transform.py +105 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/configuration_partner_resource_document.py +99 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/configuration_partner_separator_set.py +89 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/configuration_partner_spec.py +138 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/configuration_partner_spec_x12.py +127 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/configuration_plan_action.py +29 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/configuration_plan_advisory_state_file.py +127 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/configuration_plan_affected_run.py +101 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/configuration_plan_affected_scenario.py +116 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/configuration_plan_current_value.py +96 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/configuration_plan_desired_value.py +85 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/configuration_plan_diagnostic.py +103 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/configuration_plan_file.py +129 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/configuration_plan_operation.py +98 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/configuration_plan_request.py +89 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/configuration_plan_resource_identity.py +81 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/configuration_plan_response.py +171 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/configuration_plan_scenario_definition.py +81 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/configuration_plan_scenario_resource.py +84 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/configuration_plan_summary.py +84 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/configuration_plan_validation_context.py +112 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/configuration_resource_document.py +174 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/configuration_resource_kind.py +31 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/configuration_resource_metadata.py +78 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/configuration_scenario_binding_actor_binding.py +91 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/configuration_scenario_binding_definition_reference.py +112 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/configuration_scenario_binding_endpoint.py +129 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/configuration_scenario_binding_fact_source.py +107 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/configuration_scenario_binding_fact_source_binding.py +91 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/configuration_scenario_binding_metadata.py +94 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/configuration_scenario_binding_resource_document.py +105 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/configuration_scenario_binding_resource_document_spec.py +81 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/configuration_scenario_binding_spec.py +111 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/configuration_scenario_binding_step_binding.py +107 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/configuration_scenario_binding_syntax_tree_reference.py +94 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/configuration_scenario_binding_target.py +143 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/configuration_scenario_binding_x12_mapper_expression_source.py +94 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/configuration_scenario_definition_actor.py +85 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/configuration_scenario_definition_assertion.py +105 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/configuration_scenario_definition_assurance.py +86 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/configuration_scenario_definition_assurance_requirement.py +97 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/configuration_scenario_definition_branch.py +113 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/configuration_scenario_definition_branch_alternative.py +113 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/configuration_scenario_definition_checkpoint.py +85 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/configuration_scenario_definition_correlation.py +105 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/configuration_scenario_definition_effective_at.py +129 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/configuration_scenario_definition_fact_declaration.py +119 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/configuration_scenario_definition_fact_operand.py +106 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/configuration_scenario_definition_fact_projection.py +31 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/configuration_scenario_definition_literal_operand.py +97 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/configuration_scenario_definition_match_quantifier.py +143 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/configuration_scenario_definition_metadata.py +103 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/configuration_scenario_definition_occurrence.py +86 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/configuration_scenario_definition_occurrence_closure.py +143 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/configuration_scenario_definition_occurrence_matching.py +143 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/configuration_scenario_definition_parameter.py +100 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/configuration_scenario_definition_parameter_operand.py +94 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/configuration_scenario_definition_pipeline_stage.py +185 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/configuration_scenario_definition_predicate.py +105 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/configuration_scenario_definition_resource_document.py +105 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/configuration_scenario_definition_resource_document_metadata.py +85 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/configuration_scenario_definition_resource_document_spec.py +81 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/configuration_scenario_definition_revision_effect.py +99 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/configuration_scenario_definition_scalar_type.py +32 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/configuration_scenario_definition_spec.py +146 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/configuration_scenario_definition_step.py +141 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/configuration_scenario_definition_transaction.py +103 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/configuration_scenario_definition_transition.py +146 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/configuration_scenario_definition_value_operand.py +143 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/configuration_scenario_definition_value_type.py +34 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/configuration_scenario_run_selection_response.py +102 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/configuration_snapshot_resource.py +102 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/configuration_snapshot_state.py +109 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/configuration_verification_case_result.py +139 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/configuration_verification_identity.py +119 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/configuration_verification_mapping.py +105 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/configuration_verification_request.py +100 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/configuration_verification_response.py +83 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/configuration_verification_run.py +146 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/configuration_verification_syntax_tree.py +116 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/correlation_matching.py +104 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/error_object.py +98 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/error_response.py +96 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/every_quantifier.py +93 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/exact_count_quantifier.py +96 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/exchange_stage.py +94 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/expected_count_closure.py +94 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/extract_stage.py +96 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/filterable_functional_acknowledgment_status.py +31 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/filterable_implementation_acknowledgment_status.py +31 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/filterable_transaction_mapping_status.py +31 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/filterable_transaction_mdn_status.py +33 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/fixed_closure.py +84 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/functional_acknowledgment_detail.py +202 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/functional_acknowledgment_group_outcome.py +153 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/functional_acknowledgment_group_summary.py +143 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/functional_acknowledgment_outcome.py +163 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/functional_acknowledgment_status.py +31 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/functional_acknowledgment_summary.py +100 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/functional_acknowledgment_transaction_set_outcome.py +135 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/generated_x12_request.py +96 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/implementation_acknowledgment_detail.py +191 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/implementation_acknowledgment_evaluation_scope.py +29 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/implementation_acknowledgment_group_outcome.py +153 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/implementation_acknowledgment_outcome.py +163 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/implementation_acknowledgment_status.py +31 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/implementation_acknowledgment_summary.py +110 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/implementation_acknowledgment_transaction_set_outcome.py +135 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/integration_change_event.py +119 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/integration_change_events_response.py +118 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/integration_change_field.py +34 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/integration_change_transaction_reference.py +99 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/integration_partner.py +159 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/integration_partner_x12.py +127 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/map_stage.py +94 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/mapped_output_ack_request.py +90 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/mapped_output_ack_response.py +123 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/mapped_output_acknowledgment.py +112 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/mapped_output_bulk_ack_request.py +99 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/mapped_output_bulk_ack_request_acks_inner.py +92 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/mapped_output_bulk_ack_response.py +106 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/mapped_output_mapping.py +136 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/mapped_output_message.py +200 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/mapped_output_queue_response.py +116 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/mapped_output_webhook_status.py +212 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/mapped_output_webhook_status_response.py +96 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/mapped_output_webhook_test_response.py +133 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/mapped_output_webhook_update_request.py +87 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/mapped_output_webhook_update_response.py +100 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/mapping_business_key.py +93 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/mapping_configuration.py +143 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/mapping_configuration_core.py +138 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/mapping_configuration_revision_detail.py +134 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/mapping_configuration_revision_list_response.py +120 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/mapping_configuration_revision_response.py +102 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/mapping_configuration_revision_summary.py +134 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/mapping_configuration_revision_transform_detail.py +101 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/mapping_configuration_revision_transform_summary.py +99 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/mapping_configuration_snapshot.py +144 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/mapping_delivered_metadata.py +93 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/mapping_list_response.py +100 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/mapping_output.py +94 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/mapping_output_configuration.py +99 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/mapping_output_delivery.py +29 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/mapping_purpose.py +28 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/mapping_regression_case.py +139 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/mapping_response.py +96 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/mapping_runtime_failure_response.py +96 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/mapping_runtime_failures_response.py +112 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/mapping_runtime_health_response.py +121 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/mapping_runtime_health_totals.py +97 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/mapping_runtime_mapping_health.py +165 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/mapping_runtime_transaction_reference.py +92 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/mapping_transform.py +102 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/maximum_reached_closure.py +84 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/modern_edi_scenario_binding_v1.py +117 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/modern_edi_scenario_definition_v1.py +117 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/observation_only_target.py +84 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/outbound_business_key.py +97 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/outbound_business_key_value.py +153 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/outbound_preview_response.py +121 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/outbound_preview_response_mapping.py +100 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/outbound_preview_response_partner.py +92 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/outbound_transform_envelope.py +104 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/outbound_transform_envelope_input.py +186 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/partner_capabilities_response.py +102 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/partner_capabilities_response_capabilities.py +107 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/partner_configuration.py +159 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/partner_draft_x12_identities.py +104 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/partner_draft_x12_identity.py +94 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/partner_endpoint.py +94 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/partner_list_response.py +100 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/partner_mapping_capability.py +131 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/partner_response.py +96 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/partner_x12_identities.py +104 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/partner_x12_identity.py +95 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/positional_matching.py +104 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/prepare_stage.py +96 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/preview_outbound_x12_request.py +182 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/previous_occurrence_matching.py +104 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/previous_occurrence_matching_quantifiers_inner.py +93 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/related_transactions_response.py +108 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/runtime_mapping_target.py +94 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/runtime_publication.py +101 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/scenario_context_binding.py +98 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/scenario_definition_identity.py +112 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/scenario_evidence.py +120 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/scenario_evidence_authority.py +116 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/scenario_evidence_binding.py +131 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/scenario_evidence_check.py +127 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/scenario_evidence_check_subject.py +125 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/scenario_evidence_claim.py +102 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/scenario_evidence_counts.py +80 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/scenario_evidence_digest.py +87 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/scenario_evidence_failure.py +113 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/scenario_evidence_failure_error.py +94 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/scenario_evidence_mapping_authority.py +127 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/scenario_evidence_occurrence.py +94 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/scenario_evidence_operations.py +102 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/scenario_evidence_partner_authority.py +96 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/scenario_evidence_reference.py +80 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/scenario_evidence_report.py +117 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/scenario_evidence_run.py +157 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/scenario_evidence_run_binding.py +87 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/scenario_evidence_step.py +140 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/scenario_evidence_successful_transition.py +118 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/scenario_evidence_syntax_tree_authority.py +130 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/scenario_evidence_target_authority.py +143 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/scenario_evidence_target_authority_one_of.py +103 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/scenario_evidence_target_authority_one_of1.py +103 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/scenario_evidence_target_authority_one_of2.py +108 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/scenario_graph_assurances.py +123 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/scenario_graph_check.py +124 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/scenario_graph_check_subject.py +125 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/scenario_graph_counts.py +80 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/scenario_graph_evidence_reference.py +80 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/scenario_graph_execution.py +112 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/scenario_graph_guidance.py +117 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/scenario_graph_occurrence.py +151 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/scenario_graph_retry.py +89 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/scenario_graph_step.py +150 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/scenario_graph_step_occurrence.py +80 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/scenario_operation.py +107 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/scenario_run.py +246 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/scenario_run_actor.py +129 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/scenario_run_actor_one_of.py +89 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/scenario_run_actor_one_of1.py +80 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/scenario_run_collection.py +121 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/scenario_run_command_response.py +89 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/scenario_run_observation_request.py +91 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/scenario_run_parameter_scalar.py +152 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/scenario_run_parameter_value.py +133 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/scenario_run_summary.py +162 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/scenario_run_summary_guidance.py +143 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/scenario_run_summary_guidance_one_of.py +96 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/scenario_run_summary_guidance_one_of1.py +98 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/scenario_run_summary_guidance_one_of2.py +96 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/scenario_run_timeline_operation.py +143 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/scenario_run_timeline_operation_error.py +80 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/scenario_run_timeline_response.py +114 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/scenario_run_view_response.py +83 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/send_success_response.py +94 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/start_scenario_run_request.py +111 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/start_scenario_run_request_binding.py +96 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/stored_transaction_mapped_output.py +145 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/syntax_tree_catalog_binding.py +125 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/technical_acknowledgment_detail.py +149 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/technical_acknowledgment_outcome.py +139 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/technical_acknowledgment_status.py +33 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/time_modern_edi_observed_the_revision.py +84 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/transaction_attention_freshness.py +121 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/transaction_attention_reason.py +36 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/transaction_attention_summary.py +103 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/transaction_attention_summary_reason_counts.py +109 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/transaction_business_key.py +97 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/transaction_control_numbers.py +102 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/transaction_detail.py +188 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/transaction_detail_response.py +99 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/transaction_document.py +108 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/transaction_document_base.py +127 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/transaction_document_metadata.py +203 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/transaction_document_response.py +99 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/transaction_documents_response.py +103 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/transaction_edi_metadata.py +116 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/transaction_environment_value.py +28 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/transaction_event.py +230 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/transaction_event_base.py +114 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/transaction_events_response.py +103 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/transaction_functional_acknowledgment_document.py +145 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/transaction_functional_acknowledgment_document_metadata.py +164 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/transaction_functional_acknowledgment_event.py +125 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/transaction_functional_acknowledgment_event_details.py +164 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/transaction_functional_acknowledgment_mdn_document.py +145 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/transaction_functional_acknowledgment_mdn_event.py +125 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/transaction_functional_acknowledgment_mdn_metadata.py +102 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/transaction_http_response_document.py +145 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/transaction_implementation_acknowledgment_document.py +145 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/transaction_implementation_acknowledgment_document_metadata.py +144 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/transaction_implementation_acknowledgment_event.py +125 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/transaction_implementation_acknowledgment_event_details.py +144 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/transaction_implementation_acknowledgment_mdn_document.py +145 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/transaction_implementation_acknowledgment_mdn_event.py +125 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/transaction_implementation_acknowledgment_mdn_metadata.py +102 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/transaction_lifecycle_event.py +125 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/transaction_list_response.py +124 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/transaction_mapped_output.py +146 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/transaction_mapped_output_delivery.py +256 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/transaction_mapped_output_document.py +146 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/transaction_mapped_output_document_metadata.py +139 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/transaction_mapped_output_event.py +125 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/transaction_mapped_output_mapping.py +167 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/transaction_mapped_output_metadata.py +139 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/transaction_mapping_attempt.py +272 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/transaction_mapping_event.py +125 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/transaction_mapping_status.py +118 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/transaction_mapping_status_summary.py +108 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/transaction_mdn.py +207 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/transaction_mdn_document.py +143 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/transaction_mdn_document_metadata.py +171 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/transaction_mdn_event.py +125 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/transaction_mdn_event_details.py +150 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/transaction_mdn_status.py +33 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/transaction_primary_mdn_document.py +145 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/transaction_replay.py +192 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/transaction_replay_error.py +102 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/transaction_replay_request.py +110 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/transaction_replay_response.py +106 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/transaction_set.py +102 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/transaction_summary.py +351 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/transaction_technical_acknowledgment_document.py +145 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/transaction_technical_acknowledgment_document_metadata.py +113 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/transaction_technical_acknowledgment_event.py +125 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/transaction_technical_acknowledgment_event_details.py +133 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/transaction_timeline_summary.py +307 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/transaction_watch_response.py +99 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/transaction_window.py +116 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/transaction_x12_document.py +141 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/transaction_x12_validation_response.py +103 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/usage_day.py +97 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/usage_hour.py +106 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/usage_partner_breakdown.py +98 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/usage_response.py +96 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/usage_signals.py +121 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/usage_snapshot.py +192 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/workspace_endpoint.py +84 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/x12_element_preview.py +111 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/x12_element_validation_error.py +125 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/x12_functional_group_summary.py +116 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/x12_functional_group_validation_error.py +106 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/x12_interchange_summary.py +119 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/x12_segment_preview.py +107 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/x12_segment_validation_error.py +112 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/x12_separator_summary.py +102 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/x12_transaction_preview.py +103 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/x12_transaction_set_reference.py +92 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/x12_transaction_sets_response.py +102 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/x12_transaction_summary.py +110 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/x12_transaction_validation_error.py +108 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/x12_validation_request.py +90 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/x12_validation_response.py +96 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/x12_validation_result.py +170 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/models/x12_versions_response.py +92 -0
- modernedi_sdk-0.1.0/src/modernedi/generated/operations.py +1315 -0
- modernedi_sdk-0.1.0/src/modernedi/pagination.py +46 -0
- modernedi_sdk-0.1.0/src/modernedi/py.typed +0 -0
- modernedi_sdk-0.1.0/src/modernedi/webhook.py +87 -0
- modernedi_sdk-0.1.0/tests/fixtures/cases.json +4026 -0
- modernedi_sdk-0.1.0/tests/test_contract.py +195 -0
- modernedi_sdk-0.1.0/tests/test_helpers.py +84 -0
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright 2026 ModernEDI
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: modernedi-sdk
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Typed, server-side Python client for the ModernEDI Integration API
|
|
5
|
+
Project-URL: Documentation, https://www.modernedi.com/integration-api/
|
|
6
|
+
Project-URL: Source, https://github.com/modernedi/python-sdk
|
|
7
|
+
Project-URL: Issues, https://github.com/modernedi/python-sdk/issues
|
|
8
|
+
Author-email: ModernEDI <support@modernedi.com>
|
|
9
|
+
License-Expression: Apache-2.0
|
|
10
|
+
License-File: LICENSE
|
|
11
|
+
Classifier: Development Status :: 3 - Alpha
|
|
12
|
+
Classifier: Programming Language :: Python :: 3
|
|
13
|
+
Classifier: Typing :: Typed
|
|
14
|
+
Requires-Python: >=3.10
|
|
15
|
+
Requires-Dist: httpx<1,>=0.28
|
|
16
|
+
Requires-Dist: pydantic<3,>=2.11
|
|
17
|
+
Requires-Dist: typing-extensions<5,>=4.12
|
|
18
|
+
Description-Content-Type: text/markdown
|
|
19
|
+
|
|
20
|
+
# ModernEDI Python SDK
|
|
21
|
+
|
|
22
|
+
Server-side Python clients for the [ModernEDI Integration API](https://www.modernedi.com/integration-api/),
|
|
23
|
+
including mappings, mapped outputs, transactions, configuration-as-code, and optional scenarios.
|
|
24
|
+
|
|
25
|
+
**Preview 0.1.0:** the API may evolve before 1.0. Install the official package from PyPI:
|
|
26
|
+
|
|
27
|
+
```sh
|
|
28
|
+
python -m pip install modernedi-sdk==0.1.0
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
Requires Python 3.10 or newer. Both synchronous and native asynchronous clients are included.
|
|
32
|
+
|
|
33
|
+
## Get started
|
|
34
|
+
|
|
35
|
+
Create an Integration API key in your workspace with only the scopes your application needs.
|
|
36
|
+
Keep it in a server-side secret store; never embed it in browser, mobile, or desktop
|
|
37
|
+
distributions, or commit it to Git or logs.
|
|
38
|
+
See [Integration API authentication](https://www.modernedi.com/integration-api/).
|
|
39
|
+
|
|
40
|
+
```python
|
|
41
|
+
import os
|
|
42
|
+
from modernedi import ModernEdiClient
|
|
43
|
+
|
|
44
|
+
with ModernEdiClient(api_key=os.environ["MODERNEDI_API_KEY"]) as client:
|
|
45
|
+
response = client.partners.list_integration_partners()
|
|
46
|
+
print(response.data)
|
|
47
|
+
print("Support request ID:", response.request_id)
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
An incoming or outgoing mapping is enough to process a partner document. You do not need a
|
|
51
|
+
scenario, Git repository, or configuration runner to use this client. Scenarios add conversation
|
|
52
|
+
verification; configuration-as-code adds repeatable review and deployment of those same resources.
|
|
53
|
+
|
|
54
|
+
The client groups match the TypeScript SDK: `partners`, `mappings`, `mapped_outputs`,
|
|
55
|
+
`transactions`, `outbound_as2`, `as2_connections`, `configuration_as_code`, `scenario_runs`,
|
|
56
|
+
`mapping_runtime`, `integration_events`, `account`, and `x12`. Methods use snake_case and
|
|
57
|
+
keyword arguments. Their parameters and models come from the same OpenAPI contract.
|
|
58
|
+
|
|
59
|
+
```python
|
|
60
|
+
from modernedi import AsyncModernEdiClient
|
|
61
|
+
|
|
62
|
+
async def list_partners(key):
|
|
63
|
+
async with AsyncModernEdiClient(api_key=key) as client:
|
|
64
|
+
return (await client.partners.list_integration_partners()).data
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
Reuse one client for connection pooling. Context managers close owned clients. If you inject an
|
|
68
|
+
HTTPX client using `http_client=`, you remain responsible for closing it; do not put authentication
|
|
69
|
+
in its default headers. The SDK chooses exactly one `api_key` or `bearer_token`, does not follow
|
|
70
|
+
redirects, verifies TLS by default, and uses a 30-second per-attempt timeout. Production requests
|
|
71
|
+
use `https://api.modernedi.com`. A custom `base_url` must use HTTPS except for loopback tests.
|
|
72
|
+
`bearer_token` sends the same Integration API key as `Authorization: Bearer`; it is not a
|
|
73
|
+
browser sign-in session token.
|
|
74
|
+
|
|
75
|
+
## Models, configuration, and exact wire data
|
|
76
|
+
|
|
77
|
+
```python
|
|
78
|
+
from modernedi import models
|
|
79
|
+
|
|
80
|
+
with ModernEdiClient(api_key=os.environ["MODERNEDI_API_KEY"]) as client:
|
|
81
|
+
exported = client.configuration_as_code.export_integration_configuration()
|
|
82
|
+
request = models.ConfigurationPlanRequest.from_dict({"files": exported.data.to_dict()["files"]})
|
|
83
|
+
planned = client.configuration_as_code.plan_integration_configuration(body=request)
|
|
84
|
+
print(planned.request_id) # A plan changes no configuration and sends no EDI.
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
`models` contains generated Pydantic models. Use `from_dict()`/`from_json()` for wire input and
|
|
88
|
+
`to_dict()`/`to_json()` for wire output, including nested union types; do not substitute Pydantic's
|
|
89
|
+
internal `model_dump()` for the wire serializer. Omitted optional fields stay omitted, and explicit
|
|
90
|
+
null/false values remain distinct. Configuration file contents and hashes are retained. Date-time
|
|
91
|
+
fields stay strings so nine-digit timestamp precision is not lost. Scenario parameter sets, Test
|
|
92
|
+
and Production bindings, and bindings with omitted syntax-tree pins are supported.
|
|
93
|
+
|
|
94
|
+
Configuration `apply` remains an explicit operation requiring the reviewed plan, current snapshot
|
|
95
|
+
precondition, and an idempotency key. This SDK does not apply automatically or bypass verification.
|
|
96
|
+
See [configuration-as-code](https://www.modernedi.com/integration-api/#tag/Configuration-as-Code) and the
|
|
97
|
+
[read-only example](examples/configuration_plan.py).
|
|
98
|
+
|
|
99
|
+
## Send source documents without changing their media type
|
|
100
|
+
|
|
101
|
+
For endpoints that accept XML, JSON, text, or X12, use an explicit `RequestBody`:
|
|
102
|
+
|
|
103
|
+
```python
|
|
104
|
+
from modernedi import RequestBody
|
|
105
|
+
|
|
106
|
+
source = RequestBody.text("<invoice><number>INV-1</number></invoice>", "application/xml")
|
|
107
|
+
envelope = RequestBody.json(
|
|
108
|
+
{"input": "<invoice/>", "contentType": "application/xml", "params": {"invoiceNumber": "INV-1"}},
|
|
109
|
+
"application/vnd.modernedi.outbound+json",
|
|
110
|
+
)
|
|
111
|
+
# Pass one as body= to outbound_as2.send_as2_message(...) or reply_to_inbound_as2_message(...).
|
|
112
|
+
# test=True uses the partner's Test AS2 configuration; it still sends a real test message.
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
Use the generated-X12 methods only when you already have X12. Ordinary send/reply methods apply
|
|
116
|
+
the selected outgoing map. Mapper-editor params are fixtures; supply required live params in the
|
|
117
|
+
envelope. Polling mapped outputs does not acknowledge them: acknowledge only after durable custody.
|
|
118
|
+
|
|
119
|
+
## Responses, errors, and retries
|
|
120
|
+
|
|
121
|
+
Every call returns `ApiResponse`: `data`, `status_code`, `headers`, and exact `raw_body` bytes,
|
|
122
|
+
plus `request_id`, `etag`, `location`, `retry_after`, `idempotency_replayed`, and `content_sha256`.
|
|
123
|
+
Use `raw_body` when checking a scenario evidence report's digest, not re-serialized JSON.
|
|
124
|
+
Conditional `304` responses have `data=None`.
|
|
125
|
+
|
|
126
|
+
`ModernEdiApiError` exposes `status_code`, `code`, `request_id`, `retryable`, `details`,
|
|
127
|
+
`retry_after`, and `raw_body`. Do not log raw partner documents or credentials indiscriminately.
|
|
128
|
+
Non-JSON errors still produce a structured exception with the status and available request ID.
|
|
129
|
+
|
|
130
|
+
Retries are **off by default**. Opt in with `retry=RetryOptions(max_attempts=3)`. Retries cover
|
|
131
|
+
transport failures and HTTP 429/502/503/504 only. Safe reads, configuration plans, and transaction
|
|
132
|
+
watch/unwatch operations can retry; other mutations must support and supply an `Idempotency-Key`
|
|
133
|
+
in the API contract. Adding that header to an unsupported operation does not enable retries. The SDK never
|
|
134
|
+
retries before `Retry-After`; a delay above its configured cap returns the error to your application.
|
|
135
|
+
Pass request-specific headers/timeouts through `RequestOptions`. Cancellation of an async task
|
|
136
|
+
also cancels retry waits.
|
|
137
|
+
|
|
138
|
+
`paginate_cursor` and `paginate_cursor_async` accept page-loading, item, and next-cursor functions.
|
|
139
|
+
They preserve opaque cursors, detect cycles, and default to a 1,000-page limit. Repeat the same
|
|
140
|
+
filters on every page. Lower `max_pages` to bound work for your use case.
|
|
141
|
+
|
|
142
|
+
## Verify mapped-output webhooks
|
|
143
|
+
|
|
144
|
+
```python
|
|
145
|
+
from modernedi import verify_mapped_output_webhook
|
|
146
|
+
|
|
147
|
+
event = verify_mapped_output_webhook(raw_body, request_headers, signing_secret)
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
Pass the original bytes before JSON parsing. Verification checks the timestamp (five-minute
|
|
151
|
+
default tolerance), HMAC-SHA-256 with constant-time comparison, duplicate headers, event shape,
|
|
152
|
+
and header/body identity. `WebhookVerificationError.code` explains rejection. Your application
|
|
153
|
+
must durably deduplicate `deliveryId`; for business processing, also deduplicate `message.id`
|
|
154
|
+
because legitimate redelivery has a new delivery ID. A successful verification is not proof that
|
|
155
|
+
your ERP accepted the document.
|
|
156
|
+
|
|
157
|
+
No hosted workflow, provider login, or generator is needed by SDK consumers.
|
|
158
|
+
|
|
159
|
+
## Build and test this repository
|
|
160
|
+
|
|
161
|
+
This is complete, standalone package source with offline tests and synthetic fixtures.
|
|
162
|
+
No ModernEDI account, private repository, API key, or generator is needed.
|
|
163
|
+
|
|
164
|
+
```sh
|
|
165
|
+
python -m pip install . build
|
|
166
|
+
python -m unittest discover -s tests
|
|
167
|
+
python -m build
|
|
168
|
+
```
|
|
169
|
+
|
|
170
|
+
Generated API files come from ModernEDI's canonical contract. Please report issues here;
|
|
171
|
+
changes are made upstream and exported as reviewed snapshots. PUBLIC_SOURCE.json records
|
|
172
|
+
the exact source revision and hashes. Normal CI never publishes or calls your workspace.
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
# ModernEDI Python SDK
|
|
2
|
+
|
|
3
|
+
Server-side Python clients for the [ModernEDI Integration API](https://www.modernedi.com/integration-api/),
|
|
4
|
+
including mappings, mapped outputs, transactions, configuration-as-code, and optional scenarios.
|
|
5
|
+
|
|
6
|
+
**Preview 0.1.0:** the API may evolve before 1.0. Install the official package from PyPI:
|
|
7
|
+
|
|
8
|
+
```sh
|
|
9
|
+
python -m pip install modernedi-sdk==0.1.0
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
Requires Python 3.10 or newer. Both synchronous and native asynchronous clients are included.
|
|
13
|
+
|
|
14
|
+
## Get started
|
|
15
|
+
|
|
16
|
+
Create an Integration API key in your workspace with only the scopes your application needs.
|
|
17
|
+
Keep it in a server-side secret store; never embed it in browser, mobile, or desktop
|
|
18
|
+
distributions, or commit it to Git or logs.
|
|
19
|
+
See [Integration API authentication](https://www.modernedi.com/integration-api/).
|
|
20
|
+
|
|
21
|
+
```python
|
|
22
|
+
import os
|
|
23
|
+
from modernedi import ModernEdiClient
|
|
24
|
+
|
|
25
|
+
with ModernEdiClient(api_key=os.environ["MODERNEDI_API_KEY"]) as client:
|
|
26
|
+
response = client.partners.list_integration_partners()
|
|
27
|
+
print(response.data)
|
|
28
|
+
print("Support request ID:", response.request_id)
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
An incoming or outgoing mapping is enough to process a partner document. You do not need a
|
|
32
|
+
scenario, Git repository, or configuration runner to use this client. Scenarios add conversation
|
|
33
|
+
verification; configuration-as-code adds repeatable review and deployment of those same resources.
|
|
34
|
+
|
|
35
|
+
The client groups match the TypeScript SDK: `partners`, `mappings`, `mapped_outputs`,
|
|
36
|
+
`transactions`, `outbound_as2`, `as2_connections`, `configuration_as_code`, `scenario_runs`,
|
|
37
|
+
`mapping_runtime`, `integration_events`, `account`, and `x12`. Methods use snake_case and
|
|
38
|
+
keyword arguments. Their parameters and models come from the same OpenAPI contract.
|
|
39
|
+
|
|
40
|
+
```python
|
|
41
|
+
from modernedi import AsyncModernEdiClient
|
|
42
|
+
|
|
43
|
+
async def list_partners(key):
|
|
44
|
+
async with AsyncModernEdiClient(api_key=key) as client:
|
|
45
|
+
return (await client.partners.list_integration_partners()).data
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
Reuse one client for connection pooling. Context managers close owned clients. If you inject an
|
|
49
|
+
HTTPX client using `http_client=`, you remain responsible for closing it; do not put authentication
|
|
50
|
+
in its default headers. The SDK chooses exactly one `api_key` or `bearer_token`, does not follow
|
|
51
|
+
redirects, verifies TLS by default, and uses a 30-second per-attempt timeout. Production requests
|
|
52
|
+
use `https://api.modernedi.com`. A custom `base_url` must use HTTPS except for loopback tests.
|
|
53
|
+
`bearer_token` sends the same Integration API key as `Authorization: Bearer`; it is not a
|
|
54
|
+
browser sign-in session token.
|
|
55
|
+
|
|
56
|
+
## Models, configuration, and exact wire data
|
|
57
|
+
|
|
58
|
+
```python
|
|
59
|
+
from modernedi import models
|
|
60
|
+
|
|
61
|
+
with ModernEdiClient(api_key=os.environ["MODERNEDI_API_KEY"]) as client:
|
|
62
|
+
exported = client.configuration_as_code.export_integration_configuration()
|
|
63
|
+
request = models.ConfigurationPlanRequest.from_dict({"files": exported.data.to_dict()["files"]})
|
|
64
|
+
planned = client.configuration_as_code.plan_integration_configuration(body=request)
|
|
65
|
+
print(planned.request_id) # A plan changes no configuration and sends no EDI.
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
`models` contains generated Pydantic models. Use `from_dict()`/`from_json()` for wire input and
|
|
69
|
+
`to_dict()`/`to_json()` for wire output, including nested union types; do not substitute Pydantic's
|
|
70
|
+
internal `model_dump()` for the wire serializer. Omitted optional fields stay omitted, and explicit
|
|
71
|
+
null/false values remain distinct. Configuration file contents and hashes are retained. Date-time
|
|
72
|
+
fields stay strings so nine-digit timestamp precision is not lost. Scenario parameter sets, Test
|
|
73
|
+
and Production bindings, and bindings with omitted syntax-tree pins are supported.
|
|
74
|
+
|
|
75
|
+
Configuration `apply` remains an explicit operation requiring the reviewed plan, current snapshot
|
|
76
|
+
precondition, and an idempotency key. This SDK does not apply automatically or bypass verification.
|
|
77
|
+
See [configuration-as-code](https://www.modernedi.com/integration-api/#tag/Configuration-as-Code) and the
|
|
78
|
+
[read-only example](examples/configuration_plan.py).
|
|
79
|
+
|
|
80
|
+
## Send source documents without changing their media type
|
|
81
|
+
|
|
82
|
+
For endpoints that accept XML, JSON, text, or X12, use an explicit `RequestBody`:
|
|
83
|
+
|
|
84
|
+
```python
|
|
85
|
+
from modernedi import RequestBody
|
|
86
|
+
|
|
87
|
+
source = RequestBody.text("<invoice><number>INV-1</number></invoice>", "application/xml")
|
|
88
|
+
envelope = RequestBody.json(
|
|
89
|
+
{"input": "<invoice/>", "contentType": "application/xml", "params": {"invoiceNumber": "INV-1"}},
|
|
90
|
+
"application/vnd.modernedi.outbound+json",
|
|
91
|
+
)
|
|
92
|
+
# Pass one as body= to outbound_as2.send_as2_message(...) or reply_to_inbound_as2_message(...).
|
|
93
|
+
# test=True uses the partner's Test AS2 configuration; it still sends a real test message.
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
Use the generated-X12 methods only when you already have X12. Ordinary send/reply methods apply
|
|
97
|
+
the selected outgoing map. Mapper-editor params are fixtures; supply required live params in the
|
|
98
|
+
envelope. Polling mapped outputs does not acknowledge them: acknowledge only after durable custody.
|
|
99
|
+
|
|
100
|
+
## Responses, errors, and retries
|
|
101
|
+
|
|
102
|
+
Every call returns `ApiResponse`: `data`, `status_code`, `headers`, and exact `raw_body` bytes,
|
|
103
|
+
plus `request_id`, `etag`, `location`, `retry_after`, `idempotency_replayed`, and `content_sha256`.
|
|
104
|
+
Use `raw_body` when checking a scenario evidence report's digest, not re-serialized JSON.
|
|
105
|
+
Conditional `304` responses have `data=None`.
|
|
106
|
+
|
|
107
|
+
`ModernEdiApiError` exposes `status_code`, `code`, `request_id`, `retryable`, `details`,
|
|
108
|
+
`retry_after`, and `raw_body`. Do not log raw partner documents or credentials indiscriminately.
|
|
109
|
+
Non-JSON errors still produce a structured exception with the status and available request ID.
|
|
110
|
+
|
|
111
|
+
Retries are **off by default**. Opt in with `retry=RetryOptions(max_attempts=3)`. Retries cover
|
|
112
|
+
transport failures and HTTP 429/502/503/504 only. Safe reads, configuration plans, and transaction
|
|
113
|
+
watch/unwatch operations can retry; other mutations must support and supply an `Idempotency-Key`
|
|
114
|
+
in the API contract. Adding that header to an unsupported operation does not enable retries. The SDK never
|
|
115
|
+
retries before `Retry-After`; a delay above its configured cap returns the error to your application.
|
|
116
|
+
Pass request-specific headers/timeouts through `RequestOptions`. Cancellation of an async task
|
|
117
|
+
also cancels retry waits.
|
|
118
|
+
|
|
119
|
+
`paginate_cursor` and `paginate_cursor_async` accept page-loading, item, and next-cursor functions.
|
|
120
|
+
They preserve opaque cursors, detect cycles, and default to a 1,000-page limit. Repeat the same
|
|
121
|
+
filters on every page. Lower `max_pages` to bound work for your use case.
|
|
122
|
+
|
|
123
|
+
## Verify mapped-output webhooks
|
|
124
|
+
|
|
125
|
+
```python
|
|
126
|
+
from modernedi import verify_mapped_output_webhook
|
|
127
|
+
|
|
128
|
+
event = verify_mapped_output_webhook(raw_body, request_headers, signing_secret)
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
Pass the original bytes before JSON parsing. Verification checks the timestamp (five-minute
|
|
132
|
+
default tolerance), HMAC-SHA-256 with constant-time comparison, duplicate headers, event shape,
|
|
133
|
+
and header/body identity. `WebhookVerificationError.code` explains rejection. Your application
|
|
134
|
+
must durably deduplicate `deliveryId`; for business processing, also deduplicate `message.id`
|
|
135
|
+
because legitimate redelivery has a new delivery ID. A successful verification is not proof that
|
|
136
|
+
your ERP accepted the document.
|
|
137
|
+
|
|
138
|
+
No hosted workflow, provider login, or generator is needed by SDK consumers.
|
|
139
|
+
|
|
140
|
+
## Build and test this repository
|
|
141
|
+
|
|
142
|
+
This is complete, standalone package source with offline tests and synthetic fixtures.
|
|
143
|
+
No ModernEDI account, private repository, API key, or generator is needed.
|
|
144
|
+
|
|
145
|
+
```sh
|
|
146
|
+
python -m pip install . build
|
|
147
|
+
python -m unittest discover -s tests
|
|
148
|
+
python -m build
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
Generated API files come from ModernEDI's canonical contract. Please report issues here;
|
|
152
|
+
changes are made upstream and exported as reviewed snapshots. PUBLIC_SOURCE.json records
|
|
153
|
+
the exact source revision and hashes. Normal CI never publishes or calls your workspace.
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"""Read-only example: export and plan the same configuration; never apply or send EDI."""
|
|
2
|
+
import os
|
|
3
|
+
from modernedi import ModernEdiClient, models
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
def main():
|
|
7
|
+
with ModernEdiClient(api_key=os.environ["MODERNEDI_API_KEY"]) as client:
|
|
8
|
+
exported = client.configuration_as_code.export_integration_configuration()
|
|
9
|
+
if exported.data is None:
|
|
10
|
+
raise RuntimeError("Expected an unconditional configuration export")
|
|
11
|
+
request = models.ConfigurationPlanRequest.from_dict({"files": exported.data.to_dict()["files"]})
|
|
12
|
+
result = client.configuration_as_code.plan_integration_configuration(body=request)
|
|
13
|
+
print(f"Plan completed; support request ID: {result.request_id}")
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
if __name__ == "__main__":
|
|
17
|
+
main()
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["hatchling>=1.27,<2"]
|
|
3
|
+
build-backend = "hatchling.build"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "modernedi-sdk"
|
|
7
|
+
version = "0.1.0"
|
|
8
|
+
description = "Typed, server-side Python client for the ModernEDI Integration API"
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
requires-python = ">=3.10"
|
|
11
|
+
license = "Apache-2.0"
|
|
12
|
+
authors = [{name = "ModernEDI", email = "support@modernedi.com"}]
|
|
13
|
+
dependencies = ["httpx>=0.28,<1", "pydantic>=2.11,<3", "typing-extensions>=4.12,<5"]
|
|
14
|
+
classifiers = ["Development Status :: 3 - Alpha", "Programming Language :: Python :: 3", "Typing :: Typed"]
|
|
15
|
+
|
|
16
|
+
[project.urls]
|
|
17
|
+
Documentation = "https://www.modernedi.com/integration-api/"
|
|
18
|
+
Source = "https://github.com/modernedi/python-sdk"
|
|
19
|
+
Issues = "https://github.com/modernedi/python-sdk/issues"
|
|
20
|
+
|
|
21
|
+
[tool.hatch.build.targets.wheel]
|
|
22
|
+
packages = ["src/modernedi"]
|
|
23
|
+
|
|
24
|
+
[tool.hatch.build.targets.sdist]
|
|
25
|
+
include = ["src", "tests", "examples", "README.md", "LICENSE", "pyproject.toml"]
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"""Server-side clients for the ModernEDI Integration API."""
|
|
2
|
+
from .generated.operations import ModernEdiClient, AsyncModernEdiClient
|
|
3
|
+
from .generated import models
|
|
4
|
+
from ._transport import ApiResponse, ModernEdiApiError, RequestBody, RequestOptions, RetryOptions
|
|
5
|
+
from .pagination import paginate_cursor, paginate_cursor_async
|
|
6
|
+
from .webhook import verify_mapped_output_webhook, WebhookVerificationError
|
|
7
|
+
|
|
8
|
+
__all__ = ["ModernEdiClient", "AsyncModernEdiClient", "models", "ApiResponse", "ModernEdiApiError",
|
|
9
|
+
"RequestBody", "RequestOptions", "RetryOptions", "paginate_cursor", "paginate_cursor_async",
|
|
10
|
+
"verify_mapped_output_webhook", "WebhookVerificationError"]
|