@lessly/sdk-app 74.8.0 → 75.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.
@@ -73105,7 +73105,7 @@ export interface ContentMetricsChannelSeriesOutput {
73105
73105
  /**
73106
73106
  * The network the channel publishes to.
73107
73107
  */
73108
- network: string;
73108
+ network: ("linkedin" | "x" | "youtube" | "instagram" | "reddit");
73109
73109
  /**
73110
73110
  * What this network reports for this account. "none" means no snapshot will ever be taken — a personal Instagram profile has no API at all; "basic" means fewer numbers than a business account gets, so an absent metric is the network's silence, not a zero.
73111
73111
  */
@@ -73134,6 +73134,39 @@ export interface ContentMetricsPostSeriesInput {
73134
73134
  limit?: number;
73135
73135
  }
73136
73136
  export interface ContentMetricsPostSeriesOutput {
73137
+ /**
73138
+ * The newest snapshot as flat, named numbers — what to read when you want "how is this post doing" rather than the whole curve. Null when nothing has been captured yet.
73139
+ */
73140
+ latest: ({
73141
+ /**
73142
+ * Likes. Null when this network does not report it.
73143
+ */
73144
+ likes: (number | null);
73145
+ /**
73146
+ * Plays, on a video surface. Distinct from impressions — YouTube reports one, not both. Null when this network does not report it.
73147
+ */
73148
+ views: (number | null);
73149
+ /**
73150
+ * Clicks on the post or its link. Null when this network does not report it.
73151
+ */
73152
+ clicks: (number | null);
73153
+ /**
73154
+ * Reposts, retweets, shares — whatever the network calls passing it on. Null when this network does not report it.
73155
+ */
73156
+ shares: (number | null);
73157
+ /**
73158
+ * Comments or replies. Null when this network does not report it.
73159
+ */
73160
+ comments: (number | null);
73161
+ /**
73162
+ * ISO-8601 time this snapshot was taken.
73163
+ */
73164
+ capturedAt: string;
73165
+ /**
73166
+ * Times the post was served. Null when this network does not report it.
73167
+ */
73168
+ impressions: (number | null);
73169
+ } | null);
73137
73170
  /**
73138
73171
  * Snapshots oldest first. Readings over time, not a current value: reach keeps growing for weeks. Empty means nothing has been captured yet.
73139
73172
  */
@@ -73150,9 +73183,9 @@ export interface ContentMetricsPostSeriesOutput {
73150
73183
  capturedAt: string;
73151
73184
  }[];
73152
73185
  /**
73153
- * The network the channel publishes to.
73186
+ * The network the channel publishes to. "unknown" means the channel behind this publication can no longer be read — the publication outlives the channel binding.
73154
73187
  */
73155
- network: string;
73188
+ network: ("linkedin" | "x" | "youtube" | "instagram" | "reddit" | "unknown");
73156
73189
  /**
73157
73190
  * What this network reports for this account. "none" means no snapshot will ever be taken — a personal Instagram profile has no API at all; "basic" means fewer numbers than a business account gets, so an absent metric is the network's silence, not a zero.
73158
73191
  */
@@ -73642,9 +73675,9 @@ export interface ContentPublicationsCancelOutput {
73642
73675
  */
73643
73676
  channelId: string;
73644
73677
  /**
73645
- * Which rate produced costUsd: "plain", "link" or "free".
73678
+ * Which rate produced costUsd: `plain` the flat per-post rate, `link` the higher rate a post carrying a link is charged, `free` a channel whose rates are both zero. Null when the cost is not known.
73646
73679
  */
73647
- costBasis: (string | null);
73680
+ costBasis: (("plain" | "link" | "free") | null);
73648
73681
  /**
73649
73682
  * ISO-8601 creation time.
73650
73683
  */
@@ -73673,6 +73706,10 @@ export interface ContentPublicationsCancelOutput {
73673
73706
  * ISO-8601 time the publication is due.
73674
73707
  */
73675
73708
  scheduledAt: string;
73709
+ /**
73710
+ * The publication id again, under the name the content/publication.settled event uses to report this publication finishing. Always identical to id.
73711
+ */
73712
+ publicationId: string;
73676
73713
  /**
73677
73714
  * How many reminders have been sent for this publication.
73678
73715
  */
@@ -73730,9 +73767,9 @@ export interface ContentPublicationsConfirmOutput {
73730
73767
  */
73731
73768
  channelId: string;
73732
73769
  /**
73733
- * Which rate produced costUsd: "plain", "link" or "free".
73770
+ * Which rate produced costUsd: `plain` the flat per-post rate, `link` the higher rate a post carrying a link is charged, `free` a channel whose rates are both zero. Null when the cost is not known.
73734
73771
  */
73735
- costBasis: (string | null);
73772
+ costBasis: (("plain" | "link" | "free") | null);
73736
73773
  /**
73737
73774
  * ISO-8601 creation time.
73738
73775
  */
@@ -73761,6 +73798,10 @@ export interface ContentPublicationsConfirmOutput {
73761
73798
  * ISO-8601 time the publication is due.
73762
73799
  */
73763
73800
  scheduledAt: string;
73801
+ /**
73802
+ * The publication id again, under the name the content/publication.settled event uses to report this publication finishing. Always identical to id.
73803
+ */
73804
+ publicationId: string;
73764
73805
  /**
73765
73806
  * How many reminders have been sent for this publication.
73766
73807
  */
@@ -73810,9 +73851,9 @@ export interface ContentPublicationsGetOutput {
73810
73851
  */
73811
73852
  channelId: string;
73812
73853
  /**
73813
- * Which rate produced costUsd: "plain", "link" or "free".
73854
+ * Which rate produced costUsd: `plain` the flat per-post rate, `link` the higher rate a post carrying a link is charged, `free` a channel whose rates are both zero. Null when the cost is not known.
73814
73855
  */
73815
- costBasis: (string | null);
73856
+ costBasis: (("plain" | "link" | "free") | null);
73816
73857
  /**
73817
73858
  * ISO-8601 creation time.
73818
73859
  */
@@ -73841,6 +73882,10 @@ export interface ContentPublicationsGetOutput {
73841
73882
  * ISO-8601 time the publication is due.
73842
73883
  */
73843
73884
  scheduledAt: string;
73885
+ /**
73886
+ * The publication id again, under the name the content/publication.settled event uses to report this publication finishing. Always identical to id.
73887
+ */
73888
+ publicationId: string;
73844
73889
  /**
73845
73890
  * How many reminders have been sent for this publication.
73846
73891
  */
@@ -73922,9 +73967,9 @@ export interface ContentPublicationsListOutput {
73922
73967
  */
73923
73968
  channelId: string;
73924
73969
  /**
73925
- * Which rate produced costUsd: "plain", "link" or "free".
73970
+ * Which rate produced costUsd: `plain` the flat per-post rate, `link` the higher rate a post carrying a link is charged, `free` a channel whose rates are both zero. Null when the cost is not known.
73926
73971
  */
73927
- costBasis: (string | null);
73972
+ costBasis: (("plain" | "link" | "free") | null);
73928
73973
  /**
73929
73974
  * ISO-8601 creation time.
73930
73975
  */
@@ -73953,6 +73998,10 @@ export interface ContentPublicationsListOutput {
73953
73998
  * ISO-8601 time the publication is due.
73954
73999
  */
73955
74000
  scheduledAt: string;
74001
+ /**
74002
+ * The publication id again, under the name the content/publication.settled event uses to report this publication finishing. Always identical to id.
74003
+ */
74004
+ publicationId: string;
73956
74005
  /**
73957
74006
  * How many reminders have been sent for this publication.
73958
74007
  */
@@ -74015,9 +74064,9 @@ export interface ContentPublicationsPublishOutput {
74015
74064
  */
74016
74065
  channelId: string;
74017
74066
  /**
74018
- * Which rate produced costUsd: "plain", "link" or "free".
74067
+ * Which rate produced costUsd: `plain` the flat per-post rate, `link` the higher rate a post carrying a link is charged, `free` a channel whose rates are both zero. Null when the cost is not known.
74019
74068
  */
74020
- costBasis: (string | null);
74069
+ costBasis: (("plain" | "link" | "free") | null);
74021
74070
  /**
74022
74071
  * ISO-8601 creation time.
74023
74072
  */
@@ -74046,6 +74095,10 @@ export interface ContentPublicationsPublishOutput {
74046
74095
  * ISO-8601 time the publication is due.
74047
74096
  */
74048
74097
  scheduledAt: string;
74098
+ /**
74099
+ * The publication id again, under the name the content/publication.settled event uses to report this publication finishing. Always identical to id.
74100
+ */
74101
+ publicationId: string;
74049
74102
  /**
74050
74103
  * How many reminders have been sent for this publication.
74051
74104
  */
@@ -74095,9 +74148,9 @@ export interface ContentPublicationsRemindOutput {
74095
74148
  */
74096
74149
  channelId: string;
74097
74150
  /**
74098
- * Which rate produced costUsd: "plain", "link" or "free".
74151
+ * Which rate produced costUsd: `plain` the flat per-post rate, `link` the higher rate a post carrying a link is charged, `free` a channel whose rates are both zero. Null when the cost is not known.
74099
74152
  */
74100
- costBasis: (string | null);
74153
+ costBasis: (("plain" | "link" | "free") | null);
74101
74154
  /**
74102
74155
  * ISO-8601 creation time.
74103
74156
  */
@@ -74126,6 +74179,10 @@ export interface ContentPublicationsRemindOutput {
74126
74179
  * ISO-8601 time the publication is due.
74127
74180
  */
74128
74181
  scheduledAt: string;
74182
+ /**
74183
+ * The publication id again, under the name the content/publication.settled event uses to report this publication finishing. Always identical to id.
74184
+ */
74185
+ publicationId: string;
74129
74186
  /**
74130
74187
  * How many reminders have been sent for this publication.
74131
74188
  */
@@ -74179,9 +74236,9 @@ export interface ContentPublicationsRescheduleOutput {
74179
74236
  */
74180
74237
  channelId: string;
74181
74238
  /**
74182
- * Which rate produced costUsd: "plain", "link" or "free".
74239
+ * Which rate produced costUsd: `plain` the flat per-post rate, `link` the higher rate a post carrying a link is charged, `free` a channel whose rates are both zero. Null when the cost is not known.
74183
74240
  */
74184
- costBasis: (string | null);
74241
+ costBasis: (("plain" | "link" | "free") | null);
74185
74242
  /**
74186
74243
  * ISO-8601 creation time.
74187
74244
  */
@@ -74210,6 +74267,10 @@ export interface ContentPublicationsRescheduleOutput {
74210
74267
  * ISO-8601 time the publication is due.
74211
74268
  */
74212
74269
  scheduledAt: string;
74270
+ /**
74271
+ * The publication id again, under the name the content/publication.settled event uses to report this publication finishing. Always identical to id.
74272
+ */
74273
+ publicationId: string;
74213
74274
  /**
74214
74275
  * How many reminders have been sent for this publication.
74215
74276
  */
@@ -74275,9 +74336,9 @@ export interface ContentPublicationsScheduleOutput {
74275
74336
  */
74276
74337
  channelId: string;
74277
74338
  /**
74278
- * Which rate produced costUsd: "plain", "link" or "free".
74339
+ * Which rate produced costUsd: `plain` the flat per-post rate, `link` the higher rate a post carrying a link is charged, `free` a channel whose rates are both zero. Null when the cost is not known.
74279
74340
  */
74280
- costBasis: (string | null);
74341
+ costBasis: (("plain" | "link" | "free") | null);
74281
74342
  /**
74282
74343
  * ISO-8601 creation time.
74283
74344
  */
@@ -74306,6 +74367,10 @@ export interface ContentPublicationsScheduleOutput {
74306
74367
  * ISO-8601 time the publication is due.
74307
74368
  */
74308
74369
  scheduledAt: string;
74370
+ /**
74371
+ * The publication id again, under the name the content/publication.settled event uses to report this publication finishing. Always identical to id.
74372
+ */
74373
+ publicationId: string;
74309
74374
  /**
74310
74375
  * How many reminders have been sent for this publication.
74311
74376
  */
@@ -76457,6 +76522,10 @@ export interface ContentPublicationsValidateInput {
76457
76522
  scheduledAt?: string;
76458
76523
  }
76459
76524
  export interface ContentPublicationsValidateOutput {
76525
+ /**
76526
+ * True when nothing blocks scheduling. False when any channel carries an issue of severity "error" — the same fact as the issue list below, stated once so it can be branched on.
76527
+ */
76528
+ ok: boolean;
76460
76529
  /**
76461
76530
  * The post that was checked.
76462
76531
  */
@@ -76474,9 +76543,9 @@ export interface ContentPublicationsValidateOutput {
76474
76543
  */
76475
76544
  issues: {
76476
76545
  /**
76477
- * Stable machine code: text_empty, text_too_long, too_many_media, link_not_supported, media_missing, media_not_ready, media_not_supported, cost_unknown, daily_ceiling_exceeded.
76546
+ * Stable machine code for what is wrong: text_empty, text_too_long, too_many_media, link_not_supported, multiple_links, media_missing, media_not_ready, media_not_supported, video_required, cost_unknown, daily_ceiling_exceeded.
76478
76547
  */
76479
- code: string;
76548
+ code: ("text_empty" | "text_too_long" | "too_many_media" | "link_not_supported" | "multiple_links" | "media_missing" | "media_not_ready" | "media_not_supported" | "video_required" | "cost_unknown" | "daily_ceiling_exceeded");
76480
76549
  /**
76481
76550
  * Which input the issue is about, when it is about one.
76482
76551
  */
@@ -76514,15 +76583,15 @@ export interface ContentPublicationsValidateOutput {
76514
76583
  /**
76515
76584
  * The network behind that channel.
76516
76585
  */
76517
- network: string;
76586
+ network: ("linkedin" | "x" | "youtube" | "instagram" | "reddit");
76518
76587
  /**
76519
76588
  * The channel this result is for.
76520
76589
  */
76521
76590
  channelId: string;
76522
76591
  /**
76523
- * Which rate produced costUsd: "plain", "link" or "free".
76592
+ * Which rate produced costUsd: `plain` the flat per-post rate, `link` the higher rate a post carrying a link is charged, `free` a channel whose rates are both zero. Null when the cost cannot be computed.
76524
76593
  */
76525
- costBasis: (string | null);
76594
+ costBasis: (("plain" | "link" | "free") | null);
76526
76595
  /**
76527
76596
  * The channel as a person sees it.
76528
76597
  */
@@ -76532,6 +76601,14 @@ export interface ContentPublicationsValidateOutput {
76532
76601
  */
76533
76602
  renderedText: string;
76534
76603
  }[];
76604
+ /**
76605
+ * How many error-severity issues there are across every channel. Warnings are not counted: they do not block scheduling.
76606
+ */
76607
+ errorCount: number;
76608
+ /**
76609
+ * The first error message in report order, ready to show a person or put in a notification. Null when there are no errors.
76610
+ */
76611
+ firstErrorMessage: (string | null);
76535
76612
  }
76536
76613
  export interface DeploymentAlertCreateInput {
76537
76614
  metric: ("cpu" | "memory" | "net_in" | "net_out" | "disk");
package/dist/index.cjs CHANGED
@@ -12236,8 +12236,10 @@ var compositions = {
12236
12236
  "brain_memory_update": { "pii": ["input.content"], "label": "Update memory" },
12237
12237
  "brain_usage_report": { "label": "Get usage report" },
12238
12238
  "content_metrics_post_series": { "label": "Read post metrics", "options": { "id": "content_publications_list" } },
12239
- "content_posts_create": { "pii": ["output.author"], "label": "Create draft post" },
12240
- "content_posts_submit": { "pii": ["output.author"], "label": "Submit post for approval", "options": { "id": "content_posts_list" } },
12239
+ "content_posts_create": { "pii": ["output.author", "output.text", "output.media"], "label": "Create draft post" },
12240
+ "content_posts_get": { "pii": ["output.author", "output.text", "output.media"], "label": "Get post", "options": { "id": "content_posts_list" } },
12241
+ "content_posts_list": { "pii": ["output.posts[].author", "output.posts[].text", "output.posts[].media"], "label": "List posts" },
12242
+ "content_posts_submit": { "pii": ["output.author", "output.text", "output.media"], "label": "Submit post for approval", "options": { "id": "content_posts_list" } },
12241
12243
  "content_publications_cancel": { "label": "Cancel publication", "options": { "id": "content_publications_list" } },
12242
12244
  "content_publications_publish": { "label": "Publish now", "options": { "postId": "content_posts_list", "channelId": "content_channels_list" }, "completion_event": "content/publication.settled" },
12243
12245
  "content_publications_schedule": { "label": "Schedule publication", "options": { "postId": "content_posts_list", "channelId": "content_channels_list" }, "completion_event": "content/publication.settled" },