@lessly/sdk-app 116.0.0 → 116.1.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 (35) hide show
  1. package/CHANGELOG.md +5 -33
  2. package/dist/_types/gen/client.gen.d.ts +40 -1
  3. package/dist/_types/gen/manifest.gen.d.ts +1 -1
  4. package/dist/_types/gen/playground/connect.gen.d.ts +3 -0
  5. package/dist/_types/gen/playground/index.d.ts +3 -0
  6. package/dist/_types/gen/playground/queryOptions.gen.d.ts +70 -0
  7. package/dist/_types/gen/support/index.d.ts +1 -1
  8. package/dist/_types/gen/support/queryOptions.gen.d.ts +9 -1
  9. package/dist/_types/gen/types.gen.d.ts +391 -0
  10. package/dist/chunk-LH7IJHII.js +12399 -0
  11. package/dist/chunk-LH7IJHII.js.map +1 -0
  12. package/dist/index.cjs +252 -45
  13. package/dist/index.cjs.map +1 -1
  14. package/dist/index.js +24 -12202
  15. package/dist/index.js.map +1 -1
  16. package/dist/playground/index.cjs +106 -0
  17. package/dist/playground/index.cjs.map +1 -0
  18. package/dist/playground/index.d.cts +1 -0
  19. package/dist/playground/index.d.ts +1 -0
  20. package/dist/playground/index.js +78 -0
  21. package/dist/playground/index.js.map +1 -0
  22. package/dist/support/index.cjs +10 -0
  23. package/dist/support/index.cjs.map +1 -1
  24. package/dist/support/index.js +9 -1
  25. package/dist/support/index.js.map +1 -1
  26. package/package.json +12 -2
  27. package/src/gen/bindings.gen.ts +239 -46
  28. package/src/gen/client.gen.ts +77 -0
  29. package/src/gen/manifest.gen.ts +23 -1
  30. package/src/gen/playground/connect.gen.ts +9 -0
  31. package/src/gen/playground/index.ts +4 -0
  32. package/src/gen/playground/queryOptions.gen.ts +119 -0
  33. package/src/gen/support/index.ts +1 -1
  34. package/src/gen/support/queryOptions.gen.ts +12 -0
  35. package/src/gen/types.gen.ts +441 -0
@@ -8,7 +8,9 @@ import type {
8
8
  SupportAgentListOutput,
9
9
  SupportAgentUpdateInput,
10
10
  SupportAttachmentCreateInput,
11
+ SupportAttachmentDeleteInput,
11
12
  SupportAttachmentFinalizeInput,
13
+ SupportAttachmentPurgeInput,
12
14
  SupportLabelCreateInput,
13
15
  SupportLabelGetInput,
14
16
  SupportLabelGetOutput,
@@ -100,11 +102,21 @@ export const supportAttachmentCreateMutationOptions = (sdk: GeneratedClient) =>
100
102
  mutationFn: (input: SupportAttachmentCreateInput) => sdk['support']['attachment']['create'](input),
101
103
  });
102
104
 
105
+ export const supportAttachmentDeleteMutationOptions = (sdk: GeneratedClient) => ({
106
+ mutationKey: ['support', 'attachment', 'delete'],
107
+ mutationFn: (input: SupportAttachmentDeleteInput) => sdk['support']['attachment']['delete'](input),
108
+ });
109
+
103
110
  export const supportAttachmentFinalizeMutationOptions = (sdk: GeneratedClient) => ({
104
111
  mutationKey: ['support', 'attachment', 'finalize'],
105
112
  mutationFn: (input: SupportAttachmentFinalizeInput) => sdk['support']['attachment']['finalize'](input),
106
113
  });
107
114
 
115
+ export const supportAttachmentPurgeMutationOptions = (sdk: GeneratedClient) => ({
116
+ mutationKey: ['support', 'attachment', 'purge'],
117
+ mutationFn: (input: SupportAttachmentPurgeInput) => sdk['support']['attachment']['purge'](input),
118
+ });
119
+
108
120
  export const supportLabelCreateMutationOptions = (sdk: GeneratedClient) => ({
109
121
  mutationKey: ['support', 'label', 'create'],
110
122
  mutationFn: (input: SupportLabelCreateInput) => sdk['support']['label']['create'](input),
@@ -381277,6 +381277,378 @@ export interface OrganizationYoutubeInstallOutput {
381277
381277
  url: string
381278
381278
  }
381279
381279
 
381280
+ export interface PlaygroundAnalyticsOverviewInput {
381281
+ /**
381282
+ * Max records per entity in recent[]; omit for the endpoint default
381283
+ */
381284
+ limit?: number
381285
+ }
381286
+
381287
+ export interface PlaygroundAnalyticsOverviewOutput {
381288
+ ok: boolean
381289
+ minted: boolean
381290
+ overview?: unknown
381291
+ http_status: number
381292
+ }
381293
+
381294
+ export interface PlaygroundBillingEntitlementsInput {
381295
+
381296
+ }
381297
+
381298
+ export interface PlaygroundBillingEntitlementsOutput {
381299
+ ok: boolean
381300
+ minted: boolean
381301
+ http_status: number
381302
+ entitlements?: unknown
381303
+ }
381304
+
381305
+ export interface PlaygroundBillingRecordUsageInput {
381306
+ /**
381307
+ * Quantity of events to record against playground-events (SUM); defaults to 1
381308
+ */
381309
+ value?: number
381310
+ }
381311
+
381312
+ export interface PlaygroundBillingRecordUsageOutput {
381313
+ minted: boolean
381314
+ accepted: (number | null)
381315
+ recorded: boolean
381316
+ duplicates: (number | null)
381317
+ http_status: number
381318
+ }
381319
+
381320
+ export interface PlaygroundClickupCreateTaskInput {
381321
+ /**
381322
+ * Task title; defaults to a fixture label
381323
+ */
381324
+ name?: string
381325
+ /**
381326
+ * ClickUp list id; falls back to CLICKUP_TEST_LIST_ID
381327
+ */
381328
+ listId?: string
381329
+ }
381330
+
381331
+ export interface PlaygroundClickupCreateTaskOutput {
381332
+ minted: boolean
381333
+ task_id: (string | null)
381334
+ list_status: number
381335
+ vend_status: number
381336
+ clickup_status: number
381337
+ installation_count: number
381338
+ }
381339
+
381340
+ export interface PlaygroundClickupGetLastWebhookInput {
381341
+
381342
+ }
381343
+
381344
+ export type PlaygroundClickupGetLastWebhookOutput = ({
381345
+ payload: string
381346
+ event_id: string
381347
+ provider: string
381348
+ verified: boolean
381349
+ product_id: string
381350
+ occurred_at: string
381351
+ connector_id: string
381352
+ clickup_event: (string | null)
381353
+ receipt_count: number
381354
+ } | {
381355
+ found: false
381356
+ })
381357
+
381358
+ export interface PlaygroundClickupGetOverviewInput {
381359
+
381360
+ }
381361
+
381362
+ export interface PlaygroundClickupGetOverviewOutput {
381363
+ team: ({
381364
+ teamId: string
381365
+ teamName: string
381366
+ } | null)
381367
+ lists: PlaygroundClickupGetOverviewOutputItems[]
381368
+ tasks: {
381369
+ id: string
381370
+ name: string
381371
+ status: (string | null)
381372
+ }[]
381373
+ minted: boolean
381374
+ spaces: PlaygroundClickupGetOverviewOutputItems[]
381375
+ list_status: number
381376
+ vend_status: number
381377
+ lists_status: number
381378
+ tasks_status: number
381379
+ spaces_status: number
381380
+ folders_status: number
381381
+ installation_count: number
381382
+ }
381383
+ export interface PlaygroundClickupGetOverviewOutputItems {
381384
+ id: string
381385
+ name: string
381386
+ }
381387
+
381388
+ export interface PlaygroundEchoPingInput {
381389
+ /**
381390
+ * The text to echo back, 1–1024 characters
381391
+ */
381392
+ message: string
381393
+ }
381394
+
381395
+ export interface PlaygroundEchoPingOutput {
381396
+ /**
381397
+ * The message exactly as it was received
381398
+ */
381399
+ message: string
381400
+ /**
381401
+ * The product the call was resolved to
381402
+ */
381403
+ productId: string
381404
+ /**
381405
+ * ISO-8601 instant (UTC) at which the call reached the service
381406
+ */
381407
+ receivedAt: string
381408
+ }
381409
+
381410
+ export interface PlaygroundGdriveGetLastChangeInput {
381411
+
381412
+ }
381413
+
381414
+ export type PlaygroundGdriveGetLastChangeOutput = ({
381415
+ file_id: string
381416
+ removed: boolean
381417
+ file_name: (string | null)
381418
+ mime_type: (string | null)
381419
+ product_id: string
381420
+ occurred_at: string
381421
+ connector_id: string
381422
+ resource_state: string
381423
+ } | {
381424
+ found: false
381425
+ })
381426
+
381427
+ export interface PlaygroundGdriveReadFileInput {
381428
+ /**
381429
+ * Drive file id; falls back to GDRIVE_TEST_FILE_ID, then the first picked file
381430
+ */
381431
+ fileId?: string
381432
+ }
381433
+
381434
+ export interface PlaygroundGdriveReadFileOutput {
381435
+ minted: boolean
381436
+ file_id: (string | null)
381437
+ file_name: (string | null)
381438
+ mime_type: (string | null)
381439
+ file_count: number
381440
+ get_status: number
381441
+ list_status: number
381442
+ vend_status: number
381443
+ content_bytes: (number | null)
381444
+ }
381445
+
381446
+ export interface PlaygroundGoogleadsReadCustomerInput {
381447
+
381448
+ }
381449
+
381450
+ export interface PlaygroundGoogleadsReadCustomerOutput {
381451
+ minted: boolean
381452
+ vended: boolean
381453
+ customer_id: (string | null)
381454
+ vend_status: number
381455
+ result_count: number
381456
+ search_status: number
381457
+ login_customer_id: (string | null)
381458
+ }
381459
+
381460
+ export interface PlaygroundLifecycleGetStateInput {
381461
+
381462
+ }
381463
+
381464
+ export interface PlaygroundLifecycleGetStateOutput {
381465
+ blocked: boolean
381466
+ archived: boolean
381467
+ productId: string
381468
+ lastBlockTransition: ({
381469
+ eventId: string
381470
+ eventName: string
381471
+ productId: string
381472
+ occurredAt: string
381473
+ recordedAt: string
381474
+ receiptCount: number
381475
+ organizationId: string
381476
+ cascadedFromOrg: boolean
381477
+ } | null)
381478
+ lastArchiveTransition: ({
381479
+ eventId: string
381480
+ eventName: string
381481
+ productId: string
381482
+ occurredAt: string
381483
+ recordedAt: string
381484
+ receiptCount: number
381485
+ organizationId: string
381486
+ cascadedFromOrg: boolean
381487
+ } | null)
381488
+ }
381489
+
381490
+ export interface PlaygroundLifecycleListEventsInput {
381491
+
381492
+ }
381493
+
381494
+ export type PlaygroundLifecycleListEventsOutput = {
381495
+ eventId: string
381496
+ eventName: string
381497
+ productId: string
381498
+ occurredAt: string
381499
+ recordedAt: string
381500
+ receiptCount: number
381501
+ organizationId: string
381502
+ cascadedFromOrg: boolean
381503
+ }[]
381504
+
381505
+ export interface PlaygroundWebhookGetLastInput {
381506
+
381507
+ }
381508
+
381509
+ export type PlaygroundWebhookGetLastOutput = ({
381510
+ payload?: unknown
381511
+ event_id: string
381512
+ provider: string
381513
+ verified: boolean
381514
+ product_id: string
381515
+ occurred_at: string
381516
+ connector_id: string
381517
+ delivery_count: number
381518
+ } | {
381519
+ found: false
381520
+ })
381521
+
381522
+ export interface PlaygroundWorkflowEchoInput {
381523
+ /**
381524
+ * The text to store, 1–1024 characters
381525
+ */
381526
+ note: string
381527
+ /**
381528
+ * Optional labels stored alongside the note, at most 20
381529
+ *
381530
+ * @maxItems 20
381531
+ */
381532
+ tags?: []|[string]|[string, string]|[string, string, string]|[string, string, string, string]|[string, string, string, string, string]|[string, string, string, string, string, string]|[string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string]
381533
+ }
381534
+
381535
+ export interface PlaygroundWorkflowEchoOutput {
381536
+ /**
381537
+ * Identifier of the stored echo
381538
+ */
381539
+ id: string
381540
+ /**
381541
+ * The note exactly as it was received
381542
+ */
381543
+ note: string
381544
+ /**
381545
+ * The tags exactly as they were received
381546
+ */
381547
+ tags: string[]
381548
+ /**
381549
+ * Correlation id for this echo. The playground/workflow.echoed event published about two seconds later repeats it, which is how a composer matches the completion back to this step.
381550
+ */
381551
+ echo_id: string
381552
+ /**
381553
+ * ISO-8601 instant (UTC) at which the echo was stored
381554
+ */
381555
+ received_at: string
381556
+ }
381557
+
381558
+ export interface PlaygroundWorkflowEchoListInput {
381559
+
381560
+ }
381561
+
381562
+ export type PlaygroundWorkflowEchoListOutput = {
381563
+ /**
381564
+ * Identifier of the stored echo
381565
+ */
381566
+ id: string
381567
+ /**
381568
+ * The note exactly as it was received
381569
+ */
381570
+ note: string
381571
+ /**
381572
+ * The tags exactly as they were received
381573
+ */
381574
+ tags: string[]
381575
+ /**
381576
+ * ISO-8601 instant (UTC) at which the echo was stored
381577
+ */
381578
+ received_at: string
381579
+ }[]
381580
+
381581
+ export interface PlaygroundWorkflowPingInput {
381582
+ /**
381583
+ * Class of ping, echoed on the emitted event and filterable on the trigger. Defaults to 'manual'.
381584
+ */
381585
+ kind?: string
381586
+ }
381587
+
381588
+ export interface PlaygroundWorkflowPingOutput {
381589
+ /**
381590
+ * Correlation id for this ping. The emitted playground/workflow.ping event repeats it, which is how a composer matches the event back to this step.
381591
+ */
381592
+ id: string
381593
+ /**
381594
+ * The name of the event that was published
381595
+ */
381596
+ event: string
381597
+ }
381598
+
381599
+ export interface PlaygroundWorkflowSubjectsListInput {
381600
+ /**
381601
+ * How many subjects to return, 1–100. Defaults to 25.
381602
+ */
381603
+ limit?: number
381604
+ /**
381605
+ * The next_cursor of the previous page. Opaque — pass it back unchanged. Omit for the first page.
381606
+ */
381607
+ cursor?: string
381608
+ /**
381609
+ * ISO-8601 UTC instant. Return only subjects whose last_activity_at is AT OR AFTER this — the opposite question, the recently active population. Omit for no lower bound.
381610
+ */
381611
+ last_activity_after?: string
381612
+ /**
381613
+ * ISO-8601 UTC instant. Return only subjects whose last_activity_at is AT OR BEFORE this — the "inactive for N days" question: pass now minus N days. Omit for no upper bound.
381614
+ */
381615
+ last_activity_before?: string
381616
+ }
381617
+
381618
+ export interface PlaygroundWorkflowSubjectsListOutput {
381619
+ /**
381620
+ * This page of subjects, most recently active first
381621
+ */
381622
+ items: {
381623
+ /**
381624
+ * Stable identifier for the subject. This is the field a batch trigger keys on, so a subject already served in an earlier run is skipped rather than served twice.
381625
+ */
381626
+ subject_key: string
381627
+ /**
381628
+ * Human-readable name of the subject
381629
+ */
381630
+ display_name: string
381631
+ /**
381632
+ * ISO-8601 instant (UTC) of the subject last activity
381633
+ */
381634
+ last_activity_at: string
381635
+ }[]
381636
+ /**
381637
+ * Whether another page follows. False and a null next_cursor both mark the last page, so a consumer that loops on either terminates.
381638
+ */
381639
+ has_more: boolean
381640
+ /**
381641
+ * Pass back as `cursor` to fetch the next page; null on the last page. Always null when has_more is false.
381642
+ */
381643
+ next_cursor: (string | null)
381644
+ }
381645
+
381646
+ export interface PlaygroundWsEchoInput {
381647
+
381648
+ }
381649
+
381650
+ export type PlaygroundWsEchoOutput = unknown;
381651
+
381280
381652
  export interface RealtimeArchiveExportInput {
381281
381653
  /**
381282
381654
  * Only entries with ts <= to_ts (epoch ms)
@@ -382481,6 +382853,32 @@ rejectedReason: (string | null)
382481
382853
  uploadExpiresAt: string
382482
382854
  }
382483
382855
 
382856
+ export interface SupportAttachmentDeleteInput {
382857
+ /**
382858
+ * The attachment to delete, as returned by the create call. It must not be carried by a message
382859
+ */
382860
+ id: string
382861
+ }
382862
+
382863
+ export interface SupportAttachmentDeleteOutput {
382864
+ /**
382865
+ * The attachment that was deleted
382866
+ */
382867
+ id: string
382868
+ /**
382869
+ * The state the attachment was in when it was deleted: pending, uploaded or rejected
382870
+ */
382871
+ status: ("pending" | "uploaded" | "rejected")
382872
+ /**
382873
+ * Thread the attachment belonged to
382874
+ */
382875
+ threadId: string
382876
+ /**
382877
+ * true when storage held the file and removed it; false when there was nothing to remove — a pending attachment whose bytes never arrived, or a rejected one whose file was already deleted at finalize
382878
+ */
382879
+ objectDestroyed: boolean
382880
+ }
382881
+
382484
382882
  export interface SupportAttachmentFinalizeInput {
382485
382883
  /**
382486
382884
  * The attachment whose upload should be confirmed, as returned by the create call
@@ -382535,6 +382933,49 @@ downloadUrl: string
382535
382933
  rejectedReason: (string | null)
382536
382934
  }
382537
382935
 
382936
+ export interface SupportAttachmentPurgeInput {
382937
+ /**
382938
+ * Thread whose attachments that no message carries should all be deleted
382939
+ */
382940
+ threadId: string
382941
+ }
382942
+
382943
+ export interface SupportAttachmentPurgeOutput {
382944
+ /**
382945
+ * Attachments deleted by this call, by the state they were in. Zeros on a repeat
382946
+ */
382947
+ deleted: {
382948
+ /**
382949
+ * Pending attachments deleted
382950
+ */
382951
+ pending: number
382952
+ /**
382953
+ * Rejected attachments deleted
382954
+ */
382955
+ rejected: number
382956
+ /**
382957
+ * Uploaded attachments deleted
382958
+ */
382959
+ uploaded: number
382960
+ }
382961
+ /**
382962
+ * The thread that was purged
382963
+ */
382964
+ threadId: string
382965
+ /**
382966
+ * Deleted attachments whose file storage no longer held, or never received
382967
+ */
382968
+ objectsMissing: number
382969
+ /**
382970
+ * Attachments of the thread carried by messages and therefore left alone. They are removed by deleting their message with support_message_delete or support_message_delete_any
382971
+ */
382972
+ skippedClaimed: number
382973
+ /**
382974
+ * Files storage held and removed
382975
+ */
382976
+ objectsDestroyed: number
382977
+ }
382978
+
382538
382979
  export interface SupportLabelCreateInput {
382539
382980
  /**
382540
382981
  * Label name as the customer wants to see it. Unique within the product