autumn-js 0.0.111 → 0.0.113
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/libraries/backend/better-auth.js +2 -2
- package/dist/libraries/backend/better-auth.mjs +7 -7
- package/dist/libraries/backend/{chunk-DMHG3POG.mjs → chunk-74THWZUU.mjs} +6 -6
- package/dist/libraries/backend/{chunk-BV3SY6BB.mjs → chunk-B5EK655Y.mjs} +1 -1
- package/dist/libraries/backend/{chunk-26E2Z26Q.mjs → chunk-BNRLG2NJ.mjs} +2 -2
- package/dist/libraries/backend/{chunk-YTCNYNTM.mjs → chunk-C342MVRJ.mjs} +1 -1
- package/dist/libraries/backend/{chunk-XEHT6LRT.mjs → chunk-EUAZMSHG.mjs} +1 -1
- package/dist/libraries/backend/{chunk-TWERY4S2.mjs → chunk-NBQSYUOH.mjs} +1 -1
- package/dist/libraries/backend/{chunk-CLW3UTC5.mjs → chunk-ZHA3DHVC.mjs} +1 -1
- package/dist/libraries/backend/convex.js +2 -2
- package/dist/libraries/backend/convex.mjs +7 -7
- package/dist/libraries/backend/elysia.js +2 -2
- package/dist/libraries/backend/elysia.mjs +7 -7
- package/dist/libraries/backend/express.d.mts +1 -1
- package/dist/libraries/backend/express.d.ts +1 -1
- package/dist/libraries/backend/express.js +2 -2
- package/dist/libraries/backend/express.mjs +7 -7
- package/dist/libraries/backend/fastify.js +2 -2
- package/dist/libraries/backend/fastify.mjs +7 -7
- package/dist/libraries/backend/hono.js +2 -2
- package/dist/libraries/backend/hono.mjs +7 -7
- package/dist/libraries/backend/next.d.mts +3 -3
- package/dist/libraries/backend/next.d.ts +3 -3
- package/dist/libraries/backend/next.js +30 -8
- package/dist/libraries/backend/next.mjs +35 -13
- package/dist/libraries/backend/react-router.js +2 -2
- package/dist/libraries/backend/react-router.mjs +7 -7
- package/dist/libraries/backend/{referralTypes-C9zChWVP.d.mts → referralTypes-COVVwj-1.d.mts} +12 -12
- package/dist/libraries/backend/{referralTypes-DuBjp_OL.d.ts → referralTypes-qMay-K9l.d.ts} +12 -12
- package/dist/libraries/backend/remix_dep.js +2 -2
- package/dist/libraries/backend/remix_dep.mjs +7 -7
- package/dist/libraries/backend/routes/backendRouter.js +2 -2
- package/dist/libraries/backend/routes/backendRouter.mjs +7 -7
- package/dist/libraries/backend/routes/entityRoutes.js +2 -2
- package/dist/libraries/backend/routes/entityRoutes.mjs +3 -3
- package/dist/libraries/backend/routes/genRoutes.js +2 -2
- package/dist/libraries/backend/routes/genRoutes.mjs +3 -3
- package/dist/libraries/backend/routes/productRoutes.js +2 -2
- package/dist/libraries/backend/routes/productRoutes.mjs +3 -3
- package/dist/libraries/backend/routes/referralRoutes.js +2 -2
- package/dist/libraries/backend/routes/referralRoutes.mjs +3 -3
- package/dist/libraries/backend/supabase.js +2 -2
- package/dist/libraries/backend/supabase.mjs +7 -7
- package/dist/libraries/backend/tanstack.js +2 -2
- package/dist/libraries/backend/tanstack.mjs +7 -7
- package/dist/libraries/backend/utils/backendRes.js +2 -2
- package/dist/libraries/backend/utils/backendRes.mjs +1 -1
- package/dist/libraries/backend/utils/withAuth.d.mts +1 -1
- package/dist/libraries/backend/utils/withAuth.d.ts +1 -1
- package/dist/libraries/backend/utils/withAuth.js +2 -2
- package/dist/libraries/backend/utils/withAuth.mjs +2 -2
- package/dist/libraries/react/AutumnContext.d.mts +6 -6
- package/dist/libraries/react/AutumnContext.d.ts +6 -6
- package/dist/libraries/react/AutumnContext.js +2 -2
- package/dist/libraries/react/AutumnContext.mjs +8 -8
- package/dist/libraries/react/BaseAutumnProvider.d.mts +6 -6
- package/dist/libraries/react/BaseAutumnProvider.d.ts +6 -6
- package/dist/libraries/react/BaseAutumnProvider.js +7 -3
- package/dist/libraries/react/BaseAutumnProvider.mjs +13 -13
- package/dist/libraries/react/{ReactAutumnClient-BW-6a3gM.d.ts → ReactAutumnClient-BNcDsxYe.d.ts} +8 -8
- package/dist/libraries/react/{ReactAutumnClient-Cs9voLwk.d.mts → ReactAutumnClient-Bm0Y_zzP.d.mts} +8 -8
- package/dist/libraries/react/ReactAutumnProvider.d.mts +2 -2
- package/dist/libraries/react/ReactAutumnProvider.d.ts +2 -2
- package/dist/libraries/react/ReactAutumnProvider.js +7 -3
- package/dist/libraries/react/ReactAutumnProvider.mjs +14 -14
- package/dist/{next/client/attachTypes-Pf0NPwsI.d.mts → libraries/react/attachTypes-BQzswBtK.d.mts} +7 -7
- package/dist/{next/client/attachTypes-DM5XWLRr.d.ts → libraries/react/attachTypes-DIsESO5Y.d.ts} +7 -7
- package/dist/libraries/react/{chunk-THV76QT6.mjs → chunk-3C7OO2N3.mjs} +1 -1
- package/dist/libraries/react/{chunk-AGQVYTPY.mjs → chunk-4NIALZY6.mjs} +28 -28
- package/dist/libraries/react/{chunk-673LDIYO.mjs → chunk-4X4TKILZ.mjs} +3 -3
- package/dist/libraries/react/{chunk-WR2HU2B2.mjs → chunk-CYFC6BOH.mjs} +3 -3
- package/dist/libraries/react/{chunk-UJHH6JP6.mjs → chunk-DDYSMKLY.mjs} +1 -1
- package/dist/libraries/react/{chunk-7BVXQ3DF.mjs → chunk-DGBYTZLQ.mjs} +2 -2
- package/dist/libraries/react/{chunk-YN4HCDGX.mjs → chunk-EGPEAPRK.mjs} +2 -2
- package/dist/libraries/react/{chunk-EEEUDTTP.mjs → chunk-F324RNGU.mjs} +17 -17
- package/dist/libraries/react/{chunk-D3GL2QV3.mjs → chunk-GUZH4TKK.mjs} +2 -2
- package/dist/libraries/react/{chunk-CQD37NSX.mjs → chunk-HDMOJP3E.mjs} +1 -1
- package/dist/libraries/react/{chunk-6ZY2HQCJ.mjs → chunk-JP6WLDHX.mjs} +2 -2
- package/dist/libraries/react/{chunk-S7DJFJ6P.mjs → chunk-PLGLCII4.mjs} +2 -2
- package/dist/libraries/react/{chunk-J7CZEH52.mjs → chunk-PRFT4OKG.mjs} +1 -1
- package/dist/libraries/react/{chunk-TL2F3PPG.mjs → chunk-QEKHWOGC.mjs} +1 -1
- package/dist/libraries/react/{chunk-CK7IHYXM.mjs → chunk-QMOLXJIH.mjs} +3 -3
- package/dist/libraries/react/{chunk-KX42ZLE6.mjs → chunk-RL47UQK4.mjs} +6 -2
- package/dist/libraries/react/client/ReactAutumnClient.d.mts +6 -6
- package/dist/libraries/react/client/ReactAutumnClient.d.ts +6 -6
- package/dist/libraries/react/client/ReactAutumnClient.js +2 -2
- package/dist/libraries/react/client/ReactAutumnClient.mjs +7 -7
- package/dist/libraries/react/client/clientCompMethods.d.mts +6 -6
- package/dist/libraries/react/client/clientCompMethods.d.ts +6 -6
- package/dist/libraries/react/client/clientCusMethods.d.mts +6 -6
- package/dist/libraries/react/client/clientCusMethods.d.ts +6 -6
- package/dist/libraries/react/client/clientEntityMethods.d.mts +6 -6
- package/dist/libraries/react/client/clientEntityMethods.d.ts +6 -6
- package/dist/libraries/react/client/clientGenMethods.d.mts +6 -6
- package/dist/libraries/react/client/clientGenMethods.d.ts +6 -6
- package/dist/libraries/react/client/clientProdMethods.d.mts +6 -6
- package/dist/libraries/react/client/clientProdMethods.d.ts +6 -6
- package/dist/libraries/react/client/clientReferralMethods.d.mts +6 -6
- package/dist/libraries/react/client/clientReferralMethods.d.ts +6 -6
- package/dist/libraries/react/client/types/clientGenTypes.js +2 -2
- package/dist/libraries/react/client/types/clientGenTypes.mjs +1 -1
- package/dist/libraries/react/components/attach-dialog/attach-dialog-synced.d.mts +2 -2
- package/dist/libraries/react/components/attach-dialog/attach-dialog-synced.d.ts +2 -2
- package/dist/libraries/react/components/attach-dialog/attach-dialog-synced.js +7 -3
- package/dist/libraries/react/components/attach-dialog/attach-dialog-synced.mjs +29 -29
- package/dist/libraries/react/components/attach-dialog/lib/attach-content.d.mts +2 -2
- package/dist/libraries/react/components/attach-dialog/lib/attach-content.d.ts +2 -2
- package/dist/libraries/react/components/check-dialog/check-dialog-synced.js +2 -2
- package/dist/libraries/react/components/check-dialog/check-dialog-synced.mjs +29 -29
- package/dist/libraries/react/components/check-dialog/lib/check-content.d.mts +1 -1
- package/dist/libraries/react/components/check-dialog/lib/check-content.d.ts +1 -1
- package/dist/libraries/react/components/pricing-table/lib/pricing-table-content.d.mts +1 -1
- package/dist/libraries/react/components/pricing-table/lib/pricing-table-content.d.ts +1 -1
- package/dist/libraries/react/components/pricing-table/pricing-table-synced.d.mts +1 -1
- package/dist/libraries/react/components/pricing-table/pricing-table-synced.d.ts +1 -1
- package/dist/libraries/react/components/pricing-table/pricing-table-synced.js +7 -3
- package/dist/libraries/react/components/pricing-table/pricing-table-synced.mjs +29 -29
- package/dist/libraries/react/components/ui/button.d.mts +1 -1
- package/dist/libraries/react/components/ui/button.d.ts +1 -1
- package/dist/libraries/react/components/ui/dialog.mjs +2 -2
- package/dist/libraries/react/{cusTypes-BnKb-vxP.d.mts → cusTypes-CI8GNjww.d.mts} +11 -11
- package/dist/libraries/react/{cusTypes-CWMup6bJ.d.ts → cusTypes-CwLJs1D1.d.ts} +11 -11
- package/dist/libraries/react/{entTypes-B0UaW3Jh.d.ts → entTypes-ByG7ZqG-.d.ts} +1 -1
- package/dist/libraries/react/{entTypes-BqZEH0S_.d.mts → entTypes-Kh8o7OKO.d.mts} +1 -1
- package/dist/libraries/react/{genTypes-DufheKvo.d.mts → genTypes-BjDGPkYi.d.mts} +5 -5
- package/dist/libraries/react/{genTypes-CNkoakWD.d.ts → genTypes-CtkYtnSx.d.ts} +5 -5
- package/dist/libraries/react/hooks/helpers/handleCheck.d.mts +6 -6
- package/dist/libraries/react/hooks/helpers/handleCheck.d.ts +6 -6
- package/dist/libraries/react/hooks/helpers/handleCheck.js +7 -3
- package/dist/libraries/react/hooks/helpers/handleCheck.mjs +2 -2
- package/dist/libraries/react/hooks/helpers/useAutumnBase.d.mts +6 -6
- package/dist/libraries/react/hooks/helpers/useAutumnBase.d.ts +6 -6
- package/dist/libraries/react/hooks/helpers/useAutumnBase.js +2 -2
- package/dist/libraries/react/hooks/helpers/useAutumnBase.mjs +3 -3
- package/dist/libraries/react/hooks/useAnalytics.d.mts +2 -2
- package/dist/libraries/react/hooks/useAnalytics.d.ts +2 -2
- package/dist/libraries/react/hooks/useAnalytics.js +2 -2
- package/dist/libraries/react/hooks/useAnalytics.mjs +9 -9
- package/dist/libraries/react/hooks/useCustomer.d.mts +6 -6
- package/dist/libraries/react/hooks/useCustomer.d.ts +6 -6
- package/dist/libraries/react/hooks/useCustomer.js +7 -3
- package/dist/libraries/react/hooks/useCustomer.mjs +13 -13
- package/dist/libraries/react/hooks/useCustomerBase.d.mts +6 -6
- package/dist/libraries/react/hooks/useCustomerBase.d.ts +6 -6
- package/dist/libraries/react/hooks/useCustomerBase.js +7 -3
- package/dist/libraries/react/hooks/useCustomerBase.mjs +12 -12
- package/dist/libraries/react/hooks/useEntity.d.mts +4 -4
- package/dist/libraries/react/hooks/useEntity.d.ts +4 -4
- package/dist/libraries/react/hooks/useEntity.js +7 -3
- package/dist/libraries/react/hooks/useEntity.mjs +13 -13
- package/dist/libraries/react/hooks/useEntityBase.d.mts +6 -6
- package/dist/libraries/react/hooks/useEntityBase.d.ts +6 -6
- package/dist/libraries/react/hooks/useEntityBase.js +7 -3
- package/dist/libraries/react/hooks/useEntityBase.mjs +12 -12
- package/dist/libraries/react/hooks/usePaywall.d.mts +1 -1
- package/dist/libraries/react/hooks/usePaywall.d.ts +1 -1
- package/dist/libraries/react/hooks/usePaywall.js +2 -2
- package/dist/libraries/react/hooks/usePaywall.mjs +9 -9
- package/dist/libraries/react/hooks/usePricingTable.d.mts +1 -1
- package/dist/libraries/react/hooks/usePricingTable.d.ts +1 -1
- package/dist/libraries/react/hooks/usePricingTable.js +2 -2
- package/dist/libraries/react/hooks/usePricingTable.mjs +10 -10
- package/dist/libraries/react/hooks/usePricingTableBase.d.mts +6 -6
- package/dist/libraries/react/hooks/usePricingTableBase.d.ts +6 -6
- package/dist/libraries/react/hooks/usePricingTableBase.js +2 -2
- package/dist/libraries/react/hooks/usePricingTableBase.mjs +2 -2
- package/dist/libraries/react/hooks/useProductsBase.d.mts +6 -6
- package/dist/libraries/react/hooks/useProductsBase.d.ts +6 -6
- package/dist/libraries/react/index.d.mts +12 -12
- package/dist/libraries/react/index.d.ts +12 -12
- package/dist/libraries/react/index.js +7 -3
- package/dist/libraries/react/index.mjs +7 -3
- package/dist/libraries/react/{prodTypes-BlLYTHoR.d.mts → prodTypes-Y1CLtmfa.d.mts} +9 -9
- package/dist/libraries/react/{prodTypes-BlLYTHoR.d.ts → prodTypes-Y1CLtmfa.d.ts} +9 -9
- package/dist/next/AutumnProvider.d.mts +37 -3
- package/dist/next/AutumnProvider.d.ts +37 -3
- package/dist/next/client/NextAutumnClient.d.mts +5 -5
- package/dist/next/client/NextAutumnClient.d.ts +5 -5
- package/dist/next/client/NextAutumnProvider.d.mts +2 -2
- package/dist/next/client/NextAutumnProvider.d.ts +2 -2
- package/dist/{libraries/react/attachTypes-DWeMSBmL.d.ts → next/client/attachTypes-CACw68CG.d.ts} +5 -5
- package/dist/{libraries/react/attachTypes-4AuOXG1E.d.mts → next/client/attachTypes-DFz8xggN.d.mts} +5 -5
- package/dist/next/client/{clientAttachTypes-BeoVoLvx.d.ts → clientAttachTypes-Chgx4uq1.d.ts} +1 -1
- package/dist/next/client/{clientAttachTypes-CWF6N5NJ.d.mts → clientAttachTypes-CsHcLMla.d.mts} +1 -1
- package/dist/next/client/clientUtils.d.mts +3 -3
- package/dist/next/client/clientUtils.d.ts +3 -3
- package/dist/next/client/{cusTypes-Dv_i9zPh.d.mts → cusTypes-C9G9xqQj.d.ts} +7 -7
- package/dist/next/client/{cusTypes-QmO8mj7R.d.ts → cusTypes-CfOlwucH.d.mts} +7 -7
- package/dist/next/client/{entTypes-CKUB-m_4.d.mts → entTypes-BF3ut9It.d.mts} +1 -1
- package/dist/next/client/{entTypes-DTHm0Be2.d.ts → entTypes-_335WLpv.d.ts} +1 -1
- package/dist/next/client/hooks/useAutumn.d.mts +4 -4
- package/dist/next/client/hooks/useAutumn.d.ts +4 -4
- package/dist/next/client/hooks/useCustomer.d.mts +5 -5
- package/dist/next/client/hooks/useCustomer.d.ts +5 -5
- package/dist/next/client/hooks/useEntity.d.mts +4 -4
- package/dist/next/client/hooks/useEntity.d.ts +4 -4
- package/dist/next/client/hooks/usePricingTable.d.mts +1 -1
- package/dist/next/client/hooks/usePricingTable.d.ts +1 -1
- package/dist/next/client/{prodTypes-CCk7TL_t.d.mts → prodTypes-CYd9Q1Rw.d.mts} +6 -6
- package/dist/next/client/{prodTypes-CCk7TL_t.d.ts → prodTypes-CYd9Q1Rw.d.ts} +6 -6
- package/dist/next/client/types.d.mts +3 -3
- package/dist/next/client/types.d.ts +3 -3
- package/dist/next/index.d.mts +4 -660
- package/dist/next/index.d.ts +4 -660
- package/dist/next/index.js +0 -21
- package/dist/next/index.mjs +0 -10
- package/dist/next/server/auth/withNextAuth.d.mts +1 -1
- package/dist/next/server/auth/withNextAuth.d.ts +1 -1
- package/dist/next/server/componentActions.d.mts +1 -1
- package/dist/next/server/componentActions.d.ts +1 -1
- package/dist/next/server/cusActions.d.mts +1 -1
- package/dist/next/server/cusActions.d.ts +1 -1
- package/dist/next/server/{cusTypes-d13IMtrx.d.mts → cusTypes-PcPWkSme.d.mts} +12 -12
- package/dist/next/server/{cusTypes-d13IMtrx.d.ts → cusTypes-PcPWkSme.d.ts} +12 -12
- package/dist/next/server/genActions.d.mts +1 -1
- package/dist/next/server/genActions.d.ts +1 -1
- package/dist/sdk/index.d.mts +12 -12
- package/dist/sdk/index.d.ts +12 -12
- package/dist/sdk/index.js +2 -2
- package/dist/sdk/index.mjs +2 -2
- package/dist/utils/encryptUtils.js +2 -2
- package/dist/utils/encryptUtils.mjs +2 -2
- package/package.json +1 -1
- package/dist/next/AutumnProvider-BGyIGvAS.d.mts +0 -421
- package/dist/next/AutumnProvider-BGyIGvAS.d.ts +0 -421
- package/dist/libraries/react/{chunk-W5N4PVQU.mjs → chunk-TX3X2LDE.mjs} +3 -3
|
@@ -529,10 +529,10 @@ var import_zod2 = require("zod");
|
|
|
529
529
|
var CoreCusFeatureSchema = import_zod2.z.object({
|
|
530
530
|
unlimited: import_zod2.z.boolean().optional(),
|
|
531
531
|
interval: import_zod2.z.nativeEnum(ProductItemInterval).optional(),
|
|
532
|
-
balance: import_zod2.z.number().
|
|
532
|
+
balance: import_zod2.z.number().nullish(),
|
|
533
533
|
usage: import_zod2.z.number().optional(),
|
|
534
534
|
included_usage: import_zod2.z.number().optional(),
|
|
535
|
-
next_reset_at: import_zod2.z.number().
|
|
535
|
+
next_reset_at: import_zod2.z.number().nullish(),
|
|
536
536
|
overage_allowed: import_zod2.z.boolean().optional(),
|
|
537
537
|
usage_limit: import_zod2.z.number().optional(),
|
|
538
538
|
breakdown: import_zod2.z.array(
|
|
@@ -3,12 +3,12 @@ import {
|
|
|
3
3
|
} from "./chunk-UNZHJTEY.mjs";
|
|
4
4
|
import {
|
|
5
5
|
createRouterWithOptions
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-74THWZUU.mjs";
|
|
7
|
+
import "./chunk-B5EK655Y.mjs";
|
|
8
|
+
import "./chunk-EUAZMSHG.mjs";
|
|
9
|
+
import "./chunk-C342MVRJ.mjs";
|
|
10
|
+
import "./chunk-ZHA3DHVC.mjs";
|
|
11
|
+
import "./chunk-NBQSYUOH.mjs";
|
|
12
12
|
import {
|
|
13
13
|
AttachParamsSchema,
|
|
14
14
|
Autumn,
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
CustomerExpandEnum,
|
|
20
20
|
RedeemReferralCodeParamsSchema,
|
|
21
21
|
TrackParamsSchema
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-BNRLG2NJ.mjs";
|
|
23
23
|
import "./chunk-45WVZY23.mjs";
|
|
24
24
|
import "./chunk-KSG3E4Q2.mjs";
|
|
25
25
|
import "./chunk-6DZX6EAA.mjs";
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
addProductRoutes
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-B5EK655Y.mjs";
|
|
4
4
|
import {
|
|
5
5
|
addReferralRoutes
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-EUAZMSHG.mjs";
|
|
7
7
|
import {
|
|
8
8
|
addEntityRoutes
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-C342MVRJ.mjs";
|
|
10
10
|
import {
|
|
11
11
|
addGenRoutes
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-ZHA3DHVC.mjs";
|
|
13
13
|
import {
|
|
14
14
|
withAuth
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-NBQSYUOH.mjs";
|
|
16
16
|
import {
|
|
17
17
|
fetchPricingTable
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-BNRLG2NJ.mjs";
|
|
19
19
|
import {
|
|
20
20
|
BASE_PATH
|
|
21
21
|
} from "./chunk-KSG3E4Q2.mjs";
|
|
@@ -455,10 +455,10 @@ import { z as z2 } from "zod";
|
|
|
455
455
|
var CoreCusFeatureSchema = z2.object({
|
|
456
456
|
unlimited: z2.boolean().optional(),
|
|
457
457
|
interval: z2.nativeEnum(ProductItemInterval).optional(),
|
|
458
|
-
balance: z2.number().
|
|
458
|
+
balance: z2.number().nullish(),
|
|
459
459
|
usage: z2.number().optional(),
|
|
460
460
|
included_usage: z2.number().optional(),
|
|
461
|
-
next_reset_at: z2.number().
|
|
461
|
+
next_reset_at: z2.number().nullish(),
|
|
462
462
|
overage_allowed: z2.boolean().optional(),
|
|
463
463
|
usage_limit: z2.number().optional(),
|
|
464
464
|
breakdown: z2.array(
|
|
@@ -526,10 +526,10 @@ var import_zod2 = require("zod");
|
|
|
526
526
|
var CoreCusFeatureSchema = import_zod2.z.object({
|
|
527
527
|
unlimited: import_zod2.z.boolean().optional(),
|
|
528
528
|
interval: import_zod2.z.nativeEnum(ProductItemInterval).optional(),
|
|
529
|
-
balance: import_zod2.z.number().
|
|
529
|
+
balance: import_zod2.z.number().nullish(),
|
|
530
530
|
usage: import_zod2.z.number().optional(),
|
|
531
531
|
included_usage: import_zod2.z.number().optional(),
|
|
532
|
-
next_reset_at: import_zod2.z.number().
|
|
532
|
+
next_reset_at: import_zod2.z.number().nullish(),
|
|
533
533
|
overage_allowed: import_zod2.z.boolean().optional(),
|
|
534
534
|
usage_limit: import_zod2.z.number().optional(),
|
|
535
535
|
breakdown: import_zod2.z.array(
|
|
@@ -3,15 +3,15 @@ import {
|
|
|
3
3
|
} from "./chunk-UNZHJTEY.mjs";
|
|
4
4
|
import {
|
|
5
5
|
createRouterWithOptions
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-74THWZUU.mjs";
|
|
7
|
+
import "./chunk-B5EK655Y.mjs";
|
|
8
|
+
import "./chunk-EUAZMSHG.mjs";
|
|
9
|
+
import "./chunk-C342MVRJ.mjs";
|
|
10
|
+
import "./chunk-ZHA3DHVC.mjs";
|
|
11
|
+
import "./chunk-NBQSYUOH.mjs";
|
|
12
12
|
import {
|
|
13
13
|
Autumn
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-BNRLG2NJ.mjs";
|
|
15
15
|
import "./chunk-45WVZY23.mjs";
|
|
16
16
|
import "./chunk-KSG3E4Q2.mjs";
|
|
17
17
|
import "./chunk-6DZX6EAA.mjs";
|
|
@@ -527,10 +527,10 @@ var import_zod2 = require("zod");
|
|
|
527
527
|
var CoreCusFeatureSchema = import_zod2.z.object({
|
|
528
528
|
unlimited: import_zod2.z.boolean().optional(),
|
|
529
529
|
interval: import_zod2.z.nativeEnum(ProductItemInterval).optional(),
|
|
530
|
-
balance: import_zod2.z.number().
|
|
530
|
+
balance: import_zod2.z.number().nullish(),
|
|
531
531
|
usage: import_zod2.z.number().optional(),
|
|
532
532
|
included_usage: import_zod2.z.number().optional(),
|
|
533
|
-
next_reset_at: import_zod2.z.number().
|
|
533
|
+
next_reset_at: import_zod2.z.number().nullish(),
|
|
534
534
|
overage_allowed: import_zod2.z.boolean().optional(),
|
|
535
535
|
usage_limit: import_zod2.z.number().optional(),
|
|
536
536
|
breakdown: import_zod2.z.array(
|
|
@@ -3,15 +3,15 @@ import {
|
|
|
3
3
|
} from "./chunk-UNZHJTEY.mjs";
|
|
4
4
|
import {
|
|
5
5
|
createRouterWithOptions
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-74THWZUU.mjs";
|
|
7
|
+
import "./chunk-B5EK655Y.mjs";
|
|
8
|
+
import "./chunk-EUAZMSHG.mjs";
|
|
9
|
+
import "./chunk-C342MVRJ.mjs";
|
|
10
|
+
import "./chunk-ZHA3DHVC.mjs";
|
|
11
|
+
import "./chunk-NBQSYUOH.mjs";
|
|
12
12
|
import {
|
|
13
13
|
Autumn
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-BNRLG2NJ.mjs";
|
|
15
15
|
import "./chunk-45WVZY23.mjs";
|
|
16
16
|
import {
|
|
17
17
|
autumnApiUrl
|
|
@@ -527,10 +527,10 @@ var import_zod2 = require("zod");
|
|
|
527
527
|
var CoreCusFeatureSchema = import_zod2.z.object({
|
|
528
528
|
unlimited: import_zod2.z.boolean().optional(),
|
|
529
529
|
interval: import_zod2.z.nativeEnum(ProductItemInterval).optional(),
|
|
530
|
-
balance: import_zod2.z.number().
|
|
530
|
+
balance: import_zod2.z.number().nullish(),
|
|
531
531
|
usage: import_zod2.z.number().optional(),
|
|
532
532
|
included_usage: import_zod2.z.number().optional(),
|
|
533
|
-
next_reset_at: import_zod2.z.number().
|
|
533
|
+
next_reset_at: import_zod2.z.number().nullish(),
|
|
534
534
|
overage_allowed: import_zod2.z.boolean().optional(),
|
|
535
535
|
usage_limit: import_zod2.z.number().optional(),
|
|
536
536
|
breakdown: import_zod2.z.array(
|
|
@@ -3,15 +3,15 @@ import {
|
|
|
3
3
|
} from "./chunk-UNZHJTEY.mjs";
|
|
4
4
|
import {
|
|
5
5
|
createRouterWithOptions
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-74THWZUU.mjs";
|
|
7
|
+
import "./chunk-B5EK655Y.mjs";
|
|
8
|
+
import "./chunk-EUAZMSHG.mjs";
|
|
9
|
+
import "./chunk-C342MVRJ.mjs";
|
|
10
|
+
import "./chunk-ZHA3DHVC.mjs";
|
|
11
|
+
import "./chunk-NBQSYUOH.mjs";
|
|
12
12
|
import {
|
|
13
13
|
Autumn
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-BNRLG2NJ.mjs";
|
|
15
15
|
import "./chunk-45WVZY23.mjs";
|
|
16
16
|
import {
|
|
17
17
|
autumnApiUrl
|
|
@@ -527,10 +527,10 @@ var import_zod2 = require("zod");
|
|
|
527
527
|
var CoreCusFeatureSchema = import_zod2.z.object({
|
|
528
528
|
unlimited: import_zod2.z.boolean().optional(),
|
|
529
529
|
interval: import_zod2.z.nativeEnum(ProductItemInterval).optional(),
|
|
530
|
-
balance: import_zod2.z.number().
|
|
530
|
+
balance: import_zod2.z.number().nullish(),
|
|
531
531
|
usage: import_zod2.z.number().optional(),
|
|
532
532
|
included_usage: import_zod2.z.number().optional(),
|
|
533
|
-
next_reset_at: import_zod2.z.number().
|
|
533
|
+
next_reset_at: import_zod2.z.number().nullish(),
|
|
534
534
|
overage_allowed: import_zod2.z.boolean().optional(),
|
|
535
535
|
usage_limit: import_zod2.z.number().optional(),
|
|
536
536
|
breakdown: import_zod2.z.array(
|
|
@@ -3,15 +3,15 @@ import {
|
|
|
3
3
|
} from "./chunk-UNZHJTEY.mjs";
|
|
4
4
|
import {
|
|
5
5
|
createRouterWithOptions
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-74THWZUU.mjs";
|
|
7
|
+
import "./chunk-B5EK655Y.mjs";
|
|
8
|
+
import "./chunk-EUAZMSHG.mjs";
|
|
9
|
+
import "./chunk-C342MVRJ.mjs";
|
|
10
|
+
import "./chunk-ZHA3DHVC.mjs";
|
|
11
|
+
import "./chunk-NBQSYUOH.mjs";
|
|
12
12
|
import {
|
|
13
13
|
Autumn
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-BNRLG2NJ.mjs";
|
|
15
15
|
import "./chunk-45WVZY23.mjs";
|
|
16
16
|
import {
|
|
17
17
|
autumnApiUrl
|
|
@@ -527,10 +527,10 @@ var import_zod2 = require("zod");
|
|
|
527
527
|
var CoreCusFeatureSchema = import_zod2.z.object({
|
|
528
528
|
unlimited: import_zod2.z.boolean().optional(),
|
|
529
529
|
interval: import_zod2.z.nativeEnum(ProductItemInterval).optional(),
|
|
530
|
-
balance: import_zod2.z.number().
|
|
530
|
+
balance: import_zod2.z.number().nullish(),
|
|
531
531
|
usage: import_zod2.z.number().optional(),
|
|
532
532
|
included_usage: import_zod2.z.number().optional(),
|
|
533
|
-
next_reset_at: import_zod2.z.number().
|
|
533
|
+
next_reset_at: import_zod2.z.number().nullish(),
|
|
534
534
|
overage_allowed: import_zod2.z.boolean().optional(),
|
|
535
535
|
usage_limit: import_zod2.z.number().optional(),
|
|
536
536
|
breakdown: import_zod2.z.array(
|
|
@@ -3,15 +3,15 @@ import {
|
|
|
3
3
|
} from "./chunk-UNZHJTEY.mjs";
|
|
4
4
|
import {
|
|
5
5
|
createRouterWithOptions
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-74THWZUU.mjs";
|
|
7
|
+
import "./chunk-B5EK655Y.mjs";
|
|
8
|
+
import "./chunk-EUAZMSHG.mjs";
|
|
9
|
+
import "./chunk-C342MVRJ.mjs";
|
|
10
|
+
import "./chunk-ZHA3DHVC.mjs";
|
|
11
|
+
import "./chunk-NBQSYUOH.mjs";
|
|
12
12
|
import {
|
|
13
13
|
Autumn
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-BNRLG2NJ.mjs";
|
|
15
15
|
import "./chunk-45WVZY23.mjs";
|
|
16
16
|
import {
|
|
17
17
|
autumnApiUrl
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { NextRequest
|
|
1
|
+
import { NextRequest } from 'next/server';
|
|
2
2
|
import { AuthResult } from './utils/AuthFunction.mjs';
|
|
3
3
|
|
|
4
4
|
declare function autumnHandler(options: {
|
|
@@ -6,8 +6,8 @@ declare function autumnHandler(options: {
|
|
|
6
6
|
url?: string;
|
|
7
7
|
secretKey?: string;
|
|
8
8
|
}): {
|
|
9
|
-
GET: (request:
|
|
10
|
-
POST: (request:
|
|
9
|
+
GET: (request: any, response?: any) => Promise<any>;
|
|
10
|
+
POST: (request: any, response?: any) => Promise<any>;
|
|
11
11
|
};
|
|
12
12
|
|
|
13
13
|
export { autumnHandler };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { NextRequest
|
|
1
|
+
import { NextRequest } from 'next/server';
|
|
2
2
|
import { AuthResult } from './utils/AuthFunction.js';
|
|
3
3
|
|
|
4
4
|
declare function autumnHandler(options: {
|
|
@@ -6,8 +6,8 @@ declare function autumnHandler(options: {
|
|
|
6
6
|
url?: string;
|
|
7
7
|
secretKey?: string;
|
|
8
8
|
}): {
|
|
9
|
-
GET: (request:
|
|
10
|
-
POST: (request:
|
|
9
|
+
GET: (request: any, response?: any) => Promise<any>;
|
|
10
|
+
POST: (request: any, response?: any) => Promise<any>;
|
|
11
11
|
};
|
|
12
12
|
|
|
13
13
|
export { autumnHandler };
|
|
@@ -4047,10 +4047,10 @@ var import_zod2 = require("zod");
|
|
|
4047
4047
|
var CoreCusFeatureSchema = import_zod2.z.object({
|
|
4048
4048
|
unlimited: import_zod2.z.boolean().optional(),
|
|
4049
4049
|
interval: import_zod2.z.nativeEnum(ProductItemInterval).optional(),
|
|
4050
|
-
balance: import_zod2.z.number().
|
|
4050
|
+
balance: import_zod2.z.number().nullish(),
|
|
4051
4051
|
usage: import_zod2.z.number().optional(),
|
|
4052
4052
|
included_usage: import_zod2.z.number().optional(),
|
|
4053
|
-
next_reset_at: import_zod2.z.number().
|
|
4053
|
+
next_reset_at: import_zod2.z.number().nullish(),
|
|
4054
4054
|
overage_allowed: import_zod2.z.boolean().optional(),
|
|
4055
4055
|
usage_limit: import_zod2.z.number().optional(),
|
|
4056
4056
|
breakdown: import_zod2.z.array(
|
|
@@ -4669,25 +4669,43 @@ var secretKeyCheck = (secretKey) => {
|
|
|
4669
4669
|
// src/libraries/backend/next.ts
|
|
4670
4670
|
function autumnHandler(options) {
|
|
4671
4671
|
const router = createRouterWithOptions();
|
|
4672
|
-
async function handler(request) {
|
|
4672
|
+
async function handler(request, response) {
|
|
4673
4673
|
let { found, error: resError } = secretKeyCheck(options.secretKey);
|
|
4674
|
+
const isPagesRouter = response && "query" in request && "cookies" in request;
|
|
4674
4675
|
if (!found) {
|
|
4675
|
-
|
|
4676
|
+
if (isPagesRouter) {
|
|
4677
|
+
return response.status(resError.statusCode).json(resError);
|
|
4678
|
+
} else {
|
|
4679
|
+
return import_server.NextResponse.json(resError, { status: resError.statusCode });
|
|
4680
|
+
}
|
|
4676
4681
|
}
|
|
4677
4682
|
const autumn = new Autumn({
|
|
4678
4683
|
secretKey: options.secretKey || void 0,
|
|
4679
4684
|
url: options.url || autumnApiUrl
|
|
4680
4685
|
});
|
|
4681
4686
|
if (!found) {
|
|
4682
|
-
|
|
4687
|
+
if (isPagesRouter) {
|
|
4688
|
+
return response.status(500).json(resError);
|
|
4689
|
+
} else {
|
|
4690
|
+
return import_server.NextResponse.json(resError, { status: 500 });
|
|
4691
|
+
}
|
|
4683
4692
|
}
|
|
4684
4693
|
const method = request.method;
|
|
4685
|
-
|
|
4694
|
+
let url;
|
|
4695
|
+
if (!request.url.includes("http")) {
|
|
4696
|
+
url = new URL(request.url, "http://localhost:3000");
|
|
4697
|
+
} else {
|
|
4698
|
+
url = new URL(request.url);
|
|
4699
|
+
}
|
|
4686
4700
|
const searchParams = Object.fromEntries(url.searchParams);
|
|
4687
4701
|
const pathname = url.pathname;
|
|
4688
4702
|
const match = (0, import_rou36.findRoute)(router, method, pathname);
|
|
4689
4703
|
if (!match) {
|
|
4690
|
-
|
|
4704
|
+
if (isPagesRouter) {
|
|
4705
|
+
return response.status(404).json({ error: "Not found" });
|
|
4706
|
+
} else {
|
|
4707
|
+
return import_server.NextResponse.json({ error: "Not found" }, { status: 404 });
|
|
4708
|
+
}
|
|
4691
4709
|
}
|
|
4692
4710
|
const { data, params: pathParams } = match;
|
|
4693
4711
|
const { handler: handler2 } = data;
|
|
@@ -4706,7 +4724,11 @@ function autumnHandler(options) {
|
|
|
4706
4724
|
pathParams,
|
|
4707
4725
|
searchParams
|
|
4708
4726
|
});
|
|
4709
|
-
|
|
4727
|
+
if (isPagesRouter) {
|
|
4728
|
+
return response.status(result.statusCode).json(result.body);
|
|
4729
|
+
} else {
|
|
4730
|
+
return import_server.NextResponse.json(result.body, { status: result.statusCode });
|
|
4731
|
+
}
|
|
4710
4732
|
}
|
|
4711
4733
|
return {
|
|
4712
4734
|
GET: handler,
|
|
@@ -3,15 +3,15 @@ import {
|
|
|
3
3
|
} from "./chunk-UNZHJTEY.mjs";
|
|
4
4
|
import {
|
|
5
5
|
createRouterWithOptions
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-74THWZUU.mjs";
|
|
7
|
+
import "./chunk-B5EK655Y.mjs";
|
|
8
|
+
import "./chunk-EUAZMSHG.mjs";
|
|
9
|
+
import "./chunk-C342MVRJ.mjs";
|
|
10
|
+
import "./chunk-ZHA3DHVC.mjs";
|
|
11
|
+
import "./chunk-NBQSYUOH.mjs";
|
|
12
12
|
import {
|
|
13
13
|
Autumn
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-BNRLG2NJ.mjs";
|
|
15
15
|
import "./chunk-45WVZY23.mjs";
|
|
16
16
|
import {
|
|
17
17
|
autumnApiUrl
|
|
@@ -3544,25 +3544,43 @@ import { findRoute } from "rou3";
|
|
|
3544
3544
|
var import_server = __toESM(require_server());
|
|
3545
3545
|
function autumnHandler(options) {
|
|
3546
3546
|
const router = createRouterWithOptions();
|
|
3547
|
-
async function handler(request) {
|
|
3547
|
+
async function handler(request, response) {
|
|
3548
3548
|
let { found, error: resError } = secretKeyCheck(options.secretKey);
|
|
3549
|
+
const isPagesRouter = response && "query" in request && "cookies" in request;
|
|
3549
3550
|
if (!found) {
|
|
3550
|
-
|
|
3551
|
+
if (isPagesRouter) {
|
|
3552
|
+
return response.status(resError.statusCode).json(resError);
|
|
3553
|
+
} else {
|
|
3554
|
+
return import_server.NextResponse.json(resError, { status: resError.statusCode });
|
|
3555
|
+
}
|
|
3551
3556
|
}
|
|
3552
3557
|
const autumn = new Autumn({
|
|
3553
3558
|
secretKey: options.secretKey || void 0,
|
|
3554
3559
|
url: options.url || autumnApiUrl
|
|
3555
3560
|
});
|
|
3556
3561
|
if (!found) {
|
|
3557
|
-
|
|
3562
|
+
if (isPagesRouter) {
|
|
3563
|
+
return response.status(500).json(resError);
|
|
3564
|
+
} else {
|
|
3565
|
+
return import_server.NextResponse.json(resError, { status: 500 });
|
|
3566
|
+
}
|
|
3558
3567
|
}
|
|
3559
3568
|
const method = request.method;
|
|
3560
|
-
|
|
3569
|
+
let url;
|
|
3570
|
+
if (!request.url.includes("http")) {
|
|
3571
|
+
url = new URL(request.url, "http://localhost:3000");
|
|
3572
|
+
} else {
|
|
3573
|
+
url = new URL(request.url);
|
|
3574
|
+
}
|
|
3561
3575
|
const searchParams = Object.fromEntries(url.searchParams);
|
|
3562
3576
|
const pathname = url.pathname;
|
|
3563
3577
|
const match = findRoute(router, method, pathname);
|
|
3564
3578
|
if (!match) {
|
|
3565
|
-
|
|
3579
|
+
if (isPagesRouter) {
|
|
3580
|
+
return response.status(404).json({ error: "Not found" });
|
|
3581
|
+
} else {
|
|
3582
|
+
return import_server.NextResponse.json({ error: "Not found" }, { status: 404 });
|
|
3583
|
+
}
|
|
3566
3584
|
}
|
|
3567
3585
|
const { data, params: pathParams } = match;
|
|
3568
3586
|
const { handler: handler2 } = data;
|
|
@@ -3581,7 +3599,11 @@ function autumnHandler(options) {
|
|
|
3581
3599
|
pathParams,
|
|
3582
3600
|
searchParams
|
|
3583
3601
|
});
|
|
3584
|
-
|
|
3602
|
+
if (isPagesRouter) {
|
|
3603
|
+
return response.status(result.statusCode).json(result.body);
|
|
3604
|
+
} else {
|
|
3605
|
+
return import_server.NextResponse.json(result.body, { status: result.statusCode });
|
|
3606
|
+
}
|
|
3585
3607
|
}
|
|
3586
3608
|
return {
|
|
3587
3609
|
GET: handler,
|
|
@@ -527,10 +527,10 @@ var import_zod2 = require("zod");
|
|
|
527
527
|
var CoreCusFeatureSchema = import_zod2.z.object({
|
|
528
528
|
unlimited: import_zod2.z.boolean().optional(),
|
|
529
529
|
interval: import_zod2.z.nativeEnum(ProductItemInterval).optional(),
|
|
530
|
-
balance: import_zod2.z.number().
|
|
530
|
+
balance: import_zod2.z.number().nullish(),
|
|
531
531
|
usage: import_zod2.z.number().optional(),
|
|
532
532
|
included_usage: import_zod2.z.number().optional(),
|
|
533
|
-
next_reset_at: import_zod2.z.number().
|
|
533
|
+
next_reset_at: import_zod2.z.number().nullish(),
|
|
534
534
|
overage_allowed: import_zod2.z.boolean().optional(),
|
|
535
535
|
usage_limit: import_zod2.z.number().optional(),
|
|
536
536
|
breakdown: import_zod2.z.array(
|
|
@@ -3,15 +3,15 @@ import {
|
|
|
3
3
|
} from "./chunk-UNZHJTEY.mjs";
|
|
4
4
|
import {
|
|
5
5
|
createRouterWithOptions
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-74THWZUU.mjs";
|
|
7
|
+
import "./chunk-B5EK655Y.mjs";
|
|
8
|
+
import "./chunk-EUAZMSHG.mjs";
|
|
9
|
+
import "./chunk-C342MVRJ.mjs";
|
|
10
|
+
import "./chunk-ZHA3DHVC.mjs";
|
|
11
|
+
import "./chunk-NBQSYUOH.mjs";
|
|
12
12
|
import {
|
|
13
13
|
Autumn
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-BNRLG2NJ.mjs";
|
|
15
15
|
import "./chunk-45WVZY23.mjs";
|
|
16
16
|
import {
|
|
17
17
|
autumnApiUrl
|
package/dist/libraries/backend/{referralTypes-C9zChWVP.d.mts → referralTypes-COVVwj-1.d.mts}
RENAMED
|
@@ -32,10 +32,10 @@ declare const CheckFeatureResultSchema: z.ZodObject<{
|
|
|
32
32
|
} & {
|
|
33
33
|
unlimited: z.ZodOptional<z.ZodBoolean>;
|
|
34
34
|
interval: z.ZodOptional<z.ZodNativeEnum<typeof ProductItemInterval>>;
|
|
35
|
-
balance: z.ZodOptional<z.ZodNumber
|
|
35
|
+
balance: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
36
36
|
usage: z.ZodOptional<z.ZodNumber>;
|
|
37
37
|
included_usage: z.ZodOptional<z.ZodNumber>;
|
|
38
|
-
next_reset_at: z.ZodOptional<z.ZodNumber
|
|
38
|
+
next_reset_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
39
39
|
overage_allowed: z.ZodOptional<z.ZodBoolean>;
|
|
40
40
|
usage_limit: z.ZodOptional<z.ZodNumber>;
|
|
41
41
|
breakdown: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -76,10 +76,10 @@ declare const CheckFeatureResultSchema: z.ZodObject<{
|
|
|
76
76
|
entity_id?: string | undefined;
|
|
77
77
|
unlimited?: boolean | undefined;
|
|
78
78
|
interval?: ProductItemInterval | undefined;
|
|
79
|
-
balance?: number | undefined;
|
|
79
|
+
balance?: number | null | undefined;
|
|
80
80
|
usage?: number | undefined;
|
|
81
81
|
included_usage?: number | undefined;
|
|
82
|
-
next_reset_at?: number | undefined;
|
|
82
|
+
next_reset_at?: number | null | undefined;
|
|
83
83
|
overage_allowed?: boolean | undefined;
|
|
84
84
|
breakdown?: {
|
|
85
85
|
interval: ProductItemInterval;
|
|
@@ -101,10 +101,10 @@ declare const CheckFeatureResultSchema: z.ZodObject<{
|
|
|
101
101
|
entity_id?: string | undefined;
|
|
102
102
|
unlimited?: boolean | undefined;
|
|
103
103
|
interval?: ProductItemInterval | undefined;
|
|
104
|
-
balance?: number | undefined;
|
|
104
|
+
balance?: number | null | undefined;
|
|
105
105
|
usage?: number | undefined;
|
|
106
106
|
included_usage?: number | undefined;
|
|
107
|
-
next_reset_at?: number | undefined;
|
|
107
|
+
next_reset_at?: number | null | undefined;
|
|
108
108
|
overage_allowed?: boolean | undefined;
|
|
109
109
|
breakdown?: {
|
|
110
110
|
interval: ProductItemInterval;
|
|
@@ -248,10 +248,10 @@ type CustomerExpandOption = "invoices" | "rewards" | "trials_used" | "entities"
|
|
|
248
248
|
declare const CoreCusFeatureSchema: z.ZodObject<{
|
|
249
249
|
unlimited: z.ZodOptional<z.ZodBoolean>;
|
|
250
250
|
interval: z.ZodOptional<z.ZodNativeEnum<typeof ProductItemInterval>>;
|
|
251
|
-
balance: z.ZodOptional<z.ZodNumber
|
|
251
|
+
balance: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
252
252
|
usage: z.ZodOptional<z.ZodNumber>;
|
|
253
253
|
included_usage: z.ZodOptional<z.ZodNumber>;
|
|
254
|
-
next_reset_at: z.ZodOptional<z.ZodNumber
|
|
254
|
+
next_reset_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
255
255
|
overage_allowed: z.ZodOptional<z.ZodBoolean>;
|
|
256
256
|
usage_limit: z.ZodOptional<z.ZodNumber>;
|
|
257
257
|
breakdown: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -287,10 +287,10 @@ declare const CoreCusFeatureSchema: z.ZodObject<{
|
|
|
287
287
|
usage_limit?: number | undefined;
|
|
288
288
|
unlimited?: boolean | undefined;
|
|
289
289
|
interval?: ProductItemInterval | undefined;
|
|
290
|
-
balance?: number | undefined;
|
|
290
|
+
balance?: number | null | undefined;
|
|
291
291
|
usage?: number | undefined;
|
|
292
292
|
included_usage?: number | undefined;
|
|
293
|
-
next_reset_at?: number | undefined;
|
|
293
|
+
next_reset_at?: number | null | undefined;
|
|
294
294
|
overage_allowed?: boolean | undefined;
|
|
295
295
|
breakdown?: {
|
|
296
296
|
interval: ProductItemInterval;
|
|
@@ -307,10 +307,10 @@ declare const CoreCusFeatureSchema: z.ZodObject<{
|
|
|
307
307
|
usage_limit?: number | undefined;
|
|
308
308
|
unlimited?: boolean | undefined;
|
|
309
309
|
interval?: ProductItemInterval | undefined;
|
|
310
|
-
balance?: number | undefined;
|
|
310
|
+
balance?: number | null | undefined;
|
|
311
311
|
usage?: number | undefined;
|
|
312
312
|
included_usage?: number | undefined;
|
|
313
|
-
next_reset_at?: number | undefined;
|
|
313
|
+
next_reset_at?: number | null | undefined;
|
|
314
314
|
overage_allowed?: boolean | undefined;
|
|
315
315
|
breakdown?: {
|
|
316
316
|
interval: ProductItemInterval;
|