@zilfu/sdk 0.1.3 → 0.1.5
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/dist/index.cjs +26 -16
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +75 -61
- package/dist/index.d.ts +75 -61
- package/dist/index.js +26 -16
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -392,6 +392,14 @@ type PostResource = {
|
|
|
392
392
|
* PostStatus
|
|
393
393
|
*/
|
|
394
394
|
type PostStatus = 0 | 1 | 2 | 3 | 4;
|
|
395
|
+
/**
|
|
396
|
+
* SessionResource
|
|
397
|
+
*/
|
|
398
|
+
type SessionResource = {
|
|
399
|
+
id: string;
|
|
400
|
+
name: string;
|
|
401
|
+
email: string;
|
|
402
|
+
};
|
|
395
403
|
/**
|
|
396
404
|
* SignMediaRequest
|
|
397
405
|
*/
|
|
@@ -412,6 +420,7 @@ type SlotResource = {
|
|
|
412
420
|
type SpaceResource = {
|
|
413
421
|
id: number;
|
|
414
422
|
name: string;
|
|
423
|
+
timezone: string | null;
|
|
415
424
|
created_at: string | null;
|
|
416
425
|
updated_at: string | null;
|
|
417
426
|
};
|
|
@@ -436,9 +445,9 @@ type StoreBioPageRequest = {
|
|
|
436
445
|
* StorePostRequest
|
|
437
446
|
*/
|
|
438
447
|
type StorePostRequest = {
|
|
448
|
+
space_id: number;
|
|
439
449
|
at?: number | null;
|
|
440
450
|
is_draft?: boolean;
|
|
441
|
-
space_id: number;
|
|
442
451
|
items: Array<{
|
|
443
452
|
account_id: number;
|
|
444
453
|
social: string;
|
|
@@ -509,53 +518,13 @@ type UpdateBioPageRequest = {
|
|
|
509
518
|
theme?: 'minimal' | 'bold' | 'neon' | 'soft' | 'classic';
|
|
510
519
|
is_enabled?: boolean;
|
|
511
520
|
};
|
|
512
|
-
/**
|
|
513
|
-
* UpdateClusterRequest
|
|
514
|
-
*/
|
|
515
|
-
type UpdateClusterRequest = {
|
|
516
|
-
at?: number | null;
|
|
517
|
-
is_draft?: boolean;
|
|
518
|
-
space_id: number;
|
|
519
|
-
items: Array<{
|
|
520
|
-
account_id: number;
|
|
521
|
-
social: string;
|
|
522
|
-
children?: Array<{
|
|
523
|
-
content: string;
|
|
524
|
-
media?: Array<{
|
|
525
|
-
url: string;
|
|
526
|
-
type: 'image' | 'video';
|
|
527
|
-
}> | null;
|
|
528
|
-
}> | null;
|
|
529
|
-
metadata?: {
|
|
530
|
-
topic_tag?: string | null;
|
|
531
|
-
post_type?: string | null;
|
|
532
|
-
link?: string | null;
|
|
533
|
-
privacy_level?: string | null;
|
|
534
|
-
allow_comments?: boolean | null;
|
|
535
|
-
allow_duet?: boolean | null;
|
|
536
|
-
allow_stitch?: boolean | null;
|
|
537
|
-
branded_content?: boolean | null;
|
|
538
|
-
brand_organic?: boolean | null;
|
|
539
|
-
board_id?: string | null;
|
|
540
|
-
title?: string | null;
|
|
541
|
-
cover_image_url?: string | null;
|
|
542
|
-
} | null;
|
|
543
|
-
main?: {
|
|
544
|
-
content: string;
|
|
545
|
-
media?: Array<{
|
|
546
|
-
url: string;
|
|
547
|
-
type: 'image' | 'video';
|
|
548
|
-
}> | null;
|
|
549
|
-
};
|
|
550
|
-
}>;
|
|
551
|
-
};
|
|
552
521
|
/**
|
|
553
522
|
* UpdatePostRequest
|
|
554
523
|
*/
|
|
555
524
|
type UpdatePostRequest = {
|
|
525
|
+
at?: number | null;
|
|
526
|
+
is_draft?: boolean;
|
|
556
527
|
content?: string;
|
|
557
|
-
status?: PostStatus;
|
|
558
|
-
scheduled_at?: string | null;
|
|
559
528
|
metadata?: {
|
|
560
529
|
topic_tag?: string | null;
|
|
561
530
|
post_type?: string | null;
|
|
@@ -574,6 +543,13 @@ type UpdatePostRequest = {
|
|
|
574
543
|
url: string;
|
|
575
544
|
type: 'image' | 'video';
|
|
576
545
|
}> | null;
|
|
546
|
+
children?: Array<{
|
|
547
|
+
content: string;
|
|
548
|
+
media?: Array<{
|
|
549
|
+
url: string;
|
|
550
|
+
type: 'image' | 'video';
|
|
551
|
+
}> | null;
|
|
552
|
+
}> | null;
|
|
577
553
|
};
|
|
578
554
|
/**
|
|
579
555
|
* UpdateSpaceRequest
|
|
@@ -1806,19 +1782,22 @@ type PutSpacesBySpacePostsByPostResponses = {
|
|
|
1806
1782
|
};
|
|
1807
1783
|
};
|
|
1808
1784
|
type PutSpacesBySpacePostsByPostResponse = PutSpacesBySpacePostsByPostResponses[keyof PutSpacesBySpacePostsByPostResponses];
|
|
1809
|
-
type
|
|
1810
|
-
body
|
|
1785
|
+
type PostSpacesBySpacePostsByPostRetryData = {
|
|
1786
|
+
body?: never;
|
|
1811
1787
|
path: {
|
|
1812
1788
|
/**
|
|
1813
1789
|
* The space ID
|
|
1814
1790
|
*/
|
|
1815
1791
|
space: number;
|
|
1816
|
-
|
|
1792
|
+
/**
|
|
1793
|
+
* The post ID
|
|
1794
|
+
*/
|
|
1795
|
+
post: number;
|
|
1817
1796
|
};
|
|
1818
1797
|
query?: never;
|
|
1819
|
-
url: '/spaces/{space}/
|
|
1798
|
+
url: '/spaces/{space}/posts/{post}/retry';
|
|
1820
1799
|
};
|
|
1821
|
-
type
|
|
1800
|
+
type PostSpacesBySpacePostsByPostRetryErrors = {
|
|
1822
1801
|
/**
|
|
1823
1802
|
* Unauthenticated
|
|
1824
1803
|
*/
|
|
@@ -1862,18 +1841,18 @@ type PutSpacesBySpaceClustersByClusterIdErrors = {
|
|
|
1862
1841
|
};
|
|
1863
1842
|
};
|
|
1864
1843
|
};
|
|
1865
|
-
type
|
|
1866
|
-
type
|
|
1844
|
+
type PostSpacesBySpacePostsByPostRetryError = PostSpacesBySpacePostsByPostRetryErrors[keyof PostSpacesBySpacePostsByPostRetryErrors];
|
|
1845
|
+
type PostSpacesBySpacePostsByPostRetryResponses = {
|
|
1867
1846
|
/**
|
|
1868
|
-
*
|
|
1847
|
+
* `PostResource`
|
|
1869
1848
|
*/
|
|
1870
1849
|
200: {
|
|
1871
|
-
data:
|
|
1850
|
+
data: PostResource;
|
|
1872
1851
|
} | {
|
|
1873
1852
|
[key: string]: unknown;
|
|
1874
1853
|
};
|
|
1875
1854
|
};
|
|
1876
|
-
type
|
|
1855
|
+
type PostSpacesBySpacePostsByPostRetryResponse = PostSpacesBySpacePostsByPostRetryResponses[keyof PostSpacesBySpacePostsByPostRetryResponses];
|
|
1877
1856
|
type GetSpacesBySpaceQueueData = {
|
|
1878
1857
|
body?: never;
|
|
1879
1858
|
path: {
|
|
@@ -1927,6 +1906,33 @@ type GetSpacesBySpaceQueueResponses = {
|
|
|
1927
1906
|
};
|
|
1928
1907
|
};
|
|
1929
1908
|
type GetSpacesBySpaceQueueResponse = GetSpacesBySpaceQueueResponses[keyof GetSpacesBySpaceQueueResponses];
|
|
1909
|
+
type GetSessionData = {
|
|
1910
|
+
body?: never;
|
|
1911
|
+
path?: never;
|
|
1912
|
+
query?: never;
|
|
1913
|
+
url: '/session';
|
|
1914
|
+
};
|
|
1915
|
+
type GetSessionErrors = {
|
|
1916
|
+
/**
|
|
1917
|
+
* Unauthenticated
|
|
1918
|
+
*/
|
|
1919
|
+
401: {
|
|
1920
|
+
/**
|
|
1921
|
+
* Error overview.
|
|
1922
|
+
*/
|
|
1923
|
+
message: string;
|
|
1924
|
+
};
|
|
1925
|
+
};
|
|
1926
|
+
type GetSessionError = GetSessionErrors[keyof GetSessionErrors];
|
|
1927
|
+
type GetSessionResponses = {
|
|
1928
|
+
/**
|
|
1929
|
+
* `SessionResource`
|
|
1930
|
+
*/
|
|
1931
|
+
200: {
|
|
1932
|
+
data: SessionResource;
|
|
1933
|
+
};
|
|
1934
|
+
};
|
|
1935
|
+
type GetSessionResponse = GetSessionResponses[keyof GetSessionResponses];
|
|
1930
1936
|
type GetSpacesBySpaceSlotsData = {
|
|
1931
1937
|
body?: never;
|
|
1932
1938
|
path: {
|
|
@@ -2743,16 +2749,18 @@ declare class Posts extends HeyApiClient {
|
|
|
2743
2749
|
get<ThrowOnError extends boolean = false>(options: Options<GetSpacesBySpacePostsByPostData, ThrowOnError>): RequestResult<GetSpacesBySpacePostsByPostResponses, GetSpacesBySpacePostsByPostErrors, ThrowOnError, "fields">;
|
|
2744
2750
|
/**
|
|
2745
2751
|
* Update a post
|
|
2752
|
+
*
|
|
2753
|
+
* Updates content, media, thread replies, schedule, status, and metadata for a single post.
|
|
2746
2754
|
*/
|
|
2747
2755
|
update<ThrowOnError extends boolean = false>(options: Options<PutSpacesBySpacePostsByPostData, ThrowOnError>): RequestResult<PutSpacesBySpacePostsByPostResponses, PutSpacesBySpacePostsByPostErrors, ThrowOnError, "fields">;
|
|
2748
|
-
}
|
|
2749
|
-
declare class Clusters extends HeyApiClient {
|
|
2750
2756
|
/**
|
|
2751
|
-
*
|
|
2757
|
+
* Retry publishing a failed post
|
|
2752
2758
|
*
|
|
2753
|
-
*
|
|
2759
|
+
* Resets the post (and any non-published children) from Error to Scheduled,
|
|
2760
|
+
* clears the stored error metadata, and re-dispatches the publish job.
|
|
2761
|
+
* For threads, already-published children are skipped on retry.
|
|
2754
2762
|
*/
|
|
2755
|
-
|
|
2763
|
+
retry<ThrowOnError extends boolean = false>(options: Options<PostSpacesBySpacePostsByPostRetryData, ThrowOnError>): RequestResult<PostSpacesBySpacePostsByPostRetryResponses, PostSpacesBySpacePostsByPostRetryErrors, ThrowOnError, "fields">;
|
|
2756
2764
|
}
|
|
2757
2765
|
declare class Queue extends HeyApiClient {
|
|
2758
2766
|
/**
|
|
@@ -2762,6 +2770,12 @@ declare class Queue extends HeyApiClient {
|
|
|
2762
2770
|
*/
|
|
2763
2771
|
list<ThrowOnError extends boolean = false>(options: Options<GetSpacesBySpaceQueueData, ThrowOnError>): RequestResult<GetSpacesBySpaceQueueResponses, GetSpacesBySpaceQueueErrors, ThrowOnError, "fields">;
|
|
2764
2772
|
}
|
|
2773
|
+
declare class Session extends HeyApiClient {
|
|
2774
|
+
/**
|
|
2775
|
+
* Get the authenticated session's user
|
|
2776
|
+
*/
|
|
2777
|
+
get<ThrowOnError extends boolean = false>(options?: Options<GetSessionData, ThrowOnError>): RequestResult<GetSessionResponses, GetSessionErrors, ThrowOnError, "fields">;
|
|
2778
|
+
}
|
|
2765
2779
|
declare class Slots extends HeyApiClient {
|
|
2766
2780
|
/**
|
|
2767
2781
|
* List slots
|
|
@@ -2848,10 +2862,10 @@ declare class ZilfuApi extends HeyApiClient {
|
|
|
2848
2862
|
get media(): Media;
|
|
2849
2863
|
private _posts?;
|
|
2850
2864
|
get posts(): Posts;
|
|
2851
|
-
private _clusters?;
|
|
2852
|
-
get clusters(): Clusters;
|
|
2853
2865
|
private _queue?;
|
|
2854
2866
|
get queue(): Queue;
|
|
2867
|
+
private _session?;
|
|
2868
|
+
get session(): Session;
|
|
2855
2869
|
private _slots?;
|
|
2856
2870
|
get slots(): Slots;
|
|
2857
2871
|
private _spaces?;
|
|
@@ -2892,4 +2906,4 @@ declare class ZilfuApiError extends Error {
|
|
|
2892
2906
|
constructor(init: ZilfuApiErrorInit);
|
|
2893
2907
|
}
|
|
2894
2908
|
|
|
2895
|
-
export { type AccountResource, type BioBlockResource, type BioPageResource, type ClientOptions, type CreateZilfuClientOptions, type DeleteApiTokensByTokenIdData, type DeleteApiTokensByTokenIdError, type DeleteApiTokensByTokenIdErrors, type DeleteApiTokensByTokenIdResponses, type DeleteSpacesBySpaceAccountsByAccountData, type DeleteSpacesBySpaceAccountsByAccountError, type DeleteSpacesBySpaceAccountsByAccountErrors, type DeleteSpacesBySpaceAccountsByAccountResponse, type DeleteSpacesBySpaceAccountsByAccountResponses, type DeleteSpacesBySpaceBioBlocksByBlockData, type DeleteSpacesBySpaceBioBlocksByBlockError, type DeleteSpacesBySpaceBioBlocksByBlockErrors, type DeleteSpacesBySpaceBioBlocksByBlockResponse, type DeleteSpacesBySpaceBioBlocksByBlockResponses, type DeleteSpacesBySpaceData, type DeleteSpacesBySpaceError, type DeleteSpacesBySpaceErrors, type DeleteSpacesBySpacePostsByPostData, type DeleteSpacesBySpacePostsByPostError, type DeleteSpacesBySpacePostsByPostErrors, type DeleteSpacesBySpacePostsByPostResponse, type DeleteSpacesBySpacePostsByPostResponses, type DeleteSpacesBySpaceResponse, type DeleteSpacesBySpaceResponses, type DeleteSpacesBySpaceSlotsBySlotData, type DeleteSpacesBySpaceSlotsBySlotError, type DeleteSpacesBySpaceSlotsBySlotErrors, type DeleteSpacesBySpaceSlotsBySlotResponse, type DeleteSpacesBySpaceSlotsBySlotResponses, type DeleteSpacesBySpaceWebhooksByWebhookData, type DeleteSpacesBySpaceWebhooksByWebhookError, type DeleteSpacesBySpaceWebhooksByWebhookErrors, type DeleteSpacesBySpaceWebhooksByWebhookResponse, type DeleteSpacesBySpaceWebhooksByWebhookResponses, type GetHealthData, type GetHealthError, type GetHealthErrors, type GetHealthResponse, type GetHealthResponses, type GetSpacesBySpaceAccountsByAccountBoardsData, type GetSpacesBySpaceAccountsByAccountBoardsError, type GetSpacesBySpaceAccountsByAccountBoardsErrors, type GetSpacesBySpaceAccountsByAccountBoardsResponse, type GetSpacesBySpaceAccountsByAccountBoardsResponses, type GetSpacesBySpaceAccountsData, type GetSpacesBySpaceAccountsError, type GetSpacesBySpaceAccountsErrors, type GetSpacesBySpaceAccountsResponse, type GetSpacesBySpaceAccountsResponses, type GetSpacesBySpaceBioBlocksData, type GetSpacesBySpaceBioBlocksError, type GetSpacesBySpaceBioBlocksErrors, type GetSpacesBySpaceBioBlocksResponse, type GetSpacesBySpaceBioBlocksResponses, type GetSpacesBySpaceBioData, type GetSpacesBySpaceBioError, type GetSpacesBySpaceBioErrors, type GetSpacesBySpaceBioResponse, type GetSpacesBySpaceBioResponses, type GetSpacesBySpaceData, type GetSpacesBySpaceError, type GetSpacesBySpaceErrors, type GetSpacesBySpacePostsByPostData, type GetSpacesBySpacePostsByPostError, type GetSpacesBySpacePostsByPostErrors, type GetSpacesBySpacePostsByPostResponse, type GetSpacesBySpacePostsByPostResponses, type GetSpacesBySpacePostsData, type GetSpacesBySpacePostsError, type GetSpacesBySpacePostsErrors, type GetSpacesBySpacePostsResponse, type GetSpacesBySpacePostsResponses, type GetSpacesBySpaceQueueData, type GetSpacesBySpaceQueueError, type GetSpacesBySpaceQueueErrors, type GetSpacesBySpaceQueueResponse, type GetSpacesBySpaceQueueResponses, type GetSpacesBySpaceResponse, type GetSpacesBySpaceResponses, type GetSpacesBySpaceSlotsData, type GetSpacesBySpaceSlotsError, type GetSpacesBySpaceSlotsErrors, type GetSpacesBySpaceSlotsResponse, type GetSpacesBySpaceSlotsResponses, type GetSpacesBySpaceWebhooksData, type GetSpacesBySpaceWebhooksError, type GetSpacesBySpaceWebhooksErrors, type GetSpacesBySpaceWebhooksResponse, type GetSpacesBySpaceWebhooksResponses, type GetSpacesData, type GetSpacesError, type GetSpacesErrors, type GetSpacesResponse, type GetSpacesResponses, type GetSubscriptionData, type GetSubscriptionError, type GetSubscriptionErrors, type GetSubscriptionResponse, type GetSubscriptionResponses, type MediaResource, type PatchSpacesBySpaceAccountsByAccountActivateData, type PatchSpacesBySpaceAccountsByAccountActivateError, type PatchSpacesBySpaceAccountsByAccountActivateErrors, type PatchSpacesBySpaceAccountsByAccountActivateResponse, type PatchSpacesBySpaceAccountsByAccountActivateResponses, type PostApiTokensData, type PostApiTokensError, type PostApiTokensErrors, type PostApiTokensResponses, type PostMediaSignData, type PostMediaSignError, type PostMediaSignErrors, type PostMediaSignResponse, type PostMediaSignResponses, type PostResource, type PostSpacesBySpaceBioAvatarData, type PostSpacesBySpaceBioAvatarError, type PostSpacesBySpaceBioAvatarErrors, type PostSpacesBySpaceBioAvatarResponse, type PostSpacesBySpaceBioAvatarResponses, type PostSpacesBySpaceBioBlocksByBlockReorderData, type PostSpacesBySpaceBioBlocksByBlockReorderError, type PostSpacesBySpaceBioBlocksByBlockReorderErrors, type PostSpacesBySpaceBioBlocksByBlockReorderResponse, type PostSpacesBySpaceBioBlocksByBlockReorderResponses, type PostSpacesBySpaceBioBlocksData, type PostSpacesBySpaceBioBlocksError, type PostSpacesBySpaceBioBlocksErrors, type PostSpacesBySpaceBioBlocksResponse, type PostSpacesBySpaceBioBlocksResponses, type PostSpacesBySpaceBioData, type PostSpacesBySpaceBioError, type PostSpacesBySpaceBioErrors, type PostSpacesBySpaceBioResponse, type PostSpacesBySpaceBioResponses, type PostSpacesBySpacePostsData, type PostSpacesBySpacePostsError, type PostSpacesBySpacePostsErrors, type PostSpacesBySpacePostsResponse, type PostSpacesBySpacePostsResponses, type PostSpacesBySpaceSlotsData, type PostSpacesBySpaceSlotsError, type PostSpacesBySpaceSlotsErrors, type PostSpacesBySpaceSlotsResponse, type PostSpacesBySpaceSlotsResponses, type PostSpacesBySpaceWebhooksData, type PostSpacesBySpaceWebhooksError, type PostSpacesBySpaceWebhooksErrors, type PostSpacesBySpaceWebhooksResponse, type PostSpacesBySpaceWebhooksResponses, type PostSpacesData, type PostSpacesError, type PostSpacesErrors, type PostSpacesResponse, type PostSpacesResponses, type PostStatus, type PutSpacesBySpaceBioBlocksByBlockData, type PutSpacesBySpaceBioBlocksByBlockError, type PutSpacesBySpaceBioBlocksByBlockErrors, type PutSpacesBySpaceBioBlocksByBlockResponse, type PutSpacesBySpaceBioBlocksByBlockResponses, type PutSpacesBySpaceBioData, type PutSpacesBySpaceBioError, type PutSpacesBySpaceBioErrors, type PutSpacesBySpaceBioResponse, type PutSpacesBySpaceBioResponses, type
|
|
2909
|
+
export { type AccountResource, type BioBlockResource, type BioPageResource, type ClientOptions, type CreateZilfuClientOptions, type DeleteApiTokensByTokenIdData, type DeleteApiTokensByTokenIdError, type DeleteApiTokensByTokenIdErrors, type DeleteApiTokensByTokenIdResponses, type DeleteSpacesBySpaceAccountsByAccountData, type DeleteSpacesBySpaceAccountsByAccountError, type DeleteSpacesBySpaceAccountsByAccountErrors, type DeleteSpacesBySpaceAccountsByAccountResponse, type DeleteSpacesBySpaceAccountsByAccountResponses, type DeleteSpacesBySpaceBioBlocksByBlockData, type DeleteSpacesBySpaceBioBlocksByBlockError, type DeleteSpacesBySpaceBioBlocksByBlockErrors, type DeleteSpacesBySpaceBioBlocksByBlockResponse, type DeleteSpacesBySpaceBioBlocksByBlockResponses, type DeleteSpacesBySpaceData, type DeleteSpacesBySpaceError, type DeleteSpacesBySpaceErrors, type DeleteSpacesBySpacePostsByPostData, type DeleteSpacesBySpacePostsByPostError, type DeleteSpacesBySpacePostsByPostErrors, type DeleteSpacesBySpacePostsByPostResponse, type DeleteSpacesBySpacePostsByPostResponses, type DeleteSpacesBySpaceResponse, type DeleteSpacesBySpaceResponses, type DeleteSpacesBySpaceSlotsBySlotData, type DeleteSpacesBySpaceSlotsBySlotError, type DeleteSpacesBySpaceSlotsBySlotErrors, type DeleteSpacesBySpaceSlotsBySlotResponse, type DeleteSpacesBySpaceSlotsBySlotResponses, type DeleteSpacesBySpaceWebhooksByWebhookData, type DeleteSpacesBySpaceWebhooksByWebhookError, type DeleteSpacesBySpaceWebhooksByWebhookErrors, type DeleteSpacesBySpaceWebhooksByWebhookResponse, type DeleteSpacesBySpaceWebhooksByWebhookResponses, type GetHealthData, type GetHealthError, type GetHealthErrors, type GetHealthResponse, type GetHealthResponses, type GetSessionData, type GetSessionError, type GetSessionErrors, type GetSessionResponse, type GetSessionResponses, type GetSpacesBySpaceAccountsByAccountBoardsData, type GetSpacesBySpaceAccountsByAccountBoardsError, type GetSpacesBySpaceAccountsByAccountBoardsErrors, type GetSpacesBySpaceAccountsByAccountBoardsResponse, type GetSpacesBySpaceAccountsByAccountBoardsResponses, type GetSpacesBySpaceAccountsData, type GetSpacesBySpaceAccountsError, type GetSpacesBySpaceAccountsErrors, type GetSpacesBySpaceAccountsResponse, type GetSpacesBySpaceAccountsResponses, type GetSpacesBySpaceBioBlocksData, type GetSpacesBySpaceBioBlocksError, type GetSpacesBySpaceBioBlocksErrors, type GetSpacesBySpaceBioBlocksResponse, type GetSpacesBySpaceBioBlocksResponses, type GetSpacesBySpaceBioData, type GetSpacesBySpaceBioError, type GetSpacesBySpaceBioErrors, type GetSpacesBySpaceBioResponse, type GetSpacesBySpaceBioResponses, type GetSpacesBySpaceData, type GetSpacesBySpaceError, type GetSpacesBySpaceErrors, type GetSpacesBySpacePostsByPostData, type GetSpacesBySpacePostsByPostError, type GetSpacesBySpacePostsByPostErrors, type GetSpacesBySpacePostsByPostResponse, type GetSpacesBySpacePostsByPostResponses, type GetSpacesBySpacePostsData, type GetSpacesBySpacePostsError, type GetSpacesBySpacePostsErrors, type GetSpacesBySpacePostsResponse, type GetSpacesBySpacePostsResponses, type GetSpacesBySpaceQueueData, type GetSpacesBySpaceQueueError, type GetSpacesBySpaceQueueErrors, type GetSpacesBySpaceQueueResponse, type GetSpacesBySpaceQueueResponses, type GetSpacesBySpaceResponse, type GetSpacesBySpaceResponses, type GetSpacesBySpaceSlotsData, type GetSpacesBySpaceSlotsError, type GetSpacesBySpaceSlotsErrors, type GetSpacesBySpaceSlotsResponse, type GetSpacesBySpaceSlotsResponses, type GetSpacesBySpaceWebhooksData, type GetSpacesBySpaceWebhooksError, type GetSpacesBySpaceWebhooksErrors, type GetSpacesBySpaceWebhooksResponse, type GetSpacesBySpaceWebhooksResponses, type GetSpacesData, type GetSpacesError, type GetSpacesErrors, type GetSpacesResponse, type GetSpacesResponses, type GetSubscriptionData, type GetSubscriptionError, type GetSubscriptionErrors, type GetSubscriptionResponse, type GetSubscriptionResponses, type MediaResource, type PatchSpacesBySpaceAccountsByAccountActivateData, type PatchSpacesBySpaceAccountsByAccountActivateError, type PatchSpacesBySpaceAccountsByAccountActivateErrors, type PatchSpacesBySpaceAccountsByAccountActivateResponse, type PatchSpacesBySpaceAccountsByAccountActivateResponses, type PostApiTokensData, type PostApiTokensError, type PostApiTokensErrors, type PostApiTokensResponses, type PostMediaSignData, type PostMediaSignError, type PostMediaSignErrors, type PostMediaSignResponse, type PostMediaSignResponses, type PostResource, type PostSpacesBySpaceBioAvatarData, type PostSpacesBySpaceBioAvatarError, type PostSpacesBySpaceBioAvatarErrors, type PostSpacesBySpaceBioAvatarResponse, type PostSpacesBySpaceBioAvatarResponses, type PostSpacesBySpaceBioBlocksByBlockReorderData, type PostSpacesBySpaceBioBlocksByBlockReorderError, type PostSpacesBySpaceBioBlocksByBlockReorderErrors, type PostSpacesBySpaceBioBlocksByBlockReorderResponse, type PostSpacesBySpaceBioBlocksByBlockReorderResponses, type PostSpacesBySpaceBioBlocksData, type PostSpacesBySpaceBioBlocksError, type PostSpacesBySpaceBioBlocksErrors, type PostSpacesBySpaceBioBlocksResponse, type PostSpacesBySpaceBioBlocksResponses, type PostSpacesBySpaceBioData, type PostSpacesBySpaceBioError, type PostSpacesBySpaceBioErrors, type PostSpacesBySpaceBioResponse, type PostSpacesBySpaceBioResponses, type PostSpacesBySpacePostsByPostRetryData, type PostSpacesBySpacePostsByPostRetryError, type PostSpacesBySpacePostsByPostRetryErrors, type PostSpacesBySpacePostsByPostRetryResponse, type PostSpacesBySpacePostsByPostRetryResponses, type PostSpacesBySpacePostsData, type PostSpacesBySpacePostsError, type PostSpacesBySpacePostsErrors, type PostSpacesBySpacePostsResponse, type PostSpacesBySpacePostsResponses, type PostSpacesBySpaceSlotsData, type PostSpacesBySpaceSlotsError, type PostSpacesBySpaceSlotsErrors, type PostSpacesBySpaceSlotsResponse, type PostSpacesBySpaceSlotsResponses, type PostSpacesBySpaceWebhooksData, type PostSpacesBySpaceWebhooksError, type PostSpacesBySpaceWebhooksErrors, type PostSpacesBySpaceWebhooksResponse, type PostSpacesBySpaceWebhooksResponses, type PostSpacesData, type PostSpacesError, type PostSpacesErrors, type PostSpacesResponse, type PostSpacesResponses, type PostStatus, type PutSpacesBySpaceBioBlocksByBlockData, type PutSpacesBySpaceBioBlocksByBlockError, type PutSpacesBySpaceBioBlocksByBlockErrors, type PutSpacesBySpaceBioBlocksByBlockResponse, type PutSpacesBySpaceBioBlocksByBlockResponses, type PutSpacesBySpaceBioData, type PutSpacesBySpaceBioError, type PutSpacesBySpaceBioErrors, type PutSpacesBySpaceBioResponse, type PutSpacesBySpaceBioResponses, type PutSpacesBySpaceData, type PutSpacesBySpaceError, type PutSpacesBySpaceErrors, type PutSpacesBySpacePostsByPostData, type PutSpacesBySpacePostsByPostError, type PutSpacesBySpacePostsByPostErrors, type PutSpacesBySpacePostsByPostResponse, type PutSpacesBySpacePostsByPostResponses, type PutSpacesBySpaceResponse, type PutSpacesBySpaceResponses, type PutSpacesBySpaceWebhooksByWebhookData, type PutSpacesBySpaceWebhooksByWebhookError, type PutSpacesBySpaceWebhooksByWebhookErrors, type PutSpacesBySpaceWebhooksByWebhookResponse, type PutSpacesBySpaceWebhooksByWebhookResponses, type SessionResource, type SignMediaRequest, type SlotResource, type SpaceResource, type StoreBioBlockRequest, type StoreBioPageRequest, type StorePostRequest, type StoreSlotRequest, type StoreSpaceRequest, type StoreWebhookRequest, type UpdateBioBlockRequest, type UpdateBioPageRequest, type UpdatePostRequest, type UpdateSpaceRequest, type UpdateWebhookRequest, type WebhookResource, ZilfuApiError, type ZilfuApiErrorInit, type ZilfuClient, type ZilfuFetch, type ZilfuToken, createZilfuClient };
|
package/dist/index.d.ts
CHANGED
|
@@ -392,6 +392,14 @@ type PostResource = {
|
|
|
392
392
|
* PostStatus
|
|
393
393
|
*/
|
|
394
394
|
type PostStatus = 0 | 1 | 2 | 3 | 4;
|
|
395
|
+
/**
|
|
396
|
+
* SessionResource
|
|
397
|
+
*/
|
|
398
|
+
type SessionResource = {
|
|
399
|
+
id: string;
|
|
400
|
+
name: string;
|
|
401
|
+
email: string;
|
|
402
|
+
};
|
|
395
403
|
/**
|
|
396
404
|
* SignMediaRequest
|
|
397
405
|
*/
|
|
@@ -412,6 +420,7 @@ type SlotResource = {
|
|
|
412
420
|
type SpaceResource = {
|
|
413
421
|
id: number;
|
|
414
422
|
name: string;
|
|
423
|
+
timezone: string | null;
|
|
415
424
|
created_at: string | null;
|
|
416
425
|
updated_at: string | null;
|
|
417
426
|
};
|
|
@@ -436,9 +445,9 @@ type StoreBioPageRequest = {
|
|
|
436
445
|
* StorePostRequest
|
|
437
446
|
*/
|
|
438
447
|
type StorePostRequest = {
|
|
448
|
+
space_id: number;
|
|
439
449
|
at?: number | null;
|
|
440
450
|
is_draft?: boolean;
|
|
441
|
-
space_id: number;
|
|
442
451
|
items: Array<{
|
|
443
452
|
account_id: number;
|
|
444
453
|
social: string;
|
|
@@ -509,53 +518,13 @@ type UpdateBioPageRequest = {
|
|
|
509
518
|
theme?: 'minimal' | 'bold' | 'neon' | 'soft' | 'classic';
|
|
510
519
|
is_enabled?: boolean;
|
|
511
520
|
};
|
|
512
|
-
/**
|
|
513
|
-
* UpdateClusterRequest
|
|
514
|
-
*/
|
|
515
|
-
type UpdateClusterRequest = {
|
|
516
|
-
at?: number | null;
|
|
517
|
-
is_draft?: boolean;
|
|
518
|
-
space_id: number;
|
|
519
|
-
items: Array<{
|
|
520
|
-
account_id: number;
|
|
521
|
-
social: string;
|
|
522
|
-
children?: Array<{
|
|
523
|
-
content: string;
|
|
524
|
-
media?: Array<{
|
|
525
|
-
url: string;
|
|
526
|
-
type: 'image' | 'video';
|
|
527
|
-
}> | null;
|
|
528
|
-
}> | null;
|
|
529
|
-
metadata?: {
|
|
530
|
-
topic_tag?: string | null;
|
|
531
|
-
post_type?: string | null;
|
|
532
|
-
link?: string | null;
|
|
533
|
-
privacy_level?: string | null;
|
|
534
|
-
allow_comments?: boolean | null;
|
|
535
|
-
allow_duet?: boolean | null;
|
|
536
|
-
allow_stitch?: boolean | null;
|
|
537
|
-
branded_content?: boolean | null;
|
|
538
|
-
brand_organic?: boolean | null;
|
|
539
|
-
board_id?: string | null;
|
|
540
|
-
title?: string | null;
|
|
541
|
-
cover_image_url?: string | null;
|
|
542
|
-
} | null;
|
|
543
|
-
main?: {
|
|
544
|
-
content: string;
|
|
545
|
-
media?: Array<{
|
|
546
|
-
url: string;
|
|
547
|
-
type: 'image' | 'video';
|
|
548
|
-
}> | null;
|
|
549
|
-
};
|
|
550
|
-
}>;
|
|
551
|
-
};
|
|
552
521
|
/**
|
|
553
522
|
* UpdatePostRequest
|
|
554
523
|
*/
|
|
555
524
|
type UpdatePostRequest = {
|
|
525
|
+
at?: number | null;
|
|
526
|
+
is_draft?: boolean;
|
|
556
527
|
content?: string;
|
|
557
|
-
status?: PostStatus;
|
|
558
|
-
scheduled_at?: string | null;
|
|
559
528
|
metadata?: {
|
|
560
529
|
topic_tag?: string | null;
|
|
561
530
|
post_type?: string | null;
|
|
@@ -574,6 +543,13 @@ type UpdatePostRequest = {
|
|
|
574
543
|
url: string;
|
|
575
544
|
type: 'image' | 'video';
|
|
576
545
|
}> | null;
|
|
546
|
+
children?: Array<{
|
|
547
|
+
content: string;
|
|
548
|
+
media?: Array<{
|
|
549
|
+
url: string;
|
|
550
|
+
type: 'image' | 'video';
|
|
551
|
+
}> | null;
|
|
552
|
+
}> | null;
|
|
577
553
|
};
|
|
578
554
|
/**
|
|
579
555
|
* UpdateSpaceRequest
|
|
@@ -1806,19 +1782,22 @@ type PutSpacesBySpacePostsByPostResponses = {
|
|
|
1806
1782
|
};
|
|
1807
1783
|
};
|
|
1808
1784
|
type PutSpacesBySpacePostsByPostResponse = PutSpacesBySpacePostsByPostResponses[keyof PutSpacesBySpacePostsByPostResponses];
|
|
1809
|
-
type
|
|
1810
|
-
body
|
|
1785
|
+
type PostSpacesBySpacePostsByPostRetryData = {
|
|
1786
|
+
body?: never;
|
|
1811
1787
|
path: {
|
|
1812
1788
|
/**
|
|
1813
1789
|
* The space ID
|
|
1814
1790
|
*/
|
|
1815
1791
|
space: number;
|
|
1816
|
-
|
|
1792
|
+
/**
|
|
1793
|
+
* The post ID
|
|
1794
|
+
*/
|
|
1795
|
+
post: number;
|
|
1817
1796
|
};
|
|
1818
1797
|
query?: never;
|
|
1819
|
-
url: '/spaces/{space}/
|
|
1798
|
+
url: '/spaces/{space}/posts/{post}/retry';
|
|
1820
1799
|
};
|
|
1821
|
-
type
|
|
1800
|
+
type PostSpacesBySpacePostsByPostRetryErrors = {
|
|
1822
1801
|
/**
|
|
1823
1802
|
* Unauthenticated
|
|
1824
1803
|
*/
|
|
@@ -1862,18 +1841,18 @@ type PutSpacesBySpaceClustersByClusterIdErrors = {
|
|
|
1862
1841
|
};
|
|
1863
1842
|
};
|
|
1864
1843
|
};
|
|
1865
|
-
type
|
|
1866
|
-
type
|
|
1844
|
+
type PostSpacesBySpacePostsByPostRetryError = PostSpacesBySpacePostsByPostRetryErrors[keyof PostSpacesBySpacePostsByPostRetryErrors];
|
|
1845
|
+
type PostSpacesBySpacePostsByPostRetryResponses = {
|
|
1867
1846
|
/**
|
|
1868
|
-
*
|
|
1847
|
+
* `PostResource`
|
|
1869
1848
|
*/
|
|
1870
1849
|
200: {
|
|
1871
|
-
data:
|
|
1850
|
+
data: PostResource;
|
|
1872
1851
|
} | {
|
|
1873
1852
|
[key: string]: unknown;
|
|
1874
1853
|
};
|
|
1875
1854
|
};
|
|
1876
|
-
type
|
|
1855
|
+
type PostSpacesBySpacePostsByPostRetryResponse = PostSpacesBySpacePostsByPostRetryResponses[keyof PostSpacesBySpacePostsByPostRetryResponses];
|
|
1877
1856
|
type GetSpacesBySpaceQueueData = {
|
|
1878
1857
|
body?: never;
|
|
1879
1858
|
path: {
|
|
@@ -1927,6 +1906,33 @@ type GetSpacesBySpaceQueueResponses = {
|
|
|
1927
1906
|
};
|
|
1928
1907
|
};
|
|
1929
1908
|
type GetSpacesBySpaceQueueResponse = GetSpacesBySpaceQueueResponses[keyof GetSpacesBySpaceQueueResponses];
|
|
1909
|
+
type GetSessionData = {
|
|
1910
|
+
body?: never;
|
|
1911
|
+
path?: never;
|
|
1912
|
+
query?: never;
|
|
1913
|
+
url: '/session';
|
|
1914
|
+
};
|
|
1915
|
+
type GetSessionErrors = {
|
|
1916
|
+
/**
|
|
1917
|
+
* Unauthenticated
|
|
1918
|
+
*/
|
|
1919
|
+
401: {
|
|
1920
|
+
/**
|
|
1921
|
+
* Error overview.
|
|
1922
|
+
*/
|
|
1923
|
+
message: string;
|
|
1924
|
+
};
|
|
1925
|
+
};
|
|
1926
|
+
type GetSessionError = GetSessionErrors[keyof GetSessionErrors];
|
|
1927
|
+
type GetSessionResponses = {
|
|
1928
|
+
/**
|
|
1929
|
+
* `SessionResource`
|
|
1930
|
+
*/
|
|
1931
|
+
200: {
|
|
1932
|
+
data: SessionResource;
|
|
1933
|
+
};
|
|
1934
|
+
};
|
|
1935
|
+
type GetSessionResponse = GetSessionResponses[keyof GetSessionResponses];
|
|
1930
1936
|
type GetSpacesBySpaceSlotsData = {
|
|
1931
1937
|
body?: never;
|
|
1932
1938
|
path: {
|
|
@@ -2743,16 +2749,18 @@ declare class Posts extends HeyApiClient {
|
|
|
2743
2749
|
get<ThrowOnError extends boolean = false>(options: Options<GetSpacesBySpacePostsByPostData, ThrowOnError>): RequestResult<GetSpacesBySpacePostsByPostResponses, GetSpacesBySpacePostsByPostErrors, ThrowOnError, "fields">;
|
|
2744
2750
|
/**
|
|
2745
2751
|
* Update a post
|
|
2752
|
+
*
|
|
2753
|
+
* Updates content, media, thread replies, schedule, status, and metadata for a single post.
|
|
2746
2754
|
*/
|
|
2747
2755
|
update<ThrowOnError extends boolean = false>(options: Options<PutSpacesBySpacePostsByPostData, ThrowOnError>): RequestResult<PutSpacesBySpacePostsByPostResponses, PutSpacesBySpacePostsByPostErrors, ThrowOnError, "fields">;
|
|
2748
|
-
}
|
|
2749
|
-
declare class Clusters extends HeyApiClient {
|
|
2750
2756
|
/**
|
|
2751
|
-
*
|
|
2757
|
+
* Retry publishing a failed post
|
|
2752
2758
|
*
|
|
2753
|
-
*
|
|
2759
|
+
* Resets the post (and any non-published children) from Error to Scheduled,
|
|
2760
|
+
* clears the stored error metadata, and re-dispatches the publish job.
|
|
2761
|
+
* For threads, already-published children are skipped on retry.
|
|
2754
2762
|
*/
|
|
2755
|
-
|
|
2763
|
+
retry<ThrowOnError extends boolean = false>(options: Options<PostSpacesBySpacePostsByPostRetryData, ThrowOnError>): RequestResult<PostSpacesBySpacePostsByPostRetryResponses, PostSpacesBySpacePostsByPostRetryErrors, ThrowOnError, "fields">;
|
|
2756
2764
|
}
|
|
2757
2765
|
declare class Queue extends HeyApiClient {
|
|
2758
2766
|
/**
|
|
@@ -2762,6 +2770,12 @@ declare class Queue extends HeyApiClient {
|
|
|
2762
2770
|
*/
|
|
2763
2771
|
list<ThrowOnError extends boolean = false>(options: Options<GetSpacesBySpaceQueueData, ThrowOnError>): RequestResult<GetSpacesBySpaceQueueResponses, GetSpacesBySpaceQueueErrors, ThrowOnError, "fields">;
|
|
2764
2772
|
}
|
|
2773
|
+
declare class Session extends HeyApiClient {
|
|
2774
|
+
/**
|
|
2775
|
+
* Get the authenticated session's user
|
|
2776
|
+
*/
|
|
2777
|
+
get<ThrowOnError extends boolean = false>(options?: Options<GetSessionData, ThrowOnError>): RequestResult<GetSessionResponses, GetSessionErrors, ThrowOnError, "fields">;
|
|
2778
|
+
}
|
|
2765
2779
|
declare class Slots extends HeyApiClient {
|
|
2766
2780
|
/**
|
|
2767
2781
|
* List slots
|
|
@@ -2848,10 +2862,10 @@ declare class ZilfuApi extends HeyApiClient {
|
|
|
2848
2862
|
get media(): Media;
|
|
2849
2863
|
private _posts?;
|
|
2850
2864
|
get posts(): Posts;
|
|
2851
|
-
private _clusters?;
|
|
2852
|
-
get clusters(): Clusters;
|
|
2853
2865
|
private _queue?;
|
|
2854
2866
|
get queue(): Queue;
|
|
2867
|
+
private _session?;
|
|
2868
|
+
get session(): Session;
|
|
2855
2869
|
private _slots?;
|
|
2856
2870
|
get slots(): Slots;
|
|
2857
2871
|
private _spaces?;
|
|
@@ -2892,4 +2906,4 @@ declare class ZilfuApiError extends Error {
|
|
|
2892
2906
|
constructor(init: ZilfuApiErrorInit);
|
|
2893
2907
|
}
|
|
2894
2908
|
|
|
2895
|
-
export { type AccountResource, type BioBlockResource, type BioPageResource, type ClientOptions, type CreateZilfuClientOptions, type DeleteApiTokensByTokenIdData, type DeleteApiTokensByTokenIdError, type DeleteApiTokensByTokenIdErrors, type DeleteApiTokensByTokenIdResponses, type DeleteSpacesBySpaceAccountsByAccountData, type DeleteSpacesBySpaceAccountsByAccountError, type DeleteSpacesBySpaceAccountsByAccountErrors, type DeleteSpacesBySpaceAccountsByAccountResponse, type DeleteSpacesBySpaceAccountsByAccountResponses, type DeleteSpacesBySpaceBioBlocksByBlockData, type DeleteSpacesBySpaceBioBlocksByBlockError, type DeleteSpacesBySpaceBioBlocksByBlockErrors, type DeleteSpacesBySpaceBioBlocksByBlockResponse, type DeleteSpacesBySpaceBioBlocksByBlockResponses, type DeleteSpacesBySpaceData, type DeleteSpacesBySpaceError, type DeleteSpacesBySpaceErrors, type DeleteSpacesBySpacePostsByPostData, type DeleteSpacesBySpacePostsByPostError, type DeleteSpacesBySpacePostsByPostErrors, type DeleteSpacesBySpacePostsByPostResponse, type DeleteSpacesBySpacePostsByPostResponses, type DeleteSpacesBySpaceResponse, type DeleteSpacesBySpaceResponses, type DeleteSpacesBySpaceSlotsBySlotData, type DeleteSpacesBySpaceSlotsBySlotError, type DeleteSpacesBySpaceSlotsBySlotErrors, type DeleteSpacesBySpaceSlotsBySlotResponse, type DeleteSpacesBySpaceSlotsBySlotResponses, type DeleteSpacesBySpaceWebhooksByWebhookData, type DeleteSpacesBySpaceWebhooksByWebhookError, type DeleteSpacesBySpaceWebhooksByWebhookErrors, type DeleteSpacesBySpaceWebhooksByWebhookResponse, type DeleteSpacesBySpaceWebhooksByWebhookResponses, type GetHealthData, type GetHealthError, type GetHealthErrors, type GetHealthResponse, type GetHealthResponses, type GetSpacesBySpaceAccountsByAccountBoardsData, type GetSpacesBySpaceAccountsByAccountBoardsError, type GetSpacesBySpaceAccountsByAccountBoardsErrors, type GetSpacesBySpaceAccountsByAccountBoardsResponse, type GetSpacesBySpaceAccountsByAccountBoardsResponses, type GetSpacesBySpaceAccountsData, type GetSpacesBySpaceAccountsError, type GetSpacesBySpaceAccountsErrors, type GetSpacesBySpaceAccountsResponse, type GetSpacesBySpaceAccountsResponses, type GetSpacesBySpaceBioBlocksData, type GetSpacesBySpaceBioBlocksError, type GetSpacesBySpaceBioBlocksErrors, type GetSpacesBySpaceBioBlocksResponse, type GetSpacesBySpaceBioBlocksResponses, type GetSpacesBySpaceBioData, type GetSpacesBySpaceBioError, type GetSpacesBySpaceBioErrors, type GetSpacesBySpaceBioResponse, type GetSpacesBySpaceBioResponses, type GetSpacesBySpaceData, type GetSpacesBySpaceError, type GetSpacesBySpaceErrors, type GetSpacesBySpacePostsByPostData, type GetSpacesBySpacePostsByPostError, type GetSpacesBySpacePostsByPostErrors, type GetSpacesBySpacePostsByPostResponse, type GetSpacesBySpacePostsByPostResponses, type GetSpacesBySpacePostsData, type GetSpacesBySpacePostsError, type GetSpacesBySpacePostsErrors, type GetSpacesBySpacePostsResponse, type GetSpacesBySpacePostsResponses, type GetSpacesBySpaceQueueData, type GetSpacesBySpaceQueueError, type GetSpacesBySpaceQueueErrors, type GetSpacesBySpaceQueueResponse, type GetSpacesBySpaceQueueResponses, type GetSpacesBySpaceResponse, type GetSpacesBySpaceResponses, type GetSpacesBySpaceSlotsData, type GetSpacesBySpaceSlotsError, type GetSpacesBySpaceSlotsErrors, type GetSpacesBySpaceSlotsResponse, type GetSpacesBySpaceSlotsResponses, type GetSpacesBySpaceWebhooksData, type GetSpacesBySpaceWebhooksError, type GetSpacesBySpaceWebhooksErrors, type GetSpacesBySpaceWebhooksResponse, type GetSpacesBySpaceWebhooksResponses, type GetSpacesData, type GetSpacesError, type GetSpacesErrors, type GetSpacesResponse, type GetSpacesResponses, type GetSubscriptionData, type GetSubscriptionError, type GetSubscriptionErrors, type GetSubscriptionResponse, type GetSubscriptionResponses, type MediaResource, type PatchSpacesBySpaceAccountsByAccountActivateData, type PatchSpacesBySpaceAccountsByAccountActivateError, type PatchSpacesBySpaceAccountsByAccountActivateErrors, type PatchSpacesBySpaceAccountsByAccountActivateResponse, type PatchSpacesBySpaceAccountsByAccountActivateResponses, type PostApiTokensData, type PostApiTokensError, type PostApiTokensErrors, type PostApiTokensResponses, type PostMediaSignData, type PostMediaSignError, type PostMediaSignErrors, type PostMediaSignResponse, type PostMediaSignResponses, type PostResource, type PostSpacesBySpaceBioAvatarData, type PostSpacesBySpaceBioAvatarError, type PostSpacesBySpaceBioAvatarErrors, type PostSpacesBySpaceBioAvatarResponse, type PostSpacesBySpaceBioAvatarResponses, type PostSpacesBySpaceBioBlocksByBlockReorderData, type PostSpacesBySpaceBioBlocksByBlockReorderError, type PostSpacesBySpaceBioBlocksByBlockReorderErrors, type PostSpacesBySpaceBioBlocksByBlockReorderResponse, type PostSpacesBySpaceBioBlocksByBlockReorderResponses, type PostSpacesBySpaceBioBlocksData, type PostSpacesBySpaceBioBlocksError, type PostSpacesBySpaceBioBlocksErrors, type PostSpacesBySpaceBioBlocksResponse, type PostSpacesBySpaceBioBlocksResponses, type PostSpacesBySpaceBioData, type PostSpacesBySpaceBioError, type PostSpacesBySpaceBioErrors, type PostSpacesBySpaceBioResponse, type PostSpacesBySpaceBioResponses, type PostSpacesBySpacePostsData, type PostSpacesBySpacePostsError, type PostSpacesBySpacePostsErrors, type PostSpacesBySpacePostsResponse, type PostSpacesBySpacePostsResponses, type PostSpacesBySpaceSlotsData, type PostSpacesBySpaceSlotsError, type PostSpacesBySpaceSlotsErrors, type PostSpacesBySpaceSlotsResponse, type PostSpacesBySpaceSlotsResponses, type PostSpacesBySpaceWebhooksData, type PostSpacesBySpaceWebhooksError, type PostSpacesBySpaceWebhooksErrors, type PostSpacesBySpaceWebhooksResponse, type PostSpacesBySpaceWebhooksResponses, type PostSpacesData, type PostSpacesError, type PostSpacesErrors, type PostSpacesResponse, type PostSpacesResponses, type PostStatus, type PutSpacesBySpaceBioBlocksByBlockData, type PutSpacesBySpaceBioBlocksByBlockError, type PutSpacesBySpaceBioBlocksByBlockErrors, type PutSpacesBySpaceBioBlocksByBlockResponse, type PutSpacesBySpaceBioBlocksByBlockResponses, type PutSpacesBySpaceBioData, type PutSpacesBySpaceBioError, type PutSpacesBySpaceBioErrors, type PutSpacesBySpaceBioResponse, type PutSpacesBySpaceBioResponses, type
|
|
2909
|
+
export { type AccountResource, type BioBlockResource, type BioPageResource, type ClientOptions, type CreateZilfuClientOptions, type DeleteApiTokensByTokenIdData, type DeleteApiTokensByTokenIdError, type DeleteApiTokensByTokenIdErrors, type DeleteApiTokensByTokenIdResponses, type DeleteSpacesBySpaceAccountsByAccountData, type DeleteSpacesBySpaceAccountsByAccountError, type DeleteSpacesBySpaceAccountsByAccountErrors, type DeleteSpacesBySpaceAccountsByAccountResponse, type DeleteSpacesBySpaceAccountsByAccountResponses, type DeleteSpacesBySpaceBioBlocksByBlockData, type DeleteSpacesBySpaceBioBlocksByBlockError, type DeleteSpacesBySpaceBioBlocksByBlockErrors, type DeleteSpacesBySpaceBioBlocksByBlockResponse, type DeleteSpacesBySpaceBioBlocksByBlockResponses, type DeleteSpacesBySpaceData, type DeleteSpacesBySpaceError, type DeleteSpacesBySpaceErrors, type DeleteSpacesBySpacePostsByPostData, type DeleteSpacesBySpacePostsByPostError, type DeleteSpacesBySpacePostsByPostErrors, type DeleteSpacesBySpacePostsByPostResponse, type DeleteSpacesBySpacePostsByPostResponses, type DeleteSpacesBySpaceResponse, type DeleteSpacesBySpaceResponses, type DeleteSpacesBySpaceSlotsBySlotData, type DeleteSpacesBySpaceSlotsBySlotError, type DeleteSpacesBySpaceSlotsBySlotErrors, type DeleteSpacesBySpaceSlotsBySlotResponse, type DeleteSpacesBySpaceSlotsBySlotResponses, type DeleteSpacesBySpaceWebhooksByWebhookData, type DeleteSpacesBySpaceWebhooksByWebhookError, type DeleteSpacesBySpaceWebhooksByWebhookErrors, type DeleteSpacesBySpaceWebhooksByWebhookResponse, type DeleteSpacesBySpaceWebhooksByWebhookResponses, type GetHealthData, type GetHealthError, type GetHealthErrors, type GetHealthResponse, type GetHealthResponses, type GetSessionData, type GetSessionError, type GetSessionErrors, type GetSessionResponse, type GetSessionResponses, type GetSpacesBySpaceAccountsByAccountBoardsData, type GetSpacesBySpaceAccountsByAccountBoardsError, type GetSpacesBySpaceAccountsByAccountBoardsErrors, type GetSpacesBySpaceAccountsByAccountBoardsResponse, type GetSpacesBySpaceAccountsByAccountBoardsResponses, type GetSpacesBySpaceAccountsData, type GetSpacesBySpaceAccountsError, type GetSpacesBySpaceAccountsErrors, type GetSpacesBySpaceAccountsResponse, type GetSpacesBySpaceAccountsResponses, type GetSpacesBySpaceBioBlocksData, type GetSpacesBySpaceBioBlocksError, type GetSpacesBySpaceBioBlocksErrors, type GetSpacesBySpaceBioBlocksResponse, type GetSpacesBySpaceBioBlocksResponses, type GetSpacesBySpaceBioData, type GetSpacesBySpaceBioError, type GetSpacesBySpaceBioErrors, type GetSpacesBySpaceBioResponse, type GetSpacesBySpaceBioResponses, type GetSpacesBySpaceData, type GetSpacesBySpaceError, type GetSpacesBySpaceErrors, type GetSpacesBySpacePostsByPostData, type GetSpacesBySpacePostsByPostError, type GetSpacesBySpacePostsByPostErrors, type GetSpacesBySpacePostsByPostResponse, type GetSpacesBySpacePostsByPostResponses, type GetSpacesBySpacePostsData, type GetSpacesBySpacePostsError, type GetSpacesBySpacePostsErrors, type GetSpacesBySpacePostsResponse, type GetSpacesBySpacePostsResponses, type GetSpacesBySpaceQueueData, type GetSpacesBySpaceQueueError, type GetSpacesBySpaceQueueErrors, type GetSpacesBySpaceQueueResponse, type GetSpacesBySpaceQueueResponses, type GetSpacesBySpaceResponse, type GetSpacesBySpaceResponses, type GetSpacesBySpaceSlotsData, type GetSpacesBySpaceSlotsError, type GetSpacesBySpaceSlotsErrors, type GetSpacesBySpaceSlotsResponse, type GetSpacesBySpaceSlotsResponses, type GetSpacesBySpaceWebhooksData, type GetSpacesBySpaceWebhooksError, type GetSpacesBySpaceWebhooksErrors, type GetSpacesBySpaceWebhooksResponse, type GetSpacesBySpaceWebhooksResponses, type GetSpacesData, type GetSpacesError, type GetSpacesErrors, type GetSpacesResponse, type GetSpacesResponses, type GetSubscriptionData, type GetSubscriptionError, type GetSubscriptionErrors, type GetSubscriptionResponse, type GetSubscriptionResponses, type MediaResource, type PatchSpacesBySpaceAccountsByAccountActivateData, type PatchSpacesBySpaceAccountsByAccountActivateError, type PatchSpacesBySpaceAccountsByAccountActivateErrors, type PatchSpacesBySpaceAccountsByAccountActivateResponse, type PatchSpacesBySpaceAccountsByAccountActivateResponses, type PostApiTokensData, type PostApiTokensError, type PostApiTokensErrors, type PostApiTokensResponses, type PostMediaSignData, type PostMediaSignError, type PostMediaSignErrors, type PostMediaSignResponse, type PostMediaSignResponses, type PostResource, type PostSpacesBySpaceBioAvatarData, type PostSpacesBySpaceBioAvatarError, type PostSpacesBySpaceBioAvatarErrors, type PostSpacesBySpaceBioAvatarResponse, type PostSpacesBySpaceBioAvatarResponses, type PostSpacesBySpaceBioBlocksByBlockReorderData, type PostSpacesBySpaceBioBlocksByBlockReorderError, type PostSpacesBySpaceBioBlocksByBlockReorderErrors, type PostSpacesBySpaceBioBlocksByBlockReorderResponse, type PostSpacesBySpaceBioBlocksByBlockReorderResponses, type PostSpacesBySpaceBioBlocksData, type PostSpacesBySpaceBioBlocksError, type PostSpacesBySpaceBioBlocksErrors, type PostSpacesBySpaceBioBlocksResponse, type PostSpacesBySpaceBioBlocksResponses, type PostSpacesBySpaceBioData, type PostSpacesBySpaceBioError, type PostSpacesBySpaceBioErrors, type PostSpacesBySpaceBioResponse, type PostSpacesBySpaceBioResponses, type PostSpacesBySpacePostsByPostRetryData, type PostSpacesBySpacePostsByPostRetryError, type PostSpacesBySpacePostsByPostRetryErrors, type PostSpacesBySpacePostsByPostRetryResponse, type PostSpacesBySpacePostsByPostRetryResponses, type PostSpacesBySpacePostsData, type PostSpacesBySpacePostsError, type PostSpacesBySpacePostsErrors, type PostSpacesBySpacePostsResponse, type PostSpacesBySpacePostsResponses, type PostSpacesBySpaceSlotsData, type PostSpacesBySpaceSlotsError, type PostSpacesBySpaceSlotsErrors, type PostSpacesBySpaceSlotsResponse, type PostSpacesBySpaceSlotsResponses, type PostSpacesBySpaceWebhooksData, type PostSpacesBySpaceWebhooksError, type PostSpacesBySpaceWebhooksErrors, type PostSpacesBySpaceWebhooksResponse, type PostSpacesBySpaceWebhooksResponses, type PostSpacesData, type PostSpacesError, type PostSpacesErrors, type PostSpacesResponse, type PostSpacesResponses, type PostStatus, type PutSpacesBySpaceBioBlocksByBlockData, type PutSpacesBySpaceBioBlocksByBlockError, type PutSpacesBySpaceBioBlocksByBlockErrors, type PutSpacesBySpaceBioBlocksByBlockResponse, type PutSpacesBySpaceBioBlocksByBlockResponses, type PutSpacesBySpaceBioData, type PutSpacesBySpaceBioError, type PutSpacesBySpaceBioErrors, type PutSpacesBySpaceBioResponse, type PutSpacesBySpaceBioResponses, type PutSpacesBySpaceData, type PutSpacesBySpaceError, type PutSpacesBySpaceErrors, type PutSpacesBySpacePostsByPostData, type PutSpacesBySpacePostsByPostError, type PutSpacesBySpacePostsByPostErrors, type PutSpacesBySpacePostsByPostResponse, type PutSpacesBySpacePostsByPostResponses, type PutSpacesBySpaceResponse, type PutSpacesBySpaceResponses, type PutSpacesBySpaceWebhooksByWebhookData, type PutSpacesBySpaceWebhooksByWebhookError, type PutSpacesBySpaceWebhooksByWebhookErrors, type PutSpacesBySpaceWebhooksByWebhookResponse, type PutSpacesBySpaceWebhooksByWebhookResponses, type SessionResource, type SignMediaRequest, type SlotResource, type SpaceResource, type StoreBioBlockRequest, type StoreBioPageRequest, type StorePostRequest, type StoreSlotRequest, type StoreSpaceRequest, type StoreWebhookRequest, type UpdateBioBlockRequest, type UpdateBioPageRequest, type UpdatePostRequest, type UpdateSpaceRequest, type UpdateWebhookRequest, type WebhookResource, ZilfuApiError, type ZilfuApiErrorInit, type ZilfuClient, type ZilfuFetch, type ZilfuToken, createZilfuClient };
|
package/dist/index.js
CHANGED
|
@@ -1109,6 +1109,8 @@ var Posts = class extends HeyApiClient {
|
|
|
1109
1109
|
}
|
|
1110
1110
|
/**
|
|
1111
1111
|
* Update a post
|
|
1112
|
+
*
|
|
1113
|
+
* Updates content, media, thread replies, schedule, status, and metadata for a single post.
|
|
1112
1114
|
*/
|
|
1113
1115
|
update(options) {
|
|
1114
1116
|
return (options.client ?? this.client).put({
|
|
@@ -1121,22 +1123,18 @@ var Posts = class extends HeyApiClient {
|
|
|
1121
1123
|
}
|
|
1122
1124
|
});
|
|
1123
1125
|
}
|
|
1124
|
-
};
|
|
1125
|
-
var Clusters = class extends HeyApiClient {
|
|
1126
1126
|
/**
|
|
1127
|
-
*
|
|
1127
|
+
* Retry publishing a failed post
|
|
1128
1128
|
*
|
|
1129
|
-
*
|
|
1129
|
+
* Resets the post (and any non-published children) from Error to Scheduled,
|
|
1130
|
+
* clears the stored error metadata, and re-dispatches the publish job.
|
|
1131
|
+
* For threads, already-published children are skipped on retry.
|
|
1130
1132
|
*/
|
|
1131
|
-
|
|
1132
|
-
return (options.client ?? this.client).
|
|
1133
|
+
retry(options) {
|
|
1134
|
+
return (options.client ?? this.client).post({
|
|
1133
1135
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1134
|
-
url: "/spaces/{space}/
|
|
1135
|
-
...options
|
|
1136
|
-
headers: {
|
|
1137
|
-
"Content-Type": "application/json",
|
|
1138
|
-
...options.headers
|
|
1139
|
-
}
|
|
1136
|
+
url: "/spaces/{space}/posts/{post}/retry",
|
|
1137
|
+
...options
|
|
1140
1138
|
});
|
|
1141
1139
|
}
|
|
1142
1140
|
};
|
|
@@ -1154,6 +1152,18 @@ var Queue = class extends HeyApiClient {
|
|
|
1154
1152
|
});
|
|
1155
1153
|
}
|
|
1156
1154
|
};
|
|
1155
|
+
var Session = class extends HeyApiClient {
|
|
1156
|
+
/**
|
|
1157
|
+
* Get the authenticated session's user
|
|
1158
|
+
*/
|
|
1159
|
+
get(options) {
|
|
1160
|
+
return (options?.client ?? this.client).get({
|
|
1161
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1162
|
+
url: "/session",
|
|
1163
|
+
...options
|
|
1164
|
+
});
|
|
1165
|
+
}
|
|
1166
|
+
};
|
|
1157
1167
|
var Slots = class extends HeyApiClient {
|
|
1158
1168
|
/**
|
|
1159
1169
|
* List slots
|
|
@@ -1350,14 +1360,14 @@ var ZilfuApi = class _ZilfuApi extends HeyApiClient {
|
|
|
1350
1360
|
get posts() {
|
|
1351
1361
|
return this._posts ??= new Posts({ client: this.client });
|
|
1352
1362
|
}
|
|
1353
|
-
_clusters;
|
|
1354
|
-
get clusters() {
|
|
1355
|
-
return this._clusters ??= new Clusters({ client: this.client });
|
|
1356
|
-
}
|
|
1357
1363
|
_queue;
|
|
1358
1364
|
get queue() {
|
|
1359
1365
|
return this._queue ??= new Queue({ client: this.client });
|
|
1360
1366
|
}
|
|
1367
|
+
_session;
|
|
1368
|
+
get session() {
|
|
1369
|
+
return this._session ??= new Session({ client: this.client });
|
|
1370
|
+
}
|
|
1361
1371
|
_slots;
|
|
1362
1372
|
get slots() {
|
|
1363
1373
|
return this._slots ??= new Slots({ client: this.client });
|