@lessly/sdk-app 83.1.0 → 83.3.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.
@@ -97694,6 +97694,99 @@ export interface SupportMessageCreateOutput {
97694
97694
  * The message text, byte-identical to what was stored
97695
97695
  */
97696
97696
  body: string;
97697
+ /**
97698
+ * ISO-8601 time of the last edit, or null when the message was never edited
97699
+ */
97700
+ editedAt: (string | null);
97701
+ /**
97702
+ * Thread this message belongs to
97703
+ */
97704
+ threadId: string;
97705
+ /**
97706
+ * ISO-8601 creation timestamp
97707
+ */
97708
+ createdAt: string;
97709
+ /**
97710
+ * 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
97711
+ */
97712
+ deletedAt: (string | null);
97713
+ /**
97714
+ * inbound: written by the external end user. outbound: written by support, going out to them
97715
+ */
97716
+ direction: ("inbound" | "outbound");
97717
+ /**
97718
+ * public: part of the conversation the external end user sees. internal: a note between agents that never leaves the support contour
97719
+ */
97720
+ visibility: ("public" | "internal");
97721
+ /**
97722
+ * 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
97723
+ */
97724
+ attachments: {
97725
+ /**
97726
+ * Attachment id
97727
+ */
97728
+ id: string;
97729
+ /**
97730
+ * Display name of the file
97731
+ */
97732
+ fileName: string;
97733
+ /**
97734
+ * ISO-8601 timestamp of when the attachment was created
97735
+ */
97736
+ createdAt: string;
97737
+ /**
97738
+ * Size in bytes as reported by storage
97739
+ */
97740
+ sizeBytes: number;
97741
+ /**
97742
+ * MIME type of the file
97743
+ */
97744
+ contentType: string;
97745
+ /**
97746
+ * Short-lived signed URL to read the file. Re-read the message to get a fresh one
97747
+ */
97748
+ downloadUrl: string;
97749
+ }[];
97750
+ /**
97751
+ * 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
97752
+ */
97753
+ attachmentIds: string[];
97754
+ /**
97755
+ * The agent author, or null when the external end user wrote the message
97756
+ */
97757
+ authorAgentId: (string | null);
97758
+ /**
97759
+ * 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
97760
+ */
97761
+ attachmentCount: number;
97762
+ /**
97763
+ * The external author, or null when an agent wrote the message
97764
+ */
97765
+ authorExternalId: (string | null);
97766
+ /**
97767
+ * 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
97768
+ */
97769
+ createdByIdentityId: (string | null);
97770
+ }
97771
+ export interface SupportMessageDeleteInput {
97772
+ /**
97773
+ * Message id
97774
+ */
97775
+ id: string;
97776
+ }
97777
+ export interface SupportMessageDeleteOutput {
97778
+ /**
97779
+ * Message id
97780
+ */
97781
+ id: string;
97782
+ /**
97783
+ * The message text, byte-identical to what was stored
97784
+ */
97785
+ body: string;
97786
+ /**
97787
+ * ISO-8601 time of the last edit, or null when the message was never edited
97788
+ */
97789
+ editedAt: (string | null);
97697
97790
  /**
97698
97791
  * Thread this message belongs to
97699
97792
  */
@@ -97702,6 +97795,10 @@ export interface SupportMessageCreateOutput {
97702
97795
  * ISO-8601 creation timestamp
97703
97796
  */
97704
97797
  createdAt: string;
97798
+ /**
97799
+ * 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
97800
+ */
97801
+ deletedAt: (string | null);
97705
97802
  /**
97706
97803
  * inbound: written by the external end user. outbound: written by support, going out to them
97707
97804
  */
@@ -97755,6 +97852,99 @@ export interface SupportMessageCreateOutput {
97755
97852
  * The external author, or null when an agent wrote the message
97756
97853
  */
97757
97854
  authorExternalId: (string | null);
97855
+ /**
97856
+ * 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
97857
+ */
97858
+ createdByIdentityId: (string | null);
97859
+ }
97860
+ export interface SupportMessageDeleteAnyInput {
97861
+ /**
97862
+ * Message id
97863
+ */
97864
+ id: string;
97865
+ }
97866
+ export interface SupportMessageDeleteAnyOutput {
97867
+ /**
97868
+ * Message id
97869
+ */
97870
+ id: string;
97871
+ /**
97872
+ * The message text, byte-identical to what was stored
97873
+ */
97874
+ body: string;
97875
+ /**
97876
+ * ISO-8601 time of the last edit, or null when the message was never edited
97877
+ */
97878
+ editedAt: (string | null);
97879
+ /**
97880
+ * Thread this message belongs to
97881
+ */
97882
+ threadId: string;
97883
+ /**
97884
+ * ISO-8601 creation timestamp
97885
+ */
97886
+ createdAt: string;
97887
+ /**
97888
+ * 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
97889
+ */
97890
+ deletedAt: (string | null);
97891
+ /**
97892
+ * inbound: written by the external end user. outbound: written by support, going out to them
97893
+ */
97894
+ direction: ("inbound" | "outbound");
97895
+ /**
97896
+ * public: part of the conversation the external end user sees. internal: a note between agents that never leaves the support contour
97897
+ */
97898
+ visibility: ("public" | "internal");
97899
+ /**
97900
+ * 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
97901
+ */
97902
+ attachments: {
97903
+ /**
97904
+ * Attachment id
97905
+ */
97906
+ id: string;
97907
+ /**
97908
+ * Display name of the file
97909
+ */
97910
+ fileName: string;
97911
+ /**
97912
+ * ISO-8601 timestamp of when the attachment was created
97913
+ */
97914
+ createdAt: string;
97915
+ /**
97916
+ * Size in bytes as reported by storage
97917
+ */
97918
+ sizeBytes: number;
97919
+ /**
97920
+ * MIME type of the file
97921
+ */
97922
+ contentType: string;
97923
+ /**
97924
+ * Short-lived signed URL to read the file. Re-read the message to get a fresh one
97925
+ */
97926
+ downloadUrl: string;
97927
+ }[];
97928
+ /**
97929
+ * 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
97930
+ */
97931
+ attachmentIds: string[];
97932
+ /**
97933
+ * The agent author, or null when the external end user wrote the message
97934
+ */
97935
+ authorAgentId: (string | null);
97936
+ /**
97937
+ * 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
97938
+ */
97939
+ attachmentCount: number;
97940
+ /**
97941
+ * The external author, or null when an agent wrote the message
97942
+ */
97943
+ authorExternalId: (string | null);
97944
+ /**
97945
+ * 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
97946
+ */
97947
+ createdByIdentityId: (string | null);
97758
97948
  }
97759
97949
  export interface SupportMessageGetInput {
97760
97950
  /**
@@ -97771,6 +97961,10 @@ export interface SupportMessageGetOutput {
97771
97961
  * The message text, byte-identical to what was stored
97772
97962
  */
97773
97963
  body: string;
97964
+ /**
97965
+ * ISO-8601 time of the last edit, or null when the message was never edited
97966
+ */
97967
+ editedAt: (string | null);
97774
97968
  /**
97775
97969
  * Thread this message belongs to
97776
97970
  */
@@ -97779,6 +97973,10 @@ export interface SupportMessageGetOutput {
97779
97973
  * ISO-8601 creation timestamp
97780
97974
  */
97781
97975
  createdAt: string;
97976
+ /**
97977
+ * 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
97978
+ */
97979
+ deletedAt: (string | null);
97782
97980
  /**
97783
97981
  * inbound: written by the external end user. outbound: written by support, going out to them
97784
97982
  */
@@ -97832,6 +98030,10 @@ export interface SupportMessageGetOutput {
97832
98030
  * The external author, or null when an agent wrote the message
97833
98031
  */
97834
98032
  authorExternalId: (string | null);
98033
+ /**
98034
+ * 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
98035
+ */
98036
+ createdByIdentityId: (string | null);
97835
98037
  }
97836
98038
  export interface SupportMessageListInput {
97837
98039
  /**
@@ -97884,6 +98086,10 @@ export interface SupportMessageListOutput {
97884
98086
  * The message text, byte-identical to what was stored
97885
98087
  */
97886
98088
  body: string;
98089
+ /**
98090
+ * ISO-8601 time of the last edit, or null when the message was never edited
98091
+ */
98092
+ editedAt: (string | null);
97887
98093
  /**
97888
98094
  * Thread this message belongs to
97889
98095
  */
@@ -97892,6 +98098,10 @@ export interface SupportMessageListOutput {
97892
98098
  * ISO-8601 creation timestamp
97893
98099
  */
97894
98100
  createdAt: string;
98101
+ /**
98102
+ * 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
98103
+ */
98104
+ deletedAt: (string | null);
97895
98105
  /**
97896
98106
  * inbound: written by the external end user. outbound: written by support, going out to them
97897
98107
  */
@@ -97945,12 +98155,142 @@ export interface SupportMessageListOutput {
97945
98155
  * The external author, or null when an agent wrote the message
97946
98156
  */
97947
98157
  authorExternalId: (string | null);
98158
+ /**
98159
+ * 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
98160
+ */
98161
+ createdByIdentityId: (string | null);
97948
98162
  }[];
97949
98163
  /**
97950
98164
  * Position to resume from: pass it back as cursor for the next page. Null when this page is the last one
97951
98165
  */
97952
98166
  nextCursor: (string | null);
97953
98167
  }
98168
+ export interface SupportMessageRevisionsListInput {
98169
+ /**
98170
+ * Message id
98171
+ */
98172
+ id: string;
98173
+ }
98174
+ export interface SupportMessageRevisionsListOutput {
98175
+ /**
98176
+ * 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
98177
+ */
98178
+ revisions: {
98179
+ /**
98180
+ * Revision id
98181
+ */
98182
+ id: string;
98183
+ /**
98184
+ * The body the message had before this edit
98185
+ */
98186
+ body: string;
98187
+ /**
98188
+ * ISO-8601 time of the edit
98189
+ */
98190
+ createdAt: string;
98191
+ /**
98192
+ * The message this revision belongs to
98193
+ */
98194
+ messageId: string;
98195
+ /**
98196
+ * The Lessly identity that made the edit
98197
+ */
98198
+ editedByIdentityId: (string | null);
98199
+ }[];
98200
+ }
98201
+ export interface SupportMessageUpdateInput {
98202
+ /**
98203
+ * Id of the message to edit
98204
+ */
98205
+ id: string;
98206
+ /**
98207
+ * 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
98208
+ */
98209
+ body: string;
98210
+ }
98211
+ export interface SupportMessageUpdateOutput {
98212
+ /**
98213
+ * Message id
98214
+ */
98215
+ id: string;
98216
+ /**
98217
+ * The message text, byte-identical to what was stored
98218
+ */
98219
+ body: string;
98220
+ /**
98221
+ * ISO-8601 time of the last edit, or null when the message was never edited
98222
+ */
98223
+ editedAt: (string | null);
98224
+ /**
98225
+ * Thread this message belongs to
98226
+ */
98227
+ threadId: string;
98228
+ /**
98229
+ * ISO-8601 creation timestamp
98230
+ */
98231
+ createdAt: string;
98232
+ /**
98233
+ * 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
98234
+ */
98235
+ deletedAt: (string | null);
98236
+ /**
98237
+ * inbound: written by the external end user. outbound: written by support, going out to them
98238
+ */
98239
+ direction: ("inbound" | "outbound");
98240
+ /**
98241
+ * public: part of the conversation the external end user sees. internal: a note between agents that never leaves the support contour
98242
+ */
98243
+ visibility: ("public" | "internal");
98244
+ /**
98245
+ * 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
98246
+ */
98247
+ attachments: {
98248
+ /**
98249
+ * Attachment id
98250
+ */
98251
+ id: string;
98252
+ /**
98253
+ * Display name of the file
98254
+ */
98255
+ fileName: string;
98256
+ /**
98257
+ * ISO-8601 timestamp of when the attachment was created
98258
+ */
98259
+ createdAt: string;
98260
+ /**
98261
+ * Size in bytes as reported by storage
98262
+ */
98263
+ sizeBytes: number;
98264
+ /**
98265
+ * MIME type of the file
98266
+ */
98267
+ contentType: string;
98268
+ /**
98269
+ * Short-lived signed URL to read the file. Re-read the message to get a fresh one
98270
+ */
98271
+ downloadUrl: string;
98272
+ }[];
98273
+ /**
98274
+ * 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
98275
+ */
98276
+ attachmentIds: string[];
98277
+ /**
98278
+ * The agent author, or null when the external end user wrote the message
98279
+ */
98280
+ authorAgentId: (string | null);
98281
+ /**
98282
+ * 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
98283
+ */
98284
+ attachmentCount: number;
98285
+ /**
98286
+ * The external author, or null when an agent wrote the message
98287
+ */
98288
+ authorExternalId: (string | null);
98289
+ /**
98290
+ * 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
98291
+ */
98292
+ createdByIdentityId: (string | null);
98293
+ }
97954
98294
  export interface SupportResponseEscalateInput {
97955
98295
  /**
97956
98296
  * Response id
@@ -118604,11 +118944,11 @@ export interface SupportWebhookCreateInput {
118604
118944
  */
118605
118945
  url: string;
118606
118946
  /**
118607
- * 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
118947
+ * 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
118608
118948
  *
118609
118949
  * @minItems 1
118610
118950
  */
118611
- 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"))[]];
118951
+ 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"))[]];
118612
118952
  /**
118613
118953
  * Free-form note about what this endpoint is for, up to 1000 characters
118614
118954
  */
@@ -118688,7 +119028,7 @@ export interface SupportWebhookDeliveriesListInput {
118688
119028
  /**
118689
119029
  * Only deliveries of this event type
118690
119030
  */
118691
- eventType?: ("support.message.created" | "support.thread.status-changed" | "support.thread.assigned" | "support.survey.published" | "support.response.created");
119031
+ eventType?: ("support.message.created" | "support.message.updated" | "support.message.deleted" | "support.thread.status-changed" | "support.thread.assigned" | "support.survey.published" | "support.response.created");
118692
119032
  /**
118693
119033
  * Only deliveries for this endpoint
118694
119034
  */
@@ -118965,11 +119305,11 @@ export interface SupportWebhookUpdateInput {
118965
119305
  */
118966
119306
  status?: ("active" | "disabled");
118967
119307
  /**
118968
- * 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
119308
+ * 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
118969
119309
  *
118970
119310
  * @minItems 1
118971
119311
  */
118972
- 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"))[]];
119312
+ 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"))[]];
118973
119313
  /**
118974
119314
  * Free-form note about what this endpoint is for, up to 1000 characters
118975
119315
  */
@@ -8219,6 +8219,19 @@ var bindings = {
8219
8219
  "path": "/support/messages",
8220
8220
  "readOnly": false
8221
8221
  },
8222
+ "delete": {
8223
+ "level": "write",
8224
+ "method": "DELETE",
8225
+ "operationKey": "support_message_delete",
8226
+ "params": [
8227
+ {
8228
+ "in": "path",
8229
+ "name": "id"
8230
+ }
8231
+ ],
8232
+ "path": "/support/messages/:id",
8233
+ "readOnly": false
8234
+ },
8222
8235
  "get": {
8223
8236
  "level": "read",
8224
8237
  "method": "GET",
@@ -8268,6 +8281,53 @@ var bindings = {
8268
8281
  ],
8269
8282
  "path": "/support/messages",
8270
8283
  "readOnly": true
8284
+ },
8285
+ "update": {
8286
+ "level": "write",
8287
+ "method": "PATCH",
8288
+ "operationKey": "support_message_update",
8289
+ "params": [
8290
+ {
8291
+ "in": "path",
8292
+ "name": "id"
8293
+ },
8294
+ {
8295
+ "in": "body",
8296
+ "name": "body"
8297
+ }
8298
+ ],
8299
+ "path": "/support/messages/:id",
8300
+ "readOnly": false
8301
+ }
8302
+ },
8303
+ "message-delete": {
8304
+ "any": {
8305
+ "level": "admin",
8306
+ "method": "POST",
8307
+ "operationKey": "support_message_delete_any",
8308
+ "params": [
8309
+ {
8310
+ "in": "path",
8311
+ "name": "id"
8312
+ }
8313
+ ],
8314
+ "path": "/support/messages/:id/delete-any",
8315
+ "readOnly": false
8316
+ }
8317
+ },
8318
+ "message-revisions": {
8319
+ "list": {
8320
+ "level": "admin",
8321
+ "method": "GET",
8322
+ "operationKey": "support_message_revisions_list",
8323
+ "params": [
8324
+ {
8325
+ "in": "path",
8326
+ "name": "id"
8327
+ }
8328
+ ],
8329
+ "path": "/support/messages/:id/revisions",
8330
+ "readOnly": true
8271
8331
  }
8272
8332
  },
8273
8333
  "response": {
@@ -11482,5 +11542,5 @@ var wsBindings = {
11482
11542
  };
11483
11543
 
11484
11544
  export { bindings, wsBindings };
11485
- //# sourceMappingURL=chunk-RUEYSS2X.js.map
11486
- //# sourceMappingURL=chunk-RUEYSS2X.js.map
11545
+ //# sourceMappingURL=chunk-DXOFGSIL.js.map
11546
+ //# sourceMappingURL=chunk-DXOFGSIL.js.map