@spine-event-engine/proto 2.0.0-snapshot.2
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.
- package/LICENSE +201 -0
- package/README.md +122 -0
- package/REFERENCE.md +83 -0
- package/dist/generated/grpc/health/v1/health_pb.d.ts +115 -0
- package/dist/generated/grpc/health/v1/health_pb.d.ts.map +1 -0
- package/dist/generated/grpc/health/v1/health_pb.js +58 -0
- package/dist/generated/grpc/health/v1/health_pb.js.map +1 -0
- package/dist/generated/proto-module.d.ts +61 -0
- package/dist/generated/proto-module.d.ts.map +1 -0
- package/dist/generated/proto-module.js +315 -0
- package/dist/generated/proto-module.js.map +1 -0
- package/dist/generated/spine/auth/authenticated_subscription_pb.d.ts +47 -0
- package/dist/generated/spine/auth/authenticated_subscription_pb.d.ts.map +1 -0
- package/dist/generated/spine/auth/authenticated_subscription_pb.js +20 -0
- package/dist/generated/spine/auth/authenticated_subscription_pb.js.map +1 -0
- package/dist/generated/spine/auth/authentication_service_pb.d.ts +79 -0
- package/dist/generated/spine/auth/authentication_service_pb.d.ts.map +1 -0
- package/dist/generated/spine/auth/authentication_service_pb.js +34 -0
- package/dist/generated/spine/auth/authentication_service_pb.js.map +1 -0
- package/dist/generated/spine/base/error_pb.d.ts +69 -0
- package/dist/generated/spine/base/error_pb.d.ts.map +1 -0
- package/dist/generated/spine/base/error_pb.js +19 -0
- package/dist/generated/spine/base/error_pb.js.map +1 -0
- package/dist/generated/spine/base/field_path_pb.d.ts +50 -0
- package/dist/generated/spine/base/field_path_pb.d.ts.map +1 -0
- package/dist/generated/spine/base/field_path_pb.js +18 -0
- package/dist/generated/spine/base/field_path_pb.js.map +1 -0
- package/dist/generated/spine/client/command_service_pb.d.ts +46 -0
- package/dist/generated/spine/client/command_service_pb.d.ts.map +1 -0
- package/dist/generated/spine/client/command_service_pb.js +21 -0
- package/dist/generated/spine/client/command_service_pb.js.map +1 -0
- package/dist/generated/spine/client/entities_pb.d.ts +37 -0
- package/dist/generated/spine/client/entities_pb.d.ts.map +1 -0
- package/dist/generated/spine/client/entities_pb.js +19 -0
- package/dist/generated/spine/client/entities_pb.js.map +1 -0
- package/dist/generated/spine/client/filters_pb.d.ts +279 -0
- package/dist/generated/spine/client/filters_pb.d.ts.map +1 -0
- package/dist/generated/spine/client/filters_pb.js +126 -0
- package/dist/generated/spine/client/filters_pb.js.map +1 -0
- package/dist/generated/spine/client/query_pb.d.ts +293 -0
- package/dist/generated/spine/client/query_pb.d.ts.map +1 -0
- package/dist/generated/spine/client/query_pb.js +132 -0
- package/dist/generated/spine/client/query_pb.js.map +1 -0
- package/dist/generated/spine/client/query_service_pb.d.ts +31 -0
- package/dist/generated/spine/client/query_service_pb.d.ts.map +1 -0
- package/dist/generated/spine/client/query_service_pb.js +21 -0
- package/dist/generated/spine/client/query_service_pb.js.map +1 -0
- package/dist/generated/spine/client/subscription_pb.d.ts +361 -0
- package/dist/generated/spine/client/subscription_pb.d.ts.map +1 -0
- package/dist/generated/spine/client/subscription_pb.js +137 -0
- package/dist/generated/spine/client/subscription_pb.js.map +1 -0
- package/dist/generated/spine/client/subscription_record_pb.d.ts +90 -0
- package/dist/generated/spine/client/subscription_record_pb.d.ts.map +1 -0
- package/dist/generated/spine/client/subscription_record_pb.js +52 -0
- package/dist/generated/spine/client/subscription_record_pb.js.map +1 -0
- package/dist/generated/spine/client/subscription_service_pb.d.ts +86 -0
- package/dist/generated/spine/client/subscription_service_pb.d.ts.map +1 -0
- package/dist/generated/spine/client/subscription_service_pb.js +36 -0
- package/dist/generated/spine/client/subscription_service_pb.js.map +1 -0
- package/dist/generated/spine/core/ack_pb.d.ts +47 -0
- package/dist/generated/spine/core/ack_pb.d.ts.map +1 -0
- package/dist/generated/spine/core/ack_pb.js +20 -0
- package/dist/generated/spine/core/ack_pb.js.map +1 -0
- package/dist/generated/spine/core/actor_context_pb.d.ts +74 -0
- package/dist/generated/spine/core/actor_context_pb.d.ts.map +1 -0
- package/dist/generated/spine/core/actor_context_pb.js +23 -0
- package/dist/generated/spine/core/actor_context_pb.js.map +1 -0
- package/dist/generated/spine/core/bounded_context_pb.d.ts +35 -0
- package/dist/generated/spine/core/bounded_context_pb.d.ts.map +1 -0
- package/dist/generated/spine/core/bounded_context_pb.js +18 -0
- package/dist/generated/spine/core/bounded_context_pb.js.map +1 -0
- package/dist/generated/spine/core/command_pb.d.ts +245 -0
- package/dist/generated/spine/core/command_pb.d.ts.map +1 -0
- package/dist/generated/spine/core/command_pb.js +106 -0
- package/dist/generated/spine/core/command_pb.js.map +1 -0
- package/dist/generated/spine/core/diagnostics_pb.d.ts +97 -0
- package/dist/generated/spine/core/diagnostics_pb.d.ts.map +1 -0
- package/dist/generated/spine/core/diagnostics_pb.js +27 -0
- package/dist/generated/spine/core/diagnostics_pb.js.map +1 -0
- package/dist/generated/spine/core/enrichment_pb.d.ts +85 -0
- package/dist/generated/spine/core/enrichment_pb.d.ts.map +1 -0
- package/dist/generated/spine/core/enrichment_pb.js +25 -0
- package/dist/generated/spine/core/enrichment_pb.js.map +1 -0
- package/dist/generated/spine/core/event_pb.d.ts +307 -0
- package/dist/generated/spine/core/event_pb.d.ts.map +1 -0
- package/dist/generated/spine/core/event_pb.js +80 -0
- package/dist/generated/spine/core/event_pb.js.map +1 -0
- package/dist/generated/spine/core/response_pb.d.ts +87 -0
- package/dist/generated/spine/core/response_pb.d.ts.map +1 -0
- package/dist/generated/spine/core/response_pb.js +27 -0
- package/dist/generated/spine/core/response_pb.js.map +1 -0
- package/dist/generated/spine/core/tenant_id_pb.d.ts +64 -0
- package/dist/generated/spine/core/tenant_id_pb.d.ts.map +1 -0
- package/dist/generated/spine/core/tenant_id_pb.js +20 -0
- package/dist/generated/spine/core/tenant_id_pb.js.map +1 -0
- package/dist/generated/spine/core/user_id_pb.d.ts +33 -0
- package/dist/generated/spine/core/user_id_pb.d.ts.map +1 -0
- package/dist/generated/spine/core/user_id_pb.js +18 -0
- package/dist/generated/spine/core/user_id_pb.js.map +1 -0
- package/dist/generated/spine/core/version_pb.d.ts +44 -0
- package/dist/generated/spine/core/version_pb.d.ts.map +1 -0
- package/dist/generated/spine/core/version_pb.js +19 -0
- package/dist/generated/spine/core/version_pb.js.map +1 -0
- package/dist/generated/spine/delivery/admin/admin_service_pb.d.ts +219 -0
- package/dist/generated/spine/delivery/admin/admin_service_pb.d.ts.map +1 -0
- package/dist/generated/spine/delivery/admin/admin_service_pb.js +75 -0
- package/dist/generated/spine/delivery/admin/admin_service_pb.js.map +1 -0
- package/dist/generated/spine/delivery/commands_pb.d.ts +181 -0
- package/dist/generated/spine/delivery/commands_pb.d.ts.map +1 -0
- package/dist/generated/spine/delivery/commands_pb.js +57 -0
- package/dist/generated/spine/delivery/commands_pb.js.map +1 -0
- package/dist/generated/spine/delivery/events_pb.d.ts +230 -0
- package/dist/generated/spine/delivery/events_pb.d.ts.map +1 -0
- package/dist/generated/spine/delivery/events_pb.js +63 -0
- package/dist/generated/spine/delivery/events_pb.js.map +1 -0
- package/dist/generated/spine/delivery/message_delivery_pb.d.ts +205 -0
- package/dist/generated/spine/delivery/message_delivery_pb.d.ts.map +1 -0
- package/dist/generated/spine/delivery/message_delivery_pb.js +50 -0
- package/dist/generated/spine/delivery/message_delivery_pb.js.map +1 -0
- package/dist/generated/spine/delivery/pick_up_outcome_pb.d.ts +58 -0
- package/dist/generated/spine/delivery/pick_up_outcome_pb.d.ts.map +1 -0
- package/dist/generated/spine/delivery/pick_up_outcome_pb.js +20 -0
- package/dist/generated/spine/delivery/pick_up_outcome_pb.js.map +1 -0
- package/dist/generated/spine/delivery/rejections_pb.d.ts +95 -0
- package/dist/generated/spine/delivery/rejections_pb.d.ts.map +1 -0
- package/dist/generated/spine/delivery/rejections_pb.js +32 -0
- package/dist/generated/spine/delivery/rejections_pb.js.map +1 -0
- package/dist/generated/spine/deployment/node_discovery_pb.d.ts +102 -0
- package/dist/generated/spine/deployment/node_discovery_pb.d.ts.map +1 -0
- package/dist/generated/spine/deployment/node_discovery_pb.js +32 -0
- package/dist/generated/spine/deployment/node_discovery_pb.js.map +1 -0
- package/dist/generated/spine/net/email_address_pb.d.ts +37 -0
- package/dist/generated/spine/net/email_address_pb.d.ts.map +1 -0
- package/dist/generated/spine/net/email_address_pb.js +18 -0
- package/dist/generated/spine/net/email_address_pb.js.map +1 -0
- package/dist/generated/spine/net/internet_domain_pb.d.ts +35 -0
- package/dist/generated/spine/net/internet_domain_pb.d.ts.map +1 -0
- package/dist/generated/spine/net/internet_domain_pb.js +18 -0
- package/dist/generated/spine/net/internet_domain_pb.js.map +1 -0
- package/dist/generated/spine/options_pb.d.ts +1932 -0
- package/dist/generated/spine/options_pb.d.ts.map +1 -0
- package/dist/generated/spine/options_pb.js +960 -0
- package/dist/generated/spine/options_pb.js.map +1 -0
- package/dist/generated/spine/server/catchup/catch_up_pb.d.ts +185 -0
- package/dist/generated/spine/server/catchup/catch_up_pb.d.ts.map +1 -0
- package/dist/generated/spine/server/catchup/catch_up_pb.js +77 -0
- package/dist/generated/spine/server/catchup/catch_up_pb.js.map +1 -0
- package/dist/generated/spine/server/delivery/delivery_events_pb.d.ts +79 -0
- package/dist/generated/spine/server/delivery/delivery_events_pb.d.ts.map +1 -0
- package/dist/generated/spine/server/delivery/delivery_events_pb.js +27 -0
- package/dist/generated/spine/server/delivery/delivery_events_pb.js.map +1 -0
- package/dist/generated/spine/server/delivery/delivery_pb.d.ts +265 -0
- package/dist/generated/spine/server/delivery/delivery_pb.d.ts.map +1 -0
- package/dist/generated/spine/server/delivery/delivery_pb.js +63 -0
- package/dist/generated/spine/server/delivery/delivery_pb.js.map +1 -0
- package/dist/generated/spine/server/delivery/inbox_pb.d.ts +272 -0
- package/dist/generated/spine/server/delivery/inbox_pb.d.ts.map +1 -0
- package/dist/generated/spine/server/delivery/inbox_pb.js +139 -0
- package/dist/generated/spine/server/delivery/inbox_pb.js.map +1 -0
- package/dist/generated/spine/server/entity/entity_pb.d.ts +146 -0
- package/dist/generated/spine/server/entity/entity_pb.d.ts.map +1 -0
- package/dist/generated/spine/server/entity/entity_pb.js +62 -0
- package/dist/generated/spine/server/entity/entity_pb.js.map +1 -0
- package/dist/generated/spine/server/entity/state_key_pb.d.ts +46 -0
- package/dist/generated/spine/server/entity/state_key_pb.d.ts.map +1 -0
- package/dist/generated/spine/server/entity/state_key_pb.js +19 -0
- package/dist/generated/spine/server/entity/state_key_pb.js.map +1 -0
- package/dist/generated/spine/server/integration/broker_pb.d.ts +152 -0
- package/dist/generated/spine/server/integration/broker_pb.d.ts.map +1 -0
- package/dist/generated/spine/server/integration/broker_pb.js +65 -0
- package/dist/generated/spine/server/integration/broker_pb.js.map +1 -0
- package/dist/generated/spine/server/server_environment_pb.d.ts +65 -0
- package/dist/generated/spine/server/server_environment_pb.d.ts.map +1 -0
- package/dist/generated/spine/server/server_environment_pb.js +53 -0
- package/dist/generated/spine/server/server_environment_pb.js.map +1 -0
- package/dist/generated/spine/server/transport/transport_pb.d.ts +33 -0
- package/dist/generated/spine/server/transport/transport_pb.d.ts.map +1 -0
- package/dist/generated/spine/server/transport/transport_pb.js +18 -0
- package/dist/generated/spine/server/transport/transport_pb.js.map +1 -0
- package/dist/generated/spine/string/template_string_pb.d.ts +66 -0
- package/dist/generated/spine/string/template_string_pb.d.ts.map +1 -0
- package/dist/generated/spine/string/template_string_pb.js +18 -0
- package/dist/generated/spine/string/template_string_pb.js.map +1 -0
- package/dist/generated/spine/system/server/entity_log_events_pb.d.ts +505 -0
- package/dist/generated/spine/system/server/entity_log_events_pb.d.ts.map +1 -0
- package/dist/generated/spine/system/server/entity_log_events_pb.js +84 -0
- package/dist/generated/spine/system/server/entity_log_events_pb.js.map +1 -0
- package/dist/generated/spine/system/server/entity_type_pb.d.ts +46 -0
- package/dist/generated/spine/system/server/entity_type_pb.d.ts.map +1 -0
- package/dist/generated/spine/system/server/entity_type_pb.js +18 -0
- package/dist/generated/spine/system/server/entity_type_pb.js.map +1 -0
- package/dist/generated/spine/time/time_pb.d.ts +393 -0
- package/dist/generated/spine/time/time_pb.d.ts.map +1 -0
- package/dist/generated/spine/time/time_pb.js +184 -0
- package/dist/generated/spine/time/time_pb.js.map +1 -0
- package/dist/generated/spine/time_options_pb.d.ts +106 -0
- package/dist/generated/spine/time_options_pb.d.ts.map +1 -0
- package/dist/generated/spine/time_options_pb.js +58 -0
- package/dist/generated/spine/time_options_pb.js.map +1 -0
- package/dist/generated/spine/ui/language_pb.d.ts +1140 -0
- package/dist/generated/spine/ui/language_pb.d.ts.map +1 -0
- package/dist/generated/spine/ui/language_pb.js +1141 -0
- package/dist/generated/spine/ui/language_pb.js.map +1 -0
- package/dist/generated/spine/validation/validation_error_pb.d.ts +156 -0
- package/dist/generated/spine/validation/validation_error_pb.d.ts.map +1 -0
- package/dist/generated/spine/validation/validation_error_pb.js +27 -0
- package/dist/generated/spine/validation/validation_error_pb.js.map +1 -0
- package/dist/src/auth/index.d.ts +6 -0
- package/dist/src/auth/index.d.ts.map +1 -0
- package/dist/src/auth/index.js +19 -0
- package/dist/src/auth/index.js.map +1 -0
- package/dist/src/client/index.d.ts +12 -0
- package/dist/src/client/index.d.ts.map +1 -0
- package/dist/src/client/index.js +25 -0
- package/dist/src/client/index.js.map +1 -0
- package/dist/src/delivery/index.d.ts +7 -0
- package/dist/src/delivery/index.d.ts.map +1 -0
- package/dist/src/delivery/index.js +20 -0
- package/dist/src/delivery/index.js.map +1 -0
- package/dist/src/delivery-server/index.d.ts +11 -0
- package/dist/src/delivery-server/index.d.ts.map +1 -0
- package/dist/src/delivery-server/index.js +24 -0
- package/dist/src/delivery-server/index.js.map +1 -0
- package/dist/src/deployment/index.d.ts +5 -0
- package/dist/src/deployment/index.d.ts.map +1 -0
- package/dist/src/deployment/index.js +18 -0
- package/dist/src/deployment/index.js.map +1 -0
- package/dist/src/index.d.ts +333 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/index.js +310 -0
- package/dist/src/index.js.map +1 -0
- package/dist/src/model/proto-module.d.ts +20 -0
- package/dist/src/model/proto-module.d.ts.map +1 -0
- package/dist/src/model/proto-module.js +15 -0
- package/dist/src/model/proto-module.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/generated/.spine-proto-generation.json +1 -0
- package/generated/grpc/health/v1/health_pb.ts +141 -0
- package/generated/proto-module.ts +320 -0
- package/generated/spine/auth/authenticated_subscription_pb.ts +64 -0
- package/generated/spine/auth/authentication_service_pb.ts +103 -0
- package/generated/spine/base/error_pb.ts +86 -0
- package/generated/spine/base/field_path_pb.ts +63 -0
- package/generated/spine/client/command_service_pb.ts +60 -0
- package/generated/spine/client/entities_pb.ts +51 -0
- package/generated/spine/client/filters_pb.ts +322 -0
- package/generated/spine/client/query_pb.ts +345 -0
- package/generated/spine/client/query_service_pb.ts +45 -0
- package/generated/spine/client/subscription_pb.ts +414 -0
- package/generated/spine/client/subscription_record_pb.ts +114 -0
- package/generated/spine/client/subscription_service_pb.ts +100 -0
- package/generated/spine/core/ack_pb.ts +63 -0
- package/generated/spine/core/actor_context_pb.ts +96 -0
- package/generated/spine/core/bounded_context_pb.ts +48 -0
- package/generated/spine/core/command_pb.ts +287 -0
- package/generated/spine/core/diagnostics_pb.ts +120 -0
- package/generated/spine/core/enrichment_pb.ts +97 -0
- package/generated/spine/core/event_pb.ts +347 -0
- package/generated/spine/core/response_pb.ts +103 -0
- package/generated/spine/core/tenant_id_pb.ts +76 -0
- package/generated/spine/core/user_id_pb.ts +46 -0
- package/generated/spine/core/version_pb.ts +59 -0
- package/generated/spine/delivery/admin/admin_service_pb.ts +253 -0
- package/generated/spine/delivery/commands_pb.ts +219 -0
- package/generated/spine/delivery/events_pb.ts +276 -0
- package/generated/spine/delivery/message_delivery_pb.ts +236 -0
- package/generated/spine/delivery/pick_up_outcome_pb.ts +70 -0
- package/generated/spine/delivery/rejections_pb.ts +120 -0
- package/generated/spine/deployment/node_discovery_pb.ts +127 -0
- package/generated/spine/net/email_address_pb.ts +50 -0
- package/generated/spine/net/internet_domain_pb.ts +48 -0
- package/generated/spine/options_pb.ts +2104 -0
- package/generated/spine/server/catchup/catch_up_pb.ts +224 -0
- package/generated/spine/server/delivery/delivery_events_pb.ts +102 -0
- package/generated/spine/server/delivery/delivery_pb.ts +305 -0
- package/generated/spine/server/delivery/inbox_pb.ts +321 -0
- package/generated/spine/server/entity/entity_pb.ts +176 -0
- package/generated/spine/server/entity/state_key_pb.ts +61 -0
- package/generated/spine/server/integration/broker_pb.ts +183 -0
- package/generated/spine/server/server_environment_pb.ts +83 -0
- package/generated/spine/server/transport/transport_pb.ts +46 -0
- package/generated/spine/string/template_string_pb.ts +78 -0
- package/generated/spine/system/server/entity_log_events_pb.ts +587 -0
- package/generated/spine/system/server/entity_type_pb.ts +56 -0
- package/generated/spine/time/time_pb.ts +465 -0
- package/generated/spine/time_options_pb.ts +129 -0
- package/generated/spine/ui/language_pb.ts +1337 -0
- package/generated/spine/validation/validation_error_pb.ts +181 -0
- package/package.json +61 -0
- package/proto/README.md +81 -0
- package/proto/frozen-descriptor-set.sha256 +3 -0
- package/proto/grpc/health/v1/health.proto +63 -0
- package/proto/spine/auth/authenticated_subscription.proto +36 -0
- package/proto/spine/auth/authentication_service.proto +47 -0
- package/proto/spine/base/error.proto +68 -0
- package/proto/spine/base/field_path.proto +59 -0
- package/proto/spine/client/command_service.proto +62 -0
- package/proto/spine/client/entities.proto +48 -0
- package/proto/spine/client/filters.proto +170 -0
- package/proto/spine/client/query.proto +186 -0
- package/proto/spine/client/query_service.proto +46 -0
- package/proto/spine/client/subscription.proto +220 -0
- package/proto/spine/client/subscription_record.proto +55 -0
- package/proto/spine/client/subscription_service.proto +86 -0
- package/proto/spine/core/ack.proto +55 -0
- package/proto/spine/core/actor_context.proto +76 -0
- package/proto/spine/core/bounded_context.proto +47 -0
- package/proto/spine/core/command.proto +170 -0
- package/proto/spine/core/diagnostics.proto +86 -0
- package/proto/spine/core/enrichment.proto +70 -0
- package/proto/spine/core/event.proto +197 -0
- package/proto/spine/core/response.proto +71 -0
- package/proto/spine/core/tenant_id.proto +61 -0
- package/proto/spine/core/user_id.proto +42 -0
- package/proto/spine/core/version.proto +63 -0
- package/proto/spine/delivery/admin/admin_service.proto +110 -0
- package/proto/spine/delivery/commands.proto +86 -0
- package/proto/spine/delivery/events.proto +107 -0
- package/proto/spine/delivery/message_delivery.proto +90 -0
- package/proto/spine/delivery/pick_up_outcome.proto +40 -0
- package/proto/spine/delivery/rejections.proto +49 -0
- package/proto/spine/deployment/node_discovery.proto +59 -0
- package/proto/spine/net/email_address.proto +46 -0
- package/proto/spine/net/internet_domain.proto +43 -0
- package/proto/spine/options.proto +1628 -0
- package/proto/spine/server/catchup/catch_up.proto +123 -0
- package/proto/spine/server/delivery/delivery.proto +166 -0
- package/proto/spine/server/delivery/delivery_events.proto +72 -0
- package/proto/spine/server/delivery/inbox.proto +169 -0
- package/proto/spine/server/entity/entity.proto +105 -0
- package/proto/spine/server/entity/state_key.proto +55 -0
- package/proto/spine/server/integration/broker.proto +112 -0
- package/proto/spine/server/server_environment.proto +57 -0
- package/proto/spine/server/transport/transport.proto +42 -0
- package/proto/spine/string/template_string.proto +70 -0
- package/proto/spine/system/server/entity_log_events.proto +280 -0
- package/proto/spine/system/server/entity_type.proto +49 -0
- package/proto/spine/time/time.proto +221 -0
- package/proto/spine/time_options.proto +106 -0
- package/proto/spine/ui/language.proto +417 -0
- package/proto/spine/validation/validation_error.proto +133 -0
- package/proto/spine-sources.json +438 -0
- package/spine-proto-manifest.json +112 -0
- package/spine-proto.json +10 -0
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2026, TeamDev. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* https://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Redistribution and use in source and/or binary forms, with or without
|
|
11
|
+
* modification, must retain the above copyright notice and the following
|
|
12
|
+
* disclaimer.
|
|
13
|
+
*
|
|
14
|
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
15
|
+
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
16
|
+
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
17
|
+
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
18
|
+
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
19
|
+
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
20
|
+
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
21
|
+
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
22
|
+
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
23
|
+
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
24
|
+
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
25
|
+
*/
|
|
26
|
+
|
|
27
|
+
syntax = "proto3";
|
|
28
|
+
|
|
29
|
+
package spine.server.integration;
|
|
30
|
+
|
|
31
|
+
import "spine/options.proto";
|
|
32
|
+
|
|
33
|
+
option (type_url_prefix) = "type.spine.io";
|
|
34
|
+
option java_package = "io.spine.server.integration";
|
|
35
|
+
option java_multiple_files = true;
|
|
36
|
+
option java_outer_classname = "BrokerProto";
|
|
37
|
+
|
|
38
|
+
import "google/protobuf/any.proto";
|
|
39
|
+
|
|
40
|
+
import "spine/core/actor_context.proto";
|
|
41
|
+
import "spine/core/bounded_context.proto";
|
|
42
|
+
|
|
43
|
+
// A wrapper around a message, which is used to send/receive the original message
|
|
44
|
+
// to/from external application components, such as other Bounded Contexts.
|
|
45
|
+
message ExternalMessage {
|
|
46
|
+
|
|
47
|
+
// An ID of the original message wrapped into `Any` (e.g. an event ID).
|
|
48
|
+
google.protobuf.Any id = 1 [(required) = true];
|
|
49
|
+
|
|
50
|
+
// An original message wrapped into `Any` (e.g. a wrapped instance of `io.spine.core.Event`).
|
|
51
|
+
google.protobuf.Any original_message = 2 [(required) = true];
|
|
52
|
+
|
|
53
|
+
// `actor_context` field has been deleted, as it is impossible to populate
|
|
54
|
+
// it with meaningful values for all types of transmitted external messages.
|
|
55
|
+
//
|
|
56
|
+
reserved 3;
|
|
57
|
+
reserved "actor_context";
|
|
58
|
+
|
|
59
|
+
// Name of the Bounded Context, within which an original message was created.
|
|
60
|
+
spine.core.BoundedContextName bounded_context_name = 4 [(required) = true];
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
// A document message, describing types of events
|
|
64
|
+
// that are required for consumption by some part of the system.
|
|
65
|
+
//
|
|
66
|
+
// One of the typical scenarios is a notification shout-out from the current Bounded Context
|
|
67
|
+
// to other Bounded Contexts of the application about its `external` subscription needs.
|
|
68
|
+
//
|
|
69
|
+
message ExternalEventsWanted {
|
|
70
|
+
|
|
71
|
+
// Multiple types may be requested at a time.
|
|
72
|
+
repeated ExternalEventType type = 1;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
// The type of a domain event that is emitted by one Bounded Context and consumed by
|
|
76
|
+
// other Bounded Contexts as "external" event
|
|
77
|
+
message ExternalEventType {
|
|
78
|
+
option (is).java_type = "ExternalEventTypeMixin";
|
|
79
|
+
|
|
80
|
+
// Type URL of the domain event (e.g. `io.spine.examples.TaskCreated`).
|
|
81
|
+
string type_url = 1 [(required) = true];
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
// The type of error that may occur during the `ExternalMessage` validation.
|
|
85
|
+
enum ExternalMessageValidationError {
|
|
86
|
+
|
|
87
|
+
// Reserved value.
|
|
88
|
+
EM_UNKNOWN_REASON = 0;
|
|
89
|
+
|
|
90
|
+
// The external message type is not supported by the server.
|
|
91
|
+
UNSUPPORTED_EXTERNAL_MESSAGE = 1;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
// Tells that some Bounded Context is connected to the shared transport.
|
|
95
|
+
//
|
|
96
|
+
// Used to notify other parties connected to the same transport that the external events they
|
|
97
|
+
// might need may be provided by the Bounded Context that is online.
|
|
98
|
+
//
|
|
99
|
+
// Typically, once others receive this message, they might want to send their
|
|
100
|
+
// respective `ExternalEventsWanted` messages to see if the connected Bounded Context
|
|
101
|
+
// is able to provide them.
|
|
102
|
+
//
|
|
103
|
+
// Please note this message does not signify that some context has _just_ connected
|
|
104
|
+
// to the transport. It may be sent by some context that has been using the shared transport
|
|
105
|
+
// for quite some time — in which case this message may serve to notify just-connected Bounded
|
|
106
|
+
// Contexts of its existence.
|
|
107
|
+
//
|
|
108
|
+
message BoundedContextOnline {
|
|
109
|
+
|
|
110
|
+
// The name of the Bounded Context that is connected to the transport.
|
|
111
|
+
spine.core.BoundedContextName context = 1 [(required) = true];
|
|
112
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2022, TeamDev. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Redistribution and use in source and/or binary forms, with or without
|
|
11
|
+
* modification, must retain the above copyright notice and the following
|
|
12
|
+
* disclaimer.
|
|
13
|
+
*
|
|
14
|
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
15
|
+
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
16
|
+
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
17
|
+
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
18
|
+
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
19
|
+
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
20
|
+
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
21
|
+
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
22
|
+
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
23
|
+
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
24
|
+
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
25
|
+
*/
|
|
26
|
+
syntax = "proto3";
|
|
27
|
+
|
|
28
|
+
package spine.server;
|
|
29
|
+
|
|
30
|
+
import "spine/options.proto";
|
|
31
|
+
|
|
32
|
+
option (type_url_prefix) = "type.spine.io";
|
|
33
|
+
option java_package = "io.spine.server";
|
|
34
|
+
option java_outer_classname = "ServerEnvironmentProto";
|
|
35
|
+
option java_multiple_files = true;
|
|
36
|
+
|
|
37
|
+
// A type of the environment system is deployed to.
|
|
38
|
+
enum DeploymentType {
|
|
39
|
+
|
|
40
|
+
// Running in a standalone mode.
|
|
41
|
+
//
|
|
42
|
+
// The deployment is considered STANDALONE when no specific runtime is recognized.
|
|
43
|
+
//
|
|
44
|
+
STANDALONE = 0;
|
|
45
|
+
|
|
46
|
+
// Running on an App Engine local development server.
|
|
47
|
+
APPENGINE_EMULATOR = 1;
|
|
48
|
+
|
|
49
|
+
// Running on an App Engine cloud infrastructure.
|
|
50
|
+
APPENGINE_CLOUD = 2;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
// An identifier of a server node of the application.
|
|
54
|
+
message NodeId {
|
|
55
|
+
|
|
56
|
+
string value = 1 [(required) = true];
|
|
57
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2022, TeamDev. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Redistribution and use in source and/or binary forms, with or without
|
|
11
|
+
* modification, must retain the above copyright notice and the following
|
|
12
|
+
* disclaimer.
|
|
13
|
+
*
|
|
14
|
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
15
|
+
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
16
|
+
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
17
|
+
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
18
|
+
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
19
|
+
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
20
|
+
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
21
|
+
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
22
|
+
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
23
|
+
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
24
|
+
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
25
|
+
*/
|
|
26
|
+
syntax = "proto3";
|
|
27
|
+
|
|
28
|
+
package spine.server.transport;
|
|
29
|
+
|
|
30
|
+
import "spine/options.proto";
|
|
31
|
+
|
|
32
|
+
option (type_url_prefix) = "type.spine.io";
|
|
33
|
+
option java_package = "io.spine.server.transport";
|
|
34
|
+
option java_outer_classname = "TransportProto";
|
|
35
|
+
option java_multiple_files = true;
|
|
36
|
+
|
|
37
|
+
// Identifier of a transport channel.
|
|
38
|
+
message ChannelId {
|
|
39
|
+
|
|
40
|
+
// The type URL of the messages transmitted through the channel.
|
|
41
|
+
string target_type = 1;
|
|
42
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2026, TeamDev. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* https://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Redistribution and use in source and/or binary forms, with or without
|
|
11
|
+
* modification, must retain the above copyright notice and the following
|
|
12
|
+
* disclaimer.
|
|
13
|
+
*
|
|
14
|
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
15
|
+
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
16
|
+
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
17
|
+
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
18
|
+
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
19
|
+
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
20
|
+
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
21
|
+
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
22
|
+
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
23
|
+
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
24
|
+
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
25
|
+
*/
|
|
26
|
+
syntax = "proto3";
|
|
27
|
+
|
|
28
|
+
package spine.string;
|
|
29
|
+
|
|
30
|
+
import "spine/options.proto";
|
|
31
|
+
|
|
32
|
+
option (type_url_prefix) = "type.spine.io";
|
|
33
|
+
option java_multiple_files = true;
|
|
34
|
+
option java_outer_classname = "TemplateStringProto";
|
|
35
|
+
option java_package = "io.spine.string";
|
|
36
|
+
|
|
37
|
+
// Represents a template string with placeholders and a map for further substituting
|
|
38
|
+
// those placeholders with the actual values.
|
|
39
|
+
//
|
|
40
|
+
// Placeholders are specified using the format `${key}`, where `key` is the identifier
|
|
41
|
+
// for the value to be substituted from the `placeholder_value` map. There are no
|
|
42
|
+
// expectations about the identifier format. It can be `myKey`, `my.key`, `my_key`, etc.
|
|
43
|
+
//
|
|
44
|
+
// Example usage:
|
|
45
|
+
// template_string = "My dog's name is ${dog.name}."
|
|
46
|
+
// placeholder_values = { "dog.name": "Fido" }
|
|
47
|
+
//
|
|
48
|
+
// After substitution, the final output would be:
|
|
49
|
+
// "My dog's name is Fido."
|
|
50
|
+
//
|
|
51
|
+
// Each placeholder `key` referenced in the template string must have a corresponding entry
|
|
52
|
+
// in the `placeholder_value` map. However, the `placeholder_value` map is not restricted to
|
|
53
|
+
// containing only the placeholders used in the template. Additional entries in the map
|
|
54
|
+
// that do not correspond to placeholders in the template string are permitted.
|
|
55
|
+
//
|
|
56
|
+
message TemplateString {
|
|
57
|
+
|
|
58
|
+
// The template string that may contain one or more placeholders.
|
|
59
|
+
string with_placeholders = 1;
|
|
60
|
+
|
|
61
|
+
// A map that provides values for placeholders referenced in `with_placeholders`.
|
|
62
|
+
//
|
|
63
|
+
// The keys in this map should match the placeholder keys inside `with_placeholders`
|
|
64
|
+
// excluding the `${}` placeholder markers.
|
|
65
|
+
//
|
|
66
|
+
// All placeholders present in `with_placeholders` must have corresponding entries
|
|
67
|
+
// in this map. Otherwise, the template is considered invalid.
|
|
68
|
+
//
|
|
69
|
+
map<string, string> placeholder_value = 2;
|
|
70
|
+
}
|
|
@@ -0,0 +1,280 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2026, TeamDev. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* https://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Redistribution and use in source and/or binary forms, with or without
|
|
11
|
+
* modification, must retain the above copyright notice and the following
|
|
12
|
+
* disclaimer.
|
|
13
|
+
*
|
|
14
|
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
15
|
+
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
16
|
+
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
17
|
+
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
18
|
+
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
19
|
+
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
20
|
+
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
21
|
+
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
22
|
+
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
23
|
+
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
24
|
+
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
25
|
+
*/
|
|
26
|
+
|
|
27
|
+
syntax = "proto3";
|
|
28
|
+
|
|
29
|
+
package spine.system.server;
|
|
30
|
+
|
|
31
|
+
import "spine/options.proto";
|
|
32
|
+
|
|
33
|
+
option (type_url_prefix) = "type.spine.io";
|
|
34
|
+
option (internal_all) = true;
|
|
35
|
+
|
|
36
|
+
option java_package = "io.spine.system.server.event";
|
|
37
|
+
option java_outer_classname = "EntityLogEventsProto";
|
|
38
|
+
option java_multiple_files = true;
|
|
39
|
+
|
|
40
|
+
import "google/protobuf/any.proto";
|
|
41
|
+
import "google/protobuf/timestamp.proto";
|
|
42
|
+
|
|
43
|
+
import "spine/core/diagnostics.proto";
|
|
44
|
+
import "spine/core/command.proto";
|
|
45
|
+
import "spine/core/event.proto";
|
|
46
|
+
import "spine/core/version.proto";
|
|
47
|
+
import "spine/system/server/entity_type.proto";
|
|
48
|
+
|
|
49
|
+
// An entity was created.
|
|
50
|
+
message EntityCreated {
|
|
51
|
+
|
|
52
|
+
// The ID of the entity.
|
|
53
|
+
core.MessageId entity = 1 [(required) = true];
|
|
54
|
+
|
|
55
|
+
// The kind of the entity.
|
|
56
|
+
EntityOption.Kind kind = 2 [(required) = true];
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
// An event is dispatched to a subscriber.
|
|
60
|
+
//
|
|
61
|
+
// This event is relevant only to histories of Projections.
|
|
62
|
+
//
|
|
63
|
+
message EventDispatchedToSubscriber {
|
|
64
|
+
option (is).java_type = "EventDispatchedMixin";
|
|
65
|
+
|
|
66
|
+
// The ID of the entity, which the event is dispatched to.
|
|
67
|
+
core.MessageId receiver = 1 [(required) = true];
|
|
68
|
+
|
|
69
|
+
// The dispatched event.
|
|
70
|
+
core.Event payload = 2 [(validate) = true];
|
|
71
|
+
|
|
72
|
+
// The time when the event was dispatched.
|
|
73
|
+
//
|
|
74
|
+
// This timestamp may differ from the one in the context of the event, since the time of
|
|
75
|
+
// dispatching may not be the same as the time of creation.
|
|
76
|
+
//
|
|
77
|
+
google.protobuf.Timestamp when_dispatched = 3 [(required) = true];
|
|
78
|
+
|
|
79
|
+
// The fully qualified name of the subscribing entity.
|
|
80
|
+
EntityTypeName entity_type = 4 [(required) = true];
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
// An event was dispatched to a reactor.
|
|
84
|
+
//
|
|
85
|
+
// This event is relevant to histories of Aggregates and ProcessManagers.
|
|
86
|
+
//
|
|
87
|
+
message EventDispatchedToReactor {
|
|
88
|
+
option (is).java_type = "EventDispatchedMixin";
|
|
89
|
+
|
|
90
|
+
// The ID of the entity, which the event is dispatched to.
|
|
91
|
+
core.MessageId receiver = 1 [(required) = true];
|
|
92
|
+
|
|
93
|
+
// The dispatched event.
|
|
94
|
+
core.Event payload = 2 [(validate) = true];
|
|
95
|
+
|
|
96
|
+
// The time when the event was dispatched.
|
|
97
|
+
//
|
|
98
|
+
// This timestamp may differ from the one in the context of the event, since the time of
|
|
99
|
+
// dispatching may not be the same as the time of creation.
|
|
100
|
+
//
|
|
101
|
+
google.protobuf.Timestamp when_dispatched = 3 [(required) = true];
|
|
102
|
+
|
|
103
|
+
// The fully qualified name of the reacting entity.
|
|
104
|
+
EntityTypeName entity_type = 4 [(required) = true];
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
// A command was dispatched to a command handler.
|
|
108
|
+
//
|
|
109
|
+
// This event is relevant only to histories of Aggregates and ProcessManagers.
|
|
110
|
+
//
|
|
111
|
+
message CommandDispatchedToHandler {
|
|
112
|
+
option (is).java_type = "CommandDispatchedMixin";
|
|
113
|
+
|
|
114
|
+
// The ID of the entity, which the command is dispatched to.
|
|
115
|
+
core.MessageId receiver = 1 [(required) = true];
|
|
116
|
+
|
|
117
|
+
// The dispatched command.
|
|
118
|
+
core.Command payload = 2 [(validate) = true];
|
|
119
|
+
|
|
120
|
+
// The time when the command was dispatched.
|
|
121
|
+
//
|
|
122
|
+
// This timestamp may differ from the one in the context of the event, since the time of
|
|
123
|
+
// dispatching may not be the same as the time of creation.
|
|
124
|
+
//
|
|
125
|
+
google.protobuf.Timestamp when_dispatched = 3 [(required) = true];
|
|
126
|
+
|
|
127
|
+
// The fully qualified name of the handling entity.
|
|
128
|
+
EntityTypeName entity_type = 4 [(required) = true];
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
// Retained for wire compatibility; no longer emitted.
|
|
132
|
+
//
|
|
133
|
+
// Formerly emitted when an event was imported into an aggregate. Event import was removed
|
|
134
|
+
// during the event-sourcing cutover.
|
|
135
|
+
//
|
|
136
|
+
message EventImported {
|
|
137
|
+
option (is).java_type = "EventDispatchedMixin";
|
|
138
|
+
|
|
139
|
+
// The ID of the aggregate, which imported the event.
|
|
140
|
+
core.MessageId receiver = 1 [(required) = true];
|
|
141
|
+
|
|
142
|
+
// The dispatched event.
|
|
143
|
+
core.Event payload = 2 [(validate) = true];
|
|
144
|
+
|
|
145
|
+
// The time when the event was imported.
|
|
146
|
+
google.protobuf.Timestamp when_imported = 3 [(required) = true];
|
|
147
|
+
|
|
148
|
+
// The fully qualified name of the receiver aggregate.
|
|
149
|
+
EntityTypeName entity_type = 4 [(required) = true];
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
// A state of an entity has changed.
|
|
153
|
+
//
|
|
154
|
+
// The event transfers both "old" and "new" states of the entity to allow the further
|
|
155
|
+
// distinction for the subscribers.
|
|
156
|
+
//
|
|
157
|
+
message EntityStateChanged {
|
|
158
|
+
option (is).java_type = "EntityLifecycleEvent";
|
|
159
|
+
|
|
160
|
+
// The ID of the entity.
|
|
161
|
+
core.MessageId entity = 1 [(required) = true];
|
|
162
|
+
|
|
163
|
+
// The old state of the entity.
|
|
164
|
+
//
|
|
165
|
+
// May be empty if the entity has just been created.
|
|
166
|
+
//
|
|
167
|
+
google.protobuf.Any old_state = 6;
|
|
168
|
+
|
|
169
|
+
// The new state of the entity.
|
|
170
|
+
google.protobuf.Any new_state = 2 [(required) = true];
|
|
171
|
+
|
|
172
|
+
// The IDs of the signals that caused the mutation.
|
|
173
|
+
repeated core.MessageId signal_id = 3 [(required) = true, (validate) = true];
|
|
174
|
+
|
|
175
|
+
// The instant when the entity was changed.
|
|
176
|
+
google.protobuf.Timestamp when = 4;
|
|
177
|
+
|
|
178
|
+
// The new version of the entity.
|
|
179
|
+
core.Version new_version = 5;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
// An entity was marked as archived.
|
|
183
|
+
message EntityArchived {
|
|
184
|
+
option (is).java_type = "EntityLifecycleEvent";
|
|
185
|
+
|
|
186
|
+
// The ID of the entity.
|
|
187
|
+
core.MessageId entity = 1 [(required) = true];
|
|
188
|
+
|
|
189
|
+
// The IDs of the signals that caused the mutation.
|
|
190
|
+
repeated core.MessageId signal_id = 2 [(required) = true, (validate) = true];
|
|
191
|
+
|
|
192
|
+
// The instant when the entity was archived.
|
|
193
|
+
google.protobuf.Timestamp when = 3;
|
|
194
|
+
|
|
195
|
+
// The version received by the entity upon archiving.
|
|
196
|
+
core.Version version = 4;
|
|
197
|
+
|
|
198
|
+
// The last known state of the entity.
|
|
199
|
+
google.protobuf.Any last_state = 5;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
// An entity was either marked as deleted or had its record physically removed from the storage.
|
|
203
|
+
message EntityDeleted {
|
|
204
|
+
option (is).java_type = "EntityLifecycleEvent";
|
|
205
|
+
|
|
206
|
+
// The ID of the entity.
|
|
207
|
+
core.MessageId entity = 1 [(required) = true];
|
|
208
|
+
|
|
209
|
+
// The IDs of the signals that caused the mutation.
|
|
210
|
+
repeated core.MessageId signal_id = 2 [(required) = true, (validate) = true];
|
|
211
|
+
|
|
212
|
+
// The instant when the entity was deleted.
|
|
213
|
+
google.protobuf.Timestamp when = 3;
|
|
214
|
+
|
|
215
|
+
// The version received by the entity upon deletion.
|
|
216
|
+
core.Version version = 4;
|
|
217
|
+
|
|
218
|
+
oneof deletion {
|
|
219
|
+
|
|
220
|
+
// The entity was marked as deleted.
|
|
221
|
+
bool marked_as_deleted = 5;
|
|
222
|
+
|
|
223
|
+
// The entity record was physically removed from the storage.
|
|
224
|
+
bool removed_from_storage = 6;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
// The last known state of the entity.
|
|
228
|
+
google.protobuf.Any last_state = 7;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
// An entity was marked as NOT archived.
|
|
232
|
+
message EntityUnarchived {
|
|
233
|
+
option (is).java_type = "EntityLifecycleEvent";
|
|
234
|
+
|
|
235
|
+
// The ID of the entity.
|
|
236
|
+
core.MessageId entity = 1 [(required) = true];
|
|
237
|
+
|
|
238
|
+
// The IDs of the signals that caused the mutation.
|
|
239
|
+
repeated core.MessageId signal_id = 2 [(required) = true, (validate) = true];
|
|
240
|
+
|
|
241
|
+
// The instant when the entity was unarchived.
|
|
242
|
+
google.protobuf.Timestamp when = 3;
|
|
243
|
+
|
|
244
|
+
// The version received by the entity upon unarchiving.
|
|
245
|
+
core.Version version = 4;
|
|
246
|
+
|
|
247
|
+
// The state of the entity after marking it as non-archived.
|
|
248
|
+
google.protobuf.Any state = 5;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
// An entity was marked as NOT deleted.
|
|
252
|
+
message EntityRestored {
|
|
253
|
+
option (is).java_type = "EntityLifecycleEvent";
|
|
254
|
+
|
|
255
|
+
// The ID of the entity.
|
|
256
|
+
core.MessageId entity = 1 [(required) = true];
|
|
257
|
+
|
|
258
|
+
// The IDs of the signals that caused the mutation.
|
|
259
|
+
repeated core.MessageId signal_id = 2 [(required) = true, (validate) = true];
|
|
260
|
+
|
|
261
|
+
// The instant when the entity was restored.
|
|
262
|
+
google.protobuf.Timestamp when = 3;
|
|
263
|
+
|
|
264
|
+
// The version received by the entity upon restoration.
|
|
265
|
+
core.Version version = 4;
|
|
266
|
+
|
|
267
|
+
// The state of the entity after restoration.
|
|
268
|
+
google.protobuf.Any state = 5;
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
// A migration operation was applied to an entity.
|
|
272
|
+
message MigrationApplied {
|
|
273
|
+
option (is).java_type = "EntityLifecycleEvent";
|
|
274
|
+
|
|
275
|
+
// The ID of the entity.
|
|
276
|
+
core.MessageId entity = 1 [(required) = true];
|
|
277
|
+
|
|
278
|
+
// The instant when the migration was applied.
|
|
279
|
+
google.protobuf.Timestamp when = 2;
|
|
280
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2022, TeamDev. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Redistribution and use in source and/or binary forms, with or without
|
|
11
|
+
* modification, must retain the above copyright notice and the following
|
|
12
|
+
* disclaimer.
|
|
13
|
+
*
|
|
14
|
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
15
|
+
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
16
|
+
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
17
|
+
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
18
|
+
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
19
|
+
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
20
|
+
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
21
|
+
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
22
|
+
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
23
|
+
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
24
|
+
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
25
|
+
*/
|
|
26
|
+
syntax = "proto3";
|
|
27
|
+
|
|
28
|
+
package spine.system.server;
|
|
29
|
+
|
|
30
|
+
import "spine/options.proto";
|
|
31
|
+
|
|
32
|
+
option (type_url_prefix) = "type.spine.io";
|
|
33
|
+
option java_package = "io.spine.system.server";
|
|
34
|
+
option java_outer_classname = "EntityTypeProto";
|
|
35
|
+
option java_multiple_files = true;
|
|
36
|
+
|
|
37
|
+
// Fully qualified name of an entity type.
|
|
38
|
+
//
|
|
39
|
+
// Unlike a type URL of the entity state, an `EntityTypeName` represents the name of the entity
|
|
40
|
+
// class in the implementation language, such as Java.
|
|
41
|
+
//
|
|
42
|
+
message EntityTypeName {
|
|
43
|
+
|
|
44
|
+
oneof impl {
|
|
45
|
+
|
|
46
|
+
// The canonical name of the Java entity class.
|
|
47
|
+
string java_class_name = 1;
|
|
48
|
+
}
|
|
49
|
+
}
|