@lessly/sdk-app 30.4.0 → 30.6.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 (42) 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-D6GSULBV.d.cts → client.gen-DK6VpzBG.d.cts} +441 -4
  6. package/dist/{client.gen-D6GSULBV.d.ts → client.gen-DK6VpzBG.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/playground/index.d.cts +1 -1
  22. package/dist/playground/index.d.ts +1 -1
  23. package/dist/realtime/index.d.cts +1 -1
  24. package/dist/realtime/index.d.ts +1 -1
  25. package/dist/support/index.cjs +40 -0
  26. package/dist/support/index.cjs.map +1 -1
  27. package/dist/support/index.d.cts +34 -2
  28. package/dist/support/index.d.ts +34 -2
  29. package/dist/support/index.js +33 -1
  30. package/dist/support/index.js.map +1 -1
  31. package/dist/tracking/index.d.cts +1 -1
  32. package/dist/tracking/index.d.ts +1 -1
  33. package/dist/users/index.d.cts +1 -1
  34. package/dist/users/index.d.ts +1 -1
  35. package/dist/waitlist/index.d.cts +1 -1
  36. package/dist/waitlist/index.d.ts +1 -1
  37. package/package.json +2 -2
  38. package/src/gen/bindings.gen.ts +144 -0
  39. package/src/gen/client.gen.ts +30 -0
  40. package/src/gen/support/index.ts +1 -1
  41. package/src/gen/support/queryOptions.gen.ts +51 -0
  42. package/src/gen/types.gen.ts +443 -3
@@ -15139,13 +15139,21 @@ export interface SupportMessageListInput {
15139
15139
  */
15140
15140
  limit?: number
15141
15141
  /**
15142
- * Number of messages to skip
15142
+ * ISO-8601 timestamp. Only messages created strictly after it — pass the createdAt of the last message you already have
15143
+ */
15144
+ since?: string
15145
+ /**
15146
+ * 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
15147
+ */
15148
+ cursor?: string
15149
+ /**
15150
+ * Number of messages to skip. The older pagination, kept for callers that already use it; prefer cursor, which cannot drift as messages arrive
15143
15151
  */
15144
15152
  offset?: number
15145
15153
  /**
15146
- * Thread whose messages to list. Messages exist only inside a thread
15154
+ * Thread whose messages to list. Omit to list the messages of every thread of this product — the catch-up read
15147
15155
  */
15148
- threadId: string
15156
+ threadId?: string
15149
15157
  /**
15150
15158
  * Only messages in this direction
15151
15159
  */
@@ -15231,6 +15239,10 @@ authorAgentId: (string | null)
15231
15239
  */
15232
15240
  authorExternalId: (string | null)
15233
15241
  }[]
15242
+ /**
15243
+ * Position to resume from: pass it back as cursor for the next page. Null when this page is the last one
15244
+ */
15245
+ nextCursor: (string | null)
15234
15246
  }
15235
15247
 
15236
15248
  export interface SupportStatusArchiveInput {
@@ -16171,6 +16183,434 @@ assignedAgentId: (string | null)
16171
16183
  authorExternalId: string
16172
16184
  }
16173
16185
 
16186
+ export interface SupportWebhookCreateInput {
16187
+ /**
16188
+ * HTTPS endpoint the event is POSTed to. Plain http:// is rejected
16189
+ */
16190
+ url: string
16191
+ /**
16192
+ * Event types this endpoint subscribes to. One or more of support.message.created, support.thread.status-changed, support.thread.assigned
16193
+ *
16194
+ * @minItems 1
16195
+ */
16196
+ eventTypes: [("support.message.created" | "support.thread.status-changed" | "support.thread.assigned"), ...(("support.message.created" | "support.thread.status-changed" | "support.thread.assigned"))[]]
16197
+ /**
16198
+ * Free-form note about what this endpoint is for, up to 1000 characters
16199
+ */
16200
+ description?: string
16201
+ }
16202
+
16203
+ export interface SupportWebhookCreateOutput {
16204
+ /**
16205
+ * Webhook id
16206
+ */
16207
+ id: string
16208
+ /**
16209
+ * HTTPS endpoint events are POSTed to
16210
+ */
16211
+ url: string
16212
+ /**
16213
+ * 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
16214
+ */
16215
+ secret: string
16216
+ /**
16217
+ * active or disabled
16218
+ */
16219
+ status: ("active" | "disabled")
16220
+ /**
16221
+ * ISO-8601 creation timestamp
16222
+ */
16223
+ createdAt: string
16224
+ /**
16225
+ * ISO-8601 last-update timestamp
16226
+ */
16227
+ updatedAt: string
16228
+ /**
16229
+ * Event types this endpoint subscribes to
16230
+ */
16231
+ eventTypes: string[]
16232
+ /**
16233
+ * Free-form note, or null
16234
+ */
16235
+ description: (string | null)
16236
+ /**
16237
+ * First characters of the signing secret, to tell endpoints apart. Never the whole secret
16238
+ */
16239
+ secretPrefix: string
16240
+ }
16241
+
16242
+ export interface SupportWebhookDeleteInput {
16243
+ /**
16244
+ * Webhook id
16245
+ */
16246
+ id: string
16247
+ }
16248
+
16249
+ export interface SupportWebhookDeleteOutput {
16250
+ /**
16251
+ * Id of the endpoint that was removed
16252
+ */
16253
+ id: string
16254
+ /**
16255
+ * Always true — the endpoint is gone
16256
+ */
16257
+ deleted: true
16258
+ }
16259
+
16260
+ export interface SupportWebhookDeliveriesListInput {
16261
+ /**
16262
+ * Page size, 1..200 (default 50)
16263
+ */
16264
+ limit?: number
16265
+ /**
16266
+ * Only deliveries in this state: pending, delivered or failed
16267
+ */
16268
+ state?: ("pending" | "delivered" | "failed")
16269
+ /**
16270
+ * Number of deliveries to skip
16271
+ */
16272
+ offset?: number
16273
+ /**
16274
+ * Only deliveries opened at or before this ISO-8601 time
16275
+ */
16276
+ createdTo?: string
16277
+ /**
16278
+ * Only deliveries of this event type
16279
+ */
16280
+ eventType?: ("support.message.created" | "support.thread.status-changed" | "support.thread.assigned")
16281
+ /**
16282
+ * Only deliveries for this endpoint
16283
+ */
16284
+ webhookId?: string
16285
+ /**
16286
+ * Only deliveries opened at or after this ISO-8601 time
16287
+ */
16288
+ createdFrom?: string
16289
+ }
16290
+
16291
+ export interface SupportWebhookDeliveriesListOutput {
16292
+ /**
16293
+ * Page size that was applied
16294
+ */
16295
+ limit: number
16296
+ /**
16297
+ * Offset that was applied
16298
+ */
16299
+ offset: number
16300
+ /**
16301
+ * The requested page, newest first
16302
+ */
16303
+ deliveries: {
16304
+ /**
16305
+ * Delivery id — the value in the X-Support-Delivery-Id header
16306
+ */
16307
+ id: string
16308
+ /**
16309
+ * Why the last attempt failed, or null. Never carries the signing key
16310
+ */
16311
+ error: (string | null)
16312
+ /**
16313
+ * pending while attempts remain, delivered once the endpoint answered 2xx, failed when every attempt was used up
16314
+ */
16315
+ state: ("pending" | "delivered" | "failed")
16316
+ /**
16317
+ * How many attempts have been made, 0 before the first
16318
+ */
16319
+ attempt: number
16320
+ /**
16321
+ * The JSON body that was sent. Identifiers and metadata only — never message text
16322
+ */
16323
+ payload: {
16324
+ [k: string]: unknown
16325
+ }
16326
+ /**
16327
+ * ISO-8601 time the delivery was opened
16328
+ */
16329
+ createdAt: string
16330
+ /**
16331
+ * Event type that was delivered
16332
+ */
16333
+ eventType: string
16334
+ /**
16335
+ * The endpoint this delivery was for
16336
+ */
16337
+ webhookId: string
16338
+ /**
16339
+ * ISO-8601 time of the successful attempt, or null
16340
+ */
16341
+ deliveredAt: (string | null)
16342
+ /**
16343
+ * ISO-8601 time the next attempt is due, or null when there is none
16344
+ */
16345
+ nextRetryAt: (string | null)
16346
+ /**
16347
+ * The key the receiver deduplicates on. A redelivery of this event carries the same value
16348
+ */
16349
+ idempotencyKey: string
16350
+ /**
16351
+ * HTTP status of the last attempt, or null if the request never got an answer
16352
+ */
16353
+ responseStatus: (number | null)
16354
+ }[]
16355
+ }
16356
+
16357
+ export interface SupportWebhookGetInput {
16358
+ /**
16359
+ * Webhook id
16360
+ */
16361
+ id: string
16362
+ }
16363
+
16364
+ export interface SupportWebhookGetOutput {
16365
+ /**
16366
+ * Webhook id
16367
+ */
16368
+ id: string
16369
+ /**
16370
+ * HTTPS endpoint events are POSTed to
16371
+ */
16372
+ url: string
16373
+ /**
16374
+ * active or disabled
16375
+ */
16376
+ status: ("active" | "disabled")
16377
+ /**
16378
+ * ISO-8601 creation timestamp
16379
+ */
16380
+ createdAt: string
16381
+ /**
16382
+ * ISO-8601 last-update timestamp
16383
+ */
16384
+ updatedAt: string
16385
+ /**
16386
+ * Event types this endpoint subscribes to
16387
+ */
16388
+ eventTypes: string[]
16389
+ /**
16390
+ * Free-form note, or null
16391
+ */
16392
+ description: (string | null)
16393
+ /**
16394
+ * First characters of the signing secret, to tell endpoints apart. Never the whole secret
16395
+ */
16396
+ secretPrefix: string
16397
+ }
16398
+
16399
+ export interface SupportWebhookListInput {
16400
+
16401
+ }
16402
+
16403
+ export interface SupportWebhookListOutput {
16404
+ /**
16405
+ * The endpoints this product has registered, oldest first
16406
+ */
16407
+ webhooks: {
16408
+ /**
16409
+ * Webhook id
16410
+ */
16411
+ id: string
16412
+ /**
16413
+ * HTTPS endpoint events are POSTed to
16414
+ */
16415
+ url: string
16416
+ /**
16417
+ * active or disabled
16418
+ */
16419
+ status: ("active" | "disabled")
16420
+ /**
16421
+ * ISO-8601 creation timestamp
16422
+ */
16423
+ createdAt: string
16424
+ /**
16425
+ * ISO-8601 last-update timestamp
16426
+ */
16427
+ updatedAt: string
16428
+ /**
16429
+ * Event types this endpoint subscribes to
16430
+ */
16431
+ eventTypes: string[]
16432
+ /**
16433
+ * Free-form note, or null
16434
+ */
16435
+ description: (string | null)
16436
+ /**
16437
+ * First characters of the signing secret, to tell endpoints apart. Never the whole secret
16438
+ */
16439
+ secretPrefix: string
16440
+ }[]
16441
+ }
16442
+
16443
+ export interface SupportWebhookRedeliverInput {
16444
+ /**
16445
+ * Id of the delivery to send again
16446
+ */
16447
+ id: string
16448
+ }
16449
+
16450
+ export interface SupportWebhookRedeliverOutput {
16451
+ /**
16452
+ * The new delivery, opened in pending state. It carries the original idempotencyKey, so a receiver that already processed the first one can ignore it
16453
+ */
16454
+ delivery: {
16455
+ /**
16456
+ * Delivery id — the value in the X-Support-Delivery-Id header
16457
+ */
16458
+ id: string
16459
+ /**
16460
+ * Why the last attempt failed, or null. Never carries the signing key
16461
+ */
16462
+ error: (string | null)
16463
+ /**
16464
+ * pending while attempts remain, delivered once the endpoint answered 2xx, failed when every attempt was used up
16465
+ */
16466
+ state: ("pending" | "delivered" | "failed")
16467
+ /**
16468
+ * How many attempts have been made, 0 before the first
16469
+ */
16470
+ attempt: number
16471
+ /**
16472
+ * The JSON body that was sent. Identifiers and metadata only — never message text
16473
+ */
16474
+ payload: {
16475
+ [k: string]: unknown
16476
+ }
16477
+ /**
16478
+ * ISO-8601 time the delivery was opened
16479
+ */
16480
+ createdAt: string
16481
+ /**
16482
+ * Event type that was delivered
16483
+ */
16484
+ eventType: string
16485
+ /**
16486
+ * The endpoint this delivery was for
16487
+ */
16488
+ webhookId: string
16489
+ /**
16490
+ * ISO-8601 time of the successful attempt, or null
16491
+ */
16492
+ deliveredAt: (string | null)
16493
+ /**
16494
+ * ISO-8601 time the next attempt is due, or null when there is none
16495
+ */
16496
+ nextRetryAt: (string | null)
16497
+ /**
16498
+ * The key the receiver deduplicates on. A redelivery of this event carries the same value
16499
+ */
16500
+ idempotencyKey: string
16501
+ /**
16502
+ * HTTP status of the last attempt, or null if the request never got an answer
16503
+ */
16504
+ responseStatus: (number | null)
16505
+ }
16506
+ }
16507
+
16508
+ export interface SupportWebhookRotateSecretInput {
16509
+ /**
16510
+ * Webhook id
16511
+ */
16512
+ id: string
16513
+ }
16514
+
16515
+ export interface SupportWebhookRotateSecretOutput {
16516
+ /**
16517
+ * Webhook id
16518
+ */
16519
+ id: string
16520
+ /**
16521
+ * HTTPS endpoint events are POSTed to
16522
+ */
16523
+ url: string
16524
+ /**
16525
+ * 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
16526
+ */
16527
+ secret: string
16528
+ /**
16529
+ * active or disabled
16530
+ */
16531
+ status: ("active" | "disabled")
16532
+ /**
16533
+ * ISO-8601 creation timestamp
16534
+ */
16535
+ createdAt: string
16536
+ /**
16537
+ * ISO-8601 last-update timestamp
16538
+ */
16539
+ updatedAt: string
16540
+ /**
16541
+ * Event types this endpoint subscribes to
16542
+ */
16543
+ eventTypes: string[]
16544
+ /**
16545
+ * Free-form note, or null
16546
+ */
16547
+ description: (string | null)
16548
+ /**
16549
+ * First characters of the signing secret, to tell endpoints apart. Never the whole secret
16550
+ */
16551
+ secretPrefix: string
16552
+ }
16553
+
16554
+ export interface SupportWebhookUpdateInput {
16555
+ /**
16556
+ * Webhook id
16557
+ */
16558
+ id: string
16559
+ /**
16560
+ * HTTPS endpoint the event is POSTed to. Plain http:// is rejected
16561
+ */
16562
+ url?: string
16563
+ /**
16564
+ * active delivers events; disabled keeps the registration and stops delivery
16565
+ */
16566
+ status?: ("active" | "disabled")
16567
+ /**
16568
+ * Event types this endpoint subscribes to. One or more of support.message.created, support.thread.status-changed, support.thread.assigned
16569
+ *
16570
+ * @minItems 1
16571
+ */
16572
+ eventTypes?: [("support.message.created" | "support.thread.status-changed" | "support.thread.assigned"), ...(("support.message.created" | "support.thread.status-changed" | "support.thread.assigned"))[]]
16573
+ /**
16574
+ * Free-form note about what this endpoint is for, up to 1000 characters
16575
+ */
16576
+ description?: (string | null)
16577
+ }
16578
+
16579
+ export interface SupportWebhookUpdateOutput {
16580
+ /**
16581
+ * Webhook id
16582
+ */
16583
+ id: string
16584
+ /**
16585
+ * HTTPS endpoint events are POSTed to
16586
+ */
16587
+ url: string
16588
+ /**
16589
+ * active or disabled
16590
+ */
16591
+ status: ("active" | "disabled")
16592
+ /**
16593
+ * ISO-8601 creation timestamp
16594
+ */
16595
+ createdAt: string
16596
+ /**
16597
+ * ISO-8601 last-update timestamp
16598
+ */
16599
+ updatedAt: string
16600
+ /**
16601
+ * Event types this endpoint subscribes to
16602
+ */
16603
+ eventTypes: string[]
16604
+ /**
16605
+ * Free-form note, or null
16606
+ */
16607
+ description: (string | null)
16608
+ /**
16609
+ * First characters of the signing secret, to tell endpoints apart. Never the whole secret
16610
+ */
16611
+ secretPrefix: string
16612
+ }
16613
+
16174
16614
  export interface TrackingDomainsCreateInput {
16175
16615
  host?: string
16176
16616
  records?: {