@lessly/sdk-app 83.2.0 → 83.4.0

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.
@@ -91908,6 +91908,101 @@ id: string
91908
91908
  * The message text, byte-identical to what was stored
91909
91909
  */
91910
91910
  body: string
91911
+ /**
91912
+ * ISO-8601 time of the last edit, or null when the message was never edited
91913
+ */
91914
+ editedAt: (string | null)
91915
+ /**
91916
+ * Thread this message belongs to
91917
+ */
91918
+ threadId: string
91919
+ /**
91920
+ * ISO-8601 creation timestamp
91921
+ */
91922
+ createdAt: string
91923
+ /**
91924
+ * ISO-8601 time the message was deleted, or null. A deleted message stays in the thread as a placeholder: its body is empty and it carries no attachments
91925
+ */
91926
+ deletedAt: (string | null)
91927
+ /**
91928
+ * inbound: written by the external end user. outbound: written by support, going out to them
91929
+ */
91930
+ direction: ("inbound" | "outbound")
91931
+ /**
91932
+ * public: part of the conversation the external end user sees. internal: a note between agents that never leaves the support contour
91933
+ */
91934
+ visibility: ("public" | "internal")
91935
+ /**
91936
+ * Files this message carries, each with a freshly signed download URL. Empty when there are none. Attachments whose upload was never confirmed are never listed here
91937
+ */
91938
+ attachments: {
91939
+ /**
91940
+ * Attachment id
91941
+ */
91942
+ id: string
91943
+ /**
91944
+ * Display name of the file
91945
+ */
91946
+ fileName: string
91947
+ /**
91948
+ * ISO-8601 timestamp of when the attachment was created
91949
+ */
91950
+ createdAt: string
91951
+ /**
91952
+ * Size in bytes as reported by storage
91953
+ */
91954
+ sizeBytes: number
91955
+ /**
91956
+ * MIME type of the file
91957
+ */
91958
+ contentType: string
91959
+ /**
91960
+ * Short-lived signed URL to read the file. Re-read the message to get a fresh one
91961
+ */
91962
+ downloadUrl: string
91963
+ }[]
91964
+ /**
91965
+ * The same files as a flat list of ids, in the order attachments[] has them. This is the value support_message_create takes back; attachments.0.id names only the first file
91966
+ */
91967
+ attachmentIds: string[]
91968
+ /**
91969
+ * The agent author, or null when the external end user wrote the message
91970
+ */
91971
+ authorAgentId: (string | null)
91972
+ /**
91973
+ * How many files this message carries, 0 when it carries none. A dot-path has no length, so this is the only way a step can branch on whether there are files at all — and a message may carry a file and no body, so it is what tells those two messages apart
91974
+ */
91975
+ attachmentCount: number
91976
+ /**
91977
+ * The external author, or null when an agent wrote the message
91978
+ */
91979
+ authorExternalId: (string | null)
91980
+ /**
91981
+ * The Lessly identity that posted the message — the one allowed to edit or delete it. Null for a message from the public edge or from before authorship was recorded: nobody owns those, and only support_message_delete_any removes them
91982
+ */
91983
+ createdByIdentityId: (string | null)
91984
+ }
91985
+
91986
+ export interface SupportMessageDeleteInput {
91987
+ /**
91988
+ * Message id
91989
+ */
91990
+ id: string
91991
+ }
91992
+
91993
+ export interface SupportMessageDeleteOutput {
91994
+ /**
91995
+ * Message id
91996
+ */
91997
+ id: string
91998
+ /**
91999
+ * The message text, byte-identical to what was stored
92000
+ */
92001
+ body: string
92002
+ /**
92003
+ * ISO-8601 time of the last edit, or null when the message was never edited
92004
+ */
92005
+ editedAt: (string | null)
91911
92006
  /**
91912
92007
  * Thread this message belongs to
91913
92008
  */
@@ -91916,6 +92011,10 @@ threadId: string
91916
92011
  * ISO-8601 creation timestamp
91917
92012
  */
91918
92013
  createdAt: string
92014
+ /**
92015
+ * ISO-8601 time the message was deleted, or null. A deleted message stays in the thread as a placeholder: its body is empty and it carries no attachments
92016
+ */
92017
+ deletedAt: (string | null)
91919
92018
  /**
91920
92019
  * inbound: written by the external end user. outbound: written by support, going out to them
91921
92020
  */
@@ -91969,6 +92068,101 @@ attachmentCount: number
91969
92068
  * The external author, or null when an agent wrote the message
91970
92069
  */
91971
92070
  authorExternalId: (string | null)
92071
+ /**
92072
+ * The Lessly identity that posted the message — the one allowed to edit or delete it. Null for a message from the public edge or from before authorship was recorded: nobody owns those, and only support_message_delete_any removes them
92073
+ */
92074
+ createdByIdentityId: (string | null)
92075
+ }
92076
+
92077
+ export interface SupportMessageDeleteAnyInput {
92078
+ /**
92079
+ * Message id
92080
+ */
92081
+ id: string
92082
+ }
92083
+
92084
+ export interface SupportMessageDeleteAnyOutput {
92085
+ /**
92086
+ * Message id
92087
+ */
92088
+ id: string
92089
+ /**
92090
+ * The message text, byte-identical to what was stored
92091
+ */
92092
+ body: string
92093
+ /**
92094
+ * ISO-8601 time of the last edit, or null when the message was never edited
92095
+ */
92096
+ editedAt: (string | null)
92097
+ /**
92098
+ * Thread this message belongs to
92099
+ */
92100
+ threadId: string
92101
+ /**
92102
+ * ISO-8601 creation timestamp
92103
+ */
92104
+ createdAt: string
92105
+ /**
92106
+ * ISO-8601 time the message was deleted, or null. A deleted message stays in the thread as a placeholder: its body is empty and it carries no attachments
92107
+ */
92108
+ deletedAt: (string | null)
92109
+ /**
92110
+ * inbound: written by the external end user. outbound: written by support, going out to them
92111
+ */
92112
+ direction: ("inbound" | "outbound")
92113
+ /**
92114
+ * public: part of the conversation the external end user sees. internal: a note between agents that never leaves the support contour
92115
+ */
92116
+ visibility: ("public" | "internal")
92117
+ /**
92118
+ * Files this message carries, each with a freshly signed download URL. Empty when there are none. Attachments whose upload was never confirmed are never listed here
92119
+ */
92120
+ attachments: {
92121
+ /**
92122
+ * Attachment id
92123
+ */
92124
+ id: string
92125
+ /**
92126
+ * Display name of the file
92127
+ */
92128
+ fileName: string
92129
+ /**
92130
+ * ISO-8601 timestamp of when the attachment was created
92131
+ */
92132
+ createdAt: string
92133
+ /**
92134
+ * Size in bytes as reported by storage
92135
+ */
92136
+ sizeBytes: number
92137
+ /**
92138
+ * MIME type of the file
92139
+ */
92140
+ contentType: string
92141
+ /**
92142
+ * Short-lived signed URL to read the file. Re-read the message to get a fresh one
92143
+ */
92144
+ downloadUrl: string
92145
+ }[]
92146
+ /**
92147
+ * The same files as a flat list of ids, in the order attachments[] has them. This is the value support_message_create takes back; attachments.0.id names only the first file
92148
+ */
92149
+ attachmentIds: string[]
92150
+ /**
92151
+ * The agent author, or null when the external end user wrote the message
92152
+ */
92153
+ authorAgentId: (string | null)
92154
+ /**
92155
+ * How many files this message carries, 0 when it carries none. A dot-path has no length, so this is the only way a step can branch on whether there are files at all — and a message may carry a file and no body, so it is what tells those two messages apart
92156
+ */
92157
+ attachmentCount: number
92158
+ /**
92159
+ * The external author, or null when an agent wrote the message
92160
+ */
92161
+ authorExternalId: (string | null)
92162
+ /**
92163
+ * The Lessly identity that posted the message — the one allowed to edit or delete it. Null for a message from the public edge or from before authorship was recorded: nobody owns those, and only support_message_delete_any removes them
92164
+ */
92165
+ createdByIdentityId: (string | null)
91972
92166
  }
91973
92167
 
91974
92168
  export interface SupportMessageGetInput {
@@ -91987,6 +92181,10 @@ id: string
91987
92181
  * The message text, byte-identical to what was stored
91988
92182
  */
91989
92183
  body: string
92184
+ /**
92185
+ * ISO-8601 time of the last edit, or null when the message was never edited
92186
+ */
92187
+ editedAt: (string | null)
91990
92188
  /**
91991
92189
  * Thread this message belongs to
91992
92190
  */
@@ -91995,6 +92193,10 @@ threadId: string
91995
92193
  * ISO-8601 creation timestamp
91996
92194
  */
91997
92195
  createdAt: string
92196
+ /**
92197
+ * ISO-8601 time the message was deleted, or null. A deleted message stays in the thread as a placeholder: its body is empty and it carries no attachments
92198
+ */
92199
+ deletedAt: (string | null)
91998
92200
  /**
91999
92201
  * inbound: written by the external end user. outbound: written by support, going out to them
92000
92202
  */
@@ -92048,6 +92250,10 @@ attachmentCount: number
92048
92250
  * The external author, or null when an agent wrote the message
92049
92251
  */
92050
92252
  authorExternalId: (string | null)
92253
+ /**
92254
+ * The Lessly identity that posted the message — the one allowed to edit or delete it. Null for a message from the public edge or from before authorship was recorded: nobody owns those, and only support_message_delete_any removes them
92255
+ */
92256
+ createdByIdentityId: (string | null)
92051
92257
  }
92052
92258
 
92053
92259
  export interface SupportMessageListInput {
@@ -92102,6 +92308,10 @@ id: string
92102
92308
  * The message text, byte-identical to what was stored
92103
92309
  */
92104
92310
  body: string
92311
+ /**
92312
+ * ISO-8601 time of the last edit, or null when the message was never edited
92313
+ */
92314
+ editedAt: (string | null)
92105
92315
  /**
92106
92316
  * Thread this message belongs to
92107
92317
  */
@@ -92110,6 +92320,10 @@ threadId: string
92110
92320
  * ISO-8601 creation timestamp
92111
92321
  */
92112
92322
  createdAt: string
92323
+ /**
92324
+ * ISO-8601 time the message was deleted, or null. A deleted message stays in the thread as a placeholder: its body is empty and it carries no attachments
92325
+ */
92326
+ deletedAt: (string | null)
92113
92327
  /**
92114
92328
  * inbound: written by the external end user. outbound: written by support, going out to them
92115
92329
  */
@@ -92163,6 +92377,10 @@ attachmentCount: number
92163
92377
  * The external author, or null when an agent wrote the message
92164
92378
  */
92165
92379
  authorExternalId: (string | null)
92380
+ /**
92381
+ * The Lessly identity that posted the message — the one allowed to edit or delete it. Null for a message from the public edge or from before authorship was recorded: nobody owns those, and only support_message_delete_any removes them
92382
+ */
92383
+ createdByIdentityId: (string | null)
92166
92384
  }[]
92167
92385
  /**
92168
92386
  * Position to resume from: pass it back as cursor for the next page. Null when this page is the last one
@@ -92170,6 +92388,136 @@ authorExternalId: (string | null)
92170
92388
  nextCursor: (string | null)
92171
92389
  }
92172
92390
 
92391
+ export interface SupportMessageRevisionsListInput {
92392
+ /**
92393
+ * Message id
92394
+ */
92395
+ id: string
92396
+ }
92397
+
92398
+ export interface SupportMessageRevisionsListOutput {
92399
+ /**
92400
+ * Every earlier body of the message, newest first. Empty when it was never edited, and empty again once the message is deleted — a removed body does not survive in its history
92401
+ */
92402
+ revisions: {
92403
+ /**
92404
+ * Revision id
92405
+ */
92406
+ id: string
92407
+ /**
92408
+ * The body the message had before this edit
92409
+ */
92410
+ body: string
92411
+ /**
92412
+ * ISO-8601 time of the edit
92413
+ */
92414
+ createdAt: string
92415
+ /**
92416
+ * The message this revision belongs to
92417
+ */
92418
+ messageId: string
92419
+ /**
92420
+ * The Lessly identity that made the edit
92421
+ */
92422
+ editedByIdentityId: (string | null)
92423
+ }[]
92424
+ }
92425
+
92426
+ export interface SupportMessageUpdateInput {
92427
+ /**
92428
+ * Id of the message to edit
92429
+ */
92430
+ id: string
92431
+ /**
92432
+ * The new message text, stored verbatim. It replaces the whole body. An empty string is accepted only on a message that carries at least one attachment — a picture may stand alone, a message with nothing to show may not
92433
+ */
92434
+ body: string
92435
+ }
92436
+
92437
+ export interface SupportMessageUpdateOutput {
92438
+ /**
92439
+ * Message id
92440
+ */
92441
+ id: string
92442
+ /**
92443
+ * The message text, byte-identical to what was stored
92444
+ */
92445
+ body: string
92446
+ /**
92447
+ * ISO-8601 time of the last edit, or null when the message was never edited
92448
+ */
92449
+ editedAt: (string | null)
92450
+ /**
92451
+ * Thread this message belongs to
92452
+ */
92453
+ threadId: string
92454
+ /**
92455
+ * ISO-8601 creation timestamp
92456
+ */
92457
+ createdAt: string
92458
+ /**
92459
+ * ISO-8601 time the message was deleted, or null. A deleted message stays in the thread as a placeholder: its body is empty and it carries no attachments
92460
+ */
92461
+ deletedAt: (string | null)
92462
+ /**
92463
+ * inbound: written by the external end user. outbound: written by support, going out to them
92464
+ */
92465
+ direction: ("inbound" | "outbound")
92466
+ /**
92467
+ * public: part of the conversation the external end user sees. internal: a note between agents that never leaves the support contour
92468
+ */
92469
+ visibility: ("public" | "internal")
92470
+ /**
92471
+ * Files this message carries, each with a freshly signed download URL. Empty when there are none. Attachments whose upload was never confirmed are never listed here
92472
+ */
92473
+ attachments: {
92474
+ /**
92475
+ * Attachment id
92476
+ */
92477
+ id: string
92478
+ /**
92479
+ * Display name of the file
92480
+ */
92481
+ fileName: string
92482
+ /**
92483
+ * ISO-8601 timestamp of when the attachment was created
92484
+ */
92485
+ createdAt: string
92486
+ /**
92487
+ * Size in bytes as reported by storage
92488
+ */
92489
+ sizeBytes: number
92490
+ /**
92491
+ * MIME type of the file
92492
+ */
92493
+ contentType: string
92494
+ /**
92495
+ * Short-lived signed URL to read the file. Re-read the message to get a fresh one
92496
+ */
92497
+ downloadUrl: string
92498
+ }[]
92499
+ /**
92500
+ * The same files as a flat list of ids, in the order attachments[] has them. This is the value support_message_create takes back; attachments.0.id names only the first file
92501
+ */
92502
+ attachmentIds: string[]
92503
+ /**
92504
+ * The agent author, or null when the external end user wrote the message
92505
+ */
92506
+ authorAgentId: (string | null)
92507
+ /**
92508
+ * How many files this message carries, 0 when it carries none. A dot-path has no length, so this is the only way a step can branch on whether there are files at all — and a message may carry a file and no body, so it is what tells those two messages apart
92509
+ */
92510
+ attachmentCount: number
92511
+ /**
92512
+ * The external author, or null when an agent wrote the message
92513
+ */
92514
+ authorExternalId: (string | null)
92515
+ /**
92516
+ * The Lessly identity that posted the message — the one allowed to edit or delete it. Null for a message from the public edge or from before authorship was recorded: nobody owns those, and only support_message_delete_any removes them
92517
+ */
92518
+ createdByIdentityId: (string | null)
92519
+ }
92520
+
92173
92521
  export interface SupportResponseEscalateInput {
92174
92522
  /**
92175
92523
  * Response id
@@ -111470,11 +111818,11 @@ export interface SupportWebhookCreateInput {
111470
111818
  */
111471
111819
  url: string
111472
111820
  /**
111473
- * Event types this endpoint subscribes to. One or more of support.message.created, support.thread.status-changed, support.thread.assigned, support.survey.published, support.response.created
111821
+ * Event types this endpoint subscribes to. One or more of support.message.created, support.message.updated, support.message.deleted, support.thread.status-changed, support.thread.assigned, support.survey.published, support.response.created
111474
111822
  *
111475
111823
  * @minItems 1
111476
111824
  */
111477
- eventTypes: [("support.message.created" | "support.thread.status-changed" | "support.thread.assigned" | "support.survey.published" | "support.response.created"), ...(("support.message.created" | "support.thread.status-changed" | "support.thread.assigned" | "support.survey.published" | "support.response.created"))[]]
111825
+ eventTypes: [("support.message.created" | "support.message.updated" | "support.message.deleted" | "support.thread.status-changed" | "support.thread.assigned" | "support.survey.published" | "support.response.created"), ...(("support.message.created" | "support.message.updated" | "support.message.deleted" | "support.thread.status-changed" | "support.thread.assigned" | "support.survey.published" | "support.response.created"))[]]
111478
111826
  /**
111479
111827
  * Free-form note about what this endpoint is for, up to 1000 characters
111480
111828
  */
@@ -111558,7 +111906,7 @@ createdTo?: string
111558
111906
  /**
111559
111907
  * Only deliveries of this event type
111560
111908
  */
111561
- eventType?: ("support.message.created" | "support.thread.status-changed" | "support.thread.assigned" | "support.survey.published" | "support.response.created")
111909
+ eventType?: ("support.message.created" | "support.message.updated" | "support.message.deleted" | "support.thread.status-changed" | "support.thread.assigned" | "support.survey.published" | "support.response.created")
111562
111910
  /**
111563
111911
  * Only deliveries for this endpoint
111564
111912
  */
@@ -111846,11 +112194,11 @@ url?: string
111846
112194
  */
111847
112195
  status?: ("active" | "disabled")
111848
112196
  /**
111849
- * Event types this endpoint subscribes to. One or more of support.message.created, support.thread.status-changed, support.thread.assigned, support.survey.published, support.response.created
112197
+ * Event types this endpoint subscribes to. One or more of support.message.created, support.message.updated, support.message.deleted, support.thread.status-changed, support.thread.assigned, support.survey.published, support.response.created
111850
112198
  *
111851
112199
  * @minItems 1
111852
112200
  */
111853
- eventTypes?: [("support.message.created" | "support.thread.status-changed" | "support.thread.assigned" | "support.survey.published" | "support.response.created"), ...(("support.message.created" | "support.thread.status-changed" | "support.thread.assigned" | "support.survey.published" | "support.response.created"))[]]
112201
+ eventTypes?: [("support.message.created" | "support.message.updated" | "support.message.deleted" | "support.thread.status-changed" | "support.thread.assigned" | "support.survey.published" | "support.response.created"), ...(("support.message.created" | "support.message.updated" | "support.message.deleted" | "support.thread.status-changed" | "support.thread.assigned" | "support.survey.published" | "support.response.created"))[]]
111854
112202
  /**
111855
112203
  * Free-form note about what this endpoint is for, up to 1000 characters
111856
112204
  */