@clocknext/sdk 0.12.0 → 0.12.1
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/README.md +41 -10
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +13 -4
- package/dist/index.d.ts +13 -4
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/config.ts +7 -3
- package/src/resources/signals.ts +9 -2
- package/src/types.ts +4 -2
package/dist/index.d.cts
CHANGED
|
@@ -249,8 +249,10 @@ interface TrackResult {
|
|
|
249
249
|
* `"accepted"` — the server has written it to its durable inbox (`202`)
|
|
250
250
|
* and will price it shortly. It can no longer be lost, but
|
|
251
251
|
* it is not billed yet and `usageLog` is null. A rejection
|
|
252
|
-
* discovered during pricing will NOT come back to you here
|
|
253
|
-
*
|
|
252
|
+
* discovered during pricing will NOT come back to you here,
|
|
253
|
+
* nor on `onError`. `signals.list()` shows what got priced;
|
|
254
|
+
* the dashboard's signal log — owner-only, by design — is
|
|
255
|
+
* where an individual rejection says why.
|
|
254
256
|
* `"recorded"` — the server priced it inline and `usageLog` is populated.
|
|
255
257
|
* `"dropped"` — the SDK threw it away without sending: the client is
|
|
256
258
|
* closed, or the local queue is full. `onDrop` fired with
|
|
@@ -1916,8 +1918,15 @@ declare function signalToWire(signal: Signal): Record<string, unknown>;
|
|
|
1916
1918
|
*
|
|
1917
1919
|
* Because of that, a signal the server later REJECTS (unknown `agentKey`, a
|
|
1918
1920
|
* model the org has not enabled, no active plan) cannot come back through this
|
|
1919
|
-
* promise
|
|
1920
|
-
*
|
|
1921
|
+
* promise — and does not reach `onError` either, since from here that request
|
|
1922
|
+
* succeeded. Such a rejection has no programmatic channel at all: it is
|
|
1923
|
+
* recorded on the workspace's signal log in the ClockNext dashboard, which is
|
|
1924
|
+
* owner-only by design.
|
|
1925
|
+
*
|
|
1926
|
+
* `list()` is the partial check available from code. It returns priced usage
|
|
1927
|
+
* logs with a `status`, so it confirms a signal landed and whether pricing
|
|
1928
|
+
* succeeded — but a signal refused BEFORE pricing never becomes a usage log
|
|
1929
|
+
* and does not appear there.
|
|
1921
1930
|
*/
|
|
1922
1931
|
declare class Signals {
|
|
1923
1932
|
private readonly transport;
|
package/dist/index.d.ts
CHANGED
|
@@ -249,8 +249,10 @@ interface TrackResult {
|
|
|
249
249
|
* `"accepted"` — the server has written it to its durable inbox (`202`)
|
|
250
250
|
* and will price it shortly. It can no longer be lost, but
|
|
251
251
|
* it is not billed yet and `usageLog` is null. A rejection
|
|
252
|
-
* discovered during pricing will NOT come back to you here
|
|
253
|
-
*
|
|
252
|
+
* discovered during pricing will NOT come back to you here,
|
|
253
|
+
* nor on `onError`. `signals.list()` shows what got priced;
|
|
254
|
+
* the dashboard's signal log — owner-only, by design — is
|
|
255
|
+
* where an individual rejection says why.
|
|
254
256
|
* `"recorded"` — the server priced it inline and `usageLog` is populated.
|
|
255
257
|
* `"dropped"` — the SDK threw it away without sending: the client is
|
|
256
258
|
* closed, or the local queue is full. `onDrop` fired with
|
|
@@ -1916,8 +1918,15 @@ declare function signalToWire(signal: Signal): Record<string, unknown>;
|
|
|
1916
1918
|
*
|
|
1917
1919
|
* Because of that, a signal the server later REJECTS (unknown `agentKey`, a
|
|
1918
1920
|
* model the org has not enabled, no active plan) cannot come back through this
|
|
1919
|
-
* promise
|
|
1920
|
-
*
|
|
1921
|
+
* promise — and does not reach `onError` either, since from here that request
|
|
1922
|
+
* succeeded. Such a rejection has no programmatic channel at all: it is
|
|
1923
|
+
* recorded on the workspace's signal log in the ClockNext dashboard, which is
|
|
1924
|
+
* owner-only by design.
|
|
1925
|
+
*
|
|
1926
|
+
* `list()` is the partial check available from code. It returns priced usage
|
|
1927
|
+
* logs with a `status`, so it confirms a signal landed and whether pricing
|
|
1928
|
+
* succeeded — but a signal refused BEFORE pricing never becomes a usage log
|
|
1929
|
+
* and does not appear there.
|
|
1921
1930
|
*/
|
|
1922
1931
|
declare class Signals {
|
|
1923
1932
|
private readonly transport;
|