@questpie/admin 1.1.0 → 1.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/dist/{client-B7r47hEd.d.mts → client-D1DqawtP.d.mts} +377 -377
- package/dist/client-D1DqawtP.d.mts.map +1 -0
- package/dist/client.d.mts +2 -2
- package/dist/{index-BYyqkWtn.d.mts → index-B4H3amCD.d.mts} +320 -320
- package/dist/{index-BYyqkWtn.d.mts.map → index-B4H3amCD.d.mts.map} +1 -1
- package/dist/index.d.mts +2 -2
- package/dist/server.d.mts +1 -1
- package/package.json +3 -3
- package/dist/client-B7r47hEd.d.mts.map +0 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { t as adminModule$1 } from "./index-
|
|
1
|
+
import { t as adminModule$1 } from "./index-B4H3amCD.mjs";
|
|
2
2
|
import { i as ViewConfiguration } from "./saved-views.types-BMsz5mCy.mjs";
|
|
3
3
|
import * as questpie_shared0 from "questpie/shared";
|
|
4
4
|
import { Prettify, SetProperty, TypeMerge, UnsetProperty } from "questpie/shared";
|
|
5
5
|
import * as React$2 from "react";
|
|
6
6
|
import React$1, { ReactElement, ReactNode } from "react";
|
|
7
|
-
import * as
|
|
7
|
+
import * as zod169 from "zod";
|
|
8
8
|
import { z } from "zod";
|
|
9
9
|
import { Control } from "react-hook-form";
|
|
10
10
|
import * as react_jsx_runtime11 from "react/jsx-runtime";
|
|
@@ -13,7 +13,7 @@ import "class-variance-authority";
|
|
|
13
13
|
import { Select } from "@base-ui/react/select";
|
|
14
14
|
import { useRender } from "@base-ui/react/use-render";
|
|
15
15
|
import { useShallow } from "zustand/shallow";
|
|
16
|
-
import * as
|
|
16
|
+
import * as _tanstack_react_query6 from "@tanstack/react-query";
|
|
17
17
|
import { QueryClient, UseMutationOptions, UseQueryOptions } from "@tanstack/react-query";
|
|
18
18
|
import * as zustand0 from "zustand";
|
|
19
19
|
import { Checkbox } from "@base-ui/react/checkbox";
|
|
@@ -33,14 +33,14 @@ import "@tanstack/react-table";
|
|
|
33
33
|
import "@base-ui/react/avatar";
|
|
34
34
|
import "@base-ui/react";
|
|
35
35
|
import "@base-ui/react/scroll-area";
|
|
36
|
-
import * as
|
|
36
|
+
import * as questpie134 from "questpie";
|
|
37
37
|
import { CollectionInfer, Questpie } from "questpie";
|
|
38
|
-
import * as
|
|
39
|
-
import * as
|
|
40
|
-
import * as
|
|
38
|
+
import * as drizzle_orm_pg_core116 from "drizzle-orm/pg-core";
|
|
39
|
+
import * as drizzle_orm57 from "drizzle-orm";
|
|
40
|
+
import * as better_auth63 from "better-auth";
|
|
41
41
|
import { BetterAuthOptions } from "better-auth";
|
|
42
|
-
import * as
|
|
43
|
-
import * as
|
|
42
|
+
import * as better_call62 from "better-call";
|
|
43
|
+
import * as better_auth_plugins25 from "better-auth/plugins";
|
|
44
44
|
|
|
45
45
|
//#region rolldown:runtime
|
|
46
46
|
//#endregion
|
|
@@ -4746,150 +4746,150 @@ declare function useAdminStore<T$1>(selector: (state: AdminState) => T$1): T$1;
|
|
|
4746
4746
|
/** Select admin instance */
|
|
4747
4747
|
declare const selectAdmin: (s: AdminState) => Admin<AdminBuilderState<any, FieldDefinitionMap, ListViewDefinitionMap, EditViewDefinitionMap, PageDefinitionMap, WidgetDefinitionMap, CollectionConfigMap, GlobalConfigMap, BlockDefinitionMap>>;
|
|
4748
4748
|
/** Select client instance */
|
|
4749
|
-
declare const selectClient: (s: AdminState) => QuestpieClient<
|
|
4750
|
-
locale:
|
|
4749
|
+
declare const selectClient: (s: AdminState) => QuestpieClient<questpie134.Questpie<{
|
|
4750
|
+
locale: questpie134.LocaleConfig | undefined;
|
|
4751
4751
|
email: {
|
|
4752
|
-
templates:
|
|
4753
|
-
adapter:
|
|
4752
|
+
templates: questpie134.TypeMerge<questpie134.UnsetProperty<{}, keyof TOtherEmailTemplates>, {}>;
|
|
4753
|
+
adapter: questpie134.MailAdapter;
|
|
4754
4754
|
};
|
|
4755
|
-
search:
|
|
4755
|
+
search: questpie134.SearchAdapter | undefined;
|
|
4756
4756
|
collections: {
|
|
4757
|
-
user:
|
|
4757
|
+
user: questpie134.CollectionBuilder<{
|
|
4758
4758
|
options: {
|
|
4759
4759
|
timestamps: true;
|
|
4760
4760
|
};
|
|
4761
4761
|
name: "user";
|
|
4762
4762
|
fields: {
|
|
4763
|
-
name:
|
|
4764
|
-
email:
|
|
4765
|
-
emailVerified:
|
|
4766
|
-
image:
|
|
4767
|
-
role:
|
|
4768
|
-
banned:
|
|
4769
|
-
banReason:
|
|
4770
|
-
banExpires:
|
|
4763
|
+
name: drizzle_orm57.NotNull<drizzle_orm_pg_core116.PgVarcharBuilder<[string, ...string[]]>>;
|
|
4764
|
+
email: drizzle_orm57.NotNull<drizzle_orm_pg_core116.PgVarcharBuilder<[string, ...string[]]>>;
|
|
4765
|
+
emailVerified: drizzle_orm57.NotNull<drizzle_orm_pg_core116.PgBooleanBuilder>;
|
|
4766
|
+
image: drizzle_orm_pg_core116.PgVarcharBuilder<[string, ...string[]]>;
|
|
4767
|
+
role: drizzle_orm_pg_core116.PgVarcharBuilder<[string, ...string[]]>;
|
|
4768
|
+
banned: drizzle_orm57.HasDefault<drizzle_orm_pg_core116.PgBooleanBuilder>;
|
|
4769
|
+
banReason: drizzle_orm_pg_core116.PgVarcharBuilder<[string, ...string[]]>;
|
|
4770
|
+
banExpires: drizzle_orm_pg_core116.PgTimestampBuilder;
|
|
4771
4771
|
};
|
|
4772
4772
|
localized: [];
|
|
4773
4773
|
virtuals: undefined;
|
|
4774
|
-
relations: Record<string,
|
|
4774
|
+
relations: Record<string, questpie134.RelationConfig>;
|
|
4775
4775
|
indexes: Record<string, any>;
|
|
4776
4776
|
title: "name";
|
|
4777
|
-
hooks:
|
|
4778
|
-
access:
|
|
4777
|
+
hooks: questpie134.CollectionHooks<any, any, any, any>;
|
|
4778
|
+
access: questpie134.CollectionAccess<any, any>;
|
|
4779
4779
|
functions: {
|
|
4780
|
-
[x: string]:
|
|
4780
|
+
[x: string]: questpie134.FunctionDefinition<any, any, any>;
|
|
4781
4781
|
};
|
|
4782
4782
|
searchable: undefined;
|
|
4783
4783
|
validation: undefined;
|
|
4784
4784
|
output: undefined;
|
|
4785
4785
|
upload: undefined;
|
|
4786
4786
|
}>;
|
|
4787
|
-
session:
|
|
4788
|
-
options:
|
|
4787
|
+
session: questpie134.CollectionBuilder<{
|
|
4788
|
+
options: questpie134.CollectionOptions;
|
|
4789
4789
|
name: "session";
|
|
4790
4790
|
fields: {
|
|
4791
|
-
userId:
|
|
4792
|
-
token:
|
|
4793
|
-
expiresAt:
|
|
4794
|
-
ipAddress:
|
|
4795
|
-
userAgent:
|
|
4796
|
-
impersonatedBy:
|
|
4791
|
+
userId: drizzle_orm57.NotNull<drizzle_orm_pg_core116.PgVarcharBuilder<[string, ...string[]]>>;
|
|
4792
|
+
token: drizzle_orm57.NotNull<drizzle_orm_pg_core116.PgVarcharBuilder<[string, ...string[]]>>;
|
|
4793
|
+
expiresAt: drizzle_orm57.NotNull<drizzle_orm_pg_core116.PgTimestampBuilder>;
|
|
4794
|
+
ipAddress: drizzle_orm_pg_core116.PgVarcharBuilder<[string, ...string[]]>;
|
|
4795
|
+
userAgent: drizzle_orm_pg_core116.PgVarcharBuilder<[string, ...string[]]>;
|
|
4796
|
+
impersonatedBy: drizzle_orm_pg_core116.PgVarcharBuilder<[string, ...string[]]>;
|
|
4797
4797
|
};
|
|
4798
4798
|
localized: [];
|
|
4799
4799
|
virtuals: undefined;
|
|
4800
|
-
relations: Record<string,
|
|
4800
|
+
relations: Record<string, questpie134.RelationConfig>;
|
|
4801
4801
|
indexes: Record<string, any>;
|
|
4802
4802
|
title: "token";
|
|
4803
|
-
hooks:
|
|
4804
|
-
access:
|
|
4803
|
+
hooks: questpie134.CollectionHooks<any, any, any, any>;
|
|
4804
|
+
access: questpie134.CollectionAccess<any, any>;
|
|
4805
4805
|
functions: {
|
|
4806
|
-
[x: string]:
|
|
4806
|
+
[x: string]: questpie134.FunctionDefinition<any, any, any>;
|
|
4807
4807
|
};
|
|
4808
4808
|
searchable: undefined;
|
|
4809
4809
|
validation: undefined;
|
|
4810
4810
|
output: undefined;
|
|
4811
4811
|
upload: undefined;
|
|
4812
4812
|
}>;
|
|
4813
|
-
account:
|
|
4814
|
-
options:
|
|
4813
|
+
account: questpie134.CollectionBuilder<{
|
|
4814
|
+
options: questpie134.CollectionOptions;
|
|
4815
4815
|
name: "account";
|
|
4816
4816
|
fields: {
|
|
4817
|
-
userId:
|
|
4818
|
-
accountId:
|
|
4819
|
-
providerId:
|
|
4820
|
-
accessToken:
|
|
4821
|
-
refreshToken:
|
|
4822
|
-
accessTokenExpiresAt:
|
|
4823
|
-
refreshTokenExpiresAt:
|
|
4824
|
-
scope:
|
|
4825
|
-
idToken:
|
|
4826
|
-
password:
|
|
4817
|
+
userId: drizzle_orm57.NotNull<drizzle_orm_pg_core116.PgVarcharBuilder<[string, ...string[]]>>;
|
|
4818
|
+
accountId: drizzle_orm57.NotNull<drizzle_orm_pg_core116.PgVarcharBuilder<[string, ...string[]]>>;
|
|
4819
|
+
providerId: drizzle_orm57.NotNull<drizzle_orm_pg_core116.PgVarcharBuilder<[string, ...string[]]>>;
|
|
4820
|
+
accessToken: drizzle_orm_pg_core116.PgVarcharBuilder<[string, ...string[]]>;
|
|
4821
|
+
refreshToken: drizzle_orm_pg_core116.PgVarcharBuilder<[string, ...string[]]>;
|
|
4822
|
+
accessTokenExpiresAt: drizzle_orm_pg_core116.PgTimestampBuilder;
|
|
4823
|
+
refreshTokenExpiresAt: drizzle_orm_pg_core116.PgTimestampBuilder;
|
|
4824
|
+
scope: drizzle_orm_pg_core116.PgVarcharBuilder<[string, ...string[]]>;
|
|
4825
|
+
idToken: drizzle_orm_pg_core116.PgVarcharBuilder<[string, ...string[]]>;
|
|
4826
|
+
password: drizzle_orm_pg_core116.PgVarcharBuilder<[string, ...string[]]>;
|
|
4827
4827
|
};
|
|
4828
4828
|
localized: [];
|
|
4829
4829
|
virtuals: undefined;
|
|
4830
|
-
relations: Record<string,
|
|
4830
|
+
relations: Record<string, questpie134.RelationConfig>;
|
|
4831
4831
|
indexes: Record<string, any>;
|
|
4832
4832
|
title: "providerId";
|
|
4833
|
-
hooks:
|
|
4834
|
-
access:
|
|
4833
|
+
hooks: questpie134.CollectionHooks<any, any, any, any>;
|
|
4834
|
+
access: questpie134.CollectionAccess<any, any>;
|
|
4835
4835
|
functions: {
|
|
4836
|
-
[x: string]:
|
|
4836
|
+
[x: string]: questpie134.FunctionDefinition<any, any, any>;
|
|
4837
4837
|
};
|
|
4838
4838
|
searchable: undefined;
|
|
4839
4839
|
validation: undefined;
|
|
4840
4840
|
output: undefined;
|
|
4841
4841
|
upload: undefined;
|
|
4842
4842
|
}>;
|
|
4843
|
-
verification:
|
|
4844
|
-
options:
|
|
4843
|
+
verification: questpie134.CollectionBuilder<{
|
|
4844
|
+
options: questpie134.CollectionOptions;
|
|
4845
4845
|
name: "verification";
|
|
4846
4846
|
fields: {
|
|
4847
|
-
identifier:
|
|
4848
|
-
value:
|
|
4849
|
-
expiresAt:
|
|
4847
|
+
identifier: drizzle_orm57.NotNull<drizzle_orm_pg_core116.PgVarcharBuilder<[string, ...string[]]>>;
|
|
4848
|
+
value: drizzle_orm57.NotNull<drizzle_orm_pg_core116.PgVarcharBuilder<[string, ...string[]]>>;
|
|
4849
|
+
expiresAt: drizzle_orm57.NotNull<drizzle_orm_pg_core116.PgTimestampBuilder>;
|
|
4850
4850
|
};
|
|
4851
4851
|
localized: [];
|
|
4852
4852
|
virtuals: undefined;
|
|
4853
|
-
relations: Record<string,
|
|
4853
|
+
relations: Record<string, questpie134.RelationConfig>;
|
|
4854
4854
|
indexes: Record<string, any>;
|
|
4855
4855
|
title: "identifier";
|
|
4856
|
-
hooks:
|
|
4857
|
-
access:
|
|
4856
|
+
hooks: questpie134.CollectionHooks<any, any, any, any>;
|
|
4857
|
+
access: questpie134.CollectionAccess<any, any>;
|
|
4858
4858
|
functions: {
|
|
4859
|
-
[x: string]:
|
|
4859
|
+
[x: string]: questpie134.FunctionDefinition<any, any, any>;
|
|
4860
4860
|
};
|
|
4861
4861
|
searchable: undefined;
|
|
4862
4862
|
validation: undefined;
|
|
4863
4863
|
output: undefined;
|
|
4864
4864
|
upload: undefined;
|
|
4865
4865
|
}>;
|
|
4866
|
-
assets:
|
|
4866
|
+
assets: questpie134.CollectionBuilder<{
|
|
4867
4867
|
options: {
|
|
4868
4868
|
timestamps: true;
|
|
4869
4869
|
};
|
|
4870
4870
|
name: "assets";
|
|
4871
4871
|
fields: {
|
|
4872
|
-
width:
|
|
4873
|
-
height:
|
|
4874
|
-
alt:
|
|
4875
|
-
caption:
|
|
4872
|
+
width: drizzle_orm_pg_core116.PgIntegerBuilder;
|
|
4873
|
+
height: drizzle_orm_pg_core116.PgIntegerBuilder;
|
|
4874
|
+
alt: drizzle_orm_pg_core116.PgVarcharBuilder<[string, ...string[]]>;
|
|
4875
|
+
caption: drizzle_orm_pg_core116.PgTextBuilder<[string, ...string[]]>;
|
|
4876
4876
|
} & {
|
|
4877
|
-
key:
|
|
4878
|
-
filename:
|
|
4879
|
-
mimeType:
|
|
4880
|
-
size:
|
|
4881
|
-
visibility:
|
|
4877
|
+
key: drizzle_orm57.NotNull<drizzle_orm_pg_core116.PgVarcharBuilder<[string, ...string[]]>>;
|
|
4878
|
+
filename: drizzle_orm57.NotNull<drizzle_orm_pg_core116.PgVarcharBuilder<[string, ...string[]]>>;
|
|
4879
|
+
mimeType: drizzle_orm57.NotNull<drizzle_orm_pg_core116.PgVarcharBuilder<[string, ...string[]]>>;
|
|
4880
|
+
size: drizzle_orm57.NotNull<drizzle_orm_pg_core116.PgIntegerBuilder>;
|
|
4881
|
+
visibility: drizzle_orm57.HasDefault<drizzle_orm57.NotNull<drizzle_orm_pg_core116.PgVarcharBuilder<["public", "private"]>>>;
|
|
4882
4882
|
};
|
|
4883
4883
|
localized: [];
|
|
4884
4884
|
virtuals: undefined;
|
|
4885
|
-
relations: Record<string,
|
|
4885
|
+
relations: Record<string, questpie134.RelationConfig>;
|
|
4886
4886
|
indexes: Record<string, any>;
|
|
4887
4887
|
title: "filename";
|
|
4888
4888
|
hooks: {
|
|
4889
4889
|
afterDelete: ({
|
|
4890
4890
|
data,
|
|
4891
4891
|
app
|
|
4892
|
-
}:
|
|
4892
|
+
}: questpie134.HookContext<{
|
|
4893
4893
|
width: number | null;
|
|
4894
4894
|
height: number | null;
|
|
4895
4895
|
alt: string | null;
|
|
@@ -4906,58 +4906,58 @@ declare const selectClient: (s: AdminState) => QuestpieClient<questpie31.Questpi
|
|
|
4906
4906
|
url: string;
|
|
4907
4907
|
}, never, "delete", any>) => Promise<void>;
|
|
4908
4908
|
};
|
|
4909
|
-
access:
|
|
4909
|
+
access: questpie134.CollectionAccess<any, any>;
|
|
4910
4910
|
functions: {
|
|
4911
|
-
[x: string]:
|
|
4911
|
+
[x: string]: questpie134.FunctionDefinition<any, any, any>;
|
|
4912
4912
|
};
|
|
4913
4913
|
searchable: undefined;
|
|
4914
4914
|
validation: undefined;
|
|
4915
|
-
output:
|
|
4915
|
+
output: questpie134.TypeMerge<{}, {
|
|
4916
4916
|
url: string;
|
|
4917
4917
|
}>;
|
|
4918
|
-
upload:
|
|
4918
|
+
upload: questpie134.UploadOptions;
|
|
4919
4919
|
}>;
|
|
4920
|
-
apikey:
|
|
4920
|
+
apikey: questpie134.CollectionBuilder<{
|
|
4921
4921
|
options: {
|
|
4922
4922
|
timestamps: true;
|
|
4923
4923
|
};
|
|
4924
4924
|
name: "apikey";
|
|
4925
4925
|
fields: {
|
|
4926
|
-
name:
|
|
4927
|
-
start:
|
|
4928
|
-
prefix:
|
|
4929
|
-
key:
|
|
4930
|
-
userId:
|
|
4931
|
-
refillInterval:
|
|
4932
|
-
refillAmount:
|
|
4933
|
-
lastRefillAt:
|
|
4934
|
-
enabled:
|
|
4935
|
-
rateLimitEnabled:
|
|
4936
|
-
rateLimitTimeWindow:
|
|
4937
|
-
rateLimitMax:
|
|
4938
|
-
requestCount:
|
|
4939
|
-
remaining:
|
|
4940
|
-
lastRequest:
|
|
4941
|
-
expiresAt:
|
|
4942
|
-
permissions:
|
|
4943
|
-
metadata:
|
|
4926
|
+
name: drizzle_orm_pg_core116.PgVarcharBuilder<[string, ...string[]]>;
|
|
4927
|
+
start: drizzle_orm_pg_core116.PgVarcharBuilder<[string, ...string[]]>;
|
|
4928
|
+
prefix: drizzle_orm_pg_core116.PgVarcharBuilder<[string, ...string[]]>;
|
|
4929
|
+
key: drizzle_orm57.NotNull<drizzle_orm_pg_core116.PgVarcharBuilder<[string, ...string[]]>>;
|
|
4930
|
+
userId: drizzle_orm57.NotNull<drizzle_orm_pg_core116.PgVarcharBuilder<[string, ...string[]]>>;
|
|
4931
|
+
refillInterval: drizzle_orm_pg_core116.PgIntegerBuilder;
|
|
4932
|
+
refillAmount: drizzle_orm_pg_core116.PgIntegerBuilder;
|
|
4933
|
+
lastRefillAt: drizzle_orm_pg_core116.PgTimestampBuilder;
|
|
4934
|
+
enabled: drizzle_orm57.HasDefault<drizzle_orm_pg_core116.PgBooleanBuilder>;
|
|
4935
|
+
rateLimitEnabled: drizzle_orm57.HasDefault<drizzle_orm_pg_core116.PgBooleanBuilder>;
|
|
4936
|
+
rateLimitTimeWindow: drizzle_orm_pg_core116.PgIntegerBuilder;
|
|
4937
|
+
rateLimitMax: drizzle_orm_pg_core116.PgIntegerBuilder;
|
|
4938
|
+
requestCount: drizzle_orm57.HasDefault<drizzle_orm_pg_core116.PgIntegerBuilder>;
|
|
4939
|
+
remaining: drizzle_orm_pg_core116.PgIntegerBuilder;
|
|
4940
|
+
lastRequest: drizzle_orm_pg_core116.PgTimestampBuilder;
|
|
4941
|
+
expiresAt: drizzle_orm_pg_core116.PgTimestampBuilder;
|
|
4942
|
+
permissions: drizzle_orm_pg_core116.PgTextBuilder<[string, ...string[]]>;
|
|
4943
|
+
metadata: drizzle_orm_pg_core116.PgTextBuilder<[string, ...string[]]>;
|
|
4944
4944
|
};
|
|
4945
4945
|
localized: [];
|
|
4946
4946
|
virtuals: undefined;
|
|
4947
|
-
relations: Record<string,
|
|
4947
|
+
relations: Record<string, questpie134.RelationConfig>;
|
|
4948
4948
|
indexes: Record<string, any>;
|
|
4949
4949
|
title: "key";
|
|
4950
|
-
hooks:
|
|
4951
|
-
access:
|
|
4950
|
+
hooks: questpie134.CollectionHooks<any, any, any, any>;
|
|
4951
|
+
access: questpie134.CollectionAccess<any, any>;
|
|
4952
4952
|
functions: {
|
|
4953
|
-
[x: string]:
|
|
4953
|
+
[x: string]: questpie134.FunctionDefinition<any, any, any>;
|
|
4954
4954
|
};
|
|
4955
4955
|
searchable: undefined;
|
|
4956
4956
|
validation: undefined;
|
|
4957
4957
|
output: undefined;
|
|
4958
4958
|
upload: undefined;
|
|
4959
4959
|
}>;
|
|
4960
|
-
admin_saved_views:
|
|
4960
|
+
admin_saved_views: questpie134.CollectionBuilder<{
|
|
4961
4961
|
name: "admin_saved_views";
|
|
4962
4962
|
localized: [];
|
|
4963
4963
|
output: undefined;
|
|
@@ -4966,25 +4966,25 @@ declare const selectClient: (s: AdminState) => QuestpieClient<questpie31.Questpi
|
|
|
4966
4966
|
timestamps: true;
|
|
4967
4967
|
};
|
|
4968
4968
|
fields: {
|
|
4969
|
-
userId:
|
|
4970
|
-
collectionName:
|
|
4971
|
-
name:
|
|
4972
|
-
configuration:
|
|
4973
|
-
isDefault:
|
|
4969
|
+
userId: drizzle_orm57.NotNull<drizzle_orm_pg_core116.PgVarcharBuilder<[string, ...string[]]>>;
|
|
4970
|
+
collectionName: drizzle_orm57.NotNull<drizzle_orm_pg_core116.PgVarcharBuilder<[string, ...string[]]>>;
|
|
4971
|
+
name: drizzle_orm57.NotNull<drizzle_orm_pg_core116.PgVarcharBuilder<[string, ...string[]]>>;
|
|
4972
|
+
configuration: drizzle_orm57.$Type<drizzle_orm57.NotNull<drizzle_orm_pg_core116.PgJsonbBuilder>, ViewConfiguration>;
|
|
4973
|
+
isDefault: drizzle_orm57.NotNull<drizzle_orm57.HasDefault<drizzle_orm_pg_core116.PgBooleanBuilder>>;
|
|
4974
4974
|
};
|
|
4975
4975
|
upload: undefined;
|
|
4976
4976
|
functions: {
|
|
4977
|
-
[x: string]:
|
|
4977
|
+
[x: string]: questpie134.FunctionDefinition<any, any, any>;
|
|
4978
4978
|
};
|
|
4979
|
-
hooks:
|
|
4979
|
+
hooks: questpie134.CollectionHooks<any, any, any, any>;
|
|
4980
4980
|
indexes: Record<string, any>;
|
|
4981
4981
|
searchable: undefined;
|
|
4982
4982
|
virtuals: undefined;
|
|
4983
|
-
relations: Record<string,
|
|
4984
|
-
access:
|
|
4983
|
+
relations: Record<string, questpie134.RelationConfig>;
|
|
4984
|
+
access: questpie134.CollectionAccess<any, any>;
|
|
4985
4985
|
validation: undefined;
|
|
4986
4986
|
}>;
|
|
4987
|
-
admin_preferences:
|
|
4987
|
+
admin_preferences: questpie134.CollectionBuilder<{
|
|
4988
4988
|
name: "admin_preferences";
|
|
4989
4989
|
localized: [];
|
|
4990
4990
|
output: undefined;
|
|
@@ -4993,28 +4993,28 @@ declare const selectClient: (s: AdminState) => QuestpieClient<questpie31.Questpi
|
|
|
4993
4993
|
timestamps: true;
|
|
4994
4994
|
};
|
|
4995
4995
|
fields: {
|
|
4996
|
-
userId:
|
|
4997
|
-
key:
|
|
4998
|
-
value:
|
|
4996
|
+
userId: drizzle_orm57.NotNull<drizzle_orm_pg_core116.PgVarcharBuilder<[string, ...string[]]>>;
|
|
4997
|
+
key: drizzle_orm57.NotNull<drizzle_orm_pg_core116.PgVarcharBuilder<[string, ...string[]]>>;
|
|
4998
|
+
value: drizzle_orm57.NotNull<drizzle_orm_pg_core116.PgJsonbBuilder>;
|
|
4999
4999
|
};
|
|
5000
5000
|
upload: undefined;
|
|
5001
5001
|
functions: {
|
|
5002
|
-
[x: string]:
|
|
5002
|
+
[x: string]: questpie134.FunctionDefinition<any, any, any>;
|
|
5003
5003
|
};
|
|
5004
|
-
hooks:
|
|
5005
|
-
indexes:
|
|
5004
|
+
hooks: questpie134.CollectionHooks<any, any, any, any>;
|
|
5005
|
+
indexes: drizzle_orm_pg_core116.IndexBuilder[];
|
|
5006
5006
|
searchable: undefined;
|
|
5007
5007
|
virtuals: undefined;
|
|
5008
|
-
relations: Record<string,
|
|
5009
|
-
access:
|
|
5008
|
+
relations: Record<string, questpie134.RelationConfig>;
|
|
5009
|
+
access: questpie134.CollectionAccess<any, any>;
|
|
5010
5010
|
validation: undefined;
|
|
5011
5011
|
}>;
|
|
5012
5012
|
};
|
|
5013
|
-
globals:
|
|
5014
|
-
translations:
|
|
5015
|
-
defaultAccess:
|
|
5013
|
+
globals: questpie134.TypeMerge<questpie134.UnsetProperty<{}, keyof TOtherGlobals>, {}>;
|
|
5014
|
+
translations: questpie134.TranslationsConfig | undefined;
|
|
5015
|
+
defaultAccess: questpie134.CollectionAccess<any, any> | undefined;
|
|
5016
5016
|
"~messageKeys": unknown;
|
|
5017
|
-
auth:
|
|
5017
|
+
auth: questpie134.MergeAuthOptions<{}, questpie134.MergeAuthOptions<{}, {
|
|
5018
5018
|
baseURL: string | undefined;
|
|
5019
5019
|
secret: string | undefined;
|
|
5020
5020
|
advanced: {
|
|
@@ -5060,7 +5060,7 @@ declare const selectClient: (s: AdminState) => QuestpieClient<questpie31.Questpi
|
|
|
5060
5060
|
token: string;
|
|
5061
5061
|
ipAddress?: string | null | undefined;
|
|
5062
5062
|
userAgent?: string | null | undefined;
|
|
5063
|
-
} & Record<string, unknown>, ctx:
|
|
5063
|
+
} & Record<string, unknown>, ctx: better_auth63.GenericEndpointContext | null): Promise<void>;
|
|
5064
5064
|
};
|
|
5065
5065
|
};
|
|
5066
5066
|
};
|
|
@@ -5068,22 +5068,22 @@ declare const selectClient: (s: AdminState) => QuestpieClient<questpie31.Questpi
|
|
|
5068
5068
|
};
|
|
5069
5069
|
hooks: {
|
|
5070
5070
|
after: {
|
|
5071
|
-
matcher(context:
|
|
5072
|
-
handler: (inputContext:
|
|
5071
|
+
matcher(context: better_auth63.HookEndpointContext): boolean;
|
|
5072
|
+
handler: (inputContext: better_call62.MiddlewareInputContext<better_call62.MiddlewareOptions>) => Promise<better_auth_plugins25.SessionWithImpersonatedBy[] | undefined>;
|
|
5073
5073
|
}[];
|
|
5074
5074
|
};
|
|
5075
5075
|
endpoints: {
|
|
5076
|
-
setRole:
|
|
5076
|
+
setRole: better_call62.StrictEndpoint<"/admin/set-role", {
|
|
5077
5077
|
method: "POST";
|
|
5078
|
-
body:
|
|
5079
|
-
userId:
|
|
5080
|
-
role:
|
|
5081
|
-
},
|
|
5078
|
+
body: zod169.ZodObject<{
|
|
5079
|
+
userId: zod169.ZodCoercedString<unknown>;
|
|
5080
|
+
role: zod169.ZodUnion<readonly [zod169.ZodString, zod169.ZodArray<zod169.ZodString>]>;
|
|
5081
|
+
}, better_auth63.$strip>;
|
|
5082
5082
|
requireHeaders: true;
|
|
5083
|
-
use: ((inputContext:
|
|
5083
|
+
use: ((inputContext: better_call62.MiddlewareInputContext<better_call62.MiddlewareOptions>) => Promise<{
|
|
5084
5084
|
session: {
|
|
5085
|
-
user:
|
|
5086
|
-
session:
|
|
5085
|
+
user: better_auth_plugins25.UserWithRole;
|
|
5086
|
+
session: better_auth63.Session;
|
|
5087
5087
|
};
|
|
5088
5088
|
}>)[];
|
|
5089
5089
|
metadata: {
|
|
@@ -5117,17 +5117,17 @@ declare const selectClient: (s: AdminState) => QuestpieClient<questpie31.Questpi
|
|
|
5117
5117
|
};
|
|
5118
5118
|
};
|
|
5119
5119
|
}, {
|
|
5120
|
-
user:
|
|
5120
|
+
user: better_auth_plugins25.UserWithRole;
|
|
5121
5121
|
}>;
|
|
5122
|
-
getUser:
|
|
5122
|
+
getUser: better_call62.StrictEndpoint<"/admin/get-user", {
|
|
5123
5123
|
method: "GET";
|
|
5124
|
-
query:
|
|
5125
|
-
id:
|
|
5126
|
-
},
|
|
5127
|
-
use: ((inputContext:
|
|
5124
|
+
query: zod169.ZodObject<{
|
|
5125
|
+
id: zod169.ZodString;
|
|
5126
|
+
}, better_auth63.$strip>;
|
|
5127
|
+
use: ((inputContext: better_call62.MiddlewareInputContext<better_call62.MiddlewareOptions>) => Promise<{
|
|
5128
5128
|
session: {
|
|
5129
|
-
user:
|
|
5130
|
-
session:
|
|
5129
|
+
user: better_auth_plugins25.UserWithRole;
|
|
5130
|
+
session: better_auth63.Session;
|
|
5131
5131
|
};
|
|
5132
5132
|
}>)[];
|
|
5133
5133
|
metadata: {
|
|
@@ -5154,16 +5154,16 @@ declare const selectClient: (s: AdminState) => QuestpieClient<questpie31.Questpi
|
|
|
5154
5154
|
};
|
|
5155
5155
|
};
|
|
5156
5156
|
};
|
|
5157
|
-
},
|
|
5158
|
-
createUser:
|
|
5157
|
+
}, better_auth_plugins25.UserWithRole>;
|
|
5158
|
+
createUser: better_call62.StrictEndpoint<"/admin/create-user", {
|
|
5159
5159
|
method: "POST";
|
|
5160
|
-
body:
|
|
5161
|
-
email:
|
|
5162
|
-
password:
|
|
5163
|
-
name:
|
|
5164
|
-
role:
|
|
5165
|
-
data:
|
|
5166
|
-
},
|
|
5160
|
+
body: zod169.ZodObject<{
|
|
5161
|
+
email: zod169.ZodString;
|
|
5162
|
+
password: zod169.ZodOptional<zod169.ZodString>;
|
|
5163
|
+
name: zod169.ZodString;
|
|
5164
|
+
role: zod169.ZodOptional<zod169.ZodUnion<readonly [zod169.ZodString, zod169.ZodArray<zod169.ZodString>]>>;
|
|
5165
|
+
data: zod169.ZodOptional<zod169.ZodRecord<zod169.ZodString, zod169.ZodAny>>;
|
|
5166
|
+
}, better_auth63.$strip>;
|
|
5167
5167
|
metadata: {
|
|
5168
5168
|
openapi: {
|
|
5169
5169
|
operationId: string;
|
|
@@ -5198,18 +5198,18 @@ declare const selectClient: (s: AdminState) => QuestpieClient<questpie31.Questpi
|
|
|
5198
5198
|
};
|
|
5199
5199
|
};
|
|
5200
5200
|
}, {
|
|
5201
|
-
user:
|
|
5201
|
+
user: better_auth_plugins25.UserWithRole;
|
|
5202
5202
|
}>;
|
|
5203
|
-
adminUpdateUser:
|
|
5203
|
+
adminUpdateUser: better_call62.StrictEndpoint<"/admin/update-user", {
|
|
5204
5204
|
method: "POST";
|
|
5205
|
-
body:
|
|
5206
|
-
userId:
|
|
5207
|
-
data:
|
|
5208
|
-
},
|
|
5209
|
-
use: ((inputContext:
|
|
5205
|
+
body: zod169.ZodObject<{
|
|
5206
|
+
userId: zod169.ZodCoercedString<unknown>;
|
|
5207
|
+
data: zod169.ZodRecord<zod169.ZodAny, zod169.ZodAny>;
|
|
5208
|
+
}, better_auth63.$strip>;
|
|
5209
|
+
use: ((inputContext: better_call62.MiddlewareInputContext<better_call62.MiddlewareOptions>) => Promise<{
|
|
5210
5210
|
session: {
|
|
5211
|
-
user:
|
|
5212
|
-
session:
|
|
5211
|
+
user: better_auth_plugins25.UserWithRole;
|
|
5212
|
+
session: better_auth63.Session;
|
|
5213
5213
|
};
|
|
5214
5214
|
}>)[];
|
|
5215
5215
|
metadata: {
|
|
@@ -5236,36 +5236,36 @@ declare const selectClient: (s: AdminState) => QuestpieClient<questpie31.Questpi
|
|
|
5236
5236
|
};
|
|
5237
5237
|
};
|
|
5238
5238
|
};
|
|
5239
|
-
},
|
|
5240
|
-
listUsers:
|
|
5239
|
+
}, better_auth_plugins25.UserWithRole>;
|
|
5240
|
+
listUsers: better_call62.StrictEndpoint<"/admin/list-users", {
|
|
5241
5241
|
method: "GET";
|
|
5242
|
-
use: ((inputContext:
|
|
5242
|
+
use: ((inputContext: better_call62.MiddlewareInputContext<better_call62.MiddlewareOptions>) => Promise<{
|
|
5243
5243
|
session: {
|
|
5244
|
-
user:
|
|
5245
|
-
session:
|
|
5244
|
+
user: better_auth_plugins25.UserWithRole;
|
|
5245
|
+
session: better_auth63.Session;
|
|
5246
5246
|
};
|
|
5247
5247
|
}>)[];
|
|
5248
|
-
query:
|
|
5249
|
-
searchValue:
|
|
5250
|
-
searchField:
|
|
5248
|
+
query: zod169.ZodObject<{
|
|
5249
|
+
searchValue: zod169.ZodOptional<zod169.ZodString>;
|
|
5250
|
+
searchField: zod169.ZodOptional<zod169.ZodEnum<{
|
|
5251
5251
|
name: "name";
|
|
5252
5252
|
email: "email";
|
|
5253
5253
|
}>>;
|
|
5254
|
-
searchOperator:
|
|
5254
|
+
searchOperator: zod169.ZodOptional<zod169.ZodEnum<{
|
|
5255
5255
|
contains: "contains";
|
|
5256
5256
|
starts_with: "starts_with";
|
|
5257
5257
|
ends_with: "ends_with";
|
|
5258
5258
|
}>>;
|
|
5259
|
-
limit:
|
|
5260
|
-
offset:
|
|
5261
|
-
sortBy:
|
|
5262
|
-
sortDirection:
|
|
5259
|
+
limit: zod169.ZodOptional<zod169.ZodUnion<[zod169.ZodString, zod169.ZodNumber]>>;
|
|
5260
|
+
offset: zod169.ZodOptional<zod169.ZodUnion<[zod169.ZodString, zod169.ZodNumber]>>;
|
|
5261
|
+
sortBy: zod169.ZodOptional<zod169.ZodString>;
|
|
5262
|
+
sortDirection: zod169.ZodOptional<zod169.ZodEnum<{
|
|
5263
5263
|
asc: "asc";
|
|
5264
5264
|
desc: "desc";
|
|
5265
5265
|
}>>;
|
|
5266
|
-
filterField:
|
|
5267
|
-
filterValue:
|
|
5268
|
-
filterOperator:
|
|
5266
|
+
filterField: zod169.ZodOptional<zod169.ZodString>;
|
|
5267
|
+
filterValue: zod169.ZodOptional<zod169.ZodUnion<[zod169.ZodUnion<[zod169.ZodString, zod169.ZodNumber]>, zod169.ZodBoolean]>>;
|
|
5268
|
+
filterOperator: zod169.ZodOptional<zod169.ZodEnum<{
|
|
5269
5269
|
eq: "eq";
|
|
5270
5270
|
ne: "ne";
|
|
5271
5271
|
lt: "lt";
|
|
@@ -5274,7 +5274,7 @@ declare const selectClient: (s: AdminState) => QuestpieClient<questpie31.Questpi
|
|
|
5274
5274
|
gte: "gte";
|
|
5275
5275
|
contains: "contains";
|
|
5276
5276
|
}>>;
|
|
5277
|
-
},
|
|
5277
|
+
}, better_auth63.$strip>;
|
|
5278
5278
|
metadata: {
|
|
5279
5279
|
openapi: {
|
|
5280
5280
|
operationId: string;
|
|
@@ -5313,7 +5313,7 @@ declare const selectClient: (s: AdminState) => QuestpieClient<questpie31.Questpi
|
|
|
5313
5313
|
};
|
|
5314
5314
|
};
|
|
5315
5315
|
}, {
|
|
5316
|
-
users:
|
|
5316
|
+
users: better_auth_plugins25.UserWithRole[];
|
|
5317
5317
|
total: number;
|
|
5318
5318
|
limit: number | undefined;
|
|
5319
5319
|
offset: number | undefined;
|
|
@@ -5321,17 +5321,17 @@ declare const selectClient: (s: AdminState) => QuestpieClient<questpie31.Questpi
|
|
|
5321
5321
|
users: never[];
|
|
5322
5322
|
total: number;
|
|
5323
5323
|
}>;
|
|
5324
|
-
listUserSessions:
|
|
5324
|
+
listUserSessions: better_call62.StrictEndpoint<"/admin/list-user-sessions", {
|
|
5325
5325
|
method: "POST";
|
|
5326
|
-
use: ((inputContext:
|
|
5326
|
+
use: ((inputContext: better_call62.MiddlewareInputContext<better_call62.MiddlewareOptions>) => Promise<{
|
|
5327
5327
|
session: {
|
|
5328
|
-
user:
|
|
5329
|
-
session:
|
|
5328
|
+
user: better_auth_plugins25.UserWithRole;
|
|
5329
|
+
session: better_auth63.Session;
|
|
5330
5330
|
};
|
|
5331
5331
|
}>)[];
|
|
5332
|
-
body:
|
|
5333
|
-
userId:
|
|
5334
|
-
},
|
|
5332
|
+
body: zod169.ZodObject<{
|
|
5333
|
+
userId: zod169.ZodCoercedString<unknown>;
|
|
5334
|
+
}, better_auth63.$strip>;
|
|
5335
5335
|
metadata: {
|
|
5336
5336
|
openapi: {
|
|
5337
5337
|
operationId: string;
|
|
@@ -5360,17 +5360,17 @@ declare const selectClient: (s: AdminState) => QuestpieClient<questpie31.Questpi
|
|
|
5360
5360
|
};
|
|
5361
5361
|
};
|
|
5362
5362
|
}, {
|
|
5363
|
-
sessions:
|
|
5363
|
+
sessions: better_auth_plugins25.SessionWithImpersonatedBy[];
|
|
5364
5364
|
}>;
|
|
5365
|
-
unbanUser:
|
|
5365
|
+
unbanUser: better_call62.StrictEndpoint<"/admin/unban-user", {
|
|
5366
5366
|
method: "POST";
|
|
5367
|
-
body:
|
|
5368
|
-
userId:
|
|
5369
|
-
},
|
|
5370
|
-
use: ((inputContext:
|
|
5367
|
+
body: zod169.ZodObject<{
|
|
5368
|
+
userId: zod169.ZodCoercedString<unknown>;
|
|
5369
|
+
}, better_auth63.$strip>;
|
|
5370
|
+
use: ((inputContext: better_call62.MiddlewareInputContext<better_call62.MiddlewareOptions>) => Promise<{
|
|
5371
5371
|
session: {
|
|
5372
|
-
user:
|
|
5373
|
-
session:
|
|
5372
|
+
user: better_auth_plugins25.UserWithRole;
|
|
5373
|
+
session: better_auth63.Session;
|
|
5374
5374
|
};
|
|
5375
5375
|
}>)[];
|
|
5376
5376
|
metadata: {
|
|
@@ -5398,19 +5398,19 @@ declare const selectClient: (s: AdminState) => QuestpieClient<questpie31.Questpi
|
|
|
5398
5398
|
};
|
|
5399
5399
|
};
|
|
5400
5400
|
}, {
|
|
5401
|
-
user:
|
|
5401
|
+
user: better_auth_plugins25.UserWithRole;
|
|
5402
5402
|
}>;
|
|
5403
|
-
banUser:
|
|
5403
|
+
banUser: better_call62.StrictEndpoint<"/admin/ban-user", {
|
|
5404
5404
|
method: "POST";
|
|
5405
|
-
body:
|
|
5406
|
-
userId:
|
|
5407
|
-
banReason:
|
|
5408
|
-
banExpiresIn:
|
|
5409
|
-
},
|
|
5410
|
-
use: ((inputContext:
|
|
5405
|
+
body: zod169.ZodObject<{
|
|
5406
|
+
userId: zod169.ZodCoercedString<unknown>;
|
|
5407
|
+
banReason: zod169.ZodOptional<zod169.ZodString>;
|
|
5408
|
+
banExpiresIn: zod169.ZodOptional<zod169.ZodNumber>;
|
|
5409
|
+
}, better_auth63.$strip>;
|
|
5410
|
+
use: ((inputContext: better_call62.MiddlewareInputContext<better_call62.MiddlewareOptions>) => Promise<{
|
|
5411
5411
|
session: {
|
|
5412
|
-
user:
|
|
5413
|
-
session:
|
|
5412
|
+
user: better_auth_plugins25.UserWithRole;
|
|
5413
|
+
session: better_auth63.Session;
|
|
5414
5414
|
};
|
|
5415
5415
|
}>)[];
|
|
5416
5416
|
metadata: {
|
|
@@ -5438,17 +5438,17 @@ declare const selectClient: (s: AdminState) => QuestpieClient<questpie31.Questpi
|
|
|
5438
5438
|
};
|
|
5439
5439
|
};
|
|
5440
5440
|
}, {
|
|
5441
|
-
user:
|
|
5441
|
+
user: better_auth_plugins25.UserWithRole;
|
|
5442
5442
|
}>;
|
|
5443
|
-
impersonateUser:
|
|
5443
|
+
impersonateUser: better_call62.StrictEndpoint<"/admin/impersonate-user", {
|
|
5444
5444
|
method: "POST";
|
|
5445
|
-
body:
|
|
5446
|
-
userId:
|
|
5447
|
-
},
|
|
5448
|
-
use: ((inputContext:
|
|
5445
|
+
body: zod169.ZodObject<{
|
|
5446
|
+
userId: zod169.ZodCoercedString<unknown>;
|
|
5447
|
+
}, better_auth63.$strip>;
|
|
5448
|
+
use: ((inputContext: better_call62.MiddlewareInputContext<better_call62.MiddlewareOptions>) => Promise<{
|
|
5449
5449
|
session: {
|
|
5450
|
-
user:
|
|
5451
|
-
session:
|
|
5450
|
+
user: better_auth_plugins25.UserWithRole;
|
|
5451
|
+
session: better_auth63.Session;
|
|
5452
5452
|
};
|
|
5453
5453
|
}>)[];
|
|
5454
5454
|
metadata: {
|
|
@@ -5489,9 +5489,9 @@ declare const selectClient: (s: AdminState) => QuestpieClient<questpie31.Questpi
|
|
|
5489
5489
|
ipAddress?: string | null | undefined;
|
|
5490
5490
|
userAgent?: string | null | undefined;
|
|
5491
5491
|
};
|
|
5492
|
-
user:
|
|
5492
|
+
user: better_auth_plugins25.UserWithRole;
|
|
5493
5493
|
}>;
|
|
5494
|
-
stopImpersonating:
|
|
5494
|
+
stopImpersonating: better_call62.StrictEndpoint<"/admin/stop-impersonating", {
|
|
5495
5495
|
method: "POST";
|
|
5496
5496
|
requireHeaders: true;
|
|
5497
5497
|
}, {
|
|
@@ -5515,15 +5515,15 @@ declare const selectClient: (s: AdminState) => QuestpieClient<questpie31.Questpi
|
|
|
5515
5515
|
image?: string | null | undefined;
|
|
5516
5516
|
} & Record<string, any>;
|
|
5517
5517
|
}>;
|
|
5518
|
-
revokeUserSession:
|
|
5518
|
+
revokeUserSession: better_call62.StrictEndpoint<"/admin/revoke-user-session", {
|
|
5519
5519
|
method: "POST";
|
|
5520
|
-
body:
|
|
5521
|
-
sessionToken:
|
|
5522
|
-
},
|
|
5523
|
-
use: ((inputContext:
|
|
5520
|
+
body: zod169.ZodObject<{
|
|
5521
|
+
sessionToken: zod169.ZodString;
|
|
5522
|
+
}, better_auth63.$strip>;
|
|
5523
|
+
use: ((inputContext: better_call62.MiddlewareInputContext<better_call62.MiddlewareOptions>) => Promise<{
|
|
5524
5524
|
session: {
|
|
5525
|
-
user:
|
|
5526
|
-
session:
|
|
5525
|
+
user: better_auth_plugins25.UserWithRole;
|
|
5526
|
+
session: better_auth63.Session;
|
|
5527
5527
|
};
|
|
5528
5528
|
}>)[];
|
|
5529
5529
|
metadata: {
|
|
@@ -5553,15 +5553,15 @@ declare const selectClient: (s: AdminState) => QuestpieClient<questpie31.Questpi
|
|
|
5553
5553
|
}, {
|
|
5554
5554
|
success: boolean;
|
|
5555
5555
|
}>;
|
|
5556
|
-
revokeUserSessions:
|
|
5556
|
+
revokeUserSessions: better_call62.StrictEndpoint<"/admin/revoke-user-sessions", {
|
|
5557
5557
|
method: "POST";
|
|
5558
|
-
body:
|
|
5559
|
-
userId:
|
|
5560
|
-
},
|
|
5561
|
-
use: ((inputContext:
|
|
5558
|
+
body: zod169.ZodObject<{
|
|
5559
|
+
userId: zod169.ZodCoercedString<unknown>;
|
|
5560
|
+
}, better_auth63.$strip>;
|
|
5561
|
+
use: ((inputContext: better_call62.MiddlewareInputContext<better_call62.MiddlewareOptions>) => Promise<{
|
|
5562
5562
|
session: {
|
|
5563
|
-
user:
|
|
5564
|
-
session:
|
|
5563
|
+
user: better_auth_plugins25.UserWithRole;
|
|
5564
|
+
session: better_auth63.Session;
|
|
5565
5565
|
};
|
|
5566
5566
|
}>)[];
|
|
5567
5567
|
metadata: {
|
|
@@ -5591,15 +5591,15 @@ declare const selectClient: (s: AdminState) => QuestpieClient<questpie31.Questpi
|
|
|
5591
5591
|
}, {
|
|
5592
5592
|
success: boolean;
|
|
5593
5593
|
}>;
|
|
5594
|
-
removeUser:
|
|
5594
|
+
removeUser: better_call62.StrictEndpoint<"/admin/remove-user", {
|
|
5595
5595
|
method: "POST";
|
|
5596
|
-
body:
|
|
5597
|
-
userId:
|
|
5598
|
-
},
|
|
5599
|
-
use: ((inputContext:
|
|
5596
|
+
body: zod169.ZodObject<{
|
|
5597
|
+
userId: zod169.ZodCoercedString<unknown>;
|
|
5598
|
+
}, better_auth63.$strip>;
|
|
5599
|
+
use: ((inputContext: better_call62.MiddlewareInputContext<better_call62.MiddlewareOptions>) => Promise<{
|
|
5600
5600
|
session: {
|
|
5601
|
-
user:
|
|
5602
|
-
session:
|
|
5601
|
+
user: better_auth_plugins25.UserWithRole;
|
|
5602
|
+
session: better_auth63.Session;
|
|
5603
5603
|
};
|
|
5604
5604
|
}>)[];
|
|
5605
5605
|
metadata: {
|
|
@@ -5629,16 +5629,16 @@ declare const selectClient: (s: AdminState) => QuestpieClient<questpie31.Questpi
|
|
|
5629
5629
|
}, {
|
|
5630
5630
|
success: boolean;
|
|
5631
5631
|
}>;
|
|
5632
|
-
setUserPassword:
|
|
5632
|
+
setUserPassword: better_call62.StrictEndpoint<"/admin/set-user-password", {
|
|
5633
5633
|
method: "POST";
|
|
5634
|
-
body:
|
|
5635
|
-
newPassword:
|
|
5636
|
-
userId:
|
|
5637
|
-
},
|
|
5638
|
-
use: ((inputContext:
|
|
5634
|
+
body: zod169.ZodObject<{
|
|
5635
|
+
newPassword: zod169.ZodString;
|
|
5636
|
+
userId: zod169.ZodCoercedString<unknown>;
|
|
5637
|
+
}, better_auth63.$strip>;
|
|
5638
|
+
use: ((inputContext: better_call62.MiddlewareInputContext<better_call62.MiddlewareOptions>) => Promise<{
|
|
5639
5639
|
session: {
|
|
5640
|
-
user:
|
|
5641
|
-
session:
|
|
5640
|
+
user: better_auth_plugins25.UserWithRole;
|
|
5641
|
+
session: better_auth63.Session;
|
|
5642
5642
|
};
|
|
5643
5643
|
}>)[];
|
|
5644
5644
|
metadata: {
|
|
@@ -5668,18 +5668,18 @@ declare const selectClient: (s: AdminState) => QuestpieClient<questpie31.Questpi
|
|
|
5668
5668
|
}, {
|
|
5669
5669
|
status: boolean;
|
|
5670
5670
|
}>;
|
|
5671
|
-
userHasPermission:
|
|
5671
|
+
userHasPermission: better_call62.StrictEndpoint<"/admin/has-permission", {
|
|
5672
5672
|
method: "POST";
|
|
5673
|
-
body:
|
|
5674
|
-
userId:
|
|
5675
|
-
role:
|
|
5676
|
-
},
|
|
5677
|
-
permission:
|
|
5678
|
-
permissions:
|
|
5679
|
-
},
|
|
5680
|
-
permission:
|
|
5681
|
-
permissions:
|
|
5682
|
-
},
|
|
5673
|
+
body: zod169.ZodIntersection<zod169.ZodObject<{
|
|
5674
|
+
userId: zod169.ZodOptional<zod169.ZodCoercedString<unknown>>;
|
|
5675
|
+
role: zod169.ZodOptional<zod169.ZodString>;
|
|
5676
|
+
}, better_auth63.$strip>, zod169.ZodUnion<readonly [zod169.ZodObject<{
|
|
5677
|
+
permission: zod169.ZodRecord<zod169.ZodString, zod169.ZodArray<zod169.ZodString>>;
|
|
5678
|
+
permissions: zod169.ZodUndefined;
|
|
5679
|
+
}, better_auth63.$strip>, zod169.ZodObject<{
|
|
5680
|
+
permission: zod169.ZodUndefined;
|
|
5681
|
+
permissions: zod169.ZodRecord<zod169.ZodString, zod169.ZodArray<zod169.ZodString>>;
|
|
5682
|
+
}, better_auth63.$strip>]>>;
|
|
5683
5683
|
metadata: {
|
|
5684
5684
|
openapi: {
|
|
5685
5685
|
description: string;
|
|
@@ -5808,7 +5808,7 @@ declare const selectClient: (s: AdminState) => QuestpieClient<questpie31.Questpi
|
|
|
5808
5808
|
};
|
|
5809
5809
|
};
|
|
5810
5810
|
};
|
|
5811
|
-
options: NoInfer<
|
|
5811
|
+
options: NoInfer<better_auth_plugins25.AdminOptions>;
|
|
5812
5812
|
}, {
|
|
5813
5813
|
id: "api-key";
|
|
5814
5814
|
$ERROR_CODES: {
|
|
@@ -5840,8 +5840,8 @@ declare const selectClient: (s: AdminState) => QuestpieClient<questpie31.Questpi
|
|
|
5840
5840
|
};
|
|
5841
5841
|
hooks: {
|
|
5842
5842
|
before: {
|
|
5843
|
-
matcher: (ctx:
|
|
5844
|
-
handler: (inputContext:
|
|
5843
|
+
matcher: (ctx: better_auth63.HookEndpointContext) => boolean;
|
|
5844
|
+
handler: (inputContext: better_call62.MiddlewareInputContext<better_call62.MiddlewareOptions>) => Promise<{
|
|
5845
5845
|
user: {
|
|
5846
5846
|
id: string;
|
|
5847
5847
|
createdAt: Date;
|
|
@@ -5862,11 +5862,11 @@ declare const selectClient: (s: AdminState) => QuestpieClient<questpie31.Questpi
|
|
|
5862
5862
|
expiresAt: Date;
|
|
5863
5863
|
};
|
|
5864
5864
|
} | {
|
|
5865
|
-
context:
|
|
5865
|
+
context: better_call62.MiddlewareContext<better_call62.MiddlewareOptions, {
|
|
5866
5866
|
returned?: unknown | undefined;
|
|
5867
5867
|
responseHeaders?: Headers | undefined;
|
|
5868
|
-
} &
|
|
5869
|
-
options:
|
|
5868
|
+
} & better_auth63.PluginContext & better_auth63.InfoContext & {
|
|
5869
|
+
options: better_auth63.BetterAuthOptions;
|
|
5870
5870
|
trustedOrigins: string[];
|
|
5871
5871
|
isTrustedOrigin: (url: string, settings?: {
|
|
5872
5872
|
allowRelativePaths: boolean;
|
|
@@ -5876,29 +5876,29 @@ declare const selectClient: (s: AdminState) => QuestpieClient<questpie31.Questpi
|
|
|
5876
5876
|
storeStateStrategy: "database" | "cookie";
|
|
5877
5877
|
};
|
|
5878
5878
|
newSession: {
|
|
5879
|
-
session:
|
|
5880
|
-
user:
|
|
5879
|
+
session: better_auth63.Session & Record<string, any>;
|
|
5880
|
+
user: better_auth63.User & Record<string, any>;
|
|
5881
5881
|
} | null;
|
|
5882
5882
|
session: {
|
|
5883
|
-
session:
|
|
5884
|
-
user:
|
|
5883
|
+
session: better_auth63.Session & Record<string, any>;
|
|
5884
|
+
user: better_auth63.User & Record<string, any>;
|
|
5885
5885
|
} | null;
|
|
5886
5886
|
setNewSession: (session: {
|
|
5887
|
-
session:
|
|
5888
|
-
user:
|
|
5887
|
+
session: better_auth63.Session & Record<string, any>;
|
|
5888
|
+
user: better_auth63.User & Record<string, any>;
|
|
5889
5889
|
} | null) => void;
|
|
5890
|
-
socialProviders:
|
|
5891
|
-
authCookies:
|
|
5892
|
-
logger: ReturnType<(options?:
|
|
5890
|
+
socialProviders: better_auth63.OAuthProvider[];
|
|
5891
|
+
authCookies: better_auth63.BetterAuthCookies;
|
|
5892
|
+
logger: ReturnType<(options?: better_auth63.Logger | undefined) => better_auth63.InternalLogger>;
|
|
5893
5893
|
rateLimit: {
|
|
5894
5894
|
enabled: boolean;
|
|
5895
5895
|
window: number;
|
|
5896
5896
|
max: number;
|
|
5897
5897
|
storage: "memory" | "database" | "secondary-storage";
|
|
5898
|
-
} & Omit<
|
|
5899
|
-
adapter:
|
|
5900
|
-
internalAdapter:
|
|
5901
|
-
createAuthCookie: (cookieName: string, overrideAttributes?: Partial<
|
|
5898
|
+
} & Omit<better_auth63.BetterAuthRateLimitOptions, "enabled" | "window" | "max" | "storage">;
|
|
5899
|
+
adapter: better_auth63.DBAdapter<better_auth63.BetterAuthOptions>;
|
|
5900
|
+
internalAdapter: better_auth63.InternalAdapter<better_auth63.BetterAuthOptions>;
|
|
5901
|
+
createAuthCookie: (cookieName: string, overrideAttributes?: Partial<better_call62.CookieOptions> | undefined) => better_auth63.BetterAuthCookie;
|
|
5902
5902
|
secret: string;
|
|
5903
5903
|
sessionConfig: {
|
|
5904
5904
|
updateAge: number;
|
|
@@ -5910,10 +5910,10 @@ declare const selectClient: (s: AdminState) => QuestpieClient<questpie31.Questpi
|
|
|
5910
5910
|
};
|
|
5911
5911
|
};
|
|
5912
5912
|
generateId: (options: {
|
|
5913
|
-
model:
|
|
5913
|
+
model: better_auth63.ModelNames;
|
|
5914
5914
|
size?: number | undefined;
|
|
5915
5915
|
}) => string | false;
|
|
5916
|
-
secondaryStorage:
|
|
5916
|
+
secondaryStorage: better_auth63.SecondaryStorage | undefined;
|
|
5917
5917
|
password: {
|
|
5918
5918
|
hash: (password: string) => Promise<string>;
|
|
5919
5919
|
verify: (data: {
|
|
@@ -5924,9 +5924,9 @@ declare const selectClient: (s: AdminState) => QuestpieClient<questpie31.Questpi
|
|
|
5924
5924
|
minPasswordLength: number;
|
|
5925
5925
|
maxPasswordLength: number;
|
|
5926
5926
|
};
|
|
5927
|
-
checkPassword: (userId: string, ctx:
|
|
5927
|
+
checkPassword: (userId: string, ctx: better_auth63.GenericEndpointContext<better_auth63.BetterAuthOptions>) => Promise<boolean>;
|
|
5928
5928
|
};
|
|
5929
|
-
tables:
|
|
5929
|
+
tables: better_auth63.BetterAuthDBSchema;
|
|
5930
5930
|
runMigrations: () => Promise<void>;
|
|
5931
5931
|
publishTelemetry: (event: {
|
|
5932
5932
|
type: string;
|
|
@@ -5942,22 +5942,22 @@ declare const selectClient: (s: AdminState) => QuestpieClient<questpie31.Questpi
|
|
|
5942
5942
|
}[];
|
|
5943
5943
|
};
|
|
5944
5944
|
endpoints: {
|
|
5945
|
-
createApiKey:
|
|
5945
|
+
createApiKey: better_call62.StrictEndpoint<"/api-key/create", {
|
|
5946
5946
|
method: "POST";
|
|
5947
|
-
body:
|
|
5948
|
-
name:
|
|
5949
|
-
expiresIn:
|
|
5950
|
-
userId:
|
|
5951
|
-
prefix:
|
|
5952
|
-
remaining:
|
|
5953
|
-
metadata:
|
|
5954
|
-
refillAmount:
|
|
5955
|
-
refillInterval:
|
|
5956
|
-
rateLimitTimeWindow:
|
|
5957
|
-
rateLimitMax:
|
|
5958
|
-
rateLimitEnabled:
|
|
5959
|
-
permissions:
|
|
5960
|
-
},
|
|
5947
|
+
body: zod169.ZodObject<{
|
|
5948
|
+
name: zod169.ZodOptional<zod169.ZodString>;
|
|
5949
|
+
expiresIn: zod169.ZodDefault<zod169.ZodNullable<zod169.ZodOptional<zod169.ZodNumber>>>;
|
|
5950
|
+
userId: zod169.ZodOptional<zod169.ZodCoercedString<unknown>>;
|
|
5951
|
+
prefix: zod169.ZodOptional<zod169.ZodString>;
|
|
5952
|
+
remaining: zod169.ZodDefault<zod169.ZodNullable<zod169.ZodOptional<zod169.ZodNumber>>>;
|
|
5953
|
+
metadata: zod169.ZodOptional<zod169.ZodAny>;
|
|
5954
|
+
refillAmount: zod169.ZodOptional<zod169.ZodNumber>;
|
|
5955
|
+
refillInterval: zod169.ZodOptional<zod169.ZodNumber>;
|
|
5956
|
+
rateLimitTimeWindow: zod169.ZodOptional<zod169.ZodNumber>;
|
|
5957
|
+
rateLimitMax: zod169.ZodOptional<zod169.ZodNumber>;
|
|
5958
|
+
rateLimitEnabled: zod169.ZodOptional<zod169.ZodBoolean>;
|
|
5959
|
+
permissions: zod169.ZodOptional<zod169.ZodRecord<zod169.ZodString, zod169.ZodArray<zod169.ZodString>>>;
|
|
5960
|
+
}, better_auth63.$strip>;
|
|
5961
5961
|
metadata: {
|
|
5962
5962
|
openapi: {
|
|
5963
5963
|
description: string;
|
|
@@ -6110,12 +6110,12 @@ declare const selectClient: (s: AdminState) => QuestpieClient<questpie31.Questpi
|
|
|
6110
6110
|
createdAt: Date;
|
|
6111
6111
|
updatedAt: Date;
|
|
6112
6112
|
}>;
|
|
6113
|
-
verifyApiKey:
|
|
6113
|
+
verifyApiKey: better_call62.StrictEndpoint<string, {
|
|
6114
6114
|
method: "POST";
|
|
6115
|
-
body:
|
|
6116
|
-
key:
|
|
6117
|
-
permissions:
|
|
6118
|
-
},
|
|
6115
|
+
body: zod169.ZodObject<{
|
|
6116
|
+
key: zod169.ZodString;
|
|
6117
|
+
permissions: zod169.ZodOptional<zod169.ZodRecord<zod169.ZodString, zod169.ZodArray<zod169.ZodString>>>;
|
|
6118
|
+
}, better_auth63.$strip>;
|
|
6119
6119
|
}, {
|
|
6120
6120
|
valid: boolean;
|
|
6121
6121
|
error: {
|
|
@@ -6126,14 +6126,14 @@ declare const selectClient: (s: AdminState) => QuestpieClient<questpie31.Questpi
|
|
|
6126
6126
|
} | {
|
|
6127
6127
|
valid: boolean;
|
|
6128
6128
|
error: null;
|
|
6129
|
-
key: Omit<
|
|
6129
|
+
key: Omit<better_auth_plugins25.ApiKey, "key"> | null;
|
|
6130
6130
|
}>;
|
|
6131
|
-
getApiKey:
|
|
6131
|
+
getApiKey: better_call62.StrictEndpoint<"/api-key/get", {
|
|
6132
6132
|
method: "GET";
|
|
6133
|
-
query:
|
|
6134
|
-
id:
|
|
6135
|
-
},
|
|
6136
|
-
use: ((inputContext:
|
|
6133
|
+
query: zod169.ZodObject<{
|
|
6134
|
+
id: zod169.ZodString;
|
|
6135
|
+
}, better_auth63.$strip>;
|
|
6136
|
+
use: ((inputContext: better_call62.MiddlewareInputContext<better_call62.MiddlewareOptions>) => Promise<{
|
|
6137
6137
|
session: {
|
|
6138
6138
|
session: Record<string, any> & {
|
|
6139
6139
|
id: string;
|
|
@@ -6300,23 +6300,23 @@ declare const selectClient: (s: AdminState) => QuestpieClient<questpie31.Questpi
|
|
|
6300
6300
|
createdAt: Date;
|
|
6301
6301
|
updatedAt: Date;
|
|
6302
6302
|
}>;
|
|
6303
|
-
updateApiKey:
|
|
6303
|
+
updateApiKey: better_call62.StrictEndpoint<"/api-key/update", {
|
|
6304
6304
|
method: "POST";
|
|
6305
|
-
body:
|
|
6306
|
-
keyId:
|
|
6307
|
-
userId:
|
|
6308
|
-
name:
|
|
6309
|
-
enabled:
|
|
6310
|
-
remaining:
|
|
6311
|
-
refillAmount:
|
|
6312
|
-
refillInterval:
|
|
6313
|
-
metadata:
|
|
6314
|
-
expiresIn:
|
|
6315
|
-
rateLimitEnabled:
|
|
6316
|
-
rateLimitTimeWindow:
|
|
6317
|
-
rateLimitMax:
|
|
6318
|
-
permissions:
|
|
6319
|
-
},
|
|
6305
|
+
body: zod169.ZodObject<{
|
|
6306
|
+
keyId: zod169.ZodString;
|
|
6307
|
+
userId: zod169.ZodOptional<zod169.ZodCoercedString<unknown>>;
|
|
6308
|
+
name: zod169.ZodOptional<zod169.ZodString>;
|
|
6309
|
+
enabled: zod169.ZodOptional<zod169.ZodBoolean>;
|
|
6310
|
+
remaining: zod169.ZodOptional<zod169.ZodNumber>;
|
|
6311
|
+
refillAmount: zod169.ZodOptional<zod169.ZodNumber>;
|
|
6312
|
+
refillInterval: zod169.ZodOptional<zod169.ZodNumber>;
|
|
6313
|
+
metadata: zod169.ZodOptional<zod169.ZodAny>;
|
|
6314
|
+
expiresIn: zod169.ZodNullable<zod169.ZodOptional<zod169.ZodNumber>>;
|
|
6315
|
+
rateLimitEnabled: zod169.ZodOptional<zod169.ZodBoolean>;
|
|
6316
|
+
rateLimitTimeWindow: zod169.ZodOptional<zod169.ZodNumber>;
|
|
6317
|
+
rateLimitMax: zod169.ZodOptional<zod169.ZodNumber>;
|
|
6318
|
+
permissions: zod169.ZodNullable<zod169.ZodOptional<zod169.ZodRecord<zod169.ZodString, zod169.ZodArray<zod169.ZodString>>>>;
|
|
6319
|
+
}, better_auth63.$strip>;
|
|
6320
6320
|
metadata: {
|
|
6321
6321
|
openapi: {
|
|
6322
6322
|
description: string;
|
|
@@ -6461,12 +6461,12 @@ declare const selectClient: (s: AdminState) => QuestpieClient<questpie31.Questpi
|
|
|
6461
6461
|
createdAt: Date;
|
|
6462
6462
|
updatedAt: Date;
|
|
6463
6463
|
}>;
|
|
6464
|
-
deleteApiKey:
|
|
6464
|
+
deleteApiKey: better_call62.StrictEndpoint<"/api-key/delete", {
|
|
6465
6465
|
method: "POST";
|
|
6466
|
-
body:
|
|
6467
|
-
keyId:
|
|
6468
|
-
},
|
|
6469
|
-
use: ((inputContext:
|
|
6466
|
+
body: zod169.ZodObject<{
|
|
6467
|
+
keyId: zod169.ZodString;
|
|
6468
|
+
}, better_auth63.$strip>;
|
|
6469
|
+
use: ((inputContext: better_call62.MiddlewareInputContext<better_call62.MiddlewareOptions>) => Promise<{
|
|
6470
6470
|
session: {
|
|
6471
6471
|
session: Record<string, any> & {
|
|
6472
6472
|
id: string;
|
|
@@ -6532,9 +6532,9 @@ declare const selectClient: (s: AdminState) => QuestpieClient<questpie31.Questpi
|
|
|
6532
6532
|
}, {
|
|
6533
6533
|
success: boolean;
|
|
6534
6534
|
}>;
|
|
6535
|
-
listApiKeys:
|
|
6535
|
+
listApiKeys: better_call62.StrictEndpoint<"/api-key/list", {
|
|
6536
6536
|
method: "GET";
|
|
6537
|
-
use: ((inputContext:
|
|
6537
|
+
use: ((inputContext: better_call62.MiddlewareInputContext<better_call62.MiddlewareOptions>) => Promise<{
|
|
6538
6538
|
session: {
|
|
6539
6539
|
session: Record<string, any> & {
|
|
6540
6540
|
id: string;
|
|
@@ -6704,7 +6704,7 @@ declare const selectClient: (s: AdminState) => QuestpieClient<questpie31.Questpi
|
|
|
6704
6704
|
createdAt: Date;
|
|
6705
6705
|
updatedAt: Date;
|
|
6706
6706
|
}[]>;
|
|
6707
|
-
deleteAllExpiredApiKeys:
|
|
6707
|
+
deleteAllExpiredApiKeys: better_call62.StrictEndpoint<string, {
|
|
6708
6708
|
method: "POST";
|
|
6709
6709
|
}, {
|
|
6710
6710
|
success: boolean;
|
|
@@ -6826,31 +6826,31 @@ declare const selectClient: (s: AdminState) => QuestpieClient<questpie31.Questpi
|
|
|
6826
6826
|
required: false;
|
|
6827
6827
|
input: true;
|
|
6828
6828
|
transform: {
|
|
6829
|
-
input(value:
|
|
6830
|
-
output(value:
|
|
6829
|
+
input(value: better_auth63.DBPrimitive): string;
|
|
6830
|
+
output(value: better_auth63.DBPrimitive): any;
|
|
6831
6831
|
};
|
|
6832
6832
|
};
|
|
6833
6833
|
};
|
|
6834
6834
|
};
|
|
6835
6835
|
};
|
|
6836
|
-
options:
|
|
6836
|
+
options: better_auth_plugins25.ApiKeyOptions | undefined;
|
|
6837
6837
|
}, {
|
|
6838
6838
|
id: "bearer";
|
|
6839
6839
|
hooks: {
|
|
6840
6840
|
before: {
|
|
6841
|
-
matcher(context:
|
|
6842
|
-
handler: (inputContext:
|
|
6841
|
+
matcher(context: better_auth63.HookEndpointContext): boolean;
|
|
6842
|
+
handler: (inputContext: better_call62.MiddlewareInputContext<better_call62.MiddlewareOptions>) => Promise<{
|
|
6843
6843
|
context: {
|
|
6844
6844
|
headers: Headers;
|
|
6845
6845
|
};
|
|
6846
6846
|
} | undefined>;
|
|
6847
6847
|
}[];
|
|
6848
6848
|
after: {
|
|
6849
|
-
matcher(context:
|
|
6850
|
-
handler: (inputContext:
|
|
6849
|
+
matcher(context: better_auth63.HookEndpointContext): true;
|
|
6850
|
+
handler: (inputContext: better_call62.MiddlewareInputContext<better_call62.MiddlewareOptions>) => Promise<void>;
|
|
6851
6851
|
}[];
|
|
6852
6852
|
};
|
|
6853
|
-
options:
|
|
6853
|
+
options: better_auth_plugins25.BearerOptions | undefined;
|
|
6854
6854
|
}];
|
|
6855
6855
|
emailAndPassword: {
|
|
6856
6856
|
enabled: true;
|
|
@@ -6864,21 +6864,21 @@ declare const selectClient: (s: AdminState) => QuestpieClient<questpie31.Questpi
|
|
|
6864
6864
|
url: string;
|
|
6865
6865
|
};
|
|
6866
6866
|
functions: {
|
|
6867
|
-
mintPreviewToken:
|
|
6867
|
+
mintPreviewToken: questpie134.JsonFunctionDefinition<{
|
|
6868
6868
|
path: string;
|
|
6869
6869
|
ttlMs?: number | undefined;
|
|
6870
6870
|
}, {
|
|
6871
6871
|
token: string;
|
|
6872
6872
|
expiresAt: number;
|
|
6873
6873
|
}, any>;
|
|
6874
|
-
verifyPreviewToken:
|
|
6874
|
+
verifyPreviewToken: questpie134.JsonFunctionDefinition<{
|
|
6875
6875
|
token: string;
|
|
6876
6876
|
}, {
|
|
6877
6877
|
valid: boolean;
|
|
6878
6878
|
path?: string | undefined;
|
|
6879
6879
|
error?: string | undefined;
|
|
6880
6880
|
}, any>;
|
|
6881
|
-
getContentLocales:
|
|
6881
|
+
getContentLocales: questpie134.JsonFunctionDefinition<Record<string, never> | undefined, {
|
|
6882
6882
|
locales: {
|
|
6883
6883
|
code: string;
|
|
6884
6884
|
label?: string | undefined;
|
|
@@ -6888,10 +6888,10 @@ declare const selectClient: (s: AdminState) => QuestpieClient<questpie31.Questpi
|
|
|
6888
6888
|
defaultLocale: string;
|
|
6889
6889
|
fallbacks?: Record<string, string> | undefined;
|
|
6890
6890
|
}, any>;
|
|
6891
|
-
isSetupRequired:
|
|
6891
|
+
isSetupRequired: questpie134.JsonFunctionDefinition<Record<string, never>, {
|
|
6892
6892
|
required: boolean;
|
|
6893
6893
|
}, any>;
|
|
6894
|
-
createFirstAdmin:
|
|
6894
|
+
createFirstAdmin: questpie134.JsonFunctionDefinition<{
|
|
6895
6895
|
email: string;
|
|
6896
6896
|
password: string;
|
|
6897
6897
|
name: string;
|
|
@@ -6906,18 +6906,18 @@ declare const selectClient: (s: AdminState) => QuestpieClient<questpie31.Questpi
|
|
|
6906
6906
|
}, any>;
|
|
6907
6907
|
};
|
|
6908
6908
|
secret: string | undefined;
|
|
6909
|
-
storage:
|
|
6909
|
+
storage: questpie134.StorageConfig | undefined;
|
|
6910
6910
|
queue: {
|
|
6911
|
-
jobs:
|
|
6912
|
-
adapter:
|
|
6911
|
+
jobs: questpie134.TypeMerge<questpie134.UnsetProperty<{}, keyof TOtherJobs>, {}>;
|
|
6912
|
+
adapter: questpie134.QueueAdapter;
|
|
6913
6913
|
};
|
|
6914
|
-
searchConfig:
|
|
6915
|
-
realtime:
|
|
6914
|
+
searchConfig: questpie134.SearchConfig | undefined;
|
|
6915
|
+
realtime: questpie134.RealtimeConfig | undefined;
|
|
6916
6916
|
logger: questpie_shared0.LoggerConfig | undefined;
|
|
6917
6917
|
kv: questpie_shared0.KVConfig | undefined;
|
|
6918
6918
|
migrations: {
|
|
6919
6919
|
directory?: string;
|
|
6920
|
-
migrations?:
|
|
6920
|
+
migrations?: questpie134.Migration[];
|
|
6921
6921
|
} | undefined;
|
|
6922
6922
|
}>>;
|
|
6923
6923
|
/** Select auth client instance */
|
|
@@ -9830,7 +9830,7 @@ type GlobalNames$2<TApp extends Questpie<any>> = TApp extends Questpie<infer TCo
|
|
|
9830
9830
|
* const builder = qa<AppCMS>().use(coreAdminModule);
|
|
9831
9831
|
* ```
|
|
9832
9832
|
*/
|
|
9833
|
-
declare const coreAdminModule: AdminBuilder<
|
|
9833
|
+
declare const coreAdminModule: AdminBuilder<questpie134.SetProperty<{
|
|
9834
9834
|
locale: {
|
|
9835
9835
|
default: string;
|
|
9836
9836
|
supported: string[];
|
|
@@ -10061,27 +10061,27 @@ declare const coreAdminModule: AdminBuilder<questpie31.SetProperty<{
|
|
|
10061
10061
|
defaultViews: {};
|
|
10062
10062
|
translations: {};
|
|
10063
10063
|
}, "pages", {
|
|
10064
|
-
dashboard: PageBuilder<
|
|
10064
|
+
dashboard: PageBuilder<questpie134.SetProperty<{
|
|
10065
10065
|
name: "dashboard";
|
|
10066
10066
|
component: () => Promise<typeof dashboard_page_d_exports>;
|
|
10067
10067
|
path: undefined;
|
|
10068
10068
|
}, "path", string>>;
|
|
10069
|
-
login: PageBuilder<
|
|
10069
|
+
login: PageBuilder<questpie134.SetProperty<{
|
|
10070
10070
|
name: "login";
|
|
10071
10071
|
component: () => Promise<typeof login_page_d_exports>;
|
|
10072
10072
|
path: undefined;
|
|
10073
10073
|
}, "path", string>>;
|
|
10074
|
-
setup: PageBuilder<
|
|
10074
|
+
setup: PageBuilder<questpie134.SetProperty<{
|
|
10075
10075
|
name: "setup";
|
|
10076
10076
|
component: () => Promise<typeof setup_page_d_exports>;
|
|
10077
10077
|
path: undefined;
|
|
10078
10078
|
}, "path", string>>;
|
|
10079
|
-
forgotPassword: PageBuilder<
|
|
10079
|
+
forgotPassword: PageBuilder<questpie134.SetProperty<{
|
|
10080
10080
|
name: "forgot-password";
|
|
10081
10081
|
component: () => Promise<typeof forgot_password_page_d_exports>;
|
|
10082
10082
|
path: undefined;
|
|
10083
10083
|
}, "path", string>>;
|
|
10084
|
-
resetPassword: PageBuilder<
|
|
10084
|
+
resetPassword: PageBuilder<questpie134.SetProperty<{
|
|
10085
10085
|
name: "reset-password";
|
|
10086
10086
|
component: () => Promise<typeof reset_password_page_d_exports>;
|
|
10087
10087
|
path: undefined;
|
|
@@ -10134,7 +10134,7 @@ type CoreAdminModule = typeof coreAdminModule;
|
|
|
10134
10134
|
* });
|
|
10135
10135
|
* ```
|
|
10136
10136
|
*/
|
|
10137
|
-
declare const adminModule: AdminBuilder<
|
|
10137
|
+
declare const adminModule: AdminBuilder<questpie134.SetProperty<questpie134.SetProperty<questpie134.SetProperty<{
|
|
10138
10138
|
locale: {
|
|
10139
10139
|
default: string;
|
|
10140
10140
|
supported: string[];
|
|
@@ -10365,35 +10365,35 @@ declare const adminModule: AdminBuilder<questpie31.SetProperty<questpie31.SetPro
|
|
|
10365
10365
|
defaultViews: {};
|
|
10366
10366
|
translations: {};
|
|
10367
10367
|
}, "pages", {
|
|
10368
|
-
dashboard: PageBuilder<
|
|
10368
|
+
dashboard: PageBuilder<questpie134.SetProperty<{
|
|
10369
10369
|
name: "dashboard";
|
|
10370
10370
|
component: () => Promise<typeof dashboard_page_d_exports>;
|
|
10371
10371
|
path: undefined;
|
|
10372
10372
|
}, "path", string>>;
|
|
10373
|
-
login: PageBuilder<
|
|
10373
|
+
login: PageBuilder<questpie134.SetProperty<{
|
|
10374
10374
|
name: "login";
|
|
10375
10375
|
component: () => Promise<typeof login_page_d_exports>;
|
|
10376
10376
|
path: undefined;
|
|
10377
10377
|
}, "path", string>>;
|
|
10378
|
-
setup: PageBuilder<
|
|
10378
|
+
setup: PageBuilder<questpie134.SetProperty<{
|
|
10379
10379
|
name: "setup";
|
|
10380
10380
|
component: () => Promise<typeof setup_page_d_exports>;
|
|
10381
10381
|
path: undefined;
|
|
10382
10382
|
}, "path", string>>;
|
|
10383
|
-
forgotPassword: PageBuilder<
|
|
10383
|
+
forgotPassword: PageBuilder<questpie134.SetProperty<{
|
|
10384
10384
|
name: "forgot-password";
|
|
10385
10385
|
component: () => Promise<typeof forgot_password_page_d_exports>;
|
|
10386
10386
|
path: undefined;
|
|
10387
10387
|
}, "path", string>>;
|
|
10388
|
-
resetPassword: PageBuilder<
|
|
10388
|
+
resetPassword: PageBuilder<questpie134.SetProperty<{
|
|
10389
10389
|
name: "reset-password";
|
|
10390
10390
|
component: () => Promise<typeof reset_password_page_d_exports>;
|
|
10391
10391
|
path: undefined;
|
|
10392
10392
|
}, "path", string>>;
|
|
10393
10393
|
}>, "collections", {
|
|
10394
|
-
user: CollectionBuilder<
|
|
10394
|
+
user: CollectionBuilder<questpie134.SetProperty<questpie134.SetProperty<questpie134.SetProperty<{
|
|
10395
10395
|
name: "user";
|
|
10396
|
-
"~adminApp": AdminBuilder<
|
|
10396
|
+
"~adminApp": AdminBuilder<questpie134.SetProperty<{
|
|
10397
10397
|
locale: {
|
|
10398
10398
|
default: string;
|
|
10399
10399
|
supported: string[];
|
|
@@ -10624,27 +10624,27 @@ declare const adminModule: AdminBuilder<questpie31.SetProperty<questpie31.SetPro
|
|
|
10624
10624
|
defaultViews: {};
|
|
10625
10625
|
translations: {};
|
|
10626
10626
|
}, "pages", {
|
|
10627
|
-
dashboard: PageBuilder<
|
|
10627
|
+
dashboard: PageBuilder<questpie134.SetProperty<{
|
|
10628
10628
|
name: "dashboard";
|
|
10629
10629
|
component: () => Promise<typeof dashboard_page_d_exports>;
|
|
10630
10630
|
path: undefined;
|
|
10631
10631
|
}, "path", string>>;
|
|
10632
|
-
login: PageBuilder<
|
|
10632
|
+
login: PageBuilder<questpie134.SetProperty<{
|
|
10633
10633
|
name: "login";
|
|
10634
10634
|
component: () => Promise<typeof login_page_d_exports>;
|
|
10635
10635
|
path: undefined;
|
|
10636
10636
|
}, "path", string>>;
|
|
10637
|
-
setup: PageBuilder<
|
|
10637
|
+
setup: PageBuilder<questpie134.SetProperty<{
|
|
10638
10638
|
name: "setup";
|
|
10639
10639
|
component: () => Promise<typeof setup_page_d_exports>;
|
|
10640
10640
|
path: undefined;
|
|
10641
10641
|
}, "path", string>>;
|
|
10642
|
-
forgotPassword: PageBuilder<
|
|
10642
|
+
forgotPassword: PageBuilder<questpie134.SetProperty<{
|
|
10643
10643
|
name: "forgot-password";
|
|
10644
10644
|
component: () => Promise<typeof forgot_password_page_d_exports>;
|
|
10645
10645
|
path: undefined;
|
|
10646
10646
|
}, "path", string>>;
|
|
10647
|
-
resetPassword: PageBuilder<
|
|
10647
|
+
resetPassword: PageBuilder<questpie134.SetProperty<{
|
|
10648
10648
|
name: "reset-password";
|
|
10649
10649
|
component: () => Promise<typeof reset_password_page_d_exports>;
|
|
10650
10650
|
path: undefined;
|
|
@@ -10668,9 +10668,9 @@ declare const adminModule: AdminBuilder<questpie31.SetProperty<questpie31.SetPro
|
|
|
10668
10668
|
"~config": FormViewConfig;
|
|
10669
10669
|
component: typeof FormView;
|
|
10670
10670
|
}>>>;
|
|
10671
|
-
assets: CollectionBuilder<
|
|
10671
|
+
assets: CollectionBuilder<questpie134.SetProperty<questpie134.SetProperty<questpie134.SetProperty<{
|
|
10672
10672
|
name: "assets";
|
|
10673
|
-
"~adminApp": AdminBuilder<
|
|
10673
|
+
"~adminApp": AdminBuilder<questpie134.SetProperty<{
|
|
10674
10674
|
locale: {
|
|
10675
10675
|
default: string;
|
|
10676
10676
|
supported: string[];
|
|
@@ -10901,27 +10901,27 @@ declare const adminModule: AdminBuilder<questpie31.SetProperty<questpie31.SetPro
|
|
|
10901
10901
|
defaultViews: {};
|
|
10902
10902
|
translations: {};
|
|
10903
10903
|
}, "pages", {
|
|
10904
|
-
dashboard: PageBuilder<
|
|
10904
|
+
dashboard: PageBuilder<questpie134.SetProperty<{
|
|
10905
10905
|
name: "dashboard";
|
|
10906
10906
|
component: () => Promise<typeof dashboard_page_d_exports>;
|
|
10907
10907
|
path: undefined;
|
|
10908
10908
|
}, "path", string>>;
|
|
10909
|
-
login: PageBuilder<
|
|
10909
|
+
login: PageBuilder<questpie134.SetProperty<{
|
|
10910
10910
|
name: "login";
|
|
10911
10911
|
component: () => Promise<typeof login_page_d_exports>;
|
|
10912
10912
|
path: undefined;
|
|
10913
10913
|
}, "path", string>>;
|
|
10914
|
-
setup: PageBuilder<
|
|
10914
|
+
setup: PageBuilder<questpie134.SetProperty<{
|
|
10915
10915
|
name: "setup";
|
|
10916
10916
|
component: () => Promise<typeof setup_page_d_exports>;
|
|
10917
10917
|
path: undefined;
|
|
10918
10918
|
}, "path", string>>;
|
|
10919
|
-
forgotPassword: PageBuilder<
|
|
10919
|
+
forgotPassword: PageBuilder<questpie134.SetProperty<{
|
|
10920
10920
|
name: "forgot-password";
|
|
10921
10921
|
component: () => Promise<typeof forgot_password_page_d_exports>;
|
|
10922
10922
|
path: undefined;
|
|
10923
10923
|
}, "path", string>>;
|
|
10924
|
-
resetPassword: PageBuilder<
|
|
10924
|
+
resetPassword: PageBuilder<questpie134.SetProperty<{
|
|
10925
10925
|
name: "reset-password";
|
|
10926
10926
|
component: () => Promise<typeof reset_password_page_d_exports>;
|
|
10927
10927
|
path: undefined;
|
|
@@ -12200,7 +12200,7 @@ declare function useGlobalUpdate<K$1 extends ResolvedGlobalNames>(globalName: K$
|
|
|
12200
12200
|
* Note: This hook requires the adminModule to be used in your CMS setup.
|
|
12201
12201
|
* If admin_saved_views collection is not available, returns empty array.
|
|
12202
12202
|
*/
|
|
12203
|
-
declare function useSavedViews(collectionName: string):
|
|
12203
|
+
declare function useSavedViews(collectionName: string): _tanstack_react_query6.UseQueryResult<{
|
|
12204
12204
|
docs: SavedView[];
|
|
12205
12205
|
}, Error>;
|
|
12206
12206
|
//#endregion
|
|
@@ -12236,7 +12236,7 @@ interface SetupStatus {
|
|
|
12236
12236
|
* }
|
|
12237
12237
|
* ```
|
|
12238
12238
|
*/
|
|
12239
|
-
declare function useSetupStatus():
|
|
12239
|
+
declare function useSetupStatus(): _tanstack_react_query6.UseQueryResult<SetupStatus, Error>;
|
|
12240
12240
|
//#endregion
|
|
12241
12241
|
//#region src/client/hooks/use-media-query.d.ts
|
|
12242
12242
|
/**
|
|
@@ -13400,4 +13400,4 @@ type CollectionFieldKeys<TApp extends Questpie<any>, TCollectionName extends str
|
|
|
13400
13400
|
} ? keyof TSelect : never : never : never;
|
|
13401
13401
|
//#endregion
|
|
13402
13402
|
export { BlockRenderer as $, LoginForm as $n, BlockDefinition as $r, SectionBuilderState as $t, BlockScopeContextValue as A, BaseFieldProps$1 as Ai, selectAuthClient as An, DashboardWidgetConfig as Ar, useShallow as At, StandalonePreviewField as B, AdminLayout as Bn, PageBuilder as Br, global$1 as Bt, PreviewReadyMessage as C, RelationFieldConfig$1 as Ci, AdminRouter as Cn, SidebarLinkItem as Cr, useCollectionItem as Ct, SelectBlockMessage as D, TabConfig as Di, AdminState as Dn, BaseWidgetConfig as Dr, useAuthClient as Dt, RefreshCompleteMessage as E, SelectOption$1 as Ei, AdminProviderProps as En, AnyWidgetConfig as Er, createAdminAuthClient as Et, PreviewBanner as F, selectNavigate as Fn, StatsWidgetConfig as Fr, CoreAdminModule as Ft, PreviewToggleButton as G, FormView as Gn, GlobalConfig as Gr, AdminTypeRegistry as Gt, PreviewPane as H, TableView as Hn, PageDefinition as Hr, Admin as Ht, PreviewBannerProps as I, selectNavigation as In, WidgetAction as Ir, coreAdminModule as It, BlockPrefetchError as J, SetupForm as Jn, CollectionConfig as Jr, RegisteredCMS as Jt, PreviewToggleButtonProps as K, FormViewProps as Kn, AutoSaveConfig as Kr, IsRegistered as Kt, PreviewField as L, selectSetContentLocale as Ln, WidgetComponentProps as Lr, qa as Lt, BlockScopeProviderProps as M, MaybeLazyComponent as Mi, selectBrandName as Mn, KnownWidgetType as Mr, adminMessagesEN as Mt, useBlockScope as N, I18nContext as Ni, selectClient as Nn, QuickActionsWidgetConfig as Nr, AdminModule as Nt, isAdminToPreviewMessage as O, TabsLayout as Oi, AdminStore as On, ChartWidgetConfig as Or, TypedHooks as Ot, useResolveFieldPath as P, I18nText as Pi, selectContentLocale as Pn, RecentItemsWidgetConfig as Pr, adminModule as Pt, prefetchBlockData as Q, ForgotPasswordForm as Qn, BlockBuilderState as Qr, SectionBuilder as Qt, PreviewFieldProps as R, useAdminStore as Rn, WidgetConfig as Rr, AdminHelpers as Rt, PreviewConfig as S, LayoutMode$1 as Si, DashboardPage as Sn, SidebarItem as Sr, useCollectionDelete as St, PreviewToAdminMessage as T, SectionLayout as Ti, AdminProvider as Tn, SidebarSection as Tr, useCollectionUpdate as Tt, PreviewPaneProps as U, TableViewConfig as Un, page as Ur, AppAdmin as Ut, usePreviewContext as V, AdminSidebar as Vn, PageBuilderState as Vr, collection$1 as Vt, PreviewPaneRef as W, TableViewProps as Wn, GlobalBuilderState as Wr, InferAdminCMS as Wt, BlockPrefetchResult as X, AcceptInviteForm as Xn, ColumnConfigObject as Xr, RegisteredGlobalNames as Xt, BlockPrefetchParams as Y, SetupFormValues as Yn, ColumnConfig as Yr, RegisteredCollectionNames as Yt, TypedBlockPrefetch as Z, ResetPasswordForm as Zn, ListViewConfig as Zr, AdminBuilder as Zt, useCollectionPreview as _, FieldComponentProps as _i, AcceptInvitePage as _n, LocaleConfig as _r, useSavedViews as _t, FocusContextValue as a, BlockRendererProps$1 as ai, TypedSidebarItem as an, widget as ar, AdminTopbar as at, FieldClickedMessage as b, FormSidebarConfig as bi, ForgotPasswordPage as bn, SidebarDividerItem as br, useCurrentUser as bt, FocusState as c, isBlockContent as ci, GlobalBuilder as cn, EditViewDefinition as cr, DashboardGrid as ct, useFocus as d, FieldDefinition as di, block as dn, ListViewDefinition as dr, TipTapDoc as dt, InferBlockValues as ei, SidebarBuilder as en, AuthLayout as er, BlockRendererProps as et, useFocusOptional as f, field$1 as fi, AuthLoading as fn, editView as fr, TipTapNode as ft, UseCollectionPreviewResult as g, EmbeddedFieldConfig$1 as gi, SetupPageProps as gn, DashboardConfig as gr, useSetupStatus as gt, UseCollectionPreviewOptions as h, EmbeddedCollectionProps as hi, SetupPage as hn, BrandingConfig as hr, useMediaQuery as ht, GlobalNames as i, BlockPrefetch as ii, TypedSidebarGlobalItem as in, WidgetDefinition as ir, getFlagUrl as it, BlockScopeProvider as j, IconComponent as ji, selectBasePath as jn, GenericWidgetConfig as jr, adminMessagesSK as jt, isPreviewToAdminMessage as k, WrapperMode as ki, selectAdmin as kn, CustomWidgetConfig as kr, createTypedHooks as kt, parsePreviewFieldPath as l, FieldBuilder as li, CollectionBuilder as ln, ListViewBuilder as lr, RichTextRenderer as lt, useIsFieldFocused as m, ComponentRegistry as mi, AdminLink as mn, DefaultViewsConfig as mr, useIsMobile as mt, CollectionItem as n, BlockContent as ni, SidebarItemForApp as nn, WidgetBuilder as nr, getCountryCode as nt, FocusProvider as o, EMPTY_BLOCK_CONTENT as oi, section as on, EditViewBuilder as or, GlobalForm as ot, useIsBlockFocused as p, ArrayFieldConfig$1 as pi, AuthGuard as pn, listView as pr, useIsDesktop as pt, BlockPrefetchContext as q, FormViewRegistryConfig as qn, CollectionBuilderState as qr, RegisteredAdmin as qt, CollectionNames as r, BlockNode as ri, TypedSidebarCollectionItem as rn, WidgetBuilderState as rr, getFlagConfig as rt, FocusProviderProps as s, createBlockNode as si, sidebar$1 as sn, EditViewBuilderState as sr, DashboardWidget as st, CollectionFieldKeys as t, BlockCategory as ti, SidebarBuilderState as tn, AdminBuilderState as tr, FlagConfig as tt, scrollFieldIntoView as u, FieldBuilderState as ui, BlockBuilder as un, ListViewBuilderState as ur, RichTextStyles as ut, AdminToPreviewMessage as v, FieldLayoutItem as vi, InvitePage as vn, SidebarCollectionItem as vr, useGlobal as vt, PreviewRefreshMessage as w, RichTextConfig as wi, AdminRouterProps as wn, SidebarPageItem as wr, useCollectionList as wt, FocusFieldMessage as x, FormViewConfig as xi, LoginPage as xn, SidebarGlobalItem as xr, useCollectionCreate as xt, BlockClickedMessage as y, FieldUIConfig as yi, ResetPasswordPage as yn, SidebarConfig as yr, useGlobalUpdate as yt, PreviewProvider as z, AdminLayoutProvider as zn, WidgetDataSource as zr, createAdminHelpers as zt };
|
|
13403
|
-
//# sourceMappingURL=client-
|
|
13403
|
+
//# sourceMappingURL=client-D1DqawtP.d.mts.map
|