@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
@@ -68453,6 +68453,168 @@ capabilities: {
68453
68453
  deliveryMode: ("auto" | "reminder")
68454
68454
  }
68455
68455
 
68456
+ export interface ContentFoldersCreateInput {
68457
+ /**
68458
+ * The folder name, from 1 to 200 characters.
68459
+ */
68460
+ name: string
68461
+ /**
68462
+ * Parent folder id, or null for a root folder. New folders go last among siblings.
68463
+ */
68464
+ parentId?: (string | null)
68465
+ }
68466
+
68467
+ export interface ContentFoldersCreateOutput {
68468
+ /**
68469
+ * Folder id.
68470
+ */
68471
+ id: string
68472
+ /**
68473
+ * Folder name.
68474
+ */
68475
+ name: string
68476
+ /**
68477
+ * Parent folder id, or null at the root.
68478
+ */
68479
+ parentId: (string | null)
68480
+ /**
68481
+ * Order among siblings with the same parent.
68482
+ */
68483
+ position: number
68484
+ /**
68485
+ * ISO-8601 creation time.
68486
+ */
68487
+ createdAt: string
68488
+ /**
68489
+ * ISO-8601 time of the last change.
68490
+ */
68491
+ updatedAt: string
68492
+ }
68493
+
68494
+ export interface ContentFoldersDeleteInput {
68495
+ /**
68496
+ * A folder id from content_folders_list or content_folders_create.
68497
+ */
68498
+ folderId: string
68499
+ }
68500
+
68501
+ export interface ContentFoldersDeleteOutput {
68502
+ /**
68503
+ * True when this empty folder was deleted.
68504
+ */
68505
+ deleted: true
68506
+ /**
68507
+ * A folder id from content_folders_list or content_folders_create.
68508
+ */
68509
+ folderId: string
68510
+ }
68511
+
68512
+ export interface ContentFoldersListInput {
68513
+
68514
+ }
68515
+
68516
+ export interface ContentFoldersListOutput {
68517
+ /**
68518
+ * Flat folder tree; parentId and position describe the hierarchy and order.
68519
+ */
68520
+ folders: {
68521
+ /**
68522
+ * Folder id.
68523
+ */
68524
+ id: string
68525
+ /**
68526
+ * Folder name.
68527
+ */
68528
+ name: string
68529
+ /**
68530
+ * Posts directly in this folder, by status.
68531
+ */
68532
+ counts: {
68533
+ idea: number
68534
+ draft: number
68535
+ failed: number
68536
+ approved: number
68537
+ published: number
68538
+ scheduled: number
68539
+ pending_approval: number
68540
+ }
68541
+ /**
68542
+ * Parent folder id, or null at the root.
68543
+ */
68544
+ parentId: (string | null)
68545
+ /**
68546
+ * Order among siblings with the same parent.
68547
+ */
68548
+ position: number
68549
+ /**
68550
+ * ISO-8601 creation time.
68551
+ */
68552
+ createdAt: string
68553
+ /**
68554
+ * ISO-8601 time of the last change.
68555
+ */
68556
+ updatedAt: string
68557
+ /**
68558
+ * Posts in this folder and all descendants, by status.
68559
+ */
68560
+ totalCounts: {
68561
+ idea: number
68562
+ draft: number
68563
+ failed: number
68564
+ approved: number
68565
+ published: number
68566
+ scheduled: number
68567
+ pending_approval: number
68568
+ }
68569
+ }[]
68570
+ }
68571
+
68572
+ export interface ContentFoldersUpdateInput {
68573
+ /**
68574
+ * New folder name. Omit to keep it.
68575
+ */
68576
+ name?: string
68577
+ /**
68578
+ * A folder id from content_folders_list or content_folders_create.
68579
+ */
68580
+ folderId: string
68581
+ /**
68582
+ * New parent folder id, or null to move to the root. Omit to keep the current parent.
68583
+ */
68584
+ parentId?: (string | null)
68585
+ /**
68586
+ * Insert before this sibling in the target parent. Omit or set null to put the folder last.
68587
+ */
68588
+ beforeFolderId?: (string | null)
68589
+ }
68590
+
68591
+ export interface ContentFoldersUpdateOutput {
68592
+ /**
68593
+ * Folder id.
68594
+ */
68595
+ id: string
68596
+ /**
68597
+ * Folder name.
68598
+ */
68599
+ name: string
68600
+ /**
68601
+ * Parent folder id, or null at the root.
68602
+ */
68603
+ parentId: (string | null)
68604
+ /**
68605
+ * Order among siblings with the same parent.
68606
+ */
68607
+ position: number
68608
+ /**
68609
+ * ISO-8601 creation time.
68610
+ */
68611
+ createdAt: string
68612
+ /**
68613
+ * ISO-8601 time of the last change.
68614
+ */
68615
+ updatedAt: string
68616
+ }
68617
+
68456
68618
  export interface ContentMediaCreateUploadUrlInput {
68457
68619
  /**
68458
68620
  * Name to store the file under, for display purposes.
@@ -68920,14 +69082,22 @@ text: string
68920
69082
  * Media references attached to the current version.
68921
69083
  */
68922
69084
  media: string[]
69085
+ /**
69086
+ * Private plan notes, or null when unset.
69087
+ */
69088
+ notes: (string | null)
69089
+ /**
69090
+ * Plan title, or null when unset.
69091
+ */
69092
+ title: (string | null)
68923
69093
  /**
68924
69094
  * Identity id of whoever composed the post.
68925
69095
  */
68926
69096
  author: string
68927
69097
  /**
68928
- * Post lifecycle status: draft (being written) -> pending_approval (submitted) -> approved (cleared to publish); scheduled/published/failed are set by the publishing pipeline.
69098
+ * Post lifecycle status: idea (may have no text) -> draft (being written) -> pending_approval (submitted) -> approved (cleared to publish); scheduled/published/failed are set by the publishing pipeline.
68929
69099
  */
68930
- status: ("draft" | "pending_approval" | "approved" | "scheduled" | "published" | "failed")
69100
+ status: ("idea" | "draft" | "pending_approval" | "approved" | "scheduled" | "published" | "failed")
68931
69101
  /**
68932
69102
  * The networks this post is meant for, each with its variant.
68933
69103
  */
@@ -68951,6 +69121,14 @@ network: string
68951
69121
  */
68952
69122
  postType: string
68953
69123
  }[]
69124
+ /**
69125
+ * Folder containing this post, or null.
69126
+ */
69127
+ folderId: (string | null)
69128
+ /**
69129
+ * Order within its folder, or null for an unfiled post.
69130
+ */
69131
+ position: (number | null)
68954
69132
  /**
68955
69133
  * ISO-8601 creation time.
68956
69134
  */
@@ -68996,14 +69174,22 @@ text: string
68996
69174
  * Media references attached to the current version.
68997
69175
  */
68998
69176
  media: string[]
69177
+ /**
69178
+ * Private plan notes, or null when unset.
69179
+ */
69180
+ notes: (string | null)
69181
+ /**
69182
+ * Plan title, or null when unset.
69183
+ */
69184
+ title: (string | null)
68999
69185
  /**
69000
69186
  * Identity id of whoever composed the post.
69001
69187
  */
69002
69188
  author: string
69003
69189
  /**
69004
- * Post lifecycle status: draft (being written) -> pending_approval (submitted) -> approved (cleared to publish); scheduled/published/failed are set by the publishing pipeline.
69190
+ * Post lifecycle status: idea (may have no text) -> draft (being written) -> pending_approval (submitted) -> approved (cleared to publish); scheduled/published/failed are set by the publishing pipeline.
69005
69191
  */
69006
- status: ("draft" | "pending_approval" | "approved" | "scheduled" | "published" | "failed")
69192
+ status: ("idea" | "draft" | "pending_approval" | "approved" | "scheduled" | "published" | "failed")
69007
69193
  /**
69008
69194
  * The networks this post is meant for, each with its variant.
69009
69195
  */
@@ -69027,6 +69213,14 @@ network: string
69027
69213
  */
69028
69214
  postType: string
69029
69215
  }[]
69216
+ /**
69217
+ * Folder containing this post, or null.
69218
+ */
69219
+ folderId: (string | null)
69220
+ /**
69221
+ * Order within its folder, or null for an unfiled post.
69222
+ */
69223
+ position: (number | null)
69030
69224
  /**
69031
69225
  * ISO-8601 creation time.
69032
69226
  */
@@ -69047,15 +69241,23 @@ approvedVersion: (number | null)
69047
69241
 
69048
69242
  export interface ContentPostsCreateInput {
69049
69243
  /**
69050
- * The post text, channel-independent, written in markdown — bold, italic, lists, links. Each network gets it flattened to the plain text that network accepts; content_publications_validate shows exactly what that looks like per channel. A target may override it for one network.
69244
+ * Optional channel-independent markdown text. Omit or leave empty to create an idea with a title; with text, the post starts as a draft. A target may override this text for one network.
69051
69245
  */
69052
- text: string
69246
+ text?: string
69053
69247
  /**
69054
69248
  * Media references attached to the post, in display order. Opaque strings — the toolkit does not upload or resolve them.
69055
69249
  *
69056
69250
  * @maxItems 20
69057
69251
  */
69058
69252
  media?: []|[string]|[string, string]|[string, string, string]|[string, string, string, string]|[string, string, string, string, string]|[string, string, string, string, string, string]|[string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string]
69253
+ /**
69254
+ * Private plan notes, up to 20,000 characters. They are not published.
69255
+ */
69256
+ notes?: (string | null)
69257
+ /**
69258
+ * Optional plan title, up to 300 characters. Required when text is empty to create an idea.
69259
+ */
69260
+ title?: (string | null)
69059
69261
  /**
69060
69262
  * The networks this post is meant for, each with its variant: post type, optional text override and the network-specific fields. A post needs at least one target before it can be submitted, and it can only be scheduled to channels of these networks. Media is shared by every target.
69061
69263
  *
@@ -73052,6 +73254,10 @@ network: ("linkedin" | "x" | "youtube" | "instagram" | "reddit" | "facebook" | "
73052
73254
  */
73053
73255
  postType?: string
73054
73256
  }]
73257
+ /**
73258
+ * Folder in this product to place the post in, or null for no folder. A new post goes last in that folder.
73259
+ */
73260
+ folderId?: (string | null)
73055
73261
  }
73056
73262
 
73057
73263
  export interface ContentPostsCreateOutput {
@@ -73067,14 +73273,22 @@ text: string
73067
73273
  * Media references attached to the current version.
73068
73274
  */
73069
73275
  media: string[]
73276
+ /**
73277
+ * Private plan notes, or null when unset.
73278
+ */
73279
+ notes: (string | null)
73280
+ /**
73281
+ * Plan title, or null when unset.
73282
+ */
73283
+ title: (string | null)
73070
73284
  /**
73071
73285
  * Identity id of whoever composed the post.
73072
73286
  */
73073
73287
  author: string
73074
73288
  /**
73075
- * Post lifecycle status: draft (being written) -> pending_approval (submitted) -> approved (cleared to publish); scheduled/published/failed are set by the publishing pipeline.
73289
+ * Post lifecycle status: idea (may have no text) -> draft (being written) -> pending_approval (submitted) -> approved (cleared to publish); scheduled/published/failed are set by the publishing pipeline.
73076
73290
  */
73077
- status: ("draft" | "pending_approval" | "approved" | "scheduled" | "published" | "failed")
73291
+ status: ("idea" | "draft" | "pending_approval" | "approved" | "scheduled" | "published" | "failed")
73078
73292
  /**
73079
73293
  * The networks this post is meant for, each with its variant.
73080
73294
  */
@@ -73098,6 +73312,14 @@ network: string
73098
73312
  */
73099
73313
  postType: string
73100
73314
  }[]
73315
+ /**
73316
+ * Folder containing this post, or null.
73317
+ */
73318
+ folderId: (string | null)
73319
+ /**
73320
+ * Order within its folder, or null for an unfiled post.
73321
+ */
73322
+ position: (number | null)
73101
73323
  /**
73102
73324
  * ISO-8601 creation time.
73103
73325
  */
@@ -73116,6 +73338,24 @@ currentVersion: number
73116
73338
  approvedVersion: (number | null)
73117
73339
  }
73118
73340
 
73341
+ export interface ContentPostsDeleteInput {
73342
+ /**
73343
+ * The post id returned by content_posts_create.
73344
+ */
73345
+ postId: string
73346
+ }
73347
+
73348
+ export interface ContentPostsDeleteOutput {
73349
+ /**
73350
+ * The post id returned by content_posts_create.
73351
+ */
73352
+ postId: string
73353
+ /**
73354
+ * The post and its content versions were deleted.
73355
+ */
73356
+ deleted: true
73357
+ }
73358
+
73119
73359
  export interface ContentPostsDetachMediaInput {
73120
73360
  /**
73121
73361
  * The post id.
@@ -73143,14 +73383,22 @@ text: string
73143
73383
  * Media references attached to the current version.
73144
73384
  */
73145
73385
  media: string[]
73386
+ /**
73387
+ * Private plan notes, or null when unset.
73388
+ */
73389
+ notes: (string | null)
73390
+ /**
73391
+ * Plan title, or null when unset.
73392
+ */
73393
+ title: (string | null)
73146
73394
  /**
73147
73395
  * Identity id of whoever composed the post.
73148
73396
  */
73149
73397
  author: string
73150
73398
  /**
73151
- * Post lifecycle status: draft (being written) -> pending_approval (submitted) -> approved (cleared to publish); scheduled/published/failed are set by the publishing pipeline.
73399
+ * Post lifecycle status: idea (may have no text) -> draft (being written) -> pending_approval (submitted) -> approved (cleared to publish); scheduled/published/failed are set by the publishing pipeline.
73152
73400
  */
73153
- status: ("draft" | "pending_approval" | "approved" | "scheduled" | "published" | "failed")
73401
+ status: ("idea" | "draft" | "pending_approval" | "approved" | "scheduled" | "published" | "failed")
73154
73402
  /**
73155
73403
  * The networks this post is meant for, each with its variant.
73156
73404
  */
@@ -73174,6 +73422,14 @@ network: string
73174
73422
  */
73175
73423
  postType: string
73176
73424
  }[]
73425
+ /**
73426
+ * Folder containing this post, or null.
73427
+ */
73428
+ folderId: (string | null)
73429
+ /**
73430
+ * Order within its folder, or null for an unfiled post.
73431
+ */
73432
+ position: (number | null)
73177
73433
  /**
73178
73434
  * ISO-8601 creation time.
73179
73435
  */
@@ -73212,14 +73468,22 @@ text: string
73212
73468
  * Media references attached to the current version.
73213
73469
  */
73214
73470
  media: string[]
73471
+ /**
73472
+ * Private plan notes, or null when unset.
73473
+ */
73474
+ notes: (string | null)
73475
+ /**
73476
+ * Plan title, or null when unset.
73477
+ */
73478
+ title: (string | null)
73215
73479
  /**
73216
73480
  * Identity id of whoever composed the post.
73217
73481
  */
73218
73482
  author: string
73219
73483
  /**
73220
- * Post lifecycle status: draft (being written) -> pending_approval (submitted) -> approved (cleared to publish); scheduled/published/failed are set by the publishing pipeline.
73484
+ * Post lifecycle status: idea (may have no text) -> draft (being written) -> pending_approval (submitted) -> approved (cleared to publish); scheduled/published/failed are set by the publishing pipeline.
73221
73485
  */
73222
- status: ("draft" | "pending_approval" | "approved" | "scheduled" | "published" | "failed")
73486
+ status: ("idea" | "draft" | "pending_approval" | "approved" | "scheduled" | "published" | "failed")
73223
73487
  /**
73224
73488
  * The networks this post is meant for, each with its variant.
73225
73489
  */
@@ -73243,6 +73507,14 @@ network: string
73243
73507
  */
73244
73508
  postType: string
73245
73509
  }[]
73510
+ /**
73511
+ * Folder containing this post, or null.
73512
+ */
73513
+ folderId: (string | null)
73514
+ /**
73515
+ * Order within its folder, or null for an unfiled post.
73516
+ */
73517
+ position: (number | null)
73246
73518
  /**
73247
73519
  * ISO-8601 creation time.
73248
73520
  */
@@ -73273,12 +73545,16 @@ offset?: number
73273
73545
  /**
73274
73546
  * Return only posts in this status.
73275
73547
  */
73276
- status?: ("draft" | "pending_approval" | "approved" | "scheduled" | "published" | "failed")
73548
+ status?: ("idea" | "draft" | "pending_approval" | "approved" | "scheduled" | "published" | "failed")
73549
+ /**
73550
+ * Filter to one folder, or null for posts in no folder. Omit for posts in every folder.
73551
+ */
73552
+ folderId?: (string | null)
73277
73553
  }
73278
73554
 
73279
73555
  export interface ContentPostsListOutput {
73280
73556
  /**
73281
- * The page of posts, newest first.
73557
+ * The page of posts, ordered by position when filtered to a folder and newest first otherwise.
73282
73558
  */
73283
73559
  posts: {
73284
73560
  /**
@@ -73288,19 +73564,295 @@ id: string
73288
73564
  /**
73289
73565
  * The current text of the post, in markdown.
73290
73566
  */
73291
- text: string
73567
+ text: string
73568
+ /**
73569
+ * Media references attached to the current version.
73570
+ */
73571
+ media: string[]
73572
+ /**
73573
+ * Private plan notes, or null when unset.
73574
+ */
73575
+ notes: (string | null)
73576
+ /**
73577
+ * Plan title, or null when unset.
73578
+ */
73579
+ title: (string | null)
73580
+ /**
73581
+ * Identity id of whoever composed the post.
73582
+ */
73583
+ author: string
73584
+ /**
73585
+ * Post lifecycle status: idea (may have no text) -> draft (being written) -> pending_approval (submitted) -> approved (cleared to publish); scheduled/published/failed are set by the publishing pipeline.
73586
+ */
73587
+ status: ("idea" | "draft" | "pending_approval" | "approved" | "scheduled" | "published" | "failed")
73588
+ /**
73589
+ * The networks this post is meant for, each with its variant.
73590
+ */
73591
+ targets: {
73592
+ /**
73593
+ * Markdown override for this network, or null to publish the post text.
73594
+ */
73595
+ text: (string | null)
73596
+ /**
73597
+ * Variant field values keyed by field id.
73598
+ */
73599
+ fields: {
73600
+ [k: string]: string
73601
+ }
73602
+ /**
73603
+ * The network this variant is for.
73604
+ */
73605
+ network: string
73606
+ /**
73607
+ * The post type id, from that network's capabilities.postTypes.
73608
+ */
73609
+ postType: string
73610
+ }[]
73611
+ /**
73612
+ * Folder containing this post, or null.
73613
+ */
73614
+ folderId: (string | null)
73615
+ /**
73616
+ * Order within its folder, or null for an unfiled post.
73617
+ */
73618
+ position: (number | null)
73619
+ /**
73620
+ * ISO-8601 creation time.
73621
+ */
73622
+ createdAt: string
73623
+ /**
73624
+ * ISO-8601 time of the last change.
73625
+ */
73626
+ updatedAt: string
73627
+ /**
73628
+ * Version number of the current text.
73629
+ */
73630
+ currentVersion: number
73631
+ /**
73632
+ * The version an approval binds to, or null. Cleared on every edit: approving one text never covers another.
73633
+ */
73634
+ approvedVersion: (number | null)
73635
+ }[]
73636
+ /**
73637
+ * Total number of matching posts, ignoring paging.
73638
+ */
73639
+ total: number
73640
+ }
73641
+
73642
+ export interface ContentPostsMoveInput {
73643
+ /**
73644
+ * The post id returned by content_posts_create.
73645
+ */
73646
+ postId: string
73647
+ /**
73648
+ * Destination folder in this product, or null to leave the post unfiled.
73649
+ */
73650
+ folderId: (string | null)
73651
+ /**
73652
+ * Put the post immediately before this post in the destination folder. Omit to append it.
73653
+ */
73654
+ beforePostId?: string
73655
+ }
73656
+
73657
+ export interface ContentPostsMoveOutput {
73658
+ /**
73659
+ * Post id.
73660
+ */
73661
+ id: string
73662
+ /**
73663
+ * The current text of the post, in markdown.
73664
+ */
73665
+ text: string
73666
+ /**
73667
+ * Media references attached to the current version.
73668
+ */
73669
+ media: string[]
73670
+ /**
73671
+ * Private plan notes, or null when unset.
73672
+ */
73673
+ notes: (string | null)
73674
+ /**
73675
+ * Plan title, or null when unset.
73676
+ */
73677
+ title: (string | null)
73678
+ /**
73679
+ * Identity id of whoever composed the post.
73680
+ */
73681
+ author: string
73682
+ /**
73683
+ * Post lifecycle status: idea (may have no text) -> draft (being written) -> pending_approval (submitted) -> approved (cleared to publish); scheduled/published/failed are set by the publishing pipeline.
73684
+ */
73685
+ status: ("idea" | "draft" | "pending_approval" | "approved" | "scheduled" | "published" | "failed")
73686
+ /**
73687
+ * The networks this post is meant for, each with its variant.
73688
+ */
73689
+ targets: {
73690
+ /**
73691
+ * Markdown override for this network, or null to publish the post text.
73692
+ */
73693
+ text: (string | null)
73694
+ /**
73695
+ * Variant field values keyed by field id.
73696
+ */
73697
+ fields: {
73698
+ [k: string]: string
73699
+ }
73700
+ /**
73701
+ * The network this variant is for.
73702
+ */
73703
+ network: string
73704
+ /**
73705
+ * The post type id, from that network's capabilities.postTypes.
73706
+ */
73707
+ postType: string
73708
+ }[]
73709
+ /**
73710
+ * Folder containing this post, or null.
73711
+ */
73712
+ folderId: (string | null)
73713
+ /**
73714
+ * Order within its folder, or null for an unfiled post.
73715
+ */
73716
+ position: (number | null)
73717
+ /**
73718
+ * ISO-8601 creation time.
73719
+ */
73720
+ createdAt: string
73721
+ /**
73722
+ * ISO-8601 time of the last change.
73723
+ */
73724
+ updatedAt: string
73725
+ /**
73726
+ * Version number of the current text.
73727
+ */
73728
+ currentVersion: number
73729
+ /**
73730
+ * The version an approval binds to, or null. Cleared on every edit: approving one text never covers another.
73731
+ */
73732
+ approvedVersion: (number | null)
73733
+ }
73734
+
73735
+ export interface ContentPostsSubmitInput {
73736
+ /**
73737
+ * The post id returned by content_posts_create.
73738
+ */
73739
+ id: string
73740
+ }
73741
+
73742
+ export interface ContentPostsSubmitOutput {
73743
+ /**
73744
+ * Post id.
73745
+ */
73746
+ id: string
73747
+ /**
73748
+ * The current text of the post, in markdown.
73749
+ */
73750
+ text: string
73751
+ /**
73752
+ * Media references attached to the current version.
73753
+ */
73754
+ media: string[]
73755
+ /**
73756
+ * Private plan notes, or null when unset.
73757
+ */
73758
+ notes: (string | null)
73759
+ /**
73760
+ * Plan title, or null when unset.
73761
+ */
73762
+ title: (string | null)
73763
+ /**
73764
+ * Identity id of whoever composed the post.
73765
+ */
73766
+ author: string
73767
+ /**
73768
+ * Post lifecycle status: idea (may have no text) -> draft (being written) -> pending_approval (submitted) -> approved (cleared to publish); scheduled/published/failed are set by the publishing pipeline.
73769
+ */
73770
+ status: ("idea" | "draft" | "pending_approval" | "approved" | "scheduled" | "published" | "failed")
73771
+ /**
73772
+ * The networks this post is meant for, each with its variant.
73773
+ */
73774
+ targets: {
73775
+ /**
73776
+ * Markdown override for this network, or null to publish the post text.
73777
+ */
73778
+ text: (string | null)
73779
+ /**
73780
+ * Variant field values keyed by field id.
73781
+ */
73782
+ fields: {
73783
+ [k: string]: string
73784
+ }
73785
+ /**
73786
+ * The network this variant is for.
73787
+ */
73788
+ network: string
73789
+ /**
73790
+ * The post type id, from that network's capabilities.postTypes.
73791
+ */
73792
+ postType: string
73793
+ }[]
73794
+ /**
73795
+ * Folder containing this post, or null.
73796
+ */
73797
+ folderId: (string | null)
73798
+ /**
73799
+ * Order within its folder, or null for an unfiled post.
73800
+ */
73801
+ position: (number | null)
73802
+ /**
73803
+ * ISO-8601 creation time.
73804
+ */
73805
+ createdAt: string
73806
+ /**
73807
+ * ISO-8601 time of the last change.
73808
+ */
73809
+ updatedAt: string
73810
+ /**
73811
+ * Version number of the current text.
73812
+ */
73813
+ currentVersion: number
73814
+ /**
73815
+ * The version an approval binds to, or null. Cleared on every edit: approving one text never covers another.
73816
+ */
73817
+ approvedVersion: (number | null)
73818
+ }
73819
+
73820
+ export interface ContentPostsToDraftInput {
73821
+ /**
73822
+ * The post id returned by content_posts_create.
73823
+ */
73824
+ postId: string
73825
+ }
73826
+
73827
+ export interface ContentPostsToDraftOutput {
73828
+ /**
73829
+ * Post id.
73830
+ */
73831
+ id: string
73832
+ /**
73833
+ * The current text of the post, in markdown.
73834
+ */
73835
+ text: string
73836
+ /**
73837
+ * Media references attached to the current version.
73838
+ */
73839
+ media: string[]
73840
+ /**
73841
+ * Private plan notes, or null when unset.
73842
+ */
73843
+ notes: (string | null)
73292
73844
  /**
73293
- * Media references attached to the current version.
73845
+ * Plan title, or null when unset.
73294
73846
  */
73295
- media: string[]
73847
+ title: (string | null)
73296
73848
  /**
73297
73849
  * Identity id of whoever composed the post.
73298
73850
  */
73299
73851
  author: string
73300
73852
  /**
73301
- * Post lifecycle status: draft (being written) -> pending_approval (submitted) -> approved (cleared to publish); scheduled/published/failed are set by the publishing pipeline.
73853
+ * Post lifecycle status: idea (may have no text) -> draft (being written) -> pending_approval (submitted) -> approved (cleared to publish); scheduled/published/failed are set by the publishing pipeline.
73302
73854
  */
73303
- status: ("draft" | "pending_approval" | "approved" | "scheduled" | "published" | "failed")
73855
+ status: ("idea" | "draft" | "pending_approval" | "approved" | "scheduled" | "published" | "failed")
73304
73856
  /**
73305
73857
  * The networks this post is meant for, each with its variant.
73306
73858
  */
@@ -73324,6 +73876,14 @@ network: string
73324
73876
  */
73325
73877
  postType: string
73326
73878
  }[]
73879
+ /**
73880
+ * Folder containing this post, or null.
73881
+ */
73882
+ folderId: (string | null)
73883
+ /**
73884
+ * Order within its folder, or null for an unfiled post.
73885
+ */
73886
+ position: (number | null)
73327
73887
  /**
73328
73888
  * ISO-8601 creation time.
73329
73889
  */
@@ -73340,21 +73900,16 @@ currentVersion: number
73340
73900
  * The version an approval binds to, or null. Cleared on every edit: approving one text never covers another.
73341
73901
  */
73342
73902
  approvedVersion: (number | null)
73343
- }[]
73344
- /**
73345
- * Total number of matching posts, ignoring paging.
73346
- */
73347
- total: number
73348
73903
  }
73349
73904
 
73350
- export interface ContentPostsSubmitInput {
73905
+ export interface ContentPostsToIdeaInput {
73351
73906
  /**
73352
73907
  * The post id returned by content_posts_create.
73353
73908
  */
73354
- id: string
73909
+ postId: string
73355
73910
  }
73356
73911
 
73357
- export interface ContentPostsSubmitOutput {
73912
+ export interface ContentPostsToIdeaOutput {
73358
73913
  /**
73359
73914
  * Post id.
73360
73915
  */
@@ -73367,14 +73922,22 @@ text: string
73367
73922
  * Media references attached to the current version.
73368
73923
  */
73369
73924
  media: string[]
73925
+ /**
73926
+ * Private plan notes, or null when unset.
73927
+ */
73928
+ notes: (string | null)
73929
+ /**
73930
+ * Plan title, or null when unset.
73931
+ */
73932
+ title: (string | null)
73370
73933
  /**
73371
73934
  * Identity id of whoever composed the post.
73372
73935
  */
73373
73936
  author: string
73374
73937
  /**
73375
- * Post lifecycle status: draft (being written) -> pending_approval (submitted) -> approved (cleared to publish); scheduled/published/failed are set by the publishing pipeline.
73938
+ * Post lifecycle status: idea (may have no text) -> draft (being written) -> pending_approval (submitted) -> approved (cleared to publish); scheduled/published/failed are set by the publishing pipeline.
73376
73939
  */
73377
- status: ("draft" | "pending_approval" | "approved" | "scheduled" | "published" | "failed")
73940
+ status: ("idea" | "draft" | "pending_approval" | "approved" | "scheduled" | "published" | "failed")
73378
73941
  /**
73379
73942
  * The networks this post is meant for, each with its variant.
73380
73943
  */
@@ -73398,6 +73961,14 @@ network: string
73398
73961
  */
73399
73962
  postType: string
73400
73963
  }[]
73964
+ /**
73965
+ * Folder containing this post, or null.
73966
+ */
73967
+ folderId: (string | null)
73968
+ /**
73969
+ * Order within its folder, or null for an unfiled post.
73970
+ */
73971
+ position: (number | null)
73401
73972
  /**
73402
73973
  * ISO-8601 creation time.
73403
73974
  */
@@ -73422,7 +73993,7 @@ export interface ContentPostsUpdateInput {
73422
73993
  */
73423
73994
  id: string
73424
73995
  /**
73425
- * Replacement text, in markdown. Omit to keep the current text.
73996
+ * Replacement text, in markdown; it may be empty for an idea or draft. Omit to keep the current text.
73426
73997
  */
73427
73998
  text?: string
73428
73999
  /**
@@ -73431,6 +74002,14 @@ text?: string
73431
74002
  * @maxItems 20
73432
74003
  */
73433
74004
  media?: []|[string]|[string, string]|[string, string, string]|[string, string, string, string]|[string, string, string, string, string]|[string, string, string, string, string, string]|[string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string]
74005
+ /**
74006
+ * New private plan notes, or null to clear them. Changing them does not create a content version or revoke approval.
74007
+ */
74008
+ notes?: (string | null)
74009
+ /**
74010
+ * New plan title, or null to clear it. Changing it does not create a content version or revoke approval.
74011
+ */
74012
+ title?: (string | null)
73434
74013
  /**
73435
74014
  * Replacement target list (replaces, never merges). Omit to keep the current targets. Changing it is an edit like changing the text: a new version, and an approved post returns to pending_approval.
73436
74015
  *
@@ -77442,14 +78021,22 @@ text: string
77442
78021
  * Media references attached to the current version.
77443
78022
  */
77444
78023
  media: string[]
78024
+ /**
78025
+ * Private plan notes, or null when unset.
78026
+ */
78027
+ notes: (string | null)
78028
+ /**
78029
+ * Plan title, or null when unset.
78030
+ */
78031
+ title: (string | null)
77445
78032
  /**
77446
78033
  * Identity id of whoever composed the post.
77447
78034
  */
77448
78035
  author: string
77449
78036
  /**
77450
- * Post lifecycle status: draft (being written) -> pending_approval (submitted) -> approved (cleared to publish); scheduled/published/failed are set by the publishing pipeline.
78037
+ * Post lifecycle status: idea (may have no text) -> draft (being written) -> pending_approval (submitted) -> approved (cleared to publish); scheduled/published/failed are set by the publishing pipeline.
77451
78038
  */
77452
- status: ("draft" | "pending_approval" | "approved" | "scheduled" | "published" | "failed")
78039
+ status: ("idea" | "draft" | "pending_approval" | "approved" | "scheduled" | "published" | "failed")
77453
78040
  /**
77454
78041
  * The networks this post is meant for, each with its variant.
77455
78042
  */
@@ -77473,6 +78060,14 @@ network: string
77473
78060
  */
77474
78061
  postType: string
77475
78062
  }[]
78063
+ /**
78064
+ * Folder containing this post, or null.
78065
+ */
78066
+ folderId: (string | null)
78067
+ /**
78068
+ * Order within its folder, or null for an unfiled post.
78069
+ */
78070
+ position: (number | null)
77476
78071
  /**
77477
78072
  * ISO-8601 creation time.
77478
78073
  */
@@ -98996,378 +99591,6 @@ export interface OrganizationYoutubeInstallOutput {
98996
99591
  url: string
98997
99592
  }
98998
99593
 
98999
- export interface PlaygroundAnalyticsOverviewInput {
99000
- /**
99001
- * Max records per entity in recent[]; omit for the endpoint default
99002
- */
99003
- limit?: number
99004
- }
99005
-
99006
- export interface PlaygroundAnalyticsOverviewOutput {
99007
- ok: boolean
99008
- minted: boolean
99009
- overview?: unknown
99010
- http_status: number
99011
- }
99012
-
99013
- export interface PlaygroundBillingEntitlementsInput {
99014
-
99015
- }
99016
-
99017
- export interface PlaygroundBillingEntitlementsOutput {
99018
- ok: boolean
99019
- minted: boolean
99020
- http_status: number
99021
- entitlements?: unknown
99022
- }
99023
-
99024
- export interface PlaygroundBillingRecordUsageInput {
99025
- /**
99026
- * Quantity of events to record against playground-events (SUM); defaults to 1
99027
- */
99028
- value?: number
99029
- }
99030
-
99031
- export interface PlaygroundBillingRecordUsageOutput {
99032
- minted: boolean
99033
- accepted: (number | null)
99034
- recorded: boolean
99035
- duplicates: (number | null)
99036
- http_status: number
99037
- }
99038
-
99039
- export interface PlaygroundClickupCreateTaskInput {
99040
- /**
99041
- * Task title; defaults to a fixture label
99042
- */
99043
- name?: string
99044
- /**
99045
- * ClickUp list id; falls back to CLICKUP_TEST_LIST_ID
99046
- */
99047
- listId?: string
99048
- }
99049
-
99050
- export interface PlaygroundClickupCreateTaskOutput {
99051
- minted: boolean
99052
- task_id: (string | null)
99053
- list_status: number
99054
- vend_status: number
99055
- clickup_status: number
99056
- installation_count: number
99057
- }
99058
-
99059
- export interface PlaygroundClickupGetLastWebhookInput {
99060
-
99061
- }
99062
-
99063
- export type PlaygroundClickupGetLastWebhookOutput = ({
99064
- payload: string
99065
- event_id: string
99066
- provider: string
99067
- verified: boolean
99068
- product_id: string
99069
- occurred_at: string
99070
- connector_id: string
99071
- clickup_event: (string | null)
99072
- receipt_count: number
99073
- } | {
99074
- found: false
99075
- })
99076
-
99077
- export interface PlaygroundClickupGetOverviewInput {
99078
-
99079
- }
99080
-
99081
- export interface PlaygroundClickupGetOverviewOutput {
99082
- team: ({
99083
- teamId: string
99084
- teamName: string
99085
- } | null)
99086
- lists: PlaygroundClickupGetOverviewOutputItems[]
99087
- tasks: {
99088
- id: string
99089
- name: string
99090
- status: (string | null)
99091
- }[]
99092
- minted: boolean
99093
- spaces: PlaygroundClickupGetOverviewOutputItems[]
99094
- list_status: number
99095
- vend_status: number
99096
- lists_status: number
99097
- tasks_status: number
99098
- spaces_status: number
99099
- folders_status: number
99100
- installation_count: number
99101
- }
99102
- export interface PlaygroundClickupGetOverviewOutputItems {
99103
- id: string
99104
- name: string
99105
- }
99106
-
99107
- export interface PlaygroundEchoPingInput {
99108
- /**
99109
- * The text to echo back, 1–1024 characters
99110
- */
99111
- message: string
99112
- }
99113
-
99114
- export interface PlaygroundEchoPingOutput {
99115
- /**
99116
- * The message exactly as it was received
99117
- */
99118
- message: string
99119
- /**
99120
- * The product the call was resolved to
99121
- */
99122
- productId: string
99123
- /**
99124
- * ISO-8601 instant (UTC) at which the call reached the service
99125
- */
99126
- receivedAt: string
99127
- }
99128
-
99129
- export interface PlaygroundGdriveGetLastChangeInput {
99130
-
99131
- }
99132
-
99133
- export type PlaygroundGdriveGetLastChangeOutput = ({
99134
- file_id: string
99135
- removed: boolean
99136
- file_name: (string | null)
99137
- mime_type: (string | null)
99138
- product_id: string
99139
- occurred_at: string
99140
- connector_id: string
99141
- resource_state: string
99142
- } | {
99143
- found: false
99144
- })
99145
-
99146
- export interface PlaygroundGdriveReadFileInput {
99147
- /**
99148
- * Drive file id; falls back to GDRIVE_TEST_FILE_ID, then the first picked file
99149
- */
99150
- fileId?: string
99151
- }
99152
-
99153
- export interface PlaygroundGdriveReadFileOutput {
99154
- minted: boolean
99155
- file_id: (string | null)
99156
- file_name: (string | null)
99157
- mime_type: (string | null)
99158
- file_count: number
99159
- get_status: number
99160
- list_status: number
99161
- vend_status: number
99162
- content_bytes: (number | null)
99163
- }
99164
-
99165
- export interface PlaygroundGoogleadsReadCustomerInput {
99166
-
99167
- }
99168
-
99169
- export interface PlaygroundGoogleadsReadCustomerOutput {
99170
- minted: boolean
99171
- vended: boolean
99172
- customer_id: (string | null)
99173
- vend_status: number
99174
- result_count: number
99175
- search_status: number
99176
- login_customer_id: (string | null)
99177
- }
99178
-
99179
- export interface PlaygroundLifecycleGetStateInput {
99180
-
99181
- }
99182
-
99183
- export interface PlaygroundLifecycleGetStateOutput {
99184
- blocked: boolean
99185
- archived: boolean
99186
- productId: string
99187
- lastBlockTransition: ({
99188
- eventId: string
99189
- eventName: string
99190
- productId: string
99191
- occurredAt: string
99192
- recordedAt: string
99193
- receiptCount: number
99194
- organizationId: string
99195
- cascadedFromOrg: boolean
99196
- } | null)
99197
- lastArchiveTransition: ({
99198
- eventId: string
99199
- eventName: string
99200
- productId: string
99201
- occurredAt: string
99202
- recordedAt: string
99203
- receiptCount: number
99204
- organizationId: string
99205
- cascadedFromOrg: boolean
99206
- } | null)
99207
- }
99208
-
99209
- export interface PlaygroundLifecycleListEventsInput {
99210
-
99211
- }
99212
-
99213
- export type PlaygroundLifecycleListEventsOutput = {
99214
- eventId: string
99215
- eventName: string
99216
- productId: string
99217
- occurredAt: string
99218
- recordedAt: string
99219
- receiptCount: number
99220
- organizationId: string
99221
- cascadedFromOrg: boolean
99222
- }[]
99223
-
99224
- export interface PlaygroundWebhookGetLastInput {
99225
-
99226
- }
99227
-
99228
- export type PlaygroundWebhookGetLastOutput = ({
99229
- payload?: unknown
99230
- event_id: string
99231
- provider: string
99232
- verified: boolean
99233
- product_id: string
99234
- occurred_at: string
99235
- connector_id: string
99236
- delivery_count: number
99237
- } | {
99238
- found: false
99239
- })
99240
-
99241
- export interface PlaygroundWorkflowEchoInput {
99242
- /**
99243
- * The text to store, 1–1024 characters
99244
- */
99245
- note: string
99246
- /**
99247
- * Optional labels stored alongside the note, at most 20
99248
- *
99249
- * @maxItems 20
99250
- */
99251
- tags?: []|[string]|[string, string]|[string, string, string]|[string, string, string, string]|[string, string, string, string, string]|[string, string, string, string, string, string]|[string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string]
99252
- }
99253
-
99254
- export interface PlaygroundWorkflowEchoOutput {
99255
- /**
99256
- * Identifier of the stored echo
99257
- */
99258
- id: string
99259
- /**
99260
- * The note exactly as it was received
99261
- */
99262
- note: string
99263
- /**
99264
- * The tags exactly as they were received
99265
- */
99266
- tags: string[]
99267
- /**
99268
- * Correlation id for this echo. The playground/workflow.echoed event published about two seconds later repeats it, which is how a composer matches the completion back to this step.
99269
- */
99270
- echo_id: string
99271
- /**
99272
- * ISO-8601 instant (UTC) at which the echo was stored
99273
- */
99274
- received_at: string
99275
- }
99276
-
99277
- export interface PlaygroundWorkflowEchoListInput {
99278
-
99279
- }
99280
-
99281
- export type PlaygroundWorkflowEchoListOutput = {
99282
- /**
99283
- * Identifier of the stored echo
99284
- */
99285
- id: string
99286
- /**
99287
- * The note exactly as it was received
99288
- */
99289
- note: string
99290
- /**
99291
- * The tags exactly as they were received
99292
- */
99293
- tags: string[]
99294
- /**
99295
- * ISO-8601 instant (UTC) at which the echo was stored
99296
- */
99297
- received_at: string
99298
- }[]
99299
-
99300
- export interface PlaygroundWorkflowPingInput {
99301
- /**
99302
- * Class of ping, echoed on the emitted event and filterable on the trigger. Defaults to 'manual'.
99303
- */
99304
- kind?: string
99305
- }
99306
-
99307
- export interface PlaygroundWorkflowPingOutput {
99308
- /**
99309
- * Correlation id for this ping. The emitted playground/workflow.ping event repeats it, which is how a composer matches the event back to this step.
99310
- */
99311
- id: string
99312
- /**
99313
- * The name of the event that was published
99314
- */
99315
- event: string
99316
- }
99317
-
99318
- export interface PlaygroundWorkflowSubjectsListInput {
99319
- /**
99320
- * How many subjects to return, 1–100. Defaults to 25.
99321
- */
99322
- limit?: number
99323
- /**
99324
- * The next_cursor of the previous page. Opaque — pass it back unchanged. Omit for the first page.
99325
- */
99326
- cursor?: string
99327
- /**
99328
- * ISO-8601 UTC instant. Return only subjects whose last_activity_at is AT OR AFTER this — the opposite question, the recently active population. Omit for no lower bound.
99329
- */
99330
- last_activity_after?: string
99331
- /**
99332
- * ISO-8601 UTC instant. Return only subjects whose last_activity_at is AT OR BEFORE this — the "inactive for N days" question: pass now minus N days. Omit for no upper bound.
99333
- */
99334
- last_activity_before?: string
99335
- }
99336
-
99337
- export interface PlaygroundWorkflowSubjectsListOutput {
99338
- /**
99339
- * This page of subjects, most recently active first
99340
- */
99341
- items: {
99342
- /**
99343
- * Stable identifier for the subject. This is the field a batch trigger keys on, so a subject already served in an earlier run is skipped rather than served twice.
99344
- */
99345
- subject_key: string
99346
- /**
99347
- * Human-readable name of the subject
99348
- */
99349
- display_name: string
99350
- /**
99351
- * ISO-8601 instant (UTC) of the subject last activity
99352
- */
99353
- last_activity_at: string
99354
- }[]
99355
- /**
99356
- * Whether another page follows. False and a null next_cursor both mark the last page, so a consumer that loops on either terminates.
99357
- */
99358
- has_more: boolean
99359
- /**
99360
- * Pass back as `cursor` to fetch the next page; null on the last page. Always null when has_more is false.
99361
- */
99362
- next_cursor: (string | null)
99363
- }
99364
-
99365
- export interface PlaygroundWsEchoInput {
99366
-
99367
- }
99368
-
99369
- export type PlaygroundWsEchoOutput = unknown;
99370
-
99371
99594
  export interface RealtimeArchiveExportInput {
99372
99595
  /**
99373
99596
  * Only entries with ts <= to_ts (epoch ms)