@gatwech/auth 1.0.0-beta.18 → 1.0.0-beta.19
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/README.md +8 -14
- package/dist/{access-C6O_osEz.mjs → access-CrwEFPHE.mjs} +1 -1
- package/dist/{access-DT1f6l5k.mjs → access-bhklJd7m.mjs} +1 -1
- package/dist/{adapter-factory-BZ2Qiqpn.mjs → adapter-factory-xbLUJt85.mjs} +2 -2
- package/dist/adapters/drizzle-adapter/index.mjs +6 -5
- package/dist/adapters/index.d.mts +5 -5
- package/dist/adapters/index.mjs +6 -5
- package/dist/adapters/kysely-adapter/index.d.mts +1 -1
- package/dist/adapters/kysely-adapter/index.mjs +8 -7
- package/dist/adapters/memory-adapter/index.d.mts +1 -1
- package/dist/adapters/memory-adapter/index.mjs +6 -5
- package/dist/adapters/mongodb-adapter/index.mjs +6 -5
- package/dist/adapters/prisma-adapter/index.mjs +6 -5
- package/dist/adapters/test.mjs +4 -3
- package/dist/{admin-Bcq53Nwj.mjs → admin-BzUJL6tr.mjs} +6 -6
- package/dist/{anonymous-CRt1imBW.mjs → anonymous-BjlTk4gl.mjs} +5 -5
- package/dist/api/index.d.mts +5 -5
- package/dist/api/index.mjs +12 -11
- package/dist/{api-0pR_I-Nx.mjs → api-Dk8Yj_J5.mjs} +15 -5
- package/dist/audit-log-DKsUWR8O.mjs +772 -0
- package/dist/{auth-CBUoBX6o.mjs → auth-vfCyIIeV.mjs} +8 -8
- package/dist/{bearer-Djf_awfo.mjs → bearer-DvQLM00l.mjs} +2 -2
- package/dist/client/index.d.mts +21 -21
- package/dist/client/index.mjs +4 -4
- package/dist/client/plugins/index.d.mts +53 -45
- package/dist/client/plugins/index.mjs +16 -12
- package/dist/client/react/index.d.mts +19 -19
- package/dist/client/react/index.mjs +2 -2
- package/dist/client-4QEb0rUr.mjs +95 -0
- package/dist/client-CSOs1YN7.d.mts +14 -0
- package/dist/client-DZHNfxuR.d.mts +75 -0
- package/dist/client-DzOqXJUm.mjs +15 -0
- package/dist/{client-aExCkfwm.mjs → client-xga7yFIX.mjs} +2 -2
- package/dist/cookies/index.d.mts +6 -6
- package/dist/cookies/index.mjs +2 -2
- package/dist/{cookies-cJObLwn1.mjs → cookies-BuvlgcA-.mjs} +1 -1
- package/dist/crypto/index.mjs +2 -1
- package/dist/{crypto-Bb42eMrH.mjs → crypto-CCyta8xj.mjs} +1 -6
- package/dist/{custom-session-L3t7ecsd.mjs → custom-session-DN_-pfi_.mjs} +2 -2
- package/dist/db/index.d.mts +5 -5
- package/dist/db/index.mjs +9 -8
- package/dist/{db-BrstmDhc.mjs → db-7vHnL1XA.mjs} +15 -9
- package/dist/{device-authorization-V4s3h4Mj.mjs → device-authorization-BKnNhlsz.mjs} +4 -4
- package/dist/{dialect-CeddeGHf.mjs → dialect-HsWUfpYY.mjs} +2 -2
- package/dist/{email-otp-BtDHSw14.mjs → email-otp-Dw0DypjQ.mjs} +7 -6
- package/dist/{generic-oauth-CL5X27ZI.mjs → generic-oauth-DFj27JY8.mjs} +4 -4
- package/dist/{has-permission-BpAr7uCn.mjs → has-permission-Bvg8de8g.mjs} +1 -1
- package/dist/{haveibeenpwned-cMpJvmzI.mjs → haveibeenpwned-CzNda7Tn.mjs} +28 -15
- package/dist/{client-CNY0tn9g.d.mts → index-BAVzFqII.d.mts} +21 -21
- package/dist/{index-DaBcikv9.d.mts → index-BNDRYfTF.d.mts} +2 -2
- package/dist/{index-Cxi7TbLE.d.mts → index-BNhJglHC.d.mts} +122 -122
- package/dist/{index-BYMI9r_d.d.mts → index-Blmhq6eA.d.mts} +4 -4
- package/dist/{index-BHoQlf7a.d.mts → index-CKnPAS5n.d.mts} +178 -178
- package/dist/{index-34ONrP8l.d.mts → index-COGe8UJx.d.mts} +11 -11
- package/dist/{index-Buhn3hkR.d.mts → index-CP3FNbOZ.d.mts} +8 -8
- package/dist/{index-D_k662QG.d.mts → index-CUknVRZp.d.mts} +14 -14
- package/dist/{index-DKNNV1kb.d.mts → index-CaqpCfE5.d.mts} +8 -8
- package/dist/{index-BBm8nQ9Q.d.mts → index-CgeC2eGC.d.mts} +2 -2
- package/dist/{index-DR0xXno9.d.mts → index-CsxtcAO0.d.mts} +1 -1
- package/dist/{index-CuFzhoS6.d.mts → index-Cv9iMevV.d.mts} +10 -10
- package/dist/{index-C7fQuk-V.d.mts → index-CxlWnL9c.d.mts} +1 -1
- package/dist/{index-zjjNBRY2.d.mts → index-DG-X1PK5.d.mts} +6 -6
- package/dist/index-DRM35ir1.d.mts +3769 -0
- package/dist/{index-BqhKCbPH.d.mts → index-DS-R7st3.d.mts} +6 -6
- package/dist/{index-C-u1h_WX.d.mts → index-DXVU0HGr.d.mts} +5 -5
- package/dist/{index-DoXZYQpq.d.mts → index-Db8jqUq2.d.mts} +10 -10
- package/dist/{index-65G5U5DB-DSdjzreF.d.mts → index-Df0KhQRf-BEa5tdwJ.d.mts} +3 -2
- package/dist/{index-B-XKqFvY.d.mts → index-Df4SvZaE.d.mts} +11 -4
- package/dist/{index-G6V0Z_Mn.d.mts → index-DyH_CgmX.d.mts} +10 -10
- package/dist/{admin-DtfO1PLg.d.mts → index-EABwA_BH.d.mts} +36 -36
- package/dist/{index-z0KSvE5i.d.mts → index-QmocqGM-.d.mts} +1 -1
- package/dist/{index-DlaMq1nb.d.mts → index-mxEUX2Gs.d.mts} +14 -14
- package/dist/{client-BOX93C3d.d.mts → index-xoYsoOiR.d.mts} +52 -52
- package/dist/{index-B3n8e37d.d.mts → index-zBdYQGaS.d.mts} +7 -7
- package/dist/index.d.mts +5 -5
- package/dist/index.mjs +16 -15
- package/dist/integrations/next-js.mjs +2 -2
- package/dist/integrations/node.d.mts +5 -5
- package/dist/integrations/react-start.d.mts +4 -4
- package/dist/integrations/react-start.mjs +2 -2
- package/dist/{jwt-lHV4QHpD.mjs → jwt-DBN2mu0r.mjs} +4 -4
- package/dist/{kysely-adapter-DpzYO8Yf.mjs → kysely-adapter-Bkm1liPW.mjs} +1 -1
- package/dist/{magic-link-Bk-ueorR.mjs → magic-link-D9Em1aOR.mjs} +3 -3
- package/dist/{multi-session-DRrLKrg9.mjs → multi-session-Dno_8DxC.mjs} +5 -5
- package/dist/{oauth-proxy-D1sWh9B_.mjs → oauth-proxy-DW-zt8wv.mjs} +2 -2
- package/dist/oauth2/index.d.mts +5 -5
- package/dist/oauth2/index.mjs +12 -11
- package/dist/{one-tap-DMswkTEc.mjs → one-tap-CodeyQb8.mjs} +2 -2
- package/dist/{organization-BArHO_5v.mjs → organization-CkTKs7bx.mjs} +9 -9
- package/dist/{passkey-CcD4CnhM.mjs → passkey-JNQTz5a0.mjs} +5 -5
- package/dist/{phone-number-rHDIlh-2.mjs → phone-number-Dqz8aeyF.mjs} +4 -4
- package/dist/plugins/access/index.d.mts +2 -2
- package/dist/plugins/access/index.mjs +1 -1
- package/dist/plugins/admin/access/index.d.mts +2 -2
- package/dist/plugins/admin/access/index.mjs +2 -2
- package/dist/plugins/admin/index.d.mts +7 -8
- package/dist/plugins/admin/index.mjs +17 -16
- package/dist/plugins/anonymous/index.d.mts +6 -6
- package/dist/plugins/anonymous/index.mjs +13 -12
- package/dist/plugins/audit-log/client.d.mts +30 -0
- package/dist/plugins/audit-log/client.mjs +3 -0
- package/dist/plugins/audit-log/index.d.mts +29 -0
- package/dist/plugins/audit-log/index.mjs +20 -0
- package/dist/plugins/bearer/index.d.mts +1 -1
- package/dist/plugins/bearer/index.mjs +3 -3
- package/dist/plugins/captcha/index.d.mts +1 -1
- package/dist/plugins/captcha/index.mjs +1 -1
- package/dist/plugins/custom-session/index.d.mts +6 -6
- package/dist/plugins/custom-session/index.mjs +14 -13
- package/dist/plugins/device-authorization/index.d.mts +3 -3
- package/dist/plugins/device-authorization/index.mjs +13 -12
- package/dist/plugins/email-otp/index.d.mts +2 -2
- package/dist/plugins/email-otp/index.mjs +14 -13
- package/dist/plugins/generic-oauth/index.d.mts +6 -6
- package/dist/plugins/generic-oauth/index.mjs +13 -12
- package/dist/plugins/haveibeenpwned/index.d.mts +2 -2
- package/dist/plugins/haveibeenpwned/index.mjs +14 -13
- package/dist/plugins/index.d.mts +29 -139
- package/dist/plugins/index.mjs +47 -42
- package/dist/plugins/jwt/index.d.mts +6 -6
- package/dist/plugins/jwt/index.mjs +13 -12
- package/dist/plugins/magic-link/index.d.mts +1 -1
- package/dist/plugins/magic-link/index.mjs +13 -12
- package/dist/plugins/multi-session/index.d.mts +2 -2
- package/dist/plugins/multi-session/index.mjs +13 -12
- package/dist/plugins/oauth-proxy/index.d.mts +1 -1
- package/dist/plugins/oauth-proxy/index.mjs +13 -12
- package/dist/plugins/one-tap/index.d.mts +1 -1
- package/dist/plugins/one-tap/index.mjs +13 -12
- package/dist/plugins/one-time-token/index.d.mts +6 -6
- package/dist/plugins/one-time-token/index.mjs +46 -41
- package/dist/plugins/organization/access/index.d.mts +3 -3
- package/dist/plugins/organization/access/index.mjs +2 -2
- package/dist/plugins/organization/index.d.mts +8 -8
- package/dist/plugins/organization/index.mjs +17 -16
- package/dist/plugins/passkey/index.d.mts +6 -6
- package/dist/plugins/passkey/index.mjs +13 -12
- package/dist/plugins/phone-number/index.d.mts +6 -6
- package/dist/plugins/phone-number/index.mjs +13 -12
- package/dist/plugins/sentinel/client.d.mts +30 -0
- package/dist/plugins/sentinel/client.mjs +5 -0
- package/dist/plugins/sentinel/index.d.mts +29 -0
- package/dist/plugins/sentinel/index.mjs +22 -0
- package/dist/plugins/two-factor/index.d.mts +6 -6
- package/dist/plugins/two-factor/index.mjs +15 -14
- package/dist/plugins/username/index.d.mts +3 -3
- package/dist/plugins/username/index.mjs +13 -12
- package/dist/{plugins-hFZT3hmK.d.mts → plugins-Dy_FrD4Y.d.mts} +1 -1
- package/dist/{plugins-3jfNste3.mjs → plugins-yF8CFUDR.mjs} +11 -8
- package/dist/pow-OK01yPG3.mjs +61 -0
- package/dist/{proxy-CL9PZXJA.mjs → proxy-C_KXfOhk.mjs} +1 -1
- package/dist/random-32E3cU5o.mjs +7 -0
- package/dist/registry-CqG_3Qnx.mjs +194 -0
- package/dist/sentinel-C-D1IHJo.mjs +1395 -0
- package/dist/{session-Dgp133Yt.mjs → session-BB3oqApE.mjs} +2 -2
- 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 +1 -1
- package/dist/src/adapters/tests/number-id.d.ts +3 -3
- 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/client/plugins/index.d.ts +2 -0
- 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/client.d.ts +10 -0
- package/dist/src/plugins/audit-log/events.d.ts +90 -0
- package/dist/src/plugins/audit-log/index.d.ts +614 -0
- package/dist/src/plugins/audit-log/registry.d.ts +13 -0
- package/dist/src/plugins/audit-log/remote.d.ts +34 -0
- package/dist/src/plugins/audit-log/schema.d.ts +50 -0
- package/dist/src/plugins/audit-log/types.d.ts +117 -0
- package/dist/src/plugins/email-otp/index.d.ts +1 -1
- package/dist/src/plugins/haveibeenpwned/index.d.ts +6 -0
- package/dist/src/plugins/index.d.ts +2 -0
- package/dist/src/plugins/multi-session/index.d.ts +8 -8
- package/dist/src/plugins/organization/organization.d.ts +5 -5
- 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/actions.d.ts +64 -0
- package/dist/src/plugins/sentinel/client.d.ts +67 -0
- package/dist/src/plugins/sentinel/email.d.ts +22 -0
- package/dist/src/plugins/sentinel/geo.d.ts +22 -0
- package/dist/src/plugins/sentinel/index.d.ts +326 -0
- package/dist/src/plugins/sentinel/intel.d.ts +45 -0
- package/dist/src/plugins/sentinel/pow.d.ts +21 -0
- package/dist/src/plugins/sentinel/schema.d.ts +110 -0
- package/dist/src/plugins/sentinel/store.d.ts +37 -0
- package/dist/src/plugins/sentinel/types.d.ts +412 -0
- package/dist/src/test-utils/memory-secondary-storage.d.ts +16 -0
- package/dist/src/test-utils/password.d.ts +12 -0
- package/dist/src/test-utils/test-instance.d.ts +25 -25
- package/dist/test-utils/index.d.mts +1048 -1048
- package/dist/test-utils/index.mjs +53 -48
- package/dist/{two-factor-ClUXxom2.mjs → two-factor-CDVjxx4f.mjs} +6 -5
- package/dist/types/index.d.mts +5 -5
- package/dist/types/index.mjs +1 -1
- package/dist/{username-DiGklOGl.mjs → username-BHNvcvsY.mjs} +3 -3
- package/dist/{utils-SOMB4Px5.mjs → utils-B03WRaGi.mjs} +2 -1
- package/package.json +36 -3
- package/dist/index-CM-CFWwr.d.mts +0 -1919
- package/dist/index-DB7t8whN.d.mts +0 -1
- /package/dist/{access-BO2g7QVe.mjs → access-BM6jSA5j.mjs} +0 -0
- /package/dist/{bun-sqlite-dialect-CeNvMaZz.mjs → bun-sqlite-dialect-CDGusFqF.mjs} +0 -0
- /package/dist/{captcha-BqaMxlKC.mjs → captcha-DGP9lCRe.mjs} +0 -0
- /package/dist/{client-CygJhqeB.mjs → client-BuveH3MN.mjs} +0 -0
- /package/dist/{client-WiN43tAS.mjs → client-cBiytuOL.mjs} +0 -0
- /package/dist/{date-Cx2yCiC4.mjs → date-CMr04reD.mjs} +0 -0
- /package/dist/{esm-C-QicDNz.mjs → esm-BbvI87Z2.mjs} +0 -0
- /package/dist/{get-tables-BQP7YW9c.mjs → get-tables-CKvSyDST.mjs} +0 -0
- /package/dist/{helper-tmxW3BHj.d.mts → helper-BgOIGHsu.d.mts} +0 -0
- /package/dist/{misc-beA1w3XV.mjs → misc-fKH4d5XQ.mjs} +0 -0
- /package/dist/{node-sqlite-dialect-BcKxBQnm.mjs → node-sqlite-dialect-CIOjcg31.mjs} +0 -0
- /package/dist/{parser-DcrIEuXE.mjs → parser-D7EkhAjZ.mjs} +0 -0
- /package/dist/{password-sVC4nePO.mjs → password-5CdcAVaH.mjs} +0 -0
- /package/dist/{permission-DLYUF3cW.mjs → permission-CDDWgA_O.mjs} +0 -0
- /package/dist/{plugin-helper-4L-lzsjZ.mjs → plugin-helper-RJJBTOba.mjs} +0 -0
- /package/dist/{promise-8rrEHRXd.mjs → promise-D7Oo6_cY.mjs} +0 -0
- /package/dist/{types-Bjn15Uy6.mjs → types-DCPpFKUB.mjs} +0 -0
- /package/dist/{types-B1OL7hyf.d.mts → types-DNQ9XQrB.d.mts} +0 -0
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
export declare const schema: {
|
|
2
|
+
auditLog: {
|
|
3
|
+
fields: {
|
|
4
|
+
eventType: {
|
|
5
|
+
type: "string";
|
|
6
|
+
required: true;
|
|
7
|
+
};
|
|
8
|
+
userId: {
|
|
9
|
+
type: "string";
|
|
10
|
+
required: false;
|
|
11
|
+
};
|
|
12
|
+
identifier: {
|
|
13
|
+
type: "string";
|
|
14
|
+
required: false;
|
|
15
|
+
};
|
|
16
|
+
organizationId: {
|
|
17
|
+
type: "string";
|
|
18
|
+
required: false;
|
|
19
|
+
};
|
|
20
|
+
status: {
|
|
21
|
+
type: "string";
|
|
22
|
+
required: true;
|
|
23
|
+
};
|
|
24
|
+
path: {
|
|
25
|
+
type: "string";
|
|
26
|
+
required: false;
|
|
27
|
+
};
|
|
28
|
+
ipAddress: {
|
|
29
|
+
type: "string";
|
|
30
|
+
required: false;
|
|
31
|
+
};
|
|
32
|
+
userAgent: {
|
|
33
|
+
type: "string";
|
|
34
|
+
required: false;
|
|
35
|
+
};
|
|
36
|
+
visitorId: {
|
|
37
|
+
type: "string";
|
|
38
|
+
required: false;
|
|
39
|
+
};
|
|
40
|
+
eventData: {
|
|
41
|
+
type: "json";
|
|
42
|
+
required: false;
|
|
43
|
+
};
|
|
44
|
+
createdAt: {
|
|
45
|
+
type: "date";
|
|
46
|
+
required: true;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
};
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import type { InferOptionSchema } from "../../types/plugins";
|
|
2
|
+
import type { AuditEventType } from "./events";
|
|
3
|
+
import type { schema } from "./schema";
|
|
4
|
+
export interface AuditEvent {
|
|
5
|
+
id: string;
|
|
6
|
+
eventType: AuditEventType;
|
|
7
|
+
status: "success" | "failure" | "blocked" | "challenged";
|
|
8
|
+
/**
|
|
9
|
+
* The user who performed the action
|
|
10
|
+
*
|
|
11
|
+
* Null when the actor is unknown, e.g. a failed sign-in
|
|
12
|
+
*/
|
|
13
|
+
userId: string | null;
|
|
14
|
+
/**
|
|
15
|
+
* The actor's identity, such as an email, username or phone number
|
|
16
|
+
*/
|
|
17
|
+
identifier: string | null;
|
|
18
|
+
organizationId: string | null;
|
|
19
|
+
/**
|
|
20
|
+
* The endpoint that triggered the event
|
|
21
|
+
*/
|
|
22
|
+
path: string | null;
|
|
23
|
+
ipAddress: string | null;
|
|
24
|
+
userAgent: string | null;
|
|
25
|
+
visitorId: string | null;
|
|
26
|
+
/**
|
|
27
|
+
* Additional details about the event
|
|
28
|
+
*
|
|
29
|
+
* Never contains passwords, tokens or OTPs
|
|
30
|
+
*/
|
|
31
|
+
eventData: Record<string, unknown> | null;
|
|
32
|
+
createdAt: Date;
|
|
33
|
+
}
|
|
34
|
+
export interface AuditLogOptions {
|
|
35
|
+
/**
|
|
36
|
+
* Send events to the hosted backend
|
|
37
|
+
*
|
|
38
|
+
* Enabled when an API key and URL are configured, either here or through
|
|
39
|
+
* `PAYVO_INFRA_API_KEY` and `PAYVO_INFRA_API_URL`. Set to `false` to
|
|
40
|
+
* disable it.
|
|
41
|
+
*/
|
|
42
|
+
remote?: {
|
|
43
|
+
/**
|
|
44
|
+
* The hosted backend API URL
|
|
45
|
+
*
|
|
46
|
+
* @default process.env.PAYVO_INFRA_API_URL
|
|
47
|
+
*/
|
|
48
|
+
apiUrl?: string | undefined;
|
|
49
|
+
/**
|
|
50
|
+
* The hosted backend API key
|
|
51
|
+
*
|
|
52
|
+
* @default process.env.PAYVO_INFRA_API_KEY
|
|
53
|
+
*/
|
|
54
|
+
apiKey?: string | undefined;
|
|
55
|
+
/**
|
|
56
|
+
* Request timeout in milliseconds
|
|
57
|
+
*
|
|
58
|
+
* @default 3000
|
|
59
|
+
*/
|
|
60
|
+
timeout?: number | undefined;
|
|
61
|
+
/**
|
|
62
|
+
* Additional headers sent with every request
|
|
63
|
+
*/
|
|
64
|
+
headers?: Record<string, string> | undefined;
|
|
65
|
+
/**
|
|
66
|
+
* Configure how events are batched before they are sent
|
|
67
|
+
*/
|
|
68
|
+
batch?: {
|
|
69
|
+
/**
|
|
70
|
+
* Send buffered events once this many are queued
|
|
71
|
+
*
|
|
72
|
+
* @default 25
|
|
73
|
+
*/
|
|
74
|
+
maxSize?: number | undefined;
|
|
75
|
+
/**
|
|
76
|
+
* Send buffered events after this many milliseconds
|
|
77
|
+
*
|
|
78
|
+
* @default 2000
|
|
79
|
+
*/
|
|
80
|
+
flushIntervalMs?: number | undefined;
|
|
81
|
+
} | undefined;
|
|
82
|
+
} | false | undefined;
|
|
83
|
+
/**
|
|
84
|
+
* Write events to the `auditLog` table
|
|
85
|
+
*
|
|
86
|
+
* @default true
|
|
87
|
+
*/
|
|
88
|
+
database?: boolean | undefined;
|
|
89
|
+
/**
|
|
90
|
+
* Called for every recorded event, e.g. to publish it to a message broker
|
|
91
|
+
*
|
|
92
|
+
* Errors are logged and ignored
|
|
93
|
+
*/
|
|
94
|
+
onEvent?: ((event: AuditEvent) => void | Promise<void>) | undefined;
|
|
95
|
+
/**
|
|
96
|
+
* Event types that should not be recorded
|
|
97
|
+
*/
|
|
98
|
+
exclude?: AuditEventType[] | undefined;
|
|
99
|
+
/**
|
|
100
|
+
* Record `user_sign_in_failed` events for failed sign-in attempts, and
|
|
101
|
+
* `verification_failed` events for wrong one-time codes and tokens
|
|
102
|
+
*
|
|
103
|
+
* @default true
|
|
104
|
+
*/
|
|
105
|
+
trackFailedSignIns?: boolean | undefined;
|
|
106
|
+
/**
|
|
107
|
+
* Roles allowed to read every audit event through
|
|
108
|
+
* `/audit-log/get-all-audit-logs`
|
|
109
|
+
*
|
|
110
|
+
* @default ["admin"]
|
|
111
|
+
*/
|
|
112
|
+
adminRoles?: string[] | undefined;
|
|
113
|
+
/**
|
|
114
|
+
* Custom schema for the audit log plugin
|
|
115
|
+
*/
|
|
116
|
+
schema?: InferOptionSchema<typeof schema> | undefined;
|
|
117
|
+
}
|
|
@@ -70,7 +70,7 @@ export declare const emailOTP: (options: EmailOTPOptions) => {
|
|
|
70
70
|
options: {
|
|
71
71
|
emailVerification: {
|
|
72
72
|
sendVerificationEmail(data: {
|
|
73
|
-
user: import("packages/core/dist/index-
|
|
73
|
+
user: import("packages/core/dist/index-Df0KhQRf.mjs")._t;
|
|
74
74
|
url: string;
|
|
75
75
|
token: string;
|
|
76
76
|
}, request: Request | undefined): Promise<void>;
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Returns how many times a password appears in known breaches, using the
|
|
3
|
+
* k-anonymity range API: only the first 5 characters of the password's SHA-1
|
|
4
|
+
* hash are sent. Throws if the API can't be reached.
|
|
5
|
+
*/
|
|
6
|
+
export declare function getPasswordBreachCount(password: string): Promise<number>;
|
|
1
7
|
export interface HaveIBeenPwnedOptions {
|
|
2
8
|
customPasswordCompromisedMessage?: string | undefined;
|
|
3
9
|
}
|
|
@@ -7,6 +7,7 @@ export * from "../utils/hide-metadata";
|
|
|
7
7
|
export * from "./admin";
|
|
8
8
|
export * from "./anonymous";
|
|
9
9
|
export * from "./api-key";
|
|
10
|
+
export * from "./audit-log";
|
|
10
11
|
export * from "./bearer";
|
|
11
12
|
export * from "./captcha";
|
|
12
13
|
export * from "./custom-session";
|
|
@@ -23,6 +24,7 @@ export * from "./one-tap";
|
|
|
23
24
|
export * from "./one-time-token";
|
|
24
25
|
export * from "./organization";
|
|
25
26
|
export * from "./phone-number";
|
|
27
|
+
export * from "./sentinel";
|
|
26
28
|
export * from "./two-factor";
|
|
27
29
|
export * from "./passkey";
|
|
28
30
|
export * from "./username";
|
|
@@ -49,12 +49,12 @@ export declare const multiSession: (options?: MultiSessionConfig | undefined) =>
|
|
|
49
49
|
}): Promise<[AsResponse] extends [true] ? Response : [ReturnHeaders] extends [true] ? {
|
|
50
50
|
headers: Headers;
|
|
51
51
|
response: {
|
|
52
|
-
session: import("packages/core/dist/index-
|
|
53
|
-
user: import("packages/core/dist/index-
|
|
52
|
+
session: import("packages/core/dist/index-Df0KhQRf.mjs").bt;
|
|
53
|
+
user: import("packages/core/dist/index-Df0KhQRf.mjs")._t;
|
|
54
54
|
}[];
|
|
55
55
|
} : {
|
|
56
|
-
session: import("packages/core/dist/index-
|
|
57
|
-
user: import("packages/core/dist/index-
|
|
56
|
+
session: import("packages/core/dist/index-Df0KhQRf.mjs").bt;
|
|
57
|
+
user: import("packages/core/dist/index-Df0KhQRf.mjs")._t;
|
|
58
58
|
}[]>;
|
|
59
59
|
options: {
|
|
60
60
|
method: "GET";
|
|
@@ -105,12 +105,12 @@ export declare const multiSession: (options?: MultiSessionConfig | undefined) =>
|
|
|
105
105
|
}): Promise<[AsResponse] extends [true] ? Response : [ReturnHeaders] extends [true] ? {
|
|
106
106
|
headers: Headers;
|
|
107
107
|
response: {
|
|
108
|
-
session: import("packages/core/dist/index-
|
|
109
|
-
user: import("packages/core/dist/index-
|
|
108
|
+
session: import("packages/core/dist/index-Df0KhQRf.mjs").bt & Record<string, any>;
|
|
109
|
+
user: import("packages/core/dist/index-Df0KhQRf.mjs")._t & Record<string, any>;
|
|
110
110
|
};
|
|
111
111
|
} : {
|
|
112
|
-
session: import("packages/core/dist/index-
|
|
113
|
-
user: import("packages/core/dist/index-
|
|
112
|
+
session: import("packages/core/dist/index-Df0KhQRf.mjs").bt & Record<string, any>;
|
|
113
|
+
user: import("packages/core/dist/index-Df0KhQRf.mjs")._t & Record<string, any>;
|
|
114
114
|
}>;
|
|
115
115
|
options: {
|
|
116
116
|
method: "POST";
|
|
@@ -322,9 +322,12 @@ export declare function organization<O extends OrganizationOptions & {
|
|
|
322
322
|
teams: {
|
|
323
323
|
enabled: true;
|
|
324
324
|
};
|
|
325
|
+
dynamicAccessControl: {
|
|
326
|
+
enabled: true;
|
|
327
|
+
};
|
|
325
328
|
}>(options?: O | undefined): {
|
|
326
329
|
id: "organization";
|
|
327
|
-
endpoints: OrganizationEndpoints<O> & TeamEndpoints<O>;
|
|
330
|
+
endpoints: OrganizationEndpoints<O> & TeamEndpoints<O> & DynamicAccessControlEndpoints<O>;
|
|
328
331
|
schema: OrganizationSchema<O>;
|
|
329
332
|
$Infer: {
|
|
330
333
|
Organization: InferOrganization<O>;
|
|
@@ -345,12 +348,9 @@ export declare function organization<O extends OrganizationOptions & {
|
|
|
345
348
|
teams: {
|
|
346
349
|
enabled: true;
|
|
347
350
|
};
|
|
348
|
-
dynamicAccessControl: {
|
|
349
|
-
enabled: true;
|
|
350
|
-
};
|
|
351
351
|
}>(options?: O | undefined): {
|
|
352
352
|
id: "organization";
|
|
353
|
-
endpoints: OrganizationEndpoints<O> & TeamEndpoints<O
|
|
353
|
+
endpoints: OrganizationEndpoints<O> & TeamEndpoints<O>;
|
|
354
354
|
schema: OrganizationSchema<O>;
|
|
355
355
|
$Infer: {
|
|
356
356
|
Organization: InferOrganization<O>;
|
|
@@ -55,7 +55,7 @@ export declare const createOrgRole: <O extends OrganizationOptions>(options: O)
|
|
|
55
55
|
}>)[];
|
|
56
56
|
}>) => Promise<{
|
|
57
57
|
session: {
|
|
58
|
-
session: import("packages/core/dist/index-
|
|
58
|
+
session: import("packages/core/dist/index-Df0KhQRf.mjs").bt & {
|
|
59
59
|
activeTeamId?: string | undefined;
|
|
60
60
|
activeOrganizationId?: string | undefined;
|
|
61
61
|
};
|
|
@@ -114,7 +114,7 @@ export declare const createOrgRole: <O extends OrganizationOptions>(options: O)
|
|
|
114
114
|
}>)[];
|
|
115
115
|
}>) => Promise<{
|
|
116
116
|
session: {
|
|
117
|
-
session: import("packages/core/dist/index-
|
|
117
|
+
session: import("packages/core/dist/index-Df0KhQRf.mjs").bt & {
|
|
118
118
|
activeTeamId?: string | undefined;
|
|
119
119
|
activeOrganizationId?: string | undefined;
|
|
120
120
|
};
|
|
@@ -199,7 +199,7 @@ export declare const createOrgRole: <O extends OrganizationOptions>(options: O)
|
|
|
199
199
|
}>)[];
|
|
200
200
|
}>) => Promise<{
|
|
201
201
|
session: {
|
|
202
|
-
session: import("packages/core/dist/index-
|
|
202
|
+
session: import("packages/core/dist/index-Df0KhQRf.mjs").bt & {
|
|
203
203
|
activeTeamId?: string | undefined;
|
|
204
204
|
activeOrganizationId?: string | undefined;
|
|
205
205
|
};
|
|
@@ -310,7 +310,7 @@ export declare const createOrgRole: <O extends OrganizationOptions>(options: O)
|
|
|
310
310
|
}>)[];
|
|
311
311
|
}>) => Promise<{
|
|
312
312
|
session: {
|
|
313
|
-
session: import("packages/core/dist/index-
|
|
313
|
+
session: import("packages/core/dist/index-Df0KhQRf.mjs").bt & {
|
|
314
314
|
activeTeamId?: string | undefined;
|
|
315
315
|
activeOrganizationId?: string | undefined;
|
|
316
316
|
};
|
|
@@ -391,7 +391,7 @@ export declare const deleteOrgRole: <O extends OrganizationOptions>(options: O)
|
|
|
391
391
|
}>)[];
|
|
392
392
|
}>) => Promise<{
|
|
393
393
|
session: {
|
|
394
|
-
session: import("packages/core/dist/index-
|
|
394
|
+
session: import("packages/core/dist/index-Df0KhQRf.mjs").bt & {
|
|
395
395
|
activeTeamId?: string | undefined;
|
|
396
396
|
activeOrganizationId?: string | undefined;
|
|
397
397
|
};
|
|
@@ -481,7 +481,7 @@ export declare const listOrgRoles: <O extends OrganizationOptions>(options: O) =
|
|
|
481
481
|
}>)[];
|
|
482
482
|
}>) => Promise<{
|
|
483
483
|
session: {
|
|
484
|
-
session: import("packages/core/dist/index-
|
|
484
|
+
session: import("packages/core/dist/index-Df0KhQRf.mjs").bt & {
|
|
485
485
|
activeTeamId?: string | undefined;
|
|
486
486
|
activeOrganizationId?: string | undefined;
|
|
487
487
|
};
|
|
@@ -567,7 +567,7 @@ export declare const getOrgRole: <O extends OrganizationOptions>(options: O) =>
|
|
|
567
567
|
}>)[];
|
|
568
568
|
}>) => Promise<{
|
|
569
569
|
session: {
|
|
570
|
-
session: import("packages/core/dist/index-
|
|
570
|
+
session: import("packages/core/dist/index-Df0KhQRf.mjs").bt & {
|
|
571
571
|
activeTeamId?: string | undefined;
|
|
572
572
|
activeOrganizationId?: string | undefined;
|
|
573
573
|
};
|
|
@@ -686,7 +686,7 @@ export declare const updateOrgRole: <O extends OrganizationOptions>(options: O)
|
|
|
686
686
|
}>)[];
|
|
687
687
|
}>) => Promise<{
|
|
688
688
|
session: {
|
|
689
|
-
session: import("packages/core/dist/index-
|
|
689
|
+
session: import("packages/core/dist/index-Df0KhQRf.mjs").bt & {
|
|
690
690
|
activeTeamId?: string | undefined;
|
|
691
691
|
activeOrganizationId?: string | undefined;
|
|
692
692
|
};
|
|
@@ -10,12 +10,12 @@ export declare const createInvitation: <O extends OrganizationOptions>(option: O
|
|
|
10
10
|
roles: typeof import("..").defaultRoles & {
|
|
11
11
|
[key: string]: import("../../access").Role<{}>;
|
|
12
12
|
};
|
|
13
|
-
getSession: (context: import("packages/core/dist/index-
|
|
14
|
-
session: import("packages/core/dist/index-
|
|
13
|
+
getSession: (context: import("packages/core/dist/index-Df0KhQRf.mjs").f) => Promise<{
|
|
14
|
+
session: import("packages/core/dist/index-Df0KhQRf.mjs").bt & {
|
|
15
15
|
activeTeamId?: string | undefined;
|
|
16
16
|
activeOrganizationId?: string | undefined;
|
|
17
17
|
};
|
|
18
|
-
user: import("packages/core/dist/index-
|
|
18
|
+
user: import("packages/core/dist/index-Df0KhQRf.mjs")._t;
|
|
19
19
|
}>;
|
|
20
20
|
}>) | ((inputContext: import("better-call").MiddlewareInputContext<{
|
|
21
21
|
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
@@ -43,11 +43,11 @@ export declare const createInvitation: <O extends OrganizationOptions>(option: O
|
|
|
43
43
|
}>)[];
|
|
44
44
|
}>) => Promise<{
|
|
45
45
|
session: {
|
|
46
|
-
session: import("packages/core/dist/index-
|
|
46
|
+
session: import("packages/core/dist/index-Df0KhQRf.mjs").bt & {
|
|
47
47
|
activeTeamId?: string | undefined;
|
|
48
48
|
activeOrganizationId?: string | undefined;
|
|
49
49
|
};
|
|
50
|
-
user: import("packages/core/dist/index-
|
|
50
|
+
user: import("packages/core/dist/index-Df0KhQRf.mjs")._t;
|
|
51
51
|
};
|
|
52
52
|
}>))[];
|
|
53
53
|
body: z.ZodObject<{
|
|
@@ -143,12 +143,12 @@ export declare const createInvitation: <O extends OrganizationOptions>(option: O
|
|
|
143
143
|
roles: typeof import("..").defaultRoles & {
|
|
144
144
|
[key: string]: import("../../access").Role<{}>;
|
|
145
145
|
};
|
|
146
|
-
getSession: (context: import("packages/core/dist/index-
|
|
147
|
-
session: import("packages/core/dist/index-
|
|
146
|
+
getSession: (context: import("packages/core/dist/index-Df0KhQRf.mjs").f) => Promise<{
|
|
147
|
+
session: import("packages/core/dist/index-Df0KhQRf.mjs").bt & {
|
|
148
148
|
activeTeamId?: string | undefined;
|
|
149
149
|
activeOrganizationId?: string | undefined;
|
|
150
150
|
};
|
|
151
|
-
user: import("packages/core/dist/index-
|
|
151
|
+
user: import("packages/core/dist/index-Df0KhQRf.mjs")._t;
|
|
152
152
|
}>;
|
|
153
153
|
}>) | ((inputContext: import("better-call").MiddlewareInputContext<{
|
|
154
154
|
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
@@ -176,11 +176,11 @@ export declare const createInvitation: <O extends OrganizationOptions>(option: O
|
|
|
176
176
|
}>)[];
|
|
177
177
|
}>) => Promise<{
|
|
178
178
|
session: {
|
|
179
|
-
session: import("packages/core/dist/index-
|
|
179
|
+
session: import("packages/core/dist/index-Df0KhQRf.mjs").bt & {
|
|
180
180
|
activeTeamId?: string | undefined;
|
|
181
181
|
activeOrganizationId?: string | undefined;
|
|
182
182
|
};
|
|
183
|
-
user: import("packages/core/dist/index-
|
|
183
|
+
user: import("packages/core/dist/index-Df0KhQRf.mjs")._t;
|
|
184
184
|
};
|
|
185
185
|
}>))[];
|
|
186
186
|
body: z.ZodObject<{
|
|
@@ -324,12 +324,12 @@ export declare const createInvitation: <O extends OrganizationOptions>(option: O
|
|
|
324
324
|
roles: typeof import("..").defaultRoles & {
|
|
325
325
|
[key: string]: import("../../access").Role<{}>;
|
|
326
326
|
};
|
|
327
|
-
getSession: (context: import("packages/core/dist/index-
|
|
328
|
-
session: import("packages/core/dist/index-
|
|
327
|
+
getSession: (context: import("packages/core/dist/index-Df0KhQRf.mjs").f) => Promise<{
|
|
328
|
+
session: import("packages/core/dist/index-Df0KhQRf.mjs").bt & {
|
|
329
329
|
activeTeamId?: string | undefined;
|
|
330
330
|
activeOrganizationId?: string | undefined;
|
|
331
331
|
};
|
|
332
|
-
user: import("packages/core/dist/index-
|
|
332
|
+
user: import("packages/core/dist/index-Df0KhQRf.mjs")._t;
|
|
333
333
|
}>;
|
|
334
334
|
}>) | ((inputContext: import("better-call").MiddlewareInputContext<{
|
|
335
335
|
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
@@ -357,11 +357,11 @@ export declare const createInvitation: <O extends OrganizationOptions>(option: O
|
|
|
357
357
|
}>)[];
|
|
358
358
|
}>) => Promise<{
|
|
359
359
|
session: {
|
|
360
|
-
session: import("packages/core/dist/index-
|
|
360
|
+
session: import("packages/core/dist/index-Df0KhQRf.mjs").bt & {
|
|
361
361
|
activeTeamId?: string | undefined;
|
|
362
362
|
activeOrganizationId?: string | undefined;
|
|
363
363
|
};
|
|
364
|
-
user: import("packages/core/dist/index-
|
|
364
|
+
user: import("packages/core/dist/index-Df0KhQRf.mjs")._t;
|
|
365
365
|
};
|
|
366
366
|
}>))[];
|
|
367
367
|
body: z.ZodObject<{
|
|
@@ -551,12 +551,12 @@ export declare const createInvitation: <O extends OrganizationOptions>(option: O
|
|
|
551
551
|
roles: typeof import("..").defaultRoles & {
|
|
552
552
|
[key: string]: import("../../access").Role<{}>;
|
|
553
553
|
};
|
|
554
|
-
getSession: (context: import("packages/core/dist/index-
|
|
555
|
-
session: import("packages/core/dist/index-
|
|
554
|
+
getSession: (context: import("packages/core/dist/index-Df0KhQRf.mjs").f) => Promise<{
|
|
555
|
+
session: import("packages/core/dist/index-Df0KhQRf.mjs").bt & {
|
|
556
556
|
activeTeamId?: string | undefined;
|
|
557
557
|
activeOrganizationId?: string | undefined;
|
|
558
558
|
};
|
|
559
|
-
user: import("packages/core/dist/index-
|
|
559
|
+
user: import("packages/core/dist/index-Df0KhQRf.mjs")._t;
|
|
560
560
|
}>;
|
|
561
561
|
}>) | ((inputContext: import("better-call").MiddlewareInputContext<{
|
|
562
562
|
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
@@ -584,11 +584,11 @@ export declare const createInvitation: <O extends OrganizationOptions>(option: O
|
|
|
584
584
|
}>)[];
|
|
585
585
|
}>) => Promise<{
|
|
586
586
|
session: {
|
|
587
|
-
session: import("packages/core/dist/index-
|
|
587
|
+
session: import("packages/core/dist/index-Df0KhQRf.mjs").bt & {
|
|
588
588
|
activeTeamId?: string | undefined;
|
|
589
589
|
activeOrganizationId?: string | undefined;
|
|
590
590
|
};
|
|
591
|
-
user: import("packages/core/dist/index-
|
|
591
|
+
user: import("packages/core/dist/index-Df0KhQRf.mjs")._t;
|
|
592
592
|
};
|
|
593
593
|
}>))[];
|
|
594
594
|
body: z.ZodObject<{
|
|
@@ -777,12 +777,12 @@ export declare const acceptInvitation: <O extends OrganizationOptions>(options:
|
|
|
777
777
|
roles: typeof import("..").defaultRoles & {
|
|
778
778
|
[key: string]: import("../../access").Role<{}>;
|
|
779
779
|
};
|
|
780
|
-
getSession: (context: import("packages/core/dist/index-
|
|
781
|
-
session: import("packages/core/dist/index-
|
|
780
|
+
getSession: (context: import("packages/core/dist/index-Df0KhQRf.mjs").f) => Promise<{
|
|
781
|
+
session: import("packages/core/dist/index-Df0KhQRf.mjs").bt & {
|
|
782
782
|
activeTeamId?: string | undefined;
|
|
783
783
|
activeOrganizationId?: string | undefined;
|
|
784
784
|
};
|
|
785
|
-
user: import("packages/core/dist/index-
|
|
785
|
+
user: import("packages/core/dist/index-Df0KhQRf.mjs")._t;
|
|
786
786
|
}>;
|
|
787
787
|
}>) | ((inputContext: import("better-call").MiddlewareInputContext<{
|
|
788
788
|
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
@@ -810,11 +810,11 @@ export declare const acceptInvitation: <O extends OrganizationOptions>(options:
|
|
|
810
810
|
}>)[];
|
|
811
811
|
}>) => Promise<{
|
|
812
812
|
session: {
|
|
813
|
-
session: import("packages/core/dist/index-
|
|
813
|
+
session: import("packages/core/dist/index-Df0KhQRf.mjs").bt & {
|
|
814
814
|
activeTeamId?: string | undefined;
|
|
815
815
|
activeOrganizationId?: string | undefined;
|
|
816
816
|
};
|
|
817
|
-
user: import("packages/core/dist/index-
|
|
817
|
+
user: import("packages/core/dist/index-Df0KhQRf.mjs")._t;
|
|
818
818
|
};
|
|
819
819
|
}>))[];
|
|
820
820
|
metadata: {
|
|
@@ -908,12 +908,12 @@ export declare const rejectInvitation: <O extends OrganizationOptions>(options:
|
|
|
908
908
|
roles: typeof import("..").defaultRoles & {
|
|
909
909
|
[key: string]: import("../../access").Role<{}>;
|
|
910
910
|
};
|
|
911
|
-
getSession: (context: import("packages/core/dist/index-
|
|
912
|
-
session: import("packages/core/dist/index-
|
|
911
|
+
getSession: (context: import("packages/core/dist/index-Df0KhQRf.mjs").f) => Promise<{
|
|
912
|
+
session: import("packages/core/dist/index-Df0KhQRf.mjs").bt & {
|
|
913
913
|
activeTeamId?: string | undefined;
|
|
914
914
|
activeOrganizationId?: string | undefined;
|
|
915
915
|
};
|
|
916
|
-
user: import("packages/core/dist/index-
|
|
916
|
+
user: import("packages/core/dist/index-Df0KhQRf.mjs")._t;
|
|
917
917
|
}>;
|
|
918
918
|
}>) | ((inputContext: import("better-call").MiddlewareInputContext<{
|
|
919
919
|
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
@@ -941,11 +941,11 @@ export declare const rejectInvitation: <O extends OrganizationOptions>(options:
|
|
|
941
941
|
}>)[];
|
|
942
942
|
}>) => Promise<{
|
|
943
943
|
session: {
|
|
944
|
-
session: import("packages/core/dist/index-
|
|
944
|
+
session: import("packages/core/dist/index-Df0KhQRf.mjs").bt & {
|
|
945
945
|
activeTeamId?: string | undefined;
|
|
946
946
|
activeOrganizationId?: string | undefined;
|
|
947
947
|
};
|
|
948
|
-
user: import("packages/core/dist/index-
|
|
948
|
+
user: import("packages/core/dist/index-Df0KhQRf.mjs")._t;
|
|
949
949
|
};
|
|
950
950
|
}>))[];
|
|
951
951
|
metadata: {
|
|
@@ -1057,12 +1057,12 @@ export declare const cancelInvitation: <O extends OrganizationOptions>(options:
|
|
|
1057
1057
|
roles: typeof import("..").defaultRoles & {
|
|
1058
1058
|
[key: string]: import("../../access").Role<{}>;
|
|
1059
1059
|
};
|
|
1060
|
-
getSession: (context: import("packages/core/dist/index-
|
|
1061
|
-
session: import("packages/core/dist/index-
|
|
1060
|
+
getSession: (context: import("packages/core/dist/index-Df0KhQRf.mjs").f) => Promise<{
|
|
1061
|
+
session: import("packages/core/dist/index-Df0KhQRf.mjs").bt & {
|
|
1062
1062
|
activeTeamId?: string | undefined;
|
|
1063
1063
|
activeOrganizationId?: string | undefined;
|
|
1064
1064
|
};
|
|
1065
|
-
user: import("packages/core/dist/index-
|
|
1065
|
+
user: import("packages/core/dist/index-Df0KhQRf.mjs")._t;
|
|
1066
1066
|
}>;
|
|
1067
1067
|
}>) | ((inputContext: import("better-call").MiddlewareInputContext<{
|
|
1068
1068
|
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
@@ -1090,11 +1090,11 @@ export declare const cancelInvitation: <O extends OrganizationOptions>(options:
|
|
|
1090
1090
|
}>)[];
|
|
1091
1091
|
}>) => Promise<{
|
|
1092
1092
|
session: {
|
|
1093
|
-
session: import("packages/core/dist/index-
|
|
1093
|
+
session: import("packages/core/dist/index-Df0KhQRf.mjs").bt & {
|
|
1094
1094
|
activeTeamId?: string | undefined;
|
|
1095
1095
|
activeOrganizationId?: string | undefined;
|
|
1096
1096
|
};
|
|
1097
|
-
user: import("packages/core/dist/index-
|
|
1097
|
+
user: import("packages/core/dist/index-Df0KhQRf.mjs")._t;
|
|
1098
1098
|
};
|
|
1099
1099
|
}>))[];
|
|
1100
1100
|
openapi: {
|
|
@@ -1234,12 +1234,12 @@ export declare const getInvitation: <O extends OrganizationOptions>(options: O)
|
|
|
1234
1234
|
roles: typeof import("..").defaultRoles & {
|
|
1235
1235
|
[key: string]: import("../../access").Role<{}>;
|
|
1236
1236
|
};
|
|
1237
|
-
getSession: (context: import("packages/core/dist/index-
|
|
1238
|
-
session: import("packages/core/dist/index-
|
|
1237
|
+
getSession: (context: import("packages/core/dist/index-Df0KhQRf.mjs").f) => Promise<{
|
|
1238
|
+
session: import("packages/core/dist/index-Df0KhQRf.mjs").bt & {
|
|
1239
1239
|
activeTeamId?: string | undefined;
|
|
1240
1240
|
activeOrganizationId?: string | undefined;
|
|
1241
1241
|
};
|
|
1242
|
-
user: import("packages/core/dist/index-
|
|
1242
|
+
user: import("packages/core/dist/index-Df0KhQRf.mjs")._t;
|
|
1243
1243
|
}>;
|
|
1244
1244
|
}>)[];
|
|
1245
1245
|
requireHeaders: true;
|
|
@@ -1377,12 +1377,12 @@ export declare const listInvitations: <O extends OrganizationOptions>(options: O
|
|
|
1377
1377
|
roles: typeof import("..").defaultRoles & {
|
|
1378
1378
|
[key: string]: import("../../access").Role<{}>;
|
|
1379
1379
|
};
|
|
1380
|
-
getSession: (context: import("packages/core/dist/index-
|
|
1381
|
-
session: import("packages/core/dist/index-
|
|
1380
|
+
getSession: (context: import("packages/core/dist/index-Df0KhQRf.mjs").f) => Promise<{
|
|
1381
|
+
session: import("packages/core/dist/index-Df0KhQRf.mjs").bt & {
|
|
1382
1382
|
activeTeamId?: string | undefined;
|
|
1383
1383
|
activeOrganizationId?: string | undefined;
|
|
1384
1384
|
};
|
|
1385
|
-
user: import("packages/core/dist/index-
|
|
1385
|
+
user: import("packages/core/dist/index-Df0KhQRf.mjs")._t;
|
|
1386
1386
|
}>;
|
|
1387
1387
|
}>) | ((inputContext: import("better-call").MiddlewareInputContext<{
|
|
1388
1388
|
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
@@ -1410,11 +1410,11 @@ export declare const listInvitations: <O extends OrganizationOptions>(options: O
|
|
|
1410
1410
|
}>)[];
|
|
1411
1411
|
}>) => Promise<{
|
|
1412
1412
|
session: {
|
|
1413
|
-
session: import("packages/core/dist/index-
|
|
1413
|
+
session: import("packages/core/dist/index-Df0KhQRf.mjs").bt & {
|
|
1414
1414
|
activeTeamId?: string | undefined;
|
|
1415
1415
|
activeOrganizationId?: string | undefined;
|
|
1416
1416
|
};
|
|
1417
|
-
user: import("packages/core/dist/index-
|
|
1417
|
+
user: import("packages/core/dist/index-Df0KhQRf.mjs")._t;
|
|
1418
1418
|
};
|
|
1419
1419
|
}>))[];
|
|
1420
1420
|
query: z.ZodOptional<z.ZodObject<{
|
|
@@ -1504,12 +1504,12 @@ export declare const listUserInvitations: <O extends OrganizationOptions>(option
|
|
|
1504
1504
|
roles: typeof import("..").defaultRoles & {
|
|
1505
1505
|
[key: string]: import("../../access").Role<{}>;
|
|
1506
1506
|
};
|
|
1507
|
-
getSession: (context: import("packages/core/dist/index-
|
|
1508
|
-
session: import("packages/core/dist/index-
|
|
1507
|
+
getSession: (context: import("packages/core/dist/index-Df0KhQRf.mjs").f) => Promise<{
|
|
1508
|
+
session: import("packages/core/dist/index-Df0KhQRf.mjs").bt & {
|
|
1509
1509
|
activeTeamId?: string | undefined;
|
|
1510
1510
|
activeOrganizationId?: string | undefined;
|
|
1511
1511
|
};
|
|
1512
|
-
user: import("packages/core/dist/index-
|
|
1512
|
+
user: import("packages/core/dist/index-Df0KhQRf.mjs")._t;
|
|
1513
1513
|
}>;
|
|
1514
1514
|
}>)[];
|
|
1515
1515
|
query: z.ZodOptional<z.ZodObject<{
|