autumn-js 1.2.3 → 1.2.4
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.d.mts +1 -1
- package/dist/backend/adapters/express.d.ts +1 -1
- package/dist/backend/adapters/express.js +30 -16
- package/dist/backend/adapters/express.mjs +9 -9
- package/dist/backend/adapters/fetch.d.mts +1 -1
- package/dist/backend/adapters/fetch.d.ts +1 -1
- package/dist/backend/adapters/fetch.js +30 -16
- package/dist/backend/adapters/fetch.mjs +9 -9
- package/dist/backend/adapters/hono.d.mts +1 -1
- package/dist/backend/adapters/hono.d.ts +1 -1
- package/dist/backend/adapters/hono.js +30 -16
- package/dist/backend/adapters/hono.mjs +9 -9
- package/dist/backend/adapters/index.d.mts +1 -1
- package/dist/backend/adapters/index.d.ts +1 -1
- package/dist/backend/adapters/index.js +30 -16
- package/dist/backend/adapters/index.mjs +12 -12
- package/dist/backend/adapters/next.d.mts +1 -1
- package/dist/backend/adapters/next.d.ts +1 -1
- package/dist/backend/adapters/next.js +30 -16
- package/dist/backend/adapters/next.mjs +9 -9
- package/dist/backend/{authTypes-B5VxPaMo.d.mts → authTypes-Bdpu8A6G.d.mts} +4 -0
- package/dist/backend/{authTypes-B5VxPaMo.d.ts → authTypes-Bdpu8A6G.d.ts} +4 -0
- package/dist/backend/{chunk-N62MDT7U.mjs → chunk-3RN6TO3T.mjs} +4 -2
- package/dist/backend/{chunk-OLHAIHAX.mjs → chunk-AA2HLIP7.mjs} +5 -5
- package/dist/backend/{chunk-IUFWKMTJ.mjs → chunk-AIKOHUUL.mjs} +1 -1
- package/dist/backend/{chunk-CCEZMERA.mjs → chunk-BGGTI77T.mjs} +26 -14
- package/dist/backend/{chunk-FRKRWJ5S.mjs → chunk-MHFVVQCC.mjs} +1 -1
- package/dist/backend/{chunk-ETHQSA52.mjs → chunk-OZRCCZTP.mjs} +7 -7
- package/dist/backend/{chunk-IFFSWLXT.mjs → chunk-SCDE7Y52.mjs} +1 -1
- package/dist/backend/{chunk-2YEMC57K.mjs → chunk-UUMOHEAD.mjs} +1 -1
- package/dist/backend/core/handlers/coreHandler.d.mts +2 -2
- package/dist/backend/core/handlers/coreHandler.d.ts +2 -2
- package/dist/backend/core/handlers/coreHandler.js +30 -16
- package/dist/backend/core/handlers/coreHandler.mjs +7 -7
- package/dist/backend/core/handlers/executeRoute.d.mts +2 -2
- package/dist/backend/core/handlers/executeRoute.d.ts +2 -2
- package/dist/backend/core/handlers/executeRoute.mjs +4 -4
- package/dist/backend/core/handlers/handleRouteByName.d.mts +1 -1
- package/dist/backend/core/handlers/handleRouteByName.d.ts +1 -1
- package/dist/backend/core/handlers/handleRouteByName.js +30 -16
- package/dist/backend/core/handlers/handleRouteByName.mjs +7 -7
- package/dist/backend/core/handlers/index.d.mts +2 -2
- package/dist/backend/core/handlers/index.d.ts +2 -2
- package/dist/backend/core/handlers/index.js +30 -16
- package/dist/backend/core/handlers/index.mjs +10 -10
- package/dist/backend/core/handlers/resolveIdentity.d.mts +1 -1
- package/dist/backend/core/handlers/resolveIdentity.d.ts +1 -1
- package/dist/backend/core/index.d.mts +2 -2
- package/dist/backend/core/index.d.ts +2 -2
- package/dist/backend/core/index.js +30 -16
- package/dist/backend/core/index.mjs +10 -10
- package/dist/backend/core/routes/index.d.mts +2 -2
- package/dist/backend/core/routes/index.d.ts +2 -2
- package/dist/backend/core/routes/index.js +4 -2
- package/dist/backend/core/routes/index.mjs +2 -2
- package/dist/backend/core/routes/routeBuilder.d.mts +2 -2
- package/dist/backend/core/routes/routeBuilder.d.ts +2 -2
- package/dist/backend/core/routes/routeConfigs.d.mts +2 -2
- package/dist/backend/core/routes/routeConfigs.d.ts +2 -2
- package/dist/backend/core/routes/routeConfigs.js +4 -2
- package/dist/backend/core/routes/routeConfigs.mjs +2 -2
- package/dist/backend/core/types/authTypes.d.mts +1 -1
- package/dist/backend/core/types/authTypes.d.ts +1 -1
- package/dist/backend/core/types/handlerTypes.d.mts +2 -2
- package/dist/backend/core/types/handlerTypes.d.ts +2 -2
- package/dist/backend/core/types/index.d.mts +2 -2
- package/dist/backend/core/types/index.d.ts +2 -2
- package/dist/backend/core/types/routeTypes.d.mts +2 -2
- package/dist/backend/core/types/routeTypes.d.ts +2 -2
- package/dist/backend/core/utils/index.mjs +3 -3
- package/dist/backend/index.d.mts +4 -4
- package/dist/backend/index.d.ts +4 -4
- package/dist/backend/index.js +30 -16
- package/dist/backend/index.mjs +10 -10
- package/dist/backend/{routeTypes-BkSHRiCI.d.ts → routeTypes-DpH9YHyt.d.ts} +21 -1
- package/dist/backend/{routeTypes-C1hUtfD8.d.mts → routeTypes-mIP4rSxp.d.mts} +21 -1
- package/dist/better-auth/{chunk-6J74ZVNY.mjs → chunk-3C2VGNW3.mjs} +27 -15
- package/dist/better-auth/{chunk-2PRVJULJ.mjs → chunk-CG3LL2TQ.mjs} +4 -2
- package/dist/better-auth/{chunk-IY7FPOWF.mjs → chunk-UCMJFTKD.mjs} +1 -1
- package/dist/better-auth/index.js +30 -16
- package/dist/better-auth/index.mjs +3 -3
- package/dist/better-auth/types.d.mts +4 -0
- package/dist/better-auth/types.d.ts +4 -0
- package/dist/better-auth/utils/createAutumnEndpoint.js +4 -2
- package/dist/better-auth/utils/createAutumnEndpoint.mjs +2 -2
- package/dist/better-auth/utils/handleBetterAuthRoute.js +30 -16
- package/dist/better-auth/utils/handleBetterAuthRoute.mjs +2 -2
- package/dist/better-auth/utils/index.js +30 -16
- package/dist/better-auth/utils/index.mjs +3 -3
- package/dist/react/AutumnContext.d.mts +2 -2
- package/dist/react/AutumnContext.d.ts +2 -2
- package/dist/react/AutumnProvider.d.mts +2 -1
- package/dist/react/AutumnProvider.d.ts +2 -1
- package/dist/react/AutumnProvider.js +18 -8
- package/dist/react/AutumnProvider.mjs +3 -3
- package/dist/react/{chunk-R7I3UPL4.mjs → chunk-26CKSAPZ.mjs} +6 -4
- package/dist/react/{chunk-QEJLIFBC.mjs → chunk-QOFGTXEX.mjs} +3 -2
- package/dist/react/{chunk-M34U5F2H.mjs → chunk-SCDO26YC.mjs} +11 -4
- package/dist/react/client/AutumnClient.d.mts +3 -2
- package/dist/react/client/AutumnClient.d.ts +3 -2
- package/dist/react/client/AutumnClient.js +13 -5
- package/dist/react/client/AutumnClient.mjs +2 -2
- package/dist/react/client/IAutumnClient.d.mts +2 -2
- package/dist/react/client/IAutumnClient.d.ts +2 -2
- package/dist/react/client/index.d.mts +2 -2
- package/dist/react/client/index.d.ts +2 -2
- package/dist/react/client/index.js +13 -5
- package/dist/react/client/index.mjs +2 -2
- package/dist/react/client/internal/httpClient.d.mts +1 -0
- package/dist/react/client/internal/httpClient.d.ts +1 -0
- package/dist/react/client/internal/httpClient.js +11 -4
- package/dist/react/client/internal/httpClient.mjs +1 -1
- package/dist/react/{customer-CJSDgQMF.d.ts → customer-BPHnUS4N.d.ts} +4 -0
- package/dist/react/{customer-Bb7J-_p_.d.mts → customer-DDRi84Zq.d.mts} +4 -0
- package/dist/react/hooks/index.d.mts +2 -2
- package/dist/react/hooks/index.d.ts +2 -2
- package/dist/react/hooks/internal/check/balanceToAllowed.d.mts +1 -1
- package/dist/react/hooks/internal/check/balanceToAllowed.d.ts +1 -1
- package/dist/react/hooks/internal/check/customerToFeatures.d.mts +1 -1
- package/dist/react/hooks/internal/check/customerToFeatures.d.ts +1 -1
- package/dist/react/hooks/internal/check/findCreditSystemsByFeature.d.mts +1 -1
- package/dist/react/hooks/internal/check/findCreditSystemsByFeature.d.ts +1 -1
- package/dist/react/hooks/internal/check/getCreditCost.d.mts +1 -1
- package/dist/react/hooks/internal/check/getCreditCost.d.ts +1 -1
- package/dist/react/hooks/internal/getLocalCheckResponse.d.mts +2 -2
- package/dist/react/hooks/internal/getLocalCheckResponse.d.ts +2 -2
- package/dist/react/hooks/internal/useCustomerActions.d.mts +2 -2
- package/dist/react/hooks/internal/useCustomerActions.d.ts +2 -2
- 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 +2 -2
- package/dist/react/hooks/useCustomer.d.ts +2 -2
- 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 +2 -2
- package/dist/react/index.d.ts +2 -2
- package/dist/react/index.js +18 -8
- package/dist/react/index.mjs +3 -3
- package/dist/react/{params-CheyAQ0-.d.mts → params-Bj6uyOX1.d.mts} +4 -0
- package/dist/react/{params-yCtJ7lOA.d.ts → params-DAVIR4YX.d.ts} +4 -0
- package/dist/sdk/index.d.mts +29 -2
- package/dist/sdk/index.d.ts +29 -2
- package/dist/sdk/index.js +26 -14
- package/dist/sdk/index.mjs +26 -14
- package/package.json +1 -1
- package/dist/backend/{chunk-S5HPMJ4U.mjs → chunk-55C2WWXQ.mjs} +3 -3
|
@@ -7,6 +7,6 @@ export { UseListPlansParams, useListPlans } from './useListPlans.js';
|
|
|
7
7
|
export { UseReferralsParams, UseReferralsResult, useReferrals } from './useReferrals.js';
|
|
8
8
|
import '@tanstack/react-query';
|
|
9
9
|
import '../client/AutumnClientError.js';
|
|
10
|
-
import '../params-
|
|
10
|
+
import '../params-DAVIR4YX.js';
|
|
11
11
|
import '../plan-CqxFGNk2.js';
|
|
12
|
-
import '../customer-
|
|
12
|
+
import '../customer-BPHnUS4N.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { B as BalanceFeature } from '../../../plan-CqxFGNk2.mjs';
|
|
2
|
-
import { C as Customer } from '../../../customer-
|
|
2
|
+
import { C as Customer } from '../../../customer-DDRi84Zq.mjs';
|
|
3
3
|
|
|
4
4
|
type CustomerFeature = NonNullable<Customer["balances"][string]["feature"]>;
|
|
5
5
|
declare const findCreditSystemsByFeature: ({ featureId, features, }: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { B as BalanceFeature } from '../../../plan-CqxFGNk2.js';
|
|
2
|
-
import { C as Customer } from '../../../customer-
|
|
2
|
+
import { C as Customer } from '../../../customer-BPHnUS4N.js';
|
|
3
3
|
|
|
4
4
|
type CustomerFeature = NonNullable<Customer["balances"][string]["feature"]>;
|
|
5
5
|
declare const findCreditSystemsByFeature: ({ featureId, features, }: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { o as ClientCheckParams, s as CheckResponse } from '../../params-
|
|
2
|
-
import { C as Customer } from '../../customer-
|
|
1
|
+
import { o as ClientCheckParams, s as CheckResponse } from '../../params-Bj6uyOX1.mjs';
|
|
2
|
+
import { C as Customer } from '../../customer-DDRi84Zq.mjs';
|
|
3
3
|
import '../../plan-CqxFGNk2.mjs';
|
|
4
4
|
|
|
5
5
|
declare const getLocalCheckResponse: ({ customer, params, }: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { o as ClientCheckParams, s as CheckResponse } from '../../params-
|
|
2
|
-
import { C as Customer } from '../../customer-
|
|
1
|
+
import { o as ClientCheckParams, s as CheckResponse } from '../../params-DAVIR4YX.js';
|
|
2
|
+
import { C as Customer } from '../../customer-BPHnUS4N.js';
|
|
3
3
|
import '../../plan-CqxFGNk2.js';
|
|
4
4
|
|
|
5
5
|
declare const getLocalCheckResponse: ({ customer, params, }: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as ClientAttachParams, p as AttachResponse, h as ClientPreviewAttachParams, q as PreviewAttachResponse, m as ClientUpdateSubscriptionParams, B as BillingUpdateResponse, j as ClientPreviewUpdateSubscriptionParams, r as PreviewUpdateResponse, f as ClientMultiAttachParams, M as MultiAttachResponse, i as ClientPreviewMultiAttachParams, t as PreviewMultiAttachResponse, o as ClientCheckParams, s as CheckResponse, g as ClientOpenCustomerPortalParams, O as OpenCustomerPortalResponse, l as ClientSetupPaymentParams, S as SetupPaymentResponse } from '../../params-
|
|
2
|
-
import { C as Customer } from '../../customer-
|
|
1
|
+
import { a as ClientAttachParams, p as AttachResponse, h as ClientPreviewAttachParams, q as PreviewAttachResponse, m as ClientUpdateSubscriptionParams, B as BillingUpdateResponse, j as ClientPreviewUpdateSubscriptionParams, r as PreviewUpdateResponse, f as ClientMultiAttachParams, M as MultiAttachResponse, i as ClientPreviewMultiAttachParams, t as PreviewMultiAttachResponse, o as ClientCheckParams, s as CheckResponse, g as ClientOpenCustomerPortalParams, O as OpenCustomerPortalResponse, l as ClientSetupPaymentParams, S as SetupPaymentResponse } from '../../params-Bj6uyOX1.mjs';
|
|
2
|
+
import { C as Customer } from '../../customer-DDRi84Zq.mjs';
|
|
3
3
|
import { IAutumnClient } from '../../client/IAutumnClient.mjs';
|
|
4
4
|
import '../../plan-CqxFGNk2.mjs';
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as ClientAttachParams, p as AttachResponse, h as ClientPreviewAttachParams, q as PreviewAttachResponse, m as ClientUpdateSubscriptionParams, B as BillingUpdateResponse, j as ClientPreviewUpdateSubscriptionParams, r as PreviewUpdateResponse, f as ClientMultiAttachParams, M as MultiAttachResponse, i as ClientPreviewMultiAttachParams, t as PreviewMultiAttachResponse, o as ClientCheckParams, s as CheckResponse, g as ClientOpenCustomerPortalParams, O as OpenCustomerPortalResponse, l as ClientSetupPaymentParams, S as SetupPaymentResponse } from '../../params-
|
|
2
|
-
import { C as Customer } from '../../customer-
|
|
1
|
+
import { a as ClientAttachParams, p as AttachResponse, h as ClientPreviewAttachParams, q as PreviewAttachResponse, m as ClientUpdateSubscriptionParams, B as BillingUpdateResponse, j as ClientPreviewUpdateSubscriptionParams, r as PreviewUpdateResponse, f as ClientMultiAttachParams, M as MultiAttachResponse, i as ClientPreviewMultiAttachParams, t as PreviewMultiAttachResponse, o as ClientCheckParams, s as CheckResponse, g as ClientOpenCustomerPortalParams, O as OpenCustomerPortalResponse, l as ClientSetupPaymentParams, S as SetupPaymentResponse } from '../../params-DAVIR4YX.js';
|
|
2
|
+
import { C as Customer } from '../../customer-BPHnUS4N.js';
|
|
3
3
|
import { IAutumnClient } from '../../client/IAutumnClient.js';
|
|
4
4
|
import '../../plan-CqxFGNk2.js';
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
2
|
-
import { C as ClientAggregateEventsParams, A as AggregateEventsResponse, n as AggregateEventsList, T as Total } from '../params-
|
|
2
|
+
import { C as ClientAggregateEventsParams, A as AggregateEventsResponse, n as AggregateEventsList, T as Total } from '../params-Bj6uyOX1.mjs';
|
|
3
3
|
import { AutumnClientError } from '../client/AutumnClientError.mjs';
|
|
4
4
|
import { HookParams } from './types.mjs';
|
|
5
5
|
import '../plan-CqxFGNk2.mjs';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
2
|
-
import { C as ClientAggregateEventsParams, A as AggregateEventsResponse, n as AggregateEventsList, T as Total } from '../params-
|
|
2
|
+
import { C as ClientAggregateEventsParams, A as AggregateEventsResponse, n as AggregateEventsList, T as Total } from '../params-DAVIR4YX.js';
|
|
3
3
|
import { AutumnClientError } from '../client/AutumnClientError.js';
|
|
4
4
|
import { HookParams } from './types.js';
|
|
5
5
|
import '../plan-CqxFGNk2.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { o as ClientCheckParams, d as ClientGetOrCreateCustomerParams, a as ClientAttachParams, p as AttachResponse, h as ClientPreviewAttachParams, q as PreviewAttachResponse, m as ClientUpdateSubscriptionParams, B as BillingUpdateResponse, j as ClientPreviewUpdateSubscriptionParams, r as PreviewUpdateResponse, s as CheckResponse, f as ClientMultiAttachParams, M as MultiAttachResponse, i as ClientPreviewMultiAttachParams, t as PreviewMultiAttachResponse, l as ClientSetupPaymentParams, S as SetupPaymentResponse, g as ClientOpenCustomerPortalParams, O as OpenCustomerPortalResponse } from '../params-
|
|
2
|
-
import { C as Customer } from '../customer-
|
|
1
|
+
import { o as ClientCheckParams, d as ClientGetOrCreateCustomerParams, a as ClientAttachParams, p as AttachResponse, h as ClientPreviewAttachParams, q as PreviewAttachResponse, m as ClientUpdateSubscriptionParams, B as BillingUpdateResponse, j as ClientPreviewUpdateSubscriptionParams, r as PreviewUpdateResponse, s as CheckResponse, f as ClientMultiAttachParams, M as MultiAttachResponse, i as ClientPreviewMultiAttachParams, t as PreviewMultiAttachResponse, l as ClientSetupPaymentParams, S as SetupPaymentResponse, g as ClientOpenCustomerPortalParams, O as OpenCustomerPortalResponse } from '../params-Bj6uyOX1.mjs';
|
|
2
|
+
import { C as Customer } from '../customer-DDRi84Zq.mjs';
|
|
3
3
|
import { HookParams, HookResultWithMethods } from './types.mjs';
|
|
4
4
|
import '../plan-CqxFGNk2.mjs';
|
|
5
5
|
import '@tanstack/react-query';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { o as ClientCheckParams, d as ClientGetOrCreateCustomerParams, a as ClientAttachParams, p as AttachResponse, h as ClientPreviewAttachParams, q as PreviewAttachResponse, m as ClientUpdateSubscriptionParams, B as BillingUpdateResponse, j as ClientPreviewUpdateSubscriptionParams, r as PreviewUpdateResponse, s as CheckResponse, f as ClientMultiAttachParams, M as MultiAttachResponse, i as ClientPreviewMultiAttachParams, t as PreviewMultiAttachResponse, l as ClientSetupPaymentParams, S as SetupPaymentResponse, g as ClientOpenCustomerPortalParams, O as OpenCustomerPortalResponse } from '../params-
|
|
2
|
-
import { C as Customer } from '../customer-
|
|
1
|
+
import { o as ClientCheckParams, d as ClientGetOrCreateCustomerParams, a as ClientAttachParams, p as AttachResponse, h as ClientPreviewAttachParams, q as PreviewAttachResponse, m as ClientUpdateSubscriptionParams, B as BillingUpdateResponse, j as ClientPreviewUpdateSubscriptionParams, r as PreviewUpdateResponse, s as CheckResponse, f as ClientMultiAttachParams, M as MultiAttachResponse, i as ClientPreviewMultiAttachParams, t as PreviewMultiAttachResponse, l as ClientSetupPaymentParams, S as SetupPaymentResponse, g as ClientOpenCustomerPortalParams, O as OpenCustomerPortalResponse } from '../params-DAVIR4YX.js';
|
|
2
|
+
import { C as Customer } from '../customer-BPHnUS4N.js';
|
|
3
3
|
import { HookParams, HookResultWithMethods } from './types.js';
|
|
4
4
|
import '../plan-CqxFGNk2.js';
|
|
5
5
|
import '@tanstack/react-query';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as ClientGetEntityParams, G as GetEntityResponse } from '../params-
|
|
1
|
+
import { c as ClientGetEntityParams, G as GetEntityResponse } from '../params-Bj6uyOX1.mjs';
|
|
2
2
|
import { HookParams, HookResult } from './types.mjs';
|
|
3
3
|
import '../plan-CqxFGNk2.mjs';
|
|
4
4
|
import '@tanstack/react-query';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as ClientGetEntityParams, G as GetEntityResponse } from '../params-
|
|
1
|
+
import { c as ClientGetEntityParams, G as GetEntityResponse } from '../params-DAVIR4YX.js';
|
|
2
2
|
import { HookParams, HookResult } from './types.js';
|
|
3
3
|
import '../plan-CqxFGNk2.js';
|
|
4
4
|
import '@tanstack/react-query';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
2
|
-
import { e as ClientListEventsParams, L as ListEventsResponse, u as ListEventsList } from '../params-
|
|
2
|
+
import { e as ClientListEventsParams, L as ListEventsResponse, u as ListEventsList } from '../params-Bj6uyOX1.mjs';
|
|
3
3
|
import { AutumnClientError } from '../client/AutumnClientError.mjs';
|
|
4
4
|
import { HookParams } from './types.mjs';
|
|
5
5
|
import '../plan-CqxFGNk2.mjs';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
2
|
-
import { e as ClientListEventsParams, L as ListEventsResponse, u as ListEventsList } from '../params-
|
|
2
|
+
import { e as ClientListEventsParams, L as ListEventsResponse, u as ListEventsList } from '../params-DAVIR4YX.js';
|
|
3
3
|
import { AutumnClientError } from '../client/AutumnClientError.js';
|
|
4
4
|
import { HookParams } from './types.js';
|
|
5
5
|
import '../plan-CqxFGNk2.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
2
2
|
import { P as Plan } from '../plan-CqxFGNk2.mjs';
|
|
3
|
-
import { v as ClientListPlansParams } from '../params-
|
|
3
|
+
import { v as ClientListPlansParams } from '../params-Bj6uyOX1.mjs';
|
|
4
4
|
import { AutumnClientError } from '../client/AutumnClientError.mjs';
|
|
5
5
|
import { HookParams } from './types.mjs';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
2
2
|
import { P as Plan } from '../plan-CqxFGNk2.js';
|
|
3
|
-
import { v as ClientListPlansParams } from '../params-
|
|
3
|
+
import { v as ClientListPlansParams } from '../params-DAVIR4YX.js';
|
|
4
4
|
import { AutumnClientError } from '../client/AutumnClientError.js';
|
|
5
5
|
import { HookParams } from './types.js';
|
|
6
6
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as ClientCreateReferralCodeParams, w as CreateReferralCodeResponse, k as ClientRedeemReferralCodeParams, R as RedeemReferralCodeResponse } from '../params-
|
|
1
|
+
import { b as ClientCreateReferralCodeParams, w as CreateReferralCodeResponse, k as ClientRedeemReferralCodeParams, R as RedeemReferralCodeResponse } from '../params-Bj6uyOX1.mjs';
|
|
2
2
|
import { HookParams, HookResultWithMethods } from './types.mjs';
|
|
3
3
|
import '../plan-CqxFGNk2.mjs';
|
|
4
4
|
import '@tanstack/react-query';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as ClientCreateReferralCodeParams, w as CreateReferralCodeResponse, k as ClientRedeemReferralCodeParams, R as RedeemReferralCodeResponse } from '../params-
|
|
1
|
+
import { b as ClientCreateReferralCodeParams, w as CreateReferralCodeResponse, k as ClientRedeemReferralCodeParams, R as RedeemReferralCodeResponse } from '../params-DAVIR4YX.js';
|
|
2
2
|
import { HookParams, HookResultWithMethods } from './types.js';
|
|
3
3
|
import '../plan-CqxFGNk2.js';
|
|
4
4
|
import '@tanstack/react-query';
|
package/dist/react/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { C as ClientAggregateEventsParams, a as ClientAttachParams, b as ClientCreateReferralCodeParams, c as ClientGetEntityParams, d as ClientGetOrCreateCustomerParams, e as ClientListEventsParams, f as ClientMultiAttachParams, g as ClientOpenCustomerPortalParams, h as ClientPreviewAttachParams, i as ClientPreviewMultiAttachParams, j as ClientPreviewUpdateSubscriptionParams, k as ClientRedeemReferralCodeParams, l as ClientSetupPaymentParams, m as ClientUpdateSubscriptionParams, P as ProtectedFields } from './params-
|
|
1
|
+
export { C as ClientAggregateEventsParams, a as ClientAttachParams, b as ClientCreateReferralCodeParams, c as ClientGetEntityParams, d as ClientGetOrCreateCustomerParams, e as ClientListEventsParams, f as ClientMultiAttachParams, g as ClientOpenCustomerPortalParams, h as ClientPreviewAttachParams, i as ClientPreviewMultiAttachParams, j as ClientPreviewUpdateSubscriptionParams, k as ClientRedeemReferralCodeParams, l as ClientSetupPaymentParams, m as ClientUpdateSubscriptionParams, P as ProtectedFields } from './params-Bj6uyOX1.mjs';
|
|
2
2
|
export { useAutumnClient } from './AutumnContext.mjs';
|
|
3
3
|
export { AutumnProvider, AutumnProviderProps } from './AutumnProvider.mjs';
|
|
4
4
|
export { AutumnClientConfig, createAutumnClient } from './client/AutumnClient.mjs';
|
|
@@ -13,6 +13,6 @@ export { UseReferralsParams, UseReferralsResult, useReferrals } from './hooks/us
|
|
|
13
13
|
import './plan-CqxFGNk2.mjs';
|
|
14
14
|
import 'react';
|
|
15
15
|
import 'react/jsx-runtime';
|
|
16
|
-
import './customer-
|
|
16
|
+
import './customer-DDRi84Zq.mjs';
|
|
17
17
|
import '@tanstack/react-query';
|
|
18
18
|
import './hooks/types.mjs';
|
package/dist/react/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { C as ClientAggregateEventsParams, a as ClientAttachParams, b as ClientCreateReferralCodeParams, c as ClientGetEntityParams, d as ClientGetOrCreateCustomerParams, e as ClientListEventsParams, f as ClientMultiAttachParams, g as ClientOpenCustomerPortalParams, h as ClientPreviewAttachParams, i as ClientPreviewMultiAttachParams, j as ClientPreviewUpdateSubscriptionParams, k as ClientRedeemReferralCodeParams, l as ClientSetupPaymentParams, m as ClientUpdateSubscriptionParams, P as ProtectedFields } from './params-
|
|
1
|
+
export { C as ClientAggregateEventsParams, a as ClientAttachParams, b as ClientCreateReferralCodeParams, c as ClientGetEntityParams, d as ClientGetOrCreateCustomerParams, e as ClientListEventsParams, f as ClientMultiAttachParams, g as ClientOpenCustomerPortalParams, h as ClientPreviewAttachParams, i as ClientPreviewMultiAttachParams, j as ClientPreviewUpdateSubscriptionParams, k as ClientRedeemReferralCodeParams, l as ClientSetupPaymentParams, m as ClientUpdateSubscriptionParams, P as ProtectedFields } from './params-DAVIR4YX.js';
|
|
2
2
|
export { useAutumnClient } from './AutumnContext.js';
|
|
3
3
|
export { AutumnProvider, AutumnProviderProps } from './AutumnProvider.js';
|
|
4
4
|
export { AutumnClientConfig, createAutumnClient } from './client/AutumnClient.js';
|
|
@@ -13,6 +13,6 @@ export { UseReferralsParams, UseReferralsResult, useReferrals } from './hooks/us
|
|
|
13
13
|
import './plan-CqxFGNk2.js';
|
|
14
14
|
import 'react';
|
|
15
15
|
import 'react/jsx-runtime';
|
|
16
|
-
import './customer-
|
|
16
|
+
import './customer-BPHnUS4N.js';
|
|
17
17
|
import '@tanstack/react-query';
|
|
18
18
|
import './hooks/types.js';
|
package/dist/react/index.js
CHANGED
|
@@ -2574,7 +2574,12 @@ var isErrorBody = (body) => {
|
|
|
2574
2574
|
return !!body && typeof body === "object" && "message" in body && "code" in body && "statusCode" in body;
|
|
2575
2575
|
};
|
|
2576
2576
|
var createHttpClient = (config) => {
|
|
2577
|
-
const {
|
|
2577
|
+
const {
|
|
2578
|
+
backendUrl,
|
|
2579
|
+
pathPrefix,
|
|
2580
|
+
includeCredentials,
|
|
2581
|
+
headers: customHeaders
|
|
2582
|
+
} = config;
|
|
2578
2583
|
const baseUrl = backendUrl ? `${backendUrl}${pathPrefix}` : pathPrefix;
|
|
2579
2584
|
const request = async ({
|
|
2580
2585
|
route,
|
|
@@ -2582,12 +2587,14 @@ var createHttpClient = (config) => {
|
|
|
2582
2587
|
method = "POST"
|
|
2583
2588
|
}) => {
|
|
2584
2589
|
const url = `${baseUrl}/${route}`;
|
|
2590
|
+
const headers = {
|
|
2591
|
+
"Content-Type": "application/json",
|
|
2592
|
+
...customHeaders
|
|
2593
|
+
};
|
|
2585
2594
|
try {
|
|
2586
2595
|
const response = await fetch(url, {
|
|
2587
2596
|
method,
|
|
2588
|
-
headers
|
|
2589
|
-
"Content-Type": "application/json"
|
|
2590
|
-
},
|
|
2597
|
+
headers,
|
|
2591
2598
|
...includeCredentials && { credentials: "include" },
|
|
2592
2599
|
...body !== void 0 && { body: JSON.stringify(body) }
|
|
2593
2600
|
});
|
|
@@ -2628,7 +2635,8 @@ var createAutumnClient = (config) => {
|
|
|
2628
2635
|
const http = createHttpClient({
|
|
2629
2636
|
backendUrl: config.backendUrl,
|
|
2630
2637
|
pathPrefix: config.pathPrefix,
|
|
2631
|
-
includeCredentials: config.includeCredentials
|
|
2638
|
+
includeCredentials: config.includeCredentials,
|
|
2639
|
+
headers: config.headers
|
|
2632
2640
|
});
|
|
2633
2641
|
return {
|
|
2634
2642
|
getOrCreateCustomer: (params) => http.request({
|
|
@@ -2703,7 +2711,8 @@ var AutumnProvider = ({
|
|
|
2703
2711
|
backendUrl,
|
|
2704
2712
|
pathPrefix,
|
|
2705
2713
|
useBetterAuth,
|
|
2706
|
-
includeCredentials
|
|
2714
|
+
includeCredentials,
|
|
2715
|
+
headers
|
|
2707
2716
|
}) => {
|
|
2708
2717
|
const queryClientRef = (0, import_react2.useRef)(null);
|
|
2709
2718
|
if (!queryClientRef.current) {
|
|
@@ -2724,10 +2733,11 @@ var AutumnProvider = ({
|
|
|
2724
2733
|
const client = createAutumnClient({
|
|
2725
2734
|
backendUrl,
|
|
2726
2735
|
pathPrefix: resolvedPathPrefix,
|
|
2727
|
-
includeCredentials: resolvedIncludeCredentials
|
|
2736
|
+
includeCredentials: resolvedIncludeCredentials,
|
|
2737
|
+
headers
|
|
2728
2738
|
});
|
|
2729
2739
|
return { client };
|
|
2730
|
-
}, [backendUrl, pathPrefix, useBetterAuth, includeCredentials]);
|
|
2740
|
+
}, [backendUrl, pathPrefix, useBetterAuth, includeCredentials, JSON.stringify(headers)]);
|
|
2731
2741
|
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(QueryClientProvider, { client: queryClientRef.current, children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(AutumnContext.Provider, { value: contextValue, children }) });
|
|
2732
2742
|
};
|
|
2733
2743
|
|
package/dist/react/index.mjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
AutumnProvider
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-26CKSAPZ.mjs";
|
|
5
5
|
import "./chunk-7KBQVCNO.mjs";
|
|
6
6
|
import {
|
|
7
7
|
createAutumnClient
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
8
|
+
} from "./chunk-QOFGTXEX.mjs";
|
|
9
|
+
import "./chunk-SCDO26YC.mjs";
|
|
10
10
|
import {
|
|
11
11
|
AutumnClientError
|
|
12
12
|
} from "./chunk-IC3QHWR6.mjs";
|
|
@@ -1730,6 +1730,10 @@ type CustomerDataAutoTopup = {
|
|
|
1730
1730
|
* Optional rate limit to cap how often auto top-ups occur.
|
|
1731
1731
|
*/
|
|
1732
1732
|
purchaseLimit?: CustomerDataPurchaseLimit | undefined;
|
|
1733
|
+
/**
|
|
1734
|
+
* When true, auto top-up creates a send_invoice invoice instead of auto-charging.
|
|
1735
|
+
*/
|
|
1736
|
+
invoiceMode?: boolean | undefined;
|
|
1733
1737
|
};
|
|
1734
1738
|
type CustomerDataSpendLimit = {
|
|
1735
1739
|
/**
|
|
@@ -1730,6 +1730,10 @@ type CustomerDataAutoTopup = {
|
|
|
1730
1730
|
* Optional rate limit to cap how often auto top-ups occur.
|
|
1731
1731
|
*/
|
|
1732
1732
|
purchaseLimit?: CustomerDataPurchaseLimit | undefined;
|
|
1733
|
+
/**
|
|
1734
|
+
* When true, auto top-up creates a send_invoice invoice instead of auto-charging.
|
|
1735
|
+
*/
|
|
1736
|
+
invoiceMode?: boolean | undefined;
|
|
1733
1737
|
};
|
|
1734
1738
|
type CustomerDataSpendLimit = {
|
|
1735
1739
|
/**
|
package/dist/sdk/index.d.mts
CHANGED
|
@@ -111,8 +111,8 @@ declare const SDK_METADATA: {
|
|
|
111
111
|
readonly language: "typescript";
|
|
112
112
|
readonly openapiDocVersion: "2.2.0";
|
|
113
113
|
readonly sdkVersion: "0.10.17";
|
|
114
|
-
readonly genVersion: "2.879.
|
|
115
|
-
readonly userAgent: "speakeasy-sdk/typescript 0.10.17 2.879.
|
|
114
|
+
readonly genVersion: "2.879.6";
|
|
115
|
+
readonly userAgent: "speakeasy-sdk/typescript 0.10.17 2.879.6 2.2.0 @useautumn/sdk";
|
|
116
116
|
};
|
|
117
117
|
|
|
118
118
|
/**
|
|
@@ -2886,6 +2886,10 @@ type CustomerDataAutoTopup = {
|
|
|
2886
2886
|
* Optional rate limit to cap how often auto top-ups occur.
|
|
2887
2887
|
*/
|
|
2888
2888
|
purchaseLimit?: CustomerDataPurchaseLimit | undefined;
|
|
2889
|
+
/**
|
|
2890
|
+
* When true, auto top-up creates a send_invoice invoice instead of auto-charging.
|
|
2891
|
+
*/
|
|
2892
|
+
invoiceMode?: boolean | undefined;
|
|
2889
2893
|
};
|
|
2890
2894
|
type CustomerDataSpendLimit = {
|
|
2891
2895
|
/**
|
|
@@ -3026,6 +3030,7 @@ type CustomerDataAutoTopup$Outbound = {
|
|
|
3026
3030
|
threshold: number;
|
|
3027
3031
|
quantity: number;
|
|
3028
3032
|
purchase_limit?: CustomerDataPurchaseLimit$Outbound | undefined;
|
|
3033
|
+
invoice_mode?: boolean | undefined;
|
|
3029
3034
|
};
|
|
3030
3035
|
/** @internal */
|
|
3031
3036
|
declare const CustomerDataAutoTopup$outboundSchema: z$1.ZodMiniType<CustomerDataAutoTopup$Outbound, CustomerDataAutoTopup>;
|
|
@@ -5300,6 +5305,10 @@ type CustomerAutoTopup = {
|
|
|
5300
5305
|
* Optional rate limit to cap how often auto top-ups occur.
|
|
5301
5306
|
*/
|
|
5302
5307
|
purchaseLimit?: CustomerPurchaseLimit | undefined;
|
|
5308
|
+
/**
|
|
5309
|
+
* When true, auto top-up creates a send_invoice invoice instead of auto-charging.
|
|
5310
|
+
*/
|
|
5311
|
+
invoiceMode?: boolean | undefined;
|
|
5303
5312
|
};
|
|
5304
5313
|
type CustomerSpendLimit = {
|
|
5305
5314
|
/**
|
|
@@ -6690,6 +6699,10 @@ type GetOrCreateCustomerAutoTopup = {
|
|
|
6690
6699
|
* Optional rate limit to cap how often auto top-ups occur.
|
|
6691
6700
|
*/
|
|
6692
6701
|
purchaseLimit?: GetOrCreateCustomerPurchaseLimit | undefined;
|
|
6702
|
+
/**
|
|
6703
|
+
* When true, auto top-up creates a send_invoice invoice instead of auto-charging.
|
|
6704
|
+
*/
|
|
6705
|
+
invoiceMode?: boolean | undefined;
|
|
6693
6706
|
};
|
|
6694
6707
|
type GetOrCreateCustomerSpendLimit = {
|
|
6695
6708
|
/**
|
|
@@ -6832,6 +6845,7 @@ type GetOrCreateCustomerAutoTopup$Outbound = {
|
|
|
6832
6845
|
threshold: number;
|
|
6833
6846
|
quantity: number;
|
|
6834
6847
|
purchase_limit?: GetOrCreateCustomerPurchaseLimit$Outbound | undefined;
|
|
6848
|
+
invoice_mode?: boolean | undefined;
|
|
6835
6849
|
};
|
|
6836
6850
|
/** @internal */
|
|
6837
6851
|
declare const GetOrCreateCustomerAutoTopup$outboundSchema: z$1.ZodMiniType<GetOrCreateCustomerAutoTopup$Outbound, GetOrCreateCustomerAutoTopup>;
|
|
@@ -7552,6 +7566,10 @@ type ListCustomersAutoTopup = {
|
|
|
7552
7566
|
* Optional rate limit to cap how often auto top-ups occur.
|
|
7553
7567
|
*/
|
|
7554
7568
|
purchaseLimit?: ListCustomersPurchaseLimit | undefined;
|
|
7569
|
+
/**
|
|
7570
|
+
* When true, auto top-up creates a send_invoice invoice instead of auto-charging.
|
|
7571
|
+
*/
|
|
7572
|
+
invoiceMode?: boolean | undefined;
|
|
7555
7573
|
};
|
|
7556
7574
|
type ListCustomersSpendLimit = {
|
|
7557
7575
|
/**
|
|
@@ -13542,6 +13560,10 @@ type UpdateCustomerAutoTopupRequest = {
|
|
|
13542
13560
|
* Optional rate limit to cap how often auto top-ups occur.
|
|
13543
13561
|
*/
|
|
13544
13562
|
purchaseLimit?: UpdateCustomerPurchaseLimitRequest | undefined;
|
|
13563
|
+
/**
|
|
13564
|
+
* When true, auto top-up creates a send_invoice invoice instead of auto-charging.
|
|
13565
|
+
*/
|
|
13566
|
+
invoiceMode?: boolean | undefined;
|
|
13545
13567
|
};
|
|
13546
13568
|
type UpdateCustomerSpendLimitRequest = {
|
|
13547
13569
|
/**
|
|
@@ -13723,6 +13745,10 @@ type UpdateCustomerAutoTopupResponse = {
|
|
|
13723
13745
|
* Optional rate limit to cap how often auto top-ups occur.
|
|
13724
13746
|
*/
|
|
13725
13747
|
purchaseLimit?: UpdateCustomerPurchaseLimitResponse | undefined;
|
|
13748
|
+
/**
|
|
13749
|
+
* When true, auto top-up creates a send_invoice invoice instead of auto-charging.
|
|
13750
|
+
*/
|
|
13751
|
+
invoiceMode?: boolean | undefined;
|
|
13726
13752
|
};
|
|
13727
13753
|
type UpdateCustomerSpendLimitResponse = {
|
|
13728
13754
|
/**
|
|
@@ -14066,6 +14092,7 @@ type UpdateCustomerAutoTopupRequest$Outbound = {
|
|
|
14066
14092
|
threshold: number;
|
|
14067
14093
|
quantity: number;
|
|
14068
14094
|
purchase_limit?: UpdateCustomerPurchaseLimitRequest$Outbound | undefined;
|
|
14095
|
+
invoice_mode?: boolean | undefined;
|
|
14069
14096
|
};
|
|
14070
14097
|
/** @internal */
|
|
14071
14098
|
declare const UpdateCustomerAutoTopupRequest$outboundSchema: z$1.ZodMiniType<UpdateCustomerAutoTopupRequest$Outbound, UpdateCustomerAutoTopupRequest>;
|
package/dist/sdk/index.d.ts
CHANGED
|
@@ -111,8 +111,8 @@ declare const SDK_METADATA: {
|
|
|
111
111
|
readonly language: "typescript";
|
|
112
112
|
readonly openapiDocVersion: "2.2.0";
|
|
113
113
|
readonly sdkVersion: "0.10.17";
|
|
114
|
-
readonly genVersion: "2.879.
|
|
115
|
-
readonly userAgent: "speakeasy-sdk/typescript 0.10.17 2.879.
|
|
114
|
+
readonly genVersion: "2.879.6";
|
|
115
|
+
readonly userAgent: "speakeasy-sdk/typescript 0.10.17 2.879.6 2.2.0 @useautumn/sdk";
|
|
116
116
|
};
|
|
117
117
|
|
|
118
118
|
/**
|
|
@@ -2886,6 +2886,10 @@ type CustomerDataAutoTopup = {
|
|
|
2886
2886
|
* Optional rate limit to cap how often auto top-ups occur.
|
|
2887
2887
|
*/
|
|
2888
2888
|
purchaseLimit?: CustomerDataPurchaseLimit | undefined;
|
|
2889
|
+
/**
|
|
2890
|
+
* When true, auto top-up creates a send_invoice invoice instead of auto-charging.
|
|
2891
|
+
*/
|
|
2892
|
+
invoiceMode?: boolean | undefined;
|
|
2889
2893
|
};
|
|
2890
2894
|
type CustomerDataSpendLimit = {
|
|
2891
2895
|
/**
|
|
@@ -3026,6 +3030,7 @@ type CustomerDataAutoTopup$Outbound = {
|
|
|
3026
3030
|
threshold: number;
|
|
3027
3031
|
quantity: number;
|
|
3028
3032
|
purchase_limit?: CustomerDataPurchaseLimit$Outbound | undefined;
|
|
3033
|
+
invoice_mode?: boolean | undefined;
|
|
3029
3034
|
};
|
|
3030
3035
|
/** @internal */
|
|
3031
3036
|
declare const CustomerDataAutoTopup$outboundSchema: z$1.ZodMiniType<CustomerDataAutoTopup$Outbound, CustomerDataAutoTopup>;
|
|
@@ -5300,6 +5305,10 @@ type CustomerAutoTopup = {
|
|
|
5300
5305
|
* Optional rate limit to cap how often auto top-ups occur.
|
|
5301
5306
|
*/
|
|
5302
5307
|
purchaseLimit?: CustomerPurchaseLimit | undefined;
|
|
5308
|
+
/**
|
|
5309
|
+
* When true, auto top-up creates a send_invoice invoice instead of auto-charging.
|
|
5310
|
+
*/
|
|
5311
|
+
invoiceMode?: boolean | undefined;
|
|
5303
5312
|
};
|
|
5304
5313
|
type CustomerSpendLimit = {
|
|
5305
5314
|
/**
|
|
@@ -6690,6 +6699,10 @@ type GetOrCreateCustomerAutoTopup = {
|
|
|
6690
6699
|
* Optional rate limit to cap how often auto top-ups occur.
|
|
6691
6700
|
*/
|
|
6692
6701
|
purchaseLimit?: GetOrCreateCustomerPurchaseLimit | undefined;
|
|
6702
|
+
/**
|
|
6703
|
+
* When true, auto top-up creates a send_invoice invoice instead of auto-charging.
|
|
6704
|
+
*/
|
|
6705
|
+
invoiceMode?: boolean | undefined;
|
|
6693
6706
|
};
|
|
6694
6707
|
type GetOrCreateCustomerSpendLimit = {
|
|
6695
6708
|
/**
|
|
@@ -6832,6 +6845,7 @@ type GetOrCreateCustomerAutoTopup$Outbound = {
|
|
|
6832
6845
|
threshold: number;
|
|
6833
6846
|
quantity: number;
|
|
6834
6847
|
purchase_limit?: GetOrCreateCustomerPurchaseLimit$Outbound | undefined;
|
|
6848
|
+
invoice_mode?: boolean | undefined;
|
|
6835
6849
|
};
|
|
6836
6850
|
/** @internal */
|
|
6837
6851
|
declare const GetOrCreateCustomerAutoTopup$outboundSchema: z$1.ZodMiniType<GetOrCreateCustomerAutoTopup$Outbound, GetOrCreateCustomerAutoTopup>;
|
|
@@ -7552,6 +7566,10 @@ type ListCustomersAutoTopup = {
|
|
|
7552
7566
|
* Optional rate limit to cap how often auto top-ups occur.
|
|
7553
7567
|
*/
|
|
7554
7568
|
purchaseLimit?: ListCustomersPurchaseLimit | undefined;
|
|
7569
|
+
/**
|
|
7570
|
+
* When true, auto top-up creates a send_invoice invoice instead of auto-charging.
|
|
7571
|
+
*/
|
|
7572
|
+
invoiceMode?: boolean | undefined;
|
|
7555
7573
|
};
|
|
7556
7574
|
type ListCustomersSpendLimit = {
|
|
7557
7575
|
/**
|
|
@@ -13542,6 +13560,10 @@ type UpdateCustomerAutoTopupRequest = {
|
|
|
13542
13560
|
* Optional rate limit to cap how often auto top-ups occur.
|
|
13543
13561
|
*/
|
|
13544
13562
|
purchaseLimit?: UpdateCustomerPurchaseLimitRequest | undefined;
|
|
13563
|
+
/**
|
|
13564
|
+
* When true, auto top-up creates a send_invoice invoice instead of auto-charging.
|
|
13565
|
+
*/
|
|
13566
|
+
invoiceMode?: boolean | undefined;
|
|
13545
13567
|
};
|
|
13546
13568
|
type UpdateCustomerSpendLimitRequest = {
|
|
13547
13569
|
/**
|
|
@@ -13723,6 +13745,10 @@ type UpdateCustomerAutoTopupResponse = {
|
|
|
13723
13745
|
* Optional rate limit to cap how often auto top-ups occur.
|
|
13724
13746
|
*/
|
|
13725
13747
|
purchaseLimit?: UpdateCustomerPurchaseLimitResponse | undefined;
|
|
13748
|
+
/**
|
|
13749
|
+
* When true, auto top-up creates a send_invoice invoice instead of auto-charging.
|
|
13750
|
+
*/
|
|
13751
|
+
invoiceMode?: boolean | undefined;
|
|
13726
13752
|
};
|
|
13727
13753
|
type UpdateCustomerSpendLimitResponse = {
|
|
13728
13754
|
/**
|
|
@@ -14066,6 +14092,7 @@ type UpdateCustomerAutoTopupRequest$Outbound = {
|
|
|
14066
14092
|
threshold: number;
|
|
14067
14093
|
quantity: number;
|
|
14068
14094
|
purchase_limit?: UpdateCustomerPurchaseLimitRequest$Outbound | undefined;
|
|
14095
|
+
invoice_mode?: boolean | undefined;
|
|
14069
14096
|
};
|
|
14070
14097
|
/** @internal */
|
|
14071
14098
|
declare const UpdateCustomerAutoTopupRequest$outboundSchema: z$1.ZodMiniType<UpdateCustomerAutoTopupRequest$Outbound, UpdateCustomerAutoTopupRequest>;
|