@lessly/sdk-app 120.0.0 → 120.2.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 +7 -49
  2. package/dist/_types/gen/client.gen.d.ts +42 -1
  3. package/dist/_types/gen/deployment/index.d.ts +1 -1
  4. package/dist/_types/gen/deployment/queryOptions.gen.d.ts +9 -1
  5. package/dist/_types/gen/manifest.gen.d.ts +1 -1
  6. package/dist/_types/gen/playground/connect.gen.d.ts +3 -0
  7. package/dist/_types/gen/playground/index.d.ts +3 -0
  8. package/dist/_types/gen/playground/queryOptions.gen.d.ts +70 -0
  9. package/dist/_types/gen/types.gen.d.ts +498 -7
  10. package/dist/chunk-3QRFL3AM.js +12425 -0
  11. package/dist/chunk-3QRFL3AM.js.map +1 -0
  12. package/dist/deployment/index.cjs +10 -0
  13. package/dist/deployment/index.cjs.map +1 -1
  14. package/dist/deployment/index.js +9 -1
  15. package/dist/deployment/index.js.map +1 -1
  16. package/dist/index.cjs +252 -45
  17. package/dist/index.cjs.map +1 -1
  18. package/dist/index.js +24 -12228
  19. package/dist/index.js.map +1 -1
  20. package/dist/playground/index.cjs +106 -0
  21. package/dist/playground/index.cjs.map +1 -0
  22. package/dist/playground/index.d.cts +1 -0
  23. package/dist/playground/index.d.ts +1 -0
  24. package/dist/playground/index.js +78 -0
  25. package/dist/playground/index.js.map +1 -0
  26. package/package.json +12 -2
  27. package/src/gen/bindings.gen.ts +239 -46
  28. package/src/gen/client.gen.ts +79 -0
  29. package/src/gen/deployment/index.ts +1 -1
  30. package/src/gen/deployment/queryOptions.gen.ts +13 -0
  31. package/src/gen/manifest.gen.ts +23 -1
  32. package/src/gen/playground/connect.gen.ts +9 -0
  33. package/src/gen/playground/index.ts +4 -0
  34. package/src/gen/playground/queryOptions.gen.ts +119 -0
  35. package/src/gen/types.gen.ts +549 -7
@@ -77,6 +77,7 @@ import type {
77
77
  DeploymentEventsListByEnvironmentOutput,
78
78
  DeploymentEventsListByServiceInput,
79
79
  DeploymentEventsListByServiceOutput,
80
+ DeploymentJobRunCancelInput,
80
81
  DeploymentJobRunInput,
81
82
  DeploymentJobRunLogsInput,
82
83
  DeploymentJobRunLogsOutput,
@@ -111,6 +112,8 @@ import type {
111
112
  DeploymentPreviewPolicyGetInput,
112
113
  DeploymentPreviewPolicyGetOutput,
113
114
  DeploymentPreviewPolicySetInput,
115
+ DeploymentResourcePresetsListInput,
116
+ DeploymentResourcePresetsListOutput,
114
117
  DeploymentServiceCreateInput,
115
118
  DeploymentServiceDeleteInput,
116
119
  DeploymentServiceExecInput,
@@ -431,6 +434,11 @@ export const deploymentJobRunMutationOptions = (sdk: GeneratedClient) => ({
431
434
  mutationFn: (input: DeploymentJobRunInput) => sdk['deployment']['job']['run'](input),
432
435
  });
433
436
 
437
+ export const deploymentJobRunCancelMutationOptions = (sdk: GeneratedClient) => ({
438
+ mutationKey: ['deployment', 'job-run', 'cancel'],
439
+ mutationFn: (input: DeploymentJobRunCancelInput) => sdk['deployment']['job-run']['cancel'](input),
440
+ });
441
+
434
442
  export const deploymentJobRunLogsQueryOptions = (sdk: GeneratedClient, input: DeploymentJobRunLogsInput) => ({
435
443
  queryKey: ['deployment', 'job-run', 'logs', input] as const,
436
444
  queryFn: () => sdk['deployment']['job-run']['logs'](input),
@@ -541,6 +549,11 @@ export const deploymentPreviewPolicySetMutationOptions = (sdk: GeneratedClient)
541
549
  mutationFn: (input: DeploymentPreviewPolicySetInput) => sdk['deployment']['preview-policy']['set'](input),
542
550
  });
543
551
 
552
+ export const deploymentResourcePresetsListQueryOptions = (sdk: GeneratedClient, input: DeploymentResourcePresetsListInput) => ({
553
+ queryKey: ['deployment', 'resource-presets', 'list', input] as const,
554
+ queryFn: () => sdk['deployment']['resource-presets']['list'](input),
555
+ });
556
+
544
557
  export const deploymentServiceCreateMutationOptions = (sdk: GeneratedClient) => ({
545
558
  mutationKey: ['deployment', 'service', 'create'],
546
559
  mutationFn: (input: DeploymentServiceCreateInput) => sdk['deployment']['service']['create'](input),
@@ -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', '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',
@@ -174,6 +174,7 @@ export const operations: Record<string, ToolLevel> = {
174
174
  'deployment_events_list_by_environment': 'read',
175
175
  'deployment_events_list_by_service': 'read',
176
176
  'deployment_job_run': 'write',
177
+ 'deployment_job_run_cancel': 'write',
177
178
  'deployment_job_run_logs': 'read',
178
179
  'deployment_job_runs_list': 'read',
179
180
  'deployment_managed_service_backup': 'write',
@@ -196,6 +197,7 @@ export const operations: Record<string, ToolLevel> = {
196
197
  'deployment_preview_environment_list': 'read',
197
198
  'deployment_preview_policy_get': 'read',
198
199
  'deployment_preview_policy_set': 'admin',
200
+ 'deployment_resource_presets_list': 'read',
199
201
  'deployment_service_create': 'write',
200
202
  'deployment_service_delete': 'admin',
201
203
  'deployment_service_exec': 'admin',
@@ -418,6 +420,23 @@ export const operations: Record<string, ToolLevel> = {
418
420
  'organization_support_threads_list': 'read',
419
421
  'organization_x_install': 'read',
420
422
  'organization_youtube_install': 'read',
423
+ 'playground_analytics_overview': 'read',
424
+ 'playground_billing_entitlements': 'read',
425
+ 'playground_billing_record-usage': 'write',
426
+ 'playground_clickup_create-task': 'write',
427
+ 'playground_clickup_get-last-webhook': 'read',
428
+ 'playground_clickup_get-overview': 'read',
429
+ 'playground_echo_ping': 'read',
430
+ 'playground_gdrive_get-last-change': 'read',
431
+ 'playground_gdrive_read-file': 'read',
432
+ 'playground_googleads_read-customer': 'read',
433
+ 'playground_lifecycle_get-state': 'read',
434
+ 'playground_lifecycle_list-events': 'read',
435
+ 'playground_webhook_get-last': 'read',
436
+ 'playground_workflow_echo': 'write',
437
+ 'playground_workflow_echo-list': 'read',
438
+ 'playground_workflow_ping': 'write',
439
+ 'playground_workflow_subjects-list': 'read',
421
440
  'realtime_archive_export': 'admin',
422
441
  'realtime_archive_export_status': 'read',
423
442
  'realtime_archive_get': 'read',
@@ -712,6 +731,9 @@ export const compositions: Record<string, ToolComposition> = {
712
731
  'mail_template_unarchive': {"label":"Unarchive template","options":{"id":"mail_template_list"}},
713
732
  'mail_template_update': {"label":"Update template","options":{"id":"mail_template_list"}},
714
733
  'mail_usage_get': {"label":"Get usage"},
734
+ 'playground_workflow_echo': {"pii":["input.note","output.note"],"label":"Store workflow echo","completion_event":"playground/workflow.echoed"},
735
+ 'playground_workflow_ping': {"label":"Fire workflow ping","completion_event":"playground/workflow.ping"},
736
+ 'playground_workflow_subjects-list': {"pii":["output.items[].display_name"],"label":"List workflow subjects"},
715
737
  'support_agent_create': {"pii":["input.lesslyUserId","output.lesslyUserId"],"label":"Create agent"},
716
738
  'support_agent_get': {"pii":["output.lesslyUserId"],"label":"Get agent","options":{"id":"support_agent_list"}},
717
739
  'support_agent_list': {"pii":["output.agents[].lesslyUserId"],"label":"List agents"},
@@ -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
+ });