@spine-event-engine/delivery-server 2.0.0-snapshot.32 → 2.0.0-snapshot.33

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 (75) hide show
  1. package/README.md +63 -26
  2. package/REFERENCE.md +112 -53
  3. package/dist/admin/admin-service.d.ts +0 -7
  4. package/dist/admin/admin-service.d.ts.map +1 -1
  5. package/dist/admin/admin-service.js +231 -82
  6. package/dist/admin/admin-service.js.map +1 -1
  7. package/dist/core/in-memory-delivery-core.d.ts +19 -18
  8. package/dist/core/in-memory-delivery-core.d.ts.map +1 -1
  9. package/dist/core/in-memory-delivery-core.js +14 -14
  10. package/dist/core/in-memory-delivery-core.js.map +1 -1
  11. package/dist/core/in-memory-delivery-state.d.ts +61 -12
  12. package/dist/core/in-memory-delivery-state.d.ts.map +1 -1
  13. package/dist/core/in-memory-delivery-state.js +186 -100
  14. package/dist/core/in-memory-delivery-state.js.map +1 -1
  15. package/dist/core/inbox-service.d.ts +66 -3
  16. package/dist/core/inbox-service.d.ts.map +1 -1
  17. package/dist/core/inbox-service.js +84 -143
  18. package/dist/core/inbox-service.js.map +1 -1
  19. package/dist/core/mutation-admission.d.ts +3 -1
  20. package/dist/core/mutation-admission.d.ts.map +1 -1
  21. package/dist/core/mutation-admission.js +14 -3
  22. package/dist/core/mutation-admission.js.map +1 -1
  23. package/dist/core/shard-observing-service.d.ts +37 -0
  24. package/dist/core/shard-observing-service.d.ts.map +1 -0
  25. package/dist/core/shard-observing-service.js +267 -0
  26. package/dist/core/shard-observing-service.js.map +1 -0
  27. package/dist/core/shard-service.d.ts +29 -11
  28. package/dist/core/shard-service.d.ts.map +1 -1
  29. package/dist/core/shard-service.js +239 -154
  30. package/dist/core/shard-service.js.map +1 -1
  31. package/dist/core/wire-values.d.ts +10 -0
  32. package/dist/core/wire-values.d.ts.map +1 -1
  33. package/dist/core/wire-values.js +10 -0
  34. package/dist/core/wire-values.js.map +1 -1
  35. package/dist/health/health-service.d.ts.map +1 -1
  36. package/dist/health/health-service.js +1 -0
  37. package/dist/health/health-service.js.map +1 -1
  38. package/dist/server/assembly.d.ts +35 -2
  39. package/dist/server/assembly.d.ts.map +1 -1
  40. package/dist/server/assembly.js +62 -20
  41. package/dist/server/assembly.js.map +1 -1
  42. package/dist/server/config.d.ts +10 -3
  43. package/dist/server/config.d.ts.map +1 -1
  44. package/dist/server/config.js +22 -8
  45. package/dist/server/config.js.map +1 -1
  46. package/dist/server/delivery-child-pool.d.ts +83 -0
  47. package/dist/server/delivery-child-pool.d.ts.map +1 -0
  48. package/dist/server/delivery-child-pool.js +344 -0
  49. package/dist/server/delivery-child-pool.js.map +1 -0
  50. package/dist/server/delivery-parent-proxy.d.ts +45 -0
  51. package/dist/server/delivery-parent-proxy.d.ts.map +1 -0
  52. package/dist/server/delivery-parent-proxy.js +309 -0
  53. package/dist/server/delivery-parent-proxy.js.map +1 -0
  54. package/dist/server/delivery-server.d.ts +20 -20
  55. package/dist/server/delivery-server.d.ts.map +1 -1
  56. package/dist/server/delivery-server.js +59 -16
  57. package/dist/server/delivery-server.js.map +1 -1
  58. package/dist/server/delivery-stream-fan-in.d.ts +37 -0
  59. package/dist/server/delivery-stream-fan-in.d.ts.map +1 -0
  60. package/dist/server/delivery-stream-fan-in.js +334 -0
  61. package/dist/server/delivery-stream-fan-in.js.map +1 -0
  62. package/dist/server/private-delivery-child-process.d.ts +2 -0
  63. package/dist/server/private-delivery-child-process.d.ts.map +1 -0
  64. package/dist/server/private-delivery-child-process.js +71 -0
  65. package/dist/server/private-delivery-child-process.js.map +1 -0
  66. package/dist/server/private-delivery-child.d.ts +46 -0
  67. package/dist/server/private-delivery-child.d.ts.map +1 -0
  68. package/dist/server/private-delivery-child.js +145 -0
  69. package/dist/server/private-delivery-child.js.map +1 -0
  70. package/dist/tsconfig.tsbuildinfo +1 -1
  71. package/package.json +4 -3
  72. package/dist/core/limits.d.ts +0 -64
  73. package/dist/core/limits.d.ts.map +0 -1
  74. package/dist/core/limits.js +0 -73
  75. package/dist/core/limits.js.map +0 -1
package/README.md CHANGED
@@ -2,11 +2,11 @@
2
2
 
3
3
  This package provides the in-memory Delivery server. Use it to develop and test
4
4
  the local delivery path, or as the deliberately ephemeral delivery component in
5
- the supported examples. Its Inbox rows, leases, and delivered facts disappear
5
+ the supported examples. Its Inbox messages, leases, and delivered facts disappear
6
6
  when the process stops.
7
7
 
8
- The [reference](REFERENCE.md) records finite limits, shutdown order, and the
9
- complete protocol contract, including API detail for coding agents.
8
+ The [reference](REFERENCE.md) covers gRPC message sizes, shutdown, and the
9
+ contract for each service, including API details for coding agents.
10
10
 
11
11
  This is an experimental snapshot package. Use Node 24 or newer; an embedded
12
12
  server also needs an application-managed Connect listener.
@@ -19,7 +19,6 @@ pnpm add @spine-event-engine/delivery-server@snapshot
19
19
 
20
20
  - ✅ Coordinates inbox work and shard ownership between trusted Node processes.
21
21
  - ✅ Starts as a standalone command or embeds in another Node server.
22
- - ✅ Bounds retained messages, retained bytes, and tracked shards.
23
22
  - ✅ Provides administration and gRPC health endpoints for local operations.
24
23
 
25
24
  ## 🚀 Run a local server
@@ -43,22 +42,30 @@ The `spine-delivery-server` executable runs the same server. It reads
43
42
  configuration once at startup from explicit options, then environment variables,
44
43
  then defaults.
45
44
 
46
- | Setting | Environment variable | Default |
47
- | ----------------- | -------------------------- | ----------- |
48
- | Listener host | `HOST` | `127.0.0.1` |
49
- | Listener port | `PORT` | `8484` |
50
- | Inbound size | `MAX_INBOUND_MESSAGE_SIZE` | 4 MiB |
51
- | Pickup timeout | `SHARD_PROCESSING_TIMEOUT` | disabled |
52
- | Retained messages | `MAX_RETAINED_MESSAGES` | 10,000 |
53
- | Retained bytes | `MAX_RETAINED_BYTES` | 32 MiB |
54
- | Tracked shards | `MAX_TRACKED_SHARDS` | 1,000 |
45
+ | Setting | Environment variable | Default |
46
+ | ---------------- | --------------------------- | -------------------- |
47
+ | Listener host | `HOST` | `127.0.0.1` |
48
+ | Listener port | `PORT` | `8484` |
49
+ | Inbound size | `MAX_INBOUND_MESSAGE_SIZE` | gRPC framing maximum |
50
+ | Outbound size | `MAX_OUTBOUND_MESSAGE_SIZE` | gRPC framing maximum |
51
+ | Stale pickup age | `SHARD_PROCESSING_TIMEOUT` | Disabled |
52
+ | Work reminder | `WORK_REMINDER_SECONDS` | 10 seconds |
53
+ | Child processes | `DELIVERY_PROCESS_COUNT` | 1 |
54
+
55
+ Set `processCount: 2` when constructing `DeliveryServer`, or set
56
+ `DELIVERY_PROCESS_COUNT=2` for the executable. The public listener stays in the
57
+ parent process. It routes shard number `s` to child `s % 2`, while each child
58
+ keeps the full shard identity. For example, the parent forwards a write for
59
+ shard 3 to subprocess 1. Subprocess 1 writes to its inbox and returns the
60
+ result. Each subprocess stores its messages in memory.
61
+ If a subprocess exits, the parent starts a replacement in the same slot.
62
+ The exited process loses its in-memory messages and sessions.
55
63
 
56
64
  ## 🧩 Embed the handlers
57
65
 
58
66
  Use `InMemoryDelivery.create()` when an application provides the Connect router and
59
- listener itself. `DeliveryCore.inbox`, `.inboxRead`, and `.shards` are the public
60
- Connect handler implementations; register all three before creating the transport. The
61
- application still manages the network listener and its lifecycle.
67
+ listener itself. Register the inbox, shard, and work observation
68
+ handlers on the router as shown below. The application manages the network listener and its lifecycle.
62
69
 
63
70
  An embedded consumer must declare and install direct dependencies on
64
71
  `@spine-event-engine/delivery-server`, `@connectrpc/connect`, and
@@ -71,31 +78,61 @@ delivery server's transitive dependencies.
71
78
  ```ts
72
79
  import { createRouterTransport } from "@connectrpc/connect";
73
80
  import { InMemoryDelivery } from "@spine-event-engine/delivery-server";
74
- import { InboxService, ShardService } from "@spine-event-engine/proto/delivery-server";
81
+ import {
82
+ InboxService,
83
+ ShardObservingService,
84
+ ShardService,
85
+ } from "@spine-event-engine/proto/delivery-server";
75
86
 
76
87
  const delivery = InMemoryDelivery.create({
77
88
  processingTimeoutMs: 30_000,
78
- maxRetainedMessages: 10_000,
79
- maxRetainedBytes: 32 * 1024 * 1024,
80
- maxTrackedShards: 1_000,
81
89
  });
82
90
  const transport = createRouterTransport((router) => {
83
91
  router.service(InboxService, delivery.inbox);
84
92
  router.service(ShardService, delivery.shards);
93
+ router.service(ShardObservingService, delivery.observing);
85
94
  });
86
95
  void transport;
96
+
97
+ // During application shutdown, close active work streams and cancel the core's timers.
98
+ delivery.close();
87
99
  ```
88
100
 
89
- The example explicitly enables a 30-second processing timeout. The default is
90
- zero, which disables timeout-based takeover during shard pickup. The application
91
- supervisor can still release stale sessions. Its recovery scan and
92
- stale-session threshold are separate [recovery timers](REFERENCE.md#recovery-timers).
101
+ In the example, another worker can pick up a shard when more than 30 seconds
102
+ have passed since the recorded pickup. By default, age alone does not allow
103
+ a takeover. Releasing a shard with pending messages makes it available to
104
+ work-stream subscribers. The reminder interval controls when the server
105
+ repeats that notice.
106
+
107
+ The standalone listener exposes Inbox, Shard, Shard Observing, Admin, and gRPC health services.
93
108
 
94
- The standalone listener exposes Inbox, Shard, Admin, and gRPC health services.
95
109
  It binds only to the loopback address by default. An explicit non-loopback host
96
110
  is a caller-selected trusted-network deployment and should not be exposed
97
111
  directly to the public Internet.
98
112
 
113
+ ## Work notifications
114
+
115
+ An application instance can open `ShardObservingService.ObserveAll` on the same
116
+ gRPC endpoint as the inbox. Each response identifies a free shard containing at
117
+ least one message with status `TO_DELIVER`. Every subscribed instance can receive
118
+ the same shard index. The application requests pickup before reading the messages
119
+ and running a handler.
120
+
121
+ Suppose shard 4 of 16 already contains a Command when a second application
122
+ instance connects. The server reports shard 4 on that new connection immediately.
123
+ When all shards are empty or being processed, the call stays open and silent.
124
+
125
+ If neither instance takes shard 4, the server sends the index again after the
126
+ configured reminder interval, ten seconds by default. Set `workReminderSeconds`
127
+ when constructing the server or set `WORK_REMINDER_SECONDS` for the executable.
128
+
129
+ Suppose the first subscriber connects at noon and receives a notice for a Command
130
+ written at 11:59:51. The first reminder is due at 12:00:10. A second Command
131
+ written to that shard at 12:00:03 leaves that reminder due at 12:00:10.
132
+ Pickup stops the reminders. If the worker releases shard 4 with a Command
133
+ still waiting, the server reports it again.
134
+ A reconnect starts with the shards available at that time.
135
+
99
136
  ## ⚠️ In-memory means temporary
100
137
 
101
138
  State disappears when the process stops, including accepted pending Commands.
@@ -106,7 +143,7 @@ processes but does not make this in-memory server durable.
106
143
 
107
144
  The server has no durable mode, TLS,
108
145
  authentication, authorization, configuration reload, health watch stream, or
109
- administration UI. A pending row is not an attempt-history or quarantine
146
+ administration UI. A pending message is not an attempt-history or quarantine
110
147
  record. Its default loopback listener is for development; a wider listener
111
148
  belongs only on an application-managed trusted network.
112
149
 
package/REFERENCE.md CHANGED
@@ -12,15 +12,17 @@ This reference describes the public in-memory Delivery server API. Read the
12
12
  ## Public entry points
13
13
 
14
14
  `InMemoryDelivery.create(options)` returns `DeliveryCore` with Connect handler
15
- implementations `inbox`, `inboxRead`, and `shards`. It does not open a listener or install
16
- Admin/health handlers. The caller registers these handlers and provides the
17
- network lifecycle.
15
+ implementations `inbox`, `shards`, and `observing`.
16
+ Register `observing` for `ShardObservingService` so application nodes can receive work notices.
17
+ The caller supplies the network listener. Call `close()` to finish streams and cancel
18
+ timers. The standalone `DeliveryServer` also provides the Admin and health services.
18
19
 
19
20
  `DeliveryServer` is the standalone lifecycle owner. Its constructor validates
20
21
  and resolves configuration exactly once. `start()` is idempotent and concurrent
21
22
  calls share one promise. `baseUrl` is available only after successful startup.
22
23
  `close()` is idempotent, terminal, and shares one promise; it stops service,
23
- rejects unadmitted work, completes Admin streams, and closes listener sessions.
24
+ rejects unadmitted work, ends Admin and work streams, cancels work reminders,
25
+ and closes listener sessions.
24
26
  Neither a failed start nor a closed instance can be restarted.
25
27
 
26
28
  The CLI `spine-delivery-server` starts that same server and closes it once on
@@ -33,58 +35,113 @@ which override defaults. Invalid values throw before a listener is created:
33
35
 
34
36
  - `host` / `HOST`: non-blank text; default `127.0.0.1`;
35
37
  - `port` / `PORT`: integer 0–65535; default 8484;
36
- - `maxInboundMessageBytes` / `MAX_INBOUND_MESSAGE_SIZE`: integer 1–2147483647;
37
- default 4194304;
38
- - `processingTimeoutSeconds` / `SHARD_PROCESSING_TIMEOUT`: integer
39
- 0–2147483647; default 0, which disables timeout-based takeover during pickup;
40
- - retained message/byte limits: integer 1–2147483647; defaults 10000 and
41
- 33554432;
42
- - tracked shards: integer 1–1000; default 1000.
43
-
44
- The core accepts pages of 1–1000 messages, mutation batches of 1–100 messages,
45
- payloads no larger than 1 MiB, and request/response bodies no larger than 4
46
- MiB. Capacity is finite: an operation that would exceed retained messages,
47
- bytes, or shards fails atomically with `RESOURCE_EXHAUSTED`; it is not partially
48
- accepted or silently shortened.
49
-
50
- ## Recovery timers
51
-
52
- The application `DeliverySupervisor` scans for pending work every 10 seconds by
53
- default; its `recoveryMs` option retains an explicit override. This scan is
54
- separate from the supervisor's default 60-second stale-session threshold
55
- (`staleMs`) and `ShardedWorkRegistry`'s default 30-second SQL lease (`leaseMs`).
56
- The in-memory Delivery server uses a separate processing timeout: `processingTimeoutSeconds` on the listener, or
57
- `processingTimeoutMs` on `InMemoryDelivery`. Its default is zero, which disables
58
- automatic pickup takeover; applications may configure a positive timeout.
59
- This does not disable the application supervisor's separate release of stale
60
- sessions. A positive server processing timeout alone does not shorten the
61
- supervisor's stale-session threshold.
62
-
63
- A scan can encounter a busy shard, an unexpired session, unavailable storage, or
64
- failed processing. Request deadlines, retry delays, and Delivery shutdown bounds also
65
- have separate responsibilities. A 10-second scan interval therefore guarantees
66
- neither delivery within 10 seconds nor worker takeover within 10 seconds.
38
+ - `processCount` / `DELIVERY_PROCESS_COUNT`: positive safe integer; default 1;
39
+ - `maxInboundMessageBytes` / `MAX_INBOUND_MESSAGE_SIZE` controls the bytes
40
+ received in one gRPC message. `maxOutboundMessageBytes` /
41
+ `MAX_OUTBOUND_MESSAGE_SIZE` controls the bytes sent. Both accept integers
42
+ from 1 to 4,294,967,295. The default is the upper end of the transport's range.
43
+ - `processingTimeoutSeconds` / `SHARD_PROCESSING_TIMEOUT` sets the age after which another worker
44
+ can take over on pickup. Zero, the default, disables takeover by age.
45
+
46
+ The in-memory inbox keeps two balanced trees per shard. One orders all stored
47
+ messages, the other orders messages waiting for delivery. They use receive
48
+ seconds, nanoseconds, version, and inbox UUID. For example, if a worker
49
+ acknowledges the newest pending Command, that Command leaves the pending tree
50
+ and stays in the full tree until cleanup. Writing a replacement with the same
51
+ inbox ID updates its position and status in both collections.
52
+
53
+ The inbox uses available process memory. A batch of 150 valid inbox messages for
54
+ the same shard can be stored in one request. A reader can request a page of
55
+ 2,000 messages. The configured gRPC size applies to both the public connection
56
+ and the connections to storage subprocesses.
57
+
58
+ With `processCount` greater than one, the public endpoint runs in a parent
59
+ process and starts that many homogeneous child processes. Shard number `s`
60
+ routes to subprocess `s % processCount`. The public endpoint forwards each
61
+ shard-specific gRPC call there. That subprocess handles the read, write,
62
+ pickup, renewal, or release and returns its result.
63
+ For a batch containing messages for shard 2 and shard 3, the parent uses the
64
+ shard in each inbox ID. With two subprocesses it sends those messages to
65
+ subprocesses 0 and 1 respectively. A deletion uses only the inbox ID.
66
+ An empty batch succeeds without changing storage.
67
+ The parent combines Admin snapshots and streams work notices from all healthy
68
+ children. When a subprocess exits, it loses its in-memory inbox messages and sessions. Its shards are
69
+ temporarily unavailable while its replacement starts. The other subprocess
70
+ continues serving its shards.
71
+
72
+ ## Work reminder interval
73
+
74
+ `workReminderSeconds` configures the interval before the server repeats a
75
+ notice for a free shard that still contains pending messages. The executable reads
76
+ `WORK_REMINDER_SECONDS`. The default is ten seconds.
77
+ The accepted value is a whole number of seconds from 1 through
78
+ `Math.floor(Number.MAX_SAFE_INTEGER / 1_000)`.
79
+
80
+ For example, setting it to 30 gives workers thirty seconds before the server
81
+ sends a reminder for the same unclaimed shard. A new subscriber still receives
82
+ that shard during initial discovery. Taking the shard stops its reminders.
83
+
84
+ ## Session lifetime and work reminders
85
+
86
+ The standalone server accepts `processingTimeoutSeconds`. An embedded
87
+ server accepts `processingTimeoutMs`. By default a shard stays assigned
88
+ until release. For example, an operator can use JVM's `ReleaseSessions`
89
+ to release assignments that have been inactive for at least an hour.
90
+ Releasing shard 4 makes a pending Command there visible to subscribers.
91
+ If nobody takes it, the server repeats the notice after ten seconds by default.
92
+
93
+ If the standalone server is configured with a processing timeout of 60
94
+ seconds, a competing pickup can take over once **more than** 60 seconds have
95
+ passed since the recorded pickup. The work reminder interval applies to a
96
+ free shard. It does not set a deadline for a handler.
67
97
 
68
98
  ## Delivery semantics
69
99
 
70
- Mutations pass a FIFO admission boundary with 100 waiting slots. Aborting before
71
- admission commits nothing. Admission is the linearization point: once admitted,
72
- the synchronous mutation can commit even if the caller aborts or loses its
73
- response.
74
-
75
- The JVM `InboxService.FindManyInShard` page RPC uses an exclusive timestamp
76
- bound. Reads are live and do not promise a snapshot across pages. Distinct
77
- received timestamps permit continued paging; a full page ending in tied times
78
- is reported as unsafe continuation.
79
- Automatic pickup takeover requires elapsed time
80
- strictly greater than `processingTimeoutMs`; manual expiration accepts elapsed
81
- time greater than or equal to the supplied interval. Release is not
82
- pickup-time-conditional, but the supplied worker must match the current owner;
83
- a stale worker cannot release a newer worker's session. This in-memory server
84
- stores neither attempt history nor a quarantine state.
85
-
86
- Admin observation acknowledges first and then streams updates through a bounded
87
- queue. Health `Check` reports registered names while the listener serves;
100
+ In a single process, writes run in the order they enter the server's queue.
101
+ In a multi-process server, each storage subprocess handles the writes routed
102
+ to it in local admission order. Writes handled by different subprocesses can run at the same
103
+ time. Canceling a queued write before it starts prevents that write from
104
+ changing the inbox. Once it starts, it can finish even if the caller
105
+ disconnects before receiving the reply.
106
+
107
+ Each call to `InboxService.FindManyInShard` reads the current inbox. Its
108
+ `sinceWhen` field selects messages received strictly after the supplied time.
109
+ An omitted timestamp or an explicit zero starts at the beginning of the shard.
110
+ A nonpositive page size produces the JVM service's `UNKNOWN` gRPC status.
111
+ Suppose a worker reads two messages per page and three messages have the same
112
+ receive time. Using that time as the next lower bound would skip the third
113
+ message. The TS worker includes that instant again, asks for a larger page
114
+ when needed, and skips the messages it already visited using their inbox
115
+ counters and UUIDs. It uses the same RPC for both reads.
116
+
117
+ `ShardService.PickShard` takes a free shard, including an empty shard.
118
+ Repeating pickup with the same worker refreshes the recorded time. If a
119
+ different worker asks for the shard while that assignment is current, the
120
+ response identifies the worker that already has it.
121
+
122
+ `ReleaseSession` takes a shard and a worker. For example, if worker East
123
+ finishes after worker West has taken over, releasing East's assignment leaves
124
+ West in place. The operation returns an empty reply. `ReleaseSessions`
125
+ accepts an inactivity period. A period of 500 microseconds includes an
126
+ assignment exactly 500 microseconds old and leaves a younger one active.
127
+
128
+ The Admin `messages` count includes every stored inbox message for the shard.
129
+ For example, after the worker acknowledges the only Command, Admin still shows
130
+ one message. The work stream stays silent because that message is already delivered.
131
+ When the framework removes the retained message during a later drain, the stored
132
+ count falls to zero.
133
+
134
+ A shard that was picked up previously keeps its last pickup time in Admin.
135
+ For example, pick up an empty shard and release it. A newly opened dashboard
136
+ can still show that shard as free, with zero messages and its last pickup time.
137
+ The work stream stays silent because the inbox has no pending messages there.
138
+
139
+ An Admin subscription sends its acknowledgement, the current state of known
140
+ shards, and subsequent changes. Changes within 25 milliseconds can be combined
141
+ for the same shard. Changes to a different shard have their own interval.
142
+ Removing the final message from a free shard sends its empty state to the dashboard.
143
+
144
+ Health `Check` reports registered names while the listener serves;
88
145
  unknown names are `NOT_SERVING`. Health `Watch` is not implemented.
89
146
 
90
147
  ## Security and topology limits
@@ -94,3 +151,5 @@ recovery, cluster coordination, Redis/Hazelcast mode, TLS, authentication,
94
151
  authorization, public-Internet hardening, CLI flags, or configuration reload.
95
152
  An application may choose a non-loopback bind or a proxy, but those deployment
96
153
  controls remain its responsibility.
154
+
155
+ A dashboard that pauses can still see the latest state for every changed shard. While an update is waiting to be read, a newer state for the same shard replaces it. For example, if the inbox count changes from one to two to three before the dashboard reads the update, it receives three.
@@ -20,13 +20,6 @@ export interface AdminPublisherHandle {
20
20
  * @param shard Identifies the changed shard.
21
21
  */
22
22
  publish(shard: ShardIndex): void;
23
- /**
24
- * Records a pending Inbox message-count transition.
25
- *
26
- * @param shard Identifies the changed shard.
27
- * @param delta Supplies the pending count change from insertion, removal, or status transition.
28
- */
29
- recordMessageTransition(shard: ShardIndex, delta: 1 | -1): void;
30
23
  /**
31
24
  * Closes all active administrative subscriptions.
32
25
  */
@@ -1 +1 @@
1
- {"version":3,"file":"admin-service.d.ts","sourceRoot":"","sources":["../../src/admin/admin-service.ts"],"names":[],"mappings":"AAeA,OAAO,EAAsB,KAAK,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAC3E,OAAO,EACL,YAAY,EAOb,MAAM,2CAA2C,CAAC;AACnD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAErE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,qCAAqC,CAAC;AAIjF;;GAEG;AACH,MAAM,WAAW,oBAAoB;IAGnC;;OAEG;IACH,QAAQ,CAAC,OAAO,EAAE,WAAW,CAAC,OAAO,YAAY,CAAC,CAAC;IAEnD;;OAEG;IACH,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC;IAEjC;;;;OAIG;IACH,OAAO,CAAC,KAAK,EAAE,UAAU,GAAG,IAAI,CAAC;IAEjC;;;;;OAKG;IACH,uBAAuB,CAAC,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,CAAC,GAAG,CAAC,CAAC,GAAG,IAAI,CAAC;IAEhE;;OAEG;IACH,KAAK,IAAI,IAAI,CAAC;CACf;AAED;;GAEG;AACH,eAAO,MAAM,cAAc,EAAE,QAAQ,CAAC;IAGpC;;;;;OAKG;IACH,MAAM,EAAE,CAAC,KAAK,EAAE,qBAAqB,KAAK,oBAAoB,CAAC;CAChE,CAkEC,CAAC"}
1
+ {"version":3,"file":"admin-service.d.ts","sourceRoot":"","sources":["../../src/admin/admin-service.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAsB,KAAK,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAC3E,OAAO,EACL,YAAY,EAOb,MAAM,2CAA2C,CAAC;AACnD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAErE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,qCAAqC,CAAC;AAGjF;;GAEG;AACH,MAAM,WAAW,oBAAoB;IAGnC;;OAEG;IACH,QAAQ,CAAC,OAAO,EAAE,WAAW,CAAC,OAAO,YAAY,CAAC,CAAC;IAEnD;;OAEG;IACH,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC;IAEjC;;;;OAIG;IACH,OAAO,CAAC,KAAK,EAAE,UAAU,GAAG,IAAI,CAAC;IAEjC;;OAEG;IACH,KAAK,IAAI,IAAI,CAAC;CACf;AAED;;GAEG;AACH,eAAO,MAAM,cAAc,EAAE,QAAQ,CAAC;IAGpC;;;;;OAKG;IACH,MAAM,EAAE,CAAC,KAAK,EAAE,qBAAqB,KAAK,oBAAoB,CAAC;CAChE,CA4BC,CAAC"}