useyuva 0.0.22 → 0.0.24
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/dist/types/schema.gen.d.ts +32 -5
- package/package.json +1 -1
|
@@ -1681,8 +1681,10 @@ export interface paths {
|
|
|
1681
1681
|
head?: never;
|
|
1682
1682
|
/**
|
|
1683
1683
|
* Update a conversation
|
|
1684
|
-
* @description Changes to the assignee, the status
|
|
1685
|
-
* `snooze_until` is required with status `snoozed` and cleared by any other
|
|
1684
|
+
* @description Changes to the assignee, the status, the labels and a feedback's progress are recorded as
|
|
1685
|
+
* `event` messages. `snooze_until` is required with status `snoozed` and cleared by any other
|
|
1686
|
+
* status. A `feedback_progress` value is refused with `409 not_feedback` on a conversation whose
|
|
1687
|
+
* `kind` is not `feedback`.
|
|
1686
1688
|
*
|
|
1687
1689
|
* Scope: `conversations:write`.
|
|
1688
1690
|
*/
|
|
@@ -6475,7 +6477,8 @@ export interface paths {
|
|
|
6475
6477
|
* of `ready.last_event_id` and the last `id` received, reconnect with `?last_event_id=`, and
|
|
6476
6478
|
* reload over HTTP on `resync_required`. `typing`, `presence` and `inbox.updated` have no
|
|
6477
6479
|
* `id` and are not replayed. `message.*` carries only messages (no notes or internal events),
|
|
6478
|
-
* and `conversation.updated` only the status
|
|
6480
|
+
* and `conversation.updated` only the status and a feedback's progress (a change to either
|
|
6481
|
+
* sends it; show a progress change as a line in the thread). `typing` (a member typing), `read` (how far
|
|
6479
6482
|
* members have read) and `presence` (whether someone is available; sent after `ready` and
|
|
6480
6483
|
* whenever it changes) come only for `live` inboxes. `inbox.updated` carries the inbox's
|
|
6481
6484
|
* public settings, the same `ClientInbox` as `GET /client/v1/channels/{channel_key}`, whenever
|
|
@@ -8596,6 +8599,11 @@ export interface components {
|
|
|
8596
8599
|
assignee_id?: string | null;
|
|
8597
8600
|
/** @description Replaces the labels. */
|
|
8598
8601
|
labels?: string[];
|
|
8602
|
+
/**
|
|
8603
|
+
* @description `feedback` conversations only: sets `feedback.progress`; `null` clears it. A value on
|
|
8604
|
+
* another kind is refused with `409 not_feedback`; `null` there changes nothing.
|
|
8605
|
+
*/
|
|
8606
|
+
feedback_progress?: components["schemas"]["FeedbackProgress"] | null;
|
|
8599
8607
|
};
|
|
8600
8608
|
ConversationBulkUpdate: {
|
|
8601
8609
|
conversation_ids: string[];
|
|
@@ -9016,7 +9024,7 @@ export interface components {
|
|
|
9016
9024
|
via?: string;
|
|
9017
9025
|
};
|
|
9018
9026
|
/** @enum {string} */
|
|
9019
|
-
EventType: "assigned" | "unassigned" | "status_changed" | "labels_changed" | "moved" | "rated" | "broadcast_reply";
|
|
9027
|
+
EventType: "assigned" | "unassigned" | "status_changed" | "labels_changed" | "moved" | "rated" | "broadcast_reply" | "feedback_progress";
|
|
9020
9028
|
MessageEvent: {
|
|
9021
9029
|
type: components["schemas"]["EventType"];
|
|
9022
9030
|
/**
|
|
@@ -9047,6 +9055,10 @@ export interface components {
|
|
|
9047
9055
|
rating?: components["schemas"]["Rating"];
|
|
9048
9056
|
/** @description `broadcast_reply` only: the broadcast the contact answered; the first entry of the conversation. */
|
|
9049
9057
|
broadcast?: components["schemas"]["BroadcastRef"];
|
|
9058
|
+
/** @description `feedback_progress` only: the new progress, `null` when it was cleared. */
|
|
9059
|
+
feedback_progress?: components["schemas"]["FeedbackProgress"] | null;
|
|
9060
|
+
/** @description `feedback_progress` only: the progress before; absent when it was not set. */
|
|
9061
|
+
previous_feedback_progress?: components["schemas"]["FeedbackProgress"];
|
|
9050
9062
|
};
|
|
9051
9063
|
Attachment: {
|
|
9052
9064
|
/**
|
|
@@ -10866,9 +10878,17 @@ export interface components {
|
|
|
10866
10878
|
ConversationKind: "conversation" | "feedback";
|
|
10867
10879
|
/** @enum {string} */
|
|
10868
10880
|
FeedbackCategory: "bug" | "idea" | "praise" | "other";
|
|
10881
|
+
/**
|
|
10882
|
+
* @description Where a feedback stands, set by members and shown to the contact: Planned, In progress,
|
|
10883
|
+
* Done, Won't do. Separate from the status: a feedback can be `done` and still open.
|
|
10884
|
+
* @enum {string}
|
|
10885
|
+
*/
|
|
10886
|
+
FeedbackProgress: "planned" | "in_progress" | "done" | "wont_do";
|
|
10869
10887
|
/** @description What a `feedback` conversation was sent with. Absent fields were not sent. */
|
|
10870
10888
|
Feedback: {
|
|
10871
10889
|
category: components["schemas"]["FeedbackCategory"];
|
|
10890
|
+
/** @description Set by a member with `PATCH /v1/conversations/{id}`; absent when nobody set it. */
|
|
10891
|
+
progress?: components["schemas"]["FeedbackProgress"];
|
|
10872
10892
|
/**
|
|
10873
10893
|
* @description The first line of the contact's first message, trimmed and cut to 200 characters; empty
|
|
10874
10894
|
* when that message has no text. For a triage row; the message itself is in the thread.
|
|
@@ -12692,6 +12712,12 @@ export interface components {
|
|
|
12692
12712
|
/** Format: uuid */
|
|
12693
12713
|
id: string;
|
|
12694
12714
|
status: components["schemas"]["ConversationStatus"];
|
|
12715
|
+
/**
|
|
12716
|
+
* @description `feedback` conversations only: `feedback.progress` now. Every frame carries the current
|
|
12717
|
+
* value, so an absent `feedback_progress` means none (cleared): replace the shown progress
|
|
12718
|
+
* with the frame's, do not merge.
|
|
12719
|
+
*/
|
|
12720
|
+
feedback_progress?: components["schemas"]["FeedbackProgress"];
|
|
12695
12721
|
/** @description As on `ClientConversation`. */
|
|
12696
12722
|
can_rate: boolean;
|
|
12697
12723
|
rating?: components["schemas"]["Rating"];
|
|
@@ -12870,7 +12896,7 @@ export interface components {
|
|
|
12870
12896
|
created_at: string;
|
|
12871
12897
|
data: components["schemas"]["ClientConversation"];
|
|
12872
12898
|
};
|
|
12873
|
-
/** @description The conversation's status changed. */
|
|
12899
|
+
/** @description The conversation's status or a feedback's progress changed. */
|
|
12874
12900
|
ClientConversationUpdatedEvent: {
|
|
12875
12901
|
/** Format: int64 */
|
|
12876
12902
|
id: number;
|
|
@@ -17959,6 +17985,7 @@ export interface operations {
|
|
|
17959
17985
|
401: components["responses"]["Problem"];
|
|
17960
17986
|
403: components["responses"]["Problem"];
|
|
17961
17987
|
404: components["responses"]["Problem"];
|
|
17988
|
+
409: components["responses"]["Problem"];
|
|
17962
17989
|
};
|
|
17963
17990
|
};
|
|
17964
17991
|
moveConversation: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "useyuva",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.24",
|
|
4
4
|
"description": "Yuva for the web: a headless client for contacts, the <yuva-chat> element, documentation page feedback and discussions, the <yuva-subscribe> mailing list form, cookieless web analytics, React hooks, a Nuxt module, a typed /v1 client and server helpers for identity tokens, webhooks and server-side analytics.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|