@zilfu/sdk 0.2.21 → 0.2.22
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 +18 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +71 -3
- package/dist/index.d.ts +71 -3
- package/dist/index.js +18 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -4096,7 +4096,12 @@ type PostSpacesBySpaceWebhooksErrors = {
|
|
|
4096
4096
|
type PostSpacesBySpaceWebhooksError = PostSpacesBySpaceWebhooksErrors[keyof PostSpacesBySpaceWebhooksErrors];
|
|
4097
4097
|
type PostSpacesBySpaceWebhooksResponses = {
|
|
4098
4098
|
200: {
|
|
4099
|
-
|
|
4099
|
+
data: WebhookResource;
|
|
4100
|
+
secret: string;
|
|
4101
|
+
};
|
|
4102
|
+
201: {
|
|
4103
|
+
data: WebhookResource;
|
|
4104
|
+
secret: string;
|
|
4100
4105
|
};
|
|
4101
4106
|
};
|
|
4102
4107
|
type PostSpacesBySpaceWebhooksResponse = PostSpacesBySpaceWebhooksResponses[keyof PostSpacesBySpaceWebhooksResponses];
|
|
@@ -4222,6 +4227,58 @@ type PutSpacesBySpaceWebhooksByWebhookResponses = {
|
|
|
4222
4227
|
};
|
|
4223
4228
|
};
|
|
4224
4229
|
type PutSpacesBySpaceWebhooksByWebhookResponse = PutSpacesBySpaceWebhooksByWebhookResponses[keyof PutSpacesBySpaceWebhooksByWebhookResponses];
|
|
4230
|
+
type PostSpacesBySpaceWebhooksByWebhookRotateData = {
|
|
4231
|
+
body?: never;
|
|
4232
|
+
path: {
|
|
4233
|
+
/**
|
|
4234
|
+
* The space ID
|
|
4235
|
+
*/
|
|
4236
|
+
space: number;
|
|
4237
|
+
/**
|
|
4238
|
+
* The webhook ID
|
|
4239
|
+
*/
|
|
4240
|
+
webhook: number;
|
|
4241
|
+
};
|
|
4242
|
+
query?: never;
|
|
4243
|
+
url: '/spaces/{space}/webhooks/{webhook}/rotate';
|
|
4244
|
+
};
|
|
4245
|
+
type PostSpacesBySpaceWebhooksByWebhookRotateErrors = {
|
|
4246
|
+
/**
|
|
4247
|
+
* Unauthenticated
|
|
4248
|
+
*/
|
|
4249
|
+
401: {
|
|
4250
|
+
/**
|
|
4251
|
+
* Error overview.
|
|
4252
|
+
*/
|
|
4253
|
+
message: string;
|
|
4254
|
+
};
|
|
4255
|
+
/**
|
|
4256
|
+
* Authorization error
|
|
4257
|
+
*/
|
|
4258
|
+
403: {
|
|
4259
|
+
/**
|
|
4260
|
+
* Error overview.
|
|
4261
|
+
*/
|
|
4262
|
+
message: string;
|
|
4263
|
+
};
|
|
4264
|
+
/**
|
|
4265
|
+
* Not found
|
|
4266
|
+
*/
|
|
4267
|
+
404: {
|
|
4268
|
+
/**
|
|
4269
|
+
* Error overview.
|
|
4270
|
+
*/
|
|
4271
|
+
message: string;
|
|
4272
|
+
};
|
|
4273
|
+
};
|
|
4274
|
+
type PostSpacesBySpaceWebhooksByWebhookRotateError = PostSpacesBySpaceWebhooksByWebhookRotateErrors[keyof PostSpacesBySpaceWebhooksByWebhookRotateErrors];
|
|
4275
|
+
type PostSpacesBySpaceWebhooksByWebhookRotateResponses = {
|
|
4276
|
+
200: {
|
|
4277
|
+
data: WebhookResource;
|
|
4278
|
+
secret: string;
|
|
4279
|
+
};
|
|
4280
|
+
};
|
|
4281
|
+
type PostSpacesBySpaceWebhooksByWebhookRotateResponse = PostSpacesBySpaceWebhooksByWebhookRotateResponses[keyof PostSpacesBySpaceWebhooksByWebhookRotateResponses];
|
|
4225
4282
|
|
|
4226
4283
|
type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown> = Options$1<TData, ThrowOnError, TResponse> & {
|
|
4227
4284
|
/**
|
|
@@ -4546,7 +4603,9 @@ declare class Webhooks extends HeyApiClient {
|
|
|
4546
4603
|
/**
|
|
4547
4604
|
* Create a webhook
|
|
4548
4605
|
*
|
|
4549
|
-
*
|
|
4606
|
+
* The response carries the generated signing secret alongside the webhook,
|
|
4607
|
+
* as a sibling of `data`. It is shown once and never returned by any other
|
|
4608
|
+
* endpoint — store it, or use the rotate endpoint to mint a replacement.
|
|
4550
4609
|
*/
|
|
4551
4610
|
create<ThrowOnError extends boolean = false>(options: Options<PostSpacesBySpaceWebhooksData, ThrowOnError>): RequestResult<PostSpacesBySpaceWebhooksResponses, PostSpacesBySpaceWebhooksErrors, ThrowOnError, "fields">;
|
|
4552
4611
|
/**
|
|
@@ -4557,6 +4616,15 @@ declare class Webhooks extends HeyApiClient {
|
|
|
4557
4616
|
* Update a webhook
|
|
4558
4617
|
*/
|
|
4559
4618
|
update<ThrowOnError extends boolean = false>(options: Options<PutSpacesBySpaceWebhooksByWebhookData, ThrowOnError>): RequestResult<PutSpacesBySpaceWebhooksByWebhookResponses, PutSpacesBySpaceWebhooksByWebhookErrors, ThrowOnError, "fields">;
|
|
4619
|
+
/**
|
|
4620
|
+
* Rotate a webhook's signing secret
|
|
4621
|
+
*
|
|
4622
|
+
* The only way back from a lost secret, since it is revealed once at
|
|
4623
|
+
* creation. Deliveries are signed with the new secret from the next event
|
|
4624
|
+
* onward, so a subscriber that verifies signatures should be updated first
|
|
4625
|
+
* — there is no grace period where both secrets are accepted.
|
|
4626
|
+
*/
|
|
4627
|
+
rotate<ThrowOnError extends boolean = false>(options: Options<PostSpacesBySpaceWebhooksByWebhookRotateData, ThrowOnError>): RequestResult<PostSpacesBySpaceWebhooksByWebhookRotateResponses, PostSpacesBySpaceWebhooksByWebhookRotateErrors, ThrowOnError, "fields">;
|
|
4560
4628
|
}
|
|
4561
4629
|
declare class ZilfuApi extends HeyApiClient {
|
|
4562
4630
|
static readonly __registry: HeyApiRegistry<ZilfuApi>;
|
|
@@ -4628,4 +4696,4 @@ declare class ZilfuApiError extends Error {
|
|
|
4628
4696
|
constructor(init: ZilfuApiErrorInit);
|
|
4629
4697
|
}
|
|
4630
4698
|
|
|
4631
|
-
export { type AccountPostsResource, type AccountReportResource, type AccountReportSummaryResource, 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 DeleteSpacesBySpaceMediaByMediaData, type DeleteSpacesBySpaceMediaByMediaError, type DeleteSpacesBySpaceMediaByMediaErrors, type DeleteSpacesBySpaceMediaByMediaResponse, type DeleteSpacesBySpaceMediaByMediaResponses, 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 GetSpacesBySpaceAccountsByAccountAnalyticsData, type GetSpacesBySpaceAccountsByAccountAnalyticsError, type GetSpacesBySpaceAccountsByAccountAnalyticsErrors, type GetSpacesBySpaceAccountsByAccountAnalyticsPostsData, type GetSpacesBySpaceAccountsByAccountAnalyticsPostsError, type GetSpacesBySpaceAccountsByAccountAnalyticsPostsErrors, type GetSpacesBySpaceAccountsByAccountAnalyticsPostsResponse, type GetSpacesBySpaceAccountsByAccountAnalyticsPostsResponses, type GetSpacesBySpaceAccountsByAccountAnalyticsResponse, type GetSpacesBySpaceAccountsByAccountAnalyticsResponses, type GetSpacesBySpaceAccountsByAccountBoardsData, type GetSpacesBySpaceAccountsByAccountBoardsError, type GetSpacesBySpaceAccountsByAccountBoardsErrors, type GetSpacesBySpaceAccountsByAccountBoardsResponse, type GetSpacesBySpaceAccountsByAccountBoardsResponses, type GetSpacesBySpaceAccountsData, type GetSpacesBySpaceAccountsError, type GetSpacesBySpaceAccountsErrors, type GetSpacesBySpaceAccountsResponse, type GetSpacesBySpaceAccountsResponses, type GetSpacesBySpaceAnalyticsData, type GetSpacesBySpaceAnalyticsError, type GetSpacesBySpaceAnalyticsErrors, type GetSpacesBySpaceAnalyticsResponse, type GetSpacesBySpaceAnalyticsResponses, 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 GetSpacesBySpaceMediaData, type GetSpacesBySpaceMediaError, type GetSpacesBySpaceMediaErrors, type GetSpacesBySpaceMediaResponse, type GetSpacesBySpaceMediaResponses, 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 IngestMediaRequest, 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 PostSpacesBySpaceMediaData, type PostSpacesBySpaceMediaError, type PostSpacesBySpaceMediaErrors, type PostSpacesBySpaceMediaResponse, type PostSpacesBySpaceMediaResponses, 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 };
|
|
4699
|
+
export { type AccountPostsResource, type AccountReportResource, type AccountReportSummaryResource, 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 DeleteSpacesBySpaceMediaByMediaData, type DeleteSpacesBySpaceMediaByMediaError, type DeleteSpacesBySpaceMediaByMediaErrors, type DeleteSpacesBySpaceMediaByMediaResponse, type DeleteSpacesBySpaceMediaByMediaResponses, 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 GetSpacesBySpaceAccountsByAccountAnalyticsData, type GetSpacesBySpaceAccountsByAccountAnalyticsError, type GetSpacesBySpaceAccountsByAccountAnalyticsErrors, type GetSpacesBySpaceAccountsByAccountAnalyticsPostsData, type GetSpacesBySpaceAccountsByAccountAnalyticsPostsError, type GetSpacesBySpaceAccountsByAccountAnalyticsPostsErrors, type GetSpacesBySpaceAccountsByAccountAnalyticsPostsResponse, type GetSpacesBySpaceAccountsByAccountAnalyticsPostsResponses, type GetSpacesBySpaceAccountsByAccountAnalyticsResponse, type GetSpacesBySpaceAccountsByAccountAnalyticsResponses, type GetSpacesBySpaceAccountsByAccountBoardsData, type GetSpacesBySpaceAccountsByAccountBoardsError, type GetSpacesBySpaceAccountsByAccountBoardsErrors, type GetSpacesBySpaceAccountsByAccountBoardsResponse, type GetSpacesBySpaceAccountsByAccountBoardsResponses, type GetSpacesBySpaceAccountsData, type GetSpacesBySpaceAccountsError, type GetSpacesBySpaceAccountsErrors, type GetSpacesBySpaceAccountsResponse, type GetSpacesBySpaceAccountsResponses, type GetSpacesBySpaceAnalyticsData, type GetSpacesBySpaceAnalyticsError, type GetSpacesBySpaceAnalyticsErrors, type GetSpacesBySpaceAnalyticsResponse, type GetSpacesBySpaceAnalyticsResponses, 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 GetSpacesBySpaceMediaData, type GetSpacesBySpaceMediaError, type GetSpacesBySpaceMediaErrors, type GetSpacesBySpaceMediaResponse, type GetSpacesBySpaceMediaResponses, 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 IngestMediaRequest, 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 PostSpacesBySpaceMediaData, type PostSpacesBySpaceMediaError, type PostSpacesBySpaceMediaErrors, type PostSpacesBySpaceMediaResponse, type PostSpacesBySpaceMediaResponses, 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 PostSpacesBySpaceWebhooksByWebhookRotateData, type PostSpacesBySpaceWebhooksByWebhookRotateError, type PostSpacesBySpaceWebhooksByWebhookRotateErrors, type PostSpacesBySpaceWebhooksByWebhookRotateResponse, type PostSpacesBySpaceWebhooksByWebhookRotateResponses, 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.d.ts
CHANGED
|
@@ -4096,7 +4096,12 @@ type PostSpacesBySpaceWebhooksErrors = {
|
|
|
4096
4096
|
type PostSpacesBySpaceWebhooksError = PostSpacesBySpaceWebhooksErrors[keyof PostSpacesBySpaceWebhooksErrors];
|
|
4097
4097
|
type PostSpacesBySpaceWebhooksResponses = {
|
|
4098
4098
|
200: {
|
|
4099
|
-
|
|
4099
|
+
data: WebhookResource;
|
|
4100
|
+
secret: string;
|
|
4101
|
+
};
|
|
4102
|
+
201: {
|
|
4103
|
+
data: WebhookResource;
|
|
4104
|
+
secret: string;
|
|
4100
4105
|
};
|
|
4101
4106
|
};
|
|
4102
4107
|
type PostSpacesBySpaceWebhooksResponse = PostSpacesBySpaceWebhooksResponses[keyof PostSpacesBySpaceWebhooksResponses];
|
|
@@ -4222,6 +4227,58 @@ type PutSpacesBySpaceWebhooksByWebhookResponses = {
|
|
|
4222
4227
|
};
|
|
4223
4228
|
};
|
|
4224
4229
|
type PutSpacesBySpaceWebhooksByWebhookResponse = PutSpacesBySpaceWebhooksByWebhookResponses[keyof PutSpacesBySpaceWebhooksByWebhookResponses];
|
|
4230
|
+
type PostSpacesBySpaceWebhooksByWebhookRotateData = {
|
|
4231
|
+
body?: never;
|
|
4232
|
+
path: {
|
|
4233
|
+
/**
|
|
4234
|
+
* The space ID
|
|
4235
|
+
*/
|
|
4236
|
+
space: number;
|
|
4237
|
+
/**
|
|
4238
|
+
* The webhook ID
|
|
4239
|
+
*/
|
|
4240
|
+
webhook: number;
|
|
4241
|
+
};
|
|
4242
|
+
query?: never;
|
|
4243
|
+
url: '/spaces/{space}/webhooks/{webhook}/rotate';
|
|
4244
|
+
};
|
|
4245
|
+
type PostSpacesBySpaceWebhooksByWebhookRotateErrors = {
|
|
4246
|
+
/**
|
|
4247
|
+
* Unauthenticated
|
|
4248
|
+
*/
|
|
4249
|
+
401: {
|
|
4250
|
+
/**
|
|
4251
|
+
* Error overview.
|
|
4252
|
+
*/
|
|
4253
|
+
message: string;
|
|
4254
|
+
};
|
|
4255
|
+
/**
|
|
4256
|
+
* Authorization error
|
|
4257
|
+
*/
|
|
4258
|
+
403: {
|
|
4259
|
+
/**
|
|
4260
|
+
* Error overview.
|
|
4261
|
+
*/
|
|
4262
|
+
message: string;
|
|
4263
|
+
};
|
|
4264
|
+
/**
|
|
4265
|
+
* Not found
|
|
4266
|
+
*/
|
|
4267
|
+
404: {
|
|
4268
|
+
/**
|
|
4269
|
+
* Error overview.
|
|
4270
|
+
*/
|
|
4271
|
+
message: string;
|
|
4272
|
+
};
|
|
4273
|
+
};
|
|
4274
|
+
type PostSpacesBySpaceWebhooksByWebhookRotateError = PostSpacesBySpaceWebhooksByWebhookRotateErrors[keyof PostSpacesBySpaceWebhooksByWebhookRotateErrors];
|
|
4275
|
+
type PostSpacesBySpaceWebhooksByWebhookRotateResponses = {
|
|
4276
|
+
200: {
|
|
4277
|
+
data: WebhookResource;
|
|
4278
|
+
secret: string;
|
|
4279
|
+
};
|
|
4280
|
+
};
|
|
4281
|
+
type PostSpacesBySpaceWebhooksByWebhookRotateResponse = PostSpacesBySpaceWebhooksByWebhookRotateResponses[keyof PostSpacesBySpaceWebhooksByWebhookRotateResponses];
|
|
4225
4282
|
|
|
4226
4283
|
type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown> = Options$1<TData, ThrowOnError, TResponse> & {
|
|
4227
4284
|
/**
|
|
@@ -4546,7 +4603,9 @@ declare class Webhooks extends HeyApiClient {
|
|
|
4546
4603
|
/**
|
|
4547
4604
|
* Create a webhook
|
|
4548
4605
|
*
|
|
4549
|
-
*
|
|
4606
|
+
* The response carries the generated signing secret alongside the webhook,
|
|
4607
|
+
* as a sibling of `data`. It is shown once and never returned by any other
|
|
4608
|
+
* endpoint — store it, or use the rotate endpoint to mint a replacement.
|
|
4550
4609
|
*/
|
|
4551
4610
|
create<ThrowOnError extends boolean = false>(options: Options<PostSpacesBySpaceWebhooksData, ThrowOnError>): RequestResult<PostSpacesBySpaceWebhooksResponses, PostSpacesBySpaceWebhooksErrors, ThrowOnError, "fields">;
|
|
4552
4611
|
/**
|
|
@@ -4557,6 +4616,15 @@ declare class Webhooks extends HeyApiClient {
|
|
|
4557
4616
|
* Update a webhook
|
|
4558
4617
|
*/
|
|
4559
4618
|
update<ThrowOnError extends boolean = false>(options: Options<PutSpacesBySpaceWebhooksByWebhookData, ThrowOnError>): RequestResult<PutSpacesBySpaceWebhooksByWebhookResponses, PutSpacesBySpaceWebhooksByWebhookErrors, ThrowOnError, "fields">;
|
|
4619
|
+
/**
|
|
4620
|
+
* Rotate a webhook's signing secret
|
|
4621
|
+
*
|
|
4622
|
+
* The only way back from a lost secret, since it is revealed once at
|
|
4623
|
+
* creation. Deliveries are signed with the new secret from the next event
|
|
4624
|
+
* onward, so a subscriber that verifies signatures should be updated first
|
|
4625
|
+
* — there is no grace period where both secrets are accepted.
|
|
4626
|
+
*/
|
|
4627
|
+
rotate<ThrowOnError extends boolean = false>(options: Options<PostSpacesBySpaceWebhooksByWebhookRotateData, ThrowOnError>): RequestResult<PostSpacesBySpaceWebhooksByWebhookRotateResponses, PostSpacesBySpaceWebhooksByWebhookRotateErrors, ThrowOnError, "fields">;
|
|
4560
4628
|
}
|
|
4561
4629
|
declare class ZilfuApi extends HeyApiClient {
|
|
4562
4630
|
static readonly __registry: HeyApiRegistry<ZilfuApi>;
|
|
@@ -4628,4 +4696,4 @@ declare class ZilfuApiError extends Error {
|
|
|
4628
4696
|
constructor(init: ZilfuApiErrorInit);
|
|
4629
4697
|
}
|
|
4630
4698
|
|
|
4631
|
-
export { type AccountPostsResource, type AccountReportResource, type AccountReportSummaryResource, 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 DeleteSpacesBySpaceMediaByMediaData, type DeleteSpacesBySpaceMediaByMediaError, type DeleteSpacesBySpaceMediaByMediaErrors, type DeleteSpacesBySpaceMediaByMediaResponse, type DeleteSpacesBySpaceMediaByMediaResponses, 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 GetSpacesBySpaceAccountsByAccountAnalyticsData, type GetSpacesBySpaceAccountsByAccountAnalyticsError, type GetSpacesBySpaceAccountsByAccountAnalyticsErrors, type GetSpacesBySpaceAccountsByAccountAnalyticsPostsData, type GetSpacesBySpaceAccountsByAccountAnalyticsPostsError, type GetSpacesBySpaceAccountsByAccountAnalyticsPostsErrors, type GetSpacesBySpaceAccountsByAccountAnalyticsPostsResponse, type GetSpacesBySpaceAccountsByAccountAnalyticsPostsResponses, type GetSpacesBySpaceAccountsByAccountAnalyticsResponse, type GetSpacesBySpaceAccountsByAccountAnalyticsResponses, type GetSpacesBySpaceAccountsByAccountBoardsData, type GetSpacesBySpaceAccountsByAccountBoardsError, type GetSpacesBySpaceAccountsByAccountBoardsErrors, type GetSpacesBySpaceAccountsByAccountBoardsResponse, type GetSpacesBySpaceAccountsByAccountBoardsResponses, type GetSpacesBySpaceAccountsData, type GetSpacesBySpaceAccountsError, type GetSpacesBySpaceAccountsErrors, type GetSpacesBySpaceAccountsResponse, type GetSpacesBySpaceAccountsResponses, type GetSpacesBySpaceAnalyticsData, type GetSpacesBySpaceAnalyticsError, type GetSpacesBySpaceAnalyticsErrors, type GetSpacesBySpaceAnalyticsResponse, type GetSpacesBySpaceAnalyticsResponses, 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 GetSpacesBySpaceMediaData, type GetSpacesBySpaceMediaError, type GetSpacesBySpaceMediaErrors, type GetSpacesBySpaceMediaResponse, type GetSpacesBySpaceMediaResponses, 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 IngestMediaRequest, 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 PostSpacesBySpaceMediaData, type PostSpacesBySpaceMediaError, type PostSpacesBySpaceMediaErrors, type PostSpacesBySpaceMediaResponse, type PostSpacesBySpaceMediaResponses, 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 };
|
|
4699
|
+
export { type AccountPostsResource, type AccountReportResource, type AccountReportSummaryResource, 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 DeleteSpacesBySpaceMediaByMediaData, type DeleteSpacesBySpaceMediaByMediaError, type DeleteSpacesBySpaceMediaByMediaErrors, type DeleteSpacesBySpaceMediaByMediaResponse, type DeleteSpacesBySpaceMediaByMediaResponses, 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 GetSpacesBySpaceAccountsByAccountAnalyticsData, type GetSpacesBySpaceAccountsByAccountAnalyticsError, type GetSpacesBySpaceAccountsByAccountAnalyticsErrors, type GetSpacesBySpaceAccountsByAccountAnalyticsPostsData, type GetSpacesBySpaceAccountsByAccountAnalyticsPostsError, type GetSpacesBySpaceAccountsByAccountAnalyticsPostsErrors, type GetSpacesBySpaceAccountsByAccountAnalyticsPostsResponse, type GetSpacesBySpaceAccountsByAccountAnalyticsPostsResponses, type GetSpacesBySpaceAccountsByAccountAnalyticsResponse, type GetSpacesBySpaceAccountsByAccountAnalyticsResponses, type GetSpacesBySpaceAccountsByAccountBoardsData, type GetSpacesBySpaceAccountsByAccountBoardsError, type GetSpacesBySpaceAccountsByAccountBoardsErrors, type GetSpacesBySpaceAccountsByAccountBoardsResponse, type GetSpacesBySpaceAccountsByAccountBoardsResponses, type GetSpacesBySpaceAccountsData, type GetSpacesBySpaceAccountsError, type GetSpacesBySpaceAccountsErrors, type GetSpacesBySpaceAccountsResponse, type GetSpacesBySpaceAccountsResponses, type GetSpacesBySpaceAnalyticsData, type GetSpacesBySpaceAnalyticsError, type GetSpacesBySpaceAnalyticsErrors, type GetSpacesBySpaceAnalyticsResponse, type GetSpacesBySpaceAnalyticsResponses, 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 GetSpacesBySpaceMediaData, type GetSpacesBySpaceMediaError, type GetSpacesBySpaceMediaErrors, type GetSpacesBySpaceMediaResponse, type GetSpacesBySpaceMediaResponses, 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 IngestMediaRequest, 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 PostSpacesBySpaceMediaData, type PostSpacesBySpaceMediaError, type PostSpacesBySpaceMediaErrors, type PostSpacesBySpaceMediaResponse, type PostSpacesBySpaceMediaResponses, 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 PostSpacesBySpaceWebhooksByWebhookRotateData, type PostSpacesBySpaceWebhooksByWebhookRotateError, type PostSpacesBySpaceWebhooksByWebhookRotateErrors, type PostSpacesBySpaceWebhooksByWebhookRotateResponse, type PostSpacesBySpaceWebhooksByWebhookRotateResponses, 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
|
@@ -1517,7 +1517,9 @@ var Webhooks = class extends HeyApiClient {
|
|
|
1517
1517
|
/**
|
|
1518
1518
|
* Create a webhook
|
|
1519
1519
|
*
|
|
1520
|
-
*
|
|
1520
|
+
* The response carries the generated signing secret alongside the webhook,
|
|
1521
|
+
* as a sibling of `data`. It is shown once and never returned by any other
|
|
1522
|
+
* endpoint — store it, or use the rotate endpoint to mint a replacement.
|
|
1521
1523
|
*/
|
|
1522
1524
|
create(options) {
|
|
1523
1525
|
return (options.client ?? this.client).post({
|
|
@@ -1554,6 +1556,21 @@ var Webhooks = class extends HeyApiClient {
|
|
|
1554
1556
|
}
|
|
1555
1557
|
});
|
|
1556
1558
|
}
|
|
1559
|
+
/**
|
|
1560
|
+
* Rotate a webhook's signing secret
|
|
1561
|
+
*
|
|
1562
|
+
* The only way back from a lost secret, since it is revealed once at
|
|
1563
|
+
* creation. Deliveries are signed with the new secret from the next event
|
|
1564
|
+
* onward, so a subscriber that verifies signatures should be updated first
|
|
1565
|
+
* — there is no grace period where both secrets are accepted.
|
|
1566
|
+
*/
|
|
1567
|
+
rotate(options) {
|
|
1568
|
+
return (options.client ?? this.client).post({
|
|
1569
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1570
|
+
url: "/spaces/{space}/webhooks/{webhook}/rotate",
|
|
1571
|
+
...options
|
|
1572
|
+
});
|
|
1573
|
+
}
|
|
1557
1574
|
};
|
|
1558
1575
|
var ZilfuApi = class _ZilfuApi extends HeyApiClient {
|
|
1559
1576
|
static __registry = new HeyApiRegistry();
|