@zilfu/sdk 0.0.1 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -27,12 +27,19 @@ type ArrayStyle = 'form' | 'spaceDelimited' | 'pipeDelimited';
27
27
  type ObjectStyle = 'form' | 'deepObject';
28
28
 
29
29
  type QuerySerializer = (query: Record<string, unknown>) => string;
30
- type BodySerializer = (body: any) => any;
31
- interface QuerySerializerOptions {
30
+ type BodySerializer = (body: unknown) => unknown;
31
+ type QuerySerializerOptionsObject = {
32
32
  allowReserved?: boolean;
33
- array?: SerializerOptions<ArrayStyle>;
34
- object?: SerializerOptions<ObjectStyle>;
35
- }
33
+ array?: Partial<SerializerOptions<ArrayStyle>>;
34
+ object?: Partial<SerializerOptions<ObjectStyle>>;
35
+ };
36
+ type QuerySerializerOptions = QuerySerializerOptionsObject & {
37
+ /**
38
+ * Per-parameter serialization overrides. When provided, these settings
39
+ * override the global array/object settings for specific parameter names.
40
+ */
41
+ parameters?: Record<string, QuerySerializerOptionsObject>;
42
+ };
36
43
 
37
44
  type HttpMethod = 'connect' | 'delete' | 'get' | 'head' | 'options' | 'patch' | 'post' | 'put' | 'trace';
38
45
  type Client$1<RequestFn = never, Config = unknown, MethodFn = never, BuildUrlFn = never, SseFn = never> = {
@@ -95,7 +102,7 @@ interface Config$1 {
95
102
  requestValidator?: (data: unknown) => Promise<unknown>;
96
103
  /**
97
104
  * A function transforming response data before it's returned. This is useful
98
- * for post-processing data, e.g. converting ISO strings into Date objects.
105
+ * for post-processing data, e.g., converting ISO strings into Date objects.
99
106
  */
100
107
  responseTransformer?: (data: unknown) => Promise<unknown>;
101
108
  /**
@@ -176,7 +183,11 @@ type ServerSentEventsResult<TData = unknown, TReturn = void, TNext = unknown> =
176
183
  stream: AsyncGenerator<TData extends Record<string, unknown> ? TData[keyof TData] : TData, TReturn, TNext>;
177
184
  };
178
185
 
179
- type ErrInterceptor<Err, Res, Req, Options> = (error: Err, response: Res, request: Req, options: Options) => Err | Promise<Err>;
186
+ type ErrInterceptor<Err, Res, Req, Options> = (error: Err,
187
+ /** response may be undefined due to a network error where no response object is produced */
188
+ response: Res | undefined,
189
+ /** request may be undefined, because error may be from building the request object itself */
190
+ request: Req | undefined, options: Options) => Err | Promise<Err>;
180
191
  type ReqInterceptor<Req, Options> = (request: Req, options: Options) => Req | Promise<Req>;
181
192
  type ResInterceptor<Res, Req, Options> = (response: Res, request: Req, options: Options) => Res | Promise<Res>;
182
193
  declare class Interceptors<Interceptor> {
@@ -239,7 +250,7 @@ interface Config<T extends ClientOptions$1 = ClientOptions$1> extends Omit<Reque
239
250
  interface RequestOptions<TData = unknown, TResponseStyle extends ResponseStyle = 'fields', ThrowOnError extends boolean = boolean, Url extends string = string> extends Config<{
240
251
  responseStyle: TResponseStyle;
241
252
  throwOnError: ThrowOnError;
242
- }>, Pick<ServerSentEventsOptions<TData>, 'onSseError' | 'onSseEvent' | 'sseDefaultRetryDelay' | 'sseMaxRetryAttempts' | 'sseMaxRetryDelay'> {
253
+ }>, Pick<ServerSentEventsOptions<TData>, 'onRequest' | 'onSseError' | 'onSseEvent' | 'sseDefaultRetryDelay' | 'sseMaxRetryAttempts' | 'sseMaxRetryDelay'> {
243
254
  /**
244
255
  * Any body that you want to add to your request.
245
256
  *
@@ -255,6 +266,7 @@ interface RequestOptions<TData = unknown, TResponseStyle extends ResponseStyle =
255
266
  url: Url;
256
267
  }
257
268
  interface ResolvedRequestOptions<TResponseStyle extends ResponseStyle = 'fields', ThrowOnError extends boolean = boolean, Url extends string = string> extends RequestOptions<unknown, TResponseStyle, ThrowOnError, Url> {
269
+ headers: Headers;
258
270
  serializedBody?: string;
259
271
  }
260
272
  type RequestResult<TData = unknown, TError = unknown, ThrowOnError extends boolean = boolean, TResponseStyle extends ResponseStyle = 'fields'> = ThrowOnError extends true ? Promise<TResponseStyle extends 'data' ? TData extends Record<string, unknown> ? TData[keyof TData] : TData : {
@@ -268,8 +280,10 @@ type RequestResult<TData = unknown, TError = unknown, ThrowOnError extends boole
268
280
  data: undefined;
269
281
  error: TError extends Record<string, unknown> ? TError[keyof TError] : TError;
270
282
  }) & {
271
- request: Request;
272
- response: Response;
283
+ /** request may be undefined, because error may be from building the request object itself */
284
+ request?: Request;
285
+ /** response may be undefined, because error may be from building the request object itself or from a network error */
286
+ response?: Response;
273
287
  }>;
274
288
  interface ClientOptions$1 {
275
289
  baseUrl?: string;
@@ -277,14 +291,14 @@ interface ClientOptions$1 {
277
291
  throwOnError?: boolean;
278
292
  }
279
293
  type MethodFn = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle = 'fields'>(options: Omit<RequestOptions<TData, TResponseStyle, ThrowOnError>, 'method'>) => RequestResult<TData, TError, ThrowOnError, TResponseStyle>;
280
- type SseFn = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle = 'fields'>(options: Omit<RequestOptions<TData, TResponseStyle, ThrowOnError>, 'method'>) => Promise<ServerSentEventsResult<TData, TError>>;
294
+ type SseFn = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle = 'fields'>(options: Omit<RequestOptions<never, TResponseStyle, ThrowOnError>, 'method'>) => Promise<ServerSentEventsResult<TData, TError>>;
281
295
  type RequestFn = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle = 'fields'>(options: Omit<RequestOptions<TData, TResponseStyle, ThrowOnError>, 'method'> & Pick<Required<RequestOptions<TData, TResponseStyle, ThrowOnError>>, 'method'>) => RequestResult<TData, TError, ThrowOnError, TResponseStyle>;
282
296
  type BuildUrlFn = <TData extends {
283
297
  body?: unknown;
284
298
  path?: Record<string, unknown>;
285
299
  query?: Record<string, unknown>;
286
300
  url: string;
287
- }>(options: Pick<TData, 'url'> & Options$1<TData>) => string;
301
+ }>(options: TData & Options$1<TData>) => string;
288
302
  type Client = Client$1<RequestFn, Config, MethodFn, BuildUrlFn, SseFn> & {
289
303
  interceptors: Middleware<Request, Response, unknown, ResolvedRequestOptions>;
290
304
  };
@@ -296,7 +310,7 @@ interface TDataShape {
296
310
  url: string;
297
311
  }
298
312
  type OmitKeys<T, K> = Pick<T, Exclude<keyof T, K>>;
299
- type Options$1<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown, TResponseStyle extends ResponseStyle = 'fields'> = OmitKeys<RequestOptions<TResponse, TResponseStyle, ThrowOnError>, 'body' | 'path' | 'query' | 'url'> & Omit<TData, 'url'>;
313
+ type Options$1<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown, TResponseStyle extends ResponseStyle = 'fields'> = OmitKeys<RequestOptions<TResponse, TResponseStyle, ThrowOnError>, 'body' | 'path' | 'query' | 'url'> & ([TData] extends [never] ? unknown : Omit<TData, 'url'>);
300
314
 
301
315
  type ClientOptions = {
302
316
  baseUrl: 'https://zilfu.app/api' | (string & {});
@@ -565,7 +579,7 @@ type WebhookResource = {
565
579
  created_at: string | null;
566
580
  updated_at: string | null;
567
581
  };
568
- type AccountsDestroyManyData = {
582
+ type DeleteSpacesBySpaceAccountsData = {
569
583
  body?: never;
570
584
  path: {
571
585
  /**
@@ -578,7 +592,7 @@ type AccountsDestroyManyData = {
578
592
  };
579
593
  url: '/spaces/{space}/accounts';
580
594
  };
581
- type AccountsDestroyManyErrors = {
595
+ type DeleteSpacesBySpaceAccountsErrors = {
582
596
  /**
583
597
  * Unauthenticated
584
598
  */
@@ -622,14 +636,14 @@ type AccountsDestroyManyErrors = {
622
636
  };
623
637
  };
624
638
  };
625
- type AccountsDestroyManyError = AccountsDestroyManyErrors[keyof AccountsDestroyManyErrors];
626
- type AccountsDestroyManyResponses = {
639
+ type DeleteSpacesBySpaceAccountsError = DeleteSpacesBySpaceAccountsErrors[keyof DeleteSpacesBySpaceAccountsErrors];
640
+ type DeleteSpacesBySpaceAccountsResponses = {
627
641
  200: {
628
642
  [key: string]: unknown;
629
643
  };
630
644
  };
631
- type AccountsDestroyManyResponse = AccountsDestroyManyResponses[keyof AccountsDestroyManyResponses];
632
- type AccountsIndexData = {
645
+ type DeleteSpacesBySpaceAccountsResponse = DeleteSpacesBySpaceAccountsResponses[keyof DeleteSpacesBySpaceAccountsResponses];
646
+ type GetSpacesBySpaceAccountsData = {
633
647
  body?: never;
634
648
  path: {
635
649
  /**
@@ -640,7 +654,7 @@ type AccountsIndexData = {
640
654
  query?: never;
641
655
  url: '/spaces/{space}/accounts';
642
656
  };
643
- type AccountsIndexErrors = {
657
+ type GetSpacesBySpaceAccountsErrors = {
644
658
  /**
645
659
  * Unauthenticated
646
660
  */
@@ -669,8 +683,8 @@ type AccountsIndexErrors = {
669
683
  message: string;
670
684
  };
671
685
  };
672
- type AccountsIndexError = AccountsIndexErrors[keyof AccountsIndexErrors];
673
- type AccountsIndexResponses = {
686
+ type GetSpacesBySpaceAccountsError = GetSpacesBySpaceAccountsErrors[keyof GetSpacesBySpaceAccountsErrors];
687
+ type GetSpacesBySpaceAccountsResponses = {
674
688
  /**
675
689
  * Array of `AccountResource`
676
690
  */
@@ -678,8 +692,8 @@ type AccountsIndexResponses = {
678
692
  data: Array<AccountResource>;
679
693
  };
680
694
  };
681
- type AccountsIndexResponse = AccountsIndexResponses[keyof AccountsIndexResponses];
682
- type AccountsActivateData = {
695
+ type GetSpacesBySpaceAccountsResponse = GetSpacesBySpaceAccountsResponses[keyof GetSpacesBySpaceAccountsResponses];
696
+ type PatchSpacesBySpaceAccountsByAccountActivateData = {
683
697
  body?: never;
684
698
  path: {
685
699
  /**
@@ -694,7 +708,7 @@ type AccountsActivateData = {
694
708
  query?: never;
695
709
  url: '/spaces/{space}/accounts/{account}/activate';
696
710
  };
697
- type AccountsActivateErrors = {
711
+ type PatchSpacesBySpaceAccountsByAccountActivateErrors = {
698
712
  /**
699
713
  * Unauthenticated
700
714
  */
@@ -723,8 +737,8 @@ type AccountsActivateErrors = {
723
737
  message: string;
724
738
  };
725
739
  };
726
- type AccountsActivateError = AccountsActivateErrors[keyof AccountsActivateErrors];
727
- type AccountsActivateResponses = {
740
+ type PatchSpacesBySpaceAccountsByAccountActivateError = PatchSpacesBySpaceAccountsByAccountActivateErrors[keyof PatchSpacesBySpaceAccountsByAccountActivateErrors];
741
+ type PatchSpacesBySpaceAccountsByAccountActivateResponses = {
728
742
  /**
729
743
  * `AccountResource`
730
744
  */
@@ -734,8 +748,8 @@ type AccountsActivateResponses = {
734
748
  [key: string]: unknown;
735
749
  };
736
750
  };
737
- type AccountsActivateResponse = AccountsActivateResponses[keyof AccountsActivateResponses];
738
- type AccountsBoardsData = {
751
+ type PatchSpacesBySpaceAccountsByAccountActivateResponse = PatchSpacesBySpaceAccountsByAccountActivateResponses[keyof PatchSpacesBySpaceAccountsByAccountActivateResponses];
752
+ type GetSpacesBySpaceAccountsByAccountBoardsData = {
739
753
  body?: never;
740
754
  path: {
741
755
  /**
@@ -750,7 +764,7 @@ type AccountsBoardsData = {
750
764
  query?: never;
751
765
  url: '/spaces/{space}/accounts/{account}/boards';
752
766
  };
753
- type AccountsBoardsErrors = {
767
+ type GetSpacesBySpaceAccountsByAccountBoardsErrors = {
754
768
  /**
755
769
  * Unauthenticated
756
770
  */
@@ -779,8 +793,8 @@ type AccountsBoardsErrors = {
779
793
  message: string;
780
794
  };
781
795
  };
782
- type AccountsBoardsError = AccountsBoardsErrors[keyof AccountsBoardsErrors];
783
- type AccountsBoardsResponses = {
796
+ type GetSpacesBySpaceAccountsByAccountBoardsError = GetSpacesBySpaceAccountsByAccountBoardsErrors[keyof GetSpacesBySpaceAccountsByAccountBoardsErrors];
797
+ type GetSpacesBySpaceAccountsByAccountBoardsResponses = {
784
798
  200: {
785
799
  data: Array<{
786
800
  id: string;
@@ -790,8 +804,8 @@ type AccountsBoardsResponses = {
790
804
  }>;
791
805
  };
792
806
  };
793
- type AccountsBoardsResponse = AccountsBoardsResponses[keyof AccountsBoardsResponses];
794
- type AccountsDestroyData = {
807
+ type GetSpacesBySpaceAccountsByAccountBoardsResponse = GetSpacesBySpaceAccountsByAccountBoardsResponses[keyof GetSpacesBySpaceAccountsByAccountBoardsResponses];
808
+ type DeleteSpacesBySpaceAccountsByAccountData = {
795
809
  body?: never;
796
810
  path: {
797
811
  /**
@@ -806,7 +820,7 @@ type AccountsDestroyData = {
806
820
  query?: never;
807
821
  url: '/spaces/{space}/accounts/{account}';
808
822
  };
809
- type AccountsDestroyErrors = {
823
+ type DeleteSpacesBySpaceAccountsByAccountErrors = {
810
824
  /**
811
825
  * Unauthenticated
812
826
  */
@@ -835,14 +849,14 @@ type AccountsDestroyErrors = {
835
849
  message: string;
836
850
  };
837
851
  };
838
- type AccountsDestroyError = AccountsDestroyErrors[keyof AccountsDestroyErrors];
839
- type AccountsDestroyResponses = {
852
+ type DeleteSpacesBySpaceAccountsByAccountError = DeleteSpacesBySpaceAccountsByAccountErrors[keyof DeleteSpacesBySpaceAccountsByAccountErrors];
853
+ type DeleteSpacesBySpaceAccountsByAccountResponses = {
840
854
  200: {
841
855
  [key: string]: unknown;
842
856
  };
843
857
  };
844
- type AccountsDestroyResponse = AccountsDestroyResponses[keyof AccountsDestroyResponses];
845
- type ApiTokensStoreData = {
858
+ type DeleteSpacesBySpaceAccountsByAccountResponse = DeleteSpacesBySpaceAccountsByAccountResponses[keyof DeleteSpacesBySpaceAccountsByAccountResponses];
859
+ type PostApiTokensData = {
846
860
  body: {
847
861
  name: string;
848
862
  };
@@ -850,7 +864,7 @@ type ApiTokensStoreData = {
850
864
  query?: never;
851
865
  url: '/api-tokens';
852
866
  };
853
- type ApiTokensStoreErrors = {
867
+ type PostApiTokensErrors = {
854
868
  /**
855
869
  * Unauthenticated
856
870
  */
@@ -876,11 +890,11 @@ type ApiTokensStoreErrors = {
876
890
  };
877
891
  };
878
892
  };
879
- type ApiTokensStoreError = ApiTokensStoreErrors[keyof ApiTokensStoreErrors];
880
- type ApiTokensStoreResponses = {
893
+ type PostApiTokensError = PostApiTokensErrors[keyof PostApiTokensErrors];
894
+ type PostApiTokensResponses = {
881
895
  200: unknown;
882
896
  };
883
- type ApiTokensDestroyData = {
897
+ type DeleteApiTokensByTokenIdData = {
884
898
  body?: never;
885
899
  path: {
886
900
  tokenId: string;
@@ -888,7 +902,7 @@ type ApiTokensDestroyData = {
888
902
  query?: never;
889
903
  url: '/api-tokens/{tokenId}';
890
904
  };
891
- type ApiTokensDestroyErrors = {
905
+ type DeleteApiTokensByTokenIdErrors = {
892
906
  /**
893
907
  * Unauthenticated
894
908
  */
@@ -899,11 +913,11 @@ type ApiTokensDestroyErrors = {
899
913
  message: string;
900
914
  };
901
915
  };
902
- type ApiTokensDestroyError = ApiTokensDestroyErrors[keyof ApiTokensDestroyErrors];
903
- type ApiTokensDestroyResponses = {
916
+ type DeleteApiTokensByTokenIdError = DeleteApiTokensByTokenIdErrors[keyof DeleteApiTokensByTokenIdErrors];
917
+ type DeleteApiTokensByTokenIdResponses = {
904
918
  200: unknown;
905
919
  };
906
- type BioBlocksIndexData = {
920
+ type GetSpacesBySpaceBioBlocksData = {
907
921
  body?: never;
908
922
  path: {
909
923
  /**
@@ -914,7 +928,7 @@ type BioBlocksIndexData = {
914
928
  query?: never;
915
929
  url: '/spaces/{space}/bio/blocks';
916
930
  };
917
- type BioBlocksIndexErrors = {
931
+ type GetSpacesBySpaceBioBlocksErrors = {
918
932
  /**
919
933
  * Unauthenticated
920
934
  */
@@ -943,8 +957,8 @@ type BioBlocksIndexErrors = {
943
957
  message: string;
944
958
  };
945
959
  };
946
- type BioBlocksIndexError = BioBlocksIndexErrors[keyof BioBlocksIndexErrors];
947
- type BioBlocksIndexResponses = {
960
+ type GetSpacesBySpaceBioBlocksError = GetSpacesBySpaceBioBlocksErrors[keyof GetSpacesBySpaceBioBlocksErrors];
961
+ type GetSpacesBySpaceBioBlocksResponses = {
948
962
  /**
949
963
  * Array of items
950
964
  */
@@ -952,8 +966,8 @@ type BioBlocksIndexResponses = {
952
966
  data: Array<string>;
953
967
  };
954
968
  };
955
- type BioBlocksIndexResponse = BioBlocksIndexResponses[keyof BioBlocksIndexResponses];
956
- type BioBlocksStoreData = {
969
+ type GetSpacesBySpaceBioBlocksResponse = GetSpacesBySpaceBioBlocksResponses[keyof GetSpacesBySpaceBioBlocksResponses];
970
+ type PostSpacesBySpaceBioBlocksData = {
957
971
  body: StoreBioBlockRequest;
958
972
  path: {
959
973
  /**
@@ -964,7 +978,7 @@ type BioBlocksStoreData = {
964
978
  query?: never;
965
979
  url: '/spaces/{space}/bio/blocks';
966
980
  };
967
- type BioBlocksStoreErrors = {
981
+ type PostSpacesBySpaceBioBlocksErrors = {
968
982
  /**
969
983
  * Unauthenticated
970
984
  */
@@ -1008,14 +1022,14 @@ type BioBlocksStoreErrors = {
1008
1022
  };
1009
1023
  };
1010
1024
  };
1011
- type BioBlocksStoreError = BioBlocksStoreErrors[keyof BioBlocksStoreErrors];
1012
- type BioBlocksStoreResponses = {
1025
+ type PostSpacesBySpaceBioBlocksError = PostSpacesBySpaceBioBlocksErrors[keyof PostSpacesBySpaceBioBlocksErrors];
1026
+ type PostSpacesBySpaceBioBlocksResponses = {
1013
1027
  200: {
1014
1028
  [key: string]: unknown;
1015
1029
  };
1016
1030
  };
1017
- type BioBlocksStoreResponse = BioBlocksStoreResponses[keyof BioBlocksStoreResponses];
1018
- type BioBlocksDestroyData = {
1031
+ type PostSpacesBySpaceBioBlocksResponse = PostSpacesBySpaceBioBlocksResponses[keyof PostSpacesBySpaceBioBlocksResponses];
1032
+ type DeleteSpacesBySpaceBioBlocksByBlockData = {
1019
1033
  body?: never;
1020
1034
  path: {
1021
1035
  /**
@@ -1030,7 +1044,7 @@ type BioBlocksDestroyData = {
1030
1044
  query?: never;
1031
1045
  url: '/spaces/{space}/bio/blocks/{block}';
1032
1046
  };
1033
- type BioBlocksDestroyErrors = {
1047
+ type DeleteSpacesBySpaceBioBlocksByBlockErrors = {
1034
1048
  /**
1035
1049
  * Unauthenticated
1036
1050
  */
@@ -1059,14 +1073,14 @@ type BioBlocksDestroyErrors = {
1059
1073
  message: string;
1060
1074
  };
1061
1075
  };
1062
- type BioBlocksDestroyError = BioBlocksDestroyErrors[keyof BioBlocksDestroyErrors];
1063
- type BioBlocksDestroyResponses = {
1076
+ type DeleteSpacesBySpaceBioBlocksByBlockError = DeleteSpacesBySpaceBioBlocksByBlockErrors[keyof DeleteSpacesBySpaceBioBlocksByBlockErrors];
1077
+ type DeleteSpacesBySpaceBioBlocksByBlockResponses = {
1064
1078
  200: {
1065
1079
  [key: string]: unknown;
1066
1080
  };
1067
1081
  };
1068
- type BioBlocksDestroyResponse = BioBlocksDestroyResponses[keyof BioBlocksDestroyResponses];
1069
- type BioBlocksUpdateData = {
1082
+ type DeleteSpacesBySpaceBioBlocksByBlockResponse = DeleteSpacesBySpaceBioBlocksByBlockResponses[keyof DeleteSpacesBySpaceBioBlocksByBlockResponses];
1083
+ type PutSpacesBySpaceBioBlocksByBlockData = {
1070
1084
  body?: UpdateBioBlockRequest;
1071
1085
  path: {
1072
1086
  /**
@@ -1081,7 +1095,7 @@ type BioBlocksUpdateData = {
1081
1095
  query?: never;
1082
1096
  url: '/spaces/{space}/bio/blocks/{block}';
1083
1097
  };
1084
- type BioBlocksUpdateErrors = {
1098
+ type PutSpacesBySpaceBioBlocksByBlockErrors = {
1085
1099
  /**
1086
1100
  * Unauthenticated
1087
1101
  */
@@ -1125,8 +1139,8 @@ type BioBlocksUpdateErrors = {
1125
1139
  };
1126
1140
  };
1127
1141
  };
1128
- type BioBlocksUpdateError = BioBlocksUpdateErrors[keyof BioBlocksUpdateErrors];
1129
- type BioBlocksUpdateResponses = {
1142
+ type PutSpacesBySpaceBioBlocksByBlockError = PutSpacesBySpaceBioBlocksByBlockErrors[keyof PutSpacesBySpaceBioBlocksByBlockErrors];
1143
+ type PutSpacesBySpaceBioBlocksByBlockResponses = {
1130
1144
  /**
1131
1145
  * `BioBlockResource`
1132
1146
  */
@@ -1136,8 +1150,8 @@ type BioBlocksUpdateResponses = {
1136
1150
  [key: string]: unknown;
1137
1151
  };
1138
1152
  };
1139
- type BioBlocksUpdateResponse = BioBlocksUpdateResponses[keyof BioBlocksUpdateResponses];
1140
- type BioBlocksReorderData = {
1153
+ type PutSpacesBySpaceBioBlocksByBlockResponse = PutSpacesBySpaceBioBlocksByBlockResponses[keyof PutSpacesBySpaceBioBlocksByBlockResponses];
1154
+ type PostSpacesBySpaceBioBlocksByBlockReorderData = {
1141
1155
  body: {
1142
1156
  direction: 'up' | 'down';
1143
1157
  };
@@ -1154,7 +1168,7 @@ type BioBlocksReorderData = {
1154
1168
  query?: never;
1155
1169
  url: '/spaces/{space}/bio/blocks/{block}/reorder';
1156
1170
  };
1157
- type BioBlocksReorderErrors = {
1171
+ type PostSpacesBySpaceBioBlocksByBlockReorderErrors = {
1158
1172
  /**
1159
1173
  * Unauthenticated
1160
1174
  */
@@ -1198,14 +1212,14 @@ type BioBlocksReorderErrors = {
1198
1212
  };
1199
1213
  };
1200
1214
  };
1201
- type BioBlocksReorderError = BioBlocksReorderErrors[keyof BioBlocksReorderErrors];
1202
- type BioBlocksReorderResponses = {
1215
+ type PostSpacesBySpaceBioBlocksByBlockReorderError = PostSpacesBySpaceBioBlocksByBlockReorderErrors[keyof PostSpacesBySpaceBioBlocksByBlockReorderErrors];
1216
+ type PostSpacesBySpaceBioBlocksByBlockReorderResponses = {
1203
1217
  200: {
1204
1218
  [key: string]: unknown;
1205
1219
  };
1206
1220
  };
1207
- type BioBlocksReorderResponse = BioBlocksReorderResponses[keyof BioBlocksReorderResponses];
1208
- type BioShowData = {
1221
+ type PostSpacesBySpaceBioBlocksByBlockReorderResponse = PostSpacesBySpaceBioBlocksByBlockReorderResponses[keyof PostSpacesBySpaceBioBlocksByBlockReorderResponses];
1222
+ type GetSpacesBySpaceBioData = {
1209
1223
  body?: never;
1210
1224
  path: {
1211
1225
  /**
@@ -1216,7 +1230,7 @@ type BioShowData = {
1216
1230
  query?: never;
1217
1231
  url: '/spaces/{space}/bio';
1218
1232
  };
1219
- type BioShowErrors = {
1233
+ type GetSpacesBySpaceBioErrors = {
1220
1234
  /**
1221
1235
  * Unauthenticated
1222
1236
  */
@@ -1245,8 +1259,8 @@ type BioShowErrors = {
1245
1259
  message: string;
1246
1260
  };
1247
1261
  };
1248
- type BioShowError = BioShowErrors[keyof BioShowErrors];
1249
- type BioShowResponses = {
1262
+ type GetSpacesBySpaceBioError = GetSpacesBySpaceBioErrors[keyof GetSpacesBySpaceBioErrors];
1263
+ type GetSpacesBySpaceBioResponses = {
1250
1264
  /**
1251
1265
  * `BioPageResource`
1252
1266
  */
@@ -1254,8 +1268,8 @@ type BioShowResponses = {
1254
1268
  data: BioPageResource;
1255
1269
  };
1256
1270
  };
1257
- type BioShowResponse = BioShowResponses[keyof BioShowResponses];
1258
- type BioStoreData = {
1271
+ type GetSpacesBySpaceBioResponse = GetSpacesBySpaceBioResponses[keyof GetSpacesBySpaceBioResponses];
1272
+ type PostSpacesBySpaceBioData = {
1259
1273
  body: StoreBioPageRequest;
1260
1274
  path: {
1261
1275
  /**
@@ -1266,7 +1280,7 @@ type BioStoreData = {
1266
1280
  query?: never;
1267
1281
  url: '/spaces/{space}/bio';
1268
1282
  };
1269
- type BioStoreErrors = {
1283
+ type PostSpacesBySpaceBioErrors = {
1270
1284
  /**
1271
1285
  * Unauthenticated
1272
1286
  */
@@ -1310,14 +1324,14 @@ type BioStoreErrors = {
1310
1324
  };
1311
1325
  };
1312
1326
  };
1313
- type BioStoreError = BioStoreErrors[keyof BioStoreErrors];
1314
- type BioStoreResponses = {
1327
+ type PostSpacesBySpaceBioError = PostSpacesBySpaceBioErrors[keyof PostSpacesBySpaceBioErrors];
1328
+ type PostSpacesBySpaceBioResponses = {
1315
1329
  200: {
1316
1330
  [key: string]: unknown;
1317
1331
  };
1318
1332
  };
1319
- type BioStoreResponse = BioStoreResponses[keyof BioStoreResponses];
1320
- type BioUpdateData = {
1333
+ type PostSpacesBySpaceBioResponse = PostSpacesBySpaceBioResponses[keyof PostSpacesBySpaceBioResponses];
1334
+ type PutSpacesBySpaceBioData = {
1321
1335
  body?: UpdateBioPageRequest;
1322
1336
  path: {
1323
1337
  /**
@@ -1328,7 +1342,7 @@ type BioUpdateData = {
1328
1342
  query?: never;
1329
1343
  url: '/spaces/{space}/bio';
1330
1344
  };
1331
- type BioUpdateErrors = {
1345
+ type PutSpacesBySpaceBioErrors = {
1332
1346
  /**
1333
1347
  * Unauthenticated
1334
1348
  */
@@ -1372,8 +1386,8 @@ type BioUpdateErrors = {
1372
1386
  };
1373
1387
  };
1374
1388
  };
1375
- type BioUpdateError = BioUpdateErrors[keyof BioUpdateErrors];
1376
- type BioUpdateResponses = {
1389
+ type PutSpacesBySpaceBioError = PutSpacesBySpaceBioErrors[keyof PutSpacesBySpaceBioErrors];
1390
+ type PutSpacesBySpaceBioResponses = {
1377
1391
  /**
1378
1392
  * `BioPageResource`
1379
1393
  */
@@ -1383,8 +1397,8 @@ type BioUpdateResponses = {
1383
1397
  [key: string]: unknown;
1384
1398
  };
1385
1399
  };
1386
- type BioUpdateResponse = BioUpdateResponses[keyof BioUpdateResponses];
1387
- type BioAvatarData = {
1400
+ type PutSpacesBySpaceBioResponse = PutSpacesBySpaceBioResponses[keyof PutSpacesBySpaceBioResponses];
1401
+ type PostSpacesBySpaceBioAvatarData = {
1388
1402
  body: {
1389
1403
  file: Blob | File;
1390
1404
  };
@@ -1397,7 +1411,7 @@ type BioAvatarData = {
1397
1411
  query?: never;
1398
1412
  url: '/spaces/{space}/bio/avatar';
1399
1413
  };
1400
- type BioAvatarErrors = {
1414
+ type PostSpacesBySpaceBioAvatarErrors = {
1401
1415
  /**
1402
1416
  * Unauthenticated
1403
1417
  */
@@ -1441,14 +1455,14 @@ type BioAvatarErrors = {
1441
1455
  };
1442
1456
  };
1443
1457
  };
1444
- type BioAvatarError = BioAvatarErrors[keyof BioAvatarErrors];
1445
- type BioAvatarResponses = {
1458
+ type PostSpacesBySpaceBioAvatarError = PostSpacesBySpaceBioAvatarErrors[keyof PostSpacesBySpaceBioAvatarErrors];
1459
+ type PostSpacesBySpaceBioAvatarResponses = {
1446
1460
  200: {
1447
1461
  [key: string]: unknown;
1448
1462
  };
1449
1463
  };
1450
- type BioAvatarResponse = BioAvatarResponses[keyof BioAvatarResponses];
1451
- type MediaStoreData = {
1464
+ type PostSpacesBySpaceBioAvatarResponse = PostSpacesBySpaceBioAvatarResponses[keyof PostSpacesBySpaceBioAvatarResponses];
1465
+ type PostMediaData = {
1452
1466
  body: {
1453
1467
  file: Blob | File;
1454
1468
  };
@@ -1456,7 +1470,7 @@ type MediaStoreData = {
1456
1470
  query?: never;
1457
1471
  url: '/media';
1458
1472
  };
1459
- type MediaStoreErrors = {
1473
+ type PostMediaErrors = {
1460
1474
  /**
1461
1475
  * Unauthenticated
1462
1476
  */
@@ -1482,8 +1496,8 @@ type MediaStoreErrors = {
1482
1496
  };
1483
1497
  };
1484
1498
  };
1485
- type MediaStoreError = MediaStoreErrors[keyof MediaStoreErrors];
1486
- type MediaStoreResponses = {
1499
+ type PostMediaError = PostMediaErrors[keyof PostMediaErrors];
1500
+ type PostMediaResponses = {
1487
1501
  /**
1488
1502
  * `MediaResource`
1489
1503
  */
@@ -1491,8 +1505,8 @@ type MediaStoreResponses = {
1491
1505
  data: MediaResource;
1492
1506
  };
1493
1507
  };
1494
- type MediaStoreResponse = MediaStoreResponses[keyof MediaStoreResponses];
1495
- type MediaDestroyData = {
1508
+ type PostMediaResponse = PostMediaResponses[keyof PostMediaResponses];
1509
+ type DeleteMediaByMediaData = {
1496
1510
  body?: never;
1497
1511
  path: {
1498
1512
  /**
@@ -1503,7 +1517,7 @@ type MediaDestroyData = {
1503
1517
  query?: never;
1504
1518
  url: '/media/{media}';
1505
1519
  };
1506
- type MediaDestroyErrors = {
1520
+ type DeleteMediaByMediaErrors = {
1507
1521
  /**
1508
1522
  * Unauthenticated
1509
1523
  */
@@ -1532,14 +1546,14 @@ type MediaDestroyErrors = {
1532
1546
  message: string;
1533
1547
  };
1534
1548
  };
1535
- type MediaDestroyError = MediaDestroyErrors[keyof MediaDestroyErrors];
1536
- type MediaDestroyResponses = {
1549
+ type DeleteMediaByMediaError = DeleteMediaByMediaErrors[keyof DeleteMediaByMediaErrors];
1550
+ type DeleteMediaByMediaResponses = {
1537
1551
  200: {
1538
1552
  [key: string]: unknown;
1539
1553
  };
1540
1554
  };
1541
- type MediaDestroyResponse = MediaDestroyResponses[keyof MediaDestroyResponses];
1542
- type PostsIndexData = {
1555
+ type DeleteMediaByMediaResponse = DeleteMediaByMediaResponses[keyof DeleteMediaByMediaResponses];
1556
+ type GetSpacesBySpacePostsData = {
1543
1557
  body?: never;
1544
1558
  path: {
1545
1559
  /**
@@ -1555,7 +1569,7 @@ type PostsIndexData = {
1555
1569
  };
1556
1570
  url: '/spaces/{space}/posts';
1557
1571
  };
1558
- type PostsIndexErrors = {
1572
+ type GetSpacesBySpacePostsErrors = {
1559
1573
  /**
1560
1574
  * Unauthenticated
1561
1575
  */
@@ -1584,8 +1598,8 @@ type PostsIndexErrors = {
1584
1598
  message: string;
1585
1599
  };
1586
1600
  };
1587
- type PostsIndexError = PostsIndexErrors[keyof PostsIndexErrors];
1588
- type PostsIndexResponses = {
1601
+ type GetSpacesBySpacePostsError = GetSpacesBySpacePostsErrors[keyof GetSpacesBySpacePostsErrors];
1602
+ type GetSpacesBySpacePostsResponses = {
1589
1603
  /**
1590
1604
  * Paginated set of `PostResource`
1591
1605
  */
@@ -1628,8 +1642,8 @@ type PostsIndexResponses = {
1628
1642
  };
1629
1643
  };
1630
1644
  };
1631
- type PostsIndexResponse = PostsIndexResponses[keyof PostsIndexResponses];
1632
- type PostsStoreData = {
1645
+ type GetSpacesBySpacePostsResponse = GetSpacesBySpacePostsResponses[keyof GetSpacesBySpacePostsResponses];
1646
+ type PostSpacesBySpacePostsData = {
1633
1647
  body: StorePostRequest;
1634
1648
  path: {
1635
1649
  space: string;
@@ -1637,7 +1651,7 @@ type PostsStoreData = {
1637
1651
  query?: never;
1638
1652
  url: '/spaces/{space}/posts';
1639
1653
  };
1640
- type PostsStoreErrors = {
1654
+ type PostSpacesBySpacePostsErrors = {
1641
1655
  /**
1642
1656
  * Unauthenticated
1643
1657
  */
@@ -1672,14 +1686,14 @@ type PostsStoreErrors = {
1672
1686
  };
1673
1687
  };
1674
1688
  };
1675
- type PostsStoreError = PostsStoreErrors[keyof PostsStoreErrors];
1676
- type PostsStoreResponses = {
1689
+ type PostSpacesBySpacePostsError = PostSpacesBySpacePostsErrors[keyof PostSpacesBySpacePostsErrors];
1690
+ type PostSpacesBySpacePostsResponses = {
1677
1691
  200: {
1678
1692
  [key: string]: unknown;
1679
1693
  };
1680
1694
  };
1681
- type PostsStoreResponse = PostsStoreResponses[keyof PostsStoreResponses];
1682
- type PostsDestroyData = {
1695
+ type PostSpacesBySpacePostsResponse = PostSpacesBySpacePostsResponses[keyof PostSpacesBySpacePostsResponses];
1696
+ type DeleteSpacesBySpacePostsByPostData = {
1683
1697
  body?: never;
1684
1698
  path: {
1685
1699
  /**
@@ -1694,7 +1708,7 @@ type PostsDestroyData = {
1694
1708
  query?: never;
1695
1709
  url: '/spaces/{space}/posts/{post}';
1696
1710
  };
1697
- type PostsDestroyErrors = {
1711
+ type DeleteSpacesBySpacePostsByPostErrors = {
1698
1712
  /**
1699
1713
  * Unauthenticated
1700
1714
  */
@@ -1723,14 +1737,14 @@ type PostsDestroyErrors = {
1723
1737
  message: string;
1724
1738
  };
1725
1739
  };
1726
- type PostsDestroyError = PostsDestroyErrors[keyof PostsDestroyErrors];
1727
- type PostsDestroyResponses = {
1740
+ type DeleteSpacesBySpacePostsByPostError = DeleteSpacesBySpacePostsByPostErrors[keyof DeleteSpacesBySpacePostsByPostErrors];
1741
+ type DeleteSpacesBySpacePostsByPostResponses = {
1728
1742
  200: {
1729
1743
  [key: string]: unknown;
1730
1744
  };
1731
1745
  };
1732
- type PostsDestroyResponse = PostsDestroyResponses[keyof PostsDestroyResponses];
1733
- type PostsShowData = {
1746
+ type DeleteSpacesBySpacePostsByPostResponse = DeleteSpacesBySpacePostsByPostResponses[keyof DeleteSpacesBySpacePostsByPostResponses];
1747
+ type GetSpacesBySpacePostsByPostData = {
1734
1748
  body?: never;
1735
1749
  path: {
1736
1750
  /**
@@ -1745,7 +1759,7 @@ type PostsShowData = {
1745
1759
  query?: never;
1746
1760
  url: '/spaces/{space}/posts/{post}';
1747
1761
  };
1748
- type PostsShowErrors = {
1762
+ type GetSpacesBySpacePostsByPostErrors = {
1749
1763
  /**
1750
1764
  * Unauthenticated
1751
1765
  */
@@ -1774,8 +1788,8 @@ type PostsShowErrors = {
1774
1788
  message: string;
1775
1789
  };
1776
1790
  };
1777
- type PostsShowError = PostsShowErrors[keyof PostsShowErrors];
1778
- type PostsShowResponses = {
1791
+ type GetSpacesBySpacePostsByPostError = GetSpacesBySpacePostsByPostErrors[keyof GetSpacesBySpacePostsByPostErrors];
1792
+ type GetSpacesBySpacePostsByPostResponses = {
1779
1793
  /**
1780
1794
  * `PostResource`
1781
1795
  */
@@ -1783,8 +1797,8 @@ type PostsShowResponses = {
1783
1797
  data: PostResource;
1784
1798
  };
1785
1799
  };
1786
- type PostsShowResponse = PostsShowResponses[keyof PostsShowResponses];
1787
- type PostsUpdateData = {
1800
+ type GetSpacesBySpacePostsByPostResponse = GetSpacesBySpacePostsByPostResponses[keyof GetSpacesBySpacePostsByPostResponses];
1801
+ type PutSpacesBySpacePostsByPostData = {
1788
1802
  body?: UpdatePostRequest;
1789
1803
  path: {
1790
1804
  /**
@@ -1799,7 +1813,7 @@ type PostsUpdateData = {
1799
1813
  query?: never;
1800
1814
  url: '/spaces/{space}/posts/{post}';
1801
1815
  };
1802
- type PostsUpdateErrors = {
1816
+ type PutSpacesBySpacePostsByPostErrors = {
1803
1817
  /**
1804
1818
  * Unauthenticated
1805
1819
  */
@@ -1843,8 +1857,8 @@ type PostsUpdateErrors = {
1843
1857
  };
1844
1858
  };
1845
1859
  };
1846
- type PostsUpdateError = PostsUpdateErrors[keyof PostsUpdateErrors];
1847
- type PostsUpdateResponses = {
1860
+ type PutSpacesBySpacePostsByPostError = PutSpacesBySpacePostsByPostErrors[keyof PutSpacesBySpacePostsByPostErrors];
1861
+ type PutSpacesBySpacePostsByPostResponses = {
1848
1862
  /**
1849
1863
  * `PostResource`
1850
1864
  */
@@ -1854,8 +1868,8 @@ type PostsUpdateResponses = {
1854
1868
  [key: string]: unknown;
1855
1869
  };
1856
1870
  };
1857
- type PostsUpdateResponse = PostsUpdateResponses[keyof PostsUpdateResponses];
1858
- type ClustersUpdateData = {
1871
+ type PutSpacesBySpacePostsByPostResponse = PutSpacesBySpacePostsByPostResponses[keyof PutSpacesBySpacePostsByPostResponses];
1872
+ type PutSpacesBySpaceClustersByClusterIdData = {
1859
1873
  body: UpdateClusterRequest;
1860
1874
  path: {
1861
1875
  /**
@@ -1867,7 +1881,7 @@ type ClustersUpdateData = {
1867
1881
  query?: never;
1868
1882
  url: '/spaces/{space}/clusters/{cluster_id}';
1869
1883
  };
1870
- type ClustersUpdateErrors = {
1884
+ type PutSpacesBySpaceClustersByClusterIdErrors = {
1871
1885
  /**
1872
1886
  * Unauthenticated
1873
1887
  */
@@ -1911,8 +1925,8 @@ type ClustersUpdateErrors = {
1911
1925
  };
1912
1926
  };
1913
1927
  };
1914
- type ClustersUpdateError = ClustersUpdateErrors[keyof ClustersUpdateErrors];
1915
- type ClustersUpdateResponses = {
1928
+ type PutSpacesBySpaceClustersByClusterIdError = PutSpacesBySpaceClustersByClusterIdErrors[keyof PutSpacesBySpaceClustersByClusterIdErrors];
1929
+ type PutSpacesBySpaceClustersByClusterIdResponses = {
1916
1930
  /**
1917
1931
  * Array of items
1918
1932
  */
@@ -1922,8 +1936,8 @@ type ClustersUpdateResponses = {
1922
1936
  [key: string]: unknown;
1923
1937
  };
1924
1938
  };
1925
- type ClustersUpdateResponse = ClustersUpdateResponses[keyof ClustersUpdateResponses];
1926
- type QueueIndexData = {
1939
+ type PutSpacesBySpaceClustersByClusterIdResponse = PutSpacesBySpaceClustersByClusterIdResponses[keyof PutSpacesBySpaceClustersByClusterIdResponses];
1940
+ type GetSpacesBySpaceQueueData = {
1927
1941
  body?: never;
1928
1942
  path: {
1929
1943
  /**
@@ -1934,7 +1948,7 @@ type QueueIndexData = {
1934
1948
  query?: never;
1935
1949
  url: '/spaces/{space}/queue';
1936
1950
  };
1937
- type QueueIndexErrors = {
1951
+ type GetSpacesBySpaceQueueErrors = {
1938
1952
  /**
1939
1953
  * Unauthenticated
1940
1954
  */
@@ -1963,8 +1977,8 @@ type QueueIndexErrors = {
1963
1977
  message: string;
1964
1978
  };
1965
1979
  };
1966
- type QueueIndexError = QueueIndexErrors[keyof QueueIndexErrors];
1967
- type QueueIndexResponses = {
1980
+ type GetSpacesBySpaceQueueError = GetSpacesBySpaceQueueErrors[keyof GetSpacesBySpaceQueueErrors];
1981
+ type GetSpacesBySpaceQueueResponses = {
1968
1982
  200: {
1969
1983
  data: Array<{
1970
1984
  datetime: string;
@@ -1975,8 +1989,8 @@ type QueueIndexResponses = {
1975
1989
  data: Array<string>;
1976
1990
  };
1977
1991
  };
1978
- type QueueIndexResponse = QueueIndexResponses[keyof QueueIndexResponses];
1979
- type SlotsIndexData = {
1992
+ type GetSpacesBySpaceQueueResponse = GetSpacesBySpaceQueueResponses[keyof GetSpacesBySpaceQueueResponses];
1993
+ type GetSpacesBySpaceSlotsData = {
1980
1994
  body?: never;
1981
1995
  path: {
1982
1996
  /**
@@ -1987,7 +2001,7 @@ type SlotsIndexData = {
1987
2001
  query?: never;
1988
2002
  url: '/spaces/{space}/slots';
1989
2003
  };
1990
- type SlotsIndexErrors = {
2004
+ type GetSpacesBySpaceSlotsErrors = {
1991
2005
  /**
1992
2006
  * Unauthenticated
1993
2007
  */
@@ -2016,8 +2030,8 @@ type SlotsIndexErrors = {
2016
2030
  message: string;
2017
2031
  };
2018
2032
  };
2019
- type SlotsIndexError = SlotsIndexErrors[keyof SlotsIndexErrors];
2020
- type SlotsIndexResponses = {
2033
+ type GetSpacesBySpaceSlotsError = GetSpacesBySpaceSlotsErrors[keyof GetSpacesBySpaceSlotsErrors];
2034
+ type GetSpacesBySpaceSlotsResponses = {
2021
2035
  /**
2022
2036
  * Array of `SlotResource`
2023
2037
  */
@@ -2025,8 +2039,8 @@ type SlotsIndexResponses = {
2025
2039
  data: Array<SlotResource>;
2026
2040
  };
2027
2041
  };
2028
- type SlotsIndexResponse = SlotsIndexResponses[keyof SlotsIndexResponses];
2029
- type SlotsStoreData = {
2042
+ type GetSpacesBySpaceSlotsResponse = GetSpacesBySpaceSlotsResponses[keyof GetSpacesBySpaceSlotsResponses];
2043
+ type PostSpacesBySpaceSlotsData = {
2030
2044
  body: StoreSlotRequest;
2031
2045
  path: {
2032
2046
  /**
@@ -2037,7 +2051,7 @@ type SlotsStoreData = {
2037
2051
  query?: never;
2038
2052
  url: '/spaces/{space}/slots';
2039
2053
  };
2040
- type SlotsStoreErrors = {
2054
+ type PostSpacesBySpaceSlotsErrors = {
2041
2055
  /**
2042
2056
  * Unauthenticated
2043
2057
  */
@@ -2081,14 +2095,14 @@ type SlotsStoreErrors = {
2081
2095
  };
2082
2096
  };
2083
2097
  };
2084
- type SlotsStoreError = SlotsStoreErrors[keyof SlotsStoreErrors];
2085
- type SlotsStoreResponses = {
2098
+ type PostSpacesBySpaceSlotsError = PostSpacesBySpaceSlotsErrors[keyof PostSpacesBySpaceSlotsErrors];
2099
+ type PostSpacesBySpaceSlotsResponses = {
2086
2100
  200: {
2087
2101
  [key: string]: unknown;
2088
2102
  };
2089
2103
  };
2090
- type SlotsStoreResponse = SlotsStoreResponses[keyof SlotsStoreResponses];
2091
- type SlotsDestroyData = {
2104
+ type PostSpacesBySpaceSlotsResponse = PostSpacesBySpaceSlotsResponses[keyof PostSpacesBySpaceSlotsResponses];
2105
+ type DeleteSpacesBySpaceSlotsBySlotData = {
2092
2106
  body?: never;
2093
2107
  path: {
2094
2108
  /**
@@ -2103,7 +2117,7 @@ type SlotsDestroyData = {
2103
2117
  query?: never;
2104
2118
  url: '/spaces/{space}/slots/{slot}';
2105
2119
  };
2106
- type SlotsDestroyErrors = {
2120
+ type DeleteSpacesBySpaceSlotsBySlotErrors = {
2107
2121
  /**
2108
2122
  * Unauthenticated
2109
2123
  */
@@ -2132,20 +2146,20 @@ type SlotsDestroyErrors = {
2132
2146
  message: string;
2133
2147
  };
2134
2148
  };
2135
- type SlotsDestroyError = SlotsDestroyErrors[keyof SlotsDestroyErrors];
2136
- type SlotsDestroyResponses = {
2149
+ type DeleteSpacesBySpaceSlotsBySlotError = DeleteSpacesBySpaceSlotsBySlotErrors[keyof DeleteSpacesBySpaceSlotsBySlotErrors];
2150
+ type DeleteSpacesBySpaceSlotsBySlotResponses = {
2137
2151
  200: {
2138
2152
  [key: string]: unknown;
2139
2153
  };
2140
2154
  };
2141
- type SlotsDestroyResponse = SlotsDestroyResponses[keyof SlotsDestroyResponses];
2142
- type SpacesIndexData = {
2155
+ type DeleteSpacesBySpaceSlotsBySlotResponse = DeleteSpacesBySpaceSlotsBySlotResponses[keyof DeleteSpacesBySpaceSlotsBySlotResponses];
2156
+ type GetSpacesData = {
2143
2157
  body?: never;
2144
2158
  path?: never;
2145
2159
  query?: never;
2146
2160
  url: '/spaces';
2147
2161
  };
2148
- type SpacesIndexErrors = {
2162
+ type GetSpacesErrors = {
2149
2163
  /**
2150
2164
  * Unauthenticated
2151
2165
  */
@@ -2156,8 +2170,8 @@ type SpacesIndexErrors = {
2156
2170
  message: string;
2157
2171
  };
2158
2172
  };
2159
- type SpacesIndexError = SpacesIndexErrors[keyof SpacesIndexErrors];
2160
- type SpacesIndexResponses = {
2173
+ type GetSpacesError = GetSpacesErrors[keyof GetSpacesErrors];
2174
+ type GetSpacesResponses = {
2161
2175
  /**
2162
2176
  * Array of `SpaceResource`
2163
2177
  */
@@ -2165,14 +2179,14 @@ type SpacesIndexResponses = {
2165
2179
  data: Array<SpaceResource>;
2166
2180
  };
2167
2181
  };
2168
- type SpacesIndexResponse = SpacesIndexResponses[keyof SpacesIndexResponses];
2169
- type SpacesStoreData = {
2182
+ type GetSpacesResponse = GetSpacesResponses[keyof GetSpacesResponses];
2183
+ type PostSpacesData = {
2170
2184
  body: StoreSpaceRequest;
2171
2185
  path?: never;
2172
2186
  query?: never;
2173
2187
  url: '/spaces';
2174
2188
  };
2175
- type SpacesStoreErrors = {
2189
+ type PostSpacesErrors = {
2176
2190
  /**
2177
2191
  * Unauthenticated
2178
2192
  */
@@ -2207,14 +2221,14 @@ type SpacesStoreErrors = {
2207
2221
  };
2208
2222
  };
2209
2223
  };
2210
- type SpacesStoreError = SpacesStoreErrors[keyof SpacesStoreErrors];
2211
- type SpacesStoreResponses = {
2224
+ type PostSpacesError = PostSpacesErrors[keyof PostSpacesErrors];
2225
+ type PostSpacesResponses = {
2212
2226
  200: {
2213
2227
  [key: string]: unknown;
2214
2228
  };
2215
2229
  };
2216
- type SpacesStoreResponse = SpacesStoreResponses[keyof SpacesStoreResponses];
2217
- type SpacesDestroyData = {
2230
+ type PostSpacesResponse = PostSpacesResponses[keyof PostSpacesResponses];
2231
+ type DeleteSpacesBySpaceData = {
2218
2232
  body?: never;
2219
2233
  path: {
2220
2234
  /**
@@ -2225,7 +2239,7 @@ type SpacesDestroyData = {
2225
2239
  query?: never;
2226
2240
  url: '/spaces/{space}';
2227
2241
  };
2228
- type SpacesDestroyErrors = {
2242
+ type DeleteSpacesBySpaceErrors = {
2229
2243
  /**
2230
2244
  * Unauthenticated
2231
2245
  */
@@ -2254,14 +2268,14 @@ type SpacesDestroyErrors = {
2254
2268
  message: string;
2255
2269
  };
2256
2270
  };
2257
- type SpacesDestroyError = SpacesDestroyErrors[keyof SpacesDestroyErrors];
2258
- type SpacesDestroyResponses = {
2271
+ type DeleteSpacesBySpaceError = DeleteSpacesBySpaceErrors[keyof DeleteSpacesBySpaceErrors];
2272
+ type DeleteSpacesBySpaceResponses = {
2259
2273
  200: {
2260
2274
  [key: string]: unknown;
2261
2275
  };
2262
2276
  };
2263
- type SpacesDestroyResponse = SpacesDestroyResponses[keyof SpacesDestroyResponses];
2264
- type SpacesShowData = {
2277
+ type DeleteSpacesBySpaceResponse = DeleteSpacesBySpaceResponses[keyof DeleteSpacesBySpaceResponses];
2278
+ type GetSpacesBySpaceData = {
2265
2279
  body?: never;
2266
2280
  path: {
2267
2281
  /**
@@ -2272,7 +2286,7 @@ type SpacesShowData = {
2272
2286
  query?: never;
2273
2287
  url: '/spaces/{space}';
2274
2288
  };
2275
- type SpacesShowErrors = {
2289
+ type GetSpacesBySpaceErrors = {
2276
2290
  /**
2277
2291
  * Unauthenticated
2278
2292
  */
@@ -2301,8 +2315,8 @@ type SpacesShowErrors = {
2301
2315
  message: string;
2302
2316
  };
2303
2317
  };
2304
- type SpacesShowError = SpacesShowErrors[keyof SpacesShowErrors];
2305
- type SpacesShowResponses = {
2318
+ type GetSpacesBySpaceError = GetSpacesBySpaceErrors[keyof GetSpacesBySpaceErrors];
2319
+ type GetSpacesBySpaceResponses = {
2306
2320
  /**
2307
2321
  * `SpaceResource`
2308
2322
  */
@@ -2310,8 +2324,8 @@ type SpacesShowResponses = {
2310
2324
  data: SpaceResource;
2311
2325
  };
2312
2326
  };
2313
- type SpacesShowResponse = SpacesShowResponses[keyof SpacesShowResponses];
2314
- type SpacesUpdateData = {
2327
+ type GetSpacesBySpaceResponse = GetSpacesBySpaceResponses[keyof GetSpacesBySpaceResponses];
2328
+ type PutSpacesBySpaceData = {
2315
2329
  body?: UpdateSpaceRequest;
2316
2330
  path: {
2317
2331
  /**
@@ -2322,7 +2336,7 @@ type SpacesUpdateData = {
2322
2336
  query?: never;
2323
2337
  url: '/spaces/{space}';
2324
2338
  };
2325
- type SpacesUpdateErrors = {
2339
+ type PutSpacesBySpaceErrors = {
2326
2340
  /**
2327
2341
  * Unauthenticated
2328
2342
  */
@@ -2366,8 +2380,8 @@ type SpacesUpdateErrors = {
2366
2380
  };
2367
2381
  };
2368
2382
  };
2369
- type SpacesUpdateError = SpacesUpdateErrors[keyof SpacesUpdateErrors];
2370
- type SpacesUpdateResponses = {
2383
+ type PutSpacesBySpaceError = PutSpacesBySpaceErrors[keyof PutSpacesBySpaceErrors];
2384
+ type PutSpacesBySpaceResponses = {
2371
2385
  /**
2372
2386
  * `SpaceResource`
2373
2387
  */
@@ -2377,14 +2391,14 @@ type SpacesUpdateResponses = {
2377
2391
  [key: string]: unknown;
2378
2392
  };
2379
2393
  };
2380
- type SpacesUpdateResponse = SpacesUpdateResponses[keyof SpacesUpdateResponses];
2381
- type SubscriptionShowData = {
2394
+ type PutSpacesBySpaceResponse = PutSpacesBySpaceResponses[keyof PutSpacesBySpaceResponses];
2395
+ type GetSubscriptionData = {
2382
2396
  body?: never;
2383
2397
  path?: never;
2384
2398
  query?: never;
2385
2399
  url: '/subscription';
2386
2400
  };
2387
- type SubscriptionShowErrors = {
2401
+ type GetSubscriptionErrors = {
2388
2402
  /**
2389
2403
  * Unauthenticated
2390
2404
  */
@@ -2395,8 +2409,8 @@ type SubscriptionShowErrors = {
2395
2409
  message: string;
2396
2410
  };
2397
2411
  };
2398
- type SubscriptionShowError = SubscriptionShowErrors[keyof SubscriptionShowErrors];
2399
- type SubscriptionShowResponses = {
2412
+ type GetSubscriptionError = GetSubscriptionErrors[keyof GetSubscriptionErrors];
2413
+ type GetSubscriptionResponses = {
2400
2414
  200: {
2401
2415
  plan: string;
2402
2416
  is_gifted: boolean;
@@ -2416,8 +2430,8 @@ type SubscriptionShowResponses = {
2416
2430
  ends_at: string;
2417
2431
  };
2418
2432
  };
2419
- type SubscriptionShowResponse = SubscriptionShowResponses[keyof SubscriptionShowResponses];
2420
- type WebhooksIndexData = {
2433
+ type GetSubscriptionResponse = GetSubscriptionResponses[keyof GetSubscriptionResponses];
2434
+ type GetSpacesBySpaceWebhooksData = {
2421
2435
  body?: never;
2422
2436
  path: {
2423
2437
  /**
@@ -2428,7 +2442,7 @@ type WebhooksIndexData = {
2428
2442
  query?: never;
2429
2443
  url: '/spaces/{space}/webhooks';
2430
2444
  };
2431
- type WebhooksIndexErrors = {
2445
+ type GetSpacesBySpaceWebhooksErrors = {
2432
2446
  /**
2433
2447
  * Unauthenticated
2434
2448
  */
@@ -2457,8 +2471,8 @@ type WebhooksIndexErrors = {
2457
2471
  message: string;
2458
2472
  };
2459
2473
  };
2460
- type WebhooksIndexError = WebhooksIndexErrors[keyof WebhooksIndexErrors];
2461
- type WebhooksIndexResponses = {
2474
+ type GetSpacesBySpaceWebhooksError = GetSpacesBySpaceWebhooksErrors[keyof GetSpacesBySpaceWebhooksErrors];
2475
+ type GetSpacesBySpaceWebhooksResponses = {
2462
2476
  /**
2463
2477
  * Array of `WebhookResource`
2464
2478
  */
@@ -2466,8 +2480,8 @@ type WebhooksIndexResponses = {
2466
2480
  data: Array<WebhookResource>;
2467
2481
  };
2468
2482
  };
2469
- type WebhooksIndexResponse = WebhooksIndexResponses[keyof WebhooksIndexResponses];
2470
- type WebhooksStoreData = {
2483
+ type GetSpacesBySpaceWebhooksResponse = GetSpacesBySpaceWebhooksResponses[keyof GetSpacesBySpaceWebhooksResponses];
2484
+ type PostSpacesBySpaceWebhooksData = {
2471
2485
  body: StoreWebhookRequest;
2472
2486
  path: {
2473
2487
  /**
@@ -2478,7 +2492,7 @@ type WebhooksStoreData = {
2478
2492
  query?: never;
2479
2493
  url: '/spaces/{space}/webhooks';
2480
2494
  };
2481
- type WebhooksStoreErrors = {
2495
+ type PostSpacesBySpaceWebhooksErrors = {
2482
2496
  /**
2483
2497
  * Unauthenticated
2484
2498
  */
@@ -2522,14 +2536,14 @@ type WebhooksStoreErrors = {
2522
2536
  };
2523
2537
  };
2524
2538
  };
2525
- type WebhooksStoreError = WebhooksStoreErrors[keyof WebhooksStoreErrors];
2526
- type WebhooksStoreResponses = {
2539
+ type PostSpacesBySpaceWebhooksError = PostSpacesBySpaceWebhooksErrors[keyof PostSpacesBySpaceWebhooksErrors];
2540
+ type PostSpacesBySpaceWebhooksResponses = {
2527
2541
  200: {
2528
2542
  [key: string]: unknown;
2529
2543
  };
2530
2544
  };
2531
- type WebhooksStoreResponse = WebhooksStoreResponses[keyof WebhooksStoreResponses];
2532
- type WebhooksDestroyData = {
2545
+ type PostSpacesBySpaceWebhooksResponse = PostSpacesBySpaceWebhooksResponses[keyof PostSpacesBySpaceWebhooksResponses];
2546
+ type DeleteSpacesBySpaceWebhooksByWebhookData = {
2533
2547
  body?: never;
2534
2548
  path: {
2535
2549
  /**
@@ -2544,7 +2558,7 @@ type WebhooksDestroyData = {
2544
2558
  query?: never;
2545
2559
  url: '/spaces/{space}/webhooks/{webhook}';
2546
2560
  };
2547
- type WebhooksDestroyErrors = {
2561
+ type DeleteSpacesBySpaceWebhooksByWebhookErrors = {
2548
2562
  /**
2549
2563
  * Unauthenticated
2550
2564
  */
@@ -2573,14 +2587,14 @@ type WebhooksDestroyErrors = {
2573
2587
  message: string;
2574
2588
  };
2575
2589
  };
2576
- type WebhooksDestroyError = WebhooksDestroyErrors[keyof WebhooksDestroyErrors];
2577
- type WebhooksDestroyResponses = {
2590
+ type DeleteSpacesBySpaceWebhooksByWebhookError = DeleteSpacesBySpaceWebhooksByWebhookErrors[keyof DeleteSpacesBySpaceWebhooksByWebhookErrors];
2591
+ type DeleteSpacesBySpaceWebhooksByWebhookResponses = {
2578
2592
  200: {
2579
2593
  [key: string]: unknown;
2580
2594
  };
2581
2595
  };
2582
- type WebhooksDestroyResponse = WebhooksDestroyResponses[keyof WebhooksDestroyResponses];
2583
- type WebhooksUpdateData = {
2596
+ type DeleteSpacesBySpaceWebhooksByWebhookResponse = DeleteSpacesBySpaceWebhooksByWebhookResponses[keyof DeleteSpacesBySpaceWebhooksByWebhookResponses];
2597
+ type PutSpacesBySpaceWebhooksByWebhookData = {
2584
2598
  body?: UpdateWebhookRequest;
2585
2599
  path: {
2586
2600
  /**
@@ -2595,7 +2609,7 @@ type WebhooksUpdateData = {
2595
2609
  query?: never;
2596
2610
  url: '/spaces/{space}/webhooks/{webhook}';
2597
2611
  };
2598
- type WebhooksUpdateErrors = {
2612
+ type PutSpacesBySpaceWebhooksByWebhookErrors = {
2599
2613
  /**
2600
2614
  * Unauthenticated
2601
2615
  */
@@ -2639,8 +2653,8 @@ type WebhooksUpdateErrors = {
2639
2653
  };
2640
2654
  };
2641
2655
  };
2642
- type WebhooksUpdateError = WebhooksUpdateErrors[keyof WebhooksUpdateErrors];
2643
- type WebhooksUpdateResponses = {
2656
+ type PutSpacesBySpaceWebhooksByWebhookError = PutSpacesBySpaceWebhooksByWebhookErrors[keyof PutSpacesBySpaceWebhooksByWebhookErrors];
2657
+ type PutSpacesBySpaceWebhooksByWebhookResponses = {
2644
2658
  /**
2645
2659
  * `WebhookResource`
2646
2660
  */
@@ -2650,9 +2664,271 @@ type WebhooksUpdateResponses = {
2650
2664
  [key: string]: unknown;
2651
2665
  };
2652
2666
  };
2653
- type WebhooksUpdateResponse = WebhooksUpdateResponses[keyof WebhooksUpdateResponses];
2667
+ type PutSpacesBySpaceWebhooksByWebhookResponse = PutSpacesBySpaceWebhooksByWebhookResponses[keyof PutSpacesBySpaceWebhooksByWebhookResponses];
2654
2668
 
2655
- declare const client: Client;
2669
+ type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown> = Options$1<TData, ThrowOnError, TResponse> & {
2670
+ /**
2671
+ * You can provide a client instance returned by `createClient()` instead of
2672
+ * individual options. This might be also useful if you want to implement a
2673
+ * custom client.
2674
+ */
2675
+ client?: Client;
2676
+ /**
2677
+ * You can pass arbitrary values through the `meta` object. This can be
2678
+ * used to access values that aren't defined as part of the SDK function.
2679
+ */
2680
+ meta?: Record<string, unknown>;
2681
+ };
2682
+ declare class HeyApiClient {
2683
+ protected client: Client;
2684
+ constructor(args?: {
2685
+ client?: Client;
2686
+ });
2687
+ }
2688
+ declare class HeyApiRegistry<T> {
2689
+ private readonly defaultKey;
2690
+ private readonly instances;
2691
+ get(key?: string): T;
2692
+ set(value: T, key?: string): void;
2693
+ }
2694
+ declare class Accounts extends HeyApiClient {
2695
+ /**
2696
+ * Disconnect multiple accounts
2697
+ *
2698
+ * Removes several social account connections in a single request and dispatches a webhook event for each.
2699
+ */
2700
+ deleteMany<ThrowOnError extends boolean = false>(options: Options<DeleteSpacesBySpaceAccountsData, ThrowOnError>): RequestResult<DeleteSpacesBySpaceAccountsResponses, DeleteSpacesBySpaceAccountsErrors, ThrowOnError, "fields">;
2701
+ /**
2702
+ * List accounts
2703
+ *
2704
+ * Returns all connected social accounts for the given space.
2705
+ */
2706
+ list<ThrowOnError extends boolean = false>(options: Options<GetSpacesBySpaceAccountsData, ThrowOnError>): RequestResult<GetSpacesBySpaceAccountsResponses, GetSpacesBySpaceAccountsErrors, ThrowOnError, "fields">;
2707
+ /**
2708
+ * Activate an account
2709
+ *
2710
+ * Activates the given account and deactivates all other accounts on the same platform within the space.
2711
+ */
2712
+ activate<ThrowOnError extends boolean = false>(options: Options<PatchSpacesBySpaceAccountsByAccountActivateData, ThrowOnError>): RequestResult<PatchSpacesBySpaceAccountsByAccountActivateResponses, PatchSpacesBySpaceAccountsByAccountActivateErrors, ThrowOnError, "fields">;
2713
+ /**
2714
+ * List Pinterest boards
2715
+ *
2716
+ * Returns the Pinterest boards available for the given account.
2717
+ */
2718
+ boards<ThrowOnError extends boolean = false>(options: Options<GetSpacesBySpaceAccountsByAccountBoardsData, ThrowOnError>): RequestResult<GetSpacesBySpaceAccountsByAccountBoardsResponses, GetSpacesBySpaceAccountsByAccountBoardsErrors, ThrowOnError, "fields">;
2719
+ /**
2720
+ * Disconnect an account
2721
+ *
2722
+ * Removes the social account connection and dispatches a webhook event.
2723
+ */
2724
+ delete<ThrowOnError extends boolean = false>(options: Options<DeleteSpacesBySpaceAccountsByAccountData, ThrowOnError>): RequestResult<DeleteSpacesBySpaceAccountsByAccountResponses, DeleteSpacesBySpaceAccountsByAccountErrors, ThrowOnError, "fields">;
2725
+ }
2726
+ declare class Tokens extends HeyApiClient {
2727
+ /**
2728
+ * Create an API token
2729
+ *
2730
+ * Generates a new personal access token for the authenticated user.
2731
+ */
2732
+ create<ThrowOnError extends boolean = false>(options: Options<PostApiTokensData, ThrowOnError>): RequestResult<PostApiTokensResponses, PostApiTokensErrors, ThrowOnError, "fields">;
2733
+ /**
2734
+ * Revoke an API token
2735
+ *
2736
+ * Deletes the specified personal access token.
2737
+ */
2738
+ delete<ThrowOnError extends boolean = false>(options: Options<DeleteApiTokensByTokenIdData, ThrowOnError>): RequestResult<DeleteApiTokensByTokenIdResponses, DeleteApiTokensByTokenIdErrors, ThrowOnError, "fields">;
2739
+ }
2740
+ declare class BioBlocks extends HeyApiClient {
2741
+ list<ThrowOnError extends boolean = false>(options: Options<GetSpacesBySpaceBioBlocksData, ThrowOnError>): RequestResult<GetSpacesBySpaceBioBlocksResponses, GetSpacesBySpaceBioBlocksErrors, ThrowOnError, "fields">;
2742
+ create<ThrowOnError extends boolean = false>(options: Options<PostSpacesBySpaceBioBlocksData, ThrowOnError>): RequestResult<PostSpacesBySpaceBioBlocksResponses, PostSpacesBySpaceBioBlocksErrors, ThrowOnError, "fields">;
2743
+ delete<ThrowOnError extends boolean = false>(options: Options<DeleteSpacesBySpaceBioBlocksByBlockData, ThrowOnError>): RequestResult<DeleteSpacesBySpaceBioBlocksByBlockResponses, DeleteSpacesBySpaceBioBlocksByBlockErrors, ThrowOnError, "fields">;
2744
+ update<ThrowOnError extends boolean = false>(options: Options<PutSpacesBySpaceBioBlocksByBlockData, ThrowOnError>): RequestResult<PutSpacesBySpaceBioBlocksByBlockResponses, PutSpacesBySpaceBioBlocksByBlockErrors, ThrowOnError, "fields">;
2745
+ reorder<ThrowOnError extends boolean = false>(options: Options<PostSpacesBySpaceBioBlocksByBlockReorderData, ThrowOnError>): RequestResult<PostSpacesBySpaceBioBlocksByBlockReorderResponses, PostSpacesBySpaceBioBlocksByBlockReorderErrors, ThrowOnError, "fields">;
2746
+ }
2747
+ declare class Bio extends HeyApiClient {
2748
+ get<ThrowOnError extends boolean = false>(options: Options<GetSpacesBySpaceBioData, ThrowOnError>): RequestResult<GetSpacesBySpaceBioResponses, GetSpacesBySpaceBioErrors, ThrowOnError, "fields">;
2749
+ create<ThrowOnError extends boolean = false>(options: Options<PostSpacesBySpaceBioData, ThrowOnError>): RequestResult<PostSpacesBySpaceBioResponses, PostSpacesBySpaceBioErrors, ThrowOnError, "fields">;
2750
+ update<ThrowOnError extends boolean = false>(options: Options<PutSpacesBySpaceBioData, ThrowOnError>): RequestResult<PutSpacesBySpaceBioResponses, PutSpacesBySpaceBioErrors, ThrowOnError, "fields">;
2751
+ uploadAvatar<ThrowOnError extends boolean = false>(options: Options<PostSpacesBySpaceBioAvatarData, ThrowOnError>): RequestResult<PostSpacesBySpaceBioAvatarResponses, PostSpacesBySpaceBioAvatarErrors, ThrowOnError, "fields">;
2752
+ }
2753
+ declare class Media extends HeyApiClient {
2754
+ /**
2755
+ * Upload a media file
2756
+ *
2757
+ * Accepts images (JPEG, PNG, WebP) and videos (MP4, QuickTime). Images are auto-optimized.
2758
+ */
2759
+ create<ThrowOnError extends boolean = false>(options: Options<PostMediaData, ThrowOnError>): RequestResult<PostMediaResponses, PostMediaErrors, ThrowOnError, "fields">;
2760
+ /**
2761
+ * Delete a media file
2762
+ *
2763
+ * Removes the media file from storage and deletes the record.
2764
+ */
2765
+ delete<ThrowOnError extends boolean = false>(options: Options<DeleteMediaByMediaData, ThrowOnError>): RequestResult<DeleteMediaByMediaResponses, DeleteMediaByMediaErrors, ThrowOnError, "fields">;
2766
+ }
2767
+ declare class Posts extends HeyApiClient {
2768
+ /**
2769
+ * List posts
2770
+ *
2771
+ * Returns paginated posts for the space. Filterable by status, account, and date range via query parameters.
2772
+ */
2773
+ list<ThrowOnError extends boolean = false>(options: Options<GetSpacesBySpacePostsData, ThrowOnError>): RequestResult<GetSpacesBySpacePostsResponses, GetSpacesBySpacePostsErrors, ThrowOnError, "fields">;
2774
+ /**
2775
+ * Create posts
2776
+ *
2777
+ * Creates one or more posts as a cluster. Supports draft, scheduled, or immediate publishing modes.
2778
+ */
2779
+ create<ThrowOnError extends boolean = false>(options: Options<PostSpacesBySpacePostsData, ThrowOnError>): RequestResult<PostSpacesBySpacePostsResponses, PostSpacesBySpacePostsErrors, ThrowOnError, "fields">;
2780
+ /**
2781
+ * Delete a post
2782
+ *
2783
+ * Permanently deletes the given post.
2784
+ */
2785
+ delete<ThrowOnError extends boolean = false>(options: Options<DeleteSpacesBySpacePostsByPostData, ThrowOnError>): RequestResult<DeleteSpacesBySpacePostsByPostResponses, DeleteSpacesBySpacePostsByPostErrors, ThrowOnError, "fields">;
2786
+ /**
2787
+ * Get a post
2788
+ *
2789
+ * Returns a single post with its account, children, and media.
2790
+ */
2791
+ get<ThrowOnError extends boolean = false>(options: Options<GetSpacesBySpacePostsByPostData, ThrowOnError>): RequestResult<GetSpacesBySpacePostsByPostResponses, GetSpacesBySpacePostsByPostErrors, ThrowOnError, "fields">;
2792
+ /**
2793
+ * Update a post
2794
+ *
2795
+ * Updates a single post's content, schedule, and media attachments.
2796
+ */
2797
+ update<ThrowOnError extends boolean = false>(options: Options<PutSpacesBySpacePostsByPostData, ThrowOnError>): RequestResult<PutSpacesBySpacePostsByPostResponses, PutSpacesBySpacePostsByPostErrors, ThrowOnError, "fields">;
2798
+ }
2799
+ declare class Clusters extends HeyApiClient {
2800
+ /**
2801
+ * Update a cluster of posts
2802
+ *
2803
+ * Updates all posts sharing the given cluster ID. Handles adding/removing accounts and re-scheduling.
2804
+ */
2805
+ update<ThrowOnError extends boolean = false>(options: Options<PutSpacesBySpaceClustersByClusterIdData, ThrowOnError>): RequestResult<PutSpacesBySpaceClustersByClusterIdResponses, PutSpacesBySpaceClustersByClusterIdErrors, ThrowOnError, "fields">;
2806
+ }
2807
+ declare class Queue extends HeyApiClient {
2808
+ /**
2809
+ * Get next available queue slots
2810
+ *
2811
+ * Returns up to 9 upcoming available time slots based on the space's scheduling configuration.
2812
+ */
2813
+ list<ThrowOnError extends boolean = false>(options: Options<GetSpacesBySpaceQueueData, ThrowOnError>): RequestResult<GetSpacesBySpaceQueueResponses, GetSpacesBySpaceQueueErrors, ThrowOnError, "fields">;
2814
+ }
2815
+ declare class Slots extends HeyApiClient {
2816
+ /**
2817
+ * List slots
2818
+ *
2819
+ * Returns all scheduling slots for the space, ordered by day and time.
2820
+ */
2821
+ list<ThrowOnError extends boolean = false>(options: Options<GetSpacesBySpaceSlotsData, ThrowOnError>): RequestResult<GetSpacesBySpaceSlotsResponses, GetSpacesBySpaceSlotsErrors, ThrowOnError, "fields">;
2822
+ /**
2823
+ * Create slots
2824
+ *
2825
+ * Creates scheduling slots for the given days of the week and time.
2826
+ */
2827
+ create<ThrowOnError extends boolean = false>(options: Options<PostSpacesBySpaceSlotsData, ThrowOnError>): RequestResult<PostSpacesBySpaceSlotsResponses, PostSpacesBySpaceSlotsErrors, ThrowOnError, "fields">;
2828
+ /**
2829
+ * Delete a slot
2830
+ *
2831
+ * Removes a scheduling slot from the space.
2832
+ */
2833
+ delete<ThrowOnError extends boolean = false>(options: Options<DeleteSpacesBySpaceSlotsBySlotData, ThrowOnError>): RequestResult<DeleteSpacesBySpaceSlotsBySlotResponses, DeleteSpacesBySpaceSlotsBySlotErrors, ThrowOnError, "fields">;
2834
+ }
2835
+ declare class Spaces extends HeyApiClient {
2836
+ /**
2837
+ * List spaces
2838
+ *
2839
+ * Returns all spaces belonging to the authenticated user, ordered by most recent.
2840
+ */
2841
+ list<ThrowOnError extends boolean = false>(options?: Options<GetSpacesData, ThrowOnError>): RequestResult<GetSpacesResponses, GetSpacesErrors, ThrowOnError, "fields">;
2842
+ /**
2843
+ * Create a space
2844
+ *
2845
+ * Creates a new space for the authenticated user.
2846
+ */
2847
+ create<ThrowOnError extends boolean = false>(options: Options<PostSpacesData, ThrowOnError>): RequestResult<PostSpacesResponses, PostSpacesErrors, ThrowOnError, "fields">;
2848
+ /**
2849
+ * Delete a space
2850
+ *
2851
+ * Permanently deletes the given space and all associated data.
2852
+ */
2853
+ delete<ThrowOnError extends boolean = false>(options: Options<DeleteSpacesBySpaceData, ThrowOnError>): RequestResult<DeleteSpacesBySpaceResponses, DeleteSpacesBySpaceErrors, ThrowOnError, "fields">;
2854
+ /**
2855
+ * Get a space
2856
+ *
2857
+ * Returns a single space by ID.
2858
+ */
2859
+ get<ThrowOnError extends boolean = false>(options: Options<GetSpacesBySpaceData, ThrowOnError>): RequestResult<GetSpacesBySpaceResponses, GetSpacesBySpaceErrors, ThrowOnError, "fields">;
2860
+ /**
2861
+ * Update a space
2862
+ *
2863
+ * Updates the given space's settings.
2864
+ */
2865
+ update<ThrowOnError extends boolean = false>(options: Options<PutSpacesBySpaceData, ThrowOnError>): RequestResult<PutSpacesBySpaceResponses, PutSpacesBySpaceErrors, ThrowOnError, "fields">;
2866
+ }
2867
+ declare class Subscription extends HeyApiClient {
2868
+ /**
2869
+ * Get subscription details
2870
+ *
2871
+ * Returns the current plan, usage limits, trial status, and cancellation state.
2872
+ */
2873
+ get<ThrowOnError extends boolean = false>(options?: Options<GetSubscriptionData, ThrowOnError>): RequestResult<GetSubscriptionResponses, GetSubscriptionErrors, ThrowOnError, "fields">;
2874
+ }
2875
+ declare class Webhooks extends HeyApiClient {
2876
+ /**
2877
+ * List webhooks
2878
+ *
2879
+ * Returns all webhooks configured for the given space.
2880
+ */
2881
+ list<ThrowOnError extends boolean = false>(options: Options<GetSpacesBySpaceWebhooksData, ThrowOnError>): RequestResult<GetSpacesBySpaceWebhooksResponses, GetSpacesBySpaceWebhooksErrors, ThrowOnError, "fields">;
2882
+ /**
2883
+ * Create a webhook
2884
+ *
2885
+ * Registers a new webhook endpoint with an auto-generated signing secret.
2886
+ */
2887
+ create<ThrowOnError extends boolean = false>(options: Options<PostSpacesBySpaceWebhooksData, ThrowOnError>): RequestResult<PostSpacesBySpaceWebhooksResponses, PostSpacesBySpaceWebhooksErrors, ThrowOnError, "fields">;
2888
+ /**
2889
+ * Delete a webhook
2890
+ *
2891
+ * Permanently removes the webhook endpoint.
2892
+ */
2893
+ delete<ThrowOnError extends boolean = false>(options: Options<DeleteSpacesBySpaceWebhooksByWebhookData, ThrowOnError>): RequestResult<DeleteSpacesBySpaceWebhooksByWebhookResponses, DeleteSpacesBySpaceWebhooksByWebhookErrors, ThrowOnError, "fields">;
2894
+ /**
2895
+ * Update a webhook
2896
+ *
2897
+ * Updates the webhook's URL, events, or active status.
2898
+ */
2899
+ update<ThrowOnError extends boolean = false>(options: Options<PutSpacesBySpaceWebhooksByWebhookData, ThrowOnError>): RequestResult<PutSpacesBySpaceWebhooksByWebhookResponses, PutSpacesBySpaceWebhooksByWebhookErrors, ThrowOnError, "fields">;
2900
+ }
2901
+ declare class ZilfuClient extends HeyApiClient {
2902
+ static readonly __registry: HeyApiRegistry<ZilfuClient>;
2903
+ constructor(args?: {
2904
+ client?: Client;
2905
+ key?: string;
2906
+ });
2907
+ private _accounts?;
2908
+ get accounts(): Accounts;
2909
+ private _tokens?;
2910
+ get tokens(): Tokens;
2911
+ private _bioBlocks?;
2912
+ get bioBlocks(): BioBlocks;
2913
+ private _bio?;
2914
+ get bio(): Bio;
2915
+ private _media?;
2916
+ get media(): Media;
2917
+ private _posts?;
2918
+ get posts(): Posts;
2919
+ private _clusters?;
2920
+ get clusters(): Clusters;
2921
+ private _queue?;
2922
+ get queue(): Queue;
2923
+ private _slots?;
2924
+ get slots(): Slots;
2925
+ private _spaces?;
2926
+ get spaces(): Spaces;
2927
+ private _subscription?;
2928
+ get subscription(): Subscription;
2929
+ private _webhooks?;
2930
+ get webhooks(): Webhooks;
2931
+ }
2656
2932
 
2657
2933
  interface CreateClientOptions {
2658
2934
  /**
@@ -2672,177 +2948,15 @@ interface CreateClientOptions {
2672
2948
  fetch?: typeof fetch;
2673
2949
  }
2674
2950
  /**
2675
- * Configures the shared SDK client. Call once before invoking any
2676
- * generated SDK method.
2951
+ * Configures the SDK and returns a ready-to-use client instance.
2952
+ *
2953
+ * @example
2954
+ * const api = createZilfuClient({ baseUrl, token });
2955
+ * const { data } = await api.spaces.list();
2956
+ * await api.posts.create({ path: { space: '1' }, body: {...} });
2677
2957
  */
2678
- declare function createZilfuClient(options: CreateClientOptions): void;
2958
+ declare function createZilfuClient(options: CreateClientOptions): ZilfuClient;
2679
2959
 
2680
- type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = Options$1<TData, ThrowOnError> & {
2681
- /**
2682
- * You can provide a client instance returned by `createClient()` instead of
2683
- * individual options. This might be also useful if you want to implement a
2684
- * custom client.
2685
- */
2686
- client?: Client;
2687
- /**
2688
- * You can pass arbitrary values through the `meta` object. This can be
2689
- * used to access values that aren't defined as part of the SDK function.
2690
- */
2691
- meta?: Record<string, unknown>;
2692
- };
2693
- /**
2694
- * Disconnect multiple accounts
2695
- * Removes several social account connections in a single request and dispatches a webhook event for each.
2696
- */
2697
- declare const accountsDestroyMany: <ThrowOnError extends boolean = false>(options: Options<AccountsDestroyManyData, ThrowOnError>) => RequestResult<AccountsDestroyManyResponses, AccountsDestroyManyErrors, ThrowOnError, "fields">;
2698
- /**
2699
- * List accounts
2700
- * Returns all connected social accounts for the given space.
2701
- */
2702
- declare const accountsIndex: <ThrowOnError extends boolean = false>(options: Options<AccountsIndexData, ThrowOnError>) => RequestResult<AccountsIndexResponses, AccountsIndexErrors, ThrowOnError, "fields">;
2703
- /**
2704
- * Activate an account
2705
- * Activates the given account and deactivates all other accounts on the same platform within the space.
2706
- */
2707
- declare const accountsActivate: <ThrowOnError extends boolean = false>(options: Options<AccountsActivateData, ThrowOnError>) => RequestResult<AccountsActivateResponses, AccountsActivateErrors, ThrowOnError, "fields">;
2708
- /**
2709
- * List Pinterest boards
2710
- * Returns the Pinterest boards available for the given account.
2711
- */
2712
- declare const accountsBoards: <ThrowOnError extends boolean = false>(options: Options<AccountsBoardsData, ThrowOnError>) => RequestResult<AccountsBoardsResponses, AccountsBoardsErrors, ThrowOnError, "fields">;
2713
- /**
2714
- * Disconnect an account
2715
- * Removes the social account connection and dispatches a webhook event.
2716
- */
2717
- declare const accountsDestroy: <ThrowOnError extends boolean = false>(options: Options<AccountsDestroyData, ThrowOnError>) => RequestResult<AccountsDestroyResponses, AccountsDestroyErrors, ThrowOnError, "fields">;
2718
- /**
2719
- * Create an API token
2720
- * Generates a new personal access token for the authenticated user.
2721
- */
2722
- declare const apiTokensStore: <ThrowOnError extends boolean = false>(options: Options<ApiTokensStoreData, ThrowOnError>) => RequestResult<ApiTokensStoreResponses, ApiTokensStoreErrors, ThrowOnError, "fields">;
2723
- /**
2724
- * Revoke an API token
2725
- * Deletes the specified personal access token.
2726
- */
2727
- declare const apiTokensDestroy: <ThrowOnError extends boolean = false>(options: Options<ApiTokensDestroyData, ThrowOnError>) => RequestResult<ApiTokensDestroyResponses, ApiTokensDestroyErrors, ThrowOnError, "fields">;
2728
- declare const bioBlocksIndex: <ThrowOnError extends boolean = false>(options: Options<BioBlocksIndexData, ThrowOnError>) => RequestResult<BioBlocksIndexResponses, BioBlocksIndexErrors, ThrowOnError, "fields">;
2729
- declare const bioBlocksStore: <ThrowOnError extends boolean = false>(options: Options<BioBlocksStoreData, ThrowOnError>) => RequestResult<BioBlocksStoreResponses, BioBlocksStoreErrors, ThrowOnError, "fields">;
2730
- declare const bioBlocksDestroy: <ThrowOnError extends boolean = false>(options: Options<BioBlocksDestroyData, ThrowOnError>) => RequestResult<BioBlocksDestroyResponses, BioBlocksDestroyErrors, ThrowOnError, "fields">;
2731
- declare const bioBlocksUpdate: <ThrowOnError extends boolean = false>(options: Options<BioBlocksUpdateData, ThrowOnError>) => RequestResult<BioBlocksUpdateResponses, BioBlocksUpdateErrors, ThrowOnError, "fields">;
2732
- declare const bioBlocksReorder: <ThrowOnError extends boolean = false>(options: Options<BioBlocksReorderData, ThrowOnError>) => RequestResult<BioBlocksReorderResponses, BioBlocksReorderErrors, ThrowOnError, "fields">;
2733
- declare const bioShow: <ThrowOnError extends boolean = false>(options: Options<BioShowData, ThrowOnError>) => RequestResult<BioShowResponses, BioShowErrors, ThrowOnError, "fields">;
2734
- declare const bioStore: <ThrowOnError extends boolean = false>(options: Options<BioStoreData, ThrowOnError>) => RequestResult<BioStoreResponses, BioStoreErrors, ThrowOnError, "fields">;
2735
- declare const bioUpdate: <ThrowOnError extends boolean = false>(options: Options<BioUpdateData, ThrowOnError>) => RequestResult<BioUpdateResponses, BioUpdateErrors, ThrowOnError, "fields">;
2736
- declare const bioAvatar: <ThrowOnError extends boolean = false>(options: Options<BioAvatarData, ThrowOnError>) => RequestResult<BioAvatarResponses, BioAvatarErrors, ThrowOnError, "fields">;
2737
- /**
2738
- * Upload a media file
2739
- * Accepts images (JPEG, PNG, WebP) and videos (MP4, QuickTime). Images are auto-optimized.
2740
- */
2741
- declare const mediaStore: <ThrowOnError extends boolean = false>(options: Options<MediaStoreData, ThrowOnError>) => RequestResult<MediaStoreResponses, MediaStoreErrors, ThrowOnError, "fields">;
2742
- /**
2743
- * Delete a media file
2744
- * Removes the media file from storage and deletes the record.
2745
- */
2746
- declare const mediaDestroy: <ThrowOnError extends boolean = false>(options: Options<MediaDestroyData, ThrowOnError>) => RequestResult<MediaDestroyResponses, MediaDestroyErrors, ThrowOnError, "fields">;
2747
- /**
2748
- * List posts
2749
- * Returns paginated posts for the space. Filterable by status, account, and date range via query parameters.
2750
- */
2751
- declare const postsIndex: <ThrowOnError extends boolean = false>(options: Options<PostsIndexData, ThrowOnError>) => RequestResult<PostsIndexResponses, PostsIndexErrors, ThrowOnError, "fields">;
2752
- /**
2753
- * Create posts
2754
- * Creates one or more posts as a cluster. Supports draft, scheduled, or immediate publishing modes.
2755
- */
2756
- declare const postsStore: <ThrowOnError extends boolean = false>(options: Options<PostsStoreData, ThrowOnError>) => RequestResult<PostsStoreResponses, PostsStoreErrors, ThrowOnError, "fields">;
2757
- /**
2758
- * Delete a post
2759
- * Permanently deletes the given post.
2760
- */
2761
- declare const postsDestroy: <ThrowOnError extends boolean = false>(options: Options<PostsDestroyData, ThrowOnError>) => RequestResult<PostsDestroyResponses, PostsDestroyErrors, ThrowOnError, "fields">;
2762
- /**
2763
- * Get a post
2764
- * Returns a single post with its account, children, and media.
2765
- */
2766
- declare const postsShow: <ThrowOnError extends boolean = false>(options: Options<PostsShowData, ThrowOnError>) => RequestResult<PostsShowResponses, PostsShowErrors, ThrowOnError, "fields">;
2767
- /**
2768
- * Update a post
2769
- * Updates a single post's content, schedule, and media attachments.
2770
- */
2771
- declare const postsUpdate: <ThrowOnError extends boolean = false>(options: Options<PostsUpdateData, ThrowOnError>) => RequestResult<PostsUpdateResponses, PostsUpdateErrors, ThrowOnError, "fields">;
2772
- /**
2773
- * Update a cluster of posts
2774
- * Updates all posts sharing the given cluster ID. Handles adding/removing accounts and re-scheduling.
2775
- */
2776
- declare const clustersUpdate: <ThrowOnError extends boolean = false>(options: Options<ClustersUpdateData, ThrowOnError>) => RequestResult<ClustersUpdateResponses, ClustersUpdateErrors, ThrowOnError, "fields">;
2777
- /**
2778
- * Get next available queue slots
2779
- * Returns up to 9 upcoming available time slots based on the space's scheduling configuration.
2780
- */
2781
- declare const queueIndex: <ThrowOnError extends boolean = false>(options: Options<QueueIndexData, ThrowOnError>) => RequestResult<QueueIndexResponses, QueueIndexErrors, ThrowOnError, "fields">;
2782
- /**
2783
- * List slots
2784
- * Returns all scheduling slots for the space, ordered by day and time.
2785
- */
2786
- declare const slotsIndex: <ThrowOnError extends boolean = false>(options: Options<SlotsIndexData, ThrowOnError>) => RequestResult<SlotsIndexResponses, SlotsIndexErrors, ThrowOnError, "fields">;
2787
- /**
2788
- * Create slots
2789
- * Creates scheduling slots for the given days of the week and time.
2790
- */
2791
- declare const slotsStore: <ThrowOnError extends boolean = false>(options: Options<SlotsStoreData, ThrowOnError>) => RequestResult<SlotsStoreResponses, SlotsStoreErrors, ThrowOnError, "fields">;
2792
- /**
2793
- * Delete a slot
2794
- * Removes a scheduling slot from the space.
2795
- */
2796
- declare const slotsDestroy: <ThrowOnError extends boolean = false>(options: Options<SlotsDestroyData, ThrowOnError>) => RequestResult<SlotsDestroyResponses, SlotsDestroyErrors, ThrowOnError, "fields">;
2797
- /**
2798
- * List spaces
2799
- * Returns all spaces belonging to the authenticated user, ordered by most recent.
2800
- */
2801
- declare const spacesIndex: <ThrowOnError extends boolean = false>(options?: Options<SpacesIndexData, ThrowOnError>) => RequestResult<SpacesIndexResponses, SpacesIndexErrors, ThrowOnError, "fields">;
2802
- /**
2803
- * Create a space
2804
- * Creates a new space for the authenticated user.
2805
- */
2806
- declare const spacesStore: <ThrowOnError extends boolean = false>(options: Options<SpacesStoreData, ThrowOnError>) => RequestResult<SpacesStoreResponses, SpacesStoreErrors, ThrowOnError, "fields">;
2807
- /**
2808
- * Delete a space
2809
- * Permanently deletes the given space and all associated data.
2810
- */
2811
- declare const spacesDestroy: <ThrowOnError extends boolean = false>(options: Options<SpacesDestroyData, ThrowOnError>) => RequestResult<SpacesDestroyResponses, SpacesDestroyErrors, ThrowOnError, "fields">;
2812
- /**
2813
- * Get a space
2814
- * Returns a single space by ID.
2815
- */
2816
- declare const spacesShow: <ThrowOnError extends boolean = false>(options: Options<SpacesShowData, ThrowOnError>) => RequestResult<SpacesShowResponses, SpacesShowErrors, ThrowOnError, "fields">;
2817
- /**
2818
- * Update a space
2819
- * Updates the given space's settings.
2820
- */
2821
- declare const spacesUpdate: <ThrowOnError extends boolean = false>(options: Options<SpacesUpdateData, ThrowOnError>) => RequestResult<SpacesUpdateResponses, SpacesUpdateErrors, ThrowOnError, "fields">;
2822
- /**
2823
- * Get subscription details
2824
- * Returns the current plan, usage limits, trial status, and cancellation state.
2825
- */
2826
- declare const subscriptionShow: <ThrowOnError extends boolean = false>(options?: Options<SubscriptionShowData, ThrowOnError>) => RequestResult<SubscriptionShowResponses, SubscriptionShowErrors, ThrowOnError, "fields">;
2827
- /**
2828
- * List webhooks
2829
- * Returns all webhooks configured for the given space.
2830
- */
2831
- declare const webhooksIndex: <ThrowOnError extends boolean = false>(options: Options<WebhooksIndexData, ThrowOnError>) => RequestResult<WebhooksIndexResponses, WebhooksIndexErrors, ThrowOnError, "fields">;
2832
- /**
2833
- * Create a webhook
2834
- * Registers a new webhook endpoint with an auto-generated signing secret.
2835
- */
2836
- declare const webhooksStore: <ThrowOnError extends boolean = false>(options: Options<WebhooksStoreData, ThrowOnError>) => RequestResult<WebhooksStoreResponses, WebhooksStoreErrors, ThrowOnError, "fields">;
2837
- /**
2838
- * Delete a webhook
2839
- * Permanently removes the webhook endpoint.
2840
- */
2841
- declare const webhooksDestroy: <ThrowOnError extends boolean = false>(options: Options<WebhooksDestroyData, ThrowOnError>) => RequestResult<WebhooksDestroyResponses, WebhooksDestroyErrors, ThrowOnError, "fields">;
2842
- /**
2843
- * Update a webhook
2844
- * Updates the webhook's URL, events, or active status.
2845
- */
2846
- declare const webhooksUpdate: <ThrowOnError extends boolean = false>(options: Options<WebhooksUpdateData, ThrowOnError>) => RequestResult<WebhooksUpdateResponses, WebhooksUpdateErrors, ThrowOnError, "fields">;
2960
+ declare const client: Client;
2847
2961
 
2848
- export { type AccountResource, type AccountsActivateData, type AccountsActivateError, type AccountsActivateErrors, type AccountsActivateResponse, type AccountsActivateResponses, type AccountsBoardsData, type AccountsBoardsError, type AccountsBoardsErrors, type AccountsBoardsResponse, type AccountsBoardsResponses, type AccountsDestroyData, type AccountsDestroyError, type AccountsDestroyErrors, type AccountsDestroyManyData, type AccountsDestroyManyError, type AccountsDestroyManyErrors, type AccountsDestroyManyResponse, type AccountsDestroyManyResponses, type AccountsDestroyResponse, type AccountsDestroyResponses, type AccountsIndexData, type AccountsIndexError, type AccountsIndexErrors, type AccountsIndexResponse, type AccountsIndexResponses, type ApiTokensDestroyData, type ApiTokensDestroyError, type ApiTokensDestroyErrors, type ApiTokensDestroyResponses, type ApiTokensStoreData, type ApiTokensStoreError, type ApiTokensStoreErrors, type ApiTokensStoreResponses, type BioAvatarData, type BioAvatarError, type BioAvatarErrors, type BioAvatarResponse, type BioAvatarResponses, type BioBlockResource, type BioBlocksDestroyData, type BioBlocksDestroyError, type BioBlocksDestroyErrors, type BioBlocksDestroyResponse, type BioBlocksDestroyResponses, type BioBlocksIndexData, type BioBlocksIndexError, type BioBlocksIndexErrors, type BioBlocksIndexResponse, type BioBlocksIndexResponses, type BioBlocksReorderData, type BioBlocksReorderError, type BioBlocksReorderErrors, type BioBlocksReorderResponse, type BioBlocksReorderResponses, type BioBlocksStoreData, type BioBlocksStoreError, type BioBlocksStoreErrors, type BioBlocksStoreResponse, type BioBlocksStoreResponses, type BioBlocksUpdateData, type BioBlocksUpdateError, type BioBlocksUpdateErrors, type BioBlocksUpdateResponse, type BioBlocksUpdateResponses, type BioPageResource, type BioShowData, type BioShowError, type BioShowErrors, type BioShowResponse, type BioShowResponses, type BioStoreData, type BioStoreError, type BioStoreErrors, type BioStoreResponse, type BioStoreResponses, type BioUpdateData, type BioUpdateError, type BioUpdateErrors, type BioUpdateResponse, type BioUpdateResponses, type ClientOptions, type ClustersUpdateData, type ClustersUpdateError, type ClustersUpdateErrors, type ClustersUpdateResponse, type ClustersUpdateResponses, type CreateClientOptions, type MediaDestroyData, type MediaDestroyError, type MediaDestroyErrors, type MediaDestroyResponse, type MediaDestroyResponses, type MediaResource, type MediaStoreData, type MediaStoreError, type MediaStoreErrors, type MediaStoreResponse, type MediaStoreResponses, type Options, type PostResource, type PostStatus, type PostsDestroyData, type PostsDestroyError, type PostsDestroyErrors, type PostsDestroyResponse, type PostsDestroyResponses, type PostsIndexData, type PostsIndexError, type PostsIndexErrors, type PostsIndexResponse, type PostsIndexResponses, type PostsShowData, type PostsShowError, type PostsShowErrors, type PostsShowResponse, type PostsShowResponses, type PostsStoreData, type PostsStoreError, type PostsStoreErrors, type PostsStoreResponse, type PostsStoreResponses, type PostsUpdateData, type PostsUpdateError, type PostsUpdateErrors, type PostsUpdateResponse, type PostsUpdateResponses, type QueueIndexData, type QueueIndexError, type QueueIndexErrors, type QueueIndexResponse, type QueueIndexResponses, type SlotResource, type SlotsDestroyData, type SlotsDestroyError, type SlotsDestroyErrors, type SlotsDestroyResponse, type SlotsDestroyResponses, type SlotsIndexData, type SlotsIndexError, type SlotsIndexErrors, type SlotsIndexResponse, type SlotsIndexResponses, type SlotsStoreData, type SlotsStoreError, type SlotsStoreErrors, type SlotsStoreResponse, type SlotsStoreResponses, type SpaceResource, type SpacesDestroyData, type SpacesDestroyError, type SpacesDestroyErrors, type SpacesDestroyResponse, type SpacesDestroyResponses, type SpacesIndexData, type SpacesIndexError, type SpacesIndexErrors, type SpacesIndexResponse, type SpacesIndexResponses, type SpacesShowData, type SpacesShowError, type SpacesShowErrors, type SpacesShowResponse, type SpacesShowResponses, type SpacesStoreData, type SpacesStoreError, type SpacesStoreErrors, type SpacesStoreResponse, type SpacesStoreResponses, type SpacesUpdateData, type SpacesUpdateError, type SpacesUpdateErrors, type SpacesUpdateResponse, type SpacesUpdateResponses, type StoreBioBlockRequest, type StoreBioPageRequest, type StorePostRequest, type StoreSlotRequest, type StoreSpaceRequest, type StoreWebhookRequest, type SubscriptionShowData, type SubscriptionShowError, type SubscriptionShowErrors, type SubscriptionShowResponse, type SubscriptionShowResponses, type UpdateBioBlockRequest, type UpdateBioPageRequest, type UpdateClusterRequest, type UpdatePostRequest, type UpdateSpaceRequest, type UpdateWebhookRequest, type WebhookResource, type WebhooksDestroyData, type WebhooksDestroyError, type WebhooksDestroyErrors, type WebhooksDestroyResponse, type WebhooksDestroyResponses, type WebhooksIndexData, type WebhooksIndexError, type WebhooksIndexErrors, type WebhooksIndexResponse, type WebhooksIndexResponses, type WebhooksStoreData, type WebhooksStoreError, type WebhooksStoreErrors, type WebhooksStoreResponse, type WebhooksStoreResponses, type WebhooksUpdateData, type WebhooksUpdateError, type WebhooksUpdateErrors, type WebhooksUpdateResponse, type WebhooksUpdateResponses, accountsActivate, accountsBoards, accountsDestroy, accountsDestroyMany, accountsIndex, apiTokensDestroy, apiTokensStore, bioAvatar, bioBlocksDestroy, bioBlocksIndex, bioBlocksReorder, bioBlocksStore, bioBlocksUpdate, bioShow, bioStore, bioUpdate, client, clustersUpdate, createZilfuClient, mediaDestroy, mediaStore, postsDestroy, postsIndex, postsShow, postsStore, postsUpdate, queueIndex, slotsDestroy, slotsIndex, slotsStore, spacesDestroy, spacesIndex, spacesShow, spacesStore, spacesUpdate, subscriptionShow, webhooksDestroy, webhooksIndex, webhooksStore, webhooksUpdate };
2962
+ export { type AccountResource, Accounts, Bio, type BioBlockResource, BioBlocks, type BioPageResource, type ClientOptions, Clusters, type CreateClientOptions, type DeleteApiTokensByTokenIdData, type DeleteApiTokensByTokenIdError, type DeleteApiTokensByTokenIdErrors, type DeleteApiTokensByTokenIdResponses, type DeleteMediaByMediaData, type DeleteMediaByMediaError, type DeleteMediaByMediaErrors, type DeleteMediaByMediaResponse, type DeleteMediaByMediaResponses, type DeleteSpacesBySpaceAccountsByAccountData, type DeleteSpacesBySpaceAccountsByAccountError, type DeleteSpacesBySpaceAccountsByAccountErrors, type DeleteSpacesBySpaceAccountsByAccountResponse, type DeleteSpacesBySpaceAccountsByAccountResponses, type DeleteSpacesBySpaceAccountsData, type DeleteSpacesBySpaceAccountsError, type DeleteSpacesBySpaceAccountsErrors, type DeleteSpacesBySpaceAccountsResponse, type DeleteSpacesBySpaceAccountsResponses, type DeleteSpacesBySpaceBioBlocksByBlockData, type DeleteSpacesBySpaceBioBlocksByBlockError, type DeleteSpacesBySpaceBioBlocksByBlockErrors, type DeleteSpacesBySpaceBioBlocksByBlockResponse, type DeleteSpacesBySpaceBioBlocksByBlockResponses, type DeleteSpacesBySpaceData, type DeleteSpacesBySpaceError, type DeleteSpacesBySpaceErrors, type DeleteSpacesBySpacePostsByPostData, type DeleteSpacesBySpacePostsByPostError, type DeleteSpacesBySpacePostsByPostErrors, type DeleteSpacesBySpacePostsByPostResponse, type DeleteSpacesBySpacePostsByPostResponses, type DeleteSpacesBySpaceResponse, type DeleteSpacesBySpaceResponses, type DeleteSpacesBySpaceSlotsBySlotData, type DeleteSpacesBySpaceSlotsBySlotError, type DeleteSpacesBySpaceSlotsBySlotErrors, type DeleteSpacesBySpaceSlotsBySlotResponse, type DeleteSpacesBySpaceSlotsBySlotResponses, type DeleteSpacesBySpaceWebhooksByWebhookData, type DeleteSpacesBySpaceWebhooksByWebhookError, type DeleteSpacesBySpaceWebhooksByWebhookErrors, type DeleteSpacesBySpaceWebhooksByWebhookResponse, type DeleteSpacesBySpaceWebhooksByWebhookResponses, type GetSpacesBySpaceAccountsByAccountBoardsData, type GetSpacesBySpaceAccountsByAccountBoardsError, type GetSpacesBySpaceAccountsByAccountBoardsErrors, type GetSpacesBySpaceAccountsByAccountBoardsResponse, type GetSpacesBySpaceAccountsByAccountBoardsResponses, type GetSpacesBySpaceAccountsData, type GetSpacesBySpaceAccountsError, type GetSpacesBySpaceAccountsErrors, type GetSpacesBySpaceAccountsResponse, type GetSpacesBySpaceAccountsResponses, type GetSpacesBySpaceBioBlocksData, type GetSpacesBySpaceBioBlocksError, type GetSpacesBySpaceBioBlocksErrors, type GetSpacesBySpaceBioBlocksResponse, type GetSpacesBySpaceBioBlocksResponses, type GetSpacesBySpaceBioData, type GetSpacesBySpaceBioError, type GetSpacesBySpaceBioErrors, type GetSpacesBySpaceBioResponse, type GetSpacesBySpaceBioResponses, type GetSpacesBySpaceData, type GetSpacesBySpaceError, type GetSpacesBySpaceErrors, type GetSpacesBySpacePostsByPostData, type GetSpacesBySpacePostsByPostError, type GetSpacesBySpacePostsByPostErrors, type GetSpacesBySpacePostsByPostResponse, type GetSpacesBySpacePostsByPostResponses, type GetSpacesBySpacePostsData, type GetSpacesBySpacePostsError, type GetSpacesBySpacePostsErrors, type GetSpacesBySpacePostsResponse, type GetSpacesBySpacePostsResponses, type GetSpacesBySpaceQueueData, type GetSpacesBySpaceQueueError, type GetSpacesBySpaceQueueErrors, type GetSpacesBySpaceQueueResponse, type GetSpacesBySpaceQueueResponses, type GetSpacesBySpaceResponse, type GetSpacesBySpaceResponses, type GetSpacesBySpaceSlotsData, type GetSpacesBySpaceSlotsError, type GetSpacesBySpaceSlotsErrors, type GetSpacesBySpaceSlotsResponse, type GetSpacesBySpaceSlotsResponses, type GetSpacesBySpaceWebhooksData, type GetSpacesBySpaceWebhooksError, type GetSpacesBySpaceWebhooksErrors, type GetSpacesBySpaceWebhooksResponse, type GetSpacesBySpaceWebhooksResponses, type GetSpacesData, type GetSpacesError, type GetSpacesErrors, type GetSpacesResponse, type GetSpacesResponses, type GetSubscriptionData, type GetSubscriptionError, type GetSubscriptionErrors, type GetSubscriptionResponse, type GetSubscriptionResponses, Media, type MediaResource, type PatchSpacesBySpaceAccountsByAccountActivateData, type PatchSpacesBySpaceAccountsByAccountActivateError, type PatchSpacesBySpaceAccountsByAccountActivateErrors, type PatchSpacesBySpaceAccountsByAccountActivateResponse, type PatchSpacesBySpaceAccountsByAccountActivateResponses, type PostApiTokensData, type PostApiTokensError, type PostApiTokensErrors, type PostApiTokensResponses, type PostMediaData, type PostMediaError, type PostMediaErrors, type PostMediaResponse, type PostMediaResponses, type PostResource, type PostSpacesBySpaceBioAvatarData, type PostSpacesBySpaceBioAvatarError, type PostSpacesBySpaceBioAvatarErrors, type PostSpacesBySpaceBioAvatarResponse, type PostSpacesBySpaceBioAvatarResponses, type PostSpacesBySpaceBioBlocksByBlockReorderData, type PostSpacesBySpaceBioBlocksByBlockReorderError, type PostSpacesBySpaceBioBlocksByBlockReorderErrors, type PostSpacesBySpaceBioBlocksByBlockReorderResponse, type PostSpacesBySpaceBioBlocksByBlockReorderResponses, type PostSpacesBySpaceBioBlocksData, type PostSpacesBySpaceBioBlocksError, type PostSpacesBySpaceBioBlocksErrors, type PostSpacesBySpaceBioBlocksResponse, type PostSpacesBySpaceBioBlocksResponses, type PostSpacesBySpaceBioData, type PostSpacesBySpaceBioError, type PostSpacesBySpaceBioErrors, type PostSpacesBySpaceBioResponse, type PostSpacesBySpaceBioResponses, type PostSpacesBySpacePostsData, type PostSpacesBySpacePostsError, type PostSpacesBySpacePostsErrors, type PostSpacesBySpacePostsResponse, type PostSpacesBySpacePostsResponses, type PostSpacesBySpaceSlotsData, type PostSpacesBySpaceSlotsError, type PostSpacesBySpaceSlotsErrors, type PostSpacesBySpaceSlotsResponse, type PostSpacesBySpaceSlotsResponses, type PostSpacesBySpaceWebhooksData, type PostSpacesBySpaceWebhooksError, type PostSpacesBySpaceWebhooksErrors, type PostSpacesBySpaceWebhooksResponse, type PostSpacesBySpaceWebhooksResponses, type PostSpacesData, type PostSpacesError, type PostSpacesErrors, type PostSpacesResponse, type PostSpacesResponses, type PostStatus, Posts, type PutSpacesBySpaceBioBlocksByBlockData, type PutSpacesBySpaceBioBlocksByBlockError, type PutSpacesBySpaceBioBlocksByBlockErrors, type PutSpacesBySpaceBioBlocksByBlockResponse, type PutSpacesBySpaceBioBlocksByBlockResponses, type PutSpacesBySpaceBioData, type PutSpacesBySpaceBioError, type PutSpacesBySpaceBioErrors, type PutSpacesBySpaceBioResponse, type PutSpacesBySpaceBioResponses, type PutSpacesBySpaceClustersByClusterIdData, type PutSpacesBySpaceClustersByClusterIdError, type PutSpacesBySpaceClustersByClusterIdErrors, type PutSpacesBySpaceClustersByClusterIdResponse, type PutSpacesBySpaceClustersByClusterIdResponses, 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, Queue, type SlotResource, Slots, type SpaceResource, Spaces, type StoreBioBlockRequest, type StoreBioPageRequest, type StorePostRequest, type StoreSlotRequest, type StoreSpaceRequest, type StoreWebhookRequest, Subscription, Tokens, type UpdateBioBlockRequest, type UpdateBioPageRequest, type UpdateClusterRequest, type UpdatePostRequest, type UpdateSpaceRequest, type UpdateWebhookRequest, type WebhookResource, Webhooks, ZilfuClient, client, createZilfuClient };