better-auth 1.6.26 → 1.6.28
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/adapters/index.d.mts +6 -1
- package/dist/api/dispatch.d.mts +1 -0
- package/dist/api/index.d.mts +508 -505
- package/dist/api/middlewares/authorization.d.mts +10 -14
- package/dist/api/middlewares/authorization.mjs +1 -2
- package/dist/api/middlewares/index.d.mts +1 -2
- package/dist/api/middlewares/origin-check.d.mts +5 -3
- package/dist/api/routes/account.d.mts +16 -13
- package/dist/api/routes/callback.d.mts +3 -1
- package/dist/api/routes/email-verification.d.mts +8 -4
- package/dist/api/routes/error.d.mts +3 -1
- package/dist/api/routes/index.d.mts +1 -2
- package/dist/api/routes/ok.d.mts +3 -1
- package/dist/api/routes/password.d.mts +10 -8
- package/dist/api/routes/session.d.mts +32 -30
- package/dist/api/routes/session.mjs +2 -3
- package/dist/api/routes/sign-in.d.mts +5 -3
- package/dist/api/routes/sign-out.d.mts +3 -1
- package/dist/api/routes/sign-up.d.mts +4 -3
- package/dist/api/routes/update-session.d.mts +5 -4
- package/dist/api/routes/update-user.d.mts +19 -18
- package/dist/auth/full.d.mts +1 -1
- package/dist/auth/minimal.d.mts +1 -1
- package/dist/client/config.d.mts +14 -12
- package/dist/client/config.mjs +2 -2
- package/dist/client/equality.d.mts +1 -0
- package/dist/client/index.d.mts +5 -6
- package/dist/client/lynx/index.d.mts +5 -4
- package/dist/client/lynx/lynx-store.d.mts +2 -1
- package/dist/client/parser.d.mts +3 -7
- package/dist/client/path-to-object.d.mts +4 -3
- package/dist/client/plugins/index.d.mts +1 -1
- package/dist/client/plugins/infer-plugin.d.mts +1 -0
- package/dist/client/query.d.mts +1 -0
- package/dist/client/react/index.d.mts +5 -4
- package/dist/client/react/react-store.d.mts +2 -1
- package/dist/client/session-atom.mjs +59 -46
- package/dist/client/session-refresh.d.mts +1 -0
- package/dist/client/solid/index.d.mts +5 -4
- package/dist/client/svelte/index.d.mts +5 -4
- package/dist/client/types.d.mts +2 -2
- package/dist/client/vanilla.d.mts +2 -1
- package/dist/client/vue/index.d.mts +5 -4
- package/dist/context/create-context.mjs +3 -3
- package/dist/context/helpers.mjs +2 -2
- package/dist/cookies/index.d.mts +7 -6
- package/dist/cookies/session-store.d.mts +0 -1
- package/dist/cookies/session-store.mjs +1 -2
- package/dist/crypto/index.d.mts +9 -2
- package/dist/crypto/jwt.d.mts +1 -0
- package/dist/crypto/password.d.mts +5 -1
- package/dist/db/adapter-base.d.mts +1 -0
- package/dist/db/adapter-kysely.d.mts +1 -0
- package/dist/db/field-converter.d.mts +1 -0
- package/dist/db/field.d.mts +10 -9
- package/dist/db/get-migration.d.mts +1 -0
- package/dist/db/get-schema.d.mts +1 -0
- package/dist/db/internal-adapter.d.mts +1 -0
- package/dist/db/internal-adapter.mjs +1 -2
- package/dist/db/revoke-unproven-account-access.d.mts +1 -0
- package/dist/db/schema.d.mts +2 -2
- package/dist/db/to-zod.d.mts +7 -3
- package/dist/db/with-hooks.d.mts +1 -0
- package/dist/index.d.mts +3 -4
- package/dist/integrations/next-js.d.mts +7 -4
- package/dist/integrations/node.d.mts +3 -2
- package/dist/integrations/svelte-kit.d.mts +9 -2
- package/dist/integrations/tanstack-start-solid.d.mts +5 -2
- package/dist/integrations/tanstack-start.d.mts +5 -2
- package/dist/oauth2/link-account.d.mts +1 -1
- package/dist/oauth2/state.d.mts +1 -0
- package/dist/oauth2/utils.d.mts +1 -0
- package/dist/package.mjs +1 -1
- package/dist/plugins/access/access.d.mts +1 -0
- package/dist/plugins/access/types.d.mts +5 -4
- package/dist/plugins/additional-fields/client.d.mts +1 -0
- package/dist/plugins/admin/access/statement.d.mts +0 -1
- package/dist/plugins/admin/admin.d.mts +137 -132
- package/dist/plugins/admin/client.d.mts +30 -30
- package/dist/plugins/admin/client.mjs +1 -1
- package/dist/plugins/admin/error-codes.d.mts +25 -23
- package/dist/plugins/admin/index.d.mts +1 -1
- package/dist/plugins/admin/schema.d.mts +1 -1
- package/dist/plugins/admin/types.d.mts +2 -3
- package/dist/plugins/anonymous/client.d.mts +11 -9
- package/dist/plugins/anonymous/client.mjs +1 -1
- package/dist/plugins/anonymous/error-codes.d.mts +10 -8
- package/dist/plugins/anonymous/index.d.mts +19 -15
- package/dist/plugins/anonymous/types.d.mts +1 -1
- package/dist/plugins/bearer/index.d.mts +8 -5
- package/dist/plugins/captcha/index.d.mts +8 -5
- package/dist/plugins/captcha/types.d.mts +1 -0
- package/dist/plugins/custom-session/client.d.mts +1 -0
- package/dist/plugins/custom-session/index.d.mts +12 -7
- package/dist/plugins/device-authorization/client.d.mts +1 -0
- package/dist/plugins/device-authorization/index.d.mts +22 -19
- package/dist/plugins/email-otp/client.d.mts +6 -4
- package/dist/plugins/email-otp/client.mjs +1 -1
- package/dist/plugins/email-otp/error-codes.d.mts +5 -3
- package/dist/plugins/email-otp/index.d.mts +76 -69
- package/dist/plugins/email-otp/types.d.mts +1 -0
- package/dist/plugins/generic-oauth/client.d.mts +11 -10
- package/dist/plugins/generic-oauth/client.mjs +1 -1
- package/dist/plugins/generic-oauth/error-codes.d.mts +10 -8
- package/dist/plugins/generic-oauth/index.d.mts +45 -41
- package/dist/plugins/generic-oauth/providers/auth0.d.mts +1 -0
- package/dist/plugins/generic-oauth/providers/gumroad.d.mts +1 -0
- package/dist/plugins/generic-oauth/providers/hubspot.d.mts +1 -0
- package/dist/plugins/generic-oauth/providers/index.d.mts +1 -2
- package/dist/plugins/generic-oauth/providers/keycloak.d.mts +1 -0
- package/dist/plugins/generic-oauth/providers/line.d.mts +1 -0
- package/dist/plugins/generic-oauth/providers/microsoft-entra-id.d.mts +1 -0
- package/dist/plugins/generic-oauth/providers/okta.d.mts +1 -0
- package/dist/plugins/generic-oauth/providers/patreon.d.mts +1 -0
- package/dist/plugins/generic-oauth/providers/slack.d.mts +1 -0
- package/dist/plugins/generic-oauth/providers/yandex.d.mts +1 -0
- package/dist/plugins/generic-oauth/types.d.mts +2 -1
- package/dist/plugins/haveibeenpwned/index.d.mts +6 -3
- package/dist/plugins/index.d.mts +1 -4
- package/dist/plugins/jwt/client.d.mts +2 -1
- package/dist/plugins/jwt/index.d.mts +12 -9
- package/dist/plugins/jwt/sign.d.mts +2 -2
- package/dist/plugins/jwt/types.d.mts +1 -1
- package/dist/plugins/jwt/utils.d.mts +4 -2
- package/dist/plugins/jwt/verify.d.mts +1 -0
- package/dist/plugins/last-login-method/index.d.mts +6 -3
- package/dist/plugins/magic-link/client.d.mts +1 -0
- package/dist/plugins/magic-link/index.d.mts +6 -4
- package/dist/plugins/mcp/client/adapters.d.mts +1 -0
- package/dist/plugins/mcp/client/index.mjs +2 -4
- package/dist/plugins/mcp/index.d.mts +12 -11
- package/dist/plugins/multi-session/client.d.mts +4 -2
- package/dist/plugins/multi-session/client.mjs +1 -1
- package/dist/plugins/multi-session/error-codes.d.mts +3 -1
- package/dist/plugins/multi-session/index.d.mts +12 -8
- package/dist/plugins/oauth-popup/client.d.mts +12 -6
- package/dist/plugins/oauth-popup/client.mjs +3 -5
- package/dist/plugins/oauth-popup/error-codes.d.mts +6 -4
- package/dist/plugins/oauth-popup/index.d.mts +12 -8
- package/dist/plugins/oauth-popup/index.mjs +1 -1
- package/dist/plugins/oauth-popup/types.d.mts +2 -1
- package/dist/plugins/oauth-proxy/index.d.mts +9 -6
- package/dist/plugins/oauth-proxy/index.mjs +2 -2
- package/dist/plugins/oidc-provider/client.d.mts +2 -1
- package/dist/plugins/oidc-provider/index.d.mts +20 -18
- package/dist/plugins/oidc-provider/schema.d.mts +1 -0
- package/dist/plugins/oidc-provider/types.d.mts +1 -1
- package/dist/plugins/one-tap/client.d.mts +3 -1
- package/dist/plugins/one-tap/index.d.mts +3 -1
- package/dist/plugins/one-time-token/client.d.mts +2 -1
- package/dist/plugins/one-time-token/index.d.mts +7 -6
- package/dist/plugins/open-api/generator.d.mts +1 -0
- package/dist/plugins/open-api/generator.mjs +5 -5
- package/dist/plugins/open-api/index.d.mts +5 -3
- package/dist/plugins/organization/access/statement.d.mts +0 -1
- package/dist/plugins/organization/adapter.d.mts +82 -56
- package/dist/plugins/organization/client.d.mts +103 -104
- package/dist/plugins/organization/client.mjs +4 -7
- package/dist/plugins/organization/error-codes.d.mts +61 -59
- package/dist/plugins/organization/has-permission.d.mts +1 -0
- package/dist/plugins/organization/has-permission.mjs +1 -1
- package/dist/plugins/organization/index.d.mts +1 -1
- package/dist/plugins/organization/organization.d.mts +33 -9
- package/dist/plugins/organization/organization.mjs +1 -1
- package/dist/plugins/organization/permission.d.mts +2 -2
- package/dist/plugins/organization/routes/crud-access-control.d.mts +147 -27
- package/dist/plugins/organization/routes/crud-invites.d.mts +186 -65
- package/dist/plugins/organization/routes/crud-invites.mjs +1 -1
- package/dist/plugins/organization/routes/crud-members.d.mts +178 -56
- package/dist/plugins/organization/routes/crud-members.mjs +1 -1
- package/dist/plugins/organization/routes/crud-org.d.mts +130 -57
- package/dist/plugins/organization/routes/crud-team.d.mts +235 -66
- package/dist/plugins/organization/schema.d.mts +4 -4
- package/dist/plugins/organization/schema.mjs +1 -1
- package/dist/plugins/organization/types.d.mts +14 -14
- package/dist/plugins/phone-number/client.d.mts +15 -13
- package/dist/plugins/phone-number/client.mjs +1 -1
- package/dist/plugins/phone-number/error-codes.d.mts +14 -12
- package/dist/plugins/phone-number/index.d.mts +47 -41
- package/dist/plugins/phone-number/types.d.mts +1 -1
- package/dist/plugins/siwe/client.d.mts +1 -0
- package/dist/plugins/siwe/index.d.mts +5 -4
- package/dist/plugins/test-utils/index.d.mts +4 -2
- package/dist/plugins/test-utils/types.d.mts +0 -1
- package/dist/plugins/two-factor/backup-codes/index.d.mts +7 -5
- package/dist/plugins/two-factor/backup-codes/index.mjs +1 -1
- package/dist/plugins/two-factor/client.d.mts +15 -12
- package/dist/plugins/two-factor/client.mjs +1 -1
- package/dist/plugins/two-factor/error-code.d.mts +12 -10
- package/dist/plugins/two-factor/index.d.mts +36 -32
- package/dist/plugins/two-factor/otp/index.d.mts +4 -2
- package/dist/plugins/two-factor/totp/index.d.mts +7 -5
- package/dist/plugins/two-factor/types.d.mts +1 -1
- package/dist/plugins/username/client.d.mts +11 -9
- package/dist/plugins/username/client.mjs +1 -1
- package/dist/plugins/username/error-codes.d.mts +10 -8
- package/dist/plugins/username/index.d.mts +22 -17
- package/dist/plugins/username/schema.d.mts +5 -3
- package/dist/state.d.mts +1 -0
- package/dist/test-utils/test-instance.d.mts +3 -5
- package/dist/types/adapter.d.mts +1 -1
- package/dist/types/api.d.mts +2 -1
- package/dist/types/auth.d.mts +1 -0
- package/dist/types/helper.d.mts +5 -5
- package/dist/types/index.d.mts +2 -2
- package/dist/types/models.d.mts +1 -0
- package/dist/types/plugins.d.mts +3 -2
- package/dist/utils/index.d.mts +1 -2
- package/dist/utils/url.d.mts +1 -0
- package/package.json +12 -11
|
@@ -1,20 +1,19 @@
|
|
|
1
1
|
import { FieldAttributeToObject, RemoveFieldsWithReturnedFalse } from "../../db/field.mjs";
|
|
2
2
|
import { Prettify } from "../../types/helper.mjs";
|
|
3
|
-
import { BetterAuthOptions } from "../../types/index.mjs";
|
|
3
|
+
import { BetterAuthOptions as BetterAuthOptions$1 } from "../../types/index.mjs";
|
|
4
4
|
import { AuthQueryAtom } from "../../client/query.mjs";
|
|
5
5
|
import { AccessControl, ArrayElement, Role, Statements } from "../access/types.mjs";
|
|
6
|
-
import "../access/index.mjs";
|
|
7
|
-
import "../../db/index.mjs";
|
|
8
6
|
import { OrganizationOptions } from "./types.mjs";
|
|
9
7
|
import { InferInvitation, InferMember, InferOrganization, InferOrganizationRolesFromOption, InferOrganizationZodRolesFromOption, InferTeam, Invitation, InvitationInput, InvitationStatus, Member, MemberInput, Organization, OrganizationInput, OrganizationRole, OrganizationSchema, Team, TeamInput, TeamMember, TeamMemberInput, defaultRolesSchema, invitationSchema, invitationStatus, memberSchema, organizationRoleSchema, organizationSchema, roleSchema, teamMemberSchema, teamSchema } from "./schema.mjs";
|
|
10
|
-
import "../index.mjs";
|
|
11
8
|
import { ORGANIZATION_ERROR_CODES } from "./error-codes.mjs";
|
|
12
9
|
import { HasPermissionBaseInput } from "./permission.mjs";
|
|
13
10
|
import { OrganizationPlugin } from "./organization.mjs";
|
|
14
|
-
import "
|
|
15
|
-
import "../../client/index.mjs";
|
|
11
|
+
import * as _$_better_auth_core0 from "@better-auth/core";
|
|
16
12
|
import { DBFieldAttribute } from "@better-auth/core/db";
|
|
13
|
+
import * as _$_better_auth_core_utils_error_codes0 from "@better-auth/core/utils/error-codes";
|
|
14
|
+
import * as _$nanostores from "nanostores";
|
|
17
15
|
import { BetterFetch } from "@better-fetch/fetch";
|
|
16
|
+
|
|
18
17
|
//#region src/plugins/organization/client.d.ts
|
|
19
18
|
/**
|
|
20
19
|
* Using the same `hasPermissionFn` function, but without the need for a `ctx` parameter or the `organizationId` parameter.
|
|
@@ -22,7 +21,7 @@ import { BetterFetch } from "@better-fetch/fetch";
|
|
|
22
21
|
declare const clientSideHasPermission: (input: HasPermissionBaseInput) => boolean;
|
|
23
22
|
interface OrganizationClientOptions {
|
|
24
23
|
ac?: AccessControl | undefined;
|
|
25
|
-
roles?: { [key in string]: Role
|
|
24
|
+
roles?: { [key in string]: Role } | undefined;
|
|
26
25
|
teams?: {
|
|
27
26
|
enabled: boolean;
|
|
28
27
|
} | undefined;
|
|
@@ -85,7 +84,7 @@ declare const organizationClient: <CO extends OrganizationClientOptions>(options
|
|
|
85
84
|
} ? true : false;
|
|
86
85
|
};
|
|
87
86
|
}>;
|
|
88
|
-
getActions: ($fetch: BetterFetch, _$store:
|
|
87
|
+
getActions: ($fetch: BetterFetch, _$store: _$_better_auth_core0.ClientStore, co: _$_better_auth_core0.BetterAuthClientOptions | undefined) => {
|
|
89
88
|
$Infer: {
|
|
90
89
|
ActiveOrganization: CO["teams"] extends {
|
|
91
90
|
enabled: true;
|
|
@@ -104,7 +103,7 @@ declare const organizationClient: <CO extends OrganizationClientOptions>(options
|
|
|
104
103
|
organization?: {
|
|
105
104
|
additionalFields: infer Field extends Record<string, DBFieldAttribute>;
|
|
106
105
|
} | undefined;
|
|
107
|
-
} ? FieldAttributeToObject<RemoveFieldsWithReturnedFalse<Field>> : {}) extends
|
|
106
|
+
} ? FieldAttributeToObject<RemoveFieldsWithReturnedFalse<Field>> : {}) extends infer T ? { [K in keyof T]: T[K] } : never) : {
|
|
108
107
|
members: InferMember<CO>[];
|
|
109
108
|
invitations: InferInvitation<CO>[];
|
|
110
109
|
} & ({
|
|
@@ -118,16 +117,16 @@ declare const organizationClient: <CO extends OrganizationClientOptions>(options
|
|
|
118
117
|
organization?: {
|
|
119
118
|
additionalFields: infer Field extends Record<string, DBFieldAttribute>;
|
|
120
119
|
} | undefined;
|
|
121
|
-
} ? FieldAttributeToObject<RemoveFieldsWithReturnedFalse<Field>> : {}) extends
|
|
120
|
+
} ? FieldAttributeToObject<RemoveFieldsWithReturnedFalse<Field>> : {}) extends infer T_1 ? { [K in keyof T_1]: T_1[K] } : never);
|
|
122
121
|
Organization: InferOrganization<CO>;
|
|
123
122
|
Invitation: InferInvitation<CO>;
|
|
124
123
|
Member: InferMember<CO>;
|
|
125
124
|
Team: InferTeam<CO>;
|
|
126
125
|
};
|
|
127
126
|
organization: {
|
|
128
|
-
checkRolePermission: <R extends CO extends {
|
|
127
|
+
checkRolePermission: <R extends (CO extends {
|
|
129
128
|
roles: any;
|
|
130
|
-
} ? keyof CO["roles"] : "admin" | "member" | "owner">(data: {
|
|
129
|
+
} ? keyof CO["roles"] : "admin" | "member" | "owner")>(data: {
|
|
131
130
|
permissions: { [key in keyof (CO["ac"] extends AccessControl<infer S extends Statements> ? S : {
|
|
132
131
|
readonly organization: readonly ["update", "delete"];
|
|
133
132
|
readonly member: readonly ["create", "update", "delete"];
|
|
@@ -146,17 +145,17 @@ declare const organizationClient: <CO extends OrganizationClientOptions>(options
|
|
|
146
145
|
readonly invitation: readonly ["create", "cancel"];
|
|
147
146
|
readonly team: readonly ["create", "update", "delete"];
|
|
148
147
|
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
149
|
-
})[key]> : never)[] | undefined
|
|
148
|
+
})[key]> : never)[] | undefined };
|
|
150
149
|
} & {
|
|
151
150
|
role: R;
|
|
152
151
|
}) => boolean;
|
|
153
152
|
};
|
|
154
153
|
};
|
|
155
154
|
getAtoms: ($fetch: BetterFetch) => {
|
|
156
|
-
$listOrg:
|
|
157
|
-
$activeOrgSignal:
|
|
158
|
-
$activeMemberSignal:
|
|
159
|
-
$activeMemberRoleSignal:
|
|
155
|
+
$listOrg: _$nanostores.PreinitializedWritableAtom<boolean> & object;
|
|
156
|
+
$activeOrgSignal: _$nanostores.PreinitializedWritableAtom<boolean> & object;
|
|
157
|
+
$activeMemberSignal: _$nanostores.PreinitializedWritableAtom<boolean> & object;
|
|
158
|
+
$activeMemberRoleSignal: _$nanostores.PreinitializedWritableAtom<boolean> & object;
|
|
160
159
|
activeOrganization: AuthQueryAtom<Prettify<({
|
|
161
160
|
id: string;
|
|
162
161
|
name: string;
|
|
@@ -168,7 +167,7 @@ declare const organizationClient: <CO extends OrganizationClientOptions>(options
|
|
|
168
167
|
organization?: {
|
|
169
168
|
additionalFields: infer Field extends Record<string, DBFieldAttribute>;
|
|
170
169
|
} | undefined;
|
|
171
|
-
} ? FieldAttributeToObject<RemoveFieldsWithReturnedFalse<Field>> : {}) extends
|
|
170
|
+
} ? FieldAttributeToObject<RemoveFieldsWithReturnedFalse<Field>> : {}) extends infer T ? { [K in keyof T]: T[K] } : never) & {
|
|
172
171
|
members: InferMember<CO>[];
|
|
173
172
|
invitations: InferInvitation<CO>[];
|
|
174
173
|
}>>;
|
|
@@ -183,7 +182,7 @@ declare const organizationClient: <CO extends OrganizationClientOptions>(options
|
|
|
183
182
|
organization?: {
|
|
184
183
|
additionalFields: infer Field extends Record<string, DBFieldAttribute>;
|
|
185
184
|
} | undefined;
|
|
186
|
-
} ? FieldAttributeToObject<RemoveFieldsWithReturnedFalse<Field>> : {}) extends
|
|
185
|
+
} ? FieldAttributeToObject<RemoveFieldsWithReturnedFalse<Field>> : {}) extends infer T_1 ? { [K in keyof T_1]: T_1[K] } : never)[]>;
|
|
187
186
|
activeMember: AuthQueryAtom<{
|
|
188
187
|
id: string;
|
|
189
188
|
organizationId: string;
|
|
@@ -216,69 +215,69 @@ declare const organizationClient: <CO extends OrganizationClientOptions>(options
|
|
|
216
215
|
signal: "$activeMemberRoleSignal";
|
|
217
216
|
})[];
|
|
218
217
|
$ERROR_CODES: {
|
|
219
|
-
YOU_ARE_NOT_ALLOWED_TO_CREATE_A_NEW_ORGANIZATION:
|
|
220
|
-
YOU_HAVE_REACHED_THE_MAXIMUM_NUMBER_OF_ORGANIZATIONS:
|
|
221
|
-
ORGANIZATION_ALREADY_EXISTS:
|
|
222
|
-
ORGANIZATION_SLUG_ALREADY_TAKEN:
|
|
223
|
-
ORGANIZATION_NOT_FOUND:
|
|
224
|
-
USER_IS_NOT_A_MEMBER_OF_THE_ORGANIZATION:
|
|
225
|
-
YOU_ARE_NOT_ALLOWED_TO_UPDATE_THIS_ORGANIZATION:
|
|
226
|
-
YOU_ARE_NOT_ALLOWED_TO_DELETE_THIS_ORGANIZATION:
|
|
227
|
-
NO_ACTIVE_ORGANIZATION:
|
|
228
|
-
USER_IS_ALREADY_A_MEMBER_OF_THIS_ORGANIZATION:
|
|
229
|
-
MEMBER_NOT_FOUND:
|
|
230
|
-
ROLE_NOT_FOUND:
|
|
231
|
-
YOU_ARE_NOT_ALLOWED_TO_CREATE_A_NEW_TEAM:
|
|
232
|
-
TEAM_ALREADY_EXISTS:
|
|
233
|
-
TEAM_NOT_FOUND:
|
|
234
|
-
YOU_CANNOT_LEAVE_THE_ORGANIZATION_AS_THE_ONLY_OWNER:
|
|
235
|
-
YOU_CANNOT_LEAVE_THE_ORGANIZATION_WITHOUT_AN_OWNER:
|
|
236
|
-
YOU_ARE_NOT_ALLOWED_TO_DELETE_THIS_MEMBER:
|
|
237
|
-
YOU_ARE_NOT_ALLOWED_TO_INVITE_USERS_TO_THIS_ORGANIZATION:
|
|
238
|
-
USER_IS_ALREADY_INVITED_TO_THIS_ORGANIZATION:
|
|
239
|
-
INVITATION_NOT_FOUND:
|
|
240
|
-
YOU_ARE_NOT_THE_RECIPIENT_OF_THE_INVITATION:
|
|
241
|
-
EMAIL_VERIFICATION_REQUIRED_BEFORE_ACCEPTING_OR_REJECTING_INVITATION:
|
|
242
|
-
EMAIL_VERIFICATION_REQUIRED_FOR_INVITATION:
|
|
243
|
-
YOU_ARE_NOT_ALLOWED_TO_CANCEL_THIS_INVITATION:
|
|
244
|
-
INVITER_IS_NO_LONGER_A_MEMBER_OF_THE_ORGANIZATION:
|
|
245
|
-
YOU_ARE_NOT_ALLOWED_TO_INVITE_USER_WITH_THIS_ROLE:
|
|
246
|
-
FAILED_TO_RETRIEVE_INVITATION:
|
|
247
|
-
YOU_HAVE_REACHED_THE_MAXIMUM_NUMBER_OF_TEAMS:
|
|
248
|
-
UNABLE_TO_REMOVE_LAST_TEAM:
|
|
249
|
-
YOU_ARE_NOT_ALLOWED_TO_UPDATE_THIS_MEMBER:
|
|
250
|
-
ORGANIZATION_MEMBERSHIP_LIMIT_REACHED:
|
|
251
|
-
YOU_ARE_NOT_ALLOWED_TO_CREATE_TEAMS_IN_THIS_ORGANIZATION:
|
|
252
|
-
YOU_ARE_NOT_ALLOWED_TO_DELETE_TEAMS_IN_THIS_ORGANIZATION:
|
|
253
|
-
YOU_ARE_NOT_ALLOWED_TO_UPDATE_THIS_TEAM:
|
|
254
|
-
YOU_ARE_NOT_ALLOWED_TO_DELETE_THIS_TEAM:
|
|
255
|
-
INVITATION_LIMIT_REACHED:
|
|
256
|
-
TEAM_MEMBER_LIMIT_REACHED:
|
|
257
|
-
USER_IS_NOT_A_MEMBER_OF_THE_TEAM:
|
|
258
|
-
YOU_CAN_NOT_ACCESS_THE_MEMBERS_OF_THIS_TEAM:
|
|
259
|
-
YOU_DO_NOT_HAVE_AN_ACTIVE_TEAM:
|
|
260
|
-
YOU_ARE_NOT_ALLOWED_TO_CREATE_A_NEW_TEAM_MEMBER:
|
|
261
|
-
YOU_ARE_NOT_ALLOWED_TO_REMOVE_A_TEAM_MEMBER:
|
|
262
|
-
YOU_ARE_NOT_ALLOWED_TO_ACCESS_THIS_ORGANIZATION:
|
|
263
|
-
YOU_ARE_NOT_A_MEMBER_OF_THIS_ORGANIZATION:
|
|
264
|
-
MISSING_AC_INSTANCE:
|
|
265
|
-
YOU_MUST_BE_IN_AN_ORGANIZATION_TO_CREATE_A_ROLE:
|
|
266
|
-
YOU_ARE_NOT_ALLOWED_TO_CREATE_A_ROLE:
|
|
267
|
-
YOU_ARE_NOT_ALLOWED_TO_UPDATE_A_ROLE:
|
|
268
|
-
YOU_ARE_NOT_ALLOWED_TO_DELETE_A_ROLE:
|
|
269
|
-
YOU_ARE_NOT_ALLOWED_TO_READ_A_ROLE:
|
|
270
|
-
YOU_ARE_NOT_ALLOWED_TO_LIST_A_ROLE:
|
|
271
|
-
YOU_ARE_NOT_ALLOWED_TO_GET_A_ROLE:
|
|
272
|
-
TOO_MANY_ROLES:
|
|
273
|
-
INVALID_RESOURCE:
|
|
274
|
-
ROLE_NAME_IS_ALREADY_TAKEN:
|
|
275
|
-
CANNOT_DELETE_A_PRE_DEFINED_ROLE:
|
|
276
|
-
ROLE_IS_ASSIGNED_TO_MEMBERS:
|
|
277
|
-
INVALID_TEAM_ID:
|
|
218
|
+
YOU_ARE_NOT_ALLOWED_TO_CREATE_A_NEW_ORGANIZATION: _$_better_auth_core_utils_error_codes0.RawError<"YOU_ARE_NOT_ALLOWED_TO_CREATE_A_NEW_ORGANIZATION">;
|
|
219
|
+
YOU_HAVE_REACHED_THE_MAXIMUM_NUMBER_OF_ORGANIZATIONS: _$_better_auth_core_utils_error_codes0.RawError<"YOU_HAVE_REACHED_THE_MAXIMUM_NUMBER_OF_ORGANIZATIONS">;
|
|
220
|
+
ORGANIZATION_ALREADY_EXISTS: _$_better_auth_core_utils_error_codes0.RawError<"ORGANIZATION_ALREADY_EXISTS">;
|
|
221
|
+
ORGANIZATION_SLUG_ALREADY_TAKEN: _$_better_auth_core_utils_error_codes0.RawError<"ORGANIZATION_SLUG_ALREADY_TAKEN">;
|
|
222
|
+
ORGANIZATION_NOT_FOUND: _$_better_auth_core_utils_error_codes0.RawError<"ORGANIZATION_NOT_FOUND">;
|
|
223
|
+
USER_IS_NOT_A_MEMBER_OF_THE_ORGANIZATION: _$_better_auth_core_utils_error_codes0.RawError<"USER_IS_NOT_A_MEMBER_OF_THE_ORGANIZATION">;
|
|
224
|
+
YOU_ARE_NOT_ALLOWED_TO_UPDATE_THIS_ORGANIZATION: _$_better_auth_core_utils_error_codes0.RawError<"YOU_ARE_NOT_ALLOWED_TO_UPDATE_THIS_ORGANIZATION">;
|
|
225
|
+
YOU_ARE_NOT_ALLOWED_TO_DELETE_THIS_ORGANIZATION: _$_better_auth_core_utils_error_codes0.RawError<"YOU_ARE_NOT_ALLOWED_TO_DELETE_THIS_ORGANIZATION">;
|
|
226
|
+
NO_ACTIVE_ORGANIZATION: _$_better_auth_core_utils_error_codes0.RawError<"NO_ACTIVE_ORGANIZATION">;
|
|
227
|
+
USER_IS_ALREADY_A_MEMBER_OF_THIS_ORGANIZATION: _$_better_auth_core_utils_error_codes0.RawError<"USER_IS_ALREADY_A_MEMBER_OF_THIS_ORGANIZATION">;
|
|
228
|
+
MEMBER_NOT_FOUND: _$_better_auth_core_utils_error_codes0.RawError<"MEMBER_NOT_FOUND">;
|
|
229
|
+
ROLE_NOT_FOUND: _$_better_auth_core_utils_error_codes0.RawError<"ROLE_NOT_FOUND">;
|
|
230
|
+
YOU_ARE_NOT_ALLOWED_TO_CREATE_A_NEW_TEAM: _$_better_auth_core_utils_error_codes0.RawError<"YOU_ARE_NOT_ALLOWED_TO_CREATE_A_NEW_TEAM">;
|
|
231
|
+
TEAM_ALREADY_EXISTS: _$_better_auth_core_utils_error_codes0.RawError<"TEAM_ALREADY_EXISTS">;
|
|
232
|
+
TEAM_NOT_FOUND: _$_better_auth_core_utils_error_codes0.RawError<"TEAM_NOT_FOUND">;
|
|
233
|
+
YOU_CANNOT_LEAVE_THE_ORGANIZATION_AS_THE_ONLY_OWNER: _$_better_auth_core_utils_error_codes0.RawError<"YOU_CANNOT_LEAVE_THE_ORGANIZATION_AS_THE_ONLY_OWNER">;
|
|
234
|
+
YOU_CANNOT_LEAVE_THE_ORGANIZATION_WITHOUT_AN_OWNER: _$_better_auth_core_utils_error_codes0.RawError<"YOU_CANNOT_LEAVE_THE_ORGANIZATION_WITHOUT_AN_OWNER">;
|
|
235
|
+
YOU_ARE_NOT_ALLOWED_TO_DELETE_THIS_MEMBER: _$_better_auth_core_utils_error_codes0.RawError<"YOU_ARE_NOT_ALLOWED_TO_DELETE_THIS_MEMBER">;
|
|
236
|
+
YOU_ARE_NOT_ALLOWED_TO_INVITE_USERS_TO_THIS_ORGANIZATION: _$_better_auth_core_utils_error_codes0.RawError<"YOU_ARE_NOT_ALLOWED_TO_INVITE_USERS_TO_THIS_ORGANIZATION">;
|
|
237
|
+
USER_IS_ALREADY_INVITED_TO_THIS_ORGANIZATION: _$_better_auth_core_utils_error_codes0.RawError<"USER_IS_ALREADY_INVITED_TO_THIS_ORGANIZATION">;
|
|
238
|
+
INVITATION_NOT_FOUND: _$_better_auth_core_utils_error_codes0.RawError<"INVITATION_NOT_FOUND">;
|
|
239
|
+
YOU_ARE_NOT_THE_RECIPIENT_OF_THE_INVITATION: _$_better_auth_core_utils_error_codes0.RawError<"YOU_ARE_NOT_THE_RECIPIENT_OF_THE_INVITATION">;
|
|
240
|
+
EMAIL_VERIFICATION_REQUIRED_BEFORE_ACCEPTING_OR_REJECTING_INVITATION: _$_better_auth_core_utils_error_codes0.RawError<"EMAIL_VERIFICATION_REQUIRED_BEFORE_ACCEPTING_OR_REJECTING_INVITATION">;
|
|
241
|
+
EMAIL_VERIFICATION_REQUIRED_FOR_INVITATION: _$_better_auth_core_utils_error_codes0.RawError<"EMAIL_VERIFICATION_REQUIRED_FOR_INVITATION">;
|
|
242
|
+
YOU_ARE_NOT_ALLOWED_TO_CANCEL_THIS_INVITATION: _$_better_auth_core_utils_error_codes0.RawError<"YOU_ARE_NOT_ALLOWED_TO_CANCEL_THIS_INVITATION">;
|
|
243
|
+
INVITER_IS_NO_LONGER_A_MEMBER_OF_THE_ORGANIZATION: _$_better_auth_core_utils_error_codes0.RawError<"INVITER_IS_NO_LONGER_A_MEMBER_OF_THE_ORGANIZATION">;
|
|
244
|
+
YOU_ARE_NOT_ALLOWED_TO_INVITE_USER_WITH_THIS_ROLE: _$_better_auth_core_utils_error_codes0.RawError<"YOU_ARE_NOT_ALLOWED_TO_INVITE_USER_WITH_THIS_ROLE">;
|
|
245
|
+
FAILED_TO_RETRIEVE_INVITATION: _$_better_auth_core_utils_error_codes0.RawError<"FAILED_TO_RETRIEVE_INVITATION">;
|
|
246
|
+
YOU_HAVE_REACHED_THE_MAXIMUM_NUMBER_OF_TEAMS: _$_better_auth_core_utils_error_codes0.RawError<"YOU_HAVE_REACHED_THE_MAXIMUM_NUMBER_OF_TEAMS">;
|
|
247
|
+
UNABLE_TO_REMOVE_LAST_TEAM: _$_better_auth_core_utils_error_codes0.RawError<"UNABLE_TO_REMOVE_LAST_TEAM">;
|
|
248
|
+
YOU_ARE_NOT_ALLOWED_TO_UPDATE_THIS_MEMBER: _$_better_auth_core_utils_error_codes0.RawError<"YOU_ARE_NOT_ALLOWED_TO_UPDATE_THIS_MEMBER">;
|
|
249
|
+
ORGANIZATION_MEMBERSHIP_LIMIT_REACHED: _$_better_auth_core_utils_error_codes0.RawError<"ORGANIZATION_MEMBERSHIP_LIMIT_REACHED">;
|
|
250
|
+
YOU_ARE_NOT_ALLOWED_TO_CREATE_TEAMS_IN_THIS_ORGANIZATION: _$_better_auth_core_utils_error_codes0.RawError<"YOU_ARE_NOT_ALLOWED_TO_CREATE_TEAMS_IN_THIS_ORGANIZATION">;
|
|
251
|
+
YOU_ARE_NOT_ALLOWED_TO_DELETE_TEAMS_IN_THIS_ORGANIZATION: _$_better_auth_core_utils_error_codes0.RawError<"YOU_ARE_NOT_ALLOWED_TO_DELETE_TEAMS_IN_THIS_ORGANIZATION">;
|
|
252
|
+
YOU_ARE_NOT_ALLOWED_TO_UPDATE_THIS_TEAM: _$_better_auth_core_utils_error_codes0.RawError<"YOU_ARE_NOT_ALLOWED_TO_UPDATE_THIS_TEAM">;
|
|
253
|
+
YOU_ARE_NOT_ALLOWED_TO_DELETE_THIS_TEAM: _$_better_auth_core_utils_error_codes0.RawError<"YOU_ARE_NOT_ALLOWED_TO_DELETE_THIS_TEAM">;
|
|
254
|
+
INVITATION_LIMIT_REACHED: _$_better_auth_core_utils_error_codes0.RawError<"INVITATION_LIMIT_REACHED">;
|
|
255
|
+
TEAM_MEMBER_LIMIT_REACHED: _$_better_auth_core_utils_error_codes0.RawError<"TEAM_MEMBER_LIMIT_REACHED">;
|
|
256
|
+
USER_IS_NOT_A_MEMBER_OF_THE_TEAM: _$_better_auth_core_utils_error_codes0.RawError<"USER_IS_NOT_A_MEMBER_OF_THE_TEAM">;
|
|
257
|
+
YOU_CAN_NOT_ACCESS_THE_MEMBERS_OF_THIS_TEAM: _$_better_auth_core_utils_error_codes0.RawError<"YOU_CAN_NOT_ACCESS_THE_MEMBERS_OF_THIS_TEAM">;
|
|
258
|
+
YOU_DO_NOT_HAVE_AN_ACTIVE_TEAM: _$_better_auth_core_utils_error_codes0.RawError<"YOU_DO_NOT_HAVE_AN_ACTIVE_TEAM">;
|
|
259
|
+
YOU_ARE_NOT_ALLOWED_TO_CREATE_A_NEW_TEAM_MEMBER: _$_better_auth_core_utils_error_codes0.RawError<"YOU_ARE_NOT_ALLOWED_TO_CREATE_A_NEW_TEAM_MEMBER">;
|
|
260
|
+
YOU_ARE_NOT_ALLOWED_TO_REMOVE_A_TEAM_MEMBER: _$_better_auth_core_utils_error_codes0.RawError<"YOU_ARE_NOT_ALLOWED_TO_REMOVE_A_TEAM_MEMBER">;
|
|
261
|
+
YOU_ARE_NOT_ALLOWED_TO_ACCESS_THIS_ORGANIZATION: _$_better_auth_core_utils_error_codes0.RawError<"YOU_ARE_NOT_ALLOWED_TO_ACCESS_THIS_ORGANIZATION">;
|
|
262
|
+
YOU_ARE_NOT_A_MEMBER_OF_THIS_ORGANIZATION: _$_better_auth_core_utils_error_codes0.RawError<"YOU_ARE_NOT_A_MEMBER_OF_THIS_ORGANIZATION">;
|
|
263
|
+
MISSING_AC_INSTANCE: _$_better_auth_core_utils_error_codes0.RawError<"MISSING_AC_INSTANCE">;
|
|
264
|
+
YOU_MUST_BE_IN_AN_ORGANIZATION_TO_CREATE_A_ROLE: _$_better_auth_core_utils_error_codes0.RawError<"YOU_MUST_BE_IN_AN_ORGANIZATION_TO_CREATE_A_ROLE">;
|
|
265
|
+
YOU_ARE_NOT_ALLOWED_TO_CREATE_A_ROLE: _$_better_auth_core_utils_error_codes0.RawError<"YOU_ARE_NOT_ALLOWED_TO_CREATE_A_ROLE">;
|
|
266
|
+
YOU_ARE_NOT_ALLOWED_TO_UPDATE_A_ROLE: _$_better_auth_core_utils_error_codes0.RawError<"YOU_ARE_NOT_ALLOWED_TO_UPDATE_A_ROLE">;
|
|
267
|
+
YOU_ARE_NOT_ALLOWED_TO_DELETE_A_ROLE: _$_better_auth_core_utils_error_codes0.RawError<"YOU_ARE_NOT_ALLOWED_TO_DELETE_A_ROLE">;
|
|
268
|
+
YOU_ARE_NOT_ALLOWED_TO_READ_A_ROLE: _$_better_auth_core_utils_error_codes0.RawError<"YOU_ARE_NOT_ALLOWED_TO_READ_A_ROLE">;
|
|
269
|
+
YOU_ARE_NOT_ALLOWED_TO_LIST_A_ROLE: _$_better_auth_core_utils_error_codes0.RawError<"YOU_ARE_NOT_ALLOWED_TO_LIST_A_ROLE">;
|
|
270
|
+
YOU_ARE_NOT_ALLOWED_TO_GET_A_ROLE: _$_better_auth_core_utils_error_codes0.RawError<"YOU_ARE_NOT_ALLOWED_TO_GET_A_ROLE">;
|
|
271
|
+
TOO_MANY_ROLES: _$_better_auth_core_utils_error_codes0.RawError<"TOO_MANY_ROLES">;
|
|
272
|
+
INVALID_RESOURCE: _$_better_auth_core_utils_error_codes0.RawError<"INVALID_RESOURCE">;
|
|
273
|
+
ROLE_NAME_IS_ALREADY_TAKEN: _$_better_auth_core_utils_error_codes0.RawError<"ROLE_NAME_IS_ALREADY_TAKEN">;
|
|
274
|
+
CANNOT_DELETE_A_PRE_DEFINED_ROLE: _$_better_auth_core_utils_error_codes0.RawError<"CANNOT_DELETE_A_PRE_DEFINED_ROLE">;
|
|
275
|
+
ROLE_IS_ASSIGNED_TO_MEMBERS: _$_better_auth_core_utils_error_codes0.RawError<"ROLE_IS_ASSIGNED_TO_MEMBERS">;
|
|
276
|
+
INVALID_TEAM_ID: _$_better_auth_core_utils_error_codes0.RawError<"INVALID_TEAM_ID">;
|
|
278
277
|
};
|
|
279
278
|
};
|
|
280
279
|
declare const inferOrgAdditionalFields: <O extends {
|
|
281
|
-
options: BetterAuthOptions;
|
|
280
|
+
options: BetterAuthOptions$1;
|
|
282
281
|
}, S extends OrganizationOptions["schema"] = undefined>(schema?: S | undefined) => undefined extends S ? O extends Object ? O extends {
|
|
283
282
|
session?: {
|
|
284
283
|
fields?: {
|
|
@@ -288,32 +287,32 @@ declare const inferOrgAdditionalFields: <O extends {
|
|
|
288
287
|
};
|
|
289
288
|
organization?: {
|
|
290
289
|
modelName?: string;
|
|
291
|
-
fields?: { [key in keyof Omit<Organization, "id">]?: string
|
|
292
|
-
additionalFields?: { [key in string]: DBFieldAttribute
|
|
290
|
+
fields?: { [key in keyof Omit<Organization, "id">]?: string };
|
|
291
|
+
additionalFields?: { [key in string]: DBFieldAttribute };
|
|
293
292
|
};
|
|
294
293
|
member?: {
|
|
295
294
|
modelName?: string;
|
|
296
|
-
fields?: { [key in keyof Omit<Member, "id">]?: string
|
|
297
|
-
additionalFields?: { [key in string]: DBFieldAttribute
|
|
295
|
+
fields?: { [key in keyof Omit<Member, "id">]?: string };
|
|
296
|
+
additionalFields?: { [key in string]: DBFieldAttribute };
|
|
298
297
|
};
|
|
299
298
|
invitation?: {
|
|
300
299
|
modelName?: string;
|
|
301
|
-
fields?: { [key in keyof Omit<Invitation, "id">]?: string
|
|
302
|
-
additionalFields?: { [key in string]: DBFieldAttribute
|
|
300
|
+
fields?: { [key in keyof Omit<Invitation, "id">]?: string };
|
|
301
|
+
additionalFields?: { [key in string]: DBFieldAttribute };
|
|
303
302
|
};
|
|
304
303
|
team?: {
|
|
305
304
|
modelName?: string;
|
|
306
|
-
fields?: { [key in keyof Omit<Team, "id">]?: string
|
|
307
|
-
additionalFields?: { [key in string]: DBFieldAttribute
|
|
305
|
+
fields?: { [key in keyof Omit<Team, "id">]?: string };
|
|
306
|
+
additionalFields?: { [key in string]: DBFieldAttribute };
|
|
308
307
|
};
|
|
309
308
|
teamMember?: {
|
|
310
309
|
modelName?: string;
|
|
311
|
-
fields?: { [key in keyof Omit<TeamMember, "id">]?: string
|
|
310
|
+
fields?: { [key in keyof Omit<TeamMember, "id">]?: string };
|
|
312
311
|
};
|
|
313
312
|
organizationRole?: {
|
|
314
313
|
modelName?: string;
|
|
315
|
-
fields?: { [key in keyof Omit<OrganizationRole, "id">]?: string
|
|
316
|
-
additionalFields?: { [key in string]: DBFieldAttribute
|
|
314
|
+
fields?: { [key in keyof Omit<OrganizationRole, "id">]?: string };
|
|
315
|
+
additionalFields?: { [key in string]: DBFieldAttribute };
|
|
317
316
|
};
|
|
318
317
|
} ? O : ((O extends {
|
|
319
318
|
options: any;
|
|
@@ -321,7 +320,7 @@ declare const inferOrgAdditionalFields: <O extends {
|
|
|
321
320
|
options: {
|
|
322
321
|
plugins: [];
|
|
323
322
|
};
|
|
324
|
-
})["options"]["plugins"][number] extends
|
|
323
|
+
})["options"]["plugins"][number] extends infer T ? T extends (O extends {
|
|
325
324
|
options: any;
|
|
326
325
|
} ? O : {
|
|
327
326
|
options: {
|
|
@@ -342,35 +341,35 @@ declare const inferOrgAdditionalFields: <O extends {
|
|
|
342
341
|
};
|
|
343
342
|
organization?: {
|
|
344
343
|
modelName?: string;
|
|
345
|
-
fields?: { [key in keyof Omit<Organization, "id">]?: string
|
|
346
|
-
additionalFields?: { [key in string]: DBFieldAttribute
|
|
344
|
+
fields?: { [key in keyof Omit<Organization, "id">]?: string };
|
|
345
|
+
additionalFields?: { [key in string]: DBFieldAttribute };
|
|
347
346
|
};
|
|
348
347
|
member?: {
|
|
349
348
|
modelName?: string;
|
|
350
|
-
fields?: { [key in keyof Omit<Member, "id">]?: string
|
|
351
|
-
additionalFields?: { [key in string]: DBFieldAttribute
|
|
349
|
+
fields?: { [key in keyof Omit<Member, "id">]?: string };
|
|
350
|
+
additionalFields?: { [key in string]: DBFieldAttribute };
|
|
352
351
|
};
|
|
353
352
|
invitation?: {
|
|
354
353
|
modelName?: string;
|
|
355
|
-
fields?: { [key in keyof Omit<Invitation, "id">]?: string
|
|
356
|
-
additionalFields?: { [key in string]: DBFieldAttribute
|
|
354
|
+
fields?: { [key in keyof Omit<Invitation, "id">]?: string };
|
|
355
|
+
additionalFields?: { [key in string]: DBFieldAttribute };
|
|
357
356
|
};
|
|
358
357
|
team?: {
|
|
359
358
|
modelName?: string;
|
|
360
|
-
fields?: { [key in keyof Omit<Team, "id">]?: string
|
|
361
|
-
additionalFields?: { [key in string]: DBFieldAttribute
|
|
359
|
+
fields?: { [key in keyof Omit<Team, "id">]?: string };
|
|
360
|
+
additionalFields?: { [key in string]: DBFieldAttribute };
|
|
362
361
|
};
|
|
363
362
|
teamMember?: {
|
|
364
363
|
modelName?: string;
|
|
365
|
-
fields?: { [key in keyof Omit<TeamMember, "id">]?: string
|
|
364
|
+
fields?: { [key in keyof Omit<TeamMember, "id">]?: string };
|
|
366
365
|
};
|
|
367
366
|
organizationRole?: {
|
|
368
367
|
modelName?: string;
|
|
369
|
-
fields?: { [key in keyof Omit<OrganizationRole, "id">]?: string
|
|
370
|
-
additionalFields?: { [key in string]: DBFieldAttribute
|
|
368
|
+
fields?: { [key in keyof Omit<OrganizationRole, "id">]?: string };
|
|
369
|
+
additionalFields?: { [key in string]: DBFieldAttribute };
|
|
371
370
|
};
|
|
372
371
|
} | undefined ? { [K in keyof S_1 as S_1[K] extends {
|
|
373
372
|
additionalFields: unknown;
|
|
374
|
-
} ? K : never]: S_1[K]
|
|
373
|
+
} ? K : never]: S_1[K] } : undefined : undefined : undefined : S;
|
|
375
374
|
//#endregion
|
|
376
|
-
export {
|
|
375
|
+
export { OrganizationClientOptions, clientSideHasPermission, inferOrgAdditionalFields, organizationClient };
|
|
@@ -47,18 +47,15 @@ const organizationClient = (options) => {
|
|
|
47
47
|
}),
|
|
48
48
|
getAtoms: ($fetch) => {
|
|
49
49
|
const listOrganizations = useAuthQuery($listOrg, "/organization/list", $fetch, { method: "GET" });
|
|
50
|
-
const activeOrganization = useAuthQuery([$activeOrgSignal], "/organization/get-full-organization", $fetch, () => ({ method: "GET" }));
|
|
51
|
-
const activeMember = useAuthQuery([$activeOrgSignal, $activeMemberSignal], "/organization/get-active-member", $fetch, { method: "GET" });
|
|
52
|
-
const activeMemberRole = useAuthQuery([$activeOrgSignal, $activeMemberRoleSignal], "/organization/get-active-member-role", $fetch, { method: "GET" });
|
|
53
50
|
return {
|
|
54
51
|
$listOrg,
|
|
55
52
|
$activeOrgSignal,
|
|
56
53
|
$activeMemberSignal,
|
|
57
54
|
$activeMemberRoleSignal,
|
|
58
|
-
activeOrganization,
|
|
55
|
+
activeOrganization: useAuthQuery([$activeOrgSignal], "/organization/get-full-organization", $fetch, () => ({ method: "GET" })),
|
|
59
56
|
listOrganizations,
|
|
60
|
-
activeMember,
|
|
61
|
-
activeMemberRole
|
|
57
|
+
activeMember: useAuthQuery([$activeOrgSignal, $activeMemberSignal], "/organization/get-active-member", $fetch, { method: "GET" }),
|
|
58
|
+
activeMemberRole: useAuthQuery([$activeOrgSignal, $activeMemberRoleSignal], "/organization/get-active-member-role", $fetch, { method: "GET" })
|
|
62
59
|
};
|
|
63
60
|
},
|
|
64
61
|
pathMethods: {
|
|
@@ -104,4 +101,4 @@ const inferOrgAdditionalFields = (schema) => {
|
|
|
104
101
|
return {};
|
|
105
102
|
};
|
|
106
103
|
//#endregion
|
|
107
|
-
export {
|
|
104
|
+
export { clientSideHasPermission, inferOrgAdditionalFields, organizationClient };
|
|
@@ -1,64 +1,66 @@
|
|
|
1
|
+
import * as _$_better_auth_core_utils_error_codes0 from "@better-auth/core/utils/error-codes";
|
|
2
|
+
|
|
1
3
|
//#region src/plugins/organization/error-codes.d.ts
|
|
2
4
|
declare const ORGANIZATION_ERROR_CODES: {
|
|
3
|
-
YOU_ARE_NOT_ALLOWED_TO_CREATE_A_NEW_ORGANIZATION:
|
|
4
|
-
YOU_HAVE_REACHED_THE_MAXIMUM_NUMBER_OF_ORGANIZATIONS:
|
|
5
|
-
ORGANIZATION_ALREADY_EXISTS:
|
|
6
|
-
ORGANIZATION_SLUG_ALREADY_TAKEN:
|
|
7
|
-
ORGANIZATION_NOT_FOUND:
|
|
8
|
-
USER_IS_NOT_A_MEMBER_OF_THE_ORGANIZATION:
|
|
9
|
-
YOU_ARE_NOT_ALLOWED_TO_UPDATE_THIS_ORGANIZATION:
|
|
10
|
-
YOU_ARE_NOT_ALLOWED_TO_DELETE_THIS_ORGANIZATION:
|
|
11
|
-
NO_ACTIVE_ORGANIZATION:
|
|
12
|
-
USER_IS_ALREADY_A_MEMBER_OF_THIS_ORGANIZATION:
|
|
13
|
-
MEMBER_NOT_FOUND:
|
|
14
|
-
ROLE_NOT_FOUND:
|
|
15
|
-
YOU_ARE_NOT_ALLOWED_TO_CREATE_A_NEW_TEAM:
|
|
16
|
-
TEAM_ALREADY_EXISTS:
|
|
17
|
-
TEAM_NOT_FOUND:
|
|
18
|
-
YOU_CANNOT_LEAVE_THE_ORGANIZATION_AS_THE_ONLY_OWNER:
|
|
19
|
-
YOU_CANNOT_LEAVE_THE_ORGANIZATION_WITHOUT_AN_OWNER:
|
|
20
|
-
YOU_ARE_NOT_ALLOWED_TO_DELETE_THIS_MEMBER:
|
|
21
|
-
YOU_ARE_NOT_ALLOWED_TO_INVITE_USERS_TO_THIS_ORGANIZATION:
|
|
22
|
-
USER_IS_ALREADY_INVITED_TO_THIS_ORGANIZATION:
|
|
23
|
-
INVITATION_NOT_FOUND:
|
|
24
|
-
YOU_ARE_NOT_THE_RECIPIENT_OF_THE_INVITATION:
|
|
25
|
-
EMAIL_VERIFICATION_REQUIRED_BEFORE_ACCEPTING_OR_REJECTING_INVITATION:
|
|
26
|
-
EMAIL_VERIFICATION_REQUIRED_FOR_INVITATION:
|
|
27
|
-
YOU_ARE_NOT_ALLOWED_TO_CANCEL_THIS_INVITATION:
|
|
28
|
-
INVITER_IS_NO_LONGER_A_MEMBER_OF_THE_ORGANIZATION:
|
|
29
|
-
YOU_ARE_NOT_ALLOWED_TO_INVITE_USER_WITH_THIS_ROLE:
|
|
30
|
-
FAILED_TO_RETRIEVE_INVITATION:
|
|
31
|
-
YOU_HAVE_REACHED_THE_MAXIMUM_NUMBER_OF_TEAMS:
|
|
32
|
-
UNABLE_TO_REMOVE_LAST_TEAM:
|
|
33
|
-
YOU_ARE_NOT_ALLOWED_TO_UPDATE_THIS_MEMBER:
|
|
34
|
-
ORGANIZATION_MEMBERSHIP_LIMIT_REACHED:
|
|
35
|
-
YOU_ARE_NOT_ALLOWED_TO_CREATE_TEAMS_IN_THIS_ORGANIZATION:
|
|
36
|
-
YOU_ARE_NOT_ALLOWED_TO_DELETE_TEAMS_IN_THIS_ORGANIZATION:
|
|
37
|
-
YOU_ARE_NOT_ALLOWED_TO_UPDATE_THIS_TEAM:
|
|
38
|
-
YOU_ARE_NOT_ALLOWED_TO_DELETE_THIS_TEAM:
|
|
39
|
-
INVITATION_LIMIT_REACHED:
|
|
40
|
-
TEAM_MEMBER_LIMIT_REACHED:
|
|
41
|
-
USER_IS_NOT_A_MEMBER_OF_THE_TEAM:
|
|
42
|
-
YOU_CAN_NOT_ACCESS_THE_MEMBERS_OF_THIS_TEAM:
|
|
43
|
-
YOU_DO_NOT_HAVE_AN_ACTIVE_TEAM:
|
|
44
|
-
YOU_ARE_NOT_ALLOWED_TO_CREATE_A_NEW_TEAM_MEMBER:
|
|
45
|
-
YOU_ARE_NOT_ALLOWED_TO_REMOVE_A_TEAM_MEMBER:
|
|
46
|
-
YOU_ARE_NOT_ALLOWED_TO_ACCESS_THIS_ORGANIZATION:
|
|
47
|
-
YOU_ARE_NOT_A_MEMBER_OF_THIS_ORGANIZATION:
|
|
48
|
-
MISSING_AC_INSTANCE:
|
|
49
|
-
YOU_MUST_BE_IN_AN_ORGANIZATION_TO_CREATE_A_ROLE:
|
|
50
|
-
YOU_ARE_NOT_ALLOWED_TO_CREATE_A_ROLE:
|
|
51
|
-
YOU_ARE_NOT_ALLOWED_TO_UPDATE_A_ROLE:
|
|
52
|
-
YOU_ARE_NOT_ALLOWED_TO_DELETE_A_ROLE:
|
|
53
|
-
YOU_ARE_NOT_ALLOWED_TO_READ_A_ROLE:
|
|
54
|
-
YOU_ARE_NOT_ALLOWED_TO_LIST_A_ROLE:
|
|
55
|
-
YOU_ARE_NOT_ALLOWED_TO_GET_A_ROLE:
|
|
56
|
-
TOO_MANY_ROLES:
|
|
57
|
-
INVALID_RESOURCE:
|
|
58
|
-
ROLE_NAME_IS_ALREADY_TAKEN:
|
|
59
|
-
CANNOT_DELETE_A_PRE_DEFINED_ROLE:
|
|
60
|
-
ROLE_IS_ASSIGNED_TO_MEMBERS:
|
|
61
|
-
INVALID_TEAM_ID:
|
|
5
|
+
YOU_ARE_NOT_ALLOWED_TO_CREATE_A_NEW_ORGANIZATION: _$_better_auth_core_utils_error_codes0.RawError<"YOU_ARE_NOT_ALLOWED_TO_CREATE_A_NEW_ORGANIZATION">;
|
|
6
|
+
YOU_HAVE_REACHED_THE_MAXIMUM_NUMBER_OF_ORGANIZATIONS: _$_better_auth_core_utils_error_codes0.RawError<"YOU_HAVE_REACHED_THE_MAXIMUM_NUMBER_OF_ORGANIZATIONS">;
|
|
7
|
+
ORGANIZATION_ALREADY_EXISTS: _$_better_auth_core_utils_error_codes0.RawError<"ORGANIZATION_ALREADY_EXISTS">;
|
|
8
|
+
ORGANIZATION_SLUG_ALREADY_TAKEN: _$_better_auth_core_utils_error_codes0.RawError<"ORGANIZATION_SLUG_ALREADY_TAKEN">;
|
|
9
|
+
ORGANIZATION_NOT_FOUND: _$_better_auth_core_utils_error_codes0.RawError<"ORGANIZATION_NOT_FOUND">;
|
|
10
|
+
USER_IS_NOT_A_MEMBER_OF_THE_ORGANIZATION: _$_better_auth_core_utils_error_codes0.RawError<"USER_IS_NOT_A_MEMBER_OF_THE_ORGANIZATION">;
|
|
11
|
+
YOU_ARE_NOT_ALLOWED_TO_UPDATE_THIS_ORGANIZATION: _$_better_auth_core_utils_error_codes0.RawError<"YOU_ARE_NOT_ALLOWED_TO_UPDATE_THIS_ORGANIZATION">;
|
|
12
|
+
YOU_ARE_NOT_ALLOWED_TO_DELETE_THIS_ORGANIZATION: _$_better_auth_core_utils_error_codes0.RawError<"YOU_ARE_NOT_ALLOWED_TO_DELETE_THIS_ORGANIZATION">;
|
|
13
|
+
NO_ACTIVE_ORGANIZATION: _$_better_auth_core_utils_error_codes0.RawError<"NO_ACTIVE_ORGANIZATION">;
|
|
14
|
+
USER_IS_ALREADY_A_MEMBER_OF_THIS_ORGANIZATION: _$_better_auth_core_utils_error_codes0.RawError<"USER_IS_ALREADY_A_MEMBER_OF_THIS_ORGANIZATION">;
|
|
15
|
+
MEMBER_NOT_FOUND: _$_better_auth_core_utils_error_codes0.RawError<"MEMBER_NOT_FOUND">;
|
|
16
|
+
ROLE_NOT_FOUND: _$_better_auth_core_utils_error_codes0.RawError<"ROLE_NOT_FOUND">;
|
|
17
|
+
YOU_ARE_NOT_ALLOWED_TO_CREATE_A_NEW_TEAM: _$_better_auth_core_utils_error_codes0.RawError<"YOU_ARE_NOT_ALLOWED_TO_CREATE_A_NEW_TEAM">;
|
|
18
|
+
TEAM_ALREADY_EXISTS: _$_better_auth_core_utils_error_codes0.RawError<"TEAM_ALREADY_EXISTS">;
|
|
19
|
+
TEAM_NOT_FOUND: _$_better_auth_core_utils_error_codes0.RawError<"TEAM_NOT_FOUND">;
|
|
20
|
+
YOU_CANNOT_LEAVE_THE_ORGANIZATION_AS_THE_ONLY_OWNER: _$_better_auth_core_utils_error_codes0.RawError<"YOU_CANNOT_LEAVE_THE_ORGANIZATION_AS_THE_ONLY_OWNER">;
|
|
21
|
+
YOU_CANNOT_LEAVE_THE_ORGANIZATION_WITHOUT_AN_OWNER: _$_better_auth_core_utils_error_codes0.RawError<"YOU_CANNOT_LEAVE_THE_ORGANIZATION_WITHOUT_AN_OWNER">;
|
|
22
|
+
YOU_ARE_NOT_ALLOWED_TO_DELETE_THIS_MEMBER: _$_better_auth_core_utils_error_codes0.RawError<"YOU_ARE_NOT_ALLOWED_TO_DELETE_THIS_MEMBER">;
|
|
23
|
+
YOU_ARE_NOT_ALLOWED_TO_INVITE_USERS_TO_THIS_ORGANIZATION: _$_better_auth_core_utils_error_codes0.RawError<"YOU_ARE_NOT_ALLOWED_TO_INVITE_USERS_TO_THIS_ORGANIZATION">;
|
|
24
|
+
USER_IS_ALREADY_INVITED_TO_THIS_ORGANIZATION: _$_better_auth_core_utils_error_codes0.RawError<"USER_IS_ALREADY_INVITED_TO_THIS_ORGANIZATION">;
|
|
25
|
+
INVITATION_NOT_FOUND: _$_better_auth_core_utils_error_codes0.RawError<"INVITATION_NOT_FOUND">;
|
|
26
|
+
YOU_ARE_NOT_THE_RECIPIENT_OF_THE_INVITATION: _$_better_auth_core_utils_error_codes0.RawError<"YOU_ARE_NOT_THE_RECIPIENT_OF_THE_INVITATION">;
|
|
27
|
+
EMAIL_VERIFICATION_REQUIRED_BEFORE_ACCEPTING_OR_REJECTING_INVITATION: _$_better_auth_core_utils_error_codes0.RawError<"EMAIL_VERIFICATION_REQUIRED_BEFORE_ACCEPTING_OR_REJECTING_INVITATION">;
|
|
28
|
+
EMAIL_VERIFICATION_REQUIRED_FOR_INVITATION: _$_better_auth_core_utils_error_codes0.RawError<"EMAIL_VERIFICATION_REQUIRED_FOR_INVITATION">;
|
|
29
|
+
YOU_ARE_NOT_ALLOWED_TO_CANCEL_THIS_INVITATION: _$_better_auth_core_utils_error_codes0.RawError<"YOU_ARE_NOT_ALLOWED_TO_CANCEL_THIS_INVITATION">;
|
|
30
|
+
INVITER_IS_NO_LONGER_A_MEMBER_OF_THE_ORGANIZATION: _$_better_auth_core_utils_error_codes0.RawError<"INVITER_IS_NO_LONGER_A_MEMBER_OF_THE_ORGANIZATION">;
|
|
31
|
+
YOU_ARE_NOT_ALLOWED_TO_INVITE_USER_WITH_THIS_ROLE: _$_better_auth_core_utils_error_codes0.RawError<"YOU_ARE_NOT_ALLOWED_TO_INVITE_USER_WITH_THIS_ROLE">;
|
|
32
|
+
FAILED_TO_RETRIEVE_INVITATION: _$_better_auth_core_utils_error_codes0.RawError<"FAILED_TO_RETRIEVE_INVITATION">;
|
|
33
|
+
YOU_HAVE_REACHED_THE_MAXIMUM_NUMBER_OF_TEAMS: _$_better_auth_core_utils_error_codes0.RawError<"YOU_HAVE_REACHED_THE_MAXIMUM_NUMBER_OF_TEAMS">;
|
|
34
|
+
UNABLE_TO_REMOVE_LAST_TEAM: _$_better_auth_core_utils_error_codes0.RawError<"UNABLE_TO_REMOVE_LAST_TEAM">;
|
|
35
|
+
YOU_ARE_NOT_ALLOWED_TO_UPDATE_THIS_MEMBER: _$_better_auth_core_utils_error_codes0.RawError<"YOU_ARE_NOT_ALLOWED_TO_UPDATE_THIS_MEMBER">;
|
|
36
|
+
ORGANIZATION_MEMBERSHIP_LIMIT_REACHED: _$_better_auth_core_utils_error_codes0.RawError<"ORGANIZATION_MEMBERSHIP_LIMIT_REACHED">;
|
|
37
|
+
YOU_ARE_NOT_ALLOWED_TO_CREATE_TEAMS_IN_THIS_ORGANIZATION: _$_better_auth_core_utils_error_codes0.RawError<"YOU_ARE_NOT_ALLOWED_TO_CREATE_TEAMS_IN_THIS_ORGANIZATION">;
|
|
38
|
+
YOU_ARE_NOT_ALLOWED_TO_DELETE_TEAMS_IN_THIS_ORGANIZATION: _$_better_auth_core_utils_error_codes0.RawError<"YOU_ARE_NOT_ALLOWED_TO_DELETE_TEAMS_IN_THIS_ORGANIZATION">;
|
|
39
|
+
YOU_ARE_NOT_ALLOWED_TO_UPDATE_THIS_TEAM: _$_better_auth_core_utils_error_codes0.RawError<"YOU_ARE_NOT_ALLOWED_TO_UPDATE_THIS_TEAM">;
|
|
40
|
+
YOU_ARE_NOT_ALLOWED_TO_DELETE_THIS_TEAM: _$_better_auth_core_utils_error_codes0.RawError<"YOU_ARE_NOT_ALLOWED_TO_DELETE_THIS_TEAM">;
|
|
41
|
+
INVITATION_LIMIT_REACHED: _$_better_auth_core_utils_error_codes0.RawError<"INVITATION_LIMIT_REACHED">;
|
|
42
|
+
TEAM_MEMBER_LIMIT_REACHED: _$_better_auth_core_utils_error_codes0.RawError<"TEAM_MEMBER_LIMIT_REACHED">;
|
|
43
|
+
USER_IS_NOT_A_MEMBER_OF_THE_TEAM: _$_better_auth_core_utils_error_codes0.RawError<"USER_IS_NOT_A_MEMBER_OF_THE_TEAM">;
|
|
44
|
+
YOU_CAN_NOT_ACCESS_THE_MEMBERS_OF_THIS_TEAM: _$_better_auth_core_utils_error_codes0.RawError<"YOU_CAN_NOT_ACCESS_THE_MEMBERS_OF_THIS_TEAM">;
|
|
45
|
+
YOU_DO_NOT_HAVE_AN_ACTIVE_TEAM: _$_better_auth_core_utils_error_codes0.RawError<"YOU_DO_NOT_HAVE_AN_ACTIVE_TEAM">;
|
|
46
|
+
YOU_ARE_NOT_ALLOWED_TO_CREATE_A_NEW_TEAM_MEMBER: _$_better_auth_core_utils_error_codes0.RawError<"YOU_ARE_NOT_ALLOWED_TO_CREATE_A_NEW_TEAM_MEMBER">;
|
|
47
|
+
YOU_ARE_NOT_ALLOWED_TO_REMOVE_A_TEAM_MEMBER: _$_better_auth_core_utils_error_codes0.RawError<"YOU_ARE_NOT_ALLOWED_TO_REMOVE_A_TEAM_MEMBER">;
|
|
48
|
+
YOU_ARE_NOT_ALLOWED_TO_ACCESS_THIS_ORGANIZATION: _$_better_auth_core_utils_error_codes0.RawError<"YOU_ARE_NOT_ALLOWED_TO_ACCESS_THIS_ORGANIZATION">;
|
|
49
|
+
YOU_ARE_NOT_A_MEMBER_OF_THIS_ORGANIZATION: _$_better_auth_core_utils_error_codes0.RawError<"YOU_ARE_NOT_A_MEMBER_OF_THIS_ORGANIZATION">;
|
|
50
|
+
MISSING_AC_INSTANCE: _$_better_auth_core_utils_error_codes0.RawError<"MISSING_AC_INSTANCE">;
|
|
51
|
+
YOU_MUST_BE_IN_AN_ORGANIZATION_TO_CREATE_A_ROLE: _$_better_auth_core_utils_error_codes0.RawError<"YOU_MUST_BE_IN_AN_ORGANIZATION_TO_CREATE_A_ROLE">;
|
|
52
|
+
YOU_ARE_NOT_ALLOWED_TO_CREATE_A_ROLE: _$_better_auth_core_utils_error_codes0.RawError<"YOU_ARE_NOT_ALLOWED_TO_CREATE_A_ROLE">;
|
|
53
|
+
YOU_ARE_NOT_ALLOWED_TO_UPDATE_A_ROLE: _$_better_auth_core_utils_error_codes0.RawError<"YOU_ARE_NOT_ALLOWED_TO_UPDATE_A_ROLE">;
|
|
54
|
+
YOU_ARE_NOT_ALLOWED_TO_DELETE_A_ROLE: _$_better_auth_core_utils_error_codes0.RawError<"YOU_ARE_NOT_ALLOWED_TO_DELETE_A_ROLE">;
|
|
55
|
+
YOU_ARE_NOT_ALLOWED_TO_READ_A_ROLE: _$_better_auth_core_utils_error_codes0.RawError<"YOU_ARE_NOT_ALLOWED_TO_READ_A_ROLE">;
|
|
56
|
+
YOU_ARE_NOT_ALLOWED_TO_LIST_A_ROLE: _$_better_auth_core_utils_error_codes0.RawError<"YOU_ARE_NOT_ALLOWED_TO_LIST_A_ROLE">;
|
|
57
|
+
YOU_ARE_NOT_ALLOWED_TO_GET_A_ROLE: _$_better_auth_core_utils_error_codes0.RawError<"YOU_ARE_NOT_ALLOWED_TO_GET_A_ROLE">;
|
|
58
|
+
TOO_MANY_ROLES: _$_better_auth_core_utils_error_codes0.RawError<"TOO_MANY_ROLES">;
|
|
59
|
+
INVALID_RESOURCE: _$_better_auth_core_utils_error_codes0.RawError<"INVALID_RESOURCE">;
|
|
60
|
+
ROLE_NAME_IS_ALREADY_TAKEN: _$_better_auth_core_utils_error_codes0.RawError<"ROLE_NAME_IS_ALREADY_TAKEN">;
|
|
61
|
+
CANNOT_DELETE_A_PRE_DEFINED_ROLE: _$_better_auth_core_utils_error_codes0.RawError<"CANNOT_DELETE_A_PRE_DEFINED_ROLE">;
|
|
62
|
+
ROLE_IS_ASSIGNED_TO_MEMBERS: _$_better_auth_core_utils_error_codes0.RawError<"ROLE_IS_ASSIGNED_TO_MEMBERS">;
|
|
63
|
+
INVALID_TEAM_ID: _$_better_auth_core_utils_error_codes0.RawError<"INVALID_TEAM_ID">;
|
|
62
64
|
};
|
|
63
65
|
//#endregion
|
|
64
66
|
export { ORGANIZATION_ERROR_CODES };
|
|
@@ -20,7 +20,7 @@ const hasPermission = async (input, ctx) => {
|
|
|
20
20
|
throw new APIError("INTERNAL_SERVER_ERROR", { message: "Invalid permissions for role " + role });
|
|
21
21
|
}
|
|
22
22
|
const merged = { ...acRoles[role]?.statements };
|
|
23
|
-
for (const [key, actions] of Object.entries(result.data)) merged[key] = [
|
|
23
|
+
for (const [key, actions] of Object.entries(result.data)) merged[key] = [...new Set([...merged[key] ?? [], ...actions])];
|
|
24
24
|
acRoles[role] = input.options.ac.newRole(merged);
|
|
25
25
|
}
|
|
26
26
|
}
|
|
@@ -3,4 +3,4 @@ import { InferInvitation, InferMember, InferOrganization, InferOrganizationRoles
|
|
|
3
3
|
import { getOrgAdapter } from "./adapter.mjs";
|
|
4
4
|
import { hasPermission } from "./has-permission.mjs";
|
|
5
5
|
import { DefaultOrganizationPlugin, DynamicAccessControlEndpoints, OrganizationCreator, OrganizationEndpoints, OrganizationPlugin, TeamEndpoints, organization, parseRoles } from "./organization.mjs";
|
|
6
|
-
export { DefaultOrganizationPlugin, DynamicAccessControlEndpoints,
|
|
6
|
+
export { DefaultOrganizationPlugin, DynamicAccessControlEndpoints, InferInvitation, InferMember, InferOrganization, InferOrganizationRolesFromOption, InferOrganizationZodRolesFromOption, InferTeam, Invitation, InvitationInput, InvitationStatus, Member, MemberInput, Organization, OrganizationCreator, OrganizationEndpoints, OrganizationInput, OrganizationOptions, OrganizationPlugin, OrganizationRole, OrganizationSchema, Team, TeamEndpoints, TeamInput, TeamMember, TeamMemberInput, defaultRolesSchema, getOrgAdapter, hasPermission, invitationSchema, invitationStatus, memberSchema, organization, organizationRoleSchema, organizationSchema, parseRoles, roleSchema, teamMemberSchema, teamSchema };
|