@lepsto/sdk-app 84.0.0 → 85.0.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 (36) hide show
  1. package/dist/_types/gen/client.gen.d.ts +38 -18
  2. package/dist/_types/gen/manifest.gen.d.ts +1 -1
  3. package/dist/_types/gen/playground/connect.gen.d.ts +3 -0
  4. package/dist/_types/gen/playground/index.d.ts +3 -0
  5. package/dist/_types/gen/playground/queryOptions.gen.d.ts +70 -0
  6. package/dist/_types/gen/types.gen.d.ts +1948 -212
  7. package/dist/chunk-HRKHYP5B.js +11397 -0
  8. package/dist/chunk-HRKHYP5B.js.map +1 -0
  9. package/dist/index.cjs +236 -176
  10. package/dist/index.cjs.map +1 -1
  11. package/dist/index.js +31 -11354
  12. package/dist/index.js.map +1 -1
  13. package/dist/playground/index.cjs +106 -0
  14. package/dist/playground/index.cjs.map +1 -0
  15. package/dist/playground/index.d.cts +1 -0
  16. package/dist/playground/index.d.ts +1 -0
  17. package/dist/playground/index.js +78 -0
  18. package/dist/playground/index.js.map +1 -0
  19. package/package.json +12 -12
  20. package/src/gen/bindings.gen.ts +216 -150
  21. package/src/gen/client.gen.ts +71 -31
  22. package/src/gen/manifest.gen.ts +30 -28
  23. package/src/gen/playground/connect.gen.ts +9 -0
  24. package/src/gen/playground/index.ts +4 -0
  25. package/src/gen/playground/queryOptions.gen.ts +119 -0
  26. package/src/gen/types.gen.ts +1977 -211
  27. package/dist/_types/gen/waitlist/index.d.ts +0 -2
  28. package/dist/_types/gen/waitlist/queryOptions.gen.d.ts +0 -30
  29. package/dist/waitlist/index.cjs +0 -41
  30. package/dist/waitlist/index.cjs.map +0 -1
  31. package/dist/waitlist/index.d.cts +0 -1
  32. package/dist/waitlist/index.d.ts +0 -1
  33. package/dist/waitlist/index.js +0 -33
  34. package/dist/waitlist/index.js.map +0 -1
  35. package/src/gen/waitlist/index.ts +0 -3
  36. package/src/gen/waitlist/queryOptions.gen.ts +0 -50
@@ -1,7 +1,7 @@
1
1
  // AUTOGENERATED by scripts/generate.ts — do not edit.
2
2
  import type { ToolLevel, ToolComposition } from '../runtime/types';
3
3
 
4
- export const namespaces = ['analytics', 'brain', 'consent', 'content', 'deployment', 'mail', 'observe', 'organization', 'realtime', 'support', 'tracking', 'users', 'waitlist', 'workflow'] as const;
4
+ export const namespaces = ['analytics', 'brain', 'consent', 'content', 'deployment', 'mail', 'observe', 'organization', 'playground', 'realtime', 'support', 'tracking', 'users', 'workflow'] as const;
5
5
 
6
6
  export const operations: Record<string, ToolLevel> = {
7
7
  'analytics_catalog_get': 'read',
@@ -394,6 +394,23 @@ export const operations: Record<string, ToolLevel> = {
394
394
  'organization_support_threads_list': 'read',
395
395
  'organization_x_install': 'read',
396
396
  'organization_youtube_install': 'read',
397
+ 'playground_analytics_overview': 'read',
398
+ 'playground_billing_entitlements': 'read',
399
+ 'playground_billing_record-usage': 'write',
400
+ 'playground_clickup_create-task': 'write',
401
+ 'playground_clickup_get-last-webhook': 'read',
402
+ 'playground_clickup_get-overview': 'read',
403
+ 'playground_echo_ping': 'read',
404
+ 'playground_gdrive_get-last-change': 'read',
405
+ 'playground_gdrive_read-file': 'read',
406
+ 'playground_googleads_read-customer': 'read',
407
+ 'playground_lifecycle_get-state': 'read',
408
+ 'playground_lifecycle_list-events': 'read',
409
+ 'playground_webhook_get-last': 'read',
410
+ 'playground_workflow_echo': 'write',
411
+ 'playground_workflow_echo-list': 'read',
412
+ 'playground_workflow_ping': 'write',
413
+ 'playground_workflow_subjects-list': 'read',
397
414
  'realtime_archive_export': 'admin',
398
415
  'realtime_archive_export_status': 'read',
399
416
  'realtime_archive_get': 'read',
@@ -555,13 +572,6 @@ export const operations: Record<string, ToolLevel> = {
555
572
  'users_webhooks_list': 'read',
556
573
  'users_webhooks_rotate_secret': 'admin',
557
574
  'users_webhooks_update': 'write',
558
- 'waitlist_config_get': 'read',
559
- 'waitlist_config_upsert': 'write',
560
- 'waitlist_embed_get': 'read',
561
- 'waitlist_invites_send': 'write',
562
- 'waitlist_signups_erase': 'write',
563
- 'waitlist_signups_funnel': 'read',
564
- 'waitlist_signups_list': 'read',
565
575
  'workflow_cap_list': 'read',
566
576
  'workflow_capability_get': 'read',
567
577
  'workflow_capability_list': 'read',
@@ -674,6 +684,9 @@ export const compositions: Record<string, ToolComposition> = {
674
684
  'mail_template_publish': {"label":"Publish template","options":{"id":"mail_template_list"}},
675
685
  'mail_template_update': {"label":"Update template","options":{"id":"mail_template_list"}},
676
686
  'mail_usage_get': {"label":"Get usage"},
687
+ 'playground_workflow_echo': {"pii":["input.note","output.note"],"label":"Store workflow echo","completion_event":"playground/workflow.echoed"},
688
+ 'playground_workflow_ping': {"label":"Fire workflow ping","completion_event":"playground/workflow.ping"},
689
+ 'playground_workflow_subjects-list': {"pii":["output.items[].display_name"],"label":"List workflow subjects"},
677
690
  'support_agent_create': {"pii":["input.lesslyUserId","output.lesslyUserId"],"label":"Create agent"},
678
691
  'support_agent_get': {"pii":["output.lesslyUserId"],"label":"Get agent","options":{"id":"support_agent_list"}},
679
692
  'support_agent_list': {"pii":["output.agents[].lesslyUserId"],"label":"List agents"},
@@ -714,41 +727,30 @@ export const compositions: Record<string, ToolComposition> = {
714
727
  '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"}},
715
728
  '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"}},
716
729
  '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"}},
717
- 'tracking_domains_create': {"label":"Claim tracking host","options":{"domainId":"tracking_domains_list"}},
718
- 'tracking_domains_delete': {"label":"Release domain binding","options":{"bindingId":"tracking_domains_list"}},
719
730
  'tracking_domains_get': {"label":"Get domain binding","options":{"bindingId":"tracking_domains_list"}},
720
731
  'tracking_domains_list': {"label":"List tracking domains"},
721
- 'tracking_domains_verify': {"label":"Verify domain binding","options":{"bindingId":"tracking_domains_list"},"completion_event":"tracking/domain.verification-completed"},
722
- 'tracking_event-names_archive': {"label":"Archive event name","options":{"name":"tracking_event-names_list"}},
723
732
  'tracking_event-names_list': {"label":"List event names"},
724
- 'tracking_event-names_set-conversion': {"label":"Mark event as workflow trigger","options":{"name":"tracking_event-names_list"}},
725
- 'tracking_event-names_unarchive': {"label":"Unarchive event name","options":{"name":"tracking_event-names_list"}},
726
- 'tracking_googleads_connection_status': {"label":"Google Ads connection status"},
733
+ 'tracking_googleads_connection_status': {"label":"Check Google Ads connection"},
727
734
  'tracking_googleads_conversion_actions': {"label":"List Google conversion actions"},
728
735
  'tracking_googleads_feedback_config_get': {"label":"Get conversion-feedback config"},
729
- 'tracking_googleads_feedback_config_set': {"label":"Set conversion-feedback config","options":{"rules[].event":"tracking_event-names_list","rules[].conversionAction":"tracking_googleads_conversion_actions"}},
730
736
  'tracking_googleads_feedback_run': {"label":"Run conversion-feedback upload","completion_event":"tracking/googleads.feedback-completed"},
731
- 'tracking_googleads_feedback_status': {"label":"Conversion-feedback status"},
732
- 'tracking_googleads_roas_report': {"label":"Google Ads ROAS report","options":{"domain":"tracking_install-domains_list"}},
737
+ 'tracking_googleads_feedback_status': {"label":"Check conversion-feedback status"},
738
+ 'tracking_googleads_roas_report': {"label":"Report Google Ads ROAS","options":{"domain":"tracking_install-domains_list"}},
733
739
  'tracking_googleads_sync_now': {"label":"Sync Google Ads data","completion_event":"tracking/googleads.sync-completed"},
734
- 'tracking_googleads_tracking_health': {"pii":["output.sampleUntaggedUrls"],"label":"Google Ads tracking health"},
735
- 'tracking_googleads_us_vs_platform': {"label":"Our data vs Google Ads","options":{"domain":"tracking_install-domains_list"}},
740
+ 'tracking_googleads_tracking_health': {"pii":["output.sampleUntaggedUrls"],"label":"Check Google Ads tracking health"},
741
+ 'tracking_googleads_us_vs_platform': {"label":"Compare our data with Google Ads","options":{"domain":"tracking_install-domains_list"}},
736
742
  'tracking_identity_health': {"label":"Identity match-rate health"},
737
- 'tracking_install-domains_create': {"label":"Register install domain"},
738
- 'tracking_install-domains_delete': {"label":"Unregister install domain","options":{"domain":"tracking_install-domains_list"}},
739
743
  'tracking_install-domains_list': {"label":"List install-verification domains"},
740
- 'tracking_link-domains_create': {"label":"Add domain to linking group"},
741
- 'tracking_link-domains_delete': {"label":"Remove domain from linking group","options":{"domain":"tracking_link-domains_list"}},
742
744
  'tracking_link-domains_list': {"label":"List cross-domain linking group"},
743
745
  '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"}},
744
746
  'tracking_profiles_delete': {"pii":["input.profileId","output.profileId"],"label":"Erase person (GDPR)","completion_event":"tracking/profile.erasure-completed"},
745
747
  '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"},
746
748
  '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"},
747
749
  'tracking_profiles_list': {"pii":["input.email","output.profiles[].profileId","output.profiles[].emails"],"label":"List people"},
748
- '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"},
749
- 'tracking_reports_event_volume': {"label":"Event volume report","options":{"domain":"tracking_install-domains_list"}},
750
- 'tracking_reports_revenue_by_source': {"label":"Revenue by source","options":{"domain":"tracking_install-domains_list"}},
751
- 'tracking_reports_source_people': {"pii":["output.people[].profileId"],"label":"People behind a source","options":{"domain":"tracking_install-domains_list"}},
750
+ '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"},
751
+ 'tracking_reports_event_volume': {"label":"Report event volume","options":{"domain":"tracking_install-domains_list"}},
752
+ 'tracking_reports_revenue_by_source': {"label":"Report revenue by source","options":{"domain":"tracking_install-domains_list"}},
753
+ 'tracking_reports_source_people': {"pii":["output.people[].profileId"],"label":"List people behind a source","options":{"domain":"tracking_install-domains_list"}},
752
754
  'tracking_snippets_get': {"label":"Get tracking snippet"},
753
755
  'users_apikeys_create': {"label":"Create API key","secrets":["output.key"]},
754
756
  'users_apikeys_get': {"label":"Get API key","options":{"id":"users_apikeys_list"}},
@@ -0,0 +1,9 @@
1
+ // AUTOGENERATED by scripts/generate.ts — do not edit.
2
+ import { wsBindings } from '../bindings.gen';
3
+ import type { LesslyStream, LesslyStreamOpener } from '../../runtime/types';
4
+ import type {
5
+ PlaygroundWsEchoInput,
6
+ } from '../types.gen';
7
+
8
+ export const playgroundWsEchoConnect = (sdk: LesslyStreamOpener, input: PlaygroundWsEchoInput): LesslyStream =>
9
+ sdk.openStream(wsBindings['playground']!['ws']!['echo']!, input as Record<string, unknown>);
@@ -0,0 +1,4 @@
1
+ // AUTOGENERATED by scripts/generate.ts — do not edit.
2
+ export * from './queryOptions.gen';
3
+ export * from './connect.gen';
4
+ export type { PlaygroundAnalyticsOverviewInput, PlaygroundAnalyticsOverviewOutput, PlaygroundBillingEntitlementsInput, PlaygroundBillingEntitlementsOutput, PlaygroundBillingRecordUsageInput, PlaygroundBillingRecordUsageOutput, PlaygroundClickupCreateTaskInput, PlaygroundClickupCreateTaskOutput, PlaygroundClickupGetLastWebhookInput, PlaygroundClickupGetLastWebhookOutput, PlaygroundClickupGetOverviewInput, PlaygroundClickupGetOverviewOutput, PlaygroundEchoPingInput, PlaygroundEchoPingOutput, PlaygroundGdriveGetLastChangeInput, PlaygroundGdriveGetLastChangeOutput, PlaygroundGdriveReadFileInput, PlaygroundGdriveReadFileOutput, PlaygroundGoogleadsReadCustomerInput, PlaygroundGoogleadsReadCustomerOutput, PlaygroundLifecycleGetStateInput, PlaygroundLifecycleGetStateOutput, PlaygroundLifecycleListEventsInput, PlaygroundLifecycleListEventsOutput, PlaygroundWebhookGetLastInput, PlaygroundWebhookGetLastOutput, PlaygroundWorkflowEchoInput, PlaygroundWorkflowEchoListInput, PlaygroundWorkflowEchoListOutput, PlaygroundWorkflowEchoOutput, PlaygroundWorkflowPingInput, PlaygroundWorkflowPingOutput, PlaygroundWorkflowSubjectsListInput, PlaygroundWorkflowSubjectsListOutput, PlaygroundWsEchoInput } from '../types.gen';
@@ -0,0 +1,119 @@
1
+ // AUTOGENERATED by scripts/generate.ts — do not edit.
2
+ import type { GeneratedClient } from '../client.gen';
3
+ import type {
4
+ PlaygroundAnalyticsOverviewInput,
5
+ PlaygroundAnalyticsOverviewOutput,
6
+ PlaygroundBillingEntitlementsInput,
7
+ PlaygroundBillingEntitlementsOutput,
8
+ PlaygroundBillingRecordUsageInput,
9
+ PlaygroundClickupCreateTaskInput,
10
+ PlaygroundClickupGetLastWebhookInput,
11
+ PlaygroundClickupGetLastWebhookOutput,
12
+ PlaygroundClickupGetOverviewInput,
13
+ PlaygroundClickupGetOverviewOutput,
14
+ PlaygroundEchoPingInput,
15
+ PlaygroundEchoPingOutput,
16
+ PlaygroundGdriveGetLastChangeInput,
17
+ PlaygroundGdriveGetLastChangeOutput,
18
+ PlaygroundGdriveReadFileInput,
19
+ PlaygroundGdriveReadFileOutput,
20
+ PlaygroundGoogleadsReadCustomerInput,
21
+ PlaygroundGoogleadsReadCustomerOutput,
22
+ PlaygroundLifecycleGetStateInput,
23
+ PlaygroundLifecycleGetStateOutput,
24
+ PlaygroundLifecycleListEventsInput,
25
+ PlaygroundLifecycleListEventsOutput,
26
+ PlaygroundWebhookGetLastInput,
27
+ PlaygroundWebhookGetLastOutput,
28
+ PlaygroundWorkflowEchoInput,
29
+ PlaygroundWorkflowEchoListInput,
30
+ PlaygroundWorkflowEchoListOutput,
31
+ PlaygroundWorkflowPingInput,
32
+ PlaygroundWorkflowSubjectsListInput,
33
+ PlaygroundWorkflowSubjectsListOutput,
34
+ } from '../types.gen';
35
+
36
+ export const playgroundAnalyticsOverviewQueryOptions = (sdk: GeneratedClient, input: PlaygroundAnalyticsOverviewInput) => ({
37
+ queryKey: ['playground', 'analytics', 'overview', input] as const,
38
+ queryFn: () => sdk['playground']['analytics']['overview'](input),
39
+ });
40
+
41
+ export const playgroundBillingEntitlementsQueryOptions = (sdk: GeneratedClient, input: PlaygroundBillingEntitlementsInput) => ({
42
+ queryKey: ['playground', 'billing', 'entitlements', input] as const,
43
+ queryFn: () => sdk['playground']['billing']['entitlements'](input),
44
+ });
45
+
46
+ export const playgroundBillingRecordUsageMutationOptions = (sdk: GeneratedClient) => ({
47
+ mutationKey: ['playground', 'billing', 'record-usage'],
48
+ mutationFn: (input: PlaygroundBillingRecordUsageInput) => sdk['playground']['billing']['record-usage'](input),
49
+ });
50
+
51
+ export const playgroundClickupCreateTaskMutationOptions = (sdk: GeneratedClient) => ({
52
+ mutationKey: ['playground', 'clickup', 'create-task'],
53
+ mutationFn: (input: PlaygroundClickupCreateTaskInput) => sdk['playground']['clickup']['create-task'](input),
54
+ });
55
+
56
+ export const playgroundClickupGetLastWebhookQueryOptions = (sdk: GeneratedClient, input: PlaygroundClickupGetLastWebhookInput) => ({
57
+ queryKey: ['playground', 'clickup', 'get-last-webhook', input] as const,
58
+ queryFn: () => sdk['playground']['clickup']['get-last-webhook'](input),
59
+ });
60
+
61
+ export const playgroundClickupGetOverviewQueryOptions = (sdk: GeneratedClient, input: PlaygroundClickupGetOverviewInput) => ({
62
+ queryKey: ['playground', 'clickup', 'get-overview', input] as const,
63
+ queryFn: () => sdk['playground']['clickup']['get-overview'](input),
64
+ });
65
+
66
+ export const playgroundEchoPingQueryOptions = (sdk: GeneratedClient, input: PlaygroundEchoPingInput) => ({
67
+ queryKey: ['playground', 'echo', 'ping', input] as const,
68
+ queryFn: () => sdk['playground']['echo']['ping'](input),
69
+ });
70
+
71
+ export const playgroundGdriveGetLastChangeQueryOptions = (sdk: GeneratedClient, input: PlaygroundGdriveGetLastChangeInput) => ({
72
+ queryKey: ['playground', 'gdrive', 'get-last-change', input] as const,
73
+ queryFn: () => sdk['playground']['gdrive']['get-last-change'](input),
74
+ });
75
+
76
+ export const playgroundGdriveReadFileQueryOptions = (sdk: GeneratedClient, input: PlaygroundGdriveReadFileInput) => ({
77
+ queryKey: ['playground', 'gdrive', 'read-file', input] as const,
78
+ queryFn: () => sdk['playground']['gdrive']['read-file'](input),
79
+ });
80
+
81
+ export const playgroundGoogleadsReadCustomerQueryOptions = (sdk: GeneratedClient, input: PlaygroundGoogleadsReadCustomerInput) => ({
82
+ queryKey: ['playground', 'googleads', 'read-customer', input] as const,
83
+ queryFn: () => sdk['playground']['googleads']['read-customer'](input),
84
+ });
85
+
86
+ export const playgroundLifecycleGetStateQueryOptions = (sdk: GeneratedClient, input: PlaygroundLifecycleGetStateInput) => ({
87
+ queryKey: ['playground', 'lifecycle', 'get-state', input] as const,
88
+ queryFn: () => sdk['playground']['lifecycle']['get-state'](input),
89
+ });
90
+
91
+ export const playgroundLifecycleListEventsQueryOptions = (sdk: GeneratedClient, input: PlaygroundLifecycleListEventsInput) => ({
92
+ queryKey: ['playground', 'lifecycle', 'list-events', input] as const,
93
+ queryFn: () => sdk['playground']['lifecycle']['list-events'](input),
94
+ });
95
+
96
+ export const playgroundWebhookGetLastQueryOptions = (sdk: GeneratedClient, input: PlaygroundWebhookGetLastInput) => ({
97
+ queryKey: ['playground', 'webhook', 'get-last', input] as const,
98
+ queryFn: () => sdk['playground']['webhook']['get-last'](input),
99
+ });
100
+
101
+ export const playgroundWorkflowEchoMutationOptions = (sdk: GeneratedClient) => ({
102
+ mutationKey: ['playground', 'workflow', 'echo'],
103
+ mutationFn: (input: PlaygroundWorkflowEchoInput) => sdk['playground']['workflow']['echo'](input),
104
+ });
105
+
106
+ export const playgroundWorkflowEchoListQueryOptions = (sdk: GeneratedClient, input: PlaygroundWorkflowEchoListInput) => ({
107
+ queryKey: ['playground', 'workflow', 'echo-list', input] as const,
108
+ queryFn: () => sdk['playground']['workflow']['echo-list'](input),
109
+ });
110
+
111
+ export const playgroundWorkflowPingMutationOptions = (sdk: GeneratedClient) => ({
112
+ mutationKey: ['playground', 'workflow', 'ping'],
113
+ mutationFn: (input: PlaygroundWorkflowPingInput) => sdk['playground']['workflow']['ping'](input),
114
+ });
115
+
116
+ export const playgroundWorkflowSubjectsListQueryOptions = (sdk: GeneratedClient, input: PlaygroundWorkflowSubjectsListInput) => ({
117
+ queryKey: ['playground', 'workflow', 'subjects-list', input] as const,
118
+ queryFn: () => sdk['playground']['workflow']['subjects-list'](input),
119
+ });