@lessly/sdk-app 97.4.0 → 98.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.
- package/CHANGELOG.md +88 -5
- package/dist/_types/gen/client.gen.d.ts +13 -1
- 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/types.gen.d.ts +599 -21
- 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 +162 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +162 -4
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/src/gen/bindings.gen.ts +150 -0
- package/src/gen/client.gen.ts +28 -0
- package/src/gen/content/index.ts +1 -1
- package/src/gen/content/queryOptions.gen.ts +49 -0
- package/src/gen/manifest.gen.ts +12 -4
- package/src/gen/types.gen.ts +616 -21
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lessly/sdk-app",
|
|
3
3
|
"description": "The Lessly SDK for App is a TypeScript SDK that provides runtime bindings and type-safe generated code for interacting with Lessly Platform APIs and services. This package generates type definitions and client bindings from API catalogs, enabling developers to build applications that consume Lessly platform services with full type safety and autocompletion.",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "98.0.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "git+https://github.com/lepsto/lepsto-sdk-app.git"
|
|
@@ -210,5 +210,5 @@
|
|
|
210
210
|
}
|
|
211
211
|
}
|
|
212
212
|
},
|
|
213
|
-
"sdkContentHash": "sha256:
|
|
213
|
+
"sdkContentHash": "sha256:fef0db83dcb7e52765ab352bb53316baca7389554bd8bd6aaad18a4cb0c5f534"
|
|
214
214
|
}
|
package/src/gen/bindings.gen.ts
CHANGED
|
@@ -1631,6 +1631,70 @@ export const bindings: BindingsMap = {
|
|
|
1631
1631
|
"readOnly": false
|
|
1632
1632
|
}
|
|
1633
1633
|
},
|
|
1634
|
+
"folders": {
|
|
1635
|
+
"create": {
|
|
1636
|
+
"level": "write",
|
|
1637
|
+
"method": "POST",
|
|
1638
|
+
"operationKey": "content_folders_create",
|
|
1639
|
+
"params": [
|
|
1640
|
+
{
|
|
1641
|
+
"in": "body",
|
|
1642
|
+
"name": "name"
|
|
1643
|
+
},
|
|
1644
|
+
{
|
|
1645
|
+
"in": "body",
|
|
1646
|
+
"name": "parentId"
|
|
1647
|
+
}
|
|
1648
|
+
],
|
|
1649
|
+
"path": "/content/folders",
|
|
1650
|
+
"readOnly": false
|
|
1651
|
+
},
|
|
1652
|
+
"delete": {
|
|
1653
|
+
"level": "admin",
|
|
1654
|
+
"method": "DELETE",
|
|
1655
|
+
"operationKey": "content_folders_delete",
|
|
1656
|
+
"params": [
|
|
1657
|
+
{
|
|
1658
|
+
"in": "path",
|
|
1659
|
+
"name": "folderId"
|
|
1660
|
+
}
|
|
1661
|
+
],
|
|
1662
|
+
"path": "/content/folders/:folderId",
|
|
1663
|
+
"readOnly": false
|
|
1664
|
+
},
|
|
1665
|
+
"list": {
|
|
1666
|
+
"level": "read",
|
|
1667
|
+
"method": "GET",
|
|
1668
|
+
"operationKey": "content_folders_list",
|
|
1669
|
+
"path": "/content/folders",
|
|
1670
|
+
"readOnly": true
|
|
1671
|
+
},
|
|
1672
|
+
"update": {
|
|
1673
|
+
"level": "write",
|
|
1674
|
+
"method": "PATCH",
|
|
1675
|
+
"operationKey": "content_folders_update",
|
|
1676
|
+
"params": [
|
|
1677
|
+
{
|
|
1678
|
+
"in": "path",
|
|
1679
|
+
"name": "folderId"
|
|
1680
|
+
},
|
|
1681
|
+
{
|
|
1682
|
+
"in": "body",
|
|
1683
|
+
"name": "name"
|
|
1684
|
+
},
|
|
1685
|
+
{
|
|
1686
|
+
"in": "body",
|
|
1687
|
+
"name": "parentId"
|
|
1688
|
+
},
|
|
1689
|
+
{
|
|
1690
|
+
"in": "body",
|
|
1691
|
+
"name": "beforeFolderId"
|
|
1692
|
+
}
|
|
1693
|
+
],
|
|
1694
|
+
"path": "/content/folders/:folderId",
|
|
1695
|
+
"readOnly": false
|
|
1696
|
+
}
|
|
1697
|
+
},
|
|
1634
1698
|
"media": {
|
|
1635
1699
|
"finalize": {
|
|
1636
1700
|
"level": "write",
|
|
@@ -1789,6 +1853,18 @@ export const bindings: BindingsMap = {
|
|
|
1789
1853
|
"method": "POST",
|
|
1790
1854
|
"operationKey": "content_posts_create",
|
|
1791
1855
|
"params": [
|
|
1856
|
+
{
|
|
1857
|
+
"in": "body",
|
|
1858
|
+
"name": "title"
|
|
1859
|
+
},
|
|
1860
|
+
{
|
|
1861
|
+
"in": "body",
|
|
1862
|
+
"name": "notes"
|
|
1863
|
+
},
|
|
1864
|
+
{
|
|
1865
|
+
"in": "body",
|
|
1866
|
+
"name": "folderId"
|
|
1867
|
+
},
|
|
1792
1868
|
{
|
|
1793
1869
|
"in": "body",
|
|
1794
1870
|
"name": "text"
|
|
@@ -1805,6 +1881,19 @@ export const bindings: BindingsMap = {
|
|
|
1805
1881
|
"path": "/content/posts",
|
|
1806
1882
|
"readOnly": false
|
|
1807
1883
|
},
|
|
1884
|
+
"delete": {
|
|
1885
|
+
"level": "admin",
|
|
1886
|
+
"method": "POST",
|
|
1887
|
+
"operationKey": "content_posts_delete",
|
|
1888
|
+
"params": [
|
|
1889
|
+
{
|
|
1890
|
+
"in": "path",
|
|
1891
|
+
"name": "postId"
|
|
1892
|
+
}
|
|
1893
|
+
],
|
|
1894
|
+
"path": "/content/posts/:postId/delete",
|
|
1895
|
+
"readOnly": false
|
|
1896
|
+
},
|
|
1808
1897
|
"get": {
|
|
1809
1898
|
"level": "read",
|
|
1810
1899
|
"method": "GET",
|
|
@@ -1827,6 +1916,10 @@ export const bindings: BindingsMap = {
|
|
|
1827
1916
|
"in": "query",
|
|
1828
1917
|
"name": "status"
|
|
1829
1918
|
},
|
|
1919
|
+
{
|
|
1920
|
+
"in": "query",
|
|
1921
|
+
"name": "folderId"
|
|
1922
|
+
},
|
|
1830
1923
|
{
|
|
1831
1924
|
"in": "query",
|
|
1832
1925
|
"name": "limit"
|
|
@@ -1839,6 +1932,27 @@ export const bindings: BindingsMap = {
|
|
|
1839
1932
|
"path": "/content/posts",
|
|
1840
1933
|
"readOnly": true
|
|
1841
1934
|
},
|
|
1935
|
+
"move": {
|
|
1936
|
+
"level": "admin",
|
|
1937
|
+
"method": "POST",
|
|
1938
|
+
"operationKey": "content_posts_move",
|
|
1939
|
+
"params": [
|
|
1940
|
+
{
|
|
1941
|
+
"in": "path",
|
|
1942
|
+
"name": "postId"
|
|
1943
|
+
},
|
|
1944
|
+
{
|
|
1945
|
+
"in": "body",
|
|
1946
|
+
"name": "folderId"
|
|
1947
|
+
},
|
|
1948
|
+
{
|
|
1949
|
+
"in": "body",
|
|
1950
|
+
"name": "beforePostId"
|
|
1951
|
+
}
|
|
1952
|
+
],
|
|
1953
|
+
"path": "/content/posts/:postId/move",
|
|
1954
|
+
"readOnly": false
|
|
1955
|
+
},
|
|
1842
1956
|
"submit": {
|
|
1843
1957
|
"level": "write",
|
|
1844
1958
|
"method": "POST",
|
|
@@ -1861,6 +1975,14 @@ export const bindings: BindingsMap = {
|
|
|
1861
1975
|
"in": "path",
|
|
1862
1976
|
"name": "id"
|
|
1863
1977
|
},
|
|
1978
|
+
{
|
|
1979
|
+
"in": "body",
|
|
1980
|
+
"name": "title"
|
|
1981
|
+
},
|
|
1982
|
+
{
|
|
1983
|
+
"in": "body",
|
|
1984
|
+
"name": "notes"
|
|
1985
|
+
},
|
|
1864
1986
|
{
|
|
1865
1987
|
"in": "body",
|
|
1866
1988
|
"name": "text"
|
|
@@ -1929,6 +2051,34 @@ export const bindings: BindingsMap = {
|
|
|
1929
2051
|
"readOnly": false
|
|
1930
2052
|
}
|
|
1931
2053
|
},
|
|
2054
|
+
"posts-to": {
|
|
2055
|
+
"draft": {
|
|
2056
|
+
"level": "write",
|
|
2057
|
+
"method": "POST",
|
|
2058
|
+
"operationKey": "content_posts_to_draft",
|
|
2059
|
+
"params": [
|
|
2060
|
+
{
|
|
2061
|
+
"in": "path",
|
|
2062
|
+
"name": "postId"
|
|
2063
|
+
}
|
|
2064
|
+
],
|
|
2065
|
+
"path": "/content/posts/:postId/to-draft",
|
|
2066
|
+
"readOnly": false
|
|
2067
|
+
},
|
|
2068
|
+
"idea": {
|
|
2069
|
+
"level": "write",
|
|
2070
|
+
"method": "POST",
|
|
2071
|
+
"operationKey": "content_posts_to_idea",
|
|
2072
|
+
"params": [
|
|
2073
|
+
{
|
|
2074
|
+
"in": "path",
|
|
2075
|
+
"name": "postId"
|
|
2076
|
+
}
|
|
2077
|
+
],
|
|
2078
|
+
"path": "/content/posts/:postId/to-idea",
|
|
2079
|
+
"readOnly": false
|
|
2080
|
+
}
|
|
2081
|
+
},
|
|
1932
2082
|
"publications": {
|
|
1933
2083
|
"cancel": {
|
|
1934
2084
|
"level": "write",
|
package/src/gen/client.gen.ts
CHANGED
|
@@ -161,6 +161,14 @@ import type {
|
|
|
161
161
|
ContentChannelsUnbindOutput,
|
|
162
162
|
ContentChannelsUpdateInput,
|
|
163
163
|
ContentChannelsUpdateOutput,
|
|
164
|
+
ContentFoldersCreateInput,
|
|
165
|
+
ContentFoldersCreateOutput,
|
|
166
|
+
ContentFoldersDeleteInput,
|
|
167
|
+
ContentFoldersDeleteOutput,
|
|
168
|
+
ContentFoldersListInput,
|
|
169
|
+
ContentFoldersListOutput,
|
|
170
|
+
ContentFoldersUpdateInput,
|
|
171
|
+
ContentFoldersUpdateOutput,
|
|
164
172
|
ContentMediaCreateUploadUrlInput,
|
|
165
173
|
ContentMediaCreateUploadUrlOutput,
|
|
166
174
|
ContentMediaFinalizeInput,
|
|
@@ -181,14 +189,22 @@ import type {
|
|
|
181
189
|
ContentPostsAttachMediaOutput,
|
|
182
190
|
ContentPostsCreateInput,
|
|
183
191
|
ContentPostsCreateOutput,
|
|
192
|
+
ContentPostsDeleteInput,
|
|
193
|
+
ContentPostsDeleteOutput,
|
|
184
194
|
ContentPostsDetachMediaInput,
|
|
185
195
|
ContentPostsDetachMediaOutput,
|
|
186
196
|
ContentPostsGetInput,
|
|
187
197
|
ContentPostsGetOutput,
|
|
188
198
|
ContentPostsListInput,
|
|
189
199
|
ContentPostsListOutput,
|
|
200
|
+
ContentPostsMoveInput,
|
|
201
|
+
ContentPostsMoveOutput,
|
|
190
202
|
ContentPostsSubmitInput,
|
|
191
203
|
ContentPostsSubmitOutput,
|
|
204
|
+
ContentPostsToDraftInput,
|
|
205
|
+
ContentPostsToDraftOutput,
|
|
206
|
+
ContentPostsToIdeaInput,
|
|
207
|
+
ContentPostsToIdeaOutput,
|
|
192
208
|
ContentPostsUpdateInput,
|
|
193
209
|
ContentPostsUpdateOutput,
|
|
194
210
|
ContentPostsVersionsInput,
|
|
@@ -1393,6 +1409,12 @@ export interface GeneratedClient {
|
|
|
1393
1409
|
unbind: ((input: ContentChannelsUnbindInput) => Promise<ContentChannelsUnbindOutput>) & Operation;
|
|
1394
1410
|
update: ((input: ContentChannelsUpdateInput) => Promise<ContentChannelsUpdateOutput>) & Operation;
|
|
1395
1411
|
};
|
|
1412
|
+
folders: {
|
|
1413
|
+
create: ((input: ContentFoldersCreateInput) => Promise<ContentFoldersCreateOutput>) & Operation;
|
|
1414
|
+
delete: ((input: ContentFoldersDeleteInput) => Promise<ContentFoldersDeleteOutput>) & Operation;
|
|
1415
|
+
list: ((input: ContentFoldersListInput) => Promise<ContentFoldersListOutput>) & Operation;
|
|
1416
|
+
update: ((input: ContentFoldersUpdateInput) => Promise<ContentFoldersUpdateOutput>) & Operation;
|
|
1417
|
+
};
|
|
1396
1418
|
media: {
|
|
1397
1419
|
finalize: ((input: ContentMediaFinalizeInput) => Promise<ContentMediaFinalizeOutput>) & Operation;
|
|
1398
1420
|
get: ((input: ContentMediaGetInput) => Promise<ContentMediaGetOutput>) & Operation;
|
|
@@ -1411,8 +1433,10 @@ export interface GeneratedClient {
|
|
|
1411
1433
|
posts: {
|
|
1412
1434
|
approve: ((input: ContentPostsApproveInput) => Promise<ContentPostsApproveOutput>) & Operation;
|
|
1413
1435
|
create: ((input: ContentPostsCreateInput) => Promise<ContentPostsCreateOutput>) & Operation;
|
|
1436
|
+
delete: ((input: ContentPostsDeleteInput) => Promise<ContentPostsDeleteOutput>) & Operation;
|
|
1414
1437
|
get: ((input: ContentPostsGetInput) => Promise<ContentPostsGetOutput>) & Operation;
|
|
1415
1438
|
list: ((input: ContentPostsListInput) => Promise<ContentPostsListOutput>) & Operation;
|
|
1439
|
+
move: ((input: ContentPostsMoveInput) => Promise<ContentPostsMoveOutput>) & Operation;
|
|
1416
1440
|
submit: ((input: ContentPostsSubmitInput) => Promise<ContentPostsSubmitOutput>) & Operation;
|
|
1417
1441
|
update: ((input: ContentPostsUpdateInput) => Promise<ContentPostsUpdateOutput>) & Operation;
|
|
1418
1442
|
versions: ((input: ContentPostsVersionsInput) => Promise<ContentPostsVersionsOutput>) & Operation;
|
|
@@ -1423,6 +1447,10 @@ export interface GeneratedClient {
|
|
|
1423
1447
|
'posts-detach': {
|
|
1424
1448
|
media: ((input: ContentPostsDetachMediaInput) => Promise<ContentPostsDetachMediaOutput>) & Operation;
|
|
1425
1449
|
};
|
|
1450
|
+
'posts-to': {
|
|
1451
|
+
draft: ((input: ContentPostsToDraftInput) => Promise<ContentPostsToDraftOutput>) & Operation;
|
|
1452
|
+
idea: ((input: ContentPostsToIdeaInput) => Promise<ContentPostsToIdeaOutput>) & Operation;
|
|
1453
|
+
};
|
|
1426
1454
|
publications: {
|
|
1427
1455
|
cancel: ((input: ContentPublicationsCancelInput) => Promise<ContentPublicationsCancelOutput>) & Operation;
|
|
1428
1456
|
confirm: ((input: ContentPublicationsConfirmInput) => Promise<ContentPublicationsConfirmOutput>) & Operation;
|
package/src/gen/content/index.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// AUTOGENERATED by scripts/generate.ts — do not edit.
|
|
2
2
|
export * from './queryOptions.gen';
|
|
3
|
-
export type { ContentChannelsBindInput, ContentChannelsBindOutput, ContentChannelsGetInput, ContentChannelsGetOutput, ContentChannelsListInput, ContentChannelsListOutput, ContentChannelsResumeInput, ContentChannelsResumeOutput, ContentChannelsUnbindInput, ContentChannelsUnbindOutput, ContentChannelsUpdateInput, ContentChannelsUpdateOutput, ContentMediaCreateUploadUrlInput, ContentMediaCreateUploadUrlOutput, ContentMediaFinalizeInput, ContentMediaFinalizeOutput, ContentMediaGetInput, ContentMediaGetOutput, ContentMediaListInput, ContentMediaListOutput, ContentMediaUploadInput, ContentMediaUploadOutput, ContentMetricsChannelSeriesInput, ContentMetricsChannelSeriesOutput, ContentMetricsPostSeriesInput, ContentMetricsPostSeriesOutput, ContentPostsApproveInput, ContentPostsApproveOutput, ContentPostsAttachMediaInput, ContentPostsAttachMediaOutput, ContentPostsCreateInput, ContentPostsCreateOutput, ContentPostsDetachMediaInput, ContentPostsDetachMediaOutput, ContentPostsGetInput, ContentPostsGetOutput, ContentPostsListInput, ContentPostsListOutput, ContentPostsSubmitInput, ContentPostsSubmitOutput, ContentPostsUpdateInput, ContentPostsUpdateOutput, ContentPostsVersionsInput, ContentPostsVersionsOutput, ContentPublicationsCancelInput, ContentPublicationsCancelOutput, ContentPublicationsConfirmInput, ContentPublicationsConfirmOutput, ContentPublicationsGetInput, ContentPublicationsGetOutput, ContentPublicationsListInput, ContentPublicationsListOutput, ContentPublicationsPublishInput, ContentPublicationsPublishOutput, ContentPublicationsRemindInput, ContentPublicationsRemindOutput, ContentPublicationsRescheduleInput, ContentPublicationsRescheduleOutput, ContentPublicationsScheduleInput, ContentPublicationsScheduleOutput, ContentPublicationsValidateInput, ContentPublicationsValidateOutput } from '../types.gen';
|
|
3
|
+
export type { ContentChannelsBindInput, ContentChannelsBindOutput, ContentChannelsGetInput, ContentChannelsGetOutput, ContentChannelsListInput, ContentChannelsListOutput, ContentChannelsResumeInput, ContentChannelsResumeOutput, ContentChannelsUnbindInput, ContentChannelsUnbindOutput, ContentChannelsUpdateInput, ContentChannelsUpdateOutput, ContentFoldersCreateInput, ContentFoldersCreateOutput, ContentFoldersDeleteInput, ContentFoldersDeleteOutput, ContentFoldersListInput, ContentFoldersListOutput, ContentFoldersUpdateInput, ContentFoldersUpdateOutput, ContentMediaCreateUploadUrlInput, ContentMediaCreateUploadUrlOutput, ContentMediaFinalizeInput, ContentMediaFinalizeOutput, ContentMediaGetInput, ContentMediaGetOutput, ContentMediaListInput, ContentMediaListOutput, ContentMediaUploadInput, ContentMediaUploadOutput, ContentMetricsChannelSeriesInput, ContentMetricsChannelSeriesOutput, ContentMetricsPostSeriesInput, ContentMetricsPostSeriesOutput, ContentPostsApproveInput, ContentPostsApproveOutput, ContentPostsAttachMediaInput, ContentPostsAttachMediaOutput, ContentPostsCreateInput, ContentPostsCreateOutput, ContentPostsDeleteInput, ContentPostsDeleteOutput, ContentPostsDetachMediaInput, ContentPostsDetachMediaOutput, ContentPostsGetInput, ContentPostsGetOutput, ContentPostsListInput, ContentPostsListOutput, ContentPostsMoveInput, ContentPostsMoveOutput, ContentPostsSubmitInput, ContentPostsSubmitOutput, ContentPostsToDraftInput, ContentPostsToDraftOutput, ContentPostsToIdeaInput, ContentPostsToIdeaOutput, ContentPostsUpdateInput, ContentPostsUpdateOutput, ContentPostsVersionsInput, ContentPostsVersionsOutput, ContentPublicationsCancelInput, ContentPublicationsCancelOutput, ContentPublicationsConfirmInput, ContentPublicationsConfirmOutput, ContentPublicationsGetInput, ContentPublicationsGetOutput, ContentPublicationsListInput, ContentPublicationsListOutput, ContentPublicationsPublishInput, ContentPublicationsPublishOutput, ContentPublicationsRemindInput, ContentPublicationsRemindOutput, ContentPublicationsRescheduleInput, ContentPublicationsRescheduleOutput, ContentPublicationsScheduleInput, ContentPublicationsScheduleOutput, ContentPublicationsValidateInput, ContentPublicationsValidateOutput } from '../types.gen';
|
|
@@ -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
|
@@ -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',
|
|
@@ -637,10 +645,10 @@ export const compositions: Record<string, ToolComposition> = {
|
|
|
637
645
|
'brain_memory_update': {"pii":["input.content"],"label":"Update memory","options":{"memory_id":"brain_memory_list"}},
|
|
638
646
|
'brain_usage_report': {"label":"Get usage report"},
|
|
639
647
|
'content_metrics_post_series': {"label":"Read post metrics","options":{"id":"content_publications_list"}},
|
|
640
|
-
'content_posts_create': {"pii":["output.author","output.text","output.media","output.targets"],"label":"Create
|
|
641
|
-
'content_posts_get': {"pii":["output.author","output.text","output.media","output.targets"],"label":"Get post","options":{"id":"content_posts_list"}},
|
|
642
|
-
'content_posts_list': {"pii":["output.posts[].author","output.posts[].text","output.posts[].media","output.posts[].targets"],"label":"List posts"},
|
|
643
|
-
'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"}},
|
|
644
652
|
'content_publications_cancel': {"label":"Cancel publication","options":{"id":"content_publications_list"}},
|
|
645
653
|
'content_publications_publish': {"label":"Publish now","options":{"postId":"content_posts_list","channelId":"content_channels_list"},"completion_event":"content/publication.settled"},
|
|
646
654
|
'content_publications_schedule': {"label":"Schedule publication","options":{"postId":"content_posts_list","channelId":"content_channels_list"},"completion_event":"content/publication.settled"},
|