@lepsto/sdk-app 84.0.0 → 85.0.1

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/README.md +38 -6
  2. package/dist/_types/gen/client.gen.d.ts +38 -18
  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/types.gen.d.ts +1948 -212
  8. package/dist/chunk-HRKHYP5B.js +11397 -0
  9. package/dist/chunk-HRKHYP5B.js.map +1 -0
  10. package/dist/index.cjs +236 -176
  11. package/dist/index.cjs.map +1 -1
  12. package/dist/index.js +31 -11354
  13. package/dist/index.js.map +1 -1
  14. package/dist/playground/index.cjs +106 -0
  15. package/dist/playground/index.cjs.map +1 -0
  16. package/dist/playground/index.d.cts +1 -0
  17. package/dist/playground/index.d.ts +1 -0
  18. package/dist/playground/index.js +78 -0
  19. package/dist/playground/index.js.map +1 -0
  20. package/docs/README.md +6 -6
  21. package/docs/recipes/access.md +12 -12
  22. package/docs/recipes/local-dev.md +2 -2
  23. package/docs/recipes/sdk-usage.md +11 -11
  24. package/docs/rules.md +10 -10
  25. package/package.json +22 -12
  26. package/src/gen/bindings.gen.ts +216 -150
  27. package/src/gen/client.gen.ts +71 -31
  28. package/src/gen/manifest.gen.ts +30 -28
  29. package/src/gen/playground/connect.gen.ts +9 -0
  30. package/src/gen/playground/index.ts +4 -0
  31. package/src/gen/playground/queryOptions.gen.ts +119 -0
  32. package/src/gen/types.gen.ts +1977 -211
  33. package/dist/_types/gen/waitlist/index.d.ts +0 -2
  34. package/dist/_types/gen/waitlist/queryOptions.gen.d.ts +0 -30
  35. package/dist/waitlist/index.cjs +0 -41
  36. package/dist/waitlist/index.cjs.map +0 -1
  37. package/dist/waitlist/index.d.cts +0 -1
  38. package/dist/waitlist/index.d.ts +0 -1
  39. package/dist/waitlist/index.js +0 -33
  40. package/dist/waitlist/index.js.map +0 -1
  41. package/src/gen/waitlist/index.ts +0 -3
  42. package/src/gen/waitlist/queryOptions.gen.ts +0 -50
package/dist/index.cjs CHANGED
@@ -7483,6 +7483,213 @@ var bindings = {
7483
7483
  }
7484
7484
  }
7485
7485
  },
7486
+ "playground": {
7487
+ "analytics": {
7488
+ "overview": {
7489
+ "level": "read",
7490
+ "method": "POST",
7491
+ "operationKey": "playground_analytics_overview",
7492
+ "params": [
7493
+ {
7494
+ "in": "body",
7495
+ "name": "limit"
7496
+ }
7497
+ ],
7498
+ "path": "/playground/analytics/overview",
7499
+ "readOnly": true
7500
+ }
7501
+ },
7502
+ "billing": {
7503
+ "entitlements": {
7504
+ "level": "read",
7505
+ "method": "POST",
7506
+ "operationKey": "playground_billing_entitlements",
7507
+ "path": "/playground/billing/entitlements",
7508
+ "readOnly": true
7509
+ },
7510
+ "record-usage": {
7511
+ "level": "write",
7512
+ "method": "POST",
7513
+ "operationKey": "playground_billing_record-usage",
7514
+ "params": [
7515
+ {
7516
+ "in": "body",
7517
+ "name": "value"
7518
+ }
7519
+ ],
7520
+ "path": "/playground/billing/usage",
7521
+ "readOnly": false
7522
+ }
7523
+ },
7524
+ "clickup": {
7525
+ "create-task": {
7526
+ "level": "write",
7527
+ "method": "POST",
7528
+ "operationKey": "playground_clickup_create-task",
7529
+ "params": [
7530
+ {
7531
+ "in": "body",
7532
+ "name": "listId"
7533
+ },
7534
+ {
7535
+ "in": "body",
7536
+ "name": "name"
7537
+ }
7538
+ ],
7539
+ "path": "/playground/clickup/tasks",
7540
+ "readOnly": false
7541
+ },
7542
+ "get-last-webhook": {
7543
+ "level": "read",
7544
+ "method": "GET",
7545
+ "operationKey": "playground_clickup_get-last-webhook",
7546
+ "path": "/playground/clickup/webhooks/last",
7547
+ "readOnly": true
7548
+ },
7549
+ "get-overview": {
7550
+ "level": "read",
7551
+ "method": "GET",
7552
+ "operationKey": "playground_clickup_get-overview",
7553
+ "path": "/playground/clickup/overview",
7554
+ "readOnly": true
7555
+ }
7556
+ },
7557
+ "echo": {
7558
+ "ping": {
7559
+ "level": "read",
7560
+ "method": "POST",
7561
+ "operationKey": "playground_echo_ping",
7562
+ "params": [
7563
+ {
7564
+ "in": "body",
7565
+ "name": "message"
7566
+ }
7567
+ ],
7568
+ "path": "/playground/echo/ping",
7569
+ "readOnly": true
7570
+ }
7571
+ },
7572
+ "gdrive": {
7573
+ "get-last-change": {
7574
+ "level": "read",
7575
+ "method": "GET",
7576
+ "operationKey": "playground_gdrive_get-last-change",
7577
+ "path": "/playground/gdrive/changes/last",
7578
+ "readOnly": true
7579
+ },
7580
+ "read-file": {
7581
+ "level": "read",
7582
+ "method": "POST",
7583
+ "operationKey": "playground_gdrive_read-file",
7584
+ "params": [
7585
+ {
7586
+ "in": "body",
7587
+ "name": "fileId"
7588
+ }
7589
+ ],
7590
+ "path": "/playground/gdrive/file",
7591
+ "readOnly": true
7592
+ }
7593
+ },
7594
+ "googleads": {
7595
+ "read-customer": {
7596
+ "level": "read",
7597
+ "method": "POST",
7598
+ "operationKey": "playground_googleads_read-customer",
7599
+ "path": "/playground/googleads/customer",
7600
+ "readOnly": true
7601
+ }
7602
+ },
7603
+ "lifecycle": {
7604
+ "get-state": {
7605
+ "level": "read",
7606
+ "method": "GET",
7607
+ "operationKey": "playground_lifecycle_get-state",
7608
+ "path": "/playground/lifecycle/state",
7609
+ "readOnly": true
7610
+ },
7611
+ "list-events": {
7612
+ "level": "read",
7613
+ "method": "GET",
7614
+ "operationKey": "playground_lifecycle_list-events",
7615
+ "path": "/playground/lifecycle/events",
7616
+ "readOnly": true
7617
+ }
7618
+ },
7619
+ "webhook": {
7620
+ "get-last": {
7621
+ "level": "read",
7622
+ "method": "GET",
7623
+ "operationKey": "playground_webhook_get-last",
7624
+ "path": "/playground/webhooks/last",
7625
+ "readOnly": true
7626
+ }
7627
+ },
7628
+ "workflow": {
7629
+ "echo": {
7630
+ "level": "write",
7631
+ "method": "POST",
7632
+ "operationKey": "playground_workflow_echo",
7633
+ "params": [
7634
+ {
7635
+ "in": "body",
7636
+ "name": "note"
7637
+ },
7638
+ {
7639
+ "in": "body",
7640
+ "name": "tags"
7641
+ }
7642
+ ],
7643
+ "path": "/playground/workflow/echo",
7644
+ "readOnly": false
7645
+ },
7646
+ "echo-list": {
7647
+ "level": "read",
7648
+ "method": "GET",
7649
+ "operationKey": "playground_workflow_echo-list",
7650
+ "path": "/playground/workflow/echoes",
7651
+ "readOnly": true
7652
+ },
7653
+ "ping": {
7654
+ "level": "write",
7655
+ "method": "POST",
7656
+ "operationKey": "playground_workflow_ping",
7657
+ "params": [
7658
+ {
7659
+ "in": "body",
7660
+ "name": "kind"
7661
+ }
7662
+ ],
7663
+ "path": "/playground/workflow/ping",
7664
+ "readOnly": false
7665
+ },
7666
+ "subjects-list": {
7667
+ "level": "read",
7668
+ "method": "GET",
7669
+ "operationKey": "playground_workflow_subjects-list",
7670
+ "params": [
7671
+ {
7672
+ "in": "query",
7673
+ "name": "last_activity_before"
7674
+ },
7675
+ {
7676
+ "in": "query",
7677
+ "name": "last_activity_after"
7678
+ },
7679
+ {
7680
+ "in": "query",
7681
+ "name": "limit"
7682
+ },
7683
+ {
7684
+ "in": "query",
7685
+ "name": "cursor"
7686
+ }
7687
+ ],
7688
+ "path": "/playground/workflow/subjects",
7689
+ "readOnly": true
7690
+ }
7691
+ }
7692
+ },
7486
7693
  "realtime": {
7487
7694
  "archive": {
7488
7695
  "export": {
@@ -10646,155 +10853,6 @@ var bindings = {
10646
10853
  }
10647
10854
  }
10648
10855
  },
10649
- "waitlist": {
10650
- "config": {
10651
- "get": {
10652
- "level": "read",
10653
- "method": "GET",
10654
- "operationKey": "waitlist_config_get",
10655
- "path": "/waitlist/config",
10656
- "readOnly": true
10657
- },
10658
- "upsert": {
10659
- "level": "write",
10660
- "method": "PUT",
10661
- "operationKey": "waitlist_config_upsert",
10662
- "params": [
10663
- {
10664
- "in": "body",
10665
- "name": "policyVersion"
10666
- },
10667
- {
10668
- "in": "body",
10669
- "name": "consentText"
10670
- },
10671
- {
10672
- "in": "body",
10673
- "name": "policyUrl"
10674
- },
10675
- {
10676
- "in": "body",
10677
- "name": "policyLabel"
10678
- },
10679
- {
10680
- "in": "body",
10681
- "name": "senderDomain"
10682
- },
10683
- {
10684
- "in": "body",
10685
- "name": "senderName"
10686
- },
10687
- {
10688
- "in": "body",
10689
- "name": "inviteTemplate"
10690
- },
10691
- {
10692
- "in": "body",
10693
- "name": "inviteSubject"
10694
- },
10695
- {
10696
- "in": "body",
10697
- "name": "siteBaseUrl"
10698
- }
10699
- ],
10700
- "path": "/waitlist/config",
10701
- "readOnly": false
10702
- }
10703
- },
10704
- "embed": {
10705
- "get": {
10706
- "level": "read",
10707
- "method": "GET",
10708
- "operationKey": "waitlist_embed_get",
10709
- "path": "/waitlist/embed",
10710
- "readOnly": true
10711
- }
10712
- },
10713
- "invites": {
10714
- "send": {
10715
- "level": "write",
10716
- "method": "POST",
10717
- "operationKey": "waitlist_invites_send",
10718
- "params": [
10719
- {
10720
- "in": "body",
10721
- "name": "emails"
10722
- },
10723
- {
10724
- "in": "body",
10725
- "name": "filter"
10726
- },
10727
- {
10728
- "in": "body",
10729
- "name": "force"
10730
- }
10731
- ],
10732
- "path": "/waitlist/invites/send",
10733
- "readOnly": false
10734
- }
10735
- },
10736
- "signups": {
10737
- "erase": {
10738
- "level": "write",
10739
- "method": "POST",
10740
- "operationKey": "waitlist_signups_erase",
10741
- "params": [
10742
- {
10743
- "in": "body",
10744
- "name": "email"
10745
- }
10746
- ],
10747
- "path": "/waitlist/erasure",
10748
- "readOnly": false
10749
- },
10750
- "funnel": {
10751
- "level": "read",
10752
- "method": "GET",
10753
- "operationKey": "waitlist_signups_funnel",
10754
- "params": [
10755
- {
10756
- "in": "query",
10757
- "name": "period"
10758
- }
10759
- ],
10760
- "path": "/waitlist/signups/stats",
10761
- "readOnly": true
10762
- },
10763
- "list": {
10764
- "level": "read",
10765
- "method": "GET",
10766
- "operationKey": "waitlist_signups_list",
10767
- "params": [
10768
- {
10769
- "in": "query",
10770
- "name": "status"
10771
- },
10772
- {
10773
- "in": "query",
10774
- "name": "fields"
10775
- },
10776
- {
10777
- "in": "query",
10778
- "name": "cursor"
10779
- },
10780
- {
10781
- "in": "query",
10782
- "name": "limit"
10783
- },
10784
- {
10785
- "in": "query",
10786
- "name": "order"
10787
- },
10788
- {
10789
- "in": "query",
10790
- "name": "q"
10791
- }
10792
- ],
10793
- "path": "/waitlist/signups",
10794
- "readOnly": true
10795
- }
10796
- }
10797
- },
10798
10856
  "workflow": {
10799
10857
  "cap": {
10800
10858
  "list": {
@@ -11932,6 +11990,23 @@ var operations = {
11932
11990
  "organization_support_threads_list": "read",
11933
11991
  "organization_x_install": "read",
11934
11992
  "organization_youtube_install": "read",
11993
+ "playground_analytics_overview": "read",
11994
+ "playground_billing_entitlements": "read",
11995
+ "playground_billing_record-usage": "write",
11996
+ "playground_clickup_create-task": "write",
11997
+ "playground_clickup_get-last-webhook": "read",
11998
+ "playground_clickup_get-overview": "read",
11999
+ "playground_echo_ping": "read",
12000
+ "playground_gdrive_get-last-change": "read",
12001
+ "playground_gdrive_read-file": "read",
12002
+ "playground_googleads_read-customer": "read",
12003
+ "playground_lifecycle_get-state": "read",
12004
+ "playground_lifecycle_list-events": "read",
12005
+ "playground_webhook_get-last": "read",
12006
+ "playground_workflow_echo": "write",
12007
+ "playground_workflow_echo-list": "read",
12008
+ "playground_workflow_ping": "write",
12009
+ "playground_workflow_subjects-list": "read",
11935
12010
  "realtime_archive_export": "admin",
11936
12011
  "realtime_archive_export_status": "read",
11937
12012
  "realtime_archive_get": "read",
@@ -12093,13 +12168,6 @@ var operations = {
12093
12168
  "users_webhooks_list": "read",
12094
12169
  "users_webhooks_rotate_secret": "admin",
12095
12170
  "users_webhooks_update": "write",
12096
- "waitlist_config_get": "read",
12097
- "waitlist_config_upsert": "write",
12098
- "waitlist_embed_get": "read",
12099
- "waitlist_invites_send": "write",
12100
- "waitlist_signups_erase": "write",
12101
- "waitlist_signups_funnel": "read",
12102
- "waitlist_signups_list": "read",
12103
12171
  "workflow_cap_list": "read",
12104
12172
  "workflow_capability_get": "read",
12105
12173
  "workflow_capability_list": "read",
@@ -12211,6 +12279,9 @@ var compositions = {
12211
12279
  "mail_template_publish": { "label": "Publish template", "options": { "id": "mail_template_list" } },
12212
12280
  "mail_template_update": { "label": "Update template", "options": { "id": "mail_template_list" } },
12213
12281
  "mail_usage_get": { "label": "Get usage" },
12282
+ "playground_workflow_echo": { "pii": ["input.note", "output.note"], "label": "Store workflow echo", "completion_event": "playground/workflow.echoed" },
12283
+ "playground_workflow_ping": { "label": "Fire workflow ping", "completion_event": "playground/workflow.ping" },
12284
+ "playground_workflow_subjects-list": { "pii": ["output.items[].display_name"], "label": "List workflow subjects" },
12214
12285
  "support_agent_create": { "pii": ["input.lesslyUserId", "output.lesslyUserId"], "label": "Create agent" },
12215
12286
  "support_agent_get": { "pii": ["output.lesslyUserId"], "label": "Get agent", "options": { "id": "support_agent_list" } },
12216
12287
  "support_agent_list": { "pii": ["output.agents[].lesslyUserId"], "label": "List agents" },
@@ -12251,41 +12322,30 @@ var compositions = {
12251
12322
  "support_thread_list": { "pii": ["input.authorExternalId", "output.threads[].title", "output.threads[].authorExternalId", "output.threads[].authorDisplay"], "label": "List support threads", "options": { "labelIds": "support_label_list", "statusId": "support_status_list", "assignedAgentId": "support_agent_list" } },
12252
12323
  "support_thread_status_set": { "pii": ["output.title", "output.authorExternalId", "output.authorDisplay"], "label": "Move support thread to status", "options": { "id": "support_thread_list", "statusId": "support_status_list" } },
12253
12324
  "support_thread_update": { "pii": ["input.title", "output.title", "output.authorExternalId", "output.authorDisplay"], "label": "Update support thread", "options": { "id": "support_thread_list", "labelIds": "support_label_list" } },
12254
- "tracking_domains_create": { "label": "Claim tracking host", "options": { "domainId": "tracking_domains_list" } },
12255
- "tracking_domains_delete": { "label": "Release domain binding", "options": { "bindingId": "tracking_domains_list" } },
12256
12325
  "tracking_domains_get": { "label": "Get domain binding", "options": { "bindingId": "tracking_domains_list" } },
12257
12326
  "tracking_domains_list": { "label": "List tracking domains" },
12258
- "tracking_domains_verify": { "label": "Verify domain binding", "options": { "bindingId": "tracking_domains_list" }, "completion_event": "tracking/domain.verification-completed" },
12259
- "tracking_event-names_archive": { "label": "Archive event name", "options": { "name": "tracking_event-names_list" } },
12260
12327
  "tracking_event-names_list": { "label": "List event names" },
12261
- "tracking_event-names_set-conversion": { "label": "Mark event as workflow trigger", "options": { "name": "tracking_event-names_list" } },
12262
- "tracking_event-names_unarchive": { "label": "Unarchive event name", "options": { "name": "tracking_event-names_list" } },
12263
- "tracking_googleads_connection_status": { "label": "Google Ads connection status" },
12328
+ "tracking_googleads_connection_status": { "label": "Check Google Ads connection" },
12264
12329
  "tracking_googleads_conversion_actions": { "label": "List Google conversion actions" },
12265
12330
  "tracking_googleads_feedback_config_get": { "label": "Get conversion-feedback config" },
12266
- "tracking_googleads_feedback_config_set": { "label": "Set conversion-feedback config", "options": { "rules[].event": "tracking_event-names_list", "rules[].conversionAction": "tracking_googleads_conversion_actions" } },
12267
12331
  "tracking_googleads_feedback_run": { "label": "Run conversion-feedback upload", "completion_event": "tracking/googleads.feedback-completed" },
12268
- "tracking_googleads_feedback_status": { "label": "Conversion-feedback status" },
12269
- "tracking_googleads_roas_report": { "label": "Google Ads ROAS report", "options": { "domain": "tracking_install-domains_list" } },
12332
+ "tracking_googleads_feedback_status": { "label": "Check conversion-feedback status" },
12333
+ "tracking_googleads_roas_report": { "label": "Report Google Ads ROAS", "options": { "domain": "tracking_install-domains_list" } },
12270
12334
  "tracking_googleads_sync_now": { "label": "Sync Google Ads data", "completion_event": "tracking/googleads.sync-completed" },
12271
- "tracking_googleads_tracking_health": { "pii": ["output.sampleUntaggedUrls"], "label": "Google Ads tracking health" },
12272
- "tracking_googleads_us_vs_platform": { "label": "Our data vs Google Ads", "options": { "domain": "tracking_install-domains_list" } },
12335
+ "tracking_googleads_tracking_health": { "pii": ["output.sampleUntaggedUrls"], "label": "Check Google Ads tracking health" },
12336
+ "tracking_googleads_us_vs_platform": { "label": "Compare our data with Google Ads", "options": { "domain": "tracking_install-domains_list" } },
12273
12337
  "tracking_identity_health": { "label": "Identity match-rate health" },
12274
- "tracking_install-domains_create": { "label": "Register install domain" },
12275
- "tracking_install-domains_delete": { "label": "Unregister install domain", "options": { "domain": "tracking_install-domains_list" } },
12276
12338
  "tracking_install-domains_list": { "label": "List install-verification domains" },
12277
- "tracking_link-domains_create": { "label": "Add domain to linking group" },
12278
- "tracking_link-domains_delete": { "label": "Remove domain from linking group", "options": { "domain": "tracking_link-domains_list" } },
12279
12339
  "tracking_link-domains_list": { "label": "List cross-domain linking group" },
12280
12340
  "tracking_live-events_list": { "pii": ["output.events[].anonymousId", "output.events[].url", "output.events[].title", "output.events[].source.referrer"], "label": "List live events", "options": { "domain": "tracking_install-domains_list" } },
12281
12341
  "tracking_profiles_delete": { "pii": ["input.profileId", "output.profileId"], "label": "Erase person (GDPR)", "completion_event": "tracking/profile.erasure-completed" },
12282
12342
  "tracking_profiles_export": { "pii": ["input.profileId", "output.profile.profileId", "output.signals.emails", "output.signals.phones", "output.signals.clickIds[].value", "output.journey[].url", "output.journey[].title", "output.journey[].referrer", "output.journey[].source.clickId"], "label": "Export person" },
12283
12343
  "tracking_profiles_get": { "pii": ["input.profileId", "output.profile.profileId", "output.signals.emails", "output.signals.phones", "output.signals.clickIds[].value", "output.journey.events[].url", "output.journey.events[].title", "output.journey.events[].referrer", "output.journey.events[].source.clickId"], "label": "Get person" },
12284
12344
  "tracking_profiles_list": { "pii": ["input.email", "output.profiles[].profileId", "output.profiles[].emails"], "label": "List people" },
12285
- "tracking_reports_attributed_journey": { "pii": ["input.profileId", "output.profileId", "output.journey.events[].url", "output.journey.events[].title", "output.journey.events[].referrer", "output.journey.events[].source.clickId"], "label": "Attributed journey" },
12286
- "tracking_reports_event_volume": { "label": "Event volume report", "options": { "domain": "tracking_install-domains_list" } },
12287
- "tracking_reports_revenue_by_source": { "label": "Revenue by source", "options": { "domain": "tracking_install-domains_list" } },
12288
- "tracking_reports_source_people": { "pii": ["output.people[].profileId"], "label": "People behind a source", "options": { "domain": "tracking_install-domains_list" } },
12345
+ "tracking_reports_attributed_journey": { "pii": ["input.profileId", "output.profileId", "output.journey.events[].url", "output.journey.events[].title", "output.journey.events[].referrer", "output.journey.events[].source.clickId"], "label": "Explain attributed journey" },
12346
+ "tracking_reports_event_volume": { "label": "Report event volume", "options": { "domain": "tracking_install-domains_list" } },
12347
+ "tracking_reports_revenue_by_source": { "label": "Report revenue by source", "options": { "domain": "tracking_install-domains_list" } },
12348
+ "tracking_reports_source_people": { "pii": ["output.people[].profileId"], "label": "List people behind a source", "options": { "domain": "tracking_install-domains_list" } },
12289
12349
  "tracking_snippets_get": { "label": "Get tracking snippet" },
12290
12350
  "users_apikeys_create": { "label": "Create API key", "secrets": ["output.key"] },
12291
12351
  "users_apikeys_get": { "label": "Get API key", "options": { "id": "users_apikeys_list" } },