@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
|
@@ -73830,6 +73830,159 @@ export interface ContentChannelsUpdateOutput {
|
|
|
73830
73830
|
*/
|
|
73831
73831
|
deliveryMode: ("auto" | "reminder");
|
|
73832
73832
|
}
|
|
73833
|
+
export interface ContentFoldersCreateInput {
|
|
73834
|
+
/**
|
|
73835
|
+
* The folder name, from 1 to 200 characters.
|
|
73836
|
+
*/
|
|
73837
|
+
name: string;
|
|
73838
|
+
/**
|
|
73839
|
+
* Parent folder id, or null for a root folder. New folders go last among siblings.
|
|
73840
|
+
*/
|
|
73841
|
+
parentId?: (string | null);
|
|
73842
|
+
}
|
|
73843
|
+
export interface ContentFoldersCreateOutput {
|
|
73844
|
+
/**
|
|
73845
|
+
* Folder id.
|
|
73846
|
+
*/
|
|
73847
|
+
id: string;
|
|
73848
|
+
/**
|
|
73849
|
+
* Folder name.
|
|
73850
|
+
*/
|
|
73851
|
+
name: string;
|
|
73852
|
+
/**
|
|
73853
|
+
* Parent folder id, or null at the root.
|
|
73854
|
+
*/
|
|
73855
|
+
parentId: (string | null);
|
|
73856
|
+
/**
|
|
73857
|
+
* Order among siblings with the same parent.
|
|
73858
|
+
*/
|
|
73859
|
+
position: number;
|
|
73860
|
+
/**
|
|
73861
|
+
* ISO-8601 creation time.
|
|
73862
|
+
*/
|
|
73863
|
+
createdAt: string;
|
|
73864
|
+
/**
|
|
73865
|
+
* ISO-8601 time of the last change.
|
|
73866
|
+
*/
|
|
73867
|
+
updatedAt: string;
|
|
73868
|
+
}
|
|
73869
|
+
export interface ContentFoldersDeleteInput {
|
|
73870
|
+
/**
|
|
73871
|
+
* A folder id from content_folders_list or content_folders_create.
|
|
73872
|
+
*/
|
|
73873
|
+
folderId: string;
|
|
73874
|
+
}
|
|
73875
|
+
export interface ContentFoldersDeleteOutput {
|
|
73876
|
+
/**
|
|
73877
|
+
* True when this empty folder was deleted.
|
|
73878
|
+
*/
|
|
73879
|
+
deleted: true;
|
|
73880
|
+
/**
|
|
73881
|
+
* A folder id from content_folders_list or content_folders_create.
|
|
73882
|
+
*/
|
|
73883
|
+
folderId: string;
|
|
73884
|
+
}
|
|
73885
|
+
export interface ContentFoldersListInput {
|
|
73886
|
+
}
|
|
73887
|
+
export interface ContentFoldersListOutput {
|
|
73888
|
+
/**
|
|
73889
|
+
* Flat folder tree; parentId and position describe the hierarchy and order.
|
|
73890
|
+
*/
|
|
73891
|
+
folders: {
|
|
73892
|
+
/**
|
|
73893
|
+
* Folder id.
|
|
73894
|
+
*/
|
|
73895
|
+
id: string;
|
|
73896
|
+
/**
|
|
73897
|
+
* Folder name.
|
|
73898
|
+
*/
|
|
73899
|
+
name: string;
|
|
73900
|
+
/**
|
|
73901
|
+
* Posts directly in this folder, by status.
|
|
73902
|
+
*/
|
|
73903
|
+
counts: {
|
|
73904
|
+
idea: number;
|
|
73905
|
+
draft: number;
|
|
73906
|
+
failed: number;
|
|
73907
|
+
approved: number;
|
|
73908
|
+
published: number;
|
|
73909
|
+
scheduled: number;
|
|
73910
|
+
pending_approval: number;
|
|
73911
|
+
};
|
|
73912
|
+
/**
|
|
73913
|
+
* Parent folder id, or null at the root.
|
|
73914
|
+
*/
|
|
73915
|
+
parentId: (string | null);
|
|
73916
|
+
/**
|
|
73917
|
+
* Order among siblings with the same parent.
|
|
73918
|
+
*/
|
|
73919
|
+
position: number;
|
|
73920
|
+
/**
|
|
73921
|
+
* ISO-8601 creation time.
|
|
73922
|
+
*/
|
|
73923
|
+
createdAt: string;
|
|
73924
|
+
/**
|
|
73925
|
+
* ISO-8601 time of the last change.
|
|
73926
|
+
*/
|
|
73927
|
+
updatedAt: string;
|
|
73928
|
+
/**
|
|
73929
|
+
* Posts in this folder and all descendants, by status.
|
|
73930
|
+
*/
|
|
73931
|
+
totalCounts: {
|
|
73932
|
+
idea: number;
|
|
73933
|
+
draft: number;
|
|
73934
|
+
failed: number;
|
|
73935
|
+
approved: number;
|
|
73936
|
+
published: number;
|
|
73937
|
+
scheduled: number;
|
|
73938
|
+
pending_approval: number;
|
|
73939
|
+
};
|
|
73940
|
+
}[];
|
|
73941
|
+
}
|
|
73942
|
+
export interface ContentFoldersUpdateInput {
|
|
73943
|
+
/**
|
|
73944
|
+
* New folder name. Omit to keep it.
|
|
73945
|
+
*/
|
|
73946
|
+
name?: string;
|
|
73947
|
+
/**
|
|
73948
|
+
* A folder id from content_folders_list or content_folders_create.
|
|
73949
|
+
*/
|
|
73950
|
+
folderId: string;
|
|
73951
|
+
/**
|
|
73952
|
+
* New parent folder id, or null to move to the root. Omit to keep the current parent.
|
|
73953
|
+
*/
|
|
73954
|
+
parentId?: (string | null);
|
|
73955
|
+
/**
|
|
73956
|
+
* Insert before this sibling in the target parent. Omit or set null to put the folder last.
|
|
73957
|
+
*/
|
|
73958
|
+
beforeFolderId?: (string | null);
|
|
73959
|
+
}
|
|
73960
|
+
export interface ContentFoldersUpdateOutput {
|
|
73961
|
+
/**
|
|
73962
|
+
* Folder id.
|
|
73963
|
+
*/
|
|
73964
|
+
id: string;
|
|
73965
|
+
/**
|
|
73966
|
+
* Folder name.
|
|
73967
|
+
*/
|
|
73968
|
+
name: string;
|
|
73969
|
+
/**
|
|
73970
|
+
* Parent folder id, or null at the root.
|
|
73971
|
+
*/
|
|
73972
|
+
parentId: (string | null);
|
|
73973
|
+
/**
|
|
73974
|
+
* Order among siblings with the same parent.
|
|
73975
|
+
*/
|
|
73976
|
+
position: number;
|
|
73977
|
+
/**
|
|
73978
|
+
* ISO-8601 creation time.
|
|
73979
|
+
*/
|
|
73980
|
+
createdAt: string;
|
|
73981
|
+
/**
|
|
73982
|
+
* ISO-8601 time of the last change.
|
|
73983
|
+
*/
|
|
73984
|
+
updatedAt: string;
|
|
73985
|
+
}
|
|
73833
73986
|
export interface ContentMediaCreateUploadUrlInput {
|
|
73834
73987
|
/**
|
|
73835
73988
|
* Name to store the file under, for display purposes.
|
|
@@ -74282,14 +74435,22 @@ export interface ContentPostsApproveOutput {
|
|
|
74282
74435
|
* Media references attached to the current version.
|
|
74283
74436
|
*/
|
|
74284
74437
|
media: string[];
|
|
74438
|
+
/**
|
|
74439
|
+
* Private plan notes, or null when unset.
|
|
74440
|
+
*/
|
|
74441
|
+
notes: (string | null);
|
|
74442
|
+
/**
|
|
74443
|
+
* Plan title, or null when unset.
|
|
74444
|
+
*/
|
|
74445
|
+
title: (string | null);
|
|
74285
74446
|
/**
|
|
74286
74447
|
* Identity id of whoever composed the post.
|
|
74287
74448
|
*/
|
|
74288
74449
|
author: string;
|
|
74289
74450
|
/**
|
|
74290
|
-
* Post lifecycle status: draft (being written) -> pending_approval (submitted) -> approved (cleared to publish); scheduled/published/failed are set by the publishing pipeline.
|
|
74451
|
+
* 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.
|
|
74291
74452
|
*/
|
|
74292
|
-
status: ("draft" | "pending_approval" | "approved" | "scheduled" | "published" | "failed");
|
|
74453
|
+
status: ("idea" | "draft" | "pending_approval" | "approved" | "scheduled" | "published" | "failed");
|
|
74293
74454
|
/**
|
|
74294
74455
|
* The networks this post is meant for, each with its variant.
|
|
74295
74456
|
*/
|
|
@@ -74313,6 +74474,14 @@ export interface ContentPostsApproveOutput {
|
|
|
74313
74474
|
*/
|
|
74314
74475
|
postType: string;
|
|
74315
74476
|
}[];
|
|
74477
|
+
/**
|
|
74478
|
+
* Folder containing this post, or null.
|
|
74479
|
+
*/
|
|
74480
|
+
folderId: (string | null);
|
|
74481
|
+
/**
|
|
74482
|
+
* Order within its folder, or null for an unfiled post.
|
|
74483
|
+
*/
|
|
74484
|
+
position: (number | null);
|
|
74316
74485
|
/**
|
|
74317
74486
|
* ISO-8601 creation time.
|
|
74318
74487
|
*/
|
|
@@ -74356,14 +74525,22 @@ export interface ContentPostsAttachMediaOutput {
|
|
|
74356
74525
|
* Media references attached to the current version.
|
|
74357
74526
|
*/
|
|
74358
74527
|
media: string[];
|
|
74528
|
+
/**
|
|
74529
|
+
* Private plan notes, or null when unset.
|
|
74530
|
+
*/
|
|
74531
|
+
notes: (string | null);
|
|
74532
|
+
/**
|
|
74533
|
+
* Plan title, or null when unset.
|
|
74534
|
+
*/
|
|
74535
|
+
title: (string | null);
|
|
74359
74536
|
/**
|
|
74360
74537
|
* Identity id of whoever composed the post.
|
|
74361
74538
|
*/
|
|
74362
74539
|
author: string;
|
|
74363
74540
|
/**
|
|
74364
|
-
* Post lifecycle status: draft (being written) -> pending_approval (submitted) -> approved (cleared to publish); scheduled/published/failed are set by the publishing pipeline.
|
|
74541
|
+
* 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.
|
|
74365
74542
|
*/
|
|
74366
|
-
status: ("draft" | "pending_approval" | "approved" | "scheduled" | "published" | "failed");
|
|
74543
|
+
status: ("idea" | "draft" | "pending_approval" | "approved" | "scheduled" | "published" | "failed");
|
|
74367
74544
|
/**
|
|
74368
74545
|
* The networks this post is meant for, each with its variant.
|
|
74369
74546
|
*/
|
|
@@ -74387,6 +74564,14 @@ export interface ContentPostsAttachMediaOutput {
|
|
|
74387
74564
|
*/
|
|
74388
74565
|
postType: string;
|
|
74389
74566
|
}[];
|
|
74567
|
+
/**
|
|
74568
|
+
* Folder containing this post, or null.
|
|
74569
|
+
*/
|
|
74570
|
+
folderId: (string | null);
|
|
74571
|
+
/**
|
|
74572
|
+
* Order within its folder, or null for an unfiled post.
|
|
74573
|
+
*/
|
|
74574
|
+
position: (number | null);
|
|
74390
74575
|
/**
|
|
74391
74576
|
* ISO-8601 creation time.
|
|
74392
74577
|
*/
|
|
@@ -74406,15 +74591,23 @@ export interface ContentPostsAttachMediaOutput {
|
|
|
74406
74591
|
}
|
|
74407
74592
|
export interface ContentPostsCreateInput {
|
|
74408
74593
|
/**
|
|
74409
|
-
*
|
|
74594
|
+
* 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.
|
|
74410
74595
|
*/
|
|
74411
|
-
text
|
|
74596
|
+
text?: string;
|
|
74412
74597
|
/**
|
|
74413
74598
|
* Media references attached to the post, in display order. Opaque strings — the toolkit does not upload or resolve them.
|
|
74414
74599
|
*
|
|
74415
74600
|
* @maxItems 20
|
|
74416
74601
|
*/
|
|
74417
74602
|
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];
|
|
74603
|
+
/**
|
|
74604
|
+
* Private plan notes, up to 20,000 characters. They are not published.
|
|
74605
|
+
*/
|
|
74606
|
+
notes?: (string | null);
|
|
74607
|
+
/**
|
|
74608
|
+
* Optional plan title, up to 300 characters. Required when text is empty to create an idea.
|
|
74609
|
+
*/
|
|
74610
|
+
title?: (string | null);
|
|
74418
74611
|
/**
|
|
74419
74612
|
* 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.
|
|
74420
74613
|
*
|
|
@@ -78641,6 +78834,10 @@ export interface ContentPostsCreateInput {
|
|
|
78641
78834
|
postType?: string;
|
|
78642
78835
|
}
|
|
78643
78836
|
];
|
|
78837
|
+
/**
|
|
78838
|
+
* Folder in this product to place the post in, or null for no folder. A new post goes last in that folder.
|
|
78839
|
+
*/
|
|
78840
|
+
folderId?: (string | null);
|
|
78644
78841
|
}
|
|
78645
78842
|
export interface ContentPostsCreateOutput {
|
|
78646
78843
|
/**
|
|
@@ -78655,14 +78852,22 @@ export interface ContentPostsCreateOutput {
|
|
|
78655
78852
|
* Media references attached to the current version.
|
|
78656
78853
|
*/
|
|
78657
78854
|
media: string[];
|
|
78855
|
+
/**
|
|
78856
|
+
* Private plan notes, or null when unset.
|
|
78857
|
+
*/
|
|
78858
|
+
notes: (string | null);
|
|
78859
|
+
/**
|
|
78860
|
+
* Plan title, or null when unset.
|
|
78861
|
+
*/
|
|
78862
|
+
title: (string | null);
|
|
78658
78863
|
/**
|
|
78659
78864
|
* Identity id of whoever composed the post.
|
|
78660
78865
|
*/
|
|
78661
78866
|
author: string;
|
|
78662
78867
|
/**
|
|
78663
|
-
* Post lifecycle status: draft (being written) -> pending_approval (submitted) -> approved (cleared to publish); scheduled/published/failed are set by the publishing pipeline.
|
|
78868
|
+
* 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.
|
|
78664
78869
|
*/
|
|
78665
|
-
status: ("draft" | "pending_approval" | "approved" | "scheduled" | "published" | "failed");
|
|
78870
|
+
status: ("idea" | "draft" | "pending_approval" | "approved" | "scheduled" | "published" | "failed");
|
|
78666
78871
|
/**
|
|
78667
78872
|
* The networks this post is meant for, each with its variant.
|
|
78668
78873
|
*/
|
|
@@ -78686,6 +78891,14 @@ export interface ContentPostsCreateOutput {
|
|
|
78686
78891
|
*/
|
|
78687
78892
|
postType: string;
|
|
78688
78893
|
}[];
|
|
78894
|
+
/**
|
|
78895
|
+
* Folder containing this post, or null.
|
|
78896
|
+
*/
|
|
78897
|
+
folderId: (string | null);
|
|
78898
|
+
/**
|
|
78899
|
+
* Order within its folder, or null for an unfiled post.
|
|
78900
|
+
*/
|
|
78901
|
+
position: (number | null);
|
|
78689
78902
|
/**
|
|
78690
78903
|
* ISO-8601 creation time.
|
|
78691
78904
|
*/
|
|
@@ -78703,6 +78916,22 @@ export interface ContentPostsCreateOutput {
|
|
|
78703
78916
|
*/
|
|
78704
78917
|
approvedVersion: (number | null);
|
|
78705
78918
|
}
|
|
78919
|
+
export interface ContentPostsDeleteInput {
|
|
78920
|
+
/**
|
|
78921
|
+
* The post id returned by content_posts_create.
|
|
78922
|
+
*/
|
|
78923
|
+
postId: string;
|
|
78924
|
+
}
|
|
78925
|
+
export interface ContentPostsDeleteOutput {
|
|
78926
|
+
/**
|
|
78927
|
+
* The post id returned by content_posts_create.
|
|
78928
|
+
*/
|
|
78929
|
+
postId: string;
|
|
78930
|
+
/**
|
|
78931
|
+
* The post and its content versions were deleted.
|
|
78932
|
+
*/
|
|
78933
|
+
deleted: true;
|
|
78934
|
+
}
|
|
78706
78935
|
export interface ContentPostsDetachMediaInput {
|
|
78707
78936
|
/**
|
|
78708
78937
|
* The post id.
|
|
@@ -78729,14 +78958,22 @@ export interface ContentPostsDetachMediaOutput {
|
|
|
78729
78958
|
* Media references attached to the current version.
|
|
78730
78959
|
*/
|
|
78731
78960
|
media: string[];
|
|
78961
|
+
/**
|
|
78962
|
+
* Private plan notes, or null when unset.
|
|
78963
|
+
*/
|
|
78964
|
+
notes: (string | null);
|
|
78965
|
+
/**
|
|
78966
|
+
* Plan title, or null when unset.
|
|
78967
|
+
*/
|
|
78968
|
+
title: (string | null);
|
|
78732
78969
|
/**
|
|
78733
78970
|
* Identity id of whoever composed the post.
|
|
78734
78971
|
*/
|
|
78735
78972
|
author: string;
|
|
78736
78973
|
/**
|
|
78737
|
-
* Post lifecycle status: draft (being written) -> pending_approval (submitted) -> approved (cleared to publish); scheduled/published/failed are set by the publishing pipeline.
|
|
78974
|
+
* 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.
|
|
78738
78975
|
*/
|
|
78739
|
-
status: ("draft" | "pending_approval" | "approved" | "scheduled" | "published" | "failed");
|
|
78976
|
+
status: ("idea" | "draft" | "pending_approval" | "approved" | "scheduled" | "published" | "failed");
|
|
78740
78977
|
/**
|
|
78741
78978
|
* The networks this post is meant for, each with its variant.
|
|
78742
78979
|
*/
|
|
@@ -78760,6 +78997,14 @@ export interface ContentPostsDetachMediaOutput {
|
|
|
78760
78997
|
*/
|
|
78761
78998
|
postType: string;
|
|
78762
78999
|
}[];
|
|
79000
|
+
/**
|
|
79001
|
+
* Folder containing this post, or null.
|
|
79002
|
+
*/
|
|
79003
|
+
folderId: (string | null);
|
|
79004
|
+
/**
|
|
79005
|
+
* Order within its folder, or null for an unfiled post.
|
|
79006
|
+
*/
|
|
79007
|
+
position: (number | null);
|
|
78763
79008
|
/**
|
|
78764
79009
|
* ISO-8601 creation time.
|
|
78765
79010
|
*/
|
|
@@ -78796,14 +79041,22 @@ export interface ContentPostsGetOutput {
|
|
|
78796
79041
|
* Media references attached to the current version.
|
|
78797
79042
|
*/
|
|
78798
79043
|
media: string[];
|
|
79044
|
+
/**
|
|
79045
|
+
* Private plan notes, or null when unset.
|
|
79046
|
+
*/
|
|
79047
|
+
notes: (string | null);
|
|
79048
|
+
/**
|
|
79049
|
+
* Plan title, or null when unset.
|
|
79050
|
+
*/
|
|
79051
|
+
title: (string | null);
|
|
78799
79052
|
/**
|
|
78800
79053
|
* Identity id of whoever composed the post.
|
|
78801
79054
|
*/
|
|
78802
79055
|
author: string;
|
|
78803
79056
|
/**
|
|
78804
|
-
* Post lifecycle status: draft (being written) -> pending_approval (submitted) -> approved (cleared to publish); scheduled/published/failed are set by the publishing pipeline.
|
|
79057
|
+
* 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.
|
|
78805
79058
|
*/
|
|
78806
|
-
status: ("draft" | "pending_approval" | "approved" | "scheduled" | "published" | "failed");
|
|
79059
|
+
status: ("idea" | "draft" | "pending_approval" | "approved" | "scheduled" | "published" | "failed");
|
|
78807
79060
|
/**
|
|
78808
79061
|
* The networks this post is meant for, each with its variant.
|
|
78809
79062
|
*/
|
|
@@ -78827,6 +79080,14 @@ export interface ContentPostsGetOutput {
|
|
|
78827
79080
|
*/
|
|
78828
79081
|
postType: string;
|
|
78829
79082
|
}[];
|
|
79083
|
+
/**
|
|
79084
|
+
* Folder containing this post, or null.
|
|
79085
|
+
*/
|
|
79086
|
+
folderId: (string | null);
|
|
79087
|
+
/**
|
|
79088
|
+
* Order within its folder, or null for an unfiled post.
|
|
79089
|
+
*/
|
|
79090
|
+
position: (number | null);
|
|
78830
79091
|
/**
|
|
78831
79092
|
* ISO-8601 creation time.
|
|
78832
79093
|
*/
|
|
@@ -78856,11 +79117,15 @@ export interface ContentPostsListInput {
|
|
|
78856
79117
|
/**
|
|
78857
79118
|
* Return only posts in this status.
|
|
78858
79119
|
*/
|
|
78859
|
-
status?: ("draft" | "pending_approval" | "approved" | "scheduled" | "published" | "failed");
|
|
79120
|
+
status?: ("idea" | "draft" | "pending_approval" | "approved" | "scheduled" | "published" | "failed");
|
|
79121
|
+
/**
|
|
79122
|
+
* Filter to one folder, or null for posts in no folder. Omit for posts in every folder.
|
|
79123
|
+
*/
|
|
79124
|
+
folderId?: (string | null);
|
|
78860
79125
|
}
|
|
78861
79126
|
export interface ContentPostsListOutput {
|
|
78862
79127
|
/**
|
|
78863
|
-
* The page of posts, newest first.
|
|
79128
|
+
* The page of posts, ordered by position when filtered to a folder and newest first otherwise.
|
|
78864
79129
|
*/
|
|
78865
79130
|
posts: {
|
|
78866
79131
|
/**
|
|
@@ -78875,14 +79140,22 @@ export interface ContentPostsListOutput {
|
|
|
78875
79140
|
* Media references attached to the current version.
|
|
78876
79141
|
*/
|
|
78877
79142
|
media: string[];
|
|
79143
|
+
/**
|
|
79144
|
+
* Private plan notes, or null when unset.
|
|
79145
|
+
*/
|
|
79146
|
+
notes: (string | null);
|
|
79147
|
+
/**
|
|
79148
|
+
* Plan title, or null when unset.
|
|
79149
|
+
*/
|
|
79150
|
+
title: (string | null);
|
|
78878
79151
|
/**
|
|
78879
79152
|
* Identity id of whoever composed the post.
|
|
78880
79153
|
*/
|
|
78881
79154
|
author: string;
|
|
78882
79155
|
/**
|
|
78883
|
-
* Post lifecycle status: draft (being written) -> pending_approval (submitted) -> approved (cleared to publish); scheduled/published/failed are set by the publishing pipeline.
|
|
79156
|
+
* 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.
|
|
78884
79157
|
*/
|
|
78885
|
-
status: ("draft" | "pending_approval" | "approved" | "scheduled" | "published" | "failed");
|
|
79158
|
+
status: ("idea" | "draft" | "pending_approval" | "approved" | "scheduled" | "published" | "failed");
|
|
78886
79159
|
/**
|
|
78887
79160
|
* The networks this post is meant for, each with its variant.
|
|
78888
79161
|
*/
|
|
@@ -78906,6 +79179,14 @@ export interface ContentPostsListOutput {
|
|
|
78906
79179
|
*/
|
|
78907
79180
|
postType: string;
|
|
78908
79181
|
}[];
|
|
79182
|
+
/**
|
|
79183
|
+
* Folder containing this post, or null.
|
|
79184
|
+
*/
|
|
79185
|
+
folderId: (string | null);
|
|
79186
|
+
/**
|
|
79187
|
+
* Order within its folder, or null for an unfiled post.
|
|
79188
|
+
*/
|
|
79189
|
+
position: (number | null);
|
|
78909
79190
|
/**
|
|
78910
79191
|
* ISO-8601 creation time.
|
|
78911
79192
|
*/
|
|
@@ -78928,6 +79209,97 @@ export interface ContentPostsListOutput {
|
|
|
78928
79209
|
*/
|
|
78929
79210
|
total: number;
|
|
78930
79211
|
}
|
|
79212
|
+
export interface ContentPostsMoveInput {
|
|
79213
|
+
/**
|
|
79214
|
+
* The post id returned by content_posts_create.
|
|
79215
|
+
*/
|
|
79216
|
+
postId: string;
|
|
79217
|
+
/**
|
|
79218
|
+
* Destination folder in this product, or null to leave the post unfiled.
|
|
79219
|
+
*/
|
|
79220
|
+
folderId: (string | null);
|
|
79221
|
+
/**
|
|
79222
|
+
* Put the post immediately before this post in the destination folder. Omit to append it.
|
|
79223
|
+
*/
|
|
79224
|
+
beforePostId?: string;
|
|
79225
|
+
}
|
|
79226
|
+
export interface ContentPostsMoveOutput {
|
|
79227
|
+
/**
|
|
79228
|
+
* Post id.
|
|
79229
|
+
*/
|
|
79230
|
+
id: string;
|
|
79231
|
+
/**
|
|
79232
|
+
* The current text of the post, in markdown.
|
|
79233
|
+
*/
|
|
79234
|
+
text: string;
|
|
79235
|
+
/**
|
|
79236
|
+
* Media references attached to the current version.
|
|
79237
|
+
*/
|
|
79238
|
+
media: string[];
|
|
79239
|
+
/**
|
|
79240
|
+
* Private plan notes, or null when unset.
|
|
79241
|
+
*/
|
|
79242
|
+
notes: (string | null);
|
|
79243
|
+
/**
|
|
79244
|
+
* Plan title, or null when unset.
|
|
79245
|
+
*/
|
|
79246
|
+
title: (string | null);
|
|
79247
|
+
/**
|
|
79248
|
+
* Identity id of whoever composed the post.
|
|
79249
|
+
*/
|
|
79250
|
+
author: string;
|
|
79251
|
+
/**
|
|
79252
|
+
* 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.
|
|
79253
|
+
*/
|
|
79254
|
+
status: ("idea" | "draft" | "pending_approval" | "approved" | "scheduled" | "published" | "failed");
|
|
79255
|
+
/**
|
|
79256
|
+
* The networks this post is meant for, each with its variant.
|
|
79257
|
+
*/
|
|
79258
|
+
targets: {
|
|
79259
|
+
/**
|
|
79260
|
+
* Markdown override for this network, or null to publish the post text.
|
|
79261
|
+
*/
|
|
79262
|
+
text: (string | null);
|
|
79263
|
+
/**
|
|
79264
|
+
* Variant field values keyed by field id.
|
|
79265
|
+
*/
|
|
79266
|
+
fields: {
|
|
79267
|
+
[k: string]: string;
|
|
79268
|
+
};
|
|
79269
|
+
/**
|
|
79270
|
+
* The network this variant is for.
|
|
79271
|
+
*/
|
|
79272
|
+
network: string;
|
|
79273
|
+
/**
|
|
79274
|
+
* The post type id, from that network's capabilities.postTypes.
|
|
79275
|
+
*/
|
|
79276
|
+
postType: string;
|
|
79277
|
+
}[];
|
|
79278
|
+
/**
|
|
79279
|
+
* Folder containing this post, or null.
|
|
79280
|
+
*/
|
|
79281
|
+
folderId: (string | null);
|
|
79282
|
+
/**
|
|
79283
|
+
* Order within its folder, or null for an unfiled post.
|
|
79284
|
+
*/
|
|
79285
|
+
position: (number | null);
|
|
79286
|
+
/**
|
|
79287
|
+
* ISO-8601 creation time.
|
|
79288
|
+
*/
|
|
79289
|
+
createdAt: string;
|
|
79290
|
+
/**
|
|
79291
|
+
* ISO-8601 time of the last change.
|
|
79292
|
+
*/
|
|
79293
|
+
updatedAt: string;
|
|
79294
|
+
/**
|
|
79295
|
+
* Version number of the current text.
|
|
79296
|
+
*/
|
|
79297
|
+
currentVersion: number;
|
|
79298
|
+
/**
|
|
79299
|
+
* The version an approval binds to, or null. Cleared on every edit: approving one text never covers another.
|
|
79300
|
+
*/
|
|
79301
|
+
approvedVersion: (number | null);
|
|
79302
|
+
}
|
|
78931
79303
|
export interface ContentPostsSubmitInput {
|
|
78932
79304
|
/**
|
|
78933
79305
|
* The post id returned by content_posts_create.
|
|
@@ -78947,14 +79319,188 @@ export interface ContentPostsSubmitOutput {
|
|
|
78947
79319
|
* Media references attached to the current version.
|
|
78948
79320
|
*/
|
|
78949
79321
|
media: string[];
|
|
79322
|
+
/**
|
|
79323
|
+
* Private plan notes, or null when unset.
|
|
79324
|
+
*/
|
|
79325
|
+
notes: (string | null);
|
|
79326
|
+
/**
|
|
79327
|
+
* Plan title, or null when unset.
|
|
79328
|
+
*/
|
|
79329
|
+
title: (string | null);
|
|
79330
|
+
/**
|
|
79331
|
+
* Identity id of whoever composed the post.
|
|
79332
|
+
*/
|
|
79333
|
+
author: string;
|
|
79334
|
+
/**
|
|
79335
|
+
* 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.
|
|
79336
|
+
*/
|
|
79337
|
+
status: ("idea" | "draft" | "pending_approval" | "approved" | "scheduled" | "published" | "failed");
|
|
79338
|
+
/**
|
|
79339
|
+
* The networks this post is meant for, each with its variant.
|
|
79340
|
+
*/
|
|
79341
|
+
targets: {
|
|
79342
|
+
/**
|
|
79343
|
+
* Markdown override for this network, or null to publish the post text.
|
|
79344
|
+
*/
|
|
79345
|
+
text: (string | null);
|
|
79346
|
+
/**
|
|
79347
|
+
* Variant field values keyed by field id.
|
|
79348
|
+
*/
|
|
79349
|
+
fields: {
|
|
79350
|
+
[k: string]: string;
|
|
79351
|
+
};
|
|
79352
|
+
/**
|
|
79353
|
+
* The network this variant is for.
|
|
79354
|
+
*/
|
|
79355
|
+
network: string;
|
|
79356
|
+
/**
|
|
79357
|
+
* The post type id, from that network's capabilities.postTypes.
|
|
79358
|
+
*/
|
|
79359
|
+
postType: string;
|
|
79360
|
+
}[];
|
|
79361
|
+
/**
|
|
79362
|
+
* Folder containing this post, or null.
|
|
79363
|
+
*/
|
|
79364
|
+
folderId: (string | null);
|
|
79365
|
+
/**
|
|
79366
|
+
* Order within its folder, or null for an unfiled post.
|
|
79367
|
+
*/
|
|
79368
|
+
position: (number | null);
|
|
79369
|
+
/**
|
|
79370
|
+
* ISO-8601 creation time.
|
|
79371
|
+
*/
|
|
79372
|
+
createdAt: string;
|
|
79373
|
+
/**
|
|
79374
|
+
* ISO-8601 time of the last change.
|
|
79375
|
+
*/
|
|
79376
|
+
updatedAt: string;
|
|
79377
|
+
/**
|
|
79378
|
+
* Version number of the current text.
|
|
79379
|
+
*/
|
|
79380
|
+
currentVersion: number;
|
|
79381
|
+
/**
|
|
79382
|
+
* The version an approval binds to, or null. Cleared on every edit: approving one text never covers another.
|
|
79383
|
+
*/
|
|
79384
|
+
approvedVersion: (number | null);
|
|
79385
|
+
}
|
|
79386
|
+
export interface ContentPostsToDraftInput {
|
|
79387
|
+
/**
|
|
79388
|
+
* The post id returned by content_posts_create.
|
|
79389
|
+
*/
|
|
79390
|
+
postId: string;
|
|
79391
|
+
}
|
|
79392
|
+
export interface ContentPostsToDraftOutput {
|
|
79393
|
+
/**
|
|
79394
|
+
* Post id.
|
|
79395
|
+
*/
|
|
79396
|
+
id: string;
|
|
79397
|
+
/**
|
|
79398
|
+
* The current text of the post, in markdown.
|
|
79399
|
+
*/
|
|
79400
|
+
text: string;
|
|
79401
|
+
/**
|
|
79402
|
+
* Media references attached to the current version.
|
|
79403
|
+
*/
|
|
79404
|
+
media: string[];
|
|
79405
|
+
/**
|
|
79406
|
+
* Private plan notes, or null when unset.
|
|
79407
|
+
*/
|
|
79408
|
+
notes: (string | null);
|
|
79409
|
+
/**
|
|
79410
|
+
* Plan title, or null when unset.
|
|
79411
|
+
*/
|
|
79412
|
+
title: (string | null);
|
|
79413
|
+
/**
|
|
79414
|
+
* Identity id of whoever composed the post.
|
|
79415
|
+
*/
|
|
79416
|
+
author: string;
|
|
79417
|
+
/**
|
|
79418
|
+
* 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.
|
|
79419
|
+
*/
|
|
79420
|
+
status: ("idea" | "draft" | "pending_approval" | "approved" | "scheduled" | "published" | "failed");
|
|
79421
|
+
/**
|
|
79422
|
+
* The networks this post is meant for, each with its variant.
|
|
79423
|
+
*/
|
|
79424
|
+
targets: {
|
|
79425
|
+
/**
|
|
79426
|
+
* Markdown override for this network, or null to publish the post text.
|
|
79427
|
+
*/
|
|
79428
|
+
text: (string | null);
|
|
79429
|
+
/**
|
|
79430
|
+
* Variant field values keyed by field id.
|
|
79431
|
+
*/
|
|
79432
|
+
fields: {
|
|
79433
|
+
[k: string]: string;
|
|
79434
|
+
};
|
|
79435
|
+
/**
|
|
79436
|
+
* The network this variant is for.
|
|
79437
|
+
*/
|
|
79438
|
+
network: string;
|
|
79439
|
+
/**
|
|
79440
|
+
* The post type id, from that network's capabilities.postTypes.
|
|
79441
|
+
*/
|
|
79442
|
+
postType: string;
|
|
79443
|
+
}[];
|
|
79444
|
+
/**
|
|
79445
|
+
* Folder containing this post, or null.
|
|
79446
|
+
*/
|
|
79447
|
+
folderId: (string | null);
|
|
79448
|
+
/**
|
|
79449
|
+
* Order within its folder, or null for an unfiled post.
|
|
79450
|
+
*/
|
|
79451
|
+
position: (number | null);
|
|
79452
|
+
/**
|
|
79453
|
+
* ISO-8601 creation time.
|
|
79454
|
+
*/
|
|
79455
|
+
createdAt: string;
|
|
79456
|
+
/**
|
|
79457
|
+
* ISO-8601 time of the last change.
|
|
79458
|
+
*/
|
|
79459
|
+
updatedAt: string;
|
|
79460
|
+
/**
|
|
79461
|
+
* Version number of the current text.
|
|
79462
|
+
*/
|
|
79463
|
+
currentVersion: number;
|
|
79464
|
+
/**
|
|
79465
|
+
* The version an approval binds to, or null. Cleared on every edit: approving one text never covers another.
|
|
79466
|
+
*/
|
|
79467
|
+
approvedVersion: (number | null);
|
|
79468
|
+
}
|
|
79469
|
+
export interface ContentPostsToIdeaInput {
|
|
79470
|
+
/**
|
|
79471
|
+
* The post id returned by content_posts_create.
|
|
79472
|
+
*/
|
|
79473
|
+
postId: string;
|
|
79474
|
+
}
|
|
79475
|
+
export interface ContentPostsToIdeaOutput {
|
|
79476
|
+
/**
|
|
79477
|
+
* Post id.
|
|
79478
|
+
*/
|
|
79479
|
+
id: string;
|
|
79480
|
+
/**
|
|
79481
|
+
* The current text of the post, in markdown.
|
|
79482
|
+
*/
|
|
79483
|
+
text: string;
|
|
79484
|
+
/**
|
|
79485
|
+
* Media references attached to the current version.
|
|
79486
|
+
*/
|
|
79487
|
+
media: string[];
|
|
79488
|
+
/**
|
|
79489
|
+
* Private plan notes, or null when unset.
|
|
79490
|
+
*/
|
|
79491
|
+
notes: (string | null);
|
|
79492
|
+
/**
|
|
79493
|
+
* Plan title, or null when unset.
|
|
79494
|
+
*/
|
|
79495
|
+
title: (string | null);
|
|
78950
79496
|
/**
|
|
78951
79497
|
* Identity id of whoever composed the post.
|
|
78952
79498
|
*/
|
|
78953
79499
|
author: string;
|
|
78954
79500
|
/**
|
|
78955
|
-
* Post lifecycle status: draft (being written) -> pending_approval (submitted) -> approved (cleared to publish); scheduled/published/failed are set by the publishing pipeline.
|
|
79501
|
+
* 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.
|
|
78956
79502
|
*/
|
|
78957
|
-
status: ("draft" | "pending_approval" | "approved" | "scheduled" | "published" | "failed");
|
|
79503
|
+
status: ("idea" | "draft" | "pending_approval" | "approved" | "scheduled" | "published" | "failed");
|
|
78958
79504
|
/**
|
|
78959
79505
|
* The networks this post is meant for, each with its variant.
|
|
78960
79506
|
*/
|
|
@@ -78978,6 +79524,14 @@ export interface ContentPostsSubmitOutput {
|
|
|
78978
79524
|
*/
|
|
78979
79525
|
postType: string;
|
|
78980
79526
|
}[];
|
|
79527
|
+
/**
|
|
79528
|
+
* Folder containing this post, or null.
|
|
79529
|
+
*/
|
|
79530
|
+
folderId: (string | null);
|
|
79531
|
+
/**
|
|
79532
|
+
* Order within its folder, or null for an unfiled post.
|
|
79533
|
+
*/
|
|
79534
|
+
position: (number | null);
|
|
78981
79535
|
/**
|
|
78982
79536
|
* ISO-8601 creation time.
|
|
78983
79537
|
*/
|
|
@@ -79001,7 +79555,7 @@ export interface ContentPostsUpdateInput {
|
|
|
79001
79555
|
*/
|
|
79002
79556
|
id: string;
|
|
79003
79557
|
/**
|
|
79004
|
-
* Replacement text, in markdown. Omit to keep the current text.
|
|
79558
|
+
* Replacement text, in markdown; it may be empty for an idea or draft. Omit to keep the current text.
|
|
79005
79559
|
*/
|
|
79006
79560
|
text?: string;
|
|
79007
79561
|
/**
|
|
@@ -79010,6 +79564,14 @@ export interface ContentPostsUpdateInput {
|
|
|
79010
79564
|
* @maxItems 20
|
|
79011
79565
|
*/
|
|
79012
79566
|
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];
|
|
79567
|
+
/**
|
|
79568
|
+
* New private plan notes, or null to clear them. Changing them does not create a content version or revoke approval.
|
|
79569
|
+
*/
|
|
79570
|
+
notes?: (string | null);
|
|
79571
|
+
/**
|
|
79572
|
+
* New plan title, or null to clear it. Changing it does not create a content version or revoke approval.
|
|
79573
|
+
*/
|
|
79574
|
+
title?: (string | null);
|
|
79013
79575
|
/**
|
|
79014
79576
|
* 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.
|
|
79015
79577
|
*
|
|
@@ -83250,14 +83812,22 @@ export interface ContentPostsUpdateOutput {
|
|
|
83250
83812
|
* Media references attached to the current version.
|
|
83251
83813
|
*/
|
|
83252
83814
|
media: string[];
|
|
83815
|
+
/**
|
|
83816
|
+
* Private plan notes, or null when unset.
|
|
83817
|
+
*/
|
|
83818
|
+
notes: (string | null);
|
|
83819
|
+
/**
|
|
83820
|
+
* Plan title, or null when unset.
|
|
83821
|
+
*/
|
|
83822
|
+
title: (string | null);
|
|
83253
83823
|
/**
|
|
83254
83824
|
* Identity id of whoever composed the post.
|
|
83255
83825
|
*/
|
|
83256
83826
|
author: string;
|
|
83257
83827
|
/**
|
|
83258
|
-
* Post lifecycle status: draft (being written) -> pending_approval (submitted) -> approved (cleared to publish); scheduled/published/failed are set by the publishing pipeline.
|
|
83828
|
+
* 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.
|
|
83259
83829
|
*/
|
|
83260
|
-
status: ("draft" | "pending_approval" | "approved" | "scheduled" | "published" | "failed");
|
|
83830
|
+
status: ("idea" | "draft" | "pending_approval" | "approved" | "scheduled" | "published" | "failed");
|
|
83261
83831
|
/**
|
|
83262
83832
|
* The networks this post is meant for, each with its variant.
|
|
83263
83833
|
*/
|
|
@@ -83281,6 +83851,14 @@ export interface ContentPostsUpdateOutput {
|
|
|
83281
83851
|
*/
|
|
83282
83852
|
postType: string;
|
|
83283
83853
|
}[];
|
|
83854
|
+
/**
|
|
83855
|
+
* Folder containing this post, or null.
|
|
83856
|
+
*/
|
|
83857
|
+
folderId: (string | null);
|
|
83858
|
+
/**
|
|
83859
|
+
* Order within its folder, or null for an unfiled post.
|
|
83860
|
+
*/
|
|
83861
|
+
position: (number | null);
|
|
83284
83862
|
/**
|
|
83285
83863
|
* ISO-8601 creation time.
|
|
83286
83864
|
*/
|