faire-auth 1.0.1 → 1.0.2
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.d.cts +1 -1
- package/dist/adapters/drizzle-adapter/index.d.mts +1 -1
- package/dist/adapters/index.d.cts +1 -1
- package/dist/adapters/index.d.mts +1 -1
- package/dist/adapters/kysely-adapter/index.d.cts +1 -1
- package/dist/adapters/kysely-adapter/index.d.mts +1 -1
- package/dist/adapters/memory-adapter/index.d.cts +1 -1
- package/dist/adapters/memory-adapter/index.d.mts +1 -1
- package/dist/adapters/mongodb-adapter/index.d.cts +1 -1
- package/dist/adapters/mongodb-adapter/index.d.mts +1 -1
- package/dist/adapters/prisma-adapter/index.d.cts +1 -1
- package/dist/adapters/prisma-adapter/index.d.mts +1 -1
- package/dist/adapters/test.d.cts +1 -1
- package/dist/adapters/test.d.mts +1 -1
- package/dist/api/index.d.cts +1 -1
- package/dist/api/index.d.mts +1 -1
- package/dist/api/middleware/index.d.cts +3 -3
- package/dist/api/middleware/index.d.mts +3 -3
- package/dist/client/index.d.cts +1 -1
- package/dist/client/index.d.mts +1 -1
- package/dist/client/lynx/index.d.cts +12 -12
- package/dist/client/lynx/index.d.mts +12 -12
- package/dist/client/plugins/index.d.cts +1 -1
- package/dist/client/plugins/index.d.mts +1 -1
- package/dist/client/react/index.d.cts +26 -26
- package/dist/client/react/index.d.mts +16 -16
- package/dist/client/solid/index.d.cts +16 -16
- package/dist/client/solid/index.d.mts +16 -16
- package/dist/client/svelte/index.d.cts +13 -13
- package/dist/client/svelte/index.d.mts +26 -26
- package/dist/client/vue/index.d.cts +12 -12
- package/dist/client/vue/index.d.mts +10 -10
- package/dist/crypto/index.d.cts +2 -2
- package/dist/crypto/index.d.mts +2 -2
- package/dist/db/index.d.cts +1 -1
- package/dist/db/index.d.mts +1 -1
- package/dist/{index-DCuvAh3N.d.mts → index-4PEF72Mq.d.cts} +15 -15
- package/dist/{index-CL5oW5Uh.d.cts → index-BCzB3uDD.d.cts} +791 -791
- package/dist/{index-ClFGA8tb.d.mts → index-Bw8dyZTc.d.cts} +2 -2
- package/dist/{index-BfbDrljm.d.cts → index-C0b8eC8h.d.mts} +17 -17
- package/dist/{index-DK2ECcVe.d.mts → index-CrmLTEj8.d.mts} +232 -232
- package/dist/{index-ztVZPQdV.d.mts → index-Dfgobqa-.d.mts} +6 -6
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/integrations/next-js.d.cts +4 -4
- package/dist/integrations/next-js.d.mts +5 -5
- package/dist/integrations/node.d.cts +1 -1
- package/dist/integrations/node.d.mts +1 -1
- package/dist/integrations/react-start.d.cts +4 -4
- package/dist/integrations/react-start.d.mts +5 -5
- package/dist/integrations/svelte-kit.d.cts +5 -5
- package/dist/integrations/svelte-kit.d.mts +5 -5
- package/dist/oauth2/index.d.cts +1 -1
- package/dist/oauth2/index.d.mts +1 -1
- package/dist/plugins/bearer/index.d.cts +2 -2
- package/dist/plugins/bearer/index.d.mts +2 -2
- package/dist/plugins/index.d.cts +262 -262
- package/dist/plugins/index.d.mts +348 -348
- package/dist/plugins/passkey/index.d.cts +2 -2
- package/dist/plugins/passkey/index.d.mts +2 -2
- package/dist/test-utils/index.d.cts +268 -268
- package/dist/test-utils/index.d.mts +997 -997
- package/dist/types/index.d.cts +1 -1
- package/dist/types/index.d.mts +1 -1
- package/dist/utils/cookies.d.cts +1 -1
- package/dist/utils/cookies.d.mts +1 -1
- package/package.json +2 -2
- package/dist/index-BC42NdCJ.d.mts +0 -992
- package/dist/index-BNCikaaH.d.cts +0 -13350
- package/dist/index-BotKDRUI.d.mts +0 -13350
- package/dist/index-Dsua4U8w.d.cts +0 -33
- package/dist/index-KQ5RLFjm.d.cts +0 -33
- package/dist/index-w-IdIOQJ.d.cts +0 -992
package/dist/plugins/index.d.cts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { Ct as InferPluginRateLimit, St as InferPluginMiddleware, _t as FaireAuthPlugin, an as AuthContext$1, bt as InferPluginErrorCodes, gt as AuthPluginSchema, in as createEndpoint, tn as AuthEndpoint, vt as InferOptionSchema, xt as InferPluginHooks, yt as InferPluginDTO } from "../index-
|
|
1
|
+
import { Ct as InferPluginRateLimit, St as InferPluginMiddleware, _t as FaireAuthPlugin, an as AuthContext$1, bt as InferPluginErrorCodes, gt as AuthPluginSchema, in as createEndpoint, tn as AuthEndpoint, vt as InferOptionSchema, xt as InferPluginHooks, yt as InferPluginDTO } from "../index-BCzB3uDD.cjs";
|
|
2
2
|
import { t as ContextVars } from "../hono-DOM31WQz.cjs";
|
|
3
3
|
import { a as Role, c as Subset, i as AccessControl, n as createAccessControl, o as Statements, r as role, s as SubArray, t as AuthorizeResponse } from "../index-CdLyn7qP.cjs";
|
|
4
|
-
import { t as bearer } from "../index-
|
|
5
|
-
import { n as PasskeyOptions, r as passkey, t as Passkey } from "../index-
|
|
6
|
-
import * as
|
|
4
|
+
import { t as bearer } from "../index-Bw8dyZTc.cjs";
|
|
5
|
+
import { n as PasskeyOptions, r as passkey, t as Passkey } from "../index-4PEF72Mq.cjs";
|
|
6
|
+
import * as _faire_auth_core_types47 from "@faire-auth/core/types";
|
|
7
7
|
import { FieldAttribute, HookHandler, InferAdditionalFieldsFromPluginOptions, LiteralString, LiteralStringUnion, Prettify } from "@faire-auth/core/types";
|
|
8
|
-
import * as
|
|
8
|
+
import * as hono73 from "hono";
|
|
9
9
|
import { Context, HonoRequest } from "hono";
|
|
10
10
|
import * as _faire_auth_core_db61 from "@faire-auth/core/db";
|
|
11
11
|
import { FaireAuthPluginDBSchema, Session, User } from "@faire-auth/core/db";
|
|
@@ -15,7 +15,7 @@ import { z } from "zod";
|
|
|
15
15
|
import * as _better_fetch_fetch59 from "@better-fetch/fetch";
|
|
16
16
|
import { Input, MiddlewareHandler as MiddlewareHandler$1 } from "hono/types";
|
|
17
17
|
import { HonoRequest as HonoRequest$1 } from "hono/request";
|
|
18
|
-
import * as
|
|
18
|
+
import * as zod_v4_core0 from "zod/v4/core";
|
|
19
19
|
|
|
20
20
|
//#region src/plugins/magic-link/index.d.ts
|
|
21
21
|
interface MagicLinkOptions {
|
|
@@ -181,7 +181,7 @@ declare const magicLink: (options: MagicLinkOptions) => {
|
|
|
181
181
|
operationId: "verifyMagicLink";
|
|
182
182
|
path: "/magic-link/verify";
|
|
183
183
|
method: "get";
|
|
184
|
-
middleware: [(ctx:
|
|
184
|
+
middleware: [(ctx: hono73.Context<ContextVars<object>, string, {}>, next: hono73.Next) => Promise<void | Response>];
|
|
185
185
|
request: {
|
|
186
186
|
query: z$1.ZodObject<{
|
|
187
187
|
token: z$1.ZodString;
|
|
@@ -243,7 +243,7 @@ declare const oAuthProxy: (opts?: OAuthProxyOptions) => {
|
|
|
243
243
|
path: "/oauth-proxy-callback";
|
|
244
244
|
method: "get";
|
|
245
245
|
isAction: false;
|
|
246
|
-
middleware: [(ctx: Context<ContextVars<object>, string, {}>, next:
|
|
246
|
+
middleware: [(ctx: Context<ContextVars<object>, string, {}>, next: hono73.Next) => Promise<void | Response>];
|
|
247
247
|
request: {
|
|
248
248
|
query: z$1.ZodObject<{
|
|
249
249
|
callbackURL: z$1.ZodPipe<z$1.ZodPipe<z$1.ZodTransform<string, string>, z$1.ZodURL>, z$1.ZodTransform<string, string>>;
|
|
@@ -278,7 +278,7 @@ declare const oAuthProxy: (opts?: OAuthProxyOptions) => {
|
|
|
278
278
|
hooks: {
|
|
279
279
|
after: {
|
|
280
280
|
matcher: (ctx: Context<ContextVars<any>, any, {}>) => any;
|
|
281
|
-
handler: (_opts:
|
|
281
|
+
handler: (_opts: _faire_auth_core_types47.FaireAuthOptions<any>) => (ctx: Context<ContextVars<object>, string, {}>) => Promise<void>;
|
|
282
282
|
}[];
|
|
283
283
|
};
|
|
284
284
|
};
|
|
@@ -1613,7 +1613,7 @@ declare const createOrgRole: <O extends OrganizationOptions>(options: O) => Auth
|
|
|
1613
1613
|
image?: string | null;
|
|
1614
1614
|
};
|
|
1615
1615
|
};
|
|
1616
|
-
}>, string, {}>, next:
|
|
1616
|
+
}>, string, {}>, next: hono73.Next) => Promise<void | (Response & hono73.TypedResponse<{
|
|
1617
1617
|
success: false;
|
|
1618
1618
|
code?: string | undefined;
|
|
1619
1619
|
message?: string | undefined;
|
|
@@ -1629,7 +1629,7 @@ declare const createOrgRole: <O extends OrganizationOptions>(options: O) => Auth
|
|
|
1629
1629
|
};
|
|
1630
1630
|
user: User;
|
|
1631
1631
|
} | null>;
|
|
1632
|
-
}>, string, {}>, next:
|
|
1632
|
+
}>, string, {}>, next: hono73.Next) => Promise<void>];
|
|
1633
1633
|
request: {
|
|
1634
1634
|
body: {
|
|
1635
1635
|
description?: string;
|
|
@@ -1748,7 +1748,7 @@ declare const deleteOrgRole: <O extends OrganizationOptions>(options: O) => Auth
|
|
|
1748
1748
|
image?: string | null;
|
|
1749
1749
|
};
|
|
1750
1750
|
};
|
|
1751
|
-
}>, string, {}>, next:
|
|
1751
|
+
}>, string, {}>, next: hono73.Next) => Promise<void | (Response & hono73.TypedResponse<{
|
|
1752
1752
|
success: false;
|
|
1753
1753
|
code?: string | undefined;
|
|
1754
1754
|
message?: string | undefined;
|
|
@@ -1764,7 +1764,7 @@ declare const deleteOrgRole: <O extends OrganizationOptions>(options: O) => Auth
|
|
|
1764
1764
|
};
|
|
1765
1765
|
user: User;
|
|
1766
1766
|
} | null>;
|
|
1767
|
-
}>, string, {}>, next:
|
|
1767
|
+
}>, string, {}>, next: hono73.Next) => Promise<void>];
|
|
1768
1768
|
request: {
|
|
1769
1769
|
body: {
|
|
1770
1770
|
description?: string;
|
|
@@ -1877,7 +1877,7 @@ declare const listOrgRoles: <O extends OrganizationOptions>(options: O) => AuthE
|
|
|
1877
1877
|
image?: string | null;
|
|
1878
1878
|
};
|
|
1879
1879
|
};
|
|
1880
|
-
}>, string, {}>, next:
|
|
1880
|
+
}>, string, {}>, next: hono73.Next) => Promise<void | (Response & hono73.TypedResponse<{
|
|
1881
1881
|
success: false;
|
|
1882
1882
|
code?: string | undefined;
|
|
1883
1883
|
message?: string | undefined;
|
|
@@ -1893,7 +1893,7 @@ declare const listOrgRoles: <O extends OrganizationOptions>(options: O) => AuthE
|
|
|
1893
1893
|
};
|
|
1894
1894
|
user: User;
|
|
1895
1895
|
} | null>;
|
|
1896
|
-
}>, string, {}>, next:
|
|
1896
|
+
}>, string, {}>, next: hono73.Next) => Promise<void>];
|
|
1897
1897
|
request: {
|
|
1898
1898
|
query: z$1.ZodObject<{
|
|
1899
1899
|
organizationId: z$1.ZodOptional<z$1.ZodString>;
|
|
@@ -1994,7 +1994,7 @@ declare const getOrgRole: <O extends OrganizationOptions>(options: O) => AuthEnd
|
|
|
1994
1994
|
image?: string | null;
|
|
1995
1995
|
};
|
|
1996
1996
|
};
|
|
1997
|
-
}>, string, {}>, next:
|
|
1997
|
+
}>, string, {}>, next: hono73.Next) => Promise<void | (Response & hono73.TypedResponse<{
|
|
1998
1998
|
success: false;
|
|
1999
1999
|
code?: string | undefined;
|
|
2000
2000
|
message?: string | undefined;
|
|
@@ -2010,7 +2010,7 @@ declare const getOrgRole: <O extends OrganizationOptions>(options: O) => AuthEnd
|
|
|
2010
2010
|
};
|
|
2011
2011
|
user: User;
|
|
2012
2012
|
} | null>;
|
|
2013
|
-
}>, string, {}>, next:
|
|
2013
|
+
}>, string, {}>, next: hono73.Next) => Promise<void>];
|
|
2014
2014
|
request: {
|
|
2015
2015
|
query: z$1.ZodObject<{
|
|
2016
2016
|
organizationId: z$1.ZodOptional<z$1.ZodString>;
|
|
@@ -2126,7 +2126,7 @@ declare const updateOrgRole: <O extends OrganizationOptions>(options: O) => Auth
|
|
|
2126
2126
|
image?: string | null;
|
|
2127
2127
|
};
|
|
2128
2128
|
};
|
|
2129
|
-
}>, string, {}>, next:
|
|
2129
|
+
}>, string, {}>, next: hono73.Next) => Promise<void | (Response & hono73.TypedResponse<{
|
|
2130
2130
|
success: false;
|
|
2131
2131
|
code?: string | undefined;
|
|
2132
2132
|
message?: string | undefined;
|
|
@@ -2142,7 +2142,7 @@ declare const updateOrgRole: <O extends OrganizationOptions>(options: O) => Auth
|
|
|
2142
2142
|
};
|
|
2143
2143
|
user: User;
|
|
2144
2144
|
} | null>;
|
|
2145
|
-
}>, string, {}>, next:
|
|
2145
|
+
}>, string, {}>, next: hono73.Next) => Promise<void>];
|
|
2146
2146
|
request: {
|
|
2147
2147
|
body: {
|
|
2148
2148
|
description?: string;
|
|
@@ -2317,7 +2317,7 @@ declare const createInvitation: <O extends OrganizationOptions>(option: O) => Au
|
|
|
2317
2317
|
operationId: "createInvitation";
|
|
2318
2318
|
path: "/organization/invite-member";
|
|
2319
2319
|
method: "post";
|
|
2320
|
-
middleware: [(ctx:
|
|
2320
|
+
middleware: [(ctx: hono73.Context<ContextVars<{
|
|
2321
2321
|
session: {
|
|
2322
2322
|
session: {
|
|
2323
2323
|
activeTeamId?: string;
|
|
@@ -2348,23 +2348,23 @@ declare const createInvitation: <O extends OrganizationOptions>(option: O) => Au
|
|
|
2348
2348
|
image?: string | null;
|
|
2349
2349
|
};
|
|
2350
2350
|
};
|
|
2351
|
-
}>, string, {}>, next:
|
|
2351
|
+
}>, string, {}>, next: hono73.Next) => Promise<void | (Response & hono73.TypedResponse<{
|
|
2352
2352
|
success: false;
|
|
2353
2353
|
code?: string | undefined;
|
|
2354
2354
|
message?: string | undefined;
|
|
2355
|
-
}, 401>)>, (ctx:
|
|
2355
|
+
}, 401>)>, (ctx: hono73.Context<ContextVars<{
|
|
2356
2356
|
orgOptions: OrganizationOptions;
|
|
2357
2357
|
roles: typeof defaultRoles & {
|
|
2358
2358
|
[key: string]: Role<{}>;
|
|
2359
2359
|
};
|
|
2360
|
-
getSession: (context:
|
|
2360
|
+
getSession: (context: hono73.Context<ContextVars>) => Promise<{
|
|
2361
2361
|
session: _faire_auth_core_db61.Session & {
|
|
2362
2362
|
activeTeamId?: string;
|
|
2363
2363
|
activeOrganizationId?: string;
|
|
2364
2364
|
};
|
|
2365
2365
|
user: _faire_auth_core_db61.User;
|
|
2366
2366
|
} | null>;
|
|
2367
|
-
}>, string, {}>, next:
|
|
2367
|
+
}>, string, {}>, next: hono73.Next) => Promise<void>];
|
|
2368
2368
|
request: {
|
|
2369
2369
|
body: {
|
|
2370
2370
|
description?: string;
|
|
@@ -2617,7 +2617,7 @@ declare const acceptInvitation: <O extends OrganizationOptions>(options: O) => A
|
|
|
2617
2617
|
operationId: "acceptInvitation";
|
|
2618
2618
|
path: "/organization/accept-invitation";
|
|
2619
2619
|
method: "post";
|
|
2620
|
-
middleware: [(ctx:
|
|
2620
|
+
middleware: [(ctx: hono73.Context<ContextVars<{
|
|
2621
2621
|
session: {
|
|
2622
2622
|
session: {
|
|
2623
2623
|
activeTeamId?: string;
|
|
@@ -2648,23 +2648,23 @@ declare const acceptInvitation: <O extends OrganizationOptions>(options: O) => A
|
|
|
2648
2648
|
image?: string | null;
|
|
2649
2649
|
};
|
|
2650
2650
|
};
|
|
2651
|
-
}>, string, {}>, next:
|
|
2651
|
+
}>, string, {}>, next: hono73.Next) => Promise<void | (Response & hono73.TypedResponse<{
|
|
2652
2652
|
success: false;
|
|
2653
2653
|
code?: string | undefined;
|
|
2654
2654
|
message?: string | undefined;
|
|
2655
|
-
}, 401>)>, (ctx:
|
|
2655
|
+
}, 401>)>, (ctx: hono73.Context<ContextVars<{
|
|
2656
2656
|
orgOptions: OrganizationOptions;
|
|
2657
2657
|
roles: typeof defaultRoles & {
|
|
2658
2658
|
[key: string]: Role<{}>;
|
|
2659
2659
|
};
|
|
2660
|
-
getSession: (context:
|
|
2660
|
+
getSession: (context: hono73.Context<ContextVars>) => Promise<{
|
|
2661
2661
|
session: _faire_auth_core_db61.Session & {
|
|
2662
2662
|
activeTeamId?: string;
|
|
2663
2663
|
activeOrganizationId?: string;
|
|
2664
2664
|
};
|
|
2665
2665
|
user: _faire_auth_core_db61.User;
|
|
2666
2666
|
} | null>;
|
|
2667
|
-
}>, string, {}>, next:
|
|
2667
|
+
}>, string, {}>, next: hono73.Next) => Promise<void>];
|
|
2668
2668
|
request: {
|
|
2669
2669
|
body: {
|
|
2670
2670
|
description?: string;
|
|
@@ -2786,7 +2786,7 @@ declare const rejectInvitation: <O extends OrganizationOptions>(options: O) => A
|
|
|
2786
2786
|
operationId: "rejectInvitation";
|
|
2787
2787
|
path: "/organization/reject-invitation";
|
|
2788
2788
|
method: "post";
|
|
2789
|
-
middleware: [(ctx:
|
|
2789
|
+
middleware: [(ctx: hono73.Context<ContextVars<{
|
|
2790
2790
|
session: {
|
|
2791
2791
|
session: {
|
|
2792
2792
|
activeTeamId?: string;
|
|
@@ -2817,23 +2817,23 @@ declare const rejectInvitation: <O extends OrganizationOptions>(options: O) => A
|
|
|
2817
2817
|
image?: string | null;
|
|
2818
2818
|
};
|
|
2819
2819
|
};
|
|
2820
|
-
}>, string, {}>, next:
|
|
2820
|
+
}>, string, {}>, next: hono73.Next) => Promise<void | (Response & hono73.TypedResponse<{
|
|
2821
2821
|
success: false;
|
|
2822
2822
|
code?: string | undefined;
|
|
2823
2823
|
message?: string | undefined;
|
|
2824
|
-
}, 401>)>, (ctx:
|
|
2824
|
+
}, 401>)>, (ctx: hono73.Context<ContextVars<{
|
|
2825
2825
|
orgOptions: OrganizationOptions;
|
|
2826
2826
|
roles: typeof defaultRoles & {
|
|
2827
2827
|
[key: string]: Role<{}>;
|
|
2828
2828
|
};
|
|
2829
|
-
getSession: (context:
|
|
2829
|
+
getSession: (context: hono73.Context<ContextVars>) => Promise<{
|
|
2830
2830
|
session: _faire_auth_core_db61.Session & {
|
|
2831
2831
|
activeTeamId?: string;
|
|
2832
2832
|
activeOrganizationId?: string;
|
|
2833
2833
|
};
|
|
2834
2834
|
user: _faire_auth_core_db61.User;
|
|
2835
2835
|
} | null>;
|
|
2836
|
-
}>, string, {}>, next:
|
|
2836
|
+
}>, string, {}>, next: hono73.Next) => Promise<void>];
|
|
2837
2837
|
request: {
|
|
2838
2838
|
body: {
|
|
2839
2839
|
description?: string;
|
|
@@ -2926,7 +2926,7 @@ declare const cancelInvitation: <O extends OrganizationOptions>(options: O) => A
|
|
|
2926
2926
|
operationId: "cancelInvitation";
|
|
2927
2927
|
path: "/organization/cancel-invitation";
|
|
2928
2928
|
method: "post";
|
|
2929
|
-
middleware: [(ctx:
|
|
2929
|
+
middleware: [(ctx: hono73.Context<ContextVars<{
|
|
2930
2930
|
session: {
|
|
2931
2931
|
session: {
|
|
2932
2932
|
activeTeamId?: string;
|
|
@@ -2957,23 +2957,23 @@ declare const cancelInvitation: <O extends OrganizationOptions>(options: O) => A
|
|
|
2957
2957
|
image?: string | null;
|
|
2958
2958
|
};
|
|
2959
2959
|
};
|
|
2960
|
-
}>, string, {}>, next:
|
|
2960
|
+
}>, string, {}>, next: hono73.Next) => Promise<void | (Response & hono73.TypedResponse<{
|
|
2961
2961
|
success: false;
|
|
2962
2962
|
code?: string | undefined;
|
|
2963
2963
|
message?: string | undefined;
|
|
2964
|
-
}, 401>)>, (ctx:
|
|
2964
|
+
}, 401>)>, (ctx: hono73.Context<ContextVars<{
|
|
2965
2965
|
orgOptions: OrganizationOptions;
|
|
2966
2966
|
roles: typeof defaultRoles & {
|
|
2967
2967
|
[key: string]: Role<{}>;
|
|
2968
2968
|
};
|
|
2969
|
-
getSession: (context:
|
|
2969
|
+
getSession: (context: hono73.Context<ContextVars>) => Promise<{
|
|
2970
2970
|
session: _faire_auth_core_db61.Session & {
|
|
2971
2971
|
activeTeamId?: string;
|
|
2972
2972
|
activeOrganizationId?: string;
|
|
2973
2973
|
};
|
|
2974
2974
|
user: _faire_auth_core_db61.User;
|
|
2975
2975
|
} | null>;
|
|
2976
|
-
}>, string, {}>, next:
|
|
2976
|
+
}>, string, {}>, next: hono73.Next) => Promise<void>];
|
|
2977
2977
|
request: {
|
|
2978
2978
|
body: {
|
|
2979
2979
|
description?: string;
|
|
@@ -3075,7 +3075,7 @@ declare const getInvitation: <O extends OrganizationOptions>(options: O) => Auth
|
|
|
3075
3075
|
operationId: "getInvitation";
|
|
3076
3076
|
path: "/organization/get-invitation";
|
|
3077
3077
|
method: "get";
|
|
3078
|
-
middleware: [(ctx:
|
|
3078
|
+
middleware: [(ctx: hono73.Context<ContextVars<{
|
|
3079
3079
|
session: {
|
|
3080
3080
|
session: {
|
|
3081
3081
|
activeTeamId?: string;
|
|
@@ -3106,23 +3106,23 @@ declare const getInvitation: <O extends OrganizationOptions>(options: O) => Auth
|
|
|
3106
3106
|
image?: string | null;
|
|
3107
3107
|
};
|
|
3108
3108
|
};
|
|
3109
|
-
}>, string, {}>, next:
|
|
3109
|
+
}>, string, {}>, next: hono73.Next) => Promise<void | (Response & hono73.TypedResponse<{
|
|
3110
3110
|
success: false;
|
|
3111
3111
|
code?: string | undefined;
|
|
3112
3112
|
message?: string | undefined;
|
|
3113
|
-
}, 401>)>, (ctx:
|
|
3113
|
+
}, 401>)>, (ctx: hono73.Context<ContextVars<{
|
|
3114
3114
|
orgOptions: OrganizationOptions;
|
|
3115
3115
|
roles: typeof defaultRoles & {
|
|
3116
3116
|
[key: string]: Role<{}>;
|
|
3117
3117
|
};
|
|
3118
|
-
getSession: (context:
|
|
3118
|
+
getSession: (context: hono73.Context<ContextVars>) => Promise<{
|
|
3119
3119
|
session: _faire_auth_core_db61.Session & {
|
|
3120
3120
|
activeTeamId?: string;
|
|
3121
3121
|
activeOrganizationId?: string;
|
|
3122
3122
|
};
|
|
3123
3123
|
user: _faire_auth_core_db61.User;
|
|
3124
3124
|
} | null>;
|
|
3125
|
-
}>, string, {}>, next:
|
|
3125
|
+
}>, string, {}>, next: hono73.Next) => Promise<void>];
|
|
3126
3126
|
request: {
|
|
3127
3127
|
query: z.ZodObject<{
|
|
3128
3128
|
id: z.ZodString;
|
|
@@ -3207,7 +3207,7 @@ declare const listInvitations: <O extends OrganizationOptions>(options: O) => Au
|
|
|
3207
3207
|
operationId: "listInvitations";
|
|
3208
3208
|
path: "/organization/list-invitations";
|
|
3209
3209
|
method: "get";
|
|
3210
|
-
middleware: [(ctx:
|
|
3210
|
+
middleware: [(ctx: hono73.Context<ContextVars<{
|
|
3211
3211
|
session: {
|
|
3212
3212
|
session: {
|
|
3213
3213
|
activeTeamId?: string;
|
|
@@ -3238,23 +3238,23 @@ declare const listInvitations: <O extends OrganizationOptions>(options: O) => Au
|
|
|
3238
3238
|
image?: string | null;
|
|
3239
3239
|
};
|
|
3240
3240
|
};
|
|
3241
|
-
}>, string, {}>, next:
|
|
3241
|
+
}>, string, {}>, next: hono73.Next) => Promise<void | (Response & hono73.TypedResponse<{
|
|
3242
3242
|
success: false;
|
|
3243
3243
|
code?: string | undefined;
|
|
3244
3244
|
message?: string | undefined;
|
|
3245
|
-
}, 401>)>, (ctx:
|
|
3245
|
+
}, 401>)>, (ctx: hono73.Context<ContextVars<{
|
|
3246
3246
|
orgOptions: OrganizationOptions;
|
|
3247
3247
|
roles: typeof defaultRoles & {
|
|
3248
3248
|
[key: string]: Role<{}>;
|
|
3249
3249
|
};
|
|
3250
|
-
getSession: (context:
|
|
3250
|
+
getSession: (context: hono73.Context<ContextVars>) => Promise<{
|
|
3251
3251
|
session: _faire_auth_core_db61.Session & {
|
|
3252
3252
|
activeTeamId?: string;
|
|
3253
3253
|
activeOrganizationId?: string;
|
|
3254
3254
|
};
|
|
3255
3255
|
user: _faire_auth_core_db61.User;
|
|
3256
3256
|
} | null>;
|
|
3257
|
-
}>, string, {}>, next:
|
|
3257
|
+
}>, string, {}>, next: hono73.Next) => Promise<void>];
|
|
3258
3258
|
request: {
|
|
3259
3259
|
query: z.ZodObject<{
|
|
3260
3260
|
organizationId: z.ZodOptional<z.ZodString>;
|
|
@@ -3329,28 +3329,28 @@ declare const listUserInvitations: <O extends OrganizationOptions>(options: O) =
|
|
|
3329
3329
|
operationId: "listUserInvitations";
|
|
3330
3330
|
path: "/organization/list-user-invitations";
|
|
3331
3331
|
method: "get";
|
|
3332
|
-
middleware: [(ctx:
|
|
3332
|
+
middleware: [(ctx: hono73.Context<ContextVars<{
|
|
3333
3333
|
session?: {
|
|
3334
3334
|
session: _faire_auth_core_db61.Session;
|
|
3335
3335
|
user: _faire_auth_core_db61.User;
|
|
3336
3336
|
};
|
|
3337
|
-
}>, string, {}>, next:
|
|
3337
|
+
}>, string, {}>, next: hono73.Next) => Promise<void | (Response & hono73.TypedResponse<{
|
|
3338
3338
|
success: false;
|
|
3339
3339
|
code?: string | undefined;
|
|
3340
3340
|
message?: string | undefined;
|
|
3341
|
-
}, 401>)>, (ctx:
|
|
3341
|
+
}, 401>)>, (ctx: hono73.Context<ContextVars<{
|
|
3342
3342
|
orgOptions: OrganizationOptions;
|
|
3343
3343
|
roles: typeof defaultRoles & {
|
|
3344
3344
|
[key: string]: Role<{}>;
|
|
3345
3345
|
};
|
|
3346
|
-
getSession: (context:
|
|
3346
|
+
getSession: (context: hono73.Context<ContextVars>) => Promise<{
|
|
3347
3347
|
session: _faire_auth_core_db61.Session & {
|
|
3348
3348
|
activeTeamId?: string;
|
|
3349
3349
|
activeOrganizationId?: string;
|
|
3350
3350
|
};
|
|
3351
3351
|
user: _faire_auth_core_db61.User;
|
|
3352
3352
|
} | null>;
|
|
3353
|
-
}>, string, {}>, next:
|
|
3353
|
+
}>, string, {}>, next: hono73.Next) => Promise<void>];
|
|
3354
3354
|
request: {
|
|
3355
3355
|
query: z.ZodObject<{
|
|
3356
3356
|
email: z.ZodOptional<z.ZodEmail>;
|
|
@@ -3437,28 +3437,28 @@ declare const addMember: <O extends OrganizationOptions>(option: O) => AuthEndpo
|
|
|
3437
3437
|
path: "/organization/add-member";
|
|
3438
3438
|
method: "post";
|
|
3439
3439
|
SERVER_ONLY: true;
|
|
3440
|
-
middleware: [(ctx:
|
|
3440
|
+
middleware: [(ctx: hono73.Context<ContextVars<{
|
|
3441
3441
|
session?: {
|
|
3442
3442
|
session: _faire_auth_core_db61.Session;
|
|
3443
3443
|
user: _faire_auth_core_db61.User;
|
|
3444
3444
|
};
|
|
3445
|
-
}>, string, {}>, next:
|
|
3445
|
+
}>, string, {}>, next: hono73.Next) => Promise<void | (Response & hono73.TypedResponse<{
|
|
3446
3446
|
success: false;
|
|
3447
3447
|
code?: string | undefined;
|
|
3448
3448
|
message?: string | undefined;
|
|
3449
|
-
}, 401>)>, (ctx:
|
|
3449
|
+
}, 401>)>, (ctx: hono73.Context<ContextVars<{
|
|
3450
3450
|
orgOptions: OrganizationOptions;
|
|
3451
3451
|
roles: typeof defaultRoles & {
|
|
3452
3452
|
[key: string]: Role<{}>;
|
|
3453
3453
|
};
|
|
3454
|
-
getSession: (context:
|
|
3454
|
+
getSession: (context: hono73.Context<ContextVars>) => Promise<{
|
|
3455
3455
|
session: _faire_auth_core_db61.Session & {
|
|
3456
3456
|
activeTeamId?: string;
|
|
3457
3457
|
activeOrganizationId?: string;
|
|
3458
3458
|
};
|
|
3459
3459
|
user: _faire_auth_core_db61.User;
|
|
3460
3460
|
} | null>;
|
|
3461
|
-
}>, string, {}>, next:
|
|
3461
|
+
}>, string, {}>, next: hono73.Next) => Promise<void>];
|
|
3462
3462
|
request: {
|
|
3463
3463
|
body: {
|
|
3464
3464
|
description?: string;
|
|
@@ -3575,7 +3575,7 @@ declare const removeMember: <O extends OrganizationOptions>(option: O) => AuthEn
|
|
|
3575
3575
|
operationId: "removeMember";
|
|
3576
3576
|
path: "/organization/remove-member";
|
|
3577
3577
|
method: "post";
|
|
3578
|
-
middleware: [(ctx:
|
|
3578
|
+
middleware: [(ctx: hono73.Context<ContextVars<{
|
|
3579
3579
|
session: {
|
|
3580
3580
|
session: {
|
|
3581
3581
|
activeTeamId?: string;
|
|
@@ -3606,23 +3606,23 @@ declare const removeMember: <O extends OrganizationOptions>(option: O) => AuthEn
|
|
|
3606
3606
|
image?: string | null;
|
|
3607
3607
|
};
|
|
3608
3608
|
};
|
|
3609
|
-
}>, string, {}>, next:
|
|
3609
|
+
}>, string, {}>, next: hono73.Next) => Promise<void | (Response & hono73.TypedResponse<{
|
|
3610
3610
|
success: false;
|
|
3611
3611
|
code?: string | undefined;
|
|
3612
3612
|
message?: string | undefined;
|
|
3613
|
-
}, 401>)>, (ctx:
|
|
3613
|
+
}, 401>)>, (ctx: hono73.Context<ContextVars<{
|
|
3614
3614
|
orgOptions: OrganizationOptions;
|
|
3615
3615
|
roles: typeof defaultRoles & {
|
|
3616
3616
|
[key: string]: Role<{}>;
|
|
3617
3617
|
};
|
|
3618
|
-
getSession: (context:
|
|
3618
|
+
getSession: (context: hono73.Context<ContextVars>) => Promise<{
|
|
3619
3619
|
session: _faire_auth_core_db61.Session & {
|
|
3620
3620
|
activeTeamId?: string;
|
|
3621
3621
|
activeOrganizationId?: string;
|
|
3622
3622
|
};
|
|
3623
3623
|
user: _faire_auth_core_db61.User;
|
|
3624
3624
|
} | null>;
|
|
3625
|
-
}>, string, {}>, next:
|
|
3625
|
+
}>, string, {}>, next: hono73.Next) => Promise<void>];
|
|
3626
3626
|
request: {
|
|
3627
3627
|
body: {
|
|
3628
3628
|
description?: string;
|
|
@@ -3715,7 +3715,7 @@ declare const updateMemberRole: <O extends OrganizationOptions>(option: O) => Au
|
|
|
3715
3715
|
operationId: "updateMemberRole";
|
|
3716
3716
|
path: "/organization/update-member-role";
|
|
3717
3717
|
method: "post";
|
|
3718
|
-
middleware: [(ctx:
|
|
3718
|
+
middleware: [(ctx: hono73.Context<ContextVars<{
|
|
3719
3719
|
session: {
|
|
3720
3720
|
session: {
|
|
3721
3721
|
activeTeamId?: string;
|
|
@@ -3746,23 +3746,23 @@ declare const updateMemberRole: <O extends OrganizationOptions>(option: O) => Au
|
|
|
3746
3746
|
image?: string | null;
|
|
3747
3747
|
};
|
|
3748
3748
|
};
|
|
3749
|
-
}>, string, {}>, next:
|
|
3749
|
+
}>, string, {}>, next: hono73.Next) => Promise<void | (Response & hono73.TypedResponse<{
|
|
3750
3750
|
success: false;
|
|
3751
3751
|
code?: string | undefined;
|
|
3752
3752
|
message?: string | undefined;
|
|
3753
|
-
}, 401>)>, (ctx:
|
|
3753
|
+
}, 401>)>, (ctx: hono73.Context<ContextVars<{
|
|
3754
3754
|
orgOptions: OrganizationOptions;
|
|
3755
3755
|
roles: typeof defaultRoles & {
|
|
3756
3756
|
[key: string]: Role<{}>;
|
|
3757
3757
|
};
|
|
3758
|
-
getSession: (context:
|
|
3758
|
+
getSession: (context: hono73.Context<ContextVars>) => Promise<{
|
|
3759
3759
|
session: _faire_auth_core_db61.Session & {
|
|
3760
3760
|
activeTeamId?: string;
|
|
3761
3761
|
activeOrganizationId?: string;
|
|
3762
3762
|
};
|
|
3763
3763
|
user: _faire_auth_core_db61.User;
|
|
3764
3764
|
} | null>;
|
|
3765
|
-
}>, string, {}>, next:
|
|
3765
|
+
}>, string, {}>, next: hono73.Next) => Promise<void>];
|
|
3766
3766
|
request: {
|
|
3767
3767
|
body: {
|
|
3768
3768
|
description?: string;
|
|
@@ -3854,7 +3854,7 @@ declare const getActiveMember: <O extends OrganizationOptions>(option: O) => Aut
|
|
|
3854
3854
|
operationId: "getActiveMember";
|
|
3855
3855
|
path: "/organization/get-active-member";
|
|
3856
3856
|
method: "get";
|
|
3857
|
-
middleware: [(ctx:
|
|
3857
|
+
middleware: [(ctx: hono73.Context<ContextVars<{
|
|
3858
3858
|
session: {
|
|
3859
3859
|
session: {
|
|
3860
3860
|
activeTeamId?: string;
|
|
@@ -3885,23 +3885,23 @@ declare const getActiveMember: <O extends OrganizationOptions>(option: O) => Aut
|
|
|
3885
3885
|
image?: string | null;
|
|
3886
3886
|
};
|
|
3887
3887
|
};
|
|
3888
|
-
}>, string, {}>, next:
|
|
3888
|
+
}>, string, {}>, next: hono73.Next) => Promise<void | (Response & hono73.TypedResponse<{
|
|
3889
3889
|
success: false;
|
|
3890
3890
|
code?: string | undefined;
|
|
3891
3891
|
message?: string | undefined;
|
|
3892
|
-
}, 401>)>, (ctx:
|
|
3892
|
+
}, 401>)>, (ctx: hono73.Context<ContextVars<{
|
|
3893
3893
|
orgOptions: OrganizationOptions;
|
|
3894
3894
|
roles: typeof defaultRoles & {
|
|
3895
3895
|
[key: string]: Role<{}>;
|
|
3896
3896
|
};
|
|
3897
|
-
getSession: (context:
|
|
3897
|
+
getSession: (context: hono73.Context<ContextVars>) => Promise<{
|
|
3898
3898
|
session: _faire_auth_core_db61.Session & {
|
|
3899
3899
|
activeTeamId?: string;
|
|
3900
3900
|
activeOrganizationId?: string;
|
|
3901
3901
|
};
|
|
3902
3902
|
user: _faire_auth_core_db61.User;
|
|
3903
3903
|
} | null>;
|
|
3904
|
-
}>, string, {}>, next:
|
|
3904
|
+
}>, string, {}>, next: hono73.Next) => Promise<void>];
|
|
3905
3905
|
getRoutingPath: () => "/organization/get-active-member";
|
|
3906
3906
|
}>;
|
|
3907
3907
|
declare const leaveOrganization: <O extends OrganizationOptions>(option: O) => AuthEndpoint<{
|
|
@@ -3954,7 +3954,7 @@ declare const leaveOrganization: <O extends OrganizationOptions>(option: O) => A
|
|
|
3954
3954
|
operationId: "leaveOrganization";
|
|
3955
3955
|
path: "/organization/leave";
|
|
3956
3956
|
method: "post";
|
|
3957
|
-
middleware: [(ctx:
|
|
3957
|
+
middleware: [(ctx: hono73.Context<ContextVars<{
|
|
3958
3958
|
session: {
|
|
3959
3959
|
session: {
|
|
3960
3960
|
activeTeamId?: string;
|
|
@@ -3985,23 +3985,23 @@ declare const leaveOrganization: <O extends OrganizationOptions>(option: O) => A
|
|
|
3985
3985
|
image?: string | null;
|
|
3986
3986
|
};
|
|
3987
3987
|
};
|
|
3988
|
-
}>, string, {}>, next:
|
|
3988
|
+
}>, string, {}>, next: hono73.Next) => Promise<void | (Response & hono73.TypedResponse<{
|
|
3989
3989
|
success: false;
|
|
3990
3990
|
code?: string | undefined;
|
|
3991
3991
|
message?: string | undefined;
|
|
3992
|
-
}, 401>)>, (ctx:
|
|
3992
|
+
}, 401>)>, (ctx: hono73.Context<ContextVars<{
|
|
3993
3993
|
orgOptions: OrganizationOptions;
|
|
3994
3994
|
roles: typeof defaultRoles & {
|
|
3995
3995
|
[key: string]: Role<{}>;
|
|
3996
3996
|
};
|
|
3997
|
-
getSession: (context:
|
|
3997
|
+
getSession: (context: hono73.Context<ContextVars>) => Promise<{
|
|
3998
3998
|
session: _faire_auth_core_db61.Session & {
|
|
3999
3999
|
activeTeamId?: string;
|
|
4000
4000
|
activeOrganizationId?: string;
|
|
4001
4001
|
};
|
|
4002
4002
|
user: _faire_auth_core_db61.User;
|
|
4003
4003
|
} | null>;
|
|
4004
|
-
}>, string, {}>, next:
|
|
4004
|
+
}>, string, {}>, next: hono73.Next) => Promise<void>];
|
|
4005
4005
|
request: {
|
|
4006
4006
|
body: {
|
|
4007
4007
|
description?: string;
|
|
@@ -4118,28 +4118,28 @@ declare const listMembers: <O extends OrganizationOptions>(option: O) => AuthEnd
|
|
|
4118
4118
|
operationId: "listMembers";
|
|
4119
4119
|
path: "/organization/list-members";
|
|
4120
4120
|
method: "get";
|
|
4121
|
-
middleware: [(ctx:
|
|
4121
|
+
middleware: [(ctx: hono73.Context<ContextVars<{
|
|
4122
4122
|
session?: {
|
|
4123
4123
|
session: _faire_auth_core_db61.Session;
|
|
4124
4124
|
user: _faire_auth_core_db61.User;
|
|
4125
4125
|
};
|
|
4126
|
-
}>, string, {}>, next:
|
|
4126
|
+
}>, string, {}>, next: hono73.Next) => Promise<void | (Response & hono73.TypedResponse<{
|
|
4127
4127
|
success: false;
|
|
4128
4128
|
code?: string | undefined;
|
|
4129
4129
|
message?: string | undefined;
|
|
4130
|
-
}, 401>)>, (ctx:
|
|
4130
|
+
}, 401>)>, (ctx: hono73.Context<ContextVars<{
|
|
4131
4131
|
orgOptions: OrganizationOptions;
|
|
4132
4132
|
roles: typeof defaultRoles & {
|
|
4133
4133
|
[key: string]: Role<{}>;
|
|
4134
4134
|
};
|
|
4135
|
-
getSession: (context:
|
|
4135
|
+
getSession: (context: hono73.Context<ContextVars>) => Promise<{
|
|
4136
4136
|
session: _faire_auth_core_db61.Session & {
|
|
4137
4137
|
activeTeamId?: string;
|
|
4138
4138
|
activeOrganizationId?: string;
|
|
4139
4139
|
};
|
|
4140
4140
|
user: _faire_auth_core_db61.User;
|
|
4141
4141
|
} | null>;
|
|
4142
|
-
}>, string, {}>, next:
|
|
4142
|
+
}>, string, {}>, next: hono73.Next) => Promise<void>];
|
|
4143
4143
|
request: {
|
|
4144
4144
|
query: z$1.ZodObject<{
|
|
4145
4145
|
limit: z$1.ZodOptional<z$1.ZodUnion<[z$1.ZodString, z$1.ZodNumber]>>;
|
|
@@ -4208,28 +4208,28 @@ declare const getActiveMemberRole: <O extends OrganizationOptions>(option: O) =>
|
|
|
4208
4208
|
operationId: "getActiveMemberRole";
|
|
4209
4209
|
path: "/organization/get-active-member-role";
|
|
4210
4210
|
method: "get";
|
|
4211
|
-
middleware: [(ctx:
|
|
4211
|
+
middleware: [(ctx: hono73.Context<ContextVars<{
|
|
4212
4212
|
session?: {
|
|
4213
4213
|
session: _faire_auth_core_db61.Session;
|
|
4214
4214
|
user: _faire_auth_core_db61.User;
|
|
4215
4215
|
};
|
|
4216
|
-
}>, string, {}>, next:
|
|
4216
|
+
}>, string, {}>, next: hono73.Next) => Promise<void | (Response & hono73.TypedResponse<{
|
|
4217
4217
|
success: false;
|
|
4218
4218
|
code?: string | undefined;
|
|
4219
4219
|
message?: string | undefined;
|
|
4220
|
-
}, 401>)>, (ctx:
|
|
4220
|
+
}, 401>)>, (ctx: hono73.Context<ContextVars<{
|
|
4221
4221
|
orgOptions: OrganizationOptions;
|
|
4222
4222
|
roles: typeof defaultRoles & {
|
|
4223
4223
|
[key: string]: Role<{}>;
|
|
4224
4224
|
};
|
|
4225
|
-
getSession: (context:
|
|
4225
|
+
getSession: (context: hono73.Context<ContextVars>) => Promise<{
|
|
4226
4226
|
session: _faire_auth_core_db61.Session & {
|
|
4227
4227
|
activeTeamId?: string;
|
|
4228
4228
|
activeOrganizationId?: string;
|
|
4229
4229
|
};
|
|
4230
4230
|
user: _faire_auth_core_db61.User;
|
|
4231
4231
|
} | null>;
|
|
4232
|
-
}>, string, {}>, next:
|
|
4232
|
+
}>, string, {}>, next: hono73.Next) => Promise<void>];
|
|
4233
4233
|
request: {
|
|
4234
4234
|
query: z$1.ZodObject<{
|
|
4235
4235
|
userId: z$1.ZodOptional<z$1.ZodString>;
|
|
@@ -4313,28 +4313,28 @@ declare const createOrganization: <O extends OrganizationOptions>(options: O) =>
|
|
|
4313
4313
|
operationId: "createOrganization";
|
|
4314
4314
|
path: "/organization/create";
|
|
4315
4315
|
method: "post";
|
|
4316
|
-
middleware: [(ctx:
|
|
4316
|
+
middleware: [(ctx: hono73.Context<ContextVars<{
|
|
4317
4317
|
session?: {
|
|
4318
4318
|
session: _faire_auth_core_db61.Session;
|
|
4319
4319
|
user: _faire_auth_core_db61.User;
|
|
4320
4320
|
};
|
|
4321
|
-
}>, string, {}>, next:
|
|
4321
|
+
}>, string, {}>, next: hono73.Next) => Promise<void | (Response & hono73.TypedResponse<{
|
|
4322
4322
|
success: false;
|
|
4323
4323
|
code?: string | undefined;
|
|
4324
4324
|
message?: string | undefined;
|
|
4325
|
-
}, 401>)>, (ctx:
|
|
4325
|
+
}, 401>)>, (ctx: hono73.Context<ContextVars<{
|
|
4326
4326
|
orgOptions: OrganizationOptions;
|
|
4327
4327
|
roles: typeof defaultRoles & {
|
|
4328
4328
|
[key: string]: Role<{}>;
|
|
4329
4329
|
};
|
|
4330
|
-
getSession: (context:
|
|
4330
|
+
getSession: (context: hono73.Context<ContextVars>) => Promise<{
|
|
4331
4331
|
session: _faire_auth_core_db61.Session & {
|
|
4332
4332
|
activeTeamId?: string;
|
|
4333
4333
|
activeOrganizationId?: string;
|
|
4334
4334
|
};
|
|
4335
4335
|
user: _faire_auth_core_db61.User;
|
|
4336
4336
|
} | null>;
|
|
4337
|
-
}>, string, {}>, next:
|
|
4337
|
+
}>, string, {}>, next: hono73.Next) => Promise<void>];
|
|
4338
4338
|
request: {
|
|
4339
4339
|
body: {
|
|
4340
4340
|
description?: string;
|
|
@@ -4433,28 +4433,28 @@ declare const checkOrganizationSlug: <O extends OrganizationOptions>(options: O)
|
|
|
4433
4433
|
operationId: "checkOrganizationSlug";
|
|
4434
4434
|
path: "/organization/check-slug";
|
|
4435
4435
|
method: "post";
|
|
4436
|
-
middleware: [(ctx:
|
|
4436
|
+
middleware: [(ctx: hono73.Context<ContextVars<{
|
|
4437
4437
|
session?: {
|
|
4438
4438
|
session: _faire_auth_core_db61.Session;
|
|
4439
4439
|
user: _faire_auth_core_db61.User;
|
|
4440
4440
|
};
|
|
4441
|
-
}>, string, {}>, next:
|
|
4441
|
+
}>, string, {}>, next: hono73.Next) => Promise<void | (Response & hono73.TypedResponse<{
|
|
4442
4442
|
success: false;
|
|
4443
4443
|
code?: string | undefined;
|
|
4444
4444
|
message?: string | undefined;
|
|
4445
|
-
}, 401>)>, (ctx:
|
|
4445
|
+
}, 401>)>, (ctx: hono73.Context<ContextVars<{
|
|
4446
4446
|
orgOptions: OrganizationOptions;
|
|
4447
4447
|
roles: typeof defaultRoles & {
|
|
4448
4448
|
[key: string]: Role<{}>;
|
|
4449
4449
|
};
|
|
4450
|
-
getSession: (context:
|
|
4450
|
+
getSession: (context: hono73.Context<ContextVars>) => Promise<{
|
|
4451
4451
|
session: _faire_auth_core_db61.Session & {
|
|
4452
4452
|
activeTeamId?: string;
|
|
4453
4453
|
activeOrganizationId?: string;
|
|
4454
4454
|
};
|
|
4455
4455
|
user: _faire_auth_core_db61.User;
|
|
4456
4456
|
} | null>;
|
|
4457
|
-
}>, string, {}>, next:
|
|
4457
|
+
}>, string, {}>, next: hono73.Next) => Promise<void>];
|
|
4458
4458
|
request: {
|
|
4459
4459
|
body: {
|
|
4460
4460
|
description?: string;
|
|
@@ -4543,7 +4543,7 @@ declare const updateOrganization: <O extends OrganizationOptions>(options: O) =>
|
|
|
4543
4543
|
operationId: "updateOrganization";
|
|
4544
4544
|
path: "/organization/update";
|
|
4545
4545
|
method: "post";
|
|
4546
|
-
middleware: [(ctx:
|
|
4546
|
+
middleware: [(ctx: hono73.Context<ContextVars<{
|
|
4547
4547
|
session: {
|
|
4548
4548
|
session: {
|
|
4549
4549
|
activeTeamId?: string;
|
|
@@ -4574,23 +4574,23 @@ declare const updateOrganization: <O extends OrganizationOptions>(options: O) =>
|
|
|
4574
4574
|
image?: string | null;
|
|
4575
4575
|
};
|
|
4576
4576
|
};
|
|
4577
|
-
}>, string, {}>, next:
|
|
4577
|
+
}>, string, {}>, next: hono73.Next) => Promise<void | (Response & hono73.TypedResponse<{
|
|
4578
4578
|
success: false;
|
|
4579
4579
|
code?: string | undefined;
|
|
4580
4580
|
message?: string | undefined;
|
|
4581
|
-
}, 401>)>, (ctx:
|
|
4581
|
+
}, 401>)>, (ctx: hono73.Context<ContextVars<{
|
|
4582
4582
|
orgOptions: OrganizationOptions;
|
|
4583
4583
|
roles: typeof defaultRoles & {
|
|
4584
4584
|
[key: string]: Role<{}>;
|
|
4585
4585
|
};
|
|
4586
|
-
getSession: (context:
|
|
4586
|
+
getSession: (context: hono73.Context<ContextVars>) => Promise<{
|
|
4587
4587
|
session: _faire_auth_core_db61.Session & {
|
|
4588
4588
|
activeTeamId?: string;
|
|
4589
4589
|
activeOrganizationId?: string;
|
|
4590
4590
|
};
|
|
4591
4591
|
user: _faire_auth_core_db61.User;
|
|
4592
4592
|
} | null>;
|
|
4593
|
-
}>, string, {}>, next:
|
|
4593
|
+
}>, string, {}>, next: hono73.Next) => Promise<void>];
|
|
4594
4594
|
request: {
|
|
4595
4595
|
body: {
|
|
4596
4596
|
description?: string;
|
|
@@ -4719,7 +4719,7 @@ declare const deleteOrganization: <O extends OrganizationOptions>(options: O) =>
|
|
|
4719
4719
|
operationId: "deleteOrganization";
|
|
4720
4720
|
path: "/organization/delete";
|
|
4721
4721
|
method: "post";
|
|
4722
|
-
middleware: [(ctx:
|
|
4722
|
+
middleware: [(ctx: hono73.Context<ContextVars<{
|
|
4723
4723
|
session: {
|
|
4724
4724
|
session: {
|
|
4725
4725
|
activeTeamId?: string;
|
|
@@ -4750,23 +4750,23 @@ declare const deleteOrganization: <O extends OrganizationOptions>(options: O) =>
|
|
|
4750
4750
|
image?: string | null;
|
|
4751
4751
|
};
|
|
4752
4752
|
};
|
|
4753
|
-
}>, string, {}>, next:
|
|
4753
|
+
}>, string, {}>, next: hono73.Next) => Promise<void | (Response & hono73.TypedResponse<{
|
|
4754
4754
|
success: false;
|
|
4755
4755
|
code?: string | undefined;
|
|
4756
4756
|
message?: string | undefined;
|
|
4757
|
-
}, 401>)>, (ctx:
|
|
4757
|
+
}, 401>)>, (ctx: hono73.Context<ContextVars<{
|
|
4758
4758
|
orgOptions: OrganizationOptions;
|
|
4759
4759
|
roles: typeof defaultRoles & {
|
|
4760
4760
|
[key: string]: Role<{}>;
|
|
4761
4761
|
};
|
|
4762
|
-
getSession: (context:
|
|
4762
|
+
getSession: (context: hono73.Context<ContextVars>) => Promise<{
|
|
4763
4763
|
session: _faire_auth_core_db61.Session & {
|
|
4764
4764
|
activeTeamId?: string;
|
|
4765
4765
|
activeOrganizationId?: string;
|
|
4766
4766
|
};
|
|
4767
4767
|
user: _faire_auth_core_db61.User;
|
|
4768
4768
|
} | null>;
|
|
4769
|
-
}>, string, {}>, next:
|
|
4769
|
+
}>, string, {}>, next: hono73.Next) => Promise<void>];
|
|
4770
4770
|
request: {
|
|
4771
4771
|
body: {
|
|
4772
4772
|
description?: string;
|
|
@@ -4986,7 +4986,7 @@ declare const getFullOrganization: <O extends OrganizationOptions>(options: O) =
|
|
|
4986
4986
|
operationId: "getFullOrganization";
|
|
4987
4987
|
path: "/organization/get-full-organization";
|
|
4988
4988
|
method: "get";
|
|
4989
|
-
middleware: [(ctx:
|
|
4989
|
+
middleware: [(ctx: hono73.Context<ContextVars<{
|
|
4990
4990
|
session: {
|
|
4991
4991
|
session: {
|
|
4992
4992
|
activeTeamId?: string;
|
|
@@ -5017,23 +5017,23 @@ declare const getFullOrganization: <O extends OrganizationOptions>(options: O) =
|
|
|
5017
5017
|
image?: string | null;
|
|
5018
5018
|
};
|
|
5019
5019
|
};
|
|
5020
|
-
}>, string, {}>, next:
|
|
5020
|
+
}>, string, {}>, next: hono73.Next) => Promise<void | (Response & hono73.TypedResponse<{
|
|
5021
5021
|
success: false;
|
|
5022
5022
|
code?: string | undefined;
|
|
5023
5023
|
message?: string | undefined;
|
|
5024
|
-
}, 401>)>, (ctx:
|
|
5024
|
+
}, 401>)>, (ctx: hono73.Context<ContextVars<{
|
|
5025
5025
|
orgOptions: OrganizationOptions;
|
|
5026
5026
|
roles: typeof defaultRoles & {
|
|
5027
5027
|
[key: string]: Role<{}>;
|
|
5028
5028
|
};
|
|
5029
|
-
getSession: (context:
|
|
5029
|
+
getSession: (context: hono73.Context<ContextVars>) => Promise<{
|
|
5030
5030
|
session: _faire_auth_core_db61.Session & {
|
|
5031
5031
|
activeTeamId?: string;
|
|
5032
5032
|
activeOrganizationId?: string;
|
|
5033
5033
|
};
|
|
5034
5034
|
user: _faire_auth_core_db61.User;
|
|
5035
5035
|
} | null>;
|
|
5036
|
-
}>, string, {}>, next:
|
|
5036
|
+
}>, string, {}>, next: hono73.Next) => Promise<void>];
|
|
5037
5037
|
request: {
|
|
5038
5038
|
query: z$1.ZodObject<{
|
|
5039
5039
|
organizationId: z$1.ZodOptional<z$1.ZodString>;
|
|
@@ -5141,7 +5141,7 @@ declare const setActiveOrganization: <O extends OrganizationOptions>(options: O)
|
|
|
5141
5141
|
operationId: "setActiveOrganization";
|
|
5142
5142
|
path: "/organization/set-active";
|
|
5143
5143
|
method: "post";
|
|
5144
|
-
middleware: [(ctx:
|
|
5144
|
+
middleware: [(ctx: hono73.Context<ContextVars<{
|
|
5145
5145
|
session: {
|
|
5146
5146
|
session: {
|
|
5147
5147
|
activeTeamId?: string;
|
|
@@ -5172,23 +5172,23 @@ declare const setActiveOrganization: <O extends OrganizationOptions>(options: O)
|
|
|
5172
5172
|
image?: string | null;
|
|
5173
5173
|
};
|
|
5174
5174
|
};
|
|
5175
|
-
}>, string, {}>, next:
|
|
5175
|
+
}>, string, {}>, next: hono73.Next) => Promise<void | (Response & hono73.TypedResponse<{
|
|
5176
5176
|
success: false;
|
|
5177
5177
|
code?: string | undefined;
|
|
5178
5178
|
message?: string | undefined;
|
|
5179
|
-
}, 401>)>, (ctx:
|
|
5179
|
+
}, 401>)>, (ctx: hono73.Context<ContextVars<{
|
|
5180
5180
|
orgOptions: OrganizationOptions;
|
|
5181
5181
|
roles: typeof defaultRoles & {
|
|
5182
5182
|
[key: string]: Role<{}>;
|
|
5183
5183
|
};
|
|
5184
|
-
getSession: (context:
|
|
5184
|
+
getSession: (context: hono73.Context<ContextVars>) => Promise<{
|
|
5185
5185
|
session: _faire_auth_core_db61.Session & {
|
|
5186
5186
|
activeTeamId?: string;
|
|
5187
5187
|
activeOrganizationId?: string;
|
|
5188
5188
|
};
|
|
5189
5189
|
user: _faire_auth_core_db61.User;
|
|
5190
5190
|
} | null>;
|
|
5191
|
-
}>, string, {}>, next:
|
|
5191
|
+
}>, string, {}>, next: hono73.Next) => Promise<void>];
|
|
5192
5192
|
request: {
|
|
5193
5193
|
body: {
|
|
5194
5194
|
description?: string;
|
|
@@ -5244,7 +5244,7 @@ declare const listOrganizations: <O extends OrganizationOptions>(options: O) =>
|
|
|
5244
5244
|
operationId: "listOrganizations";
|
|
5245
5245
|
path: "/organization/list";
|
|
5246
5246
|
method: "get";
|
|
5247
|
-
middleware: [(ctx:
|
|
5247
|
+
middleware: [(ctx: hono73.Context<ContextVars<{
|
|
5248
5248
|
session: {
|
|
5249
5249
|
session: {
|
|
5250
5250
|
activeTeamId?: string;
|
|
@@ -5275,23 +5275,23 @@ declare const listOrganizations: <O extends OrganizationOptions>(options: O) =>
|
|
|
5275
5275
|
image?: string | null;
|
|
5276
5276
|
};
|
|
5277
5277
|
};
|
|
5278
|
-
}>, string, {}>, next:
|
|
5278
|
+
}>, string, {}>, next: hono73.Next) => Promise<void | (Response & hono73.TypedResponse<{
|
|
5279
5279
|
success: false;
|
|
5280
5280
|
code?: string | undefined;
|
|
5281
5281
|
message?: string | undefined;
|
|
5282
|
-
}, 401>)>, (ctx:
|
|
5282
|
+
}, 401>)>, (ctx: hono73.Context<ContextVars<{
|
|
5283
5283
|
orgOptions: OrganizationOptions;
|
|
5284
5284
|
roles: typeof defaultRoles & {
|
|
5285
5285
|
[key: string]: Role<{}>;
|
|
5286
5286
|
};
|
|
5287
|
-
getSession: (context:
|
|
5287
|
+
getSession: (context: hono73.Context<ContextVars>) => Promise<{
|
|
5288
5288
|
session: _faire_auth_core_db61.Session & {
|
|
5289
5289
|
activeTeamId?: string;
|
|
5290
5290
|
activeOrganizationId?: string;
|
|
5291
5291
|
};
|
|
5292
5292
|
user: _faire_auth_core_db61.User;
|
|
5293
5293
|
} | null>;
|
|
5294
|
-
}>, string, {}>, next:
|
|
5294
|
+
}>, string, {}>, next: hono73.Next) => Promise<void>];
|
|
5295
5295
|
getRoutingPath: () => "/organization/list";
|
|
5296
5296
|
}>;
|
|
5297
5297
|
//#endregion
|
|
@@ -5372,28 +5372,28 @@ declare const createTeam: <O extends OrganizationOptions>(options: O) => AuthEnd
|
|
|
5372
5372
|
operationId: "createTeam";
|
|
5373
5373
|
path: "/organization/create-team";
|
|
5374
5374
|
method: "post";
|
|
5375
|
-
middleware: [(ctx:
|
|
5375
|
+
middleware: [(ctx: hono73.Context<ContextVars<{
|
|
5376
5376
|
session?: {
|
|
5377
5377
|
session: _faire_auth_core_db61.Session;
|
|
5378
5378
|
user: _faire_auth_core_db61.User;
|
|
5379
5379
|
};
|
|
5380
|
-
}>, string, {}>, next:
|
|
5380
|
+
}>, string, {}>, next: hono73.Next) => Promise<void | (Response & hono73.TypedResponse<{
|
|
5381
5381
|
success: false;
|
|
5382
5382
|
code?: string | undefined;
|
|
5383
5383
|
message?: string | undefined;
|
|
5384
|
-
}, 401>)>, (ctx:
|
|
5384
|
+
}, 401>)>, (ctx: hono73.Context<ContextVars<{
|
|
5385
5385
|
orgOptions: OrganizationOptions;
|
|
5386
5386
|
roles: typeof defaultRoles & {
|
|
5387
5387
|
[key: string]: Role<{}>;
|
|
5388
5388
|
};
|
|
5389
|
-
getSession: (context:
|
|
5389
|
+
getSession: (context: hono73.Context<ContextVars>) => Promise<{
|
|
5390
5390
|
session: _faire_auth_core_db61.Session & {
|
|
5391
5391
|
activeTeamId?: string;
|
|
5392
5392
|
activeOrganizationId?: string;
|
|
5393
5393
|
};
|
|
5394
5394
|
user: _faire_auth_core_db61.User;
|
|
5395
5395
|
} | null>;
|
|
5396
|
-
}>, string, {}>, next:
|
|
5396
|
+
}>, string, {}>, next: hono73.Next) => Promise<void>];
|
|
5397
5397
|
request: {
|
|
5398
5398
|
body: {
|
|
5399
5399
|
description?: string;
|
|
@@ -5508,28 +5508,28 @@ declare const removeTeam: <O extends OrganizationOptions>(options: O) => AuthEnd
|
|
|
5508
5508
|
operationId: "removeTeam";
|
|
5509
5509
|
path: "/organization/remove-team";
|
|
5510
5510
|
method: "post";
|
|
5511
|
-
middleware: [(ctx:
|
|
5511
|
+
middleware: [(ctx: hono73.Context<ContextVars<{
|
|
5512
5512
|
session?: {
|
|
5513
5513
|
session: _faire_auth_core_db61.Session;
|
|
5514
5514
|
user: _faire_auth_core_db61.User;
|
|
5515
5515
|
};
|
|
5516
|
-
}>, string, {}>, next:
|
|
5516
|
+
}>, string, {}>, next: hono73.Next) => Promise<void | (Response & hono73.TypedResponse<{
|
|
5517
5517
|
success: false;
|
|
5518
5518
|
code?: string | undefined;
|
|
5519
5519
|
message?: string | undefined;
|
|
5520
|
-
}, 401>)>, (ctx:
|
|
5520
|
+
}, 401>)>, (ctx: hono73.Context<ContextVars<{
|
|
5521
5521
|
orgOptions: OrganizationOptions;
|
|
5522
5522
|
roles: typeof defaultRoles & {
|
|
5523
5523
|
[key: string]: Role<{}>;
|
|
5524
5524
|
};
|
|
5525
|
-
getSession: (context:
|
|
5525
|
+
getSession: (context: hono73.Context<ContextVars>) => Promise<{
|
|
5526
5526
|
session: _faire_auth_core_db61.Session & {
|
|
5527
5527
|
activeTeamId?: string;
|
|
5528
5528
|
activeOrganizationId?: string;
|
|
5529
5529
|
};
|
|
5530
5530
|
user: _faire_auth_core_db61.User;
|
|
5531
5531
|
} | null>;
|
|
5532
|
-
}>, string, {}>, next:
|
|
5532
|
+
}>, string, {}>, next: hono73.Next) => Promise<void>];
|
|
5533
5533
|
request: {
|
|
5534
5534
|
body: {
|
|
5535
5535
|
description?: string;
|
|
@@ -5617,7 +5617,7 @@ declare const updateTeam: <O extends OrganizationOptions>(options: O) => AuthEnd
|
|
|
5617
5617
|
operationId: "updateTeam";
|
|
5618
5618
|
path: "/organization/update-team";
|
|
5619
5619
|
method: "post";
|
|
5620
|
-
middleware: [(ctx:
|
|
5620
|
+
middleware: [(ctx: hono73.Context<ContextVars<{
|
|
5621
5621
|
session: {
|
|
5622
5622
|
session: {
|
|
5623
5623
|
activeTeamId?: string;
|
|
@@ -5648,23 +5648,23 @@ declare const updateTeam: <O extends OrganizationOptions>(options: O) => AuthEnd
|
|
|
5648
5648
|
image?: string | null;
|
|
5649
5649
|
};
|
|
5650
5650
|
};
|
|
5651
|
-
}>, string, {}>, next:
|
|
5651
|
+
}>, string, {}>, next: hono73.Next) => Promise<void | (Response & hono73.TypedResponse<{
|
|
5652
5652
|
success: false;
|
|
5653
5653
|
code?: string | undefined;
|
|
5654
5654
|
message?: string | undefined;
|
|
5655
|
-
}, 401>)>, (ctx:
|
|
5655
|
+
}, 401>)>, (ctx: hono73.Context<ContextVars<{
|
|
5656
5656
|
orgOptions: OrganizationOptions;
|
|
5657
5657
|
roles: typeof defaultRoles & {
|
|
5658
5658
|
[key: string]: Role<{}>;
|
|
5659
5659
|
};
|
|
5660
|
-
getSession: (context:
|
|
5660
|
+
getSession: (context: hono73.Context<ContextVars>) => Promise<{
|
|
5661
5661
|
session: _faire_auth_core_db61.Session & {
|
|
5662
5662
|
activeTeamId?: string;
|
|
5663
5663
|
activeOrganizationId?: string;
|
|
5664
5664
|
};
|
|
5665
5665
|
user: _faire_auth_core_db61.User;
|
|
5666
5666
|
} | null>;
|
|
5667
|
-
}>, string, {}>, next:
|
|
5667
|
+
}>, string, {}>, next: hono73.Next) => Promise<void>];
|
|
5668
5668
|
request: {
|
|
5669
5669
|
body: {
|
|
5670
5670
|
description?: string;
|
|
@@ -5793,7 +5793,7 @@ declare const listOrganizationTeams: <O extends OrganizationOptions>(options: O)
|
|
|
5793
5793
|
operationId: "listOrganizationTeams";
|
|
5794
5794
|
path: "/organization/list-teams";
|
|
5795
5795
|
method: "get";
|
|
5796
|
-
middleware: [(ctx:
|
|
5796
|
+
middleware: [(ctx: hono73.Context<ContextVars<{
|
|
5797
5797
|
session: {
|
|
5798
5798
|
session: {
|
|
5799
5799
|
activeTeamId?: string;
|
|
@@ -5824,23 +5824,23 @@ declare const listOrganizationTeams: <O extends OrganizationOptions>(options: O)
|
|
|
5824
5824
|
image?: string | null;
|
|
5825
5825
|
};
|
|
5826
5826
|
};
|
|
5827
|
-
}>, string, {}>, next:
|
|
5827
|
+
}>, string, {}>, next: hono73.Next) => Promise<void | (Response & hono73.TypedResponse<{
|
|
5828
5828
|
success: false;
|
|
5829
5829
|
code?: string | undefined;
|
|
5830
5830
|
message?: string | undefined;
|
|
5831
|
-
}, 401>)>, (ctx:
|
|
5831
|
+
}, 401>)>, (ctx: hono73.Context<ContextVars<{
|
|
5832
5832
|
orgOptions: OrganizationOptions;
|
|
5833
5833
|
roles: typeof defaultRoles & {
|
|
5834
5834
|
[key: string]: Role<{}>;
|
|
5835
5835
|
};
|
|
5836
|
-
getSession: (context:
|
|
5836
|
+
getSession: (context: hono73.Context<ContextVars>) => Promise<{
|
|
5837
5837
|
session: _faire_auth_core_db61.Session & {
|
|
5838
5838
|
activeTeamId?: string;
|
|
5839
5839
|
activeOrganizationId?: string;
|
|
5840
5840
|
};
|
|
5841
5841
|
user: _faire_auth_core_db61.User;
|
|
5842
5842
|
} | null>;
|
|
5843
|
-
}>, string, {}>, next:
|
|
5843
|
+
}>, string, {}>, next: hono73.Next) => Promise<void>];
|
|
5844
5844
|
request: {
|
|
5845
5845
|
query: z$1.ZodObject<{
|
|
5846
5846
|
organizationId: z$1.ZodOptional<z$1.ZodString>;
|
|
@@ -5934,7 +5934,7 @@ declare const setActiveTeam: <O extends OrganizationOptions>(options: O) => Auth
|
|
|
5934
5934
|
operationId: "setActiveTeam";
|
|
5935
5935
|
path: "/organization/set-active-team";
|
|
5936
5936
|
method: "post";
|
|
5937
|
-
middleware: [(ctx:
|
|
5937
|
+
middleware: [(ctx: hono73.Context<ContextVars<{
|
|
5938
5938
|
session: {
|
|
5939
5939
|
session: {
|
|
5940
5940
|
activeTeamId?: string;
|
|
@@ -5965,23 +5965,23 @@ declare const setActiveTeam: <O extends OrganizationOptions>(options: O) => Auth
|
|
|
5965
5965
|
image?: string | null;
|
|
5966
5966
|
};
|
|
5967
5967
|
};
|
|
5968
|
-
}>, string, {}>, next:
|
|
5968
|
+
}>, string, {}>, next: hono73.Next) => Promise<void | (Response & hono73.TypedResponse<{
|
|
5969
5969
|
success: false;
|
|
5970
5970
|
code?: string | undefined;
|
|
5971
5971
|
message?: string | undefined;
|
|
5972
|
-
}, 401>)>, (ctx:
|
|
5972
|
+
}, 401>)>, (ctx: hono73.Context<ContextVars<{
|
|
5973
5973
|
orgOptions: OrganizationOptions;
|
|
5974
5974
|
roles: typeof defaultRoles & {
|
|
5975
5975
|
[key: string]: Role<{}>;
|
|
5976
5976
|
};
|
|
5977
|
-
getSession: (context:
|
|
5977
|
+
getSession: (context: hono73.Context<ContextVars>) => Promise<{
|
|
5978
5978
|
session: _faire_auth_core_db61.Session & {
|
|
5979
5979
|
activeTeamId?: string;
|
|
5980
5980
|
activeOrganizationId?: string;
|
|
5981
5981
|
};
|
|
5982
5982
|
user: _faire_auth_core_db61.User;
|
|
5983
5983
|
} | null>;
|
|
5984
|
-
}>, string, {}>, next:
|
|
5984
|
+
}>, string, {}>, next: hono73.Next) => Promise<void>];
|
|
5985
5985
|
request: {
|
|
5986
5986
|
body: {
|
|
5987
5987
|
description?: string;
|
|
@@ -6047,7 +6047,7 @@ declare const listUserTeams: <O extends OrganizationOptions>(options: O) => Auth
|
|
|
6047
6047
|
operationId: "listUserTeams";
|
|
6048
6048
|
path: "/organization/list-user-teams";
|
|
6049
6049
|
method: "get";
|
|
6050
|
-
middleware: [(ctx:
|
|
6050
|
+
middleware: [(ctx: hono73.Context<ContextVars<{
|
|
6051
6051
|
session: {
|
|
6052
6052
|
session: {
|
|
6053
6053
|
activeTeamId?: string;
|
|
@@ -6078,23 +6078,23 @@ declare const listUserTeams: <O extends OrganizationOptions>(options: O) => Auth
|
|
|
6078
6078
|
image?: string | null;
|
|
6079
6079
|
};
|
|
6080
6080
|
};
|
|
6081
|
-
}>, string, {}>, next:
|
|
6081
|
+
}>, string, {}>, next: hono73.Next) => Promise<void | (Response & hono73.TypedResponse<{
|
|
6082
6082
|
success: false;
|
|
6083
6083
|
code?: string | undefined;
|
|
6084
6084
|
message?: string | undefined;
|
|
6085
|
-
}, 401>)>, (ctx:
|
|
6085
|
+
}, 401>)>, (ctx: hono73.Context<ContextVars<{
|
|
6086
6086
|
orgOptions: OrganizationOptions;
|
|
6087
6087
|
roles: typeof defaultRoles & {
|
|
6088
6088
|
[key: string]: Role<{}>;
|
|
6089
6089
|
};
|
|
6090
|
-
getSession: (context:
|
|
6090
|
+
getSession: (context: hono73.Context<ContextVars>) => Promise<{
|
|
6091
6091
|
session: _faire_auth_core_db61.Session & {
|
|
6092
6092
|
activeTeamId?: string;
|
|
6093
6093
|
activeOrganizationId?: string;
|
|
6094
6094
|
};
|
|
6095
6095
|
user: _faire_auth_core_db61.User;
|
|
6096
6096
|
} | null>;
|
|
6097
|
-
}>, string, {}>, next:
|
|
6097
|
+
}>, string, {}>, next: hono73.Next) => Promise<void>];
|
|
6098
6098
|
request: {};
|
|
6099
6099
|
getRoutingPath: () => "/organization/list-user-teams";
|
|
6100
6100
|
}>;
|
|
@@ -6196,7 +6196,7 @@ declare const listTeamMembers: <O extends OrganizationOptions>(options: O) => Au
|
|
|
6196
6196
|
operationId: "listTeamMembers";
|
|
6197
6197
|
path: "/organization/list-team-members";
|
|
6198
6198
|
method: "get";
|
|
6199
|
-
middleware: [(ctx:
|
|
6199
|
+
middleware: [(ctx: hono73.Context<ContextVars<{
|
|
6200
6200
|
session: {
|
|
6201
6201
|
session: {
|
|
6202
6202
|
activeTeamId?: string;
|
|
@@ -6227,23 +6227,23 @@ declare const listTeamMembers: <O extends OrganizationOptions>(options: O) => Au
|
|
|
6227
6227
|
image?: string | null;
|
|
6228
6228
|
};
|
|
6229
6229
|
};
|
|
6230
|
-
}>, string, {}>, next:
|
|
6230
|
+
}>, string, {}>, next: hono73.Next) => Promise<void | (Response & hono73.TypedResponse<{
|
|
6231
6231
|
success: false;
|
|
6232
6232
|
code?: string | undefined;
|
|
6233
6233
|
message?: string | undefined;
|
|
6234
|
-
}, 401>)>, (ctx:
|
|
6234
|
+
}, 401>)>, (ctx: hono73.Context<ContextVars<{
|
|
6235
6235
|
orgOptions: OrganizationOptions;
|
|
6236
6236
|
roles: typeof defaultRoles & {
|
|
6237
6237
|
[key: string]: Role<{}>;
|
|
6238
6238
|
};
|
|
6239
|
-
getSession: (context:
|
|
6239
|
+
getSession: (context: hono73.Context<ContextVars>) => Promise<{
|
|
6240
6240
|
session: _faire_auth_core_db61.Session & {
|
|
6241
6241
|
activeTeamId?: string;
|
|
6242
6242
|
activeOrganizationId?: string;
|
|
6243
6243
|
};
|
|
6244
6244
|
user: _faire_auth_core_db61.User;
|
|
6245
6245
|
} | null>;
|
|
6246
|
-
}>, string, {}>, next:
|
|
6246
|
+
}>, string, {}>, next: hono73.Next) => Promise<void>];
|
|
6247
6247
|
request: {
|
|
6248
6248
|
query: z$1.ZodObject<{
|
|
6249
6249
|
teamId: z$1.ZodOptional<z$1.ZodString>;
|
|
@@ -6355,7 +6355,7 @@ declare const addTeamMember: <O extends OrganizationOptions>(options: O) => Auth
|
|
|
6355
6355
|
operationId: "addTeamMember";
|
|
6356
6356
|
path: "/organization/add-team-member";
|
|
6357
6357
|
method: "post";
|
|
6358
|
-
middleware: [(ctx:
|
|
6358
|
+
middleware: [(ctx: hono73.Context<ContextVars<{
|
|
6359
6359
|
session: {
|
|
6360
6360
|
session: {
|
|
6361
6361
|
activeTeamId?: string;
|
|
@@ -6386,23 +6386,23 @@ declare const addTeamMember: <O extends OrganizationOptions>(options: O) => Auth
|
|
|
6386
6386
|
image?: string | null;
|
|
6387
6387
|
};
|
|
6388
6388
|
};
|
|
6389
|
-
}>, string, {}>, next:
|
|
6389
|
+
}>, string, {}>, next: hono73.Next) => Promise<void | (Response & hono73.TypedResponse<{
|
|
6390
6390
|
success: false;
|
|
6391
6391
|
code?: string | undefined;
|
|
6392
6392
|
message?: string | undefined;
|
|
6393
|
-
}, 401>)>, (ctx:
|
|
6393
|
+
}, 401>)>, (ctx: hono73.Context<ContextVars<{
|
|
6394
6394
|
orgOptions: OrganizationOptions;
|
|
6395
6395
|
roles: typeof defaultRoles & {
|
|
6396
6396
|
[key: string]: Role<{}>;
|
|
6397
6397
|
};
|
|
6398
|
-
getSession: (context:
|
|
6398
|
+
getSession: (context: hono73.Context<ContextVars>) => Promise<{
|
|
6399
6399
|
session: _faire_auth_core_db61.Session & {
|
|
6400
6400
|
activeTeamId?: string;
|
|
6401
6401
|
activeOrganizationId?: string;
|
|
6402
6402
|
};
|
|
6403
6403
|
user: _faire_auth_core_db61.User;
|
|
6404
6404
|
} | null>;
|
|
6405
|
-
}>, string, {}>, next:
|
|
6405
|
+
}>, string, {}>, next: hono73.Next) => Promise<void>];
|
|
6406
6406
|
request: {
|
|
6407
6407
|
body: {
|
|
6408
6408
|
description?: string;
|
|
@@ -6508,7 +6508,7 @@ declare const removeTeamMember: <O extends OrganizationOptions>(options: O) => A
|
|
|
6508
6508
|
operationId: "removeTeamMember";
|
|
6509
6509
|
path: "/organization/remove-team-member";
|
|
6510
6510
|
method: "post";
|
|
6511
|
-
middleware: [(ctx:
|
|
6511
|
+
middleware: [(ctx: hono73.Context<ContextVars<{
|
|
6512
6512
|
session: {
|
|
6513
6513
|
session: {
|
|
6514
6514
|
activeTeamId?: string;
|
|
@@ -6539,23 +6539,23 @@ declare const removeTeamMember: <O extends OrganizationOptions>(options: O) => A
|
|
|
6539
6539
|
image?: string | null;
|
|
6540
6540
|
};
|
|
6541
6541
|
};
|
|
6542
|
-
}>, string, {}>, next:
|
|
6542
|
+
}>, string, {}>, next: hono73.Next) => Promise<void | (Response & hono73.TypedResponse<{
|
|
6543
6543
|
success: false;
|
|
6544
6544
|
code?: string | undefined;
|
|
6545
6545
|
message?: string | undefined;
|
|
6546
|
-
}, 401>)>, (ctx:
|
|
6546
|
+
}, 401>)>, (ctx: hono73.Context<ContextVars<{
|
|
6547
6547
|
orgOptions: OrganizationOptions;
|
|
6548
6548
|
roles: typeof defaultRoles & {
|
|
6549
6549
|
[key: string]: Role<{}>;
|
|
6550
6550
|
};
|
|
6551
|
-
getSession: (context:
|
|
6551
|
+
getSession: (context: hono73.Context<ContextVars>) => Promise<{
|
|
6552
6552
|
session: _faire_auth_core_db61.Session & {
|
|
6553
6553
|
activeTeamId?: string;
|
|
6554
6554
|
activeOrganizationId?: string;
|
|
6555
6555
|
};
|
|
6556
6556
|
user: _faire_auth_core_db61.User;
|
|
6557
6557
|
} | null>;
|
|
6558
|
-
}>, string, {}>, next:
|
|
6558
|
+
}>, string, {}>, next: hono73.Next) => Promise<void>];
|
|
6559
6559
|
request: {
|
|
6560
6560
|
body: {
|
|
6561
6561
|
description?: string;
|
|
@@ -6879,7 +6879,7 @@ declare const createHasPermission: <O extends OrganizationOptions>(options: O) =
|
|
|
6879
6879
|
operationId: "hasPermission";
|
|
6880
6880
|
path: "/organization/has-permission";
|
|
6881
6881
|
method: "post";
|
|
6882
|
-
middleware: [(ctx:
|
|
6882
|
+
middleware: [(ctx: hono73.Context<ContextVars<{
|
|
6883
6883
|
session: {
|
|
6884
6884
|
session: {
|
|
6885
6885
|
activeTeamId?: string;
|
|
@@ -6910,7 +6910,7 @@ declare const createHasPermission: <O extends OrganizationOptions>(options: O) =
|
|
|
6910
6910
|
image?: string | null;
|
|
6911
6911
|
};
|
|
6912
6912
|
};
|
|
6913
|
-
}>, string, {}>, next:
|
|
6913
|
+
}>, string, {}>, next: hono73.Next) => Promise<void | (Response & hono73.TypedResponse<{
|
|
6914
6914
|
success: false;
|
|
6915
6915
|
code?: string | undefined;
|
|
6916
6916
|
message?: string | undefined;
|
|
@@ -7680,7 +7680,7 @@ declare const twoFactor: (options?: TwoFactorOptions) => {
|
|
|
7680
7680
|
schema: z$1.ZodPipe<z$1.ZodObject<{
|
|
7681
7681
|
totpURI: z$1.ZodURL;
|
|
7682
7682
|
backupCodes: z$1.ZodArray<z$1.ZodString>;
|
|
7683
|
-
},
|
|
7683
|
+
}, zod_v4_core0.$strip>, z$1.ZodTransform<{
|
|
7684
7684
|
success: true;
|
|
7685
7685
|
data: {
|
|
7686
7686
|
totpURI: string;
|
|
@@ -7698,11 +7698,11 @@ declare const twoFactor: (options?: TwoFactorOptions) => {
|
|
|
7698
7698
|
description: string;
|
|
7699
7699
|
content: {
|
|
7700
7700
|
"application/json": {
|
|
7701
|
-
schema:
|
|
7701
|
+
schema: zod_v4_core0.$ZodBranded<z$1.ZodObject<{
|
|
7702
7702
|
success: z$1.ZodLiteral<false>;
|
|
7703
7703
|
code: z$1.ZodOptional<z$1.ZodString>;
|
|
7704
7704
|
message: z$1.ZodOptional<z$1.ZodString>;
|
|
7705
|
-
},
|
|
7705
|
+
}, zod_v4_core0.$strip>, "error">;
|
|
7706
7706
|
};
|
|
7707
7707
|
};
|
|
7708
7708
|
};
|
|
@@ -7711,11 +7711,11 @@ declare const twoFactor: (options?: TwoFactorOptions) => {
|
|
|
7711
7711
|
description: string;
|
|
7712
7712
|
content: {
|
|
7713
7713
|
"application/json": {
|
|
7714
|
-
schema:
|
|
7714
|
+
schema: zod_v4_core0.$ZodBranded<z$1.ZodObject<{
|
|
7715
7715
|
success: z$1.ZodLiteral<false>;
|
|
7716
7716
|
code: z$1.ZodOptional<z$1.ZodString>;
|
|
7717
7717
|
message: z$1.ZodOptional<z$1.ZodString>;
|
|
7718
|
-
},
|
|
7718
|
+
}, zod_v4_core0.$strip>, "error">;
|
|
7719
7719
|
};
|
|
7720
7720
|
};
|
|
7721
7721
|
};
|
|
@@ -7736,7 +7736,7 @@ declare const twoFactor: (options?: TwoFactorOptions) => {
|
|
|
7736
7736
|
errors: string[];
|
|
7737
7737
|
};
|
|
7738
7738
|
};
|
|
7739
|
-
}, unknown,
|
|
7739
|
+
}, unknown, zod_v4_core0.$ZodTypeInternals<{
|
|
7740
7740
|
success: false;
|
|
7741
7741
|
} & {
|
|
7742
7742
|
errors: string[];
|
|
@@ -7756,7 +7756,7 @@ declare const twoFactor: (options?: TwoFactorOptions) => {
|
|
|
7756
7756
|
operationId: "enableTwoFactor";
|
|
7757
7757
|
path: "/two-factor/enable";
|
|
7758
7758
|
method: "post";
|
|
7759
|
-
middleware: [(ctx:
|
|
7759
|
+
middleware: [(ctx: hono73.Context<ContextVars<object & {
|
|
7760
7760
|
session: {
|
|
7761
7761
|
session: {
|
|
7762
7762
|
[x: string]: unknown;
|
|
@@ -7780,7 +7780,7 @@ declare const twoFactor: (options?: TwoFactorOptions) => {
|
|
|
7780
7780
|
image?: string | null;
|
|
7781
7781
|
};
|
|
7782
7782
|
};
|
|
7783
|
-
}>, string, {}>, next:
|
|
7783
|
+
}>, string, {}>, next: hono73.Next) => Promise<void | (Response & hono73.TypedResponse<{
|
|
7784
7784
|
success: false;
|
|
7785
7785
|
code?: string | undefined;
|
|
7786
7786
|
message?: string | undefined;
|
|
@@ -7793,7 +7793,7 @@ declare const twoFactor: (options?: TwoFactorOptions) => {
|
|
|
7793
7793
|
schema: z$1.ZodObject<{
|
|
7794
7794
|
password: z$1.ZodString;
|
|
7795
7795
|
issuer: z$1.ZodOptional<z$1.ZodString>;
|
|
7796
|
-
},
|
|
7796
|
+
}, zod_v4_core0.$strip>;
|
|
7797
7797
|
};
|
|
7798
7798
|
};
|
|
7799
7799
|
required: true;
|
|
@@ -7822,10 +7822,10 @@ declare const twoFactor: (options?: TwoFactorOptions) => {
|
|
|
7822
7822
|
description: string;
|
|
7823
7823
|
content: {
|
|
7824
7824
|
"application/json": {
|
|
7825
|
-
schema:
|
|
7825
|
+
schema: zod_v4_core0.$ZodBranded<z$1.ZodObject<{
|
|
7826
7826
|
success: z$1.ZodLiteral<true>;
|
|
7827
7827
|
message: z$1.ZodOptional<z$1.ZodString>;
|
|
7828
|
-
},
|
|
7828
|
+
}, zod_v4_core0.$strip>, "success">;
|
|
7829
7829
|
};
|
|
7830
7830
|
};
|
|
7831
7831
|
};
|
|
@@ -7834,11 +7834,11 @@ declare const twoFactor: (options?: TwoFactorOptions) => {
|
|
|
7834
7834
|
description: string;
|
|
7835
7835
|
content: {
|
|
7836
7836
|
"application/json": {
|
|
7837
|
-
schema:
|
|
7837
|
+
schema: zod_v4_core0.$ZodBranded<z$1.ZodObject<{
|
|
7838
7838
|
success: z$1.ZodLiteral<false>;
|
|
7839
7839
|
code: z$1.ZodOptional<z$1.ZodString>;
|
|
7840
7840
|
message: z$1.ZodOptional<z$1.ZodString>;
|
|
7841
|
-
},
|
|
7841
|
+
}, zod_v4_core0.$strip>, "error">;
|
|
7842
7842
|
};
|
|
7843
7843
|
};
|
|
7844
7844
|
};
|
|
@@ -7847,11 +7847,11 @@ declare const twoFactor: (options?: TwoFactorOptions) => {
|
|
|
7847
7847
|
description: string;
|
|
7848
7848
|
content: {
|
|
7849
7849
|
"application/json": {
|
|
7850
|
-
schema:
|
|
7850
|
+
schema: zod_v4_core0.$ZodBranded<z$1.ZodObject<{
|
|
7851
7851
|
success: z$1.ZodLiteral<false>;
|
|
7852
7852
|
code: z$1.ZodOptional<z$1.ZodString>;
|
|
7853
7853
|
message: z$1.ZodOptional<z$1.ZodString>;
|
|
7854
|
-
},
|
|
7854
|
+
}, zod_v4_core0.$strip>, "error">;
|
|
7855
7855
|
};
|
|
7856
7856
|
};
|
|
7857
7857
|
};
|
|
@@ -7869,7 +7869,7 @@ declare const twoFactor: (options?: TwoFactorOptions) => {
|
|
|
7869
7869
|
errors: string[];
|
|
7870
7870
|
};
|
|
7871
7871
|
};
|
|
7872
|
-
}, unknown,
|
|
7872
|
+
}, unknown, zod_v4_core0.$ZodTypeInternals<{
|
|
7873
7873
|
success: false;
|
|
7874
7874
|
} & {
|
|
7875
7875
|
errors: string[];
|
|
@@ -7886,7 +7886,7 @@ declare const twoFactor: (options?: TwoFactorOptions) => {
|
|
|
7886
7886
|
operationId: "disableTwoFactor";
|
|
7887
7887
|
path: "/two-factor/disable";
|
|
7888
7888
|
method: "post";
|
|
7889
|
-
middleware: [(ctx:
|
|
7889
|
+
middleware: [(ctx: hono73.Context<ContextVars<object & {
|
|
7890
7890
|
session: {
|
|
7891
7891
|
session: {
|
|
7892
7892
|
[x: string]: unknown;
|
|
@@ -7910,7 +7910,7 @@ declare const twoFactor: (options?: TwoFactorOptions) => {
|
|
|
7910
7910
|
image?: string | null;
|
|
7911
7911
|
};
|
|
7912
7912
|
};
|
|
7913
|
-
}>, string, {}>, next:
|
|
7913
|
+
}>, string, {}>, next: hono73.Next) => Promise<void | (Response & hono73.TypedResponse<{
|
|
7914
7914
|
success: false;
|
|
7915
7915
|
code?: string | undefined;
|
|
7916
7916
|
message?: string | undefined;
|
|
@@ -7922,7 +7922,7 @@ declare const twoFactor: (options?: TwoFactorOptions) => {
|
|
|
7922
7922
|
"application/json": {
|
|
7923
7923
|
schema: z$1.ZodObject<{
|
|
7924
7924
|
password: z$1.ZodString;
|
|
7925
|
-
},
|
|
7925
|
+
}, zod_v4_core0.$strip>;
|
|
7926
7926
|
};
|
|
7927
7927
|
};
|
|
7928
7928
|
required: true;
|
|
@@ -7936,10 +7936,10 @@ declare const twoFactor: (options?: TwoFactorOptions) => {
|
|
|
7936
7936
|
description: string;
|
|
7937
7937
|
content: {
|
|
7938
7938
|
"application/json": {
|
|
7939
|
-
schema:
|
|
7939
|
+
schema: zod_v4_core0.$ZodBranded<z$1.ZodPipe<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
7940
7940
|
success: z$1.ZodLiteral<true>;
|
|
7941
7941
|
token: z$1.ZodDefault<z$1.ZodNullable<z$1.ZodString>>;
|
|
7942
|
-
user:
|
|
7942
|
+
user: zod_v4_core0.$ZodBranded<z$1.ZodObject<{
|
|
7943
7943
|
id: z$1.ZodString;
|
|
7944
7944
|
createdAt: z$1.ZodDefault<z$1.ZodPipe<z$1.ZodUnion<[z$1.ZodDate, z$1.ZodISODateTime]>, z$1.ZodTransform<Date, string | Date>>>;
|
|
7945
7945
|
updatedAt: z$1.ZodDefault<z$1.ZodPipe<z$1.ZodUnion<[z$1.ZodDate, z$1.ZodISODateTime]>, z$1.ZodTransform<Date, string | Date>>>;
|
|
@@ -7947,12 +7947,12 @@ declare const twoFactor: (options?: TwoFactorOptions) => {
|
|
|
7947
7947
|
emailVerified: z$1.ZodDefault<z$1.ZodCoercedBoolean<unknown>>;
|
|
7948
7948
|
name: z$1.ZodOptional<z$1.ZodString>;
|
|
7949
7949
|
image: z$1.ZodNullable<z$1.ZodOptional<z$1.ZodPipe<z$1.ZodPipe<z$1.ZodTransform<string | undefined, string | undefined>, z$1.ZodOptional<z$1.ZodURL>>, z$1.ZodTransform<string | undefined, string | undefined>>>>;
|
|
7950
|
-
},
|
|
7951
|
-
},
|
|
7950
|
+
}, zod_v4_core0.$loose>, "user">;
|
|
7951
|
+
}, zod_v4_core0.$strip>, z$1.ZodObject<{
|
|
7952
7952
|
success: z$1.ZodLiteral<false>;
|
|
7953
7953
|
token: z$1.ZodDefault<z$1.ZodNull>;
|
|
7954
7954
|
user: z$1.ZodDefault<z$1.ZodNull>;
|
|
7955
|
-
},
|
|
7955
|
+
}, zod_v4_core0.$strip>], "success">, z$1.ZodTransform<{
|
|
7956
7956
|
success: true;
|
|
7957
7957
|
data: {
|
|
7958
7958
|
success: true;
|
|
@@ -7998,11 +7998,11 @@ declare const twoFactor: (options?: TwoFactorOptions) => {
|
|
|
7998
7998
|
description: string;
|
|
7999
7999
|
content: {
|
|
8000
8000
|
"application/json": {
|
|
8001
|
-
schema:
|
|
8001
|
+
schema: zod_v4_core0.$ZodBranded<z$1.ZodObject<{
|
|
8002
8002
|
success: z$1.ZodLiteral<false>;
|
|
8003
8003
|
code: z$1.ZodOptional<z$1.ZodString>;
|
|
8004
8004
|
message: z$1.ZodOptional<z$1.ZodString>;
|
|
8005
|
-
},
|
|
8005
|
+
}, zod_v4_core0.$strip>, "error">;
|
|
8006
8006
|
};
|
|
8007
8007
|
};
|
|
8008
8008
|
};
|
|
@@ -8011,11 +8011,11 @@ declare const twoFactor: (options?: TwoFactorOptions) => {
|
|
|
8011
8011
|
description: string;
|
|
8012
8012
|
content: {
|
|
8013
8013
|
"application/json": {
|
|
8014
|
-
schema:
|
|
8014
|
+
schema: zod_v4_core0.$ZodBranded<z$1.ZodObject<{
|
|
8015
8015
|
success: z$1.ZodLiteral<false>;
|
|
8016
8016
|
code: z$1.ZodOptional<z$1.ZodString>;
|
|
8017
8017
|
message: z$1.ZodOptional<z$1.ZodString>;
|
|
8018
|
-
},
|
|
8018
|
+
}, zod_v4_core0.$strip>, "error">;
|
|
8019
8019
|
};
|
|
8020
8020
|
};
|
|
8021
8021
|
};
|
|
@@ -8024,11 +8024,11 @@ declare const twoFactor: (options?: TwoFactorOptions) => {
|
|
|
8024
8024
|
description: string;
|
|
8025
8025
|
content: {
|
|
8026
8026
|
"application/json": {
|
|
8027
|
-
schema:
|
|
8027
|
+
schema: zod_v4_core0.$ZodBranded<z$1.ZodObject<{
|
|
8028
8028
|
success: z$1.ZodLiteral<false>;
|
|
8029
8029
|
code: z$1.ZodOptional<z$1.ZodString>;
|
|
8030
8030
|
message: z$1.ZodOptional<z$1.ZodString>;
|
|
8031
|
-
},
|
|
8031
|
+
}, zod_v4_core0.$strip>, "error">;
|
|
8032
8032
|
};
|
|
8033
8033
|
};
|
|
8034
8034
|
};
|
|
@@ -8052,7 +8052,7 @@ declare const twoFactor: (options?: TwoFactorOptions) => {
|
|
|
8052
8052
|
errors: string[];
|
|
8053
8053
|
};
|
|
8054
8054
|
};
|
|
8055
|
-
}, unknown,
|
|
8055
|
+
}, unknown, zod_v4_core0.$ZodTypeInternals<{
|
|
8056
8056
|
success: false;
|
|
8057
8057
|
} & {
|
|
8058
8058
|
errors: string[];
|
|
@@ -8084,7 +8084,7 @@ declare const twoFactor: (options?: TwoFactorOptions) => {
|
|
|
8084
8084
|
code: z$1.ZodString;
|
|
8085
8085
|
disableSession: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
8086
8086
|
trustDevice: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
8087
|
-
},
|
|
8087
|
+
}, zod_v4_core0.$strip>;
|
|
8088
8088
|
};
|
|
8089
8089
|
};
|
|
8090
8090
|
required: true;
|
|
@@ -8110,11 +8110,11 @@ declare const twoFactor: (options?: TwoFactorOptions) => {
|
|
|
8110
8110
|
description: string;
|
|
8111
8111
|
content: {
|
|
8112
8112
|
"application/json": {
|
|
8113
|
-
schema:
|
|
8113
|
+
schema: zod_v4_core0.$ZodBranded<z$1.ZodObject<{
|
|
8114
8114
|
success: z$1.ZodLiteral<false>;
|
|
8115
8115
|
code: z$1.ZodOptional<z$1.ZodString>;
|
|
8116
8116
|
message: z$1.ZodOptional<z$1.ZodString>;
|
|
8117
|
-
},
|
|
8117
|
+
}, zod_v4_core0.$strip>, "error">;
|
|
8118
8118
|
};
|
|
8119
8119
|
};
|
|
8120
8120
|
};
|
|
@@ -8132,7 +8132,7 @@ declare const twoFactor: (options?: TwoFactorOptions) => {
|
|
|
8132
8132
|
errors: string[];
|
|
8133
8133
|
};
|
|
8134
8134
|
};
|
|
8135
|
-
}, unknown,
|
|
8135
|
+
}, unknown, zod_v4_core0.$ZodTypeInternals<{
|
|
8136
8136
|
success: false;
|
|
8137
8137
|
} & {
|
|
8138
8138
|
errors: string[];
|
|
@@ -8149,7 +8149,7 @@ declare const twoFactor: (options?: TwoFactorOptions) => {
|
|
|
8149
8149
|
operationId: "generateBackupCodes";
|
|
8150
8150
|
path: "/two-factor/generate-backup-codes";
|
|
8151
8151
|
method: "post";
|
|
8152
|
-
middleware: [(ctx:
|
|
8152
|
+
middleware: [(ctx: hono73.Context<ContextVars<{
|
|
8153
8153
|
session: {
|
|
8154
8154
|
user: {
|
|
8155
8155
|
twoFactorEnabled: boolean;
|
|
@@ -8179,7 +8179,7 @@ declare const twoFactor: (options?: TwoFactorOptions) => {
|
|
|
8179
8179
|
image?: string | null;
|
|
8180
8180
|
};
|
|
8181
8181
|
};
|
|
8182
|
-
}>, string, {}>, next:
|
|
8182
|
+
}>, string, {}>, next: hono73.Next) => Promise<void | (Response & hono73.TypedResponse<{
|
|
8183
8183
|
success: false;
|
|
8184
8184
|
code?: string | undefined;
|
|
8185
8185
|
message?: string | undefined;
|
|
@@ -8191,7 +8191,7 @@ declare const twoFactor: (options?: TwoFactorOptions) => {
|
|
|
8191
8191
|
"application/json": {
|
|
8192
8192
|
schema: z$1.ZodObject<{
|
|
8193
8193
|
password: z$1.ZodString;
|
|
8194
|
-
},
|
|
8194
|
+
}, zod_v4_core0.$strip>;
|
|
8195
8195
|
};
|
|
8196
8196
|
};
|
|
8197
8197
|
required: true;
|
|
@@ -8217,11 +8217,11 @@ declare const twoFactor: (options?: TwoFactorOptions) => {
|
|
|
8217
8217
|
description: string;
|
|
8218
8218
|
content: {
|
|
8219
8219
|
"application/json": {
|
|
8220
|
-
schema:
|
|
8220
|
+
schema: zod_v4_core0.$ZodBranded<z$1.ZodObject<{
|
|
8221
8221
|
success: z$1.ZodLiteral<false>;
|
|
8222
8222
|
code: z$1.ZodOptional<z$1.ZodString>;
|
|
8223
8223
|
message: z$1.ZodOptional<z$1.ZodString>;
|
|
8224
|
-
},
|
|
8224
|
+
}, zod_v4_core0.$strip>, "error">;
|
|
8225
8225
|
};
|
|
8226
8226
|
};
|
|
8227
8227
|
};
|
|
@@ -8230,11 +8230,11 @@ declare const twoFactor: (options?: TwoFactorOptions) => {
|
|
|
8230
8230
|
description: string;
|
|
8231
8231
|
content: {
|
|
8232
8232
|
"application/json": {
|
|
8233
|
-
schema:
|
|
8233
|
+
schema: zod_v4_core0.$ZodBranded<z$1.ZodObject<{
|
|
8234
8234
|
success: z$1.ZodLiteral<false>;
|
|
8235
8235
|
code: z$1.ZodOptional<z$1.ZodString>;
|
|
8236
8236
|
message: z$1.ZodOptional<z$1.ZodString>;
|
|
8237
|
-
},
|
|
8237
|
+
}, zod_v4_core0.$strip>, "error">;
|
|
8238
8238
|
};
|
|
8239
8239
|
};
|
|
8240
8240
|
};
|
|
@@ -8252,7 +8252,7 @@ declare const twoFactor: (options?: TwoFactorOptions) => {
|
|
|
8252
8252
|
errors: string[];
|
|
8253
8253
|
};
|
|
8254
8254
|
};
|
|
8255
|
-
}, unknown,
|
|
8255
|
+
}, unknown, zod_v4_core0.$ZodTypeInternals<{
|
|
8256
8256
|
success: false;
|
|
8257
8257
|
} & {
|
|
8258
8258
|
errors: string[];
|
|
@@ -8277,7 +8277,7 @@ declare const twoFactor: (options?: TwoFactorOptions) => {
|
|
|
8277
8277
|
"application/json": {
|
|
8278
8278
|
schema: z$1.ZodObject<{
|
|
8279
8279
|
userId: z$1.ZodCoercedString<unknown>;
|
|
8280
|
-
},
|
|
8280
|
+
}, zod_v4_core0.$strip>;
|
|
8281
8281
|
};
|
|
8282
8282
|
};
|
|
8283
8283
|
required: true;
|
|
@@ -8291,10 +8291,10 @@ declare const twoFactor: (options?: TwoFactorOptions) => {
|
|
|
8291
8291
|
description: string;
|
|
8292
8292
|
content: {
|
|
8293
8293
|
"application/json": {
|
|
8294
|
-
schema:
|
|
8294
|
+
schema: zod_v4_core0.$ZodBranded<z$1.ZodObject<{
|
|
8295
8295
|
success: z$1.ZodLiteral<true>;
|
|
8296
8296
|
message: z$1.ZodOptional<z$1.ZodString>;
|
|
8297
|
-
},
|
|
8297
|
+
}, zod_v4_core0.$strip>, "success">;
|
|
8298
8298
|
};
|
|
8299
8299
|
};
|
|
8300
8300
|
};
|
|
@@ -8303,11 +8303,11 @@ declare const twoFactor: (options?: TwoFactorOptions) => {
|
|
|
8303
8303
|
description: string;
|
|
8304
8304
|
content: {
|
|
8305
8305
|
"application/json": {
|
|
8306
|
-
schema:
|
|
8306
|
+
schema: zod_v4_core0.$ZodBranded<z$1.ZodObject<{
|
|
8307
8307
|
success: z$1.ZodLiteral<false>;
|
|
8308
8308
|
code: z$1.ZodOptional<z$1.ZodString>;
|
|
8309
8309
|
message: z$1.ZodOptional<z$1.ZodString>;
|
|
8310
|
-
},
|
|
8310
|
+
}, zod_v4_core0.$strip>, "error">;
|
|
8311
8311
|
};
|
|
8312
8312
|
};
|
|
8313
8313
|
};
|
|
@@ -8316,11 +8316,11 @@ declare const twoFactor: (options?: TwoFactorOptions) => {
|
|
|
8316
8316
|
description: string;
|
|
8317
8317
|
content: {
|
|
8318
8318
|
"application/json": {
|
|
8319
|
-
schema:
|
|
8319
|
+
schema: zod_v4_core0.$ZodBranded<z$1.ZodObject<{
|
|
8320
8320
|
success: z$1.ZodLiteral<false>;
|
|
8321
8321
|
code: z$1.ZodOptional<z$1.ZodString>;
|
|
8322
8322
|
message: z$1.ZodOptional<z$1.ZodString>;
|
|
8323
|
-
},
|
|
8323
|
+
}, zod_v4_core0.$strip>, "error">;
|
|
8324
8324
|
};
|
|
8325
8325
|
};
|
|
8326
8326
|
};
|
|
@@ -8338,7 +8338,7 @@ declare const twoFactor: (options?: TwoFactorOptions) => {
|
|
|
8338
8338
|
errors: string[];
|
|
8339
8339
|
};
|
|
8340
8340
|
};
|
|
8341
|
-
}, unknown,
|
|
8341
|
+
}, unknown, zod_v4_core0.$ZodTypeInternals<{
|
|
8342
8342
|
success: false;
|
|
8343
8343
|
} & {
|
|
8344
8344
|
errors: string[];
|
|
@@ -8362,7 +8362,7 @@ declare const twoFactor: (options?: TwoFactorOptions) => {
|
|
|
8362
8362
|
"application/json": {
|
|
8363
8363
|
schema: z$1.ZodObject<{
|
|
8364
8364
|
trustDevice: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
8365
|
-
},
|
|
8365
|
+
}, zod_v4_core0.$strip>;
|
|
8366
8366
|
};
|
|
8367
8367
|
};
|
|
8368
8368
|
required: true;
|
|
@@ -8376,10 +8376,10 @@ declare const twoFactor: (options?: TwoFactorOptions) => {
|
|
|
8376
8376
|
description: string;
|
|
8377
8377
|
content: {
|
|
8378
8378
|
"application/json": {
|
|
8379
|
-
schema:
|
|
8379
|
+
schema: zod_v4_core0.$ZodBranded<z$1.ZodPipe<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
8380
8380
|
success: z$1.ZodLiteral<true>;
|
|
8381
8381
|
token: z$1.ZodDefault<z$1.ZodNullable<z$1.ZodString>>;
|
|
8382
|
-
user:
|
|
8382
|
+
user: zod_v4_core0.$ZodBranded<z$1.ZodObject<{
|
|
8383
8383
|
id: z$1.ZodString;
|
|
8384
8384
|
createdAt: z$1.ZodDefault<z$1.ZodPipe<z$1.ZodUnion<[z$1.ZodDate, z$1.ZodISODateTime]>, z$1.ZodTransform<Date, string | Date>>>;
|
|
8385
8385
|
updatedAt: z$1.ZodDefault<z$1.ZodPipe<z$1.ZodUnion<[z$1.ZodDate, z$1.ZodISODateTime]>, z$1.ZodTransform<Date, string | Date>>>;
|
|
@@ -8387,12 +8387,12 @@ declare const twoFactor: (options?: TwoFactorOptions) => {
|
|
|
8387
8387
|
emailVerified: z$1.ZodDefault<z$1.ZodCoercedBoolean<unknown>>;
|
|
8388
8388
|
name: z$1.ZodOptional<z$1.ZodString>;
|
|
8389
8389
|
image: z$1.ZodNullable<z$1.ZodOptional<z$1.ZodPipe<z$1.ZodPipe<z$1.ZodTransform<string | undefined, string | undefined>, z$1.ZodOptional<z$1.ZodURL>>, z$1.ZodTransform<string | undefined, string | undefined>>>>;
|
|
8390
|
-
},
|
|
8391
|
-
},
|
|
8390
|
+
}, zod_v4_core0.$loose>, "user">;
|
|
8391
|
+
}, zod_v4_core0.$strip>, z$1.ZodObject<{
|
|
8392
8392
|
success: z$1.ZodLiteral<false>;
|
|
8393
8393
|
token: z$1.ZodDefault<z$1.ZodNull>;
|
|
8394
8394
|
user: z$1.ZodDefault<z$1.ZodNull>;
|
|
8395
|
-
},
|
|
8395
|
+
}, zod_v4_core0.$strip>], "success">, z$1.ZodTransform<{
|
|
8396
8396
|
success: true;
|
|
8397
8397
|
data: {
|
|
8398
8398
|
success: true;
|
|
@@ -8438,11 +8438,11 @@ declare const twoFactor: (options?: TwoFactorOptions) => {
|
|
|
8438
8438
|
description: string;
|
|
8439
8439
|
content: {
|
|
8440
8440
|
"application/json": {
|
|
8441
|
-
schema:
|
|
8441
|
+
schema: zod_v4_core0.$ZodBranded<z$1.ZodObject<{
|
|
8442
8442
|
success: z$1.ZodLiteral<false>;
|
|
8443
8443
|
code: z$1.ZodOptional<z$1.ZodString>;
|
|
8444
8444
|
message: z$1.ZodOptional<z$1.ZodString>;
|
|
8445
|
-
},
|
|
8445
|
+
}, zod_v4_core0.$strip>, "error">;
|
|
8446
8446
|
};
|
|
8447
8447
|
};
|
|
8448
8448
|
};
|
|
@@ -8451,11 +8451,11 @@ declare const twoFactor: (options?: TwoFactorOptions) => {
|
|
|
8451
8451
|
description: string;
|
|
8452
8452
|
content: {
|
|
8453
8453
|
"application/json": {
|
|
8454
|
-
schema:
|
|
8454
|
+
schema: zod_v4_core0.$ZodBranded<z$1.ZodObject<{
|
|
8455
8455
|
success: z$1.ZodLiteral<false>;
|
|
8456
8456
|
code: z$1.ZodOptional<z$1.ZodString>;
|
|
8457
8457
|
message: z$1.ZodOptional<z$1.ZodString>;
|
|
8458
|
-
},
|
|
8458
|
+
}, zod_v4_core0.$strip>, "error">;
|
|
8459
8459
|
};
|
|
8460
8460
|
};
|
|
8461
8461
|
};
|
|
@@ -8464,11 +8464,11 @@ declare const twoFactor: (options?: TwoFactorOptions) => {
|
|
|
8464
8464
|
description: string;
|
|
8465
8465
|
content: {
|
|
8466
8466
|
"application/json": {
|
|
8467
|
-
schema:
|
|
8467
|
+
schema: zod_v4_core0.$ZodBranded<z$1.ZodObject<{
|
|
8468
8468
|
success: z$1.ZodLiteral<false>;
|
|
8469
8469
|
code: z$1.ZodOptional<z$1.ZodString>;
|
|
8470
8470
|
message: z$1.ZodOptional<z$1.ZodString>;
|
|
8471
|
-
},
|
|
8471
|
+
}, zod_v4_core0.$strip>, "error">;
|
|
8472
8472
|
};
|
|
8473
8473
|
};
|
|
8474
8474
|
};
|
|
@@ -8489,7 +8489,7 @@ declare const twoFactor: (options?: TwoFactorOptions) => {
|
|
|
8489
8489
|
errors: string[];
|
|
8490
8490
|
};
|
|
8491
8491
|
};
|
|
8492
|
-
}, unknown,
|
|
8492
|
+
}, unknown, zod_v4_core0.$ZodTypeInternals<{
|
|
8493
8493
|
success: false;
|
|
8494
8494
|
} & {
|
|
8495
8495
|
errors: string[];
|
|
@@ -8517,7 +8517,7 @@ declare const twoFactor: (options?: TwoFactorOptions) => {
|
|
|
8517
8517
|
schema: z$1.ZodObject<{
|
|
8518
8518
|
code: z$1.ZodString;
|
|
8519
8519
|
trustDevice: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
8520
|
-
},
|
|
8520
|
+
}, zod_v4_core0.$strip>;
|
|
8521
8521
|
};
|
|
8522
8522
|
};
|
|
8523
8523
|
required: true;
|
|
@@ -8543,11 +8543,11 @@ declare const twoFactor: (options?: TwoFactorOptions) => {
|
|
|
8543
8543
|
description: string;
|
|
8544
8544
|
content: {
|
|
8545
8545
|
"application/json": {
|
|
8546
|
-
schema:
|
|
8546
|
+
schema: zod_v4_core0.$ZodBranded<z$1.ZodObject<{
|
|
8547
8547
|
success: z$1.ZodLiteral<false>;
|
|
8548
8548
|
code: z$1.ZodOptional<z$1.ZodString>;
|
|
8549
8549
|
message: z$1.ZodOptional<z$1.ZodString>;
|
|
8550
|
-
},
|
|
8550
|
+
}, zod_v4_core0.$strip>, "error">;
|
|
8551
8551
|
};
|
|
8552
8552
|
};
|
|
8553
8553
|
};
|
|
@@ -8565,7 +8565,7 @@ declare const twoFactor: (options?: TwoFactorOptions) => {
|
|
|
8565
8565
|
errors: string[];
|
|
8566
8566
|
};
|
|
8567
8567
|
};
|
|
8568
|
-
}, unknown,
|
|
8568
|
+
}, unknown, zod_v4_core0.$ZodTypeInternals<{
|
|
8569
8569
|
success: false;
|
|
8570
8570
|
} & {
|
|
8571
8571
|
errors: string[];
|
|
@@ -8590,7 +8590,7 @@ declare const twoFactor: (options?: TwoFactorOptions) => {
|
|
|
8590
8590
|
"application/json": {
|
|
8591
8591
|
schema: z$1.ZodObject<{
|
|
8592
8592
|
secret: z$1.ZodString;
|
|
8593
|
-
},
|
|
8593
|
+
}, zod_v4_core0.$strip>;
|
|
8594
8594
|
};
|
|
8595
8595
|
};
|
|
8596
8596
|
required: true;
|
|
@@ -8616,11 +8616,11 @@ declare const twoFactor: (options?: TwoFactorOptions) => {
|
|
|
8616
8616
|
description: string;
|
|
8617
8617
|
content: {
|
|
8618
8618
|
"application/json": {
|
|
8619
|
-
schema:
|
|
8619
|
+
schema: zod_v4_core0.$ZodBranded<z$1.ZodObject<{
|
|
8620
8620
|
success: z$1.ZodLiteral<false>;
|
|
8621
8621
|
code: z$1.ZodOptional<z$1.ZodString>;
|
|
8622
8622
|
message: z$1.ZodOptional<z$1.ZodString>;
|
|
8623
|
-
},
|
|
8623
|
+
}, zod_v4_core0.$strip>, "error">;
|
|
8624
8624
|
};
|
|
8625
8625
|
};
|
|
8626
8626
|
};
|
|
@@ -8638,7 +8638,7 @@ declare const twoFactor: (options?: TwoFactorOptions) => {
|
|
|
8638
8638
|
errors: string[];
|
|
8639
8639
|
};
|
|
8640
8640
|
};
|
|
8641
|
-
}, unknown,
|
|
8641
|
+
}, unknown, zod_v4_core0.$ZodTypeInternals<{
|
|
8642
8642
|
success: false;
|
|
8643
8643
|
} & {
|
|
8644
8644
|
errors: string[];
|
|
@@ -8655,7 +8655,7 @@ declare const twoFactor: (options?: TwoFactorOptions) => {
|
|
|
8655
8655
|
operationId: "getTOTPURI";
|
|
8656
8656
|
path: "/two-factor/get-totp-uri";
|
|
8657
8657
|
method: "post";
|
|
8658
|
-
middleware: [(ctx:
|
|
8658
|
+
middleware: [(ctx: hono73.Context<ContextVars<{
|
|
8659
8659
|
session: {
|
|
8660
8660
|
user: {
|
|
8661
8661
|
twoFactorEnabled: boolean;
|
|
@@ -8685,7 +8685,7 @@ declare const twoFactor: (options?: TwoFactorOptions) => {
|
|
|
8685
8685
|
image?: string | null;
|
|
8686
8686
|
};
|
|
8687
8687
|
};
|
|
8688
|
-
}>, string, {}>, next:
|
|
8688
|
+
}>, string, {}>, next: hono73.Next) => Promise<void | (Response & hono73.TypedResponse<{
|
|
8689
8689
|
success: false;
|
|
8690
8690
|
code?: string | undefined;
|
|
8691
8691
|
message?: string | undefined;
|
|
@@ -8697,7 +8697,7 @@ declare const twoFactor: (options?: TwoFactorOptions) => {
|
|
|
8697
8697
|
"application/json": {
|
|
8698
8698
|
schema: z$1.ZodObject<{
|
|
8699
8699
|
password: z$1.ZodString;
|
|
8700
|
-
},
|
|
8700
|
+
}, zod_v4_core0.$strip>;
|
|
8701
8701
|
};
|
|
8702
8702
|
};
|
|
8703
8703
|
required: true;
|
|
@@ -8711,10 +8711,10 @@ declare const twoFactor: (options?: TwoFactorOptions) => {
|
|
|
8711
8711
|
description: string;
|
|
8712
8712
|
content: {
|
|
8713
8713
|
"application/json": {
|
|
8714
|
-
schema:
|
|
8714
|
+
schema: zod_v4_core0.$ZodBranded<z$1.ZodPipe<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
8715
8715
|
success: z$1.ZodLiteral<true>;
|
|
8716
8716
|
token: z$1.ZodDefault<z$1.ZodNullable<z$1.ZodString>>;
|
|
8717
|
-
user:
|
|
8717
|
+
user: zod_v4_core0.$ZodBranded<z$1.ZodObject<{
|
|
8718
8718
|
id: z$1.ZodString;
|
|
8719
8719
|
createdAt: z$1.ZodDefault<z$1.ZodPipe<z$1.ZodUnion<[z$1.ZodDate, z$1.ZodISODateTime]>, z$1.ZodTransform<Date, string | Date>>>;
|
|
8720
8720
|
updatedAt: z$1.ZodDefault<z$1.ZodPipe<z$1.ZodUnion<[z$1.ZodDate, z$1.ZodISODateTime]>, z$1.ZodTransform<Date, string | Date>>>;
|
|
@@ -8722,12 +8722,12 @@ declare const twoFactor: (options?: TwoFactorOptions) => {
|
|
|
8722
8722
|
emailVerified: z$1.ZodDefault<z$1.ZodCoercedBoolean<unknown>>;
|
|
8723
8723
|
name: z$1.ZodOptional<z$1.ZodString>;
|
|
8724
8724
|
image: z$1.ZodNullable<z$1.ZodOptional<z$1.ZodPipe<z$1.ZodPipe<z$1.ZodTransform<string | undefined, string | undefined>, z$1.ZodOptional<z$1.ZodURL>>, z$1.ZodTransform<string | undefined, string | undefined>>>>;
|
|
8725
|
-
},
|
|
8726
|
-
},
|
|
8725
|
+
}, zod_v4_core0.$loose>, "user">;
|
|
8726
|
+
}, zod_v4_core0.$strip>, z$1.ZodObject<{
|
|
8727
8727
|
success: z$1.ZodLiteral<false>;
|
|
8728
8728
|
token: z$1.ZodDefault<z$1.ZodNull>;
|
|
8729
8729
|
user: z$1.ZodDefault<z$1.ZodNull>;
|
|
8730
|
-
},
|
|
8730
|
+
}, zod_v4_core0.$strip>], "success">, z$1.ZodTransform<{
|
|
8731
8731
|
success: true;
|
|
8732
8732
|
data: {
|
|
8733
8733
|
success: true;
|
|
@@ -8773,11 +8773,11 @@ declare const twoFactor: (options?: TwoFactorOptions) => {
|
|
|
8773
8773
|
description: string;
|
|
8774
8774
|
content: {
|
|
8775
8775
|
"application/json": {
|
|
8776
|
-
schema:
|
|
8776
|
+
schema: zod_v4_core0.$ZodBranded<z$1.ZodObject<{
|
|
8777
8777
|
success: z$1.ZodLiteral<false>;
|
|
8778
8778
|
code: z$1.ZodOptional<z$1.ZodString>;
|
|
8779
8779
|
message: z$1.ZodOptional<z$1.ZodString>;
|
|
8780
|
-
},
|
|
8780
|
+
}, zod_v4_core0.$strip>, "error">;
|
|
8781
8781
|
};
|
|
8782
8782
|
};
|
|
8783
8783
|
};
|
|
@@ -8786,11 +8786,11 @@ declare const twoFactor: (options?: TwoFactorOptions) => {
|
|
|
8786
8786
|
description: string;
|
|
8787
8787
|
content: {
|
|
8788
8788
|
"application/json": {
|
|
8789
|
-
schema:
|
|
8789
|
+
schema: zod_v4_core0.$ZodBranded<z$1.ZodObject<{
|
|
8790
8790
|
success: z$1.ZodLiteral<false>;
|
|
8791
8791
|
code: z$1.ZodOptional<z$1.ZodString>;
|
|
8792
8792
|
message: z$1.ZodOptional<z$1.ZodString>;
|
|
8793
|
-
},
|
|
8793
|
+
}, zod_v4_core0.$strip>, "error">;
|
|
8794
8794
|
};
|
|
8795
8795
|
};
|
|
8796
8796
|
};
|
|
@@ -8799,11 +8799,11 @@ declare const twoFactor: (options?: TwoFactorOptions) => {
|
|
|
8799
8799
|
description: string;
|
|
8800
8800
|
content: {
|
|
8801
8801
|
"application/json": {
|
|
8802
|
-
schema:
|
|
8802
|
+
schema: zod_v4_core0.$ZodBranded<z$1.ZodObject<{
|
|
8803
8803
|
success: z$1.ZodLiteral<false>;
|
|
8804
8804
|
code: z$1.ZodOptional<z$1.ZodString>;
|
|
8805
8805
|
message: z$1.ZodOptional<z$1.ZodString>;
|
|
8806
|
-
},
|
|
8806
|
+
}, zod_v4_core0.$strip>, "error">;
|
|
8807
8807
|
};
|
|
8808
8808
|
};
|
|
8809
8809
|
};
|
|
@@ -8824,7 +8824,7 @@ declare const twoFactor: (options?: TwoFactorOptions) => {
|
|
|
8824
8824
|
errors: string[];
|
|
8825
8825
|
};
|
|
8826
8826
|
};
|
|
8827
|
-
}, unknown,
|
|
8827
|
+
}, unknown, zod_v4_core0.$ZodTypeInternals<{
|
|
8828
8828
|
success: false;
|
|
8829
8829
|
} & {
|
|
8830
8830
|
errors: string[];
|
|
@@ -8852,7 +8852,7 @@ declare const twoFactor: (options?: TwoFactorOptions) => {
|
|
|
8852
8852
|
schema: z$1.ZodObject<{
|
|
8853
8853
|
code: z$1.ZodString;
|
|
8854
8854
|
trustDevice: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
8855
|
-
},
|
|
8855
|
+
}, zod_v4_core0.$strip>;
|
|
8856
8856
|
};
|
|
8857
8857
|
};
|
|
8858
8858
|
required: true;
|
|
@@ -8864,8 +8864,8 @@ declare const twoFactor: (options?: TwoFactorOptions) => {
|
|
|
8864
8864
|
options: TwoFactorOptions;
|
|
8865
8865
|
hooks: {
|
|
8866
8866
|
after: {
|
|
8867
|
-
matcher: (ctx:
|
|
8868
|
-
handler: (_opts:
|
|
8867
|
+
matcher: (ctx: hono73.Context<ContextVars<any>, any, {}>) => boolean;
|
|
8868
|
+
handler: (_opts: _faire_auth_core_types47.FaireAuthOptions<any>) => (ctx: hono73.Context<ContextVars<object>, string, {}>) => Promise<_faire_auth_core_types47.JSONRespondReturn<{
|
|
8869
8869
|
twoFactorRedirect: true;
|
|
8870
8870
|
}, 200> | undefined>;
|
|
8871
8871
|
}[];
|
|
@@ -9025,7 +9025,7 @@ interface UsernameOptions {
|
|
|
9025
9025
|
}
|
|
9026
9026
|
declare const username: (options?: UsernameOptions) => {
|
|
9027
9027
|
id: "username";
|
|
9028
|
-
init: (_ctx:
|
|
9028
|
+
init: (_ctx: _faire_auth_core_types47.AuthContext<ContextVars<any>, _faire_auth_core_types47.FaireAuthOptions<ContextVars<any>>>) => {
|
|
9029
9029
|
options: {
|
|
9030
9030
|
databaseHooks: {
|
|
9031
9031
|
user: {
|