@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 +5 -0
- package/dist/generated/openapi.d.ts +2 -0
- package/package.json +1 -1
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
|
|