@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/dist/index.js
CHANGED
|
@@ -1880,6 +1880,70 @@ var bindings = {
|
|
|
1880
1880
|
"readOnly": false
|
|
1881
1881
|
}
|
|
1882
1882
|
},
|
|
1883
|
+
"folders": {
|
|
1884
|
+
"create": {
|
|
1885
|
+
"level": "write",
|
|
1886
|
+
"method": "POST",
|
|
1887
|
+
"operationKey": "content_folders_create",
|
|
1888
|
+
"params": [
|
|
1889
|
+
{
|
|
1890
|
+
"in": "body",
|
|
1891
|
+
"name": "name"
|
|
1892
|
+
},
|
|
1893
|
+
{
|
|
1894
|
+
"in": "body",
|
|
1895
|
+
"name": "parentId"
|
|
1896
|
+
}
|
|
1897
|
+
],
|
|
1898
|
+
"path": "/content/folders",
|
|
1899
|
+
"readOnly": false
|
|
1900
|
+
},
|
|
1901
|
+
"delete": {
|
|
1902
|
+
"level": "admin",
|
|
1903
|
+
"method": "DELETE",
|
|
1904
|
+
"operationKey": "content_folders_delete",
|
|
1905
|
+
"params": [
|
|
1906
|
+
{
|
|
1907
|
+
"in": "path",
|
|
1908
|
+
"name": "folderId"
|
|
1909
|
+
}
|
|
1910
|
+
],
|
|
1911
|
+
"path": "/content/folders/:folderId",
|
|
1912
|
+
"readOnly": false
|
|
1913
|
+
},
|
|
1914
|
+
"list": {
|
|
1915
|
+
"level": "read",
|
|
1916
|
+
"method": "GET",
|
|
1917
|
+
"operationKey": "content_folders_list",
|
|
1918
|
+
"path": "/content/folders",
|
|
1919
|
+
"readOnly": true
|
|
1920
|
+
},
|
|
1921
|
+
"update": {
|
|
1922
|
+
"level": "write",
|
|
1923
|
+
"method": "PATCH",
|
|
1924
|
+
"operationKey": "content_folders_update",
|
|
1925
|
+
"params": [
|
|
1926
|
+
{
|
|
1927
|
+
"in": "path",
|
|
1928
|
+
"name": "folderId"
|
|
1929
|
+
},
|
|
1930
|
+
{
|
|
1931
|
+
"in": "body",
|
|
1932
|
+
"name": "name"
|
|
1933
|
+
},
|
|
1934
|
+
{
|
|
1935
|
+
"in": "body",
|
|
1936
|
+
"name": "parentId"
|
|
1937
|
+
},
|
|
1938
|
+
{
|
|
1939
|
+
"in": "body",
|
|
1940
|
+
"name": "beforeFolderId"
|
|
1941
|
+
}
|
|
1942
|
+
],
|
|
1943
|
+
"path": "/content/folders/:folderId",
|
|
1944
|
+
"readOnly": false
|
|
1945
|
+
}
|
|
1946
|
+
},
|
|
1883
1947
|
"media": {
|
|
1884
1948
|
"finalize": {
|
|
1885
1949
|
"level": "write",
|
|
@@ -2038,6 +2102,18 @@ var bindings = {
|
|
|
2038
2102
|
"method": "POST",
|
|
2039
2103
|
"operationKey": "content_posts_create",
|
|
2040
2104
|
"params": [
|
|
2105
|
+
{
|
|
2106
|
+
"in": "body",
|
|
2107
|
+
"name": "title"
|
|
2108
|
+
},
|
|
2109
|
+
{
|
|
2110
|
+
"in": "body",
|
|
2111
|
+
"name": "notes"
|
|
2112
|
+
},
|
|
2113
|
+
{
|
|
2114
|
+
"in": "body",
|
|
2115
|
+
"name": "folderId"
|
|
2116
|
+
},
|
|
2041
2117
|
{
|
|
2042
2118
|
"in": "body",
|
|
2043
2119
|
"name": "text"
|
|
@@ -2054,6 +2130,19 @@ var bindings = {
|
|
|
2054
2130
|
"path": "/content/posts",
|
|
2055
2131
|
"readOnly": false
|
|
2056
2132
|
},
|
|
2133
|
+
"delete": {
|
|
2134
|
+
"level": "admin",
|
|
2135
|
+
"method": "POST",
|
|
2136
|
+
"operationKey": "content_posts_delete",
|
|
2137
|
+
"params": [
|
|
2138
|
+
{
|
|
2139
|
+
"in": "path",
|
|
2140
|
+
"name": "postId"
|
|
2141
|
+
}
|
|
2142
|
+
],
|
|
2143
|
+
"path": "/content/posts/:postId/delete",
|
|
2144
|
+
"readOnly": false
|
|
2145
|
+
},
|
|
2057
2146
|
"get": {
|
|
2058
2147
|
"level": "read",
|
|
2059
2148
|
"method": "GET",
|
|
@@ -2076,6 +2165,10 @@ var bindings = {
|
|
|
2076
2165
|
"in": "query",
|
|
2077
2166
|
"name": "status"
|
|
2078
2167
|
},
|
|
2168
|
+
{
|
|
2169
|
+
"in": "query",
|
|
2170
|
+
"name": "folderId"
|
|
2171
|
+
},
|
|
2079
2172
|
{
|
|
2080
2173
|
"in": "query",
|
|
2081
2174
|
"name": "limit"
|
|
@@ -2088,6 +2181,27 @@ var bindings = {
|
|
|
2088
2181
|
"path": "/content/posts",
|
|
2089
2182
|
"readOnly": true
|
|
2090
2183
|
},
|
|
2184
|
+
"move": {
|
|
2185
|
+
"level": "admin",
|
|
2186
|
+
"method": "POST",
|
|
2187
|
+
"operationKey": "content_posts_move",
|
|
2188
|
+
"params": [
|
|
2189
|
+
{
|
|
2190
|
+
"in": "path",
|
|
2191
|
+
"name": "postId"
|
|
2192
|
+
},
|
|
2193
|
+
{
|
|
2194
|
+
"in": "body",
|
|
2195
|
+
"name": "folderId"
|
|
2196
|
+
},
|
|
2197
|
+
{
|
|
2198
|
+
"in": "body",
|
|
2199
|
+
"name": "beforePostId"
|
|
2200
|
+
}
|
|
2201
|
+
],
|
|
2202
|
+
"path": "/content/posts/:postId/move",
|
|
2203
|
+
"readOnly": false
|
|
2204
|
+
},
|
|
2091
2205
|
"submit": {
|
|
2092
2206
|
"level": "write",
|
|
2093
2207
|
"method": "POST",
|
|
@@ -2110,6 +2224,14 @@ var bindings = {
|
|
|
2110
2224
|
"in": "path",
|
|
2111
2225
|
"name": "id"
|
|
2112
2226
|
},
|
|
2227
|
+
{
|
|
2228
|
+
"in": "body",
|
|
2229
|
+
"name": "title"
|
|
2230
|
+
},
|
|
2231
|
+
{
|
|
2232
|
+
"in": "body",
|
|
2233
|
+
"name": "notes"
|
|
2234
|
+
},
|
|
2113
2235
|
{
|
|
2114
2236
|
"in": "body",
|
|
2115
2237
|
"name": "text"
|
|
@@ -2178,6 +2300,34 @@ var bindings = {
|
|
|
2178
2300
|
"readOnly": false
|
|
2179
2301
|
}
|
|
2180
2302
|
},
|
|
2303
|
+
"posts-to": {
|
|
2304
|
+
"draft": {
|
|
2305
|
+
"level": "write",
|
|
2306
|
+
"method": "POST",
|
|
2307
|
+
"operationKey": "content_posts_to_draft",
|
|
2308
|
+
"params": [
|
|
2309
|
+
{
|
|
2310
|
+
"in": "path",
|
|
2311
|
+
"name": "postId"
|
|
2312
|
+
}
|
|
2313
|
+
],
|
|
2314
|
+
"path": "/content/posts/:postId/to-draft",
|
|
2315
|
+
"readOnly": false
|
|
2316
|
+
},
|
|
2317
|
+
"idea": {
|
|
2318
|
+
"level": "write",
|
|
2319
|
+
"method": "POST",
|
|
2320
|
+
"operationKey": "content_posts_to_idea",
|
|
2321
|
+
"params": [
|
|
2322
|
+
{
|
|
2323
|
+
"in": "path",
|
|
2324
|
+
"name": "postId"
|
|
2325
|
+
}
|
|
2326
|
+
],
|
|
2327
|
+
"path": "/content/posts/:postId/to-idea",
|
|
2328
|
+
"readOnly": false
|
|
2329
|
+
}
|
|
2330
|
+
},
|
|
2181
2331
|
"publications": {
|
|
2182
2332
|
"cancel": {
|
|
2183
2333
|
"level": "write",
|
|
@@ -11900,6 +12050,10 @@ var operations = {
|
|
|
11900
12050
|
"content_channels_resume": "write",
|
|
11901
12051
|
"content_channels_unbind": "write",
|
|
11902
12052
|
"content_channels_update": "write",
|
|
12053
|
+
"content_folders_create": "write",
|
|
12054
|
+
"content_folders_delete": "admin",
|
|
12055
|
+
"content_folders_list": "read",
|
|
12056
|
+
"content_folders_update": "write",
|
|
11903
12057
|
"content_media_create_upload_url": "write",
|
|
11904
12058
|
"content_media_finalize": "write",
|
|
11905
12059
|
"content_media_get": "read",
|
|
@@ -11910,10 +12064,14 @@ var operations = {
|
|
|
11910
12064
|
"content_posts_approve": "write",
|
|
11911
12065
|
"content_posts_attach_media": "write",
|
|
11912
12066
|
"content_posts_create": "write",
|
|
12067
|
+
"content_posts_delete": "admin",
|
|
11913
12068
|
"content_posts_detach_media": "write",
|
|
11914
12069
|
"content_posts_get": "read",
|
|
11915
12070
|
"content_posts_list": "read",
|
|
12071
|
+
"content_posts_move": "admin",
|
|
11916
12072
|
"content_posts_submit": "write",
|
|
12073
|
+
"content_posts_to_draft": "write",
|
|
12074
|
+
"content_posts_to_idea": "write",
|
|
11917
12075
|
"content_posts_update": "write",
|
|
11918
12076
|
"content_posts_versions": "read",
|
|
11919
12077
|
"content_publications_cancel": "write",
|
|
@@ -12452,10 +12610,10 @@ var compositions = {
|
|
|
12452
12610
|
"brain_memory_update": { "pii": ["input.content"], "label": "Update memory", "options": { "memory_id": "brain_memory_list" } },
|
|
12453
12611
|
"brain_usage_report": { "label": "Get usage report" },
|
|
12454
12612
|
"content_metrics_post_series": { "label": "Read post metrics", "options": { "id": "content_publications_list" } },
|
|
12455
|
-
"content_posts_create": { "pii": ["output.author", "output.text", "output.media", "output.targets"], "label": "Create
|
|
12456
|
-
"content_posts_get": { "pii": ["output.author", "output.text", "output.media", "output.targets"], "label": "Get post", "options": { "id": "content_posts_list" } },
|
|
12457
|
-
"content_posts_list": { "pii": ["output.posts[].author", "output.posts[].text", "output.posts[].media", "output.posts[].targets"], "label": "List posts" },
|
|
12458
|
-
"content_posts_submit": { "pii": ["output.author", "output.text", "output.media", "output.targets"], "label": "Submit post for approval", "options": { "id": "content_posts_list" } },
|
|
12613
|
+
"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" },
|
|
12614
|
+
"content_posts_get": { "pii": ["output.author", "output.title", "output.notes", "output.text", "output.media", "output.targets"], "label": "Get post", "options": { "id": "content_posts_list" } },
|
|
12615
|
+
"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" },
|
|
12616
|
+
"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" } },
|
|
12459
12617
|
"content_publications_cancel": { "label": "Cancel publication", "options": { "id": "content_publications_list" } },
|
|
12460
12618
|
"content_publications_publish": { "label": "Publish now", "options": { "postId": "content_posts_list", "channelId": "content_channels_list" }, "completion_event": "content/publication.settled" },
|
|
12461
12619
|
"content_publications_schedule": { "label": "Schedule publication", "options": { "postId": "content_posts_list", "channelId": "content_channels_list" }, "completion_event": "content/publication.settled" },
|