@spine-event-engine/proto 2.0.0-snapshot.10
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 +142 -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 +64 -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,181 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Generated by Spine TypeScript. Do not edit manually.
|
|
3
|
+
* Source Proto: spine/validation/validation_error.proto
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
// @generated by protoc-gen-es v2.12.1 with parameter "target=ts,import_extension=js"
|
|
9
|
+
// @generated from file spine/validation/validation_error.proto (package spine.validation, syntax proto3)
|
|
10
|
+
/* eslint-disable */
|
|
11
|
+
|
|
12
|
+
import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
|
|
13
|
+
import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
|
|
14
|
+
import { file_spine_options } from "../options_pb.js";
|
|
15
|
+
import type { Any } from "@bufbuild/protobuf/wkt";
|
|
16
|
+
import { file_google_protobuf_any } from "@bufbuild/protobuf/wkt";
|
|
17
|
+
import type { TemplateString } from "../string/template_string_pb.js";
|
|
18
|
+
import { file_spine_string_template_string } from "../string/template_string_pb.js";
|
|
19
|
+
import type { FieldPath } from "../base/field_path_pb.js";
|
|
20
|
+
import { file_spine_base_field_path } from "../base/field_path_pb.js";
|
|
21
|
+
import type { Message } from "@bufbuild/protobuf";
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Describes the file spine/validation/validation_error.proto.
|
|
25
|
+
* Generated from Proto: spine/validation/validation_error.proto.
|
|
26
|
+
*/
|
|
27
|
+
export const file_spine_validation_validation_error: GenFile = /*@__PURE__*/
|
|
28
|
+
fileDesc("CidzcGluZS92YWxpZGF0aW9uL3ZhbGlkYXRpb25fZXJyb3IucHJvdG8SEHNwaW5lLnZhbGlkYXRpb24iVgoPVmFsaWRhdGlvbkVycm9yEkMKFGNvbnN0cmFpbnRfdmlvbGF0aW9uGAEgAygLMiUuc3BpbmUudmFsaWRhdGlvbi5Db25zdHJhaW50VmlvbGF0aW9uIpYCChNDb25zdHJhaW50VmlvbGF0aW9uEhYKCm1zZ19mb3JtYXQYASABKAlCAhgBEhEKBXBhcmFtGAIgAygJQgIYARItCgdtZXNzYWdlGAggASgLMhwuc3BpbmUuc3RyaW5nLlRlbXBsYXRlU3RyaW5nEhEKCXR5cGVfbmFtZRgHIAEoCRIpCgpmaWVsZF9wYXRoGAMgASgLMhUuc3BpbmUuYmFzZS5GaWVsZFBhdGgSKQoLZmllbGRfdmFsdWUYBCABKAsyFC5nb29nbGUucHJvdG9idWYuQW55EjwKCXZpb2xhdGlvbhgFIAMoCzIlLnNwaW5lLnZhbGlkYXRpb24uQ29uc3RyYWludFZpb2xhdGlvbkICGAFCPgoTaW8uc3BpbmUudmFsaWRhdGlvbkIUVmFsaWRhdGlvbkVycm9yUHJvdG9QAaqNJA10eXBlLnNwaW5lLmlvYgZwcm90bzM", [file_spine_options, file_google_protobuf_any, file_spine_string_template_string, file_spine_base_field_path]);
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* An error indicating that a message did not pass validation.
|
|
32
|
+
*
|
|
33
|
+
* @generated from message spine.validation.ValidationError
|
|
34
|
+
* Generated from Proto: spine/validation/validation_error.proto.
|
|
35
|
+
*/
|
|
36
|
+
export type ValidationError = Message<"spine.validation.ValidationError"> & {
|
|
37
|
+
/**
|
|
38
|
+
* Validation constraint violations found by validator.
|
|
39
|
+
*
|
|
40
|
+
* @generated from field: repeated spine.validation.ConstraintViolation constraint_violation = 1;
|
|
41
|
+
*/
|
|
42
|
+
constraintViolation: ConstraintViolation[];
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Describes the message spine.validation.ValidationError.
|
|
47
|
+
* Use `create(ValidationErrorSchema)` to create a new message.
|
|
48
|
+
* Generated from Proto: spine/validation/validation_error.proto.
|
|
49
|
+
*/
|
|
50
|
+
export const ValidationErrorSchema: GenMessage<ValidationError> = /*@__PURE__*/
|
|
51
|
+
messageDesc(file_spine_validation_validation_error, 0);
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Describes the violation of a validation constraint found in a message.
|
|
55
|
+
*
|
|
56
|
+
* @generated from message spine.validation.ConstraintViolation
|
|
57
|
+
* Generated from Proto: spine/validation/validation_error.proto.
|
|
58
|
+
*/
|
|
59
|
+
export type ConstraintViolation = Message<"spine.validation.ConstraintViolation"> & {
|
|
60
|
+
/**
|
|
61
|
+
* Deprecated: use `message` field to access the error message.
|
|
62
|
+
*
|
|
63
|
+
* @generated from field: string msg_format = 1 [deprecated = true];
|
|
64
|
+
* @deprecated
|
|
65
|
+
*/
|
|
66
|
+
msgFormat: string;
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* Deprecated: use `message` field to access the error message.
|
|
70
|
+
*
|
|
71
|
+
* @generated from field: repeated string param = 2 [deprecated = true];
|
|
72
|
+
* @deprecated
|
|
73
|
+
*/
|
|
74
|
+
param: string[];
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* An error message for this violation.
|
|
78
|
+
*
|
|
79
|
+
* The returned message can be formatted using one of the following approaches:
|
|
80
|
+
*
|
|
81
|
+
* 1. In Kotlin, use the `TemplateString.format()` extension.
|
|
82
|
+
* 2. In Java, use the `io.spine.string.TemplateStrings.format()` static method.
|
|
83
|
+
*
|
|
84
|
+
*
|
|
85
|
+
* @generated from field: spine.string.TemplateString message = 8;
|
|
86
|
+
*/
|
|
87
|
+
message?: TemplateString | undefined;
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* The name of the validated message type.
|
|
91
|
+
*
|
|
92
|
+
* If the `(validate)` option is applied and a nested field contains an invalid value,
|
|
93
|
+
* this property holds the name of the root message, which triggered the validation.
|
|
94
|
+
*
|
|
95
|
+
* Example:
|
|
96
|
+
*
|
|
97
|
+
* ```
|
|
98
|
+
* message AddressBook {
|
|
99
|
+
* Contacts contacts = 1 [(validate) = true];
|
|
100
|
+
* }
|
|
101
|
+
*
|
|
102
|
+
* message Contacts {
|
|
103
|
+
* Email email = 1 [(validate) = true];
|
|
104
|
+
* }
|
|
105
|
+
*
|
|
106
|
+
* message Email {
|
|
107
|
+
* string value = 1 [(pattern).regex = "^[\\w.-]+@[\\w.-]+\\.[a-zA-Z]{2,}$"];
|
|
108
|
+
* }
|
|
109
|
+
* ```
|
|
110
|
+
*
|
|
111
|
+
* When the `AddressBook` message is validated and the `value` field in the nested `Email`
|
|
112
|
+
* message is invalid, this property will contain the `AddressBook` type name, not `Email`.
|
|
113
|
+
* This is so because this type is an entry point to the nested validation.
|
|
114
|
+
*
|
|
115
|
+
*
|
|
116
|
+
* @generated from field: string type_name = 7;
|
|
117
|
+
*/
|
|
118
|
+
typeName: string;
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* A path to the field containing an invalid value.
|
|
122
|
+
*
|
|
123
|
+
* If the `(validate)` option is applied and a nested field contains an invalid value,
|
|
124
|
+
* this property holds the path to the invalid field. If there is no nesting, the path
|
|
125
|
+
* consists only of the field name.
|
|
126
|
+
*
|
|
127
|
+
* Example:
|
|
128
|
+
*
|
|
129
|
+
* ```
|
|
130
|
+
* message Student {
|
|
131
|
+
* Contacts contacts = 1 [(validate) = true];
|
|
132
|
+
* }
|
|
133
|
+
*
|
|
134
|
+
* message Contacts {
|
|
135
|
+
* Email email = 1 [(validate) = true];
|
|
136
|
+
* }
|
|
137
|
+
*
|
|
138
|
+
* message Email {
|
|
139
|
+
* string value = 1 [(pattern).regex = "^[\\w.-]+@[\\w.-]+\\.[a-zA-Z]{2,}$"];
|
|
140
|
+
* }
|
|
141
|
+
* ```
|
|
142
|
+
*
|
|
143
|
+
* When the `Student` message is validated and the `value` field in the nested `Email` message
|
|
144
|
+
* is invalid, this property will contain the full path to the invalid field: `contacts.email.value`.
|
|
145
|
+
* However, if the `Email` message is validated independently (not as part of `Student`),
|
|
146
|
+
* the path will consist only of the field name: `value`.
|
|
147
|
+
*
|
|
148
|
+
*
|
|
149
|
+
* @generated from field: spine.base.FieldPath field_path = 3;
|
|
150
|
+
*/
|
|
151
|
+
fieldPath?: FieldPath | undefined;
|
|
152
|
+
|
|
153
|
+
/**
|
|
154
|
+
* The value of the field which violates the validation constraint.
|
|
155
|
+
*
|
|
156
|
+
* Contains a corresponding wrapper message for primitives
|
|
157
|
+
* (google.protobuf.StringValue for "string" field type and so on).
|
|
158
|
+
*
|
|
159
|
+
*
|
|
160
|
+
* @generated from field: google.protobuf.Any field_value = 4;
|
|
161
|
+
*/
|
|
162
|
+
fieldValue?: Any | undefined;
|
|
163
|
+
|
|
164
|
+
/**
|
|
165
|
+
* Deprecated: all violations are top-level now. Their nesting is reflected in the value
|
|
166
|
+
* of `field_path` field.
|
|
167
|
+
*
|
|
168
|
+
* @generated from field: repeated spine.validation.ConstraintViolation violation = 5 [deprecated = true];
|
|
169
|
+
* @deprecated
|
|
170
|
+
*/
|
|
171
|
+
violation: ConstraintViolation[];
|
|
172
|
+
};
|
|
173
|
+
|
|
174
|
+
/**
|
|
175
|
+
* Describes the message spine.validation.ConstraintViolation.
|
|
176
|
+
* Use `create(ConstraintViolationSchema)` to create a new message.
|
|
177
|
+
* Generated from Proto: spine/validation/validation_error.proto.
|
|
178
|
+
*/
|
|
179
|
+
export const ConstraintViolationSchema: GenMessage<ConstraintViolation> = /*@__PURE__*/
|
|
180
|
+
messageDesc(file_spine_validation_validation_error, 1);
|
|
181
|
+
|
package/package.json
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@spine-event-engine/proto",
|
|
3
|
+
"version": "2.0.0-snapshot.10",
|
|
4
|
+
"license": "Apache-2.0",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "https://github.com/SpineEventEngine/spine-ts",
|
|
9
|
+
"directory": "packages/proto"
|
|
10
|
+
},
|
|
11
|
+
"publishConfig": {
|
|
12
|
+
"registry": "https://registry.npmjs.org/",
|
|
13
|
+
"access": "public"
|
|
14
|
+
},
|
|
15
|
+
"description": "Spine TS generated Protobuf-ES schema exports.",
|
|
16
|
+
"exports": {
|
|
17
|
+
".": {
|
|
18
|
+
"types": "./dist/src/index.d.ts",
|
|
19
|
+
"default": "./dist/src/index.js"
|
|
20
|
+
},
|
|
21
|
+
"./client": {
|
|
22
|
+
"types": "./dist/src/client/index.d.ts",
|
|
23
|
+
"default": "./dist/src/client/index.js"
|
|
24
|
+
},
|
|
25
|
+
"./auth": {
|
|
26
|
+
"types": "./dist/src/auth/index.d.ts",
|
|
27
|
+
"default": "./dist/src/auth/index.js"
|
|
28
|
+
},
|
|
29
|
+
"./delivery": {
|
|
30
|
+
"types": "./dist/src/delivery/index.d.ts",
|
|
31
|
+
"default": "./dist/src/delivery/index.js"
|
|
32
|
+
},
|
|
33
|
+
"./delivery-server": {
|
|
34
|
+
"types": "./dist/src/delivery-server/index.d.ts",
|
|
35
|
+
"default": "./dist/src/delivery-server/index.js"
|
|
36
|
+
},
|
|
37
|
+
"./deployment": {
|
|
38
|
+
"types": "./dist/src/deployment/index.d.ts",
|
|
39
|
+
"default": "./dist/src/deployment/index.js"
|
|
40
|
+
},
|
|
41
|
+
"./spine-proto-manifest.json": "./spine-proto-manifest.json",
|
|
42
|
+
"./proto/*": "./proto/*",
|
|
43
|
+
"./generated/*.js": {
|
|
44
|
+
"types": "./dist/generated/*.d.ts",
|
|
45
|
+
"default": "./dist/generated/*.js"
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
"files": [
|
|
49
|
+
"dist",
|
|
50
|
+
"generated",
|
|
51
|
+
"README.md",
|
|
52
|
+
"REFERENCE.md",
|
|
53
|
+
"proto",
|
|
54
|
+
"spine-proto.json",
|
|
55
|
+
"spine-proto-manifest.json"
|
|
56
|
+
],
|
|
57
|
+
"dependencies": {
|
|
58
|
+
"@bufbuild/protobuf": "2.12.1"
|
|
59
|
+
},
|
|
60
|
+
"devDependencies": {
|
|
61
|
+
"@spine-event-engine/core": "2.0.0-snapshot.10",
|
|
62
|
+
"@spine-event-engine/server": "2.0.0-snapshot.10"
|
|
63
|
+
}
|
|
64
|
+
}
|
package/proto/README.md
ADDED
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
# Spine Protobuf sources
|
|
2
|
+
|
|
3
|
+
This directory contains the `.proto` files used by Spine TS. Most are exact
|
|
4
|
+
copies of Spine JVM contracts, so TypeScript and JVM applications can exchange
|
|
5
|
+
the same commands, events, queries, subscriptions, and context messages. A
|
|
6
|
+
small number are internal Spine TS contracts.
|
|
7
|
+
|
|
8
|
+
## 📌 Two kinds of source
|
|
9
|
+
|
|
10
|
+
[`spine-sources.json`](spine-sources.json) records both kinds of source:
|
|
11
|
+
|
|
12
|
+
- `sources` are frozen copies from upstream Spine repositories. Each entry has
|
|
13
|
+
the repository, commit, source URL, raw URL, and SHA-256 checksum. Do not
|
|
14
|
+
edit one by hand. Copy it from its pinned raw URL, preserve it byte-for-byte,
|
|
15
|
+
then update its manifest checksum and descriptor lock through the verification
|
|
16
|
+
workflow.
|
|
17
|
+
- `ownedSources` are small Spine TS-maintained internal schemas. Edit these as
|
|
18
|
+
normal framework source, update their checksum in the manifest, and regenerate
|
|
19
|
+
the descriptor lock. They are still checked so changes stay deliberate and
|
|
20
|
+
reproducible.
|
|
21
|
+
|
|
22
|
+
## 💡 Why verify sources?
|
|
23
|
+
|
|
24
|
+
- ✅ Builds and tests do not need the network.
|
|
25
|
+
- ✅ Frozen copies retain their upstream repository, commit, URLs, and SHA-256.
|
|
26
|
+
- ✅ Local internal schemas have an explicit checksum and descriptor history.
|
|
27
|
+
- ✅ Descriptor checks catch changes to fields, options, type URLs, and imports.
|
|
28
|
+
- ✅ Generated TypeScript always comes from a known contract set.
|
|
29
|
+
|
|
30
|
+
The current inventory has 41 frozen source files and two internal Spine TS
|
|
31
|
+
internal schemas. Buf adds standard imported descriptors while compiling them,
|
|
32
|
+
producing the 52-file descriptor set checked by this repository.
|
|
33
|
+
|
|
34
|
+
## 🚀 Verify and generate
|
|
35
|
+
|
|
36
|
+
Run these commands from the repository root:
|
|
37
|
+
|
|
38
|
+
```bash
|
|
39
|
+
pnpm proto:verify
|
|
40
|
+
pnpm proto:lint
|
|
41
|
+
pnpm proto:generate
|
|
42
|
+
pnpm proto:check-generated
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
`proto:verify` checks that every frozen copy and every maintained schema matches its
|
|
46
|
+
manifest checksum. `proto:lint` checks the contracts with the narrow
|
|
47
|
+
compatibility exceptions required by frozen original Spine files.
|
|
48
|
+
`proto:generate` rebuilds `packages/proto/generated`; the generated directory
|
|
49
|
+
must not be a symlink. `proto:check-generated` rejects missing, stale, orphaned,
|
|
50
|
+
tracked, or symlinked generated output.
|
|
51
|
+
|
|
52
|
+
## 🔒 Descriptor compatibility
|
|
53
|
+
|
|
54
|
+
Before generation, the workflow builds a complete
|
|
55
|
+
`google.protobuf.FileDescriptorSet`, removes only source-location comments,
|
|
56
|
+
orders files by name, and compares the result with
|
|
57
|
+
`frozen-descriptor-set.sha256`. Custom options and unknown fields remain in the
|
|
58
|
+
checksum, so compatibility-relevant changes fail closed.
|
|
59
|
+
|
|
60
|
+
The frozen `spine/options.proto` source is pinned to
|
|
61
|
+
[`SpineEventEngine/base-libraries@51cb428771e5af8a944675fb8e26e9eb2c3d0dfe`](https://github.com/SpineEventEngine/base-libraries/blob/51cb428771e5af8a944675fb8e26e9eb2c3d0dfe/base/src/main/proto/spine/options.proto).
|
|
62
|
+
It retains its Java option fields and adds the upstream TypeScript-only
|
|
63
|
+
`(is).ts_type` and `(every_is).ts_type` declarations. The source manifest and
|
|
64
|
+
descriptor lock verify the exact bytes and field numbers; later generator work
|
|
65
|
+
owns interpretation and generation of those markers.
|
|
66
|
+
|
|
67
|
+
## ⚠️ Original naming is preserved
|
|
68
|
+
|
|
69
|
+
Some frozen Spine files use legacy enum, field, package, or version names. They
|
|
70
|
+
remain unchanged because they are wire contracts shared with Spine JVM. New
|
|
71
|
+
application Proto packages should follow the current naming guidance in the
|
|
72
|
+
[end-user guide](../../../docs/USER_GUIDE.md).
|
|
73
|
+
|
|
74
|
+
The `spine/system/server` schemas are framework-internal contracts. They are
|
|
75
|
+
generated for Spine TS runtime packages but are not curated end-user exports.
|
|
76
|
+
|
|
77
|
+
## 🔗 Learn more
|
|
78
|
+
|
|
79
|
+
- [Protobuf package](../README.md)
|
|
80
|
+
- [Protobuf tooling](../../proto-tools/README.md)
|
|
81
|
+
- [JVM compatibility checks](../../../compatibility-tests/jvm/README.md)
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
// Copyright 2015 The gRPC Authors
|
|
2
|
+
//
|
|
3
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
// you may not use this file except in compliance with the License.
|
|
5
|
+
// You may obtain a copy of the License at
|
|
6
|
+
//
|
|
7
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
//
|
|
9
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
// See the License for the specific language governing permissions and
|
|
13
|
+
// limitations under the License.
|
|
14
|
+
|
|
15
|
+
// The canonical version of this proto can be found at
|
|
16
|
+
// https://github.com/grpc/grpc-proto/blob/master/grpc/health/v1/health.proto
|
|
17
|
+
|
|
18
|
+
syntax = "proto3";
|
|
19
|
+
|
|
20
|
+
package grpc.health.v1;
|
|
21
|
+
|
|
22
|
+
option csharp_namespace = "Grpc.Health.V1";
|
|
23
|
+
option go_package = "google.golang.org/grpc/health/grpc_health_v1";
|
|
24
|
+
option java_multiple_files = true;
|
|
25
|
+
option java_outer_classname = "HealthProto";
|
|
26
|
+
option java_package = "io.grpc.health.v1";
|
|
27
|
+
|
|
28
|
+
message HealthCheckRequest {
|
|
29
|
+
string service = 1;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
message HealthCheckResponse {
|
|
33
|
+
enum ServingStatus {
|
|
34
|
+
UNKNOWN = 0;
|
|
35
|
+
SERVING = 1;
|
|
36
|
+
NOT_SERVING = 2;
|
|
37
|
+
SERVICE_UNKNOWN = 3; // Used only by the Watch method.
|
|
38
|
+
}
|
|
39
|
+
ServingStatus status = 1;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
service Health {
|
|
43
|
+
// If the requested service is unknown, the call will fail with status
|
|
44
|
+
// NOT_FOUND.
|
|
45
|
+
rpc Check(HealthCheckRequest) returns (HealthCheckResponse);
|
|
46
|
+
|
|
47
|
+
// Performs a watch for the serving status of the requested service.
|
|
48
|
+
// The server will immediately send back a message indicating the current
|
|
49
|
+
// serving status. It will then subsequently send a new message whenever
|
|
50
|
+
// the service's serving status changes.
|
|
51
|
+
//
|
|
52
|
+
// If the requested service is unknown when the call is received, the
|
|
53
|
+
// server will send a message setting the serving status to
|
|
54
|
+
// SERVICE_UNKNOWN but will *not* terminate the call. If at some
|
|
55
|
+
// future point, the serving status of the service becomes known, the
|
|
56
|
+
// server will send a new message with the service's serving status.
|
|
57
|
+
//
|
|
58
|
+
// If the call terminates with status UNIMPLEMENTED, then clients
|
|
59
|
+
// should assume this method is not supported and should not retry the
|
|
60
|
+
// call. If the call terminates with any other status (including OK),
|
|
61
|
+
// clients should retry the call with appropriate exponential backoff.
|
|
62
|
+
rpc Watch(HealthCheckRequest) returns (stream HealthCheckResponse);
|
|
63
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2026, CodeMatters. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
|
|
5
|
+
* in compliance with the License. You may obtain a copy of the License at
|
|
6
|
+
*
|
|
7
|
+
* https://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
*
|
|
9
|
+
* Unless required by applicable law or agreed to in writing, software distributed under the License
|
|
10
|
+
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
|
|
11
|
+
* or implied. See the License for the specific language governing permissions and limitations under
|
|
12
|
+
* the License.
|
|
13
|
+
*/
|
|
14
|
+
syntax = "proto3";
|
|
15
|
+
|
|
16
|
+
package spine.auth;
|
|
17
|
+
|
|
18
|
+
import "google/protobuf/timestamp.proto";
|
|
19
|
+
import "spine/client/subscription.proto";
|
|
20
|
+
import "spine/options.proto";
|
|
21
|
+
|
|
22
|
+
option (type_url_prefix) = "type.spine.io";
|
|
23
|
+
option java_multiple_files = true;
|
|
24
|
+
|
|
25
|
+
// A subscription accepted through an authenticated Gateway request.
|
|
26
|
+
message GatewayAuthenticatedSubscription {
|
|
27
|
+
|
|
28
|
+
// The identifier used to store this record.
|
|
29
|
+
spine.client.SubscriptionId id = 1 [(required) = true, (validate) = true];
|
|
30
|
+
|
|
31
|
+
// The authenticated subscription, including its Actor and Tenant context.
|
|
32
|
+
spine.client.Subscription subscription = 2 [(required) = true, (validate) = true];
|
|
33
|
+
|
|
34
|
+
// The time after which the authenticated subscription is no longer valid.
|
|
35
|
+
google.protobuf.Timestamp when_expires = 3 [(required) = true];
|
|
36
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2026, CodeMatters. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
|
|
5
|
+
* in compliance with the License. You may obtain a copy of the License at
|
|
6
|
+
*
|
|
7
|
+
* https://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
*
|
|
9
|
+
* Unless required by applicable law or agreed to in writing, software distributed under the License
|
|
10
|
+
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
|
|
11
|
+
* or implied. See the License for the specific language governing permissions and limitations under
|
|
12
|
+
* the License.
|
|
13
|
+
*/
|
|
14
|
+
syntax = "proto3";
|
|
15
|
+
|
|
16
|
+
package spine.auth;
|
|
17
|
+
|
|
18
|
+
import "google/protobuf/timestamp.proto";
|
|
19
|
+
import "spine/core/tenant_id.proto";
|
|
20
|
+
import "spine/core/user_id.proto";
|
|
21
|
+
import "spine/options.proto";
|
|
22
|
+
|
|
23
|
+
option (type_url_prefix) = "type.spine.io";
|
|
24
|
+
option java_multiple_files = true;
|
|
25
|
+
|
|
26
|
+
// The provider-neutral gateway contract for informational browser context.
|
|
27
|
+
service AuthenticationService {
|
|
28
|
+
|
|
29
|
+
// Resolves the current actor, tenant, and application-session expiry.
|
|
30
|
+
rpc ResolveContext(ResolveContextRequest) returns (ResolveContextResponse);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
// The session credential travels in transport metadata, not in this message.
|
|
34
|
+
message ResolveContextRequest {}
|
|
35
|
+
|
|
36
|
+
// Informational session context; each later request is independently authorized.
|
|
37
|
+
message ResolveContextResponse {
|
|
38
|
+
|
|
39
|
+
// The user represented by the authenticated request.
|
|
40
|
+
spine.core.UserId actor = 1;
|
|
41
|
+
|
|
42
|
+
// The tenant in whose scope the request is authorized.
|
|
43
|
+
spine.core.TenantId tenant = 2;
|
|
44
|
+
|
|
45
|
+
// The time after which the resolved session is no longer valid.
|
|
46
|
+
google.protobuf.Timestamp expires_at = 3;
|
|
47
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
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.base;
|
|
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 = "ErrorProto";
|
|
35
|
+
option java_package = "io.spine.base";
|
|
36
|
+
|
|
37
|
+
import "google/protobuf/struct.proto";
|
|
38
|
+
import "google/protobuf/any.proto";
|
|
39
|
+
|
|
40
|
+
// Information on a technical error occurred in the system.
|
|
41
|
+
message Error {
|
|
42
|
+
|
|
43
|
+
// The type of the error.
|
|
44
|
+
//
|
|
45
|
+
// It can be an exception from Java, C# (or another language) or a Proto enum name.
|
|
46
|
+
//
|
|
47
|
+
string type = 1;
|
|
48
|
+
|
|
49
|
+
// An integer code resulting from a native code call, or a number from a Proto enum value.
|
|
50
|
+
int32 code = 2;
|
|
51
|
+
|
|
52
|
+
reserved "validation_error";
|
|
53
|
+
reserved 3; // It used to be the index of the deprecated `validation_error` field.
|
|
54
|
+
|
|
55
|
+
// The message of the error wrapped into `Any`, if available.
|
|
56
|
+
google.protobuf.Any details = 4;
|
|
57
|
+
|
|
58
|
+
reserved 5 to 9;
|
|
59
|
+
|
|
60
|
+
// A developer-readable diagnostics message on the error.
|
|
61
|
+
string message = 10;
|
|
62
|
+
|
|
63
|
+
// Additional information on the error.
|
|
64
|
+
map<string, google.protobuf.Value> attributes = 11;
|
|
65
|
+
|
|
66
|
+
// A stacktrace of an exception (if available).
|
|
67
|
+
string stacktrace = 12;
|
|
68
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2024, 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.base;
|
|
29
|
+
|
|
30
|
+
import "spine/options.proto";
|
|
31
|
+
|
|
32
|
+
option (type_url_prefix) = "type.spine.io";
|
|
33
|
+
option java_package = "io.spine.base";
|
|
34
|
+
option java_outer_classname = "FieldPathProto";
|
|
35
|
+
option java_multiple_files = true;
|
|
36
|
+
|
|
37
|
+
// Field path provides field names of nested messages.
|
|
38
|
+
//
|
|
39
|
+
// The first entry in the names list is a name of a field in the root message.
|
|
40
|
+
// The second entry is the name of the field in the nested message, and so on.
|
|
41
|
+
//
|
|
42
|
+
// For example, consider the following message declarations:
|
|
43
|
+
//
|
|
44
|
+
// message CustomerAccount {
|
|
45
|
+
// User user = 1;
|
|
46
|
+
// }
|
|
47
|
+
//
|
|
48
|
+
// message User {
|
|
49
|
+
// string name = 1;
|
|
50
|
+
// }
|
|
51
|
+
//
|
|
52
|
+
// The field path for `name` field of the `User` message enclosed into the `CustomerAccount`
|
|
53
|
+
// is ["user", "name"].
|
|
54
|
+
//
|
|
55
|
+
message FieldPath {
|
|
56
|
+
|
|
57
|
+
// Unqualified field names.
|
|
58
|
+
repeated string field_name = 1;
|
|
59
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
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.client;
|
|
30
|
+
|
|
31
|
+
import "spine/options.proto";
|
|
32
|
+
|
|
33
|
+
option (type_url_prefix) = "type.spine.io";
|
|
34
|
+
// We put gRPC-based classes into `grpc` sub-package, which is annotated as `@Internal`
|
|
35
|
+
// to hide implementation details from the public API of the framework.
|
|
36
|
+
option java_package = "io.spine.client.grpc";
|
|
37
|
+
option java_multiple_files = true;
|
|
38
|
+
option java_outer_classname = "CommandServiceProto";
|
|
39
|
+
|
|
40
|
+
import "spine/core/command.proto";
|
|
41
|
+
import "spine/core/ack.proto";
|
|
42
|
+
|
|
43
|
+
// A service for posting commands to the application backend.
|
|
44
|
+
service CommandService {
|
|
45
|
+
|
|
46
|
+
// Posts the given command to the application backend.
|
|
47
|
+
//
|
|
48
|
+
// When the command is successfully received by the application, it responds with
|
|
49
|
+
// an acknowledgement. The received `Ack` may have one of the following statuses:
|
|
50
|
+
//
|
|
51
|
+
// 1. `Status.ok` — the command is accepted for further processing.
|
|
52
|
+
// 2. `Status.error` — there has been an error receiving the command. No further
|
|
53
|
+
// processing would occur.
|
|
54
|
+
// 3. `Status.rejection` — business rules do not allow the execution of the command.
|
|
55
|
+
// E.g., a user who made a request does not have the required permission.
|
|
56
|
+
//
|
|
57
|
+
// In case of internal gRPC errors or issues on a transport layer, an `Ack`
|
|
58
|
+
// would not be received. All errors that occur on the side of gRPC should
|
|
59
|
+
// be handled by the means of the chosen client stub.
|
|
60
|
+
//
|
|
61
|
+
rpc Post(core.Command) returns (core.Ack);
|
|
62
|
+
}
|