sandcms 0.5.3 → 0.6.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.
Files changed (147) hide show
  1. package/README.md +5 -3
  2. package/dist/admin/Account.svelte +4 -1
  3. package/dist/admin/ApiKeys.svelte +159 -0
  4. package/dist/admin/ApiKeys.svelte.d.ts +3 -0
  5. package/dist/admin/AssetAttachment.svelte +6 -4
  6. package/dist/admin/BlueprintFields.svelte +86 -0
  7. package/dist/admin/BlueprintFields.svelte.d.ts +15 -0
  8. package/dist/admin/Collection.svelte +40 -7
  9. package/dist/admin/Editor.svelte +57 -17
  10. package/dist/admin/Fields.svelte +217 -144
  11. package/dist/admin/Fields.svelte.d.ts +1 -0
  12. package/dist/admin/FocusPicker.svelte +136 -0
  13. package/dist/admin/FocusPicker.svelte.d.ts +11 -0
  14. package/dist/admin/Gallery.svelte +40 -34
  15. package/dist/admin/GlobalSearch.svelte +56 -0
  16. package/dist/admin/GlobalSearch.svelte.d.ts +3 -0
  17. package/dist/admin/Inbox.svelte +8 -5
  18. package/dist/admin/LinkField.svelte +116 -0
  19. package/dist/admin/LinkField.svelte.d.ts +17 -0
  20. package/dist/admin/MediaLibrary.svelte +41 -14
  21. package/dist/admin/MediaPicker.svelte +12 -2
  22. package/dist/admin/NotificationSettings.svelte +2 -2
  23. package/dist/admin/SearchList.svelte +55 -0
  24. package/dist/admin/SearchList.svelte.d.ts +42 -0
  25. package/dist/admin/SelectField.svelte +3 -1
  26. package/dist/admin/SelectField.svelte.d.ts +1 -0
  27. package/dist/admin/Shell.svelte +4 -2
  28. package/dist/admin/UnsavedChanges.svelte +1 -1
  29. package/dist/admin/Users.svelte +11 -5
  30. package/dist/admin/client.js +2 -1
  31. package/dist/admin/generated/admin.css +109 -0
  32. package/dist/admin/types.d.ts +5 -1
  33. package/dist/admin/uploads.js +27 -6
  34. package/dist/blueprints/conditions.d.ts +2 -0
  35. package/dist/blueprints/conditions.js +4 -0
  36. package/dist/blueprints/extends.d.ts +5 -0
  37. package/dist/blueprints/extends.js +76 -0
  38. package/dist/blueprints/files.d.ts +3 -1
  39. package/dist/blueprints/files.js +35 -2
  40. package/dist/blueprints/layout.d.ts +4 -0
  41. package/dist/blueprints/layout.js +12 -0
  42. package/dist/blueprints/load.d.ts +1 -1
  43. package/dist/blueprints/load.js +123 -12
  44. package/dist/blueprints/types.d.ts +35 -1
  45. package/dist/blueprints/validate.js +30 -6
  46. package/dist/cli/cloudflare.js +17 -5
  47. package/dist/cli/doctor.js +6 -3
  48. package/dist/cli/files.js +1 -1
  49. package/dist/cli/scaffold.js +8 -6
  50. package/dist/cli/setup.js +9 -2
  51. package/dist/cli/upgrade.js +2 -1
  52. package/dist/email-failure.d.ts +17 -0
  53. package/dist/email-failure.js +22 -0
  54. package/dist/index.d.ts +2 -1
  55. package/dist/index.js +1 -0
  56. package/dist/link.d.ts +17 -0
  57. package/dist/link.js +44 -0
  58. package/dist/notification-fields.js +1 -1
  59. package/dist/search.d.ts +8 -0
  60. package/dist/search.js +1 -0
  61. package/dist/server/access.d.ts +2 -0
  62. package/dist/server/access.js +59 -23
  63. package/dist/server/admin-load.d.ts +11 -2
  64. package/dist/server/admin-load.js +4 -2
  65. package/dist/server/api-access.d.ts +31 -0
  66. package/dist/server/api-access.js +52 -0
  67. package/dist/server/api-pagination.d.ts +34 -0
  68. package/dist/server/api-pagination.js +87 -0
  69. package/dist/server/api.js +224 -32
  70. package/dist/server/auth.d.ts +1150 -0
  71. package/dist/server/auth.js +11 -1
  72. package/dist/server/cms.d.ts +1210 -4
  73. package/dist/server/cms.js +12 -0
  74. package/dist/server/content.d.ts +17 -2
  75. package/dist/server/content.js +89 -14
  76. package/dist/server/db/auto-migrate.d.ts +12 -0
  77. package/dist/server/db/auto-migrate.js +23 -0
  78. package/dist/server/db/migration-data.js +24 -0
  79. package/dist/server/db/migrations/0001_independent_password_resets.sql +3 -0
  80. package/dist/server/db/migrations/0002_email_failure_reason.sql +1 -0
  81. package/dist/server/db/migrations/0003_direct_r2_uploads.sql +10 -0
  82. package/dist/server/db/migrations/0004_agent_api_keys.sql +38 -0
  83. package/dist/server/db/migrations/0005_api_retention_and_pagination.sql +3 -0
  84. package/dist/server/db/migrations/0006_durable_media_deletion.sql +7 -0
  85. package/dist/server/db/migrations/meta/0001_snapshot.json +1197 -0
  86. package/dist/server/db/migrations/meta/0002_snapshot.json +1204 -0
  87. package/dist/server/db/migrations/meta/0003_snapshot.json +1281 -0
  88. package/dist/server/db/migrations/meta/0004_snapshot.json +1546 -0
  89. package/dist/server/db/migrations/meta/0005_snapshot.json +1572 -0
  90. package/dist/server/db/migrations/meta/0006_snapshot.json +1627 -0
  91. package/dist/server/db/migrations/meta/_journal.json +42 -0
  92. package/dist/server/db/schema.d.ts +742 -2
  93. package/dist/server/db/schema.js +77 -5
  94. package/dist/server/db/store.js +24 -9
  95. package/dist/server/email/index.d.ts +11 -1
  96. package/dist/server/email/index.js +69 -6
  97. package/dist/server/forms.js +12 -2
  98. package/dist/server/hooks.d.ts +1 -1
  99. package/dist/server/hooks.js +37 -14
  100. package/dist/server/index.d.ts +2 -1
  101. package/dist/server/index.js +2 -1
  102. package/dist/server/links.d.ts +5 -0
  103. package/dist/server/links.js +44 -0
  104. package/dist/server/media/deletions.d.ts +2 -0
  105. package/dist/server/media/deletions.js +58 -0
  106. package/dist/server/media/presets.d.ts +10 -2
  107. package/dist/server/media/presets.js +14 -2
  108. package/dist/server/media/runner.d.ts +1 -1
  109. package/dist/server/media/runner.js +105 -8
  110. package/dist/server/media/service.d.ts +41 -3
  111. package/dist/server/media/service.js +146 -33
  112. package/dist/server/notifications.d.ts +1 -0
  113. package/dist/server/notifications.js +4 -2
  114. package/dist/server/request.d.ts +2 -0
  115. package/dist/server/request.js +5 -0
  116. package/dist/server/search.d.ts +13 -0
  117. package/dist/server/search.js +97 -0
  118. package/dist/worker/index.d.ts +4 -4
  119. package/dist/worker/index.js +208 -67
  120. package/dist/worker/local.d.ts +5 -0
  121. package/dist/worker/local.js +57 -0
  122. package/dist/worker/source.d.ts +1 -1
  123. package/dist/worker/source.js +2 -2
  124. package/dist/worker/uploads.d.ts +22 -0
  125. package/dist/worker/uploads.js +48 -0
  126. package/docs/api.md +73 -0
  127. package/docs/cloudflare.md +37 -10
  128. package/docs/content.md +162 -4
  129. package/docs/deployment.md +33 -4
  130. package/docs/email.md +11 -7
  131. package/docs/forms.md +3 -1
  132. package/docs/media.md +33 -4
  133. package/docs/package.md +6 -4
  134. package/docs/releases.md +54 -1
  135. package/docs/upgrades.md +91 -3
  136. package/package.json +19 -10
  137. package/templates/hooks.server.ts +2 -2
  138. package/templates/integration.ts +3 -2
  139. package/templates/routes/admin/+page.server.ts +1 -1
  140. package/templates/routes/api/+server.ts +1 -1
  141. package/templates/sandcms/blueprints/collections/projects.yaml +16 -8
  142. package/templates/sandcms/blueprints/fields/seo.yaml +5 -0
  143. package/templates/sandcms/blueprints/files/image.yaml +1 -0
  144. package/templates/sandcms/blueprints/pages/home.yaml +1 -0
  145. package/templates/sandcms/config.yaml +1 -0
  146. package/templates/sandcms/worker/local.ts +1 -0
  147. package/templates/sandcms/worker/wrangler.jsonc +1 -2
@@ -723,6 +723,1156 @@ export declare function createAuth(store: Store, options: AuthOptions): import("
723
723
  ACCOUNT_TEMPORARILY_LOCKED: import("better-auth").RawError<"ACCOUNT_TEMPORARILY_LOCKED">;
724
724
  INVALID_TWO_FACTOR_COOKIE: import("better-auth").RawError<"INVALID_TWO_FACTOR_COOKIE">;
725
725
  };
726
+ }, {
727
+ id: "api-key";
728
+ version: string;
729
+ $ERROR_CODES: {
730
+ INVALID_METADATA_TYPE: import("better-auth").RawError<"INVALID_METADATA_TYPE">;
731
+ REFILL_AMOUNT_AND_INTERVAL_REQUIRED: import("better-auth").RawError<"REFILL_AMOUNT_AND_INTERVAL_REQUIRED">;
732
+ REFILL_INTERVAL_AND_AMOUNT_REQUIRED: import("better-auth").RawError<"REFILL_INTERVAL_AND_AMOUNT_REQUIRED">;
733
+ USER_BANNED: import("better-auth").RawError<"USER_BANNED">;
734
+ UNAUTHORIZED_SESSION: import("better-auth").RawError<"UNAUTHORIZED_SESSION">;
735
+ KEY_NOT_FOUND: import("better-auth").RawError<"KEY_NOT_FOUND">;
736
+ KEY_DISABLED: import("better-auth").RawError<"KEY_DISABLED">;
737
+ KEY_EXPIRED: import("better-auth").RawError<"KEY_EXPIRED">;
738
+ USAGE_EXCEEDED: import("better-auth").RawError<"USAGE_EXCEEDED">;
739
+ KEY_NOT_RECOVERABLE: import("better-auth").RawError<"KEY_NOT_RECOVERABLE">;
740
+ EXPIRES_IN_IS_TOO_SMALL: import("better-auth").RawError<"EXPIRES_IN_IS_TOO_SMALL">;
741
+ EXPIRES_IN_IS_TOO_LARGE: import("better-auth").RawError<"EXPIRES_IN_IS_TOO_LARGE">;
742
+ INVALID_REMAINING: import("better-auth").RawError<"INVALID_REMAINING">;
743
+ INVALID_PREFIX_LENGTH: import("better-auth").RawError<"INVALID_PREFIX_LENGTH">;
744
+ INVALID_NAME_LENGTH: import("better-auth").RawError<"INVALID_NAME_LENGTH">;
745
+ METADATA_DISABLED: import("better-auth").RawError<"METADATA_DISABLED">;
746
+ RATE_LIMIT_EXCEEDED: import("better-auth").RawError<"RATE_LIMIT_EXCEEDED">;
747
+ NO_VALUES_TO_UPDATE: import("better-auth").RawError<"NO_VALUES_TO_UPDATE">;
748
+ KEY_DISABLED_EXPIRATION: import("better-auth").RawError<"KEY_DISABLED_EXPIRATION">;
749
+ INVALID_API_KEY: import("better-auth").RawError<"INVALID_API_KEY">;
750
+ INVALID_USER_ID_FROM_API_KEY: import("better-auth").RawError<"INVALID_USER_ID_FROM_API_KEY">;
751
+ INVALID_REFERENCE_ID_FROM_API_KEY: import("better-auth").RawError<"INVALID_REFERENCE_ID_FROM_API_KEY">;
752
+ INVALID_API_KEY_GETTER_RETURN_TYPE: import("better-auth").RawError<"INVALID_API_KEY_GETTER_RETURN_TYPE">;
753
+ SERVER_ONLY_PROPERTY: import("better-auth").RawError<"SERVER_ONLY_PROPERTY">;
754
+ FAILED_TO_UPDATE_API_KEY: import("better-auth").RawError<"FAILED_TO_UPDATE_API_KEY">;
755
+ NAME_REQUIRED: import("better-auth").RawError<"NAME_REQUIRED">;
756
+ ORGANIZATION_ID_REQUIRED: import("better-auth").RawError<"ORGANIZATION_ID_REQUIRED">;
757
+ USER_NOT_MEMBER_OF_ORGANIZATION: import("better-auth").RawError<"USER_NOT_MEMBER_OF_ORGANIZATION">;
758
+ INSUFFICIENT_API_KEY_PERMISSIONS: import("better-auth").RawError<"INSUFFICIENT_API_KEY_PERMISSIONS">;
759
+ NO_DEFAULT_API_KEY_CONFIGURATION_FOUND: import("better-auth").RawError<"NO_DEFAULT_API_KEY_CONFIGURATION_FOUND">;
760
+ ORGANIZATION_PLUGIN_REQUIRED: import("better-auth").RawError<"ORGANIZATION_PLUGIN_REQUIRED">;
761
+ };
762
+ hooks: {
763
+ before: {
764
+ matcher: (ctx: import("better-auth").HookEndpointContext) => boolean;
765
+ handler: import("better-auth").Middleware<import("better-auth").MiddlewareOptions, (inputContext: import("better-auth").MiddlewareInputContext<import("better-auth").MiddlewareOptions>) => Promise<{
766
+ user: {
767
+ id: string;
768
+ createdAt: Date;
769
+ updatedAt: Date;
770
+ email: string;
771
+ emailVerified: boolean;
772
+ name: string;
773
+ image?: string | null | undefined;
774
+ };
775
+ session: {
776
+ id: string;
777
+ token: string;
778
+ userId: string;
779
+ userAgent: string | null;
780
+ ipAddress: string | null;
781
+ createdAt: Date;
782
+ updatedAt: Date;
783
+ expiresAt: Date;
784
+ };
785
+ } | {
786
+ context: import("better-auth").MiddlewareContext<import("better-auth").MiddlewareOptions, import("better-auth").PluginContext<import("better-auth").BetterAuthOptions> & import("better-auth").InfoContext & {
787
+ options: import("better-auth").BetterAuthOptions;
788
+ trustedOrigins: string[];
789
+ trustedProviders: string[];
790
+ isTrustedOrigin: (url: string, settings?: {
791
+ allowRelativePaths: boolean;
792
+ }) => boolean;
793
+ oauthConfig: {
794
+ skipStateCookieCheck?: boolean | undefined;
795
+ storeStateStrategy: "database" | "cookie";
796
+ };
797
+ newSession: {
798
+ session: {
799
+ id: string;
800
+ createdAt: Date;
801
+ updatedAt: Date;
802
+ userId: string;
803
+ expiresAt: Date;
804
+ token: string;
805
+ ipAddress?: string | null | undefined;
806
+ userAgent?: string | null | undefined;
807
+ } & Record<string, any>;
808
+ user: {
809
+ id: string;
810
+ createdAt: Date;
811
+ updatedAt: Date;
812
+ email: string;
813
+ emailVerified: boolean;
814
+ name: string;
815
+ image?: string | null | undefined;
816
+ } & Record<string, any>;
817
+ } | null;
818
+ session: {
819
+ session: {
820
+ id: string;
821
+ createdAt: Date;
822
+ updatedAt: Date;
823
+ userId: string;
824
+ expiresAt: Date;
825
+ token: string;
826
+ ipAddress?: string | null | undefined;
827
+ userAgent?: string | null | undefined;
828
+ } & Record<string, any>;
829
+ user: {
830
+ id: string;
831
+ createdAt: Date;
832
+ updatedAt: Date;
833
+ email: string;
834
+ emailVerified: boolean;
835
+ name: string;
836
+ image?: string | null | undefined;
837
+ } & Record<string, any>;
838
+ } | null;
839
+ setNewSession: (session: {
840
+ session: {
841
+ id: string;
842
+ createdAt: Date;
843
+ updatedAt: Date;
844
+ userId: string;
845
+ expiresAt: Date;
846
+ token: string;
847
+ ipAddress?: string | null | undefined;
848
+ userAgent?: string | null | undefined;
849
+ } & Record<string, any>;
850
+ user: {
851
+ id: string;
852
+ createdAt: Date;
853
+ updatedAt: Date;
854
+ email: string;
855
+ emailVerified: boolean;
856
+ name: string;
857
+ image?: string | null | undefined;
858
+ } & Record<string, any>;
859
+ } | null) => void;
860
+ socialProviders: import("better-auth").OAuthProvider[];
861
+ authCookies: import("better-auth").BetterAuthCookies;
862
+ logger: ReturnType<(options?: import("better-auth").Logger | undefined) => import("better-auth").InternalLogger>;
863
+ rateLimit: {
864
+ enabled: boolean;
865
+ window: number;
866
+ max: number;
867
+ storage: "memory" | "database" | "secondary-storage";
868
+ } & Omit<import("better-auth").BetterAuthRateLimitOptions, "enabled" | "window" | "max" | "storage">;
869
+ adapter: import("better-auth").DBAdapter<import("better-auth").BetterAuthOptions>;
870
+ checkSchema?: import("@better-auth/core/db/internal").SchemaCheck | undefined;
871
+ explicitSchemaCheck?: import("@better-auth/core/db/internal").SchemaCheck | undefined;
872
+ internalAdapter: import("better-auth").InternalAdapter<import("better-auth").BetterAuthOptions>;
873
+ createAuthCookie: (cookieName: string, overrideAttributes?: Partial<import("better-auth").CookieOptions> | undefined) => import("better-auth").BetterAuthCookie;
874
+ secret: string;
875
+ secretConfig: string | import("better-auth").SecretConfig;
876
+ sessionConfig: {
877
+ updateAge: number;
878
+ expiresIn: number;
879
+ freshAge: number;
880
+ cookieCacheSigner?: import("better-auth").CookieCacheSigner | undefined;
881
+ cookieRefreshCache: false | {
882
+ enabled: true;
883
+ updateAge: number;
884
+ };
885
+ };
886
+ generateId: (options: {
887
+ model: import("better-auth").ModelNames;
888
+ size?: number | undefined;
889
+ }) => string | false;
890
+ secondaryStorage: import("better-auth").SecondaryStorage | undefined;
891
+ password: {
892
+ hash: (password: string) => Promise<string>;
893
+ verify: (data: {
894
+ password: string;
895
+ hash: string;
896
+ }) => Promise<boolean>;
897
+ config: {
898
+ minPasswordLength: number;
899
+ maxPasswordLength: number;
900
+ };
901
+ checkPassword: (userId: string, ctx: import("better-auth").GenericEndpointContext<import("better-auth").BetterAuthOptions>) => Promise<boolean>;
902
+ };
903
+ tables: import("better-auth").BetterAuthDBSchema;
904
+ runMigrations: () => Promise<void>;
905
+ publishTelemetry: (event: {
906
+ type: string;
907
+ anonymousId?: string | undefined;
908
+ payload: Record<string, any>;
909
+ }) => Promise<void>;
910
+ skipOriginCheck: boolean | string[];
911
+ skipCSRFCheck: boolean;
912
+ runInBackground: (promise: Promise<unknown>) => void;
913
+ runInBackgroundOrAwait: (promise: Promise<unknown> | void) => import("better-auth").Awaitable<unknown>;
914
+ } & {
915
+ returned?: unknown | undefined;
916
+ responseHeaders?: Headers | undefined;
917
+ }>;
918
+ }>>;
919
+ }[];
920
+ };
921
+ endpoints: {
922
+ createApiKey: import("better-auth").StrictEndpoint<"/api-key/create", {
923
+ method: "POST";
924
+ body: import("better-auth").ZodObject<{
925
+ configId: import("better-auth").ZodOptional<import("better-auth").ZodString>;
926
+ name: import("better-auth").ZodOptional<import("better-auth").ZodString>;
927
+ expiresIn: import("better-auth").ZodDefault<import("better-auth").ZodNullable<import("better-auth").ZodOptional<import("better-auth").ZodNumber>>>;
928
+ prefix: import("better-auth").ZodOptional<import("better-auth").ZodString>;
929
+ remaining: import("better-auth").ZodDefault<import("better-auth").ZodNullable<import("better-auth").ZodOptional<import("better-auth").ZodNumber>>>;
930
+ metadata: import("better-auth").ZodOptional<import("better-auth").ZodAny>;
931
+ refillAmount: import("better-auth").ZodOptional<import("better-auth").ZodNumber>;
932
+ refillInterval: import("better-auth").ZodOptional<import("better-auth").ZodNumber>;
933
+ rateLimitTimeWindow: import("better-auth").ZodOptional<import("better-auth").ZodNumber>;
934
+ rateLimitMax: import("better-auth").ZodOptional<import("better-auth").ZodNumber>;
935
+ rateLimitEnabled: import("better-auth").ZodOptional<import("better-auth").ZodBoolean>;
936
+ permissions: import("better-auth").ZodOptional<import("better-auth").ZodRecord<import("better-auth").ZodString, import("better-auth").ZodArray<import("better-auth").ZodString>>>;
937
+ userId: import("better-auth").ZodOptional<import("better-auth").ZodCoercedString<unknown>>;
938
+ organizationId: import("better-auth").ZodOptional<import("better-auth").ZodCoercedString<unknown>>;
939
+ }, import("zod/v4/core").$strip>;
940
+ metadata: {
941
+ openapi: {
942
+ description: string;
943
+ responses: {
944
+ "200": {
945
+ description: string;
946
+ content: {
947
+ "application/json": {
948
+ schema: {
949
+ type: "object";
950
+ properties: {
951
+ id: {
952
+ type: string;
953
+ description: string;
954
+ };
955
+ createdAt: {
956
+ type: string;
957
+ format: string;
958
+ description: string;
959
+ };
960
+ updatedAt: {
961
+ type: string;
962
+ format: string;
963
+ description: string;
964
+ };
965
+ name: {
966
+ type: string;
967
+ nullable: boolean;
968
+ description: string;
969
+ };
970
+ prefix: {
971
+ type: string;
972
+ nullable: boolean;
973
+ description: string;
974
+ };
975
+ start: {
976
+ type: string;
977
+ nullable: boolean;
978
+ description: string;
979
+ };
980
+ key: {
981
+ type: string;
982
+ description: string;
983
+ };
984
+ enabled: {
985
+ type: string;
986
+ description: string;
987
+ };
988
+ expiresAt: {
989
+ type: string;
990
+ format: string;
991
+ nullable: boolean;
992
+ description: string;
993
+ };
994
+ referenceId: {
995
+ type: string;
996
+ description: string;
997
+ };
998
+ lastRefillAt: {
999
+ type: string;
1000
+ format: string;
1001
+ nullable: boolean;
1002
+ description: string;
1003
+ };
1004
+ lastRequest: {
1005
+ type: string;
1006
+ format: string;
1007
+ nullable: boolean;
1008
+ description: string;
1009
+ };
1010
+ metadata: {
1011
+ type: string;
1012
+ nullable: boolean;
1013
+ additionalProperties: boolean;
1014
+ description: string;
1015
+ };
1016
+ rateLimitMax: {
1017
+ type: string;
1018
+ nullable: boolean;
1019
+ description: string;
1020
+ };
1021
+ rateLimitTimeWindow: {
1022
+ type: string;
1023
+ nullable: boolean;
1024
+ description: string;
1025
+ };
1026
+ remaining: {
1027
+ type: string;
1028
+ nullable: boolean;
1029
+ description: string;
1030
+ };
1031
+ refillAmount: {
1032
+ type: string;
1033
+ nullable: boolean;
1034
+ description: string;
1035
+ };
1036
+ refillInterval: {
1037
+ type: string;
1038
+ nullable: boolean;
1039
+ description: string;
1040
+ };
1041
+ rateLimitEnabled: {
1042
+ type: string;
1043
+ description: string;
1044
+ };
1045
+ requestCount: {
1046
+ type: string;
1047
+ description: string;
1048
+ };
1049
+ permissions: {
1050
+ type: string;
1051
+ nullable: boolean;
1052
+ additionalProperties: {
1053
+ type: string;
1054
+ items: {
1055
+ type: string;
1056
+ };
1057
+ };
1058
+ description: string;
1059
+ };
1060
+ };
1061
+ required: string[];
1062
+ };
1063
+ };
1064
+ };
1065
+ };
1066
+ };
1067
+ };
1068
+ };
1069
+ }, {
1070
+ key: string;
1071
+ metadata: any;
1072
+ permissions: any;
1073
+ id: string;
1074
+ configId: string;
1075
+ name: string | null;
1076
+ start: string | null;
1077
+ prefix: string | null;
1078
+ referenceId: string;
1079
+ refillInterval: number | null;
1080
+ refillAmount: number | null;
1081
+ lastRefillAt: Date | null;
1082
+ enabled: boolean;
1083
+ rateLimitEnabled: boolean;
1084
+ rateLimitTimeWindow: number | null;
1085
+ rateLimitMax: number | null;
1086
+ requestCount: number;
1087
+ remaining: number | null;
1088
+ lastRequest: Date | null;
1089
+ expiresAt: Date | null;
1090
+ createdAt: Date;
1091
+ updatedAt: Date;
1092
+ }>;
1093
+ verifyApiKey: import("better-auth").StrictEndpoint<string, {
1094
+ method: "POST";
1095
+ body: import("better-auth").ZodObject<{
1096
+ configId: import("better-auth").ZodOptional<import("better-auth").ZodString>;
1097
+ key: import("better-auth").ZodString;
1098
+ permissions: import("better-auth").ZodOptional<import("better-auth").ZodRecord<import("better-auth").ZodString, import("better-auth").ZodArray<import("better-auth").ZodString>>>;
1099
+ }, import("zod/v4/core").$strip>;
1100
+ }, {
1101
+ valid: boolean;
1102
+ error: {
1103
+ message: import("better-auth").RawError<"INVALID_API_KEY">;
1104
+ code: "KEY_NOT_FOUND";
1105
+ };
1106
+ key: null;
1107
+ } | {
1108
+ valid: boolean;
1109
+ error: {
1110
+ message: string | undefined;
1111
+ code: string;
1112
+ cause?: unknown;
1113
+ };
1114
+ key: null;
1115
+ } | {
1116
+ valid: boolean;
1117
+ error: {
1118
+ message: import("better-auth").RawError<"INVALID_API_KEY">;
1119
+ code: "INVALID_API_KEY";
1120
+ };
1121
+ key: null;
1122
+ } | {
1123
+ valid: boolean;
1124
+ error: null;
1125
+ key: Omit<import("@better-auth/api-key").ApiKey, "key"> | null;
1126
+ }>;
1127
+ getApiKey: import("better-auth").StrictEndpoint<"/api-key/get", {
1128
+ method: "GET";
1129
+ query: import("better-auth").ZodObject<{
1130
+ configId: import("better-auth").ZodOptional<import("better-auth").ZodString>;
1131
+ id: import("better-auth").ZodString;
1132
+ }, import("zod/v4/core").$strip>;
1133
+ use: import("better-auth").Middleware<import("better-auth").MiddlewareOptions, (inputContext: import("better-auth").MiddlewareInputContext<import("better-auth").MiddlewareOptions>) => Promise<{
1134
+ session: {
1135
+ session: Record<string, any> & {
1136
+ id: string;
1137
+ createdAt: Date;
1138
+ updatedAt: Date;
1139
+ userId: string;
1140
+ expiresAt: Date;
1141
+ token: string;
1142
+ ipAddress?: string | null | undefined;
1143
+ userAgent?: string | null | undefined;
1144
+ };
1145
+ user: Record<string, any> & {
1146
+ id: string;
1147
+ createdAt: Date;
1148
+ updatedAt: Date;
1149
+ email: string;
1150
+ emailVerified: boolean;
1151
+ name: string;
1152
+ image?: string | null | undefined;
1153
+ };
1154
+ };
1155
+ }>>[];
1156
+ metadata: {
1157
+ openapi: {
1158
+ description: string;
1159
+ responses: {
1160
+ "200": {
1161
+ description: string;
1162
+ content: {
1163
+ "application/json": {
1164
+ schema: {
1165
+ type: "object";
1166
+ properties: {
1167
+ id: {
1168
+ type: string;
1169
+ description: string;
1170
+ };
1171
+ name: {
1172
+ type: string;
1173
+ nullable: boolean;
1174
+ description: string;
1175
+ };
1176
+ start: {
1177
+ type: string;
1178
+ nullable: boolean;
1179
+ description: string;
1180
+ };
1181
+ prefix: {
1182
+ type: string;
1183
+ nullable: boolean;
1184
+ description: string;
1185
+ };
1186
+ userId: {
1187
+ type: string;
1188
+ description: string;
1189
+ };
1190
+ refillInterval: {
1191
+ type: string;
1192
+ nullable: boolean;
1193
+ description: string;
1194
+ };
1195
+ refillAmount: {
1196
+ type: string;
1197
+ nullable: boolean;
1198
+ description: string;
1199
+ };
1200
+ lastRefillAt: {
1201
+ type: string;
1202
+ format: string;
1203
+ nullable: boolean;
1204
+ description: string;
1205
+ };
1206
+ enabled: {
1207
+ type: string;
1208
+ description: string;
1209
+ default: boolean;
1210
+ };
1211
+ rateLimitEnabled: {
1212
+ type: string;
1213
+ description: string;
1214
+ };
1215
+ rateLimitTimeWindow: {
1216
+ type: string;
1217
+ nullable: boolean;
1218
+ description: string;
1219
+ };
1220
+ rateLimitMax: {
1221
+ type: string;
1222
+ nullable: boolean;
1223
+ description: string;
1224
+ };
1225
+ requestCount: {
1226
+ type: string;
1227
+ description: string;
1228
+ };
1229
+ remaining: {
1230
+ type: string;
1231
+ nullable: boolean;
1232
+ description: string;
1233
+ };
1234
+ lastRequest: {
1235
+ type: string;
1236
+ format: string;
1237
+ nullable: boolean;
1238
+ description: string;
1239
+ };
1240
+ expiresAt: {
1241
+ type: string;
1242
+ format: string;
1243
+ nullable: boolean;
1244
+ description: string;
1245
+ };
1246
+ createdAt: {
1247
+ type: string;
1248
+ format: string;
1249
+ description: string;
1250
+ };
1251
+ updatedAt: {
1252
+ type: string;
1253
+ format: string;
1254
+ description: string;
1255
+ };
1256
+ metadata: {
1257
+ type: string;
1258
+ nullable: boolean;
1259
+ additionalProperties: boolean;
1260
+ description: string;
1261
+ };
1262
+ permissions: {
1263
+ type: string;
1264
+ nullable: boolean;
1265
+ description: string;
1266
+ };
1267
+ };
1268
+ required: string[];
1269
+ };
1270
+ };
1271
+ };
1272
+ };
1273
+ };
1274
+ };
1275
+ };
1276
+ }, {
1277
+ metadata: Record<string, any> | null;
1278
+ permissions: {
1279
+ [key: string]: string[];
1280
+ } | null;
1281
+ id: string;
1282
+ configId: string;
1283
+ name: string | null;
1284
+ start: string | null;
1285
+ prefix: string | null;
1286
+ referenceId: string;
1287
+ refillInterval: number | null;
1288
+ refillAmount: number | null;
1289
+ lastRefillAt: Date | null;
1290
+ enabled: boolean;
1291
+ rateLimitEnabled: boolean;
1292
+ rateLimitTimeWindow: number | null;
1293
+ rateLimitMax: number | null;
1294
+ requestCount: number;
1295
+ remaining: number | null;
1296
+ lastRequest: Date | null;
1297
+ expiresAt: Date | null;
1298
+ createdAt: Date;
1299
+ updatedAt: Date;
1300
+ }>;
1301
+ updateApiKey: import("better-auth").StrictEndpoint<"/api-key/update", {
1302
+ method: "POST";
1303
+ body: import("better-auth").ZodObject<{
1304
+ configId: import("better-auth").ZodOptional<import("better-auth").ZodString>;
1305
+ keyId: import("better-auth").ZodString;
1306
+ userId: import("better-auth").ZodOptional<import("better-auth").ZodCoercedString<unknown>>;
1307
+ name: import("better-auth").ZodOptional<import("better-auth").ZodString>;
1308
+ enabled: import("better-auth").ZodOptional<import("better-auth").ZodBoolean>;
1309
+ remaining: import("better-auth").ZodOptional<import("better-auth").ZodNumber>;
1310
+ refillAmount: import("better-auth").ZodOptional<import("better-auth").ZodNumber>;
1311
+ refillInterval: import("better-auth").ZodOptional<import("better-auth").ZodNumber>;
1312
+ metadata: import("better-auth").ZodOptional<import("better-auth").ZodAny>;
1313
+ expiresIn: import("better-auth").ZodNullable<import("better-auth").ZodOptional<import("better-auth").ZodNumber>>;
1314
+ rateLimitEnabled: import("better-auth").ZodOptional<import("better-auth").ZodBoolean>;
1315
+ rateLimitTimeWindow: import("better-auth").ZodOptional<import("better-auth").ZodNumber>;
1316
+ rateLimitMax: import("better-auth").ZodOptional<import("better-auth").ZodNumber>;
1317
+ permissions: import("better-auth").ZodNullable<import("better-auth").ZodOptional<import("better-auth").ZodRecord<import("better-auth").ZodString, import("better-auth").ZodArray<import("better-auth").ZodString>>>>;
1318
+ }, import("zod/v4/core").$strip>;
1319
+ metadata: {
1320
+ openapi: {
1321
+ description: string;
1322
+ responses: {
1323
+ "200": {
1324
+ description: string;
1325
+ content: {
1326
+ "application/json": {
1327
+ schema: {
1328
+ type: "object";
1329
+ properties: {
1330
+ id: {
1331
+ type: string;
1332
+ description: string;
1333
+ };
1334
+ name: {
1335
+ type: string;
1336
+ nullable: boolean;
1337
+ description: string;
1338
+ };
1339
+ start: {
1340
+ type: string;
1341
+ nullable: boolean;
1342
+ description: string;
1343
+ };
1344
+ prefix: {
1345
+ type: string;
1346
+ nullable: boolean;
1347
+ description: string;
1348
+ };
1349
+ userId: {
1350
+ type: string;
1351
+ description: string;
1352
+ };
1353
+ refillInterval: {
1354
+ type: string;
1355
+ nullable: boolean;
1356
+ description: string;
1357
+ };
1358
+ refillAmount: {
1359
+ type: string;
1360
+ nullable: boolean;
1361
+ description: string;
1362
+ };
1363
+ lastRefillAt: {
1364
+ type: string;
1365
+ format: string;
1366
+ nullable: boolean;
1367
+ description: string;
1368
+ };
1369
+ enabled: {
1370
+ type: string;
1371
+ description: string;
1372
+ default: boolean;
1373
+ };
1374
+ rateLimitEnabled: {
1375
+ type: string;
1376
+ description: string;
1377
+ };
1378
+ rateLimitTimeWindow: {
1379
+ type: string;
1380
+ nullable: boolean;
1381
+ description: string;
1382
+ };
1383
+ rateLimitMax: {
1384
+ type: string;
1385
+ nullable: boolean;
1386
+ description: string;
1387
+ };
1388
+ requestCount: {
1389
+ type: string;
1390
+ description: string;
1391
+ };
1392
+ remaining: {
1393
+ type: string;
1394
+ nullable: boolean;
1395
+ description: string;
1396
+ };
1397
+ lastRequest: {
1398
+ type: string;
1399
+ format: string;
1400
+ nullable: boolean;
1401
+ description: string;
1402
+ };
1403
+ expiresAt: {
1404
+ type: string;
1405
+ format: string;
1406
+ nullable: boolean;
1407
+ description: string;
1408
+ };
1409
+ createdAt: {
1410
+ type: string;
1411
+ format: string;
1412
+ description: string;
1413
+ };
1414
+ updatedAt: {
1415
+ type: string;
1416
+ format: string;
1417
+ description: string;
1418
+ };
1419
+ metadata: {
1420
+ type: string;
1421
+ nullable: boolean;
1422
+ additionalProperties: boolean;
1423
+ description: string;
1424
+ };
1425
+ permissions: {
1426
+ type: string;
1427
+ nullable: boolean;
1428
+ description: string;
1429
+ };
1430
+ };
1431
+ required: string[];
1432
+ };
1433
+ };
1434
+ };
1435
+ };
1436
+ };
1437
+ };
1438
+ };
1439
+ }, {
1440
+ metadata: Record<string, any> | null;
1441
+ permissions: {
1442
+ [key: string]: string[];
1443
+ } | null;
1444
+ id: string;
1445
+ configId: string;
1446
+ name: string | null;
1447
+ start: string | null;
1448
+ prefix: string | null;
1449
+ referenceId: string;
1450
+ refillInterval: number | null;
1451
+ refillAmount: number | null;
1452
+ lastRefillAt: Date | null;
1453
+ enabled: boolean;
1454
+ rateLimitEnabled: boolean;
1455
+ rateLimitTimeWindow: number | null;
1456
+ rateLimitMax: number | null;
1457
+ requestCount: number;
1458
+ remaining: number | null;
1459
+ lastRequest: Date | null;
1460
+ expiresAt: Date | null;
1461
+ createdAt: Date;
1462
+ updatedAt: Date;
1463
+ }>;
1464
+ deleteApiKey: import("better-auth").StrictEndpoint<"/api-key/delete", {
1465
+ method: "POST";
1466
+ body: import("better-auth").ZodObject<{
1467
+ configId: import("better-auth").ZodOptional<import("better-auth").ZodString>;
1468
+ keyId: import("better-auth").ZodString;
1469
+ }, import("zod/v4/core").$strip>;
1470
+ use: import("better-auth").Middleware<import("better-auth").MiddlewareOptions, (inputContext: import("better-auth").MiddlewareInputContext<import("better-auth").MiddlewareOptions>) => Promise<{
1471
+ session: {
1472
+ session: Record<string, any> & {
1473
+ id: string;
1474
+ createdAt: Date;
1475
+ updatedAt: Date;
1476
+ userId: string;
1477
+ expiresAt: Date;
1478
+ token: string;
1479
+ ipAddress?: string | null | undefined;
1480
+ userAgent?: string | null | undefined;
1481
+ };
1482
+ user: Record<string, any> & {
1483
+ id: string;
1484
+ createdAt: Date;
1485
+ updatedAt: Date;
1486
+ email: string;
1487
+ emailVerified: boolean;
1488
+ name: string;
1489
+ image?: string | null | undefined;
1490
+ };
1491
+ };
1492
+ }>>[];
1493
+ metadata: {
1494
+ openapi: {
1495
+ description: string;
1496
+ requestBody: {
1497
+ content: {
1498
+ "application/json": {
1499
+ schema: {
1500
+ type: "object";
1501
+ properties: {
1502
+ keyId: {
1503
+ type: string;
1504
+ description: string;
1505
+ };
1506
+ };
1507
+ required: string[];
1508
+ };
1509
+ };
1510
+ };
1511
+ };
1512
+ responses: {
1513
+ "200": {
1514
+ description: string;
1515
+ content: {
1516
+ "application/json": {
1517
+ schema: {
1518
+ type: "object";
1519
+ properties: {
1520
+ success: {
1521
+ type: string;
1522
+ description: string;
1523
+ };
1524
+ };
1525
+ required: string[];
1526
+ };
1527
+ };
1528
+ };
1529
+ };
1530
+ };
1531
+ };
1532
+ };
1533
+ }, {
1534
+ success: boolean;
1535
+ }>;
1536
+ listApiKeys: import("better-auth").StrictEndpoint<"/api-key/list", {
1537
+ method: "GET";
1538
+ use: import("better-auth").Middleware<import("better-auth").MiddlewareOptions, (inputContext: import("better-auth").MiddlewareInputContext<import("better-auth").MiddlewareOptions>) => Promise<{
1539
+ session: {
1540
+ session: Record<string, any> & {
1541
+ id: string;
1542
+ createdAt: Date;
1543
+ updatedAt: Date;
1544
+ userId: string;
1545
+ expiresAt: Date;
1546
+ token: string;
1547
+ ipAddress?: string | null | undefined;
1548
+ userAgent?: string | null | undefined;
1549
+ };
1550
+ user: Record<string, any> & {
1551
+ id: string;
1552
+ createdAt: Date;
1553
+ updatedAt: Date;
1554
+ email: string;
1555
+ emailVerified: boolean;
1556
+ name: string;
1557
+ image?: string | null | undefined;
1558
+ };
1559
+ };
1560
+ }>>[];
1561
+ query: import("better-auth").ZodOptional<import("better-auth").ZodObject<{
1562
+ configId: import("better-auth").ZodOptional<import("better-auth").ZodString>;
1563
+ organizationId: import("better-auth").ZodOptional<import("better-auth").ZodString>;
1564
+ limit: import("better-auth").ZodOptional<import("better-auth").ZodCoercedNumber<unknown>>;
1565
+ offset: import("better-auth").ZodOptional<import("better-auth").ZodCoercedNumber<unknown>>;
1566
+ sortBy: import("better-auth").ZodOptional<import("better-auth").ZodString>;
1567
+ sortDirection: import("better-auth").ZodOptional<import("better-auth").ZodEnum<{
1568
+ asc: "asc";
1569
+ desc: "desc";
1570
+ }>>;
1571
+ }, import("zod/v4/core").$strip>>;
1572
+ metadata: {
1573
+ openapi: {
1574
+ description: string;
1575
+ responses: {
1576
+ "200": {
1577
+ description: string;
1578
+ content: {
1579
+ "application/json": {
1580
+ schema: {
1581
+ type: "object";
1582
+ properties: {
1583
+ apiKeys: {
1584
+ type: string;
1585
+ items: {
1586
+ type: string;
1587
+ properties: {
1588
+ id: {
1589
+ type: string;
1590
+ description: string;
1591
+ };
1592
+ name: {
1593
+ type: string;
1594
+ nullable: boolean;
1595
+ description: string;
1596
+ };
1597
+ start: {
1598
+ type: string;
1599
+ nullable: boolean;
1600
+ description: string;
1601
+ };
1602
+ prefix: {
1603
+ type: string;
1604
+ nullable: boolean;
1605
+ description: string;
1606
+ };
1607
+ userId: {
1608
+ type: string;
1609
+ description: string;
1610
+ };
1611
+ refillInterval: {
1612
+ type: string;
1613
+ nullable: boolean;
1614
+ description: string;
1615
+ };
1616
+ refillAmount: {
1617
+ type: string;
1618
+ nullable: boolean;
1619
+ description: string;
1620
+ };
1621
+ lastRefillAt: {
1622
+ type: string;
1623
+ format: string;
1624
+ nullable: boolean;
1625
+ description: string;
1626
+ };
1627
+ enabled: {
1628
+ type: string;
1629
+ description: string;
1630
+ default: boolean;
1631
+ };
1632
+ rateLimitEnabled: {
1633
+ type: string;
1634
+ description: string;
1635
+ };
1636
+ rateLimitTimeWindow: {
1637
+ type: string;
1638
+ nullable: boolean;
1639
+ description: string;
1640
+ };
1641
+ rateLimitMax: {
1642
+ type: string;
1643
+ nullable: boolean;
1644
+ description: string;
1645
+ };
1646
+ requestCount: {
1647
+ type: string;
1648
+ description: string;
1649
+ };
1650
+ remaining: {
1651
+ type: string;
1652
+ nullable: boolean;
1653
+ description: string;
1654
+ };
1655
+ lastRequest: {
1656
+ type: string;
1657
+ format: string;
1658
+ nullable: boolean;
1659
+ description: string;
1660
+ };
1661
+ expiresAt: {
1662
+ type: string;
1663
+ format: string;
1664
+ nullable: boolean;
1665
+ description: string;
1666
+ };
1667
+ createdAt: {
1668
+ type: string;
1669
+ format: string;
1670
+ description: string;
1671
+ };
1672
+ updatedAt: {
1673
+ type: string;
1674
+ format: string;
1675
+ description: string;
1676
+ };
1677
+ metadata: {
1678
+ type: string;
1679
+ nullable: boolean;
1680
+ additionalProperties: boolean;
1681
+ description: string;
1682
+ };
1683
+ permissions: {
1684
+ type: string;
1685
+ nullable: boolean;
1686
+ description: string;
1687
+ };
1688
+ };
1689
+ required: string[];
1690
+ };
1691
+ };
1692
+ total: {
1693
+ type: string;
1694
+ description: string;
1695
+ };
1696
+ limit: {
1697
+ type: string;
1698
+ nullable: boolean;
1699
+ description: string;
1700
+ };
1701
+ offset: {
1702
+ type: string;
1703
+ nullable: boolean;
1704
+ description: string;
1705
+ };
1706
+ };
1707
+ required: string[];
1708
+ };
1709
+ };
1710
+ };
1711
+ };
1712
+ };
1713
+ };
1714
+ };
1715
+ }, {
1716
+ apiKeys: {
1717
+ metadata: Record<string, any> | null;
1718
+ permissions: {
1719
+ [key: string]: string[];
1720
+ } | null;
1721
+ id: string;
1722
+ configId: string;
1723
+ name: string | null;
1724
+ start: string | null;
1725
+ prefix: string | null;
1726
+ referenceId: string;
1727
+ refillInterval: number | null;
1728
+ refillAmount: number | null;
1729
+ lastRefillAt: Date | null;
1730
+ enabled: boolean;
1731
+ rateLimitEnabled: boolean;
1732
+ rateLimitTimeWindow: number | null;
1733
+ rateLimitMax: number | null;
1734
+ requestCount: number;
1735
+ remaining: number | null;
1736
+ lastRequest: Date | null;
1737
+ expiresAt: Date | null;
1738
+ createdAt: Date;
1739
+ updatedAt: Date;
1740
+ }[];
1741
+ total: number;
1742
+ limit: number | undefined;
1743
+ offset: number | undefined;
1744
+ }>;
1745
+ deleteAllExpiredApiKeys: import("better-auth").StrictEndpoint<string, {
1746
+ method: "POST";
1747
+ }, {
1748
+ success: boolean;
1749
+ error: unknown;
1750
+ }>;
1751
+ };
1752
+ schema: {
1753
+ apikey: {
1754
+ fields: {
1755
+ configId: {
1756
+ type: "string";
1757
+ required: true;
1758
+ defaultValue: string;
1759
+ input: false;
1760
+ index: true;
1761
+ };
1762
+ name: {
1763
+ type: "string";
1764
+ required: false;
1765
+ input: false;
1766
+ };
1767
+ start: {
1768
+ type: "string";
1769
+ required: false;
1770
+ input: false;
1771
+ };
1772
+ referenceId: {
1773
+ type: "string";
1774
+ required: true;
1775
+ input: false;
1776
+ index: true;
1777
+ };
1778
+ prefix: {
1779
+ type: "string";
1780
+ required: false;
1781
+ input: false;
1782
+ };
1783
+ key: {
1784
+ type: "string";
1785
+ required: true;
1786
+ input: false;
1787
+ index: true;
1788
+ };
1789
+ refillInterval: {
1790
+ type: "number";
1791
+ required: false;
1792
+ input: false;
1793
+ };
1794
+ refillAmount: {
1795
+ type: "number";
1796
+ required: false;
1797
+ input: false;
1798
+ };
1799
+ lastRefillAt: {
1800
+ type: "date";
1801
+ required: false;
1802
+ input: false;
1803
+ };
1804
+ enabled: {
1805
+ type: "boolean";
1806
+ required: false;
1807
+ input: false;
1808
+ defaultValue: true;
1809
+ };
1810
+ rateLimitEnabled: {
1811
+ type: "boolean";
1812
+ required: false;
1813
+ input: false;
1814
+ defaultValue: true;
1815
+ };
1816
+ rateLimitTimeWindow: {
1817
+ type: "number";
1818
+ required: false;
1819
+ input: false;
1820
+ defaultValue: number;
1821
+ };
1822
+ rateLimitMax: {
1823
+ type: "number";
1824
+ required: false;
1825
+ input: false;
1826
+ defaultValue: number;
1827
+ };
1828
+ requestCount: {
1829
+ type: "number";
1830
+ required: false;
1831
+ input: false;
1832
+ defaultValue: number;
1833
+ };
1834
+ remaining: {
1835
+ type: "number";
1836
+ required: false;
1837
+ input: false;
1838
+ };
1839
+ lastRequest: {
1840
+ type: "date";
1841
+ required: false;
1842
+ input: false;
1843
+ };
1844
+ expiresAt: {
1845
+ type: "date";
1846
+ required: false;
1847
+ input: false;
1848
+ };
1849
+ createdAt: {
1850
+ type: "date";
1851
+ required: true;
1852
+ input: false;
1853
+ };
1854
+ updatedAt: {
1855
+ type: "date";
1856
+ required: true;
1857
+ input: false;
1858
+ };
1859
+ permissions: {
1860
+ type: "string";
1861
+ required: false;
1862
+ input: false;
1863
+ };
1864
+ metadata: {
1865
+ type: "string";
1866
+ required: false;
1867
+ input: true;
1868
+ transform: {
1869
+ input(value: import("better-auth").DBPrimitive): string;
1870
+ output(value: import("better-auth").DBPrimitive): any;
1871
+ };
1872
+ };
1873
+ };
1874
+ };
1875
+ };
726
1876
  }];
727
1877
  }>;
728
1878
  export type Auth = ReturnType<typeof createAuth>;