@lessly/sdk-app 97.5.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.
Files changed (35) hide show
  1. package/CHANGELOG.md +88 -5
  2. package/dist/_types/gen/client.gen.d.ts +13 -38
  3. package/dist/_types/gen/content/index.d.ts +1 -1
  4. package/dist/_types/gen/content/queryOptions.gen.d.ts +33 -1
  5. package/dist/_types/gen/manifest.gen.d.ts +1 -1
  6. package/dist/_types/gen/types.gen.d.ts +612 -360
  7. package/dist/content/index.cjs +40 -0
  8. package/dist/content/index.cjs.map +1 -1
  9. package/dist/content/index.js +33 -1
  10. package/dist/content/index.js.map +1 -1
  11. package/dist/index.cjs +162 -231
  12. package/dist/index.cjs.map +1 -1
  13. package/dist/index.js +11731 -26
  14. package/dist/index.js.map +1 -1
  15. package/package.json +2 -12
  16. package/src/gen/bindings.gen.ts +151 -216
  17. package/src/gen/client.gen.ts +28 -71
  18. package/src/gen/content/index.ts +1 -1
  19. package/src/gen/content/queryOptions.gen.ts +49 -0
  20. package/src/gen/manifest.gen.ts +13 -25
  21. package/src/gen/types.gen.ts +627 -404
  22. package/dist/_types/gen/playground/connect.gen.d.ts +0 -3
  23. package/dist/_types/gen/playground/index.d.ts +0 -3
  24. package/dist/_types/gen/playground/queryOptions.gen.d.ts +0 -70
  25. package/dist/chunk-2ZWQTRUQ.js +0 -11788
  26. package/dist/chunk-2ZWQTRUQ.js.map +0 -1
  27. package/dist/playground/index.cjs +0 -106
  28. package/dist/playground/index.cjs.map +0 -1
  29. package/dist/playground/index.d.cts +0 -1
  30. package/dist/playground/index.d.ts +0 -1
  31. package/dist/playground/index.js +0 -78
  32. package/dist/playground/index.js.map +0 -1
  33. package/src/gen/playground/connect.gen.ts +0 -9
  34. package/src/gen/playground/index.ts +0 -4
  35. package/src/gen/playground/queryOptions.gen.ts +0 -119
package/dist/index.cjs CHANGED
@@ -1882,6 +1882,70 @@ var bindings = {
1882
1882
  "readOnly": false
1883
1883
  }
1884
1884
  },
1885
+ "folders": {
1886
+ "create": {
1887
+ "level": "write",
1888
+ "method": "POST",
1889
+ "operationKey": "content_folders_create",
1890
+ "params": [
1891
+ {
1892
+ "in": "body",
1893
+ "name": "name"
1894
+ },
1895
+ {
1896
+ "in": "body",
1897
+ "name": "parentId"
1898
+ }
1899
+ ],
1900
+ "path": "/content/folders",
1901
+ "readOnly": false
1902
+ },
1903
+ "delete": {
1904
+ "level": "admin",
1905
+ "method": "DELETE",
1906
+ "operationKey": "content_folders_delete",
1907
+ "params": [
1908
+ {
1909
+ "in": "path",
1910
+ "name": "folderId"
1911
+ }
1912
+ ],
1913
+ "path": "/content/folders/:folderId",
1914
+ "readOnly": false
1915
+ },
1916
+ "list": {
1917
+ "level": "read",
1918
+ "method": "GET",
1919
+ "operationKey": "content_folders_list",
1920
+ "path": "/content/folders",
1921
+ "readOnly": true
1922
+ },
1923
+ "update": {
1924
+ "level": "write",
1925
+ "method": "PATCH",
1926
+ "operationKey": "content_folders_update",
1927
+ "params": [
1928
+ {
1929
+ "in": "path",
1930
+ "name": "folderId"
1931
+ },
1932
+ {
1933
+ "in": "body",
1934
+ "name": "name"
1935
+ },
1936
+ {
1937
+ "in": "body",
1938
+ "name": "parentId"
1939
+ },
1940
+ {
1941
+ "in": "body",
1942
+ "name": "beforeFolderId"
1943
+ }
1944
+ ],
1945
+ "path": "/content/folders/:folderId",
1946
+ "readOnly": false
1947
+ }
1948
+ },
1885
1949
  "media": {
1886
1950
  "finalize": {
1887
1951
  "level": "write",
@@ -2040,6 +2104,18 @@ var bindings = {
2040
2104
  "method": "POST",
2041
2105
  "operationKey": "content_posts_create",
2042
2106
  "params": [
2107
+ {
2108
+ "in": "body",
2109
+ "name": "title"
2110
+ },
2111
+ {
2112
+ "in": "body",
2113
+ "name": "notes"
2114
+ },
2115
+ {
2116
+ "in": "body",
2117
+ "name": "folderId"
2118
+ },
2043
2119
  {
2044
2120
  "in": "body",
2045
2121
  "name": "text"
@@ -2056,6 +2132,19 @@ var bindings = {
2056
2132
  "path": "/content/posts",
2057
2133
  "readOnly": false
2058
2134
  },
2135
+ "delete": {
2136
+ "level": "admin",
2137
+ "method": "POST",
2138
+ "operationKey": "content_posts_delete",
2139
+ "params": [
2140
+ {
2141
+ "in": "path",
2142
+ "name": "postId"
2143
+ }
2144
+ ],
2145
+ "path": "/content/posts/:postId/delete",
2146
+ "readOnly": false
2147
+ },
2059
2148
  "get": {
2060
2149
  "level": "read",
2061
2150
  "method": "GET",
@@ -2078,6 +2167,10 @@ var bindings = {
2078
2167
  "in": "query",
2079
2168
  "name": "status"
2080
2169
  },
2170
+ {
2171
+ "in": "query",
2172
+ "name": "folderId"
2173
+ },
2081
2174
  {
2082
2175
  "in": "query",
2083
2176
  "name": "limit"
@@ -2090,6 +2183,27 @@ var bindings = {
2090
2183
  "path": "/content/posts",
2091
2184
  "readOnly": true
2092
2185
  },
2186
+ "move": {
2187
+ "level": "admin",
2188
+ "method": "POST",
2189
+ "operationKey": "content_posts_move",
2190
+ "params": [
2191
+ {
2192
+ "in": "path",
2193
+ "name": "postId"
2194
+ },
2195
+ {
2196
+ "in": "body",
2197
+ "name": "folderId"
2198
+ },
2199
+ {
2200
+ "in": "body",
2201
+ "name": "beforePostId"
2202
+ }
2203
+ ],
2204
+ "path": "/content/posts/:postId/move",
2205
+ "readOnly": false
2206
+ },
2093
2207
  "submit": {
2094
2208
  "level": "write",
2095
2209
  "method": "POST",
@@ -2112,6 +2226,14 @@ var bindings = {
2112
2226
  "in": "path",
2113
2227
  "name": "id"
2114
2228
  },
2229
+ {
2230
+ "in": "body",
2231
+ "name": "title"
2232
+ },
2233
+ {
2234
+ "in": "body",
2235
+ "name": "notes"
2236
+ },
2115
2237
  {
2116
2238
  "in": "body",
2117
2239
  "name": "text"
@@ -2180,6 +2302,34 @@ var bindings = {
2180
2302
  "readOnly": false
2181
2303
  }
2182
2304
  },
2305
+ "posts-to": {
2306
+ "draft": {
2307
+ "level": "write",
2308
+ "method": "POST",
2309
+ "operationKey": "content_posts_to_draft",
2310
+ "params": [
2311
+ {
2312
+ "in": "path",
2313
+ "name": "postId"
2314
+ }
2315
+ ],
2316
+ "path": "/content/posts/:postId/to-draft",
2317
+ "readOnly": false
2318
+ },
2319
+ "idea": {
2320
+ "level": "write",
2321
+ "method": "POST",
2322
+ "operationKey": "content_posts_to_idea",
2323
+ "params": [
2324
+ {
2325
+ "in": "path",
2326
+ "name": "postId"
2327
+ }
2328
+ ],
2329
+ "path": "/content/posts/:postId/to-idea",
2330
+ "readOnly": false
2331
+ }
2332
+ },
2183
2333
  "publications": {
2184
2334
  "cancel": {
2185
2335
  "level": "write",
@@ -7739,213 +7889,6 @@ var bindings = {
7739
7889
  }
7740
7890
  }
7741
7891
  },
7742
- "playground": {
7743
- "analytics": {
7744
- "overview": {
7745
- "level": "read",
7746
- "method": "POST",
7747
- "operationKey": "playground_analytics_overview",
7748
- "params": [
7749
- {
7750
- "in": "body",
7751
- "name": "limit"
7752
- }
7753
- ],
7754
- "path": "/playground/analytics/overview",
7755
- "readOnly": true
7756
- }
7757
- },
7758
- "billing": {
7759
- "entitlements": {
7760
- "level": "read",
7761
- "method": "POST",
7762
- "operationKey": "playground_billing_entitlements",
7763
- "path": "/playground/billing/entitlements",
7764
- "readOnly": true
7765
- },
7766
- "record-usage": {
7767
- "level": "write",
7768
- "method": "POST",
7769
- "operationKey": "playground_billing_record-usage",
7770
- "params": [
7771
- {
7772
- "in": "body",
7773
- "name": "value"
7774
- }
7775
- ],
7776
- "path": "/playground/billing/usage",
7777
- "readOnly": false
7778
- }
7779
- },
7780
- "clickup": {
7781
- "create-task": {
7782
- "level": "write",
7783
- "method": "POST",
7784
- "operationKey": "playground_clickup_create-task",
7785
- "params": [
7786
- {
7787
- "in": "body",
7788
- "name": "listId"
7789
- },
7790
- {
7791
- "in": "body",
7792
- "name": "name"
7793
- }
7794
- ],
7795
- "path": "/playground/clickup/tasks",
7796
- "readOnly": false
7797
- },
7798
- "get-last-webhook": {
7799
- "level": "read",
7800
- "method": "GET",
7801
- "operationKey": "playground_clickup_get-last-webhook",
7802
- "path": "/playground/clickup/webhooks/last",
7803
- "readOnly": true
7804
- },
7805
- "get-overview": {
7806
- "level": "read",
7807
- "method": "GET",
7808
- "operationKey": "playground_clickup_get-overview",
7809
- "path": "/playground/clickup/overview",
7810
- "readOnly": true
7811
- }
7812
- },
7813
- "echo": {
7814
- "ping": {
7815
- "level": "read",
7816
- "method": "POST",
7817
- "operationKey": "playground_echo_ping",
7818
- "params": [
7819
- {
7820
- "in": "body",
7821
- "name": "message"
7822
- }
7823
- ],
7824
- "path": "/playground/echo/ping",
7825
- "readOnly": true
7826
- }
7827
- },
7828
- "gdrive": {
7829
- "get-last-change": {
7830
- "level": "read",
7831
- "method": "GET",
7832
- "operationKey": "playground_gdrive_get-last-change",
7833
- "path": "/playground/gdrive/changes/last",
7834
- "readOnly": true
7835
- },
7836
- "read-file": {
7837
- "level": "read",
7838
- "method": "POST",
7839
- "operationKey": "playground_gdrive_read-file",
7840
- "params": [
7841
- {
7842
- "in": "body",
7843
- "name": "fileId"
7844
- }
7845
- ],
7846
- "path": "/playground/gdrive/file",
7847
- "readOnly": true
7848
- }
7849
- },
7850
- "googleads": {
7851
- "read-customer": {
7852
- "level": "read",
7853
- "method": "POST",
7854
- "operationKey": "playground_googleads_read-customer",
7855
- "path": "/playground/googleads/customer",
7856
- "readOnly": true
7857
- }
7858
- },
7859
- "lifecycle": {
7860
- "get-state": {
7861
- "level": "read",
7862
- "method": "GET",
7863
- "operationKey": "playground_lifecycle_get-state",
7864
- "path": "/playground/lifecycle/state",
7865
- "readOnly": true
7866
- },
7867
- "list-events": {
7868
- "level": "read",
7869
- "method": "GET",
7870
- "operationKey": "playground_lifecycle_list-events",
7871
- "path": "/playground/lifecycle/events",
7872
- "readOnly": true
7873
- }
7874
- },
7875
- "webhook": {
7876
- "get-last": {
7877
- "level": "read",
7878
- "method": "GET",
7879
- "operationKey": "playground_webhook_get-last",
7880
- "path": "/playground/webhooks/last",
7881
- "readOnly": true
7882
- }
7883
- },
7884
- "workflow": {
7885
- "echo": {
7886
- "level": "write",
7887
- "method": "POST",
7888
- "operationKey": "playground_workflow_echo",
7889
- "params": [
7890
- {
7891
- "in": "body",
7892
- "name": "note"
7893
- },
7894
- {
7895
- "in": "body",
7896
- "name": "tags"
7897
- }
7898
- ],
7899
- "path": "/playground/workflow/echo",
7900
- "readOnly": false
7901
- },
7902
- "echo-list": {
7903
- "level": "read",
7904
- "method": "GET",
7905
- "operationKey": "playground_workflow_echo-list",
7906
- "path": "/playground/workflow/echoes",
7907
- "readOnly": true
7908
- },
7909
- "ping": {
7910
- "level": "write",
7911
- "method": "POST",
7912
- "operationKey": "playground_workflow_ping",
7913
- "params": [
7914
- {
7915
- "in": "body",
7916
- "name": "kind"
7917
- }
7918
- ],
7919
- "path": "/playground/workflow/ping",
7920
- "readOnly": false
7921
- },
7922
- "subjects-list": {
7923
- "level": "read",
7924
- "method": "GET",
7925
- "operationKey": "playground_workflow_subjects-list",
7926
- "params": [
7927
- {
7928
- "in": "query",
7929
- "name": "last_activity_before"
7930
- },
7931
- {
7932
- "in": "query",
7933
- "name": "last_activity_after"
7934
- },
7935
- {
7936
- "in": "query",
7937
- "name": "limit"
7938
- },
7939
- {
7940
- "in": "query",
7941
- "name": "cursor"
7942
- }
7943
- ],
7944
- "path": "/playground/workflow/subjects",
7945
- "readOnly": true
7946
- }
7947
- }
7948
- },
7949
7892
  "realtime": {
7950
7893
  "archive": {
7951
7894
  "export": {
@@ -12109,6 +12052,10 @@ var operations = {
12109
12052
  "content_channels_resume": "write",
12110
12053
  "content_channels_unbind": "write",
12111
12054
  "content_channels_update": "write",
12055
+ "content_folders_create": "write",
12056
+ "content_folders_delete": "admin",
12057
+ "content_folders_list": "read",
12058
+ "content_folders_update": "write",
12112
12059
  "content_media_create_upload_url": "write",
12113
12060
  "content_media_finalize": "write",
12114
12061
  "content_media_get": "read",
@@ -12119,10 +12066,14 @@ var operations = {
12119
12066
  "content_posts_approve": "write",
12120
12067
  "content_posts_attach_media": "write",
12121
12068
  "content_posts_create": "write",
12069
+ "content_posts_delete": "admin",
12122
12070
  "content_posts_detach_media": "write",
12123
12071
  "content_posts_get": "read",
12124
12072
  "content_posts_list": "read",
12073
+ "content_posts_move": "admin",
12125
12074
  "content_posts_submit": "write",
12075
+ "content_posts_to_draft": "write",
12076
+ "content_posts_to_idea": "write",
12126
12077
  "content_posts_update": "write",
12127
12078
  "content_posts_versions": "read",
12128
12079
  "content_publications_cancel": "write",
@@ -12431,23 +12382,6 @@ var operations = {
12431
12382
  "organization_support_threads_list": "read",
12432
12383
  "organization_x_install": "read",
12433
12384
  "organization_youtube_install": "read",
12434
- "playground_analytics_overview": "read",
12435
- "playground_billing_entitlements": "read",
12436
- "playground_billing_record-usage": "write",
12437
- "playground_clickup_create-task": "write",
12438
- "playground_clickup_get-last-webhook": "read",
12439
- "playground_clickup_get-overview": "read",
12440
- "playground_echo_ping": "read",
12441
- "playground_gdrive_get-last-change": "read",
12442
- "playground_gdrive_read-file": "read",
12443
- "playground_googleads_read-customer": "read",
12444
- "playground_lifecycle_get-state": "read",
12445
- "playground_lifecycle_list-events": "read",
12446
- "playground_webhook_get-last": "read",
12447
- "playground_workflow_echo": "write",
12448
- "playground_workflow_echo-list": "read",
12449
- "playground_workflow_ping": "write",
12450
- "playground_workflow_subjects-list": "read",
12451
12385
  "realtime_archive_export": "admin",
12452
12386
  "realtime_archive_export_status": "read",
12453
12387
  "realtime_archive_get": "read",
@@ -12678,10 +12612,10 @@ var compositions = {
12678
12612
  "brain_memory_update": { "pii": ["input.content"], "label": "Update memory", "options": { "memory_id": "brain_memory_list" } },
12679
12613
  "brain_usage_report": { "label": "Get usage report" },
12680
12614
  "content_metrics_post_series": { "label": "Read post metrics", "options": { "id": "content_publications_list" } },
12681
- "content_posts_create": { "pii": ["output.author", "output.text", "output.media", "output.targets"], "label": "Create draft post" },
12682
- "content_posts_get": { "pii": ["output.author", "output.text", "output.media", "output.targets"], "label": "Get post", "options": { "id": "content_posts_list" } },
12683
- "content_posts_list": { "pii": ["output.posts[].author", "output.posts[].text", "output.posts[].media", "output.posts[].targets"], "label": "List posts" },
12684
- "content_posts_submit": { "pii": ["output.author", "output.text", "output.media", "output.targets"], "label": "Submit post for approval", "options": { "id": "content_posts_list" } },
12615
+ "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" },
12616
+ "content_posts_get": { "pii": ["output.author", "output.title", "output.notes", "output.text", "output.media", "output.targets"], "label": "Get post", "options": { "id": "content_posts_list" } },
12617
+ "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" },
12618
+ "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" } },
12685
12619
  "content_publications_cancel": { "label": "Cancel publication", "options": { "id": "content_publications_list" } },
12686
12620
  "content_publications_publish": { "label": "Publish now", "options": { "postId": "content_posts_list", "channelId": "content_channels_list" }, "completion_event": "content/publication.settled" },
12687
12621
  "content_publications_schedule": { "label": "Schedule publication", "options": { "postId": "content_posts_list", "channelId": "content_channels_list" }, "completion_event": "content/publication.settled" },
@@ -12732,9 +12666,6 @@ var compositions = {
12732
12666
  "mail_template_unarchive": { "label": "Unarchive template", "options": { "id": "mail_template_list" } },
12733
12667
  "mail_template_update": { "label": "Update template", "options": { "id": "mail_template_list" } },
12734
12668
  "mail_usage_get": { "label": "Get usage" },
12735
- "playground_workflow_echo": { "pii": ["input.note", "output.note"], "label": "Store workflow echo", "completion_event": "playground/workflow.echoed" },
12736
- "playground_workflow_ping": { "label": "Fire workflow ping", "completion_event": "playground/workflow.ping" },
12737
- "playground_workflow_subjects-list": { "pii": ["output.items[].display_name"], "label": "List workflow subjects" },
12738
12669
  "support_agent_create": { "pii": ["input.lesslyUserId", "output.lesslyUserId"], "label": "Create agent" },
12739
12670
  "support_agent_get": { "pii": ["output.lesslyUserId"], "label": "Get agent", "options": { "id": "support_agent_list" } },
12740
12671
  "support_agent_list": { "pii": ["output.agents[].lesslyUserId"], "label": "List agents" },