@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,414 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Generated by Spine TypeScript. Do not edit manually.
|
|
3
|
+
* Source Proto: spine/client/subscription.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/client/subscription.proto (package spine.client, syntax proto3)
|
|
10
|
+
/* eslint-disable */
|
|
11
|
+
|
|
12
|
+
import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
|
|
13
|
+
import { enumDesc, fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
|
|
14
|
+
import { file_spine_options } from "../options_pb.js";
|
|
15
|
+
import type { Any, FieldMask } from "@bufbuild/protobuf/wkt";
|
|
16
|
+
import { file_google_protobuf_any, file_google_protobuf_field_mask } from "@bufbuild/protobuf/wkt";
|
|
17
|
+
import { file_spine_core_user_id } from "../core/user_id_pb.js";
|
|
18
|
+
import { file_spine_core_tenant_id } from "../core/tenant_id_pb.js";
|
|
19
|
+
import type { ActorContext } from "../core/actor_context_pb.js";
|
|
20
|
+
import { file_spine_core_actor_context } from "../core/actor_context_pb.js";
|
|
21
|
+
import type { Event } from "../core/event_pb.js";
|
|
22
|
+
import { file_spine_core_event } from "../core/event_pb.js";
|
|
23
|
+
import type { Response } from "../core/response_pb.js";
|
|
24
|
+
import { file_spine_core_response } from "../core/response_pb.js";
|
|
25
|
+
import type { Target } from "./filters_pb.js";
|
|
26
|
+
import { file_spine_client_filters } from "./filters_pb.js";
|
|
27
|
+
import type { Message } from "@bufbuild/protobuf";
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Describes the file spine/client/subscription.proto.
|
|
31
|
+
* Generated from Proto: spine/client/subscription.proto.
|
|
32
|
+
*/
|
|
33
|
+
export const file_spine_client_subscription: GenFile = /*@__PURE__*/
|
|
34
|
+
fileDesc("Ch9zcGluZS9jbGllbnQvc3Vic2NyaXB0aW9uLnByb3RvEgxzcGluZS5jbGllbnQiGAoHVG9waWNJZBINCgV2YWx1ZRgBIAEoCSLFAQoFVG9waWMSJwoCaWQYASABKAsyFS5zcGluZS5jbGllbnQuVG9waWNJZEIEoIUkARIuCgZ0YXJnZXQYAiABKAsyFC5zcGluZS5jbGllbnQuVGFyZ2V0QgighSQB6IUkARIuCgpmaWVsZF9tYXNrGAMgASgLMhouZ29vZ2xlLnByb3RvYnVmLkZpZWxkTWFzaxIzCgdjb250ZXh0GAQgASgLMhguc3BpbmUuY29yZS5BY3RvckNvbnRleHRCCKCFJAHohSQBIqECChJTdWJzY3JpcHRpb25VcGRhdGUSNgoMc3Vic2NyaXB0aW9uGAEgASgLMhouc3BpbmUuY2xpZW50LlN1YnNjcmlwdGlvbkIEoIUkARIsCghyZXNwb25zZRgCIAEoCzIULnNwaW5lLmNvcmUuUmVzcG9uc2VCBKCFJAESNQoOZW50aXR5X3VwZGF0ZXMYDCABKAsyGy5zcGluZS5jbGllbnQuRW50aXR5VXBkYXRlc0gAEjMKDWV2ZW50X3VwZGF0ZXMYDSABKAsyGi5zcGluZS5jbGllbnQuRXZlbnRVcGRhdGVzSAA6HdqLJBkKF1N1YnNjcmlwdGlvblVwZGF0ZU1peGluQggKBnVwZGF0ZUoECAMQCkoECAoQC0oECAsQDCJGCg1FbnRpdHlVcGRhdGVzEjUKBnVwZGF0ZRgBIAMoCzIfLnNwaW5lLmNsaWVudC5FbnRpdHlTdGF0ZVVwZGF0ZUIE6IUkASKIAQoRRW50aXR5U3RhdGVVcGRhdGUSJgoCaWQYASABKAsyFC5nb29nbGUucHJvdG9idWYuQW55QgSghSQBEiUKBXN0YXRlGAIgASgLMhQuZ29vZ2xlLnByb3RvYnVmLkFueUgAEhwKEm5vX2xvbmdlcl9tYXRjaGluZxgDIAEoCEgAQgYKBGtpbmQiNgoMRXZlbnRVcGRhdGVzEiYKBWV2ZW50GAEgAygLMhEuc3BpbmUuY29yZS5FdmVudEIE6IUkASIfCg5TdWJzY3JpcHRpb25JZBINCgV2YWx1ZRgBIAEoCSKFAQoMU3Vic2NyaXB0aW9uEi4KAmlkGAEgASgLMhwuc3BpbmUuY2xpZW50LlN1YnNjcmlwdGlvbklkQgSghSQBEiwKBXRvcGljGAIgASgLMhMuc3BpbmUuY2xpZW50LlRvcGljQgighSQB6IUkAToX2oskEwoRU3Vic2NyaXB0aW9uTWl4aW4qXwoUVG9waWNWYWxpZGF0aW9uRXJyb3ISFgoSVFZFX1VOS05PV05fUkVBU09OEAASHAoYVU5TVVBQT1JURURfVE9QSUNfVEFSR0VUEAESEQoNSU5WQUxJRF9UT1BJQxACKo4BChtTdWJzY3JpcHRpb25WYWxpZGF0aW9uRXJyb3ISFgoSU1ZFX1VOS05PV05fUkVBU09OEAASIwofVU5TVVBQT1JURURfU1VCU0NSSVBUSU9OX1RBUkdFVBABEhgKFElOVkFMSURfU1VCU0NSSVBUSU9OEAISGAoUVU5LTk9XTl9TVUJTQ1JJUFRJT04QA0I3Cg9pby5zcGluZS5jbGllbnRCEVN1YnNjcmlwdGlvblByb3RvUAGqjSQNdHlwZS5zcGluZS5pb2IGcHJvdG8z", [file_spine_options, file_google_protobuf_any, file_google_protobuf_field_mask, file_spine_core_user_id, file_spine_core_tenant_id, file_spine_core_actor_context, file_spine_core_event, file_spine_core_response, file_spine_client_filters]);
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Topic identifier.
|
|
38
|
+
*
|
|
39
|
+
* @generated from message spine.client.TopicId
|
|
40
|
+
* Generated from Proto: spine/client/subscription.proto.
|
|
41
|
+
*/
|
|
42
|
+
export type TopicId = Message<"spine.client.TopicId"> & {
|
|
43
|
+
/**
|
|
44
|
+
* The value of the ID.
|
|
45
|
+
*
|
|
46
|
+
* Starts with the `t-` prefix followed by a generated UUID value.
|
|
47
|
+
*
|
|
48
|
+
*
|
|
49
|
+
* @generated from field: string value = 1;
|
|
50
|
+
*/
|
|
51
|
+
value: string;
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Describes the message spine.client.TopicId.
|
|
56
|
+
* Use `create(TopicIdSchema)` to create a new message.
|
|
57
|
+
* Generated from Proto: spine/client/subscription.proto.
|
|
58
|
+
*/
|
|
59
|
+
export const TopicIdSchema: GenMessage<TopicId> = /*@__PURE__*/
|
|
60
|
+
messageDesc(file_spine_client_subscription, 0);
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* An object defining a unit of subscription.
|
|
64
|
+
*
|
|
65
|
+
* Defines the target (type and criteria) of subscription.
|
|
66
|
+
*
|
|
67
|
+
*
|
|
68
|
+
* @generated from message spine.client.Topic
|
|
69
|
+
* Generated from Proto: spine/client/subscription.proto.
|
|
70
|
+
*/
|
|
71
|
+
export type Topic = Message<"spine.client.Topic"> & {
|
|
72
|
+
/**
|
|
73
|
+
* @generated from field: spine.client.TopicId id = 1;
|
|
74
|
+
*/
|
|
75
|
+
id?: TopicId | undefined;
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* Defines the target of interest, e.g. event/entity type URL and a set of subscription
|
|
79
|
+
* criteria.
|
|
80
|
+
*
|
|
81
|
+
* @generated from field: spine.client.Target target = 2;
|
|
82
|
+
*/
|
|
83
|
+
target?: Target | undefined;
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* Field mask to be applied to the subscription updates.
|
|
87
|
+
*
|
|
88
|
+
* @generated from field: google.protobuf.FieldMask field_mask = 3;
|
|
89
|
+
*/
|
|
90
|
+
fieldMask?: FieldMask | undefined;
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* Service information about the environment in which the topic was created.
|
|
94
|
+
*
|
|
95
|
+
* @generated from field: spine.core.ActorContext context = 4;
|
|
96
|
+
*/
|
|
97
|
+
context?: ActorContext | undefined;
|
|
98
|
+
};
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* Describes the message spine.client.Topic.
|
|
102
|
+
* Use `create(TopicSchema)` to create a new message.
|
|
103
|
+
* Generated from Proto: spine/client/subscription.proto.
|
|
104
|
+
*/
|
|
105
|
+
export const TopicSchema: GenMessage<Topic> = /*@__PURE__*/
|
|
106
|
+
messageDesc(file_spine_client_subscription, 1);
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* Wrapped collection of read-side entity updates on a topic with the specific subscription ID.
|
|
110
|
+
*
|
|
111
|
+
* @generated from message spine.client.SubscriptionUpdate
|
|
112
|
+
* Generated from Proto: spine/client/subscription.proto.
|
|
113
|
+
*/
|
|
114
|
+
export type SubscriptionUpdate = Message<"spine.client.SubscriptionUpdate"> & {
|
|
115
|
+
/**
|
|
116
|
+
* The subscription in whose scope this update is propagated.
|
|
117
|
+
*
|
|
118
|
+
* @generated from field: spine.client.Subscription subscription = 1;
|
|
119
|
+
*/
|
|
120
|
+
subscription?: Subscription | undefined;
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* Represents the base part of the response,
|
|
124
|
+
* i.e. whether the Topic subscription has been acked or not.
|
|
125
|
+
*
|
|
126
|
+
* @generated from field: spine.core.Response response = 2;
|
|
127
|
+
*/
|
|
128
|
+
response?: Response | undefined;
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* Each subscription update delivers either entity state updates or events that occurred in the
|
|
132
|
+
* system.
|
|
133
|
+
*
|
|
134
|
+
* @generated from oneof spine.client.SubscriptionUpdate.update
|
|
135
|
+
*/
|
|
136
|
+
update: {
|
|
137
|
+
/**
|
|
138
|
+
* The entity state updates if it's an entity subscription.
|
|
139
|
+
*
|
|
140
|
+
* @generated from field: spine.client.EntityUpdates entity_updates = 12;
|
|
141
|
+
*/
|
|
142
|
+
value: EntityUpdates;
|
|
143
|
+
case: "entityUpdates";
|
|
144
|
+
} | {
|
|
145
|
+
/**
|
|
146
|
+
* The new events that occurred in the system if it's an event subscription.
|
|
147
|
+
*
|
|
148
|
+
* @generated from field: spine.client.EventUpdates event_updates = 13;
|
|
149
|
+
*/
|
|
150
|
+
value: EventUpdates;
|
|
151
|
+
case: "eventUpdates";
|
|
152
|
+
} | { case: undefined; value?: undefined };
|
|
153
|
+
};
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* Describes the message spine.client.SubscriptionUpdate.
|
|
157
|
+
* Use `create(SubscriptionUpdateSchema)` to create a new message.
|
|
158
|
+
* Generated from Proto: spine/client/subscription.proto.
|
|
159
|
+
*/
|
|
160
|
+
export const SubscriptionUpdateSchema: GenMessage<SubscriptionUpdate> = /*@__PURE__*/
|
|
161
|
+
messageDesc(file_spine_client_subscription, 2);
|
|
162
|
+
|
|
163
|
+
/**
|
|
164
|
+
* The updates on the observed entity state.
|
|
165
|
+
*
|
|
166
|
+
* @generated from message spine.client.EntityUpdates
|
|
167
|
+
* Generated from Proto: spine/client/subscription.proto.
|
|
168
|
+
*/
|
|
169
|
+
export type EntityUpdates = Message<"spine.client.EntityUpdates"> & {
|
|
170
|
+
/**
|
|
171
|
+
* The entity state update list.
|
|
172
|
+
*
|
|
173
|
+
* @generated from field: repeated spine.client.EntityStateUpdate update = 1;
|
|
174
|
+
*/
|
|
175
|
+
update: EntityStateUpdate[];
|
|
176
|
+
};
|
|
177
|
+
|
|
178
|
+
/**
|
|
179
|
+
* Describes the message spine.client.EntityUpdates.
|
|
180
|
+
* Use `create(EntityUpdatesSchema)` to create a new message.
|
|
181
|
+
* Generated from Proto: spine/client/subscription.proto.
|
|
182
|
+
*/
|
|
183
|
+
export const EntityUpdatesSchema: GenMessage<EntityUpdates> = /*@__PURE__*/
|
|
184
|
+
messageDesc(file_spine_client_subscription, 3);
|
|
185
|
+
|
|
186
|
+
/**
|
|
187
|
+
* The update happened to the entity of interest.
|
|
188
|
+
*
|
|
189
|
+
* @generated from message spine.client.EntityStateUpdate
|
|
190
|
+
* Generated from Proto: spine/client/subscription.proto.
|
|
191
|
+
*/
|
|
192
|
+
export type EntityStateUpdate = Message<"spine.client.EntityStateUpdate"> & {
|
|
193
|
+
/**
|
|
194
|
+
* The entity ID packed as Any.
|
|
195
|
+
*
|
|
196
|
+
* @generated from field: google.protobuf.Any id = 1;
|
|
197
|
+
*/
|
|
198
|
+
id?: Any | undefined;
|
|
199
|
+
|
|
200
|
+
/**
|
|
201
|
+
* The update may be one of two things.
|
|
202
|
+
*
|
|
203
|
+
* @generated from oneof spine.client.EntityStateUpdate.kind
|
|
204
|
+
*/
|
|
205
|
+
kind: {
|
|
206
|
+
/**
|
|
207
|
+
* The state of the entity has been updated and packed here as `Any`.
|
|
208
|
+
*
|
|
209
|
+
* If the field mask is set in `Topic`, this value is masked.
|
|
210
|
+
*
|
|
211
|
+
*
|
|
212
|
+
* @generated from field: google.protobuf.Any state = 2;
|
|
213
|
+
*/
|
|
214
|
+
value: Any;
|
|
215
|
+
case: "state";
|
|
216
|
+
} | {
|
|
217
|
+
/**
|
|
218
|
+
* The state of the entity has been changed, so that previously it matched the subscription
|
|
219
|
+
* `Target` filters, and now it does not.
|
|
220
|
+
*
|
|
221
|
+
* For example, consider a subscription to all `UserSession`s in which a user has sent
|
|
222
|
+
* at most `N` requests:
|
|
223
|
+
* ```
|
|
224
|
+
* WHERE REQUEST_COUNT <= N
|
|
225
|
+
* ```
|
|
226
|
+
*
|
|
227
|
+
* Suppose a `UserSession` with ID 42 matches the subscription. After some time, the user
|
|
228
|
+
* makes their N + 1-th request and the `UserSession` with ID 42 stops matching
|
|
229
|
+
* the subscription. Hence, the next update brings the `no_longer_matching` option instead
|
|
230
|
+
* of an entity state.
|
|
231
|
+
*
|
|
232
|
+
*
|
|
233
|
+
* @generated from field: bool no_longer_matching = 3;
|
|
234
|
+
*/
|
|
235
|
+
value: boolean;
|
|
236
|
+
case: "noLongerMatching";
|
|
237
|
+
} | { case: undefined; value?: undefined };
|
|
238
|
+
};
|
|
239
|
+
|
|
240
|
+
/**
|
|
241
|
+
* Describes the message spine.client.EntityStateUpdate.
|
|
242
|
+
* Use `create(EntityStateUpdateSchema)` to create a new message.
|
|
243
|
+
* Generated from Proto: spine/client/subscription.proto.
|
|
244
|
+
*/
|
|
245
|
+
export const EntityStateUpdateSchema: GenMessage<EntityStateUpdate> = /*@__PURE__*/
|
|
246
|
+
messageDesc(file_spine_client_subscription, 4);
|
|
247
|
+
|
|
248
|
+
/**
|
|
249
|
+
* The new events of the observed type that occurred in the system.
|
|
250
|
+
*
|
|
251
|
+
* @generated from message spine.client.EventUpdates
|
|
252
|
+
* Generated from Proto: spine/client/subscription.proto.
|
|
253
|
+
*/
|
|
254
|
+
export type EventUpdates = Message<"spine.client.EventUpdates"> & {
|
|
255
|
+
/**
|
|
256
|
+
* The event list.
|
|
257
|
+
*
|
|
258
|
+
* @generated from field: repeated spine.core.Event event = 1;
|
|
259
|
+
*/
|
|
260
|
+
event: Event[];
|
|
261
|
+
};
|
|
262
|
+
|
|
263
|
+
/**
|
|
264
|
+
* Describes the message spine.client.EventUpdates.
|
|
265
|
+
* Use `create(EventUpdatesSchema)` to create a new message.
|
|
266
|
+
* Generated from Proto: spine/client/subscription.proto.
|
|
267
|
+
*/
|
|
268
|
+
export const EventUpdatesSchema: GenMessage<EventUpdates> = /*@__PURE__*/
|
|
269
|
+
messageDesc(file_spine_client_subscription, 5);
|
|
270
|
+
|
|
271
|
+
/**
|
|
272
|
+
* Subscription identifier.
|
|
273
|
+
*
|
|
274
|
+
* @generated from message spine.client.SubscriptionId
|
|
275
|
+
* Generated from Proto: spine/client/subscription.proto.
|
|
276
|
+
*/
|
|
277
|
+
export type SubscriptionId = Message<"spine.client.SubscriptionId"> & {
|
|
278
|
+
/**
|
|
279
|
+
* The value of the subscription ID.
|
|
280
|
+
*
|
|
281
|
+
* Starts with the `s-` prefix followed by a generated UUID value.
|
|
282
|
+
*
|
|
283
|
+
*
|
|
284
|
+
* @generated from field: string value = 1;
|
|
285
|
+
*/
|
|
286
|
+
value: string;
|
|
287
|
+
};
|
|
288
|
+
|
|
289
|
+
/**
|
|
290
|
+
* Describes the message spine.client.SubscriptionId.
|
|
291
|
+
* Use `create(SubscriptionIdSchema)` to create a new message.
|
|
292
|
+
* Generated from Proto: spine/client/subscription.proto.
|
|
293
|
+
*/
|
|
294
|
+
export const SubscriptionIdSchema: GenMessage<SubscriptionId> = /*@__PURE__*/
|
|
295
|
+
messageDesc(file_spine_client_subscription, 6);
|
|
296
|
+
|
|
297
|
+
/**
|
|
298
|
+
* The subscription object.
|
|
299
|
+
*
|
|
300
|
+
* Created when the client subscribes to a topic inside the read-side implementation.
|
|
301
|
+
* Generally should not be created directly in the client code.
|
|
302
|
+
*
|
|
303
|
+
* See SubscriptionService#Subscribe(Topic).
|
|
304
|
+
*
|
|
305
|
+
*
|
|
306
|
+
* @generated from message spine.client.Subscription
|
|
307
|
+
* Generated from Proto: spine/client/subscription.proto.
|
|
308
|
+
*/
|
|
309
|
+
export type Subscription = Message<"spine.client.Subscription"> & {
|
|
310
|
+
/**
|
|
311
|
+
* Unique identifier of the subscription.
|
|
312
|
+
*
|
|
313
|
+
* Must be unique in the scope of a bounded context.
|
|
314
|
+
*
|
|
315
|
+
*
|
|
316
|
+
* @generated from field: spine.client.SubscriptionId id = 1;
|
|
317
|
+
*/
|
|
318
|
+
id?: SubscriptionId | undefined;
|
|
319
|
+
|
|
320
|
+
/**
|
|
321
|
+
* Represents the original topic for this subscription.
|
|
322
|
+
*
|
|
323
|
+
* @generated from field: spine.client.Topic topic = 2;
|
|
324
|
+
*/
|
|
325
|
+
topic?: Topic | undefined;
|
|
326
|
+
};
|
|
327
|
+
|
|
328
|
+
/**
|
|
329
|
+
* Describes the message spine.client.Subscription.
|
|
330
|
+
* Use `create(SubscriptionSchema)` to create a new message.
|
|
331
|
+
* Generated from Proto: spine/client/subscription.proto.
|
|
332
|
+
*/
|
|
333
|
+
export const SubscriptionSchema: GenMessage<Subscription> = /*@__PURE__*/
|
|
334
|
+
messageDesc(file_spine_client_subscription, 7);
|
|
335
|
+
|
|
336
|
+
/**
|
|
337
|
+
* Enumeration of possible technical error reasons occurring in topic validation.
|
|
338
|
+
*
|
|
339
|
+
* @generated from enum spine.client.TopicValidationError
|
|
340
|
+
* Generated from Proto: spine/client/subscription.proto.
|
|
341
|
+
*/
|
|
342
|
+
export enum TopicValidationError {
|
|
343
|
+
/**
|
|
344
|
+
* Reserved value.
|
|
345
|
+
*
|
|
346
|
+
* @generated from enum value: TVE_UNKNOWN_REASON = 0;
|
|
347
|
+
*/
|
|
348
|
+
TVE_UNKNOWN_REASON = 0,
|
|
349
|
+
|
|
350
|
+
/**
|
|
351
|
+
* The topic target is not supported by the server.
|
|
352
|
+
*
|
|
353
|
+
* @generated from enum value: UNSUPPORTED_TOPIC_TARGET = 1;
|
|
354
|
+
*/
|
|
355
|
+
UNSUPPORTED_TOPIC_TARGET = 1,
|
|
356
|
+
|
|
357
|
+
/**
|
|
358
|
+
* The topic message is invalid according to custom Protobuf options set.
|
|
359
|
+
*
|
|
360
|
+
* @generated from enum value: INVALID_TOPIC = 2;
|
|
361
|
+
*/
|
|
362
|
+
INVALID_TOPIC = 2,
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
/**
|
|
366
|
+
* Describes the enum spine.client.TopicValidationError.
|
|
367
|
+
* Generated from Proto: spine/client/subscription.proto.
|
|
368
|
+
*/
|
|
369
|
+
export const TopicValidationErrorSchema: GenEnum<TopicValidationError> = /*@__PURE__*/
|
|
370
|
+
enumDesc(file_spine_client_subscription, 0);
|
|
371
|
+
|
|
372
|
+
/**
|
|
373
|
+
* Enumeration of possible technical error reasons occurring in subscription validation.
|
|
374
|
+
*
|
|
375
|
+
* @generated from enum spine.client.SubscriptionValidationError
|
|
376
|
+
* Generated from Proto: spine/client/subscription.proto.
|
|
377
|
+
*/
|
|
378
|
+
export enum SubscriptionValidationError {
|
|
379
|
+
/**
|
|
380
|
+
* Reserved value.
|
|
381
|
+
*
|
|
382
|
+
* @generated from enum value: SVE_UNKNOWN_REASON = 0;
|
|
383
|
+
*/
|
|
384
|
+
SVE_UNKNOWN_REASON = 0,
|
|
385
|
+
|
|
386
|
+
/**
|
|
387
|
+
* The target of the subscription topic is not supported by the server.
|
|
388
|
+
*
|
|
389
|
+
* @generated from enum value: UNSUPPORTED_SUBSCRIPTION_TARGET = 1;
|
|
390
|
+
*/
|
|
391
|
+
UNSUPPORTED_SUBSCRIPTION_TARGET = 1,
|
|
392
|
+
|
|
393
|
+
/**
|
|
394
|
+
* The subscription message is invalid according to custom Protobuf options set.
|
|
395
|
+
*
|
|
396
|
+
* @generated from enum value: INVALID_SUBSCRIPTION = 2;
|
|
397
|
+
*/
|
|
398
|
+
INVALID_SUBSCRIPTION = 2,
|
|
399
|
+
|
|
400
|
+
/**
|
|
401
|
+
* This subscription is unknown to this server.
|
|
402
|
+
*
|
|
403
|
+
* @generated from enum value: UNKNOWN_SUBSCRIPTION = 3;
|
|
404
|
+
*/
|
|
405
|
+
UNKNOWN_SUBSCRIPTION = 3,
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
/**
|
|
409
|
+
* Describes the enum spine.client.SubscriptionValidationError.
|
|
410
|
+
* Generated from Proto: spine/client/subscription.proto.
|
|
411
|
+
*/
|
|
412
|
+
export const SubscriptionValidationErrorSchema: GenEnum<SubscriptionValidationError> = /*@__PURE__*/
|
|
413
|
+
enumDesc(file_spine_client_subscription, 1);
|
|
414
|
+
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Generated by Spine TypeScript. Do not edit manually.
|
|
3
|
+
* Source Proto: spine/client/subscription_record.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/client/subscription_record.proto (package spine.client, syntax proto3)
|
|
10
|
+
/* eslint-disable */
|
|
11
|
+
|
|
12
|
+
import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
|
|
13
|
+
import { enumDesc, fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
|
|
14
|
+
import type { Timestamp } from "@bufbuild/protobuf/wkt";
|
|
15
|
+
import { file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
|
|
16
|
+
import type { Subscription, SubscriptionId } from "./subscription_pb.js";
|
|
17
|
+
import { file_spine_client_subscription } from "./subscription_pb.js";
|
|
18
|
+
import { file_spine_options } from "../options_pb.js";
|
|
19
|
+
import type { Message } from "@bufbuild/protobuf";
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Describes the file spine/client/subscription_record.proto.
|
|
23
|
+
* Generated from Proto: spine/client/subscription_record.proto.
|
|
24
|
+
*/
|
|
25
|
+
export const file_spine_client_subscription_record: GenFile = /*@__PURE__*/
|
|
26
|
+
fileDesc("CiZzcGluZS9jbGllbnQvc3Vic2NyaXB0aW9uX3JlY29yZC5wcm90bxIMc3BpbmUuY2xpZW50IrECChJTdWJzY3JpcHRpb25SZWNvcmQSMgoCaWQYASABKAsyHC5zcGluZS5jbGllbnQuU3Vic2NyaXB0aW9uSWRCCKCFJAHohSQBEjoKDHN1YnNjcmlwdGlvbhgCIAEoCzIaLnNwaW5lLmNsaWVudC5TdWJzY3JpcHRpb25CCKCFJAHohSQBEjYKBnN0YXR1cxgDIAEoDjIgLnNwaW5lLmNsaWVudC5TdWJzY3JpcHRpb25TdGF0dXNCBKCFJAESNgoMd2hlbl9jcmVhdGVkGAQgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcEIEoIUkARI7Chd3aGVuX2FjdGl2YXRpb25fZXhwaXJlcxgFIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXAqQQoSU3Vic2NyaXB0aW9uU3RhdHVzEhIKDlNTX1VOU1BFQ0lGSUVEEAASCwoHUEVORElORxABEgoKBkFDVElWRRACQhNQAaqNJA10eXBlLnNwaW5lLmlvYgZwcm90bzM", [file_google_protobuf_timestamp, file_spine_client_subscription, file_spine_options]);
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* A stored definition of one subscription.
|
|
30
|
+
*
|
|
31
|
+
* @generated from message spine.client.SubscriptionRecord
|
|
32
|
+
* Generated from Proto: spine/client/subscription_record.proto.
|
|
33
|
+
*/
|
|
34
|
+
export type SubscriptionRecord = Message<"spine.client.SubscriptionRecord"> & {
|
|
35
|
+
/**
|
|
36
|
+
* The identifier used to store this record.
|
|
37
|
+
*
|
|
38
|
+
* @generated from field: spine.client.SubscriptionId id = 1;
|
|
39
|
+
*/
|
|
40
|
+
id?: SubscriptionId | undefined;
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* The subscription represented by this record.
|
|
44
|
+
*
|
|
45
|
+
* @generated from field: spine.client.Subscription subscription = 2;
|
|
46
|
+
*/
|
|
47
|
+
subscription?: Subscription | undefined;
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* The current lifecycle status.
|
|
51
|
+
*
|
|
52
|
+
* @generated from field: spine.client.SubscriptionStatus status = 3;
|
|
53
|
+
*/
|
|
54
|
+
status: SubscriptionStatus;
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* The time when the subscription was created.
|
|
58
|
+
*
|
|
59
|
+
* @generated from field: google.protobuf.Timestamp when_created = 4;
|
|
60
|
+
*/
|
|
61
|
+
whenCreated?: Timestamp | undefined;
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* The deadline for activating a pending subscription.
|
|
65
|
+
*
|
|
66
|
+
* @generated from field: google.protobuf.Timestamp when_activation_expires = 5;
|
|
67
|
+
*/
|
|
68
|
+
whenActivationExpires?: Timestamp | undefined;
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* Describes the message spine.client.SubscriptionRecord.
|
|
73
|
+
* Use `create(SubscriptionRecordSchema)` to create a new message.
|
|
74
|
+
* Generated from Proto: spine/client/subscription_record.proto.
|
|
75
|
+
*/
|
|
76
|
+
export const SubscriptionRecordSchema: GenMessage<SubscriptionRecord> = /*@__PURE__*/
|
|
77
|
+
messageDesc(file_spine_client_subscription_record, 0);
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* A lifecycle status of a stored subscription.
|
|
81
|
+
*
|
|
82
|
+
* @generated from enum spine.client.SubscriptionStatus
|
|
83
|
+
* Generated from Proto: spine/client/subscription_record.proto.
|
|
84
|
+
*/
|
|
85
|
+
export enum SubscriptionStatus {
|
|
86
|
+
/**
|
|
87
|
+
* An unspecified status.
|
|
88
|
+
*
|
|
89
|
+
* @generated from enum value: SS_UNSPECIFIED = 0;
|
|
90
|
+
*/
|
|
91
|
+
SS_UNSPECIFIED = 0,
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* A subscription that is waiting for activation.
|
|
95
|
+
*
|
|
96
|
+
* @generated from enum value: PENDING = 1;
|
|
97
|
+
*/
|
|
98
|
+
PENDING = 1,
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* A subscription that delivers matching updates.
|
|
102
|
+
*
|
|
103
|
+
* @generated from enum value: ACTIVE = 2;
|
|
104
|
+
*/
|
|
105
|
+
ACTIVE = 2,
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* Describes the enum spine.client.SubscriptionStatus.
|
|
110
|
+
* Generated from Proto: spine/client/subscription_record.proto.
|
|
111
|
+
*/
|
|
112
|
+
export const SubscriptionStatusSchema: GenEnum<SubscriptionStatus> = /*@__PURE__*/
|
|
113
|
+
enumDesc(file_spine_client_subscription_record, 0);
|
|
114
|
+
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Generated by Spine TypeScript. Do not edit manually.
|
|
3
|
+
* Source Proto: spine/client/subscription_service.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/client/subscription_service.proto (package spine.client, syntax proto3)
|
|
10
|
+
/* eslint-disable */
|
|
11
|
+
|
|
12
|
+
import type { GenFile, GenService } from "@bufbuild/protobuf/codegenv2";
|
|
13
|
+
import { fileDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
|
|
14
|
+
import { file_spine_options } from "../options_pb.js";
|
|
15
|
+
import type { SubscriptionSchema, SubscriptionUpdateSchema, TopicSchema } from "./subscription_pb.js";
|
|
16
|
+
import { file_spine_client_subscription } from "./subscription_pb.js";
|
|
17
|
+
import type { ResponseSchema } from "../core/response_pb.js";
|
|
18
|
+
import { file_spine_core_response } from "../core/response_pb.js";
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Describes the file spine/client/subscription_service.proto.
|
|
22
|
+
* Generated from Proto: spine/client/subscription_service.proto.
|
|
23
|
+
*/
|
|
24
|
+
export const file_spine_client_subscription_service: GenFile = /*@__PURE__*/
|
|
25
|
+
fileDesc("CidzcGluZS9jbGllbnQvc3Vic2NyaXB0aW9uX3NlcnZpY2UucHJvdG8SDHNwaW5lLmNsaWVudDLbAQoTU3Vic2NyaXB0aW9uU2VydmljZRI8CglTdWJzY3JpYmUSEy5zcGluZS5jbGllbnQuVG9waWMaGi5zcGluZS5jbGllbnQuU3Vic2NyaXB0aW9uEkoKCEFjdGl2YXRlEhouc3BpbmUuY2xpZW50LlN1YnNjcmlwdGlvbhogLnNwaW5lLmNsaWVudC5TdWJzY3JpcHRpb25VcGRhdGUwARI6CgZDYW5jZWwSGi5zcGluZS5jbGllbnQuU3Vic2NyaXB0aW9uGhQuc3BpbmUuY29yZS5SZXNwb25zZUJDChRpby5zcGluZS5jbGllbnQuZ3JwY0IYU3Vic2NyaXB0aW9uU2VydmljZVByb3RvUAGqjSQNdHlwZS5zcGluZS5pb2IGcHJvdG8z", [file_spine_options, file_spine_client_subscription, file_spine_core_response]);
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* A service for subscribing to receive updates by a specified topic.
|
|
29
|
+
*
|
|
30
|
+
* The subscription topic defines a type in updates of which the client code is interested, and
|
|
31
|
+
* filtering conditions (e.g. by values of fields or identity).
|
|
32
|
+
*
|
|
33
|
+
* Creating a subscription consists of two steps:
|
|
34
|
+
* * Step 1: creating a `Subscription` instance. This step verifies that the type specified in
|
|
35
|
+
* the `Topic` is available at the server, and prepares backend structures for delivering
|
|
36
|
+
* updates. Subscription is created by the `Subscribe(Topic)` call.
|
|
37
|
+
* together with the contexts of the events.
|
|
38
|
+
*
|
|
39
|
+
* * Step 2: activating the subscription. This step turns the subscription on.
|
|
40
|
+
* Activation is performed by the `Activate(Subscription)` call.
|
|
41
|
+
*
|
|
42
|
+
* The client will receive updates until the subscription is cancelled via `Cancel(Subscription)`.
|
|
43
|
+
*
|
|
44
|
+
*
|
|
45
|
+
* @generated from service spine.client.SubscriptionService
|
|
46
|
+
* Generated from Proto: spine/client/subscription_service.proto.
|
|
47
|
+
*/
|
|
48
|
+
export const SubscriptionService: GenService<{
|
|
49
|
+
/**
|
|
50
|
+
* Creates the subscription to the particular read-side updates.
|
|
51
|
+
*
|
|
52
|
+
* Topic defines the target of subscription and other attributes (like field masks).
|
|
53
|
+
*
|
|
54
|
+
* NOTE: this method only creates a `Subscription` for the passed `Topic`.
|
|
55
|
+
* To start listening for updates, please call `Activate(Subscription)`.
|
|
56
|
+
*
|
|
57
|
+
*
|
|
58
|
+
* @generated from rpc spine.client.SubscriptionService.Subscribe
|
|
59
|
+
*/
|
|
60
|
+
subscribe: {
|
|
61
|
+
methodKind: "unary";
|
|
62
|
+
input: typeof TopicSchema;
|
|
63
|
+
output: typeof SubscriptionSchema;
|
|
64
|
+
},
|
|
65
|
+
/**
|
|
66
|
+
* Activates the subscription.
|
|
67
|
+
*
|
|
68
|
+
* The client will start receiving the updates when 1) an instance of the type specified
|
|
69
|
+
* in the topic changes and 2) filtering conditions are met. See `spine.client.Target`.
|
|
70
|
+
*
|
|
71
|
+
* Cancelled subscriptions cannot be activated. Passing a cancelled subscription will result
|
|
72
|
+
* in a run-time error.
|
|
73
|
+
*
|
|
74
|
+
*
|
|
75
|
+
* @generated from rpc spine.client.SubscriptionService.Activate
|
|
76
|
+
*/
|
|
77
|
+
activate: {
|
|
78
|
+
methodKind: "server_streaming";
|
|
79
|
+
input: typeof SubscriptionSchema;
|
|
80
|
+
output: typeof SubscriptionUpdateSchema;
|
|
81
|
+
},
|
|
82
|
+
/**
|
|
83
|
+
* Cancels the given subscription.
|
|
84
|
+
*
|
|
85
|
+
* Clients will stop receiving the `SubscriptionUpdate` after this method is called.
|
|
86
|
+
*
|
|
87
|
+
* The subscription is destroyed as the result of this call. To restore the subscription,
|
|
88
|
+
* please call `Subscribe(Topic)` and then `Activate(Subscription)` again.
|
|
89
|
+
*
|
|
90
|
+
*
|
|
91
|
+
* @generated from rpc spine.client.SubscriptionService.Cancel
|
|
92
|
+
*/
|
|
93
|
+
cancel: {
|
|
94
|
+
methodKind: "unary";
|
|
95
|
+
input: typeof SubscriptionSchema;
|
|
96
|
+
output: typeof ResponseSchema;
|
|
97
|
+
},
|
|
98
|
+
}> = /*@__PURE__*/
|
|
99
|
+
serviceDesc(file_spine_client_subscription_service, 0);
|
|
100
|
+
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Generated by Spine TypeScript. Do not edit manually.
|
|
3
|
+
* Source Proto: spine/core/ack.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/core/ack.proto (package spine.core, 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 { Status } from "./response_pb.js";
|
|
18
|
+
import { file_spine_core_response } from "./response_pb.js";
|
|
19
|
+
import type { Message } from "@bufbuild/protobuf";
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Describes the file spine/core/ack.proto.
|
|
23
|
+
* Generated from Proto: spine/core/ack.proto.
|
|
24
|
+
*/
|
|
25
|
+
export const file_spine_core_ack: GenFile = /*@__PURE__*/
|
|
26
|
+
fileDesc("ChRzcGluZS9jb3JlL2Fjay5wcm90bxIKc3BpbmUuY29yZSJfCgNBY2sSLgoKbWVzc2FnZV9pZBgBIAEoCzIULmdvb2dsZS5wcm90b2J1Zi5BbnlCBKCFJAESKAoGc3RhdHVzGAIgASgLMhIuc3BpbmUuY29yZS5TdGF0dXNCBKCFJAFCLAoNaW8uc3BpbmUuY29yZUIIQnVzUHJvdG9QAaqNJA10eXBlLnNwaW5lLmlvYgZwcm90bzM", [file_spine_options, file_google_protobuf_any, file_spine_core_response]);
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* An acknowledgement of posting a message for asynchronous processing at the server-side.
|
|
30
|
+
*
|
|
31
|
+
* This response means that a message was either accepted for further processing, or rejected
|
|
32
|
+
* (e.g. because of a validation error).
|
|
33
|
+
*
|
|
34
|
+
* The acknowledgement does not mean that the message was handled or even delivered to recipients.
|
|
35
|
+
*
|
|
36
|
+
*
|
|
37
|
+
* @generated from message spine.core.Ack
|
|
38
|
+
* Generated from Proto: spine/core/ack.proto.
|
|
39
|
+
*/
|
|
40
|
+
export type Ack = Message<"spine.core.Ack"> & {
|
|
41
|
+
/**
|
|
42
|
+
* The ID of the message that has been posted.
|
|
43
|
+
*
|
|
44
|
+
* @generated from field: google.protobuf.Any message_id = 1;
|
|
45
|
+
*/
|
|
46
|
+
messageId?: Any | undefined;
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* The response status.
|
|
50
|
+
*
|
|
51
|
+
* @generated from field: spine.core.Status status = 2;
|
|
52
|
+
*/
|
|
53
|
+
status?: Status | undefined;
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Describes the message spine.core.Ack.
|
|
58
|
+
* Use `create(AckSchema)` to create a new message.
|
|
59
|
+
* Generated from Proto: spine/core/ack.proto.
|
|
60
|
+
*/
|
|
61
|
+
export const AckSchema: GenMessage<Ack> = /*@__PURE__*/
|
|
62
|
+
messageDesc(file_spine_core_ack, 0);
|
|
63
|
+
|