@zilfu/sdk 0.2.6 → 0.2.8
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 +51 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +276 -3
- package/dist/index.d.ts +276 -3
- package/dist/index.js +51 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -384,6 +384,7 @@ type PostResource = {
|
|
|
384
384
|
scheduled_at: string | null;
|
|
385
385
|
published_at: string | null;
|
|
386
386
|
metadata: Array<unknown> | null;
|
|
387
|
+
type?: string | 'carousel' | 'text';
|
|
387
388
|
cluster_id: string;
|
|
388
389
|
parent_id: number | null;
|
|
389
390
|
user_id: number;
|
|
@@ -393,6 +394,7 @@ type PostResource = {
|
|
|
393
394
|
analytics: Array<unknown> | null;
|
|
394
395
|
account?: AccountResource;
|
|
395
396
|
children?: Array<PostResource>;
|
|
397
|
+
scheduled_comments?: Array<ScheduledCommentResource>;
|
|
396
398
|
media?: Array<MediaResource>;
|
|
397
399
|
review?: PostReviewResource | null;
|
|
398
400
|
};
|
|
@@ -434,6 +436,36 @@ type ReviewCommentResource = {
|
|
|
434
436
|
};
|
|
435
437
|
created_at: string | null;
|
|
436
438
|
};
|
|
439
|
+
/**
|
|
440
|
+
* ScheduledCommentResource
|
|
441
|
+
*/
|
|
442
|
+
type ScheduledCommentResource = {
|
|
443
|
+
id: number;
|
|
444
|
+
content: string;
|
|
445
|
+
status: ScheduledCommentStatus;
|
|
446
|
+
delay_minutes: number;
|
|
447
|
+
scheduled_at: string | null;
|
|
448
|
+
published_at: string | null;
|
|
449
|
+
metadata: Array<unknown> | null;
|
|
450
|
+
post_id: number;
|
|
451
|
+
account_id: number;
|
|
452
|
+
created_at: string | null;
|
|
453
|
+
updated_at: string | null;
|
|
454
|
+
};
|
|
455
|
+
/**
|
|
456
|
+
* ScheduledCommentStatus
|
|
457
|
+
*
|
|
458
|
+
* | |
|
|
459
|
+
* |---|
|
|
460
|
+
* | `0` <br/> Created, waiting for the parent post to publish before it can be armed. |
|
|
461
|
+
* | `1` <br/> Armed with the parent's remote id and an absolute fire time. |
|
|
462
|
+
* | `2` <br/> |
|
|
463
|
+
* | `3` <br/> |
|
|
464
|
+
* | `4` <br/> |
|
|
465
|
+
* | `5` <br/> Parent post failed, so the comment never armed. |
|
|
466
|
+
* | `6` <br/> Cancelled by the user before publishing. |
|
|
467
|
+
*/
|
|
468
|
+
type ScheduledCommentStatus = 0 | 1 | 2 | 3 | 4 | 5 | 6;
|
|
437
469
|
/**
|
|
438
470
|
* SessionResource
|
|
439
471
|
*/
|
|
@@ -516,6 +548,10 @@ type StorePostRequest = {
|
|
|
516
548
|
space_id: number;
|
|
517
549
|
at?: number | null;
|
|
518
550
|
is_draft?: boolean;
|
|
551
|
+
comment?: {
|
|
552
|
+
content?: string;
|
|
553
|
+
delay_minutes?: number;
|
|
554
|
+
};
|
|
519
555
|
items: Array<{
|
|
520
556
|
account_id: number;
|
|
521
557
|
social: string;
|
|
@@ -549,6 +585,13 @@ type StorePostRequest = {
|
|
|
549
585
|
};
|
|
550
586
|
}>;
|
|
551
587
|
};
|
|
588
|
+
/**
|
|
589
|
+
* StoreScheduledCommentRequest
|
|
590
|
+
*/
|
|
591
|
+
type StoreScheduledCommentRequest = {
|
|
592
|
+
content: string;
|
|
593
|
+
delay_minutes: number;
|
|
594
|
+
};
|
|
552
595
|
/**
|
|
553
596
|
* StoreSlotRequest
|
|
554
597
|
*/
|
|
@@ -574,7 +617,7 @@ type StoreSpaceRequest = {
|
|
|
574
617
|
*/
|
|
575
618
|
type StoreWebhookRequest = {
|
|
576
619
|
url: string;
|
|
577
|
-
events: Array<'post.published' | 'post.failed' | 'post.scheduled' | 'account.connected' | 'account.disconnected'>;
|
|
620
|
+
events: Array<'post.published' | 'post.failed' | 'post.scheduled' | 'comment.published' | 'comment.failed' | 'account.connected' | 'account.disconnected'>;
|
|
578
621
|
};
|
|
579
622
|
/**
|
|
580
623
|
* UpdateBioBlockRequest
|
|
@@ -616,6 +659,13 @@ type UpdatePostRequest = {
|
|
|
616
659
|
}> | null;
|
|
617
660
|
}> | null;
|
|
618
661
|
};
|
|
662
|
+
/**
|
|
663
|
+
* UpdateScheduledCommentRequest
|
|
664
|
+
*/
|
|
665
|
+
type UpdateScheduledCommentRequest = {
|
|
666
|
+
content?: string;
|
|
667
|
+
delay_minutes?: number;
|
|
668
|
+
};
|
|
619
669
|
/**
|
|
620
670
|
* UpdateSpaceMemberRequest
|
|
621
671
|
*/
|
|
@@ -635,7 +685,7 @@ type UpdateSpaceRequest = {
|
|
|
635
685
|
type UpdateWebhookRequest = {
|
|
636
686
|
url?: string;
|
|
637
687
|
is_active?: boolean;
|
|
638
|
-
events?: Array<'post.published' | 'post.failed' | 'post.scheduled' | 'account.connected' | 'account.disconnected'>;
|
|
688
|
+
events?: Array<'post.published' | 'post.failed' | 'post.scheduled' | 'comment.published' | 'comment.failed' | 'account.connected' | 'account.disconnected'>;
|
|
639
689
|
};
|
|
640
690
|
/**
|
|
641
691
|
* WebhookResource
|
|
@@ -1982,6 +2032,208 @@ type GetSpacesBySpaceQueueResponses = {
|
|
|
1982
2032
|
};
|
|
1983
2033
|
};
|
|
1984
2034
|
type GetSpacesBySpaceQueueResponse = GetSpacesBySpaceQueueResponses[keyof GetSpacesBySpaceQueueResponses];
|
|
2035
|
+
type PostSpacesBySpacePostsByPostCommentData = {
|
|
2036
|
+
body: StoreScheduledCommentRequest;
|
|
2037
|
+
path: {
|
|
2038
|
+
/**
|
|
2039
|
+
* The space ID
|
|
2040
|
+
*/
|
|
2041
|
+
space: number;
|
|
2042
|
+
/**
|
|
2043
|
+
* The post ID
|
|
2044
|
+
*/
|
|
2045
|
+
post: number;
|
|
2046
|
+
};
|
|
2047
|
+
query?: never;
|
|
2048
|
+
url: '/spaces/{space}/posts/{post}/comment';
|
|
2049
|
+
};
|
|
2050
|
+
type PostSpacesBySpacePostsByPostCommentErrors = {
|
|
2051
|
+
/**
|
|
2052
|
+
* Unauthenticated
|
|
2053
|
+
*/
|
|
2054
|
+
401: {
|
|
2055
|
+
/**
|
|
2056
|
+
* Error overview.
|
|
2057
|
+
*/
|
|
2058
|
+
message: string;
|
|
2059
|
+
};
|
|
2060
|
+
/**
|
|
2061
|
+
* Authorization error
|
|
2062
|
+
*/
|
|
2063
|
+
403: {
|
|
2064
|
+
/**
|
|
2065
|
+
* Error overview.
|
|
2066
|
+
*/
|
|
2067
|
+
message: string;
|
|
2068
|
+
};
|
|
2069
|
+
/**
|
|
2070
|
+
* Not found
|
|
2071
|
+
*/
|
|
2072
|
+
404: {
|
|
2073
|
+
/**
|
|
2074
|
+
* Error overview.
|
|
2075
|
+
*/
|
|
2076
|
+
message: string;
|
|
2077
|
+
};
|
|
2078
|
+
/**
|
|
2079
|
+
* Validation error
|
|
2080
|
+
*/
|
|
2081
|
+
422: {
|
|
2082
|
+
/**
|
|
2083
|
+
* Errors overview.
|
|
2084
|
+
*/
|
|
2085
|
+
message: string;
|
|
2086
|
+
/**
|
|
2087
|
+
* A detailed description of each field that failed validation.
|
|
2088
|
+
*/
|
|
2089
|
+
errors: {
|
|
2090
|
+
[key: string]: Array<string>;
|
|
2091
|
+
};
|
|
2092
|
+
};
|
|
2093
|
+
};
|
|
2094
|
+
type PostSpacesBySpacePostsByPostCommentError = PostSpacesBySpacePostsByPostCommentErrors[keyof PostSpacesBySpacePostsByPostCommentErrors];
|
|
2095
|
+
type PostSpacesBySpacePostsByPostCommentResponses = {
|
|
2096
|
+
/**
|
|
2097
|
+
* `ScheduledCommentResource`
|
|
2098
|
+
*/
|
|
2099
|
+
200: {
|
|
2100
|
+
data: ScheduledCommentResource;
|
|
2101
|
+
} | {
|
|
2102
|
+
[key: string]: unknown;
|
|
2103
|
+
};
|
|
2104
|
+
};
|
|
2105
|
+
type PostSpacesBySpacePostsByPostCommentResponse = PostSpacesBySpacePostsByPostCommentResponses[keyof PostSpacesBySpacePostsByPostCommentResponses];
|
|
2106
|
+
type DeleteSpacesBySpaceCommentsByScheduledCommentData = {
|
|
2107
|
+
body?: never;
|
|
2108
|
+
path: {
|
|
2109
|
+
/**
|
|
2110
|
+
* The space ID
|
|
2111
|
+
*/
|
|
2112
|
+
space: number;
|
|
2113
|
+
/**
|
|
2114
|
+
* The scheduled comment ID
|
|
2115
|
+
*/
|
|
2116
|
+
scheduledComment: number;
|
|
2117
|
+
};
|
|
2118
|
+
query?: never;
|
|
2119
|
+
url: '/spaces/{space}/comments/{scheduledComment}';
|
|
2120
|
+
};
|
|
2121
|
+
type DeleteSpacesBySpaceCommentsByScheduledCommentErrors = {
|
|
2122
|
+
/**
|
|
2123
|
+
* Unauthenticated
|
|
2124
|
+
*/
|
|
2125
|
+
401: {
|
|
2126
|
+
/**
|
|
2127
|
+
* Error overview.
|
|
2128
|
+
*/
|
|
2129
|
+
message: string;
|
|
2130
|
+
};
|
|
2131
|
+
/**
|
|
2132
|
+
* Authorization error
|
|
2133
|
+
*/
|
|
2134
|
+
403: {
|
|
2135
|
+
/**
|
|
2136
|
+
* Error overview.
|
|
2137
|
+
*/
|
|
2138
|
+
message: string;
|
|
2139
|
+
};
|
|
2140
|
+
/**
|
|
2141
|
+
* Not found
|
|
2142
|
+
*/
|
|
2143
|
+
404: {
|
|
2144
|
+
/**
|
|
2145
|
+
* Error overview.
|
|
2146
|
+
*/
|
|
2147
|
+
message: string;
|
|
2148
|
+
};
|
|
2149
|
+
/**
|
|
2150
|
+
* An error
|
|
2151
|
+
*/
|
|
2152
|
+
422: {
|
|
2153
|
+
/**
|
|
2154
|
+
* Error overview.
|
|
2155
|
+
*/
|
|
2156
|
+
message: string;
|
|
2157
|
+
};
|
|
2158
|
+
};
|
|
2159
|
+
type DeleteSpacesBySpaceCommentsByScheduledCommentError = DeleteSpacesBySpaceCommentsByScheduledCommentErrors[keyof DeleteSpacesBySpaceCommentsByScheduledCommentErrors];
|
|
2160
|
+
type DeleteSpacesBySpaceCommentsByScheduledCommentResponses = {
|
|
2161
|
+
200: {
|
|
2162
|
+
[key: string]: unknown;
|
|
2163
|
+
};
|
|
2164
|
+
};
|
|
2165
|
+
type DeleteSpacesBySpaceCommentsByScheduledCommentResponse = DeleteSpacesBySpaceCommentsByScheduledCommentResponses[keyof DeleteSpacesBySpaceCommentsByScheduledCommentResponses];
|
|
2166
|
+
type PutSpacesBySpaceCommentsByScheduledCommentData = {
|
|
2167
|
+
body?: UpdateScheduledCommentRequest;
|
|
2168
|
+
path: {
|
|
2169
|
+
/**
|
|
2170
|
+
* The space ID
|
|
2171
|
+
*/
|
|
2172
|
+
space: number;
|
|
2173
|
+
/**
|
|
2174
|
+
* The scheduled comment ID
|
|
2175
|
+
*/
|
|
2176
|
+
scheduledComment: number;
|
|
2177
|
+
};
|
|
2178
|
+
query?: never;
|
|
2179
|
+
url: '/spaces/{space}/comments/{scheduledComment}';
|
|
2180
|
+
};
|
|
2181
|
+
type PutSpacesBySpaceCommentsByScheduledCommentErrors = {
|
|
2182
|
+
/**
|
|
2183
|
+
* Unauthenticated
|
|
2184
|
+
*/
|
|
2185
|
+
401: {
|
|
2186
|
+
/**
|
|
2187
|
+
* Error overview.
|
|
2188
|
+
*/
|
|
2189
|
+
message: string;
|
|
2190
|
+
};
|
|
2191
|
+
/**
|
|
2192
|
+
* Authorization error
|
|
2193
|
+
*/
|
|
2194
|
+
403: {
|
|
2195
|
+
/**
|
|
2196
|
+
* Error overview.
|
|
2197
|
+
*/
|
|
2198
|
+
message: string;
|
|
2199
|
+
};
|
|
2200
|
+
/**
|
|
2201
|
+
* Not found
|
|
2202
|
+
*/
|
|
2203
|
+
404: {
|
|
2204
|
+
/**
|
|
2205
|
+
* Error overview.
|
|
2206
|
+
*/
|
|
2207
|
+
message: string;
|
|
2208
|
+
};
|
|
2209
|
+
/**
|
|
2210
|
+
* Validation error
|
|
2211
|
+
*/
|
|
2212
|
+
422: {
|
|
2213
|
+
/**
|
|
2214
|
+
* Errors overview.
|
|
2215
|
+
*/
|
|
2216
|
+
message: string;
|
|
2217
|
+
/**
|
|
2218
|
+
* A detailed description of each field that failed validation.
|
|
2219
|
+
*/
|
|
2220
|
+
errors: {
|
|
2221
|
+
[key: string]: Array<string>;
|
|
2222
|
+
};
|
|
2223
|
+
};
|
|
2224
|
+
};
|
|
2225
|
+
type PutSpacesBySpaceCommentsByScheduledCommentError = PutSpacesBySpaceCommentsByScheduledCommentErrors[keyof PutSpacesBySpaceCommentsByScheduledCommentErrors];
|
|
2226
|
+
type PutSpacesBySpaceCommentsByScheduledCommentResponses = {
|
|
2227
|
+
/**
|
|
2228
|
+
* `ScheduledCommentResource`
|
|
2229
|
+
*/
|
|
2230
|
+
200: {
|
|
2231
|
+
data: ScheduledCommentResource;
|
|
2232
|
+
} | {
|
|
2233
|
+
[key: string]: unknown;
|
|
2234
|
+
};
|
|
2235
|
+
};
|
|
2236
|
+
type PutSpacesBySpaceCommentsByScheduledCommentResponse = PutSpacesBySpaceCommentsByScheduledCommentResponses[keyof PutSpacesBySpaceCommentsByScheduledCommentResponses];
|
|
1985
2237
|
type GetSessionData = {
|
|
1986
2238
|
body?: never;
|
|
1987
2239
|
path?: never;
|
|
@@ -3226,6 +3478,13 @@ declare class Media extends HeyApiClient {
|
|
|
3226
3478
|
*/
|
|
3227
3479
|
sign<ThrowOnError extends boolean = false>(options: Options<PostMediaSignData, ThrowOnError>): RequestResult<PostMediaSignResponses, PostMediaSignErrors, ThrowOnError, "fields">;
|
|
3228
3480
|
}
|
|
3481
|
+
declare class Comment extends HeyApiClient {
|
|
3482
|
+
/**
|
|
3483
|
+
* Attach a follow-up comment to an existing post. If the post has already
|
|
3484
|
+
* published, the comment is armed immediately against its remote id
|
|
3485
|
+
*/
|
|
3486
|
+
create<ThrowOnError extends boolean = false>(options: Options<PostSpacesBySpacePostsByPostCommentData, ThrowOnError>): RequestResult<PostSpacesBySpacePostsByPostCommentResponses, PostSpacesBySpacePostsByPostCommentErrors, ThrowOnError, "fields">;
|
|
3487
|
+
}
|
|
3229
3488
|
declare class Posts extends HeyApiClient {
|
|
3230
3489
|
/**
|
|
3231
3490
|
* List posts
|
|
@@ -3262,6 +3521,8 @@ declare class Posts extends HeyApiClient {
|
|
|
3262
3521
|
* For threads, already-published children are skipped on retry.
|
|
3263
3522
|
*/
|
|
3264
3523
|
retry<ThrowOnError extends boolean = false>(options: Options<PostSpacesBySpacePostsByPostRetryData, ThrowOnError>): RequestResult<PostSpacesBySpacePostsByPostRetryResponses, PostSpacesBySpacePostsByPostRetryErrors, ThrowOnError, "fields">;
|
|
3524
|
+
private _comment?;
|
|
3525
|
+
get comment(): Comment;
|
|
3265
3526
|
}
|
|
3266
3527
|
declare class Queue extends HeyApiClient {
|
|
3267
3528
|
/**
|
|
@@ -3271,6 +3532,16 @@ declare class Queue extends HeyApiClient {
|
|
|
3271
3532
|
*/
|
|
3272
3533
|
list<ThrowOnError extends boolean = false>(options: Options<GetSpacesBySpaceQueueData, ThrowOnError>): RequestResult<GetSpacesBySpaceQueueResponses, GetSpacesBySpaceQueueErrors, ThrowOnError, "fields">;
|
|
3273
3534
|
}
|
|
3535
|
+
declare class Comments extends HeyApiClient {
|
|
3536
|
+
/**
|
|
3537
|
+
* Cancel a follow-up comment before it publishes
|
|
3538
|
+
*/
|
|
3539
|
+
delete<ThrowOnError extends boolean = false>(options: Options<DeleteSpacesBySpaceCommentsByScheduledCommentData, ThrowOnError>): RequestResult<DeleteSpacesBySpaceCommentsByScheduledCommentResponses, DeleteSpacesBySpaceCommentsByScheduledCommentErrors, ThrowOnError, "fields">;
|
|
3540
|
+
/**
|
|
3541
|
+
* Edit a pending or armed follow-up comment
|
|
3542
|
+
*/
|
|
3543
|
+
update<ThrowOnError extends boolean = false>(options: Options<PutSpacesBySpaceCommentsByScheduledCommentData, ThrowOnError>): RequestResult<PutSpacesBySpaceCommentsByScheduledCommentResponses, PutSpacesBySpaceCommentsByScheduledCommentErrors, ThrowOnError, "fields">;
|
|
3544
|
+
}
|
|
3274
3545
|
declare class Session extends HeyApiClient {
|
|
3275
3546
|
/**
|
|
3276
3547
|
* Get the authenticated session's user
|
|
@@ -3401,6 +3672,8 @@ declare class ZilfuApi extends HeyApiClient {
|
|
|
3401
3672
|
get posts(): Posts;
|
|
3402
3673
|
private _queue?;
|
|
3403
3674
|
get queue(): Queue;
|
|
3675
|
+
private _comments?;
|
|
3676
|
+
get comments(): Comments;
|
|
3404
3677
|
private _session?;
|
|
3405
3678
|
get session(): Session;
|
|
3406
3679
|
private _slots?;
|
|
@@ -3447,4 +3720,4 @@ declare class ZilfuApiError extends Error {
|
|
|
3447
3720
|
constructor(init: ZilfuApiErrorInit);
|
|
3448
3721
|
}
|
|
3449
3722
|
|
|
3450
|
-
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 DeleteSpacesBySpaceInvitationsByInvitationData, type DeleteSpacesBySpaceInvitationsByInvitationError, type DeleteSpacesBySpaceInvitationsByInvitationErrors, type DeleteSpacesBySpaceInvitationsByInvitationResponse, type DeleteSpacesBySpaceInvitationsByInvitationResponses, type DeleteSpacesBySpaceMembersByUserData, type DeleteSpacesBySpaceMembersByUserError, type DeleteSpacesBySpaceMembersByUserErrors, type DeleteSpacesBySpaceMembersByUserResponse, type DeleteSpacesBySpaceMembersByUserResponses, 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 GetSpacesBySpaceInvitationsData, type GetSpacesBySpaceInvitationsError, type GetSpacesBySpaceInvitationsErrors, type GetSpacesBySpaceInvitationsResponse, type GetSpacesBySpaceInvitationsResponses, type GetSpacesBySpaceMembersData, type GetSpacesBySpaceMembersError, type GetSpacesBySpaceMembersErrors, type GetSpacesBySpaceMembersResponse, type GetSpacesBySpaceMembersResponses, 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 PatchSpacesBySpaceMembersByUserData, type PatchSpacesBySpaceMembersByUserError, type PatchSpacesBySpaceMembersByUserErrors, type PatchSpacesBySpaceMembersByUserResponse, type PatchSpacesBySpaceMembersByUserResponses, type PostApiTokensData, type PostApiTokensError, type PostApiTokensErrors, type PostApiTokensResponses, type PostMediaSignData, type PostMediaSignError, type PostMediaSignErrors, type PostMediaSignResponse, type PostMediaSignResponses, type PostResource, type PostReviewResource, type PostSpacesBySpaceBioAvatarData, type PostSpacesBySpaceBioAvatarError, type PostSpacesBySpaceBioAvatarErrors, type PostSpacesBySpaceBioAvatarResponse, type PostSpacesBySpaceBioAvatarResponses, type PostSpacesBySpaceBioBlocksData, type PostSpacesBySpaceBioBlocksError, type PostSpacesBySpaceBioBlocksErrors, type PostSpacesBySpaceBioBlocksReorderData, type PostSpacesBySpaceBioBlocksReorderError, type PostSpacesBySpaceBioBlocksReorderErrors, type PostSpacesBySpaceBioBlocksReorderResponse, type PostSpacesBySpaceBioBlocksReorderResponses, type PostSpacesBySpaceBioBlocksResponse, type PostSpacesBySpaceBioBlocksResponses, type PostSpacesBySpaceBioData, type PostSpacesBySpaceBioError, type PostSpacesBySpaceBioErrors, type PostSpacesBySpaceBioImageData, type PostSpacesBySpaceBioImageError, type PostSpacesBySpaceBioImageErrors, type PostSpacesBySpaceBioImageResponse, type PostSpacesBySpaceBioImageResponses, type PostSpacesBySpaceBioResponse, type PostSpacesBySpaceBioResponses, type PostSpacesBySpaceInvitationsByInvitationResendData, type PostSpacesBySpaceInvitationsByInvitationResendError, type PostSpacesBySpaceInvitationsByInvitationResendErrors, type PostSpacesBySpaceInvitationsByInvitationResendResponse, type PostSpacesBySpaceInvitationsByInvitationResendResponses, type PostSpacesBySpaceInvitationsData, type PostSpacesBySpaceInvitationsError, type PostSpacesBySpaceInvitationsErrors, type PostSpacesBySpaceInvitationsResponse, type PostSpacesBySpaceInvitationsResponses, type PostSpacesBySpaceMembersLeaveData, type PostSpacesBySpaceMembersLeaveError, type PostSpacesBySpaceMembersLeaveErrors, type PostSpacesBySpaceMembersLeaveResponse, type PostSpacesBySpaceMembersLeaveResponses, 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 ReviewCommentResource, type SessionResource, type SignMediaRequest, type SlotResource, type SpaceInvitationResource, type SpaceMemberResource, type SpacePermission, type SpaceResource, type StoreBioBlockRequest, type StoreBioPageRequest, type StorePostRequest, type StoreSlotRequest, type StoreSpaceInvitationRequest, type StoreSpaceRequest, type StoreWebhookRequest, type UpdateBioBlockRequest, type UpdatePostRequest, type UpdateSpaceMemberRequest, type UpdateSpaceRequest, type UpdateWebhookRequest, type WebhookResource, ZilfuApiError, type ZilfuApiErrorInit, type ZilfuClient, type ZilfuFetch, type ZilfuToken, createZilfuClient };
|
|
3723
|
+
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 DeleteSpacesBySpaceCommentsByScheduledCommentData, type DeleteSpacesBySpaceCommentsByScheduledCommentError, type DeleteSpacesBySpaceCommentsByScheduledCommentErrors, type DeleteSpacesBySpaceCommentsByScheduledCommentResponse, type DeleteSpacesBySpaceCommentsByScheduledCommentResponses, type DeleteSpacesBySpaceData, type DeleteSpacesBySpaceError, type DeleteSpacesBySpaceErrors, type DeleteSpacesBySpaceInvitationsByInvitationData, type DeleteSpacesBySpaceInvitationsByInvitationError, type DeleteSpacesBySpaceInvitationsByInvitationErrors, type DeleteSpacesBySpaceInvitationsByInvitationResponse, type DeleteSpacesBySpaceInvitationsByInvitationResponses, type DeleteSpacesBySpaceMembersByUserData, type DeleteSpacesBySpaceMembersByUserError, type DeleteSpacesBySpaceMembersByUserErrors, type DeleteSpacesBySpaceMembersByUserResponse, type DeleteSpacesBySpaceMembersByUserResponses, 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 GetSpacesBySpaceInvitationsData, type GetSpacesBySpaceInvitationsError, type GetSpacesBySpaceInvitationsErrors, type GetSpacesBySpaceInvitationsResponse, type GetSpacesBySpaceInvitationsResponses, type GetSpacesBySpaceMembersData, type GetSpacesBySpaceMembersError, type GetSpacesBySpaceMembersErrors, type GetSpacesBySpaceMembersResponse, type GetSpacesBySpaceMembersResponses, 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 PatchSpacesBySpaceMembersByUserData, type PatchSpacesBySpaceMembersByUserError, type PatchSpacesBySpaceMembersByUserErrors, type PatchSpacesBySpaceMembersByUserResponse, type PatchSpacesBySpaceMembersByUserResponses, type PostApiTokensData, type PostApiTokensError, type PostApiTokensErrors, type PostApiTokensResponses, type PostMediaSignData, type PostMediaSignError, type PostMediaSignErrors, type PostMediaSignResponse, type PostMediaSignResponses, type PostResource, type PostReviewResource, type PostSpacesBySpaceBioAvatarData, type PostSpacesBySpaceBioAvatarError, type PostSpacesBySpaceBioAvatarErrors, type PostSpacesBySpaceBioAvatarResponse, type PostSpacesBySpaceBioAvatarResponses, type PostSpacesBySpaceBioBlocksData, type PostSpacesBySpaceBioBlocksError, type PostSpacesBySpaceBioBlocksErrors, type PostSpacesBySpaceBioBlocksReorderData, type PostSpacesBySpaceBioBlocksReorderError, type PostSpacesBySpaceBioBlocksReorderErrors, type PostSpacesBySpaceBioBlocksReorderResponse, type PostSpacesBySpaceBioBlocksReorderResponses, type PostSpacesBySpaceBioBlocksResponse, type PostSpacesBySpaceBioBlocksResponses, type PostSpacesBySpaceBioData, type PostSpacesBySpaceBioError, type PostSpacesBySpaceBioErrors, type PostSpacesBySpaceBioImageData, type PostSpacesBySpaceBioImageError, type PostSpacesBySpaceBioImageErrors, type PostSpacesBySpaceBioImageResponse, type PostSpacesBySpaceBioImageResponses, type PostSpacesBySpaceBioResponse, type PostSpacesBySpaceBioResponses, type PostSpacesBySpaceInvitationsByInvitationResendData, type PostSpacesBySpaceInvitationsByInvitationResendError, type PostSpacesBySpaceInvitationsByInvitationResendErrors, type PostSpacesBySpaceInvitationsByInvitationResendResponse, type PostSpacesBySpaceInvitationsByInvitationResendResponses, type PostSpacesBySpaceInvitationsData, type PostSpacesBySpaceInvitationsError, type PostSpacesBySpaceInvitationsErrors, type PostSpacesBySpaceInvitationsResponse, type PostSpacesBySpaceInvitationsResponses, type PostSpacesBySpaceMembersLeaveData, type PostSpacesBySpaceMembersLeaveError, type PostSpacesBySpaceMembersLeaveErrors, type PostSpacesBySpaceMembersLeaveResponse, type PostSpacesBySpaceMembersLeaveResponses, type PostSpacesBySpacePostsByPostCommentData, type PostSpacesBySpacePostsByPostCommentError, type PostSpacesBySpacePostsByPostCommentErrors, type PostSpacesBySpacePostsByPostCommentResponse, type PostSpacesBySpacePostsByPostCommentResponses, 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 PutSpacesBySpaceCommentsByScheduledCommentData, type PutSpacesBySpaceCommentsByScheduledCommentError, type PutSpacesBySpaceCommentsByScheduledCommentErrors, type PutSpacesBySpaceCommentsByScheduledCommentResponse, type PutSpacesBySpaceCommentsByScheduledCommentResponses, 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 ReviewCommentResource, type ScheduledCommentResource, type ScheduledCommentStatus, type SessionResource, type SignMediaRequest, type SlotResource, type SpaceInvitationResource, type SpaceMemberResource, type SpacePermission, type SpaceResource, type StoreBioBlockRequest, type StoreBioPageRequest, type StorePostRequest, type StoreScheduledCommentRequest, type StoreSlotRequest, type StoreSpaceInvitationRequest, type StoreSpaceRequest, type StoreWebhookRequest, type UpdateBioBlockRequest, type UpdatePostRequest, type UpdateScheduledCommentRequest, type UpdateSpaceMemberRequest, type UpdateSpaceRequest, type UpdateWebhookRequest, type WebhookResource, ZilfuApiError, type ZilfuApiErrorInit, type ZilfuClient, type ZilfuFetch, type ZilfuToken, createZilfuClient };
|
package/dist/index.js
CHANGED
|
@@ -1056,6 +1056,23 @@ var Media = class extends HeyApiClient {
|
|
|
1056
1056
|
});
|
|
1057
1057
|
}
|
|
1058
1058
|
};
|
|
1059
|
+
var Comment = class extends HeyApiClient {
|
|
1060
|
+
/**
|
|
1061
|
+
* Attach a follow-up comment to an existing post. If the post has already
|
|
1062
|
+
* published, the comment is armed immediately against its remote id
|
|
1063
|
+
*/
|
|
1064
|
+
create(options) {
|
|
1065
|
+
return (options.client ?? this.client).post({
|
|
1066
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1067
|
+
url: "/spaces/{space}/posts/{post}/comment",
|
|
1068
|
+
...options,
|
|
1069
|
+
headers: {
|
|
1070
|
+
"Content-Type": "application/json",
|
|
1071
|
+
...options.headers
|
|
1072
|
+
}
|
|
1073
|
+
});
|
|
1074
|
+
}
|
|
1075
|
+
};
|
|
1059
1076
|
var Posts = class extends HeyApiClient {
|
|
1060
1077
|
/**
|
|
1061
1078
|
* List posts
|
|
@@ -1136,6 +1153,10 @@ var Posts = class extends HeyApiClient {
|
|
|
1136
1153
|
...options
|
|
1137
1154
|
});
|
|
1138
1155
|
}
|
|
1156
|
+
_comment;
|
|
1157
|
+
get comment() {
|
|
1158
|
+
return this._comment ??= new Comment({ client: this.client });
|
|
1159
|
+
}
|
|
1139
1160
|
};
|
|
1140
1161
|
var Queue = class extends HeyApiClient {
|
|
1141
1162
|
/**
|
|
@@ -1151,6 +1172,32 @@ var Queue = class extends HeyApiClient {
|
|
|
1151
1172
|
});
|
|
1152
1173
|
}
|
|
1153
1174
|
};
|
|
1175
|
+
var Comments = class extends HeyApiClient {
|
|
1176
|
+
/**
|
|
1177
|
+
* Cancel a follow-up comment before it publishes
|
|
1178
|
+
*/
|
|
1179
|
+
delete(options) {
|
|
1180
|
+
return (options.client ?? this.client).delete({
|
|
1181
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1182
|
+
url: "/spaces/{space}/comments/{scheduledComment}",
|
|
1183
|
+
...options
|
|
1184
|
+
});
|
|
1185
|
+
}
|
|
1186
|
+
/**
|
|
1187
|
+
* Edit a pending or armed follow-up comment
|
|
1188
|
+
*/
|
|
1189
|
+
update(options) {
|
|
1190
|
+
return (options.client ?? this.client).put({
|
|
1191
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1192
|
+
url: "/spaces/{space}/comments/{scheduledComment}",
|
|
1193
|
+
...options,
|
|
1194
|
+
headers: {
|
|
1195
|
+
"Content-Type": "application/json",
|
|
1196
|
+
...options.headers
|
|
1197
|
+
}
|
|
1198
|
+
});
|
|
1199
|
+
}
|
|
1200
|
+
};
|
|
1154
1201
|
var Session = class extends HeyApiClient {
|
|
1155
1202
|
/**
|
|
1156
1203
|
* Get the authenticated session's user
|
|
@@ -1455,6 +1502,10 @@ var ZilfuApi = class _ZilfuApi extends HeyApiClient {
|
|
|
1455
1502
|
get queue() {
|
|
1456
1503
|
return this._queue ??= new Queue({ client: this.client });
|
|
1457
1504
|
}
|
|
1505
|
+
_comments;
|
|
1506
|
+
get comments() {
|
|
1507
|
+
return this._comments ??= new Comments({ client: this.client });
|
|
1508
|
+
}
|
|
1458
1509
|
_session;
|
|
1459
1510
|
get session() {
|
|
1460
1511
|
return this._session ??= new Session({ client: this.client });
|