@lessly/sdk-app 97.5.0 → 98.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.
- package/CHANGELOG.md +58 -5
- package/dist/_types/gen/client.gen.d.ts +13 -38
- package/dist/_types/gen/content/index.d.ts +1 -1
- package/dist/_types/gen/content/queryOptions.gen.d.ts +33 -1
- package/dist/_types/gen/manifest.gen.d.ts +1 -1
- package/dist/_types/gen/types.gen.d.ts +5648 -1022
- package/dist/content/index.cjs +40 -0
- package/dist/content/index.cjs.map +1 -1
- package/dist/content/index.js +33 -1
- package/dist/content/index.js.map +1 -1
- package/dist/index.cjs +170 -231
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +11739 -26
- package/dist/index.js.map +1 -1
- package/package.json +2 -12
- package/src/gen/bindings.gen.ts +159 -216
- package/src/gen/client.gen.ts +28 -71
- package/src/gen/content/index.ts +1 -1
- package/src/gen/content/queryOptions.gen.ts +49 -0
- package/src/gen/manifest.gen.ts +13 -25
- package/src/gen/types.gen.ts +5673 -1074
- package/dist/_types/gen/playground/connect.gen.d.ts +0 -3
- package/dist/_types/gen/playground/index.d.ts +0 -3
- package/dist/_types/gen/playground/queryOptions.gen.d.ts +0 -70
- package/dist/chunk-2ZWQTRUQ.js +0 -11788
- package/dist/chunk-2ZWQTRUQ.js.map +0 -1
- package/dist/playground/index.cjs +0 -106
- package/dist/playground/index.cjs.map +0 -1
- package/dist/playground/index.d.cts +0 -1
- package/dist/playground/index.d.ts +0 -1
- package/dist/playground/index.js +0 -78
- package/dist/playground/index.js.map +0 -1
- package/src/gen/playground/connect.gen.ts +0 -9
- package/src/gen/playground/index.ts +0 -4
- package/src/gen/playground/queryOptions.gen.ts +0 -119
|
@@ -9,6 +9,11 @@ import type {
|
|
|
9
9
|
ContentChannelsResumeInput,
|
|
10
10
|
ContentChannelsUnbindInput,
|
|
11
11
|
ContentChannelsUpdateInput,
|
|
12
|
+
ContentFoldersCreateInput,
|
|
13
|
+
ContentFoldersDeleteInput,
|
|
14
|
+
ContentFoldersListInput,
|
|
15
|
+
ContentFoldersListOutput,
|
|
16
|
+
ContentFoldersUpdateInput,
|
|
12
17
|
ContentMediaCreateUploadUrlInput,
|
|
13
18
|
ContentMediaFinalizeInput,
|
|
14
19
|
ContentMediaGetInput,
|
|
@@ -23,12 +28,16 @@ import type {
|
|
|
23
28
|
ContentPostsApproveInput,
|
|
24
29
|
ContentPostsAttachMediaInput,
|
|
25
30
|
ContentPostsCreateInput,
|
|
31
|
+
ContentPostsDeleteInput,
|
|
26
32
|
ContentPostsDetachMediaInput,
|
|
27
33
|
ContentPostsGetInput,
|
|
28
34
|
ContentPostsGetOutput,
|
|
29
35
|
ContentPostsListInput,
|
|
30
36
|
ContentPostsListOutput,
|
|
37
|
+
ContentPostsMoveInput,
|
|
31
38
|
ContentPostsSubmitInput,
|
|
39
|
+
ContentPostsToDraftInput,
|
|
40
|
+
ContentPostsToIdeaInput,
|
|
32
41
|
ContentPostsUpdateInput,
|
|
33
42
|
ContentPostsVersionsInput,
|
|
34
43
|
ContentPostsVersionsOutput,
|
|
@@ -76,6 +85,26 @@ export const contentChannelsUpdateMutationOptions = (sdk: GeneratedClient) => ({
|
|
|
76
85
|
mutationFn: (input: ContentChannelsUpdateInput) => sdk['content']['channels']['update'](input),
|
|
77
86
|
});
|
|
78
87
|
|
|
88
|
+
export const contentFoldersCreateMutationOptions = (sdk: GeneratedClient) => ({
|
|
89
|
+
mutationKey: ['content', 'folders', 'create'],
|
|
90
|
+
mutationFn: (input: ContentFoldersCreateInput) => sdk['content']['folders']['create'](input),
|
|
91
|
+
});
|
|
92
|
+
|
|
93
|
+
export const contentFoldersDeleteMutationOptions = (sdk: GeneratedClient) => ({
|
|
94
|
+
mutationKey: ['content', 'folders', 'delete'],
|
|
95
|
+
mutationFn: (input: ContentFoldersDeleteInput) => sdk['content']['folders']['delete'](input),
|
|
96
|
+
});
|
|
97
|
+
|
|
98
|
+
export const contentFoldersListQueryOptions = (sdk: GeneratedClient, input: ContentFoldersListInput) => ({
|
|
99
|
+
queryKey: ['content', 'folders', 'list', input] as const,
|
|
100
|
+
queryFn: () => sdk['content']['folders']['list'](input),
|
|
101
|
+
});
|
|
102
|
+
|
|
103
|
+
export const contentFoldersUpdateMutationOptions = (sdk: GeneratedClient) => ({
|
|
104
|
+
mutationKey: ['content', 'folders', 'update'],
|
|
105
|
+
mutationFn: (input: ContentFoldersUpdateInput) => sdk['content']['folders']['update'](input),
|
|
106
|
+
});
|
|
107
|
+
|
|
79
108
|
export const contentMediaCreateUploadUrlMutationOptions = (sdk: GeneratedClient) => ({
|
|
80
109
|
mutationKey: ['content', 'media-create-upload', 'url'],
|
|
81
110
|
mutationFn: (input: ContentMediaCreateUploadUrlInput) => sdk['content']['media-create-upload']['url'](input),
|
|
@@ -126,6 +155,11 @@ export const contentPostsCreateMutationOptions = (sdk: GeneratedClient) => ({
|
|
|
126
155
|
mutationFn: (input: ContentPostsCreateInput) => sdk['content']['posts']['create'](input),
|
|
127
156
|
});
|
|
128
157
|
|
|
158
|
+
export const contentPostsDeleteMutationOptions = (sdk: GeneratedClient) => ({
|
|
159
|
+
mutationKey: ['content', 'posts', 'delete'],
|
|
160
|
+
mutationFn: (input: ContentPostsDeleteInput) => sdk['content']['posts']['delete'](input),
|
|
161
|
+
});
|
|
162
|
+
|
|
129
163
|
export const contentPostsDetachMediaMutationOptions = (sdk: GeneratedClient) => ({
|
|
130
164
|
mutationKey: ['content', 'posts-detach', 'media'],
|
|
131
165
|
mutationFn: (input: ContentPostsDetachMediaInput) => sdk['content']['posts-detach']['media'](input),
|
|
@@ -141,11 +175,26 @@ export const contentPostsListQueryOptions = (sdk: GeneratedClient, input: Conten
|
|
|
141
175
|
queryFn: () => sdk['content']['posts']['list'](input),
|
|
142
176
|
});
|
|
143
177
|
|
|
178
|
+
export const contentPostsMoveMutationOptions = (sdk: GeneratedClient) => ({
|
|
179
|
+
mutationKey: ['content', 'posts', 'move'],
|
|
180
|
+
mutationFn: (input: ContentPostsMoveInput) => sdk['content']['posts']['move'](input),
|
|
181
|
+
});
|
|
182
|
+
|
|
144
183
|
export const contentPostsSubmitMutationOptions = (sdk: GeneratedClient) => ({
|
|
145
184
|
mutationKey: ['content', 'posts', 'submit'],
|
|
146
185
|
mutationFn: (input: ContentPostsSubmitInput) => sdk['content']['posts']['submit'](input),
|
|
147
186
|
});
|
|
148
187
|
|
|
188
|
+
export const contentPostsToDraftMutationOptions = (sdk: GeneratedClient) => ({
|
|
189
|
+
mutationKey: ['content', 'posts-to', 'draft'],
|
|
190
|
+
mutationFn: (input: ContentPostsToDraftInput) => sdk['content']['posts-to']['draft'](input),
|
|
191
|
+
});
|
|
192
|
+
|
|
193
|
+
export const contentPostsToIdeaMutationOptions = (sdk: GeneratedClient) => ({
|
|
194
|
+
mutationKey: ['content', 'posts-to', 'idea'],
|
|
195
|
+
mutationFn: (input: ContentPostsToIdeaInput) => sdk['content']['posts-to']['idea'](input),
|
|
196
|
+
});
|
|
197
|
+
|
|
149
198
|
export const contentPostsUpdateMutationOptions = (sdk: GeneratedClient) => ({
|
|
150
199
|
mutationKey: ['content', 'posts', 'update'],
|
|
151
200
|
mutationFn: (input: ContentPostsUpdateInput) => sdk['content']['posts']['update'](input),
|
package/src/gen/manifest.gen.ts
CHANGED
|
@@ -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', '
|
|
4
|
+
export const namespaces = ['analytics', 'brain', 'consent', 'content', 'deployment', 'mail', 'observe', 'organization', 'realtime', 'support', 'tracking', 'users', 'workflow'] as const;
|
|
5
5
|
|
|
6
6
|
export const operations: Record<string, ToolLevel> = {
|
|
7
7
|
'analytics_catalog_get': 'read',
|
|
@@ -84,6 +84,10 @@ export const operations: Record<string, ToolLevel> = {
|
|
|
84
84
|
'content_channels_resume': 'write',
|
|
85
85
|
'content_channels_unbind': 'write',
|
|
86
86
|
'content_channels_update': 'write',
|
|
87
|
+
'content_folders_create': 'write',
|
|
88
|
+
'content_folders_delete': 'admin',
|
|
89
|
+
'content_folders_list': 'read',
|
|
90
|
+
'content_folders_update': 'write',
|
|
87
91
|
'content_media_create_upload_url': 'write',
|
|
88
92
|
'content_media_finalize': 'write',
|
|
89
93
|
'content_media_get': 'read',
|
|
@@ -94,10 +98,14 @@ export const operations: Record<string, ToolLevel> = {
|
|
|
94
98
|
'content_posts_approve': 'write',
|
|
95
99
|
'content_posts_attach_media': 'write',
|
|
96
100
|
'content_posts_create': 'write',
|
|
101
|
+
'content_posts_delete': 'admin',
|
|
97
102
|
'content_posts_detach_media': 'write',
|
|
98
103
|
'content_posts_get': 'read',
|
|
99
104
|
'content_posts_list': 'read',
|
|
105
|
+
'content_posts_move': 'admin',
|
|
100
106
|
'content_posts_submit': 'write',
|
|
107
|
+
'content_posts_to_draft': 'write',
|
|
108
|
+
'content_posts_to_idea': 'write',
|
|
101
109
|
'content_posts_update': 'write',
|
|
102
110
|
'content_posts_versions': 'read',
|
|
103
111
|
'content_publications_cancel': 'write',
|
|
@@ -406,23 +414,6 @@ export const operations: Record<string, ToolLevel> = {
|
|
|
406
414
|
'organization_support_threads_list': 'read',
|
|
407
415
|
'organization_x_install': 'read',
|
|
408
416
|
'organization_youtube_install': 'read',
|
|
409
|
-
'playground_analytics_overview': 'read',
|
|
410
|
-
'playground_billing_entitlements': 'read',
|
|
411
|
-
'playground_billing_record-usage': 'write',
|
|
412
|
-
'playground_clickup_create-task': 'write',
|
|
413
|
-
'playground_clickup_get-last-webhook': 'read',
|
|
414
|
-
'playground_clickup_get-overview': 'read',
|
|
415
|
-
'playground_echo_ping': 'read',
|
|
416
|
-
'playground_gdrive_get-last-change': 'read',
|
|
417
|
-
'playground_gdrive_read-file': 'read',
|
|
418
|
-
'playground_googleads_read-customer': 'read',
|
|
419
|
-
'playground_lifecycle_get-state': 'read',
|
|
420
|
-
'playground_lifecycle_list-events': 'read',
|
|
421
|
-
'playground_webhook_get-last': 'read',
|
|
422
|
-
'playground_workflow_echo': 'write',
|
|
423
|
-
'playground_workflow_echo-list': 'read',
|
|
424
|
-
'playground_workflow_ping': 'write',
|
|
425
|
-
'playground_workflow_subjects-list': 'read',
|
|
426
417
|
'realtime_archive_export': 'admin',
|
|
427
418
|
'realtime_archive_export_status': 'read',
|
|
428
419
|
'realtime_archive_get': 'read',
|
|
@@ -654,10 +645,10 @@ export const compositions: Record<string, ToolComposition> = {
|
|
|
654
645
|
'brain_memory_update': {"pii":["input.content"],"label":"Update memory","options":{"memory_id":"brain_memory_list"}},
|
|
655
646
|
'brain_usage_report': {"label":"Get usage report"},
|
|
656
647
|
'content_metrics_post_series': {"label":"Read post metrics","options":{"id":"content_publications_list"}},
|
|
657
|
-
'content_posts_create': {"pii":["output.author","output.text","output.media","output.targets"],"label":"Create
|
|
658
|
-
'content_posts_get': {"pii":["output.author","output.text","output.media","output.targets"],"label":"Get post","options":{"id":"content_posts_list"}},
|
|
659
|
-
'content_posts_list': {"pii":["output.posts[].author","output.posts[].text","output.posts[].media","output.posts[].targets"],"label":"List posts"},
|
|
660
|
-
'content_posts_submit': {"pii":["output.author","output.text","output.media","output.targets"],"label":"Submit post for approval","options":{"id":"content_posts_list"}},
|
|
648
|
+
'content_posts_create': {"pii":["input.title","input.notes","input.text","output.author","output.title","output.notes","output.text","output.media","output.targets"],"label":"Create post or idea"},
|
|
649
|
+
'content_posts_get': {"pii":["output.author","output.title","output.notes","output.text","output.media","output.targets"],"label":"Get post","options":{"id":"content_posts_list"}},
|
|
650
|
+
'content_posts_list': {"pii":["output.posts[].author","output.posts[].title","output.posts[].notes","output.posts[].text","output.posts[].media","output.posts[].targets"],"label":"List posts"},
|
|
651
|
+
'content_posts_submit': {"pii":["output.author","output.title","output.notes","output.text","output.media","output.targets"],"label":"Submit post for approval","options":{"id":"content_posts_list"}},
|
|
661
652
|
'content_publications_cancel': {"label":"Cancel publication","options":{"id":"content_publications_list"}},
|
|
662
653
|
'content_publications_publish': {"label":"Publish now","options":{"postId":"content_posts_list","channelId":"content_channels_list"},"completion_event":"content/publication.settled"},
|
|
663
654
|
'content_publications_schedule': {"label":"Schedule publication","options":{"postId":"content_posts_list","channelId":"content_channels_list"},"completion_event":"content/publication.settled"},
|
|
@@ -708,9 +699,6 @@ export const compositions: Record<string, ToolComposition> = {
|
|
|
708
699
|
'mail_template_unarchive': {"label":"Unarchive template","options":{"id":"mail_template_list"}},
|
|
709
700
|
'mail_template_update': {"label":"Update template","options":{"id":"mail_template_list"}},
|
|
710
701
|
'mail_usage_get': {"label":"Get usage"},
|
|
711
|
-
'playground_workflow_echo': {"pii":["input.note","output.note"],"label":"Store workflow echo","completion_event":"playground/workflow.echoed"},
|
|
712
|
-
'playground_workflow_ping': {"label":"Fire workflow ping","completion_event":"playground/workflow.ping"},
|
|
713
|
-
'playground_workflow_subjects-list': {"pii":["output.items[].display_name"],"label":"List workflow subjects"},
|
|
714
702
|
'support_agent_create': {"pii":["input.lesslyUserId","output.lesslyUserId"],"label":"Create agent"},
|
|
715
703
|
'support_agent_get': {"pii":["output.lesslyUserId"],"label":"Get agent","options":{"id":"support_agent_list"}},
|
|
716
704
|
'support_agent_list': {"pii":["output.agents[].lesslyUserId"],"label":"List agents"},
|