@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/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
- * read it back with `signals.list()`.
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. It surfaces on the `onError` hook, and `list()` is how you confirm
1920
- * one actually landed — ingestion being asynchronous, the only way to.
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
- * read it back with `signals.list()`.
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. It surfaces on the `onError` hook, and `list()` is how you confirm
1920
- * one actually landed — ingestion being asynchronous, the only way to.
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.js CHANGED
@@ -326,7 +326,7 @@ function sleep(ms) {
326
326
  }
327
327
 
328
328
  // src/http.ts
329
- var SDK_VERSION = "0.12.0" ;
329
+ var SDK_VERSION = "0.12.1" ;
330
330
  var Transport = class {
331
331
  constructor(cfg) {
332
332
  this.cfg = cfg;