@zilfu/sdk 0.1.0 → 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 +113 -21
- package/dist/index.cjs +83 -33
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +60 -35
- package/dist/index.d.ts +60 -35
- package/dist/index.js +83 -20
- package/dist/index.js.map +1 -1
- package/package.json +15 -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
|
@@ -1462,6 +1462,25 @@ type PostSpacesBySpaceBioAvatarResponses = {
|
|
|
1462
1462
|
};
|
|
1463
1463
|
};
|
|
1464
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];
|
|
1465
1484
|
type PostMediaData = {
|
|
1466
1485
|
body: {
|
|
1467
1486
|
file: Blob | File;
|
|
@@ -2723,7 +2742,7 @@ declare class Accounts extends HeyApiClient {
|
|
|
2723
2742
|
*/
|
|
2724
2743
|
delete<ThrowOnError extends boolean = false>(options: Options<DeleteSpacesBySpaceAccountsByAccountData, ThrowOnError>): RequestResult<DeleteSpacesBySpaceAccountsByAccountResponses, DeleteSpacesBySpaceAccountsByAccountErrors, ThrowOnError, "fields">;
|
|
2725
2744
|
}
|
|
2726
|
-
declare class
|
|
2745
|
+
declare class ApiTokens extends HeyApiClient {
|
|
2727
2746
|
/**
|
|
2728
2747
|
* Create an API token
|
|
2729
2748
|
*
|
|
@@ -2737,7 +2756,7 @@ declare class Tokens extends HeyApiClient {
|
|
|
2737
2756
|
*/
|
|
2738
2757
|
delete<ThrowOnError extends boolean = false>(options: Options<DeleteApiTokensByTokenIdData, ThrowOnError>): RequestResult<DeleteApiTokensByTokenIdResponses, DeleteApiTokensByTokenIdErrors, ThrowOnError, "fields">;
|
|
2739
2758
|
}
|
|
2740
|
-
declare class
|
|
2759
|
+
declare class Blocks extends HeyApiClient {
|
|
2741
2760
|
list<ThrowOnError extends boolean = false>(options: Options<GetSpacesBySpaceBioBlocksData, ThrowOnError>): RequestResult<GetSpacesBySpaceBioBlocksResponses, GetSpacesBySpaceBioBlocksErrors, ThrowOnError, "fields">;
|
|
2742
2761
|
create<ThrowOnError extends boolean = false>(options: Options<PostSpacesBySpaceBioBlocksData, ThrowOnError>): RequestResult<PostSpacesBySpaceBioBlocksResponses, PostSpacesBySpaceBioBlocksErrors, ThrowOnError, "fields">;
|
|
2743
2762
|
delete<ThrowOnError extends boolean = false>(options: Options<DeleteSpacesBySpaceBioBlocksByBlockData, ThrowOnError>): RequestResult<DeleteSpacesBySpaceBioBlocksByBlockResponses, DeleteSpacesBySpaceBioBlocksByBlockErrors, ThrowOnError, "fields">;
|
|
@@ -2749,6 +2768,11 @@ declare class Bio extends HeyApiClient {
|
|
|
2749
2768
|
create<ThrowOnError extends boolean = false>(options: Options<PostSpacesBySpaceBioData, ThrowOnError>): RequestResult<PostSpacesBySpaceBioResponses, PostSpacesBySpaceBioErrors, ThrowOnError, "fields">;
|
|
2750
2769
|
update<ThrowOnError extends boolean = false>(options: Options<PutSpacesBySpaceBioData, ThrowOnError>): RequestResult<PutSpacesBySpaceBioResponses, PutSpacesBySpaceBioErrors, ThrowOnError, "fields">;
|
|
2751
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">;
|
|
2752
2776
|
}
|
|
2753
2777
|
declare class Media extends HeyApiClient {
|
|
2754
2778
|
/**
|
|
@@ -2898,20 +2922,20 @@ declare class Webhooks extends HeyApiClient {
|
|
|
2898
2922
|
*/
|
|
2899
2923
|
update<ThrowOnError extends boolean = false>(options: Options<PutSpacesBySpaceWebhooksByWebhookData, ThrowOnError>): RequestResult<PutSpacesBySpaceWebhooksByWebhookResponses, PutSpacesBySpaceWebhooksByWebhookErrors, ThrowOnError, "fields">;
|
|
2900
2924
|
}
|
|
2901
|
-
declare class
|
|
2902
|
-
static readonly __registry: HeyApiRegistry<
|
|
2925
|
+
declare class ZilfuApi extends HeyApiClient {
|
|
2926
|
+
static readonly __registry: HeyApiRegistry<ZilfuApi>;
|
|
2903
2927
|
constructor(args?: {
|
|
2904
2928
|
client?: Client;
|
|
2905
2929
|
key?: string;
|
|
2906
2930
|
});
|
|
2907
2931
|
private _accounts?;
|
|
2908
2932
|
get accounts(): Accounts;
|
|
2909
|
-
private
|
|
2910
|
-
get
|
|
2911
|
-
private _bioBlocks?;
|
|
2912
|
-
get bioBlocks(): BioBlocks;
|
|
2933
|
+
private _apiTokens?;
|
|
2934
|
+
get apiTokens(): ApiTokens;
|
|
2913
2935
|
private _bio?;
|
|
2914
2936
|
get bio(): Bio;
|
|
2937
|
+
private _health?;
|
|
2938
|
+
get health(): Health;
|
|
2915
2939
|
private _media?;
|
|
2916
2940
|
get media(): Media;
|
|
2917
2941
|
private _posts?;
|
|
@@ -2930,33 +2954,34 @@ declare class ZilfuClient extends HeyApiClient {
|
|
|
2930
2954
|
get webhooks(): Webhooks;
|
|
2931
2955
|
}
|
|
2932
2956
|
|
|
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;
|
|
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>;
|
|
2949
2968
|
}
|
|
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;
|
|
2969
|
+
type ZilfuClient = ZilfuApi;
|
|
2970
|
+
declare function createZilfuClient(opts: CreateZilfuClientOptions): ZilfuClient;
|
|
2959
2971
|
|
|
2960
|
-
|
|
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
|
+
}
|
|
2961
2986
|
|
|
2962
|
-
export { type AccountResource,
|
|
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 };
|
package/dist/index.d.ts
CHANGED
|
@@ -1462,6 +1462,25 @@ type PostSpacesBySpaceBioAvatarResponses = {
|
|
|
1462
1462
|
};
|
|
1463
1463
|
};
|
|
1464
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];
|
|
1465
1484
|
type PostMediaData = {
|
|
1466
1485
|
body: {
|
|
1467
1486
|
file: Blob | File;
|
|
@@ -2723,7 +2742,7 @@ declare class Accounts extends HeyApiClient {
|
|
|
2723
2742
|
*/
|
|
2724
2743
|
delete<ThrowOnError extends boolean = false>(options: Options<DeleteSpacesBySpaceAccountsByAccountData, ThrowOnError>): RequestResult<DeleteSpacesBySpaceAccountsByAccountResponses, DeleteSpacesBySpaceAccountsByAccountErrors, ThrowOnError, "fields">;
|
|
2725
2744
|
}
|
|
2726
|
-
declare class
|
|
2745
|
+
declare class ApiTokens extends HeyApiClient {
|
|
2727
2746
|
/**
|
|
2728
2747
|
* Create an API token
|
|
2729
2748
|
*
|
|
@@ -2737,7 +2756,7 @@ declare class Tokens extends HeyApiClient {
|
|
|
2737
2756
|
*/
|
|
2738
2757
|
delete<ThrowOnError extends boolean = false>(options: Options<DeleteApiTokensByTokenIdData, ThrowOnError>): RequestResult<DeleteApiTokensByTokenIdResponses, DeleteApiTokensByTokenIdErrors, ThrowOnError, "fields">;
|
|
2739
2758
|
}
|
|
2740
|
-
declare class
|
|
2759
|
+
declare class Blocks extends HeyApiClient {
|
|
2741
2760
|
list<ThrowOnError extends boolean = false>(options: Options<GetSpacesBySpaceBioBlocksData, ThrowOnError>): RequestResult<GetSpacesBySpaceBioBlocksResponses, GetSpacesBySpaceBioBlocksErrors, ThrowOnError, "fields">;
|
|
2742
2761
|
create<ThrowOnError extends boolean = false>(options: Options<PostSpacesBySpaceBioBlocksData, ThrowOnError>): RequestResult<PostSpacesBySpaceBioBlocksResponses, PostSpacesBySpaceBioBlocksErrors, ThrowOnError, "fields">;
|
|
2743
2762
|
delete<ThrowOnError extends boolean = false>(options: Options<DeleteSpacesBySpaceBioBlocksByBlockData, ThrowOnError>): RequestResult<DeleteSpacesBySpaceBioBlocksByBlockResponses, DeleteSpacesBySpaceBioBlocksByBlockErrors, ThrowOnError, "fields">;
|
|
@@ -2749,6 +2768,11 @@ declare class Bio extends HeyApiClient {
|
|
|
2749
2768
|
create<ThrowOnError extends boolean = false>(options: Options<PostSpacesBySpaceBioData, ThrowOnError>): RequestResult<PostSpacesBySpaceBioResponses, PostSpacesBySpaceBioErrors, ThrowOnError, "fields">;
|
|
2750
2769
|
update<ThrowOnError extends boolean = false>(options: Options<PutSpacesBySpaceBioData, ThrowOnError>): RequestResult<PutSpacesBySpaceBioResponses, PutSpacesBySpaceBioErrors, ThrowOnError, "fields">;
|
|
2751
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">;
|
|
2752
2776
|
}
|
|
2753
2777
|
declare class Media extends HeyApiClient {
|
|
2754
2778
|
/**
|
|
@@ -2898,20 +2922,20 @@ declare class Webhooks extends HeyApiClient {
|
|
|
2898
2922
|
*/
|
|
2899
2923
|
update<ThrowOnError extends boolean = false>(options: Options<PutSpacesBySpaceWebhooksByWebhookData, ThrowOnError>): RequestResult<PutSpacesBySpaceWebhooksByWebhookResponses, PutSpacesBySpaceWebhooksByWebhookErrors, ThrowOnError, "fields">;
|
|
2900
2924
|
}
|
|
2901
|
-
declare class
|
|
2902
|
-
static readonly __registry: HeyApiRegistry<
|
|
2925
|
+
declare class ZilfuApi extends HeyApiClient {
|
|
2926
|
+
static readonly __registry: HeyApiRegistry<ZilfuApi>;
|
|
2903
2927
|
constructor(args?: {
|
|
2904
2928
|
client?: Client;
|
|
2905
2929
|
key?: string;
|
|
2906
2930
|
});
|
|
2907
2931
|
private _accounts?;
|
|
2908
2932
|
get accounts(): Accounts;
|
|
2909
|
-
private
|
|
2910
|
-
get
|
|
2911
|
-
private _bioBlocks?;
|
|
2912
|
-
get bioBlocks(): BioBlocks;
|
|
2933
|
+
private _apiTokens?;
|
|
2934
|
+
get apiTokens(): ApiTokens;
|
|
2913
2935
|
private _bio?;
|
|
2914
2936
|
get bio(): Bio;
|
|
2937
|
+
private _health?;
|
|
2938
|
+
get health(): Health;
|
|
2915
2939
|
private _media?;
|
|
2916
2940
|
get media(): Media;
|
|
2917
2941
|
private _posts?;
|
|
@@ -2930,33 +2954,34 @@ declare class ZilfuClient extends HeyApiClient {
|
|
|
2930
2954
|
get webhooks(): Webhooks;
|
|
2931
2955
|
}
|
|
2932
2956
|
|
|
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;
|
|
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>;
|
|
2949
2968
|
}
|
|
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;
|
|
2969
|
+
type ZilfuClient = ZilfuApi;
|
|
2970
|
+
declare function createZilfuClient(opts: CreateZilfuClientOptions): ZilfuClient;
|
|
2959
2971
|
|
|
2960
|
-
|
|
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
|
+
}
|
|
2961
2986
|
|
|
2962
|
-
export { type AccountResource,
|
|
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 };
|
package/dist/index.js
CHANGED
|
@@ -821,7 +821,7 @@ var HeyApiRegistry = class {
|
|
|
821
821
|
get(key) {
|
|
822
822
|
const instance = this.instances.get(key ?? this.defaultKey);
|
|
823
823
|
if (!instance) {
|
|
824
|
-
throw new Error(`No SDK client found. Create one with "new
|
|
824
|
+
throw new Error(`No SDK client found. Create one with "new ZilfuApi()" to fix this error.`);
|
|
825
825
|
}
|
|
826
826
|
return instance;
|
|
827
827
|
}
|
|
@@ -891,7 +891,7 @@ var Accounts = class extends HeyApiClient {
|
|
|
891
891
|
});
|
|
892
892
|
}
|
|
893
893
|
};
|
|
894
|
-
var
|
|
894
|
+
var ApiTokens = class extends HeyApiClient {
|
|
895
895
|
/**
|
|
896
896
|
* Create an API token
|
|
897
897
|
*
|
|
@@ -921,7 +921,7 @@ var Tokens = class extends HeyApiClient {
|
|
|
921
921
|
});
|
|
922
922
|
}
|
|
923
923
|
};
|
|
924
|
-
var
|
|
924
|
+
var Blocks = class extends HeyApiClient {
|
|
925
925
|
list(options) {
|
|
926
926
|
return (options.client ?? this.client).get({
|
|
927
927
|
security: [{ scheme: "bearer", type: "http" }],
|
|
@@ -1012,6 +1012,19 @@ var Bio = class extends HeyApiClient {
|
|
|
1012
1012
|
}
|
|
1013
1013
|
});
|
|
1014
1014
|
}
|
|
1015
|
+
_blocks;
|
|
1016
|
+
get blocks() {
|
|
1017
|
+
return this._blocks ??= new Blocks({ client: this.client });
|
|
1018
|
+
}
|
|
1019
|
+
};
|
|
1020
|
+
var Health = class extends HeyApiClient {
|
|
1021
|
+
check(options) {
|
|
1022
|
+
return (options?.client ?? this.client).get({
|
|
1023
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1024
|
+
url: "/health",
|
|
1025
|
+
...options
|
|
1026
|
+
});
|
|
1027
|
+
}
|
|
1015
1028
|
};
|
|
1016
1029
|
var Media = class extends HeyApiClient {
|
|
1017
1030
|
/**
|
|
@@ -1330,28 +1343,28 @@ var Webhooks = class extends HeyApiClient {
|
|
|
1330
1343
|
});
|
|
1331
1344
|
}
|
|
1332
1345
|
};
|
|
1333
|
-
var
|
|
1346
|
+
var ZilfuApi = class _ZilfuApi extends HeyApiClient {
|
|
1334
1347
|
static __registry = new HeyApiRegistry();
|
|
1335
1348
|
constructor(args) {
|
|
1336
1349
|
super(args);
|
|
1337
|
-
|
|
1350
|
+
_ZilfuApi.__registry.set(this, args?.key);
|
|
1338
1351
|
}
|
|
1339
1352
|
_accounts;
|
|
1340
1353
|
get accounts() {
|
|
1341
1354
|
return this._accounts ??= new Accounts({ client: this.client });
|
|
1342
1355
|
}
|
|
1343
|
-
|
|
1344
|
-
get
|
|
1345
|
-
return this.
|
|
1346
|
-
}
|
|
1347
|
-
_bioBlocks;
|
|
1348
|
-
get bioBlocks() {
|
|
1349
|
-
return this._bioBlocks ??= new BioBlocks({ client: this.client });
|
|
1356
|
+
_apiTokens;
|
|
1357
|
+
get apiTokens() {
|
|
1358
|
+
return this._apiTokens ??= new ApiTokens({ client: this.client });
|
|
1350
1359
|
}
|
|
1351
1360
|
_bio;
|
|
1352
1361
|
get bio() {
|
|
1353
1362
|
return this._bio ??= new Bio({ client: this.client });
|
|
1354
1363
|
}
|
|
1364
|
+
_health;
|
|
1365
|
+
get health() {
|
|
1366
|
+
return this._health ??= new Health({ client: this.client });
|
|
1367
|
+
}
|
|
1355
1368
|
_media;
|
|
1356
1369
|
get media() {
|
|
1357
1370
|
return this._media ??= new Media({ client: this.client });
|
|
@@ -1386,17 +1399,67 @@ var ZilfuClient = class _ZilfuClient extends HeyApiClient {
|
|
|
1386
1399
|
}
|
|
1387
1400
|
};
|
|
1388
1401
|
|
|
1402
|
+
// src/errors.ts
|
|
1403
|
+
var ZilfuApiError = class extends Error {
|
|
1404
|
+
status;
|
|
1405
|
+
statusText;
|
|
1406
|
+
url;
|
|
1407
|
+
body;
|
|
1408
|
+
errors;
|
|
1409
|
+
constructor(init) {
|
|
1410
|
+
const message = extractMessage(init);
|
|
1411
|
+
super(message);
|
|
1412
|
+
this.name = "ZilfuApiError";
|
|
1413
|
+
this.status = init.status;
|
|
1414
|
+
this.statusText = init.statusText;
|
|
1415
|
+
this.url = init.url;
|
|
1416
|
+
this.body = init.body;
|
|
1417
|
+
this.errors = extractValidationErrors(init.body);
|
|
1418
|
+
}
|
|
1419
|
+
};
|
|
1420
|
+
function extractMessage(init) {
|
|
1421
|
+
const body = init.body;
|
|
1422
|
+
if (body && typeof body === "object" && "message" in body) {
|
|
1423
|
+
const m = body.message;
|
|
1424
|
+
if (typeof m === "string" && m.length > 0) {
|
|
1425
|
+
return m;
|
|
1426
|
+
}
|
|
1427
|
+
}
|
|
1428
|
+
return `Zilfu API ${init.status}${init.statusText ? ` ${init.statusText}` : ""}`;
|
|
1429
|
+
}
|
|
1430
|
+
function extractValidationErrors(body) {
|
|
1431
|
+
if (!body || typeof body !== "object" || !("errors" in body)) {
|
|
1432
|
+
return void 0;
|
|
1433
|
+
}
|
|
1434
|
+
const errors = body.errors;
|
|
1435
|
+
if (!errors || typeof errors !== "object") {
|
|
1436
|
+
return void 0;
|
|
1437
|
+
}
|
|
1438
|
+
return errors;
|
|
1439
|
+
}
|
|
1440
|
+
|
|
1389
1441
|
// src/client.ts
|
|
1390
|
-
function createZilfuClient(
|
|
1391
|
-
const
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1442
|
+
function createZilfuClient(opts) {
|
|
1443
|
+
const client2 = createClient(
|
|
1444
|
+
createConfig({
|
|
1445
|
+
baseUrl: opts.baseUrl ?? "https://zilfu.app/api",
|
|
1446
|
+
fetch: opts.fetch,
|
|
1447
|
+
headers: { accept: "application/json", ...opts.headers },
|
|
1448
|
+
auth: opts.token,
|
|
1449
|
+
throwOnError: true
|
|
1450
|
+
})
|
|
1451
|
+
);
|
|
1452
|
+
client2.interceptors.error.use((error, response) => {
|
|
1453
|
+
return new ZilfuApiError({
|
|
1454
|
+
status: response?.status ?? 0,
|
|
1455
|
+
statusText: response?.statusText,
|
|
1456
|
+
url: response?.url,
|
|
1457
|
+
body: error
|
|
1458
|
+
});
|
|
1396
1459
|
});
|
|
1397
|
-
return new
|
|
1460
|
+
return new ZilfuApi({ client: client2 });
|
|
1398
1461
|
}
|
|
1399
1462
|
|
|
1400
|
-
export {
|
|
1463
|
+
export { ZilfuApiError, createZilfuClient };
|
|
1401
1464
|
//# sourceMappingURL=index.js.map
|
|
1402
1465
|
//# sourceMappingURL=index.js.map
|