@lessly/sdk-app 30.5.0 → 30.7.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.
Files changed (40) hide show
  1. package/dist/analytics/index.d.cts +1 -1
  2. package/dist/analytics/index.d.ts +1 -1
  3. package/dist/brain/index.d.cts +1 -1
  4. package/dist/brain/index.d.ts +1 -1
  5. package/dist/{client.gen-TuN8pGec.d.cts → client.gen-p_iZK5OO.d.cts} +441 -4
  6. package/dist/{client.gen-TuN8pGec.d.ts → client.gen-p_iZK5OO.d.ts} +441 -4
  7. package/dist/consent/index.d.cts +1 -1
  8. package/dist/consent/index.d.ts +1 -1
  9. package/dist/deployment/index.d.cts +1 -1
  10. package/dist/deployment/index.d.ts +1 -1
  11. package/dist/index.cjs +144 -0
  12. package/dist/index.cjs.map +1 -1
  13. package/dist/index.d.cts +1 -1
  14. package/dist/index.d.ts +1 -1
  15. package/dist/index.js +144 -0
  16. package/dist/index.js.map +1 -1
  17. package/dist/mail/index.d.cts +2 -2
  18. package/dist/mail/index.d.ts +2 -2
  19. package/dist/organization/index.d.cts +1 -1
  20. package/dist/organization/index.d.ts +1 -1
  21. package/dist/realtime/index.d.cts +1 -1
  22. package/dist/realtime/index.d.ts +1 -1
  23. package/dist/support/index.cjs +40 -0
  24. package/dist/support/index.cjs.map +1 -1
  25. package/dist/support/index.d.cts +34 -2
  26. package/dist/support/index.d.ts +34 -2
  27. package/dist/support/index.js +33 -1
  28. package/dist/support/index.js.map +1 -1
  29. package/dist/tracking/index.d.cts +1 -1
  30. package/dist/tracking/index.d.ts +1 -1
  31. package/dist/users/index.d.cts +1 -1
  32. package/dist/users/index.d.ts +1 -1
  33. package/dist/waitlist/index.d.cts +1 -1
  34. package/dist/waitlist/index.d.ts +1 -1
  35. package/package.json +2 -2
  36. package/src/gen/bindings.gen.ts +144 -0
  37. package/src/gen/client.gen.ts +30 -0
  38. package/src/gen/support/index.ts +1 -1
  39. package/src/gen/support/queryOptions.gen.ts +51 -0
  40. package/src/gen/types.gen.ts +443 -3
@@ -15037,13 +15037,21 @@ export interface SupportMessageListInput {
15037
15037
  */
15038
15038
  limit?: number
15039
15039
  /**
15040
- * Number of messages to skip
15040
+ * ISO-8601 timestamp. Only messages created strictly after it — pass the createdAt of the last message you already have
15041
+ */
15042
+ since?: string
15043
+ /**
15044
+ * Opaque position from a previous nextCursor. Resumes exactly where that page ended, with no gap and no repeat even when messages share a timestamp. Never construct one, and do not combine it with offset
15045
+ */
15046
+ cursor?: string
15047
+ /**
15048
+ * Number of messages to skip. The older pagination, kept for callers that already use it; prefer cursor, which cannot drift as messages arrive
15041
15049
  */
15042
15050
  offset?: number
15043
15051
  /**
15044
- * Thread whose messages to list. Messages exist only inside a thread
15052
+ * Thread whose messages to list. Omit to list the messages of every thread of this product — the catch-up read
15045
15053
  */
15046
- threadId: string
15054
+ threadId?: string
15047
15055
  /**
15048
15056
  * Only messages in this direction
15049
15057
  */
@@ -15129,6 +15137,10 @@ authorAgentId: (string | null)
15129
15137
  */
15130
15138
  authorExternalId: (string | null)
15131
15139
  }[]
15140
+ /**
15141
+ * Position to resume from: pass it back as cursor for the next page. Null when this page is the last one
15142
+ */
15143
+ nextCursor: (string | null)
15132
15144
  }
15133
15145
 
15134
15146
  export interface SupportStatusArchiveInput {
@@ -16069,6 +16081,434 @@ assignedAgentId: (string | null)
16069
16081
  authorExternalId: string
16070
16082
  }
16071
16083
 
16084
+ export interface SupportWebhookCreateInput {
16085
+ /**
16086
+ * HTTPS endpoint the event is POSTed to. Plain http:// is rejected
16087
+ */
16088
+ url: string
16089
+ /**
16090
+ * Event types this endpoint subscribes to. One or more of support.message.created, support.thread.status-changed, support.thread.assigned
16091
+ *
16092
+ * @minItems 1
16093
+ */
16094
+ eventTypes: [("support.message.created" | "support.thread.status-changed" | "support.thread.assigned"), ...(("support.message.created" | "support.thread.status-changed" | "support.thread.assigned"))[]]
16095
+ /**
16096
+ * Free-form note about what this endpoint is for, up to 1000 characters
16097
+ */
16098
+ description?: string
16099
+ }
16100
+
16101
+ export interface SupportWebhookCreateOutput {
16102
+ /**
16103
+ * Webhook id
16104
+ */
16105
+ id: string
16106
+ /**
16107
+ * HTTPS endpoint events are POSTed to
16108
+ */
16109
+ url: string
16110
+ /**
16111
+ * The signing secret in clear. Shown exactly once, here — store it now; it cannot be read back and can only be replaced by rotating it
16112
+ */
16113
+ secret: string
16114
+ /**
16115
+ * active or disabled
16116
+ */
16117
+ status: ("active" | "disabled")
16118
+ /**
16119
+ * ISO-8601 creation timestamp
16120
+ */
16121
+ createdAt: string
16122
+ /**
16123
+ * ISO-8601 last-update timestamp
16124
+ */
16125
+ updatedAt: string
16126
+ /**
16127
+ * Event types this endpoint subscribes to
16128
+ */
16129
+ eventTypes: string[]
16130
+ /**
16131
+ * Free-form note, or null
16132
+ */
16133
+ description: (string | null)
16134
+ /**
16135
+ * First characters of the signing secret, to tell endpoints apart. Never the whole secret
16136
+ */
16137
+ secretPrefix: string
16138
+ }
16139
+
16140
+ export interface SupportWebhookDeleteInput {
16141
+ /**
16142
+ * Webhook id
16143
+ */
16144
+ id: string
16145
+ }
16146
+
16147
+ export interface SupportWebhookDeleteOutput {
16148
+ /**
16149
+ * Id of the endpoint that was removed
16150
+ */
16151
+ id: string
16152
+ /**
16153
+ * Always true — the endpoint is gone
16154
+ */
16155
+ deleted: true
16156
+ }
16157
+
16158
+ export interface SupportWebhookDeliveriesListInput {
16159
+ /**
16160
+ * Page size, 1..200 (default 50)
16161
+ */
16162
+ limit?: number
16163
+ /**
16164
+ * Only deliveries in this state: pending, delivered or failed
16165
+ */
16166
+ state?: ("pending" | "delivered" | "failed")
16167
+ /**
16168
+ * Number of deliveries to skip
16169
+ */
16170
+ offset?: number
16171
+ /**
16172
+ * Only deliveries opened at or before this ISO-8601 time
16173
+ */
16174
+ createdTo?: string
16175
+ /**
16176
+ * Only deliveries of this event type
16177
+ */
16178
+ eventType?: ("support.message.created" | "support.thread.status-changed" | "support.thread.assigned")
16179
+ /**
16180
+ * Only deliveries for this endpoint
16181
+ */
16182
+ webhookId?: string
16183
+ /**
16184
+ * Only deliveries opened at or after this ISO-8601 time
16185
+ */
16186
+ createdFrom?: string
16187
+ }
16188
+
16189
+ export interface SupportWebhookDeliveriesListOutput {
16190
+ /**
16191
+ * Page size that was applied
16192
+ */
16193
+ limit: number
16194
+ /**
16195
+ * Offset that was applied
16196
+ */
16197
+ offset: number
16198
+ /**
16199
+ * The requested page, newest first
16200
+ */
16201
+ deliveries: {
16202
+ /**
16203
+ * Delivery id — the value in the X-Support-Delivery-Id header
16204
+ */
16205
+ id: string
16206
+ /**
16207
+ * Why the last attempt failed, or null. Never carries the signing key
16208
+ */
16209
+ error: (string | null)
16210
+ /**
16211
+ * pending while attempts remain, delivered once the endpoint answered 2xx, failed when every attempt was used up
16212
+ */
16213
+ state: ("pending" | "delivered" | "failed")
16214
+ /**
16215
+ * How many attempts have been made, 0 before the first
16216
+ */
16217
+ attempt: number
16218
+ /**
16219
+ * The JSON body that was sent. Identifiers and metadata only — never message text
16220
+ */
16221
+ payload: {
16222
+ [k: string]: unknown
16223
+ }
16224
+ /**
16225
+ * ISO-8601 time the delivery was opened
16226
+ */
16227
+ createdAt: string
16228
+ /**
16229
+ * Event type that was delivered
16230
+ */
16231
+ eventType: string
16232
+ /**
16233
+ * The endpoint this delivery was for
16234
+ */
16235
+ webhookId: string
16236
+ /**
16237
+ * ISO-8601 time of the successful attempt, or null
16238
+ */
16239
+ deliveredAt: (string | null)
16240
+ /**
16241
+ * ISO-8601 time the next attempt is due, or null when there is none
16242
+ */
16243
+ nextRetryAt: (string | null)
16244
+ /**
16245
+ * The key the receiver deduplicates on. A redelivery of this event carries the same value
16246
+ */
16247
+ idempotencyKey: string
16248
+ /**
16249
+ * HTTP status of the last attempt, or null if the request never got an answer
16250
+ */
16251
+ responseStatus: (number | null)
16252
+ }[]
16253
+ }
16254
+
16255
+ export interface SupportWebhookGetInput {
16256
+ /**
16257
+ * Webhook id
16258
+ */
16259
+ id: string
16260
+ }
16261
+
16262
+ export interface SupportWebhookGetOutput {
16263
+ /**
16264
+ * Webhook id
16265
+ */
16266
+ id: string
16267
+ /**
16268
+ * HTTPS endpoint events are POSTed to
16269
+ */
16270
+ url: string
16271
+ /**
16272
+ * active or disabled
16273
+ */
16274
+ status: ("active" | "disabled")
16275
+ /**
16276
+ * ISO-8601 creation timestamp
16277
+ */
16278
+ createdAt: string
16279
+ /**
16280
+ * ISO-8601 last-update timestamp
16281
+ */
16282
+ updatedAt: string
16283
+ /**
16284
+ * Event types this endpoint subscribes to
16285
+ */
16286
+ eventTypes: string[]
16287
+ /**
16288
+ * Free-form note, or null
16289
+ */
16290
+ description: (string | null)
16291
+ /**
16292
+ * First characters of the signing secret, to tell endpoints apart. Never the whole secret
16293
+ */
16294
+ secretPrefix: string
16295
+ }
16296
+
16297
+ export interface SupportWebhookListInput {
16298
+
16299
+ }
16300
+
16301
+ export interface SupportWebhookListOutput {
16302
+ /**
16303
+ * The endpoints this product has registered, oldest first
16304
+ */
16305
+ webhooks: {
16306
+ /**
16307
+ * Webhook id
16308
+ */
16309
+ id: string
16310
+ /**
16311
+ * HTTPS endpoint events are POSTed to
16312
+ */
16313
+ url: string
16314
+ /**
16315
+ * active or disabled
16316
+ */
16317
+ status: ("active" | "disabled")
16318
+ /**
16319
+ * ISO-8601 creation timestamp
16320
+ */
16321
+ createdAt: string
16322
+ /**
16323
+ * ISO-8601 last-update timestamp
16324
+ */
16325
+ updatedAt: string
16326
+ /**
16327
+ * Event types this endpoint subscribes to
16328
+ */
16329
+ eventTypes: string[]
16330
+ /**
16331
+ * Free-form note, or null
16332
+ */
16333
+ description: (string | null)
16334
+ /**
16335
+ * First characters of the signing secret, to tell endpoints apart. Never the whole secret
16336
+ */
16337
+ secretPrefix: string
16338
+ }[]
16339
+ }
16340
+
16341
+ export interface SupportWebhookRedeliverInput {
16342
+ /**
16343
+ * Id of the delivery to send again
16344
+ */
16345
+ id: string
16346
+ }
16347
+
16348
+ export interface SupportWebhookRedeliverOutput {
16349
+ /**
16350
+ * The new delivery, opened in pending state. It carries the original idempotencyKey, so a receiver that already processed the first one can ignore it
16351
+ */
16352
+ delivery: {
16353
+ /**
16354
+ * Delivery id — the value in the X-Support-Delivery-Id header
16355
+ */
16356
+ id: string
16357
+ /**
16358
+ * Why the last attempt failed, or null. Never carries the signing key
16359
+ */
16360
+ error: (string | null)
16361
+ /**
16362
+ * pending while attempts remain, delivered once the endpoint answered 2xx, failed when every attempt was used up
16363
+ */
16364
+ state: ("pending" | "delivered" | "failed")
16365
+ /**
16366
+ * How many attempts have been made, 0 before the first
16367
+ */
16368
+ attempt: number
16369
+ /**
16370
+ * The JSON body that was sent. Identifiers and metadata only — never message text
16371
+ */
16372
+ payload: {
16373
+ [k: string]: unknown
16374
+ }
16375
+ /**
16376
+ * ISO-8601 time the delivery was opened
16377
+ */
16378
+ createdAt: string
16379
+ /**
16380
+ * Event type that was delivered
16381
+ */
16382
+ eventType: string
16383
+ /**
16384
+ * The endpoint this delivery was for
16385
+ */
16386
+ webhookId: string
16387
+ /**
16388
+ * ISO-8601 time of the successful attempt, or null
16389
+ */
16390
+ deliveredAt: (string | null)
16391
+ /**
16392
+ * ISO-8601 time the next attempt is due, or null when there is none
16393
+ */
16394
+ nextRetryAt: (string | null)
16395
+ /**
16396
+ * The key the receiver deduplicates on. A redelivery of this event carries the same value
16397
+ */
16398
+ idempotencyKey: string
16399
+ /**
16400
+ * HTTP status of the last attempt, or null if the request never got an answer
16401
+ */
16402
+ responseStatus: (number | null)
16403
+ }
16404
+ }
16405
+
16406
+ export interface SupportWebhookRotateSecretInput {
16407
+ /**
16408
+ * Webhook id
16409
+ */
16410
+ id: string
16411
+ }
16412
+
16413
+ export interface SupportWebhookRotateSecretOutput {
16414
+ /**
16415
+ * Webhook id
16416
+ */
16417
+ id: string
16418
+ /**
16419
+ * HTTPS endpoint events are POSTed to
16420
+ */
16421
+ url: string
16422
+ /**
16423
+ * The signing secret in clear. Shown exactly once, here — store it now; it cannot be read back and can only be replaced by rotating it
16424
+ */
16425
+ secret: string
16426
+ /**
16427
+ * active or disabled
16428
+ */
16429
+ status: ("active" | "disabled")
16430
+ /**
16431
+ * ISO-8601 creation timestamp
16432
+ */
16433
+ createdAt: string
16434
+ /**
16435
+ * ISO-8601 last-update timestamp
16436
+ */
16437
+ updatedAt: string
16438
+ /**
16439
+ * Event types this endpoint subscribes to
16440
+ */
16441
+ eventTypes: string[]
16442
+ /**
16443
+ * Free-form note, or null
16444
+ */
16445
+ description: (string | null)
16446
+ /**
16447
+ * First characters of the signing secret, to tell endpoints apart. Never the whole secret
16448
+ */
16449
+ secretPrefix: string
16450
+ }
16451
+
16452
+ export interface SupportWebhookUpdateInput {
16453
+ /**
16454
+ * Webhook id
16455
+ */
16456
+ id: string
16457
+ /**
16458
+ * HTTPS endpoint the event is POSTed to. Plain http:// is rejected
16459
+ */
16460
+ url?: string
16461
+ /**
16462
+ * active delivers events; disabled keeps the registration and stops delivery
16463
+ */
16464
+ status?: ("active" | "disabled")
16465
+ /**
16466
+ * Event types this endpoint subscribes to. One or more of support.message.created, support.thread.status-changed, support.thread.assigned
16467
+ *
16468
+ * @minItems 1
16469
+ */
16470
+ eventTypes?: [("support.message.created" | "support.thread.status-changed" | "support.thread.assigned"), ...(("support.message.created" | "support.thread.status-changed" | "support.thread.assigned"))[]]
16471
+ /**
16472
+ * Free-form note about what this endpoint is for, up to 1000 characters
16473
+ */
16474
+ description?: (string | null)
16475
+ }
16476
+
16477
+ export interface SupportWebhookUpdateOutput {
16478
+ /**
16479
+ * Webhook id
16480
+ */
16481
+ id: string
16482
+ /**
16483
+ * HTTPS endpoint events are POSTed to
16484
+ */
16485
+ url: string
16486
+ /**
16487
+ * active or disabled
16488
+ */
16489
+ status: ("active" | "disabled")
16490
+ /**
16491
+ * ISO-8601 creation timestamp
16492
+ */
16493
+ createdAt: string
16494
+ /**
16495
+ * ISO-8601 last-update timestamp
16496
+ */
16497
+ updatedAt: string
16498
+ /**
16499
+ * Event types this endpoint subscribes to
16500
+ */
16501
+ eventTypes: string[]
16502
+ /**
16503
+ * Free-form note, or null
16504
+ */
16505
+ description: (string | null)
16506
+ /**
16507
+ * First characters of the signing secret, to tell endpoints apart. Never the whole secret
16508
+ */
16509
+ secretPrefix: string
16510
+ }
16511
+
16072
16512
  export interface TrackingDomainsCreateInput {
16073
16513
  host?: string
16074
16514
  records?: {