autumn-js 1.2.13 → 1.2.14
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/backend/adapters/express.js +419 -69
- package/dist/backend/adapters/express.mjs +5 -5
- package/dist/backend/adapters/fetch.js +419 -69
- package/dist/backend/adapters/fetch.mjs +5 -5
- package/dist/backend/adapters/hono.js +419 -69
- package/dist/backend/adapters/hono.mjs +5 -5
- package/dist/backend/adapters/index.js +419 -69
- package/dist/backend/adapters/index.mjs +8 -8
- package/dist/backend/adapters/next.js +419 -69
- package/dist/backend/adapters/next.mjs +5 -5
- package/dist/backend/{chunk-YSQQKZBU.mjs → chunk-5XWZK7Q6.mjs} +1 -1
- package/dist/backend/{chunk-OUDB34Y7.mjs → chunk-BVJU43R5.mjs} +1 -1
- package/dist/backend/{chunk-T42RZEUZ.mjs → chunk-GE5VY4YO.mjs} +419 -69
- package/dist/backend/{chunk-DNNJOZAT.mjs → chunk-JDJMZQCY.mjs} +1 -1
- package/dist/backend/{chunk-7BVATYGA.mjs → chunk-N2OJ347N.mjs} +1 -1
- package/dist/backend/{chunk-EJGHP7KT.mjs → chunk-QAFNIIBW.mjs} +1 -1
- package/dist/backend/{chunk-RPH5L44S.mjs → chunk-ZOOAE7OJ.mjs} +1 -1
- package/dist/backend/core/handlers/coreHandler.d.mts +1 -1
- package/dist/backend/core/handlers/coreHandler.d.ts +1 -1
- package/dist/backend/core/handlers/coreHandler.js +419 -69
- package/dist/backend/core/handlers/coreHandler.mjs +3 -3
- package/dist/backend/core/handlers/executeRoute.d.mts +1 -1
- package/dist/backend/core/handlers/executeRoute.d.ts +1 -1
- package/dist/backend/core/handlers/executeRoute.mjs +1 -1
- package/dist/backend/core/handlers/handleRouteByName.js +419 -69
- package/dist/backend/core/handlers/handleRouteByName.mjs +3 -3
- package/dist/backend/core/handlers/index.d.mts +1 -1
- package/dist/backend/core/handlers/index.d.ts +1 -1
- package/dist/backend/core/handlers/index.js +419 -69
- package/dist/backend/core/handlers/index.mjs +4 -4
- package/dist/backend/core/index.d.mts +1 -1
- package/dist/backend/core/index.d.ts +1 -1
- package/dist/backend/core/index.js +419 -69
- package/dist/backend/core/index.mjs +6 -6
- package/dist/backend/core/routes/index.d.mts +1 -1
- package/dist/backend/core/routes/index.d.ts +1 -1
- package/dist/backend/core/routes/index.mjs +1 -1
- package/dist/backend/core/routes/routeBuilder.d.mts +1 -1
- package/dist/backend/core/routes/routeBuilder.d.ts +1 -1
- package/dist/backend/core/routes/routeConfigs.d.mts +1 -1
- package/dist/backend/core/routes/routeConfigs.d.ts +1 -1
- package/dist/backend/core/routes/routeConfigs.mjs +1 -1
- package/dist/backend/core/types/handlerTypes.d.mts +1 -1
- package/dist/backend/core/types/handlerTypes.d.ts +1 -1
- package/dist/backend/core/types/index.d.mts +1 -1
- package/dist/backend/core/types/index.d.ts +1 -1
- package/dist/backend/core/types/routeTypes.d.mts +1 -1
- package/dist/backend/core/types/routeTypes.d.ts +1 -1
- package/dist/backend/core/utils/index.mjs +3 -3
- package/dist/backend/index.d.mts +2 -2
- package/dist/backend/index.d.ts +2 -2
- package/dist/backend/index.js +419 -69
- package/dist/backend/index.mjs +6 -6
- package/dist/backend/{routeTypes-DVwngaBn.d.mts → routeTypes-B-X-zb1q.d.mts} +558 -68
- package/dist/backend/{routeTypes-B94_Mq2J.d.ts → routeTypes-bGaZQm24.d.ts} +558 -68
- package/dist/better-auth/{chunk-ZZGFPTHO.mjs → chunk-DNNKTBFL.mjs} +419 -69
- package/dist/better-auth/client.d.mts +2 -4
- package/dist/better-auth/client.d.ts +2 -4
- package/dist/better-auth/{createAutumnEndpoint-CvXRCg-M.d.mts → createAutumnEndpoint-Clm1sxhQ.d.mts} +4 -8
- package/dist/better-auth/{createAutumnEndpoint-CvXRCg-M.d.ts → createAutumnEndpoint-Clm1sxhQ.d.ts} +4 -8
- package/dist/better-auth/index.d.mts +2 -4
- package/dist/better-auth/index.d.ts +2 -4
- package/dist/better-auth/index.js +419 -69
- package/dist/better-auth/index.mjs +1 -1
- package/dist/better-auth/utils/createAutumnEndpoint.d.mts +2 -4
- package/dist/better-auth/utils/createAutumnEndpoint.d.ts +2 -4
- package/dist/better-auth/utils/handleBetterAuthRoute.d.mts +2 -4
- package/dist/better-auth/utils/handleBetterAuthRoute.d.ts +2 -4
- package/dist/better-auth/utils/handleBetterAuthRoute.js +419 -69
- package/dist/better-auth/utils/handleBetterAuthRoute.mjs +1 -1
- package/dist/better-auth/utils/index.d.mts +3 -4
- package/dist/better-auth/utils/index.d.ts +3 -4
- package/dist/better-auth/utils/index.js +419 -69
- package/dist/better-auth/utils/index.mjs +1 -1
- package/dist/react/AutumnContext.d.mts +1 -1
- package/dist/react/AutumnContext.d.ts +1 -1
- package/dist/react/client/AutumnClient.d.mts +1 -1
- package/dist/react/client/AutumnClient.d.ts +1 -1
- package/dist/react/client/IAutumnClient.d.mts +1 -1
- package/dist/react/client/IAutumnClient.d.ts +1 -1
- package/dist/react/client/index.d.mts +1 -1
- package/dist/react/client/index.d.ts +1 -1
- package/dist/react/hooks/index.d.mts +1 -1
- package/dist/react/hooks/index.d.ts +1 -1
- package/dist/react/hooks/internal/getLocalCheckResponse.d.mts +1 -1
- package/dist/react/hooks/internal/getLocalCheckResponse.d.ts +1 -1
- package/dist/react/hooks/internal/useCustomerActions.d.mts +1 -1
- package/dist/react/hooks/internal/useCustomerActions.d.ts +1 -1
- package/dist/react/hooks/useAggregateEvents.d.mts +1 -1
- package/dist/react/hooks/useAggregateEvents.d.ts +1 -1
- package/dist/react/hooks/useCustomer.d.mts +1 -1
- package/dist/react/hooks/useCustomer.d.ts +1 -1
- package/dist/react/hooks/useEntity.d.mts +1 -1
- package/dist/react/hooks/useEntity.d.ts +1 -1
- package/dist/react/hooks/useListEvents.d.mts +1 -1
- package/dist/react/hooks/useListEvents.d.ts +1 -1
- package/dist/react/hooks/useListPlans.d.mts +1 -1
- package/dist/react/hooks/useListPlans.d.ts +1 -1
- package/dist/react/hooks/useReferrals.d.mts +1 -1
- package/dist/react/hooks/useReferrals.d.ts +1 -1
- package/dist/react/index.d.mts +1 -1
- package/dist/react/index.d.ts +1 -1
- package/dist/react/{params-B5l9vHfZ.d.ts → params-CTiHT2EX.d.ts} +515 -64
- package/dist/react/{params-BVglT8vT.d.mts → params-ZvrBzzFE.d.mts} +515 -64
- package/dist/sdk/index.d.mts +683 -109
- package/dist/sdk/index.d.ts +683 -109
- package/dist/sdk/index.js +3436 -2889
- package/dist/sdk/index.mjs +3320 -2837
- package/package.json +1 -1
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { autumn } from './index.mjs';
|
|
2
|
-
import './createAutumnEndpoint-
|
|
3
|
-
import '
|
|
4
|
-
import 'zod/v4';
|
|
5
|
-
import 'zod/v4/core';
|
|
2
|
+
import './createAutumnEndpoint-Clm1sxhQ.mjs';
|
|
3
|
+
import '@better-auth/core/api';
|
|
6
4
|
import './types.mjs';
|
|
7
5
|
|
|
8
6
|
type AutumnPlugin = typeof autumn;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { autumn } from './index.js';
|
|
2
|
-
import './createAutumnEndpoint-
|
|
3
|
-
import '
|
|
4
|
-
import 'zod/v4';
|
|
5
|
-
import 'zod/v4/core';
|
|
2
|
+
import './createAutumnEndpoint-Clm1sxhQ.js';
|
|
3
|
+
import '@better-auth/core/api';
|
|
6
4
|
import './types.js';
|
|
7
5
|
|
|
8
6
|
type AutumnPlugin = typeof autumn;
|
package/dist/better-auth/{createAutumnEndpoint-CvXRCg-M.d.mts → createAutumnEndpoint-Clm1sxhQ.d.mts}
RENAMED
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import * as zod_v4 from 'zod/v4';
|
|
3
|
-
import * as z from 'zod/v4/core';
|
|
1
|
+
import { createAuthEndpoint } from '@better-auth/core/api';
|
|
4
2
|
|
|
5
3
|
/** All supported route names as const for type safety */
|
|
6
4
|
declare const ROUTE_NAMES: {
|
|
@@ -31,13 +29,11 @@ type HandleBetterAuthRouteFn = (args: {
|
|
|
31
29
|
status: number;
|
|
32
30
|
body: unknown;
|
|
33
31
|
}>;
|
|
32
|
+
type AutumnEndpoint = ReturnType<typeof createAuthEndpoint>;
|
|
34
33
|
/**
|
|
35
34
|
* Creates a better-auth endpoint for a given route name.
|
|
36
35
|
* Each route needs its own call to preserve TypeScript literal types for the path.
|
|
37
36
|
*/
|
|
38
|
-
declare const createAutumnEndpoint: <T extends RouteName>(routeName: T, handleRoute: HandleBetterAuthRouteFn) =>
|
|
39
|
-
method: "POST";
|
|
40
|
-
body: zod_v4.ZodType<unknown, unknown, z.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
41
|
-
}, Record<string, unknown> | null>;
|
|
37
|
+
declare const createAutumnEndpoint: <T extends RouteName>(routeName: T, handleRoute: HandleBetterAuthRouteFn) => AutumnEndpoint;
|
|
42
38
|
|
|
43
|
-
export { type HandleBetterAuthRouteFn as H, type RouteName as R, createAutumnEndpoint as c };
|
|
39
|
+
export { type AutumnEndpoint as A, type HandleBetterAuthRouteFn as H, type RouteName as R, createAutumnEndpoint as c };
|
package/dist/better-auth/{createAutumnEndpoint-CvXRCg-M.d.ts → createAutumnEndpoint-Clm1sxhQ.d.ts}
RENAMED
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import * as zod_v4 from 'zod/v4';
|
|
3
|
-
import * as z from 'zod/v4/core';
|
|
1
|
+
import { createAuthEndpoint } from '@better-auth/core/api';
|
|
4
2
|
|
|
5
3
|
/** All supported route names as const for type safety */
|
|
6
4
|
declare const ROUTE_NAMES: {
|
|
@@ -31,13 +29,11 @@ type HandleBetterAuthRouteFn = (args: {
|
|
|
31
29
|
status: number;
|
|
32
30
|
body: unknown;
|
|
33
31
|
}>;
|
|
32
|
+
type AutumnEndpoint = ReturnType<typeof createAuthEndpoint>;
|
|
34
33
|
/**
|
|
35
34
|
* Creates a better-auth endpoint for a given route name.
|
|
36
35
|
* Each route needs its own call to preserve TypeScript literal types for the path.
|
|
37
36
|
*/
|
|
38
|
-
declare const createAutumnEndpoint: <T extends RouteName>(routeName: T, handleRoute: HandleBetterAuthRouteFn) =>
|
|
39
|
-
method: "POST";
|
|
40
|
-
body: zod_v4.ZodType<unknown, unknown, z.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
41
|
-
}, Record<string, unknown> | null>;
|
|
37
|
+
declare const createAutumnEndpoint: <T extends RouteName>(routeName: T, handleRoute: HandleBetterAuthRouteFn) => AutumnEndpoint;
|
|
42
38
|
|
|
43
|
-
export { type HandleBetterAuthRouteFn as H, type RouteName as R, createAutumnEndpoint as c };
|
|
39
|
+
export { type AutumnEndpoint as A, type HandleBetterAuthRouteFn as H, type RouteName as R, createAutumnEndpoint as c };
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import { R as RouteName, c as createAutumnEndpoint } from './createAutumnEndpoint-
|
|
1
|
+
import { R as RouteName, c as createAutumnEndpoint } from './createAutumnEndpoint-Clm1sxhQ.mjs';
|
|
2
2
|
import { AutumnOptions } from './types.mjs';
|
|
3
|
-
import '
|
|
4
|
-
import 'zod/v4';
|
|
5
|
-
import 'zod/v4/core';
|
|
3
|
+
import '@better-auth/core/api';
|
|
6
4
|
|
|
7
5
|
/** Type for a single autumn endpoint */
|
|
8
6
|
type AutumnEndpoint<T extends RouteName> = ReturnType<typeof createAutumnEndpoint<T>>;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import { R as RouteName, c as createAutumnEndpoint } from './createAutumnEndpoint-
|
|
1
|
+
import { R as RouteName, c as createAutumnEndpoint } from './createAutumnEndpoint-Clm1sxhQ.js';
|
|
2
2
|
import { AutumnOptions } from './types.js';
|
|
3
|
-
import '
|
|
4
|
-
import 'zod/v4';
|
|
5
|
-
import 'zod/v4/core';
|
|
3
|
+
import '@better-auth/core/api';
|
|
6
4
|
|
|
7
5
|
/** Type for a single autumn endpoint */
|
|
8
6
|
type AutumnEndpoint<T extends RouteName> = ReturnType<typeof createAutumnEndpoint<T>>;
|