@livechatta/sdk 0.0.0-stage → 1.0.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/CHANGELOG.md +228 -0
- package/LICENSE +21 -0
- package/README.md +2558 -2
- package/bin/chatta.mjs +7 -0
- package/bin/lib/cli.d.mts +46 -0
- package/bin/lib/cli.mjs +2088 -0
- package/dist/cjs/livechatta.cjs.js +7259 -0
- package/dist/cjs/livechatta.cjs.js.map +1 -0
- package/dist/cjs/livechatta.cjs.min.js +2 -0
- package/dist/cjs/livechatta.cjs.min.js.map +1 -0
- package/dist/esm/livechatta.esm.js +7078 -0
- package/dist/esm/livechatta.esm.js.map +1 -0
- package/dist/esm/livechatta.esm.min.js +2 -0
- package/dist/esm/livechatta.esm.min.js.map +1 -0
- package/dist/platforms/android/LiveChattaClient.kt +367 -0
- package/dist/platforms/android/LiveChattaHttpAPI.kt +2630 -0
- package/dist/platforms/android/LiveChattaJson.kt +83 -0
- package/dist/platforms/android/LiveChattaModels.kt +22805 -0
- package/dist/platforms/android/LiveChattaSentFrom.kt +30 -0
- package/dist/platforms/android/LiveChattaSocketAPI.kt +2113 -0
- package/dist/platforms/android/LiveChattaTyped.kt +239 -0
- package/dist/platforms/android/LiveChattaWebView.kt +158 -0
- package/dist/platforms/angular/livechatta-bridge.service.d.ts +35 -0
- package/dist/platforms/angular/livechatta-bridge.service.js +1 -0
- package/dist/platforms/angular/livechatta-bridge.service.js.map +1 -0
- package/dist/platforms/angular/livechatta-embed.component.d.ts +46 -0
- package/dist/platforms/angular/livechatta-embed.component.js +1 -0
- package/dist/platforms/angular/livechatta-embed.component.js.map +1 -0
- package/dist/platforms/angular/livechatta.service.d.ts +66 -0
- package/dist/platforms/angular/livechatta.service.js +1 -0
- package/dist/platforms/angular/livechatta.service.js.map +1 -0
- package/dist/platforms/capacitor/CapacitorBridge.d.ts +27 -0
- package/dist/platforms/capacitor/CapacitorBridge.js +1 -0
- package/dist/platforms/capacitor/CapacitorBridge.js.map +1 -0
- package/dist/platforms/capacitor/CapacitorDeepLinks.d.ts +23 -0
- package/dist/platforms/capacitor/CapacitorDeepLinks.js +1 -0
- package/dist/platforms/capacitor/CapacitorDeepLinks.js.map +1 -0
- package/dist/platforms/capacitor/CapacitorPermissions.d.ts +29 -0
- package/dist/platforms/capacitor/CapacitorPermissions.js +1 -0
- package/dist/platforms/capacitor/CapacitorPermissions.js.map +1 -0
- package/dist/platforms/capacitor/CapacitorPush.d.ts +33 -0
- package/dist/platforms/capacitor/CapacitorPush.js +1 -0
- package/dist/platforms/capacitor/CapacitorPush.js.map +1 -0
- package/dist/platforms/capacitor/index.d.ts +24 -0
- package/dist/platforms/capacitor/index.js +1 -0
- package/dist/platforms/capacitor/index.js.map +1 -0
- package/dist/platforms/flutter/livechatta_client.dart +359 -0
- package/dist/platforms/flutter/livechatta_http_api.dart +1942 -0
- package/dist/platforms/flutter/livechatta_json.dart +57 -0
- package/dist/platforms/flutter/livechatta_models.dart +23531 -0
- package/dist/platforms/flutter/livechatta_sent_from.dart +35 -0
- package/dist/platforms/flutter/livechatta_socket_api.dart +1504 -0
- package/dist/platforms/flutter/livechatta_typed.dart +234 -0
- package/dist/platforms/flutter/livechatta_webview.dart +190 -0
- package/dist/platforms/ios/LiveChattaClient.swift +374 -0
- package/dist/platforms/ios/LiveChattaHttpAPI.swift +2431 -0
- package/dist/platforms/ios/LiveChattaJSON.swift +84 -0
- package/dist/platforms/ios/LiveChattaModels.swift +27050 -0
- package/dist/platforms/ios/LiveChattaSentFrom.swift +32 -0
- package/dist/platforms/ios/LiveChattaSocketAPI.swift +1446 -0
- package/dist/platforms/ios/LiveChattaTyped.swift +268 -0
- package/dist/platforms/ios/LiveChattaWebView.swift +191 -0
- package/dist/platforms/nuxt/LiveChattaView.d.ts +1 -0
- package/dist/platforms/nuxt/LiveChattaView.js +1 -0
- package/dist/platforms/nuxt/LiveChattaView.js.map +1 -0
- package/dist/platforms/nuxt/useChattaBridge.d.ts +9 -0
- package/dist/platforms/nuxt/useChattaBridge.js +1 -0
- package/dist/platforms/nuxt/useChattaBridge.js.map +1 -0
- package/dist/platforms/nuxt/useLiveChatta.d.ts +63 -0
- package/dist/platforms/nuxt/useLiveChatta.js +1 -0
- package/dist/platforms/nuxt/useLiveChatta.js.map +1 -0
- package/dist/platforms/react/LiveChattaView.d.ts +58 -0
- package/dist/platforms/react/LiveChattaView.js +1 -0
- package/dist/platforms/react/LiveChattaView.js.map +1 -0
- package/dist/platforms/react/useChattaBridge.d.ts +1 -0
- package/dist/platforms/react/useChattaBridge.js +1 -0
- package/dist/platforms/react/useChattaBridge.js.map +1 -0
- package/dist/platforms/react/useChattaDeepLink.d.ts +2 -0
- package/dist/platforms/react/useChattaDeepLink.js +1 -0
- package/dist/platforms/react/useChattaDeepLink.js.map +1 -0
- package/dist/platforms/react/useChattaPermissions.d.ts +9 -0
- package/dist/platforms/react/useChattaPermissions.js +1 -0
- package/dist/platforms/react/useChattaPermissions.js.map +1 -0
- package/dist/platforms/react/useChattaUnread.d.ts +1 -0
- package/dist/platforms/react/useChattaUnread.js +1 -0
- package/dist/platforms/react/useChattaUnread.js.map +1 -0
- package/dist/platforms/react/useLiveChatta.d.ts +29 -0
- package/dist/platforms/react/useLiveChatta.js +1 -0
- package/dist/platforms/react/useLiveChatta.js.map +1 -0
- package/dist/platforms/react-native/LiveChattaView.d.ts +52 -0
- package/dist/platforms/react-native/LiveChattaView.js +1 -0
- package/dist/platforms/react-native/LiveChattaView.js.map +1 -0
- package/dist/platforms/react-native/useChattaBridge.d.ts +12 -0
- package/dist/platforms/react-native/useChattaBridge.js +1 -0
- package/dist/platforms/react-native/useChattaBridge.js.map +1 -0
- package/dist/platforms/react-native/useLiveChatta.d.ts +29 -0
- package/dist/platforms/react-native/useLiveChatta.js +1 -0
- package/dist/platforms/react-native/useLiveChatta.js.map +1 -0
- package/dist/platforms/svelte/LiveChattaEmbed.d.ts +54 -0
- package/dist/platforms/svelte/LiveChattaEmbed.js +1 -0
- package/dist/platforms/svelte/LiveChattaEmbed.js.map +1 -0
- package/dist/platforms/svelte/chattaBridgeStore.d.ts +19 -0
- package/dist/platforms/svelte/chattaBridgeStore.js +1 -0
- package/dist/platforms/svelte/chattaBridgeStore.js.map +1 -0
- package/dist/platforms/svelte/useLiveChatta.d.ts +61 -0
- package/dist/platforms/svelte/useLiveChatta.js +1 -0
- package/dist/platforms/svelte/useLiveChatta.js.map +1 -0
- package/dist/platforms/tauri/TauriBridge.d.ts +34 -0
- package/dist/platforms/tauri/TauriBridge.js +1 -0
- package/dist/platforms/tauri/TauriBridge.js.map +1 -0
- package/dist/platforms/tauri/TauriDeepLinks.d.ts +29 -0
- package/dist/platforms/tauri/TauriDeepLinks.js +1 -0
- package/dist/platforms/tauri/TauriDeepLinks.js.map +1 -0
- package/dist/platforms/tauri/TauriPermissions.d.ts +21 -0
- package/dist/platforms/tauri/TauriPermissions.js +1 -0
- package/dist/platforms/tauri/TauriPermissions.js.map +1 -0
- package/dist/platforms/tauri/TauriUpdater.d.ts +31 -0
- package/dist/platforms/tauri/TauriUpdater.js +1 -0
- package/dist/platforms/tauri/TauriUpdater.js.map +1 -0
- package/dist/platforms/tauri/index.d.ts +22 -0
- package/dist/platforms/tauri/index.js +1 -0
- package/dist/platforms/tauri/index.js.map +1 -0
- package/dist/platforms/vue/LiveChattaView.d.ts +1 -0
- package/dist/platforms/vue/LiveChattaView.js +1 -0
- package/dist/platforms/vue/LiveChattaView.js.map +1 -0
- package/dist/platforms/vue/useChattaBridge.d.ts +11 -0
- package/dist/platforms/vue/useChattaBridge.js +1 -0
- package/dist/platforms/vue/useChattaBridge.js.map +1 -0
- package/dist/platforms/vue/useChattaDeepLink.d.ts +2 -0
- package/dist/platforms/vue/useChattaDeepLink.js +1 -0
- package/dist/platforms/vue/useChattaDeepLink.js.map +1 -0
- package/dist/platforms/vue/useChattaPermissions.d.ts +9 -0
- package/dist/platforms/vue/useChattaPermissions.js +1 -0
- package/dist/platforms/vue/useChattaPermissions.js.map +1 -0
- package/dist/platforms/vue/useChattaUnread.d.ts +8 -0
- package/dist/platforms/vue/useChattaUnread.js +1 -0
- package/dist/platforms/vue/useChattaUnread.js.map +1 -0
- package/dist/platforms/vue/useLiveChatta.d.ts +58 -0
- package/dist/platforms/vue/useLiveChatta.js +1 -0
- package/dist/platforms/vue/useLiveChatta.js.map +1 -0
- package/dist/platforms/web/LiveChattaEmbed.d.ts +94 -0
- package/dist/platforms/web/LiveChattaEmbed.js +1 -0
- package/dist/platforms/web/LiveChattaEmbed.js.map +1 -0
- package/dist/platforms/web/bridge.d.ts +8 -0
- package/dist/platforms/web/bridge.js +1 -0
- package/dist/platforms/web/bridge.js.map +1 -0
- package/dist/platforms/web/permissions.d.ts +8 -0
- package/dist/platforms/web/permissions.js +1 -0
- package/dist/platforms/web/permissions.js.map +1 -0
- package/dist/types/billing.d.ts +355 -0
- package/dist/types/billing.js +53 -0
- package/dist/types/billing.js.map +1 -0
- package/dist/types/calendar.d.ts +132 -0
- package/dist/types/calendar.js +15 -0
- package/dist/types/calendar.js.map +1 -0
- package/dist/types/chat-core.d.ts +901 -0
- package/dist/types/chat-core.js +98 -0
- package/dist/types/chat-core.js.map +1 -0
- package/dist/types/chat-features.d.ts +775 -0
- package/dist/types/chat-features.js +50 -0
- package/dist/types/chat-features.js.map +1 -0
- package/dist/types/content.d.ts +138 -0
- package/dist/types/content.js +2 -0
- package/dist/types/content.js.map +1 -0
- package/dist/types/core/AutoRefresh.d.ts +68 -0
- package/dist/types/core/Bridge.d.ts +124 -0
- package/dist/types/core/Config.d.ts +26 -0
- package/dist/types/core/DeepLinks.d.ts +38 -0
- package/dist/types/core/EventBus.d.ts +15 -0
- package/dist/types/core/GrantStore.d.ts +29 -0
- package/dist/types/core/LiveChatta.d.ts +128 -0
- package/dist/types/core/Permissions.d.ts +34 -0
- package/dist/types/core/TokenManager.d.ts +25 -0
- package/dist/types/core/events.d.ts +140 -0
- package/dist/types/csat.d.ts +110 -0
- package/dist/types/csat.js +12 -0
- package/dist/types/csat.js.map +1 -0
- package/dist/types/events.d.ts +242 -0
- package/dist/types/events.js +275 -0
- package/dist/types/events.js.map +1 -0
- package/dist/types/extras.d.ts +353 -0
- package/dist/types/extras.js +31 -0
- package/dist/types/extras.js.map +1 -0
- package/dist/types/http/HttpAPI.d.ts +944 -0
- package/dist/types/http/HttpTransport.d.ts +66 -0
- package/dist/types/http/incomingWebhook.d.ts +17 -0
- package/dist/types/incoming-webhooks.d.ts +78 -0
- package/dist/types/incoming-webhooks.js +16 -0
- package/dist/types/incoming-webhooks.js.map +1 -0
- package/dist/types/index.d.ts +15 -0
- package/dist/types/index.js +16 -0
- package/dist/types/index.js.map +1 -0
- package/dist/types/liveflex.d.ts +578 -0
- package/dist/types/liveflex.js +7 -0
- package/dist/types/liveflex.js.map +1 -0
- package/dist/types/models.d.ts +1753 -0
- package/dist/types/models.js +148 -0
- package/dist/types/models.js.map +1 -0
- package/dist/types/options.d.ts +190 -0
- package/dist/types/options.js +43 -0
- package/dist/types/options.js.map +1 -0
- package/dist/types/shared-channels.d.ts +236 -0
- package/dist/types/shared-channels.js +50 -0
- package/dist/types/shared-channels.js.map +1 -0
- package/dist/types/socket/SocketAPI.d.ts +1026 -0
- package/dist/types/socket/SocketTransport.d.ts +44 -0
- package/dist/types/types/billing.d.ts +355 -0
- package/dist/types/types/calendar.d.ts +132 -0
- package/dist/types/types/chat-core.d.ts +901 -0
- package/dist/types/types/chat-features.d.ts +775 -0
- package/dist/types/types/content.d.ts +138 -0
- package/dist/types/types/csat.d.ts +110 -0
- package/dist/types/types/events.d.ts +242 -0
- package/dist/types/types/extras.d.ts +353 -0
- package/dist/types/types/incoming-webhooks.d.ts +78 -0
- package/dist/types/types/index.d.ts +15 -0
- package/dist/types/types/liveflex.d.ts +578 -0
- package/dist/types/types/models.d.ts +1753 -0
- package/dist/types/types/options.d.ts +190 -0
- package/dist/types/types/shared-channels.d.ts +236 -0
- package/dist/types/types/workspace-gifs.d.ts +95 -0
- package/dist/types/types/workspace.d.ts +390 -0
- package/dist/types/ui/EmbedConfig.d.ts +38 -0
- package/dist/types/ui/EmbedUI.d.ts +44 -0
- package/dist/types/ui/Launcher.d.ts +122 -0
- package/dist/types/ui/brand.d.ts +27 -0
- package/dist/types/ui/embedMessages.d.ts +23 -0
- package/dist/types/ui/hours.d.ts +35 -0
- package/dist/types/ui/prechat.d.ts +35 -0
- package/dist/types/ui/widgetConfig.d.ts +4 -0
- package/dist/types/utils/crypto.d.ts +6 -0
- package/dist/types/utils/hmac.d.ts +40 -0
- package/dist/types/utils/permissions.d.ts +5 -0
- package/dist/types/utils/platform.d.ts +18 -0
- package/dist/types/utils/visitor.d.ts +2 -0
- package/dist/types/workspace-gifs.d.ts +95 -0
- package/dist/types/workspace-gifs.js +3 -0
- package/dist/types/workspace-gifs.js.map +1 -0
- package/dist/types/workspace.d.ts +390 -0
- package/dist/types/workspace.js +13 -0
- package/dist/types/workspace.js.map +1 -0
- package/dist/umd/livechatta.umd.js +7263 -0
- package/dist/umd/livechatta.umd.js.map +1 -0
- package/dist/umd/livechatta.umd.min.js +2 -0
- package/dist/umd/livechatta.umd.min.js.map +1 -0
- package/package.json +274 -4
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to `@livechatta/sdk` (and the Kotlin, Swift and Dart SDKs and the `chatta` CLI that share its version). Pull requests add their notes under **Unreleased**; the version only changes when a release is cut with `node scripts/release.mjs`.
|
|
4
|
+
|
|
5
|
+
## Unreleased
|
|
6
|
+
|
|
7
|
+
## 1.0.1 (2026-11-28)
|
|
8
|
+
|
|
9
|
+
### Fixed
|
|
10
|
+
|
|
11
|
+
- **`permissions.requestMedia({ audio, video })` on Capacitor asks for exactly what you request.** It called `HopBridge.requestPermissions()` without flags, so `video: true` never raised the camera dialog on iOS (and Android never asked for the camera), and `audio: false` still asked for the microphone. It now passes `{ wantVideo, wantAudio }`; shells that ignore the flags behave as before.
|
|
12
|
+
|
|
13
|
+
### Changed
|
|
14
|
+
|
|
15
|
+
- **Docs links point at [livechatta.com/docs](https://livechatta.com/docs/guides/), never the private source repository.** The npm README, the guides (iOS install, Android and Flutter notes, server samples), the package `homepage` (now the SDK reference; `repository` removed), the Maven POM `scm` url and the pub.dev `homepage` / `documentation`.
|
|
16
|
+
|
|
17
|
+
## 1.0.0 (2026-11-27)
|
|
18
|
+
|
|
19
|
+
**The first public release of the LiveChatta SDK.** Nothing was published before this. Everything the SDK does ships in this one release, on every platform at the same version. The internal builds that led up to it are listed in [docs/HISTORY.md](docs/HISTORY.md).
|
|
20
|
+
|
|
21
|
+
### Added after the first draft of these notes (20 to 27 Nov)
|
|
22
|
+
|
|
23
|
+
#### Support satisfaction ratings (CSAT)
|
|
24
|
+
|
|
25
|
+
- **The customer rates a resolved support conversation.** After a resolve the server posts a `SYSTEM` message with `messageKind: 'CSAT'` and `Message.csat` (`MessageCsatCard`: `ratingId`, `question`, `customerId`, `scale`, `expiresAt`, `status` open | rated | superseded, `score`). The customer sends `submitCsat(conversationId, { score: 1–5, comment?, ratingId? })` (member token, never retried); a second rating or a closed or replaced card is a 400, anyone else a 403. `onCsatUpdated` (`csat-updated`) updates the card; agents' own rooms also get `rating` with the comment.
|
|
26
|
+
- **Read the ratings.** `listCsatRatings(query?)` and `getCsatSummary(query?)` with the API key (`/external/chats/csat`, `/summary`), `listCsatRatingsAsOwner` / `getCsatSummaryAsOwner` with the owner token: `from`, `to` (default the last 30 days), `chatLinkId`, `nextCursor`, `limit` ≤ 20. The summary has `requests`, `responses`, `average`, `satisfiedPct`, `responseRatePct` and per-agent and per-team rows. New types in `csat.ts` (`CsatRating`, `CsatRatingPage`, `CsatSummary`, `CsatUpdatedEvent`, `CsatWebhookPayload`, `CSAT_SCALE`, …).
|
|
27
|
+
- **Settings and inbox fields.** `setLinkInboxSettings` takes `csatEnabled` (null = on for Support links only), `csatQuestion` (≤ 140) and `autoCloseDays`, and its view returns them. `InboxState.csatScore` and `AgentInboxStateView.csat` (latest request). Webhook event `csat:submit` (alias `csat.submitted`, `WebhookEvent.CSAT_SUBMITTED`).
|
|
28
|
+
- Kotlin, Swift and Dart: the same methods with `*Typed` twins and `onCsatUpdated`; models regenerated (`score` and `scale` are integers). CLI: `chatta csat list | summary` (API key). Docs: a new **Support CSAT** guide.
|
|
29
|
+
|
|
30
|
+
#### Invite-only links
|
|
31
|
+
|
|
32
|
+
- Anyone not on an invite-only link's list is refused with `INVITE_ONLY` (403) on sign-in and join-via-link too (after the password check), and the socket gives them no link room: the first conversation page has `linkAccess: 'invite-only'` (`MemberLinkAccess`; Kotlin `LinkAccess.isInviteOnly`, Swift `.inviteOnly`, Dart `isLinkInviteOnly`).
|
|
33
|
+
- **`getLinkMemberList(linkId, { q?, status?, limit?, nextCursor? })`** (owner): the Members list; `status: 'invited'` lists people on the list who have not joined (`LINK_MEMBER_FILTERS`, `LinkMemberRow`, `LinkMemberPage`). **`revokeLinkInvite(linkId, memberId)`** (owner, never retried) takes someone off the list and blocks them if they had joined: `{ status: true, blocked }`. CLI: `chatta members list --status invited`, `chatta members revoke-invite <linkId> <memberId> --yes`.
|
|
34
|
+
|
|
35
|
+
#### Call recording downloads
|
|
36
|
+
|
|
37
|
+
- **`allowRecordingDownload`** link setting (create / update `settings`, and the public settings): off unless true. `HopRecordingListItem.downloadable` says whether it is on.
|
|
38
|
+
- **`getRecordingDownloadLink(messageId)`** (member token): `{ url, expiresAt, filename }`, a signed link valid for 10 minutes; `url` is server-relative and needs no header. Refusals: `RECORDING_DOWNLOAD_OFF` and `RECORDING_DOWNLOAD_EXPIRED` (403). Forwarding a recording is refused (400). Kotlin, Swift and Dart: `getRecordingDownloadLink` and `getRecordingDownloadLinkTyped`.
|
|
39
|
+
|
|
40
|
+
#### App store versions, send rate limit, reserved handles
|
|
41
|
+
|
|
42
|
+
- **`AppVersionInfo.platforms`**: `ios` and `android` as `{ latest, min, storeUrl }` (`NativeAppRelease`; empty strings mean not configured). `updateUrl` is now `string | null`, as the server sends it; in Kotlin, Swift and Dart it is now optional. `getAppVersionTyped` in Kotlin, Swift and Dart.
|
|
43
|
+
- **`RATE_LIMITED`** (429): sending too fast fails on `chat-error` and the call's ack with this code. Keep the message as not sent and offer Retry. `isRateLimited(err)` checks a `LiveChattaError`, a `chat-error` body or an ack; Kotlin `LiveChattaErrorCode.RATE_LIMITED`, Swift and Dart `rateLimited`.
|
|
44
|
+
- Reserved @handles (`@chatta`, `@all`, `@admin`, `@support`, …) are refused by `updateChatUserProfile` with a 400 whose message names the handle ("@all is reserved. Please choose another.") and no code; show the message as it is. No new SDK call or code.
|
|
45
|
+
|
|
46
|
+
#### Swift models: a field named `self` compiles
|
|
47
|
+
|
|
48
|
+
- The generated Swift initializer for `HopParticipantMutedEvent` took a parameter called `self`, which hides the instance, so the file did not compile (`swift build` failed at `self.sessionId = ...`). The label stays `self:`; the parameter is now `selfValue`, and `toJSON()` reads `self.`self``. Models regenerated; no change to the wire shape or to Kotlin and Dart.
|
|
49
|
+
|
|
50
|
+
#### CLI `--json` errors are an allowlist
|
|
51
|
+
|
|
52
|
+
- With `--json`, a failure prints `data` with only `statusCode`, `code`, `serviceFeeMinor`, `providerFeeMinor`, `totalMinor` and `approvalId`, and token-like text in `message` (hook URLs, `lhk_` keys, `Bearer` values, JWTs, long hex or base64) is masked. Before, the whole API answer was printed.
|
|
53
|
+
|
|
54
|
+
#### CLI parity for webhooks, groups and withdrawals
|
|
55
|
+
|
|
56
|
+
- **`chatta liveflex withdraw` quotes, then locks the total.** It reads the fee rule from `GET /wallet`, shows the fee, the network fee (crypto) and the total, and `--yes` locks the total it has just quoted (`expectedTotalMinor`), so changed fees stop it with `FEES_CHANGED` before anything is taken; the CLI prints the new total and exits 1. New flags: `--quote` (show it, send nothing) and `--expect-total <USD>` (pin the total you saw; required with `--yes` for crypto). Amounts are now parsed as whole cents (at most 2 decimals) for every money command. A withdrawal held for team approval prints "Sent for team approval". With `--json`, errors are printed as JSON on stderr. `--method crypto` is refused while `cryptoPayoutsEnabled` is false. A server that sends no fee rule still gets the plain withdrawal.
|
|
57
|
+
- **`chatta conversations visibility get|set <id> private|public`** switches a group or channel between private and public (`PATCH chats/conversations/:id/permissions { isPrivate }`, owner token).
|
|
58
|
+
- Incoming webhooks already have `chatta hooks list|create|rename|regenerate|revoke|send`; the docs site now has a guide for them (**Incoming webhooks**) and for **Private and public groups**.
|
|
59
|
+
|
|
60
|
+
#### Heartbeat can say the chat is hidden
|
|
61
|
+
|
|
62
|
+
- **`heartbeat({ visible })`**: TypeScript `heartbeat({ visible: false })`, Kotlin `heartbeat(visible: Boolean? = null)`, Swift `heartbeat(visible: Bool? = nil)`, Dart `heartbeat({bool? visible})`. A web client reports whether its tab is on screen, so a hidden tab still gets its push. A socket that never reports counts as reading (SDK and apps keep working as before). Once it reports, `visible: false` holds until a later `visible: true`, and never goes stale. `visible: true` counts as reading for only 2 minutes, so send it with every beat while the tab is on screen: a stale `true` counts as not reading. A bare `heartbeat()` after a report does not reset the flag.
|
|
63
|
+
|
|
64
|
+
#### Messages from incoming webhooks
|
|
65
|
+
|
|
66
|
+
- **`Message.viaWebhook?: MessageViaWebhook`** (`{ hookId, name, iconUrl }`): set on a message an incoming webhook posted. Show its `name` and `iconUrl` instead of the sender's. The Kotlin, Swift and Dart models are regenerated.
|
|
67
|
+
|
|
68
|
+
#### Call waiting tune preference
|
|
69
|
+
|
|
70
|
+
- **`ChatUserPreferencesPayload.callSounds?: CallSoundsPrefs`** (`PATCH /chat-users/me`, `preferences`): `callSounds.waitingTune` is `'drift' | 'pebble' | 'lantern' | 'tide' | 'meadow' | 'off'` (`CALL_WAITING_TUNES`, type `CallWaitingTune`). It is the tune that plays softly for the caller or host while they wait alone in a call; `off` means none and unset plays Drift. It follows the person across devices. An unknown name is a 400. The Kotlin, Swift and Dart models are regenerated (`LiveChattaCallSoundsPrefs`, `LiveChattaCallWaitingTune`, `callSounds` on the preferences payload) (chatta call-waiting-tunes).
|
|
71
|
+
- **`keepHopWaiting({ sessionId })`** (socket, all four SDKs; `ChatEvent.HOP_KEEP_WAITING` = `hop-keep-waiting`): the only person in a call answers "keep waiting" and the server's auto-end clock restarts. A call where the caller or host is alone ends at `HOP_ALONE_END_SEC` (default 300 s) and is logged as unanswered (end reason `ALONE_TIMEOUT` on `hop-ended`). Acks `{ ok: false }` when other people are in the call.
|
|
72
|
+
|
|
73
|
+
#### Withdrawals can lock the quote
|
|
74
|
+
|
|
75
|
+
- **`LiveFlexWithdrawPayload.expectedTotalMinor?`** (optional): send the `totalMinor` you showed. If the fees changed since, `withdrawLiveFlex` fails with code `FEES_CHANGED` (400) and the new `serviceFeeMinor`, `providerFeeMinor` and `totalMinor`, and nothing is taken. Leave it out and nothing changes (chatta withdraw-quote lock). `FEES_CHANGED` joins `LIVEFLEX_ERRORS`, and its error body carries the new `serviceFeeMinor`, `providerFeeMinor` and `totalMinor`. `LiveFlexView.cryptoPayoutsEnabled?` is false when crypto payouts are off. A withdrawal parked for team approval keeps the total, so changed fees fail the approval. The Kotlin, Swift and Dart models are regenerated.
|
|
76
|
+
- The server's statement CSV now ends with a "Network/provider fee (FlexCoin)" column after Status; nothing in the SDK parses it.
|
|
77
|
+
|
|
78
|
+
#### Groups are private by default
|
|
79
|
+
|
|
80
|
+
- **New groups start private** on every route: not listed in "Suggested for you" and nobody can join on their own. Send `isPrivate: false` to create a public group. Channels are unchanged (public unless `isPrivate: true`). Groups that already exist are not changed (chatta groups-private-default).
|
|
81
|
+
- **Switch it later** with `updateConversationPermissions(conversationId, { isPrivate })` (REST) or the `update-conversation-permissions` socket event: conversation admins or the owner, groups and channels only. Public to private blocks new joins and keeps current members; DMs, meeting rooms, support groups and shared channels get a 400.
|
|
82
|
+
- **New fields:** `isPrivate?` on `CreateConversationPayload` (`createConversation`) and `EditConversationPayload`, documented on `StartConversationPayload`. The Kotlin, Swift and Dart models are regenerated (`LiveChattaCreateConversationPayload.isPrivate`). The CLI has no create-group command, so it has no new flag.
|
|
83
|
+
|
|
84
|
+
#### Permissions and sign-out fields that were missing
|
|
85
|
+
|
|
86
|
+
- **`membersCanManageWebhooks`** is on `ConversationPermissions` (so `getConversationPermissions`, `updateConversationPermissions` and the `conversation-permissions-updated` event carry it). It lets plain members manage incoming webhooks in that conversation; it is off by default and admins can always manage them.
|
|
87
|
+
- **`webToken?`** is on `RevokeTokenPayload` (`revokeToken`): the browser's web push token, which the server releases for that person when they sign out. The Kotlin, Swift and Dart models are regenerated.
|
|
88
|
+
#### Ask to join a meeting again
|
|
89
|
+
|
|
90
|
+
- **Ask to join a meeting again.** `HopLobbyWaitingEvent` has an optional `askedAgain` (the host sees a repeat ask), and `MembershipRevokedEvent` has an optional `reason: 'lobby-ended'` (the call ended while the person waited). `joinMeetingByLink` can now be called again by someone who left or was turned away; it answers 429 with `retryAfterSec` after 3 asks in 10 minutes for one meeting, and 403 for a removed or blocked person. New meeting codes are random. Models regenerated for TypeScript, Kotlin, Swift and Dart.
|
|
91
|
+
- **Deny and block.** `hopAdmit({ sessionId, userId, admit: false, block: true })` or `hopDeny(sessionId, userId, true)` (Kotlin, Swift and Dart: a `block` parameter, default false) also stops the person asking to join that meeting again; their `onHopDenied` event then has `blocked: true`. The block is for that meeting occurrence only.
|
|
92
|
+
|
|
93
|
+
### Install
|
|
94
|
+
|
|
95
|
+
- **JavaScript / TypeScript:** `npm install @livechatta/sdk`. Requires Node 24 or newer for Node and the CLI; any modern browser for the web build, CDN script or UMD.
|
|
96
|
+
- **Kotlin (Android, JVM):** `com.livechatta:sdk:1.0.0` on Maven Central.
|
|
97
|
+
- **Swift (iOS, macOS):** Swift Package Manager, this repository at tag `v1.0.0`.
|
|
98
|
+
- **Dart (Flutter):** `livechatta` on pub.dev.
|
|
99
|
+
- **CLI:** `npx chatta` (it ships in the npm package).
|
|
100
|
+
- **Point it at any server:** `baseUrl` (default `https://api.livechatta.com`) sets the REST, socket and embed addresses in every language. The CLI takes `--base-url` or `LIVECHATTA_BASE_URL`.
|
|
101
|
+
|
|
102
|
+
### How you can use it
|
|
103
|
+
|
|
104
|
+
- **Hosted embed:** a floating launcher, an inline container, a standalone embed with no SDK init, a plain iframe snippet or a script tag. Theming uses two colours, and member tokens are RSA-encrypted.
|
|
105
|
+
- **Headless (bring your own UI):** real-time socket events plus REST, with typed models, token refresh, reconnects and an offline message queue that replays when you are back online.
|
|
106
|
+
- **Framework wrappers:** Web, React, React Native, Angular, Vue 3, Nuxt 3, Svelte, Capacitor and Tauri. Each has views, a bridge, permissions, unread-badge and deep-link helpers.
|
|
107
|
+
- **Native SDKs:** Kotlin, Swift and Dart clients with typed models for every API object. A parity checker and contract tests in all four languages keep them in step with TypeScript.
|
|
108
|
+
- **Bridge for native shells:** `CHATTA_APP:*` messages (theme, call state, widgets, lock screen, status, prefill reply) that only go to the frame's own origin, never `'*'`, plus the `livechatta:hello` handshake.
|
|
109
|
+
|
|
110
|
+
### Messaging
|
|
111
|
+
|
|
112
|
+
- Send, reply, edit (inside the 24 hour window; a late edit returns `EDIT_WINDOW_CLOSED`), delete, forward and react.
|
|
113
|
+
- Threads, pins (including pin for everyone), bookmarks, mark as unread and read sync across devices.
|
|
114
|
+
- Drafts that follow you across devices, message edit history, scheduled messages with "Send now", and disappearing messages.
|
|
115
|
+
- Rich content: location and live location (15 minutes to 8 hours), contact cards, quick-reply buttons, polls, stickers and code blocks.
|
|
116
|
+
- Typing, presence and online counts. Status (`setChatStatus`, away and back). `sentFrom` shows which device a message came from.
|
|
117
|
+
- Search, mentions and the activity inbox (mentions and reactions to you).
|
|
118
|
+
- Sidebar pages of 40 rows with server unread totals, sidebar categories, mute, quiet hours and reminders.
|
|
119
|
+
- Seen-by, transcripts and huddles.
|
|
120
|
+
|
|
121
|
+
### Conversations, links and members
|
|
122
|
+
|
|
123
|
+
- Chat links as containers. Link codes, nine link modes, custom domains, embed domains and native app origins (`setLinkAppOrigins`).
|
|
124
|
+
- One-to-one, group and channel conversations. Conversation modes such as broadcast. Locked chats, full and paused links, and channel previews.
|
|
125
|
+
- Who can join: open links, private links with ask-to-join approvals, guest join and meeting guests. An `ACCOUNT_EXISTS` hint for returning people.
|
|
126
|
+
- Members: list, add (a taken `handle` gets the next free `-N`, and the response shows the final one), block and unblock (with a `linkAccess` error code), follow and invite. Teams and support teams. Personal notes and starred people.
|
|
127
|
+
- Exports (ZIP, emailed or downloaded), leaving a link, and owner-console link lists.
|
|
128
|
+
- One person, one identity (chatta guest-identity fix): `claimGuest({ guestToken })` folds the no-email guest a device held into the signed-in member's account, so a returning person shows once in every list. Member token, 10 a minute; TypeScript, Kotlin (`claimGuest`, `claimGuestTyped`), Swift and Dart, with `ClaimGuestPayload` and `ClaimGuestResult`.
|
|
129
|
+
|
|
130
|
+
### Support and moderation
|
|
131
|
+
|
|
132
|
+
- Support inbox for agents: assignment, statuses, canned replies and support teams.
|
|
133
|
+
- Role-based moderation: admins and moderators lock, delete, block and restrict.
|
|
134
|
+
- Automations: rules, tests, held jobs and triggers such as poll completed and meeting ended.
|
|
135
|
+
- Flags, plus staff access grants that the owner controls with a time limit and view or act scope.
|
|
136
|
+
|
|
137
|
+
### Calls, meetings and calendars
|
|
138
|
+
|
|
139
|
+
- Hop voice and video calls: one-to-one and group (Hop Circle), screen share, live captions, polls in calls and recordings.
|
|
140
|
+
- Call history with Missed, Calls, In call and History views. Native call pushes and lock-screen call controls.
|
|
141
|
+
- Webinars: raise hand, Q&A and recordings.
|
|
142
|
+
- Scheduled meetings for owners and API keys (`listMeetings`, `scheduleMeeting`, `cancelMeeting`). Meeting links that guests can join, with a host lobby.
|
|
143
|
+
- Calendar sync for members with Google and Outlook: connect, share busy times, sync now, see busy times when booking, and `onHopMeetingUpdated` when a calendar moves a meeting.
|
|
144
|
+
|
|
145
|
+
### LiveFlex money (FlexCoin)
|
|
146
|
+
|
|
147
|
+
- Balance and history, top up, send (in the workspace or by `$tag` across workspaces), withdraw to bank or crypto, and gifts.
|
|
148
|
+
- The withdrawal fee goes on top, like a top-up: `withdrawLiveFlex({ amountMinor })` pays out the full `amountMinor` and the 1.5% fee (at most 2 FlexCoin) is charged from the wallet. `LiveFlexPayoutResult.netMinor` is what the destination receives, `serviceFeeMinor` the fee and the new `totalMinor` what leaves the wallet. `LiveFlexView.maxWithdrawMinor` is the largest amount that fits with its fee, and a withdrawal row's `LiveFlexTransaction.paidOutMinor` is what the destination received (`amountMinor` is the whole debit). The CLI prints all three. `processing: true` on the result means the provider is still confirming, so don't show the withdrawal as sent; `provider` names the payout rail, and a bank return of a paid withdrawal shows as a `withdraw_reversal` row. Kotlin, Swift and Dart models have the same fields.
|
|
149
|
+
- Crypto withdrawals also pay a flat network/provider fee on top (3 FlexCoin by default, set on the server), and the address still receives the full amount. `LiveFlexPayoutResult.providerFeeMinor` is that fee (0 for a bank payout), so `totalMinor` = `netMinor` + `serviceFeeMinor` + `providerFeeMinor`. A withdrawal row's `LiveFlexTransaction.providerFeeMinor` carries it too (absent on older rows: read it as 0), `serviceFeeMinor` stays our platform fee, and `paidOutMinor` is the debit minus both. `LiveFlexView.cryptoProviderFeeMinor` is the live fee and `maxWithdrawCryptoMinor` the largest crypto amount that fits with both fees (`maxWithdrawMinor` stays the bank figure). All new fields are optional, so older servers still work. The daily limits count the amount only, never the fees. The CLI prints the fee line. Kotlin, Swift and Dart models have the same fields.
|
|
150
|
+
- Safety: PIN over a threshold, a new-member hold, team-admin approvals with daily caps, the first-payment code for new people, payout holds, and LiveFlex on or off per link, workspace or platform.
|
|
151
|
+
- One LiveFlex per person across workspaces (account linking) and LiveFlex tags.
|
|
152
|
+
- @chatta money commands:
|
|
153
|
+
- money requests (they never pull money; the payer taps Pay), split bills, standing payments, group pots and refunds;
|
|
154
|
+
- pay links (LiveFlex or card), receipts and monthly statements;
|
|
155
|
+
- shared money cards over the socket (`getMoneyCard`, `moneyCardAction`, `onMoneyCardUpdate`);
|
|
156
|
+
- `blockLiveFlexRequester` to stop requests from someone.
|
|
157
|
+
- Receipt and statement links open once, for 10 minutes, only for the member they were made for.
|
|
158
|
+
- The generated Kotlin, Swift and Dart models carry each type's full doc comment (the generator no longer cuts it at 160 characters, which had trimmed `ChattaMoneyAction` mid-sentence).
|
|
159
|
+
|
|
160
|
+
### Plans, billing and store
|
|
161
|
+
|
|
162
|
+
- Paystack checkouts return `accessCode` beside `authorizationUrl` everywhere (renewals, extra seats, pay-link card payments, card updates), so an app can open the checkout in place with Paystack Inline and keep the user in the chat. Crypto checkouts have no access code; open their URL in a new tab.
|
|
163
|
+
- The @chatta money card action (`ChattaMoneyAction`) carries `accessCode`, `reference` and `verify` (`wallet-fund` or `paylink`) on payment-page actions, so an app can pay in place and call the matching verify route.
|
|
164
|
+
- Plans, subscriptions, trials, renewals (card, bank transfer or LiveFlex), storage add-ons, extra seats and custom plan requests.
|
|
165
|
+
- The feature store, gift store, owner gifts and gift earnings.
|
|
166
|
+
|
|
167
|
+
### Developers and integrations
|
|
168
|
+
|
|
169
|
+
- API keys: create, rotate (new key before the old one is revoked), revoke and usage.
|
|
170
|
+
- Webhooks:
|
|
171
|
+
- signed deliveries (HMAC), retries, delivery logs and replay;
|
|
172
|
+
- secret rotation and test events;
|
|
173
|
+
- local capture with `chatta webhooks listen --forward`.
|
|
174
|
+
- Business sign-in code (passwordless), forgot and reset password on every door, signed-in devices, and account preferences.
|
|
175
|
+
- Content: emoji packs, posts and stories, scheduled posts and promo analytics.
|
|
176
|
+
- Server samples in Node, PHP and Python: mint an embed token, verify a webhook signature, send a message.
|
|
177
|
+
- A task-based docs site: quick start, embed, custom UI, webhooks, FlexCoin, calls, CLI and each platform.
|
|
178
|
+
|
|
179
|
+
### Shared channels between workspaces
|
|
180
|
+
|
|
181
|
+
- Shared channels between workspaces (chatta P-E4, #662), member token, in TypeScript, Kotlin, Swift and Dart: `inviteSharedChannel`, `listSharedChannels`, `previewSharedChannelInvite`, `listSharedChannelMembers`, `getConversationSharedChannels`, `getSharedChannelPermissions`, `acceptSharedChannel`, `acceptSharedChannelByToken`, `endSharedChannel`, `updateSharedChannelMembers`, `getSharedChannelAudit`, `openSharedDirect`, `removeSharedChannelMember` and `removeSharedChannelMessage`, each with a typed twin in the native languages. Changes are never retried; the owner token alone is refused before the network. The owner `linkChatUserToAccount` binds a verified teammate to their chat user so they count as workspace staff.
|
|
182
|
+
- Realtime: `onSharedChannelInvite` and `onSharedChannelUpdated` (the staff form `SharedChannelEvent` and the badge form `SharedChannelBadgeEvent`; `isSharedChannelBadgeEvent` tells them apart), with `ChatEvent.SHARED_CHANNEL_INVITE` and `SHARED_CHANNEL_UPDATED`.
|
|
183
|
+
- Types: `SharedChannelView`, `SharedChannelInviteResult`, `SharedChannelPreview`, `SharedChannelPickableMember`, `SharedChannelAuditView`, `SharedConversationPermissions`, `SharedDirectResult`, `SharedWith`, the payload types and the `SharedChannelStatus`, `SharedChannelAudience`, `SharedChannelSide`, `SharedChannelKind` and `SharedChannelAuditAction` unions. `Conversation.sharedWith` is the "shared with" badge and `ChatLinkSettingsPatch.allowSharedDms` turns on direct messages with partners.
|
|
184
|
+
- Masked people: `SharedParticipant` has no `email`, `phone`, `mobile`, `phoneNumber`, `accountId` or workspace owner id, and its `username` is the @handle. `sharedParticipantLabel` never falls back to an email or a phone number (a `displayName`, `handle`, `firstName`, `lastName` or `username` that looks like `name@host`, `x @y.com`, `x [at] y.com`, a fullwidth `@` or a phone number is skipped, then the label falls back to `Member`), and `isSharedConversation` and `isSharedArchive` read the badge.
|
|
185
|
+
- CLI: `chatta shared list | invite | preview | accept | audience | members | leave | channel | permissions | audit | dm | remove-member | remove-message | link-account`. They use `LIVECHATTA_MEMBER_TOKEN`; the invite token has `--token-stdin`, and every change asks for `--yes`.
|
|
186
|
+
- Contract fixtures and tests for the shared-channel routes in all four languages, and model tests that a masked person never gains an email.
|
|
187
|
+
- Isolated workspace (chatta #684): `ChatLinkSettingsPatch.isolated` (per link, default off) in TypeScript, Kotlin, Swift and Dart. Only the account owner can change it: a team admin or an API key that sends a different value gets 403, and sending the stored value back is a no-op. While it is on, no LiveFlex send, request, split, standing payment, new shared channel, new shared DM or account link crosses that link in either direction (people of the owner's other links count as outside). Shared channels and invites that exist when it is turned on stay until they end or expire. `WORKSPACE_ISOLATED` (403) is in `LIVEFLEX_ERRORS` and the new `ISOLATION_ERRORS`. `LiveFlexView.isolated` tells the UI to hide the tag lookup and link prompts. Withdrawals always work, and the business LiveFlex still works with the link. The CLI has no link-settings command, so it has no flag.
|
|
188
|
+
- Split view and pop-out (chatta P-E3) are client features of the hosted chat and need no SDK call. In an embed (`isEmbed`) they are not offered.
|
|
189
|
+
|
|
190
|
+
### Incoming webhooks
|
|
191
|
+
|
|
192
|
+
- Incoming webhooks (chatta): a secret URL per group or channel that posts a message as an app, like Slack. Management with the API key in TypeScript, Kotlin, Swift and Dart: `listIncomingWebhooks`, `createIncomingWebhook`, `updateIncomingWebhook`, `regenerateIncomingWebhook` and `revokeIncomingWebhook` (`/external/chats/conversations/:id/incoming-webhooks`), each with a typed twin in the native languages. Create and regenerate return the one-time `url`; store it, it is never shown again. Changes are never retried.
|
|
193
|
+
- `postIncomingWebhook(url, payload)` (TypeScript, no credential): posts `{ text, username?, icon_url?, blocks?, attachments? }` to the secret URL and throws a `LiveChattaError` with the server's `code` (`RATE_LIMITED` with `details.retryAfter`, `CONVERSATION_LOCKED`, `NO_TEXT` and so on). Kotlin, Swift and Dart apps post to the URL with their own HTTP client.
|
|
194
|
+
- Types: `IncomingWebhook`, `IncomingWebhookPage`, `IncomingWebhooksQuery`, `CreateIncomingWebhookPayload`, `UpdateIncomingWebhookPayload`, `IncomingWebhookMessagePayload`, the `IncomingWebhookStatus` union and `INCOMING_WEBHOOK_LIMITS`. The list and every result never carry the secret or its hash; `tokenHint` is the last four characters.
|
|
195
|
+
- CLI: `chatta hooks list | create | rename | regenerate | revoke` on the API key (regenerate and revoke ask for `--yes`; create and regenerate print the URL once) and `chatta hooks send <text…>` with the URL from `LIVECHATTA_HOOK_URL` or `--url-stdin`, which needs no key (`--url` warns that it lands in shell history; https only, http for localhost; redirects are refused).
|
|
196
|
+
- Contract fixtures and tests for the five management routes in all four languages, and model tests that a hook only has a `url` when the server sends one.
|
|
197
|
+
|
|
198
|
+
### GIF search
|
|
199
|
+
|
|
200
|
+
- GIF search (chatta P-N7), member or owner token, in TypeScript, Kotlin, Swift and Dart: `getGifConfig`, `searchGifs`, `trendingGifs`, `registerGifShare` (the share ping some providers require) and `reportGif`, with typed twins in the native languages (`searchGifsTyped` and the rest).
|
|
201
|
+
- Types: `GifItem`, `GifPage`, `GifQuery`, `GifConfigView`, `GifShareRef`, `GifShareResult`, `GifReportResult`, `ReportGifPayload`, `GifRef` and the `GifProviderName`, `GifRating`, `GifSource` and `GifReportReason` unions. `Message.gif` and `ChatMessageKind.GIF` describe a GIF message; send one with `sendMessage({ gif: { provider, id } })`. The client never sends a URL, the server looks the GIF up.
|
|
202
|
+
- CLI: `chatta gifs search <query…> [--source livechatta|provider] [--cursor c]` and `chatta gifs trending [--source livechatta|provider] [--cursor c]`, on the owner token. They say when the LiveChatta default GIFs answered instead of a provider, and when a pack search handed over to the provider.
|
|
203
|
+
- `source`: `searchGifs` and `trendingGifs` take `source: 'livechatta' | 'provider'` (TypeScript, Kotlin, Swift and Dart, plus their typed twins). `livechatta` returns the 100+ LiveChatta GIFs even when a provider is set; leaving it out keeps the provider first. A pack search with no match returns the provider's results with `switched: true`. The server refuses any other value.
|
|
204
|
+
- `GifPage` gains `hasProviders`, `providerLabel` and `switched`, and `GifConfigView` gains `providerLabel`, so a custom UI can draw the same two tabs as the hosted picker. The `GifTab` union is exported.
|
|
205
|
+
- Contract fixtures and tests for the five GIF routes in all four languages.
|
|
206
|
+
- The generated Kotlin, Swift and Dart models were regenerated from the TypeScript types, which also brings in the money-card and LiveFlex transaction types that had not been regenerated, so the diff is larger than the GIF types alone.
|
|
207
|
+
- When the site has GIF search switched off, `getGifConfig` answers `enabled: false` and the other GIF routes answer 404. Against a server that has no GIF provider keys, search still works: the default pack answers with `source: 'default'`.
|
|
208
|
+
|
|
209
|
+
### `chatta` CLI
|
|
210
|
+
|
|
211
|
+
- Zero dependencies, for scripts and CI.
|
|
212
|
+
- Commands:
|
|
213
|
+
- login with an API key or an owner sign-in code;
|
|
214
|
+
- links (create, modes, join policy, requests, channels, app origins), conversations and members (list, export, block);
|
|
215
|
+
- messages (`send`, `tail`), meetings (list, schedule, cancel) and exports;
|
|
216
|
+
- API keys and webhooks (list, deliveries, retry, rotate secret, test, listen);
|
|
217
|
+
- incoming webhooks (`hooks`: list, create, rename, regenerate, revoke, send);
|
|
218
|
+
- billing and plan, security (staff access and grants) and teams;
|
|
219
|
+
- LiveFlex (history, fund, send, withdraw, requests, splits, standing, pots, refunds, pay links, receipts, statements).
|
|
220
|
+
- `doctor` checks the base URL, clock, keys and webhooks. Named profiles, shell completion (bash, zsh and fish) and `--json` output.
|
|
221
|
+
- Secrets come from stdin (`--api-key-stdin`, `--member-token-stdin`, `--pin-stdin`). Downloads send your token only to the API's own host over https.
|
|
222
|
+
|
|
223
|
+
### Security in the box
|
|
224
|
+
|
|
225
|
+
- Tokens are encrypted for embeds and refreshed automatically.
|
|
226
|
+
- The Bridge only talks to its own frame's origin.
|
|
227
|
+
- Signed links are hidden from `--json` output unless you ask for them.
|
|
228
|
+
- Server error codes are typed in every language.
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 LiveChatta
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|