@zilfu/sdk 0.0.1 → 0.1.1
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/LICENSE +21 -0
- package/README.md +116 -20
- package/dist/index.cjs +733 -661
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +521 -382
- package/dist/index.d.ts +521 -382
- package/dist/index.js +733 -623
- package/dist/index.js.map +1 -1
- package/package.json +15 -18
- package/openapi.json +0 -3541
- package/src/client.ts +0 -38
- package/src/generated/client/client.gen.ts +0 -268
- package/src/generated/client/index.ts +0 -25
- package/src/generated/client/types.gen.ts +0 -268
- package/src/generated/client/utils.gen.ts +0 -331
- package/src/generated/client.gen.ts +0 -18
- package/src/generated/core/auth.gen.ts +0 -42
- package/src/generated/core/bodySerializer.gen.ts +0 -92
- package/src/generated/core/params.gen.ts +0 -153
- package/src/generated/core/pathSerializer.gen.ts +0 -181
- package/src/generated/core/serverSentEvents.gen.ts +0 -264
- package/src/generated/core/types.gen.ts +0 -118
- package/src/generated/core/utils.gen.ts +0 -143
- package/src/generated/index.ts +0 -4
- package/src/generated/sdk.gen.ts +0 -695
- package/src/generated/types.gen.ts +0 -2564
- package/src/index.ts +0 -5
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:
|
|
31
|
-
|
|
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
|
|
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,
|
|
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
|
|
272
|
-
|
|
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<
|
|
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:
|
|
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
|
|
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
|
|
595
|
+
type DeleteSpacesBySpaceAccountsErrors = {
|
|
582
596
|
/**
|
|
583
597
|
* Unauthenticated
|
|
584
598
|
*/
|
|
@@ -622,14 +636,14 @@ type AccountsDestroyManyErrors = {
|
|
|
622
636
|
};
|
|
623
637
|
};
|
|
624
638
|
};
|
|
625
|
-
type
|
|
626
|
-
type
|
|
639
|
+
type DeleteSpacesBySpaceAccountsError = DeleteSpacesBySpaceAccountsErrors[keyof DeleteSpacesBySpaceAccountsErrors];
|
|
640
|
+
type DeleteSpacesBySpaceAccountsResponses = {
|
|
627
641
|
200: {
|
|
628
642
|
[key: string]: unknown;
|
|
629
643
|
};
|
|
630
644
|
};
|
|
631
|
-
type
|
|
632
|
-
type
|
|
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
|
|
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
|
|
673
|
-
type
|
|
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
|
|
682
|
-
type
|
|
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
|
|
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
|
|
727
|
-
type
|
|
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
|
|
738
|
-
type
|
|
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
|
|
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
|
|
783
|
-
type
|
|
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
|
|
794
|
-
type
|
|
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
|
|
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
|
|
839
|
-
type
|
|
852
|
+
type DeleteSpacesBySpaceAccountsByAccountError = DeleteSpacesBySpaceAccountsByAccountErrors[keyof DeleteSpacesBySpaceAccountsByAccountErrors];
|
|
853
|
+
type DeleteSpacesBySpaceAccountsByAccountResponses = {
|
|
840
854
|
200: {
|
|
841
855
|
[key: string]: unknown;
|
|
842
856
|
};
|
|
843
857
|
};
|
|
844
|
-
type
|
|
845
|
-
type
|
|
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
|
|
867
|
+
type PostApiTokensErrors = {
|
|
854
868
|
/**
|
|
855
869
|
* Unauthenticated
|
|
856
870
|
*/
|
|
@@ -876,11 +890,11 @@ type ApiTokensStoreErrors = {
|
|
|
876
890
|
};
|
|
877
891
|
};
|
|
878
892
|
};
|
|
879
|
-
type
|
|
880
|
-
type
|
|
893
|
+
type PostApiTokensError = PostApiTokensErrors[keyof PostApiTokensErrors];
|
|
894
|
+
type PostApiTokensResponses = {
|
|
881
895
|
200: unknown;
|
|
882
896
|
};
|
|
883
|
-
type
|
|
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
|
|
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
|
|
903
|
-
type
|
|
916
|
+
type DeleteApiTokensByTokenIdError = DeleteApiTokensByTokenIdErrors[keyof DeleteApiTokensByTokenIdErrors];
|
|
917
|
+
type DeleteApiTokensByTokenIdResponses = {
|
|
904
918
|
200: unknown;
|
|
905
919
|
};
|
|
906
|
-
type
|
|
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
|
|
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
|
|
947
|
-
type
|
|
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
|
|
956
|
-
type
|
|
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
|
|
981
|
+
type PostSpacesBySpaceBioBlocksErrors = {
|
|
968
982
|
/**
|
|
969
983
|
* Unauthenticated
|
|
970
984
|
*/
|
|
@@ -1008,14 +1022,14 @@ type BioBlocksStoreErrors = {
|
|
|
1008
1022
|
};
|
|
1009
1023
|
};
|
|
1010
1024
|
};
|
|
1011
|
-
type
|
|
1012
|
-
type
|
|
1025
|
+
type PostSpacesBySpaceBioBlocksError = PostSpacesBySpaceBioBlocksErrors[keyof PostSpacesBySpaceBioBlocksErrors];
|
|
1026
|
+
type PostSpacesBySpaceBioBlocksResponses = {
|
|
1013
1027
|
200: {
|
|
1014
1028
|
[key: string]: unknown;
|
|
1015
1029
|
};
|
|
1016
1030
|
};
|
|
1017
|
-
type
|
|
1018
|
-
type
|
|
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
|
|
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
|
|
1063
|
-
type
|
|
1076
|
+
type DeleteSpacesBySpaceBioBlocksByBlockError = DeleteSpacesBySpaceBioBlocksByBlockErrors[keyof DeleteSpacesBySpaceBioBlocksByBlockErrors];
|
|
1077
|
+
type DeleteSpacesBySpaceBioBlocksByBlockResponses = {
|
|
1064
1078
|
200: {
|
|
1065
1079
|
[key: string]: unknown;
|
|
1066
1080
|
};
|
|
1067
1081
|
};
|
|
1068
|
-
type
|
|
1069
|
-
type
|
|
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
|
|
1098
|
+
type PutSpacesBySpaceBioBlocksByBlockErrors = {
|
|
1085
1099
|
/**
|
|
1086
1100
|
* Unauthenticated
|
|
1087
1101
|
*/
|
|
@@ -1125,8 +1139,8 @@ type BioBlocksUpdateErrors = {
|
|
|
1125
1139
|
};
|
|
1126
1140
|
};
|
|
1127
1141
|
};
|
|
1128
|
-
type
|
|
1129
|
-
type
|
|
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
|
|
1140
|
-
type
|
|
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
|
|
1171
|
+
type PostSpacesBySpaceBioBlocksByBlockReorderErrors = {
|
|
1158
1172
|
/**
|
|
1159
1173
|
* Unauthenticated
|
|
1160
1174
|
*/
|
|
@@ -1198,14 +1212,14 @@ type BioBlocksReorderErrors = {
|
|
|
1198
1212
|
};
|
|
1199
1213
|
};
|
|
1200
1214
|
};
|
|
1201
|
-
type
|
|
1202
|
-
type
|
|
1215
|
+
type PostSpacesBySpaceBioBlocksByBlockReorderError = PostSpacesBySpaceBioBlocksByBlockReorderErrors[keyof PostSpacesBySpaceBioBlocksByBlockReorderErrors];
|
|
1216
|
+
type PostSpacesBySpaceBioBlocksByBlockReorderResponses = {
|
|
1203
1217
|
200: {
|
|
1204
1218
|
[key: string]: unknown;
|
|
1205
1219
|
};
|
|
1206
1220
|
};
|
|
1207
|
-
type
|
|
1208
|
-
type
|
|
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
|
|
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
|
|
1249
|
-
type
|
|
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
|
|
1258
|
-
type
|
|
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
|
|
1283
|
+
type PostSpacesBySpaceBioErrors = {
|
|
1270
1284
|
/**
|
|
1271
1285
|
* Unauthenticated
|
|
1272
1286
|
*/
|
|
@@ -1310,14 +1324,14 @@ type BioStoreErrors = {
|
|
|
1310
1324
|
};
|
|
1311
1325
|
};
|
|
1312
1326
|
};
|
|
1313
|
-
type
|
|
1314
|
-
type
|
|
1327
|
+
type PostSpacesBySpaceBioError = PostSpacesBySpaceBioErrors[keyof PostSpacesBySpaceBioErrors];
|
|
1328
|
+
type PostSpacesBySpaceBioResponses = {
|
|
1315
1329
|
200: {
|
|
1316
1330
|
[key: string]: unknown;
|
|
1317
1331
|
};
|
|
1318
1332
|
};
|
|
1319
|
-
type
|
|
1320
|
-
type
|
|
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
|
|
1345
|
+
type PutSpacesBySpaceBioErrors = {
|
|
1332
1346
|
/**
|
|
1333
1347
|
* Unauthenticated
|
|
1334
1348
|
*/
|
|
@@ -1372,8 +1386,8 @@ type BioUpdateErrors = {
|
|
|
1372
1386
|
};
|
|
1373
1387
|
};
|
|
1374
1388
|
};
|
|
1375
|
-
type
|
|
1376
|
-
type
|
|
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
|
|
1387
|
-
type
|
|
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
|
|
1414
|
+
type PostSpacesBySpaceBioAvatarErrors = {
|
|
1401
1415
|
/**
|
|
1402
1416
|
* Unauthenticated
|
|
1403
1417
|
*/
|
|
@@ -1441,14 +1455,33 @@ type BioAvatarErrors = {
|
|
|
1441
1455
|
};
|
|
1442
1456
|
};
|
|
1443
1457
|
};
|
|
1444
|
-
type
|
|
1445
|
-
type
|
|
1458
|
+
type PostSpacesBySpaceBioAvatarError = PostSpacesBySpaceBioAvatarErrors[keyof PostSpacesBySpaceBioAvatarErrors];
|
|
1459
|
+
type PostSpacesBySpaceBioAvatarResponses = {
|
|
1446
1460
|
200: {
|
|
1447
1461
|
[key: string]: unknown;
|
|
1448
1462
|
};
|
|
1449
1463
|
};
|
|
1450
|
-
type
|
|
1451
|
-
type
|
|
1464
|
+
type PostSpacesBySpaceBioAvatarResponse = PostSpacesBySpaceBioAvatarResponses[keyof PostSpacesBySpaceBioAvatarResponses];
|
|
1465
|
+
type GetHealthData = {
|
|
1466
|
+
body?: never;
|
|
1467
|
+
path?: never;
|
|
1468
|
+
query?: never;
|
|
1469
|
+
url: '/health';
|
|
1470
|
+
};
|
|
1471
|
+
type GetHealthErrors = {
|
|
1472
|
+
503: {
|
|
1473
|
+
status: 'error';
|
|
1474
|
+
database: boolean;
|
|
1475
|
+
};
|
|
1476
|
+
};
|
|
1477
|
+
type GetHealthError = GetHealthErrors[keyof GetHealthErrors];
|
|
1478
|
+
type GetHealthResponses = {
|
|
1479
|
+
200: {
|
|
1480
|
+
status: 'ok';
|
|
1481
|
+
};
|
|
1482
|
+
};
|
|
1483
|
+
type GetHealthResponse = GetHealthResponses[keyof GetHealthResponses];
|
|
1484
|
+
type PostMediaData = {
|
|
1452
1485
|
body: {
|
|
1453
1486
|
file: Blob | File;
|
|
1454
1487
|
};
|
|
@@ -1456,7 +1489,7 @@ type MediaStoreData = {
|
|
|
1456
1489
|
query?: never;
|
|
1457
1490
|
url: '/media';
|
|
1458
1491
|
};
|
|
1459
|
-
type
|
|
1492
|
+
type PostMediaErrors = {
|
|
1460
1493
|
/**
|
|
1461
1494
|
* Unauthenticated
|
|
1462
1495
|
*/
|
|
@@ -1482,8 +1515,8 @@ type MediaStoreErrors = {
|
|
|
1482
1515
|
};
|
|
1483
1516
|
};
|
|
1484
1517
|
};
|
|
1485
|
-
type
|
|
1486
|
-
type
|
|
1518
|
+
type PostMediaError = PostMediaErrors[keyof PostMediaErrors];
|
|
1519
|
+
type PostMediaResponses = {
|
|
1487
1520
|
/**
|
|
1488
1521
|
* `MediaResource`
|
|
1489
1522
|
*/
|
|
@@ -1491,8 +1524,8 @@ type MediaStoreResponses = {
|
|
|
1491
1524
|
data: MediaResource;
|
|
1492
1525
|
};
|
|
1493
1526
|
};
|
|
1494
|
-
type
|
|
1495
|
-
type
|
|
1527
|
+
type PostMediaResponse = PostMediaResponses[keyof PostMediaResponses];
|
|
1528
|
+
type DeleteMediaByMediaData = {
|
|
1496
1529
|
body?: never;
|
|
1497
1530
|
path: {
|
|
1498
1531
|
/**
|
|
@@ -1503,7 +1536,7 @@ type MediaDestroyData = {
|
|
|
1503
1536
|
query?: never;
|
|
1504
1537
|
url: '/media/{media}';
|
|
1505
1538
|
};
|
|
1506
|
-
type
|
|
1539
|
+
type DeleteMediaByMediaErrors = {
|
|
1507
1540
|
/**
|
|
1508
1541
|
* Unauthenticated
|
|
1509
1542
|
*/
|
|
@@ -1532,14 +1565,14 @@ type MediaDestroyErrors = {
|
|
|
1532
1565
|
message: string;
|
|
1533
1566
|
};
|
|
1534
1567
|
};
|
|
1535
|
-
type
|
|
1536
|
-
type
|
|
1568
|
+
type DeleteMediaByMediaError = DeleteMediaByMediaErrors[keyof DeleteMediaByMediaErrors];
|
|
1569
|
+
type DeleteMediaByMediaResponses = {
|
|
1537
1570
|
200: {
|
|
1538
1571
|
[key: string]: unknown;
|
|
1539
1572
|
};
|
|
1540
1573
|
};
|
|
1541
|
-
type
|
|
1542
|
-
type
|
|
1574
|
+
type DeleteMediaByMediaResponse = DeleteMediaByMediaResponses[keyof DeleteMediaByMediaResponses];
|
|
1575
|
+
type GetSpacesBySpacePostsData = {
|
|
1543
1576
|
body?: never;
|
|
1544
1577
|
path: {
|
|
1545
1578
|
/**
|
|
@@ -1555,7 +1588,7 @@ type PostsIndexData = {
|
|
|
1555
1588
|
};
|
|
1556
1589
|
url: '/spaces/{space}/posts';
|
|
1557
1590
|
};
|
|
1558
|
-
type
|
|
1591
|
+
type GetSpacesBySpacePostsErrors = {
|
|
1559
1592
|
/**
|
|
1560
1593
|
* Unauthenticated
|
|
1561
1594
|
*/
|
|
@@ -1584,8 +1617,8 @@ type PostsIndexErrors = {
|
|
|
1584
1617
|
message: string;
|
|
1585
1618
|
};
|
|
1586
1619
|
};
|
|
1587
|
-
type
|
|
1588
|
-
type
|
|
1620
|
+
type GetSpacesBySpacePostsError = GetSpacesBySpacePostsErrors[keyof GetSpacesBySpacePostsErrors];
|
|
1621
|
+
type GetSpacesBySpacePostsResponses = {
|
|
1589
1622
|
/**
|
|
1590
1623
|
* Paginated set of `PostResource`
|
|
1591
1624
|
*/
|
|
@@ -1628,8 +1661,8 @@ type PostsIndexResponses = {
|
|
|
1628
1661
|
};
|
|
1629
1662
|
};
|
|
1630
1663
|
};
|
|
1631
|
-
type
|
|
1632
|
-
type
|
|
1664
|
+
type GetSpacesBySpacePostsResponse = GetSpacesBySpacePostsResponses[keyof GetSpacesBySpacePostsResponses];
|
|
1665
|
+
type PostSpacesBySpacePostsData = {
|
|
1633
1666
|
body: StorePostRequest;
|
|
1634
1667
|
path: {
|
|
1635
1668
|
space: string;
|
|
@@ -1637,7 +1670,7 @@ type PostsStoreData = {
|
|
|
1637
1670
|
query?: never;
|
|
1638
1671
|
url: '/spaces/{space}/posts';
|
|
1639
1672
|
};
|
|
1640
|
-
type
|
|
1673
|
+
type PostSpacesBySpacePostsErrors = {
|
|
1641
1674
|
/**
|
|
1642
1675
|
* Unauthenticated
|
|
1643
1676
|
*/
|
|
@@ -1672,14 +1705,14 @@ type PostsStoreErrors = {
|
|
|
1672
1705
|
};
|
|
1673
1706
|
};
|
|
1674
1707
|
};
|
|
1675
|
-
type
|
|
1676
|
-
type
|
|
1708
|
+
type PostSpacesBySpacePostsError = PostSpacesBySpacePostsErrors[keyof PostSpacesBySpacePostsErrors];
|
|
1709
|
+
type PostSpacesBySpacePostsResponses = {
|
|
1677
1710
|
200: {
|
|
1678
1711
|
[key: string]: unknown;
|
|
1679
1712
|
};
|
|
1680
1713
|
};
|
|
1681
|
-
type
|
|
1682
|
-
type
|
|
1714
|
+
type PostSpacesBySpacePostsResponse = PostSpacesBySpacePostsResponses[keyof PostSpacesBySpacePostsResponses];
|
|
1715
|
+
type DeleteSpacesBySpacePostsByPostData = {
|
|
1683
1716
|
body?: never;
|
|
1684
1717
|
path: {
|
|
1685
1718
|
/**
|
|
@@ -1694,7 +1727,7 @@ type PostsDestroyData = {
|
|
|
1694
1727
|
query?: never;
|
|
1695
1728
|
url: '/spaces/{space}/posts/{post}';
|
|
1696
1729
|
};
|
|
1697
|
-
type
|
|
1730
|
+
type DeleteSpacesBySpacePostsByPostErrors = {
|
|
1698
1731
|
/**
|
|
1699
1732
|
* Unauthenticated
|
|
1700
1733
|
*/
|
|
@@ -1723,14 +1756,14 @@ type PostsDestroyErrors = {
|
|
|
1723
1756
|
message: string;
|
|
1724
1757
|
};
|
|
1725
1758
|
};
|
|
1726
|
-
type
|
|
1727
|
-
type
|
|
1759
|
+
type DeleteSpacesBySpacePostsByPostError = DeleteSpacesBySpacePostsByPostErrors[keyof DeleteSpacesBySpacePostsByPostErrors];
|
|
1760
|
+
type DeleteSpacesBySpacePostsByPostResponses = {
|
|
1728
1761
|
200: {
|
|
1729
1762
|
[key: string]: unknown;
|
|
1730
1763
|
};
|
|
1731
1764
|
};
|
|
1732
|
-
type
|
|
1733
|
-
type
|
|
1765
|
+
type DeleteSpacesBySpacePostsByPostResponse = DeleteSpacesBySpacePostsByPostResponses[keyof DeleteSpacesBySpacePostsByPostResponses];
|
|
1766
|
+
type GetSpacesBySpacePostsByPostData = {
|
|
1734
1767
|
body?: never;
|
|
1735
1768
|
path: {
|
|
1736
1769
|
/**
|
|
@@ -1745,7 +1778,7 @@ type PostsShowData = {
|
|
|
1745
1778
|
query?: never;
|
|
1746
1779
|
url: '/spaces/{space}/posts/{post}';
|
|
1747
1780
|
};
|
|
1748
|
-
type
|
|
1781
|
+
type GetSpacesBySpacePostsByPostErrors = {
|
|
1749
1782
|
/**
|
|
1750
1783
|
* Unauthenticated
|
|
1751
1784
|
*/
|
|
@@ -1774,8 +1807,8 @@ type PostsShowErrors = {
|
|
|
1774
1807
|
message: string;
|
|
1775
1808
|
};
|
|
1776
1809
|
};
|
|
1777
|
-
type
|
|
1778
|
-
type
|
|
1810
|
+
type GetSpacesBySpacePostsByPostError = GetSpacesBySpacePostsByPostErrors[keyof GetSpacesBySpacePostsByPostErrors];
|
|
1811
|
+
type GetSpacesBySpacePostsByPostResponses = {
|
|
1779
1812
|
/**
|
|
1780
1813
|
* `PostResource`
|
|
1781
1814
|
*/
|
|
@@ -1783,8 +1816,8 @@ type PostsShowResponses = {
|
|
|
1783
1816
|
data: PostResource;
|
|
1784
1817
|
};
|
|
1785
1818
|
};
|
|
1786
|
-
type
|
|
1787
|
-
type
|
|
1819
|
+
type GetSpacesBySpacePostsByPostResponse = GetSpacesBySpacePostsByPostResponses[keyof GetSpacesBySpacePostsByPostResponses];
|
|
1820
|
+
type PutSpacesBySpacePostsByPostData = {
|
|
1788
1821
|
body?: UpdatePostRequest;
|
|
1789
1822
|
path: {
|
|
1790
1823
|
/**
|
|
@@ -1799,7 +1832,7 @@ type PostsUpdateData = {
|
|
|
1799
1832
|
query?: never;
|
|
1800
1833
|
url: '/spaces/{space}/posts/{post}';
|
|
1801
1834
|
};
|
|
1802
|
-
type
|
|
1835
|
+
type PutSpacesBySpacePostsByPostErrors = {
|
|
1803
1836
|
/**
|
|
1804
1837
|
* Unauthenticated
|
|
1805
1838
|
*/
|
|
@@ -1843,8 +1876,8 @@ type PostsUpdateErrors = {
|
|
|
1843
1876
|
};
|
|
1844
1877
|
};
|
|
1845
1878
|
};
|
|
1846
|
-
type
|
|
1847
|
-
type
|
|
1879
|
+
type PutSpacesBySpacePostsByPostError = PutSpacesBySpacePostsByPostErrors[keyof PutSpacesBySpacePostsByPostErrors];
|
|
1880
|
+
type PutSpacesBySpacePostsByPostResponses = {
|
|
1848
1881
|
/**
|
|
1849
1882
|
* `PostResource`
|
|
1850
1883
|
*/
|
|
@@ -1854,8 +1887,8 @@ type PostsUpdateResponses = {
|
|
|
1854
1887
|
[key: string]: unknown;
|
|
1855
1888
|
};
|
|
1856
1889
|
};
|
|
1857
|
-
type
|
|
1858
|
-
type
|
|
1890
|
+
type PutSpacesBySpacePostsByPostResponse = PutSpacesBySpacePostsByPostResponses[keyof PutSpacesBySpacePostsByPostResponses];
|
|
1891
|
+
type PutSpacesBySpaceClustersByClusterIdData = {
|
|
1859
1892
|
body: UpdateClusterRequest;
|
|
1860
1893
|
path: {
|
|
1861
1894
|
/**
|
|
@@ -1867,7 +1900,7 @@ type ClustersUpdateData = {
|
|
|
1867
1900
|
query?: never;
|
|
1868
1901
|
url: '/spaces/{space}/clusters/{cluster_id}';
|
|
1869
1902
|
};
|
|
1870
|
-
type
|
|
1903
|
+
type PutSpacesBySpaceClustersByClusterIdErrors = {
|
|
1871
1904
|
/**
|
|
1872
1905
|
* Unauthenticated
|
|
1873
1906
|
*/
|
|
@@ -1911,8 +1944,8 @@ type ClustersUpdateErrors = {
|
|
|
1911
1944
|
};
|
|
1912
1945
|
};
|
|
1913
1946
|
};
|
|
1914
|
-
type
|
|
1915
|
-
type
|
|
1947
|
+
type PutSpacesBySpaceClustersByClusterIdError = PutSpacesBySpaceClustersByClusterIdErrors[keyof PutSpacesBySpaceClustersByClusterIdErrors];
|
|
1948
|
+
type PutSpacesBySpaceClustersByClusterIdResponses = {
|
|
1916
1949
|
/**
|
|
1917
1950
|
* Array of items
|
|
1918
1951
|
*/
|
|
@@ -1922,8 +1955,8 @@ type ClustersUpdateResponses = {
|
|
|
1922
1955
|
[key: string]: unknown;
|
|
1923
1956
|
};
|
|
1924
1957
|
};
|
|
1925
|
-
type
|
|
1926
|
-
type
|
|
1958
|
+
type PutSpacesBySpaceClustersByClusterIdResponse = PutSpacesBySpaceClustersByClusterIdResponses[keyof PutSpacesBySpaceClustersByClusterIdResponses];
|
|
1959
|
+
type GetSpacesBySpaceQueueData = {
|
|
1927
1960
|
body?: never;
|
|
1928
1961
|
path: {
|
|
1929
1962
|
/**
|
|
@@ -1934,7 +1967,7 @@ type QueueIndexData = {
|
|
|
1934
1967
|
query?: never;
|
|
1935
1968
|
url: '/spaces/{space}/queue';
|
|
1936
1969
|
};
|
|
1937
|
-
type
|
|
1970
|
+
type GetSpacesBySpaceQueueErrors = {
|
|
1938
1971
|
/**
|
|
1939
1972
|
* Unauthenticated
|
|
1940
1973
|
*/
|
|
@@ -1963,8 +1996,8 @@ type QueueIndexErrors = {
|
|
|
1963
1996
|
message: string;
|
|
1964
1997
|
};
|
|
1965
1998
|
};
|
|
1966
|
-
type
|
|
1967
|
-
type
|
|
1999
|
+
type GetSpacesBySpaceQueueError = GetSpacesBySpaceQueueErrors[keyof GetSpacesBySpaceQueueErrors];
|
|
2000
|
+
type GetSpacesBySpaceQueueResponses = {
|
|
1968
2001
|
200: {
|
|
1969
2002
|
data: Array<{
|
|
1970
2003
|
datetime: string;
|
|
@@ -1975,8 +2008,8 @@ type QueueIndexResponses = {
|
|
|
1975
2008
|
data: Array<string>;
|
|
1976
2009
|
};
|
|
1977
2010
|
};
|
|
1978
|
-
type
|
|
1979
|
-
type
|
|
2011
|
+
type GetSpacesBySpaceQueueResponse = GetSpacesBySpaceQueueResponses[keyof GetSpacesBySpaceQueueResponses];
|
|
2012
|
+
type GetSpacesBySpaceSlotsData = {
|
|
1980
2013
|
body?: never;
|
|
1981
2014
|
path: {
|
|
1982
2015
|
/**
|
|
@@ -1987,7 +2020,7 @@ type SlotsIndexData = {
|
|
|
1987
2020
|
query?: never;
|
|
1988
2021
|
url: '/spaces/{space}/slots';
|
|
1989
2022
|
};
|
|
1990
|
-
type
|
|
2023
|
+
type GetSpacesBySpaceSlotsErrors = {
|
|
1991
2024
|
/**
|
|
1992
2025
|
* Unauthenticated
|
|
1993
2026
|
*/
|
|
@@ -2016,8 +2049,8 @@ type SlotsIndexErrors = {
|
|
|
2016
2049
|
message: string;
|
|
2017
2050
|
};
|
|
2018
2051
|
};
|
|
2019
|
-
type
|
|
2020
|
-
type
|
|
2052
|
+
type GetSpacesBySpaceSlotsError = GetSpacesBySpaceSlotsErrors[keyof GetSpacesBySpaceSlotsErrors];
|
|
2053
|
+
type GetSpacesBySpaceSlotsResponses = {
|
|
2021
2054
|
/**
|
|
2022
2055
|
* Array of `SlotResource`
|
|
2023
2056
|
*/
|
|
@@ -2025,8 +2058,8 @@ type SlotsIndexResponses = {
|
|
|
2025
2058
|
data: Array<SlotResource>;
|
|
2026
2059
|
};
|
|
2027
2060
|
};
|
|
2028
|
-
type
|
|
2029
|
-
type
|
|
2061
|
+
type GetSpacesBySpaceSlotsResponse = GetSpacesBySpaceSlotsResponses[keyof GetSpacesBySpaceSlotsResponses];
|
|
2062
|
+
type PostSpacesBySpaceSlotsData = {
|
|
2030
2063
|
body: StoreSlotRequest;
|
|
2031
2064
|
path: {
|
|
2032
2065
|
/**
|
|
@@ -2037,7 +2070,7 @@ type SlotsStoreData = {
|
|
|
2037
2070
|
query?: never;
|
|
2038
2071
|
url: '/spaces/{space}/slots';
|
|
2039
2072
|
};
|
|
2040
|
-
type
|
|
2073
|
+
type PostSpacesBySpaceSlotsErrors = {
|
|
2041
2074
|
/**
|
|
2042
2075
|
* Unauthenticated
|
|
2043
2076
|
*/
|
|
@@ -2081,14 +2114,14 @@ type SlotsStoreErrors = {
|
|
|
2081
2114
|
};
|
|
2082
2115
|
};
|
|
2083
2116
|
};
|
|
2084
|
-
type
|
|
2085
|
-
type
|
|
2117
|
+
type PostSpacesBySpaceSlotsError = PostSpacesBySpaceSlotsErrors[keyof PostSpacesBySpaceSlotsErrors];
|
|
2118
|
+
type PostSpacesBySpaceSlotsResponses = {
|
|
2086
2119
|
200: {
|
|
2087
2120
|
[key: string]: unknown;
|
|
2088
2121
|
};
|
|
2089
2122
|
};
|
|
2090
|
-
type
|
|
2091
|
-
type
|
|
2123
|
+
type PostSpacesBySpaceSlotsResponse = PostSpacesBySpaceSlotsResponses[keyof PostSpacesBySpaceSlotsResponses];
|
|
2124
|
+
type DeleteSpacesBySpaceSlotsBySlotData = {
|
|
2092
2125
|
body?: never;
|
|
2093
2126
|
path: {
|
|
2094
2127
|
/**
|
|
@@ -2103,7 +2136,7 @@ type SlotsDestroyData = {
|
|
|
2103
2136
|
query?: never;
|
|
2104
2137
|
url: '/spaces/{space}/slots/{slot}';
|
|
2105
2138
|
};
|
|
2106
|
-
type
|
|
2139
|
+
type DeleteSpacesBySpaceSlotsBySlotErrors = {
|
|
2107
2140
|
/**
|
|
2108
2141
|
* Unauthenticated
|
|
2109
2142
|
*/
|
|
@@ -2132,20 +2165,20 @@ type SlotsDestroyErrors = {
|
|
|
2132
2165
|
message: string;
|
|
2133
2166
|
};
|
|
2134
2167
|
};
|
|
2135
|
-
type
|
|
2136
|
-
type
|
|
2168
|
+
type DeleteSpacesBySpaceSlotsBySlotError = DeleteSpacesBySpaceSlotsBySlotErrors[keyof DeleteSpacesBySpaceSlotsBySlotErrors];
|
|
2169
|
+
type DeleteSpacesBySpaceSlotsBySlotResponses = {
|
|
2137
2170
|
200: {
|
|
2138
2171
|
[key: string]: unknown;
|
|
2139
2172
|
};
|
|
2140
2173
|
};
|
|
2141
|
-
type
|
|
2142
|
-
type
|
|
2174
|
+
type DeleteSpacesBySpaceSlotsBySlotResponse = DeleteSpacesBySpaceSlotsBySlotResponses[keyof DeleteSpacesBySpaceSlotsBySlotResponses];
|
|
2175
|
+
type GetSpacesData = {
|
|
2143
2176
|
body?: never;
|
|
2144
2177
|
path?: never;
|
|
2145
2178
|
query?: never;
|
|
2146
2179
|
url: '/spaces';
|
|
2147
2180
|
};
|
|
2148
|
-
type
|
|
2181
|
+
type GetSpacesErrors = {
|
|
2149
2182
|
/**
|
|
2150
2183
|
* Unauthenticated
|
|
2151
2184
|
*/
|
|
@@ -2156,8 +2189,8 @@ type SpacesIndexErrors = {
|
|
|
2156
2189
|
message: string;
|
|
2157
2190
|
};
|
|
2158
2191
|
};
|
|
2159
|
-
type
|
|
2160
|
-
type
|
|
2192
|
+
type GetSpacesError = GetSpacesErrors[keyof GetSpacesErrors];
|
|
2193
|
+
type GetSpacesResponses = {
|
|
2161
2194
|
/**
|
|
2162
2195
|
* Array of `SpaceResource`
|
|
2163
2196
|
*/
|
|
@@ -2165,14 +2198,14 @@ type SpacesIndexResponses = {
|
|
|
2165
2198
|
data: Array<SpaceResource>;
|
|
2166
2199
|
};
|
|
2167
2200
|
};
|
|
2168
|
-
type
|
|
2169
|
-
type
|
|
2201
|
+
type GetSpacesResponse = GetSpacesResponses[keyof GetSpacesResponses];
|
|
2202
|
+
type PostSpacesData = {
|
|
2170
2203
|
body: StoreSpaceRequest;
|
|
2171
2204
|
path?: never;
|
|
2172
2205
|
query?: never;
|
|
2173
2206
|
url: '/spaces';
|
|
2174
2207
|
};
|
|
2175
|
-
type
|
|
2208
|
+
type PostSpacesErrors = {
|
|
2176
2209
|
/**
|
|
2177
2210
|
* Unauthenticated
|
|
2178
2211
|
*/
|
|
@@ -2207,14 +2240,14 @@ type SpacesStoreErrors = {
|
|
|
2207
2240
|
};
|
|
2208
2241
|
};
|
|
2209
2242
|
};
|
|
2210
|
-
type
|
|
2211
|
-
type
|
|
2243
|
+
type PostSpacesError = PostSpacesErrors[keyof PostSpacesErrors];
|
|
2244
|
+
type PostSpacesResponses = {
|
|
2212
2245
|
200: {
|
|
2213
2246
|
[key: string]: unknown;
|
|
2214
2247
|
};
|
|
2215
2248
|
};
|
|
2216
|
-
type
|
|
2217
|
-
type
|
|
2249
|
+
type PostSpacesResponse = PostSpacesResponses[keyof PostSpacesResponses];
|
|
2250
|
+
type DeleteSpacesBySpaceData = {
|
|
2218
2251
|
body?: never;
|
|
2219
2252
|
path: {
|
|
2220
2253
|
/**
|
|
@@ -2225,7 +2258,7 @@ type SpacesDestroyData = {
|
|
|
2225
2258
|
query?: never;
|
|
2226
2259
|
url: '/spaces/{space}';
|
|
2227
2260
|
};
|
|
2228
|
-
type
|
|
2261
|
+
type DeleteSpacesBySpaceErrors = {
|
|
2229
2262
|
/**
|
|
2230
2263
|
* Unauthenticated
|
|
2231
2264
|
*/
|
|
@@ -2254,14 +2287,14 @@ type SpacesDestroyErrors = {
|
|
|
2254
2287
|
message: string;
|
|
2255
2288
|
};
|
|
2256
2289
|
};
|
|
2257
|
-
type
|
|
2258
|
-
type
|
|
2290
|
+
type DeleteSpacesBySpaceError = DeleteSpacesBySpaceErrors[keyof DeleteSpacesBySpaceErrors];
|
|
2291
|
+
type DeleteSpacesBySpaceResponses = {
|
|
2259
2292
|
200: {
|
|
2260
2293
|
[key: string]: unknown;
|
|
2261
2294
|
};
|
|
2262
2295
|
};
|
|
2263
|
-
type
|
|
2264
|
-
type
|
|
2296
|
+
type DeleteSpacesBySpaceResponse = DeleteSpacesBySpaceResponses[keyof DeleteSpacesBySpaceResponses];
|
|
2297
|
+
type GetSpacesBySpaceData = {
|
|
2265
2298
|
body?: never;
|
|
2266
2299
|
path: {
|
|
2267
2300
|
/**
|
|
@@ -2272,7 +2305,7 @@ type SpacesShowData = {
|
|
|
2272
2305
|
query?: never;
|
|
2273
2306
|
url: '/spaces/{space}';
|
|
2274
2307
|
};
|
|
2275
|
-
type
|
|
2308
|
+
type GetSpacesBySpaceErrors = {
|
|
2276
2309
|
/**
|
|
2277
2310
|
* Unauthenticated
|
|
2278
2311
|
*/
|
|
@@ -2301,8 +2334,8 @@ type SpacesShowErrors = {
|
|
|
2301
2334
|
message: string;
|
|
2302
2335
|
};
|
|
2303
2336
|
};
|
|
2304
|
-
type
|
|
2305
|
-
type
|
|
2337
|
+
type GetSpacesBySpaceError = GetSpacesBySpaceErrors[keyof GetSpacesBySpaceErrors];
|
|
2338
|
+
type GetSpacesBySpaceResponses = {
|
|
2306
2339
|
/**
|
|
2307
2340
|
* `SpaceResource`
|
|
2308
2341
|
*/
|
|
@@ -2310,8 +2343,8 @@ type SpacesShowResponses = {
|
|
|
2310
2343
|
data: SpaceResource;
|
|
2311
2344
|
};
|
|
2312
2345
|
};
|
|
2313
|
-
type
|
|
2314
|
-
type
|
|
2346
|
+
type GetSpacesBySpaceResponse = GetSpacesBySpaceResponses[keyof GetSpacesBySpaceResponses];
|
|
2347
|
+
type PutSpacesBySpaceData = {
|
|
2315
2348
|
body?: UpdateSpaceRequest;
|
|
2316
2349
|
path: {
|
|
2317
2350
|
/**
|
|
@@ -2322,7 +2355,7 @@ type SpacesUpdateData = {
|
|
|
2322
2355
|
query?: never;
|
|
2323
2356
|
url: '/spaces/{space}';
|
|
2324
2357
|
};
|
|
2325
|
-
type
|
|
2358
|
+
type PutSpacesBySpaceErrors = {
|
|
2326
2359
|
/**
|
|
2327
2360
|
* Unauthenticated
|
|
2328
2361
|
*/
|
|
@@ -2366,8 +2399,8 @@ type SpacesUpdateErrors = {
|
|
|
2366
2399
|
};
|
|
2367
2400
|
};
|
|
2368
2401
|
};
|
|
2369
|
-
type
|
|
2370
|
-
type
|
|
2402
|
+
type PutSpacesBySpaceError = PutSpacesBySpaceErrors[keyof PutSpacesBySpaceErrors];
|
|
2403
|
+
type PutSpacesBySpaceResponses = {
|
|
2371
2404
|
/**
|
|
2372
2405
|
* `SpaceResource`
|
|
2373
2406
|
*/
|
|
@@ -2377,14 +2410,14 @@ type SpacesUpdateResponses = {
|
|
|
2377
2410
|
[key: string]: unknown;
|
|
2378
2411
|
};
|
|
2379
2412
|
};
|
|
2380
|
-
type
|
|
2381
|
-
type
|
|
2413
|
+
type PutSpacesBySpaceResponse = PutSpacesBySpaceResponses[keyof PutSpacesBySpaceResponses];
|
|
2414
|
+
type GetSubscriptionData = {
|
|
2382
2415
|
body?: never;
|
|
2383
2416
|
path?: never;
|
|
2384
2417
|
query?: never;
|
|
2385
2418
|
url: '/subscription';
|
|
2386
2419
|
};
|
|
2387
|
-
type
|
|
2420
|
+
type GetSubscriptionErrors = {
|
|
2388
2421
|
/**
|
|
2389
2422
|
* Unauthenticated
|
|
2390
2423
|
*/
|
|
@@ -2395,8 +2428,8 @@ type SubscriptionShowErrors = {
|
|
|
2395
2428
|
message: string;
|
|
2396
2429
|
};
|
|
2397
2430
|
};
|
|
2398
|
-
type
|
|
2399
|
-
type
|
|
2431
|
+
type GetSubscriptionError = GetSubscriptionErrors[keyof GetSubscriptionErrors];
|
|
2432
|
+
type GetSubscriptionResponses = {
|
|
2400
2433
|
200: {
|
|
2401
2434
|
plan: string;
|
|
2402
2435
|
is_gifted: boolean;
|
|
@@ -2416,8 +2449,8 @@ type SubscriptionShowResponses = {
|
|
|
2416
2449
|
ends_at: string;
|
|
2417
2450
|
};
|
|
2418
2451
|
};
|
|
2419
|
-
type
|
|
2420
|
-
type
|
|
2452
|
+
type GetSubscriptionResponse = GetSubscriptionResponses[keyof GetSubscriptionResponses];
|
|
2453
|
+
type GetSpacesBySpaceWebhooksData = {
|
|
2421
2454
|
body?: never;
|
|
2422
2455
|
path: {
|
|
2423
2456
|
/**
|
|
@@ -2428,7 +2461,7 @@ type WebhooksIndexData = {
|
|
|
2428
2461
|
query?: never;
|
|
2429
2462
|
url: '/spaces/{space}/webhooks';
|
|
2430
2463
|
};
|
|
2431
|
-
type
|
|
2464
|
+
type GetSpacesBySpaceWebhooksErrors = {
|
|
2432
2465
|
/**
|
|
2433
2466
|
* Unauthenticated
|
|
2434
2467
|
*/
|
|
@@ -2457,8 +2490,8 @@ type WebhooksIndexErrors = {
|
|
|
2457
2490
|
message: string;
|
|
2458
2491
|
};
|
|
2459
2492
|
};
|
|
2460
|
-
type
|
|
2461
|
-
type
|
|
2493
|
+
type GetSpacesBySpaceWebhooksError = GetSpacesBySpaceWebhooksErrors[keyof GetSpacesBySpaceWebhooksErrors];
|
|
2494
|
+
type GetSpacesBySpaceWebhooksResponses = {
|
|
2462
2495
|
/**
|
|
2463
2496
|
* Array of `WebhookResource`
|
|
2464
2497
|
*/
|
|
@@ -2466,8 +2499,8 @@ type WebhooksIndexResponses = {
|
|
|
2466
2499
|
data: Array<WebhookResource>;
|
|
2467
2500
|
};
|
|
2468
2501
|
};
|
|
2469
|
-
type
|
|
2470
|
-
type
|
|
2502
|
+
type GetSpacesBySpaceWebhooksResponse = GetSpacesBySpaceWebhooksResponses[keyof GetSpacesBySpaceWebhooksResponses];
|
|
2503
|
+
type PostSpacesBySpaceWebhooksData = {
|
|
2471
2504
|
body: StoreWebhookRequest;
|
|
2472
2505
|
path: {
|
|
2473
2506
|
/**
|
|
@@ -2478,7 +2511,7 @@ type WebhooksStoreData = {
|
|
|
2478
2511
|
query?: never;
|
|
2479
2512
|
url: '/spaces/{space}/webhooks';
|
|
2480
2513
|
};
|
|
2481
|
-
type
|
|
2514
|
+
type PostSpacesBySpaceWebhooksErrors = {
|
|
2482
2515
|
/**
|
|
2483
2516
|
* Unauthenticated
|
|
2484
2517
|
*/
|
|
@@ -2522,14 +2555,14 @@ type WebhooksStoreErrors = {
|
|
|
2522
2555
|
};
|
|
2523
2556
|
};
|
|
2524
2557
|
};
|
|
2525
|
-
type
|
|
2526
|
-
type
|
|
2558
|
+
type PostSpacesBySpaceWebhooksError = PostSpacesBySpaceWebhooksErrors[keyof PostSpacesBySpaceWebhooksErrors];
|
|
2559
|
+
type PostSpacesBySpaceWebhooksResponses = {
|
|
2527
2560
|
200: {
|
|
2528
2561
|
[key: string]: unknown;
|
|
2529
2562
|
};
|
|
2530
2563
|
};
|
|
2531
|
-
type
|
|
2532
|
-
type
|
|
2564
|
+
type PostSpacesBySpaceWebhooksResponse = PostSpacesBySpaceWebhooksResponses[keyof PostSpacesBySpaceWebhooksResponses];
|
|
2565
|
+
type DeleteSpacesBySpaceWebhooksByWebhookData = {
|
|
2533
2566
|
body?: never;
|
|
2534
2567
|
path: {
|
|
2535
2568
|
/**
|
|
@@ -2544,7 +2577,7 @@ type WebhooksDestroyData = {
|
|
|
2544
2577
|
query?: never;
|
|
2545
2578
|
url: '/spaces/{space}/webhooks/{webhook}';
|
|
2546
2579
|
};
|
|
2547
|
-
type
|
|
2580
|
+
type DeleteSpacesBySpaceWebhooksByWebhookErrors = {
|
|
2548
2581
|
/**
|
|
2549
2582
|
* Unauthenticated
|
|
2550
2583
|
*/
|
|
@@ -2573,14 +2606,14 @@ type WebhooksDestroyErrors = {
|
|
|
2573
2606
|
message: string;
|
|
2574
2607
|
};
|
|
2575
2608
|
};
|
|
2576
|
-
type
|
|
2577
|
-
type
|
|
2609
|
+
type DeleteSpacesBySpaceWebhooksByWebhookError = DeleteSpacesBySpaceWebhooksByWebhookErrors[keyof DeleteSpacesBySpaceWebhooksByWebhookErrors];
|
|
2610
|
+
type DeleteSpacesBySpaceWebhooksByWebhookResponses = {
|
|
2578
2611
|
200: {
|
|
2579
2612
|
[key: string]: unknown;
|
|
2580
2613
|
};
|
|
2581
2614
|
};
|
|
2582
|
-
type
|
|
2583
|
-
type
|
|
2615
|
+
type DeleteSpacesBySpaceWebhooksByWebhookResponse = DeleteSpacesBySpaceWebhooksByWebhookResponses[keyof DeleteSpacesBySpaceWebhooksByWebhookResponses];
|
|
2616
|
+
type PutSpacesBySpaceWebhooksByWebhookData = {
|
|
2584
2617
|
body?: UpdateWebhookRequest;
|
|
2585
2618
|
path: {
|
|
2586
2619
|
/**
|
|
@@ -2595,7 +2628,7 @@ type WebhooksUpdateData = {
|
|
|
2595
2628
|
query?: never;
|
|
2596
2629
|
url: '/spaces/{space}/webhooks/{webhook}';
|
|
2597
2630
|
};
|
|
2598
|
-
type
|
|
2631
|
+
type PutSpacesBySpaceWebhooksByWebhookErrors = {
|
|
2599
2632
|
/**
|
|
2600
2633
|
* Unauthenticated
|
|
2601
2634
|
*/
|
|
@@ -2639,8 +2672,8 @@ type WebhooksUpdateErrors = {
|
|
|
2639
2672
|
};
|
|
2640
2673
|
};
|
|
2641
2674
|
};
|
|
2642
|
-
type
|
|
2643
|
-
type
|
|
2675
|
+
type PutSpacesBySpaceWebhooksByWebhookError = PutSpacesBySpaceWebhooksByWebhookErrors[keyof PutSpacesBySpaceWebhooksByWebhookErrors];
|
|
2676
|
+
type PutSpacesBySpaceWebhooksByWebhookResponses = {
|
|
2644
2677
|
/**
|
|
2645
2678
|
* `WebhookResource`
|
|
2646
2679
|
*/
|
|
@@ -2650,34 +2683,9 @@ type WebhooksUpdateResponses = {
|
|
|
2650
2683
|
[key: string]: unknown;
|
|
2651
2684
|
};
|
|
2652
2685
|
};
|
|
2653
|
-
type
|
|
2654
|
-
|
|
2655
|
-
declare const client: Client;
|
|
2656
|
-
|
|
2657
|
-
interface CreateClientOptions {
|
|
2658
|
-
/**
|
|
2659
|
-
* Base URL of the Zilfu API, e.g. `https://zilfu.com/api`.
|
|
2660
|
-
*/
|
|
2661
|
-
baseUrl: string;
|
|
2662
|
-
/**
|
|
2663
|
-
* Sanctum personal access token. May be a string or a (possibly async)
|
|
2664
|
-
* function that returns one — useful for refreshing tokens or reading
|
|
2665
|
-
* from a secret manager.
|
|
2666
|
-
*/
|
|
2667
|
-
token: AuthToken | ((auth: Auth) => Promise<AuthToken> | AuthToken);
|
|
2668
|
-
/**
|
|
2669
|
-
* Custom `fetch` implementation. Defaults to `globalThis.fetch`.
|
|
2670
|
-
* Pass a bound fetch in edge runtimes if needed.
|
|
2671
|
-
*/
|
|
2672
|
-
fetch?: typeof fetch;
|
|
2673
|
-
}
|
|
2674
|
-
/**
|
|
2675
|
-
* Configures the shared SDK client. Call once before invoking any
|
|
2676
|
-
* generated SDK method.
|
|
2677
|
-
*/
|
|
2678
|
-
declare function createZilfuClient(options: CreateClientOptions): void;
|
|
2686
|
+
type PutSpacesBySpaceWebhooksByWebhookResponse = PutSpacesBySpaceWebhooksByWebhookResponses[keyof PutSpacesBySpaceWebhooksByWebhookResponses];
|
|
2679
2687
|
|
|
2680
|
-
type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = Options$1<TData, ThrowOnError> & {
|
|
2688
|
+
type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown> = Options$1<TData, ThrowOnError, TResponse> & {
|
|
2681
2689
|
/**
|
|
2682
2690
|
* You can provide a client instance returned by `createClient()` instead of
|
|
2683
2691
|
* individual options. This might be also useful if you want to implement a
|
|
@@ -2690,159 +2698,290 @@ type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean
|
|
|
2690
2698
|
*/
|
|
2691
2699
|
meta?: Record<string, unknown>;
|
|
2692
2700
|
};
|
|
2693
|
-
|
|
2694
|
-
|
|
2695
|
-
|
|
2696
|
-
|
|
2697
|
-
|
|
2698
|
-
|
|
2699
|
-
|
|
2700
|
-
|
|
2701
|
-
|
|
2702
|
-
|
|
2703
|
-
|
|
2704
|
-
|
|
2705
|
-
|
|
2706
|
-
|
|
2707
|
-
|
|
2708
|
-
|
|
2709
|
-
|
|
2710
|
-
|
|
2711
|
-
|
|
2712
|
-
|
|
2713
|
-
|
|
2714
|
-
|
|
2715
|
-
|
|
2716
|
-
|
|
2717
|
-
|
|
2718
|
-
/**
|
|
2719
|
-
|
|
2720
|
-
|
|
2721
|
-
|
|
2722
|
-
|
|
2723
|
-
|
|
2724
|
-
|
|
2725
|
-
|
|
2726
|
-
|
|
2727
|
-
|
|
2728
|
-
|
|
2729
|
-
|
|
2730
|
-
|
|
2731
|
-
|
|
2732
|
-
|
|
2733
|
-
|
|
2734
|
-
|
|
2735
|
-
|
|
2736
|
-
|
|
2737
|
-
|
|
2738
|
-
|
|
2739
|
-
|
|
2740
|
-
|
|
2741
|
-
|
|
2742
|
-
|
|
2743
|
-
|
|
2744
|
-
|
|
2745
|
-
|
|
2746
|
-
|
|
2747
|
-
|
|
2748
|
-
|
|
2749
|
-
|
|
2750
|
-
|
|
2751
|
-
declare
|
|
2752
|
-
|
|
2753
|
-
|
|
2754
|
-
|
|
2755
|
-
|
|
2756
|
-
|
|
2757
|
-
|
|
2758
|
-
|
|
2759
|
-
|
|
2760
|
-
|
|
2761
|
-
|
|
2762
|
-
|
|
2763
|
-
|
|
2764
|
-
|
|
2765
|
-
|
|
2766
|
-
declare
|
|
2767
|
-
|
|
2768
|
-
|
|
2769
|
-
|
|
2770
|
-
|
|
2771
|
-
|
|
2772
|
-
|
|
2773
|
-
|
|
2774
|
-
|
|
2775
|
-
|
|
2776
|
-
|
|
2777
|
-
|
|
2778
|
-
|
|
2779
|
-
|
|
2780
|
-
|
|
2781
|
-
|
|
2782
|
-
|
|
2783
|
-
|
|
2784
|
-
|
|
2785
|
-
|
|
2786
|
-
|
|
2787
|
-
|
|
2788
|
-
|
|
2789
|
-
|
|
2790
|
-
|
|
2791
|
-
|
|
2792
|
-
|
|
2793
|
-
|
|
2794
|
-
|
|
2795
|
-
|
|
2796
|
-
|
|
2797
|
-
|
|
2798
|
-
|
|
2799
|
-
|
|
2800
|
-
|
|
2801
|
-
|
|
2802
|
-
/**
|
|
2803
|
-
|
|
2804
|
-
|
|
2805
|
-
|
|
2806
|
-
|
|
2807
|
-
|
|
2808
|
-
|
|
2809
|
-
|
|
2810
|
-
|
|
2811
|
-
|
|
2812
|
-
|
|
2813
|
-
|
|
2814
|
-
|
|
2815
|
-
|
|
2816
|
-
|
|
2817
|
-
|
|
2818
|
-
|
|
2819
|
-
|
|
2820
|
-
|
|
2821
|
-
|
|
2822
|
-
|
|
2823
|
-
|
|
2824
|
-
|
|
2825
|
-
|
|
2826
|
-
|
|
2827
|
-
|
|
2828
|
-
|
|
2829
|
-
|
|
2830
|
-
|
|
2831
|
-
declare
|
|
2832
|
-
/**
|
|
2833
|
-
|
|
2834
|
-
|
|
2835
|
-
|
|
2836
|
-
|
|
2837
|
-
|
|
2838
|
-
|
|
2839
|
-
|
|
2840
|
-
|
|
2841
|
-
|
|
2842
|
-
|
|
2843
|
-
|
|
2844
|
-
|
|
2845
|
-
|
|
2846
|
-
|
|
2701
|
+
declare class HeyApiClient {
|
|
2702
|
+
protected client: Client;
|
|
2703
|
+
constructor(args?: {
|
|
2704
|
+
client?: Client;
|
|
2705
|
+
});
|
|
2706
|
+
}
|
|
2707
|
+
declare class HeyApiRegistry<T> {
|
|
2708
|
+
private readonly defaultKey;
|
|
2709
|
+
private readonly instances;
|
|
2710
|
+
get(key?: string): T;
|
|
2711
|
+
set(value: T, key?: string): void;
|
|
2712
|
+
}
|
|
2713
|
+
declare class Accounts extends HeyApiClient {
|
|
2714
|
+
/**
|
|
2715
|
+
* Disconnect multiple accounts
|
|
2716
|
+
*
|
|
2717
|
+
* Removes several social account connections in a single request and dispatches a webhook event for each.
|
|
2718
|
+
*/
|
|
2719
|
+
deleteMany<ThrowOnError extends boolean = false>(options: Options<DeleteSpacesBySpaceAccountsData, ThrowOnError>): RequestResult<DeleteSpacesBySpaceAccountsResponses, DeleteSpacesBySpaceAccountsErrors, ThrowOnError, "fields">;
|
|
2720
|
+
/**
|
|
2721
|
+
* List accounts
|
|
2722
|
+
*
|
|
2723
|
+
* Returns all connected social accounts for the given space.
|
|
2724
|
+
*/
|
|
2725
|
+
list<ThrowOnError extends boolean = false>(options: Options<GetSpacesBySpaceAccountsData, ThrowOnError>): RequestResult<GetSpacesBySpaceAccountsResponses, GetSpacesBySpaceAccountsErrors, ThrowOnError, "fields">;
|
|
2726
|
+
/**
|
|
2727
|
+
* Activate an account
|
|
2728
|
+
*
|
|
2729
|
+
* Activates the given account and deactivates all other accounts on the same platform within the space.
|
|
2730
|
+
*/
|
|
2731
|
+
activate<ThrowOnError extends boolean = false>(options: Options<PatchSpacesBySpaceAccountsByAccountActivateData, ThrowOnError>): RequestResult<PatchSpacesBySpaceAccountsByAccountActivateResponses, PatchSpacesBySpaceAccountsByAccountActivateErrors, ThrowOnError, "fields">;
|
|
2732
|
+
/**
|
|
2733
|
+
* List Pinterest boards
|
|
2734
|
+
*
|
|
2735
|
+
* Returns the Pinterest boards available for the given account.
|
|
2736
|
+
*/
|
|
2737
|
+
boards<ThrowOnError extends boolean = false>(options: Options<GetSpacesBySpaceAccountsByAccountBoardsData, ThrowOnError>): RequestResult<GetSpacesBySpaceAccountsByAccountBoardsResponses, GetSpacesBySpaceAccountsByAccountBoardsErrors, ThrowOnError, "fields">;
|
|
2738
|
+
/**
|
|
2739
|
+
* Disconnect an account
|
|
2740
|
+
*
|
|
2741
|
+
* Removes the social account connection and dispatches a webhook event.
|
|
2742
|
+
*/
|
|
2743
|
+
delete<ThrowOnError extends boolean = false>(options: Options<DeleteSpacesBySpaceAccountsByAccountData, ThrowOnError>): RequestResult<DeleteSpacesBySpaceAccountsByAccountResponses, DeleteSpacesBySpaceAccountsByAccountErrors, ThrowOnError, "fields">;
|
|
2744
|
+
}
|
|
2745
|
+
declare class ApiTokens extends HeyApiClient {
|
|
2746
|
+
/**
|
|
2747
|
+
* Create an API token
|
|
2748
|
+
*
|
|
2749
|
+
* Generates a new personal access token for the authenticated user.
|
|
2750
|
+
*/
|
|
2751
|
+
create<ThrowOnError extends boolean = false>(options: Options<PostApiTokensData, ThrowOnError>): RequestResult<PostApiTokensResponses, PostApiTokensErrors, ThrowOnError, "fields">;
|
|
2752
|
+
/**
|
|
2753
|
+
* Revoke an API token
|
|
2754
|
+
*
|
|
2755
|
+
* Deletes the specified personal access token.
|
|
2756
|
+
*/
|
|
2757
|
+
delete<ThrowOnError extends boolean = false>(options: Options<DeleteApiTokensByTokenIdData, ThrowOnError>): RequestResult<DeleteApiTokensByTokenIdResponses, DeleteApiTokensByTokenIdErrors, ThrowOnError, "fields">;
|
|
2758
|
+
}
|
|
2759
|
+
declare class Blocks extends HeyApiClient {
|
|
2760
|
+
list<ThrowOnError extends boolean = false>(options: Options<GetSpacesBySpaceBioBlocksData, ThrowOnError>): RequestResult<GetSpacesBySpaceBioBlocksResponses, GetSpacesBySpaceBioBlocksErrors, ThrowOnError, "fields">;
|
|
2761
|
+
create<ThrowOnError extends boolean = false>(options: Options<PostSpacesBySpaceBioBlocksData, ThrowOnError>): RequestResult<PostSpacesBySpaceBioBlocksResponses, PostSpacesBySpaceBioBlocksErrors, ThrowOnError, "fields">;
|
|
2762
|
+
delete<ThrowOnError extends boolean = false>(options: Options<DeleteSpacesBySpaceBioBlocksByBlockData, ThrowOnError>): RequestResult<DeleteSpacesBySpaceBioBlocksByBlockResponses, DeleteSpacesBySpaceBioBlocksByBlockErrors, ThrowOnError, "fields">;
|
|
2763
|
+
update<ThrowOnError extends boolean = false>(options: Options<PutSpacesBySpaceBioBlocksByBlockData, ThrowOnError>): RequestResult<PutSpacesBySpaceBioBlocksByBlockResponses, PutSpacesBySpaceBioBlocksByBlockErrors, ThrowOnError, "fields">;
|
|
2764
|
+
reorder<ThrowOnError extends boolean = false>(options: Options<PostSpacesBySpaceBioBlocksByBlockReorderData, ThrowOnError>): RequestResult<PostSpacesBySpaceBioBlocksByBlockReorderResponses, PostSpacesBySpaceBioBlocksByBlockReorderErrors, ThrowOnError, "fields">;
|
|
2765
|
+
}
|
|
2766
|
+
declare class Bio extends HeyApiClient {
|
|
2767
|
+
get<ThrowOnError extends boolean = false>(options: Options<GetSpacesBySpaceBioData, ThrowOnError>): RequestResult<GetSpacesBySpaceBioResponses, GetSpacesBySpaceBioErrors, ThrowOnError, "fields">;
|
|
2768
|
+
create<ThrowOnError extends boolean = false>(options: Options<PostSpacesBySpaceBioData, ThrowOnError>): RequestResult<PostSpacesBySpaceBioResponses, PostSpacesBySpaceBioErrors, ThrowOnError, "fields">;
|
|
2769
|
+
update<ThrowOnError extends boolean = false>(options: Options<PutSpacesBySpaceBioData, ThrowOnError>): RequestResult<PutSpacesBySpaceBioResponses, PutSpacesBySpaceBioErrors, ThrowOnError, "fields">;
|
|
2770
|
+
uploadAvatar<ThrowOnError extends boolean = false>(options: Options<PostSpacesBySpaceBioAvatarData, ThrowOnError>): RequestResult<PostSpacesBySpaceBioAvatarResponses, PostSpacesBySpaceBioAvatarErrors, ThrowOnError, "fields">;
|
|
2771
|
+
private _blocks?;
|
|
2772
|
+
get blocks(): Blocks;
|
|
2773
|
+
}
|
|
2774
|
+
declare class Health extends HeyApiClient {
|
|
2775
|
+
check<ThrowOnError extends boolean = false>(options?: Options<GetHealthData, ThrowOnError>): RequestResult<GetHealthResponses, GetHealthErrors, ThrowOnError, "fields">;
|
|
2776
|
+
}
|
|
2777
|
+
declare class Media extends HeyApiClient {
|
|
2778
|
+
/**
|
|
2779
|
+
* Upload a media file
|
|
2780
|
+
*
|
|
2781
|
+
* Accepts images (JPEG, PNG, WebP) and videos (MP4, QuickTime). Images are auto-optimized.
|
|
2782
|
+
*/
|
|
2783
|
+
create<ThrowOnError extends boolean = false>(options: Options<PostMediaData, ThrowOnError>): RequestResult<PostMediaResponses, PostMediaErrors, ThrowOnError, "fields">;
|
|
2784
|
+
/**
|
|
2785
|
+
* Delete a media file
|
|
2786
|
+
*
|
|
2787
|
+
* Removes the media file from storage and deletes the record.
|
|
2788
|
+
*/
|
|
2789
|
+
delete<ThrowOnError extends boolean = false>(options: Options<DeleteMediaByMediaData, ThrowOnError>): RequestResult<DeleteMediaByMediaResponses, DeleteMediaByMediaErrors, ThrowOnError, "fields">;
|
|
2790
|
+
}
|
|
2791
|
+
declare class Posts extends HeyApiClient {
|
|
2792
|
+
/**
|
|
2793
|
+
* List posts
|
|
2794
|
+
*
|
|
2795
|
+
* Returns paginated posts for the space. Filterable by status, account, and date range via query parameters.
|
|
2796
|
+
*/
|
|
2797
|
+
list<ThrowOnError extends boolean = false>(options: Options<GetSpacesBySpacePostsData, ThrowOnError>): RequestResult<GetSpacesBySpacePostsResponses, GetSpacesBySpacePostsErrors, ThrowOnError, "fields">;
|
|
2798
|
+
/**
|
|
2799
|
+
* Create posts
|
|
2800
|
+
*
|
|
2801
|
+
* Creates one or more posts as a cluster. Supports draft, scheduled, or immediate publishing modes.
|
|
2802
|
+
*/
|
|
2803
|
+
create<ThrowOnError extends boolean = false>(options: Options<PostSpacesBySpacePostsData, ThrowOnError>): RequestResult<PostSpacesBySpacePostsResponses, PostSpacesBySpacePostsErrors, ThrowOnError, "fields">;
|
|
2804
|
+
/**
|
|
2805
|
+
* Delete a post
|
|
2806
|
+
*
|
|
2807
|
+
* Permanently deletes the given post.
|
|
2808
|
+
*/
|
|
2809
|
+
delete<ThrowOnError extends boolean = false>(options: Options<DeleteSpacesBySpacePostsByPostData, ThrowOnError>): RequestResult<DeleteSpacesBySpacePostsByPostResponses, DeleteSpacesBySpacePostsByPostErrors, ThrowOnError, "fields">;
|
|
2810
|
+
/**
|
|
2811
|
+
* Get a post
|
|
2812
|
+
*
|
|
2813
|
+
* Returns a single post with its account, children, and media.
|
|
2814
|
+
*/
|
|
2815
|
+
get<ThrowOnError extends boolean = false>(options: Options<GetSpacesBySpacePostsByPostData, ThrowOnError>): RequestResult<GetSpacesBySpacePostsByPostResponses, GetSpacesBySpacePostsByPostErrors, ThrowOnError, "fields">;
|
|
2816
|
+
/**
|
|
2817
|
+
* Update a post
|
|
2818
|
+
*
|
|
2819
|
+
* Updates a single post's content, schedule, and media attachments.
|
|
2820
|
+
*/
|
|
2821
|
+
update<ThrowOnError extends boolean = false>(options: Options<PutSpacesBySpacePostsByPostData, ThrowOnError>): RequestResult<PutSpacesBySpacePostsByPostResponses, PutSpacesBySpacePostsByPostErrors, ThrowOnError, "fields">;
|
|
2822
|
+
}
|
|
2823
|
+
declare class Clusters extends HeyApiClient {
|
|
2824
|
+
/**
|
|
2825
|
+
* Update a cluster of posts
|
|
2826
|
+
*
|
|
2827
|
+
* Updates all posts sharing the given cluster ID. Handles adding/removing accounts and re-scheduling.
|
|
2828
|
+
*/
|
|
2829
|
+
update<ThrowOnError extends boolean = false>(options: Options<PutSpacesBySpaceClustersByClusterIdData, ThrowOnError>): RequestResult<PutSpacesBySpaceClustersByClusterIdResponses, PutSpacesBySpaceClustersByClusterIdErrors, ThrowOnError, "fields">;
|
|
2830
|
+
}
|
|
2831
|
+
declare class Queue extends HeyApiClient {
|
|
2832
|
+
/**
|
|
2833
|
+
* Get next available queue slots
|
|
2834
|
+
*
|
|
2835
|
+
* Returns up to 9 upcoming available time slots based on the space's scheduling configuration.
|
|
2836
|
+
*/
|
|
2837
|
+
list<ThrowOnError extends boolean = false>(options: Options<GetSpacesBySpaceQueueData, ThrowOnError>): RequestResult<GetSpacesBySpaceQueueResponses, GetSpacesBySpaceQueueErrors, ThrowOnError, "fields">;
|
|
2838
|
+
}
|
|
2839
|
+
declare class Slots extends HeyApiClient {
|
|
2840
|
+
/**
|
|
2841
|
+
* List slots
|
|
2842
|
+
*
|
|
2843
|
+
* Returns all scheduling slots for the space, ordered by day and time.
|
|
2844
|
+
*/
|
|
2845
|
+
list<ThrowOnError extends boolean = false>(options: Options<GetSpacesBySpaceSlotsData, ThrowOnError>): RequestResult<GetSpacesBySpaceSlotsResponses, GetSpacesBySpaceSlotsErrors, ThrowOnError, "fields">;
|
|
2846
|
+
/**
|
|
2847
|
+
* Create slots
|
|
2848
|
+
*
|
|
2849
|
+
* Creates scheduling slots for the given days of the week and time.
|
|
2850
|
+
*/
|
|
2851
|
+
create<ThrowOnError extends boolean = false>(options: Options<PostSpacesBySpaceSlotsData, ThrowOnError>): RequestResult<PostSpacesBySpaceSlotsResponses, PostSpacesBySpaceSlotsErrors, ThrowOnError, "fields">;
|
|
2852
|
+
/**
|
|
2853
|
+
* Delete a slot
|
|
2854
|
+
*
|
|
2855
|
+
* Removes a scheduling slot from the space.
|
|
2856
|
+
*/
|
|
2857
|
+
delete<ThrowOnError extends boolean = false>(options: Options<DeleteSpacesBySpaceSlotsBySlotData, ThrowOnError>): RequestResult<DeleteSpacesBySpaceSlotsBySlotResponses, DeleteSpacesBySpaceSlotsBySlotErrors, ThrowOnError, "fields">;
|
|
2858
|
+
}
|
|
2859
|
+
declare class Spaces extends HeyApiClient {
|
|
2860
|
+
/**
|
|
2861
|
+
* List spaces
|
|
2862
|
+
*
|
|
2863
|
+
* Returns all spaces belonging to the authenticated user, ordered by most recent.
|
|
2864
|
+
*/
|
|
2865
|
+
list<ThrowOnError extends boolean = false>(options?: Options<GetSpacesData, ThrowOnError>): RequestResult<GetSpacesResponses, GetSpacesErrors, ThrowOnError, "fields">;
|
|
2866
|
+
/**
|
|
2867
|
+
* Create a space
|
|
2868
|
+
*
|
|
2869
|
+
* Creates a new space for the authenticated user.
|
|
2870
|
+
*/
|
|
2871
|
+
create<ThrowOnError extends boolean = false>(options: Options<PostSpacesData, ThrowOnError>): RequestResult<PostSpacesResponses, PostSpacesErrors, ThrowOnError, "fields">;
|
|
2872
|
+
/**
|
|
2873
|
+
* Delete a space
|
|
2874
|
+
*
|
|
2875
|
+
* Permanently deletes the given space and all associated data.
|
|
2876
|
+
*/
|
|
2877
|
+
delete<ThrowOnError extends boolean = false>(options: Options<DeleteSpacesBySpaceData, ThrowOnError>): RequestResult<DeleteSpacesBySpaceResponses, DeleteSpacesBySpaceErrors, ThrowOnError, "fields">;
|
|
2878
|
+
/**
|
|
2879
|
+
* Get a space
|
|
2880
|
+
*
|
|
2881
|
+
* Returns a single space by ID.
|
|
2882
|
+
*/
|
|
2883
|
+
get<ThrowOnError extends boolean = false>(options: Options<GetSpacesBySpaceData, ThrowOnError>): RequestResult<GetSpacesBySpaceResponses, GetSpacesBySpaceErrors, ThrowOnError, "fields">;
|
|
2884
|
+
/**
|
|
2885
|
+
* Update a space
|
|
2886
|
+
*
|
|
2887
|
+
* Updates the given space's settings.
|
|
2888
|
+
*/
|
|
2889
|
+
update<ThrowOnError extends boolean = false>(options: Options<PutSpacesBySpaceData, ThrowOnError>): RequestResult<PutSpacesBySpaceResponses, PutSpacesBySpaceErrors, ThrowOnError, "fields">;
|
|
2890
|
+
}
|
|
2891
|
+
declare class Subscription extends HeyApiClient {
|
|
2892
|
+
/**
|
|
2893
|
+
* Get subscription details
|
|
2894
|
+
*
|
|
2895
|
+
* Returns the current plan, usage limits, trial status, and cancellation state.
|
|
2896
|
+
*/
|
|
2897
|
+
get<ThrowOnError extends boolean = false>(options?: Options<GetSubscriptionData, ThrowOnError>): RequestResult<GetSubscriptionResponses, GetSubscriptionErrors, ThrowOnError, "fields">;
|
|
2898
|
+
}
|
|
2899
|
+
declare class Webhooks extends HeyApiClient {
|
|
2900
|
+
/**
|
|
2901
|
+
* List webhooks
|
|
2902
|
+
*
|
|
2903
|
+
* Returns all webhooks configured for the given space.
|
|
2904
|
+
*/
|
|
2905
|
+
list<ThrowOnError extends boolean = false>(options: Options<GetSpacesBySpaceWebhooksData, ThrowOnError>): RequestResult<GetSpacesBySpaceWebhooksResponses, GetSpacesBySpaceWebhooksErrors, ThrowOnError, "fields">;
|
|
2906
|
+
/**
|
|
2907
|
+
* Create a webhook
|
|
2908
|
+
*
|
|
2909
|
+
* Registers a new webhook endpoint with an auto-generated signing secret.
|
|
2910
|
+
*/
|
|
2911
|
+
create<ThrowOnError extends boolean = false>(options: Options<PostSpacesBySpaceWebhooksData, ThrowOnError>): RequestResult<PostSpacesBySpaceWebhooksResponses, PostSpacesBySpaceWebhooksErrors, ThrowOnError, "fields">;
|
|
2912
|
+
/**
|
|
2913
|
+
* Delete a webhook
|
|
2914
|
+
*
|
|
2915
|
+
* Permanently removes the webhook endpoint.
|
|
2916
|
+
*/
|
|
2917
|
+
delete<ThrowOnError extends boolean = false>(options: Options<DeleteSpacesBySpaceWebhooksByWebhookData, ThrowOnError>): RequestResult<DeleteSpacesBySpaceWebhooksByWebhookResponses, DeleteSpacesBySpaceWebhooksByWebhookErrors, ThrowOnError, "fields">;
|
|
2918
|
+
/**
|
|
2919
|
+
* Update a webhook
|
|
2920
|
+
*
|
|
2921
|
+
* Updates the webhook's URL, events, or active status.
|
|
2922
|
+
*/
|
|
2923
|
+
update<ThrowOnError extends boolean = false>(options: Options<PutSpacesBySpaceWebhooksByWebhookData, ThrowOnError>): RequestResult<PutSpacesBySpaceWebhooksByWebhookResponses, PutSpacesBySpaceWebhooksByWebhookErrors, ThrowOnError, "fields">;
|
|
2924
|
+
}
|
|
2925
|
+
declare class ZilfuApi extends HeyApiClient {
|
|
2926
|
+
static readonly __registry: HeyApiRegistry<ZilfuApi>;
|
|
2927
|
+
constructor(args?: {
|
|
2928
|
+
client?: Client;
|
|
2929
|
+
key?: string;
|
|
2930
|
+
});
|
|
2931
|
+
private _accounts?;
|
|
2932
|
+
get accounts(): Accounts;
|
|
2933
|
+
private _apiTokens?;
|
|
2934
|
+
get apiTokens(): ApiTokens;
|
|
2935
|
+
private _bio?;
|
|
2936
|
+
get bio(): Bio;
|
|
2937
|
+
private _health?;
|
|
2938
|
+
get health(): Health;
|
|
2939
|
+
private _media?;
|
|
2940
|
+
get media(): Media;
|
|
2941
|
+
private _posts?;
|
|
2942
|
+
get posts(): Posts;
|
|
2943
|
+
private _clusters?;
|
|
2944
|
+
get clusters(): Clusters;
|
|
2945
|
+
private _queue?;
|
|
2946
|
+
get queue(): Queue;
|
|
2947
|
+
private _slots?;
|
|
2948
|
+
get slots(): Slots;
|
|
2949
|
+
private _spaces?;
|
|
2950
|
+
get spaces(): Spaces;
|
|
2951
|
+
private _subscription?;
|
|
2952
|
+
get subscription(): Subscription;
|
|
2953
|
+
private _webhooks?;
|
|
2954
|
+
get webhooks(): Webhooks;
|
|
2955
|
+
}
|
|
2956
|
+
|
|
2957
|
+
type ZilfuToken = string | (() => string | Promise<string>);
|
|
2958
|
+
type ZilfuFetch = typeof globalThis.fetch;
|
|
2959
|
+
interface CreateZilfuClientOptions {
|
|
2960
|
+
/** Base URL of the Zilfu API, e.g. `https://zilfu.app/api`. */
|
|
2961
|
+
baseUrl?: string;
|
|
2962
|
+
/** API token (string) or a function returning one (sync or async). */
|
|
2963
|
+
token: ZilfuToken;
|
|
2964
|
+
/** Custom fetch implementation, e.g. `undici.fetch` or a wrapped fetch. */
|
|
2965
|
+
fetch?: ZilfuFetch;
|
|
2966
|
+
/** Default headers merged into every request. */
|
|
2967
|
+
headers?: Record<string, string>;
|
|
2968
|
+
}
|
|
2969
|
+
type ZilfuClient = ZilfuApi;
|
|
2970
|
+
declare function createZilfuClient(opts: CreateZilfuClientOptions): ZilfuClient;
|
|
2971
|
+
|
|
2972
|
+
interface ZilfuApiErrorInit {
|
|
2973
|
+
status: number;
|
|
2974
|
+
statusText?: string;
|
|
2975
|
+
url?: string;
|
|
2976
|
+
body?: unknown;
|
|
2977
|
+
}
|
|
2978
|
+
declare class ZilfuApiError extends Error {
|
|
2979
|
+
readonly status: number;
|
|
2980
|
+
readonly statusText: string | undefined;
|
|
2981
|
+
readonly url: string | undefined;
|
|
2982
|
+
readonly body: unknown;
|
|
2983
|
+
readonly errors: Record<string, string[]> | undefined;
|
|
2984
|
+
constructor(init: ZilfuApiErrorInit);
|
|
2985
|
+
}
|
|
2847
2986
|
|
|
2848
|
-
export { type AccountResource, type
|
|
2987
|
+
export { type AccountResource, type BioBlockResource, type BioPageResource, type ClientOptions, type CreateZilfuClientOptions, 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 GetHealthData, type GetHealthError, type GetHealthErrors, type GetHealthResponse, type GetHealthResponses, type GetSpacesBySpaceAccountsByAccountBoardsData, type GetSpacesBySpaceAccountsByAccountBoardsError, type GetSpacesBySpaceAccountsByAccountBoardsErrors, type GetSpacesBySpaceAccountsByAccountBoardsResponse, type GetSpacesBySpaceAccountsByAccountBoardsResponses, type GetSpacesBySpaceAccountsData, type GetSpacesBySpaceAccountsError, type GetSpacesBySpaceAccountsErrors, type GetSpacesBySpaceAccountsResponse, type GetSpacesBySpaceAccountsResponses, type GetSpacesBySpaceBioBlocksData, type GetSpacesBySpaceBioBlocksError, type GetSpacesBySpaceBioBlocksErrors, type GetSpacesBySpaceBioBlocksResponse, type GetSpacesBySpaceBioBlocksResponses, type GetSpacesBySpaceBioData, type GetSpacesBySpaceBioError, type GetSpacesBySpaceBioErrors, type GetSpacesBySpaceBioResponse, type GetSpacesBySpaceBioResponses, type GetSpacesBySpaceData, type GetSpacesBySpaceError, type GetSpacesBySpaceErrors, type GetSpacesBySpacePostsByPostData, type GetSpacesBySpacePostsByPostError, type GetSpacesBySpacePostsByPostErrors, type GetSpacesBySpacePostsByPostResponse, type GetSpacesBySpacePostsByPostResponses, type GetSpacesBySpacePostsData, type GetSpacesBySpacePostsError, type GetSpacesBySpacePostsErrors, type GetSpacesBySpacePostsResponse, type GetSpacesBySpacePostsResponses, type GetSpacesBySpaceQueueData, type GetSpacesBySpaceQueueError, type GetSpacesBySpaceQueueErrors, type GetSpacesBySpaceQueueResponse, type GetSpacesBySpaceQueueResponses, type GetSpacesBySpaceResponse, type GetSpacesBySpaceResponses, type GetSpacesBySpaceSlotsData, type GetSpacesBySpaceSlotsError, type GetSpacesBySpaceSlotsErrors, type GetSpacesBySpaceSlotsResponse, type GetSpacesBySpaceSlotsResponses, type GetSpacesBySpaceWebhooksData, type GetSpacesBySpaceWebhooksError, type GetSpacesBySpaceWebhooksErrors, type GetSpacesBySpaceWebhooksResponse, type GetSpacesBySpaceWebhooksResponses, type GetSpacesData, type GetSpacesError, type GetSpacesErrors, type GetSpacesResponse, type GetSpacesResponses, type GetSubscriptionData, type GetSubscriptionError, type GetSubscriptionErrors, type GetSubscriptionResponse, type GetSubscriptionResponses, type MediaResource, type PatchSpacesBySpaceAccountsByAccountActivateData, type PatchSpacesBySpaceAccountsByAccountActivateError, type PatchSpacesBySpaceAccountsByAccountActivateErrors, type PatchSpacesBySpaceAccountsByAccountActivateResponse, type PatchSpacesBySpaceAccountsByAccountActivateResponses, type PostApiTokensData, type PostApiTokensError, type PostApiTokensErrors, type PostApiTokensResponses, type 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, 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, type SlotResource, type SpaceResource, type StoreBioBlockRequest, type StoreBioPageRequest, type StorePostRequest, type StoreSlotRequest, type StoreSpaceRequest, type StoreWebhookRequest, type UpdateBioBlockRequest, type UpdateBioPageRequest, type UpdateClusterRequest, type UpdatePostRequest, type UpdateSpaceRequest, type UpdateWebhookRequest, type WebhookResource, ZilfuApiError, type ZilfuApiErrorInit, type ZilfuClient, type ZilfuFetch, type ZilfuToken, createZilfuClient };
|