@lepsto/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
@@ -388351,6 +388351,332 @@ export interface OrganizationYoutubeInstallInput {
388351
388351
  export interface OrganizationYoutubeInstallOutput {
388352
388352
  url: string;
388353
388353
  }
388354
+ export interface PlaygroundAnalyticsOverviewInput {
388355
+ /**
388356
+ * Max records per entity in recent[]; omit for the endpoint default
388357
+ */
388358
+ limit?: number;
388359
+ }
388360
+ export interface PlaygroundAnalyticsOverviewOutput {
388361
+ ok: boolean;
388362
+ minted: boolean;
388363
+ overview?: unknown;
388364
+ http_status: number;
388365
+ }
388366
+ export interface PlaygroundBillingEntitlementsInput {
388367
+ }
388368
+ export interface PlaygroundBillingEntitlementsOutput {
388369
+ ok: boolean;
388370
+ minted: boolean;
388371
+ http_status: number;
388372
+ entitlements?: unknown;
388373
+ }
388374
+ export interface PlaygroundBillingRecordUsageInput {
388375
+ /**
388376
+ * Quantity of events to record against playground-events (SUM); defaults to 1
388377
+ */
388378
+ value?: number;
388379
+ }
388380
+ export interface PlaygroundBillingRecordUsageOutput {
388381
+ minted: boolean;
388382
+ accepted: (number | null);
388383
+ recorded: boolean;
388384
+ duplicates: (number | null);
388385
+ http_status: number;
388386
+ }
388387
+ export interface PlaygroundClickupCreateTaskInput {
388388
+ /**
388389
+ * Task title; defaults to a fixture label
388390
+ */
388391
+ name?: string;
388392
+ /**
388393
+ * ClickUp list id; falls back to CLICKUP_TEST_LIST_ID
388394
+ */
388395
+ listId?: string;
388396
+ }
388397
+ export interface PlaygroundClickupCreateTaskOutput {
388398
+ minted: boolean;
388399
+ task_id: (string | null);
388400
+ list_status: number;
388401
+ vend_status: number;
388402
+ clickup_status: number;
388403
+ installation_count: number;
388404
+ }
388405
+ export interface PlaygroundClickupGetLastWebhookInput {
388406
+ }
388407
+ export type PlaygroundClickupGetLastWebhookOutput = ({
388408
+ payload: string;
388409
+ event_id: string;
388410
+ provider: string;
388411
+ verified: boolean;
388412
+ product_id: string;
388413
+ occurred_at: string;
388414
+ connector_id: string;
388415
+ clickup_event: (string | null);
388416
+ receipt_count: number;
388417
+ } | {
388418
+ found: false;
388419
+ });
388420
+ export interface PlaygroundClickupGetOverviewInput {
388421
+ }
388422
+ export interface PlaygroundClickupGetOverviewOutput {
388423
+ team: ({
388424
+ teamId: string;
388425
+ teamName: string;
388426
+ } | null);
388427
+ lists: PlaygroundClickupGetOverviewOutputItems[];
388428
+ tasks: {
388429
+ id: string;
388430
+ name: string;
388431
+ status: (string | null);
388432
+ }[];
388433
+ minted: boolean;
388434
+ spaces: PlaygroundClickupGetOverviewOutputItems[];
388435
+ list_status: number;
388436
+ vend_status: number;
388437
+ lists_status: number;
388438
+ tasks_status: number;
388439
+ spaces_status: number;
388440
+ folders_status: number;
388441
+ installation_count: number;
388442
+ }
388443
+ export interface PlaygroundClickupGetOverviewOutputItems {
388444
+ id: string;
388445
+ name: string;
388446
+ }
388447
+ export interface PlaygroundEchoPingInput {
388448
+ /**
388449
+ * The text to echo back, 1–1024 characters
388450
+ */
388451
+ message: string;
388452
+ }
388453
+ export interface PlaygroundEchoPingOutput {
388454
+ /**
388455
+ * The message exactly as it was received
388456
+ */
388457
+ message: string;
388458
+ /**
388459
+ * The product the call was resolved to
388460
+ */
388461
+ productId: string;
388462
+ /**
388463
+ * ISO-8601 instant (UTC) at which the call reached the service
388464
+ */
388465
+ receivedAt: string;
388466
+ }
388467
+ export interface PlaygroundGdriveGetLastChangeInput {
388468
+ }
388469
+ export type PlaygroundGdriveGetLastChangeOutput = ({
388470
+ file_id: string;
388471
+ removed: boolean;
388472
+ file_name: (string | null);
388473
+ mime_type: (string | null);
388474
+ product_id: string;
388475
+ occurred_at: string;
388476
+ connector_id: string;
388477
+ resource_state: string;
388478
+ } | {
388479
+ found: false;
388480
+ });
388481
+ export interface PlaygroundGdriveReadFileInput {
388482
+ /**
388483
+ * Drive file id; falls back to GDRIVE_TEST_FILE_ID, then the first picked file
388484
+ */
388485
+ fileId?: string;
388486
+ }
388487
+ export interface PlaygroundGdriveReadFileOutput {
388488
+ minted: boolean;
388489
+ file_id: (string | null);
388490
+ file_name: (string | null);
388491
+ mime_type: (string | null);
388492
+ file_count: number;
388493
+ get_status: number;
388494
+ list_status: number;
388495
+ vend_status: number;
388496
+ content_bytes: (number | null);
388497
+ }
388498
+ export interface PlaygroundGoogleadsReadCustomerInput {
388499
+ }
388500
+ export interface PlaygroundGoogleadsReadCustomerOutput {
388501
+ minted: boolean;
388502
+ vended: boolean;
388503
+ customer_id: (string | null);
388504
+ vend_status: number;
388505
+ result_count: number;
388506
+ search_status: number;
388507
+ login_customer_id: (string | null);
388508
+ }
388509
+ export interface PlaygroundLifecycleGetStateInput {
388510
+ }
388511
+ export interface PlaygroundLifecycleGetStateOutput {
388512
+ blocked: boolean;
388513
+ archived: boolean;
388514
+ productId: string;
388515
+ lastBlockTransition: ({
388516
+ eventId: string;
388517
+ eventName: string;
388518
+ productId: string;
388519
+ occurredAt: string;
388520
+ recordedAt: string;
388521
+ receiptCount: number;
388522
+ organizationId: string;
388523
+ cascadedFromOrg: boolean;
388524
+ } | null);
388525
+ lastArchiveTransition: ({
388526
+ eventId: string;
388527
+ eventName: string;
388528
+ productId: string;
388529
+ occurredAt: string;
388530
+ recordedAt: string;
388531
+ receiptCount: number;
388532
+ organizationId: string;
388533
+ cascadedFromOrg: boolean;
388534
+ } | null);
388535
+ }
388536
+ export interface PlaygroundLifecycleListEventsInput {
388537
+ }
388538
+ export type PlaygroundLifecycleListEventsOutput = {
388539
+ eventId: string;
388540
+ eventName: string;
388541
+ productId: string;
388542
+ occurredAt: string;
388543
+ recordedAt: string;
388544
+ receiptCount: number;
388545
+ organizationId: string;
388546
+ cascadedFromOrg: boolean;
388547
+ }[];
388548
+ export interface PlaygroundWebhookGetLastInput {
388549
+ }
388550
+ export type PlaygroundWebhookGetLastOutput = ({
388551
+ payload?: unknown;
388552
+ event_id: string;
388553
+ provider: string;
388554
+ verified: boolean;
388555
+ product_id: string;
388556
+ occurred_at: string;
388557
+ connector_id: string;
388558
+ delivery_count: number;
388559
+ } | {
388560
+ found: false;
388561
+ });
388562
+ export interface PlaygroundWorkflowEchoInput {
388563
+ /**
388564
+ * The text to store, 1–1024 characters
388565
+ */
388566
+ note: string;
388567
+ /**
388568
+ * Optional labels stored alongside the note, at most 20
388569
+ *
388570
+ * @maxItems 20
388571
+ */
388572
+ 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];
388573
+ }
388574
+ export interface PlaygroundWorkflowEchoOutput {
388575
+ /**
388576
+ * Identifier of the stored echo
388577
+ */
388578
+ id: string;
388579
+ /**
388580
+ * The note exactly as it was received
388581
+ */
388582
+ note: string;
388583
+ /**
388584
+ * The tags exactly as they were received
388585
+ */
388586
+ tags: string[];
388587
+ /**
388588
+ * 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.
388589
+ */
388590
+ echo_id: string;
388591
+ /**
388592
+ * ISO-8601 instant (UTC) at which the echo was stored
388593
+ */
388594
+ received_at: string;
388595
+ }
388596
+ export interface PlaygroundWorkflowEchoListInput {
388597
+ }
388598
+ export type PlaygroundWorkflowEchoListOutput = {
388599
+ /**
388600
+ * Identifier of the stored echo
388601
+ */
388602
+ id: string;
388603
+ /**
388604
+ * The note exactly as it was received
388605
+ */
388606
+ note: string;
388607
+ /**
388608
+ * The tags exactly as they were received
388609
+ */
388610
+ tags: string[];
388611
+ /**
388612
+ * ISO-8601 instant (UTC) at which the echo was stored
388613
+ */
388614
+ received_at: string;
388615
+ }[];
388616
+ export interface PlaygroundWorkflowPingInput {
388617
+ /**
388618
+ * Class of ping, echoed on the emitted event and filterable on the trigger. Defaults to 'manual'.
388619
+ */
388620
+ kind?: string;
388621
+ }
388622
+ export interface PlaygroundWorkflowPingOutput {
388623
+ /**
388624
+ * 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.
388625
+ */
388626
+ id: string;
388627
+ /**
388628
+ * The name of the event that was published
388629
+ */
388630
+ event: string;
388631
+ }
388632
+ export interface PlaygroundWorkflowSubjectsListInput {
388633
+ /**
388634
+ * How many subjects to return, 1–100. Defaults to 25.
388635
+ */
388636
+ limit?: number;
388637
+ /**
388638
+ * The next_cursor of the previous page. Opaque — pass it back unchanged. Omit for the first page.
388639
+ */
388640
+ cursor?: string;
388641
+ /**
388642
+ * 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.
388643
+ */
388644
+ last_activity_after?: string;
388645
+ /**
388646
+ * 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.
388647
+ */
388648
+ last_activity_before?: string;
388649
+ }
388650
+ export interface PlaygroundWorkflowSubjectsListOutput {
388651
+ /**
388652
+ * This page of subjects, most recently active first
388653
+ */
388654
+ items: {
388655
+ /**
388656
+ * 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.
388657
+ */
388658
+ subject_key: string;
388659
+ /**
388660
+ * Human-readable name of the subject
388661
+ */
388662
+ display_name: string;
388663
+ /**
388664
+ * ISO-8601 instant (UTC) of the subject last activity
388665
+ */
388666
+ last_activity_at: string;
388667
+ }[];
388668
+ /**
388669
+ * Whether another page follows. False and a null next_cursor both mark the last page, so a consumer that loops on either terminates.
388670
+ */
388671
+ has_more: boolean;
388672
+ /**
388673
+ * Pass back as `cursor` to fetch the next page; null on the last page. Always null when has_more is false.
388674
+ */
388675
+ next_cursor: (string | null);
388676
+ }
388677
+ export interface PlaygroundWsEchoInput {
388678
+ }
388679
+ export type PlaygroundWsEchoOutput = unknown;
388354
388680
  export interface RealtimeArchiveExportInput {
388355
388681
  /**
388356
388682
  * Only entries with ts <= to_ts (epoch ms)
@@ -389485,6 +389811,30 @@ export interface SupportAttachmentCreateOutput {
389485
389811
  */
389486
389812
  uploadExpiresAt: string;
389487
389813
  }
389814
+ export interface SupportAttachmentDeleteInput {
389815
+ /**
389816
+ * The attachment to delete, as returned by the create call. It must not be carried by a message
389817
+ */
389818
+ id: string;
389819
+ }
389820
+ export interface SupportAttachmentDeleteOutput {
389821
+ /**
389822
+ * The attachment that was deleted
389823
+ */
389824
+ id: string;
389825
+ /**
389826
+ * The state the attachment was in when it was deleted: pending, uploaded or rejected
389827
+ */
389828
+ status: ("pending" | "uploaded" | "rejected");
389829
+ /**
389830
+ * Thread the attachment belonged to
389831
+ */
389832
+ threadId: string;
389833
+ /**
389834
+ * 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
389835
+ */
389836
+ objectDestroyed: boolean;
389837
+ }
389488
389838
  export interface SupportAttachmentFinalizeInput {
389489
389839
  /**
389490
389840
  * The attachment whose upload should be confirmed, as returned by the create call
@@ -389537,6 +389887,47 @@ export interface SupportAttachmentFinalizeOutput {
389537
389887
  */
389538
389888
  rejectedReason: (string | null);
389539
389889
  }
389890
+ export interface SupportAttachmentPurgeInput {
389891
+ /**
389892
+ * Thread whose attachments that no message carries should all be deleted
389893
+ */
389894
+ threadId: string;
389895
+ }
389896
+ export interface SupportAttachmentPurgeOutput {
389897
+ /**
389898
+ * Attachments deleted by this call, by the state they were in. Zeros on a repeat
389899
+ */
389900
+ deleted: {
389901
+ /**
389902
+ * Pending attachments deleted
389903
+ */
389904
+ pending: number;
389905
+ /**
389906
+ * Rejected attachments deleted
389907
+ */
389908
+ rejected: number;
389909
+ /**
389910
+ * Uploaded attachments deleted
389911
+ */
389912
+ uploaded: number;
389913
+ };
389914
+ /**
389915
+ * The thread that was purged
389916
+ */
389917
+ threadId: string;
389918
+ /**
389919
+ * Deleted attachments whose file storage no longer held, or never received
389920
+ */
389921
+ objectsMissing: number;
389922
+ /**
389923
+ * 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
389924
+ */
389925
+ skippedClaimed: number;
389926
+ /**
389927
+ * Files storage held and removed
389928
+ */
389929
+ objectsDestroyed: number;
389930
+ }
389540
389931
  export interface SupportLabelCreateInput {
389541
389932
  /**
389542
389933
  * Label name as the customer wants to see it. Unique within the product