@gatwech/auth 1.0.0-beta.20 → 1.0.0-beta.22
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/drizzle-adapter/index.mjs +11 -2
- package/dist/adapters/index.d.mts +2 -2
- package/dist/adapters/kysely-adapter/index.mjs +1 -1
- package/dist/adapters/memory-adapter/index.d.mts +1 -1
- package/dist/adapters/memory-adapter/index.mjs +2 -2
- package/dist/adapters/prisma-adapter/index.mjs +1 -1
- package/dist/{admin-BzUJL6tr.mjs → admin-rd-xHhnP.mjs} +1 -1
- package/dist/{anonymous-BjlTk4gl.mjs → anonymous-qSasVeIe.mjs} +1 -1
- package/dist/api/index.d.mts +2 -2
- package/dist/api/index.mjs +2 -2
- package/dist/{api-Dk8Yj_J5.mjs → api-BV65Y-Rk.mjs} +5 -0
- package/dist/{audit-log-DKsUWR8O.mjs → audit-log-DgqHJ-uv.mjs} +132 -63
- package/dist/{auth-vfCyIIeV.mjs → auth-DtOjarwu.mjs} +15 -2
- package/dist/client/index.d.mts +2 -2
- package/dist/client/plugins/index.d.mts +28 -28
- package/dist/client/plugins/index.mjs +2 -2
- package/dist/client/react/index.d.mts +2 -2
- package/dist/{client-4QEb0rUr.mjs → client-CMsC6-rl.mjs} +1 -1
- package/dist/{client-C_qmyez2.d.mts → client-DO9MgP_0.d.mts} +1 -1
- package/dist/{client-F67q-Lbi.d.mts → client-ukvqpcbI.d.mts} +1 -1
- package/dist/cookies/index.d.mts +3 -3
- package/dist/db/index.d.mts +2 -2
- package/dist/db/index.mjs +1 -1
- package/dist/{db-7vHnL1XA.mjs → db-CV59HpEF.mjs} +2 -2
- package/dist/{email-otp-Dw0DypjQ.mjs → email-otp-BmgAht1S.mjs} +1 -1
- package/dist/{generic-oauth-DFj27JY8.mjs → generic-oauth-C5_AXj2z.mjs} +1 -1
- package/dist/{haveibeenpwned-CzNda7Tn.mjs → haveibeenpwned-_3a5amT-.mjs} +1 -1
- package/dist/{index-D57DuhZR.d.mts → index-AiKdOFSd.d.mts} +116 -64
- package/dist/{index-Bml-PCqP.d.mts → index-B4hJVVRn.d.mts} +19 -19
- package/dist/{index-DwPAddfE.d.mts → index-BC0aAKsT.d.mts} +3 -3
- package/dist/{index-Df0KhQRf-BEa5tdwJ.d.mts → index-BL_t8cRp-C4QYBsac.d.mts} +56 -17
- package/dist/{index-DyXi7S2M.d.mts → index-BfLofiXO.d.mts} +10 -10
- package/dist/{index-CP8x1TFq.d.mts → index-BzzhaGLe.d.mts} +6 -6
- package/dist/{index-DFSRYWFI.d.mts → index-CBGNX7W1.d.mts} +6 -6
- package/dist/{index-CofuaNMl.d.mts → index-CRNh-5Tc.d.mts} +7 -7
- package/dist/{index-CNd5jqLl.d.mts → index-CRiKKdkb.d.mts} +6 -6
- package/dist/{index-CsxtcAO0.d.mts → index-CTSeVJJB.d.mts} +1 -1
- package/dist/{index-sb-UFLuo.d.mts → index-CxhQu1HM.d.mts} +2 -2
- package/dist/{index-Dnd8S4S4.d.mts → index-D-rjuF7p.d.mts} +9 -9
- package/dist/{index-XfE0WjTN.d.mts → index-D3uQsW8T.d.mts} +34 -34
- package/dist/{index-4I1YhYhk.d.mts → index-DKirx_GW.d.mts} +4 -4
- package/dist/{index-KhbNmMmG.d.mts → index-DSoiUc1C.d.mts} +167 -167
- package/dist/{index-DTkcY7xH.d.mts → index-Dkm27DLN.d.mts} +10 -10
- package/dist/{index-BsSKcKgO.d.mts → index-Dl0bD1_6.d.mts} +6 -6
- package/dist/{index-DGeoJ4gu.d.mts → index-DlS-HqZR.d.mts} +2 -2
- package/dist/{index-BNhJglHC.d.mts → index-DngQlUSI.d.mts} +114 -114
- package/dist/{index-CC920PPp.d.mts → index-Do8AV4PF.d.mts} +14 -14
- package/dist/{index-CBiGsvDd.d.mts → index-SYRh5FW7.d.mts} +8 -8
- package/dist/{index-BX7rl07Z.d.mts → index-eOfQxlQV.d.mts} +13 -13
- package/dist/{index-D6ku0rUC.d.mts → index-hP8gvyp-.d.mts} +5 -5
- package/dist/{index-CzpdkTdv.d.mts → index-pdl9MzQu.d.mts} +9 -9
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +4 -4
- package/dist/integrations/next-js.d.mts +4 -4
- package/dist/integrations/node.d.mts +2 -2
- package/dist/integrations/react-start.d.mts +4 -4
- package/dist/{jwt-DBN2mu0r.mjs → jwt-Czv-v097.mjs} +1 -1
- package/dist/{kysely-adapter-Bkm1liPW.mjs → kysely-adapter-BidlNTiV.mjs} +4 -2
- package/dist/{magic-link-D9Em1aOR.mjs → magic-link-CJgE0Ngn.mjs} +1 -1
- package/dist/{multi-session-Dno_8DxC.mjs → multi-session-bveCXtQW.mjs} +1 -1
- package/dist/{oauth-proxy-DW-zt8wv.mjs → oauth-proxy-69n1xA8L.mjs} +1 -1
- package/dist/oauth2/index.d.mts +2 -2
- package/dist/oauth2/index.mjs +2 -2
- package/dist/{one-tap-CodeyQb8.mjs → one-tap-Cm1eHuqi.mjs} +1 -1
- package/dist/{organization-CkTKs7bx.mjs → organization-BK3ks97y.mjs} +2 -2
- package/dist/plugins/admin/index.d.mts +3 -3
- package/dist/plugins/admin/index.mjs +3 -3
- package/dist/plugins/anonymous/index.d.mts +3 -3
- package/dist/plugins/anonymous/index.mjs +3 -3
- package/dist/plugins/audit-log/client.d.mts +24 -24
- package/dist/plugins/audit-log/index.d.mts +23 -23
- package/dist/plugins/audit-log/index.mjs +3 -3
- package/dist/plugins/bearer/index.d.mts +1 -1
- package/dist/plugins/captcha/index.d.mts +1 -1
- package/dist/plugins/custom-session/index.d.mts +3 -3
- package/dist/plugins/custom-session/index.mjs +2 -2
- package/dist/plugins/device-authorization/index.d.mts +1 -1
- package/dist/plugins/device-authorization/index.mjs +1 -1
- package/dist/plugins/email-otp/index.d.mts +2 -2
- package/dist/plugins/email-otp/index.mjs +3 -3
- package/dist/plugins/generic-oauth/index.d.mts +3 -3
- package/dist/plugins/generic-oauth/index.mjs +3 -3
- package/dist/plugins/haveibeenpwned/index.d.mts +1 -1
- package/dist/plugins/haveibeenpwned/index.mjs +3 -3
- package/dist/plugins/index.d.mts +23 -23
- package/dist/plugins/index.mjs +18 -18
- package/dist/plugins/jwt/index.d.mts +3 -3
- package/dist/plugins/jwt/index.mjs +3 -3
- package/dist/plugins/magic-link/index.d.mts +1 -1
- package/dist/plugins/magic-link/index.mjs +3 -3
- package/dist/plugins/multi-session/index.d.mts +2 -2
- package/dist/plugins/multi-session/index.mjs +3 -3
- package/dist/plugins/oauth-proxy/index.d.mts +1 -1
- package/dist/plugins/oauth-proxy/index.mjs +3 -3
- package/dist/plugins/one-tap/index.d.mts +1 -1
- package/dist/plugins/one-tap/index.mjs +3 -3
- package/dist/plugins/one-time-token/index.d.mts +3 -3
- package/dist/plugins/one-time-token/index.mjs +18 -18
- package/dist/plugins/organization/index.d.mts +3 -3
- package/dist/plugins/organization/index.mjs +3 -3
- package/dist/plugins/passkey/index.d.mts +3 -3
- package/dist/plugins/passkey/index.mjs +2 -2
- package/dist/plugins/phone-number/index.d.mts +3 -3
- package/dist/plugins/phone-number/index.mjs +2 -2
- package/dist/plugins/sentinel/client.d.mts +24 -24
- package/dist/plugins/sentinel/client.mjs +2 -2
- package/dist/plugins/sentinel/index.d.mts +23 -23
- package/dist/plugins/sentinel/index.mjs +5 -5
- package/dist/plugins/two-factor/index.d.mts +3 -3
- package/dist/plugins/two-factor/index.mjs +2 -2
- package/dist/plugins/username/index.d.mts +1 -1
- package/dist/plugins/username/index.mjs +3 -3
- package/dist/{plugins-yF8CFUDR.mjs → plugins-RSPSU3ro.mjs} +1 -1
- package/dist/{pow-OK01yPG3.mjs → pow-DvkUopsK.mjs} +17 -1
- package/dist/{sentinel-DiPqydKG.mjs → sentinel-B-2jmmZh.mjs} +325 -98
- package/dist/src/adapters/memory-adapter/memory-adapter.d.ts +1 -1
- package/dist/src/adapters/prisma-adapter/test/auth.d.ts +1 -1
- package/dist/src/adapters/tests/auth-flow.d.ts +3 -3
- package/dist/src/adapters/tests/normal.d.ts +10 -2
- package/dist/src/adapters/tests/number-id.d.ts +4 -4
- package/dist/src/adapters/tests/performance.d.ts +3 -3
- package/dist/src/adapters/tests/transactions.d.ts +3 -3
- package/dist/src/api/index.d.ts +8 -8
- package/dist/src/plugins/admin/admin.d.ts +2 -2
- package/dist/src/plugins/api-key/index.d.ts +2 -2
- package/dist/src/plugins/audit-log/index.d.ts +5 -14
- package/dist/src/plugins/audit-log/remote.d.ts +4 -4
- package/dist/src/plugins/audit-log/types.d.ts +22 -0
- package/dist/src/plugins/email-otp/index.d.ts +1 -1
- package/dist/src/plugins/multi-session/index.d.ts +8 -8
- package/dist/src/plugins/organization/routes/crud-access-control.d.ts +8 -8
- package/dist/src/plugins/organization/routes/crud-invites.d.ts +46 -46
- package/dist/src/plugins/organization/routes/crud-members.d.ts +40 -40
- package/dist/src/plugins/organization/routes/crud-org.d.ts +36 -36
- package/dist/src/plugins/organization/routes/crud-team.d.ts +50 -50
- package/dist/src/plugins/sentinel/geo.d.ts +11 -0
- package/dist/src/plugins/sentinel/index.d.ts +7 -0
- package/dist/src/plugins/sentinel/intel.d.ts +8 -1
- package/dist/src/plugins/sentinel/memory-cache.d.ts +12 -0
- package/dist/src/plugins/sentinel/schema.d.ts +4 -0
- package/dist/src/plugins/sentinel/store.d.ts +7 -0
- package/dist/src/plugins/sentinel/types.d.ts +29 -1
- package/dist/src/test-utils/test-instance.d.ts +25 -25
- package/dist/test-utils/index.d.mts +277 -277
- package/dist/test-utils/index.mjs +20 -20
- package/dist/types/index.d.mts +2 -2
- package/dist/{username-BHNvcvsY.mjs → username-DCp6yugu.mjs} +1 -1
- package/package.json +3 -3
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { d as PrettifyDeep, o as LiteralString } from "./helper-BgOIGHsu.mjs";
|
|
2
|
-
import { g as User$1, h as Session$1, mn as InferAdditionalFieldsFromPluginOptions } from "./index-
|
|
3
|
-
import { o as Session$2, r as GenericEndpointContext$1, s as User$2 } from "./index-
|
|
2
|
+
import { g as User$1, h as Session$1, mn as InferAdditionalFieldsFromPluginOptions } from "./index-DngQlUSI.mjs";
|
|
3
|
+
import { o as Session$2, r as GenericEndpointContext$1, s as User$2 } from "./index-BL_t8cRp-C4QYBsac.mjs";
|
|
4
4
|
import { a as Role, c as Subset, i as AccessControl, o as Statements } from "./index-CxlWnL9c.mjs";
|
|
5
5
|
import { r as defaultRoles } from "./index-QmocqGM-.mjs";
|
|
6
6
|
import { AuthContext } from "@gatwech/core";
|
|
7
|
-
import * as
|
|
7
|
+
import * as better_call820 from "better-call";
|
|
8
8
|
import { Prettify } from "better-call";
|
|
9
9
|
import * as z$1 from "zod";
|
|
10
10
|
import { z } from "zod";
|
|
@@ -1144,7 +1144,7 @@ type InferInvitation<O extends OrganizationOptions, isClientSide extends boolean
|
|
|
1144
1144
|
//#region src/plugins/organization/routes/crud-access-control.d.ts
|
|
1145
1145
|
type IsExactlyEmptyObject<T$1> = keyof T$1 extends never ? T$1 extends {} ? {} extends T$1 ? true : false : false : false;
|
|
1146
1146
|
declare const createOrgRole: <O extends OrganizationOptions>(options: O) => {
|
|
1147
|
-
<AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(...inputCtx:
|
|
1147
|
+
<AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(...inputCtx: better_call820.HasRequiredKeys<better_call820.InputContext<"/organization/create-role", {
|
|
1148
1148
|
method: "POST";
|
|
1149
1149
|
body: z$1.ZodObject<{
|
|
1150
1150
|
organizationId: z$1.ZodOptional<z$1.ZodString>;
|
|
@@ -1168,8 +1168,8 @@ declare const createOrgRole: <O extends OrganizationOptions>(options: O) => {
|
|
|
1168
1168
|
};
|
|
1169
1169
|
};
|
|
1170
1170
|
requireHeaders: true;
|
|
1171
|
-
use: ((inputContext:
|
|
1172
|
-
use: ((inputContext:
|
|
1171
|
+
use: ((inputContext: better_call820.MiddlewareInputContext<{
|
|
1172
|
+
use: ((inputContext: better_call820.MiddlewareInputContext<better_call820.MiddlewareOptions>) => Promise<{
|
|
1173
1173
|
session: {
|
|
1174
1174
|
session: Record<string, any> & {
|
|
1175
1175
|
id: string;
|
|
@@ -1203,7 +1203,7 @@ declare const createOrgRole: <O extends OrganizationOptions>(options: O) => {
|
|
|
1203
1203
|
}>)[];
|
|
1204
1204
|
} & {
|
|
1205
1205
|
use: any[];
|
|
1206
|
-
}>> extends true ? [
|
|
1206
|
+
}>> extends true ? [better_call820.InferBodyInput<{
|
|
1207
1207
|
method: "POST";
|
|
1208
1208
|
body: z$1.ZodObject<{
|
|
1209
1209
|
organizationId: z$1.ZodOptional<z$1.ZodString>;
|
|
@@ -1227,8 +1227,8 @@ declare const createOrgRole: <O extends OrganizationOptions>(options: O) => {
|
|
|
1227
1227
|
};
|
|
1228
1228
|
};
|
|
1229
1229
|
requireHeaders: true;
|
|
1230
|
-
use: ((inputContext:
|
|
1231
|
-
use: ((inputContext:
|
|
1230
|
+
use: ((inputContext: better_call820.MiddlewareInputContext<{
|
|
1231
|
+
use: ((inputContext: better_call820.MiddlewareInputContext<better_call820.MiddlewareOptions>) => Promise<{
|
|
1232
1232
|
session: {
|
|
1233
1233
|
session: Record<string, any> & {
|
|
1234
1234
|
id: string;
|
|
@@ -1283,12 +1283,12 @@ declare const createOrgRole: <O extends OrganizationOptions>(options: O) => {
|
|
|
1283
1283
|
} & {
|
|
1284
1284
|
asResponse?: boolean;
|
|
1285
1285
|
returnHeaders?: boolean;
|
|
1286
|
-
use?:
|
|
1286
|
+
use?: better_call820.Middleware[];
|
|
1287
1287
|
path?: string;
|
|
1288
1288
|
} & {
|
|
1289
1289
|
asResponse?: AsResponse | undefined;
|
|
1290
1290
|
returnHeaders?: ReturnHeaders | undefined;
|
|
1291
|
-
}] : [((
|
|
1291
|
+
}] : [((better_call820.InferBodyInput<{
|
|
1292
1292
|
method: "POST";
|
|
1293
1293
|
body: z$1.ZodObject<{
|
|
1294
1294
|
organizationId: z$1.ZodOptional<z$1.ZodString>;
|
|
@@ -1312,8 +1312,8 @@ declare const createOrgRole: <O extends OrganizationOptions>(options: O) => {
|
|
|
1312
1312
|
};
|
|
1313
1313
|
};
|
|
1314
1314
|
requireHeaders: true;
|
|
1315
|
-
use: ((inputContext:
|
|
1316
|
-
use: ((inputContext:
|
|
1315
|
+
use: ((inputContext: better_call820.MiddlewareInputContext<{
|
|
1316
|
+
use: ((inputContext: better_call820.MiddlewareInputContext<better_call820.MiddlewareOptions>) => Promise<{
|
|
1317
1317
|
session: {
|
|
1318
1318
|
session: Record<string, any> & {
|
|
1319
1319
|
id: string;
|
|
@@ -1368,7 +1368,7 @@ declare const createOrgRole: <O extends OrganizationOptions>(options: O) => {
|
|
|
1368
1368
|
} & {
|
|
1369
1369
|
asResponse?: boolean;
|
|
1370
1370
|
returnHeaders?: boolean;
|
|
1371
|
-
use?:
|
|
1371
|
+
use?: better_call820.Middleware[];
|
|
1372
1372
|
path?: string;
|
|
1373
1373
|
} & {
|
|
1374
1374
|
asResponse?: AsResponse | undefined;
|
|
@@ -1423,8 +1423,8 @@ declare const createOrgRole: <O extends OrganizationOptions>(options: O) => {
|
|
|
1423
1423
|
};
|
|
1424
1424
|
};
|
|
1425
1425
|
requireHeaders: true;
|
|
1426
|
-
use: ((inputContext:
|
|
1427
|
-
use: ((inputContext:
|
|
1426
|
+
use: ((inputContext: better_call820.MiddlewareInputContext<{
|
|
1427
|
+
use: ((inputContext: better_call820.MiddlewareInputContext<better_call820.MiddlewareOptions>) => Promise<{
|
|
1428
1428
|
session: {
|
|
1429
1429
|
session: Record<string, any> & {
|
|
1430
1430
|
id: string;
|
|
@@ -1481,7 +1481,7 @@ declare const deleteOrgRole: <O extends OrganizationOptions>(options: O) => {
|
|
|
1481
1481
|
} & {
|
|
1482
1482
|
asResponse?: boolean;
|
|
1483
1483
|
returnHeaders?: boolean;
|
|
1484
|
-
use?:
|
|
1484
|
+
use?: better_call820.Middleware[];
|
|
1485
1485
|
path?: string;
|
|
1486
1486
|
} & {
|
|
1487
1487
|
asResponse?: AsResponse | undefined;
|
|
@@ -1504,8 +1504,8 @@ declare const deleteOrgRole: <O extends OrganizationOptions>(options: O) => {
|
|
|
1504
1504
|
roleId: z$1.ZodString;
|
|
1505
1505
|
}, z$1.core.$strip>]>>;
|
|
1506
1506
|
requireHeaders: true;
|
|
1507
|
-
use: ((inputContext:
|
|
1508
|
-
use: ((inputContext:
|
|
1507
|
+
use: ((inputContext: better_call820.MiddlewareInputContext<{
|
|
1508
|
+
use: ((inputContext: better_call820.MiddlewareInputContext<better_call820.MiddlewareOptions>) => Promise<{
|
|
1509
1509
|
session: {
|
|
1510
1510
|
session: Record<string, any> & {
|
|
1511
1511
|
id: string;
|
|
@@ -1569,7 +1569,7 @@ declare const listOrgRoles: <O extends OrganizationOptions>(options: O) => {
|
|
|
1569
1569
|
} & {
|
|
1570
1570
|
asResponse?: boolean;
|
|
1571
1571
|
returnHeaders?: boolean;
|
|
1572
|
-
use?:
|
|
1572
|
+
use?: better_call820.Middleware[];
|
|
1573
1573
|
path?: string;
|
|
1574
1574
|
} & {
|
|
1575
1575
|
asResponse?: AsResponse | undefined;
|
|
@@ -1594,8 +1594,8 @@ declare const listOrgRoles: <O extends OrganizationOptions>(options: O) => {
|
|
|
1594
1594
|
} & InferAdditionalFieldsFromPluginOptions<"organizationRole", O, false>)[]>;
|
|
1595
1595
|
options: {
|
|
1596
1596
|
method: "GET";
|
|
1597
|
-
use: ((inputContext:
|
|
1598
|
-
use: ((inputContext:
|
|
1597
|
+
use: ((inputContext: better_call820.MiddlewareInputContext<{
|
|
1598
|
+
use: ((inputContext: better_call820.MiddlewareInputContext<better_call820.MiddlewareOptions>) => Promise<{
|
|
1599
1599
|
session: {
|
|
1600
1600
|
session: Record<string, any> & {
|
|
1601
1601
|
id: string;
|
|
@@ -1655,7 +1655,7 @@ declare const getOrgRole: <O extends OrganizationOptions>(options: O) => {
|
|
|
1655
1655
|
} & {
|
|
1656
1656
|
asResponse?: boolean;
|
|
1657
1657
|
returnHeaders?: boolean;
|
|
1658
|
-
use?:
|
|
1658
|
+
use?: better_call820.Middleware[];
|
|
1659
1659
|
path?: string;
|
|
1660
1660
|
} & {
|
|
1661
1661
|
asResponse?: AsResponse | undefined;
|
|
@@ -1680,8 +1680,8 @@ declare const getOrgRole: <O extends OrganizationOptions>(options: O) => {
|
|
|
1680
1680
|
} & InferAdditionalFieldsFromPluginOptions<"organizationRole", O, false>>;
|
|
1681
1681
|
options: {
|
|
1682
1682
|
method: "GET";
|
|
1683
|
-
use: ((inputContext:
|
|
1684
|
-
use: ((inputContext:
|
|
1683
|
+
use: ((inputContext: better_call820.MiddlewareInputContext<{
|
|
1684
|
+
use: ((inputContext: better_call820.MiddlewareInputContext<better_call820.MiddlewareOptions>) => Promise<{
|
|
1685
1685
|
session: {
|
|
1686
1686
|
session: Record<string, any> & {
|
|
1687
1687
|
id: string;
|
|
@@ -1758,7 +1758,7 @@ declare const updateOrgRole: <O extends OrganizationOptions>(options: O) => {
|
|
|
1758
1758
|
} & {
|
|
1759
1759
|
asResponse?: boolean;
|
|
1760
1760
|
returnHeaders?: boolean;
|
|
1761
|
-
use?:
|
|
1761
|
+
use?: better_call820.Middleware[];
|
|
1762
1762
|
path?: string;
|
|
1763
1763
|
} & {
|
|
1764
1764
|
asResponse?: AsResponse | undefined;
|
|
@@ -1799,8 +1799,8 @@ declare const updateOrgRole: <O extends OrganizationOptions>(options: O) => {
|
|
|
1799
1799
|
};
|
|
1800
1800
|
};
|
|
1801
1801
|
};
|
|
1802
|
-
use: ((inputContext:
|
|
1803
|
-
use: ((inputContext:
|
|
1802
|
+
use: ((inputContext: better_call820.MiddlewareInputContext<{
|
|
1803
|
+
use: ((inputContext: better_call820.MiddlewareInputContext<better_call820.MiddlewareOptions>) => Promise<{
|
|
1804
1804
|
session: {
|
|
1805
1805
|
session: Record<string, any> & {
|
|
1806
1806
|
id: string;
|
|
@@ -1840,9 +1840,9 @@ declare const updateOrgRole: <O extends OrganizationOptions>(options: O) => {
|
|
|
1840
1840
|
//#endregion
|
|
1841
1841
|
//#region src/plugins/organization/routes/crud-invites.d.ts
|
|
1842
1842
|
declare const createInvitation: <O extends OrganizationOptions>(option: O) => {
|
|
1843
|
-
<AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(...inputCtx:
|
|
1843
|
+
<AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(...inputCtx: better_call820.HasRequiredKeys<better_call820.InputContext<"/organization/invite-member", {
|
|
1844
1844
|
method: "POST";
|
|
1845
|
-
use: (((inputContext:
|
|
1845
|
+
use: (((inputContext: better_call820.MiddlewareInputContext<better_call820.MiddlewareOptions>) => Promise<{
|
|
1846
1846
|
orgOptions: OrganizationOptions;
|
|
1847
1847
|
roles: typeof defaultRoles & {
|
|
1848
1848
|
[key: string]: Role<{}>;
|
|
@@ -1854,8 +1854,8 @@ declare const createInvitation: <O extends OrganizationOptions>(option: O) => {
|
|
|
1854
1854
|
};
|
|
1855
1855
|
user: User$2;
|
|
1856
1856
|
}>;
|
|
1857
|
-
}>) | ((inputContext:
|
|
1858
|
-
use: ((inputContext:
|
|
1857
|
+
}>) | ((inputContext: better_call820.MiddlewareInputContext<{
|
|
1858
|
+
use: ((inputContext: better_call820.MiddlewareInputContext<better_call820.MiddlewareOptions>) => Promise<{
|
|
1859
1859
|
session: {
|
|
1860
1860
|
session: Record<string, any> & {
|
|
1861
1861
|
id: string;
|
|
@@ -1973,9 +1973,9 @@ declare const createInvitation: <O extends OrganizationOptions>(option: O) => {
|
|
|
1973
1973
|
};
|
|
1974
1974
|
} & {
|
|
1975
1975
|
use: any[];
|
|
1976
|
-
}>> extends true ? [
|
|
1976
|
+
}>> extends true ? [better_call820.InferBodyInput<{
|
|
1977
1977
|
method: "POST";
|
|
1978
|
-
use: (((inputContext:
|
|
1978
|
+
use: (((inputContext: better_call820.MiddlewareInputContext<better_call820.MiddlewareOptions>) => Promise<{
|
|
1979
1979
|
orgOptions: OrganizationOptions;
|
|
1980
1980
|
roles: typeof defaultRoles & {
|
|
1981
1981
|
[key: string]: Role<{}>;
|
|
@@ -1987,8 +1987,8 @@ declare const createInvitation: <O extends OrganizationOptions>(option: O) => {
|
|
|
1987
1987
|
};
|
|
1988
1988
|
user: User$2;
|
|
1989
1989
|
}>;
|
|
1990
|
-
}>) | ((inputContext:
|
|
1991
|
-
use: ((inputContext:
|
|
1990
|
+
}>) | ((inputContext: better_call820.MiddlewareInputContext<{
|
|
1991
|
+
use: ((inputContext: better_call820.MiddlewareInputContext<better_call820.MiddlewareOptions>) => Promise<{
|
|
1992
1992
|
session: {
|
|
1993
1993
|
session: Record<string, any> & {
|
|
1994
1994
|
id: string;
|
|
@@ -2149,14 +2149,14 @@ declare const createInvitation: <O extends OrganizationOptions>(option: O) => {
|
|
|
2149
2149
|
} & {
|
|
2150
2150
|
asResponse?: boolean;
|
|
2151
2151
|
returnHeaders?: boolean;
|
|
2152
|
-
use?:
|
|
2152
|
+
use?: better_call820.Middleware[];
|
|
2153
2153
|
path?: string;
|
|
2154
2154
|
} & {
|
|
2155
2155
|
asResponse?: AsResponse | undefined;
|
|
2156
2156
|
returnHeaders?: ReturnHeaders | undefined;
|
|
2157
|
-
}] : [((
|
|
2157
|
+
}] : [((better_call820.InferBodyInput<{
|
|
2158
2158
|
method: "POST";
|
|
2159
|
-
use: (((inputContext:
|
|
2159
|
+
use: (((inputContext: better_call820.MiddlewareInputContext<better_call820.MiddlewareOptions>) => Promise<{
|
|
2160
2160
|
orgOptions: OrganizationOptions;
|
|
2161
2161
|
roles: typeof defaultRoles & {
|
|
2162
2162
|
[key: string]: Role<{}>;
|
|
@@ -2168,8 +2168,8 @@ declare const createInvitation: <O extends OrganizationOptions>(option: O) => {
|
|
|
2168
2168
|
};
|
|
2169
2169
|
user: User$2;
|
|
2170
2170
|
}>;
|
|
2171
|
-
}>) | ((inputContext:
|
|
2172
|
-
use: ((inputContext:
|
|
2171
|
+
}>) | ((inputContext: better_call820.MiddlewareInputContext<{
|
|
2172
|
+
use: ((inputContext: better_call820.MiddlewareInputContext<better_call820.MiddlewareOptions>) => Promise<{
|
|
2173
2173
|
session: {
|
|
2174
2174
|
session: Record<string, any> & {
|
|
2175
2175
|
id: string;
|
|
@@ -2330,7 +2330,7 @@ declare const createInvitation: <O extends OrganizationOptions>(option: O) => {
|
|
|
2330
2330
|
} & {
|
|
2331
2331
|
asResponse?: boolean;
|
|
2332
2332
|
returnHeaders?: boolean;
|
|
2333
|
-
use?:
|
|
2333
|
+
use?: better_call820.Middleware[];
|
|
2334
2334
|
path?: string;
|
|
2335
2335
|
} & {
|
|
2336
2336
|
asResponse?: AsResponse | undefined;
|
|
@@ -2383,7 +2383,7 @@ declare const createInvitation: <O extends OrganizationOptions>(option: O) => {
|
|
|
2383
2383
|
}) & InferAdditionalFieldsFromPluginOptions<"invitation", O, false> extends infer T_1 ? { [K in keyof T_1]: T_1[K] } : never>;
|
|
2384
2384
|
options: {
|
|
2385
2385
|
method: "POST";
|
|
2386
|
-
use: (((inputContext:
|
|
2386
|
+
use: (((inputContext: better_call820.MiddlewareInputContext<better_call820.MiddlewareOptions>) => Promise<{
|
|
2387
2387
|
orgOptions: OrganizationOptions;
|
|
2388
2388
|
roles: typeof defaultRoles & {
|
|
2389
2389
|
[key: string]: Role<{}>;
|
|
@@ -2395,8 +2395,8 @@ declare const createInvitation: <O extends OrganizationOptions>(option: O) => {
|
|
|
2395
2395
|
};
|
|
2396
2396
|
user: User$2;
|
|
2397
2397
|
}>;
|
|
2398
|
-
}>) | ((inputContext:
|
|
2399
|
-
use: ((inputContext:
|
|
2398
|
+
}>) | ((inputContext: better_call820.MiddlewareInputContext<{
|
|
2399
|
+
use: ((inputContext: better_call820.MiddlewareInputContext<better_call820.MiddlewareOptions>) => Promise<{
|
|
2400
2400
|
session: {
|
|
2401
2401
|
session: Record<string, any> & {
|
|
2402
2402
|
id: string;
|
|
@@ -2535,7 +2535,7 @@ declare const acceptInvitation: <O extends OrganizationOptions>(options: O) => {
|
|
|
2535
2535
|
} & {
|
|
2536
2536
|
asResponse?: boolean;
|
|
2537
2537
|
returnHeaders?: boolean;
|
|
2538
|
-
use?:
|
|
2538
|
+
use?: better_call820.Middleware[];
|
|
2539
2539
|
path?: string;
|
|
2540
2540
|
} & {
|
|
2541
2541
|
asResponse?: AsResponse | undefined;
|
|
@@ -2609,7 +2609,7 @@ declare const acceptInvitation: <O extends OrganizationOptions>(options: O) => {
|
|
|
2609
2609
|
body: z.ZodObject<{
|
|
2610
2610
|
invitationId: z.ZodString;
|
|
2611
2611
|
}, z.core.$strip>;
|
|
2612
|
-
use: (((inputContext:
|
|
2612
|
+
use: (((inputContext: better_call820.MiddlewareInputContext<better_call820.MiddlewareOptions>) => Promise<{
|
|
2613
2613
|
orgOptions: OrganizationOptions;
|
|
2614
2614
|
roles: typeof defaultRoles & {
|
|
2615
2615
|
[key: string]: Role<{}>;
|
|
@@ -2621,8 +2621,8 @@ declare const acceptInvitation: <O extends OrganizationOptions>(options: O) => {
|
|
|
2621
2621
|
};
|
|
2622
2622
|
user: User$2;
|
|
2623
2623
|
}>;
|
|
2624
|
-
}>) | ((inputContext:
|
|
2625
|
-
use: ((inputContext:
|
|
2624
|
+
}>) | ((inputContext: better_call820.MiddlewareInputContext<{
|
|
2625
|
+
use: ((inputContext: better_call820.MiddlewareInputContext<better_call820.MiddlewareOptions>) => Promise<{
|
|
2626
2626
|
session: {
|
|
2627
2627
|
session: Record<string, any> & {
|
|
2628
2628
|
id: string;
|
|
@@ -2702,7 +2702,7 @@ declare const rejectInvitation: <O extends OrganizationOptions>(options: O) => {
|
|
|
2702
2702
|
} & {
|
|
2703
2703
|
asResponse?: boolean;
|
|
2704
2704
|
returnHeaders?: boolean;
|
|
2705
|
-
use?:
|
|
2705
|
+
use?: better_call820.Middleware[];
|
|
2706
2706
|
path?: string;
|
|
2707
2707
|
} & {
|
|
2708
2708
|
asResponse?: AsResponse | undefined;
|
|
@@ -2740,7 +2740,7 @@ declare const rejectInvitation: <O extends OrganizationOptions>(options: O) => {
|
|
|
2740
2740
|
body: z.ZodObject<{
|
|
2741
2741
|
invitationId: z.ZodString;
|
|
2742
2742
|
}, z.core.$strip>;
|
|
2743
|
-
use: (((inputContext:
|
|
2743
|
+
use: (((inputContext: better_call820.MiddlewareInputContext<better_call820.MiddlewareOptions>) => Promise<{
|
|
2744
2744
|
orgOptions: OrganizationOptions;
|
|
2745
2745
|
roles: typeof defaultRoles & {
|
|
2746
2746
|
[key: string]: Role<{}>;
|
|
@@ -2752,8 +2752,8 @@ declare const rejectInvitation: <O extends OrganizationOptions>(options: O) => {
|
|
|
2752
2752
|
};
|
|
2753
2753
|
user: User$2;
|
|
2754
2754
|
}>;
|
|
2755
|
-
}>) | ((inputContext:
|
|
2756
|
-
use: ((inputContext:
|
|
2755
|
+
}>) | ((inputContext: better_call820.MiddlewareInputContext<{
|
|
2756
|
+
use: ((inputContext: better_call820.MiddlewareInputContext<better_call820.MiddlewareOptions>) => Promise<{
|
|
2757
2757
|
session: {
|
|
2758
2758
|
session: Record<string, any> & {
|
|
2759
2759
|
id: string;
|
|
@@ -2833,7 +2833,7 @@ declare const cancelInvitation: <O extends OrganizationOptions>(options: O) => {
|
|
|
2833
2833
|
} & {
|
|
2834
2834
|
asResponse?: boolean;
|
|
2835
2835
|
returnHeaders?: boolean;
|
|
2836
|
-
use?:
|
|
2836
|
+
use?: better_call820.Middleware[];
|
|
2837
2837
|
path?: string;
|
|
2838
2838
|
} & {
|
|
2839
2839
|
asResponse?: AsResponse | undefined;
|
|
@@ -2889,7 +2889,7 @@ declare const cancelInvitation: <O extends OrganizationOptions>(options: O) => {
|
|
|
2889
2889
|
body: z.ZodObject<{
|
|
2890
2890
|
invitationId: z.ZodString;
|
|
2891
2891
|
}, z.core.$strip>;
|
|
2892
|
-
use: (((inputContext:
|
|
2892
|
+
use: (((inputContext: better_call820.MiddlewareInputContext<better_call820.MiddlewareOptions>) => Promise<{
|
|
2893
2893
|
orgOptions: OrganizationOptions;
|
|
2894
2894
|
roles: typeof defaultRoles & {
|
|
2895
2895
|
[key: string]: Role<{}>;
|
|
@@ -2901,8 +2901,8 @@ declare const cancelInvitation: <O extends OrganizationOptions>(options: O) => {
|
|
|
2901
2901
|
};
|
|
2902
2902
|
user: User$2;
|
|
2903
2903
|
}>;
|
|
2904
|
-
}>) | ((inputContext:
|
|
2905
|
-
use: ((inputContext:
|
|
2904
|
+
}>) | ((inputContext: better_call820.MiddlewareInputContext<{
|
|
2905
|
+
use: ((inputContext: better_call820.MiddlewareInputContext<better_call820.MiddlewareOptions>) => Promise<{
|
|
2906
2906
|
session: {
|
|
2907
2907
|
session: Record<string, any> & {
|
|
2908
2908
|
id: string;
|
|
@@ -2977,7 +2977,7 @@ declare const getInvitation: <O extends OrganizationOptions>(options: O) => {
|
|
|
2977
2977
|
} & {
|
|
2978
2978
|
asResponse?: boolean;
|
|
2979
2979
|
returnHeaders?: boolean;
|
|
2980
|
-
use?:
|
|
2980
|
+
use?: better_call820.Middleware[];
|
|
2981
2981
|
path?: string;
|
|
2982
2982
|
} & {
|
|
2983
2983
|
asResponse?: AsResponse | undefined;
|
|
@@ -3066,7 +3066,7 @@ declare const getInvitation: <O extends OrganizationOptions>(options: O) => {
|
|
|
3066
3066
|
}>;
|
|
3067
3067
|
options: {
|
|
3068
3068
|
method: "GET";
|
|
3069
|
-
use: ((inputContext:
|
|
3069
|
+
use: ((inputContext: better_call820.MiddlewareInputContext<better_call820.MiddlewareOptions>) => Promise<{
|
|
3070
3070
|
orgOptions: OrganizationOptions;
|
|
3071
3071
|
roles: typeof defaultRoles & {
|
|
3072
3072
|
[key: string]: Role<{}>;
|
|
@@ -3156,7 +3156,7 @@ declare const listInvitations: <O extends OrganizationOptions>(options: O) => {
|
|
|
3156
3156
|
} & {
|
|
3157
3157
|
asResponse?: boolean;
|
|
3158
3158
|
returnHeaders?: boolean;
|
|
3159
|
-
use?:
|
|
3159
|
+
use?: better_call820.Middleware[];
|
|
3160
3160
|
path?: string;
|
|
3161
3161
|
} & {
|
|
3162
3162
|
asResponse?: AsResponse | undefined;
|
|
@@ -3209,7 +3209,7 @@ declare const listInvitations: <O extends OrganizationOptions>(options: O) => {
|
|
|
3209
3209
|
}) & InferAdditionalFieldsFromPluginOptions<"invitation", O, false> extends infer T_1 ? { [K in keyof T_1]: T_1[K] } : never)[]>;
|
|
3210
3210
|
options: {
|
|
3211
3211
|
method: "GET";
|
|
3212
|
-
use: (((inputContext:
|
|
3212
|
+
use: (((inputContext: better_call820.MiddlewareInputContext<better_call820.MiddlewareOptions>) => Promise<{
|
|
3213
3213
|
orgOptions: OrganizationOptions;
|
|
3214
3214
|
roles: typeof defaultRoles & {
|
|
3215
3215
|
[key: string]: Role<{}>;
|
|
@@ -3221,8 +3221,8 @@ declare const listInvitations: <O extends OrganizationOptions>(options: O) => {
|
|
|
3221
3221
|
};
|
|
3222
3222
|
user: User$2;
|
|
3223
3223
|
}>;
|
|
3224
|
-
}>) | ((inputContext:
|
|
3225
|
-
use: ((inputContext:
|
|
3224
|
+
}>) | ((inputContext: better_call820.MiddlewareInputContext<{
|
|
3225
|
+
use: ((inputContext: better_call820.MiddlewareInputContext<better_call820.MiddlewareOptions>) => Promise<{
|
|
3226
3226
|
session: {
|
|
3227
3227
|
session: Record<string, any> & {
|
|
3228
3228
|
id: string;
|
|
@@ -3283,7 +3283,7 @@ declare const listUserInvitations: <O extends OrganizationOptions>(options: O) =
|
|
|
3283
3283
|
} & {
|
|
3284
3284
|
asResponse?: boolean;
|
|
3285
3285
|
returnHeaders?: boolean;
|
|
3286
|
-
use?:
|
|
3286
|
+
use?: better_call820.Middleware[];
|
|
3287
3287
|
path?: string;
|
|
3288
3288
|
} & {
|
|
3289
3289
|
asResponse?: AsResponse | undefined;
|
|
@@ -3336,7 +3336,7 @@ declare const listUserInvitations: <O extends OrganizationOptions>(options: O) =
|
|
|
3336
3336
|
}) & InferAdditionalFieldsFromPluginOptions<"invitation", O, false> extends infer T_1 ? { [K in keyof T_1]: T_1[K] } : never)[]>;
|
|
3337
3337
|
options: {
|
|
3338
3338
|
method: "GET";
|
|
3339
|
-
use: ((inputContext:
|
|
3339
|
+
use: ((inputContext: better_call820.MiddlewareInputContext<better_call820.MiddlewareOptions>) => Promise<{
|
|
3340
3340
|
orgOptions: OrganizationOptions;
|
|
3341
3341
|
roles: typeof defaultRoles & {
|
|
3342
3342
|
[key: string]: Role<{}>;
|
|
@@ -3360,7 +3360,7 @@ declare const listUserInvitations: <O extends OrganizationOptions>(options: O) =
|
|
|
3360
3360
|
//#endregion
|
|
3361
3361
|
//#region src/plugins/organization/routes/crud-members.d.ts
|
|
3362
3362
|
declare const addMember: <O extends OrganizationOptions>(option: O) => {
|
|
3363
|
-
<AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(...inputCtx:
|
|
3363
|
+
<AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(...inputCtx: better_call820.HasRequiredKeys<better_call820.InputContext<"/organization/add-member", {
|
|
3364
3364
|
method: "POST";
|
|
3365
3365
|
body: z.ZodObject<{
|
|
3366
3366
|
userId: z.ZodCoercedString<unknown>;
|
|
@@ -3368,7 +3368,7 @@ declare const addMember: <O extends OrganizationOptions>(option: O) => {
|
|
|
3368
3368
|
organizationId: z.ZodOptional<z.ZodString>;
|
|
3369
3369
|
teamId: z.ZodOptional<z.ZodString>;
|
|
3370
3370
|
}, z.core.$strip>;
|
|
3371
|
-
use: ((inputContext:
|
|
3371
|
+
use: ((inputContext: better_call820.MiddlewareInputContext<better_call820.MiddlewareOptions>) => Promise<{
|
|
3372
3372
|
orgOptions: OrganizationOptions;
|
|
3373
3373
|
roles: typeof defaultRoles & {
|
|
3374
3374
|
[key: string]: Role<{}>;
|
|
@@ -3399,7 +3399,7 @@ declare const addMember: <O extends OrganizationOptions>(option: O) => {
|
|
|
3399
3399
|
};
|
|
3400
3400
|
} & {
|
|
3401
3401
|
use: any[];
|
|
3402
|
-
}>> extends true ? [
|
|
3402
|
+
}>> extends true ? [better_call820.InferBodyInput<{
|
|
3403
3403
|
method: "POST";
|
|
3404
3404
|
body: z.ZodObject<{
|
|
3405
3405
|
userId: z.ZodCoercedString<unknown>;
|
|
@@ -3407,7 +3407,7 @@ declare const addMember: <O extends OrganizationOptions>(option: O) => {
|
|
|
3407
3407
|
organizationId: z.ZodOptional<z.ZodString>;
|
|
3408
3408
|
teamId: z.ZodOptional<z.ZodString>;
|
|
3409
3409
|
}, z.core.$strip>;
|
|
3410
|
-
use: ((inputContext:
|
|
3410
|
+
use: ((inputContext: better_call820.MiddlewareInputContext<better_call820.MiddlewareOptions>) => Promise<{
|
|
3411
3411
|
orgOptions: OrganizationOptions;
|
|
3412
3412
|
roles: typeof defaultRoles & {
|
|
3413
3413
|
[key: string]: Role<{}>;
|
|
@@ -3461,12 +3461,12 @@ declare const addMember: <O extends OrganizationOptions>(option: O) => {
|
|
|
3461
3461
|
} & {
|
|
3462
3462
|
asResponse?: boolean;
|
|
3463
3463
|
returnHeaders?: boolean;
|
|
3464
|
-
use?:
|
|
3464
|
+
use?: better_call820.Middleware[];
|
|
3465
3465
|
path?: string;
|
|
3466
3466
|
} & {
|
|
3467
3467
|
asResponse?: AsResponse | undefined;
|
|
3468
3468
|
returnHeaders?: ReturnHeaders | undefined;
|
|
3469
|
-
}] : [((
|
|
3469
|
+
}] : [((better_call820.InferBodyInput<{
|
|
3470
3470
|
method: "POST";
|
|
3471
3471
|
body: z.ZodObject<{
|
|
3472
3472
|
userId: z.ZodCoercedString<unknown>;
|
|
@@ -3474,7 +3474,7 @@ declare const addMember: <O extends OrganizationOptions>(option: O) => {
|
|
|
3474
3474
|
organizationId: z.ZodOptional<z.ZodString>;
|
|
3475
3475
|
teamId: z.ZodOptional<z.ZodString>;
|
|
3476
3476
|
}, z.core.$strip>;
|
|
3477
|
-
use: ((inputContext:
|
|
3477
|
+
use: ((inputContext: better_call820.MiddlewareInputContext<better_call820.MiddlewareOptions>) => Promise<{
|
|
3478
3478
|
orgOptions: OrganizationOptions;
|
|
3479
3479
|
roles: typeof defaultRoles & {
|
|
3480
3480
|
[key: string]: Role<{}>;
|
|
@@ -3528,7 +3528,7 @@ declare const addMember: <O extends OrganizationOptions>(option: O) => {
|
|
|
3528
3528
|
} & {
|
|
3529
3529
|
asResponse?: boolean;
|
|
3530
3530
|
returnHeaders?: boolean;
|
|
3531
|
-
use?:
|
|
3531
|
+
use?: better_call820.Middleware[];
|
|
3532
3532
|
path?: string;
|
|
3533
3533
|
} & {
|
|
3534
3534
|
asResponse?: AsResponse | undefined;
|
|
@@ -3557,7 +3557,7 @@ declare const addMember: <O extends OrganizationOptions>(option: O) => {
|
|
|
3557
3557
|
organizationId: z.ZodOptional<z.ZodString>;
|
|
3558
3558
|
teamId: z.ZodOptional<z.ZodString>;
|
|
3559
3559
|
}, z.core.$strip>;
|
|
3560
|
-
use: ((inputContext:
|
|
3560
|
+
use: ((inputContext: better_call820.MiddlewareInputContext<better_call820.MiddlewareOptions>) => Promise<{
|
|
3561
3561
|
orgOptions: OrganizationOptions;
|
|
3562
3562
|
roles: typeof defaultRoles & {
|
|
3563
3563
|
[key: string]: Role<{}>;
|
|
@@ -3610,7 +3610,7 @@ declare const removeMember: <O extends OrganizationOptions>(options: O) => {
|
|
|
3610
3610
|
} & {
|
|
3611
3611
|
asResponse?: boolean;
|
|
3612
3612
|
returnHeaders?: boolean;
|
|
3613
|
-
use?:
|
|
3613
|
+
use?: better_call820.Middleware[];
|
|
3614
3614
|
path?: string;
|
|
3615
3615
|
} & {
|
|
3616
3616
|
asResponse?: AsResponse | undefined;
|
|
@@ -3683,7 +3683,7 @@ declare const removeMember: <O extends OrganizationOptions>(options: O) => {
|
|
|
3683
3683
|
memberIdOrEmail: z.ZodString;
|
|
3684
3684
|
organizationId: z.ZodOptional<z.ZodString>;
|
|
3685
3685
|
}, z.core.$strip>;
|
|
3686
|
-
use: (((inputContext:
|
|
3686
|
+
use: (((inputContext: better_call820.MiddlewareInputContext<better_call820.MiddlewareOptions>) => Promise<{
|
|
3687
3687
|
orgOptions: OrganizationOptions;
|
|
3688
3688
|
roles: typeof defaultRoles & {
|
|
3689
3689
|
[key: string]: Role<{}>;
|
|
@@ -3695,8 +3695,8 @@ declare const removeMember: <O extends OrganizationOptions>(options: O) => {
|
|
|
3695
3695
|
};
|
|
3696
3696
|
user: User$2;
|
|
3697
3697
|
}>;
|
|
3698
|
-
}>) | ((inputContext:
|
|
3699
|
-
use: ((inputContext:
|
|
3698
|
+
}>) | ((inputContext: better_call820.MiddlewareInputContext<{
|
|
3699
|
+
use: ((inputContext: better_call820.MiddlewareInputContext<better_call820.MiddlewareOptions>) => Promise<{
|
|
3700
3700
|
session: {
|
|
3701
3701
|
session: Record<string, any> & {
|
|
3702
3702
|
id: string;
|
|
@@ -3794,7 +3794,7 @@ declare const updateMemberRole: <O extends OrganizationOptions>(option: O) => {
|
|
|
3794
3794
|
} & {
|
|
3795
3795
|
asResponse?: boolean;
|
|
3796
3796
|
returnHeaders?: boolean;
|
|
3797
|
-
use?:
|
|
3797
|
+
use?: better_call820.Middleware[];
|
|
3798
3798
|
path?: string;
|
|
3799
3799
|
} & {
|
|
3800
3800
|
asResponse?: AsResponse | undefined;
|
|
@@ -3834,7 +3834,7 @@ declare const updateMemberRole: <O extends OrganizationOptions>(option: O) => {
|
|
|
3834
3834
|
memberId: z.ZodString;
|
|
3835
3835
|
organizationId: z.ZodOptional<z.ZodString>;
|
|
3836
3836
|
}, z.core.$strip>;
|
|
3837
|
-
use: (((inputContext:
|
|
3837
|
+
use: (((inputContext: better_call820.MiddlewareInputContext<better_call820.MiddlewareOptions>) => Promise<{
|
|
3838
3838
|
orgOptions: OrganizationOptions;
|
|
3839
3839
|
roles: typeof defaultRoles & {
|
|
3840
3840
|
[key: string]: Role<{}>;
|
|
@@ -3846,8 +3846,8 @@ declare const updateMemberRole: <O extends OrganizationOptions>(option: O) => {
|
|
|
3846
3846
|
};
|
|
3847
3847
|
user: User$2;
|
|
3848
3848
|
}>;
|
|
3849
|
-
}>) | ((inputContext:
|
|
3850
|
-
use: ((inputContext:
|
|
3849
|
+
}>) | ((inputContext: better_call820.MiddlewareInputContext<{
|
|
3850
|
+
use: ((inputContext: better_call820.MiddlewareInputContext<better_call820.MiddlewareOptions>) => Promise<{
|
|
3851
3851
|
session: {
|
|
3852
3852
|
session: Record<string, any> & {
|
|
3853
3853
|
id: string;
|
|
@@ -3948,7 +3948,7 @@ declare const getActiveMember: <O extends OrganizationOptions>(options: O) => {
|
|
|
3948
3948
|
} & {
|
|
3949
3949
|
asResponse?: boolean;
|
|
3950
3950
|
returnHeaders?: boolean;
|
|
3951
|
-
use?:
|
|
3951
|
+
use?: better_call820.Middleware[];
|
|
3952
3952
|
path?: string;
|
|
3953
3953
|
} & {
|
|
3954
3954
|
asResponse?: AsResponse | undefined;
|
|
@@ -4027,7 +4027,7 @@ declare const getActiveMember: <O extends OrganizationOptions>(options: O) => {
|
|
|
4027
4027
|
}) | null>;
|
|
4028
4028
|
options: {
|
|
4029
4029
|
method: "GET";
|
|
4030
|
-
use: (((inputContext:
|
|
4030
|
+
use: (((inputContext: better_call820.MiddlewareInputContext<better_call820.MiddlewareOptions>) => Promise<{
|
|
4031
4031
|
orgOptions: OrganizationOptions;
|
|
4032
4032
|
roles: typeof defaultRoles & {
|
|
4033
4033
|
[key: string]: Role<{}>;
|
|
@@ -4039,8 +4039,8 @@ declare const getActiveMember: <O extends OrganizationOptions>(options: O) => {
|
|
|
4039
4039
|
};
|
|
4040
4040
|
user: User$2;
|
|
4041
4041
|
}>;
|
|
4042
|
-
}>) | ((inputContext:
|
|
4043
|
-
use: ((inputContext:
|
|
4042
|
+
}>) | ((inputContext: better_call820.MiddlewareInputContext<{
|
|
4043
|
+
use: ((inputContext: better_call820.MiddlewareInputContext<better_call820.MiddlewareOptions>) => Promise<{
|
|
4044
4044
|
session: {
|
|
4045
4045
|
session: Record<string, any> & {
|
|
4046
4046
|
id: string;
|
|
@@ -4128,7 +4128,7 @@ declare const leaveOrganization: <O extends OrganizationOptions>(options: O) =>
|
|
|
4128
4128
|
} & {
|
|
4129
4129
|
asResponse?: boolean;
|
|
4130
4130
|
returnHeaders?: boolean;
|
|
4131
|
-
use?:
|
|
4131
|
+
use?: better_call820.Middleware[];
|
|
4132
4132
|
path?: string;
|
|
4133
4133
|
} & {
|
|
4134
4134
|
asResponse?: AsResponse | undefined;
|
|
@@ -4211,7 +4211,7 @@ declare const leaveOrganization: <O extends OrganizationOptions>(options: O) =>
|
|
|
4211
4211
|
organizationId: z.ZodString;
|
|
4212
4212
|
}, z.core.$strip>;
|
|
4213
4213
|
requireHeaders: true;
|
|
4214
|
-
use: (((inputContext:
|
|
4214
|
+
use: (((inputContext: better_call820.MiddlewareInputContext<better_call820.MiddlewareOptions>) => Promise<{
|
|
4215
4215
|
session: {
|
|
4216
4216
|
session: Record<string, any> & {
|
|
4217
4217
|
id: string;
|
|
@@ -4233,7 +4233,7 @@ declare const leaveOrganization: <O extends OrganizationOptions>(options: O) =>
|
|
|
4233
4233
|
image?: string | null | undefined;
|
|
4234
4234
|
};
|
|
4235
4235
|
};
|
|
4236
|
-
}>) | ((inputContext:
|
|
4236
|
+
}>) | ((inputContext: better_call820.MiddlewareInputContext<better_call820.MiddlewareOptions>) => Promise<{
|
|
4237
4237
|
orgOptions: OrganizationOptions;
|
|
4238
4238
|
roles: typeof defaultRoles & {
|
|
4239
4239
|
[key: string]: Role<{}>;
|
|
@@ -4276,7 +4276,7 @@ declare const listMembers: <O extends OrganizationOptions>(options: O) => {
|
|
|
4276
4276
|
} & {
|
|
4277
4277
|
asResponse?: boolean;
|
|
4278
4278
|
returnHeaders?: boolean;
|
|
4279
|
-
use?:
|
|
4279
|
+
use?: better_call820.Middleware[];
|
|
4280
4280
|
path?: string;
|
|
4281
4281
|
} & {
|
|
4282
4282
|
asResponse?: AsResponse | undefined;
|
|
@@ -4382,7 +4382,7 @@ declare const listMembers: <O extends OrganizationOptions>(options: O) => {
|
|
|
4382
4382
|
}>>;
|
|
4383
4383
|
organizationId: z.ZodOptional<z.ZodString>;
|
|
4384
4384
|
}, z.core.$strip>>;
|
|
4385
|
-
use: (((inputContext:
|
|
4385
|
+
use: (((inputContext: better_call820.MiddlewareInputContext<better_call820.MiddlewareOptions>) => Promise<{
|
|
4386
4386
|
orgOptions: OrganizationOptions;
|
|
4387
4387
|
roles: typeof defaultRoles & {
|
|
4388
4388
|
[key: string]: Role<{}>;
|
|
@@ -4394,8 +4394,8 @@ declare const listMembers: <O extends OrganizationOptions>(options: O) => {
|
|
|
4394
4394
|
};
|
|
4395
4395
|
user: User$2;
|
|
4396
4396
|
}>;
|
|
4397
|
-
}>) | ((inputContext:
|
|
4398
|
-
use: ((inputContext:
|
|
4397
|
+
}>) | ((inputContext: better_call820.MiddlewareInputContext<{
|
|
4398
|
+
use: ((inputContext: better_call820.MiddlewareInputContext<better_call820.MiddlewareOptions>) => Promise<{
|
|
4399
4399
|
session: {
|
|
4400
4400
|
session: Record<string, any> & {
|
|
4401
4401
|
id: string;
|
|
@@ -4451,7 +4451,7 @@ declare const getActiveMemberRole: <O extends OrganizationOptions>(options: O) =
|
|
|
4451
4451
|
} & {
|
|
4452
4452
|
asResponse?: boolean;
|
|
4453
4453
|
returnHeaders?: boolean;
|
|
4454
|
-
use?:
|
|
4454
|
+
use?: better_call820.Middleware[];
|
|
4455
4455
|
path?: string;
|
|
4456
4456
|
} & {
|
|
4457
4457
|
asResponse?: AsResponse | undefined;
|
|
@@ -4524,7 +4524,7 @@ declare const getActiveMemberRole: <O extends OrganizationOptions>(options: O) =
|
|
|
4524
4524
|
userId: z.ZodOptional<z.ZodString>;
|
|
4525
4525
|
organizationId: z.ZodOptional<z.ZodString>;
|
|
4526
4526
|
}, z.core.$strip>>;
|
|
4527
|
-
use: (((inputContext:
|
|
4527
|
+
use: (((inputContext: better_call820.MiddlewareInputContext<better_call820.MiddlewareOptions>) => Promise<{
|
|
4528
4528
|
orgOptions: OrganizationOptions;
|
|
4529
4529
|
roles: typeof defaultRoles & {
|
|
4530
4530
|
[key: string]: Role<{}>;
|
|
@@ -4536,8 +4536,8 @@ declare const getActiveMemberRole: <O extends OrganizationOptions>(options: O) =
|
|
|
4536
4536
|
};
|
|
4537
4537
|
user: User$2;
|
|
4538
4538
|
}>;
|
|
4539
|
-
}>) | ((inputContext:
|
|
4540
|
-
use: ((inputContext:
|
|
4539
|
+
}>) | ((inputContext: better_call820.MiddlewareInputContext<{
|
|
4540
|
+
use: ((inputContext: better_call820.MiddlewareInputContext<better_call820.MiddlewareOptions>) => Promise<{
|
|
4541
4541
|
session: {
|
|
4542
4542
|
session: Record<string, any> & {
|
|
4543
4543
|
id: string;
|
|
@@ -4577,7 +4577,7 @@ declare const getActiveMemberRole: <O extends OrganizationOptions>(options: O) =
|
|
|
4577
4577
|
//#endregion
|
|
4578
4578
|
//#region src/plugins/organization/routes/crud-org.d.ts
|
|
4579
4579
|
declare const createOrganization: <O extends OrganizationOptions>(options?: O | undefined) => {
|
|
4580
|
-
<AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(...inputCtx:
|
|
4580
|
+
<AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(...inputCtx: better_call820.HasRequiredKeys<better_call820.InputContext<"/organization/create", {
|
|
4581
4581
|
method: "POST";
|
|
4582
4582
|
body: z.ZodObject<{
|
|
4583
4583
|
name: z.ZodString;
|
|
@@ -4587,7 +4587,7 @@ declare const createOrganization: <O extends OrganizationOptions>(options?: O |
|
|
|
4587
4587
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
4588
4588
|
keepCurrentActiveOrganization: z.ZodOptional<z.ZodBoolean>;
|
|
4589
4589
|
}, z.core.$strip>;
|
|
4590
|
-
use: ((inputContext:
|
|
4590
|
+
use: ((inputContext: better_call820.MiddlewareInputContext<better_call820.MiddlewareOptions>) => Promise<{
|
|
4591
4591
|
orgOptions: OrganizationOptions;
|
|
4592
4592
|
roles: typeof defaultRoles & {
|
|
4593
4593
|
[key: string]: Role<{}>;
|
|
@@ -4631,7 +4631,7 @@ declare const createOrganization: <O extends OrganizationOptions>(options?: O |
|
|
|
4631
4631
|
};
|
|
4632
4632
|
} & {
|
|
4633
4633
|
use: any[];
|
|
4634
|
-
}>> extends true ? [
|
|
4634
|
+
}>> extends true ? [better_call820.InferBodyInput<{
|
|
4635
4635
|
method: "POST";
|
|
4636
4636
|
body: z.ZodObject<{
|
|
4637
4637
|
name: z.ZodString;
|
|
@@ -4641,7 +4641,7 @@ declare const createOrganization: <O extends OrganizationOptions>(options?: O |
|
|
|
4641
4641
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
4642
4642
|
keepCurrentActiveOrganization: z.ZodOptional<z.ZodBoolean>;
|
|
4643
4643
|
}, z.core.$strip>;
|
|
4644
|
-
use: ((inputContext:
|
|
4644
|
+
use: ((inputContext: better_call820.MiddlewareInputContext<better_call820.MiddlewareOptions>) => Promise<{
|
|
4645
4645
|
orgOptions: OrganizationOptions;
|
|
4646
4646
|
roles: typeof defaultRoles & {
|
|
4647
4647
|
[key: string]: Role<{}>;
|
|
@@ -4705,12 +4705,12 @@ declare const createOrganization: <O extends OrganizationOptions>(options?: O |
|
|
|
4705
4705
|
} & {
|
|
4706
4706
|
asResponse?: boolean;
|
|
4707
4707
|
returnHeaders?: boolean;
|
|
4708
|
-
use?:
|
|
4708
|
+
use?: better_call820.Middleware[];
|
|
4709
4709
|
path?: string;
|
|
4710
4710
|
} & {
|
|
4711
4711
|
asResponse?: AsResponse | undefined;
|
|
4712
4712
|
returnHeaders?: ReturnHeaders | undefined;
|
|
4713
|
-
}] : [((
|
|
4713
|
+
}] : [((better_call820.InferBodyInput<{
|
|
4714
4714
|
method: "POST";
|
|
4715
4715
|
body: z.ZodObject<{
|
|
4716
4716
|
name: z.ZodString;
|
|
@@ -4720,7 +4720,7 @@ declare const createOrganization: <O extends OrganizationOptions>(options?: O |
|
|
|
4720
4720
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
4721
4721
|
keepCurrentActiveOrganization: z.ZodOptional<z.ZodBoolean>;
|
|
4722
4722
|
}, z.core.$strip>;
|
|
4723
|
-
use: ((inputContext:
|
|
4723
|
+
use: ((inputContext: better_call820.MiddlewareInputContext<better_call820.MiddlewareOptions>) => Promise<{
|
|
4724
4724
|
orgOptions: OrganizationOptions;
|
|
4725
4725
|
roles: typeof defaultRoles & {
|
|
4726
4726
|
[key: string]: Role<{}>;
|
|
@@ -4784,7 +4784,7 @@ declare const createOrganization: <O extends OrganizationOptions>(options?: O |
|
|
|
4784
4784
|
} & {
|
|
4785
4785
|
asResponse?: boolean;
|
|
4786
4786
|
returnHeaders?: boolean;
|
|
4787
|
-
use?:
|
|
4787
|
+
use?: better_call820.Middleware[];
|
|
4788
4788
|
path?: string;
|
|
4789
4789
|
} & {
|
|
4790
4790
|
asResponse?: AsResponse | undefined;
|
|
@@ -4835,7 +4835,7 @@ declare const createOrganization: <O extends OrganizationOptions>(options?: O |
|
|
|
4835
4835
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
4836
4836
|
keepCurrentActiveOrganization: z.ZodOptional<z.ZodBoolean>;
|
|
4837
4837
|
}, z.core.$strip>;
|
|
4838
|
-
use: ((inputContext:
|
|
4838
|
+
use: ((inputContext: better_call820.MiddlewareInputContext<better_call820.MiddlewareOptions>) => Promise<{
|
|
4839
4839
|
orgOptions: OrganizationOptions;
|
|
4840
4840
|
roles: typeof defaultRoles & {
|
|
4841
4841
|
[key: string]: Role<{}>;
|
|
@@ -4900,7 +4900,7 @@ declare const checkOrganizationSlug: <O extends OrganizationOptions>(options: O)
|
|
|
4900
4900
|
} & {
|
|
4901
4901
|
asResponse?: boolean;
|
|
4902
4902
|
returnHeaders?: boolean;
|
|
4903
|
-
use?:
|
|
4903
|
+
use?: better_call820.Middleware[];
|
|
4904
4904
|
path?: string;
|
|
4905
4905
|
} & {
|
|
4906
4906
|
asResponse?: AsResponse | undefined;
|
|
@@ -4918,7 +4918,7 @@ declare const checkOrganizationSlug: <O extends OrganizationOptions>(options: O)
|
|
|
4918
4918
|
body: z.ZodObject<{
|
|
4919
4919
|
slug: z.ZodString;
|
|
4920
4920
|
}, z.core.$strip>;
|
|
4921
|
-
use: (((inputContext:
|
|
4921
|
+
use: (((inputContext: better_call820.MiddlewareInputContext<better_call820.MiddlewareOptions>) => Promise<{
|
|
4922
4922
|
session: {
|
|
4923
4923
|
session: Record<string, any> & {
|
|
4924
4924
|
id: string;
|
|
@@ -4940,7 +4940,7 @@ declare const checkOrganizationSlug: <O extends OrganizationOptions>(options: O)
|
|
|
4940
4940
|
image?: string | null | undefined;
|
|
4941
4941
|
};
|
|
4942
4942
|
} | null;
|
|
4943
|
-
}>) | ((inputContext:
|
|
4943
|
+
}>) | ((inputContext: better_call820.MiddlewareInputContext<better_call820.MiddlewareOptions>) => Promise<{
|
|
4944
4944
|
orgOptions: OrganizationOptions;
|
|
4945
4945
|
roles: typeof defaultRoles & {
|
|
4946
4946
|
[key: string]: Role<{}>;
|
|
@@ -4982,7 +4982,7 @@ declare const updateOrganization: <O extends OrganizationOptions>(options?: O |
|
|
|
4982
4982
|
} & {
|
|
4983
4983
|
asResponse?: boolean;
|
|
4984
4984
|
returnHeaders?: boolean;
|
|
4985
|
-
use?:
|
|
4985
|
+
use?: better_call820.Middleware[];
|
|
4986
4986
|
path?: string;
|
|
4987
4987
|
} & {
|
|
4988
4988
|
asResponse?: AsResponse | undefined;
|
|
@@ -5021,7 +5021,7 @@ declare const updateOrganization: <O extends OrganizationOptions>(options?: O |
|
|
|
5021
5021
|
organizationId: z.ZodOptional<z.ZodString>;
|
|
5022
5022
|
}, z.core.$strip>;
|
|
5023
5023
|
requireHeaders: true;
|
|
5024
|
-
use: ((inputContext:
|
|
5024
|
+
use: ((inputContext: better_call820.MiddlewareInputContext<better_call820.MiddlewareOptions>) => Promise<{
|
|
5025
5025
|
orgOptions: OrganizationOptions;
|
|
5026
5026
|
roles: typeof defaultRoles & {
|
|
5027
5027
|
[key: string]: Role<{}>;
|
|
@@ -5087,7 +5087,7 @@ declare const deleteOrganization: <O extends OrganizationOptions>(options: O) =>
|
|
|
5087
5087
|
} & {
|
|
5088
5088
|
asResponse?: boolean;
|
|
5089
5089
|
returnHeaders?: boolean;
|
|
5090
|
-
use?:
|
|
5090
|
+
use?: better_call820.Middleware[];
|
|
5091
5091
|
path?: string;
|
|
5092
5092
|
} & {
|
|
5093
5093
|
asResponse?: AsResponse | undefined;
|
|
@@ -5116,7 +5116,7 @@ declare const deleteOrganization: <O extends OrganizationOptions>(options: O) =>
|
|
|
5116
5116
|
organizationId: z.ZodString;
|
|
5117
5117
|
}, z.core.$strip>;
|
|
5118
5118
|
requireHeaders: true;
|
|
5119
|
-
use: ((inputContext:
|
|
5119
|
+
use: ((inputContext: better_call820.MiddlewareInputContext<better_call820.MiddlewareOptions>) => Promise<{
|
|
5120
5120
|
orgOptions: OrganizationOptions;
|
|
5121
5121
|
roles: typeof defaultRoles & {
|
|
5122
5122
|
[key: string]: Role<{}>;
|
|
@@ -5172,7 +5172,7 @@ declare const getFullOrganization: <O extends OrganizationOptions>(options: O) =
|
|
|
5172
5172
|
} & {
|
|
5173
5173
|
asResponse?: boolean;
|
|
5174
5174
|
returnHeaders?: boolean;
|
|
5175
|
-
use?:
|
|
5175
|
+
use?: better_call820.Middleware[];
|
|
5176
5176
|
path?: string;
|
|
5177
5177
|
} & {
|
|
5178
5178
|
asResponse?: AsResponse | undefined;
|
|
@@ -5439,7 +5439,7 @@ declare const getFullOrganization: <O extends OrganizationOptions>(options: O) =
|
|
|
5439
5439
|
membersLimit: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>>;
|
|
5440
5440
|
}, z.core.$strip>>;
|
|
5441
5441
|
requireHeaders: true;
|
|
5442
|
-
use: (((inputContext:
|
|
5442
|
+
use: (((inputContext: better_call820.MiddlewareInputContext<better_call820.MiddlewareOptions>) => Promise<{
|
|
5443
5443
|
orgOptions: OrganizationOptions;
|
|
5444
5444
|
roles: typeof defaultRoles & {
|
|
5445
5445
|
[key: string]: Role<{}>;
|
|
@@ -5451,8 +5451,8 @@ declare const getFullOrganization: <O extends OrganizationOptions>(options: O) =
|
|
|
5451
5451
|
};
|
|
5452
5452
|
user: User$2;
|
|
5453
5453
|
}>;
|
|
5454
|
-
}>) | ((inputContext:
|
|
5455
|
-
use: ((inputContext:
|
|
5454
|
+
}>) | ((inputContext: better_call820.MiddlewareInputContext<{
|
|
5455
|
+
use: ((inputContext: better_call820.MiddlewareInputContext<better_call820.MiddlewareOptions>) => Promise<{
|
|
5456
5456
|
session: {
|
|
5457
5457
|
session: Record<string, any> & {
|
|
5458
5458
|
id: string;
|
|
@@ -5527,7 +5527,7 @@ declare const setActiveOrganization: <O extends OrganizationOptions>(options: O)
|
|
|
5527
5527
|
} & {
|
|
5528
5528
|
asResponse?: boolean;
|
|
5529
5529
|
returnHeaders?: boolean;
|
|
5530
|
-
use?:
|
|
5530
|
+
use?: better_call820.Middleware[];
|
|
5531
5531
|
path?: string;
|
|
5532
5532
|
} & {
|
|
5533
5533
|
asResponse?: AsResponse | undefined;
|
|
@@ -5792,7 +5792,7 @@ declare const setActiveOrganization: <O extends OrganizationOptions>(options: O)
|
|
|
5792
5792
|
organizationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
5793
5793
|
organizationSlug: z.ZodOptional<z.ZodString>;
|
|
5794
5794
|
}, z.core.$strip>;
|
|
5795
|
-
use: (((inputContext:
|
|
5795
|
+
use: (((inputContext: better_call820.MiddlewareInputContext<better_call820.MiddlewareOptions>) => Promise<{
|
|
5796
5796
|
orgOptions: OrganizationOptions;
|
|
5797
5797
|
roles: typeof defaultRoles & {
|
|
5798
5798
|
[key: string]: Role<{}>;
|
|
@@ -5804,8 +5804,8 @@ declare const setActiveOrganization: <O extends OrganizationOptions>(options: O)
|
|
|
5804
5804
|
};
|
|
5805
5805
|
user: User$2;
|
|
5806
5806
|
}>;
|
|
5807
|
-
}>) | ((inputContext:
|
|
5808
|
-
use: ((inputContext:
|
|
5807
|
+
}>) | ((inputContext: better_call820.MiddlewareInputContext<{
|
|
5808
|
+
use: ((inputContext: better_call820.MiddlewareInputContext<better_call820.MiddlewareOptions>) => Promise<{
|
|
5809
5809
|
session: {
|
|
5810
5810
|
session: Record<string, any> & {
|
|
5811
5811
|
id: string;
|
|
@@ -5877,7 +5877,7 @@ declare const listOrganizations: <O extends OrganizationOptions>(options: O) =>
|
|
|
5877
5877
|
} & {
|
|
5878
5878
|
asResponse?: boolean;
|
|
5879
5879
|
returnHeaders?: boolean;
|
|
5880
|
-
use?:
|
|
5880
|
+
use?: better_call820.Middleware[];
|
|
5881
5881
|
path?: string;
|
|
5882
5882
|
} & {
|
|
5883
5883
|
asResponse?: AsResponse | undefined;
|
|
@@ -5902,7 +5902,7 @@ declare const listOrganizations: <O extends OrganizationOptions>(options: O) =>
|
|
|
5902
5902
|
} & InferAdditionalFieldsFromPluginOptions<"organization", O, false> extends infer T_1 ? { [K in keyof T_1]: T_1[K] } : never)[]>;
|
|
5903
5903
|
options: {
|
|
5904
5904
|
method: "GET";
|
|
5905
|
-
use: (((inputContext:
|
|
5905
|
+
use: (((inputContext: better_call820.MiddlewareInputContext<better_call820.MiddlewareOptions>) => Promise<{
|
|
5906
5906
|
orgOptions: OrganizationOptions;
|
|
5907
5907
|
roles: typeof defaultRoles & {
|
|
5908
5908
|
[key: string]: Role<{}>;
|
|
@@ -5914,8 +5914,8 @@ declare const listOrganizations: <O extends OrganizationOptions>(options: O) =>
|
|
|
5914
5914
|
};
|
|
5915
5915
|
user: User$2;
|
|
5916
5916
|
}>;
|
|
5917
|
-
}>) | ((inputContext:
|
|
5918
|
-
use: ((inputContext:
|
|
5917
|
+
}>) | ((inputContext: better_call820.MiddlewareInputContext<{
|
|
5918
|
+
use: ((inputContext: better_call820.MiddlewareInputContext<better_call820.MiddlewareOptions>) => Promise<{
|
|
5919
5919
|
session: {
|
|
5920
5920
|
session: Record<string, any> & {
|
|
5921
5921
|
id: string;
|
|
@@ -5975,13 +5975,13 @@ declare const listOrganizations: <O extends OrganizationOptions>(options: O) =>
|
|
|
5975
5975
|
//#endregion
|
|
5976
5976
|
//#region src/plugins/organization/routes/crud-team.d.ts
|
|
5977
5977
|
declare const createTeam: <O extends OrganizationOptions>(options: O) => {
|
|
5978
|
-
<AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(...inputCtx:
|
|
5978
|
+
<AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(...inputCtx: better_call820.HasRequiredKeys<better_call820.InputContext<"/organization/create-team", {
|
|
5979
5979
|
method: "POST";
|
|
5980
5980
|
body: z$1.ZodObject<{
|
|
5981
5981
|
name: z$1.ZodString;
|
|
5982
5982
|
organizationId: z$1.ZodOptional<z$1.ZodString>;
|
|
5983
5983
|
}, z$1.core.$strip>;
|
|
5984
|
-
use: ((inputContext:
|
|
5984
|
+
use: ((inputContext: better_call820.MiddlewareInputContext<better_call820.MiddlewareOptions>) => Promise<{
|
|
5985
5985
|
orgOptions: OrganizationOptions;
|
|
5986
5986
|
roles: typeof defaultRoles & {
|
|
5987
5987
|
[key: string]: Role<{}>;
|
|
@@ -6044,13 +6044,13 @@ declare const createTeam: <O extends OrganizationOptions>(options: O) => {
|
|
|
6044
6044
|
};
|
|
6045
6045
|
} & {
|
|
6046
6046
|
use: any[];
|
|
6047
|
-
}>> extends true ? [
|
|
6047
|
+
}>> extends true ? [better_call820.InferBodyInput<{
|
|
6048
6048
|
method: "POST";
|
|
6049
6049
|
body: z$1.ZodObject<{
|
|
6050
6050
|
name: z$1.ZodString;
|
|
6051
6051
|
organizationId: z$1.ZodOptional<z$1.ZodString>;
|
|
6052
6052
|
}, z$1.core.$strip>;
|
|
6053
|
-
use: ((inputContext:
|
|
6053
|
+
use: ((inputContext: better_call820.MiddlewareInputContext<better_call820.MiddlewareOptions>) => Promise<{
|
|
6054
6054
|
orgOptions: OrganizationOptions;
|
|
6055
6055
|
roles: typeof defaultRoles & {
|
|
6056
6056
|
[key: string]: Role<{}>;
|
|
@@ -6129,18 +6129,18 @@ declare const createTeam: <O extends OrganizationOptions>(options: O) => {
|
|
|
6129
6129
|
} & {
|
|
6130
6130
|
asResponse?: boolean;
|
|
6131
6131
|
returnHeaders?: boolean;
|
|
6132
|
-
use?:
|
|
6132
|
+
use?: better_call820.Middleware[];
|
|
6133
6133
|
path?: string;
|
|
6134
6134
|
} & {
|
|
6135
6135
|
asResponse?: AsResponse | undefined;
|
|
6136
6136
|
returnHeaders?: ReturnHeaders | undefined;
|
|
6137
|
-
}] : [((
|
|
6137
|
+
}] : [((better_call820.InferBodyInput<{
|
|
6138
6138
|
method: "POST";
|
|
6139
6139
|
body: z$1.ZodObject<{
|
|
6140
6140
|
name: z$1.ZodString;
|
|
6141
6141
|
organizationId: z$1.ZodOptional<z$1.ZodString>;
|
|
6142
6142
|
}, z$1.core.$strip>;
|
|
6143
|
-
use: ((inputContext:
|
|
6143
|
+
use: ((inputContext: better_call820.MiddlewareInputContext<better_call820.MiddlewareOptions>) => Promise<{
|
|
6144
6144
|
orgOptions: OrganizationOptions;
|
|
6145
6145
|
roles: typeof defaultRoles & {
|
|
6146
6146
|
[key: string]: Role<{}>;
|
|
@@ -6219,7 +6219,7 @@ declare const createTeam: <O extends OrganizationOptions>(options: O) => {
|
|
|
6219
6219
|
} & {
|
|
6220
6220
|
asResponse?: boolean;
|
|
6221
6221
|
returnHeaders?: boolean;
|
|
6222
|
-
use?:
|
|
6222
|
+
use?: better_call820.Middleware[];
|
|
6223
6223
|
path?: string;
|
|
6224
6224
|
} & {
|
|
6225
6225
|
asResponse?: AsResponse | undefined;
|
|
@@ -6246,7 +6246,7 @@ declare const createTeam: <O extends OrganizationOptions>(options: O) => {
|
|
|
6246
6246
|
name: z$1.ZodString;
|
|
6247
6247
|
organizationId: z$1.ZodOptional<z$1.ZodString>;
|
|
6248
6248
|
}, z$1.core.$strip>;
|
|
6249
|
-
use: ((inputContext:
|
|
6249
|
+
use: ((inputContext: better_call820.MiddlewareInputContext<better_call820.MiddlewareOptions>) => Promise<{
|
|
6250
6250
|
orgOptions: OrganizationOptions;
|
|
6251
6251
|
roles: typeof defaultRoles & {
|
|
6252
6252
|
[key: string]: Role<{}>;
|
|
@@ -6331,7 +6331,7 @@ declare const removeTeam: <O extends OrganizationOptions>(options: O) => {
|
|
|
6331
6331
|
} & {
|
|
6332
6332
|
asResponse?: boolean;
|
|
6333
6333
|
returnHeaders?: boolean;
|
|
6334
|
-
use?:
|
|
6334
|
+
use?: better_call820.Middleware[];
|
|
6335
6335
|
path?: string;
|
|
6336
6336
|
} & {
|
|
6337
6337
|
asResponse?: AsResponse | undefined;
|
|
@@ -6350,7 +6350,7 @@ declare const removeTeam: <O extends OrganizationOptions>(options: O) => {
|
|
|
6350
6350
|
teamId: z$1.ZodString;
|
|
6351
6351
|
organizationId: z$1.ZodOptional<z$1.ZodString>;
|
|
6352
6352
|
}, z$1.core.$strip>;
|
|
6353
|
-
use: ((inputContext:
|
|
6353
|
+
use: ((inputContext: better_call820.MiddlewareInputContext<better_call820.MiddlewareOptions>) => Promise<{
|
|
6354
6354
|
orgOptions: OrganizationOptions;
|
|
6355
6355
|
roles: typeof defaultRoles & {
|
|
6356
6356
|
[key: string]: Role<{}>;
|
|
@@ -6415,7 +6415,7 @@ declare const updateTeam: <O extends OrganizationOptions>(options: O) => {
|
|
|
6415
6415
|
} & {
|
|
6416
6416
|
asResponse?: boolean;
|
|
6417
6417
|
returnHeaders?: boolean;
|
|
6418
|
-
use?:
|
|
6418
|
+
use?: better_call820.Middleware[];
|
|
6419
6419
|
path?: string;
|
|
6420
6420
|
} & {
|
|
6421
6421
|
asResponse?: AsResponse | undefined;
|
|
@@ -6449,7 +6449,7 @@ declare const updateTeam: <O extends OrganizationOptions>(options: O) => {
|
|
|
6449
6449
|
}, z$1.core.$strip>;
|
|
6450
6450
|
}, z$1.core.$strip>;
|
|
6451
6451
|
requireHeaders: true;
|
|
6452
|
-
use: (((inputContext:
|
|
6452
|
+
use: (((inputContext: better_call820.MiddlewareInputContext<better_call820.MiddlewareOptions>) => Promise<{
|
|
6453
6453
|
orgOptions: OrganizationOptions;
|
|
6454
6454
|
roles: typeof defaultRoles & {
|
|
6455
6455
|
[key: string]: Role<{}>;
|
|
@@ -6461,8 +6461,8 @@ declare const updateTeam: <O extends OrganizationOptions>(options: O) => {
|
|
|
6461
6461
|
};
|
|
6462
6462
|
user: User$2;
|
|
6463
6463
|
}>;
|
|
6464
|
-
}>) | ((inputContext:
|
|
6465
|
-
use: ((inputContext:
|
|
6464
|
+
}>) | ((inputContext: better_call820.MiddlewareInputContext<{
|
|
6465
|
+
use: ((inputContext: better_call820.MiddlewareInputContext<better_call820.MiddlewareOptions>) => Promise<{
|
|
6466
6466
|
session: {
|
|
6467
6467
|
session: Record<string, any> & {
|
|
6468
6468
|
id: string;
|
|
@@ -6565,7 +6565,7 @@ declare const listOrganizationTeams: <O extends OrganizationOptions>(options: O)
|
|
|
6565
6565
|
} & {
|
|
6566
6566
|
asResponse?: boolean;
|
|
6567
6567
|
returnHeaders?: boolean;
|
|
6568
|
-
use?:
|
|
6568
|
+
use?: better_call820.Middleware[];
|
|
6569
6569
|
path?: string;
|
|
6570
6570
|
} & {
|
|
6571
6571
|
asResponse?: AsResponse | undefined;
|
|
@@ -6638,7 +6638,7 @@ declare const listOrganizationTeams: <O extends OrganizationOptions>(options: O)
|
|
|
6638
6638
|
};
|
|
6639
6639
|
};
|
|
6640
6640
|
};
|
|
6641
|
-
use: (((inputContext:
|
|
6641
|
+
use: (((inputContext: better_call820.MiddlewareInputContext<better_call820.MiddlewareOptions>) => Promise<{
|
|
6642
6642
|
orgOptions: OrganizationOptions;
|
|
6643
6643
|
roles: typeof defaultRoles & {
|
|
6644
6644
|
[key: string]: Role<{}>;
|
|
@@ -6650,8 +6650,8 @@ declare const listOrganizationTeams: <O extends OrganizationOptions>(options: O)
|
|
|
6650
6650
|
};
|
|
6651
6651
|
user: User$2;
|
|
6652
6652
|
}>;
|
|
6653
|
-
}>) | ((inputContext:
|
|
6654
|
-
use: ((inputContext:
|
|
6653
|
+
}>) | ((inputContext: better_call820.MiddlewareInputContext<{
|
|
6654
|
+
use: ((inputContext: better_call820.MiddlewareInputContext<better_call820.MiddlewareOptions>) => Promise<{
|
|
6655
6655
|
session: {
|
|
6656
6656
|
session: Record<string, any> & {
|
|
6657
6657
|
id: string;
|
|
@@ -6706,7 +6706,7 @@ declare const setActiveTeam: <O extends OrganizationOptions>(options: O) => {
|
|
|
6706
6706
|
} & {
|
|
6707
6707
|
asResponse?: boolean;
|
|
6708
6708
|
returnHeaders?: boolean;
|
|
6709
|
-
use?:
|
|
6709
|
+
use?: better_call820.Middleware[];
|
|
6710
6710
|
path?: string;
|
|
6711
6711
|
} & {
|
|
6712
6712
|
asResponse?: AsResponse | undefined;
|
|
@@ -6732,7 +6732,7 @@ declare const setActiveTeam: <O extends OrganizationOptions>(options: O) => {
|
|
|
6732
6732
|
body: z$1.ZodObject<{
|
|
6733
6733
|
teamId: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
|
|
6734
6734
|
}, z$1.core.$strip>;
|
|
6735
|
-
use: (((inputContext:
|
|
6735
|
+
use: (((inputContext: better_call820.MiddlewareInputContext<better_call820.MiddlewareOptions>) => Promise<{
|
|
6736
6736
|
orgOptions: OrganizationOptions;
|
|
6737
6737
|
roles: typeof defaultRoles & {
|
|
6738
6738
|
[key: string]: Role<{}>;
|
|
@@ -6744,8 +6744,8 @@ declare const setActiveTeam: <O extends OrganizationOptions>(options: O) => {
|
|
|
6744
6744
|
};
|
|
6745
6745
|
user: User$2;
|
|
6746
6746
|
}>;
|
|
6747
|
-
}>) | ((inputContext:
|
|
6748
|
-
use: ((inputContext:
|
|
6747
|
+
}>) | ((inputContext: better_call820.MiddlewareInputContext<{
|
|
6748
|
+
use: ((inputContext: better_call820.MiddlewareInputContext<better_call820.MiddlewareOptions>) => Promise<{
|
|
6749
6749
|
session: {
|
|
6750
6750
|
session: Record<string, any> & {
|
|
6751
6751
|
id: string;
|
|
@@ -6817,7 +6817,7 @@ declare const listUserTeams: <O extends OrganizationOptions>(options: O) => {
|
|
|
6817
6817
|
} & {
|
|
6818
6818
|
asResponse?: boolean;
|
|
6819
6819
|
returnHeaders?: boolean;
|
|
6820
|
-
use?:
|
|
6820
|
+
use?: better_call820.Middleware[];
|
|
6821
6821
|
path?: string;
|
|
6822
6822
|
} & {
|
|
6823
6823
|
asResponse?: AsResponse | undefined;
|
|
@@ -6863,7 +6863,7 @@ declare const listUserTeams: <O extends OrganizationOptions>(options: O) => {
|
|
|
6863
6863
|
};
|
|
6864
6864
|
};
|
|
6865
6865
|
};
|
|
6866
|
-
use: (((inputContext:
|
|
6866
|
+
use: (((inputContext: better_call820.MiddlewareInputContext<better_call820.MiddlewareOptions>) => Promise<{
|
|
6867
6867
|
orgOptions: OrganizationOptions;
|
|
6868
6868
|
roles: typeof defaultRoles & {
|
|
6869
6869
|
[key: string]: Role<{}>;
|
|
@@ -6875,8 +6875,8 @@ declare const listUserTeams: <O extends OrganizationOptions>(options: O) => {
|
|
|
6875
6875
|
};
|
|
6876
6876
|
user: User$2;
|
|
6877
6877
|
}>;
|
|
6878
|
-
}>) | ((inputContext:
|
|
6879
|
-
use: ((inputContext:
|
|
6878
|
+
}>) | ((inputContext: better_call820.MiddlewareInputContext<{
|
|
6879
|
+
use: ((inputContext: better_call820.MiddlewareInputContext<better_call820.MiddlewareOptions>) => Promise<{
|
|
6880
6880
|
session: {
|
|
6881
6881
|
session: Record<string, any> & {
|
|
6882
6882
|
id: string;
|
|
@@ -6931,7 +6931,7 @@ declare const listTeamMembers: <O extends OrganizationOptions>(options: O) => {
|
|
|
6931
6931
|
} & {
|
|
6932
6932
|
asResponse?: boolean;
|
|
6933
6933
|
returnHeaders?: boolean;
|
|
6934
|
-
use?:
|
|
6934
|
+
use?: better_call820.Middleware[];
|
|
6935
6935
|
path?: string;
|
|
6936
6936
|
} & {
|
|
6937
6937
|
asResponse?: AsResponse | undefined;
|
|
@@ -6997,7 +6997,7 @@ declare const listTeamMembers: <O extends OrganizationOptions>(options: O) => {
|
|
|
6997
6997
|
};
|
|
6998
6998
|
};
|
|
6999
6999
|
};
|
|
7000
|
-
use: (((inputContext:
|
|
7000
|
+
use: (((inputContext: better_call820.MiddlewareInputContext<better_call820.MiddlewareOptions>) => Promise<{
|
|
7001
7001
|
orgOptions: OrganizationOptions;
|
|
7002
7002
|
roles: typeof defaultRoles & {
|
|
7003
7003
|
[key: string]: Role<{}>;
|
|
@@ -7009,8 +7009,8 @@ declare const listTeamMembers: <O extends OrganizationOptions>(options: O) => {
|
|
|
7009
7009
|
};
|
|
7010
7010
|
user: User$2;
|
|
7011
7011
|
}>;
|
|
7012
|
-
}>) | ((inputContext:
|
|
7013
|
-
use: ((inputContext:
|
|
7012
|
+
}>) | ((inputContext: better_call820.MiddlewareInputContext<{
|
|
7013
|
+
use: ((inputContext: better_call820.MiddlewareInputContext<better_call820.MiddlewareOptions>) => Promise<{
|
|
7014
7014
|
session: {
|
|
7015
7015
|
session: Record<string, any> & {
|
|
7016
7016
|
id: string;
|
|
@@ -7066,7 +7066,7 @@ declare const addTeamMember: <O extends OrganizationOptions>(options: O) => {
|
|
|
7066
7066
|
} & {
|
|
7067
7067
|
asResponse?: boolean;
|
|
7068
7068
|
returnHeaders?: boolean;
|
|
7069
|
-
use?:
|
|
7069
|
+
use?: better_call820.Middleware[];
|
|
7070
7070
|
path?: string;
|
|
7071
7071
|
} & {
|
|
7072
7072
|
asResponse?: AsResponse | undefined;
|
|
@@ -7129,7 +7129,7 @@ declare const addTeamMember: <O extends OrganizationOptions>(options: O) => {
|
|
|
7129
7129
|
};
|
|
7130
7130
|
};
|
|
7131
7131
|
};
|
|
7132
|
-
use: (((inputContext:
|
|
7132
|
+
use: (((inputContext: better_call820.MiddlewareInputContext<better_call820.MiddlewareOptions>) => Promise<{
|
|
7133
7133
|
orgOptions: OrganizationOptions;
|
|
7134
7134
|
roles: typeof defaultRoles & {
|
|
7135
7135
|
[key: string]: Role<{}>;
|
|
@@ -7141,8 +7141,8 @@ declare const addTeamMember: <O extends OrganizationOptions>(options: O) => {
|
|
|
7141
7141
|
};
|
|
7142
7142
|
user: User$2;
|
|
7143
7143
|
}>;
|
|
7144
|
-
}>) | ((inputContext:
|
|
7145
|
-
use: ((inputContext:
|
|
7144
|
+
}>) | ((inputContext: better_call820.MiddlewareInputContext<{
|
|
7145
|
+
use: ((inputContext: better_call820.MiddlewareInputContext<better_call820.MiddlewareOptions>) => Promise<{
|
|
7146
7146
|
session: {
|
|
7147
7147
|
session: Record<string, any> & {
|
|
7148
7148
|
id: string;
|
|
@@ -7198,7 +7198,7 @@ declare const removeTeamMember: <O extends OrganizationOptions>(options: O) => {
|
|
|
7198
7198
|
} & {
|
|
7199
7199
|
asResponse?: boolean;
|
|
7200
7200
|
returnHeaders?: boolean;
|
|
7201
|
-
use?:
|
|
7201
|
+
use?: better_call820.Middleware[];
|
|
7202
7202
|
path?: string;
|
|
7203
7203
|
} & {
|
|
7204
7204
|
asResponse?: AsResponse | undefined;
|
|
@@ -7242,7 +7242,7 @@ declare const removeTeamMember: <O extends OrganizationOptions>(options: O) => {
|
|
|
7242
7242
|
};
|
|
7243
7243
|
};
|
|
7244
7244
|
};
|
|
7245
|
-
use: (((inputContext:
|
|
7245
|
+
use: (((inputContext: better_call820.MiddlewareInputContext<better_call820.MiddlewareOptions>) => Promise<{
|
|
7246
7246
|
orgOptions: OrganizationOptions;
|
|
7247
7247
|
roles: typeof defaultRoles & {
|
|
7248
7248
|
[key: string]: Role<{}>;
|
|
@@ -7254,8 +7254,8 @@ declare const removeTeamMember: <O extends OrganizationOptions>(options: O) => {
|
|
|
7254
7254
|
};
|
|
7255
7255
|
user: User$2;
|
|
7256
7256
|
}>;
|
|
7257
|
-
}>) | ((inputContext:
|
|
7258
|
-
use: ((inputContext:
|
|
7257
|
+
}>) | ((inputContext: better_call820.MiddlewareInputContext<{
|
|
7258
|
+
use: ((inputContext: better_call820.MiddlewareInputContext<better_call820.MiddlewareOptions>) => Promise<{
|
|
7259
7259
|
session: {
|
|
7260
7260
|
session: Record<string, any> & {
|
|
7261
7261
|
id: string;
|
|
@@ -7400,7 +7400,7 @@ declare const createHasPermission: <O extends OrganizationOptions>(options: O) =
|
|
|
7400
7400
|
} & {
|
|
7401
7401
|
asResponse?: boolean;
|
|
7402
7402
|
returnHeaders?: boolean;
|
|
7403
|
-
use?:
|
|
7403
|
+
use?: better_call820.Middleware[];
|
|
7404
7404
|
path?: string;
|
|
7405
7405
|
} & {
|
|
7406
7406
|
asResponse?: AsResponse | undefined;
|
|
@@ -7427,8 +7427,8 @@ declare const createHasPermission: <O extends OrganizationOptions>(options: O) =
|
|
|
7427
7427
|
permission: z$1.ZodUndefined;
|
|
7428
7428
|
permissions: z$1.ZodRecord<z$1.ZodString, z$1.ZodArray<z$1.ZodString>>;
|
|
7429
7429
|
}, z$1.core.$strip>]>>;
|
|
7430
|
-
use: ((inputContext:
|
|
7431
|
-
use: ((inputContext:
|
|
7430
|
+
use: ((inputContext: better_call820.MiddlewareInputContext<{
|
|
7431
|
+
use: ((inputContext: better_call820.MiddlewareInputContext<better_call820.MiddlewareOptions>) => Promise<{
|
|
7432
7432
|
session: {
|
|
7433
7433
|
session: Record<string, any> & {
|
|
7434
7434
|
id: string;
|