@bitfab/sdk 0.34.1 → 0.36.0

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
@@ -288,9 +288,7 @@ interface ReplayContext {
288
288
  *
289
289
  * Returns `false` when delivery failed or the deadline expired, so a caller
290
290
  * that depends on persistence (replay does) can react instead of assuming a
291
- * drained queue means the server has the data. When delivery goes through a
292
- * Collector, `true` means the Collector accepted the spans; it is not proof
293
- * that Bitfab committed them.
291
+ * drained queue means the server has the data.
294
292
  *
295
293
  * @param timeoutMs - Maximum total time to wait in milliseconds (default: 5000)
296
294
  */
@@ -399,6 +397,15 @@ declare class HttpClient {
399
397
  timeout?: number;
400
398
  method?: "POST" | "PATCH" | "PUT";
401
399
  }): Promise<T>;
400
+ /**
401
+ * POST an already-encoded body. The span transport encodes its own batches,
402
+ * so routing them back through {@link HttpClient.request} would encode the
403
+ * same data twice.
404
+ */
405
+ sendEncoded<T>(endpoint: string, body: string, options?: {
406
+ timeout?: number;
407
+ method?: "POST" | "PATCH" | "PUT";
408
+ }): Promise<T>;
402
409
  /**
403
410
  * Look up a function by name.
404
411
  * Blocks until complete - needed for function execution.
@@ -2329,7 +2336,7 @@ declare class BitfabFunction {
2329
2336
  /**
2330
2337
  * SDK version from package.json (injected at build time)
2331
2338
  */
2332
- declare const __version__ = "0.34.1";
2339
+ declare const __version__ = "0.36.0";
2333
2340
 
2334
2341
  /**
2335
2342
  * Constants for the Bitfab SDK.
package/dist/index.d.ts CHANGED
@@ -288,9 +288,7 @@ interface ReplayContext {
288
288
  *
289
289
  * Returns `false` when delivery failed or the deadline expired, so a caller
290
290
  * that depends on persistence (replay does) can react instead of assuming a
291
- * drained queue means the server has the data. When delivery goes through a
292
- * Collector, `true` means the Collector accepted the spans; it is not proof
293
- * that Bitfab committed them.
291
+ * drained queue means the server has the data.
294
292
  *
295
293
  * @param timeoutMs - Maximum total time to wait in milliseconds (default: 5000)
296
294
  */
@@ -399,6 +397,15 @@ declare class HttpClient {
399
397
  timeout?: number;
400
398
  method?: "POST" | "PATCH" | "PUT";
401
399
  }): Promise<T>;
400
+ /**
401
+ * POST an already-encoded body. The span transport encodes its own batches,
402
+ * so routing them back through {@link HttpClient.request} would encode the
403
+ * same data twice.
404
+ */
405
+ sendEncoded<T>(endpoint: string, body: string, options?: {
406
+ timeout?: number;
407
+ method?: "POST" | "PATCH" | "PUT";
408
+ }): Promise<T>;
402
409
  /**
403
410
  * Look up a function by name.
404
411
  * Blocks until complete - needed for function execution.
@@ -2329,7 +2336,7 @@ declare class BitfabFunction {
2329
2336
  /**
2330
2337
  * SDK version from package.json (injected at build time)
2331
2338
  */
2332
- declare const __version__ = "0.34.1";
2339
+ declare const __version__ = "0.36.0";
2333
2340
 
2334
2341
  /**
2335
2342
  * Constants for the Bitfab SDK.
package/dist/index.js CHANGED
@@ -11,7 +11,7 @@ import {
11
11
  getCurrentReplayBranch,
12
12
  getCurrentSpan,
13
13
  getCurrentTrace
14
- } from "./chunk-KO373TDH.js";
14
+ } from "./chunk-JECWMVJG.js";
15
15
  import {
16
16
  BITFAB_PROGRESS_PREFIX,
17
17
  BitfabError,
@@ -20,7 +20,7 @@ import {
20
20
  __version__,
21
21
  flushTraces,
22
22
  reportReplayProgress
23
- } from "./chunk-5ZMEY5NX.js";
23
+ } from "./chunk-4YTIVUYX.js";
24
24
  export {
25
25
  BITFAB_PROGRESS_PREFIX,
26
26
  Bitfab,