@rolder/kit 3.0.0-alpha.115 → 3.0.0-alpha.117
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/ai/ui/chat/chatInput/store/input.js +1 -1
- package/dist/ui/JsonInput.js +1 -1
- package/package.json +6 -6
- package/dist/betterAuth/client/getAuthClient.d.ts +0 -3050
- package/dist/betterAuth/client/getAuthClient.js +0 -18
- package/dist/betterAuth/client/index.d.ts +0 -1
- package/dist/betterAuth/client/index.js +0 -1
- package/dist/betterAuth/index.d.ts +0 -3
- package/dist/betterAuth/index.js +0 -3
- package/dist/betterAuth/server/defaultAuthServerConfig.d.ts +0 -223
- package/dist/betterAuth/server/defaultAuthServerConfig.js +0 -48
- package/dist/betterAuth/server/env.d.ts +0 -1
- package/dist/betterAuth/server/env.js +0 -8
- package/dist/betterAuth/server/getDBSession.d.ts +0 -2
- package/dist/betterAuth/server/getDBSession.js +0 -85
- package/dist/betterAuth/server/getSessionToken.d.ts +0 -1
- package/dist/betterAuth/server/getSessionToken.js +0 -14
- package/dist/betterAuth/server/getSessionUser.d.ts +0 -1
- package/dist/betterAuth/server/getSessionUser.js +0 -22
- package/dist/betterAuth/server/index.d.ts +0 -10
- package/dist/betterAuth/server/index.js +0 -11
- package/dist/betterAuth/server/surrealDbAdapter/adapter.d.ts +0 -8
- package/dist/betterAuth/server/surrealDbAdapter/adapter.js +0 -64
- package/dist/betterAuth/server/surrealDbAdapter/adapter.test.d.ts +0 -1
- package/dist/betterAuth/server/surrealDbAdapter/adapter.test.js +0 -84
- package/dist/betterAuth/server/surrealDbAdapter/db/getDB.d.ts +0 -2
- package/dist/betterAuth/server/surrealDbAdapter/db/getDB.js +0 -26
- package/dist/betterAuth/server/surrealDbAdapter/db/index.d.ts +0 -1
- package/dist/betterAuth/server/surrealDbAdapter/db/index.js +0 -1
- package/dist/betterAuth/server/surrealDbAdapter/db/schema.d.ts +0 -1
- package/dist/betterAuth/server/surrealDbAdapter/db/schema.js +0 -97
- package/dist/betterAuth/server/surrealDbAdapter/index.d.ts +0 -1
- package/dist/betterAuth/server/surrealDbAdapter/index.js +0 -1
- package/dist/betterAuth/server/surrealDbAdapter/methods/count.d.ts +0 -2
- package/dist/betterAuth/server/surrealDbAdapter/methods/count.js +0 -17
- package/dist/betterAuth/server/surrealDbAdapter/methods/create.d.ts +0 -2
- package/dist/betterAuth/server/surrealDbAdapter/methods/create.js +0 -21
- package/dist/betterAuth/server/surrealDbAdapter/methods/delete.d.ts +0 -2
- package/dist/betterAuth/server/surrealDbAdapter/methods/delete.js +0 -18
- package/dist/betterAuth/server/surrealDbAdapter/methods/deleteMany.d.ts +0 -2
- package/dist/betterAuth/server/surrealDbAdapter/methods/deleteMany.js +0 -19
- package/dist/betterAuth/server/surrealDbAdapter/methods/findMany.d.ts +0 -2
- package/dist/betterAuth/server/surrealDbAdapter/methods/findMany.js +0 -51
- package/dist/betterAuth/server/surrealDbAdapter/methods/findOne.d.ts +0 -2
- package/dist/betterAuth/server/surrealDbAdapter/methods/findOne.js +0 -42
- package/dist/betterAuth/server/surrealDbAdapter/methods/index.d.ts +0 -8
- package/dist/betterAuth/server/surrealDbAdapter/methods/index.js +0 -8
- package/dist/betterAuth/server/surrealDbAdapter/methods/types.d.ts +0 -56
- package/dist/betterAuth/server/surrealDbAdapter/methods/types.js +0 -0
- package/dist/betterAuth/server/surrealDbAdapter/methods/update.d.ts +0 -2
- package/dist/betterAuth/server/surrealDbAdapter/methods/update.js +0 -25
- package/dist/betterAuth/server/surrealDbAdapter/methods/updateMany.d.ts +0 -2
- package/dist/betterAuth/server/surrealDbAdapter/methods/updateMany.js +0 -21
- package/dist/betterAuth/server/surrealDbAdapter/types.d.ts +0 -2
- package/dist/betterAuth/server/surrealDbAdapter/types.js +0 -0
- package/dist/betterAuth/server/surrealDbAdapter/utils/applyJoinMappings.d.ts +0 -2
- package/dist/betterAuth/server/surrealDbAdapter/utils/applyJoinMappings.js +0 -31
- package/dist/betterAuth/server/surrealDbAdapter/utils/buildExpression.d.ts +0 -3
- package/dist/betterAuth/server/surrealDbAdapter/utils/buildExpression.js +0 -58
- package/dist/betterAuth/server/surrealDbAdapter/utils/buildJoinPlan.d.ts +0 -9
- package/dist/betterAuth/server/surrealDbAdapter/utils/buildJoinPlan.js +0 -46
- package/dist/betterAuth/server/surrealDbAdapter/utils/buildSelectFields.d.ts +0 -1
- package/dist/betterAuth/server/surrealDbAdapter/utils/buildSelectFields.js +0 -5
- package/dist/betterAuth/server/surrealDbAdapter/utils/index.d.ts +0 -6
- package/dist/betterAuth/server/surrealDbAdapter/utils/index.js +0 -6
- package/dist/betterAuth/server/surrealDbAdapter/utils/normalizeOutputRecordIds.d.ts +0 -2
- package/dist/betterAuth/server/surrealDbAdapter/utils/normalizeOutputRecordIds.js +0 -43
- package/dist/betterAuth/server/surrealDbAdapter/utils/normalizeRecordIds.d.ts +0 -2
- package/dist/betterAuth/server/surrealDbAdapter/utils/normalizeRecordIds.js +0 -38
- package/dist/betterAuth/server/surrealDbAdapter/utils/normalizeWhereValue.d.ts +0 -2
- package/dist/betterAuth/server/surrealDbAdapter/utils/normalizeWhereValue.js +0 -33
- package/dist/betterAuth/server/surrealDbAdapter/utils/types.d.ts +0 -34
- package/dist/betterAuth/server/surrealDbAdapter/utils/types.js +0 -0
- package/dist/betterAuth/server/types.d.ts +0 -8
- package/dist/betterAuth/server/types.js +0 -0
- package/dist/betterAuth/useSessionUser.d.ts +0 -1
- package/dist/betterAuth/useSessionUser.js +0 -8
- package/dist/surrealDB/deafaultCrud.d.ts +0 -2
- package/dist/surrealDB/deafaultCrud.js +0 -19
- package/dist/surrealDB/deserialize.d.ts +0 -17
- package/dist/surrealDB/deserialize.js +0 -46
- package/dist/surrealDB/encryption.d.ts +0 -6
- package/dist/surrealDB/encryption.js +0 -30
- package/dist/surrealDB/getDBInstance.d.ts +0 -3
- package/dist/surrealDB/getDBInstance.js +0 -38
- package/dist/surrealDB/getDBInstanceTanstack.d.ts +0 -3
- package/dist/surrealDB/getDBInstanceTanstack.js +0 -49
- package/dist/surrealDB/index.d.ts +0 -7
- package/dist/surrealDB/index.js +0 -7
- package/dist/surrealDB/types.d.ts +0 -10
- package/dist/surrealDB/types.js +0 -0
|
@@ -1,3050 +0,0 @@
|
|
|
1
|
-
import type { BASE_ERROR_CODES, BetterAuthClientOptions } from 'better-auth';
|
|
2
|
-
import type { Role } from 'better-auth/plugins';
|
|
3
|
-
export type BetterAuthErrorCodes = keyof typeof BASE_ERROR_CODES;
|
|
4
|
-
export interface AuthClient<TRoles extends Record<string, Role>> {
|
|
5
|
-
betterAuthClientOptions?: Partial<BetterAuthClientOptions>;
|
|
6
|
-
roles?: TRoles;
|
|
7
|
-
}
|
|
8
|
-
export declare const getAuthClient: <TRoles extends Record<string, Role>>(config?: AuthClient<TRoles>) => {
|
|
9
|
-
admin: {
|
|
10
|
-
setRole: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
|
|
11
|
-
userId: string;
|
|
12
|
-
role: keyof (TRoles | {
|
|
13
|
-
admin: {
|
|
14
|
-
authorize<K extends "organization" | "team" | "member" | "ac" | "invitation">(request: K extends infer T extends keyof import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
15
|
-
readonly organization: readonly ["update", "delete"];
|
|
16
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
17
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
18
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
19
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
20
|
-
}> ? { [key in T]?: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
21
|
-
readonly organization: readonly ["update", "delete"];
|
|
22
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
23
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
24
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
25
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
26
|
-
}>[key] | {
|
|
27
|
-
actions: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
28
|
-
readonly organization: readonly ["update", "delete"];
|
|
29
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
30
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
31
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
32
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
33
|
-
}>[key];
|
|
34
|
-
connector: "OR" | "AND";
|
|
35
|
-
} | undefined; } : never, connector?: "OR" | "AND"): import("better-auth/plugins").AuthorizeResponse;
|
|
36
|
-
statements: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
37
|
-
readonly organization: readonly ["update", "delete"];
|
|
38
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
39
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
40
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
41
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
42
|
-
}>;
|
|
43
|
-
};
|
|
44
|
-
owner: {
|
|
45
|
-
authorize<K extends "organization" | "team" | "member" | "ac" | "invitation">(request: K extends infer T extends keyof import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
46
|
-
readonly organization: readonly ["update", "delete"];
|
|
47
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
48
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
49
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
50
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
51
|
-
}> ? { [key in T]?: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
52
|
-
readonly organization: readonly ["update", "delete"];
|
|
53
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
54
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
55
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
56
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
57
|
-
}>[key] | {
|
|
58
|
-
actions: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
59
|
-
readonly organization: readonly ["update", "delete"];
|
|
60
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
61
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
62
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
63
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
64
|
-
}>[key];
|
|
65
|
-
connector: "OR" | "AND";
|
|
66
|
-
} | undefined; } : never, connector?: "OR" | "AND"): import("better-auth/plugins").AuthorizeResponse;
|
|
67
|
-
statements: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
68
|
-
readonly organization: readonly ["update", "delete"];
|
|
69
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
70
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
71
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
72
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
73
|
-
}>;
|
|
74
|
-
};
|
|
75
|
-
member: {
|
|
76
|
-
authorize<K extends "organization" | "team" | "member" | "ac" | "invitation">(request: K extends infer T extends keyof import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
77
|
-
readonly organization: readonly ["update", "delete"];
|
|
78
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
79
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
80
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
81
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
82
|
-
}> ? { [key in T]?: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
83
|
-
readonly organization: readonly ["update", "delete"];
|
|
84
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
85
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
86
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
87
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
88
|
-
}>[key] | {
|
|
89
|
-
actions: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
90
|
-
readonly organization: readonly ["update", "delete"];
|
|
91
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
92
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
93
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
94
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
95
|
-
}>[key];
|
|
96
|
-
connector: "OR" | "AND";
|
|
97
|
-
} | undefined; } : never, connector?: "OR" | "AND"): import("better-auth/plugins").AuthorizeResponse;
|
|
98
|
-
statements: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
99
|
-
readonly organization: readonly ["update", "delete"];
|
|
100
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
101
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
102
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
103
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
104
|
-
}>;
|
|
105
|
-
};
|
|
106
|
-
} extends Record<string, Role> ? Record<string, Role> & (TRoles | {
|
|
107
|
-
admin: {
|
|
108
|
-
authorize<K extends "organization" | "team" | "member" | "ac" | "invitation">(request: K extends infer T extends keyof import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
109
|
-
readonly organization: readonly ["update", "delete"];
|
|
110
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
111
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
112
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
113
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
114
|
-
}> ? { [key in T]?: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
115
|
-
readonly organization: readonly ["update", "delete"];
|
|
116
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
117
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
118
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
119
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
120
|
-
}>[key] | {
|
|
121
|
-
actions: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
122
|
-
readonly organization: readonly ["update", "delete"];
|
|
123
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
124
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
125
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
126
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
127
|
-
}>[key];
|
|
128
|
-
connector: "OR" | "AND";
|
|
129
|
-
} | undefined; } : never, connector?: "OR" | "AND"): import("better-auth/plugins").AuthorizeResponse;
|
|
130
|
-
statements: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
131
|
-
readonly organization: readonly ["update", "delete"];
|
|
132
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
133
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
134
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
135
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
136
|
-
}>;
|
|
137
|
-
};
|
|
138
|
-
owner: {
|
|
139
|
-
authorize<K extends "organization" | "team" | "member" | "ac" | "invitation">(request: K extends infer T extends keyof import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
140
|
-
readonly organization: readonly ["update", "delete"];
|
|
141
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
142
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
143
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
144
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
145
|
-
}> ? { [key in T]?: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
146
|
-
readonly organization: readonly ["update", "delete"];
|
|
147
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
148
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
149
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
150
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
151
|
-
}>[key] | {
|
|
152
|
-
actions: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
153
|
-
readonly organization: readonly ["update", "delete"];
|
|
154
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
155
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
156
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
157
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
158
|
-
}>[key];
|
|
159
|
-
connector: "OR" | "AND";
|
|
160
|
-
} | undefined; } : never, connector?: "OR" | "AND"): import("better-auth/plugins").AuthorizeResponse;
|
|
161
|
-
statements: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
162
|
-
readonly organization: readonly ["update", "delete"];
|
|
163
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
164
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
165
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
166
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
167
|
-
}>;
|
|
168
|
-
};
|
|
169
|
-
member: {
|
|
170
|
-
authorize<K extends "organization" | "team" | "member" | "ac" | "invitation">(request: K extends infer T extends keyof import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
171
|
-
readonly organization: readonly ["update", "delete"];
|
|
172
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
173
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
174
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
175
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
176
|
-
}> ? { [key in T]?: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
177
|
-
readonly organization: readonly ["update", "delete"];
|
|
178
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
179
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
180
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
181
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
182
|
-
}>[key] | {
|
|
183
|
-
actions: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
184
|
-
readonly organization: readonly ["update", "delete"];
|
|
185
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
186
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
187
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
188
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
189
|
-
}>[key];
|
|
190
|
-
connector: "OR" | "AND";
|
|
191
|
-
} | undefined; } : never, connector?: "OR" | "AND"): import("better-auth/plugins").AuthorizeResponse;
|
|
192
|
-
statements: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
193
|
-
readonly organization: readonly ["update", "delete"];
|
|
194
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
195
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
196
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
197
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
198
|
-
}>;
|
|
199
|
-
};
|
|
200
|
-
}) : {
|
|
201
|
-
admin: Role;
|
|
202
|
-
user: Role;
|
|
203
|
-
}) | (keyof (TRoles | {
|
|
204
|
-
admin: {
|
|
205
|
-
authorize<K extends "organization" | "team" | "member" | "ac" | "invitation">(request: K extends infer T extends keyof import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
206
|
-
readonly organization: readonly ["update", "delete"];
|
|
207
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
208
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
209
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
210
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
211
|
-
}> ? { [key in T]?: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
212
|
-
readonly organization: readonly ["update", "delete"];
|
|
213
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
214
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
215
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
216
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
217
|
-
}>[key] | {
|
|
218
|
-
actions: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
219
|
-
readonly organization: readonly ["update", "delete"];
|
|
220
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
221
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
222
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
223
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
224
|
-
}>[key];
|
|
225
|
-
connector: "OR" | "AND";
|
|
226
|
-
} | undefined; } : never, connector?: "OR" | "AND"): import("better-auth/plugins").AuthorizeResponse;
|
|
227
|
-
statements: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
228
|
-
readonly organization: readonly ["update", "delete"];
|
|
229
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
230
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
231
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
232
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
233
|
-
}>;
|
|
234
|
-
};
|
|
235
|
-
owner: {
|
|
236
|
-
authorize<K extends "organization" | "team" | "member" | "ac" | "invitation">(request: K extends infer T extends keyof import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
237
|
-
readonly organization: readonly ["update", "delete"];
|
|
238
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
239
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
240
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
241
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
242
|
-
}> ? { [key in T]?: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
243
|
-
readonly organization: readonly ["update", "delete"];
|
|
244
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
245
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
246
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
247
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
248
|
-
}>[key] | {
|
|
249
|
-
actions: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
250
|
-
readonly organization: readonly ["update", "delete"];
|
|
251
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
252
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
253
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
254
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
255
|
-
}>[key];
|
|
256
|
-
connector: "OR" | "AND";
|
|
257
|
-
} | undefined; } : never, connector?: "OR" | "AND"): import("better-auth/plugins").AuthorizeResponse;
|
|
258
|
-
statements: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
259
|
-
readonly organization: readonly ["update", "delete"];
|
|
260
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
261
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
262
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
263
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
264
|
-
}>;
|
|
265
|
-
};
|
|
266
|
-
member: {
|
|
267
|
-
authorize<K extends "organization" | "team" | "member" | "ac" | "invitation">(request: K extends infer T extends keyof import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
268
|
-
readonly organization: readonly ["update", "delete"];
|
|
269
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
270
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
271
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
272
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
273
|
-
}> ? { [key in T]?: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
274
|
-
readonly organization: readonly ["update", "delete"];
|
|
275
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
276
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
277
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
278
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
279
|
-
}>[key] | {
|
|
280
|
-
actions: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
281
|
-
readonly organization: readonly ["update", "delete"];
|
|
282
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
283
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
284
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
285
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
286
|
-
}>[key];
|
|
287
|
-
connector: "OR" | "AND";
|
|
288
|
-
} | undefined; } : never, connector?: "OR" | "AND"): import("better-auth/plugins").AuthorizeResponse;
|
|
289
|
-
statements: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
290
|
-
readonly organization: readonly ["update", "delete"];
|
|
291
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
292
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
293
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
294
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
295
|
-
}>;
|
|
296
|
-
};
|
|
297
|
-
} extends Record<string, Role> ? Record<string, Role> & (TRoles | {
|
|
298
|
-
admin: {
|
|
299
|
-
authorize<K extends "organization" | "team" | "member" | "ac" | "invitation">(request: K extends infer T extends keyof import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
300
|
-
readonly organization: readonly ["update", "delete"];
|
|
301
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
302
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
303
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
304
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
305
|
-
}> ? { [key in T]?: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
306
|
-
readonly organization: readonly ["update", "delete"];
|
|
307
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
308
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
309
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
310
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
311
|
-
}>[key] | {
|
|
312
|
-
actions: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
313
|
-
readonly organization: readonly ["update", "delete"];
|
|
314
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
315
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
316
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
317
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
318
|
-
}>[key];
|
|
319
|
-
connector: "OR" | "AND";
|
|
320
|
-
} | undefined; } : never, connector?: "OR" | "AND"): import("better-auth/plugins").AuthorizeResponse;
|
|
321
|
-
statements: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
322
|
-
readonly organization: readonly ["update", "delete"];
|
|
323
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
324
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
325
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
326
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
327
|
-
}>;
|
|
328
|
-
};
|
|
329
|
-
owner: {
|
|
330
|
-
authorize<K extends "organization" | "team" | "member" | "ac" | "invitation">(request: K extends infer T extends keyof import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
331
|
-
readonly organization: readonly ["update", "delete"];
|
|
332
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
333
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
334
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
335
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
336
|
-
}> ? { [key in T]?: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
337
|
-
readonly organization: readonly ["update", "delete"];
|
|
338
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
339
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
340
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
341
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
342
|
-
}>[key] | {
|
|
343
|
-
actions: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
344
|
-
readonly organization: readonly ["update", "delete"];
|
|
345
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
346
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
347
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
348
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
349
|
-
}>[key];
|
|
350
|
-
connector: "OR" | "AND";
|
|
351
|
-
} | undefined; } : never, connector?: "OR" | "AND"): import("better-auth/plugins").AuthorizeResponse;
|
|
352
|
-
statements: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
353
|
-
readonly organization: readonly ["update", "delete"];
|
|
354
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
355
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
356
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
357
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
358
|
-
}>;
|
|
359
|
-
};
|
|
360
|
-
member: {
|
|
361
|
-
authorize<K extends "organization" | "team" | "member" | "ac" | "invitation">(request: K extends infer T extends keyof import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
362
|
-
readonly organization: readonly ["update", "delete"];
|
|
363
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
364
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
365
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
366
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
367
|
-
}> ? { [key in T]?: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
368
|
-
readonly organization: readonly ["update", "delete"];
|
|
369
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
370
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
371
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
372
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
373
|
-
}>[key] | {
|
|
374
|
-
actions: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
375
|
-
readonly organization: readonly ["update", "delete"];
|
|
376
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
377
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
378
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
379
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
380
|
-
}>[key];
|
|
381
|
-
connector: "OR" | "AND";
|
|
382
|
-
} | undefined; } : never, connector?: "OR" | "AND"): import("better-auth/plugins").AuthorizeResponse;
|
|
383
|
-
statements: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
384
|
-
readonly organization: readonly ["update", "delete"];
|
|
385
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
386
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
387
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
388
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
389
|
-
}>;
|
|
390
|
-
};
|
|
391
|
-
}) : {
|
|
392
|
-
admin: Role;
|
|
393
|
-
user: Role;
|
|
394
|
-
}))[];
|
|
395
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
|
|
396
|
-
userId: string;
|
|
397
|
-
role: keyof (TRoles | {
|
|
398
|
-
admin: {
|
|
399
|
-
authorize<K extends "organization" | "team" | "member" | "ac" | "invitation">(request: K extends infer T extends keyof import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
400
|
-
readonly organization: readonly ["update", "delete"];
|
|
401
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
402
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
403
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
404
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
405
|
-
}> ? { [key in T]?: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
406
|
-
readonly organization: readonly ["update", "delete"];
|
|
407
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
408
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
409
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
410
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
411
|
-
}>[key] | {
|
|
412
|
-
actions: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
413
|
-
readonly organization: readonly ["update", "delete"];
|
|
414
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
415
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
416
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
417
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
418
|
-
}>[key];
|
|
419
|
-
connector: "OR" | "AND";
|
|
420
|
-
} | undefined; } : never, connector?: "OR" | "AND"): import("better-auth/plugins").AuthorizeResponse;
|
|
421
|
-
statements: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
422
|
-
readonly organization: readonly ["update", "delete"];
|
|
423
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
424
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
425
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
426
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
427
|
-
}>;
|
|
428
|
-
};
|
|
429
|
-
owner: {
|
|
430
|
-
authorize<K extends "organization" | "team" | "member" | "ac" | "invitation">(request: K extends infer T extends keyof import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
431
|
-
readonly organization: readonly ["update", "delete"];
|
|
432
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
433
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
434
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
435
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
436
|
-
}> ? { [key in T]?: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
437
|
-
readonly organization: readonly ["update", "delete"];
|
|
438
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
439
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
440
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
441
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
442
|
-
}>[key] | {
|
|
443
|
-
actions: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
444
|
-
readonly organization: readonly ["update", "delete"];
|
|
445
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
446
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
447
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
448
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
449
|
-
}>[key];
|
|
450
|
-
connector: "OR" | "AND";
|
|
451
|
-
} | undefined; } : never, connector?: "OR" | "AND"): import("better-auth/plugins").AuthorizeResponse;
|
|
452
|
-
statements: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
453
|
-
readonly organization: readonly ["update", "delete"];
|
|
454
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
455
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
456
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
457
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
458
|
-
}>;
|
|
459
|
-
};
|
|
460
|
-
member: {
|
|
461
|
-
authorize<K extends "organization" | "team" | "member" | "ac" | "invitation">(request: K extends infer T extends keyof import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
462
|
-
readonly organization: readonly ["update", "delete"];
|
|
463
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
464
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
465
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
466
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
467
|
-
}> ? { [key in T]?: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
468
|
-
readonly organization: readonly ["update", "delete"];
|
|
469
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
470
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
471
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
472
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
473
|
-
}>[key] | {
|
|
474
|
-
actions: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
475
|
-
readonly organization: readonly ["update", "delete"];
|
|
476
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
477
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
478
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
479
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
480
|
-
}>[key];
|
|
481
|
-
connector: "OR" | "AND";
|
|
482
|
-
} | undefined; } : never, connector?: "OR" | "AND"): import("better-auth/plugins").AuthorizeResponse;
|
|
483
|
-
statements: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
484
|
-
readonly organization: readonly ["update", "delete"];
|
|
485
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
486
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
487
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
488
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
489
|
-
}>;
|
|
490
|
-
};
|
|
491
|
-
} extends Record<string, Role> ? Record<string, Role> & (TRoles | {
|
|
492
|
-
admin: {
|
|
493
|
-
authorize<K extends "organization" | "team" | "member" | "ac" | "invitation">(request: K extends infer T extends keyof import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
494
|
-
readonly organization: readonly ["update", "delete"];
|
|
495
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
496
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
497
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
498
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
499
|
-
}> ? { [key in T]?: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
500
|
-
readonly organization: readonly ["update", "delete"];
|
|
501
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
502
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
503
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
504
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
505
|
-
}>[key] | {
|
|
506
|
-
actions: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
507
|
-
readonly organization: readonly ["update", "delete"];
|
|
508
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
509
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
510
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
511
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
512
|
-
}>[key];
|
|
513
|
-
connector: "OR" | "AND";
|
|
514
|
-
} | undefined; } : never, connector?: "OR" | "AND"): import("better-auth/plugins").AuthorizeResponse;
|
|
515
|
-
statements: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
516
|
-
readonly organization: readonly ["update", "delete"];
|
|
517
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
518
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
519
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
520
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
521
|
-
}>;
|
|
522
|
-
};
|
|
523
|
-
owner: {
|
|
524
|
-
authorize<K extends "organization" | "team" | "member" | "ac" | "invitation">(request: K extends infer T extends keyof import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
525
|
-
readonly organization: readonly ["update", "delete"];
|
|
526
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
527
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
528
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
529
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
530
|
-
}> ? { [key in T]?: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
531
|
-
readonly organization: readonly ["update", "delete"];
|
|
532
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
533
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
534
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
535
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
536
|
-
}>[key] | {
|
|
537
|
-
actions: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
538
|
-
readonly organization: readonly ["update", "delete"];
|
|
539
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
540
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
541
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
542
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
543
|
-
}>[key];
|
|
544
|
-
connector: "OR" | "AND";
|
|
545
|
-
} | undefined; } : never, connector?: "OR" | "AND"): import("better-auth/plugins").AuthorizeResponse;
|
|
546
|
-
statements: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
547
|
-
readonly organization: readonly ["update", "delete"];
|
|
548
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
549
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
550
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
551
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
552
|
-
}>;
|
|
553
|
-
};
|
|
554
|
-
member: {
|
|
555
|
-
authorize<K extends "organization" | "team" | "member" | "ac" | "invitation">(request: K extends infer T extends keyof import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
556
|
-
readonly organization: readonly ["update", "delete"];
|
|
557
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
558
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
559
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
560
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
561
|
-
}> ? { [key in T]?: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
562
|
-
readonly organization: readonly ["update", "delete"];
|
|
563
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
564
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
565
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
566
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
567
|
-
}>[key] | {
|
|
568
|
-
actions: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
569
|
-
readonly organization: readonly ["update", "delete"];
|
|
570
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
571
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
572
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
573
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
574
|
-
}>[key];
|
|
575
|
-
connector: "OR" | "AND";
|
|
576
|
-
} | undefined; } : never, connector?: "OR" | "AND"): import("better-auth/plugins").AuthorizeResponse;
|
|
577
|
-
statements: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
578
|
-
readonly organization: readonly ["update", "delete"];
|
|
579
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
580
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
581
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
582
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
583
|
-
}>;
|
|
584
|
-
};
|
|
585
|
-
}) : {
|
|
586
|
-
admin: Role;
|
|
587
|
-
user: Role;
|
|
588
|
-
}) | (keyof (TRoles | {
|
|
589
|
-
admin: {
|
|
590
|
-
authorize<K extends "organization" | "team" | "member" | "ac" | "invitation">(request: K extends infer T extends keyof import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
591
|
-
readonly organization: readonly ["update", "delete"];
|
|
592
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
593
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
594
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
595
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
596
|
-
}> ? { [key in T]?: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
597
|
-
readonly organization: readonly ["update", "delete"];
|
|
598
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
599
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
600
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
601
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
602
|
-
}>[key] | {
|
|
603
|
-
actions: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
604
|
-
readonly organization: readonly ["update", "delete"];
|
|
605
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
606
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
607
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
608
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
609
|
-
}>[key];
|
|
610
|
-
connector: "OR" | "AND";
|
|
611
|
-
} | undefined; } : never, connector?: "OR" | "AND"): import("better-auth/plugins").AuthorizeResponse;
|
|
612
|
-
statements: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
613
|
-
readonly organization: readonly ["update", "delete"];
|
|
614
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
615
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
616
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
617
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
618
|
-
}>;
|
|
619
|
-
};
|
|
620
|
-
owner: {
|
|
621
|
-
authorize<K extends "organization" | "team" | "member" | "ac" | "invitation">(request: K extends infer T extends keyof import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
622
|
-
readonly organization: readonly ["update", "delete"];
|
|
623
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
624
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
625
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
626
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
627
|
-
}> ? { [key in T]?: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
628
|
-
readonly organization: readonly ["update", "delete"];
|
|
629
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
630
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
631
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
632
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
633
|
-
}>[key] | {
|
|
634
|
-
actions: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
635
|
-
readonly organization: readonly ["update", "delete"];
|
|
636
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
637
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
638
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
639
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
640
|
-
}>[key];
|
|
641
|
-
connector: "OR" | "AND";
|
|
642
|
-
} | undefined; } : never, connector?: "OR" | "AND"): import("better-auth/plugins").AuthorizeResponse;
|
|
643
|
-
statements: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
644
|
-
readonly organization: readonly ["update", "delete"];
|
|
645
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
646
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
647
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
648
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
649
|
-
}>;
|
|
650
|
-
};
|
|
651
|
-
member: {
|
|
652
|
-
authorize<K extends "organization" | "team" | "member" | "ac" | "invitation">(request: K extends infer T extends keyof import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
653
|
-
readonly organization: readonly ["update", "delete"];
|
|
654
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
655
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
656
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
657
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
658
|
-
}> ? { [key in T]?: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
659
|
-
readonly organization: readonly ["update", "delete"];
|
|
660
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
661
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
662
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
663
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
664
|
-
}>[key] | {
|
|
665
|
-
actions: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
666
|
-
readonly organization: readonly ["update", "delete"];
|
|
667
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
668
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
669
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
670
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
671
|
-
}>[key];
|
|
672
|
-
connector: "OR" | "AND";
|
|
673
|
-
} | undefined; } : never, connector?: "OR" | "AND"): import("better-auth/plugins").AuthorizeResponse;
|
|
674
|
-
statements: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
675
|
-
readonly organization: readonly ["update", "delete"];
|
|
676
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
677
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
678
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
679
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
680
|
-
}>;
|
|
681
|
-
};
|
|
682
|
-
} extends Record<string, Role> ? Record<string, Role> & (TRoles | {
|
|
683
|
-
admin: {
|
|
684
|
-
authorize<K extends "organization" | "team" | "member" | "ac" | "invitation">(request: K extends infer T extends keyof import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
685
|
-
readonly organization: readonly ["update", "delete"];
|
|
686
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
687
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
688
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
689
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
690
|
-
}> ? { [key in T]?: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
691
|
-
readonly organization: readonly ["update", "delete"];
|
|
692
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
693
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
694
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
695
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
696
|
-
}>[key] | {
|
|
697
|
-
actions: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
698
|
-
readonly organization: readonly ["update", "delete"];
|
|
699
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
700
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
701
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
702
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
703
|
-
}>[key];
|
|
704
|
-
connector: "OR" | "AND";
|
|
705
|
-
} | undefined; } : never, connector?: "OR" | "AND"): import("better-auth/plugins").AuthorizeResponse;
|
|
706
|
-
statements: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
707
|
-
readonly organization: readonly ["update", "delete"];
|
|
708
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
709
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
710
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
711
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
712
|
-
}>;
|
|
713
|
-
};
|
|
714
|
-
owner: {
|
|
715
|
-
authorize<K extends "organization" | "team" | "member" | "ac" | "invitation">(request: K extends infer T extends keyof import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
716
|
-
readonly organization: readonly ["update", "delete"];
|
|
717
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
718
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
719
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
720
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
721
|
-
}> ? { [key in T]?: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
722
|
-
readonly organization: readonly ["update", "delete"];
|
|
723
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
724
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
725
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
726
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
727
|
-
}>[key] | {
|
|
728
|
-
actions: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
729
|
-
readonly organization: readonly ["update", "delete"];
|
|
730
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
731
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
732
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
733
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
734
|
-
}>[key];
|
|
735
|
-
connector: "OR" | "AND";
|
|
736
|
-
} | undefined; } : never, connector?: "OR" | "AND"): import("better-auth/plugins").AuthorizeResponse;
|
|
737
|
-
statements: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
738
|
-
readonly organization: readonly ["update", "delete"];
|
|
739
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
740
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
741
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
742
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
743
|
-
}>;
|
|
744
|
-
};
|
|
745
|
-
member: {
|
|
746
|
-
authorize<K extends "organization" | "team" | "member" | "ac" | "invitation">(request: K extends infer T extends keyof import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
747
|
-
readonly organization: readonly ["update", "delete"];
|
|
748
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
749
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
750
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
751
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
752
|
-
}> ? { [key in T]?: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
753
|
-
readonly organization: readonly ["update", "delete"];
|
|
754
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
755
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
756
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
757
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
758
|
-
}>[key] | {
|
|
759
|
-
actions: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
760
|
-
readonly organization: readonly ["update", "delete"];
|
|
761
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
762
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
763
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
764
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
765
|
-
}>[key];
|
|
766
|
-
connector: "OR" | "AND";
|
|
767
|
-
} | undefined; } : never, connector?: "OR" | "AND"): import("better-auth/plugins").AuthorizeResponse;
|
|
768
|
-
statements: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
769
|
-
readonly organization: readonly ["update", "delete"];
|
|
770
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
771
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
772
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
773
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
774
|
-
}>;
|
|
775
|
-
};
|
|
776
|
-
}) : {
|
|
777
|
-
admin: Role;
|
|
778
|
-
user: Role;
|
|
779
|
-
}))[];
|
|
780
|
-
} & {
|
|
781
|
-
fetchOptions?: FetchOptions | undefined;
|
|
782
|
-
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
783
|
-
user: import("better-auth/plugins").UserWithRole;
|
|
784
|
-
}, {
|
|
785
|
-
code?: string | undefined;
|
|
786
|
-
message?: string | undefined;
|
|
787
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
788
|
-
};
|
|
789
|
-
} & {
|
|
790
|
-
admin: {
|
|
791
|
-
getUser: <FetchOptions extends import("better-auth").ClientFetchOption<never, Partial<{
|
|
792
|
-
id: string;
|
|
793
|
-
}> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
|
|
794
|
-
query: {
|
|
795
|
-
id: string;
|
|
796
|
-
};
|
|
797
|
-
fetchOptions?: FetchOptions | undefined;
|
|
798
|
-
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<import("better-auth/plugins").UserWithRole, {
|
|
799
|
-
code?: string | undefined;
|
|
800
|
-
message?: string | undefined;
|
|
801
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
802
|
-
};
|
|
803
|
-
} & {
|
|
804
|
-
admin: {
|
|
805
|
-
createUser: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
|
|
806
|
-
email: string;
|
|
807
|
-
password?: string | undefined;
|
|
808
|
-
name: string;
|
|
809
|
-
role?: keyof (TRoles | {
|
|
810
|
-
admin: {
|
|
811
|
-
authorize<K extends "organization" | "team" | "member" | "ac" | "invitation">(request: K extends infer T extends keyof import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
812
|
-
readonly organization: readonly ["update", "delete"];
|
|
813
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
814
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
815
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
816
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
817
|
-
}> ? { [key in T]?: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
818
|
-
readonly organization: readonly ["update", "delete"];
|
|
819
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
820
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
821
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
822
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
823
|
-
}>[key] | {
|
|
824
|
-
actions: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
825
|
-
readonly organization: readonly ["update", "delete"];
|
|
826
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
827
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
828
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
829
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
830
|
-
}>[key];
|
|
831
|
-
connector: "OR" | "AND";
|
|
832
|
-
} | undefined; } : never, connector?: "OR" | "AND"): import("better-auth/plugins").AuthorizeResponse;
|
|
833
|
-
statements: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
834
|
-
readonly organization: readonly ["update", "delete"];
|
|
835
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
836
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
837
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
838
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
839
|
-
}>;
|
|
840
|
-
};
|
|
841
|
-
owner: {
|
|
842
|
-
authorize<K extends "organization" | "team" | "member" | "ac" | "invitation">(request: K extends infer T extends keyof import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
843
|
-
readonly organization: readonly ["update", "delete"];
|
|
844
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
845
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
846
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
847
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
848
|
-
}> ? { [key in T]?: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
849
|
-
readonly organization: readonly ["update", "delete"];
|
|
850
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
851
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
852
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
853
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
854
|
-
}>[key] | {
|
|
855
|
-
actions: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
856
|
-
readonly organization: readonly ["update", "delete"];
|
|
857
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
858
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
859
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
860
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
861
|
-
}>[key];
|
|
862
|
-
connector: "OR" | "AND";
|
|
863
|
-
} | undefined; } : never, connector?: "OR" | "AND"): import("better-auth/plugins").AuthorizeResponse;
|
|
864
|
-
statements: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
865
|
-
readonly organization: readonly ["update", "delete"];
|
|
866
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
867
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
868
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
869
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
870
|
-
}>;
|
|
871
|
-
};
|
|
872
|
-
member: {
|
|
873
|
-
authorize<K extends "organization" | "team" | "member" | "ac" | "invitation">(request: K extends infer T extends keyof import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
874
|
-
readonly organization: readonly ["update", "delete"];
|
|
875
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
876
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
877
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
878
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
879
|
-
}> ? { [key in T]?: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
880
|
-
readonly organization: readonly ["update", "delete"];
|
|
881
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
882
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
883
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
884
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
885
|
-
}>[key] | {
|
|
886
|
-
actions: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
887
|
-
readonly organization: readonly ["update", "delete"];
|
|
888
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
889
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
890
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
891
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
892
|
-
}>[key];
|
|
893
|
-
connector: "OR" | "AND";
|
|
894
|
-
} | undefined; } : never, connector?: "OR" | "AND"): import("better-auth/plugins").AuthorizeResponse;
|
|
895
|
-
statements: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
896
|
-
readonly organization: readonly ["update", "delete"];
|
|
897
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
898
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
899
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
900
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
901
|
-
}>;
|
|
902
|
-
};
|
|
903
|
-
} extends Record<string, Role> ? Record<string, Role> & (TRoles | {
|
|
904
|
-
admin: {
|
|
905
|
-
authorize<K extends "organization" | "team" | "member" | "ac" | "invitation">(request: K extends infer T extends keyof import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
906
|
-
readonly organization: readonly ["update", "delete"];
|
|
907
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
908
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
909
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
910
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
911
|
-
}> ? { [key in T]?: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
912
|
-
readonly organization: readonly ["update", "delete"];
|
|
913
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
914
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
915
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
916
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
917
|
-
}>[key] | {
|
|
918
|
-
actions: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
919
|
-
readonly organization: readonly ["update", "delete"];
|
|
920
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
921
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
922
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
923
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
924
|
-
}>[key];
|
|
925
|
-
connector: "OR" | "AND";
|
|
926
|
-
} | undefined; } : never, connector?: "OR" | "AND"): import("better-auth/plugins").AuthorizeResponse;
|
|
927
|
-
statements: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
928
|
-
readonly organization: readonly ["update", "delete"];
|
|
929
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
930
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
931
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
932
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
933
|
-
}>;
|
|
934
|
-
};
|
|
935
|
-
owner: {
|
|
936
|
-
authorize<K extends "organization" | "team" | "member" | "ac" | "invitation">(request: K extends infer T extends keyof import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
937
|
-
readonly organization: readonly ["update", "delete"];
|
|
938
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
939
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
940
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
941
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
942
|
-
}> ? { [key in T]?: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
943
|
-
readonly organization: readonly ["update", "delete"];
|
|
944
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
945
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
946
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
947
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
948
|
-
}>[key] | {
|
|
949
|
-
actions: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
950
|
-
readonly organization: readonly ["update", "delete"];
|
|
951
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
952
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
953
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
954
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
955
|
-
}>[key];
|
|
956
|
-
connector: "OR" | "AND";
|
|
957
|
-
} | undefined; } : never, connector?: "OR" | "AND"): import("better-auth/plugins").AuthorizeResponse;
|
|
958
|
-
statements: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
959
|
-
readonly organization: readonly ["update", "delete"];
|
|
960
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
961
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
962
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
963
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
964
|
-
}>;
|
|
965
|
-
};
|
|
966
|
-
member: {
|
|
967
|
-
authorize<K extends "organization" | "team" | "member" | "ac" | "invitation">(request: K extends infer T extends keyof import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
968
|
-
readonly organization: readonly ["update", "delete"];
|
|
969
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
970
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
971
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
972
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
973
|
-
}> ? { [key in T]?: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
974
|
-
readonly organization: readonly ["update", "delete"];
|
|
975
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
976
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
977
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
978
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
979
|
-
}>[key] | {
|
|
980
|
-
actions: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
981
|
-
readonly organization: readonly ["update", "delete"];
|
|
982
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
983
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
984
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
985
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
986
|
-
}>[key];
|
|
987
|
-
connector: "OR" | "AND";
|
|
988
|
-
} | undefined; } : never, connector?: "OR" | "AND"): import("better-auth/plugins").AuthorizeResponse;
|
|
989
|
-
statements: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
990
|
-
readonly organization: readonly ["update", "delete"];
|
|
991
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
992
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
993
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
994
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
995
|
-
}>;
|
|
996
|
-
};
|
|
997
|
-
}) : {
|
|
998
|
-
admin: Role;
|
|
999
|
-
user: Role;
|
|
1000
|
-
}) | (keyof (TRoles | {
|
|
1001
|
-
admin: {
|
|
1002
|
-
authorize<K extends "organization" | "team" | "member" | "ac" | "invitation">(request: K extends infer T extends keyof import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
1003
|
-
readonly organization: readonly ["update", "delete"];
|
|
1004
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
1005
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
1006
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
1007
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
1008
|
-
}> ? { [key in T]?: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
1009
|
-
readonly organization: readonly ["update", "delete"];
|
|
1010
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
1011
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
1012
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
1013
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
1014
|
-
}>[key] | {
|
|
1015
|
-
actions: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
1016
|
-
readonly organization: readonly ["update", "delete"];
|
|
1017
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
1018
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
1019
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
1020
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
1021
|
-
}>[key];
|
|
1022
|
-
connector: "OR" | "AND";
|
|
1023
|
-
} | undefined; } : never, connector?: "OR" | "AND"): import("better-auth/plugins").AuthorizeResponse;
|
|
1024
|
-
statements: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
1025
|
-
readonly organization: readonly ["update", "delete"];
|
|
1026
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
1027
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
1028
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
1029
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
1030
|
-
}>;
|
|
1031
|
-
};
|
|
1032
|
-
owner: {
|
|
1033
|
-
authorize<K extends "organization" | "team" | "member" | "ac" | "invitation">(request: K extends infer T extends keyof import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
1034
|
-
readonly organization: readonly ["update", "delete"];
|
|
1035
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
1036
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
1037
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
1038
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
1039
|
-
}> ? { [key in T]?: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
1040
|
-
readonly organization: readonly ["update", "delete"];
|
|
1041
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
1042
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
1043
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
1044
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
1045
|
-
}>[key] | {
|
|
1046
|
-
actions: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
1047
|
-
readonly organization: readonly ["update", "delete"];
|
|
1048
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
1049
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
1050
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
1051
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
1052
|
-
}>[key];
|
|
1053
|
-
connector: "OR" | "AND";
|
|
1054
|
-
} | undefined; } : never, connector?: "OR" | "AND"): import("better-auth/plugins").AuthorizeResponse;
|
|
1055
|
-
statements: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
1056
|
-
readonly organization: readonly ["update", "delete"];
|
|
1057
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
1058
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
1059
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
1060
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
1061
|
-
}>;
|
|
1062
|
-
};
|
|
1063
|
-
member: {
|
|
1064
|
-
authorize<K extends "organization" | "team" | "member" | "ac" | "invitation">(request: K extends infer T extends keyof import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
1065
|
-
readonly organization: readonly ["update", "delete"];
|
|
1066
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
1067
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
1068
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
1069
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
1070
|
-
}> ? { [key in T]?: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
1071
|
-
readonly organization: readonly ["update", "delete"];
|
|
1072
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
1073
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
1074
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
1075
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
1076
|
-
}>[key] | {
|
|
1077
|
-
actions: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
1078
|
-
readonly organization: readonly ["update", "delete"];
|
|
1079
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
1080
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
1081
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
1082
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
1083
|
-
}>[key];
|
|
1084
|
-
connector: "OR" | "AND";
|
|
1085
|
-
} | undefined; } : never, connector?: "OR" | "AND"): import("better-auth/plugins").AuthorizeResponse;
|
|
1086
|
-
statements: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
1087
|
-
readonly organization: readonly ["update", "delete"];
|
|
1088
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
1089
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
1090
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
1091
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
1092
|
-
}>;
|
|
1093
|
-
};
|
|
1094
|
-
} extends Record<string, Role> ? Record<string, Role> & (TRoles | {
|
|
1095
|
-
admin: {
|
|
1096
|
-
authorize<K extends "organization" | "team" | "member" | "ac" | "invitation">(request: K extends infer T extends keyof import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
1097
|
-
readonly organization: readonly ["update", "delete"];
|
|
1098
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
1099
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
1100
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
1101
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
1102
|
-
}> ? { [key in T]?: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
1103
|
-
readonly organization: readonly ["update", "delete"];
|
|
1104
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
1105
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
1106
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
1107
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
1108
|
-
}>[key] | {
|
|
1109
|
-
actions: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
1110
|
-
readonly organization: readonly ["update", "delete"];
|
|
1111
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
1112
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
1113
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
1114
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
1115
|
-
}>[key];
|
|
1116
|
-
connector: "OR" | "AND";
|
|
1117
|
-
} | undefined; } : never, connector?: "OR" | "AND"): import("better-auth/plugins").AuthorizeResponse;
|
|
1118
|
-
statements: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
1119
|
-
readonly organization: readonly ["update", "delete"];
|
|
1120
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
1121
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
1122
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
1123
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
1124
|
-
}>;
|
|
1125
|
-
};
|
|
1126
|
-
owner: {
|
|
1127
|
-
authorize<K extends "organization" | "team" | "member" | "ac" | "invitation">(request: K extends infer T extends keyof import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
1128
|
-
readonly organization: readonly ["update", "delete"];
|
|
1129
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
1130
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
1131
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
1132
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
1133
|
-
}> ? { [key in T]?: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
1134
|
-
readonly organization: readonly ["update", "delete"];
|
|
1135
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
1136
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
1137
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
1138
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
1139
|
-
}>[key] | {
|
|
1140
|
-
actions: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
1141
|
-
readonly organization: readonly ["update", "delete"];
|
|
1142
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
1143
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
1144
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
1145
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
1146
|
-
}>[key];
|
|
1147
|
-
connector: "OR" | "AND";
|
|
1148
|
-
} | undefined; } : never, connector?: "OR" | "AND"): import("better-auth/plugins").AuthorizeResponse;
|
|
1149
|
-
statements: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
1150
|
-
readonly organization: readonly ["update", "delete"];
|
|
1151
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
1152
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
1153
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
1154
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
1155
|
-
}>;
|
|
1156
|
-
};
|
|
1157
|
-
member: {
|
|
1158
|
-
authorize<K extends "organization" | "team" | "member" | "ac" | "invitation">(request: K extends infer T extends keyof import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
1159
|
-
readonly organization: readonly ["update", "delete"];
|
|
1160
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
1161
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
1162
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
1163
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
1164
|
-
}> ? { [key in T]?: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
1165
|
-
readonly organization: readonly ["update", "delete"];
|
|
1166
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
1167
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
1168
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
1169
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
1170
|
-
}>[key] | {
|
|
1171
|
-
actions: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
1172
|
-
readonly organization: readonly ["update", "delete"];
|
|
1173
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
1174
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
1175
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
1176
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
1177
|
-
}>[key];
|
|
1178
|
-
connector: "OR" | "AND";
|
|
1179
|
-
} | undefined; } : never, connector?: "OR" | "AND"): import("better-auth/plugins").AuthorizeResponse;
|
|
1180
|
-
statements: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
1181
|
-
readonly organization: readonly ["update", "delete"];
|
|
1182
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
1183
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
1184
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
1185
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
1186
|
-
}>;
|
|
1187
|
-
};
|
|
1188
|
-
}) : {
|
|
1189
|
-
admin: Role;
|
|
1190
|
-
user: Role;
|
|
1191
|
-
}))[] | undefined;
|
|
1192
|
-
data?: Record<string, any> | undefined;
|
|
1193
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
|
|
1194
|
-
email: string;
|
|
1195
|
-
password?: string | undefined;
|
|
1196
|
-
name: string;
|
|
1197
|
-
role?: keyof (TRoles | {
|
|
1198
|
-
admin: {
|
|
1199
|
-
authorize<K extends "organization" | "team" | "member" | "ac" | "invitation">(request: K extends infer T extends keyof import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
1200
|
-
readonly organization: readonly ["update", "delete"];
|
|
1201
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
1202
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
1203
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
1204
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
1205
|
-
}> ? { [key in T]?: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
1206
|
-
readonly organization: readonly ["update", "delete"];
|
|
1207
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
1208
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
1209
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
1210
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
1211
|
-
}>[key] | {
|
|
1212
|
-
actions: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
1213
|
-
readonly organization: readonly ["update", "delete"];
|
|
1214
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
1215
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
1216
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
1217
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
1218
|
-
}>[key];
|
|
1219
|
-
connector: "OR" | "AND";
|
|
1220
|
-
} | undefined; } : never, connector?: "OR" | "AND"): import("better-auth/plugins").AuthorizeResponse;
|
|
1221
|
-
statements: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
1222
|
-
readonly organization: readonly ["update", "delete"];
|
|
1223
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
1224
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
1225
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
1226
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
1227
|
-
}>;
|
|
1228
|
-
};
|
|
1229
|
-
owner: {
|
|
1230
|
-
authorize<K extends "organization" | "team" | "member" | "ac" | "invitation">(request: K extends infer T extends keyof import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
1231
|
-
readonly organization: readonly ["update", "delete"];
|
|
1232
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
1233
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
1234
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
1235
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
1236
|
-
}> ? { [key in T]?: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
1237
|
-
readonly organization: readonly ["update", "delete"];
|
|
1238
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
1239
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
1240
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
1241
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
1242
|
-
}>[key] | {
|
|
1243
|
-
actions: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
1244
|
-
readonly organization: readonly ["update", "delete"];
|
|
1245
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
1246
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
1247
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
1248
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
1249
|
-
}>[key];
|
|
1250
|
-
connector: "OR" | "AND";
|
|
1251
|
-
} | undefined; } : never, connector?: "OR" | "AND"): import("better-auth/plugins").AuthorizeResponse;
|
|
1252
|
-
statements: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
1253
|
-
readonly organization: readonly ["update", "delete"];
|
|
1254
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
1255
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
1256
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
1257
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
1258
|
-
}>;
|
|
1259
|
-
};
|
|
1260
|
-
member: {
|
|
1261
|
-
authorize<K extends "organization" | "team" | "member" | "ac" | "invitation">(request: K extends infer T extends keyof import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
1262
|
-
readonly organization: readonly ["update", "delete"];
|
|
1263
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
1264
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
1265
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
1266
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
1267
|
-
}> ? { [key in T]?: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
1268
|
-
readonly organization: readonly ["update", "delete"];
|
|
1269
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
1270
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
1271
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
1272
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
1273
|
-
}>[key] | {
|
|
1274
|
-
actions: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
1275
|
-
readonly organization: readonly ["update", "delete"];
|
|
1276
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
1277
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
1278
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
1279
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
1280
|
-
}>[key];
|
|
1281
|
-
connector: "OR" | "AND";
|
|
1282
|
-
} | undefined; } : never, connector?: "OR" | "AND"): import("better-auth/plugins").AuthorizeResponse;
|
|
1283
|
-
statements: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
1284
|
-
readonly organization: readonly ["update", "delete"];
|
|
1285
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
1286
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
1287
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
1288
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
1289
|
-
}>;
|
|
1290
|
-
};
|
|
1291
|
-
} extends Record<string, Role> ? Record<string, Role> & (TRoles | {
|
|
1292
|
-
admin: {
|
|
1293
|
-
authorize<K extends "organization" | "team" | "member" | "ac" | "invitation">(request: K extends infer T extends keyof import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
1294
|
-
readonly organization: readonly ["update", "delete"];
|
|
1295
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
1296
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
1297
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
1298
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
1299
|
-
}> ? { [key in T]?: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
1300
|
-
readonly organization: readonly ["update", "delete"];
|
|
1301
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
1302
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
1303
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
1304
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
1305
|
-
}>[key] | {
|
|
1306
|
-
actions: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
1307
|
-
readonly organization: readonly ["update", "delete"];
|
|
1308
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
1309
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
1310
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
1311
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
1312
|
-
}>[key];
|
|
1313
|
-
connector: "OR" | "AND";
|
|
1314
|
-
} | undefined; } : never, connector?: "OR" | "AND"): import("better-auth/plugins").AuthorizeResponse;
|
|
1315
|
-
statements: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
1316
|
-
readonly organization: readonly ["update", "delete"];
|
|
1317
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
1318
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
1319
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
1320
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
1321
|
-
}>;
|
|
1322
|
-
};
|
|
1323
|
-
owner: {
|
|
1324
|
-
authorize<K extends "organization" | "team" | "member" | "ac" | "invitation">(request: K extends infer T extends keyof import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
1325
|
-
readonly organization: readonly ["update", "delete"];
|
|
1326
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
1327
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
1328
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
1329
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
1330
|
-
}> ? { [key in T]?: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
1331
|
-
readonly organization: readonly ["update", "delete"];
|
|
1332
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
1333
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
1334
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
1335
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
1336
|
-
}>[key] | {
|
|
1337
|
-
actions: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
1338
|
-
readonly organization: readonly ["update", "delete"];
|
|
1339
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
1340
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
1341
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
1342
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
1343
|
-
}>[key];
|
|
1344
|
-
connector: "OR" | "AND";
|
|
1345
|
-
} | undefined; } : never, connector?: "OR" | "AND"): import("better-auth/plugins").AuthorizeResponse;
|
|
1346
|
-
statements: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
1347
|
-
readonly organization: readonly ["update", "delete"];
|
|
1348
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
1349
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
1350
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
1351
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
1352
|
-
}>;
|
|
1353
|
-
};
|
|
1354
|
-
member: {
|
|
1355
|
-
authorize<K extends "organization" | "team" | "member" | "ac" | "invitation">(request: K extends infer T extends keyof import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
1356
|
-
readonly organization: readonly ["update", "delete"];
|
|
1357
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
1358
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
1359
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
1360
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
1361
|
-
}> ? { [key in T]?: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
1362
|
-
readonly organization: readonly ["update", "delete"];
|
|
1363
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
1364
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
1365
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
1366
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
1367
|
-
}>[key] | {
|
|
1368
|
-
actions: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
1369
|
-
readonly organization: readonly ["update", "delete"];
|
|
1370
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
1371
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
1372
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
1373
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
1374
|
-
}>[key];
|
|
1375
|
-
connector: "OR" | "AND";
|
|
1376
|
-
} | undefined; } : never, connector?: "OR" | "AND"): import("better-auth/plugins").AuthorizeResponse;
|
|
1377
|
-
statements: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
1378
|
-
readonly organization: readonly ["update", "delete"];
|
|
1379
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
1380
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
1381
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
1382
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
1383
|
-
}>;
|
|
1384
|
-
};
|
|
1385
|
-
}) : {
|
|
1386
|
-
admin: Role;
|
|
1387
|
-
user: Role;
|
|
1388
|
-
}) | (keyof (TRoles | {
|
|
1389
|
-
admin: {
|
|
1390
|
-
authorize<K extends "organization" | "team" | "member" | "ac" | "invitation">(request: K extends infer T extends keyof import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
1391
|
-
readonly organization: readonly ["update", "delete"];
|
|
1392
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
1393
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
1394
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
1395
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
1396
|
-
}> ? { [key in T]?: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
1397
|
-
readonly organization: readonly ["update", "delete"];
|
|
1398
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
1399
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
1400
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
1401
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
1402
|
-
}>[key] | {
|
|
1403
|
-
actions: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
1404
|
-
readonly organization: readonly ["update", "delete"];
|
|
1405
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
1406
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
1407
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
1408
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
1409
|
-
}>[key];
|
|
1410
|
-
connector: "OR" | "AND";
|
|
1411
|
-
} | undefined; } : never, connector?: "OR" | "AND"): import("better-auth/plugins").AuthorizeResponse;
|
|
1412
|
-
statements: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
1413
|
-
readonly organization: readonly ["update", "delete"];
|
|
1414
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
1415
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
1416
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
1417
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
1418
|
-
}>;
|
|
1419
|
-
};
|
|
1420
|
-
owner: {
|
|
1421
|
-
authorize<K extends "organization" | "team" | "member" | "ac" | "invitation">(request: K extends infer T extends keyof import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
1422
|
-
readonly organization: readonly ["update", "delete"];
|
|
1423
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
1424
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
1425
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
1426
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
1427
|
-
}> ? { [key in T]?: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
1428
|
-
readonly organization: readonly ["update", "delete"];
|
|
1429
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
1430
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
1431
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
1432
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
1433
|
-
}>[key] | {
|
|
1434
|
-
actions: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
1435
|
-
readonly organization: readonly ["update", "delete"];
|
|
1436
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
1437
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
1438
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
1439
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
1440
|
-
}>[key];
|
|
1441
|
-
connector: "OR" | "AND";
|
|
1442
|
-
} | undefined; } : never, connector?: "OR" | "AND"): import("better-auth/plugins").AuthorizeResponse;
|
|
1443
|
-
statements: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
1444
|
-
readonly organization: readonly ["update", "delete"];
|
|
1445
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
1446
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
1447
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
1448
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
1449
|
-
}>;
|
|
1450
|
-
};
|
|
1451
|
-
member: {
|
|
1452
|
-
authorize<K extends "organization" | "team" | "member" | "ac" | "invitation">(request: K extends infer T extends keyof import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
1453
|
-
readonly organization: readonly ["update", "delete"];
|
|
1454
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
1455
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
1456
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
1457
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
1458
|
-
}> ? { [key in T]?: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
1459
|
-
readonly organization: readonly ["update", "delete"];
|
|
1460
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
1461
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
1462
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
1463
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
1464
|
-
}>[key] | {
|
|
1465
|
-
actions: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
1466
|
-
readonly organization: readonly ["update", "delete"];
|
|
1467
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
1468
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
1469
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
1470
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
1471
|
-
}>[key];
|
|
1472
|
-
connector: "OR" | "AND";
|
|
1473
|
-
} | undefined; } : never, connector?: "OR" | "AND"): import("better-auth/plugins").AuthorizeResponse;
|
|
1474
|
-
statements: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
1475
|
-
readonly organization: readonly ["update", "delete"];
|
|
1476
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
1477
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
1478
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
1479
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
1480
|
-
}>;
|
|
1481
|
-
};
|
|
1482
|
-
} extends Record<string, Role> ? Record<string, Role> & (TRoles | {
|
|
1483
|
-
admin: {
|
|
1484
|
-
authorize<K extends "organization" | "team" | "member" | "ac" | "invitation">(request: K extends infer T extends keyof import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
1485
|
-
readonly organization: readonly ["update", "delete"];
|
|
1486
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
1487
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
1488
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
1489
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
1490
|
-
}> ? { [key in T]?: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
1491
|
-
readonly organization: readonly ["update", "delete"];
|
|
1492
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
1493
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
1494
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
1495
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
1496
|
-
}>[key] | {
|
|
1497
|
-
actions: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
1498
|
-
readonly organization: readonly ["update", "delete"];
|
|
1499
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
1500
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
1501
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
1502
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
1503
|
-
}>[key];
|
|
1504
|
-
connector: "OR" | "AND";
|
|
1505
|
-
} | undefined; } : never, connector?: "OR" | "AND"): import("better-auth/plugins").AuthorizeResponse;
|
|
1506
|
-
statements: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
1507
|
-
readonly organization: readonly ["update", "delete"];
|
|
1508
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
1509
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
1510
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
1511
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
1512
|
-
}>;
|
|
1513
|
-
};
|
|
1514
|
-
owner: {
|
|
1515
|
-
authorize<K extends "organization" | "team" | "member" | "ac" | "invitation">(request: K extends infer T extends keyof import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
1516
|
-
readonly organization: readonly ["update", "delete"];
|
|
1517
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
1518
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
1519
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
1520
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
1521
|
-
}> ? { [key in T]?: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
1522
|
-
readonly organization: readonly ["update", "delete"];
|
|
1523
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
1524
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
1525
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
1526
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
1527
|
-
}>[key] | {
|
|
1528
|
-
actions: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
1529
|
-
readonly organization: readonly ["update", "delete"];
|
|
1530
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
1531
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
1532
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
1533
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
1534
|
-
}>[key];
|
|
1535
|
-
connector: "OR" | "AND";
|
|
1536
|
-
} | undefined; } : never, connector?: "OR" | "AND"): import("better-auth/plugins").AuthorizeResponse;
|
|
1537
|
-
statements: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
1538
|
-
readonly organization: readonly ["update", "delete"];
|
|
1539
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
1540
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
1541
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
1542
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
1543
|
-
}>;
|
|
1544
|
-
};
|
|
1545
|
-
member: {
|
|
1546
|
-
authorize<K extends "organization" | "team" | "member" | "ac" | "invitation">(request: K extends infer T extends keyof import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
1547
|
-
readonly organization: readonly ["update", "delete"];
|
|
1548
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
1549
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
1550
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
1551
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
1552
|
-
}> ? { [key in T]?: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
1553
|
-
readonly organization: readonly ["update", "delete"];
|
|
1554
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
1555
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
1556
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
1557
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
1558
|
-
}>[key] | {
|
|
1559
|
-
actions: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
1560
|
-
readonly organization: readonly ["update", "delete"];
|
|
1561
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
1562
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
1563
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
1564
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
1565
|
-
}>[key];
|
|
1566
|
-
connector: "OR" | "AND";
|
|
1567
|
-
} | undefined; } : never, connector?: "OR" | "AND"): import("better-auth/plugins").AuthorizeResponse;
|
|
1568
|
-
statements: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
1569
|
-
readonly organization: readonly ["update", "delete"];
|
|
1570
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
1571
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
1572
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
1573
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
1574
|
-
}>;
|
|
1575
|
-
};
|
|
1576
|
-
}) : {
|
|
1577
|
-
admin: Role;
|
|
1578
|
-
user: Role;
|
|
1579
|
-
}))[] | undefined;
|
|
1580
|
-
data?: Record<string, any> | undefined;
|
|
1581
|
-
} & {
|
|
1582
|
-
fetchOptions?: FetchOptions | undefined;
|
|
1583
|
-
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
1584
|
-
user: import("better-auth/plugins").UserWithRole;
|
|
1585
|
-
}, {
|
|
1586
|
-
code?: string | undefined;
|
|
1587
|
-
message?: string | undefined;
|
|
1588
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1589
|
-
};
|
|
1590
|
-
} & {
|
|
1591
|
-
admin: {
|
|
1592
|
-
updateUser: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
|
|
1593
|
-
userId: unknown;
|
|
1594
|
-
data: Record<any, any>;
|
|
1595
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
|
|
1596
|
-
userId: unknown;
|
|
1597
|
-
data: Record<any, any>;
|
|
1598
|
-
} & {
|
|
1599
|
-
fetchOptions?: FetchOptions | undefined;
|
|
1600
|
-
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<import("better-auth/plugins").UserWithRole, {
|
|
1601
|
-
code?: string | undefined;
|
|
1602
|
-
message?: string | undefined;
|
|
1603
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1604
|
-
};
|
|
1605
|
-
} & {
|
|
1606
|
-
admin: {
|
|
1607
|
-
listUsers: <FetchOptions extends import("better-auth").ClientFetchOption<never, Partial<{
|
|
1608
|
-
searchValue?: string | undefined;
|
|
1609
|
-
searchField?: "email" | "name" | undefined;
|
|
1610
|
-
searchOperator?: "contains" | "starts_with" | "ends_with" | undefined;
|
|
1611
|
-
limit?: string | number | undefined;
|
|
1612
|
-
offset?: string | number | undefined;
|
|
1613
|
-
sortBy?: string | undefined;
|
|
1614
|
-
sortDirection?: "desc" | "asc" | undefined;
|
|
1615
|
-
filterField?: string | undefined;
|
|
1616
|
-
filterValue?: string | number | boolean | undefined;
|
|
1617
|
-
filterOperator?: "contains" | "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | undefined;
|
|
1618
|
-
}> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
|
|
1619
|
-
query: {
|
|
1620
|
-
searchValue?: string | undefined;
|
|
1621
|
-
searchField?: "email" | "name" | undefined;
|
|
1622
|
-
searchOperator?: "contains" | "starts_with" | "ends_with" | undefined;
|
|
1623
|
-
limit?: string | number | undefined;
|
|
1624
|
-
offset?: string | number | undefined;
|
|
1625
|
-
sortBy?: string | undefined;
|
|
1626
|
-
sortDirection?: "desc" | "asc" | undefined;
|
|
1627
|
-
filterField?: string | undefined;
|
|
1628
|
-
filterValue?: string | number | boolean | undefined;
|
|
1629
|
-
filterOperator?: "contains" | "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | undefined;
|
|
1630
|
-
};
|
|
1631
|
-
fetchOptions?: FetchOptions | undefined;
|
|
1632
|
-
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<NonNullable<{
|
|
1633
|
-
users: import("better-auth/plugins").UserWithRole[];
|
|
1634
|
-
total: number;
|
|
1635
|
-
limit: number | undefined;
|
|
1636
|
-
offset: number | undefined;
|
|
1637
|
-
} | {
|
|
1638
|
-
users: never[];
|
|
1639
|
-
total: number;
|
|
1640
|
-
}>, {
|
|
1641
|
-
code?: string | undefined;
|
|
1642
|
-
message?: string | undefined;
|
|
1643
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1644
|
-
};
|
|
1645
|
-
} & {
|
|
1646
|
-
admin: {
|
|
1647
|
-
listUserSessions: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
|
|
1648
|
-
userId: unknown;
|
|
1649
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
|
|
1650
|
-
userId: unknown;
|
|
1651
|
-
} & {
|
|
1652
|
-
fetchOptions?: FetchOptions | undefined;
|
|
1653
|
-
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
1654
|
-
sessions: import("better-auth/plugins").SessionWithImpersonatedBy[];
|
|
1655
|
-
}, {
|
|
1656
|
-
code?: string | undefined;
|
|
1657
|
-
message?: string | undefined;
|
|
1658
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1659
|
-
};
|
|
1660
|
-
} & {
|
|
1661
|
-
admin: {
|
|
1662
|
-
unbanUser: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
|
|
1663
|
-
userId: unknown;
|
|
1664
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
|
|
1665
|
-
userId: unknown;
|
|
1666
|
-
} & {
|
|
1667
|
-
fetchOptions?: FetchOptions | undefined;
|
|
1668
|
-
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
1669
|
-
user: import("better-auth/plugins").UserWithRole;
|
|
1670
|
-
}, {
|
|
1671
|
-
code?: string | undefined;
|
|
1672
|
-
message?: string | undefined;
|
|
1673
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1674
|
-
};
|
|
1675
|
-
} & {
|
|
1676
|
-
admin: {
|
|
1677
|
-
banUser: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
|
|
1678
|
-
userId: unknown;
|
|
1679
|
-
banReason?: string | undefined;
|
|
1680
|
-
banExpiresIn?: number | undefined;
|
|
1681
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
|
|
1682
|
-
userId: unknown;
|
|
1683
|
-
banReason?: string | undefined;
|
|
1684
|
-
banExpiresIn?: number | undefined;
|
|
1685
|
-
} & {
|
|
1686
|
-
fetchOptions?: FetchOptions | undefined;
|
|
1687
|
-
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
1688
|
-
user: import("better-auth/plugins").UserWithRole;
|
|
1689
|
-
}, {
|
|
1690
|
-
code?: string | undefined;
|
|
1691
|
-
message?: string | undefined;
|
|
1692
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1693
|
-
};
|
|
1694
|
-
} & {
|
|
1695
|
-
admin: {
|
|
1696
|
-
impersonateUser: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
|
|
1697
|
-
userId: unknown;
|
|
1698
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
|
|
1699
|
-
userId: unknown;
|
|
1700
|
-
} & {
|
|
1701
|
-
fetchOptions?: FetchOptions | undefined;
|
|
1702
|
-
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
1703
|
-
session: {
|
|
1704
|
-
id: string;
|
|
1705
|
-
createdAt: Date;
|
|
1706
|
-
updatedAt: Date;
|
|
1707
|
-
userId: string;
|
|
1708
|
-
expiresAt: Date;
|
|
1709
|
-
token: string;
|
|
1710
|
-
ipAddress?: string | null | undefined;
|
|
1711
|
-
userAgent?: string | null | undefined;
|
|
1712
|
-
};
|
|
1713
|
-
user: import("better-auth/plugins").UserWithRole;
|
|
1714
|
-
}, {
|
|
1715
|
-
code?: string | undefined;
|
|
1716
|
-
message?: string | undefined;
|
|
1717
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1718
|
-
};
|
|
1719
|
-
} & {
|
|
1720
|
-
admin: {
|
|
1721
|
-
stopImpersonating: <FetchOptions extends import("better-auth").ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import("better-auth").Prettify<{
|
|
1722
|
-
query?: Record<string, any> | undefined;
|
|
1723
|
-
fetchOptions?: FetchOptions | undefined;
|
|
1724
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
1725
|
-
session: {
|
|
1726
|
-
id: string;
|
|
1727
|
-
createdAt: Date;
|
|
1728
|
-
updatedAt: Date;
|
|
1729
|
-
userId: string;
|
|
1730
|
-
expiresAt: Date;
|
|
1731
|
-
token: string;
|
|
1732
|
-
ipAddress?: string | null | undefined;
|
|
1733
|
-
userAgent?: string | null | undefined;
|
|
1734
|
-
} & Record<string, any>;
|
|
1735
|
-
user: {
|
|
1736
|
-
id: string;
|
|
1737
|
-
createdAt: Date;
|
|
1738
|
-
updatedAt: Date;
|
|
1739
|
-
email: string;
|
|
1740
|
-
emailVerified: boolean;
|
|
1741
|
-
name: string;
|
|
1742
|
-
image?: string | null | undefined;
|
|
1743
|
-
} & Record<string, any>;
|
|
1744
|
-
}, {
|
|
1745
|
-
code?: string | undefined;
|
|
1746
|
-
message?: string | undefined;
|
|
1747
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1748
|
-
};
|
|
1749
|
-
} & {
|
|
1750
|
-
admin: {
|
|
1751
|
-
revokeUserSession: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
|
|
1752
|
-
sessionToken: string;
|
|
1753
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
|
|
1754
|
-
sessionToken: string;
|
|
1755
|
-
} & {
|
|
1756
|
-
fetchOptions?: FetchOptions | undefined;
|
|
1757
|
-
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
1758
|
-
success: boolean;
|
|
1759
|
-
}, {
|
|
1760
|
-
code?: string | undefined;
|
|
1761
|
-
message?: string | undefined;
|
|
1762
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1763
|
-
};
|
|
1764
|
-
} & {
|
|
1765
|
-
admin: {
|
|
1766
|
-
revokeUserSessions: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
|
|
1767
|
-
userId: unknown;
|
|
1768
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
|
|
1769
|
-
userId: unknown;
|
|
1770
|
-
} & {
|
|
1771
|
-
fetchOptions?: FetchOptions | undefined;
|
|
1772
|
-
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
1773
|
-
success: boolean;
|
|
1774
|
-
}, {
|
|
1775
|
-
code?: string | undefined;
|
|
1776
|
-
message?: string | undefined;
|
|
1777
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1778
|
-
};
|
|
1779
|
-
} & {
|
|
1780
|
-
admin: {
|
|
1781
|
-
removeUser: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
|
|
1782
|
-
userId: unknown;
|
|
1783
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
|
|
1784
|
-
userId: unknown;
|
|
1785
|
-
} & {
|
|
1786
|
-
fetchOptions?: FetchOptions | undefined;
|
|
1787
|
-
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
1788
|
-
success: boolean;
|
|
1789
|
-
}, {
|
|
1790
|
-
code?: string | undefined;
|
|
1791
|
-
message?: string | undefined;
|
|
1792
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1793
|
-
};
|
|
1794
|
-
} & {
|
|
1795
|
-
admin: {
|
|
1796
|
-
setUserPassword: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
|
|
1797
|
-
newPassword: string;
|
|
1798
|
-
userId: unknown;
|
|
1799
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
|
|
1800
|
-
newPassword: string;
|
|
1801
|
-
userId: unknown;
|
|
1802
|
-
} & {
|
|
1803
|
-
fetchOptions?: FetchOptions | undefined;
|
|
1804
|
-
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
1805
|
-
status: boolean;
|
|
1806
|
-
}, {
|
|
1807
|
-
code?: string | undefined;
|
|
1808
|
-
message?: string | undefined;
|
|
1809
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1810
|
-
};
|
|
1811
|
-
} & {
|
|
1812
|
-
admin: {
|
|
1813
|
-
hasPermission: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<({
|
|
1814
|
-
permission: {
|
|
1815
|
-
readonly user?: ("list" | "create" | "update" | "set-role" | "ban" | "impersonate" | "delete" | "set-password" | "get")[] | undefined;
|
|
1816
|
-
readonly session?: ("list" | "delete" | "revoke")[] | undefined;
|
|
1817
|
-
};
|
|
1818
|
-
permissions?: never | undefined;
|
|
1819
|
-
} | {
|
|
1820
|
-
permissions: {
|
|
1821
|
-
readonly user?: ("list" | "create" | "update" | "set-role" | "ban" | "impersonate" | "delete" | "set-password" | "get")[] | undefined;
|
|
1822
|
-
readonly session?: ("list" | "delete" | "revoke")[] | undefined;
|
|
1823
|
-
};
|
|
1824
|
-
permission?: never | undefined;
|
|
1825
|
-
}) & {
|
|
1826
|
-
userId?: string | undefined;
|
|
1827
|
-
role?: keyof (TRoles | {
|
|
1828
|
-
admin: {
|
|
1829
|
-
authorize<K extends "organization" | "team" | "member" | "ac" | "invitation">(request: K extends infer T extends keyof import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
1830
|
-
readonly organization: readonly ["update", "delete"];
|
|
1831
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
1832
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
1833
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
1834
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
1835
|
-
}> ? { [key in T]?: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
1836
|
-
readonly organization: readonly ["update", "delete"];
|
|
1837
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
1838
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
1839
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
1840
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
1841
|
-
}>[key] | {
|
|
1842
|
-
actions: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
1843
|
-
readonly organization: readonly ["update", "delete"];
|
|
1844
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
1845
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
1846
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
1847
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
1848
|
-
}>[key];
|
|
1849
|
-
connector: "OR" | "AND";
|
|
1850
|
-
} | undefined; } : never, connector?: "OR" | "AND"): import("better-auth/plugins").AuthorizeResponse;
|
|
1851
|
-
statements: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
1852
|
-
readonly organization: readonly ["update", "delete"];
|
|
1853
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
1854
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
1855
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
1856
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
1857
|
-
}>;
|
|
1858
|
-
};
|
|
1859
|
-
owner: {
|
|
1860
|
-
authorize<K extends "organization" | "team" | "member" | "ac" | "invitation">(request: K extends infer T extends keyof import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
1861
|
-
readonly organization: readonly ["update", "delete"];
|
|
1862
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
1863
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
1864
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
1865
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
1866
|
-
}> ? { [key in T]?: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
1867
|
-
readonly organization: readonly ["update", "delete"];
|
|
1868
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
1869
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
1870
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
1871
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
1872
|
-
}>[key] | {
|
|
1873
|
-
actions: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
1874
|
-
readonly organization: readonly ["update", "delete"];
|
|
1875
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
1876
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
1877
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
1878
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
1879
|
-
}>[key];
|
|
1880
|
-
connector: "OR" | "AND";
|
|
1881
|
-
} | undefined; } : never, connector?: "OR" | "AND"): import("better-auth/plugins").AuthorizeResponse;
|
|
1882
|
-
statements: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
1883
|
-
readonly organization: readonly ["update", "delete"];
|
|
1884
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
1885
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
1886
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
1887
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
1888
|
-
}>;
|
|
1889
|
-
};
|
|
1890
|
-
member: {
|
|
1891
|
-
authorize<K extends "organization" | "team" | "member" | "ac" | "invitation">(request: K extends infer T extends keyof import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
1892
|
-
readonly organization: readonly ["update", "delete"];
|
|
1893
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
1894
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
1895
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
1896
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
1897
|
-
}> ? { [key in T]?: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
1898
|
-
readonly organization: readonly ["update", "delete"];
|
|
1899
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
1900
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
1901
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
1902
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
1903
|
-
}>[key] | {
|
|
1904
|
-
actions: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
1905
|
-
readonly organization: readonly ["update", "delete"];
|
|
1906
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
1907
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
1908
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
1909
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
1910
|
-
}>[key];
|
|
1911
|
-
connector: "OR" | "AND";
|
|
1912
|
-
} | undefined; } : never, connector?: "OR" | "AND"): import("better-auth/plugins").AuthorizeResponse;
|
|
1913
|
-
statements: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
1914
|
-
readonly organization: readonly ["update", "delete"];
|
|
1915
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
1916
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
1917
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
1918
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
1919
|
-
}>;
|
|
1920
|
-
};
|
|
1921
|
-
} extends Record<string, Role> ? Record<string, Role> & (TRoles | {
|
|
1922
|
-
admin: {
|
|
1923
|
-
authorize<K extends "organization" | "team" | "member" | "ac" | "invitation">(request: K extends infer T extends keyof import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
1924
|
-
readonly organization: readonly ["update", "delete"];
|
|
1925
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
1926
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
1927
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
1928
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
1929
|
-
}> ? { [key in T]?: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
1930
|
-
readonly organization: readonly ["update", "delete"];
|
|
1931
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
1932
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
1933
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
1934
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
1935
|
-
}>[key] | {
|
|
1936
|
-
actions: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
1937
|
-
readonly organization: readonly ["update", "delete"];
|
|
1938
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
1939
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
1940
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
1941
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
1942
|
-
}>[key];
|
|
1943
|
-
connector: "OR" | "AND";
|
|
1944
|
-
} | undefined; } : never, connector?: "OR" | "AND"): import("better-auth/plugins").AuthorizeResponse;
|
|
1945
|
-
statements: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
1946
|
-
readonly organization: readonly ["update", "delete"];
|
|
1947
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
1948
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
1949
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
1950
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
1951
|
-
}>;
|
|
1952
|
-
};
|
|
1953
|
-
owner: {
|
|
1954
|
-
authorize<K extends "organization" | "team" | "member" | "ac" | "invitation">(request: K extends infer T extends keyof import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
1955
|
-
readonly organization: readonly ["update", "delete"];
|
|
1956
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
1957
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
1958
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
1959
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
1960
|
-
}> ? { [key in T]?: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
1961
|
-
readonly organization: readonly ["update", "delete"];
|
|
1962
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
1963
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
1964
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
1965
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
1966
|
-
}>[key] | {
|
|
1967
|
-
actions: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
1968
|
-
readonly organization: readonly ["update", "delete"];
|
|
1969
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
1970
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
1971
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
1972
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
1973
|
-
}>[key];
|
|
1974
|
-
connector: "OR" | "AND";
|
|
1975
|
-
} | undefined; } : never, connector?: "OR" | "AND"): import("better-auth/plugins").AuthorizeResponse;
|
|
1976
|
-
statements: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
1977
|
-
readonly organization: readonly ["update", "delete"];
|
|
1978
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
1979
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
1980
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
1981
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
1982
|
-
}>;
|
|
1983
|
-
};
|
|
1984
|
-
member: {
|
|
1985
|
-
authorize<K extends "organization" | "team" | "member" | "ac" | "invitation">(request: K extends infer T extends keyof import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
1986
|
-
readonly organization: readonly ["update", "delete"];
|
|
1987
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
1988
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
1989
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
1990
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
1991
|
-
}> ? { [key in T]?: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
1992
|
-
readonly organization: readonly ["update", "delete"];
|
|
1993
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
1994
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
1995
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
1996
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
1997
|
-
}>[key] | {
|
|
1998
|
-
actions: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
1999
|
-
readonly organization: readonly ["update", "delete"];
|
|
2000
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
2001
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
2002
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
2003
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
2004
|
-
}>[key];
|
|
2005
|
-
connector: "OR" | "AND";
|
|
2006
|
-
} | undefined; } : never, connector?: "OR" | "AND"): import("better-auth/plugins").AuthorizeResponse;
|
|
2007
|
-
statements: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
2008
|
-
readonly organization: readonly ["update", "delete"];
|
|
2009
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
2010
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
2011
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
2012
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
2013
|
-
}>;
|
|
2014
|
-
};
|
|
2015
|
-
}) : {
|
|
2016
|
-
admin: Role;
|
|
2017
|
-
user: Role;
|
|
2018
|
-
}) | undefined;
|
|
2019
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<(({
|
|
2020
|
-
permission: {
|
|
2021
|
-
readonly user?: ("list" | "create" | "update" | "set-role" | "ban" | "impersonate" | "delete" | "set-password" | "get")[] | undefined;
|
|
2022
|
-
readonly session?: ("list" | "delete" | "revoke")[] | undefined;
|
|
2023
|
-
};
|
|
2024
|
-
permissions?: never | undefined;
|
|
2025
|
-
} | {
|
|
2026
|
-
permissions: {
|
|
2027
|
-
readonly user?: ("list" | "create" | "update" | "set-role" | "ban" | "impersonate" | "delete" | "set-password" | "get")[] | undefined;
|
|
2028
|
-
readonly session?: ("list" | "delete" | "revoke")[] | undefined;
|
|
2029
|
-
};
|
|
2030
|
-
permission?: never | undefined;
|
|
2031
|
-
}) & {
|
|
2032
|
-
userId?: string | undefined;
|
|
2033
|
-
role?: keyof (TRoles | {
|
|
2034
|
-
admin: {
|
|
2035
|
-
authorize<K extends "organization" | "team" | "member" | "ac" | "invitation">(request: K extends infer T extends keyof import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
2036
|
-
readonly organization: readonly ["update", "delete"];
|
|
2037
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
2038
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
2039
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
2040
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
2041
|
-
}> ? { [key in T]?: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
2042
|
-
readonly organization: readonly ["update", "delete"];
|
|
2043
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
2044
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
2045
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
2046
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
2047
|
-
}>[key] | {
|
|
2048
|
-
actions: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
2049
|
-
readonly organization: readonly ["update", "delete"];
|
|
2050
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
2051
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
2052
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
2053
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
2054
|
-
}>[key];
|
|
2055
|
-
connector: "OR" | "AND";
|
|
2056
|
-
} | undefined; } : never, connector?: "OR" | "AND"): import("better-auth/plugins").AuthorizeResponse;
|
|
2057
|
-
statements: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
2058
|
-
readonly organization: readonly ["update", "delete"];
|
|
2059
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
2060
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
2061
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
2062
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
2063
|
-
}>;
|
|
2064
|
-
};
|
|
2065
|
-
owner: {
|
|
2066
|
-
authorize<K extends "organization" | "team" | "member" | "ac" | "invitation">(request: K extends infer T extends keyof import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
2067
|
-
readonly organization: readonly ["update", "delete"];
|
|
2068
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
2069
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
2070
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
2071
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
2072
|
-
}> ? { [key in T]?: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
2073
|
-
readonly organization: readonly ["update", "delete"];
|
|
2074
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
2075
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
2076
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
2077
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
2078
|
-
}>[key] | {
|
|
2079
|
-
actions: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
2080
|
-
readonly organization: readonly ["update", "delete"];
|
|
2081
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
2082
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
2083
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
2084
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
2085
|
-
}>[key];
|
|
2086
|
-
connector: "OR" | "AND";
|
|
2087
|
-
} | undefined; } : never, connector?: "OR" | "AND"): import("better-auth/plugins").AuthorizeResponse;
|
|
2088
|
-
statements: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
2089
|
-
readonly organization: readonly ["update", "delete"];
|
|
2090
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
2091
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
2092
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
2093
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
2094
|
-
}>;
|
|
2095
|
-
};
|
|
2096
|
-
member: {
|
|
2097
|
-
authorize<K extends "organization" | "team" | "member" | "ac" | "invitation">(request: K extends infer T extends keyof import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
2098
|
-
readonly organization: readonly ["update", "delete"];
|
|
2099
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
2100
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
2101
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
2102
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
2103
|
-
}> ? { [key in T]?: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
2104
|
-
readonly organization: readonly ["update", "delete"];
|
|
2105
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
2106
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
2107
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
2108
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
2109
|
-
}>[key] | {
|
|
2110
|
-
actions: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
2111
|
-
readonly organization: readonly ["update", "delete"];
|
|
2112
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
2113
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
2114
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
2115
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
2116
|
-
}>[key];
|
|
2117
|
-
connector: "OR" | "AND";
|
|
2118
|
-
} | undefined; } : never, connector?: "OR" | "AND"): import("better-auth/plugins").AuthorizeResponse;
|
|
2119
|
-
statements: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
2120
|
-
readonly organization: readonly ["update", "delete"];
|
|
2121
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
2122
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
2123
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
2124
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
2125
|
-
}>;
|
|
2126
|
-
};
|
|
2127
|
-
} extends Record<string, Role> ? Record<string, Role> & (TRoles | {
|
|
2128
|
-
admin: {
|
|
2129
|
-
authorize<K extends "organization" | "team" | "member" | "ac" | "invitation">(request: K extends infer T extends keyof import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
2130
|
-
readonly organization: readonly ["update", "delete"];
|
|
2131
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
2132
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
2133
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
2134
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
2135
|
-
}> ? { [key in T]?: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
2136
|
-
readonly organization: readonly ["update", "delete"];
|
|
2137
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
2138
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
2139
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
2140
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
2141
|
-
}>[key] | {
|
|
2142
|
-
actions: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
2143
|
-
readonly organization: readonly ["update", "delete"];
|
|
2144
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
2145
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
2146
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
2147
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
2148
|
-
}>[key];
|
|
2149
|
-
connector: "OR" | "AND";
|
|
2150
|
-
} | undefined; } : never, connector?: "OR" | "AND"): import("better-auth/plugins").AuthorizeResponse;
|
|
2151
|
-
statements: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
2152
|
-
readonly organization: readonly ["update", "delete"];
|
|
2153
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
2154
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
2155
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
2156
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
2157
|
-
}>;
|
|
2158
|
-
};
|
|
2159
|
-
owner: {
|
|
2160
|
-
authorize<K extends "organization" | "team" | "member" | "ac" | "invitation">(request: K extends infer T extends keyof import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
2161
|
-
readonly organization: readonly ["update", "delete"];
|
|
2162
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
2163
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
2164
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
2165
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
2166
|
-
}> ? { [key in T]?: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
2167
|
-
readonly organization: readonly ["update", "delete"];
|
|
2168
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
2169
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
2170
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
2171
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
2172
|
-
}>[key] | {
|
|
2173
|
-
actions: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
2174
|
-
readonly organization: readonly ["update", "delete"];
|
|
2175
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
2176
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
2177
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
2178
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
2179
|
-
}>[key];
|
|
2180
|
-
connector: "OR" | "AND";
|
|
2181
|
-
} | undefined; } : never, connector?: "OR" | "AND"): import("better-auth/plugins").AuthorizeResponse;
|
|
2182
|
-
statements: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
2183
|
-
readonly organization: readonly ["update", "delete"];
|
|
2184
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
2185
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
2186
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
2187
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
2188
|
-
}>;
|
|
2189
|
-
};
|
|
2190
|
-
member: {
|
|
2191
|
-
authorize<K extends "organization" | "team" | "member" | "ac" | "invitation">(request: K extends infer T extends keyof import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
2192
|
-
readonly organization: readonly ["update", "delete"];
|
|
2193
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
2194
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
2195
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
2196
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
2197
|
-
}> ? { [key in T]?: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
2198
|
-
readonly organization: readonly ["update", "delete"];
|
|
2199
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
2200
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
2201
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
2202
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
2203
|
-
}>[key] | {
|
|
2204
|
-
actions: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
2205
|
-
readonly organization: readonly ["update", "delete"];
|
|
2206
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
2207
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
2208
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
2209
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
2210
|
-
}>[key];
|
|
2211
|
-
connector: "OR" | "AND";
|
|
2212
|
-
} | undefined; } : never, connector?: "OR" | "AND"): import("better-auth/plugins").AuthorizeResponse;
|
|
2213
|
-
statements: import("better-auth/plugins").Subset<"organization" | "team" | "member" | "ac" | "invitation", {
|
|
2214
|
-
readonly organization: readonly ["update", "delete"];
|
|
2215
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
2216
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
2217
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
2218
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
2219
|
-
}>;
|
|
2220
|
-
};
|
|
2221
|
-
}) : {
|
|
2222
|
-
admin: Role;
|
|
2223
|
-
user: Role;
|
|
2224
|
-
}) | undefined;
|
|
2225
|
-
}) & {
|
|
2226
|
-
fetchOptions?: FetchOptions | undefined;
|
|
2227
|
-
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
2228
|
-
error: null;
|
|
2229
|
-
success: boolean;
|
|
2230
|
-
}, {
|
|
2231
|
-
code?: string | undefined;
|
|
2232
|
-
message?: string | undefined;
|
|
2233
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
2234
|
-
};
|
|
2235
|
-
} & {
|
|
2236
|
-
signIn: {
|
|
2237
|
-
username: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
|
|
2238
|
-
username: string;
|
|
2239
|
-
password: string;
|
|
2240
|
-
rememberMe?: boolean | undefined;
|
|
2241
|
-
callbackURL?: string | undefined;
|
|
2242
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
|
|
2243
|
-
username: string;
|
|
2244
|
-
password: string;
|
|
2245
|
-
rememberMe?: boolean | undefined;
|
|
2246
|
-
callbackURL?: string | undefined;
|
|
2247
|
-
} & {
|
|
2248
|
-
fetchOptions?: FetchOptions | undefined;
|
|
2249
|
-
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
2250
|
-
token: string;
|
|
2251
|
-
user: {
|
|
2252
|
-
id: string;
|
|
2253
|
-
createdAt: Date;
|
|
2254
|
-
updatedAt: Date;
|
|
2255
|
-
email: string;
|
|
2256
|
-
emailVerified: boolean;
|
|
2257
|
-
name: string;
|
|
2258
|
-
image?: string | null | undefined;
|
|
2259
|
-
} & {
|
|
2260
|
-
username: string;
|
|
2261
|
-
displayUsername: string;
|
|
2262
|
-
};
|
|
2263
|
-
}, {
|
|
2264
|
-
code?: string | undefined;
|
|
2265
|
-
message?: string | undefined;
|
|
2266
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
2267
|
-
};
|
|
2268
|
-
} & {
|
|
2269
|
-
isUsernameAvailable: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
|
|
2270
|
-
username: string;
|
|
2271
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
|
|
2272
|
-
username: string;
|
|
2273
|
-
} & {
|
|
2274
|
-
fetchOptions?: FetchOptions | undefined;
|
|
2275
|
-
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
2276
|
-
available: boolean;
|
|
2277
|
-
}, {
|
|
2278
|
-
code?: string | undefined;
|
|
2279
|
-
message?: string | undefined;
|
|
2280
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
2281
|
-
} & {
|
|
2282
|
-
signIn: {
|
|
2283
|
-
social: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
|
|
2284
|
-
provider: "line" | (string & {}) | "linear" | "zoom" | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "notion" | "kakao" | "naver" | "paybin" | "paypal" | "polar" | "vercel";
|
|
2285
|
-
callbackURL?: string | undefined;
|
|
2286
|
-
newUserCallbackURL?: string | undefined;
|
|
2287
|
-
errorCallbackURL?: string | undefined;
|
|
2288
|
-
disableRedirect?: boolean | undefined;
|
|
2289
|
-
idToken?: {
|
|
2290
|
-
token: string;
|
|
2291
|
-
nonce?: string | undefined;
|
|
2292
|
-
accessToken?: string | undefined;
|
|
2293
|
-
refreshToken?: string | undefined;
|
|
2294
|
-
expiresAt?: number | undefined;
|
|
2295
|
-
} | undefined;
|
|
2296
|
-
scopes?: string[] | undefined;
|
|
2297
|
-
requestSignUp?: boolean | undefined;
|
|
2298
|
-
loginHint?: string | undefined;
|
|
2299
|
-
additionalData?: Record<string, any> | undefined;
|
|
2300
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
|
|
2301
|
-
provider: "line" | (string & {}) | "linear" | "zoom" | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "notion" | "kakao" | "naver" | "paybin" | "paypal" | "polar" | "vercel";
|
|
2302
|
-
callbackURL?: string | undefined;
|
|
2303
|
-
newUserCallbackURL?: string | undefined;
|
|
2304
|
-
errorCallbackURL?: string | undefined;
|
|
2305
|
-
disableRedirect?: boolean | undefined;
|
|
2306
|
-
idToken?: {
|
|
2307
|
-
token: string;
|
|
2308
|
-
nonce?: string | undefined;
|
|
2309
|
-
accessToken?: string | undefined;
|
|
2310
|
-
refreshToken?: string | undefined;
|
|
2311
|
-
expiresAt?: number | undefined;
|
|
2312
|
-
} | undefined;
|
|
2313
|
-
scopes?: string[] | undefined;
|
|
2314
|
-
requestSignUp?: boolean | undefined;
|
|
2315
|
-
loginHint?: string | undefined;
|
|
2316
|
-
additionalData?: Record<string, any> | undefined;
|
|
2317
|
-
} & {
|
|
2318
|
-
fetchOptions?: FetchOptions | undefined;
|
|
2319
|
-
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<NonNullable<{
|
|
2320
|
-
redirect: boolean;
|
|
2321
|
-
url: string;
|
|
2322
|
-
} | {
|
|
2323
|
-
redirect: boolean;
|
|
2324
|
-
token: string;
|
|
2325
|
-
url: undefined;
|
|
2326
|
-
user: {
|
|
2327
|
-
id: string;
|
|
2328
|
-
createdAt: Date;
|
|
2329
|
-
updatedAt: Date;
|
|
2330
|
-
email: string;
|
|
2331
|
-
emailVerified: boolean;
|
|
2332
|
-
name: string;
|
|
2333
|
-
image?: string | null | undefined | undefined;
|
|
2334
|
-
};
|
|
2335
|
-
}>, {
|
|
2336
|
-
code?: string | undefined;
|
|
2337
|
-
message?: string | undefined;
|
|
2338
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
2339
|
-
};
|
|
2340
|
-
} & {
|
|
2341
|
-
signOut: <FetchOptions extends import("better-auth").ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import("better-auth").Prettify<{
|
|
2342
|
-
query?: Record<string, any> | undefined;
|
|
2343
|
-
fetchOptions?: FetchOptions | undefined;
|
|
2344
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
2345
|
-
success: boolean;
|
|
2346
|
-
}, {
|
|
2347
|
-
code?: string | undefined;
|
|
2348
|
-
message?: string | undefined;
|
|
2349
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
2350
|
-
} & {
|
|
2351
|
-
signUp: {
|
|
2352
|
-
email: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
|
|
2353
|
-
name: string;
|
|
2354
|
-
email: string;
|
|
2355
|
-
password: string;
|
|
2356
|
-
image?: string | undefined;
|
|
2357
|
-
callbackURL?: string | undefined;
|
|
2358
|
-
rememberMe?: boolean | undefined;
|
|
2359
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
|
|
2360
|
-
email: string;
|
|
2361
|
-
name: string;
|
|
2362
|
-
password: string;
|
|
2363
|
-
image?: string | undefined;
|
|
2364
|
-
callbackURL?: string | undefined;
|
|
2365
|
-
fetchOptions?: FetchOptions | undefined;
|
|
2366
|
-
} & {} & {} & {} & {
|
|
2367
|
-
username?: string | null | undefined;
|
|
2368
|
-
displayUsername?: string | null | undefined;
|
|
2369
|
-
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<NonNullable<{
|
|
2370
|
-
token: null;
|
|
2371
|
-
user: {
|
|
2372
|
-
id: string;
|
|
2373
|
-
createdAt: Date;
|
|
2374
|
-
updatedAt: Date;
|
|
2375
|
-
email: string;
|
|
2376
|
-
emailVerified: boolean;
|
|
2377
|
-
name: string;
|
|
2378
|
-
image?: string | null | undefined | undefined;
|
|
2379
|
-
};
|
|
2380
|
-
} | {
|
|
2381
|
-
token: string;
|
|
2382
|
-
user: {
|
|
2383
|
-
id: string;
|
|
2384
|
-
createdAt: Date;
|
|
2385
|
-
updatedAt: Date;
|
|
2386
|
-
email: string;
|
|
2387
|
-
emailVerified: boolean;
|
|
2388
|
-
name: string;
|
|
2389
|
-
image?: string | null | undefined | undefined;
|
|
2390
|
-
};
|
|
2391
|
-
}>, {
|
|
2392
|
-
code?: string | undefined;
|
|
2393
|
-
message?: string | undefined;
|
|
2394
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
2395
|
-
};
|
|
2396
|
-
} & {
|
|
2397
|
-
signIn: {
|
|
2398
|
-
email: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
|
|
2399
|
-
email: string;
|
|
2400
|
-
password: string;
|
|
2401
|
-
callbackURL?: string | undefined;
|
|
2402
|
-
rememberMe?: boolean | undefined;
|
|
2403
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
|
|
2404
|
-
email: string;
|
|
2405
|
-
password: string;
|
|
2406
|
-
callbackURL?: string | undefined;
|
|
2407
|
-
rememberMe?: boolean | undefined;
|
|
2408
|
-
} & {
|
|
2409
|
-
fetchOptions?: FetchOptions | undefined;
|
|
2410
|
-
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
2411
|
-
redirect: boolean;
|
|
2412
|
-
token: string;
|
|
2413
|
-
url?: string | undefined;
|
|
2414
|
-
user: {
|
|
2415
|
-
id: string;
|
|
2416
|
-
createdAt: Date;
|
|
2417
|
-
updatedAt: Date;
|
|
2418
|
-
email: string;
|
|
2419
|
-
emailVerified: boolean;
|
|
2420
|
-
name: string;
|
|
2421
|
-
image?: string | null | undefined | undefined;
|
|
2422
|
-
};
|
|
2423
|
-
}, {
|
|
2424
|
-
code?: string | undefined;
|
|
2425
|
-
message?: string | undefined;
|
|
2426
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
2427
|
-
};
|
|
2428
|
-
} & {
|
|
2429
|
-
resetPassword: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
|
|
2430
|
-
newPassword: string;
|
|
2431
|
-
token?: string | undefined;
|
|
2432
|
-
}> & Record<string, any>, Partial<{
|
|
2433
|
-
token?: string | undefined;
|
|
2434
|
-
}> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
|
|
2435
|
-
newPassword: string;
|
|
2436
|
-
token?: string | undefined;
|
|
2437
|
-
} & {
|
|
2438
|
-
fetchOptions?: FetchOptions | undefined;
|
|
2439
|
-
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
2440
|
-
status: boolean;
|
|
2441
|
-
}, {
|
|
2442
|
-
code?: string | undefined;
|
|
2443
|
-
message?: string | undefined;
|
|
2444
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
2445
|
-
} & {
|
|
2446
|
-
verifyEmail: <FetchOptions extends import("better-auth").ClientFetchOption<never, Partial<{
|
|
2447
|
-
token: string;
|
|
2448
|
-
callbackURL?: string | undefined;
|
|
2449
|
-
}> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
|
|
2450
|
-
query: {
|
|
2451
|
-
token: string;
|
|
2452
|
-
callbackURL?: string | undefined;
|
|
2453
|
-
};
|
|
2454
|
-
fetchOptions?: FetchOptions | undefined;
|
|
2455
|
-
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<NonNullable<void | {
|
|
2456
|
-
status: boolean;
|
|
2457
|
-
}>, {
|
|
2458
|
-
code?: string | undefined;
|
|
2459
|
-
message?: string | undefined;
|
|
2460
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
2461
|
-
} & {
|
|
2462
|
-
sendVerificationEmail: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
|
|
2463
|
-
email: string;
|
|
2464
|
-
callbackURL?: string | undefined;
|
|
2465
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
|
|
2466
|
-
email: string;
|
|
2467
|
-
callbackURL?: string | undefined;
|
|
2468
|
-
} & {
|
|
2469
|
-
fetchOptions?: FetchOptions | undefined;
|
|
2470
|
-
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
2471
|
-
status: boolean;
|
|
2472
|
-
}, {
|
|
2473
|
-
code?: string | undefined;
|
|
2474
|
-
message?: string | undefined;
|
|
2475
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
2476
|
-
} & {
|
|
2477
|
-
changeEmail: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
|
|
2478
|
-
newEmail: string;
|
|
2479
|
-
callbackURL?: string | undefined;
|
|
2480
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
|
|
2481
|
-
newEmail: string;
|
|
2482
|
-
callbackURL?: string | undefined;
|
|
2483
|
-
} & {
|
|
2484
|
-
fetchOptions?: FetchOptions | undefined;
|
|
2485
|
-
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
2486
|
-
status: boolean;
|
|
2487
|
-
}, {
|
|
2488
|
-
code?: string | undefined;
|
|
2489
|
-
message?: string | undefined;
|
|
2490
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
2491
|
-
} & {
|
|
2492
|
-
changePassword: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
|
|
2493
|
-
newPassword: string;
|
|
2494
|
-
currentPassword: string;
|
|
2495
|
-
revokeOtherSessions?: boolean | undefined;
|
|
2496
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
|
|
2497
|
-
newPassword: string;
|
|
2498
|
-
currentPassword: string;
|
|
2499
|
-
revokeOtherSessions?: boolean | undefined;
|
|
2500
|
-
} & {
|
|
2501
|
-
fetchOptions?: FetchOptions | undefined;
|
|
2502
|
-
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
2503
|
-
token: string | null;
|
|
2504
|
-
user: {
|
|
2505
|
-
id: string;
|
|
2506
|
-
createdAt: Date;
|
|
2507
|
-
updatedAt: Date;
|
|
2508
|
-
email: string;
|
|
2509
|
-
emailVerified: boolean;
|
|
2510
|
-
name: string;
|
|
2511
|
-
image?: string | null | undefined;
|
|
2512
|
-
} & Record<string, any>;
|
|
2513
|
-
}, {
|
|
2514
|
-
code?: string | undefined;
|
|
2515
|
-
message?: string | undefined;
|
|
2516
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
2517
|
-
} & {
|
|
2518
|
-
updateUser: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<Partial<{}> & {
|
|
2519
|
-
name?: string | undefined;
|
|
2520
|
-
image?: string | undefined | null;
|
|
2521
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import("better-auth").Prettify<{
|
|
2522
|
-
image?: (string | null) | undefined;
|
|
2523
|
-
name?: string | undefined;
|
|
2524
|
-
fetchOptions?: FetchOptions | undefined;
|
|
2525
|
-
} & Partial<{} & {} & {} & {
|
|
2526
|
-
username?: string | null | undefined;
|
|
2527
|
-
displayUsername?: string | null | undefined;
|
|
2528
|
-
}>> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
2529
|
-
status: boolean;
|
|
2530
|
-
}, {
|
|
2531
|
-
code?: string | undefined;
|
|
2532
|
-
message?: string | undefined;
|
|
2533
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
2534
|
-
} & {
|
|
2535
|
-
deleteUser: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
|
|
2536
|
-
callbackURL?: string | undefined;
|
|
2537
|
-
password?: string | undefined;
|
|
2538
|
-
token?: string | undefined;
|
|
2539
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import("better-auth").Prettify<{
|
|
2540
|
-
callbackURL?: string | undefined;
|
|
2541
|
-
password?: string | undefined;
|
|
2542
|
-
token?: string | undefined;
|
|
2543
|
-
} & {
|
|
2544
|
-
fetchOptions?: FetchOptions | undefined;
|
|
2545
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
2546
|
-
success: boolean;
|
|
2547
|
-
message: string;
|
|
2548
|
-
}, {
|
|
2549
|
-
code?: string | undefined;
|
|
2550
|
-
message?: string | undefined;
|
|
2551
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
2552
|
-
} & {
|
|
2553
|
-
requestPasswordReset: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
|
|
2554
|
-
email: string;
|
|
2555
|
-
redirectTo?: string | undefined;
|
|
2556
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
|
|
2557
|
-
email: string;
|
|
2558
|
-
redirectTo?: string | undefined;
|
|
2559
|
-
} & {
|
|
2560
|
-
fetchOptions?: FetchOptions | undefined;
|
|
2561
|
-
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
2562
|
-
status: boolean;
|
|
2563
|
-
message: string;
|
|
2564
|
-
}, {
|
|
2565
|
-
code?: string | undefined;
|
|
2566
|
-
message?: string | undefined;
|
|
2567
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
2568
|
-
} & {
|
|
2569
|
-
resetPassword: {
|
|
2570
|
-
":token": <FetchOptions extends import("better-auth").ClientFetchOption<never, Partial<{
|
|
2571
|
-
callbackURL: string;
|
|
2572
|
-
}> & Record<string, any>, {
|
|
2573
|
-
token: string;
|
|
2574
|
-
}>>(data_0: import("better-auth").Prettify<{
|
|
2575
|
-
query: {
|
|
2576
|
-
callbackURL: string;
|
|
2577
|
-
};
|
|
2578
|
-
fetchOptions?: FetchOptions | undefined;
|
|
2579
|
-
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<never, {
|
|
2580
|
-
code?: string | undefined;
|
|
2581
|
-
message?: string | undefined;
|
|
2582
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
2583
|
-
};
|
|
2584
|
-
} & {
|
|
2585
|
-
listSessions: <FetchOptions extends import("better-auth").ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import("better-auth").Prettify<{
|
|
2586
|
-
query?: Record<string, any> | undefined;
|
|
2587
|
-
fetchOptions?: FetchOptions | undefined;
|
|
2588
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<import("better-auth").Prettify<{
|
|
2589
|
-
id: string;
|
|
2590
|
-
createdAt: Date;
|
|
2591
|
-
updatedAt: Date;
|
|
2592
|
-
userId: string;
|
|
2593
|
-
expiresAt: Date;
|
|
2594
|
-
token: string;
|
|
2595
|
-
ipAddress?: string | null | undefined | undefined;
|
|
2596
|
-
userAgent?: string | null | undefined | undefined;
|
|
2597
|
-
}>[], {
|
|
2598
|
-
code?: string | undefined;
|
|
2599
|
-
message?: string | undefined;
|
|
2600
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
2601
|
-
} & {
|
|
2602
|
-
revokeSession: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
|
|
2603
|
-
token: string;
|
|
2604
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
|
|
2605
|
-
token: string;
|
|
2606
|
-
} & {
|
|
2607
|
-
fetchOptions?: FetchOptions | undefined;
|
|
2608
|
-
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
2609
|
-
status: boolean;
|
|
2610
|
-
}, {
|
|
2611
|
-
code?: string | undefined;
|
|
2612
|
-
message?: string | undefined;
|
|
2613
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
2614
|
-
} & {
|
|
2615
|
-
revokeSessions: <FetchOptions extends import("better-auth").ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import("better-auth").Prettify<{
|
|
2616
|
-
query?: Record<string, any> | undefined;
|
|
2617
|
-
fetchOptions?: FetchOptions | undefined;
|
|
2618
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
2619
|
-
status: boolean;
|
|
2620
|
-
}, {
|
|
2621
|
-
code?: string | undefined;
|
|
2622
|
-
message?: string | undefined;
|
|
2623
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
2624
|
-
} & {
|
|
2625
|
-
revokeOtherSessions: <FetchOptions extends import("better-auth").ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import("better-auth").Prettify<{
|
|
2626
|
-
query?: Record<string, any> | undefined;
|
|
2627
|
-
fetchOptions?: FetchOptions | undefined;
|
|
2628
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
2629
|
-
status: boolean;
|
|
2630
|
-
}, {
|
|
2631
|
-
code?: string | undefined;
|
|
2632
|
-
message?: string | undefined;
|
|
2633
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
2634
|
-
} & {
|
|
2635
|
-
linkSocial: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
|
|
2636
|
-
provider: unknown;
|
|
2637
|
-
callbackURL?: string | undefined;
|
|
2638
|
-
idToken?: {
|
|
2639
|
-
token: string;
|
|
2640
|
-
nonce?: string | undefined;
|
|
2641
|
-
accessToken?: string | undefined;
|
|
2642
|
-
refreshToken?: string | undefined;
|
|
2643
|
-
scopes?: string[] | undefined;
|
|
2644
|
-
} | undefined;
|
|
2645
|
-
requestSignUp?: boolean | undefined;
|
|
2646
|
-
scopes?: string[] | undefined;
|
|
2647
|
-
errorCallbackURL?: string | undefined;
|
|
2648
|
-
disableRedirect?: boolean | undefined;
|
|
2649
|
-
additionalData?: Record<string, any> | undefined;
|
|
2650
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
|
|
2651
|
-
provider: unknown;
|
|
2652
|
-
callbackURL?: string | undefined;
|
|
2653
|
-
idToken?: {
|
|
2654
|
-
token: string;
|
|
2655
|
-
nonce?: string | undefined;
|
|
2656
|
-
accessToken?: string | undefined;
|
|
2657
|
-
refreshToken?: string | undefined;
|
|
2658
|
-
scopes?: string[] | undefined;
|
|
2659
|
-
} | undefined;
|
|
2660
|
-
requestSignUp?: boolean | undefined;
|
|
2661
|
-
scopes?: string[] | undefined;
|
|
2662
|
-
errorCallbackURL?: string | undefined;
|
|
2663
|
-
disableRedirect?: boolean | undefined;
|
|
2664
|
-
additionalData?: Record<string, any> | undefined;
|
|
2665
|
-
} & {
|
|
2666
|
-
fetchOptions?: FetchOptions | undefined;
|
|
2667
|
-
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
2668
|
-
url: string;
|
|
2669
|
-
redirect: boolean;
|
|
2670
|
-
}, {
|
|
2671
|
-
code?: string | undefined;
|
|
2672
|
-
message?: string | undefined;
|
|
2673
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
2674
|
-
} & {
|
|
2675
|
-
listAccounts: <FetchOptions extends import("better-auth").ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import("better-auth").Prettify<{
|
|
2676
|
-
query?: Record<string, any> | undefined;
|
|
2677
|
-
fetchOptions?: FetchOptions | undefined;
|
|
2678
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
2679
|
-
scopes: string[];
|
|
2680
|
-
id: string;
|
|
2681
|
-
createdAt: Date;
|
|
2682
|
-
updatedAt: Date;
|
|
2683
|
-
userId: string;
|
|
2684
|
-
providerId: string;
|
|
2685
|
-
accountId: string;
|
|
2686
|
-
}[], {
|
|
2687
|
-
code?: string | undefined;
|
|
2688
|
-
message?: string | undefined;
|
|
2689
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
2690
|
-
} & {
|
|
2691
|
-
deleteUser: {
|
|
2692
|
-
callback: <FetchOptions extends import("better-auth").ClientFetchOption<never, Partial<{
|
|
2693
|
-
token: string;
|
|
2694
|
-
callbackURL?: string | undefined;
|
|
2695
|
-
}> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
|
|
2696
|
-
query: {
|
|
2697
|
-
token: string;
|
|
2698
|
-
callbackURL?: string | undefined;
|
|
2699
|
-
};
|
|
2700
|
-
fetchOptions?: FetchOptions | undefined;
|
|
2701
|
-
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
2702
|
-
success: boolean;
|
|
2703
|
-
message: string;
|
|
2704
|
-
}, {
|
|
2705
|
-
code?: string | undefined;
|
|
2706
|
-
message?: string | undefined;
|
|
2707
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
2708
|
-
};
|
|
2709
|
-
} & {
|
|
2710
|
-
unlinkAccount: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
|
|
2711
|
-
providerId: string;
|
|
2712
|
-
accountId?: string | undefined;
|
|
2713
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
|
|
2714
|
-
providerId: string;
|
|
2715
|
-
accountId?: string | undefined;
|
|
2716
|
-
} & {
|
|
2717
|
-
fetchOptions?: FetchOptions | undefined;
|
|
2718
|
-
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
2719
|
-
status: boolean;
|
|
2720
|
-
}, {
|
|
2721
|
-
code?: string | undefined;
|
|
2722
|
-
message?: string | undefined;
|
|
2723
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
2724
|
-
} & {
|
|
2725
|
-
refreshToken: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
|
|
2726
|
-
providerId: string;
|
|
2727
|
-
accountId?: string | undefined;
|
|
2728
|
-
userId?: string | undefined;
|
|
2729
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
|
|
2730
|
-
providerId: string;
|
|
2731
|
-
accountId?: string | undefined;
|
|
2732
|
-
userId?: string | undefined;
|
|
2733
|
-
} & {
|
|
2734
|
-
fetchOptions?: FetchOptions | undefined;
|
|
2735
|
-
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
2736
|
-
accessToken: string | undefined;
|
|
2737
|
-
refreshToken: string | undefined;
|
|
2738
|
-
accessTokenExpiresAt: Date | undefined;
|
|
2739
|
-
refreshTokenExpiresAt: Date | undefined;
|
|
2740
|
-
scope: string | null | undefined;
|
|
2741
|
-
idToken: string | null | undefined;
|
|
2742
|
-
providerId: string;
|
|
2743
|
-
accountId: string;
|
|
2744
|
-
}, {
|
|
2745
|
-
code?: string | undefined;
|
|
2746
|
-
message?: string | undefined;
|
|
2747
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
2748
|
-
} & {
|
|
2749
|
-
getAccessToken: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
|
|
2750
|
-
providerId: string;
|
|
2751
|
-
accountId?: string | undefined;
|
|
2752
|
-
userId?: string | undefined;
|
|
2753
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
|
|
2754
|
-
providerId: string;
|
|
2755
|
-
accountId?: string | undefined;
|
|
2756
|
-
userId?: string | undefined;
|
|
2757
|
-
} & {
|
|
2758
|
-
fetchOptions?: FetchOptions | undefined;
|
|
2759
|
-
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
2760
|
-
accessToken: string;
|
|
2761
|
-
accessTokenExpiresAt: Date | undefined;
|
|
2762
|
-
scopes: string[];
|
|
2763
|
-
idToken: string | undefined;
|
|
2764
|
-
}, {
|
|
2765
|
-
code?: string | undefined;
|
|
2766
|
-
message?: string | undefined;
|
|
2767
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
2768
|
-
} & {
|
|
2769
|
-
accountInfo: <FetchOptions extends import("better-auth").ClientFetchOption<never, Partial<{
|
|
2770
|
-
accountId?: string | undefined;
|
|
2771
|
-
}> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import("better-auth").Prettify<{
|
|
2772
|
-
query?: {
|
|
2773
|
-
accountId?: string | undefined;
|
|
2774
|
-
} | undefined;
|
|
2775
|
-
fetchOptions?: FetchOptions | undefined;
|
|
2776
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
2777
|
-
user: import("better-auth").OAuth2UserInfo;
|
|
2778
|
-
data: Record<string, any>;
|
|
2779
|
-
}, {
|
|
2780
|
-
code?: string | undefined;
|
|
2781
|
-
message?: string | undefined;
|
|
2782
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
2783
|
-
} & {
|
|
2784
|
-
getSession: <FetchOptions extends import("better-auth").ClientFetchOption<never, Partial<{
|
|
2785
|
-
disableCookieCache?: unknown;
|
|
2786
|
-
disableRefresh?: unknown;
|
|
2787
|
-
}> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import("better-auth").Prettify<{
|
|
2788
|
-
query?: {
|
|
2789
|
-
disableCookieCache?: unknown;
|
|
2790
|
-
disableRefresh?: unknown;
|
|
2791
|
-
} | undefined;
|
|
2792
|
-
fetchOptions?: FetchOptions | undefined;
|
|
2793
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
|
|
2794
|
-
user: {
|
|
2795
|
-
id: string;
|
|
2796
|
-
createdAt: Date;
|
|
2797
|
-
updatedAt: Date;
|
|
2798
|
-
email: string;
|
|
2799
|
-
emailVerified: boolean;
|
|
2800
|
-
name: string;
|
|
2801
|
-
image?: string | null | undefined;
|
|
2802
|
-
banned: boolean | null | undefined;
|
|
2803
|
-
role?: string | null | undefined;
|
|
2804
|
-
banReason?: string | null | undefined;
|
|
2805
|
-
banExpires?: Date | null | undefined;
|
|
2806
|
-
username?: string | null | undefined;
|
|
2807
|
-
displayUsername?: string | null | undefined;
|
|
2808
|
-
};
|
|
2809
|
-
session: {
|
|
2810
|
-
id: string;
|
|
2811
|
-
createdAt: Date;
|
|
2812
|
-
updatedAt: Date;
|
|
2813
|
-
userId: string;
|
|
2814
|
-
expiresAt: Date;
|
|
2815
|
-
token: string;
|
|
2816
|
-
ipAddress?: string | null | undefined;
|
|
2817
|
-
userAgent?: string | null | undefined;
|
|
2818
|
-
impersonatedBy?: string | null | undefined;
|
|
2819
|
-
};
|
|
2820
|
-
} | null, {
|
|
2821
|
-
code?: string | undefined;
|
|
2822
|
-
message?: string | undefined;
|
|
2823
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
2824
|
-
} & {
|
|
2825
|
-
admin: {
|
|
2826
|
-
checkRolePermission: <R extends keyof TRoles & ("admin" | "member" | "owner")>(data: ({
|
|
2827
|
-
permission: {
|
|
2828
|
-
readonly user?: ("list" | "create" | "update" | "set-role" | "ban" | "impersonate" | "delete" | "set-password" | "get")[] | undefined;
|
|
2829
|
-
readonly session?: ("list" | "delete" | "revoke")[] | undefined;
|
|
2830
|
-
};
|
|
2831
|
-
permissions?: never | undefined;
|
|
2832
|
-
} | {
|
|
2833
|
-
permissions: {
|
|
2834
|
-
readonly user?: ("list" | "create" | "update" | "set-role" | "ban" | "impersonate" | "delete" | "set-password" | "get")[] | undefined;
|
|
2835
|
-
readonly session?: ("list" | "delete" | "revoke")[] | undefined;
|
|
2836
|
-
};
|
|
2837
|
-
permission?: never | undefined;
|
|
2838
|
-
}) & {
|
|
2839
|
-
role: R;
|
|
2840
|
-
}) => boolean;
|
|
2841
|
-
};
|
|
2842
|
-
} & {
|
|
2843
|
-
useSession: () => {
|
|
2844
|
-
data: {
|
|
2845
|
-
user: {
|
|
2846
|
-
id: string;
|
|
2847
|
-
createdAt: Date;
|
|
2848
|
-
updatedAt: Date;
|
|
2849
|
-
email: string;
|
|
2850
|
-
emailVerified: boolean;
|
|
2851
|
-
name: string;
|
|
2852
|
-
image?: string | null | undefined;
|
|
2853
|
-
banned: boolean | null | undefined;
|
|
2854
|
-
role?: string | null | undefined;
|
|
2855
|
-
banReason?: string | null | undefined;
|
|
2856
|
-
banExpires?: Date | null | undefined;
|
|
2857
|
-
username?: string | null | undefined;
|
|
2858
|
-
displayUsername?: string | null | undefined;
|
|
2859
|
-
};
|
|
2860
|
-
session: {
|
|
2861
|
-
id: string;
|
|
2862
|
-
createdAt: Date;
|
|
2863
|
-
updatedAt: Date;
|
|
2864
|
-
userId: string;
|
|
2865
|
-
expiresAt: Date;
|
|
2866
|
-
token: string;
|
|
2867
|
-
ipAddress?: string | null | undefined;
|
|
2868
|
-
userAgent?: string | null | undefined;
|
|
2869
|
-
impersonatedBy?: string | null | undefined;
|
|
2870
|
-
};
|
|
2871
|
-
} | null;
|
|
2872
|
-
isPending: boolean;
|
|
2873
|
-
isRefetching: boolean;
|
|
2874
|
-
error: import("better-auth/client").BetterFetchError | null;
|
|
2875
|
-
refetch: (queryParams?: {
|
|
2876
|
-
query?: import("better-auth").SessionQueryParams;
|
|
2877
|
-
} | undefined) => Promise<void>;
|
|
2878
|
-
};
|
|
2879
|
-
$Infer: {
|
|
2880
|
-
Session: {
|
|
2881
|
-
user: {
|
|
2882
|
-
id: string;
|
|
2883
|
-
createdAt: Date;
|
|
2884
|
-
updatedAt: Date;
|
|
2885
|
-
email: string;
|
|
2886
|
-
emailVerified: boolean;
|
|
2887
|
-
name: string;
|
|
2888
|
-
image?: string | null | undefined;
|
|
2889
|
-
banned: boolean | null | undefined;
|
|
2890
|
-
role?: string | null | undefined;
|
|
2891
|
-
banReason?: string | null | undefined;
|
|
2892
|
-
banExpires?: Date | null | undefined;
|
|
2893
|
-
username?: string | null | undefined;
|
|
2894
|
-
displayUsername?: string | null | undefined;
|
|
2895
|
-
};
|
|
2896
|
-
session: {
|
|
2897
|
-
id: string;
|
|
2898
|
-
createdAt: Date;
|
|
2899
|
-
updatedAt: Date;
|
|
2900
|
-
userId: string;
|
|
2901
|
-
expiresAt: Date;
|
|
2902
|
-
token: string;
|
|
2903
|
-
ipAddress?: string | null | undefined;
|
|
2904
|
-
userAgent?: string | null | undefined;
|
|
2905
|
-
impersonatedBy?: string | null | undefined;
|
|
2906
|
-
};
|
|
2907
|
-
};
|
|
2908
|
-
};
|
|
2909
|
-
$fetch: import("better-auth/client").BetterFetch<{
|
|
2910
|
-
plugins: (import("better-auth/client").BetterFetchPlugin<Record<string, any>> | {
|
|
2911
|
-
id: string;
|
|
2912
|
-
name: string;
|
|
2913
|
-
hooks: {
|
|
2914
|
-
onSuccess(context: import("better-auth/client").SuccessContext<any>): void;
|
|
2915
|
-
};
|
|
2916
|
-
} | {
|
|
2917
|
-
id: string;
|
|
2918
|
-
name: string;
|
|
2919
|
-
hooks: {
|
|
2920
|
-
onSuccess: ((context: import("better-auth/client").SuccessContext<any>) => Promise<void> | void) | undefined;
|
|
2921
|
-
onError: ((context: import("better-auth/client").ErrorContext) => Promise<void> | void) | undefined;
|
|
2922
|
-
onRequest: (<T extends Record<string, any>>(context: import("better-auth/client").RequestContext<T>) => Promise<import("better-auth/client").RequestContext | void> | import("better-auth/client").RequestContext | void) | undefined;
|
|
2923
|
-
onResponse: ((context: import("better-auth/client").ResponseContext) => Promise<Response | void | import("better-auth/client").ResponseContext> | Response | import("better-auth/client").ResponseContext | void) | undefined;
|
|
2924
|
-
};
|
|
2925
|
-
})[];
|
|
2926
|
-
cache?: RequestCache | undefined;
|
|
2927
|
-
method: string;
|
|
2928
|
-
window?: null | undefined;
|
|
2929
|
-
headers?: (HeadersInit & (HeadersInit | {
|
|
2930
|
-
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
2931
|
-
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
2932
|
-
authorization: "Bearer" | "Basic";
|
|
2933
|
-
})) | undefined;
|
|
2934
|
-
redirect?: RequestRedirect | undefined;
|
|
2935
|
-
credentials?: RequestCredentials;
|
|
2936
|
-
integrity?: string | undefined;
|
|
2937
|
-
keepalive?: boolean | undefined;
|
|
2938
|
-
mode?: RequestMode | undefined;
|
|
2939
|
-
priority?: RequestPriority | undefined;
|
|
2940
|
-
referrer?: string | undefined;
|
|
2941
|
-
referrerPolicy?: ReferrerPolicy | undefined;
|
|
2942
|
-
signal?: (AbortSignal | null) | undefined;
|
|
2943
|
-
onRetry?: ((response: import("better-auth/client").ResponseContext) => Promise<void> | void) | undefined;
|
|
2944
|
-
hookOptions?: {
|
|
2945
|
-
cloneResponse?: boolean;
|
|
2946
|
-
} | undefined;
|
|
2947
|
-
timeout?: number | undefined;
|
|
2948
|
-
customFetchImpl: import("better-auth/client").FetchEsque;
|
|
2949
|
-
baseURL: string;
|
|
2950
|
-
throw?: boolean | undefined;
|
|
2951
|
-
auth?: ({
|
|
2952
|
-
type: "Bearer";
|
|
2953
|
-
token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
|
|
2954
|
-
} | {
|
|
2955
|
-
type: "Basic";
|
|
2956
|
-
username: string | (() => string | undefined) | undefined;
|
|
2957
|
-
password: string | (() => string | undefined) | undefined;
|
|
2958
|
-
} | {
|
|
2959
|
-
type: "Custom";
|
|
2960
|
-
prefix: string | (() => string | undefined) | undefined;
|
|
2961
|
-
value: string | (() => string | undefined) | undefined;
|
|
2962
|
-
}) | undefined;
|
|
2963
|
-
body?: any;
|
|
2964
|
-
query?: any;
|
|
2965
|
-
params?: any;
|
|
2966
|
-
duplex?: "full" | "half" | undefined;
|
|
2967
|
-
jsonParser: (text: string) => Promise<any> | any;
|
|
2968
|
-
retry?: import("better-auth/client").RetryOptions | undefined;
|
|
2969
|
-
retryAttempt?: number | undefined;
|
|
2970
|
-
output?: (import("better-auth/client").StandardSchemaV1 | typeof Blob | typeof File) | undefined;
|
|
2971
|
-
errorSchema?: import("better-auth/client").StandardSchemaV1 | undefined;
|
|
2972
|
-
disableValidation?: boolean | undefined;
|
|
2973
|
-
disableSignal?: boolean | undefined;
|
|
2974
|
-
}, unknown, unknown, {}>;
|
|
2975
|
-
$store: {
|
|
2976
|
-
notify: (signal?: (Omit<string, "$sessionSignal"> | "$sessionSignal") | undefined) => void;
|
|
2977
|
-
listen: (signal: Omit<string, "$sessionSignal"> | "$sessionSignal", listener: (value: boolean, oldValue?: boolean | undefined) => void) => void;
|
|
2978
|
-
atoms: Record<string, import("nanostores").WritableAtom<any>>;
|
|
2979
|
-
};
|
|
2980
|
-
$ERROR_CODES: {
|
|
2981
|
-
readonly FAILED_TO_CREATE_USER: "Failed to create user";
|
|
2982
|
-
readonly USER_ALREADY_EXISTS: "User already exists.";
|
|
2983
|
-
readonly USER_ALREADY_EXISTS_USE_ANOTHER_EMAIL: "User already exists. Use another email.";
|
|
2984
|
-
readonly YOU_CANNOT_BAN_YOURSELF: "You cannot ban yourself";
|
|
2985
|
-
readonly YOU_ARE_NOT_ALLOWED_TO_CHANGE_USERS_ROLE: "You are not allowed to change users role";
|
|
2986
|
-
readonly YOU_ARE_NOT_ALLOWED_TO_CREATE_USERS: "You are not allowed to create users";
|
|
2987
|
-
readonly YOU_ARE_NOT_ALLOWED_TO_LIST_USERS: "You are not allowed to list users";
|
|
2988
|
-
readonly YOU_ARE_NOT_ALLOWED_TO_LIST_USERS_SESSIONS: "You are not allowed to list users sessions";
|
|
2989
|
-
readonly YOU_ARE_NOT_ALLOWED_TO_BAN_USERS: "You are not allowed to ban users";
|
|
2990
|
-
readonly YOU_ARE_NOT_ALLOWED_TO_IMPERSONATE_USERS: "You are not allowed to impersonate users";
|
|
2991
|
-
readonly YOU_ARE_NOT_ALLOWED_TO_REVOKE_USERS_SESSIONS: "You are not allowed to revoke users sessions";
|
|
2992
|
-
readonly YOU_ARE_NOT_ALLOWED_TO_DELETE_USERS: "You are not allowed to delete users";
|
|
2993
|
-
readonly YOU_ARE_NOT_ALLOWED_TO_SET_USERS_PASSWORD: "You are not allowed to set users password";
|
|
2994
|
-
readonly BANNED_USER: "You have been banned from this application";
|
|
2995
|
-
readonly YOU_ARE_NOT_ALLOWED_TO_GET_USER: "You are not allowed to get user";
|
|
2996
|
-
readonly NO_DATA_TO_UPDATE: "No data to update";
|
|
2997
|
-
readonly YOU_ARE_NOT_ALLOWED_TO_UPDATE_USERS: "You are not allowed to update users";
|
|
2998
|
-
readonly YOU_CANNOT_REMOVE_YOURSELF: "You cannot remove yourself";
|
|
2999
|
-
readonly YOU_ARE_NOT_ALLOWED_TO_SET_NON_EXISTENT_VALUE: "You are not allowed to set a non-existent role value";
|
|
3000
|
-
readonly YOU_CANNOT_IMPERSONATE_ADMINS: "You cannot impersonate admins";
|
|
3001
|
-
readonly INVALID_ROLE_TYPE: "Invalid role type";
|
|
3002
|
-
readonly INVALID_USERNAME_OR_PASSWORD: "Invalid username or password";
|
|
3003
|
-
readonly EMAIL_NOT_VERIFIED: "Email not verified";
|
|
3004
|
-
readonly UNEXPECTED_ERROR: "Unexpected error";
|
|
3005
|
-
readonly USERNAME_IS_ALREADY_TAKEN: "Username is already taken. Please try another.";
|
|
3006
|
-
readonly USERNAME_TOO_SHORT: "Username is too short";
|
|
3007
|
-
readonly USERNAME_TOO_LONG: "Username is too long";
|
|
3008
|
-
readonly INVALID_USERNAME: "Username is invalid";
|
|
3009
|
-
readonly INVALID_DISPLAY_USERNAME: "Display username is invalid";
|
|
3010
|
-
readonly USER_NOT_FOUND: "User not found";
|
|
3011
|
-
readonly FAILED_TO_CREATE_SESSION: "Failed to create session";
|
|
3012
|
-
readonly FAILED_TO_UPDATE_USER: "Failed to update user";
|
|
3013
|
-
readonly FAILED_TO_GET_SESSION: "Failed to get session";
|
|
3014
|
-
readonly INVALID_PASSWORD: "Invalid password";
|
|
3015
|
-
readonly INVALID_EMAIL: "Invalid email";
|
|
3016
|
-
readonly INVALID_EMAIL_OR_PASSWORD: "Invalid email or password";
|
|
3017
|
-
readonly SOCIAL_ACCOUNT_ALREADY_LINKED: "Social account already linked";
|
|
3018
|
-
readonly PROVIDER_NOT_FOUND: "Provider not found";
|
|
3019
|
-
readonly INVALID_TOKEN: "Invalid token";
|
|
3020
|
-
readonly ID_TOKEN_NOT_SUPPORTED: "id_token not supported";
|
|
3021
|
-
readonly FAILED_TO_GET_USER_INFO: "Failed to get user info";
|
|
3022
|
-
readonly USER_EMAIL_NOT_FOUND: "User email not found";
|
|
3023
|
-
readonly PASSWORD_TOO_SHORT: "Password too short";
|
|
3024
|
-
readonly PASSWORD_TOO_LONG: "Password too long";
|
|
3025
|
-
readonly EMAIL_CAN_NOT_BE_UPDATED: "Email can not be updated";
|
|
3026
|
-
readonly CREDENTIAL_ACCOUNT_NOT_FOUND: "Credential account not found";
|
|
3027
|
-
readonly SESSION_EXPIRED: "Session expired. Re-authenticate to perform this action.";
|
|
3028
|
-
readonly FAILED_TO_UNLINK_LAST_ACCOUNT: "You can't unlink your last account";
|
|
3029
|
-
readonly ACCOUNT_NOT_FOUND: "Account not found";
|
|
3030
|
-
readonly USER_ALREADY_HAS_PASSWORD: "User already has a password. Provide that to delete the account.";
|
|
3031
|
-
readonly CROSS_SITE_NAVIGATION_LOGIN_BLOCKED: "Cross-site navigation login blocked. This request appears to be a CSRF attack.";
|
|
3032
|
-
readonly VERIFICATION_EMAIL_NOT_ENABLED: "Verification email isn't enabled";
|
|
3033
|
-
readonly EMAIL_ALREADY_VERIFIED: "Email is already verified";
|
|
3034
|
-
readonly EMAIL_MISMATCH: "Email mismatch";
|
|
3035
|
-
readonly SESSION_NOT_FRESH: "Session is not fresh";
|
|
3036
|
-
readonly LINKED_ACCOUNT_ALREADY_EXISTS: "Linked account already exists";
|
|
3037
|
-
readonly INVALID_ORIGIN: "Invalid origin";
|
|
3038
|
-
readonly INVALID_CALLBACK_URL: "Invalid callbackURL";
|
|
3039
|
-
readonly INVALID_REDIRECT_URL: "Invalid redirectURL";
|
|
3040
|
-
readonly INVALID_ERROR_CALLBACK_URL: "Invalid errorCallbackURL";
|
|
3041
|
-
readonly INVALID_NEW_USER_CALLBACK_URL: "Invalid newUserCallbackURL";
|
|
3042
|
-
readonly MISSING_OR_NULL_ORIGIN: "Missing or null Origin";
|
|
3043
|
-
readonly CALLBACK_URL_REQUIRED: "callbackURL is required";
|
|
3044
|
-
readonly FAILED_TO_CREATE_VERIFICATION: "Unable to create verification";
|
|
3045
|
-
readonly FIELD_NOT_ALLOWED: "Field not allowed to be set";
|
|
3046
|
-
readonly ASYNC_VALIDATION_NOT_SUPPORTED: "Async validation is not supported";
|
|
3047
|
-
readonly VALIDATION_ERROR: "Validation Error";
|
|
3048
|
-
readonly MISSING_FIELD: "Field is required";
|
|
3049
|
-
};
|
|
3050
|
-
};
|