@bitbitpress/client 0.1.7 → 0.1.8

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 CHANGED
@@ -306,6 +306,7 @@ client.user.signal(options: SignalRequest): Promise<SignalResponse>
306
306
  - `contentContext` (optional): Context about the content that triggered this signal
307
307
  - `contentId` (required): The ID of the content (e.g., your article ID)
308
308
  - `contentType` (required): The type of content (currently only `"article"`)
309
+ - `options.isSynchronous` (optional): When `true`, the request waits for signals to be processed. Defaults to `false`. Use sparingly.
309
310
 
310
311
  ##### Returns
311
312
 
@@ -559,6 +560,8 @@ for await (const event of stream) {
559
560
 
560
561
  ### Types
561
562
 
563
+ API request/response types are derived from the Control Room OpenAPI spec. The source of truth is `src/generated/openapi.d.ts`, generated by `npm run generate:types`. The types below mirror that spec for reference.
564
+
562
565
  #### BitBitPressClientConfig
563
566
 
564
567
  ```typescript
@@ -650,6 +653,8 @@ type SignalRequest = {
650
653
  contentType: 'article';
651
654
  };
652
655
  }>;
656
+ /** When true, wait for signals to be processed. Default false. Use sparingly. */
657
+ isSynchronous?: boolean;
653
658
  }
654
659
  ```
655
660
 
@@ -482,6 +482,8 @@ export interface paths {
482
482
  contentType: "article";
483
483
  };
484
484
  }[];
485
+ /** @description Whether the request should wait for the signals to be processed. False by default. Use sparingly. */
486
+ isSynchronous?: boolean;
485
487
  };
486
488
  };
487
489
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bitbitpress/client",
3
- "version": "0.1.7",
3
+ "version": "0.1.8",
4
4
  "description": "BitBitPress TypeScript client library",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",