@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.
Files changed (344) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +122 -0
  3. package/REFERENCE.md +83 -0
  4. package/dist/generated/grpc/health/v1/health_pb.d.ts +115 -0
  5. package/dist/generated/grpc/health/v1/health_pb.d.ts.map +1 -0
  6. package/dist/generated/grpc/health/v1/health_pb.js +58 -0
  7. package/dist/generated/grpc/health/v1/health_pb.js.map +1 -0
  8. package/dist/generated/proto-module.d.ts +61 -0
  9. package/dist/generated/proto-module.d.ts.map +1 -0
  10. package/dist/generated/proto-module.js +315 -0
  11. package/dist/generated/proto-module.js.map +1 -0
  12. package/dist/generated/spine/auth/authenticated_subscription_pb.d.ts +47 -0
  13. package/dist/generated/spine/auth/authenticated_subscription_pb.d.ts.map +1 -0
  14. package/dist/generated/spine/auth/authenticated_subscription_pb.js +20 -0
  15. package/dist/generated/spine/auth/authenticated_subscription_pb.js.map +1 -0
  16. package/dist/generated/spine/auth/authentication_service_pb.d.ts +79 -0
  17. package/dist/generated/spine/auth/authentication_service_pb.d.ts.map +1 -0
  18. package/dist/generated/spine/auth/authentication_service_pb.js +34 -0
  19. package/dist/generated/spine/auth/authentication_service_pb.js.map +1 -0
  20. package/dist/generated/spine/base/error_pb.d.ts +69 -0
  21. package/dist/generated/spine/base/error_pb.d.ts.map +1 -0
  22. package/dist/generated/spine/base/error_pb.js +19 -0
  23. package/dist/generated/spine/base/error_pb.js.map +1 -0
  24. package/dist/generated/spine/base/field_path_pb.d.ts +50 -0
  25. package/dist/generated/spine/base/field_path_pb.d.ts.map +1 -0
  26. package/dist/generated/spine/base/field_path_pb.js +18 -0
  27. package/dist/generated/spine/base/field_path_pb.js.map +1 -0
  28. package/dist/generated/spine/client/command_service_pb.d.ts +46 -0
  29. package/dist/generated/spine/client/command_service_pb.d.ts.map +1 -0
  30. package/dist/generated/spine/client/command_service_pb.js +21 -0
  31. package/dist/generated/spine/client/command_service_pb.js.map +1 -0
  32. package/dist/generated/spine/client/entities_pb.d.ts +37 -0
  33. package/dist/generated/spine/client/entities_pb.d.ts.map +1 -0
  34. package/dist/generated/spine/client/entities_pb.js +19 -0
  35. package/dist/generated/spine/client/entities_pb.js.map +1 -0
  36. package/dist/generated/spine/client/filters_pb.d.ts +279 -0
  37. package/dist/generated/spine/client/filters_pb.d.ts.map +1 -0
  38. package/dist/generated/spine/client/filters_pb.js +126 -0
  39. package/dist/generated/spine/client/filters_pb.js.map +1 -0
  40. package/dist/generated/spine/client/query_pb.d.ts +293 -0
  41. package/dist/generated/spine/client/query_pb.d.ts.map +1 -0
  42. package/dist/generated/spine/client/query_pb.js +132 -0
  43. package/dist/generated/spine/client/query_pb.js.map +1 -0
  44. package/dist/generated/spine/client/query_service_pb.d.ts +31 -0
  45. package/dist/generated/spine/client/query_service_pb.d.ts.map +1 -0
  46. package/dist/generated/spine/client/query_service_pb.js +21 -0
  47. package/dist/generated/spine/client/query_service_pb.js.map +1 -0
  48. package/dist/generated/spine/client/subscription_pb.d.ts +361 -0
  49. package/dist/generated/spine/client/subscription_pb.d.ts.map +1 -0
  50. package/dist/generated/spine/client/subscription_pb.js +137 -0
  51. package/dist/generated/spine/client/subscription_pb.js.map +1 -0
  52. package/dist/generated/spine/client/subscription_record_pb.d.ts +90 -0
  53. package/dist/generated/spine/client/subscription_record_pb.d.ts.map +1 -0
  54. package/dist/generated/spine/client/subscription_record_pb.js +52 -0
  55. package/dist/generated/spine/client/subscription_record_pb.js.map +1 -0
  56. package/dist/generated/spine/client/subscription_service_pb.d.ts +86 -0
  57. package/dist/generated/spine/client/subscription_service_pb.d.ts.map +1 -0
  58. package/dist/generated/spine/client/subscription_service_pb.js +36 -0
  59. package/dist/generated/spine/client/subscription_service_pb.js.map +1 -0
  60. package/dist/generated/spine/core/ack_pb.d.ts +47 -0
  61. package/dist/generated/spine/core/ack_pb.d.ts.map +1 -0
  62. package/dist/generated/spine/core/ack_pb.js +20 -0
  63. package/dist/generated/spine/core/ack_pb.js.map +1 -0
  64. package/dist/generated/spine/core/actor_context_pb.d.ts +74 -0
  65. package/dist/generated/spine/core/actor_context_pb.d.ts.map +1 -0
  66. package/dist/generated/spine/core/actor_context_pb.js +23 -0
  67. package/dist/generated/spine/core/actor_context_pb.js.map +1 -0
  68. package/dist/generated/spine/core/bounded_context_pb.d.ts +35 -0
  69. package/dist/generated/spine/core/bounded_context_pb.d.ts.map +1 -0
  70. package/dist/generated/spine/core/bounded_context_pb.js +18 -0
  71. package/dist/generated/spine/core/bounded_context_pb.js.map +1 -0
  72. package/dist/generated/spine/core/command_pb.d.ts +245 -0
  73. package/dist/generated/spine/core/command_pb.d.ts.map +1 -0
  74. package/dist/generated/spine/core/command_pb.js +106 -0
  75. package/dist/generated/spine/core/command_pb.js.map +1 -0
  76. package/dist/generated/spine/core/diagnostics_pb.d.ts +97 -0
  77. package/dist/generated/spine/core/diagnostics_pb.d.ts.map +1 -0
  78. package/dist/generated/spine/core/diagnostics_pb.js +27 -0
  79. package/dist/generated/spine/core/diagnostics_pb.js.map +1 -0
  80. package/dist/generated/spine/core/enrichment_pb.d.ts +85 -0
  81. package/dist/generated/spine/core/enrichment_pb.d.ts.map +1 -0
  82. package/dist/generated/spine/core/enrichment_pb.js +25 -0
  83. package/dist/generated/spine/core/enrichment_pb.js.map +1 -0
  84. package/dist/generated/spine/core/event_pb.d.ts +307 -0
  85. package/dist/generated/spine/core/event_pb.d.ts.map +1 -0
  86. package/dist/generated/spine/core/event_pb.js +80 -0
  87. package/dist/generated/spine/core/event_pb.js.map +1 -0
  88. package/dist/generated/spine/core/response_pb.d.ts +87 -0
  89. package/dist/generated/spine/core/response_pb.d.ts.map +1 -0
  90. package/dist/generated/spine/core/response_pb.js +27 -0
  91. package/dist/generated/spine/core/response_pb.js.map +1 -0
  92. package/dist/generated/spine/core/tenant_id_pb.d.ts +64 -0
  93. package/dist/generated/spine/core/tenant_id_pb.d.ts.map +1 -0
  94. package/dist/generated/spine/core/tenant_id_pb.js +20 -0
  95. package/dist/generated/spine/core/tenant_id_pb.js.map +1 -0
  96. package/dist/generated/spine/core/user_id_pb.d.ts +33 -0
  97. package/dist/generated/spine/core/user_id_pb.d.ts.map +1 -0
  98. package/dist/generated/spine/core/user_id_pb.js +18 -0
  99. package/dist/generated/spine/core/user_id_pb.js.map +1 -0
  100. package/dist/generated/spine/core/version_pb.d.ts +44 -0
  101. package/dist/generated/spine/core/version_pb.d.ts.map +1 -0
  102. package/dist/generated/spine/core/version_pb.js +19 -0
  103. package/dist/generated/spine/core/version_pb.js.map +1 -0
  104. package/dist/generated/spine/delivery/admin/admin_service_pb.d.ts +219 -0
  105. package/dist/generated/spine/delivery/admin/admin_service_pb.d.ts.map +1 -0
  106. package/dist/generated/spine/delivery/admin/admin_service_pb.js +75 -0
  107. package/dist/generated/spine/delivery/admin/admin_service_pb.js.map +1 -0
  108. package/dist/generated/spine/delivery/commands_pb.d.ts +181 -0
  109. package/dist/generated/spine/delivery/commands_pb.d.ts.map +1 -0
  110. package/dist/generated/spine/delivery/commands_pb.js +57 -0
  111. package/dist/generated/spine/delivery/commands_pb.js.map +1 -0
  112. package/dist/generated/spine/delivery/events_pb.d.ts +230 -0
  113. package/dist/generated/spine/delivery/events_pb.d.ts.map +1 -0
  114. package/dist/generated/spine/delivery/events_pb.js +63 -0
  115. package/dist/generated/spine/delivery/events_pb.js.map +1 -0
  116. package/dist/generated/spine/delivery/message_delivery_pb.d.ts +205 -0
  117. package/dist/generated/spine/delivery/message_delivery_pb.d.ts.map +1 -0
  118. package/dist/generated/spine/delivery/message_delivery_pb.js +50 -0
  119. package/dist/generated/spine/delivery/message_delivery_pb.js.map +1 -0
  120. package/dist/generated/spine/delivery/pick_up_outcome_pb.d.ts +58 -0
  121. package/dist/generated/spine/delivery/pick_up_outcome_pb.d.ts.map +1 -0
  122. package/dist/generated/spine/delivery/pick_up_outcome_pb.js +20 -0
  123. package/dist/generated/spine/delivery/pick_up_outcome_pb.js.map +1 -0
  124. package/dist/generated/spine/delivery/rejections_pb.d.ts +95 -0
  125. package/dist/generated/spine/delivery/rejections_pb.d.ts.map +1 -0
  126. package/dist/generated/spine/delivery/rejections_pb.js +32 -0
  127. package/dist/generated/spine/delivery/rejections_pb.js.map +1 -0
  128. package/dist/generated/spine/deployment/node_discovery_pb.d.ts +102 -0
  129. package/dist/generated/spine/deployment/node_discovery_pb.d.ts.map +1 -0
  130. package/dist/generated/spine/deployment/node_discovery_pb.js +32 -0
  131. package/dist/generated/spine/deployment/node_discovery_pb.js.map +1 -0
  132. package/dist/generated/spine/net/email_address_pb.d.ts +37 -0
  133. package/dist/generated/spine/net/email_address_pb.d.ts.map +1 -0
  134. package/dist/generated/spine/net/email_address_pb.js +18 -0
  135. package/dist/generated/spine/net/email_address_pb.js.map +1 -0
  136. package/dist/generated/spine/net/internet_domain_pb.d.ts +35 -0
  137. package/dist/generated/spine/net/internet_domain_pb.d.ts.map +1 -0
  138. package/dist/generated/spine/net/internet_domain_pb.js +18 -0
  139. package/dist/generated/spine/net/internet_domain_pb.js.map +1 -0
  140. package/dist/generated/spine/options_pb.d.ts +1932 -0
  141. package/dist/generated/spine/options_pb.d.ts.map +1 -0
  142. package/dist/generated/spine/options_pb.js +960 -0
  143. package/dist/generated/spine/options_pb.js.map +1 -0
  144. package/dist/generated/spine/server/catchup/catch_up_pb.d.ts +185 -0
  145. package/dist/generated/spine/server/catchup/catch_up_pb.d.ts.map +1 -0
  146. package/dist/generated/spine/server/catchup/catch_up_pb.js +77 -0
  147. package/dist/generated/spine/server/catchup/catch_up_pb.js.map +1 -0
  148. package/dist/generated/spine/server/delivery/delivery_events_pb.d.ts +79 -0
  149. package/dist/generated/spine/server/delivery/delivery_events_pb.d.ts.map +1 -0
  150. package/dist/generated/spine/server/delivery/delivery_events_pb.js +27 -0
  151. package/dist/generated/spine/server/delivery/delivery_events_pb.js.map +1 -0
  152. package/dist/generated/spine/server/delivery/delivery_pb.d.ts +265 -0
  153. package/dist/generated/spine/server/delivery/delivery_pb.d.ts.map +1 -0
  154. package/dist/generated/spine/server/delivery/delivery_pb.js +63 -0
  155. package/dist/generated/spine/server/delivery/delivery_pb.js.map +1 -0
  156. package/dist/generated/spine/server/delivery/inbox_pb.d.ts +272 -0
  157. package/dist/generated/spine/server/delivery/inbox_pb.d.ts.map +1 -0
  158. package/dist/generated/spine/server/delivery/inbox_pb.js +139 -0
  159. package/dist/generated/spine/server/delivery/inbox_pb.js.map +1 -0
  160. package/dist/generated/spine/server/entity/entity_pb.d.ts +146 -0
  161. package/dist/generated/spine/server/entity/entity_pb.d.ts.map +1 -0
  162. package/dist/generated/spine/server/entity/entity_pb.js +62 -0
  163. package/dist/generated/spine/server/entity/entity_pb.js.map +1 -0
  164. package/dist/generated/spine/server/entity/state_key_pb.d.ts +46 -0
  165. package/dist/generated/spine/server/entity/state_key_pb.d.ts.map +1 -0
  166. package/dist/generated/spine/server/entity/state_key_pb.js +19 -0
  167. package/dist/generated/spine/server/entity/state_key_pb.js.map +1 -0
  168. package/dist/generated/spine/server/integration/broker_pb.d.ts +152 -0
  169. package/dist/generated/spine/server/integration/broker_pb.d.ts.map +1 -0
  170. package/dist/generated/spine/server/integration/broker_pb.js +65 -0
  171. package/dist/generated/spine/server/integration/broker_pb.js.map +1 -0
  172. package/dist/generated/spine/server/server_environment_pb.d.ts +65 -0
  173. package/dist/generated/spine/server/server_environment_pb.d.ts.map +1 -0
  174. package/dist/generated/spine/server/server_environment_pb.js +53 -0
  175. package/dist/generated/spine/server/server_environment_pb.js.map +1 -0
  176. package/dist/generated/spine/server/transport/transport_pb.d.ts +33 -0
  177. package/dist/generated/spine/server/transport/transport_pb.d.ts.map +1 -0
  178. package/dist/generated/spine/server/transport/transport_pb.js +18 -0
  179. package/dist/generated/spine/server/transport/transport_pb.js.map +1 -0
  180. package/dist/generated/spine/string/template_string_pb.d.ts +66 -0
  181. package/dist/generated/spine/string/template_string_pb.d.ts.map +1 -0
  182. package/dist/generated/spine/string/template_string_pb.js +18 -0
  183. package/dist/generated/spine/string/template_string_pb.js.map +1 -0
  184. package/dist/generated/spine/system/server/entity_log_events_pb.d.ts +505 -0
  185. package/dist/generated/spine/system/server/entity_log_events_pb.d.ts.map +1 -0
  186. package/dist/generated/spine/system/server/entity_log_events_pb.js +84 -0
  187. package/dist/generated/spine/system/server/entity_log_events_pb.js.map +1 -0
  188. package/dist/generated/spine/system/server/entity_type_pb.d.ts +46 -0
  189. package/dist/generated/spine/system/server/entity_type_pb.d.ts.map +1 -0
  190. package/dist/generated/spine/system/server/entity_type_pb.js +18 -0
  191. package/dist/generated/spine/system/server/entity_type_pb.js.map +1 -0
  192. package/dist/generated/spine/time/time_pb.d.ts +393 -0
  193. package/dist/generated/spine/time/time_pb.d.ts.map +1 -0
  194. package/dist/generated/spine/time/time_pb.js +184 -0
  195. package/dist/generated/spine/time/time_pb.js.map +1 -0
  196. package/dist/generated/spine/time_options_pb.d.ts +106 -0
  197. package/dist/generated/spine/time_options_pb.d.ts.map +1 -0
  198. package/dist/generated/spine/time_options_pb.js +58 -0
  199. package/dist/generated/spine/time_options_pb.js.map +1 -0
  200. package/dist/generated/spine/ui/language_pb.d.ts +1140 -0
  201. package/dist/generated/spine/ui/language_pb.d.ts.map +1 -0
  202. package/dist/generated/spine/ui/language_pb.js +1141 -0
  203. package/dist/generated/spine/ui/language_pb.js.map +1 -0
  204. package/dist/generated/spine/validation/validation_error_pb.d.ts +156 -0
  205. package/dist/generated/spine/validation/validation_error_pb.d.ts.map +1 -0
  206. package/dist/generated/spine/validation/validation_error_pb.js +27 -0
  207. package/dist/generated/spine/validation/validation_error_pb.js.map +1 -0
  208. package/dist/src/auth/index.d.ts +6 -0
  209. package/dist/src/auth/index.d.ts.map +1 -0
  210. package/dist/src/auth/index.js +19 -0
  211. package/dist/src/auth/index.js.map +1 -0
  212. package/dist/src/client/index.d.ts +12 -0
  213. package/dist/src/client/index.d.ts.map +1 -0
  214. package/dist/src/client/index.js +25 -0
  215. package/dist/src/client/index.js.map +1 -0
  216. package/dist/src/delivery/index.d.ts +7 -0
  217. package/dist/src/delivery/index.d.ts.map +1 -0
  218. package/dist/src/delivery/index.js +20 -0
  219. package/dist/src/delivery/index.js.map +1 -0
  220. package/dist/src/delivery-server/index.d.ts +11 -0
  221. package/dist/src/delivery-server/index.d.ts.map +1 -0
  222. package/dist/src/delivery-server/index.js +24 -0
  223. package/dist/src/delivery-server/index.js.map +1 -0
  224. package/dist/src/deployment/index.d.ts +5 -0
  225. package/dist/src/deployment/index.d.ts.map +1 -0
  226. package/dist/src/deployment/index.js +18 -0
  227. package/dist/src/deployment/index.js.map +1 -0
  228. package/dist/src/index.d.ts +333 -0
  229. package/dist/src/index.d.ts.map +1 -0
  230. package/dist/src/index.js +310 -0
  231. package/dist/src/index.js.map +1 -0
  232. package/dist/src/model/proto-module.d.ts +20 -0
  233. package/dist/src/model/proto-module.d.ts.map +1 -0
  234. package/dist/src/model/proto-module.js +15 -0
  235. package/dist/src/model/proto-module.js.map +1 -0
  236. package/dist/tsconfig.tsbuildinfo +1 -0
  237. package/generated/.spine-proto-generation.json +1 -0
  238. package/generated/grpc/health/v1/health_pb.ts +141 -0
  239. package/generated/proto-module.ts +320 -0
  240. package/generated/spine/auth/authenticated_subscription_pb.ts +64 -0
  241. package/generated/spine/auth/authentication_service_pb.ts +103 -0
  242. package/generated/spine/base/error_pb.ts +86 -0
  243. package/generated/spine/base/field_path_pb.ts +63 -0
  244. package/generated/spine/client/command_service_pb.ts +60 -0
  245. package/generated/spine/client/entities_pb.ts +51 -0
  246. package/generated/spine/client/filters_pb.ts +322 -0
  247. package/generated/spine/client/query_pb.ts +345 -0
  248. package/generated/spine/client/query_service_pb.ts +45 -0
  249. package/generated/spine/client/subscription_pb.ts +414 -0
  250. package/generated/spine/client/subscription_record_pb.ts +114 -0
  251. package/generated/spine/client/subscription_service_pb.ts +100 -0
  252. package/generated/spine/core/ack_pb.ts +63 -0
  253. package/generated/spine/core/actor_context_pb.ts +96 -0
  254. package/generated/spine/core/bounded_context_pb.ts +48 -0
  255. package/generated/spine/core/command_pb.ts +287 -0
  256. package/generated/spine/core/diagnostics_pb.ts +120 -0
  257. package/generated/spine/core/enrichment_pb.ts +97 -0
  258. package/generated/spine/core/event_pb.ts +347 -0
  259. package/generated/spine/core/response_pb.ts +103 -0
  260. package/generated/spine/core/tenant_id_pb.ts +76 -0
  261. package/generated/spine/core/user_id_pb.ts +46 -0
  262. package/generated/spine/core/version_pb.ts +59 -0
  263. package/generated/spine/delivery/admin/admin_service_pb.ts +253 -0
  264. package/generated/spine/delivery/commands_pb.ts +219 -0
  265. package/generated/spine/delivery/events_pb.ts +276 -0
  266. package/generated/spine/delivery/message_delivery_pb.ts +236 -0
  267. package/generated/spine/delivery/pick_up_outcome_pb.ts +70 -0
  268. package/generated/spine/delivery/rejections_pb.ts +120 -0
  269. package/generated/spine/deployment/node_discovery_pb.ts +127 -0
  270. package/generated/spine/net/email_address_pb.ts +50 -0
  271. package/generated/spine/net/internet_domain_pb.ts +48 -0
  272. package/generated/spine/options_pb.ts +2104 -0
  273. package/generated/spine/server/catchup/catch_up_pb.ts +224 -0
  274. package/generated/spine/server/delivery/delivery_events_pb.ts +102 -0
  275. package/generated/spine/server/delivery/delivery_pb.ts +305 -0
  276. package/generated/spine/server/delivery/inbox_pb.ts +321 -0
  277. package/generated/spine/server/entity/entity_pb.ts +176 -0
  278. package/generated/spine/server/entity/state_key_pb.ts +61 -0
  279. package/generated/spine/server/integration/broker_pb.ts +183 -0
  280. package/generated/spine/server/server_environment_pb.ts +83 -0
  281. package/generated/spine/server/transport/transport_pb.ts +46 -0
  282. package/generated/spine/string/template_string_pb.ts +78 -0
  283. package/generated/spine/system/server/entity_log_events_pb.ts +587 -0
  284. package/generated/spine/system/server/entity_type_pb.ts +56 -0
  285. package/generated/spine/time/time_pb.ts +465 -0
  286. package/generated/spine/time_options_pb.ts +129 -0
  287. package/generated/spine/ui/language_pb.ts +1337 -0
  288. package/generated/spine/validation/validation_error_pb.ts +181 -0
  289. package/package.json +61 -0
  290. package/proto/README.md +81 -0
  291. package/proto/frozen-descriptor-set.sha256 +3 -0
  292. package/proto/grpc/health/v1/health.proto +63 -0
  293. package/proto/spine/auth/authenticated_subscription.proto +36 -0
  294. package/proto/spine/auth/authentication_service.proto +47 -0
  295. package/proto/spine/base/error.proto +68 -0
  296. package/proto/spine/base/field_path.proto +59 -0
  297. package/proto/spine/client/command_service.proto +62 -0
  298. package/proto/spine/client/entities.proto +48 -0
  299. package/proto/spine/client/filters.proto +170 -0
  300. package/proto/spine/client/query.proto +186 -0
  301. package/proto/spine/client/query_service.proto +46 -0
  302. package/proto/spine/client/subscription.proto +220 -0
  303. package/proto/spine/client/subscription_record.proto +55 -0
  304. package/proto/spine/client/subscription_service.proto +86 -0
  305. package/proto/spine/core/ack.proto +55 -0
  306. package/proto/spine/core/actor_context.proto +76 -0
  307. package/proto/spine/core/bounded_context.proto +47 -0
  308. package/proto/spine/core/command.proto +170 -0
  309. package/proto/spine/core/diagnostics.proto +86 -0
  310. package/proto/spine/core/enrichment.proto +70 -0
  311. package/proto/spine/core/event.proto +197 -0
  312. package/proto/spine/core/response.proto +71 -0
  313. package/proto/spine/core/tenant_id.proto +61 -0
  314. package/proto/spine/core/user_id.proto +42 -0
  315. package/proto/spine/core/version.proto +63 -0
  316. package/proto/spine/delivery/admin/admin_service.proto +110 -0
  317. package/proto/spine/delivery/commands.proto +86 -0
  318. package/proto/spine/delivery/events.proto +107 -0
  319. package/proto/spine/delivery/message_delivery.proto +90 -0
  320. package/proto/spine/delivery/pick_up_outcome.proto +40 -0
  321. package/proto/spine/delivery/rejections.proto +49 -0
  322. package/proto/spine/deployment/node_discovery.proto +59 -0
  323. package/proto/spine/net/email_address.proto +46 -0
  324. package/proto/spine/net/internet_domain.proto +43 -0
  325. package/proto/spine/options.proto +1628 -0
  326. package/proto/spine/server/catchup/catch_up.proto +123 -0
  327. package/proto/spine/server/delivery/delivery.proto +166 -0
  328. package/proto/spine/server/delivery/delivery_events.proto +72 -0
  329. package/proto/spine/server/delivery/inbox.proto +169 -0
  330. package/proto/spine/server/entity/entity.proto +105 -0
  331. package/proto/spine/server/entity/state_key.proto +55 -0
  332. package/proto/spine/server/integration/broker.proto +112 -0
  333. package/proto/spine/server/server_environment.proto +57 -0
  334. package/proto/spine/server/transport/transport.proto +42 -0
  335. package/proto/spine/string/template_string.proto +70 -0
  336. package/proto/spine/system/server/entity_log_events.proto +280 -0
  337. package/proto/spine/system/server/entity_type.proto +49 -0
  338. package/proto/spine/time/time.proto +221 -0
  339. package/proto/spine/time_options.proto +106 -0
  340. package/proto/spine/ui/language.proto +417 -0
  341. package/proto/spine/validation/validation_error.proto +133 -0
  342. package/proto/spine-sources.json +438 -0
  343. package/spine-proto-manifest.json +112 -0
  344. 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,61 @@
1
+ {
2
+ "name": "@spine-event-engine/proto",
3
+ "version": "2.0.0-snapshot.2",
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
+ "tag": "snapshot"
15
+ },
16
+ "description": "Spine TS generated Protobuf-ES schema exports.",
17
+ "exports": {
18
+ ".": {
19
+ "types": "./dist/src/index.d.ts",
20
+ "default": "./dist/src/index.js"
21
+ },
22
+ "./client": {
23
+ "types": "./dist/src/client/index.d.ts",
24
+ "default": "./dist/src/client/index.js"
25
+ },
26
+ "./auth": {
27
+ "types": "./dist/src/auth/index.d.ts",
28
+ "default": "./dist/src/auth/index.js"
29
+ },
30
+ "./delivery": {
31
+ "types": "./dist/src/delivery/index.d.ts",
32
+ "default": "./dist/src/delivery/index.js"
33
+ },
34
+ "./delivery-server": {
35
+ "types": "./dist/src/delivery-server/index.d.ts",
36
+ "default": "./dist/src/delivery-server/index.js"
37
+ },
38
+ "./deployment": {
39
+ "types": "./dist/src/deployment/index.d.ts",
40
+ "default": "./dist/src/deployment/index.js"
41
+ },
42
+ "./spine-proto-manifest.json": "./spine-proto-manifest.json",
43
+ "./proto/*": "./proto/*",
44
+ "./generated/*.js": {
45
+ "types": "./dist/generated/*.d.ts",
46
+ "default": "./dist/generated/*.js"
47
+ }
48
+ },
49
+ "files": [
50
+ "dist",
51
+ "generated",
52
+ "README.md",
53
+ "REFERENCE.md",
54
+ "proto",
55
+ "spine-proto.json",
56
+ "spine-proto-manifest.json"
57
+ ],
58
+ "dependencies": {
59
+ "@bufbuild/protobuf": "2.12.1"
60
+ }
61
+ }
@@ -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,3 @@
1
+ 0844be5a0c588717932dc09da4d3fdc62c945a4f82be9bbb4e4d3d4814e42c3b
2
+ # Buf 1.71.0 complete FileDescriptorSet from the 50 manifest-pinned frozen
3
+ # sources; normalized by packages/proto/scripts/verify-descriptor-compatibility.mjs.
@@ -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
+ }