@zilfu/sdk 0.1.0 → 0.1.2
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 +113 -21
- package/dist/index.cjs +84 -46
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +61 -106
- package/dist/index.d.ts +61 -106
- package/dist/index.js +84 -33
- package/dist/index.js.map +1 -1
- package/package.json +14 -17
- package/openapi.json +0 -3541
- package/src/client.ts +0 -41
- package/src/generated/client/client.gen.ts +0 -280
- package/src/generated/client/index.ts +0 -25
- package/src/generated/client/types.gen.ts +0 -217
- package/src/generated/client/utils.gen.ts +0 -318
- package/src/generated/client.gen.ts +0 -16
- package/src/generated/core/auth.gen.ts +0 -41
- package/src/generated/core/bodySerializer.gen.ts +0 -82
- package/src/generated/core/params.gen.ts +0 -169
- package/src/generated/core/pathSerializer.gen.ts +0 -171
- package/src/generated/core/queryKeySerializer.gen.ts +0 -117
- package/src/generated/core/serverSentEvents.gen.ts +0 -242
- package/src/generated/core/types.gen.ts +0 -104
- package/src/generated/core/utils.gen.ts +0 -140
- package/src/generated/index.ts +0 -4
- package/src/generated/sdk.gen.ts +0 -658
- package/src/generated/types.gen.ts +0 -2564
- package/src/index.ts +0 -22
package/dist/index.d.cts
CHANGED
|
@@ -579,70 +579,6 @@ type WebhookResource = {
|
|
|
579
579
|
created_at: string | null;
|
|
580
580
|
updated_at: string | null;
|
|
581
581
|
};
|
|
582
|
-
type DeleteSpacesBySpaceAccountsData = {
|
|
583
|
-
body?: never;
|
|
584
|
-
path: {
|
|
585
|
-
/**
|
|
586
|
-
* The space ID
|
|
587
|
-
*/
|
|
588
|
-
space: number;
|
|
589
|
-
};
|
|
590
|
-
query?: {
|
|
591
|
-
'ids[]'?: Array<number>;
|
|
592
|
-
};
|
|
593
|
-
url: '/spaces/{space}/accounts';
|
|
594
|
-
};
|
|
595
|
-
type DeleteSpacesBySpaceAccountsErrors = {
|
|
596
|
-
/**
|
|
597
|
-
* Unauthenticated
|
|
598
|
-
*/
|
|
599
|
-
401: {
|
|
600
|
-
/**
|
|
601
|
-
* Error overview.
|
|
602
|
-
*/
|
|
603
|
-
message: string;
|
|
604
|
-
};
|
|
605
|
-
/**
|
|
606
|
-
* Authorization error
|
|
607
|
-
*/
|
|
608
|
-
403: {
|
|
609
|
-
/**
|
|
610
|
-
* Error overview.
|
|
611
|
-
*/
|
|
612
|
-
message: string;
|
|
613
|
-
};
|
|
614
|
-
/**
|
|
615
|
-
* Not found
|
|
616
|
-
*/
|
|
617
|
-
404: {
|
|
618
|
-
/**
|
|
619
|
-
* Error overview.
|
|
620
|
-
*/
|
|
621
|
-
message: string;
|
|
622
|
-
};
|
|
623
|
-
/**
|
|
624
|
-
* Validation error
|
|
625
|
-
*/
|
|
626
|
-
422: {
|
|
627
|
-
/**
|
|
628
|
-
* Errors overview.
|
|
629
|
-
*/
|
|
630
|
-
message: string;
|
|
631
|
-
/**
|
|
632
|
-
* A detailed description of each field that failed validation.
|
|
633
|
-
*/
|
|
634
|
-
errors: {
|
|
635
|
-
[key: string]: Array<string>;
|
|
636
|
-
};
|
|
637
|
-
};
|
|
638
|
-
};
|
|
639
|
-
type DeleteSpacesBySpaceAccountsError = DeleteSpacesBySpaceAccountsErrors[keyof DeleteSpacesBySpaceAccountsErrors];
|
|
640
|
-
type DeleteSpacesBySpaceAccountsResponses = {
|
|
641
|
-
200: {
|
|
642
|
-
[key: string]: unknown;
|
|
643
|
-
};
|
|
644
|
-
};
|
|
645
|
-
type DeleteSpacesBySpaceAccountsResponse = DeleteSpacesBySpaceAccountsResponses[keyof DeleteSpacesBySpaceAccountsResponses];
|
|
646
582
|
type GetSpacesBySpaceAccountsData = {
|
|
647
583
|
body?: never;
|
|
648
584
|
path: {
|
|
@@ -1462,6 +1398,25 @@ type PostSpacesBySpaceBioAvatarResponses = {
|
|
|
1462
1398
|
};
|
|
1463
1399
|
};
|
|
1464
1400
|
type PostSpacesBySpaceBioAvatarResponse = PostSpacesBySpaceBioAvatarResponses[keyof PostSpacesBySpaceBioAvatarResponses];
|
|
1401
|
+
type GetHealthData = {
|
|
1402
|
+
body?: never;
|
|
1403
|
+
path?: never;
|
|
1404
|
+
query?: never;
|
|
1405
|
+
url: '/health';
|
|
1406
|
+
};
|
|
1407
|
+
type GetHealthErrors = {
|
|
1408
|
+
503: {
|
|
1409
|
+
status: 'error';
|
|
1410
|
+
database: boolean;
|
|
1411
|
+
};
|
|
1412
|
+
};
|
|
1413
|
+
type GetHealthError = GetHealthErrors[keyof GetHealthErrors];
|
|
1414
|
+
type GetHealthResponses = {
|
|
1415
|
+
200: {
|
|
1416
|
+
status: 'ok';
|
|
1417
|
+
};
|
|
1418
|
+
};
|
|
1419
|
+
type GetHealthResponse = GetHealthResponses[keyof GetHealthResponses];
|
|
1465
1420
|
type PostMediaData = {
|
|
1466
1421
|
body: {
|
|
1467
1422
|
file: Blob | File;
|
|
@@ -2692,12 +2647,6 @@ declare class HeyApiRegistry<T> {
|
|
|
2692
2647
|
set(value: T, key?: string): void;
|
|
2693
2648
|
}
|
|
2694
2649
|
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
2650
|
/**
|
|
2702
2651
|
* List accounts
|
|
2703
2652
|
*
|
|
@@ -2719,11 +2668,11 @@ declare class Accounts extends HeyApiClient {
|
|
|
2719
2668
|
/**
|
|
2720
2669
|
* Disconnect an account
|
|
2721
2670
|
*
|
|
2722
|
-
* Removes the
|
|
2671
|
+
* Removes the given account and every other account on the same platform within the space, dispatching an AccountDisconnected webhook for each.
|
|
2723
2672
|
*/
|
|
2724
2673
|
delete<ThrowOnError extends boolean = false>(options: Options<DeleteSpacesBySpaceAccountsByAccountData, ThrowOnError>): RequestResult<DeleteSpacesBySpaceAccountsByAccountResponses, DeleteSpacesBySpaceAccountsByAccountErrors, ThrowOnError, "fields">;
|
|
2725
2674
|
}
|
|
2726
|
-
declare class
|
|
2675
|
+
declare class ApiTokens extends HeyApiClient {
|
|
2727
2676
|
/**
|
|
2728
2677
|
* Create an API token
|
|
2729
2678
|
*
|
|
@@ -2737,7 +2686,7 @@ declare class Tokens extends HeyApiClient {
|
|
|
2737
2686
|
*/
|
|
2738
2687
|
delete<ThrowOnError extends boolean = false>(options: Options<DeleteApiTokensByTokenIdData, ThrowOnError>): RequestResult<DeleteApiTokensByTokenIdResponses, DeleteApiTokensByTokenIdErrors, ThrowOnError, "fields">;
|
|
2739
2688
|
}
|
|
2740
|
-
declare class
|
|
2689
|
+
declare class Blocks extends HeyApiClient {
|
|
2741
2690
|
list<ThrowOnError extends boolean = false>(options: Options<GetSpacesBySpaceBioBlocksData, ThrowOnError>): RequestResult<GetSpacesBySpaceBioBlocksResponses, GetSpacesBySpaceBioBlocksErrors, ThrowOnError, "fields">;
|
|
2742
2691
|
create<ThrowOnError extends boolean = false>(options: Options<PostSpacesBySpaceBioBlocksData, ThrowOnError>): RequestResult<PostSpacesBySpaceBioBlocksResponses, PostSpacesBySpaceBioBlocksErrors, ThrowOnError, "fields">;
|
|
2743
2692
|
delete<ThrowOnError extends boolean = false>(options: Options<DeleteSpacesBySpaceBioBlocksByBlockData, ThrowOnError>): RequestResult<DeleteSpacesBySpaceBioBlocksByBlockResponses, DeleteSpacesBySpaceBioBlocksByBlockErrors, ThrowOnError, "fields">;
|
|
@@ -2749,6 +2698,11 @@ declare class Bio extends HeyApiClient {
|
|
|
2749
2698
|
create<ThrowOnError extends boolean = false>(options: Options<PostSpacesBySpaceBioData, ThrowOnError>): RequestResult<PostSpacesBySpaceBioResponses, PostSpacesBySpaceBioErrors, ThrowOnError, "fields">;
|
|
2750
2699
|
update<ThrowOnError extends boolean = false>(options: Options<PutSpacesBySpaceBioData, ThrowOnError>): RequestResult<PutSpacesBySpaceBioResponses, PutSpacesBySpaceBioErrors, ThrowOnError, "fields">;
|
|
2751
2700
|
uploadAvatar<ThrowOnError extends boolean = false>(options: Options<PostSpacesBySpaceBioAvatarData, ThrowOnError>): RequestResult<PostSpacesBySpaceBioAvatarResponses, PostSpacesBySpaceBioAvatarErrors, ThrowOnError, "fields">;
|
|
2701
|
+
private _blocks?;
|
|
2702
|
+
get blocks(): Blocks;
|
|
2703
|
+
}
|
|
2704
|
+
declare class Health extends HeyApiClient {
|
|
2705
|
+
check<ThrowOnError extends boolean = false>(options?: Options<GetHealthData, ThrowOnError>): RequestResult<GetHealthResponses, GetHealthErrors, ThrowOnError, "fields">;
|
|
2752
2706
|
}
|
|
2753
2707
|
declare class Media extends HeyApiClient {
|
|
2754
2708
|
/**
|
|
@@ -2898,20 +2852,20 @@ declare class Webhooks extends HeyApiClient {
|
|
|
2898
2852
|
*/
|
|
2899
2853
|
update<ThrowOnError extends boolean = false>(options: Options<PutSpacesBySpaceWebhooksByWebhookData, ThrowOnError>): RequestResult<PutSpacesBySpaceWebhooksByWebhookResponses, PutSpacesBySpaceWebhooksByWebhookErrors, ThrowOnError, "fields">;
|
|
2900
2854
|
}
|
|
2901
|
-
declare class
|
|
2902
|
-
static readonly __registry: HeyApiRegistry<
|
|
2855
|
+
declare class ZilfuApi extends HeyApiClient {
|
|
2856
|
+
static readonly __registry: HeyApiRegistry<ZilfuApi>;
|
|
2903
2857
|
constructor(args?: {
|
|
2904
2858
|
client?: Client;
|
|
2905
2859
|
key?: string;
|
|
2906
2860
|
});
|
|
2907
2861
|
private _accounts?;
|
|
2908
2862
|
get accounts(): Accounts;
|
|
2909
|
-
private
|
|
2910
|
-
get
|
|
2911
|
-
private _bioBlocks?;
|
|
2912
|
-
get bioBlocks(): BioBlocks;
|
|
2863
|
+
private _apiTokens?;
|
|
2864
|
+
get apiTokens(): ApiTokens;
|
|
2913
2865
|
private _bio?;
|
|
2914
2866
|
get bio(): Bio;
|
|
2867
|
+
private _health?;
|
|
2868
|
+
get health(): Health;
|
|
2915
2869
|
private _media?;
|
|
2916
2870
|
get media(): Media;
|
|
2917
2871
|
private _posts?;
|
|
@@ -2930,33 +2884,34 @@ declare class ZilfuClient extends HeyApiClient {
|
|
|
2930
2884
|
get webhooks(): Webhooks;
|
|
2931
2885
|
}
|
|
2932
2886
|
|
|
2933
|
-
|
|
2934
|
-
|
|
2935
|
-
|
|
2936
|
-
|
|
2937
|
-
baseUrl
|
|
2938
|
-
/**
|
|
2939
|
-
|
|
2940
|
-
|
|
2941
|
-
|
|
2942
|
-
|
|
2943
|
-
|
|
2944
|
-
/**
|
|
2945
|
-
* Custom `fetch` implementation. Defaults to `globalThis.fetch`.
|
|
2946
|
-
* Pass a bound fetch in edge runtimes if needed.
|
|
2947
|
-
*/
|
|
2948
|
-
fetch?: typeof fetch;
|
|
2887
|
+
type ZilfuToken = string | (() => string | Promise<string>);
|
|
2888
|
+
type ZilfuFetch = typeof globalThis.fetch;
|
|
2889
|
+
interface CreateZilfuClientOptions {
|
|
2890
|
+
/** Base URL of the Zilfu API, e.g. `https://zilfu.app/api`. */
|
|
2891
|
+
baseUrl?: string;
|
|
2892
|
+
/** API token (string) or a function returning one (sync or async). */
|
|
2893
|
+
token: ZilfuToken;
|
|
2894
|
+
/** Custom fetch implementation, e.g. `undici.fetch` or a wrapped fetch. */
|
|
2895
|
+
fetch?: ZilfuFetch;
|
|
2896
|
+
/** Default headers merged into every request. */
|
|
2897
|
+
headers?: Record<string, string>;
|
|
2949
2898
|
}
|
|
2950
|
-
|
|
2951
|
-
|
|
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: {...} });
|
|
2957
|
-
*/
|
|
2958
|
-
declare function createZilfuClient(options: CreateClientOptions): ZilfuClient;
|
|
2899
|
+
type ZilfuClient = ZilfuApi;
|
|
2900
|
+
declare function createZilfuClient(opts: CreateZilfuClientOptions): ZilfuClient;
|
|
2959
2901
|
|
|
2960
|
-
|
|
2902
|
+
interface ZilfuApiErrorInit {
|
|
2903
|
+
status: number;
|
|
2904
|
+
statusText?: string;
|
|
2905
|
+
url?: string;
|
|
2906
|
+
body?: unknown;
|
|
2907
|
+
}
|
|
2908
|
+
declare class ZilfuApiError extends Error {
|
|
2909
|
+
readonly status: number;
|
|
2910
|
+
readonly statusText: string | undefined;
|
|
2911
|
+
readonly url: string | undefined;
|
|
2912
|
+
readonly body: unknown;
|
|
2913
|
+
readonly errors: Record<string, string[]> | undefined;
|
|
2914
|
+
constructor(init: ZilfuApiErrorInit);
|
|
2915
|
+
}
|
|
2961
2916
|
|
|
2962
|
-
export { type AccountResource,
|
|
2917
|
+
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 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 };
|
package/dist/index.d.ts
CHANGED
|
@@ -579,70 +579,6 @@ type WebhookResource = {
|
|
|
579
579
|
created_at: string | null;
|
|
580
580
|
updated_at: string | null;
|
|
581
581
|
};
|
|
582
|
-
type DeleteSpacesBySpaceAccountsData = {
|
|
583
|
-
body?: never;
|
|
584
|
-
path: {
|
|
585
|
-
/**
|
|
586
|
-
* The space ID
|
|
587
|
-
*/
|
|
588
|
-
space: number;
|
|
589
|
-
};
|
|
590
|
-
query?: {
|
|
591
|
-
'ids[]'?: Array<number>;
|
|
592
|
-
};
|
|
593
|
-
url: '/spaces/{space}/accounts';
|
|
594
|
-
};
|
|
595
|
-
type DeleteSpacesBySpaceAccountsErrors = {
|
|
596
|
-
/**
|
|
597
|
-
* Unauthenticated
|
|
598
|
-
*/
|
|
599
|
-
401: {
|
|
600
|
-
/**
|
|
601
|
-
* Error overview.
|
|
602
|
-
*/
|
|
603
|
-
message: string;
|
|
604
|
-
};
|
|
605
|
-
/**
|
|
606
|
-
* Authorization error
|
|
607
|
-
*/
|
|
608
|
-
403: {
|
|
609
|
-
/**
|
|
610
|
-
* Error overview.
|
|
611
|
-
*/
|
|
612
|
-
message: string;
|
|
613
|
-
};
|
|
614
|
-
/**
|
|
615
|
-
* Not found
|
|
616
|
-
*/
|
|
617
|
-
404: {
|
|
618
|
-
/**
|
|
619
|
-
* Error overview.
|
|
620
|
-
*/
|
|
621
|
-
message: string;
|
|
622
|
-
};
|
|
623
|
-
/**
|
|
624
|
-
* Validation error
|
|
625
|
-
*/
|
|
626
|
-
422: {
|
|
627
|
-
/**
|
|
628
|
-
* Errors overview.
|
|
629
|
-
*/
|
|
630
|
-
message: string;
|
|
631
|
-
/**
|
|
632
|
-
* A detailed description of each field that failed validation.
|
|
633
|
-
*/
|
|
634
|
-
errors: {
|
|
635
|
-
[key: string]: Array<string>;
|
|
636
|
-
};
|
|
637
|
-
};
|
|
638
|
-
};
|
|
639
|
-
type DeleteSpacesBySpaceAccountsError = DeleteSpacesBySpaceAccountsErrors[keyof DeleteSpacesBySpaceAccountsErrors];
|
|
640
|
-
type DeleteSpacesBySpaceAccountsResponses = {
|
|
641
|
-
200: {
|
|
642
|
-
[key: string]: unknown;
|
|
643
|
-
};
|
|
644
|
-
};
|
|
645
|
-
type DeleteSpacesBySpaceAccountsResponse = DeleteSpacesBySpaceAccountsResponses[keyof DeleteSpacesBySpaceAccountsResponses];
|
|
646
582
|
type GetSpacesBySpaceAccountsData = {
|
|
647
583
|
body?: never;
|
|
648
584
|
path: {
|
|
@@ -1462,6 +1398,25 @@ type PostSpacesBySpaceBioAvatarResponses = {
|
|
|
1462
1398
|
};
|
|
1463
1399
|
};
|
|
1464
1400
|
type PostSpacesBySpaceBioAvatarResponse = PostSpacesBySpaceBioAvatarResponses[keyof PostSpacesBySpaceBioAvatarResponses];
|
|
1401
|
+
type GetHealthData = {
|
|
1402
|
+
body?: never;
|
|
1403
|
+
path?: never;
|
|
1404
|
+
query?: never;
|
|
1405
|
+
url: '/health';
|
|
1406
|
+
};
|
|
1407
|
+
type GetHealthErrors = {
|
|
1408
|
+
503: {
|
|
1409
|
+
status: 'error';
|
|
1410
|
+
database: boolean;
|
|
1411
|
+
};
|
|
1412
|
+
};
|
|
1413
|
+
type GetHealthError = GetHealthErrors[keyof GetHealthErrors];
|
|
1414
|
+
type GetHealthResponses = {
|
|
1415
|
+
200: {
|
|
1416
|
+
status: 'ok';
|
|
1417
|
+
};
|
|
1418
|
+
};
|
|
1419
|
+
type GetHealthResponse = GetHealthResponses[keyof GetHealthResponses];
|
|
1465
1420
|
type PostMediaData = {
|
|
1466
1421
|
body: {
|
|
1467
1422
|
file: Blob | File;
|
|
@@ -2692,12 +2647,6 @@ declare class HeyApiRegistry<T> {
|
|
|
2692
2647
|
set(value: T, key?: string): void;
|
|
2693
2648
|
}
|
|
2694
2649
|
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
2650
|
/**
|
|
2702
2651
|
* List accounts
|
|
2703
2652
|
*
|
|
@@ -2719,11 +2668,11 @@ declare class Accounts extends HeyApiClient {
|
|
|
2719
2668
|
/**
|
|
2720
2669
|
* Disconnect an account
|
|
2721
2670
|
*
|
|
2722
|
-
* Removes the
|
|
2671
|
+
* Removes the given account and every other account on the same platform within the space, dispatching an AccountDisconnected webhook for each.
|
|
2723
2672
|
*/
|
|
2724
2673
|
delete<ThrowOnError extends boolean = false>(options: Options<DeleteSpacesBySpaceAccountsByAccountData, ThrowOnError>): RequestResult<DeleteSpacesBySpaceAccountsByAccountResponses, DeleteSpacesBySpaceAccountsByAccountErrors, ThrowOnError, "fields">;
|
|
2725
2674
|
}
|
|
2726
|
-
declare class
|
|
2675
|
+
declare class ApiTokens extends HeyApiClient {
|
|
2727
2676
|
/**
|
|
2728
2677
|
* Create an API token
|
|
2729
2678
|
*
|
|
@@ -2737,7 +2686,7 @@ declare class Tokens extends HeyApiClient {
|
|
|
2737
2686
|
*/
|
|
2738
2687
|
delete<ThrowOnError extends boolean = false>(options: Options<DeleteApiTokensByTokenIdData, ThrowOnError>): RequestResult<DeleteApiTokensByTokenIdResponses, DeleteApiTokensByTokenIdErrors, ThrowOnError, "fields">;
|
|
2739
2688
|
}
|
|
2740
|
-
declare class
|
|
2689
|
+
declare class Blocks extends HeyApiClient {
|
|
2741
2690
|
list<ThrowOnError extends boolean = false>(options: Options<GetSpacesBySpaceBioBlocksData, ThrowOnError>): RequestResult<GetSpacesBySpaceBioBlocksResponses, GetSpacesBySpaceBioBlocksErrors, ThrowOnError, "fields">;
|
|
2742
2691
|
create<ThrowOnError extends boolean = false>(options: Options<PostSpacesBySpaceBioBlocksData, ThrowOnError>): RequestResult<PostSpacesBySpaceBioBlocksResponses, PostSpacesBySpaceBioBlocksErrors, ThrowOnError, "fields">;
|
|
2743
2692
|
delete<ThrowOnError extends boolean = false>(options: Options<DeleteSpacesBySpaceBioBlocksByBlockData, ThrowOnError>): RequestResult<DeleteSpacesBySpaceBioBlocksByBlockResponses, DeleteSpacesBySpaceBioBlocksByBlockErrors, ThrowOnError, "fields">;
|
|
@@ -2749,6 +2698,11 @@ declare class Bio extends HeyApiClient {
|
|
|
2749
2698
|
create<ThrowOnError extends boolean = false>(options: Options<PostSpacesBySpaceBioData, ThrowOnError>): RequestResult<PostSpacesBySpaceBioResponses, PostSpacesBySpaceBioErrors, ThrowOnError, "fields">;
|
|
2750
2699
|
update<ThrowOnError extends boolean = false>(options: Options<PutSpacesBySpaceBioData, ThrowOnError>): RequestResult<PutSpacesBySpaceBioResponses, PutSpacesBySpaceBioErrors, ThrowOnError, "fields">;
|
|
2751
2700
|
uploadAvatar<ThrowOnError extends boolean = false>(options: Options<PostSpacesBySpaceBioAvatarData, ThrowOnError>): RequestResult<PostSpacesBySpaceBioAvatarResponses, PostSpacesBySpaceBioAvatarErrors, ThrowOnError, "fields">;
|
|
2701
|
+
private _blocks?;
|
|
2702
|
+
get blocks(): Blocks;
|
|
2703
|
+
}
|
|
2704
|
+
declare class Health extends HeyApiClient {
|
|
2705
|
+
check<ThrowOnError extends boolean = false>(options?: Options<GetHealthData, ThrowOnError>): RequestResult<GetHealthResponses, GetHealthErrors, ThrowOnError, "fields">;
|
|
2752
2706
|
}
|
|
2753
2707
|
declare class Media extends HeyApiClient {
|
|
2754
2708
|
/**
|
|
@@ -2898,20 +2852,20 @@ declare class Webhooks extends HeyApiClient {
|
|
|
2898
2852
|
*/
|
|
2899
2853
|
update<ThrowOnError extends boolean = false>(options: Options<PutSpacesBySpaceWebhooksByWebhookData, ThrowOnError>): RequestResult<PutSpacesBySpaceWebhooksByWebhookResponses, PutSpacesBySpaceWebhooksByWebhookErrors, ThrowOnError, "fields">;
|
|
2900
2854
|
}
|
|
2901
|
-
declare class
|
|
2902
|
-
static readonly __registry: HeyApiRegistry<
|
|
2855
|
+
declare class ZilfuApi extends HeyApiClient {
|
|
2856
|
+
static readonly __registry: HeyApiRegistry<ZilfuApi>;
|
|
2903
2857
|
constructor(args?: {
|
|
2904
2858
|
client?: Client;
|
|
2905
2859
|
key?: string;
|
|
2906
2860
|
});
|
|
2907
2861
|
private _accounts?;
|
|
2908
2862
|
get accounts(): Accounts;
|
|
2909
|
-
private
|
|
2910
|
-
get
|
|
2911
|
-
private _bioBlocks?;
|
|
2912
|
-
get bioBlocks(): BioBlocks;
|
|
2863
|
+
private _apiTokens?;
|
|
2864
|
+
get apiTokens(): ApiTokens;
|
|
2913
2865
|
private _bio?;
|
|
2914
2866
|
get bio(): Bio;
|
|
2867
|
+
private _health?;
|
|
2868
|
+
get health(): Health;
|
|
2915
2869
|
private _media?;
|
|
2916
2870
|
get media(): Media;
|
|
2917
2871
|
private _posts?;
|
|
@@ -2930,33 +2884,34 @@ declare class ZilfuClient extends HeyApiClient {
|
|
|
2930
2884
|
get webhooks(): Webhooks;
|
|
2931
2885
|
}
|
|
2932
2886
|
|
|
2933
|
-
|
|
2934
|
-
|
|
2935
|
-
|
|
2936
|
-
|
|
2937
|
-
baseUrl
|
|
2938
|
-
/**
|
|
2939
|
-
|
|
2940
|
-
|
|
2941
|
-
|
|
2942
|
-
|
|
2943
|
-
|
|
2944
|
-
/**
|
|
2945
|
-
* Custom `fetch` implementation. Defaults to `globalThis.fetch`.
|
|
2946
|
-
* Pass a bound fetch in edge runtimes if needed.
|
|
2947
|
-
*/
|
|
2948
|
-
fetch?: typeof fetch;
|
|
2887
|
+
type ZilfuToken = string | (() => string | Promise<string>);
|
|
2888
|
+
type ZilfuFetch = typeof globalThis.fetch;
|
|
2889
|
+
interface CreateZilfuClientOptions {
|
|
2890
|
+
/** Base URL of the Zilfu API, e.g. `https://zilfu.app/api`. */
|
|
2891
|
+
baseUrl?: string;
|
|
2892
|
+
/** API token (string) or a function returning one (sync or async). */
|
|
2893
|
+
token: ZilfuToken;
|
|
2894
|
+
/** Custom fetch implementation, e.g. `undici.fetch` or a wrapped fetch. */
|
|
2895
|
+
fetch?: ZilfuFetch;
|
|
2896
|
+
/** Default headers merged into every request. */
|
|
2897
|
+
headers?: Record<string, string>;
|
|
2949
2898
|
}
|
|
2950
|
-
|
|
2951
|
-
|
|
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: {...} });
|
|
2957
|
-
*/
|
|
2958
|
-
declare function createZilfuClient(options: CreateClientOptions): ZilfuClient;
|
|
2899
|
+
type ZilfuClient = ZilfuApi;
|
|
2900
|
+
declare function createZilfuClient(opts: CreateZilfuClientOptions): ZilfuClient;
|
|
2959
2901
|
|
|
2960
|
-
|
|
2902
|
+
interface ZilfuApiErrorInit {
|
|
2903
|
+
status: number;
|
|
2904
|
+
statusText?: string;
|
|
2905
|
+
url?: string;
|
|
2906
|
+
body?: unknown;
|
|
2907
|
+
}
|
|
2908
|
+
declare class ZilfuApiError extends Error {
|
|
2909
|
+
readonly status: number;
|
|
2910
|
+
readonly statusText: string | undefined;
|
|
2911
|
+
readonly url: string | undefined;
|
|
2912
|
+
readonly body: unknown;
|
|
2913
|
+
readonly errors: Record<string, string[]> | undefined;
|
|
2914
|
+
constructor(init: ZilfuApiErrorInit);
|
|
2915
|
+
}
|
|
2961
2916
|
|
|
2962
|
-
export { type AccountResource,
|
|
2917
|
+
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 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 };
|