useyuva 0.0.5 → 0.0.6

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.
@@ -396,6 +396,35 @@ export interface paths {
396
396
  patch?: never;
397
397
  trace?: never;
398
398
  };
399
+ "/v1/me/mentions": {
400
+ parameters: {
401
+ query?: never;
402
+ header?: never;
403
+ path?: never;
404
+ cookie?: never;
405
+ };
406
+ /**
407
+ * Notes that mention you
408
+ * @description Notes in the workspace whose `mentions` name the calling member, written by someone else,
409
+ * newest first, in conversations the member can see now. Each item has the note (a preview
410
+ * of its text and its author), the conversation, and `seen`: whether the member has read the
411
+ * conversation up to the note (`POST /v1/conversations/{id}/read`, or writing in it). The
412
+ * page carries `unseen`, the number of unseen mentions over all pages, for a badge. Member
413
+ * sessions only.
414
+ *
415
+ * Realtime: a new mention arrives as `message.created` with `kind: note` and the member in
416
+ * `mentions`; `conversation.read` changes `seen`; `conversation.moved` and
417
+ * `inbox_access.changed` can hide or show items.
418
+ */
419
+ get: operations["listMentions"];
420
+ put?: never;
421
+ post?: never;
422
+ delete?: never;
423
+ options?: never;
424
+ head?: never;
425
+ patch?: never;
426
+ trace?: never;
427
+ };
399
428
  "/v1/workspace": {
400
429
  parameters: {
401
430
  query?: never;
@@ -1032,7 +1061,7 @@ export interface paths {
1032
1061
  * @description Whether the contact has a live `/client/v1/realtime` connection (widget or app in the
1033
1062
  * foreground), and when one was last seen. A host backend that sends its own push
1034
1063
  * notifications can skip the push while the contact is online; webhooks carry the same
1035
- * `contact.online`.
1064
+ * `contact.online`, and `contact.presence` events on `/v1/realtime` report changes.
1036
1065
  *
1037
1066
  * Scope: `contacts:read`.
1038
1067
  */
@@ -1061,7 +1090,8 @@ export interface paths {
1061
1090
  * Scope: `conversations:read`.
1062
1091
  *
1063
1092
  * Each item carries the contact (id, name, first e-mail address), a preview of the last
1064
- * `message` (notes and events are not previewed) and `unread` for the calling member.
1093
+ * `message` (notes and events are not previewed), and `unread` and `pinned_at` for the
1094
+ * calling member.
1065
1095
  */
1066
1096
  get: operations["listConversations"];
1067
1097
  put?: never;
@@ -1300,6 +1330,57 @@ export interface paths {
1300
1330
  patch?: never;
1301
1331
  trace?: never;
1302
1332
  };
1333
+ "/v1/conversations/{conversationId}/unread": {
1334
+ parameters: {
1335
+ query?: never;
1336
+ header?: never;
1337
+ path?: never;
1338
+ cookie?: never;
1339
+ };
1340
+ get?: never;
1341
+ put?: never;
1342
+ /**
1343
+ * Mark a conversation unread
1344
+ * @description Marks the conversation unread for the calling member, wherever their read cursor is: it is
1345
+ * `unread` in their lists until they read it again (`POST .../read`, or a message or note
1346
+ * of their own). Others are not affected. A `conversation.read` event with `unread: true`
1347
+ * reaches the member's connections. Member sessions only.
1348
+ */
1349
+ post: operations["markConversationUnread"];
1350
+ delete?: never;
1351
+ options?: never;
1352
+ head?: never;
1353
+ patch?: never;
1354
+ trace?: never;
1355
+ };
1356
+ "/v1/conversations/{conversationId}/pin": {
1357
+ parameters: {
1358
+ query?: never;
1359
+ header?: never;
1360
+ path?: never;
1361
+ cookie?: never;
1362
+ };
1363
+ get?: never;
1364
+ /**
1365
+ * Pin a conversation
1366
+ * @description Pins the conversation to the top of the calling member's lists; nobody else sees it.
1367
+ * Pinning a pinned conversation keeps its `pinned_at`. A `conversation.pin` event reaches the
1368
+ * member's connections. Member sessions only.
1369
+ */
1370
+ put: operations["pinConversation"];
1371
+ post?: never;
1372
+ /**
1373
+ * Unpin a conversation
1374
+ * @description Takes the calling member's pin away; unpinning a conversation that is not pinned changes
1375
+ * nothing. A `conversation.pin` event reaches the member's connections when a pin was
1376
+ * removed. Member sessions only.
1377
+ */
1378
+ delete: operations["unpinConversation"];
1379
+ options?: never;
1380
+ head?: never;
1381
+ patch?: never;
1382
+ trace?: never;
1383
+ };
1303
1384
  "/v1/conversations/{conversationId}/typing": {
1304
1385
  parameters: {
1305
1386
  query?: never;
@@ -1325,6 +1406,37 @@ export interface paths {
1325
1406
  patch?: never;
1326
1407
  trace?: never;
1327
1408
  };
1409
+ "/v1/drafts": {
1410
+ parameters: {
1411
+ query?: never;
1412
+ header?: never;
1413
+ path?: never;
1414
+ cookie?: never;
1415
+ };
1416
+ /**
1417
+ * List pending drafts
1418
+ * @description Drafts waiting to be sent, edited or discarded in the conversations the caller can see,
1419
+ * newest first, each with its conversation. `author` narrows them to drafts by bots (API
1420
+ * keys), by assistants (members through an OAuth client, `author.via` set) or by members in
1421
+ * the panel. The page carries `total`, the number of drafts matching the filters over all
1422
+ * pages, for a badge.
1423
+ *
1424
+ * Scope: `conversations:read`.
1425
+ *
1426
+ * Realtime: `draft.created`, `draft.updated` and `draft.deleted` carry the draft; a sent
1427
+ * draft arrives as `message.created` with the draft's id and `draft: false`;
1428
+ * `conversation.updated`, `conversation.moved` and `inbox_access.changed` can change the
1429
+ * conversation summary or hide items.
1430
+ */
1431
+ get: operations["listDrafts"];
1432
+ put?: never;
1433
+ post?: never;
1434
+ delete?: never;
1435
+ options?: never;
1436
+ head?: never;
1437
+ patch?: never;
1438
+ trace?: never;
1439
+ };
1328
1440
  "/v1/attachments/{attachmentId}": {
1329
1441
  parameters: {
1330
1442
  query?: never;
@@ -1996,12 +2108,15 @@ export interface paths {
1996
2108
  * arrives and every 30 seconds. An API key or token needs `conversations:read`, and contact
1997
2109
  * events reach it only with `contacts:read`. `inbox.created` reaches owners,
1998
2110
  * admins and API keys (an agent learns of a new inbox from `inbox_access.changed`);
1999
- * `inbox.deleted` reaches everyone who could see the inbox. `conversation.read` reaches only
2000
- * the connections of the member who read. `typing` (a contact or another member typing) has no
2111
+ * `inbox.deleted` reaches everyone who could see the inbox. `conversation.read` and
2112
+ * `conversation.pin` reach only the connections of the member who read or pinned. `typing` (a contact or another member typing) has no
2001
2113
  * `id`, is not stored and is not replayed. `member.presence` (a member of the workspace opened
2002
2114
  * or closed the panel or changed `availability`) reaches member sessions only, also has no
2003
2115
  * `id` and is not replayed; so does `viewing` (another member opened or left a conversation),
2004
- * which follows inbox access like conversation events.
2116
+ * which follows inbox access like conversation events. `contact.presence` (a contact
2117
+ * connected to or disconnected from `/client/v1/realtime`) follows contact events, also has no
2118
+ * `id` and is not replayed. `contact.read` (the contact read the conversation up to a
2119
+ * message) follows conversation events.
2005
2120
  *
2006
2121
  * A member session's open connection also makes the member available to contacts of `live`
2007
2122
  * inboxes they can access (see `availability` on `/v1/me`).
@@ -2211,6 +2326,8 @@ export interface paths {
2211
2326
  * Mark a conversation read
2212
2327
  * @description Moves the contact's read cursor to `message_id`, or to the latest message when it is
2213
2328
  * absent; it only moves forward. Replies the contact has read are not e-mailed to them.
2329
+ * When it moves, members see it as the conversation's `last_read_by_contact_at` and a
2330
+ * `contact.read` event on `/v1/realtime`.
2214
2331
  */
2215
2332
  post: operations["markClientConversationRead"];
2216
2333
  delete?: never;
@@ -2983,6 +3100,25 @@ export interface components {
2983
3100
  created_at: string;
2984
3101
  data: components["schemas"]["MemberPresence"];
2985
3102
  };
3103
+ /**
3104
+ * @description One of a contact's `/client/v1/realtime` connections opened or closed. Carries the
3105
+ * contact's current presence, so it may repeat the previous one.
3106
+ * Not stored: it has no `id` and is not replayed; read `/v1/contacts/{contactId}/presence`
3107
+ * after a reconnect. A connection that ends without closing (a server process that died) is
3108
+ * announced within about two minutes.
3109
+ */
3110
+ ContactPresenceEvent: {
3111
+ /**
3112
+ * @description discriminator enum property added by openapi-typescript
3113
+ * @enum {string}
3114
+ */
3115
+ type: "contact.presence";
3116
+ /** Format: uuid */
3117
+ workspace_id: string;
3118
+ /** Format: date-time */
3119
+ created_at: string;
3120
+ data: components["schemas"]["ContactPresence"];
3121
+ };
2986
3122
  MemberList: {
2987
3123
  items: components["schemas"]["Member"][];
2988
3124
  };
@@ -3928,6 +4064,14 @@ export interface components {
3928
4064
  */
3929
4065
  closed_at?: string;
3930
4066
  rating?: components["schemas"]["ConversationRating"];
4067
+ /**
4068
+ * Format: date-time
4069
+ * @description The contact has read every message created at or before this time, in the widget or
4070
+ * an app (`POST /client/v1/conversations/{id}/read`). Absent until the contact has read
4071
+ * anything, and in conversations the contact only reaches by e-mail. A `contact.read`
4072
+ * event tells when it moves.
4073
+ */
4074
+ last_read_by_contact_at?: string;
3931
4075
  /** Format: date-time */
3932
4076
  created_at: string;
3933
4077
  /** Format: date-time */
@@ -4042,15 +4186,75 @@ export interface components {
4042
4186
  last_message?: components["schemas"]["MessagePreview"];
4043
4187
  /**
4044
4188
  * @description A message or note from someone other than the calling member is newer than the
4045
- * member's read cursor. Always `false` for API keys.
4189
+ * member's read cursor, or the member marked it unread. Always `false` for API keys.
4046
4190
  */
4047
4191
  unread: boolean;
4192
+ /**
4193
+ * Format: date-time
4194
+ * @description When the calling member pinned it; absent when they did not, and for API keys.
4195
+ */
4196
+ pinned_at?: string;
4048
4197
  };
4049
4198
  ConversationPage: {
4050
4199
  items: components["schemas"]["ConversationListItem"][];
4051
4200
  /** @description Absent on the last page. */
4052
4201
  next_cursor?: string;
4053
4202
  };
4203
+ /** @description Enough of a conversation to show where an item belongs. */
4204
+ ConversationSummary: {
4205
+ /** Format: uuid */
4206
+ id: string;
4207
+ /** Format: uuid */
4208
+ inbox_id: string;
4209
+ subject: string;
4210
+ status: components["schemas"]["ConversationStatus"];
4211
+ contact: components["schemas"]["ConversationContact"];
4212
+ };
4213
+ MentionNote: {
4214
+ /** Format: uuid */
4215
+ id: string;
4216
+ /** @description The plain-text body on one line, cut to 140 characters with `…` when longer. */
4217
+ text: string;
4218
+ author: components["schemas"]["MessageAuthor"];
4219
+ /** Format: date-time */
4220
+ created_at: string;
4221
+ };
4222
+ Mention: {
4223
+ note: components["schemas"]["MentionNote"];
4224
+ conversation: components["schemas"]["ConversationSummary"];
4225
+ /** @description The calling member has read the conversation up to this note. */
4226
+ seen: boolean;
4227
+ };
4228
+ MentionPage: {
4229
+ items: components["schemas"]["Mention"][];
4230
+ /** @description Absent on the last page. */
4231
+ next_cursor?: string;
4232
+ /**
4233
+ * Format: int64
4234
+ * @description Unseen mentions over all pages.
4235
+ */
4236
+ unseen: number;
4237
+ };
4238
+ /**
4239
+ * @description `bot`: written with an API key. `assistant`: written by a member through an OAuth client.
4240
+ * `member`: written by a member in the panel.
4241
+ * @enum {string}
4242
+ */
4243
+ DraftAuthorKind: "bot" | "assistant" | "member";
4244
+ DraftItem: {
4245
+ draft: components["schemas"]["Message"];
4246
+ conversation: components["schemas"]["ConversationSummary"];
4247
+ };
4248
+ DraftPage: {
4249
+ items: components["schemas"]["DraftItem"][];
4250
+ /** @description Absent on the last page. */
4251
+ next_cursor?: string;
4252
+ /**
4253
+ * Format: int64
4254
+ * @description Drafts matching the filters over all pages.
4255
+ */
4256
+ total: number;
4257
+ };
4054
4258
  CountByID: {
4055
4259
  /** Format: uuid */
4056
4260
  id: string;
@@ -4161,8 +4365,21 @@ export interface components {
4161
4365
  * @description Absent when the conversation has nothing to read yet.
4162
4366
  */
4163
4367
  last_read_message_id?: string;
4368
+ /** @description Something is newer than the cursor, or the member marked it unread. */
4164
4369
  unread: boolean;
4165
4370
  };
4371
+ /** @description Whether a member pinned a conversation to the top of their lists. */
4372
+ ConversationPin: {
4373
+ /** Format: uuid */
4374
+ conversation_id: string;
4375
+ /** Format: uuid */
4376
+ member_id: string;
4377
+ /**
4378
+ * Format: date-time
4379
+ * @description Absent when it is not pinned.
4380
+ */
4381
+ pinned_at?: string;
4382
+ };
4166
4383
  /**
4167
4384
  * @description `message` goes to or comes from the contact, `note` is for members only, `event` records a
4168
4385
  * change (assignment, status, labels).
@@ -4673,6 +4890,56 @@ export interface components {
4673
4890
  created_at: string;
4674
4891
  data: components["schemas"]["ConversationRead"];
4675
4892
  };
4893
+ /** @description The contact's read position in a conversation. */
4894
+ ContactRead: {
4895
+ /** Format: uuid */
4896
+ conversation_id: string;
4897
+ /** Format: uuid */
4898
+ last_read_message_id: string;
4899
+ /**
4900
+ * Format: date-time
4901
+ * @description The contact has read every message created at or before this time.
4902
+ */
4903
+ read_at: string;
4904
+ };
4905
+ /** @description The contact read the conversation further, in the widget or an app. */
4906
+ ContactReadEvent: {
4907
+ /** Format: int64 */
4908
+ id: number;
4909
+ /**
4910
+ * @description discriminator enum property added by openapi-typescript
4911
+ * @enum {string}
4912
+ */
4913
+ type: "contact.read";
4914
+ /** Format: uuid */
4915
+ workspace_id: string;
4916
+ /** Format: uuid */
4917
+ inbox_id: string;
4918
+ /** Format: uuid */
4919
+ conversation_id: string;
4920
+ /** Format: date-time */
4921
+ created_at: string;
4922
+ data: components["schemas"]["ContactRead"];
4923
+ };
4924
+ /** @description The receiving member pinned or unpinned a conversation, in this or another tab or device. */
4925
+ ConversationPinEvent: {
4926
+ /** Format: int64 */
4927
+ id: number;
4928
+ /**
4929
+ * @description discriminator enum property added by openapi-typescript
4930
+ * @enum {string}
4931
+ */
4932
+ type: "conversation.pin";
4933
+ /** Format: uuid */
4934
+ workspace_id: string;
4935
+ /** Format: uuid */
4936
+ inbox_id: string;
4937
+ /** Format: uuid */
4938
+ conversation_id: string;
4939
+ /** Format: date-time */
4940
+ created_at: string;
4941
+ data: components["schemas"]["ConversationPin"];
4942
+ };
4676
4943
  /** @description A member was given or lost access to an inbox. Reload the inboxes and conversations when it is about you. */
4677
4944
  InboxAccessChangedEvent: {
4678
4945
  /** Format: int64 */
@@ -4729,7 +4996,7 @@ export interface components {
4729
4996
  type: "resync_required";
4730
4997
  };
4731
4998
  /** @description An event as `GET /v1/events` returns it, told apart by `type`; the same objects realtime and webhooks carry. */
4732
- StoredEvent: components["schemas"]["ConversationEvent"] | components["schemas"]["ConversationMovedEvent"] | components["schemas"]["MessageCreatedEvent"] | components["schemas"]["MessageUpdatedEvent"] | components["schemas"]["DraftEvent"] | components["schemas"]["ContactUpdatedEvent"] | components["schemas"]["ContactDeletedEvent"] | components["schemas"]["InboxCreatedEvent"] | components["schemas"]["InboxUpdatedEvent"] | components["schemas"]["InboxDeletedEvent"] | components["schemas"]["InboxAccessChangedEvent"] | components["schemas"]["ConversationReadEvent"];
4999
+ StoredEvent: components["schemas"]["ConversationEvent"] | components["schemas"]["ConversationMovedEvent"] | components["schemas"]["MessageCreatedEvent"] | components["schemas"]["MessageUpdatedEvent"] | components["schemas"]["DraftEvent"] | components["schemas"]["ContactUpdatedEvent"] | components["schemas"]["ContactDeletedEvent"] | components["schemas"]["InboxCreatedEvent"] | components["schemas"]["InboxUpdatedEvent"] | components["schemas"]["InboxDeletedEvent"] | components["schemas"]["InboxAccessChangedEvent"] | components["schemas"]["ConversationReadEvent"] | components["schemas"]["ContactReadEvent"] | components["schemas"]["ConversationPinEvent"];
4733
5000
  EventPage: {
4734
5001
  events: components["schemas"]["StoredEvent"][];
4735
5002
  /**
@@ -4748,7 +5015,7 @@ export interface components {
4748
5015
  id: number;
4749
5016
  };
4750
5017
  /** @description One server message on `/v1/realtime`, told apart by `type`. */
4751
- RealtimeMessage: components["schemas"]["ConversationEvent"] | components["schemas"]["ConversationMovedEvent"] | components["schemas"]["MessageCreatedEvent"] | components["schemas"]["MessageUpdatedEvent"] | components["schemas"]["DraftEvent"] | components["schemas"]["ContactUpdatedEvent"] | components["schemas"]["ContactDeletedEvent"] | components["schemas"]["InboxCreatedEvent"] | components["schemas"]["InboxUpdatedEvent"] | components["schemas"]["InboxDeletedEvent"] | components["schemas"]["InboxAccessChangedEvent"] | components["schemas"]["ConversationReadEvent"] | components["schemas"]["TypingEvent"] | components["schemas"]["MemberPresenceEvent"] | components["schemas"]["ViewingEvent"] | components["schemas"]["RealtimeReady"] | components["schemas"]["RealtimeResyncRequired"];
5018
+ RealtimeMessage: components["schemas"]["ConversationEvent"] | components["schemas"]["ConversationMovedEvent"] | components["schemas"]["MessageCreatedEvent"] | components["schemas"]["MessageUpdatedEvent"] | components["schemas"]["DraftEvent"] | components["schemas"]["ContactUpdatedEvent"] | components["schemas"]["ContactDeletedEvent"] | components["schemas"]["InboxCreatedEvent"] | components["schemas"]["InboxUpdatedEvent"] | components["schemas"]["InboxDeletedEvent"] | components["schemas"]["InboxAccessChangedEvent"] | components["schemas"]["ConversationReadEvent"] | components["schemas"]["ContactReadEvent"] | components["schemas"]["ConversationPinEvent"] | components["schemas"]["TypingEvent"] | components["schemas"]["MemberPresenceEvent"] | components["schemas"]["ContactPresenceEvent"] | components["schemas"]["ViewingEvent"] | components["schemas"]["RealtimeReady"] | components["schemas"]["RealtimeResyncRequired"];
4752
5019
  /**
4753
5020
  * @description `auto`: available in `live` inboxes while connected to `/v1/realtime` within business
4754
5021
  * hours. `away`: never shown as available.
@@ -6084,6 +6351,37 @@ export interface operations {
6084
6351
  404: components["responses"]["Problem"];
6085
6352
  };
6086
6353
  };
6354
+ listMentions: {
6355
+ parameters: {
6356
+ query?: {
6357
+ /** @description The `next_cursor` of the previous page. */
6358
+ cursor?: components["parameters"]["Cursor"];
6359
+ /** @description Page size, 1 to 100; 25 by default. */
6360
+ limit?: components["parameters"]["Limit"];
6361
+ };
6362
+ header?: {
6363
+ /** @description The workspace to act on; see "Workspace selection". */
6364
+ "Yuva-Workspace"?: components["parameters"]["WorkspaceHeader"];
6365
+ };
6366
+ path?: never;
6367
+ cookie?: never;
6368
+ };
6369
+ requestBody?: never;
6370
+ responses: {
6371
+ /** @description A page of mentions. */
6372
+ 200: {
6373
+ headers: {
6374
+ [name: string]: unknown;
6375
+ };
6376
+ content: {
6377
+ "application/json": components["schemas"]["MentionPage"];
6378
+ };
6379
+ };
6380
+ 400: components["responses"]["Problem"];
6381
+ 401: components["responses"]["Problem"];
6382
+ 403: components["responses"]["Problem"];
6383
+ };
6384
+ };
6087
6385
  getWorkspace: {
6088
6386
  parameters: {
6089
6387
  query?: never;
@@ -7346,6 +7644,11 @@ export interface operations {
7346
7644
  kind?: components["schemas"]["ConversationKind"];
7347
7645
  /** @description Only feedback of this category (implies `kind=feedback`). */
7348
7646
  category?: components["schemas"]["FeedbackCategory"];
7647
+ /**
7648
+ * @description `true` lists only the conversations the calling member pinned, `false` only the others;
7649
+ * without it, both. Member sessions only (`400 validation_failed` for API keys).
7650
+ */
7651
+ pinned?: boolean;
7349
7652
  /** @description Full-text search (Postgres `simple` configuration, `websearch` syntax). */
7350
7653
  q?: components["parameters"]["Search"];
7351
7654
  /** @description The `next_cursor` of the previous page. */
@@ -7716,6 +8019,92 @@ export interface operations {
7716
8019
  404: components["responses"]["Problem"];
7717
8020
  };
7718
8021
  };
8022
+ markConversationUnread: {
8023
+ parameters: {
8024
+ query?: never;
8025
+ header?: {
8026
+ /** @description Makes a retried request return the first response; see "Idempotency". */
8027
+ "Idempotency-Key"?: components["parameters"]["IdempotencyKey"];
8028
+ /** @description The workspace to act on; see "Workspace selection". */
8029
+ "Yuva-Workspace"?: components["parameters"]["WorkspaceHeader"];
8030
+ };
8031
+ path: {
8032
+ conversationId: components["parameters"]["ConversationId"];
8033
+ };
8034
+ cookie?: never;
8035
+ };
8036
+ requestBody?: never;
8037
+ responses: {
8038
+ /** @description The member's read state. */
8039
+ 200: {
8040
+ headers: {
8041
+ [name: string]: unknown;
8042
+ };
8043
+ content: {
8044
+ "application/json": components["schemas"]["ConversationRead"];
8045
+ };
8046
+ };
8047
+ 401: components["responses"]["Problem"];
8048
+ 403: components["responses"]["Problem"];
8049
+ 404: components["responses"]["Problem"];
8050
+ };
8051
+ };
8052
+ pinConversation: {
8053
+ parameters: {
8054
+ query?: never;
8055
+ header?: {
8056
+ /** @description The workspace to act on; see "Workspace selection". */
8057
+ "Yuva-Workspace"?: components["parameters"]["WorkspaceHeader"];
8058
+ };
8059
+ path: {
8060
+ conversationId: components["parameters"]["ConversationId"];
8061
+ };
8062
+ cookie?: never;
8063
+ };
8064
+ requestBody?: never;
8065
+ responses: {
8066
+ /** @description The member's pin. */
8067
+ 200: {
8068
+ headers: {
8069
+ [name: string]: unknown;
8070
+ };
8071
+ content: {
8072
+ "application/json": components["schemas"]["ConversationPin"];
8073
+ };
8074
+ };
8075
+ 401: components["responses"]["Problem"];
8076
+ 403: components["responses"]["Problem"];
8077
+ 404: components["responses"]["Problem"];
8078
+ };
8079
+ };
8080
+ unpinConversation: {
8081
+ parameters: {
8082
+ query?: never;
8083
+ header?: {
8084
+ /** @description The workspace to act on; see "Workspace selection". */
8085
+ "Yuva-Workspace"?: components["parameters"]["WorkspaceHeader"];
8086
+ };
8087
+ path: {
8088
+ conversationId: components["parameters"]["ConversationId"];
8089
+ };
8090
+ cookie?: never;
8091
+ };
8092
+ requestBody?: never;
8093
+ responses: {
8094
+ /** @description The member's pin, without `pinned_at`. */
8095
+ 200: {
8096
+ headers: {
8097
+ [name: string]: unknown;
8098
+ };
8099
+ content: {
8100
+ "application/json": components["schemas"]["ConversationPin"];
8101
+ };
8102
+ };
8103
+ 401: components["responses"]["Problem"];
8104
+ 403: components["responses"]["Problem"];
8105
+ 404: components["responses"]["Problem"];
8106
+ };
8107
+ };
7719
8108
  setMemberTyping: {
7720
8109
  parameters: {
7721
8110
  query?: never;
@@ -7749,6 +8138,41 @@ export interface operations {
7749
8138
  404: components["responses"]["Problem"];
7750
8139
  };
7751
8140
  };
8141
+ listDrafts: {
8142
+ parameters: {
8143
+ query?: {
8144
+ /** @description Only drafts in this inbox. An inbox the caller cannot see answers `404`. */
8145
+ inbox_id?: string;
8146
+ author?: components["schemas"]["DraftAuthorKind"];
8147
+ /** @description The `next_cursor` of the previous page. */
8148
+ cursor?: components["parameters"]["Cursor"];
8149
+ /** @description Page size, 1 to 100; 25 by default. */
8150
+ limit?: components["parameters"]["Limit"];
8151
+ };
8152
+ header?: {
8153
+ /** @description The workspace to act on; see "Workspace selection". */
8154
+ "Yuva-Workspace"?: components["parameters"]["WorkspaceHeader"];
8155
+ };
8156
+ path?: never;
8157
+ cookie?: never;
8158
+ };
8159
+ requestBody?: never;
8160
+ responses: {
8161
+ /** @description A page of drafts. */
8162
+ 200: {
8163
+ headers: {
8164
+ [name: string]: unknown;
8165
+ };
8166
+ content: {
8167
+ "application/json": components["schemas"]["DraftPage"];
8168
+ };
8169
+ };
8170
+ 400: components["responses"]["Problem"];
8171
+ 401: components["responses"]["Problem"];
8172
+ 403: components["responses"]["Problem"];
8173
+ 404: components["responses"]["Problem"];
8174
+ };
8175
+ };
7752
8176
  downloadAttachment: {
7753
8177
  parameters: {
7754
8178
  query?: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "useyuva",
3
- "version": "0.0.5",
3
+ "version": "0.0.6",
4
4
  "description": "Yuva for the web: a headless client for contacts, the <yuva-chat> element, React hooks and a typed /v1 client.",
5
5
  "license": "MIT",
6
6
  "repository": {