better-auth 1.2.6-beta.7 → 1.2.7-beta.1
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.cjs +186 -249
- package/dist/adapters/drizzle-adapter/index.d.cts +11 -49
- package/dist/adapters/drizzle-adapter/index.d.mts +11 -49
- package/dist/adapters/drizzle-adapter/index.d.ts +11 -49
- package/dist/adapters/drizzle-adapter/index.mjs +186 -249
- package/dist/adapters/index.cjs +26 -0
- package/dist/adapters/index.d.cts +17 -0
- package/dist/adapters/index.d.mts +17 -0
- package/dist/adapters/index.d.ts +17 -0
- package/dist/adapters/index.mjs +20 -0
- package/dist/adapters/kysely-adapter/index.cjs +7 -7
- package/dist/adapters/kysely-adapter/index.d.cts +17 -49
- package/dist/adapters/kysely-adapter/index.d.mts +17 -49
- package/dist/adapters/kysely-adapter/index.d.ts +17 -49
- package/dist/adapters/kysely-adapter/index.mjs +8 -8
- package/dist/adapters/memory-adapter/index.cjs +7 -8
- package/dist/adapters/memory-adapter/index.d.cts +9 -49
- package/dist/adapters/memory-adapter/index.d.mts +9 -49
- package/dist/adapters/memory-adapter/index.d.ts +9 -49
- package/dist/adapters/memory-adapter/index.mjs +8 -9
- package/dist/adapters/mongodb-adapter/index.cjs +2 -2
- package/dist/adapters/mongodb-adapter/index.d.cts +4 -4
- package/dist/adapters/mongodb-adapter/index.d.mts +4 -4
- package/dist/adapters/mongodb-adapter/index.d.ts +4 -4
- package/dist/adapters/mongodb-adapter/index.mjs +3 -3
- package/dist/adapters/prisma-adapter/index.cjs +130 -203
- package/dist/adapters/prisma-adapter/index.d.cts +17 -49
- package/dist/adapters/prisma-adapter/index.d.mts +17 -49
- package/dist/adapters/prisma-adapter/index.d.ts +17 -49
- package/dist/adapters/prisma-adapter/index.mjs +131 -204
- package/dist/adapters/test.cjs +710 -377
- package/dist/adapters/test.d.cts +64 -5
- package/dist/adapters/test.d.mts +64 -5
- package/dist/adapters/test.d.ts +64 -5
- package/dist/adapters/test.mjs +712 -380
- package/dist/api/index.cjs +61 -25
- package/dist/api/index.d.cts +3 -3
- package/dist/api/index.d.mts +3 -3
- package/dist/api/index.d.ts +3 -3
- package/dist/api/index.mjs +63 -27
- package/dist/client/index.d.cts +3 -3
- package/dist/client/index.d.mts +3 -3
- package/dist/client/index.d.ts +3 -3
- package/dist/client/plugins/index.cjs +13 -15
- package/dist/client/plugins/index.d.cts +80 -19
- package/dist/client/plugins/index.d.mts +80 -19
- package/dist/client/plugins/index.d.ts +80 -19
- package/dist/client/plugins/index.mjs +13 -16
- package/dist/client/react/index.cjs +4 -4
- package/dist/client/react/index.d.cts +3 -3
- package/dist/client/react/index.d.mts +3 -3
- package/dist/client/react/index.d.ts +3 -3
- package/dist/client/solid/index.d.cts +3 -3
- package/dist/client/solid/index.d.mts +3 -3
- package/dist/client/solid/index.d.ts +3 -3
- package/dist/client/svelte/index.d.cts +3 -3
- package/dist/client/svelte/index.d.mts +3 -3
- package/dist/client/svelte/index.d.ts +3 -3
- package/dist/client/vue/index.d.cts +3 -3
- package/dist/client/vue/index.d.mts +3 -3
- package/dist/client/vue/index.d.ts +3 -3
- package/dist/cookies/index.cjs +13 -2
- package/dist/cookies/index.d.cts +3 -3
- package/dist/cookies/index.d.mts +3 -3
- package/dist/cookies/index.d.ts +3 -3
- package/dist/cookies/index.mjs +13 -2
- package/dist/db/index.cjs +6 -5
- package/dist/db/index.d.cts +4 -4
- package/dist/db/index.d.mts +4 -4
- package/dist/db/index.d.ts +4 -4
- package/dist/db/index.mjs +7 -6
- package/dist/index.cjs +11 -7
- package/dist/index.d.cts +4 -4
- package/dist/index.d.mts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.mjs +14 -10
- package/dist/integrations/next-js.cjs +4 -5
- package/dist/integrations/next-js.d.cts +3 -3
- package/dist/integrations/next-js.d.mts +3 -3
- package/dist/integrations/next-js.d.ts +3 -3
- package/dist/integrations/next-js.mjs +5 -6
- package/dist/integrations/node.d.cts +3 -3
- package/dist/integrations/node.d.mts +3 -3
- package/dist/integrations/node.d.ts +3 -3
- package/dist/integrations/react-start.cjs +5 -6
- package/dist/integrations/react-start.d.cts +3 -3
- package/dist/integrations/react-start.d.mts +3 -3
- package/dist/integrations/react-start.d.ts +3 -3
- package/dist/integrations/react-start.mjs +6 -7
- package/dist/integrations/svelte-kit.d.cts +3 -3
- package/dist/integrations/svelte-kit.d.mts +3 -3
- package/dist/integrations/svelte-kit.d.ts +3 -3
- package/dist/oauth2/index.d.cts +5 -5
- package/dist/oauth2/index.d.mts +5 -5
- package/dist/oauth2/index.d.ts +5 -5
- package/dist/plugins/access/index.d.cts +1 -1
- package/dist/plugins/access/index.d.mts +1 -1
- package/dist/plugins/access/index.d.ts +1 -1
- package/dist/plugins/admin/access/index.d.cts +1 -1
- package/dist/plugins/admin/access/index.d.mts +1 -1
- package/dist/plugins/admin/access/index.d.ts +1 -1
- package/dist/plugins/admin/index.cjs +4 -4
- package/dist/plugins/admin/index.d.cts +74 -14
- package/dist/plugins/admin/index.d.mts +74 -14
- package/dist/plugins/admin/index.d.ts +74 -14
- package/dist/plugins/admin/index.mjs +5 -5
- package/dist/plugins/anonymous/index.cjs +4 -5
- package/dist/plugins/anonymous/index.d.cts +3 -3
- package/dist/plugins/anonymous/index.d.mts +3 -3
- package/dist/plugins/anonymous/index.d.ts +3 -3
- package/dist/plugins/anonymous/index.mjs +5 -6
- package/dist/plugins/bearer/index.cjs +2 -2
- package/dist/plugins/bearer/index.d.cts +3 -3
- package/dist/plugins/bearer/index.d.mts +3 -3
- package/dist/plugins/bearer/index.d.ts +3 -3
- package/dist/plugins/bearer/index.mjs +3 -3
- package/dist/plugins/captcha/index.cjs +110 -45
- package/dist/plugins/captcha/index.d.cts +26 -6
- package/dist/plugins/captcha/index.d.mts +26 -6
- package/dist/plugins/captcha/index.d.ts +26 -6
- package/dist/plugins/captcha/index.mjs +110 -45
- package/dist/plugins/custom-session/index.cjs +24 -5
- package/dist/plugins/custom-session/index.d.cts +25 -6
- package/dist/plugins/custom-session/index.d.mts +25 -6
- package/dist/plugins/custom-session/index.d.ts +25 -6
- package/dist/plugins/custom-session/index.mjs +25 -6
- package/dist/plugins/email-otp/index.cjs +96 -30
- package/dist/plugins/email-otp/index.d.cts +33 -10
- package/dist/plugins/email-otp/index.d.mts +33 -10
- package/dist/plugins/email-otp/index.d.ts +33 -10
- package/dist/plugins/email-otp/index.mjs +97 -31
- package/dist/plugins/generic-oauth/index.cjs +81 -20
- package/dist/plugins/generic-oauth/index.d.cts +46 -3
- package/dist/plugins/generic-oauth/index.d.mts +46 -3
- package/dist/plugins/generic-oauth/index.d.ts +46 -3
- package/dist/plugins/generic-oauth/index.mjs +82 -21
- package/dist/plugins/haveibeenpwned/index.cjs +98 -0
- package/dist/plugins/haveibeenpwned/index.d.cts +36 -0
- package/dist/plugins/haveibeenpwned/index.d.mts +36 -0
- package/dist/plugins/haveibeenpwned/index.d.ts +36 -0
- package/dist/plugins/haveibeenpwned/index.mjs +96 -0
- package/dist/plugins/index.cjs +583 -19
- package/dist/plugins/index.d.cts +7 -5
- package/dist/plugins/index.d.mts +7 -5
- package/dist/plugins/index.d.ts +7 -5
- package/dist/plugins/index.mjs +583 -21
- package/dist/plugins/jwt/index.cjs +45 -21
- package/dist/plugins/jwt/index.d.cts +52 -6
- package/dist/plugins/jwt/index.d.mts +52 -6
- package/dist/plugins/jwt/index.d.ts +52 -6
- package/dist/plugins/jwt/index.mjs +46 -22
- package/dist/plugins/magic-link/index.cjs +3 -3
- package/dist/plugins/magic-link/index.mjs +4 -4
- package/dist/plugins/multi-session/index.cjs +3 -3
- package/dist/plugins/multi-session/index.d.cts +3 -3
- package/dist/plugins/multi-session/index.d.mts +3 -3
- package/dist/plugins/multi-session/index.d.ts +3 -3
- package/dist/plugins/multi-session/index.mjs +4 -4
- package/dist/plugins/oauth-proxy/index.cjs +4 -4
- package/dist/plugins/oauth-proxy/index.d.cts +3 -3
- package/dist/plugins/oauth-proxy/index.d.mts +3 -3
- package/dist/plugins/oauth-proxy/index.d.ts +3 -3
- package/dist/plugins/oauth-proxy/index.mjs +5 -5
- package/dist/plugins/oidc-provider/index.cjs +227 -8
- package/dist/plugins/oidc-provider/index.d.cts +215 -3
- package/dist/plugins/oidc-provider/index.d.mts +215 -3
- package/dist/plugins/oidc-provider/index.d.ts +215 -3
- package/dist/plugins/oidc-provider/index.mjs +228 -9
- package/dist/plugins/one-tap/index.cjs +5 -5
- package/dist/plugins/one-tap/index.mjs +6 -6
- package/dist/plugins/one-time-token/index.cjs +119 -0
- package/dist/plugins/one-time-token/index.d.cts +134 -0
- package/dist/plugins/one-time-token/index.d.mts +134 -0
- package/dist/plugins/one-time-token/index.d.ts +134 -0
- package/dist/plugins/one-time-token/index.mjs +117 -0
- package/dist/plugins/open-api/index.cjs +3 -3
- package/dist/plugins/open-api/index.d.cts +3 -3
- package/dist/plugins/open-api/index.d.mts +3 -3
- package/dist/plugins/open-api/index.d.ts +3 -3
- package/dist/plugins/open-api/index.mjs +4 -4
- package/dist/plugins/organization/access/index.d.cts +1 -1
- package/dist/plugins/organization/access/index.d.mts +1 -1
- package/dist/plugins/organization/access/index.d.ts +1 -1
- package/dist/plugins/organization/index.cjs +4 -4
- package/dist/plugins/organization/index.d.cts +708 -55
- package/dist/plugins/organization/index.d.mts +708 -55
- package/dist/plugins/organization/index.d.ts +708 -55
- package/dist/plugins/organization/index.mjs +5 -5
- package/dist/plugins/passkey/index.cjs +82 -8
- package/dist/plugins/passkey/index.d.cts +72 -3
- package/dist/plugins/passkey/index.d.mts +72 -3
- package/dist/plugins/passkey/index.d.ts +72 -3
- package/dist/plugins/passkey/index.mjs +83 -9
- package/dist/plugins/phone-number/index.cjs +194 -26
- package/dist/plugins/phone-number/index.d.cts +132 -8
- package/dist/plugins/phone-number/index.d.mts +132 -8
- package/dist/plugins/phone-number/index.d.ts +132 -8
- package/dist/plugins/phone-number/index.mjs +195 -27
- package/dist/plugins/sso/index.cjs +190 -7
- package/dist/plugins/sso/index.d.cts +181 -15
- package/dist/plugins/sso/index.d.mts +181 -15
- package/dist/plugins/sso/index.d.ts +181 -15
- package/dist/plugins/sso/index.mjs +191 -8
- package/dist/plugins/two-factor/index.cjs +443 -92
- package/dist/plugins/two-factor/index.d.cts +230 -396
- package/dist/plugins/two-factor/index.d.mts +230 -396
- package/dist/plugins/two-factor/index.d.ts +230 -396
- package/dist/plugins/two-factor/index.mjs +431 -80
- package/dist/plugins/username/index.cjs +34 -31
- package/dist/plugins/username/index.d.cts +15 -12
- package/dist/plugins/username/index.d.mts +15 -12
- package/dist/plugins/username/index.d.ts +15 -12
- package/dist/plugins/username/index.mjs +35 -32
- package/dist/shared/better-auth.1DR6suCQ.mjs +307 -0
- package/dist/shared/{better-auth.BSsp73pg.cjs → better-auth.B7cZ2juS.cjs} +15 -14
- package/dist/shared/{better-auth.bKwabe3I.d.mts → better-auth.B88xucNq.d.mts} +529 -39
- package/dist/shared/{better-auth.CApEjVDP.cjs → better-auth.BW8BpneG.cjs} +4 -1
- package/dist/shared/{better-auth.BiQsvaIP.d.cts → better-auth.BcU1Kjyq.d.cts} +2051 -518
- package/dist/shared/better-auth.BfG24BjZ.cjs +118 -0
- package/dist/shared/{better-auth.A3TjrU8G.mjs → better-auth.Bk5IMdhM.mjs} +32 -12
- package/dist/shared/{better-auth.D9VnBkRI.mjs → better-auth.Bm9HxIzE.mjs} +47 -24
- package/dist/shared/{better-auth.BRf6Iynu.d.ts → better-auth.Bwc-6kOr.d.ts} +1 -1
- package/dist/shared/{better-auth.D-oLmHIj.d.mts → better-auth.CA2hFK4N.d.ts} +2051 -518
- package/dist/shared/{better-auth.Dmhe30iW.d.mts → better-auth.CGukGrxT.d.cts} +1 -1
- package/dist/shared/{better-auth.CsSpq0zL.cjs → better-auth.CHUzBidy.cjs} +46 -23
- package/dist/shared/{better-auth.DWRligF8.d.cts → better-auth.CT9J6rD-.d.cts} +539 -7
- package/dist/shared/better-auth.CVCo5Z2T.cjs +310 -0
- package/dist/shared/{better-auth.D4jH-sJA.mjs → better-auth.CWwVo_61.mjs} +458 -118
- package/dist/shared/{better-auth.Bi8FQwDD.d.cts → better-auth.CYegVoq1.d.cts} +1 -1
- package/dist/shared/{better-auth.Bi8FQwDD.d.mts → better-auth.CYegVoq1.d.mts} +1 -1
- package/dist/shared/{better-auth.Bi8FQwDD.d.ts → better-auth.CYegVoq1.d.ts} +1 -1
- package/dist/shared/{better-auth.CepcSj5H.mjs → better-auth.Cc72UxUH.mjs} +1 -2
- package/dist/shared/{better-auth.BWp5dztg.d.ts → better-auth.CmN4mlPh.d.ts} +539 -7
- package/dist/shared/{better-auth.DH3YjMQH.mjs → better-auth.Cqykj82J.mjs} +1 -1
- package/dist/shared/{better-auth.wcdMj2cT.d.mts → better-auth.DIt2e3lu.d.mts} +539 -7
- package/dist/shared/{better-auth.BANAxdkL.d.ts → better-auth.DNTAFSt1.d.ts} +529 -39
- package/dist/shared/{better-auth.DU2QNVc_.d.ts → better-auth.DQ7OSJbI.d.mts} +2051 -518
- package/dist/shared/{better-auth.DLTzKoOS.cjs → better-auth.DSVbLSt7.cjs} +4 -1
- package/dist/shared/{better-auth.B2Fw1vhH.d.cts → better-auth.DTiSPWEk.d.cts} +529 -39
- package/dist/shared/better-auth.DURsStt9.mjs +116 -0
- package/dist/shared/{better-auth.BIjcZ_vt.cjs → better-auth.DYoLD99C.cjs} +31 -11
- package/dist/shared/{better-auth.CV1L7TPV.cjs → better-auth.D_ZIX1O8.cjs} +317 -47
- package/dist/shared/{better-auth.C5H9XEzZ.cjs → better-auth.DcWKCjjf.cjs} +1 -2
- package/dist/shared/{better-auth.BDYXUcLv.cjs → better-auth.Dg0siV5C.cjs} +457 -117
- package/dist/shared/better-auth.DjryM8pE.cjs +760 -0
- package/dist/shared/{better-auth.DPBQN9Fs.mjs → better-auth.Dn_Ms1Uf.mjs} +318 -48
- package/dist/shared/{better-auth.DiG4KL2x.mjs → better-auth.OuYYTHC7.mjs} +4 -1
- package/dist/shared/{better-auth.DtC8i3pf.d.cts → better-auth.S1jimRbX.d.mts} +1 -1
- package/dist/shared/better-auth.SPmq4a4z.d.mts +344 -0
- package/dist/shared/{better-auth.cOCrlspr.mjs → better-auth.bkwPl2G4.mjs} +4 -1
- package/dist/shared/better-auth.cp2rC2iM.d.ts +344 -0
- package/dist/shared/better-auth.eVy4DZvP.d.cts +344 -0
- package/dist/shared/{better-auth.BrOpzmqo.mjs → better-auth.iKoUsdFE.mjs} +15 -14
- package/dist/shared/better-auth.rSYJCd3o.mjs +758 -0
- package/dist/social-providers/index.cjs +75 -3
- package/dist/social-providers/index.d.cts +2 -2
- package/dist/social-providers/index.d.mts +2 -2
- package/dist/social-providers/index.d.ts +2 -2
- package/dist/social-providers/index.mjs +77 -6
- package/dist/types/index.d.cts +4 -4
- package/dist/types/index.d.mts +4 -4
- package/dist/types/index.d.ts +4 -4
- package/package.json +42 -5
- package/dist/chunks/server.cjs +0 -905
- package/dist/chunks/server.mjs +0 -895
- package/dist/shared/better-auth.BcoSd9tC.mjs +0 -10
- package/dist/shared/better-auth.BnRFp-t0.mjs +0 -405
- package/dist/shared/better-auth.C1-vpKly.cjs +0 -12
- package/dist/shared/better-auth.ClTSOgiD.mjs +0 -140
- package/dist/shared/better-auth.DC8JQbiE.mjs +0 -173
- package/dist/shared/better-auth.DWHWPllD.cjs +0 -175
- package/dist/shared/better-auth.DqLjzBlO.cjs +0 -408
- package/dist/shared/better-auth.m575EIBC.cjs +0 -144
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as zod from 'zod';
|
|
2
2
|
import * as better_call from 'better-call';
|
|
3
|
-
import { G as GenericEndpointContext, I as InferOptionSchema, H as HookEndpointContext,
|
|
3
|
+
import { G as GenericEndpointContext, I as InferOptionSchema, H as HookEndpointContext, l as AuthContext } from './better-auth.DQ7OSJbI.mjs';
|
|
4
4
|
import { Statements } from '../plugins/access/index.mjs';
|
|
5
5
|
|
|
6
6
|
declare const apiKeySchema: ({ timeWindow, rateLimitMax, }: {
|
|
@@ -550,13 +550,13 @@ declare const apiKey: (options?: ApiKeyOptions) => {
|
|
|
550
550
|
userId?: string | undefined;
|
|
551
551
|
prefix?: string | undefined;
|
|
552
552
|
expiresIn?: number | null | undefined;
|
|
553
|
+
permissions?: Record<string, string[]> | undefined;
|
|
553
554
|
rateLimitMax?: number | undefined;
|
|
554
555
|
refillInterval?: number | undefined;
|
|
555
556
|
refillAmount?: number | undefined;
|
|
556
557
|
rateLimitEnabled?: boolean | undefined;
|
|
557
558
|
rateLimitTimeWindow?: number | undefined;
|
|
558
559
|
remaining?: number | null | undefined;
|
|
559
|
-
permissions?: Record<string, string[]> | undefined;
|
|
560
560
|
};
|
|
561
561
|
} & {
|
|
562
562
|
method?: "POST" | undefined;
|
|
@@ -646,26 +646,155 @@ declare const apiKey: (options?: ApiKeyOptions) => {
|
|
|
646
646
|
name?: string | undefined;
|
|
647
647
|
userId?: string | undefined;
|
|
648
648
|
prefix?: string | undefined;
|
|
649
|
+
permissions?: Record<string, string[]> | undefined;
|
|
649
650
|
rateLimitMax?: number | undefined;
|
|
650
651
|
refillInterval?: number | undefined;
|
|
651
652
|
refillAmount?: number | undefined;
|
|
652
653
|
rateLimitEnabled?: boolean | undefined;
|
|
653
654
|
rateLimitTimeWindow?: number | undefined;
|
|
654
|
-
permissions?: Record<string, string[]> | undefined;
|
|
655
655
|
}, {
|
|
656
656
|
metadata?: any;
|
|
657
657
|
name?: string | undefined;
|
|
658
658
|
userId?: string | undefined;
|
|
659
659
|
prefix?: string | undefined;
|
|
660
660
|
expiresIn?: number | null | undefined;
|
|
661
|
+
permissions?: Record<string, string[]> | undefined;
|
|
661
662
|
rateLimitMax?: number | undefined;
|
|
662
663
|
refillInterval?: number | undefined;
|
|
663
664
|
refillAmount?: number | undefined;
|
|
664
665
|
rateLimitEnabled?: boolean | undefined;
|
|
665
666
|
rateLimitTimeWindow?: number | undefined;
|
|
666
667
|
remaining?: number | null | undefined;
|
|
667
|
-
permissions?: Record<string, string[]> | undefined;
|
|
668
668
|
}>;
|
|
669
|
+
metadata: {
|
|
670
|
+
openapi: {
|
|
671
|
+
description: string;
|
|
672
|
+
responses: {
|
|
673
|
+
"200": {
|
|
674
|
+
description: string;
|
|
675
|
+
content: {
|
|
676
|
+
"application/json": {
|
|
677
|
+
schema: {
|
|
678
|
+
type: "object";
|
|
679
|
+
properties: {
|
|
680
|
+
id: {
|
|
681
|
+
type: string;
|
|
682
|
+
description: string;
|
|
683
|
+
};
|
|
684
|
+
createdAt: {
|
|
685
|
+
type: string;
|
|
686
|
+
format: string;
|
|
687
|
+
description: string;
|
|
688
|
+
};
|
|
689
|
+
updatedAt: {
|
|
690
|
+
type: string;
|
|
691
|
+
format: string;
|
|
692
|
+
description: string;
|
|
693
|
+
};
|
|
694
|
+
name: {
|
|
695
|
+
type: string;
|
|
696
|
+
nullable: boolean;
|
|
697
|
+
description: string;
|
|
698
|
+
};
|
|
699
|
+
prefix: {
|
|
700
|
+
type: string;
|
|
701
|
+
nullable: boolean;
|
|
702
|
+
description: string;
|
|
703
|
+
};
|
|
704
|
+
start: {
|
|
705
|
+
type: string;
|
|
706
|
+
nullable: boolean;
|
|
707
|
+
description: string;
|
|
708
|
+
};
|
|
709
|
+
key: {
|
|
710
|
+
type: string;
|
|
711
|
+
description: string;
|
|
712
|
+
};
|
|
713
|
+
enabled: {
|
|
714
|
+
type: string;
|
|
715
|
+
description: string;
|
|
716
|
+
};
|
|
717
|
+
expiresAt: {
|
|
718
|
+
type: string;
|
|
719
|
+
format: string;
|
|
720
|
+
nullable: boolean;
|
|
721
|
+
description: string;
|
|
722
|
+
};
|
|
723
|
+
userId: {
|
|
724
|
+
type: string;
|
|
725
|
+
description: string;
|
|
726
|
+
};
|
|
727
|
+
lastRefillAt: {
|
|
728
|
+
type: string;
|
|
729
|
+
format: string;
|
|
730
|
+
nullable: boolean;
|
|
731
|
+
description: string;
|
|
732
|
+
};
|
|
733
|
+
lastRequest: {
|
|
734
|
+
type: string;
|
|
735
|
+
format: string;
|
|
736
|
+
nullable: boolean;
|
|
737
|
+
description: string;
|
|
738
|
+
};
|
|
739
|
+
metadata: {
|
|
740
|
+
type: string;
|
|
741
|
+
nullable: boolean;
|
|
742
|
+
additionalProperties: boolean;
|
|
743
|
+
description: string;
|
|
744
|
+
};
|
|
745
|
+
rateLimitMax: {
|
|
746
|
+
type: string;
|
|
747
|
+
nullable: boolean;
|
|
748
|
+
description: string;
|
|
749
|
+
};
|
|
750
|
+
rateLimitTimeWindow: {
|
|
751
|
+
type: string;
|
|
752
|
+
nullable: boolean;
|
|
753
|
+
description: string;
|
|
754
|
+
};
|
|
755
|
+
remaining: {
|
|
756
|
+
type: string;
|
|
757
|
+
nullable: boolean;
|
|
758
|
+
description: string;
|
|
759
|
+
};
|
|
760
|
+
refillAmount: {
|
|
761
|
+
type: string;
|
|
762
|
+
nullable: boolean;
|
|
763
|
+
description: string;
|
|
764
|
+
};
|
|
765
|
+
refillInterval: {
|
|
766
|
+
type: string;
|
|
767
|
+
nullable: boolean;
|
|
768
|
+
description: string;
|
|
769
|
+
};
|
|
770
|
+
rateLimitEnabled: {
|
|
771
|
+
type: string;
|
|
772
|
+
description: string;
|
|
773
|
+
};
|
|
774
|
+
requestCount: {
|
|
775
|
+
type: string;
|
|
776
|
+
description: string;
|
|
777
|
+
};
|
|
778
|
+
permissions: {
|
|
779
|
+
type: string;
|
|
780
|
+
nullable: boolean;
|
|
781
|
+
additionalProperties: {
|
|
782
|
+
type: string;
|
|
783
|
+
items: {
|
|
784
|
+
type: string;
|
|
785
|
+
};
|
|
786
|
+
};
|
|
787
|
+
description: string;
|
|
788
|
+
};
|
|
789
|
+
};
|
|
790
|
+
required: string[];
|
|
791
|
+
};
|
|
792
|
+
};
|
|
793
|
+
};
|
|
794
|
+
};
|
|
795
|
+
};
|
|
796
|
+
};
|
|
797
|
+
};
|
|
669
798
|
} & {
|
|
670
799
|
use: any[];
|
|
671
800
|
};
|
|
@@ -908,6 +1037,126 @@ declare const apiKey: (options?: ApiKeyOptions) => {
|
|
|
908
1037
|
};
|
|
909
1038
|
};
|
|
910
1039
|
}>)[];
|
|
1040
|
+
metadata: {
|
|
1041
|
+
openapi: {
|
|
1042
|
+
description: string;
|
|
1043
|
+
responses: {
|
|
1044
|
+
"200": {
|
|
1045
|
+
description: string;
|
|
1046
|
+
content: {
|
|
1047
|
+
"application/json": {
|
|
1048
|
+
schema: {
|
|
1049
|
+
type: "object";
|
|
1050
|
+
properties: {
|
|
1051
|
+
id: {
|
|
1052
|
+
type: string;
|
|
1053
|
+
description: string;
|
|
1054
|
+
};
|
|
1055
|
+
name: {
|
|
1056
|
+
type: string;
|
|
1057
|
+
nullable: boolean;
|
|
1058
|
+
description: string;
|
|
1059
|
+
};
|
|
1060
|
+
start: {
|
|
1061
|
+
type: string;
|
|
1062
|
+
nullable: boolean;
|
|
1063
|
+
description: string;
|
|
1064
|
+
};
|
|
1065
|
+
prefix: {
|
|
1066
|
+
type: string;
|
|
1067
|
+
nullable: boolean;
|
|
1068
|
+
description: string;
|
|
1069
|
+
};
|
|
1070
|
+
userId: {
|
|
1071
|
+
type: string;
|
|
1072
|
+
description: string;
|
|
1073
|
+
};
|
|
1074
|
+
refillInterval: {
|
|
1075
|
+
type: string;
|
|
1076
|
+
nullable: boolean;
|
|
1077
|
+
description: string;
|
|
1078
|
+
};
|
|
1079
|
+
refillAmount: {
|
|
1080
|
+
type: string;
|
|
1081
|
+
nullable: boolean;
|
|
1082
|
+
description: string;
|
|
1083
|
+
};
|
|
1084
|
+
lastRefillAt: {
|
|
1085
|
+
type: string;
|
|
1086
|
+
format: string;
|
|
1087
|
+
nullable: boolean;
|
|
1088
|
+
description: string;
|
|
1089
|
+
};
|
|
1090
|
+
enabled: {
|
|
1091
|
+
type: string;
|
|
1092
|
+
description: string;
|
|
1093
|
+
default: boolean;
|
|
1094
|
+
};
|
|
1095
|
+
rateLimitEnabled: {
|
|
1096
|
+
type: string;
|
|
1097
|
+
description: string;
|
|
1098
|
+
};
|
|
1099
|
+
rateLimitTimeWindow: {
|
|
1100
|
+
type: string;
|
|
1101
|
+
nullable: boolean;
|
|
1102
|
+
description: string;
|
|
1103
|
+
};
|
|
1104
|
+
rateLimitMax: {
|
|
1105
|
+
type: string;
|
|
1106
|
+
nullable: boolean;
|
|
1107
|
+
description: string;
|
|
1108
|
+
};
|
|
1109
|
+
requestCount: {
|
|
1110
|
+
type: string;
|
|
1111
|
+
description: string;
|
|
1112
|
+
};
|
|
1113
|
+
remaining: {
|
|
1114
|
+
type: string;
|
|
1115
|
+
nullable: boolean;
|
|
1116
|
+
description: string;
|
|
1117
|
+
};
|
|
1118
|
+
lastRequest: {
|
|
1119
|
+
type: string;
|
|
1120
|
+
format: string;
|
|
1121
|
+
nullable: boolean;
|
|
1122
|
+
description: string;
|
|
1123
|
+
};
|
|
1124
|
+
expiresAt: {
|
|
1125
|
+
type: string;
|
|
1126
|
+
format: string;
|
|
1127
|
+
nullable: boolean;
|
|
1128
|
+
description: string;
|
|
1129
|
+
};
|
|
1130
|
+
createdAt: {
|
|
1131
|
+
type: string;
|
|
1132
|
+
format: string;
|
|
1133
|
+
description: string;
|
|
1134
|
+
};
|
|
1135
|
+
updatedAt: {
|
|
1136
|
+
type: string;
|
|
1137
|
+
format: string;
|
|
1138
|
+
description: string;
|
|
1139
|
+
};
|
|
1140
|
+
metadata: {
|
|
1141
|
+
type: string;
|
|
1142
|
+
nullable: boolean;
|
|
1143
|
+
additionalProperties: boolean;
|
|
1144
|
+
description: string;
|
|
1145
|
+
};
|
|
1146
|
+
permissions: {
|
|
1147
|
+
type: string;
|
|
1148
|
+
nullable: boolean;
|
|
1149
|
+
description: string;
|
|
1150
|
+
};
|
|
1151
|
+
};
|
|
1152
|
+
required: string[];
|
|
1153
|
+
};
|
|
1154
|
+
};
|
|
1155
|
+
};
|
|
1156
|
+
};
|
|
1157
|
+
};
|
|
1158
|
+
};
|
|
1159
|
+
};
|
|
911
1160
|
} & {
|
|
912
1161
|
use: any[];
|
|
913
1162
|
};
|
|
@@ -922,13 +1171,13 @@ declare const apiKey: (options?: ApiKeyOptions) => {
|
|
|
922
1171
|
userId?: string | undefined;
|
|
923
1172
|
enabled?: boolean | undefined;
|
|
924
1173
|
expiresIn?: number | null | undefined;
|
|
1174
|
+
permissions?: Record<string, string[]> | null | undefined;
|
|
925
1175
|
rateLimitMax?: number | undefined;
|
|
926
1176
|
refillInterval?: number | undefined;
|
|
927
1177
|
refillAmount?: number | undefined;
|
|
928
1178
|
rateLimitEnabled?: boolean | undefined;
|
|
929
1179
|
rateLimitTimeWindow?: number | undefined;
|
|
930
1180
|
remaining?: number | undefined;
|
|
931
|
-
permissions?: Record<string, string[]> | null | undefined;
|
|
932
1181
|
};
|
|
933
1182
|
} & {
|
|
934
1183
|
method?: "POST" | undefined;
|
|
@@ -1021,13 +1270,13 @@ declare const apiKey: (options?: ApiKeyOptions) => {
|
|
|
1021
1270
|
userId?: string | undefined;
|
|
1022
1271
|
enabled?: boolean | undefined;
|
|
1023
1272
|
expiresIn?: number | null | undefined;
|
|
1273
|
+
permissions?: Record<string, string[]> | null | undefined;
|
|
1024
1274
|
rateLimitMax?: number | undefined;
|
|
1025
1275
|
refillInterval?: number | undefined;
|
|
1026
1276
|
refillAmount?: number | undefined;
|
|
1027
1277
|
rateLimitEnabled?: boolean | undefined;
|
|
1028
1278
|
rateLimitTimeWindow?: number | undefined;
|
|
1029
1279
|
remaining?: number | undefined;
|
|
1030
|
-
permissions?: Record<string, string[]> | null | undefined;
|
|
1031
1280
|
}, {
|
|
1032
1281
|
keyId: string;
|
|
1033
1282
|
metadata?: any;
|
|
@@ -1035,14 +1284,134 @@ declare const apiKey: (options?: ApiKeyOptions) => {
|
|
|
1035
1284
|
userId?: string | undefined;
|
|
1036
1285
|
enabled?: boolean | undefined;
|
|
1037
1286
|
expiresIn?: number | null | undefined;
|
|
1287
|
+
permissions?: Record<string, string[]> | null | undefined;
|
|
1038
1288
|
rateLimitMax?: number | undefined;
|
|
1039
1289
|
refillInterval?: number | undefined;
|
|
1040
1290
|
refillAmount?: number | undefined;
|
|
1041
1291
|
rateLimitEnabled?: boolean | undefined;
|
|
1042
1292
|
rateLimitTimeWindow?: number | undefined;
|
|
1043
1293
|
remaining?: number | undefined;
|
|
1044
|
-
permissions?: Record<string, string[]> | null | undefined;
|
|
1045
1294
|
}>;
|
|
1295
|
+
metadata: {
|
|
1296
|
+
openapi: {
|
|
1297
|
+
description: string;
|
|
1298
|
+
responses: {
|
|
1299
|
+
"200": {
|
|
1300
|
+
description: string;
|
|
1301
|
+
content: {
|
|
1302
|
+
"application/json": {
|
|
1303
|
+
schema: {
|
|
1304
|
+
type: "object";
|
|
1305
|
+
properties: {
|
|
1306
|
+
id: {
|
|
1307
|
+
type: string;
|
|
1308
|
+
description: string;
|
|
1309
|
+
};
|
|
1310
|
+
name: {
|
|
1311
|
+
type: string;
|
|
1312
|
+
nullable: boolean;
|
|
1313
|
+
description: string;
|
|
1314
|
+
};
|
|
1315
|
+
start: {
|
|
1316
|
+
type: string;
|
|
1317
|
+
nullable: boolean;
|
|
1318
|
+
description: string;
|
|
1319
|
+
};
|
|
1320
|
+
prefix: {
|
|
1321
|
+
type: string;
|
|
1322
|
+
nullable: boolean;
|
|
1323
|
+
description: string;
|
|
1324
|
+
};
|
|
1325
|
+
userId: {
|
|
1326
|
+
type: string;
|
|
1327
|
+
description: string;
|
|
1328
|
+
};
|
|
1329
|
+
refillInterval: {
|
|
1330
|
+
type: string;
|
|
1331
|
+
nullable: boolean;
|
|
1332
|
+
description: string;
|
|
1333
|
+
};
|
|
1334
|
+
refillAmount: {
|
|
1335
|
+
type: string;
|
|
1336
|
+
nullable: boolean;
|
|
1337
|
+
description: string;
|
|
1338
|
+
};
|
|
1339
|
+
lastRefillAt: {
|
|
1340
|
+
type: string;
|
|
1341
|
+
format: string;
|
|
1342
|
+
nullable: boolean;
|
|
1343
|
+
description: string;
|
|
1344
|
+
};
|
|
1345
|
+
enabled: {
|
|
1346
|
+
type: string;
|
|
1347
|
+
description: string;
|
|
1348
|
+
default: boolean;
|
|
1349
|
+
};
|
|
1350
|
+
rateLimitEnabled: {
|
|
1351
|
+
type: string;
|
|
1352
|
+
description: string;
|
|
1353
|
+
};
|
|
1354
|
+
rateLimitTimeWindow: {
|
|
1355
|
+
type: string;
|
|
1356
|
+
nullable: boolean;
|
|
1357
|
+
description: string;
|
|
1358
|
+
};
|
|
1359
|
+
rateLimitMax: {
|
|
1360
|
+
type: string;
|
|
1361
|
+
nullable: boolean;
|
|
1362
|
+
description: string;
|
|
1363
|
+
};
|
|
1364
|
+
requestCount: {
|
|
1365
|
+
type: string;
|
|
1366
|
+
description: string;
|
|
1367
|
+
};
|
|
1368
|
+
remaining: {
|
|
1369
|
+
type: string;
|
|
1370
|
+
nullable: boolean;
|
|
1371
|
+
description: string;
|
|
1372
|
+
};
|
|
1373
|
+
lastRequest: {
|
|
1374
|
+
type: string;
|
|
1375
|
+
format: string;
|
|
1376
|
+
nullable: boolean;
|
|
1377
|
+
description: string;
|
|
1378
|
+
};
|
|
1379
|
+
expiresAt: {
|
|
1380
|
+
type: string;
|
|
1381
|
+
format: string;
|
|
1382
|
+
nullable: boolean;
|
|
1383
|
+
description: string;
|
|
1384
|
+
};
|
|
1385
|
+
createdAt: {
|
|
1386
|
+
type: string;
|
|
1387
|
+
format: string;
|
|
1388
|
+
description: string;
|
|
1389
|
+
};
|
|
1390
|
+
updatedAt: {
|
|
1391
|
+
type: string;
|
|
1392
|
+
format: string;
|
|
1393
|
+
description: string;
|
|
1394
|
+
};
|
|
1395
|
+
metadata: {
|
|
1396
|
+
type: string;
|
|
1397
|
+
nullable: boolean;
|
|
1398
|
+
additionalProperties: boolean;
|
|
1399
|
+
description: string;
|
|
1400
|
+
};
|
|
1401
|
+
permissions: {
|
|
1402
|
+
type: string;
|
|
1403
|
+
nullable: boolean;
|
|
1404
|
+
description: string;
|
|
1405
|
+
};
|
|
1406
|
+
};
|
|
1407
|
+
required: string[];
|
|
1408
|
+
};
|
|
1409
|
+
};
|
|
1410
|
+
};
|
|
1411
|
+
};
|
|
1412
|
+
};
|
|
1413
|
+
};
|
|
1414
|
+
};
|
|
1046
1415
|
} & {
|
|
1047
1416
|
use: any[];
|
|
1048
1417
|
};
|
|
@@ -1111,6 +1480,46 @@ declare const apiKey: (options?: ApiKeyOptions) => {
|
|
|
1111
1480
|
};
|
|
1112
1481
|
};
|
|
1113
1482
|
}>)[];
|
|
1483
|
+
metadata: {
|
|
1484
|
+
openapi: {
|
|
1485
|
+
description: string;
|
|
1486
|
+
requestBody: {
|
|
1487
|
+
content: {
|
|
1488
|
+
"application/json": {
|
|
1489
|
+
schema: {
|
|
1490
|
+
type: "object";
|
|
1491
|
+
properties: {
|
|
1492
|
+
keyId: {
|
|
1493
|
+
type: string;
|
|
1494
|
+
description: string;
|
|
1495
|
+
};
|
|
1496
|
+
};
|
|
1497
|
+
required: string[];
|
|
1498
|
+
};
|
|
1499
|
+
};
|
|
1500
|
+
};
|
|
1501
|
+
};
|
|
1502
|
+
responses: {
|
|
1503
|
+
"200": {
|
|
1504
|
+
description: string;
|
|
1505
|
+
content: {
|
|
1506
|
+
"application/json": {
|
|
1507
|
+
schema: {
|
|
1508
|
+
type: "object";
|
|
1509
|
+
properties: {
|
|
1510
|
+
success: {
|
|
1511
|
+
type: string;
|
|
1512
|
+
description: string;
|
|
1513
|
+
};
|
|
1514
|
+
};
|
|
1515
|
+
required: string[];
|
|
1516
|
+
};
|
|
1517
|
+
};
|
|
1518
|
+
};
|
|
1519
|
+
};
|
|
1520
|
+
};
|
|
1521
|
+
};
|
|
1522
|
+
};
|
|
1114
1523
|
} & {
|
|
1115
1524
|
use: any[];
|
|
1116
1525
|
};
|
|
@@ -1212,6 +1621,129 @@ declare const apiKey: (options?: ApiKeyOptions) => {
|
|
|
1212
1621
|
};
|
|
1213
1622
|
};
|
|
1214
1623
|
}>)[];
|
|
1624
|
+
metadata: {
|
|
1625
|
+
openapi: {
|
|
1626
|
+
description: string;
|
|
1627
|
+
responses: {
|
|
1628
|
+
"200": {
|
|
1629
|
+
description: string;
|
|
1630
|
+
content: {
|
|
1631
|
+
"application/json": {
|
|
1632
|
+
schema: {
|
|
1633
|
+
type: "array";
|
|
1634
|
+
items: {
|
|
1635
|
+
type: string;
|
|
1636
|
+
properties: {
|
|
1637
|
+
id: {
|
|
1638
|
+
type: string;
|
|
1639
|
+
description: string;
|
|
1640
|
+
};
|
|
1641
|
+
name: {
|
|
1642
|
+
type: string;
|
|
1643
|
+
nullable: boolean;
|
|
1644
|
+
description: string;
|
|
1645
|
+
};
|
|
1646
|
+
start: {
|
|
1647
|
+
type: string;
|
|
1648
|
+
nullable: boolean;
|
|
1649
|
+
description: string;
|
|
1650
|
+
};
|
|
1651
|
+
prefix: {
|
|
1652
|
+
type: string;
|
|
1653
|
+
nullable: boolean;
|
|
1654
|
+
description: string;
|
|
1655
|
+
};
|
|
1656
|
+
userId: {
|
|
1657
|
+
type: string;
|
|
1658
|
+
description: string;
|
|
1659
|
+
};
|
|
1660
|
+
refillInterval: {
|
|
1661
|
+
type: string;
|
|
1662
|
+
nullable: boolean;
|
|
1663
|
+
description: string;
|
|
1664
|
+
};
|
|
1665
|
+
refillAmount: {
|
|
1666
|
+
type: string;
|
|
1667
|
+
nullable: boolean;
|
|
1668
|
+
description: string;
|
|
1669
|
+
};
|
|
1670
|
+
lastRefillAt: {
|
|
1671
|
+
type: string;
|
|
1672
|
+
format: string;
|
|
1673
|
+
nullable: boolean;
|
|
1674
|
+
description: string;
|
|
1675
|
+
};
|
|
1676
|
+
enabled: {
|
|
1677
|
+
type: string;
|
|
1678
|
+
description: string;
|
|
1679
|
+
default: boolean;
|
|
1680
|
+
};
|
|
1681
|
+
rateLimitEnabled: {
|
|
1682
|
+
type: string;
|
|
1683
|
+
description: string;
|
|
1684
|
+
};
|
|
1685
|
+
rateLimitTimeWindow: {
|
|
1686
|
+
type: string;
|
|
1687
|
+
nullable: boolean;
|
|
1688
|
+
description: string;
|
|
1689
|
+
};
|
|
1690
|
+
rateLimitMax: {
|
|
1691
|
+
type: string;
|
|
1692
|
+
nullable: boolean;
|
|
1693
|
+
description: string;
|
|
1694
|
+
};
|
|
1695
|
+
requestCount: {
|
|
1696
|
+
type: string;
|
|
1697
|
+
description: string;
|
|
1698
|
+
};
|
|
1699
|
+
remaining: {
|
|
1700
|
+
type: string;
|
|
1701
|
+
nullable: boolean;
|
|
1702
|
+
description: string;
|
|
1703
|
+
};
|
|
1704
|
+
lastRequest: {
|
|
1705
|
+
type: string;
|
|
1706
|
+
format: string;
|
|
1707
|
+
nullable: boolean;
|
|
1708
|
+
description: string;
|
|
1709
|
+
};
|
|
1710
|
+
expiresAt: {
|
|
1711
|
+
type: string;
|
|
1712
|
+
format: string;
|
|
1713
|
+
nullable: boolean;
|
|
1714
|
+
description: string;
|
|
1715
|
+
};
|
|
1716
|
+
createdAt: {
|
|
1717
|
+
type: string;
|
|
1718
|
+
format: string;
|
|
1719
|
+
description: string;
|
|
1720
|
+
};
|
|
1721
|
+
updatedAt: {
|
|
1722
|
+
type: string;
|
|
1723
|
+
format: string;
|
|
1724
|
+
description: string;
|
|
1725
|
+
};
|
|
1726
|
+
metadata: {
|
|
1727
|
+
type: string;
|
|
1728
|
+
nullable: boolean;
|
|
1729
|
+
additionalProperties: boolean;
|
|
1730
|
+
description: string;
|
|
1731
|
+
};
|
|
1732
|
+
permissions: {
|
|
1733
|
+
type: string;
|
|
1734
|
+
nullable: boolean;
|
|
1735
|
+
description: string;
|
|
1736
|
+
};
|
|
1737
|
+
};
|
|
1738
|
+
required: string[];
|
|
1739
|
+
};
|
|
1740
|
+
};
|
|
1741
|
+
};
|
|
1742
|
+
};
|
|
1743
|
+
};
|
|
1744
|
+
};
|
|
1745
|
+
};
|
|
1746
|
+
};
|
|
1215
1747
|
} & {
|
|
1216
1748
|
use: any[];
|
|
1217
1749
|
};
|