@questpie/admin 1.0.5 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{client-BcHj40mZ.d.mts → client-B7r47hEd.d.mts} +374 -373
- package/dist/{client-BcHj40mZ.d.mts.map → client-B7r47hEd.d.mts.map} +1 -1
- package/dist/client.d.mts +2 -2
- package/dist/{index-CSdBA36M.d.mts → index-BYyqkWtn.d.mts} +444 -444
- package/dist/{index-CSdBA36M.d.mts.map → index-BYyqkWtn.d.mts.map} +1 -1
- package/dist/index.d.mts +2 -2
- package/dist/server.d.mts +1 -1
- package/package.json +3 -3
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { t as adminModule$1 } from "./index-
|
|
1
|
+
import { t as adminModule$1 } from "./index-BYyqkWtn.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 zod0 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";
|
|
@@ -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 questpie31 from "questpie";
|
|
37
37
|
import { CollectionInfer, Questpie } from "questpie";
|
|
38
|
-
import * as
|
|
39
|
-
import * as
|
|
40
|
-
import * as
|
|
38
|
+
import * as drizzle_orm_pg_core0 from "drizzle-orm/pg-core";
|
|
39
|
+
import * as drizzle_orm0 from "drizzle-orm";
|
|
40
|
+
import * as better_auth0 from "better-auth";
|
|
41
41
|
import { BetterAuthOptions } from "better-auth";
|
|
42
|
-
import * as
|
|
43
|
-
import * as
|
|
42
|
+
import * as better_call0 from "better-call";
|
|
43
|
+
import * as better_auth_plugins0 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<questpie31.Questpie<{
|
|
4750
|
+
locale: questpie31.LocaleConfig | undefined;
|
|
4751
4751
|
email: {
|
|
4752
|
-
templates:
|
|
4753
|
-
adapter:
|
|
4752
|
+
templates: questpie31.TypeMerge<questpie31.UnsetProperty<{}, keyof TOtherEmailTemplates>, {}>;
|
|
4753
|
+
adapter: questpie31.MailAdapter;
|
|
4754
4754
|
};
|
|
4755
|
-
search:
|
|
4755
|
+
search: questpie31.SearchAdapter | undefined;
|
|
4756
4756
|
collections: {
|
|
4757
|
-
user:
|
|
4757
|
+
user: questpie31.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_orm0.NotNull<drizzle_orm_pg_core0.PgVarcharBuilder<[string, ...string[]]>>;
|
|
4764
|
+
email: drizzle_orm0.NotNull<drizzle_orm_pg_core0.PgVarcharBuilder<[string, ...string[]]>>;
|
|
4765
|
+
emailVerified: drizzle_orm0.NotNull<drizzle_orm_pg_core0.PgBooleanBuilder>;
|
|
4766
|
+
image: drizzle_orm_pg_core0.PgVarcharBuilder<[string, ...string[]]>;
|
|
4767
|
+
role: drizzle_orm_pg_core0.PgVarcharBuilder<[string, ...string[]]>;
|
|
4768
|
+
banned: drizzle_orm0.HasDefault<drizzle_orm_pg_core0.PgBooleanBuilder>;
|
|
4769
|
+
banReason: drizzle_orm_pg_core0.PgVarcharBuilder<[string, ...string[]]>;
|
|
4770
|
+
banExpires: drizzle_orm_pg_core0.PgTimestampBuilder;
|
|
4771
4771
|
};
|
|
4772
4772
|
localized: [];
|
|
4773
4773
|
virtuals: undefined;
|
|
4774
|
-
relations: Record<string,
|
|
4774
|
+
relations: Record<string, questpie31.RelationConfig>;
|
|
4775
4775
|
indexes: Record<string, any>;
|
|
4776
4776
|
title: "name";
|
|
4777
|
-
hooks:
|
|
4778
|
-
access:
|
|
4777
|
+
hooks: questpie31.CollectionHooks<any, any, any, any>;
|
|
4778
|
+
access: questpie31.CollectionAccess<any, any>;
|
|
4779
4779
|
functions: {
|
|
4780
|
-
[x: string]:
|
|
4780
|
+
[x: string]: questpie31.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: questpie31.CollectionBuilder<{
|
|
4788
|
+
options: questpie31.CollectionOptions;
|
|
4789
4789
|
name: "session";
|
|
4790
4790
|
fields: {
|
|
4791
|
-
userId:
|
|
4792
|
-
token:
|
|
4793
|
-
expiresAt:
|
|
4794
|
-
ipAddress:
|
|
4795
|
-
userAgent:
|
|
4796
|
-
impersonatedBy:
|
|
4791
|
+
userId: drizzle_orm0.NotNull<drizzle_orm_pg_core0.PgVarcharBuilder<[string, ...string[]]>>;
|
|
4792
|
+
token: drizzle_orm0.NotNull<drizzle_orm_pg_core0.PgVarcharBuilder<[string, ...string[]]>>;
|
|
4793
|
+
expiresAt: drizzle_orm0.NotNull<drizzle_orm_pg_core0.PgTimestampBuilder>;
|
|
4794
|
+
ipAddress: drizzle_orm_pg_core0.PgVarcharBuilder<[string, ...string[]]>;
|
|
4795
|
+
userAgent: drizzle_orm_pg_core0.PgVarcharBuilder<[string, ...string[]]>;
|
|
4796
|
+
impersonatedBy: drizzle_orm_pg_core0.PgVarcharBuilder<[string, ...string[]]>;
|
|
4797
4797
|
};
|
|
4798
4798
|
localized: [];
|
|
4799
4799
|
virtuals: undefined;
|
|
4800
|
-
relations: Record<string,
|
|
4800
|
+
relations: Record<string, questpie31.RelationConfig>;
|
|
4801
4801
|
indexes: Record<string, any>;
|
|
4802
4802
|
title: "token";
|
|
4803
|
-
hooks:
|
|
4804
|
-
access:
|
|
4803
|
+
hooks: questpie31.CollectionHooks<any, any, any, any>;
|
|
4804
|
+
access: questpie31.CollectionAccess<any, any>;
|
|
4805
4805
|
functions: {
|
|
4806
|
-
[x: string]:
|
|
4806
|
+
[x: string]: questpie31.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: questpie31.CollectionBuilder<{
|
|
4814
|
+
options: questpie31.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_orm0.NotNull<drizzle_orm_pg_core0.PgVarcharBuilder<[string, ...string[]]>>;
|
|
4818
|
+
accountId: drizzle_orm0.NotNull<drizzle_orm_pg_core0.PgVarcharBuilder<[string, ...string[]]>>;
|
|
4819
|
+
providerId: drizzle_orm0.NotNull<drizzle_orm_pg_core0.PgVarcharBuilder<[string, ...string[]]>>;
|
|
4820
|
+
accessToken: drizzle_orm_pg_core0.PgVarcharBuilder<[string, ...string[]]>;
|
|
4821
|
+
refreshToken: drizzle_orm_pg_core0.PgVarcharBuilder<[string, ...string[]]>;
|
|
4822
|
+
accessTokenExpiresAt: drizzle_orm_pg_core0.PgTimestampBuilder;
|
|
4823
|
+
refreshTokenExpiresAt: drizzle_orm_pg_core0.PgTimestampBuilder;
|
|
4824
|
+
scope: drizzle_orm_pg_core0.PgVarcharBuilder<[string, ...string[]]>;
|
|
4825
|
+
idToken: drizzle_orm_pg_core0.PgVarcharBuilder<[string, ...string[]]>;
|
|
4826
|
+
password: drizzle_orm_pg_core0.PgVarcharBuilder<[string, ...string[]]>;
|
|
4827
4827
|
};
|
|
4828
4828
|
localized: [];
|
|
4829
4829
|
virtuals: undefined;
|
|
4830
|
-
relations: Record<string,
|
|
4830
|
+
relations: Record<string, questpie31.RelationConfig>;
|
|
4831
4831
|
indexes: Record<string, any>;
|
|
4832
4832
|
title: "providerId";
|
|
4833
|
-
hooks:
|
|
4834
|
-
access:
|
|
4833
|
+
hooks: questpie31.CollectionHooks<any, any, any, any>;
|
|
4834
|
+
access: questpie31.CollectionAccess<any, any>;
|
|
4835
4835
|
functions: {
|
|
4836
|
-
[x: string]:
|
|
4836
|
+
[x: string]: questpie31.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: questpie31.CollectionBuilder<{
|
|
4844
|
+
options: questpie31.CollectionOptions;
|
|
4845
4845
|
name: "verification";
|
|
4846
4846
|
fields: {
|
|
4847
|
-
identifier:
|
|
4848
|
-
value:
|
|
4849
|
-
expiresAt:
|
|
4847
|
+
identifier: drizzle_orm0.NotNull<drizzle_orm_pg_core0.PgVarcharBuilder<[string, ...string[]]>>;
|
|
4848
|
+
value: drizzle_orm0.NotNull<drizzle_orm_pg_core0.PgVarcharBuilder<[string, ...string[]]>>;
|
|
4849
|
+
expiresAt: drizzle_orm0.NotNull<drizzle_orm_pg_core0.PgTimestampBuilder>;
|
|
4850
4850
|
};
|
|
4851
4851
|
localized: [];
|
|
4852
4852
|
virtuals: undefined;
|
|
4853
|
-
relations: Record<string,
|
|
4853
|
+
relations: Record<string, questpie31.RelationConfig>;
|
|
4854
4854
|
indexes: Record<string, any>;
|
|
4855
4855
|
title: "identifier";
|
|
4856
|
-
hooks:
|
|
4857
|
-
access:
|
|
4856
|
+
hooks: questpie31.CollectionHooks<any, any, any, any>;
|
|
4857
|
+
access: questpie31.CollectionAccess<any, any>;
|
|
4858
4858
|
functions: {
|
|
4859
|
-
[x: string]:
|
|
4859
|
+
[x: string]: questpie31.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: questpie31.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_core0.PgIntegerBuilder;
|
|
4873
|
+
height: drizzle_orm_pg_core0.PgIntegerBuilder;
|
|
4874
|
+
alt: drizzle_orm_pg_core0.PgVarcharBuilder<[string, ...string[]]>;
|
|
4875
|
+
caption: drizzle_orm_pg_core0.PgTextBuilder<[string, ...string[]]>;
|
|
4876
4876
|
} & {
|
|
4877
|
-
key:
|
|
4878
|
-
filename:
|
|
4879
|
-
mimeType:
|
|
4880
|
-
size:
|
|
4881
|
-
visibility:
|
|
4877
|
+
key: drizzle_orm0.NotNull<drizzle_orm_pg_core0.PgVarcharBuilder<[string, ...string[]]>>;
|
|
4878
|
+
filename: drizzle_orm0.NotNull<drizzle_orm_pg_core0.PgVarcharBuilder<[string, ...string[]]>>;
|
|
4879
|
+
mimeType: drizzle_orm0.NotNull<drizzle_orm_pg_core0.PgVarcharBuilder<[string, ...string[]]>>;
|
|
4880
|
+
size: drizzle_orm0.NotNull<drizzle_orm_pg_core0.PgIntegerBuilder>;
|
|
4881
|
+
visibility: drizzle_orm0.HasDefault<drizzle_orm0.NotNull<drizzle_orm_pg_core0.PgVarcharBuilder<["public", "private"]>>>;
|
|
4882
4882
|
};
|
|
4883
4883
|
localized: [];
|
|
4884
4884
|
virtuals: undefined;
|
|
4885
|
-
relations: Record<string,
|
|
4885
|
+
relations: Record<string, questpie31.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
|
+
}: questpie31.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<questpie134.Questp
|
|
|
4906
4906
|
url: string;
|
|
4907
4907
|
}, never, "delete", any>) => Promise<void>;
|
|
4908
4908
|
};
|
|
4909
|
-
access:
|
|
4909
|
+
access: questpie31.CollectionAccess<any, any>;
|
|
4910
4910
|
functions: {
|
|
4911
|
-
[x: string]:
|
|
4911
|
+
[x: string]: questpie31.FunctionDefinition<any, any, any>;
|
|
4912
4912
|
};
|
|
4913
4913
|
searchable: undefined;
|
|
4914
4914
|
validation: undefined;
|
|
4915
|
-
output:
|
|
4915
|
+
output: questpie31.TypeMerge<{}, {
|
|
4916
4916
|
url: string;
|
|
4917
4917
|
}>;
|
|
4918
|
-
upload:
|
|
4918
|
+
upload: questpie31.UploadOptions;
|
|
4919
4919
|
}>;
|
|
4920
|
-
apikey:
|
|
4920
|
+
apikey: questpie31.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_core0.PgVarcharBuilder<[string, ...string[]]>;
|
|
4927
|
+
start: drizzle_orm_pg_core0.PgVarcharBuilder<[string, ...string[]]>;
|
|
4928
|
+
prefix: drizzle_orm_pg_core0.PgVarcharBuilder<[string, ...string[]]>;
|
|
4929
|
+
key: drizzle_orm0.NotNull<drizzle_orm_pg_core0.PgVarcharBuilder<[string, ...string[]]>>;
|
|
4930
|
+
userId: drizzle_orm0.NotNull<drizzle_orm_pg_core0.PgVarcharBuilder<[string, ...string[]]>>;
|
|
4931
|
+
refillInterval: drizzle_orm_pg_core0.PgIntegerBuilder;
|
|
4932
|
+
refillAmount: drizzle_orm_pg_core0.PgIntegerBuilder;
|
|
4933
|
+
lastRefillAt: drizzle_orm_pg_core0.PgTimestampBuilder;
|
|
4934
|
+
enabled: drizzle_orm0.HasDefault<drizzle_orm_pg_core0.PgBooleanBuilder>;
|
|
4935
|
+
rateLimitEnabled: drizzle_orm0.HasDefault<drizzle_orm_pg_core0.PgBooleanBuilder>;
|
|
4936
|
+
rateLimitTimeWindow: drizzle_orm_pg_core0.PgIntegerBuilder;
|
|
4937
|
+
rateLimitMax: drizzle_orm_pg_core0.PgIntegerBuilder;
|
|
4938
|
+
requestCount: drizzle_orm0.HasDefault<drizzle_orm_pg_core0.PgIntegerBuilder>;
|
|
4939
|
+
remaining: drizzle_orm_pg_core0.PgIntegerBuilder;
|
|
4940
|
+
lastRequest: drizzle_orm_pg_core0.PgTimestampBuilder;
|
|
4941
|
+
expiresAt: drizzle_orm_pg_core0.PgTimestampBuilder;
|
|
4942
|
+
permissions: drizzle_orm_pg_core0.PgTextBuilder<[string, ...string[]]>;
|
|
4943
|
+
metadata: drizzle_orm_pg_core0.PgTextBuilder<[string, ...string[]]>;
|
|
4944
4944
|
};
|
|
4945
4945
|
localized: [];
|
|
4946
4946
|
virtuals: undefined;
|
|
4947
|
-
relations: Record<string,
|
|
4947
|
+
relations: Record<string, questpie31.RelationConfig>;
|
|
4948
4948
|
indexes: Record<string, any>;
|
|
4949
4949
|
title: "key";
|
|
4950
|
-
hooks:
|
|
4951
|
-
access:
|
|
4950
|
+
hooks: questpie31.CollectionHooks<any, any, any, any>;
|
|
4951
|
+
access: questpie31.CollectionAccess<any, any>;
|
|
4952
4952
|
functions: {
|
|
4953
|
-
[x: string]:
|
|
4953
|
+
[x: string]: questpie31.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: questpie31.CollectionBuilder<{
|
|
4961
4961
|
name: "admin_saved_views";
|
|
4962
4962
|
localized: [];
|
|
4963
4963
|
output: undefined;
|
|
@@ -4966,25 +4966,25 @@ declare const selectClient: (s: AdminState) => QuestpieClient<questpie134.Questp
|
|
|
4966
4966
|
timestamps: true;
|
|
4967
4967
|
};
|
|
4968
4968
|
fields: {
|
|
4969
|
-
userId:
|
|
4970
|
-
collectionName:
|
|
4971
|
-
name:
|
|
4972
|
-
configuration:
|
|
4973
|
-
isDefault:
|
|
4969
|
+
userId: drizzle_orm0.NotNull<drizzle_orm_pg_core0.PgVarcharBuilder<[string, ...string[]]>>;
|
|
4970
|
+
collectionName: drizzle_orm0.NotNull<drizzle_orm_pg_core0.PgVarcharBuilder<[string, ...string[]]>>;
|
|
4971
|
+
name: drizzle_orm0.NotNull<drizzle_orm_pg_core0.PgVarcharBuilder<[string, ...string[]]>>;
|
|
4972
|
+
configuration: drizzle_orm0.$Type<drizzle_orm0.NotNull<drizzle_orm_pg_core0.PgJsonbBuilder>, ViewConfiguration>;
|
|
4973
|
+
isDefault: drizzle_orm0.NotNull<drizzle_orm0.HasDefault<drizzle_orm_pg_core0.PgBooleanBuilder>>;
|
|
4974
4974
|
};
|
|
4975
4975
|
upload: undefined;
|
|
4976
4976
|
functions: {
|
|
4977
|
-
[x: string]:
|
|
4977
|
+
[x: string]: questpie31.FunctionDefinition<any, any, any>;
|
|
4978
4978
|
};
|
|
4979
|
-
hooks:
|
|
4979
|
+
hooks: questpie31.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, questpie31.RelationConfig>;
|
|
4984
|
+
access: questpie31.CollectionAccess<any, any>;
|
|
4985
4985
|
validation: undefined;
|
|
4986
4986
|
}>;
|
|
4987
|
-
admin_preferences:
|
|
4987
|
+
admin_preferences: questpie31.CollectionBuilder<{
|
|
4988
4988
|
name: "admin_preferences";
|
|
4989
4989
|
localized: [];
|
|
4990
4990
|
output: undefined;
|
|
@@ -4993,27 +4993,28 @@ declare const selectClient: (s: AdminState) => QuestpieClient<questpie134.Questp
|
|
|
4993
4993
|
timestamps: true;
|
|
4994
4994
|
};
|
|
4995
4995
|
fields: {
|
|
4996
|
-
userId:
|
|
4997
|
-
key:
|
|
4998
|
-
value:
|
|
4996
|
+
userId: drizzle_orm0.NotNull<drizzle_orm_pg_core0.PgVarcharBuilder<[string, ...string[]]>>;
|
|
4997
|
+
key: drizzle_orm0.NotNull<drizzle_orm_pg_core0.PgVarcharBuilder<[string, ...string[]]>>;
|
|
4998
|
+
value: drizzle_orm0.NotNull<drizzle_orm_pg_core0.PgJsonbBuilder>;
|
|
4999
4999
|
};
|
|
5000
5000
|
upload: undefined;
|
|
5001
5001
|
functions: {
|
|
5002
|
-
[x: string]:
|
|
5002
|
+
[x: string]: questpie31.FunctionDefinition<any, any, any>;
|
|
5003
5003
|
};
|
|
5004
|
-
hooks:
|
|
5005
|
-
indexes:
|
|
5004
|
+
hooks: questpie31.CollectionHooks<any, any, any, any>;
|
|
5005
|
+
indexes: drizzle_orm_pg_core0.IndexBuilder[];
|
|
5006
5006
|
searchable: undefined;
|
|
5007
5007
|
virtuals: undefined;
|
|
5008
|
-
relations: Record<string,
|
|
5009
|
-
access:
|
|
5008
|
+
relations: Record<string, questpie31.RelationConfig>;
|
|
5009
|
+
access: questpie31.CollectionAccess<any, any>;
|
|
5010
5010
|
validation: undefined;
|
|
5011
5011
|
}>;
|
|
5012
5012
|
};
|
|
5013
|
-
globals:
|
|
5014
|
-
translations:
|
|
5013
|
+
globals: questpie31.TypeMerge<questpie31.UnsetProperty<{}, keyof TOtherGlobals>, {}>;
|
|
5014
|
+
translations: questpie31.TranslationsConfig | undefined;
|
|
5015
|
+
defaultAccess: questpie31.CollectionAccess<any, any> | undefined;
|
|
5015
5016
|
"~messageKeys": unknown;
|
|
5016
|
-
auth:
|
|
5017
|
+
auth: questpie31.MergeAuthOptions<{}, questpie31.MergeAuthOptions<{}, {
|
|
5017
5018
|
baseURL: string | undefined;
|
|
5018
5019
|
secret: string | undefined;
|
|
5019
5020
|
advanced: {
|
|
@@ -5059,7 +5060,7 @@ declare const selectClient: (s: AdminState) => QuestpieClient<questpie134.Questp
|
|
|
5059
5060
|
token: string;
|
|
5060
5061
|
ipAddress?: string | null | undefined;
|
|
5061
5062
|
userAgent?: string | null | undefined;
|
|
5062
|
-
} & Record<string, unknown>, ctx:
|
|
5063
|
+
} & Record<string, unknown>, ctx: better_auth0.GenericEndpointContext | null): Promise<void>;
|
|
5063
5064
|
};
|
|
5064
5065
|
};
|
|
5065
5066
|
};
|
|
@@ -5067,22 +5068,22 @@ declare const selectClient: (s: AdminState) => QuestpieClient<questpie134.Questp
|
|
|
5067
5068
|
};
|
|
5068
5069
|
hooks: {
|
|
5069
5070
|
after: {
|
|
5070
|
-
matcher(context:
|
|
5071
|
-
handler: (inputContext:
|
|
5071
|
+
matcher(context: better_auth0.HookEndpointContext): boolean;
|
|
5072
|
+
handler: (inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<better_auth_plugins0.SessionWithImpersonatedBy[] | undefined>;
|
|
5072
5073
|
}[];
|
|
5073
5074
|
};
|
|
5074
5075
|
endpoints: {
|
|
5075
|
-
setRole:
|
|
5076
|
+
setRole: better_call0.StrictEndpoint<"/admin/set-role", {
|
|
5076
5077
|
method: "POST";
|
|
5077
|
-
body:
|
|
5078
|
-
userId:
|
|
5079
|
-
role:
|
|
5080
|
-
},
|
|
5078
|
+
body: zod0.ZodObject<{
|
|
5079
|
+
userId: zod0.ZodCoercedString<unknown>;
|
|
5080
|
+
role: zod0.ZodUnion<readonly [zod0.ZodString, zod0.ZodArray<zod0.ZodString>]>;
|
|
5081
|
+
}, better_auth0.$strip>;
|
|
5081
5082
|
requireHeaders: true;
|
|
5082
|
-
use: ((inputContext:
|
|
5083
|
+
use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
|
|
5083
5084
|
session: {
|
|
5084
|
-
user:
|
|
5085
|
-
session:
|
|
5085
|
+
user: better_auth_plugins0.UserWithRole;
|
|
5086
|
+
session: better_auth0.Session;
|
|
5086
5087
|
};
|
|
5087
5088
|
}>)[];
|
|
5088
5089
|
metadata: {
|
|
@@ -5116,17 +5117,17 @@ declare const selectClient: (s: AdminState) => QuestpieClient<questpie134.Questp
|
|
|
5116
5117
|
};
|
|
5117
5118
|
};
|
|
5118
5119
|
}, {
|
|
5119
|
-
user:
|
|
5120
|
+
user: better_auth_plugins0.UserWithRole;
|
|
5120
5121
|
}>;
|
|
5121
|
-
getUser:
|
|
5122
|
+
getUser: better_call0.StrictEndpoint<"/admin/get-user", {
|
|
5122
5123
|
method: "GET";
|
|
5123
|
-
query:
|
|
5124
|
-
id:
|
|
5125
|
-
},
|
|
5126
|
-
use: ((inputContext:
|
|
5124
|
+
query: zod0.ZodObject<{
|
|
5125
|
+
id: zod0.ZodString;
|
|
5126
|
+
}, better_auth0.$strip>;
|
|
5127
|
+
use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
|
|
5127
5128
|
session: {
|
|
5128
|
-
user:
|
|
5129
|
-
session:
|
|
5129
|
+
user: better_auth_plugins0.UserWithRole;
|
|
5130
|
+
session: better_auth0.Session;
|
|
5130
5131
|
};
|
|
5131
5132
|
}>)[];
|
|
5132
5133
|
metadata: {
|
|
@@ -5153,16 +5154,16 @@ declare const selectClient: (s: AdminState) => QuestpieClient<questpie134.Questp
|
|
|
5153
5154
|
};
|
|
5154
5155
|
};
|
|
5155
5156
|
};
|
|
5156
|
-
},
|
|
5157
|
-
createUser:
|
|
5157
|
+
}, better_auth_plugins0.UserWithRole>;
|
|
5158
|
+
createUser: better_call0.StrictEndpoint<"/admin/create-user", {
|
|
5158
5159
|
method: "POST";
|
|
5159
|
-
body:
|
|
5160
|
-
email:
|
|
5161
|
-
password:
|
|
5162
|
-
name:
|
|
5163
|
-
role:
|
|
5164
|
-
data:
|
|
5165
|
-
},
|
|
5160
|
+
body: zod0.ZodObject<{
|
|
5161
|
+
email: zod0.ZodString;
|
|
5162
|
+
password: zod0.ZodOptional<zod0.ZodString>;
|
|
5163
|
+
name: zod0.ZodString;
|
|
5164
|
+
role: zod0.ZodOptional<zod0.ZodUnion<readonly [zod0.ZodString, zod0.ZodArray<zod0.ZodString>]>>;
|
|
5165
|
+
data: zod0.ZodOptional<zod0.ZodRecord<zod0.ZodString, zod0.ZodAny>>;
|
|
5166
|
+
}, better_auth0.$strip>;
|
|
5166
5167
|
metadata: {
|
|
5167
5168
|
openapi: {
|
|
5168
5169
|
operationId: string;
|
|
@@ -5197,18 +5198,18 @@ declare const selectClient: (s: AdminState) => QuestpieClient<questpie134.Questp
|
|
|
5197
5198
|
};
|
|
5198
5199
|
};
|
|
5199
5200
|
}, {
|
|
5200
|
-
user:
|
|
5201
|
+
user: better_auth_plugins0.UserWithRole;
|
|
5201
5202
|
}>;
|
|
5202
|
-
adminUpdateUser:
|
|
5203
|
+
adminUpdateUser: better_call0.StrictEndpoint<"/admin/update-user", {
|
|
5203
5204
|
method: "POST";
|
|
5204
|
-
body:
|
|
5205
|
-
userId:
|
|
5206
|
-
data:
|
|
5207
|
-
},
|
|
5208
|
-
use: ((inputContext:
|
|
5205
|
+
body: zod0.ZodObject<{
|
|
5206
|
+
userId: zod0.ZodCoercedString<unknown>;
|
|
5207
|
+
data: zod0.ZodRecord<zod0.ZodAny, zod0.ZodAny>;
|
|
5208
|
+
}, better_auth0.$strip>;
|
|
5209
|
+
use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
|
|
5209
5210
|
session: {
|
|
5210
|
-
user:
|
|
5211
|
-
session:
|
|
5211
|
+
user: better_auth_plugins0.UserWithRole;
|
|
5212
|
+
session: better_auth0.Session;
|
|
5212
5213
|
};
|
|
5213
5214
|
}>)[];
|
|
5214
5215
|
metadata: {
|
|
@@ -5235,36 +5236,36 @@ declare const selectClient: (s: AdminState) => QuestpieClient<questpie134.Questp
|
|
|
5235
5236
|
};
|
|
5236
5237
|
};
|
|
5237
5238
|
};
|
|
5238
|
-
},
|
|
5239
|
-
listUsers:
|
|
5239
|
+
}, better_auth_plugins0.UserWithRole>;
|
|
5240
|
+
listUsers: better_call0.StrictEndpoint<"/admin/list-users", {
|
|
5240
5241
|
method: "GET";
|
|
5241
|
-
use: ((inputContext:
|
|
5242
|
+
use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
|
|
5242
5243
|
session: {
|
|
5243
|
-
user:
|
|
5244
|
-
session:
|
|
5244
|
+
user: better_auth_plugins0.UserWithRole;
|
|
5245
|
+
session: better_auth0.Session;
|
|
5245
5246
|
};
|
|
5246
5247
|
}>)[];
|
|
5247
|
-
query:
|
|
5248
|
-
searchValue:
|
|
5249
|
-
searchField:
|
|
5248
|
+
query: zod0.ZodObject<{
|
|
5249
|
+
searchValue: zod0.ZodOptional<zod0.ZodString>;
|
|
5250
|
+
searchField: zod0.ZodOptional<zod0.ZodEnum<{
|
|
5250
5251
|
name: "name";
|
|
5251
5252
|
email: "email";
|
|
5252
5253
|
}>>;
|
|
5253
|
-
searchOperator:
|
|
5254
|
+
searchOperator: zod0.ZodOptional<zod0.ZodEnum<{
|
|
5254
5255
|
contains: "contains";
|
|
5255
5256
|
starts_with: "starts_with";
|
|
5256
5257
|
ends_with: "ends_with";
|
|
5257
5258
|
}>>;
|
|
5258
|
-
limit:
|
|
5259
|
-
offset:
|
|
5260
|
-
sortBy:
|
|
5261
|
-
sortDirection:
|
|
5259
|
+
limit: zod0.ZodOptional<zod0.ZodUnion<[zod0.ZodString, zod0.ZodNumber]>>;
|
|
5260
|
+
offset: zod0.ZodOptional<zod0.ZodUnion<[zod0.ZodString, zod0.ZodNumber]>>;
|
|
5261
|
+
sortBy: zod0.ZodOptional<zod0.ZodString>;
|
|
5262
|
+
sortDirection: zod0.ZodOptional<zod0.ZodEnum<{
|
|
5262
5263
|
asc: "asc";
|
|
5263
5264
|
desc: "desc";
|
|
5264
5265
|
}>>;
|
|
5265
|
-
filterField:
|
|
5266
|
-
filterValue:
|
|
5267
|
-
filterOperator:
|
|
5266
|
+
filterField: zod0.ZodOptional<zod0.ZodString>;
|
|
5267
|
+
filterValue: zod0.ZodOptional<zod0.ZodUnion<[zod0.ZodUnion<[zod0.ZodString, zod0.ZodNumber]>, zod0.ZodBoolean]>>;
|
|
5268
|
+
filterOperator: zod0.ZodOptional<zod0.ZodEnum<{
|
|
5268
5269
|
eq: "eq";
|
|
5269
5270
|
ne: "ne";
|
|
5270
5271
|
lt: "lt";
|
|
@@ -5273,7 +5274,7 @@ declare const selectClient: (s: AdminState) => QuestpieClient<questpie134.Questp
|
|
|
5273
5274
|
gte: "gte";
|
|
5274
5275
|
contains: "contains";
|
|
5275
5276
|
}>>;
|
|
5276
|
-
},
|
|
5277
|
+
}, better_auth0.$strip>;
|
|
5277
5278
|
metadata: {
|
|
5278
5279
|
openapi: {
|
|
5279
5280
|
operationId: string;
|
|
@@ -5312,7 +5313,7 @@ declare const selectClient: (s: AdminState) => QuestpieClient<questpie134.Questp
|
|
|
5312
5313
|
};
|
|
5313
5314
|
};
|
|
5314
5315
|
}, {
|
|
5315
|
-
users:
|
|
5316
|
+
users: better_auth_plugins0.UserWithRole[];
|
|
5316
5317
|
total: number;
|
|
5317
5318
|
limit: number | undefined;
|
|
5318
5319
|
offset: number | undefined;
|
|
@@ -5320,17 +5321,17 @@ declare const selectClient: (s: AdminState) => QuestpieClient<questpie134.Questp
|
|
|
5320
5321
|
users: never[];
|
|
5321
5322
|
total: number;
|
|
5322
5323
|
}>;
|
|
5323
|
-
listUserSessions:
|
|
5324
|
+
listUserSessions: better_call0.StrictEndpoint<"/admin/list-user-sessions", {
|
|
5324
5325
|
method: "POST";
|
|
5325
|
-
use: ((inputContext:
|
|
5326
|
+
use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
|
|
5326
5327
|
session: {
|
|
5327
|
-
user:
|
|
5328
|
-
session:
|
|
5328
|
+
user: better_auth_plugins0.UserWithRole;
|
|
5329
|
+
session: better_auth0.Session;
|
|
5329
5330
|
};
|
|
5330
5331
|
}>)[];
|
|
5331
|
-
body:
|
|
5332
|
-
userId:
|
|
5333
|
-
},
|
|
5332
|
+
body: zod0.ZodObject<{
|
|
5333
|
+
userId: zod0.ZodCoercedString<unknown>;
|
|
5334
|
+
}, better_auth0.$strip>;
|
|
5334
5335
|
metadata: {
|
|
5335
5336
|
openapi: {
|
|
5336
5337
|
operationId: string;
|
|
@@ -5359,17 +5360,17 @@ declare const selectClient: (s: AdminState) => QuestpieClient<questpie134.Questp
|
|
|
5359
5360
|
};
|
|
5360
5361
|
};
|
|
5361
5362
|
}, {
|
|
5362
|
-
sessions:
|
|
5363
|
+
sessions: better_auth_plugins0.SessionWithImpersonatedBy[];
|
|
5363
5364
|
}>;
|
|
5364
|
-
unbanUser:
|
|
5365
|
+
unbanUser: better_call0.StrictEndpoint<"/admin/unban-user", {
|
|
5365
5366
|
method: "POST";
|
|
5366
|
-
body:
|
|
5367
|
-
userId:
|
|
5368
|
-
},
|
|
5369
|
-
use: ((inputContext:
|
|
5367
|
+
body: zod0.ZodObject<{
|
|
5368
|
+
userId: zod0.ZodCoercedString<unknown>;
|
|
5369
|
+
}, better_auth0.$strip>;
|
|
5370
|
+
use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
|
|
5370
5371
|
session: {
|
|
5371
|
-
user:
|
|
5372
|
-
session:
|
|
5372
|
+
user: better_auth_plugins0.UserWithRole;
|
|
5373
|
+
session: better_auth0.Session;
|
|
5373
5374
|
};
|
|
5374
5375
|
}>)[];
|
|
5375
5376
|
metadata: {
|
|
@@ -5397,19 +5398,19 @@ declare const selectClient: (s: AdminState) => QuestpieClient<questpie134.Questp
|
|
|
5397
5398
|
};
|
|
5398
5399
|
};
|
|
5399
5400
|
}, {
|
|
5400
|
-
user:
|
|
5401
|
+
user: better_auth_plugins0.UserWithRole;
|
|
5401
5402
|
}>;
|
|
5402
|
-
banUser:
|
|
5403
|
+
banUser: better_call0.StrictEndpoint<"/admin/ban-user", {
|
|
5403
5404
|
method: "POST";
|
|
5404
|
-
body:
|
|
5405
|
-
userId:
|
|
5406
|
-
banReason:
|
|
5407
|
-
banExpiresIn:
|
|
5408
|
-
},
|
|
5409
|
-
use: ((inputContext:
|
|
5405
|
+
body: zod0.ZodObject<{
|
|
5406
|
+
userId: zod0.ZodCoercedString<unknown>;
|
|
5407
|
+
banReason: zod0.ZodOptional<zod0.ZodString>;
|
|
5408
|
+
banExpiresIn: zod0.ZodOptional<zod0.ZodNumber>;
|
|
5409
|
+
}, better_auth0.$strip>;
|
|
5410
|
+
use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
|
|
5410
5411
|
session: {
|
|
5411
|
-
user:
|
|
5412
|
-
session:
|
|
5412
|
+
user: better_auth_plugins0.UserWithRole;
|
|
5413
|
+
session: better_auth0.Session;
|
|
5413
5414
|
};
|
|
5414
5415
|
}>)[];
|
|
5415
5416
|
metadata: {
|
|
@@ -5437,17 +5438,17 @@ declare const selectClient: (s: AdminState) => QuestpieClient<questpie134.Questp
|
|
|
5437
5438
|
};
|
|
5438
5439
|
};
|
|
5439
5440
|
}, {
|
|
5440
|
-
user:
|
|
5441
|
+
user: better_auth_plugins0.UserWithRole;
|
|
5441
5442
|
}>;
|
|
5442
|
-
impersonateUser:
|
|
5443
|
+
impersonateUser: better_call0.StrictEndpoint<"/admin/impersonate-user", {
|
|
5443
5444
|
method: "POST";
|
|
5444
|
-
body:
|
|
5445
|
-
userId:
|
|
5446
|
-
},
|
|
5447
|
-
use: ((inputContext:
|
|
5445
|
+
body: zod0.ZodObject<{
|
|
5446
|
+
userId: zod0.ZodCoercedString<unknown>;
|
|
5447
|
+
}, better_auth0.$strip>;
|
|
5448
|
+
use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
|
|
5448
5449
|
session: {
|
|
5449
|
-
user:
|
|
5450
|
-
session:
|
|
5450
|
+
user: better_auth_plugins0.UserWithRole;
|
|
5451
|
+
session: better_auth0.Session;
|
|
5451
5452
|
};
|
|
5452
5453
|
}>)[];
|
|
5453
5454
|
metadata: {
|
|
@@ -5488,9 +5489,9 @@ declare const selectClient: (s: AdminState) => QuestpieClient<questpie134.Questp
|
|
|
5488
5489
|
ipAddress?: string | null | undefined;
|
|
5489
5490
|
userAgent?: string | null | undefined;
|
|
5490
5491
|
};
|
|
5491
|
-
user:
|
|
5492
|
+
user: better_auth_plugins0.UserWithRole;
|
|
5492
5493
|
}>;
|
|
5493
|
-
stopImpersonating:
|
|
5494
|
+
stopImpersonating: better_call0.StrictEndpoint<"/admin/stop-impersonating", {
|
|
5494
5495
|
method: "POST";
|
|
5495
5496
|
requireHeaders: true;
|
|
5496
5497
|
}, {
|
|
@@ -5514,15 +5515,15 @@ declare const selectClient: (s: AdminState) => QuestpieClient<questpie134.Questp
|
|
|
5514
5515
|
image?: string | null | undefined;
|
|
5515
5516
|
} & Record<string, any>;
|
|
5516
5517
|
}>;
|
|
5517
|
-
revokeUserSession:
|
|
5518
|
+
revokeUserSession: better_call0.StrictEndpoint<"/admin/revoke-user-session", {
|
|
5518
5519
|
method: "POST";
|
|
5519
|
-
body:
|
|
5520
|
-
sessionToken:
|
|
5521
|
-
},
|
|
5522
|
-
use: ((inputContext:
|
|
5520
|
+
body: zod0.ZodObject<{
|
|
5521
|
+
sessionToken: zod0.ZodString;
|
|
5522
|
+
}, better_auth0.$strip>;
|
|
5523
|
+
use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
|
|
5523
5524
|
session: {
|
|
5524
|
-
user:
|
|
5525
|
-
session:
|
|
5525
|
+
user: better_auth_plugins0.UserWithRole;
|
|
5526
|
+
session: better_auth0.Session;
|
|
5526
5527
|
};
|
|
5527
5528
|
}>)[];
|
|
5528
5529
|
metadata: {
|
|
@@ -5552,15 +5553,15 @@ declare const selectClient: (s: AdminState) => QuestpieClient<questpie134.Questp
|
|
|
5552
5553
|
}, {
|
|
5553
5554
|
success: boolean;
|
|
5554
5555
|
}>;
|
|
5555
|
-
revokeUserSessions:
|
|
5556
|
+
revokeUserSessions: better_call0.StrictEndpoint<"/admin/revoke-user-sessions", {
|
|
5556
5557
|
method: "POST";
|
|
5557
|
-
body:
|
|
5558
|
-
userId:
|
|
5559
|
-
},
|
|
5560
|
-
use: ((inputContext:
|
|
5558
|
+
body: zod0.ZodObject<{
|
|
5559
|
+
userId: zod0.ZodCoercedString<unknown>;
|
|
5560
|
+
}, better_auth0.$strip>;
|
|
5561
|
+
use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
|
|
5561
5562
|
session: {
|
|
5562
|
-
user:
|
|
5563
|
-
session:
|
|
5563
|
+
user: better_auth_plugins0.UserWithRole;
|
|
5564
|
+
session: better_auth0.Session;
|
|
5564
5565
|
};
|
|
5565
5566
|
}>)[];
|
|
5566
5567
|
metadata: {
|
|
@@ -5590,15 +5591,15 @@ declare const selectClient: (s: AdminState) => QuestpieClient<questpie134.Questp
|
|
|
5590
5591
|
}, {
|
|
5591
5592
|
success: boolean;
|
|
5592
5593
|
}>;
|
|
5593
|
-
removeUser:
|
|
5594
|
+
removeUser: better_call0.StrictEndpoint<"/admin/remove-user", {
|
|
5594
5595
|
method: "POST";
|
|
5595
|
-
body:
|
|
5596
|
-
userId:
|
|
5597
|
-
},
|
|
5598
|
-
use: ((inputContext:
|
|
5596
|
+
body: zod0.ZodObject<{
|
|
5597
|
+
userId: zod0.ZodCoercedString<unknown>;
|
|
5598
|
+
}, better_auth0.$strip>;
|
|
5599
|
+
use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
|
|
5599
5600
|
session: {
|
|
5600
|
-
user:
|
|
5601
|
-
session:
|
|
5601
|
+
user: better_auth_plugins0.UserWithRole;
|
|
5602
|
+
session: better_auth0.Session;
|
|
5602
5603
|
};
|
|
5603
5604
|
}>)[];
|
|
5604
5605
|
metadata: {
|
|
@@ -5628,16 +5629,16 @@ declare const selectClient: (s: AdminState) => QuestpieClient<questpie134.Questp
|
|
|
5628
5629
|
}, {
|
|
5629
5630
|
success: boolean;
|
|
5630
5631
|
}>;
|
|
5631
|
-
setUserPassword:
|
|
5632
|
+
setUserPassword: better_call0.StrictEndpoint<"/admin/set-user-password", {
|
|
5632
5633
|
method: "POST";
|
|
5633
|
-
body:
|
|
5634
|
-
newPassword:
|
|
5635
|
-
userId:
|
|
5636
|
-
},
|
|
5637
|
-
use: ((inputContext:
|
|
5634
|
+
body: zod0.ZodObject<{
|
|
5635
|
+
newPassword: zod0.ZodString;
|
|
5636
|
+
userId: zod0.ZodCoercedString<unknown>;
|
|
5637
|
+
}, better_auth0.$strip>;
|
|
5638
|
+
use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
|
|
5638
5639
|
session: {
|
|
5639
|
-
user:
|
|
5640
|
-
session:
|
|
5640
|
+
user: better_auth_plugins0.UserWithRole;
|
|
5641
|
+
session: better_auth0.Session;
|
|
5641
5642
|
};
|
|
5642
5643
|
}>)[];
|
|
5643
5644
|
metadata: {
|
|
@@ -5667,18 +5668,18 @@ declare const selectClient: (s: AdminState) => QuestpieClient<questpie134.Questp
|
|
|
5667
5668
|
}, {
|
|
5668
5669
|
status: boolean;
|
|
5669
5670
|
}>;
|
|
5670
|
-
userHasPermission:
|
|
5671
|
+
userHasPermission: better_call0.StrictEndpoint<"/admin/has-permission", {
|
|
5671
5672
|
method: "POST";
|
|
5672
|
-
body:
|
|
5673
|
-
userId:
|
|
5674
|
-
role:
|
|
5675
|
-
},
|
|
5676
|
-
permission:
|
|
5677
|
-
permissions:
|
|
5678
|
-
},
|
|
5679
|
-
permission:
|
|
5680
|
-
permissions:
|
|
5681
|
-
},
|
|
5673
|
+
body: zod0.ZodIntersection<zod0.ZodObject<{
|
|
5674
|
+
userId: zod0.ZodOptional<zod0.ZodCoercedString<unknown>>;
|
|
5675
|
+
role: zod0.ZodOptional<zod0.ZodString>;
|
|
5676
|
+
}, better_auth0.$strip>, zod0.ZodUnion<readonly [zod0.ZodObject<{
|
|
5677
|
+
permission: zod0.ZodRecord<zod0.ZodString, zod0.ZodArray<zod0.ZodString>>;
|
|
5678
|
+
permissions: zod0.ZodUndefined;
|
|
5679
|
+
}, better_auth0.$strip>, zod0.ZodObject<{
|
|
5680
|
+
permission: zod0.ZodUndefined;
|
|
5681
|
+
permissions: zod0.ZodRecord<zod0.ZodString, zod0.ZodArray<zod0.ZodString>>;
|
|
5682
|
+
}, better_auth0.$strip>]>>;
|
|
5682
5683
|
metadata: {
|
|
5683
5684
|
openapi: {
|
|
5684
5685
|
description: string;
|
|
@@ -5807,7 +5808,7 @@ declare const selectClient: (s: AdminState) => QuestpieClient<questpie134.Questp
|
|
|
5807
5808
|
};
|
|
5808
5809
|
};
|
|
5809
5810
|
};
|
|
5810
|
-
options: NoInfer<
|
|
5811
|
+
options: NoInfer<better_auth_plugins0.AdminOptions>;
|
|
5811
5812
|
}, {
|
|
5812
5813
|
id: "api-key";
|
|
5813
5814
|
$ERROR_CODES: {
|
|
@@ -5839,8 +5840,8 @@ declare const selectClient: (s: AdminState) => QuestpieClient<questpie134.Questp
|
|
|
5839
5840
|
};
|
|
5840
5841
|
hooks: {
|
|
5841
5842
|
before: {
|
|
5842
|
-
matcher: (ctx:
|
|
5843
|
-
handler: (inputContext:
|
|
5843
|
+
matcher: (ctx: better_auth0.HookEndpointContext) => boolean;
|
|
5844
|
+
handler: (inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
|
|
5844
5845
|
user: {
|
|
5845
5846
|
id: string;
|
|
5846
5847
|
createdAt: Date;
|
|
@@ -5861,11 +5862,11 @@ declare const selectClient: (s: AdminState) => QuestpieClient<questpie134.Questp
|
|
|
5861
5862
|
expiresAt: Date;
|
|
5862
5863
|
};
|
|
5863
5864
|
} | {
|
|
5864
|
-
context:
|
|
5865
|
+
context: better_call0.MiddlewareContext<better_call0.MiddlewareOptions, {
|
|
5865
5866
|
returned?: unknown | undefined;
|
|
5866
5867
|
responseHeaders?: Headers | undefined;
|
|
5867
|
-
} &
|
|
5868
|
-
options:
|
|
5868
|
+
} & better_auth0.PluginContext & better_auth0.InfoContext & {
|
|
5869
|
+
options: better_auth0.BetterAuthOptions;
|
|
5869
5870
|
trustedOrigins: string[];
|
|
5870
5871
|
isTrustedOrigin: (url: string, settings?: {
|
|
5871
5872
|
allowRelativePaths: boolean;
|
|
@@ -5875,29 +5876,29 @@ declare const selectClient: (s: AdminState) => QuestpieClient<questpie134.Questp
|
|
|
5875
5876
|
storeStateStrategy: "database" | "cookie";
|
|
5876
5877
|
};
|
|
5877
5878
|
newSession: {
|
|
5878
|
-
session:
|
|
5879
|
-
user:
|
|
5879
|
+
session: better_auth0.Session & Record<string, any>;
|
|
5880
|
+
user: better_auth0.User & Record<string, any>;
|
|
5880
5881
|
} | null;
|
|
5881
5882
|
session: {
|
|
5882
|
-
session:
|
|
5883
|
-
user:
|
|
5883
|
+
session: better_auth0.Session & Record<string, any>;
|
|
5884
|
+
user: better_auth0.User & Record<string, any>;
|
|
5884
5885
|
} | null;
|
|
5885
5886
|
setNewSession: (session: {
|
|
5886
|
-
session:
|
|
5887
|
-
user:
|
|
5887
|
+
session: better_auth0.Session & Record<string, any>;
|
|
5888
|
+
user: better_auth0.User & Record<string, any>;
|
|
5888
5889
|
} | null) => void;
|
|
5889
|
-
socialProviders:
|
|
5890
|
-
authCookies:
|
|
5891
|
-
logger: ReturnType<(options?:
|
|
5890
|
+
socialProviders: better_auth0.OAuthProvider[];
|
|
5891
|
+
authCookies: better_auth0.BetterAuthCookies;
|
|
5892
|
+
logger: ReturnType<(options?: better_auth0.Logger | undefined) => better_auth0.InternalLogger>;
|
|
5892
5893
|
rateLimit: {
|
|
5893
5894
|
enabled: boolean;
|
|
5894
5895
|
window: number;
|
|
5895
5896
|
max: number;
|
|
5896
5897
|
storage: "memory" | "database" | "secondary-storage";
|
|
5897
|
-
} & Omit<
|
|
5898
|
-
adapter:
|
|
5899
|
-
internalAdapter:
|
|
5900
|
-
createAuthCookie: (cookieName: string, overrideAttributes?: Partial<
|
|
5898
|
+
} & Omit<better_auth0.BetterAuthRateLimitOptions, "enabled" | "window" | "max" | "storage">;
|
|
5899
|
+
adapter: better_auth0.DBAdapter<better_auth0.BetterAuthOptions>;
|
|
5900
|
+
internalAdapter: better_auth0.InternalAdapter<better_auth0.BetterAuthOptions>;
|
|
5901
|
+
createAuthCookie: (cookieName: string, overrideAttributes?: Partial<better_call0.CookieOptions> | undefined) => better_auth0.BetterAuthCookie;
|
|
5901
5902
|
secret: string;
|
|
5902
5903
|
sessionConfig: {
|
|
5903
5904
|
updateAge: number;
|
|
@@ -5909,10 +5910,10 @@ declare const selectClient: (s: AdminState) => QuestpieClient<questpie134.Questp
|
|
|
5909
5910
|
};
|
|
5910
5911
|
};
|
|
5911
5912
|
generateId: (options: {
|
|
5912
|
-
model:
|
|
5913
|
+
model: better_auth0.ModelNames;
|
|
5913
5914
|
size?: number | undefined;
|
|
5914
5915
|
}) => string | false;
|
|
5915
|
-
secondaryStorage:
|
|
5916
|
+
secondaryStorage: better_auth0.SecondaryStorage | undefined;
|
|
5916
5917
|
password: {
|
|
5917
5918
|
hash: (password: string) => Promise<string>;
|
|
5918
5919
|
verify: (data: {
|
|
@@ -5923,9 +5924,9 @@ declare const selectClient: (s: AdminState) => QuestpieClient<questpie134.Questp
|
|
|
5923
5924
|
minPasswordLength: number;
|
|
5924
5925
|
maxPasswordLength: number;
|
|
5925
5926
|
};
|
|
5926
|
-
checkPassword: (userId: string, ctx:
|
|
5927
|
+
checkPassword: (userId: string, ctx: better_auth0.GenericEndpointContext<better_auth0.BetterAuthOptions>) => Promise<boolean>;
|
|
5927
5928
|
};
|
|
5928
|
-
tables:
|
|
5929
|
+
tables: better_auth0.BetterAuthDBSchema;
|
|
5929
5930
|
runMigrations: () => Promise<void>;
|
|
5930
5931
|
publishTelemetry: (event: {
|
|
5931
5932
|
type: string;
|
|
@@ -5941,22 +5942,22 @@ declare const selectClient: (s: AdminState) => QuestpieClient<questpie134.Questp
|
|
|
5941
5942
|
}[];
|
|
5942
5943
|
};
|
|
5943
5944
|
endpoints: {
|
|
5944
|
-
createApiKey:
|
|
5945
|
+
createApiKey: better_call0.StrictEndpoint<"/api-key/create", {
|
|
5945
5946
|
method: "POST";
|
|
5946
|
-
body:
|
|
5947
|
-
name:
|
|
5948
|
-
expiresIn:
|
|
5949
|
-
userId:
|
|
5950
|
-
prefix:
|
|
5951
|
-
remaining:
|
|
5952
|
-
metadata:
|
|
5953
|
-
refillAmount:
|
|
5954
|
-
refillInterval:
|
|
5955
|
-
rateLimitTimeWindow:
|
|
5956
|
-
rateLimitMax:
|
|
5957
|
-
rateLimitEnabled:
|
|
5958
|
-
permissions:
|
|
5959
|
-
},
|
|
5947
|
+
body: zod0.ZodObject<{
|
|
5948
|
+
name: zod0.ZodOptional<zod0.ZodString>;
|
|
5949
|
+
expiresIn: zod0.ZodDefault<zod0.ZodNullable<zod0.ZodOptional<zod0.ZodNumber>>>;
|
|
5950
|
+
userId: zod0.ZodOptional<zod0.ZodCoercedString<unknown>>;
|
|
5951
|
+
prefix: zod0.ZodOptional<zod0.ZodString>;
|
|
5952
|
+
remaining: zod0.ZodDefault<zod0.ZodNullable<zod0.ZodOptional<zod0.ZodNumber>>>;
|
|
5953
|
+
metadata: zod0.ZodOptional<zod0.ZodAny>;
|
|
5954
|
+
refillAmount: zod0.ZodOptional<zod0.ZodNumber>;
|
|
5955
|
+
refillInterval: zod0.ZodOptional<zod0.ZodNumber>;
|
|
5956
|
+
rateLimitTimeWindow: zod0.ZodOptional<zod0.ZodNumber>;
|
|
5957
|
+
rateLimitMax: zod0.ZodOptional<zod0.ZodNumber>;
|
|
5958
|
+
rateLimitEnabled: zod0.ZodOptional<zod0.ZodBoolean>;
|
|
5959
|
+
permissions: zod0.ZodOptional<zod0.ZodRecord<zod0.ZodString, zod0.ZodArray<zod0.ZodString>>>;
|
|
5960
|
+
}, better_auth0.$strip>;
|
|
5960
5961
|
metadata: {
|
|
5961
5962
|
openapi: {
|
|
5962
5963
|
description: string;
|
|
@@ -6109,12 +6110,12 @@ declare const selectClient: (s: AdminState) => QuestpieClient<questpie134.Questp
|
|
|
6109
6110
|
createdAt: Date;
|
|
6110
6111
|
updatedAt: Date;
|
|
6111
6112
|
}>;
|
|
6112
|
-
verifyApiKey:
|
|
6113
|
+
verifyApiKey: better_call0.StrictEndpoint<string, {
|
|
6113
6114
|
method: "POST";
|
|
6114
|
-
body:
|
|
6115
|
-
key:
|
|
6116
|
-
permissions:
|
|
6117
|
-
},
|
|
6115
|
+
body: zod0.ZodObject<{
|
|
6116
|
+
key: zod0.ZodString;
|
|
6117
|
+
permissions: zod0.ZodOptional<zod0.ZodRecord<zod0.ZodString, zod0.ZodArray<zod0.ZodString>>>;
|
|
6118
|
+
}, better_auth0.$strip>;
|
|
6118
6119
|
}, {
|
|
6119
6120
|
valid: boolean;
|
|
6120
6121
|
error: {
|
|
@@ -6125,14 +6126,14 @@ declare const selectClient: (s: AdminState) => QuestpieClient<questpie134.Questp
|
|
|
6125
6126
|
} | {
|
|
6126
6127
|
valid: boolean;
|
|
6127
6128
|
error: null;
|
|
6128
|
-
key: Omit<
|
|
6129
|
+
key: Omit<better_auth_plugins0.ApiKey, "key"> | null;
|
|
6129
6130
|
}>;
|
|
6130
|
-
getApiKey:
|
|
6131
|
+
getApiKey: better_call0.StrictEndpoint<"/api-key/get", {
|
|
6131
6132
|
method: "GET";
|
|
6132
|
-
query:
|
|
6133
|
-
id:
|
|
6134
|
-
},
|
|
6135
|
-
use: ((inputContext:
|
|
6133
|
+
query: zod0.ZodObject<{
|
|
6134
|
+
id: zod0.ZodString;
|
|
6135
|
+
}, better_auth0.$strip>;
|
|
6136
|
+
use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
|
|
6136
6137
|
session: {
|
|
6137
6138
|
session: Record<string, any> & {
|
|
6138
6139
|
id: string;
|
|
@@ -6299,23 +6300,23 @@ declare const selectClient: (s: AdminState) => QuestpieClient<questpie134.Questp
|
|
|
6299
6300
|
createdAt: Date;
|
|
6300
6301
|
updatedAt: Date;
|
|
6301
6302
|
}>;
|
|
6302
|
-
updateApiKey:
|
|
6303
|
+
updateApiKey: better_call0.StrictEndpoint<"/api-key/update", {
|
|
6303
6304
|
method: "POST";
|
|
6304
|
-
body:
|
|
6305
|
-
keyId:
|
|
6306
|
-
userId:
|
|
6307
|
-
name:
|
|
6308
|
-
enabled:
|
|
6309
|
-
remaining:
|
|
6310
|
-
refillAmount:
|
|
6311
|
-
refillInterval:
|
|
6312
|
-
metadata:
|
|
6313
|
-
expiresIn:
|
|
6314
|
-
rateLimitEnabled:
|
|
6315
|
-
rateLimitTimeWindow:
|
|
6316
|
-
rateLimitMax:
|
|
6317
|
-
permissions:
|
|
6318
|
-
},
|
|
6305
|
+
body: zod0.ZodObject<{
|
|
6306
|
+
keyId: zod0.ZodString;
|
|
6307
|
+
userId: zod0.ZodOptional<zod0.ZodCoercedString<unknown>>;
|
|
6308
|
+
name: zod0.ZodOptional<zod0.ZodString>;
|
|
6309
|
+
enabled: zod0.ZodOptional<zod0.ZodBoolean>;
|
|
6310
|
+
remaining: zod0.ZodOptional<zod0.ZodNumber>;
|
|
6311
|
+
refillAmount: zod0.ZodOptional<zod0.ZodNumber>;
|
|
6312
|
+
refillInterval: zod0.ZodOptional<zod0.ZodNumber>;
|
|
6313
|
+
metadata: zod0.ZodOptional<zod0.ZodAny>;
|
|
6314
|
+
expiresIn: zod0.ZodNullable<zod0.ZodOptional<zod0.ZodNumber>>;
|
|
6315
|
+
rateLimitEnabled: zod0.ZodOptional<zod0.ZodBoolean>;
|
|
6316
|
+
rateLimitTimeWindow: zod0.ZodOptional<zod0.ZodNumber>;
|
|
6317
|
+
rateLimitMax: zod0.ZodOptional<zod0.ZodNumber>;
|
|
6318
|
+
permissions: zod0.ZodNullable<zod0.ZodOptional<zod0.ZodRecord<zod0.ZodString, zod0.ZodArray<zod0.ZodString>>>>;
|
|
6319
|
+
}, better_auth0.$strip>;
|
|
6319
6320
|
metadata: {
|
|
6320
6321
|
openapi: {
|
|
6321
6322
|
description: string;
|
|
@@ -6460,12 +6461,12 @@ declare const selectClient: (s: AdminState) => QuestpieClient<questpie134.Questp
|
|
|
6460
6461
|
createdAt: Date;
|
|
6461
6462
|
updatedAt: Date;
|
|
6462
6463
|
}>;
|
|
6463
|
-
deleteApiKey:
|
|
6464
|
+
deleteApiKey: better_call0.StrictEndpoint<"/api-key/delete", {
|
|
6464
6465
|
method: "POST";
|
|
6465
|
-
body:
|
|
6466
|
-
keyId:
|
|
6467
|
-
},
|
|
6468
|
-
use: ((inputContext:
|
|
6466
|
+
body: zod0.ZodObject<{
|
|
6467
|
+
keyId: zod0.ZodString;
|
|
6468
|
+
}, better_auth0.$strip>;
|
|
6469
|
+
use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
|
|
6469
6470
|
session: {
|
|
6470
6471
|
session: Record<string, any> & {
|
|
6471
6472
|
id: string;
|
|
@@ -6531,9 +6532,9 @@ declare const selectClient: (s: AdminState) => QuestpieClient<questpie134.Questp
|
|
|
6531
6532
|
}, {
|
|
6532
6533
|
success: boolean;
|
|
6533
6534
|
}>;
|
|
6534
|
-
listApiKeys:
|
|
6535
|
+
listApiKeys: better_call0.StrictEndpoint<"/api-key/list", {
|
|
6535
6536
|
method: "GET";
|
|
6536
|
-
use: ((inputContext:
|
|
6537
|
+
use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
|
|
6537
6538
|
session: {
|
|
6538
6539
|
session: Record<string, any> & {
|
|
6539
6540
|
id: string;
|
|
@@ -6703,7 +6704,7 @@ declare const selectClient: (s: AdminState) => QuestpieClient<questpie134.Questp
|
|
|
6703
6704
|
createdAt: Date;
|
|
6704
6705
|
updatedAt: Date;
|
|
6705
6706
|
}[]>;
|
|
6706
|
-
deleteAllExpiredApiKeys:
|
|
6707
|
+
deleteAllExpiredApiKeys: better_call0.StrictEndpoint<string, {
|
|
6707
6708
|
method: "POST";
|
|
6708
6709
|
}, {
|
|
6709
6710
|
success: boolean;
|
|
@@ -6825,31 +6826,31 @@ declare const selectClient: (s: AdminState) => QuestpieClient<questpie134.Questp
|
|
|
6825
6826
|
required: false;
|
|
6826
6827
|
input: true;
|
|
6827
6828
|
transform: {
|
|
6828
|
-
input(value:
|
|
6829
|
-
output(value:
|
|
6829
|
+
input(value: better_auth0.DBPrimitive): string;
|
|
6830
|
+
output(value: better_auth0.DBPrimitive): any;
|
|
6830
6831
|
};
|
|
6831
6832
|
};
|
|
6832
6833
|
};
|
|
6833
6834
|
};
|
|
6834
6835
|
};
|
|
6835
|
-
options:
|
|
6836
|
+
options: better_auth_plugins0.ApiKeyOptions | undefined;
|
|
6836
6837
|
}, {
|
|
6837
6838
|
id: "bearer";
|
|
6838
6839
|
hooks: {
|
|
6839
6840
|
before: {
|
|
6840
|
-
matcher(context:
|
|
6841
|
-
handler: (inputContext:
|
|
6841
|
+
matcher(context: better_auth0.HookEndpointContext): boolean;
|
|
6842
|
+
handler: (inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
|
|
6842
6843
|
context: {
|
|
6843
6844
|
headers: Headers;
|
|
6844
6845
|
};
|
|
6845
6846
|
} | undefined>;
|
|
6846
6847
|
}[];
|
|
6847
6848
|
after: {
|
|
6848
|
-
matcher(context:
|
|
6849
|
-
handler: (inputContext:
|
|
6849
|
+
matcher(context: better_auth0.HookEndpointContext): true;
|
|
6850
|
+
handler: (inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<void>;
|
|
6850
6851
|
}[];
|
|
6851
6852
|
};
|
|
6852
|
-
options:
|
|
6853
|
+
options: better_auth_plugins0.BearerOptions | undefined;
|
|
6853
6854
|
}];
|
|
6854
6855
|
emailAndPassword: {
|
|
6855
6856
|
enabled: true;
|
|
@@ -6863,21 +6864,21 @@ declare const selectClient: (s: AdminState) => QuestpieClient<questpie134.Questp
|
|
|
6863
6864
|
url: string;
|
|
6864
6865
|
};
|
|
6865
6866
|
functions: {
|
|
6866
|
-
mintPreviewToken:
|
|
6867
|
+
mintPreviewToken: questpie31.JsonFunctionDefinition<{
|
|
6867
6868
|
path: string;
|
|
6868
6869
|
ttlMs?: number | undefined;
|
|
6869
6870
|
}, {
|
|
6870
6871
|
token: string;
|
|
6871
6872
|
expiresAt: number;
|
|
6872
6873
|
}, any>;
|
|
6873
|
-
verifyPreviewToken:
|
|
6874
|
+
verifyPreviewToken: questpie31.JsonFunctionDefinition<{
|
|
6874
6875
|
token: string;
|
|
6875
6876
|
}, {
|
|
6876
6877
|
valid: boolean;
|
|
6877
6878
|
path?: string | undefined;
|
|
6878
6879
|
error?: string | undefined;
|
|
6879
6880
|
}, any>;
|
|
6880
|
-
getContentLocales:
|
|
6881
|
+
getContentLocales: questpie31.JsonFunctionDefinition<Record<string, never> | undefined, {
|
|
6881
6882
|
locales: {
|
|
6882
6883
|
code: string;
|
|
6883
6884
|
label?: string | undefined;
|
|
@@ -6887,10 +6888,10 @@ declare const selectClient: (s: AdminState) => QuestpieClient<questpie134.Questp
|
|
|
6887
6888
|
defaultLocale: string;
|
|
6888
6889
|
fallbacks?: Record<string, string> | undefined;
|
|
6889
6890
|
}, any>;
|
|
6890
|
-
isSetupRequired:
|
|
6891
|
+
isSetupRequired: questpie31.JsonFunctionDefinition<Record<string, never>, {
|
|
6891
6892
|
required: boolean;
|
|
6892
6893
|
}, any>;
|
|
6893
|
-
createFirstAdmin:
|
|
6894
|
+
createFirstAdmin: questpie31.JsonFunctionDefinition<{
|
|
6894
6895
|
email: string;
|
|
6895
6896
|
password: string;
|
|
6896
6897
|
name: string;
|
|
@@ -6905,18 +6906,18 @@ declare const selectClient: (s: AdminState) => QuestpieClient<questpie134.Questp
|
|
|
6905
6906
|
}, any>;
|
|
6906
6907
|
};
|
|
6907
6908
|
secret: string | undefined;
|
|
6908
|
-
storage:
|
|
6909
|
+
storage: questpie31.StorageConfig | undefined;
|
|
6909
6910
|
queue: {
|
|
6910
|
-
jobs:
|
|
6911
|
-
adapter:
|
|
6911
|
+
jobs: questpie31.TypeMerge<questpie31.UnsetProperty<{}, keyof TOtherJobs>, {}>;
|
|
6912
|
+
adapter: questpie31.QueueAdapter;
|
|
6912
6913
|
};
|
|
6913
|
-
searchConfig:
|
|
6914
|
-
realtime:
|
|
6914
|
+
searchConfig: questpie31.SearchConfig | undefined;
|
|
6915
|
+
realtime: questpie31.RealtimeConfig | undefined;
|
|
6915
6916
|
logger: questpie_shared0.LoggerConfig | undefined;
|
|
6916
6917
|
kv: questpie_shared0.KVConfig | undefined;
|
|
6917
6918
|
migrations: {
|
|
6918
6919
|
directory?: string;
|
|
6919
|
-
migrations?:
|
|
6920
|
+
migrations?: questpie31.Migration[];
|
|
6920
6921
|
} | undefined;
|
|
6921
6922
|
}>>;
|
|
6922
6923
|
/** Select auth client instance */
|
|
@@ -9829,7 +9830,7 @@ type GlobalNames$2<TApp extends Questpie<any>> = TApp extends Questpie<infer TCo
|
|
|
9829
9830
|
* const builder = qa<AppCMS>().use(coreAdminModule);
|
|
9830
9831
|
* ```
|
|
9831
9832
|
*/
|
|
9832
|
-
declare const coreAdminModule: AdminBuilder<
|
|
9833
|
+
declare const coreAdminModule: AdminBuilder<questpie31.SetProperty<{
|
|
9833
9834
|
locale: {
|
|
9834
9835
|
default: string;
|
|
9835
9836
|
supported: string[];
|
|
@@ -10060,27 +10061,27 @@ declare const coreAdminModule: AdminBuilder<questpie134.SetProperty<{
|
|
|
10060
10061
|
defaultViews: {};
|
|
10061
10062
|
translations: {};
|
|
10062
10063
|
}, "pages", {
|
|
10063
|
-
dashboard: PageBuilder<
|
|
10064
|
+
dashboard: PageBuilder<questpie31.SetProperty<{
|
|
10064
10065
|
name: "dashboard";
|
|
10065
10066
|
component: () => Promise<typeof dashboard_page_d_exports>;
|
|
10066
10067
|
path: undefined;
|
|
10067
10068
|
}, "path", string>>;
|
|
10068
|
-
login: PageBuilder<
|
|
10069
|
+
login: PageBuilder<questpie31.SetProperty<{
|
|
10069
10070
|
name: "login";
|
|
10070
10071
|
component: () => Promise<typeof login_page_d_exports>;
|
|
10071
10072
|
path: undefined;
|
|
10072
10073
|
}, "path", string>>;
|
|
10073
|
-
setup: PageBuilder<
|
|
10074
|
+
setup: PageBuilder<questpie31.SetProperty<{
|
|
10074
10075
|
name: "setup";
|
|
10075
10076
|
component: () => Promise<typeof setup_page_d_exports>;
|
|
10076
10077
|
path: undefined;
|
|
10077
10078
|
}, "path", string>>;
|
|
10078
|
-
forgotPassword: PageBuilder<
|
|
10079
|
+
forgotPassword: PageBuilder<questpie31.SetProperty<{
|
|
10079
10080
|
name: "forgot-password";
|
|
10080
10081
|
component: () => Promise<typeof forgot_password_page_d_exports>;
|
|
10081
10082
|
path: undefined;
|
|
10082
10083
|
}, "path", string>>;
|
|
10083
|
-
resetPassword: PageBuilder<
|
|
10084
|
+
resetPassword: PageBuilder<questpie31.SetProperty<{
|
|
10084
10085
|
name: "reset-password";
|
|
10085
10086
|
component: () => Promise<typeof reset_password_page_d_exports>;
|
|
10086
10087
|
path: undefined;
|
|
@@ -10133,7 +10134,7 @@ type CoreAdminModule = typeof coreAdminModule;
|
|
|
10133
10134
|
* });
|
|
10134
10135
|
* ```
|
|
10135
10136
|
*/
|
|
10136
|
-
declare const adminModule: AdminBuilder<
|
|
10137
|
+
declare const adminModule: AdminBuilder<questpie31.SetProperty<questpie31.SetProperty<questpie31.SetProperty<{
|
|
10137
10138
|
locale: {
|
|
10138
10139
|
default: string;
|
|
10139
10140
|
supported: string[];
|
|
@@ -10364,35 +10365,35 @@ declare const adminModule: AdminBuilder<questpie134.SetProperty<questpie134.SetP
|
|
|
10364
10365
|
defaultViews: {};
|
|
10365
10366
|
translations: {};
|
|
10366
10367
|
}, "pages", {
|
|
10367
|
-
dashboard: PageBuilder<
|
|
10368
|
+
dashboard: PageBuilder<questpie31.SetProperty<{
|
|
10368
10369
|
name: "dashboard";
|
|
10369
10370
|
component: () => Promise<typeof dashboard_page_d_exports>;
|
|
10370
10371
|
path: undefined;
|
|
10371
10372
|
}, "path", string>>;
|
|
10372
|
-
login: PageBuilder<
|
|
10373
|
+
login: PageBuilder<questpie31.SetProperty<{
|
|
10373
10374
|
name: "login";
|
|
10374
10375
|
component: () => Promise<typeof login_page_d_exports>;
|
|
10375
10376
|
path: undefined;
|
|
10376
10377
|
}, "path", string>>;
|
|
10377
|
-
setup: PageBuilder<
|
|
10378
|
+
setup: PageBuilder<questpie31.SetProperty<{
|
|
10378
10379
|
name: "setup";
|
|
10379
10380
|
component: () => Promise<typeof setup_page_d_exports>;
|
|
10380
10381
|
path: undefined;
|
|
10381
10382
|
}, "path", string>>;
|
|
10382
|
-
forgotPassword: PageBuilder<
|
|
10383
|
+
forgotPassword: PageBuilder<questpie31.SetProperty<{
|
|
10383
10384
|
name: "forgot-password";
|
|
10384
10385
|
component: () => Promise<typeof forgot_password_page_d_exports>;
|
|
10385
10386
|
path: undefined;
|
|
10386
10387
|
}, "path", string>>;
|
|
10387
|
-
resetPassword: PageBuilder<
|
|
10388
|
+
resetPassword: PageBuilder<questpie31.SetProperty<{
|
|
10388
10389
|
name: "reset-password";
|
|
10389
10390
|
component: () => Promise<typeof reset_password_page_d_exports>;
|
|
10390
10391
|
path: undefined;
|
|
10391
10392
|
}, "path", string>>;
|
|
10392
10393
|
}>, "collections", {
|
|
10393
|
-
user: CollectionBuilder<
|
|
10394
|
+
user: CollectionBuilder<questpie31.SetProperty<questpie31.SetProperty<questpie31.SetProperty<{
|
|
10394
10395
|
name: "user";
|
|
10395
|
-
"~adminApp": AdminBuilder<
|
|
10396
|
+
"~adminApp": AdminBuilder<questpie31.SetProperty<{
|
|
10396
10397
|
locale: {
|
|
10397
10398
|
default: string;
|
|
10398
10399
|
supported: string[];
|
|
@@ -10623,27 +10624,27 @@ declare const adminModule: AdminBuilder<questpie134.SetProperty<questpie134.SetP
|
|
|
10623
10624
|
defaultViews: {};
|
|
10624
10625
|
translations: {};
|
|
10625
10626
|
}, "pages", {
|
|
10626
|
-
dashboard: PageBuilder<
|
|
10627
|
+
dashboard: PageBuilder<questpie31.SetProperty<{
|
|
10627
10628
|
name: "dashboard";
|
|
10628
10629
|
component: () => Promise<typeof dashboard_page_d_exports>;
|
|
10629
10630
|
path: undefined;
|
|
10630
10631
|
}, "path", string>>;
|
|
10631
|
-
login: PageBuilder<
|
|
10632
|
+
login: PageBuilder<questpie31.SetProperty<{
|
|
10632
10633
|
name: "login";
|
|
10633
10634
|
component: () => Promise<typeof login_page_d_exports>;
|
|
10634
10635
|
path: undefined;
|
|
10635
10636
|
}, "path", string>>;
|
|
10636
|
-
setup: PageBuilder<
|
|
10637
|
+
setup: PageBuilder<questpie31.SetProperty<{
|
|
10637
10638
|
name: "setup";
|
|
10638
10639
|
component: () => Promise<typeof setup_page_d_exports>;
|
|
10639
10640
|
path: undefined;
|
|
10640
10641
|
}, "path", string>>;
|
|
10641
|
-
forgotPassword: PageBuilder<
|
|
10642
|
+
forgotPassword: PageBuilder<questpie31.SetProperty<{
|
|
10642
10643
|
name: "forgot-password";
|
|
10643
10644
|
component: () => Promise<typeof forgot_password_page_d_exports>;
|
|
10644
10645
|
path: undefined;
|
|
10645
10646
|
}, "path", string>>;
|
|
10646
|
-
resetPassword: PageBuilder<
|
|
10647
|
+
resetPassword: PageBuilder<questpie31.SetProperty<{
|
|
10647
10648
|
name: "reset-password";
|
|
10648
10649
|
component: () => Promise<typeof reset_password_page_d_exports>;
|
|
10649
10650
|
path: undefined;
|
|
@@ -10667,9 +10668,9 @@ declare const adminModule: AdminBuilder<questpie134.SetProperty<questpie134.SetP
|
|
|
10667
10668
|
"~config": FormViewConfig;
|
|
10668
10669
|
component: typeof FormView;
|
|
10669
10670
|
}>>>;
|
|
10670
|
-
assets: CollectionBuilder<
|
|
10671
|
+
assets: CollectionBuilder<questpie31.SetProperty<questpie31.SetProperty<questpie31.SetProperty<{
|
|
10671
10672
|
name: "assets";
|
|
10672
|
-
"~adminApp": AdminBuilder<
|
|
10673
|
+
"~adminApp": AdminBuilder<questpie31.SetProperty<{
|
|
10673
10674
|
locale: {
|
|
10674
10675
|
default: string;
|
|
10675
10676
|
supported: string[];
|
|
@@ -10900,27 +10901,27 @@ declare const adminModule: AdminBuilder<questpie134.SetProperty<questpie134.SetP
|
|
|
10900
10901
|
defaultViews: {};
|
|
10901
10902
|
translations: {};
|
|
10902
10903
|
}, "pages", {
|
|
10903
|
-
dashboard: PageBuilder<
|
|
10904
|
+
dashboard: PageBuilder<questpie31.SetProperty<{
|
|
10904
10905
|
name: "dashboard";
|
|
10905
10906
|
component: () => Promise<typeof dashboard_page_d_exports>;
|
|
10906
10907
|
path: undefined;
|
|
10907
10908
|
}, "path", string>>;
|
|
10908
|
-
login: PageBuilder<
|
|
10909
|
+
login: PageBuilder<questpie31.SetProperty<{
|
|
10909
10910
|
name: "login";
|
|
10910
10911
|
component: () => Promise<typeof login_page_d_exports>;
|
|
10911
10912
|
path: undefined;
|
|
10912
10913
|
}, "path", string>>;
|
|
10913
|
-
setup: PageBuilder<
|
|
10914
|
+
setup: PageBuilder<questpie31.SetProperty<{
|
|
10914
10915
|
name: "setup";
|
|
10915
10916
|
component: () => Promise<typeof setup_page_d_exports>;
|
|
10916
10917
|
path: undefined;
|
|
10917
10918
|
}, "path", string>>;
|
|
10918
|
-
forgotPassword: PageBuilder<
|
|
10919
|
+
forgotPassword: PageBuilder<questpie31.SetProperty<{
|
|
10919
10920
|
name: "forgot-password";
|
|
10920
10921
|
component: () => Promise<typeof forgot_password_page_d_exports>;
|
|
10921
10922
|
path: undefined;
|
|
10922
10923
|
}, "path", string>>;
|
|
10923
|
-
resetPassword: PageBuilder<
|
|
10924
|
+
resetPassword: PageBuilder<questpie31.SetProperty<{
|
|
10924
10925
|
name: "reset-password";
|
|
10925
10926
|
component: () => Promise<typeof reset_password_page_d_exports>;
|
|
10926
10927
|
path: undefined;
|
|
@@ -13399,4 +13400,4 @@ type CollectionFieldKeys<TApp extends Questpie<any>, TCollectionName extends str
|
|
|
13399
13400
|
} ? keyof TSelect : never : never : never;
|
|
13400
13401
|
//#endregion
|
|
13401
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 };
|
|
13402
|
-
//# sourceMappingURL=client-
|
|
13403
|
+
//# sourceMappingURL=client-B7r47hEd.d.mts.map
|