@trycourier/courier-ui-inbox 2.3.0 → 2.4.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 +5 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +11 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -49,7 +49,11 @@ The SDK requires a JWT (JSON Web Token) for authentication. **Always generate JW
|
|
|
49
49
|
3. Your backend returns the JWT to your client and passes it to the SDK.
|
|
50
50
|
|
|
51
51
|
```bash
|
|
52
|
-
curl --request POST
|
|
52
|
+
curl --request POST \
|
|
53
|
+
--url https://api.courier.com/auth/issue-token \
|
|
54
|
+
--header 'Authorization: Bearer $YOUR_API_KEY' \
|
|
55
|
+
--header 'Content-Type: application/json' \
|
|
56
|
+
--data '{
|
|
53
57
|
"scope": "user_id:$YOUR_USER_ID inbox:read:messages inbox:write:events",
|
|
54
58
|
"expires_in": "1 day"
|
|
55
59
|
}'
|
package/dist/index.d.ts
CHANGED
|
@@ -13,5 +13,6 @@ export * from './datastore/inbox-datastore';
|
|
|
13
13
|
export * from './datastore/datastore-listener';
|
|
14
14
|
export * from './datastore/datatore-events';
|
|
15
15
|
export { Courier };
|
|
16
|
-
export type { CourierProps, CourierClientOptions, CourierBrand, CourierApiUrls, CourierUserPreferences, CourierUserPreferencesStatus, CourierUserPreferencesChannel, CourierUserPreferencesPaging, CourierUserPreferencesTopic, CourierUserPreferencesTopicResponse, CourierDevice, CourierToken, CourierGetInboxMessageResponse, CourierGetInboxMessagesResponse, InboxMessage, InboxAction, InboxMessageEventEnvelope, } from '@trycourier/courier-js';
|
|
16
|
+
export type { CourierProps, CourierClientOptions, CourierBrand, CourierApiRegion, CourierApiUrls, CourierUserPreferences, CourierUserPreferencesStatus, CourierUserPreferencesChannel, CourierUserPreferencesPaging, CourierUserPreferencesTopic, CourierUserPreferencesTopicResponse, CourierDevice, CourierToken, CourierGetInboxMessageResponse, CourierGetInboxMessagesResponse, InboxMessage, InboxAction, InboxMessageEventEnvelope, } from '@trycourier/courier-js';
|
|
17
|
+
export { DEFAULT_COURIER_API_URLS, EU_COURIER_API_URLS, getCourierApiUrls, getCourierApiUrlsForRegion } from '@trycourier/courier-js';
|
|
17
18
|
export type { CourierComponentThemeMode } from '@trycourier/courier-ui-core';
|