LitePushConfig
interface| Property | Type | Description |
|---|---|---|
| apiKey | string | Your server API key ( |
| baseUrl? | string | Override the API origin. Defaults to |
| fetch? | query | Inject a custom fetch (e.g. for testing or a proxy). Defaults to global |
LitePushApiError
classThrown for any non-2xx API response. code is the stable machine-readable identifier from the error envelope (e.g. monthly_push_limit_reached); branch on it rather than on message.
Constructor
| Parameter | Type | Description |
|---|---|---|
| code | string | — |
| message | string | — |
| status | number | — |
Properties
LitePush
classConstructor
| Parameter | Type | Description |
|---|---|---|
| config | string | LitePushConfig | — |
Methods
Verify the API key and read back the project identity it belongs to.
Namespaces
.broadcastsnamespaceCreate a broadcast and queue it for fan-out. Returns immediately.
| Parameter | Type | Description |
|---|---|---|
| params | CreateBroadcastParams | — |
Read one broadcast — status, delivered/failed counts, delivery options.
| Parameter | Type | Description |
|---|---|---|
| broadcastId | string | — |
List the project's broadcasts, most recent first. Paginated.
| Parameter | Type | Description |
|---|---|---|
| params? | ListBroadcastsParams | default: {} |
Cancel a scheduled broadcast that hasn't fired yet.
| Parameter | Type | Description |
|---|---|---|
| broadcastId | string | — |
.groupsnamespaceList every group in the project with its member count.
Create a named group.
| Parameter | Type | Description |
|---|---|---|
| params | CreateGroupParams | — |
Rename a group or edit its description.
| Parameter | Type | Description |
|---|---|---|
| groupId | string | — |
| params | UpdateGroupParams | — |
Delete a group. Memberships cascade; subscribers are untouched.
| Parameter | Type | Description |
|---|---|---|
| groupId | string | — |
Add subscribers to a group. Idempotent; cross-project IDs are filtered out.
| Parameter | Type | Description |
|---|---|---|
| groupId | string | — |
| subscriberIds | string[] | — |
Remove one subscriber from one group. The subscriber row stays.
| Parameter | Type | Description |
|---|---|---|
| groupId | string | — |
| subscriberId | string | — |
.subscribersnamespaceHard-delete the subscriber matching this push endpoint URL.
| Parameter | Type | Description |
|---|---|---|
| endpoint | string | — |
Hard-delete every subscriber in the project carrying this external_id.
| Parameter | Type | Description |
|---|---|---|
| externalId | string | — |
Download a CSV of all active subscribers (with group memberships).
VERSION
constRe-exports
This entry point also re-exports the following shared types: