@zilfu/sdk 0.2.6 → 0.2.7

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.d.ts CHANGED
@@ -393,6 +393,7 @@ type PostResource = {
393
393
  analytics: Array<unknown> | null;
394
394
  account?: AccountResource;
395
395
  children?: Array<PostResource>;
396
+ scheduled_comments?: Array<ScheduledCommentResource>;
396
397
  media?: Array<MediaResource>;
397
398
  review?: PostReviewResource | null;
398
399
  };
@@ -434,6 +435,36 @@ type ReviewCommentResource = {
434
435
  };
435
436
  created_at: string | null;
436
437
  };
438
+ /**
439
+ * ScheduledCommentResource
440
+ */
441
+ type ScheduledCommentResource = {
442
+ id: number;
443
+ content: string;
444
+ status: ScheduledCommentStatus;
445
+ delay_minutes: number;
446
+ scheduled_at: string | null;
447
+ published_at: string | null;
448
+ metadata: Array<unknown> | null;
449
+ post_id: number;
450
+ account_id: number;
451
+ created_at: string | null;
452
+ updated_at: string | null;
453
+ };
454
+ /**
455
+ * ScheduledCommentStatus
456
+ *
457
+ * | |
458
+ * |---|
459
+ * | `0` <br/> Created, waiting for the parent post to publish before it can be armed. |
460
+ * | `1` <br/> Armed with the parent's remote id and an absolute fire time. |
461
+ * | `2` <br/> |
462
+ * | `3` <br/> |
463
+ * | `4` <br/> |
464
+ * | `5` <br/> Parent post failed, so the comment never armed. |
465
+ * | `6` <br/> Cancelled by the user before publishing. |
466
+ */
467
+ type ScheduledCommentStatus = 0 | 1 | 2 | 3 | 4 | 5 | 6;
437
468
  /**
438
469
  * SessionResource
439
470
  */
@@ -516,6 +547,10 @@ type StorePostRequest = {
516
547
  space_id: number;
517
548
  at?: number | null;
518
549
  is_draft?: boolean;
550
+ comment?: {
551
+ content?: string;
552
+ delay_minutes?: number;
553
+ };
519
554
  items: Array<{
520
555
  account_id: number;
521
556
  social: string;
@@ -549,6 +584,13 @@ type StorePostRequest = {
549
584
  };
550
585
  }>;
551
586
  };
587
+ /**
588
+ * StoreScheduledCommentRequest
589
+ */
590
+ type StoreScheduledCommentRequest = {
591
+ content: string;
592
+ delay_minutes: number;
593
+ };
552
594
  /**
553
595
  * StoreSlotRequest
554
596
  */
@@ -574,7 +616,7 @@ type StoreSpaceRequest = {
574
616
  */
575
617
  type StoreWebhookRequest = {
576
618
  url: string;
577
- events: Array<'post.published' | 'post.failed' | 'post.scheduled' | 'account.connected' | 'account.disconnected'>;
619
+ events: Array<'post.published' | 'post.failed' | 'post.scheduled' | 'comment.published' | 'comment.failed' | 'account.connected' | 'account.disconnected'>;
578
620
  };
579
621
  /**
580
622
  * UpdateBioBlockRequest
@@ -616,6 +658,13 @@ type UpdatePostRequest = {
616
658
  }> | null;
617
659
  }> | null;
618
660
  };
661
+ /**
662
+ * UpdateScheduledCommentRequest
663
+ */
664
+ type UpdateScheduledCommentRequest = {
665
+ content?: string;
666
+ delay_minutes?: number;
667
+ };
619
668
  /**
620
669
  * UpdateSpaceMemberRequest
621
670
  */
@@ -635,7 +684,7 @@ type UpdateSpaceRequest = {
635
684
  type UpdateWebhookRequest = {
636
685
  url?: string;
637
686
  is_active?: boolean;
638
- events?: Array<'post.published' | 'post.failed' | 'post.scheduled' | 'account.connected' | 'account.disconnected'>;
687
+ events?: Array<'post.published' | 'post.failed' | 'post.scheduled' | 'comment.published' | 'comment.failed' | 'account.connected' | 'account.disconnected'>;
639
688
  };
640
689
  /**
641
690
  * WebhookResource
@@ -1982,6 +2031,208 @@ type GetSpacesBySpaceQueueResponses = {
1982
2031
  };
1983
2032
  };
1984
2033
  type GetSpacesBySpaceQueueResponse = GetSpacesBySpaceQueueResponses[keyof GetSpacesBySpaceQueueResponses];
2034
+ type PostSpacesBySpacePostsByPostCommentData = {
2035
+ body: StoreScheduledCommentRequest;
2036
+ path: {
2037
+ /**
2038
+ * The space ID
2039
+ */
2040
+ space: number;
2041
+ /**
2042
+ * The post ID
2043
+ */
2044
+ post: number;
2045
+ };
2046
+ query?: never;
2047
+ url: '/spaces/{space}/posts/{post}/comment';
2048
+ };
2049
+ type PostSpacesBySpacePostsByPostCommentErrors = {
2050
+ /**
2051
+ * Unauthenticated
2052
+ */
2053
+ 401: {
2054
+ /**
2055
+ * Error overview.
2056
+ */
2057
+ message: string;
2058
+ };
2059
+ /**
2060
+ * Authorization error
2061
+ */
2062
+ 403: {
2063
+ /**
2064
+ * Error overview.
2065
+ */
2066
+ message: string;
2067
+ };
2068
+ /**
2069
+ * Not found
2070
+ */
2071
+ 404: {
2072
+ /**
2073
+ * Error overview.
2074
+ */
2075
+ message: string;
2076
+ };
2077
+ /**
2078
+ * Validation error
2079
+ */
2080
+ 422: {
2081
+ /**
2082
+ * Errors overview.
2083
+ */
2084
+ message: string;
2085
+ /**
2086
+ * A detailed description of each field that failed validation.
2087
+ */
2088
+ errors: {
2089
+ [key: string]: Array<string>;
2090
+ };
2091
+ };
2092
+ };
2093
+ type PostSpacesBySpacePostsByPostCommentError = PostSpacesBySpacePostsByPostCommentErrors[keyof PostSpacesBySpacePostsByPostCommentErrors];
2094
+ type PostSpacesBySpacePostsByPostCommentResponses = {
2095
+ /**
2096
+ * `ScheduledCommentResource`
2097
+ */
2098
+ 200: {
2099
+ data: ScheduledCommentResource;
2100
+ } | {
2101
+ [key: string]: unknown;
2102
+ };
2103
+ };
2104
+ type PostSpacesBySpacePostsByPostCommentResponse = PostSpacesBySpacePostsByPostCommentResponses[keyof PostSpacesBySpacePostsByPostCommentResponses];
2105
+ type DeleteSpacesBySpaceCommentsByScheduledCommentData = {
2106
+ body?: never;
2107
+ path: {
2108
+ /**
2109
+ * The space ID
2110
+ */
2111
+ space: number;
2112
+ /**
2113
+ * The scheduled comment ID
2114
+ */
2115
+ scheduledComment: number;
2116
+ };
2117
+ query?: never;
2118
+ url: '/spaces/{space}/comments/{scheduledComment}';
2119
+ };
2120
+ type DeleteSpacesBySpaceCommentsByScheduledCommentErrors = {
2121
+ /**
2122
+ * Unauthenticated
2123
+ */
2124
+ 401: {
2125
+ /**
2126
+ * Error overview.
2127
+ */
2128
+ message: string;
2129
+ };
2130
+ /**
2131
+ * Authorization error
2132
+ */
2133
+ 403: {
2134
+ /**
2135
+ * Error overview.
2136
+ */
2137
+ message: string;
2138
+ };
2139
+ /**
2140
+ * Not found
2141
+ */
2142
+ 404: {
2143
+ /**
2144
+ * Error overview.
2145
+ */
2146
+ message: string;
2147
+ };
2148
+ /**
2149
+ * An error
2150
+ */
2151
+ 422: {
2152
+ /**
2153
+ * Error overview.
2154
+ */
2155
+ message: string;
2156
+ };
2157
+ };
2158
+ type DeleteSpacesBySpaceCommentsByScheduledCommentError = DeleteSpacesBySpaceCommentsByScheduledCommentErrors[keyof DeleteSpacesBySpaceCommentsByScheduledCommentErrors];
2159
+ type DeleteSpacesBySpaceCommentsByScheduledCommentResponses = {
2160
+ 200: {
2161
+ [key: string]: unknown;
2162
+ };
2163
+ };
2164
+ type DeleteSpacesBySpaceCommentsByScheduledCommentResponse = DeleteSpacesBySpaceCommentsByScheduledCommentResponses[keyof DeleteSpacesBySpaceCommentsByScheduledCommentResponses];
2165
+ type PutSpacesBySpaceCommentsByScheduledCommentData = {
2166
+ body?: UpdateScheduledCommentRequest;
2167
+ path: {
2168
+ /**
2169
+ * The space ID
2170
+ */
2171
+ space: number;
2172
+ /**
2173
+ * The scheduled comment ID
2174
+ */
2175
+ scheduledComment: number;
2176
+ };
2177
+ query?: never;
2178
+ url: '/spaces/{space}/comments/{scheduledComment}';
2179
+ };
2180
+ type PutSpacesBySpaceCommentsByScheduledCommentErrors = {
2181
+ /**
2182
+ * Unauthenticated
2183
+ */
2184
+ 401: {
2185
+ /**
2186
+ * Error overview.
2187
+ */
2188
+ message: string;
2189
+ };
2190
+ /**
2191
+ * Authorization error
2192
+ */
2193
+ 403: {
2194
+ /**
2195
+ * Error overview.
2196
+ */
2197
+ message: string;
2198
+ };
2199
+ /**
2200
+ * Not found
2201
+ */
2202
+ 404: {
2203
+ /**
2204
+ * Error overview.
2205
+ */
2206
+ message: string;
2207
+ };
2208
+ /**
2209
+ * Validation error
2210
+ */
2211
+ 422: {
2212
+ /**
2213
+ * Errors overview.
2214
+ */
2215
+ message: string;
2216
+ /**
2217
+ * A detailed description of each field that failed validation.
2218
+ */
2219
+ errors: {
2220
+ [key: string]: Array<string>;
2221
+ };
2222
+ };
2223
+ };
2224
+ type PutSpacesBySpaceCommentsByScheduledCommentError = PutSpacesBySpaceCommentsByScheduledCommentErrors[keyof PutSpacesBySpaceCommentsByScheduledCommentErrors];
2225
+ type PutSpacesBySpaceCommentsByScheduledCommentResponses = {
2226
+ /**
2227
+ * `ScheduledCommentResource`
2228
+ */
2229
+ 200: {
2230
+ data: ScheduledCommentResource;
2231
+ } | {
2232
+ [key: string]: unknown;
2233
+ };
2234
+ };
2235
+ type PutSpacesBySpaceCommentsByScheduledCommentResponse = PutSpacesBySpaceCommentsByScheduledCommentResponses[keyof PutSpacesBySpaceCommentsByScheduledCommentResponses];
1985
2236
  type GetSessionData = {
1986
2237
  body?: never;
1987
2238
  path?: never;
@@ -3226,6 +3477,13 @@ declare class Media extends HeyApiClient {
3226
3477
  */
3227
3478
  sign<ThrowOnError extends boolean = false>(options: Options<PostMediaSignData, ThrowOnError>): RequestResult<PostMediaSignResponses, PostMediaSignErrors, ThrowOnError, "fields">;
3228
3479
  }
3480
+ declare class Comment extends HeyApiClient {
3481
+ /**
3482
+ * Attach a follow-up comment to an existing post. If the post has already
3483
+ * published, the comment is armed immediately against its remote id
3484
+ */
3485
+ create<ThrowOnError extends boolean = false>(options: Options<PostSpacesBySpacePostsByPostCommentData, ThrowOnError>): RequestResult<PostSpacesBySpacePostsByPostCommentResponses, PostSpacesBySpacePostsByPostCommentErrors, ThrowOnError, "fields">;
3486
+ }
3229
3487
  declare class Posts extends HeyApiClient {
3230
3488
  /**
3231
3489
  * List posts
@@ -3262,6 +3520,8 @@ declare class Posts extends HeyApiClient {
3262
3520
  * For threads, already-published children are skipped on retry.
3263
3521
  */
3264
3522
  retry<ThrowOnError extends boolean = false>(options: Options<PostSpacesBySpacePostsByPostRetryData, ThrowOnError>): RequestResult<PostSpacesBySpacePostsByPostRetryResponses, PostSpacesBySpacePostsByPostRetryErrors, ThrowOnError, "fields">;
3523
+ private _comment?;
3524
+ get comment(): Comment;
3265
3525
  }
3266
3526
  declare class Queue extends HeyApiClient {
3267
3527
  /**
@@ -3271,6 +3531,16 @@ declare class Queue extends HeyApiClient {
3271
3531
  */
3272
3532
  list<ThrowOnError extends boolean = false>(options: Options<GetSpacesBySpaceQueueData, ThrowOnError>): RequestResult<GetSpacesBySpaceQueueResponses, GetSpacesBySpaceQueueErrors, ThrowOnError, "fields">;
3273
3533
  }
3534
+ declare class Comments extends HeyApiClient {
3535
+ /**
3536
+ * Cancel a follow-up comment before it publishes
3537
+ */
3538
+ delete<ThrowOnError extends boolean = false>(options: Options<DeleteSpacesBySpaceCommentsByScheduledCommentData, ThrowOnError>): RequestResult<DeleteSpacesBySpaceCommentsByScheduledCommentResponses, DeleteSpacesBySpaceCommentsByScheduledCommentErrors, ThrowOnError, "fields">;
3539
+ /**
3540
+ * Edit a pending or armed follow-up comment
3541
+ */
3542
+ update<ThrowOnError extends boolean = false>(options: Options<PutSpacesBySpaceCommentsByScheduledCommentData, ThrowOnError>): RequestResult<PutSpacesBySpaceCommentsByScheduledCommentResponses, PutSpacesBySpaceCommentsByScheduledCommentErrors, ThrowOnError, "fields">;
3543
+ }
3274
3544
  declare class Session extends HeyApiClient {
3275
3545
  /**
3276
3546
  * Get the authenticated session's user
@@ -3401,6 +3671,8 @@ declare class ZilfuApi extends HeyApiClient {
3401
3671
  get posts(): Posts;
3402
3672
  private _queue?;
3403
3673
  get queue(): Queue;
3674
+ private _comments?;
3675
+ get comments(): Comments;
3404
3676
  private _session?;
3405
3677
  get session(): Session;
3406
3678
  private _slots?;
@@ -3447,4 +3719,4 @@ declare class ZilfuApiError extends Error {
3447
3719
  constructor(init: ZilfuApiErrorInit);
3448
3720
  }
3449
3721
 
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 };
3722
+ 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 });